{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap aecd660c20ddb779f3ce","webpack:///./src/index.js","webpack:///external \"react\"","webpack:///./~/attr-accept/dist/index.js","webpack:///./src/getDataTransferItems.js"],"names":["supportMultiple","document","createElement","Dropzone","props","context","onClick","bind","onDragStart","onDragEnter","onDragLeave","onDragOver","onDrop","onFileDialogCancel","fileAccepted","isFileDialogActive","state","isDragActive","enterCounter","body","onfocus","e","call","preventDefault","allFilesAccepted","multiple","setState","isDragReject","stopPropagation","dataTransfer","dropEffect","err","onDropAccepted","onDropRejected","disablePreview","fileList","acceptedFiles","rejectedFiles","forEach","file","preview","window","URL","createObjectURL","fileMatchSize","push","length","disableClick","open","fileInputEl","setTimeout","FileList","files","accept","size","maxSize","minSize","every","value","click","activeClassName","inputProps","name","rejectClassName","rest","activeStyle","className","rejectStyle","style","width","height","borderWidth","borderColor","borderStyle","borderRadius","backgroundColor","appliedStyle","inputAttributes","type","display","ref","el","onChange","customProps","divProps","prop","children","Component","defaultProps","Infinity","propTypes","PropTypes","func","node","object","string","bool","number","getDataTransferFiles","event","isMultipleAllowed","dataTransferItemsList","dt","items","target","Array","prototype","slice"],"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;;;;;;;;;;;;;;;;;ACrCA;;;;AACA;;;;AACA;;;;;;;;;;;;gfAHA;;;AAKA,KAAMA,kBAAmB,OAAOC,QAAP,KAAoB,WAApB,IAAmCA,QAAnC,IAA+CA,SAASC,aAAzD,GACtB,cAAcD,SAASC,aAAT,CAAuB,OAAvB,CADQ,GAEtB,IAFF;;KAIMC,Q;;;AACJ,qBAAYC,KAAZ,EAAmBC,OA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EAAiC;AACtC;AACA;AACAuD,+BAAwBC,GAAGC,KAA3B;AACD;AACF,IATD,MASO,IAAIJ,MAAMK,MAAN,IAAgBL,MAAMK,MAAN,CAAapD,KAAjC,EAAwC;AAC7CiD,6BAAwBF,MAAMK,MAAN,CAAapD,KAArC;AACD;;AAED,OAAIiD,sBAAsBvD,MAAtB,GAA+B,CAAnC,EAAsC;AACpCuD,6BAAwBD,oBAAoBC,qBAApB,GAA4C,CAACA,sBAAsB,CAAtB,CAAD,CAApE;AACD;;AAED;AACA,UAAOI,MAAMC,SAAN,CAAgBC,KAAhB,CAAsBrF,IAAtB,CAA2B+E,qBAA3B,CAAP;AACD","file":"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_1__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \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 aecd660c20ddb779f3ce","/* eslint prefer-template: 0 */\nimport React from 'react';\nimport accepts from 'attr-accept';\nimport getDataTransferItems from './getDataTransferItems';\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.onDragStart = this.onDragStart.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 this.onFileDialogCancel = this.onFileDialogCancel.bind(this);\n this.fileAccepted = this.fileAccepted.bind(this);\n this.isFileDialogActive = false;\n this.state = {\n isDragActive: false\n };\n }\n\n componentDidMount() {\n this.enterCounter = 0;\n // Tried implementing addEventListener, but didn't work out\n document.body.onfocus = this.onFileDialogCancel;\n }\n\n componentWillUnmount() {\n // Can be replaced with removeEventListener, if addEventListener works\n document.body.onfocus = null;\n }\n\n onDragStart(e) {\n if (this.props.onDragStart) {\n this.props.onDragStart.call(this, e);\n }\n }\n\n onDragEnter(e) {\n e.preventDefault();\n\n // Count the dropzone and any children that are entered.\n ++this.enterCounter;\n\n const allFilesAccepted = this.allFilesAccepted(getDataTransferItems(e, this.props.multiple));\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) { // eslint-disable-line class-methods-use-this\n e.preventDefault();\n e.stopPropagation();\n try {\n e.dataTransfer.dropEffect = '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, e);\n }\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 const { onDrop, onDropAccepted, onDropRejected, multiple, disablePreview } = this.props;\n const fileList = getDataTransferItems(e, multiple);\n const acceptedFiles = [];\n const rejectedFiles = [];\n\n // Stop default browser behavior\n e.preventDefault();\n\n // Reset the counter along with the drag on a drop.\n this.enterCounter = 0;\n this.isFileDialogActive = false;\n\n fileList.forEach((file) => {\n if (!disablePreview) {\n file.preview = window.URL.createObjectURL(file); // eslint-disable-line no-param-reassign\n }\n\n if (this.fileAccepted(file) && this.fileMatchSize(file)) {\n acceptedFiles.push(file);\n } else {\n rejectedFiles.push(file);\n }\n });\n\n if (onDrop) {\n onDrop.call(this, acceptedFiles, rejectedFiles, e);\n }\n\n if (rejectedFiles.length > 0 && onDropRejected) {\n onDropRejected.call(this, rejectedFiles, e);\n }\n\n if (acceptedFiles.length > 0 && onDropAccepted) {\n onDropAccepted.call(this, acceptedFiles, e);\n }\n\n // Reset drag state\n this.setState({\n isDragActive: false,\n isDragReject: false\n });\n }\n\n onClick(e) {\n e.stopPropagation();\n const { onClick, disableClick } = this.props;\n if (!disableClick) {\n this.open();\n if (onClick) {\n onClick.call(this, e);\n }\n }\n }\n\n onFileDialogCancel() {\n // timeout will not recognize context of this method\n const { onFileDialogCancel } = this.props;\n const { fileInputEl } = this;\n let { isFileDialogActive } = this;\n // execute the timeout only if the onFileDialogCancel is defined and FileDialog\n // is opened in the browser\n if (onFileDialogCancel && isFileDialogActive) {\n setTimeout(() => {\n // Returns an object as FileList\n const FileList = fileInputEl.files;\n if (!FileList.length) {\n isFileDialogActive = false;\n onFileDialogCancel();\n }\n }, 300);\n }\n }\n\n fileAccepted(file) {\n return accepts(file, this.props.accept);\n }\n\n fileMatchSize(file) {\n return file.size <= this.props.maxSize && file.size >= this.props.minSize;\n }\n\n allFilesAccepted(files) {\n return files.every(this.fileAccepted);\n }\n\n open() {\n this.isFileDialogActive = true;\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, // eslint-disable-line\n onChange: this.onDrop\n };\n\n if (name && name.length) {\n inputAttributes.name = name;\n }\n\n // Remove custom properties before passing them to the wrapper div element\n const customProps = [\n 'acceptedFiles',\n 'disablePreview',\n 'disableClick',\n 'onDropAccepted',\n 'onDropRejected',\n 'onFileDialogCancel',\n 'maxSize',\n 'minSize'\n ];\n const divProps = { ...props };\n customProps.forEach(prop => delete divProps[prop]);\n\n return (\n