@cubone/react-file-manager 1.14.0 → 1.15.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.
@@ -1,6 +1,6 @@
1
1
  import { jsx as e, jsxs as g, Fragment as se } from "react/jsx-runtime";
2
2
  import lt from "react-loading";
3
- import Lt, { useState as b, useRef as re, useEffect as Y, createContext as ve, useContext as ge, useMemo as $e } from "react";
3
+ import Lt, { useState as b, useRef as re, useEffect as V, createContext as ve, useContext as ge, useMemo as $e } from "react";
4
4
  import { BsGridFill as ct, BsScissors as dt, BsCopy as ut, BsFolderPlus as ft, BsGrid as Ue } from "react-icons/bs";
5
5
  import { FiRefreshCw as ht } from "react-icons/fi";
6
6
  import { MdOutlineFileDownload as je, MdOutlineDelete as pt, MdClear as It, MdOutlineFileUpload as mt, MdKeyboardArrowRight as At, MdHome as $t, MdOutlineNavigateNext as jt, MdMoreHoriz as zt, MdClose as Wt } from "react-icons/md";
@@ -22,7 +22,7 @@ const Ct = ({ isLoading: t }) => {
22
22
  var i;
23
23
  (i = r.current) != null && i.contains(a.target) ? s(!1) : (s(!0), t(a, r));
24
24
  };
25
- return Y(() => (document.addEventListener("click", o, !0), document.addEventListener("mousedown", o, !0), () => {
25
+ return V(() => (document.addEventListener("click", o, !0), document.addEventListener("mousedown", o, !0), () => {
26
26
  document.removeEventListener("click", o, !0), document.removeEventListener("mousedown", o, !0);
27
27
  }), []), { ref: r, isClicked: n, setIsClicked: s };
28
28
  }, wt = ve(), tn = ({ children: t, layout: n }) => {
@@ -64,16 +64,16 @@ const Ct = ({ isLoading: t }) => {
64
64
  )) }) });
