(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4893],{57460:function(e,t){var r,n,i;n=[],r=function e(){"use strict";var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},r=!t.document&&!!t.postMessage,n=t.IS_PAPA_WORKER||!1,i={},o=0,s={parse:function(r,n){var a=(n=n||{}).dynamicTyping||!1;if(E(a)&&(n.dynamicTypingFunction=a,a={}),n.dynamicTyping=a,n.transform=!!E(n.transform)&&n.transform,n.worker&&s.WORKERS_SUPPORTED){var l=function(){if(!s.WORKERS_SUPPORTED)return!1;var r,n,a=(r=t.URL||t.webkitURL||null,n=e.toString(),s.BLOB_URL||(s.BLOB_URL=r.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",n,")();"],{type:"text/javascript"})))),l=new t.Worker(a);return l.onmessage=v,l.id=o++,i[l.id]=l}();return l.userStep=n.step,l.userChunk=n.chunk,l.userComplete=n.complete,l.userError=n.error,n.step=E(n.step),n.chunk=E(n.chunk),n.complete=E(n.complete),n.error=E(n.error),delete n.worker,void l.postMessage({input:r,config:n,workerId:l.id})}var h=null;return s.NODE_STREAM_INPUT,"string"==typeof r?(r=function(e){return 65279===e.charCodeAt(0)?e.slice(1):e}(r),h=n.download?new u(n):new c(n)):!0===r.readable&&E(r.read)&&E(r.on)?h=new f(n):(t.File&&r instanceof File||r instanceof Object)&&(h=new d(n)),h.stream(r)},unparse:function(e,t){var r=!1,n=!0,i=",",o="\r\n",a='"',l=a+a,u=!1,d=null,c=!1;!function(){if("object"==typeof t){if("string"!=typeof t.delimiter||s.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(i=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(r=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(u=t.skipEmptyLines),"string"==typeof t.newline&&(o=t.newline),"string"==typeof t.quoteChar&&(a=t.quoteChar),"boolean"==typeof t.header&&(n=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");d=t.columns}void 0!==t.escapeChar&&(l=t.escapeChar+a),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(c=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var f=new RegExp(p(a),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return h(null,e,u);if("object"==typeof e[0])return h(d||Object.keys(e[0]),e,u)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||d),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),h(e.fields||[],e.data||[],u);throw new Error("Unable to serialize unrecognized input");function h(e,t,r){var s="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var a=Array.isArray(e)&&0=this._config.preview;if(n)t.postMessage({results:a,workerId:s.WORKER_ID,finished:u});else if(E(this._config.chunk)&&!r){if(this._config.chunk(a,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);a=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta),this._completed||!u||!E(this._config.complete)||a&&a.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),u||a&&a.meta.paused||this._nextChunk(),a}this._halted=!0},this._sendError=function(e){E(this._config.error)?this._config.error(e):n&&this._config.error&&t.postMessage({workerId:s.WORKER_ID,error:e,finished:!1})}}function u(e){var t;(e=e||{}).chunkSize||(e.chunkSize=s.RemoteChunkSize),l.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var n in e)t.setRequestHeader(n,e[n])}if(this._config.chunkSize){var i=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+i)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var r=t.statusText||e;this._sendError(new Error(r))}}function d(e){var t,r;(e=e||{}).chunkSize||(e.chunkSize=s.LocalChunkSize),l.call(this,e);var n="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,r=e.slice||e.webkitSlice||e.mozSlice,n?((t=new FileReader).onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function c(e){var t;l.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,r=this._config.chunkSize;return r?(e=t.substring(0,r),t=t.substring(r)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function f(e){l.call(this,e=e||{});var t=[],r=!0,n=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=b((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=b((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=b((function(){this._streamCleanUp(),n=!0,this._streamData("")}),this),this._streamCleanUp=b((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function h(e){var t,r,n,i=Math.pow(2,53),o=-i,a=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,l=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,u=this,d=0,c=0,f=!1,h=!1,v=[],m={data:[],errors:[],meta:{}};if(E(e.step)){var _=e.step;e.step=function(t){if(m=t,R())C();else{if(C(),0===m.data.length)return;d+=t.data.length,e.preview&&d>e.preview?r.abort():(m.data=m.data[0],_(m,u))}}}function b(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function C(){return m&&n&&(w("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),n=!1),e.skipEmptyLines&&(m.data=m.data.filter((function(e){return!b(e)}))),R()&&function(){if(m)if(Array.isArray(m.data[0])){for(var t=0;R()&&t=v.length?"__parsed_extra":v[n]),e.transform&&(s=e.transform(s,o)),s=k(o,s),"__parsed_extra"===o?(i[o]=i[o]||[],i[o].push(s)):i[o]=s}return e.header&&(n>v.length?w("FieldMismatch","TooManyFields","Too many fields: expected "+v.length+" fields but parsed "+n,c+r):n=n.length/2?"\r\n":"\r"}(i,l)),n=!1,e.delimiter)E(e.delimiter)&&(e.delimiter=e.delimiter(i),m.meta.delimiter=e.delimiter);else{var u=function(t,r,n,i,o){var a,l,u,d;o=o||[",","\t","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var c=0;c=a)return Q(!0)}else for(z=d,d++;;){if(-1===(z=s.indexOf(t,z+1)))return h||C.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:b.length,index:d}),W();if(z===g-1)return W(s.substring(d,z).replace(M,t));if(t!==u||s[z+1]!==u){if(t===u||0===z||s[z-1]!==u){-1!==P&&P=a)return Q(!0);break}C.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:b.length,index:d}),z++}}else z++}return W();function q(e){b.push(e),k=d}function H(e){var t=0;if(-1!==e){var r=s.substring(z+1,e);r&&""===r.trim()&&(t=r.length)}return t}function W(e){return h||(void 0===e&&(e=s.substring(d)),R.push(e),d=g,q(R),y&&V()),Q()}function K(e){d=e,q(R),R=[],j=s.indexOf(n,d)}function Q(e){return{data:b,errors:C,meta:{delimiter:r,linebreak:n,aborted:c,truncated:!!e,cursor:k+(f||0)}}}function V(){o(Q()),b=[],C=[]}},this.abort=function(){c=!0},this.getCharIndex=function(){return d}}function v(e){var t=e.data,r=i[t.workerId],n=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var o={abort:function(){n=!0,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:_,resume:_};if(E(r.userStep)){for(var s=0;s>16)+t;i>255?i=255:i<0&&(i=0);var o=(n>>8&255)+t;o>255?o=255:o<0&&(o=0);var s=(255&n)+t;return s>255?s=255:s<0&&(s=0),(r?"#":"")+(s|o<<8|i<<16).toString(16)}function c(e){return o.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",width:"23",height:"23",viewBox:"0 0 512 512"},o.createElement("path",{fill:e.color,d:"M504.1 256C504.1 119 393 7.9 256 7.9S7.9 119 7.9 256 119 504.1 256 504.1 504.1 393 504.1 256z"}),o.createElement("path",{fill:"#FFF",d:"M285 256l72.5-84.2c7.9-9.2 6.9-23-2.3-31-9.2-7.9-23-6.9-30.9 2.3L256 222.4l-68.2-79.2c-7.9-9.2-21.8-10.2-31-2.3-9.2 7.9-10.2 21.8-2.3 31L227 256l-72.5 84.2c-7.9 9.2-6.9 23 2.3 31 4.1 3.6 9.2 5.3 14.3 5.3 6.2 0 12.3-2.6 16.6-7.6l68.2-79.2 68.2 79.2c4.3 5 10.5 7.6 16.6 7.6 5.1 0 10.2-1.7 14.3-5.3 9.2-7.9 10.2-21.8 2.3-31L285 256z"}))}var f={progressBar:{borderRadius:3,boxShadow:"inset 0 1px 3px rgba(0, 0, 0, .2)",bottom:14,position:"absolute",width:"80%"},buttonProgressBar:{position:"inherit",width:"100%"},progressBarFill:{backgroundColor:"#659cef",borderRadius:3,height:10,transition:"width 500ms ease-in-out"}},h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){var e=this.props,t=e.style,r=e.progressBar,n=e.displayProgressBarStatus,i=e.isButtonProgressBar;return o.createElement("div",{style:Object.assign({},f.progressBar,i&&f.buttonProgressBar)},o.createElement("span",{style:Object.assign({},f.progressBarFill,t,{width:"".concat(r,"%"),display:n})}))},t}(o.Component),p={dropArea:{alignItems:"center",borderStyle:"dashed",borderWidth:2,borderRadius:20,borderColor:"#CCC",display:"flex",flexDirection:"column",height:"100%",justifyContent:"center",padding:20},dropAreaDefaultBorderColor:{borderColor:"#CCC"},inputFile:{display:"none"},highlight:{borderColor:"#686868"},unhighlight:{borderColor:"#CCC"},dropFile:{background:"linear-gradient(to bottom, #EEE, #DDD)",borderRadius:20,display:"block",height:120,width:100,paddingLeft:10,paddingRight:10,position:"relative",zIndex:10},column:{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},fileSizeInfo:{backgroundColor:"rgba(255, 255, 255, 0.4)",borderRadius:3,lineHeight:1,marginBottom:"0.5em",padding:"0 0.4em"},fileNameInfo:{backgroundColor:"rgba(255, 255, 255, 0.4)",borderRadius:3,fontSize:14,lineHeight:1,padding:"0 0.4em"},defaultCursor:{cursor:"default"},pointerCursor:{cursor:"pointer"},dropFileRemoveButton:{height:23,position:"absolute",right:6,top:6,width:23}};(function(e){function t(){var t,r,n,s,a,f,h,g,v,m=e.apply(this,arguments)||this;return m.inputFileRef=o.createRef(),m.dropAreaRef=o.createRef(),m.fileSizeInfoRef=o.createRef(),m.fileNameInfoRef=o.createRef(),m.REMOVE_ICON_COLOR=m.props.removeButtonColor||(null===(s=null===(n=null===(r=null===(t=m.props.style)||void 0===t?void 0:t.dropArea)||void 0===r?void 0:r.dropFile)||void 0===n?void 0:n.removeButton)||void 0===s?void 0:s.color)||(null===(h=null===(f=null===(a=m.props.style)||void 0===a?void 0:a.dropFile)||void 0===f?void 0:f.removeButton)||void 0===h?void 0:h.color)||(null===(v=null===(g=m.props.style)||void 0===g?void 0:g.removeButton)||void 0===v?void 0:v.color)||"#A01919",m.REMOVE_ICON_COLOR_LIGHT=d(m.REMOVE_ICON_COLOR,40),m.state={dropAreaCustom:{},progressBar:0,displayProgressBarStatus:"none",file:null,timeout:null,files:null,removeIconColor:m.REMOVE_ICON_COLOR,isCanceled:!1},m.componentDidUpdate=function(e){m.props.isReset!==e.isReset&&m.removeFile()},m.componentDidMount=function(){var e=m.dropAreaRef.current;e&&(["dragenter","dragover","dragleave","drop"].forEach((function(t){e.addEventListener(t,m.preventDefaults,!1)})),m.props.noDrag||(["dragenter","dragover"].forEach((function(t){e.addEventListener(t,m.highlight,!1)})),e.addEventListener("dragleave",m.unhighlight,!1),e.addEventListener("drop",m.unhighlight,!1),e.addEventListener("drop",m.visibleProgressBar,!1),e.addEventListener("drop",m.handleDrop,!1)))},m.componentWillUnmount=function(){var e=m.dropAreaRef.current;["dragenter","dragover","dragleave","drop"].forEach((function(t){e.removeEventListener(t,m.preventDefaults,!1)})),m.props.noDrag||(["dragenter","dragover"].forEach((function(t){e.removeEventListener(t,m.highlight,!1)})),e.removeEventListener("dragleave",m.unhighlight,!1),e.removeEventListener("drop",m.unhighlight,!1),e.removeEventListener("drop",m.visibleProgressBar,!1),e.removeEventListener("drop",m.handleDrop,!1))},m.preventDefaults=function(e){e.preventDefault(),e.stopPropagation()},m.highlight=function(){var e,t,r,n,i=m.props.style;m.setState({dropAreaCustom:Object.assign({},(null==i?void 0:i.dropAreaActive)?(null==i?void 0:i.dropAreaActive.borderColor)?null==i?void 0:i.dropAreaActive:Object.assign({},null==i?void 0:i.dropAreaActive,p.highlight):(null===(e=null==i?void 0:i.dropArea)||void 0===e?void 0:e.dropAreaActive)?(null===(t=null==i?void 0:i.dropArea)||void 0===t?void 0:t.dropAreaActive.borderColor)?null===(r=null==i?void 0:i.dropArea)||void 0===r?void 0:r.dropAreaActive:Object.assign({},null===(n=null==i?void 0:i.dropArea)||void 0===n?void 0:n.dropAreaActive,p.highlight):p.highlight)}),m.setState({progressBar:0})},m.unhighlight=function(){var e,t;m.setState({dropAreaCustom:Object.assign({},(null===(t=null===(e=m.props.style)||void 0===e?void 0:e.dropArea)||void 0===t?void 0:t.borderColor)?{}:p.dropAreaDefaultBorderColor)})},m.visibleProgressBar=function(){m.props.noProgressBar||m.setState({displayProgressBarStatus:"block"})},m.handleDrop=function(e){var t=null,r=!1;0===(t=void 0===e.files?e.dataTransfer.files:e.files).length&&(t=m.state.files,r=!0),m.setState({files:t,isCanceled:r},(function(){m.handleFiles()}))},m.handleFiles=function(){m.setState({progressBar:0}),l([],m.state.files).forEach(m.uploadFile)},m.uploadFile=function(e){m.displayFileInfo(e),m.setState({file:e});var t=m.props,r=t.onDrop,n=t.onFileLoad,o=t.onError,s=t.config,a=void 0===s?{}:s,l=new window.FileReader,u={},d=e.size,c=[],f=0;if(r||n){var h=m;u=Object.assign({complete:(null==a?void 0:a.complete)||(null==a?void 0:a.step)?a.complete:function(){!r&&n?n(c,e):r&&!n&&r(c,e)},step:(null==a?void 0:a.step)?a.step:function(t){if(c.push(t),a&&a.preview)f=Math.round(c.length/a.preview*100),h.setState({progressBar:f}),c.length===a.preview&&(!r&&n?n(c,e):r&&!n&&r(c,e));else{var i=t.meta.cursor,o=Math.round(i/d*100);if(o===f)return;f=o}h.setState({progressBar:f})}},u)}o&&(u=Object.assign({error:o},u)),a&&(u=Object.assign({},a,u)),l.onload=function(e){i().parse(e.target.result,u)},m.props.noProgressBar||(l.onloadend=function(){clearTimeout(m.state.timeout),m.setState({timeout:setTimeout((function(){m.disableProgressBar()}),2e3)})}),l.readAsText(e,a.encoding||"utf-8")},m.displayFileInfo=function(e){m.childrenIsFunction()||(m.fileSizeInfoRef.current.innerHTML=u(e.size),m.fileNameInfoRef.current.innerHTML=e.name)},m.disableProgressBar=function(){m.props.noProgressBar||m.setState({displayProgressBarStatus:"none"})},m.childrenIsFunction=function(){return"function"==typeof m.props.children},m.fileChange=function(e){var t=e.target;m.props.noProgressBar?m.handleDrop(t):m.setState({displayProgressBarStatus:"block"},(function(){m.handleDrop(t)}))},m.open=function(e){var t=m.state.displayProgressBarStatus;e&&"none"===t&&(m.preventDefaults(e),m.inputFileRef.current.value=null,m.inputFileRef.current.click())},m.renderChildren=function(){var e=m.props.children,t=m.state,r=t.file,n=t.progressBar;return m.childrenIsFunction()?e({file:r,progressBar:n}):e},m.handleRemoveFile=function(e){e&&(e.stopPropagation(),m.removeFile())},m.removeFile=function(){m.setState({files:null,file:null});var e=m.props.onRemoveFile;e&&e(null),m.inputFileRef.current.value=null},m.changeRemoveIconColor=function(e){e&&m.setState({removeIconColor:e})},m.renderDropFileRemoveButton=function(){var e=m.props.addRemoveButton,t=m.state,r=t.removeIconColor,n=t.displayProgressBarStatus;return e&&"none"===n?o.createElement("div",{style:p.dropFileRemoveButton,onClick:function(e){return m.handleRemoveFile(e)},onMouseOver:function(){return m.changeRemoveIconColor(m.REMOVE_ICON_COLOR_LIGHT)},onMouseOut:function(){return m.changeRemoveIconColor(m.REMOVE_ICON_COLOR)}},o.createElement(c,{color:r})):e?o.createElement("div",{style:p.dropFileRemoveButton},o.createElement(c,{color:m.REMOVE_ICON_COLOR})):null},m}a(t,e),t.prototype.render=function(){var e,t,r,n,i,s,a,l,u,d,c,f,g,v=this,m=this.props,_=m.style,y=m.noClick,b=m.children,E=m.noProgressBar,C=m.progressBarColor,R=m.accept,k=this.state,w=k.dropAreaCustom,O=k.files,S=k.isCanceled,A=k.progressBar,I=k.displayProgressBarStatus;return o.createElement(o.Fragment,null,o.createElement("input",{type:"file",accept:R||"text/csv, .csv, application/vnd.ms-excel",ref:this.inputFileRef,style:p.inputFile,onChange:function(e){return v.fileChange(e)}}),this.childrenIsFunction()?o.createElement("div",{ref:this.dropAreaRef},this.renderChildren(),O&&O.length>0&&!S&&!E&&o.createElement(h,{style:Object.assign({},C?{backgroundColor:C}:{},(null===(f=null===(c=null==_?void 0:_.dropArea)||void 0===c?void 0:c.dropFile)||void 0===f?void 0:f.progressBar)||(null===(g=null==_?void 0:_.dropFile)||void 0===g?void 0:g.progressBar)||(null==_?void 0:_.progressBar)),progressBar:A,displayProgressBarStatus:I,isButtonProgressBar:!0})):o.createElement("div",{ref:this.dropAreaRef,style:Object.assign({},p.dropArea,null==_?void 0:_.dropArea,w,void 0!==y||"block"===I?p.defaultCursor:p.pointerCursor),onClick:function(e){y||v.open(e)}},O&&O.length>0?o.createElement("div",{style:Object.assign({},p.dropFile,p.column,(null===(e=null==_?void 0:_.dropArea)||void 0===e?void 0:e.dropFile)||(null==_?void 0:_.dropFile))},this.renderDropFileRemoveButton(),o.createElement("div",{style:p.column},o.createElement("span",{style:Object.assign({},p.fileSizeInfo,(null===(r=null===(t=null==_?void 0:_.dropArea)||void 0===t?void 0:t.dropFile)||void 0===r?void 0:r.fileSizeInfo)||(null===(n=null==_?void 0:_.dropArea)||void 0===n?void 0:n.fileSizeInfo)||(null==_?void 0:_.fileSizeInfo)),ref:this.fileSizeInfoRef}),o.createElement("span",{style:Object.assign({},p.fileNameInfo,(null===(s=null===(i=null==_?void 0:_.dropArea)||void 0===i?void 0:i.dropFile)||void 0===s?void 0:s.fileNameInfo)||(null===(a=null==_?void 0:_.dropFile)||void 0===a?void 0:a.fileNameInfo)||(null==_?void 0:_.fileNameInfo)),ref:this.fileNameInfoRef})),O&&O.length>0&&!S&&!E&&o.createElement(h,{style:Object.assign({},C?{backgroundColor:C}:{},(null===(u=null===(l=null==_?void 0:_.dropArea)||void 0===l?void 0:l.dropFile)||void 0===u?void 0:u.progressBar)||(null===(d=null==_?void 0:_.dropFile)||void 0===d?void 0:d.progressBar)||(null==_?void 0:_.progressBar)),progressBar:A,displayProgressBarStatus:I})):b))},t.defaultProps={isReset:!1}})(o.Component),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.download=function(e,t,r,n){var o,s,a=r?"\ufeff":"";"function"==typeof e&&(e=e()),o="object"==typeof e?i().unparse(e,n):e;var l=new Blob(["".concat(a).concat(o)],{type:"text/csv;charset=utf-8;"}),u=window.navigator;s=u.msSaveBlob?u.msSaveBlob(l,"".concat(t,".csv")):window.URL.createObjectURL(l);var d=document.createElement("a");d.href=s,d.setAttribute("download","".concat(t,".csv")),d.click(),d.remove()},t}a(t,e),t.prototype.render=function(){var e=this,t=this.props,r=t.children,n=t.data,i=t.filename,s=t.type,a=t.className,l=t.style,u=t.bom,d=void 0!==u&&u,c=t.config,f=void 0===c?{}:c;return"link"===s?o.createElement("a",{onClick:function(){return e.download(n,i,d,f)},className:a,style:l},r):o.createElement("button",{onClick:function(){return e.download(n,i,d,f)},className:a,style:l},r)},t.defaultProps={type:"link"}}(o.Component);function g(e,t){i().parse(e,Object.assign({},{download:!0},t))}i().BAD_DELIMITERS,i().RECORD_SEP,i().UNIT_SEP,i().WORKERS_SUPPORTED,i().LocalChunkSize,i().DefaultDelimiter}}]);