New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-dropzone-uploader

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dropzone-uploader - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

4

dist/FileUploader.js

@@ -9,3 +9,3 @@ module.exports=function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=13)}([function(e,t,n){e.exports=n(5)()},function(e,t,n){"use strict";e.exports=n(3)},function(e,t,n){var r=n(7);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(11)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";

* LICENSE file in the root directory of this source tree.
*/var c=n(4),r="function"==typeof Symbol&&Symbol.for,p=r?Symbol.for("react.element"):60103,u=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,i=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112;r&&Symbol.for("react.placeholder");var m="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n,r,o,a,i,l){if(!e){if((e=void 0)===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,a,i,l],u=0;(e=Error(t.replace(/%s/g,function(){return s[u++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function h(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||g}function v(){}function w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||g}h.prototype.isReactComponent={},h.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&y("85"),this.updater.enqueueSetState(this,e,t,"setState")},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=h.prototype;var x=w.prototype=new v;x.constructor=w,c(x,h.prototype),x.isPureReactComponent=!0;var C={current:null,currentDispatcher:null},I=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,n){var r=void 0,o={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)I.call(t,r)&&!S.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:p,type:e,key:a,ref:i,props:o,_owner:C.current}}function j(e){return"object"==typeof e&&null!==e&&e.$$typeof===p}var O=/\/+/g,_=[];function D(e,t,n,r){if(_.length){var o=_.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function P(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,_.length<10&&_.push(e)}function E(e,t,n){return null==e?0:function e(t,n,r,o){var a=typeof t;"undefined"!==a&&"boolean"!==a||(t=null);var i=!1;if(null===t)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case p:case u:i=!0}}if(i)return r(o,t,""===n?"."+R(t,0):n),1;if(i=0,n=""===n?".":n+":",Array.isArray(t))for(var l=0;l<t.length;l++){var s=n+R(a=t[l],l);i+=e(a,s,r,o)}else if("function"==typeof(s=null===t||"object"!=typeof t?null:"function"==typeof(s=m&&t[m]||t["@@iterator"])?s:null))for(t=s.call(t),l=0;!(a=t.next()).done;)i+=e(a=a.value,s=n+R(a,l++),r,o);else"object"===a&&y("31","[object Object]"==(r=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":r,"");return i}(e,"",t,n)}function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function M(e,t){e.func.call(e.context,t,e.count++)}function T(e,t,n){var r,o,a=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?k(e,a,n,function(e){return e}):null!=e&&(j(e)&&(o=i+(!(r=e).key||t&&t.key===e.key?"":(""+e.key).replace(O,"$&/")+"/")+n,e={$$typeof:p,type:r.type,key:o,ref:r.ref,props:r.props,_owner:r._owner}),a.push(e))}function k(e,t,n,r,o){var a="";null!=n&&(a=(""+n).replace(O,"$&/")+"/"),E(e,T,t=D(t,a,r,o)),P(t)}var N={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return k(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;E(e,M,t=D(null,null,t,n)),P(t)},count:function(e){return E(e,function(){return null},null)},toArray:function(e){var t=[];return k(e,t,null,function(e){return e}),t},only:function(e){return j(e)||y("143"),e}},createRef:function(){return{current:null}},Component:h,PureComponent:w,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,Provider:null,Consumer:null,unstable_read:null}).Provider={$$typeof:l,_context:e},(e.Consumer=e).unstable_read=function(e,t){var n=C.currentDispatcher;return null===n&&y("277"),n.readContext(e,t)}.bind(null,e),e},forwardRef:function(e){return{$$typeof:d,render:e}},Fragment:o,StrictMode:a,unstable_AsyncMode:f,unstable_Profiler:i,createElement:A,cloneElement:function(e,t,n){null==e&&y("267",e);var r=void 0,o=c({},e.props),a=e.key,i=e.ref,l=e._owner;if(null!=t){void 0!==t.ref&&(i=t.ref,l=C.current),void 0!==t.key&&(a=""+t.key);var s=void 0;for(r in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)I.call(t,r)&&!S.hasOwnProperty(r)&&(o[r]=void 0===t[r]&&void 0!==s?s[r]:t[r])}if(1===(r=arguments.length-2))o.children=n;else if(1<r){s=Array(r);for(var u=0;u<r;u++)s[u]=arguments[u+2];o.children=s}return{$$typeof:p,type:e.type,key:a,ref:i,props:o,_owner:l}},createFactory:function(e){var t=A.bind(null,e);return t.type=e,t},isValidElement:j,version:"16.5.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:C,assign:c}},U=N;e.exports=U.default||U},function(e,t,n){"use strict";
*/var c=n(4),r="function"==typeof Symbol&&Symbol.for,p=r?Symbol.for("react.element"):60103,l=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,i=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112;r&&Symbol.for("react.placeholder");var m="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n,r,o,a,i,u){if(!e){if((e=void 0)===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,a,i,u],l=0;(e=Error(t.replace(/%s/g,function(){return s[l++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||v}function h(){}function x(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||v}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&y("85"),this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},h.prototype=b.prototype;var w=x.prototype=new h;w.constructor=x,c(w,b.prototype),w.isPureReactComponent=!0;var C={current:null,currentDispatcher:null},I=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,n){var r=void 0,o={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)I.call(t,r)&&!S.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){for(var s=Array(u),l=0;l<u;l++)s[l]=arguments[l+2];o.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===o[r]&&(o[r]=u[r]);return{$$typeof:p,type:e,key:a,ref:i,props:o,_owner:C.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===p}var j=/\/+/g,_=[];function R(e,t,n,r){if(_.length){var o=_.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function D(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,_.length<10&&_.push(e)}function E(e,t,n){return null==e?0:function e(t,n,r,o){var a=typeof t;"undefined"!==a&&"boolean"!==a||(t=null);var i=!1;if(null===t)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case p:case l:i=!0}}if(i)return r(o,t,""===n?"."+P(t,0):n),1;if(i=0,n=""===n?".":n+":",Array.isArray(t))for(var u=0;u<t.length;u++){var s=n+P(a=t[u],u);i+=e(a,s,r,o)}else if("function"==typeof(s=null===t||"object"!=typeof t?null:"function"==typeof(s=m&&t[m]||t["@@iterator"])?s:null))for(t=s.call(t),u=0;!(a=t.next()).done;)i+=e(a=a.value,s=n+P(a,u++),r,o);else"object"===a&&y("31","[object Object]"==(r=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":r,"");return i}(e,"",t,n)}function P(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function k(e,t){e.func.call(e.context,t,e.count++)}function M(e,t,n){var r,o,a=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?T(e,a,n,function(e){return e}):null!=e&&(O(e)&&(o=i+(!(r=e).key||t&&t.key===e.key?"":(""+e.key).replace(j,"$&/")+"/")+n,e={$$typeof:p,type:r.type,key:o,ref:r.ref,props:r.props,_owner:r._owner}),a.push(e))}function T(e,t,n,r,o){var a="";null!=n&&(a=(""+n).replace(j,"$&/")+"/"),E(e,M,t=R(t,a,r,o)),D(t)}var U={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return T(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;E(e,k,t=R(null,null,t,n)),D(t)},count:function(e){return E(e,function(){return null},null)},toArray:function(e){var t=[];return T(e,t,null,function(e){return e}),t},only:function(e){return O(e)||y("143"),e}},createRef:function(){return{current:null}},Component:b,PureComponent:x,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,Provider:null,Consumer:null,unstable_read:null}).Provider={$$typeof:u,_context:e},(e.Consumer=e).unstable_read=function(e,t){var n=C.currentDispatcher;return null===n&&y("277"),n.readContext(e,t)}.bind(null,e),e},forwardRef:function(e){return{$$typeof:d,render:e}},Fragment:o,StrictMode:a,unstable_AsyncMode:f,unstable_Profiler:i,createElement:A,cloneElement:function(e,t,n){null==e&&y("267",e);var r=void 0,o=c({},e.props),a=e.key,i=e.ref,u=e._owner;if(null!=t){void 0!==t.ref&&(i=t.ref,u=C.current),void 0!==t.key&&(a=""+t.key);var s=void 0;for(r in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)I.call(t,r)&&!S.hasOwnProperty(r)&&(o[r]=void 0===t[r]&&void 0!==s?s[r]:t[r])}if(1===(r=arguments.length-2))o.children=n;else if(1<r){s=Array(r);for(var l=0;l<r;l++)s[l]=arguments[l+2];o.children=s}return{$$typeof:p,type:e.type,key:a,ref:i,props:o,_owner:u}},createFactory:function(e){var t=A.bind(null,e);return t.type=e,t},isValidElement:O,version:"16.5.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:C,assign:c}},L=U;e.exports=L.default||L},function(e,t,n){"use strict";
/*

@@ -15,2 +15,2 @@ object-assign

@license MIT
*/var s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),a=1;a<arguments.length;a++){for(var i in n=Object(arguments[a]))u.call(n,i)&&(o[i]=n[i]);if(s){r=s(n);for(var l=0;l<r.length;l++)c.call(n,r[l])&&(o[r[l]]=n[r[l]])}}return o}},function(e,t,n){"use strict";var l=n(6);function r(){}e.exports=function(){function e(e,t,n,r,o,a){if(a!==l){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}var n={array:e.isRequired=e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r=n(8);(e.exports=n(9)(!1)).push([e.i,".uploader-dropzone {\n height: 60vh;\n max-width: 100%;\n overflow: scroll;\n font-family: 'roboto', sans-serif;\n margin: 0 auto;\n box-sizing: border-box;\n transition: all .15s linear;\n}\n\n.uploader-link {\n font-family: 'roboto', sans-serif;\n font-size: 15px;\n margin-top: 8px;\n color: #3DC59F;\n letter-spacing: 0.4px;\n line-height: 16px;\n text-decoration: none;\n display: table;\n cursor: pointer;\n transition: all .15s linear;\n}\n\n.uploader-dropzoneInstructions {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 100%;\n}\n\n.uploader-previewListContainer {\n margin-top: 40px;\n}\n\n.uploader-largeText {\n font-family: 'roboto', sans-serif;\n font-size: 22px;\n color: #141418;\n letter-spacing: 0;\n line-height: 32px;\n margin-bottom: 10px;\n}\n\n.uploader-smallText {\n font-family: 'roboto', sans-serif;\n font-size: 18px;\n color: #141418;\n letter-spacing: 0;\n line-height: 32px;\n margin-bottom: 20px;\n}\n\n.uploader-active {\n background-color: #F6F8FA;\n border: 4px solid #3DC59F;\n}\n\n.uploader-input {\n display: none;\n}\n\n.uploader-inputLabel {\n font-family: 'roboto', sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n font-size: 13px;\n color: #3DC59F;\n letter-spacing: 0.35px;\n text-align: center;\n line-height: 16px;\n border: 1px solid #3DC59F;\n display: inline-block;\n padding: 13px 25px 11px 25px;\n cursor: pointer;\n transition: all .15s linear;\n}\n\n.uploader-inputLabel:hover {\n border: 1px solid #01886C;\n}\n\n.uploader-addFiles {\n padding-left: 5%;\n margin-bottom: 20px;\n}\n\n.uploader-addFiles .inputLabel {\n color: 000000;\n opacity: 0.8;\n border: 1px solid #141418;\n}\n\n.uploader-addFiles .inputLabel:hover {\n border: 1px solid #4D4D4D;\n}\n\n.uploader-previewContainer {\n padding: 0 13% 0 5%;\n margin-bottom: 20px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n position: relative;\n}\n\n.uploader-statusContainer {\n display: flex;\n align-items: center;\n}\n\n.uploader-preview {\n height: 70px;\n width: auto;\n max-width: 140px;\n}\n\n.uploader-buttonContainer {\n border-top: 1px solid #E1E7ED;\n padding: 20px 5%;\n}\n\n.uploader-abortButton {\n background: no-repeat url("+r(n(10))+") top right;\n background-size: 10px 10px;\n background-position: center;\n width: 25px;\n height: 25px;\n cursor: pointer;\n z-index: 11;\n opacity: 1.0;\n margin: 0 0 2px 10px;\n}\n",""])},function(e,t){e.exports=function(e){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},function(e,t){e.exports=function(n){var i=[];return i.toString=function(){return this.map(function(e){var t=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(i=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),a=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(a).concat([o]).join("\n")}var i;return[n].join("\n")}(e,n);return e[2]?"@media "+e[2]+"{"+t+"}":t}).join("")},i.i=function(e,t){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(n[o]=!0)}for(r=0;r<e.length;r++){var a=e[r];"number"==typeof a[0]&&n[a[0]]||(t&&!a[2]?a[2]=t:t&&(a[2]="("+a[2]+") and ("+t+")"),i.push(a))}},i}},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDQ5LjEgKDUxMTQ3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5TaGFwZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxkZWZzPjwvZGVmcz4KICAgIDxnIGlkPSJBY2NvdW50LUZsb3dzIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIiBvcGFjaXR5PSIwLjUzOTk5OTk2MiI+CiAgICAgICAgPGcgaWQ9Ijo6LWxvZ2luIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtODg5LjAwMDAwMCwgLTIxMi4wMDAwMDApIiBmaWxsPSIjMDAwMDAwIj4KICAgICAgICAgICAgPGcgaWQ9Ijo6LW1vZGFsIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MDguMDAwMDAwLCAxODMuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8ZyBpZD0iY2xvc2UiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDM4OC4wMDAwMDAsIDM2LjAwMDAwMCkgc2NhbGUoMSwgLTEpIHRyYW5zbGF0ZSgtMzg4LjAwMDAwMCwgLTM2LjAwMDAwMCkgdHJhbnNsYXRlKDM3Ni4wMDAwMDAsIDI0LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJTaGFwZSIgcG9pbnRzPSIxOSAxNy42IDE3LjYgMTkgMTIgMTMuNCA2LjQgMTkgNSAxNy42IDEwLjYgMTIgNSA2LjQgNi40IDUgMTIgMTAuNiAxNy42IDUgMTkgNi40IDEzLjQgMTIiPjwvcG9seWdvbj4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"},function(e,t,r){var n,o,a,s={},u=(n=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=n.apply(this,arguments)),o}),i=(a={},function(e,t){if("function"==typeof e)return e();if(void 0===a[e]){var n=function(e,t){return t?t.querySelector(e):document.querySelector(e)}.call(this,e,t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}a[e]=n}return a[e]}),c=null,p=0,l=[],f=r(12);function d(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=s[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(v(r.parts[a],t))}else{var i=[];for(a=0;a<r.parts.length;a++)i.push(v(r.parts[a],t));s[r.id]={id:r.id,refs:1,parts:i}}}}function m(e,t){for(var n=[],r={},o=0;o<e.length;o++){var a=e[o],i=t.base?a[0]+t.base:a[0],l={css:a[1],media:a[2],sourceMap:a[3]};r[i]?r[i].parts.push(l):n.push(r[i]={id:i,parts:[l]})}return n}function y(e,t){var n=i(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=l[l.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),l.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=i(e.insertAt.before,n);n.insertBefore(t,o)}}function g(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=l.indexOf(e);0<=t&&l.splice(t,1)}function b(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var n=function(){0;return r.nc}();n&&(e.attrs.nonce=n)}return h(t,e.attrs),y(e,t),t}function h(t,n){Object.keys(n).forEach(function(e){t.setAttribute(e,n[e])})}function v(t,e){var n,r,o,a,i,l;if(e.transform&&t.css){if(!(a="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=a}if(e.singleton){var s=p++;n=c||(c=b(e)),r=C.bind(null,n,s,!1),o=C.bind(null,n,s,!0)}else o=t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(i=e,l=document.createElement("link"),void 0===i.attrs.type&&(i.attrs.type="text/css"),i.attrs.rel="stylesheet",h(l,i.attrs),y(i,l),r=function(e,t,n){var r=n.css,o=n.sourceMap,a=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||a)&&(r=f(r));o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var i=new Blob([r],{type:"text/css"}),l=e.href;e.href=URL.createObjectURL(i),l&&URL.revokeObjectURL(l)}.bind(null,n=l,e),function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=b(e),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),function(){g(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}e.exports=function(e,i){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(i=i||{}).attrs="object"==typeof i.attrs?i.attrs:{},i.singleton||"boolean"==typeof i.singleton||(i.singleton=u()),i.insertInto||(i.insertInto="head"),i.insertAt||(i.insertAt="bottom");var l=m(e,i);return d(l,i),function(e){for(var t=[],n=0;n<l.length;n++){var r=l[n];(o=s[r.id]).refs--,t.push(o)}e&&d(m(e,i),i);for(n=0;n<t.length;n++){var o;if(0===(o=t[n]).refs){for(var a=0;a<o.parts.length;a++)o.parts[a]();delete s[o.id]}}}};var w,x=(w=[],function(e,t){return w[e]=t,w.filter(Boolean).join("\n")});function C(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=x(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var o=t.protocol+"//"+t.host,a=o+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var n,r=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(r)?e:(n=0===r.indexOf("//")?r:0===r.indexOf("/")?o+r:a+r.replace(/^\.\//,""),"url("+JSON.stringify(n)+")")})}},function(e,t,n){"use strict";n.r(t);var r=n(1),C=n.n(r),o=n(0),a=n.n(o);n(2);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(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),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,u(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,C.a.PureComponent),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.meta,n=t.name,r=void 0===n?"":n,o=t.percent,a=void 0===o?0:o,i=t.size,l=void 0===i?0:i,s=t.previewUrl,u=t.type,c=t.status,p=e.showProgress,f=e.onCancel,d=e.onRemove,m="".concat(r||"?",", ").concat(function(e){for(var t=0,n=e;1024<=n;)n/=1024,t+=1;return"".concat(n.toFixed(10<=n||t<1?0:1)).concat(["bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][t])}(l));if("error_file_size"!==c)return"error_upload_params"!==c&&"error_upload"!==c||(m="".concat(m," (upload failed)")),"aborted"===c&&(m="".concat(m," (cancelled)")),C.a.createElement("div",{className:"uploader-previewContainer"},s&&C.a.createElement("img",{className:"uploader-preview",src:s,alt:m,title:m}),!s&&C.a.createElement("span",null,m),C.a.createElement("div",{className:"uploader-statusContainer"},p&&C.a.createElement("progress",{max:100,value:"done"===c?100:a}),"uploading"===c&&f&&C.a.createElement("span",{className:"uploader-abortButton",onClick:f}),"uploading"!==c&&d&&C.a.createElement("span",{className:"uploader-abortButton",onClick:d})));var y=C.a.createElement("span",null,"File exceeds size limit...");return u.startsWith("image/")&&(y=C.a.createElement("span",null,"Image exceeds size limit...")),u.startsWith("video/")&&(y=C.a.createElement("div",null,C.a.createElement("span",null,"Video exceeds size limit..."))),C.a.createElement("div",{className:"uploader-previewContainer"},C.a.createElement("span",null,m),y,d&&C.a.createElement("span",{className:"uploader-abortButton",onClick:d}))}}])&&l(n.prototype,r),o&&l(n,o),t}();p.propTypes={meta:a.a.shape({status:a.a.oneOf(["preparing","error_file_size","uploading","error_upload_params","aborted","error_upload","done"]).isRequired,type:a.a.string.isRequired,name:a.a.string,percent:a.a.number,size:a.a.number,previewUrl:a.a.string,uploadedDate:a.a.string.isRequired,lastModifiedDate:a.a.string,width:a.a.number,height:a.a.number}).isRequired,showProgress:a.a.bool.isRequired,onCancel:a.a.func,onRemove:a.a.func};var I=p,f=function(e){var t=e.onSubmit,n=e.disabled,r=e.submitButtonClassName;return C.a.createElement("div",{className:r||"uploader-buttonContainer"},C.a.createElement("button",{onClick:t,disabled:n},"UPLOAD"))};f.propTypes={onSubmit:a.a.func.isRequired,disabled:a.a.bool,submitButtonClassName:a.a.string};var S=f;function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(e){w(t,e,n[e])})}return t}function m(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function y(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function g(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),Object.defineProperty(e,r.key,r)}}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=0,j=function(e){function r(e){var C,t,n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),t=this,n=b(r).call(this,e),w(v(v(C=!n||"object"!==d(n)&&"function"!=typeof n?v(t):n)),"handleDragEnter",function(e){e.preventDefault(),e.stopPropagation(),C.setState({active:!0})}),w(v(v(C)),"handleDragOver",function(e){e.preventDefault(),e.stopPropagation(),clearTimeout(C._timeoutId),C.setState({active:!0})}),w(v(v(C)),"handleDragLeave",function(e){e.preventDefault(),e.stopPropagation(),C._timeoutId=setTimeout(function(){return C.setState({active:!1})},150)}),w(v(v(C)),"handleDrop",function(e){e.preventDefault(),e.stopPropagation(),C.setState({active:!1});var t=e.dataTransfer.files;C.handleFiles(y(t))}),w(v(v(C)),"handleSubmit",function(){var e=C.props,t=e.onSubmit,n=e.submitAll;t&&t(n?C._files:C._files.filter(function(e){return"done"===e.meta.status}))}),w(v(v(C)),"handleCancel",function(t){var e=C._files.findIndex(function(e){return e.meta.id===t});-1!==e&&C._files[e].xhr&&C._files[e].xhr.abort()}),w(v(v(C)),"handleRemove",function(t){var e=C.props.onRemove,n=C._files.findIndex(function(e){return e.meta.id===t});-1!==n&&(e&&e(C._files[n]),C._files.splice(n,1),C.forceUpdate())}),w(v(v(C)),"handleFiles",function(e){e.forEach(C.handleFile)}),w(v(v(C)),"handleChangeStatus",function(e){C.props.onChangeStatus&&C.props.onChangeStatus(e,e.meta.status)}),w(v(v(C)),"handleFile",function(e){var t=e.name,n=e.size,r=e.type,o=e.lastModified,a=C.props,i=a.maxSizeBytes,l=a.maxFiles,s=a.allowedTypePrefixes,u=a.generatePreview,c=a.getUploadParams,p=a.onUploadReady;if((!s||s.some(function(e){return r.startsWith(e)}))&&!(C._files.length>=l)){var f=(new Date).toISOString(),d=o&&new Date(o).toISOString(),m={file:e,meta:{name:t,size:n,type:r,lastModifiedDate:d,uploadedDate:f,status:"preparing",percent:0,id:x}};if(C._files.push(m),C.handleChangeStatus(m),C.forceUpdate(),x+=1,i<n)return m.meta.status="error_file_size",C.handleChangeStatus(m),void C.forceUpdate();u&&C.generatePreview(m);var y=!1,g=function(){y||(y=!0,m.meta.status=c?(C.uploadFile(m),"uploading"):"done",C.handleChangeStatus(m),C.forceUpdate())};if(p){m.triggerUpload=g;var b=p(m);if(b&&!0===b.delayUpload)return}g()}}),w(v(v(C)),"generatePreview",function(t){if(t.meta.type.startsWith("image/")){var n=new FileReader;n.readAsDataURL(t.file),n.onloadend=function(){var e=new Image;e.src=n.result,e.onload=function(){t.meta.width=e.width,t.meta.height=e.height},t.meta.previewUrl=n.result,C.forceUpdate()}}}),w(v(v(C)),"uploadFile",function(){var l,t=(l=regeneratorRuntime.mark(function e(t){var n,r,o,a,i,l,s,u,c,p,f,d,m,y,g,b,h,v,w,x;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=C.props.getUploadParams,e.next=3,n(t);case 3:if(r=e.sent,a=(o=r||{}).fields,i=void 0===a?{}:a,l=o.headers,s=void 0===l?{}:l,u=o.meta,c=void 0===u?{}:u,p=o.method,f=void 0===p?"POST":p,d=o.url){e.next=10;break}return t.meta.status="error_upload_params",C.handleChangeStatus(t),C.forceUpdate(),e.abrupt("return");case 10:for(m=new XMLHttpRequest,y=new FormData,m.open(f,d,!0),g=Object.keys(i),b=0;b<g.length;b++)h=g[b],y.append(h,i[h]);for(m.setRequestHeader("X-Requested-With","XMLHttpRequest"),v=Object.keys(s),w=0;w<v.length;w++)x=v[w],m.setRequestHeader(x,s[x]);t.meta=A({},t.meta,c),m.upload.addEventListener("progress",function(e){t.meta.percent=100*e.loaded/e.total||100,C.forceUpdate()}),m.addEventListener("readystatechange",function(e){4===m.readyState&&(0===m.status?t.meta.status="aborted":m.status<400?(t.meta.percent=100,t.meta.status="done"):t.meta.status="error_upload",C.handleChangeStatus(t),C.forceUpdate())}),y.append("file",t.file),m.send(y),t.xhr=m;case 24:case"end":return e.stop()}},e,this)}),function(){var e=this,i=arguments;return new Promise(function(t,n){var r=l.apply(e,i);function o(e){m(r,t,n,o,a,"next",e)}function a(e){m(r,t,n,o,a,"throw",e)}o(void 0)})});return function(e){return t.apply(this,arguments)}}()),C.state={active:!1},C._files=[],C}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(r,C.a.Component),t=r,(n=[{key:"componentWillUnmount",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,o=this._files[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var a=r.value;"uploading"===a.meta.status&&a.xhr.abort()}}catch(e){t=!0,n=e}finally{try{e||null==o.return||o.return()}finally{if(t)throw n}}}},{key:"render",value:function(){var t=this,e=this.props,n=e.instructions,r=e.subInstructions,o=e.maxFiles,a=e.accept,i=e.onSubmit,l=e.getUploadParams,s=e.FilePreviewComponent,u=e.SubmitButtonComponent,c=e.dropzoneClassName,p=e.dropzoneActiveClassName,f=e.submitButtonClassName,d=e.instructionsClassName,m=e.canCancel,y=e.canRemove,g=this.state.active,b=function(e){return C.a.createElement(C.a.Fragment,null,C.a.createElement("label",{htmlFor:"fileUploaderInputId",className:"uploader-inputLabel"},e),C.a.createElement("input",{id:"fileUploaderInputId",className:"uploader-input",type:"file",multiple:!0,accept:a,onChange:function(e){return t.handleFiles(Array.from(e.target.files))}}))},h=s||I,v=this._files.map(function(e){return C.a.createElement(h,{key:e.meta.id,meta:A({},e.meta),showProgress:Boolean(l),onCancel:m&&function(){return t.handleCancel(e.meta.id)},onRemove:y&&function(){return t.handleRemove(e.meta.id)}})}),w=c||"uploader-dropzone";g&&(w="".concat(w," ").concat(p||"uploader-active"));var x=u||S;return C.a.createElement(C.a.Fragment,null,C.a.createElement("div",{className:w,onDragEnter:this.handleDragEnter,onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},0===this._files.length&&C.a.createElement("div",{className:d||"uploader-dropzoneInstructions"},C.a.createElement("span",{className:"uploader-largeText"},n||1===o.length?"Drag a File":"Drag Files"),r&&C.a.createElement("span",{className:"uploader-smallText"},r),C.a.createElement("span",{className:"uploader-smallText"},"- or you can -"),b(1===o.length?"Choose a File":"Choose Files")),0<this._files.length&&C.a.createElement("div",{className:"uploader-previewListContainer"},v,this._files.length<o&&C.a.createElement("div",{className:"uploader-addFiles"},b("Add")))),0<this._files.length&&i&&C.a.createElement(x,{onSubmit:this.handleSubmit,disabled:this._files.some(function(e){return"uploading"===e.meta.status||"preparing"===e.meta.status})||!this._files.some(function(e){return"done"===e.meta.status}),submitButtonClassName:f}))}}])&&g(t.prototype,n),o&&g(t,o),r}();j.propTypes={onChangeStatus:a.a.func,onUploadReady:a.a.func,getUploadParams:a.a.func,onSubmit:a.a.func,onRemove:a.a.func,submitAll:a.a.bool,canCancel:a.a.bool,canRemove:a.a.bool,generatePreview:a.a.bool,FilePreviewComponent:a.a.any,SubmitButtonComponent:a.a.any,allowedTypePrefixes:a.a.arrayOf(a.a.string),accept:a.a.string,maxSizeBytes:a.a.number.isRequired,maxFiles:a.a.number.isRequired,instructions:a.a.string,subInstructions:a.a.string,dropzoneClassName:a.a.string,dropzoneActiveClassName:a.a.string,instructionsClassName:a.a.string,submitButtonClassName:a.a.string},j.defaultProps={submitAll:!1,canCancel:!0,canRemove:!0,generatePreview:!0,accept:"*",maxSizeBytes:Number.MAX_SAFE_INTEGER,maxFiles:Number.MAX_SAFE_INTEGER};t.default=j}]);
*/var s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),a=1;a<arguments.length;a++){for(var i in n=Object(arguments[a]))l.call(n,i)&&(o[i]=n[i]);if(s){r=s(n);for(var u=0;u<r.length;u++)c.call(n,r[u])&&(o[r[u]]=n[r[u]])}}return o}},function(e,t,n){"use strict";var u=n(6);function r(){}e.exports=function(){function e(e,t,n,r,o,a){if(a!==u){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}var n={array:e.isRequired=e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r=n(8);(e.exports=n(9)(!1)).push([e.i,".uploader-dropzone {\n height: 60vh;\n max-width: 100%;\n overflow: scroll;\n font-family: 'roboto', sans-serif;\n margin: 0 auto;\n box-sizing: border-box;\n transition: all .15s linear;\n}\n\n.uploader-link {\n font-family: 'roboto', sans-serif;\n font-size: 15px;\n margin-top: 8px;\n color: #3DC59F;\n letter-spacing: 0.4px;\n line-height: 16px;\n text-decoration: none;\n display: table;\n cursor: pointer;\n transition: all .15s linear;\n}\n\n.uploader-dropzoneInstructions {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 100%;\n}\n\n.uploader-previewListContainer {\n margin-top: 40px;\n}\n\n.uploader-largeText {\n font-family: 'roboto', sans-serif;\n font-size: 22px;\n color: #141418;\n letter-spacing: 0;\n line-height: 32px;\n margin-bottom: 10px;\n}\n\n.uploader-smallText {\n font-family: 'roboto', sans-serif;\n font-size: 18px;\n color: #141418;\n letter-spacing: 0;\n line-height: 32px;\n margin-bottom: 20px;\n}\n\n.uploader-active {\n background-color: #F6F8FA;\n border: 4px solid #3DC59F;\n}\n\n.uploader-input {\n display: none;\n}\n\n.uploader-inputLabel {\n font-family: 'roboto', sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n font-size: 13px;\n color: #3DC59F;\n letter-spacing: 0.35px;\n text-align: center;\n line-height: 16px;\n border: 1px solid #3DC59F;\n display: inline-block;\n padding: 13px 25px 11px 25px;\n cursor: pointer;\n transition: all .15s linear;\n}\n\n.uploader-inputLabel:hover {\n border: 1px solid #01886C;\n}\n\n.uploader-addFiles {\n padding-left: 5%;\n margin-bottom: 20px;\n}\n\n.uploader-addFiles .inputLabel {\n color: 000000;\n opacity: 0.8;\n border: 1px solid #141418;\n}\n\n.uploader-addFiles .inputLabel:hover {\n border: 1px solid #4D4D4D;\n}\n\n.uploader-previewContainer {\n padding: 0 13% 0 5%;\n margin-bottom: 20px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n position: relative;\n}\n\n.uploader-statusContainer {\n display: flex;\n align-items: center;\n}\n\n.uploader-preview {\n height: 70px;\n width: auto;\n max-width: 140px;\n}\n\n.uploader-buttonContainer {\n border-top: 1px solid #E1E7ED;\n padding: 20px 5%;\n}\n\n.uploader-abortButton {\n background: no-repeat url("+r(n(10))+") top right;\n background-size: 10px 10px;\n background-position: center;\n width: 25px;\n height: 25px;\n cursor: pointer;\n z-index: 11;\n opacity: 1.0;\n margin: 0 0 2px 10px;\n}\n",""])},function(e,t){e.exports=function(e){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},function(e,t){e.exports=function(n){var i=[];return i.toString=function(){return this.map(function(e){var t=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(i=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),a=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(a).concat([o]).join("\n")}var i;return[n].join("\n")}(e,n);return e[2]?"@media "+e[2]+"{"+t+"}":t}).join("")},i.i=function(e,t){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(n[o]=!0)}for(r=0;r<e.length;r++){var a=e[r];"number"==typeof a[0]&&n[a[0]]||(t&&!a[2]?a[2]=t:t&&(a[2]="("+a[2]+") and ("+t+")"),i.push(a))}},i}},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDQ5LjEgKDUxMTQ3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5TaGFwZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxkZWZzPjwvZGVmcz4KICAgIDxnIGlkPSJBY2NvdW50LUZsb3dzIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIiBvcGFjaXR5PSIwLjUzOTk5OTk2MiI+CiAgICAgICAgPGcgaWQ9Ijo6LWxvZ2luIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtODg5LjAwMDAwMCwgLTIxMi4wMDAwMDApIiBmaWxsPSIjMDAwMDAwIj4KICAgICAgICAgICAgPGcgaWQ9Ijo6LW1vZGFsIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MDguMDAwMDAwLCAxODMuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8ZyBpZD0iY2xvc2UiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDM4OC4wMDAwMDAsIDM2LjAwMDAwMCkgc2NhbGUoMSwgLTEpIHRyYW5zbGF0ZSgtMzg4LjAwMDAwMCwgLTM2LjAwMDAwMCkgdHJhbnNsYXRlKDM3Ni4wMDAwMDAsIDI0LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJTaGFwZSIgcG9pbnRzPSIxOSAxNy42IDE3LjYgMTkgMTIgMTMuNCA2LjQgMTkgNSAxNy42IDEwLjYgMTIgNSA2LjQgNi40IDUgMTIgMTAuNiAxNy42IDUgMTkgNi40IDEzLjQgMTIiPjwvcG9seWdvbj4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"},function(e,t,r){var n,o,a,s={},l=(n=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=n.apply(this,arguments)),o}),i=(a={},function(e,t){if("function"==typeof e)return e();if(void 0===a[e]){var n=function(e,t){return t?t.querySelector(e):document.querySelector(e)}.call(this,e,t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}a[e]=n}return a[e]}),c=null,p=0,u=[],f=r(12);function d(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=s[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(h(r.parts[a],t))}else{var i=[];for(a=0;a<r.parts.length;a++)i.push(h(r.parts[a],t));s[r.id]={id:r.id,refs:1,parts:i}}}}function m(e,t){for(var n=[],r={},o=0;o<e.length;o++){var a=e[o],i=t.base?a[0]+t.base:a[0],u={css:a[1],media:a[2],sourceMap:a[3]};r[i]?r[i].parts.push(u):n.push(r[i]={id:i,parts:[u]})}return n}function y(e,t){var n=i(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=u[u.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),u.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=i(e.insertAt.before,n);n.insertBefore(t,o)}}function v(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=u.indexOf(e);0<=t&&u.splice(t,1)}function g(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var n=function(){0;return r.nc}();n&&(e.attrs.nonce=n)}return b(t,e.attrs),y(e,t),t}function b(t,n){Object.keys(n).forEach(function(e){t.setAttribute(e,n[e])})}function h(t,e){var n,r,o,a,i,u;if(e.transform&&t.css){if(!(a="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=a}if(e.singleton){var s=p++;n=c||(c=g(e)),r=C.bind(null,n,s,!1),o=C.bind(null,n,s,!0)}else o=t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(i=e,u=document.createElement("link"),void 0===i.attrs.type&&(i.attrs.type="text/css"),i.attrs.rel="stylesheet",b(u,i.attrs),y(i,u),r=function(e,t,n){var r=n.css,o=n.sourceMap,a=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||a)&&(r=f(r));o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var i=new Blob([r],{type:"text/css"}),u=e.href;e.href=URL.createObjectURL(i),u&&URL.revokeObjectURL(u)}.bind(null,n=u,e),function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(e),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),function(){v(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}e.exports=function(e,i){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(i=i||{}).attrs="object"==typeof i.attrs?i.attrs:{},i.singleton||"boolean"==typeof i.singleton||(i.singleton=l()),i.insertInto||(i.insertInto="head"),i.insertAt||(i.insertAt="bottom");var u=m(e,i);return d(u,i),function(e){for(var t=[],n=0;n<u.length;n++){var r=u[n];(o=s[r.id]).refs--,t.push(o)}e&&d(m(e,i),i);for(n=0;n<t.length;n++){var o;if(0===(o=t[n]).refs){for(var a=0;a<o.parts.length;a++)o.parts[a]();delete s[o.id]}}}};var x,w=(x=[],function(e,t){return x[e]=t,x.filter(Boolean).join("\n")});function C(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var o=t.protocol+"//"+t.host,a=o+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var n,r=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(r)?e:(n=0===r.indexOf("//")?r:0===r.indexOf("/")?o+r:a+r.replace(/^\.\//,""),"url("+JSON.stringify(n)+")")})}},function(e,t,n){"use strict";n.r(t);var r=n(1),w=n.n(r),o=n(0),a=n.n(o),g=function(e){for(var t=0,n=e;1024<=n;)n/=1024,t+=1;return"".concat(n.toFixed(10<=n||t<1?0:1)).concat(["bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][t])},b=function(e){var t=new Date(null);t.setSeconds(e);var n=t.toISOString().slice(11,19);return e<3600?n.slice(3):n};n(2);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(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),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,l(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,w.a.PureComponent),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.meta,n=t.name,r=void 0===n?"":n,o=t.percent,a=void 0===o?0:o,i=t.size,u=void 0===i?0:i,s=t.previewUrl,l=t.type,c=t.status,p=t.duration,f=e.isUpload,d=e.onCancel,m=e.onRemove,y="".concat(r||"?",", ").concat(g(u));if(p&&(y="".concat(y,", ").concat(b(p))),"error_file_size"!==c)return"error_upload_params"!==c&&"error_upload"!==c||(y="".concat(y," (upload failed)")),"aborted"===c&&(y="".concat(y," (cancelled)")),w.a.createElement("div",{className:"uploader-previewContainer"},s&&w.a.createElement("img",{className:"uploader-preview",src:s,alt:y,title:y}),!s&&w.a.createElement("span",null,y),w.a.createElement("div",{className:"uploader-statusContainer"},f&&w.a.createElement("progress",{max:100,value:"done"===c||"headers_received"===c?100:a}),"uploading"===c&&d&&w.a.createElement("span",{className:"uploader-abortButton",onClick:d}),"uploading"!==c&&m&&w.a.createElement("span",{className:"uploader-abortButton",onClick:m})));var v=w.a.createElement("span",null,"File exceeds size limit...");return l.startsWith("image/")&&(v=w.a.createElement("span",null,"Image exceeds size limit...")),l.startsWith("video/")&&(v=w.a.createElement("div",null,w.a.createElement("span",null,"Video exceeds size limit..."))),w.a.createElement("div",{className:"uploader-previewContainer"},w.a.createElement("span",null,y),v,m&&w.a.createElement("span",{className:"uploader-abortButton",onClick:m}))}}])&&u(n.prototype,r),o&&u(n,o),t}();p.propTypes={meta:a.a.shape({status:a.a.oneOf(["preparing","error_file_size","uploading","error_upload_params","aborted","error_upload","headers_received","done"]).isRequired,type:a.a.string.isRequired,name:a.a.string,uploadedDate:a.a.string.isRequired,percent:a.a.number,size:a.a.number,lastModifiedDate:a.a.string,previewUrl:a.a.string,duration:a.a.number,width:a.a.number,height:a.a.number,videoWidth:a.a.number,videoHeight:a.a.number}).isRequired,isUpload:a.a.bool.isRequired,onCancel:a.a.func,onRemove:a.a.func};var C=p,f=function(e){var t=e.onSubmit,n=e.files,r=e.className;if(!t)return null;var o=n.some(function(e){return"uploading"===e.meta.status||"preparing"===e.meta.status})||!n.some(function(e){return["headers_received","done"].includes(e.meta.status)});return w.a.createElement("div",{className:r||"uploader-buttonContainer"},w.a.createElement("button",{onClick:function(){t(n.filter(function(e){return["headers_received","done"].includes(e.meta.status)}))},disabled:o},"UPLOAD"))};f.propTypes={className:a.a.string,onSubmit:a.a.func,files:a.a.arrayOf(a.a.any).isRequired};var I=f,d=function(e){var t=e.className,n=e.accept,r=e.maxFiles,o=e.handleFiles,a=e.files,i=function(e){return w.a.createElement(w.a.Fragment,null,w.a.createElement("label",{htmlFor:"fileUploaderInputId",className:"uploader-inputLabel"},e),w.a.createElement("input",{id:"fileUploaderInputId",className:"uploader-input",type:"file",multiple:!0,accept:n,onChange:function(e){return o(Array.from(e.target.files))}}))};return 0===a.length?w.a.createElement("div",{className:t||"uploader-dropzoneInstructions"},w.a.createElement("span",{className:"uploader-largeText"},1===r?"Drag a File":"Drag Files"),w.a.createElement("span",{className:"uploader-smallText"},"- or you can -"),i(1===r?"Choose a File":"Choose Files")):w.a.createElement("div",{className:t||"uploader-previewListContainer"},a,a.length<r&&w.a.createElement("div",{className:"uploader-addFiles"},i("Add")))};d.propTypes={className:a.a.string,accept:a.a.string.isRequired,maxFiles:a.a.number.isRequired,handleFiles:a.a.func.isRequired,files:a.a.arrayOf(a.a.any).isRequired};var S=d;function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(e){R(t,e,n[e])})}return t}function y(e,t,n,r,o,a,i){try{var u=e[a](i),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function v(u){return function(){var e=this,i=arguments;return new Promise(function(t,n){var r=u.apply(e,i);function o(e){y(r,t,n,o,a,"next",e)}function a(e){y(r,t,n,o,a,"throw",e)}o(void 0)})}}function h(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function x(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),Object.defineProperty(e,r.key,r)}}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"formatBytes",function(){return g}),n.d(t,"formatDuration",function(){return b});var D=0,E=function(e){function r(e){var C,t,n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),t=this,n=O(r).call(this,e),R(_(_(C=!n||"object"!==m(n)&&"function"!=typeof n?_(t):n)),"handleDragEnter",function(e){e.preventDefault(),e.stopPropagation(),C.setState({active:!0})}),R(_(_(C)),"handleDragOver",function(e){e.preventDefault(),e.stopPropagation(),clearTimeout(C._timeoutId),C.setState({active:!0})}),R(_(_(C)),"handleDragLeave",function(e){e.preventDefault(),e.stopPropagation(),C._timeoutId=setTimeout(function(){return C.setState({active:!1})},150)}),R(_(_(C)),"handleDrop",function(e){e.preventDefault(),e.stopPropagation(),C.setState({active:!1});var t=e.dataTransfer.files;C.handleFiles(h(t))}),R(_(_(C)),"handleCancel",function(t){var e=C._files.findIndex(function(e){return e.meta.id===t});-1!==e&&C._files[e].xhr&&(C.props.onCancel&&C.props.onCancel(C._files[e]),C._files[e].xhr.abort())}),R(_(_(C)),"handleRemove",function(t){var e=C._files.findIndex(function(e){return e.meta.id===t});-1!==e&&(C.props.onRemove&&C.props.onRemove(C._files[e]),C._files.splice(e,1),C.forceUpdate())}),R(_(_(C)),"handleFiles",function(e){e.forEach(C.handleFile)}),R(_(_(C)),"handleChangeStatus",function(e){C.props.onChangeStatus&&C.props.onChangeStatus(e,e.meta.status)}),R(_(_(C)),"handleFile",function(){var t=v(regeneratorRuntime.mark(function e(t){var n,r,o,a,i,u,s,l,c,p,f,d,m,y,v,g;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.name,r=t.size,o=t.type,a=t.lastModified,i=C.props,u=i.maxSizeBytes,s=i.maxFiles,l=i.allowedTypePrefixes,c=i.getUploadParams,p=i.onUploadReady,l&&!l.some(function(e){return o.startsWith(e)}))return e.abrupt("return");e.next=4;break;case 4:if(C._files.length>=s)return e.abrupt("return");e.next=6;break;case 6:if(f=(new Date).toISOString(),d=a&&new Date(a).toISOString(),m={file:t,meta:{name:n,size:r,type:o,lastModifiedDate:d,uploadedDate:f,status:"preparing",percent:0,id:D}},C._files.push(m),C.handleChangeStatus(m),C.forceUpdate(),D+=1,u<r)return m.meta.status="error_file_size",C.handleChangeStatus(m),C.forceUpdate(),e.abrupt("return");e.next=18;break;case 18:return e.next=20,C.generatePreview(m);case 20:if(y=!1,v=function(){y||(y=!0,m.meta.status=c?(C.uploadFile(m),"uploading"):"done",C.handleChangeStatus(m),C.forceUpdate())},!p){e.next=27;break}if(m.triggerUpload=v,(g=p(m))&&!0===g.delayUpload)return e.abrupt("return");e.next=27;break;case 27:v();case 28:case"end":return e.stop()}},e,this)}));return function(e){return t.apply(this,arguments)}}()),R(_(_(C)),"generatePreview",function(){var t=v(regeneratorRuntime.mark(function e(t){var n,r,o,a,i,u,s,l,c,p,f;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=C.props.previewTypes,r=t.meta.type,o=t.file,a=r.startsWith("image/"),i=r.startsWith("audio/"),u=r.startsWith("video/"),a||i||u){e.next=7;break}return e.abrupt("return");case 7:if(s=URL.createObjectURL(o),l=function(t,n){return new Promise(function(e){t[n]=e})},e.prev=9,a&&n.includes("image"))return(c=new Image).src=s,t.meta.previewUrl=s,e.next=16,l(c,"onload");e.next=18;break;case 16:t.meta.width=c.width,t.meta.height=c.height;case 18:if(i&&n.includes("audio"))return(p=new Audio).src=s,e.next=23,l(p,"onloadedmetadata");e.next=24;break;case 23:t.meta.duration=p.duration;case 24:if(u&&n.includes("video"))return(f=document.createElement("video")).src=s,e.next=29,l(f,"onloadedmetadata");e.next=32;break;case 29:t.meta.duration=f.duration,t.meta.videoWidth=f.videoWidth,t.meta.videoHeight=f.videoHeight;case 32:URL.revokeObjectURL(s),e.next=38;break;case 35:e.prev=35,e.t0=e.catch(9),URL.revokeObjectURL(s);case 38:C.forceUpdate();case 39:case"end":return e.stop()}},e,this,[[9,35]])}));return function(e){return t.apply(this,arguments)}}()),R(_(_(C)),"uploadFile",function(){var t=v(regeneratorRuntime.mark(function e(t){var n,r,o,a,i,u,s,l,c,p,f,d,m,y,v,g,b,h,x,w;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=C.props.getUploadParams,e.next=3,n(t);case 3:if(r=e.sent,a=(o=r||{}).fields,i=void 0===a?{}:a,u=o.headers,s=void 0===u?{}:u,l=o.meta,c=void 0===l?{}:l,p=o.method,f=void 0===p?"POST":p,d=o.url){e.next=10;break}return t.meta.status="error_upload_params",C.handleChangeStatus(t),C.forceUpdate(),e.abrupt("return");case 10:for(m=new XMLHttpRequest,y=new FormData,m.open(f,d,!0),v=Object.keys(i),g=0;g<v.length;g++)b=v[g],y.append(b,i[b]);for(m.setRequestHeader("X-Requested-With","XMLHttpRequest"),h=Object.keys(s),x=0;x<h.length;x++)w=h[x],m.setRequestHeader(w,s[w]);t.meta=A({},t.meta,c),m.upload.addEventListener("progress",function(e){t.meta.percent=100*e.loaded/e.total||100,C.forceUpdate()}),m.addEventListener("readystatechange",function(){2!==m.readyState&&4!==m.readyState||(0===m.status?t.meta.status="aborted":m.status<400?(t.meta.percent=100,2===m.readyState&&(t.meta.status="headers_received"),4===m.readyState&&(t.meta.status="done")):t.meta.status="error_upload",C.handleChangeStatus(t),C.forceUpdate())}),y.append("file",t.file),m.send(y),t.xhr=m;case 24:case"end":return e.stop()}},e,this)}));return function(e){return t.apply(this,arguments)}}()),C.state={active:!1},C._files=[],C}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&j(e,t)}(r,w.a.Component),t=r,(n=[{key:"componentWillUnmount",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,o=this._files[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var a=r.value;"uploading"===a.meta.status&&a.xhr.abort()}}catch(e){t=!0,n=e}finally{try{e||null==o.return||o.return()}finally{if(t)throw n}}}},{key:"render",value:function(){var t=this,e=this.props,n=e.maxFiles,r=e.accept,o=e.onSubmit,a=e.getUploadParams,i=e.canCancel,u=e.canRemove,s=e.FilePreviewComponent,l=e.SubmitButtonComponent,c=e.DropzoneContentComponent,p=e.dropzoneClassName,f=e.dropzoneActiveClassName,d=e.submitButtonClassName,m=e.dropzoneContentClassName,y=this.state.active,v=s||C,g=l||I,b=c||S,h=p||"uploader-dropzone";y&&(h="".concat(h," ").concat(f||"uploader-active"));var x=this._files.map(function(e){return w.a.createElement(v,{key:e.meta.id,meta:A({},e.meta),isUpload:Boolean(a),onCancel:i?function(){return t.handleCancel(e.meta.id)}:void 0,onRemove:u?function(){return t.handleRemove(e.meta.id)}:void 0})});return w.a.createElement(w.a.Fragment,null,w.a.createElement("div",{className:h,onDragEnter:this.handleDragEnter,onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},w.a.createElement(b,{className:m,accept:r,maxFiles:n,handleFiles:this.handleFiles,files:x})),0<this._files.length&&w.a.createElement(g,{className:d,onSubmit:o,files:this._files}))}}])&&x(t.prototype,n),o&&x(t,o),r}();E.propTypes={onChangeStatus:a.a.func,onUploadReady:a.a.func,getUploadParams:a.a.func,onSubmit:a.a.func,onCancel:a.a.func,onRemove:a.a.func,canCancel:a.a.bool,canRemove:a.a.bool,previewTypes:a.a.arrayOf(a.a.oneOf(["image","audio","video"])),allowedTypePrefixes:a.a.arrayOf(a.a.string),accept:a.a.string,maxSizeBytes:a.a.number.isRequired,maxFiles:a.a.number.isRequired,FilePreviewComponent:a.a.any,SubmitButtonComponent:a.a.any,DropzoneContentComponent:a.a.any,dropzoneClassName:a.a.string,dropzoneActiveClassName:a.a.string,dropzoneContentClassName:a.a.string,submitButtonClassName:a.a.string},E.defaultProps={canCancel:!0,canRemove:!0,previewTypes:["image","audio","video"],accept:"*",maxSizeBytes:Number.MAX_SAFE_INTEGER,maxFiles:Number.MAX_SAFE_INTEGER};t.default=E}]);
{
"name": "react-dropzone-uploader",
"version": "1.0.0",
"version": "1.1.0",
"author": "Kyle Bebak <kylebebak@gmail.com>",
"description": "React file upload dropzone: fully customizable, progess indicators, cancellable uploads, zero deps",
"description": "React file dropzone and uploader: fully customizable, progress indicators, cancellable uploads, zero deps",
"main": "./dist/FileUploader.js",

@@ -7,0 +7,0 @@ "keywords": [

# React Dropzone Uploader
React Dropzone Uploader is a fully customizable file uploading component progess indicators, cancellable uploads, and minimal dependencies.
React Dropzone Uploader is a customizable file dropzone and uploader, with progress indicators, cancellable uploads, and minimal dependencies.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc