@cubone/react-file-manager 1.16.3 → 1.17.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.
@@ -19,11 +19,11 @@ function dn() {
19
19
  _t = 1;
20
20
  var e = Pe, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
21
21
  function i(l, d, h) {
22
- var f, p = {}, E = null, M = null;
23
- h !== void 0 && (E = "" + h), d.key !== void 0 && (E = "" + d.key), d.ref !== void 0 && (M = d.ref);
22
+ var f, p = {}, w = null, S = null;
23
+ h !== void 0 && (w = "" + h), d.key !== void 0 && (w = "" + d.key), d.ref !== void 0 && (S = d.ref);
24
24
  for (f in d) s.call(d, f) && !c.hasOwnProperty(f) && (p[f] = d[f]);
25
25
  if (l && l.defaultProps) for (f in d = l.defaultProps, d) p[f] === void 0 && (p[f] = d[f]);
26
- return { $$typeof: r, type: l, key: E, ref: M, props: p, _owner: a.current };
26
+ return { $$typeof: r, type: l, key: w, ref: S, props: p, _owner: a.current };
27
27
  }
28
28
  return ze.Fragment = n, ze.jsx = i, ze.jsxs = i, ze;
29
29
  }
@@ -40,11 +40,11 @@ var Ae = {};
40
40
  var Nt;
