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

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,22 +1,25 @@
1
- import { jsx as a, jsxs as q, Fragment as Fe } from "react/jsx-runtime";
2
- import { IconCircleFilled as Un, IconChevronDown as Qa, IconDotsVertical as rn, IconFolder as ha, IconPlus as Ja, IconFile as es, IconFileZip as ts, IconCopyMinus as ns, IconFolderPlus as Qo, IconEye as So, IconX as os, IconArrowLeft as as, IconEyeOff as ss, IconAlertCircleFilled as rs, IconAlertTriangleFilled as is, IconCaretRightFilled as ls, IconUserX as Ao, IconCopy as Po, IconTrashX as Mo, IconDownload as ko, IconExternalLink as Io, IconPencilMinus as pa, IconInfoCircle as cs, IconFileDescription as ds } from "@tabler/icons-react";
1
+ import { jsx as a, jsxs as K, Fragment as Ie } from "react/jsx-runtime";
2
+ import { IconCircleFilled as Un, IconChevronDown as Ja, IconDotsVertical as rn, IconFolder as fa, IconPlus as es, IconFile as ts, IconFileZip as ns, IconCopyMinus as os, IconFolderPlus as ea, IconEye as Ao, IconX as as, IconArrowLeft as ss, IconEyeOff as rs, IconAlertCircleFilled as is, IconAlertTriangleFilled as ls, IconCaretRightFilled as cs, IconUserX as Po, IconCopy as Mo, IconTrashX as Oo, IconDownload as ko, IconExternalLink as Eo, IconPencilMinus as ma, IconInfoCircle as ds, IconFileDescription as us } from "@tabler/icons-react";
3
3
  import an from "classnames";
4
4
  import * as Ve from "react";
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 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
- import { extensions as na } from "mime-types";
8
- import { createPortal as _s } from "react-dom";
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
- 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
- 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 = [
5
+ import { useState as z, useMemo as $, useCallback as d, useRef as de, useEffect as fe, createContext as hs, useLayoutEffect as ps, useContext as fs, useImperativeHandle as ms } from "react";
6
+ import { DIAL_KIT_ICON_STROKE as Cs, BASE_ICON_SIZE as Lo, DialFolderName as zo, DialFileName as _o, Dropdown as ht, DropdownTrigger as Ca, DIAL_ICON_SIZE as Wo, Grid as ga, Popup as Ho, PopupSize as Vn, RadioGroup as ta, NeutralButton as Gn, PrimaryButton as on, GhostIconButton as pt, mergeClasses as Ee, NotificationVariant as So, ElementSize as ln, NOT_ALLOWED_SYMBOLS_REGEXP as gs, TooltipContainer as vs, TooltipPlacement as ys, TooltipTrigger as ws, TooltipContent as Ns, Notification as bs, ButtonAppearance as va, Switch as ya, Tooltip as $n, FlexibleActionsDirection as tn, ConfirmationPopup as xs, ConfirmationPopupVariant as Ds, DialBreadcrumb as Ts, Search as Rs, ButtonVariant as Is, Tabs as Fs, ButtonDropdown as na, Skeleton as Kt, SkeletonVariant as qt, EllipsisTooltip as Rt, DialItemType as He, DialFileIcon as Es, DialSharedEntityIndicator as oa, DialIcon as Ss, Spinner as As, editableContainerProps as Ps, Input as Ms, useEditableItem as Os, NoDataContent as wa, DateCellRenderer as Na, convertToDate as ks, DEFAULT_DATE_LOCALE as Ls, DEFAULT_DATE_FORMAT_OPTIONS as zs, DropdownItemType as ba, ConditionalResizableContainer as _s, CollapsibleSidebar as Ws } from "@epam/ai-dial-ui-kit";
7
+ import { extensions as aa } from "mime-types";
8
+ import { createPortal as Hs } 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" })), Da = (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" })), 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: "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" })), Uo = (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" })), Vo = (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" })), Zn = Cs, A = {
10
+ size: Lo,
11
+ stroke: Zn
12
+ };
13
+ 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 || {}), It = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(It || {}), 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 || {});
14
+ const Bs = "w-full h-full grid grid-rows-[auto_1fr] gap-5 p-6 overflow-hidden min-w-0 bg-layer-base", sa = "w-full text-secondary flex items-center gap-2", Us = "flex min-h-0 min-w-0 h-full gap-4 overflow-hidden", Vs = "flex flex-col flex-1 min-h-0 min-w-0 h-full gap-4", Gs = "h-full rounded bg-layer-raised text-secondary min-w-0", $s = "flex-1 w-full rounded text-secondary overflow-auto min-h-0 min-w-0", js = "opacity-0 pointer-events-none group-hover/grid-row:opacity-100 group-hover/grid-row:pointer-events-auto", Zs = 280, Xs = "Files", st = 20, Ks = "Files", Io = ".dial_folder", ra = "New folder", qs = 280, Ys = 460, ia = 44, Qs = 800, Js = [
12
15
  ye.Name,
13
16
  ye.UpdatedAt,
14
17
  ye.Size,
15
18
  ye.Author,
16
19
  ye.Actions
17
20
  ];
