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ACA;AACA;AACA;AACA;AACA;AACA,CAAC;;ACtBD,oDAAoD,gBAAgB,sBAAsB,OAAO,2BAA2B,0BAA0B,yDAAyD,iCAAiC;;AAEhP,iCAAiC,2CAA2C,gBAAgB,kBAAkB,OAAO,2BAA2B,wDAAwD,gCAAgC,uDAAuD,+DAA+D,yDAAyD,qEAAqE,6DAA6D,wBAAwB;;AAEjjB,+CAA+C,iBAAiB,qBAAqB,oCAAoC,6DAA6D,sBAAsB;;AAE5M,mCAAmC,0BAA0B,0CAA0C,gBAAgB,OAAO,oBAAoB,eAAe,OAAO;;AAExK,kDAAkD,0CAA0C;;AAE5F,kDAAkD,aAAa,yFAAyF;;AAExJ,2CAA2C,+DAA+D,uGAAuG,yEAAyE,eAAe,0EAA0E,GAAG;;AAEtX;;AAE0B;AACS;AAC0I;AACzI;;AAEpC;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,8CAA8C,kBAAkB;AAChE;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA,iDAAiD,kBAAkB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iFAAiF;AACjF,QAAQ;AACR;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;;AAEA;AACA;AACA;AACA,+DAA+D;AAC/D,cAAc;AACd,kBAAkB,KAAqC,EAAE,EAE1C;AACf;AACA;;AAEA,cAAc,YAAY,kBAAkB,aAAa;AACzD;AACA,YAAY;AACZ;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,UAAU;AACtB;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,2CAA2C,gBAAgB;AAC3D;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,gBAAgB,iBAAc;AAC9B,sBAAsB,MAAM;AAC5B,sBAAsB,MAAM;AAC5B,sBAAsB,MAAM;AAC5B,wBAAwB,MAAM;AAC9B;;AAEA,oCAAoC,sBAAsB;AAC1D;AACA,kCAAkC;AAClC;AACA;AACA,kCAAkC;AAClC;AACA;AACA,kCAAkC;AAClC;AACA;AACA,kCAAkC;AAClC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,kBAAkB,eAAe;AACjC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa,mBAAmB;AAChC;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,QAAQ,mBAAmB,qBAAqB;AAChD;AACA;AACA,GAAG;;AAEH;AACA,CAAC,CAAC,eAAe;;AAEjB,uCAAe,QAAQ,EAAC;;AAExB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,8BAAmB,EAAE,6BAAgB,EAAE,4BAAiB,CAAC,6BAAgB;;AAEnF;AACA;AACA;AACA,YAAY,8BAAmB,EAAE,2BAAc,EAAE,2BAAc;;AAE/D;AACA;AACA;AACA,gBAAgB,2BAAc;;AAE9B;AACA;AACA;AACA,YAAY,2BAAc;;AAE1B;AACA;AACA;AACA,kBAAkB,2BAAc;;AAEhC;AACA;AACA;AACA,yBAAyB,2BAAc;;AAEvC;AACA;AACA;AACA,cAAc,6BAAgB;;AAE9B;AACA;AACA;AACA,YAAY,2BAAc;;AAE1B;AACA;AACA;AACA,QAAQ,6BAAgB;;AAExB;AACA;AACA;AACA,WAAW,6BAAgB;;AAE3B;AACA;AACA;AACA,WAAW,6BAAgB;;AAE3B;AACA;AACA;AACA,aAAa,6BAAgB;;AAE7B;AACA;AACA;AACA,mBAAmB,6BAAgB;;AAEnC;AACA;AACA;AACA,mBAAmB,6BAAgB;;AAEnC;AACA;AACA;AACA,mBAAmB,6BAAgB;;AAEnC;AACA;AACA;AACA,qBAAqB,6BAAgB;;AAErC;AACA;AACA;AACA,SAAS,6BAAgB;;AAEzB;AACA;AACA;AACA,eAAe,6BAAgB;;AAE/B;AACA;AACA;AACA,eAAe,6BAAgB;;AAE/B;AACA;AACA;AACA,eAAe,6BAAgB;;AAE/B;AACA;AACA;AACA,iBAAiB,6BAAgB;;AAEjC;AACA;AACA,aAAa,OAAO;AACpB,eAAe,OAAO;AACtB;AACA,wBAAwB,2BAAc;;AAEtC;AACA;AACA,aAAa,OAAO;AACpB;AACA,WAAW,2BAAc;;AAEzB;AACA;AACA;AACA,UAAU,2BAAc;;AAExB;AACA;AACA;AACA,kBAAkB,2BAAc;;AAEhC;AACA;AACA;AACA,kBAAkB,2BAAc;;AAEhC;AACA;AACA;AACA,eAAe,2BAAc;;AAE7B;AACA;AACA;AACA,eAAe,2BAAc;;AAE7B;AACA;AACA;AACA,cAAc,2BAAc;;AAE5B;AACA;AACA;AACA,eAAe,2BAAc;;AAE7B;AACA;AACA;AACA,sBAAsB,2BAAc;AACpC;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA,wBAAwB,oBAA0B;AAClD","sources":["webpack://geosnapshot/./node_modules/attr-accept/dist/index.js","webpack://geosnapshot/./node_modules/react-dropzone/dist/es/utils/index.js","webpack://geosnapshot/./node_modules/react-dropzone/dist/es/utils/styles.js","webpack://geosnapshot/./node_modules/react-dropzone/dist/es/index.js"],"sourcesContent":["module.exports=function(t){function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r={};return n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,\"a\",r),r},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p=\"\",n(n.s=13)}([function(t,n){var r=t.exports=\"undefined\"!=typeof window&&window.Math==Math?window:\"undefined\"!=typeof self&&self.Math==Math?self:Function(\"return this\")();\"number\"==typeof __g&&(__g=r)},function(t,n){t.exports=function(t){return\"object\"==typeof t?null!==t:\"function\"==typeof t}},function(t,n){var r=t.exports={version:\"2.5.0\"};\"number\"==typeof __e&&(__e=r)},function(t,n,r){t.exports=!r(4)(function(){return 7!=Object.defineProperty({},\"a\",{get:function(){return 7}}).a})},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n,r){var e=r(32)(\"wks\"),o=r(9),i=r(0).Symbol,u=\"function\"==typeof i;(t.exports=function(t){return e[t]||(e[t]=u&&i[t]||(u?i:o)(\"Symbol.\"+t))}).store=e},function(t,n,r){var e=r(0),o=r(2),i=r(8),u=r(22),c=r(10),f=function(t,n,r){var a,s,p,l,v=t&f.F,y=t&f.G,h=t&f.S,d=t&f.P,x=t&f.B,g=y?e:h?e[n]||(e[n]={}):(e[n]||{}).prototype,m=y?o:o[n]||(o[n]={}),b=m.prototype||(m.prototype={});y&&(r=n);for(a in r)s=!v&&g&&void 0!==g[a],p=(s?g:r)[a],l=x&&s?c(p,e):d&&\"function\"==typeof p?c(Function.call,p):p,g&&u(g,a,p,t&f.U),m[a]!=p&&i(m,a,l),d&&b[a]!=p&&(b[a]=p)};e.core=o,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},function(t,n,r){var e=r(16),o=r(21);t.exports=r(3)?function(t,n,r){return e.f(t,n,o(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n){var r=0,e=Math.random();t.exports=function(t){return\"Symbol(\".concat(void 0===t?\"\":t,\")_\",(++r+e).toString(36))}},function(t,n,r){var e=r(24);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError(\"Can't call method on  \"+t);return t}},function(t,n,r){var e=r(28),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,n,r){\"use strict\";n.__esModule=!0,n.default=function(t,n){if(t&&n){var r=Array.isArray(n)?n:n.split(\",\"),e=t.name||\"\",o=t.type||\"\",i=o.replace(/\\/.*$/,\"\");return r.some(function(t){var n=t.trim();return\".\"===n.charAt(0)?e.toLowerCase().endsWith(n.toLowerCase()):n.endsWith(\"/*\")?i===n.replace(/\\/.*$/,\"\"):o===n})}return!0},r(14),r(34)},function(t,n,r){r(15),t.exports=r(2).Array.some},function(t,n,r){\"use strict\";var e=r(7),o=r(25)(3);e(e.P+e.F*!r(33)([].some,!0),\"Array\",{some:function(t){return o(this,t,arguments[1])}})},function(t,n,r){var e=r(17),o=r(18),i=r(20),u=Object.defineProperty;n.f=r(3)?Object.defineProperty:function(t,n,r){if(e(t),n=i(n,!0),e(r),o)try{return u(t,n,r)}catch(t){}if(\"get\"in r||\"set\"in r)throw TypeError(\"Accessors not supported!\");return\"value\"in r&&(t[n]=r.value),t}},function(t,n,r){var e=r(1);t.exports=function(t){if(!e(t))throw TypeError(t+\" is not an object!\");return t}},function(t,n,r){t.exports=!r(3)&&!r(4)(function(){return 7!=Object.defineProperty(r(19)(\"div\"),\"a\",{get:function(){return 7}}).a})},function(t,n,r){var e=r(1),o=r(0).document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,r){var e=r(1);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&\"function\"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if(\"function\"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&\"function\"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError(\"Can't convert object to primitive value\")}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,r){var e=r(0),o=r(8),i=r(23),u=r(9)(\"src\"),c=Function.toString,f=(\"\"+c).split(\"toString\");r(2).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,r,c){var a=\"function\"==typeof r;a&&(i(r,\"name\")||o(r,\"name\",n)),t[n]!==r&&(a&&(i(r,u)||o(r,u,t[n]?\"\"+t[n]:f.join(String(n)))),t===e?t[n]=r:c?t[n]?t[n]=r:o(t,n,r):(delete t[n],o(t,n,r)))})(Function.prototype,\"toString\",function(){return\"function\"==typeof this&&this[u]||c.call(this)})},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n){t.exports=function(t){if(\"function\"!=typeof t)throw TypeError(t+\" is not a function!\");return t}},function(t,n,r){var e=r(10),o=r(26),i=r(27),u=r(12),c=r(29);t.exports=function(t,n){var r=1==t,f=2==t,a=3==t,s=4==t,p=6==t,l=5==t||p,v=n||c;return function(n,c,y){for(var h,d,x=i(n),g=o(x),m=e(c,y,3),b=u(g.length),_=0,w=r?v(n,b):f?v(n,0):void 0;b>_;_++)if((l||_ in g)&&(h=g[_],d=m(h,_,x),t))if(r)w[_]=d;else if(d)switch(t){case 3:return!0;case 5:return h;case 6:return _;case 2:w.push(h)}else if(s)return!1;return p?-1:a||s?s:w}}},function(t,n,r){var e=r(5);t.exports=Object(\"z\").propertyIsEnumerable(0)?Object:function(t){return\"String\"==e(t)?t.split(\"\"):Object(t)}},function(t,n,r){var e=r(11);t.exports=function(t){return Object(e(t))}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){var e=r(30);t.exports=function(t,n){return new(e(t))(n)}},function(t,n,r){var e=r(1),o=r(31),i=r(6)(\"species\");t.exports=function(t){var n;return o(t)&&(n=t.constructor,\"function\"!=typeof n||n!==Array&&!o(n.prototype)||(n=void 0),e(n)&&null===(n=n[i])&&(n=void 0)),void 0===n?Array:n}},function(t,n,r){var e=r(5);t.exports=Array.isArray||function(t){return\"Array\"==e(t)}},function(t,n,r){var e=r(0),o=e[\"__core-js_shared__\"]||(e[\"__core-js_shared__\"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n,r){\"use strict\";var e=r(4);t.exports=function(t,n){return!!t&&e(function(){n?t.call(null,function(){},1):t.call(null)})}},function(t,n,r){r(35),t.exports=r(2).String.endsWith},function(t,n,r){\"use strict\";var e=r(7),o=r(12),i=r(36),u=\"\".endsWith;e(e.P+e.F*r(38)(\"endsWith\"),\"String\",{endsWith:function(t){var n=i(this,t,\"endsWith\"),r=arguments.length>1?arguments[1]:void 0,e=o(n.length),c=void 0===r?e:Math.min(o(r),e),f=String(t);return u?u.call(n,f,c):n.slice(c-f.length,c)===f}})},function(t,n,r){var e=r(37),o=r(11);t.exports=function(t,n,r){if(e(n))throw TypeError(\"String#\"+r+\" doesn't accept regex!\");return String(o(t))}},function(t,n,r){var e=r(1),o=r(5),i=r(6)(\"match\");t.exports=function(t){var n;return e(t)&&(void 0!==(n=t[i])?!!n:\"RegExp\"==o(t))}},function(t,n,r){var e=r(6)(\"match\");t.exports=function(t){var n=/./;try{\"/./\"[t](n)}catch(r){try{return n[e]=!1,!\"/./\"[t](n)}catch(t){}}return!0}}]);","import accepts from 'attr-accept';\n\nexport var supportMultiple = typeof document !== 'undefined' && document && document.createElement ? 'multiple' in document.createElement('input') : true;\n\nexport function getDataTransferItems(event) {\n  var dataTransferItemsList = [];\n  if (event.dataTransfer) {\n    var dt = event.dataTransfer;\n\n    if (dt.files && dt.files.length) {\n      dataTransferItemsList = dt.files;\n    } else if (dt.items && dt.items.length) {\n      // During the drag even the dataTransfer.files is null\n      // but Chrome implements some drag store, which is accesible via dataTransfer.items\n      dataTransferItemsList = dt.items;\n    }\n  } else if (event.target && event.target.files) {\n    dataTransferItemsList = event.target.files;\n  }\n\n  // Convert from DataTransferItemsList to the native Array\n  return Array.prototype.slice.call(dataTransferItemsList);\n}\n\n// Firefox versions prior to 53 return a bogus MIME type for every file drag, so dragovers with\n// that MIME type will always be accepted\nexport function fileAccepted(file, accept) {\n  return file.type === 'application/x-moz-file' || accepts(file, accept);\n}\n\nexport function fileMatchSize(file, maxSize, minSize) {\n  return file.size <= maxSize && file.size >= minSize;\n}\n\nexport function allFilesAccepted(files, accept) {\n  return files.every(function (file) {\n    return fileAccepted(file, accept);\n  });\n}\n\n// allow the entire document to be a drag target\nexport function onDocumentDragOver(evt) {\n  evt.preventDefault();\n}\n\nfunction isIe(userAgent) {\n  return userAgent.indexOf('MSIE') !== -1 || userAgent.indexOf('Trident/') !== -1;\n}\n\nfunction isEdge(userAgent) {\n  return userAgent.indexOf('Edge/') !== -1;\n}\n\nexport function isIeOrEdge() {\n  var userAgent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window.navigator.userAgent;\n\n  return isIe(userAgent) || isEdge(userAgent);\n}","export default {\n  rejected: {\n    borderStyle: 'solid',\n    borderColor: '#c66',\n    backgroundColor: '#eee'\n  },\n  disabled: {\n    opacity: 0.5\n  },\n  active: {\n    borderStyle: 'solid',\n    borderColor: '#6c6',\n    backgroundColor: '#eee'\n  },\n  default: {\n    width: 200,\n    height: 200,\n    borderWidth: 2,\n    borderColor: '#666',\n    borderStyle: 'dashed',\n    borderRadius: 5\n  }\n};","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/* eslint prefer-template: 0 */\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { supportMultiple, fileAccepted, allFilesAccepted, fileMatchSize, onDocumentDragOver, getDataTransferItems as defaultGetDataTransferItem, isIeOrEdge } from './utils';\nimport styles from './utils/styles';\n\nvar Dropzone = function (_React$Component) {\n  _inherits(Dropzone, _React$Component);\n\n  function Dropzone(props, context) {\n    _classCallCheck(this, Dropzone);\n\n    var _this = _possibleConstructorReturn(this, (Dropzone.__proto__ || Object.getPrototypeOf(Dropzone)).call(this, props, context));\n\n    _this.renderChildren = function (children, isDragActive, isDragAccept, isDragReject) {\n      if (typeof children === 'function') {\n        return children(_extends({}, _this.state, {\n          isDragActive: isDragActive,\n          isDragAccept: isDragAccept,\n          isDragReject: isDragReject\n        }));\n      }\n      return children;\n    };\n\n    _this.composeHandlers = _this.composeHandlers.bind(_this);\n    _this.onClick = _this.onClick.bind(_this);\n    _this.onDocumentDrop = _this.onDocumentDrop.bind(_this);\n    _this.onDragEnter = _this.onDragEnter.bind(_this);\n    _this.onDragLeave = _this.onDragLeave.bind(_this);\n    _this.onDragOver = _this.onDragOver.bind(_this);\n    _this.onDragStart = _this.onDragStart.bind(_this);\n    _this.onDrop = _this.onDrop.bind(_this);\n    _this.onFileDialogCancel = _this.onFileDialogCancel.bind(_this);\n    _this.onInputElementClick = _this.onInputElementClick.bind(_this);\n\n    _this.setRef = _this.setRef.bind(_this);\n    _this.setRefs = _this.setRefs.bind(_this);\n\n    _this.isFileDialogActive = false;\n\n    _this.state = {\n      draggedFiles: [],\n      acceptedFiles: [],\n      rejectedFiles: []\n    };\n    return _this;\n  }\n\n  _createClass(Dropzone, [{\n    key: 'componentDidMount',\n    value: function componentDidMount() {\n      var preventDropOnDocument = this.props.preventDropOnDocument;\n\n      this.dragTargets = [];\n\n      if (preventDropOnDocument) {\n        document.addEventListener('dragover', onDocumentDragOver, false);\n        document.addEventListener('drop', this.onDocumentDrop, false);\n      }\n      this.fileInputEl.addEventListener('click', this.onInputElementClick, false);\n      window.addEventListener('focus', this.onFileDialogCancel, false);\n    }\n  }, {\n    key: 'componentWillUnmount',\n    value: function componentWillUnmount() {\n      var preventDropOnDocument = this.props.preventDropOnDocument;\n\n      if (preventDropOnDocument) {\n        document.removeEventListener('dragover', onDocumentDragOver);\n        document.removeEventListener('drop', this.onDocumentDrop);\n      }\n      if (this.fileInputEl != null) {\n        this.fileInputEl.removeEventListener('click', this.onInputElementClick, false);\n      }\n      window.removeEventListener('focus', this.onFileDialogCancel, false);\n    }\n  }, {\n    key: 'composeHandlers',\n    value: function composeHandlers(handler) {\n      if (this.props.disabled) {\n        return null;\n      }\n\n      return handler;\n    }\n  }, {\n    key: 'onDocumentDrop',\n    value: function onDocumentDrop(evt) {\n      if (this.node && this.node.contains(evt.target)) {\n        // if we intercepted an event for our instance, let it propagate down to the instance's onDrop handler\n        return;\n      }\n      evt.preventDefault();\n      this.dragTargets = [];\n    }\n  }, {\n    key: 'onDragStart',\n    value: function onDragStart(evt) {\n      if (this.props.onDragStart) {\n        this.props.onDragStart.call(this, evt);\n      }\n    }\n  }, {\n    key: 'onDragEnter',\n    value: function onDragEnter(evt) {\n      var _this2 = this;\n\n      evt.preventDefault();\n\n      // Count the dropzone and any children that are entered.\n      if (this.dragTargets.indexOf(evt.target) === -1) {\n        this.dragTargets.push(evt.target);\n      }\n\n      Promise.resolve(this.props.getDataTransferItems(evt)).then(function (draggedFiles) {\n        _this2.setState({\n          isDragActive: true, // Do not rely on files for the drag state. It doesn't work in Safari.\n          draggedFiles: draggedFiles\n        });\n      });\n      if (this.props.onDragEnter) {\n        this.props.onDragEnter.call(this, evt);\n      }\n    }\n  }, {\n    key: 'onDragOver',\n    value: function onDragOver(evt) {\n      // eslint-disable-line class-methods-use-this\n      evt.preventDefault();\n      evt.stopPropagation();\n      try {\n        // The file dialog on Chrome allows users to drag files from the dialog onto\n        // the dropzone, causing the browser the crash when the file dialog is closed.\n        // A drop effect of 'none' prevents the file from being dropped\n        evt.dataTransfer.dropEffect = this.isFileDialogActive ? 'none' : 'copy'; // eslint-disable-line no-param-reassign\n      } catch (err) {\n        // continue regardless of error\n      }\n\n      if (this.props.onDragOver) {\n        this.props.onDragOver.call(this, evt);\n      }\n      return false;\n    }\n  }, {\n    key: 'onDragLeave',\n    value: function onDragLeave(evt) {\n      var _this3 = this;\n\n      evt.preventDefault();\n\n      // Only deactivate once the dropzone and all children have been left.\n      this.dragTargets = this.dragTargets.filter(function (el) {\n        return el !== evt.target && _this3.node.contains(el);\n      });\n      if (this.dragTargets.length > 0) {\n        return;\n      }\n\n      // Clear dragging files state\n      this.setState({\n        isDragActive: false,\n        draggedFiles: []\n      });\n\n      if (this.props.onDragLeave) {\n        this.props.onDragLeave.call(this, evt);\n      }\n    }\n  }, {\n    key: 'onDrop',\n    value: function onDrop(evt) {\n      var _this4 = this;\n\n      var _props = this.props,\n          onDrop = _props.onDrop,\n          onDropAccepted = _props.onDropAccepted,\n          onDropRejected = _props.onDropRejected,\n          multiple = _props.multiple,\n          disablePreview = _props.disablePreview,\n          accept = _props.accept,\n          getDataTransferItems = _props.getDataTransferItems;\n\n      // Stop default browser behavior\n\n      evt.preventDefault();\n\n      // Reset the counter along with the drag on a drop.\n      this.dragTargets = [];\n      this.isFileDialogActive = false;\n\n      // Clear files value\n      this.draggedFiles = null;\n\n      // Reset drag state\n      this.setState({\n        isDragActive: false,\n        draggedFiles: []\n      });\n\n      Promise.resolve(getDataTransferItems(evt)).then(function (fileList) {\n        var acceptedFiles = [];\n        var rejectedFiles = [];\n\n        fileList.forEach(function (file) {\n          if (!disablePreview) {\n            try {\n              file.preview = window.URL.createObjectURL(file); // eslint-disable-line no-param-reassign\n            } catch (err) {\n              if (process.env.NODE_ENV !== 'production') {\n                console.error('Failed to generate preview for file', file, err); // eslint-disable-line no-console\n              }\n            }\n          }\n\n          if (fileAccepted(file, accept) && fileMatchSize(file, _this4.props.maxSize, _this4.props.minSize)) {\n            acceptedFiles.push(file);\n          } else {\n            rejectedFiles.push(file);\n          }\n        });\n\n        if (!multiple) {\n          // if not in multi mode add any extra accepted files to rejected.\n          // This will allow end users to easily ignore a multi file drop in \"single\" mode.\n          rejectedFiles.push.apply(rejectedFiles, _toConsumableArray(acceptedFiles.splice(1)));\n        }\n\n        if (onDrop) {\n          onDrop.call(_this4, acceptedFiles, rejectedFiles, evt);\n        }\n\n        if (rejectedFiles.length > 0 && onDropRejected) {\n          onDropRejected.call(_this4, rejectedFiles, evt);\n        }\n\n        if (acceptedFiles.length > 0 && onDropAccepted) {\n          onDropAccepted.call(_this4, acceptedFiles, evt);\n        }\n      });\n    }\n  }, {\n    key: 'onClick',\n    value: function onClick(evt) {\n      var _props2 = this.props,\n          onClick = _props2.onClick,\n          disableClick = _props2.disableClick;\n\n      if (!disableClick) {\n        evt.stopPropagation();\n\n        if (onClick) {\n          onClick.call(this, evt);\n        }\n\n        // in IE11/Edge the file-browser dialog is blocking, ensure this is behind setTimeout\n        // this is so react can handle state changes in the onClick prop above above\n        // see: https://github.com/react-dropzone/react-dropzone/issues/450\n        if (isIeOrEdge()) {\n          setTimeout(this.open.bind(this), 0);\n        } else {\n          this.open();\n        }\n      }\n    }\n  }, {\n    key: 'onInputElementClick',\n    value: function onInputElementClick(evt) {\n      evt.stopPropagation();\n      if (this.props.inputProps && this.props.inputProps.onClick) {\n        this.props.inputProps.onClick();\n      }\n    }\n  }, {\n    key: 'onFileDialogCancel',\n    value: function onFileDialogCancel() {\n      var _this5 = this;\n\n      // timeout will not recognize context of this method\n      var onFileDialogCancel = this.props.onFileDialogCancel;\n      // execute the timeout only if the FileDialog is opened in the browser\n\n      if (this.isFileDialogActive) {\n        setTimeout(function () {\n          if (_this5.fileInputEl != null) {\n            // Returns an object as FileList\n            var files = _this5.fileInputEl.files;\n\n\n            if (!files.length) {\n              _this5.isFileDialogActive = false;\n            }\n          }\n\n          if (typeof onFileDialogCancel === 'function') {\n            onFileDialogCancel();\n          }\n        }, 300);\n      }\n    }\n  }, {\n    key: 'setRef',\n    value: function setRef(ref) {\n      this.node = ref;\n    }\n  }, {\n    key: 'setRefs',\n    value: function setRefs(ref) {\n      this.fileInputEl = ref;\n    }\n    /**\n     * Open system file upload dialog.\n     *\n     * @public\n     */\n\n  }, {\n    key: 'open',\n    value: function open() {\n      this.isFileDialogActive = true;\n      this.fileInputEl.value = null;\n      this.fileInputEl.click();\n    }\n  }, {\n    key: 'render',\n    value: function render() {\n      var _props3 = this.props,\n          accept = _props3.accept,\n          acceptClassName = _props3.acceptClassName,\n          activeClassName = _props3.activeClassName,\n          children = _props3.children,\n          disabled = _props3.disabled,\n          disabledClassName = _props3.disabledClassName,\n          inputProps = _props3.inputProps,\n          multiple = _props3.multiple,\n          name = _props3.name,\n          rejectClassName = _props3.rejectClassName,\n          rest = _objectWithoutProperties(_props3, ['accept', 'acceptClassName', 'activeClassName', 'children', 'disabled', 'disabledClassName', 'inputProps', 'multiple', 'name', 'rejectClassName']);\n\n      var acceptStyle = rest.acceptStyle,\n          activeStyle = rest.activeStyle,\n          _rest$className = rest.className,\n          className = _rest$className === undefined ? '' : _rest$className,\n          disabledStyle = rest.disabledStyle,\n          rejectStyle = rest.rejectStyle,\n          style = rest.style,\n          props = _objectWithoutProperties(rest, ['acceptStyle', 'activeStyle', 'className', 'disabledStyle', 'rejectStyle', 'style']);\n\n      var _state = this.state,\n          isDragActive = _state.isDragActive,\n          draggedFiles = _state.draggedFiles;\n\n      var filesCount = draggedFiles.length;\n      var isMultipleAllowed = multiple || filesCount <= 1;\n      var isDragAccept = filesCount > 0 && allFilesAccepted(draggedFiles, this.props.accept);\n      var isDragReject = filesCount > 0 && (!isDragAccept || !isMultipleAllowed);\n      var noStyles = !className && !style && !activeStyle && !acceptStyle && !rejectStyle && !disabledStyle;\n\n      if (isDragActive && activeClassName) {\n        className += ' ' + activeClassName;\n      }\n      if (isDragAccept && acceptClassName) {\n        className += ' ' + acceptClassName;\n      }\n      if (isDragReject && rejectClassName) {\n        className += ' ' + rejectClassName;\n      }\n      if (disabled && disabledClassName) {\n        className += ' ' + disabledClassName;\n      }\n\n      if (noStyles) {\n        style = styles.default;\n        activeStyle = styles.active;\n        acceptStyle = styles.active;\n        rejectStyle = styles.rejected;\n        disabledStyle = styles.disabled;\n      }\n\n      var appliedStyle = _extends({ position: 'relative' }, style);\n      if (activeStyle && isDragActive) {\n        appliedStyle = _extends({}, appliedStyle, activeStyle);\n      }\n      if (acceptStyle && isDragAccept) {\n        appliedStyle = _extends({}, appliedStyle, acceptStyle);\n      }\n      if (rejectStyle && isDragReject) {\n        appliedStyle = _extends({}, appliedStyle, rejectStyle);\n      }\n      if (disabledStyle && disabled) {\n        appliedStyle = _extends({}, appliedStyle, disabledStyle);\n      }\n\n      var inputAttributes = {\n        accept: accept,\n        disabled: disabled,\n        type: 'file',\n        style: _extends({\n          position: 'absolute',\n          top: 0,\n          right: 0,\n          bottom: 0,\n          left: 0,\n          opacity: 0.00001,\n          pointerEvents: 'none'\n        }, inputProps.style),\n        multiple: supportMultiple && multiple,\n        ref: this.setRefs,\n        onChange: this.onDrop,\n        autoComplete: 'off'\n      };\n\n      if (name && name.length) {\n        inputAttributes.name = name;\n      }\n\n      // Destructure custom props away from props used for the div element\n\n      var acceptedFiles = props.acceptedFiles,\n          preventDropOnDocument = props.preventDropOnDocument,\n          disablePreview = props.disablePreview,\n          disableClick = props.disableClick,\n          onDropAccepted = props.onDropAccepted,\n          onDropRejected = props.onDropRejected,\n          onFileDialogCancel = props.onFileDialogCancel,\n          maxSize = props.maxSize,\n          minSize = props.minSize,\n          getDataTransferItems = props.getDataTransferItems,\n          divProps = _objectWithoutProperties(props, ['acceptedFiles', 'preventDropOnDocument', 'disablePreview', 'disableClick', 'onDropAccepted', 'onDropRejected', 'onFileDialogCancel', 'maxSize', 'minSize', 'getDataTransferItems']);\n\n      return React.createElement(\n        'div',\n        _extends({\n          className: className,\n          style: appliedStyle\n        }, divProps /* expand user provided props first so event handlers are never overridden */, {\n          onClick: this.composeHandlers(this.onClick),\n          onDragStart: this.composeHandlers(this.onDragStart),\n          onDragEnter: this.composeHandlers(this.onDragEnter),\n          onDragOver: this.composeHandlers(this.onDragOver),\n          onDragLeave: this.composeHandlers(this.onDragLeave),\n          onDrop: this.composeHandlers(this.onDrop),\n          ref: this.setRef,\n          'aria-disabled': disabled\n        }),\n        this.renderChildren(children, isDragActive, isDragAccept, isDragReject),\n        React.createElement('input', _extends({}, inputProps /* expand user provided inputProps first so inputAttributes override them */, inputAttributes))\n      );\n    }\n  }]);\n\n  return Dropzone;\n}(React.Component);\n\nexport default Dropzone;\n\nDropzone.propTypes = {\n  /**\n   * Allow specific types of files. See https://github.com/okonet/attr-accept for more information.\n   * Keep in mind that mime type determination is not reliable across platforms. CSV files,\n   * for example, are reported as text/plain under macOS but as application/vnd.ms-excel under\n   * Windows. In some cases there might not be a mime type set at all.\n   * See: https://github.com/react-dropzone/react-dropzone/issues/276\n   */\n  accept: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),\n\n  /**\n   * Contents of the dropzone\n   */\n  children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),\n\n  /**\n   * Disallow clicking on the dropzone container to open file dialog\n   */\n  disableClick: PropTypes.bool,\n\n  /**\n   * Enable/disable the dropzone entirely\n   */\n  disabled: PropTypes.bool,\n\n  /**\n   * Enable/disable preview generation\n   */\n  disablePreview: PropTypes.bool,\n\n  /**\n   * If false, allow dropped items to take over the current browser window\n   */\n  preventDropOnDocument: PropTypes.bool,\n\n  /**\n   * Pass additional attributes to the `<input type=\"file\"/>` tag\n   */\n  inputProps: PropTypes.object,\n\n  /**\n   * Allow dropping multiple files\n   */\n  multiple: PropTypes.bool,\n\n  /**\n   * `name` attribute for the input tag\n   */\n  name: PropTypes.string,\n\n  /**\n   * Maximum file size (in bytes)\n   */\n  maxSize: PropTypes.number,\n\n  /**\n   * Minimum file size (in bytes)\n   */\n  minSize: PropTypes.number,\n\n  /**\n   * className\n   */\n  className: PropTypes.string,\n\n  /**\n   * className to apply when drag is active\n   */\n  activeClassName: PropTypes.string,\n\n  /**\n   * className to apply when drop will be accepted\n   */\n  acceptClassName: PropTypes.string,\n\n  /**\n   * className to apply when drop will be rejected\n   */\n  rejectClassName: PropTypes.string,\n\n  /**\n   * className to apply when dropzone is disabled\n   */\n  disabledClassName: PropTypes.string,\n\n  /**\n   * CSS styles to apply\n   */\n  style: PropTypes.object,\n\n  /**\n   * CSS styles to apply when drag is active\n   */\n  activeStyle: PropTypes.object,\n\n  /**\n   * CSS styles to apply when drop will be accepted\n   */\n  acceptStyle: PropTypes.object,\n\n  /**\n   * CSS styles to apply when drop will be rejected\n   */\n  rejectStyle: PropTypes.object,\n\n  /**\n   * CSS styles to apply when dropzone is disabled\n   */\n  disabledStyle: PropTypes.object,\n\n  /**\n   * getDataTransferItems handler\n   * @param {Event} event\n   * @returns {Array} array of File objects\n   */\n  getDataTransferItems: PropTypes.func,\n\n  /**\n   * onClick callback\n   * @param {Event} event\n   */\n  onClick: PropTypes.func,\n\n  /**\n   * onDrop callback\n   */\n  onDrop: PropTypes.func,\n\n  /**\n   * onDropAccepted callback\n   */\n  onDropAccepted: PropTypes.func,\n\n  /**\n   * onDropRejected callback\n   */\n  onDropRejected: PropTypes.func,\n\n  /**\n   * onDragStart callback\n   */\n  onDragStart: PropTypes.func,\n\n  /**\n   * onDragEnter callback\n   */\n  onDragEnter: PropTypes.func,\n\n  /**\n   * onDragOver callback\n   */\n  onDragOver: PropTypes.func,\n\n  /**\n   * onDragLeave callback\n   */\n  onDragLeave: PropTypes.func,\n\n  /**\n   * Provide a callback on clicking the cancel button of the file dialog\n   */\n  onFileDialogCancel: PropTypes.func\n};\n\nDropzone.defaultProps = {\n  preventDropOnDocument: true,\n  disabled: false,\n  disablePreview: false,\n  disableClick: false,\n  inputProps: {},\n  multiple: true,\n  maxSize: Infinity,\n  minSize: 0,\n  getDataTransferItems: defaultGetDataTransferItem\n};"],"names":[],"sourceRoot":""}