clipbucket/upload/styles/cb_27/theme/assets/js/dropzone.min.js

1 line
28 KiB
JavaScript
Raw Normal View History

2014-01-30 08:21:55 +00:00
(function(){function a(f,d,g){var b=a.resolve(f);if(null==b){g=g||f;d=d||"root";var e=new Error('Failed to require "'+g+'" from "'+d+'"');e.path=g;e.parent=d;e.require=true;throw e}var c=a.modules[b];if(!c.exports){c.exports={};c.client=c.component=true;c.call(this,c.exports,a.relative(b),c)}return c.exports}a.modules={};a.aliases={};a.resolve=function(c){if(c.charAt(0)==="/"){c=c.slice(1)}var d=[c,c+".js",c+".json",c+"/index.js",c+"/index.json"];for(var b=0;b<d.length;b++){var c=d[b];if(a.modules.hasOwnProperty(c)){return c}if(a.aliases.hasOwnProperty(c)){return a.aliases[c]}}};a.normalize=function(e,d){var b=[];if("."!=d.charAt(0)){return d}e=e.split("/");d=d.split("/");for(var c=0;c<d.length;++c){if(".."==d[c]){e.pop()}else{if("."!=d[c]&&""!=d[c]){b.push(d[c])}}}return e.concat(b).join("/")};a.register=function(c,b){a.modules[c]=b};a.alias=function(c,b){if(!a.modules.hasOwnProperty(c)){throw new Error('Failed to alias "'+c+'", it does not exist')}a.aliases[b]=c};a.relative=function(c){var e=a.normalize(c,"..");function b(f,h){var g=f.length;while(g--){if(f[g]===h){return g}}return -1}function d(g){var f=d.resolve(g);return a(f,c,g)}d.resolve=function(h){var j=h.charAt(0);if("/"==j){return h.slice(1)}if("."==j){return a.normalize(e,h)}var f=c.split("/");var g=b(f,"deps")+1;if(!g){g=0}h=f.slice(0,g+1).join("/")+"/deps/"+h;return h};d.exists=function(f){return a.modules.hasOwnProperty(d.resolve(f))};return d};a.register("component-emitter/index.js",function(c,d,e){e.exports=f;function f(g){if(g){return b(g)}}function b(h){for(var g in f.prototype){h[g]=f.prototype[g]}return h}f.prototype.on=function(h,g){this._callbacks=this._callbacks||{};(this._callbacks[h]=this._callbacks[h]||[]).push(g);return this};f.prototype.once=function(j,i){var h=this;this._callbacks=this._callbacks||{};function g(){h.off(j,g);i.apply(this,arguments)}i._off=g;this.on(j,g);return this};f.prototype.off=f.prototype.removeListener=f.prototype.removeAllListeners=function(k,h){this._callbacks=this._callbacks||{};var j=this._callbacks[k];if(!j){return this}if(1==arguments.length){delete this._callbacks[k];return this}var g=j.indexOf(h._off||h);if(~g){j.splice(g,1)}return this};f.prototype.emit=function(l){this._callbacks=this._callbacks||{};var h=[].slice.call(arguments,1),k=this._callbacks[l];if(k){k=k.slice(0);for(var j=0,g=k.length;j<g;++j){k[j].apply(this,h)}}return this};f.prototype.listeners=function(g){this._callbacks=this._callbacks||{};return this._callbacks[g]||[]};f.prototype.hasListeners=function(g){return !!this.listeners(g).length}});a.register("dropzone/index.js",function(b,c,d){d.exports=c("./lib/dropzone.js")});a.register("dropzone/lib/dropzone.js",function(b,c,d){(function(){var j,f,e,g,m,l,k={}.hasOwnProperty,h=function(q,o){for(var n in o){if(k.call(o,n)){q[n]=o[n]}}function p(){this.constructor=q}p.prototype=o.prototype;q.prototype=new p();q.__super__=o.prototype;return q},i=[].slice;f=typeof Emitter!=="undefined"&&Emitter!==null?Emitter:c("emitter");m=function(){};j=(function(o){var p;h(n,o);n.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","selectedfiles","addedfile","removedfile","thumbnail","error","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded"];n.prototype.defaultOptions={url:null,method:"post",withCredentials:false,parallelUploads:2,uploadMultiple:false,maxFilesize:256,paramName:"file",createImageThumbnails:true,maxThumbnailFilesize:10,thumbnailWidth:100,thumbnailHeight:100,maxFiles:null,params:{},clickable:true,ignoreHiddenFiles:true,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:true,addRemoveLinks:false,previewsContainer:null,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MB). Max filesize: {