"use strict";var KTUppy=function(){const e=Uppy.Tus,t=Uppy.ProgressBar,i=Uppy.StatusBar,a=Uppy.FileInput,p=Uppy.Informer,s=Uppy.Dashboard,n=Uppy.Dropbox,o=Uppy.GoogleDrive,r=Uppy.Instagram,u=Uppy.Webcam;return{init:function(){var l,m,d,c;l={proudlyDisplayPoweredByUppy:!1,target:"#kt_uppy_1",inline:!0,replaceTargetContent:!0,showProgressDetails:!0,note:"No filetype restrictions.",height:470,metaFields:[{id:"name",name:"Name",placeholder:"file name"},{id:"caption",name:"Caption",placeholder:"describe what the image is about"}],browserBackButtonClose:!0},(m=Uppy.Core({autoProceed:!0,restrictions:{maxFileSize:1e6,maxNumberOfFiles:5,minNumberOfFiles:1}})).use(s,l),m.use(e,{endpoint:"https://master.tus.io/files/"}),m.use(o,{target:s,companionUrl:"https://companion.uppy.io"}),m.use(n,{target:s,companionUrl:"https://companion.uppy.io"}),m.use(r,{target:s,companionUrl:"https://companion.uppy.io"}),m.use(u,{target:s}),function(){var t={proudlyDisplayPoweredByUppy:!1,target:"#kt_uppy_2",inline:!0,replaceTargetContent:!0,showProgressDetails:!0,note:"Images and video only, 2–3 files, up to 1 MB",height:470,metaFields:[{id:"name",name:"Name",placeholder:"file name"},{id:"caption",name:"Caption",placeholder:"describe what the image is about"}],browserBackButtonClose:!0},i=Uppy.Core({autoProceed:!0,restrictions:{maxFileSize:1e6,maxNumberOfFiles:5,minNumberOfFiles:1,allowedFileTypes:["image/*","video/*"]}});i.use(s,t),i.use(e,{endpoint:"https://master.tus.io/files/"})}(),d="#kt_uppy_3",(c=Uppy.Core({autoProceed:!0,restrictions:{maxFileSize:1e6,maxNumberOfFiles:5,minNumberOfFiles:1,allowedFileTypes:["image/*","video/*"]}})).use(Uppy.DragDrop,{target:d+" .uppy-drag"}),c.use(t,{target:d+" .uppy-progress",hideUploadButton:!1,hideAfterFinish:!1}),c.use(p,{target:d+" .uppy-informer"}),c.use(e,{endpoint:"https://master.tus.io/files/"}),c.on("complete",function(e){var t="";$.each(e.successful,function(e,i){var a="";/image/.test(i.type)&&(a='
';n.append(p)}),r.text("Add more files"),s.addClass("uppy-status-hidden"),s.removeClass("uppy-status-ongoing")}),$(document).on("click",t+" .uppy-list .uppy-list-remove",function(){var e=$(this).attr("data-id");o.removeFile(e),$(t+' .uppy-list-item[data-id="'+e+'"').remove()})}(),function(){var t="#kt_uppy_6",i={proudlyDisplayPoweredByUppy:!1,target:t+" .uppy-dashboard",inline:!1,replaceTargetContent:!0,showProgressDetails:!0,note:"No filetype restrictions.",height:470,metaFields:[{id:"name",name:"Name",placeholder:"file name"},{id:"caption",name:"Caption",placeholder:"describe what the image is about"}],browserBackButtonClose:!0,trigger:t+" .uppy-btn"},a=Uppy.Core({autoProceed:!0,restrictions:{maxFileSize:1e6,maxNumberOfFiles:5,minNumberOfFiles:1}});a.use(s,i),a.use(e,{endpoint:"https://master.tus.io/files/"}),a.use(o,{target:s,companionUrl:"https://companion.uppy.io"}),a.use(n,{target:s,companionUrl:"https://companion.uppy.io"}),a.use(r,{target:s,companionUrl:"https://companion.uppy.io"}),a.use(u,{target:s})}(),setTimeout(function(){swal.fire({title:"Notice",html:"Uppy demos uses https://master.tus.io/files/ URL for resumable upload examples and your uploaded files will be temporarely stored in tus.io servers.",type:"info",buttonsStyling:!1,confirmButtonClass:"btn btn-primary",confirmButtonText:"Ok, I understand",onClose:function(e){console.log("on close event fired!")}})},2e3)}}}();KTUtil.ready(function(){KTUppy.init()});