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