18
- var O = /* @__PURE__ */ ((e) => (e.ITEM = "item", e.FOLDER = "folder", e))(O || {}), 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
- const ra = ({
21
+ var k = /* @__PURE__ */ ((e) => (e.ITEM = "item", e.FOLDER = "folder", e))(k || {}), er = /* @__PURE__ */ ((e) => (e.FILE = "FILE", e.PROMPT = "PROMPT", e.CONVERSATION = "CONVERSATION", e.APPLICATION = "APPLICATION", e.TOOLSET = "TOOL_SET", e))(er || {}), St = /* @__PURE__ */ ((e) => (e.READ = "READ", e.WRITE = "WRITE", e.SHARE = "SHARE", e))(St || {});
22
+ const la = ({
20
23
  open: e,
21
24
  onClose: t,
22
25
  onReplace: r,
@@ -33,11 +36,11 @@ const ra = ({
33
36
  nameColumnLabel: y = "Name",
34
37
  actionColumnLabel: g = "Action"
35
38
  }) => {
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(
39
+ 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", F = c?.[ze.ReplaceAll] ?? "Replace all", w = c?.[ze.DuplicateAll] ?? "Duplicate all", R = c?.[ze.DecideForEach] ?? "Decide for each", [I, S] = z(
37
40
  Ce.Replace
38
41
  ), [L, W] = z(
39
42
  ze.ReplaceAll
40
- ), [k, P] = z(
43
+ ), [O, P] = z(
41
44
  new Map(
42
45
  s.map((H) => [
43
46
  H.path,
@@ -46,16 +49,16 @@ const ra = ({
46
49
  )
47
50
  ), [_, j] = z(
48
51
  void 0
49
- ), M = m ? l : i, Y = /* @__PURE__ */ q(Fe, { children: [
52
+ ), M = m ? l : i, q = /* @__PURE__ */ K(Ie, { children: [
50
53
  "Item with the name ",
51
- /* @__PURE__ */ q("span", { className: "text-primary", children: [
54
+ /* @__PURE__ */ K("span", { className: "text-primary", children: [
52
55
  '"',
53
56
  D,
54
57
  '"'
55
58
  ] }),
56
59
  " ",
57
60
  "already exists in this destination."
58
- ] }), oe = `${s.length} items with the same names already exist in this destination.`, V = p ?? (m ? Y : oe), Z = G(
61
+ ] }), oe = `${s.length} items with the same names already exist in this destination.`, V = p ?? (m ? q : oe), Z = $(
59
62
  () => [
60
63
  {
61
64
  value: Ce.Replace,
@@ -67,13 +70,13 @@ const ra = ({
67
70
  }
68
71
  ],
69
72
  [x, h]
70
- ), ie = G(() => s.map((H) => ({
73
+ ), ie = $(() => s.map((H) => ({
71
74
  id: H.path,
72
75
  name: H.name,
73
76
  path: H.path,
74
- nodeType: H.nodeType ?? O.ITEM,
75
- action: k.get(H.path) || Ce.Replace
76
- })), [s, k]), we = G(() => [
77
+ nodeType: H.nodeType ?? k.ITEM,
78
+ action: O.get(H.path) || Ce.Replace
79
+ })), [s, O]), we = $(() => [
77
80
  {
78
81
  field: "name",
79
82
  headerName: y,
@@ -82,14 +85,14 @@ const ra = ({
82
85
  floatingFilter: !1,
83
86
  filter: !1,
84
87
  resizable: !1,
85
- cellRenderer: (H) => H.data?.nodeType === O.FOLDER ? /* @__PURE__ */ a(
86
- Oo,
88
+ cellRenderer: (H) => H.data?.nodeType === k.FOLDER ? /* @__PURE__ */ a(
89
+ zo,
87
90
  {
88
91
  name: H.data.name,
89
92
  iconSize: st
90
93
  }
91
94
  ) : /* @__PURE__ */ a(
92
- Lo,
95
+ _o,
93
96
  {
94
97
  name: H.data.name,
95
98
  iconSize: st
@@ -129,7 +132,7 @@ const ra = ({
129
132
  return /* @__PURE__ */ a("div", { className: "flex items-center h-full", children: /* @__PURE__ */ a(
130
133
  ht,
131
134
  {
132
- trigger: [fa.Click],
135
+ trigger: [Ca.Click],
133
136
  open: U,
134
137
  items: De,
135
138
  onItemClick: ({ key: te }) => {
@@ -147,15 +150,16 @@ const ra = ({
147
150
  onOpenChange: (te) => {
148
151
  j(te ? H.data.path : void 0);
149
152
  },
150
- children: /* @__PURE__ */ q("button", { type: "button", className: "flex items-center gap-2", children: [
151
- /* @__PURE__ */ q("span", { className: "flex items-center gap-2", children: [
153
+ children: /* @__PURE__ */ K("button", { type: "button", className: "flex items-center gap-2", children: [
154
+ /* @__PURE__ */ K("span", { className: "flex items-center gap-2", children: [
152
155
  be?.icon,
153
156
  be?.label ?? x
154
157
  ] }),
155
158
  /* @__PURE__ */ a(
156
- Qa,
159
+ Ja,
157
160
  {
158
- size: zo.SM,
161
+ size: Wo.SM,
162
+ stroke: Zn,
159
163
  className: an(
160
164
  "text-secondary transition-transform",
161
165
  U && "rotate-180"
@@ -174,11 +178,11 @@ const ra = ({
174
178
  h,
175
179
  f,
176
180
  _
177
- ]), xe = G(
181
+ ]), xe = $(
178
182
  () => [
179
183
  {
180
184
  value: ze.ReplaceAll,
181
- label: I
185
+ label: F
182
186
  },
183
187
  {
184
188
  value: ze.DuplicateAll,
@@ -188,7 +192,7 @@ const ra = ({
188
192
  value: ze.DecideForEach,
189
193
  label: R,
190
194
  content: /* @__PURE__ */ a(
191
- ma,
195
+ ga,
192
196
  {
193
197
  columnDefs: we,
194
198
  rowData: ie,
@@ -203,7 +207,7 @@ const ra = ({
203
207
  }
204
208
  ],
205
209
  [
206
- I,
210
+ F,
207
211
  w,
208
212
  R,
209
213
  we,
@@ -222,7 +226,7 @@ const ra = ({
222
226
  he(), t();
223
227
  }, [he, t]), Ne = d(() => {
224
228
  if (he(), m)
225
- F === Ce.Replace ? r() : o();
229
+ I === Ce.Replace ? r() : o();
226
230
  else if (L === ze.ReplaceAll)
227
231
  r();
228
232
  else if (L === ze.DuplicateAll)
@@ -231,7 +235,7 @@ const ra = ({
231
235
  const H = s.map(
232
236
  (De) => ({
233
237
  file: De,
234
- action: k.get(De.path) || Ce.Replace
238
+ action: O.get(De.path) || Ce.Replace
235
239
  })
236
240
  );
237
241
  n(H);
@@ -239,16 +243,16 @@ const ra = ({
239
243
  }, [
240
244
  he,
241
245
  m,
242
- F,
246
+ I,
243
247
  r,
244
248
  o,
245
249
  L,
246
250
  n,
247
251
  s,
248
- k
252
+ O
249
253
  ]);
250
254
  return /* @__PURE__ */ a(
251
- _o,
255
+ Ho,
252
256
  {
253
257
  open: e,
254
258
  onClose: Te,
@@ -256,23 +260,23 @@ const ra = ({
256
260
  className: an([!m && "w-[600px]"]),
257
261
  header: M,
258
262
  preventKeyboardOnOpen: !0,
259
- footer: /* @__PURE__ */ q("div", { className: "flex justify-end gap-3 py-4 px-6 border-t border-tertiary", children: [
260
- /* @__PURE__ */ a($n, { onClick: Te, label: u }),
263
+ footer: /* @__PURE__ */ K("div", { className: "flex justify-end gap-3 py-4 px-6 border-t border-tertiary", children: [
264
+ /* @__PURE__ */ a(Gn, { onClick: Te, label: u }),
261
265
  /* @__PURE__ */ a(on, { onClick: Ne, label: v })
262
266
  ] }),
263
- children: /* @__PURE__ */ q("div", { className: "px-6 py-4", children: [
267
+ children: /* @__PURE__ */ K("div", { className: "px-6 py-4", children: [
264
268
  /* @__PURE__ */ a("p", { className: "text-secondary mb-4 break-words", children: V }),
265
269
  m ? /* @__PURE__ */ a(
266
- Jo,
270
+ ta,
267
271
  {
268
272
  id: "single-file-conflict",
269
273
  ariaLabel: M,
270
274
  items: Z,
271
- value: F,
275
+ value: I,
272
276
  onChange: (H) => S(H)
273
277
  }
274
278
  ) : /* @__PURE__ */ a(
275
- Jo,
279
+ ta,
276
280
  {
277
281
  id: "multiple-files-conflict",
278
282
  ariaLabel: M,
@@ -285,7 +289,7 @@ const ra = ({
285
289
  ] })
286
290
  }
287
291
  );
288
- }, Js = ({
292
+ }, tr = ({
289
293
  getContextMenuItems: e,
290
294
  isRowDisabled: t,
291
295
  allowedFileTypes: r,
@@ -311,13 +315,18 @@ const ra = ({
311
315
  allowedPlacements: ["top-start", "top-end", "bottom-start"],
312
316
  items: c,
313
317
  className: Ee("sticky right-0", n),
314
- children: /* @__PURE__ */ a(pt, { icon: /* @__PURE__ */ a(rn, { ...A }) })
318
+ children: /* @__PURE__ */ a(
319
+ pt,
320
+ {
321
+ icon: /* @__PURE__ */ a(rn, { ...A })
322
+ }
323
+ )
315
324
  }
316
325
  ) : null;
317
326
  },
318
327
  [r, o, n, t]
319
328
  );
320
- return { actionsColumnDef: G(
329
+ return { actionsColumnDef: $(
321
330
  () => ({
322
331
  colId: "__actions",
323
332
  headerName: "",
@@ -333,17 +342,17 @@ const ra = ({
333
342
  }),
334
343
  [l]
335
344
  ) };
336
- }, er = ({
345
+ }, nr = ({
337
346
  onRename: e
338
347
  }) => {
339
- const [t, r] = z(Ft.Grid), o = d(
348
+ const [t, r] = z(It.Grid), o = d(
340
349
  (s) => {
341
- e(s), r(Ft.Grid);
350
+ e(s), r(It.Grid);
342
351
  },
343
352
  [e]
344
353
  ), n = d(
345
354
  (s) => {
346
- e(s), r(Ft.Tree);
355
+ e(s), r(It.Tree);
347
356
  },
348
357
  [e]
349
358
  );
@@ -353,7 +362,7 @@ const ra = ({
353
362
  onTreeRename: n
354
363
  };
355
364
  };
356
- function tr(e, t) {
365
+ function or(e, t) {
357
366
  const r = de(null), [o, n] = z(!1);
358
367
  return fe(() => {
359
368
  if (!r.current) return;
@@ -364,36 +373,36 @@ function tr(e, t) {
364
373
  return s.observe(t?.current || r?.current), () => s.disconnect();
365
374
  }, [e, t]), { containerRef: r, isBelowBreakpoint: o };
366
375
  }
367
- var nr = /* @__PURE__ */ ((e) => (e.MULTIPLE = "MULTIPLE", e.SINGLE = "SINGLE", e))(nr || {});
368
- const Ke = (e, t) => {
376
+ var ar = /* @__PURE__ */ ((e) => (e.MULTIPLE = "MULTIPLE", e.SINGLE = "SINGLE", e))(ar || {});
377
+ const Ye = (e, t) => {
369
378
  if (!(!e || !e.length || !t))
370
379
  for (const r of e) {
371
380
  if (r.path === t) return r;
372
- const o = Ke(r.items, t);
381
+ const o = Ye(r.items, t);
373
382
  if (o) return o;
374
383
  }
375
- }, It = (e, t) => {
384
+ }, Ft = (e, t) => {
376
385
  if (!e?.length) return;
377
386
  if (!t) return e[0];
378
- const r = Ke(e, t);
379
- if (r && r.nodeType === O.FOLDER) return r;
387
+ const r = Ye(e, t);
388
+ if (r && r.nodeType === k.FOLDER) return r;
380
389
  const o = t.split("/").filter(Boolean);
381
390
  if (o.length <= 1) return e[0];
382
391
  const n = "/" + o.slice(0, o.length - 1).join("/");
383
- return Ke(e, n) ?? e[0];
384
- }, Et = (e) => (e ?? "").toLowerCase(), or = (e) => Et(e).replace(/^\./, ""), ar = (e) => {
392
+ return Ye(e, n) ?? e[0];
393
+ }, Et = (e) => (e ?? "").toLowerCase(), sr = (e) => Et(e).replace(/^\./, ""), rr = (e) => {
385
394
  if (!e) return [];
386
395
  const t = [], r = (o) => {
387
396
  const n = o.items ?? [];
388
397
  for (const s of n)
389
- t.push(s), s.nodeType === O.FOLDER && r(s);
398
+ t.push(s), s.nodeType === k.FOLDER && r(s);
390
399
  };
391
400
  return r(e), t;
392
- }, Da = (e) => (e.name ?? e.path.split("/").pop() ?? "").startsWith("."), sn = (e) => {
401
+ }, Ta = (e) => (e.name ?? e.path.split("/").pop() ?? "").startsWith("."), sn = (e) => {
393
402
  if (!e) return "0 bytes";
394
403
  const t = 1024, r = t * 1024;
395
404
  return e >= r ? `${(e / r).toFixed(1)} MB` : e >= t ? `${(e / t).toFixed(0)} KB` : `${e} bytes`;
396
- }, sr = (e, t = "en-US", r = {
405
+ }, ir = (e, t = "en-US", r = {
397
406
  year: "numeric",
398
407
  month: "short",
399
408
  day: "2-digit"
@@ -405,7 +414,7 @@ const Ke = (e, t) => {
405
414
  return e;
406
415
  }
407
416
  };
408
- function Uo(e, t, r) {
417
+ function Go(e, t, r) {
409
418
  if (!e || e.includes("*/*"))
410
419
  return !0;
411
420
  const o = t.toLowerCase(), n = r && r.includes(".") ? `.${r.split(".").at(-1).toLowerCase()}` : void 0;
@@ -420,48 +429,48 @@ function Uo(e, t, r) {
420
429
  return o === l;
421
430
  });
422
431
  }
423
- const rr = (e) => e?.map((t) => t.endsWith("/*") ? t.replace("/*", "s") : ir(t).flat().map((r) => `.${r}`)).flat().join(", ") || "", ir = (e) => {
432
+ const lr = (e) => e?.map((t) => t.endsWith("/*") ? t.replace("/*", "s") : cr(t).flat().map((r) => `.${r}`)).flat().join(", ") || "", cr = (e) => {
424
433
  const [t, r] = e.split("/");
425
- return t === "*" ? ["all"] : r === "*" ? Object.entries(na).reduce((o, [n, s]) => {
434
+ return t === "*" ? ["all"] : r === "*" ? Object.entries(aa).reduce((o, [n, s]) => {
426
435
  const [l] = n.split("/");
427
436
  return l === t && o.push(...s), o;
428
- }, []) : na[e] || [];
429
- }, Zn = (e) => {
437
+ }, []) : aa[e] || [];
438
+ }, Xn = (e) => {
430
439
  if (!e) return;
431
440
  const t = e.flags.replace(/[gy]/g, "");
432
441
  return new RegExp(e.source, t);
433
442
  };
434
- function Vo(e, t, r) {
435
- if (t && Zn(t)?.test(e.name))
443
+ function $o(e, t, r) {
444
+ if (t && Xn(t)?.test(e.name))
436
445
  return r ?? `This ${e.isFolder ? "folder" : "file"} contains forbidden characters in its name. Please rename it.`;
437
446
  }
438
- const lr = (e) => {
447
+ const dr = (e) => {
439
448
  const t = e.lastIndexOf("/");
440
449
  return t >= 0 ? {
441
450
  parent: e.slice(0, t),
442
451
  name: e.slice(t + 1)
443
452
  } : { parent: "", name: e };
444
- }, cr = (e, t, r) => {
445
- const o = !e.contentLength || r == null || e.contentLength <= r, n = !e.contentType || Uo(t, e.contentType, e.name);
453
+ }, ur = (e, t, r) => {
454
+ const o = !e.contentLength || r == null || e.contentLength <= r, n = !e.contentType || Go(t, e.contentType, e.name);
446
455
  return o && n;
447
- }, dr = (e, t, r, o, n) => {
448
- if (e.nodeType === O.FOLDER) return;
456
+ }, hr = (e, t, r, o, n) => {
457
+ if (e.nodeType === k.FOLDER) return;
449
458
  const s = !e.contentLength || r == null || e.contentLength <= r;
450
- if (!(!e.contentType || Uo(t, e.contentType, e.name)))
451
- return o ?? (t?.length ? `Unsupported file type. Supported types: ${rr(t)}.` : "Unsupported file type.");
459
+ if (!(!e.contentType || Go(t, e.contentType, e.name)))
460
+ return o ?? (t?.length ? `Unsupported file type. Supported types: ${lr(t)}.` : "Unsupported file type.");
452
461
  if (!s)
453
462
  return n ?? `File is too large. Maximum size: ${sn(r)}.`;
454
- }, ur = new Intl.Collator(void 0, {
463
+ }, pr = new Intl.Collator(void 0, {
455
464
  sensitivity: "base",
456
465
  numeric: !0
457
- }), hr = (e, t, r, o, n) => {
466
+ }), fr = (e, t, r, o, n) => {
458
467
  if (typeof e == "string" && typeof t == "string" && e && t) {
459
- const s = ur.compare(e, t);
468
+ const s = pr.compare(e, t);
460
469
  return s === 0 ? 0 : s > 0 ? 1 : -1;
461
470
  }
462
471
  return e === t ? 0 : e ? t ? e > t ? 1 : -1 : n ? 1 : -1 : n ? -1 : 1;
463
- }, pr = (e) => e.replace(/\/+$/, "").split("/").filter(Boolean).length, Kt = (e) => {
464
- const t = `${aa} `, r = new RegExp(`^${aa} (\\d+)$`), o = new Set(
472
+ }, mr = (e) => e.replace(/\/+$/, "").split("/").filter(Boolean).length, Yt = (e) => {
473
+ const t = `${ra} `, r = new RegExp(`^${ra} (\\d+)$`), o = new Set(
465
474
  e.map((i) => i.name.toLowerCase())
466
475
  ), n = e.map((i) => {
467
476
  const p = i.name.match(r);
@@ -471,7 +480,7 @@ const lr = (e) => {
471
480
  for (; o.has(s.toLowerCase()); )
472
481
  l++, s = `${t}${l}`;
473
482
  return s;
474
- }, fr = (e) => {
483
+ }, Cr = (e) => {
475
484
  const [t, r] = z(e?.showHiddenFiles ?? !1), o = !!e?.onShowHiddenFilesChange, n = o ? e.showHiddenFiles ?? !1 : t, s = d(
476
485
  (i) => {
477
486
  o ? e?.onShowHiddenFilesChange?.(i) : r(i);
@@ -486,7 +495,7 @@ const lr = (e) => {
486
495
  toggleHiddenFilesVisibility: l,
487
496
  setAreHiddenFilesVisible: s
488
497
  };
489
- }, mr = (e) => {
498
+ }, gr = (e) => {
490
499
  const [t, r] = z(
491
500
  e?.collapsed ?? !1
492
501
  ), o = !!e?.onCollapseChange, n = o ? e.collapsed ?? !1 : t, s = d(
@@ -503,10 +512,10 @@ const lr = (e) => {
503
512
  toggleTreeCollapse: l,
504
513
  setIsTreeCollapsed: s
505
514
  };
506
- }, ia = (e, t, r) => {
515
+ }, ca = (e, t, r) => {
507
516
  if (!t.has(e))
508
517
  return e;
509
- const o = r === O.FOLDER ? (n, s) => `${n} (${s})` : (n, s) => {
518
+ const o = r === k.FOLDER ? (n, s) => `${n} (${s})` : (n, s) => {
510
519
  const l = n.lastIndexOf("."), i = l > 0, p = i ? n.slice(0, l) : n, C = i ? n.slice(l) : "";
511
520
  return `${p} (${s})${C}`;
512
521
  };
@@ -514,7 +523,7 @@ const lr = (e) => {
514
523
  const s = o(e, n);
515
524
  if (!t.has(s)) return s;
516
525
  }
517
- }, Fo = (e) => e.name, Ta = ({
526
+ }, Fo = (e) => e.name, Ra = ({
518
527
  getDestinationFiles: e,
519
528
  onResolve: t
520
529
  }) => {
@@ -523,49 +532,49 @@ const lr = (e) => {
523
532
  }, []), c = d(() => {
524
533
  p.current = !1, s(!1), o([]), i(null);
525
534
  }, []), v = d(
526
- (f, I) => {
527
- const w = e(f), R = new Set(w.map(Fo)), F = I.filter((S) => R.has(S.name));
535
+ (f, F) => {
536
+ const w = e(f), R = new Set(w.map(Fo)), I = F.filter((S) => R.has(S.name));
528
537
  return {
529
- hasConflicts: F.length > 0,
530
- conflicts: F
538
+ hasConflicts: I.length > 0,
539
+ conflicts: I
531
540
  };
532
541
  },
533
542
  [e]
534
543
  ), u = d(
535
- (f, I, w, R) => {
536
- const F = e(f), S = new Set(F.map(Fo));
537
- return I.map((L) => {
538
- const W = L.name, k = S.has(W), P = w && k ? W : ia(W, S, L.nodeType);
539
- return (!w || !k) && S.add(P), {
544
+ (f, F, w, R) => {
545
+ const I = e(f), S = new Set(I.map(Fo));
546
+ return F.map((L) => {
547
+ const W = L.name, O = S.has(W), P = w && O ? W : ca(W, S, L.nodeType);
548
+ return (!w || !O) && S.add(P), {
540
549
  sourceUrl: L.path,
541
550
  destinationUrl: `${f}/${P}`,
542
- overwrite: w && k,
543
- nodeType: L.nodeType ?? O.ITEM,
551
+ overwrite: w && O,
552
+ nodeType: L.nodeType ?? k.ITEM,
544
553
  ...R ?? {}
545
554
  };
546
555
  });
547
556
  },
548
557
  [e]
549
558
  ), y = d(
550
- (f, I, w, R) => {
551
- const F = e(f), S = new Set(F.map(Fo));
552
- return I.filter((W) => w.get(W.path) !== Ce.Cancel).map((W) => {
553
- const k = w.get(W.path), P = S.has(W.name), _ = k === Ce.Replace && P, j = _ ? W.name : ia(W.name, S, W.nodeType);
559
+ (f, F, w, R) => {
560
+ const I = e(f), S = new Set(I.map(Fo));
561
+ return F.filter((W) => w.get(W.path) !== Ce.Cancel).map((W) => {
562
+ const O = w.get(W.path), P = S.has(W.name), _ = O === Ce.Replace && P, j = _ ? W.name : ca(W.name, S, W.nodeType);
554
563
  return _ || S.add(j), {
555
564
  sourceUrl: W.path,
556
565
  destinationUrl: `${f}/${j}`,
557
566
  overwrite: _,
558
- nodeType: W.nodeType ?? O.ITEM,
567
+ nodeType: W.nodeType ?? k.ITEM,
559
568
  ...R ?? {}
560
569
  };
561
570
  });
562
571
  },
563
572
  [e]
564
573
  ), g = d(
565
- (f, I, w) => {
566
- const R = v(f, I);
574
+ (f, F, w) => {
575
+ const R = v(f, F);
567
576
  return R.hasConflicts && (i({
568
- files: I,
577
+ files: F,
569
578
  destinationFolder: f,
570
579
  metadata: w
571
580
  }), C(R.conflicts)), R;
@@ -573,13 +582,13 @@ const lr = (e) => {
573
582
  [v, C]
574
583
  ), m = d(() => {
575
584
  if (!l) return;
576
- const { files: f, destinationFolder: I, metadata: w } = l, R = u(
577
- I,
585
+ const { files: f, destinationFolder: F, metadata: w } = l, R = u(
586
+ F,
578
587
  f,
579
588
  !0,
580
589
  w
581
590
  );
582
- t?.(R, I), c();
591
+ t?.(R, F), c();
583
592
  }, [
584
593
  l,
585
594
  u,
@@ -587,13 +596,13 @@ const lr = (e) => {
587
596
  c
588
597
  ]), D = d(() => {
589
598
  if (!l) return;
590
- const { files: f, destinationFolder: I, metadata: w } = l, R = u(
591
- I,
599
+ const { files: f, destinationFolder: F, metadata: w } = l, R = u(
600
+ F,
592
601
  f,
593
602
  !1,
594
603
  w
595
604
  );
596
- t?.(R, I), c();
605
+ t?.(R, F), c();
597
606
  }, [
598
607
  l,
599
608
  u,
@@ -601,18 +610,18 @@ const lr = (e) => {
601
610
  c
602
611
  ]), x = d(() => {
603
612
  if (!l) return;
604
- const { files: f, destinationFolder: I, metadata: w } = l, R = y(
605
- I,
613
+ const { files: f, destinationFolder: F, metadata: w } = l, R = y(
614
+ F,
606
615
  f,
607
616
  new Map(
608
- r.map((F) => [
609
- F.path,
617
+ r.map((I) => [
618
+ I.path,
610
619
  Ce.Cancel
611
620
  ])
612
621
  ),
613
622
  w
614
623
  );
615
- t?.(R, I), c();
624
+ t?.(R, F), c();
616
625
  }, [
617
626
  c,
618
627
  r,
@@ -622,12 +631,12 @@ const lr = (e) => {
622
631
  ]), h = d(
623
632
  (f) => {
624
633
  if (!l) return;
625
- const { files: I, destinationFolder: w, metadata: R } = l, F = new Map(
634
+ const { files: F, destinationFolder: w, metadata: R } = l, I = new Map(
626
635
  f.map((L) => [L.file.path, L.action])
627
636
  ), S = y(
628
637
  w,
629
- I,
630
638
  F,
639
+ I,
631
640
  R
632
641
  );
633
642
  t?.(S, w), c();
@@ -654,7 +663,7 @@ const lr = (e) => {
654
663
  handleCancelAll: x,
655
664
  handleDecideForEach: h
656
665
  };
657
- }, Cr = ({
666
+ }, vr = ({
658
667
  getDestinationFiles: e,
659
668
  onCopyFiles: t,
660
669
  onMoveToFiles: r,
@@ -665,18 +674,18 @@ const lr = (e) => {
665
674
  getMoveHeader: i
666
675
  }) => {
667
676
  const [p, C] = z(!1), [c, v] = z([]), [u, y] = z([]), [g, m] = z(ge.Copy), [D, x] = z(), [h, f] = z(null), {
668
- conflictingFiles: I,
677
+ conflictingFiles: F,
669
678
  conflictResolutionOpen: w,
670
679
  hasActiveConflictRef: R,
671
- startConflictResolution: F,
680
+ startConflictResolution: I,
672
681
  resolveConflictsWithStrategy: S,
673
682
  closeConflictResolution: L,
674
683
  openConflictResolution: W,
675
- handleReplaceAll: k,
684
+ handleReplaceAll: O,
676
685
  handleDuplicateAll: P,
677
686
  handleCancelAll: _,
678
687
  handleDecideForEach: j
679
- } = Ta({
688
+ } = Ra({
680
689
  getDestinationFiles: e,
681
690
  onResolve: (U, te) => {
682
691
  U?.length && (h?.type === ge.Copy ? (t?.(U, te), o?.()) : h?.type === ge.Move && h.sourceFolder && (r?.(
@@ -687,9 +696,9 @@ const lr = (e) => {
687
696
  }
688
697
  }), M = d(() => {
689
698
  v([]), y([]), f(null), x(void 0);
690
- }, []), Y = d(
699
+ }, []), q = d(
691
700
  (U) => {
692
- const te = F(U, c, {
701
+ const te = I(U, c, {
693
702
  type: ge.Copy
694
703
  });
695
704
  if (f({ type: ge.Copy }), !te.hasConflicts) {
@@ -703,7 +712,7 @@ const lr = (e) => {
703
712
  },
704
713
  [
705
714
  c,
706
- F,
715
+ I,
707
716
  S,
708
717
  t,
709
718
  o,
@@ -712,21 +721,21 @@ const lr = (e) => {
712
721
  ), oe = d(
713
722
  (U, te) => {
714
723
  const pe = te || (h?.sourceFolder ?? "/");
715
- if (!F(U, u, {
724
+ if (!I(U, u, {
716
725
  type: ge.Move,
717
726
  sourceFolderPath: pe
718
727
  }).hasConflicts) {
719
- const ke = S(
728
+ const Oe = S(
720
729
  U,
721
730
  u,
722
731
  !0
723
732
  );
724
- r?.(ke, pe, U), n?.(), M();
733
+ r?.(Oe, pe, U), n?.(), M();
725
734
  }
726
735
  },
727
736
  [
728
737
  u,
729
- F,
738
+ I,
730
739
  S,
731
740
  r,
732
741
  n,
@@ -734,8 +743,8 @@ const lr = (e) => {
734
743
  h
735
744
  ]
736
745
  ), V = d(() => {
737
- k(), M();
738
- }, [k, M]), Z = d(() => {
746
+ O(), M();
747
+ }, [O, M]), Z = d(() => {
739
748
  P(), M();
740
749
  }, [P, M]), ie = d(() => {
741
750
  _(), M();
@@ -783,7 +792,7 @@ const lr = (e) => {
783
792
  handleDuplicate: xe,
784
793
  handleCloseDestinationFolderPopup: Te,
785
794
  handleOpenDestinationFolderPopup: he,
786
- handleCopyTo: Y,
795
+ handleCopyTo: q,
787
796
  handleMoveTo: oe,
788
797
  openDestinationFolderPopup: p,
789
798
  destinationFolderMode: g,
@@ -791,7 +800,7 @@ const lr = (e) => {
791
800
  handleSetCopiedFiles: De,
792
801
  handleSetMovedFiles: be,
793
802
  clearState: M,
794
- conflictingFiles: I,
803
+ conflictingFiles: F,
795
804
  conflictResolutionOpen: w,
796
805
  openConflictResolution: W,
797
806
  closeConflictResolution: L,
@@ -801,7 +810,7 @@ const lr = (e) => {
801
810
  handleConflictDecideForEach: we,
802
811
  sourceFolder: D
803
812
  };
804
- }, gr = ({
813
+ }, yr = ({
805
814
  path: e,
806
815
  defaultPath: t,
807
816
  onPathChange: r,
@@ -825,7 +834,7 @@ const lr = (e) => {
825
834
  setCurrentPath: p,
826
835
  handlePathChange: C
827
836
  };
828
- }, vr = ({
837
+ }, wr = ({
829
838
  onDeleteFiles: e,
830
839
  onDeleteSuccess: t
831
840
  }) => {
@@ -859,7 +868,7 @@ const lr = (e) => {
859
868
  closeDeleteConfirmation: C,
860
869
  confirmDelete: c
861
870
  };
862
- }, yr = ({
871
+ }, Nr = ({
863
872
  onDownloadFiles: e,
864
873
  customDownloadItemsAction: t,
865
874
  onDownloadSuccess: r
@@ -870,7 +879,7 @@ const lr = (e) => {
870
879
  },
871
880
  [e, r, t]
872
881
  )
873
- }), wr = (e) => "dataTransfer" in e && e.dataTransfer !== null, Nr = ({
882
+ }), br = (e) => "dataTransfer" in e && e.dataTransfer !== null, xr = ({
874
883
  onUploadFiles: e,
875
884
  onValidateUpload: t,
876
885
  maxFileSize: r,
@@ -881,25 +890,25 @@ const lr = (e) => {
881
890
  uploadEnabled: i = !0,
882
891
  currentFolder: p
883
892
  } = {}) => {
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(
893
+ const [C, c] = z(!1), [v, u] = z(!1), [y, g] = z(), m = de(null), D = de(""), x = de([]), h = $(() => !!p?.permissions?.includes(St.WRITE), [p]), [f, F] = z(/* @__PURE__ */ new Map()), [w, R] = z(null), I = d(
885
894
  (T) => !o || o.includes("*/*") ? T : T.filter(
886
- ({ fileContent: B, name: $ }) => Uo(o, B.type, $)
895
+ ({ fileContent: B, name: G }) => Go(o, B.type, G)
887
896
  ),
888
897
  [o]
889
898
  ), S = d(() => {
890
- I(/* @__PURE__ */ new Map()), R(null);
899
+ F(/* @__PURE__ */ new Map()), R(null);
891
900
  }, []), {
892
901
  conflictingFiles: L,
893
902
  conflictResolutionOpen: W,
894
- hasActiveConflictRef: k,
903
+ hasActiveConflictRef: O,
895
904
  startConflictResolution: P,
896
905
  closeConflictResolution: _,
897
906
  openConflictResolution: j,
898
907
  handleReplaceAll: M,
899
- handleDuplicateAll: Y,
908
+ handleDuplicateAll: q,
900
909
  handleCancelAll: oe,
901
910
  handleDecideForEach: V
902
- } = Ta({
911
+ } = Ra({
903
912
  getDestinationFiles: () => x.current,
904
913
  onResolve: (T, B) => {
905
914
  if (!i || !h) {
@@ -907,7 +916,7 @@ const lr = (e) => {
907
916
  return;
908
917
  }
909
918
  if (!w) return;
910
- const $ = T.map((J) => {
919
+ const G = T.map((J) => {
911
920
  const X = f.get(J.sourceUrl);
912
921
  if (!X)
913
922
  return;
@@ -917,10 +926,10 @@ const lr = (e) => {
917
926
  name: me
918
927
  };
919
928
  }).filter(Boolean);
920
- if ($[0]?.fileContent?.type === "application/zip") {
921
- const { fileContent: J, name: X } = $[0];
929
+ if (G[0]?.fileContent?.type === "application/zip") {
930
+ const { fileContent: J, name: X } = G[0];
922
931
  s?.(J, X, B);
923
- } else $.length > 0 && e?.($, B);
932
+ } else G.length > 0 && e?.(G, B);
924
933
  S();
925
934
  }
926
935
  });
@@ -935,49 +944,49 @@ const lr = (e) => {
935
944
  if (!i || !h) return;
936
945
  let T = 0;
937
946
  const B = (me) => {
938
- wr(me) && me.dataTransfer.types.includes(Zs) && (T++, u(!0));
939
- }, $ = () => {
947
+ br(me) && me.dataTransfer.types.includes(Ks) && (T++, u(!0));
948
+ }, G = () => {
940
949
  T--, T === 0 && u(!1);
941
950
  }, J = () => {
942
951
  T = 0, u(!1);
943
952
  }, X = (me) => {
944
953
  me.preventDefault();
945
954
  };
946
- return window.addEventListener("dragenter", B), window.addEventListener("dragleave", $), window.addEventListener("drop", J), window.addEventListener("dragover", X), () => {
947
- window.removeEventListener("dragenter", B), window.removeEventListener("dragleave", $), window.removeEventListener("drop", J), window.removeEventListener("dragover", X);
955
+ return window.addEventListener("dragenter", B), window.addEventListener("dragleave", G), window.addEventListener("drop", J), window.addEventListener("dragover", X), () => {
956
+ window.removeEventListener("dragenter", B), window.removeEventListener("dragleave", G), window.removeEventListener("drop", J), window.removeEventListener("dragover", X);
948
957
  };
949
958
  }, [i, h]);
950
959
  const Z = d(
951
960
  (T) => r ? T.filter((B) => B.fileContent.size > r).map((B) => B.name) : [],
952
961
  [r]
953
962
  ), ie = d(
954
- (T, B) => T.map(($) => ({
955
- id: $.name,
956
- name: $.name,
963
+ (T, B) => T.map((G) => ({
964
+ id: G.name,
965
+ name: G.name,
957
966
  folderId: B,
958
- path: $.name,
959
- nodeType: O.ITEM,
967
+ path: G.name,
968
+ nodeType: k.ITEM,
960
969
  parentPath: B,
961
- contentLength: $.fileContent.size
970
+ contentLength: G.fileContent.size
962
971
  })),
963
972
  []
964
973
  ), we = d(
965
- async (T, B, $) => {
974
+ async (T, B, G) => {
966
975
  if (!i || !h) return !1;
967
- g(void 0), x.current = $;
976
+ g(void 0), x.current = G;
968
977
  const J = l ? T.map((ae) => ({
969
978
  ...ae,
970
979
  name: l(ae.name)
971
980
  })) : T, X = Z(J);
972
981
  if (X.length > 0) {
973
- const ae = r ? (r / 1048576).toFixed(2) : 0, $e = n.oversizedFiles || `Files exceed maximum size (${ae}MB): ${X.join(", ")}`;
974
- return g($e), !1;
982
+ const ae = r ? (r / 1048576).toFixed(2) : 0, Ge = n.oversizedFiles || `Files exceed maximum size (${ae}MB): ${X.join(", ")}`;
983
+ return g(Ge), !1;
975
984
  }
976
985
  if (t)
977
986
  try {
978
987
  const ae = await t(
979
988
  J,
980
- $,
989
+ G,
981
990
  B
982
991
  );
983
992
  if (!ae.valid)
@@ -990,7 +999,7 @@ const lr = (e) => {
990
999
  ), !1;
991
1000
  }
992
1001
  const me = new Map(J.map((ae) => [ae.name, ae]));
993
- I(me);
1002
+ F(me);
994
1003
  const Ae = ie(
995
1004
  J,
996
1005
  B
@@ -1015,8 +1024,8 @@ const lr = (e) => {
1015
1024
  ), xe = d(() => {
1016
1025
  M(), S();
1017
1026
  }, [M, S]), he = d(() => {
1018
- Y(), S();
1019
- }, [Y, S]), Te = d(() => {
1027
+ q(), S();
1028
+ }, [q, S]), Te = d(() => {
1020
1029
  oe(), S();
1021
1030
  }, [oe, S]), Ne = d(
1022
1031
  (T) => {
@@ -1024,8 +1033,8 @@ const lr = (e) => {
1024
1033
  },
1025
1034
  [V, S]
1026
1035
  ), H = d(() => {
1027
- _(), k.current || S();
1028
- }, [_, k, S]), De = d(
1036
+ _(), O.current || S();
1037
+ }, [_, O, S]), De = d(
1029
1038
  (T) => {
1030
1039
  !i || !h || (T.preventDefault(), T.stopPropagation(), T.dataTransfer.types.includes("Files") && c(!0));
1031
1040
  },
@@ -1034,8 +1043,8 @@ const lr = (e) => {
1034
1043
  (T) => {
1035
1044
  if (!i || !h) return;
1036
1045
  T.preventDefault(), T.stopPropagation();
1037
- const B = T.currentTarget.getBoundingClientRect(), $ = T.clientX, J = T.clientY;
1038
- ($ <= B.left || $ >= B.right || J <= B.top || J >= B.bottom) && c(!1);
1046
+ const B = T.currentTarget.getBoundingClientRect(), G = T.clientX, J = T.clientY;
1047
+ (G <= B.left || G >= B.right || J <= B.top || J >= B.bottom) && c(!1);
1039
1048
  },
1040
1049
  [i, h]
1041
1050
  ), U = d(
@@ -1044,7 +1053,7 @@ const lr = (e) => {
1044
1053
  },
1045
1054
  [i, h]
1046
1055
  ), te = d(
1047
- async (T, B, $) => {
1056
+ async (T, B, G) => {
1048
1057
  if (!i || !h || (T.preventDefault(), T.stopPropagation(), c(!1), !T.dataTransfer.types.includes("Files")))
1049
1058
  return;
1050
1059
  const J = Array.from(T.dataTransfer.items || []), X = [];
@@ -1055,8 +1064,8 @@ const lr = (e) => {
1055
1064
  me = !0;
1056
1065
  return;
1057
1066
  }
1058
- const Ge = ae.getAsFile?.();
1059
- Ge && X.push(Ge);
1067
+ const $e = ae.getAsFile?.();
1068
+ $e && X.push($e);
1060
1069
  }
1061
1070
  }), X.length === 0 && T.dataTransfer.files?.length && X.push(...Array.from(T.dataTransfer.files)), X.length === 0) {
1062
1071
  me && g(
@@ -1067,18 +1076,18 @@ const lr = (e) => {
1067
1076
  const Ae = X.map((ae) => ({
1068
1077
  fileContent: ae,
1069
1078
  name: ae.name
1070
- })), Pe = F(Ae);
1079
+ })), Pe = I(Ae);
1071
1080
  if (Pe.length === 0) {
1072
1081
  g(
1073
1082
  n.unsupportedFiles || "Selected files are not supported"
1074
1083
  );
1075
1084
  return;
1076
1085
  }
1077
- await we(Pe, B, $);
1086
+ await we(Pe, B, G);
1078
1087
  },
1079
1088
  [
1080
1089
  i,
1081
- F,
1090
+ I,
1082
1091
  we,
1083
1092
  n,
1084
1093
  h
@@ -1094,10 +1103,10 @@ const lr = (e) => {
1094
1103
  return;
1095
1104
  }
1096
1105
  if (!T.files?.length) return;
1097
- const $ = Array.from(T.files).map((X) => ({
1106
+ const G = Array.from(T.files).map((X) => ({
1098
1107
  fileContent: X,
1099
1108
  name: X.name
1100
- })), J = F($);
1109
+ })), J = I(G);
1101
1110
  if (J.length === 0) {
1102
1111
  g(
1103
1112
  n.unsupportedFiles || "Selected files are not supported"
@@ -1119,7 +1128,7 @@ const lr = (e) => {
1119
1128
  }, [
1120
1129
  i,
1121
1130
  h,
1122
- F,
1131
+ I,
1123
1132
  we,
1124
1133
  n
1125
1134
  ]), fe(() => {
@@ -1138,15 +1147,15 @@ const lr = (e) => {
1138
1147
  !i || !h || (D.current = T, x.current = B, m.current && m.current.click());
1139
1148
  },
1140
1149
  [i, h]
1141
- ), ke = d(
1150
+ ), Oe = d(
1142
1151
  (T, B) => {
1143
1152
  if (!s || !i || !h) return;
1144
- const $ = document.createElement("input");
1145
- $.type = "file", $.accept = ".zip,application/zip", $.multiple = !1, $.style.display = "none";
1153
+ const G = document.createElement("input");
1154
+ G.type = "file", G.accept = ".zip,application/zip", G.multiple = !1, G.style.display = "none";
1146
1155
  const J = () => {
1147
- const X = $.files?.[0];
1156
+ const X = G.files?.[0];
1148
1157
  if (!X) {
1149
- document.body.removeChild($);
1158
+ document.body.removeChild(G);
1150
1159
  return;
1151
1160
  }
1152
1161
  const me = X.name.replace(/\.zip$/i, ""), Ae = l ? l(me) : me, Pe = {
@@ -1154,26 +1163,26 @@ const lr = (e) => {
1154
1163
  name: Ae,
1155
1164
  folderId: T,
1156
1165
  path: `${T}/${Ae}`,
1157
- nodeType: O.FOLDER,
1166
+ nodeType: k.FOLDER,
1158
1167
  parentPath: T,
1159
1168
  contentLength: X.size,
1160
1169
  contentType: X.type
1161
1170
  };
1162
- if (x.current = B, R({ destinationFolder: T }), I(
1171
+ if (x.current = B, R({ destinationFolder: T }), F(
1163
1172
  /* @__PURE__ */ new Map([[Pe.path, { fileContent: X, name: Ae }]])
1164
1173
  ), P(T, [Pe], {
1165
1174
  destinationFolder: T
1166
1175
  }).hasConflicts) {
1167
- document.body.removeChild($);
1176
+ document.body.removeChild(G);
1168
1177
  return;
1169
1178
  }
1170
1179
  try {
1171
1180
  s(X, Ae, T);
1172
1181
  } finally {
1173
- document.body.removeChild($);
1182
+ document.body.removeChild(G);
1174
1183
  }
1175
1184
  };
1176
- $.addEventListener("change", J), document.body.appendChild($), $.click();
1185
+ G.addEventListener("change", J), document.body.appendChild(G), G.click();
1177
1186
  },
1178
1187
  [
1179
1188
  s,
@@ -1196,11 +1205,11 @@ const lr = (e) => {
1196
1205
  clearError: Se,
1197
1206
  handleUpload: we,
1198
1207
  openFileDialog: _e,
1199
- openArchiveDialog: ke,
1208
+ openArchiveDialog: Oe,
1200
1209
  fileInputRef: m,
1201
1210
  uploadConflictingFiles: L,
1202
1211
  uploadConflictResolutionOpen: W,
1203
- hasActiveUploadConflictRef: k,
1212
+ hasActiveUploadConflictRef: O,
1204
1213
  openUploadConflictResolution: j,
1205
1214
  closeUploadConflictResolution: H,
1206
1215
  handleUploadConflictReplace: xe,
@@ -1208,48 +1217,48 @@ const lr = (e) => {
1208
1217
  handleUploadConflictCancel: Te,
1209
1218
  handleUploadConflictDecideForEach: Ne
1210
1219
  };
1211
- }, Ra = us(void 0), Fa = {
1212
- hiddenItemWarning: `${Eo.Warning}__A dot at the start of the name will make the item hidden`
1213
- }, Ia = {
1220
+ }, Ia = hs(void 0), Fa = {
1221
+ hiddenItemWarning: `${So.Warning}__A dot at the start of the name will make the item hidden`
1222
+ }, Ea = {
1214
1223
  consecutiveDotsError: "Name cannot contain consecutive dots"
1215
- }, br = {
1224
+ }, Dr = {
1216
1225
  emptyName: "Name cannot be empty",
1217
1226
  duplicateName: "An item with this name already exists",
1218
1227
  hiddenItemWarning: Fa.hiddenItemWarning,
1219
- consecutiveDotsError: Ia.consecutiveDotsError
1228
+ consecutiveDotsError: Ea.consecutiveDotsError
1220
1229
  };
1221
- function xr(e) {
1230
+ function Tr(e) {
1222
1231
  let t = e.length;
1223
1232
  for (; t > 0 && e[t - 1] === "/"; ) t--;
1224
1233
  return e.slice(0, t);
1225
1234
  }
1226
- function Dr(e, t) {
1227
- const r = xr(e), o = r.lastIndexOf("/");
1235
+ function Rr(e, t) {
1236
+ const r = Tr(e), o = r.lastIndexOf("/");
1228
1237
  return o === -1 ? t : r.slice(0, o + 1) + t;
1229
1238
  }
1230
- function Tr(e) {
1239
+ function Ir(e) {
1231
1240
  const t = e.lastIndexOf(".");
1232
1241
  return t === -1 || t === 0 ? e : e.substring(0, t);
1233
1242
  }
1234
- function la(e) {
1243
+ function da(e) {
1235
1244
  const t = e.lastIndexOf(".");
1236
1245
  return t === -1 || t === 0 ? "" : e.substring(t);
1237
1246
  }
1238
- const Rr = ({
1247
+ const Fr = ({
1239
1248
  items: e,
1240
1249
  onRenameValidate: t,
1241
1250
  validationMessages: r,
1242
1251
  onMoveToFiles: o
1243
1252
  }) => {
1244
- const [n, s] = z(), l = G(
1253
+ const [n, s] = z(), l = $(
1245
1254
  () => ({
1246
- ...br,
1255
+ ...Dr,
1247
1256
  ...r
1248
1257
  }),
1249
1258
  [r]
1250
- ), i = G(() => n?.path, [n]), p = d(
1259
+ ), i = $(() => n?.path, [n]), p = d(
1251
1260
  (y) => {
1252
- const g = Ke(e, y);
1261
+ const g = Ye(e, y);
1253
1262
  g && s(g);
1254
1263
  },
1255
1264
  [e]
@@ -1261,17 +1270,17 @@ const Rr = ({
1261
1270
  s(void 0);
1262
1271
  return;
1263
1272
  }
1264
- const g = n.nodeType === O.ITEM;
1273
+ const g = n.nodeType === k.ITEM;
1265
1274
  let m = y.trim();
1266
1275
  if (g) {
1267
- const f = la(n.name);
1276
+ const f = da(n.name);
1268
1277
  f && !m.endsWith(f) && (m = m + f);
1269
1278
  }
1270
1279
  if (m === n.name) {
1271
1280
  s(void 0);
1272
1281
  return;
1273
1282
  }
1274
- const D = Dr(
1283
+ const D = Rr(
1275
1284
  n.path,
1276
1285
  m
1277
1286
  ), x = n.parentPath;
@@ -1296,15 +1305,15 @@ const Rr = ({
1296
1305
  return l.consecutiveDotsError;
1297
1306
  if (m.startsWith("."))
1298
1307
  return l.hiddenItemWarning;
1299
- const D = g.nodeType === O.ITEM;
1308
+ const D = g.nodeType === k.ITEM;
1300
1309
  let x = m;
1301
1310
  if (D) {
1302
- const f = la(g.name);
1311
+ const f = da(g.name);
1303
1312
  f && !x.endsWith(f) && (x = x + f);
1304
1313
  }
1305
1314
  const h = g.parentPath;
1306
1315
  if (h) {
1307
- const f = Ke(e, h);
1316
+ const f = Ye(e, h);
1308
1317
  if (f && new Set(
1309
1318
  (f.items ?? []).filter((w) => w.path !== g.path).map((w) => w.name.toLowerCase())
1310
1319
  ).has(x.toLowerCase()))
@@ -1318,7 +1327,7 @@ const Rr = ({
1318
1327
  return null;
1319
1328
  },
1320
1329
  [t, l, e]
1321
- ), u = d((y) => y.nodeType === O.ITEM ? Tr(y.name) : y.name, []);
1330
+ ), u = d((y) => y.nodeType === k.ITEM ? Ir(y.name) : y.name, []);
1322
1331
  return {
1323
1332
  renamedPath: i,
1324
1333
  renamedItem: n,
@@ -1328,11 +1337,11 @@ const Rr = ({
1328
1337
  renameValidateHandler: v,
1329
1338
  getDisplayName: u
1330
1339
  };
1331
- }, Ea = (e) => {
1332
- const [t, r] = z(e?.expandedPaths ?? /* @__PURE__ */ new Set()), o = G(
1340
+ }, Sa = (e) => {
1341
+ const [t, r] = z(e?.expandedPaths ?? /* @__PURE__ */ new Set()), o = $(
1333
1342
  () => !!e?.onExpandedPathsChange,
1334
1343
  [e?.onExpandedPathsChange]
1335
- ), n = G(
1344
+ ), n = $(
1336
1345
  () => o ? e?.expandedPaths ?? /* @__PURE__ */ new Set() : t,
1337
1346
  [o, e?.expandedPaths, t]
1338
1347
  );
@@ -1374,7 +1383,7 @@ const Rr = ({
1374
1383
  collapsePath: C,
1375
1384
  isControlled: o
1376
1385
  };
1377
- }, Fr = ({
1386
+ }, Er = ({
1378
1387
  newActions: e,
1379
1388
  currentFolder: t,
1380
1389
  onUploadFiles: r,
@@ -1383,33 +1392,45 @@ const Rr = ({
1383
1392
  onCreateNewItem: s,
1384
1393
  isNewButtonDisabled: l
1385
1394
  }) => {
1386
- const i = G(() => {
1395
+ const i = $(() => {
1387
1396
  const c = [];
1388
1397
  return e && (e.newFolder && c.push({
1389
1398
  key: "new-folder",
1390
1399
  label: e.newFolder.label,
1391
- icon: e?.newFolder?.icon !== void 0 ? e?.newFolder?.icon : /* @__PURE__ */ a(ha, { ...A, className: "text-secondary" }),
1400
+ icon: e?.newFolder?.icon !== void 0 ? e?.newFolder?.icon : /* @__PURE__ */ a(
1401
+ fa,
1402
+ {
1403
+ ...A,
1404
+ className: "text-secondary"
1405
+ }
1406
+ ),
1392
1407
  onClick: () => {
1393
1408
  o && o();
1394
1409
  }
1395
1410
  }), e.newItem && c.push({
1396
1411
  key: "new-item",
1397
1412
  label: e.newItem.label,
1398
- icon: e?.newItem?.icon !== void 0 ? e?.newItem?.icon : /* @__PURE__ */ a(Ja, { ...A, className: "text-secondary" }),
1413
+ icon: e?.newItem?.icon !== void 0 ? e?.newItem?.icon : /* @__PURE__ */ a(es, { ...A, className: "text-secondary" }),
1399
1414
  onClick: () => {
1400
1415
  s && s();
1401
1416
  }
1402
1417
  }), e.uploadFiles && c.push({
1403
1418
  key: "upload-file",
1404
1419
  label: e.uploadFiles.label,
1405
- icon: e?.uploadFiles?.icon !== void 0 ? e?.uploadFiles?.icon : /* @__PURE__ */ a(es, { ...A, className: "text-secondary" }),
1420
+ icon: e?.uploadFiles?.icon !== void 0 ? e?.uploadFiles?.icon : /* @__PURE__ */ a(ts, { ...A, className: "text-secondary" }),
1406
1421
  onClick: () => {
1407
1422
  r && r();
1408
1423
  }
1409
1424
  }), e.uploadArchive && c.push({
1410
1425
  key: "upload-archive",
1411
1426
  label: e.uploadArchive.label,
1412
- icon: e?.uploadArchive?.icon !== void 0 ? e?.uploadArchive?.icon : /* @__PURE__ */ a(ts, { ...A, className: "text-secondary" }),
1427
+ icon: e?.uploadArchive?.icon !== void 0 ? e?.uploadArchive?.icon : /* @__PURE__ */ a(
1428
+ ns,
1429
+ {
1430
+ ...A,
1431
+ className: "text-secondary"
1432
+ }
1433
+ ),
1413
1434
  onClick: () => {
1414
1435
  n && n();
1415
1436
  }
@@ -1420,10 +1441,10 @@ const Rr = ({
1420
1441
  r,
1421
1442
  n,
1422
1443
  s
1423
- ]), p = G(
1444
+ ]), p = $(
1424
1445
  () => i?.length > 0,
1425
1446
  [i]
1426
- ), C = G(
1447
+ ), C = $(
1427
1448
  () => !t?.permissions?.includes(St.WRITE) || !!l,
1428
1449
  [t, l]
1429
1450
  );
@@ -1432,12 +1453,12 @@ const Rr = ({
1432
1453
  isNewButtonVisible: p,
1433
1454
  isNewButtonDisabled: C
1434
1455
  };
1435
- }, Ir = {
1456
+ }, Sr = {
1436
1457
  emptyName: "Folder name cannot be empty",
1437
1458
  duplicateName: "A folder with this name already exists",
1438
1459
  hiddenItemWarning: Fa.hiddenItemWarning,
1439
- consecutiveDotsError: Ia.consecutiveDotsError
1440
- }, Er = ({
1460
+ consecutiveDotsError: Ea.consecutiveDotsError
1461
+ }, Ar = ({
1441
1462
  currentFolder: e,
1442
1463
  onCreateFolder: t,
1443
1464
  onValidateFolderName: r,
@@ -1448,21 +1469,21 @@ const Rr = ({
1448
1469
  We.Folder
1449
1470
  ), [v, u] = z(null), [y, g] = z(
1450
1471
  null
1451
- ), [m, D] = z(""), x = de(e?.path), h = G(
1472
+ ), [m, D] = z(""), x = de(e?.path), h = $(
1452
1473
  () => ({
1453
- ...Ir,
1474
+ ...Sr,
1454
1475
  ...o
1455
1476
  }),
1456
1477
  [o]
1457
- ), f = G(() => {
1478
+ ), f = $(() => {
1458
1479
  if (C === We.Folder)
1459
1480
  return e;
1460
1481
  if (C === We.Sibling && v) {
1461
- const P = It(n, v.parentPath || "");
1482
+ const P = Ft(n, v.parentPath || "");
1462
1483
  return {
1463
1484
  path: v.parentPath,
1464
1485
  items: P?.items || [],
1465
- nodeType: O.FOLDER,
1486
+ nodeType: k.FOLDER,
1466
1487
  name: v?.parentPath?.split("/")?.pop() || "",
1467
1488
  folderId: ""
1468
1489
  };
@@ -1473,21 +1494,21 @@ const Rr = ({
1473
1494
  const P = f?.path;
1474
1495
  x.current !== P && s && (l(!1), p(null), D("")), x.current = P;
1475
1496
  }, [f?.path, s]);
1476
- const I = d(() => {
1497
+ const F = d(() => {
1477
1498
  if (s) return;
1478
1499
  x.current = e?.path || "/";
1479
1500
  const P = `__new_folder_${Date.now()}`, _ = (e?.items ?? []).filter(
1480
- (M) => M.nodeType === O.FOLDER
1481
- ), j = Kt(_);
1501
+ (M) => M.nodeType === k.FOLDER
1502
+ ), j = Yt(_);
1482
1503
  p(P), D(j), l(!0), c(We.Folder), u(e || null);
1483
1504
  }, [s, e]), w = d(
1484
1505
  (P) => {
1485
1506
  if (s) return;
1486
1507
  x.current = P?.parentPath || "/";
1487
- const _ = `__new_folder_${Date.now()}`, M = (It(n, P?.parentPath || "/")?.items ?? []).filter(
1488
- (oe) => oe.nodeType === O.FOLDER
1489
- ), Y = Kt(M);
1490
- D(Y), p(_), l(!0), c(We.Sibling), u(P), g(P?.parentPath || "/");
1508
+ const _ = `__new_folder_${Date.now()}`, M = (Ft(n, P?.parentPath || "/")?.items ?? []).filter(
1509
+ (oe) => oe.nodeType === k.FOLDER
1510
+ ), q = Yt(M);
1511
+ D(q), p(_), l(!0), c(We.Sibling), u(P), g(P?.parentPath || "/");
1491
1512
  },
1492
1513
  [s, n]
1493
1514
  ), R = d(
@@ -1495,18 +1516,18 @@ const Rr = ({
1495
1516
  if (s) return;
1496
1517
  x.current = P.path;
1497
1518
  const _ = `__new_folder_${Date.now()}`, j = (P?.items ?? []).filter(
1498
- (Y) => Y.nodeType === O.FOLDER
1499
- ), M = Kt(j);
1519
+ (q) => q.nodeType === k.FOLDER
1520
+ ), M = Yt(j);
1500
1521
  D(M), p(_), l(!0), c(We.Child), u(P), g(P?.path || "/");
1501
1522
  },
1502
1523
  [s]
1503
- ), F = d(
1524
+ ), I = d(
1504
1525
  (P) => {
1505
1526
  if (s) return;
1506
1527
  x.current = P?.parentPath || "/";
1507
- const j = (It(n, P?.parentPath || "/")?.items ?? []).filter(
1508
- (Y) => Y.nodeType === O.FOLDER
1509
- ), M = Kt(j);
1528
+ const j = (Ft(n, P?.parentPath || "/")?.items ?? []).filter(
1529
+ (q) => q.nodeType === k.FOLDER
1530
+ ), M = Yt(j);
1510
1531
  D(M), c(We.Sibling), u(P), g(P?.parentPath || "/"), l(!0);
1511
1532
  },
1512
1533
  [s, n]
@@ -1515,8 +1536,8 @@ const Rr = ({
1515
1536
  if (s) return;
1516
1537
  x.current = P.path;
1517
1538
  const _ = (P?.items ?? []).filter(
1518
- (M) => M.nodeType === O.FOLDER
1519
- ), j = Kt(_);
1539
+ (M) => M.nodeType === k.FOLDER
1540
+ ), j = Yt(_);
1520
1541
  D(j), c(We.Child), u(P), g(P?.path || "/"), l(!0);
1521
1542
  },
1522
1543
  [s]
@@ -1532,7 +1553,7 @@ const Rr = ({
1532
1553
  if (_.startsWith(".") && _.length > 1)
1533
1554
  return h.hiddenItemWarning;
1534
1555
  if (f && f.items && new Set(
1535
- (f.items ?? []).filter((M) => M.nodeType === O.FOLDER).map((M) => M.name.toLowerCase())
1556
+ (f.items ?? []).filter((M) => M.nodeType === k.FOLDER).map((M) => M.name.toLowerCase())
1536
1557
  ).has(_.toLowerCase()))
1537
1558
  return h.duplicateName;
1538
1559
  if (r && f) {
@@ -1543,19 +1564,19 @@ const Rr = ({
1543
1564
  return null;
1544
1565
  },
1545
1566
  [f, r, h]
1546
- ), k = d(
1567
+ ), O = d(
1547
1568
  async (P) => {
1548
1569
  const _ = P.trim();
1549
1570
  if (!_)
1550
1571
  return;
1551
1572
  L();
1552
- const M = `${f?.path ?? "/"}/${_}`, Y = `${M}/${Ro}`, V = {
1553
- fileContent: new File([], Ro, {
1573
+ const M = `${f?.path ?? "/"}/${_}`, q = `${M}/${Io}`, V = {
1574
+ fileContent: new File([], Io, {
1554
1575
  type: "text/plain"
1555
1576
  }),
1556
- name: Ro
1577
+ name: Io
1557
1578
  };
1558
- t && await t(V, M, Y);
1579
+ t && await t(V, M, q);
1559
1580
  },
1560
1581
  [f, t, L]
1561
1582
  );
@@ -1564,23 +1585,23 @@ const Rr = ({
1564
1585
  createdFolderPath: y,
1565
1586
  newFolderTempId: i,
1566
1587
  newFolderDefaultName: m,
1567
- startFolderCreation: I,
1588
+ startFolderCreation: F,
1568
1589
  startGridSiblingFolderCreation: w,
1569
- startTreeSiblingFolderCreation: F,
1590
+ startTreeSiblingFolderCreation: I,
1570
1591
  startGridChildFolderCreation: R,
1571
1592
  startTreeChildFolderCreation: S,
1572
1593
  cancelFolderCreation: L,
1573
- saveFolderCreation: k,
1594
+ saveFolderCreation: O,
1574
1595
  validateFolderName: W
1575
1596
  };
1576
- }, Sr = ({
1597
+ }, Pr = ({
1577
1598
  additionalButtons: e,
1578
1599
  expandedPathsLength: t,
1579
1600
  collapseAll: r
1580
1601
  }) => {
1581
1602
  const o = t === 0;
1582
1603
  return {
1583
- additionalButtons: G(() => /* @__PURE__ */ q(Fe, { children: [
1604
+ additionalButtons: $(() => /* @__PURE__ */ K(Ie, { children: [
1584
1605
  e,
1585
1606
  /* @__PURE__ */ a(
1586
1607
  pt,
@@ -1588,13 +1609,19 @@ const Rr = ({
1588
1609
  disabled: o,
1589
1610
  size: ln.Small,
1590
1611
  onClick: r,
1591
- icon: /* @__PURE__ */ a(ns, { size: zo.LG, stroke: 1.5 }),
1612
+ icon: /* @__PURE__ */ a(
1613
+ os,
1614
+ {
1615
+ size: Wo.LG,
1616
+ stroke: Zn
1617
+ }
1618
+ ),
1592
1619
  "aria-label": "collapse-all"
1593
1620
  }
1594
1621
  )
1595
1622
  ] }), [e, o, r])
1596
1623
  };
1597
- }, Ar = ({ onGetInfo: e }) => {
1624
+ }, Mr = ({ onGetInfo: e }) => {
1598
1625
  const [t, r] = z(!1), [o, n] = z(void 0), s = d(
1599
1626
  async (i) => {
1600
1627
  n(i), r(!0), e && await e(i);
@@ -1610,7 +1637,7 @@ const Rr = ({
1610
1637
  closeMetadataPopup: l
1611
1638
  };
1612
1639
  };
1613
- function Pr(e) {
1640
+ function Or(e) {
1614
1641
  const t = [];
1615
1642
  function r(o) {
1616
1643
  for (const n of o)
@@ -1618,11 +1645,11 @@ function Pr(e) {
1618
1645
  }
1619
1646
  return r(e), t;
1620
1647
  }
1621
- function ca(e, t) {
1648
+ function ua(e, t) {
1622
1649
  const r = Et(t);
1623
1650
  return e.filter((o) => Et(o.name).includes(r));
1624
1651
  }
1625
- function Mr({
1652
+ function kr({
1626
1653
  onSearchFiles: e,
1627
1654
  clearSearchResults: t,
1628
1655
  currentPath: r,
@@ -1641,20 +1668,20 @@ function Mr({
1641
1668
  s ?? C ?? ""
1642
1669
  ).trim(), x = u.current && (n || o.length > 0 || D !== ""), h = d(
1643
1670
  (R) => {
1644
- const F = R.trim();
1645
- if (!F) {
1671
+ const I = R.trim();
1672
+ if (!I) {
1646
1673
  u.current = !1, v.current = !1;
1647
1674
  return;
1648
1675
  }
1649
- u.current = !0, e && r && !v.current && (v.current = !0, e(r, F));
1676
+ u.current = !0, e && r && !v.current && (v.current = !0, e(r, I));
1650
1677
  },
1651
1678
  [e, r]
1652
1679
  ), f = d(() => {
1653
1680
  v.current = !1, u.current = !1, y.current = [], c(""), l?.(""), t?.();
1654
- }, [t, l]), I = d(
1681
+ }, [t, l]), F = d(
1655
1682
  (R) => {
1656
- const F = String(R ?? "");
1657
- c(F), l?.(F), F.trim() ? h(F) : f();
1683
+ const I = String(R ?? "");
1684
+ c(I), l?.(I), I.trim() ? h(I) : f();
1658
1685
  },
1659
1686
  [l, h, f]
1660
1687
  );
@@ -1668,15 +1695,15 @@ function Mr({
1668
1695
  ]), fe(() => {
1669
1696
  n || (y.current = o);
1670
1697
  }, [o, n]);
1671
- const w = G(() => {
1698
+ const w = $(() => {
1672
1699
  if (e) {
1673
- const F = n ? y.current : o;
1674
- return !D || F.length === 0 ? F : ca(F, D);
1700
+ const I = n ? y.current : o;
1701
+ return !D || I.length === 0 ? I : ua(I, D);
1675
1702
  }
1676
1703
  if (!D || !i.length)
1677
1704
  return [];
1678
- const R = Pr(i);
1679
- return ca(R, D);
1705
+ const R = Or(i);
1706
+ return ua(R, D);
1680
1707
  }, [
1681
1708
  e,
1682
1709
  o,
@@ -1689,18 +1716,18 @@ function Mr({
1689
1716
  searchValue: C,
1690
1717
  effectiveSearchValue: D,
1691
1718
  setSearchValue: c,
1692
- handleSearchChange: I,
1719
+ handleSearchChange: F,
1693
1720
  handleSearchActivate: h,
1694
1721
  handleSearchClear: f,
1695
1722
  searchResultsRows: w
1696
1723
  };
1697
1724
  }
1698
- function kr({
1725
+ function Lr({
1699
1726
  selectedPaths: e,
1700
1727
  defaultSelectedPaths: t,
1701
1728
  onSelectedPathsChange: r
1702
1729
  }) {
1703
- const o = e !== void 0, [n, s] = z(() => t ?? /* @__PURE__ */ new Set()), l = G(
1730
+ const o = e !== void 0, [n, s] = z(() => t ?? /* @__PURE__ */ new Set()), l = $(
1704
1731
  () => o ? e : n,
1705
1732
  [o, e, n]
1706
1733
  ), i = d(
@@ -1719,7 +1746,7 @@ function kr({
1719
1746
  isControlled: o
1720
1747
  };
1721
1748
  }
1722
- const Or = ({
1749
+ const zr = ({
1723
1750
  managerLabel: e,
1724
1751
  children: t,
1725
1752
  className: r,
@@ -1740,19 +1767,19 @@ const Or = ({
1740
1767
  gridOptions: x,
1741
1768
  toolbarOptions: h,
1742
1769
  bulkActionsToolbarOptions: f,
1743
- destinationFolderPopupOptions: I,
1770
+ destinationFolderPopupOptions: F,
1744
1771
  conflictResolutionPopupOptions: w,
1745
1772
  onPathChange: R,
1746
- onTableFileClick: F,
1773
+ onTableFileClick: I,
1747
1774
  handleSelectionClick: S,
1748
1775
  onGridApiChange: L,
1749
1776
  onCopyFiles: W,
1750
- onMoveToFiles: k,
1777
+ onMoveToFiles: O,
1751
1778
  onDeleteFiles: P,
1752
1779
  onDownloadFiles: _,
1753
1780
  onRenameValidate: j,
1754
1781
  renameValidationMessages: M,
1755
- forbiddenSymbolsRegExp: Y = ms,
1782
+ forbiddenSymbolsRegExp: q = gs,
1756
1783
  forbiddenSymbolsTooltip: oe,
1757
1784
  onUploadFiles: V,
1758
1785
  onValidateUpload: Z,
@@ -1769,31 +1796,31 @@ const Or = ({
1769
1796
  onUnshareFiles: te,
1770
1797
  onRemoveFilesAccess: pe,
1771
1798
  actionsRef: _e,
1772
- sharedByMePaths: ke,
1799
+ sharedByMePaths: Oe,
1773
1800
  onSearchFiles: Se,
1774
1801
  searchResults: T,
1775
1802
  searchInProgress: B,
1776
- clearSearchResults: $,
1803
+ clearSearchResults: G,
1777
1804
  allowedFileTypes: J,
1778
1805
  maxSelectableFileSize: X,
1779
1806
  getDisabledTooltip: me,
1780
1807
  fileTooLargeTooltip: Ae,
1781
1808
  unsupportedFileTypeTooltip: Pe,
1782
1809
  emptyStateIcon: ae,
1783
- emptyStateTitle: $e,
1784
- emptyStateDescription: Ge,
1810
+ emptyStateTitle: Ge,
1811
+ emptyStateDescription: $e,
1785
1812
  sharedWithMeIds: Be,
1786
1813
  onFolderPopupPathChange: ft,
1787
1814
  onManagePermissions: cn,
1788
1815
  onPreview: rt,
1789
1816
  onOpenInNewTab: mt,
1790
- previewExtensions: Xn,
1817
+ previewExtensions: Kn,
1791
1818
  isRenameFileAvailable: qn,
1792
1819
  isDuplicateFolderAvailable: Yn,
1793
1820
  customUploadFileAction: Ct,
1794
1821
  customCreateNewItemAction: dn,
1795
1822
  customDuplicateAction: At,
1796
- customDeleteItemsAction: Kn,
1823
+ customDeleteItemsAction: Qn,
1797
1824
  customDownloadItemsAction: un,
1798
1825
  customBreakpointRef: hn,
1799
1826
  gridClassName: pn,
@@ -1810,23 +1837,23 @@ const Or = ({
1810
1837
  selectedPaths: Ze,
1811
1838
  clearSelection: Xe,
1812
1839
  setSelectedPaths: it
1813
- } = kr({
1840
+ } = Lr({
1814
1841
  selectedPaths: p,
1815
1842
  defaultSelectedPaths: C,
1816
1843
  onSelectedPathsChange: c
1817
- }), gn = de(!1), Je = de(null), Qn = d(
1844
+ }), gn = de(!1), Je = de(null), Jn = d(
1818
1845
  (E, Q, ne) => {
1819
1846
  if (je) {
1820
- const { parent: Ye, name: To } = lr(Q);
1847
+ const { parent: qe, name: Ro } = dr(Q);
1821
1848
  Je.current = {
1822
- fileNames: /* @__PURE__ */ new Set([To]),
1823
- destinationFolder: Ye
1849
+ fileNames: /* @__PURE__ */ new Set([Ro]),
1850
+ destinationFolder: qe
1824
1851
  };
1825
1852
  }
1826
1853
  Ne?.(E, Q, ne);
1827
1854
  },
1828
1855
  [Ne, je]
1829
- ), Jn = d(
1856
+ ), eo = d(
1830
1857
  (E, Q) => {
1831
1858
  je && (Je.current = {
1832
1859
  fileNames: new Set(E.map((ne) => ne.name)),
@@ -1834,7 +1861,7 @@ const Or = ({
1834
1861
  }), V?.(E, Q);
1835
1862
  },
1836
1863
  [V, je]
1837
- ), eo = d(
1864
+ ), to = d(
1838
1865
  (E, Q, ne) => {
1839
1866
  je && (Je.current = {
1840
1867
  fileNames: /* @__PURE__ */ new Set([Q]),
@@ -1842,10 +1869,10 @@ const Or = ({
1842
1869
  }), he?.(E, Q, ne);
1843
1870
  },
1844
1871
  [he, je]
1845
- ), to = G(() => {
1872
+ ), no = $(() => {
1846
1873
  const E = /* @__PURE__ */ new Map();
1847
1874
  return Ze.forEach((Q) => {
1848
- const ne = Ke(o, Q);
1875
+ const ne = Ye(o, Q);
1849
1876
  ne && E.set(Q, ne);
1850
1877
  }), E;
1851
1878
  }, [Ze, o]);
@@ -1853,53 +1880,53 @@ const Or = ({
1853
1880
  if (Ze.size === 0) return;
1854
1881
  let E = !1;
1855
1882
  for (const Q of Ze)
1856
- if (!Ke(o, Q)) {
1883
+ if (!Ye(o, Q)) {
1857
1884
  E = !0;
1858
1885
  break;
1859
1886
  }
1860
1887
  if (E) {
1861
1888
  const Q = /* @__PURE__ */ new Set();
1862
1889
  for (const ne of Ze)
1863
- Ke(o, ne) && Q.add(ne);
1890
+ Ye(o, ne) && Q.add(ne);
1864
1891
  it(Q);
1865
1892
  }
1866
1893
  }, [o, Ze, it]);
1867
- const { currentPath: ue, setCurrentPath: Ie, handlePathChange: qe } = gr({
1894
+ const { currentPath: ue, setCurrentPath: Fe, handlePathChange: Ke } = yr({
1868
1895
  path: s,
1869
1896
  defaultPath: l,
1870
1897
  onPathChange: R,
1871
1898
  onSelectionClear: Xe
1872
- }), Mt = G(() => {
1899
+ }), Mt = $(() => {
1873
1900
  const {
1874
1901
  showFiles: E = !0,
1875
1902
  showFolders: Q = !0,
1876
1903
  ...ne
1877
1904
  } = x || {};
1878
1905
  return { showFiles: E, showFolders: Q, ...ne };
1879
- }, [x]), kt = Mt.showFiles, et = Mt.showFolders, [vt, no] = z(), vn = I?.destinationFolderPath ?? vt, tt = d(
1906
+ }, [x]), Ot = Mt.showFiles, et = Mt.showFolders, [vt, oo] = z(), vn = F?.destinationFolderPath ?? vt, tt = d(
1880
1907
  (E) => {
1881
- I?.setDestinationFolderPath ? I.setDestinationFolderPath(E) : no(E);
1908
+ F?.setDestinationFolderPath ? F.setDestinationFolderPath(E) : oo(E);
1882
1909
  },
1883
- [I]
1884
- ), { areHiddenFilesVisible: lt, toggleHiddenFilesVisibility: yn } = fr({
1910
+ [F]
1911
+ ), { areHiddenFilesVisible: lt, toggleHiddenFilesVisibility: yn } = Cr({
1885
1912
  showHiddenFiles: v,
1886
1913
  onShowHiddenFilesChange: u
1887
- }), { isTreeCollapsed: wn, toggleTreeCollapse: yt, setIsTreeCollapsed: oo } = mr({
1914
+ }), { isTreeCollapsed: wn, toggleTreeCollapse: yt, setIsTreeCollapsed: ao } = gr({
1888
1915
  collapsed: y?.collapsed,
1889
1916
  onCollapseChange: y?.onCollapseChange
1890
1917
  }), {
1891
1918
  renamedPath: wt,
1892
- renamedItem: ao,
1893
- renameHandler: so,
1894
- renameSaveHandler: ro,
1895
- renameCancelHandler: io,
1896
- renameValidateHandler: lo,
1897
- getDisplayName: Ot
1898
- } = Rr({
1919
+ renamedItem: so,
1920
+ renameHandler: ro,
1921
+ renameSaveHandler: io,
1922
+ renameCancelHandler: lo,
1923
+ renameValidateHandler: co,
1924
+ getDisplayName: kt
1925
+ } = Fr({
1899
1926
  items: o,
1900
1927
  onRenameValidate: j,
1901
1928
  validationMessages: M,
1902
- onMoveToFiles: k
1929
+ onMoveToFiles: O
1903
1930
  }), {
1904
1931
  isSearchMode: Nt,
1905
1932
  searchValue: Nn,
@@ -1908,9 +1935,9 @@ const Or = ({
1908
1935
  handleSearchChange: _t,
1909
1936
  handleSearchClear: ce,
1910
1937
  searchResultsRows: bn
1911
- } = Mr({
1938
+ } = kr({
1912
1939
  onSearchFiles: Se,
1913
- clearSearchResults: $,
1940
+ clearSearchResults: G,
1914
1941
  currentPath: ue,
1915
1942
  searchResults: T,
1916
1943
  searchInProgress: B,
@@ -1918,11 +1945,11 @@ const Or = ({
1918
1945
  onNavigationPanelSearchChange: m?.onSearchChange,
1919
1946
  allItems: o,
1920
1947
  activeTab: h?.activeTab
1921
- }), se = G(
1922
- () => It(o, ue) ?? o[0],
1948
+ }), se = $(
1949
+ () => Ft(o, ue) ?? o[0],
1923
1950
  [o, ue]
1924
- ), Oe = d(
1925
- (E, Q) => !Q || !E ? !1 : pr(E.path) > Q,
1951
+ ), ke = d(
1952
+ (E, Q) => !Q || !E ? !1 : mr(E.path) > Q,
1926
1953
  []
1927
1954
  ), Me = d(() => {
1928
1955
  Pt?.();
@@ -1933,68 +1960,68 @@ const Or = ({
1933
1960
  handleOpenDestinationFolderPopup: bt,
1934
1961
  handleCloseDestinationFolderPopup: Rn,
1935
1962
  openDestinationFolderPopup: nt,
1936
- handleSetCopiedFiles: co,
1937
- handleSetMovedFiles: Fn,
1938
- destinationFolderMode: In,
1939
- destinationFolderTitle: uo,
1963
+ handleSetCopiedFiles: uo,
1964
+ handleSetMovedFiles: In,
1965
+ destinationFolderMode: Fn,
1966
+ destinationFolderTitle: ho,
1940
1967
  conflictingFiles: En,
1941
- conflictResolutionOpen: ho,
1968
+ conflictResolutionOpen: po,
1942
1969
  closeConflictResolution: Sn,
1943
1970
  handleConflictReplace: Wt,
1944
- handleConflictDuplicate: po,
1945
- handleConflictCancel: fo,
1946
- handleConflictDecideForEach: mo,
1947
- sourceFolder: Co
1948
- } = Cr({
1949
- getDestinationFiles: (E) => It(o, E)?.items ?? [],
1971
+ handleConflictDuplicate: fo,
1972
+ handleConflictCancel: mo,
1973
+ handleConflictDecideForEach: Co,
1974
+ sourceFolder: go
1975
+ } = vr({
1976
+ getDestinationFiles: (E) => Ft(o, E)?.items ?? [],
1950
1977
  onCopyFiles: W,
1951
- onMoveToFiles: k,
1978
+ onMoveToFiles: O,
1952
1979
  onCopySuccess: Xe,
1953
1980
  onMoveSuccess: Xe,
1954
1981
  onDuplicateSuccess: Xe,
1955
- getCopyHeader: I?.getCopyHeader,
1956
- getMoveHeader: I?.getMoveHeader
1982
+ getCopyHeader: F?.getCopyHeader,
1983
+ getMoveHeader: F?.getMoveHeader
1957
1984
  });
1958
1985
  fe(() => {
1959
1986
  nt || tt(void 0);
1960
1987
  }, [nt, tt]);
1961
1988
  const {
1962
- deleteConfirmationOpen: go,
1989
+ deleteConfirmationOpen: vo,
1963
1990
  itemsToDelete: An,
1964
1991
  openDeleteConfirmation: Pn,
1965
1992
  closeDeleteConfirmation: Mn,
1966
1993
  confirmDelete: xt
1967
- } = vr({
1994
+ } = wr({
1968
1995
  onDeleteFiles: P,
1969
1996
  onDeleteSuccess: Xe
1970
- }), { handleDownloadFiles: ot } = yr({
1997
+ }), { handleDownloadFiles: ot } = Nr({
1971
1998
  onDownloadFiles: _,
1972
1999
  customDownloadItemsAction: un,
1973
2000
  onDownloadSuccess: Xe
1974
2001
  }), {
1975
- isDragging: vo,
2002
+ isDragging: yo,
1976
2003
  isDraggingOverWindow: Le,
1977
- uploadError: yo,
2004
+ uploadError: wo,
1978
2005
  handleDragEnter: Ht,
1979
2006
  handleDragLeave: Dt,
1980
2007
  handleDragOver: ct,
1981
2008
  handleDrop: Bt,
1982
- clearError: kn,
2009
+ clearError: On,
1983
2010
  openFileDialog: Ut,
1984
- fileInputRef: On,
2011
+ fileInputRef: kn,
1985
2012
  openArchiveDialog: Vt,
1986
- uploadConflictingFiles: wo,
1987
- uploadConflictResolutionOpen: No,
2013
+ uploadConflictingFiles: No,
2014
+ uploadConflictResolutionOpen: bo,
1988
2015
  closeUploadConflictResolution: Ln,
1989
- handleUploadConflictReplace: $t,
1990
- handleUploadConflictDuplicate: bo,
1991
- handleUploadConflictCancel: xo,
1992
- handleUploadConflictDecideForEach: Gt
1993
- } = Nr({
1994
- onUploadFiles: Jn,
2016
+ handleUploadConflictReplace: Gt,
2017
+ handleUploadConflictDuplicate: xo,
2018
+ handleUploadConflictCancel: Do,
2019
+ handleUploadConflictDecideForEach: $t
2020
+ } = xr({
2021
+ onUploadFiles: eo,
1995
2022
  onValidateUpload: Z,
1996
2023
  maxFileSize: xe,
1997
- onUploadArchive: eo,
2024
+ onUploadArchive: to,
1998
2025
  prepareUploadFileName: Te,
1999
2026
  allowedFileTypes: J,
2000
2027
  validationMessages: we,
@@ -2024,7 +2051,7 @@ const Or = ({
2024
2051
  ue,
2025
2052
  se,
2026
2053
  ce
2027
- ]), Do = d(
2054
+ ]), To = d(
2028
2055
  (E) => {
2029
2056
  At?.(E);
2030
2057
  },
@@ -2035,21 +2062,21 @@ const Or = ({
2035
2062
  createdFolderPath: le,
2036
2063
  newFolderDefaultName: Re,
2037
2064
  startFolderCreation: at,
2038
- startGridSiblingFolderCreation: Go,
2039
- startTreeSiblingFolderCreation: jo,
2040
- startGridChildFolderCreation: Zo,
2041
- startTreeChildFolderCreation: Xo,
2042
- cancelFolderCreation: Sa,
2043
- saveFolderCreation: Aa,
2044
- validateFolderName: Pa
2045
- } = Er({
2065
+ startGridSiblingFolderCreation: Zo,
2066
+ startTreeSiblingFolderCreation: Xo,
2067
+ startGridChildFolderCreation: Ko,
2068
+ startTreeChildFolderCreation: qo,
2069
+ cancelFolderCreation: Aa,
2070
+ saveFolderCreation: Pa,
2071
+ validateFolderName: Ma
2072
+ } = Ar({
2046
2073
  currentFolder: se,
2047
- onCreateFolder: Qn,
2074
+ onCreateFolder: Jn,
2048
2075
  onValidateFolderName: H,
2049
2076
  validationMessages: De,
2050
2077
  items: o
2051
- }), qo = d(() => {
2052
- if (ve && Oe(se, ve - 1)) {
2078
+ }), Yo = d(() => {
2079
+ if (ve && ke(se, ve - 1)) {
2053
2080
  Me();
2054
2081
  return;
2055
2082
  }
@@ -2059,27 +2086,27 @@ const Or = ({
2059
2086
  at,
2060
2087
  se,
2061
2088
  ve,
2062
- Oe,
2089
+ ke,
2063
2090
  Me
2064
- ]), { newActions: Ma, isNewButtonVisible: ka, isNewButtonDisabled: Oa } = Fr(
2091
+ ]), { newActions: Oa, isNewButtonVisible: ka, isNewButtonDisabled: La } = Er(
2065
2092
  {
2066
2093
  newActions: h?.newActions,
2067
2094
  currentFolder: se,
2068
2095
  onUploadFiles: Ct ? Wn : dt,
2069
2096
  onUploadArchive: _n,
2070
- onCreateFolder: qo,
2097
+ onCreateFolder: Yo,
2071
2098
  onCreateNewItem: Hn,
2072
2099
  isNewButtonDisabled: h?.isNewButtonDisabled
2073
2100
  }
2074
- ), La = G(() => {
2101
+ ), za = $(() => {
2075
2102
  if (Nt) {
2076
- let K = bn;
2077
- kt || (K = K.filter(
2078
- (re) => re.nodeType !== O.ITEM
2079
- )), et || (K = K.filter(
2080
- (re) => re.nodeType !== O.FOLDER
2081
- )), lt || (K = K.filter((re) => !re.path.split("/").filter(Boolean).some((Xt) => Xt.startsWith("."))));
2082
- const Zt = K.map((re) => ({
2103
+ let Y = bn;
2104
+ Ot || (Y = Y.filter(
2105
+ (re) => re.nodeType !== k.ITEM
2106
+ )), et || (Y = Y.filter(
2107
+ (re) => re.nodeType !== k.FOLDER
2108
+ )), lt || (Y = Y.filter((re) => !re.path.split("/").filter(Boolean).some((Xt) => Xt.startsWith("."))));
2109
+ const Zt = Y.map((re) => ({
2083
2110
  ...re,
2084
2111
  id: re.id ?? re.path,
2085
2112
  name: re.name ?? re.path.split("/").pop() ?? "",
@@ -2100,50 +2127,50 @@ const Or = ({
2100
2127
  updatedAt: void 0,
2101
2128
  author: void 0,
2102
2129
  path: ue ?? "/",
2103
- nodeType: O.FOLDER,
2130
+ nodeType: k.FOLDER,
2104
2131
  extension: void 0,
2105
2132
  isTemporary: !0,
2106
2133
  owner: void 0
2107
2134
  }), Zt;
2108
2135
  }
2109
2136
  const E = Et(Lt).trim(), Q = se?.items ?? [];
2110
- let ne = E ? ar(se) : Q;
2111
- kt || (ne = ne.filter((K) => K.nodeType !== O.ITEM)), et || (ne = ne.filter(
2112
- (K) => K.nodeType !== O.FOLDER
2113
- )), lt || (ne = ne.filter((K) => E ? !K.path.split("/").filter(Boolean).some((re) => re.startsWith(".")) : !Da(K)));
2114
- const Ye = ne.map((K) => ({
2115
- ...K,
2116
- id: K.id ?? K.path,
2117
- name: K.name ?? K.path.split("/").pop() ?? "",
2118
- updatedAt: K.updatedAt,
2119
- size: K.contentLength,
2120
- author: K.author,
2121
- path: K.path,
2122
- nodeType: K.nodeType,
2123
- extension: K.extension,
2137
+ let ne = E ? rr(se) : Q;
2138
+ Ot || (ne = ne.filter((Y) => Y.nodeType !== k.ITEM)), et || (ne = ne.filter(
2139
+ (Y) => Y.nodeType !== k.FOLDER
2140
+ )), lt || (ne = ne.filter((Y) => E ? !Y.path.split("/").filter(Boolean).some((re) => re.startsWith(".")) : !Ta(Y)));
2141
+ const qe = ne.map((Y) => ({
2142
+ ...Y,
2143
+ id: Y.id ?? Y.path,
2144
+ name: Y.name ?? Y.path.split("/").pop() ?? "",
2145
+ updatedAt: Y.updatedAt,
2146
+ size: Y.contentLength,
2147
+ author: Y.author,
2148
+ path: Y.path,
2149
+ nodeType: Y.nodeType,
2150
+ extension: Y.extension,
2124
2151
  isTemporary: !1,
2125
- owner: K.owner,
2126
- contentType: K.contentType,
2127
- contentLength: K.contentLength,
2128
- folderId: K.folderId
2152
+ owner: Y.owner,
2153
+ contentType: Y.contentType,
2154
+ contentLength: Y.contentLength,
2155
+ folderId: Y.folderId
2129
2156
  }));
2130
- if (b && ee && !E && Ye.unshift({
2157
+ if (b && ee && !E && qe.unshift({
2131
2158
  id: ee,
2132
2159
  name: Re,
2133
2160
  updatedAt: void 0,
2134
2161
  author: void 0,
2135
2162
  path: ue ?? "/",
2136
- nodeType: O.FOLDER,
2163
+ nodeType: k.FOLDER,
2137
2164
  extension: void 0,
2138
2165
  isTemporary: !0,
2139
2166
  owner: void 0
2140
- }), !E) return Ye;
2141
- const To = E.split(/\s+/).filter(Boolean);
2142
- return Ye.filter((K) => {
2143
- if (K.isTemporary) return !0;
2144
- const Zt = Et(K.name), re = Et(K.author), Ko = or(K.extension);
2145
- return To.every(
2146
- (Xt) => Zt.includes(Xt) || re.includes(Xt) || Ko.includes(Xt)
2167
+ }), !E) return qe;
2168
+ const Ro = E.split(/\s+/).filter(Boolean);
2169
+ return qe.filter((Y) => {
2170
+ if (Y.isTemporary) return !0;
2171
+ const Zt = Et(Y.name), re = Et(Y.author), Jo = sr(Y.extension);
2172
+ return Ro.every(
2173
+ (Xt) => Zt.includes(Xt) || re.includes(Xt) || Jo.includes(Xt)
2147
2174
  );
2148
2175
  });
2149
2176
  }, [
@@ -2155,7 +2182,7 @@ const Or = ({
2155
2182
  b,
2156
2183
  ee,
2157
2184
  Re,
2158
- kt,
2185
+ Ot,
2159
2186
  et,
2160
2187
  ue
2161
2188
  ]);
@@ -2166,11 +2193,11 @@ const Or = ({
2166
2193
  Je.current = null;
2167
2194
  return;
2168
2195
  }
2169
- const Q = It(o, E.destinationFolder);
2196
+ const Q = Ft(o, E.destinationFolder);
2170
2197
  if (!Q?.items) return;
2171
2198
  const ne = /* @__PURE__ */ new Set();
2172
- for (const Ye of Q.items)
2173
- E.fileNames.has(Ye.name) && cr(Ye, J, X) && ne.add(Ye.path);
2199
+ for (const qe of Q.items)
2200
+ E.fileNames.has(qe.name) && ur(qe, J, X) && ne.add(qe.path);
2174
2201
  ne.size > 0 && (it(ne), Je.current = null);
2175
2202
  }, [
2176
2203
  o,
@@ -2181,113 +2208,113 @@ const Or = ({
2181
2208
  ]), fe(() => {
2182
2209
  !gn.current && Cn && (dt(), gn.current = !0);
2183
2210
  }, [Cn, dt]);
2184
- const za = d(
2211
+ const _a = d(
2185
2212
  (E) => {
2186
- qe(E.path);
2213
+ Ke(E.path);
2187
2214
  },
2188
- [qe]
2189
- ), _a = d(
2215
+ [Ke]
2216
+ ), Wa = d(
2190
2217
  (E) => {
2191
- qe(E);
2218
+ Ke(E);
2192
2219
  },
2193
- [qe]
2194
- ), Wa = d(
2220
+ [Ke]
2221
+ ), Ha = d(
2195
2222
  (E) => {
2196
- E.nodeType === O.FOLDER ? qe(E.path) : F?.(E);
2223
+ E.nodeType === k.FOLDER ? Ke(E.path) : I?.(E);
2197
2224
  },
2198
- [qe, F]
2199
- ), { expandedPaths: Tt, setExpandedPaths: jt, collapseAll: Ha } = Ea({
2225
+ [Ke, I]
2226
+ ), { expandedPaths: Tt, setExpandedPaths: jt, collapseAll: Ba } = Sa({
2200
2227
  expandedPaths: y?.expandedPaths,
2201
2228
  onExpandedPathsChange: y?.onExpandedPathsChange
2202
- }), { additionalButtons: Ba } = Sr({
2203
- collapseAll: Ha,
2229
+ }), { additionalButtons: Ua } = Pr({
2230
+ collapseAll: Ba,
2204
2231
  expandedPathsLength: Tt.size,
2205
2232
  additionalButtons: y?.additionalButtons
2206
- }), Ua = d(
2233
+ }), Va = d(
2207
2234
  (E) => {
2208
2235
  if (E.length > 0) {
2209
- if (ve && Oe(E[0], ve)) {
2236
+ if (ve && ke(E[0], ve)) {
2210
2237
  Me();
2211
2238
  return;
2212
2239
  }
2213
- ce(), Go(E[0]);
2240
+ ce(), Zo(E[0]);
2214
2241
  }
2215
2242
  },
2216
2243
  [
2217
2244
  ce,
2218
- Go,
2245
+ Zo,
2219
2246
  ve,
2220
- Oe,
2247
+ ke,
2221
2248
  Me
2222
2249
  ]
2223
- ), Va = d(
2250
+ ), Ga = d(
2224
2251
  (E) => {
2225
2252
  if (E.length > 0) {
2226
- if (ve && Oe(E[0], ve - 1)) {
2253
+ if (ve && ke(E[0], ve - 1)) {
2227
2254
  Me();
2228
2255
  return;
2229
2256
  }
2230
- ce(), Ie(E[0].path), jt(new Set(Tt).add(E[0].path || "/")), Zo(E[0]);
2257
+ ce(), Fe(E[0].path), jt(new Set(Tt).add(E[0].path || "/")), Ko(E[0]);
2231
2258
  }
2232
2259
  },
2233
2260
  [
2234
2261
  ce,
2235
- Zo,
2262
+ Ko,
2236
2263
  Tt,
2237
2264
  jt,
2238
- Ie,
2265
+ Fe,
2239
2266
  Me,
2240
2267
  ve,
2241
- Oe
2268
+ ke
2242
2269
  ]
2243
2270
  ), $a = d(
2244
2271
  (E) => {
2245
2272
  if (E.length > 0) {
2246
- if (ve && Oe(E[0], ve)) {
2273
+ if (ve && ke(E[0], ve)) {
2247
2274
  Me();
2248
2275
  return;
2249
2276
  }
2250
- ce(), jo(E[0]);
2277
+ ce(), Xo(E[0]);
2251
2278
  }
2252
2279
  },
2253
2280
  [
2254
2281
  ce,
2255
- jo,
2282
+ Xo,
2256
2283
  ve,
2257
- Oe,
2284
+ ke,
2258
2285
  Me
2259
2286
  ]
2260
- ), Ga = d(
2287
+ ), ja = d(
2261
2288
  (E) => {
2262
2289
  if (E.length > 0) {
2263
- if (ve && Oe(E[0], ve - 1)) {
2290
+ if (ve && ke(E[0], ve - 1)) {
2264
2291
  Me();
2265
2292
  return;
2266
2293
  }
2267
- ce(), Ie(E[0].path), jt(new Set(Tt).add(E[0].path || "/")), Xo(E[0]);
2294
+ ce(), Fe(E[0].path), jt(new Set(Tt).add(E[0].path || "/")), qo(E[0]);
2268
2295
  }
2269
2296
  },
2270
2297
  [
2271
2298
  ce,
2272
- Xo,
2273
- Ie,
2299
+ qo,
2300
+ Fe,
2274
2301
  Tt,
2275
2302
  jt,
2276
2303
  ve,
2277
- Oe,
2304
+ ke,
2278
2305
  Me
2279
2306
  ]
2280
2307
  ), {
2281
- isMetadataPopupOpen: ja,
2282
- selectedFileForMetadata: Za,
2283
- openMetadataPopup: Xa,
2284
- closeMetadataPopup: Yo
2285
- } = Ar({ onGetInfo: U }), qa = d(() => {
2286
- Yo(), be?.clearMetadata?.();
2287
- }, [Yo, be]), Ya = G(() => {
2288
- if (Y)
2289
- return Zn(Y);
2290
- }, [Y]), Ka = {
2308
+ isMetadataPopupOpen: Za,
2309
+ selectedFileForMetadata: Xa,
2310
+ openMetadataPopup: Ka,
2311
+ closeMetadataPopup: Qo
2312
+ } = Mr({ onGetInfo: U }), qa = d(() => {
2313
+ Qo(), be?.clearMetadata?.();
2314
+ }, [Qo, be]), Ya = $(() => {
2315
+ if (q)
2316
+ return Xn(q);
2317
+ }, [q]), Qa = {
2291
2318
  managerLabel: e,
2292
2319
  className: r,
2293
2320
  items: o,
@@ -2299,7 +2326,7 @@ const Or = ({
2299
2326
  ...y,
2300
2327
  expandedPaths: Tt,
2301
2328
  onExpandedPathsChange: jt,
2302
- additionalButtons: Ba
2329
+ additionalButtons: Ua
2303
2330
  },
2304
2331
  showNavigationPanel: g,
2305
2332
  navigationPanelOptions: m,
@@ -2308,17 +2335,17 @@ const Or = ({
2308
2335
  bulkActionsToolbarOptions: f,
2309
2336
  deleteConfirmationOptions: D,
2310
2337
  destinationFolderPopupOptions: {
2311
- ...I,
2338
+ ...F,
2312
2339
  destinationFolderPath: vn,
2313
2340
  setDestinationFolderPath: tt,
2314
- header: uo,
2341
+ header: ho,
2315
2342
  onCreateFolder: Ne,
2316
2343
  onCreateFolderValidate: H,
2317
2344
  folderCreationValidationMessages: De,
2318
- sourceFolder: Co
2345
+ sourceFolder: go
2319
2346
  },
2320
2347
  currentPath: ue,
2321
- setCurrentPath: Ie,
2348
+ setCurrentPath: Fe,
2322
2349
  searchValue: Nn,
2323
2350
  effectiveSearchValue: Lt,
2324
2351
  setSearchValue: zt,
@@ -2326,113 +2353,113 @@ const Or = ({
2326
2353
  toggleHiddenFilesVisibility: yn,
2327
2354
  isTreeCollapsed: wn,
2328
2355
  toggleTreeCollapse: yt,
2329
- setIsTreeCollapsed: oo,
2356
+ setIsTreeCollapsed: ao,
2330
2357
  selectedPaths: Ze,
2331
- selectedFiles: to,
2358
+ selectedFiles: no,
2332
2359
  setSelectedPaths: it,
2333
2360
  clearSelection: Xe,
2334
2361
  currentFolder: se,
2335
- gridRows: La,
2362
+ gridRows: za,
2336
2363
  handleCopyTo: xn,
2337
2364
  handleMoveTo: Dn,
2338
- handleDuplicate: At ? Do : Tn,
2339
- handleSetCopiedFiles: co,
2340
- handleSetMovedFiles: Fn,
2365
+ handleDuplicate: At ? To : Tn,
2366
+ handleSetCopiedFiles: uo,
2367
+ handleSetMovedFiles: In,
2341
2368
  openDestinationFolderPopup: nt,
2342
2369
  handleCloseDestinationFolderPopup: Rn,
2343
2370
  handleOpenDestinationFolderPopup: bt,
2344
- destinationFolderMode: In,
2345
- handleGridAddSibling: Ua,
2346
- handleGridAddChild: Va,
2371
+ destinationFolderMode: Fn,
2372
+ handleGridAddSibling: Va,
2373
+ handleGridAddChild: Ga,
2347
2374
  handleTreeAddSibling: $a,
2348
- handleTreeAddChild: Ga,
2375
+ handleTreeAddChild: ja,
2349
2376
  handleDownloadFiles: ot,
2350
2377
  renamedPath: wt,
2351
- renamedItem: ao,
2378
+ renamedItem: so,
2352
2379
  forbiddenSymbolsRegExp: Ya,
2353
2380
  forbiddenSymbolsTooltip: oe,
2354
- onRename: so,
2355
- onRenameSave: ro,
2356
- onRenameCancel: io,
2357
- onRenameValidate: lo,
2358
- getDisplayName: Ot,
2359
- openDeleteConfirmation: Kn || Pn,
2381
+ onRename: ro,
2382
+ onRenameSave: io,
2383
+ onRenameCancel: lo,
2384
+ onRenameValidate: co,
2385
+ getDisplayName: kt,
2386
+ openDeleteConfirmation: Qn || Pn,
2360
2387
  closeDeleteConfirmation: Mn,
2361
2388
  confirmDelete: xt,
2362
- deleteConfirmationOpen: go,
2389
+ deleteConfirmationOpen: vo,
2363
2390
  itemsToDelete: An,
2364
- handlePathChange: qe,
2365
- handleTreeItemClick: za,
2366
- handleBreadcrumbItemClick: _a,
2391
+ handlePathChange: Ke,
2392
+ handleTreeItemClick: _a,
2393
+ handleBreadcrumbItemClick: Wa,
2367
2394
  handleSearchChange: _t,
2368
- handleTableRowClick: Wa,
2369
- onTableFileClick: F,
2395
+ handleTableRowClick: Ha,
2396
+ onTableFileClick: I,
2370
2397
  handleSelectionClick: S,
2371
2398
  onGridApiChange: L,
2372
- isDragging: vo,
2373
- uploadError: yo,
2399
+ isDragging: yo,
2400
+ uploadError: wo,
2374
2401
  handleDragEnter: Ht,
2375
2402
  handleDragLeave: Dt,
2376
2403
  handleDragOver: ct,
2377
2404
  handleDrop: zn,
2378
- clearUploadError: kn,
2405
+ clearUploadError: On,
2379
2406
  onUploadFiles: V,
2380
2407
  onValidateUpload: Z,
2381
2408
  maxFileSize: xe,
2382
2409
  isDraggingOverWindow: Le,
2383
2410
  openFileDialog: dt,
2384
- fileInputRef: On,
2385
- newActions: Ma,
2411
+ fileInputRef: kn,
2412
+ newActions: Oa,
2386
2413
  isNewButtonVisible: ka,
2387
- isNewButtonDisabled: Oa,
2414
+ isNewButtonDisabled: La,
2388
2415
  isCreatingFolder: b,
2389
2416
  newFolderTempId: ee,
2390
2417
  createdFolderPath: le,
2391
2418
  newFolderDefaultName: Re,
2392
- startFolderCreation: qo,
2393
- cancelFolderCreation: Sa,
2394
- saveFolderCreation: Aa,
2395
- validateFolderName: Pa,
2419
+ startFolderCreation: Yo,
2420
+ cancelFolderCreation: Aa,
2421
+ saveFolderCreation: Pa,
2422
+ validateFolderName: Ma,
2396
2423
  conflictResolutionPopupOptions: w,
2397
2424
  conflictingFiles: En,
2398
- conflictResolutionOpen: ho,
2425
+ conflictResolutionOpen: po,
2399
2426
  closeConflictResolution: Sn,
2400
2427
  handleConflictReplace: Wt,
2401
- handleConflictDuplicate: po,
2402
- handleConflictCancel: fo,
2403
- handleConflictDecideForEach: mo,
2404
- uploadConflictingFiles: wo,
2405
- uploadConflictResolutionOpen: No,
2428
+ handleConflictDuplicate: fo,
2429
+ handleConflictCancel: mo,
2430
+ handleConflictDecideForEach: Co,
2431
+ uploadConflictingFiles: No,
2432
+ uploadConflictResolutionOpen: bo,
2406
2433
  closeUploadConflictResolution: Ln,
2407
- handleUploadConflictReplace: $t,
2408
- handleUploadConflictDuplicate: bo,
2409
- handleUploadConflictCancel: xo,
2410
- handleUploadConflictDecideForEach: Gt,
2434
+ handleUploadConflictReplace: Gt,
2435
+ handleUploadConflictDuplicate: xo,
2436
+ handleUploadConflictCancel: Do,
2437
+ handleUploadConflictDecideForEach: $t,
2411
2438
  fileMetadataPopupOptions: be,
2412
- isMetadataPopupOpen: ja,
2413
- selectedFileForMetadata: Za,
2414
- openMetadataPopup: Xa,
2439
+ isMetadataPopupOpen: Za,
2440
+ selectedFileForMetadata: Xa,
2441
+ openMetadataPopup: Ka,
2415
2442
  closeMetadataPopup: qa,
2416
2443
  onGetInfo: U,
2417
2444
  onUnshareFiles: te,
2418
2445
  onRemoveFilesAccess: pe,
2419
2446
  actionsRef: _e,
2420
- sharedByMePaths: ke,
2447
+ sharedByMePaths: Oe,
2421
2448
  onSearchFiles: Se,
2422
2449
  searchInProgress: B,
2423
2450
  searchResults: T,
2424
- clearSearchResults: $,
2451
+ clearSearchResults: G,
2425
2452
  isSearchMode: Nt,
2426
2453
  emptyStateIcon: ae,
2427
- emptyStateTitle: $e,
2428
- emptyStateDescription: Ge,
2454
+ emptyStateTitle: Ge,
2455
+ emptyStateDescription: $e,
2429
2456
  gridClassName: pn,
2430
2457
  sharedWithMeIds: Be,
2431
2458
  onFolderPopupPathChange: ft,
2432
2459
  onManagePermissions: cn,
2433
2460
  onPreview: rt,
2434
2461
  onOpenInNewTab: mt,
2435
- previewExtensions: Xn,
2462
+ previewExtensions: Kn,
2436
2463
  isRenameFileAvailable: qn,
2437
2464
  isDuplicateFolderAvailable: Yn,
2438
2465
  customUploadFileAction: Ct,
@@ -2447,8 +2474,8 @@ const Or = ({
2447
2474
  maxNewFolderDepth: ve,
2448
2475
  onNewFolderDepthExceeded: Pt
2449
2476
  };
2450
- return /* @__PURE__ */ a(Ra.Provider, { value: Ka, children: t });
2451
- }, Lr = ({
2477
+ return /* @__PURE__ */ a(Ia.Provider, { value: Qa, children: t });
2478
+ }, _r = ({
2452
2479
  disabledGridRowIds: e,
2453
2480
  gridRows: t,
2454
2481
  getDisabledTooltip: r,
@@ -2486,10 +2513,10 @@ const Or = ({
2486
2513
  g.removeEventListener("mousemove", u), g.removeEventListener("mouseleave", y);
2487
2514
  };
2488
2515
  }, [e]);
2489
- const c = G(() => {
2516
+ const c = $(() => {
2490
2517
  if (l)
2491
2518
  return t.find((u) => u.path === l);
2492
- }, [l, t]), v = G(() => {
2519
+ }, [l, t]), v = $(() => {
2493
2520
  if (c) {
2494
2521
  if (r) {
2495
2522
  const u = r(c);
@@ -2508,9 +2535,9 @@ const Or = ({
2508
2535
  n,
2509
2536
  s
2510
2537
  ]);
2511
- return /* @__PURE__ */ a(Fe, { children: v && p && _s(
2512
- /* @__PURE__ */ q(Cs, { open: !0, placement: gs.Top, children: [
2513
- /* @__PURE__ */ a(vs, { asChild: !0, children: /* @__PURE__ */ a(
2538
+ return /* @__PURE__ */ a(Ie, { children: v && p && Hs(
2539
+ /* @__PURE__ */ K(vs, { open: !0, placement: ys.Top, children: [
2540
+ /* @__PURE__ */ a(ws, { asChild: !0, children: /* @__PURE__ */ a(
2514
2541
  "div",
2515
2542
  {
2516
2543
  className: an(
@@ -2525,17 +2552,17 @@ const Or = ({
2525
2552
  }
2526
2553
  }
2527
2554
  ) }),
2528
- /* @__PURE__ */ a(ys, { className: "text-center", children: v })
2555
+ /* @__PURE__ */ a(Ns, { className: "text-center", children: v })
2529
2556
  ] }),
2530
2557
  document.body
2531
2558
  ) });
2532
- }, da = () => typeof window < "u" && window.innerWidth < 640, $o = () => {
2533
- const [e, t] = z(da());
2559
+ }, ha = () => typeof window < "u" && window.innerWidth < 640, jo = () => {
2560
+ const [e, t] = z(ha());
2534
2561
  return fe(() => {
2535
- const r = () => t(da());
2562
+ const r = () => t(ha());
2536
2563
  return window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
2537
2564
  }, []), e;
2538
- }, zr = ({
2565
+ }, Wr = ({
2539
2566
  onClose: e,
2540
2567
  onConfirm: t,
2541
2568
  onFolderPopupPathChange: r,
@@ -2556,25 +2583,31 @@ const Or = ({
2556
2583
  disabledPathTooltip: x = "Unavailable for the original path. Please select another folder",
2557
2584
  path: h,
2558
2585
  collapsedFileTree: f = !1,
2559
- alertProps: I,
2586
+ alertProps: F,
2560
2587
  processDestinationFolderPath: w,
2561
2588
  ...R
2562
2589
  }) => {
2563
- const [F, S] = z(!1), [L, W] = z(!1), k = de(null), P = $o(), _ = d((V) => {
2590
+ const [I, S] = z(!1), [L, W] = z(!1), O = de(null), P = jo(), _ = d((V) => {
2564
2591
  S(V);
2565
- }, []), j = G(() => {
2592
+ }, []), j = $(() => {
2566
2593
  const V = [];
2567
2594
  return v && V.push({
2568
2595
  key: "add-folder",
2569
2596
  label: i,
2570
- icon: /* @__PURE__ */ a(Qo, { ...A, className: "text-secondary" }),
2597
+ icon: /* @__PURE__ */ a(
2598
+ ea,
2599
+ {
2600
+ ...A,
2601
+ className: "text-secondary"
2602
+ }
2603
+ ),
2571
2604
  onClick: () => {
2572
- k.current?.createFolder(), W(!1);
2605
+ O.current?.createFolder(), W(!1);
2573
2606
  }
2574
2607
  }), c && V.push({
2575
2608
  key: "show-hidden-files",
2576
2609
  label: C,
2577
- icon: /* @__PURE__ */ a(So, { ...A, className: "text-secondary" }),
2610
+ icon: /* @__PURE__ */ a(Ao, { ...A, className: "text-secondary" }),
2578
2611
  onClick: () => {
2579
2612
  S((Z) => !Z), W(!1);
2580
2613
  }
@@ -2596,9 +2629,9 @@ const Or = ({
2596
2629
  o,
2597
2630
  w
2598
2631
  ]
2599
- ), Y = p === ge.Copy ? "Copy to" : "Move to", oe = G(() => !h || !D ? !1 : D === h, [h, D]);
2632
+ ), q = p === ge.Copy ? "Copy to" : "Move to", oe = $(() => !h || !D ? !1 : D === h, [h, D]);
2600
2633
  return /* @__PURE__ */ a(
2601
- _o,
2634
+ Ho,
2602
2635
  {
2603
2636
  open: n,
2604
2637
  onClose: () => {
@@ -2606,7 +2639,7 @@ const Or = ({
2606
2639
  },
2607
2640
  size: Vn.Lg,
2608
2641
  className: "md:!h-[800px] !bg-layer-sunken",
2609
- footer: /* @__PURE__ */ q("div", { className: "flex justify-between items-center gap-2 p-4 md:px-6", children: [
2642
+ footer: /* @__PURE__ */ K("div", { className: "flex justify-between items-center gap-2 p-4 md:px-6", children: [
2610
2643
  /* @__PURE__ */ a("div", { className: "flex items-center gap-4 min-w-0", children: P ? /* @__PURE__ */ a(
2611
2644
  ht,
2612
2645
  {
@@ -2622,32 +2655,32 @@ const Or = ({
2622
2655
  }
2623
2656
  )
2624
2657
  }
2625
- ) : /* @__PURE__ */ q(Fe, { children: [
2658
+ ) : /* @__PURE__ */ K(Ie, { children: [
2626
2659
  v && /* @__PURE__ */ a(
2627
2660
  on,
2628
2661
  {
2629
2662
  label: i,
2630
- appearance: Ca.Ghost,
2631
- iconBefore: /* @__PURE__ */ a(Qo, { ...A }),
2663
+ appearance: va.Ghost,
2664
+ iconBefore: /* @__PURE__ */ a(ea, { ...A }),
2632
2665
  onClick: () => {
2633
- k.current?.createFolder();
2666
+ O.current?.createFolder();
2634
2667
  }
2635
2668
  }
2636
2669
  ),
2637
2670
  v && c && /* @__PURE__ */ a("div", { className: "w-px h-[26px] bg-control-disable-primary my-2" }),
2638
- c && /* @__PURE__ */ a(Fe, { children: /* @__PURE__ */ a("div", { className: "inline-flex items-center cursor-pointer", children: /* @__PURE__ */ a(
2639
- ga,
2671
+ c && /* @__PURE__ */ a(Ie, { children: /* @__PURE__ */ a("div", { className: "inline-flex items-center cursor-pointer", children: /* @__PURE__ */ a(
2672
+ ya,
2640
2673
  {
2641
2674
  labelProps: { label: C },
2642
- isOn: F,
2675
+ isOn: I,
2643
2676
  onChange: _,
2644
2677
  id: "hidden-files-switch-modal"
2645
2678
  }
2646
2679
  ) }) })
2647
2680
  ] }) }),
2648
- /* @__PURE__ */ q("div", { className: "flex space-x-4 items-center", children: [
2649
- /* @__PURE__ */ a($n, { onClick: e, label: "Cancel" }),
2650
- oe ? /* @__PURE__ */ a(Gn, { tooltip: x, children: /* @__PURE__ */ a(
2681
+ /* @__PURE__ */ K("div", { className: "flex space-x-4 items-center", children: [
2682
+ /* @__PURE__ */ a(Gn, { onClick: e, label: "Cancel" }),
2683
+ oe ? /* @__PURE__ */ a($n, { tooltip: x, children: /* @__PURE__ */ a(
2651
2684
  on,
2652
2685
  {
2653
2686
  onClick: t,
@@ -2664,12 +2697,12 @@ const Or = ({
2664
2697
  )
2665
2698
  ] })
2666
2699
  ] }),
2667
- header: m ?? Y,
2668
- ariaLabel: Y,
2669
- children: /* @__PURE__ */ q("div", { className: "bg-layer-sunken h-full flex flex-col", children: [
2670
- I && /* @__PURE__ */ a("div", { className: "px-6 mb-4 pt-4", children: /* @__PURE__ */ a(ws, { ...I }) }),
2700
+ header: m ?? q,
2701
+ ariaLabel: q,
2702
+ children: /* @__PURE__ */ K("div", { className: "bg-layer-sunken h-full flex flex-col", children: [
2703
+ F && /* @__PURE__ */ a("div", { className: "px-6 mb-4 pt-4", children: /* @__PURE__ */ a(bs, { ...F }) }),
2671
2704
  /* @__PURE__ */ a("div", { className: "flex-1 min-h-0", children: /* @__PURE__ */ a(
2672
- hi,
2705
+ fi,
2673
2706
  {
2674
2707
  ...R,
2675
2708
  gridClassName: "size-full",
@@ -2677,9 +2710,9 @@ const Or = ({
2677
2710
  R.className,
2678
2711
  "bg-layer-sunken h-full flex pt-0"
2679
2712
  ),
2680
- actionsRef: k,
2713
+ actionsRef: O,
2681
2714
  path: h,
2682
- showHiddenFiles: F,
2715
+ showHiddenFiles: I,
2683
2716
  onShowHiddenFilesChange: _,
2684
2717
  treeOptions: {
2685
2718
  ...R.treeOptions,
@@ -2702,31 +2735,31 @@ const Or = ({
2702
2735
  }
2703
2736
  );
2704
2737
  };
2705
- function _r({
2738
+ function Hr({
2706
2739
  actions: e,
2707
2740
  direction: t = tn.Normal,
2708
- moreButtonWidth: r = va,
2741
+ moreButtonWidth: r = Lo,
2709
2742
  actionsGap: o = 8,
2710
2743
  containerPadding: n = 8,
2711
2744
  dependencies: s = []
2712
2745
  }) {
2713
2746
  const l = de(null), i = de(null), p = de(null), C = de(null), c = de([]), [v, u] = z(0), y = d(
2714
2747
  (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
- let F = 0, S = 0;
2748
+ const h = p.current?.offsetWidth ?? 0, f = C.current?.offsetWidth ?? 0, F = h + f, R = x.getBoundingClientRect().width - F - r - o * 2 - n * 2;
2749
+ let I = 0, S = 0;
2717
2750
  if (t === tn.Reverse)
2718
- for (let L = D.length - 1; L >= 0 && (F += D[L] + o, !(F > R)); L--)
2751
+ for (let L = D.length - 1; L >= 0 && (I += D[L] + o, !(I > R)); L--)
2719
2752
  S++;
2720
2753
  else
2721
2754
  for (const L of D) {
2722
- if (F += L + o, F > R) break;
2755
+ if (I += L + o, I > R) break;
2723
2756
  S++;
2724
2757
  }
2725
2758
  u(S);
2726
2759
  },
2727
2760
  [o, n, t, r]
2728
2761
  );
2729
- hs(
2762
+ ps(
2730
2763
  () => {
2731
2764
  if (!i.current || !l.current) return;
2732
2765
  const x = Array.from(i.current.children).map(
@@ -2743,8 +2776,8 @@ function _r({
2743
2776
  const x = () => {
2744
2777
  D && cancelAnimationFrame(D), D = requestAnimationFrame(() => {
2745
2778
  if (!l.current) return;
2746
- const f = l.current, I = c.current;
2747
- I.length !== 0 && y(I, f);
2779
+ const f = l.current, F = c.current;
2780
+ F.length !== 0 && y(F, f);
2748
2781
  });
2749
2782
  }, h = new ResizeObserver(x);
2750
2783
  return h.observe(l.current), x(), () => {
@@ -2768,28 +2801,28 @@ function _r({
2768
2801
  }
2769
2802
  };
2770
2803
  }
2771
- const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, actions: r, selectedCount: o }) => {
2772
- const n = $o(), {
2804
+ const Br = 12, Ur = 8, Vr = ({ getSelectionLabel: e, onClearSelection: t, actions: r, selectedCount: o }) => {
2805
+ const n = jo(), {
2773
2806
  refs: { containerRef: s, leftSectionRef: l, measureRef: i },
2774
2807
  visibleActions: p,
2775
2808
  hiddenActions: C
2776
- } = _r({
2809
+ } = Hr({
2777
2810
  actions: r,
2778
2811
  direction: tn.Reverse,
2779
2812
  dependencies: [n],
2780
- actionsGap: Wr,
2781
- containerPadding: Hr
2813
+ actionsGap: Br,
2814
+ containerPadding: Ur
2782
2815
  }), c = e(o);
2783
- return /* @__PURE__ */ q(Fe, { children: [
2816
+ return /* @__PURE__ */ K(Ie, { children: [
2784
2817
  /* @__PURE__ */ a(
2785
2818
  "div",
2786
2819
  {
2787
2820
  ref: i,
2788
2821
  className: "absolute top-0 left-0 invisible pointer-events-none overflow-hidden whitespace-nowrap flex gap-3",
2789
- children: r.map(({ key: v, icon: u, title: y }) => /* @__PURE__ */ a($n, { iconBefore: u, label: y }, v))
2822
+ children: r.map(({ key: v, icon: u, title: y }) => /* @__PURE__ */ a(Gn, { iconBefore: u, label: y }, v))
2790
2823
  }
2791
2824
  ),
2792
- /* @__PURE__ */ q(
2825
+ /* @__PURE__ */ K(
2793
2826
  "div",
2794
2827
  {
2795
2828
  ref: s,
@@ -2803,11 +2836,11 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
2803
2836
  label: c,
2804
2837
  onClick: t,
2805
2838
  textClassName: "text-accent whitespace-nowrap",
2806
- appearance: Ca.Ghost,
2807
- iconBefore: /* @__PURE__ */ a(os, { ...A })
2839
+ appearance: va.Ghost,
2840
+ iconBefore: /* @__PURE__ */ a(as, { ...A })
2808
2841
  }
2809
2842
  ) }),
2810
- /* @__PURE__ */ q("div", { className: "flex flex-1 w-full gap-3 items-center justify-end", children: [
2843
+ /* @__PURE__ */ K("div", { className: "flex flex-1 w-full gap-3 items-center justify-end", children: [
2811
2844
  C.length > 0 && /* @__PURE__ */ a(
2812
2845
  ht,
2813
2846
  {
@@ -2824,7 +2857,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
2824
2857
  ),
2825
2858
  p.map(
2826
2859
  ({ key: v, icon: u, tooltip: y, title: g, onClick: m, disabled: D }) => /* @__PURE__ */ a(
2827
- $n,
2860
+ Gn,
2828
2861
  {
2829
2862
  className: "!p-[9px]",
2830
2863
  iconBefore: u,
@@ -2841,7 +2874,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
2841
2874
  }
2842
2875
  )
2843
2876
  ] });
2844
- }, Ur = ({
2877
+ }, Gr = ({
2845
2878
  open: e,
2846
2879
  itemsToDelete: t,
2847
2880
  onClose: r,
@@ -2851,25 +2884,25 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
2851
2884
  titleRenderer: l,
2852
2885
  contentRenderer: i
2853
2886
  }) => {
2854
- const p = t.map((y) => y.name), C = "Confirm Deleting Items", c = l?.(p) || C, v = /* @__PURE__ */ q("div", { className: "px-6 py-3 dial-small-text", children: [
2855
- /* @__PURE__ */ a("p", { className: "text-secondary mb-3", children: t.length === 1 ? /* @__PURE__ */ q(Fe, { children: [
2887
+ const p = t.map((y) => y.name), C = "Confirm Deleting Items", c = l?.(p) || C, v = /* @__PURE__ */ K("div", { className: "px-6 py-3 dial-small-text", children: [
2888
+ /* @__PURE__ */ a("p", { className: "text-secondary mb-3", children: t.length === 1 ? /* @__PURE__ */ K(Ie, { children: [
2856
2889
  "Do you want to delete file or folder",
2857
2890
  " ",
2858
- /* @__PURE__ */ q("span", { className: "text-primary break-all", children: [
2891
+ /* @__PURE__ */ K("span", { className: "text-primary break-all", children: [
2859
2892
  '"',
2860
2893
  t[0].name,
2861
2894
  '"'
2862
2895
  ] }),
2863
2896
  "?"
2864
- ] }) : /* @__PURE__ */ q(Fe, { children: [
2897
+ ] }) : /* @__PURE__ */ K(Ie, { children: [
2865
2898
  "Do you want to delete the following",
2866
2899
  " ",
2867
2900
  /* @__PURE__ */ a("span", { className: "text-primary", children: t.length }),
2868
2901
  " items?"
2869
2902
  ] }) }),
2870
- t.length > 1 && /* @__PURE__ */ a(Fe, { children: t.length <= 10 ? /* @__PURE__ */ a("ul", { className: "space-y-1 text-primary list-none", children: t.map((y) => /* @__PURE__ */ a("li", { className: "truncate", children: y.name }, y.path)) }) : /* @__PURE__ */ q(Fe, { children: [
2903
+ t.length > 1 && /* @__PURE__ */ a(Ie, { children: t.length <= 10 ? /* @__PURE__ */ a("ul", { className: "space-y-1 text-primary list-none", children: t.map((y) => /* @__PURE__ */ a("li", { className: "truncate", children: y.name }, y.path)) }) : /* @__PURE__ */ K(Ie, { children: [
2871
2904
  /* @__PURE__ */ a("ul", { className: "space-y-1 text-primary list-none mb-2", children: t.slice(0, 10).map((y) => /* @__PURE__ */ a("li", { className: "truncate", children: y.name }, y.path)) }),
2872
- /* @__PURE__ */ q("p", { className: "text-secondary italic", children: [
2905
+ /* @__PURE__ */ K("p", { className: "text-secondary italic", children: [
2873
2906
  "... and ",
2874
2907
  t.length - 10,
2875
2908
  " more"
@@ -2877,20 +2910,20 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
2877
2910
  ] }) })
2878
2911
  ] }), u = i?.(p) || v;
2879
2912
  return /* @__PURE__ */ a(
2880
- Ns,
2913
+ xs,
2881
2914
  {
2882
2915
  open: e,
2883
2916
  header: c,
2884
2917
  ariaLabel: C,
2885
2918
  confirmLabel: s,
2886
2919
  cancelLabel: n,
2887
- variant: bs.Danger,
2920
+ variant: Ds.Danger,
2888
2921
  onClose: r,
2889
2922
  onConfirm: o,
2890
2923
  children: u
2891
2924
  }
2892
2925
  );
2893
- }, ua = (e) => e.split("/").map((t) => t.trim()).filter(Boolean), Vr = "w-full flex items-center justify-between gap-4 p-px", $r = "min-w-0 h-[40px] flex-1 overflow-hidden bg-layer-raised px-3 flex items-center rounded", Gr = "w-[260px]", jr = ({
2926
+ }, pa = (e) => e.split("/").map((t) => t.trim()).filter(Boolean), $r = "w-full flex items-center justify-between gap-4 p-px", jr = "min-w-0 h-[40px] flex-1 overflow-hidden bg-layer-raised px-3 flex items-center rounded", Zr = "w-[260px]", Xr = ({
2894
2927
  ariaLabel: e = "Breadcrumb",
2895
2928
  labelClassName: t,
2896
2929
  onItemClick: r,
@@ -2912,26 +2945,26 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
2912
2945
  isCompactView: h = !1,
2913
2946
  backButtonLabel: f = "Back"
2914
2947
  }) => {
2915
- const I = G(() => {
2948
+ const F = $(() => {
2916
2949
  if (!o) return;
2917
- let k = ua(o);
2918
- const P = [...k];
2950
+ let O = pa(o);
2951
+ const P = [...O];
2919
2952
  let _ = 0;
2920
2953
  if (i) {
2921
- const M = ua(i);
2954
+ const M = pa(i);
2922
2955
  if (M.length) {
2923
- const Y = k.findIndex(
2924
- (oe, V) => M.every((Z, ie) => k[V + ie] === Z)
2956
+ const q = O.findIndex(
2957
+ (oe, V) => M.every((Z, ie) => O[V + ie] === Z)
2925
2958
  );
2926
- Y !== -1 && (_ = M.length, k = [
2927
- ...k.slice(0, Y),
2928
- ...k.slice(Y + M.length)
2959
+ q !== -1 && (_ = M.length, O = [
2960
+ ...O.slice(0, q),
2961
+ ...O.slice(q + M.length)
2929
2962
  ]);
2930
2963
  }
2931
2964
  }
2932
- if (!k.length) return [{ label: "/" }];
2933
- const j = k.map((M, Y) => {
2934
- const oe = Y < k.length - _ ? Y : Y + _, V = P.slice(0, oe + 1), Z = typeof n == "function" ? n(V, oe) : void 0;
2965
+ if (!O.length) return [{ label: "/" }];
2966
+ const j = O.map((M, q) => {
2967
+ const oe = q < O.length - _ ? q : q + _, V = P.slice(0, oe + 1), Z = typeof n == "function" ? n(V, oe) : void 0;
2935
2968
  return {
2936
2969
  label: M,
2937
2970
  href: Z,
@@ -2941,9 +2974,9 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
2941
2974
  };
2942
2975
  });
2943
2976
  if (s && l) {
2944
- const M = s.split("/").filter(Boolean), Y = o.split("/").filter(Boolean);
2977
+ const M = s.split("/").filter(Boolean), q = o.split("/").filter(Boolean);
2945
2978
  if (M.every(
2946
- (V, Z) => Y[Z] === V
2979
+ (V, Z) => q[Z] === V
2947
2980
  ) && j.length > 0) {
2948
2981
  const V = j.slice(M.length);
2949
2982
  return [
@@ -2966,13 +2999,13 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
2966
2999
  l,
2967
3000
  n,
2968
3001
  r
2969
- ]), [w, R] = z(!1), F = (k) => {
2970
- m?.(k ?? "");
3002
+ ]), [w, R] = z(!1), I = (O) => {
3003
+ m?.(O ?? "");
2971
3004
  }, S = d(() => {
2972
3005
  if (h && !w) {
2973
3006
  R(!0);
2974
- const k = document.getElementById(u);
2975
- k && k.focus();
3007
+ const O = document.getElementById(u);
3008
+ O && O.focus();
2976
3009
  }
2977
3010
  }, [u, w, h]), L = d(() => {
2978
3011
  (!v || String(v).trim() === "") && m?.("");
@@ -2981,15 +3014,15 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
2981
3014
  {
2982
3015
  size: ln.Standard,
2983
3016
  "aria-label": f,
2984
- icon: /* @__PURE__ */ a(as, { ...A }),
3017
+ icon: /* @__PURE__ */ a(ss, { ...A }),
2985
3018
  onClick: () => {
2986
3019
  R(!1), m?.("");
2987
3020
  }
2988
3021
  }
2989
- ) : /* @__PURE__ */ a("div", { className: $r, children: /* @__PURE__ */ a(
2990
- xs,
3022
+ ) : /* @__PURE__ */ a("div", { className: jr, children: /* @__PURE__ */ a(
3023
+ Ts,
2991
3024
  {
2992
- pathItems: I,
3025
+ pathItems: F,
2993
3026
  ariaLabel: e,
2994
3027
  labelClassName: t,
2995
3028
  className: C
@@ -2998,17 +3031,17 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
2998
3031
  e,
2999
3032
  f,
3000
3033
  C,
3001
- I,
3034
+ F,
3002
3035
  w,
3003
3036
  h,
3004
3037
  t,
3005
3038
  m
3006
3039
  ]);
3007
- return /* @__PURE__ */ q(
3040
+ return /* @__PURE__ */ K(
3008
3041
  "div",
3009
3042
  {
3010
3043
  className: Ee(
3011
- Vr,
3044
+ $r,
3012
3045
  {
3013
3046
  "gap-3": h
3014
3047
  },
@@ -3020,7 +3053,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3020
3053
  c && /* @__PURE__ */ a(
3021
3054
  "div",
3022
3055
  {
3023
- className: Ee(Gr, {
3056
+ className: Ee(Zr, {
3024
3057
  "w-[40px]": h && !w,
3025
3058
  "w-full": h && w
3026
3059
  }),
@@ -3028,11 +3061,11 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3028
3061
  "aria-label": "Search",
3029
3062
  onClick: S,
3030
3063
  children: /* @__PURE__ */ a(
3031
- Ds,
3064
+ Rs,
3032
3065
  {
3033
3066
  id: u,
3034
3067
  value: v ?? "",
3035
- onChange: F,
3068
+ onChange: I,
3036
3069
  disabled: y,
3037
3070
  onBlur: L,
3038
3071
  invalid: g,
@@ -3046,7 +3079,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3046
3079
  ]
3047
3080
  }
3048
3081
  );
3049
- }, Zr = ({
3082
+ }, Kr = ({
3050
3083
  tabs: e,
3051
3084
  activeTab: t,
3052
3085
  onTabChange: r,
@@ -3054,7 +3087,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3054
3087
  onToggleHiddenFiles: n,
3055
3088
  isNewButtonVisible: s,
3056
3089
  isNewButtonDisabled: l,
3057
- newButtonVariant: i = Ts.Primary,
3090
+ newButtonVariant: i = Is.Primary,
3058
3091
  newButtonDropdownItems: p = [],
3059
3092
  newButtonLabel: C = "New",
3060
3093
  hiddenFilesSwitcherLabel: c = "Hidden files",
@@ -3063,11 +3096,11 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3063
3096
  showHiddenFilesToggle: y = !0,
3064
3097
  disabledNewButtonTooltip: g
3065
3098
  }) => {
3066
- const m = $o(), D = G(() => [
3099
+ const m = jo(), D = $(() => [
3067
3100
  {
3068
3101
  key: "hidden-files-switch",
3069
3102
  label: o ? u : v,
3070
- icon: o ? /* @__PURE__ */ a(ss, { ...A, className: "text-secondary" }) : /* @__PURE__ */ a(So, { ...A, className: "text-secondary" }),
3103
+ icon: o ? /* @__PURE__ */ a(rs, { ...A, className: "text-secondary" }) : /* @__PURE__ */ a(Ao, { ...A, className: "text-secondary" }),
3071
3104
  onClick: () => n?.(!o)
3072
3105
  }
3073
3106
  ], [
@@ -3076,15 +3109,15 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3076
3109
  v,
3077
3110
  n
3078
3111
  ]), x = () => e && t && r ? /* @__PURE__ */ a(
3079
- Rs,
3112
+ Fs,
3080
3113
  {
3081
3114
  tabs: e,
3082
3115
  activeTabId: t,
3083
- onTabChange: (I) => r(I)
3116
+ onTabChange: (F) => r(F)
3084
3117
  }
3085
- ) : null, h = () => /* @__PURE__ */ q(Fe, { children: [
3118
+ ) : null, h = () => /* @__PURE__ */ K(Ie, { children: [
3086
3119
  y && /* @__PURE__ */ a(
3087
- ga,
3120
+ ya,
3088
3121
  {
3089
3122
  id: "hidden-files-switch",
3090
3123
  labelProps: { label: c },
@@ -3093,11 +3126,11 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3093
3126
  }
3094
3127
  ),
3095
3128
  s && /* @__PURE__ */ a(
3096
- Gn,
3129
+ $n,
3097
3130
  {
3098
3131
  tooltip: l && g ? g : void 0,
3099
3132
  children: /* @__PURE__ */ a(
3100
- ea,
3133
+ na,
3101
3134
  {
3102
3135
  label: C,
3103
3136
  variant: i,
@@ -3107,7 +3140,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3107
3140
  )
3108
3141
  }
3109
3142
  )
3110
- ] }), f = () => /* @__PURE__ */ q(Fe, { children: [
3143
+ ] }), f = () => /* @__PURE__ */ K(Ie, { children: [
3111
3144
  /* @__PURE__ */ a(
3112
3145
  ht,
3113
3146
  {
@@ -3117,17 +3150,23 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3117
3150
  pt,
3118
3151
  {
3119
3152
  size: ln.Small,
3120
- icon: /* @__PURE__ */ a(rn, { stroke: 2, size: zo.SM })
3153
+ icon: /* @__PURE__ */ a(
3154
+ rn,
3155
+ {
3156
+ stroke: Zn,
3157
+ size: Wo.SM
3158
+ }
3159
+ )
3121
3160
  }
3122
3161
  )
3123
3162
  }
3124
3163
  ),
3125
3164
  s ? /* @__PURE__ */ a(
3126
- Gn,
3165
+ $n,
3127
3166
  {
3128
3167
  tooltip: l && g ? g : void 0,
3129
3168
  children: /* @__PURE__ */ a(
3130
- ea,
3169
+ na,
3131
3170
  {
3132
3171
  label: C,
3133
3172
  variant: i,
@@ -3138,11 +3177,11 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3138
3177
  }
3139
3178
  ) : null
3140
3179
  ] });
3141
- return /* @__PURE__ */ q("div", { className: "flex w-full justify-between gap-4 items-center overflow-x-auto py-[2px] my-[-2px]", children: [
3180
+ return /* @__PURE__ */ K("div", { className: "flex w-full justify-between gap-4 items-center overflow-x-auto py-[2px] my-[-2px]", children: [
3142
3181
  /* @__PURE__ */ a("div", { className: "flex-1 min-w-0", children: x() }),
3143
3182
  /* @__PURE__ */ a("div", { className: "flex gap-2 shrink-0 items-center", children: m ? f() : h() })
3144
3183
  ] });
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 = ({
3184
+ }, qr = 100, Qt = 16, Ue = "text-secondary", Bn = "text-primary min-w-0", Yr = "text-primary break-words min-w-0", Jt = "bg-layer-sunken", Qr = ({
3146
3185
  open: e,
3147
3186
  onClose: t,
3148
3187
  fileMetadata: r,
@@ -3156,7 +3195,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3156
3195
  dateLocale: c = "en-US",
3157
3196
  dateOptions: v
3158
3197
  }) => /* @__PURE__ */ a(
3159
- _o,
3198
+ Ho,
3160
3199
  {
3161
3200
  open: e,
3162
3201
  onClose: t,
@@ -3167,13 +3206,13 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3167
3206
  "div",
3168
3207
  {
3169
3208
  className: "grid gap-4 items-center dial-small-text",
3170
- style: { gridTemplateColumns: `${Xr}px 1fr` },
3171
- children: o ? /* @__PURE__ */ q(Fe, { children: [
3209
+ style: { gridTemplateColumns: `${qr}px 1fr` },
3210
+ children: o ? /* @__PURE__ */ K(Ie, { children: [
3172
3211
  /* @__PURE__ */ a("div", { className: Ue, children: s }),
3173
3212
  /* @__PURE__ */ a(
3174
- qt,
3213
+ Kt,
3175
3214
  {
3176
- variant: Yt.Text,
3215
+ variant: qt.Text,
3177
3216
  width: "100%",
3178
3217
  height: Qt,
3179
3218
  className: Jt
@@ -3181,9 +3220,9 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3181
3220
  ),
3182
3221
  /* @__PURE__ */ a("div", { className: Ue, children: i }),
3183
3222
  /* @__PURE__ */ a(
3184
- qt,
3223
+ Kt,
3185
3224
  {
3186
- variant: Yt.Text,
3225
+ variant: qt.Text,
3187
3226
  width: "90%",
3188
3227
  height: Qt,
3189
3228
  className: Jt
@@ -3191,9 +3230,9 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3191
3230
  ),
3192
3231
  /* @__PURE__ */ a("div", { className: Ue, children: p }),
3193
3232
  /* @__PURE__ */ a(
3194
- qt,
3233
+ Kt,
3195
3234
  {
3196
- variant: Yt.Text,
3235
+ variant: qt.Text,
3197
3236
  width: "60%",
3198
3237
  height: Qt,
3199
3238
  className: Jt
@@ -3201,9 +3240,9 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3201
3240
  ),
3202
3241
  /* @__PURE__ */ a("div", { className: Ue, children: C }),
3203
3242
  /* @__PURE__ */ a(
3204
- qt,
3243
+ Kt,
3205
3244
  {
3206
- variant: Yt.Text,
3245
+ variant: qt.Text,
3207
3246
  width: "80%",
3208
3247
  height: Qt,
3209
3248
  className: Jt
@@ -3211,22 +3250,22 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3211
3250
  ),
3212
3251
  /* @__PURE__ */ a("div", { className: Ue, children: l }),
3213
3252
  /* @__PURE__ */ a(
3214
- qt,
3253
+ Kt,
3215
3254
  {
3216
- variant: Yt.Text,
3255
+ variant: qt.Text,
3217
3256
  width: "70%",
3218
3257
  height: Qt,
3219
3258
  className: Jt
3220
3259
  }
3221
3260
  )
3222
- ] }) : r ? /* @__PURE__ */ q(Fe, { children: [
3261
+ ] }) : r ? /* @__PURE__ */ K(Ie, { children: [
3223
3262
  /* @__PURE__ */ a("div", { className: Ue, children: s }),
3224
3263
  /* @__PURE__ */ a("div", { className: Bn, children: /* @__PURE__ */ a(Rt, { text: r.name }) }),
3225
3264
  /* @__PURE__ */ a("div", { className: Ue, children: i }),
3226
3265
  /* @__PURE__ */ a("div", { className: Bn, children: /* @__PURE__ */ a(
3227
3266
  Rt,
3228
3267
  {
3229
- text: sr(
3268
+ text: ir(
3230
3269
  r.updatedAt,
3231
3270
  c,
3232
3271
  v
@@ -3243,15 +3282,15 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3243
3282
  /* @__PURE__ */ a("div", { className: Ue, children: C }),
3244
3283
  /* @__PURE__ */ a("div", { className: Bn, children: /* @__PURE__ */ a(Rt, { text: r.author || "—" }) }),
3245
3284
  /* @__PURE__ */ a("div", { className: Ue, children: l }),
3246
- /* @__PURE__ */ a("div", { className: qr, children: decodeURIComponent(r.path) })
3285
+ /* @__PURE__ */ a("div", { className: Yr, children: decodeURIComponent(r.path) })
3247
3286
  ] }) : null
3248
3287
  }
3249
3288
  ) })
3250
3289
  }
3251
- ), Kr = {
3290
+ ), Jr = {
3252
3291
  size: 10,
3253
3292
  stroke: 2
3254
- }, Qr = 26, en = "__new_folder", Jr = ({
3293
+ }, ei = 26, en = "__new_folder", ti = ({
3255
3294
  name: e,
3256
3295
  type: t,
3257
3296
  shared: r = !1,
@@ -3261,10 +3300,10 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3261
3300
  fileExtension: l,
3262
3301
  ...i
3263
3302
  }) => {
3264
- const p = (C) => /* @__PURE__ */ q("span", { className: "inline-flex relative text-secondary", role: "img", children: [
3303
+ const p = (C) => /* @__PURE__ */ K("span", { className: "inline-flex relative text-secondary", role: "img", children: [
3265
3304
  C,
3266
3305
  r && /* @__PURE__ */ a("span", { className: "absolute -bottom-0.5 -left-0.5", children: /* @__PURE__ */ a(
3267
- ta,
3306
+ oa,
3268
3307
  {
3269
3308
  className: n,
3270
3309
  sharedIndicatorTooltip: s
@@ -3272,17 +3311,17 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3272
3311
  ) })
3273
3312
  ] });
3274
3313
  if (o)
3275
- return p(/* @__PURE__ */ a(Es, {}));
3314
+ return p(/* @__PURE__ */ a(As, {}));
3276
3315
  if (t === He.File) {
3277
3316
  const C = l || (e.includes(".") ? e.split(".").pop() : void 0);
3278
3317
  return /* @__PURE__ */ a(
3279
- Fs,
3318
+ Es,
3280
3319
  {
3281
3320
  ...i,
3282
3321
  extension: C ?? "",
3283
3322
  className: "text-secondary",
3284
3323
  indicator: r ? /* @__PURE__ */ a(
3285
- ta,
3324
+ oa,
3286
3325
  {
3287
3326
  className: n,
3288
3327
  sharedIndicatorTooltip: s
@@ -3294,10 +3333,10 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3294
3333
  }
3295
3334
  return t === He.Folder ? p(
3296
3335
  /* @__PURE__ */ a(
3297
- Is,
3336
+ Ss,
3298
3337
  {
3299
3338
  icon: /* @__PURE__ */ a(
3300
- ha,
3339
+ fa,
3301
3340
  {
3302
3341
  className: i.className,
3303
3342
  size: i.size ?? A.size,
@@ -3308,7 +3347,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3308
3347
  }
3309
3348
  )
3310
3349
  ) : null;
3311
- }, ei = ({
3350
+ }, ni = ({
3312
3351
  name: e,
3313
3352
  type: t,
3314
3353
  elementId: r,
@@ -3330,23 +3369,23 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3330
3369
  fileExtension: h
3331
3370
  }) => {
3332
3371
  const f = () => {
3333
- const I = v?.startsWith(
3334
- `${Eo.Warning}__`
3372
+ const F = v?.startsWith(
3373
+ `${So.Warning}__`
3335
3374
  );
3336
- if (!c && !I) return null;
3375
+ if (!c && !F) return null;
3337
3376
  const w = v?.replace(
3338
- `${Eo.Warning}__`,
3377
+ `${So.Warning}__`,
3339
3378
  ""
3340
3379
  );
3341
- return /* @__PURE__ */ a(Gn, { tooltip: w, children: y || (I ? /* @__PURE__ */ a(
3342
- is,
3380
+ return /* @__PURE__ */ a($n, { tooltip: w, children: y || (F ? /* @__PURE__ */ a(
3381
+ ls,
3343
3382
  {
3344
3383
  ...A,
3345
3384
  className: "text-warning-icon",
3346
3385
  "aria-label": "warning"
3347
3386
  }
3348
3387
  ) : /* @__PURE__ */ a(
3349
- rs,
3388
+ is,
3350
3389
  {
3351
3390
  ...A,
3352
3391
  className: "text-error",
@@ -3354,9 +3393,9 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3354
3393
  }
3355
3394
  )) });
3356
3395
  };
3357
- return /* @__PURE__ */ q("div", { className: "flex gap-2 items-center", ...Ss, children: [
3396
+ return /* @__PURE__ */ K("div", { className: "flex gap-2 items-center", ...Ps, children: [
3358
3397
  /* @__PURE__ */ a(
3359
- Jr,
3398
+ ti,
3360
3399
  {
3361
3400
  name: e,
3362
3401
  type: t,
@@ -3373,7 +3412,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3373
3412
  }
3374
3413
  ),
3375
3414
  /* @__PURE__ */ a(
3376
- As,
3415
+ Ms,
3377
3416
  {
3378
3417
  containerClassName: Ee(
3379
3418
  "!h-5 !py-[1px] !pl-[7px] pr-[7px]",
@@ -3396,7 +3435,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3396
3435
  loading: n = !1,
3397
3436
  creating: s = !1,
3398
3437
  shared: l = !1,
3399
- iconSize: i = va,
3438
+ iconSize: i = Lo,
3400
3439
  validate: p,
3401
3440
  onSave: C,
3402
3441
  fileExtension: c,
@@ -3409,9 +3448,9 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3409
3448
  hideTooltip: x = !1,
3410
3449
  forbiddenSymbolsRegExp: h,
3411
3450
  forbiddenSymbolsTooltip: f,
3412
- ...I
3451
+ ...F
3413
3452
  }) => {
3414
- const { value: w, invalid: R, invalidMessage: F, onChange: S, inputRef: L } = Ps({
3453
+ const { value: w, invalid: R, invalidMessage: I, onChange: S, inputRef: L } = Os({
3415
3454
  value: e,
3416
3455
  isEditing: o,
3417
3456
  isCreating: s,
@@ -3423,16 +3462,16 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3423
3462
  onCreateFolderSave: y
3424
3463
  });
3425
3464
  if (!o && !s) {
3426
- const W = Vo(
3465
+ const W = $o(
3427
3466
  {
3428
3467
  name: e,
3429
3468
  isFolder: t === He.Folder
3430
3469
  },
3431
3470
  h,
3432
3471
  f
3433
- ), k = !!W;
3472
+ ), O = !!W;
3434
3473
  return t === He.Folder ? /* @__PURE__ */ a(
3435
- Oo,
3474
+ zo,
3436
3475
  {
3437
3476
  name: e,
3438
3477
  loading: n,
@@ -3441,32 +3480,32 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3441
3480
  className: "max-w-[428px] truncate",
3442
3481
  sharedIndicatorClassName: m,
3443
3482
  hideTooltip: x,
3444
- isInvalidName: k,
3483
+ isInvalidName: O,
3445
3484
  tooltipContent: W
3446
3485
  }
3447
3486
  ) : /* @__PURE__ */ a(
3448
- Lo,
3487
+ _o,
3449
3488
  {
3450
3489
  className: "max-w-[428px]",
3451
- ...I,
3490
+ ...F,
3452
3491
  name: e,
3453
3492
  shared: l,
3454
3493
  iconSize: i,
3455
3494
  sharedIndicatorClassName: m,
3456
3495
  hideTooltip: x,
3457
- isInvalidName: k,
3496
+ isInvalidName: O,
3458
3497
  tooltipContent: W
3459
3498
  }
3460
3499
  );
3461
3500
  }
3462
3501
  return /* @__PURE__ */ a(
3463
- ei,
3502
+ ni,
3464
3503
  {
3465
3504
  type: t,
3466
3505
  name: w,
3467
3506
  elementId: r,
3468
3507
  inputInvalid: R,
3469
- inputInvalidMessage: F,
3508
+ inputInvalidMessage: I,
3470
3509
  inputRef: L,
3471
3510
  onChange: S,
3472
3511
  iconSize: i,
@@ -3476,7 +3515,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3476
3515
  sharedIndicatorClassName: m
3477
3516
  }
3478
3517
  );
3479
- }, ti = ({
3518
+ }, oi = ({
3480
3519
  items: e,
3481
3520
  showFiles: t = !1,
3482
3521
  expandedPaths: r,
@@ -3497,55 +3536,55 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3497
3536
  onRenameSave: x,
3498
3537
  onRenameCancel: h,
3499
3538
  onRenameValidate: f,
3500
- onExpandedPathsChange: I,
3539
+ onExpandedPathsChange: F,
3501
3540
  onCreateFolderSave: w,
3502
3541
  onCreateFolderCancel: R,
3503
- forbiddenSymbolsRegExp: F,
3542
+ forbiddenSymbolsRegExp: I,
3504
3543
  forbiddenSymbolsTooltip: S,
3505
3544
  newFolderDefaultName: L
3506
3545
  }) => {
3507
- const { expandedPaths: W, togglePath: k } = Ea({
3546
+ const { expandedPaths: W, togglePath: O } = Sa({
3508
3547
  expandedPaths: r ?? /* @__PURE__ */ new Set(),
3509
- onExpandedPathsChange: I
3548
+ onExpandedPathsChange: F
3510
3549
  }), P = (j) => {
3511
- m?.(j), k(j.path);
3512
- }, _ = (j, M, Y) => {
3550
+ m?.(j), O(j.path);
3551
+ }, _ = (j, M, q) => {
3513
3552
  let oe = j;
3514
- return Y && Y.path === u && (oe = [
3553
+ return q && q.path === u && (oe = [
3515
3554
  {
3516
3555
  folderId: en,
3517
3556
  id: en,
3518
3557
  items: [],
3519
3558
  name: L || "",
3520
- nodeType: O.FOLDER,
3559
+ nodeType: k.FOLDER,
3521
3560
  parentPath: u,
3522
3561
  path: `${u}/${en}`
3523
3562
  },
3524
3563
  ...j
3525
3564
  ]), oe.map((V) => {
3526
- const { path: Z, nodeType: ie, name: we, items: xe } = V, he = ie === O.FOLDER;
3527
- if (!c && Da(V)) return null;
3565
+ const { path: Z, nodeType: ie, name: we, items: xe } = V, he = ie === k.FOLDER;
3566
+ if (!c && Ta(V)) return null;
3528
3567
  if (!he && !t) return;
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(
3568
+ const Te = Array.isArray(xe) && xe.length > 0 && xe.some((B) => B.nodeType === k.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)), Oe = H ? "bg-control-accent-alpha rounded" : "", Se = pe ? [] : D?.(V) ?? [], T = I ? $o(
3530
3569
  { name: V.name, isFolder: he },
3531
- F,
3570
+ I,
3532
3571
  S
3533
3572
  ) : void 0;
3534
- return /* @__PURE__ */ a("div", { className: "cursor-pointer text-secondary", children: /* @__PURE__ */ q("div", { className: "flex flex-col w-full gap-1", "aria-label": "folder", children: [
3573
+ return /* @__PURE__ */ a("div", { className: "cursor-pointer text-secondary", children: /* @__PURE__ */ K("div", { className: "flex flex-col w-full gap-1", "aria-label": "folder", children: [
3535
3574
  /* @__PURE__ */ a(
3536
3575
  ht,
3537
3576
  {
3538
- trigger: [fa.ContextMenu],
3577
+ trigger: [Ca.ContextMenu],
3539
3578
  className: "w-full h-[32px]",
3540
3579
  anchorToMouse: !0,
3541
3580
  items: Se,
3542
- children: /* @__PURE__ */ q(
3581
+ children: /* @__PURE__ */ K(
3543
3582
  "div",
3544
3583
  {
3545
- style: { paddingLeft: `${M * Qr}px` },
3584
+ style: { paddingLeft: `${M * ei}px` },
3546
3585
  className: Ee(
3547
3586
  "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",
3548
- ke
3587
+ Oe
3549
3588
  ),
3550
3589
  "aria-selected": H,
3551
3590
  children: [
@@ -3561,11 +3600,11 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3561
3600
  {
3562
3601
  className: "relative flex flex-row truncate items-center w-fit h-6 gap-x-1 pl-1",
3563
3602
  onClick: () => !be && P(V),
3564
- children: /* @__PURE__ */ q(Fe, { children: [
3603
+ children: /* @__PURE__ */ K(Ie, { children: [
3565
3604
  he && /* @__PURE__ */ a(
3566
- ls,
3605
+ cs,
3567
3606
  {
3568
- ...Kr,
3607
+ ...Jr,
3569
3608
  className: an(
3570
3609
  "flex-shrink-0",
3571
3610
  Ne && "rotate-90 transition-all",
@@ -3586,7 +3625,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3586
3625
  H && "bg-control-accent-alpha"
3587
3626
  ),
3588
3627
  iconSize: st,
3589
- forbiddenSymbolsRegExp: F,
3628
+ forbiddenSymbolsRegExp: I,
3590
3629
  forbiddenSymbolsTooltip: T,
3591
3630
  ...!pe && {
3592
3631
  editing: be,
@@ -3629,14 +3668,14 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3629
3668
  });
3630
3669
  };
3631
3670
  return /* @__PURE__ */ a("div", { className: "flex-1 size-full overflow-y-auto", "aria-label": "folders-tree", children: e.length > 0 ? _(e, 0) : /* @__PURE__ */ a(
3632
- ya,
3671
+ wa,
3633
3672
  {
3634
3673
  title: i,
3635
3674
  description: p,
3636
3675
  icon: C
3637
3676
  }
3638
3677
  ) });
3639
- }, ni = ({
3678
+ }, ai = ({
3640
3679
  selectedFiles: e,
3641
3680
  actionLabels: t,
3642
3681
  onDuplicate: r,
@@ -3651,11 +3690,11 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3651
3690
  sharedByMePaths: v,
3652
3691
  onClearSelection: u,
3653
3692
  forbiddenSymbolsRegExp: y
3654
- }) => G(() => {
3693
+ }) => $(() => {
3655
3694
  const g = [], m = Array.from(e.values());
3656
3695
  if (!m.length || !t)
3657
3696
  return g;
3658
- const D = Zn(y), x = D ? m.some((h) => D.test(h.name)) : !1;
3697
+ const D = Xn(y), x = D ? m.some((h) => D.test(h.name)) : !1;
3659
3698
  if (t[N.RemoveAccess] && i) {
3660
3699
  const h = m.some(
3661
3700
  (f) => !v?.has(f.path)
@@ -3665,7 +3704,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3665
3704
  label: t[N.RemoveAccess],
3666
3705
  title: t[N.RemoveAccess],
3667
3706
  disabled: h,
3668
- icon: /* @__PURE__ */ a(Ao, { size: A.size }),
3707
+ icon: /* @__PURE__ */ a(Po, { ...A }),
3669
3708
  onClick: () => {
3670
3709
  i(m), u();
3671
3710
  }
@@ -3676,7 +3715,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3676
3715
  label: t[N.Move],
3677
3716
  title: t[N.Move],
3678
3717
  icon: /* @__PURE__ */ a(
3679
- Ho,
3718
+ Uo,
3680
3719
  {
3681
3720
  width: A.size,
3682
3721
  height: A.size
@@ -3688,7 +3727,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3688
3727
  label: t[N.Copy],
3689
3728
  title: t[N.Copy],
3690
3729
  icon: /* @__PURE__ */ a(
3691
- Wo,
3730
+ Bo,
3692
3731
  {
3693
3732
  width: A.size,
3694
3733
  height: A.size
@@ -3699,7 +3738,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3699
3738
  key: N.Duplicate,
3700
3739
  label: t[N.Duplicate],
3701
3740
  title: t[N.Duplicate],
3702
- icon: /* @__PURE__ */ a(Po, { ...A }),
3741
+ icon: /* @__PURE__ */ a(Mo, { ...A }),
3703
3742
  onClick: () => r(m)
3704
3743
  }), t[N.Delete]) {
3705
3744
  const h = m.some(
@@ -3709,7 +3748,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3709
3748
  key: N.Delete,
3710
3749
  label: t[N.Delete],
3711
3750
  title: t[N.Delete],
3712
- icon: /* @__PURE__ */ a(Mo, { ...A }),
3751
+ icon: /* @__PURE__ */ a(Oo, { ...A }),
3713
3752
  disabled: h,
3714
3753
  tooltip: h ? "Selected items contain item which can not be deleted" : void 0,
3715
3754
  onClick: () => {
@@ -3735,7 +3774,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3735
3774
  disabled: h,
3736
3775
  tooltip: h ? "Selected items contain item which can not be unshared" : void 0,
3737
3776
  icon: /* @__PURE__ */ a(
3738
- Bo,
3777
+ Vo,
3739
3778
  {
3740
3779
  width: A.size,
3741
3780
  height: A.size
@@ -3762,7 +3801,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3762
3801
  u,
3763
3802
  v,
3764
3803
  y
3765
- ]), oi = ({
3804
+ ]), si = ({
3766
3805
  id: e,
3767
3806
  name: t,
3768
3807
  nodeType: r,
@@ -3778,7 +3817,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3778
3817
  }) => /* @__PURE__ */ a("div", { className: "flex", children: /* @__PURE__ */ a("div", { className: "flex flex-1 min-w-0", children: /* @__PURE__ */ a(
3779
3818
  jn,
3780
3819
  {
3781
- type: r === O.FOLDER ? He.Folder : He.File,
3820
+ type: r === k.FOLDER ? He.Folder : He.File,
3782
3821
  name: t,
3783
3822
  elementId: e,
3784
3823
  shared: i,
@@ -3787,11 +3826,11 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3787
3826
  hideTooltip: C,
3788
3827
  forbiddenSymbolsRegExp: c,
3789
3828
  forbiddenSymbolsTooltip: v,
3790
- details: /* @__PURE__ */ q("div", { className: "flex items-center gap-1 dial-tiny-text text-secondary", children: [
3791
- /* @__PURE__ */ a("span", { children: r === O.ITEM ? sn(o) : "" }),
3829
+ details: /* @__PURE__ */ K("div", { className: "flex items-center gap-1 dial-tiny-text text-secondary", children: [
3830
+ /* @__PURE__ */ a("span", { children: r === k.ITEM ? sn(o) : "" }),
3792
3831
  n && o && /* @__PURE__ */ a(Un, { size: 2, className: "text-secondary" }),
3793
3832
  n ? /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a(
3794
- wa,
3833
+ Na,
3795
3834
  {
3796
3835
  value: n,
3797
3836
  locale: s?.toString(),
@@ -3802,7 +3841,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3802
3841
  ) }) : null
3803
3842
  ] })
3804
3843
  }
3805
- ) }) }), ai = (e) => (t, r, o) => ({
3844
+ ) }) }), ri = (e) => (t, r, o) => ({
3806
3845
  colId: ye.Name,
3807
3846
  field: "name",
3808
3847
  headerName: e,
@@ -3842,38 +3881,38 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3842
3881
  onCreateFolderCancel: p,
3843
3882
  inputContainerClassName: Ee([
3844
3883
  "!h-9",
3845
- o && s === O.ITEM && "!h-10"
3884
+ o && s === k.ITEM && "!h-10"
3846
3885
  ])
3847
3886
  }
3848
3887
  );
3849
3888
  const {
3850
3889
  renameTriggerView: h,
3851
3890
  renamedPath: f,
3852
- renamedItem: I,
3891
+ renamedItem: F,
3853
3892
  getDisplayName: w,
3854
3893
  onRenameValidate: R,
3855
- onRenameSave: F,
3894
+ onRenameSave: I,
3856
3895
  onRenameCancel: S
3857
3896
  } = n.context;
3858
- if (h === Ft.Grid && f === n.data?.path && I && n.data) {
3859
- const k = w(I);
3897
+ if (h === It.Grid && f === n.data?.path && F && n.data) {
3898
+ const O = w(F);
3860
3899
  return /* @__PURE__ */ a(
3861
3900
  jn,
3862
3901
  {
3863
- name: k,
3864
- type: s === O.FOLDER ? He.Folder : He.File,
3865
- fileExtension: I.name.split(".").pop(),
3902
+ name: O,
3903
+ type: s === k.FOLDER ? He.Folder : He.File,
3904
+ fileExtension: F.name.split(".").pop(),
3866
3905
  elementId: `rename-${n.data.id}`,
3867
3906
  editing: !0,
3868
3907
  shared: g,
3869
3908
  sharedIndicatorClassName: x,
3870
3909
  iconSize: st,
3871
- validate: (P) => R(P, I),
3872
- onSave: F,
3910
+ validate: (P) => R(P, F),
3911
+ onSave: I,
3873
3912
  onCancel: S,
3874
3913
  inputContainerClassName: Ee([
3875
3914
  "!h-9",
3876
- o && s === O.ITEM && "!h-10"
3915
+ o && s === k.ITEM && "!h-10"
3877
3916
  ]),
3878
3917
  forbiddenSymbolsRegExp: n.context.forbiddenSymbolsRegExp
3879
3918
  }
@@ -3881,7 +3920,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3881
3920
  }
3882
3921
  if (o)
3883
3922
  return /* @__PURE__ */ a(
3884
- oi,
3923
+ si,
3885
3924
  {
3886
3925
  id: n.data.id,
3887
3926
  name: n.data.name,
@@ -3897,16 +3936,16 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3897
3936
  forbiddenSymbolsTooltip: n.context.forbiddenSymbolsTooltip
3898
3937
  }
3899
3938
  );
3900
- const W = Vo(
3939
+ const W = $o(
3901
3940
  {
3902
3941
  name: n.data.name,
3903
- isFolder: s === O.FOLDER
3942
+ isFolder: s === k.FOLDER
3904
3943
  },
3905
3944
  n.context.forbiddenSymbolsRegExp,
3906
3945
  n.context.forbiddenSymbolsTooltip
3907
3946
  );
3908
- return s === O.FOLDER ? /* @__PURE__ */ a(
3909
- Oo,
3947
+ return s === k.FOLDER ? /* @__PURE__ */ a(
3948
+ zo,
3910
3949
  {
3911
3950
  name: n.data.name,
3912
3951
  shared: g,
@@ -3917,7 +3956,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3917
3956
  tooltipContent: W
3918
3957
  }
3919
3958
  ) : /* @__PURE__ */ a(
3920
- Lo,
3959
+ _o,
3921
3960
  {
3922
3961
  name: n.data.name,
3923
3962
  shared: g,
@@ -3929,7 +3968,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3929
3968
  }
3930
3969
  );
3931
3970
  }
3932
- }), si = (e) => (t, r) => ({
3971
+ }), ii = (e) => (t, r) => ({
3933
3972
  colId: ye.UpdatedAt,
3934
3973
  field: "updatedAt",
3935
3974
  headerName: e,
@@ -3937,28 +3976,28 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3937
3976
  suppressSizeToFit: !0,
3938
3977
  cellRenderer: (o) => {
3939
3978
  const n = o.context?.disabledRowIds?.has(o.data?.path) ?? !1;
3940
- return /* @__PURE__ */ a(wa, { ...o, hideTooltip: n });
3979
+ return /* @__PURE__ */ a(Na, { ...o, hideTooltip: n });
3941
3980
  },
3942
3981
  cellRendererParams: {
3943
3982
  locale: t,
3944
3983
  options: r
3945
3984
  },
3946
3985
  filterValueGetter: (o) => {
3947
- const n = o.data[o.colDef.field || ""], s = Ms(n);
3986
+ const n = o.data[o.colDef.field || ""], s = ks(n);
3948
3987
  return s ? new Intl.DateTimeFormat(
3949
- t || ks,
3950
- r || Os
3988
+ t || Ls,
3989
+ r || zs
3951
3990
  ).format(s) : "";
3952
3991
  }
3953
- }), ri = (e) => ({
3992
+ }), li = (e) => ({
3954
3993
  colId: ye.Size,
3955
3994
  field: "size",
3956
3995
  headerName: e,
3957
3996
  width: 120,
3958
3997
  suppressSizeToFit: !0,
3959
- cellRenderer: (t) => t.data.nodeType === O.ITEM ? sn(t.data.contentLength) : "",
3960
- filterValueGetter: (t) => t.data.nodeType === O.ITEM ? sn(t.data.contentLength) : ""
3961
- }), ii = (e) => {
3998
+ cellRenderer: (t) => t.data.nodeType === k.ITEM ? sn(t.data.contentLength) : "",
3999
+ filterValueGetter: (t) => t.data.nodeType === k.ITEM ? sn(t.data.contentLength) : ""
4000
+ }), ci = (e) => {
3962
4001
  const t = e.event;
3963
4002
  if (!(t?.target ?? null)?.closest("input") || !t) return !1;
3964
4003
  switch (t.key) {
@@ -3973,7 +4012,7 @@ const Wr = 12, Hr = 8, Br = ({ getSelectionLabel: e, onClearSelection: t, action
3973
4012
  return !1;
3974
4013
  }
3975
4014
  };
3976
- function li({
4015
+ function di({
3977
4016
  userColumnDefs: e,
3978
4017
  filterable: t,
3979
4018
  dateLocale: r,
@@ -3985,8 +4024,8 @@ function li({
3985
4024
  rootItemLabel: p,
3986
4025
  rootItemPath: C
3987
4026
  }) {
3988
- const c = G(() => [
3989
- ai("Name")(r, o, s),
4027
+ const c = $(() => [
4028
+ ri("Name")(r, o, s),
3990
4029
  {
3991
4030
  colId: ye.Path,
3992
4031
  field: "path",
@@ -4002,8 +4041,8 @@ function li({
4002
4041
  return /* @__PURE__ */ a(Rt, { text: m, hideTooltip: y });
4003
4042
  }
4004
4043
  },
4005
- si("Modified Date")(r, o),
4006
- ri("Size"),
4044
+ ii("Modified Date")(r, o),
4045
+ li("Size"),
4007
4046
  {
4008
4047
  colId: ye.Author,
4009
4048
  field: "author",
@@ -4021,7 +4060,7 @@ function li({
4021
4060
  cellRenderer: (u) => u.data.owner
4022
4061
  }
4023
4062
  ], [r, o, s, p, C]);
4024
- return { columnDefs: G(() => {
4063
+ return { columnDefs: $(() => {
4025
4064
  const u = e?.map(
4026
4065
  (m) => typeof m == "function" ? m(r, o, s) : m
4027
4066
  );
@@ -4036,7 +4075,7 @@ function li({
4036
4075
  filter: t ? m.filter : !1,
4037
4076
  floatingFilter: t ? m.floatingFilter : !1
4038
4077
  };
4039
- return g(m) && !m.suppressKeyboardEvent && (D.suppressKeyboardEvent = ii), D;
4078
+ return g(m) && !m.suppressKeyboardEvent && (D.suppressKeyboardEvent = ci), D;
4040
4079
  });
4041
4080
  }, [
4042
4081
  i,
@@ -4050,14 +4089,14 @@ function li({
4050
4089
  e
4051
4090
  ]) };
4052
4091
  }
4053
- const ci = () => {
4054
- const e = ps(Ra);
4092
+ const ui = () => {
4093
+ const e = fs(Ia);
4055
4094
  if (!e)
4056
4095
  throw new Error(
4057
4096
  "useFileManagerContext must be used within <FileManagerProvider>"
4058
4097
  );
4059
4098
  return e;
4060
- }, di = ({
4099
+ }, hi = ({
4061
4100
  actionLabels: e,
4062
4101
  onDuplicate: t,
4063
4102
  onCopy: r,
@@ -4078,19 +4117,19 @@ const ci = () => {
4078
4117
  isDuplicateFolderAvailable: x = !0,
4079
4118
  forbiddenSymbolsRegExp: h,
4080
4119
  onGridCreateSiblingFolder: f,
4081
- onGridCreateChildFolder: I
4082
- }) => G(() => (w) => {
4120
+ onGridCreateChildFolder: F
4121
+ }) => $(() => (w) => {
4083
4122
  const R = [];
4084
4123
  if (!e)
4085
4124
  return R;
4086
- const F = Zn(
4125
+ const I = Xn(
4087
4126
  h
4088
4127
  )?.test(w.name);
4089
- e[N.AddSibling] && w.nodeType === O.FOLDER && R.push({
4128
+ e[N.AddSibling] && w.nodeType === k.FOLDER && R.push({
4090
4129
  key: "addSibling",
4091
4130
  label: e[N.AddSibling],
4092
4131
  icon: /* @__PURE__ */ a(
4093
- xa,
4132
+ Da,
4094
4133
  {
4095
4134
  width: A.size,
4096
4135
  height: A.size,
@@ -4098,41 +4137,47 @@ const ci = () => {
4098
4137
  }
4099
4138
  ),
4100
4139
  onClick: () => f([w])
4101
- }), e[N.AddChild] && w.nodeType === O.FOLDER && !F && R.push(
4140
+ }), e[N.AddChild] && w.nodeType === k.FOLDER && !I && R.push(
4102
4141
  {
4103
4142
  key: "addChild",
4104
4143
  label: e[N.AddChild],
4105
4144
  icon: /* @__PURE__ */ a(
4106
- ba,
4145
+ xa,
4107
4146
  {
4108
4147
  width: A.size,
4109
4148
  height: A.size,
4110
4149
  className: "text-secondary"
4111
4150
  }
4112
4151
  ),
4113
- onClick: () => I([w])
4152
+ onClick: () => F([w])
4114
4153
  },
4115
4154
  {
4116
4155
  key: "divider",
4117
- type: Na.Divider
4156
+ type: ba.Divider
4118
4157
  }
4119
- ), e[N.OpenInNewTab] && typeof g == "function" && w.nodeType === O.ITEM && !F && R.push({
4158
+ ), e[N.OpenInNewTab] && typeof g == "function" && w.nodeType === k.ITEM && !I && R.push({
4120
4159
  key: N.OpenInNewTab,
4121
4160
  label: e[N.OpenInNewTab],
4122
- icon: /* @__PURE__ */ a(Io, { ...A, className: "text-secondary" }),
4161
+ icon: /* @__PURE__ */ a(
4162
+ Eo,
4163
+ {
4164
+ ...A,
4165
+ className: "text-secondary"
4166
+ }
4167
+ ),
4123
4168
  onClick: () => g?.(w)
4124
4169
  });
4125
- const S = w.nodeType === O.ITEM || w.nodeType === O.FOLDER && x;
4126
- e[N.Duplicate] && S && !F && R.push({
4170
+ const S = w.nodeType === k.ITEM || w.nodeType === k.FOLDER && x;
4171
+ e[N.Duplicate] && S && !I && R.push({
4127
4172
  key: N.Duplicate,
4128
4173
  label: e[N.Duplicate],
4129
- icon: /* @__PURE__ */ a(Po, { ...A, className: "text-secondary" }),
4174
+ icon: /* @__PURE__ */ a(Mo, { ...A, className: "text-secondary" }),
4130
4175
  onClick: () => t(w)
4131
- }), e[N.Copy] && !F && R.push({
4176
+ }), e[N.Copy] && !I && R.push({
4132
4177
  key: N.Copy,
4133
4178
  label: e[N.Copy],
4134
4179
  icon: /* @__PURE__ */ a(
4135
- Wo,
4180
+ Bo,
4136
4181
  {
4137
4182
  width: A.size,
4138
4183
  height: A.size,
@@ -4140,11 +4185,11 @@ const ci = () => {
4140
4185
  }
4141
4186
  ),
4142
4187
  onClick: () => r(w)
4143
- }), e[N.Move] && !F && R.push({
4188
+ }), e[N.Move] && !I && R.push({
4144
4189
  key: N.Move,
4145
4190
  label: e[N.Move],
4146
4191
  icon: /* @__PURE__ */ a(
4147
- Ho,
4192
+ Uo,
4148
4193
  {
4149
4194
  width: A.size,
4150
4195
  height: A.size,
@@ -4152,47 +4197,77 @@ const ci = () => {
4152
4197
  }
4153
4198
  ),
4154
4199
  onClick: () => o(w)
4155
- }), e[N.Download] && !F && R.push({
4200
+ }), e[N.Download] && !I && R.push({
4156
4201
  key: N.Download,
4157
4202
  label: e[N.Download],
4158
- icon: /* @__PURE__ */ a(ko, { ...A, className: "text-secondary" }),
4203
+ icon: /* @__PURE__ */ a(
4204
+ ko,
4205
+ {
4206
+ ...A,
4207
+ className: "text-secondary"
4208
+ }
4209
+ ),
4159
4210
  onClick: () => n(w)
4160
- }), e[N.ManagePermissions] && typeof u == "function" && w.nodeType === O.FOLDER && !F && R.push({
4211
+ }), e[N.ManagePermissions] && typeof u == "function" && w.nodeType === k.FOLDER && !I && R.push({
4161
4212
  key: N.ManagePermissions,
4162
4213
  label: e[N.ManagePermissions],
4163
- icon: /* @__PURE__ */ a(Io, { ...A, className: "text-secondary" }),
4214
+ icon: /* @__PURE__ */ a(
4215
+ Eo,
4216
+ {
4217
+ ...A,
4218
+ className: "text-secondary"
4219
+ }
4220
+ ),
4164
4221
  onClick: () => u?.(w.path)
4165
4222
  });
4166
- const L = w.name.split("."), W = L.length > 1 ? L[L.length - 1] : "", k = W && m?.includes(`.${W}`);
4167
- e[N.Preview] && typeof y == "function" && w.nodeType === O.ITEM && k && !F && R.push({
4223
+ const L = w.name.split("."), W = L.length > 1 ? L[L.length - 1] : "", O = W && m?.includes(`.${W}`);
4224
+ e[N.Preview] && typeof y == "function" && w.nodeType === k.ITEM && O && !I && R.push({
4168
4225
  key: N.Preview,
4169
4226
  label: e[N.Preview],
4170
- icon: /* @__PURE__ */ a(So, { ...A, className: "text-secondary" }),
4227
+ icon: /* @__PURE__ */ a(Ao, { ...A, className: "text-secondary" }),
4171
4228
  onClick: () => y?.(w.path)
4172
4229
  });
4173
4230
  const P = !w.permissions || w.permissions.includes(St.WRITE);
4174
4231
  e[N.Delete] && P && R.push({
4175
4232
  key: N.Delete,
4176
4233
  label: e[N.Delete],
4177
- icon: /* @__PURE__ */ a(Mo, { ...A, className: "text-secondary" }),
4234
+ icon: /* @__PURE__ */ a(
4235
+ Oo,
4236
+ {
4237
+ ...A,
4238
+ className: "text-secondary"
4239
+ }
4240
+ ),
4178
4241
  onClick: () => l(w, w.parentPath ?? "")
4179
4242
  });
4180
- const _ = w.nodeType === O.FOLDER || w.nodeType === O.ITEM && D;
4243
+ const _ = w.nodeType === k.FOLDER || w.nodeType === k.ITEM && D;
4181
4244
  return e[N.Rename] && _ && P && R.push({
4182
4245
  key: N.Rename,
4183
4246
  label: e[N.Rename],
4184
- icon: /* @__PURE__ */ a(pa, { ...A, className: "text-secondary" }),
4247
+ icon: /* @__PURE__ */ a(
4248
+ ma,
4249
+ {
4250
+ ...A,
4251
+ className: "text-secondary"
4252
+ }
4253
+ ),
4185
4254
  onClick: () => s(w.path)
4186
- }), e[N.Info] && w.nodeType === O.ITEM && !F && R.push({
4255
+ }), e[N.Info] && w.nodeType === k.ITEM && !I && R.push({
4187
4256
  key: N.Info,
4188
4257
  label: e[N.Info],
4189
- icon: /* @__PURE__ */ a(cs, { ...A, className: "text-secondary" }),
4258
+ icon: /* @__PURE__ */ a(
4259
+ ds,
4260
+ {
4261
+ ...A,
4262
+ className: "text-secondary"
4263
+ }
4264
+ ),
4190
4265
  onClick: () => i(w)
4191
4266
  }), e[N.Unshare] && c?.includes(w.path) && R.push({
4192
4267
  key: N.Unshare,
4193
4268
  label: e[N.Unshare],
4194
4269
  icon: /* @__PURE__ */ a(
4195
- Bo,
4270
+ Vo,
4196
4271
  {
4197
4272
  width: A.size,
4198
4273
  height: A.size,
@@ -4203,7 +4278,13 @@ const ci = () => {
4203
4278
  }), e[N.RemoveAccess] && v?.has(w.path) && C && R.push({
4204
4279
  key: N.RemoveAccess,
4205
4280
  label: e[N.RemoveAccess],
4206
- icon: /* @__PURE__ */ a(Ao, { size: A.size, className: "text-secondary" }),
4281
+ icon: /* @__PURE__ */ a(
4282
+ Po,
4283
+ {
4284
+ ...A,
4285
+ className: "text-secondary"
4286
+ }
4287
+ ),
4207
4288
  onClick: () => C(w)
4208
4289
  }), R;
4209
4290
  }, [
@@ -4226,9 +4307,9 @@ const ci = () => {
4226
4307
  D,
4227
4308
  x,
4228
4309
  h,
4229
- I,
4310
+ F,
4230
4311
  f
4231
- ]), ui = ({
4312
+ ]), pi = ({
4232
4313
  onGridAddSibling: e,
4233
4314
  onGridAddChild: t,
4234
4315
  onTreeAddSibling: r,
@@ -4264,7 +4345,7 @@ const ci = () => {
4264
4345
  onGridCreateChildFolder: p,
4265
4346
  onTreeCreateChildFolder: C
4266
4347
  };
4267
- }, hi = (e) => /* @__PURE__ */ a(Or, { ...e, children: /* @__PURE__ */ a(pi, {}) }), pi = () => {
4348
+ }, fi = (e) => /* @__PURE__ */ a(zr, { ...e, children: /* @__PURE__ */ a(mi, {}) }), mi = () => {
4268
4349
  const {
4269
4350
  managerLabel: e,
4270
4351
  className: t,
@@ -4280,25 +4361,25 @@ const ci = () => {
4280
4361
  deleteConfirmationOptions: v,
4281
4362
  destinationFolderPopupOptions: u,
4282
4363
  conflictResolutionPopupOptions: y,
4283
- compactViewWidthBreakpoint: g = Ys,
4364
+ compactViewWidthBreakpoint: g = Qs,
4284
4365
  customBreakpointRef: m,
4285
4366
  sharedByMePaths: D,
4286
4367
  allowedFileTypes: x,
4287
4368
  maxSelectableFileSize: h,
4288
4369
  areHiddenFilesVisible: f,
4289
- toggleHiddenFilesVisibility: I,
4370
+ toggleHiddenFilesVisibility: F,
4290
4371
  isTreeCollapsed: w,
4291
4372
  toggleTreeCollapse: R,
4292
- currentPath: F,
4373
+ currentPath: I,
4293
4374
  gridRows: S,
4294
4375
  selectedPaths: L,
4295
4376
  selectedFiles: W,
4296
- clearSelection: k,
4377
+ clearSelection: O,
4297
4378
  setSelectedPaths: P,
4298
4379
  effectiveSearchValue: _,
4299
4380
  handleBreadcrumbItemClick: j,
4300
4381
  handleSearchChange: M,
4301
- handleTreeItemClick: Y,
4382
+ handleTreeItemClick: q,
4302
4383
  handleTableRowClick: oe,
4303
4384
  handleSelectionClick: V,
4304
4385
  onGridApiChange: Z,
@@ -4315,31 +4396,31 @@ const ci = () => {
4315
4396
  handleGridAddChild: te,
4316
4397
  handleTreeAddSibling: pe,
4317
4398
  handleTreeAddChild: _e,
4318
- handleDownloadFiles: ke,
4399
+ handleDownloadFiles: Oe,
4319
4400
  openDeleteConfirmation: Se,
4320
4401
  closeDeleteConfirmation: T,
4321
4402
  confirmDelete: B,
4322
- deleteConfirmationOpen: $,
4403
+ deleteConfirmationOpen: G,
4323
4404
  itemsToDelete: J,
4324
4405
  renamedPath: X,
4325
4406
  renamedItem: me,
4326
4407
  onRename: Ae,
4327
4408
  onRenameSave: Pe,
4328
4409
  onRenameCancel: ae,
4329
- onRenameValidate: $e,
4330
- createdFolderPath: Ge,
4410
+ onRenameValidate: Ge,
4411
+ createdFolderPath: $e,
4331
4412
  forbiddenSymbolsRegExp: Be,
4332
4413
  forbiddenSymbolsTooltip: ft,
4333
4414
  getDisplayName: cn,
4334
4415
  isDragging: rt,
4335
4416
  isDraggingOverWindow: mt,
4336
- handleDragEnter: Xn,
4417
+ handleDragEnter: Kn,
4337
4418
  handleDragLeave: qn,
4338
4419
  handleDragOver: Yn,
4339
4420
  handleDrop: Ct,
4340
4421
  onUploadFiles: dn,
4341
4422
  onValidateUpload: At,
4342
- maxFileSize: Kn,
4423
+ maxFileSize: Qn,
4343
4424
  newActions: un,
4344
4425
  isNewButtonVisible: hn,
4345
4426
  isNewButtonDisabled: pn,
@@ -4356,32 +4437,32 @@ const ci = () => {
4356
4437
  handleConflictDecideForEach: it,
4357
4438
  uploadConflictingFiles: gn,
4358
4439
  uploadConflictResolutionOpen: Je,
4359
- handleUploadConflictReplace: Qn,
4360
- handleUploadConflictDuplicate: Jn,
4361
- handleUploadConflictCancel: eo,
4362
- handleUploadConflictDecideForEach: to,
4440
+ handleUploadConflictReplace: Jn,
4441
+ handleUploadConflictDuplicate: eo,
4442
+ handleUploadConflictCancel: to,
4443
+ handleUploadConflictDecideForEach: no,
4363
4444
  openMetadataPopup: ue,
4364
- fileMetadataPopupOptions: Ie,
4365
- isMetadataPopupOpen: qe,
4445
+ fileMetadataPopupOptions: Fe,
4446
+ isMetadataPopupOpen: Ke,
4366
4447
  selectedFileForMetadata: Mt,
4367
- closeMetadataPopup: kt,
4448
+ closeMetadataPopup: Ot,
4368
4449
  onUnshareFiles: et,
4369
4450
  onRemoveFilesAccess: vt,
4370
- actionsRef: no,
4451
+ actionsRef: oo,
4371
4452
  searchInProgress: vn,
4372
4453
  isSearchMode: tt,
4373
4454
  emptyStateIcon: lt,
4374
4455
  emptyStateTitle: yn = "You don't have any files",
4375
4456
  emptyStateDescription: wn = "Upload or drag and drop files",
4376
4457
  sharedWithMeIds: yt,
4377
- onFolderPopupPathChange: oo,
4458
+ onFolderPopupPathChange: ao,
4378
4459
  onManagePermissions: wt,
4379
- onPreview: ao,
4380
- onOpenInNewTab: so,
4381
- previewExtensions: ro,
4382
- isRenameFileAvailable: io,
4383
- isDuplicateFolderAvailable: lo,
4384
- getDisabledTooltip: Ot,
4460
+ onPreview: so,
4461
+ onOpenInNewTab: ro,
4462
+ previewExtensions: io,
4463
+ isRenameFileAvailable: lo,
4464
+ isDuplicateFolderAvailable: co,
4465
+ getDisabledTooltip: kt,
4385
4466
  fileTooLargeTooltip: Nt,
4386
4467
  unsupportedFileTypeTooltip: Nn,
4387
4468
  gridClassName: Lt,
@@ -4390,46 +4471,46 @@ const ci = () => {
4390
4471
  showHiddenFileSwitcherInDestinationPopup: ce,
4391
4472
  showCreateFolderButtonInDestinationPopup: bn,
4392
4473
  newFolderDefaultName: se
4393
- } = ci(), {
4394
- width: Oe = Gs,
4395
- header: Me = js,
4396
- containerClassName: xn = Us,
4474
+ } = ui(), {
4475
+ width: ke = Zs,
4476
+ header: Me = Xs,
4477
+ containerClassName: xn = Gs,
4397
4478
  additionalButtons: Dn,
4398
4479
  ...Tn
4399
- } = s ?? {}, [bt, Rn] = z(Oe), { renameTriggerView: nt, onGridRename: co, onTreeRename: Fn } = er({ onRename: Ae }), {
4400
- createFolderTriggerView: In,
4401
- onGridCreateSiblingFolder: uo,
4480
+ } = s ?? {}, [bt, Rn] = z(ke), { renameTriggerView: nt, onGridRename: uo, onTreeRename: In } = nr({ onRename: Ae }), {
4481
+ createFolderTriggerView: Fn,
4482
+ onGridCreateSiblingFolder: ho,
4402
4483
  onTreeCreateSiblingFolder: En,
4403
- onGridCreateChildFolder: ho,
4484
+ onGridCreateChildFolder: po,
4404
4485
  onTreeCreateChildFolder: Sn
4405
- } = ui({
4486
+ } = pi({
4406
4487
  onGridAddSibling: U,
4407
4488
  onGridAddChild: te,
4408
4489
  onTreeAddSibling: pe,
4409
4490
  onTreeAddChild: _e
4410
- }), Wt = de(null), po = (b) => {
4491
+ }), Wt = de(null), fo = (b) => {
4411
4492
  Wt.current === null && (Wt.current = requestAnimationFrame(() => {
4412
4493
  Rn(b), Wt.current = null;
4413
4494
  }));
4414
4495
  }, {
4415
- columnDefs: fo,
4416
- filterable: mo = !0,
4417
- dateLocale: Co,
4418
- dateOptions: go,
4496
+ columnDefs: mo,
4497
+ filterable: Co = !0,
4498
+ dateLocale: go,
4499
+ dateOptions: vo,
4419
4500
  selectionMode: An,
4420
4501
  wrapCustomCellRenderers: Pn,
4421
- visibleColumns: Mn = Ks,
4502
+ visibleColumns: Mn = Js,
4422
4503
  allowDisabledContextMenu: xt = !1,
4423
4504
  ...ot
4424
- } = p ?? {}, { containerRef: vo, isBelowBreakpoint: Le } = tr(
4505
+ } = p ?? {}, { containerRef: yo, isBelowBreakpoint: Le } = or(
4425
4506
  g,
4426
4507
  m
4427
- ), yo = G(() => tt ? [
4508
+ ), wo = $(() => tt ? [
4428
4509
  ye.Name,
4429
4510
  ye.Path,
4430
4511
  ye.Actions
4431
4512
  ] : Mn, [tt, Mn]), Ht = d(
4432
- (b, ee, le) => dr(
4513
+ (b, ee, le) => hr(
4433
4514
  b,
4434
4515
  ee,
4435
4516
  le,
@@ -4438,9 +4519,9 @@ const ci = () => {
4438
4519
  ),
4439
4520
  [Nt, Nn]
4440
4521
  ), Dt = d(
4441
- (b, ee, le) => !!Ot?.(b) || !!Ht(b, ee, le),
4442
- [Ht, Ot]
4443
- ), ct = G(() => {
4522
+ (b, ee, le) => !!kt?.(b) || !!Ht(b, ee, le),
4523
+ [Ht, kt]
4524
+ ), ct = $(() => {
4444
4525
  const b = /* @__PURE__ */ new Set();
4445
4526
  for (const ee of S)
4446
4527
  Dt(ee, x, h) && b.add(ee.path);
@@ -4450,11 +4531,11 @@ const ci = () => {
4450
4531
  const ee = [], le = [], Re = !b.parentPath, at = Be?.test(
4451
4532
  b.name
4452
4533
  );
4453
- return s?.actionLabels && (s.actionLabels[N.AddSibling] && b.nodeType === O.FOLDER && !Re && ee.push({
4534
+ return s?.actionLabels && (s.actionLabels[N.AddSibling] && b.nodeType === k.FOLDER && !Re && ee.push({
4454
4535
  key: "addSibling",
4455
4536
  label: s.actionLabels[N.AddSibling],
4456
4537
  icon: /* @__PURE__ */ a(
4457
- xa,
4538
+ Da,
4458
4539
  {
4459
4540
  width: A.size,
4460
4541
  height: A.size,
@@ -4462,11 +4543,11 @@ const ci = () => {
4462
4543
  }
4463
4544
  ),
4464
4545
  onClick: () => En([b])
4465
- }), s.actionLabels[N.AddChild] && b.nodeType === O.FOLDER && !at && ee.push({
4546
+ }), s.actionLabels[N.AddChild] && b.nodeType === k.FOLDER && !at && ee.push({
4466
4547
  key: "addChild",
4467
4548
  label: s.actionLabels[N.AddChild],
4468
4549
  icon: /* @__PURE__ */ a(
4469
- ba,
4550
+ xa,
4470
4551
  {
4471
4552
  width: A.size,
4472
4553
  height: A.size,
@@ -4477,13 +4558,19 @@ const ci = () => {
4477
4558
  }), s.actionLabels[N.Duplicate] && !Re && !at && le.push({
4478
4559
  key: "duplicate",
4479
4560
  label: s.actionLabels[N.Duplicate],
4480
- icon: /* @__PURE__ */ a(Po, { ...A, className: "text-secondary" }),
4561
+ icon: /* @__PURE__ */ a(
4562
+ Mo,
4563
+ {
4564
+ ...A,
4565
+ className: "text-secondary"
4566
+ }
4567
+ ),
4481
4568
  onClick: () => H([b])
4482
4569
  }), s.actionLabels[N.Copy] && !Re && !at && le.push({
4483
4570
  key: ge.Copy,
4484
4571
  label: s.actionLabels[N.Copy],
4485
4572
  icon: /* @__PURE__ */ a(
4486
- Wo,
4573
+ Bo,
4487
4574
  {
4488
4575
  width: A.size,
4489
4576
  height: A.size,
@@ -4497,7 +4584,7 @@ const ci = () => {
4497
4584
  key: ge.Move,
4498
4585
  label: s.actionLabels[N.Move],
4499
4586
  icon: /* @__PURE__ */ a(
4500
- Ho,
4587
+ Uo,
4501
4588
  {
4502
4589
  width: A.size,
4503
4590
  height: A.size,
@@ -4510,13 +4597,19 @@ const ci = () => {
4510
4597
  }), s.actionLabels[N.Download] && !Re && !at && le.push({
4511
4598
  key: "download",
4512
4599
  label: s.actionLabels[N.Download],
4513
- icon: /* @__PURE__ */ a(ko, { ...A, className: "text-secondary" }),
4514
- onClick: () => ke([b])
4515
- }), s.actionLabels[N.ManagePermissions] && typeof wt == "function" && b.nodeType === O.FOLDER && !Re && le.push({
4600
+ icon: /* @__PURE__ */ a(
4601
+ ko,
4602
+ {
4603
+ ...A,
4604
+ className: "text-secondary"
4605
+ }
4606
+ ),
4607
+ onClick: () => Oe([b])
4608
+ }), s.actionLabels[N.ManagePermissions] && typeof wt == "function" && b.nodeType === k.FOLDER && !Re && le.push({
4516
4609
  key: N.ManagePermissions,
4517
4610
  label: s.actionLabels[N.ManagePermissions],
4518
4611
  icon: /* @__PURE__ */ a(
4519
- Io,
4612
+ Eo,
4520
4613
  {
4521
4614
  ...A,
4522
4615
  className: "text-secondary"
@@ -4526,24 +4619,30 @@ const ci = () => {
4526
4619
  }), s.actionLabels[N.Delete] && b.permissions?.includes(St.WRITE) && !Re && le.push({
4527
4620
  key: "delete",
4528
4621
  label: s.actionLabels[N.Delete],
4529
- icon: /* @__PURE__ */ a(Mo, { ...A, className: "text-secondary" }),
4622
+ icon: /* @__PURE__ */ a(
4623
+ Oo,
4624
+ {
4625
+ ...A,
4626
+ className: "text-secondary"
4627
+ }
4628
+ ),
4530
4629
  onClick: () => Se([b], b.parentPath ?? "")
4531
4630
  }), s.actionLabels[N.Rename] && !Re && le.push({
4532
4631
  key: "rename",
4533
4632
  label: s.actionLabels[N.Rename],
4534
4633
  icon: /* @__PURE__ */ a(
4535
- pa,
4634
+ ma,
4536
4635
  {
4537
4636
  ...A,
4538
4637
  className: "text-secondary"
4539
4638
  }
4540
4639
  ),
4541
- onClick: () => Fn(b.path)
4640
+ onClick: () => In(b.path)
4542
4641
  }), s.actionLabels[N.Unshare] && yt?.includes(b.path) && !Re && le.push({
4543
4642
  key: "unshare",
4544
4643
  label: s.actionLabels[N.Unshare],
4545
4644
  icon: /* @__PURE__ */ a(
4546
- Bo,
4645
+ Vo,
4547
4646
  {
4548
4647
  width: A.size,
4549
4648
  height: A.size,
@@ -4555,16 +4654,16 @@ const ci = () => {
4555
4654
  key: N.RemoveAccess,
4556
4655
  label: s.actionLabels[N.RemoveAccess],
4557
4656
  icon: /* @__PURE__ */ a(
4558
- Ao,
4657
+ Po,
4559
4658
  {
4560
- size: A.size,
4659
+ ...A,
4561
4660
  className: "text-secondary"
4562
4661
  }
4563
4662
  ),
4564
4663
  onClick: () => vt?.([b])
4565
4664
  })), ee.length ? le.length === 0 ? ee : ee.length === 0 ? le : [
4566
4665
  ...ee,
4567
- { key: "divider", type: Na.Divider },
4666
+ { key: "divider", type: ba.Divider },
4568
4667
  ...le
4569
4668
  ] : le;
4570
4669
  },
@@ -4576,8 +4675,8 @@ const ci = () => {
4576
4675
  Te,
4577
4676
  ie,
4578
4677
  Ne,
4579
- ke,
4580
- Fn,
4678
+ Oe,
4679
+ In,
4581
4680
  et,
4582
4681
  vt,
4583
4682
  yt,
@@ -4586,7 +4685,7 @@ const ci = () => {
4586
4685
  Sn,
4587
4686
  En
4588
4687
  ]
4589
- ), kn = G(() => {
4688
+ ), On = $(() => {
4590
4689
  const b = /* @__PURE__ */ new Set();
4591
4690
  return W.forEach((ee, le) => b.add(le)), b;
4592
4691
  }, [W]), Ut = d(
@@ -4594,7 +4693,7 @@ const ci = () => {
4594
4693
  P(b), V?.(ee);
4595
4694
  },
4596
4695
  [V, P]
4597
- ), On = ni({
4696
+ ), kn = ai({
4598
4697
  selectedFiles: W,
4599
4698
  actionLabels: c?.actionLabels,
4600
4699
  onDuplicate: H,
@@ -4604,35 +4703,35 @@ const ci = () => {
4604
4703
  onMove: (b) => {
4605
4704
  Ne(b), ie(ge.Move);
4606
4705
  },
4607
- onDownload: ke,
4706
+ onDownload: Oe,
4608
4707
  onDelete: Se,
4609
4708
  onUnshare: et,
4610
4709
  onRemoveAccess: vt,
4611
- getCurrentFolderPath: () => F ?? "/",
4710
+ getCurrentFolderPath: () => I ?? "/",
4612
4711
  sharedWithMeIds: yt,
4613
4712
  sharedByMePaths: D,
4614
- onClearSelection: k,
4713
+ onClearSelection: O,
4615
4714
  forbiddenSymbolsRegExp: Be
4616
4715
  }), Vt = d(
4617
4716
  (b) => {
4618
4717
  C?.onTabChange?.(b), Qe();
4619
4718
  },
4620
4719
  [C, Qe]
4621
- ), wo = d(() => C && L.size === 0 ? /* @__PURE__ */ q(
4720
+ ), No = d(() => C && L.size === 0 ? /* @__PURE__ */ K(
4622
4721
  "div",
4623
4722
  {
4624
- className: oa,
4723
+ className: sa,
4625
4724
  role: "toolbar",
4626
4725
  "aria-label": "File Manager Toolbar",
4627
4726
  children: [
4628
4727
  e,
4629
4728
  /* @__PURE__ */ a(
4630
- Zr,
4729
+ Kr,
4631
4730
  {
4632
4731
  ...C,
4633
4732
  onTabChange: Vt,
4634
4733
  areHiddenFilesVisible: f,
4635
- onToggleHiddenFiles: I,
4734
+ onToggleHiddenFiles: F,
4636
4735
  isNewButtonVisible: hn,
4637
4736
  isNewButtonDisabled: pn,
4638
4737
  newButtonDropdownItems: un
@@ -4643,16 +4742,16 @@ const ci = () => {
4643
4742
  ) : L.size > 0 && c ? /* @__PURE__ */ a(
4644
4743
  "div",
4645
4744
  {
4646
- className: oa,
4745
+ className: sa,
4647
4746
  role: "toolbar",
4648
4747
  "aria-label": "File Manager Toolbar",
4649
4748
  children: /* @__PURE__ */ a(
4650
- Br,
4749
+ Vr,
4651
4750
  {
4652
4751
  ...c,
4653
4752
  selectedCount: L.size,
4654
- onClearSelection: k,
4655
- actions: On
4753
+ onClearSelection: O,
4754
+ actions: kn
4656
4755
  }
4657
4756
  )
4658
4757
  }
@@ -4660,35 +4759,35 @@ const ci = () => {
4660
4759
  Vt,
4661
4760
  c,
4662
4761
  L,
4663
- k,
4664
- On,
4762
+ O,
4763
+ kn,
4665
4764
  f,
4666
- I,
4765
+ F,
4667
4766
  C,
4668
4767
  hn,
4669
4768
  pn,
4670
4769
  un,
4671
4770
  e
4672
4771
  ]);
4673
- fs(
4674
- no,
4772
+ ms(
4773
+ oo,
4675
4774
  () => ({
4676
4775
  createFolder: je
4677
4776
  }),
4678
4777
  [je]
4679
4778
  );
4680
- const No = d(() => Le ? null : /* @__PURE__ */ a("div", { className: "min-h-0 min-w-0 h-full flex-none", children: /* @__PURE__ */ a(
4681
- Ls,
4779
+ const bo = d(() => Le ? null : /* @__PURE__ */ a("div", { className: "min-h-0 min-w-0 h-full flex-none", children: /* @__PURE__ */ a(
4780
+ _s,
4682
4781
  {
4683
4782
  defaultWidth: bt,
4684
4783
  width: bt,
4685
4784
  onResizeStop: Rn,
4686
- onResize: po,
4687
- minWidth: Xs,
4688
- maxWidth: qs,
4785
+ onResize: fo,
4786
+ minWidth: qs,
4787
+ maxWidth: Ys,
4689
4788
  enabled: !w,
4690
4789
  children: /* @__PURE__ */ a(
4691
- zs,
4790
+ Ws,
4692
4791
  {
4693
4792
  width: bt,
4694
4793
  title: Me,
@@ -4699,24 +4798,24 @@ const ci = () => {
4699
4798
  isOpened: !w,
4700
4799
  onToggle: R,
4701
4800
  children: /* @__PURE__ */ a(
4702
- ti,
4801
+ oi,
4703
4802
  {
4704
4803
  ...Tn,
4705
4804
  items: r,
4706
4805
  rootItemPath: o?.path,
4707
4806
  rootItemLabel: o?.label,
4708
- selectedPath: F,
4807
+ selectedPath: I,
4709
4808
  sharedByMePaths: D,
4710
4809
  forbiddenSymbolsRegExp: Be,
4711
4810
  forbiddenSymbolsTooltip: ft,
4712
- onItemClick: Y,
4811
+ onItemClick: q,
4713
4812
  areHiddenFilesVisible: f,
4714
4813
  getContextMenuItems: Bt,
4715
- renamedPath: nt === Ft.Tree ? X : void 0,
4814
+ renamedPath: nt === It.Tree ? X : void 0,
4716
4815
  onRenameSave: Pe,
4717
4816
  onRenameCancel: ae,
4718
- onRenameValidate: $e,
4719
- createdFolderPath: In === ut.Tree ? Ge : null,
4817
+ onRenameValidate: Ge,
4818
+ createdFolderPath: Fn === ut.Tree ? $e : null,
4720
4819
  onCreateFolderCancel: Qe,
4721
4820
  onCreateFolderSave: gt,
4722
4821
  newFolderDefaultName: se
@@ -4737,24 +4836,24 @@ const ci = () => {
4737
4836
  r,
4738
4837
  o?.path,
4739
4838
  o?.label,
4740
- F,
4839
+ I,
4741
4840
  D,
4742
4841
  Be,
4743
4842
  ft,
4744
- Y,
4843
+ q,
4745
4844
  f,
4746
4845
  Bt,
4747
4846
  nt,
4748
- In,
4847
+ Fn,
4749
4848
  X,
4750
4849
  Pe,
4751
4850
  ae,
4752
- $e,
4753
4851
  Ge,
4852
+ $e,
4754
4853
  Qe,
4755
4854
  gt,
4756
4855
  se
4757
- ]), Ln = di({
4856
+ ]), Ln = hi({
4758
4857
  actionLabels: p?.actionLabels,
4759
4858
  onDuplicate: (b) => H([b]),
4760
4859
  onCopy: (b) => {
@@ -4763,8 +4862,8 @@ const ci = () => {
4763
4862
  onMove: (b) => {
4764
4863
  Ne([b]), ie(ge.Move);
4765
4864
  },
4766
- onDownload: (b) => ke([b]),
4767
- onRename: co,
4865
+ onDownload: (b) => Oe([b]),
4866
+ onRename: uo,
4768
4867
  onDelete: (b, ee) => Se([b], ee),
4769
4868
  onInfo: (b) => ue(b),
4770
4869
  onUnshare: (b) => et?.([b]),
@@ -4772,37 +4871,37 @@ const ci = () => {
4772
4871
  sharedWithMeIds: yt,
4773
4872
  sharedByMePaths: D,
4774
4873
  onManagePermissions: (b) => wt?.(b),
4775
- onPreview: (b) => ao?.(b),
4776
- onOpenInNewTab: (b) => so?.(b),
4777
- previewExtensions: ro,
4778
- isRenameFileAvailable: io,
4779
- isDuplicateFolderAvailable: lo,
4874
+ onPreview: (b) => so?.(b),
4875
+ onOpenInNewTab: (b) => ro?.(b),
4876
+ previewExtensions: io,
4877
+ isRenameFileAvailable: lo,
4878
+ isDuplicateFolderAvailable: co,
4780
4879
  forbiddenSymbolsRegExp: Be,
4781
- onGridCreateSiblingFolder: uo,
4782
- onGridCreateChildFolder: ho
4783
- }), $t = d(
4880
+ onGridCreateSiblingFolder: ho,
4881
+ onGridCreateChildFolder: po
4882
+ }), Gt = d(
4784
4883
  (b) => {
4785
- const ee = Ke(r, b.path);
4884
+ const ee = Ye(r, b.path);
4786
4885
  return ee ? Ln(ee) : [];
4787
4886
  },
4788
4887
  [r, Ln]
4789
- ), bo = d(
4888
+ ), xo = d(
4790
4889
  (b, ee, le) => xt ? !1 : Dt(b, ee, le),
4791
4890
  [xt, Dt]
4792
- ), { actionsColumnDef: xo } = Js({
4793
- getContextMenuItems: $t,
4794
- isRowDisabled: bo,
4891
+ ), { actionsColumnDef: Do } = tr({
4892
+ getContextMenuItems: Gt,
4893
+ isRowDisabled: xo,
4795
4894
  allowedFileTypes: x,
4796
- buttonClassName: Le ? "" : $s
4797
- }), { columnDefs: Gt } = li({
4798
- userColumnDefs: fo,
4799
- filterable: mo,
4800
- dateLocale: Co,
4801
- dateOptions: go,
4802
- effectiveVisibleColumns: yo,
4895
+ buttonClassName: Le ? "" : js
4896
+ }), { columnDefs: $t } = di({
4897
+ userColumnDefs: mo,
4898
+ filterable: Co,
4899
+ dateLocale: go,
4900
+ dateOptions: vo,
4901
+ effectiveVisibleColumns: wo,
4803
4902
  isCompactView: Le,
4804
4903
  hasActions: !!p?.actionLabels,
4805
- actionsColumnDef: xo,
4904
+ actionsColumnDef: Do,
4806
4905
  rootItemLabel: o?.label,
4807
4906
  rootItemPath: o?.path
4808
4907
  }), zn = d(
@@ -4814,7 +4913,7 @@ const ci = () => {
4814
4913
  [X, oe, zt]
4815
4914
  ), dt = d(
4816
4915
  () => /* @__PURE__ */ a(
4817
- ya,
4916
+ wa,
4818
4917
  {
4819
4918
  title: yn,
4820
4919
  description: wn,
@@ -4822,7 +4921,7 @@ const ci = () => {
4822
4921
  className: "gap-3 size-full bg-layer-sunken border rounded border-primary",
4823
4922
  titleClassName: "mt-2 !text-lg",
4824
4923
  icon: lt || /* @__PURE__ */ a(
4825
- ds,
4924
+ us,
4826
4925
  {
4827
4926
  size: 100,
4828
4927
  stroke: 0.5,
@@ -4832,22 +4931,22 @@ const ci = () => {
4832
4931
  }
4833
4932
  ),
4834
4933
  [wn, lt, yn]
4835
- ), _n = G(() => (b) => b.path, []), Wn = G(
4934
+ ), _n = $(() => (b) => b.path, []), Wn = $(
4836
4935
  () => an(
4837
4936
  "min-h-[248px] overflow-auto md:min-h-[266px]",
4838
4937
  rt ? "border border-dashed border-info" : "",
4839
4938
  mt && !rt ? "border border-dashed border-primary" : ""
4840
4939
  ),
4841
4940
  [rt, mt]
4842
- ), Hn = G(
4941
+ ), Hn = $(
4843
4942
  () => ({
4844
4943
  ...ot.additionalGridOptions,
4845
4944
  onCellClicked: zn,
4846
- headerHeight: sa,
4847
- rowHeight: sa,
4945
+ headerHeight: ia,
4946
+ rowHeight: ia,
4848
4947
  rowClass: "group/grid-row",
4849
4948
  defaultColDef: {
4850
- comparator: hr,
4949
+ comparator: fr,
4851
4950
  ...ot.additionalGridOptions?.defaultColDef,
4852
4951
  floatingFilter: i?.searchable ? !1 : ot.additionalGridOptions?.defaultColDef?.floatingFilter
4853
4952
  },
@@ -4857,12 +4956,12 @@ const ci = () => {
4857
4956
  getDisplayName: cn,
4858
4957
  onRenameCancel: ae,
4859
4958
  onRenameSave: Pe,
4860
- onRenameValidate: $e,
4959
+ onRenameValidate: Ge,
4861
4960
  renameTriggerView: nt,
4862
4961
  validateFolderName: mn,
4863
4962
  renamedItem: me,
4864
4963
  renamedPath: X,
4865
- createdFolderPath: Ge,
4964
+ createdFolderPath: $e,
4866
4965
  newFolderTempId: fn,
4867
4966
  sharedByMePaths: D,
4868
4967
  selectedPaths: L,
@@ -4883,12 +4982,12 @@ const ci = () => {
4883
4982
  cn,
4884
4983
  ae,
4885
4984
  Pe,
4886
- $e,
4985
+ Ge,
4887
4986
  nt,
4888
4987
  mn,
4889
4988
  me,
4890
4989
  X,
4891
- Ge,
4990
+ $e,
4892
4991
  fn,
4893
4992
  D,
4894
4993
  L,
@@ -4899,15 +4998,15 @@ const ci = () => {
4899
4998
  se,
4900
4999
  n
4901
5000
  ]
4902
- ), Do = G(
5001
+ ), To = $(
4903
5002
  () => S.length === 0 && !tt && !n ? dt() : /* @__PURE__ */ a(
4904
- ma,
5003
+ ga,
4905
5004
  {
4906
- columnDefs: Gt,
5005
+ columnDefs: $t,
4907
5006
  rowData: S,
4908
5007
  getRowId: _n,
4909
5008
  loading: n || vn,
4910
- getContextMenuItems: $t,
5009
+ getContextMenuItems: Gt,
4911
5010
  withoutHeaderBorders: Le,
4912
5011
  onGridApiChange: Z,
4913
5012
  className: Wn,
@@ -4915,7 +5014,7 @@ const ci = () => {
4915
5014
  selectionMode: An,
4916
5015
  wrapCustomCellRenderers: Pn,
4917
5016
  additionalGridOptions: Hn,
4918
- selectedRowIds: kn,
5017
+ selectedRowIds: On,
4919
5018
  onSelectionChange: Ut,
4920
5019
  wrapperBorder: !rt && !mt,
4921
5020
  disabledRowIds: ct,
@@ -4927,10 +5026,10 @@ const ci = () => {
4927
5026
  tt,
4928
5027
  n,
4929
5028
  dt,
4930
- Gt,
5029
+ $t,
4931
5030
  _n,
4932
5031
  vn,
4933
- $t,
5032
+ Gt,
4934
5033
  Le,
4935
5034
  Z,
4936
5035
  Wn,
@@ -4938,7 +5037,7 @@ const ci = () => {
4938
5037
  An,
4939
5038
  Pn,
4940
5039
  Hn,
4941
- kn,
5040
+ On,
4942
5041
  Ut,
4943
5042
  rt,
4944
5043
  mt,
@@ -4946,11 +5045,11 @@ const ci = () => {
4946
5045
  xt
4947
5046
  ]
4948
5047
  );
4949
- return /* @__PURE__ */ a("section", { ref: vo, className: "size-full", children: /* @__PURE__ */ q(
5048
+ return /* @__PURE__ */ a("section", { ref: yo, className: "size-full", children: /* @__PURE__ */ K(
4950
5049
  "div",
4951
5050
  {
4952
5051
  className: Ee(
4953
- Ws,
5052
+ Bs,
4954
5053
  {
4955
5054
  "gap-3 pt-4": c && L.size > 0,
4956
5055
  "gap-4 p-3 pt-4": Le,
@@ -4959,22 +5058,22 @@ const ci = () => {
4959
5058
  t
4960
5059
  ),
4961
5060
  children: [
4962
- wo(),
4963
- /* @__PURE__ */ q("div", { className: Ee(Hs, Lt), children: [
4964
- No(),
4965
- /* @__PURE__ */ q(
5061
+ No(),
5062
+ /* @__PURE__ */ K("div", { className: Ee(Us, Lt), children: [
5063
+ bo(),
5064
+ /* @__PURE__ */ K(
4966
5065
  "div",
4967
5066
  {
4968
- className: Ee(Bs, {
5067
+ className: Ee(Vs, {
4969
5068
  "gap-3": Le
4970
5069
  }),
4971
5070
  children: [
4972
5071
  l && /* @__PURE__ */ a(
4973
- jr,
5072
+ Xr,
4974
5073
  {
4975
5074
  ...i ?? {},
4976
5075
  makeHref: (b) => b.join("/"),
4977
- path: F,
5076
+ path: I,
4978
5077
  onItemClick: j,
4979
5078
  rootItemPath: o?.path,
4980
5079
  rootItemLabel: o?.label,
@@ -4984,24 +5083,24 @@ const ci = () => {
4984
5083
  labelClassName: "dial-tiny-text"
4985
5084
  }
4986
5085
  ),
4987
- /* @__PURE__ */ q(
5086
+ /* @__PURE__ */ K(
4988
5087
  "section",
4989
5088
  {
4990
5089
  role: "region",
4991
5090
  "aria-label": "File Manager Grid View",
4992
- className: Ee(Vs, "relative"),
4993
- onDragEnter: Xn,
5091
+ className: Ee($s, "relative"),
5092
+ onDragEnter: Kn,
4994
5093
  onDragLeave: qn,
4995
5094
  onDragOver: Yn,
4996
5095
  onDrop: Ct,
4997
5096
  children: [
4998
- Do,
5097
+ To,
4999
5098
  /* @__PURE__ */ a(
5000
- Lr,
5099
+ _r,
5001
5100
  {
5002
5101
  disabledGridRowIds: ct,
5003
5102
  gridRows: S,
5004
- getDisabledTooltip: Ot,
5103
+ getDisabledTooltip: kt,
5005
5104
  getRowDisabledTooltip: Ht,
5006
5105
  allowedFileTypes: x,
5007
5106
  maxSelectableFileSize: h
@@ -5015,17 +5114,17 @@ const ci = () => {
5015
5114
  )
5016
5115
  ] }),
5017
5116
  /* @__PURE__ */ a(
5018
- Ur,
5117
+ Gr,
5019
5118
  {
5020
5119
  ...v,
5021
- open: $,
5120
+ open: G,
5022
5121
  itemsToDelete: J,
5023
5122
  onClose: T,
5024
5123
  onConfirm: B
5025
5124
  }
5026
5125
  ),
5027
5126
  /* @__PURE__ */ a(
5028
- zr,
5127
+ Wr,
5029
5128
  {
5030
5129
  ...u,
5031
5130
  open: xe,
@@ -5038,32 +5137,32 @@ const ci = () => {
5038
5137
  items: r,
5039
5138
  rootItem: o,
5040
5139
  gridOptions: {
5041
- columnDefs: Gt.filter(
5140
+ columnDefs: $t.filter(
5042
5141
  (b) => b.colId !== ye.Actions
5043
5142
  ),
5044
5143
  loading: n
5045
5144
  },
5046
5145
  onUploadFiles: dn,
5047
5146
  onValidateUpload: At,
5048
- maxFileSize: Kn,
5049
- path: u?.destinationFolderPath ?? u?.sourceFolder ?? F,
5147
+ maxFileSize: Qn,
5148
+ path: u?.destinationFolderPath ?? u?.sourceFolder ?? I,
5050
5149
  onPathChange: (b) => {
5051
5150
  u?.setDestinationFolderPath?.(b);
5052
5151
  },
5053
- sourceFolder: u?.sourceFolder ?? F,
5152
+ sourceFolder: u?.sourceFolder ?? I,
5054
5153
  treeOptions: {
5055
5154
  header: s?.header,
5056
5155
  loadedPaths: s?.loadedPaths,
5057
5156
  loadingPaths: s?.loadingPaths
5058
5157
  },
5059
- onFolderPopupPathChange: oo,
5158
+ onFolderPopupPathChange: ao,
5060
5159
  showHiddenFileSwitcher: ce,
5061
5160
  showCreateFolderButton: bn,
5062
5161
  hideSearchPathItemName: _t
5063
5162
  }
5064
5163
  ),
5065
5164
  /* @__PURE__ */ a(
5066
- ra,
5165
+ la,
5067
5166
  {
5068
5167
  ...y,
5069
5168
  open: Pt,
@@ -5075,30 +5174,30 @@ const ci = () => {
5075
5174
  }
5076
5175
  ),
5077
5176
  /* @__PURE__ */ a(
5078
- ra,
5177
+ la,
5079
5178
  {
5080
5179
  ...y,
5081
5180
  open: Je,
5082
- onClose: eo,
5083
- onReplace: Qn,
5084
- onDuplicate: Jn,
5085
- onDecideForEach: to,
5181
+ onClose: to,
5182
+ onReplace: Jn,
5183
+ onDuplicate: eo,
5184
+ onDecideForEach: no,
5086
5185
  conflictingFiles: gn
5087
5186
  }
5088
5187
  ),
5089
5188
  /* @__PURE__ */ a(
5090
- Yr,
5189
+ Qr,
5091
5190
  {
5092
- open: qe,
5093
- onClose: kt,
5094
- fileMetadata: Ie?.fileMetadata ?? Mt,
5095
- loading: Ie?.loading,
5096
- header: Ie?.header,
5097
- nameLabel: Ie?.nameLabel,
5098
- pathLabel: Ie?.pathLabel,
5099
- modifiedDateLabel: Ie?.modifiedDateLabel,
5100
- sizeLabel: Ie?.sizeLabel,
5101
- authorLabel: Ie?.authorLabel,
5191
+ open: Ke,
5192
+ onClose: Ot,
5193
+ fileMetadata: Fe?.fileMetadata ?? Mt,
5194
+ loading: Fe?.loading,
5195
+ header: Fe?.header,
5196
+ nameLabel: Fe?.nameLabel,
5197
+ pathLabel: Fe?.pathLabel,
5198
+ modifiedDateLabel: Fe?.modifiedDateLabel,
5199
+ sizeLabel: Fe?.sizeLabel,
5200
+ authorLabel: Fe?.authorLabel,
5102
5201
  dateLocale: p?.dateLocale,
5103
5202
  dateOptions: p?.dateOptions
5104
5203
  }
@@ -5106,12 +5205,12 @@ const ci = () => {
5106
5205
  ]
5107
5206
  }
5108
5207
  ) });
5109
- }, Ni = (e, t = nn.MyFiles) => {
5208
+ }, xi = (e, t = nn.MyFiles) => {
5110
5209
  const r = Object.values(nn).includes(
5111
5210
  t
5112
5211
  ) ? t : nn.MyFiles, [o, n] = z(r), s = (i) => {
5113
5212
  n(i);
5114
- }, l = G(() => {
5213
+ }, l = $(() => {
5115
5214
  if (e)
5116
5215
  return Object.values(nn).map((i) => ({
5117
5216
  id: i,
@@ -5126,25 +5225,27 @@ const ci = () => {
5126
5225
  };
5127
5226
  export {
5128
5227
  ge as DestinationFolderMode,
5129
- zr as DialDestinationFolderPopup,
5130
- hi as DialFileManager,
5228
+ Wr as DialDestinationFolderPopup,
5229
+ fi as DialFileManager,
5131
5230
  N as DialFileManagerActions,
5132
5231
  Ce as DialFileManagerConflictActions,
5133
5232
  ze as DialFileManagerConflictStrategies,
5134
5233
  nn as DialFileManagerTabs,
5135
- O as DialFileNodeType,
5234
+ k as DialFileNodeType,
5136
5235
  St as DialFilePermission,
5137
- Qs as DialFileResourceType,
5138
- ti as DialFoldersTree,
5236
+ er as DialFileResourceType,
5237
+ oi as DialFoldersTree,
5238
+ A as FILE_MANAGER_ICON_PROPS,
5239
+ Zn as FILE_MANAGER_ICON_STROKE,
5139
5240
  ye as FileManagerColumnKey,
5140
5241
  ut as FileManagerCreateFolderTriggerView,
5141
5242
  We as FileManagerCreateFolderType,
5142
- Or as FileManagerProvider,
5143
- Ft as FileManagerRenameTriggerView,
5144
- nr as GridSelectionMode,
5145
- ai as NAME_COLUMN,
5146
- ri as SIZE_COLUMN,
5147
- si as UPDATED_AT_COLUMN,
5148
- Ni as useDialFileManagerTabs,
5149
- ci as useFileManagerContext
5243
+ zr as FileManagerProvider,
5244
+ It as FileManagerRenameTriggerView,
5245
+ ar as GridSelectionMode,
5246
+ ri as NAME_COLUMN,
5247
+ li as SIZE_COLUMN,
5248
+ ii as UPDATED_AT_COLUMN,
5249
+ xi as useDialFileManagerTabs,
5250
+ ui as useFileManagerContext
5150
5251
  };