@epam/ai-dial-react-file-manager 0.1.0-dev.21 → 0.1.0-dev.22

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,28 +1,28 @@
1
1
  import { jsx as o, jsxs as X, Fragment as Ie } from "react/jsx-runtime";
2
- import { IconCircleFilled as Un, IconChevronDown as Ja, IconDotsVertical as ln, IconFolder as pa, IconPlus as er, IconFile as tr, IconFileZip as nr, IconCopyMinus as or, IconFolderPlus as Qo, IconEye as So, IconX as ar, IconArrowLeft as rr, IconEyeOff as sr, IconAlertCircleFilled as ir, IconAlertTriangleFilled as lr, IconCaretRightFilled as cr, IconUserX as Ao, IconCopy as Po, IconTrashX as Mo, IconDownload as ko, IconExternalLink as Fo, IconPencilMinus as fa, IconInfoCircle as dr, IconFileDescription as ur } from "@tabler/icons-react";
2
+ import { IconCircleFilled as Un, IconChevronDown as Ja, IconDotsVertical as ln, IconFolder as pa, IconPlus as es, IconFile as ts, IconFileZip as ns, IconCopyMinus as os, IconFolderPlus as Qo, IconEye as So, IconX as as, IconArrowLeft as ss, IconEyeOff as rs, IconAlertCircleFilled as is, IconAlertTriangleFilled as ls, IconCaretRightFilled as cs, IconUserX as Ao, IconCopy as Po, IconTrashX as Mo, IconDownload as ko, IconExternalLink as Fo, IconPencilMinus as fa, IconInfoCircle as ds, IconFileDescription as us } from "@tabler/icons-react";
3
3
  import an from "classnames";
4
4
  import * as Ge from "react";
5
- import { useState as z, useMemo as $, useCallback as d, useRef as ce, useEffect as pe, createContext as hr, useLayoutEffect as pr, useContext as fr, useImperativeHandle as mr } from "react";
6
- import { DialFolderName as Oo, DialFileName as Lo, Dropdown as ht, DropdownTrigger as ma, DIAL_ICON_SIZE as zo, DialGrid as Ca, Popup as _o, PopupSize as Gn, DialRadioGroup as Jo, RadioGroupOrientation as ea, NeutralButton as rn, PrimaryButton as on, GhostIconButton as Et, BASE_ICON_PROPS as M, mergeClasses as Ee, NotificationVariant as Eo, ElementSize as jn, NOT_ALLOWED_SYMBOLS_REGEXP as Cr, DialTooltipContainer as gr, DialTooltipTrigger as vr, DialTooltipContent as yr, Notification as wr, ButtonAppearance as ga, DialSwitch as va, DialTooltip as Vn, FlexibleActionsDirection as tn, BASE_ICON_SIZE as ya, ConfirmationPopup as Nr, ConfirmationPopupVariant as Dr, DialBreadcrumb as xr, DialSearch as br, ButtonVariant as Tr, DialTabs as Rr, ScreenResolution as Ir, ButtonDropdown as ta, Skeleton as qt, SkeletonVariant as Yt, DialEllipsisTooltip as Tt, DialItemType as We, DialFileIcon as Fr, DialSharedEntityIndicator as na, DialIcon as Er, Spinner as Sr, editableContainerProps as Ar, Input as Pr, useEditableItem as Mr, DialNoDataContent as wa, DialDateCellRenderer as Na, convertGridDateToDate as kr, DEFAULT_GRID_DATE_LOCALE as Or, DEFAULT_GRID_DATE_FORMAT_OPTIONS as Lr, DropdownItemType as Da, DialConditionalResizableContainer as zr, DialCollapsibleSidebar as _r } from "@epam/ai-dial-ui-kit";
5
+ import { useState as z, useMemo as j, useCallback as d, useRef as ce, useEffect as pe, createContext as hs, useLayoutEffect as ps, useContext as fs, useImperativeHandle as ms } from "react";
6
+ import { DialFolderName as Oo, DialFileName as Lo, Dropdown as ht, DropdownTrigger as ma, DIAL_ICON_SIZE as zo, DialGrid as Ca, Popup as _o, PopupSize as Gn, DialRadioGroup as Jo, RadioGroupOrientation as ea, NeutralButton as sn, PrimaryButton as on, GhostIconButton as Et, BASE_ICON_PROPS as P, mergeClasses as Ee, NotificationVariant as Eo, ElementSize as jn, NOT_ALLOWED_SYMBOLS_REGEXP as Cs, DialTooltipContainer as gs, DialTooltipTrigger as vs, DialTooltipContent as ys, Notification as ws, ButtonAppearance as ga, Switch as va, DialTooltip as Vn, FlexibleActionsDirection as tn, BASE_ICON_SIZE as ya, ConfirmationPopup as Ns, ConfirmationPopupVariant as Ds, DialBreadcrumb as xs, Search as bs, ButtonVariant as Ts, Tabs as Rs, ButtonDropdown as ta, Skeleton as qt, SkeletonVariant as Yt, DialEllipsisTooltip as Tt, DialItemType as We, DialFileIcon as Is, DialSharedEntityIndicator as na, DialIcon as Fs, Spinner as Es, editableContainerProps as Ss, Input as As, useEditableItem as Ps, DialNoDataContent as wa, DialDateCellRenderer as Na, convertGridDateToDate as Ms, DEFAULT_GRID_DATE_LOCALE as ks, DEFAULT_GRID_DATE_FORMAT_OPTIONS as Os, DropdownItemType as Da, DialConditionalResizableContainer as Ls, DialCollapsibleSidebar as zs } from "@epam/ai-dial-ui-kit";
7
7
  import { extensions as oa } from "mime-types";
8
- import { createPortal as Br } from "react-dom";
8
+ import { createPortal as _s } from "react-dom";
9
9
  const xa = (e) => /* @__PURE__ */ Ge.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ge.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.1812 1.2002H2.80615C2.43319 1.2002 2.07551 1.34835 1.81178 1.61208C1.54806 1.8758 1.3999 2.23348 1.3999 2.60645V5.48145C1.3999 5.85441 1.54806 6.21209 1.81178 6.47581C2.07551 6.73954 2.43319 6.8877 2.80615 6.8877H15.1812C15.5541 6.8877 15.9118 6.73954 16.1755 6.47581C16.4392 6.21209 16.5874 5.85441 16.5874 5.48145V2.60645C16.5874 2.23348 16.4392 1.8758 16.1755 1.61208C15.9118 1.34835 15.5541 1.2002 15.1812 1.2002ZM14.8999 5.2002H3.0874V2.8877H14.8999V5.2002ZM12 7.80017C12.3107 7.80017 12.5625 8.05201 12.5625 8.36267V11.7377H15.9375C16.2482 11.7377 16.5 11.9895 16.5 12.3002C16.5 12.6108 16.2482 12.8627 15.9375 12.8627H12.5625V16.2377C12.5625 16.5483 12.3107 16.8002 12 16.8002C11.6893 16.8002 11.4375 16.5483 11.4375 16.2377V12.8627H8.0625C7.75184 12.8627 7.5 12.6108 7.5 12.3002C7.5 11.9895 7.75184 11.7377 8.0625 11.7377H11.4375V8.36267C11.4375 8.05201 11.6893 7.80017 12 7.80017ZM2.41188 12.5883C2.14816 12.3246 2 11.9669 2 11.5939V9.00018H3.6875V11.3127H6.1001V13.0002H3.40625C3.03329 13.0002 2.6756 12.852 2.41188 12.5883Z", fill: "currentColor" })), ba = (e) => /* @__PURE__ */ Ge.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ge.createElement("path", { d: "M9.00049 7.7998C9.3108 7.80007 9.56279 8.05198 9.56299 8.3623V11.7373H12.938C13.2483 11.7376 13.5003 11.9895 13.5005 12.2998C13.5005 12.6103 13.2484 12.862 12.938 12.8623H9.56299V16.2373C9.56299 16.5478 9.31092 16.7995 9.00049 16.7998C8.68983 16.7998 8.43799 16.548 8.43799 16.2373V12.8623H5.06299C4.75233 12.8623 4.50049 12.6105 4.50049 12.2998C4.50069 11.9893 4.75245 11.7373 5.06299 11.7373H8.43799V8.3623C8.43819 8.05181 8.68995 7.7998 9.00049 7.7998ZM15.1812 1.2002C15.5541 1.2002 15.9116 1.34858 16.1753 1.6123C16.439 1.87603 16.5874 2.23348 16.5874 2.60645V5.48145C16.5874 5.85441 16.439 6.21186 16.1753 6.47559C15.9116 6.73931 15.5541 6.8877 15.1812 6.8877H2.80615C2.43319 6.8877 2.07573 6.73931 1.81201 6.47559C1.54829 6.21186 1.3999 5.85441 1.3999 5.48145V2.60645C1.3999 2.23348 1.54829 1.87603 1.81201 1.6123C2.07573 1.34858 2.43319 1.2002 2.80615 1.2002H15.1812ZM3.0874 2.8877V5.2002H14.8999V2.8877H3.0874Z", fill: "currentColor" })), Bo = (e) => /* @__PURE__ */ Ge.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ge.createElement("path", { d: "M3.009 12.5527C2.77901 12.4216 2.5877 12.2321 2.45443 12.0034C2.32116 11.7746 2.25064 11.5147 2.25 11.25V3.75C2.25 2.925 2.925 2.25 3.75 2.25H11.25C11.8125 2.25 12.1185 2.53875 12.375 3M10.5 15.75H7.25025C6.98757 15.75 6.72747 15.6983 6.48479 15.5977C6.24211 15.4972 6.0216 15.3499 5.83586 15.1641C5.65012 14.9784 5.50278 14.7579 5.40226 14.5152C5.30174 14.2725 5.25 14.0124 5.25 13.7498V7.25025C5.25 6.71975 5.46074 6.21098 5.83586 5.83586C6.21098 5.46074 6.71975 5.25 7.25025 5.25H13.7498C14.0124 5.25 14.2725 5.30174 14.5152 5.40226C14.7579 5.50278 14.9784 5.65012 15.1641 5.83586C15.3499 6.0216 15.4972 6.24211 15.5977 6.48479C15.6983 6.72747 15.75 6.98757 15.75 7.25025V10.5M12.75 16.5L16.5 12.75M16.5 12.75V16.125M16.5 12.75H13.125", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), Wo = (e) => /* @__PURE__ */ Ge.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ge.createElement("path", { d: "M9.75 14.25H3.75C3.35218 14.25 2.97064 14.092 2.68934 13.8107C2.40804 13.5294 2.25 13.1478 2.25 12.75V4.5C2.25 4.10218 2.40804 3.72064 2.68934 3.43934C2.97064 3.15804 3.35218 3 3.75 3H6.75L9 5.25H14.25C14.6478 5.25 15.0294 5.40804 15.3107 5.68934C15.592 5.97064 15.75 6.35218 15.75 6.75V9.75M12 16.5L15.75 12.75M15.75 12.75V16.125M15.75 12.75H12.375", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), Ho = (e) => /* @__PURE__ */ Ge.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ge.createElement("path", { d: "M4.5 15.75V14.25C4.5 13.4544 4.81607 12.6913 5.37868 12.1287C5.94129 11.5661 6.70435 11.25 7.5 11.25H9.75M15.75 12.75L12 16.5M12 16.5V13.125M12 16.5H15.375M6 5.25C6 6.04565 6.31607 6.80871 6.87868 7.37132C7.44129 7.93393 8.20435 8.25 9 8.25C9.79565 8.25 10.5587 7.93393 11.1213 7.37132C11.6839 6.80871 12 6.04565 12 5.25C12 4.45435 11.6839 3.69129 11.1213 3.12868C10.5587 2.56607 9.79565 2.25 9 2.25C8.20435 2.25 7.44129 2.56607 6.87868 3.12868C6.31607 3.69129 6 4.45435 6 5.25Z", stroke: "#7F8792", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
10
10
  var nn = /* @__PURE__ */ ((e) => (e.MyFiles = "my_files", e.Shared = "shared", e.Organization = "organization", e.Review = "review", e))(nn || {}), w = /* @__PURE__ */ ((e) => (e.AddSibling = "addSibling", e.AddChild = "addChild", e.Duplicate = "duplicate", e.Copy = "copy", e.Move = "move", e.Download = "download", e.Delete = "delete", e.Rename = "rename", e.Info = "info", e.Unshare = "unshare", e.RemoveAccess = "removeAccess", e.ManagePermissions = "managePermissions", e.Preview = "preview", e.OpenInNewTab = "openInNewTab", e))(w || {}), Ce = /* @__PURE__ */ ((e) => (e.Replace = "replace", e.Duplicate = "duplicate", e.Cancel = "cancel", e))(Ce || {}), ke = /* @__PURE__ */ ((e) => (e.ReplaceAll = "replaceAll", e.DuplicateAll = "duplicateAll", e.DecideForEach = "decideForEach", e))(ke || {}), ge = /* @__PURE__ */ ((e) => (e.Copy = "copy", e.Move = "move", e))(ge || {}), Rt = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(Rt || {}), ut = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(ut || {}), Be = /* @__PURE__ */ ((e) => (e.Folder = "folder", e.Child = "child", e.Sibling = "sibling", e))(Be || {}), ye = /* @__PURE__ */ ((e) => (e.Name = "name", e.UpdatedAt = "updatedAt", e.Size = "size", e.Author = "author", e.Owner = "owner", e.Path = "path", e.Actions = "__actions", e.Version = "version", e))(ye || {});
