{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 6ad4535230629fa6fc94","webpack:///./src/index.js","webpack:///./~/attr-accept/dist/index.js","webpack:///external \"react\""],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;;;;;;;;ACtCA;;;;AACA;;;;;;;;;;;;;;AAEA,KAAM,kBAAkB,OAAQ,QAAP,KAAoB,WAApB,IAAmC,QAAnC,IAA+C,SAAS,aAAT,GACtE,cAAc,SAAS,aAAT,CAAuB,OAAvB,CAAd,GACA,IAFsB;;KAIlB;;;AACJ,YADI,QACJ,CAAY,KAAZ,EAAmB,OAAnB,EAA4B;2BADxB,UACwB;;wEADxB,qBAEI,OAAO,UADa;;AAE1B,WAAK,OAAL,GAAe,MAAK,OAAL,CAAa,IAAb,OAAf,CAF0B;AAG1B,WAAK,WAAL,GAAmB,MAAK,WAAL,CAAiB,IAAjB,OAAnB,CAH0B;AAI1B,WAAK,WAAL,GAAmB,MAAK,WAAL,CAAiB,IAAjB,OAAnB,CAJ0B;AAK1B,WAAK,UAAL,GAAkB,MAAK,UAAL,CAAgB,IAAhB,OAAlB,CAL0B;AAM1B,WAAK,MAAL,GAAc,MAAK,MAAL,CAAY,IAAZ,OAAd,CAN0B;;AAQ1B,WAAK,KAAL,GAAa;AACX,qBAAc,KAAd;MADF,CAR0B;;IAA5B;;gBADI;;yCAcgB;AAClB,YAAK,YAAL,GAAoB,CAApB,CADkB;;;;iCAIR,GAAG;AACb,SAAE,cAAF;;;AADa,SAIX,KAAK,YAAL;;;;AAJW,WAQP,oBAAoB,EAAE,YAAF,IAAkB,EAAE,YAAF,CAAe,K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":"index.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Dropzone\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"Dropzone\"] = factory(root[\"react\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_2__) {\nreturn \n\n\n/** WEBPACK FOOTER **\n ** webpack/universalModuleDefinition\n **/"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 6ad4535230629fa6fc94\n **/","import accepts from 'attr-accept';\nimport React from 'react';\n\nconst supportMultiple = (typeof document !== 'undefined' && document && document.createElement) ?\n 'multiple' in document.createElement('input') :\n true;\n\nclass Dropzone extends React.Component {\n constructor(props, context) {\n super(props, context);\n this.onClick = this.onClick.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.onDrop = this.onDrop.bind(this);\n\n this.state = {\n isDragActive: false\n };\n }\n\n componentDidMount() {\n this.enterCounter = 0;\n }\n\n onDragEnter(e) {\n e.preventDefault();\n\n // Count the dropzone and any children that are entered.\n ++this.enterCounter;\n\n // This is tricky. During the drag even the dataTransfer.files is null\n // But Chrome implements some drag store, which is accesible via dataTransfer.items\n const dataTransferItems = e.dataTransfer && e.dataTransfer.items ? e.dataTransfer.items : [];\n\n // Now we need to convert the DataTransferList to Array\n const allFilesAccepted = this.allFilesAccepted(Array.prototype.slice.call(dataTransferItems));\n\n this.setState({\n isDragActive: allFilesAccepted,\n isDragReject: !allFilesAccepted\n });\n\n if (this.props.onDragEnter) {\n this.props.onDragEnter.call(this, e);\n }\n }\n\n onDragOver(e) {\n e.preventDefault();\n e.stopPropagation();\n return false;\n }\n\n onDragLeave(e) {\n e.preventDefault();\n\n // Only deactivate once the dropzone and all children was left.\n if (--this.enterCounter > 0) {\n return;\n }\n\n this.setState({\n isDragActive: false,\n isDragReject: false\n });\n\n if (this.props.onDragLeave) {\n this.props.onDragLeave.call(this, e);\n }\n }\n\n onDrop(e) {\n e.preventDefault();\n\n // Reset the counter along with the drag on a drop.\n this.enterCounter = 0;\n\n this.setState({\n isDragActive: false,\n isDragReject: false\n });\n\n const droppedFiles = e.dataTransfer ? e.dataTransfer.files : e.target.files;\n const max = this.props.multiple ? droppedFiles.length : Math.min(droppedFiles.length, 1);\n const files = [];\n\n for (let i = 0; i < max; i++) {\n const file = droppedFiles[i];\n // We might want to disable the preview creation to support big files\n if (!this.props.disablePreview) {\n file.preview = window.URL.createObjectURL(file);\n }\n files.push(file);\n }\n\n if (this.props.onDrop) {\n this.props.onDrop.call(this, files, e);\n }\n\n if (this.allFilesAccepted(files)) {\n if (this.props.onDropAccepted) {\n this.props.onDropAccepted.call(this, files, e);\n }\n } else {\n if (this.props.onDropRejected) {\n this.props.onDropRejected.call(this, files, e);\n }\n }\n }\n\n onClick() {\n if (!this.props.disableClick) {\n this.open();\n }\n }\n\n allFilesAccepted(files) {\n return files.every(file => accepts(file, this.props.accept));\n }\n\n open() {\n this.fileInputEl.value = null;\n this.fileInputEl.click();\n }\n\n render() {\n const {\n accept,\n activeClassName,\n inputProps,\n multiple,\n name,\n rejectClassName,\n ...rest\n } = this.props;\n\n let {\n activeStyle,\n className,\n rejectStyle,\n style,\n ...props // eslint-disable-line prefer-const\n } = rest;\n\n const { isDragActive, isDragReject } = this.state;\n\n className = className || '';\n\n if (isDragActive && activeClassName) {\n className += ' ' + activeClassName;\n }\n if (isDragReject && rejectClassName) {\n className += ' ' + rejectClassName;\n }\n\n if (!className && !style && !activeStyle && !rejectStyle) {\n style = {\n width: 200,\n height: 200,\n borderWidth: 2,\n borderColor: '#666',\n borderStyle: 'dashed',\n borderRadius: 5\n };\n activeStyle = {\n borderStyle: 'solid',\n backgroundColor: '#eee'\n };\n rejectStyle = {\n borderStyle: 'solid',\n backgroundColor: '#ffdddd'\n };\n }\n\n let appliedStyle;\n if (activeStyle && isDragActive) {\n appliedStyle = {\n ...style,\n ...activeStyle\n };\n } else if (rejectStyle && isDragReject) {\n appliedStyle = {\n ...style,\n ...rejectStyle\n };\n } else {\n appliedStyle = {\n ...style\n };\n }\n\n const inputAttributes = {\n accept,\n type: 'file',\n style: { display: 'none' },\n multiple: supportMultiple && multiple,\n ref: el => this.fileInputEl = el,\n onChange: this.onDrop\n };\n\n if (name && name.length) {\n inputAttributes.name = name;\n }\n\n return (\n