@epam/ai-dial-react-file-manager 0.2.0-dev.5 → 0.2.0-dev.7

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.
@@ -3,10 +3,10 @@ import { IconCircleFilled as Un, IconChevronDown as Qa, IconDotsVertical as rn,
3
3
  import an from "classnames";
4
4
  import * as Ve from "react";
5
5
  import { useState as z, useMemo as G, useCallback as d, useRef as de, useEffect as fe, createContext as us, useLayoutEffect as hs, useContext as ps, useImperativeHandle as fs } from "react";
6
- import { DialFolderName as Oo, DialFileName as Lo, Dropdown as ht, DropdownTrigger as fa, DIAL_ICON_SIZE as zo, Grid as ma, Popup as _o, PopupSize as Vn, RadioGroup as Jo, NeutralButton as $n, PrimaryButton as on, GhostIconButton as pt, BASE_ICON_PROPS as A, mergeClasses as Ee, NotificationVariant as Eo, ElementSize as ln, NOT_ALLOWED_SYMBOLS_REGEXP as ms, TooltipContainer as Cs, TooltipPlacement as gs, TooltipTrigger as vs, TooltipContent as ys, Notification as ws, ButtonAppearance as Ca, Switch as ga, Tooltip as Gn, FlexibleActionsDirection as tn, BASE_ICON_SIZE as va, ConfirmationPopup as Ns, ConfirmationPopupVariant as xs, DialBreadcrumb as bs, Search as Ds, ButtonVariant as Ts, Tabs as Rs, ButtonDropdown as ea, Skeleton as qt, SkeletonVariant as Yt, EllipsisTooltip as Rt, DialItemType as He, DialFileIcon as Fs, DialSharedEntityIndicator as ta, DialIcon as Is, Spinner as Es, editableContainerProps as Ss, Input as As, useEditableItem as Ps, NoDataContent as ya, DateCellRenderer as wa, convertToDate as Ms, DEFAULT_DATE_LOCALE as ks, DEFAULT_DATE_FORMAT_OPTIONS as Os, DropdownItemType as Na, ConditionalResizableContainer as Ls, CollapsibleSidebar as zs } from "@epam/ai-dial-ui-kit";
6
+ import { DialFolderName as Oo, DialFileName as Lo, Dropdown as ht, DropdownTrigger as fa, DIAL_ICON_SIZE as zo, Grid as ma, Popup as _o, PopupSize as Vn, RadioGroup as Jo, NeutralButton as $n, PrimaryButton as on, GhostIconButton as pt, BASE_ICON_PROPS as A, mergeClasses as Ee, NotificationVariant as Eo, ElementSize as ln, NOT_ALLOWED_SYMBOLS_REGEXP as ms, TooltipContainer as Cs, TooltipPlacement as gs, TooltipTrigger as vs, TooltipContent as ys, Notification as ws, ButtonAppearance as Ca, Switch as ga, Tooltip as Gn, FlexibleActionsDirection as tn, BASE_ICON_SIZE as va, ConfirmationPopup as Ns, ConfirmationPopupVariant as bs, DialBreadcrumb as xs, Search as Ds, ButtonVariant as Ts, Tabs as Rs, ButtonDropdown as ea, Skeleton as qt, SkeletonVariant as Yt, EllipsisTooltip as Rt, DialItemType as He, DialFileIcon as Fs, DialSharedEntityIndicator as ta, DialIcon as Is, Spinner as Es, editableContainerProps as Ss, Input as As, useEditableItem as Ps, NoDataContent as ya, DateCellRenderer as wa, convertToDate as Ms, DEFAULT_DATE_LOCALE as ks, DEFAULT_DATE_FORMAT_OPTIONS as Os, DropdownItemType as Na, ConditionalResizableContainer as Ls, CollapsibleSidebar as zs } from "@epam/ai-dial-ui-kit";
7
7
  import { extensions as na } from "mime-types";
8
8
  import { createPortal as _s } from "react-dom";
9
- const xa = (e) => /* @__PURE__ */ Ve.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ve.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__ */ Ve.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ve.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" })), Wo = (e) => /* @__PURE__ */ Ve.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ve.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" })), Ho = (e) => /* @__PURE__ */ Ve.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ve.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" })), Bo = (e) => /* @__PURE__ */ Ve.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ve.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" }));
9
+ const ba = (e) => /* @__PURE__ */ Ve.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ve.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" })), xa = (e) => /* @__PURE__ */ Ve.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ve.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" })), Wo = (e) => /* @__PURE__ */ Ve.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ve.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" })), Ho = (e) => /* @__PURE__ */ Ve.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ve.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" })), Bo = (e) => /* @__PURE__ */ Ve.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ve.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 || {}), N = /* @__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))(N || {}), Ce = /* @__PURE__ */ ((e) => (e.Replace = "replace", e.Duplicate = "duplicate", e.Cancel = "cancel", e))(Ce || {}), ze = /* @__PURE__ */ ((e) => (e.ReplaceAll = "replaceAll", e.DuplicateAll = "duplicateAll", e.DecideForEach = "decideForEach", e))(ze || {}), ge = /* @__PURE__ */ ((e) => (e.Copy = "copy", e.Move = "move", e))(ge || {}), Ft = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(Ft || {}), ut = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(ut || {}), We = /* @__PURE__ */ ((e) => (e.Folder = "folder", e.Child = "child", e.Sibling = "sibling", e))(We || {}), 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
11
  const Ws = "w-full h-full grid grid-rows-[auto_1fr] gap-5 p-6 overflow-hidden min-w-0 bg-layer-base", oa = "w-full text-secondary flex items-center gap-2", Hs = "flex min-h-0 min-w-0 h-full gap-4 overflow-hidden", Bs = "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", Vs = "flex-1 w-full rounded text-secondary overflow-auto min-h-0 min-w-0", $s = "opacity-0 pointer-events-none group-hover/grid-row:opacity-100 group-hover/grid-row:pointer-events-auto", Gs = 280, js = "Files", st = 20, Zs = "Files", Ro = ".dial_folder", aa = "New folder", Xs = 280, qs = 460, sa = 44, Ys = 800, Ks = [
12
12
  ye.Name,
@@ -33,7 +33,7 @@ const ra = ({
33
33
  nameColumnLabel: y = "Name",
34
34
  actionColumnLabel: g = "Action"
35
35
  }) => {
36
- const m = s.length === 1, D = m ? s[0]?.name : "", b = C?.[Ce.Replace] ?? "Replace", h = C?.[Ce.Duplicate] ?? "Duplicate", f = C?.[Ce.Cancel] ?? "Cancel", I = c?.[ze.ReplaceAll] ?? "Replace all", w = c?.[ze.DuplicateAll] ?? "Duplicate all", R = c?.[ze.DecideForEach] ?? "Decide for each", [F, S] = z(
36
+ const m = s.length === 1, D = m ? s[0]?.name : "", x = C?.[Ce.Replace] ?? "Replace", h = C?.[Ce.Duplicate] ?? "Duplicate", f = C?.[Ce.Cancel] ?? "Cancel", I = c?.[ze.ReplaceAll] ?? "Replace all", w = c?.[ze.DuplicateAll] ?? "Duplicate all", R = c?.[ze.DecideForEach] ?? "Decide for each", [F, S] = z(
37
37
  Ce.Replace
38
38
  ), [L, W] = z(
39
39
  ze.ReplaceAll
@@ -59,14 +59,14 @@ const ra = ({
59
59
  () => [
60
60
  {
61
61
  value: Ce.Replace,
62
- label: b
62
+ label: x
63
63
  },
64
64
  {
65
65
  value: Ce.Duplicate,
66
66
  label: h
67
67
  }
68
68
  ],
69
- [b, h]
69
+ [x, h]
70
70
  ), ie = G(() => s.map((H) => ({
71
71
  id: H.path,
72
72
  name: H.name,
@@ -110,7 +110,7 @@ const ra = ({
110
110
  const De = [
111
111
  {
112
112
  key: Ce.Replace,
113
- label: b,
113
+ label: x,
114
114
  icon: /* @__PURE__ */ a(Un, { size: 10, className: "text-violet-1" })
115
115
  },
116
116
  {
@@ -123,7 +123,7 @@ const ra = ({
123
123
  label: f,
124
124
  icon: /* @__PURE__ */ a(Un, { size: 10, className: "text-error" })
125
125
  }
126
- ], xe = De.find(
126
+ ], be = De.find(
127
127
  (te) => te.key === H.data.action
128
128
  ), U = _ === H.data.path;
129
129
  return /* @__PURE__ */ a("div", { className: "flex items-center h-full", children: /* @__PURE__ */ a(
@@ -149,8 +149,8 @@ const ra = ({
149
149
  },
150
150
  children: /* @__PURE__ */ q("button", { type: "button", className: "flex items-center gap-2", children: [
151
151
  /* @__PURE__ */ q("span", { className: "flex items-center gap-2", children: [
152
- xe?.icon,
153
- xe?.label ?? b
152
+ be?.icon,
153
+ be?.label ?? x
154
154
  ] }),
155
155
  /* @__PURE__ */ a(
156
156
  Qa,
@@ -170,11 +170,11 @@ const ra = ({
170
170
  ], [
171
171
  y,
172
172
  g,
173
- b,
173
+ x,
174
174
  h,
175
175
  f,
176
176
  _
177
- ]), be = G(
177
+ ]), xe = G(
178
178
  () => [
179
179
  {
180
180
  value: ze.ReplaceAll,
@@ -276,7 +276,7 @@ const ra = ({
276
276
  {
277
277
  id: "multiple-files-conflict",
278
278
  ariaLabel: M,
279
- items: be,
279
+ items: xe,
280
280
  value: L,
281
281
  onChange: (H) => W(H),
282
282
  contentClassName: "ml-0"
@@ -599,7 +599,7 @@ const lr = (e) => {
599
599
  u,
600
600
  t,
601
601
  c
602
- ]), b = d(() => {
602
+ ]), x = d(() => {
603
603
  if (!l) return;
604
604
  const { files: f, destinationFolder: I, metadata: w } = l, R = y(
605
605
  I,
@@ -651,7 +651,7 @@ const lr = (e) => {
651
651
  closeConflictResolution: c,
652
652
  handleReplaceAll: m,
653
653
  handleDuplicateAll: D,
654
- handleCancelAll: b,
654
+ handleCancelAll: x,
655
655
  handleDecideForEach: h
656
656
  };
657
657
  }, Cr = ({
@@ -664,7 +664,7 @@ const lr = (e) => {
664
664
  getCopyHeader: l,
665
665
  getMoveHeader: i
666
666
  }) => {
667
- const [p, C] = z(!1), [c, v] = z([]), [u, y] = z([]), [g, m] = z(ge.Copy), [D, b] = z(), [h, f] = z(null), {
667
+ const [p, C] = z(!1), [c, v] = z([]), [u, y] = z([]), [g, m] = z(ge.Copy), [D, x] = z(), [h, f] = z(null), {
668
668
  conflictingFiles: I,
669
669
  conflictResolutionOpen: w,
670
670
  hasActiveConflictRef: R,
@@ -686,7 +686,7 @@ const lr = (e) => {
686
686
  ), n?.()));
687
687
  }
688
688
  }), M = d(() => {
689
- v([]), y([]), f(null), b(void 0);
689
+ v([]), y([]), f(null), x(void 0);
690
690
  }, []), Y = d(
691
691
  (U) => {
692
692
  const te = F(U, c, {
@@ -744,7 +744,7 @@ const lr = (e) => {
744
744
  j(U), M();
745
745
  },
746
746
  [j, M]
747
- ), be = d(
747
+ ), xe = d(
748
748
  (U) => {
749
749
  const te = U.at(0)?.parentPath ?? "/", pe = S(
750
750
  te,
@@ -765,14 +765,14 @@ const lr = (e) => {
765
765
  (U) => {
766
766
  v(U);
767
767
  const te = U[0]?.parentPath ?? U[0]?.folderId;
768
- b(te), l && U.length > 0 ? H(l(U.length, U[0]?.name)) : H(void 0);
768
+ x(te), l && U.length > 0 ? H(l(U.length, U[0]?.name)) : H(void 0);
769
769
  },
770
770
  [l]
771
- ), xe = d(
771
+ ), be = d(
772
772
  (U) => {
773
773
  y(U);
774
774
  const te = U[0]?.parentPath ?? U[0]?.folderId;
775
- b(te), f({
775
+ x(te), f({
776
776
  type: ge.Move,
777
777
  sourceFolder: te
778
778
  }), i && U.length > 0 ? H(i(U.length, U[0]?.name)) : H(void 0);
@@ -780,7 +780,7 @@ const lr = (e) => {
780
780
  [i]
781
781
  );
782
782
  return {
783
- handleDuplicate: be,
783
+ handleDuplicate: xe,
784
784
  handleCloseDestinationFolderPopup: Te,
785
785
  handleOpenDestinationFolderPopup: he,
786
786
  handleCopyTo: Y,
@@ -789,7 +789,7 @@ const lr = (e) => {
789
789
  destinationFolderMode: g,
790
790
  destinationFolderTitle: Ne,
791
791
  handleSetCopiedFiles: De,
792
- handleSetMovedFiles: xe,
792
+ handleSetMovedFiles: be,
793
793
  clearState: M,
794
794
  conflictingFiles: I,
795
795
  conflictResolutionOpen: w,
@@ -881,7 +881,7 @@ const lr = (e) => {
881
881
  uploadEnabled: i = !0,
882
882
  currentFolder: p
883
883
  } = {}) => {
884
- const [C, c] = z(!1), [v, u] = z(!1), [y, g] = z(), m = de(null), D = de(""), b = de([]), h = G(() => !!p?.permissions?.includes(St.WRITE), [p]), [f, I] = z(/* @__PURE__ */ new Map()), [w, R] = z(null), F = d(
884
+ const [C, c] = z(!1), [v, u] = z(!1), [y, g] = z(), m = de(null), D = de(""), x = de([]), h = G(() => !!p?.permissions?.includes(St.WRITE), [p]), [f, I] = z(/* @__PURE__ */ new Map()), [w, R] = z(null), F = d(
885
885
  (T) => !o || o.includes("*/*") ? T : T.filter(
886
886
  ({ fileContent: B, name: $ }) => Uo(o, B.type, $)
887
887
  ),
@@ -900,7 +900,7 @@ const lr = (e) => {
900
900
  handleCancelAll: oe,
901
901
  handleDecideForEach: V
902
902
  } = Ta({
903
- getDestinationFiles: () => b.current,
903
+ getDestinationFiles: () => x.current,
904
904
  onResolve: (T, B) => {
905
905
  if (!i || !h) {
906
906
  S();
@@ -964,7 +964,7 @@ const lr = (e) => {
964
964
  ), we = d(
965
965
  async (T, B, $) => {
966
966
  if (!i || !h) return !1;
967
- g(void 0), b.current = $;
967
+ g(void 0), x.current = $;
968
968
  const J = l ? T.map((ae) => ({
969
969
  ...ae,
970
970
  name: l(ae.name)
@@ -1012,7 +1012,7 @@ const lr = (e) => {
1012
1012
  S,
1013
1013
  h
1014
1014
  ]
1015
- ), be = d(() => {
1015
+ ), xe = d(() => {
1016
1016
  M(), S();
1017
1017
  }, [M, S]), he = d(() => {
1018
1018
  Y(), S();
@@ -1030,7 +1030,7 @@ const lr = (e) => {
1030
1030
  !i || !h || (T.preventDefault(), T.stopPropagation(), T.dataTransfer.types.includes("Files") && c(!0));
1031
1031
  },
1032
1032
  [i, h]
1033
- ), xe = d(
1033
+ ), be = d(
1034
1034
  (T) => {
1035
1035
  if (!i || !h) return;
1036
1036
  T.preventDefault(), T.stopPropagation();
@@ -1108,7 +1108,7 @@ const lr = (e) => {
1108
1108
  await we(
1109
1109
  J,
1110
1110
  D.current,
1111
- b.current
1111
+ x.current
1112
1112
  );
1113
1113
  } catch {
1114
1114
  g(n.validationError || "Upload failed");
@@ -1135,7 +1135,7 @@ const lr = (e) => {
1135
1135
  }, [o]);
1136
1136
  const _e = d(
1137
1137
  (T, B) => {
1138
- !i || !h || (D.current = T, b.current = B, m.current && m.current.click());
1138
+ !i || !h || (D.current = T, x.current = B, m.current && m.current.click());
1139
1139
  },
1140
1140
  [i, h]
1141
1141
  ), ke = d(
@@ -1159,7 +1159,7 @@ const lr = (e) => {
1159
1159
  contentLength: X.size,
1160
1160
  contentType: X.type
1161
1161
  };
1162
- if (b.current = B, R({ destinationFolder: T }), I(
1162
+ if (x.current = B, R({ destinationFolder: T }), I(
1163
1163
  /* @__PURE__ */ new Map([[Pe.path, { fileContent: X, name: Ae }]])
1164
1164
  ), P(T, [Pe], {
1165
1165
  destinationFolder: T
@@ -1190,7 +1190,7 @@ const lr = (e) => {
1190
1190
  isDraggingOverWindow: v,
1191
1191
  uploadError: y,
1192
1192
  handleDragEnter: De,
1193
- handleDragLeave: xe,
1193
+ handleDragLeave: be,
1194
1194
  handleDragOver: U,
1195
1195
  handleDrop: te,
1196
1196
  clearError: Se,
@@ -1203,7 +1203,7 @@ const lr = (e) => {
1203
1203
  hasActiveUploadConflictRef: k,
1204
1204
  openUploadConflictResolution: j,
1205
1205
  closeUploadConflictResolution: H,
1206
- handleUploadConflictReplace: be,
1206
+ handleUploadConflictReplace: xe,
1207
1207
  handleUploadConflictDuplicate: he,
1208
1208
  handleUploadConflictCancel: Te,
1209
1209
  handleUploadConflictDecideForEach: Ne
@@ -1212,19 +1212,19 @@ const lr = (e) => {
1212
1212
  hiddenItemWarning: `${Eo.Warning}__A dot at the start of the name will make the item hidden`
1213
1213
  }, Ia = {
1214
1214
  consecutiveDotsError: "Name cannot contain consecutive dots"
1215
- }, xr = {
1215
+ }, br = {
1216
1216
  emptyName: "Name cannot be empty",
1217
1217
  duplicateName: "An item with this name already exists",
1218
1218
  hiddenItemWarning: Fa.hiddenItemWarning,
1219
1219
  consecutiveDotsError: Ia.consecutiveDotsError
1220
1220
  };
1221
- function br(e) {
1221
+ function xr(e) {
1222
1222
  let t = e.length;
1223
1223
  for (; t > 0 && e[t - 1] === "/"; ) t--;
1224
1224
  return e.slice(0, t);
1225
1225
  }
1226
1226
  function Dr(e, t) {
1227
- const r = br(e), o = r.lastIndexOf("/");
1227
+ const r = xr(e), o = r.lastIndexOf("/");
1228
1228
  return o === -1 ? t : r.slice(0, o + 1) + t;
1229
1229
  }
1230
1230
  function Tr(e) {
@@ -1243,7 +1243,7 @@ const Rr = ({
1243
1243
  }) => {
1244
1244
  const [n, s] = z(), l = G(
1245
1245
  () => ({
1246
- ...xr,
1246
+ ...br,
1247
1247
  ...r
1248
1248
  }),
1249
1249
  [r]
@@ -1274,8 +1274,8 @@ const Rr = ({
1274
1274
  const D = Dr(
1275
1275
  n.path,
1276
1276
  m
1277
- ), b = n.parentPath;
1278
- if (!b) {
1277
+ ), x = n.parentPath;
1278
+ if (!x) {
1279
1279
  s(void 0);
1280
1280
  return;
1281
1281
  }
@@ -1284,7 +1284,7 @@ const Rr = ({
1284
1284
  destinationUrl: D,
1285
1285
  nodeType: n.nodeType
1286
1286
  };
1287
- o([h], b, b), s(void 0);
1287
+ o([h], x, x), s(void 0);
1288
1288
  },
1289
1289
  [n, o]
1290
1290
  ), v = d(
@@ -1297,21 +1297,21 @@ const Rr = ({
1297
1297
  if (m.startsWith("."))
1298
1298
  return l.hiddenItemWarning;
1299
1299
  const D = g.nodeType === O.ITEM;
1300
- let b = m;
1300
+ let x = m;
1301
1301
  if (D) {
1302
1302
  const f = la(g.name);
1303
- f && !b.endsWith(f) && (b = b + f);
1303
+ f && !x.endsWith(f) && (x = x + f);
1304
1304
  }
1305
1305
  const h = g.parentPath;
1306
1306
  if (h) {
1307
1307
  const f = Ke(e, h);
1308
1308
  if (f && new Set(
1309
1309
  (f.items ?? []).filter((w) => w.path !== g.path).map((w) => w.name.toLowerCase())
1310
- ).has(b.toLowerCase()))
1310
+ ).has(x.toLowerCase()))
1311
1311
  return l.duplicateName;
1312
1312
  }
1313
1313
  if (t) {
1314
- const f = t(b, g);
1314
+ const f = t(x, g);
1315
1315
  if (f)
1316
1316
  return f;
1317
1317
  }
@@ -1448,7 +1448,7 @@ const Rr = ({
1448
1448
  We.Folder
1449
1449
  ), [v, u] = z(null), [y, g] = z(
1450
1450
  null
1451
- ), [m, D] = z(""), b = de(e?.path), h = G(
1451
+ ), [m, D] = z(""), x = de(e?.path), h = G(
1452
1452
  () => ({
1453
1453
  ...Ir,
1454
1454
  ...o
@@ -1471,11 +1471,11 @@ const Rr = ({
1471
1471
  }, [C, v, e, n]);
1472
1472
  fe(() => {
1473
1473
  const P = f?.path;
1474
- b.current !== P && s && (l(!1), p(null), D("")), b.current = P;
1474
+ x.current !== P && s && (l(!1), p(null), D("")), x.current = P;
1475
1475
  }, [f?.path, s]);
1476
1476
  const I = d(() => {
1477
1477
  if (s) return;
1478
- b.current = e?.path || "/";
1478
+ x.current = e?.path || "/";
1479
1479
  const P = `__new_folder_${Date.now()}`, _ = (e?.items ?? []).filter(
1480
1480
  (M) => M.nodeType === O.FOLDER
1481
1481
  ), j = Kt(_);
@@ -1483,7 +1483,7 @@ const Rr = ({
1483
1483
  }, [s, e]), w = d(
1484
1484
  (P) => {
1485
1485
  if (s) return;
1486
- b.current = P?.parentPath || "/";
1486
+ x.current = P?.parentPath || "/";
1487
1487
  const _ = `__new_folder_${Date.now()}`, M = (It(n, P?.parentPath || "/")?.items ?? []).filter(
1488
1488
  (oe) => oe.nodeType === O.FOLDER
1489
1489
  ), Y = Kt(M);
@@ -1493,7 +1493,7 @@ const Rr = ({
1493
1493
  ), R = d(
1494
1494
  (P) => {
1495
1495
  if (s) return;
1496
- b.current = P.path;
1496
+ x.current = P.path;
1497
1497
  const _ = `__new_folder_${Date.now()}`, j = (P?.items ?? []).filter(
1498
1498
  (Y) => Y.nodeType === O.FOLDER
1499
1499
  ), M = Kt(j);
@@ -1503,7 +1503,7 @@ const Rr = ({
1503
1503
  ), F = d(
1504
1504
  (P) => {
1505
1505
  if (s) return;
1506
- b.current = P?.parentPath || "/";
1506
+ x.current = P?.parentPath || "/";
1507
1507
  const j = (It(n, P?.parentPath || "/")?.items ?? []).filter(
1508
1508
  (Y) => Y.nodeType === O.FOLDER
1509
1509
  ), M = Kt(j);
@@ -1513,7 +1513,7 @@ const Rr = ({
1513
1513
  ), S = d(
1514
1514
  (P) => {
1515
1515
  if (s) return;
1516
- b.current = P.path;
1516
+ x.current = P.path;
1517
1517
  const _ = (P?.items ?? []).filter(
1518
1518
  (M) => M.nodeType === O.FOLDER
1519
1519
  ), j = Kt(_);
@@ -1521,7 +1521,7 @@ const Rr = ({
1521
1521
  },
1522
1522
  [s]
1523
1523
  ), L = d(() => {
1524
- l(!1), p(null), c(We.Folder), u(null), g(null), b.current = void 0, D("");
1524
+ l(!1), p(null), c(We.Folder), u(null), g(null), x.current = void 0, D("");
1525
1525
  }, []), W = d(
1526
1526
  (P) => {
1527
1527
  const _ = P.trim();
@@ -1639,7 +1639,7 @@ function Mr({
1639
1639
  }, [s]);
1640
1640
  const D = String(
1641
1641
  s ?? C ?? ""
1642
- ).trim(), b = u.current && (n || o.length > 0 || D !== ""), h = d(
1642
+ ).trim(), x = u.current && (n || o.length > 0 || D !== ""), h = d(
1643
1643
  (R) => {
1644
1644
  const F = R.trim();
1645
1645
  if (!F) {
@@ -1685,7 +1685,7 @@ function Mr({
1685
1685
  i
1686
1686
  ]);
1687
1687
  return {
1688
- isSearchMode: b,
1688
+ isSearchMode: x,
1689
1689
  searchValue: C,
1690
1690
  effectiveSearchValue: D,
1691
1691
  setSearchValue: c,
@@ -1737,7 +1737,7 @@ const Or = ({
1737
1737
  showNavigationPanel: g = !0,
1738
1738
  navigationPanelOptions: m,
1739
1739
  deleteConfirmationOptions: D,
1740
- gridOptions: b,
1740
+ gridOptions: x,
1741
1741
  toolbarOptions: h,
1742
1742
  bulkActionsToolbarOptions: f,
1743
1743
  destinationFolderPopupOptions: I,
@@ -1758,13 +1758,13 @@ const Or = ({
1758
1758
  onValidateUpload: Z,
1759
1759
  uploadEnabled: ie,
1760
1760
  uploadValidationMessages: we,
1761
- maxFileSize: be,
1761
+ maxFileSize: xe,
1762
1762
  onUploadArchive: he,
1763
1763
  prepareUploadFileName: Te,
1764
1764
  onCreateFolder: Ne,
1765
1765
  onCreateFolderValidate: H,
1766
1766
  folderCreationValidationMessages: De,
1767
- fileMetadataPopupOptions: xe,
1767
+ fileMetadataPopupOptions: be,
1768
1768
  onGetInfo: U,
1769
1769
  onUnshareFiles: te,
1770
1770
  onRemoveFilesAccess: pe,
@@ -1874,9 +1874,9 @@ const Or = ({
1874
1874
  showFiles: E = !0,
1875
1875
  showFolders: Q = !0,
1876
1876
  ...ne
1877
- } = b || {};
1877
+ } = x || {};
1878
1878
  return { showFiles: E, showFolders: Q, ...ne };
1879
- }, [b]), kt = Mt.showFiles, et = Mt.showFolders, [vt, no] = z(), vn = I?.destinationFolderPath ?? vt, tt = d(
1879
+ }, [x]), kt = Mt.showFiles, et = Mt.showFolders, [vt, no] = z(), vn = I?.destinationFolderPath ?? vt, tt = d(
1880
1880
  (E) => {
1881
1881
  I?.setDestinationFolderPath ? I.setDestinationFolderPath(E) : no(E);
1882
1882
  },
@@ -1907,7 +1907,7 @@ const Or = ({
1907
1907
  setSearchValue: zt,
1908
1908
  handleSearchChange: _t,
1909
1909
  handleSearchClear: ce,
1910
- searchResultsRows: xn
1910
+ searchResultsRows: bn
1911
1911
  } = Mr({
1912
1912
  onSearchFiles: Se,
1913
1913
  clearSearchResults: $,
@@ -1927,10 +1927,10 @@ const Or = ({
1927
1927
  ), Me = d(() => {
1928
1928
  Pt?.();
1929
1929
  }, [Pt]), {
1930
- handleCopyTo: bn,
1930
+ handleCopyTo: xn,
1931
1931
  handleMoveTo: Dn,
1932
1932
  handleDuplicate: Tn,
1933
- handleOpenDestinationFolderPopup: xt,
1933
+ handleOpenDestinationFolderPopup: bt,
1934
1934
  handleCloseDestinationFolderPopup: Rn,
1935
1935
  openDestinationFolderPopup: nt,
1936
1936
  handleSetCopiedFiles: co,
@@ -1963,7 +1963,7 @@ const Or = ({
1963
1963
  itemsToDelete: An,
1964
1964
  openDeleteConfirmation: Pn,
1965
1965
  closeDeleteConfirmation: Mn,
1966
- confirmDelete: bt
1966
+ confirmDelete: xt
1967
1967
  } = vr({
1968
1968
  onDeleteFiles: P,
1969
1969
  onDeleteSuccess: Xe
@@ -1987,13 +1987,13 @@ const Or = ({
1987
1987
  uploadConflictResolutionOpen: No,
1988
1988
  closeUploadConflictResolution: Ln,
1989
1989
  handleUploadConflictReplace: $t,
1990
- handleUploadConflictDuplicate: xo,
1991
- handleUploadConflictCancel: bo,
1990
+ handleUploadConflictDuplicate: bo,
1991
+ handleUploadConflictCancel: xo,
1992
1992
  handleUploadConflictDecideForEach: Gt
1993
1993
  } = Nr({
1994
1994
  onUploadFiles: Jn,
1995
1995
  onValidateUpload: Z,
1996
- maxFileSize: be,
1996
+ maxFileSize: xe,
1997
1997
  onUploadArchive: eo,
1998
1998
  prepareUploadFileName: Te,
1999
1999
  allowedFileTypes: J,
@@ -2030,7 +2030,7 @@ const Or = ({
2030
2030
  },
2031
2031
  [At]
2032
2032
  ), {
2033
- isCreatingFolder: x,
2033
+ isCreatingFolder: b,
2034
2034
  newFolderTempId: ee,
2035
2035
  createdFolderPath: le,
2036
2036
  newFolderDefaultName: Re,
@@ -2073,7 +2073,7 @@ const Or = ({
2073
2073
  }
2074
2074
  ), La = G(() => {
2075
2075
  if (Nt) {
2076
- let K = xn;
2076
+ let K = bn;
2077
2077
  kt || (K = K.filter(
2078
2078
  (re) => re.nodeType !== O.ITEM
2079
2079
  )), et || (K = K.filter(
@@ -2094,7 +2094,7 @@ const Or = ({
2094
2094
  owner: re.owner,
2095
2095
  folderId: re.folderId
2096
2096
  }));
2097
- return x && ee && Zt.unshift({
2097
+ return b && ee && Zt.unshift({
2098
2098
  id: ee,
2099
2099
  name: Re,
2100
2100
  updatedAt: void 0,
@@ -2127,7 +2127,7 @@ const Or = ({
2127
2127
  contentLength: K.contentLength,
2128
2128
  folderId: K.folderId
2129
2129
  }));
2130
- if (x && ee && !E && Ye.unshift({
2130
+ if (b && ee && !E && Ye.unshift({
2131
2131
  id: ee,
2132
2132
  name: Re,
2133
2133
  updatedAt: void 0,
@@ -2148,11 +2148,11 @@ const Or = ({
2148
2148
  });
2149
2149
  }, [
2150
2150
  Nt,
2151
- xn,
2151
+ bn,
2152
2152
  se,
2153
2153
  Lt,
2154
2154
  lt,
2155
- x,
2155
+ b,
2156
2156
  ee,
2157
2157
  Re,
2158
2158
  kt,
@@ -2283,8 +2283,8 @@ const Or = ({
2283
2283
  openMetadataPopup: Xa,
2284
2284
  closeMetadataPopup: Yo
2285
2285
  } = Ar({ onGetInfo: U }), qa = d(() => {
2286
- Yo(), xe?.clearMetadata?.();
2287
- }, [Yo, xe]), Ya = G(() => {
2286
+ Yo(), be?.clearMetadata?.();
2287
+ }, [Yo, be]), Ya = G(() => {
2288
2288
  if (Y)
2289
2289
  return Zn(Y);
2290
2290
  }, [Y]), Ka = {
@@ -2333,14 +2333,14 @@ const Or = ({
2333
2333
  clearSelection: Xe,
2334
2334
  currentFolder: se,
2335
2335
  gridRows: La,
2336
- handleCopyTo: bn,
2336
+ handleCopyTo: xn,
2337
2337
  handleMoveTo: Dn,
2338
2338
  handleDuplicate: At ? Do : Tn,
2339
2339
  handleSetCopiedFiles: co,
2340
2340
  handleSetMovedFiles: Fn,
2341
2341
  openDestinationFolderPopup: nt,
2342
2342
  handleCloseDestinationFolderPopup: Rn,
2343
- handleOpenDestinationFolderPopup: xt,
2343
+ handleOpenDestinationFolderPopup: bt,
2344
2344
  destinationFolderMode: In,
2345
2345
  handleGridAddSibling: Ua,
2346
2346
  handleGridAddChild: Va,
@@ -2358,7 +2358,7 @@ const Or = ({
2358
2358
  getDisplayName: Ot,
2359
2359
  openDeleteConfirmation: Kn || Pn,
2360
2360
  closeDeleteConfirmation: Mn,
2361
- confirmDelete: bt,
2361
+ confirmDelete: xt,
2362
2362
  deleteConfirmationOpen: go,
2363
2363
  itemsToDelete: An,
2364
2364
  handlePathChange: qe,
@@ -2378,14 +2378,14 @@ const Or = ({
2378
2378
  clearUploadError: kn,
2379
2379
  onUploadFiles: V,
2380
2380
  onValidateUpload: Z,
2381
- maxFileSize: be,
2381
+ maxFileSize: xe,
2382
2382
  isDraggingOverWindow: Le,
2383
2383
  openFileDialog: dt,
2384
2384
  fileInputRef: On,
2385
2385
  newActions: Ma,
2386
2386
  isNewButtonVisible: ka,
2387
2387
  isNewButtonDisabled: Oa,
2388
- isCreatingFolder: x,
2388
+ isCreatingFolder: b,
2389
2389
  newFolderTempId: ee,
2390
2390
  createdFolderPath: le,
2391
2391
  newFolderDefaultName: Re,
@@ -2405,10 +2405,10 @@ const Or = ({
2405
2405
  uploadConflictResolutionOpen: No,
2406
2406
  closeUploadConflictResolution: Ln,
2407
2407
  handleUploadConflictReplace: $t,
2408
- handleUploadConflictDuplicate: xo,
2409
- handleUploadConflictCancel: bo,
2408
+ handleUploadConflictDuplicate: bo,
2409
+ handleUploadConflictCancel: xo,
2410
2410
  handleUploadConflictDecideForEach: Gt,
2411
- fileMetadataPopupOptions: xe,
2411
+ fileMetadataPopupOptions: be,
2412
2412
  isMetadataPopupOpen: ja,
2413
2413
  selectedFileForMetadata: Za,
2414
2414
  openMetadataPopup: Xa,
@@ -2464,18 +2464,18 @@ const Or = ({
2464
2464
  return window.addEventListener("scroll", u, !0), () => window.removeEventListener("scroll", u, !0);
2465
2465
  }, []), fe(() => {
2466
2466
  const u = (m) => {
2467
- const b = m.target.closest(
2467
+ const x = m.target.closest(
2468
2468
  ".ag-row"
2469
2469
  );
2470
- if (!b) {
2470
+ if (!x) {
2471
2471
  i((f) => f && null);
2472
2472
  return;
2473
2473
  }
2474
2474
  const h = new DOMParser().parseFromString(
2475
- b.getAttribute("row-id") || "",
2475
+ x.getAttribute("row-id") || "",
2476
2476
  "text/html"
2477
2477
  ).documentElement.textContent;
2478
- h && e.has(h) ? i((f) => f !== h ? (C(b.getBoundingClientRect()), h) : f) : i((f) => f && null);
2478
+ h && e.has(h) ? i((f) => f !== h ? (C(x.getBoundingClientRect()), h) : f) : i((f) => f && null);
2479
2479
  }, y = () => {
2480
2480
  i(null), C(null);
2481
2481
  }, g = document.querySelector(
@@ -2553,7 +2553,7 @@ const Or = ({
2553
2553
  maxFileSize: g,
2554
2554
  header: m,
2555
2555
  sourceFolder: D,
2556
- disabledPathTooltip: b = "Unavailable for the original path. Please select another folder",
2556
+ disabledPathTooltip: x = "Unavailable for the original path. Please select another folder",
2557
2557
  path: h,
2558
2558
  collapsedFileTree: f = !1,
2559
2559
  alertProps: I,
@@ -2647,7 +2647,7 @@ const Or = ({
2647
2647
  ] }) }),
2648
2648
  /* @__PURE__ */ q("div", { className: "flex space-x-4 items-center", children: [
2649
2649
  /* @__PURE__ */ a($n, { onClick: e, label: "Cancel" }),
2650
- oe ? /* @__PURE__ */ a(Gn, { tooltip: b, children: /* @__PURE__ */ a(
2650
+ oe ? /* @__PURE__ */ a(Gn, { tooltip: x, children: /* @__PURE__ */ a(
2651
2651
  on,
2652
2652
  {
2653
2653
  onClick: t,
@@ -2711,8 +2711,8 @@ function _r({
2711
2711
  dependencies: s = []
2712
2712
  }) {
2713
2713
  const l = de(null), i = de(null), p = de(null), C = de(null), c = de([]), [v, u] = z(0), y = d(
2714
- (D, b) => {
2715
- const h = p.current?.offsetWidth ?? 0, f = C.current?.offsetWidth ?? 0, I = h + f, R = b.getBoundingClientRect().width - I - r - o * 2 - n * 2;
2714
+ (D, x) => {
2715
+ const h = p.current?.offsetWidth ?? 0, f = C.current?.offsetWidth ?? 0, I = h + f, R = x.getBoundingClientRect().width - I - r - o * 2 - n * 2;
2716
2716
  let F = 0, S = 0;
2717
2717
  if (t === tn.Reverse)
2718
2718
  for (let L = D.length - 1; L >= 0 && (F += D[L] + o, !(F > R)); L--)
@@ -2729,10 +2729,10 @@ function _r({
2729
2729
  hs(
2730
2730
  () => {
2731
2731
  if (!i.current || !l.current) return;
2732
- const b = Array.from(i.current.children).map(
2732
+ const x = Array.from(i.current.children).map(
2733
2733
  (h) => Math.ceil(h.getBoundingClientRect().width)
2734
2734
  );
2735
- c.current = b, b.length !== 0 && y(b, l.current);
2735
+ c.current = x, x.length !== 0 && y(x, l.current);
2736
2736
  },
2737
2737
  // Re-measure when the action list or layout-affecting deps (e.g. isMobile) change
2738
2738
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -2740,14 +2740,14 @@ function _r({
2740
2740
  ), fe(() => {
2741
2741
  if (!l.current) return;
2742
2742
  let D = null;
2743
- const b = () => {
2743
+ const x = () => {
2744
2744
  D && cancelAnimationFrame(D), D = requestAnimationFrame(() => {
2745
2745
  if (!l.current) return;
2746
2746
  const f = l.current, I = c.current;
2747
2747
  I.length !== 0 && y(I, f);
2748
2748
  });
2749
- }, h = new ResizeObserver(b);
2750
- return h.observe(l.current), b(), () => {
2749
+ }, h = new ResizeObserver(x);
2750
+ return h.observe(l.current), x(), () => {
2751
2751
  D && cancelAnimationFrame(D), h.disconnect();
2752
2752
  };
2753
2753
  }, [
@@ -2831,7 +2831,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
2831
2831
  label: g,
2832
2832
  disabled: D,
2833
2833
  tooltipProps: { tooltip: y },
2834
- onClick: (b) => m?.({ key: v, domEvent: b })
2834
+ onClick: (x) => m?.({ key: v, domEvent: x })
2835
2835
  },
2836
2836
  v
2837
2837
  )
@@ -2884,7 +2884,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
2884
2884
  ariaLabel: C,
2885
2885
  confirmLabel: s,
2886
2886
  cancelLabel: n,
2887
- variant: xs.Danger,
2887
+ variant: bs.Danger,
2888
2888
  onClose: r,
2889
2889
  onConfirm: o,
2890
2890
  children: u
@@ -2908,7 +2908,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
2908
2908
  invalid: g,
2909
2909
  onSearchChange: m,
2910
2910
  searchClassName: D,
2911
- searchContainerClassName: b,
2911
+ searchContainerClassName: x,
2912
2912
  isCompactView: h = !1,
2913
2913
  backButtonLabel: f = "Back"
2914
2914
  }) => {
@@ -2987,7 +2987,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
2987
2987
  }
2988
2988
  }
2989
2989
  ) : /* @__PURE__ */ a("div", { className: $r, children: /* @__PURE__ */ a(
2990
- bs,
2990
+ xs,
2991
2991
  {
2992
2992
  pathItems: I,
2993
2993
  ariaLabel: e,
@@ -3038,7 +3038,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3038
3038
  invalid: g,
3039
3039
  className: D,
3040
3040
  wrapperClassName: h && !w ? "pl-2.5" : "",
3041
- containerClassName: b
3041
+ containerClassName: x
3042
3042
  }
3043
3043
  )
3044
3044
  }
@@ -3075,7 +3075,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3075
3075
  u,
3076
3076
  v,
3077
3077
  n
3078
- ]), b = () => e && t && r ? /* @__PURE__ */ a(
3078
+ ]), x = () => e && t && r ? /* @__PURE__ */ a(
3079
3079
  Rs,
3080
3080
  {
3081
3081
  tabs: e,
@@ -3139,7 +3139,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3139
3139
  ) : null
3140
3140
  ] });
3141
3141
  return /* @__PURE__ */ q("div", { className: "flex w-full justify-between gap-4 items-center overflow-x-auto py-[2px] my-[-2px]", children: [
3142
- /* @__PURE__ */ a("div", { className: "flex-1 min-w-0", children: b() }),
3142
+ /* @__PURE__ */ a("div", { className: "flex-1 min-w-0", children: x() }),
3143
3143
  /* @__PURE__ */ a("div", { className: "flex gap-2 shrink-0 items-center", children: m ? f() : h() })
3144
3144
  ] });
3145
3145
  }, Xr = 100, Qt = 16, Ue = "text-secondary", Bn = "text-primary min-w-0", qr = "text-primary break-words min-w-0", Jt = "bg-layer-sunken", Yr = ({
@@ -3326,7 +3326,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3326
3326
  inputRef: g,
3327
3327
  onChange: m,
3328
3328
  sharedIndicatorClassName: D,
3329
- sharedIndicatorTooltip: b,
3329
+ sharedIndicatorTooltip: x,
3330
3330
  fileExtension: h
3331
3331
  }) => {
3332
3332
  const f = () => {
@@ -3369,7 +3369,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3369
3369
  shared: n,
3370
3370
  fileExtension: h,
3371
3371
  sharedIndicatorClassName: D,
3372
- sharedIndicatorTooltip: b
3372
+ sharedIndicatorTooltip: x
3373
3373
  }
3374
3374
  ),
3375
3375
  /* @__PURE__ */ a(
@@ -3406,7 +3406,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3406
3406
  inputContainerClassName: g,
3407
3407
  sharedIndicatorClassName: m,
3408
3408
  sharedIndicatorTooltip: D,
3409
- hideTooltip: b = !1,
3409
+ hideTooltip: x = !1,
3410
3410
  forbiddenSymbolsRegExp: h,
3411
3411
  forbiddenSymbolsTooltip: f,
3412
3412
  ...I
@@ -3440,7 +3440,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3440
3440
  iconSize: i,
3441
3441
  className: "max-w-[428px] truncate",
3442
3442
  sharedIndicatorClassName: m,
3443
- hideTooltip: b,
3443
+ hideTooltip: x,
3444
3444
  isInvalidName: k,
3445
3445
  tooltipContent: W
3446
3446
  }
@@ -3453,7 +3453,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3453
3453
  shared: l,
3454
3454
  iconSize: i,
3455
3455
  sharedIndicatorClassName: m,
3456
- hideTooltip: b,
3456
+ hideTooltip: x,
3457
3457
  isInvalidName: k,
3458
3458
  tooltipContent: W
3459
3459
  }
@@ -3494,7 +3494,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3494
3494
  rootItemPath: g,
3495
3495
  onItemClick: m,
3496
3496
  getContextMenuItems: D,
3497
- onRenameSave: b,
3497
+ onRenameSave: x,
3498
3498
  onRenameCancel: h,
3499
3499
  onRenameValidate: f,
3500
3500
  onExpandedPathsChange: I,
@@ -3523,10 +3523,10 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3523
3523
  },
3524
3524
  ...j
3525
3525
  ]), oe.map((V) => {
3526
- const { path: Z, nodeType: ie, name: we, items: be } = V, he = ie === O.FOLDER;
3526
+ const { path: Z, nodeType: ie, name: we, items: xe } = V, he = ie === O.FOLDER;
3527
3527
  if (!c && Da(V)) return null;
3528
3528
  if (!he && !t) return;
3529
- const Te = Array.isArray(be) && be.length > 0 && be.some((B) => B.nodeType === O.FOLDER || t), Ne = W.has(Z), H = l === Z, De = o.has(Z), xe = v === Z || Z === `${u}/${en}`, U = n.has(Z), te = s.has(Z), pe = g && y && Z === g && he, _e = f && ((B) => f(B, V)), ke = H ? "bg-control-accent-alpha rounded" : "", Se = pe ? [] : D?.(V) ?? [], T = F ? Vo(
3529
+ const Te = Array.isArray(xe) && xe.length > 0 && xe.some((B) => B.nodeType === O.FOLDER || t), Ne = W.has(Z), H = l === Z, De = o.has(Z), be = v === Z || Z === `${u}/${en}`, U = n.has(Z), te = s.has(Z), pe = g && y && Z === g && he, _e = f && ((B) => f(B, V)), ke = H ? "bg-control-accent-alpha rounded" : "", Se = pe ? [] : D?.(V) ?? [], T = F ? Vo(
3530
3530
  { name: V.name, isFolder: he },
3531
3531
  F,
3532
3532
  S
@@ -3549,7 +3549,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3549
3549
  ),
3550
3550
  "aria-selected": H,
3551
3551
  children: [
3552
- !xe && /* @__PURE__ */ a(
3552
+ !be && /* @__PURE__ */ a(
3553
3553
  "div",
3554
3554
  {
3555
3555
  className: "absolute size-full left-0 top-0 z-0",
@@ -3560,7 +3560,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3560
3560
  "div",
3561
3561
  {
3562
3562
  className: "relative flex flex-row truncate items-center w-fit h-6 gap-x-1 pl-1",
3563
- onClick: () => !xe && P(V),
3563
+ onClick: () => !be && P(V),
3564
3564
  children: /* @__PURE__ */ q(Fe, { children: [
3565
3565
  he && /* @__PURE__ */ a(
3566
3566
  ls,
@@ -3589,9 +3589,9 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3589
3589
  forbiddenSymbolsRegExp: F,
3590
3590
  forbiddenSymbolsTooltip: T,
3591
3591
  ...!pe && {
3592
- editing: xe,
3592
+ editing: be,
3593
3593
  creating: Z === `${u}/${en}`,
3594
- onSave: b,
3594
+ onSave: x,
3595
3595
  onCancel: h,
3596
3596
  validate: _e,
3597
3597
  onCreateFolderSave: w,
@@ -3602,7 +3602,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3602
3602
  ] })
3603
3603
  }
3604
3604
  ),
3605
- Se.length > 0 && !xe && !pe && /* @__PURE__ */ a("div", { className: "flex-1 flex justify-end", children: /* @__PURE__ */ a(
3605
+ Se.length > 0 && !be && !pe && /* @__PURE__ */ a("div", { className: "flex-1 flex justify-end", children: /* @__PURE__ */ a(
3606
3606
  ht,
3607
3607
  {
3608
3608
  placement: "bottom-start",
@@ -3624,7 +3624,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3624
3624
  )
3625
3625
  }
3626
3626
  ),
3627
- Ne && (be || V?.path === u) && _(be || [], M + 1, V)
3627
+ Ne && (xe || V?.path === u) && _(xe || [], M + 1, V)
3628
3628
  ] }) }, `${Z}-children`);
3629
3629
  });
3630
3630
  };
@@ -3655,7 +3655,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3655
3655
  const g = [], m = Array.from(e.values());
3656
3656
  if (!m.length || !t)
3657
3657
  return g;
3658
- const D = Zn(y), b = D ? m.some((h) => D.test(h.name)) : !1;
3658
+ const D = Zn(y), x = D ? m.some((h) => D.test(h.name)) : !1;
3659
3659
  if (t[N.RemoveAccess] && i) {
3660
3660
  const h = m.some(
3661
3661
  (f) => !v?.has(f.path)
@@ -3665,13 +3665,13 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3665
3665
  label: t[N.RemoveAccess],
3666
3666
  title: t[N.RemoveAccess],
3667
3667
  disabled: h,
3668
- icon: /* @__PURE__ */ a(Ao, { size: A.size, className: "text-secondary" }),
3668
+ icon: /* @__PURE__ */ a(Ao, { size: A.size }),
3669
3669
  onClick: () => {
3670
3670
  i(m), u();
3671
3671
  }
3672
3672
  });
3673
3673
  }
3674
- if (t[N.Move] && !b && g.push({
3674
+ if (t[N.Move] && !x && g.push({
3675
3675
  key: N.Move,
3676
3676
  label: t[N.Move],
3677
3677
  title: t[N.Move],
@@ -3679,12 +3679,11 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3679
3679
  Ho,
3680
3680
  {
3681
3681
  width: A.size,
3682
- height: A.size,
3683
- className: "text-secondary"
3682
+ height: A.size
3684
3683
  }
3685
3684
  ),
3686
3685
  onClick: () => n(m)
3687
- }), t[N.Copy] && !b && g.push({
3686
+ }), t[N.Copy] && !x && g.push({
3688
3687
  key: N.Copy,
3689
3688
  label: t[N.Copy],
3690
3689
  title: t[N.Copy],
@@ -3692,16 +3691,15 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3692
3691
  Wo,
3693
3692
  {
3694
3693
  width: A.size,
3695
- height: A.size,
3696
- className: "text-secondary"
3694
+ height: A.size
3697
3695
  }
3698
3696
  ),
3699
3697
  onClick: () => o(m)
3700
- }), t[N.Duplicate] && !b && g.push({
3698
+ }), t[N.Duplicate] && !x && g.push({
3701
3699
  key: N.Duplicate,
3702
3700
  label: t[N.Duplicate],
3703
3701
  title: t[N.Duplicate],
3704
- icon: /* @__PURE__ */ a(Po, { ...A, className: "text-secondary" }),
3702
+ icon: /* @__PURE__ */ a(Po, { ...A }),
3705
3703
  onClick: () => r(m)
3706
3704
  }), t[N.Delete]) {
3707
3705
  const h = m.some(
@@ -3711,7 +3709,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3711
3709
  key: N.Delete,
3712
3710
  label: t[N.Delete],
3713
3711
  title: t[N.Delete],
3714
- icon: /* @__PURE__ */ a(Mo, { ...A, className: "text-secondary" }),
3712
+ icon: /* @__PURE__ */ a(Mo, { ...A }),
3715
3713
  disabled: h,
3716
3714
  tooltip: h ? "Selected items contain item which can not be deleted" : void 0,
3717
3715
  onClick: () => {
@@ -3720,11 +3718,11 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3720
3718
  }
3721
3719
  });
3722
3720
  }
3723
- if (t[N.Download] && !b && g.push({
3721
+ if (t[N.Download] && !x && g.push({
3724
3722
  key: N.Download,
3725
3723
  label: t[N.Download],
3726
3724
  title: t[N.Download],
3727
- icon: /* @__PURE__ */ a(ko, { ...A, className: "text-secondary" }),
3725
+ icon: /* @__PURE__ */ a(ko, { ...A }),
3728
3726
  onClick: () => s(m)
3729
3727
  }), t[N.Unshare] && l) {
3730
3728
  const h = m.some(
@@ -3740,8 +3738,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3740
3738
  Bo,
3741
3739
  {
3742
3740
  width: A.size,
3743
- height: A.size,
3744
- className: "text-secondary"
3741
+ height: A.size
3745
3742
  }
3746
3743
  ),
3747
3744
  onClick: () => {
@@ -3821,7 +3818,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3821
3818
  selectedPaths: v,
3822
3819
  disabledRowIds: u,
3823
3820
  filesLoading: y
3824
- } = n.context, g = c?.has(n.data.path), m = v?.has(n.data.path), D = u?.has(n.data.path) ?? !1, b = Ee([
3821
+ } = n.context, g = c?.has(n.data.path), m = v?.has(n.data.path), D = u?.has(n.data.path) ?? !1, x = Ee([
3825
3822
  "group-hover/grid-row:bg-control-accent-alpha-hover",
3826
3823
  m && "bg-control-accent-alpha"
3827
3824
  ]);
@@ -3836,7 +3833,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3836
3833
  creating: !0,
3837
3834
  loading: y,
3838
3835
  shared: g,
3839
- sharedIndicatorClassName: b,
3836
+ sharedIndicatorClassName: x,
3840
3837
  iconSize: st,
3841
3838
  validate: i,
3842
3839
  onSave: l,
@@ -3869,7 +3866,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3869
3866
  elementId: `rename-${n.data.id}`,
3870
3867
  editing: !0,
3871
3868
  shared: g,
3872
- sharedIndicatorClassName: b,
3869
+ sharedIndicatorClassName: x,
3873
3870
  iconSize: st,
3874
3871
  validate: (P) => R(P, I),
3875
3872
  onSave: F,
@@ -3891,7 +3888,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3891
3888
  nodeType: s,
3892
3889
  size: n.data.size,
3893
3890
  shared: g,
3894
- sharedIndicatorClassName: b,
3891
+ sharedIndicatorClassName: x,
3895
3892
  updatedAt: n.data.updatedAt,
3896
3893
  dateLocale: t,
3897
3894
  dateOptions: r,
@@ -3913,7 +3910,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3913
3910
  {
3914
3911
  name: n.data.name,
3915
3912
  shared: g,
3916
- sharedIndicatorClassName: b,
3913
+ sharedIndicatorClassName: x,
3917
3914
  iconSize: st,
3918
3915
  hideTooltip: D,
3919
3916
  isInvalidName: !!W,
@@ -3924,7 +3921,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3924
3921
  {
3925
3922
  name: n.data.name,
3926
3923
  shared: g,
3927
- sharedIndicatorClassName: b,
3924
+ sharedIndicatorClassName: x,
3928
3925
  iconSize: st,
3929
3926
  hideTooltip: D,
3930
3927
  isInvalidName: !!W,
@@ -4078,7 +4075,7 @@ const ci = () => {
4078
4075
  onOpenInNewTab: g,
4079
4076
  previewExtensions: m,
4080
4077
  isRenameFileAvailable: D = !0,
4081
- isDuplicateFolderAvailable: b = !0,
4078
+ isDuplicateFolderAvailable: x = !0,
4082
4079
  forbiddenSymbolsRegExp: h,
4083
4080
  onGridCreateSiblingFolder: f,
4084
4081
  onGridCreateChildFolder: I
@@ -4093,7 +4090,7 @@ const ci = () => {
4093
4090
  key: "addSibling",
4094
4091
  label: e[N.AddSibling],
4095
4092
  icon: /* @__PURE__ */ a(
4096
- ba,
4093
+ xa,
4097
4094
  {
4098
4095
  width: A.size,
4099
4096
  height: A.size,
@@ -4106,7 +4103,7 @@ const ci = () => {
4106
4103
  key: "addChild",
4107
4104
  label: e[N.AddChild],
4108
4105
  icon: /* @__PURE__ */ a(
4109
- xa,
4106
+ ba,
4110
4107
  {
4111
4108
  width: A.size,
4112
4109
  height: A.size,
@@ -4125,7 +4122,7 @@ const ci = () => {
4125
4122
  icon: /* @__PURE__ */ a(Io, { ...A, className: "text-secondary" }),
4126
4123
  onClick: () => g?.(w)
4127
4124
  });
4128
- const S = w.nodeType === O.ITEM || w.nodeType === O.FOLDER && b;
4125
+ const S = w.nodeType === O.ITEM || w.nodeType === O.FOLDER && x;
4129
4126
  e[N.Duplicate] && S && !F && R.push({
4130
4127
  key: N.Duplicate,
4131
4128
  label: e[N.Duplicate],
@@ -4227,7 +4224,7 @@ const ci = () => {
4227
4224
  g,
4228
4225
  m,
4229
4226
  D,
4230
- b,
4227
+ x,
4231
4228
  h,
4232
4229
  I,
4233
4230
  f
@@ -4286,7 +4283,7 @@ const ci = () => {
4286
4283
  compactViewWidthBreakpoint: g = Ys,
4287
4284
  customBreakpointRef: m,
4288
4285
  sharedByMePaths: D,
4289
- allowedFileTypes: b,
4286
+ allowedFileTypes: x,
4290
4287
  maxSelectableFileSize: h,
4291
4288
  areHiddenFilesVisible: f,
4292
4289
  toggleHiddenFilesVisibility: I,
@@ -4307,13 +4304,13 @@ const ci = () => {
4307
4304
  onGridApiChange: Z,
4308
4305
  handleOpenDestinationFolderPopup: ie,
4309
4306
  handleCloseDestinationFolderPopup: we,
4310
- openDestinationFolderPopup: be,
4307
+ openDestinationFolderPopup: xe,
4311
4308
  destinationFolderMode: he,
4312
4309
  handleSetCopiedFiles: Te,
4313
4310
  handleSetMovedFiles: Ne,
4314
4311
  handleDuplicate: H,
4315
4312
  handleCopyTo: De,
4316
- handleMoveTo: xe,
4313
+ handleMoveTo: be,
4317
4314
  handleGridAddSibling: U,
4318
4315
  handleGridAddChild: te,
4319
4316
  handleTreeAddSibling: pe,
@@ -4391,15 +4388,15 @@ const ci = () => {
4391
4388
  nonClickableTableColumns: zt,
4392
4389
  hideSearchPathItemName: _t,
4393
4390
  showHiddenFileSwitcherInDestinationPopup: ce,
4394
- showCreateFolderButtonInDestinationPopup: xn,
4391
+ showCreateFolderButtonInDestinationPopup: bn,
4395
4392
  newFolderDefaultName: se
4396
4393
  } = ci(), {
4397
4394
  width: Oe = Gs,
4398
4395
  header: Me = js,
4399
- containerClassName: bn = Us,
4396
+ containerClassName: xn = Us,
4400
4397
  additionalButtons: Dn,
4401
4398
  ...Tn
4402
- } = s ?? {}, [xt, Rn] = z(Oe), { renameTriggerView: nt, onGridRename: co, onTreeRename: Fn } = er({ onRename: Ae }), {
4399
+ } = s ?? {}, [bt, Rn] = z(Oe), { renameTriggerView: nt, onGridRename: co, onTreeRename: Fn } = er({ onRename: Ae }), {
4403
4400
  createFolderTriggerView: In,
4404
4401
  onGridCreateSiblingFolder: uo,
4405
4402
  onTreeCreateSiblingFolder: En,
@@ -4410,9 +4407,9 @@ const ci = () => {
4410
4407
  onGridAddChild: te,
4411
4408
  onTreeAddSibling: pe,
4412
4409
  onTreeAddChild: _e
4413
- }), Wt = de(null), po = (x) => {
4410
+ }), Wt = de(null), po = (b) => {
4414
4411
  Wt.current === null && (Wt.current = requestAnimationFrame(() => {
4415
- Rn(x), Wt.current = null;
4412
+ Rn(b), Wt.current = null;
4416
4413
  }));
4417
4414
  }, {
4418
4415
  columnDefs: fo,
@@ -4422,7 +4419,7 @@ const ci = () => {
4422
4419
  selectionMode: An,
4423
4420
  wrapCustomCellRenderers: Pn,
4424
4421
  visibleColumns: Mn = Ks,
4425
- allowDisabledContextMenu: bt = !1,
4422
+ allowDisabledContextMenu: xt = !1,
4426
4423
  ...ot
4427
4424
  } = p ?? {}, { containerRef: vo, isBelowBreakpoint: Le } = tr(
4428
4425
  g,
@@ -4432,8 +4429,8 @@ const ci = () => {
4432
4429
  ye.Path,
4433
4430
  ye.Actions
4434
4431
  ] : Mn, [tt, Mn]), Ht = d(
4435
- (x, ee, le) => dr(
4436
- x,
4432
+ (b, ee, le) => dr(
4433
+ b,
4437
4434
  ee,
4438
4435
  le,
4439
4436
  Nn,
@@ -4441,47 +4438,47 @@ const ci = () => {
4441
4438
  ),
4442
4439
  [Nt, Nn]
4443
4440
  ), Dt = d(
4444
- (x, ee, le) => !!Ot?.(x) || !!Ht(x, ee, le),
4441
+ (b, ee, le) => !!Ot?.(b) || !!Ht(b, ee, le),
4445
4442
  [Ht, Ot]
4446
4443
  ), ct = G(() => {
4447
- const x = /* @__PURE__ */ new Set();
4444
+ const b = /* @__PURE__ */ new Set();
4448
4445
  for (const ee of S)
4449
- Dt(ee, b, h) && x.add(ee.path);
4450
- return x;
4451
- }, [b, h, S, Dt]), Bt = d(
4452
- (x) => {
4453
- const ee = [], le = [], Re = !x.parentPath, at = Be?.test(
4454
- x.name
4446
+ Dt(ee, x, h) && b.add(ee.path);
4447
+ return b;
4448
+ }, [x, h, S, Dt]), Bt = d(
4449
+ (b) => {
4450
+ const ee = [], le = [], Re = !b.parentPath, at = Be?.test(
4451
+ b.name
4455
4452
  );
4456
- return s?.actionLabels && (s.actionLabels[N.AddSibling] && x.nodeType === O.FOLDER && !Re && ee.push({
4453
+ return s?.actionLabels && (s.actionLabels[N.AddSibling] && b.nodeType === O.FOLDER && !Re && ee.push({
4457
4454
  key: "addSibling",
4458
4455
  label: s.actionLabels[N.AddSibling],
4459
4456
  icon: /* @__PURE__ */ a(
4460
- ba,
4457
+ xa,
4461
4458
  {
4462
4459
  width: A.size,
4463
4460
  height: A.size,
4464
4461
  className: "text-secondary"
4465
4462
  }
4466
4463
  ),
4467
- onClick: () => En([x])
4468
- }), s.actionLabels[N.AddChild] && x.nodeType === O.FOLDER && !at && ee.push({
4464
+ onClick: () => En([b])
4465
+ }), s.actionLabels[N.AddChild] && b.nodeType === O.FOLDER && !at && ee.push({
4469
4466
  key: "addChild",
4470
4467
  label: s.actionLabels[N.AddChild],
4471
4468
  icon: /* @__PURE__ */ a(
4472
- xa,
4469
+ ba,
4473
4470
  {
4474
4471
  width: A.size,
4475
4472
  height: A.size,
4476
4473
  className: "text-secondary"
4477
4474
  }
4478
4475
  ),
4479
- onClick: () => Sn([x])
4476
+ onClick: () => Sn([b])
4480
4477
  }), s.actionLabels[N.Duplicate] && !Re && !at && le.push({
4481
4478
  key: "duplicate",
4482
4479
  label: s.actionLabels[N.Duplicate],
4483
4480
  icon: /* @__PURE__ */ a(Po, { ...A, className: "text-secondary" }),
4484
- onClick: () => H([x])
4481
+ onClick: () => H([b])
4485
4482
  }), s.actionLabels[N.Copy] && !Re && !at && le.push({
4486
4483
  key: ge.Copy,
4487
4484
  label: s.actionLabels[N.Copy],
@@ -4494,7 +4491,7 @@ const ci = () => {
4494
4491
  }
4495
4492
  ),
4496
4493
  onClick: () => {
4497
- Te([x]), ie(ge.Copy);
4494
+ Te([b]), ie(ge.Copy);
4498
4495
  }
4499
4496
  }), s.actionLabels[N.Move] && !Re && !at && le.push({
4500
4497
  key: ge.Move,
@@ -4508,14 +4505,14 @@ const ci = () => {
4508
4505
  }
4509
4506
  ),
4510
4507
  onClick: () => {
4511
- Ne([x]), ie(ge.Move);
4508
+ Ne([b]), ie(ge.Move);
4512
4509
  }
4513
4510
  }), s.actionLabels[N.Download] && !Re && !at && le.push({
4514
4511
  key: "download",
4515
4512
  label: s.actionLabels[N.Download],
4516
4513
  icon: /* @__PURE__ */ a(ko, { ...A, className: "text-secondary" }),
4517
- onClick: () => ke([x])
4518
- }), s.actionLabels[N.ManagePermissions] && typeof wt == "function" && x.nodeType === O.FOLDER && !Re && le.push({
4514
+ onClick: () => ke([b])
4515
+ }), s.actionLabels[N.ManagePermissions] && typeof wt == "function" && b.nodeType === O.FOLDER && !Re && le.push({
4519
4516
  key: N.ManagePermissions,
4520
4517
  label: s.actionLabels[N.ManagePermissions],
4521
4518
  icon: /* @__PURE__ */ a(
@@ -4525,12 +4522,12 @@ const ci = () => {
4525
4522
  className: "text-secondary"
4526
4523
  }
4527
4524
  ),
4528
- onClick: () => wt?.(x.path)
4529
- }), s.actionLabels[N.Delete] && x.permissions?.includes(St.WRITE) && !Re && le.push({
4525
+ onClick: () => wt?.(b.path)
4526
+ }), s.actionLabels[N.Delete] && b.permissions?.includes(St.WRITE) && !Re && le.push({
4530
4527
  key: "delete",
4531
4528
  label: s.actionLabels[N.Delete],
4532
4529
  icon: /* @__PURE__ */ a(Mo, { ...A, className: "text-secondary" }),
4533
- onClick: () => Se([x], x.parentPath ?? "")
4530
+ onClick: () => Se([b], b.parentPath ?? "")
4534
4531
  }), s.actionLabels[N.Rename] && !Re && le.push({
4535
4532
  key: "rename",
4536
4533
  label: s.actionLabels[N.Rename],
@@ -4541,8 +4538,8 @@ const ci = () => {
4541
4538
  className: "text-secondary"
4542
4539
  }
4543
4540
  ),
4544
- onClick: () => Fn(x.path)
4545
- }), s.actionLabels[N.Unshare] && yt?.includes(x.path) && !Re && le.push({
4541
+ onClick: () => Fn(b.path)
4542
+ }), s.actionLabels[N.Unshare] && yt?.includes(b.path) && !Re && le.push({
4546
4543
  key: "unshare",
4547
4544
  label: s.actionLabels[N.Unshare],
4548
4545
  icon: /* @__PURE__ */ a(
@@ -4553,8 +4550,8 @@ const ci = () => {
4553
4550
  className: "text-secondary"
4554
4551
  }
4555
4552
  ),
4556
- onClick: () => et?.([x])
4557
- }), s.actionLabels[N.RemoveAccess] && D?.has(x.path) && !Re && le.push({
4553
+ onClick: () => et?.([b])
4554
+ }), s.actionLabels[N.RemoveAccess] && D?.has(b.path) && !Re && le.push({
4558
4555
  key: N.RemoveAccess,
4559
4556
  label: s.actionLabels[N.RemoveAccess],
4560
4557
  icon: /* @__PURE__ */ a(
@@ -4564,7 +4561,7 @@ const ci = () => {
4564
4561
  className: "text-secondary"
4565
4562
  }
4566
4563
  ),
4567
- onClick: () => vt?.([x])
4564
+ onClick: () => vt?.([b])
4568
4565
  })), ee.length ? le.length === 0 ? ee : ee.length === 0 ? le : [
4569
4566
  ...ee,
4570
4567
  { key: "divider", type: Na.Divider },
@@ -4590,22 +4587,22 @@ const ci = () => {
4590
4587
  En
4591
4588
  ]
4592
4589
  ), kn = G(() => {
4593
- const x = /* @__PURE__ */ new Set();
4594
- return W.forEach((ee, le) => x.add(le)), x;
4590
+ const b = /* @__PURE__ */ new Set();
4591
+ return W.forEach((ee, le) => b.add(le)), b;
4595
4592
  }, [W]), Ut = d(
4596
- (x, ee) => {
4597
- P(x), V?.(ee);
4593
+ (b, ee) => {
4594
+ P(b), V?.(ee);
4598
4595
  },
4599
4596
  [V, P]
4600
4597
  ), On = ni({
4601
4598
  selectedFiles: W,
4602
4599
  actionLabels: c?.actionLabels,
4603
4600
  onDuplicate: H,
4604
- onCopy: (x) => {
4605
- Te(x), ie(ge.Copy);
4601
+ onCopy: (b) => {
4602
+ Te(b), ie(ge.Copy);
4606
4603
  },
4607
- onMove: (x) => {
4608
- Ne(x), ie(ge.Move);
4604
+ onMove: (b) => {
4605
+ Ne(b), ie(ge.Move);
4609
4606
  },
4610
4607
  onDownload: ke,
4611
4608
  onDelete: Se,
@@ -4617,8 +4614,8 @@ const ci = () => {
4617
4614
  onClearSelection: k,
4618
4615
  forbiddenSymbolsRegExp: Be
4619
4616
  }), Vt = d(
4620
- (x) => {
4621
- C?.onTabChange?.(x), Qe();
4617
+ (b) => {
4618
+ C?.onTabChange?.(b), Qe();
4622
4619
  },
4623
4620
  [C, Qe]
4624
4621
  ), wo = d(() => C && L.size === 0 ? /* @__PURE__ */ q(
@@ -4683,8 +4680,8 @@ const ci = () => {
4683
4680
  const No = d(() => Le ? null : /* @__PURE__ */ a("div", { className: "min-h-0 min-w-0 h-full flex-none", children: /* @__PURE__ */ a(
4684
4681
  Ls,
4685
4682
  {
4686
- defaultWidth: xt,
4687
- width: xt,
4683
+ defaultWidth: bt,
4684
+ width: bt,
4688
4685
  onResizeStop: Rn,
4689
4686
  onResize: po,
4690
4687
  minWidth: Xs,
@@ -4693,10 +4690,10 @@ const ci = () => {
4693
4690
  children: /* @__PURE__ */ a(
4694
4691
  zs,
4695
4692
  {
4696
- width: xt,
4693
+ width: bt,
4697
4694
  title: Me,
4698
4695
  ariaLabel: "File Manager Tree Navigation",
4699
- className: bn,
4696
+ className: xn,
4700
4697
  titleClassName: "dial-body-text text-primary",
4701
4698
  additionalButtons: Dn,
4702
4699
  isOpened: !w,
@@ -4730,10 +4727,10 @@ const ci = () => {
4730
4727
  }
4731
4728
  ) }), [
4732
4729
  Le,
4733
- xt,
4730
+ bt,
4734
4731
  w,
4735
4732
  Me,
4736
- bn,
4733
+ xn,
4737
4734
  Dn,
4738
4735
  R,
4739
4736
  Tn,
@@ -4759,24 +4756,24 @@ const ci = () => {
4759
4756
  se
4760
4757
  ]), Ln = di({
4761
4758
  actionLabels: p?.actionLabels,
4762
- onDuplicate: (x) => H([x]),
4763
- onCopy: (x) => {
4764
- Te([x]), ie(ge.Copy);
4759
+ onDuplicate: (b) => H([b]),
4760
+ onCopy: (b) => {
4761
+ Te([b]), ie(ge.Copy);
4765
4762
  },
4766
- onMove: (x) => {
4767
- Ne([x]), ie(ge.Move);
4763
+ onMove: (b) => {
4764
+ Ne([b]), ie(ge.Move);
4768
4765
  },
4769
- onDownload: (x) => ke([x]),
4766
+ onDownload: (b) => ke([b]),
4770
4767
  onRename: co,
4771
- onDelete: (x, ee) => Se([x], ee),
4772
- onInfo: (x) => ue(x),
4773
- onUnshare: (x) => et?.([x]),
4774
- onRemoveAccess: (x) => vt?.([x]),
4768
+ onDelete: (b, ee) => Se([b], ee),
4769
+ onInfo: (b) => ue(b),
4770
+ onUnshare: (b) => et?.([b]),
4771
+ onRemoveAccess: (b) => vt?.([b]),
4775
4772
  sharedWithMeIds: yt,
4776
4773
  sharedByMePaths: D,
4777
- onManagePermissions: (x) => wt?.(x),
4778
- onPreview: (x) => ao?.(x),
4779
- onOpenInNewTab: (x) => so?.(x),
4774
+ onManagePermissions: (b) => wt?.(b),
4775
+ onPreview: (b) => ao?.(b),
4776
+ onOpenInNewTab: (b) => so?.(b),
4780
4777
  previewExtensions: ro,
4781
4778
  isRenameFileAvailable: io,
4782
4779
  isDuplicateFolderAvailable: lo,
@@ -4784,18 +4781,18 @@ const ci = () => {
4784
4781
  onGridCreateSiblingFolder: uo,
4785
4782
  onGridCreateChildFolder: ho
4786
4783
  }), $t = d(
4787
- (x) => {
4788
- const ee = Ke(r, x.path);
4784
+ (b) => {
4785
+ const ee = Ke(r, b.path);
4789
4786
  return ee ? Ln(ee) : [];
4790
4787
  },
4791
4788
  [r, Ln]
4792
- ), xo = d(
4793
- (x, ee, le) => bt ? !1 : Dt(x, ee, le),
4794
- [bt, Dt]
4795
- ), { actionsColumnDef: bo } = Js({
4789
+ ), bo = d(
4790
+ (b, ee, le) => xt ? !1 : Dt(b, ee, le),
4791
+ [xt, Dt]
4792
+ ), { actionsColumnDef: xo } = Js({
4796
4793
  getContextMenuItems: $t,
4797
- isRowDisabled: xo,
4798
- allowedFileTypes: b,
4794
+ isRowDisabled: bo,
4795
+ allowedFileTypes: x,
4799
4796
  buttonClassName: Le ? "" : $s
4800
4797
  }), { columnDefs: Gt } = li({
4801
4798
  userColumnDefs: fo,
@@ -4805,14 +4802,14 @@ const ci = () => {
4805
4802
  effectiveVisibleColumns: yo,
4806
4803
  isCompactView: Le,
4807
4804
  hasActions: !!p?.actionLabels,
4808
- actionsColumnDef: bo,
4805
+ actionsColumnDef: xo,
4809
4806
  rootItemLabel: o?.label,
4810
4807
  rootItemPath: o?.path
4811
4808
  }), zn = d(
4812
- (x) => {
4813
- x.colDef.colId === "ag-Grid-SelectionColumn" || x.colDef.colId === ye.Actions || X && x.data?.path === X || x.data?.isTemporary || zt && zt.includes(
4814
- x.colDef.colId
4815
- ) || x.data && oe(x.data);
4809
+ (b) => {
4810
+ b.colDef.colId === "ag-Grid-SelectionColumn" || b.colDef.colId === ye.Actions || X && b.data?.path === X || b.data?.isTemporary || zt && zt.includes(
4811
+ b.colDef.colId
4812
+ ) || b.data && oe(b.data);
4816
4813
  },
4817
4814
  [X, oe, zt]
4818
4815
  ), dt = d(
@@ -4835,7 +4832,7 @@ const ci = () => {
4835
4832
  }
4836
4833
  ),
4837
4834
  [wn, lt, yn]
4838
- ), _n = G(() => (x) => x.path, []), Wn = G(
4835
+ ), _n = G(() => (b) => b.path, []), Wn = G(
4839
4836
  () => an(
4840
4837
  "min-h-[248px] overflow-auto md:min-h-[266px]",
4841
4838
  rt ? "border border-dashed border-info" : "",
@@ -4922,7 +4919,7 @@ const ci = () => {
4922
4919
  onSelectionChange: Ut,
4923
4920
  wrapperBorder: !rt && !mt,
4924
4921
  disabledRowIds: ct,
4925
- allowDisabledContextMenu: bt
4922
+ allowDisabledContextMenu: xt
4926
4923
  }
4927
4924
  ),
4928
4925
  [
@@ -4946,7 +4943,7 @@ const ci = () => {
4946
4943
  rt,
4947
4944
  mt,
4948
4945
  ct,
4949
- bt
4946
+ xt
4950
4947
  ]
4951
4948
  );
4952
4949
  return /* @__PURE__ */ a("section", { ref: vo, className: "size-full", children: /* @__PURE__ */ q(
@@ -4976,7 +4973,7 @@ const ci = () => {
4976
4973
  jr,
4977
4974
  {
4978
4975
  ...i ?? {},
4979
- makeHref: (x) => x.join("/"),
4976
+ makeHref: (b) => b.join("/"),
4980
4977
  path: F,
4981
4978
  onItemClick: j,
4982
4979
  rootItemPath: o?.path,
@@ -5006,7 +5003,7 @@ const ci = () => {
5006
5003
  gridRows: S,
5007
5004
  getDisabledTooltip: Ot,
5008
5005
  getRowDisabledTooltip: Ht,
5009
- allowedFileTypes: b,
5006
+ allowedFileTypes: x,
5010
5007
  maxSelectableFileSize: h
5011
5008
  }
5012
5009
  )
@@ -5031,18 +5028,18 @@ const ci = () => {
5031
5028
  zr,
5032
5029
  {
5033
5030
  ...u,
5034
- open: be,
5031
+ open: xe,
5035
5032
  onClose: we,
5036
5033
  onConfirm: () => {
5037
- const x = u?.destinationFolderPath ?? "/";
5038
- he === ge.Copy ? De(x) : xe(x), we();
5034
+ const b = u?.destinationFolderPath ?? "/";
5035
+ he === ge.Copy ? De(b) : be(b), we();
5039
5036
  },
5040
5037
  mode: he,
5041
5038
  items: r,
5042
5039
  rootItem: o,
5043
5040
  gridOptions: {
5044
5041
  columnDefs: Gt.filter(
5045
- (x) => x.colId !== ye.Actions
5042
+ (b) => b.colId !== ye.Actions
5046
5043
  ),
5047
5044
  loading: n
5048
5045
  },
@@ -5050,14 +5047,18 @@ const ci = () => {
5050
5047
  onValidateUpload: At,
5051
5048
  maxFileSize: Kn,
5052
5049
  path: u?.destinationFolderPath ?? u?.sourceFolder ?? F,
5053
- onPathChange: (x) => {
5054
- u?.setDestinationFolderPath?.(x);
5050
+ onPathChange: (b) => {
5051
+ u?.setDestinationFolderPath?.(b);
5055
5052
  },
5056
5053
  sourceFolder: u?.sourceFolder ?? F,
5057
- treeOptions: { header: s?.header },
5054
+ treeOptions: {
5055
+ header: s?.header,
5056
+ loadedPaths: s?.loadedPaths,
5057
+ loadingPaths: s?.loadingPaths
5058
+ },
5058
5059
  onFolderPopupPathChange: oo,
5059
5060
  showHiddenFileSwitcher: ce,
5060
- showCreateFolderButton: xn,
5061
+ showCreateFolderButton: bn,
5061
5062
  hideSearchPathItemName: _t
5062
5063
  }
5063
5064
  ),