65
65
  }, bt = ve(), rn = ({ children: t, filesData: n, onError: s }) => {
66
66
  const [r, o] = b([]);
67
- Y(() => {
67
+ V(() => {
68
68
  o(n);
69
69
  }, [n]);
70
70
  const a = (i) => i.isDirectory ? r.filter((l) => l.path === `${i.path}/${l.name}`) : [];
71
71
  return /* @__PURE__ */ e(bt.Provider, { value: { files: r, setFiles: o, getChildren: a, onError: s }, children: t });
72
72
  }, ke = () => ge(bt), Ft = ve(), sn = ({ children: t, initialPath: n }) => {
73
73
  const { files: s } = ke(), r = re(!1), [o, a] = b(""), [i, l] = b(null), [c, u] = b([]);
74
- return Y(() => {
74
+ return V(() => {
75
75
  Array.isArray(s) && s.length > 0 && (u(() => s.filter((h) => h.path === `${o}/${h.name}`)), l(() => s.find((h) => h.path === o) ?? null));
76
- }, [s, o]), Y(() => {
76
+ }, [s, o]), V(() => {
77
77
  !r.current && Array.isArray(s) && s.length > 0 && (a(s.some((h) => h.path === n) ? n : ""), r.current = !0);
78
78
  }, [n, s]), /* @__PURE__ */ e(
79
79
  Ft.Provider,
@@ -125,7 +125,7 @@ const Ct = ({ isLoading: t }) => {
125
125
  triggerAction: o
126
126
  }) => {
127
127
  var N;
128
- const [a, i] = b(!1), { currentFolder: l } = oe(), { selectedFiles: c, setSelectedFiles: u, handleDownload: h } = le(), { clipBoard: f, setClipBoard: w, handleCutCopy: D, handlePasting: R } = Ne(), { activeLayout: O } = ce(), M = [
128
+ const [a, i] = b(!1), { currentFolder: l } = oe(), { selectedFiles: c, setSelectedFiles: u, handleDownload: h } = le(), { clipBoard: f, setClipBoard: w, handleCutCopy: T, handlePasting: R } = Ne(), { activeLayout: O } = ce(), M = [
129
129
  {
130
130
  icon: /* @__PURE__ */ e(ft, { size: 17, strokeWidth: 0.3 }),
131
131
  text: "New folder",
@@ -166,11 +166,11 @@ const Ct = ({ isLoading: t }) => {
166
166
  };
167
167
  return c.length > 0 ? /* @__PURE__ */ e("div", { className: "toolbar file-selected", children: /* @__PURE__ */ g("div", { className: "file-action-container", children: [
168
168
  /* @__PURE__ */ g("div", { children: [
169
- /* @__PURE__ */ g("button", { className: "item-action file-action", onClick: () => D(!0), children: [
169
+ /* @__PURE__ */ g("button", { className: "item-action file-action", onClick: () => T(!0), children: [
170
170
  /* @__PURE__ */ e(dt, { size: 18 }),
171
171
  /* @__PURE__ */ e("span", { children: "Cut" })
172
172
  ] }),
173
- /* @__PURE__ */ g("button", { className: "item-action file-action", onClick: () => D(!1), children: [
173
+ /* @__PURE__ */ g("button", { className: "item-action file-action", onClick: () => T(!1), children: [
174
174
  /* @__PURE__ */ e(ut, { strokeWidth: 0.1, size: 17 }),
175
175
  /* @__PURE__ */ e("span", { children: "Copy" })
176
176
  ] }),
@@ -254,7 +254,7 @@ const Ct = ({ isLoading: t }) => {
254
254
  }, c = (u) => {
255
255
  u.stopPropagation(), s((h) => !h);
256
256
  };
257
- return Y(() => {
257
+ return V(() => {
258
258
  o(a === t.path);
259
259
  const u = a.split("/");
260
260
  u.pop(), u.join("/") === t.path && s(!0);
@@ -302,17 +302,17 @@ const Ct = ({ isLoading: t }) => {
302
302
  subDirectories: r(l.path, a)
303
303
  })) : [];
304
304
  };
305
- return Y(() => {
305
+ return V(() => {
306
306
  if (Array.isArray(s)) {
307
307
  const o = s.filter((i) => i.isDirectory), a = Object.groupBy(o, ({ path: i }) => cn(i));
308
308
  n(() => r("", a));
309
309
  }
310
310
  }, [s]), /* @__PURE__ */ e("div", { className: "sb-folders-list", children: (t == null ? void 0 : t.length) > 0 ? /* @__PURE__ */ e(se, { children: t == null ? void 0 : t.map((o, a) => /* @__PURE__ */ e(Pt, { folder: o }, a)) }) : /* @__PURE__ */ e("div", { className: "empty-nav-pane", children: "Nothing here yet" }) });
311
311
  }, un = () => {
312
- const [t, n] = b([]), [s, r] = b([]), [o, a] = b([]), [i, l] = b(!1), { currentPath: c, setCurrentPath: u } = oe(), h = re(null), f = re([]), w = re(null), D = ye(() => {
312
+ const [t, n] = b([]), [s, r] = b([]), [o, a] = b([]), [i, l] = b(!1), { currentPath: c, setCurrentPath: u } = oe(), h = re(null), f = re([]), w = re(null), T = ye(() => {
313
313
  l(!1);
314
314
  });
315
- Y(() => {
315
+ V(() => {
316
316
  n(() => {
317
317
  let E = "";
318
318
  return c == null ? void 0 : c.split("/").map((F) => ({
@@ -328,14 +328,14 @@ const Ct = ({ isLoading: t }) => {
328
328
  return E - (N + p);
329
329
  }, M = () => {
330
330
  var m;
331
- const E = O(), F = f.current.reduce((p, T) => T ? p + T.clientWidth : p, 0), N = ((m = w.current) == null ? void 0 : m.clientWidth) || 0;
331
+ const E = O(), F = f.current.reduce((p, D) => D ? p + D.clientWidth : p, 0), N = ((m = w.current) == null ? void 0 : m.clientWidth) || 0;
332
332
  return E - (F + N);
333
333
  }, C = () => h.current.scrollWidth > h.current.clientWidth;
334
- return Y(() => {
334
+ return V(() => {
335
335
  var E;
336
336
  if (C()) {
337
337
  const F = t[1], N = (E = f.current[1]) == null ? void 0 : E.clientWidth;
338
- a((m) => [...m, N]), r((m) => [...m, F]), n((m) => m.filter((p, T) => T !== 1));
338
+ a((m) => [...m, N]), r((m) => [...m, F]), n((m) => m.filter((p, D) => D !== 1));
339
339
  } else if (s.length > 0 && M() > o.at(-1)) {
340
340
  const F = [t[0], s.at(-1), ...t.slice(1)];
341
341
  n(F), r((N) => N.slice(0, -1)), a((N) => N.slice(0, -1));
@@ -365,7 +365,7 @@ const Ct = ({ isLoading: t }) => {
365
365
  }
366
366
  )
367
367
  ] }, F)) }),
368
- i && /* @__PURE__ */ e("ul", { ref: D.ref, className: "hidden-folders-container", children: s.map((E, F) => /* @__PURE__ */ e(
368
+ i && /* @__PURE__ */ e("ul", { ref: T.ref, className: "hidden-folders-container", children: s.map((E, F) => /* @__PURE__ */ e(
369
369
  "li",
370
370
  {
371
371
  onClick: () => {
@@ -440,7 +440,7 @@ const Ct = ({ isLoading: t }) => {
440
440
  rows: i
441
441
  }
442
442
  ), xt = ({ message: t, xPlacement: n, yPlacement: s }) => /* @__PURE__ */ e("p", { className: `error-tooltip ${n} ${s}`, children: t }), fn = 220, hn = ({ filesViewRef: t, file: n, onCreateFolder: s, triggerAction: r }) => {
443
- const [o, a] = b(n.name), [i, l] = b(!1), [c, u] = b(""), [h, f] = b("right"), [w, D] = b("bottom"), R = ye((p) => {
443
+ const [o, a] = b(n.name), [i, l] = b(!1), [c, u] = b(""), [h, f] = b("right"), [w, T] = b("bottom"), R = ye((p) => {
444
444
  p.preventDefault(), p.stopPropagation();
445
445
  }), { currentFolder: O, currentPathFiles: M, setCurrentPathFiles: C } = oe(), { activeLayout: E } = ce(), F = (p) => {
446
446
  a(p.target.value), l(!1);
@@ -453,7 +453,7 @@ const Ct = ({ isLoading: t }) => {
453
453
  `A file name can't contain any of the following characters: \\ / : * ? " < > |`
454
454
  ), l(!0)) : (l(!1), u(""));
455
455
  };
456
- Y(() => {
456
+ V(() => {
457
457
  if (i) {
458
458
  const p = setTimeout(() => {
459
459
  l(!1), u("");
@@ -464,20 +464,20 @@ const Ct = ({ isLoading: t }) => {
464
464
  function m() {
465
465
  var P, x;
466
466
  let p = o.trim();
467
- const T = M.filter((j) => !(j.key && j.key === n.key));
468
- if (T.find((j) => j.name.toLowerCase() === p.toLowerCase())) {
467
+ const D = M.filter((j) => !(j.key && j.key === n.key));
468
+ if (D.find((j) => j.name.toLowerCase() === p.toLowerCase())) {
469
469
  u(`This destination already contains a folder named '${p}'.`), l(!0), (P = R.ref.current) == null || P.focus(), (x = R.ref.current) == null || x.select(), R.setIsClicked(!1);
470
470
  return;
471
471
  }
472
- p === "" && (p = Et("New Folder", !0, T)), fe(s, "onCreateFolder", p, O), C((j) => j.filter((H) => H.key !== n.key)), r.close();
472
+ p === "" && (p = Et("New Folder", !0, D)), fe(s, "onCreateFolder", p, O), C((j) => j.filter((H) => H.key !== n.key)), r.close();
473
473
  }
474
- return Y(() => {
475
- var p, T, y;
476
- if ((p = R.ref.current) == null || p.focus(), (T = R.ref.current) == null || T.select(), (y = R.ref) != null && y.current) {
474
+ return V(() => {
475
+ var p, D, y;
476
+ if ((p = R.ref.current) == null || p.focus(), (D = R.ref.current) == null || D.select(), (y = R.ref) != null && y.current) {
477
477
  const H = t.current.getBoundingClientRect(), I = R.ref.current, K = I.getBoundingClientRect();
478
- H.right - K.left > 313 ? f("right") : f("left"), H.bottom - (K.top + I.clientHeight) > 88 ? D("bottom") : D("top");
478
+ H.right - K.left > 313 ? f("right") : f("left"), H.bottom - (K.top + I.clientHeight) > 88 ? T("bottom") : T("top");
479
479
  }
480
- }, []), Y(() => {
480
+ }, []), V(() => {
481
481
  R.isClicked && m();
482
482
  }, [R.isClicked]), /* @__PURE__ */ g(se, { children: [
483
483
  /* @__PURE__ */ e(
@@ -522,7 +522,7 @@ const Ct = ({ isLoading: t }) => {
522
522
  const l = re(null), c = (u) => {
523
523
  u.key === "Escape" && s(!1);
524
524
  };
525
- return Y(() => {
525
+ return V(() => {
526
526
  n ? l.current.showModal() : l.current.close();
527
527
  }, [n]), /* @__PURE__ */ g(
528
528
  "dialog",
@@ -541,7 +541,7 @@ const Ct = ({ isLoading: t }) => {
541
541
  }
542
542
  );
543
543
  }, pe = (t) => t.split(".").pop(), pn = 220, mn = ({ filesViewRef: t, file: n, onRename: s, triggerAction: r }) => {
544
- const [o, a] = b(n == null ? void 0 : n.name), [i, l] = b(!1), [c, u] = b(!1), [h, f] = b(""), [w, D] = b("right"), [R, O] = b("bottom"), { currentPathFiles: M, setCurrentPathFiles: C } = oe(), { activeLayout: E } = ce(), F = re(null), N = ye((y) => {
544
+ const [o, a] = b(n == null ? void 0 : n.name), [i, l] = b(!1), [c, u] = b(!1), [h, f] = b(""), [w, T] = b("right"), [R, O] = b("bottom"), { currentPathFiles: M, setCurrentPathFiles: C } = oe(), { activeLayout: E } = ce(), F = re(null), N = ye((y) => {
545
545
  var P;
546
546
  (P = F.current) != null && P.contains(y.target) || (y.preventDefault(), y.stopPropagation());
547
547
  }), m = (y) => {
@@ -553,7 +553,7 @@ const Ct = ({ isLoading: t }) => {
553
553
  `A file name can't contain any of the following characters: \\ / : * ? " < > |`
554
554
  ), u(!0)) : u(!1);
555
555
  };
556
- Y(() => {
556
+ V(() => {
557
557
  if (c) {
558
558
  const y = setTimeout(() => {
559
559
  u(!1), f("");
@@ -579,23 +579,23 @@ const Ct = ({ isLoading: t }) => {
579
579
  }
580
580
  u(!1), fe(s, "onRename", n, o), C((P) => P.filter((x) => x.key !== n.key)), r.close();
581
581
  }
582
- const T = () => {
582
+ const D = () => {
583
583
  var y, P, x, j, H, I;
584
584
  if ((P = (y = N.ref) == null ? void 0 : y.current) == null || P.focus(), n.isDirectory)
585
585
  (j = (x = N.ref) == null ? void 0 : x.current) == null || j.select();
586
586
  else {
587
- const K = pe(n.name), te = n.name.length - K.length - 1;
588
- (I = (H = N.ref) == null ? void 0 : H.current) == null || I.setSelectionRange(0, te);
587
+ const K = pe(n.name), Z = n.name.length - K.length - 1;
588
+ (I = (H = N.ref) == null ? void 0 : H.current) == null || I.setSelectionRange(0, Z);
589
589
  }
590
590
  };
591
- return Y(() => {
591
+ return V(() => {
592
592
  var y;
593
- if (T(), (y = N.ref) != null && y.current) {
593
+ if (D(), (y = N.ref) != null && y.current) {
594
594
  const H = t.current.getBoundingClientRect(), I = N.ref.current, K = I.getBoundingClientRect();
595
- H.right - K.left > 313 ? D("right") : D("left"), H.bottom - (K.top + I.clientHeight) > 88 ? O("bottom") : O("top");
595
+ H.right - K.left > 313 ? T("right") : T("left"), H.bottom - (K.top + I.clientHeight) > 88 ? O("bottom") : O("top");
596
596
  }
597
- }, []), Y(() => {
598
- N.isClicked && p(!1), T();
597
+ }, []), V(() => {
598
+ N.isClicked && p(!1), D();
599
599
  }, [N.isClicked]), /* @__PURE__ */ g(se, { children: [
600
600
  /* @__PURE__ */ e(
601
601
  Rt,
@@ -703,11 +703,11 @@ const Ct = ({ isLoading: t }) => {
703
703
  handleContextMenu: u,
704
704
  setLastSelectedFile: h
705
705
  }) => {
706
- var Z, G, ie, We;
707
- const [f, w] = b(!1), [D, R] = b(0), [O, M] = b("hidden"), [C, E] = b(""), [F, N] = b(null), { activeLayout: m } = ce(), p = m === "grid" ? 48 : 20, T = Fe(p), { setCurrentPath: y, currentPathFiles: P } = oe(), { setSelectedFiles: x } = le(), { clipBoard: j, handleCutCopy: H, setClipBoard: I, handlePasting: K } = Ne(), te = re(null), X = Fe(Re), V = (j == null ? void 0 : j.isMoving) && j.files.find((W) => W.name === n.name && W.path === n.path), de = () => {
706
+ var Q, G, ie, We;
707
+ const [f, w] = b(!1), [T, R] = b(0), [O, M] = b("hidden"), [C, E] = b(""), [F, N] = b(null), { activeLayout: m } = ce(), p = m === "grid" ? 48 : 20, D = Fe(p), { setCurrentPath: y, currentPathFiles: P } = oe(), { setSelectedFiles: x } = le(), { clipBoard: j, handleCutCopy: H, setClipBoard: I, handlePasting: K } = Ne(), Z = re(null), X = Fe(Re), Y = (j == null ? void 0 : j.isMoving) && j.files.find((B) => B.name === n.name && B.path === n.path), de = () => {
708
708
  a(n), n.isDirectory ? (y(n.path), x([])) : o && c.show("previewFile");
709
- }, Ce = (W, ne) => {
710
- if (l.length > 0 && W) {
709
+ }, Ce = (B, ne) => {
710
+ if (l.length > 0 && B) {
711
711
  let ae = !1, ue = l[0], he = t;
712
712
  if (ue >= he) {
713
713
  const Mt = ue;
@@ -719,40 +719,40 @@ const Ct = ({ isLoading: t }) => {
719
719
  const ue = ae.filter((he) => he.path !== n.path);
720
720
  return ae.length === ue.length ? [...ae, n] : ue;
721
721
  }) : x([n]);
722
- }, d = (W) => {
723
- if (W.stopPropagation(), n.isEditing) return;
724
- Ce(W.shiftKey, W.ctrlKey);
722
+ }, d = (B) => {
723
+ if (B.stopPropagation(), n.isEditing) return;
724
+ Ce(B.shiftKey, B.ctrlKey);
725
725
  const ne = (/* @__PURE__ */ new Date()).getTime();
726
- if (ne - D < 300) {
726
+ if (ne - T < 300) {
727
727
  de();
728
728
  return;
729
729
  }
730
730
  R(ne);
731
- }, v = (W) => {
732
- W.key === "Enter" && (W.stopPropagation(), x([n]), de());
733
- }, $ = (W) => {
734
- W.stopPropagation(), W.preventDefault(), !n.isEditing && (f || x([n]), h(n), u(W, !0));
731
+ }, v = (B) => {
732
+ B.key === "Enter" && (B.stopPropagation(), x([n]), de());
733
+ }, $ = (B) => {
734
+ B.stopPropagation(), B.preventDefault(), !n.isEditing && (f || x([n]), h(n), u(B, !0));
735
735
  }, A = () => {
736
736
  M("visible");
737
737
  }, S = () => {
738
738
  !f && M("hidden");
739
- }, z = (W) => {
740
- W.target.checked ? x((ne) => [...ne, n]) : x((ne) => ne.filter((ae) => ae.name !== n.name && ae.path !== n.path)), w(W.target.checked);
741
- }, k = (W) => {
742
- W.dataTransfer.setDragImage(te.current, 30, 50), W.dataTransfer.effectAllowed = "copy", H(!0);
743
- }, L = () => I(null), B = (W) => {
744
- W.preventDefault(), f || !n.isDirectory ? W.dataTransfer.dropEffect = "none" : (N({ x: W.clientX, y: W.clientY + 12 }), W.dataTransfer.dropEffect = "copy", E("file-drop-zone"));
745
- }, _ = (W) => {
746
- W.currentTarget.contains(W.relatedTarget) || (E((ne) => ne && ""), N(null));
747
- }, q = (W) => {
748
- W.preventDefault(), !(f || !n.isDirectory) && (K(n), E((ne) => ne && ""), N(null));
739
+ }, W = (B) => {
740
+ B.target.checked ? x((ne) => [...ne, n]) : x((ne) => ne.filter((ae) => ae.name !== n.name && ae.path !== n.path)), w(B.target.checked);
741
+ }, k = (B) => {
742
+ B.dataTransfer.setDragImage(Z.current, 30, 50), B.dataTransfer.effectAllowed = "copy", H(!0);
743
+ }, L = () => I(null), U = (B) => {
744
+ B.preventDefault(), f || !n.isDirectory ? B.dataTransfer.dropEffect = "none" : (N({ x: B.clientX, y: B.clientY + 12 }), B.dataTransfer.dropEffect = "copy", E("file-drop-zone"));
745
+ }, _ = (B) => {
746
+ B.currentTarget.contains(B.relatedTarget) || (E((ne) => ne && ""), N(null));
747
+ }, q = (B) => {
748
+ B.preventDefault(), !(f || !n.isDirectory) && (K(n), E((ne) => ne && ""), N(null));
749
749
  };
750
- return Y(() => {
750
+ return V(() => {
751
751
  w(l.includes(t)), M(l.includes(t) ? "visible" : "hidden");
752
752
  }, [l]), /* @__PURE__ */ g(
753
753
  "div",
754
754
  {
755
- className: `file-item-container ${C} ${f || n.isEditing ? "file-selected" : ""} ${V ? "file-moving" : ""}`,
755
+ className: `file-item-container ${C} ${f || n.isEditing ? "file-selected" : ""} ${Y ? "file-moving" : ""}`,
756
756
  tabIndex: 0,
757
757
  title: n.name,
758
758
  onClick: d,
@@ -763,8 +763,8 @@ const Ct = ({ isLoading: t }) => {
763
763
  draggable: f,
764
764
  onDragStart: k,
765
765
  onDragEnd: L,
766
- onDragEnter: B,
767
- onDragOver: B,
766
+ onDragEnter: U,
767
+ onDragOver: U,
768
768
  onDragLeave: _,
769
769
  onDrop: q,
770
770
  children: [
@@ -776,11 +776,11 @@ const Ct = ({ isLoading: t }) => {
776
776
  id: n.name,
777
777
  checked: f,
778
778
  className: `selection-checkbox ${O}`,
779
- onChange: z,
780
- onClick: (W) => W.stopPropagation()
779
+ onChange: W,
780
+ onClick: (B) => B.stopPropagation()
781
781
  }
782
782
  ),
783
- n.isDirectory ? /* @__PURE__ */ e(Ve, { size: p }) : /* @__PURE__ */ e(se, { children: T[(G = (Z = n.name) == null ? void 0 : Z.split(".").pop()) == null ? void 0 : G.toLowerCase()] ?? /* @__PURE__ */ e(be, { size: p }) }),
783
+ n.isDirectory ? /* @__PURE__ */ e(Ve, { size: p }) : /* @__PURE__ */ e(se, { children: D[(G = (Q = n.name) == null ? void 0 : Q.split(".").pop()) == null ? void 0 : G.toLowerCase()] ?? /* @__PURE__ */ e(be, { size: p }) }),
784
784
  n.isEditing ? /* @__PURE__ */ e("div", { className: `rename-file-container ${m}`, children: c.actionType === "createFolder" ? /* @__PURE__ */ e(
785
785
  hn,
786
786
  {
@@ -817,7 +817,7 @@ const Ct = ({ isLoading: t }) => {
817
817
  ]
818
818
  }
819
819
  ),
820
- /* @__PURE__ */ e("div", { ref: te, className: "drag-icon", children: n.isDirectory ? /* @__PURE__ */ e(Ve, { size: Re }) : /* @__PURE__ */ e(se, { children: X[(We = (ie = n.name) == null ? void 0 : ie.split(".").pop()) == null ? void 0 : We.toLowerCase()] ?? /* @__PURE__ */ e(be, { size: Re }) }) })
820
+ /* @__PURE__ */ e("div", { ref: Z, className: "drag-icon", children: n.isDirectory ? /* @__PURE__ */ e(Ve, { size: Re }) : /* @__PURE__ */ e(se, { children: X[(We = (ie = n.name) == null ? void 0 : ie.split(".").pop()) == null ? void 0 : We.toLowerCase()] ?? /* @__PURE__ */ e(be, { size: Re }) }) })
821
821
  ]
822
822
  }
823
823
  );
@@ -826,15 +826,15 @@ const Ct = ({ isLoading: t }) => {
826
826
  r.icon,
827
827
  /* @__PURE__ */ e("span", { children: r.title })
828
828
  ] }, r.title)) }), Cn = ({ filesViewRef: t, contextMenuRef: n, menuItems: s, visible: r, clickPosition: o }) => {
829
- const [a, i] = b(0), [l, c] = b(0), [u, h] = b(null), [f, w] = b("right"), D = re(null), R = () => {
830
- const { clickX: C, clickY: E } = o, F = t.current, N = F.getBoundingClientRect(), m = F.offsetWidth - F.clientWidth, p = n.current.getBoundingClientRect(), T = p.width, y = p.height, P = C - N.left, x = N.width - (P + m) > T, j = !x, H = E - N.top, I = N.height - H > y, K = !I;
831
- x ? (i(`${P}px`), w("right")) : j && (i(`${P - T}px`), w("left")), I ? c(`${H + F.scrollTop}px`) : K && c(`${H + F.scrollTop - y}px`);
829
+ const [a, i] = b(0), [l, c] = b(0), [u, h] = b(null), [f, w] = b("right"), T = re(null), R = () => {
830
+ const { clickX: C, clickY: E } = o, F = t.current, N = F.getBoundingClientRect(), m = F.offsetWidth - F.clientWidth, p = n.current.getBoundingClientRect(), D = p.width, y = p.height, P = C - N.left, x = N.width - (P + m) > D, j = !x, H = E - N.top, I = N.height - H > y, K = !I;
831
+ x ? (i(`${P}px`), w("right")) : j && (i(`${P - D}px`), w("left")), I ? c(`${H + F.scrollTop}px`) : K && c(`${H + F.scrollTop - y}px`);
832
832
  }, O = (C) => {
833
833
  C.preventDefault(), C.stopPropagation();
834
834
  }, M = (C) => {
835
835
  h(C);
836
836
  };
837
- if (Y(() => {
837
+ if (V(() => {
838
838
  r && n.current ? R() : (c(0), i(0), h(null));
839
839
  }, [r]), r)
840
840
  return /* @__PURE__ */ e(
@@ -865,7 +865,7 @@ const Ct = ({ isLoading: t }) => {
865
865
  N && /* @__PURE__ */ e(
866
866
  yn,
867
867
  {
868
- subMenuRef: D,
868
+ subMenuRef: T,
869
869
  list: C.children,
870
870
  position: f
871
871
  }
@@ -880,7 +880,7 @@ const Ct = ({ isLoading: t }) => {
880
880
  }
881
881
  );
882
882
  }, wn = (t, n, s) => {
883
- const [r, o] = b([]), [a, i] = b(!1), [l, c] = b(!1), [u, h] = b({ clickX: 0, clickY: 0 }), [f, w] = b(null), { clipBoard: D, setClipBoard: R, handleCutCopy: O, handlePasting: M } = Ne(), { selectedFiles: C, setSelectedFiles: E, handleDownload: F } = le(), { currentPath: N, setCurrentPath: m, currentPathFiles: p, setCurrentPathFiles: T } = oe(), { activeLayout: y, setActiveLayout: P } = ce(), x = () => {
883
+ const [r, o] = b([]), [a, i] = b(!1), [l, c] = b(!1), [u, h] = b({ clickX: 0, clickY: 0 }), [f, w] = b(null), { clipBoard: T, setClipBoard: R, handleCutCopy: O, handlePasting: M } = Ne(), { selectedFiles: C, setSelectedFiles: E, handleDownload: F } = le(), { currentPath: N, setCurrentPath: m, currentPathFiles: p, setCurrentPathFiles: D } = oe(), { activeLayout: y, setActiveLayout: P } = ce(), x = () => {
884
884
  f.isDirectory ? (m(f.path), o([]), E([])) : n && s.show("previewFile"), i(!1);
885
885
  }, j = (k) => {
886
886
  O(k), i(!1);
@@ -890,7 +890,7 @@ const Ct = ({ isLoading: t }) => {
890
890
  i(!1), s.show("rename");
891
891
  }, K = () => {
892
892
  F(), i(!1);
893
- }, te = () => {
893
+ }, Z = () => {
894
894
  i(!1), s.show("delete");
895
895
  }, d = [
896
896
  {
@@ -969,7 +969,7 @@ const Ct = ({ isLoading: t }) => {
969
969
  title: "Paste",
970
970
  icon: /* @__PURE__ */ e(Ie, { size: 18 }),
971
971
  onClick: H,
972
- className: `${D ? "" : "disable-paste"}`,
972
+ className: `${T ? "" : "disable-paste"}`,
973
973
  hidden: !(f != null && f.isDirectory),
974
974
  divider: !0
975
975
  },
@@ -988,10 +988,10 @@ const Ct = ({ isLoading: t }) => {
988
988
  {
989
989
  title: "Delete",
990
990
  icon: /* @__PURE__ */ e(pt, { size: 19 }),
991
- onClick: te
991
+ onClick: Z
992
992
  }
993
993
  ], $ = () => {
994
- T((k) => [
994
+ D((k) => [
995
995
  ...k,
996
996
  {
997
997
  name: Et("New Folder", !0, k),
@@ -1002,13 +1002,13 @@ const Ct = ({ isLoading: t }) => {
1002
1002
  }
1003
1003
  ]);
1004
1004
  }, A = () => {
1005
- T((k) => (k[r.at(-1)] && (k[r.at(-1)].isEditing = !0), k)), o([]), E([]);
1005
+ D((k) => (k[r.at(-1)] && (k[r.at(-1)].isEditing = !0), k)), o([]), E([]);
1006
1006
  }, S = () => {
1007
1007
  o([]), E((k) => k.length > 0 ? [] : k);
1008
- }, z = (k, L = !1) => {
1008
+ }, W = (k, L = !1) => {
1009
1009
  k.preventDefault(), h({ clickX: k.clientX, clickY: k.clientY }), c(L), !L && S(), i(!0);
1010
1010
  };
1011
- return Y(() => {
1011
+ return V(() => {
1012
1012
  if (s.isActive)
1013
1013
  switch (s.actionType) {
1014
1014
  case "createFolder":
@@ -1018,14 +1018,14 @@ const Ct = ({ isLoading: t }) => {
1018
1018
  A();
1019
1019
  break;
1020
1020
  }
1021
- }, [s.isActive]), Y(() => {
1021
+ }, [s.isActive]), V(() => {
1022
1022
  o([]), E([]);
1023
- }, [N]), Y(() => {
1023
+ }, [N]), V(() => {
1024
1024
  C.length > 0 ? o(() => C.map((k) => p.findIndex((L) => L.path === k.path))) : o([]);
1025
1025
  }, [C, p]), {
1026
1026
  emptySelecCtxItems: d,
1027
1027
  selecCtxItems: v,
1028
- handleContextMenu: z,
1028
+ handleContextMenu: W,
1029
1029
  unselectFiles: S,
1030
1030
  visible: a,
1031
1031
  setVisible: i,
@@ -1065,7 +1065,7 @@ const Ct = ({ isLoading: t }) => {
1065
1065
  selecCtxItems: h,
1066
1066
  handleContextMenu: f,
1067
1067
  unselectFiles: w,
1068
- visible: D,
1068
+ visible: T,
1069
1069
  setVisible: R,
1070
1070
  setLastSelectedFile: O,
1071
1071
  selectedFileIndexes: M,
@@ -1105,7 +1105,7 @@ const Ct = ({ isLoading: t }) => {
1105
1105
  filesViewRef: l,
1106
1106
  contextMenuRef: F.ref,
1107
1107
  menuItems: E ? h : u,
1108
- visible: D,
1108
+ visible: T,
1109
1109
  setVisible: R,
1110
1110
  clickPosition: C
1111
1111
  }
@@ -1115,7 +1115,7 @@ const Ct = ({ isLoading: t }) => {
1115
1115
  );
1116
1116
  }, kn = ({ triggerAction: t, onDelete: n }) => {
1117
1117
  const [s, r] = b(""), { selectedFiles: o, setSelectedFiles: a } = le();
1118
- return Y(() => {
1118
+ return V(() => {
1119
1119
  r(() => {
1120
1120
  if (o.length === 1)
1121
1121
  return `Are you sure you want to delete "${o[0].name}"?`;
@@ -1143,8 +1143,8 @@ const Ct = ({ isLoading: t }) => {
1143
1143
  onFileUploaded: a,
1144
1144
  handleFileRemove: i
1145
1145
  }) => {
1146
- var p, T, y, P;
1147
- const [l, c] = b(0), [u, h] = b(!1), [f, w] = b(!1), [D, R] = b(!1), O = Fe(33), M = re(), { onError: C } = ke(), E = (x) => {
1146
+ var p, D, y, P;
1147
+ const [l, c] = b(0), [u, h] = b(!1), [f, w] = b(!1), [T, R] = b(!1), O = Fe(33), M = re(), { onError: C } = ke(), E = (x) => {
1148
1148
  c(0), r((H) => ({
1149
1149
  ...H,
1150
1150
  [t]: !1
@@ -1168,32 +1168,32 @@ const Ct = ({ isLoading: t }) => {
1168
1168
  if (!x.error)
1169
1169
  return new Promise((j, H) => {
1170
1170
  const I = new XMLHttpRequest();
1171
- M.current = I, r((V) => ({
1172
- ...V,
1171
+ M.current = I, r((Y) => ({
1172
+ ...Y,
1173
1173
  [t]: !0
1174
- })), I.upload.onprogress = (V) => {
1175
- if (V.lengthComputable) {
1176
- const de = Math.round(V.loaded / V.total * 100);
1174
+ })), I.upload.onprogress = (Y) => {
1175
+ if (Y.lengthComputable) {
1176
+ const de = Math.round(Y.loaded / Y.total * 100);
1177
1177
  c(de);
1178
1178
  }
1179
1179
  }, I.onload = () => {
1180
- r((V) => ({
1181
- ...V,
1180
+ r((Y) => ({
1181
+ ...Y,
1182
1182
  [t]: !1
1183
1183
  })), I.status === 200 || I.status === 201 ? (h(!0), a(I.response), j(I.response)) : (H(I.statusText), E(I));
1184
1184
  }, I.onerror = () => {
1185
1185
  H(I.statusText), E(I);
1186
1186
  }, I.open("POST", o == null ? void 0 : o.url, !0);
1187
1187
  const K = o == null ? void 0 : o.headers;
1188
- for (let V in K)
1189
- I.setRequestHeader(V, K[V]);
1190
- const te = new FormData(), X = x == null ? void 0 : x.appendData;
1191
- for (let V in X)
1192
- X[V] && te.append(V, X[V]);
1193
- te.append("file", x.file), I.send(te);
1188
+ for (let Y in K)
1189
+ I.setRequestHeader(Y, K[Y]);
1190
+ const Z = new FormData(), X = x == null ? void 0 : x.appendData;
1191
+ for (let Y in X)
1192
+ X[Y] && Z.append(Y, X[Y]);
1193
+ Z.append("file", x.file), I.send(Z);
1194
1194
  });
1195
1195
  };
1196
- Y(() => {
1196
+ V(() => {
1197
1197
  M.current || F(n);
1198
1198
  }, []);
1199
1199
  const N = () => {
@@ -1214,10 +1214,10 @@ const Ct = ({ isLoading: t }) => {
1214
1214
  /* @__PURE__ */ g("div", { className: "file", children: [
1215
1215
  /* @__PURE__ */ g("div", { className: "file-details", children: [
1216
1216
  /* @__PURE__ */ g("div", { className: "file-info", children: [
1217
- /* @__PURE__ */ e("span", { className: "file-name text-truncate", title: (T = n.file) == null ? void 0 : T.name, children: (y = n.file) == null ? void 0 : y.name }),
1217
+ /* @__PURE__ */ e("span", { className: "file-name text-truncate", title: (D = n.file) == null ? void 0 : D.name, children: (y = n.file) == null ? void 0 : y.name }),
1218
1218
  /* @__PURE__ */ e("span", { className: "file-size", children: Pe((P = n.file) == null ? void 0 : P.size) })
1219
1219
  ] }),
1220
- u ? /* @__PURE__ */ e(Vt, { color: "#5c5bb1", title: "Uploaded" }) : f || D ? /* @__PURE__ */ e(en, { className: "retry-upload", title: "Retry", onClick: m }) : /* @__PURE__ */ e(
1220
+ u ? /* @__PURE__ */ e(Vt, { title: "Uploaded", className: "upload-success" }) : f || T ? /* @__PURE__ */ e(en, { className: "retry-upload", title: "Retry", onClick: m }) : /* @__PURE__ */ e(
1221
1221
  "div",
1222
1222
  {
1223
1223
  className: "rm-file",
@@ -1245,7 +1245,7 @@ const Ct = ({ isLoading: t }) => {
1245
1245
  onFileUploading: r,
1246
1246
  onFileUploaded: o
1247
1247
  }) => {
1248
- const [a, i] = b([]), [l, c] = b(!1), [u, h] = b({}), { currentFolder: f, currentPathFiles: w } = oe(), { onError: D } = ke(), R = re(null), O = (m) => {
1248
+ const [a, i] = b([]), [l, c] = b(!1), [u, h] = b({}), { currentFolder: f, currentPathFiles: w } = oe(), { onError: T } = ke(), R = re(null), O = (m) => {
1249
1249
  m.key === "Enter" && R.current.click();
1250
1250
  }, M = (m) => {
1251
1251
  if (s && !s.includes(pe(m.name)))
@@ -1256,17 +1256,17 @@ const Ct = ({ isLoading: t }) => {
1256
1256
  if (n && m.size > n) return `Maximum upload size is ${Pe(n, 0)}.`;
1257
1257
  }, C = (m) => {
1258
1258
  if (m = m.filter(
1259
- (p) => !a.some((T) => T.file.name.toLowerCase() === p.name.toLowerCase())
1259
+ (p) => !a.some((D) => D.file.name.toLowerCase() === p.name.toLowerCase())
1260
1260
  ), m.length > 0) {
1261
- const p = m.map((T) => {
1262
- const y = r(T, f), P = M(T);
1263
- return P && D({ type: "upload", message: P }, T), {
1264
- file: T,
1261
+ const p = m.map((D) => {
1262
+ const y = r(D, f), P = M(D);
1263
+ return P && T({ type: "upload", message: P }, D), {
1264
+ file: D,
1265
1265
  appendData: y,
1266
1266
  ...P && { error: P }
1267
1267
  };
1268
1268
  });
1269
- i((T) => [...T, ...p]);
1269
+ i((D) => [...D, ...p]);
1270
1270
  }
1271
1271
  }, E = (m) => {
1272
1272
  m.preventDefault(), c(!1);
@@ -1277,11 +1277,11 @@ const Ct = ({ isLoading: t }) => {
1277
1277
  C(p);
1278
1278
  }, N = (m) => {
1279
1279
  i((p) => {
1280
- const T = p.map((y, P) => m === P ? {
1280
+ const D = p.map((y, P) => m === P ? {
1281
1281
  ...y,
1282
1282
  removed: !0
1283
1283
  } : y);
1284
- return T.every((y) => !!y.removed) ? [] : T;
1284
+ return D.every((y) => !!y.removed) ? [] : D;
1285
1285
  });
1286
1286
  };
1287
1287
  return /* @__PURE__ */ g("div", { className: `fm-upload-file ${a.length > 0 ? "file-selcted" : ""}`, children: [
@@ -1345,7 +1345,7 @@ const Ct = ({ isLoading: t }) => {
1345
1345
  r(!1), a(!1);
1346
1346
  }, w = () => {
1347
1347
  r(!1), a(!0);
1348
- }, D = () => {
1348
+ }, T = () => {
1349
1349
  window.location.href = u;
1350
1350
  };
1351
1351
  return Lt.isValidElement(h) ? h : /* @__PURE__ */ g("section", { className: `file-previewer ${c === "pdf" ? "pdf-previewer" : ""}`, children: [
@@ -1362,7 +1362,7 @@ const Ct = ({ isLoading: t }) => {
1362
1362
  i[0].size && /* @__PURE__ */ e("span", { children: "-" }),
1363
1363
  /* @__PURE__ */ e("span", { className: "file-size", children: Pe(i[0].size) })
1364
1364
  ] }),
1365
- /* @__PURE__ */ e(me, { onClick: D, padding: "0.45rem .9rem", children: /* @__PURE__ */ g("div", { className: "download-btn", children: [
1365
+ /* @__PURE__ */ e(me, { onClick: T, padding: "0.45rem .9rem", children: /* @__PURE__ */ g("div", { className: "download-btn", children: [
1366
1366
  /* @__PURE__ */ e(je, { size: 18 }),
1367
1367
  /* @__PURE__ */ e("span", { children: "Download" })
1368
1368
  ] }) })
@@ -1394,7 +1394,7 @@ const Ct = ({ isLoading: t }) => {
1394
1394
  }
1395
1395
  ) })
1396
1396
  ] });
1397
- }, xe = (t) => t.toLowerCase(), Q = (t, n, s = !1) => {
1397
+ }, xe = (t) => t.toLowerCase(), ee = (t, n, s = !1) => {
1398
1398
  const r = re(/* @__PURE__ */ new Set([])), o = $e(() => new Set(t.map((c) => xe(c))), [t]), a = (c) => {
1399
1399
  if (!c.repeat && (r.current.add(xe(c.key)), o.isSubsetOf(r.current) && !s)) {
1400
1400
  c.preventDefault(), n(c);
@@ -1405,10 +1405,10 @@ const Ct = ({ isLoading: t }) => {
1405
1405
  }, l = () => {
1406
1406
  r.current.clear();
1407
1407
  };
1408
- Y(() => (window.addEventListener("keydown", a), window.addEventListener("keyup", i), window.addEventListener("blur", l), () => {
1408
+ V(() => (window.addEventListener("keydown", a), window.addEventListener("keyup", i), window.addEventListener("blur", l), () => {
1409
1409
  window.removeEventListener("keydown", a), window.removeEventListener("keyup", i), window.removeEventListener("blur", l);
1410
1410
  }), [o, n, s]);
1411
- }, ee = {
1411
+ }, te = {
1412
1412
  createFolder: ["Alt", "Shift", "N"],
1413
1413
  uploadFiles: ["Control", "U"],
1414
1414
  cut: ["Control", "X"],
@@ -1437,7 +1437,7 @@ const Ct = ({ isLoading: t }) => {
1437
1437
  t.show("uploadFile");
1438
1438
  }, w = () => {
1439
1439
  r(!0);
1440
- }, D = () => {
1440
+ }, T = () => {
1441
1441
  r(!1);
1442
1442
  }, R = () => {
1443
1443
  o(a);
@@ -1457,12 +1457,12 @@ const Ct = ({ isLoading: t }) => {
1457
1457
  l((P) => P.length > 0 ? [] : P);
1458
1458
  }, p = () => {
1459
1459
  fe(n, "onRefresh"), s(null);
1460
- }, T = () => {
1460
+ }, D = () => {
1461
1461
  u("grid");
1462
1462
  }, y = () => {
1463
1463
  u("list");
1464
1464
  };
1465
- Q(ee.createFolder, h, t.isActive), Q(ee.uploadFiles, f, t.isActive), Q(ee.cut, w, t.isActive), Q(ee.copy, D, t.isActive), Q(ee.paste, R, t.isActive), Q(ee.rename, O, t.isActive), Q(ee.download, M, t.isActive), Q(ee.delete, C, t.isActive), Q(ee.jumpToFirst, E, t.isActive), Q(ee.jumpToLast, F, t.isActive), Q(ee.selectAll, N, t.isActive), Q(ee.clearSelection, m, t.isActive), Q(ee.refresh, p, t.isActive), Q(ee.gridLayout, T, t.isActive), Q(ee.listLayout, y, t.isActive);
1465
+ ee(te.createFolder, h, t.isActive), ee(te.uploadFiles, f, t.isActive), ee(te.cut, w, t.isActive), ee(te.copy, T, t.isActive), ee(te.paste, R, t.isActive), ee(te.rename, O, t.isActive), ee(te.download, M, t.isActive), ee(te.delete, C, t.isActive), ee(te.jumpToFirst, E, t.isActive), ee(te.jumpToLast, F, t.isActive), ee(te.selectAll, N, t.isActive), ee(te.clearSelection, m, t.isActive), ee(te.refresh, p, t.isActive), ee(te.gridLayout, D, t.isActive), ee(te.listLayout, y, t.isActive);
1466
1466
  }, Tn = ({
1467
1467
  fileUploadConfig: t,
1468
1468
  onFileUploading: n,
@@ -1477,7 +1477,7 @@ const Ct = ({ isLoading: t }) => {
1477
1477
  }) => {
1478
1478
  const [h, f] = b(null), { selectedFiles: w } = le();
1479
1479
  xn(u, o);
1480
- const D = {
1480
+ const T = {
1481
1481
  uploadFile: {
1482
1482
  title: "Upload",
1483
1483
  component: /* @__PURE__ */ e(
@@ -1509,10 +1509,10 @@ const Ct = ({ isLoading: t }) => {
1509
1509
  width: "50%"
1510
1510
  }
1511
1511
  };
1512
- if (Y(() => {
1512
+ if (V(() => {
1513
1513
  if (u.isActive) {
1514
1514
  const R = u.actionType;
1515
- R === "previewFile" && (D[R].title = (w == null ? void 0 : w.name) ?? "Preview"), f(D[R]);
1515
+ R === "previewFile" && (T[R].title = (w == null ? void 0 : w.name) ?? "Preview"), f(T[R]);
1516
1516
  } else
1517
1517
  f(null);
1518
1518
  }, [u.isActive]), h)
@@ -1554,8 +1554,8 @@ const Ct = ({ isLoading: t }) => {
1554
1554
  handleMouseMove: (h) => {
1555
1555
  if (!o) return;
1556
1556
  h.preventDefault();
1557
- const w = i.current.getBoundingClientRect(), D = (h.clientX - w.left) / w.width * 100;
1558
- D >= 15 && D <= 60 && r({ col1: D, col2: 100 - D });
1557
+ const w = i.current.getBoundingClientRect(), T = (h.clientX - w.left) / w.width * 100;
1558
+ T >= 15 && T <= 60 && r({ col1: T, col2: 100 - T });
1559
1559
  }
1560
1560
  };
1561
1561
  };
@@ -1662,9 +1662,9 @@ function Ln() {
1662
1662
  (c || "React class") + ": type specification of " + l + " `" + h + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
1663
1663
  ), f instanceof Error && !(f.message in s)) {
1664
1664
  s[f.message] = !0;
1665
- var D = u ? u() : "";
1665
+ var T = u ? u() : "";
1666
1666
  t(
1667
- "Failed " + l + " type: " + f.message + (D ?? "")
1667
+ "Failed " + l + " type: " + f.message + (T ?? "")
1668
1668
  );
1669
1669
  }
1670
1670
  }
@@ -1698,7 +1698,7 @@ function In() {
1698
1698
  if (typeof v == "function")
1699
1699
  return v;
1700
1700
  }
1701
- var w = "<<anonymous>>", D = {
1701
+ var w = "<<anonymous>>", T = {
1702
1702
  array: C("array"),
1703
1703
  bigint: C("bigint"),
1704
1704
  bool: C("boolean"),
@@ -1714,7 +1714,7 @@ function In() {
1714
1714
  instanceOf: p,
1715
1715
  node: x(),
1716
1716
  objectOf: y,
1717
- oneOf: T,
1717
+ oneOf: D,
1718
1718
  oneOfType: P,
1719
1719
  shape: H,
1720
1720
  exact: I
@@ -1729,33 +1729,33 @@ function In() {
1729
1729
  function M(d) {
1730
1730
  if (process.env.NODE_ENV !== "production")
1731
1731
  var v = {}, $ = 0;
1732
- function A(z, k, L, B, _, q, Z) {
1733
- if (B = B || w, q = q || L, Z !== s) {
1732
+ function A(W, k, L, U, _, q, Q) {
1733
+ if (U = U || w, q = q || L, Q !== s) {
1734
1734
  if (c) {
1735
1735
  var G = new Error(
1736
1736
  "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"
1737
1737
  );
1738
1738
  throw G.name = "Invariant Violation", G;
1739
1739
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
1740
- var ie = B + ":" + L;
1740
+ var ie = U + ":" + L;
1741
1741
  !v[ie] && // Avoid spamming the console because they are often not actionable except for lib authors
1742
1742
  $ < 3 && (a(
1743
- "You are manually calling a React.PropTypes validation function for the `" + q + "` prop on `" + B + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
1743
+ "You are manually calling a React.PropTypes validation function for the `" + q + "` prop on `" + U + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
1744
1744
  ), v[ie] = !0, $++);
1745
1745
  }
1746
1746
  }
1747
- return k[L] == null ? z ? k[L] === null ? new O("The " + _ + " `" + q + "` is marked as required " + ("in `" + B + "`, but its value is `null`.")) : new O("The " + _ + " `" + q + "` is marked as required in " + ("`" + B + "`, but its value is `undefined`.")) : null : d(k, L, B, _, q);
1747
+ return k[L] == null ? W ? k[L] === null ? new O("The " + _ + " `" + q + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new O("The " + _ + " `" + q + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : d(k, L, U, _, q);
1748
1748
  }
1749
1749
  var S = A.bind(null, !1);
1750
1750
  return S.isRequired = A.bind(null, !0), S;
1751
1751
  }
1752
1752
  function C(d) {
1753
- function v($, A, S, z, k, L) {
1754
- var B = $[A], _ = X(B);
1753
+ function v($, A, S, W, k, L) {
1754
+ var U = $[A], _ = X(U);
1755
1755
  if (_ !== d) {
1756
- var q = V(B);
1756
+ var q = Y(U);
1757
1757
  return new O(
1758
- "Invalid " + z + " `" + k + "` of type " + ("`" + q + "` supplied to `" + S + "`, expected ") + ("`" + d + "`."),
1758
+ "Invalid " + W + " `" + k + "` of type " + ("`" + q + "` supplied to `" + S + "`, expected ") + ("`" + d + "`."),
1759
1759
  { expectedType: d }
1760
1760
  );
1761
1761
  }
@@ -1767,16 +1767,16 @@ function In() {
1767
1767
  return M(i);
1768
1768
  }
1769
1769
  function F(d) {
1770
- function v($, A, S, z, k) {
1770
+ function v($, A, S, W, k) {
1771
1771
  if (typeof d != "function")
1772
1772
  return new O("Property `" + k + "` of component `" + S + "` has invalid PropType notation inside arrayOf.");
1773
1773
  var L = $[A];
1774
1774
  if (!Array.isArray(L)) {
1775
- var B = X(L);
1776
- return new O("Invalid " + z + " `" + k + "` of type " + ("`" + B + "` supplied to `" + S + "`, expected an array."));
1775
+ var U = X(L);
1776
+ return new O("Invalid " + W + " `" + k + "` of type " + ("`" + U + "` supplied to `" + S + "`, expected an array."));
1777
1777
  }
1778
1778
  for (var _ = 0; _ < L.length; _++) {
1779
- var q = d(L, _, S, z, k + "[" + _ + "]", s);
1779
+ var q = d(L, _, S, W, k + "[" + _ + "]", s);
1780
1780
  if (q instanceof Error)
1781
1781
  return q;
1782
1782
  }
@@ -1785,64 +1785,64 @@ function In() {
1785
1785
  return M(v);
1786
1786
  }
1787
1787
  function N() {
1788
- function d(v, $, A, S, z) {
1788
+ function d(v, $, A, S, W) {
1789
1789
  var k = v[$];
1790
1790
  if (!l(k)) {
1791
1791
  var L = X(k);
1792
- return new O("Invalid " + S + " `" + z + "` of type " + ("`" + L + "` supplied to `" + A + "`, expected a single ReactElement."));
1792
+ return new O("Invalid " + S + " `" + W + "` of type " + ("`" + L + "` supplied to `" + A + "`, expected a single ReactElement."));
1793
1793
  }
1794
1794
  return null;
1795
1795
  }
1796
1796
  return M(d);
1797
1797
  }
1798
1798
  function m() {
1799
- function d(v, $, A, S, z) {
1799
+ function d(v, $, A, S, W) {
1800
1800
  var k = v[$];
1801
1801
  if (!t.isValidElementType(k)) {
1802
1802
  var L = X(k);
1803
- return new O("Invalid " + S + " `" + z + "` of type " + ("`" + L + "` supplied to `" + A + "`, expected a single ReactElement type."));
1803
+ return new O("Invalid " + S + " `" + W + "` of type " + ("`" + L + "` supplied to `" + A + "`, expected a single ReactElement type."));
1804
1804
  }
1805
1805
  return null;
1806
1806
  }
1807
1807
  return M(d);
1808
1808
  }
1809
1809
  function p(d) {
1810
- function v($, A, S, z, k) {
1810
+ function v($, A, S, W, k) {
1811
1811
  if (!($[A] instanceof d)) {
1812
- var L = d.name || w, B = Ce($[A]);
1813
- return new O("Invalid " + z + " `" + k + "` of type " + ("`" + B + "` supplied to `" + S + "`, expected ") + ("instance of `" + L + "`."));
1812
+ var L = d.name || w, U = Ce($[A]);
1813
+ return new O("Invalid " + W + " `" + k + "` of type " + ("`" + U + "` supplied to `" + S + "`, expected ") + ("instance of `" + L + "`."));
1814
1814
  }
1815
1815
  return null;
1816
1816
  }
1817
1817
  return M(v);
1818
1818
  }
1819
- function T(d) {
1819
+ function D(d) {
1820
1820
  if (!Array.isArray(d))
1821
1821
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
1822
1822
  "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])."
1823
1823
  ) : a("Invalid argument supplied to oneOf, expected an array.")), i;
1824
- function v($, A, S, z, k) {
1825
- for (var L = $[A], B = 0; B < d.length; B++)
1826
- if (R(L, d[B]))
1824
+ function v($, A, S, W, k) {
1825
+ for (var L = $[A], U = 0; U < d.length; U++)
1826
+ if (R(L, d[U]))
1827
1827
  return null;
1828
- var _ = JSON.stringify(d, function(Z, G) {
1829
- var ie = V(G);
1828
+ var _ = JSON.stringify(d, function(Q, G) {
1829
+ var ie = Y(G);
1830
1830
  return ie === "symbol" ? String(G) : G;
1831
1831
  });
1832
- return new O("Invalid " + z + " `" + k + "` of value `" + String(L) + "` " + ("supplied to `" + S + "`, expected one of " + _ + "."));
1832
+ return new O("Invalid " + W + " `" + k + "` of value `" + String(L) + "` " + ("supplied to `" + S + "`, expected one of " + _ + "."));
1833
1833
  }
1834
1834
  return M(v);
1835
1835
  }
1836
1836
  function y(d) {
1837
- function v($, A, S, z, k) {
1837
+ function v($, A, S, W, k) {
1838
1838
  if (typeof d != "function")
1839
1839
  return new O("Property `" + k + "` of component `" + S + "` has invalid PropType notation inside objectOf.");
1840
- var L = $[A], B = X(L);
1841
- if (B !== "object")
1842
- return new O("Invalid " + z + " `" + k + "` of type " + ("`" + B + "` supplied to `" + S + "`, expected an object."));
1840
+ var L = $[A], U = X(L);
1841
+ if (U !== "object")
1842
+ return new O("Invalid " + W + " `" + k + "` of type " + ("`" + U + "` supplied to `" + S + "`, expected an object."));
1843
1843
  for (var _ in L)
1844
1844
  if (r(L, _)) {
1845
- var q = d(L, _, S, z, k + "." + _, s);
1845
+ var q = d(L, _, S, W, k + "." + _, s);
1846
1846
  if (q instanceof Error)
1847
1847
  return q;
1848
1848
  }
@@ -1860,21 +1860,21 @@ function In() {
1860
1860
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + de($) + " at index " + v + "."
1861
1861
  ), i;
1862
1862
  }
1863
- function A(S, z, k, L, B) {
1863
+ function A(S, W, k, L, U) {
1864
1864
  for (var _ = [], q = 0; q < d.length; q++) {
1865
- var Z = d[q], G = Z(S, z, k, L, B, s);
1865
+ var Q = d[q], G = Q(S, W, k, L, U, s);
1866
1866
  if (G == null)
1867
1867
  return null;
1868
1868
  G.data && r(G.data, "expectedType") && _.push(G.data.expectedType);
1869
1869
  }
1870
1870
  var ie = _.length > 0 ? ", expected one of type [" + _.join(", ") + "]" : "";
1871
- return new O("Invalid " + L + " `" + B + "` supplied to " + ("`" + k + "`" + ie + "."));
1871
+ return new O("Invalid " + L + " `" + U + "` supplied to " + ("`" + k + "`" + ie + "."));
1872
1872
  }
1873
1873
  return M(A);
1874
1874
  }
1875
1875
  function x() {
1876
- function d(v, $, A, S, z) {
1877
- return K(v[$]) ? null : new O("Invalid " + S + " `" + z + "` supplied to " + ("`" + A + "`, expected a ReactNode."));
1876
+ function d(v, $, A, S, W) {
1877
+ return K(v[$]) ? null : new O("Invalid " + S + " `" + W + "` supplied to " + ("`" + A + "`, expected a ReactNode."));
1878
1878
  }
1879
1879
  return M(d);
1880
1880
  }
@@ -1884,38 +1884,38 @@ function In() {
1884
1884
  );
1885
1885
  }
1886
1886
  function H(d) {
1887
- function v($, A, S, z, k) {
1888
- var L = $[A], B = X(L);
1889
- if (B !== "object")
1890
- return new O("Invalid " + z + " `" + k + "` of type `" + B + "` " + ("supplied to `" + S + "`, expected `object`."));
1887
+ function v($, A, S, W, k) {
1888
+ var L = $[A], U = X(L);
1889
+ if (U !== "object")
1890
+ return new O("Invalid " + W + " `" + k + "` of type `" + U + "` " + ("supplied to `" + S + "`, expected `object`."));
1891
1891
  for (var _ in d) {
1892
1892
  var q = d[_];
1893
1893
  if (typeof q != "function")
1894
- return j(S, z, k, _, V(q));
1895
- var Z = q(L, _, S, z, k + "." + _, s);
1896
- if (Z)
1897
- return Z;
1894
+ return j(S, W, k, _, Y(q));
1895
+ var Q = q(L, _, S, W, k + "." + _, s);
1896
+ if (Q)
1897
+ return Q;
1898
1898
  }
1899
1899
  return null;
1900
1900
  }
1901
1901
  return M(v);
1902
1902
  }
1903
1903
  function I(d) {
1904
- function v($, A, S, z, k) {
1905
- var L = $[A], B = X(L);
1906
- if (B !== "object")
1907
- return new O("Invalid " + z + " `" + k + "` of type `" + B + "` " + ("supplied to `" + S + "`, expected `object`."));
1904
+ function v($, A, S, W, k) {
1905
+ var L = $[A], U = X(L);
1906
+ if (U !== "object")
1907
+ return new O("Invalid " + W + " `" + k + "` of type `" + U + "` " + ("supplied to `" + S + "`, expected `object`."));
1908
1908
  var _ = n({}, $[A], d);
1909
1909
  for (var q in _) {
1910
- var Z = d[q];
1911
- if (r(d, q) && typeof Z != "function")
1912
- return j(S, z, k, q, V(Z));
1913
- if (!Z)
1910
+ var Q = d[q];
1911
+ if (r(d, q) && typeof Q != "function")
1912
+ return j(S, W, k, q, Y(Q));
1913
+ if (!Q)
1914
1914
  return new O(
1915
- "Invalid " + z + " `" + k + "` key `" + q + "` supplied to `" + S + "`.\nBad object: " + JSON.stringify($[A], null, " ") + `
1915
+ "Invalid " + W + " `" + k + "` key `" + q + "` supplied to `" + S + "`.\nBad object: " + JSON.stringify($[A], null, " ") + `
1916
1916
  Valid keys: ` + JSON.stringify(Object.keys(d), null, " ")
1917
1917
  );
1918
- var G = Z(L, q, S, z, k + "." + q, s);
1918
+ var G = Q(L, q, S, W, k + "." + q, s);
1919
1919
  if (G)
1920
1920
  return G;
1921
1921
  }
@@ -1956,14 +1956,14 @@ Valid keys: ` + JSON.stringify(Object.keys(d), null, " ")
1956
1956
  return !1;
1957
1957
  }
1958
1958
  }
1959
- function te(d, v) {
1959
+ function Z(d, v) {
1960
1960
  return d === "symbol" ? !0 : v ? v["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && v instanceof Symbol : !1;
1961
1961
  }
1962
1962
  function X(d) {
1963
1963
  var v = typeof d;
1964
- return Array.isArray(d) ? "array" : d instanceof RegExp ? "object" : te(v, d) ? "symbol" : v;
1964
+ return Array.isArray(d) ? "array" : d instanceof RegExp ? "object" : Z(v, d) ? "symbol" : v;
1965
1965
  }
1966
- function V(d) {
1966
+ function Y(d) {
1967
1967
  if (typeof d > "u" || d === null)
1968
1968
  return "" + d;
1969
1969
  var v = X(d);
@@ -1976,7 +1976,7 @@ Valid keys: ` + JSON.stringify(Object.keys(d), null, " ")
1976
1976
  return v;
1977
1977
  }
1978
1978
  function de(d) {
1979
- var v = V(d);
1979
+ var v = Y(d);
1980
1980
  switch (v) {
1981
1981
  case "array":
1982
1982
  case "object":
@@ -1992,7 +1992,7 @@ Valid keys: ` + JSON.stringify(Object.keys(d), null, " ")
1992
1992
  function Ce(d) {
1993
1993
  return !d.constructor || !d.constructor.name ? w : d.constructor.name;
1994
1994
  }
1995
- return D.checkPropTypes = o, D.resetWarningCache = o.resetWarningCache, D.PropTypes = D, D;
1995
+ return T.checkPropTypes = o, T.resetWarningCache = o.resetWarningCache, T.PropTypes = T, T;
1996
1996
  }, Me;
1997
1997
  }
1998
1998
  var Le, it;
@@ -2049,7 +2049,7 @@ if (process.env.NODE_ENV !== "production") {
2049
2049
  } else
2050
2050
  Ae.exports = An()();
2051
2051
  var zn = Ae.exports;
2052
- const U = /* @__PURE__ */ Sn(zn), Wn = (t, n, s) => {
2052
+ const z = /* @__PURE__ */ Sn(zn), Wn = (t, n, s) => {
2053
2053
  const r = t[n];
2054
2054
  if (r && isNaN(Date.parse(r)))
2055
2055
  return new Error(
@@ -2083,7 +2083,7 @@ const U = /* @__PURE__ */ Sn(zn), Wn = (t, n, s) => {
2083
2083
  onRefresh: f,
2084
2084
  onFileOpen: w = () => {
2085
2085
  },
2086
- onError: D = () => {
2086
+ onError: T = () => {
2087
2087
  },
2088
2088
  layout: R = "grid",
2089
2089
  enableFilePreview: O = !0,
@@ -2093,119 +2093,120 @@ const U = /* @__PURE__ */ Sn(zn), Wn = (t, n, s) => {
2093
2093
  height: F = "600px",
2094
2094
  width: N = "100%",
2095
2095
  initialPath: m = "",
2096
- filePreviewComponent: p
2096
+ filePreviewComponent: p,
2097
+ primaryColor: D = "#6155b4",
2098
+ fontFamily: y = "Nunito Sans, sans-serif"
2097
2099
  }) => {
2098
- const T = Dn(), { containerRef: y, colSizes: P, isDragging: x, handleMouseMove: j, handleMouseUp: H, handleMouseDown: I } = On(20, 80);
2099
- return /* @__PURE__ */ g(
2100
- "main",
2101
- {
2102
- className: "file-explorer",
2103
- onContextMenu: (K) => K.preventDefault(),
2104
- style: { height: F, width: N },
2105
- children: [
2106
- /* @__PURE__ */ e(Ct, { isLoading: s }),
2107
- /* @__PURE__ */ e(rn, { filesData: t, onError: D, children: /* @__PURE__ */ e(sn, { initialPath: m, children: /* @__PURE__ */ e(on, { onDownload: c, children: /* @__PURE__ */ e(an, { onPaste: i, children: /* @__PURE__ */ g(tn, { layout: R, children: [
2108
- /* @__PURE__ */ e(
2109
- ln,
2110
- {
2111
- allowCreateFolder: !0,
2112
- allowUploadFile: !0,
2113
- onLayoutChange: h,
2114
- onRefresh: f,
2115
- triggerAction: T
2116
- }
2117
- ),
2118
- /* @__PURE__ */ g(
2119
- "section",
2120
- {
2121
- ref: y,
2122
- onMouseMove: j,
2123
- onMouseUp: H,
2124
- className: "files-container",
2125
- children: [
2126
- /* @__PURE__ */ g("div", { className: "navigation-pane", style: { width: P.col1 + "%" }, children: [
2127
- /* @__PURE__ */ e(dn, {}),
2128
- /* @__PURE__ */ e(
2129
- "div",
2130
- {
2131
- className: `sidebar-resize ${x ? "sidebar-dragging" : ""}`,
2132
- onMouseDown: I
2133
- }
2134
- )
2135
- ] }),
2136
- /* @__PURE__ */ g("div", { className: "folders-preview", style: { width: P.col2 + "%" }, children: [
2137
- /* @__PURE__ */ e(un, {}),
2138
- /* @__PURE__ */ e(
2139
- Fn,
2140
- {
2141
- onCreateFolder: r,
2142
- onRename: l,
2143
- onFileOpen: w,
2144
- onRefresh: f,
2145
- enableFilePreview: O,
2146
- triggerAction: T
2147
- }
2148
- )
2149
- ] })
2150
- ]
2151
- }
2152
- ),
2153
- /* @__PURE__ */ e(
2154
- Tn,
2155
- {
2156
- fileUploadConfig: n,
2157
- onFileUploading: o,
2158
- onFileUploaded: a,
2159
- onDelete: u,
2160
- onRefresh: f,
2161
- maxFileSize: M,
2162
- filePreviewPath: C,
2163
- filePreviewComponent: p,
2164
- acceptedFileTypes: E,
2165
- triggerAction: T
2166
- }
2167
- )
2168
- ] }) }) }) }) })
2169
- ]
2170
- }
2171
- );
2100
+ const P = Dn(), { containerRef: x, colSizes: j, isDragging: H, handleMouseMove: I, handleMouseUp: K, handleMouseDown: Z } = On(20, 80);
2101
+ return /* @__PURE__ */ g("main", { className: "file-explorer", onContextMenu: (Y) => Y.preventDefault(), style: {
2102
+ "--file-manager-font-family": y,
2103
+ "--file-manager-primary-color": D,
2104
+ height: F,
2105
+ width: N
2106
+ }, children: [
2107
+ /* @__PURE__ */ e(Ct, { isLoading: s }),
2108
+ /* @__PURE__ */ e(rn, { filesData: t, onError: T, children: /* @__PURE__ */ e(sn, { initialPath: m, children: /* @__PURE__ */ e(on, { onDownload: c, children: /* @__PURE__ */ e(an, { onPaste: i, children: /* @__PURE__ */ g(tn, { layout: R, children: [
2109
+ /* @__PURE__ */ e(
2110
+ ln,
2111
+ {
2112
+ allowCreateFolder: !0,
2113
+ allowUploadFile: !0,
2114
+ onLayoutChange: h,
2115
+ onRefresh: f,
2116
+ triggerAction: P
2117
+ }
2118
+ ),
2119
+ /* @__PURE__ */ g(
2120
+ "section",
2121
+ {
2122
+ ref: x,
2123
+ onMouseMove: I,
2124
+ onMouseUp: K,
2125
+ className: "files-container",
2126
+ children: [
2127
+ /* @__PURE__ */ g("div", { className: "navigation-pane", style: { width: j.col1 + "%" }, children: [
2128
+ /* @__PURE__ */ e(dn, {}),
2129
+ /* @__PURE__ */ e(
2130
+ "div",
2131
+ {
2132
+ className: `sidebar-resize ${H ? "sidebar-dragging" : ""}`,
2133
+ onMouseDown: Z
2134
+ }
2135
+ )
2136
+ ] }),
2137
+ /* @__PURE__ */ g("div", { className: "folders-preview", style: { width: j.col2 + "%" }, children: [
2138
+ /* @__PURE__ */ e(un, {}),
2139
+ /* @__PURE__ */ e(
2140
+ Fn,
2141
+ {
2142
+ onCreateFolder: r,
2143
+ onRename: l,
2144
+ onFileOpen: w,
2145
+ onRefresh: f,
2146
+ enableFilePreview: O,
2147
+ triggerAction: P
2148
+ }
2149
+ )
2150
+ ] })
2151
+ ]
2152
+ }
2153
+ ),
2154
+ /* @__PURE__ */ e(
2155
+ Tn,
2156
+ {
2157
+ fileUploadConfig: n,
2158
+ onFileUploading: o,
2159
+ onFileUploaded: a,
2160
+ onDelete: u,
2161
+ onRefresh: f,
2162
+ maxFileSize: M,
2163
+ filePreviewPath: C,
2164
+ filePreviewComponent: p,
2165
+ acceptedFileTypes: E,
2166
+ triggerAction: P
2167
+ }
2168
+ )
2169
+ ] }) }) }) }) })
2170
+ ] });
2172
2171
  };
2173
2172
  St.displayName = "FileManager";
2174
2173
  St.propTypes = {
2175
- files: U.arrayOf(
2176
- U.shape({
2177
- name: U.string.isRequired,
2178
- isDirectory: U.bool.isRequired,
2179
- path: U.string.isRequired,
2174
+ files: z.arrayOf(
2175
+ z.shape({
2176
+ name: z.string.isRequired,
2177
+ isDirectory: z.bool.isRequired,
2178
+ path: z.string.isRequired,
2180
2179
  updatedAt: Wn,
2181
- size: U.number
2180
+ size: z.number
2182
2181
  })
2183
2182
  ).isRequired,
2184
- fileUploadConfig: U.shape({
2183
+ fileUploadConfig: z.shape({
2185
2184
  url: at,
2186
- headers: U.objectOf(U.string)
2185
+ headers: z.objectOf(z.string)
2187
2186
  }),
2188
- isLoading: U.bool,
2189
- onCreateFolder: U.func,
2190
- onFileUploading: U.func,
2191
- onFileUploaded: U.func,
2192
- onRename: U.func,
2193
- onDelete: U.func,
2194
- onPaste: U.func,
2195
- onDownload: U.func,
2196
- onLayoutChange: U.func,
2197
- onRefresh: U.func,
2198
- onFileOpen: U.func,
2199
- onError: U.func,
2200
- layout: U.oneOf(["grid", "list"]),
2201
- maxFileSize: U.number,
2202
- enableFilePreview: U.bool,
2187
+ isLoading: z.bool,
2188
+ onCreateFolder: z.func,
2189
+ onFileUploading: z.func,
2190
+ onFileUploaded: z.func,
2191
+ onRename: z.func,
2192
+ onDelete: z.func,
2193
+ onPaste: z.func,
2194
+ onDownload: z.func,
2195
+ onLayoutChange: z.func,
2196
+ onRefresh: z.func,
2197
+ onFileOpen: z.func,
2198
+ onError: z.func,
2199
+ layout: z.oneOf(["grid", "list"]),
2200
+ maxFileSize: z.number,
2201
+ enableFilePreview: z.bool,
2203
2202
  filePreviewPath: at,
2204
- acceptedFileTypes: U.string,
2205
- height: U.oneOfType([U.string, U.number]),
2206
- width: U.oneOfType([U.string, U.number]),
2207
- initialPath: U.string,
2208
- filePreviewComponent: U.func
2203
+ acceptedFileTypes: z.string,
2204
+ height: z.oneOfType([z.string, z.number]),
2205
+ width: z.oneOfType([z.string, z.number]),
2206
+ initialPath: z.string,
2207
+ filePreviewComponent: z.func,
2208
+ primaryColor: z.string,
2209
+ fontFamily: z.string
2209
2210
  };
2210
2211
  export {
2211
2212
  St as FileManager