@cubone/react-file-manager 1.0.0
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/LICENSE +21 -0
- package/README.md +102 -0
- package/dist/react-file-manager.es.js +3591 -0
- package/dist/react-file-manager.umd.js +188 -0
- package/dist/style.css +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +57 -0
- package/src/index.js +1 -0
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
(function(Se,F){typeof exports=="object"&&typeof module<"u"?F(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],F):(Se=typeof globalThis<"u"?globalThis:Se||self,F(Se.ReactFileManager={},Se.React))})(this,function(Se,F){"use strict";var xt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jt(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var at={exports:{}},De={};/**
|
|
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 wt;function Lt(){if(wt)return De;wt=1;var n=F,v=Symbol.for("react.element"),c=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,d=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function s(h,f,o){var p,O={},j=null,D=null;o!==void 0&&(j=""+o),f.key!==void 0&&(j=""+f.key),f.ref!==void 0&&(D=f.ref);for(p in f)l.call(f,p)&&!u.hasOwnProperty(p)&&(O[p]=f[p]);if(h&&h.defaultProps)for(p in f=h.defaultProps,f)O[p]===void 0&&(O[p]=f[p]);return{$$typeof:v,type:h,key:j,ref:D,props:O,_owner:d.current}}return De.Fragment=c,De.jsx=s,De.jsxs=s,De}var Fe={};/**
|
|
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 Ct;function $t(){return Ct||(Ct=1,process.env.NODE_ENV!=="production"&&function(){var n=F,v=Symbol.for("react.element"),c=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),h=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),o=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),A=Symbol.iterator,T="@@iterator";function L(t){if(t===null||typeof t!="object")return null;var b=A&&t[A]||t[T];return typeof b=="function"?b:null}var V=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(t){{for(var b=arguments.length,P=new Array(b>1?b-1:0),W=1;W<b;W++)P[W-1]=arguments[W];I("error",t,P)}}function I(t,b,P){{var W=V.ReactDebugCurrentFrame,ee=W.getStackAddendum();ee!==""&&(b+="%s",P=P.concat([ee]));var ae=P.map(function(e){return String(e)});ae.unshift("Warning: "+b),Function.prototype.apply.call(console[t],console,ae)}}var R=!1,x=!1,S=!1,k=!1,$=!1,te;te=Symbol.for("react.module.reference");function q(t){return!!(typeof t=="string"||typeof t=="function"||t===l||t===u||$||t===d||t===o||t===p||k||t===D||R||x||S||typeof t=="object"&&t!==null&&(t.$$typeof===j||t.$$typeof===O||t.$$typeof===s||t.$$typeof===h||t.$$typeof===f||t.$$typeof===te||t.getModuleId!==void 0))}function N(t,b,P){var W=t.displayName;if(W)return W;var ee=b.displayName||b.name||"";return ee!==""?P+"("+ee+")":P}function Q(t){return t.displayName||"Context"}function ne(t){if(t==null)return null;if(typeof t.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case l:return"Fragment";case c:return"Portal";case u:return"Profiler";case d:return"StrictMode";case o:return"Suspense";case p:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case h:var b=t;return Q(b)+".Consumer";case s:var P=t;return Q(P._context)+".Provider";case f:return N(t,t.render,"ForwardRef");case O:var W=t.displayName||null;return W!==null?W:ne(t.type)||"Memo";case j:{var ee=t,ae=ee._payload,e=ee._init;try{return ne(e(ae))}catch{return null}}}return null}var oe=Object.assign,de=0,ce,ve,ue,G,fe,pe,w;function z(){}z.__reactDisabledLog=!0;function Y(){{if(de===0){ce=console.log,ve=console.info,ue=console.warn,G=console.error,fe=console.group,pe=console.groupCollapsed,w=console.groupEnd;var t={configurable:!0,enumerable:!0,value:z,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}de++}}function K(){{if(de--,de===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:oe({},t,{value:ce}),info:oe({},t,{value:ve}),warn:oe({},t,{value:ue}),error:oe({},t,{value:G}),group:oe({},t,{value:fe}),groupCollapsed:oe({},t,{value:pe}),groupEnd:oe({},t,{value:w})})}de<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var B=V.ReactCurrentDispatcher,i;function m(t,b,P){{if(i===void 0)try{throw Error()}catch(ee){var W=ee.stack.trim().match(/\n( *(at )?)/);i=W&&W[1]||""}return`
|
|
18
|
+
`+i+t}}var M=!1,E;{var H=typeof WeakMap=="function"?WeakMap:Map;E=new H}function U(t,b){if(!t||M)return"";{var P=E.get(t);if(P!==void 0)return P}var W;M=!0;var ee=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ae;ae=B.current,B.current=null,Y();try{if(b){var e=function(){throw Error()};if(Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(ie){W=ie}Reflect.construct(t,[],e)}else{try{e.call()}catch(ie){W=ie}t.call(e.prototype)}}else{try{throw Error()}catch(ie){W=ie}t()}}catch(ie){if(ie&&W&&typeof ie.stack=="string"){for(var a=ie.stack.split(`
|
|
19
|
+
`),g=W.stack.split(`
|
|
20
|
+
`),y=a.length-1,C=g.length-1;y>=1&&C>=0&&a[y]!==g[C];)C--;for(;y>=1&&C>=0;y--,C--)if(a[y]!==g[C]){if(y!==1||C!==1)do if(y--,C--,C<0||a[y]!==g[C]){var X=`
|
|
21
|
+
`+a[y].replace(" at new "," at ");return t.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",t.displayName)),typeof t=="function"&&E.set(t,X),X}while(y>=1&&C>=0);break}}}finally{M=!1,B.current=ae,K(),Error.prepareStackTrace=ee}var Z=t?t.displayName||t.name:"",J=Z?m(Z):"";return typeof t=="function"&&E.set(t,J),J}function se(t,b,P){return U(t,!1)}function re(t){var b=t.prototype;return!!(b&&b.isReactComponent)}function me(t,b,P){if(t==null)return"";if(typeof t=="function")return U(t,re(t));if(typeof t=="string")return m(t);switch(t){case o:return m("Suspense");case p:return m("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case f:return se(t.render);case O:return me(t.type,b,P);case j:{var W=t,ee=W._payload,ae=W._init;try{return me(ae(ee),b,P)}catch{}}}return""}var he=Object.prototype.hasOwnProperty,Ce={},je=V.ReactDebugCurrentFrame;function Re(t){if(t){var b=t._owner,P=me(t.type,t._source,b?b.type:null);je.setExtraStackFrame(P)}else je.setExtraStackFrame(null)}function ct(t,b,P,W,ee){{var ae=Function.call.bind(he);for(var e in t)if(ae(t,e)){var a=void 0;try{if(typeof t[e]!="function"){var g=Error((W||"React class")+": "+P+" type `"+e+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[e]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}a=t[e](b,e,W,P,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){a=y}a&&!(a instanceof Error)&&(Re(ee),_("%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).",W||"React class",P,e,typeof a),Re(null)),a instanceof Error&&!(a.message in Ce)&&(Ce[a.message]=!0,Re(ee),_("Failed %s type: %s",P,a.message),Re(null))}}}var ut=Array.isArray;function _e(t){return ut(t)}function ft(t){{var b=typeof Symbol=="function"&&Symbol.toStringTag,P=b&&t[Symbol.toStringTag]||t.constructor.name||"Object";return P}}function qe(t){try{return Je(t),!1}catch{return!0}}function Je(t){return""+t}function Ne(t){if(qe(t))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ft(t)),Je(t)}var Ee=V.ReactCurrentOwner,Ge={key:!0,ref:!0,__self:!0,__source:!0},Ae,Ve,ke;ke={};function dt(t){if(he.call(t,"ref")){var b=Object.getOwnPropertyDescriptor(t,"ref").get;if(b&&b.isReactWarning)return!1}return t.ref!==void 0}function pt(t){if(he.call(t,"key")){var b=Object.getOwnPropertyDescriptor(t,"key").get;if(b&&b.isReactWarning)return!1}return t.key!==void 0}function ht(t,b){if(typeof t.ref=="string"&&Ee.current&&b&&Ee.current.stateNode!==b){var P=ne(Ee.current.type);ke[P]||(_('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',ne(Ee.current.type),t.ref),ke[P]=!0)}}function Ie(t,b){{var P=function(){Ae||(Ae=!0,_("%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)",b))};P.isReactWarning=!0,Object.defineProperty(t,"key",{get:P,configurable:!0})}}function vt(t,b){{var P=function(){Ve||(Ve=!0,_("%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)",b))};P.isReactWarning=!0,Object.defineProperty(t,"ref",{get:P,configurable:!0})}}var mt=function(t,b,P,W,ee,ae,e){var a={$$typeof:v,type:t,key:b,ref:P,props:e,_owner:ae};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:W}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ee}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function gt(t,b,P,W,ee){{var ae,e={},a=null,g=null;P!==void 0&&(Ne(P),a=""+P),pt(b)&&(Ne(b.key),a=""+b.key),dt(b)&&(g=b.ref,ht(b,ee));for(ae in b)he.call(b,ae)&&!Ge.hasOwnProperty(ae)&&(e[ae]=b[ae]);if(t&&t.defaultProps){var y=t.defaultProps;for(ae in y)e[ae]===void 0&&(e[ae]=y[ae])}if(a||g){var C=typeof t=="function"?t.displayName||t.name||"Unknown":t;a&&Ie(e,C),g&&vt(e,C)}return mt(t,a,g,ee,W,Ee.current,e)}}var Le=V.ReactCurrentOwner,Xe=V.ReactDebugCurrentFrame;function Te(t){if(t){var b=t._owner,P=me(t.type,t._source,b?b.type:null);Xe.setExtraStackFrame(P)}else Xe.setExtraStackFrame(null)}var $e;$e=!1;function We(t){return typeof t=="object"&&t!==null&&t.$$typeof===v}function ze(){{if(Le.current){var t=ne(Le.current.type);if(t)return`
|
|
22
|
+
|
|
23
|
+
Check the render method of \``+t+"`."}return""}}function xe(t){return""}var He={};function Ze(t){{var b=ze();if(!b){var P=typeof t=="string"?t:t.displayName||t.name;P&&(b=`
|
|
24
|
+
|
|
25
|
+
Check the top-level render call using <`+P+">.")}return b}}function Oe(t,b){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var P=Ze(b);if(He[P])return;He[P]=!0;var W="";t&&t._owner&&t._owner!==Le.current&&(W=" It was passed a child from "+ne(t._owner.type)+"."),Te(t),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',P,W),Te(null)}}function Ue(t,b){{if(typeof t!="object")return;if(_e(t))for(var P=0;P<t.length;P++){var W=t[P];We(W)&&Oe(W,b)}else if(We(t))t._store&&(t._store.validated=!0);else if(t){var ee=L(t);if(typeof ee=="function"&&ee!==t.entries)for(var ae=ee.call(t),e;!(e=ae.next()).done;)We(e.value)&&Oe(e.value,b)}}}function yt(t){{var b=t.type;if(b==null||typeof b=="string")return;var P;if(typeof b=="function")P=b.propTypes;else if(typeof b=="object"&&(b.$$typeof===f||b.$$typeof===O))P=b.propTypes;else return;if(P){var W=ne(b);ct(P,t.props,"prop",W,t)}else if(b.PropTypes!==void 0&&!$e){$e=!0;var ee=ne(b);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ee||"Unknown")}typeof b.getDefaultProps=="function"&&!b.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qe(t){{for(var b=Object.keys(t.props),P=0;P<b.length;P++){var W=b[P];if(W!=="children"&&W!=="key"){Te(t),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",W),Te(null);break}}t.ref!==null&&(Te(t),_("Invalid attribute `ref` supplied to `React.Fragment`."),Te(null))}}var et={};function Be(t,b,P,W,ee,ae){{var e=q(t);if(!e){var a="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(a+=" 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 g=xe();g?a+=g:a+=ze();var y;t===null?y="null":_e(t)?y="array":t!==void 0&&t.$$typeof===v?(y="<"+(ne(t.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):y=typeof t,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,a)}var C=gt(t,b,P,ee,ae);if(C==null)return C;if(e){var X=b.children;if(X!==void 0)if(W)if(_e(X)){for(var Z=0;Z<X.length;Z++)Ue(X[Z],t);Object.freeze&&Object.freeze(X)}else _("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 Ue(X,t)}if(he.call(b,"key")){var J=ne(t),ie=Object.keys(b).filter(function(ge){return ge!=="key"}),ye=ie.length>0?"{key: someKey, "+ie.join(": ..., ")+": ...}":"{key: someKey}";if(!et[J+ye]){var be=ie.length>0?"{"+ie.join(": ..., ")+": ...}":"{}";_(`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} />`,ye,J,be,J),et[J+ye]=!0}}return t===l?Qe(C):yt(C),C}}function tt(t,b,P){return Be(t,b,P,!0)}function nt(t,b,P){return Be(t,b,P,!1)}var bt=nt,rt=tt;Fe.Fragment=l,Fe.jsx=bt,Fe.jsxs=rt}()),Fe}process.env.NODE_ENV==="production"?at.exports=Lt():at.exports=$t();var r=at.exports,Ot={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Et=F.createContext&&F.createContext(Ot),Wt=["attr","size","title"];function Ut(n,v){if(n==null)return{};var c=Bt(n,v),l,d;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);for(d=0;d<u.length;d++)l=u[d],!(v.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(n,l)&&(c[l]=n[l])}return c}function Bt(n,v){if(n==null)return{};var c={};for(var l in n)if(Object.prototype.hasOwnProperty.call(n,l)){if(v.indexOf(l)>=0)continue;c[l]=n[l]}return c}function Ye(){return Ye=Object.assign?Object.assign.bind():function(n){for(var v=1;v<arguments.length;v++){var c=arguments[v];for(var l in c)Object.prototype.hasOwnProperty.call(c,l)&&(n[l]=c[l])}return n},Ye.apply(this,arguments)}function Tt(n,v){var c=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);v&&(l=l.filter(function(d){return Object.getOwnPropertyDescriptor(n,d).enumerable})),c.push.apply(c,l)}return c}function Ke(n){for(var v=1;v<arguments.length;v++){var c=arguments[v]!=null?arguments[v]:{};v%2?Tt(Object(c),!0).forEach(function(l){Yt(n,l,c[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(c)):Tt(Object(c)).forEach(function(l){Object.defineProperty(n,l,Object.getOwnPropertyDescriptor(c,l))})}return n}function Yt(n,v,c){return v=Kt(v),v in n?Object.defineProperty(n,v,{value:c,enumerable:!0,configurable:!0,writable:!0}):n[v]=c,n}function Kt(n){var v=qt(n,"string");return typeof v=="symbol"?v:v+""}function qt(n,v){if(typeof n!="object"||!n)return n;var c=n[Symbol.toPrimitive];if(c!==void 0){var l=c.call(n,v||"default");if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(v==="string"?String:Number)(n)}function St(n){return n&&n.map((v,c)=>F.createElement(v.tag,Ke({key:c},v.attr),St(v.child)))}function le(n){return v=>F.createElement(Jt,Ye({attr:Ke({},n.attr)},v),St(n.child))}function Jt(n){var v=c=>{var{attr:l,size:d,title:u}=n,s=Ut(n,Wt),h=d||c.size||"1em",f;return c.className&&(f=c.className),n.className&&(f=(f?f+" ":"")+n.className),F.createElement("svg",Ye({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},c.attr,l,s,{className:f,style:Ke(Ke({color:n.color||c.color},c.style),n.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),u&&F.createElement("title",null,u),n.children)};return Et!==void 0?F.createElement(Et.Consumer,null,c=>v(c)):v(Ot)}function Pt(n){return le({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:[]}]})(n)}function Gt(n){return le({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:[]}]})(n)}function Rt(n){return le({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:[]}]})(n)}function Xt(n){return le({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:[]}]})(n)}function Zt(n){return le({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:[]}]})(n)}function Qt(n){return le({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:[]}]})(n)}function en(n){return le({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:[]}]})(n)}function tn(n){return le({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:[]}]})(n)}function Nt(n){return le({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:[]}]})(n)}function nn(n){return le({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:[]}]})(n)}function rn(n){return le({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:[]}]})(n)}function kt(n){return le({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:[]}]})(n)}function it(n){return le({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:[]}]})(n)}function an(n){return le({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:[]}]})(n)}function on(n){return le({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:[]}]})(n)}function Mt(n){return le({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:[]}]})(n)}function ot(n){return le({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:[]}]})(n)}function sn(n){return le({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:[]}]})(n)}function st(n){return le({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:[]}]})(n)}const lt=(n,v)=>{const c=v.filter(l=>l.path===n.path+"/"+n.name);return{...n,children:c.map(l=>lt(l,v))}},ln=({allowCreateFolder:n=!0,allowUploadFile:v=!0,handleRefresh:c,isItemSelection:l,setIsItemSelection:d,currentPath:u,selectedFile:s,setSelectedFile:h,files:f,clipBoard:o,setClipBoard:p,handlePaste:O,triggerAction:j})=>{const[D,A]=F.useState([{icon:r.jsx(Gt,{size:17,strokeWidth:.3}),text:"New Folder",permission:n,onClick:()=>j.show("createFolder")},{icon:r.jsx(nn,{size:18}),text:"Upload File",permission:v,onClick:()=>j.show("uploadFile")},{icon:r.jsx(st,{size:18}),text:"Paste",permission:!1,onClick:()=>{}}]),T=[{icon:r.jsx(Xt,{size:16}),title:"Refresh",onClick:c}],L=(_,I,R)=>{const x=R.files[0],S=_.filter(k=>{const $=k.path===x.path&&k.name===x.name,te=k.path.startsWith(x.path+"/"+x.name);return $||te});O(_,I,R,S),R.isMoving&&p(null),d(!1),h(null)};F.useEffect(()=>{A(_=>_.map(I=>I.text==="Paste"?{...I,permission:!!o,onClick:()=>L(f,u,o)}:I))},[o,u,f]);const V=_=>{p({files:[{...lt(s,f)}],isMoving:_})};if(l){const _=s.path+"/"+s.name;return r.jsx("div",{className:"toolbar file-selected",children:r.jsxs("div",{className:"file-action-container",children:[r.jsxs("div",{children:[r.jsxs("button",{className:"item-action file-action",onClick:()=>V(!0),children:[r.jsx(Rt,{size:18}),r.jsx("span",{children:"Cut"})]}),r.jsxs("button",{className:"item-action file-action",onClick:()=>V(!1),children:[r.jsx(Pt,{strokeWidth:.1,size:17}),r.jsx("span",{children:"Copy"})]}),s.isDirectory?r.jsxs("button",{className:"item-action file-action",onClick:()=>L(f,_,o),disabled:!o,children:[r.jsx(st,{size:18}),r.jsx("span",{children:"Paste"})]}):r.jsx(r.Fragment,{}),r.jsxs("button",{className:"item-action file-action",onClick:()=>j.show("rename"),children:[r.jsx(kt,{size:19}),r.jsx("span",{children:"Rename"})]}),r.jsxs("button",{className:"item-action file-action",onClick:()=>j.show("delete"),children:[r.jsx(Nt,{size:19}),r.jsx("span",{children:"Delete"})]})]}),r.jsxs("button",{className:"item-action file-action",onClick:()=>d(!1),children:[r.jsx(Qt,{size:18}),r.jsx("span",{children:"Clear Selection"})]})]})})}return r.jsx("div",{className:"toolbar",children:r.jsxs("div",{className:"fm-toolbar",children:[r.jsx("div",{children:D.filter(_=>_.permission).map((_,I)=>r.jsxs("button",{className:"item-action",onClick:_.onClick,children:[_.icon,r.jsx("span",{children:_.text})]},I))}),r.jsx("div",{children:T.map((_,I)=>r.jsxs("div",{className:"toolbar-left-items",children:[r.jsx("div",{className:"item-action icon-only",title:_.title,role:"button",onClick:_.onClick,children:_.icon}),I!==T.length-1&&r.jsx("div",{className:"item-separator"})]},I))})]})})};var _t={exports:{}};(function(n,v){(function(c,l){n.exports=l(F)})(xt,function(c){return function(l){var d={};function u(s){if(d[s])return d[s].exports;var h=d[s]={i:s,l:!1,exports:{}};return l[s].call(h.exports,h,h.exports,u),h.l=!0,h.exports}return u.m=l,u.c=d,u.d=function(s,h,f){u.o(s,h)||Object.defineProperty(s,h,{enumerable:!0,get:f})},u.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},u.t=function(s,h){if(1&h&&(s=u(s)),8&h||4&h&&typeof s=="object"&&s&&s.__esModule)return s;var f=Object.create(null);if(u.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:s}),2&h&&typeof s!="string")for(var o in s)u.d(f,o,(function(p){return s[p]}).bind(null,o));return f},u.n=function(s){var h=s&&s.__esModule?function(){return s.default}:function(){return s};return u.d(h,"a",h),h},u.o=function(s,h){return Object.prototype.hasOwnProperty.call(s,h)},u.p="",u(u.s=4)}([function(l,d,u){l.exports=u(2)()},function(l,d){l.exports=c},function(l,d,u){var s=u(3);function h(){}function f(){}f.resetWarningCache=h,l.exports=function(){function o(j,D,A,T,L,V){if(V!==s){var _=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 _.name="Invariant Violation",_}}function p(){return o}o.isRequired=o;var O={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:p,element:o,elementType:o,instanceOf:p,node:o,objectOf:p,oneOf:p,oneOfType:p,shape:p,exact:p,checkPropTypes:f,resetWarningCache:h};return O.PropTypes=O,O}},function(l,d,u){l.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(l,d,u){u.r(d);var s=u(1),h=u.n(s),f=u(0),o=u.n(f),p=function(x){return x!==0};function O(){return(O=Object.assign?Object.assign.bind():function(x){for(var S=1;S<arguments.length;S++){var k=arguments[S];for(var $ in k)Object.prototype.hasOwnProperty.call(k,$)&&(x[$]=k[$])}return x}).apply(this,arguments)}function j(x){return(j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S})(x)}function D(x,S){for(var k=0;k<S.length;k++){var $=S[k];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(x,$.key,$)}}function A(x,S){return(A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(k,$){return k.__proto__=$,k})(x,S)}function T(x){var S=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 k,$=_(x);if(S){var te=_(this).constructor;k=Reflect.construct($,arguments,te)}else k=$.apply(this,arguments);return L(this,k)}}function L(x,S){if(S&&(j(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V(x)}function V(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function _(x){return(_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(S){return S.__proto__||Object.getPrototypeOf(S)})(x)}function I(x,S,k){return S in x?Object.defineProperty(x,S,{value:k,enumerable:!0,configurable:!0,writable:!0}):x[S]=k,x}var R=function(x){(function(q,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(N&&N.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),N&&A(q,N)})(te,x);var S,k,$=T(te);function te(q){var N;return function(Q,ne){if(!(Q instanceof ne))throw new TypeError("Cannot call a class as a function")}(this,te),I(V(N=$.call(this,q)),"continueOpenCollapsible",function(){var Q=V(N).innerRef;N.setState({height:Q.scrollHeight,transition:"height ".concat(N.props.transitionTime,"ms ").concat(N.props.easing),isClosed:!1,hasBeenOpened:!0,inTransition:p(Q.scrollHeight),shouldOpenOnNextCycle:!1})}),I(V(N),"handleTriggerClick",function(Q){N.props.triggerDisabled||N.state.inTransition||(Q.preventDefault(),N.props.handleTriggerClick?N.props.handleTriggerClick(N.props.accordionPosition):N.state.isClosed===!0?(N.openCollapsible(),N.props.onOpening(),N.props.onTriggerOpening()):(N.closeCollapsible(),N.props.onClosing(),N.props.onTriggerClosing()))}),I(V(N),"handleTransitionEnd",function(Q){Q.target===N.innerRef&&(N.state.isClosed?(N.setState({inTransition:!1}),N.props.onClose()):(N.setState({height:"auto",overflow:N.props.overflowWhenOpen,inTransition:!1}),N.props.onOpen()))}),I(V(N),"setInnerRef",function(Q){return N.innerRef=Q}),N.timeout=void 0,N.contentId=q.contentElementId||"collapsible-content-".concat(Date.now()),N.triggerId=q.triggerElementProps.id||"collapsible-trigger-".concat(Date.now()),q.open?N.state={isClosed:!1,shouldSwitchAutoOnNextCycle:!1,height:"auto",transition:"none",hasBeenOpened:!0,overflow:q.overflowWhenOpen,inTransition:!1}:N.state={isClosed:!0,shouldSwitchAutoOnNextCycle:!1,height:0,transition:"height ".concat(q.transitionTime,"ms ").concat(q.easing),hasBeenOpened:!1,overflow:"hidden",inTransition:!1},N}return S=te,(k=[{key:"componentDidUpdate",value:function(q,N){var Q=this;this.state.shouldOpenOnNextCycle&&this.continueOpenCollapsible(),N.height!=="auto"&&N.height!==0||this.state.shouldSwitchAutoOnNextCycle!==!0||(window.clearTimeout(this.timeout),this.timeout=window.setTimeout(function(){Q.setState({height:0,overflow:"hidden",isClosed:!0,shouldSwitchAutoOnNextCycle:!1})},50)),q.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 q=this.innerRef;this.setState({shouldSwitchAutoOnNextCycle:!0,height:q.scrollHeight,transition:"height ".concat(this.props.transitionCloseTime?this.props.transitionCloseTime:this.props.transitionTime,"ms ").concat(this.props.easing),inTransition:p(q.scrollHeight)})}},{key:"openCollapsible",value:function(){this.setState({inTransition:p(this.innerRef.scrollHeight),shouldOpenOnNextCycle:!0})}},{key:"renderNonClickableTriggerElement",value:function(){var q=this.props,N=q.triggerSibling,Q=q.classParentString;if(!N)return null;switch(j(N)){case"string":return h.a.createElement("span",{className:"".concat(Q,"__trigger-sibling")},N);case"function":return N();case"object":return N;default:return null}}},{key:"render",value:function(){var q=this,N={height:this.state.height,WebkitTransition:this.state.transition,msTransition:this.state.transition,transition:this.state.transition,overflow:this.state.overflow},Q=this.state.isClosed?"is-closed":"is-open",ne=this.props.triggerDisabled?"is-disabled":"",oe=this.state.isClosed===!1&&this.props.triggerWhenOpen!==void 0?this.props.triggerWhenOpen:this.props.trigger,de=this.props.contentContainerTagName,ce=this.props.triggerTagName,ve=this.props.lazyRender&&!this.state.hasBeenOpened&&this.state.isClosed&&!this.state.inTransition?null:this.props.children,ue=this.props,G=ue.classParentString,fe=ue.contentOuterClassName,pe=ue.contentInnerClassName,w="".concat(G,"__trigger ").concat(Q," ").concat(ne," ").concat(this.state.isClosed?this.props.triggerClassName:this.props.triggerOpenedClassName),z="".concat(G," ").concat(this.state.isClosed?this.props.className:this.props.openedClassName),Y="".concat(G,"__contentOuter ").concat(fe),K="".concat(G,"__contentInner ").concat(pe);return h.a.createElement(de,O({className:z.trim()},this.props.containerElementProps),h.a.createElement(ce,O({id:this.triggerId,className:w.trim(),onClick:this.handleTriggerClick,style:this.props.triggerStyle&&this.props.triggerStyle,onKeyPress:function(B){var i=B.key;(i===" "&&q.props.triggerTagName.toLowerCase()!=="button"||i==="Enter")&&q.handleTriggerClick(B)},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),oe),this.renderNonClickableTriggerElement(),h.a.createElement("div",{id:this.contentId,className:Y.trim(),style:N,onTransitionEnd:this.handleTransitionEnd,ref:this.setInnerRef,hidden:this.props.contentHiddenWhenClosed&&this.state.isClosed&&!this.state.inTransition,role:"region","aria-labelledby":this.triggerId},h.a.createElement("div",{className:K.trim()},ve)))}}])&&D(S.prototype,k),Object.defineProperty(S,"prototype",{writable:!1}),te}(s.Component);R.propTypes={transitionTime:o.a.number,transitionCloseTime:o.a.number,triggerTagName:o.a.string,easing:o.a.string,open:o.a.bool,containerElementProps:o.a.object,triggerElementProps:o.a.object,contentElementId:o.a.string,classParentString:o.a.string,className:o.a.string,openedClassName:o.a.string,triggerStyle:o.a.object,triggerClassName:o.a.string,triggerOpenedClassName:o.a.string,contentOuterClassName:o.a.string,contentInnerClassName:o.a.string,accordionPosition:o.a.oneOfType([o.a.string,o.a.number]),handleTriggerClick:o.a.func,onOpen:o.a.func,onClose:o.a.func,onOpening:o.a.func,onClosing:o.a.func,onTriggerOpening:o.a.func,onTriggerClosing:o.a.func,trigger:o.a.oneOfType([o.a.string,o.a.element]),triggerWhenOpen:o.a.oneOfType([o.a.string,o.a.element]),triggerDisabled:o.a.bool,lazyRender:o.a.bool,overflowWhenOpen:o.a.oneOf(["hidden","visible","auto","scroll","inherit","initial","unset"]),contentHiddenWhenClosed:o.a.bool,triggerSibling:o.a.oneOfType([o.a.string,o.a.element,o.a.func]),tabIndex:o.a.number,contentContainerTagName:o.a.string,children:o.a.oneOfType([o.a.string,o.a.element])},R.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=R}])})})(_t);var cn=_t.exports;const un=jt(cn);function At(n){return le({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:[]}]})(n)}function Vt(n){return le({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:[]}]})(n)}const zt=({folder:n,setCurrentPath:v,currentPath:c})=>{const[l,d]=F.useState(!1),[u,s]=F.useState(!1),h=`${n.path}/${n.name}`,f=()=>{s(!0),v(h)},o=p=>{p.stopPropagation(),d(O=>!O)};return F.useEffect(()=>{s(c===h);const p=c.split("/");p.pop(),p.join("/")===h&&d(!0)},[c]),n.subDirectories?r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:`sb-folders-list-item ${u?"active-list-item":""}`,onClick:f,children:[r.jsx("span",{onClick:o,children:r.jsx(en,{size:20,className:`${l?"folder-rotate-down":"folder-rotate-right"}`})}),r.jsxs("div",{className:"sb-folder-details",children:[l||u?r.jsx(At,{size:20,className:"folder-open-icon"}):r.jsx(Vt,{size:17,className:"folder-close-icon"}),r.jsx("span",{className:"sb-folder-name",title:n.name,children:n.name})]})]}),r.jsx(un,{open:l,children:r.jsx("div",{className:"folder-collapsible",children:n.subDirectories.map((p,O)=>r.jsx(zt,{folder:p,setCurrentPath:v,currentPath:c},O))})})]}):r.jsxs("div",{className:`sb-folders-list-item ${u?"active-list-item":""}`,onClick:f,children:[r.jsx("span",{className:"non-expanable"}),r.jsxs("div",{className:"sb-folder-details",children:[u?r.jsx(At,{size:20,className:"folder-open-icon"}):r.jsx(Vt,{size:17,className:"folder-close-icon"}),r.jsx("span",{className:"sb-folder-name",title:n.name,children:n.name})]})]})},fn=({files:n,currentPath:v,setCurrentPath:c})=>{const[l,d]=F.useState([]),u=(s,h)=>{var o;var f=s.path+"/"+s.name;return h[f]?(o=h[f])==null?void 0:o.map(p=>({...p,subDirectories:u(p,h)})):null};return F.useEffect(()=>{const s=n.filter(f=>f.isDirectory),h=Object.groupBy(s,({path:f})=>f);d(()=>{var f;return s.length>0?(f=h[""])==null?void 0:f.map(o=>({...o,subDirectories:u(o,h)})):[]})},[n]),r.jsx("div",{className:"sb-folders-list",children:(l==null?void 0:l.length)>0?r.jsx(r.Fragment,{children:l==null?void 0:l.map((s,h)=>r.jsx(zt,{folder:s,setCurrentPath:c,currentPath:v},h))}):r.jsx("div",{className:"empty-nav-pane",children:"Nothing here yet"})})},dn=({currentPath:n,setCurrentPath:v})=>{const[c,l]=F.useState([]);F.useEffect(()=>{l(n==null?void 0:n.split("/"))},[n]);const d=u=>{u<c.length-1&&v(()=>{const s=c.length-(u+1);return c.slice(0,-s).join("/")})};return r.jsx("div",{className:"breadcrumb",children:c.map((u,s)=>r.jsx("span",{className:"folder-name",onClick:()=>d(s),children:s===0?r.jsxs(r.Fragment,{children:[r.jsx(Zt,{})," Home"]}):r.jsxs(r.Fragment,{children:[r.jsx(rn,{})," ",u]})},s))})};function pn(n){return le({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:[]}]})(n)}const hn=({children:n,contextMenuRef:v,content:c,visible:l,setVisible:d})=>{const[u,s]=F.useState(0),[h,f]=F.useState(0),o=p=>{p.preventDefault(),d(!0);const O=p.clientX,j=p.clientY,D=window.innerWidth,A=window.innerHeight,T=112,L=82,V=D-O>T,_=!V,I=A-j>L,R=!I;V?s(`${O+5}px`):_&&s(`${O-T-5}px`),I?f(`${j+5}px`):R&&f(`${j-L-5}px`)};return r.jsxs("div",{onContextMenu:o,onClick:p=>d(!1),children:[n,l&&r.jsx("div",{ref:v,className:"fm-context-menu",style:{top:h,left:u},children:c})]})},vn=n=>{const v=F.useRef(null),c=l=>{var d;(d=v.current)!=null&&d.contains(l.target)||n()};return F.useEffect(()=>(document.addEventListener("mousedown",c,!0),()=>{document.removeEventListener("mousedown",c,!0)}),[]),v},Ht=n=>({pdf:r.jsx(on,{size:n}),jpg:r.jsx(it,{size:n}),jpeg:r.jsx(it,{size:n}),png:r.jsx(it,{size:n}),txt:r.jsx(an,{size:n}),doc:r.jsx(Mt,{size:n}),docx:r.jsx(Mt,{size:n})}),mn=({file:n,index:v,selectedFileIndex:c,setSelectedFileIndex:l,setCurrentPath:d,isItemSelection:u,setIsItemSelection:s,setSelectedFile:h,currentPath:f,clipBoard:o,setClipBoard:p,handlePaste:O,files:j,triggerAction:D})=>{var ve,ue;const A=Ht(48),[T,L]=F.useState(!1),[V,_]=F.useState(!1),[I,R]=F.useState(0),[x,S]=F.useState(!1),k=(o==null?void 0:o.isMoving)&&o.files.find(G=>G.name===n.name&&G.path===n.path),$=vn(()=>{L(!1)}),te=(G,fe)=>{G.stopPropagation(),p({files:[{...lt(n,j)}],isMoving:fe}),L(!1)},q=G=>{if(G.stopPropagation(),o){const fe=n.path+"/"+n.name,pe=o.files[0],w=j.filter(z=>{const Y=z.path===pe.path&&z.name===pe.name,K=z.path.startsWith(pe.path+"/"+pe.name);return Y||K});O(j,fe,o,w),o.isMoving&&p(null),s(!1),h(null),L(!1)}},N=G=>{G.stopPropagation(),L(!1),D.show("rename")},Q=G=>{G.stopPropagation(),L(!1),D.show("delete")},ne=()=>{L(!1),n.isDirectory?(d(G=>G+"/"+n.name),l(null)):S(!0)},oe=G=>{G.stopPropagation(),s(!0),h(n),l(v);const fe=new Date().getTime();fe-I<300&&(s(!1),ne()),R(fe)},de=G=>{G.key==="Enter"&&ne()};F.useEffect(()=>{_(c===v)},[c]),F.useEffect(()=>{c===v&&_(u)},[u]);const ce=r.jsx("div",{className:"file-context-menu-list",children:r.jsxs("ul",{children:[r.jsxs("li",{onClick:ne,children:[n.isDirectory?r.jsx(pn,{size:20}):r.jsx(ot,{size:16}),r.jsx("span",{children:"Open"})]}),r.jsxs("li",{onClick:G=>te(G,!0),children:[r.jsx(Rt,{size:19}),r.jsx("span",{children:"Cut"})]}),r.jsxs("li",{onClick:G=>te(G,!1),children:[r.jsx(Pt,{strokeWidth:.1,size:17}),r.jsx("span",{children:"Copy"})]}),n.isDirectory?r.jsxs("li",{onClick:q,className:`${o?"":"disable-paste"}`,children:[r.jsx(st,{size:18}),r.jsx("span",{children:"Paste"})]}):r.jsx(r.Fragment,{}),r.jsxs("li",{onClick:N,children:[r.jsx(kt,{size:19}),r.jsx("span",{children:"Rename"})]}),r.jsxs("li",{onClick:Q,children:[r.jsx(Nt,{size:19}),r.jsx("span",{children:"Delete"})]})]})});return r.jsx(r.Fragment,{children:r.jsx(hn,{contextMenuRef:$,visible:T,setVisible:L,content:ce,children:r.jsxs("div",{className:`file-item ${V?"background-secondary text-white":""} ${k?"file-moving":""}`,title:n.name,onClick:oe,onKeyUp:de,onContextMenu:()=>{s(!0),h(n),l(v)},tabIndex:0,children:[n.isDirectory?r.jsx(sn,{size:48}):r.jsx(r.Fragment,{children:A[(ue=(ve=n.name)==null?void 0:ve.split(".").pop())==null?void 0:ue.toLowerCase()]??r.jsx(ot,{size:48})}),r.jsx("span",{className:"text-truncate file-name",children:n.name})]})})})},gn=({currentPathFiles:n,setCurrentPath:v,isItemSelection:c,setIsItemSelection:l,setSelectedFile:d,currentPath:u,clipBoard:s,setClipBoard:h,handlePaste:f,files:o,triggerAction:p})=>{const[O,j]=F.useState(null);return F.useEffect(()=>{j(null),l(!1),d(null)},[u]),r.jsx("div",{className:"files",onClick:D=>{j(null),l(!1),d(null)},children:(n==null?void 0:n.length)>0?r.jsx(r.Fragment,{children:n.map((D,A)=>r.jsx(mn,{file:D,index:A,selectedFileIndex:O,setSelectedFileIndex:j,setCurrentPath:v,isItemSelection:c,setIsItemSelection:l,setSelectedFile:d,currentPath:u,clipBoard:s,setClipBoard:h,handlePaste:f,files:o,triggerAction:p},A))}):r.jsx("div",{className:"empty-folder",children:"This folder is empty."})})},yn=()=>{const[n,v]=F.useState(!1),[c,l]=F.useState(null);return{isActive:n,actionType:c,show:s=>{v(!0),l(s)},close:()=>{v(!1),l(null)}}},bn=({children:n,show:v,setShow:c,heading:l,dialogWidth:d="25%",contentClassName:u=""})=>{const s=F.useRef(null);return F.useEffect(()=>{v?s.current.showModal():s.current.close()},[v]),r.jsxs("dialog",{ref:s,className:"fm-modal dialog",style:{width:d},children:[r.jsxs("div",{className:"fm-modal-header",children:[r.jsx("span",{className:"fm-modal-heading",children:l}),r.jsx(tn,{size:18,onClick:()=>c(!1),className:"close-icon",title:"Close"})]}),n]})},Pe=({onClick:n,type:v="primary",padding:c="0.4rem 0.8rem",children:l})=>r.jsx("button",{onClick:n,className:`fm-button fm-button-${v}`,style:{padding:c},children:l}),xn=({files:n,currentPath:v,currentPathFiles:c,handleCreateFolder:l,triggerAction:d})=>{const[u,s]=F.useState("New Folder"),[h,f]=F.useState(!1),[o,p]=F.useState(""),O=T=>{s(T.target.value),f(!1)},j=T=>{/[\\/:*?"<>|]/.test(T.key)?(T.preventDefault(),p(`A file name can't contain any of the following characters: \\ / : * ? " < > |`),f(!0)):f(!1)},D=()=>{const T=u.trim();T===""?(p("Folder name cannot be empty."),f(!0)):c.find(V=>V.name.toLowerCase()===T.toLowerCase())?(p(`A folder with the name "${T}" already exits.`),f(!0)):(l(n,T,v),d.close())},A=F.useRef(null);return F.useEffect(()=>{A.current.focus(),A.current.select()},[]),r.jsxs("div",{className:"fm-create-folder-container",children:[r.jsxs("div",{className:"fm-create-folder-input",children:[r.jsx("input",{ref:A,type:"text",value:u,onChange:O,onKeyDown:j,className:"action-input"}),h&&r.jsx("div",{className:"folder-error",children:o})]}),r.jsx("div",{className:"fm-create-folder-action",children:r.jsx(Pe,{onClick:D,type:"primary",children:"Create"})})]})};function jn(n){return le({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:[]}]})(n)}const wn=({files:n,selectedFile:v,currentPathFiles:c,handleRename:l,triggerAction:d,setSelectedFile:u})=>{const[s,h]=F.useState(v==null?void 0:v.name),f=F.useRef(null),[o,p]=F.useState(!1),[O,j]=F.useState(!1),[D,A]=F.useState("");F.useEffect(()=>{var V,_,I;if(v)if((V=f==null?void 0:f.current)==null||V.focus(),v.isDirectory)(_=f==null?void 0:f.current)==null||_.select();else{const R=v.name.split(".").pop(),x=v.name.length-R.length-1;(I=f==null?void 0:f.current)==null||I.setSelectionRange(0,x)}else p(!1)},[]);const T=V=>{/[\\/:*?"<>|]/.test(V.key)?(V.preventDefault(),A(`A file name can't contain any of the following characters: \\ / : * ? " < > |`),j(!0)):j(!1)},L=(V,_)=>{if(s===""){j(!0),A(`${v.isDirectory?"Folder":"File"} name is required!`);return}else if(s===v.name){d.close();return}else if(c.some(I=>I.name===s)){j(!0),A("A file or folder with the same name already exists!");return}else if(!v.isDirectory&&!_){const I=v.name.split(".").pop(),R=s.split(".").pop();if(I!==R){p(!0);return}}l(n,v,s),u(I=>({...I,name:s})),d.close()};return r.jsx(r.Fragment,{children:o?r.jsxs("div",{className:"fm-rename-folder-container",children:[r.jsx("div",{className:"fm-rename-folder-input",children:r.jsxs("div",{className:"fm-rename-warning",children:[r.jsx(jn,{size:70,color:"orange"}),r.jsx("div",{children:"If you change a file name extension, the file might become unusable. Are you sure you want to change it?"})]})}),r.jsxs("div",{className:"fm-rename-folder-action",children:[r.jsx(Pe,{type:"secondary",onClick:()=>p(!1),children:"No"}),r.jsx(Pe,{type:"danger",onClick:V=>L(V,!0),children:"Yes"})]})]}):r.jsxs("div",{className:"fm-rename-folder-container",children:[r.jsxs("div",{className:"fm-rename-folder-input",children:[r.jsx("input",{ref:f,type:"text",value:s,onChange:V=>{h(V.target.value),j(!1)},onKeyDown:T,className:"action-input"}),O&&r.jsx("div",{className:"folder-error",children:D})]}),r.jsx("div",{className:"fm-rename-folder-action",children:r.jsx(Pe,{onClick:L,type:"primary",children:"Save"})})]})})},Cn=({files:n,selectedFile:v,triggerAction:c,handleDelete:l,setIsItemSelection:d,setSelectedFile:u})=>{const s=h=>{l(n,h),d(!1),u(null),c.close()};return r.jsxs("div",{className:"file-delete-confirm",children:[r.jsxs("p",{className:"file-delete-confirm-text",children:['Are you sure you want to delete "',v==null?void 0:v.name,'"?']}),r.jsxs("div",{className:"file-delete-confirm-actions",children:[r.jsx(Pe,{type:"secondary",onClick:()=>c.close(),children:"Cancel"}),r.jsx(Pe,{type:"danger",onClick:()=>s(v),children:"Delete"})]})]})};function On(n){return le({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:[]}]})(n)}function En(n){return le({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:[]}]})(n)}const Tn=n=>n.split(".").pop(),Sn=({percent:n=0})=>r.jsxs("div",{role:"progressbar",className:"fm-progress",children:[r.jsx("div",{className:"fm-progress-bar",children:r.jsx("div",{className:"fm-progress-bar-fill",style:{width:`${n}%`}})}),r.jsxs("div",{className:"fm-progress-status",children:[n,"% done"]})]}),Pn=({onFilesSelected:n,allowedFileExtensions:v})=>{const[c,l]=F.useState([]),[d,u]=F.useState(!1),s=Ht(33),h=o=>{o.preventDefault(),u(!1);const p=o.dataTransfer.files;p.length>0&&l(O=>[...O,...p])},f=o=>{const p=o.target.files;p.length>0&&l(O=>[...O,...p])};return r.jsxs("div",{className:`fm-upload-file ${c.length>0?"file-selcted":""}`,children:[r.jsxs("div",{className:"select-files",children:[r.jsx("div",{className:`draggable-file-input ${d?"dragging":""}`,onDrop:h,onDragOver:o=>o.preventDefault(),onDragEnter:()=>u(!0),onDragLeave:()=>u(!1),children:r.jsxs("div",{className:"input-text",children:[r.jsx(En,{size:30}),r.jsx("span",{children:"Drag files to upload"})]})}),r.jsx("div",{className:"btn-choose-file",children:r.jsxs(Pe,{padding:"0",children:[r.jsx("label",{htmlFor:"chooseFile",children:"Choose File"}),r.jsx("input",{type:"file",id:"chooseFile",className:"choose-file-input",onChange:f,multiple:!0,accept:v})]})})]}),c.length>0&&r.jsxs("div",{className:"files-progress",children:[r.jsx("h2",{children:"Uploading"}),r.jsx("ul",{children:c.map((o,p)=>r.jsxs("li",{children:[r.jsx("div",{className:"file-icon",children:s[Tn(o.name)]??r.jsx(ot,{size:33})}),r.jsxs("div",{className:"file",children:[r.jsxs("div",{className:"file-details",children:[r.jsxs("div",{className:"file-info",children:[r.jsx("span",{className:"file-name text-truncate",title:o.name,children:o.name}),r.jsxs("span",{className:"file-size",children:[" ",o.size/1e3," KB"]})]}),r.jsx("div",{className:"rm-file",title:"remove",children:r.jsx(On,{})})]}),r.jsx(Sn,{percent:20})]})]},p))})]})]})},Rn=({files:n,triggerAction:v,currentPath:c,currentPathFiles:l,selectedFile:d,setSelectedFile:u,handleCreateFolder:s,handleRename:h,setIsItemSelection:f,handleDelete:o,allowedFileExtensions:p})=>{const[O,j]=F.useState(null),D={createFolder:{title:"Create Folder",component:r.jsx(xn,{files:n,currentPath:c,currentPathFiles:l,triggerAction:v,handleCreateFolder:s}),width:"25%"},uploadFile:{title:"Upload File",component:r.jsx(Pn,{allowedFileExtensions:p}),width:"35%"},rename:{title:"Rename",component:r.jsx(wn,{files:n,selectedFile:d,currentPathFiles:l,triggerAction:v,handleRename:h,setSelectedFile:u}),width:"25%"},delete:{title:"Delete",component:r.jsx(Cn,{files:n,selectedFile:d,triggerAction:v,handleDelete:o,setIsItemSelection:f,setSelectedFile:u}),width:"25%"},preview:{title:"Preview"}};return F.useEffect(()=>{if(v.isActive){const A=v.actionType;j(D[A])}else j(null)},[v.isActive]),r.jsx(bn,{heading:O==null?void 0:O.title,show:v.isActive,setShow:v.close,dialogWidth:O==null?void 0:O.width,children:O==null?void 0:O.component})};var Dt={exports:{}};(function(n,v){(function(l,d){n.exports=d()})(typeof self<"u"?self:xt,function(){return function(c){var l={};function d(u){if(l[u])return l[u].exports;var s=l[u]={i:u,l:!1,exports:{}};return c[u].call(s.exports,s,s.exports,d),s.l=!0,s.exports}return d.m=c,d.c=l,d.d=function(u,s,h){d.o(u,s)||Object.defineProperty(u,s,{configurable:!1,enumerable:!0,get:h})},d.n=function(u){var s=u&&u.__esModule?function(){return u.default}:function(){return u};return d.d(s,"a",s),s},d.o=function(u,s){return Object.prototype.hasOwnProperty.call(u,s)},d.p="/",d(d.s=7)}([function(c,l,d){var u=function(f){};process.env.NODE_ENV!=="production"&&(u=function(f){if(f===void 0)throw new Error("invariant requires an error message argument")});function s(h,f,o,p,O,j,D,A){if(u(f),!h){var T;if(f===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 L=[o,p,O,j,D,A],V=0;T=new Error(f.replace(/%s/g,function(){return L[V++]})),T.name="Invariant Violation"}throw T.framesToPop=1,T}}c.exports=s},function(c,l,d){function u(h){return function(){return h}}var s=function(){};s.thatReturns=u,s.thatReturnsFalse=u(!1),s.thatReturnsTrue=u(!0),s.thatReturnsNull=u(null),s.thatReturnsThis=function(){return this},s.thatReturnsArgument=function(h){return h},c.exports=s},function(c,l,d){/*
|
|
31
|
+
object-assign
|
|
32
|
+
(c) Sindre Sorhus
|
|
33
|
+
@license MIT
|
|
34
|
+
*/var u=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;function f(p){if(p==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(p)}function o(){try{if(!Object.assign)return!1;var p=new String("abc");if(p[5]="de",Object.getOwnPropertyNames(p)[0]==="5")return!1;for(var O={},j=0;j<10;j++)O["_"+String.fromCharCode(j)]=j;var D=Object.getOwnPropertyNames(O).map(function(T){return O[T]});if(D.join("")!=="0123456789")return!1;var A={};return"abcdefghijklmnopqrst".split("").forEach(function(T){A[T]=T}),Object.keys(Object.assign({},A)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}c.exports=o()?Object.assign:function(p,O){for(var j,D=f(p),A,T=1;T<arguments.length;T++){j=Object(arguments[T]);for(var L in j)s.call(j,L)&&(D[L]=j[L]);if(u){A=u(j);for(var V=0;V<A.length;V++)h.call(j,A[V])&&(D[A[V]]=j[A[V]])}}return D}},function(c,l,d){var u=d(1),s=u;if(process.env.NODE_ENV!=="production"){var h=function(o){for(var p=arguments.length,O=Array(p>1?p-1:0),j=1;j<p;j++)O[j-1]=arguments[j];var D=0,A="Warning: "+o.replace(/%s/g,function(){return O[D++]});typeof console<"u"&&console.error(A);try{throw new Error(A)}catch{}};s=function(o,p){if(p===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(p.indexOf("Failed Composite propType: ")!==0&&!o){for(var O=arguments.length,j=Array(O>2?O-2:0),D=2;D<O;D++)j[D-2]=arguments[D];h.apply(void 0,[p].concat(j))}}}c.exports=s},function(c,l,d){var u="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";c.exports=u},function(c,l,d){var u={};process.env.NODE_ENV!=="production"&&Object.freeze(u),c.exports=u},function(c,l,d){if(process.env.NODE_ENV!=="production")var u=d(0),s=d(3),h=d(4),f={};function o(p,O,j,D,A){if(process.env.NODE_ENV!=="production"){for(var T in p)if(p.hasOwnProperty(T)){var L;try{u(typeof p[T]=="function","%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",D||"React class",j,T,typeof p[T]),L=p[T](O,T,D,j,null,h)}catch(_){L=_}if(s(!L||L 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).",D||"React class",j,T,typeof L),L instanceof Error&&!(L.message in f)){f[L.message]=!0;var V=A?A():"";s(!1,"Failed %s type: %s%s",j,L.message,V??"")}}}}c.exports=o},function(c,l,d){Object.defineProperty(l,"__esModule",{value:!0});var u=Object.assign||function(R){for(var x=1;x<arguments.length;x++){var S=arguments[x];for(var k in S)Object.prototype.hasOwnProperty.call(S,k)&&(R[k]=S[k])}return R},s=function(){function R(x,S){for(var k=0;k<S.length;k++){var $=S[k];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(x,$.key,$)}}return function(x,S,k){return S&&R(x.prototype,S),k&&R(x,k),x}}(),h=d(8),f=A(h),o=d(11),p=A(o),O=d(14),j=D(O);function D(R){if(R&&R.__esModule)return R;var x={};if(R!=null)for(var S in R)Object.prototype.hasOwnProperty.call(R,S)&&(x[S]=R[S]);return x.default=R,x}function A(R){return R&&R.__esModule?R:{default:R}}function T(R,x){var S={};for(var k in R)x.indexOf(k)>=0||Object.prototype.hasOwnProperty.call(R,k)&&(S[k]=R[k]);return S}function L(R,x){if(!(R instanceof x))throw new TypeError("Cannot call a class as a function")}function V(R,x){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:R}function _(R,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);R.prototype=Object.create(x&&x.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(R,x):R.__proto__=x)}var I=function(R){_(x,R);function x(){var S,k,$,te;L(this,x);for(var q=arguments.length,N=Array(q),Q=0;Q<q;Q++)N[Q]=arguments[Q];return te=(k=($=V(this,(S=x.__proto__||Object.getPrototypeOf(x)).call.apply(S,[this].concat(N))),$),$.state={delayed:$.props.delay>0},k),V($,te)}return s(x,[{key:"componentDidMount",value:function(){var k=this,$=this.props.delay,te=this.state.delayed;te&&(this.timeout=setTimeout(function(){k.setState({delayed:!1})},$))}},{key:"componentWillUnmount",value:function(){var k=this.timeout;k&&clearTimeout(k)}},{key:"render",value:function(){var k=this.props,$=k.color;k.delay;var te=k.type,q=k.height,N=k.width,Q=T(k,["color","delay","type","height","width"]),ne=this.state.delayed?"blank":te,oe=j[ne],de={fill:$,height:q,width:N};return f.default.createElement("div",u({style:de,dangerouslySetInnerHTML:{__html:oe}},Q))}}]),x}(h.Component);I.propTypes={color:p.default.string,delay:p.default.number,type:p.default.string,height:p.default.oneOfType([p.default.string,p.default.number]),width:p.default.oneOfType([p.default.string,p.default.number])},I.defaultProps={color:"#fff",delay:0,type:"balls",height:64,width:64},l.default=I},function(c,l,d){process.env.NODE_ENV==="production"?c.exports=d(9):c.exports=d(10)},function(c,l,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 u=d(2),s=d(0),h=d(5),f=d(1),o=typeof Symbol=="function"&&Symbol.for,p=o?Symbol.for("react.element"):60103,O=o?Symbol.for("react.portal"):60106,j=o?Symbol.for("react.fragment"):60107,D=o?Symbol.for("react.strict_mode"):60108,A=o?Symbol.for("react.provider"):60109,T=o?Symbol.for("react.context"):60110,L=o?Symbol.for("react.async_mode"):60111,V=o?Symbol.for("react.forward_ref"):60112,_=typeof Symbol=="function"&&Symbol.iterator;function I(i){for(var m=arguments.length-1,M="http://reactjs.org/docs/error-decoder.html?invariant="+i,E=0;E<m;E++)M+="&args[]="+encodeURIComponent(arguments[E+1]);s(!1,"Minified React error #"+i+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",M)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function x(i,m,M){this.props=i,this.context=m,this.refs=h,this.updater=M||R}x.prototype.isReactComponent={},x.prototype.setState=function(i,m){typeof i!="object"&&typeof i!="function"&&i!=null&&I("85"),this.updater.enqueueSetState(this,i,m,"setState")},x.prototype.forceUpdate=function(i){this.updater.enqueueForceUpdate(this,i,"forceUpdate")};function S(){}S.prototype=x.prototype;function k(i,m,M){this.props=i,this.context=m,this.refs=h,this.updater=M||R}var $=k.prototype=new S;$.constructor=k,u($,x.prototype),$.isPureReactComponent=!0;var te={current:null},q=Object.prototype.hasOwnProperty,N={key:!0,ref:!0,__self:!0,__source:!0};function Q(i,m,M){var E=void 0,H={},U=null,se=null;if(m!=null)for(E in m.ref!==void 0&&(se=m.ref),m.key!==void 0&&(U=""+m.key),m)q.call(m,E)&&!N.hasOwnProperty(E)&&(H[E]=m[E]);var re=arguments.length-2;if(re===1)H.children=M;else if(1<re){for(var me=Array(re),he=0;he<re;he++)me[he]=arguments[he+2];H.children=me}if(i&&i.defaultProps)for(E in re=i.defaultProps,re)H[E]===void 0&&(H[E]=re[E]);return{$$typeof:p,type:i,key:U,ref:se,props:H,_owner:te.current}}function ne(i){return typeof i=="object"&&i!==null&&i.$$typeof===p}function oe(i){var m={"=":"=0",":":"=2"};return"$"+(""+i).replace(/[=:]/g,function(M){return m[M]})}var de=/\/+/g,ce=[];function ve(i,m,M,E){if(ce.length){var H=ce.pop();return H.result=i,H.keyPrefix=m,H.func=M,H.context=E,H.count=0,H}return{result:i,keyPrefix:m,func:M,context:E,count:0}}function ue(i){i.result=null,i.keyPrefix=null,i.func=null,i.context=null,i.count=0,10>ce.length&&ce.push(i)}function G(i,m,M,E){var H=typeof i;(H==="undefined"||H==="boolean")&&(i=null);var U=!1;if(i===null)U=!0;else switch(H){case"string":case"number":U=!0;break;case"object":switch(i.$$typeof){case p:case O:U=!0}}if(U)return M(E,i,m===""?"."+fe(i,0):m),1;if(U=0,m=m===""?".":m+":",Array.isArray(i))for(var se=0;se<i.length;se++){H=i[se];var re=m+fe(H,se);U+=G(H,re,M,E)}else if(i===null||typeof i>"u"?re=null:(re=_&&i[_]||i["@@iterator"],re=typeof re=="function"?re:null),typeof re=="function")for(i=re.call(i),se=0;!(H=i.next()).done;)H=H.value,re=m+fe(H,se++),U+=G(H,re,M,E);else H==="object"&&(M=""+i,I("31",M==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":M,""));return U}function fe(i,m){return typeof i=="object"&&i!==null&&i.key!=null?oe(i.key):m.toString(36)}function pe(i,m){i.func.call(i.context,m,i.count++)}function w(i,m,M){var E=i.result,H=i.keyPrefix;i=i.func.call(i.context,m,i.count++),Array.isArray(i)?z(i,E,M,f.thatReturnsArgument):i!=null&&(ne(i)&&(m=H+(!i.key||m&&m.key===i.key?"":(""+i.key).replace(de,"$&/")+"/")+M,i={$$typeof:p,type:i.type,key:m,ref:i.ref,props:i.props,_owner:i._owner}),E.push(i))}function z(i,m,M,E,H){var U="";M!=null&&(U=(""+M).replace(de,"$&/")+"/"),m=ve(m,U,E,H),i==null||G(i,"",w,m),ue(m)}var Y={Children:{map:function(i,m,M){if(i==null)return i;var E=[];return z(i,E,null,m,M),E},forEach:function(i,m,M){if(i==null)return i;m=ve(null,null,m,M),i==null||G(i,"",pe,m),ue(m)},count:function(i){return i==null?0:G(i,"",f.thatReturnsNull,null)},toArray:function(i){var m=[];return z(i,m,null,f.thatReturnsArgument),m},only:function(i){return ne(i)||I("143"),i}},createRef:function(){return{current:null}},Component:x,PureComponent:k,createContext:function(i,m){return m===void 0&&(m=null),i={$$typeof:T,_calculateChangedBits:m,_defaultValue:i,_currentValue:i,_changedBits:0,Provider:null,Consumer:null},i.Provider={$$typeof:A,_context:i},i.Consumer=i},forwardRef:function(i){return{$$typeof:V,render:i}},Fragment:j,StrictMode:D,unstable_AsyncMode:L,createElement:Q,cloneElement:function(i,m,M){i==null&&I("267",i);var E=void 0,H=u({},i.props),U=i.key,se=i.ref,re=i._owner;if(m!=null){m.ref!==void 0&&(se=m.ref,re=te.current),m.key!==void 0&&(U=""+m.key);var me=void 0;i.type&&i.type.defaultProps&&(me=i.type.defaultProps);for(E in m)q.call(m,E)&&!N.hasOwnProperty(E)&&(H[E]=m[E]===void 0&&me!==void 0?me[E]:m[E])}if(E=arguments.length-2,E===1)H.children=M;else if(1<E){me=Array(E);for(var he=0;he<E;he++)me[he]=arguments[he+2];H.children=me}return{$$typeof:p,type:i.type,key:U,ref:se,props:H,_owner:re}},createFactory:function(i){var m=Q.bind(null,i);return m.type=i,m},isValidElement:ne,version:"16.3.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:te,assign:u}},K=Object.freeze({default:Y}),B=K&&Y||K;c.exports=B.default?B.default:B},function(c,l,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 u=d(2),s=d(0),h=d(5),f=d(3),o=d(1),p=d(6),O="16.3.2",j=typeof Symbol=="function"&&Symbol.for,D=j?Symbol.for("react.element"):60103,A=j?Symbol.for("react.call"):60104,T=j?Symbol.for("react.return"):60105,L=j?Symbol.for("react.portal"):60106,V=j?Symbol.for("react.fragment"):60107,_=j?Symbol.for("react.strict_mode"):60108,I=j?Symbol.for("react.provider"):60109,R=j?Symbol.for("react.context"):60110,x=j?Symbol.for("react.async_mode"):60111,S=j?Symbol.for("react.forward_ref"):60112,k=typeof Symbol=="function"&&Symbol.iterator,$="@@iterator";function te(e){if(e===null||typeof e>"u")return null;var a=k&&e[k]||e[$];return typeof a=="function"?a:null}var q=function(){};{var N=function(e){for(var a=arguments.length,g=Array(a>1?a-1:0),y=1;y<a;y++)g[y-1]=arguments[y];var C=0,X="Warning: "+e.replace(/%s/g,function(){return g[C++]});typeof console<"u"&&console.warn(X);try{throw new Error(X)}catch{}};q=function(e,a){if(a===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var g=arguments.length,y=Array(g>2?g-2:0),C=2;C<g;C++)y[C-2]=arguments[C];N.apply(void 0,[a].concat(y))}}}var Q=q,ne={};function oe(e,a){{var g=e.constructor,y=g&&(g.displayName||g.name)||"ReactClass",C=y+"."+a;if(ne[C])return;f(!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.",a,y),ne[C]=!0}}var de={isMounted:function(e){return!1},enqueueForceUpdate:function(e,a,g){oe(e,"forceUpdate")},enqueueReplaceState:function(e,a,g,y){oe(e,"replaceState")},enqueueSetState:function(e,a,g,y){oe(e,"setState")}};function ce(e,a,g){this.props=e,this.context=a,this.refs=h,this.updater=g||de}ce.prototype.isReactComponent={},ce.prototype.setState=function(e,a){typeof e=="object"||typeof e=="function"||e==null||s(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."),this.updater.enqueueSetState(this,e,a,"setState")},ce.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};{var ve={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)."]},ue=function(e,a){Object.defineProperty(ce.prototype,e,{get:function(){Q(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",a[0],a[1])}})};for(var G in ve)ve.hasOwnProperty(G)&&ue(G,ve[G])}function fe(){}fe.prototype=ce.prototype;function pe(e,a,g){this.props=e,this.context=a,this.refs=h,this.updater=g||de}var w=pe.prototype=new fe;w.constructor=pe,u(w,ce.prototype),w.isPureReactComponent=!0;function z(){var e={current:null};return Object.seal(e),e}var Y={current:null},K=Object.prototype.hasOwnProperty,B={key:!0,ref:!0,__self:!0,__source:!0},i=void 0,m=void 0;function M(e){if(K.call(e,"ref")){var a=Object.getOwnPropertyDescriptor(e,"ref").get;if(a&&a.isReactWarning)return!1}return e.ref!==void 0}function E(e){if(K.call(e,"key")){var a=Object.getOwnPropertyDescriptor(e,"key").get;if(a&&a.isReactWarning)return!1}return e.key!==void 0}function H(e,a){var g=function(){i||(i=!0,f(!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)",a))};g.isReactWarning=!0,Object.defineProperty(e,"key",{get:g,configurable:!0})}function U(e,a){var g=function(){m||(m=!0,f(!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)",a))};g.isReactWarning=!0,Object.defineProperty(e,"ref",{get:g,configurable:!0})}var se=function(e,a,g,y,C,X,Z){var J={$$typeof:D,type:e,key:a,ref:g,props:Z,_owner:X};return J._store={},Object.defineProperty(J._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(J,"_self",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.defineProperty(J,"_source",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.freeze&&(Object.freeze(J.props),Object.freeze(J)),J};function re(e,a,g){var y=void 0,C={},X=null,Z=null,J=null,ie=null;if(a!=null){M(a)&&(Z=a.ref),E(a)&&(X=""+a.key),J=a.__self===void 0?null:a.__self,ie=a.__source===void 0?null:a.__source;for(y in a)K.call(a,y)&&!B.hasOwnProperty(y)&&(C[y]=a[y])}var ye=arguments.length-2;if(ye===1)C.children=g;else if(ye>1){for(var be=Array(ye),ge=0;ge<ye;ge++)be[ge]=arguments[ge+2];Object.freeze&&Object.freeze(be),C.children=be}if(e&&e.defaultProps){var Me=e.defaultProps;for(y in Me)C[y]===void 0&&(C[y]=Me[y])}if((X||Z)&&(typeof C.$$typeof>"u"||C.$$typeof!==D)){var we=typeof e=="function"?e.displayName||e.name||"Unknown":e;X&&H(C,we),Z&&U(C,we)}return se(e,X,Z,J,ie,Y.current,C)}function me(e,a){var g=se(e.type,a,e.ref,e._self,e._source,e._owner,e.props);return g}function he(e,a,g){e==null&&s(!1,"React.cloneElement(...): The argument must be a React element, but you passed %s.",e);var y=void 0,C=u({},e.props),X=e.key,Z=e.ref,J=e._self,ie=e._source,ye=e._owner;if(a!=null){M(a)&&(Z=a.ref,ye=Y.current),E(a)&&(X=""+a.key);var be=void 0;e.type&&e.type.defaultProps&&(be=e.type.defaultProps);for(y in a)K.call(a,y)&&!B.hasOwnProperty(y)&&(a[y]===void 0&&be!==void 0?C[y]=be[y]:C[y]=a[y])}var ge=arguments.length-2;if(ge===1)C.children=g;else if(ge>1){for(var Me=Array(ge),we=0;we<ge;we++)Me[we]=arguments[we+2];C.children=Me}return se(e.type,X,Z,J,ie,ye,C)}function Ce(e){return typeof e=="object"&&e!==null&&e.$$typeof===D}var je={};je.getCurrentStack=null,je.getStackAddendum=function(){var e=je.getCurrentStack;return e?e():null};var Re=".",ct=":";function ut(e){var a=/[=:]/g,g={"=":"=0",":":"=2"},y=(""+e).replace(a,function(C){return g[C]});return"$"+y}var _e=!1,ft=/\/+/g;function qe(e){return(""+e).replace(ft,"$&/")}var Je=10,Ne=[];function Ee(e,a,g,y){if(Ne.length){var C=Ne.pop();return C.result=e,C.keyPrefix=a,C.func=g,C.context=y,C.count=0,C}else return{result:e,keyPrefix:a,func:g,context:y,count:0}}function Ge(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,Ne.length<Je&&Ne.push(e)}function Ae(e,a,g,y){var C=typeof e;(C==="undefined"||C==="boolean")&&(e=null);var X=!1;if(e===null)X=!0;else switch(C){case"string":case"number":X=!0;break;case"object":switch(e.$$typeof){case D:case L:X=!0}}if(X)return g(y,e,a===""?Re+ke(e,0):a),1;var Z=void 0,J=void 0,ie=0,ye=a===""?Re:a+ct;if(Array.isArray(e))for(var be=0;be<e.length;be++)Z=e[be],J=ye+ke(Z,be),ie+=Ae(Z,J,g,y);else{var ge=te(e);if(typeof ge=="function"){ge===e.entries&&(_e||f(!1,"Using Maps as children is unsupported and will likely yield unexpected results. Convert it to a sequence/iterable of keyed ReactElements instead.%s",je.getStackAddendum()),_e=!0);for(var Me=ge.call(e),we=void 0,An=0;!(we=Me.next()).done;)Z=we.value,J=ye+ke(Z,An++),ie+=Ae(Z,J,g,y)}else if(C==="object"){var Ft="";Ft=" If you meant to render a collection of children, use an array instead."+je.getStackAddendum();var It=""+e;s(!1,"Objects are not valid as a React child (found: %s).%s",It==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":It,Ft)}}return ie}function Ve(e,a,g){return e==null?0:Ae(e,"",a,g)}function ke(e,a){return typeof e=="object"&&e!==null&&e.key!=null?ut(e.key):a.toString(36)}function dt(e,a,g){var y=e.func,C=e.context;y.call(C,a,e.count++)}function pt(e,a,g){if(e==null)return e;var y=Ee(null,null,a,g);Ve(e,dt,y),Ge(y)}function ht(e,a,g){var y=e.result,C=e.keyPrefix,X=e.func,Z=e.context,J=X.call(Z,a,e.count++);Array.isArray(J)?Ie(J,y,g,o.thatReturnsArgument):J!=null&&(Ce(J)&&(J=me(J,C+(J.key&&(!a||a.key!==J.key)?qe(J.key)+"/":"")+g)),y.push(J))}function Ie(e,a,g,y,C){var X="";g!=null&&(X=qe(g)+"/");var Z=Ee(a,X,y,C);Ve(e,ht,Z),Ge(Z)}function vt(e,a,g){if(e==null)return e;var y=[];return Ie(e,y,null,a,g),y}function mt(e,a){return Ve(e,o.thatReturnsNull,null)}function gt(e){var a=[];return Ie(e,a,null,o.thatReturnsArgument),a}function Le(e){return Ce(e)||s(!1,"React.Children.only expected to receive a single React element child."),e}function Xe(e,a){a===void 0?a=null:a===null||typeof a=="function"||f(!1,"createContext: Expected the optional second argument to be a function. Instead received: %s",a);var g={$$typeof:R,_calculateChangedBits:a,_defaultValue:e,_currentValue:e,_changedBits:0,Provider:null,Consumer:null};return g.Provider={$$typeof:I,_context:g},g.Consumer=g,g._currentRenderer=null,g}function Te(e){return typeof e!="function"&&f(!1,"forwardRef requires a render function but was given %s.",e===null?"null":typeof e),{$$typeof:S,render:e}}var $e=function(e,a,g){return`
|
|
49
|
+
in `+(e||"Unknown")+(a?" (at "+a.fileName.replace(/^.*[\\\/]/,"")+":"+a.lineNumber+")":g?" (created by "+g+")":"")};function We(e){return typeof e=="string"||typeof e=="function"||e===V||e===x||e===_||typeof e=="object"&&e!==null&&(e.$$typeof===I||e.$$typeof===R||e.$$typeof===S)}function ze(e){var a=e.type;if(typeof a=="function")return a.displayName||a.name;if(typeof a=="string")return a;switch(a){case V:return"ReactFragment";case L:return"ReactPortal";case A:return"ReactCall";case T:return"ReactReturn"}if(typeof a=="object"&&a!==null)switch(a.$$typeof){case S:var g=a.render.displayName||a.render.name||"";return g!==""?"ForwardRef("+g+")":"ForwardRef"}return null}var xe=void 0,He=void 0,Ze=function(){},Oe=function(){};xe=null,He=!1,Ze=function(e){return e==null?"#empty":typeof e=="string"||typeof e=="number"?"#text":typeof e.type=="string"?e.type:e.type===V?"React.Fragment":e.type.displayName||e.type.name||"Unknown"},Oe=function(){var e="";if(xe){var a=Ze(xe),g=xe._owner;e+=$e(a,xe._source,g&&ze(g))}return e+=je.getStackAddendum()||"",e};function Ue(){if(Y.current){var e=ze(Y.current);if(e)return`
|
|
50
|
+
|
|
51
|
+
Check the render method of \``+e+"`."}return""}function yt(e){if(e!=null&&e.__source!==void 0){var a=e.__source,g=a.fileName.replace(/^.*[\\\/]/,""),y=a.lineNumber;return`
|
|
52
|
+
|
|
53
|
+
Check your code at `+g+":"+y+"."}return""}var Qe={};function et(e){var a=Ue();if(!a){var g=typeof e=="string"?e:e.displayName||e.name;g&&(a=`
|
|
54
|
+
|
|
55
|
+
Check the top-level render call using <`+g+">.")}return a}function Be(e,a){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var g=et(a);if(!Qe[g]){Qe[g]=!0;var y="";e&&e._owner&&e._owner!==Y.current&&(y=" It was passed a child from "+ze(e._owner)+"."),xe=e,f(!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',g,y,Oe()),xe=null}}}function tt(e,a){if(typeof e=="object"){if(Array.isArray(e))for(var g=0;g<e.length;g++){var y=e[g];Ce(y)&&Be(y,a)}else if(Ce(e))e._store&&(e._store.validated=!0);else if(e){var C=te(e);if(typeof C=="function"&&C!==e.entries)for(var X=C.call(e),Z=void 0;!(Z=X.next()).done;)Ce(Z.value)&&Be(Z.value,a)}}}function nt(e){var a=e.type;if(typeof a=="function"){var g=a.displayName||a.name,y=a.propTypes;y?(xe=e,p(y,e.props,"prop",g,Oe),xe=null):a.PropTypes!==void 0&&!He&&(He=!0,f(!1,"Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")),typeof a.getDefaultProps=="function"&&(a.getDefaultProps.isReactClassApproved||f(!1,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."))}}function bt(e){xe=e;for(var a=Object.keys(e.props),g=0;g<a.length;g++){var y=a[g];if(y!=="children"&&y!=="key"){f(!1,"Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.%s",y,Oe());break}}e.ref!==null&&f(!1,"Invalid attribute `ref` supplied to `React.Fragment`.%s",Oe()),xe=null}function rt(e,a,g){var y=We(e);if(!y){var C="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(C+=" 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 X=yt(a);X?C+=X:C+=Ue(),C+=Oe()||"";var Z=void 0;e===null?Z="null":Array.isArray(e)?Z="array":Z=typeof e,f(!1,"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Z,C)}var J=re.apply(this,arguments);if(J==null)return J;if(y)for(var ie=2;ie<arguments.length;ie++)tt(arguments[ie],e);return e===V?bt(J):nt(J),J}function t(e){var a=rt.bind(null,e);return a.type=e,Object.defineProperty(a,"type",{enumerable:!1,get:function(){return Q(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),a}function b(e,a,g){for(var y=he.apply(this,arguments),C=2;C<arguments.length;C++)tt(arguments[C],y.type);return nt(y),y}var P={Children:{map:vt,forEach:pt,count:mt,toArray:gt,only:Le},createRef:z,Component:ce,PureComponent:pe,createContext:Xe,forwardRef:Te,Fragment:V,StrictMode:_,unstable_AsyncMode:x,createElement:rt,cloneElement:b,createFactory:t,isValidElement:Ce,version:O,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:Y,assign:u}};u(P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,{ReactDebugCurrentFrame:je,ReactComponentTreeHook:{}});var W=Object.freeze({default:P}),ee=W&&P||W,ae=ee.default?ee.default:ee;c.exports=ae}()},function(c,l,d){if(process.env.NODE_ENV!=="production"){var u=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103,s=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===u},h=!0;c.exports=d(12)(s,h)}else c.exports=d(13)()},function(c,l,d){var u=d(1),s=d(0),h=d(3),f=d(2),o=d(4),p=d(6);c.exports=function(O,j){var D=typeof Symbol=="function"&&Symbol.iterator,A="@@iterator";function T(w){var z=w&&(D&&w[D]||w[A]);if(typeof z=="function")return z}var L="<<anonymous>>",V={array:x("array"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:S(),arrayOf:k,element:$(),instanceOf:te,node:ne(),objectOf:N,oneOf:q,oneOfType:Q,shape:oe,exact:de};function _(w,z){return w===z?w!==0||1/w===1/z:w!==w&&z!==z}function I(w){this.message=w,this.stack=""}I.prototype=Error.prototype;function R(w){if(process.env.NODE_ENV!=="production")var z={},Y=0;function K(i,m,M,E,H,U,se){if(E=E||L,U=U||M,se!==o){if(j)s(!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 re=E+":"+M;!z[re]&&Y<3&&(h(!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.",U,E),z[re]=!0,Y++)}}return m[M]==null?i?m[M]===null?new I("The "+H+" `"+U+"` is marked as required "+("in `"+E+"`, but its value is `null`.")):new I("The "+H+" `"+U+"` is marked as required in "+("`"+E+"`, but its value is `undefined`.")):null:w(m,M,E,H,U)}var B=K.bind(null,!1);return B.isRequired=K.bind(null,!0),B}function x(w){function z(Y,K,B,i,m,M){var E=Y[K],H=ue(E);if(H!==w){var U=G(E);return new I("Invalid "+i+" `"+m+"` of type "+("`"+U+"` supplied to `"+B+"`, expected ")+("`"+w+"`."))}return null}return R(z)}function S(){return R(u.thatReturnsNull)}function k(w){function z(Y,K,B,i,m){if(typeof w!="function")return new I("Property `"+m+"` of component `"+B+"` has invalid PropType notation inside arrayOf.");var M=Y[K];if(!Array.isArray(M)){var E=ue(M);return new I("Invalid "+i+" `"+m+"` of type "+("`"+E+"` supplied to `"+B+"`, expected an array."))}for(var H=0;H<M.length;H++){var U=w(M,H,B,i,m+"["+H+"]",o);if(U instanceof Error)return U}return null}return R(z)}function $(){function w(z,Y,K,B,i){var m=z[Y];if(!O(m)){var M=ue(m);return new I("Invalid "+B+" `"+i+"` of type "+("`"+M+"` supplied to `"+K+"`, expected a single ReactElement."))}return null}return R(w)}function te(w){function z(Y,K,B,i,m){if(!(Y[K]instanceof w)){var M=w.name||L,E=pe(Y[K]);return new I("Invalid "+i+" `"+m+"` of type "+("`"+E+"` supplied to `"+B+"`, expected ")+("instance of `"+M+"`."))}return null}return R(z)}function q(w){if(!Array.isArray(w))return process.env.NODE_ENV!=="production"&&h(!1,"Invalid argument supplied to oneOf, expected an instance of array."),u.thatReturnsNull;function z(Y,K,B,i,m){for(var M=Y[K],E=0;E<w.length;E++)if(_(M,w[E]))return null;var H=JSON.stringify(w);return new I("Invalid "+i+" `"+m+"` of value `"+M+"` "+("supplied to `"+B+"`, expected one of "+H+"."))}return R(z)}function N(w){function z(Y,K,B,i,m){if(typeof w!="function")return new I("Property `"+m+"` of component `"+B+"` has invalid PropType notation inside objectOf.");var M=Y[K],E=ue(M);if(E!=="object")return new I("Invalid "+i+" `"+m+"` of type "+("`"+E+"` supplied to `"+B+"`, expected an object."));for(var H in M)if(M.hasOwnProperty(H)){var U=w(M,H,B,i,m+"."+H,o);if(U instanceof Error)return U}return null}return R(z)}function Q(w){if(!Array.isArray(w))return process.env.NODE_ENV!=="production"&&h(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),u.thatReturnsNull;for(var z=0;z<w.length;z++){var Y=w[z];if(typeof Y!="function")return h(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",fe(Y),z),u.thatReturnsNull}function K(B,i,m,M,E){for(var H=0;H<w.length;H++){var U=w[H];if(U(B,i,m,M,E,o)==null)return null}return new I("Invalid "+M+" `"+E+"` supplied to "+("`"+m+"`."))}return R(K)}function ne(){function w(z,Y,K,B,i){return ce(z[Y])?null:new I("Invalid "+B+" `"+i+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return R(w)}function oe(w){function z(Y,K,B,i,m){var M=Y[K],E=ue(M);if(E!=="object")return new I("Invalid "+i+" `"+m+"` of type `"+E+"` "+("supplied to `"+B+"`, expected `object`."));for(var H in w){var U=w[H];if(U){var se=U(M,H,B,i,m+"."+H,o);if(se)return se}}return null}return R(z)}function de(w){function z(Y,K,B,i,m){var M=Y[K],E=ue(M);if(E!=="object")return new I("Invalid "+i+" `"+m+"` of type `"+E+"` "+("supplied to `"+B+"`, expected `object`."));var H=f({},Y[K],w);for(var U in H){var se=w[U];if(!se)return new I("Invalid "+i+" `"+m+"` key `"+U+"` supplied to `"+B+"`.\nBad object: "+JSON.stringify(Y[K],null," ")+`
|
|
56
|
+
Valid keys: `+JSON.stringify(Object.keys(w),null," "));var re=se(M,U,B,i,m+"."+U,o);if(re)return re}return null}return R(z)}function ce(w){switch(typeof w){case"number":case"string":case"undefined":return!0;case"boolean":return!w;case"object":if(Array.isArray(w))return w.every(ce);if(w===null||O(w))return!0;var z=T(w);if(z){var Y=z.call(w),K;if(z!==w.entries){for(;!(K=Y.next()).done;)if(!ce(K.value))return!1}else for(;!(K=Y.next()).done;){var B=K.value;if(B&&!ce(B[1]))return!1}}else return!1;return!0;default:return!1}}function ve(w,z){return w==="symbol"||z["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&z instanceof Symbol}function ue(w){var z=typeof w;return Array.isArray(w)?"array":w instanceof RegExp?"object":ve(z,w)?"symbol":z}function G(w){if(typeof w>"u"||w===null)return""+w;var z=ue(w);if(z==="object"){if(w instanceof Date)return"date";if(w instanceof RegExp)return"regexp"}return z}function fe(w){var z=G(w);switch(z){case"array":case"object":return"an "+z;case"boolean":case"date":case"regexp":return"a "+z;default:return z}}function pe(w){return!w.constructor||!w.constructor.name?L:w.constructor.name}return V.checkPropTypes=p,V.PropTypes=V,V}},function(c,l,d){var u=d(1),s=d(0),h=d(4);c.exports=function(){function f(O,j,D,A,T,L){L!==h&&s(!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")}f.isRequired=f;function o(){return f}var p={array:f,bool:f,func:f,number:f,object:f,string:f,symbol:f,any:f,arrayOf:o,element:f,instanceOf:o,node:f,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o};return p.checkPropTypes=u,p.PropTypes=p,p}},function(c,l,d){Object.defineProperty(l,"__esModule",{value:!0});var u=d(15);Object.defineProperty(l,"blank",{enumerable:!0,get:function(){return A(u).default}});var s=d(16);Object.defineProperty(l,"balls",{enumerable:!0,get:function(){return A(s).default}});var h=d(17);Object.defineProperty(l,"bars",{enumerable:!0,get:function(){return A(h).default}});var f=d(18);Object.defineProperty(l,"bubbles",{enumerable:!0,get:function(){return A(f).default}});var o=d(19);Object.defineProperty(l,"cubes",{enumerable:!0,get:function(){return A(o).default}});var p=d(20);Object.defineProperty(l,"cylon",{enumerable:!0,get:function(){return A(p).default}});var O=d(21);Object.defineProperty(l,"spin",{enumerable:!0,get:function(){return A(O).default}});var j=d(22);Object.defineProperty(l,"spinningBubbles",{enumerable:!0,get:function(){return A(j).default}});var D=d(23);Object.defineProperty(l,"spokes",{enumerable:!0,get:function(){return A(D).default}});function A(T){return T&&T.__esModule?T:{default:T}}},function(c,l){c.exports=`<svg class="icon-blank" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>
|
|
57
|
+
`},function(c,l){c.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(c,l){c.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(c,l){c.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(c,l){c.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(c,l){c.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(c,l){c.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(c,l){c.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(c,l){c.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
|
+
`}])})})(Dt);var Nn=Dt.exports;const kn=jt(Nn),Mn=({isLoading:n})=>{if(n)return r.jsx("div",{className:"fm-loader",children:r.jsx(kn,{color:"black",type:"spokes",height:50,width:50})})},_n=({files:n,onCreateFolder:v,onRename:c,onDelete:l,onPaste:d,onRefresh:u,isLoading:s,allowedFileExtensions:h})=>{const f=yn(),[o,p]=F.useState(!1),[O,j]=F.useState(null),[D,A]=F.useState(""),[T,L]=F.useState([]),[V,_]=F.useState(null);F.useEffect(()=>{L(()=>n==null?void 0:n.filter(N=>N.path===D))},[n,D]);const[I,R]=F.useState({col1:"20",col2:"80"}),[x,S]=F.useState(!1),k=F.useRef(null),$=()=>{S(!0)},te=()=>{S(!1)},q=N=>{if(!x)return;N.preventDefault();const ne=k.current.getBoundingClientRect(),oe=(N.clientX-ne.left)/ne.width*100;oe>=15&&oe<=60&&R({col1:oe,col2:100-oe})};return r.jsxs("main",{className:"file-explorer",children:[r.jsx(Mn,{isLoading:s}),r.jsx(ln,{allowCreateFolder:!0,allowUploadFile:!0,handleRefresh:u,isItemSelection:o,setIsItemSelection:p,currentPath:D,selectedFile:O,setSelectedFile:j,files:n,clipBoard:V,setClipBoard:_,handlePaste:d,triggerAction:f}),r.jsxs("section",{ref:k,onMouseMove:q,onMouseUp:te,className:"files-container",children:[r.jsxs("div",{className:"navigation-pane",style:{width:I.col1+"%"},children:[r.jsx(fn,{files:n,currentPath:D,setCurrentPath:A}),r.jsx("div",{className:`sidebar-resize ${x?"sidebar-dragging":""}`,onMouseDown:$})]}),r.jsxs("div",{className:"folers-preview",style:{width:I.col2+"%"},children:[r.jsx(dn,{currentPath:D,setCurrentPath:A}),r.jsx(gn,{currentPathFiles:T,setCurrentPath:A,isItemSelection:o,setIsItemSelection:p,setSelectedFile:j,currentPath:D,clipBoard:V,setClipBoard:_,handlePaste:d,files:n,triggerAction:f})]})]}),r.jsx(Rn,{files:n,currentPath:D,currentPathFiles:T,selectedFile:O,triggerAction:f,handleCreateFolder:v,handleRename:c,handleDelete:l,setIsItemSelection:p,setSelectedFile:j,allowedFileExtensions:h})]})};Se.FileManager=_n,Object.defineProperty(Se,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap";.background-secondary{background-color:#6155b4!important}.text-white{color:#fff}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}img,svg{vertical-align:middle}.fm-modal{border:1px solid #c6c6c6;border-radius:5px;width:fit-content;overflow-x:hidden;padding:0;box-shadow:0 2px 10px #00000041}.w-25{width:25%}.file-explorer{font-family:Nunito Sans,sans-serif;border:1px solid #dddddd;height:72dvh;position:relative;width:100%;background-color:#fff;margin-top:1rem;cursor:default;-webkit-user-select:none;-ms-user-select:none;user-select:none}.file-explorer button{font-family:Nunito Sans,sans-serif}.file-explorer .file-explorer-loading{z-index:3;position:fixed;display:flex;justify-content:center;align-items:center;height:72dvh;width:-webkit-fill-available;background-color:#ffffff8a}.file-explorer .toolbar{min-height:35px;border-bottom:1px solid #dddddd;padding:6px 10px}.file-explorer .toolbar .file-action-container{display:flex;justify-content:space-between}.file-explorer .toolbar .file-action-container>div{display:flex}.file-explorer .toolbar .file-action-container .file-action{background-color:transparent;gap:5px}.file-explorer .toolbar .file-action-container .file-action:hover:not(:disabled){cursor:pointer;background-color:#0000008c!important;border-radius:3px;color:#fff;text-shadow:0px 0px 1px white}.file-explorer .toolbar .file-action-container .file-action:hover:disabled{cursor:default;background-color:transparent!important;color:#b0b0b0;text-shadow:none}.file-explorer .toolbar .fm-toolbar{display:flex;justify-content:space-between}.file-explorer .toolbar .fm-toolbar>div{display:flex}.file-explorer .toolbar .fm-toolbar .toolbar-left-items{display:flex}.file-explorer .toolbar .item-action{background-color:#fff;display:flex;align-items:center;gap:7px;padding:8px 12px;font-size:14px;width:fit-content;border:none}.file-explorer .toolbar .item-action:hover{cursor:pointer;background-color:#0000001f!important;border-radius:3px;color:#5549a3}.file-explorer .toolbar .icon-only{padding:8px!important}.file-explorer .toolbar .item-separator{height:36px;background:#dee1e3;width:1px;margin:0 5px}.file-explorer .file-selected{background-color:#0000000a}.file-explorer .files-container{display:flex;height:calc(72dvh - 52px)}.file-explorer .files-container .navigation-pane{z-index:1;padding:8px 0;position:relative}.file-explorer .files-container .navigation-pane .sb-folders-list{list-style:none;padding:0 6px;height:100%;overflow-y:auto!important}.file-explorer .files-container .navigation-pane .sb-folders-list::-webkit-scrollbar{width:5px;height:8px;padding-top:2px}.file-explorer .files-container .navigation-pane .sb-folders-list::-webkit-scrollbar-thumb{background:#6155b4!important}.file-explorer .files-container .navigation-pane .sb-folders-list .folder-collapsible{margin-left:10px}.file-explorer .files-container .navigation-pane .sb-folders-list .sb-folders-list-item{display:flex;align-items:center;margin-bottom:4px;padding:6px 5px;border-radius:4px}.file-explorer .files-container .navigation-pane .sb-folders-list .sb-folders-list-item:hover{cursor:pointer;background-color:#0000000a}.file-explorer .files-container .navigation-pane .sb-folders-list .sb-folders-list-item .non-expanable{min-width:20px}.file-explorer .files-container .navigation-pane .sb-folders-list .sb-folders-list-item .sb-folder-details{display:flex;align-items:center}.file-explorer .files-container .navigation-pane .sb-folders-list .sb-folders-list-item .sb-folder-details .folder-open-icon{margin:0 7px}.file-explorer .files-container .navigation-pane .sb-folders-list .sb-folders-list-item .sb-folder-details .folder-close-icon{margin:1px 9px 0 8px}.file-explorer .files-container .navigation-pane .sb-folders-list .sb-folders-list-item .sb-folder-details .sb-folder-name{width:max-content}.file-explorer .files-container .navigation-pane .sb-folders-list .sb-folders-list-item .folder-rotate-down{animation:rotateFolderDown .5s linear forwards}@keyframes rotateFolderDown{0%{transform:rotate(0)}to{transform:rotate(90deg)}}.file-explorer .files-container .navigation-pane .sb-folders-list .sb-folders-list-item .folder-rotate-right{animation:rotateRight .5s linear forwards}@keyframes rotateRight{0%{transform:rotate(90deg)}to{transform:rotate(0)}}.file-explorer .files-container .navigation-pane .sb-folders-list .active-list-item{background-color:#6155b4;color:#fff}.file-explorer .files-container .navigation-pane .sb-folders-list .active-list-item:hover{cursor:pointer;background-color:#6155b4}.file-explorer .files-container .navigation-pane .sb-folders-list .empty-nav-pane{display:flex;justify-content:center;align-items:center;height:100%}.file-explorer .files-container .navigation-pane .sidebar-resize{position:absolute;right:0;top:0;bottom:0;width:5px;cursor:col-resize;z-index:10;border-right:1px solid #dee2e6}.file-explorer .files-container .navigation-pane .sidebar-resize:hover,.file-explorer .files-container .navigation-pane .sidebar-dragging{border-right:1px solid #1e3a8a}.file-explorer .files-container .folers-preview{z-index:2;background-color:#fff;padding-right:0;padding-left:0}.file-explorer .files-container .breadcrumb{display:flex;gap:.5rem;overflow-x:scroll;border-bottom:1px solid #dddddd;padding:10px 15px}.file-explorer .files-container .breadcrumb::-webkit-scrollbar{width:5px;padding-top:2px;scrollbar-width:none}.file-explorer .files-container .breadcrumb::-webkit-scrollbar-thumb{background:#6155b4!important}.file-explorer .files-container .folder-name{display:flex;align-items:center;gap:.25rem;font-weight:500;min-width:fit-content}.file-explorer .files-container .folder-name:hover{cursor:pointer;color:#6155b4}.file-explorer .files-container .files{display:flex;align-content:flex-start;flex-wrap:wrap;column-gap:.5em;row-gap:5px;height:60dvh;overflow-y:auto;padding:8px 4px 8px 8px}.file-explorer .files-container .files::-webkit-scrollbar{width:5px;padding-top:2px}.file-explorer .files-container .files::-webkit-scrollbar-thumb{background:#6155b4!important}.file-explorer .files-container .files .file-item{height:80px;width:118px;display:flex;flex-direction:column;gap:.5rem;align-items:center;padding:13px 10px 10px;margin:5px 0;border-radius:5px}.file-explorer .files-container .files .file-item:hover{cursor:pointer;background-color:#0000000a}.file-explorer .files-container .files .file-item .file-name{max-width:115px}.file-explorer .files-container .files .file-moving{opacity:.5}.file-explorer .files-container .empty-folder{display:flex;justify-content:center;align-items:center;width:100%;height:100%}@media screen and (min-height: 600px) and (max-height: 900px){.file-explorer,.file-explorer .file-explorer-loading{height:63dvh}.file-explorer .files-container{height:calc(63dvh - 51px)}.file-explorer .files-container .files{height:46dvh}}@media screen and (min-height: 550px) and (max-height: 600px){.file-explorer,.file-explorer .file-explorer-loading{height:58dvh}.file-explorer .files-container{height:calc(58dvh - 51px)}.file-explorer .files-container .files{height:46dvh}}.close-icon{padding:5px;border-radius:50%}.close-icon:hover{cursor:pointer;background-color:#00000012}.action-input{border:none;border-bottom:1px solid grey;border-top-left-radius:5px;border-top-right-radius:5px;transition:box-shadow .3s;background-color:#f5f5f5;padding:6px 9px;margin-right:8px;width:calc(100% - 18px)}.action-input:focus{outline:none;border-bottom-color:#6155b4!important;box-shadow:inset 0 -1px #6155b4}.folder-error{color:#dc3545;font-size:.8em;margin-top:4px}.file-upload-container .rs-uploader-file-items{max-height:165px;overflow-y:auto!important;overflow-x:hidden!important}.file-upload-container .rs-uploader-file-items::-webkit-scrollbar{width:5px;padding-top:2px}.file-upload-container .rs-uploader-file-items::-webkit-scrollbar-thumb{background:#6155b4!important}.file-upload-container .rs-uploader-file-items:before{content:"Selected files";color:#6155b4;font-weight:600;display:none;margin-left:1px}.file-upload-container .rs-uploader-file-item{border-radius:5px;margin:13px 5px 3px;box-shadow:1px 1px 3px 1px #00000038;-webkit-box-shadow:1px 1px 3px 1px rgba(0,0,0,.22);-moz-box-shadow:1px 1px 3px 1px rgba(0,0,0,.22)}.file-upload-container.show-uploaded-files .rs-uploader-file-items:before{display:block}.file-previewer{height:75vh}.file-previewer .photo-popup-image{opacity:1;object-fit:contain;height:100%;width:100%;transition:opacity .5s ease-in-out}.file-previewer .img-loading{opacity:0;height:0%;width:0%}.file-context-menu-list{font-size:1.1em}.file-context-menu-list ul{list-style-type:none;padding-left:0;margin:0}.file-context-menu-list ul li{display:flex;gap:6px;align-items:center;padding:6px 18px 6px 14px}.file-context-menu-list ul li:hover{cursor:pointer;background-color:#0000000a}.file-context-menu-list ul li.disable-paste{opacity:.5}.file-context-menu-list ul li.disable-paste:hover{cursor:default;background-color:transparent}.file-delete-confirm .file-delete-confirm-text{border-bottom:1px solid #dddddd;padding:10px 15px;margin-bottom:1rem}.file-delete-confirm .file-delete-confirm-actions{display:flex;gap:.5rem;justify-content:flex-end;margin-bottom:1rem;margin-right:1rem}.fm-create-folder-container{padding:8px 0}.fm-create-folder-container .fm-create-folder-input{border-bottom:1px solid #c6c6c6;padding:8px 12px 12px}.fm-create-folder-container .fm-create-folder-action{display:flex;gap:8px;justify-content:flex-end;padding:8px 8px 0 0}.fm-rename-folder-container{padding:8px 0}.fm-rename-folder-container .fm-rename-folder-input{border-bottom:1px solid #c6c6c6;padding:8px 12px 12px}.fm-rename-folder-container .fm-rename-folder-input .fm-rename-warning{display:flex;align-items:center;gap:10px}.fm-rename-folder-container .fm-rename-folder-action{display:flex;gap:8px;justify-content:flex-end;padding:8px 8px 0 0}.fm-upload-file{padding:18px 15px;display:flex;gap:18px}.fm-upload-file .select-files{width:100%}.fm-upload-file .select-files .draggable-file-input{color:#696969;background-color:#f7f7f7;margin-bottom:18px;height:220px;border:2px dashed #ccc;border-radius:5px;display:flex;justify-content:center;align-items:center}.fm-upload-file .select-files .draggable-file-input .input-text{pointer-events:none;display:flex;flex-direction:column;align-items:center}.fm-upload-file .select-files .draggable-file-input:hover,.fm-upload-file .select-files .draggable-file-input.dragging{border-color:#6155b4}.fm-upload-file .select-files .btn-choose-file{display:flex;justify-content:center}.fm-upload-file .select-files .btn-choose-file label{display:inline-block;padding:.4rem .8rem}.fm-upload-file .select-files .btn-choose-file label:hover{cursor:pointer}.fm-upload-file .select-files .btn-choose-file .choose-file-input{display:none}.fm-upload-file .files-progress{width:60%}.fm-upload-file .files-progress h2{font-size:.9em;margin:0}.fm-upload-file .files-progress ul{padding-left:0;padding-right:5px;padding-bottom:10px;margin-top:.7rem;height:220px;overflow-y:auto!important;font-weight:500}.fm-upload-file .files-progress ul::-webkit-scrollbar{width:3px;height:8px;padding-top:2px}.fm-upload-file .files-progress ul::-webkit-scrollbar-thumb{background:#6155b4!important}.fm-upload-file .files-progress ul li{list-style:none;border-bottom:1px solid #c6c6c6;display:flex;gap:5px;margin-bottom:18px;padding-bottom:12px}.fm-upload-file .files-progress ul li .file-icon{width:10%}.fm-upload-file .files-progress ul li .file{width:90%}.fm-upload-file .files-progress ul li .file .file-details{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}.fm-upload-file .files-progress ul li .file .file-details .file-info{width:90%;display:flex;align-items:baseline}.fm-upload-file .files-progress ul li .file .file-details .file-info .file-name{display:inline-block;max-width:72%;margin-right:8px}.fm-upload-file .files-progress ul li .file .file-details .file-size{font-size:.7em}.fm-upload-file .files-progress ul li .file .file-details .rm-file:hover{cursor:pointer;color:red}.file-selcted .select-files{width:40%}.fm-context-menu{position:absolute;background-color:#fff;border:1px solid #c6c6c6;border-radius:5px;padding:5px 0;z-index:1}.fm-modal-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e9ecef;padding:.5rem 1rem}.fm-modal-header .fm-modal-heading{margin:0;font-weight:700;color:#000}.dialog[open]{animation:expand .4s forwards}.dialog[open]::backdrop{background:#00000080}@keyframes expand{0%{transform:scale(.4)}to{transform:scale(1)}}.fm-button{border-radius:5px;font-weight:600;border:none}.fm-button:hover{cursor:pointer}.fm-button-primary{background-color:#6155b4;color:#fff}.fm-button-primary:hover{background-color:#4b3f9f}.fm-button-secondary{background-color:#f0f0f0;color:#000}.fm-button-secondary:hover{background-color:#e0e0e0}.fm-button-danger{background-color:#f44336;color:#fff}.fm-button-danger:hover{background-color:#d32f2f}.fm-progress{display:flex;flex-direction:column;gap:5px}.fm-progress .fm-progress-bar{width:100%;border-radius:5px;background-color:#c6c6c6;height:5px}.fm-progress .fm-progress-bar .fm-progress-bar-fill{height:100%;background-color:#6155b4;border-radius:5px;max-width:100%}.fm-progress .fm-progress-status{font-size:.7em}.fm-loader{z-index:3;position:absolute;display:flex;justify-content:center;align-items:center;height:100%;width:-webkit-fill-available;background-color:#ffffff8a}
|
package/dist/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cubone/react-file-manager",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "dist/react-file-manager.es.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist/",
|
|
9
|
+
"README.md"
|
|
10
|
+
],
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"dev": "vite",
|
|
16
|
+
"build": "vite build",
|
|
17
|
+
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
|
|
18
|
+
"preview": "vite preview",
|
|
19
|
+
"semantic-release": "semantic-release"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"react": "^18.3.1",
|
|
23
|
+
"react-collapsible": "^2.10.0",
|
|
24
|
+
"react-dom": "^18.3.1",
|
|
25
|
+
"react-icons": "^5.2.1",
|
|
26
|
+
"react-loading": "^2.0.3"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@types/react": "^18.3.3",
|
|
30
|
+
"@types/react-dom": "^18.3.0",
|
|
31
|
+
"@vitejs/plugin-react-swc": "^3.5.0",
|
|
32
|
+
"eslint": "^8.57.0",
|
|
33
|
+
"eslint-plugin-react": "^7.34.2",
|
|
34
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
35
|
+
"eslint-plugin-react-refresh": "^0.4.7",
|
|
36
|
+
"sass": "^1.77.6",
|
|
37
|
+
"semantic-release": "^24.1.0",
|
|
38
|
+
"vite": "^5.3.1"
|
|
39
|
+
},
|
|
40
|
+
"description": "The File Manager Component is an open-source React.js package designed to help developers easily integrate a file manager into their applications. This component provides a user-friendly interface along with essential functionalities for managing files and folders, such as viewing, uploading and deleting within a specified directory structure. Ideal for anyone looking to build or enhance a file management system, this package offers both UI and backend integration capabilities.",
|
|
41
|
+
"main": "src/index.js",
|
|
42
|
+
"repository": {
|
|
43
|
+
"type": "git",
|
|
44
|
+
"url": "git+https://github.com/Saifullah-dev/react-file-manager.git"
|
|
45
|
+
},
|
|
46
|
+
"keywords": [
|
|
47
|
+
"react",
|
|
48
|
+
"file-manager",
|
|
49
|
+
"component"
|
|
50
|
+
],
|
|
51
|
+
"author": "Saifullah Zubair",
|
|
52
|
+
"license": "MIT",
|
|
53
|
+
"bugs": {
|
|
54
|
+
"url": "https://github.com/Saifullah-dev/react-file-manager/issues"
|
|
55
|
+
},
|
|
56
|
+
"homepage": "https://github.com/Saifullah-dev/react-file-manager#readme"
|
|
57
|
+
}
|
package/src/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FileManager } from "./File Manager/FileManager";
|