11
- const Wr = "w-full h-full grid grid-rows-[auto_1fr] gap-5 p-6 overflow-hidden min-w-0 bg-layer-1", aa = "w-full text-secondary flex items-center gap-2", Hr = "flex min-h-0 min-w-0 h-full gap-4 overflow-hidden", Ur = "flex flex-col flex-1 min-h-0 min-w-0 h-full gap-4", Gr = "h-full rounded bg-layer-raised text-secondary min-w-0", Vr = "flex-1 w-full rounded text-secondary overflow-auto min-h-0 min-w-0", $r = "opacity-0 pointer-events-none group-hover/grid-row:opacity-100 group-hover/grid-row:pointer-events-auto", jr = 280, Zr = "Files", rt = 20, Xr = "Files", Ro = ".dial_folder", ra = "New folder", qr = 280, Yr = 460, sa = 44, Kr = 800, Qr = [
11
+ const Bs = "w-full h-full grid grid-rows-[auto_1fr] gap-5 p-6 overflow-hidden min-w-0 bg-layer-base", aa = "w-full text-secondary flex items-center gap-2", Ws = "flex min-h-0 min-w-0 h-full gap-4 overflow-hidden", Hs = "flex flex-col flex-1 min-h-0 min-w-0 h-full gap-4", Us = "h-full rounded bg-layer-raised text-secondary min-w-0", Gs = "flex-1 w-full rounded text-secondary overflow-auto min-h-0 min-w-0", Vs = "opacity-0 pointer-events-none group-hover/grid-row:opacity-100 group-hover/grid-row:pointer-events-auto", $s = 280, js = "Files", st = 20, Zs = "Files", Ro = ".dial_folder", sa = "New folder", Xs = 280, qs = 460, ra = 44, Ys = 800, Ks = [
12
12
  ye.Name,
13
13
  ye.UpdatedAt,
14
14
  ye.Size,
15
15
  ye.Author,
16
16
  ye.Actions
17
17
  ];
18
- var O = /* @__PURE__ */ ((e) => (e.ITEM = "item", e.FOLDER = "folder", e))(O || {}), Jr = /* @__PURE__ */ ((e) => (e.FILE = "FILE", e.PROMPT = "PROMPT", e.CONVERSATION = "CONVERSATION", e.APPLICATION = "APPLICATION", e.TOOLSET = "TOOL_SET", e))(Jr || {}), St = /* @__PURE__ */ ((e) => (e.READ = "READ", e.WRITE = "WRITE", e.SHARE = "SHARE", e))(St || {});
18
+ var L = /* @__PURE__ */ ((e) => (e.ITEM = "item", e.FOLDER = "folder", e))(L || {}), Qs = /* @__PURE__ */ ((e) => (e.FILE = "FILE", e.PROMPT = "PROMPT", e.CONVERSATION = "CONVERSATION", e.APPLICATION = "APPLICATION", e.TOOLSET = "TOOL_SET", e))(Qs || {}), St = /* @__PURE__ */ ((e) => (e.READ = "READ", e.WRITE = "WRITE", e.SHARE = "SHARE", e))(St || {});
19
19
  const ia = ({
20
20
  open: e,
21
21
  onClose: t,
22
- onReplace: s,
22
+ onReplace: r,
23
23
  onDuplicate: a,
24
24
  onDecideForEach: n,
25
- conflictingFiles: r,
25
+ conflictingFiles: s,
26
26
  singleFileTitle: l = "Replace Or Duplicate Item",
27
27
  multipleFilesTitle: i = "Replace Or Duplicate Items",
28
28
  message: p,
@@ -33,20 +33,20 @@ const ia = ({
33
33
  nameColumnLabel: y = "Name",
34
34
  actionColumnLabel: g = "Action"
35
35
  }) => {
36
- const m = r.length === 1, b = m ? r[0]?.name : "", D = C?.[Ce.Replace] ?? "Replace", h = C?.[Ce.Duplicate] ?? "Duplicate", f = C?.[Ce.Cancel] ?? "Cancel", T = c?.[ke.ReplaceAll] ?? "Replace all", x = c?.[ke.DuplicateAll] ?? "Duplicate all", F = c?.[ke.DecideForEach] ?? "Decide for each", [I, S] = z(
36
+ const m = s.length === 1, b = m ? s[0]?.name : "", D = C?.[Ce.Replace] ?? "Replace", h = C?.[Ce.Duplicate] ?? "Duplicate", f = C?.[Ce.Cancel] ?? "Cancel", T = c?.[ke.ReplaceAll] ?? "Replace all", x = c?.[ke.DuplicateAll] ?? "Duplicate all", F = c?.[ke.DecideForEach] ?? "Decide for each", [I, S] = z(
37
37
  Ce.Replace
38
- ), [A, _] = z(
38
+ ), [O, M] = z(
39
39
  ke.ReplaceAll
40
- ), [U, P] = z(
40
+ ), [V, A] = z(
41
41
  new Map(
42
- r.map((W) => [
42
+ s.map((W) => [
43
43
  W.path,
44
44
  Ce.Replace
45
45
  ])
46
46
  )
47
- ), [k, B] = z(
47
+ ), [_, B] = z(
48
48
  void 0
49
- ), L = m ? l : i, q = /* @__PURE__ */ X(Ie, { children: [
49
+ ), k = m ? l : i, Q = /* @__PURE__ */ X(Ie, { children: [
50
50
  "Item with the name ",
51
51
  /* @__PURE__ */ X("span", { className: "text-primary", children: [
52
52
  '"',
@@ -55,7 +55,7 @@ const ia = ({
55
55
  ] }),
56
56
  " ",
57
57
  "already exists in this destination."
58
- ] }), J = `${r.length} items with the same names already exist in this destination.`, j = p ?? (m ? q : J), te = $(
58
+ ] }), te = `${s.length} items with the same names already exist in this destination.`, U = p ?? (m ? Q : te), Y = j(
59
59
  () => [
60
60
  {
61
61
  id: Ce.Replace,
@@ -67,13 +67,13 @@ const ia = ({
67
67
  }
68
68
  ],
69
69
  [D, h]
70
- ), fe = $(() => r.map((W) => ({
70
+ ), fe = j(() => s.map((W) => ({
71
71
  id: W.path,
72
72
  name: W.name,
73
73
  path: W.path,
74
- nodeType: W.nodeType ?? O.ITEM,
75
- action: U.get(W.path) || Ce.Replace
76
- })), [r, U]), we = $(() => [
74
+ nodeType: W.nodeType ?? L.ITEM,
75
+ action: V.get(W.path) || Ce.Replace
76
+ })), [s, V]), we = j(() => [
77
77
  {
78
78
  field: "name",
79
79
  headerName: y,
@@ -82,17 +82,17 @@ const ia = ({
82
82
  floatingFilter: !1,
83
83
  filter: !1,
84
84
  resizable: !1,
85
- cellRenderer: (W) => W.data?.nodeType === O.FOLDER ? /* @__PURE__ */ o(
85
+ cellRenderer: (W) => W.data?.nodeType === L.FOLDER ? /* @__PURE__ */ o(
86
86
  Oo,
87
87
  {
88
88
  name: W.data.name,
89
- iconSize: rt
89
+ iconSize: st
90
90
  }
91
91
  ) : /* @__PURE__ */ o(
92
92
  Lo,
93
93
  {
94
94
  name: W.data.name,
95
- iconSize: rt
95
+ iconSize: st
96
96
  }
97
97
  )
98
98
  },
@@ -111,12 +111,18 @@ const ia = ({
111
111
  {
112
112
  key: Ce.Replace,
113
113
  label: D,
114
- icon: /* @__PURE__ */ o(Un, { size: 10, className: "text-accent-tertiary" })
114
+ icon: /* @__PURE__ */ o(
115
+ Un,
116
+ {
117
+ size: 10,
118
+ className: "text-text-visual-violet-1"
119
+ }
120
+ )
115
121
  },
116
122
  {
117
123
  key: Ce.Duplicate,
118
124
  label: h,
119
- icon: /* @__PURE__ */ o(Un, { size: 10, className: "text-accent-secondary" })
125
+ icon: /* @__PURE__ */ o(Un, { size: 10, className: "text-success" })
120
126
  },
121
127
  {
122
128
  key: Ce.Cancel,
@@ -125,7 +131,7 @@ const ia = ({
125
131
  }
126
132
  ], De = be.find(
127
133
  (ne) => ne.key === W.data.action
128
- ), G = k === W.data.path;
134
+ ), G = _ === W.data.path;
129
135
  return /* @__PURE__ */ o("div", { className: "flex items-center h-full", children: /* @__PURE__ */ o(
130
136
  ht,
131
137
  {
@@ -133,7 +139,7 @@ const ia = ({
133
139
  open: G,
134
140
  items: be,
135
141
  onItemClick: ({ key: ne }) => {
136
- P((he) => {
142
+ A((he) => {
137
143
  const _e = new Map(he);
138
144
  return _e.set(
139
145
  W.data.path,
@@ -173,8 +179,8 @@ const ia = ({
173
179
  D,
174
180
  h,
175
181
  f,
176
- k
177
- ]), xe = $(
182
+ _
183
+ ]), xe = j(
178
184
  () => [
179
185
  {
180
186
  id: ke.ReplaceAll,
@@ -187,7 +193,7 @@ const ia = ({
187
193
  {
188
194
  id: ke.DecideForEach,
189
195
  name: F,
190
- content: A === ke.DecideForEach ? /* @__PURE__ */ o("div", { className: "mt-4", children: /* @__PURE__ */ o(
196
+ content: O === ke.DecideForEach ? /* @__PURE__ */ o("div", { className: "mt-4", children: /* @__PURE__ */ o(
191
197
  Ca,
192
198
  {
193
199
  columnDefs: we,
@@ -206,33 +212,33 @@ const ia = ({
206
212
  T,
207
213
  x,
208
214
  F,
209
- A,
215
+ O,
210
216
  we,
211
217
  fe
212
218
  ]
213
219
  ), ue = d(() => {
214
- S(Ce.Replace), _(ke.ReplaceAll), P(
220
+ S(Ce.Replace), M(ke.ReplaceAll), A(
215
221
  new Map(
216
- r.map((W) => [
222
+ s.map((W) => [
217
223
  W.path,
218
224
  Ce.Replace
219
225
  ])
220
226
  )
221
227
  );
222
- }, [r]), Te = d(() => {
228
+ }, [s]), Te = d(() => {
223
229
  ue(), t();
224
230
  }, [ue, t]), Ne = d(() => {
225
231
  if (ue(), m)
226
- I === Ce.Replace ? s() : a();
227
- else if (A === ke.ReplaceAll)
228
- s();
229
- else if (A === ke.DuplicateAll)
232
+ I === Ce.Replace ? r() : a();
233
+ else if (O === ke.ReplaceAll)
234
+ r();
235
+ else if (O === ke.DuplicateAll)
230
236
  a();
231
- else if (A === ke.DecideForEach && n) {
232
- const W = r.map(
237
+ else if (O === ke.DecideForEach && n) {
238
+ const W = s.map(
233
239
  (be) => ({
234
240
  file: be,
235
- action: U.get(be.path) || Ce.Replace
241
+ action: V.get(be.path) || Ce.Replace
236
242
  })
237
243
  );
238
244
  n(W);
@@ -241,12 +247,12 @@ const ia = ({
241
247
  ue,
242
248
  m,
243
249
  I,
244
- s,
250
+ r,
245
251
  a,
246
- A,
252
+ O,
247
253
  n,
248
- r,
249
- U
254
+ s,
255
+ V
250
256
  ]);
251
257
  return /* @__PURE__ */ o(
252
258
  _o,
@@ -255,19 +261,19 @@ const ia = ({
255
261
  onClose: Te,
256
262
  size: m ? Gn.Sm : Gn.Md,
257
263
  className: an([!m && "w-[600px]"]),
258
- header: L,
264
+ header: k,
259
265
  preventKeyboardOnOpen: !0,
260
266
  footer: /* @__PURE__ */ X("div", { className: "flex justify-end gap-3 py-4 px-6 border-t border-tertiary", children: [
261
- /* @__PURE__ */ o(rn, { onClick: Te, label: u }),
267
+ /* @__PURE__ */ o(sn, { onClick: Te, label: u }),
262
268
  /* @__PURE__ */ o(on, { onClick: Ne, label: v })
263
269
  ] }),
264
270
  children: /* @__PURE__ */ X("div", { className: "px-6 py-4", children: [
265
- /* @__PURE__ */ o("p", { className: "text-secondary mb-4 break-words", children: j }),
271
+ /* @__PURE__ */ o("p", { className: "text-secondary mb-4 break-words", children: U }),
266
272
  m ? /* @__PURE__ */ o(
267
273
  Jo,
268
274
  {
269
275
  elementId: "single-file-conflict",
270
- radioButtons: te,
276
+ radioButtons: Y,
271
277
  activeRadioButton: I,
272
278
  orientation: ea.Column,
273
279
  onChange: (W) => S(W)
@@ -277,34 +283,34 @@ const ia = ({
277
283
  {
278
284
  elementId: "multiple-files-conflict",
279
285
  radioButtons: xe,
280
- activeRadioButton: A,
286
+ activeRadioButton: O,
281
287
  orientation: ea.Column,
282
- onChange: (W) => _(W),
288
+ onChange: (W) => M(W),
283
289
  formItemChildrenClassName: "gap-3"
284
290
  }
285
291
  )
286
292
  ] })
287
293
  }
288
294
  );
289
- }, es = ({
295
+ }, Js = ({
290
296
  getContextMenuItems: e,
291
297
  isRowDisabled: t,
292
- allowedFileTypes: s,
298
+ allowedFileTypes: r,
293
299
  maxSelectableFileSize: a,
294
300
  buttonClassName: n
295
301
  }) => {
296
- const r = ce(e);
302
+ const s = ce(e);
297
303
  pe(() => {
298
- r.current = e;
304
+ s.current = e;
299
305
  }, [e]);
300
306
  const l = d(
301
307
  (p) => {
302
308
  if (!p.data || t(
303
309
  p.data,
304
- s,
310
+ r,
305
311
  a
306
312
  )) return null;
307
- const c = p.data ? r.current?.(p.data) ?? [] : [];
313
+ const c = p.data ? s.current?.(p.data) ?? [] : [];
308
314
  return c.length ? /* @__PURE__ */ o(
309
315
  ht,
310
316
  {
@@ -312,13 +318,13 @@ const ia = ({
312
318
  allowedPlacements: ["top-start", "top-end", "bottom-start"],
313
319
  items: c,
314
320
  className: Ee("sticky right-0", n),
315
- children: /* @__PURE__ */ o(Et, { icon: /* @__PURE__ */ o(ln, { ...M }) })
321
+ children: /* @__PURE__ */ o(Et, { icon: /* @__PURE__ */ o(ln, { ...P }) })
316
322
  }
317
323
  ) : null;
318
324
  },
319
- [s, a, n, t]
325
+ [r, a, n, t]
320
326
  );
321
- return { actionsColumnDef: $(
327
+ return { actionsColumnDef: j(
322
328
  () => ({
323
329
  colId: "__actions",
324
330
  headerName: "",
@@ -334,17 +340,17 @@ const ia = ({
334
340
  }),
335
341
  [l]
336
342
  ) };
337
- }, ts = ({
343
+ }, er = ({
338
344
  onRename: e
339
345
  }) => {
340
- const [t, s] = z(Rt.Grid), a = d(
341
- (r) => {
342
- e(r), s(Rt.Grid);
346
+ const [t, r] = z(Rt.Grid), a = d(
347
+ (s) => {
348
+ e(s), r(Rt.Grid);
343
349
  },
344
350
  [e]
345
351
  ), n = d(
346
- (r) => {
347
- e(r), s(Rt.Tree);
352
+ (s) => {
353
+ e(s), r(Rt.Tree);
348
354
  },
349
355
  [e]
350
356
  );
@@ -354,64 +360,64 @@ const ia = ({
354
360
  onTreeRename: n
355
361
  };
356
362
  };
357
- function ns(e, t) {
358
- const s = ce(null), [a, n] = z(!1);
363
+ function tr(e, t) {
364
+ const r = ce(null), [a, n] = z(!1);
359
365
  return pe(() => {
360
- if (!s.current) return;
361
- const r = new ResizeObserver(([l]) => {
366
+ if (!r.current) return;
367
+ const s = new ResizeObserver(([l]) => {
362
368
  const i = l.contentRect.width;
363
369
  n(i < e);
364
370
  });
365
- return r.observe(t?.current || s?.current), () => r.disconnect();
366
- }, [e, t]), { containerRef: s, isBelowBreakpoint: a };
371
+ return s.observe(t?.current || r?.current), () => s.disconnect();
372
+ }, [e, t]), { containerRef: r, isBelowBreakpoint: a };
367
373
  }
368
- var os = /* @__PURE__ */ ((e) => (e.MULTIPLE = "MULTIPLE", e.SINGLE = "SINGLE", e))(os || {});
374
+ var nr = /* @__PURE__ */ ((e) => (e.MULTIPLE = "MULTIPLE", e.SINGLE = "SINGLE", e))(nr || {});
369
375
  const Ke = (e, t) => {
370
376
  if (!(!e || !e.length || !t))
371
- for (const s of e) {
372
- if (s.path === t) return s;
373
- const a = Ke(s.items, t);
377
+ for (const r of e) {
378
+ if (r.path === t) return r;
379
+ const a = Ke(r.items, t);
374
380
  if (a) return a;
375
381
  }
376
382
  }, It = (e, t) => {
377
383
  if (!e?.length) return;
378
384
  if (!t) return e[0];
379
- const s = Ke(e, t);
380
- if (s && s.nodeType === O.FOLDER) return s;
385
+ const r = Ke(e, t);
386
+ if (r && r.nodeType === L.FOLDER) return r;
381
387
  const a = t.split("/").filter(Boolean);
382
388
  if (a.length <= 1) return e[0];
383
389
  const n = "/" + a.slice(0, a.length - 1).join("/");
384
390
  return Ke(e, n) ?? e[0];
385
- }, Ft = (e) => (e ?? "").toLowerCase(), as = (e) => Ft(e).replace(/^\./, ""), rs = (e) => {
391
+ }, Ft = (e) => (e ?? "").toLowerCase(), or = (e) => Ft(e).replace(/^\./, ""), ar = (e) => {
386
392
  if (!e) return [];
387
- const t = [], s = (a) => {
393
+ const t = [], r = (a) => {
388
394
  const n = a.items ?? [];
389
- for (const r of n)
390
- t.push(r), r.nodeType === O.FOLDER && s(r);
395
+ for (const s of n)
396
+ t.push(s), s.nodeType === L.FOLDER && r(s);
391
397
  };
392
- return s(e), t;
393
- }, Ta = (e) => (e.name ?? e.path.split("/").pop() ?? "").startsWith("."), sn = (e) => {
398
+ return r(e), t;
399
+ }, Ta = (e) => (e.name ?? e.path.split("/").pop() ?? "").startsWith("."), rn = (e) => {
394
400
  if (!e) return "0 bytes";
395
- const t = 1024, s = t * 1024;
396
- return e >= s ? `${(e / s).toFixed(1)} MB` : e >= t ? `${(e / t).toFixed(0)} KB` : `${e} bytes`;
397
- }, ss = (e, t = "en-US", s = {
401
+ const t = 1024, r = t * 1024;
402
+ return e >= r ? `${(e / r).toFixed(1)} MB` : e >= t ? `${(e / t).toFixed(0)} KB` : `${e} bytes`;
403
+ }, sr = (e, t = "en-US", r = {
398
404
  year: "numeric",
399
405
  month: "short",
400
406
  day: "2-digit"
401
407
  }) => {
402
408
  if (!e) return "";
403
409
  try {
404
- return new Intl.DateTimeFormat(t, s).format(new Date(e));
410
+ return new Intl.DateTimeFormat(t, r).format(new Date(e));
405
411
  } catch {
406
412
  return e;
407
413
  }
408
414
  };
409
- function Uo(e, t, s) {
415
+ function Uo(e, t, r) {
410
416
  if (!e || e.includes("*/*"))
411
417
  return !0;
412
- const a = t.toLowerCase(), n = s && s.includes(".") ? `.${s.split(".").at(-1).toLowerCase()}` : void 0;
413
- return e.some((r) => {
414
- const l = r.toLowerCase();
418
+ const a = t.toLowerCase(), n = r && r.includes(".") ? `.${r.split(".").at(-1).toLowerCase()}` : void 0;
419
+ return e.some((s) => {
420
+ const l = s.toLowerCase();
415
421
  if (l.startsWith("."))
416
422
  return n === l;
417
423
  if (l.endsWith("/*")) {
@@ -421,99 +427,99 @@ function Uo(e, t, s) {
421
427
  return a === l;
422
428
  });
423
429
  }
424
- const is = (e) => e?.map((t) => t.endsWith("/*") ? t.replace("/*", "s") : ls(t).flat().map((s) => `.${s}`)).flat().join(", ") || "", ls = (e) => {
425
- const [t, s] = e.split("/");
426
- return t === "*" ? ["all"] : s === "*" ? Object.entries(oa).reduce((a, [n, r]) => {
430
+ const rr = (e) => e?.map((t) => t.endsWith("/*") ? t.replace("/*", "s") : ir(t).flat().map((r) => `.${r}`)).flat().join(", ") || "", ir = (e) => {
431
+ const [t, r] = e.split("/");
432
+ return t === "*" ? ["all"] : r === "*" ? Object.entries(oa).reduce((a, [n, s]) => {
427
433
  const [l] = n.split("/");
428
- return l === t && a.push(...r), a;
434
+ return l === t && a.push(...s), a;
429
435
  }, []) : oa[e] || [];
430
436
  }, Zn = (e) => {
431
437
  if (!e) return;
432
438
  const t = e.flags.replace(/[gy]/g, "");
433
439
  return new RegExp(e.source, t);
434
440
  };
435
- function Go(e, t, s) {
441
+ function Go(e, t, r) {
436
442
  if (t && Zn(t)?.test(e.name))
437
- return s ?? `This ${e.isFolder ? "folder" : "file"} contains forbidden characters in its name. Please rename it.`;
443
+ return r ?? `This ${e.isFolder ? "folder" : "file"} contains forbidden characters in its name. Please rename it.`;
438
444
  }
439
- const cs = (e) => {
445
+ const lr = (e) => {
440
446
  const t = e.lastIndexOf("/");
441
447
  return t >= 0 ? {
442
448
  parent: e.slice(0, t),
443
449
  name: e.slice(t + 1)
444
450
  } : { parent: "", name: e };
445
- }, ds = (e, t, s) => {
446
- const a = !e.contentLength || s == null || e.contentLength <= s, n = !e.contentType || Uo(t, e.contentType, e.name);
451
+ }, cr = (e, t, r) => {
452
+ const a = !e.contentLength || r == null || e.contentLength <= r, n = !e.contentType || Uo(t, e.contentType, e.name);
447
453
  return a && n;
448
- }, us = (e, t, s, a, n) => {
449
- if (e.nodeType === O.FOLDER) return;
450
- const r = !e.contentLength || s == null || e.contentLength <= s;
454
+ }, dr = (e, t, r, a, n) => {
455
+ if (e.nodeType === L.FOLDER) return;
456
+ const s = !e.contentLength || r == null || e.contentLength <= r;
451
457
  if (!(!e.contentType || Uo(t, e.contentType, e.name)))
452
- return a ?? (t?.length ? `Unsupported file type. Supported types: ${is(t)}.` : "Unsupported file type.");
453
- if (!r)
454
- return n ?? `File is too large. Maximum size: ${sn(s)}.`;
455
- }, hs = (e) => e.replace(/\/+$/, "").split("/").filter(Boolean).length, Kt = (e) => {
456
- const t = `${ra} `, s = new RegExp(`^${ra} (\\d+)$`), a = new Set(
458
+ return a ?? (t?.length ? `Unsupported file type. Supported types: ${rr(t)}.` : "Unsupported file type.");
459
+ if (!s)
460
+ return n ?? `File is too large. Maximum size: ${rn(r)}.`;
461
+ }, ur = (e) => e.replace(/\/+$/, "").split("/").filter(Boolean).length, Kt = (e) => {
462
+ const t = `${sa} `, r = new RegExp(`^${sa} (\\d+)$`), a = new Set(
457
463
  e.map((i) => i.name.toLowerCase())
458
464
  ), n = e.map((i) => {
459
- const p = i.name.match(s);
465
+ const p = i.name.match(r);
460
466
  return p ? parseInt(p[1], 10) : 0;
461
467
  }).reduce((i, p) => Math.max(i, p), 0);
462
- let r = `${t}${n + 1}`, l = n + 1;
463
- for (; a.has(r.toLowerCase()); )
464
- l++, r = `${t}${l}`;
465
- return r;
466
- }, ps = (e) => {
467
- const [t, s] = z(e?.showHiddenFiles ?? !1), a = !!e?.onShowHiddenFilesChange, n = a ? e.showHiddenFiles ?? !1 : t, r = d(
468
+ let s = `${t}${n + 1}`, l = n + 1;
469
+ for (; a.has(s.toLowerCase()); )
470
+ l++, s = `${t}${l}`;
471
+ return s;
472
+ }, hr = (e) => {
473
+ const [t, r] = z(e?.showHiddenFiles ?? !1), a = !!e?.onShowHiddenFilesChange, n = a ? e.showHiddenFiles ?? !1 : t, s = d(
468
474
  (i) => {
469
- a ? e?.onShowHiddenFilesChange?.(i) : s(i);
475
+ a ? e?.onShowHiddenFilesChange?.(i) : r(i);
470
476
  },
471
477
  [a, e]
472
478
  ), l = d(() => {
473
479
  const i = !n;
474
- a ? e?.onShowHiddenFilesChange?.(i) : s(i);
480
+ a ? e?.onShowHiddenFilesChange?.(i) : r(i);
475
481
  }, [n, a, e]);
476
482
  return {
477
483
  areHiddenFilesVisible: n,
478
484
  toggleHiddenFilesVisibility: l,
479
- setAreHiddenFilesVisible: r
485
+ setAreHiddenFilesVisible: s
480
486
  };
481
- }, fs = (e) => {
482
- const [t, s] = z(
487
+ }, pr = (e) => {
488
+ const [t, r] = z(
483
489
  e?.collapsed ?? !1
484
- ), a = !!e?.onCollapseChange, n = a ? e.collapsed ?? !1 : t, r = d(
490
+ ), a = !!e?.onCollapseChange, n = a ? e.collapsed ?? !1 : t, s = d(
485
491
  (i) => {
486
- a ? e?.onCollapseChange?.(i) : s(i);
492
+ a ? e?.onCollapseChange?.(i) : r(i);
487
493
  },
488
494
  [a, e]
489
495
  ), l = d(() => {
490
496
  const i = !n;
491
- a ? e?.onCollapseChange?.(i) : s(i);
497
+ a ? e?.onCollapseChange?.(i) : r(i);
492
498
  }, [n, a, e]);
493
499
  return {
494
500
  isTreeCollapsed: n,
495
501
  toggleTreeCollapse: l,
496
- setIsTreeCollapsed: r
502
+ setIsTreeCollapsed: s
497
503
  };
498
- }, la = (e, t, s) => {
504
+ }, la = (e, t, r) => {
499
505
  if (!t.has(e))
500
506
  return e;
501
- const a = s === O.FOLDER ? (n, r) => `${n} (${r})` : (n, r) => {
507
+ const a = r === L.FOLDER ? (n, s) => `${n} (${s})` : (n, s) => {
502
508
  const l = n.lastIndexOf("."), i = l > 0, p = i ? n.slice(0, l) : n, C = i ? n.slice(l) : "";
503
- return `${p} (${r})${C}`;
509
+ return `${p} (${s})${C}`;
504
510
  };
505
511
  for (let n = 1; ; n++) {
506
- const r = a(e, n);
507
- if (!t.has(r)) return r;
512
+ const s = a(e, n);
513
+ if (!t.has(s)) return s;
508
514
  }
509
515
  }, Io = (e) => e.name, Ra = ({
510
516
  getDestinationFiles: e,
511
517
  onResolve: t
512
518
  }) => {
513
- const [s, a] = z([]), [n, r] = z(!1), [l, i] = z(null), p = ce(!1), C = d((f) => {
514
- p.current = !0, a(f), r(!0);
519
+ const [r, a] = z([]), [n, s] = z(!1), [l, i] = z(null), p = ce(!1), C = d((f) => {
520
+ p.current = !0, a(f), s(!0);
515
521
  }, []), c = d(() => {
516
- p.current = !1, r(!1), a([]), i(null);
522
+ p.current = !1, s(!1), a([]), i(null);
517
523
  }, []), v = d(
518
524
  (f, T) => {
519
525
  const x = e(f), F = new Set(x.map(Io)), I = T.filter((S) => F.has(S.name));
@@ -526,13 +532,13 @@ const cs = (e) => {
526
532
  ), u = d(
527
533
  (f, T, x, F) => {
528
534
  const I = e(f), S = new Set(I.map(Io));
529
- return T.map((A) => {
530
- const _ = A.name, U = S.has(_), P = x && U ? _ : la(_, S, A.nodeType);
531
- return (!x || !U) && S.add(P), {
532
- sourceUrl: A.path,
533
- destinationUrl: `${f}/${P}`,
534
- overwrite: x && U,
535
- nodeType: A.nodeType ?? O.ITEM,
535
+ return T.map((O) => {
536
+ const M = O.name, V = S.has(M), A = x && V ? M : la(M, S, O.nodeType);
537
+ return (!x || !V) && S.add(A), {
538
+ sourceUrl: O.path,
539
+ destinationUrl: `${f}/${A}`,
540
+ overwrite: x && V,
541
+ nodeType: O.nodeType ?? L.ITEM,
536
542
  ...F ?? {}
537
543
  };
538
544
  });
@@ -541,13 +547,13 @@ const cs = (e) => {
541
547
  ), y = d(
542
548
  (f, T, x, F) => {
543
549
  const I = e(f), S = new Set(I.map(Io));
544
- return T.filter((_) => x.get(_.path) !== Ce.Cancel).map((_) => {
545
- const U = x.get(_.path), P = S.has(_.name), k = U === Ce.Replace && P, B = k ? _.name : la(_.name, S, _.nodeType);
546
- return k || S.add(B), {
547
- sourceUrl: _.path,
550
+ return T.filter((M) => x.get(M.path) !== Ce.Cancel).map((M) => {
551
+ const V = x.get(M.path), A = S.has(M.name), _ = V === Ce.Replace && A, B = _ ? M.name : la(M.name, S, M.nodeType);
552
+ return _ || S.add(B), {
553
+ sourceUrl: M.path,
548
554
  destinationUrl: `${f}/${B}`,
549
- overwrite: k,
550
- nodeType: _.nodeType ?? O.ITEM,
555
+ overwrite: _,
556
+ nodeType: M.nodeType ?? L.ITEM,
551
557
  ...F ?? {}
552
558
  };
553
559
  });
@@ -597,7 +603,7 @@ const cs = (e) => {
597
603
  T,
598
604
  f,
599
605
  new Map(
600
- s.map((I) => [
606
+ r.map((I) => [
601
607
  I.path,
602
608
  Ce.Cancel
603
609
  ])
@@ -607,7 +613,7 @@ const cs = (e) => {
607
613
  t?.(F, T), c();
608
614
  }, [
609
615
  c,
610
- s,
616
+ r,
611
617
  t,
612
618
  l,
613
619
  y
@@ -615,7 +621,7 @@ const cs = (e) => {
615
621
  (f) => {
616
622
  if (!l) return;
617
623
  const { files: T, destinationFolder: x, metadata: F } = l, I = new Map(
618
- f.map((A) => [A.file.path, A.action])
624
+ f.map((O) => [O.file.path, O.action])
619
625
  ), S = y(
620
626
  x,
621
627
  T,
@@ -632,7 +638,7 @@ const cs = (e) => {
632
638
  ]
633
639
  );
634
640
  return {
635
- conflictingFiles: s,
641
+ conflictingFiles: r,
636
642
  conflictResolutionOpen: n,
637
643
  hasActiveConflictRef: p,
638
644
  checkForConflicts: v,
@@ -646,13 +652,13 @@ const cs = (e) => {
646
652
  handleCancelAll: D,
647
653
  handleDecideForEach: h
648
654
  };
649
- }, ms = ({
655
+ }, fr = ({
650
656
  getDestinationFiles: e,
651
657
  onCopyFiles: t,
652
- onMoveToFiles: s,
658
+ onMoveToFiles: r,
653
659
  onCopySuccess: a,
654
660
  onMoveSuccess: n,
655
- onDuplicateSuccess: r,
661
+ onDuplicateSuccess: s,
656
662
  getCopyHeader: l,
657
663
  getMoveHeader: i
658
664
  }) => {
@@ -662,24 +668,24 @@ const cs = (e) => {
662
668
  hasActiveConflictRef: F,
663
669
  startConflictResolution: I,
664
670
  resolveConflictsWithStrategy: S,
665
- closeConflictResolution: A,
666
- openConflictResolution: _,
667
- handleReplaceAll: U,
668
- handleDuplicateAll: P,
669
- handleCancelAll: k,
671
+ closeConflictResolution: O,
672
+ openConflictResolution: M,
673
+ handleReplaceAll: V,
674
+ handleDuplicateAll: A,
675
+ handleCancelAll: _,
670
676
  handleDecideForEach: B
671
677
  } = Ra({
672
678
  getDestinationFiles: e,
673
679
  onResolve: (G, ne) => {
674
- G?.length && (h?.type === ge.Copy ? (t?.(G, ne), a?.()) : h?.type === ge.Move && h.sourceFolder && (s?.(
680
+ G?.length && (h?.type === ge.Copy ? (t?.(G, ne), a?.()) : h?.type === ge.Move && h.sourceFolder && (r?.(
675
681
  G,
676
682
  h.sourceFolder,
677
683
  ne
678
684
  ), n?.()));
679
685
  }
680
- }), L = d(() => {
686
+ }), k = d(() => {
681
687
  v([]), y([]), f(null), D(void 0);
682
- }, []), q = d(
688
+ }, []), Q = d(
683
689
  (G) => {
684
690
  const ne = I(G, c, {
685
691
  type: ge.Copy
@@ -690,7 +696,7 @@ const cs = (e) => {
690
696
  c,
691
697
  !1
692
698
  );
693
- t?.(he, G), a?.(), L();
699
+ t?.(he, G), a?.(), k();
694
700
  }
695
701
  },
696
702
  [
@@ -699,9 +705,9 @@ const cs = (e) => {
699
705
  S,
700
706
  t,
701
707
  a,
702
- L
708
+ k
703
709
  ]
704
- ), J = d(
710
+ ), te = d(
705
711
  (G, ne) => {
706
712
  const he = ne || (h?.sourceFolder ?? "/");
707
713
  if (!I(G, u, {
@@ -713,29 +719,29 @@ const cs = (e) => {
713
719
  u,
714
720
  !0
715
721
  );
716
- s?.(Oe, he, G), n?.(), L();
722
+ r?.(Oe, he, G), n?.(), k();
717
723
  }
718
724
  },
719
725
  [
720
726
  u,
721
727
  I,
722
728
  S,
723
- s,
729
+ r,
724
730
  n,
725
- L,
731
+ k,
726
732
  h
727
733
  ]
728
- ), j = d(() => {
729
- U(), L();
730
- }, [U, L]), te = d(() => {
731
- P(), L();
732
- }, [P, L]), fe = d(() => {
733
- k(), L();
734
- }, [k, L]), we = d(
734
+ ), U = d(() => {
735
+ V(), k();
736
+ }, [V, k]), Y = d(() => {
737
+ A(), k();
738
+ }, [A, k]), fe = d(() => {
739
+ _(), k();
740
+ }, [_, k]), we = d(
735
741
  (G) => {
736
- B(G), L();
742
+ B(G), k();
737
743
  },
738
- [B, L]
744
+ [B, k]
739
745
  ), xe = d(
740
746
  (G) => {
741
747
  const ne = G.at(0)?.parentPath ?? "/", he = S(
@@ -743,17 +749,17 @@ const cs = (e) => {
743
749
  G,
744
750
  !1
745
751
  );
746
- t?.(he, ne), r?.();
752
+ t?.(he, ne), s?.();
747
753
  },
748
- [t, r, S]
754
+ [t, s, S]
749
755
  ), ue = d(
750
756
  (G) => {
751
757
  m(G), C(!0);
752
758
  },
753
759
  []
754
760
  ), Te = d(() => {
755
- C(!1), F.current || L();
756
- }, [L, F]), [Ne, W] = z(), be = d(
761
+ C(!1), F.current || k();
762
+ }, [k, F]), [Ne, W] = z(), be = d(
757
763
  (G) => {
758
764
  v(G);
759
765
  const ne = G[0]?.parentPath ?? G[0]?.folderId;
@@ -775,37 +781,37 @@ const cs = (e) => {
775
781
  handleDuplicate: xe,
776
782
  handleCloseDestinationFolderPopup: Te,
777
783
  handleOpenDestinationFolderPopup: ue,
778
- handleCopyTo: q,
779
- handleMoveTo: J,
784
+ handleCopyTo: Q,
785
+ handleMoveTo: te,
780
786
  openDestinationFolderPopup: p,
781
787
  destinationFolderMode: g,
782
788
  destinationFolderTitle: Ne,
783
789
  handleSetCopiedFiles: be,
784
790
  handleSetMovedFiles: De,
785
- clearState: L,
791
+ clearState: k,
786
792
  conflictingFiles: T,
787
793
  conflictResolutionOpen: x,
788
- openConflictResolution: _,
789
- closeConflictResolution: A,
790
- handleConflictReplace: j,
794
+ openConflictResolution: M,
795
+ closeConflictResolution: O,
796
+ handleConflictReplace: U,
791
797
  handleConflictCancel: fe,
792
- handleConflictDuplicate: te,
798
+ handleConflictDuplicate: Y,
793
799
  handleConflictDecideForEach: we,
794
800
  sourceFolder: b
795
801
  };
796
- }, Cs = ({
802
+ }, mr = ({
797
803
  path: e,
798
804
  defaultPath: t,
799
- onPathChange: s,
805
+ onPathChange: r,
800
806
  onSelectionClear: a
801
807
  }) => {
802
- const n = e !== void 0, [r, l] = z(
808
+ const n = e !== void 0, [s, l] = z(
803
809
  t
804
- ), i = n ? e : r, p = d(
810
+ ), i = n ? e : s, p = d(
805
811
  (c) => {
806
- n || l(c), s?.(c);
812
+ n || l(c), r?.(c);
807
813
  },
808
- [n, s]
814
+ [n, r]
809
815
  ), C = d(
810
816
  (c) => {
811
817
  p(c), a?.();
@@ -817,17 +823,17 @@ const cs = (e) => {
817
823
  setCurrentPath: p,
818
824
  handlePathChange: C
819
825
  };
820
- }, gs = ({
826
+ }, Cr = ({
821
827
  onDeleteFiles: e,
822
828
  onDeleteSuccess: t
823
829
  }) => {
824
- const [s, a] = z(!1), [n, r] = z([]), [l, i] = z(""), p = d(
830
+ const [r, a] = z(!1), [n, s] = z([]), [l, i] = z(""), p = d(
825
831
  (v, u) => {
826
- r(v), i(u), a(!0);
832
+ s(v), i(u), a(!0);
827
833
  },
828
834
  []
829
835
  ), C = d(() => {
830
- a(!1), r([]);
836
+ a(!1), s([]);
831
837
  }, []), c = d(() => {
832
838
  if (e && n.length > 0) {
833
839
  const v = n.map((u) => ({
@@ -845,52 +851,52 @@ const cs = (e) => {
845
851
  l
846
852
  ]);
847
853
  return {
848
- deleteConfirmationOpen: s,
854
+ deleteConfirmationOpen: r,
849
855
  itemsToDelete: n,
850
856
  openDeleteConfirmation: p,
851
857
  closeDeleteConfirmation: C,
852
858
  confirmDelete: c
853
859
  };
854
- }, vs = ({
860
+ }, gr = ({
855
861
  onDownloadFiles: e,
856
862
  customDownloadItemsAction: t,
857
- onDownloadSuccess: s
863
+ onDownloadSuccess: r
858
864
  }) => ({
859
865
  handleDownloadFiles: d(
860
866
  (n) => {
861
- t && n.length > 0 ? t(n) : e && n.length > 0 && (e(n), s?.());
867
+ t && n.length > 0 ? t(n) : e && n.length > 0 && (e(n), r?.());
862
868
  },
863
- [e, s, t]
869
+ [e, r, t]
864
870
  )
865
- }), ys = (e) => "dataTransfer" in e && e.dataTransfer !== null, ws = ({
871
+ }), vr = (e) => "dataTransfer" in e && e.dataTransfer !== null, yr = ({
866
872
  onUploadFiles: e,
867
873
  onValidateUpload: t,
868
- maxFileSize: s,
874
+ maxFileSize: r,
869
875
  allowedFileTypes: a,
870
876
  validationMessages: n = {},
871
- onUploadArchive: r,
877
+ onUploadArchive: s,
872
878
  prepareUploadFileName: l,
873
879
  uploadEnabled: i = !0,
874
880
  currentFolder: p
875
881
  } = {}) => {
876
- const [C, c] = z(!1), [v, u] = z(!1), [y, g] = z(), m = ce(null), b = ce(""), D = ce([]), h = $(() => !!p?.permissions?.includes(St.WRITE), [p]), [f, T] = z(/* @__PURE__ */ new Map()), [x, F] = z(null), I = d(
882
+ const [C, c] = z(!1), [v, u] = z(!1), [y, g] = z(), m = ce(null), b = ce(""), D = ce([]), h = j(() => !!p?.permissions?.includes(St.WRITE), [p]), [f, T] = z(/* @__PURE__ */ new Map()), [x, F] = z(null), I = d(
877
883
  (R) => !a || a.includes("*/*") ? R : R.filter(
878
- ({ fileContent: H, name: V }) => Uo(a, H.type, V)
884
+ ({ fileContent: H, name: $ }) => Uo(a, H.type, $)
879
885
  ),
880
886
  [a]
881
887
  ), S = d(() => {
882
888
  T(/* @__PURE__ */ new Map()), F(null);
883
889
  }, []), {
884
- conflictingFiles: A,
885
- conflictResolutionOpen: _,
886
- hasActiveConflictRef: U,
887
- startConflictResolution: P,
888
- closeConflictResolution: k,
890
+ conflictingFiles: O,
891
+ conflictResolutionOpen: M,
892
+ hasActiveConflictRef: V,
893
+ startConflictResolution: A,
894
+ closeConflictResolution: _,
889
895
  openConflictResolution: B,
890
- handleReplaceAll: L,
891
- handleDuplicateAll: q,
892
- handleCancelAll: J,
893
- handleDecideForEach: j
896
+ handleReplaceAll: k,
897
+ handleDuplicateAll: Q,
898
+ handleCancelAll: te,
899
+ handleDecideForEach: U
894
900
  } = Ra({
895
901
  getDestinationFiles: () => D.current,
896
902
  onResolve: (R, H) => {
@@ -899,77 +905,77 @@ const cs = (e) => {
899
905
  return;
900
906
  }
901
907
  if (!x) return;
902
- const V = R.map((Q) => {
903
- const Z = f.get(Q.sourceUrl);
908
+ const $ = R.map((J) => {
909
+ const Z = f.get(J.sourceUrl);
904
910
  if (!Z)
905
911
  return;
906
- const me = Q.destinationUrl.split("/").pop();
912
+ const me = J.destinationUrl.split("/").pop();
907
913
  return {
908
914
  fileContent: Z.fileContent,
909
915
  name: me
910
916
  };
911
917
  }).filter(Boolean);
912
- if (V[0]?.fileContent?.type === "application/zip") {
913
- const { fileContent: Q, name: Z } = V[0];
914
- r?.(Q, Z, H);
915
- } else V.length > 0 && e?.(V, H);
918
+ if ($[0]?.fileContent?.type === "application/zip") {
919
+ const { fileContent: J, name: Z } = $[0];
920
+ s?.(J, Z, H);
921
+ } else $.length > 0 && e?.($, H);
916
922
  S();
917
923
  }
918
924
  });
919
925
  pe(() => {
920
- i && h || (c(!1), u(!1), g(void 0), k(), S());
926
+ i && h || (c(!1), u(!1), g(void 0), _(), S());
921
927
  }, [
922
928
  i,
923
- k,
929
+ _,
924
930
  S,
925
931
  h
926
932
  ]), pe(() => {
927
933
  if (!i || !h) return;
928
934
  let R = 0;
929
935
  const H = (me) => {
930
- ys(me) && me.dataTransfer.types.includes(Xr) && (R++, u(!0));
931
- }, V = () => {
936
+ vr(me) && me.dataTransfer.types.includes(Zs) && (R++, u(!0));
937
+ }, $ = () => {
932
938
  R--, R === 0 && u(!1);
933
- }, Q = () => {
939
+ }, J = () => {
934
940
  R = 0, u(!1);
935
941
  }, Z = (me) => {
936
942
  me.preventDefault();
937
943
  };
938
- return window.addEventListener("dragenter", H), window.addEventListener("dragleave", V), window.addEventListener("drop", Q), window.addEventListener("dragover", Z), () => {
939
- window.removeEventListener("dragenter", H), window.removeEventListener("dragleave", V), window.removeEventListener("drop", Q), window.removeEventListener("dragover", Z);
944
+ return window.addEventListener("dragenter", H), window.addEventListener("dragleave", $), window.addEventListener("drop", J), window.addEventListener("dragover", Z), () => {
945
+ window.removeEventListener("dragenter", H), window.removeEventListener("dragleave", $), window.removeEventListener("drop", J), window.removeEventListener("dragover", Z);
940
946
  };
941
947
  }, [i, h]);
942
- const te = d(
943
- (R) => s ? R.filter((H) => H.fileContent.size > s).map((H) => H.name) : [],
944
- [s]
948
+ const Y = d(
949
+ (R) => r ? R.filter((H) => H.fileContent.size > r).map((H) => H.name) : [],
950
+ [r]
945
951
  ), fe = d(
946
- (R, H) => R.map((V) => ({
947
- id: V.name,
948
- name: V.name,
952
+ (R, H) => R.map(($) => ({
953
+ id: $.name,
954
+ name: $.name,
949
955
  folderId: H,
950
- path: V.name,
951
- nodeType: O.ITEM,
956
+ path: $.name,
957
+ nodeType: L.ITEM,
952
958
  parentPath: H,
953
- contentLength: V.fileContent.size
959
+ contentLength: $.fileContent.size
954
960
  })),
955
961
  []
956
962
  ), we = d(
957
- async (R, H, V) => {
963
+ async (R, H, $) => {
958
964
  if (!i || !h) return !1;
959
- g(void 0), D.current = V;
960
- const Q = l ? R.map((ae) => ({
965
+ g(void 0), D.current = $;
966
+ const J = l ? R.map((ae) => ({
961
967
  ...ae,
962
968
  name: l(ae.name)
963
- })) : R, Z = te(Q);
969
+ })) : R, Z = Y(J);
964
970
  if (Z.length > 0) {
965
- const ae = s ? (s / 1048576).toFixed(2) : 0, Ve = n.oversizedFiles || `Files exceed maximum size (${ae}MB): ${Z.join(", ")}`;
971
+ const ae = r ? (r / 1048576).toFixed(2) : 0, Ve = n.oversizedFiles || `Files exceed maximum size (${ae}MB): ${Z.join(", ")}`;
966
972
  return g(Ve), !1;
967
973
  }
968
974
  if (t)
969
975
  try {
970
976
  const ae = await t(
971
- Q,
972
- V,
977
+ J,
978
+ $,
973
979
  H
974
980
  );
975
981
  if (!ae.valid)
@@ -981,43 +987,43 @@ const cs = (e) => {
981
987
  n.validationError || "Validation error occurred"
982
988
  ), !1;
983
989
  }
984
- const me = new Map(Q.map((ae) => [ae.name, ae]));
990
+ const me = new Map(J.map((ae) => [ae.name, ae]));
985
991
  T(me);
986
992
  const Ae = fe(
987
- Q,
993
+ J,
988
994
  H
989
995
  );
990
- return F({ destinationFolder: H }), P(H, Ae, {
996
+ return F({ destinationFolder: H }), A(H, Ae, {
991
997
  destinationFolder: H
992
- }).hasConflicts ? !1 : (e?.(Q, H), S(), !0);
998
+ }).hasConflicts ? !1 : (e?.(J, H), S(), !0);
993
999
  },
994
1000
  [
995
1001
  i,
996
1002
  e,
997
1003
  t,
998
1004
  l,
999
- te,
1000
- s,
1005
+ Y,
1006
+ r,
1001
1007
  n,
1002
1008
  fe,
1003
- P,
1009
+ A,
1004
1010
  S,
1005
1011
  h
1006
1012
  ]
1007
1013
  ), xe = d(() => {
1008
- L(), S();
1009
- }, [L, S]), ue = d(() => {
1010
- q(), S();
1011
- }, [q, S]), Te = d(() => {
1012
- J(), S();
1013
- }, [J, S]), Ne = d(
1014
+ k(), S();
1015
+ }, [k, S]), ue = d(() => {
1016
+ Q(), S();
1017
+ }, [Q, S]), Te = d(() => {
1018
+ te(), S();
1019
+ }, [te, S]), Ne = d(
1014
1020
  (R) => {
1015
- j(R), S();
1021
+ U(R), S();
1016
1022
  },
1017
- [j, S]
1023
+ [U, S]
1018
1024
  ), W = d(() => {
1019
- k(), U.current || S();
1020
- }, [k, U, S]), be = d(
1025
+ _(), V.current || S();
1026
+ }, [_, V, S]), be = d(
1021
1027
  (R) => {
1022
1028
  !i || !h || (R.preventDefault(), R.stopPropagation(), R.dataTransfer.types.includes("Files") && c(!0));
1023
1029
  },
@@ -1026,8 +1032,8 @@ const cs = (e) => {
1026
1032
  (R) => {
1027
1033
  if (!i || !h) return;
1028
1034
  R.preventDefault(), R.stopPropagation();
1029
- const H = R.currentTarget.getBoundingClientRect(), V = R.clientX, Q = R.clientY;
1030
- (V <= H.left || V >= H.right || Q <= H.top || Q >= H.bottom) && c(!1);
1035
+ const H = R.currentTarget.getBoundingClientRect(), $ = R.clientX, J = R.clientY;
1036
+ ($ <= H.left || $ >= H.right || J <= H.top || J >= H.bottom) && c(!1);
1031
1037
  },
1032
1038
  [i, h]
1033
1039
  ), G = d(
@@ -1036,12 +1042,12 @@ const cs = (e) => {
1036
1042
  },
1037
1043
  [i, h]
1038
1044
  ), ne = d(
1039
- async (R, H, V) => {
1045
+ async (R, H, $) => {
1040
1046
  if (!i || !h || (R.preventDefault(), R.stopPropagation(), c(!1), !R.dataTransfer.types.includes("Files")))
1041
1047
  return;
1042
- const Q = Array.from(R.dataTransfer.items || []), Z = [];
1048
+ const J = Array.from(R.dataTransfer.items || []), Z = [];
1043
1049
  let me = !1;
1044
- if (Q.length > 0 && Q.forEach((ae) => {
1050
+ if (J.length > 0 && J.forEach((ae) => {
1045
1051
  if (ae.kind === "file") {
1046
1052
  if (ae.webkitGetAsEntry?.()?.isDirectory) {
1047
1053
  me = !0;
@@ -1066,7 +1072,7 @@ const cs = (e) => {
1066
1072
  );
1067
1073
  return;
1068
1074
  }
1069
- await we(Pe, H, V);
1075
+ await we(Pe, H, $);
1070
1076
  },
1071
1077
  [
1072
1078
  i,
@@ -1086,11 +1092,11 @@ const cs = (e) => {
1086
1092
  return;
1087
1093
  }
1088
1094
  if (!R.files?.length) return;
1089
- const V = Array.from(R.files).map((Z) => ({
1095
+ const $ = Array.from(R.files).map((Z) => ({
1090
1096
  fileContent: Z,
1091
1097
  name: Z.name
1092
- })), Q = I(V);
1093
- if (Q.length === 0) {
1098
+ })), J = I($);
1099
+ if (J.length === 0) {
1094
1100
  g(
1095
1101
  n.unsupportedFiles || "Selected files are not supported"
1096
1102
  ), R.value = "";
@@ -1098,7 +1104,7 @@ const cs = (e) => {
1098
1104
  }
1099
1105
  try {
1100
1106
  await we(
1101
- Q,
1107
+ J,
1102
1108
  b.current,
1103
1109
  D.current
1104
1110
  );
@@ -1132,13 +1138,13 @@ const cs = (e) => {
1132
1138
  [i, h]
1133
1139
  ), Oe = d(
1134
1140
  (R, H) => {
1135
- if (!r || !i || !h) return;
1136
- const V = document.createElement("input");
1137
- V.type = "file", V.accept = ".zip,application/zip", V.multiple = !1, V.style.display = "none";
1138
- const Q = () => {
1139
- const Z = V.files?.[0];
1141
+ if (!s || !i || !h) return;
1142
+ const $ = document.createElement("input");
1143
+ $.type = "file", $.accept = ".zip,application/zip", $.multiple = !1, $.style.display = "none";
1144
+ const J = () => {
1145
+ const Z = $.files?.[0];
1140
1146
  if (!Z) {
1141
- document.body.removeChild(V);
1147
+ document.body.removeChild($);
1142
1148
  return;
1143
1149
  }
1144
1150
  const me = Z.name.replace(/\.zip$/i, ""), Ae = l ? l(me) : me, Pe = {
@@ -1146,32 +1152,32 @@ const cs = (e) => {
1146
1152
  name: Ae,
1147
1153
  folderId: R,
1148
1154
  path: `${R}/${Ae}`,
1149
- nodeType: O.FOLDER,
1155
+ nodeType: L.FOLDER,
1150
1156
  parentPath: R,
1151
1157
  contentLength: Z.size,
1152
1158
  contentType: Z.type
1153
1159
  };
1154
1160
  if (D.current = H, F({ destinationFolder: R }), T(
1155
1161
  /* @__PURE__ */ new Map([[Pe.path, { fileContent: Z, name: Ae }]])
1156
- ), P(R, [Pe], {
1162
+ ), A(R, [Pe], {
1157
1163
  destinationFolder: R
1158
1164
  }).hasConflicts) {
1159
- document.body.removeChild(V);
1165
+ document.body.removeChild($);
1160
1166
  return;
1161
1167
  }
1162
1168
  try {
1163
- r(Z, Ae, R);
1169
+ s(Z, Ae, R);
1164
1170
  } finally {
1165
- document.body.removeChild(V);
1171
+ document.body.removeChild($);
1166
1172
  }
1167
1173
  };
1168
- V.addEventListener("change", Q), document.body.appendChild(V), V.click();
1174
+ $.addEventListener("change", J), document.body.appendChild($), $.click();
1169
1175
  },
1170
1176
  [
1171
- r,
1177
+ s,
1172
1178
  i,
1173
1179
  h,
1174
- P,
1180
+ A,
1175
1181
  l
1176
1182
  ]
1177
1183
  ), Se = d(() => {
@@ -1190,9 +1196,9 @@ const cs = (e) => {
1190
1196
  openFileDialog: _e,
1191
1197
  openArchiveDialog: Oe,
1192
1198
  fileInputRef: m,
1193
- uploadConflictingFiles: A,
1194
- uploadConflictResolutionOpen: _,
1195
- hasActiveUploadConflictRef: U,
1199
+ uploadConflictingFiles: O,
1200
+ uploadConflictResolutionOpen: M,
1201
+ hasActiveUploadConflictRef: V,
1196
1202
  openUploadConflictResolution: B,
1197
1203
  closeUploadConflictResolution: W,
1198
1204
  handleUploadConflictReplace: xe,
@@ -1200,26 +1206,26 @@ const cs = (e) => {
1200
1206
  handleUploadConflictCancel: Te,
1201
1207
  handleUploadConflictDecideForEach: Ne
1202
1208
  };
1203
- }, Ia = hr(void 0), Fa = {
1209
+ }, Ia = hs(void 0), Fa = {
1204
1210
  hiddenItemWarning: `${Eo.Warning}__A dot at the start of the name will make the item hidden`
1205
1211
  }, Ea = {
1206
1212
  consecutiveDotsError: "Name cannot contain consecutive dots"
1207
- }, Ns = {
1213
+ }, wr = {
1208
1214
  emptyName: "Name cannot be empty",
1209
1215
  duplicateName: "An item with this name already exists",
1210
1216
  hiddenItemWarning: Fa.hiddenItemWarning,
1211
1217
  consecutiveDotsError: Ea.consecutiveDotsError
1212
1218
  };
1213
- function Ds(e) {
1219
+ function Nr(e) {
1214
1220
  let t = e.length;
1215
1221
  for (; t > 0 && e[t - 1] === "/"; ) t--;
1216
1222
  return e.slice(0, t);
1217
1223
  }
1218
- function xs(e, t) {
1219
- const s = Ds(e), a = s.lastIndexOf("/");
1220
- return a === -1 ? t : s.slice(0, a + 1) + t;
1224
+ function Dr(e, t) {
1225
+ const r = Nr(e), a = r.lastIndexOf("/");
1226
+ return a === -1 ? t : r.slice(0, a + 1) + t;
1221
1227
  }
1222
- function bs(e) {
1228
+ function xr(e) {
1223
1229
  const t = e.lastIndexOf(".");
1224
1230
  return t === -1 || t === 0 ? e : e.substring(0, t);
1225
1231
  }
@@ -1227,48 +1233,48 @@ function ca(e) {
1227
1233
  const t = e.lastIndexOf(".");
1228
1234
  return t === -1 || t === 0 ? "" : e.substring(t);
1229
1235
  }
1230
- const Ts = ({
1236
+ const br = ({
1231
1237
  items: e,
1232
1238
  onRenameValidate: t,
1233
- validationMessages: s,
1239
+ validationMessages: r,
1234
1240
  onMoveToFiles: a
1235
1241
  }) => {
1236
- const [n, r] = z(), l = $(
1242
+ const [n, s] = z(), l = j(
1237
1243
  () => ({
1238
- ...Ns,
1239
- ...s
1244
+ ...wr,
1245
+ ...r
1240
1246
  }),
1241
- [s]
1242
- ), i = $(() => n?.path, [n]), p = d(
1247
+ [r]
1248
+ ), i = j(() => n?.path, [n]), p = d(
1243
1249
  (y) => {
1244
1250
  const g = Ke(e, y);
1245
- g && r(g);
1251
+ g && s(g);
1246
1252
  },
1247
1253
  [e]
1248
1254
  ), C = d(() => {
1249
- r(void 0);
1255
+ s(void 0);
1250
1256
  }, []), c = d(
1251
1257
  (y) => {
1252
1258
  if (!n || !a) {
1253
- r(void 0);
1259
+ s(void 0);
1254
1260
  return;
1255
1261
  }
1256
- const g = n.nodeType === O.ITEM;
1262
+ const g = n.nodeType === L.ITEM;
1257
1263
  let m = y.trim();
1258
1264
  if (g) {
1259
1265
  const f = ca(n.name);
1260
1266
  f && !m.endsWith(f) && (m = m + f);
1261
1267
  }
1262
1268
  if (m === n.name) {
1263
- r(void 0);
1269
+ s(void 0);
1264
1270
  return;
1265
1271
  }
1266
- const b = xs(
1272
+ const b = Dr(
1267
1273
  n.path,
1268
1274
  m
1269
1275
  ), D = n.parentPath;
1270
1276
  if (!D) {
1271
- r(void 0);
1277
+ s(void 0);
1272
1278
  return;
1273
1279
  }
1274
1280
  const h = {
@@ -1276,7 +1282,7 @@ const Ts = ({
1276
1282
  destinationUrl: b,
1277
1283
  nodeType: n.nodeType
1278
1284
  };
1279
- a([h], D, D), r(void 0);
1285
+ a([h], D, D), s(void 0);
1280
1286
  },
1281
1287
  [n, a]
1282
1288
  ), v = d(
@@ -1288,7 +1294,7 @@ const Ts = ({
1288
1294
  return l.consecutiveDotsError;
1289
1295
  if (m.startsWith("."))
1290
1296
  return l.hiddenItemWarning;
1291
- const b = g.nodeType === O.ITEM;
1297
+ const b = g.nodeType === L.ITEM;
1292
1298
  let D = m;
1293
1299
  if (b) {
1294
1300
  const f = ca(g.name);
@@ -1310,7 +1316,7 @@ const Ts = ({
1310
1316
  return null;
1311
1317
  },
1312
1318
  [t, l, e]
1313
- ), u = d((y) => y.nodeType === O.ITEM ? bs(y.name) : y.name, []);
1319
+ ), u = d((y) => y.nodeType === L.ITEM ? xr(y.name) : y.name, []);
1314
1320
  return {
1315
1321
  renamedPath: i,
1316
1322
  renamedItem: n,
@@ -1321,87 +1327,87 @@ const Ts = ({
1321
1327
  getDisplayName: u
1322
1328
  };
1323
1329
  }, Sa = (e) => {
1324
- const [t, s] = z(e?.expandedPaths ?? /* @__PURE__ */ new Set()), a = $(
1330
+ const [t, r] = z(e?.expandedPaths ?? /* @__PURE__ */ new Set()), a = j(
1325
1331
  () => !!e?.onExpandedPathsChange,
1326
1332
  [e?.onExpandedPathsChange]
1327
- ), n = $(
1333
+ ), n = j(
1328
1334
  () => a ? e?.expandedPaths ?? /* @__PURE__ */ new Set() : t,
1329
1335
  [a, e?.expandedPaths, t]
1330
1336
  );
1331
1337
  pe(() => {
1332
- a && e?.expandedPaths && s(new Set(e.expandedPaths));
1338
+ a && e?.expandedPaths && r(new Set(e.expandedPaths));
1333
1339
  }, [a, e?.expandedPaths]);
1334
- const r = d(
1340
+ const s = d(
1335
1341
  (c) => {
1336
- a ? e?.onExpandedPathsChange?.(c) : s(c);
1342
+ a ? e?.onExpandedPathsChange?.(c) : r(c);
1337
1343
  },
1338
1344
  [a, e]
1339
1345
  ), l = d(
1340
1346
  (c) => {
1341
1347
  const v = new Set(n);
1342
- v.has(c) ? v.delete(c) : v.add(c), r(v);
1348
+ v.has(c) ? v.delete(c) : v.add(c), s(v);
1343
1349
  },
1344
- [n, r]
1350
+ [n, s]
1345
1351
  ), i = d(() => {
1346
- r(/* @__PURE__ */ new Set());
1347
- }, [r]), p = d(
1352
+ s(/* @__PURE__ */ new Set());
1353
+ }, [s]), p = d(
1348
1354
  (c) => {
1349
1355
  const v = new Set(n);
1350
- v.add(c), r(v);
1356
+ v.add(c), s(v);
1351
1357
  },
1352
- [n, r]
1358
+ [n, s]
1353
1359
  ), C = d(
1354
1360
  (c) => {
1355
1361
  const v = new Set(n);
1356
- v.delete(c), r(v);
1362
+ v.delete(c), s(v);
1357
1363
  },
1358
- [n, r]
1364
+ [n, s]
1359
1365
  );
1360
1366
  return {
1361
1367
  expandedPaths: n,
1362
- setExpandedPaths: r,
1368
+ setExpandedPaths: s,
1363
1369
  togglePath: l,
1364
1370
  collapseAll: i,
1365
1371
  expandPath: p,
1366
1372
  collapsePath: C,
1367
1373
  isControlled: a
1368
1374
  };
1369
- }, Rs = ({
1375
+ }, Tr = ({
1370
1376
  newActions: e,
1371
1377
  currentFolder: t,
1372
- onUploadFiles: s,
1378
+ onUploadFiles: r,
1373
1379
  onCreateFolder: a,
1374
1380
  onUploadArchive: n,
1375
- onCreateNewItem: r,
1381
+ onCreateNewItem: s,
1376
1382
  isNewButtonDisabled: l
1377
1383
  }) => {
1378
- const i = $(() => {
1384
+ const i = j(() => {
1379
1385
  const c = [];
1380
1386
  return e && (e.newFolder && c.push({
1381
1387
  key: "new-folder",
1382
1388
  label: e.newFolder.label,
1383
- icon: e?.newFolder?.icon !== void 0 ? e?.newFolder?.icon : /* @__PURE__ */ o(pa, { ...M, className: "text-secondary" }),
1389
+ icon: e?.newFolder?.icon !== void 0 ? e?.newFolder?.icon : /* @__PURE__ */ o(pa, { ...P, className: "text-secondary" }),
1384
1390
  onClick: () => {
1385
1391
  a && a();
1386
1392
  }
1387
1393
  }), e.newItem && c.push({
1388
1394
  key: "new-item",
1389
1395
  label: e.newItem.label,
1390
- icon: e?.newItem?.icon !== void 0 ? e?.newItem?.icon : /* @__PURE__ */ o(er, { ...M, className: "text-secondary" }),
1396
+ icon: e?.newItem?.icon !== void 0 ? e?.newItem?.icon : /* @__PURE__ */ o(es, { ...P, className: "text-secondary" }),
1391
1397
  onClick: () => {
1392
- r && r();
1398
+ s && s();
1393
1399
  }
1394
1400
  }), e.uploadFiles && c.push({
1395
1401
  key: "upload-file",
1396
1402
  label: e.uploadFiles.label,
1397
- icon: e?.uploadFiles?.icon !== void 0 ? e?.uploadFiles?.icon : /* @__PURE__ */ o(tr, { ...M, className: "text-secondary" }),
1403
+ icon: e?.uploadFiles?.icon !== void 0 ? e?.uploadFiles?.icon : /* @__PURE__ */ o(ts, { ...P, className: "text-secondary" }),
1398
1404
  onClick: () => {
1399
- s && s();
1405
+ r && r();
1400
1406
  }
1401
1407
  }), e.uploadArchive && c.push({
1402
1408
  key: "upload-archive",
1403
1409
  label: e.uploadArchive.label,
1404
- icon: e?.uploadArchive?.icon !== void 0 ? e?.uploadArchive?.icon : /* @__PURE__ */ o(nr, { ...M, className: "text-secondary" }),
1410
+ icon: e?.uploadArchive?.icon !== void 0 ? e?.uploadArchive?.icon : /* @__PURE__ */ o(ns, { ...P, className: "text-secondary" }),
1405
1411
  onClick: () => {
1406
1412
  n && n();
1407
1413
  }
@@ -1409,13 +1415,13 @@ const Ts = ({
1409
1415
  }, [
1410
1416
  e,
1411
1417
  a,
1412
- s,
1418
+ r,
1413
1419
  n,
1414
- r
1415
- ]), p = $(
1420
+ s
1421
+ ]), p = j(
1416
1422
  () => i?.length > 0,
1417
1423
  [i]
1418
- ), C = $(
1424
+ ), C = j(
1419
1425
  () => !t?.permissions?.includes(St.WRITE) || !!l,
1420
1426
  [t, l]
1421
1427
  );
@@ -1424,37 +1430,37 @@ const Ts = ({
1424
1430
  isNewButtonVisible: p,
1425
1431
  isNewButtonDisabled: C
1426
1432
  };
1427
- }, Is = {
1433
+ }, Rr = {
1428
1434
  emptyName: "Folder name cannot be empty",
1429
1435
  duplicateName: "A folder with this name already exists",
1430
1436
  hiddenItemWarning: Fa.hiddenItemWarning,
1431
1437
  consecutiveDotsError: Ea.consecutiveDotsError
1432
- }, Fs = ({
1438
+ }, Ir = ({
1433
1439
  currentFolder: e,
1434
1440
  onCreateFolder: t,
1435
- onValidateFolderName: s,
1441
+ onValidateFolderName: r,
1436
1442
  validationMessages: a,
1437
1443
  items: n = []
1438
1444
  }) => {
1439
- const [r, l] = z(!1), [i, p] = z(null), [C, c] = z(
1445
+ const [s, l] = z(!1), [i, p] = z(null), [C, c] = z(
1440
1446
  Be.Folder
1441
1447
  ), [v, u] = z(null), [y, g] = z(
1442
1448
  null
1443
- ), [m, b] = z(""), D = ce(e?.path), h = $(
1449
+ ), [m, b] = z(""), D = ce(e?.path), h = j(
1444
1450
  () => ({
1445
- ...Is,
1451
+ ...Rr,
1446
1452
  ...a
1447
1453
  }),
1448
1454
  [a]
1449
- ), f = $(() => {
1455
+ ), f = j(() => {
1450
1456
  if (C === Be.Folder)
1451
1457
  return e;
1452
1458
  if (C === Be.Sibling && v) {
1453
- const P = It(n, v.parentPath || "");
1459
+ const A = It(n, v.parentPath || "");
1454
1460
  return {
1455
1461
  path: v.parentPath,
1456
- items: P?.items || [],
1457
- nodeType: O.FOLDER,
1462
+ items: A?.items || [],
1463
+ nodeType: L.FOLDER,
1458
1464
  name: v?.parentPath?.split("/")?.pop() || "",
1459
1465
  folderId: ""
1460
1466
  };
@@ -1462,97 +1468,97 @@ const Ts = ({
1462
1468
  return C === Be.Child ? v : e;
1463
1469
  }, [C, v, e, n]);
1464
1470
  pe(() => {
1465
- const P = f?.path;
1466
- D.current !== P && r && (l(!1), p(null), b("")), D.current = P;
1467
- }, [f?.path, r]);
1471
+ const A = f?.path;
1472
+ D.current !== A && s && (l(!1), p(null), b("")), D.current = A;
1473
+ }, [f?.path, s]);
1468
1474
  const T = d(() => {
1469
- if (r) return;
1475
+ if (s) return;
1470
1476
  D.current = e?.path || "/";
1471
- const P = `__new_folder_${Date.now()}`, k = (e?.items ?? []).filter(
1472
- (L) => L.nodeType === O.FOLDER
1473
- ), B = Kt(k);
1474
- p(P), b(B), l(!0), c(Be.Folder), u(e || null);
1475
- }, [r, e]), x = d(
1476
- (P) => {
1477
- if (r) return;
1478
- D.current = P?.parentPath || "/";
1479
- const k = `__new_folder_${Date.now()}`, L = (It(n, P?.parentPath || "/")?.items ?? []).filter(
1480
- (J) => J.nodeType === O.FOLDER
1481
- ), q = Kt(L);
1482
- b(q), p(k), l(!0), c(Be.Sibling), u(P), g(P?.parentPath || "/");
1477
+ const A = `__new_folder_${Date.now()}`, _ = (e?.items ?? []).filter(
1478
+ (k) => k.nodeType === L.FOLDER
1479
+ ), B = Kt(_);
1480
+ p(A), b(B), l(!0), c(Be.Folder), u(e || null);
1481
+ }, [s, e]), x = d(
1482
+ (A) => {
1483
+ if (s) return;
1484
+ D.current = A?.parentPath || "/";
1485
+ const _ = `__new_folder_${Date.now()}`, k = (It(n, A?.parentPath || "/")?.items ?? []).filter(
1486
+ (te) => te.nodeType === L.FOLDER
1487
+ ), Q = Kt(k);
1488
+ b(Q), p(_), l(!0), c(Be.Sibling), u(A), g(A?.parentPath || "/");
1483
1489
  },
1484
- [r, n]
1490
+ [s, n]
1485
1491
  ), F = d(
1486
- (P) => {
1487
- if (r) return;
1488
- D.current = P.path;
1489
- const k = `__new_folder_${Date.now()}`, B = (P?.items ?? []).filter(
1490
- (q) => q.nodeType === O.FOLDER
1491
- ), L = Kt(B);
1492
- b(L), p(k), l(!0), c(Be.Child), u(P), g(P?.path || "/");
1492
+ (A) => {
1493
+ if (s) return;
1494
+ D.current = A.path;
1495
+ const _ = `__new_folder_${Date.now()}`, B = (A?.items ?? []).filter(
1496
+ (Q) => Q.nodeType === L.FOLDER
1497
+ ), k = Kt(B);
1498
+ b(k), p(_), l(!0), c(Be.Child), u(A), g(A?.path || "/");
1493
1499
  },
1494
- [r]
1500
+ [s]
1495
1501
  ), I = d(
1496
- (P) => {
1497
- if (r) return;
1498
- D.current = P?.parentPath || "/";
1499
- const B = (It(n, P?.parentPath || "/")?.items ?? []).filter(
1500
- (q) => q.nodeType === O.FOLDER
1501
- ), L = Kt(B);
1502
- b(L), c(Be.Sibling), u(P), g(P?.parentPath || "/"), l(!0);
1502
+ (A) => {
1503
+ if (s) return;
1504
+ D.current = A?.parentPath || "/";
1505
+ const B = (It(n, A?.parentPath || "/")?.items ?? []).filter(
1506
+ (Q) => Q.nodeType === L.FOLDER
1507
+ ), k = Kt(B);
1508
+ b(k), c(Be.Sibling), u(A), g(A?.parentPath || "/"), l(!0);
1503
1509
  },
1504
- [r, n]
1510
+ [s, n]
1505
1511
  ), S = d(
1506
- (P) => {
1507
- if (r) return;
1508
- D.current = P.path;
1509
- const k = (P?.items ?? []).filter(
1510
- (L) => L.nodeType === O.FOLDER
1511
- ), B = Kt(k);
1512
- b(B), c(Be.Child), u(P), g(P?.path || "/"), l(!0);
1512
+ (A) => {
1513
+ if (s) return;
1514
+ D.current = A.path;
1515
+ const _ = (A?.items ?? []).filter(
1516
+ (k) => k.nodeType === L.FOLDER
1517
+ ), B = Kt(_);
1518
+ b(B), c(Be.Child), u(A), g(A?.path || "/"), l(!0);
1513
1519
  },
1514
- [r]
1515
- ), A = d(() => {
1520
+ [s]
1521
+ ), O = d(() => {
1516
1522
  l(!1), p(null), c(Be.Folder), u(null), g(null), D.current = void 0, b("");
1517
- }, []), _ = d(
1518
- (P) => {
1519
- const k = P.trim();
1520
- if (!k)
1523
+ }, []), M = d(
1524
+ (A) => {
1525
+ const _ = A.trim();
1526
+ if (!_)
1521
1527
  return h.emptyName;
1522
- if (k.includes(".."))
1528
+ if (_.includes(".."))
1523
1529
  return h.consecutiveDotsError;
1524
- if (k.startsWith(".") && k.length > 1)
1530
+ if (_.startsWith(".") && _.length > 1)
1525
1531
  return h.hiddenItemWarning;
1526
1532
  if (f && f.items && new Set(
1527
- (f.items ?? []).filter((L) => L.nodeType === O.FOLDER).map((L) => L.name.toLowerCase())
1528
- ).has(k.toLowerCase()))
1533
+ (f.items ?? []).filter((k) => k.nodeType === L.FOLDER).map((k) => k.name.toLowerCase())
1534
+ ).has(_.toLowerCase()))
1529
1535
  return h.duplicateName;
1530
- if (s && f) {
1531
- const B = s(k, f);
1536
+ if (r && f) {
1537
+ const B = r(_, f);
1532
1538
  if (B)
1533
1539
  return B;
1534
1540
  }
1535
1541
  return null;
1536
1542
  },
1537
- [f, s, h]
1538
- ), U = d(
1539
- async (P) => {
1540
- const k = P.trim();
1541
- if (!k)
1543
+ [f, r, h]
1544
+ ), V = d(
1545
+ async (A) => {
1546
+ const _ = A.trim();
1547
+ if (!_)
1542
1548
  return;
1543
- A();
1544
- const L = `${f?.path ?? "/"}/${k}`, q = `${L}/${Ro}`, j = {
1549
+ O();
1550
+ const k = `${f?.path ?? "/"}/${_}`, Q = `${k}/${Ro}`, U = {
1545
1551
  fileContent: new File([], Ro, {
1546
1552
  type: "text/plain"
1547
1553
  }),
1548
1554
  name: Ro
1549
1555
  };
1550
- t && await t(j, L, q);
1556
+ t && await t(U, k, Q);
1551
1557
  },
1552
- [f, t, A]
1558
+ [f, t, O]
1553
1559
  );
1554
1560
  return {
1555
- isCreatingFolder: r,
1561
+ isCreatingFolder: s,
1556
1562
  createdFolderPath: y,
1557
1563
  newFolderTempId: i,
1558
1564
  newFolderDefaultName: m,
@@ -1561,76 +1567,76 @@ const Ts = ({
1561
1567
  startTreeSiblingFolderCreation: I,
1562
1568
  startGridChildFolderCreation: F,
1563
1569
  startTreeChildFolderCreation: S,
1564
- cancelFolderCreation: A,
1565
- saveFolderCreation: U,
1566
- validateFolderName: _
1570
+ cancelFolderCreation: O,
1571
+ saveFolderCreation: V,
1572
+ validateFolderName: M
1567
1573
  };
1568
- }, Es = ({
1574
+ }, Fr = ({
1569
1575
  additionalButtons: e,
1570
1576
  expandedPathsLength: t,
1571
- collapseAll: s
1577
+ collapseAll: r
1572
1578
  }) => {
1573
1579
  const a = t === 0;
1574
1580
  return {
1575
- additionalButtons: $(() => /* @__PURE__ */ X(Ie, { children: [
1581
+ additionalButtons: j(() => /* @__PURE__ */ X(Ie, { children: [
1576
1582
  e,
1577
1583
  /* @__PURE__ */ o(
1578
1584
  Et,
1579
1585
  {
1580
1586
  disabled: a,
1581
1587
  size: jn.Small,
1582
- onClick: s,
1583
- icon: /* @__PURE__ */ o(or, { size: zo.LG, stroke: 1.5 }),
1588
+ onClick: r,
1589
+ icon: /* @__PURE__ */ o(os, { size: zo.LG, stroke: 1.5 }),
1584
1590
  "aria-label": "collapse-all"
1585
1591
  }
1586
1592
  )
1587
- ] }), [e, a, s])
1593
+ ] }), [e, a, r])
1588
1594
  };
1589
- }, Ss = ({ onGetInfo: e }) => {
1590
- const [t, s] = z(!1), [a, n] = z(void 0), r = d(
1595
+ }, Er = ({ onGetInfo: e }) => {
1596
+ const [t, r] = z(!1), [a, n] = z(void 0), s = d(
1591
1597
  async (i) => {
1592
- n(i), s(!0), e && await e(i);
1598
+ n(i), r(!0), e && await e(i);
1593
1599
  },
1594
1600
  [e]
1595
1601
  ), l = d(() => {
1596
- s(!1), n(void 0);
1602
+ r(!1), n(void 0);
1597
1603
  }, []);
1598
1604
  return {
1599
1605
  isMetadataPopupOpen: t,
1600
1606
  selectedFileForMetadata: a,
1601
- openMetadataPopup: r,
1607
+ openMetadataPopup: s,
1602
1608
  closeMetadataPopup: l
1603
1609
  };
1604
1610
  };
1605
- function As(e) {
1611
+ function Sr(e) {
1606
1612
  const t = [];
1607
- function s(a) {
1613
+ function r(a) {
1608
1614
  for (const n of a)
1609
- t.push(n), n.items && s(n.items);
1615
+ t.push(n), n.items && r(n.items);
1610
1616
  }
1611
- return s(e), t;
1617
+ return r(e), t;
1612
1618
  }
1613
1619
  function da(e, t) {
1614
- const s = Ft(t);
1615
- return e.filter((a) => Ft(a.name).includes(s));
1620
+ const r = Ft(t);
1621
+ return e.filter((a) => Ft(a.name).includes(r));
1616
1622
  }
1617
- function Ps({
1623
+ function Ar({
1618
1624
  onSearchFiles: e,
1619
1625
  clearSearchResults: t,
1620
- currentPath: s,
1626
+ currentPath: r,
1621
1627
  searchResults: a = [],
1622
1628
  searchInProgress: n = !1,
1623
- navigationPanelValue: r,
1629
+ navigationPanelValue: s,
1624
1630
  onNavigationPanelSearchChange: l,
1625
1631
  allItems: i = [],
1626
1632
  activeTab: p
1627
1633
  }) {
1628
- const [C, c] = z(""), v = ce(!1), u = ce(!1), y = ce([]), g = ce(s), m = ce(p);
1634
+ const [C, c] = z(""), v = ce(!1), u = ce(!1), y = ce([]), g = ce(r), m = ce(p);
1629
1635
  pe(() => {
1630
- r != null && c(String(r));
1631
- }, [r]);
1636
+ s != null && c(String(s));
1637
+ }, [s]);
1632
1638
  const b = String(
1633
- r ?? C ?? ""
1639
+ s ?? C ?? ""
1634
1640
  ).trim(), D = u.current && (n || a.length > 0 || b !== ""), h = d(
1635
1641
  (F) => {
1636
1642
  const I = F.trim();
@@ -1638,9 +1644,9 @@ function Ps({
1638
1644
  u.current = !1, v.current = !1;
1639
1645
  return;
1640
1646
  }
1641
- u.current = !0, e && s && !v.current && (v.current = !0, e(s, I));
1647
+ u.current = !0, e && r && !v.current && (v.current = !0, e(r, I));
1642
1648
  },
1643
- [e, s]
1649
+ [e, r]
1644
1650
  ), f = d(() => {
1645
1651
  v.current = !1, u.current = !1, y.current = [], c(""), l?.(""), t?.();
1646
1652
  }, [t, l]), T = d(
@@ -1651,23 +1657,23 @@ function Ps({
1651
1657
  [l, h, f]
1652
1658
  );
1653
1659
  pe(() => {
1654
- (g.current !== s || m.current !== p) && (g.current = s, m.current = p, v.current = !1, u.current = !1, y.current = [], c(""), l?.(""), t?.());
1660
+ (g.current !== r || m.current !== p) && (g.current = r, m.current = p, v.current = !1, u.current = !1, y.current = [], c(""), l?.(""), t?.());
1655
1661
  }, [
1656
- s,
1662
+ r,
1657
1663
  p,
1658
1664
  l,
1659
1665
  t
1660
1666
  ]), pe(() => {
1661
1667
  n || (y.current = a);
1662
1668
  }, [a, n]);
1663
- const x = $(() => {
1669
+ const x = j(() => {
1664
1670
  if (e) {
1665
1671
  const I = n ? y.current : a;
1666
1672
  return !b || I.length === 0 ? I : da(I, b);
1667
1673
  }
1668
1674
  if (!b || !i.length)
1669
1675
  return [];
1670
- const F = As(i);
1676
+ const F = Sr(i);
1671
1677
  return da(F, b);
1672
1678
  }, [
1673
1679
  e,
@@ -1687,20 +1693,20 @@ function Ps({
1687
1693
  searchResultsRows: x
1688
1694
  };
1689
1695
  }
1690
- function Ms({
1696
+ function Pr({
1691
1697
  selectedPaths: e,
1692
1698
  defaultSelectedPaths: t,
1693
- onSelectedPathsChange: s
1699
+ onSelectedPathsChange: r
1694
1700
  }) {
1695
- const a = e !== void 0, [n, r] = z(() => t ?? /* @__PURE__ */ new Set()), l = $(
1701
+ const a = e !== void 0, [n, s] = z(() => t ?? /* @__PURE__ */ new Set()), l = j(
1696
1702
  () => a ? e : n,
1697
1703
  [a, e, n]
1698
1704
  ), i = d(
1699
1705
  (C) => {
1700
1706
  const c = new Set(C);
1701
- s?.(c), a || r(c);
1707
+ r?.(c), a || s(c);
1702
1708
  },
1703
- [a, s]
1709
+ [a, r]
1704
1710
  ), p = d(() => {
1705
1711
  i(/* @__PURE__ */ new Set());
1706
1712
  }, [i]);
@@ -1711,13 +1717,13 @@ function Ms({
1711
1717
  isControlled: a
1712
1718
  };
1713
1719
  }
1714
- const ks = ({
1720
+ const Mr = ({
1715
1721
  managerLabel: e,
1716
1722
  children: t,
1717
- className: s,
1723
+ className: r,
1718
1724
  items: a = [],
1719
1725
  rootItem: n,
1720
- path: r,
1726
+ path: s,
1721
1727
  defaultPath: l,
1722
1728
  filesLoading: i,
1723
1729
  selectedPaths: p,
@@ -1737,17 +1743,17 @@ const ks = ({
1737
1743
  onPathChange: F,
1738
1744
  onTableFileClick: I,
1739
1745
  handleSelectionClick: S,
1740
- onGridApiChange: A,
1741
- onCopyFiles: _,
1742
- onMoveToFiles: U,
1743
- onDeleteFiles: P,
1744
- onDownloadFiles: k,
1746
+ onGridApiChange: O,
1747
+ onCopyFiles: M,
1748
+ onMoveToFiles: V,
1749
+ onDeleteFiles: A,
1750
+ onDownloadFiles: _,
1745
1751
  onRenameValidate: B,
1746
- renameValidationMessages: L,
1747
- forbiddenSymbolsRegExp: q = Cr,
1748
- forbiddenSymbolsTooltip: J,
1749
- onUploadFiles: j,
1750
- onValidateUpload: te,
1752
+ renameValidationMessages: k,
1753
+ forbiddenSymbolsRegExp: Q = Cs,
1754
+ forbiddenSymbolsTooltip: te,
1755
+ onUploadFiles: U,
1756
+ onValidateUpload: Y,
1751
1757
  uploadEnabled: fe,
1752
1758
  uploadValidationMessages: we,
1753
1759
  maxFileSize: xe,
@@ -1765,8 +1771,8 @@ const ks = ({
1765
1771
  onSearchFiles: Se,
1766
1772
  searchResults: R,
1767
1773
  searchInProgress: H,
1768
- clearSearchResults: V,
1769
- allowedFileTypes: Q,
1774
+ clearSearchResults: $,
1775
+ allowedFileTypes: J,
1770
1776
  maxSelectableFileSize: Z,
1771
1777
  getDisabledTooltip: me,
1772
1778
  fileTooLargeTooltip: Ae,
@@ -1777,7 +1783,7 @@ const ks = ({
1777
1783
  sharedWithMeIds: He,
1778
1784
  onFolderPopupPathChange: pt,
1779
1785
  onManagePermissions: cn,
1780
- onPreview: st,
1786
+ onPreview: rt,
1781
1787
  onOpenInNewTab: ft,
1782
1788
  previewExtensions: Xn,
1783
1789
  isRenameFileAvailable: qn,
@@ -1802,14 +1808,14 @@ const ks = ({
1802
1808
  selectedPaths: Ze,
1803
1809
  clearSelection: Xe,
1804
1810
  setSelectedPaths: it
1805
- } = Ms({
1811
+ } = Pr({
1806
1812
  selectedPaths: p,
1807
1813
  defaultSelectedPaths: C,
1808
1814
  onSelectedPathsChange: c
1809
1815
  }), gn = ce(!1), Je = ce(null), Qn = d(
1810
1816
  (E, K, oe) => {
1811
1817
  if (je) {
1812
- const { parent: Ye, name: To } = cs(K);
1818
+ const { parent: Ye, name: To } = lr(K);
1813
1819
  Je.current = {
1814
1820
  fileNames: /* @__PURE__ */ new Set([To]),
1815
1821
  destinationFolder: Ye
@@ -1823,9 +1829,9 @@ const ks = ({
1823
1829
  je && (Je.current = {
1824
1830
  fileNames: new Set(E.map((oe) => oe.name)),
1825
1831
  destinationFolder: K
1826
- }), j?.(E, K);
1832
+ }), U?.(E, K);
1827
1833
  },
1828
- [j, je]
1834
+ [U, je]
1829
1835
  ), eo = d(
1830
1836
  (E, K, oe) => {
1831
1837
  je && (Je.current = {
@@ -1834,7 +1840,7 @@ const ks = ({
1834
1840
  }), ue?.(E, K, oe);
1835
1841
  },
1836
1842
  [ue, je]
1837
- ), to = $(() => {
1843
+ ), to = j(() => {
1838
1844
  const E = /* @__PURE__ */ new Map();
1839
1845
  return Ze.forEach((K) => {
1840
1846
  const oe = Ke(a, K);
@@ -1856,12 +1862,12 @@ const ks = ({
1856
1862
  it(K);
1857
1863
  }
1858
1864
  }, [a, Ze, it]);
1859
- const { currentPath: de, setCurrentPath: Fe, handlePathChange: qe } = Cs({
1860
- path: r,
1865
+ const { currentPath: de, setCurrentPath: Fe, handlePathChange: qe } = mr({
1866
+ path: s,
1861
1867
  defaultPath: l,
1862
1868
  onPathChange: F,
1863
1869
  onSelectionClear: Xe
1864
- }), Mt = $(() => {
1870
+ }), Mt = j(() => {
1865
1871
  const {
1866
1872
  showFiles: E = !0,
1867
1873
  showFolders: K = !0,
@@ -1873,25 +1879,25 @@ const ks = ({
1873
1879
  T?.setDestinationFolderPath ? T.setDestinationFolderPath(E) : no(E);
1874
1880
  },
1875
1881
  [T]
1876
- ), { areHiddenFilesVisible: lt, toggleHiddenFilesVisibility: yn } = ps({
1882
+ ), { areHiddenFilesVisible: lt, toggleHiddenFilesVisibility: yn } = hr({
1877
1883
  showHiddenFiles: v,
1878
1884
  onShowHiddenFilesChange: u
1879
- }), { isTreeCollapsed: wn, toggleTreeCollapse: vt, setIsTreeCollapsed: oo } = fs({
1885
+ }), { isTreeCollapsed: wn, toggleTreeCollapse: vt, setIsTreeCollapsed: oo } = pr({
1880
1886
  collapsed: y?.collapsed,
1881
1887
  onCollapseChange: y?.onCollapseChange
1882
1888
  }), {
1883
1889
  renamedPath: yt,
1884
1890
  renamedItem: ao,
1885
- renameHandler: ro,
1886
- renameSaveHandler: so,
1891
+ renameHandler: so,
1892
+ renameSaveHandler: ro,
1887
1893
  renameCancelHandler: io,
1888
1894
  renameValidateHandler: lo,
1889
1895
  getDisplayName: Ot
1890
- } = Ts({
1896
+ } = br({
1891
1897
  items: a,
1892
1898
  onRenameValidate: B,
1893
- validationMessages: L,
1894
- onMoveToFiles: U
1899
+ validationMessages: k,
1900
+ onMoveToFiles: V
1895
1901
  }), {
1896
1902
  isSearchMode: wt,
1897
1903
  searchValue: Nn,
@@ -1900,9 +1906,9 @@ const ks = ({
1900
1906
  handleSearchChange: _t,
1901
1907
  handleSearchClear: le,
1902
1908
  searchResultsRows: Dn
1903
- } = Ps({
1909
+ } = Ar({
1904
1910
  onSearchFiles: Se,
1905
- clearSearchResults: V,
1911
+ clearSearchResults: $,
1906
1912
  currentPath: de,
1907
1913
  searchResults: R,
1908
1914
  searchInProgress: H,
@@ -1910,11 +1916,11 @@ const ks = ({
1910
1916
  onNavigationPanelSearchChange: m?.onSearchChange,
1911
1917
  allItems: a,
1912
1918
  activeTab: h?.activeTab
1913
- }), re = $(
1919
+ }), se = j(
1914
1920
  () => It(a, de) ?? a[0],
1915
1921
  [a, de]
1916
1922
  ), Le = d(
1917
- (E, K) => !K || !E ? !1 : hs(E.path) > K,
1923
+ (E, K) => !K || !E ? !1 : ur(E.path) > K,
1918
1924
  []
1919
1925
  ), Me = d(() => {
1920
1926
  Pt?.();
@@ -1937,10 +1943,10 @@ const ks = ({
1937
1943
  handleConflictCancel: fo,
1938
1944
  handleConflictDecideForEach: mo,
1939
1945
  sourceFolder: Co
1940
- } = ms({
1946
+ } = fr({
1941
1947
  getDestinationFiles: (E) => It(a, E)?.items ?? [],
1942
- onCopyFiles: _,
1943
- onMoveToFiles: U,
1948
+ onCopyFiles: M,
1949
+ onMoveToFiles: V,
1944
1950
  onCopySuccess: Xe,
1945
1951
  onMoveSuccess: Xe,
1946
1952
  onDuplicateSuccess: Xe,
@@ -1956,11 +1962,11 @@ const ks = ({
1956
1962
  openDeleteConfirmation: Pn,
1957
1963
  closeDeleteConfirmation: Mn,
1958
1964
  confirmDelete: Dt
1959
- } = gs({
1960
- onDeleteFiles: P,
1965
+ } = Cr({
1966
+ onDeleteFiles: A,
1961
1967
  onDeleteSuccess: Xe
1962
- }), { handleDownloadFiles: ot } = vs({
1963
- onDownloadFiles: k,
1968
+ }), { handleDownloadFiles: ot } = gr({
1969
+ onDownloadFiles: _,
1964
1970
  customDownloadItemsAction: un,
1965
1971
  onDownloadSuccess: Xe
1966
1972
  }), {
@@ -1982,39 +1988,39 @@ const ks = ({
1982
1988
  handleUploadConflictDuplicate: Do,
1983
1989
  handleUploadConflictCancel: xo,
1984
1990
  handleUploadConflictDecideForEach: $t
1985
- } = ws({
1991
+ } = yr({
1986
1992
  onUploadFiles: Jn,
1987
- onValidateUpload: te,
1993
+ onValidateUpload: Y,
1988
1994
  maxFileSize: xe,
1989
1995
  onUploadArchive: eo,
1990
1996
  prepareUploadFileName: Te,
1991
- allowedFileTypes: Q,
1997
+ allowedFileTypes: J,
1992
1998
  validationMessages: we,
1993
1999
  uploadEnabled: fe,
1994
- currentFolder: re
2000
+ currentFolder: se
1995
2001
  }), zn = d(
1996
2002
  (E) => {
1997
2003
  le();
1998
- const K = de ?? "", oe = re?.items ?? [];
2004
+ const K = de ?? "", oe = se?.items ?? [];
1999
2005
  Ht(E, K, oe);
2000
2006
  },
2001
- [de, re, Ht, le]
2007
+ [de, se, Ht, le]
2002
2008
  ), dt = d(() => {
2003
2009
  le();
2004
- const E = de ?? "", K = re?.items ?? [];
2010
+ const E = de ?? "", K = se?.items ?? [];
2005
2011
  Ut(E, K);
2006
- }, [de, re, Ut, le]), _n = d(() => {
2012
+ }, [de, se, Ut, le]), _n = d(() => {
2007
2013
  le();
2008
- const E = de ?? "", K = re?.items ?? [];
2014
+ const E = de ?? "", K = se?.items ?? [];
2009
2015
  Gt(E, K);
2010
- }, [de, re, Gt, le]), Bn = d(() => {
2011
- le(), mt?.(de, re);
2012
- }, [mt, de, re, le]), Wn = d(() => {
2013
- le(), dn?.(de, re);
2016
+ }, [de, se, Gt, le]), Bn = d(() => {
2017
+ le(), mt?.(de, se);
2018
+ }, [mt, de, se, le]), Wn = d(() => {
2019
+ le(), dn?.(de, se);
2014
2020
  }, [
2015
2021
  dn,
2016
2022
  de,
2017
- re,
2023
+ se,
2018
2024
  le
2019
2025
  ]), bo = d(
2020
2026
  (E) => {
@@ -2034,14 +2040,14 @@ const ks = ({
2034
2040
  cancelFolderCreation: Aa,
2035
2041
  saveFolderCreation: Pa,
2036
2042
  validateFolderName: Ma
2037
- } = Fs({
2038
- currentFolder: re,
2043
+ } = Ir({
2044
+ currentFolder: se,
2039
2045
  onCreateFolder: Qn,
2040
2046
  onValidateFolderName: W,
2041
2047
  validationMessages: be,
2042
2048
  items: a
2043
2049
  }), qo = d(() => {
2044
- if (ve && Le(re, ve - 1)) {
2050
+ if (ve && Le(se, ve - 1)) {
2045
2051
  Me();
2046
2052
  return;
2047
2053
  }
@@ -2049,42 +2055,42 @@ const ks = ({
2049
2055
  }, [
2050
2056
  le,
2051
2057
  at,
2052
- re,
2058
+ se,
2053
2059
  ve,
2054
2060
  Le,
2055
2061
  Me
2056
- ]), { newActions: ka, isNewButtonVisible: Oa, isNewButtonDisabled: La } = Rs(
2062
+ ]), { newActions: ka, isNewButtonVisible: Oa, isNewButtonDisabled: La } = Tr(
2057
2063
  {
2058
2064
  newActions: h?.newActions,
2059
- currentFolder: re,
2065
+ currentFolder: se,
2060
2066
  onUploadFiles: mt ? Bn : dt,
2061
2067
  onUploadArchive: _n,
2062
2068
  onCreateFolder: qo,
2063
2069
  onCreateNewItem: Wn,
2064
2070
  isNewButtonDisabled: h?.isNewButtonDisabled
2065
2071
  }
2066
- ), za = $(() => {
2072
+ ), za = j(() => {
2067
2073
  if (wt) {
2068
- let Y = Dn;
2069
- kt || (Y = Y.filter(
2070
- (se) => se.nodeType !== O.ITEM
2071
- )), et || (Y = Y.filter(
2072
- (se) => se.nodeType !== O.FOLDER
2073
- )), lt || (Y = Y.filter((se) => !se.path.split("/").filter(Boolean).some((Xt) => Xt.startsWith("."))));
2074
- const Zt = Y.map((se) => ({
2075
- ...se,
2076
- id: se.id ?? se.path,
2077
- name: se.name ?? se.path.split("/").pop() ?? "",
2078
- updatedAt: se.updatedAt,
2079
- size: se.contentLength,
2080
- contentLength: se.contentLength,
2081
- author: se.author,
2082
- path: se.path,
2083
- nodeType: se.nodeType,
2084
- extension: se.extension,
2074
+ let q = Dn;
2075
+ kt || (q = q.filter(
2076
+ (re) => re.nodeType !== L.ITEM
2077
+ )), et || (q = q.filter(
2078
+ (re) => re.nodeType !== L.FOLDER
2079
+ )), lt || (q = q.filter((re) => !re.path.split("/").filter(Boolean).some((Xt) => Xt.startsWith("."))));
2080
+ const Zt = q.map((re) => ({
2081
+ ...re,
2082
+ id: re.id ?? re.path,
2083
+ name: re.name ?? re.path.split("/").pop() ?? "",
2084
+ updatedAt: re.updatedAt,
2085
+ size: re.contentLength,
2086
+ contentLength: re.contentLength,
2087
+ author: re.author,
2088
+ path: re.path,
2089
+ nodeType: re.nodeType,
2090
+ extension: re.extension,
2085
2091
  isTemporary: !1,
2086
- owner: se.owner,
2087
- folderId: se.folderId
2092
+ owner: re.owner,
2093
+ folderId: re.folderId
2088
2094
  }));
2089
2095
  return N && ee && Zt.unshift({
2090
2096
  id: ee,
@@ -2092,32 +2098,32 @@ const ks = ({
2092
2098
  updatedAt: void 0,
2093
2099
  author: void 0,
2094
2100
  path: de ?? "/",
2095
- nodeType: O.FOLDER,
2101
+ nodeType: L.FOLDER,
2096
2102
  extension: void 0,
2097
2103
  isTemporary: !0,
2098
2104
  owner: void 0
2099
2105
  }), Zt;
2100
2106
  }
2101
- const E = Ft(Lt).trim(), K = re?.items ?? [];
2102
- let oe = E ? rs(re) : K;
2103
- kt || (oe = oe.filter((Y) => Y.nodeType !== O.ITEM)), et || (oe = oe.filter(
2104
- (Y) => Y.nodeType !== O.FOLDER
2105
- )), lt || (oe = oe.filter((Y) => E ? !Y.path.split("/").filter(Boolean).some((se) => se.startsWith(".")) : !Ta(Y)));
2106
- const Ye = oe.map((Y) => ({
2107
- ...Y,
2108
- id: Y.id ?? Y.path,
2109
- name: Y.name ?? Y.path.split("/").pop() ?? "",
2110
- updatedAt: Y.updatedAt,
2111
- size: Y.contentLength,
2112
- author: Y.author,
2113
- path: Y.path,
2114
- nodeType: Y.nodeType,
2115
- extension: Y.extension,
2107
+ const E = Ft(Lt).trim(), K = se?.items ?? [];
2108
+ let oe = E ? ar(se) : K;
2109
+ kt || (oe = oe.filter((q) => q.nodeType !== L.ITEM)), et || (oe = oe.filter(
2110
+ (q) => q.nodeType !== L.FOLDER
2111
+ )), lt || (oe = oe.filter((q) => E ? !q.path.split("/").filter(Boolean).some((re) => re.startsWith(".")) : !Ta(q)));
2112
+ const Ye = oe.map((q) => ({
2113
+ ...q,
2114
+ id: q.id ?? q.path,
2115
+ name: q.name ?? q.path.split("/").pop() ?? "",
2116
+ updatedAt: q.updatedAt,
2117
+ size: q.contentLength,
2118
+ author: q.author,
2119
+ path: q.path,
2120
+ nodeType: q.nodeType,
2121
+ extension: q.extension,
2116
2122
  isTemporary: !1,
2117
- owner: Y.owner,
2118
- contentType: Y.contentType,
2119
- contentLength: Y.contentLength,
2120
- folderId: Y.folderId
2123
+ owner: q.owner,
2124
+ contentType: q.contentType,
2125
+ contentLength: q.contentLength,
2126
+ folderId: q.folderId
2121
2127
  }));
2122
2128
  if (N && ee && !E && Ye.unshift({
2123
2129
  id: ee,
@@ -2125,23 +2131,23 @@ const ks = ({
2125
2131
  updatedAt: void 0,
2126
2132
  author: void 0,
2127
2133
  path: de ?? "/",
2128
- nodeType: O.FOLDER,
2134
+ nodeType: L.FOLDER,
2129
2135
  extension: void 0,
2130
2136
  isTemporary: !0,
2131
2137
  owner: void 0
2132
2138
  }), !E) return Ye;
2133
2139
  const To = E.split(/\s+/).filter(Boolean);
2134
- return Ye.filter((Y) => {
2135
- if (Y.isTemporary) return !0;
2136
- const Zt = Ft(Y.name), se = Ft(Y.author), Ko = as(Y.extension);
2140
+ return Ye.filter((q) => {
2141
+ if (q.isTemporary) return !0;
2142
+ const Zt = Ft(q.name), re = Ft(q.author), Ko = or(q.extension);
2137
2143
  return To.every(
2138
- (Xt) => Zt.includes(Xt) || se.includes(Xt) || Ko.includes(Xt)
2144
+ (Xt) => Zt.includes(Xt) || re.includes(Xt) || Ko.includes(Xt)
2139
2145
  );
2140
2146
  });
2141
2147
  }, [
2142
2148
  wt,
2143
2149
  Dn,
2144
- re,
2150
+ se,
2145
2151
  Lt,
2146
2152
  lt,
2147
2153
  N,
@@ -2162,13 +2168,13 @@ const ks = ({
2162
2168
  if (!K?.items) return;
2163
2169
  const oe = /* @__PURE__ */ new Set();
2164
2170
  for (const Ye of K.items)
2165
- E.fileNames.has(Ye.name) && ds(Ye, Q, Z) && oe.add(Ye.path);
2171
+ E.fileNames.has(Ye.name) && cr(Ye, J, Z) && oe.add(Ye.path);
2166
2172
  oe.size > 0 && (it(oe), Je.current = null);
2167
2173
  }, [
2168
2174
  a,
2169
2175
  de,
2170
2176
  it,
2171
- Q,
2177
+ J,
2172
2178
  Z
2173
2179
  ]), pe(() => {
2174
2180
  !gn.current && Cn && (dt(), gn.current = !0);
@@ -2185,13 +2191,13 @@ const ks = ({
2185
2191
  [qe]
2186
2192
  ), Wa = d(
2187
2193
  (E) => {
2188
- E.nodeType === O.FOLDER ? qe(E.path) : I?.(E);
2194
+ E.nodeType === L.FOLDER ? qe(E.path) : I?.(E);
2189
2195
  },
2190
2196
  [qe, I]
2191
2197
  ), { expandedPaths: bt, setExpandedPaths: jt, collapseAll: Ha } = Sa({
2192
2198
  expandedPaths: y?.expandedPaths,
2193
2199
  onExpandedPathsChange: y?.onExpandedPathsChange
2194
- }), { additionalButtons: Ua } = Es({
2200
+ }), { additionalButtons: Ua } = Fr({
2195
2201
  collapseAll: Ha,
2196
2202
  expandedPathsLength: bt.size,
2197
2203
  additionalButtons: y?.additionalButtons
@@ -2274,16 +2280,16 @@ const ks = ({
2274
2280
  selectedFileForMetadata: Xa,
2275
2281
  openMetadataPopup: qa,
2276
2282
  closeMetadataPopup: Yo
2277
- } = Ss({ onGetInfo: G }), Ya = d(() => {
2283
+ } = Er({ onGetInfo: G }), Ya = d(() => {
2278
2284
  Yo(), De?.clearMetadata?.();
2279
- }, [Yo, De]), Ka = $(() => {
2280
- if (q)
2281
- return Zn(q);
2282
- }, [q]), Qa = {
2285
+ }, [Yo, De]), Ka = j(() => {
2286
+ if (Q)
2287
+ return Zn(Q);
2288
+ }, [Q]), Qa = {
2283
2289
  managerLabel: e,
2284
- className: s,
2290
+ className: r,
2285
2291
  items: a,
2286
- allowedFileTypes: Q,
2292
+ allowedFileTypes: J,
2287
2293
  maxSelectableFileSize: Z,
2288
2294
  rootItem: n,
2289
2295
  filesLoading: i,
@@ -2323,7 +2329,7 @@ const ks = ({
2323
2329
  selectedFiles: to,
2324
2330
  setSelectedPaths: it,
2325
2331
  clearSelection: Xe,
2326
- currentFolder: re,
2332
+ currentFolder: se,
2327
2333
  gridRows: za,
2328
2334
  handleCopyTo: xn,
2329
2335
  handleMoveTo: bn,
@@ -2342,9 +2348,9 @@ const ks = ({
2342
2348
  renamedPath: yt,
2343
2349
  renamedItem: ao,
2344
2350
  forbiddenSymbolsRegExp: Ka,
2345
- forbiddenSymbolsTooltip: J,
2346
- onRename: ro,
2347
- onRenameSave: so,
2351
+ forbiddenSymbolsTooltip: te,
2352
+ onRename: so,
2353
+ onRenameSave: ro,
2348
2354
  onRenameCancel: io,
2349
2355
  onRenameValidate: lo,
2350
2356
  getDisplayName: Ot,
@@ -2360,7 +2366,7 @@ const ks = ({
2360
2366
  handleTableRowClick: Wa,
2361
2367
  onTableFileClick: I,
2362
2368
  handleSelectionClick: S,
2363
- onGridApiChange: A,
2369
+ onGridApiChange: O,
2364
2370
  isDragging: vo,
2365
2371
  uploadError: yo,
2366
2372
  handleDragEnter: Wt,
@@ -2368,8 +2374,8 @@ const ks = ({
2368
2374
  handleDragOver: ct,
2369
2375
  handleDrop: zn,
2370
2376
  clearUploadError: kn,
2371
- onUploadFiles: j,
2372
- onValidateUpload: te,
2377
+ onUploadFiles: U,
2378
+ onValidateUpload: Y,
2373
2379
  maxFileSize: xe,
2374
2380
  isDraggingOverWindow: ze,
2375
2381
  openFileDialog: dt,
@@ -2413,7 +2419,7 @@ const ks = ({
2413
2419
  onSearchFiles: Se,
2414
2420
  searchInProgress: H,
2415
2421
  searchResults: R,
2416
- clearSearchResults: V,
2422
+ clearSearchResults: $,
2417
2423
  isSearchMode: wt,
2418
2424
  emptyStateIcon: ae,
2419
2425
  emptyStateTitle: Ve,
@@ -2422,7 +2428,7 @@ const ks = ({
2422
2428
  sharedWithMeIds: He,
2423
2429
  onFolderPopupPathChange: pt,
2424
2430
  onManagePermissions: cn,
2425
- onPreview: st,
2431
+ onPreview: rt,
2426
2432
  onOpenInNewTab: ft,
2427
2433
  previewExtensions: Xn,
2428
2434
  isRenameFileAvailable: qn,
@@ -2440,13 +2446,13 @@ const ks = ({
2440
2446
  onNewFolderDepthExceeded: Pt
2441
2447
  };
2442
2448
  return /* @__PURE__ */ o(Ia.Provider, { value: Qa, children: t });
2443
- }, Os = ({
2449
+ }, kr = ({
2444
2450
  disabledGridRowIds: e,
2445
2451
  gridRows: t,
2446
- getDisabledTooltip: s,
2452
+ getDisabledTooltip: r,
2447
2453
  getRowDisabledTooltip: a,
2448
2454
  allowedFileTypes: n,
2449
- maxSelectableFileSize: r
2455
+ maxSelectableFileSize: s
2450
2456
  }) => {
2451
2457
  const [l, i] = z(null), [p, C] = z(null);
2452
2458
  pe(() => {
@@ -2478,31 +2484,31 @@ const ks = ({
2478
2484
  g.removeEventListener("mousemove", u), g.removeEventListener("mouseleave", y);
2479
2485
  };
2480
2486
  }, [e]);
2481
- const c = $(() => {
2487
+ const c = j(() => {
2482
2488
  if (l)
2483
2489
  return t.find((u) => u.path === l);
2484
- }, [l, t]), v = $(() => {
2490
+ }, [l, t]), v = j(() => {
2485
2491
  if (c) {
2486
- if (s) {
2487
- const u = s(c);
2492
+ if (r) {
2493
+ const u = r(c);
2488
2494
  if (u) return u;
2489
2495
  }
2490
2496
  return a(
2491
2497
  c,
2492
2498
  n,
2493
- r
2499
+ s
2494
2500
  );
2495
2501
  }
2496
2502
  }, [
2497
2503
  c,
2498
- s,
2504
+ r,
2499
2505
  a,
2500
2506
  n,
2501
- r
2507
+ s
2502
2508
  ]);
2503
- return /* @__PURE__ */ o(Ie, { children: v && p && Br(
2504
- /* @__PURE__ */ X(gr, { open: !0, placement: "top", children: [
2505
- /* @__PURE__ */ o(vr, { asChild: !0, children: /* @__PURE__ */ o(
2509
+ return /* @__PURE__ */ o(Ie, { children: v && p && _s(
2510
+ /* @__PURE__ */ X(gs, { open: !0, placement: "top", children: [
2511
+ /* @__PURE__ */ o(vs, { asChild: !0, children: /* @__PURE__ */ o(
2506
2512
  "div",
2507
2513
  {
2508
2514
  className: an(
@@ -2517,23 +2523,23 @@ const ks = ({
2517
2523
  }
2518
2524
  }
2519
2525
  ) }),
2520
- /* @__PURE__ */ o(yr, { className: "max-w-[300px] rounded border border-ui-outline-primary bg-ui-popover px-3 py-1.5 text-center text-primary shadow-md fill-ui-popover", children: v })
2526
+ /* @__PURE__ */ o(ys, { className: "max-w-[300px] rounded border border-ui-outline-primary bg-ui-popover px-3 py-1.5 text-center text-primary shadow-md fill-ui-popover", children: v })
2521
2527
  ] }),
2522
2528
  document.body
2523
2529
  ) });
2524
2530
  }, ua = () => typeof window < "u" && window.innerWidth < 640, Vo = () => {
2525
2531
  const [e, t] = z(ua());
2526
2532
  return pe(() => {
2527
- const s = () => t(ua());
2528
- return window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
2533
+ const r = () => t(ua());
2534
+ return window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
2529
2535
  }, []), e;
2530
- }, Ls = ({
2536
+ }, Or = ({
2531
2537
  onClose: e,
2532
2538
  onConfirm: t,
2533
- onFolderPopupPathChange: s,
2539
+ onFolderPopupPathChange: r,
2534
2540
  setDestinationFolderPath: a,
2535
2541
  open: n,
2536
- copyLabel: r = "Copy",
2542
+ copyLabel: s = "Copy",
2537
2543
  moveLabel: l = "Move",
2538
2544
  addFolderLabel: i = "Add folder",
2539
2545
  mode: p = ge.Copy,
@@ -2552,43 +2558,43 @@ const ks = ({
2552
2558
  processDestinationFolderPath: x,
2553
2559
  ...F
2554
2560
  }) => {
2555
- const [I, S] = z(!1), [A, _] = z(!1), U = ce(null), P = Vo(), k = d((j) => {
2556
- S(j);
2557
- }, []), B = $(() => {
2558
- const j = [];
2559
- return v && j.push({
2561
+ const [I, S] = z(!1), [O, M] = z(!1), V = ce(null), A = Vo(), _ = d((U) => {
2562
+ S(U);
2563
+ }, []), B = j(() => {
2564
+ const U = [];
2565
+ return v && U.push({
2560
2566
  key: "add-folder",
2561
2567
  label: i,
2562
- icon: /* @__PURE__ */ o(Qo, { ...M, className: "text-secondary" }),
2568
+ icon: /* @__PURE__ */ o(Qo, { ...P, className: "text-secondary" }),
2563
2569
  onClick: () => {
2564
- U.current?.createFolder(), _(!1);
2570
+ V.current?.createFolder(), M(!1);
2565
2571
  }
2566
- }), c && j.push({
2572
+ }), c && U.push({
2567
2573
  key: "show-hidden-files",
2568
2574
  label: C,
2569
- icon: /* @__PURE__ */ o(So, { ...M, className: "text-secondary" }),
2575
+ icon: /* @__PURE__ */ o(So, { ...P, className: "text-secondary" }),
2570
2576
  onClick: () => {
2571
- S((te) => !te), _(!1);
2577
+ S((Y) => !Y), M(!1);
2572
2578
  }
2573
- }), j;
2579
+ }), U;
2574
2580
  }, [
2575
2581
  i,
2576
2582
  C,
2577
2583
  c,
2578
2584
  v
2579
- ]), L = d(
2580
- (j) => {
2581
- if (j) {
2582
- let te = x ? x(j) : j;
2583
- s?.(te), a?.(te);
2585
+ ]), k = d(
2586
+ (U) => {
2587
+ if (U) {
2588
+ let Y = x ? x(U) : U;
2589
+ r?.(Y), a?.(Y);
2584
2590
  }
2585
2591
  },
2586
2592
  [
2587
- s,
2593
+ r,
2588
2594
  a,
2589
2595
  x
2590
2596
  ]
2591
- ), q = p === ge.Copy ? "Copy to" : "Move to", J = $(() => !h || !b ? !1 : b === h, [h, b]);
2597
+ ), Q = p === ge.Copy ? "Copy to" : "Move to", te = j(() => !h || !b ? !1 : b === h, [h, b]);
2592
2598
  return /* @__PURE__ */ o(
2593
2599
  _o,
2594
2600
  {
@@ -2599,18 +2605,18 @@ const ks = ({
2599
2605
  size: Gn.Lg,
2600
2606
  className: "md:!h-[800px] !bg-layer-sunken",
2601
2607
  footer: /* @__PURE__ */ X("div", { className: "flex justify-between items-center gap-2 p-4 md:px-6", children: [
2602
- /* @__PURE__ */ o("div", { className: "flex items-center gap-4 min-w-0", children: P ? /* @__PURE__ */ o(
2608
+ /* @__PURE__ */ o("div", { className: "flex items-center gap-4 min-w-0", children: A ? /* @__PURE__ */ o(
2603
2609
  ht,
2604
2610
  {
2605
2611
  items: B,
2606
- open: A,
2607
- onOpenChange: _,
2612
+ open: O,
2613
+ onOpenChange: M,
2608
2614
  children: /* @__PURE__ */ o(
2609
2615
  Et,
2610
2616
  {
2611
2617
  size: jn.Large,
2612
2618
  "aria-label": "More options",
2613
- icon: /* @__PURE__ */ o(ln, { ...M })
2619
+ icon: /* @__PURE__ */ o(ln, { ...P })
2614
2620
  }
2615
2621
  )
2616
2622
  }
@@ -2620,48 +2626,48 @@ const ks = ({
2620
2626
  {
2621
2627
  label: i,
2622
2628
  appearance: ga.Ghost,
2623
- iconBefore: /* @__PURE__ */ o(Qo, { ...M }),
2629
+ iconBefore: /* @__PURE__ */ o(Qo, { ...P }),
2624
2630
  onClick: () => {
2625
- U.current?.createFolder();
2631
+ V.current?.createFolder();
2626
2632
  }
2627
2633
  }
2628
2634
  ),
2629
- v && c && /* @__PURE__ */ o("div", { className: "w-px h-[26px] bg-controls-disable-accent my-2" }),
2635
+ v && c && /* @__PURE__ */ o("div", { className: "w-px h-[26px] bg-control-disable my-2" }),
2630
2636
  c && /* @__PURE__ */ o(Ie, { children: /* @__PURE__ */ o("div", { className: "inline-flex items-center cursor-pointer", children: /* @__PURE__ */ o(
2631
2637
  va,
2632
2638
  {
2633
- label: C,
2639
+ labelProps: { label: C },
2634
2640
  isOn: I,
2635
- onChange: k,
2636
- switchId: "hidden-files-switch-modal"
2641
+ onChange: _,
2642
+ id: "hidden-files-switch-modal"
2637
2643
  }
2638
2644
  ) }) })
2639
2645
  ] }) }),
2640
2646
  /* @__PURE__ */ X("div", { className: "flex space-x-4 items-center", children: [
2641
- /* @__PURE__ */ o(rn, { onClick: e, label: "Cancel" }),
2642
- J ? /* @__PURE__ */ o(Vn, { tooltip: D, children: /* @__PURE__ */ o(
2647
+ /* @__PURE__ */ o(sn, { onClick: e, label: "Cancel" }),
2648
+ te ? /* @__PURE__ */ o(Vn, { tooltip: D, children: /* @__PURE__ */ o(
2643
2649
  on,
2644
2650
  {
2645
2651
  onClick: t,
2646
- label: p === "copy" ? r : l,
2647
- disabled: J,
2648
- "aria-disabled": J
2652
+ label: p === "copy" ? s : l,
2653
+ disabled: te,
2654
+ "aria-disabled": te
2649
2655
  }
2650
2656
  ) }) : /* @__PURE__ */ o(
2651
2657
  on,
2652
2658
  {
2653
2659
  onClick: t,
2654
- label: p === "copy" ? r : l
2660
+ label: p === "copy" ? s : l
2655
2661
  }
2656
2662
  )
2657
2663
  ] })
2658
2664
  ] }),
2659
- header: m ?? q,
2660
- ariaLabel: q,
2665
+ header: m ?? Q,
2666
+ ariaLabel: Q,
2661
2667
  children: /* @__PURE__ */ X("div", { className: "bg-layer-sunken h-full flex flex-col", children: [
2662
- T && /* @__PURE__ */ o("div", { className: "px-6 mb-4 pt-4", children: /* @__PURE__ */ o(wr, { ...T }) }),
2668
+ T && /* @__PURE__ */ o("div", { className: "px-6 mb-4 pt-4", children: /* @__PURE__ */ o(ws, { ...T }) }),
2663
2669
  /* @__PURE__ */ o("div", { className: "flex-1 min-h-0", children: /* @__PURE__ */ o(
2664
- ui,
2670
+ di,
2665
2671
  {
2666
2672
  ...F,
2667
2673
  gridClassName: "size-full",
@@ -2669,10 +2675,10 @@ const ks = ({
2669
2675
  F.className,
2670
2676
  "bg-layer-sunken h-full flex pt-0"
2671
2677
  ),
2672
- actionsRef: U,
2678
+ actionsRef: V,
2673
2679
  path: h,
2674
2680
  showHiddenFiles: I,
2675
- onShowHiddenFilesChange: k,
2681
+ onShowHiddenFilesChange: _,
2676
2682
  treeOptions: {
2677
2683
  ...F.treeOptions,
2678
2684
  collapsed: f,
@@ -2686,7 +2692,7 @@ const ks = ({
2686
2692
  },
2687
2693
  onUploadFiles: u,
2688
2694
  onValidateUpload: y,
2689
- onPathChange: L,
2695
+ onPathChange: k,
2690
2696
  maxFileSize: g
2691
2697
  }
2692
2698
  ) })
@@ -2694,31 +2700,31 @@ const ks = ({
2694
2700
  }
2695
2701
  );
2696
2702
  };
2697
- function zs({
2703
+ function Lr({
2698
2704
  actions: e,
2699
2705
  direction: t = tn.Normal,
2700
- moreButtonWidth: s = ya,
2706
+ moreButtonWidth: r = ya,
2701
2707
  actionsGap: a = 8,
2702
2708
  containerPadding: n = 8,
2703
- dependencies: r = []
2709
+ dependencies: s = []
2704
2710
  }) {
2705
2711
  const l = ce(null), i = ce(null), p = ce(null), C = ce(null), c = ce([]), [v, u] = z(0), y = d(
2706
2712
  (b, D) => {
2707
- const h = p.current?.offsetWidth ?? 0, f = C.current?.offsetWidth ?? 0, T = h + f, F = D.getBoundingClientRect().width - T - s - a * 2 - n * 2;
2713
+ const h = p.current?.offsetWidth ?? 0, f = C.current?.offsetWidth ?? 0, T = h + f, F = D.getBoundingClientRect().width - T - r - a * 2 - n * 2;
2708
2714
  let I = 0, S = 0;
2709
2715
  if (t === tn.Reverse)
2710
- for (let A = b.length - 1; A >= 0 && (I += b[A] + a, !(I > F)); A--)
2716
+ for (let O = b.length - 1; O >= 0 && (I += b[O] + a, !(I > F)); O--)
2711
2717
  S++;
2712
2718
  else
2713
- for (const A of b) {
2714
- if (I += A + a, I > F) break;
2719
+ for (const O of b) {
2720
+ if (I += O + a, I > F) break;
2715
2721
  S++;
2716
2722
  }
2717
2723
  u(S);
2718
2724
  },
2719
- [a, n, t, s]
2725
+ [a, n, t, r]
2720
2726
  );
2721
- pr(
2727
+ ps(
2722
2728
  () => {
2723
2729
  if (!i.current || !l.current) return;
2724
2730
  const D = Array.from(i.current.children).map(
@@ -2728,7 +2734,7 @@ function zs({
2728
2734
  },
2729
2735
  // Re-measure when the action list or layout-affecting deps (e.g. isMobile) change
2730
2736
  // eslint-disable-next-line react-hooks/exhaustive-deps
2731
- [e, y, ...r]
2737
+ [e, y, ...s]
2732
2738
  ), pe(() => {
2733
2739
  if (!l.current) return;
2734
2740
  let b = null;
@@ -2746,7 +2752,7 @@ function zs({
2746
2752
  e.length,
2747
2753
  y,
2748
2754
  // eslint-disable-next-line react-hooks/exhaustive-deps
2749
- ...r
2755
+ ...s
2750
2756
  ]);
2751
2757
  const g = t === tn.Reverse ? e.slice(0, e.length - v) : e.slice(v);
2752
2758
  return {
@@ -2760,17 +2766,17 @@ function zs({
2760
2766
  }
2761
2767
  };
2762
2768
  }
2763
- const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCount: a }) => {
2769
+ const zr = 12, _r = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, actions: r, selectedCount: a }) => {
2764
2770
  const n = Vo(), {
2765
- refs: { containerRef: r, leftSectionRef: l, measureRef: i },
2771
+ refs: { containerRef: s, leftSectionRef: l, measureRef: i },
2766
2772
  visibleActions: p,
2767
2773
  hiddenActions: C
2768
- } = zs({
2769
- actions: s,
2774
+ } = Lr({
2775
+ actions: r,
2770
2776
  direction: tn.Reverse,
2771
2777
  dependencies: [n],
2772
- actionsGap: _s,
2773
- containerPadding: Bs
2778
+ actionsGap: zr,
2779
+ containerPadding: _r
2774
2780
  }), c = e(a);
2775
2781
  return /* @__PURE__ */ X(Ie, { children: [
2776
2782
  /* @__PURE__ */ o(
@@ -2778,13 +2784,13 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
2778
2784
  {
2779
2785
  ref: i,
2780
2786
  className: "absolute top-0 left-0 invisible pointer-events-none overflow-hidden whitespace-nowrap flex gap-3",
2781
- children: s.map(({ key: v, icon: u, title: y }) => /* @__PURE__ */ o(rn, { iconBefore: u, label: y }, v))
2787
+ children: r.map(({ key: v, icon: u, title: y }) => /* @__PURE__ */ o(sn, { iconBefore: u, label: y }, v))
2782
2788
  }
2783
2789
  ),
2784
2790
  /* @__PURE__ */ X(
2785
2791
  "div",
2786
2792
  {
2787
- ref: r,
2793
+ ref: s,
2788
2794
  className: "rounded bg-layer-raised p-2 flex justify-between items-center w-full",
2789
2795
  role: "toolbar",
2790
2796
  "aria-label": "File bulk actions",
@@ -2796,7 +2802,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
2796
2802
  onClick: t,
2797
2803
  textClassName: "text-accent whitespace-nowrap",
2798
2804
  appearance: ga.Ghost,
2799
- iconBefore: /* @__PURE__ */ o(ar, { ...M })
2805
+ iconBefore: /* @__PURE__ */ o(as, { ...P })
2800
2806
  }
2801
2807
  ) }),
2802
2808
  /* @__PURE__ */ X("div", { className: "flex flex-1 w-full gap-3 items-center justify-end", children: [
@@ -2809,14 +2815,14 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
2809
2815
  Et,
2810
2816
  {
2811
2817
  className: "h-[38px]",
2812
- icon: /* @__PURE__ */ o(ln, { ...M })
2818
+ icon: /* @__PURE__ */ o(ln, { ...P })
2813
2819
  }
2814
2820
  )
2815
2821
  }
2816
2822
  ),
2817
2823
  p.map(
2818
2824
  ({ key: v, icon: u, tooltip: y, title: g, onClick: m, disabled: b }) => /* @__PURE__ */ o(
2819
- rn,
2825
+ sn,
2820
2826
  {
2821
2827
  className: "!p-[9px]",
2822
2828
  iconBefore: u,
@@ -2833,13 +2839,13 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
2833
2839
  }
2834
2840
  )
2835
2841
  ] });
2836
- }, Hs = ({
2842
+ }, Wr = ({
2837
2843
  open: e,
2838
2844
  itemsToDelete: t,
2839
- onClose: s,
2845
+ onClose: r,
2840
2846
  onConfirm: a,
2841
2847
  cancelLabel: n = "Cancel",
2842
- confirmLabel: r = "Delete",
2848
+ confirmLabel: s = "Delete",
2843
2849
  titleRenderer: l,
2844
2850
  contentRenderer: i
2845
2851
  }) => {
@@ -2869,26 +2875,26 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
2869
2875
  ] }) })
2870
2876
  ] }), u = i?.(p) || v;
2871
2877
  return /* @__PURE__ */ o(
2872
- Nr,
2878
+ Ns,
2873
2879
  {
2874
2880
  open: e,
2875
2881
  header: c,
2876
2882
  ariaLabel: C,
2877
- confirmLabel: r,
2883
+ confirmLabel: s,
2878
2884
  cancelLabel: n,
2879
- variant: Dr.Danger,
2880
- onClose: s,
2885
+ variant: Ds.Danger,
2886
+ onClose: r,
2881
2887
  onConfirm: a,
2882
2888
  children: u
2883
2889
  }
2884
2890
  );
2885
- }, ha = (e) => e.split("/").map((t) => t.trim()).filter(Boolean), Us = "w-full flex items-center justify-between gap-4", Gs = "min-w-0 h-[38px] flex-1 overflow-hidden bg-layer-raised px-3 flex items-center rounded", Vs = "w-[260px]", $s = ({
2891
+ }, ha = (e) => e.split("/").map((t) => t.trim()).filter(Boolean), Hr = "w-full flex items-center justify-between gap-4", Ur = "min-w-0 h-[38px] flex-1 overflow-hidden bg-layer-raised px-3 flex items-center rounded", Gr = "w-[260px]", Vr = ({
2886
2892
  ariaLabel: e = "Breadcrumb",
2887
2893
  labelClassName: t,
2888
- onItemClick: s,
2894
+ onItemClick: r,
2889
2895
  path: a,
2890
2896
  makeHref: n,
2891
- rootItemPath: r,
2897
+ rootItemPath: s,
2892
2898
  rootItemLabel: l,
2893
2899
  breadcrumbsHiddenPathPart: i,
2894
2900
  className: p,
@@ -2903,79 +2909,81 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
2903
2909
  searchContainerClassName: D,
2904
2910
  isCompactView: h = !1
2905
2911
  }) => {
2906
- const f = $(() => {
2912
+ const f = j(() => {
2907
2913
  if (!a) return;
2908
- let A = ha(a);
2909
- const _ = [...A];
2910
- let U = 0;
2914
+ let M = ha(a);
2915
+ const V = [...M];
2916
+ let A = 0;
2911
2917
  if (i) {
2912
- const k = ha(i);
2913
- if (k.length) {
2914
- const B = A.findIndex(
2915
- (L, q) => k.every((J, j) => A[q + j] === J)
2918
+ const B = ha(i);
2919
+ if (B.length) {
2920
+ const k = M.findIndex(
2921
+ (Q, te) => B.every((U, Y) => M[te + Y] === U)
2916
2922
  );
2917
- B !== -1 && (U = k.length, A = [
2918
- ...A.slice(0, B),
2919
- ...A.slice(B + k.length)
2923
+ k !== -1 && (A = B.length, M = [
2924
+ ...M.slice(0, k),
2925
+ ...M.slice(k + B.length)
2920
2926
  ]);
2921
2927
  }
2922
2928
  }
2923
- if (!A.length) return [{ label: "/" }];
2924
- const P = A.map((k, B) => {
2925
- const L = B < A.length - U ? B : B + U, q = _.slice(0, L + 1), J = typeof n == "function" ? n(q, L) : void 0;
2929
+ if (!M.length) return [{ label: "/" }];
2930
+ const _ = M.map((B, k) => {
2931
+ const Q = k < M.length - A ? k : k + A, te = V.slice(0, Q + 1), U = typeof n == "function" ? n(te, Q) : void 0;
2926
2932
  return {
2927
- label: k,
2928
- href: J,
2929
- onClick: s ? (j) => {
2930
- j.preventDefault(), s(J);
2933
+ label: B,
2934
+ href: U,
2935
+ onClick: r ? (Y) => {
2936
+ Y.preventDefault(), r(U);
2931
2937
  } : void 0
2932
2938
  };
2933
2939
  });
2934
- if (r && l) {
2935
- const k = r.split("/").filter(Boolean), B = a.split("/").filter(Boolean);
2936
- if (k.every(
2937
- (q, J) => B[J] === q
2938
- ) && P.length > 0) {
2939
- const q = P.slice(k.length);
2940
+ if (s && l) {
2941
+ const B = s.split("/").filter(Boolean), k = a.split("/").filter(Boolean);
2942
+ if (B.every(
2943
+ (te, U) => k[U] === te
2944
+ ) && _.length > 0) {
2945
+ const te = _.slice(B.length);
2940
2946
  return [
2941
2947
  {
2942
2948
  label: l,
2943
- href: r,
2944
- onClick: s ? (J) => {
2945
- J.preventDefault(), s(r);
2949
+ href: s,
2950
+ onClick: r ? (U) => {
2951
+ U.preventDefault(), r(s);
2946
2952
  } : void 0
2947
2953
  },
2948
- ...q
2954
+ ...te
2949
2955
  ];
2950
2956
  }
2951
2957
  }
2952
- return P;
2958
+ return _;
2953
2959
  }, [
2954
2960
  a,
2955
2961
  i,
2956
- r,
2962
+ s,
2957
2963
  l,
2958
2964
  n,
2959
- s
2960
- ]), [T, x] = z(!1), F = d(() => {
2965
+ r
2966
+ ]), [T, x] = z(!1), F = (M) => {
2967
+ m?.(M ?? "");
2968
+ }, I = d(() => {
2961
2969
  if (h && !T) {
2962
2970
  x(!0);
2963
- const A = document.getElementById(u);
2964
- A && A.focus();
2971
+ const M = document.getElementById(u);
2972
+ M && M.focus();
2965
2973
  }
2966
- }, [u, T, h]), I = d(() => {
2974
+ }, [u, T, h]), S = d(() => {
2967
2975
  (!v || String(v).trim() === "") && m?.("");
2968
- }, [v, m]), S = d(() => h && T ? /* @__PURE__ */ o(
2969
- rn,
2976
+ }, [v, m]), O = d(() => h && T ? /* @__PURE__ */ o(
2977
+ sn,
2970
2978
  {
2971
2979
  className: "!p-[9px]",
2972
- iconBefore: /* @__PURE__ */ o(rr, { ...M }),
2980
+ iconBefore: /* @__PURE__ */ o(ss, { ...P }),
2973
2981
  onClick: () => {
2974
2982
  x(!1), m?.("");
2975
2983
  }
2976
2984
  }
2977
- ) : /* @__PURE__ */ o("div", { className: Gs, children: /* @__PURE__ */ o(
2978
- xr,
2985
+ ) : /* @__PURE__ */ o("div", { className: Ur, children: /* @__PURE__ */ o(
2986
+ xs,
2979
2987
  {
2980
2988
  pathItems: f,
2981
2989
  ariaLabel: e,
@@ -2995,7 +3003,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
2995
3003
  "div",
2996
3004
  {
2997
3005
  className: Ee(
2998
- Us,
3006
+ Hr,
2999
3007
  {
3000
3008
  "gap-3": h
3001
3009
  },
@@ -3003,25 +3011,25 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3003
3011
  ),
3004
3012
  "aria-label": "navigation-panel",
3005
3013
  children: [
3006
- S(),
3014
+ O(),
3007
3015
  c && /* @__PURE__ */ o(
3008
3016
  "div",
3009
3017
  {
3010
- className: Ee(Vs, {
3018
+ className: Ee(Gr, {
3011
3019
  "w-[40px]": h && !T,
3012
3020
  "w-full": h && T
3013
3021
  }),
3014
3022
  role: "search",
3015
3023
  "aria-label": "Search",
3016
- onClick: F,
3024
+ onClick: I,
3017
3025
  children: /* @__PURE__ */ o(
3018
- br,
3026
+ bs,
3019
3027
  {
3020
3028
  id: u,
3021
3029
  value: v ?? "",
3022
- onChange: m,
3030
+ onChange: F,
3023
3031
  disabled: y,
3024
- onBlur: I,
3032
+ onBlur: S,
3025
3033
  invalid: g,
3026
3034
  className: b,
3027
3035
  wrapperClassName: h && !T ? "pl-2.5" : "",
@@ -3033,15 +3041,15 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3033
3041
  ]
3034
3042
  }
3035
3043
  );
3036
- }, js = ({
3044
+ }, $r = ({
3037
3045
  tabs: e,
3038
3046
  activeTab: t,
3039
- onTabChange: s,
3047
+ onTabChange: r,
3040
3048
  areHiddenFilesVisible: a,
3041
3049
  onToggleHiddenFiles: n,
3042
- isNewButtonVisible: r,
3050
+ isNewButtonVisible: s,
3043
3051
  isNewButtonDisabled: l,
3044
- newButtonVariant: i = Tr.Primary,
3052
+ newButtonVariant: i = Ts.Primary,
3045
3053
  newButtonDropdownItems: p = [],
3046
3054
  newButtonLabel: C = "New",
3047
3055
  hiddenFilesSwitcherLabel: c = "Hidden files",
@@ -3050,11 +3058,11 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3050
3058
  showHiddenFilesToggle: y = !0,
3051
3059
  disabledNewButtonTooltip: g
3052
3060
  }) => {
3053
- const m = Vo(), b = $(() => [
3061
+ const m = Vo(), b = j(() => [
3054
3062
  {
3055
3063
  key: "hidden-files-switch",
3056
3064
  label: a ? u : v,
3057
- icon: a ? /* @__PURE__ */ o(sr, { ...M, className: "text-secondary" }) : /* @__PURE__ */ o(So, { ...M, className: "text-secondary" }),
3065
+ icon: a ? /* @__PURE__ */ o(rs, { ...P, className: "text-secondary" }) : /* @__PURE__ */ o(So, { ...P, className: "text-secondary" }),
3058
3066
  onClick: () => n?.(!a)
3059
3067
  }
3060
3068
  ], [
@@ -3062,27 +3070,24 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3062
3070
  u,
3063
3071
  v,
3064
3072
  n
3065
- ]), D = () => e && t && s ? /* @__PURE__ */ o(
3066
- Rr,
3073
+ ]), D = () => e && t && r ? /* @__PURE__ */ o(
3074
+ Rs,
3067
3075
  {
3068
3076
  tabs: e,
3069
- activeTab: t,
3070
- onClick: (T) => s(T),
3071
- screenThreshold: Ir.Tablet,
3072
- smallScreenContainerClassName: "w-fit bg-transparent h-[38px] overflow-hidden",
3073
- smallScreenDropdownItemClassName: "px-3 h-[38px]"
3077
+ activeTabId: t,
3078
+ onTabChange: (T) => r(T)
3074
3079
  }
3075
3080
  ) : null, h = () => /* @__PURE__ */ X(Ie, { children: [
3076
3081
  y && /* @__PURE__ */ o(
3077
3082
  va,
3078
3083
  {
3079
- switchId: "hidden-files-switch",
3080
- label: c,
3084
+ id: "hidden-files-switch",
3085
+ labelProps: { label: c },
3081
3086
  isOn: a,
3082
3087
  onChange: n
3083
3088
  }
3084
3089
  ),
3085
- r && /* @__PURE__ */ o(
3090
+ s && /* @__PURE__ */ o(
3086
3091
  Vn,
3087
3092
  {
3088
3093
  tooltip: l && g ? g : void 0,
@@ -3112,7 +3117,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3112
3117
  )
3113
3118
  }
3114
3119
  ),
3115
- r ? /* @__PURE__ */ o(
3120
+ s ? /* @__PURE__ */ o(
3116
3121
  Vn,
3117
3122
  {
3118
3123
  tooltip: l && g ? g : void 0,
@@ -3132,13 +3137,13 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3132
3137
  /* @__PURE__ */ o("div", { className: "flex-1 min-w-0", children: D() }),
3133
3138
  /* @__PURE__ */ o("div", { className: "flex gap-2 shrink-0 items-center", children: m ? f() : h() })
3134
3139
  ] });
3135
- }, Zs = 100, Qt = 16, Ue = "text-secondary", Hn = "text-primary min-w-0", Xs = "text-primary break-words min-w-0", Jt = "bg-layer-sunken", qs = ({
3140
+ }, jr = 100, Qt = 16, Ue = "text-secondary", Hn = "text-primary min-w-0", Zr = "text-primary break-words min-w-0", Jt = "bg-layer-sunken", Xr = ({
3136
3141
  open: e,
3137
3142
  onClose: t,
3138
- fileMetadata: s,
3143
+ fileMetadata: r,
3139
3144
  loading: a = !1,
3140
3145
  header: n = "Information",
3141
- nameLabel: r = "Name:",
3146
+ nameLabel: s = "Name:",
3142
3147
  pathLabel: l = "Path:",
3143
3148
  modifiedDateLabel: i = "Modified Date:",
3144
3149
  sizeLabel: p = "Size:",
@@ -3157,9 +3162,9 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3157
3162
  "div",
3158
3163
  {
3159
3164
  className: "grid gap-4 items-center dial-small-text",
3160
- style: { gridTemplateColumns: `${Zs}px 1fr` },
3165
+ style: { gridTemplateColumns: `${jr}px 1fr` },
3161
3166
  children: a ? /* @__PURE__ */ X(Ie, { children: [
3162
- /* @__PURE__ */ o("div", { className: Ue, children: r }),
3167
+ /* @__PURE__ */ o("div", { className: Ue, children: s }),
3163
3168
  /* @__PURE__ */ o(
3164
3169
  qt,
3165
3170
  {
@@ -3209,15 +3214,15 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3209
3214
  className: Jt
3210
3215
  }
3211
3216
  )
3212
- ] }) : s ? /* @__PURE__ */ X(Ie, { children: [
3213
- /* @__PURE__ */ o("div", { className: Ue, children: r }),
3214
- /* @__PURE__ */ o("div", { className: Hn, children: /* @__PURE__ */ o(Tt, { text: s.name }) }),
3217
+ ] }) : r ? /* @__PURE__ */ X(Ie, { children: [
3218
+ /* @__PURE__ */ o("div", { className: Ue, children: s }),
3219
+ /* @__PURE__ */ o("div", { className: Hn, children: /* @__PURE__ */ o(Tt, { text: r.name }) }),
3215
3220
  /* @__PURE__ */ o("div", { className: Ue, children: i }),
3216
3221
  /* @__PURE__ */ o("div", { className: Hn, children: /* @__PURE__ */ o(
3217
3222
  Tt,
3218
3223
  {
3219
- text: ss(
3220
- s.updatedAt,
3224
+ text: sr(
3225
+ r.updatedAt,
3221
3226
  c,
3222
3227
  v
3223
3228
  )
@@ -3227,55 +3232,55 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3227
3232
  /* @__PURE__ */ o("div", { className: Hn, children: /* @__PURE__ */ o(
3228
3233
  Tt,
3229
3234
  {
3230
- text: sn(s.contentLength)
3235
+ text: rn(r.contentLength)
3231
3236
  }
3232
3237
  ) }),
3233
3238
  /* @__PURE__ */ o("div", { className: Ue, children: C }),
3234
- /* @__PURE__ */ o("div", { className: Hn, children: /* @__PURE__ */ o(Tt, { text: s.author || "—" }) }),
3239
+ /* @__PURE__ */ o("div", { className: Hn, children: /* @__PURE__ */ o(Tt, { text: r.author || "—" }) }),
3235
3240
  /* @__PURE__ */ o("div", { className: Ue, children: l }),
3236
- /* @__PURE__ */ o("div", { className: Xs, children: decodeURIComponent(s.path) })
3241
+ /* @__PURE__ */ o("div", { className: Zr, children: decodeURIComponent(r.path) })
3237
3242
  ] }) : null
3238
3243
  }
3239
3244
  ) })
3240
3245
  }
3241
- ), Ys = {
3246
+ ), qr = {
3242
3247
  size: 10,
3243
3248
  stroke: 2
3244
- }, Ks = 26, en = "__new_folder", Qs = ({
3249
+ }, Yr = 26, en = "__new_folder", Kr = ({
3245
3250
  name: e,
3246
3251
  type: t,
3247
- shared: s = !1,
3252
+ shared: r = !1,
3248
3253
  loading: a = !1,
3249
3254
  sharedIndicatorClassName: n,
3250
- sharedIndicatorTooltip: r,
3255
+ sharedIndicatorTooltip: s,
3251
3256
  fileExtension: l,
3252
3257
  ...i
3253
3258
  }) => {
3254
3259
  const p = (C) => /* @__PURE__ */ X("span", { className: "inline-flex relative text-secondary", role: "img", children: [
3255
3260
  C,
3256
- s && /* @__PURE__ */ o("span", { className: "absolute -bottom-0.5 -left-0.5", children: /* @__PURE__ */ o(
3261
+ r && /* @__PURE__ */ o("span", { className: "absolute -bottom-0.5 -left-0.5", children: /* @__PURE__ */ o(
3257
3262
  na,
3258
3263
  {
3259
3264
  className: n,
3260
- sharedIndicatorTooltip: r
3265
+ sharedIndicatorTooltip: s
3261
3266
  }
3262
3267
  ) })
3263
3268
  ] });
3264
3269
  if (a)
3265
- return p(/* @__PURE__ */ o(Sr, {}));
3270
+ return p(/* @__PURE__ */ o(Es, {}));
3266
3271
  if (t === We.File) {
3267
3272
  const C = l || (e.includes(".") ? e.split(".").pop() : void 0);
3268
3273
  return /* @__PURE__ */ o(
3269
- Fr,
3274
+ Is,
3270
3275
  {
3271
3276
  ...i,
3272
3277
  extension: C ?? "",
3273
3278
  className: "text-secondary",
3274
- indicator: s ? /* @__PURE__ */ o(
3279
+ indicator: r ? /* @__PURE__ */ o(
3275
3280
  na,
3276
3281
  {
3277
3282
  className: n,
3278
- sharedIndicatorTooltip: r
3283
+ sharedIndicatorTooltip: s
3279
3284
  }
3280
3285
  ) : null,
3281
3286
  label: "File type icon"
@@ -3284,27 +3289,27 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3284
3289
  }
3285
3290
  return t === We.Folder ? p(
3286
3291
  /* @__PURE__ */ o(
3287
- Er,
3292
+ Fs,
3288
3293
  {
3289
3294
  icon: /* @__PURE__ */ o(
3290
3295
  pa,
3291
3296
  {
3292
3297
  className: i.className,
3293
- size: i.size ?? M.size,
3294
- stroke: i.stroke ?? M.stroke
3298
+ size: i.size ?? P.size,
3299
+ stroke: i.stroke ?? P.stroke
3295
3300
  }
3296
3301
  ),
3297
3302
  className: "inline-block align-middle"
3298
3303
  }
3299
3304
  )
3300
3305
  ) : null;
3301
- }, Js = ({
3306
+ }, Qr = ({
3302
3307
  name: e,
3303
3308
  type: t,
3304
- elementId: s,
3309
+ elementId: r,
3305
3310
  loading: a = !1,
3306
3311
  shared: n = !1,
3307
- iconClassName: r,
3312
+ iconClassName: s,
3308
3313
  iconIndicator: l,
3309
3314
  iconLabel: i,
3310
3315
  iconSize: p,
@@ -3329,29 +3334,29 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3329
3334
  ""
3330
3335
  );
3331
3336
  return /* @__PURE__ */ o(Vn, { tooltip: x, children: y || (T ? /* @__PURE__ */ o(
3332
- lr,
3337
+ ls,
3333
3338
  {
3334
- ...M,
3339
+ ...P,
3335
3340
  className: "text-warning-icon",
3336
3341
  "aria-label": "warning"
3337
3342
  }
3338
3343
  ) : /* @__PURE__ */ o(
3339
- ir,
3344
+ is,
3340
3345
  {
3341
- ...M,
3346
+ ...P,
3342
3347
  className: "text-error",
3343
3348
  "aria-label": "alert"
3344
3349
  }
3345
3350
  )) });
3346
3351
  };
3347
- return /* @__PURE__ */ X("div", { className: "flex gap-2 items-center", ...Ar, children: [
3352
+ return /* @__PURE__ */ X("div", { className: "flex gap-2 items-center", ...Ss, children: [
3348
3353
  /* @__PURE__ */ o(
3349
- Qs,
3354
+ Kr,
3350
3355
  {
3351
3356
  name: e,
3352
3357
  type: t,
3353
3358
  label: i,
3354
- className: r,
3359
+ className: s,
3355
3360
  indicator: l,
3356
3361
  size: p,
3357
3362
  stroke: C,
@@ -3363,13 +3368,13 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3363
3368
  }
3364
3369
  ),
3365
3370
  /* @__PURE__ */ o(
3366
- Pr,
3371
+ As,
3367
3372
  {
3368
3373
  containerClassName: Ee(
3369
3374
  "!h-5 !py-[1px] !pl-[7px] pr-[7px]",
3370
3375
  u
3371
3376
  ),
3372
- id: s,
3377
+ id: r,
3373
3378
  value: e,
3374
3379
  onChange: m,
3375
3380
  invalid: c,
@@ -3381,10 +3386,10 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3381
3386
  }, $n = ({
3382
3387
  name: e,
3383
3388
  type: t,
3384
- elementId: s,
3389
+ elementId: r,
3385
3390
  editing: a = !1,
3386
3391
  loading: n = !1,
3387
- creating: r = !1,
3392
+ creating: s = !1,
3388
3393
  shared: l = !1,
3389
3394
  iconSize: i = ya,
3390
3395
  validate: p,
@@ -3401,10 +3406,10 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3401
3406
  forbiddenSymbolsTooltip: f,
3402
3407
  ...T
3403
3408
  }) => {
3404
- const { value: x, invalid: F, invalidMessage: I, onChange: S, inputRef: A } = Mr({
3409
+ const { value: x, invalid: F, invalidMessage: I, onChange: S, inputRef: O } = Ps({
3405
3410
  value: e,
3406
3411
  isEditing: a,
3407
- isCreating: r,
3412
+ isCreating: s,
3408
3413
  isLoading: n,
3409
3414
  onValidate: p,
3410
3415
  onCancel: v,
@@ -3412,15 +3417,15 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3412
3417
  onCreateFolderCancel: u,
3413
3418
  onCreateFolderSave: y
3414
3419
  });
3415
- if (!a && !r) {
3416
- const _ = Go(
3420
+ if (!a && !s) {
3421
+ const M = Go(
3417
3422
  {
3418
3423
  name: e,
3419
3424
  isFolder: t === We.Folder
3420
3425
  },
3421
3426
  h,
3422
3427
  f
3423
- ), U = !!_;
3428
+ ), V = !!M;
3424
3429
  return t === We.Folder ? /* @__PURE__ */ o(
3425
3430
  Oo,
3426
3431
  {
@@ -3431,8 +3436,8 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3431
3436
  className: "max-w-[428px] truncate",
3432
3437
  sharedIndicatorClassName: m,
3433
3438
  hideTooltip: D,
3434
- isInvalidName: U,
3435
- tooltipContent: _
3439
+ isInvalidName: V,
3440
+ tooltipContent: M
3436
3441
  }
3437
3442
  ) : /* @__PURE__ */ o(
3438
3443
  Lo,
@@ -3444,20 +3449,20 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3444
3449
  iconSize: i,
3445
3450
  sharedIndicatorClassName: m,
3446
3451
  hideTooltip: D,
3447
- isInvalidName: U,
3448
- tooltipContent: _
3452
+ isInvalidName: V,
3453
+ tooltipContent: M
3449
3454
  }
3450
3455
  );
3451
3456
  }
3452
3457
  return /* @__PURE__ */ o(
3453
- Js,
3458
+ Qr,
3454
3459
  {
3455
3460
  type: t,
3456
3461
  name: x,
3457
- elementId: s,
3462
+ elementId: r,
3458
3463
  inputInvalid: F,
3459
3464
  inputInvalidMessage: I,
3460
- inputRef: A,
3465
+ inputRef: O,
3461
3466
  onChange: S,
3462
3467
  iconSize: i,
3463
3468
  fileExtension: c,
@@ -3466,13 +3471,13 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3466
3471
  sharedIndicatorClassName: m
3467
3472
  }
3468
3473
  );
3469
- }, ei = ({
3474
+ }, Jr = ({
3470
3475
  items: e,
3471
3476
  showFiles: t = !1,
3472
- expandedPaths: s,
3477
+ expandedPaths: r,
3473
3478
  loadingPaths: a = /* @__PURE__ */ new Set(),
3474
3479
  loadedPaths: n = /* @__PURE__ */ new Set(),
3475
- sharedByMePaths: r = /* @__PURE__ */ new Set(),
3480
+ sharedByMePaths: s = /* @__PURE__ */ new Set(),
3476
3481
  selectedPath: l,
3477
3482
  emptyStateTitle: i = "No Folders",
3478
3483
  emptyStateDescription: p,
@@ -3492,49 +3497,49 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3492
3497
  onCreateFolderCancel: F,
3493
3498
  forbiddenSymbolsRegExp: I,
3494
3499
  forbiddenSymbolsTooltip: S,
3495
- newFolderDefaultName: A
3500
+ newFolderDefaultName: O
3496
3501
  }) => {
3497
- const { expandedPaths: _, togglePath: U } = Sa({
3498
- expandedPaths: s ?? /* @__PURE__ */ new Set(),
3502
+ const { expandedPaths: M, togglePath: V } = Sa({
3503
+ expandedPaths: r ?? /* @__PURE__ */ new Set(),
3499
3504
  onExpandedPathsChange: T
3500
- }), P = (B) => {
3501
- m?.(B), U(B.path);
3502
- }, k = (B, L, q) => {
3503
- let J = B;
3504
- return q && q.path === u && (J = [
3505
+ }), A = (B) => {
3506
+ m?.(B), V(B.path);
3507
+ }, _ = (B, k, Q) => {
3508
+ let te = B;
3509
+ return Q && Q.path === u && (te = [
3505
3510
  {
3506
3511
  folderId: en,
3507
3512
  id: en,
3508
3513
  items: [],
3509
- name: A || "",
3510
- nodeType: O.FOLDER,
3514
+ name: O || "",
3515
+ nodeType: L.FOLDER,
3511
3516
  parentPath: u,
3512
3517
  path: `${u}/${en}`
3513
3518
  },
3514
3519
  ...B
3515
- ]), J.map((j) => {
3516
- const { path: te, nodeType: fe, name: we, items: xe } = j, ue = fe === O.FOLDER;
3517
- if (!c && Ta(j)) return null;
3520
+ ]), te.map((U) => {
3521
+ const { path: Y, nodeType: fe, name: we, items: xe } = U, ue = fe === L.FOLDER;
3522
+ if (!c && Ta(U)) return null;
3518
3523
  if (!ue && !t) return;
3519
- const Te = Array.isArray(xe) && xe.length > 0 && xe.some((H) => H.nodeType === O.FOLDER || t), Ne = _.has(te), W = l === te, be = a.has(te), De = v === te || te === `${u}/${en}`, G = n.has(te), ne = r.has(te), he = g && y && te === g && ue, _e = f && ((H) => f(H, j)), Oe = W ? "bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded" : "border-l-2 border-l-transparent", Se = he ? [] : b?.(j) ?? [], R = I ? Go(
3520
- { name: j.name, isFolder: ue },
3524
+ const Te = Array.isArray(xe) && xe.length > 0 && xe.some((H) => H.nodeType === L.FOLDER || t), Ne = M.has(Y), W = l === Y, be = a.has(Y), De = v === Y || Y === `${u}/${en}`, G = n.has(Y), ne = s.has(Y), he = g && y && Y === g && ue, _e = f && ((H) => f(H, U)), Oe = W ? "bg-control-accent-alpha rounded" : "", Se = he ? [] : b?.(U) ?? [], R = I ? Go(
3525
+ { name: U.name, isFolder: ue },
3521
3526
  I,
3522
3527
  S
3523
3528
  ) : void 0;
3524
- return /* @__PURE__ */ o("div", { className: "cursor-pointer text-secondary", children: /* @__PURE__ */ X("div", { className: "flex flex-col w-full", "aria-label": "folder", children: [
3529
+ return /* @__PURE__ */ o("div", { className: "cursor-pointer text-secondary", children: /* @__PURE__ */ X("div", { className: "flex flex-col w-full gap-1", "aria-label": "folder", children: [
3525
3530
  /* @__PURE__ */ o(
3526
3531
  ht,
3527
3532
  {
3528
3533
  trigger: [ma.ContextMenu],
3529
- className: "w-full",
3534
+ className: "w-full h-[32px]",
3530
3535
  anchorToMouse: !0,
3531
3536
  items: Se,
3532
3537
  children: /* @__PURE__ */ X(
3533
3538
  "div",
3534
3539
  {
3535
- style: { paddingLeft: `${L * Ks}px` },
3540
+ style: { paddingLeft: `${k * Yr}px` },
3536
3541
  className: Ee(
3537
- "py-1 gap-[2px] dial-small-text flex justify-between hover:bg-accent-primary-alpha rounded group/item w-full mb-[2px] relative",
3542
+ "py-1 pr-3 gap-2 dial-small-paragraph-text flex justify-between hover:bg-control-accent-alpha-hover rounded group/item w-full relative",
3538
3543
  Oe
3539
3544
  ),
3540
3545
  "aria-selected": W,
@@ -3543,19 +3548,19 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3543
3548
  "div",
3544
3549
  {
3545
3550
  className: "absolute size-full left-0 top-0 z-0",
3546
- onClick: () => P(j)
3551
+ onClick: () => A(U)
3547
3552
  }
3548
3553
  ),
3549
3554
  /* @__PURE__ */ o(
3550
3555
  "div",
3551
3556
  {
3552
3557
  className: "relative flex flex-row truncate items-center w-fit h-6 gap-x-1 pl-1",
3553
- onClick: () => !De && P(j),
3558
+ onClick: () => !De && A(U),
3554
3559
  children: /* @__PURE__ */ X(Ie, { children: [
3555
3560
  ue && /* @__PURE__ */ o(
3556
- cr,
3561
+ cs,
3557
3562
  {
3558
- ...Ys,
3563
+ ...qr,
3559
3564
  className: an(
3560
3565
  "flex-shrink-0",
3561
3566
  Ne && "rotate-90 transition-all",
@@ -3566,21 +3571,21 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3566
3571
  /* @__PURE__ */ o(
3567
3572
  $n,
3568
3573
  {
3569
- elementId: `${te}-tree-item`,
3574
+ elementId: `${Y}-tree-item`,
3570
3575
  name: he ? y : we,
3571
3576
  type: ue ? We.Folder : We.File,
3572
3577
  loading: be,
3573
3578
  shared: ne,
3574
3579
  sharedIndicatorClassName: Ee(
3575
- "group-hover/item:bg-accent-primary-alpha",
3576
- W && "bg-accent-primary-alpha"
3580
+ "group-hover/item:bg-control-accent-alpha-hover",
3581
+ W && "bg-bg-control-accent-alpha"
3577
3582
  ),
3578
- iconSize: rt,
3583
+ iconSize: st,
3579
3584
  forbiddenSymbolsRegExp: I,
3580
3585
  forbiddenSymbolsTooltip: R,
3581
3586
  ...!he && {
3582
3587
  editing: De,
3583
- creating: te === `${u}/${en}`,
3588
+ creating: Y === `${u}/${en}`,
3584
3589
  onSave: D,
3585
3590
  onCancel: h,
3586
3591
  validate: _e,
@@ -3604,7 +3609,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3604
3609
  {
3605
3610
  size: jn.Small,
3606
3611
  className: "invisible group-hover/item:visible",
3607
- icon: /* @__PURE__ */ o(ln, { ...M })
3612
+ icon: /* @__PURE__ */ o(ln, { ...P })
3608
3613
  }
3609
3614
  )
3610
3615
  }
@@ -3614,11 +3619,11 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3614
3619
  )
3615
3620
  }
3616
3621
  ),
3617
- Ne && (xe || j?.path === u) && k(xe || [], L + 1, j)
3618
- ] }) }, `${te}-children`);
3622
+ Ne && (xe || U?.path === u) && _(xe || [], k + 1, U)
3623
+ ] }) }, `${Y}-children`);
3619
3624
  });
3620
3625
  };
3621
- return /* @__PURE__ */ o("div", { className: "flex-1 size-full overflow-y-auto", "aria-label": "folders-tree", children: e.length > 0 ? k(e, 0) : /* @__PURE__ */ o(
3626
+ return /* @__PURE__ */ o("div", { className: "flex-1 size-full overflow-y-auto", "aria-label": "folders-tree", children: e.length > 0 ? _(e, 0) : /* @__PURE__ */ o(
3622
3627
  wa,
3623
3628
  {
3624
3629
  title: i,
@@ -3626,13 +3631,13 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3626
3631
  icon: C
3627
3632
  }
3628
3633
  ) });
3629
- }, ti = ({
3634
+ }, ei = ({
3630
3635
  selectedFiles: e,
3631
3636
  actionLabels: t,
3632
- onDuplicate: s,
3637
+ onDuplicate: r,
3633
3638
  onCopy: a,
3634
3639
  onMove: n,
3635
- onDownload: r,
3640
+ onDownload: s,
3636
3641
  onUnshare: l,
3637
3642
  onRemoveAccess: i,
3638
3643
  onDelete: p,
@@ -3641,7 +3646,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3641
3646
  sharedByMePaths: v,
3642
3647
  onClearSelection: u,
3643
3648
  forbiddenSymbolsRegExp: y
3644
- }) => $(() => {
3649
+ }) => j(() => {
3645
3650
  const g = [], m = Array.from(e.values());
3646
3651
  if (!m.length || !t)
3647
3652
  return g;
@@ -3655,7 +3660,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3655
3660
  label: t[w.RemoveAccess],
3656
3661
  title: t[w.RemoveAccess],
3657
3662
  disabled: h,
3658
- icon: /* @__PURE__ */ o(Ao, { size: M.size, className: "text-secondary" }),
3663
+ icon: /* @__PURE__ */ o(Ao, { size: P.size, className: "text-secondary" }),
3659
3664
  onClick: () => {
3660
3665
  i(m), u();
3661
3666
  }
@@ -3668,8 +3673,8 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3668
3673
  icon: /* @__PURE__ */ o(
3669
3674
  Wo,
3670
3675
  {
3671
- width: M.size,
3672
- height: M.size,
3676
+ width: P.size,
3677
+ height: P.size,
3673
3678
  className: "text-secondary"
3674
3679
  }
3675
3680
  ),
@@ -3681,8 +3686,8 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3681
3686
  icon: /* @__PURE__ */ o(
3682
3687
  Bo,
3683
3688
  {
3684
- width: M.size,
3685
- height: M.size,
3689
+ width: P.size,
3690
+ height: P.size,
3686
3691
  className: "text-secondary"
3687
3692
  }
3688
3693
  ),
@@ -3691,8 +3696,8 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3691
3696
  key: w.Duplicate,
3692
3697
  label: t[w.Duplicate],
3693
3698
  title: t[w.Duplicate],
3694
- icon: /* @__PURE__ */ o(Po, { ...M, className: "text-secondary" }),
3695
- onClick: () => s(m)
3699
+ icon: /* @__PURE__ */ o(Po, { ...P, className: "text-secondary" }),
3700
+ onClick: () => r(m)
3696
3701
  }), t[w.Delete]) {
3697
3702
  const h = m.some(
3698
3703
  (f) => f.permissions && !f.permissions.includes(St.WRITE)
@@ -3701,7 +3706,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3701
3706
  key: w.Delete,
3702
3707
  label: t[w.Delete],
3703
3708
  title: t[w.Delete],
3704
- icon: /* @__PURE__ */ o(Mo, { ...M, className: "text-secondary" }),
3709
+ icon: /* @__PURE__ */ o(Mo, { ...P, className: "text-secondary" }),
3705
3710
  disabled: h,
3706
3711
  tooltip: h ? "Selected items contain item which can not be deleted" : void 0,
3707
3712
  onClick: () => {
@@ -3714,8 +3719,8 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3714
3719
  key: w.Download,
3715
3720
  label: t[w.Download],
3716
3721
  title: t[w.Download],
3717
- icon: /* @__PURE__ */ o(ko, { ...M, className: "text-secondary" }),
3718
- onClick: () => r(m)
3722
+ icon: /* @__PURE__ */ o(ko, { ...P, className: "text-secondary" }),
3723
+ onClick: () => s(m)
3719
3724
  }), t[w.Unshare] && l) {
3720
3725
  const h = m.some(
3721
3726
  (f) => !c?.includes(f.path)
@@ -3729,8 +3734,8 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3729
3734
  icon: /* @__PURE__ */ o(
3730
3735
  Ho,
3731
3736
  {
3732
- width: M.size,
3733
- height: M.size,
3737
+ width: P.size,
3738
+ height: P.size,
3734
3739
  className: "text-secondary"
3735
3740
  }
3736
3741
  ),
@@ -3747,21 +3752,21 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3747
3752
  i,
3748
3753
  n,
3749
3754
  a,
3750
- s,
3755
+ r,
3751
3756
  C,
3752
3757
  p,
3753
- r,
3758
+ s,
3754
3759
  c,
3755
3760
  u,
3756
3761
  v,
3757
3762
  y
3758
- ]), ni = ({
3763
+ ]), ti = ({
3759
3764
  id: e,
3760
3765
  name: t,
3761
- nodeType: s,
3766
+ nodeType: r,
3762
3767
  size: a,
3763
3768
  updatedAt: n,
3764
- dateLocale: r,
3769
+ dateLocale: s,
3765
3770
  dateOptions: l,
3766
3771
  shared: i,
3767
3772
  sharedIndicatorClassName: p,
@@ -3771,23 +3776,23 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3771
3776
  }) => /* @__PURE__ */ o("div", { className: "flex", children: /* @__PURE__ */ o("div", { className: "flex flex-1 min-w-0", children: /* @__PURE__ */ o(
3772
3777
  $n,
3773
3778
  {
3774
- type: s === O.FOLDER ? We.Folder : We.File,
3779
+ type: r === L.FOLDER ? We.Folder : We.File,
3775
3780
  name: t,
3776
3781
  elementId: e,
3777
3782
  shared: i,
3778
- iconSize: rt,
3783
+ iconSize: st,
3779
3784
  sharedIndicatorClassName: p,
3780
3785
  hideTooltip: C,
3781
3786
  forbiddenSymbolsRegExp: c,
3782
3787
  forbiddenSymbolsTooltip: v,
3783
3788
  details: /* @__PURE__ */ X("div", { className: "flex items-center gap-1 dial-tiny-text text-secondary", children: [
3784
- /* @__PURE__ */ o("span", { children: s === O.ITEM ? sn(a) : "" }),
3789
+ /* @__PURE__ */ o("span", { children: r === L.ITEM ? rn(a) : "" }),
3785
3790
  n && a && /* @__PURE__ */ o(Un, { size: 2, className: "text-secondary" }),
3786
3791
  n ? /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(
3787
3792
  Na,
3788
3793
  {
3789
3794
  value: n,
3790
- locale: r?.toString(),
3795
+ locale: s?.toString(),
3791
3796
  options: l,
3792
3797
  className: "dial-tiny-text text-secondary",
3793
3798
  hideTooltip: C
@@ -3795,14 +3800,14 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3795
3800
  ) }) : null
3796
3801
  ] })
3797
3802
  }
3798
- ) }) }), oi = (e) => (t, s, a) => ({
3803
+ ) }) }), ni = (e) => (t, r, a) => ({
3799
3804
  colId: ye.Name,
3800
3805
  field: "name",
3801
3806
  headerName: e,
3802
3807
  flex: 1,
3803
3808
  minWidth: 200,
3804
3809
  cellRenderer: (n) => {
3805
- const r = n.data.nodeType, {
3810
+ const s = n.data.nodeType, {
3806
3811
  saveFolderCreation: l,
3807
3812
  validateFolderName: i,
3808
3813
  cancelFolderCreation: p,
@@ -3812,8 +3817,8 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3812
3817
  disabledRowIds: u,
3813
3818
  filesLoading: y
3814
3819
  } = n.context, g = c?.has(n.data.path), m = v?.has(n.data.path), b = u?.has(n.data.path) ?? !1, D = Ee([
3815
- "group-hover/grid-row:bg-accent-primary-alpha",
3816
- m && "bg-accent-primary-alpha"
3820
+ "group-hover/grid-row:bg-control-accent-alpha-hover",
3821
+ m && "bg-control-accent-alpha"
3817
3822
  ]);
3818
3823
  if (n.data?.isTemporary && n.data.id === C)
3819
3824
  return /* @__PURE__ */ o(
@@ -3827,7 +3832,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3827
3832
  loading: y,
3828
3833
  shared: g,
3829
3834
  sharedIndicatorClassName: D,
3830
- iconSize: rt,
3835
+ iconSize: st,
3831
3836
  validate: i,
3832
3837
  onSave: l,
3833
3838
  onCancel: p,
@@ -3835,7 +3840,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3835
3840
  onCreateFolderCancel: p,
3836
3841
  inputContainerClassName: Ee([
3837
3842
  "!h-9",
3838
- a && r === O.ITEM && "!h-10"
3843
+ a && s === L.ITEM && "!h-10"
3839
3844
  ])
3840
3845
  }
3841
3846
  );
@@ -3849,24 +3854,24 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3849
3854
  onRenameCancel: S
3850
3855
  } = n.context;
3851
3856
  if (h === Rt.Grid && f === n.data?.path && T && n.data) {
3852
- const U = x(T);
3857
+ const V = x(T);
3853
3858
  return /* @__PURE__ */ o(
3854
3859
  $n,
3855
3860
  {
3856
- name: U,
3857
- type: r === O.FOLDER ? We.Folder : We.File,
3861
+ name: V,
3862
+ type: s === L.FOLDER ? We.Folder : We.File,
3858
3863
  fileExtension: T.name.split(".").pop(),
3859
3864
  elementId: `rename-${n.data.id}`,
3860
3865
  editing: !0,
3861
3866
  shared: g,
3862
3867
  sharedIndicatorClassName: D,
3863
- iconSize: rt,
3864
- validate: (P) => F(P, T),
3868
+ iconSize: st,
3869
+ validate: (A) => F(A, T),
3865
3870
  onSave: I,
3866
3871
  onCancel: S,
3867
3872
  inputContainerClassName: Ee([
3868
3873
  "!h-9",
3869
- a && r === O.ITEM && "!h-10"
3874
+ a && s === L.ITEM && "!h-10"
3870
3875
  ]),
3871
3876
  forbiddenSymbolsRegExp: n.context.forbiddenSymbolsRegExp
3872
3877
  }
@@ -3874,40 +3879,40 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3874
3879
  }
3875
3880
  if (a)
3876
3881
  return /* @__PURE__ */ o(
3877
- ni,
3882
+ ti,
3878
3883
  {
3879
3884
  id: n.data.id,
3880
3885
  name: n.data.name,
3881
- nodeType: r,
3886
+ nodeType: s,
3882
3887
  size: n.data.size,
3883
3888
  shared: g,
3884
3889
  sharedIndicatorClassName: D,
3885
3890
  updatedAt: n.data.updatedAt,
3886
3891
  dateLocale: t,
3887
- dateOptions: s,
3892
+ dateOptions: r,
3888
3893
  hideTooltip: b,
3889
3894
  forbiddenSymbolsRegExp: n.context.forbiddenSymbolsRegExp,
3890
3895
  forbiddenSymbolsTooltip: n.context.forbiddenSymbolsTooltip
3891
3896
  }
3892
3897
  );
3893
- const _ = Go(
3898
+ const M = Go(
3894
3899
  {
3895
3900
  name: n.data.name,
3896
- isFolder: r === O.FOLDER
3901
+ isFolder: s === L.FOLDER
3897
3902
  },
3898
3903
  n.context.forbiddenSymbolsRegExp,
3899
3904
  n.context.forbiddenSymbolsTooltip
3900
3905
  );
3901
- return r === O.FOLDER ? /* @__PURE__ */ o(
3906
+ return s === L.FOLDER ? /* @__PURE__ */ o(
3902
3907
  Oo,
3903
3908
  {
3904
3909
  name: n.data.name,
3905
3910
  shared: g,
3906
3911
  sharedIndicatorClassName: D,
3907
- iconSize: rt,
3912
+ iconSize: st,
3908
3913
  hideTooltip: b,
3909
- isInvalidName: !!_,
3910
- tooltipContent: _
3914
+ isInvalidName: !!M,
3915
+ tooltipContent: M
3911
3916
  }
3912
3917
  ) : /* @__PURE__ */ o(
3913
3918
  Lo,
@@ -3915,14 +3920,14 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3915
3920
  name: n.data.name,
3916
3921
  shared: g,
3917
3922
  sharedIndicatorClassName: D,
3918
- iconSize: rt,
3923
+ iconSize: st,
3919
3924
  hideTooltip: b,
3920
- isInvalidName: !!_,
3921
- tooltipContent: _
3925
+ isInvalidName: !!M,
3926
+ tooltipContent: M
3922
3927
  }
3923
3928
  );
3924
3929
  }
3925
- }), ai = (e) => (t, s) => ({
3930
+ }), oi = (e) => (t, r) => ({
3926
3931
  colId: ye.UpdatedAt,
3927
3932
  field: "updatedAt",
3928
3933
  headerName: e,
@@ -3934,23 +3939,23 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3934
3939
  },
3935
3940
  cellRendererParams: {
3936
3941
  locale: t,
3937
- options: s
3942
+ options: r
3938
3943
  },
3939
3944
  filterValueGetter: (a) => {
3940
- const n = a.data[a.colDef.field || ""], r = kr(n);
3941
- return r ? new Intl.DateTimeFormat(
3942
- t || Or,
3943
- s || Lr
3944
- ).format(r) : "";
3945
+ const n = a.data[a.colDef.field || ""], s = Ms(n);
3946
+ return s ? new Intl.DateTimeFormat(
3947
+ t || ks,
3948
+ r || Os
3949
+ ).format(s) : "";
3945
3950
  }
3946
- }), ri = (e) => ({
3951
+ }), ai = (e) => ({
3947
3952
  colId: ye.Size,
3948
3953
  field: "size",
3949
3954
  headerName: e,
3950
3955
  width: 120,
3951
3956
  suppressSizeToFit: !0,
3952
- cellRenderer: (t) => t.data.nodeType === O.ITEM ? sn(t.data.contentLength) : "",
3953
- filterValueGetter: (t) => t.data.nodeType === O.ITEM ? sn(t.data.contentLength) : ""
3957
+ cellRenderer: (t) => t.data.nodeType === L.ITEM ? rn(t.data.contentLength) : "",
3958
+ filterValueGetter: (t) => t.data.nodeType === L.ITEM ? rn(t.data.contentLength) : ""
3954
3959
  }), si = (e) => {
3955
3960
  const t = e.event;
3956
3961
  if (!(t?.target ?? null)?.closest("input") || !t) return !1;
@@ -3966,20 +3971,20 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3966
3971
  return !1;
3967
3972
  }
3968
3973
  };
3969
- function ii({
3974
+ function ri({
3970
3975
  userColumnDefs: e,
3971
3976
  filterable: t,
3972
- dateLocale: s,
3977
+ dateLocale: r,
3973
3978
  dateOptions: a,
3974
3979
  effectiveVisibleColumns: n,
3975
- isCompactView: r,
3980
+ isCompactView: s,
3976
3981
  hasActions: l,
3977
3982
  actionsColumnDef: i,
3978
3983
  rootItemLabel: p,
3979
3984
  rootItemPath: C
3980
3985
  }) {
3981
- const c = $(() => [
3982
- oi("Name")(s, a, r),
3986
+ const c = j(() => [
3987
+ ni("Name")(r, a, s),
3983
3988
  {
3984
3989
  colId: ye.Path,
3985
3990
  field: "path",
@@ -4001,8 +4006,8 @@ function ii({
4001
4006
  return /* @__PURE__ */ o(Tt, { text: m, hideTooltip: y });
4002
4007
  }
4003
4008
  },
4004
- ai("Modified Date")(s, a),
4005
- ri("Size"),
4009
+ oi("Modified Date")(r, a),
4010
+ ai("Size"),
4006
4011
  {
4007
4012
  colId: ye.Author,
4008
4013
  field: "author",
@@ -4019,15 +4024,15 @@ function ii({
4019
4024
  suppressSizeToFit: !0,
4020
4025
  cellRenderer: (u) => u.data.owner
4021
4026
  }
4022
- ], [s, a, r, p, C]);
4023
- return { columnDefs: $(() => {
4027
+ ], [r, a, s, p, C]);
4028
+ return { columnDefs: j(() => {
4024
4029
  const u = e?.map(
4025
- (m) => typeof m == "function" ? m(s, a, r) : m
4030
+ (m) => typeof m == "function" ? m(r, a, s) : m
4026
4031
  );
4027
4032
  let y = u ?? c;
4028
4033
  u || (y = y.filter(
4029
4034
  (m) => m.colId && n.includes(m.colId)
4030
- )), l && (r && (y = y.slice(0, 1)), y.push(i));
4035
+ )), l && (s && (y = y.slice(0, 1)), y.push(i));
4031
4036
  const g = (m) => m.colId === ye.Name;
4032
4037
  return y.map((m) => {
4033
4038
  const b = {
@@ -4039,30 +4044,30 @@ function ii({
4039
4044
  });
4040
4045
  }, [
4041
4046
  i,
4042
- s,
4047
+ r,
4043
4048
  a,
4044
4049
  c,
4045
4050
  n,
4046
4051
  t,
4047
4052
  l,
4048
- r,
4053
+ s,
4049
4054
  e
4050
4055
  ]) };
4051
4056
  }
4052
- const li = () => {
4053
- const e = fr(Ia);
4057
+ const ii = () => {
4058
+ const e = fs(Ia);
4054
4059
  if (!e)
4055
4060
  throw new Error(
4056
4061
  "useFileManagerContext must be used within <FileManagerProvider>"
4057
4062
  );
4058
4063
  return e;
4059
- }, ci = ({
4064
+ }, li = ({
4060
4065
  actionLabels: e,
4061
4066
  onDuplicate: t,
4062
- onCopy: s,
4067
+ onCopy: r,
4063
4068
  onMove: a,
4064
4069
  onDownload: n,
4065
- onRename: r,
4070
+ onRename: s,
4066
4071
  onDelete: l,
4067
4072
  onInfo: i,
4068
4073
  onUnshare: p,
@@ -4078,34 +4083,34 @@ const li = () => {
4078
4083
  forbiddenSymbolsRegExp: h,
4079
4084
  onGridCreateSiblingFolder: f,
4080
4085
  onGridCreateChildFolder: T
4081
- }) => $(() => (x) => {
4086
+ }) => j(() => (x) => {
4082
4087
  const F = [];
4083
4088
  if (!e)
4084
4089
  return F;
4085
4090
  const I = Zn(
4086
4091
  h
4087
4092
  )?.test(x.name);
4088
- e[w.AddSibling] && x.nodeType === O.FOLDER && F.push({
4093
+ e[w.AddSibling] && x.nodeType === L.FOLDER && F.push({
4089
4094
  key: "addSibling",
4090
4095
  label: e[w.AddSibling],
4091
4096
  icon: /* @__PURE__ */ o(
4092
4097
  ba,
4093
4098
  {
4094
- width: M.size,
4095
- height: M.size,
4099
+ width: P.size,
4100
+ height: P.size,
4096
4101
  className: "text-secondary"
4097
4102
  }
4098
4103
  ),
4099
4104
  onClick: () => f([x])
4100
- }), e[w.AddChild] && x.nodeType === O.FOLDER && !I && F.push(
4105
+ }), e[w.AddChild] && x.nodeType === L.FOLDER && !I && F.push(
4101
4106
  {
4102
4107
  key: "addChild",
4103
4108
  label: e[w.AddChild],
4104
4109
  icon: /* @__PURE__ */ o(
4105
4110
  xa,
4106
4111
  {
4107
- width: M.size,
4108
- height: M.size,
4112
+ width: P.size,
4113
+ height: P.size,
4109
4114
  className: "text-secondary"
4110
4115
  }
4111
4116
  ),
@@ -4115,17 +4120,17 @@ const li = () => {
4115
4120
  key: "divider",
4116
4121
  type: Da.Divider
4117
4122
  }
4118
- ), e[w.OpenInNewTab] && typeof g == "function" && x.nodeType === O.ITEM && !I && F.push({
4123
+ ), e[w.OpenInNewTab] && typeof g == "function" && x.nodeType === L.ITEM && !I && F.push({
4119
4124
  key: w.OpenInNewTab,
4120
4125
  label: e[w.OpenInNewTab],
4121
- icon: /* @__PURE__ */ o(Fo, { ...M, className: "text-secondary" }),
4126
+ icon: /* @__PURE__ */ o(Fo, { ...P, className: "text-secondary" }),
4122
4127
  onClick: () => g?.(x)
4123
4128
  });
4124
- const S = x.nodeType === O.ITEM || x.nodeType === O.FOLDER && D;
4129
+ const S = x.nodeType === L.ITEM || x.nodeType === L.FOLDER && D;
4125
4130
  e[w.Duplicate] && S && !I && F.push({
4126
4131
  key: w.Duplicate,
4127
4132
  label: e[w.Duplicate],
4128
- icon: /* @__PURE__ */ o(Po, { ...M, className: "text-secondary" }),
4133
+ icon: /* @__PURE__ */ o(Po, { ...P, className: "text-secondary" }),
4129
4134
  onClick: () => t(x)
4130
4135
  }), e[w.Copy] && !I && F.push({
4131
4136
  key: w.Copy,
@@ -4133,20 +4138,20 @@ const li = () => {
4133
4138
  icon: /* @__PURE__ */ o(
4134
4139
  Bo,
4135
4140
  {
4136
- width: M.size,
4137
- height: M.size,
4141
+ width: P.size,
4142
+ height: P.size,
4138
4143
  className: "text-secondary"
4139
4144
  }
4140
4145
  ),
4141
- onClick: () => s(x)
4146
+ onClick: () => r(x)
4142
4147
  }), e[w.Move] && !I && F.push({
4143
4148
  key: w.Move,
4144
4149
  label: e[w.Move],
4145
4150
  icon: /* @__PURE__ */ o(
4146
4151
  Wo,
4147
4152
  {
4148
- width: M.size,
4149
- height: M.size,
4153
+ width: P.size,
4154
+ height: P.size,
4150
4155
  className: "text-secondary"
4151
4156
  }
4152
4157
  ),
@@ -4154,38 +4159,38 @@ const li = () => {
4154
4159
  }), e[w.Download] && !I && F.push({
4155
4160
  key: w.Download,
4156
4161
  label: e[w.Download],
4157
- icon: /* @__PURE__ */ o(ko, { ...M, className: "text-secondary" }),
4162
+ icon: /* @__PURE__ */ o(ko, { ...P, className: "text-secondary" }),
4158
4163
  onClick: () => n(x)
4159
- }), e[w.ManagePermissions] && typeof u == "function" && x.nodeType === O.FOLDER && !I && F.push({
4164
+ }), e[w.ManagePermissions] && typeof u == "function" && x.nodeType === L.FOLDER && !I && F.push({
4160
4165
  key: w.ManagePermissions,
4161
4166
  label: e[w.ManagePermissions],
4162
- icon: /* @__PURE__ */ o(Fo, { ...M, className: "text-secondary" }),
4167
+ icon: /* @__PURE__ */ o(Fo, { ...P, className: "text-secondary" }),
4163
4168
  onClick: () => u?.(x.path)
4164
4169
  });
4165
- const A = x.name.split("."), _ = A.length > 1 ? A[A.length - 1] : "", U = _ && m?.includes(`.${_}`);
4166
- e[w.Preview] && typeof y == "function" && x.nodeType === O.ITEM && U && !I && F.push({
4170
+ const O = x.name.split("."), M = O.length > 1 ? O[O.length - 1] : "", V = M && m?.includes(`.${M}`);
4171
+ e[w.Preview] && typeof y == "function" && x.nodeType === L.ITEM && V && !I && F.push({
4167
4172
  key: w.Preview,
4168
4173
  label: e[w.Preview],
4169
- icon: /* @__PURE__ */ o(So, { ...M, className: "text-secondary" }),
4174
+ icon: /* @__PURE__ */ o(So, { ...P, className: "text-secondary" }),
4170
4175
  onClick: () => y?.(x.path)
4171
4176
  });
4172
- const P = !x.permissions || x.permissions.includes(St.WRITE);
4173
- e[w.Delete] && P && F.push({
4177
+ const A = !x.permissions || x.permissions.includes(St.WRITE);
4178
+ e[w.Delete] && A && F.push({
4174
4179
  key: w.Delete,
4175
4180
  label: e[w.Delete],
4176
- icon: /* @__PURE__ */ o(Mo, { ...M, className: "text-secondary" }),
4181
+ icon: /* @__PURE__ */ o(Mo, { ...P, className: "text-secondary" }),
4177
4182
  onClick: () => l(x, x.parentPath ?? "")
4178
4183
  });
4179
- const k = x.nodeType === O.FOLDER || x.nodeType === O.ITEM && b;
4180
- return e[w.Rename] && k && P && F.push({
4184
+ const _ = x.nodeType === L.FOLDER || x.nodeType === L.ITEM && b;
4185
+ return e[w.Rename] && _ && A && F.push({
4181
4186
  key: w.Rename,
4182
4187
  label: e[w.Rename],
4183
- icon: /* @__PURE__ */ o(fa, { ...M, className: "text-secondary" }),
4184
- onClick: () => r(x.path)
4185
- }), e[w.Info] && x.nodeType === O.ITEM && !I && F.push({
4188
+ icon: /* @__PURE__ */ o(fa, { ...P, className: "text-secondary" }),
4189
+ onClick: () => s(x.path)
4190
+ }), e[w.Info] && x.nodeType === L.ITEM && !I && F.push({
4186
4191
  key: w.Info,
4187
4192
  label: e[w.Info],
4188
- icon: /* @__PURE__ */ o(dr, { ...M, className: "text-secondary" }),
4193
+ icon: /* @__PURE__ */ o(ds, { ...P, className: "text-secondary" }),
4189
4194
  onClick: () => i(x)
4190
4195
  }), e[w.Unshare] && c?.includes(x.path) && F.push({
4191
4196
  key: w.Unshare,
@@ -4193,8 +4198,8 @@ const li = () => {
4193
4198
  icon: /* @__PURE__ */ o(
4194
4199
  Ho,
4195
4200
  {
4196
- width: M.size,
4197
- height: M.size,
4201
+ width: P.size,
4202
+ height: P.size,
4198
4203
  className: "text-secondary"
4199
4204
  }
4200
4205
  ),
@@ -4202,17 +4207,17 @@ const li = () => {
4202
4207
  }), e[w.RemoveAccess] && v?.has(x.path) && C && F.push({
4203
4208
  key: w.RemoveAccess,
4204
4209
  label: e[w.RemoveAccess],
4205
- icon: /* @__PURE__ */ o(Ao, { size: M.size, className: "text-secondary" }),
4210
+ icon: /* @__PURE__ */ o(Ao, { size: P.size, className: "text-secondary" }),
4206
4211
  onClick: () => C(x)
4207
4212
  }), F;
4208
4213
  }, [
4209
4214
  e,
4210
4215
  t,
4211
- s,
4216
+ r,
4212
4217
  a,
4213
4218
  n,
4214
4219
  l,
4215
- r,
4220
+ s,
4216
4221
  i,
4217
4222
  p,
4218
4223
  C,
@@ -4227,32 +4232,32 @@ const li = () => {
4227
4232
  h,
4228
4233
  T,
4229
4234
  f
4230
- ]), di = ({
4235
+ ]), ci = ({
4231
4236
  onGridAddSibling: e,
4232
4237
  onGridAddChild: t,
4233
- onTreeAddSibling: s,
4238
+ onTreeAddSibling: r,
4234
4239
  onTreeAddChild: a
4235
4240
  }) => {
4236
- const [n, r] = z(
4241
+ const [n, s] = z(
4237
4242
  ut.Grid
4238
4243
  ), l = d(
4239
4244
  (c) => {
4240
- e?.(c), r(ut.Grid);
4245
+ e?.(c), s(ut.Grid);
4241
4246
  },
4242
4247
  [e]
4243
4248
  ), i = d(
4244
4249
  (c) => {
4245
- s?.(c), r(ut.Tree);
4250
+ r?.(c), s(ut.Tree);
4246
4251
  },
4247
- [s]
4252
+ [r]
4248
4253
  ), p = d(
4249
4254
  (c) => {
4250
- t?.(c), r(ut.Grid);
4255
+ t?.(c), s(ut.Grid);
4251
4256
  },
4252
4257
  [t]
4253
4258
  ), C = d(
4254
4259
  (c) => {
4255
- a?.(c), r(ut.Tree);
4260
+ a?.(c), s(ut.Tree);
4256
4261
  },
4257
4262
  [a]
4258
4263
  );
@@ -4263,14 +4268,14 @@ const li = () => {
4263
4268
  onGridCreateChildFolder: p,
4264
4269
  onTreeCreateChildFolder: C
4265
4270
  };
4266
- }, ui = (e) => /* @__PURE__ */ o(ks, { ...e, children: /* @__PURE__ */ o(hi, {}) }), hi = () => {
4271
+ }, di = (e) => /* @__PURE__ */ o(Mr, { ...e, children: /* @__PURE__ */ o(ui, {}) }), ui = () => {
4267
4272
  const {
4268
4273
  managerLabel: e,
4269
4274
  className: t,
4270
- items: s,
4275
+ items: r,
4271
4276
  rootItem: a,
4272
4277
  filesLoading: n,
4273
- treeOptions: r,
4278
+ treeOptions: s,
4274
4279
  showNavigationPanel: l,
4275
4280
  navigationPanelOptions: i,
4276
4281
  gridOptions: p,
@@ -4279,7 +4284,7 @@ const li = () => {
4279
4284
  deleteConfirmationOptions: v,
4280
4285
  destinationFolderPopupOptions: u,
4281
4286
  conflictResolutionPopupOptions: y,
4282
- compactViewWidthBreakpoint: g = Kr,
4287
+ compactViewWidthBreakpoint: g = Ys,
4283
4288
  customBreakpointRef: m,
4284
4289
  sharedByMePaths: b,
4285
4290
  allowedFileTypes: D,
@@ -4290,17 +4295,17 @@ const li = () => {
4290
4295
  toggleTreeCollapse: F,
4291
4296
  currentPath: I,
4292
4297
  gridRows: S,
4293
- selectedPaths: A,
4294
- selectedFiles: _,
4295
- clearSelection: U,
4296
- setSelectedPaths: P,
4297
- effectiveSearchValue: k,
4298
+ selectedPaths: O,
4299
+ selectedFiles: M,
4300
+ clearSelection: V,
4301
+ setSelectedPaths: A,
4302
+ effectiveSearchValue: _,
4298
4303
  handleBreadcrumbItemClick: B,
4299
- handleSearchChange: L,
4300
- handleTreeItemClick: q,
4301
- handleTableRowClick: J,
4302
- handleSelectionClick: j,
4303
- onGridApiChange: te,
4304
+ handleSearchChange: k,
4305
+ handleTreeItemClick: Q,
4306
+ handleTableRowClick: te,
4307
+ handleSelectionClick: U,
4308
+ onGridApiChange: Y,
4304
4309
  handleOpenDestinationFolderPopup: fe,
4305
4310
  handleCloseDestinationFolderPopup: we,
4306
4311
  openDestinationFolderPopup: xe,
@@ -4318,8 +4323,8 @@ const li = () => {
4318
4323
  openDeleteConfirmation: Se,
4319
4324
  closeDeleteConfirmation: R,
4320
4325
  confirmDelete: H,
4321
- deleteConfirmationOpen: V,
4322
- itemsToDelete: Q,
4326
+ deleteConfirmationOpen: $,
4327
+ itemsToDelete: J,
4323
4328
  renamedPath: Z,
4324
4329
  renamedItem: me,
4325
4330
  onRename: Ae,
@@ -4330,7 +4335,7 @@ const li = () => {
4330
4335
  forbiddenSymbolsRegExp: He,
4331
4336
  forbiddenSymbolsTooltip: pt,
4332
4337
  getDisplayName: cn,
4333
- isDragging: st,
4338
+ isDragging: rt,
4334
4339
  isDraggingOverWindow: ft,
4335
4340
  handleDragEnter: Xn,
4336
4341
  handleDragLeave: qn,
@@ -4376,8 +4381,8 @@ const li = () => {
4376
4381
  onFolderPopupPathChange: oo,
4377
4382
  onManagePermissions: yt,
4378
4383
  onPreview: ao,
4379
- onOpenInNewTab: ro,
4380
- previewExtensions: so,
4384
+ onOpenInNewTab: so,
4385
+ previewExtensions: ro,
4381
4386
  isRenameFileAvailable: io,
4382
4387
  isDuplicateFolderAvailable: lo,
4383
4388
  getDisabledTooltip: Ot,
@@ -4388,20 +4393,20 @@ const li = () => {
4388
4393
  hideSearchPathItemName: _t,
4389
4394
  showHiddenFileSwitcherInDestinationPopup: le,
4390
4395
  showCreateFolderButtonInDestinationPopup: Dn,
4391
- newFolderDefaultName: re
4392
- } = li(), {
4393
- width: Le = jr,
4394
- header: Me = Zr,
4395
- containerClassName: xn = Gr,
4396
+ newFolderDefaultName: se
4397
+ } = ii(), {
4398
+ width: Le = $s,
4399
+ header: Me = js,
4400
+ containerClassName: xn = Us,
4396
4401
  additionalButtons: bn,
4397
4402
  ...Tn
4398
- } = r ?? {}, [Nt, Rn] = z(Le), { renameTriggerView: nt, onGridRename: co, onTreeRename: In } = ts({ onRename: Ae }), {
4403
+ } = s ?? {}, [Nt, Rn] = z(Le), { renameTriggerView: nt, onGridRename: co, onTreeRename: In } = er({ onRename: Ae }), {
4399
4404
  createFolderTriggerView: Fn,
4400
4405
  onGridCreateSiblingFolder: uo,
4401
4406
  onTreeCreateSiblingFolder: En,
4402
4407
  onGridCreateChildFolder: ho,
4403
4408
  onTreeCreateChildFolder: Sn
4404
- } = di({
4409
+ } = ci({
4405
4410
  onGridAddSibling: G,
4406
4411
  onGridAddChild: ne,
4407
4412
  onTreeAddSibling: he,
@@ -4417,18 +4422,18 @@ const li = () => {
4417
4422
  dateOptions: go,
4418
4423
  selectionMode: An,
4419
4424
  wrapCustomCellRenderers: Pn,
4420
- visibleColumns: Mn = Qr,
4425
+ visibleColumns: Mn = Ks,
4421
4426
  allowDisabledContextMenu: Dt = !1,
4422
4427
  ...ot
4423
- } = p ?? {}, { containerRef: vo, isBelowBreakpoint: ze } = ns(
4428
+ } = p ?? {}, { containerRef: vo, isBelowBreakpoint: ze } = tr(
4424
4429
  g,
4425
4430
  m
4426
- ), yo = $(() => tt ? [
4431
+ ), yo = j(() => tt ? [
4427
4432
  ye.Name,
4428
4433
  ye.Path,
4429
4434
  ye.Actions
4430
4435
  ] : Mn, [tt, Mn]), Wt = d(
4431
- (N, ee, ie) => us(
4436
+ (N, ee, ie) => dr(
4432
4437
  N,
4433
4438
  ee,
4434
4439
  ie,
@@ -4439,7 +4444,7 @@ const li = () => {
4439
4444
  ), xt = d(
4440
4445
  (N, ee, ie) => !!Ot?.(N) || !!Wt(N, ee, ie),
4441
4446
  [Wt, Ot]
4442
- ), ct = $(() => {
4447
+ ), ct = j(() => {
4443
4448
  const N = /* @__PURE__ */ new Set();
4444
4449
  for (const ee of S)
4445
4450
  xt(ee, D, h) && N.add(ee.path);
@@ -4449,114 +4454,114 @@ const li = () => {
4449
4454
  const ee = [], ie = [], Re = !N.parentPath, at = He?.test(
4450
4455
  N.name
4451
4456
  );
4452
- return r?.actionLabels && (r.actionLabels[w.AddSibling] && N.nodeType === O.FOLDER && !Re && ee.push({
4457
+ return s?.actionLabels && (s.actionLabels[w.AddSibling] && N.nodeType === L.FOLDER && !Re && ee.push({
4453
4458
  key: "addSibling",
4454
- label: r.actionLabels[w.AddSibling],
4459
+ label: s.actionLabels[w.AddSibling],
4455
4460
  icon: /* @__PURE__ */ o(
4456
4461
  ba,
4457
4462
  {
4458
- width: M.size,
4459
- height: M.size,
4463
+ width: P.size,
4464
+ height: P.size,
4460
4465
  className: "text-secondary"
4461
4466
  }
4462
4467
  ),
4463
4468
  onClick: () => En([N])
4464
- }), r.actionLabels[w.AddChild] && N.nodeType === O.FOLDER && !at && ee.push({
4469
+ }), s.actionLabels[w.AddChild] && N.nodeType === L.FOLDER && !at && ee.push({
4465
4470
  key: "addChild",
4466
- label: r.actionLabels[w.AddChild],
4471
+ label: s.actionLabels[w.AddChild],
4467
4472
  icon: /* @__PURE__ */ o(
4468
4473
  xa,
4469
4474
  {
4470
- width: M.size,
4471
- height: M.size,
4475
+ width: P.size,
4476
+ height: P.size,
4472
4477
  className: "text-secondary"
4473
4478
  }
4474
4479
  ),
4475
4480
  onClick: () => Sn([N])
4476
- }), r.actionLabels[w.Duplicate] && !Re && !at && ie.push({
4481
+ }), s.actionLabels[w.Duplicate] && !Re && !at && ie.push({
4477
4482
  key: "duplicate",
4478
- label: r.actionLabels[w.Duplicate],
4479
- icon: /* @__PURE__ */ o(Po, { ...M, className: "text-secondary" }),
4483
+ label: s.actionLabels[w.Duplicate],
4484
+ icon: /* @__PURE__ */ o(Po, { ...P, className: "text-secondary" }),
4480
4485
  onClick: () => W([N])
4481
- }), r.actionLabels[w.Copy] && !Re && !at && ie.push({
4486
+ }), s.actionLabels[w.Copy] && !Re && !at && ie.push({
4482
4487
  key: ge.Copy,
4483
- label: r.actionLabels[w.Copy],
4488
+ label: s.actionLabels[w.Copy],
4484
4489
  icon: /* @__PURE__ */ o(
4485
4490
  Bo,
4486
4491
  {
4487
- width: M.size,
4488
- height: M.size,
4492
+ width: P.size,
4493
+ height: P.size,
4489
4494
  className: "text-secondary"
4490
4495
  }
4491
4496
  ),
4492
4497
  onClick: () => {
4493
4498
  Te([N]), fe(ge.Copy);
4494
4499
  }
4495
- }), r.actionLabels[w.Move] && !Re && !at && ie.push({
4500
+ }), s.actionLabels[w.Move] && !Re && !at && ie.push({
4496
4501
  key: ge.Move,
4497
- label: r.actionLabels[w.Move],
4502
+ label: s.actionLabels[w.Move],
4498
4503
  icon: /* @__PURE__ */ o(
4499
4504
  Wo,
4500
4505
  {
4501
- width: M.size,
4502
- height: M.size,
4506
+ width: P.size,
4507
+ height: P.size,
4503
4508
  className: "text-secondary"
4504
4509
  }
4505
4510
  ),
4506
4511
  onClick: () => {
4507
4512
  Ne([N]), fe(ge.Move);
4508
4513
  }
4509
- }), r.actionLabels[w.Download] && !Re && !at && ie.push({
4514
+ }), s.actionLabels[w.Download] && !Re && !at && ie.push({
4510
4515
  key: "download",
4511
- label: r.actionLabels[w.Download],
4512
- icon: /* @__PURE__ */ o(ko, { ...M, className: "text-secondary" }),
4516
+ label: s.actionLabels[w.Download],
4517
+ icon: /* @__PURE__ */ o(ko, { ...P, className: "text-secondary" }),
4513
4518
  onClick: () => Oe([N])
4514
- }), r.actionLabels[w.ManagePermissions] && typeof yt == "function" && N.nodeType === O.FOLDER && !Re && ie.push({
4519
+ }), s.actionLabels[w.ManagePermissions] && typeof yt == "function" && N.nodeType === L.FOLDER && !Re && ie.push({
4515
4520
  key: w.ManagePermissions,
4516
- label: r.actionLabels[w.ManagePermissions],
4521
+ label: s.actionLabels[w.ManagePermissions],
4517
4522
  icon: /* @__PURE__ */ o(
4518
4523
  Fo,
4519
4524
  {
4520
- ...M,
4525
+ ...P,
4521
4526
  className: "text-secondary"
4522
4527
  }
4523
4528
  ),
4524
4529
  onClick: () => yt?.(N.path)
4525
- }), r.actionLabels[w.Delete] && N.permissions?.includes(St.WRITE) && !Re && ie.push({
4530
+ }), s.actionLabels[w.Delete] && N.permissions?.includes(St.WRITE) && !Re && ie.push({
4526
4531
  key: "delete",
4527
- label: r.actionLabels[w.Delete],
4528
- icon: /* @__PURE__ */ o(Mo, { ...M, className: "text-secondary" }),
4532
+ label: s.actionLabels[w.Delete],
4533
+ icon: /* @__PURE__ */ o(Mo, { ...P, className: "text-secondary" }),
4529
4534
  onClick: () => Se([N], N.parentPath ?? "")
4530
- }), r.actionLabels[w.Rename] && !Re && ie.push({
4535
+ }), s.actionLabels[w.Rename] && !Re && ie.push({
4531
4536
  key: "rename",
4532
- label: r.actionLabels[w.Rename],
4537
+ label: s.actionLabels[w.Rename],
4533
4538
  icon: /* @__PURE__ */ o(
4534
4539
  fa,
4535
4540
  {
4536
- ...M,
4541
+ ...P,
4537
4542
  className: "text-secondary"
4538
4543
  }
4539
4544
  ),
4540
4545
  onClick: () => In(N.path)
4541
- }), r.actionLabels[w.Unshare] && vt?.includes(N.path) && !Re && ie.push({
4546
+ }), s.actionLabels[w.Unshare] && vt?.includes(N.path) && !Re && ie.push({
4542
4547
  key: "unshare",
4543
- label: r.actionLabels[w.Unshare],
4548
+ label: s.actionLabels[w.Unshare],
4544
4549
  icon: /* @__PURE__ */ o(
4545
4550
  Ho,
4546
4551
  {
4547
- width: M.size,
4548
- height: M.size,
4552
+ width: P.size,
4553
+ height: P.size,
4549
4554
  className: "text-secondary"
4550
4555
  }
4551
4556
  ),
4552
4557
  onClick: () => et?.([N])
4553
- }), r.actionLabels[w.RemoveAccess] && b?.has(N.path) && !Re && ie.push({
4558
+ }), s.actionLabels[w.RemoveAccess] && b?.has(N.path) && !Re && ie.push({
4554
4559
  key: w.RemoveAccess,
4555
- label: r.actionLabels[w.RemoveAccess],
4560
+ label: s.actionLabels[w.RemoveAccess],
4556
4561
  icon: /* @__PURE__ */ o(
4557
4562
  Ao,
4558
4563
  {
4559
- size: M.size,
4564
+ size: P.size,
4560
4565
  className: "text-secondary"
4561
4566
  }
4562
4567
  ),
@@ -4568,7 +4573,7 @@ const li = () => {
4568
4573
  ] : ie;
4569
4574
  },
4570
4575
  [
4571
- r?.actionLabels,
4576
+ s?.actionLabels,
4572
4577
  He,
4573
4578
  yt,
4574
4579
  W,
@@ -4585,16 +4590,16 @@ const li = () => {
4585
4590
  Sn,
4586
4591
  En
4587
4592
  ]
4588
- ), kn = $(() => {
4593
+ ), kn = j(() => {
4589
4594
  const N = /* @__PURE__ */ new Set();
4590
- return _.forEach((ee, ie) => N.add(ie)), N;
4591
- }, [_]), Ut = d(
4595
+ return M.forEach((ee, ie) => N.add(ie)), N;
4596
+ }, [M]), Ut = d(
4592
4597
  (N, ee) => {
4593
- P(N), j?.(ee);
4598
+ A(N), U?.(ee);
4594
4599
  },
4595
- [j, P]
4596
- ), On = ti({
4597
- selectedFiles: _,
4600
+ [U, A]
4601
+ ), On = ei({
4602
+ selectedFiles: M,
4598
4603
  actionLabels: c?.actionLabels,
4599
4604
  onDuplicate: W,
4600
4605
  onCopy: (N) => {
@@ -4610,14 +4615,14 @@ const li = () => {
4610
4615
  getCurrentFolderPath: () => I ?? "/",
4611
4616
  sharedWithMeIds: vt,
4612
4617
  sharedByMePaths: b,
4613
- onClearSelection: U,
4618
+ onClearSelection: V,
4614
4619
  forbiddenSymbolsRegExp: He
4615
4620
  }), Gt = d(
4616
4621
  (N) => {
4617
4622
  C?.onTabChange?.(N), Qe();
4618
4623
  },
4619
4624
  [C, Qe]
4620
- ), wo = d(() => C && A.size === 0 ? /* @__PURE__ */ X(
4625
+ ), wo = d(() => C && O.size === 0 ? /* @__PURE__ */ X(
4621
4626
  "div",
4622
4627
  {
4623
4628
  className: aa,
@@ -4626,7 +4631,7 @@ const li = () => {
4626
4631
  children: [
4627
4632
  e,
4628
4633
  /* @__PURE__ */ o(
4629
- js,
4634
+ $r,
4630
4635
  {
4631
4636
  ...C,
4632
4637
  onTabChange: Gt,
@@ -4639,18 +4644,18 @@ const li = () => {
4639
4644
  )
4640
4645
  ]
4641
4646
  }
4642
- ) : A.size > 0 && c ? /* @__PURE__ */ o(
4647
+ ) : O.size > 0 && c ? /* @__PURE__ */ o(
4643
4648
  "div",
4644
4649
  {
4645
4650
  className: aa,
4646
4651
  role: "toolbar",
4647
4652
  "aria-label": "File Manager Toolbar",
4648
4653
  children: /* @__PURE__ */ o(
4649
- Ws,
4654
+ Br,
4650
4655
  {
4651
4656
  ...c,
4652
- selectedCount: A.size,
4653
- onClearSelection: U,
4657
+ selectedCount: O.size,
4658
+ onClearSelection: V,
4654
4659
  actions: On
4655
4660
  }
4656
4661
  )
@@ -4658,8 +4663,8 @@ const li = () => {
4658
4663
  ) : null, [
4659
4664
  Gt,
4660
4665
  c,
4661
- A,
4662
- U,
4666
+ O,
4667
+ V,
4663
4668
  On,
4664
4669
  f,
4665
4670
  T,
@@ -4669,7 +4674,7 @@ const li = () => {
4669
4674
  un,
4670
4675
  e
4671
4676
  ]);
4672
- mr(
4677
+ ms(
4673
4678
  no,
4674
4679
  () => ({
4675
4680
  createFolder: je
@@ -4683,17 +4688,17 @@ const li = () => {
4683
4688
  "aria-label": "File Manager Tree Navigation",
4684
4689
  className: "min-h-0 min-w-0 h-full flex-none",
4685
4690
  children: /* @__PURE__ */ o(
4686
- zr,
4691
+ Ls,
4687
4692
  {
4688
4693
  defaultWidth: Nt,
4689
4694
  width: Nt,
4690
4695
  onResizeStop: Rn,
4691
4696
  onResize: po,
4692
- minWidth: qr,
4693
- maxWidth: Yr,
4697
+ minWidth: Xs,
4698
+ maxWidth: qs,
4694
4699
  enabled: !x,
4695
4700
  children: /* @__PURE__ */ o(
4696
- _r,
4701
+ zs,
4697
4702
  {
4698
4703
  width: Nt,
4699
4704
  title: Me,
@@ -4703,17 +4708,17 @@ const li = () => {
4703
4708
  isOpened: !x,
4704
4709
  onToggle: F,
4705
4710
  children: /* @__PURE__ */ o(
4706
- ei,
4711
+ Jr,
4707
4712
  {
4708
4713
  ...Tn,
4709
- items: s,
4714
+ items: r,
4710
4715
  rootItemPath: a?.path,
4711
4716
  rootItemLabel: a?.label,
4712
4717
  selectedPath: I,
4713
4718
  sharedByMePaths: b,
4714
4719
  forbiddenSymbolsRegExp: He,
4715
4720
  forbiddenSymbolsTooltip: pt,
4716
- onItemClick: q,
4721
+ onItemClick: Q,
4717
4722
  areHiddenFilesVisible: f,
4718
4723
  getContextMenuItems: Ht,
4719
4724
  renamedPath: nt === Rt.Tree ? Z : void 0,
@@ -4723,7 +4728,7 @@ const li = () => {
4723
4728
  createdFolderPath: Fn === ut.Tree ? $e : null,
4724
4729
  onCreateFolderCancel: Qe,
4725
4730
  onCreateFolderSave: Ct,
4726
- newFolderDefaultName: re
4731
+ newFolderDefaultName: se
4727
4732
  }
4728
4733
  )
4729
4734
  }
@@ -4740,14 +4745,14 @@ const li = () => {
4740
4745
  bn,
4741
4746
  F,
4742
4747
  Tn,
4743
- s,
4748
+ r,
4744
4749
  a?.path,
4745
4750
  a?.label,
4746
4751
  I,
4747
4752
  b,
4748
4753
  He,
4749
4754
  pt,
4750
- q,
4755
+ Q,
4751
4756
  f,
4752
4757
  Ht,
4753
4758
  nt,
@@ -4759,8 +4764,8 @@ const li = () => {
4759
4764
  $e,
4760
4765
  Qe,
4761
4766
  Ct,
4762
- re
4763
- ]), Ln = ci({
4767
+ se
4768
+ ]), Ln = li({
4764
4769
  actionLabels: p?.actionLabels,
4765
4770
  onDuplicate: (N) => W([N]),
4766
4771
  onCopy: (N) => {
@@ -4779,8 +4784,8 @@ const li = () => {
4779
4784
  sharedByMePaths: b,
4780
4785
  onManagePermissions: (N) => yt?.(N),
4781
4786
  onPreview: (N) => ao?.(N),
4782
- onOpenInNewTab: (N) => ro?.(N),
4783
- previewExtensions: so,
4787
+ onOpenInNewTab: (N) => so?.(N),
4788
+ previewExtensions: ro,
4784
4789
  isRenameFileAvailable: io,
4785
4790
  isDuplicateFolderAvailable: lo,
4786
4791
  forbiddenSymbolsRegExp: He,
@@ -4788,19 +4793,19 @@ const li = () => {
4788
4793
  onGridCreateChildFolder: ho
4789
4794
  }), Vt = d(
4790
4795
  (N) => {
4791
- const ee = Ke(s, N.path);
4796
+ const ee = Ke(r, N.path);
4792
4797
  return ee ? Ln(ee) : [];
4793
4798
  },
4794
- [s, Ln]
4799
+ [r, Ln]
4795
4800
  ), Do = d(
4796
4801
  (N, ee, ie) => Dt ? !1 : xt(N, ee, ie),
4797
4802
  [Dt, xt]
4798
- ), { actionsColumnDef: xo } = es({
4803
+ ), { actionsColumnDef: xo } = Js({
4799
4804
  getContextMenuItems: Vt,
4800
4805
  isRowDisabled: Do,
4801
4806
  allowedFileTypes: D,
4802
- buttonClassName: ze ? "" : $r
4803
- }), { columnDefs: $t } = ii({
4807
+ buttonClassName: ze ? "" : Vs
4808
+ }), { columnDefs: $t } = ri({
4804
4809
  userColumnDefs: fo,
4805
4810
  filterable: mo,
4806
4811
  dateLocale: Co,
@@ -4815,9 +4820,9 @@ const li = () => {
4815
4820
  (N) => {
4816
4821
  N.colDef.colId === "ag-Grid-SelectionColumn" || N.colDef.colId === ye.Actions || Z && N.data?.path === Z || N.data?.isTemporary || zt && zt.includes(
4817
4822
  N.colDef.colId
4818
- ) || N.data && J(N.data);
4823
+ ) || N.data && te(N.data);
4819
4824
  },
4820
- [Z, J, zt]
4825
+ [Z, te, zt]
4821
4826
  ), dt = d(
4822
4827
  () => /* @__PURE__ */ o(
4823
4828
  wa,
@@ -4828,7 +4833,7 @@ const li = () => {
4828
4833
  containerClassName: "gap-3 size-full bg-layer-sunken border rounded-[4px] border-primary",
4829
4834
  titleClassName: "mt-2 !text-lg",
4830
4835
  icon: lt || /* @__PURE__ */ o(
4831
- ur,
4836
+ us,
4832
4837
  {
4833
4838
  size: 100,
4834
4839
  stroke: 0.5,
@@ -4838,19 +4843,19 @@ const li = () => {
4838
4843
  }
4839
4844
  ),
4840
4845
  [wn, lt, yn]
4841
- ), _n = $(() => (N) => N.path, []), Bn = $(
4846
+ ), _n = j(() => (N) => N.path, []), Bn = j(
4842
4847
  () => an(
4843
4848
  "min-h-[248px] overflow-auto md:min-h-[266px]",
4844
- st ? "border border-dashed border-info" : "",
4845
- ft && !st ? "border border-dashed border-primary" : ""
4849
+ rt ? "border border-dashed border-info" : "",
4850
+ ft && !rt ? "border border-dashed border-primary" : ""
4846
4851
  ),
4847
- [st, ft]
4848
- ), Wn = $(
4852
+ [rt, ft]
4853
+ ), Wn = j(
4849
4854
  () => ({
4850
4855
  ...ot.additionalGridOptions,
4851
4856
  onCellClicked: zn,
4852
- headerHeight: sa,
4853
- rowHeight: sa,
4857
+ headerHeight: ra,
4858
+ rowHeight: ra,
4854
4859
  rowClass: "group/grid-row",
4855
4860
  defaultColDef: {
4856
4861
  ...ot.additionalGridOptions?.defaultColDef,
@@ -4870,12 +4875,12 @@ const li = () => {
4870
4875
  createdFolderPath: $e,
4871
4876
  newFolderTempId: fn,
4872
4877
  sharedByMePaths: b,
4873
- selectedPaths: A,
4878
+ selectedPaths: O,
4874
4879
  disabledRowIds: ct,
4875
4880
  forbiddenSymbolsRegExp: He,
4876
4881
  forbiddenSymbolsTooltip: pt,
4877
4882
  hideSearchPathItemName: _t,
4878
- newFolderDefaultName: re,
4883
+ newFolderDefaultName: se,
4879
4884
  filesLoading: n
4880
4885
  }
4881
4886
  }),
@@ -4896,15 +4901,15 @@ const li = () => {
4896
4901
  $e,
4897
4902
  fn,
4898
4903
  b,
4899
- A,
4904
+ O,
4900
4905
  ct,
4901
4906
  He,
4902
4907
  pt,
4903
4908
  _t,
4904
- re,
4909
+ se,
4905
4910
  n
4906
4911
  ]
4907
- ), bo = $(
4912
+ ), bo = j(
4908
4913
  () => S.length === 0 && !tt && !n ? dt() : /* @__PURE__ */ o(
4909
4914
  Ca,
4910
4915
  {
@@ -4914,7 +4919,7 @@ const li = () => {
4914
4919
  loading: n || vn,
4915
4920
  getContextMenuItems: Vt,
4916
4921
  withoutHeaderBorders: ze,
4917
- onGridApiChange: te,
4922
+ onGridApiChange: Y,
4918
4923
  className: Bn,
4919
4924
  ...ot,
4920
4925
  selectionMode: An,
@@ -4922,7 +4927,7 @@ const li = () => {
4922
4927
  additionalGridOptions: Wn,
4923
4928
  selectedRowIds: kn,
4924
4929
  onSelectionChange: Ut,
4925
- wrapperBorder: !st && !ft,
4930
+ wrapperBorder: !rt && !ft,
4926
4931
  disabledRowIds: ct,
4927
4932
  allowDisabledContextMenu: Dt
4928
4933
  }
@@ -4937,7 +4942,7 @@ const li = () => {
4937
4942
  vn,
4938
4943
  Vt,
4939
4944
  ze,
4940
- te,
4945
+ Y,
4941
4946
  Bn,
4942
4947
  ot,
4943
4948
  An,
@@ -4945,7 +4950,7 @@ const li = () => {
4945
4950
  Wn,
4946
4951
  kn,
4947
4952
  Ut,
4948
- st,
4953
+ rt,
4949
4954
  ft,
4950
4955
  ct,
4951
4956
  Dt
@@ -4955,27 +4960,27 @@ const li = () => {
4955
4960
  "div",
4956
4961
  {
4957
4962
  className: Ee(
4958
- Wr,
4963
+ Bs,
4959
4964
  {
4960
- "gap-3 pt-4": c && A.size > 0,
4965
+ "gap-3 pt-4": c && O.size > 0,
4961
4966
  "gap-4 p-3 pt-4": ze,
4962
- "gap-2 pt-2": ze && c && A.size > 0
4967
+ "gap-2 pt-2": ze && c && O.size > 0
4963
4968
  },
4964
4969
  t
4965
4970
  ),
4966
4971
  children: [
4967
4972
  wo(),
4968
- /* @__PURE__ */ X("div", { className: Ee(Hr, Lt), children: [
4973
+ /* @__PURE__ */ X("div", { className: Ee(Ws, Lt), children: [
4969
4974
  No(),
4970
4975
  /* @__PURE__ */ X(
4971
4976
  "div",
4972
4977
  {
4973
- className: Ee(Ur, {
4978
+ className: Ee(Hs, {
4974
4979
  "gap-3": ze
4975
4980
  }),
4976
4981
  children: [
4977
4982
  l && /* @__PURE__ */ o(
4978
- $s,
4983
+ Vr,
4979
4984
  {
4980
4985
  ...i ?? {},
4981
4986
  makeHref: (N) => N.join("/"),
@@ -4983,8 +4988,8 @@ const li = () => {
4983
4988
  onItemClick: B,
4984
4989
  rootItemPath: a?.path,
4985
4990
  rootItemLabel: a?.label,
4986
- value: k,
4987
- onSearchChange: L,
4991
+ value: _,
4992
+ onSearchChange: k,
4988
4993
  isCompactView: ze,
4989
4994
  labelClassName: "dial-tiny-text"
4990
4995
  }
@@ -4994,7 +4999,7 @@ const li = () => {
4994
4999
  {
4995
5000
  role: "region",
4996
5001
  "aria-label": "File Manager Grid View",
4997
- className: Ee(Vr, "relative"),
5002
+ className: Ee(Gs, "relative"),
4998
5003
  onDragEnter: Xn,
4999
5004
  onDragLeave: qn,
5000
5005
  onDragOver: Yn,
@@ -5002,7 +5007,7 @@ const li = () => {
5002
5007
  children: [
5003
5008
  bo,
5004
5009
  /* @__PURE__ */ o(
5005
- Os,
5010
+ kr,
5006
5011
  {
5007
5012
  disabledGridRowIds: ct,
5008
5013
  gridRows: S,
@@ -5020,17 +5025,17 @@ const li = () => {
5020
5025
  )
5021
5026
  ] }),
5022
5027
  /* @__PURE__ */ o(
5023
- Hs,
5028
+ Wr,
5024
5029
  {
5025
5030
  ...v,
5026
- open: V,
5027
- itemsToDelete: Q,
5031
+ open: $,
5032
+ itemsToDelete: J,
5028
5033
  onClose: R,
5029
5034
  onConfirm: H
5030
5035
  }
5031
5036
  ),
5032
5037
  /* @__PURE__ */ o(
5033
- Ls,
5038
+ Or,
5034
5039
  {
5035
5040
  ...u,
5036
5041
  open: xe,
@@ -5040,7 +5045,7 @@ const li = () => {
5040
5045
  ue === ge.Copy ? be(N) : De(N), we();
5041
5046
  },
5042
5047
  mode: ue,
5043
- items: s,
5048
+ items: r,
5044
5049
  rootItem: a,
5045
5050
  gridOptions: {
5046
5051
  columnDefs: $t.filter(
@@ -5056,7 +5061,7 @@ const li = () => {
5056
5061
  u?.setDestinationFolderPath?.(N);
5057
5062
  },
5058
5063
  sourceFolder: u?.sourceFolder ?? I,
5059
- treeOptions: { header: r?.header },
5064
+ treeOptions: { header: s?.header },
5060
5065
  onFolderPopupPathChange: oo,
5061
5066
  showHiddenFileSwitcher: le,
5062
5067
  showCreateFolderButton: Dn,
@@ -5088,7 +5093,7 @@ const li = () => {
5088
5093
  }
5089
5094
  ),
5090
5095
  /* @__PURE__ */ o(
5091
- qs,
5096
+ Xr,
5092
5097
  {
5093
5098
  open: qe,
5094
5099
  onClose: kt,
@@ -5107,12 +5112,12 @@ const li = () => {
5107
5112
  ]
5108
5113
  }
5109
5114
  ) });
5110
- }, wi = (e, t = nn.MyFiles) => {
5111
- const s = Object.values(nn).includes(
5115
+ }, yi = (e, t = nn.MyFiles) => {
5116
+ const r = Object.values(nn).includes(
5112
5117
  t
5113
- ) ? t : nn.MyFiles, [a, n] = z(s), r = (i) => {
5118
+ ) ? t : nn.MyFiles, [a, n] = z(r), s = (i) => {
5114
5119
  n(i);
5115
- }, l = $(() => {
5120
+ }, l = j(() => {
5116
5121
  if (e)
5117
5122
  return Object.values(nn).map((i) => ({
5118
5123
  id: i,
@@ -5121,31 +5126,31 @@ const li = () => {
5121
5126
  }, [e]);
5122
5127
  return {
5123
5128
  activeTab: a,
5124
- handleTabChange: r,
5129
+ handleTabChange: s,
5125
5130
  tabs: l
5126
5131
  };
5127
5132
  };
5128
5133
  export {
5129
5134
  ge as DestinationFolderMode,
5130
- Ls as DialDestinationFolderPopup,
5131
- ui as DialFileManager,
5135
+ Or as DialDestinationFolderPopup,
5136
+ di as DialFileManager,
5132
5137
  w as DialFileManagerActions,
5133
5138
  Ce as DialFileManagerConflictActions,
5134
5139
  ke as DialFileManagerConflictStrategies,
5135
5140
  nn as DialFileManagerTabs,
5136
- O as DialFileNodeType,
5141
+ L as DialFileNodeType,
5137
5142
  St as DialFilePermission,
5138
- Jr as DialFileResourceType,
5139
- ei as DialFoldersTree,
5143
+ Qs as DialFileResourceType,
5144
+ Jr as DialFoldersTree,
5140
5145
  ye as FileManagerColumnKey,
5141
5146
  ut as FileManagerCreateFolderTriggerView,
5142
5147
  Be as FileManagerCreateFolderType,
5143
- ks as FileManagerProvider,
5148
+ Mr as FileManagerProvider,
5144
5149
  Rt as FileManagerRenameTriggerView,
5145
- os as GridSelectionMode,
5146
- oi as NAME_COLUMN,
5147
- ri as SIZE_COLUMN,
5148
- ai as UPDATED_AT_COLUMN,
5149
- wi as useDialFileManagerTabs,
5150
- li as useFileManagerContext
5150
+ nr as GridSelectionMode,
5151
+ ni as NAME_COLUMN,
5152
+ ai as SIZE_COLUMN,
5153
+ oi as UPDATED_AT_COLUMN,
5154
+ yi as useDialFileManagerTabs,
5155
+ ii as useFileManagerContext
5151
5156
  };