{"version":3,"file":"angular-file-upload.min.js","sources":["angular-file-upload.js"],"names":["angular","factory","define","amd","app","module","directive","$fileUploader","link","isHTML5","scope","element","attributes","bind","event","dataTransfer","originalEvent","preventDefault","stopPropagation","$broadcast","$emit","files","$eval","ngFileDrop","dropEffect","noop","$on","addClass","ngFileOver","removeClass","removeAttr","this","ngFileSelect","attr","prop","$compile","$rootScope","$http","$window","Uploader","params","extend","url","alias","queue","headers","progress","autoUpload","removeAfterUpload","method","filters","formData","isUploading","_nextIndex","_timestamp","Date","now","unshift","_filter","items","options","addToQueue","Item","prototype","_beforeupload","_progress","_success","_cancel","_error","_complete","input","file","clone","uploader","value","val","lastModifiedDate","size","type","slice","lastIndexOf","toLowerCase","name","_input","css","after","isReady","isUploaded","isSuccess","isCancel","isError","index","constructor","item","isElement","handler","trigger","arguments","apply","File","FormData","length","list","forEach","isValid","every","filter","call","copy","push","_getTotalProgress","_render","uploadAll","removeFromQueue","getIndexOfItem","cancel","splice","_destroy","clearQueue","isObject","indexOf","getNotUploadedItems","getReadyItems","sort","item1","item2","uploadItem","transport","cancelItem","abort","cancelAll","$$phase","$digest","notUploaded","uploaded","ratio","current","Math","round","result","isDefined","_xhrTransport","xhr","_xhr","XMLHttpRequest","form","that","obj","key","append","upload","onprogress","lengthComputable","loaded","total","onload","response","_transformResponse","_isSuccessCode","status","onerror","onabort","open","setRequestHeader","send","_iframeTransport","iframe","_form","replaceWith","action","target","enctype","encoding","html","contentDocument","body","innerHTML","dummy","unbind","submit","defaults","transformResponse","transformFn","remove","create"],"mappings":"CAIC,SAASA,EAASC,GACf,MAAsB,kBAAXC,SAAyBA,OAAOC,KACvCD,OAAO,uBAAwB,WAAY,SAASF,GAChD,MAAOC,GAAQD,KADnBE,QAIOD,EAAQD,IAErBA,SAAW,KAAM,SAASA,GAC5B,GAAII,GAAMJ,EAAQK,OAAO,uBA8pBrB,OA3pBJD,GAAIE,UAAU,cAAgB,gBAAiB,SAAUC,GACrD,YAEA,QAEIC,KAAO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