41
41
  function fn() {
42
42
  return Nt || (Nt = 1, process.env.NODE_ENV !== "production" && function() {
43
- var e = Pe, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), M = Symbol.for("react.offscreen"), S = Symbol.iterator, z = "@@iterator";
44
- function A(o) {
43
+ var e = Pe, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), M = Symbol.iterator, z = "@@iterator";
44
+ function D(o) {
45
45
  if (o === null || typeof o != "object")
46
46
  return null;
47
- var v = S && o[S] || o[z];
47
+ var v = M && o[M] || o[z];
48
48
  return typeof v == "function" ? v : null;
49
49
  }
50
50
  var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -65,26 +65,26 @@ function fn() {
65
65
  ie.unshift("Warning: " + v), Function.prototype.apply.call(console[o], console, ie);
66
66
  }
67
67
  }
68
- var b = !1, u = !1, g = !1, k = !1, x = !1, R;
68
+ var b = !1, u = !1, g = !1, _ = !1, x = !1, R;
69
69
  R = Symbol.for("react.module.reference");
70
70
  function F(o) {
71
- return !!(typeof o == "string" || typeof o == "function" || o === s || o === c || x || o === a || o === h || o === f || k || o === M || b || u || g || typeof o == "object" && o !== null && (o.$$typeof === E || o.$$typeof === p || o.$$typeof === i || o.$$typeof === l || o.$$typeof === d || // This needs to include all possible module reference object
71
+ return !!(typeof o == "string" || typeof o == "function" || o === s || o === c || x || o === a || o === h || o === f || _ || o === S || b || u || g || typeof o == "object" && o !== null && (o.$$typeof === w || o.$$typeof === p || o.$$typeof === i || o.$$typeof === l || o.$$typeof === d || // This needs to include all possible module reference object
72
72
  // types supported by any Flight configuration anywhere since
73
73
  // we don't know which Flight build this will end up being used
74
74
  // with.
75
75
  o.$$typeof === R || o.getModuleId !== void 0));
76
76
  }
77
- function D(o, v, T) {
77
+ function A(o, v, T) {
78
78
  var B = o.displayName;
79
79
  if (B)
80
80
  return B;
81
81
  var te = v.displayName || v.name || "";
82
82
  return te !== "" ? T + "(" + te + ")" : T;
83
83
  }
84
- function _(o) {
84
+ function N(o) {
85
85
  return o.displayName || "Context";
86
86
  }
87
- function N(o) {
87
+ function k(o) {
88
88
  if (o == null)
89
89
  return null;
90
90
  if (typeof o.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
@@ -109,19 +109,19 @@ function fn() {
109
109
  switch (o.$$typeof) {
110
110
  case l:
111
111
  var v = o;
112
- return _(v) + ".Consumer";
112
+ return N(v) + ".Consumer";
113
113
  case i:
114
114
  var T = o;
115
- return _(T._context) + ".Provider";
115
+ return N(T._context) + ".Provider";
116
116
  case d:
117
- return D(o, o.render, "ForwardRef");
117
+ return A(o, o.render, "ForwardRef");
118
118
  case p:
119
119
  var B = o.displayName || null;
120
- return B !== null ? B : N(o.type) || "Memo";
121
- case E: {
120
+ return B !== null ? B : k(o.type) || "Memo";
121
+ case w: {
122
122
  var te = o, ie = te._payload, ee = te._init;
123
123
  try {
124
- return N(ee(ie));
124
+ return k(ee(ie));
125
125
  } catch {
126
126
  return null;
127
127
  }
@@ -129,14 +129,14 @@ function fn() {
129
129
  }
130
130
  return null;
131
131
  }
132
- var X = Object.assign, oe = 0, ae, Q, pe, Ce, m, P, V;
132
+ var X = Object.assign, oe = 0, ae, Q, he, xe, m, P, V;
133
133
  function W() {
134
134
  }
135
135
  W.__reactDisabledLog = !0;
136
136
  function I() {
137
137
  {
138
138
  if (oe === 0) {
139
- ae = console.log, Q = console.info, pe = console.warn, Ce = console.error, m = console.group, P = console.groupCollapsed, V = console.groupEnd;
139
+ ae = console.log, Q = console.info, he = console.warn, xe = console.error, m = console.group, P = console.groupCollapsed, V = console.groupEnd;
140
140
  var o = {
141
141
  configurable: !0,
142
142
  enumerable: !0,
@@ -172,10 +172,10 @@ function fn() {
172
172
  value: Q
173
173
  }),
174
174
  warn: X({}, o, {
175
- value: pe
175
+ value: he
176
176
  }),
177
177
  error: X({}, o, {
178
- value: Ce
178
+ value: xe
179
179
  }),
180
180
  group: X({}, o, {
181
181
  value: m
@@ -205,13 +205,13 @@ function fn() {
205
205
  ` + $ + o;
206
206
  }
207
207
  }
208
- var J = !1, q;
208
+ var Z = !1, q;
209
209
  {
210
210
  var fe = typeof WeakMap == "function" ? WeakMap : Map;
211
211
  q = new fe();
212
212
  }
213
- function w(o, v) {
214
- if (!o || J)
213
+ function E(o, v) {
214
+ if (!o || Z)
215
215
  return "";
216
216
  {
217
217
  var T = q.get(o);
@@ -219,7 +219,7 @@ function fn() {
219
219
  return T;
220
220
  }
221
221
  var B;
222
- J = !0;
222
+ Z = !0;
223
223
  var te = Error.prepareStackTrace;
224
224
  Error.prepareStackTrace = void 0;
225
225
  var ie;
@@ -236,39 +236,39 @@ function fn() {
236
236
  }), typeof Reflect == "object" && Reflect.construct) {
237
237
  try {
238
238
  Reflect.construct(ee, []);
239
- } catch (xe) {
240
- B = xe;
239
+ } catch (Ce) {
240
+ B = Ce;
241
241
  }
242
242
  Reflect.construct(o, [], ee);
243
243
  } else {
244
244
  try {
245
245
  ee.call();
246
- } catch (xe) {
247
- B = xe;
246
+ } catch (Ce) {
247
+ B = Ce;
248
248
  }
249
249
  o.call(ee.prototype);
250
250
  }
251
251
  } else {
252
252
  try {
253
253
  throw Error();
254
- } catch (xe) {
255
- B = xe;
254
+ } catch (Ce) {
255
+ B = Ce;
256
256
  }
257
257
  o();
258
258
  }
259
- } catch (xe) {
260
- if (xe && B && typeof xe.stack == "string") {
261
- for (var G = xe.stack.split(`
259
+ } catch (Ce) {
260
+ if (Ce && B && typeof Ce.stack == "string") {
261
+ for (var J = Ce.stack.split(`
262
262
  `), me = B.stack.split(`
263
- `), ce = G.length - 1, ue = me.length - 1; ce >= 1 && ue >= 0 && G[ce] !== me[ue]; )
263
+ `), ce = J.length - 1, ue = me.length - 1; ce >= 1 && ue >= 0 && J[ce] !== me[ue]; )
264
264
  ue--;
265
265
  for (; ce >= 1 && ue >= 0; ce--, ue--)
266
- if (G[ce] !== me[ue]) {
266
+ if (J[ce] !== me[ue]) {
267
267
  if (ce !== 1 || ue !== 1)
268
268
  do
269
- if (ce--, ue--, ue < 0 || G[ce] !== me[ue]) {
269
+ if (ce--, ue--, ue < 0 || J[ce] !== me[ue]) {
270
270
  var be = `
271
- ` + G[ce].replace(" at new ", " at ");
271
+ ` + J[ce].replace(" at new ", " at ");
272
272
  return o.displayName && be.includes("<anonymous>") && (be = be.replace("<anonymous>", o.displayName)), typeof o == "function" && q.set(o, be), be;
273
273
  }
274
274
  while (ce >= 1 && ue >= 0);
@@ -276,13 +276,13 @@ function fn() {
276
276
  }
277
277
  }
278
278
  } finally {
279
- J = !1, O.current = ie, K(), Error.prepareStackTrace = te;
279
+ Z = !1, O.current = ie, K(), Error.prepareStackTrace = te;
280
280
  }
281
281
  var ke = o ? o.displayName || o.name : "", Me = ke ? U(ke) : "";
282
282
  return typeof o == "function" && q.set(o, Me), Me;
283
283
  }
284
284
  function ve(o, v, T) {
285
- return w(o, !1);
285
+ return E(o, !1);
286
286
  }
287
287
  function Te(o) {
288
288
  var v = o.prototype;
@@ -292,7 +292,7 @@ function fn() {
292
292
  if (o == null)
293
293
  return "";
294
294
  if (typeof o == "function")
295
- return w(o, Te(o));
295
+ return E(o, Te(o));
296
296
  if (typeof o == "string")
297
297
  return U(o);
298
298
  switch (o) {
@@ -307,7 +307,7 @@ function fn() {
307
307
  return ve(o.render);
308
308
  case p:
309
309
  return Y(o.type, v, T);
310
- case E: {
310
+ case w: {
311
311
  var B = o, te = B._payload, ie = B._init;
312
312
  try {
313
313
  return Y(ie(te), v, T);
@@ -330,17 +330,17 @@ function fn() {
330
330
  var ie = Function.call.bind(le);
331
331
  for (var ee in o)
332
332
  if (ie(o, ee)) {
333
- var G = void 0;
333
+ var J = void 0;
334
334
  try {
335
335
  if (typeof o[ee] != "function") {
336
336
  var me = Error((B || "React class") + ": " + T + " type `" + ee + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[ee] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
337
  throw me.name = "Invariant Violation", me;
338
338
  }
339
- G = o[ee](v, ee, B, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
339
+ J = o[ee](v, ee, B, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
340
  } catch (ce) {
341
- G = ce;
341
+ J = ce;
342
342
  }
343
- G && !(G instanceof Error) && (we(te), j("%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).", B || "React class", T, ee, typeof G), we(null)), G instanceof Error && !(G.message in je) && (je[G.message] = !0, we(te), j("Failed %s type: %s", T, G.message), we(null));
343
+ J && !(J instanceof Error) && (we(te), j("%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).", B || "React class", T, ee, typeof J), we(null)), J instanceof Error && !(J.message in je) && (je[J.message] = !0, we(te), j("Failed %s type: %s", T, J.message), we(null));
344
344
  }
345
345
  }
346
346
  }
@@ -416,7 +416,7 @@ function fn() {
416
416
  }
417
417
  }
418
418
  var Gr = function(o, v, T, B, te, ie, ee) {
419
- var G = {
419
+ var J = {
420
420
  // This tag allows us to uniquely identify this as a React Element
421
421
  $$typeof: r,
422
422
  // Built-in properties that belong on the element
@@ -427,27 +427,27 @@ function fn() {
427
427
  // Record the component responsible for creating this element.
428
428
  _owner: ie
429
429
  };
430
- return G._store = {}, Object.defineProperty(G._store, "validated", {
430
+ return J._store = {}, Object.defineProperty(J._store, "validated", {
431
431
  configurable: !1,
432
432
  enumerable: !1,
433
433
  writable: !0,
434
434
  value: !1
435
- }), Object.defineProperty(G, "_self", {
435
+ }), Object.defineProperty(J, "_self", {
436
436
  configurable: !1,
437
437
  enumerable: !1,
438
438
  writable: !1,
439
439
  value: B
440
- }), Object.defineProperty(G, "_source", {
440
+ }), Object.defineProperty(J, "_source", {
441
441
  configurable: !1,
442
442
  enumerable: !1,
443
443
  writable: !1,
444
444
  value: te
445
- }), Object.freeze && (Object.freeze(G.props), Object.freeze(G)), G;
445
+ }), Object.freeze && (Object.freeze(J.props), Object.freeze(J)), J;
446
446
  };
447
447
  function Jr(o, v, T, B, te) {
448
448
  {
449
- var ie, ee = {}, G = null, me = null;
450
- T !== void 0 && (wt(T), G = "" + T), Ur(v) && (wt(v.key), G = "" + v.key), Yr(v) && (me = v.ref, qr(v, te));
449
+ var ie, ee = {}, J = null, me = null;
450
+ T !== void 0 && (wt(T), J = "" + T), Ur(v) && (wt(v.key), J = "" + v.key), Yr(v) && (me = v.ref, qr(v, te));
451
451
  for (ie in v)
452
452
  le.call(v, ie) && !Vr.hasOwnProperty(ie) && (ee[ie] = v[ie]);
453
453
  if (o && o.defaultProps) {
@@ -455,11 +455,11 @@ function fn() {
455
455
  for (ie in ce)
456
456
  ee[ie] === void 0 && (ee[ie] = ce[ie]);
457
457
  }
458
- if (G || me) {
458
+ if (J || me) {
459
459
  var ue = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
460
- G && Kr(ee, ue), me && Xr(ee, ue);
460
+ J && Kr(ee, ue), me && Xr(ee, ue);
461
461
  }
462
- return Gr(o, G, me, te, B, Et.current, ee);
462
+ return Gr(o, J, me, te, B, Et.current, ee);
463
463
  }
464
464
  }
465
465
  var tt = C.ReactCurrentOwner, Tt = C.ReactDebugCurrentFrame;
@@ -478,7 +478,7 @@ function fn() {
478
478
  function Ft() {
479
479
  {
480
480
  if (tt.current) {
481
- var o = N(tt.current.type);
481
+ var o = k(tt.current.type);
482
482
  if (o)
483
483
  return `
484
484
 
@@ -513,7 +513,7 @@ Check the top-level render call using <` + T + ">.");
513
513
  return;
514
514
  St[T] = !0;
515
515
  var B = "";
516
- o && o._owner && o._owner !== tt.current && (B = " It was passed a child from " + N(o._owner.type) + "."), Oe(o), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, B), Oe(null);
516
+ o && o._owner && o._owner !== tt.current && (B = " It was passed a child from " + k(o._owner.type) + "."), Oe(o), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, B), Oe(null);
517
517
  }
518
518
  }
519
519
  function Lt(o, v) {
@@ -528,7 +528,7 @@ Check the top-level render call using <` + T + ">.");
528
528
  else if (nt(o))
529
529
  o._store && (o._store.validated = !0);
530
530
  else if (o) {
531
- var te = A(o);
531
+ var te = D(o);
532
532
  if (typeof te == "function" && te !== o.entries)
533
533
  for (var ie = te.call(o), ee; !(ee = ie.next()).done; )
534
534
  nt(ee.value) && Mt(ee.value, v);
@@ -550,11 +550,11 @@ Check the top-level render call using <` + T + ">.");
550
550
  else
551
551
  return;
552
552
  if (T) {
553
- var B = N(v);
553
+ var B = k(v);
554
554
  He(T, o.props, "prop", B, o);
555
555
  } else if (v.PropTypes !== void 0 && !rt) {
556
556
  rt = !0;
557
- var te = N(v);
557
+ var te = k(v);
558
558
  j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", te || "Unknown");
559
559
  }
560
560
  typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -577,12 +577,12 @@ Check the top-level render call using <` + T + ">.");
577
577
  {
578
578
  var ee = F(o);
579
579
  if (!ee) {
580
- var G = "";
581
- (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (G += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
580
+ var J = "";
581
+ (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (J += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
582
582
  var me = Zr();
583
- me ? G += me : G += Ft();
583
+ me ? J += me : J += Ft();
584
584
  var ce;
585
- o === null ? ce = "null" : et(o) ? ce = "array" : o !== void 0 && o.$$typeof === r ? (ce = "<" + (N(o.type) || "Unknown") + " />", G = " Did you accidentally export a JSX literal instead of a component?") : ce = typeof o, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ce, G);
585
+ o === null ? ce = "null" : et(o) ? ce = "array" : o !== void 0 && o.$$typeof === r ? (ce = "<" + (k(o.type) || "Unknown") + " />", J = " Did you accidentally export a JSX literal instead of a component?") : ce = typeof o, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ce, J);
586
586
  }
587
587
  var ue = Jr(o, v, T, te, ie);
588
588
  if (ue == null)
@@ -601,11 +601,11 @@ Check the top-level render call using <` + T + ">.");
601
601
  Lt(be, o);
602
602
  }
603
603
  if (le.call(v, "key")) {
604
- var Me = N(o), xe = Object.keys(v).filter(function(cn) {
604
+ var Me = k(o), Ce = Object.keys(v).filter(function(cn) {
605
605
  return cn !== "key";
606
- }), st = xe.length > 0 ? "{key: someKey, " + xe.join(": ..., ") + ": ...}" : "{key: someKey}";
606
+ }), st = Ce.length > 0 ? "{key: someKey, " + Ce.join(": ..., ") + ": ...}" : "{key: someKey}";
607
607
  if (!Ot[Me + st]) {
608
- var an = xe.length > 0 ? "{" + xe.join(": ..., ") + ": ...}" : "{}";
608
+ var an = Ce.length > 0 ? "{" + Ce.join(": ..., ") + ": ...}" : "{}";
609
609
  j(`A props object containing a "key" prop is being spread into JSX:
610
610
  let props = %s;
611
611
  <%s {...props} />
@@ -806,7 +806,7 @@ function Ue(e) {
806
806
  function It(e) {
807
807
  return H({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 464l256 0c8.8 0 16-7.2 16-16l0-288-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 16zM0 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 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zM192 272l0 128c0 6.5-3.9 12.3-9.9 14.8s-12.9 1.1-17.4-3.5L129.4 376 112 376c-8.8 0-16-7.2-16-16l0-48c0-8.8 7.2-16 16-16l17.4 0 35.3-35.3c4.6-4.6 11.5-5.9 17.4-3.5s9.9 8.3 9.9 14.8zm85.8-4c11.6 20 18.2 43.3 18.2 68s-6.6 48-18.2 68c-6.6 11.5-21.3 15.4-32.8 8.8s-15.4-21.3-8.8-32.8c7.5-12.9 11.8-27.9 11.8-44s-4.3-31.1-11.8-44c-6.6-11.5-2.7-26.2 8.8-32.8s26.2-2.7 32.8 8.8z" }, child: [] }] })(e);
808
808
  }
809
- function he(e) {
809
+ function pe(e) {
810
810
  return H({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16l160 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm97 289c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0L79 303c-9.4 9.4-9.4 24.6 0 33.9l48 48c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-31-31 31-31zM257 255c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l31 31-31 31c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l48-48c9.4-9.4 9.4-24.6 0-33.9l-48-48z" }, child: [] }] })(e);
811
811
  }
812
812
  function $t(e) {
@@ -931,18 +931,18 @@ const Be = (e = () => {
931
931
  Le(r, "onDownload", n);
932
932
  };
933
933
  return /* @__PURE__ */ t.jsx(Pr.Provider, { value: { selectedFiles: n, setSelectedFiles: s, handleDownload: a }, children: e });
934
- }, Fe = () => $e(Pr), Tr = Ie(), Dn = ({ children: e, onPaste: r }) => {
935
- const [n, s] = L(null), { selectedFiles: a, setSelectedFiles: c } = Fe(), i = (d) => {
936
- s({
937
- files: a,
938
- isMoving: d
939
- });
940
- }, l = (d) => {
941
- if (d && !d.isDirectory) return;
942
- const h = n.files, f = n.isMoving ? "move" : "copy";
943
- Le(r, "onPaste", h, d, f), n.isMoving && s(null), c([]);
934
+ }, Fe = () => $e(Pr), Tr = Ie(), Dn = ({ children: e, onPaste: r, onCut: n, onCopy: s }) => {
935
+ const [a, c] = L(null), { selectedFiles: i, setSelectedFiles: l } = Fe(), d = (f) => {
936
+ c({
937
+ files: i,
938
+ isMoving: f
939
+ }), f ? n && n(i) : s && s(i);
940
+ }, h = (f) => {
941
+ if (f && !f.isDirectory) return;
942
+ const p = a.files, w = a.isMoving ? "move" : "copy";
943
+ Le(r, "onPaste", p, f, w), a.isMoving && c(null), l([]);
944
944
  };
945
- return /* @__PURE__ */ t.jsx(Tr.Provider, { value: { clipBoard: n, setClipBoard: s, handleCutCopy: i, handlePasting: l }, children: e });
945
+ return /* @__PURE__ */ t.jsx(Tr.Provider, { value: { clipBoard: a, setClipBoard: c, handleCutCopy: d, handlePasting: h }, children: e });
946
946
  }, Je = () => $e(Tr), Fr = ({
947
947
  allowCreateFolder: e = !0,
948
948
  allowUploadFile: r = !0,
@@ -951,7 +951,7 @@ const Be = (e = () => {
951
951
  triggerAction: a
952
952
  }) => {
953
953
  var b;
954
- const [c, i] = L(!1), { currentFolder: l } = Ee(), { selectedFiles: d, setSelectedFiles: h, handleDownload: f } = Fe(), { clipBoard: p, setClipBoard: E, handleCutCopy: M, handlePasting: S } = Je(), { activeLayout: z } = Se(), A = [
954
+ const [c, i] = L(!1), { currentFolder: l } = Ee(), { selectedFiles: d, setSelectedFiles: h, handleDownload: f } = Fe(), { clipBoard: p, setClipBoard: w, handleCutCopy: S, handlePasting: M } = Je(), { activeLayout: z } = Se(), D = [
955
955
  {
956
956
  icon: /* @__PURE__ */ t.jsx(vr, { size: 17, strokeWidth: 0.3 }),
957
957
  text: "New folder",
@@ -980,23 +980,23 @@ const Be = (e = () => {
980
980
  icon: /* @__PURE__ */ t.jsx(yr, { size: 16 }),
981
981
  title: "Refresh",
982
982
  onClick: () => {
983
- Le(s, "onRefresh"), E(null);
983
+ Le(s, "onRefresh"), w(null);
984
984
  }
985
985
  }
986
986
  ];
987
987
  function j() {
988
- S(l);
988
+ M(l);
989
989
  }
990
990
  const y = () => {
991
991
  f(), h([]);
992
992
  };
993
993
  return d.length > 0 ? /* @__PURE__ */ t.jsx("div", { className: "toolbar file-selected", children: /* @__PURE__ */ t.jsxs("div", { className: "file-action-container", children: [
994
994
  /* @__PURE__ */ t.jsxs("div", { children: [
995
- /* @__PURE__ */ t.jsxs("button", { className: "item-action file-action", onClick: () => M(!0), children: [
995
+ /* @__PURE__ */ t.jsxs("button", { className: "item-action file-action", onClick: () => S(!0), children: [
996
996
  /* @__PURE__ */ t.jsx(gr, { size: 18 }),
997
997
  /* @__PURE__ */ t.jsx("span", { children: "Cut" })
998
998
  ] }),
999
- /* @__PURE__ */ t.jsxs("button", { className: "item-action file-action", onClick: () => M(!1), children: [
999
+ /* @__PURE__ */ t.jsxs("button", { className: "item-action file-action", onClick: () => S(!1), children: [
1000
1000
  /* @__PURE__ */ t.jsx(pr, { strokeWidth: 0.1, size: 17 }),
1001
1001
  /* @__PURE__ */ t.jsx("span", { children: "Copy" })
1002
1002
  ] }),
@@ -1056,7 +1056,7 @@ const Be = (e = () => {
1056
1056
  }
1057
1057
  )
1058
1058
  ] }) }) : /* @__PURE__ */ t.jsx("div", { className: "toolbar", children: /* @__PURE__ */ t.jsxs("div", { className: "fm-toolbar", children: [
1059
- /* @__PURE__ */ t.jsx("div", { children: A.filter((u) => u.permission).map((u, g) => /* @__PURE__ */ t.jsxs("button", { className: "item-action", onClick: u.onClick, children: [
1059
+ /* @__PURE__ */ t.jsx("div", { children: D.filter((u) => u.permission).map((u, g) => /* @__PURE__ */ t.jsxs("button", { className: "item-action", onClick: u.onClick, children: [
1060
1060
  u.icon,
1061
1061
  /* @__PURE__ */ t.jsx("span", { children: u.text })
1062
1062
  ] }, g)) }),
@@ -1250,54 +1250,54 @@ function rs({
1250
1250
  const d = Sr(n), h = Gn(i ? `${i}` : void 0), [f, p] = Hn(
1251
1251
  s,
1252
1252
  a
1253
- ), E = de(f), [M, S] = L(!1), z = Vn(), A = c ?? z, C = de(), j = de(), y = de(null), [b, u] = L(null);
1253
+ ), w = de(f), [S, M] = L(!1), z = Vn(), D = c ?? z, C = de(), j = de(), y = de(null), [b, u] = L(null);
1254
1254
  es(y);
1255
1255
  const g = `${l.collapsedHeight || 0}px`;
1256
- function k(x) {
1256
+ function _(x) {
1257
1257
  if (!y.current)
1258
1258
  return;
1259
1259
  const R = y.current;
1260
1260
  for (const F in x) {
1261
- const D = x[F];
1262
- D ? R.style[F] = D : R.style.removeProperty(F);
1261
+ const A = x[F];
1262
+ A ? R.style[F] = A : R.style.removeProperty(F);
1263
1263
  }
1264
1264
  }
1265
1265
  return ts(() => {
1266
- if (!y.current || f === E.current)
1266
+ if (!y.current || f === w.current)
1267
1267
  return;
1268
- E.current = f;
1269
- function R(_) {
1270
- return A ? 0 : e ?? Zn(_);
1268
+ w.current = f;
1269
+ function R(N) {
1270
+ return D ? 0 : e ?? Zn(N);
1271
1271
  }
1272
- const F = (_) => `height ${R(_)}ms ${r}`, D = (_) => {
1273
- function N() {
1274
- f ? (k({
1272
+ const F = (N) => `height ${R(N)}ms ${r}`, A = (N) => {
1273
+ function k() {
1274
+ f ? (_({
1275
1275
  height: "",
1276
1276
  overflow: "",
1277
1277
  transition: "",
1278
1278
  display: ""
1279
- }), d("expandEnd")) : (k({ transition: "" }), d("collapseEnd")), S(!1);
1279
+ }), d("expandEnd")) : (_({ transition: "" }), d("collapseEnd")), M(!1);
1280
1280
  }
1281
- j.current && Ut(j.current), j.current = Jn(N, _);
1281
+ j.current && Ut(j.current), j.current = Jn(k, N);
1282
1282
  };
1283
- return S(!0), f ? C.current = requestAnimationFrame(() => {
1284
- d("expandStart"), k({
1283
+ return M(!0), f ? C.current = requestAnimationFrame(() => {
1284
+ d("expandStart"), _({
1285
1285
  display: "block",
1286
1286
  overflow: "hidden",
1287
1287
  height: g
1288
1288
  }), C.current = requestAnimationFrame(() => {
1289
1289
  d("expanding");
1290
- const _ = qt(y);
1291
- D(R(_)), y.current && (y.current.style.transition = F(_), y.current.style.height = `${_}px`);
1290
+ const N = qt(y);
1291
+ A(R(N)), y.current && (y.current.style.transition = F(N), y.current.style.height = `${N}px`);
1292
1292
  });
1293
1293
  }) : C.current = requestAnimationFrame(() => {
1294
1294
  d("collapseStart");
1295
- const _ = qt(y);
1296
- D(R(_)), k({
1297
- transition: F(_),
1298
- height: `${_}px`
1295
+ const N = qt(y);
1296
+ A(R(N)), _({
1297
+ transition: F(N),
1298
+ height: `${N}px`
1299
1299
  }), C.current = requestAnimationFrame(() => {
1300
- d("collapsing"), k({
1300
+ d("collapsing"), _({
1301
1301
  height: g,
1302
1302
  overflow: "hidden"
1303
1303
  });
@@ -1308,7 +1308,7 @@ function rs({
1308
1308
  }, [
1309
1309
  f,
1310
1310
  g,
1311
- A,
1311
+ D,
1312
1312
  e,
1313
1313
  r,
1314
1314
  d
@@ -1316,20 +1316,20 @@ function rs({
1316
1316
  isExpanded: f,
1317
1317
  setExpanded: p,
1318
1318
  getToggleProps(x) {
1319
- const { disabled: R, onClick: F, refKey: D, ..._ } = {
1319
+ const { disabled: R, onClick: F, refKey: A, ...N } = {
1320
1320
  refKey: "ref",
1321
1321
  onClick() {
1322
1322
  },
1323
1323
  disabled: !1,
1324
1324
  ...x
1325
- }, N = b ? b.tagName === "BUTTON" : void 0, X = x == null ? void 0 : x[D || "ref"], oe = {
1325
+ }, k = b ? b.tagName === "BUTTON" : void 0, X = x == null ? void 0 : x[A || "ref"], oe = {
1326
1326
  id: `react-collapsed-toggle-${h}`,
1327
1327
  "aria-controls": `react-collapsed-panel-${h}`,
1328
1328
  "aria-expanded": f,
1329
- onClick(pe) {
1330
- R || (F == null || F(pe), p((Ce) => !Ce));
1329
+ onClick(he) {
1330
+ R || (F == null || F(he), p((xe) => !xe));
1331
1331
  },
1332
- [D || "ref"]: Kt(X, u)
1332
+ [A || "ref"]: Kt(X, u)
1333
1333
  }, ae = {
1334
1334
  type: "button",
1335
1335
  disabled: R ? !0 : void 0
@@ -1338,25 +1338,25 @@ function rs({
1338
1338
  role: "button",
1339
1339
  tabIndex: R ? -1 : 0
1340
1340
  };
1341
- return N === !1 ? { ...oe, ...Q, ..._ } : N === !0 ? { ...oe, ...ae, ..._ } : {
1341
+ return k === !1 ? { ...oe, ...Q, ...N } : k === !0 ? { ...oe, ...ae, ...N } : {
1342
1342
  ...oe,
1343
1343
  ...ae,
1344
1344
  ...Q,
1345
- ..._
1345
+ ...N
1346
1346
  };
1347
1347
  },
1348
1348
  getCollapseProps(x) {
1349
- const { style: R, refKey: F } = { refKey: "ref", style: {}, ...x }, D = x == null ? void 0 : x[F || "ref"];
1349
+ const { style: R, refKey: F } = { refKey: "ref", style: {}, ...x }, A = x == null ? void 0 : x[F || "ref"];
1350
1350
  return {
1351
1351
  id: `react-collapsed-panel-${h}`,
1352
1352
  "aria-hidden": !f,
1353
1353
  "aria-labelledby": `react-collapsed-toggle-${h}`,
1354
1354
  role: "region",
1355
1355
  ...x,
1356
- [F || "ref"]: Kt(y, D),
1356
+ [F || "ref"]: Kt(y, A),
1357
1357
  style: {
1358
1358
  boxSizing: "border-box",
1359
- ...!M && !f ? {
1359
+ ...!S && !f ? {
1360
1360
  // collapsed and not animating
1361
1361
  display: g === "0px" ? "none" : "block",
1362
1362
  height: g,
@@ -1453,7 +1453,7 @@ const Mr = ({ folder: e }) => {
1453
1453
  };
1454
1454
  Lr.displayName = "NavigationPane";
1455
1455
  const Or = () => {
1456
- const [e, r] = L([]), [n, s] = L([]), [a, c] = L([]), [i, l] = L(!1), { currentPath: d, setCurrentPath: h } = Ee(), f = de(null), p = de([]), E = de(null), M = Be(() => {
1456
+ const [e, r] = L([]), [n, s] = L([]), [a, c] = L([]), [i, l] = L(!1), { currentPath: d, setCurrentPath: h } = Ee(), f = de(null), p = de([]), w = de(null), S = Be(() => {
1457
1457
  l(!1);
1458
1458
  });
1459
1459
  se(() => {
@@ -1465,22 +1465,22 @@ const Or = () => {
1465
1465
  }));
1466
1466
  }), s([]), c([]);
1467
1467
  }, [d]);
1468
- const S = (j) => {
1468
+ const M = (j) => {
1469
1469
  h(j);
1470
1470
  }, z = () => {
1471
1471
  const j = f.current.clientWidth, y = getComputedStyle(f.current), b = parseFloat(y.paddingLeft), u = n.length > 0 ? 1 : 0, g = parseFloat(y.gap) * (e.length + u);
1472
1472
  return j - (b + g);
1473
- }, A = () => {
1473
+ }, D = () => {
1474
1474
  var u;
1475
- const j = z(), y = p.current.reduce((g, k) => k ? g + k.clientWidth : g, 0), b = ((u = E.current) == null ? void 0 : u.clientWidth) || 0;
1475
+ const j = z(), y = p.current.reduce((g, _) => _ ? g + _.clientWidth : g, 0), b = ((u = w.current) == null ? void 0 : u.clientWidth) || 0;
1476
1476
  return j - (y + b);
1477
1477
  }, C = () => f.current.scrollWidth > f.current.clientWidth;
1478
1478
  return se(() => {
1479
1479
  var j;
1480
1480
  if (C()) {
1481
1481
  const y = e[1], b = (j = p.current[1]) == null ? void 0 : j.clientWidth;
1482
- c((u) => [...u, b]), s((u) => [...u, y]), r((u) => u.filter((g, k) => k !== 1));
1483
- } else if (n.length > 0 && A() > a.at(-1)) {
1482
+ c((u) => [...u, b]), s((u) => [...u, y]), r((u) => u.filter((g, _) => _ !== 1));
1483
+ } else if (n.length > 0 && D() > a.at(-1)) {
1484
1484
  const y = [e[0], n.at(-1), ...e.slice(1)];
1485
1485
  r(y), s((b) => b.slice(0, -1)), c((b) => b.slice(0, -1));
1486
1486
  }
@@ -1490,7 +1490,7 @@ const Or = () => {
1490
1490
  "span",
1491
1491
  {
1492
1492
  className: "folder-name",
1493
- onClick: () => S(j.path),
1493
+ onClick: () => M(j.path),
1494
1494
  ref: (b) => p.current[y] = b,
1495
1495
  children: [
1496
1496
  y === 0 ? /* @__PURE__ */ t.jsx(jn, {}) : /* @__PURE__ */ t.jsx(Pn, {}),
@@ -1503,17 +1503,17 @@ const Or = () => {
1503
1503
  {
1504
1504
  className: "folder-name folder-name-btn",
1505
1505
  onClick: () => l(!0),
1506
- ref: E,
1506
+ ref: w,
1507
1507
  title: "Show more folders",
1508
1508
  children: /* @__PURE__ */ t.jsx(Rn, { size: 22, className: "hidden-folders" })
1509
1509
  }
1510
1510
  )
1511
1511
  ] }, y)) }),
1512
- i && /* @__PURE__ */ t.jsx("ul", { ref: M.ref, className: "hidden-folders-container", children: n.map((j, y) => /* @__PURE__ */ t.jsx(
1512
+ i && /* @__PURE__ */ t.jsx("ul", { ref: S.ref, className: "hidden-folders-container", children: n.map((j, y) => /* @__PURE__ */ t.jsx(
1513
1513
  "li",
1514
1514
  {
1515
1515
  onClick: () => {
1516
- S(j.path), l(!1);
1516
+ M(j.path), l(!1);
1517
1517
  },
1518
1518
  children: j.name
1519
1519
  },
@@ -1540,23 +1540,23 @@ const Xe = (e) => ({
1540
1540
  xls: /* @__PURE__ */ t.jsx($t, { size: e }),
1541
1541
  xlsx: /* @__PURE__ */ t.jsx($t, { size: e }),
1542
1542
  exe: /* @__PURE__ */ t.jsx(Sn, { size: e }),
1543
- html: /* @__PURE__ */ t.jsx(he, { size: e }),
1544
- css: /* @__PURE__ */ t.jsx(he, { size: e }),
1545
- js: /* @__PURE__ */ t.jsx(he, { size: e }),
1546
- php: /* @__PURE__ */ t.jsx(he, { size: e }),
1547
- py: /* @__PURE__ */ t.jsx(he, { size: e }),
1548
- java: /* @__PURE__ */ t.jsx(he, { size: e }),
1549
- cpp: /* @__PURE__ */ t.jsx(he, { size: e }),
1550
- c: /* @__PURE__ */ t.jsx(he, { size: e }),
1551
- ts: /* @__PURE__ */ t.jsx(he, { size: e }),
1552
- jsx: /* @__PURE__ */ t.jsx(he, { size: e }),
1553
- tsx: /* @__PURE__ */ t.jsx(he, { size: e }),
1554
- json: /* @__PURE__ */ t.jsx(he, { size: e }),
1555
- xml: /* @__PURE__ */ t.jsx(he, { size: e }),
1556
- sql: /* @__PURE__ */ t.jsx(he, { size: e }),
1557
- csv: /* @__PURE__ */ t.jsx(he, { size: e }),
1558
- md: /* @__PURE__ */ t.jsx(he, { size: e }),
1559
- svg: /* @__PURE__ */ t.jsx(he, { size: e })
1543
+ html: /* @__PURE__ */ t.jsx(pe, { size: e }),
1544
+ css: /* @__PURE__ */ t.jsx(pe, { size: e }),
1545
+ js: /* @__PURE__ */ t.jsx(pe, { size: e }),
1546
+ php: /* @__PURE__ */ t.jsx(pe, { size: e }),
1547
+ py: /* @__PURE__ */ t.jsx(pe, { size: e }),
1548
+ java: /* @__PURE__ */ t.jsx(pe, { size: e }),
1549
+ cpp: /* @__PURE__ */ t.jsx(pe, { size: e }),
1550
+ c: /* @__PURE__ */ t.jsx(pe, { size: e }),
1551
+ ts: /* @__PURE__ */ t.jsx(pe, { size: e }),
1552
+ jsx: /* @__PURE__ */ t.jsx(pe, { size: e }),
1553
+ tsx: /* @__PURE__ */ t.jsx(pe, { size: e }),
1554
+ json: /* @__PURE__ */ t.jsx(pe, { size: e }),
1555
+ xml: /* @__PURE__ */ t.jsx(pe, { size: e }),
1556
+ sql: /* @__PURE__ */ t.jsx(pe, { size: e }),
1557
+ csv: /* @__PURE__ */ t.jsx(pe, { size: e }),
1558
+ md: /* @__PURE__ */ t.jsx(pe, { size: e }),
1559
+ svg: /* @__PURE__ */ t.jsx(pe, { size: e })
1560
1560
  }), kr = (e, r, n) => {
1561
1561
  if (n.find((s) => s.name === e)) {
1562
1562
  const s = "", a = e;
@@ -1565,8 +1565,8 @@ const Xe = (e) => ({
1565
1565
  n.forEach((h) => {
1566
1566
  const f = h.isDirectory ? h.name : h.name.split(".").slice(0, -1).join(".");
1567
1567
  if (i.test(f)) {
1568
- const p = f.split(`${a} (`).pop().slice(0, -1), E = parseInt(p);
1569
- !isNaN(E) && E > c && (c = E);
1568
+ const p = f.split(`${a} (`).pop().slice(0, -1), w = parseInt(p);
1569
+ !isNaN(w) && w > c && (c = w);
1570
1570
  }
1571
1571
  });
1572
1572
  const l = ` (${++c})`;
@@ -1586,9 +1586,9 @@ const Xe = (e) => ({
1586
1586
  rows: i
1587
1587
  }
1588
1588
  ), Nr = ({ message: e, xPlacement: r, yPlacement: n }) => /* @__PURE__ */ t.jsx("p", { className: `error-tooltip ${r} ${n}`, children: e }), is = 220, cs = ({ filesViewRef: e, file: r, onCreateFolder: n, triggerAction: s }) => {
1589
- const [a, c] = L(r.name), [i, l] = L(!1), [d, h] = L(""), [f, p] = L("right"), [E, M] = L("bottom"), S = Be((g) => {
1589
+ const [a, c] = L(r.name), [i, l] = L(!1), [d, h] = L(""), [f, p] = L("right"), [w, S] = L("bottom"), M = Be((g) => {
1590
1590
  g.preventDefault(), g.stopPropagation();
1591
- }), { currentFolder: z, currentPathFiles: A, setCurrentPathFiles: C } = Ee(), { activeLayout: j } = Se(), y = (g) => {
1591
+ }), { currentFolder: z, currentPathFiles: D, setCurrentPathFiles: C } = Ee(), { activeLayout: j } = Se(), y = (g) => {
1592
1592
  c(g.target.value), l(!1);
1593
1593
  }, b = (g) => {
1594
1594
  if (g.stopPropagation(), g.key === "Enter") {
@@ -1610,26 +1610,26 @@ const Xe = (e) => ({
1610
1610
  function u() {
1611
1611
  var R, F;
1612
1612
  let g = a.trim();
1613
- const k = A.filter((D) => !(D.key && D.key === r.key));
1614
- if (k.find((D) => D.name.toLowerCase() === g.toLowerCase())) {
1615
- h(`This destination already contains a folder named '${g}'.`), l(!0), (R = S.ref.current) == null || R.focus(), (F = S.ref.current) == null || F.select(), S.setIsClicked(!1);
1613
+ const _ = D.filter((A) => !(A.key && A.key === r.key));
1614
+ if (_.find((A) => A.name.toLowerCase() === g.toLowerCase())) {
1615
+ h(`This destination already contains a folder named '${g}'.`), l(!0), (R = M.ref.current) == null || R.focus(), (F = M.ref.current) == null || F.select(), M.setIsClicked(!1);
1616
1616
  return;
1617
1617
  }
1618
- g === "" && (g = kr("New Folder", !0, k)), Le(n, "onCreateFolder", g, z), C((D) => D.filter((_) => _.key !== r.key)), s.close();
1618
+ g === "" && (g = kr("New Folder", !0, _)), Le(n, "onCreateFolder", g, z), C((A) => A.filter((N) => N.key !== r.key)), s.close();
1619
1619
  }
1620
1620
  return se(() => {
1621
- var g, k, x;
1622
- if ((g = S.ref.current) == null || g.focus(), (k = S.ref.current) == null || k.select(), (x = S.ref) != null && x.current) {
1623
- const _ = e.current.getBoundingClientRect(), N = S.ref.current, X = N.getBoundingClientRect();
1624
- _.right - X.left > 313 ? p("right") : p("left"), _.bottom - (X.top + N.clientHeight) > 88 ? M("bottom") : M("top");
1621
+ var g, _, x;
1622
+ if ((g = M.ref.current) == null || g.focus(), (_ = M.ref.current) == null || _.select(), (x = M.ref) != null && x.current) {
1623
+ const N = e.current.getBoundingClientRect(), k = M.ref.current, X = k.getBoundingClientRect();
1624
+ N.right - X.left > 313 ? p("right") : p("left"), N.bottom - (X.top + k.clientHeight) > 88 ? S("bottom") : S("top");
1625
1625
  }
1626
1626
  }, []), se(() => {
1627
- S.isClicked && u();
1628
- }, [S.isClicked]), /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1627
+ M.isClicked && u();
1628
+ }, [M.isClicked]), /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1629
1629
  /* @__PURE__ */ t.jsx(
1630
1630
  _r,
1631
1631
  {
1632
- nameInputRef: S.ref,
1632
+ nameInputRef: M.ref,
1633
1633
  maxLength: is,
1634
1634
  value: a,
1635
1635
  onChange: y,
@@ -1643,7 +1643,7 @@ const Xe = (e) => ({
1643
1643
  {
1644
1644
  message: d,
1645
1645
  xPlacement: f,
1646
- yPlacement: E
1646
+ yPlacement: w
1647
1647
  }
1648
1648
  )
1649
1649
  ] });
@@ -1691,7 +1691,7 @@ const zr = ({
1691
1691
  }
1692
1692
  );
1693
1693
  }, _e = (e) => e.split(".").pop(), us = 220, ds = ({ filesViewRef: e, file: r, onRename: n, triggerAction: s }) => {
1694
- const [a, c] = L(r == null ? void 0 : r.name), [i, l] = L(!1), [d, h] = L(!1), [f, p] = L(""), [E, M] = L("right"), [S, z] = L("bottom"), { currentPathFiles: A, setCurrentPathFiles: C } = Ee(), { activeLayout: j } = Se(), y = de(null), b = Be((x) => {
1694
+ const [a, c] = L(r == null ? void 0 : r.name), [i, l] = L(!1), [d, h] = L(!1), [f, p] = L(""), [w, S] = L("right"), [M, z] = L("bottom"), { currentPathFiles: D, setCurrentPathFiles: C } = Ee(), { activeLayout: j } = Se(), y = de(null), b = Be((x) => {
1695
1695
  var R;
1696
1696
  (R = y.current) != null && R.contains(x.target) || (x.preventDefault(), x.stopPropagation());
1697
1697
  }), u = (x) => {
@@ -1717,7 +1717,7 @@ const zr = ({
1717
1717
  (R) => R.map((F) => (F.key === r.key && (F.isEditing = !1), F))
1718
1718
  ), s.close();
1719
1719
  return;
1720
- } else if (A.some((R) => R.name === a)) {
1720
+ } else if (D.some((R) => R.name === a)) {
1721
1721
  h(!0), p(`This destination already contains a folder named '${a}'.`), b.setIsClicked(!1);
1722
1722
  return;
1723
1723
  } else if (!r.isDirectory && !x) {
@@ -1729,23 +1729,23 @@ const zr = ({
1729
1729
  }
1730
1730
  h(!1), Le(n, "onRename", r, a), C((R) => R.filter((F) => F.key !== r.key)), s.close();
1731
1731
  }
1732
- const k = () => {
1733
- var x, R, F, D, _, N;
1732
+ const _ = () => {
1733
+ var x, R, F, A, N, k;
1734
1734
  if ((R = (x = b.ref) == null ? void 0 : x.current) == null || R.focus(), r.isDirectory)
1735
- (D = (F = b.ref) == null ? void 0 : F.current) == null || D.select();
1735
+ (A = (F = b.ref) == null ? void 0 : F.current) == null || A.select();
1736
1736
  else {
1737
1737
  const X = _e(r.name), oe = r.name.length - X.length - 1;
1738
- (N = (_ = b.ref) == null ? void 0 : _.current) == null || N.setSelectionRange(0, oe);
1738
+ (k = (N = b.ref) == null ? void 0 : N.current) == null || k.setSelectionRange(0, oe);
1739
1739
  }
1740
1740
  };
1741
1741
  return se(() => {
1742
1742
  var x;
1743
- if (k(), (x = b.ref) != null && x.current) {
1744
- const _ = e.current.getBoundingClientRect(), N = b.ref.current, X = N.getBoundingClientRect();
1745
- _.right - X.left > 313 ? M("right") : M("left"), _.bottom - (X.top + N.clientHeight) > 88 ? z("bottom") : z("top");
1743
+ if (_(), (x = b.ref) != null && x.current) {
1744
+ const N = e.current.getBoundingClientRect(), k = b.ref.current, X = k.getBoundingClientRect();
1745
+ N.right - X.left > 313 ? S("right") : S("left"), N.bottom - (X.top + k.clientHeight) > 88 ? z("bottom") : z("top");
1746
1746
  }
1747
1747
  }, []), se(() => {
1748
- b.isClicked && g(!1), k();
1748
+ b.isClicked && g(!1), _();
1749
1749
  }, [b.isClicked]), /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1750
1750
  /* @__PURE__ */ t.jsx(
1751
1751
  _r,
@@ -1765,8 +1765,8 @@ const zr = ({
1765
1765
  Nr,
1766
1766
  {
1767
1767
  message: f,
1768
- xPlacement: E,
1769
- yPlacement: S
1768
+ xPlacement: w,
1769
+ yPlacement: M
1770
1770
  }
1771
1771
  ),
1772
1772
  /* @__PURE__ */ t.jsx(
@@ -1853,10 +1853,10 @@ const zr = ({
1853
1853
  handleContextMenu: h,
1854
1854
  setLastSelectedFile: f
1855
1855
  }) => {
1856
- var fe, w, ve, Te;
1857
- const [p, E] = L(!1), [M, S] = L(0), [z, A] = L("hidden"), [C, j] = L(""), [y, b] = L(null), { activeLayout: u } = Se(), g = u === "grid" ? 48 : 20, k = Xe(g), { setCurrentPath: x, currentPathFiles: R } = Ee(), { setSelectedFiles: F } = Fe(), { clipBoard: D, handleCutCopy: _, setClipBoard: N, handlePasting: X } = Je(), oe = de(null), ae = Xe(it), Q = (D == null ? void 0 : D.isMoving) && D.files.find((Y) => Y.name === r.name && Y.path === r.path), pe = () => {
1856
+ var fe, E, ve, Te;
1857
+ const [p, w] = L(!1), [S, M] = L(0), [z, D] = L("hidden"), [C, j] = L(""), [y, b] = L(null), { activeLayout: u } = Se(), g = u === "grid" ? 48 : 20, _ = Xe(g), { setCurrentPath: x, currentPathFiles: R } = Ee(), { setSelectedFiles: F } = Fe(), { clipBoard: A, handleCutCopy: N, setClipBoard: k, handlePasting: X } = Je(), oe = de(null), ae = Xe(it), Q = (A == null ? void 0 : A.isMoving) && A.files.find((Y) => Y.name === r.name && Y.path === r.path), he = () => {
1858
1858
  c(r), r.isDirectory ? (x(r.path), F([])) : a && d.show("previewFile");
1859
- }, Ce = (Y, le) => {
1859
+ }, xe = (Y, le) => {
1860
1860
  if (l.length > 0 && Y) {
1861
1861
  let je = !1, Re = l[0], we = e;
1862
1862
  if (Re >= we) {
@@ -1871,34 +1871,34 @@ const zr = ({
1871
1871
  }) : F([r]);
1872
1872
  }, m = (Y) => {
1873
1873
  if (Y.stopPropagation(), r.isEditing) return;
1874
- Ce(Y.shiftKey, Y.ctrlKey);
1874
+ xe(Y.shiftKey, Y.ctrlKey);
1875
1875
  const le = (/* @__PURE__ */ new Date()).getTime();
1876
- if (le - M < 300) {
1877
- pe();
1876
+ if (le - S < 300) {
1877
+ he();
1878
1878
  return;
1879
1879
  }
1880
- S(le);
1880
+ M(le);
1881
1881
  }, P = (Y) => {
1882
- Y.key === "Enter" && (Y.stopPropagation(), F([r]), pe());
1882
+ Y.key === "Enter" && (Y.stopPropagation(), F([r]), he());
1883
1883
  }, V = (Y) => {
1884
1884
  Y.stopPropagation(), Y.preventDefault(), !r.isEditing && (p || F([r]), f(r), h(Y, !0));
1885
1885
  }, W = () => {
1886
- A("visible");
1886
+ D("visible");
1887
1887
  }, I = () => {
1888
- !p && A("hidden");
1888
+ !p && D("hidden");
1889
1889
  }, K = (Y) => {
1890
- Y.target.checked ? F((le) => [...le, r]) : F((le) => le.filter((je) => je.name !== r.name && je.path !== r.path)), E(Y.target.checked);
1890
+ Y.target.checked ? F((le) => [...le, r]) : F((le) => le.filter((je) => je.name !== r.name && je.path !== r.path)), w(Y.target.checked);
1891
1891
  }, O = (Y) => {
1892
- Y.dataTransfer.setDragImage(oe.current, 30, 50), Y.dataTransfer.effectAllowed = "copy", _(!0);
1893
- }, $ = () => N(null), U = (Y) => {
1892
+ Y.dataTransfer.setDragImage(oe.current, 30, 50), Y.dataTransfer.effectAllowed = "copy", N(!0);
1893
+ }, $ = () => k(null), U = (Y) => {
1894
1894
  Y.preventDefault(), p || !r.isDirectory ? Y.dataTransfer.dropEffect = "none" : (b({ x: Y.clientX, y: Y.clientY + 12 }), Y.dataTransfer.dropEffect = "copy", j("file-drop-zone"));
1895
- }, J = (Y) => {
1895
+ }, Z = (Y) => {
1896
1896
  Y.currentTarget.contains(Y.relatedTarget) || (j((le) => le && ""), b(null));
1897
1897
  }, q = (Y) => {
1898
1898
  Y.preventDefault(), !(p || !r.isDirectory) && (X(r), j((le) => le && ""), b(null));
1899
1899
  };
1900
1900
  return se(() => {
1901
- E(l.includes(e)), A(l.includes(e) ? "visible" : "hidden");
1901
+ w(l.includes(e)), D(l.includes(e) ? "visible" : "hidden");
1902
1902
  }, [l]), /* @__PURE__ */ t.jsxs(
1903
1903
  "div",
1904
1904
  {
@@ -1915,7 +1915,7 @@ const zr = ({
1915
1915
  onDragEnd: $,
1916
1916
  onDragEnter: U,
1917
1917
  onDragOver: U,
1918
- onDragLeave: J,
1918
+ onDragLeave: Z,
1919
1919
  onDrop: q,
1920
1920
  children: [
1921
1921
  /* @__PURE__ */ t.jsxs("div", { className: "file-item", children: [
@@ -1930,7 +1930,7 @@ const zr = ({
1930
1930
  onClick: (Y) => Y.stopPropagation()
1931
1931
  }
1932
1932
  ),
1933
- r.isDirectory ? /* @__PURE__ */ t.jsx(Vt, { size: g }) : /* @__PURE__ */ t.jsx(t.Fragment, { children: k[(w = (fe = r.name) == null ? void 0 : fe.split(".").pop()) == null ? void 0 : w.toLowerCase()] ?? /* @__PURE__ */ t.jsx(qe, { size: g }) }),
1933
+ r.isDirectory ? /* @__PURE__ */ t.jsx(Vt, { size: g }) : /* @__PURE__ */ t.jsx(t.Fragment, { children: _[(E = (fe = r.name) == null ? void 0 : fe.split(".").pop()) == null ? void 0 : E.toLowerCase()] ?? /* @__PURE__ */ t.jsx(qe, { size: g }) }),
1934
1934
  r.isEditing ? /* @__PURE__ */ t.jsx("div", { className: `rename-file-container ${u}`, children: d.actionType === "createFolder" ? /* @__PURE__ */ t.jsx(
1935
1935
  cs,
1936
1936
  {
@@ -1976,16 +1976,16 @@ const zr = ({
1976
1976
  s.icon,
1977
1977
  /* @__PURE__ */ t.jsx("span", { children: s.title })
1978
1978
  ] }, s.title)) }), vs = ({ filesViewRef: e, contextMenuRef: r, menuItems: n, visible: s, clickPosition: a }) => {
1979
- const [c, i] = L(0), [l, d] = L(0), [h, f] = L(null), [p, E] = L("right"), M = de(null), S = () => {
1980
- const { clickX: C, clickY: j } = a, y = e.current, b = y.getBoundingClientRect(), u = y.offsetWidth - y.clientWidth, g = r.current.getBoundingClientRect(), k = g.width, x = g.height, R = C - b.left, F = b.width - (R + u) > k, D = !F, _ = j - b.top, N = b.height - _ > x, X = !N;
1981
- F ? (i(`${R}px`), E("right")) : D && (i(`${R - k}px`), E("left")), N ? d(`${_ + y.scrollTop}px`) : X && d(`${_ + y.scrollTop - x}px`);
1979
+ const [c, i] = L(0), [l, d] = L(0), [h, f] = L(null), [p, w] = L("right"), S = de(null), M = () => {
1980
+ const { clickX: C, clickY: j } = a, y = e.current, b = y.getBoundingClientRect(), u = y.offsetWidth - y.clientWidth, g = r.current.getBoundingClientRect(), _ = g.width, x = g.height, R = C - b.left, F = b.width - (R + u) > _, A = !F, N = j - b.top, k = b.height - N > x, X = !k;
1981
+ F ? (i(`${R}px`), w("right")) : A && (i(`${R - _}px`), w("left")), k ? d(`${N + y.scrollTop}px`) : X && d(`${N + y.scrollTop - x}px`);
1982
1982
  }, z = (C) => {
1983
1983
  C.preventDefault(), C.stopPropagation();
1984
- }, A = (C) => {
1984
+ }, D = (C) => {
1985
1985
  f(C);
1986
1986
  };
1987
1987
  if (se(() => {
1988
- s && r.current ? S() : (d(0), i(0), f(null));
1988
+ s && r.current ? M() : (d(0), i(0), f(null));
1989
1989
  }, [s]), s)
1990
1990
  return /* @__PURE__ */ t.jsx(
1991
1991
  "div",
@@ -2006,7 +2006,7 @@ const zr = ({
2006
2006
  {
2007
2007
  onClick: C.onClick,
2008
2008
  className: `${C.className ?? ""} ${b ? "active" : ""}`,
2009
- onMouseOver: () => A(j),
2009
+ onMouseOver: () => D(j),
2010
2010
  children: [
2011
2011
  C.icon,
2012
2012
  /* @__PURE__ */ t.jsx("span", { children: C.title }),
@@ -2015,7 +2015,7 @@ const zr = ({
2015
2015
  b && /* @__PURE__ */ t.jsx(
2016
2016
  ps,
2017
2017
  {
2018
- subMenuRef: M,
2018
+ subMenuRef: S,
2019
2019
  list: C.children,
2020
2020
  position: p
2021
2021
  }
@@ -2034,25 +2034,25 @@ function ms(e) {
2034
2034
  return H({ tag: "svg", attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z" }, child: [] }] })(e);
2035
2035
  }
2036
2036
  const gs = (e, r, n) => {
2037
- const [s, a] = L([]), [c, i] = L(!1), [l, d] = L(!1), [h, f] = L({ clickX: 0, clickY: 0 }), [p, E] = L(null), { clipBoard: M, setClipBoard: S, handleCutCopy: z, handlePasting: A } = Je(), { selectedFiles: C, setSelectedFiles: j, handleDownload: y } = Fe(), { currentPath: b, setCurrentPath: u, currentPathFiles: g, setCurrentPathFiles: k } = Ee(), { activeLayout: x, setActiveLayout: R } = Se(), F = () => {
2037
+ const [s, a] = L([]), [c, i] = L(!1), [l, d] = L(!1), [h, f] = L({ clickX: 0, clickY: 0 }), [p, w] = L(null), { clipBoard: S, setClipBoard: M, handleCutCopy: z, handlePasting: D } = Je(), { selectedFiles: C, setSelectedFiles: j, handleDownload: y } = Fe(), { currentPath: b, setCurrentPath: u, currentPathFiles: g, setCurrentPathFiles: _ } = Ee(), { activeLayout: x, setActiveLayout: R } = Se(), F = () => {
2038
2038
  p.isDirectory ? (u(p.path), a([]), j([])) : r && n.show("previewFile"), i(!1);
2039
- }, D = (O) => {
2039
+ }, A = (O) => {
2040
2040
  z(O), i(!1);
2041
- }, _ = () => {
2042
- A(p), i(!1);
2043
2041
  }, N = () => {
2042
+ D(p), i(!1);
2043
+ }, k = () => {
2044
2044
  i(!1), n.show("rename");
2045
2045
  }, X = () => {
2046
2046
  y(), i(!1);
2047
2047
  }, oe = () => {
2048
2048
  i(!1), n.show("delete");
2049
2049
  }, ae = () => {
2050
- i(!1), Le(e, "onRefresh"), S(null);
2050
+ i(!1), Le(e, "onRefresh"), M(null);
2051
2051
  }, Q = () => {
2052
2052
  n.show("createFolder"), i(!1);
2053
- }, pe = () => {
2053
+ }, he = () => {
2054
2054
  i(!1), n.show("uploadFile");
2055
- }, Ce = () => {
2055
+ }, xe = () => {
2056
2056
  j(g), i(!1);
2057
2057
  }, m = [
2058
2058
  {
@@ -2093,13 +2093,13 @@ const gs = (e, r, n) => {
2093
2093
  {
2094
2094
  title: "Upload",
2095
2095
  icon: /* @__PURE__ */ t.jsx(Cr, { size: 18 }),
2096
- onClick: pe,
2096
+ onClick: he,
2097
2097
  divider: !0
2098
2098
  },
2099
2099
  {
2100
2100
  title: "Select all",
2101
2101
  icon: /* @__PURE__ */ t.jsx(Tn, { size: 18 }),
2102
- onClick: Ce
2102
+ onClick: xe
2103
2103
  }
2104
2104
  ], P = [
2105
2105
  {
@@ -2111,26 +2111,26 @@ const gs = (e, r, n) => {
2111
2111
  {
2112
2112
  title: "Cut",
2113
2113
  icon: /* @__PURE__ */ t.jsx(gr, { size: 19 }),
2114
- onClick: () => D(!0)
2114
+ onClick: () => A(!0)
2115
2115
  },
2116
2116
  {
2117
2117
  title: "Copy",
2118
2118
  icon: /* @__PURE__ */ t.jsx(pr, { strokeWidth: 0.1, size: 17 }),
2119
- onClick: () => D(!1),
2119
+ onClick: () => A(!1),
2120
2120
  divider: !(p != null && p.isDirectory)
2121
2121
  },
2122
2122
  {
2123
2123
  title: "Paste",
2124
2124
  icon: /* @__PURE__ */ t.jsx(mt, { size: 18 }),
2125
- onClick: _,
2126
- className: `${M ? "" : "disable-paste"}`,
2125
+ onClick: N,
2126
+ className: `${S ? "" : "disable-paste"}`,
2127
2127
  hidden: !(p != null && p.isDirectory),
2128
2128
  divider: !0
2129
2129
  },
2130
2130
  {
2131
2131
  title: "Rename",
2132
2132
  icon: /* @__PURE__ */ t.jsx(jr, { size: 19 }),
2133
- onClick: N,
2133
+ onClick: k,
2134
2134
  hidden: C.length > 1
2135
2135
  },
2136
2136
  {
@@ -2145,7 +2145,7 @@ const gs = (e, r, n) => {
2145
2145
  onClick: oe
2146
2146
  }
2147
2147
  ], V = () => {
2148
- k((O) => [
2148
+ _((O) => [
2149
2149
  ...O,
2150
2150
  {
2151
2151
  name: kr("New Folder", !0, O),
@@ -2156,7 +2156,7 @@ const gs = (e, r, n) => {
2156
2156
  }
2157
2157
  ]);
2158
2158
  }, W = () => {
2159
- k((O) => (O[s.at(-1)] && (O[s.at(-1)].isEditing = !0), O)), a([]), j([]);
2159
+ _((O) => (O[s.at(-1)] && (O[s.at(-1)].isEditing = !0), O)), a([]), j([]);
2160
2160
  }, I = () => {
2161
2161
  a([]), j((O) => O.length > 0 ? [] : O);
2162
2162
  }, K = (O, $ = !1) => {
@@ -2183,7 +2183,7 @@ const gs = (e, r, n) => {
2183
2183
  unselectFiles: I,
2184
2184
  visible: c,
2185
2185
  setVisible: i,
2186
- setLastSelectedFile: E,
2186
+ setLastSelectedFile: w,
2187
2187
  selectedFileIndexes: s,
2188
2188
  clickPosition: h,
2189
2189
  isSelectionCtx: l
@@ -2218,23 +2218,23 @@ const gs = (e, r, n) => {
2218
2218
  emptySelecCtxItems: h,
2219
2219
  selecCtxItems: f,
2220
2220
  handleContextMenu: p,
2221
- unselectFiles: E,
2222
- visible: M,
2223
- setVisible: S,
2221
+ unselectFiles: w,
2222
+ visible: S,
2223
+ setVisible: M,
2224
2224
  setLastSelectedFile: z,
2225
- selectedFileIndexes: A,
2225
+ selectedFileIndexes: D,
2226
2226
  clickPosition: C,
2227
2227
  isSelectionCtx: j
2228
- } = gs(s, a, c), y = Be(() => S(!1));
2228
+ } = gs(s, a, c), y = Be(() => M(!1));
2229
2229
  return /* @__PURE__ */ t.jsxs(
2230
2230
  "div",
2231
2231
  {
2232
2232
  ref: l,
2233
2233
  className: `files ${d}`,
2234
2234
  onContextMenu: p,
2235
- onClick: E,
2235
+ onClick: w,
2236
2236
  children: [
2237
- d === "list" && /* @__PURE__ */ t.jsx(ys, { unselectFiles: E }),
2237
+ d === "list" && /* @__PURE__ */ t.jsx(ys, { unselectFiles: w }),
2238
2238
  (i == null ? void 0 : i.length) > 0 ? /* @__PURE__ */ t.jsx(t.Fragment, { children: i.map((b, u) => /* @__PURE__ */ t.jsx(
2239
2239
  hs,
2240
2240
  {
@@ -2246,9 +2246,9 @@ const gs = (e, r, n) => {
2246
2246
  enableFilePreview: a,
2247
2247
  triggerAction: c,
2248
2248
  filesViewRef: l,
2249
- selectedFileIndexes: A,
2249
+ selectedFileIndexes: D,
2250
2250
  handleContextMenu: p,
2251
- setVisible: S,
2251
+ setVisible: M,
2252
2252
  setLastSelectedFile: z
2253
2253
  },
2254
2254
  u
@@ -2259,8 +2259,8 @@ const gs = (e, r, n) => {
2259
2259
  filesViewRef: l,
2260
2260
  contextMenuRef: y.ref,
2261
2261
  menuItems: j ? f : h,
2262
- visible: M,
2263
- setVisible: S,
2262
+ visible: S,
2263
+ setVisible: M,
2264
2264
  clickPosition: C
2265
2265
  }
2266
2266
  )
@@ -2312,13 +2312,13 @@ const Es = ({
2312
2312
  onFileUploaded: c,
2313
2313
  handleFileRemove: i
2314
2314
  }) => {
2315
- var g, k, x, R;
2316
- const [l, d] = L(0), [h, f] = L(!1), [p, E] = L(!1), [M, S] = L(!1), z = Xe(33), A = de(), { onError: C } = Ge(), j = (F) => {
2317
- d(0), s((_) => ({
2318
- ..._,
2315
+ var g, _, x, R;
2316
+ const [l, d] = L(0), [h, f] = L(!1), [p, w] = L(!1), [S, M] = L(!1), z = Xe(33), D = de(), { onError: C } = Ge(), j = (F) => {
2317
+ d(0), s((N) => ({
2318
+ ...N,
2319
2319
  [e]: !1
2320
2320
  }));
2321
- const D = {
2321
+ const A = {
2322
2322
  type: "upload",
2323
2323
  message: "Upload failed.",
2324
2324
  response: {
@@ -2328,65 +2328,65 @@ const Es = ({
2328
2328
  }
2329
2329
  };
2330
2330
  n(
2331
- (_) => _.map((N, X) => e === X ? {
2332
- ...N,
2333
- error: D.message
2334
- } : N)
2335
- ), S(!0), C(D, r.file);
2331
+ (N) => N.map((k, X) => e === X ? {
2332
+ ...k,
2333
+ error: A.message
2334
+ } : k)
2335
+ ), M(!0), C(A, r.file);
2336
2336
  }, y = (F) => {
2337
2337
  if (!F.error)
2338
- return new Promise((D, _) => {
2339
- const N = new XMLHttpRequest();
2340
- A.current = N, s((Q) => ({
2338
+ return new Promise((A, N) => {
2339
+ const k = new XMLHttpRequest();
2340
+ D.current = k, s((Q) => ({
2341
2341
  ...Q,
2342
2342
  [e]: !0
2343
- })), N.upload.onprogress = (Q) => {
2343
+ })), k.upload.onprogress = (Q) => {
2344
2344
  if (Q.lengthComputable) {
2345
- const pe = Math.round(Q.loaded / Q.total * 100);
2346
- d(pe);
2345
+ const he = Math.round(Q.loaded / Q.total * 100);
2346
+ d(he);
2347
2347
  }
2348
- }, N.onload = () => {
2348
+ }, k.onload = () => {
2349
2349
  s((Q) => ({
2350
2350
  ...Q,
2351
2351
  [e]: !1
2352
- })), N.status === 200 || N.status === 201 ? (f(!0), c(N.response), D(N.response)) : (_(N.statusText), j(N));
2353
- }, N.onerror = () => {
2354
- _(N.statusText), j(N);
2355
- }, N.open("POST", a == null ? void 0 : a.url, !0);
2352
+ })), k.status === 200 || k.status === 201 ? (f(!0), c(k.response), A(k.response)) : (N(k.statusText), j(k));
2353
+ }, k.onerror = () => {
2354
+ N(k.statusText), j(k);
2355
+ }, k.open("POST", a == null ? void 0 : a.url, !0);
2356
2356
  const X = a == null ? void 0 : a.headers;
2357
2357
  for (let Q in X)
2358
- N.setRequestHeader(Q, X[Q]);
2358
+ k.setRequestHeader(Q, X[Q]);
2359
2359
  const oe = new FormData(), ae = F == null ? void 0 : F.appendData;
2360
2360
  for (let Q in ae)
2361
2361
  ae[Q] && oe.append(Q, ae[Q]);
2362
- oe.append("file", F.file), N.send(oe);
2362
+ oe.append("file", F.file), k.send(oe);
2363
2363
  });
2364
2364
  };
2365
2365
  se(() => {
2366
- A.current || y(r);
2366
+ D.current || y(r);
2367
2367
  }, []);
2368
2368
  const b = () => {
2369
- A.current && (A.current.abort(), s((F) => ({
2369
+ D.current && (D.current.abort(), s((F) => ({
2370
2370
  ...F,
2371
2371
  [e]: !1
2372
- })), E(!0), d(0));
2372
+ })), w(!0), d(0));
2373
2373
  }, u = () => {
2374
2374
  r != null && r.file && (n(
2375
- (F) => F.map((D, _) => e === _ ? {
2376
- ...D,
2375
+ (F) => F.map((A, N) => e === N ? {
2376
+ ...A,
2377
2377
  error: !1
2378
- } : D)
2379
- ), y({ ...r, error: !1 }), E(!1), S(!1));
2378
+ } : A)
2379
+ ), y({ ...r, error: !1 }), w(!1), M(!1));
2380
2380
  };
2381
2381
  return r.removed ? null : /* @__PURE__ */ t.jsxs("li", { children: [
2382
2382
  /* @__PURE__ */ t.jsx("div", { className: "file-icon", children: z[_e((g = r.file) == null ? void 0 : g.name)] ?? /* @__PURE__ */ t.jsx(qe, { size: 33 }) }),
2383
2383
  /* @__PURE__ */ t.jsxs("div", { className: "file", children: [
2384
2384
  /* @__PURE__ */ t.jsxs("div", { className: "file-details", children: [
2385
2385
  /* @__PURE__ */ t.jsxs("div", { className: "file-info", children: [
2386
- /* @__PURE__ */ t.jsx("span", { className: "file-name text-truncate", title: (k = r.file) == null ? void 0 : k.name, children: (x = r.file) == null ? void 0 : x.name }),
2386
+ /* @__PURE__ */ t.jsx("span", { className: "file-name text-truncate", title: (_ = r.file) == null ? void 0 : _.name, children: (x = r.file) == null ? void 0 : x.name }),
2387
2387
  /* @__PURE__ */ t.jsx("span", { className: "file-size", children: Ze((R = r.file) == null ? void 0 : R.size) })
2388
2388
  ] }),
2389
- h ? /* @__PURE__ */ t.jsx(ss, { title: "Uploaded", className: "upload-success" }) : p || M ? /* @__PURE__ */ t.jsx(ws, { className: "retry-upload", title: "Retry", onClick: u }) : /* @__PURE__ */ t.jsx(
2389
+ h ? /* @__PURE__ */ t.jsx(ss, { title: "Uploaded", className: "upload-success" }) : p || S ? /* @__PURE__ */ t.jsx(ws, { className: "retry-upload", title: "Retry", onClick: u }) : /* @__PURE__ */ t.jsx(
2390
2390
  "div",
2391
2391
  {
2392
2392
  className: "rm-file",
@@ -2414,28 +2414,28 @@ const Es = ({
2414
2414
  onFileUploading: s,
2415
2415
  onFileUploaded: a
2416
2416
  }) => {
2417
- const [c, i] = L([]), [l, d] = L(!1), [h, f] = L({}), { currentFolder: p, currentPathFiles: E } = Ee(), { onError: M } = Ge(), S = de(null), z = (u) => {
2418
- u.key === "Enter" && S.current.click();
2419
- }, A = (u) => {
2417
+ const [c, i] = L([]), [l, d] = L(!1), [h, f] = L({}), { currentFolder: p, currentPathFiles: w } = Ee(), { onError: S } = Ge(), M = de(null), z = (u) => {
2418
+ u.key === "Enter" && M.current.click();
2419
+ }, D = (u) => {
2420
2420
  if (n && !n.includes(_e(u.name)))
2421
2421
  return "File type is not allowed.";
2422
- if (E.some(
2422
+ if (w.some(
2423
2423
  (x) => x.name.toLowerCase() === u.name.toLowerCase() && !x.isDirectory
2424
2424
  )) return "File already exists.";
2425
2425
  if (r && u.size > r) return `Maximum upload size is ${Ze(r, 0)}.`;
2426
2426
  }, C = (u) => {
2427
2427
  if (u = u.filter(
2428
- (g) => !c.some((k) => k.file.name.toLowerCase() === g.name.toLowerCase())
2428
+ (g) => !c.some((_) => _.file.name.toLowerCase() === g.name.toLowerCase())
2429
2429
  ), u.length > 0) {
2430
- const g = u.map((k) => {
2431
- const x = s(k, p), R = A(k);
2432
- return R && M({ type: "upload", message: R }, k), {
2433
- file: k,
2430
+ const g = u.map((_) => {
2431
+ const x = s(_, p), R = D(_);
2432
+ return R && S({ type: "upload", message: R }, _), {
2433
+ file: _,
2434
2434
  appendData: x,
2435
2435
  ...R && { error: R }
2436
2436
  };
2437
2437
  });
2438
- i((k) => [...k, ...g]);
2438
+ i((_) => [..._, ...g]);
2439
2439
  }
2440
2440
  }, j = (u) => {
2441
2441
  u.preventDefault(), d(!1);
@@ -2446,11 +2446,11 @@ const Es = ({
2446
2446
  C(g);
2447
2447
  }, b = (u) => {
2448
2448
  i((g) => {
2449
- const k = g.map((x, R) => u === R ? {
2449
+ const _ = g.map((x, R) => u === R ? {
2450
2450
  ...x,
2451
2451
  removed: !0
2452
2452
  } : x);
2453
- return k.every((x) => !!x.removed) ? [] : k;
2453
+ return _.every((x) => !!x.removed) ? [] : _;
2454
2454
  });
2455
2455
  };
2456
2456
  return /* @__PURE__ */ t.jsxs("div", { className: `fm-upload-file ${c.length > 0 ? "file-selcted" : ""}`, children: [
@@ -2474,7 +2474,7 @@ const Es = ({
2474
2474
  /* @__PURE__ */ t.jsx(
2475
2475
  "input",
2476
2476
  {
2477
- ref: S,
2477
+ ref: M,
2478
2478
  type: "file",
2479
2479
  id: "chooseFile",
2480
2480
  className: "choose-file-input",
@@ -2506,15 +2506,15 @@ const Es = ({
2506
2506
  ] })
2507
2507
  ] });
2508
2508
  }, Jt = ["jpg", "jpeg", "png"], Zt = ["mp4", "mov", "avi"], Qt = ["mp3", "wav", "m4a"], er = ["txt", "pdf"], Ps = ({ filePreviewPath: e, filePreviewComponent: r }) => {
2509
- var S;
2510
- const [n, s] = L(!0), [a, c] = L(!1), { selectedFiles: i } = Fe(), l = Xe(73), d = (S = _e(i[0].name)) == null ? void 0 : S.toLowerCase(), h = `${e}${i[0].path}`, f = yt(
2509
+ var M;
2510
+ const [n, s] = L(!0), [a, c] = L(!1), { selectedFiles: i } = Fe(), l = Xe(73), d = (M = _e(i[0].name)) == null ? void 0 : M.toLowerCase(), h = `${e}${i[0].path}`, f = yt(
2511
2511
  () => r == null ? void 0 : r(i[0]),
2512
2512
  [r]
2513
2513
  ), p = () => {
2514
2514
  s(!1), c(!1);
2515
- }, E = () => {
2515
+ }, w = () => {
2516
2516
  s(!1), c(!0);
2517
- }, M = () => {
2517
+ }, S = () => {
2518
2518
  window.location.href = h;
2519
2519
  };
2520
2520
  return Pe.isValidElement(f) ? f : /* @__PURE__ */ t.jsxs("section", { className: `file-previewer ${d === "pdf" ? "pdf-previewer" : ""}`, children: [
@@ -2531,7 +2531,7 @@ const Es = ({
2531
2531
  i[0].size && /* @__PURE__ */ t.jsx("span", { children: "-" }),
2532
2532
  /* @__PURE__ */ t.jsx("span", { className: "file-size", children: Ze(i[0].size) })
2533
2533
  ] }),
2534
- /* @__PURE__ */ t.jsx(Ne, { onClick: M, padding: "0.45rem .9rem", children: /* @__PURE__ */ t.jsxs("div", { className: "download-btn", children: [
2534
+ /* @__PURE__ */ t.jsx(Ne, { onClick: S, padding: "0.45rem .9rem", children: /* @__PURE__ */ t.jsxs("div", { className: "download-btn", children: [
2535
2535
  /* @__PURE__ */ t.jsx(Ct, { size: 18 }),
2536
2536
  /* @__PURE__ */ t.jsx("span", { children: "Download" })
2537
2537
  ] }) })
@@ -2545,7 +2545,7 @@ const Es = ({
2545
2545
  alt: "Preview Unavailable",
2546
2546
  className: `photo-popup-image ${n ? "img-loading" : ""}`,
2547
2547
  onLoad: p,
2548
- onError: E,
2548
+ onError: w,
2549
2549
  loading: "lazy"
2550
2550
  }
2551
2551
  )
@@ -2557,7 +2557,7 @@ const Es = ({
2557
2557
  {
2558
2558
  src: h,
2559
2559
  onLoad: p,
2560
- onError: E,
2560
+ onError: w,
2561
2561
  frameBorder: "0",
2562
2562
  className: `photo-popup-iframe ${n ? "img-loading" : ""}`
2563
2563
  }
@@ -2604,15 +2604,15 @@ const Es = ({
2604
2604
  e.show("createFolder");
2605
2605
  }, p = () => {
2606
2606
  e.show("uploadFile");
2607
- }, E = () => {
2607
+ }, w = () => {
2608
2608
  s(!0);
2609
- }, M = () => {
2610
- s(!1);
2611
2609
  }, S = () => {
2610
+ s(!1);
2611
+ }, M = () => {
2612
2612
  a(c);
2613
2613
  }, z = () => {
2614
2614
  e.show("rename");
2615
- }, A = () => {
2615
+ }, D = () => {
2616
2616
  d();
2617
2617
  }, C = () => {
2618
2618
  e.show("delete");
@@ -2626,12 +2626,12 @@ const Es = ({
2626
2626
  l((R) => R.length > 0 ? [] : R);
2627
2627
  }, g = () => {
2628
2628
  Le(r, "onRefresh"), n(null);
2629
- }, k = () => {
2629
+ }, _ = () => {
2630
2630
  h("grid");
2631
2631
  }, x = () => {
2632
2632
  h("list");
2633
2633
  };
2634
- ge(ye.createFolder, f, e.isActive), ge(ye.uploadFiles, p, e.isActive), ge(ye.cut, E, e.isActive), ge(ye.copy, M, e.isActive), ge(ye.paste, S, e.isActive), ge(ye.rename, z, e.isActive), ge(ye.download, A, e.isActive), ge(ye.delete, C, e.isActive), ge(ye.jumpToFirst, j, e.isActive), ge(ye.jumpToLast, y, e.isActive), ge(ye.selectAll, b, e.isActive), ge(ye.clearSelection, u, e.isActive), ge(ye.refresh, g, e.isActive), ge(ye.gridLayout, k, e.isActive), ge(ye.listLayout, x, e.isActive);
2634
+ ge(ye.createFolder, f, e.isActive), ge(ye.uploadFiles, p, e.isActive), ge(ye.cut, w, e.isActive), ge(ye.copy, S, e.isActive), ge(ye.paste, M, e.isActive), ge(ye.rename, z, e.isActive), ge(ye.download, D, e.isActive), ge(ye.delete, C, e.isActive), ge(ye.jumpToFirst, j, e.isActive), ge(ye.jumpToLast, y, e.isActive), ge(ye.selectAll, b, e.isActive), ge(ye.clearSelection, u, e.isActive), ge(ye.refresh, g, e.isActive), ge(ye.gridLayout, _, e.isActive), ge(ye.listLayout, x, e.isActive);
2635
2635
  }, Fs = ({
2636
2636
  fileUploadConfig: e,
2637
2637
  onFileUploading: r,
@@ -2644,9 +2644,9 @@ const Es = ({
2644
2644
  acceptedFileTypes: d,
2645
2645
  triggerAction: h
2646
2646
  }) => {
2647
- const [f, p] = L(null), { selectedFiles: E } = Fe();
2647
+ const [f, p] = L(null), { selectedFiles: w } = Fe();
2648
2648
  Ts(h, a);
2649
- const M = {
2649
+ const S = {
2650
2650
  uploadFile: {
2651
2651
  title: "Upload",
2652
2652
  component: /* @__PURE__ */ t.jsx(
@@ -2680,8 +2680,8 @@ const Es = ({
2680
2680
  };
2681
2681
  if (se(() => {
2682
2682
  if (h.isActive) {
2683
- const S = h.actionType;
2684
- S === "previewFile" && (M[S].title = (E == null ? void 0 : E.name) ?? "Preview"), p(M[S]);
2683
+ const M = h.actionType;
2684
+ M === "previewFile" && (S[M].title = (w == null ? void 0 : w.name) ?? "Preview"), p(S[M]);
2685
2685
  } else
2686
2686
  p(null);
2687
2687
  }, [h.isActive]), f)
@@ -2723,8 +2723,8 @@ const Es = ({
2723
2723
  handleMouseMove: (f) => {
2724
2724
  if (!a) return;
2725
2725
  f.preventDefault();
2726
- const E = i.current.getBoundingClientRect(), M = (f.clientX - E.left) / E.width * 100;
2727
- M >= 15 && M <= 60 && s({ col1: M, col2: 100 - M });
2726
+ const w = i.current.getBoundingClientRect(), S = (f.clientX - w.left) / w.width * 100;
2727
+ S >= 15 && S <= 60 && s({ col1: S, col2: 100 - S });
2728
2728
  }
2729
2729
  };
2730
2730
  };
@@ -2741,7 +2741,7 @@ var tr;
2741
2741
  function Ls() {
2742
2742
  if (tr) return re;
2743
2743
  tr = 1;
2744
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, E = e ? Symbol.for("react.suspense_list") : 60120, M = e ? Symbol.for("react.memo") : 60115, S = e ? Symbol.for("react.lazy") : 60116, z = e ? Symbol.for("react.block") : 60121, A = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
2744
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, w = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, M = e ? Symbol.for("react.lazy") : 60116, z = e ? Symbol.for("react.block") : 60121, D = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
2745
2745
  function y(u) {
2746
2746
  if (typeof u == "object" && u !== null) {
2747
2747
  var g = u.$$typeof;
@@ -2759,8 +2759,8 @@ function Ls() {
2759
2759
  switch (u = u && u.$$typeof, u) {
2760
2760
  case l:
2761
2761
  case f:
2762
- case S:
2763
2762
  case M:
2763
+ case S:
2764
2764
  case i:
2765
2765
  return u;
2766
2766
  default:
@@ -2775,7 +2775,7 @@ function Ls() {
2775
2775
  function b(u) {
2776
2776
  return y(u) === h;
2777
2777
  }
2778
- return re.AsyncMode = d, re.ConcurrentMode = h, re.ContextConsumer = l, re.ContextProvider = i, re.Element = r, re.ForwardRef = f, re.Fragment = s, re.Lazy = S, re.Memo = M, re.Portal = n, re.Profiler = c, re.StrictMode = a, re.Suspense = p, re.isAsyncMode = function(u) {
2778
+ return re.AsyncMode = d, re.ConcurrentMode = h, re.ContextConsumer = l, re.ContextProvider = i, re.Element = r, re.ForwardRef = f, re.Fragment = s, re.Lazy = M, re.Memo = S, re.Portal = n, re.Profiler = c, re.StrictMode = a, re.Suspense = p, re.isAsyncMode = function(u) {
2779
2779
  return b(u) || y(u) === d;
2780
2780
  }, re.isConcurrentMode = b, re.isContextConsumer = function(u) {
2781
2781
  return y(u) === l;
@@ -2788,9 +2788,9 @@ function Ls() {
2788
2788
  }, re.isFragment = function(u) {
2789
2789
  return y(u) === s;
2790
2790
  }, re.isLazy = function(u) {
2791
- return y(u) === S;
2792
- }, re.isMemo = function(u) {
2793
2791
  return y(u) === M;
2792
+ }, re.isMemo = function(u) {
2793
+ return y(u) === S;
2794
2794
  }, re.isPortal = function(u) {
2795
2795
  return y(u) === n;
2796
2796
  }, re.isProfiler = function(u) {
@@ -2800,7 +2800,7 @@ function Ls() {
2800
2800
  }, re.isSuspense = function(u) {
2801
2801
  return y(u) === p;
2802
2802
  }, re.isValidElementType = function(u) {
2803
- return typeof u == "string" || typeof u == "function" || u === s || u === h || u === c || u === a || u === p || u === E || typeof u == "object" && u !== null && (u.$$typeof === S || u.$$typeof === M || u.$$typeof === i || u.$$typeof === l || u.$$typeof === f || u.$$typeof === A || u.$$typeof === C || u.$$typeof === j || u.$$typeof === z);
2803
+ return typeof u == "string" || typeof u == "function" || u === s || u === h || u === c || u === a || u === p || u === w || typeof u == "object" && u !== null && (u.$$typeof === M || u.$$typeof === S || u.$$typeof === i || u.$$typeof === l || u.$$typeof === f || u.$$typeof === D || u.$$typeof === C || u.$$typeof === j || u.$$typeof === z);
2804
2804
  }, re.typeOf = y, re;
2805
2805
  }
2806
2806
  var ne = {};
@@ -2815,17 +2815,17 @@ var ne = {};
2815
2815
  var rr;
2816
2816
  function Os() {
2817
2817
  return rr || (rr = 1, process.env.NODE_ENV !== "production" && function() {
2818
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, E = e ? Symbol.for("react.suspense_list") : 60120, M = e ? Symbol.for("react.memo") : 60115, S = e ? Symbol.for("react.lazy") : 60116, z = e ? Symbol.for("react.block") : 60121, A = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
2819
- function y(w) {
2820
- return typeof w == "string" || typeof w == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
2821
- w === s || w === h || w === c || w === a || w === p || w === E || typeof w == "object" && w !== null && (w.$$typeof === S || w.$$typeof === M || w.$$typeof === i || w.$$typeof === l || w.$$typeof === f || w.$$typeof === A || w.$$typeof === C || w.$$typeof === j || w.$$typeof === z);
2822
- }
2823
- function b(w) {
2824
- if (typeof w == "object" && w !== null) {
2825
- var ve = w.$$typeof;
2818
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, w = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, M = e ? Symbol.for("react.lazy") : 60116, z = e ? Symbol.for("react.block") : 60121, D = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
2819
+ function y(E) {
2820
+ return typeof E == "string" || typeof E == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
2821
+ E === s || E === h || E === c || E === a || E === p || E === w || typeof E == "object" && E !== null && (E.$$typeof === M || E.$$typeof === S || E.$$typeof === i || E.$$typeof === l || E.$$typeof === f || E.$$typeof === D || E.$$typeof === C || E.$$typeof === j || E.$$typeof === z);
2822
+ }
2823
+ function b(E) {
2824
+ if (typeof E == "object" && E !== null) {
2825
+ var ve = E.$$typeof;
2826
2826
  switch (ve) {
2827
2827
  case r:
2828
- var Te = w.type;
2828
+ var Te = E.type;
2829
2829
  switch (Te) {
2830
2830
  case d:
2831
2831
  case h:
@@ -2839,8 +2839,8 @@ function Os() {
2839
2839
  switch (Y) {
2840
2840
  case l:
2841
2841
  case f:
2842
- case S:
2843
2842
  case M:
2843
+ case S:
2844
2844
  case i:
2845
2845
  return Y;
2846
2846
  default:
@@ -2852,47 +2852,47 @@ function Os() {
2852
2852
  }
2853
2853
  }
2854
2854
  }
2855
- var u = d, g = h, k = l, x = i, R = r, F = f, D = s, _ = S, N = M, X = n, oe = c, ae = a, Q = p, pe = !1;
2856
- function Ce(w) {
2857
- return pe || (pe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), m(w) || b(w) === d;
2855
+ var u = d, g = h, _ = l, x = i, R = r, F = f, A = s, N = M, k = S, X = n, oe = c, ae = a, Q = p, he = !1;
2856
+ function xe(E) {
2857
+ return he || (he = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), m(E) || b(E) === d;
2858
2858
  }
2859
- function m(w) {
2860
- return b(w) === h;
2859
+ function m(E) {
2860
+ return b(E) === h;
2861
2861
  }
2862
- function P(w) {
2863
- return b(w) === l;
2862
+ function P(E) {
2863
+ return b(E) === l;
2864
2864
  }
2865
- function V(w) {
2866
- return b(w) === i;
2865
+ function V(E) {
2866
+ return b(E) === i;
2867
2867
  }
2868
- function W(w) {
2869
- return typeof w == "object" && w !== null && w.$$typeof === r;
2868
+ function W(E) {
2869
+ return typeof E == "object" && E !== null && E.$$typeof === r;
2870
2870
  }
2871
- function I(w) {
2872
- return b(w) === f;
2871
+ function I(E) {
2872
+ return b(E) === f;
2873
2873
  }
2874
- function K(w) {
2875
- return b(w) === s;
2874
+ function K(E) {
2875
+ return b(E) === s;
2876
2876
  }
2877
- function O(w) {
2878
- return b(w) === S;
2877
+ function O(E) {
2878
+ return b(E) === M;
2879
2879
  }
2880
- function $(w) {
2881
- return b(w) === M;
2880
+ function $(E) {
2881
+ return b(E) === S;
2882
2882
  }
2883
- function U(w) {
2884
- return b(w) === n;
2883
+ function U(E) {
2884
+ return b(E) === n;
2885
2885
  }
2886
- function J(w) {
2887
- return b(w) === c;
2886
+ function Z(E) {
2887
+ return b(E) === c;
2888
2888
  }
2889
- function q(w) {
2890
- return b(w) === a;
2889
+ function q(E) {
2890
+ return b(E) === a;
2891
2891
  }
2892
- function fe(w) {
2893
- return b(w) === p;
2892
+ function fe(E) {
2893
+ return b(E) === p;
2894
2894
  }
2895
- ne.AsyncMode = u, ne.ConcurrentMode = g, ne.ContextConsumer = k, ne.ContextProvider = x, ne.Element = R, ne.ForwardRef = F, ne.Fragment = D, ne.Lazy = _, ne.Memo = N, ne.Portal = X, ne.Profiler = oe, ne.StrictMode = ae, ne.Suspense = Q, ne.isAsyncMode = Ce, ne.isConcurrentMode = m, ne.isContextConsumer = P, ne.isContextProvider = V, ne.isElement = W, ne.isForwardRef = I, ne.isFragment = K, ne.isLazy = O, ne.isMemo = $, ne.isPortal = U, ne.isProfiler = J, ne.isStrictMode = q, ne.isSuspense = fe, ne.isValidElementType = y, ne.typeOf = b;
2895
+ ne.AsyncMode = u, ne.ConcurrentMode = g, ne.ContextConsumer = _, ne.ContextProvider = x, ne.Element = R, ne.ForwardRef = F, ne.Fragment = A, ne.Lazy = N, ne.Memo = k, ne.Portal = X, ne.Profiler = oe, ne.StrictMode = ae, ne.Suspense = Q, ne.isAsyncMode = xe, ne.isConcurrentMode = m, ne.isContextConsumer = P, ne.isContextProvider = V, ne.isElement = W, ne.isForwardRef = I, ne.isFragment = K, ne.isLazy = O, ne.isMemo = $, ne.isPortal = U, ne.isProfiler = Z, ne.isStrictMode = q, ne.isSuspense = fe, ne.isValidElementType = y, ne.typeOf = b;
2896
2896
  }()), ne;
2897
2897
  }
2898
2898
  var nr;
@@ -2943,8 +2943,8 @@ function ks() {
2943
2943
  r.call(l, p) && (d[p] = l[p]);
2944
2944
  if (e) {
2945
2945
  h = e(l);
2946
- for (var E = 0; E < h.length; E++)
2947
- n.call(l, h[E]) && (d[h[E]] = l[h[E]]);
2946
+ for (var w = 0; w < h.length; w++)
2947
+ n.call(l, h[w]) && (d[h[w]] = l[h[w]]);
2948
2948
  }
2949
2949
  }
2950
2950
  return d;
@@ -2985,22 +2985,22 @@ function _s() {
2985
2985
  var p;
2986
2986
  try {
2987
2987
  if (typeof c[f] != "function") {
2988
- var E = Error(
2988
+ var w = Error(
2989
2989
  (d || "React class") + ": " + l + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
2990
2990
  );
2991
- throw E.name = "Invariant Violation", E;
2991
+ throw w.name = "Invariant Violation", w;
2992
2992
  }
2993
2993
  p = c[f](i, f, d, l, null, r);
2994
- } catch (S) {
2995
- p = S;
2994
+ } catch (M) {
2995
+ p = M;
2996
2996
  }
2997
2997
  if (p && !(p instanceof Error) && e(
2998
2998
  (d || "React class") + ": type specification of " + l + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof p + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
2999
2999
  ), p instanceof Error && !(p.message in n)) {
3000
3000
  n[p.message] = !0;
3001
- var M = h ? h() : "";
3001
+ var S = h ? h() : "";
3002
3002
  e(
3003
- "Failed " + l + " type: " + p.message + (M ?? "")
3003
+ "Failed " + l + " type: " + p.message + (S ?? "")
3004
3004
  );
3005
3005
  }
3006
3006
  }
@@ -3034,7 +3034,7 @@ function Ns() {
3034
3034
  if (typeof P == "function")
3035
3035
  return P;
3036
3036
  }
3037
- var E = "<<anonymous>>", M = {
3037
+ var w = "<<anonymous>>", S = {
3038
3038
  array: C("array"),
3039
3039
  bigint: C("bigint"),
3040
3040
  bool: C("boolean"),
@@ -3050,28 +3050,28 @@ function Ns() {
3050
3050
  instanceOf: g,
3051
3051
  node: F(),
3052
3052
  objectOf: x,
3053
- oneOf: k,
3053
+ oneOf: _,
3054
3054
  oneOfType: R,
3055
- shape: _,
3056
- exact: N
3055
+ shape: N,
3056
+ exact: k
3057
3057
  };
3058
- function S(m, P) {
3058
+ function M(m, P) {
3059
3059
  return m === P ? m !== 0 || 1 / m === 1 / P : m !== m && P !== P;
3060
3060
  }
3061
3061
  function z(m, P) {
3062
3062
  this.message = m, this.data = P && typeof P == "object" ? P : {}, this.stack = "";
3063
3063
  }
3064
3064
  z.prototype = Error.prototype;
3065
- function A(m) {
3065
+ function D(m) {
3066
3066
  if (process.env.NODE_ENV !== "production")
3067
3067
  var P = {}, V = 0;
3068
- function W(K, O, $, U, J, q, fe) {
3069
- if (U = U || E, q = q || $, fe !== n) {
3068
+ function W(K, O, $, U, Z, q, fe) {
3069
+ if (U = U || w, q = q || $, fe !== n) {
3070
3070
  if (d) {
3071
- var w = new Error(
3071
+ var E = new Error(
3072
3072
  "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"
3073
3073
  );
3074
- throw w.name = "Invariant Violation", w;
3074
+ throw E.name = "Invariant Violation", E;
3075
3075
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
3076
3076
  var ve = U + ":" + $;
3077
3077
  !P[ve] && // Avoid spamming the console because they are often not actionable except for lib authors
@@ -3080,15 +3080,15 @@ function Ns() {
3080
3080
  ), P[ve] = !0, V++);
3081
3081
  }
3082
3082
  }
3083
- return O[$] == null ? K ? O[$] === null ? new z("The " + J + " `" + q + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new z("The " + J + " `" + q + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : m(O, $, U, J, q);
3083
+ return O[$] == null ? K ? O[$] === null ? new z("The " + Z + " `" + q + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new z("The " + Z + " `" + q + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : m(O, $, U, Z, q);
3084
3084
  }
3085
3085
  var I = W.bind(null, !1);
3086
3086
  return I.isRequired = W.bind(null, !0), I;
3087
3087
  }
3088
3088
  function C(m) {
3089
3089
  function P(V, W, I, K, O, $) {
3090
- var U = V[W], J = ae(U);
3091
- if (J !== m) {
3090
+ var U = V[W], Z = ae(U);
3091
+ if (Z !== m) {
3092
3092
  var q = Q(U);
3093
3093
  return new z(
3094
3094
  "Invalid " + K + " `" + O + "` of type " + ("`" + q + "` supplied to `" + I + "`, expected ") + ("`" + m + "`."),
@@ -3097,10 +3097,10 @@ function Ns() {
3097
3097
  }
3098
3098
  return null;
3099
3099
  }
3100
- return A(P);
3100
+ return D(P);
3101
3101
  }
3102
3102
  function j() {
3103
- return A(i);
3103
+ return D(i);
3104
3104
  }
3105
3105
  function y(m) {
3106
3106
  function P(V, W, I, K, O) {
@@ -3111,14 +3111,14 @@ function Ns() {
3111
3111
  var U = ae($);
3112
3112
  return new z("Invalid " + K + " `" + O + "` of type " + ("`" + U + "` supplied to `" + I + "`, expected an array."));
3113
3113
  }
3114
- for (var J = 0; J < $.length; J++) {
3115
- var q = m($, J, I, K, O + "[" + J + "]", n);
3114
+ for (var Z = 0; Z < $.length; Z++) {
3115
+ var q = m($, Z, I, K, O + "[" + Z + "]", n);
3116
3116
  if (q instanceof Error)
3117
3117
  return q;
3118
3118
  }
3119
3119
  return null;
3120
3120
  }
3121
- return A(P);
3121
+ return D(P);
3122
3122
  }
3123
3123
  function b() {
3124
3124
  function m(P, V, W, I, K) {
@@ -3129,7 +3129,7 @@ function Ns() {
3129
3129
  }
3130
3130
  return null;
3131
3131
  }
3132
- return A(m);
3132
+ return D(m);
3133
3133
  }
3134
3134
  function u() {
3135
3135
  function m(P, V, W, I, K) {
@@ -3140,34 +3140,34 @@ function Ns() {
3140
3140
  }
3141
3141
  return null;
3142
3142
  }
3143
- return A(m);
3143
+ return D(m);
3144
3144
  }
3145
3145
  function g(m) {
3146
3146
  function P(V, W, I, K, O) {
3147
3147
  if (!(V[W] instanceof m)) {
3148
- var $ = m.name || E, U = Ce(V[W]);
3148
+ var $ = m.name || w, U = xe(V[W]);
3149
3149
  return new z("Invalid " + K + " `" + O + "` of type " + ("`" + U + "` supplied to `" + I + "`, expected ") + ("instance of `" + $ + "`."));
3150
3150
  }
3151
3151
  return null;
3152
3152
  }
3153
- return A(P);
3153
+ return D(P);
3154
3154
  }
3155
- function k(m) {
3155
+ function _(m) {
3156
3156
  if (!Array.isArray(m))
3157
3157
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? c(
3158
3158
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
3159
3159
  ) : c("Invalid argument supplied to oneOf, expected an array.")), i;
3160
3160
  function P(V, W, I, K, O) {
3161
3161
  for (var $ = V[W], U = 0; U < m.length; U++)
3162
- if (S($, m[U]))
3162
+ if (M($, m[U]))
3163
3163
  return null;
3164
- var J = JSON.stringify(m, function(fe, w) {
3165
- var ve = Q(w);
3166
- return ve === "symbol" ? String(w) : w;
3164
+ var Z = JSON.stringify(m, function(fe, E) {
3165
+ var ve = Q(E);
3166
+ return ve === "symbol" ? String(E) : E;
3167
3167
  });
3168
- return new z("Invalid " + K + " `" + O + "` of value `" + String($) + "` " + ("supplied to `" + I + "`, expected one of " + J + "."));
3168
+ return new z("Invalid " + K + " `" + O + "` of value `" + String($) + "` " + ("supplied to `" + I + "`, expected one of " + Z + "."));
3169
3169
  }
3170
- return A(P);
3170
+ return D(P);
3171
3171
  }
3172
3172
  function x(m) {
3173
3173
  function P(V, W, I, K, O) {
@@ -3176,15 +3176,15 @@ function Ns() {
3176
3176
  var $ = V[W], U = ae($);
3177
3177
  if (U !== "object")
3178
3178
  return new z("Invalid " + K + " `" + O + "` of type " + ("`" + U + "` supplied to `" + I + "`, expected an object."));
3179
- for (var J in $)
3180
- if (s($, J)) {
3181
- var q = m($, J, I, K, O + "." + J, n);
3179
+ for (var Z in $)
3180
+ if (s($, Z)) {
3181
+ var q = m($, Z, I, K, O + "." + Z, n);
3182
3182
  if (q instanceof Error)
3183
3183
  return q;
3184
3184
  }
3185
3185
  return null;
3186
3186
  }
3187
- return A(P);
3187
+ return D(P);
3188
3188
  }
3189
3189
  function R(m) {
3190
3190
  if (!Array.isArray(m))
@@ -3193,71 +3193,71 @@ function Ns() {
3193
3193
  var V = m[P];
3194
3194
  if (typeof V != "function")
3195
3195
  return c(
3196
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + pe(V) + " at index " + P + "."
3196
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + he(V) + " at index " + P + "."
3197
3197
  ), i;
3198
3198
  }
3199
3199
  function W(I, K, O, $, U) {
3200
- for (var J = [], q = 0; q < m.length; q++) {
3201
- var fe = m[q], w = fe(I, K, O, $, U, n);
3202
- if (w == null)
3200
+ for (var Z = [], q = 0; q < m.length; q++) {
3201
+ var fe = m[q], E = fe(I, K, O, $, U, n);
3202
+ if (E == null)
3203
3203
  return null;
3204
- w.data && s(w.data, "expectedType") && J.push(w.data.expectedType);
3204
+ E.data && s(E.data, "expectedType") && Z.push(E.data.expectedType);
3205
3205
  }
3206
- var ve = J.length > 0 ? ", expected one of type [" + J.join(", ") + "]" : "";
3206
+ var ve = Z.length > 0 ? ", expected one of type [" + Z.join(", ") + "]" : "";
3207
3207
  return new z("Invalid " + $ + " `" + U + "` supplied to " + ("`" + O + "`" + ve + "."));
3208
3208
  }
3209
- return A(W);
3209
+ return D(W);
3210
3210
  }
3211
3211
  function F() {
3212
3212
  function m(P, V, W, I, K) {
3213
3213
  return X(P[V]) ? null : new z("Invalid " + I + " `" + K + "` supplied to " + ("`" + W + "`, expected a ReactNode."));
3214
3214
  }
3215
- return A(m);
3215
+ return D(m);
3216
3216
  }
3217
- function D(m, P, V, W, I) {
3217
+ function A(m, P, V, W, I) {
3218
3218
  return new z(
3219
3219
  (m || "React class") + ": " + P + " type `" + V + "." + W + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
3220
3220
  );
3221
3221
  }
3222
- function _(m) {
3222
+ function N(m) {
3223
3223
  function P(V, W, I, K, O) {
3224
3224
  var $ = V[W], U = ae($);
3225
3225
  if (U !== "object")
3226
3226
  return new z("Invalid " + K + " `" + O + "` of type `" + U + "` " + ("supplied to `" + I + "`, expected `object`."));
3227
- for (var J in m) {
3228
- var q = m[J];
3227
+ for (var Z in m) {
3228
+ var q = m[Z];
3229
3229
  if (typeof q != "function")
3230
- return D(I, K, O, J, Q(q));
3231
- var fe = q($, J, I, K, O + "." + J, n);
3230
+ return A(I, K, O, Z, Q(q));
3231
+ var fe = q($, Z, I, K, O + "." + Z, n);
3232
3232
  if (fe)
3233
3233
  return fe;
3234
3234
  }
3235
3235
  return null;
3236
3236
  }
3237
- return A(P);
3237
+ return D(P);
3238
3238
  }
3239
- function N(m) {
3239
+ function k(m) {
3240
3240
  function P(V, W, I, K, O) {
3241
3241
  var $ = V[W], U = ae($);
3242
3242
  if (U !== "object")
3243
3243
  return new z("Invalid " + K + " `" + O + "` of type `" + U + "` " + ("supplied to `" + I + "`, expected `object`."));
3244
- var J = r({}, V[W], m);
3245
- for (var q in J) {
3244
+ var Z = r({}, V[W], m);
3245
+ for (var q in Z) {
3246
3246
  var fe = m[q];
3247
3247
  if (s(m, q) && typeof fe != "function")
3248
- return D(I, K, O, q, Q(fe));
3248
+ return A(I, K, O, q, Q(fe));
3249
3249
  if (!fe)
3250
3250
  return new z(
3251
3251
  "Invalid " + K + " `" + O + "` key `" + q + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(V[W], null, " ") + `
3252
3252
  Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
3253
3253
  );
3254
- var w = fe($, q, I, K, O + "." + q, n);
3255
- if (w)
3256
- return w;
3254
+ var E = fe($, q, I, K, O + "." + q, n);
3255
+ if (E)
3256
+ return E;
3257
3257
  }
3258
3258
  return null;
3259
3259
  }
3260
- return A(P);
3260
+ return D(P);
3261
3261
  }
3262
3262
  function X(m) {
3263
3263
  switch (typeof m) {
@@ -3311,7 +3311,7 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
3311
3311
  }
3312
3312
  return P;
3313
3313
  }
3314
- function pe(m) {
3314
+ function he(m) {
3315
3315
  var P = Q(m);
3316
3316
  switch (P) {
3317
3317
  case "array":
@@ -3325,10 +3325,10 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
3325
3325
  return P;
3326
3326
  }
3327
3327
  }
3328
- function Ce(m) {
3329
- return !m.constructor || !m.constructor.name ? E : m.constructor.name;
3328
+ function xe(m) {
3329
+ return !m.constructor || !m.constructor.name ? w : m.constructor.name;
3330
3330
  }
3331
- return M.checkPropTypes = a, M.resetWarningCache = a.resetWarningCache, M.PropTypes = M, M;
3331
+ return S.checkPropTypes = a, S.resetWarningCache = a.resetWarningCache, S.PropTypes = S, S;
3332
3332
  }, ht;
3333
3333
  }
3334
3334
  var pt, lr;
@@ -3343,10 +3343,10 @@ function zs() {
3343
3343
  return n.resetWarningCache = r, pt = function() {
3344
3344
  function s(i, l, d, h, f, p) {
3345
3345
  if (p !== e) {
3346
- var E = new Error(
3346
+ var w = new Error(
3347
3347
  "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"
3348
3348
  );
3349
- throw E.name = "Invariant Violation", E;
3349
+ throw w.name = "Invariant Violation", w;
3350
3350
  }
3351
3351
  }
3352
3352
  s.isRequired = s;
@@ -3385,7 +3385,7 @@ if (process.env.NODE_ENV !== "production") {
3385
3385
  } else
3386
3386
  gt.exports = zs()();
3387
3387
  var Is = gt.exports;
3388
- const Z = /* @__PURE__ */ un(Is), $s = (e, r, n) => {
3388
+ const G = /* @__PURE__ */ un(Is), $s = (e, r, n) => {
3389
3389
  const s = e[r];
3390
3390
  if (s && isNaN(Date.parse(s)))
3391
3391
  return new Error(
@@ -3410,77 +3410,79 @@ const Z = /* @__PURE__ */ un(Is), $s = (e, r, n) => {
3410
3410
  },
3411
3411
  onFileUploaded: c = () => {
3412
3412
  },
3413
- onPaste: i,
3414
- onRename: l,
3415
- onDownload: d,
3416
- onDelete: h = () => null,
3417
- onLayoutChange: f = () => {
3413
+ onCut: i,
3414
+ onCopy: l,
3415
+ onPaste: d,
3416
+ onRename: h,
3417
+ onDownload: f,
3418
+ onDelete: p = () => null,
3419
+ onLayoutChange: w = () => {
3418
3420
  },
3419
- onRefresh: p,
3420
- onFileOpen: E = () => {
3421
+ onRefresh: S,
3422
+ onFileOpen: M = () => {
3421
3423
  },
3422
- onError: M = () => {
3424
+ onError: z = () => {
3423
3425
  },
3424
- layout: S = "grid",
3425
- enableFilePreview: z = !0,
3426
- maxFileSize: A,
3427
- filePreviewPath: C,
3428
- acceptedFileTypes: j,
3429
- height: y = "600px",
3430
- width: b = "100%",
3431
- initialPath: u = "",
3432
- filePreviewComponent: g,
3433
- primaryColor: k = "#6155b4",
3434
- fontFamily: x = "Nunito Sans, sans-serif"
3426
+ layout: D = "grid",
3427
+ enableFilePreview: C = !0,
3428
+ maxFileSize: j,
3429
+ filePreviewPath: y,
3430
+ acceptedFileTypes: b,
3431
+ height: u = "600px",
3432
+ width: g = "100%",
3433
+ initialPath: _ = "",
3434
+ filePreviewComponent: x,
3435
+ primaryColor: R = "#6155b4",
3436
+ fontFamily: F = "Nunito Sans, sans-serif"
3435
3437
  }) => {
3436
- const R = Ss(), { containerRef: F, colSizes: D, isDragging: _, handleMouseMove: N, handleMouseUp: X, handleMouseDown: oe } = Ms(20, 80), ae = {
3437
- "--file-manager-font-family": x,
3438
- "--file-manager-primary-color": k,
3439
- height: y,
3440
- width: b
3438
+ const A = Ss(), { containerRef: N, colSizes: k, isDragging: X, handleMouseMove: oe, handleMouseUp: ae, handleMouseDown: Q } = Ms(20, 80), he = {
3439
+ "--file-manager-font-family": F,
3440
+ "--file-manager-primary-color": R,
3441
+ height: u,
3442
+ width: g
3441
3443
  };
3442
- return /* @__PURE__ */ t.jsxs("main", { className: "file-explorer", onContextMenu: (Q) => Q.preventDefault(), style: ae, children: [
3444
+ return /* @__PURE__ */ t.jsxs("main", { className: "file-explorer", onContextMenu: (xe) => xe.preventDefault(), style: he, children: [
3443
3445
  /* @__PURE__ */ t.jsx(xt, { loading: n }),
3444
- /* @__PURE__ */ t.jsx(Nn, { filesData: e, onError: M, children: /* @__PURE__ */ t.jsx(zn, { initialPath: u, children: /* @__PURE__ */ t.jsx(An, { onDownload: d, children: /* @__PURE__ */ t.jsx(Dn, { onPaste: i, children: /* @__PURE__ */ t.jsxs(kn, { layout: S, children: [
3446
+ /* @__PURE__ */ t.jsx(Nn, { filesData: e, onError: z, children: /* @__PURE__ */ t.jsx(zn, { initialPath: _, children: /* @__PURE__ */ t.jsx(An, { onDownload: f, children: /* @__PURE__ */ t.jsx(Dn, { onPaste: d, onCut: i, onCopy: l, children: /* @__PURE__ */ t.jsxs(kn, { layout: D, children: [
3445
3447
  /* @__PURE__ */ t.jsx(
3446
3448
  Fr,
3447
3449
  {
3448
3450
  allowCreateFolder: !0,
3449
3451
  allowUploadFile: !0,
3450
- onLayoutChange: f,
3451
- onRefresh: p,
3452
- triggerAction: R
3452
+ onLayoutChange: w,
3453
+ onRefresh: S,
3454
+ triggerAction: A
3453
3455
  }
3454
3456
  ),
3455
3457
  /* @__PURE__ */ t.jsxs(
3456
3458
  "section",
3457
3459
  {
3458
- ref: F,
3459
- onMouseMove: N,
3460
- onMouseUp: X,
3460
+ ref: N,
3461
+ onMouseMove: oe,
3462
+ onMouseUp: ae,
3461
3463
  className: "files-container",
3462
3464
  children: [
3463
- /* @__PURE__ */ t.jsxs("div", { className: "navigation-pane", style: { width: D.col1 + "%" }, children: [
3465
+ /* @__PURE__ */ t.jsxs("div", { className: "navigation-pane", style: { width: k.col1 + "%" }, children: [
3464
3466
  /* @__PURE__ */ t.jsx(Lr, {}),
3465
3467
  /* @__PURE__ */ t.jsx(
3466
3468
  "div",
3467
3469
  {
3468
- className: `sidebar-resize ${_ ? "sidebar-dragging" : ""}`,
3469
- onMouseDown: oe
3470
+ className: `sidebar-resize ${X ? "sidebar-dragging" : ""}`,
3471
+ onMouseDown: Q
3470
3472
  }
3471
3473
  )
3472
3474
  ] }),
3473
- /* @__PURE__ */ t.jsxs("div", { className: "folders-preview", style: { width: D.col2 + "%" }, children: [
3475
+ /* @__PURE__ */ t.jsxs("div", { className: "folders-preview", style: { width: k.col2 + "%" }, children: [
3474
3476
  /* @__PURE__ */ t.jsx(Or, {}),
3475
3477
  /* @__PURE__ */ t.jsx(
3476
3478
  Dr,
3477
3479
  {
3478
3480
  onCreateFolder: s,
3479
- onRename: l,
3480
- onFileOpen: E,
3481
- onRefresh: p,
3482
- enableFilePreview: z,
3483
- triggerAction: R
3481
+ onRename: h,
3482
+ onFileOpen: M,
3483
+ onRefresh: S,
3484
+ enableFilePreview: C,
3485
+ triggerAction: A
3484
3486
  }
3485
3487
  )
3486
3488
  ] })
@@ -3493,13 +3495,13 @@ const Z = /* @__PURE__ */ un(Is), $s = (e, r, n) => {
3493
3495
  fileUploadConfig: r,
3494
3496
  onFileUploading: a,
3495
3497
  onFileUploaded: c,
3496
- onDelete: h,
3497
- onRefresh: p,
3498
- maxFileSize: A,
3499
- filePreviewPath: C,
3500
- filePreviewComponent: g,
3501
- acceptedFileTypes: j,
3502
- triggerAction: R
3498
+ onDelete: p,
3499
+ onRefresh: S,
3500
+ maxFileSize: j,
3501
+ filePreviewPath: y,
3502
+ filePreviewComponent: x,
3503
+ acceptedFileTypes: b,
3504
+ triggerAction: A
3503
3505
  }
3504
3506
  )
3505
3507
  ] }) }) }) }) })
@@ -3507,42 +3509,44 @@ const Z = /* @__PURE__ */ un(Is), $s = (e, r, n) => {
3507
3509
  };
3508
3510
  Br.displayName = "FileManager";
3509
3511
  Br.propTypes = {
3510
- files: Z.arrayOf(
3511
- Z.shape({
3512
- name: Z.string.isRequired,
3513
- isDirectory: Z.bool.isRequired,
3514
- path: Z.string.isRequired,
3512
+ files: G.arrayOf(
3513
+ G.shape({
3514
+ name: G.string.isRequired,
3515
+ isDirectory: G.bool.isRequired,
3516
+ path: G.string.isRequired,
3515
3517
  updatedAt: $s,
3516
- size: Z.number
3518
+ size: G.number
3517
3519
  })
3518
3520
  ).isRequired,
3519
- fileUploadConfig: Z.shape({
3521
+ fileUploadConfig: G.shape({
3520
3522
  url: ur,
3521
- headers: Z.objectOf(Z.string)
3523
+ headers: G.objectOf(G.string)
3522
3524
  }),
3523
- isLoading: Z.bool,
3524
- onCreateFolder: Z.func,
3525
- onFileUploading: Z.func,
3526
- onFileUploaded: Z.func,
3527
- onRename: Z.func,
3528
- onDelete: Z.func,
3529
- onPaste: Z.func,
3530
- onDownload: Z.func,
3531
- onLayoutChange: Z.func,
3532
- onRefresh: Z.func,
3533
- onFileOpen: Z.func,
3534
- onError: Z.func,
3535
- layout: Z.oneOf(["grid", "list"]),
3536
- maxFileSize: Z.number,
3537
- enableFilePreview: Z.bool,
3525
+ isLoading: G.bool,
3526
+ onCreateFolder: G.func,
3527
+ onFileUploading: G.func,
3528
+ onFileUploaded: G.func,
3529
+ onRename: G.func,
3530
+ onDelete: G.func,
3531
+ onCut: G.func,
3532
+ onCopy: G.func,
3533
+ onPaste: G.func,
3534
+ onDownload: G.func,
3535
+ onLayoutChange: G.func,
3536
+ onRefresh: G.func,
3537
+ onFileOpen: G.func,
3538
+ onError: G.func,
3539
+ layout: G.oneOf(["grid", "list"]),
3540
+ maxFileSize: G.number,
3541
+ enableFilePreview: G.bool,
3538
3542
  filePreviewPath: ur,
3539
- acceptedFileTypes: Z.string,
3540
- height: Z.oneOfType([Z.string, Z.number]),
3541
- width: Z.oneOfType([Z.string, Z.number]),
3542
- initialPath: Z.string,
3543
- filePreviewComponent: Z.func,
3544
- primaryColor: Z.string,
3545
- fontFamily: Z.string
3543
+ acceptedFileTypes: G.string,
3544
+ height: G.oneOfType([G.string, G.number]),
3545
+ width: G.oneOfType([G.string, G.number]),
3546
+ initialPath: G.string,
3547
+ filePreviewComponent: G.func,
3548
+ primaryColor: G.string,
3549
+ fontFamily: G.string
3546
3550
  };
3547
3551
  export {
3548
3552
  Br as FileManager