(()=>{(function(){"use strict";Dropzone.autoDiscover=!1,$(".dropzone").each(function(){let t={accept:(o,e)=>{console.log("Uploaded"),e()}};$(this).data("single")&&(t.maxFiles=1),$(this).data("file-types")&&(t.accept=(o,e)=>{$(this).data("file-types").split("|").indexOf(o.type)===-1?(alert("Error! Files of this type are not accepted"),e("Error! Files of this type are not accepted")):(console.log("Uploaded"),e())}),new Dropzone(this,t).on("maxfilesexceeded",o=>{alert("No more files please!")})})})();})();
