@cubone/react-file-manager 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/dist/react-file-manager.umd.js +0 -207
package/package.json
CHANGED
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
(function(Me,$){typeof exports=="object"&&typeof module<"u"?$(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],$):(Me=typeof globalThis<"u"?globalThis:Me||self,$(Me.ReactFileManager={},Me.React))})(this,function(Me,$){"use strict";var Ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ft={exports:{}},Ie={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Vt;function On(){if(Vt)return Ie;Vt=1;var e=$,y=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,d=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(p,h,c){var m,O={},x=null,V=null;c!==void 0&&(x=""+c),h.key!==void 0&&(x=""+h.key),h.ref!==void 0&&(V=h.ref);for(m in h)i.call(h,m)&&!s.hasOwnProperty(m)&&(O[m]=h[m]);if(p&&p.defaultProps)for(m in h=p.defaultProps,h)O[m]===void 0&&(O[m]=h[m]);return{$$typeof:y,type:p,key:x,ref:V,props:O,_owner:d.current}}return Ie.Fragment=r,Ie.jsx=u,Ie.jsxs=u,Ie}var $e={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.development.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var zt;function Tn(){return zt||(zt=1,process.env.NODE_ENV!=="production"&&function(){var e=$,y=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),p=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),V=Symbol.for("react.offscreen"),H=Symbol.iterator,T="@@iterator";function F(o){if(o===null||typeof o!="object")return null;var A=H&&o[H]||o[T];return typeof A=="function"?A:null}var z=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function q(o){{for(var A=arguments.length,K=new Array(A>1?A-1:0),Z=1;Z<A;Z++)K[Z-1]=arguments[Z];X("error",o,K)}}function X(o,A,K){{var Z=z.ReactDebugCurrentFrame,le=Z.getStackAddendum();le!==""&&(A+="%s",K=K.concat([le]));var pe=K.map(function(t){return String(t)});pe.unshift("Warning: "+A),Function.prototype.apply.call(console[o],console,pe)}}var E=!1,f=!1,C=!1,j=!1,M=!1,G;G=Symbol.for("react.module.reference");function U(o){return!!(typeof o=="string"||typeof o=="function"||o===i||o===s||M||o===d||o===c||o===m||j||o===V||E||f||C||typeof o=="object"&&o!==null&&(o.$$typeof===x||o.$$typeof===O||o.$$typeof===u||o.$$typeof===p||o.$$typeof===h||o.$$typeof===G||o.getModuleId!==void 0))}function P(o,A,K){var Z=o.displayName;if(Z)return Z;var le=A.displayName||A.name||"";return le!==""?K+"("+le+")":K}function J(o){return o.displayName||"Context"}function Q(o){if(o==null)return null;if(typeof o.tag=="number"&&q("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case i:return"Fragment";case r:return"Portal";case s:return"Profiler";case d:return"StrictMode";case c:return"Suspense";case m:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case p:var A=o;return J(A)+".Consumer";case u:var K=o;return J(K._context)+".Provider";case h:return P(o,o.render,"ForwardRef");case O:var Z=o.displayName||null;return Z!==null?Z:Q(o.type)||"Memo";case x:{var le=o,pe=le._payload,t=le._init;try{return Q(t(pe))}catch{return null}}}return null}var te=Object.assign,ue=0,re,me,he,ce,k,B,g;function _(){}_.__reactDisabledLog=!0;function I(){{if(ue===0){re=console.log,me=console.info,he=console.warn,ce=console.error,k=console.group,B=console.groupCollapsed,g=console.groupEnd;var o={configurable:!0,enumerable:!0,value:_,writable:!0};Object.defineProperties(console,{info:o,log:o,warn:o,error:o,group:o,groupCollapsed:o,groupEnd:o})}ue++}}function Y(){{if(ue--,ue===0){var o={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:te({},o,{value:re}),info:te({},o,{value:me}),warn:te({},o,{value:he}),error:te({},o,{value:ce}),group:te({},o,{value:k}),groupCollapsed:te({},o,{value:B}),groupEnd:te({},o,{value:g})})}ue<0&&q("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var D=z.ReactCurrentDispatcher,a;function v(o,A,K){{if(a===void 0)try{throw Error()}catch(le){var Z=le.stack.trim().match(/\n( *(at )?)/);a=Z&&Z[1]||""}return`
|
|
18
|
-
`+a+o}}var S=!1,w;{var L=typeof WeakMap=="function"?WeakMap:Map;w=new L}function b(o,A){if(!o||S)return"";{var K=w.get(o);if(K!==void 0)return K}var Z;S=!0;var le=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var pe;pe=D.current,D.current=null,I();try{if(A){var t=function(){throw Error()};if(Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(ve){Z=ve}Reflect.construct(o,[],t)}else{try{t.call()}catch(ve){Z=ve}o.call(t.prototype)}}else{try{throw Error()}catch(ve){Z=ve}o()}}catch(ve){if(ve&&Z&&typeof ve.stack=="string"){for(var l=ve.stack.split(`
|
|
19
|
-
`),R=Z.stack.split(`
|
|
20
|
-
`),N=l.length-1,W=R.length-1;N>=1&&W>=0&&l[N]!==R[W];)W--;for(;N>=1&&W>=0;N--,W--)if(l[N]!==R[W]){if(N!==1||W!==1)do if(N--,W--,W<0||l[N]!==R[W]){var ne=`
|
|
21
|
-
`+l[N].replace(" at new "," at ");return o.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",o.displayName)),typeof o=="function"&&w.set(o,ne),ne}while(N>=1&&W>=0);break}}}finally{S=!1,D.current=pe,Y(),Error.prepareStackTrace=le}var ie=o?o.displayName||o.name:"",ee=ie?v(ie):"";return typeof o=="function"&&w.set(o,ee),ee}function ae(o,A,K){return b(o,!1)}function oe(o){var A=o.prototype;return!!(A&&A.isReactComponent)}function ye(o,A,K){if(o==null)return"";if(typeof o=="function")return b(o,oe(o));if(typeof o=="string")return v(o);switch(o){case c:return v("Suspense");case m:return v("SuspenseList")}if(typeof o=="object")switch(o.$$typeof){case h:return ae(o.render);case O:return ye(o.type,A,K);case x:{var Z=o,le=Z._payload,pe=Z._init;try{return ye(pe(le),A,K)}catch{}}}return""}var be=Object.prototype.hasOwnProperty,Te={},Ee=z.ReactDebugCurrentFrame;function ke(o){if(o){var A=o._owner,K=ye(o.type,o._source,A?A.type:null);Ee.setExtraStackFrame(K)}else Ee.setExtraStackFrame(null)}function Et(o,A,K,Z,le){{var pe=Function.call.bind(be);for(var t in o)if(pe(o,t)){var l=void 0;try{if(typeof o[t]!="function"){var R=Error((Z||"React class")+": "+K+" type `"+t+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[t]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw R.name="Invariant Violation",R}l=o[t](A,t,Z,K,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(N){l=N}l&&!(l instanceof Error)&&(ke(le),q("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Z||"React class",K,t,typeof l),ke(null)),l instanceof Error&&!(l.message in Te)&&(Te[l.message]=!0,ke(le),q("Failed %s type: %s",K,l.message),ke(null))}}}var Ot=Array.isArray;function He(o){return Ot(o)}function Tt(o){{var A=typeof Symbol=="function"&&Symbol.toStringTag,K=A&&o[Symbol.toStringTag]||o.constructor.name||"Object";return K}}function et(o){try{return tt(o),!1}catch{return!0}}function tt(o){return""+o}function _e(o){if(et(o))return q("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Tt(o)),tt(o)}var Pe=z.ReactCurrentOwner,nt={key:!0,ref:!0,__self:!0,__source:!0},Ve,ze,Ne;Ne={};function St(o){if(be.call(o,"ref")){var A=Object.getOwnPropertyDescriptor(o,"ref").get;if(A&&A.isReactWarning)return!1}return o.ref!==void 0}function Pt(o){if(be.call(o,"key")){var A=Object.getOwnPropertyDescriptor(o,"key").get;if(A&&A.isReactWarning)return!1}return o.key!==void 0}function Rt(o,A){if(typeof o.ref=="string"&&Pe.current&&A&&Pe.current.stateNode!==A){var K=Q(Pe.current.type);Ne[K]||(q('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Q(Pe.current.type),o.ref),Ne[K]=!0)}}function We(o,A){{var K=function(){Ve||(Ve=!0,q("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",A))};K.isReactWarning=!0,Object.defineProperty(o,"key",{get:K,configurable:!0})}}function Mt(o,A){{var K=function(){ze||(ze=!0,q("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",A))};K.isReactWarning=!0,Object.defineProperty(o,"ref",{get:K,configurable:!0})}}var kt=function(o,A,K,Z,le,pe,t){var l={$$typeof:y,type:o,key:A,ref:K,props:t,_owner:pe};return l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Z}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:le}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function _t(o,A,K,Z,le){{var pe,t={},l=null,R=null;K!==void 0&&(_e(K),l=""+K),Pt(A)&&(_e(A.key),l=""+A.key),St(A)&&(R=A.ref,Rt(A,le));for(pe in A)be.call(A,pe)&&!nt.hasOwnProperty(pe)&&(t[pe]=A[pe]);if(o&&o.defaultProps){var N=o.defaultProps;for(pe in N)t[pe]===void 0&&(t[pe]=N[pe])}if(l||R){var W=typeof o=="function"?o.displayName||o.name||"Unknown":o;l&&We(t,W),R&&Mt(t,W)}return kt(o,l,R,le,Z,Pe.current,t)}}var Be=z.ReactCurrentOwner,rt=z.ReactDebugCurrentFrame;function Re(o){if(o){var A=o._owner,K=ye(o.type,o._source,A?A.type:null);rt.setExtraStackFrame(K)}else rt.setExtraStackFrame(null)}var Ye;Ye=!1;function Ue(o){return typeof o=="object"&&o!==null&&o.$$typeof===y}function Fe(){{if(Be.current){var o=Q(Be.current.type);if(o)return`
|
|
22
|
-
|
|
23
|
-
Check the render method of \``+o+"`."}return""}}function we(o){return""}var De={};function at(o){{var A=Fe();if(!A){var K=typeof o=="string"?o:o.displayName||o.name;K&&(A=`
|
|
24
|
-
|
|
25
|
-
Check the top-level render call using <`+K+">.")}return A}}function Se(o,A){{if(!o._store||o._store.validated||o.key!=null)return;o._store.validated=!0;var K=at(A);if(De[K])return;De[K]=!0;var Z="";o&&o._owner&&o._owner!==Be.current&&(Z=" It was passed a child from "+Q(o._owner.type)+"."),Re(o),q('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',K,Z),Re(null)}}function qe(o,A){{if(typeof o!="object")return;if(He(o))for(var K=0;K<o.length;K++){var Z=o[K];Ue(Z)&&Se(Z,A)}else if(Ue(o))o._store&&(o._store.validated=!0);else if(o){var le=F(o);if(typeof le=="function"&&le!==o.entries)for(var pe=le.call(o),t;!(t=pe.next()).done;)Ue(t.value)&&Se(t.value,A)}}}function Nt(o){{var A=o.type;if(A==null||typeof A=="string")return;var K;if(typeof A=="function")K=A.propTypes;else if(typeof A=="object"&&(A.$$typeof===h||A.$$typeof===O))K=A.propTypes;else return;if(K){var Z=Q(A);Et(K,o.props,"prop",Z,o)}else if(A.PropTypes!==void 0&&!Ye){Ye=!0;var le=Q(A);q("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",le||"Unknown")}typeof A.getDefaultProps=="function"&&!A.getDefaultProps.isReactClassApproved&&q("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ot(o){{for(var A=Object.keys(o.props),K=0;K<A.length;K++){var Z=A[K];if(Z!=="children"&&Z!=="key"){Re(o),q("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Z),Re(null);break}}o.ref!==null&&(Re(o),q("Invalid attribute `ref` supplied to `React.Fragment`."),Re(null))}}var it={};function Ke(o,A,K,Z,le,pe){{var t=U(o);if(!t){var l="";(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(l+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var R=we();R?l+=R:l+=Fe();var N;o===null?N="null":He(o)?N="array":o!==void 0&&o.$$typeof===y?(N="<"+(Q(o.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):N=typeof o,q("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",N,l)}var W=_t(o,A,K,le,pe);if(W==null)return W;if(t){var ne=A.children;if(ne!==void 0)if(Z)if(He(ne)){for(var ie=0;ie<ne.length;ie++)qe(ne[ie],o);Object.freeze&&Object.freeze(ne)}else q("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else qe(ne,o)}if(be.call(A,"key")){var ee=Q(o),ve=Object.keys(A).filter(function(xe){return xe!=="key"}),Ce=ve.length>0?"{key: someKey, "+ve.join(": ..., ")+": ...}":"{key: someKey}";if(!it[ee+Ce]){var je=ve.length>0?"{"+ve.join(": ..., ")+": ...}":"{}";q(`A props object containing a "key" prop is being spread into JSX:
|
|
26
|
-
let props = %s;
|
|
27
|
-
<%s {...props} />
|
|
28
|
-
React keys must be passed directly to JSX without using spread:
|
|
29
|
-
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Ce,ee,je,ee),it[ee+Ce]=!0}}return o===i?ot(W):Nt(W),W}}function st(o,A,K){return Ke(o,A,K,!0)}function ct(o,A,K){return Ke(o,A,K,!1)}var At=ct,lt=st;$e.Fragment=i,$e.jsx=At,$e.jsxs=lt}()),$e}process.env.NODE_ENV==="production"?ft.exports=On():ft.exports=Tn();var n=ft.exports,Ft={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Dt=$.createContext&&$.createContext(Ft),Sn=["attr","size","title"];function Pn(e,y){if(e==null)return{};var r=Rn(e,y),i,d;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(d=0;d<s.length;d++)i=s[d],!(y.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function Rn(e,y){if(e==null)return{};var r={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(y.indexOf(i)>=0)continue;r[i]=e[i]}return r}function Xe(){return Xe=Object.assign?Object.assign.bind():function(e){for(var y=1;y<arguments.length;y++){var r=arguments[y];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Xe.apply(this,arguments)}function It(e,y){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);y&&(i=i.filter(function(d){return Object.getOwnPropertyDescriptor(e,d).enumerable})),r.push.apply(r,i)}return r}function Ge(e){for(var y=1;y<arguments.length;y++){var r=arguments[y]!=null?arguments[y]:{};y%2?It(Object(r),!0).forEach(function(i){Mn(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):It(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Mn(e,y,r){return y=kn(y),y in e?Object.defineProperty(e,y,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[y]=r,e}function kn(e){var y=_n(e,"string");return typeof y=="symbol"?y:y+""}function _n(e,y){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,y||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(e)}function $t(e){return e&&e.map((y,r)=>$.createElement(y.tag,Ge({key:r},y.attr),$t(y.child)))}function se(e){return y=>$.createElement(Nn,Xe({attr:Ge({},e.attr)},y),$t(e.child))}function Nn(e){var y=r=>{var{attr:i,size:d,title:s}=e,u=Pn(e,Sn),p=d||r.size||"1em",h;return r.className&&(h=r.className),e.className&&(h=(h?h+" ":"")+e.className),$.createElement("svg",Xe({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,i,u,{className:h,style:Ge(Ge({color:e.color||r.color},r.style),e.style),height:p,width:p,xmlns:"http://www.w3.org/2000/svg"}),s&&$.createElement("title",null,s),e.children)};return Dt!==void 0?$.createElement(Dt.Consumer,null,r=>y(r)):y(Ft)}function Lt(e){return se({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z"},child:[]}]})(e)}function An(e){return se({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"m.5 3 .04.87a2 2 0 0 0-.342 1.311l.637 7A2 2 0 0 0 2.826 14H9v-1H2.826a1 1 0 0 1-.995-.91l-.637-7A1 1 0 0 1 2.19 4h11.62a1 1 0 0 1 .996 1.09L14.54 8h1.005l.256-2.819A2 2 0 0 0 13.81 3H9.828a2 2 0 0 1-1.414-.586l-.828-.828A2 2 0 0 0 6.172 1H2.5a2 2 0 0 0-2 2m5.672-1a1 1 0 0 1 .707.293L7.586 3H2.19q-.362.002-.683.12L1.5 2.98a1 1 0 0 1 1-.98z"},child:[]},{tag:"path",attr:{d:"M13.5 9a.5.5 0 0 1 .5.5V11h1.5a.5.5 0 1 1 0 1H14v1.5a.5.5 0 1 1-1 0V12h-1.5a.5.5 0 0 1 0-1H13V9.5a.5.5 0 0 1 .5-.5"},child:[]}]})(e)}function Wt(e){return se({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M1 2.5A1.5 1.5 0 0 1 2.5 1h3A1.5 1.5 0 0 1 7 2.5v3A1.5 1.5 0 0 1 5.5 7h-3A1.5 1.5 0 0 1 1 5.5zm8 0A1.5 1.5 0 0 1 10.5 1h3A1.5 1.5 0 0 1 15 2.5v3A1.5 1.5 0 0 1 13.5 7h-3A1.5 1.5 0 0 1 9 5.5zm-8 8A1.5 1.5 0 0 1 2.5 9h3A1.5 1.5 0 0 1 7 10.5v3A1.5 1.5 0 0 1 5.5 15h-3A1.5 1.5 0 0 1 1 13.5zm8 0A1.5 1.5 0 0 1 10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 9 13.5z"},child:[]}]})(e)}function Bt(e){return se({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M3.5 3.5c-.614-.884-.074-1.962.858-2.5L8 7.226 11.642 1c.932.538 1.472 1.616.858 2.5L8.81 8.61l1.556 2.661a2.5 2.5 0 1 1-.794.637L8 9.73l-1.572 2.177a2.5 2.5 0 1 1-.794-.637L7.19 8.61zm2.5 10a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m7 0a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0"},child:[]}]})(e)}function Hn(e){return se({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"23 4 23 10 17 10"},child:[]},{tag:"polyline",attr:{points:"1 20 1 14 7 14"},child:[]},{tag:"path",attr:{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"},child:[]}]})(e)}function Vn(e){return se({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"},child:[]}]})(e)}function zn(e){return se({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(e)}function Fn(e){return se({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"},child:[]}]})(e)}function Dn(e){return se({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(e)}function Yt(e){return se({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"},child:[]}]})(e)}function In(e){return se({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z"},child:[]}]})(e)}function $n(e){return se({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M10.02 6 8.61 7.41 13.19 12l-4.58 4.59L10.02 18l6-6-6-6z"},child:[]}]})(e)}function Ut(e){return se({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20.005 5.995h-1v2h1v8h-1v2h1c1.103 0 2-.897 2-2v-8c0-1.102-.898-2-2-2zm-14 4H15v4H6.005z"},child:[]},{tag:"path",attr:{d:"M17.005 17.995V4H20V2h-8v2h3.005v1.995h-11c-1.103 0-2 .897-2 2v8c0 1.103.897 2 2 2h11V20H12v2h8v-2h-2.995v-2.005zm-13-2v-8h11v8h-11z"},child:[]}]})(e)}function Ln(e){return se({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"},child:[]}]})(e)}function Wn(e){return se({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M128 0C92.7 0 64 28.7 64 64V288H19.2C8.6 288 0 296.6 0 307.2C0 349.6 34.4 384 76.8 384H320V288H128V64H448V96h64V64c0-35.3-28.7-64-64-64H128zM512 128H400c-26.5 0-48 21.5-48 48V464c0 26.5 21.5 48 48 48H592c26.5 0 48-21.5 48-48V256H544c-17.7 0-32-14.3-32-32V128zm32 0v96h96l-96-96z"},child:[]}]})(e)}function qt(e){return se({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 144a48 48 0 1 0 0-96 48 48 0 1 0 0 96zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zM64 464a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm48-208a48 48 0 1 0 -96 0 48 48 0 1 0 96 0z"},child:[]}]})(e)}function Kt(e){return se({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M64 464H320c8.8 0 16-7.2 16-16V160H256c-17.7 0-32-14.3-32-32V48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16zM0 64C0 28.7 28.7 0 64 0H229.5c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zM192 272V400c0 6.5-3.9 12.3-9.9 14.8s-12.9 1.1-17.4-3.5L129.4 376H112c-8.8 0-16-7.2-16-16V312c0-8.8 7.2-16 16-16h17.4l35.3-35.3c4.6-4.6 11.5-5.9 17.4-3.5s9.9 8.3 9.9 14.8zm85.8-4c11.6 20 18.2 43.3 18.2 68s-6.6 48-18.2 68c-6.6 11.5-21.3 15.4-32.8 8.8s-15.4-21.3-8.8-32.8c7.5-12.9 11.8-27.9 11.8-44s-4.3-31.1-11.8-44c-6.6-11.5-2.7-26.2 8.8-32.8s26.2-2.7 32.8 8.8z"},child:[]}]})(e)}function ge(e){return se({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M64 464c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm97 289c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0L79 303c-9.4 9.4-9.4 24.6 0 33.9l48 48c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-31-31 31-31zM257 255c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l31 31-31 31c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l48-48c9.4-9.4 9.4-24.6 0-33.9l-48-48z"},child:[]}]})(e)}function Xt(e){return se({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M48 448V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm90.9 233.3c-8.1-10.5-23.2-12.3-33.7-4.2s-12.3 23.2-4.2 33.7L161.6 320l-44.5 57.3c-8.1 10.5-6.3 25.5 4.2 33.7s25.5 6.3 33.7-4.2L192 359.1l37.1 47.6c8.1 10.5 23.2 12.3 33.7 4.2s12.3-23.2 4.2-33.7L222.4 320l44.5-57.3c8.1-10.5 6.3-25.5-4.2-33.7s-25.5-6.3-33.7 4.2L192 280.9l-37.1-47.6z"},child:[]}]})(e)}function dt(e){return se({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M64 464c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm96 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm69.2 46.9c-3-4.3-7.9-6.9-13.2-6.9s-10.2 2.6-13.2 6.9l-41.3 59.7-11.9-19.1c-2.9-4.7-8.1-7.5-13.6-7.5s-10.6 2.8-13.6 7.5l-40 64c-3.1 4.9-3.2 11.1-.4 16.2s8.2 8.2 14 8.2h48 32 40 72c6 0 11.4-3.3 14.2-8.6s2.4-11.6-1-16.5l-72-104z"},child:[]}]})(e)}function Bn(e){return se({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M64 464c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm56 256c-13.3 0-24 10.7-24 24s10.7 24 24 24H264c13.3 0 24-10.7 24-24s-10.7-24-24-24H120zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24H264c13.3 0 24-10.7 24-24s-10.7-24-24-24H120z"},child:[]}]})(e)}function Yn(e){return se({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 464l48 0 0 48-48 0c-35.3 0-64-28.7-64-64L0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 304l-48 0 0-144-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16zM176 352l32 0c30.9 0 56 25.1 56 56s-25.1 56-56 56l-16 0 0 32c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-48 0-80c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0 0 48 16 0zm96-80l32 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-32 0c-8.8 0-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16l0-64c0-8.8-7.2-16-16-16l-16 0 0 96 16 0zm80-112c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 32 32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 48c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-64 0-64z"},child:[]}]})(e)}function Gt(e){return se({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M64 464c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm72 208c-13.3 0-24 10.7-24 24V336v56c0 13.3 10.7 24 24 24s24-10.7 24-24V360h44c42 0 76-34 76-76s-34-76-76-76H136zm68 104H160V256h44c15.5 0 28 12.5 28 28s-12.5 28-28 28z"},child:[]}]})(e)}function Jt(e){return se({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M320 464c8.8 0 16-7.2 16-16V160H256c-17.7 0-32-14.3-32-32V48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16H320zM0 64C0 28.7 28.7 0 64 0H229.5c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zM80 288c0-17.7 14.3-32 32-32h96c17.7 0 32 14.3 32 32v16l44.9-29.9c2-1.3 4.4-2.1 6.8-2.1c6.8 0 12.3 5.5 12.3 12.3V387.7c0 6.8-5.5 12.3-12.3 12.3c-2.4 0-4.8-.7-6.8-2.1L240 368v16c0 17.7-14.3 32-32 32H112c-17.7 0-32-14.3-32-32V288z"},child:[]}]})(e)}function Zt(e){return se({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M48 448V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm55 241.1c-3.8-12.7-17.2-19.9-29.9-16.1s-19.9 17.2-16.1 29.9l48 160c3 10.2 12.4 17.1 23 17.1s19.9-7 23-17.1l25-83.4 25 83.4c3 10.2 12.4 17.1 23 17.1s19.9-7 23-17.1l48-160c3.8-12.7-3.4-26.1-16.1-29.9s-26.1 3.4-29.9 16.1l-25 83.4-25-83.4c-3-10.2-12.4-17.1-23-17.1s-19.9 7-23 17.1l-25 83.4-25-83.4z"},child:[]}]})(e)}function pt(e){return se({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M320 464c8.8 0 16-7.2 16-16V160H256c-17.7 0-32-14.3-32-32V48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16H320zM0 64C0 28.7 28.7 0 64 0H229.5c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64z"},child:[]}]})(e)}function Un(e){return se({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M384 480h48c11.4 0 21.9-6 27.6-15.9l112-192c5.8-9.9 5.8-22.1 .1-32.1S555.5 224 544 224H144c-11.4 0-21.9 6-27.6 15.9L48 357.1V96c0-8.8 7.2-16 16-16H181.5c4.2 0 8.3 1.7 11.3 4.7l26.5 26.5c21 21 49.5 32.8 79.2 32.8H416c8.8 0 16 7.2 16 16v32h48V160c0-35.3-28.7-64-64-64H298.5c-17 0-33.3-6.7-45.3-18.7L226.7 50.7c-12-12-28.3-18.7-45.3-18.7H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H87.7 384z"},child:[]}]})(e)}function ht(e){return se({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M104.6 48H64C28.7 48 0 76.7 0 112V384c0 35.3 28.7 64 64 64h96V400H64c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H80c0 17.7 14.3 32 32 32h72.4C202 108.4 227.6 96 256 96h62c-7.1-27.6-32.2-48-62-48H215.4C211.6 20.9 188.2 0 160 0s-51.6 20.9-55.4 48zM144 56a16 16 0 1 1 32 0 16 16 0 1 1 -32 0zM448 464H256c-8.8 0-16-7.2-16-16V192c0-8.8 7.2-16 16-16l140.1 0L464 243.9V448c0 8.8-7.2 16-16 16zM256 512H448c35.3 0 64-28.7 64-64V243.9c0-12.7-5.1-24.9-14.1-33.9l-67.9-67.9c-9-9-21.2-14.1-33.9-14.1H256c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64z"},child:[]}]})(e)}const vt=(e,y)=>{const r=y.filter(i=>i.path===e.path+"/"+e.name);return{...e,children:r.map(i=>vt(i,y))}},Je=(e=()=>{})=>{const[y,r]=$.useState(!1),i=$.useRef(null),d=s=>{var u;(u=i.current)!=null&&u.contains(s.target)?r(!1):(r(!0),e(s,i))};return $.useEffect(()=>(document.addEventListener("click",d,!0),document.addEventListener("mousedown",d,!0),()=>{document.removeEventListener("click",d,!0),document.removeEventListener("mousedown",d,!0)}),[]),{ref:i,isClicked:y,setIsClicked:r}},qn=({activeLayout:e,setActiveLayout:y,setShowToggleViewMenu:r,onLayoutChange:i})=>{const d=Je(()=>{r(!1)}),s=[{key:"grid",name:"Grid",icon:n.jsx(Wt,{size:18})},{key:"list",name:"List",icon:n.jsx(qt,{size:18})}],u=p=>{y(p),r(!1),i(p)};return n.jsx("div",{ref:d.ref,className:"toggle-view",role:"dropdown",children:n.jsx("ul",{role:"menu","aria-orientation":"vertical",children:s.map(p=>n.jsxs("li",{role:"menuitem",onClick:()=>u(p.key),onKeyDown:()=>u(p.key),children:[n.jsx("span",{children:p.key===e&&n.jsx(Ln,{size:13})}),n.jsx("span",{children:p.icon}),n.jsx("span",{children:p.name})]},p.key))})})},Kn=({allowCreateFolder:e=!0,allowUploadFile:y=!0,handleRefresh:r,isItemSelection:i,setIsItemSelection:d,currentPath:s,selectedFile:u,setSelectedFile:p,files:h,clipBoard:c,setClipBoard:m,handlePaste:O,triggerAction:x,onLayoutChange:V,activeLayout:H,setActiveLayout:T})=>{const[F,z]=$.useState(!1),[q,X]=$.useState([{icon:n.jsx(An,{size:17,strokeWidth:.3}),text:"New Folder",permission:e,onClick:()=>x.show("createFolder")},{icon:n.jsx(In,{size:18}),text:"Upload Files",permission:y,onClick:()=>x.show("uploadFile")},{icon:n.jsx(ht,{size:18}),text:"Paste",permission:!1,onClick:()=>{}}]),E=[{icon:H==="grid"?n.jsx(Wt,{size:16}):n.jsx(qt,{size:16}),title:"Change View",onClick:()=>z(j=>!j)},{icon:n.jsx(Hn,{size:16}),title:"Refresh",onClick:()=>{r(),m(null)}}],f=(j,M,G)=>{const U=G.files[0];j.filter(Q=>{const te=Q.path===U.path&&Q.name===U.name,ue=Q.path.startsWith(U.path+"/"+U.name);return te||ue});const P=j.find(Q=>Q.path===M),J=G.isMoving?"move":"copy";O(U,P,J),G.isMoving&&m(null),d(!1),p(null)};$.useEffect(()=>{X(j=>j.map(M=>M.text==="Paste"?{...M,permission:!!c,onClick:()=>f(h,s,c)}:M))},[c,s,h]);const C=j=>{m({files:[{...vt(u,h)}],isMoving:j})};if(i){const j=u.path;return n.jsx("div",{className:"toolbar file-selected",children:n.jsxs("div",{className:"file-action-container",children:[n.jsxs("div",{children:[n.jsxs("button",{className:"item-action file-action",onClick:()=>C(!0),children:[n.jsx(Bt,{size:18}),n.jsx("span",{children:"Cut"})]}),n.jsxs("button",{className:"item-action file-action",onClick:()=>C(!1),children:[n.jsx(Lt,{strokeWidth:.1,size:17}),n.jsx("span",{children:"Copy"})]}),u.isDirectory?n.jsxs("button",{className:"item-action file-action",onClick:()=>f(h,j,c),disabled:!c,children:[n.jsx(ht,{size:18}),n.jsx("span",{children:"Paste"})]}):n.jsx(n.Fragment,{}),n.jsxs("button",{className:"item-action file-action",onClick:()=>x.show("rename"),children:[n.jsx(Ut,{size:19}),n.jsx("span",{children:"Rename"})]}),n.jsxs("button",{className:"item-action file-action",onClick:()=>x.show("delete"),children:[n.jsx(Yt,{size:19}),n.jsx("span",{children:"Delete"})]})]}),n.jsxs("button",{className:"item-action file-action",onClick:()=>d(!1),children:[n.jsx(zn,{size:18}),n.jsx("span",{children:"Clear Selection"})]})]})})}return n.jsx("div",{className:"toolbar",children:n.jsxs("div",{className:"fm-toolbar",children:[n.jsx("div",{children:q.filter(j=>j.permission).map((j,M)=>n.jsxs("button",{className:"item-action",onClick:j.onClick,children:[j.icon,n.jsx("span",{children:j.text})]},M))}),n.jsxs("div",{children:[E.map((j,M)=>n.jsxs("div",{className:"toolbar-left-items",children:[n.jsx("button",{className:"item-action icon-only",title:j.title,onClick:j.onClick,children:j.icon}),M!==E.length-1&&n.jsx("div",{className:"item-separator"})]},M)),F&&n.jsx(qn,{activeLayout:H,setActiveLayout:T,setShowToggleViewMenu:z,onLayoutChange:V})]})]})})};var Qt={exports:{}};(function(e,y){(function(r,i){e.exports=i($)})(Ht,function(r){return function(i){var d={};function s(u){if(d[u])return d[u].exports;var p=d[u]={i:u,l:!1,exports:{}};return i[u].call(p.exports,p,p.exports,s),p.l=!0,p.exports}return s.m=i,s.c=d,s.d=function(u,p,h){s.o(u,p)||Object.defineProperty(u,p,{enumerable:!0,get:h})},s.r=function(u){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})},s.t=function(u,p){if(1&p&&(u=s(u)),8&p||4&p&&typeof u=="object"&&u&&u.__esModule)return u;var h=Object.create(null);if(s.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:u}),2&p&&typeof u!="string")for(var c in u)s.d(h,c,(function(m){return u[m]}).bind(null,c));return h},s.n=function(u){var p=u&&u.__esModule?function(){return u.default}:function(){return u};return s.d(p,"a",p),p},s.o=function(u,p){return Object.prototype.hasOwnProperty.call(u,p)},s.p="",s(s.s=4)}([function(i,d,s){i.exports=s(2)()},function(i,d){i.exports=r},function(i,d,s){var u=s(3);function p(){}function h(){}h.resetWarningCache=p,i.exports=function(){function c(x,V,H,T,F,z){if(z!==u){var q=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 q.name="Invariant Violation",q}}function m(){return c}c.isRequired=c;var O={array:c,bigint:c,bool:c,func:c,number:c,object:c,string:c,symbol:c,any:c,arrayOf:m,element:c,elementType:c,instanceOf:m,node:c,objectOf:m,oneOf:m,oneOfType:m,shape:m,exact:m,checkPropTypes:h,resetWarningCache:p};return O.PropTypes=O,O}},function(i,d,s){i.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(i,d,s){s.r(d);var u=s(1),p=s.n(u),h=s(0),c=s.n(h),m=function(f){return f!==0};function O(){return(O=Object.assign?Object.assign.bind():function(f){for(var C=1;C<arguments.length;C++){var j=arguments[C];for(var M in j)Object.prototype.hasOwnProperty.call(j,M)&&(f[M]=j[M])}return f}).apply(this,arguments)}function x(f){return(x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C})(f)}function V(f,C){for(var j=0;j<C.length;j++){var M=C[j];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(f,M.key,M)}}function H(f,C){return(H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(j,M){return j.__proto__=M,j})(f,C)}function T(f){var C=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var j,M=q(f);if(C){var G=q(this).constructor;j=Reflect.construct(M,arguments,G)}else j=M.apply(this,arguments);return F(this,j)}}function F(f,C){if(C&&(x(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return z(f)}function z(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function q(f){return(q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(C){return C.__proto__||Object.getPrototypeOf(C)})(f)}function X(f,C,j){return C in f?Object.defineProperty(f,C,{value:j,enumerable:!0,configurable:!0,writable:!0}):f[C]=j,f}var E=function(f){(function(U,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");U.prototype=Object.create(P&&P.prototype,{constructor:{value:U,writable:!0,configurable:!0}}),Object.defineProperty(U,"prototype",{writable:!1}),P&&H(U,P)})(G,f);var C,j,M=T(G);function G(U){var P;return function(J,Q){if(!(J instanceof Q))throw new TypeError("Cannot call a class as a function")}(this,G),X(z(P=M.call(this,U)),"continueOpenCollapsible",function(){var J=z(P).innerRef;P.setState({height:J.scrollHeight,transition:"height ".concat(P.props.transitionTime,"ms ").concat(P.props.easing),isClosed:!1,hasBeenOpened:!0,inTransition:m(J.scrollHeight),shouldOpenOnNextCycle:!1})}),X(z(P),"handleTriggerClick",function(J){P.props.triggerDisabled||P.state.inTransition||(J.preventDefault(),P.props.handleTriggerClick?P.props.handleTriggerClick(P.props.accordionPosition):P.state.isClosed===!0?(P.openCollapsible(),P.props.onOpening(),P.props.onTriggerOpening()):(P.closeCollapsible(),P.props.onClosing(),P.props.onTriggerClosing()))}),X(z(P),"handleTransitionEnd",function(J){J.target===P.innerRef&&(P.state.isClosed?(P.setState({inTransition:!1}),P.props.onClose()):(P.setState({height:"auto",overflow:P.props.overflowWhenOpen,inTransition:!1}),P.props.onOpen()))}),X(z(P),"setInnerRef",function(J){return P.innerRef=J}),P.timeout=void 0,P.contentId=U.contentElementId||"collapsible-content-".concat(Date.now()),P.triggerId=U.triggerElementProps.id||"collapsible-trigger-".concat(Date.now()),U.open?P.state={isClosed:!1,shouldSwitchAutoOnNextCycle:!1,height:"auto",transition:"none",hasBeenOpened:!0,overflow:U.overflowWhenOpen,inTransition:!1}:P.state={isClosed:!0,shouldSwitchAutoOnNextCycle:!1,height:0,transition:"height ".concat(U.transitionTime,"ms ").concat(U.easing),hasBeenOpened:!1,overflow:"hidden",inTransition:!1},P}return C=G,(j=[{key:"componentDidUpdate",value:function(U,P){var J=this;this.state.shouldOpenOnNextCycle&&this.continueOpenCollapsible(),P.height!=="auto"&&P.height!==0||this.state.shouldSwitchAutoOnNextCycle!==!0||(window.clearTimeout(this.timeout),this.timeout=window.setTimeout(function(){J.setState({height:0,overflow:"hidden",isClosed:!0,shouldSwitchAutoOnNextCycle:!1})},50)),U.open!==this.props.open&&(this.props.open===!0?(this.openCollapsible(),this.props.onOpening()):(this.closeCollapsible(),this.props.onClosing()))}},{key:"componentWillUnmount",value:function(){window.clearTimeout(this.timeout)}},{key:"closeCollapsible",value:function(){var U=this.innerRef;this.setState({shouldSwitchAutoOnNextCycle:!0,height:U.scrollHeight,transition:"height ".concat(this.props.transitionCloseTime?this.props.transitionCloseTime:this.props.transitionTime,"ms ").concat(this.props.easing),inTransition:m(U.scrollHeight)})}},{key:"openCollapsible",value:function(){this.setState({inTransition:m(this.innerRef.scrollHeight),shouldOpenOnNextCycle:!0})}},{key:"renderNonClickableTriggerElement",value:function(){var U=this.props,P=U.triggerSibling,J=U.classParentString;if(!P)return null;switch(x(P)){case"string":return p.a.createElement("span",{className:"".concat(J,"__trigger-sibling")},P);case"function":return P();case"object":return P;default:return null}}},{key:"render",value:function(){var U=this,P={height:this.state.height,WebkitTransition:this.state.transition,msTransition:this.state.transition,transition:this.state.transition,overflow:this.state.overflow},J=this.state.isClosed?"is-closed":"is-open",Q=this.props.triggerDisabled?"is-disabled":"",te=this.state.isClosed===!1&&this.props.triggerWhenOpen!==void 0?this.props.triggerWhenOpen:this.props.trigger,ue=this.props.contentContainerTagName,re=this.props.triggerTagName,me=this.props.lazyRender&&!this.state.hasBeenOpened&&this.state.isClosed&&!this.state.inTransition?null:this.props.children,he=this.props,ce=he.classParentString,k=he.contentOuterClassName,B=he.contentInnerClassName,g="".concat(ce,"__trigger ").concat(J," ").concat(Q," ").concat(this.state.isClosed?this.props.triggerClassName:this.props.triggerOpenedClassName),_="".concat(ce," ").concat(this.state.isClosed?this.props.className:this.props.openedClassName),I="".concat(ce,"__contentOuter ").concat(k),Y="".concat(ce,"__contentInner ").concat(B);return p.a.createElement(ue,O({className:_.trim()},this.props.containerElementProps),p.a.createElement(re,O({id:this.triggerId,className:g.trim(),onClick:this.handleTriggerClick,style:this.props.triggerStyle&&this.props.triggerStyle,onKeyPress:function(D){var a=D.key;(a===" "&&U.props.triggerTagName.toLowerCase()!=="button"||a==="Enter")&&U.handleTriggerClick(D)},tabIndex:this.props.tabIndex&&this.props.tabIndex,"aria-expanded":!this.state.isClosed,"aria-disabled":this.props.triggerDisabled,"aria-controls":this.contentId,role:"button"},this.props.triggerElementProps),te),this.renderNonClickableTriggerElement(),p.a.createElement("div",{id:this.contentId,className:I.trim(),style:P,onTransitionEnd:this.handleTransitionEnd,ref:this.setInnerRef,hidden:this.props.contentHiddenWhenClosed&&this.state.isClosed&&!this.state.inTransition,role:"region","aria-labelledby":this.triggerId},p.a.createElement("div",{className:Y.trim()},me)))}}])&&V(C.prototype,j),Object.defineProperty(C,"prototype",{writable:!1}),G}(u.Component);E.propTypes={transitionTime:c.a.number,transitionCloseTime:c.a.number,triggerTagName:c.a.string,easing:c.a.string,open:c.a.bool,containerElementProps:c.a.object,triggerElementProps:c.a.object,contentElementId:c.a.string,classParentString:c.a.string,className:c.a.string,openedClassName:c.a.string,triggerStyle:c.a.object,triggerClassName:c.a.string,triggerOpenedClassName:c.a.string,contentOuterClassName:c.a.string,contentInnerClassName:c.a.string,accordionPosition:c.a.oneOfType([c.a.string,c.a.number]),handleTriggerClick:c.a.func,onOpen:c.a.func,onClose:c.a.func,onOpening:c.a.func,onClosing:c.a.func,onTriggerOpening:c.a.func,onTriggerClosing:c.a.func,trigger:c.a.oneOfType([c.a.string,c.a.element]),triggerWhenOpen:c.a.oneOfType([c.a.string,c.a.element]),triggerDisabled:c.a.bool,lazyRender:c.a.bool,overflowWhenOpen:c.a.oneOf(["hidden","visible","auto","scroll","inherit","initial","unset"]),contentHiddenWhenClosed:c.a.bool,triggerSibling:c.a.oneOfType([c.a.string,c.a.element,c.a.func]),tabIndex:c.a.number,contentContainerTagName:c.a.string,children:c.a.oneOfType([c.a.string,c.a.element])},E.defaultProps={transitionTime:400,transitionCloseTime:null,triggerTagName:"span",easing:"linear",open:!1,classParentString:"Collapsible",triggerDisabled:!1,lazyRender:!1,overflowWhenOpen:"hidden",contentHiddenWhenClosed:!1,openedClassName:"",triggerStyle:null,triggerClassName:"",triggerOpenedClassName:"",contentOuterClassName:"",contentInnerClassName:"",className:"",triggerSibling:null,onOpen:function(){},onClose:function(){},onOpening:function(){},onClosing:function(){},onTriggerOpening:function(){},onTriggerClosing:function(){},tabIndex:null,contentContainerTagName:"div",triggerElementProps:{}},d.default=E}])})})(Qt);var Xn=Qt.exports;const Gn=ut(Xn);function Jn(e){return se({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z"},child:[]}]})(e)}function Zn(e){return se({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M128.3 160v32h32v-32zm64-96h-32v32h32zm-64 32v32h32V96zm64 32h-32v32h32zm177.6-30.1L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM256 51.9l76.1 76.1H256zM336 464H48V48h79.7v16h32V48H208v104c0 13.3 10.7 24 24 24h104zM194.2 265.7c-1.1-5.6-6-9.7-11.8-9.7h-22.1v-32h-32v32l-19.7 97.1C102 385.6 126.8 416 160 416c33.1 0 57.9-30.2 51.5-62.6zm-33.9 124.4c-17.9 0-32.4-12.1-32.4-27s14.5-27 32.4-27 32.4 12.1 32.4 27-14.5 27-32.4 27zm32-198.1h-32v32h32z"},child:[]}]})(e)}function en(e){return se({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M527.9 224H480v-48c0-26.5-21.5-48-48-48H272l-64-64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h400c16.5 0 31.9-8.5 40.7-22.6l79.9-128c20-31.9-3-73.4-40.7-73.4zM48 118c0-3.3 2.7-6 6-6h134.1l64 64H426c3.3 0 6 2.7 6 6v42H152c-16.8 0-32.4 8.8-41.1 23.2L48 351.4zm400 282H72l77.2-128H528z"},child:[]}]})(e)}function tn(e){return se({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 128H272l-54.63-54.63c-6-6-14.14-9.37-22.63-9.37H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48zm0 272H48V112h140.12l54.63 54.63c6 6 14.14 9.37 22.63 9.37H464v224z"},child:[]}]})(e)}const nn=({folder:e,setCurrentPath:y,currentPath:r})=>{const[i,d]=$.useState(!1),[s,u]=$.useState(!1),p=()=>{u(!0),y(e.path)},h=c=>{c.stopPropagation(),d(m=>!m)};return $.useEffect(()=>{u(r===e.path);const c=r.split("/");c.pop(),c.join("/")===e.path&&d(!0)},[r]),e.subDirectories.length>0?n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:`sb-folders-list-item ${s?"active-list-item":""}`,onClick:p,children:[n.jsx("span",{onClick:h,children:n.jsx(Fn,{size:20,className:`${i?"folder-rotate-down":"folder-rotate-right"}`})}),n.jsxs("div",{className:"sb-folder-details",children:[i||s?n.jsx(en,{size:20,className:"folder-open-icon"}):n.jsx(tn,{size:17,className:"folder-close-icon"}),n.jsx("span",{className:"sb-folder-name",title:e.name,children:e.name})]})]}),n.jsx(Gn,{open:i,children:n.jsx("div",{className:"folder-collapsible",children:e.subDirectories.map((c,m)=>n.jsx(nn,{folder:c,setCurrentPath:y,currentPath:r},m))})})]}):n.jsxs("div",{className:`sb-folders-list-item ${s?"active-list-item":""}`,onClick:p,children:[n.jsx("span",{className:"non-expanable"}),n.jsxs("div",{className:"sb-folder-details",children:[s?n.jsx(en,{size:20,className:"folder-open-icon"}):n.jsx(tn,{size:17,className:"folder-close-icon"}),n.jsx("span",{className:"sb-folder-name",title:e.name,children:e.name})]})]})},Qn=e=>e==null?void 0:e.split("/").slice(0,-1).join("/"),er=({files:e,currentPath:y,setCurrentPath:r})=>{const[i,d]=$.useState([]),s=(u,p)=>{var h;return p[u]?(h=p[u])==null?void 0:h.map(c=>({...c,subDirectories:s(c.path,p)})):[]};return $.useEffect(()=>{if(Array.isArray(e)){const u=e.filter(h=>h.isDirectory),p=Object.groupBy(u,({path:h})=>Qn(h));d(()=>s("",p))}},[e]),n.jsx("div",{className:"sb-folders-list",children:(i==null?void 0:i.length)>0?n.jsx(n.Fragment,{children:i==null?void 0:i.map((u,p)=>n.jsx(nn,{folder:u,setCurrentPath:r,currentPath:y},p))}):n.jsx("div",{className:"empty-nav-pane",children:"Nothing here yet"})})},tr=({currentPath:e,setCurrentPath:y})=>{const[r,i]=$.useState([]);$.useEffect(()=>{i(e==null?void 0:e.split("/"))},[e]);const d=s=>{s<r.length-1&&y(()=>{const u=r.length-(s+1);return r.slice(0,-u).join("/")})};return n.jsx("div",{className:"breadcrumb",children:r.map((s,u)=>n.jsx("span",{className:"folder-name",onClick:()=>d(u),children:u===0?n.jsxs(n.Fragment,{children:[n.jsx(Vn,{})," Home"]}):n.jsxs(n.Fragment,{children:[n.jsx($n,{})," ",s]})},u))})};function nr(e){return se({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z"},child:[]}]})(e)}const rr=({children:e,filesViewRef:y,contextMenuRef:r,content:i,visible:d,setVisible:s})=>{const[u,p]=$.useState({clickX:0,clickY:0}),[h,c]=$.useState(0),[m,O]=$.useState(0),x=H=>{H.preventDefault(),p({clickX:H.clientX,clickY:H.clientY}),s(!0)},V=()=>{const{clickX:H,clickY:T}=u,F=y.current,z=F.getBoundingClientRect(),q=F.offsetWidth-F.clientWidth,X=r.current.getBoundingClientRect(),E=X.width,f=X.height,C=H-z.left,j=z.width-(C+q)>E,M=!j,G=T-z.top,U=z.height-G>f,P=!U;j?c(`${C}px`):M&&c(`${C-E}px`),U?O(`${G+F.scrollTop}px`):P&&O(`${G+F.scrollTop-f}px`)};return $.useEffect(()=>{d&&r.current?V():(O(0),c(0))},[d]),n.jsxs("div",{onContextMenu:x,onClick:H=>s(!1),children:[e,d&&n.jsx("div",{ref:r,className:`fm-context-menu ${m?"visible":"hidden"}`,style:{top:m,left:h},children:i})]})},rn=e=>({pdf:n.jsx(Yn,{size:e}),jpg:n.jsx(dt,{size:e}),jpeg:n.jsx(dt,{size:e}),png:n.jsx(dt,{size:e}),txt:n.jsx(Bn,{size:e}),doc:n.jsx(Zt,{size:e}),docx:n.jsx(Zt,{size:e}),mp4:n.jsx(Jt,{size:e}),webm:n.jsx(Jt,{size:e}),mp3:n.jsx(Kt,{size:e}),m4a:n.jsx(Kt,{size:e}),zip:n.jsx(Zn,{size:e}),ppt:n.jsx(Gt,{size:e}),pptx:n.jsx(Gt,{size:e}),xls:n.jsx(Xt,{size:e}),xlsx:n.jsx(Xt,{size:e}),exe:n.jsx(Wn,{size:e}),html:n.jsx(ge,{size:e}),css:n.jsx(ge,{size:e}),js:n.jsx(ge,{size:e}),php:n.jsx(ge,{size:e}),py:n.jsx(ge,{size:e}),java:n.jsx(ge,{size:e}),cpp:n.jsx(ge,{size:e}),c:n.jsx(ge,{size:e}),ts:n.jsx(ge,{size:e}),jsx:n.jsx(ge,{size:e}),tsx:n.jsx(ge,{size:e}),json:n.jsx(ge,{size:e}),xml:n.jsx(ge,{size:e}),sql:n.jsx(ge,{size:e}),csv:n.jsx(ge,{size:e}),md:n.jsx(ge,{size:e}),svg:n.jsx(ge,{size:e})}),an=(e,y,r)=>{if(r.find(i=>i.name===e)){const i="",d=e;let s=0;const u=new RegExp(`${d} \\(\\d+\\)`);r.forEach(c=>{const m=c.isDirectory?c.name:c.name.split(".").slice(0,-1).join(".");if(u.test(m)){const O=m.split(`${d} (`).pop().slice(0,-1),x=parseInt(O);!isNaN(x)&&x>s&&(s=x)}});const p=` (${++s})`;return d+p+i}else return e},ar=220,or=({activeLayout:e,filesViewRef:y,file:r,currentPathFiles:i,setCurrentPathFiles:d,handleCreateFolder:s,currentFolder:u,triggerAction:p})=>{const[h,c]=$.useState(r.name),[m,O]=$.useState(!1),[x,V]=$.useState(""),[H,T]=$.useState("right"),[F,z]=$.useState("bottom"),q=Je(C=>{C.preventDefault(),C.stopPropagation()}),X=C=>{c(C.target.value),O(!1)},E=C=>{if(C.key==="Enter"){C.preventDefault(),C.stopPropagation(),f();return}/[\\/:*?"<>|]/.test(C.key)?(C.preventDefault(),V(`A file name can't contain any of the following characters: \\ / : * ? " < > |`),O(!0)):(O(!1),V(""))};$.useEffect(()=>{if(m){const C=setTimeout(()=>{O(!1),V("")},7e3);return()=>clearTimeout(C)}},[m]);function f(){var G,U;let C=h.trim();const j=i.filter(P=>!(P.key&&P.key===r.key));if(j.find(P=>P.name.toLowerCase()===C.toLowerCase())){V(`This destination already contains a folder named '${C}'.`),O(!0),(G=q.ref.current)==null||G.focus(),(U=q.ref.current)==null||U.select(),q.setIsClicked(!1);return}C===""&&(C=an("New Folder",!0,j)),s(C,u),d(P=>P.filter(J=>J.key!==r.key)),p.close()}return $.useEffect(()=>{var C,j,M;if((C=q.ref.current)==null||C.focus(),(j=q.ref.current)==null||j.select(),(M=q.ref)!=null&&M.current){const J=y.current.getBoundingClientRect(),Q=q.ref.current,te=Q.getBoundingClientRect();J.right-te.left>313?T("right"):T("left"),J.bottom-(te.top+Q.clientHeight)>88?z("bottom"):z("top")}},[]),$.useEffect(()=>{q.isClicked&&f()},[q.isClicked]),n.jsxs("div",{className:`rename-file-container ${e}`,children:[n.jsx("textarea",{ref:q.ref,className:"rename-file",maxLength:ar,value:h,onChange:X,onKeyDown:E,onClick:C=>C.stopPropagation(),...e==="list"&&{rows:1}}),m&&n.jsx("p",{className:`folder-name-error ${H} ${F}`,children:x})]})},Le=({onClick:e,type:y="primary",padding:r="0.4rem 0.8rem",children:i})=>n.jsx("button",{onClick:e,className:`fm-button fm-button-${y}`,style:{padding:r},children:i});function ir(e){return se({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M85.57 446.25h340.86a32 32 0 0 0 28.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0 0 28.17 47.17z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m250.26 195.39 5.74 122 5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 5.95z"},child:[]},{tag:"path",attr:{d:"M256 397.25a20 20 0 1 1 20-20 20 20 0 0 1-20 20z"},child:[]}]})(e)}const on=({children:e,show:y,setShow:r,heading:i,dialogWidth:d="25%",contentClassName:s=""})=>{const u=$.useRef(null);return $.useEffect(()=>{y?u.current.showModal():u.current.close()},[y]),n.jsxs("dialog",{ref:u,className:"fm-modal dialog",style:{width:d},children:[n.jsxs("div",{className:"fm-modal-header",children:[n.jsx("span",{className:"fm-modal-heading",children:i}),n.jsx(Dn,{size:18,onClick:()=>r(!1),className:"close-icon",title:"Close"})]}),e]})},Ze=e=>e.split(".").pop(),sr=220,cr=({activeLayout:e,filesViewRef:y,file:r,currentPathFiles:i,setCurrentPathFiles:d,handleRename:s,triggerAction:u})=>{const[p,h]=$.useState(r==null?void 0:r.name),[c,m]=$.useState(!1),[O,x]=$.useState(!1),[V,H]=$.useState(""),[T,F]=$.useState("right"),[z,q]=$.useState("bottom"),X=$.useRef(null),E=Je(M=>{var G;(G=X.current)!=null&&G.contains(M.target)||(M.preventDefault(),M.stopPropagation())}),f=M=>{if(M.key==="Enter"){M.preventDefault(),M.stopPropagation(),E.setIsClicked(!0);return}/[\\/:*?"<>|]/.test(M.key)?(M.preventDefault(),H(`A file name can't contain any of the following characters: \\ / : * ? " < > |`),x(!0)):x(!1)};$.useEffect(()=>{if(O){const M=setTimeout(()=>{x(!1),H("")},7e3);return()=>clearTimeout(M)}},[O]);function C(M){if(p===""||p===r.name){d(G=>G.map(U=>(U.key===r.key&&(U.isEditing=!1),U))),u.close();return}else if(i.some(G=>G.name===p)){x(!0),H(`This destination already contains a folder named '${p}'.`),E.setIsClicked(!1);return}else if(!r.isDirectory&&!M){const G=Ze(r.name),U=Ze(p);if(G!==U){m(!0);return}}x(!1),s(r,p),d(G=>G.filter(U=>U.key!==r.key)),u.close()}const j=()=>{var M,G,U,P,J,Q;if((G=(M=E.ref)==null?void 0:M.current)==null||G.focus(),r.isDirectory)(P=(U=E.ref)==null?void 0:U.current)==null||P.select();else{const te=Ze(r.name),ue=r.name.length-te.length-1;(Q=(J=E.ref)==null?void 0:J.current)==null||Q.setSelectionRange(0,ue)}};return $.useEffect(()=>{var M;if(j(),(M=E.ref)!=null&&M.current){const J=y.current.getBoundingClientRect(),Q=E.ref.current,te=Q.getBoundingClientRect();J.right-te.left>313?F("right"):F("left"),J.bottom-(te.top+Q.clientHeight)>88?q("bottom"):q("top")}},[]),$.useEffect(()=>{E.isClicked&&C(!1),j()},[E.isClicked]),n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:`rename-file-container ${e}`,children:[n.jsx("textarea",{ref:E.ref,className:"rename-file",maxLength:sr,value:p,onChange:M=>{h(M.target.value),x(!1)},onKeyDown:f,onClick:M=>M.stopPropagation(),...e==="list"&&{rows:1}}),O&&n.jsx("p",{className:`folder-name-error ${T} ${z}`,children:V})]}),n.jsx(on,{heading:"Rename",show:c,setShow:m,dialogWidth:"25vw",children:n.jsxs("div",{className:"fm-rename-folder-container",ref:X,children:[n.jsx("div",{className:"fm-rename-folder-input",children:n.jsxs("div",{className:"fm-rename-warning",children:[n.jsx(ir,{size:70,color:"orange"}),n.jsx("div",{children:"If you change a file name extension, the file might become unusable. Are you sure you want to change it?"})]})}),n.jsxs("div",{className:"fm-rename-folder-action",children:[n.jsx(Le,{type:"secondary",onClick:()=>{m(!1),E.setIsClicked(!1)},children:"No"}),n.jsx(Le,{type:"danger",onClick:()=>{m(!1),C(!0)},children:"Yes"})]})]})})]})},sn=e=>{const y=e/1024,r=y/1024,i=r/1024;if(y<1024)return`${y.toFixed(2)} KB`;if(r<1024)return`${r.toFixed(2)} MB`;if(r>=1024)return`${i.toFixed(2)} GB`},lr=e=>{if(!e)return"";e=new Date(e);let y=e.getHours();const r=e.getMinutes(),i=y>=12?"PM":"AM";y=y%12,y=y||12;const d=e.getMonth()+1,s=e.getDate(),u=e.getFullYear();return`${d}/${s}/${u} ${y}:${r<10?"0"+r:r} ${i}`},ur=({activeLayout:e,filesViewRef:y,file:r,index:i,selectedFileIndex:d,setSelectedFileIndex:s,setCurrentPath:u,isItemSelection:p,setIsItemSelection:h,setSelectedFile:c,currentPath:m,clipBoard:O,setClipBoard:x,handlePaste:V,files:H,triggerAction:T,currentFolder:F,handleCreateFolder:z,currentPathFiles:q,setCurrentPathFiles:X,handleRename:E})=>{var Y,D;const f=e==="grid"?48:20,C=rn(f),[j,M]=$.useState(!1),[G,U]=$.useState(!1),[P,J]=$.useState(0),[Q,te]=$.useState(!1),ue=(O==null?void 0:O.isMoving)&&O.files.find(a=>a.name===r.name&&a.path===r.path),re=Je(()=>{M(!1)}),me=(a,v)=>{a.stopPropagation(),x({files:[{...vt(r,H)}],isMoving:v}),M(!1)},he=a=>{if(a.stopPropagation(),O){const v=r.path,S=O.files[0];H.filter(b=>{const ae=b.path===S.path&&b.name===S.name,oe=b.path.startsWith(S.path+"/"+S.name);return ae||oe});const w=H.find(b=>b.path===v),L=O.isMoving?"move":"copy";V(S,w,L),O.isMoving&&x(null),h(!1),c(null),M(!1)}},ce=a=>{a.stopPropagation(),M(!1),T.show("rename")},k=a=>{a.stopPropagation(),M(!1),T.show("delete")},B=()=>{M(!1),r.isDirectory?(u(a=>a+"/"+r.name),s(null)):te(!0)},g=a=>{if(a.stopPropagation(),r.isEditing)return;h(!0),c(r),s(i);const v=new Date().getTime();v-P<300&&(h(!1),B()),J(v)},_=a=>{a.stopPropagation(),a.key==="Enter"&&B()};$.useEffect(()=>{U(d===i)},[d]),$.useEffect(()=>{d===i&&U(p)},[p]);const I=n.jsx("div",{className:"file-context-menu-list",children:n.jsxs("ul",{children:[n.jsxs("li",{onClick:B,children:[r.isDirectory?n.jsx(nr,{size:20}):n.jsx(pt,{size:16}),n.jsx("span",{children:"Open"})]}),n.jsxs("li",{onClick:a=>me(a,!0),children:[n.jsx(Bt,{size:19}),n.jsx("span",{children:"Cut"})]}),n.jsxs("li",{onClick:a=>me(a,!1),children:[n.jsx(Lt,{strokeWidth:.1,size:17}),n.jsx("span",{children:"Copy"})]}),r.isDirectory?n.jsxs("li",{onClick:he,className:`${O?"":"disable-paste"}`,children:[n.jsx(ht,{size:18}),n.jsx("span",{children:"Paste"})]}):n.jsx(n.Fragment,{}),n.jsxs("li",{onClick:ce,children:[n.jsx(Ut,{size:19}),n.jsx("span",{children:"Rename"})]}),n.jsxs("li",{onClick:k,children:[n.jsx(Yt,{size:19}),n.jsx("span",{children:"Delete"})]})]})});return n.jsx(n.Fragment,{children:n.jsx(rr,{filesViewRef:y,contextMenuRef:re.ref,visible:j,setVisible:M,content:I,children:n.jsxs("div",{className:`file-item-container ${G||r.isEditing?"file-selected":""} ${ue?"file-moving":""}`,title:r.name,onClick:g,onKeyDown:_,onContextMenu:a=>{if(q.some(v=>v.isEditing)){a.preventDefault(),a.stopPropagation();return}h(!0),c(r),s(i)},tabIndex:0,children:[n.jsxs("div",{className:"file-item",children:[r.isDirectory?n.jsx(Un,{size:f}):n.jsx(n.Fragment,{children:C[(D=(Y=r.name)==null?void 0:Y.split(".").pop())==null?void 0:D.toLowerCase()]??n.jsx(pt,{size:f})}),r.isEditing?n.jsx(n.Fragment,{children:T.actionType==="createFolder"?n.jsx(or,{activeLayout:e,filesViewRef:y,file:r,currentFolder:F,currentPathFiles:q,setCurrentPathFiles:X,handleCreateFolder:z,triggerAction:T}):n.jsx(cr,{activeLayout:e,filesViewRef:y,file:r,currentPathFiles:q,setCurrentPathFiles:X,handleRename:E,triggerAction:T})}):n.jsx("span",{className:"text-truncate file-name",children:r.name})]}),e==="list"&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"modified-date",children:lr(r.updatedAt)}),n.jsx("div",{className:"size",children:(r==null?void 0:r.size)>0?sn(r==null?void 0:r.size):""})]})]})})})},fr=({activeLayout:e,currentPathFiles:y,setCurrentPathFiles:r,setCurrentPath:i,isItemSelection:d,setIsItemSelection:s,setSelectedFile:u,currentPath:p,clipBoard:h,setClipBoard:c,handlePaste:m,files:O,triggerAction:x,currentFolder:V,handleCreateFolder:H,handleRename:T})=>{const[F,z]=$.useState(null),q=$.useRef(null);$.useEffect(()=>{z(null),s(!1),u(null)},[p]);const X=()=>{r(f=>[...f,{name:an("New Folder",!0,f),isDirectory:!0,path:p,isEditing:!0,key:new Date().valueOf()}])},E=()=>{r(f=>(f[F]&&(f[F].isEditing=!0),f)),s(!1),z(null),u(null)};return $.useEffect(()=>{if(x.isActive)switch(x.actionType){case"createFolder":X();break;case"rename":E();break}},[x.isActive]),n.jsxs("div",{ref:q,className:`files ${e}`,onClick:f=>{z(null),s(!1),u(null)},children:[e==="list"&&n.jsxs("div",{className:"files-header",children:[n.jsx("div",{className:"file-name",children:"Name"}),n.jsx("div",{className:"file-date",children:"Modified"}),n.jsx("div",{className:"file-size",children:"Size"})]}),(y==null?void 0:y.length)>0?n.jsx(n.Fragment,{children:y.map((f,C)=>n.jsx(ur,{activeLayout:e,filesViewRef:q,file:f,index:C,selectedFileIndex:F,setSelectedFileIndex:z,setCurrentPath:i,isItemSelection:d,setIsItemSelection:s,setSelectedFile:u,currentPath:p,clipBoard:h,setClipBoard:c,handlePaste:m,files:O,triggerAction:x,currentPathFiles:y,setCurrentPathFiles:r,currentFolder:V,handleCreateFolder:H,handleRename:T},C))}):n.jsx("div",{className:"empty-folder",children:"This folder is empty."})]})},dr=()=>{const[e,y]=$.useState(!1),[r,i]=$.useState(null);return{isActive:e,actionType:r,show:u=>{y(!0),i(u)},close:()=>{y(!1),i(null)}}},pr=({files:e,selectedFile:y,triggerAction:r,handleDelete:i,setIsItemSelection:d,setSelectedFile:s})=>{const u=p=>{i(p),d(!1),s(null),r.close()};return n.jsxs("div",{className:"file-delete-confirm",children:[n.jsxs("p",{className:"file-delete-confirm-text",children:['Are you sure you want to delete "',y==null?void 0:y.name,'"?']}),n.jsxs("div",{className:"file-delete-confirm-actions",children:[n.jsx(Le,{type:"secondary",onClick:()=>r.close(),children:"Cancel"}),n.jsx(Le,{type:"danger",onClick:()=>u(y),children:"Delete"})]})]})};function hr(e){return se({tag:"svg",attr:{viewBox:"0 0 1024 1024",fill:"currentColor",fillRule:"evenodd"},child:[{tag:"path",attr:{d:"M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926 224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512 166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z"},child:[]}]})(e)}function vr(e){return se({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M518.3 459a8 8 0 0 0-12.6 0l-112 141.7a7.98 7.98 0 0 0 6.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"},child:[]},{tag:"path",attr:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"},child:[]}]})(e)}const mr=({percent:e=0,isCanceled:y=!1,isCompleted:r=!1})=>n.jsxs("div",{role:"progressbar",className:"fm-progress",children:[n.jsx("div",{className:"fm-progress-bar",children:n.jsx("div",{className:"fm-progress-bar-fill",style:{width:`${e}%`}})}),y?n.jsx("span",{className:"fm-upload-canceled",children:"Canceled"}):n.jsx("div",{className:"fm-progress-status",children:n.jsx("span",{children:r?"Completed":e+"% done"})})]});function yr(e){return se({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 388c-72.597 0-132-59.405-132-132 0-72.601 59.403-132 132-132 36.3 0 69.299 15.4 92.406 39.601L278 234h154V80l-51.698 51.702C348.406 99.798 304.406 80 256 80c-96.797 0-176 79.203-176 176s78.094 176 176 176c81.045 0 148.287-54.134 169.401-128H378.85c-18.745 49.561-67.138 84-122.85 84z"},child:[]}]})(e)}const gr=({index:e,fileData:y,setIsUploading:r,fileUploadConfig:i,handleFileUploaded:d})=>{var F,z,q,X;const[s,u]=$.useState(0),[p,h]=$.useState(!1),[c,m]=$.useState(!1),O=rn(33),x=$.useRef(),V=E=>new Promise((f,C)=>{const j=new XMLHttpRequest;x.current=j,r(P=>({...P,[e]:!0})),j.upload.onprogress=P=>{if(P.lengthComputable){const J=Math.round(P.loaded/P.total*100);u(J)}},j.onload=()=>{r(P=>({...P,[e]:!1})),j.status===200||j.status===201?(h(!0),d(j.response),f(j.response)):C(j.statusText)},j.onerror=()=>C(j.statusText),j.open("POST",i==null?void 0:i.url,!0);const M=i==null?void 0:i.headers;for(let P in M)j.setRequestHeader(P,M[P]);const G=new FormData,U=E==null?void 0:E.appendData;for(let P in U)U[P]&&G.append(P,U[P]);G.append("file",E.file),j.send(G)});$.useEffect(()=>{x.current||V(y)},[]);const H=()=>{x.current&&(x.current.abort(),r(E=>({...E,[e]:!1})),m(!0),u(0))},T=()=>{y!=null&&y.file&&(V(y),m(!1))};return n.jsxs("li",{children:[n.jsx("div",{className:"file-icon",children:O[Ze((F=y.file)==null?void 0:F.name)]??n.jsx(pt,{size:33})}),n.jsxs("div",{className:"file",children:[n.jsxs("div",{className:"file-details",children:[n.jsxs("div",{className:"file-info",children:[n.jsx("span",{className:"file-name text-truncate",title:(z=y.file)==null?void 0:z.name,children:(q=y.file)==null?void 0:q.name}),n.jsx("span",{className:"file-size",children:sn((X=y.file)==null?void 0:X.size)})]}),p?n.jsx(Jn,{color:"#5c5bb1",title:"Uploaded"}):c?n.jsx(yr,{className:"retry-upload",title:"Retry",onClick:T}):n.jsx("div",{className:"rm-file",title:"Abort",onClick:H,children:n.jsx(hr,{})})]}),n.jsx(mr,{percent:s,isCanceled:c,isCompleted:p})]})]})};var cn={exports:{}};(function(e,y){(function(i,d){e.exports=d()})(typeof self<"u"?self:Ht,function(){return function(r){var i={};function d(s){if(i[s])return i[s].exports;var u=i[s]={i:s,l:!1,exports:{}};return r[s].call(u.exports,u,u.exports,d),u.l=!0,u.exports}return d.m=r,d.c=i,d.d=function(s,u,p){d.o(s,u)||Object.defineProperty(s,u,{configurable:!1,enumerable:!0,get:p})},d.n=function(s){var u=s&&s.__esModule?function(){return s.default}:function(){return s};return d.d(u,"a",u),u},d.o=function(s,u){return Object.prototype.hasOwnProperty.call(s,u)},d.p="/",d(d.s=7)}([function(r,i,d){var s=function(h){};process.env.NODE_ENV!=="production"&&(s=function(h){if(h===void 0)throw new Error("invariant requires an error message argument")});function u(p,h,c,m,O,x,V,H){if(s(h),!p){var T;if(h===void 0)T=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var F=[c,m,O,x,V,H],z=0;T=new Error(h.replace(/%s/g,function(){return F[z++]})),T.name="Invariant Violation"}throw T.framesToPop=1,T}}r.exports=u},function(r,i,d){function s(p){return function(){return p}}var u=function(){};u.thatReturns=s,u.thatReturnsFalse=s(!1),u.thatReturnsTrue=s(!0),u.thatReturnsNull=s(null),u.thatReturnsThis=function(){return this},u.thatReturnsArgument=function(p){return p},r.exports=u},function(r,i,d){/*
|
|
31
|
-
object-assign
|
|
32
|
-
(c) Sindre Sorhus
|
|
33
|
-
@license MIT
|
|
34
|
-
*/var s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;function h(m){if(m==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(m)}function c(){try{if(!Object.assign)return!1;var m=new String("abc");if(m[5]="de",Object.getOwnPropertyNames(m)[0]==="5")return!1;for(var O={},x=0;x<10;x++)O["_"+String.fromCharCode(x)]=x;var V=Object.getOwnPropertyNames(O).map(function(T){return O[T]});if(V.join("")!=="0123456789")return!1;var H={};return"abcdefghijklmnopqrst".split("").forEach(function(T){H[T]=T}),Object.keys(Object.assign({},H)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}r.exports=c()?Object.assign:function(m,O){for(var x,V=h(m),H,T=1;T<arguments.length;T++){x=Object(arguments[T]);for(var F in x)u.call(x,F)&&(V[F]=x[F]);if(s){H=s(x);for(var z=0;z<H.length;z++)p.call(x,H[z])&&(V[H[z]]=x[H[z]])}}return V}},function(r,i,d){var s=d(1),u=s;if(process.env.NODE_ENV!=="production"){var p=function(c){for(var m=arguments.length,O=Array(m>1?m-1:0),x=1;x<m;x++)O[x-1]=arguments[x];var V=0,H="Warning: "+c.replace(/%s/g,function(){return O[V++]});typeof console<"u"&&console.error(H);try{throw new Error(H)}catch{}};u=function(c,m){if(m===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(m.indexOf("Failed Composite propType: ")!==0&&!c){for(var O=arguments.length,x=Array(O>2?O-2:0),V=2;V<O;V++)x[V-2]=arguments[V];p.apply(void 0,[m].concat(x))}}}r.exports=u},function(r,i,d){var s="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";r.exports=s},function(r,i,d){var s={};process.env.NODE_ENV!=="production"&&Object.freeze(s),r.exports=s},function(r,i,d){if(process.env.NODE_ENV!=="production")var s=d(0),u=d(3),p=d(4),h={};function c(m,O,x,V,H){if(process.env.NODE_ENV!=="production"){for(var T in m)if(m.hasOwnProperty(T)){var F;try{s(typeof m[T]=="function","%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",V||"React class",x,T,typeof m[T]),F=m[T](O,T,V,x,null,p)}catch(q){F=q}if(u(!F||F instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",V||"React class",x,T,typeof F),F instanceof Error&&!(F.message in h)){h[F.message]=!0;var z=H?H():"";u(!1,"Failed %s type: %s%s",x,F.message,z??"")}}}}r.exports=c},function(r,i,d){Object.defineProperty(i,"__esModule",{value:!0});var s=Object.assign||function(E){for(var f=1;f<arguments.length;f++){var C=arguments[f];for(var j in C)Object.prototype.hasOwnProperty.call(C,j)&&(E[j]=C[j])}return E},u=function(){function E(f,C){for(var j=0;j<C.length;j++){var M=C[j];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(f,M.key,M)}}return function(f,C,j){return C&&E(f.prototype,C),j&&E(f,j),f}}(),p=d(8),h=H(p),c=d(11),m=H(c),O=d(14),x=V(O);function V(E){if(E&&E.__esModule)return E;var f={};if(E!=null)for(var C in E)Object.prototype.hasOwnProperty.call(E,C)&&(f[C]=E[C]);return f.default=E,f}function H(E){return E&&E.__esModule?E:{default:E}}function T(E,f){var C={};for(var j in E)f.indexOf(j)>=0||Object.prototype.hasOwnProperty.call(E,j)&&(C[j]=E[j]);return C}function F(E,f){if(!(E instanceof f))throw new TypeError("Cannot call a class as a function")}function z(E,f){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:E}function q(E,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);E.prototype=Object.create(f&&f.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(E,f):E.__proto__=f)}var X=function(E){q(f,E);function f(){var C,j,M,G;F(this,f);for(var U=arguments.length,P=Array(U),J=0;J<U;J++)P[J]=arguments[J];return G=(j=(M=z(this,(C=f.__proto__||Object.getPrototypeOf(f)).call.apply(C,[this].concat(P))),M),M.state={delayed:M.props.delay>0},j),z(M,G)}return u(f,[{key:"componentDidMount",value:function(){var j=this,M=this.props.delay,G=this.state.delayed;G&&(this.timeout=setTimeout(function(){j.setState({delayed:!1})},M))}},{key:"componentWillUnmount",value:function(){var j=this.timeout;j&&clearTimeout(j)}},{key:"render",value:function(){var j=this.props,M=j.color;j.delay;var G=j.type,U=j.height,P=j.width,J=T(j,["color","delay","type","height","width"]),Q=this.state.delayed?"blank":G,te=x[Q],ue={fill:M,height:U,width:P};return h.default.createElement("div",s({style:ue,dangerouslySetInnerHTML:{__html:te}},J))}}]),f}(p.Component);X.propTypes={color:m.default.string,delay:m.default.number,type:m.default.string,height:m.default.oneOfType([m.default.string,m.default.number]),width:m.default.oneOfType([m.default.string,m.default.number])},X.defaultProps={color:"#fff",delay:0,type:"balls",height:64,width:64},i.default=X},function(r,i,d){process.env.NODE_ENV==="production"?r.exports=d(9):r.exports=d(10)},function(r,i,d){/** @license React v16.3.2
|
|
35
|
-
* react.production.min.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var s=d(2),u=d(0),p=d(5),h=d(1),c=typeof Symbol=="function"&&Symbol.for,m=c?Symbol.for("react.element"):60103,O=c?Symbol.for("react.portal"):60106,x=c?Symbol.for("react.fragment"):60107,V=c?Symbol.for("react.strict_mode"):60108,H=c?Symbol.for("react.provider"):60109,T=c?Symbol.for("react.context"):60110,F=c?Symbol.for("react.async_mode"):60111,z=c?Symbol.for("react.forward_ref"):60112,q=typeof Symbol=="function"&&Symbol.iterator;function X(a){for(var v=arguments.length-1,S="http://reactjs.org/docs/error-decoder.html?invariant="+a,w=0;w<v;w++)S+="&args[]="+encodeURIComponent(arguments[w+1]);u(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",S)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function f(a,v,S){this.props=a,this.context=v,this.refs=p,this.updater=S||E}f.prototype.isReactComponent={},f.prototype.setState=function(a,v){typeof a!="object"&&typeof a!="function"&&a!=null&&X("85"),this.updater.enqueueSetState(this,a,v,"setState")},f.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function C(){}C.prototype=f.prototype;function j(a,v,S){this.props=a,this.context=v,this.refs=p,this.updater=S||E}var M=j.prototype=new C;M.constructor=j,s(M,f.prototype),M.isPureReactComponent=!0;var G={current:null},U=Object.prototype.hasOwnProperty,P={key:!0,ref:!0,__self:!0,__source:!0};function J(a,v,S){var w=void 0,L={},b=null,ae=null;if(v!=null)for(w in v.ref!==void 0&&(ae=v.ref),v.key!==void 0&&(b=""+v.key),v)U.call(v,w)&&!P.hasOwnProperty(w)&&(L[w]=v[w]);var oe=arguments.length-2;if(oe===1)L.children=S;else if(1<oe){for(var ye=Array(oe),be=0;be<oe;be++)ye[be]=arguments[be+2];L.children=ye}if(a&&a.defaultProps)for(w in oe=a.defaultProps,oe)L[w]===void 0&&(L[w]=oe[w]);return{$$typeof:m,type:a,key:b,ref:ae,props:L,_owner:G.current}}function Q(a){return typeof a=="object"&&a!==null&&a.$$typeof===m}function te(a){var v={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(S){return v[S]})}var ue=/\/+/g,re=[];function me(a,v,S,w){if(re.length){var L=re.pop();return L.result=a,L.keyPrefix=v,L.func=S,L.context=w,L.count=0,L}return{result:a,keyPrefix:v,func:S,context:w,count:0}}function he(a){a.result=null,a.keyPrefix=null,a.func=null,a.context=null,a.count=0,10>re.length&&re.push(a)}function ce(a,v,S,w){var L=typeof a;(L==="undefined"||L==="boolean")&&(a=null);var b=!1;if(a===null)b=!0;else switch(L){case"string":case"number":b=!0;break;case"object":switch(a.$$typeof){case m:case O:b=!0}}if(b)return S(w,a,v===""?"."+k(a,0):v),1;if(b=0,v=v===""?".":v+":",Array.isArray(a))for(var ae=0;ae<a.length;ae++){L=a[ae];var oe=v+k(L,ae);b+=ce(L,oe,S,w)}else if(a===null||typeof a>"u"?oe=null:(oe=q&&a[q]||a["@@iterator"],oe=typeof oe=="function"?oe:null),typeof oe=="function")for(a=oe.call(a),ae=0;!(L=a.next()).done;)L=L.value,oe=v+k(L,ae++),b+=ce(L,oe,S,w);else L==="object"&&(S=""+a,X("31",S==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":S,""));return b}function k(a,v){return typeof a=="object"&&a!==null&&a.key!=null?te(a.key):v.toString(36)}function B(a,v){a.func.call(a.context,v,a.count++)}function g(a,v,S){var w=a.result,L=a.keyPrefix;a=a.func.call(a.context,v,a.count++),Array.isArray(a)?_(a,w,S,h.thatReturnsArgument):a!=null&&(Q(a)&&(v=L+(!a.key||v&&v.key===a.key?"":(""+a.key).replace(ue,"$&/")+"/")+S,a={$$typeof:m,type:a.type,key:v,ref:a.ref,props:a.props,_owner:a._owner}),w.push(a))}function _(a,v,S,w,L){var b="";S!=null&&(b=(""+S).replace(ue,"$&/")+"/"),v=me(v,b,w,L),a==null||ce(a,"",g,v),he(v)}var I={Children:{map:function(a,v,S){if(a==null)return a;var w=[];return _(a,w,null,v,S),w},forEach:function(a,v,S){if(a==null)return a;v=me(null,null,v,S),a==null||ce(a,"",B,v),he(v)},count:function(a){return a==null?0:ce(a,"",h.thatReturnsNull,null)},toArray:function(a){var v=[];return _(a,v,null,h.thatReturnsArgument),v},only:function(a){return Q(a)||X("143"),a}},createRef:function(){return{current:null}},Component:f,PureComponent:j,createContext:function(a,v){return v===void 0&&(v=null),a={$$typeof:T,_calculateChangedBits:v,_defaultValue:a,_currentValue:a,_changedBits:0,Provider:null,Consumer:null},a.Provider={$$typeof:H,_context:a},a.Consumer=a},forwardRef:function(a){return{$$typeof:z,render:a}},Fragment:x,StrictMode:V,unstable_AsyncMode:F,createElement:J,cloneElement:function(a,v,S){a==null&&X("267",a);var w=void 0,L=s({},a.props),b=a.key,ae=a.ref,oe=a._owner;if(v!=null){v.ref!==void 0&&(ae=v.ref,oe=G.current),v.key!==void 0&&(b=""+v.key);var ye=void 0;a.type&&a.type.defaultProps&&(ye=a.type.defaultProps);for(w in v)U.call(v,w)&&!P.hasOwnProperty(w)&&(L[w]=v[w]===void 0&&ye!==void 0?ye[w]:v[w])}if(w=arguments.length-2,w===1)L.children=S;else if(1<w){ye=Array(w);for(var be=0;be<w;be++)ye[be]=arguments[be+2];L.children=ye}return{$$typeof:m,type:a.type,key:b,ref:ae,props:L,_owner:oe}},createFactory:function(a){var v=J.bind(null,a);return v.type=a,v},isValidElement:Q,version:"16.3.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:G,assign:s}},Y=Object.freeze({default:I}),D=Y&&I||Y;r.exports=D.default?D.default:D},function(r,i,d){/** @license React v16.3.2
|
|
42
|
-
* react.development.js
|
|
43
|
-
*
|
|
44
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
45
|
-
*
|
|
46
|
-
* This source code is licensed under the MIT license found in the
|
|
47
|
-
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/process.env.NODE_ENV!=="production"&&function(){var s=d(2),u=d(0),p=d(5),h=d(3),c=d(1),m=d(6),O="16.3.2",x=typeof Symbol=="function"&&Symbol.for,V=x?Symbol.for("react.element"):60103,H=x?Symbol.for("react.call"):60104,T=x?Symbol.for("react.return"):60105,F=x?Symbol.for("react.portal"):60106,z=x?Symbol.for("react.fragment"):60107,q=x?Symbol.for("react.strict_mode"):60108,X=x?Symbol.for("react.provider"):60109,E=x?Symbol.for("react.context"):60110,f=x?Symbol.for("react.async_mode"):60111,C=x?Symbol.for("react.forward_ref"):60112,j=typeof Symbol=="function"&&Symbol.iterator,M="@@iterator";function G(t){if(t===null||typeof t>"u")return null;var l=j&&t[j]||t[M];return typeof l=="function"?l:null}var U=function(){};{var P=function(t){for(var l=arguments.length,R=Array(l>1?l-1:0),N=1;N<l;N++)R[N-1]=arguments[N];var W=0,ne="Warning: "+t.replace(/%s/g,function(){return R[W++]});typeof console<"u"&&console.warn(ne);try{throw new Error(ne)}catch{}};U=function(t,l){if(l===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!t){for(var R=arguments.length,N=Array(R>2?R-2:0),W=2;W<R;W++)N[W-2]=arguments[W];P.apply(void 0,[l].concat(N))}}}var J=U,Q={};function te(t,l){{var R=t.constructor,N=R&&(R.displayName||R.name)||"ReactClass",W=N+"."+l;if(Q[W])return;h(!1,"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",l,N),Q[W]=!0}}var ue={isMounted:function(t){return!1},enqueueForceUpdate:function(t,l,R){te(t,"forceUpdate")},enqueueReplaceState:function(t,l,R,N){te(t,"replaceState")},enqueueSetState:function(t,l,R,N){te(t,"setState")}};function re(t,l,R){this.props=t,this.context=l,this.refs=p,this.updater=R||ue}re.prototype.isReactComponent={},re.prototype.setState=function(t,l){typeof t=="object"||typeof t=="function"||t==null||u(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."),this.updater.enqueueSetState(this,t,l,"setState")},re.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};{var me={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},he=function(t,l){Object.defineProperty(re.prototype,t,{get:function(){J(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",l[0],l[1])}})};for(var ce in me)me.hasOwnProperty(ce)&&he(ce,me[ce])}function k(){}k.prototype=re.prototype;function B(t,l,R){this.props=t,this.context=l,this.refs=p,this.updater=R||ue}var g=B.prototype=new k;g.constructor=B,s(g,re.prototype),g.isPureReactComponent=!0;function _(){var t={current:null};return Object.seal(t),t}var I={current:null},Y=Object.prototype.hasOwnProperty,D={key:!0,ref:!0,__self:!0,__source:!0},a=void 0,v=void 0;function S(t){if(Y.call(t,"ref")){var l=Object.getOwnPropertyDescriptor(t,"ref").get;if(l&&l.isReactWarning)return!1}return t.ref!==void 0}function w(t){if(Y.call(t,"key")){var l=Object.getOwnPropertyDescriptor(t,"key").get;if(l&&l.isReactWarning)return!1}return t.key!==void 0}function L(t,l){var R=function(){a||(a=!0,h(!1,"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",l))};R.isReactWarning=!0,Object.defineProperty(t,"key",{get:R,configurable:!0})}function b(t,l){var R=function(){v||(v=!0,h(!1,"%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",l))};R.isReactWarning=!0,Object.defineProperty(t,"ref",{get:R,configurable:!0})}var ae=function(t,l,R,N,W,ne,ie){var ee={$$typeof:V,type:t,key:l,ref:R,props:ie,_owner:ne};return ee._store={},Object.defineProperty(ee._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ee,"_self",{configurable:!1,enumerable:!1,writable:!1,value:N}),Object.defineProperty(ee,"_source",{configurable:!1,enumerable:!1,writable:!1,value:W}),Object.freeze&&(Object.freeze(ee.props),Object.freeze(ee)),ee};function oe(t,l,R){var N=void 0,W={},ne=null,ie=null,ee=null,ve=null;if(l!=null){S(l)&&(ie=l.ref),w(l)&&(ne=""+l.key),ee=l.__self===void 0?null:l.__self,ve=l.__source===void 0?null:l.__source;for(N in l)Y.call(l,N)&&!D.hasOwnProperty(N)&&(W[N]=l[N])}var Ce=arguments.length-2;if(Ce===1)W.children=R;else if(Ce>1){for(var je=Array(Ce),xe=0;xe<Ce;xe++)je[xe]=arguments[xe+2];Object.freeze&&Object.freeze(je),W.children=je}if(t&&t.defaultProps){var Ae=t.defaultProps;for(N in Ae)W[N]===void 0&&(W[N]=Ae[N])}if((ne||ie)&&(typeof W.$$typeof>"u"||W.$$typeof!==V)){var Oe=typeof t=="function"?t.displayName||t.name||"Unknown":t;ne&&L(W,Oe),ie&&b(W,Oe)}return ae(t,ne,ie,ee,ve,I.current,W)}function ye(t,l){var R=ae(t.type,l,t.ref,t._self,t._source,t._owner,t.props);return R}function be(t,l,R){t==null&&u(!1,"React.cloneElement(...): The argument must be a React element, but you passed %s.",t);var N=void 0,W=s({},t.props),ne=t.key,ie=t.ref,ee=t._self,ve=t._source,Ce=t._owner;if(l!=null){S(l)&&(ie=l.ref,Ce=I.current),w(l)&&(ne=""+l.key);var je=void 0;t.type&&t.type.defaultProps&&(je=t.type.defaultProps);for(N in l)Y.call(l,N)&&!D.hasOwnProperty(N)&&(l[N]===void 0&&je!==void 0?W[N]=je[N]:W[N]=l[N])}var xe=arguments.length-2;if(xe===1)W.children=R;else if(xe>1){for(var Ae=Array(xe),Oe=0;Oe<xe;Oe++)Ae[Oe]=arguments[Oe+2];W.children=Ae}return ae(t.type,ne,ie,ee,ve,Ce,W)}function Te(t){return typeof t=="object"&&t!==null&&t.$$typeof===V}var Ee={};Ee.getCurrentStack=null,Ee.getStackAddendum=function(){var t=Ee.getCurrentStack;return t?t():null};var ke=".",Et=":";function Ot(t){var l=/[=:]/g,R={"=":"=0",":":"=2"},N=(""+t).replace(l,function(W){return R[W]});return"$"+N}var He=!1,Tt=/\/+/g;function et(t){return(""+t).replace(Tt,"$&/")}var tt=10,_e=[];function Pe(t,l,R,N){if(_e.length){var W=_e.pop();return W.result=t,W.keyPrefix=l,W.func=R,W.context=N,W.count=0,W}else return{result:t,keyPrefix:l,func:R,context:N,count:0}}function nt(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,_e.length<tt&&_e.push(t)}function Ve(t,l,R,N){var W=typeof t;(W==="undefined"||W==="boolean")&&(t=null);var ne=!1;if(t===null)ne=!0;else switch(W){case"string":case"number":ne=!0;break;case"object":switch(t.$$typeof){case V:case F:ne=!0}}if(ne)return R(N,t,l===""?ke+Ne(t,0):l),1;var ie=void 0,ee=void 0,ve=0,Ce=l===""?ke:l+Et;if(Array.isArray(t))for(var je=0;je<t.length;je++)ie=t[je],ee=Ce+Ne(ie,je),ve+=Ve(ie,ee,R,N);else{var xe=G(t);if(typeof xe=="function"){xe===t.entries&&(He||h(!1,"Using Maps as children is unsupported and will likely yield unexpected results. Convert it to a sequence/iterable of keyed ReactElements instead.%s",Ee.getStackAddendum()),He=!0);for(var Ae=xe.call(t),Oe=void 0,_r=0;!(Oe=Ae.next()).done;)ie=Oe.value,ee=Ce+Ne(ie,_r++),ve+=Ve(ie,ee,R,N)}else if(W==="object"){var wn="";wn=" If you meant to render a collection of children, use an array instead."+Ee.getStackAddendum();var En=""+t;u(!1,"Objects are not valid as a React child (found: %s).%s",En==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":En,wn)}}return ve}function ze(t,l,R){return t==null?0:Ve(t,"",l,R)}function Ne(t,l){return typeof t=="object"&&t!==null&&t.key!=null?Ot(t.key):l.toString(36)}function St(t,l,R){var N=t.func,W=t.context;N.call(W,l,t.count++)}function Pt(t,l,R){if(t==null)return t;var N=Pe(null,null,l,R);ze(t,St,N),nt(N)}function Rt(t,l,R){var N=t.result,W=t.keyPrefix,ne=t.func,ie=t.context,ee=ne.call(ie,l,t.count++);Array.isArray(ee)?We(ee,N,R,c.thatReturnsArgument):ee!=null&&(Te(ee)&&(ee=ye(ee,W+(ee.key&&(!l||l.key!==ee.key)?et(ee.key)+"/":"")+R)),N.push(ee))}function We(t,l,R,N,W){var ne="";R!=null&&(ne=et(R)+"/");var ie=Pe(l,ne,N,W);ze(t,Rt,ie),nt(ie)}function Mt(t,l,R){if(t==null)return t;var N=[];return We(t,N,null,l,R),N}function kt(t,l){return ze(t,c.thatReturnsNull,null)}function _t(t){var l=[];return We(t,l,null,c.thatReturnsArgument),l}function Be(t){return Te(t)||u(!1,"React.Children.only expected to receive a single React element child."),t}function rt(t,l){l===void 0?l=null:l===null||typeof l=="function"||h(!1,"createContext: Expected the optional second argument to be a function. Instead received: %s",l);var R={$$typeof:E,_calculateChangedBits:l,_defaultValue:t,_currentValue:t,_changedBits:0,Provider:null,Consumer:null};return R.Provider={$$typeof:X,_context:R},R.Consumer=R,R._currentRenderer=null,R}function Re(t){return typeof t!="function"&&h(!1,"forwardRef requires a render function but was given %s.",t===null?"null":typeof t),{$$typeof:C,render:t}}var Ye=function(t,l,R){return`
|
|
49
|
-
in `+(t||"Unknown")+(l?" (at "+l.fileName.replace(/^.*[\\\/]/,"")+":"+l.lineNumber+")":R?" (created by "+R+")":"")};function Ue(t){return typeof t=="string"||typeof t=="function"||t===z||t===f||t===q||typeof t=="object"&&t!==null&&(t.$$typeof===X||t.$$typeof===E||t.$$typeof===C)}function Fe(t){var l=t.type;if(typeof l=="function")return l.displayName||l.name;if(typeof l=="string")return l;switch(l){case z:return"ReactFragment";case F:return"ReactPortal";case H:return"ReactCall";case T:return"ReactReturn"}if(typeof l=="object"&&l!==null)switch(l.$$typeof){case C:var R=l.render.displayName||l.render.name||"";return R!==""?"ForwardRef("+R+")":"ForwardRef"}return null}var we=void 0,De=void 0,at=function(){},Se=function(){};we=null,De=!1,at=function(t){return t==null?"#empty":typeof t=="string"||typeof t=="number"?"#text":typeof t.type=="string"?t.type:t.type===z?"React.Fragment":t.type.displayName||t.type.name||"Unknown"},Se=function(){var t="";if(we){var l=at(we),R=we._owner;t+=Ye(l,we._source,R&&Fe(R))}return t+=Ee.getStackAddendum()||"",t};function qe(){if(I.current){var t=Fe(I.current);if(t)return`
|
|
50
|
-
|
|
51
|
-
Check the render method of \``+t+"`."}return""}function Nt(t){if(t!=null&&t.__source!==void 0){var l=t.__source,R=l.fileName.replace(/^.*[\\\/]/,""),N=l.lineNumber;return`
|
|
52
|
-
|
|
53
|
-
Check your code at `+R+":"+N+"."}return""}var ot={};function it(t){var l=qe();if(!l){var R=typeof t=="string"?t:t.displayName||t.name;R&&(l=`
|
|
54
|
-
|
|
55
|
-
Check the top-level render call using <`+R+">.")}return l}function Ke(t,l){if(!(!t._store||t._store.validated||t.key!=null)){t._store.validated=!0;var R=it(l);if(!ot[R]){ot[R]=!0;var N="";t&&t._owner&&t._owner!==I.current&&(N=" It was passed a child from "+Fe(t._owner)+"."),we=t,h(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s',R,N,Se()),we=null}}}function st(t,l){if(typeof t=="object"){if(Array.isArray(t))for(var R=0;R<t.length;R++){var N=t[R];Te(N)&&Ke(N,l)}else if(Te(t))t._store&&(t._store.validated=!0);else if(t){var W=G(t);if(typeof W=="function"&&W!==t.entries)for(var ne=W.call(t),ie=void 0;!(ie=ne.next()).done;)Te(ie.value)&&Ke(ie.value,l)}}}function ct(t){var l=t.type;if(typeof l=="function"){var R=l.displayName||l.name,N=l.propTypes;N?(we=t,m(N,t.props,"prop",R,Se),we=null):l.PropTypes!==void 0&&!De&&(De=!0,h(!1,"Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"Unknown")),typeof l.getDefaultProps=="function"&&(l.getDefaultProps.isReactClassApproved||h(!1,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."))}}function At(t){we=t;for(var l=Object.keys(t.props),R=0;R<l.length;R++){var N=l[R];if(N!=="children"&&N!=="key"){h(!1,"Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.%s",N,Se());break}}t.ref!==null&&h(!1,"Invalid attribute `ref` supplied to `React.Fragment`.%s",Se()),we=null}function lt(t,l,R){var N=Ue(t);if(!N){var W="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(W+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ne=Nt(l);ne?W+=ne:W+=qe(),W+=Se()||"";var ie=void 0;t===null?ie="null":Array.isArray(t)?ie="array":ie=typeof t,h(!1,"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ie,W)}var ee=oe.apply(this,arguments);if(ee==null)return ee;if(N)for(var ve=2;ve<arguments.length;ve++)st(arguments[ve],t);return t===z?At(ee):ct(ee),ee}function o(t){var l=lt.bind(null,t);return l.type=t,Object.defineProperty(l,"type",{enumerable:!1,get:function(){return J(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:t}),t}}),l}function A(t,l,R){for(var N=be.apply(this,arguments),W=2;W<arguments.length;W++)st(arguments[W],N.type);return ct(N),N}var K={Children:{map:Mt,forEach:Pt,count:kt,toArray:_t,only:Be},createRef:_,Component:re,PureComponent:B,createContext:rt,forwardRef:Re,Fragment:z,StrictMode:q,unstable_AsyncMode:f,createElement:lt,cloneElement:A,createFactory:o,isValidElement:Te,version:O,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:I,assign:s}};s(K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,{ReactDebugCurrentFrame:Ee,ReactComponentTreeHook:{}});var Z=Object.freeze({default:K}),le=Z&&K||Z,pe=le.default?le.default:le;r.exports=pe}()},function(r,i,d){if(process.env.NODE_ENV!=="production"){var s=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103,u=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===s},p=!0;r.exports=d(12)(u,p)}else r.exports=d(13)()},function(r,i,d){var s=d(1),u=d(0),p=d(3),h=d(2),c=d(4),m=d(6);r.exports=function(O,x){var V=typeof Symbol=="function"&&Symbol.iterator,H="@@iterator";function T(g){var _=g&&(V&&g[V]||g[H]);if(typeof _=="function")return _}var F="<<anonymous>>",z={array:f("array"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:C(),arrayOf:j,element:M(),instanceOf:G,node:Q(),objectOf:P,oneOf:U,oneOfType:J,shape:te,exact:ue};function q(g,_){return g===_?g!==0||1/g===1/_:g!==g&&_!==_}function X(g){this.message=g,this.stack=""}X.prototype=Error.prototype;function E(g){if(process.env.NODE_ENV!=="production")var _={},I=0;function Y(a,v,S,w,L,b,ae){if(w=w||F,b=b||S,ae!==c){if(x)u(!1,"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");else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var oe=w+":"+S;!_[oe]&&I<3&&(p(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",b,w),_[oe]=!0,I++)}}return v[S]==null?a?v[S]===null?new X("The "+L+" `"+b+"` is marked as required "+("in `"+w+"`, but its value is `null`.")):new X("The "+L+" `"+b+"` is marked as required in "+("`"+w+"`, but its value is `undefined`.")):null:g(v,S,w,L,b)}var D=Y.bind(null,!1);return D.isRequired=Y.bind(null,!0),D}function f(g){function _(I,Y,D,a,v,S){var w=I[Y],L=he(w);if(L!==g){var b=ce(w);return new X("Invalid "+a+" `"+v+"` of type "+("`"+b+"` supplied to `"+D+"`, expected ")+("`"+g+"`."))}return null}return E(_)}function C(){return E(s.thatReturnsNull)}function j(g){function _(I,Y,D,a,v){if(typeof g!="function")return new X("Property `"+v+"` of component `"+D+"` has invalid PropType notation inside arrayOf.");var S=I[Y];if(!Array.isArray(S)){var w=he(S);return new X("Invalid "+a+" `"+v+"` of type "+("`"+w+"` supplied to `"+D+"`, expected an array."))}for(var L=0;L<S.length;L++){var b=g(S,L,D,a,v+"["+L+"]",c);if(b instanceof Error)return b}return null}return E(_)}function M(){function g(_,I,Y,D,a){var v=_[I];if(!O(v)){var S=he(v);return new X("Invalid "+D+" `"+a+"` of type "+("`"+S+"` supplied to `"+Y+"`, expected a single ReactElement."))}return null}return E(g)}function G(g){function _(I,Y,D,a,v){if(!(I[Y]instanceof g)){var S=g.name||F,w=B(I[Y]);return new X("Invalid "+a+" `"+v+"` of type "+("`"+w+"` supplied to `"+D+"`, expected ")+("instance of `"+S+"`."))}return null}return E(_)}function U(g){if(!Array.isArray(g))return process.env.NODE_ENV!=="production"&&p(!1,"Invalid argument supplied to oneOf, expected an instance of array."),s.thatReturnsNull;function _(I,Y,D,a,v){for(var S=I[Y],w=0;w<g.length;w++)if(q(S,g[w]))return null;var L=JSON.stringify(g);return new X("Invalid "+a+" `"+v+"` of value `"+S+"` "+("supplied to `"+D+"`, expected one of "+L+"."))}return E(_)}function P(g){function _(I,Y,D,a,v){if(typeof g!="function")return new X("Property `"+v+"` of component `"+D+"` has invalid PropType notation inside objectOf.");var S=I[Y],w=he(S);if(w!=="object")return new X("Invalid "+a+" `"+v+"` of type "+("`"+w+"` supplied to `"+D+"`, expected an object."));for(var L in S)if(S.hasOwnProperty(L)){var b=g(S,L,D,a,v+"."+L,c);if(b instanceof Error)return b}return null}return E(_)}function J(g){if(!Array.isArray(g))return process.env.NODE_ENV!=="production"&&p(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),s.thatReturnsNull;for(var _=0;_<g.length;_++){var I=g[_];if(typeof I!="function")return p(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",k(I),_),s.thatReturnsNull}function Y(D,a,v,S,w){for(var L=0;L<g.length;L++){var b=g[L];if(b(D,a,v,S,w,c)==null)return null}return new X("Invalid "+S+" `"+w+"` supplied to "+("`"+v+"`."))}return E(Y)}function Q(){function g(_,I,Y,D,a){return re(_[I])?null:new X("Invalid "+D+" `"+a+"` supplied to "+("`"+Y+"`, expected a ReactNode."))}return E(g)}function te(g){function _(I,Y,D,a,v){var S=I[Y],w=he(S);if(w!=="object")return new X("Invalid "+a+" `"+v+"` of type `"+w+"` "+("supplied to `"+D+"`, expected `object`."));for(var L in g){var b=g[L];if(b){var ae=b(S,L,D,a,v+"."+L,c);if(ae)return ae}}return null}return E(_)}function ue(g){function _(I,Y,D,a,v){var S=I[Y],w=he(S);if(w!=="object")return new X("Invalid "+a+" `"+v+"` of type `"+w+"` "+("supplied to `"+D+"`, expected `object`."));var L=h({},I[Y],g);for(var b in L){var ae=g[b];if(!ae)return new X("Invalid "+a+" `"+v+"` key `"+b+"` supplied to `"+D+"`.\nBad object: "+JSON.stringify(I[Y],null," ")+`
|
|
56
|
-
Valid keys: `+JSON.stringify(Object.keys(g),null," "));var oe=ae(S,b,D,a,v+"."+b,c);if(oe)return oe}return null}return E(_)}function re(g){switch(typeof g){case"number":case"string":case"undefined":return!0;case"boolean":return!g;case"object":if(Array.isArray(g))return g.every(re);if(g===null||O(g))return!0;var _=T(g);if(_){var I=_.call(g),Y;if(_!==g.entries){for(;!(Y=I.next()).done;)if(!re(Y.value))return!1}else for(;!(Y=I.next()).done;){var D=Y.value;if(D&&!re(D[1]))return!1}}else return!1;return!0;default:return!1}}function me(g,_){return g==="symbol"||_["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&_ instanceof Symbol}function he(g){var _=typeof g;return Array.isArray(g)?"array":g instanceof RegExp?"object":me(_,g)?"symbol":_}function ce(g){if(typeof g>"u"||g===null)return""+g;var _=he(g);if(_==="object"){if(g instanceof Date)return"date";if(g instanceof RegExp)return"regexp"}return _}function k(g){var _=ce(g);switch(_){case"array":case"object":return"an "+_;case"boolean":case"date":case"regexp":return"a "+_;default:return _}}function B(g){return!g.constructor||!g.constructor.name?F:g.constructor.name}return z.checkPropTypes=m,z.PropTypes=z,z}},function(r,i,d){var s=d(1),u=d(0),p=d(4);r.exports=function(){function h(O,x,V,H,T,F){F!==p&&u(!1,"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")}h.isRequired=h;function c(){return h}var m={array:h,bool:h,func:h,number:h,object:h,string:h,symbol:h,any:h,arrayOf:c,element:h,instanceOf:c,node:h,objectOf:c,oneOf:c,oneOfType:c,shape:c,exact:c};return m.checkPropTypes=s,m.PropTypes=m,m}},function(r,i,d){Object.defineProperty(i,"__esModule",{value:!0});var s=d(15);Object.defineProperty(i,"blank",{enumerable:!0,get:function(){return H(s).default}});var u=d(16);Object.defineProperty(i,"balls",{enumerable:!0,get:function(){return H(u).default}});var p=d(17);Object.defineProperty(i,"bars",{enumerable:!0,get:function(){return H(p).default}});var h=d(18);Object.defineProperty(i,"bubbles",{enumerable:!0,get:function(){return H(h).default}});var c=d(19);Object.defineProperty(i,"cubes",{enumerable:!0,get:function(){return H(c).default}});var m=d(20);Object.defineProperty(i,"cylon",{enumerable:!0,get:function(){return H(m).default}});var O=d(21);Object.defineProperty(i,"spin",{enumerable:!0,get:function(){return H(O).default}});var x=d(22);Object.defineProperty(i,"spinningBubbles",{enumerable:!0,get:function(){return H(x).default}});var V=d(23);Object.defineProperty(i,"spokes",{enumerable:!0,get:function(){return H(V).default}});function H(T){return T&&T.__esModule?T:{default:T}}},function(r,i){r.exports=`<svg class="icon-blank" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>
|
|
57
|
-
`},function(r,i){r.exports=`<svg class="icon-loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
58
|
-
<path transform="translate(-8 0)" d="M4 12 A4 4 0 0 0 4 20 A4 4 0 0 0 4 12">
|
|
59
|
-
<animateTransform attributeName="transform" type="translate" values="-8 0; 2 0; 2 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.25;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
|
|
60
|
-
</path>
|
|
61
|
-
<path transform="translate(2 0)" d="M4 12 A4 4 0 0 0 4 20 A4 4 0 0 0 4 12">
|
|
62
|
-
<animateTransform attributeName="transform" type="translate" values="2 0; 12 0; 12 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.35;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
|
|
63
|
-
</path>
|
|
64
|
-
<path transform="translate(12 0)" d="M4 12 A4 4 0 0 0 4 20 A4 4 0 0 0 4 12">
|
|
65
|
-
<animateTransform attributeName="transform" type="translate" values="12 0; 22 0; 22 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.45;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
|
|
66
|
-
</path>
|
|
67
|
-
<path transform="translate(24 0)" d="M4 12 A4 4 0 0 0 4 20 A4 4 0 0 0 4 12">
|
|
68
|
-
<animateTransform attributeName="transform" type="translate" values="22 0; 32 0; 32 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.55;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
|
|
69
|
-
</path>
|
|
70
|
-
</svg>
|
|
71
|
-
`},function(r,i){r.exports=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
72
|
-
<path transform="translate(2)" d="M0 12 V20 H4 V12z">
|
|
73
|
-
<animate attributeName="d" values="M0 12 V20 H4 V12z; M0 4 V28 H4 V4z; M0 12 V20 H4 V12z; M0 12 V20 H4 V12z" dur="1.2s" repeatCount="indefinite" begin="0" keytimes="0;.2;.5;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.8 0.4 0.8" calcMode="spline" />
|
|
74
|
-
</path>
|
|
75
|
-
<path transform="translate(8)" d="M0 12 V20 H4 V12z">
|
|
76
|
-
<animate attributeName="d" values="M0 12 V20 H4 V12z; M0 4 V28 H4 V4z; M0 12 V20 H4 V12z; M0 12 V20 H4 V12z" dur="1.2s" repeatCount="indefinite" begin="0.2" keytimes="0;.2;.5;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.8 0.4 0.8" calcMode="spline" />
|
|
77
|
-
</path>
|
|
78
|
-
<path transform="translate(14)" d="M0 12 V20 H4 V12z">
|
|
79
|
-
<animate attributeName="d" values="M0 12 V20 H4 V12z; M0 4 V28 H4 V4z; M0 12 V20 H4 V12z; M0 12 V20 H4 V12z" dur="1.2s" repeatCount="indefinite" begin="0.4" keytimes="0;.2;.5;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.8 0.4 0.8" calcMode="spline" />
|
|
80
|
-
</path>
|
|
81
|
-
<path transform="translate(20)" d="M0 12 V20 H4 V12z">
|
|
82
|
-
<animate attributeName="d" values="M0 12 V20 H4 V12z; M0 4 V28 H4 V4z; M0 12 V20 H4 V12z; M0 12 V20 H4 V12z" dur="1.2s" repeatCount="indefinite" begin="0.6" keytimes="0;.2;.5;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.8 0.4 0.8" calcMode="spline" />
|
|
83
|
-
</path>
|
|
84
|
-
<path transform="translate(26)" d="M0 12 V20 H4 V12z">
|
|
85
|
-
<animate attributeName="d" values="M0 12 V20 H4 V12z; M0 4 V28 H4 V4z; M0 12 V20 H4 V12z; M0 12 V20 H4 V12z" dur="1.2s" repeatCount="indefinite" begin="0.8" keytimes="0;.2;.5;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.8 0.4 0.8" calcMode="spline" />
|
|
86
|
-
</path>
|
|
87
|
-
</svg>
|
|
88
|
-
`},function(r,i){r.exports=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
89
|
-
<circle transform="translate(8 0)" cx="0" cy="16" r="0">
|
|
90
|
-
<animate attributeName="r" values="0; 4; 0; 0" dur="1.2s" repeatCount="indefinite" begin="0"
|
|
91
|
-
keytimes="0;0.2;0.7;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
|
|
92
|
-
</circle>
|
|
93
|
-
<circle transform="translate(16 0)" cx="0" cy="16" r="0">
|
|
94
|
-
<animate attributeName="r" values="0; 4; 0; 0" dur="1.2s" repeatCount="indefinite" begin="0.3"
|
|
95
|
-
keytimes="0;0.2;0.7;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
|
|
96
|
-
</circle>
|
|
97
|
-
<circle transform="translate(24 0)" cx="0" cy="16" r="0">
|
|
98
|
-
<animate attributeName="r" values="0; 4; 0; 0" dur="1.2s" repeatCount="indefinite" begin="0.6"
|
|
99
|
-
keytimes="0;0.2;0.7;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
|
|
100
|
-
</circle>
|
|
101
|
-
</svg>
|
|
102
|
-
`},function(r,i){r.exports=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
103
|
-
<path transform="translate(-8 0)" d="M0 12 V20 H8 V12z">
|
|
104
|
-
<animateTransform attributeName="transform" type="translate" values="-8 0; 2 0; 2 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.25;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
|
|
105
|
-
</path>
|
|
106
|
-
<path transform="translate(2 0)" d="M0 12 V20 H8 V12z">
|
|
107
|
-
<animateTransform attributeName="transform" type="translate" values="2 0; 12 0; 12 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.35;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
|
|
108
|
-
</path>
|
|
109
|
-
<path transform="translate(12 0)" d="M0 12 V20 H8 V12z">
|
|
110
|
-
<animateTransform attributeName="transform" type="translate" values="12 0; 22 0; 22 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.45;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
|
|
111
|
-
</path>
|
|
112
|
-
<path transform="translate(24 0)" d="M0 12 V20 H8 V12z">
|
|
113
|
-
<animateTransform attributeName="transform" type="translate" values="22 0; 32 0; 32 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.55;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
|
|
114
|
-
</path>
|
|
115
|
-
</svg>
|
|
116
|
-
`},function(r,i){r.exports=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
117
|
-
<path transform="translate(0 0)" d="M0 12 V20 H4 V12z">
|
|
118
|
-
<animateTransform attributeName="transform" type="translate" values="0 0; 28 0; 0 0; 0 0" dur="1.5s" begin="0" repeatCount="indefinite" keytimes="0;0.3;0.6;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
|
|
119
|
-
</path>
|
|
120
|
-
<path opacity="0.5" transform="translate(0 0)" d="M0 12 V20 H4 V12z">
|
|
121
|
-
<animateTransform attributeName="transform" type="translate" values="0 0; 28 0; 0 0; 0 0" dur="1.5s" begin="0.1s" repeatCount="indefinite" keytimes="0;0.3;0.6;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
|
|
122
|
-
</path>
|
|
123
|
-
<path opacity="0.25" transform="translate(0 0)" d="M0 12 V20 H4 V12z">
|
|
124
|
-
<animateTransform attributeName="transform" type="translate" values="0 0; 28 0; 0 0; 0 0" dur="1.5s" begin="0.2s" repeatCount="indefinite" keytimes="0;0.3;0.6;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
|
|
125
|
-
</path>
|
|
126
|
-
</svg>
|
|
127
|
-
`},function(r,i){r.exports=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
128
|
-
<path opacity=".25" d="M16 0 A16 16 0 0 0 16 32 A16 16 0 0 0 16 0 M16 4 A12 12 0 0 1 16 28 A12 12 0 0 1 16 4"/>
|
|
129
|
-
<path d="M16 0 A16 16 0 0 1 32 16 L28 16 A12 12 0 0 0 16 4z">
|
|
130
|
-
<animateTransform attributeName="transform" type="rotate" from="0 16 16" to="360 16 16" dur="0.8s" repeatCount="indefinite" />
|
|
131
|
-
</path>
|
|
132
|
-
</svg>
|
|
133
|
-
`},function(r,i){r.exports=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
134
|
-
<circle cx="16" cy="3" r="0">
|
|
135
|
-
<animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
|
|
136
|
-
</circle>
|
|
137
|
-
<circle transform="rotate(45 16 16)" cx="16" cy="3" r="0">
|
|
138
|
-
<animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.125s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
|
|
139
|
-
</circle>
|
|
140
|
-
<circle transform="rotate(90 16 16)" cx="16" cy="3" r="0">
|
|
141
|
-
<animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.25s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
|
|
142
|
-
</circle>
|
|
143
|
-
<circle transform="rotate(135 16 16)" cx="16" cy="3" r="0">
|
|
144
|
-
<animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.375s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
|
|
145
|
-
</circle>
|
|
146
|
-
<circle transform="rotate(180 16 16)" cx="16" cy="3" r="0">
|
|
147
|
-
<animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
|
|
148
|
-
</circle>
|
|
149
|
-
<circle transform="rotate(225 16 16)" cx="16" cy="3" r="0">
|
|
150
|
-
<animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.625s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
|
|
151
|
-
</circle>
|
|
152
|
-
<circle transform="rotate(270 16 16)" cx="16" cy="3" r="0">
|
|
153
|
-
<animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.75s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
|
|
154
|
-
</circle>
|
|
155
|
-
<circle transform="rotate(315 16 16)" cx="16" cy="3" r="0">
|
|
156
|
-
<animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.875s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
|
|
157
|
-
</circle>
|
|
158
|
-
<circle transform="rotate(180 16 16)" cx="16" cy="3" r="0">
|
|
159
|
-
<animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
|
|
160
|
-
</circle>
|
|
161
|
-
</svg>
|
|
162
|
-
`},function(r,i){r.exports=`<svg id="loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
163
|
-
<path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(0 16 16)">
|
|
164
|
-
<animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0"/>
|
|
165
|
-
</path>
|
|
166
|
-
<path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(45 16 16)">
|
|
167
|
-
<animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.125s"/>
|
|
168
|
-
</path>
|
|
169
|
-
<path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(90 16 16)">
|
|
170
|
-
<animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.25s"/>
|
|
171
|
-
</path>
|
|
172
|
-
<path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(135 16 16)">
|
|
173
|
-
<animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.375s"/>
|
|
174
|
-
</path>
|
|
175
|
-
<path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(180 16 16)">
|
|
176
|
-
<animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.5s"/>
|
|
177
|
-
</path>
|
|
178
|
-
<path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(225 16 16)">
|
|
179
|
-
<animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.675s"/>
|
|
180
|
-
</path>
|
|
181
|
-
<path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(270 16 16)">
|
|
182
|
-
<animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.75s"/>
|
|
183
|
-
</path>
|
|
184
|
-
<path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(315 16 16)">
|
|
185
|
-
<animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.875s"/>
|
|
186
|
-
</path>
|
|
187
|
-
</svg>
|
|
188
|
-
`}])})})(cn);var br=cn.exports;const ln=ut(br),xr=({fileUploadConfig:e,allowedFileExtensions:y,handleFileUploading:r,handleFileUploaded:i,currentFolder:d})=>{const[s,u]=$.useState([]),[p,h]=$.useState(!1),[c,m]=$.useState({}),O=V=>{V.preventDefault(),h(!1);const H=Array.from(V.dataTransfer.files);if(H.length>0){const T=H.map(F=>{const z=r(F,d);return{file:F,appendData:z}});u(F=>[...F,...T])}},x=V=>{const H=Array.from(V.target.files);if(H.length>0){const T=H.map(F=>{const z=r(F,d);return{file:F,appendData:z}});u(F=>[...F,...T])}};return n.jsxs("div",{className:`fm-upload-file ${s.length>0?"file-selcted":""}`,children:[n.jsxs("div",{className:"select-files",children:[n.jsx("div",{className:`draggable-file-input ${p?"dragging":""}`,onDrop:O,onDragOver:V=>V.preventDefault(),onDragEnter:()=>h(!0),onDragLeave:()=>h(!1),children:n.jsxs("div",{className:"input-text",children:[n.jsx(vr,{size:30}),n.jsx("span",{children:"Drag files to upload"})]})}),n.jsx("div",{className:"btn-choose-file",children:n.jsxs(Le,{padding:"0",children:[n.jsx("label",{htmlFor:"chooseFile",children:"Choose File"}),n.jsx("input",{type:"file",id:"chooseFile",className:"choose-file-input",onChange:x,multiple:!0,accept:y})]})})]}),s.length>0&&n.jsxs("div",{className:"files-progress",children:[n.jsx("div",{className:"heading",children:Object.values(c).some(V=>V)?n.jsxs(n.Fragment,{children:[n.jsx("h2",{children:"Uploading"}),n.jsx(ln,{type:"cylon",color:"black",height:18,width:20})]}):n.jsx("h2",{children:"Completed"})}),n.jsx("ul",{children:s.map((V,H)=>n.jsx(gr,{index:H,fileData:V,fileUploadConfig:e,setIsUploading:m,handleFileUploaded:i},H))})]})]})},Cr=({files:e,fileUploadConfig:y,triggerAction:r,currentPath:i,currentPathFiles:d,selectedFile:s,setSelectedFile:u,handleCreateFolder:p,handleFileUploading:h,handleFileUploaded:c,currentFolder:m,handleRename:O,setIsItemSelection:x,handleDelete:V,allowedFileExtensions:H})=>{const[T,F]=$.useState(null),z={uploadFile:{title:"Upload Files",component:n.jsx(xr,{fileUploadConfig:y,allowedFileExtensions:H,handleFileUploading:h,handleFileUploaded:c,currentFolder:m}),width:"35%"},delete:{title:"Delete",component:n.jsx(pr,{files:e,selectedFile:s,triggerAction:r,handleDelete:V,setIsItemSelection:x,setSelectedFile:u}),width:"25%"},preview:{title:"Preview"}};if($.useEffect(()=>{if(r.isActive){const q=r.actionType;F(z[q])}else F(null)},[r.isActive]),T)return n.jsx(on,{heading:T.title,show:r.isActive,setShow:r.close,dialogWidth:T.width,children:T==null?void 0:T.component})},jr=({isLoading:e})=>{if(e)return n.jsx("div",{className:"fm-loader",children:n.jsx(ln,{color:"black",type:"spokes",height:50,width:50})})};var mt={exports:{}},Qe={exports:{}},fe={};/** @license React v16.13.1
|
|
189
|
-
* react-is.production.min.js
|
|
190
|
-
*
|
|
191
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
192
|
-
*
|
|
193
|
-
* This source code is licensed under the MIT license found in the
|
|
194
|
-
* LICENSE file in the root directory of this source tree.
|
|
195
|
-
*/var un;function wr(){if(un)return fe;un=1;var e=typeof Symbol=="function"&&Symbol.for,y=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,d=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,p=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,O=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,V=e?Symbol.for("react.memo"):60115,H=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,F=e?Symbol.for("react.fundamental"):60117,z=e?Symbol.for("react.responder"):60118,q=e?Symbol.for("react.scope"):60119;function X(f){if(typeof f=="object"&&f!==null){var C=f.$$typeof;switch(C){case y:switch(f=f.type,f){case h:case c:case i:case s:case d:case O:return f;default:switch(f=f&&f.$$typeof,f){case p:case m:case H:case V:case u:return f;default:return C}}case r:return C}}}function E(f){return X(f)===c}return fe.AsyncMode=h,fe.ConcurrentMode=c,fe.ContextConsumer=p,fe.ContextProvider=u,fe.Element=y,fe.ForwardRef=m,fe.Fragment=i,fe.Lazy=H,fe.Memo=V,fe.Portal=r,fe.Profiler=s,fe.StrictMode=d,fe.Suspense=O,fe.isAsyncMode=function(f){return E(f)||X(f)===h},fe.isConcurrentMode=E,fe.isContextConsumer=function(f){return X(f)===p},fe.isContextProvider=function(f){return X(f)===u},fe.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===y},fe.isForwardRef=function(f){return X(f)===m},fe.isFragment=function(f){return X(f)===i},fe.isLazy=function(f){return X(f)===H},fe.isMemo=function(f){return X(f)===V},fe.isPortal=function(f){return X(f)===r},fe.isProfiler=function(f){return X(f)===s},fe.isStrictMode=function(f){return X(f)===d},fe.isSuspense=function(f){return X(f)===O},fe.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===i||f===c||f===s||f===d||f===O||f===x||typeof f=="object"&&f!==null&&(f.$$typeof===H||f.$$typeof===V||f.$$typeof===u||f.$$typeof===p||f.$$typeof===m||f.$$typeof===F||f.$$typeof===z||f.$$typeof===q||f.$$typeof===T)},fe.typeOf=X,fe}var de={};/** @license React v16.13.1
|
|
196
|
-
* react-is.development.js
|
|
197
|
-
*
|
|
198
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
199
|
-
*
|
|
200
|
-
* This source code is licensed under the MIT license found in the
|
|
201
|
-
* LICENSE file in the root directory of this source tree.
|
|
202
|
-
*/var fn;function Er(){return fn||(fn=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,y=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,d=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,p=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,O=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,V=e?Symbol.for("react.memo"):60115,H=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,F=e?Symbol.for("react.fundamental"):60117,z=e?Symbol.for("react.responder"):60118,q=e?Symbol.for("react.scope"):60119;function X(b){return typeof b=="string"||typeof b=="function"||b===i||b===c||b===s||b===d||b===O||b===x||typeof b=="object"&&b!==null&&(b.$$typeof===H||b.$$typeof===V||b.$$typeof===u||b.$$typeof===p||b.$$typeof===m||b.$$typeof===F||b.$$typeof===z||b.$$typeof===q||b.$$typeof===T)}function E(b){if(typeof b=="object"&&b!==null){var ae=b.$$typeof;switch(ae){case y:var oe=b.type;switch(oe){case h:case c:case i:case s:case d:case O:return oe;default:var ye=oe&&oe.$$typeof;switch(ye){case p:case m:case H:case V:case u:return ye;default:return ae}}case r:return ae}}}var f=h,C=c,j=p,M=u,G=y,U=m,P=i,J=H,Q=V,te=r,ue=s,re=d,me=O,he=!1;function ce(b){return he||(he=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),k(b)||E(b)===h}function k(b){return E(b)===c}function B(b){return E(b)===p}function g(b){return E(b)===u}function _(b){return typeof b=="object"&&b!==null&&b.$$typeof===y}function I(b){return E(b)===m}function Y(b){return E(b)===i}function D(b){return E(b)===H}function a(b){return E(b)===V}function v(b){return E(b)===r}function S(b){return E(b)===s}function w(b){return E(b)===d}function L(b){return E(b)===O}de.AsyncMode=f,de.ConcurrentMode=C,de.ContextConsumer=j,de.ContextProvider=M,de.Element=G,de.ForwardRef=U,de.Fragment=P,de.Lazy=J,de.Memo=Q,de.Portal=te,de.Profiler=ue,de.StrictMode=re,de.Suspense=me,de.isAsyncMode=ce,de.isConcurrentMode=k,de.isContextConsumer=B,de.isContextProvider=g,de.isElement=_,de.isForwardRef=I,de.isFragment=Y,de.isLazy=D,de.isMemo=a,de.isPortal=v,de.isProfiler=S,de.isStrictMode=w,de.isSuspense=L,de.isValidElementType=X,de.typeOf=E}()),de}var dn;function pn(){return dn||(dn=1,process.env.NODE_ENV==="production"?Qe.exports=wr():Qe.exports=Er()),Qe.exports}/*
|
|
203
|
-
object-assign
|
|
204
|
-
(c) Sindre Sorhus
|
|
205
|
-
@license MIT
|
|
206
|
-
*/var yt,hn;function Or(){if(hn)return yt;hn=1;var e=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function d(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var u={},p=0;p<10;p++)u["_"+String.fromCharCode(p)]=p;var h=Object.getOwnPropertyNames(u).map(function(m){return u[m]});if(h.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(m){c[m]=m}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return yt=d()?Object.assign:function(s,u){for(var p,h=i(s),c,m=1;m<arguments.length;m++){p=Object(arguments[m]);for(var O in p)y.call(p,O)&&(h[O]=p[O]);if(e){c=e(p);for(var x=0;x<c.length;x++)r.call(p,c[x])&&(h[c[x]]=p[c[x]])}}return h},yt}var gt,vn;function bt(){if(vn)return gt;vn=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return gt=e,gt}var xt,mn;function yn(){return mn||(mn=1,xt=Function.call.bind(Object.prototype.hasOwnProperty)),xt}var Ct,gn;function Tr(){if(gn)return Ct;gn=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var y=bt(),r={},i=yn();e=function(s){var u="Warning: "+s;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}}}function d(s,u,p,h,c){if(process.env.NODE_ENV!=="production"){for(var m in s)if(i(s,m)){var O;try{if(typeof s[m]!="function"){var x=Error((h||"React class")+": "+p+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}O=s[m](u,m,h,p,null,y)}catch(H){O=H}if(O&&!(O instanceof Error)&&e((h||"React class")+": type specification of "+p+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof O+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),O instanceof Error&&!(O.message in r)){r[O.message]=!0;var V=c?c():"";e("Failed "+p+" type: "+O.message+(V??""))}}}}return d.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Ct=d,Ct}var jt,bn;function Sr(){if(bn)return jt;bn=1;var e=pn(),y=Or(),r=bt(),i=yn(),d=Tr(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(p){var h="Warning: "+p;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}});function u(){return null}return jt=function(p,h){var c=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function O(k){var B=k&&(c&&k[c]||k[m]);if(typeof B=="function")return B}var x="<<anonymous>>",V={array:z("array"),bigint:z("bigint"),bool:z("boolean"),func:z("function"),number:z("number"),object:z("object"),string:z("string"),symbol:z("symbol"),any:q(),arrayOf:X,element:E(),elementType:f(),instanceOf:C,node:U(),objectOf:M,oneOf:j,oneOfType:G,shape:J,exact:Q};function H(k,B){return k===B?k!==0||1/k===1/B:k!==k&&B!==B}function T(k,B){this.message=k,this.data=B&&typeof B=="object"?B:{},this.stack=""}T.prototype=Error.prototype;function F(k){if(process.env.NODE_ENV!=="production")var B={},g=0;function _(Y,D,a,v,S,w,L){if(v=v||x,w=w||a,L!==r){if(h){var b=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 b.name="Invariant Violation",b}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ae=v+":"+a;!B[ae]&&g<3&&(s("You are manually calling a React.PropTypes validation function for the `"+w+"` prop on `"+v+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),B[ae]=!0,g++)}}return D[a]==null?Y?D[a]===null?new T("The "+S+" `"+w+"` is marked as required "+("in `"+v+"`, but its value is `null`.")):new T("The "+S+" `"+w+"` is marked as required in "+("`"+v+"`, but its value is `undefined`.")):null:k(D,a,v,S,w)}var I=_.bind(null,!1);return I.isRequired=_.bind(null,!0),I}function z(k){function B(g,_,I,Y,D,a){var v=g[_],S=re(v);if(S!==k){var w=me(v);return new T("Invalid "+Y+" `"+D+"` of type "+("`"+w+"` supplied to `"+I+"`, expected ")+("`"+k+"`."),{expectedType:k})}return null}return F(B)}function q(){return F(u)}function X(k){function B(g,_,I,Y,D){if(typeof k!="function")return new T("Property `"+D+"` of component `"+I+"` has invalid PropType notation inside arrayOf.");var a=g[_];if(!Array.isArray(a)){var v=re(a);return new T("Invalid "+Y+" `"+D+"` of type "+("`"+v+"` supplied to `"+I+"`, expected an array."))}for(var S=0;S<a.length;S++){var w=k(a,S,I,Y,D+"["+S+"]",r);if(w instanceof Error)return w}return null}return F(B)}function E(){function k(B,g,_,I,Y){var D=B[g];if(!p(D)){var a=re(D);return new T("Invalid "+I+" `"+Y+"` of type "+("`"+a+"` supplied to `"+_+"`, expected a single ReactElement."))}return null}return F(k)}function f(){function k(B,g,_,I,Y){var D=B[g];if(!e.isValidElementType(D)){var a=re(D);return new T("Invalid "+I+" `"+Y+"` of type "+("`"+a+"` supplied to `"+_+"`, expected a single ReactElement type."))}return null}return F(k)}function C(k){function B(g,_,I,Y,D){if(!(g[_]instanceof k)){var a=k.name||x,v=ce(g[_]);return new T("Invalid "+Y+" `"+D+"` of type "+("`"+v+"` supplied to `"+I+"`, expected ")+("instance of `"+a+"`."))}return null}return F(B)}function j(k){if(!Array.isArray(k))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),u;function B(g,_,I,Y,D){for(var a=g[_],v=0;v<k.length;v++)if(H(a,k[v]))return null;var S=JSON.stringify(k,function(L,b){var ae=me(b);return ae==="symbol"?String(b):b});return new T("Invalid "+Y+" `"+D+"` of value `"+String(a)+"` "+("supplied to `"+I+"`, expected one of "+S+"."))}return F(B)}function M(k){function B(g,_,I,Y,D){if(typeof k!="function")return new T("Property `"+D+"` of component `"+I+"` has invalid PropType notation inside objectOf.");var a=g[_],v=re(a);if(v!=="object")return new T("Invalid "+Y+" `"+D+"` of type "+("`"+v+"` supplied to `"+I+"`, expected an object."));for(var S in a)if(i(a,S)){var w=k(a,S,I,Y,D+"."+S,r);if(w instanceof Error)return w}return null}return F(B)}function G(k){if(!Array.isArray(k))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var B=0;B<k.length;B++){var g=k[B];if(typeof g!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+he(g)+" at index "+B+"."),u}function _(I,Y,D,a,v){for(var S=[],w=0;w<k.length;w++){var L=k[w],b=L(I,Y,D,a,v,r);if(b==null)return null;b.data&&i(b.data,"expectedType")&&S.push(b.data.expectedType)}var ae=S.length>0?", expected one of type ["+S.join(", ")+"]":"";return new T("Invalid "+a+" `"+v+"` supplied to "+("`"+D+"`"+ae+"."))}return F(_)}function U(){function k(B,g,_,I,Y){return te(B[g])?null:new T("Invalid "+I+" `"+Y+"` supplied to "+("`"+_+"`, expected a ReactNode."))}return F(k)}function P(k,B,g,_,I){return new T((k||"React class")+": "+B+" type `"+g+"."+_+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+I+"`.")}function J(k){function B(g,_,I,Y,D){var a=g[_],v=re(a);if(v!=="object")return new T("Invalid "+Y+" `"+D+"` of type `"+v+"` "+("supplied to `"+I+"`, expected `object`."));for(var S in k){var w=k[S];if(typeof w!="function")return P(I,Y,D,S,me(w));var L=w(a,S,I,Y,D+"."+S,r);if(L)return L}return null}return F(B)}function Q(k){function B(g,_,I,Y,D){var a=g[_],v=re(a);if(v!=="object")return new T("Invalid "+Y+" `"+D+"` of type `"+v+"` "+("supplied to `"+I+"`, expected `object`."));var S=y({},g[_],k);for(var w in S){var L=k[w];if(i(k,w)&&typeof L!="function")return P(I,Y,D,w,me(L));if(!L)return new T("Invalid "+Y+" `"+D+"` key `"+w+"` supplied to `"+I+"`.\nBad object: "+JSON.stringify(g[_],null," ")+`
|
|
207
|
-
Valid keys: `+JSON.stringify(Object.keys(k),null," "));var b=L(a,w,I,Y,D+"."+w,r);if(b)return b}return null}return F(B)}function te(k){switch(typeof k){case"number":case"string":case"undefined":return!0;case"boolean":return!k;case"object":if(Array.isArray(k))return k.every(te);if(k===null||p(k))return!0;var B=O(k);if(B){var g=B.call(k),_;if(B!==k.entries){for(;!(_=g.next()).done;)if(!te(_.value))return!1}else for(;!(_=g.next()).done;){var I=_.value;if(I&&!te(I[1]))return!1}}else return!1;return!0;default:return!1}}function ue(k,B){return k==="symbol"?!0:B?B["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&B instanceof Symbol:!1}function re(k){var B=typeof k;return Array.isArray(k)?"array":k instanceof RegExp?"object":ue(B,k)?"symbol":B}function me(k){if(typeof k>"u"||k===null)return""+k;var B=re(k);if(B==="object"){if(k instanceof Date)return"date";if(k instanceof RegExp)return"regexp"}return B}function he(k){var B=me(k);switch(B){case"array":case"object":return"an "+B;case"boolean":case"date":case"regexp":return"a "+B;default:return B}}function ce(k){return!k.constructor||!k.constructor.name?x:k.constructor.name}return V.checkPropTypes=d,V.resetWarningCache=d.resetWarningCache,V.PropTypes=V,V},jt}var wt,xn;function Pr(){if(xn)return wt;xn=1;var e=bt();function y(){}function r(){}return r.resetWarningCache=y,wt=function(){function i(u,p,h,c,m,O){if(O!==e){var x=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 x.name="Invariant Violation",x}}i.isRequired=i;function d(){return i}var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:d,element:i,elementType:i,instanceOf:d,node:i,objectOf:d,oneOf:d,oneOfType:d,shape:d,exact:d,checkPropTypes:r,resetWarningCache:y};return s.PropTypes=s,s},wt}if(process.env.NODE_ENV!=="production"){var Rr=pn(),Mr=!0;mt.exports=Sr()(Rr.isElement,Mr)}else mt.exports=Pr()();var kr=mt.exports;const Cn=ut(kr),jn=({files:e,fileUploadConfig:y,isLoading:r,onCreateFolder:i,onFileUploading:d,onFileUploaded:s,onRename:u,onDelete:p,onPaste:h,onLayoutChange:c,onRefresh:m,allowedFileExtensions:O})=>{const x=dr(),[V,H]=$.useState(!1),[T,F]=$.useState(null),[z,q]=$.useState(""),[X,E]=$.useState(null),[f,C]=$.useState([]),[j,M]=$.useState(null),[G,U]=$.useState("grid");$.useEffect(()=>{Array.isArray(e)&&(C(()=>e.filter(ce=>ce.path===`${z}/${ce.name}`)),E(()=>e==null?void 0:e.find(ce=>ce.path===z)))},[e,z]);const[P,J]=$.useState({col1:"20",col2:"80"}),[Q,te]=$.useState(!1),ue=$.useRef(null),re=()=>{te(!0)},me=()=>{te(!1)},he=ce=>{if(!Q)return;ce.preventDefault();const B=ue.current.getBoundingClientRect(),g=(ce.clientX-B.left)/B.width*100;g>=15&&g<=60&&J({col1:g,col2:100-g})};return n.jsxs("main",{className:"file-explorer",onContextMenu:ce=>ce.preventDefault(),children:[n.jsx(jr,{isLoading:r}),n.jsx(Kn,{allowCreateFolder:!0,allowUploadFile:!0,handleRefresh:m,isItemSelection:V,setIsItemSelection:H,currentPath:z,selectedFile:T,setSelectedFile:F,files:e,clipBoard:j,setClipBoard:M,handlePaste:h,triggerAction:x,activeLayout:G,setActiveLayout:U,onLayoutChange:c}),n.jsxs("section",{ref:ue,onMouseMove:he,onMouseUp:me,className:"files-container",children:[n.jsxs("div",{className:"navigation-pane",style:{width:P.col1+"%"},children:[n.jsx(er,{files:e,currentPath:z,setCurrentPath:q}),n.jsx("div",{className:`sidebar-resize ${Q?"sidebar-dragging":""}`,onMouseDown:re})]}),n.jsxs("div",{className:"folders-preview",style:{width:P.col2+"%"},children:[n.jsx(tr,{currentPath:z,setCurrentPath:q}),n.jsx(fr,{currentPathFiles:f,setCurrentPathFiles:C,setCurrentPath:q,isItemSelection:V,setIsItemSelection:H,setSelectedFile:F,currentPath:z,clipBoard:j,setClipBoard:M,handlePaste:h,files:e,triggerAction:x,currentFolder:X,handleCreateFolder:i,handleRename:u,activeLayout:G})]})]}),n.jsx(Cr,{files:e,fileUploadConfig:y,currentPath:z,currentPathFiles:f,selectedFile:T,triggerAction:x,handleCreateFolder:i,handleFileUploading:d,handleFileUploaded:s,currentFolder:X,handleRename:u,handleDelete:p,setIsItemSelection:H,setSelectedFile:F,allowedFileExtensions:O})]})};jn.propTypes={files:Cn.arrayOf(Cn.object).isRequired},Me.FileManager=jn,Object.defineProperty(Me,Symbol.toStringTag,{value:"Module"})});
|