"use strict";function _classCallCheck(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,a){for(var r=0;r").addClass("alert alert-danger alert-dismissible"),i='';$("#fileupload-avatar").fileupload({url:"//jquery-file-upload.appspot.com/",dropZone:null,dataType:"json",autoUpload:!0,acceptFileTypes:/(\.|\/)(gif|jpe?g|png)$/i,maxFileSize:2e6}).on("fileuploadprocessalways",function(e,a){var r=a.index,t=a.files[r];l.remove(),t.error&&(l.text(t.error).prepend(i),n.prepend(l))}).on("fileuploadprogressall",function(e,a){var r=parseInt(a.loaded/a.total*100,10);$("#progress-avatar").addClass("show").children().css("width",r+"%")}).on("fileuploaddone",function(e,a){var r=a.result.files[0],t=$(this).parent().children("img");t.prop("src");r.url?t.prop("src",r.url):r.error&&(l.text(r.error).prepend(i),n.prepend(l)),$("#progress-avatar").removeClass("show").children().css("width",0)})}}]),e}();$(document).on("theme:init",function(){new ProfileSettingsDemo}); //# sourceMappingURL=../../sourcemaps/pages/user-settings-demo.min.js.map