Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
VueJS Fileuploader Build
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("axios")):"function"==typeof define&&define.amd?define(["axios"],t):"object"==typeof exports?exports["vuejs-uploader"]=t(require("axios")):e["vuejs-uploader"]=t(e.axios)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=103)}([function(e,t){var n=e.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(25)("wks"),o=n(14),i=n(2).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(7),o=n(35),i=n(28),a=Object.defineProperty;t.f=n(4)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(2),o=n(0),i=n(16),a=n(8),u=function(e,t,n){var s,l,f,c=e&u.F,p=e&u.G,d=e&u.S,A=e&u.P,v=e&u.B,_=e&u.W,b=p?o:o[t]||(o[t]={}),C=b.prototype,h=p?r:d?r[t]:(r[t]||{}).prototype;p&&(n=t);for(s in n)(l=!c&&h&&void 0!==h[s])&&s in b||(f=l?h[s]:n[s],b[s]=p&&"function"!=typeof h[s]?n[s]:v&&l?i(f,r):_&&h[s]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):A&&"function"==typeof f?i(Function.call,f):f,A&&((b.virtual||(b.virtual={}))[s]=f,e&u.R&&C&&!C[s]&&a(C,s,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(11);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var r=n(3),o=n(13);e.exports=n(4)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(75),o=n(17);e.exports=function(e){return r(o(e))}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports={}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(68);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports=!0},function(e,t,n){var r=n(7),o=n(83),i=n(18),a=n(24)("IE_PROTO"),u=function(){},s=function(){var e,t=n(34)("iframe"),r=i.length;for(t.style.display="none",n(74).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),s=e.F;r--;)delete s.prototype[i[r]];return s()};e.exports=Object.create||function(e,t){var n;return null!==e?(u.prototype=r(e),n=new u,u.prototype=null,n[a]=e):n=s(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(41),o=n(18);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(3).f,o=n(6),i=n(1)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(25)("keys"),o=n(14);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(2),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(17);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(11);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(2),o=n(0),i=n(19),a=n(30),u=n(3).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||u(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(1)},function(e,t,n){"use strict";var r=n(32),o=n.n(r),i=n(58),a=n.n(i),u=n(50),s=function(){function e(t){o()(this,e),this.file=t,this.filesize=t.size,this.formattedFilesize=u.a.fileSize(t.size),this.error=null,this.percentageUploaded=0,this.uploadedParts=[],this.totalParts=1,this.extension=u.a.fileExtension(t.name)}return a()(e,[{key:"setProgress",value:function(e){this.percentageUploaded=Math.round(100*e.loaded/e.total)}},{key:"setMultipartProgress",value:function(e,t,n){this.totalParts=t,this.addPart(n);var r=this.uploadedParts.findIndex(function(e){return e.part===n});return this.uploadedParts[r].loaded=Math.round(100*e.loaded/e.total),this.percent}},{key:"addPart",value:function(e){-1===this.uploadedParts.indexOf(e)&&this.uploadedParts.push({part:e,loaded:0})}},{key:"percent",get:function(){var e=100/this.totalParts;return this.uploadedParts.reduce(function(t,n){return t+n.loaded*e/100},0)}}]),e}();t.a=s},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(57),i=r(o),a=n(56),u=r(a),s="function"==typeof u.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof u.default&&e.constructor===u.default&&e!==u.default.prototype?"symbol":typeof e};t.default="function"==typeof u.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof u.default&&e.constructor===u.default&&e!==u.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t,n){var r=n(11),o=n(2).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){e.exports=!n(4)&&!n(10)(function(){return 7!=Object.defineProperty(n(34)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";var r=n(19),o=n(5),i=n(42),a=n(8),u=n(6),s=n(12),l=n(79),f=n(23),c=n(40),p=n(1)("iterator"),d=!([].keys&&"next"in[].keys()),A=function(){return this};e.exports=function(e,t,n,v,_,b,C){l(n,t,v);var h,m,g,x=function(e){if(!d&&e in k)return k[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},B=t+" Iterator",y="values"==_,j=!1,k=e.prototype,w=k[p]||k["@@iterator"]||_&&k[_],E=w||x(_),S=_?y?x("entries"):E:void 0,O="Array"==t?k.entries||w:w;if(O&&(g=c(O.call(new e)))!==Object.prototype&&g.next&&(f(g,B,!0),r||u(g,p)||a(g,p,A)),y&&w&&"values"!==w.name&&(j=!0,E=function(){return w.call(this)}),r&&!C||!d&&!j&&k[p]||a(k,p,E),s[t]=E,s[B]=A,_)if(h={values:y?E:x("values"),keys:b?E:x("keys"),entries:S},C)for(m in h)m in k||i(k,m,h[m]);else o(o.P+o.F*(d||j),t,h);return h}},function(e,t,n){var r=n(22),o=n(13),i=n(9),a=n(28),u=n(6),s=n(35),l=Object.getOwnPropertyDescriptor;t.f=n(4)?l:function(e,t){if(e=i(e),t=a(t,!0),s)try{return l(e,t)}catch(e){}if(u(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(41),o=n(18).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(6),o=n(27),i=n(24)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(6),o=n(9),i=n(70)(!1),a=n(24)("IE_PROTO");e.exports=function(e,t){var n,u=o(e),s=0,l=[];for(n in u)n!=a&&r(u,n)&&l.push(n);for(;t.length>s;)r(u,n=t[s++])&&(~i(l,n)||l.push(n));return l}},function(e,t,n){e.exports=n(8)},function(e,t,n){var r=n(26),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){"use strict";var r=n(87)(!0);n(36)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(51),o=n.n(r),i=n(106),a=n.n(i),u=n(31),s=n(49);t.default={props:{endPoint:{type:String,required:!0},headers:Object,errorHandler:Function,accept:String,multiple:Boolean,multipart:Boolean,multipartChunkSize:{type:Number,default:2097152},maxUploads:{type:Number,default:5},maxThumbWidth:{type:Number,default:80},maxThumbHeight:{type:Number,default:80},userDefinedProperties:Array,showProgressBar:{type:Boolean,default:!1}},data:function(){return{axios:null,files:[],errorMessage:null}},computed:{getFiles:function(){return this.files},isSingleFileUpload:function(){return!this.multiple},isMultipleFileUpload:function(){return this.multiple},isDisabled:function(){var e=this,t=!0;return this.userDefinedProperties&&this.userDefinedProperties.forEach(function(n){e.files.forEach(function(e){n.required&&!e[n.property]&&(t=!1)})}),!this.files.length||!t},noFiles:function(){return 0===this.files.length}},methods:{upload:function(){var e=this;this.resetError(),this.files.forEach(function(t){return e.uploadFile(t)})},clear:function(){this.resetError(),this.files=[]},isImageUpload:function(e){return e.hasOwnProperty("image")},uploadFile:function(e){var t=this;if(this.multipart&&e.file.size>this.multipartChunkSize)return this.multipartUploadFile(e),!0;var n=new FormData;n.append("file",e.file),n=this.appendUserData(e,n);var r={onUploadProgress:function(t){e.setProgress(t)}};this.axios.post(this.endPoint,n,r).then(function(n){t.$emit("fileUploaded",{file:e,response:n.data})}).catch(function(n){if(t.$emit("error",n),t.errorHandler)return t.errorHandler(n);e.error=n.response.data})},multipartUploadFile:function(e){var t=this,n=Math.ceil(e.file.size/this.multipartChunkSize),r=1,o=[];do{!function(){var i=r,a=t.getFileChunk(e,i),u=new FormData,s={onUploadProgress:function(t){e.setMultipartProgress(t,n,i)}};u.append("multipart",!0),u.append("file",a),u.append("filename",e.file.name),u.append("mime",e.file.type),u.append("totalSize",e.file.size),u.append("partSize",t.multipartChunkSize),u.append("totalParts",n),u.append("currentPart",i),u=t.appendUserData(e,u),o.push({data:u,config:s,fileObj:e,currentPart:i}),r++}()}while(r<=n);this.processQueue(o,e)},processQueue:function(e,t,n){var r=this;if(e=this.cleanQueue(e,n),!e.length)return this.$emit("fileUploaded",{file:t,response:n.data}),!0;var o=e.shift();this.axios.post(this.endPoint,o.data,o.config).then(function(n){r.$emit("chunkUploaded",o.fileObj,o.currentPart),r.processQueue(e,t,n)}).catch(function(t){if(t.request&&429===t.request.status&&(e.push(o),setTimeout(function(){this.processQueue()},6e4)),r.$emit("error",t),r.errorHandler)return r.errorHandler(t);o.fileObj.error=t.response.data})},cleanQueue:function(e,t){return t&&t.data&&t.data.remainingParts?e.filter(function(e){return-1!==t.data.remainingParts.indexOf(e.currentPart)}):e},getFileChunk:function(e,t){var n=(t-1)*this.multipartChunkSize,r=Math.min(n+this.multipartChunkSize,e.file.size);return e.file.slice(n,r)},addFiles:function(e){var t=this;o()(e.target.files).forEach(function(e){if(t.files.length===t.maxUploads)return t.setError("Only "+t.maxUploads+" files can be uploaded at one time"),!1;if(-1===t.files.findIndex(function(t){return t.file.name===e.name})){var n=t.uploadFactory(e);t.files.push(n)}}),this.multiple||(this.resetError(),this.upload(),this.$emit("startUpload")),this.browse=null},setError:function(e){this.errorMessage=e},resetError:function(){this.errorMessage=null},uploadFactory:function(e){var t=void 0;return this.isImage(e)?(t=new s.a(e),this.isMultipleFileUpload&&this.getPreviewImage(t)):t=new u.a(e),this.appendUserProperties(t)},appendUserProperties:function(e){return this.userDefinedProperties&&this.userDefinedProperties.forEach(function(t){e[t.property]=null}),e},appendUserData:function(e,t){return this.userDefinedProperties&&this.userDefinedProperties.forEach(function(n){t.append(n.property,e[n.property])}),t},removeFile:function(e){this.$el.querySelector("input[type=file]").value=null,this.resetError();var t=this.files.indexOf(e);this.files.splice(t,1)},isImage:function(e){return-1!==["image/jpeg","image/png","image/gif"].indexOf(e.type)},getPreviewImage:function(e){var t=this,n=new FileReader;n.onload=function(n){t.resizeImage(n.target.result,t.maxThumbWidth,t.maxThumbHeight,e)},n.readAsDataURL(e.file)},resizeImage:function(e,t,n,r){var o=this,i=document.createElement("canvas"),a=new Image,u=i.getContext("2d");a.src=e,a.onload=function(){var e=o.calculateAspectRatioFit(a.width,a.height,t,n);i.width=e.width,i.height=e.height,u.drawImage(a,0,0,a.width,a.height,0,0,i.width,i.height),r.image=i.toDataURL(r.file.type,.8)}},calculateAspectRatioFit:function(e,t,n,r){var o=Math.min(n/e,r/t);return{width:e*o,height:t*o}},progressBarStyle:function(e){return{width:e.percent+"%"}},configureAxios:function(){var e={};this.headers&&(e.headers=this.headers),this.axios=a.a.create(e)},hasError:function(e){return Boolean(e.error)},handleError:function(e){return"function"==typeof this.errorHandler?this.errorHandler(e):e}},mounted:function(){var e=this;this.configureAxios(),this.$on("fileUploaded",function(t){return e.removeFile(t)})}}},function(e,t){e.exports=function(e,t,n,r){var o,i=e=e||{},a=typeof e.default;"object"!==a&&"function"!==a||(o=e,i=e.default);var u="function"==typeof i?i.options:i;if(t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns),n&&(u._scopeId=n),r){var s=Object.create(u.computed||null);Object.keys(r).forEach(function(e){var t=r[e];s[e]=function(){return t}}),u.computed=s}return{esModule:o,exports:i,options:u}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vuejs-uploader"},[n("label",[e.isSingleFileUpload?n("span",[e._t("browse-btn",[n("span",{staticClass:"vuejs-uploader__btn"},[e._v("Browse")])]),e._v(" "),e.files[0]&&e.hasError(e.files[0])?n("p",{staticClass:"vuejs-uploader__error"},[e._v(e._s(e.handleError(e.files[0].error)))]):e._e(),e._v(" "),e.showProgressBar&&e.files[0]?n("div",{staticClass:"vuejs-uploader__progress"},[n("div",{staticClass:"vuejs-uploader__progress-bar",style:e.progressBarStyle(e.files[0])})]):e._e()],2):e._e(),e._v(" "),e.isMultipleFileUpload?n("span",[e._t("browse-btn",[n("span",{staticClass:"vuejs-uploader__btn"},[e._v("Browse")])])],2):e._e(),e._v(" "),n("input",{attrs:{type:"file",multiple:e.multiple,accept:e.accept},on:{change:e.addFiles}})]),e._v(" "),e.isMultipleFileUpload?n("span",[n("button",{staticClass:"vuejs-uploader__btn",attrs:{type:"button",disabled:e.noFiles},on:{click:e.clear}},[e._t("clear-btn",[e._v("Clear")])],2),e._v(" "),n("button",{staticClass:"vuejs-uploader__btn",attrs:{type:"button",disabled:e.isDisabled},on:{click:e.upload}},[e._t("upload-btn",[e._v("Upload")])],2)]):e._e(),e._v(" "),e.errorMessage?n("div",{staticClass:"vuejs-uploader__error"},[e._v(e._s(e.errorMessage))]):e._e(),e._v(" "),e.isMultipleFileUpload?n("ul",{staticClass:"vuejs-uploader__queue"},e._l(this.files,function(t){return n("li",{staticClass:"vuejs-uploader__file"},[n("div",{staticClass:"vuejs-uploader__file--preview"},[e.isImageUpload(t)&&!t.image?n("div",{staticClass:"loading"}):e._e(),e._v(" "),t.image?n("img",{attrs:{src:t.image}}):e._e(),e._v(" "),e.isImageUpload(t)?e._e():n("span",{staticClass:"vuejs-uploader__file-icon",class:t.extension},[e._v(e._s(t.extension))])]),e._v(" "),n("div",{staticClass:"vuejs-uploader__file--meta"},[n("p",{staticClass:"vuejs-uploader__file--filename"},[e._v(e._s(t.file.name))]),e._v(" "),n("p",{staticClass:"vuejs-uploader__file--filesize"},[e._v(e._s(t.formattedFilesize))]),e._v(" "),t.error?n("p",[e._v(e._s(t.error))]):e._e(),e._v(" "),e._t("extra",null,{fileObj:t}),e._v(" "),n("div",{staticClass:"vuejs-uploader__progress"},[n("div",{staticClass:"vuejs-uploader__progress-bar",style:e.progressBarStyle(t)})])],2),e._v(" "),n("div",[n("button",{staticClass:"vuejs-uploader__btn vuejs-uploader__btn--delete",attrs:{type:"button"},on:{click:function(n){e.removeFile(t)}}},[e._t("remove-btn",[e._v("Remove")])],2)])])})):e._e()])},staticRenderFns:[]}},function(e,t,n){var r=n(101);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(104)("67752972",r,!0)},function(e,t,n){"use strict";var r=n(54),o=n.n(r),i=n(32),a=n.n(i),u=n(60),s=n.n(u),l=n(59),f=n.n(l),c=n(31),p=function(e){function t(e){a()(this,t);var n=s()(this,(t.__proto__||o()(t)).call(this,e));return n.image=null,n}return f()(t,e),t}(c.a);t.a=p},function(e,t,n){"use strict";t.a={fileSize:function(e,t,n,r,o){return(t=Math,n=t.log,r=1e3,o=n(e)/n(r)|0,e/t.pow(r,o)).toFixed(2)+" "+(o?"kMGTPEZY"[--o]+"B":"Bytes")},fileExtension:function(e){return e.slice(2+(e.lastIndexOf(".")-1>>>0))}}},function(e,t,n){e.exports={default:n(61),__esModule:!0}},function(e,t,n){e.exports={default:n(62),__esModule:!0}},function(e,t,n){e.exports={default:n(63),__esModule:!0}},function(e,t,n){e.exports={default:n(64),__esModule:!0}},function(e,t,n){e.exports={default:n(65),__esModule:!0}},function(e,t,n){e.exports={default:n(66),__esModule:!0}},function(e,t,n){e.exports={default:n(67),__esModule:!0}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(53),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(55),i=r(o),a=n(52),u=r(a),s=n(33),l=r(s);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,l.default)(t)));e.prototype=(0,u.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i.default?(0,i.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(33),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,o.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){n(44),n(90),e.exports=n(0).Array.from},function(e,t,n){n(92);var r=n(0).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){n(93);var r=n(0).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){n(94),e.exports=n(0).Object.getPrototypeOf},function(e,t,n){n(95),e.exports=n(0).Object.setPrototypeOf},function(e,t,n){n(97),n(96),n(98),n(99),e.exports=n(0).Symbol},function(e,t,n){n(44),n(100),e.exports=n(30).f("iterator")},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(9),o=n(43),i=n(88);e.exports=function(e){return function(t,n,a){var u,s=r(t),l=o(s.length),f=i(a,l);if(e&&n!=n){for(;l>f;)if((u=s[f++])!=u)return!0}else for(;l>f;f++)if((e||f in s)&&s[f]===n)return e||f||0;return!e&&-1}}},function(e,t,n){var r=n(15),o=n(1)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,u;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),o))?n:i?r(t):"Object"==(u=r(t))&&"function"==typeof t.callee?"Arguments":u}},function(e,t,n){"use strict";var r=n(3),o=n(13);e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},function(e,t,n){var r=n(21),o=n(39),i=n(22);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,u=n(e),s=i.f,l=0;u.length>l;)s.call(e,a=u[l++])&&t.push(a);return t}},function(e,t,n){var r=n(2).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(15);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(12),o=n(1)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},function(e,t,n){var r=n(15);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(7);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){"use strict";var r=n(20),o=n(13),i=n(23),a={};n(8)(a,n(1)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(1)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},e(i)}catch(e){}return n}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(14)("meta"),o=n(11),i=n(6),a=n(3).f,u=0,s=Object.isExtensible||function(){return!0},l=!n(10)(function(){return s(Object.preventExtensions({}))}),f=function(e){a(e,r,{value:{i:"O"+ ++u,w:{}}})},c=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!s(e))return"F";if(!t)return"E";f(e)}return e[r].i},p=function(e,t){if(!i(e,r)){if(!s(e))return!0;if(!t)return!1;f(e)}return e[r].w},d=function(e){return l&&A.NEED&&s(e)&&!i(e,r)&&f(e),e},A=e.exports={KEY:r,NEED:!1,fastKey:c,getWeak:p,onFreeze:d}},function(e,t,n){var r=n(3),o=n(7),i=n(21);e.exports=n(4)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),u=a.length,s=0;u>s;)r.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var r=n(9),o=n(38).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(e){try{return o(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?u(e):o(r(e))}},function(e,t,n){var r=n(5),o=n(0),i=n(10);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var r=n(11),o=n(7),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(16)(Function.call,n(37).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var r=n(26),o=n(17);e.exports=function(e){return function(t,n){var i,a,u=String(o(t)),s=r(n),l=u.length;return s<0||s>=l?e?"":void 0:(i=u.charCodeAt(s),i<55296||i>56319||s+1===l||(a=u.charCodeAt(s+1))<56320||a>57343?e?u.charAt(s):i:e?u.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){var r=n(26),o=Math.max,i=Math.min;e.exports=function(e,t){return e=r(e),e<0?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(71),o=n(1)("iterator"),i=n(12);e.exports=n(0).getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){"use strict";var r=n(16),o=n(5),i=n(27),a=n(78),u=n(76),s=n(43),l=n(72),f=n(89);o(o.S+o.F*!n(80)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,o,c,p=i(e),d="function"==typeof this?this:Array,A=arguments.length,v=A>1?arguments[1]:void 0,_=void 0!==v,b=0,C=f(p);if(_&&(v=r(v,A>2?arguments[2]:void 0,2)),void 0==C||d==Array&&u(C))for(t=s(p.length),n=new d(t);t>b;b++)l(n,b,_?v(p[b],b):p[b]);else for(c=C.call(p),n=new d;!(o=c.next()).done;b++)l(n,b,_?a(c,v,[o.value,b],!0):o.value);return n.length=b,n}})},function(e,t,n){"use strict";var r=n(69),o=n(81),i=n(12),a=n(9);e.exports=n(36)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):"keys"==t?o(0,n):"values"==t?o(0,e[n]):o(0,[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var r=n(5);r(r.S,"Object",{create:n(20)})},function(e,t,n){var r=n(5);r(r.S+r.F*!n(4),"Object",{defineProperty:n(3).f})},function(e,t,n){var r=n(27),o=n(40);n(85)("getPrototypeOf",function(){return function(e){return o(r(e))}})},function(e,t,n){var r=n(5);r(r.S,"Object",{setPrototypeOf:n(86).set})},function(e,t){},function(e,t,n){"use strict";var r=n(2),o=n(6),i=n(4),a=n(5),u=n(42),s=n(82).KEY,l=n(10),f=n(25),c=n(23),p=n(14),d=n(1),A=n(30),v=n(29),_=n(73),b=n(77),C=n(7),h=n(9),m=n(28),g=n(13),x=n(20),B=n(84),y=n(37),j=n(3),k=n(21),w=y.f,E=j.f,S=B.f,O=r.Symbol,P=r.JSON,D=P&&P.stringify,M=d("_hidden"),F=d("toPrimitive"),U={}.propertyIsEnumerable,T=f("symbol-registry"),L=f("symbols"),I=f("op-symbols"),R=Object.prototype,q="function"==typeof O,z=r.QObject,N=!z||!z.prototype||!z.prototype.findChild,G=i&&l(function(){return 7!=x(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=w(R,t);r&&delete R[t],E(e,t,n),r&&e!==R&&E(R,t,r)}:E,W=function(e){var t=L[e]=x(O.prototype);return t._k=e,t},Y=q&&"symbol"==typeof O.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof O},$=function(e,t,n){return e===R&&$(I,t,n),C(e),t=m(t,!0),C(n),o(L,t)?(n.enumerable?(o(e,M)&&e[M][t]&&(e[M][t]=!1),n=x(n,{enumerable:g(0,!1)})):(o(e,M)||E(e,M,g(1,{})),e[M][t]=!0),G(e,t,n)):E(e,t,n)},H=function(e,t){C(e);for(var n,r=_(t=h(t)),o=0,i=r.length;i>o;)$(e,n=r[o++],t[n]);return e},Q=function(e,t){return void 0===t?x(e):H(x(e),t)},Z=function(e){var t=U.call(this,e=m(e,!0));return!(this===R&&o(L,e)&&!o(I,e))&&(!(t||!o(this,e)||!o(L,e)||o(this,M)&&this[M][e])||t)},V=function(e,t){if(e=h(e),t=m(t,!0),e!==R||!o(L,t)||o(I,t)){var n=w(e,t);return!n||!o(L,t)||o(e,M)&&e[M][t]||(n.enumerable=!0),n}},K=function(e){for(var t,n=S(h(e)),r=[],i=0;n.length>i;)o(L,t=n[i++])||t==M||t==s||r.push(t);return r},J=function(e){for(var t,n=e===R,r=S(n?I:h(e)),i=[],a=0;r.length>a;)!o(L,t=r[a++])||n&&!o(R,t)||i.push(L[t]);return i};q||(O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===R&&t.call(I,n),o(this,M)&&o(this[M],e)&&(this[M][e]=!1),G(this,e,g(1,n))};return i&&N&&G(R,e,{configurable:!0,set:t}),W(e)},u(O.prototype,"toString",function(){return this._k}),y.f=V,j.f=$,n(38).f=B.f=K,n(22).f=Z,n(39).f=J,i&&!n(19)&&u(R,"propertyIsEnumerable",Z,!0),A.f=function(e){return W(d(e))}),a(a.G+a.W+a.F*!q,{Symbol:O});for(var X="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;X.length>ee;)d(X[ee++]);for(var te=k(d.store),ne=0;te.length>ne;)v(te[ne++]);a(a.S+a.F*!q,"Symbol",{for:function(e){return o(T,e+="")?T[e]:T[e]=O(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in T)if(T[t]===e)return t},useSetter:function(){N=!0},useSimple:function(){N=!1}}),a(a.S+a.F*!q,"Object",{create:Q,defineProperty:$,defineProperties:H,getOwnPropertyDescriptor:V,getOwnPropertyNames:K,getOwnPropertySymbols:J}),P&&a(a.S+a.F*(!q||l(function(){var e=O();return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!Y(e)){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);return t=r[1],"function"==typeof t&&(n=t),!n&&b(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!Y(t))return t}),r[1]=t,D.apply(P,r)}}}),O.prototype[F]||n(8)(O.prototype,F,O.prototype.valueOf),c(O,"Symbol"),c(Math,"Math",!0),c(r.JSON,"JSON",!0)},function(e,t,n){n(29)("asyncIterator")},function(e,t,n){n(29)("observable")},function(e,t,n){n(91);for(var r=n(2),o=n(8),i=n(12),a=n(1)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s<u.length;s++){var l=u[s],f=r[l],c=f&&f.prototype;c&&!c[a]&&o(c,a,l),i[l]=i.Array}},function(e,t,n){t=e.exports=n(102)(!0),t.push([e.i,'.vuejs-uploader label{cursor:pointer}.vuejs-uploader [type=file]{display:none}.vuejs-uploader__error{background:pink;padding:10px;margin:10px 0}.vuejs-uploader__queue{list-style-type:none;padding:0;border-top:1px solid #eee;padding-top:10px}.vuejs-uploader__btn{overflow:hidden;position:relative;padding:6px 10px;border:1px solid #ccc;border-radius:3px;font-size:100%;background:inherit;font-family:inherit;margin-right:2px}.vuejs-uploader__btn--delete{padding:3px 6px}.vuejs-uploader__file{border-bottom:1px solid #eee;padding-bottom:10px;margin-bottom:10px;display:-webkit-box;display:-ms-flexbox;display:flex}.vuejs-uploader__file--preview{display:inline-block;width:100px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vuejs-uploader__file--meta{display:inline-block;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.vuejs-uploader__file--filename,.vuejs-uploader__file--filesize{vertical-align:top;margin:0}.vuejs-uploader__progress-bar{display:inline-block;height:2px;background:#32cd32}.loading:after{content:"";display:block;font-size:10px;width:1em;height:1em;margin-top:-.5em;-webkit-animation:spinner 1.5s infinite linear;animation:spinner 1.5s infinite linear;border-radius:.5em;box-shadow:1.5em 0 0 0 rgba(0,0,0,.25),1.1em 1.1em 0 0 rgba(0,0,0,.25),0 1.5em 0 0 rgba(0,0,0,.25),-1.1em 1.1em 0 0 rgba(0,0,0,.25),-1.5em 0 0 0 rgba(0,0,0,.25),-1.1em -1.1em 0 0 rgba(0,0,0,.25),0 -1.5em 0 0 rgba(0,0,0,.25),1.1em -1.1em 0 0 rgba(0,0,0,.25)}.vuejs-uploader__dir-icon{height:40px;width:60px;background:#8dcaf7;border-top:3px solid $borderColour;line-height:35px;text-align:center;position:relative;display:inline-block;color:#fff;font-weight:700;border-radius:0 3px 3px 3px;font-size:16px}.vuejs-uploader__dir-icon.open{padding-left:6px}.vuejs-uploader__dir-icon.open .dir-icon-open{display:block}.vuejs-uploader__dir-icon .dir-icon-open{display:none;position:absolute;left:0;top:0}.vuejs-uploader__dir-icon .dir-icon-open:after,.vuejs-uploader__dir-icon .dir-icon-open:before{content:"";position:absolute;height:0;width:0;top:0}.vuejs-uploader__dir-icon .dir-icon-open:before{left:0;border-left:3px solid #acdcfd;border-bottom:17px solid #8dcaf7;border-right:3px solid #8dcaf7;border-top:17px solid #acdcfd}.vuejs-uploader__dir-icon .dir-icon-open:after{left:60px;border-left:3px solid #8dcaf7;border-bottom:17px solid #fff;border-right:3px solid #fff;border-top:17px solid #8dcaf7}.vuejs-uploader__dir-icon:after,.vuejs-uploader__dir-icon:before{content:"";position:absolute;background:$borderColour;display:inline-block}.vuejs-uploader__dir-icon:before{top:-8px;left:0;height:6px;width:20px;border-radius:3px 0 0 0}.vuejs-uploader__dir-icon:after{top:-8px;left:20px;border:3px solid #fff;border-left:3px solid $borderColour;border-bottom:3px solid $borderColour}.vuejs-uploader__file-icon{font-weight:700;color:#fff;border-radius:3px;line-height:60px;height:60px;width:50px;text-align:center;display:inline-block;text-transform:uppercase;position:relative;background:#787878}.vuejs-uploader__file-icon:after{content:"";position:absolute;top:0;right:0;border-top:6px solid #fff;border-right:6px solid #fff;border-bottom:6px solid #868686;border-left:6px solid #868686}.vuejs-uploader__file-icon.doc,.vuejs-uploader__file-icon.docx{background:#4b639e}.vuejs-uploader__file-icon.doc:after,.vuejs-uploader__file-icon.docx:after{border-bottom:6px solid #5670af;border-left:6px solid #5670af}.vuejs-uploader__file-icon.key{background:#6eb4fa}.vuejs-uploader__file-icon.key:after{border-bottom:6px solid #7cbbfa;border-left:6px solid #7cbbfa}.vuejs-uploader__file-icon.numbers{background:#d77427}.vuejs-uploader__file-icon.numbers:after{border-bottom:6px solid #dc823c;border-left:6px solid #dc823c}.vuejs-uploader__file-icon.pdf{background:#d2780c}.vuejs-uploader__file-icon.pdf:after{border-bottom:6px solid #ed880e;border-left:6px solid #ed880e}.vuejs-uploader__file-icon.pptx{background:#b9593e}.vuejs-uploader__file-icon.pptx:after{border-bottom:6px solid #c4684e;border-left:6px solid #c4684e}.vuejs-uploader__file-icon.psd{background:#7dd2f9}.vuejs-uploader__file-icon.psd:after{border-bottom:6px solid #8ad6fa;border-left:6px solid #8ad6fa}.vuejs-uploader__file-icon.csv,.vuejs-uploader__file-icon.xls,.vuejs-uploader__file-icon.xlsx{background:#4e7853}.vuejs-uploader__file-icon.csv:after,.vuejs-uploader__file-icon.xls:after,.vuejs-uploader__file-icon.xlsx:after{border-bottom:6px solid #5a8b60;border-left:6px solid #5a8b60}.vuejs-uploader__file-icon.arw,.vuejs-uploader__file-icon.bmp,.vuejs-uploader__file-icon.cr2,.vuejs-uploader__file-icon.dng,.vuejs-uploader__file-icon.raf,.vuejs-uploader__file-icon.tga,.vuejs-uploader__file-icon.tif,.vuejs-uploader__file-icon.tiff{background:#62a891}.vuejs-uploader__file-icon.arw:after,.vuejs-uploader__file-icon.bmp:after,.vuejs-uploader__file-icon.cr2:after,.vuejs-uploader__file-icon.dng:after,.vuejs-uploader__file-icon.raf:after,.vuejs-uploader__file-icon.tga:after,.vuejs-uploader__file-icon.tif:after,.vuejs-uploader__file-icon.tiff:after{border-bottom:6px solid #72b19c;border-left:6px solid #72b19c}.vuejs-uploader__file-icon.m4v,.vuejs-uploader__file-icon.mov,.vuejs-uploader__file-icon.mp4,.vuejs-uploader__file-icon.ogv,.vuejs-uploader__file-icon.vtt,.vuejs-uploader__file-icon.webm{background:#62a8f5}.vuejs-uploader__file-icon.m4v:after,.vuejs-uploader__file-icon.mov:after,.vuejs-uploader__file-icon.mp4:after,.vuejs-uploader__file-icon.ogv:after,.vuejs-uploader__file-icon.vtt:after,.vuejs-uploader__file-icon.webm:after{border-bottom:6px solid #72b1f6;border-left:6px solid #72b1f6}.vuejs-uploader__file-icon.mvtt,.vuejs-uploader__file-icon.sbv,.vuejs-uploader__file-icon.srt{background:#645091}.vuejs-uploader__file-icon.mvtt:after,.vuejs-uploader__file-icon.sbv:after,.vuejs-uploader__file-icon.srt:after{border-bottom:6px solid #715aa3;border-left:6px solid #715aa3}.vuejs-uploader__file-icon.eml,.vuejs-uploader__file-icon.html,.vuejs-uploader__file-icon.rtf,.vuejs-uploader__file-icon.txt,.vuejs-uploader__file-icon.xml{background:#dcc8be;color:#333}.vuejs-uploader__file-icon.eml:after,.vuejs-uploader__file-icon.html:after,.vuejs-uploader__file-icon.rtf:after,.vuejs-uploader__file-icon.txt:after,.vuejs-uploader__file-icon.xml:after{border-bottom:6px solid #e0cdc4;border-left:6px solid #e0cdc4}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spinner{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}',"",{version:3,sources:["/Users/naveenpai/Downloads/vuejs-uploader-master/src/components/Uploader.vue"],names:[],mappings:"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",file:"Uploader.vue",sourcesContent:["\n.vuejs-uploader label {\n cursor: pointer;\n}\n.vuejs-uploader [type=file] {\n display: none;\n}\n.vuejs-uploader__error {\n background: #ffc0cb;\n padding: 10px;\n margin: 10px 0;\n}\n.vuejs-uploader__queue {\n list-style-type: none;\n padding: 0;\n border-top: 1px solid #eee;\n padding-top: 10px;\n}\n.vuejs-uploader__btn {\n overflow: hidden;\n position: relative;\n padding: 6px 10px;\n border: 1px solid #ccc;\n border-radius: 3px;\n font-size: 100%;\n background: inherit;\n font-family: inherit;\n margin-right: 2px;\n}\n.vuejs-uploader__btn--delete {\n padding: 3px 6px;\n}\n.vuejs-uploader__file {\n border-bottom: 1px solid #eee;\n padding-bottom: 10px;\n margin-bottom: 10px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.vuejs-uploader__file--preview {\n display: inline-block;\n width: 100px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.vuejs-uploader__file--meta {\n display: inline-block;\n -webkit-box-flex: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n}\n.vuejs-uploader__file--filename,\n.vuejs-uploader__file--filesize {\n vertical-align: top;\n margin: 0;\n}\n.vuejs-uploader__progress-bar {\n display: inline-block;\n height: 2px;\n background: #32cd32;\n}\n.loading:after {\n content: '';\n display: block;\n font-size: 10px;\n width: 1em;\n height: 1em;\n margin-top: -0.5em;\n -webkit-animation: spinner 1500ms infinite linear;\n animation: spinner 1500ms infinite linear;\n border-radius: 0.5em;\n box-shadow: rgba(0,0,0,0.25) 1.5em 0 0 0, rgba(0,0,0,0.25) 1.1em 1.1em 0 0, rgba(0,0,0,0.25) 0 1.5em 0 0, rgba(0,0,0,0.25) -1.1em 1.1em 0 0, rgba(0,0,0,0.25) -1.5em 0 0 0, rgba(0,0,0,0.25) -1.1em -1.1em 0 0, rgba(0,0,0,0.25) 0 -1.5em 0 0, rgba(0,0,0,0.25) 1.1em -1.1em 0 0;\n}\n.vuejs-uploader__dir-icon {\n height: 40px;\n width: 60px;\n background: #8dcaf7;\n border-top: 3px solid $borderColour;\n line-height: 35px;\n text-align: center;\n position: relative;\n display: inline-block;\n color: #fff;\n font-weight: bold;\n border-radius: 0 3px 3px 3px;\n font-size: 16px;\n}\n.vuejs-uploader__dir-icon.open {\n padding-left: 6px;\n}\n.vuejs-uploader__dir-icon.open .dir-icon-open {\n display: block;\n}\n.vuejs-uploader__dir-icon .dir-icon-open {\n display: none;\n position: absolute;\n left: 0;\n top: 0;\n}\n.vuejs-uploader__dir-icon .dir-icon-open:before,\n.vuejs-uploader__dir-icon .dir-icon-open:after {\n content: '';\n position: absolute;\n height: 0;\n width: 0;\n top: 0;\n}\n.vuejs-uploader__dir-icon .dir-icon-open:before {\n left: 0;\n border-left: 3px solid #acdcfd;\n border-bottom: 17px solid #8dcaf7;\n border-right: 3px solid #8dcaf7;\n border-top: 17px solid #acdcfd;\n}\n.vuejs-uploader__dir-icon .dir-icon-open:after {\n left: 60px;\n border-left: 3px solid #8dcaf7;\n border-bottom: 17px solid #fff;\n border-right: 3px solid #fff;\n border-top: 17px solid #8dcaf7;\n}\n.vuejs-uploader__dir-icon:before,\n.vuejs-uploader__dir-icon:after {\n content: '';\n position: absolute;\n background: $borderColour;\n display: inline-block;\n}\n.vuejs-uploader__dir-icon:before {\n top: -8px;\n left: 0;\n height: 6px;\n width: 20px;\n border-radius: 3px 0 0 0;\n}\n.vuejs-uploader__dir-icon:after {\n top: -8px;\n left: 20px;\n border: 3px solid #fff;\n border-left: 3px solid $borderColour;\n border-bottom: 3px solid $borderColour;\n}\n/**\n * File mixin\n */\n.vuejs-uploader__file-icon {\n font-weight: bold;\n color: #fff;\n border-radius: 3px;\n line-height: 60px;\n height: 60px;\n width: 50px;\n text-align: center;\n display: inline-block;\n text-transform: uppercase;\n position: relative;\n background: #787878;\n/**\n * App specific branded colours\n */\n/**\n * Generic image\n */\n/**\n * Generic video\n */\n/**\n * Generic video caption\n */\n/**\n * Generic project\n */\n/**\n * Generic text\n */\n/**\n * Generic compression\n */\n}\n.vuejs-uploader__file-icon:after {\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n border-top: 6px solid #fff;\n border-right: 6px solid #fff;\n}\n.vuejs-uploader__file-icon:after {\n border-bottom: 6px solid #868686;\n border-left: 6px solid #868686;\n}\n.vuejs-uploader__file-icon.doc,\n.vuejs-uploader__file-icon.docx {\n background: #4b639e;\n}\n.vuejs-uploader__file-icon.doc:after,\n.vuejs-uploader__file-icon.docx:after {\n border-bottom: 6px solid #5670af;\n border-left: 6px solid #5670af;\n}\n.vuejs-uploader__file-icon.key {\n background: #6eb4fa;\n}\n.vuejs-uploader__file-icon.key:after {\n border-bottom: 6px solid #7cbbfa;\n border-left: 6px solid #7cbbfa;\n}\n.vuejs-uploader__file-icon.numbers {\n background: #d77427;\n}\n.vuejs-uploader__file-icon.numbers:after {\n border-bottom: 6px solid #dc823c;\n border-left: 6px solid #dc823c;\n}\n.vuejs-uploader__file-icon.pdf {\n background: #d2780c;\n}\n.vuejs-uploader__file-icon.pdf:after {\n border-bottom: 6px solid #ed880e;\n border-left: 6px solid #ed880e;\n}\n.vuejs-uploader__file-icon.pptx {\n background: #b9593e;\n}\n.vuejs-uploader__file-icon.pptx:after {\n border-bottom: 6px solid #c4684e;\n border-left: 6px solid #c4684e;\n}\n.vuejs-uploader__file-icon.psd {\n background: #7dd2f9;\n}\n.vuejs-uploader__file-icon.psd:after {\n border-bottom: 6px solid #8ad6fa;\n border-left: 6px solid #8ad6fa;\n}\n.vuejs-uploader__file-icon.csv,\n.vuejs-uploader__file-icon.xls,\n.vuejs-uploader__file-icon.xlsx {\n background: #4e7853;\n}\n.vuejs-uploader__file-icon.csv:after,\n.vuejs-uploader__file-icon.xls:after,\n.vuejs-uploader__file-icon.xlsx:after {\n border-bottom: 6px solid #5a8b60;\n border-left: 6px solid #5a8b60;\n}\n.vuejs-uploader__file-icon.arw,\n.vuejs-uploader__file-icon.bmp,\n.vuejs-uploader__file-icon.cr2,\n.vuejs-uploader__file-icon.dng,\n.vuejs-uploader__file-icon.tif,\n.vuejs-uploader__file-icon.tiff,\n.vuejs-uploader__file-icon.raf,\n.vuejs-uploader__file-icon.tga {\n background: #62a891;\n}\n.vuejs-uploader__file-icon.arw:after,\n.vuejs-uploader__file-icon.bmp:after,\n.vuejs-uploader__file-icon.cr2:after,\n.vuejs-uploader__file-icon.dng:after,\n.vuejs-uploader__file-icon.tif:after,\n.vuejs-uploader__file-icon.tiff:after,\n.vuejs-uploader__file-icon.raf:after,\n.vuejs-uploader__file-icon.tga:after {\n border-bottom: 6px solid #72b19c;\n border-left: 6px solid #72b19c;\n}\n.vuejs-uploader__file-icon.webm,\n.vuejs-uploader__file-icon.m4v,\n.vuejs-uploader__file-icon.mov,\n.vuejs-uploader__file-icon.mp4,\n.vuejs-uploader__file-icon.ogv,\n.vuejs-uploader__file-icon.vtt {\n background: #62a8f5;\n}\n.vuejs-uploader__file-icon.webm:after,\n.vuejs-uploader__file-icon.m4v:after,\n.vuejs-uploader__file-icon.mov:after,\n.vuejs-uploader__file-icon.mp4:after,\n.vuejs-uploader__file-icon.ogv:after,\n.vuejs-uploader__file-icon.vtt:after {\n border-bottom: 6px solid #72b1f6;\n border-left: 6px solid #72b1f6;\n}\n.vuejs-uploader__file-icon.mvtt,\n.vuejs-uploader__file-icon.sbv,\n.vuejs-uploader__file-icon.srt {\n background: #645091;\n}\n.vuejs-uploader__file-icon.mvtt:after,\n.vuejs-uploader__file-icon.sbv:after,\n.vuejs-uploader__file-icon.srt:after {\n border-bottom: 6px solid #715aa3;\n border-left: 6px solid #715aa3;\n}\n.vuejs-uploader__file-icon.eml,\n.vuejs-uploader__file-icon.html,\n.vuejs-uploader__file-icon.rtf,\n.vuejs-uploader__file-icon.txt,\n.vuejs-uploader__file-icon.xml {\n background: #dcc8be;\n color: #333;\n}\n.vuejs-uploader__file-icon.eml:after,\n.vuejs-uploader__file-icon.html:after,\n.vuejs-uploader__file-icon.rtf:after,\n.vuejs-uploader__file-icon.txt:after,\n.vuejs-uploader__file-icon.xml:after {\n border-bottom: 6px solid #e0cdc4;\n border-left: 6px solid #e0cdc4;\n}\n@-webkit-keyframes spinner {\n0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n}\n100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n}\n}\n@keyframes spinner {\n0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n}\n100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n}\n}"],sourceRoot:""}])},function(e,t){function n(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var i=r(o);return[n].concat(o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"})).concat([i]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){n(48);var r=n(46)(n(45),n(47),null,null);e.exports=r.exports},function(e,t,n){function r(e){for(var t=0;t<e.length;t++){var n=e[t],r=f[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(i(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{for(var a=[],o=0;o<n.parts.length;o++)a.push(i(n.parts[o]));f[n.id]={id:n.id,refs:1,parts:a}}}}function o(){var e=document.createElement("style");return e.type="text/css",c.appendChild(e),e}function i(e){var t,n,r=document.querySelector('style[data-vue-ssr-id~="'+e.id+'"]');if(r){if(A)return v;r.parentNode.removeChild(r)}if(_){var i=d++;r=p||(p=o()),t=a.bind(null,r,i,!1),n=a.bind(null,r,i,!0)}else r=o(),t=u.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}function a(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function u(e,t){var n=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var s="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!s)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l=n(105),f={},c=s&&(document.head||document.getElementsByTagName("head")[0]),p=null,d=0,A=!1,v=function(){},_="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n){A=n;var o=l(e,t);return r(o),function(t){for(var n=[],i=0;i<o.length;i++){var a=o[i],u=f[a.id];u.refs--,n.push(u)}t?(o=l(e,t),r(o)):o=[];for(var i=0;i<n.length;i++){var u=n[i];if(0===u.refs){for(var s=0;s<u.parts.length;s++)u.parts[s]();delete f[u.id]}}}};var b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e,t){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],a=i[0],u=i[1],s=i[2],l=i[3],f={id:e+":"+o,css:u,media:s,sourceMap:l};r[a]?r[a].parts.push(f):n.push(r[a]={id:a,parts:[f]})}return n}},function(t,n){t.exports=e}])});
//# sourceMappingURL=build.js.map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment