@epam/ai-dial-react-file-manager 0.1.0-dev.15 → 0.1.0-dev.17

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,22 @@
1
- import { jsx as o, jsxs as Z, Fragment as Te } from "react/jsx-runtime";
2
- import { IconCircleFilled as Hn, IconChevronDown as er, IconDotsVertical as sn, IconFolder as ha, IconPlus as tr, IconFile as nr, IconFileZip as or, IconCopyMinus as ar, IconFolderPlus as Ko, IconEye as Fo, IconX as rr, IconArrowLeft as sr, IconEyeOff as ir, IconAlertCircleFilled as lr, IconAlertTriangleFilled as cr, IconCaretRightFilled as dr, IconUserX as Eo, IconCopy as So, IconTrashX as Ao, IconDownload as Po, IconExternalLink as Ro, IconPencilMinus as pa, IconInfoCircle as ur, IconFileDescription as hr } from "@tabler/icons-react";
1
+ import { jsx as o, jsxs as X, Fragment as Ie } from "react/jsx-runtime";
2
+ import { IconCircleFilled as Hn, IconChevronDown as er, IconDotsVertical as sn, IconFolder as fa, IconPlus as tr, IconFile as nr, IconFileZip as or, IconCopyMinus as ar, IconFolderPlus as Jo, IconEye as Eo, IconX as rr, IconArrowLeft as sr, IconEyeOff as ir, IconAlertCircleFilled as lr, IconAlertTriangleFilled as cr, IconCaretRightFilled as dr, IconUserX as So, IconCopy as Ao, IconTrashX as Po, IconDownload as Mo, IconExternalLink as Io, IconPencilMinus as ma, IconInfoCircle as ur, IconFileDescription as hr } from "@tabler/icons-react";
3
3
  import on from "classnames";
4
4
  import * as Ge from "react";
5
5
  import { useState as z, useMemo as $, useCallback as d, useRef as ce, useEffect as pe, createContext as pr, useLayoutEffect as fr, useContext as mr, useImperativeHandle as Cr } from "react";
6
- import { DialFolderName as Mo, DialFileName as Oo, DialDropdown as ht, DropdownTrigger as fa, DIAL_ICON_SIZE as ko, DialGrid as ma, DialPopup as Lo, PopupSize as Un, DialRadioGroup as Qo, RadioGroupOrientation as Jo, DialNeutralButton as an, DialPrimaryButton as nn, DialIcon as zo, BASE_ICON_PROPS as M, mergeClasses as Fe, NotificationVariant as Io, DialIconButton as gr, ElementSize as Ca, NOT_ALLOWED_SYMBOLS_REGEXP as vr, DialTooltipContainer as yr, DialTooltipTrigger as wr, DialTooltipContent as Dr, DialNotification as Nr, DialButton as ga, ButtonAppearance as va, DialSwitch as ya, DialTooltip as Gn, FlexibleActionsDirection as en, BASE_ICON_SIZE as wa, DialConfirmationPopup as xr, ConfirmationPopupVariant as br, DialBreadcrumb as Tr, DialSearch as Rr, ButtonVariant as Ir, DialTabs as Fr, ScreenResolution as Er, DialGhostIconButton as Sr, DialButtonDropdown as ea, DialSkeleton as Xt, DialSkeletonVariant as qt, DialEllipsisTooltip as Tt, DialItemType as We, DialFileIcon as Ar, DialSharedEntityIndicator as ta, DialLoader as Pr, editableContainerProps as Mr, DialInput as Or, useEditableItem as kr, DialNoDataContent as Da, DialDateCellRenderer as Na, convertGridDateToDate as Lr, DEFAULT_GRID_DATE_LOCALE as zr, DEFAULT_GRID_DATE_FORMAT_OPTIONS as _r, DropdownItemType as xa, DialConditionalResizableContainer as Br, DialCollapsibleSidebar as Wr } from "@epam/ai-dial-ui-kit";
7
- import { extensions as na } from "mime-types";
8
- import { createPortal as Hr } from "react-dom";
9
- const ba = (e) => /* @__PURE__ */ Ge.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ge.createElement("path", { 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" })), Ta = (e) => /* @__PURE__ */ Ge.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ge.createElement("path", { d: "M9.00049 7.7998C9.3108 7.80007 9.56279 8.05198 9.56299 8.3623V11.7373H12.938C13.2483 11.7376 13.5003 11.9895 13.5005 12.2998C13.5005 12.6103 13.2484 12.862 12.938 12.8623H9.56299V16.2373C9.56299 16.5478 9.31092 16.7995 9.00049 16.7998C8.68983 16.7998 8.43799 16.548 8.43799 16.2373V12.8623H5.06299C4.75233 12.8623 4.50049 12.6105 4.50049 12.2998C4.50069 11.9893 4.75245 11.7373 5.06299 11.7373H8.43799V8.3623C8.43819 8.05181 8.68995 7.7998 9.00049 7.7998ZM15.1812 1.2002C15.5541 1.2002 15.9116 1.34858 16.1753 1.6123C16.439 1.87603 16.5874 2.23348 16.5874 2.60645V5.48145C16.5874 5.85441 16.439 6.21186 16.1753 6.47559C15.9116 6.73931 15.5541 6.8877 15.1812 6.8877H2.80615C2.43319 6.8877 2.07573 6.73931 1.81201 6.47559C1.54829 6.21186 1.3999 5.85441 1.3999 5.48145V2.60645C1.3999 2.23348 1.54829 1.87603 1.81201 1.6123C2.07573 1.34858 2.43319 1.2002 2.80615 1.2002H15.1812ZM3.0874 2.8877V5.2002H14.8999V2.8877H3.0874Z", fill: "currentColor" })), _o = (e) => /* @__PURE__ */ Ge.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ge.createElement("path", { d: "M3.009 12.5527C2.77901 12.4216 2.5877 12.2321 2.45443 12.0034C2.32116 11.7746 2.25064 11.5147 2.25 11.25V3.75C2.25 2.925 2.925 2.25 3.75 2.25H11.25C11.8125 2.25 12.1185 2.53875 12.375 3M10.5 15.75H7.25025C6.98757 15.75 6.72747 15.6983 6.48479 15.5977C6.24211 15.4972 6.0216 15.3499 5.83586 15.1641C5.65012 14.9784 5.50278 14.7579 5.40226 14.5152C5.30174 14.2725 5.25 14.0124 5.25 13.7498V7.25025C5.25 6.71975 5.46074 6.21098 5.83586 5.83586C6.21098 5.46074 6.71975 5.25 7.25025 5.25H13.7498C14.0124 5.25 14.2725 5.30174 14.5152 5.40226C14.7579 5.50278 14.9784 5.65012 15.1641 5.83586C15.3499 6.0216 15.4972 6.24211 15.5977 6.48479C15.6983 6.72747 15.75 6.98757 15.75 7.25025V10.5M12.75 16.5L16.5 12.75M16.5 12.75V16.125M16.5 12.75H13.125", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), Bo = (e) => /* @__PURE__ */ Ge.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ge.createElement("path", { d: "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" })), Wo = (e) => /* @__PURE__ */ Ge.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ge.createElement("path", { d: "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 tn = /* @__PURE__ */ ((e) => (e.MyFiles = "my_files", e.Shared = "shared", e.Organization = "organization", e.Review = "review", e))(tn || {}), w = /* @__PURE__ */ ((e) => (e.AddSibling = "addSibling", e.AddChild = "addChild", e.Duplicate = "duplicate", e.Copy = "copy", e.Move = "move", e.Download = "download", e.Delete = "delete", e.Rename = "rename", e.Info = "info", e.Unshare = "unshare", e.RemoveAccess = "removeAccess", e.ManagePermissions = "managePermissions", e.Preview = "preview", e.OpenInNewTab = "openInNewTab", e))(w || {}), Ce = /* @__PURE__ */ ((e) => (e.Replace = "replace", e.Duplicate = "duplicate", e.Cancel = "cancel", e))(Ce || {}), Oe = /* @__PURE__ */ ((e) => (e.ReplaceAll = "replaceAll", e.DuplicateAll = "duplicateAll", e.DecideForEach = "decideForEach", e))(Oe || {}), ge = /* @__PURE__ */ ((e) => (e.Copy = "copy", e.Move = "move", e))(ge || {}), Rt = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(Rt || {}), ut = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(ut || {}), Be = /* @__PURE__ */ ((e) => (e.Folder = "folder", e.Child = "child", e.Sibling = "sibling", e))(Be || {}), ye = /* @__PURE__ */ ((e) => (e.Name = "name", e.UpdatedAt = "updatedAt", e.Size = "size", e.Author = "author", e.Owner = "owner", e.Path = "path", e.Actions = "__actions", e.Version = "version", e))(ye || {});
11
- const Ur = "w-full h-full grid grid-rows-[auto_1fr] gap-5 p-6 overflow-hidden min-w-0 bg-layer-1", oa = "w-full text-secondary flex items-center gap-2", Gr = "flex min-h-0 min-w-0 h-full gap-4 overflow-hidden", Vr = "flex flex-col flex-1 min-h-0 min-w-0 h-full gap-4", $r = "h-full rounded bg-layer-3 text-secondary min-w-0", jr = "flex-1 w-full rounded text-secondary overflow-auto min-h-0 min-w-0", Zr = "opacity-0 pointer-events-none group-hover/grid-row:opacity-100 group-hover/grid-row:pointer-events-auto", Xr = 280, qr = "Files", rt = 20, Yr = "Files", bo = ".dial_folder", aa = "New folder", Kr = 280, Qr = 460, ra = 44, Jr = 800, es = [
6
+ import { DialFolderName as ko, DialFileName as Oo, DialDropdown as ht, DropdownTrigger as Ca, DIAL_ICON_SIZE as Lo, DialGrid as ga, DialPopup as zo, PopupSize as Un, DialRadioGroup as ea, RadioGroupOrientation as ta, NeutralButton as an, PrimaryButton as nn, DialIcon as _o, BASE_ICON_PROPS as M, mergeClasses as Ee, NotificationVariant as Fo, GhostIconButton as $n, ElementSize as Bo, NOT_ALLOWED_SYMBOLS_REGEXP as gr, DialTooltipContainer as vr, DialTooltipTrigger as yr, DialTooltipContent as wr, Notification as xr, ButtonAppearance as va, DialSwitch as ya, DialTooltip as Gn, FlexibleActionsDirection as en, BASE_ICON_SIZE as wa, DialConfirmationPopup as Dr, ConfirmationPopupVariant as Nr, DialBreadcrumb as br, DialSearch as Tr, ButtonVariant as Rr, DialTabs as Ir, ScreenResolution as Fr, ButtonDropdown as na, DialSkeleton as Xt, DialSkeletonVariant as qt, DialEllipsisTooltip as Tt, DialItemType as We, DialFileIcon as Er, DialSharedEntityIndicator as oa, DialLoader as Sr, editableContainerProps as Ar, DialInput as Pr, useEditableItem as Mr, DialNoDataContent as xa, DialDateCellRenderer as Da, convertGridDateToDate as kr, DEFAULT_GRID_DATE_LOCALE as Or, DEFAULT_GRID_DATE_FORMAT_OPTIONS as Lr, DropdownItemType as Na, DialConditionalResizableContainer as zr, DialCollapsibleSidebar as _r } from "@epam/ai-dial-ui-kit";
7
+ import { extensions as aa } from "mime-types";
8
+ import { createPortal as Br } from "react-dom";
9
+ const ba = (e) => /* @__PURE__ */ Ge.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ge.createElement("path", { 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" })), Ta = (e) => /* @__PURE__ */ Ge.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ge.createElement("path", { d: "M9.00049 7.7998C9.3108 7.80007 9.56279 8.05198 9.56299 8.3623V11.7373H12.938C13.2483 11.7376 13.5003 11.9895 13.5005 12.2998C13.5005 12.6103 13.2484 12.862 12.938 12.8623H9.56299V16.2373C9.56299 16.5478 9.31092 16.7995 9.00049 16.7998C8.68983 16.7998 8.43799 16.548 8.43799 16.2373V12.8623H5.06299C4.75233 12.8623 4.50049 12.6105 4.50049 12.2998C4.50069 11.9893 4.75245 11.7373 5.06299 11.7373H8.43799V8.3623C8.43819 8.05181 8.68995 7.7998 9.00049 7.7998ZM15.1812 1.2002C15.5541 1.2002 15.9116 1.34858 16.1753 1.6123C16.439 1.87603 16.5874 2.23348 16.5874 2.60645V5.48145C16.5874 5.85441 16.439 6.21186 16.1753 6.47559C15.9116 6.73931 15.5541 6.8877 15.1812 6.8877H2.80615C2.43319 6.8877 2.07573 6.73931 1.81201 6.47559C1.54829 6.21186 1.3999 5.85441 1.3999 5.48145V2.60645C1.3999 2.23348 1.54829 1.87603 1.81201 1.6123C2.07573 1.34858 2.43319 1.2002 2.80615 1.2002H15.1812ZM3.0874 2.8877V5.2002H14.8999V2.8877H3.0874Z", fill: "currentColor" })), Wo = (e) => /* @__PURE__ */ Ge.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ge.createElement("path", { d: "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__ */ Ge.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ge.createElement("path", { d: "M9.75 14.25H3.75C3.35218 14.25 2.97064 14.092 2.68934 13.8107C2.40804 13.5294 2.25 13.1478 2.25 12.75V4.5C2.25 4.10218 2.40804 3.72064 2.68934 3.43934C2.97064 3.15804 3.35218 3 3.75 3H6.75L9 5.25H14.25C14.6478 5.25 15.0294 5.40804 15.3107 5.68934C15.592 5.97064 15.75 6.35218 15.75 6.75V9.75M12 16.5L15.75 12.75M15.75 12.75V16.125M15.75 12.75H12.375", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), Uo = (e) => /* @__PURE__ */ Ge.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ge.createElement("path", { d: "M4.5 15.75V14.25C4.5 13.4544 4.81607 12.6913 5.37868 12.1287C5.94129 11.5661 6.70435 11.25 7.5 11.25H9.75M15.75 12.75L12 16.5M12 16.5V13.125M12 16.5H15.375M6 5.25C6 6.04565 6.31607 6.80871 6.87868 7.37132C7.44129 7.93393 8.20435 8.25 9 8.25C9.79565 8.25 10.5587 7.93393 11.1213 7.37132C11.6839 6.80871 12 6.04565 12 5.25C12 4.45435 11.6839 3.69129 11.1213 3.12868C10.5587 2.56607 9.79565 2.25 9 2.25C8.20435 2.25 7.44129 2.56607 6.87868 3.12868C6.31607 3.69129 6 4.45435 6 5.25Z", stroke: "#7F8792", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
10
+ var tn = /* @__PURE__ */ ((e) => (e.MyFiles = "my_files", e.Shared = "shared", e.Organization = "organization", e.Review = "review", e))(tn || {}), w = /* @__PURE__ */ ((e) => (e.AddSibling = "addSibling", e.AddChild = "addChild", e.Duplicate = "duplicate", e.Copy = "copy", e.Move = "move", e.Download = "download", e.Delete = "delete", e.Rename = "rename", e.Info = "info", e.Unshare = "unshare", e.RemoveAccess = "removeAccess", e.ManagePermissions = "managePermissions", e.Preview = "preview", e.OpenInNewTab = "openInNewTab", e))(w || {}), Ce = /* @__PURE__ */ ((e) => (e.Replace = "replace", e.Duplicate = "duplicate", e.Cancel = "cancel", e))(Ce || {}), ke = /* @__PURE__ */ ((e) => (e.ReplaceAll = "replaceAll", e.DuplicateAll = "duplicateAll", e.DecideForEach = "decideForEach", e))(ke || {}), ge = /* @__PURE__ */ ((e) => (e.Copy = "copy", e.Move = "move", e))(ge || {}), Rt = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(Rt || {}), ut = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(ut || {}), Be = /* @__PURE__ */ ((e) => (e.Folder = "folder", e.Child = "child", e.Sibling = "sibling", e))(Be || {}), ye = /* @__PURE__ */ ((e) => (e.Name = "name", e.UpdatedAt = "updatedAt", e.Size = "size", e.Author = "author", e.Owner = "owner", e.Path = "path", e.Actions = "__actions", e.Version = "version", e))(ye || {});
11
+ const Wr = "w-full h-full grid grid-rows-[auto_1fr] gap-5 p-6 overflow-hidden min-w-0 bg-layer-1", ra = "w-full text-secondary flex items-center gap-2", Hr = "flex min-h-0 min-w-0 h-full gap-4 overflow-hidden", Ur = "flex flex-col flex-1 min-h-0 min-w-0 h-full gap-4", Gr = "h-full rounded bg-layer-raised text-secondary min-w-0", Vr = "flex-1 w-full rounded text-secondary overflow-auto min-h-0 min-w-0", $r = "opacity-0 pointer-events-none group-hover/grid-row:opacity-100 group-hover/grid-row:pointer-events-auto", jr = 280, Zr = "Files", rt = 20, Xr = "Files", To = ".dial_folder", sa = "New folder", qr = 280, Yr = 460, ia = 44, Kr = 800, Qr = [
12
12
  ye.Name,
13
13
  ye.UpdatedAt,
14
14
  ye.Size,
15
15
  ye.Author,
16
16
  ye.Actions
17
17
  ];
18
- var k = /* @__PURE__ */ ((e) => (e.ITEM = "item", e.FOLDER = "folder", e))(k || {}), ts = /* @__PURE__ */ ((e) => (e.FILE = "FILE", e.PROMPT = "PROMPT", e.CONVERSATION = "CONVERSATION", e.APPLICATION = "APPLICATION", e.TOOLSET = "TOOL_SET", e))(ts || {}), Et = /* @__PURE__ */ ((e) => (e.READ = "READ", e.WRITE = "WRITE", e.SHARE = "SHARE", e))(Et || {});
19
- const sa = ({
18
+ var O = /* @__PURE__ */ ((e) => (e.ITEM = "item", e.FOLDER = "folder", e))(O || {}), Jr = /* @__PURE__ */ ((e) => (e.FILE = "FILE", e.PROMPT = "PROMPT", e.CONVERSATION = "CONVERSATION", e.APPLICATION = "APPLICATION", e.TOOLSET = "TOOL_SET", e))(Jr || {}), Et = /* @__PURE__ */ ((e) => (e.READ = "READ", e.WRITE = "WRITE", e.SHARE = "SHARE", e))(Et || {});
19
+ const la = ({
20
20
  open: e,
21
21
  onClose: t,
22
22
  onReplace: s,
@@ -33,10 +33,10 @@ const sa = ({
33
33
  nameColumnLabel: y = "Name",
34
34
  actionColumnLabel: g = "Action"
35
35
  }) => {
36
- const m = r.length === 1, b = m ? r[0]?.name : "", N = C?.[Ce.Replace] ?? "Replace", h = C?.[Ce.Duplicate] ?? "Duplicate", f = C?.[Ce.Cancel] ?? "Cancel", T = c?.[Oe.ReplaceAll] ?? "Replace all", x = c?.[Oe.DuplicateAll] ?? "Duplicate all", F = c?.[Oe.DecideForEach] ?? "Decide for each", [I, S] = z(
36
+ const m = r.length === 1, b = m ? r[0]?.name : "", D = C?.[Ce.Replace] ?? "Replace", h = C?.[Ce.Duplicate] ?? "Duplicate", f = C?.[Ce.Cancel] ?? "Cancel", T = c?.[ke.ReplaceAll] ?? "Replace all", N = c?.[ke.DuplicateAll] ?? "Duplicate all", F = c?.[ke.DecideForEach] ?? "Decide for each", [I, S] = z(
37
37
  Ce.Replace
38
38
  ), [A, _] = z(
39
- Oe.ReplaceAll
39
+ ke.ReplaceAll
40
40
  ), [U, P] = z(
41
41
  new Map(
42
42
  r.map((W) => [
@@ -44,11 +44,11 @@ const sa = ({
44
44
  Ce.Replace
45
45
  ])
46
46
  )
47
- ), [O, B] = z(
47
+ ), [k, B] = z(
48
48
  void 0
49
- ), L = m ? l : i, Y = /* @__PURE__ */ Z(Te, { children: [
49
+ ), L = m ? l : i, Y = /* @__PURE__ */ X(Ie, { children: [
50
50
  "Item with the name ",
51
- /* @__PURE__ */ Z("span", { className: "text-primary", children: [
51
+ /* @__PURE__ */ X("span", { className: "text-primary", children: [
52
52
  '"',
53
53
  b,
54
54
  '"'
@@ -59,19 +59,19 @@ const sa = ({
59
59
  () => [
60
60
  {
61
61
  id: Ce.Replace,
62
- name: N
62
+ name: D
63
63
  },
64
64
  {
65
65
  id: Ce.Duplicate,
66
66
  name: h
67
67
  }
68
68
  ],
69
- [N, h]
69
+ [D, h]
70
70
  ), fe = $(() => r.map((W) => ({
71
71
  id: W.path,
72
72
  name: W.name,
73
73
  path: W.path,
74
- nodeType: W.nodeType ?? k.ITEM,
74
+ nodeType: W.nodeType ?? O.ITEM,
75
75
  action: U.get(W.path) || Ce.Replace
76
76
  })), [r, U]), we = $(() => [
77
77
  {
@@ -82,8 +82,8 @@ const sa = ({
82
82
  floatingFilter: !1,
83
83
  filter: !1,
84
84
  resizable: !1,
85
- cellRenderer: (W) => W.data?.nodeType === k.FOLDER ? /* @__PURE__ */ o(
86
- Mo,
85
+ cellRenderer: (W) => W.data?.nodeType === O.FOLDER ? /* @__PURE__ */ o(
86
+ ko,
87
87
  {
88
88
  name: W.data.name,
89
89
  iconSize: rt
@@ -110,7 +110,7 @@ const sa = ({
110
110
  const be = [
111
111
  {
112
112
  key: Ce.Replace,
113
- label: N,
113
+ label: D,
114
114
  icon: /* @__PURE__ */ o(Hn, { size: 10, className: "text-accent-tertiary" })
115
115
  },
116
116
  {
@@ -123,13 +123,13 @@ const sa = ({
123
123
  label: f,
124
124
  icon: /* @__PURE__ */ o(Hn, { size: 10, className: "text-error" })
125
125
  }
126
- ], Ne = be.find(
126
+ ], De = be.find(
127
127
  (ne) => ne.key === W.data.action
128
- ), G = O === W.data.path;
128
+ ), G = k === W.data.path;
129
129
  return /* @__PURE__ */ o("div", { className: "flex items-center h-full", children: /* @__PURE__ */ o(
130
130
  ht,
131
131
  {
132
- trigger: [fa.Click],
132
+ trigger: [Ca.Click],
133
133
  open: G,
134
134
  items: be,
135
135
  onItemClick: ({ key: ne }) => {
@@ -147,15 +147,15 @@ const sa = ({
147
147
  onOpenChange: (ne) => {
148
148
  B(ne ? W.data.path : void 0);
149
149
  },
150
- children: /* @__PURE__ */ Z("button", { type: "button", className: "flex items-center gap-2", children: [
151
- /* @__PURE__ */ Z("span", { className: "flex items-center gap-2", children: [
152
- Ne?.icon,
153
- Ne?.label ?? N
150
+ children: /* @__PURE__ */ X("button", { type: "button", className: "flex items-center gap-2", children: [
151
+ /* @__PURE__ */ X("span", { className: "flex items-center gap-2", children: [
152
+ De?.icon,
153
+ De?.label ?? D
154
154
  ] }),
155
155
  /* @__PURE__ */ o(
156
156
  er,
157
157
  {
158
- size: ko.SM,
158
+ size: Lo.SM,
159
159
  className: on(
160
160
  "text-secondary transition-transform",
161
161
  G && "rotate-180"
@@ -170,25 +170,25 @@ const sa = ({
170
170
  ], [
171
171
  y,
172
172
  g,
173
- N,
173
+ D,
174
174
  h,
175
175
  f,
176
- O
177
- ]), xe = $(
176
+ k
177
+ ]), Ne = $(
178
178
  () => [
179
179
  {
180
- id: Oe.ReplaceAll,
180
+ id: ke.ReplaceAll,
181
181
  name: T
182
182
  },
183
183
  {
184
- id: Oe.DuplicateAll,
185
- name: x
184
+ id: ke.DuplicateAll,
185
+ name: N
186
186
  },
187
187
  {
188
- id: Oe.DecideForEach,
188
+ id: ke.DecideForEach,
189
189
  name: F,
190
- content: A === Oe.DecideForEach ? /* @__PURE__ */ o("div", { className: "mt-4", children: /* @__PURE__ */ o(
191
- ma,
190
+ content: A === ke.DecideForEach ? /* @__PURE__ */ o("div", { className: "mt-4", children: /* @__PURE__ */ o(
191
+ ga,
192
192
  {
193
193
  columnDefs: we,
194
194
  rowData: fe,
@@ -204,14 +204,14 @@ const sa = ({
204
204
  ],
205
205
  [
206
206
  T,
207
- x,
207
+ N,
208
208
  F,
209
209
  A,
210
210
  we,
211
211
  fe
212
212
  ]
213
213
  ), ue = d(() => {
214
- S(Ce.Replace), _(Oe.ReplaceAll), P(
214
+ S(Ce.Replace), _(ke.ReplaceAll), P(
215
215
  new Map(
216
216
  r.map((W) => [
217
217
  W.path,
@@ -219,16 +219,16 @@ const sa = ({
219
219
  ])
220
220
  )
221
221
  );
222
- }, [r]), Re = d(() => {
222
+ }, [r]), Te = d(() => {
223
223
  ue(), t();
224
- }, [ue, t]), De = d(() => {
224
+ }, [ue, t]), xe = d(() => {
225
225
  if (ue(), m)
226
226
  I === Ce.Replace ? s() : a();
227
- else if (A === Oe.ReplaceAll)
227
+ else if (A === ke.ReplaceAll)
228
228
  s();
229
- else if (A === Oe.DuplicateAll)
229
+ else if (A === ke.DuplicateAll)
230
230
  a();
231
- else if (A === Oe.DecideForEach && n) {
231
+ else if (A === ke.DecideForEach && n) {
232
232
  const W = r.map(
233
233
  (be) => ({
234
234
  file: be,
@@ -249,37 +249,37 @@ const sa = ({
249
249
  U
250
250
  ]);
251
251
  return /* @__PURE__ */ o(
252
- Lo,
252
+ zo,
253
253
  {
254
254
  open: e,
255
- onClose: Re,
255
+ onClose: Te,
256
256
  size: m ? Un.Sm : Un.Md,
257
257
  className: on([!m && "w-[600px]"]),
258
258
  header: L,
259
259
  dividers: !1,
260
260
  preventKeyboardOnOpen: !0,
261
- footer: /* @__PURE__ */ Z("div", { className: "flex justify-end gap-3 py-4 px-6 border-t border-tertiary", children: [
262
- /* @__PURE__ */ o(an, { onClick: Re, label: u }),
263
- /* @__PURE__ */ o(nn, { onClick: De, label: v })
261
+ footer: /* @__PURE__ */ X("div", { className: "flex justify-end gap-3 py-4 px-6 border-t border-tertiary", children: [
262
+ /* @__PURE__ */ o(an, { onClick: Te, label: u }),
263
+ /* @__PURE__ */ o(nn, { onClick: xe, label: v })
264
264
  ] }),
265
- children: /* @__PURE__ */ Z("div", { className: "px-6 py-4", children: [
265
+ children: /* @__PURE__ */ X("div", { className: "px-6 py-4", children: [
266
266
  /* @__PURE__ */ o("p", { className: "text-secondary mb-4 break-words", children: j }),
267
267
  m ? /* @__PURE__ */ o(
268
- Qo,
268
+ ea,
269
269
  {
270
270
  elementId: "single-file-conflict",
271
271
  radioButtons: te,
272
272
  activeRadioButton: I,
273
- orientation: Jo.Column,
273
+ orientation: ta.Column,
274
274
  onChange: (W) => S(W)
275
275
  }
276
276
  ) : /* @__PURE__ */ o(
277
- Qo,
277
+ ea,
278
278
  {
279
279
  elementId: "multiple-files-conflict",
280
- radioButtons: xe,
280
+ radioButtons: Ne,
281
281
  activeRadioButton: A,
282
- orientation: Jo.Column,
282
+ orientation: ta.Column,
283
283
  onChange: (W) => _(W),
284
284
  formItemChildrenClassName: "gap-3"
285
285
  }
@@ -287,7 +287,7 @@ const sa = ({
287
287
  ] })
288
288
  }
289
289
  );
290
- }, ns = ({
290
+ }, es = ({
291
291
  getContextMenuItems: e,
292
292
  isRowDisabled: t,
293
293
  allowedFileTypes: s,
@@ -312,11 +312,11 @@ const sa = ({
312
312
  placement: "bottom-start",
313
313
  allowedPlacements: ["top-start", "top-end", "bottom-start"],
314
314
  items: c,
315
- className: Fe("sticky right-0", n),
315
+ className: Ee("sticky right-0", n),
316
316
  children: /* @__PURE__ */ o(
317
- zo,
317
+ _o,
318
318
  {
319
- className: "text-secondary mx-2 flex flex-row gap-2 hover:text-accent-primary cursor-default",
319
+ className: "text-secondary mx-2 flex flex-row gap-2 hover:text-accent cursor-default",
320
320
  icon: /* @__PURE__ */ o(sn, { ...M })
321
321
  }
322
322
  )
@@ -341,7 +341,7 @@ const sa = ({
341
341
  }),
342
342
  [l]
343
343
  ) };
344
- }, os = ({
344
+ }, ts = ({
345
345
  onRename: e
346
346
  }) => {
347
347
  const [t, s] = z(Rt.Grid), a = d(
@@ -361,7 +361,7 @@ const sa = ({
361
361
  onTreeRename: n
362
362
  };
363
363
  };
364
- function as(e, t) {
364
+ function ns(e, t) {
365
365
  const s = ce(null), [a, n] = z(!1);
366
366
  return pe(() => {
367
367
  if (!s.current) return;
@@ -372,7 +372,7 @@ function as(e, t) {
372
372
  return r.observe(t?.current || s?.current), () => r.disconnect();
373
373
  }, [e, t]), { containerRef: s, isBelowBreakpoint: a };
374
374
  }
375
- var rs = /* @__PURE__ */ ((e) => (e.MULTIPLE = "MULTIPLE", e.SINGLE = "SINGLE", e))(rs || {});
375
+ var os = /* @__PURE__ */ ((e) => (e.MULTIPLE = "MULTIPLE", e.SINGLE = "SINGLE", e))(os || {});
376
376
  const Ke = (e, t) => {
377
377
  if (!(!e || !e.length || !t))
378
378
  for (const s of e) {
@@ -384,24 +384,24 @@ const Ke = (e, t) => {
384
384
  if (!e?.length) return;
385
385
  if (!t) return e[0];
386
386
  const s = Ke(e, t);
387
- if (s && s.nodeType === k.FOLDER) return s;
387
+ if (s && s.nodeType === O.FOLDER) return s;
388
388
  const a = t.split("/").filter(Boolean);
389
389
  if (a.length <= 1) return e[0];
390
390
  const n = "/" + a.slice(0, a.length - 1).join("/");
391
391
  return Ke(e, n) ?? e[0];
392
- }, Ft = (e) => (e ?? "").toLowerCase(), ss = (e) => Ft(e).replace(/^\./, ""), is = (e) => {
392
+ }, Ft = (e) => (e ?? "").toLowerCase(), as = (e) => Ft(e).replace(/^\./, ""), rs = (e) => {
393
393
  if (!e) return [];
394
394
  const t = [], s = (a) => {
395
395
  const n = a.items ?? [];
396
396
  for (const r of n)
397
- t.push(r), r.nodeType === k.FOLDER && s(r);
397
+ t.push(r), r.nodeType === O.FOLDER && s(r);
398
398
  };
399
399
  return s(e), t;
400
400
  }, Ra = (e) => (e.name ?? e.path.split("/").pop() ?? "").startsWith("."), rn = (e) => {
401
401
  if (!e) return "0 bytes";
402
402
  const t = 1024, s = t * 1024;
403
403
  return e >= s ? `${(e / s).toFixed(1)} MB` : e >= t ? `${(e / t).toFixed(0)} KB` : `${e} bytes`;
404
- }, ls = (e, t = "en-US", s = {
404
+ }, ss = (e, t = "en-US", s = {
405
405
  year: "numeric",
406
406
  month: "short",
407
407
  day: "2-digit"
@@ -413,7 +413,7 @@ const Ke = (e, t) => {
413
413
  return e;
414
414
  }
415
415
  };
416
- function Ho(e, t, s) {
416
+ function Go(e, t, s) {
417
417
  if (!e || e.includes("*/*"))
418
418
  return !0;
419
419
  const a = t.toLowerCase(), n = s && s.includes(".") ? `.${s.split(".").at(-1).toLowerCase()}` : void 0;
@@ -428,39 +428,39 @@ function Ho(e, t, s) {
428
428
  return a === l;
429
429
  });
430
430
  }
431
- const cs = (e) => e?.map((t) => t.endsWith("/*") ? t.replace("/*", "s") : ds(t).flat().map((s) => `.${s}`)).flat().join(", ") || "", ds = (e) => {
431
+ const is = (e) => e?.map((t) => t.endsWith("/*") ? t.replace("/*", "s") : ls(t).flat().map((s) => `.${s}`)).flat().join(", ") || "", ls = (e) => {
432
432
  const [t, s] = e.split("/");
433
- return t === "*" ? ["all"] : s === "*" ? Object.entries(na).reduce((a, [n, r]) => {
433
+ return t === "*" ? ["all"] : s === "*" ? Object.entries(aa).reduce((a, [n, r]) => {
434
434
  const [l] = n.split("/");
435
435
  return l === t && a.push(...r), a;
436
- }, []) : na[e] || [];
437
- }, $n = (e) => {
436
+ }, []) : aa[e] || [];
437
+ }, jn = (e) => {
438
438
  if (!e) return;
439
439
  const t = e.flags.replace(/[gy]/g, "");
440
440
  return new RegExp(e.source, t);
441
441
  };
442
- function Uo(e, t, s) {
443
- if (t && $n(t)?.test(e.name))
442
+ function Vo(e, t, s) {
443
+ if (t && jn(t)?.test(e.name))
444
444
  return s ?? `This ${e.isFolder ? "folder" : "file"} contains forbidden characters in its name. Please rename it.`;
445
445
  }
446
- const us = (e) => {
446
+ const cs = (e) => {
447
447
  const t = e.lastIndexOf("/");
448
448
  return t >= 0 ? {
449
449
  parent: e.slice(0, t),
450
450
  name: e.slice(t + 1)
451
451
  } : { parent: "", name: e };
452
- }, hs = (e, t, s) => {
453
- const a = !e.contentLength || s == null || e.contentLength <= s, n = !e.contentType || Ho(t, e.contentType, e.name);
452
+ }, ds = (e, t, s) => {
453
+ const a = !e.contentLength || s == null || e.contentLength <= s, n = !e.contentType || Go(t, e.contentType, e.name);
454
454
  return a && n;
455
- }, ps = (e, t, s, a, n) => {
456
- if (e.nodeType === k.FOLDER) return;
455
+ }, us = (e, t, s, a, n) => {
456
+ if (e.nodeType === O.FOLDER) return;
457
457
  const r = !e.contentLength || s == null || e.contentLength <= s;
458
- if (!(!e.contentType || Ho(t, e.contentType, e.name)))
459
- return a ?? (t?.length ? `Unsupported file type. Supported types: ${cs(t)}.` : "Unsupported file type.");
458
+ if (!(!e.contentType || Go(t, e.contentType, e.name)))
459
+ return a ?? (t?.length ? `Unsupported file type. Supported types: ${is(t)}.` : "Unsupported file type.");
460
460
  if (!r)
461
461
  return n ?? `File is too large. Maximum size: ${rn(s)}.`;
462
- }, fs = (e) => e.replace(/\/+$/, "").split("/").filter(Boolean).length, Yt = (e) => {
463
- const t = `${aa} `, s = new RegExp(`^${aa} (\\d+)$`), a = new Set(
462
+ }, hs = (e) => e.replace(/\/+$/, "").split("/").filter(Boolean).length, Yt = (e) => {
463
+ const t = `${sa} `, s = new RegExp(`^${sa} (\\d+)$`), a = new Set(
464
464
  e.map((i) => i.name.toLowerCase())
465
465
  ), n = e.map((i) => {
466
466
  const p = i.name.match(s);
@@ -470,7 +470,7 @@ const us = (e) => {
470
470
  for (; a.has(r.toLowerCase()); )
471
471
  l++, r = `${t}${l}`;
472
472
  return r;
473
- }, ms = (e) => {
473
+ }, ps = (e) => {
474
474
  const [t, s] = z(e?.showHiddenFiles ?? !1), a = !!e?.onShowHiddenFilesChange, n = a ? e.showHiddenFiles ?? !1 : t, r = d(
475
475
  (i) => {
476
476
  a ? e?.onShowHiddenFilesChange?.(i) : s(i);
@@ -485,7 +485,7 @@ const us = (e) => {
485
485
  toggleHiddenFilesVisibility: l,
486
486
  setAreHiddenFilesVisible: r
487
487
  };
488
- }, Cs = (e) => {
488
+ }, fs = (e) => {
489
489
  const [t, s] = z(
490
490
  e?.collapsed ?? !1
491
491
  ), a = !!e?.onCollapseChange, n = a ? e.collapsed ?? !1 : t, r = d(
@@ -502,10 +502,10 @@ const us = (e) => {
502
502
  toggleTreeCollapse: l,
503
503
  setIsTreeCollapsed: r
504
504
  };
505
- }, ia = (e, t, s) => {
505
+ }, ca = (e, t, s) => {
506
506
  if (!t.has(e))
507
507
  return e;
508
- const a = s === k.FOLDER ? (n, r) => `${n} (${r})` : (n, r) => {
508
+ const a = s === O.FOLDER ? (n, r) => `${n} (${r})` : (n, r) => {
509
509
  const l = n.lastIndexOf("."), i = l > 0, p = i ? n.slice(0, l) : n, C = i ? n.slice(l) : "";
510
510
  return `${p} (${r})${C}`;
511
511
  };
@@ -513,7 +513,7 @@ const us = (e) => {
513
513
  const r = a(e, n);
514
514
  if (!t.has(r)) return r;
515
515
  }
516
- }, To = (e) => e.name, Ia = ({
516
+ }, Ro = (e) => e.name, Ia = ({
517
517
  getDestinationFiles: e,
518
518
  onResolve: t
519
519
  }) => {
@@ -523,7 +523,7 @@ const us = (e) => {
523
523
  p.current = !1, r(!1), a([]), i(null);
524
524
  }, []), v = d(
525
525
  (f, T) => {
526
- const x = e(f), F = new Set(x.map(To)), I = T.filter((S) => F.has(S.name));
526
+ const N = e(f), F = new Set(N.map(Ro)), I = T.filter((S) => F.has(S.name));
527
527
  return {
528
528
  hasConflicts: I.length > 0,
529
529
  conflicts: I
@@ -531,52 +531,52 @@ const us = (e) => {
531
531
  },
532
532
  [e]
533
533
  ), u = d(
534
- (f, T, x, F) => {
535
- const I = e(f), S = new Set(I.map(To));
534
+ (f, T, N, F) => {
535
+ const I = e(f), S = new Set(I.map(Ro));
536
536
  return T.map((A) => {
537
- const _ = A.name, U = S.has(_), P = x && U ? _ : ia(_, S, A.nodeType);
538
- return (!x || !U) && S.add(P), {
537
+ const _ = A.name, U = S.has(_), P = N && U ? _ : ca(_, S, A.nodeType);
538
+ return (!N || !U) && S.add(P), {
539
539
  sourceUrl: A.path,
540
540
  destinationUrl: `${f}/${P}`,
541
- overwrite: x && U,
542
- nodeType: A.nodeType ?? k.ITEM,
541
+ overwrite: N && U,
542
+ nodeType: A.nodeType ?? O.ITEM,
543
543
  ...F ?? {}
544
544
  };
545
545
  });
546
546
  },
547
547
  [e]
548
548
  ), y = d(
549
- (f, T, x, F) => {
550
- const I = e(f), S = new Set(I.map(To));
551
- return T.filter((_) => x.get(_.path) !== Ce.Cancel).map((_) => {
552
- const U = x.get(_.path), P = S.has(_.name), O = U === Ce.Replace && P, B = O ? _.name : ia(_.name, S, _.nodeType);
553
- return O || S.add(B), {
549
+ (f, T, N, F) => {
550
+ const I = e(f), S = new Set(I.map(Ro));
551
+ return T.filter((_) => N.get(_.path) !== Ce.Cancel).map((_) => {
552
+ const U = N.get(_.path), P = S.has(_.name), k = U === Ce.Replace && P, B = k ? _.name : ca(_.name, S, _.nodeType);
553
+ return k || S.add(B), {
554
554
  sourceUrl: _.path,
555
555
  destinationUrl: `${f}/${B}`,
556
- overwrite: O,
557
- nodeType: _.nodeType ?? k.ITEM,
556
+ overwrite: k,
557
+ nodeType: _.nodeType ?? O.ITEM,
558
558
  ...F ?? {}
559
559
  };
560
560
  });
561
561
  },
562
562
  [e]
563
563
  ), g = d(
564
- (f, T, x) => {
564
+ (f, T, N) => {
565
565
  const F = v(f, T);
566
566
  return F.hasConflicts && (i({
567
567
  files: T,
568
568
  destinationFolder: f,
569
- metadata: x
569
+ metadata: N
570
570
  }), C(F.conflicts)), F;
571
571
  },
572
572
  [v, C]
573
573
  ), m = d(() => {
574
574
  if (!l) return;
575
- const { files: f, destinationFolder: T, metadata: x } = l, F = u(
575
+ const { files: f, destinationFolder: T, metadata: N } = l, F = u(
576
576
  T,
577
577
  f,
578
578
  !0,
579
- x
579
+ N
580
580
  );
581
581
  t?.(F, T), c();
582
582
  }, [
@@ -586,11 +586,11 @@ const us = (e) => {
586
586
  c
587
587
  ]), b = d(() => {
588
588
  if (!l) return;
589
- const { files: f, destinationFolder: T, metadata: x } = l, F = u(
589
+ const { files: f, destinationFolder: T, metadata: N } = l, F = u(
590
590
  T,
591
591
  f,
592
592
  !1,
593
- x
593
+ N
594
594
  );
595
595
  t?.(F, T), c();
596
596
  }, [
@@ -598,9 +598,9 @@ const us = (e) => {
598
598
  u,
599
599
  t,
600
600
  c
601
- ]), N = d(() => {
601
+ ]), D = d(() => {
602
602
  if (!l) return;
603
- const { files: f, destinationFolder: T, metadata: x } = l, F = y(
603
+ const { files: f, destinationFolder: T, metadata: N } = l, F = y(
604
604
  T,
605
605
  f,
606
606
  new Map(
@@ -609,7 +609,7 @@ const us = (e) => {
609
609
  Ce.Cancel
610
610
  ])
611
611
  ),
612
- x
612
+ N
613
613
  );
614
614
  t?.(F, T), c();
615
615
  }, [
@@ -621,15 +621,15 @@ const us = (e) => {
621
621
  ]), h = d(
622
622
  (f) => {
623
623
  if (!l) return;
624
- const { files: T, destinationFolder: x, metadata: F } = l, I = new Map(
624
+ const { files: T, destinationFolder: N, metadata: F } = l, I = new Map(
625
625
  f.map((A) => [A.file.path, A.action])
626
626
  ), S = y(
627
- x,
627
+ N,
628
628
  T,
629
629
  I,
630
630
  F
631
631
  );
632
- t?.(S, x), c();
632
+ t?.(S, N), c();
633
633
  },
634
634
  [
635
635
  l,
@@ -650,10 +650,10 @@ const us = (e) => {
650
650
  closeConflictResolution: c,
651
651
  handleReplaceAll: m,
652
652
  handleDuplicateAll: b,
653
- handleCancelAll: N,
653
+ handleCancelAll: D,
654
654
  handleDecideForEach: h
655
655
  };
656
- }, gs = ({
656
+ }, ms = ({
657
657
  getDestinationFiles: e,
658
658
  onCopyFiles: t,
659
659
  onMoveToFiles: s,
@@ -663,9 +663,9 @@ const us = (e) => {
663
663
  getCopyHeader: l,
664
664
  getMoveHeader: i
665
665
  }) => {
666
- const [p, C] = z(!1), [c, v] = z([]), [u, y] = z([]), [g, m] = z(ge.Copy), [b, N] = z(), [h, f] = z(null), {
666
+ const [p, C] = z(!1), [c, v] = z([]), [u, y] = z([]), [g, m] = z(ge.Copy), [b, D] = z(), [h, f] = z(null), {
667
667
  conflictingFiles: T,
668
- conflictResolutionOpen: x,
668
+ conflictResolutionOpen: N,
669
669
  hasActiveConflictRef: F,
670
670
  startConflictResolution: I,
671
671
  resolveConflictsWithStrategy: S,
@@ -673,7 +673,7 @@ const us = (e) => {
673
673
  openConflictResolution: _,
674
674
  handleReplaceAll: U,
675
675
  handleDuplicateAll: P,
676
- handleCancelAll: O,
676
+ handleCancelAll: k,
677
677
  handleDecideForEach: B
678
678
  } = Ia({
679
679
  getDestinationFiles: e,
@@ -685,7 +685,7 @@ const us = (e) => {
685
685
  ), n?.()));
686
686
  }
687
687
  }), L = d(() => {
688
- v([]), y([]), f(null), N(void 0);
688
+ v([]), y([]), f(null), D(void 0);
689
689
  }, []), Y = d(
690
690
  (G) => {
691
691
  const ne = I(G, c, {
@@ -715,12 +715,12 @@ const us = (e) => {
715
715
  type: ge.Move,
716
716
  sourceFolderPath: he
717
717
  }).hasConflicts) {
718
- const ke = S(
718
+ const Oe = S(
719
719
  G,
720
720
  u,
721
721
  !0
722
722
  );
723
- s?.(ke, he, G), n?.(), L();
723
+ s?.(Oe, he, G), n?.(), L();
724
724
  }
725
725
  },
726
726
  [
@@ -737,13 +737,13 @@ const us = (e) => {
737
737
  }, [U, L]), te = d(() => {
738
738
  P(), L();
739
739
  }, [P, L]), fe = d(() => {
740
- O(), L();
741
- }, [O, L]), we = d(
740
+ k(), L();
741
+ }, [k, L]), we = d(
742
742
  (G) => {
743
743
  B(G), L();
744
744
  },
745
745
  [B, L]
746
- ), xe = d(
746
+ ), Ne = d(
747
747
  (G) => {
748
748
  const ne = G.at(0)?.parentPath ?? "/", he = S(
749
749
  ne,
@@ -758,20 +758,20 @@ const us = (e) => {
758
758
  m(G), C(!0);
759
759
  },
760
760
  []
761
- ), Re = d(() => {
761
+ ), Te = d(() => {
762
762
  C(!1), F.current || L();
763
- }, [L, F]), [De, W] = z(), be = d(
763
+ }, [L, F]), [xe, W] = z(), be = d(
764
764
  (G) => {
765
765
  v(G);
766
766
  const ne = G[0]?.parentPath ?? G[0]?.folderId;
767
- N(ne), l && G.length > 0 ? W(l(G.length, G[0]?.name)) : W(void 0);
767
+ D(ne), l && G.length > 0 ? W(l(G.length, G[0]?.name)) : W(void 0);
768
768
  },
769
769
  [l]
770
- ), Ne = d(
770
+ ), De = d(
771
771
  (G) => {
772
772
  y(G);
773
773
  const ne = G[0]?.parentPath ?? G[0]?.folderId;
774
- N(ne), f({
774
+ D(ne), f({
775
775
  type: ge.Move,
776
776
  sourceFolder: ne
777
777
  }), i && G.length > 0 ? W(i(G.length, G[0]?.name)) : W(void 0);
@@ -779,19 +779,19 @@ const us = (e) => {
779
779
  [i]
780
780
  );
781
781
  return {
782
- handleDuplicate: xe,
783
- handleCloseDestinationFolderPopup: Re,
782
+ handleDuplicate: Ne,
783
+ handleCloseDestinationFolderPopup: Te,
784
784
  handleOpenDestinationFolderPopup: ue,
785
785
  handleCopyTo: Y,
786
786
  handleMoveTo: J,
787
787
  openDestinationFolderPopup: p,
788
788
  destinationFolderMode: g,
789
- destinationFolderTitle: De,
789
+ destinationFolderTitle: xe,
790
790
  handleSetCopiedFiles: be,
791
- handleSetMovedFiles: Ne,
791
+ handleSetMovedFiles: De,
792
792
  clearState: L,
793
793
  conflictingFiles: T,
794
- conflictResolutionOpen: x,
794
+ conflictResolutionOpen: N,
795
795
  openConflictResolution: _,
796
796
  closeConflictResolution: A,
797
797
  handleConflictReplace: j,
@@ -800,7 +800,7 @@ const us = (e) => {
800
800
  handleConflictDecideForEach: we,
801
801
  sourceFolder: b
802
802
  };
803
- }, vs = ({
803
+ }, Cs = ({
804
804
  path: e,
805
805
  defaultPath: t,
806
806
  onPathChange: s,
@@ -824,7 +824,7 @@ const us = (e) => {
824
824
  setCurrentPath: p,
825
825
  handlePathChange: C
826
826
  };
827
- }, ys = ({
827
+ }, gs = ({
828
828
  onDeleteFiles: e,
829
829
  onDeleteSuccess: t
830
830
  }) => {
@@ -858,7 +858,7 @@ const us = (e) => {
858
858
  closeDeleteConfirmation: C,
859
859
  confirmDelete: c
860
860
  };
861
- }, ws = ({
861
+ }, vs = ({
862
862
  onDownloadFiles: e,
863
863
  customDownloadItemsAction: t,
864
864
  onDownloadSuccess: s
@@ -869,7 +869,7 @@ const us = (e) => {
869
869
  },
870
870
  [e, s, t]
871
871
  )
872
- }), Ds = (e) => "dataTransfer" in e && e.dataTransfer !== null, Ns = ({
872
+ }), ys = (e) => "dataTransfer" in e && e.dataTransfer !== null, ws = ({
873
873
  onUploadFiles: e,
874
874
  onValidateUpload: t,
875
875
  maxFileSize: s,
@@ -880,9 +880,9 @@ const us = (e) => {
880
880
  uploadEnabled: i = !0,
881
881
  currentFolder: p
882
882
  } = {}) => {
883
- const [C, c] = z(!1), [v, u] = z(!1), [y, g] = z(), m = ce(null), b = ce(""), N = ce([]), h = $(() => !!p?.permissions?.includes(Et.WRITE), [p]), [f, T] = z(/* @__PURE__ */ new Map()), [x, F] = z(null), I = d(
883
+ const [C, c] = z(!1), [v, u] = z(!1), [y, g] = z(), m = ce(null), b = ce(""), D = ce([]), h = $(() => !!p?.permissions?.includes(Et.WRITE), [p]), [f, T] = z(/* @__PURE__ */ new Map()), [N, F] = z(null), I = d(
884
884
  (R) => !a || a.includes("*/*") ? R : R.filter(
885
- ({ fileContent: H, name: V }) => Ho(a, H.type, V)
885
+ ({ fileContent: H, name: V }) => Go(a, H.type, V)
886
886
  ),
887
887
  [a]
888
888
  ), S = d(() => {
@@ -892,58 +892,58 @@ const us = (e) => {
892
892
  conflictResolutionOpen: _,
893
893
  hasActiveConflictRef: U,
894
894
  startConflictResolution: P,
895
- closeConflictResolution: O,
895
+ closeConflictResolution: k,
896
896
  openConflictResolution: B,
897
897
  handleReplaceAll: L,
898
898
  handleDuplicateAll: Y,
899
899
  handleCancelAll: J,
900
900
  handleDecideForEach: j
901
901
  } = Ia({
902
- getDestinationFiles: () => N.current,
902
+ getDestinationFiles: () => D.current,
903
903
  onResolve: (R, H) => {
904
904
  if (!i || !h) {
905
905
  S();
906
906
  return;
907
907
  }
908
- if (!x) return;
908
+ if (!N) return;
909
909
  const V = R.map((Q) => {
910
- const X = f.get(Q.sourceUrl);
911
- if (!X)
910
+ const Z = f.get(Q.sourceUrl);
911
+ if (!Z)
912
912
  return;
913
913
  const me = Q.destinationUrl.split("/").pop();
914
914
  return {
915
- fileContent: X.fileContent,
915
+ fileContent: Z.fileContent,
916
916
  name: me
917
917
  };
918
918
  }).filter(Boolean);
919
919
  if (V[0]?.fileContent?.type === "application/zip") {
920
- const { fileContent: Q, name: X } = V[0];
921
- r?.(Q, X, H);
920
+ const { fileContent: Q, name: Z } = V[0];
921
+ r?.(Q, Z, H);
922
922
  } else V.length > 0 && e?.(V, H);
923
923
  S();
924
924
  }
925
925
  });
926
926
  pe(() => {
927
- i && h || (c(!1), u(!1), g(void 0), O(), S());
927
+ i && h || (c(!1), u(!1), g(void 0), k(), S());
928
928
  }, [
929
929
  i,
930
- O,
930
+ k,
931
931
  S,
932
932
  h
933
933
  ]), pe(() => {
934
934
  if (!i || !h) return;
935
935
  let R = 0;
936
936
  const H = (me) => {
937
- Ds(me) && me.dataTransfer.types.includes(Yr) && (R++, u(!0));
937
+ ys(me) && me.dataTransfer.types.includes(Xr) && (R++, u(!0));
938
938
  }, V = () => {
939
939
  R--, R === 0 && u(!1);
940
940
  }, Q = () => {
941
941
  R = 0, u(!1);
942
- }, X = (me) => {
942
+ }, Z = (me) => {
943
943
  me.preventDefault();
944
944
  };
945
- return window.addEventListener("dragenter", H), window.addEventListener("dragleave", V), window.addEventListener("drop", Q), window.addEventListener("dragover", X), () => {
946
- window.removeEventListener("dragenter", H), window.removeEventListener("dragleave", V), window.removeEventListener("drop", Q), window.removeEventListener("dragover", X);
945
+ return window.addEventListener("dragenter", H), window.addEventListener("dragleave", V), window.addEventListener("drop", Q), window.addEventListener("dragover", Z), () => {
946
+ window.removeEventListener("dragenter", H), window.removeEventListener("dragleave", V), window.removeEventListener("drop", Q), window.removeEventListener("dragover", Z);
947
947
  };
948
948
  }, [i, h]);
949
949
  const te = d(
@@ -955,7 +955,7 @@ const us = (e) => {
955
955
  name: V.name,
956
956
  folderId: H,
957
957
  path: V.name,
958
- nodeType: k.ITEM,
958
+ nodeType: O.ITEM,
959
959
  parentPath: H,
960
960
  contentLength: V.fileContent.size
961
961
  })),
@@ -963,13 +963,13 @@ const us = (e) => {
963
963
  ), we = d(
964
964
  async (R, H, V) => {
965
965
  if (!i || !h) return !1;
966
- g(void 0), N.current = V;
966
+ g(void 0), D.current = V;
967
967
  const Q = l ? R.map((ae) => ({
968
968
  ...ae,
969
969
  name: l(ae.name)
970
- })) : R, X = te(Q);
971
- if (X.length > 0) {
972
- const ae = s ? (s / 1048576).toFixed(2) : 0, Ve = n.oversizedFiles || `Files exceed maximum size (${ae}MB): ${X.join(", ")}`;
970
+ })) : R, Z = te(Q);
971
+ if (Z.length > 0) {
972
+ const ae = s ? (s / 1048576).toFixed(2) : 0, Ve = n.oversizedFiles || `Files exceed maximum size (${ae}MB): ${Z.join(", ")}`;
973
973
  return g(Ve), !1;
974
974
  }
975
975
  if (t)
@@ -1011,25 +1011,25 @@ const us = (e) => {
1011
1011
  S,
1012
1012
  h
1013
1013
  ]
1014
- ), xe = d(() => {
1014
+ ), Ne = d(() => {
1015
1015
  L(), S();
1016
1016
  }, [L, S]), ue = d(() => {
1017
1017
  Y(), S();
1018
- }, [Y, S]), Re = d(() => {
1018
+ }, [Y, S]), Te = d(() => {
1019
1019
  J(), S();
1020
- }, [J, S]), De = d(
1020
+ }, [J, S]), xe = d(
1021
1021
  (R) => {
1022
1022
  j(R), S();
1023
1023
  },
1024
1024
  [j, S]
1025
1025
  ), W = d(() => {
1026
- O(), U.current || S();
1027
- }, [O, U, S]), be = d(
1026
+ k(), U.current || S();
1027
+ }, [k, U, S]), be = d(
1028
1028
  (R) => {
1029
1029
  !i || !h || (R.preventDefault(), R.stopPropagation(), R.dataTransfer.types.includes("Files") && c(!0));
1030
1030
  },
1031
1031
  [i, h]
1032
- ), Ne = d(
1032
+ ), De = d(
1033
1033
  (R) => {
1034
1034
  if (!i || !h) return;
1035
1035
  R.preventDefault(), R.stopPropagation();
@@ -1046,7 +1046,7 @@ const us = (e) => {
1046
1046
  async (R, H, V) => {
1047
1047
  if (!i || !h || (R.preventDefault(), R.stopPropagation(), c(!1), !R.dataTransfer.types.includes("Files")))
1048
1048
  return;
1049
- const Q = Array.from(R.dataTransfer.items || []), X = [];
1049
+ const Q = Array.from(R.dataTransfer.items || []), Z = [];
1050
1050
  let me = !1;
1051
1051
  if (Q.length > 0 && Q.forEach((ae) => {
1052
1052
  if (ae.kind === "file") {
@@ -1055,15 +1055,15 @@ const us = (e) => {
1055
1055
  return;
1056
1056
  }
1057
1057
  const $e = ae.getAsFile?.();
1058
- $e && X.push($e);
1058
+ $e && Z.push($e);
1059
1059
  }
1060
- }), X.length === 0 && R.dataTransfer.files?.length && X.push(...Array.from(R.dataTransfer.files)), X.length === 0) {
1060
+ }), Z.length === 0 && R.dataTransfer.files?.length && Z.push(...Array.from(R.dataTransfer.files)), Z.length === 0) {
1061
1061
  me && g(
1062
1062
  n.foldersNotSupported || "Folder upload is not supported"
1063
1063
  );
1064
1064
  return;
1065
1065
  }
1066
- const Ae = X.map((ae) => ({
1066
+ const Ae = Z.map((ae) => ({
1067
1067
  fileContent: ae,
1068
1068
  name: ae.name
1069
1069
  })), Pe = I(Ae);
@@ -1093,9 +1093,9 @@ const us = (e) => {
1093
1093
  return;
1094
1094
  }
1095
1095
  if (!R.files?.length) return;
1096
- const V = Array.from(R.files).map((X) => ({
1097
- fileContent: X,
1098
- name: X.name
1096
+ const V = Array.from(R.files).map((Z) => ({
1097
+ fileContent: Z,
1098
+ name: Z.name
1099
1099
  })), Q = I(V);
1100
1100
  if (Q.length === 0) {
1101
1101
  g(
@@ -1107,7 +1107,7 @@ const us = (e) => {
1107
1107
  await we(
1108
1108
  Q,
1109
1109
  b.current,
1110
- N.current
1110
+ D.current
1111
1111
  );
1112
1112
  } catch {
1113
1113
  g(n.validationError || "Upload failed");
@@ -1134,32 +1134,32 @@ const us = (e) => {
1134
1134
  }, [a]);
1135
1135
  const _e = d(
1136
1136
  (R, H) => {
1137
- !i || !h || (b.current = R, N.current = H, m.current && m.current.click());
1137
+ !i || !h || (b.current = R, D.current = H, m.current && m.current.click());
1138
1138
  },
1139
1139
  [i, h]
1140
- ), ke = d(
1140
+ ), Oe = d(
1141
1141
  (R, H) => {
1142
1142
  if (!r || !i || !h) return;
1143
1143
  const V = document.createElement("input");
1144
1144
  V.type = "file", V.accept = ".zip,application/zip", V.multiple = !1, V.style.display = "none";
1145
1145
  const Q = () => {
1146
- const X = V.files?.[0];
1147
- if (!X) {
1146
+ const Z = V.files?.[0];
1147
+ if (!Z) {
1148
1148
  document.body.removeChild(V);
1149
1149
  return;
1150
1150
  }
1151
- const me = X.name.replace(/\.zip$/i, ""), Ae = l ? l(me) : me, Pe = {
1151
+ const me = Z.name.replace(/\.zip$/i, ""), Ae = l ? l(me) : me, Pe = {
1152
1152
  id: Ae,
1153
1153
  name: Ae,
1154
1154
  folderId: R,
1155
1155
  path: `${R}/${Ae}`,
1156
- nodeType: k.FOLDER,
1156
+ nodeType: O.FOLDER,
1157
1157
  parentPath: R,
1158
- contentLength: X.size,
1159
- contentType: X.type
1158
+ contentLength: Z.size,
1159
+ contentType: Z.type
1160
1160
  };
1161
- if (N.current = H, F({ destinationFolder: R }), T(
1162
- /* @__PURE__ */ new Map([[Pe.path, { fileContent: X, name: Ae }]])
1161
+ if (D.current = H, F({ destinationFolder: R }), T(
1162
+ /* @__PURE__ */ new Map([[Pe.path, { fileContent: Z, name: Ae }]])
1163
1163
  ), P(R, [Pe], {
1164
1164
  destinationFolder: R
1165
1165
  }).hasConflicts) {
@@ -1167,7 +1167,7 @@ const us = (e) => {
1167
1167
  return;
1168
1168
  }
1169
1169
  try {
1170
- r(X, Ae, R);
1170
+ r(Z, Ae, R);
1171
1171
  } finally {
1172
1172
  document.body.removeChild(V);
1173
1173
  }
@@ -1189,26 +1189,26 @@ const us = (e) => {
1189
1189
  isDraggingOverWindow: v,
1190
1190
  uploadError: y,
1191
1191
  handleDragEnter: be,
1192
- handleDragLeave: Ne,
1192
+ handleDragLeave: De,
1193
1193
  handleDragOver: G,
1194
1194
  handleDrop: ne,
1195
1195
  clearError: Se,
1196
1196
  handleUpload: we,
1197
1197
  openFileDialog: _e,
1198
- openArchiveDialog: ke,
1198
+ openArchiveDialog: Oe,
1199
1199
  fileInputRef: m,
1200
1200
  uploadConflictingFiles: A,
1201
1201
  uploadConflictResolutionOpen: _,
1202
1202
  hasActiveUploadConflictRef: U,
1203
1203
  openUploadConflictResolution: B,
1204
1204
  closeUploadConflictResolution: W,
1205
- handleUploadConflictReplace: xe,
1205
+ handleUploadConflictReplace: Ne,
1206
1206
  handleUploadConflictDuplicate: ue,
1207
- handleUploadConflictCancel: Re,
1208
- handleUploadConflictDecideForEach: De
1207
+ handleUploadConflictCancel: Te,
1208
+ handleUploadConflictDecideForEach: xe
1209
1209
  };
1210
1210
  }, Fa = pr(void 0), Ea = {
1211
- hiddenItemWarning: `${Io.Warning}__A dot at the start of the name will make the item hidden`
1211
+ hiddenItemWarning: `${Fo.Warning}__A dot at the start of the name will make the item hidden`
1212
1212
  }, Sa = {
1213
1213
  consecutiveDotsError: "Name cannot contain consecutive dots"
1214
1214
  }, xs = {
@@ -1217,24 +1217,24 @@ const us = (e) => {
1217
1217
  hiddenItemWarning: Ea.hiddenItemWarning,
1218
1218
  consecutiveDotsError: Sa.consecutiveDotsError
1219
1219
  };
1220
- function bs(e) {
1220
+ function Ds(e) {
1221
1221
  let t = e.length;
1222
1222
  for (; t > 0 && e[t - 1] === "/"; ) t--;
1223
1223
  return e.slice(0, t);
1224
1224
  }
1225
- function Ts(e, t) {
1226
- const s = bs(e), a = s.lastIndexOf("/");
1225
+ function Ns(e, t) {
1226
+ const s = Ds(e), a = s.lastIndexOf("/");
1227
1227
  return a === -1 ? t : s.slice(0, a + 1) + t;
1228
1228
  }
1229
- function Rs(e) {
1229
+ function bs(e) {
1230
1230
  const t = e.lastIndexOf(".");
1231
1231
  return t === -1 || t === 0 ? e : e.substring(0, t);
1232
1232
  }
1233
- function la(e) {
1233
+ function da(e) {
1234
1234
  const t = e.lastIndexOf(".");
1235
1235
  return t === -1 || t === 0 ? "" : e.substring(t);
1236
1236
  }
1237
- const Is = ({
1237
+ const Ts = ({
1238
1238
  items: e,
1239
1239
  onRenameValidate: t,
1240
1240
  validationMessages: s,
@@ -1260,21 +1260,21 @@ const Is = ({
1260
1260
  r(void 0);
1261
1261
  return;
1262
1262
  }
1263
- const g = n.nodeType === k.ITEM;
1263
+ const g = n.nodeType === O.ITEM;
1264
1264
  let m = y.trim();
1265
1265
  if (g) {
1266
- const f = la(n.name);
1266
+ const f = da(n.name);
1267
1267
  f && !m.endsWith(f) && (m = m + f);
1268
1268
  }
1269
1269
  if (m === n.name) {
1270
1270
  r(void 0);
1271
1271
  return;
1272
1272
  }
1273
- const b = Ts(
1273
+ const b = Ns(
1274
1274
  n.path,
1275
1275
  m
1276
- ), N = n.parentPath;
1277
- if (!N) {
1276
+ ), D = n.parentPath;
1277
+ if (!D) {
1278
1278
  r(void 0);
1279
1279
  return;
1280
1280
  }
@@ -1283,7 +1283,7 @@ const Is = ({
1283
1283
  destinationUrl: b,
1284
1284
  nodeType: n.nodeType
1285
1285
  };
1286
- a([h], N, N), r(void 0);
1286
+ a([h], D, D), r(void 0);
1287
1287
  },
1288
1288
  [n, a]
1289
1289
  ), v = d(
@@ -1295,29 +1295,29 @@ const Is = ({
1295
1295
  return l.consecutiveDotsError;
1296
1296
  if (m.startsWith("."))
1297
1297
  return l.hiddenItemWarning;
1298
- const b = g.nodeType === k.ITEM;
1299
- let N = m;
1298
+ const b = g.nodeType === O.ITEM;
1299
+ let D = m;
1300
1300
  if (b) {
1301
- const f = la(g.name);
1302
- f && !N.endsWith(f) && (N = N + f);
1301
+ const f = da(g.name);
1302
+ f && !D.endsWith(f) && (D = D + f);
1303
1303
  }
1304
1304
  const h = g.parentPath;
1305
1305
  if (h) {
1306
1306
  const f = Ke(e, h);
1307
1307
  if (f && new Set(
1308
- (f.items ?? []).filter((x) => x.path !== g.path).map((x) => x.name.toLowerCase())
1309
- ).has(N.toLowerCase()))
1308
+ (f.items ?? []).filter((N) => N.path !== g.path).map((N) => N.name.toLowerCase())
1309
+ ).has(D.toLowerCase()))
1310
1310
  return l.duplicateName;
1311
1311
  }
1312
1312
  if (t) {
1313
- const f = t(N, g);
1313
+ const f = t(D, g);
1314
1314
  if (f)
1315
1315
  return f;
1316
1316
  }
1317
1317
  return null;
1318
1318
  },
1319
1319
  [t, l, e]
1320
- ), u = d((y) => y.nodeType === k.ITEM ? Rs(y.name) : y.name, []);
1320
+ ), u = d((y) => y.nodeType === O.ITEM ? bs(y.name) : y.name, []);
1321
1321
  return {
1322
1322
  renamedPath: i,
1323
1323
  renamedItem: n,
@@ -1373,7 +1373,7 @@ const Is = ({
1373
1373
  collapsePath: C,
1374
1374
  isControlled: a
1375
1375
  };
1376
- }, Fs = ({
1376
+ }, Rs = ({
1377
1377
  newActions: e,
1378
1378
  currentFolder: t,
1379
1379
  onUploadFiles: s,
@@ -1387,7 +1387,7 @@ const Is = ({
1387
1387
  return e && (e.newFolder && c.push({
1388
1388
  key: "new-folder",
1389
1389
  label: e.newFolder.label,
1390
- icon: e?.newFolder?.icon !== void 0 ? e?.newFolder?.icon : /* @__PURE__ */ o(ha, { ...M, className: "text-secondary" }),
1390
+ icon: e?.newFolder?.icon !== void 0 ? e?.newFolder?.icon : /* @__PURE__ */ o(fa, { ...M, className: "text-secondary" }),
1391
1391
  onClick: () => {
1392
1392
  a && a();
1393
1393
  }
@@ -1431,12 +1431,12 @@ const Is = ({
1431
1431
  isNewButtonVisible: p,
1432
1432
  isNewButtonDisabled: C
1433
1433
  };
1434
- }, Es = {
1434
+ }, Is = {
1435
1435
  emptyName: "Folder name cannot be empty",
1436
1436
  duplicateName: "A folder with this name already exists",
1437
1437
  hiddenItemWarning: Ea.hiddenItemWarning,
1438
1438
  consecutiveDotsError: Sa.consecutiveDotsError
1439
- }, Ss = ({
1439
+ }, Fs = ({
1440
1440
  currentFolder: e,
1441
1441
  onCreateFolder: t,
1442
1442
  onValidateFolderName: s,
@@ -1447,9 +1447,9 @@ const Is = ({
1447
1447
  Be.Folder
1448
1448
  ), [v, u] = z(null), [y, g] = z(
1449
1449
  null
1450
- ), [m, b] = z(""), N = ce(e?.path), h = $(
1450
+ ), [m, b] = z(""), D = ce(e?.path), h = $(
1451
1451
  () => ({
1452
- ...Es,
1452
+ ...Is,
1453
1453
  ...a
1454
1454
  }),
1455
1455
  [a]
@@ -1461,7 +1461,7 @@ const Is = ({
1461
1461
  return {
1462
1462
  path: v.parentPath,
1463
1463
  items: P?.items || [],
1464
- nodeType: k.FOLDER,
1464
+ nodeType: O.FOLDER,
1465
1465
  name: v?.parentPath?.split("/")?.pop() || "",
1466
1466
  folderId: ""
1467
1467
  };
@@ -1470,41 +1470,41 @@ const Is = ({
1470
1470
  }, [C, v, e, n]);
1471
1471
  pe(() => {
1472
1472
  const P = f?.path;
1473
- N.current !== P && r && (l(!1), p(null), b("")), N.current = P;
1473
+ D.current !== P && r && (l(!1), p(null), b("")), D.current = P;
1474
1474
  }, [f?.path, r]);
1475
1475
  const T = d(() => {
1476
1476
  if (r) return;
1477
- N.current = e?.path || "/";
1478
- const P = `__new_folder_${Date.now()}`, O = (e?.items ?? []).filter(
1479
- (L) => L.nodeType === k.FOLDER
1480
- ), B = Yt(O);
1477
+ D.current = e?.path || "/";
1478
+ const P = `__new_folder_${Date.now()}`, k = (e?.items ?? []).filter(
1479
+ (L) => L.nodeType === O.FOLDER
1480
+ ), B = Yt(k);
1481
1481
  p(P), b(B), l(!0), c(Be.Folder), u(e || null);
1482
- }, [r, e]), x = d(
1482
+ }, [r, e]), N = d(
1483
1483
  (P) => {
1484
1484
  if (r) return;
1485
- N.current = P?.parentPath || "/";
1486
- const O = `__new_folder_${Date.now()}`, L = (It(n, P?.parentPath || "/")?.items ?? []).filter(
1487
- (J) => J.nodeType === k.FOLDER
1485
+ D.current = P?.parentPath || "/";
1486
+ const k = `__new_folder_${Date.now()}`, L = (It(n, P?.parentPath || "/")?.items ?? []).filter(
1487
+ (J) => J.nodeType === O.FOLDER
1488
1488
  ), Y = Yt(L);
1489
- b(Y), p(O), l(!0), c(Be.Sibling), u(P), g(P?.parentPath || "/");
1489
+ b(Y), p(k), l(!0), c(Be.Sibling), u(P), g(P?.parentPath || "/");
1490
1490
  },
1491
1491
  [r, n]
1492
1492
  ), F = d(
1493
1493
  (P) => {
1494
1494
  if (r) return;
1495
- N.current = P.path;
1496
- const O = `__new_folder_${Date.now()}`, B = (P?.items ?? []).filter(
1497
- (Y) => Y.nodeType === k.FOLDER
1495
+ D.current = P.path;
1496
+ const k = `__new_folder_${Date.now()}`, B = (P?.items ?? []).filter(
1497
+ (Y) => Y.nodeType === O.FOLDER
1498
1498
  ), L = Yt(B);
1499
- b(L), p(O), l(!0), c(Be.Child), u(P), g(P?.path || "/");
1499
+ b(L), p(k), l(!0), c(Be.Child), u(P), g(P?.path || "/");
1500
1500
  },
1501
1501
  [r]
1502
1502
  ), I = d(
1503
1503
  (P) => {
1504
1504
  if (r) return;
1505
- N.current = P?.parentPath || "/";
1505
+ D.current = P?.parentPath || "/";
1506
1506
  const B = (It(n, P?.parentPath || "/")?.items ?? []).filter(
1507
- (Y) => Y.nodeType === k.FOLDER
1507
+ (Y) => Y.nodeType === O.FOLDER
1508
1508
  ), L = Yt(B);
1509
1509
  b(L), c(Be.Sibling), u(P), g(P?.parentPath || "/"), l(!0);
1510
1510
  },
@@ -1512,30 +1512,30 @@ const Is = ({
1512
1512
  ), S = d(
1513
1513
  (P) => {
1514
1514
  if (r) return;
1515
- N.current = P.path;
1516
- const O = (P?.items ?? []).filter(
1517
- (L) => L.nodeType === k.FOLDER
1518
- ), B = Yt(O);
1515
+ D.current = P.path;
1516
+ const k = (P?.items ?? []).filter(
1517
+ (L) => L.nodeType === O.FOLDER
1518
+ ), B = Yt(k);
1519
1519
  b(B), c(Be.Child), u(P), g(P?.path || "/"), l(!0);
1520
1520
  },
1521
1521
  [r]
1522
1522
  ), A = d(() => {
1523
- l(!1), p(null), c(Be.Folder), u(null), g(null), N.current = void 0, b("");
1523
+ l(!1), p(null), c(Be.Folder), u(null), g(null), D.current = void 0, b("");
1524
1524
  }, []), _ = d(
1525
1525
  (P) => {
1526
- const O = P.trim();
1527
- if (!O)
1526
+ const k = P.trim();
1527
+ if (!k)
1528
1528
  return h.emptyName;
1529
- if (O.includes(".."))
1529
+ if (k.includes(".."))
1530
1530
  return h.consecutiveDotsError;
1531
- if (O.startsWith(".") && O.length > 1)
1531
+ if (k.startsWith(".") && k.length > 1)
1532
1532
  return h.hiddenItemWarning;
1533
1533
  if (f && f.items && new Set(
1534
- (f.items ?? []).filter((L) => L.nodeType === k.FOLDER).map((L) => L.name.toLowerCase())
1535
- ).has(O.toLowerCase()))
1534
+ (f.items ?? []).filter((L) => L.nodeType === O.FOLDER).map((L) => L.name.toLowerCase())
1535
+ ).has(k.toLowerCase()))
1536
1536
  return h.duplicateName;
1537
1537
  if (s && f) {
1538
- const B = s(O, f);
1538
+ const B = s(k, f);
1539
1539
  if (B)
1540
1540
  return B;
1541
1541
  }
@@ -1544,15 +1544,15 @@ const Is = ({
1544
1544
  [f, s, h]
1545
1545
  ), U = d(
1546
1546
  async (P) => {
1547
- const O = P.trim();
1548
- if (!O)
1547
+ const k = P.trim();
1548
+ if (!k)
1549
1549
  return;
1550
1550
  A();
1551
- const L = `${f?.path ?? "/"}/${O}`, Y = `${L}/${bo}`, j = {
1552
- fileContent: new File([], bo, {
1551
+ const L = `${f?.path ?? "/"}/${k}`, Y = `${L}/${To}`, j = {
1552
+ fileContent: new File([], To, {
1553
1553
  type: "text/plain"
1554
1554
  }),
1555
- name: bo
1555
+ name: To
1556
1556
  };
1557
1557
  t && await t(j, L, Y);
1558
1558
  },
@@ -1564,7 +1564,7 @@ const Is = ({
1564
1564
  newFolderTempId: i,
1565
1565
  newFolderDefaultName: m,
1566
1566
  startFolderCreation: T,
1567
- startGridSiblingFolderCreation: x,
1567
+ startGridSiblingFolderCreation: N,
1568
1568
  startTreeSiblingFolderCreation: I,
1569
1569
  startGridChildFolderCreation: F,
1570
1570
  startTreeChildFolderCreation: S,
@@ -1572,35 +1572,28 @@ const Is = ({
1572
1572
  saveFolderCreation: U,
1573
1573
  validateFolderName: _
1574
1574
  };
1575
- }, As = ({
1575
+ }, Es = ({
1576
1576
  additionalButtons: e,
1577
1577
  expandedPathsLength: t,
1578
1578
  collapseAll: s
1579
1579
  }) => {
1580
1580
  const a = t === 0;
1581
1581
  return {
1582
- additionalButtons: $(() => {
1583
- const r = Fe([
1584
- "hover:text-accent-primary",
1585
- a && "controls-secondary-disable hover:controls-secondary-disable disabled:hover:cursor-default"
1586
- ]);
1587
- return /* @__PURE__ */ Z(Te, { children: [
1588
- e,
1589
- /* @__PURE__ */ o(
1590
- gr,
1591
- {
1592
- disabled: a,
1593
- className: r,
1594
- size: Ca.Small,
1595
- onClick: s,
1596
- icon: /* @__PURE__ */ o(ar, { size: ko.LG, stroke: 1.5 }),
1597
- "aria-label": "collapse-all"
1598
- }
1599
- )
1600
- ] });
1601
- }, [e, a, s])
1582
+ additionalButtons: $(() => /* @__PURE__ */ X(Ie, { children: [
1583
+ e,
1584
+ /* @__PURE__ */ o(
1585
+ $n,
1586
+ {
1587
+ disabled: a,
1588
+ size: Bo.Small,
1589
+ onClick: s,
1590
+ icon: /* @__PURE__ */ o(ar, { size: Lo.LG, stroke: 1.5 }),
1591
+ "aria-label": "collapse-all"
1592
+ }
1593
+ )
1594
+ ] }), [e, a, s])
1602
1595
  };
1603
- }, Ps = ({ onGetInfo: e }) => {
1596
+ }, Ss = ({ onGetInfo: e }) => {
1604
1597
  const [t, s] = z(!1), [a, n] = z(void 0), r = d(
1605
1598
  async (i) => {
1606
1599
  n(i), s(!0), e && await e(i);
@@ -1616,7 +1609,7 @@ const Is = ({
1616
1609
  closeMetadataPopup: l
1617
1610
  };
1618
1611
  };
1619
- function Ms(e) {
1612
+ function As(e) {
1620
1613
  const t = [];
1621
1614
  function s(a) {
1622
1615
  for (const n of a)
@@ -1624,11 +1617,11 @@ function Ms(e) {
1624
1617
  }
1625
1618
  return s(e), t;
1626
1619
  }
1627
- function ca(e, t) {
1620
+ function ua(e, t) {
1628
1621
  const s = Ft(t);
1629
1622
  return e.filter((a) => Ft(a.name).includes(s));
1630
1623
  }
1631
- function Os({
1624
+ function Ps({
1632
1625
  onSearchFiles: e,
1633
1626
  clearSearchResults: t,
1634
1627
  currentPath: s,
@@ -1645,7 +1638,7 @@ function Os({
1645
1638
  }, [r]);
1646
1639
  const b = String(
1647
1640
  r ?? C ?? ""
1648
- ).trim(), N = u.current && (n || a.length > 0 || b !== ""), h = d(
1641
+ ).trim(), D = u.current && (n || a.length > 0 || b !== ""), h = d(
1649
1642
  (F) => {
1650
1643
  const I = F.trim();
1651
1644
  if (!I) {
@@ -1674,15 +1667,15 @@ function Os({
1674
1667
  ]), pe(() => {
1675
1668
  n || (y.current = a);
1676
1669
  }, [a, n]);
1677
- const x = $(() => {
1670
+ const N = $(() => {
1678
1671
  if (e) {
1679
1672
  const I = n ? y.current : a;
1680
- return !b || I.length === 0 ? I : ca(I, b);
1673
+ return !b || I.length === 0 ? I : ua(I, b);
1681
1674
  }
1682
1675
  if (!b || !i.length)
1683
1676
  return [];
1684
- const F = Ms(i);
1685
- return ca(F, b);
1677
+ const F = As(i);
1678
+ return ua(F, b);
1686
1679
  }, [
1687
1680
  e,
1688
1681
  a,
@@ -1691,17 +1684,17 @@ function Os({
1691
1684
  i
1692
1685
  ]);
1693
1686
  return {
1694
- isSearchMode: N,
1687
+ isSearchMode: D,
1695
1688
  searchValue: C,
1696
1689
  effectiveSearchValue: b,
1697
1690
  setSearchValue: c,
1698
1691
  handleSearchChange: T,
1699
1692
  handleSearchActivate: h,
1700
1693
  handleSearchClear: f,
1701
- searchResultsRows: x
1694
+ searchResultsRows: N
1702
1695
  };
1703
1696
  }
1704
- function ks({
1697
+ function Ms({
1705
1698
  selectedPaths: e,
1706
1699
  defaultSelectedPaths: t,
1707
1700
  onSelectedPathsChange: s
@@ -1725,7 +1718,7 @@ function ks({
1725
1718
  isControlled: a
1726
1719
  };
1727
1720
  }
1728
- const Ls = ({
1721
+ const ks = ({
1729
1722
  managerLabel: e,
1730
1723
  children: t,
1731
1724
  className: s,
@@ -1743,11 +1736,11 @@ const Ls = ({
1743
1736
  showNavigationPanel: g = !0,
1744
1737
  navigationPanelOptions: m,
1745
1738
  deleteConfirmationOptions: b,
1746
- gridOptions: N,
1739
+ gridOptions: D,
1747
1740
  toolbarOptions: h,
1748
1741
  bulkActionsToolbarOptions: f,
1749
1742
  destinationFolderPopupOptions: T,
1750
- conflictResolutionPopupOptions: x,
1743
+ conflictResolutionPopupOptions: N,
1751
1744
  onPathChange: F,
1752
1745
  onTableFileClick: I,
1753
1746
  handleSelectionClick: S,
@@ -1755,33 +1748,33 @@ const Ls = ({
1755
1748
  onCopyFiles: _,
1756
1749
  onMoveToFiles: U,
1757
1750
  onDeleteFiles: P,
1758
- onDownloadFiles: O,
1751
+ onDownloadFiles: k,
1759
1752
  onRenameValidate: B,
1760
1753
  renameValidationMessages: L,
1761
- forbiddenSymbolsRegExp: Y = vr,
1754
+ forbiddenSymbolsRegExp: Y = gr,
1762
1755
  forbiddenSymbolsTooltip: J,
1763
1756
  onUploadFiles: j,
1764
1757
  onValidateUpload: te,
1765
1758
  uploadEnabled: fe,
1766
1759
  uploadValidationMessages: we,
1767
- maxFileSize: xe,
1760
+ maxFileSize: Ne,
1768
1761
  onUploadArchive: ue,
1769
- prepareUploadFileName: Re,
1770
- onCreateFolder: De,
1762
+ prepareUploadFileName: Te,
1763
+ onCreateFolder: xe,
1771
1764
  onCreateFolderValidate: W,
1772
1765
  folderCreationValidationMessages: be,
1773
- fileMetadataPopupOptions: Ne,
1766
+ fileMetadataPopupOptions: De,
1774
1767
  onGetInfo: G,
1775
1768
  onUnshareFiles: ne,
1776
1769
  onRemoveFilesAccess: he,
1777
1770
  actionsRef: _e,
1778
- sharedByMePaths: ke,
1771
+ sharedByMePaths: Oe,
1779
1772
  onSearchFiles: Se,
1780
1773
  searchResults: R,
1781
1774
  searchInProgress: H,
1782
1775
  clearSearchResults: V,
1783
1776
  allowedFileTypes: Q,
1784
- maxSelectableFileSize: X,
1777
+ maxSelectableFileSize: Z,
1785
1778
  getDisabledTooltip: me,
1786
1779
  fileTooLargeTooltip: Ae,
1787
1780
  unsupportedFileTypeTooltip: Pe,
@@ -1793,13 +1786,13 @@ const Ls = ({
1793
1786
  onManagePermissions: ln,
1794
1787
  onPreview: st,
1795
1788
  onOpenInNewTab: ft,
1796
- previewExtensions: jn,
1797
- isRenameFileAvailable: Zn,
1798
- isDuplicateFolderAvailable: Xn,
1789
+ previewExtensions: Zn,
1790
+ isRenameFileAvailable: Xn,
1791
+ isDuplicateFolderAvailable: qn,
1799
1792
  customUploadFileAction: mt,
1800
1793
  customCreateNewItemAction: cn,
1801
1794
  customDuplicateAction: St,
1802
- customDeleteItemsAction: qn,
1795
+ customDeleteItemsAction: Yn,
1803
1796
  customDownloadItemsAction: dn,
1804
1797
  customBreakpointRef: un,
1805
1798
  gridClassName: hn,
@@ -1816,23 +1809,23 @@ const Ls = ({
1816
1809
  selectedPaths: Ze,
1817
1810
  clearSelection: Xe,
1818
1811
  setSelectedPaths: it
1819
- } = ks({
1812
+ } = Ms({
1820
1813
  selectedPaths: p,
1821
1814
  defaultSelectedPaths: C,
1822
1815
  onSelectedPathsChange: c
1823
- }), Cn = ce(!1), Je = ce(null), Yn = d(
1816
+ }), Cn = ce(!1), Je = ce(null), Kn = d(
1824
1817
  (E, K, oe) => {
1825
1818
  if (je) {
1826
- const { parent: Ye, name: xo } = us(K);
1819
+ const { parent: Ye, name: bo } = cs(K);
1827
1820
  Je.current = {
1828
- fileNames: /* @__PURE__ */ new Set([xo]),
1821
+ fileNames: /* @__PURE__ */ new Set([bo]),
1829
1822
  destinationFolder: Ye
1830
1823
  };
1831
1824
  }
1832
- De?.(E, K, oe);
1825
+ xe?.(E, K, oe);
1833
1826
  },
1834
- [De, je]
1835
- ), Kn = d(
1827
+ [xe, je]
1828
+ ), Qn = d(
1836
1829
  (E, K) => {
1837
1830
  je && (Je.current = {
1838
1831
  fileNames: new Set(E.map((oe) => oe.name)),
@@ -1840,7 +1833,7 @@ const Ls = ({
1840
1833
  }), j?.(E, K);
1841
1834
  },
1842
1835
  [j, je]
1843
- ), Qn = d(
1836
+ ), Jn = d(
1844
1837
  (E, K, oe) => {
1845
1838
  je && (Je.current = {
1846
1839
  fileNames: /* @__PURE__ */ new Set([K]),
@@ -1848,7 +1841,7 @@ const Ls = ({
1848
1841
  }), ue?.(E, K, oe);
1849
1842
  },
1850
1843
  [ue, je]
1851
- ), Jn = $(() => {
1844
+ ), eo = $(() => {
1852
1845
  const E = /* @__PURE__ */ new Map();
1853
1846
  return Ze.forEach((K) => {
1854
1847
  const oe = Ke(a, K);
@@ -1870,7 +1863,7 @@ const Ls = ({
1870
1863
  it(K);
1871
1864
  }
1872
1865
  }, [a, Ze, it]);
1873
- const { currentPath: de, setCurrentPath: Ee, handlePathChange: qe } = vs({
1866
+ const { currentPath: de, setCurrentPath: Fe, handlePathChange: qe } = Cs({
1874
1867
  path: r,
1875
1868
  defaultPath: l,
1876
1869
  onPathChange: F,
@@ -1880,28 +1873,28 @@ const Ls = ({
1880
1873
  showFiles: E = !0,
1881
1874
  showFolders: K = !0,
1882
1875
  ...oe
1883
- } = N || {};
1876
+ } = D || {};
1884
1877
  return { showFiles: E, showFolders: K, ...oe };
1885
- }, [N]), Mt = Pt.showFiles, et = Pt.showFolders, [gt, eo] = z(), gn = T?.destinationFolderPath ?? gt, tt = d(
1878
+ }, [D]), Mt = Pt.showFiles, et = Pt.showFolders, [gt, to] = z(), gn = T?.destinationFolderPath ?? gt, tt = d(
1886
1879
  (E) => {
1887
- T?.setDestinationFolderPath ? T.setDestinationFolderPath(E) : eo(E);
1880
+ T?.setDestinationFolderPath ? T.setDestinationFolderPath(E) : to(E);
1888
1881
  },
1889
1882
  [T]
1890
- ), { areHiddenFilesVisible: lt, toggleHiddenFilesVisibility: vn } = ms({
1883
+ ), { areHiddenFilesVisible: lt, toggleHiddenFilesVisibility: vn } = ps({
1891
1884
  showHiddenFiles: v,
1892
1885
  onShowHiddenFilesChange: u
1893
- }), { isTreeCollapsed: yn, toggleTreeCollapse: vt, setIsTreeCollapsed: to } = Cs({
1886
+ }), { isTreeCollapsed: yn, toggleTreeCollapse: vt, setIsTreeCollapsed: no } = fs({
1894
1887
  collapsed: y?.collapsed,
1895
1888
  onCollapseChange: y?.onCollapseChange
1896
1889
  }), {
1897
1890
  renamedPath: yt,
1898
- renamedItem: no,
1899
- renameHandler: oo,
1900
- renameSaveHandler: ao,
1901
- renameCancelHandler: ro,
1902
- renameValidateHandler: so,
1903
- getDisplayName: Ot
1904
- } = Is({
1891
+ renamedItem: oo,
1892
+ renameHandler: ao,
1893
+ renameSaveHandler: ro,
1894
+ renameCancelHandler: so,
1895
+ renameValidateHandler: io,
1896
+ getDisplayName: kt
1897
+ } = Ts({
1905
1898
  items: a,
1906
1899
  onRenameValidate: B,
1907
1900
  validationMessages: L,
@@ -1909,12 +1902,12 @@ const Ls = ({
1909
1902
  }), {
1910
1903
  isSearchMode: wt,
1911
1904
  searchValue: wn,
1912
- effectiveSearchValue: kt,
1905
+ effectiveSearchValue: Ot,
1913
1906
  setSearchValue: Lt,
1914
1907
  handleSearchChange: zt,
1915
1908
  handleSearchClear: le,
1916
- searchResultsRows: Dn
1917
- } = Os({
1909
+ searchResultsRows: xn
1910
+ } = Ps({
1918
1911
  onSearchFiles: Se,
1919
1912
  clearSearchResults: V,
1920
1913
  currentPath: de,
@@ -1928,30 +1921,30 @@ const Ls = ({
1928
1921
  () => It(a, de) ?? a[0],
1929
1922
  [a, de]
1930
1923
  ), Le = d(
1931
- (E, K) => !K || !E ? !1 : fs(E.path) > K,
1924
+ (E, K) => !K || !E ? !1 : hs(E.path) > K,
1932
1925
  []
1933
1926
  ), Me = d(() => {
1934
1927
  At?.();
1935
1928
  }, [At]), {
1936
- handleCopyTo: Nn,
1937
- handleMoveTo: xn,
1929
+ handleCopyTo: Dn,
1930
+ handleMoveTo: Nn,
1938
1931
  handleDuplicate: bn,
1939
- handleOpenDestinationFolderPopup: Dt,
1932
+ handleOpenDestinationFolderPopup: xt,
1940
1933
  handleCloseDestinationFolderPopup: Tn,
1941
1934
  openDestinationFolderPopup: nt,
1942
- handleSetCopiedFiles: io,
1935
+ handleSetCopiedFiles: lo,
1943
1936
  handleSetMovedFiles: Rn,
1944
1937
  destinationFolderMode: In,
1945
- destinationFolderTitle: lo,
1938
+ destinationFolderTitle: co,
1946
1939
  conflictingFiles: Fn,
1947
- conflictResolutionOpen: co,
1940
+ conflictResolutionOpen: uo,
1948
1941
  closeConflictResolution: En,
1949
1942
  handleConflictReplace: _t,
1950
- handleConflictDuplicate: uo,
1951
- handleConflictCancel: ho,
1952
- handleConflictDecideForEach: po,
1953
- sourceFolder: fo
1954
- } = gs({
1943
+ handleConflictDuplicate: ho,
1944
+ handleConflictCancel: po,
1945
+ handleConflictDecideForEach: fo,
1946
+ sourceFolder: mo
1947
+ } = ms({
1955
1948
  getDestinationFiles: (E) => It(a, E)?.items ?? [],
1956
1949
  onCopyFiles: _,
1957
1950
  onMoveToFiles: U,
@@ -1965,43 +1958,43 @@ const Ls = ({
1965
1958
  nt || tt(void 0);
1966
1959
  }, [nt, tt]);
1967
1960
  const {
1968
- deleteConfirmationOpen: mo,
1961
+ deleteConfirmationOpen: Co,
1969
1962
  itemsToDelete: Sn,
1970
1963
  openDeleteConfirmation: An,
1971
1964
  closeDeleteConfirmation: Pn,
1972
- confirmDelete: Nt
1973
- } = ys({
1965
+ confirmDelete: Dt
1966
+ } = gs({
1974
1967
  onDeleteFiles: P,
1975
1968
  onDeleteSuccess: Xe
1976
- }), { handleDownloadFiles: ot } = ws({
1977
- onDownloadFiles: O,
1969
+ }), { handleDownloadFiles: ot } = vs({
1970
+ onDownloadFiles: k,
1978
1971
  customDownloadItemsAction: dn,
1979
1972
  onDownloadSuccess: Xe
1980
1973
  }), {
1981
- isDragging: Co,
1974
+ isDragging: go,
1982
1975
  isDraggingOverWindow: ze,
1983
- uploadError: go,
1976
+ uploadError: vo,
1984
1977
  handleDragEnter: Bt,
1985
- handleDragLeave: xt,
1978
+ handleDragLeave: Nt,
1986
1979
  handleDragOver: ct,
1987
1980
  handleDrop: Wt,
1988
1981
  clearError: Mn,
1989
1982
  openFileDialog: Ht,
1990
- fileInputRef: On,
1983
+ fileInputRef: kn,
1991
1984
  openArchiveDialog: Ut,
1992
- uploadConflictingFiles: vo,
1993
- uploadConflictResolutionOpen: yo,
1994
- closeUploadConflictResolution: kn,
1985
+ uploadConflictingFiles: yo,
1986
+ uploadConflictResolutionOpen: wo,
1987
+ closeUploadConflictResolution: On,
1995
1988
  handleUploadConflictReplace: Gt,
1996
- handleUploadConflictDuplicate: wo,
1989
+ handleUploadConflictDuplicate: xo,
1997
1990
  handleUploadConflictCancel: Do,
1998
1991
  handleUploadConflictDecideForEach: Vt
1999
- } = Ns({
2000
- onUploadFiles: Kn,
1992
+ } = ws({
1993
+ onUploadFiles: Qn,
2001
1994
  onValidateUpload: te,
2002
- maxFileSize: xe,
2003
- onUploadArchive: Qn,
2004
- prepareUploadFileName: Re,
1995
+ maxFileSize: Ne,
1996
+ onUploadArchive: Jn,
1997
+ prepareUploadFileName: Te,
2005
1998
  allowedFileTypes: Q,
2006
1999
  validationMessages: we,
2007
2000
  uploadEnabled: fe,
@@ -2036,25 +2029,25 @@ const Ls = ({
2036
2029
  },
2037
2030
  [St]
2038
2031
  ), {
2039
- isCreatingFolder: D,
2032
+ isCreatingFolder: x,
2040
2033
  newFolderTempId: ee,
2041
2034
  createdFolderPath: ie,
2042
- newFolderDefaultName: Ie,
2035
+ newFolderDefaultName: Re,
2043
2036
  startFolderCreation: at,
2044
- startGridSiblingFolderCreation: Vo,
2045
- startTreeSiblingFolderCreation: $o,
2046
- startGridChildFolderCreation: jo,
2047
- startTreeChildFolderCreation: Zo,
2037
+ startGridSiblingFolderCreation: jo,
2038
+ startTreeSiblingFolderCreation: Zo,
2039
+ startGridChildFolderCreation: Xo,
2040
+ startTreeChildFolderCreation: qo,
2048
2041
  cancelFolderCreation: Pa,
2049
2042
  saveFolderCreation: Ma,
2050
- validateFolderName: Oa
2051
- } = Ss({
2043
+ validateFolderName: ka
2044
+ } = Fs({
2052
2045
  currentFolder: re,
2053
- onCreateFolder: Yn,
2046
+ onCreateFolder: Kn,
2054
2047
  onValidateFolderName: W,
2055
2048
  validationMessages: be,
2056
2049
  items: a
2057
- }), Xo = d(() => {
2050
+ }), Yo = d(() => {
2058
2051
  if (ve && Le(re, ve - 1)) {
2059
2052
  Me();
2060
2053
  return;
@@ -2067,23 +2060,23 @@ const Ls = ({
2067
2060
  ve,
2068
2061
  Le,
2069
2062
  Me
2070
- ]), { newActions: ka, isNewButtonVisible: La, isNewButtonDisabled: za } = Fs(
2063
+ ]), { newActions: Oa, isNewButtonVisible: La, isNewButtonDisabled: za } = Rs(
2071
2064
  {
2072
2065
  newActions: h?.newActions,
2073
2066
  currentFolder: re,
2074
2067
  onUploadFiles: mt ? _n : dt,
2075
2068
  onUploadArchive: zn,
2076
- onCreateFolder: Xo,
2069
+ onCreateFolder: Yo,
2077
2070
  onCreateNewItem: Bn,
2078
2071
  isNewButtonDisabled: h?.isNewButtonDisabled
2079
2072
  }
2080
2073
  ), _a = $(() => {
2081
2074
  if (wt) {
2082
- let q = Dn;
2075
+ let q = xn;
2083
2076
  Mt || (q = q.filter(
2084
- (se) => se.nodeType !== k.ITEM
2077
+ (se) => se.nodeType !== O.ITEM
2085
2078
  )), et || (q = q.filter(
2086
- (se) => se.nodeType !== k.FOLDER
2079
+ (se) => se.nodeType !== O.FOLDER
2087
2080
  )), lt || (q = q.filter((se) => !se.path.split("/").filter(Boolean).some((Zt) => Zt.startsWith("."))));
2088
2081
  const jt = q.map((se) => ({
2089
2082
  ...se,
@@ -2100,22 +2093,22 @@ const Ls = ({
2100
2093
  owner: se.owner,
2101
2094
  folderId: se.folderId
2102
2095
  }));
2103
- return D && ee && jt.unshift({
2096
+ return x && ee && jt.unshift({
2104
2097
  id: ee,
2105
- name: Ie,
2098
+ name: Re,
2106
2099
  updatedAt: void 0,
2107
2100
  author: void 0,
2108
2101
  path: de ?? "/",
2109
- nodeType: k.FOLDER,
2102
+ nodeType: O.FOLDER,
2110
2103
  extension: void 0,
2111
2104
  isTemporary: !0,
2112
2105
  owner: void 0
2113
2106
  }), jt;
2114
2107
  }
2115
- const E = Ft(kt).trim(), K = re?.items ?? [];
2116
- let oe = E ? is(re) : K;
2117
- Mt || (oe = oe.filter((q) => q.nodeType !== k.ITEM)), et || (oe = oe.filter(
2118
- (q) => q.nodeType !== k.FOLDER
2108
+ const E = Ft(Ot).trim(), K = re?.items ?? [];
2109
+ let oe = E ? rs(re) : K;
2110
+ Mt || (oe = oe.filter((q) => q.nodeType !== O.ITEM)), et || (oe = oe.filter(
2111
+ (q) => q.nodeType !== O.FOLDER
2119
2112
  )), lt || (oe = oe.filter((q) => E ? !q.path.split("/").filter(Boolean).some((se) => se.startsWith(".")) : !Ra(q)));
2120
2113
  const Ye = oe.map((q) => ({
2121
2114
  ...q,
@@ -2133,34 +2126,34 @@ const Ls = ({
2133
2126
  contentLength: q.contentLength,
2134
2127
  folderId: q.folderId
2135
2128
  }));
2136
- if (D && ee && !E && Ye.unshift({
2129
+ if (x && ee && !E && Ye.unshift({
2137
2130
  id: ee,
2138
- name: Ie,
2131
+ name: Re,
2139
2132
  updatedAt: void 0,
2140
2133
  author: void 0,
2141
2134
  path: de ?? "/",
2142
- nodeType: k.FOLDER,
2135
+ nodeType: O.FOLDER,
2143
2136
  extension: void 0,
2144
2137
  isTemporary: !0,
2145
2138
  owner: void 0
2146
2139
  }), !E) return Ye;
2147
- const xo = E.split(/\s+/).filter(Boolean);
2140
+ const bo = E.split(/\s+/).filter(Boolean);
2148
2141
  return Ye.filter((q) => {
2149
2142
  if (q.isTemporary) return !0;
2150
- const jt = Ft(q.name), se = Ft(q.author), Yo = ss(q.extension);
2151
- return xo.every(
2152
- (Zt) => jt.includes(Zt) || se.includes(Zt) || Yo.includes(Zt)
2143
+ const jt = Ft(q.name), se = Ft(q.author), Qo = as(q.extension);
2144
+ return bo.every(
2145
+ (Zt) => jt.includes(Zt) || se.includes(Zt) || Qo.includes(Zt)
2153
2146
  );
2154
2147
  });
2155
2148
  }, [
2156
2149
  wt,
2157
- Dn,
2150
+ xn,
2158
2151
  re,
2159
- kt,
2152
+ Ot,
2160
2153
  lt,
2161
- D,
2154
+ x,
2162
2155
  ee,
2163
- Ie,
2156
+ Re,
2164
2157
  Mt,
2165
2158
  et,
2166
2159
  de
@@ -2176,14 +2169,14 @@ const Ls = ({
2176
2169
  if (!K?.items) return;
2177
2170
  const oe = /* @__PURE__ */ new Set();
2178
2171
  for (const Ye of K.items)
2179
- E.fileNames.has(Ye.name) && hs(Ye, Q, X) && oe.add(Ye.path);
2172
+ E.fileNames.has(Ye.name) && ds(Ye, Q, Z) && oe.add(Ye.path);
2180
2173
  oe.size > 0 && (it(oe), Je.current = null);
2181
2174
  }, [
2182
2175
  a,
2183
2176
  de,
2184
2177
  it,
2185
2178
  Q,
2186
- X
2179
+ Z
2187
2180
  ]), pe(() => {
2188
2181
  !Cn.current && mn && (dt(), Cn.current = !0);
2189
2182
  }, [mn, dt]);
@@ -2199,13 +2192,13 @@ const Ls = ({
2199
2192
  [qe]
2200
2193
  ), Ha = d(
2201
2194
  (E) => {
2202
- E.nodeType === k.FOLDER ? qe(E.path) : I?.(E);
2195
+ E.nodeType === O.FOLDER ? qe(E.path) : I?.(E);
2203
2196
  },
2204
2197
  [qe, I]
2205
2198
  ), { expandedPaths: bt, setExpandedPaths: $t, collapseAll: Ua } = Aa({
2206
2199
  expandedPaths: y?.expandedPaths,
2207
2200
  onExpandedPathsChange: y?.onExpandedPathsChange
2208
- }), { additionalButtons: Ga } = As({
2201
+ }), { additionalButtons: Ga } = Es({
2209
2202
  collapseAll: Ua,
2210
2203
  expandedPathsLength: bt.size,
2211
2204
  additionalButtons: y?.additionalButtons
@@ -2216,12 +2209,12 @@ const Ls = ({
2216
2209
  Me();
2217
2210
  return;
2218
2211
  }
2219
- le(), Vo(E[0]);
2212
+ le(), jo(E[0]);
2220
2213
  }
2221
2214
  },
2222
2215
  [
2223
2216
  le,
2224
- Vo,
2217
+ jo,
2225
2218
  ve,
2226
2219
  Le,
2227
2220
  Me
@@ -2233,15 +2226,15 @@ const Ls = ({
2233
2226
  Me();
2234
2227
  return;
2235
2228
  }
2236
- le(), Ee(E[0].path), $t(new Set(bt).add(E[0].path || "/")), jo(E[0]);
2229
+ le(), Fe(E[0].path), $t(new Set(bt).add(E[0].path || "/")), Xo(E[0]);
2237
2230
  }
2238
2231
  },
2239
2232
  [
2240
2233
  le,
2241
- jo,
2234
+ Xo,
2242
2235
  bt,
2243
2236
  $t,
2244
- Ee,
2237
+ Fe,
2245
2238
  Me,
2246
2239
  ve,
2247
2240
  Le
@@ -2253,12 +2246,12 @@ const Ls = ({
2253
2246
  Me();
2254
2247
  return;
2255
2248
  }
2256
- le(), $o(E[0]);
2249
+ le(), Zo(E[0]);
2257
2250
  }
2258
2251
  },
2259
2252
  [
2260
2253
  le,
2261
- $o,
2254
+ Zo,
2262
2255
  ve,
2263
2256
  Le,
2264
2257
  Me
@@ -2270,13 +2263,13 @@ const Ls = ({
2270
2263
  Me();
2271
2264
  return;
2272
2265
  }
2273
- le(), Ee(E[0].path), $t(new Set(bt).add(E[0].path || "/")), Zo(E[0]);
2266
+ le(), Fe(E[0].path), $t(new Set(bt).add(E[0].path || "/")), qo(E[0]);
2274
2267
  }
2275
2268
  },
2276
2269
  [
2277
2270
  le,
2278
- Zo,
2279
- Ee,
2271
+ qo,
2272
+ Fe,
2280
2273
  bt,
2281
2274
  $t,
2282
2275
  ve,
@@ -2287,18 +2280,18 @@ const Ls = ({
2287
2280
  isMetadataPopupOpen: Xa,
2288
2281
  selectedFileForMetadata: qa,
2289
2282
  openMetadataPopup: Ya,
2290
- closeMetadataPopup: qo
2291
- } = Ps({ onGetInfo: G }), Ka = d(() => {
2292
- qo(), Ne?.clearMetadata?.();
2293
- }, [qo, Ne]), Qa = $(() => {
2283
+ closeMetadataPopup: Ko
2284
+ } = Ss({ onGetInfo: G }), Ka = d(() => {
2285
+ Ko(), De?.clearMetadata?.();
2286
+ }, [Ko, De]), Qa = $(() => {
2294
2287
  if (Y)
2295
- return $n(Y);
2288
+ return jn(Y);
2296
2289
  }, [Y]), Ja = {
2297
2290
  managerLabel: e,
2298
2291
  className: s,
2299
2292
  items: a,
2300
2293
  allowedFileTypes: Q,
2301
- maxSelectableFileSize: X,
2294
+ maxSelectableFileSize: Z,
2302
2295
  rootItem: n,
2303
2296
  filesLoading: i,
2304
2297
  treeOptions: {
@@ -2317,36 +2310,36 @@ const Ls = ({
2317
2310
  ...T,
2318
2311
  destinationFolderPath: gn,
2319
2312
  setDestinationFolderPath: tt,
2320
- header: lo,
2321
- onCreateFolder: De,
2313
+ header: co,
2314
+ onCreateFolder: xe,
2322
2315
  onCreateFolderValidate: W,
2323
2316
  folderCreationValidationMessages: be,
2324
- sourceFolder: fo
2317
+ sourceFolder: mo
2325
2318
  },
2326
2319
  currentPath: de,
2327
- setCurrentPath: Ee,
2320
+ setCurrentPath: Fe,
2328
2321
  searchValue: wn,
2329
- effectiveSearchValue: kt,
2322
+ effectiveSearchValue: Ot,
2330
2323
  setSearchValue: Lt,
2331
2324
  areHiddenFilesVisible: lt,
2332
2325
  toggleHiddenFilesVisibility: vn,
2333
2326
  isTreeCollapsed: yn,
2334
2327
  toggleTreeCollapse: vt,
2335
- setIsTreeCollapsed: to,
2328
+ setIsTreeCollapsed: no,
2336
2329
  selectedPaths: Ze,
2337
- selectedFiles: Jn,
2330
+ selectedFiles: eo,
2338
2331
  setSelectedPaths: it,
2339
2332
  clearSelection: Xe,
2340
2333
  currentFolder: re,
2341
2334
  gridRows: _a,
2342
- handleCopyTo: Nn,
2343
- handleMoveTo: xn,
2335
+ handleCopyTo: Dn,
2336
+ handleMoveTo: Nn,
2344
2337
  handleDuplicate: St ? No : bn,
2345
- handleSetCopiedFiles: io,
2338
+ handleSetCopiedFiles: lo,
2346
2339
  handleSetMovedFiles: Rn,
2347
2340
  openDestinationFolderPopup: nt,
2348
2341
  handleCloseDestinationFolderPopup: Tn,
2349
- handleOpenDestinationFolderPopup: Dt,
2342
+ handleOpenDestinationFolderPopup: xt,
2350
2343
  destinationFolderMode: In,
2351
2344
  handleGridAddSibling: Va,
2352
2345
  handleGridAddChild: $a,
@@ -2354,18 +2347,18 @@ const Ls = ({
2354
2347
  handleTreeAddChild: Za,
2355
2348
  handleDownloadFiles: ot,
2356
2349
  renamedPath: yt,
2357
- renamedItem: no,
2350
+ renamedItem: oo,
2358
2351
  forbiddenSymbolsRegExp: Qa,
2359
2352
  forbiddenSymbolsTooltip: J,
2360
- onRename: oo,
2361
- onRenameSave: ao,
2362
- onRenameCancel: ro,
2363
- onRenameValidate: so,
2364
- getDisplayName: Ot,
2365
- openDeleteConfirmation: qn || An,
2353
+ onRename: ao,
2354
+ onRenameSave: ro,
2355
+ onRenameCancel: so,
2356
+ onRenameValidate: io,
2357
+ getDisplayName: kt,
2358
+ openDeleteConfirmation: Yn || An,
2366
2359
  closeDeleteConfirmation: Pn,
2367
- confirmDelete: Nt,
2368
- deleteConfirmationOpen: mo,
2360
+ confirmDelete: Dt,
2361
+ deleteConfirmationOpen: Co,
2369
2362
  itemsToDelete: Sn,
2370
2363
  handlePathChange: qe,
2371
2364
  handleTreeItemClick: Ba,
@@ -2375,46 +2368,46 @@ const Ls = ({
2375
2368
  onTableFileClick: I,
2376
2369
  handleSelectionClick: S,
2377
2370
  onGridApiChange: A,
2378
- isDragging: Co,
2379
- uploadError: go,
2371
+ isDragging: go,
2372
+ uploadError: vo,
2380
2373
  handleDragEnter: Bt,
2381
- handleDragLeave: xt,
2374
+ handleDragLeave: Nt,
2382
2375
  handleDragOver: ct,
2383
2376
  handleDrop: Ln,
2384
2377
  clearUploadError: Mn,
2385
2378
  onUploadFiles: j,
2386
2379
  onValidateUpload: te,
2387
- maxFileSize: xe,
2380
+ maxFileSize: Ne,
2388
2381
  isDraggingOverWindow: ze,
2389
2382
  openFileDialog: dt,
2390
- fileInputRef: On,
2391
- newActions: ka,
2383
+ fileInputRef: kn,
2384
+ newActions: Oa,
2392
2385
  isNewButtonVisible: La,
2393
2386
  isNewButtonDisabled: za,
2394
- isCreatingFolder: D,
2387
+ isCreatingFolder: x,
2395
2388
  newFolderTempId: ee,
2396
2389
  createdFolderPath: ie,
2397
- newFolderDefaultName: Ie,
2398
- startFolderCreation: Xo,
2390
+ newFolderDefaultName: Re,
2391
+ startFolderCreation: Yo,
2399
2392
  cancelFolderCreation: Pa,
2400
2393
  saveFolderCreation: Ma,
2401
- validateFolderName: Oa,
2402
- conflictResolutionPopupOptions: x,
2394
+ validateFolderName: ka,
2395
+ conflictResolutionPopupOptions: N,
2403
2396
  conflictingFiles: Fn,
2404
- conflictResolutionOpen: co,
2397
+ conflictResolutionOpen: uo,
2405
2398
  closeConflictResolution: En,
2406
2399
  handleConflictReplace: _t,
2407
- handleConflictDuplicate: uo,
2408
- handleConflictCancel: ho,
2409
- handleConflictDecideForEach: po,
2410
- uploadConflictingFiles: vo,
2411
- uploadConflictResolutionOpen: yo,
2412
- closeUploadConflictResolution: kn,
2400
+ handleConflictDuplicate: ho,
2401
+ handleConflictCancel: po,
2402
+ handleConflictDecideForEach: fo,
2403
+ uploadConflictingFiles: yo,
2404
+ uploadConflictResolutionOpen: wo,
2405
+ closeUploadConflictResolution: On,
2413
2406
  handleUploadConflictReplace: Gt,
2414
- handleUploadConflictDuplicate: wo,
2407
+ handleUploadConflictDuplicate: xo,
2415
2408
  handleUploadConflictCancel: Do,
2416
2409
  handleUploadConflictDecideForEach: Vt,
2417
- fileMetadataPopupOptions: Ne,
2410
+ fileMetadataPopupOptions: De,
2418
2411
  isMetadataPopupOpen: Xa,
2419
2412
  selectedFileForMetadata: qa,
2420
2413
  openMetadataPopup: Ya,
@@ -2423,7 +2416,7 @@ const Ls = ({
2423
2416
  onUnshareFiles: ne,
2424
2417
  onRemoveFilesAccess: he,
2425
2418
  actionsRef: _e,
2426
- sharedByMePaths: ke,
2419
+ sharedByMePaths: Oe,
2427
2420
  onSearchFiles: Se,
2428
2421
  searchInProgress: H,
2429
2422
  searchResults: R,
@@ -2438,9 +2431,9 @@ const Ls = ({
2438
2431
  onManagePermissions: ln,
2439
2432
  onPreview: st,
2440
2433
  onOpenInNewTab: ft,
2441
- previewExtensions: jn,
2442
- isRenameFileAvailable: Zn,
2443
- isDuplicateFolderAvailable: Xn,
2434
+ previewExtensions: Zn,
2435
+ isRenameFileAvailable: Xn,
2436
+ isDuplicateFolderAvailable: qn,
2444
2437
  customUploadFileAction: mt,
2445
2438
  customBreakpointRef: un,
2446
2439
  nonClickableTableColumns: pn,
@@ -2454,7 +2447,7 @@ const Ls = ({
2454
2447
  onNewFolderDepthExceeded: At
2455
2448
  };
2456
2449
  return /* @__PURE__ */ o(Fa.Provider, { value: Ja, children: t });
2457
- }, zs = ({
2450
+ }, Os = ({
2458
2451
  disabledGridRowIds: e,
2459
2452
  gridRows: t,
2460
2453
  getDisabledTooltip: s,
@@ -2470,18 +2463,18 @@ const Ls = ({
2470
2463
  return window.addEventListener("scroll", u, !0), () => window.removeEventListener("scroll", u, !0);
2471
2464
  }, []), pe(() => {
2472
2465
  const u = (m) => {
2473
- const N = m.target.closest(
2466
+ const D = m.target.closest(
2474
2467
  ".ag-row"
2475
2468
  );
2476
- if (!N) {
2469
+ if (!D) {
2477
2470
  i((f) => f && null);
2478
2471
  return;
2479
2472
  }
2480
2473
  const h = new DOMParser().parseFromString(
2481
- N.getAttribute("row-id") || "",
2474
+ D.getAttribute("row-id") || "",
2482
2475
  "text/html"
2483
2476
  ).documentElement.textContent;
2484
- h && e.has(h) ? i((f) => f !== h ? (C(N.getBoundingClientRect()), h) : f) : i((f) => f && null);
2477
+ h && e.has(h) ? i((f) => f !== h ? (C(D.getBoundingClientRect()), h) : f) : i((f) => f && null);
2485
2478
  }, y = () => {
2486
2479
  i(null), C(null);
2487
2480
  }, g = document.querySelector(
@@ -2514,9 +2507,9 @@ const Ls = ({
2514
2507
  n,
2515
2508
  r
2516
2509
  ]);
2517
- return /* @__PURE__ */ o(Te, { children: v && p && Hr(
2518
- /* @__PURE__ */ Z(yr, { open: !0, placement: "top", children: [
2519
- /* @__PURE__ */ o(wr, { asChild: !0, children: /* @__PURE__ */ o(
2510
+ return /* @__PURE__ */ o(Ie, { children: v && p && Br(
2511
+ /* @__PURE__ */ X(vr, { open: !0, placement: "top", children: [
2512
+ /* @__PURE__ */ o(yr, { asChild: !0, children: /* @__PURE__ */ o(
2520
2513
  "div",
2521
2514
  {
2522
2515
  className: on(
@@ -2531,17 +2524,17 @@ const Ls = ({
2531
2524
  }
2532
2525
  }
2533
2526
  ) }),
2534
- /* @__PURE__ */ o(Dr, { className: "max-w-[300px] rounded border border-ui-outline-primary bg-ui-popover px-3 py-1.5 text-center text-primary shadow-md fill-ui-popover", children: v })
2527
+ /* @__PURE__ */ o(wr, { className: "max-w-[300px] rounded border border-ui-outline-primary bg-ui-popover px-3 py-1.5 text-center text-primary shadow-md fill-ui-popover", children: v })
2535
2528
  ] }),
2536
2529
  document.body
2537
2530
  ) });
2538
- }, da = () => typeof window < "u" && window.innerWidth < 640, Go = () => {
2539
- const [e, t] = z(da());
2531
+ }, ha = () => typeof window < "u" && window.innerWidth < 640, $o = () => {
2532
+ const [e, t] = z(ha());
2540
2533
  return pe(() => {
2541
- const s = () => t(da());
2534
+ const s = () => t(ha());
2542
2535
  return window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
2543
2536
  }, []), e;
2544
- }, _s = ({
2537
+ }, Ls = ({
2545
2538
  onClose: e,
2546
2539
  onConfirm: t,
2547
2540
  onFolderPopupPathChange: s,
@@ -2559,28 +2552,28 @@ const Ls = ({
2559
2552
  maxFileSize: g,
2560
2553
  header: m,
2561
2554
  sourceFolder: b,
2562
- disabledPathTooltip: N = "Unavailable for the original path. Please select another folder",
2555
+ disabledPathTooltip: D = "Unavailable for the original path. Please select another folder",
2563
2556
  path: h,
2564
2557
  collapsedFileTree: f = !1,
2565
2558
  alertProps: T,
2566
- processDestinationFolderPath: x,
2559
+ processDestinationFolderPath: N,
2567
2560
  ...F
2568
2561
  }) => {
2569
- const [I, S] = z(!1), [A, _] = z(!1), U = ce(null), P = Go(), O = d((j) => {
2562
+ const [I, S] = z(!1), [A, _] = z(!1), U = ce(null), P = $o(), k = d((j) => {
2570
2563
  S(j);
2571
2564
  }, []), B = $(() => {
2572
2565
  const j = [];
2573
2566
  return v && j.push({
2574
2567
  key: "add-folder",
2575
2568
  label: i,
2576
- icon: /* @__PURE__ */ o(Ko, { ...M, className: "text-secondary" }),
2569
+ icon: /* @__PURE__ */ o(Jo, { ...M, className: "text-secondary" }),
2577
2570
  onClick: () => {
2578
2571
  U.current?.createFolder(), _(!1);
2579
2572
  }
2580
2573
  }), c && j.push({
2581
2574
  key: "show-hidden-files",
2582
2575
  label: C,
2583
- icon: /* @__PURE__ */ o(Fo, { ...M, className: "text-secondary" }),
2576
+ icon: /* @__PURE__ */ o(Eo, { ...M, className: "text-secondary" }),
2584
2577
  onClick: () => {
2585
2578
  S((te) => !te), _(!1);
2586
2579
  }
@@ -2593,18 +2586,18 @@ const Ls = ({
2593
2586
  ]), L = d(
2594
2587
  (j) => {
2595
2588
  if (j) {
2596
- let te = x ? x(j) : j;
2589
+ let te = N ? N(j) : j;
2597
2590
  s?.(te), a?.(te);
2598
2591
  }
2599
2592
  },
2600
2593
  [
2601
2594
  s,
2602
2595
  a,
2603
- x
2596
+ N
2604
2597
  ]
2605
2598
  ), Y = p === ge.Copy ? "Copy to" : "Move to", J = $(() => !h || !b ? !1 : b === h, [h, b]);
2606
2599
  return /* @__PURE__ */ o(
2607
- Lo,
2600
+ zo,
2608
2601
  {
2609
2602
  open: n,
2610
2603
  onClose: () => {
@@ -2613,8 +2606,8 @@ const Ls = ({
2613
2606
  size: Un.Lg,
2614
2607
  dividerFooter: !0,
2615
2608
  dividers: !1,
2616
- className: "md:!h-[800px] !bg-layer-2",
2617
- footer: /* @__PURE__ */ Z("div", { className: "flex justify-between items-center gap-2 p-4 md:px-6", children: [
2609
+ className: "md:!h-[800px] !bg-layer-sunken",
2610
+ footer: /* @__PURE__ */ X("div", { className: "flex justify-between items-center gap-2 p-4 md:px-6", children: [
2618
2611
  /* @__PURE__ */ o("div", { className: "flex items-center gap-4 min-w-0", children: P ? /* @__PURE__ */ o(
2619
2612
  ht,
2620
2613
  {
@@ -2622,46 +2615,40 @@ const Ls = ({
2622
2615
  open: A,
2623
2616
  onOpenChange: _,
2624
2617
  children: /* @__PURE__ */ o(
2625
- ga,
2618
+ $n,
2626
2619
  {
2627
- className: "size-9 shrink-0",
2620
+ size: Bo.Large,
2628
2621
  "aria-label": "More options",
2629
- iconBefore: /* @__PURE__ */ o(
2630
- sn,
2631
- {
2632
- ...M,
2633
- className: "text-secondary"
2634
- }
2635
- )
2622
+ icon: /* @__PURE__ */ o(sn, { ...M })
2636
2623
  }
2637
2624
  )
2638
2625
  }
2639
- ) : /* @__PURE__ */ Z(Te, { children: [
2626
+ ) : /* @__PURE__ */ X(Ie, { children: [
2640
2627
  v && /* @__PURE__ */ o(
2641
2628
  nn,
2642
2629
  {
2643
2630
  label: i,
2644
2631
  appearance: va.Ghost,
2645
- iconBefore: /* @__PURE__ */ o(Ko, { ...M }),
2632
+ iconBefore: /* @__PURE__ */ o(Jo, { ...M }),
2646
2633
  onClick: () => {
2647
2634
  U.current?.createFolder();
2648
2635
  }
2649
2636
  }
2650
2637
  ),
2651
2638
  v && c && /* @__PURE__ */ o("div", { className: "w-px h-[26px] bg-controls-disable-accent my-2" }),
2652
- c && /* @__PURE__ */ o(Te, { children: /* @__PURE__ */ o("div", { className: "inline-flex items-center cursor-pointer", children: /* @__PURE__ */ o(
2639
+ c && /* @__PURE__ */ o(Ie, { children: /* @__PURE__ */ o("div", { className: "inline-flex items-center cursor-pointer", children: /* @__PURE__ */ o(
2653
2640
  ya,
2654
2641
  {
2655
2642
  label: C,
2656
2643
  isOn: I,
2657
- onChange: O,
2644
+ onChange: k,
2658
2645
  switchId: "hidden-files-switch-modal"
2659
2646
  }
2660
2647
  ) }) })
2661
2648
  ] }) }),
2662
- /* @__PURE__ */ Z("div", { className: "flex space-x-4 items-center", children: [
2649
+ /* @__PURE__ */ X("div", { className: "flex space-x-4 items-center", children: [
2663
2650
  /* @__PURE__ */ o(an, { onClick: e, label: "Cancel" }),
2664
- J ? /* @__PURE__ */ o(Gn, { tooltip: N, children: /* @__PURE__ */ o(
2651
+ J ? /* @__PURE__ */ o(Gn, { tooltip: D, children: /* @__PURE__ */ o(
2665
2652
  nn,
2666
2653
  {
2667
2654
  onClick: t,
@@ -2679,21 +2666,21 @@ const Ls = ({
2679
2666
  ] })
2680
2667
  ] }),
2681
2668
  header: m ?? Y,
2682
- children: /* @__PURE__ */ Z("div", { className: "bg-layer-2 h-full flex flex-col", children: [
2683
- T && /* @__PURE__ */ o("div", { className: "px-6 mb-4 pt-4", children: /* @__PURE__ */ o(Nr, { ...T }) }),
2669
+ children: /* @__PURE__ */ X("div", { className: "bg-layer-sunken h-full flex flex-col", children: [
2670
+ T && /* @__PURE__ */ o("div", { className: "px-6 mb-4 pt-4", children: /* @__PURE__ */ o(xr, { ...T }) }),
2684
2671
  /* @__PURE__ */ o("div", { className: "flex-1 min-h-0", children: /* @__PURE__ */ o(
2685
- pi,
2672
+ ui,
2686
2673
  {
2687
2674
  ...F,
2688
2675
  gridClassName: "size-full",
2689
- className: Fe(
2676
+ className: Ee(
2690
2677
  F.className,
2691
- "bg-layer-2 h-full flex pt-0"
2678
+ "bg-layer-sunken h-full flex pt-0"
2692
2679
  ),
2693
2680
  actionsRef: U,
2694
2681
  path: h,
2695
2682
  showHiddenFiles: I,
2696
- onShowHiddenFilesChange: O,
2683
+ onShowHiddenFilesChange: k,
2697
2684
  treeOptions: {
2698
2685
  ...F.treeOptions,
2699
2686
  collapsed: f,
@@ -2714,8 +2701,8 @@ const Ls = ({
2714
2701
  ] })
2715
2702
  }
2716
2703
  );
2717
- }, Bs = 12, Ws = 8;
2718
- function Hs({
2704
+ };
2705
+ function zs({
2719
2706
  actions: e,
2720
2707
  direction: t = en.Normal,
2721
2708
  moreButtonWidth: s = wa,
@@ -2724,8 +2711,8 @@ function Hs({
2724
2711
  dependencies: r = []
2725
2712
  }) {
2726
2713
  const l = ce(null), i = ce(null), p = ce(null), C = ce(null), c = ce([]), [v, u] = z(0), y = d(
2727
- (b, N) => {
2728
- const h = p.current?.offsetWidth ?? 0, f = C.current?.offsetWidth ?? 0, T = h + f, F = N.getBoundingClientRect().width - T - s - a * 2 - n * 2;
2714
+ (b, D) => {
2715
+ const h = p.current?.offsetWidth ?? 0, f = C.current?.offsetWidth ?? 0, T = h + f, F = D.getBoundingClientRect().width - T - s - a * 2 - n * 2;
2729
2716
  let I = 0, S = 0;
2730
2717
  if (t === en.Reverse)
2731
2718
  for (let A = b.length - 1; A >= 0 && (I += b[A] + a, !(I > F)); A--)
@@ -2742,10 +2729,10 @@ function Hs({
2742
2729
  fr(
2743
2730
  () => {
2744
2731
  if (!i.current || !l.current) return;
2745
- const N = Array.from(i.current.children).map(
2732
+ const D = Array.from(i.current.children).map(
2746
2733
  (h) => Math.ceil(h.getBoundingClientRect().width)
2747
2734
  );
2748
- c.current = N, N.length !== 0 && y(N, l.current);
2735
+ c.current = D, D.length !== 0 && y(D, l.current);
2749
2736
  },
2750
2737
  // Re-measure when the action list or layout-affecting deps (e.g. isMobile) change
2751
2738
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -2753,14 +2740,14 @@ function Hs({
2753
2740
  ), pe(() => {
2754
2741
  if (!l.current) return;
2755
2742
  let b = null;
2756
- const N = () => {
2743
+ const D = () => {
2757
2744
  b && cancelAnimationFrame(b), b = requestAnimationFrame(() => {
2758
2745
  if (!l.current) return;
2759
2746
  const f = l.current, T = c.current;
2760
2747
  T.length !== 0 && y(T, f);
2761
2748
  });
2762
- }, h = new ResizeObserver(N);
2763
- return h.observe(l.current), N(), () => {
2749
+ }, h = new ResizeObserver(D);
2750
+ return h.observe(l.current), D(), () => {
2764
2751
  b && cancelAnimationFrame(b), h.disconnect();
2765
2752
  };
2766
2753
  }, [
@@ -2781,40 +2768,32 @@ function Hs({
2781
2768
  }
2782
2769
  };
2783
2770
  }
2784
- const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCount: a }) => {
2785
- const n = Go(), {
2771
+ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCount: a }) => {
2772
+ const n = $o(), {
2786
2773
  refs: { containerRef: r, leftSectionRef: l, measureRef: i },
2787
2774
  visibleActions: p,
2788
2775
  hiddenActions: C
2789
- } = Hs({
2776
+ } = zs({
2790
2777
  actions: s,
2791
2778
  direction: en.Reverse,
2792
2779
  dependencies: [n],
2793
- actionsGap: Bs,
2794
- containerPadding: Ws
2780
+ actionsGap: _s,
2781
+ containerPadding: Bs
2795
2782
  }), c = e(a);
2796
- return /* @__PURE__ */ Z(Te, { children: [
2783
+ return /* @__PURE__ */ X(Ie, { children: [
2797
2784
  /* @__PURE__ */ o(
2798
2785
  "div",
2799
2786
  {
2800
2787
  ref: i,
2801
2788
  className: "absolute top-0 left-0 invisible pointer-events-none overflow-hidden whitespace-nowrap flex gap-3",
2802
- children: s.map(({ key: v, icon: u, title: y }) => /* @__PURE__ */ o(
2803
- an,
2804
- {
2805
- iconBefore: u,
2806
- label: y,
2807
- hideTitleOnMobile: !0
2808
- },
2809
- v
2810
- ))
2789
+ children: s.map(({ key: v, icon: u, title: y }) => /* @__PURE__ */ o(an, { iconBefore: u, label: y }, v))
2811
2790
  }
2812
2791
  ),
2813
- /* @__PURE__ */ Z(
2792
+ /* @__PURE__ */ X(
2814
2793
  "div",
2815
2794
  {
2816
2795
  ref: r,
2817
- className: "rounded bg-layer-0 p-2 flex justify-between items-center w-full",
2796
+ className: "rounded bg-layer-raised p-2 flex justify-between items-center w-full",
2818
2797
  role: "toolbar",
2819
2798
  "aria-label": "File bulk actions",
2820
2799
  children: [
@@ -2823,28 +2802,22 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
2823
2802
  {
2824
2803
  label: c,
2825
2804
  onClick: t,
2826
- textClassName: "text-accent-primary whitespace-nowrap",
2805
+ textClassName: "text-accent whitespace-nowrap",
2827
2806
  appearance: va.Ghost,
2828
- iconBefore: /* @__PURE__ */ o(rr, { ...M, className: "text-accent-primary" })
2807
+ iconBefore: /* @__PURE__ */ o(rr, { ...M })
2829
2808
  }
2830
2809
  ) }),
2831
- /* @__PURE__ */ Z("div", { className: "flex flex-1 w-full gap-3 items-center justify-end", children: [
2810
+ /* @__PURE__ */ X("div", { className: "flex flex-1 w-full gap-3 items-center justify-end", children: [
2832
2811
  C.length > 0 && /* @__PURE__ */ o(
2833
2812
  ht,
2834
2813
  {
2835
2814
  items: C,
2836
2815
  allowedPlacements: ["bottom", "bottom-start"],
2837
2816
  children: /* @__PURE__ */ o(
2838
- ga,
2817
+ $n,
2839
2818
  {
2840
2819
  className: "h-[38px]",
2841
- iconBefore: /* @__PURE__ */ o(
2842
- sn,
2843
- {
2844
- ...M,
2845
- className: "text-secondary hover:text-accent-primary"
2846
- }
2847
- )
2820
+ icon: /* @__PURE__ */ o(sn, { ...M })
2848
2821
  }
2849
2822
  )
2850
2823
  }
@@ -2856,10 +2829,9 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
2856
2829
  className: "!p-[9px]",
2857
2830
  iconBefore: u,
2858
2831
  label: g,
2859
- hideTitleOnMobile: !0,
2860
2832
  disabled: b,
2861
2833
  tooltipProps: { tooltip: y },
2862
- onClick: (N) => m?.({ key: v, domEvent: N })
2834
+ onClick: (D) => m?.({ key: v, domEvent: D })
2863
2835
  },
2864
2836
  v
2865
2837
  )
@@ -2869,7 +2841,7 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
2869
2841
  }
2870
2842
  )
2871
2843
  ] });
2872
- }, Gs = ({
2844
+ }, Hs = ({
2873
2845
  open: e,
2874
2846
  itemsToDelete: t,
2875
2847
  onClose: s,
@@ -2879,25 +2851,25 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
2879
2851
  titleRenderer: l,
2880
2852
  contentRenderer: i
2881
2853
  }) => {
2882
- const p = t.map((y) => y.name), c = l?.(p) || "Confirm Deleting Items", v = /* @__PURE__ */ Z("div", { className: "px-6 py-3 dial-small-text", children: [
2883
- /* @__PURE__ */ o("p", { className: "text-secondary mb-3", children: t.length === 1 ? /* @__PURE__ */ Z(Te, { children: [
2854
+ const p = t.map((y) => y.name), c = l?.(p) || "Confirm Deleting Items", v = /* @__PURE__ */ X("div", { className: "px-6 py-3 dial-small-text", children: [
2855
+ /* @__PURE__ */ o("p", { className: "text-secondary mb-3", children: t.length === 1 ? /* @__PURE__ */ X(Ie, { children: [
2884
2856
  "Do you want to delete file or folder",
2885
2857
  " ",
2886
- /* @__PURE__ */ Z("span", { className: "text-primary break-all", children: [
2858
+ /* @__PURE__ */ X("span", { className: "text-primary break-all", children: [
2887
2859
  '"',
2888
2860
  t[0].name,
2889
2861
  '"'
2890
2862
  ] }),
2891
2863
  "?"
2892
- ] }) : /* @__PURE__ */ Z(Te, { children: [
2864
+ ] }) : /* @__PURE__ */ X(Ie, { children: [
2893
2865
  "Do you want to delete the following",
2894
2866
  " ",
2895
2867
  /* @__PURE__ */ o("span", { className: "text-primary", children: t.length }),
2896
2868
  " items?"
2897
2869
  ] }) }),
2898
- t.length > 1 && /* @__PURE__ */ o(Te, { children: t.length <= 10 ? /* @__PURE__ */ o("ul", { className: "space-y-1 text-primary list-none", children: t.map((y) => /* @__PURE__ */ o("li", { className: "truncate", children: y.name }, y.path)) }) : /* @__PURE__ */ Z(Te, { children: [
2870
+ t.length > 1 && /* @__PURE__ */ o(Ie, { children: t.length <= 10 ? /* @__PURE__ */ o("ul", { className: "space-y-1 text-primary list-none", children: t.map((y) => /* @__PURE__ */ o("li", { className: "truncate", children: y.name }, y.path)) }) : /* @__PURE__ */ X(Ie, { children: [
2899
2871
  /* @__PURE__ */ o("ul", { className: "space-y-1 text-primary list-none mb-2", children: t.slice(0, 10).map((y) => /* @__PURE__ */ o("li", { className: "truncate", children: y.name }, y.path)) }),
2900
- /* @__PURE__ */ Z("p", { className: "text-secondary italic", children: [
2872
+ /* @__PURE__ */ X("p", { className: "text-secondary italic", children: [
2901
2873
  "... and ",
2902
2874
  t.length - 10,
2903
2875
  " more"
@@ -2905,19 +2877,19 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
2905
2877
  ] }) })
2906
2878
  ] }), u = i?.(p) || v;
2907
2879
  return /* @__PURE__ */ o(
2908
- xr,
2880
+ Dr,
2909
2881
  {
2910
2882
  open: e,
2911
2883
  header: c,
2912
2884
  confirmLabel: r,
2913
2885
  cancelLabel: n,
2914
- variant: br.Danger,
2886
+ variant: Nr.Danger,
2915
2887
  onClose: s,
2916
2888
  onConfirm: a,
2917
2889
  children: u
2918
2890
  }
2919
2891
  );
2920
- }, ua = (e) => e.split("/").map((t) => t.trim()).filter(Boolean), Vs = "w-full flex items-center justify-between gap-4", $s = "min-w-0 h-[38px] flex-1 overflow-hidden bg-layer-3 px-3 flex items-center rounded", js = "w-[260px]", Zs = ({
2892
+ }, pa = (e) => e.split("/").map((t) => t.trim()).filter(Boolean), Us = "w-full flex items-center justify-between gap-4", Gs = "min-w-0 h-[38px] flex-1 overflow-hidden bg-layer-raised px-3 flex items-center rounded", Vs = "w-[260px]", $s = ({
2921
2893
  ariaLabel: e = "Breadcrumb",
2922
2894
  labelClassName: t,
2923
2895
  onItemClick: s,
@@ -2935,31 +2907,31 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
2935
2907
  invalid: g,
2936
2908
  onSearchChange: m,
2937
2909
  searchClassName: b,
2938
- searchContainerClassName: N,
2910
+ searchContainerClassName: D,
2939
2911
  isCompactView: h = !1
2940
2912
  }) => {
2941
2913
  const f = $(() => {
2942
2914
  if (!a) return;
2943
- let A = ua(a);
2915
+ let A = pa(a);
2944
2916
  const _ = [...A];
2945
2917
  let U = 0;
2946
2918
  if (i) {
2947
- const O = ua(i);
2948
- if (O.length) {
2919
+ const k = pa(i);
2920
+ if (k.length) {
2949
2921
  const B = A.findIndex(
2950
- (L, Y) => O.every((J, j) => A[Y + j] === J)
2922
+ (L, Y) => k.every((J, j) => A[Y + j] === J)
2951
2923
  );
2952
- B !== -1 && (U = O.length, A = [
2924
+ B !== -1 && (U = k.length, A = [
2953
2925
  ...A.slice(0, B),
2954
- ...A.slice(B + O.length)
2926
+ ...A.slice(B + k.length)
2955
2927
  ]);
2956
2928
  }
2957
2929
  }
2958
2930
  if (!A.length) return [{ label: "/" }];
2959
- const P = A.map((O, B) => {
2931
+ const P = A.map((k, B) => {
2960
2932
  const L = B < A.length - U ? B : B + U, Y = _.slice(0, L + 1), J = typeof n == "function" ? n(Y, L) : void 0;
2961
2933
  return {
2962
- label: O,
2934
+ label: k,
2963
2935
  href: J,
2964
2936
  onClick: s ? (j) => {
2965
2937
  j.preventDefault(), s(J);
@@ -2967,11 +2939,11 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
2967
2939
  };
2968
2940
  });
2969
2941
  if (r && l) {
2970
- const O = r.split("/").filter(Boolean), B = a.split("/").filter(Boolean);
2971
- if (O.every(
2942
+ const k = r.split("/").filter(Boolean), B = a.split("/").filter(Boolean);
2943
+ if (k.every(
2972
2944
  (Y, J) => B[J] === Y
2973
2945
  ) && P.length > 0) {
2974
- const Y = P.slice(O.length);
2946
+ const Y = P.slice(k.length);
2975
2947
  return [
2976
2948
  {
2977
2949
  label: l,
@@ -2992,9 +2964,9 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
2992
2964
  l,
2993
2965
  n,
2994
2966
  s
2995
- ]), [T, x] = z(!1), F = d(() => {
2967
+ ]), [T, N] = z(!1), F = d(() => {
2996
2968
  if (h && !T) {
2997
- x(!0);
2969
+ N(!0);
2998
2970
  const A = document.getElementById(u);
2999
2971
  A && A.focus();
3000
2972
  }
@@ -3006,11 +2978,11 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3006
2978
  className: "!p-[9px]",
3007
2979
  iconBefore: /* @__PURE__ */ o(sr, { ...M }),
3008
2980
  onClick: () => {
3009
- x(!1), m?.("");
2981
+ N(!1), m?.("");
3010
2982
  }
3011
2983
  }
3012
- ) : /* @__PURE__ */ o("div", { className: $s, children: /* @__PURE__ */ o(
3013
- Tr,
2984
+ ) : /* @__PURE__ */ o("div", { className: Gs, children: /* @__PURE__ */ o(
2985
+ br,
3014
2986
  {
3015
2987
  pathItems: f,
3016
2988
  ariaLabel: e,
@@ -3026,11 +2998,11 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3026
2998
  t,
3027
2999
  m
3028
3000
  ]);
3029
- return /* @__PURE__ */ Z(
3001
+ return /* @__PURE__ */ X(
3030
3002
  "div",
3031
3003
  {
3032
- className: Fe(
3033
- Vs,
3004
+ className: Ee(
3005
+ Us,
3034
3006
  {
3035
3007
  "gap-3": h
3036
3008
  },
@@ -3042,7 +3014,7 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3042
3014
  c && /* @__PURE__ */ o(
3043
3015
  "div",
3044
3016
  {
3045
- className: Fe(js, {
3017
+ className: Ee(Vs, {
3046
3018
  "w-[40px]": h && !T,
3047
3019
  "w-full": h && T
3048
3020
  }),
@@ -3050,7 +3022,7 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3050
3022
  "aria-label": "Search",
3051
3023
  onClick: F,
3052
3024
  children: /* @__PURE__ */ o(
3053
- Rr,
3025
+ Tr,
3054
3026
  {
3055
3027
  id: u,
3056
3028
  value: v ?? "",
@@ -3060,7 +3032,7 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3060
3032
  invalid: g,
3061
3033
  className: b,
3062
3034
  wrapperClassName: h && !T ? "pl-2.5" : "",
3063
- containerClassName: N
3035
+ containerClassName: D
3064
3036
  }
3065
3037
  )
3066
3038
  }
@@ -3068,7 +3040,7 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3068
3040
  ]
3069
3041
  }
3070
3042
  );
3071
- }, Xs = ({
3043
+ }, js = ({
3072
3044
  tabs: e,
3073
3045
  activeTab: t,
3074
3046
  onTabChange: s,
@@ -3076,7 +3048,7 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3076
3048
  onToggleHiddenFiles: n,
3077
3049
  isNewButtonVisible: r,
3078
3050
  isNewButtonDisabled: l,
3079
- newButtonVariant: i = Ir.Primary,
3051
+ newButtonVariant: i = Rr.Primary,
3080
3052
  newButtonDropdownItems: p = [],
3081
3053
  newButtonLabel: C = "New",
3082
3054
  hiddenFilesSwitcherLabel: c = "Hidden files",
@@ -3085,11 +3057,11 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3085
3057
  showHiddenFilesToggle: y = !0,
3086
3058
  disabledNewButtonTooltip: g
3087
3059
  }) => {
3088
- const m = Go(), b = $(() => [
3060
+ const m = $o(), b = $(() => [
3089
3061
  {
3090
3062
  key: "hidden-files-switch",
3091
3063
  label: a ? u : v,
3092
- icon: a ? /* @__PURE__ */ o(ir, { ...M, className: "text-secondary" }) : /* @__PURE__ */ o(Fo, { ...M, className: "text-secondary" }),
3064
+ icon: a ? /* @__PURE__ */ o(ir, { ...M, className: "text-secondary" }) : /* @__PURE__ */ o(Eo, { ...M, className: "text-secondary" }),
3093
3065
  onClick: () => n?.(!a)
3094
3066
  }
3095
3067
  ], [
@@ -3097,35 +3069,32 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3097
3069
  u,
3098
3070
  v,
3099
3071
  n
3100
- ]), N = () => e && t && s ? /* @__PURE__ */ o(
3101
- Fr,
3072
+ ]), D = () => e && t && s ? /* @__PURE__ */ o(
3073
+ Ir,
3102
3074
  {
3103
3075
  tabs: e,
3104
3076
  activeTab: t,
3105
3077
  onClick: (T) => s(T),
3106
- screenThreshold: Er.Tablet,
3078
+ screenThreshold: Fr.Tablet,
3107
3079
  smallScreenContainerClassName: "w-fit bg-transparent h-[38px] overflow-hidden",
3108
3080
  smallScreenDropdownItemClassName: "px-3 h-[38px]"
3109
3081
  }
3110
- ) : null, h = () => /* @__PURE__ */ Z(Te, { children: [
3111
- y && /* @__PURE__ */ Z(Te, { children: [
3112
- /* @__PURE__ */ o(
3113
- ya,
3114
- {
3115
- switchId: "hidden-files-switch",
3116
- label: c,
3117
- isOn: a,
3118
- onChange: n
3119
- }
3120
- ),
3121
- /* @__PURE__ */ o("div", { className: "h-6 border-l border-primary" })
3122
- ] }),
3082
+ ) : null, h = () => /* @__PURE__ */ X(Ie, { children: [
3083
+ y && /* @__PURE__ */ o(
3084
+ ya,
3085
+ {
3086
+ switchId: "hidden-files-switch",
3087
+ label: c,
3088
+ isOn: a,
3089
+ onChange: n
3090
+ }
3091
+ ),
3123
3092
  r && /* @__PURE__ */ o(
3124
3093
  Gn,
3125
3094
  {
3126
3095
  tooltip: l && g ? g : void 0,
3127
3096
  children: /* @__PURE__ */ o(
3128
- ea,
3097
+ na,
3129
3098
  {
3130
3099
  label: C,
3131
3100
  variant: i,
@@ -3135,17 +3104,17 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3135
3104
  )
3136
3105
  }
3137
3106
  )
3138
- ] }), f = () => /* @__PURE__ */ Z(Te, { children: [
3107
+ ] }), f = () => /* @__PURE__ */ X(Ie, { children: [
3139
3108
  /* @__PURE__ */ o(
3140
3109
  ht,
3141
3110
  {
3142
3111
  items: b,
3143
3112
  allowedPlacements: ["bottom", "bottom-start"],
3144
3113
  children: /* @__PURE__ */ o(
3145
- Sr,
3114
+ $n,
3146
3115
  {
3147
- size: Ca.Small,
3148
- icon: /* @__PURE__ */ o(sn, { stroke: 2, size: ko.SM })
3116
+ size: Bo.Small,
3117
+ icon: /* @__PURE__ */ o(sn, { stroke: 2, size: Lo.SM })
3149
3118
  }
3150
3119
  )
3151
3120
  }
@@ -3155,7 +3124,7 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3155
3124
  {
3156
3125
  tooltip: l && g ? g : void 0,
3157
3126
  children: /* @__PURE__ */ o(
3158
- ea,
3127
+ na,
3159
3128
  {
3160
3129
  label: C,
3161
3130
  variant: i,
@@ -3166,11 +3135,11 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3166
3135
  }
3167
3136
  ) : null
3168
3137
  ] });
3169
- return /* @__PURE__ */ Z("div", { className: "flex w-full justify-between gap-4 items-center overflow-x-auto", children: [
3170
- /* @__PURE__ */ o("div", { className: "flex-1 min-w-0", children: N() }),
3138
+ return /* @__PURE__ */ X("div", { className: "flex w-full justify-between gap-4 items-center overflow-x-auto", children: [
3139
+ /* @__PURE__ */ o("div", { className: "flex-1 min-w-0", children: D() }),
3171
3140
  /* @__PURE__ */ o("div", { className: "flex gap-2 shrink-0 items-center", children: m ? f() : h() })
3172
3141
  ] });
3173
- }, qs = 100, Kt = 16, Ue = "text-secondary", Wn = "text-primary min-w-0", Ys = "text-primary break-words min-w-0", Qt = "bg-layer-2", Ks = ({
3142
+ }, Zs = 100, Kt = 16, Ue = "text-secondary", Wn = "text-primary min-w-0", Xs = "text-primary break-words min-w-0", Qt = "bg-layer-sunken", qs = ({
3174
3143
  open: e,
3175
3144
  onClose: t,
3176
3145
  fileMetadata: s,
@@ -3184,7 +3153,7 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3184
3153
  dateLocale: c = "en-US",
3185
3154
  dateOptions: v
3186
3155
  }) => /* @__PURE__ */ o(
3187
- Lo,
3156
+ zo,
3188
3157
  {
3189
3158
  open: e,
3190
3159
  onClose: t,
@@ -3195,8 +3164,8 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3195
3164
  "div",
3196
3165
  {
3197
3166
  className: "grid gap-4 items-center dial-small-text",
3198
- style: { gridTemplateColumns: `${qs}px 1fr` },
3199
- children: a ? /* @__PURE__ */ Z(Te, { children: [
3167
+ style: { gridTemplateColumns: `${Zs}px 1fr` },
3168
+ children: a ? /* @__PURE__ */ X(Ie, { children: [
3200
3169
  /* @__PURE__ */ o("div", { className: Ue, children: r }),
3201
3170
  /* @__PURE__ */ o(
3202
3171
  Xt,
@@ -3247,14 +3216,14 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3247
3216
  className: Qt
3248
3217
  }
3249
3218
  )
3250
- ] }) : s ? /* @__PURE__ */ Z(Te, { children: [
3219
+ ] }) : s ? /* @__PURE__ */ X(Ie, { children: [
3251
3220
  /* @__PURE__ */ o("div", { className: Ue, children: r }),
3252
3221
  /* @__PURE__ */ o("div", { className: Wn, children: /* @__PURE__ */ o(Tt, { text: s.name }) }),
3253
3222
  /* @__PURE__ */ o("div", { className: Ue, children: i }),
3254
3223
  /* @__PURE__ */ o("div", { className: Wn, children: /* @__PURE__ */ o(
3255
3224
  Tt,
3256
3225
  {
3257
- text: ls(
3226
+ text: ss(
3258
3227
  s.updatedAt,
3259
3228
  c,
3260
3229
  v
@@ -3271,15 +3240,15 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3271
3240
  /* @__PURE__ */ o("div", { className: Ue, children: C }),
3272
3241
  /* @__PURE__ */ o("div", { className: Wn, children: /* @__PURE__ */ o(Tt, { text: s.author || "—" }) }),
3273
3242
  /* @__PURE__ */ o("div", { className: Ue, children: l }),
3274
- /* @__PURE__ */ o("div", { className: Ys, children: decodeURIComponent(s.path) })
3243
+ /* @__PURE__ */ o("div", { className: Xs, children: decodeURIComponent(s.path) })
3275
3244
  ] }) : null
3276
3245
  }
3277
3246
  ) })
3278
3247
  }
3279
- ), Qs = {
3248
+ ), Ys = {
3280
3249
  size: 10,
3281
3250
  stroke: 2
3282
- }, Js = 26, Jt = "__new_folder", ei = ({
3251
+ }, Ks = 26, Jt = "__new_folder", Qs = ({
3283
3252
  name: e,
3284
3253
  type: t,
3285
3254
  shared: s = !1,
@@ -3289,10 +3258,10 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3289
3258
  fileExtension: l,
3290
3259
  ...i
3291
3260
  }) => {
3292
- const p = (C) => /* @__PURE__ */ Z("span", { className: "inline-flex relative text-secondary", role: "img", children: [
3261
+ const p = (C) => /* @__PURE__ */ X("span", { className: "inline-flex relative text-secondary", role: "img", children: [
3293
3262
  C,
3294
3263
  s && /* @__PURE__ */ o("span", { className: "absolute -bottom-0.5 -left-0.5", children: /* @__PURE__ */ o(
3295
- ta,
3264
+ oa,
3296
3265
  {
3297
3266
  className: n,
3298
3267
  sharedIndicatorTooltip: r
@@ -3300,17 +3269,17 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3300
3269
  ) })
3301
3270
  ] });
3302
3271
  if (a)
3303
- return p(/* @__PURE__ */ o(Pr, {}));
3272
+ return p(/* @__PURE__ */ o(Sr, {}));
3304
3273
  if (t === We.File) {
3305
3274
  const C = l || (e.includes(".") ? e.split(".").pop() : void 0);
3306
3275
  return /* @__PURE__ */ o(
3307
- Ar,
3276
+ Er,
3308
3277
  {
3309
3278
  ...i,
3310
3279
  extension: C ?? "",
3311
3280
  className: "text-secondary",
3312
3281
  indicator: s ? /* @__PURE__ */ o(
3313
- ta,
3282
+ oa,
3314
3283
  {
3315
3284
  className: n,
3316
3285
  sharedIndicatorTooltip: r
@@ -3322,10 +3291,10 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3322
3291
  }
3323
3292
  return t === We.Folder ? p(
3324
3293
  /* @__PURE__ */ o(
3325
- zo,
3294
+ _o,
3326
3295
  {
3327
3296
  icon: /* @__PURE__ */ o(
3328
- ha,
3297
+ fa,
3329
3298
  {
3330
3299
  className: i.className,
3331
3300
  size: i.size ?? M.size,
@@ -3336,7 +3305,7 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3336
3305
  }
3337
3306
  )
3338
3307
  ) : null;
3339
- }, ti = ({
3308
+ }, Js = ({
3340
3309
  name: e,
3341
3310
  type: t,
3342
3311
  elementId: s,
@@ -3354,19 +3323,19 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3354
3323
  inputRef: g,
3355
3324
  onChange: m,
3356
3325
  sharedIndicatorClassName: b,
3357
- sharedIndicatorTooltip: N,
3326
+ sharedIndicatorTooltip: D,
3358
3327
  fileExtension: h
3359
3328
  }) => {
3360
3329
  const f = () => {
3361
3330
  const T = v?.startsWith(
3362
- `${Io.Warning}__`
3331
+ `${Fo.Warning}__`
3363
3332
  );
3364
3333
  if (!c && !T) return null;
3365
- const x = v?.replace(
3366
- `${Io.Warning}__`,
3334
+ const N = v?.replace(
3335
+ `${Fo.Warning}__`,
3367
3336
  ""
3368
3337
  );
3369
- return /* @__PURE__ */ o(Gn, { tooltip: x, children: y || (T ? /* @__PURE__ */ o(
3338
+ return /* @__PURE__ */ o(Gn, { tooltip: N, children: y || (T ? /* @__PURE__ */ o(
3370
3339
  cr,
3371
3340
  {
3372
3341
  ...M,
@@ -3382,9 +3351,9 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3382
3351
  }
3383
3352
  )) });
3384
3353
  };
3385
- return /* @__PURE__ */ Z("div", { className: "flex gap-2 items-center", ...Mr, children: [
3354
+ return /* @__PURE__ */ X("div", { className: "flex gap-2 items-center", ...Ar, children: [
3386
3355
  /* @__PURE__ */ o(
3387
- ei,
3356
+ Qs,
3388
3357
  {
3389
3358
  name: e,
3390
3359
  type: t,
@@ -3397,13 +3366,13 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3397
3366
  shared: n,
3398
3367
  fileExtension: h,
3399
3368
  sharedIndicatorClassName: b,
3400
- sharedIndicatorTooltip: N
3369
+ sharedIndicatorTooltip: D
3401
3370
  }
3402
3371
  ),
3403
3372
  /* @__PURE__ */ o(
3404
- Or,
3373
+ Pr,
3405
3374
  {
3406
- containerClassName: Fe(
3375
+ containerClassName: Ee(
3407
3376
  "!h-6 py-[1px] pl-[7px] pr-[7px]",
3408
3377
  u
3409
3378
  ),
@@ -3434,12 +3403,12 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3434
3403
  inputContainerClassName: g,
3435
3404
  sharedIndicatorClassName: m,
3436
3405
  sharedIndicatorTooltip: b,
3437
- hideTooltip: N = !1,
3406
+ hideTooltip: D = !1,
3438
3407
  forbiddenSymbolsRegExp: h,
3439
3408
  forbiddenSymbolsTooltip: f,
3440
3409
  ...T
3441
3410
  }) => {
3442
- const { value: x, invalid: F, invalidMessage: I, onChange: S, inputRef: A } = kr({
3411
+ const { value: N, invalid: F, invalidMessage: I, onChange: S, inputRef: A } = Mr({
3443
3412
  value: e,
3444
3413
  isEditing: a,
3445
3414
  isCreating: r,
@@ -3451,7 +3420,7 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3451
3420
  onCreateFolderSave: y
3452
3421
  });
3453
3422
  if (!a && !r) {
3454
- const _ = Uo(
3423
+ const _ = Vo(
3455
3424
  {
3456
3425
  name: e,
3457
3426
  isFolder: t === We.Folder
@@ -3460,7 +3429,7 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3460
3429
  f
3461
3430
  ), U = !!_;
3462
3431
  return t === We.Folder ? /* @__PURE__ */ o(
3463
- Mo,
3432
+ ko,
3464
3433
  {
3465
3434
  name: e,
3466
3435
  loading: n,
@@ -3468,7 +3437,7 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3468
3437
  iconSize: i,
3469
3438
  className: "max-w-[428px] truncate",
3470
3439
  sharedIndicatorClassName: m,
3471
- hideTooltip: N,
3440
+ hideTooltip: D,
3472
3441
  isInvalidName: U,
3473
3442
  tooltipContent: _
3474
3443
  }
@@ -3481,17 +3450,17 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3481
3450
  shared: l,
3482
3451
  iconSize: i,
3483
3452
  sharedIndicatorClassName: m,
3484
- hideTooltip: N,
3453
+ hideTooltip: D,
3485
3454
  isInvalidName: U,
3486
3455
  tooltipContent: _
3487
3456
  }
3488
3457
  );
3489
3458
  }
3490
3459
  return /* @__PURE__ */ o(
3491
- ti,
3460
+ Js,
3492
3461
  {
3493
3462
  type: t,
3494
- name: x,
3463
+ name: N,
3495
3464
  elementId: s,
3496
3465
  inputInvalid: F,
3497
3466
  inputInvalidMessage: I,
@@ -3504,7 +3473,7 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3504
3473
  sharedIndicatorClassName: m
3505
3474
  }
3506
3475
  );
3507
- }, ni = ({
3476
+ }, ei = ({
3508
3477
  items: e,
3509
3478
  showFiles: t = !1,
3510
3479
  expandedPaths: s,
@@ -3522,11 +3491,11 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3522
3491
  rootItemPath: g,
3523
3492
  onItemClick: m,
3524
3493
  getContextMenuItems: b,
3525
- onRenameSave: N,
3494
+ onRenameSave: D,
3526
3495
  onRenameCancel: h,
3527
3496
  onRenameValidate: f,
3528
3497
  onExpandedPathsChange: T,
3529
- onCreateFolderSave: x,
3498
+ onCreateFolderSave: N,
3530
3499
  onCreateFolderCancel: F,
3531
3500
  forbiddenSymbolsRegExp: I,
3532
3501
  forbiddenSymbolsTooltip: S,
@@ -3537,7 +3506,7 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3537
3506
  onExpandedPathsChange: T
3538
3507
  }), P = (B) => {
3539
3508
  m?.(B), U(B.path);
3540
- }, O = (B, L, Y) => {
3509
+ }, k = (B, L, Y) => {
3541
3510
  let J = B;
3542
3511
  return Y && Y.path === u && (J = [
3543
3512
  {
@@ -3545,39 +3514,39 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3545
3514
  id: Jt,
3546
3515
  items: [],
3547
3516
  name: A || "",
3548
- nodeType: k.FOLDER,
3517
+ nodeType: O.FOLDER,
3549
3518
  parentPath: u,
3550
3519
  path: `${u}/${Jt}`
3551
3520
  },
3552
3521
  ...B
3553
3522
  ]), J.map((j) => {
3554
- const { path: te, nodeType: fe, name: we, items: xe } = j, ue = fe === k.FOLDER;
3523
+ const { path: te, nodeType: fe, name: we, items: Ne } = j, ue = fe === O.FOLDER;
3555
3524
  if (!c && Ra(j)) return null;
3556
3525
  if (!ue && !t) return;
3557
- const Re = Array.isArray(xe) && xe.length > 0 && xe.some((H) => H.nodeType === k.FOLDER || t), De = _.has(te), W = l === te, be = a.has(te), Ne = v === te || te === `${u}/${Jt}`, G = n.has(te), ne = r.has(te), he = g && y && te === g && ue, _e = f && ((H) => f(H, j)), ke = W ? "bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded" : "border-l-2 border-l-transparent", Se = he ? [] : b?.(j) ?? [], R = I ? Uo(
3526
+ const Te = Array.isArray(Ne) && Ne.length > 0 && Ne.some((H) => H.nodeType === O.FOLDER || t), xe = _.has(te), W = l === te, be = a.has(te), De = v === te || te === `${u}/${Jt}`, G = n.has(te), ne = r.has(te), he = g && y && te === g && ue, _e = f && ((H) => f(H, j)), Oe = W ? "bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded" : "border-l-2 border-l-transparent", Se = he ? [] : b?.(j) ?? [], R = I ? Vo(
3558
3527
  { name: j.name, isFolder: ue },
3559
3528
  I,
3560
3529
  S
3561
3530
  ) : void 0;
3562
- return /* @__PURE__ */ o("div", { className: "cursor-pointer text-secondary", children: /* @__PURE__ */ Z("div", { className: "flex flex-col w-full", "aria-label": "folder", children: [
3531
+ return /* @__PURE__ */ o("div", { className: "cursor-pointer text-secondary", children: /* @__PURE__ */ X("div", { className: "flex flex-col w-full", "aria-label": "folder", children: [
3563
3532
  /* @__PURE__ */ o(
3564
3533
  ht,
3565
3534
  {
3566
- trigger: [fa.ContextMenu],
3535
+ trigger: [Ca.ContextMenu],
3567
3536
  className: "w-full",
3568
3537
  anchorToMouse: !0,
3569
3538
  items: Se,
3570
- children: /* @__PURE__ */ Z(
3539
+ children: /* @__PURE__ */ X(
3571
3540
  "div",
3572
3541
  {
3573
- style: { paddingLeft: `${L * Js}px` },
3574
- className: Fe(
3542
+ style: { paddingLeft: `${L * Ks}px` },
3543
+ className: Ee(
3575
3544
  "py-1 gap-[2px] dial-small-text flex justify-between hover:bg-accent-primary-alpha rounded group/item w-full mb-[2px] relative",
3576
- ke
3545
+ Oe
3577
3546
  ),
3578
3547
  "aria-selected": W,
3579
3548
  children: [
3580
- !Ne && /* @__PURE__ */ o(
3549
+ !De && /* @__PURE__ */ o(
3581
3550
  "div",
3582
3551
  {
3583
3552
  className: "absolute size-full left-0 top-0 z-0",
@@ -3588,16 +3557,16 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3588
3557
  "div",
3589
3558
  {
3590
3559
  className: "relative flex flex-row truncate items-center w-fit h-6 gap-x-1 pl-1",
3591
- onClick: () => !Ne && P(j),
3592
- children: /* @__PURE__ */ Z(Te, { children: [
3560
+ onClick: () => !De && P(j),
3561
+ children: /* @__PURE__ */ X(Ie, { children: [
3593
3562
  ue && /* @__PURE__ */ o(
3594
3563
  dr,
3595
3564
  {
3596
- ...Qs,
3565
+ ...Ys,
3597
3566
  className: on(
3598
3567
  "flex-shrink-0",
3599
- De && "rotate-90 transition-all",
3600
- G && !Re && "text-transparent"
3568
+ xe && "rotate-90 transition-all",
3569
+ G && !Te && "text-transparent"
3601
3570
  )
3602
3571
  }
3603
3572
  ),
@@ -3609,7 +3578,7 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3609
3578
  type: ue ? We.Folder : We.File,
3610
3579
  loading: be,
3611
3580
  shared: ne,
3612
- sharedIndicatorClassName: Fe(
3581
+ sharedIndicatorClassName: Ee(
3613
3582
  "group-hover/item:bg-accent-primary-alpha",
3614
3583
  W && "bg-accent-primary-alpha"
3615
3584
  ),
@@ -3617,12 +3586,12 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3617
3586
  forbiddenSymbolsRegExp: I,
3618
3587
  forbiddenSymbolsTooltip: R,
3619
3588
  ...!he && {
3620
- editing: Ne,
3589
+ editing: De,
3621
3590
  creating: te === `${u}/${Jt}`,
3622
- onSave: N,
3591
+ onSave: D,
3623
3592
  onCancel: h,
3624
3593
  validate: _e,
3625
- onCreateFolderSave: x,
3594
+ onCreateFolderSave: N,
3626
3595
  onCreateFolderCancel: F
3627
3596
  }
3628
3597
  }
@@ -3630,7 +3599,7 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3630
3599
  ] })
3631
3600
  }
3632
3601
  ),
3633
- Se.length > 0 && !Ne && !he && /* @__PURE__ */ o("div", { className: "flex-1 flex justify-end", children: /* @__PURE__ */ o(
3602
+ Se.length > 0 && !De && !he && /* @__PURE__ */ o("div", { className: "flex-1 flex justify-end", children: /* @__PURE__ */ o(
3634
3603
  ht,
3635
3604
  {
3636
3605
  placement: "bottom-start",
@@ -3638,9 +3607,9 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3638
3607
  items: Se,
3639
3608
  className: "sticky right-0",
3640
3609
  children: /* @__PURE__ */ o(
3641
- zo,
3610
+ _o,
3642
3611
  {
3643
- className: "invisible group-hover/item:visible text-secondary mx-2 flex flex-row gap-2 hover:text-accent-primary",
3612
+ className: "invisible group-hover/item:visible text-secondary mx-2 flex flex-row gap-2 hover:text-accent",
3644
3613
  icon: /* @__PURE__ */ o(sn, { ...M })
3645
3614
  }
3646
3615
  )
@@ -3651,19 +3620,19 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3651
3620
  )
3652
3621
  }
3653
3622
  ),
3654
- De && (xe || j?.path === u) && O(xe || [], L + 1, j)
3623
+ xe && (Ne || j?.path === u) && k(Ne || [], L + 1, j)
3655
3624
  ] }) }, `${te}-children`);
3656
3625
  });
3657
3626
  };
3658
- return /* @__PURE__ */ o("div", { className: "flex-1 size-full overflow-y-auto", "aria-label": "folders-tree", children: e.length > 0 ? O(e, 0) : /* @__PURE__ */ o(
3659
- Da,
3627
+ return /* @__PURE__ */ o("div", { className: "flex-1 size-full overflow-y-auto", "aria-label": "folders-tree", children: e.length > 0 ? k(e, 0) : /* @__PURE__ */ o(
3628
+ xa,
3660
3629
  {
3661
3630
  title: i,
3662
3631
  description: p,
3663
3632
  icon: C
3664
3633
  }
3665
3634
  ) });
3666
- }, oi = ({
3635
+ }, ti = ({
3667
3636
  selectedFiles: e,
3668
3637
  actionLabels: t,
3669
3638
  onDuplicate: s,
@@ -3682,7 +3651,7 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3682
3651
  const g = [], m = Array.from(e.values());
3683
3652
  if (!m.length || !t)
3684
3653
  return g;
3685
- const b = $n(y), N = b ? m.some((h) => b.test(h.name)) : !1;
3654
+ const b = jn(y), D = b ? m.some((h) => b.test(h.name)) : !1;
3686
3655
  if (t[w.RemoveAccess] && i) {
3687
3656
  const h = m.some(
3688
3657
  (f) => !v?.has(f.path)
@@ -3692,18 +3661,18 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3692
3661
  label: t[w.RemoveAccess],
3693
3662
  title: t[w.RemoveAccess],
3694
3663
  disabled: h,
3695
- icon: /* @__PURE__ */ o(Eo, { size: M.size, className: "text-secondary" }),
3664
+ icon: /* @__PURE__ */ o(So, { size: M.size, className: "text-secondary" }),
3696
3665
  onClick: () => {
3697
3666
  i(m), u();
3698
3667
  }
3699
3668
  });
3700
3669
  }
3701
- if (t[w.Move] && !N && g.push({
3670
+ if (t[w.Move] && !D && g.push({
3702
3671
  key: w.Move,
3703
3672
  label: t[w.Move],
3704
3673
  title: t[w.Move],
3705
3674
  icon: /* @__PURE__ */ o(
3706
- Bo,
3675
+ Ho,
3707
3676
  {
3708
3677
  width: M.size,
3709
3678
  height: M.size,
@@ -3711,12 +3680,12 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3711
3680
  }
3712
3681
  ),
3713
3682
  onClick: () => n(m)
3714
- }), t[w.Copy] && !N && g.push({
3683
+ }), t[w.Copy] && !D && g.push({
3715
3684
  key: w.Copy,
3716
3685
  label: t[w.Copy],
3717
3686
  title: t[w.Copy],
3718
3687
  icon: /* @__PURE__ */ o(
3719
- _o,
3688
+ Wo,
3720
3689
  {
3721
3690
  width: M.size,
3722
3691
  height: M.size,
@@ -3724,11 +3693,11 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3724
3693
  }
3725
3694
  ),
3726
3695
  onClick: () => a(m)
3727
- }), t[w.Duplicate] && !N && g.push({
3696
+ }), t[w.Duplicate] && !D && g.push({
3728
3697
  key: w.Duplicate,
3729
3698
  label: t[w.Duplicate],
3730
3699
  title: t[w.Duplicate],
3731
- icon: /* @__PURE__ */ o(So, { ...M, className: "text-secondary" }),
3700
+ icon: /* @__PURE__ */ o(Ao, { ...M, className: "text-secondary" }),
3732
3701
  onClick: () => s(m)
3733
3702
  }), t[w.Delete]) {
3734
3703
  const h = m.some(
@@ -3738,7 +3707,7 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3738
3707
  key: w.Delete,
3739
3708
  label: t[w.Delete],
3740
3709
  title: t[w.Delete],
3741
- icon: /* @__PURE__ */ o(Ao, { ...M, className: "text-secondary" }),
3710
+ icon: /* @__PURE__ */ o(Po, { ...M, className: "text-secondary" }),
3742
3711
  disabled: h,
3743
3712
  tooltip: h ? "Selected items contain item which can not be deleted" : void 0,
3744
3713
  onClick: () => {
@@ -3747,11 +3716,11 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3747
3716
  }
3748
3717
  });
3749
3718
  }
3750
- if (t[w.Download] && !N && g.push({
3719
+ if (t[w.Download] && !D && g.push({
3751
3720
  key: w.Download,
3752
3721
  label: t[w.Download],
3753
3722
  title: t[w.Download],
3754
- icon: /* @__PURE__ */ o(Po, { ...M, className: "text-secondary" }),
3723
+ icon: /* @__PURE__ */ o(Mo, { ...M, className: "text-secondary" }),
3755
3724
  onClick: () => r(m)
3756
3725
  }), t[w.Unshare] && l) {
3757
3726
  const h = m.some(
@@ -3764,7 +3733,7 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3764
3733
  disabled: h,
3765
3734
  tooltip: h ? "Selected items contain item which can not be unshared" : void 0,
3766
3735
  icon: /* @__PURE__ */ o(
3767
- Wo,
3736
+ Uo,
3768
3737
  {
3769
3738
  width: M.size,
3770
3739
  height: M.size,
@@ -3792,7 +3761,7 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3792
3761
  u,
3793
3762
  v,
3794
3763
  y
3795
- ]), ai = ({
3764
+ ]), ni = ({
3796
3765
  id: e,
3797
3766
  name: t,
3798
3767
  nodeType: s,
@@ -3808,7 +3777,7 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3808
3777
  }) => /* @__PURE__ */ o("div", { className: "flex", children: /* @__PURE__ */ o("div", { className: "flex flex-1 min-w-0", children: /* @__PURE__ */ o(
3809
3778
  Vn,
3810
3779
  {
3811
- type: s === k.FOLDER ? We.Folder : We.File,
3780
+ type: s === O.FOLDER ? We.Folder : We.File,
3812
3781
  name: t,
3813
3782
  elementId: e,
3814
3783
  shared: i,
@@ -3817,11 +3786,11 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3817
3786
  hideTooltip: C,
3818
3787
  forbiddenSymbolsRegExp: c,
3819
3788
  forbiddenSymbolsTooltip: v,
3820
- details: /* @__PURE__ */ Z("div", { className: "flex items-center gap-1 dial-tiny-text text-secondary", children: [
3821
- /* @__PURE__ */ o("span", { children: s === k.ITEM ? rn(a) : "" }),
3789
+ details: /* @__PURE__ */ X("div", { className: "flex items-center gap-1 dial-tiny-text text-secondary", children: [
3790
+ /* @__PURE__ */ o("span", { children: s === O.ITEM ? rn(a) : "" }),
3822
3791
  n && a && /* @__PURE__ */ o(Hn, { size: 2, className: "text-secondary" }),
3823
3792
  n ? /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(
3824
- Na,
3793
+ Da,
3825
3794
  {
3826
3795
  value: n,
3827
3796
  locale: r?.toString(),
@@ -3832,7 +3801,7 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3832
3801
  ) }) : null
3833
3802
  ] })
3834
3803
  }
3835
- ) }) }), ri = (e) => (t, s, a) => ({
3804
+ ) }) }), oi = (e) => (t, s, a) => ({
3836
3805
  colId: ye.Name,
3837
3806
  field: "name",
3838
3807
  headerName: e,
@@ -3848,7 +3817,7 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3848
3817
  selectedPaths: v,
3849
3818
  disabledRowIds: u,
3850
3819
  filesLoading: y
3851
- } = n.context, g = c?.has(n.data.path), m = v?.has(n.data.path), b = u?.has(n.data.path) ?? !1, N = Fe([
3820
+ } = n.context, g = c?.has(n.data.path), m = v?.has(n.data.path), b = u?.has(n.data.path) ?? !1, D = Ee([
3852
3821
  "group-hover/grid-row:bg-accent-primary-alpha",
3853
3822
  m && "bg-accent-primary-alpha"
3854
3823
  ]);
@@ -3863,16 +3832,16 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3863
3832
  creating: !0,
3864
3833
  loading: y,
3865
3834
  shared: g,
3866
- sharedIndicatorClassName: N,
3835
+ sharedIndicatorClassName: D,
3867
3836
  iconSize: rt,
3868
3837
  validate: i,
3869
3838
  onSave: l,
3870
3839
  onCancel: p,
3871
3840
  onCreateFolderSave: l,
3872
3841
  onCreateFolderCancel: p,
3873
- inputContainerClassName: Fe([
3842
+ inputContainerClassName: Ee([
3874
3843
  "!h-9",
3875
- a && r === k.ITEM && "!h-10"
3844
+ a && r === O.ITEM && "!h-10"
3876
3845
  ])
3877
3846
  }
3878
3847
  );
@@ -3880,30 +3849,30 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3880
3849
  renameTriggerView: h,
3881
3850
  renamedPath: f,
3882
3851
  renamedItem: T,
3883
- getDisplayName: x,
3852
+ getDisplayName: N,
3884
3853
  onRenameValidate: F,
3885
3854
  onRenameSave: I,
3886
3855
  onRenameCancel: S
3887
3856
  } = n.context;
3888
3857
  if (h === Rt.Grid && f === n.data?.path && T && n.data) {
3889
- const U = x(T);
3858
+ const U = N(T);
3890
3859
  return /* @__PURE__ */ o(
3891
3860
  Vn,
3892
3861
  {
3893
3862
  name: U,
3894
- type: r === k.FOLDER ? We.Folder : We.File,
3863
+ type: r === O.FOLDER ? We.Folder : We.File,
3895
3864
  fileExtension: T.name.split(".").pop(),
3896
3865
  elementId: `rename-${n.data.id}`,
3897
3866
  editing: !0,
3898
3867
  shared: g,
3899
- sharedIndicatorClassName: N,
3868
+ sharedIndicatorClassName: D,
3900
3869
  iconSize: rt,
3901
3870
  validate: (P) => F(P, T),
3902
3871
  onSave: I,
3903
3872
  onCancel: S,
3904
- inputContainerClassName: Fe([
3873
+ inputContainerClassName: Ee([
3905
3874
  "!h-9",
3906
- a && r === k.ITEM && "!h-10"
3875
+ a && r === O.ITEM && "!h-10"
3907
3876
  ]),
3908
3877
  forbiddenSymbolsRegExp: n.context.forbiddenSymbolsRegExp
3909
3878
  }
@@ -3911,14 +3880,14 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3911
3880
  }
3912
3881
  if (a)
3913
3882
  return /* @__PURE__ */ o(
3914
- ai,
3883
+ ni,
3915
3884
  {
3916
3885
  id: n.data.id,
3917
3886
  name: n.data.name,
3918
3887
  nodeType: r,
3919
3888
  size: n.data.size,
3920
3889
  shared: g,
3921
- sharedIndicatorClassName: N,
3890
+ sharedIndicatorClassName: D,
3922
3891
  updatedAt: n.data.updatedAt,
3923
3892
  dateLocale: t,
3924
3893
  dateOptions: s,
@@ -3927,20 +3896,20 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3927
3896
  forbiddenSymbolsTooltip: n.context.forbiddenSymbolsTooltip
3928
3897
  }
3929
3898
  );
3930
- const _ = Uo(
3899
+ const _ = Vo(
3931
3900
  {
3932
3901
  name: n.data.name,
3933
- isFolder: r === k.FOLDER
3902
+ isFolder: r === O.FOLDER
3934
3903
  },
3935
3904
  n.context.forbiddenSymbolsRegExp,
3936
3905
  n.context.forbiddenSymbolsTooltip
3937
3906
  );
3938
- return r === k.FOLDER ? /* @__PURE__ */ o(
3939
- Mo,
3907
+ return r === O.FOLDER ? /* @__PURE__ */ o(
3908
+ ko,
3940
3909
  {
3941
3910
  name: n.data.name,
3942
3911
  shared: g,
3943
- sharedIndicatorClassName: N,
3912
+ sharedIndicatorClassName: D,
3944
3913
  iconSize: rt,
3945
3914
  hideTooltip: b,
3946
3915
  isInvalidName: !!_,
@@ -3951,7 +3920,7 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3951
3920
  {
3952
3921
  name: n.data.name,
3953
3922
  shared: g,
3954
- sharedIndicatorClassName: N,
3923
+ sharedIndicatorClassName: D,
3955
3924
  iconSize: rt,
3956
3925
  hideTooltip: b,
3957
3926
  isInvalidName: !!_,
@@ -3959,7 +3928,7 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3959
3928
  }
3960
3929
  );
3961
3930
  }
3962
- }), si = (e) => (t, s) => ({
3931
+ }), ai = (e) => (t, s) => ({
3963
3932
  colId: ye.UpdatedAt,
3964
3933
  field: "updatedAt",
3965
3934
  headerName: e,
@@ -3967,28 +3936,28 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
3967
3936
  suppressSizeToFit: !0,
3968
3937
  cellRenderer: (a) => {
3969
3938
  const n = a.context?.disabledRowIds?.has(a.data?.path) ?? !1;
3970
- return /* @__PURE__ */ o(Na, { ...a, hideTooltip: n });
3939
+ return /* @__PURE__ */ o(Da, { ...a, hideTooltip: n });
3971
3940
  },
3972
3941
  cellRendererParams: {
3973
3942
  locale: t,
3974
3943
  options: s
3975
3944
  },
3976
3945
  filterValueGetter: (a) => {
3977
- const n = a.data[a.colDef.field || ""], r = Lr(n);
3946
+ const n = a.data[a.colDef.field || ""], r = kr(n);
3978
3947
  return r ? new Intl.DateTimeFormat(
3979
- t || zr,
3980
- s || _r
3948
+ t || Or,
3949
+ s || Lr
3981
3950
  ).format(r) : "";
3982
3951
  }
3983
- }), ii = (e) => ({
3952
+ }), ri = (e) => ({
3984
3953
  colId: ye.Size,
3985
3954
  field: "size",
3986
3955
  headerName: e,
3987
3956
  width: 120,
3988
3957
  suppressSizeToFit: !0,
3989
- cellRenderer: (t) => t.data.nodeType === k.ITEM ? rn(t.data.contentLength) : "",
3990
- filterValueGetter: (t) => t.data.nodeType === k.ITEM ? rn(t.data.contentLength) : ""
3991
- }), li = (e) => {
3958
+ cellRenderer: (t) => t.data.nodeType === O.ITEM ? rn(t.data.contentLength) : "",
3959
+ filterValueGetter: (t) => t.data.nodeType === O.ITEM ? rn(t.data.contentLength) : ""
3960
+ }), si = (e) => {
3992
3961
  const t = e.event;
3993
3962
  if (!(t?.target ?? null)?.closest("input") || !t) return !1;
3994
3963
  switch (t.key) {
@@ -4003,7 +3972,7 @@ const Us = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
4003
3972
  return !1;
4004
3973
  }
4005
3974
  };
4006
- function ci({
3975
+ function ii({
4007
3976
  userColumnDefs: e,
4008
3977
  filterable: t,
4009
3978
  dateLocale: s,
@@ -4016,7 +3985,7 @@ function ci({
4016
3985
  rootItemPath: C
4017
3986
  }) {
4018
3987
  const c = $(() => [
4019
- ri("Name")(s, a, r),
3988
+ oi("Name")(s, a, r),
4020
3989
  {
4021
3990
  colId: ye.Path,
4022
3991
  field: "path",
@@ -4038,8 +4007,8 @@ function ci({
4038
4007
  return /* @__PURE__ */ o(Tt, { text: m, hideTooltip: y });
4039
4008
  }
4040
4009
  },
4041
- si("Modified Date")(s, a),
4042
- ii("Size"),
4010
+ ai("Modified Date")(s, a),
4011
+ ri("Size"),
4043
4012
  {
4044
4013
  colId: ye.Author,
4045
4014
  field: "author",
@@ -4072,7 +4041,7 @@ function ci({
4072
4041
  filter: t ? m.filter : !1,
4073
4042
  floatingFilter: t ? m.floatingFilter : !1
4074
4043
  };
4075
- return g(m) && !m.suppressKeyboardEvent && (b.suppressKeyboardEvent = li), b;
4044
+ return g(m) && !m.suppressKeyboardEvent && (b.suppressKeyboardEvent = si), b;
4076
4045
  });
4077
4046
  }, [
4078
4047
  i,
@@ -4086,14 +4055,14 @@ function ci({
4086
4055
  e
4087
4056
  ]) };
4088
4057
  }
4089
- const di = () => {
4058
+ const li = () => {
4090
4059
  const e = mr(Fa);
4091
4060
  if (!e)
4092
4061
  throw new Error(
4093
4062
  "useFileManagerContext must be used within <FileManagerProvider>"
4094
4063
  );
4095
4064
  return e;
4096
- }, ui = ({
4065
+ }, ci = ({
4097
4066
  actionLabels: e,
4098
4067
  onDuplicate: t,
4099
4068
  onCopy: s,
@@ -4111,18 +4080,18 @@ const di = () => {
4111
4080
  onOpenInNewTab: g,
4112
4081
  previewExtensions: m,
4113
4082
  isRenameFileAvailable: b = !0,
4114
- isDuplicateFolderAvailable: N = !0,
4083
+ isDuplicateFolderAvailable: D = !0,
4115
4084
  forbiddenSymbolsRegExp: h,
4116
4085
  onGridCreateSiblingFolder: f,
4117
4086
  onGridCreateChildFolder: T
4118
- }) => $(() => (x) => {
4087
+ }) => $(() => (N) => {
4119
4088
  const F = [];
4120
4089
  if (!e)
4121
4090
  return F;
4122
- const I = $n(
4091
+ const I = jn(
4123
4092
  h
4124
- )?.test(x.name);
4125
- e[w.AddSibling] && x.nodeType === k.FOLDER && F.push({
4093
+ )?.test(N.name);
4094
+ e[w.AddSibling] && N.nodeType === O.FOLDER && F.push({
4126
4095
  key: "addSibling",
4127
4096
  label: e[w.AddSibling],
4128
4097
  icon: /* @__PURE__ */ o(
@@ -4133,8 +4102,8 @@ const di = () => {
4133
4102
  className: "text-secondary"
4134
4103
  }
4135
4104
  ),
4136
- onClick: () => f([x])
4137
- }), e[w.AddChild] && x.nodeType === k.FOLDER && !I && F.push(
4105
+ onClick: () => f([N])
4106
+ }), e[w.AddChild] && N.nodeType === O.FOLDER && !I && F.push(
4138
4107
  {
4139
4108
  key: "addChild",
4140
4109
  label: e[w.AddChild],
@@ -4146,101 +4115,101 @@ const di = () => {
4146
4115
  className: "text-secondary"
4147
4116
  }
4148
4117
  ),
4149
- onClick: () => T([x])
4118
+ onClick: () => T([N])
4150
4119
  },
4151
4120
  {
4152
4121
  key: "divider",
4153
- type: xa.Divider
4122
+ type: Na.Divider
4154
4123
  }
4155
- ), e[w.OpenInNewTab] && typeof g == "function" && x.nodeType === k.ITEM && !I && F.push({
4124
+ ), e[w.OpenInNewTab] && typeof g == "function" && N.nodeType === O.ITEM && !I && F.push({
4156
4125
  key: w.OpenInNewTab,
4157
4126
  label: e[w.OpenInNewTab],
4158
- icon: /* @__PURE__ */ o(Ro, { ...M, className: "text-secondary" }),
4159
- onClick: () => g?.(x)
4127
+ icon: /* @__PURE__ */ o(Io, { ...M, className: "text-secondary" }),
4128
+ onClick: () => g?.(N)
4160
4129
  });
4161
- const S = x.nodeType === k.ITEM || x.nodeType === k.FOLDER && N;
4130
+ const S = N.nodeType === O.ITEM || N.nodeType === O.FOLDER && D;
4162
4131
  e[w.Duplicate] && S && !I && F.push({
4163
4132
  key: w.Duplicate,
4164
4133
  label: e[w.Duplicate],
4165
- icon: /* @__PURE__ */ o(So, { ...M, className: "text-secondary" }),
4166
- onClick: () => t(x)
4134
+ icon: /* @__PURE__ */ o(Ao, { ...M, className: "text-secondary" }),
4135
+ onClick: () => t(N)
4167
4136
  }), e[w.Copy] && !I && F.push({
4168
4137
  key: w.Copy,
4169
4138
  label: e[w.Copy],
4170
4139
  icon: /* @__PURE__ */ o(
4171
- _o,
4140
+ Wo,
4172
4141
  {
4173
4142
  width: M.size,
4174
4143
  height: M.size,
4175
4144
  className: "text-secondary"
4176
4145
  }
4177
4146
  ),
4178
- onClick: () => s(x)
4147
+ onClick: () => s(N)
4179
4148
  }), e[w.Move] && !I && F.push({
4180
4149
  key: w.Move,
4181
4150
  label: e[w.Move],
4182
4151
  icon: /* @__PURE__ */ o(
4183
- Bo,
4152
+ Ho,
4184
4153
  {
4185
4154
  width: M.size,
4186
4155
  height: M.size,
4187
4156
  className: "text-secondary"
4188
4157
  }
4189
4158
  ),
4190
- onClick: () => a(x)
4159
+ onClick: () => a(N)
4191
4160
  }), e[w.Download] && !I && F.push({
4192
4161
  key: w.Download,
4193
4162
  label: e[w.Download],
4194
- icon: /* @__PURE__ */ o(Po, { ...M, className: "text-secondary" }),
4195
- onClick: () => n(x)
4196
- }), e[w.ManagePermissions] && typeof u == "function" && x.nodeType === k.FOLDER && !I && F.push({
4163
+ icon: /* @__PURE__ */ o(Mo, { ...M, className: "text-secondary" }),
4164
+ onClick: () => n(N)
4165
+ }), e[w.ManagePermissions] && typeof u == "function" && N.nodeType === O.FOLDER && !I && F.push({
4197
4166
  key: w.ManagePermissions,
4198
4167
  label: e[w.ManagePermissions],
4199
- icon: /* @__PURE__ */ o(Ro, { ...M, className: "text-secondary" }),
4200
- onClick: () => u?.(x.path)
4168
+ icon: /* @__PURE__ */ o(Io, { ...M, className: "text-secondary" }),
4169
+ onClick: () => u?.(N.path)
4201
4170
  });
4202
- const A = x.name.split("."), _ = A.length > 1 ? A[A.length - 1] : "", U = _ && m?.includes(`.${_}`);
4203
- e[w.Preview] && typeof y == "function" && x.nodeType === k.ITEM && U && !I && F.push({
4171
+ const A = N.name.split("."), _ = A.length > 1 ? A[A.length - 1] : "", U = _ && m?.includes(`.${_}`);
4172
+ e[w.Preview] && typeof y == "function" && N.nodeType === O.ITEM && U && !I && F.push({
4204
4173
  key: w.Preview,
4205
4174
  label: e[w.Preview],
4206
- icon: /* @__PURE__ */ o(Fo, { ...M, className: "text-secondary" }),
4207
- onClick: () => y?.(x.path)
4175
+ icon: /* @__PURE__ */ o(Eo, { ...M, className: "text-secondary" }),
4176
+ onClick: () => y?.(N.path)
4208
4177
  });
4209
- const P = !x.permissions || x.permissions.includes(Et.WRITE);
4178
+ const P = !N.permissions || N.permissions.includes(Et.WRITE);
4210
4179
  e[w.Delete] && P && F.push({
4211
4180
  key: w.Delete,
4212
4181
  label: e[w.Delete],
4213
- icon: /* @__PURE__ */ o(Ao, { ...M, className: "text-secondary" }),
4214
- onClick: () => l(x, x.parentPath ?? "")
4182
+ icon: /* @__PURE__ */ o(Po, { ...M, className: "text-secondary" }),
4183
+ onClick: () => l(N, N.parentPath ?? "")
4215
4184
  });
4216
- const O = x.nodeType === k.FOLDER || x.nodeType === k.ITEM && b;
4217
- return e[w.Rename] && O && P && F.push({
4185
+ const k = N.nodeType === O.FOLDER || N.nodeType === O.ITEM && b;
4186
+ return e[w.Rename] && k && P && F.push({
4218
4187
  key: w.Rename,
4219
4188
  label: e[w.Rename],
4220
- icon: /* @__PURE__ */ o(pa, { ...M, className: "text-secondary" }),
4221
- onClick: () => r(x.path)
4222
- }), e[w.Info] && x.nodeType === k.ITEM && !I && F.push({
4189
+ icon: /* @__PURE__ */ o(ma, { ...M, className: "text-secondary" }),
4190
+ onClick: () => r(N.path)
4191
+ }), e[w.Info] && N.nodeType === O.ITEM && !I && F.push({
4223
4192
  key: w.Info,
4224
4193
  label: e[w.Info],
4225
4194
  icon: /* @__PURE__ */ o(ur, { ...M, className: "text-secondary" }),
4226
- onClick: () => i(x)
4227
- }), e[w.Unshare] && c?.includes(x.path) && F.push({
4195
+ onClick: () => i(N)
4196
+ }), e[w.Unshare] && c?.includes(N.path) && F.push({
4228
4197
  key: w.Unshare,
4229
4198
  label: e[w.Unshare],
4230
4199
  icon: /* @__PURE__ */ o(
4231
- Wo,
4200
+ Uo,
4232
4201
  {
4233
4202
  width: M.size,
4234
4203
  height: M.size,
4235
4204
  className: "text-secondary"
4236
4205
  }
4237
4206
  ),
4238
- onClick: () => p(x)
4239
- }), e[w.RemoveAccess] && v?.has(x.path) && C && F.push({
4207
+ onClick: () => p(N)
4208
+ }), e[w.RemoveAccess] && v?.has(N.path) && C && F.push({
4240
4209
  key: w.RemoveAccess,
4241
4210
  label: e[w.RemoveAccess],
4242
- icon: /* @__PURE__ */ o(Eo, { size: M.size, className: "text-secondary" }),
4243
- onClick: () => C(x)
4211
+ icon: /* @__PURE__ */ o(So, { size: M.size, className: "text-secondary" }),
4212
+ onClick: () => C(N)
4244
4213
  }), F;
4245
4214
  }, [
4246
4215
  e,
@@ -4260,11 +4229,11 @@ const di = () => {
4260
4229
  g,
4261
4230
  m,
4262
4231
  b,
4263
- N,
4232
+ D,
4264
4233
  h,
4265
4234
  T,
4266
4235
  f
4267
- ]), hi = ({
4236
+ ]), di = ({
4268
4237
  onGridAddSibling: e,
4269
4238
  onGridAddChild: t,
4270
4239
  onTreeAddSibling: s,
@@ -4300,7 +4269,7 @@ const di = () => {
4300
4269
  onGridCreateChildFolder: p,
4301
4270
  onTreeCreateChildFolder: C
4302
4271
  };
4303
- }, pi = (e) => /* @__PURE__ */ o(Ls, { ...e, children: /* @__PURE__ */ o(fi, {}) }), fi = () => {
4272
+ }, ui = (e) => /* @__PURE__ */ o(ks, { ...e, children: /* @__PURE__ */ o(hi, {}) }), hi = () => {
4304
4273
  const {
4305
4274
  managerLabel: e,
4306
4275
  className: t,
@@ -4316,14 +4285,14 @@ const di = () => {
4316
4285
  deleteConfirmationOptions: v,
4317
4286
  destinationFolderPopupOptions: u,
4318
4287
  conflictResolutionPopupOptions: y,
4319
- compactViewWidthBreakpoint: g = Jr,
4288
+ compactViewWidthBreakpoint: g = Kr,
4320
4289
  customBreakpointRef: m,
4321
4290
  sharedByMePaths: b,
4322
- allowedFileTypes: N,
4291
+ allowedFileTypes: D,
4323
4292
  maxSelectableFileSize: h,
4324
4293
  areHiddenFilesVisible: f,
4325
4294
  toggleHiddenFilesVisibility: T,
4326
- isTreeCollapsed: x,
4295
+ isTreeCollapsed: N,
4327
4296
  toggleTreeCollapse: F,
4328
4297
  currentPath: I,
4329
4298
  gridRows: S,
@@ -4331,7 +4300,7 @@ const di = () => {
4331
4300
  selectedFiles: _,
4332
4301
  clearSelection: U,
4333
4302
  setSelectedPaths: P,
4334
- effectiveSearchValue: O,
4303
+ effectiveSearchValue: k,
4335
4304
  handleBreadcrumbItemClick: B,
4336
4305
  handleSearchChange: L,
4337
4306
  handleTreeItemClick: Y,
@@ -4340,24 +4309,24 @@ const di = () => {
4340
4309
  onGridApiChange: te,
4341
4310
  handleOpenDestinationFolderPopup: fe,
4342
4311
  handleCloseDestinationFolderPopup: we,
4343
- openDestinationFolderPopup: xe,
4312
+ openDestinationFolderPopup: Ne,
4344
4313
  destinationFolderMode: ue,
4345
- handleSetCopiedFiles: Re,
4346
- handleSetMovedFiles: De,
4314
+ handleSetCopiedFiles: Te,
4315
+ handleSetMovedFiles: xe,
4347
4316
  handleDuplicate: W,
4348
4317
  handleCopyTo: be,
4349
- handleMoveTo: Ne,
4318
+ handleMoveTo: De,
4350
4319
  handleGridAddSibling: G,
4351
4320
  handleGridAddChild: ne,
4352
4321
  handleTreeAddSibling: he,
4353
4322
  handleTreeAddChild: _e,
4354
- handleDownloadFiles: ke,
4323
+ handleDownloadFiles: Oe,
4355
4324
  openDeleteConfirmation: Se,
4356
4325
  closeDeleteConfirmation: R,
4357
4326
  confirmDelete: H,
4358
4327
  deleteConfirmationOpen: V,
4359
4328
  itemsToDelete: Q,
4360
- renamedPath: X,
4329
+ renamedPath: Z,
4361
4330
  renamedItem: me,
4362
4331
  onRename: Ae,
4363
4332
  onRenameSave: Pe,
@@ -4369,13 +4338,13 @@ const di = () => {
4369
4338
  getDisplayName: ln,
4370
4339
  isDragging: st,
4371
4340
  isDraggingOverWindow: ft,
4372
- handleDragEnter: jn,
4373
- handleDragLeave: Zn,
4374
- handleDragOver: Xn,
4341
+ handleDragEnter: Zn,
4342
+ handleDragLeave: Xn,
4343
+ handleDragOver: qn,
4375
4344
  handleDrop: mt,
4376
4345
  onUploadFiles: cn,
4377
4346
  onValidateUpload: St,
4378
- maxFileSize: qn,
4347
+ maxFileSize: Yn,
4379
4348
  newActions: dn,
4380
4349
  isNewButtonVisible: un,
4381
4350
  isNewButtonDisabled: hn,
@@ -4392,101 +4361,101 @@ const di = () => {
4392
4361
  handleConflictDecideForEach: it,
4393
4362
  uploadConflictingFiles: Cn,
4394
4363
  uploadConflictResolutionOpen: Je,
4395
- handleUploadConflictReplace: Yn,
4396
- handleUploadConflictDuplicate: Kn,
4397
- handleUploadConflictCancel: Qn,
4398
- handleUploadConflictDecideForEach: Jn,
4364
+ handleUploadConflictReplace: Kn,
4365
+ handleUploadConflictDuplicate: Qn,
4366
+ handleUploadConflictCancel: Jn,
4367
+ handleUploadConflictDecideForEach: eo,
4399
4368
  openMetadataPopup: de,
4400
- fileMetadataPopupOptions: Ee,
4369
+ fileMetadataPopupOptions: Fe,
4401
4370
  isMetadataPopupOpen: qe,
4402
4371
  selectedFileForMetadata: Pt,
4403
4372
  closeMetadataPopup: Mt,
4404
4373
  onUnshareFiles: et,
4405
4374
  onRemoveFilesAccess: gt,
4406
- actionsRef: eo,
4375
+ actionsRef: to,
4407
4376
  searchInProgress: gn,
4408
4377
  isSearchMode: tt,
4409
4378
  emptyStateIcon: lt,
4410
4379
  emptyStateTitle: vn = "You don't have any files",
4411
4380
  emptyStateDescription: yn = "Upload or drag and drop files",
4412
4381
  sharedWithMeIds: vt,
4413
- onFolderPopupPathChange: to,
4382
+ onFolderPopupPathChange: no,
4414
4383
  onManagePermissions: yt,
4415
- onPreview: no,
4416
- onOpenInNewTab: oo,
4417
- previewExtensions: ao,
4418
- isRenameFileAvailable: ro,
4419
- isDuplicateFolderAvailable: so,
4420
- getDisabledTooltip: Ot,
4384
+ onPreview: oo,
4385
+ onOpenInNewTab: ao,
4386
+ previewExtensions: ro,
4387
+ isRenameFileAvailable: so,
4388
+ isDuplicateFolderAvailable: io,
4389
+ getDisabledTooltip: kt,
4421
4390
  fileTooLargeTooltip: wt,
4422
4391
  unsupportedFileTypeTooltip: wn,
4423
- gridClassName: kt,
4392
+ gridClassName: Ot,
4424
4393
  nonClickableTableColumns: Lt,
4425
4394
  hideSearchPathItemName: zt,
4426
4395
  showHiddenFileSwitcherInDestinationPopup: le,
4427
- showCreateFolderButtonInDestinationPopup: Dn,
4396
+ showCreateFolderButtonInDestinationPopup: xn,
4428
4397
  newFolderDefaultName: re
4429
- } = di(), {
4430
- width: Le = Xr,
4431
- header: Me = qr,
4432
- containerClassName: Nn = $r,
4433
- additionalButtons: xn,
4398
+ } = li(), {
4399
+ width: Le = jr,
4400
+ header: Me = Zr,
4401
+ containerClassName: Dn = Gr,
4402
+ additionalButtons: Nn,
4434
4403
  ...bn
4435
- } = r ?? {}, [Dt, Tn] = z(Le), { renameTriggerView: nt, onGridRename: io, onTreeRename: Rn } = os({ onRename: Ae }), {
4404
+ } = r ?? {}, [xt, Tn] = z(Le), { renameTriggerView: nt, onGridRename: lo, onTreeRename: Rn } = ts({ onRename: Ae }), {
4436
4405
  createFolderTriggerView: In,
4437
- onGridCreateSiblingFolder: lo,
4406
+ onGridCreateSiblingFolder: co,
4438
4407
  onTreeCreateSiblingFolder: Fn,
4439
- onGridCreateChildFolder: co,
4408
+ onGridCreateChildFolder: uo,
4440
4409
  onTreeCreateChildFolder: En
4441
- } = hi({
4410
+ } = di({
4442
4411
  onGridAddSibling: G,
4443
4412
  onGridAddChild: ne,
4444
4413
  onTreeAddSibling: he,
4445
4414
  onTreeAddChild: _e
4446
- }), _t = ce(null), uo = (D) => {
4415
+ }), _t = ce(null), ho = (x) => {
4447
4416
  _t.current === null && (_t.current = requestAnimationFrame(() => {
4448
- Tn(D), _t.current = null;
4417
+ Tn(x), _t.current = null;
4449
4418
  }));
4450
4419
  }, {
4451
- columnDefs: ho,
4452
- filterable: po = !0,
4453
- dateLocale: fo,
4454
- dateOptions: mo,
4420
+ columnDefs: po,
4421
+ filterable: fo = !0,
4422
+ dateLocale: mo,
4423
+ dateOptions: Co,
4455
4424
  selectionMode: Sn,
4456
4425
  wrapCustomCellRenderers: An,
4457
- visibleColumns: Pn = es,
4458
- allowDisabledContextMenu: Nt = !1,
4426
+ visibleColumns: Pn = Qr,
4427
+ allowDisabledContextMenu: Dt = !1,
4459
4428
  ...ot
4460
- } = p ?? {}, { containerRef: Co, isBelowBreakpoint: ze } = as(
4429
+ } = p ?? {}, { containerRef: go, isBelowBreakpoint: ze } = ns(
4461
4430
  g,
4462
4431
  m
4463
- ), go = $(() => tt ? [
4432
+ ), vo = $(() => tt ? [
4464
4433
  ye.Name,
4465
4434
  ye.Path,
4466
4435
  ye.Actions
4467
4436
  ] : Pn, [tt, Pn]), Bt = d(
4468
- (D, ee, ie) => ps(
4469
- D,
4437
+ (x, ee, ie) => us(
4438
+ x,
4470
4439
  ee,
4471
4440
  ie,
4472
4441
  wn,
4473
4442
  wt
4474
4443
  ),
4475
4444
  [wt, wn]
4476
- ), xt = d(
4477
- (D, ee, ie) => !!Ot?.(D) || !!Bt(D, ee, ie),
4478
- [Bt, Ot]
4445
+ ), Nt = d(
4446
+ (x, ee, ie) => !!kt?.(x) || !!Bt(x, ee, ie),
4447
+ [Bt, kt]
4479
4448
  ), ct = $(() => {
4480
- const D = /* @__PURE__ */ new Set();
4449
+ const x = /* @__PURE__ */ new Set();
4481
4450
  for (const ee of S)
4482
- xt(ee, N, h) && D.add(ee.path);
4483
- return D;
4484
- }, [N, h, S, xt]), Wt = d(
4485
- (D) => {
4486
- const ee = [], ie = [], Ie = !D.parentPath, at = He?.test(
4487
- D.name
4451
+ Nt(ee, D, h) && x.add(ee.path);
4452
+ return x;
4453
+ }, [D, h, S, Nt]), Wt = d(
4454
+ (x) => {
4455
+ const ee = [], ie = [], Re = !x.parentPath, at = He?.test(
4456
+ x.name
4488
4457
  );
4489
- return r?.actionLabels && (r.actionLabels[w.AddSibling] && D.nodeType === k.FOLDER && !Ie && ee.push({
4458
+ return r?.actionLabels && (r.actionLabels[w.AddSibling] && x.nodeType === O.FOLDER && !Re && ee.push({
4490
4459
  key: "addSibling",
4491
4460
  label: r.actionLabels[w.AddSibling],
4492
4461
  icon: /* @__PURE__ */ o(
@@ -4497,8 +4466,8 @@ const di = () => {
4497
4466
  className: "text-secondary"
4498
4467
  }
4499
4468
  ),
4500
- onClick: () => Fn([D])
4501
- }), r.actionLabels[w.AddChild] && D.nodeType === k.FOLDER && !at && ee.push({
4469
+ onClick: () => Fn([x])
4470
+ }), r.actionLabels[w.AddChild] && x.nodeType === O.FOLDER && !at && ee.push({
4502
4471
  key: "addChild",
4503
4472
  label: r.actionLabels[w.AddChild],
4504
4473
  icon: /* @__PURE__ */ o(
@@ -4509,17 +4478,17 @@ const di = () => {
4509
4478
  className: "text-secondary"
4510
4479
  }
4511
4480
  ),
4512
- onClick: () => En([D])
4513
- }), r.actionLabels[w.Duplicate] && !Ie && !at && ie.push({
4481
+ onClick: () => En([x])
4482
+ }), r.actionLabels[w.Duplicate] && !Re && !at && ie.push({
4514
4483
  key: "duplicate",
4515
4484
  label: r.actionLabels[w.Duplicate],
4516
- icon: /* @__PURE__ */ o(So, { ...M, className: "text-secondary" }),
4517
- onClick: () => W([D])
4518
- }), r.actionLabels[w.Copy] && !Ie && !at && ie.push({
4485
+ icon: /* @__PURE__ */ o(Ao, { ...M, className: "text-secondary" }),
4486
+ onClick: () => W([x])
4487
+ }), r.actionLabels[w.Copy] && !Re && !at && ie.push({
4519
4488
  key: ge.Copy,
4520
4489
  label: r.actionLabels[w.Copy],
4521
4490
  icon: /* @__PURE__ */ o(
4522
- _o,
4491
+ Wo,
4523
4492
  {
4524
4493
  width: M.size,
4525
4494
  height: M.size,
@@ -4527,13 +4496,13 @@ const di = () => {
4527
4496
  }
4528
4497
  ),
4529
4498
  onClick: () => {
4530
- Re([D]), fe(ge.Copy);
4499
+ Te([x]), fe(ge.Copy);
4531
4500
  }
4532
- }), r.actionLabels[w.Move] && !Ie && !at && ie.push({
4501
+ }), r.actionLabels[w.Move] && !Re && !at && ie.push({
4533
4502
  key: ge.Move,
4534
4503
  label: r.actionLabels[w.Move],
4535
4504
  icon: /* @__PURE__ */ o(
4536
- Bo,
4505
+ Ho,
4537
4506
  {
4538
4507
  width: M.size,
4539
4508
  height: M.size,
@@ -4541,66 +4510,66 @@ const di = () => {
4541
4510
  }
4542
4511
  ),
4543
4512
  onClick: () => {
4544
- De([D]), fe(ge.Move);
4513
+ xe([x]), fe(ge.Move);
4545
4514
  }
4546
- }), r.actionLabels[w.Download] && !Ie && !at && ie.push({
4515
+ }), r.actionLabels[w.Download] && !Re && !at && ie.push({
4547
4516
  key: "download",
4548
4517
  label: r.actionLabels[w.Download],
4549
- icon: /* @__PURE__ */ o(Po, { ...M, className: "text-secondary" }),
4550
- onClick: () => ke([D])
4551
- }), r.actionLabels[w.ManagePermissions] && typeof yt == "function" && D.nodeType === k.FOLDER && !Ie && ie.push({
4518
+ icon: /* @__PURE__ */ o(Mo, { ...M, className: "text-secondary" }),
4519
+ onClick: () => Oe([x])
4520
+ }), r.actionLabels[w.ManagePermissions] && typeof yt == "function" && x.nodeType === O.FOLDER && !Re && ie.push({
4552
4521
  key: w.ManagePermissions,
4553
4522
  label: r.actionLabels[w.ManagePermissions],
4554
4523
  icon: /* @__PURE__ */ o(
4555
- Ro,
4524
+ Io,
4556
4525
  {
4557
4526
  ...M,
4558
4527
  className: "text-secondary"
4559
4528
  }
4560
4529
  ),
4561
- onClick: () => yt?.(D.path)
4562
- }), r.actionLabels[w.Delete] && D.permissions?.includes(Et.WRITE) && !Ie && ie.push({
4530
+ onClick: () => yt?.(x.path)
4531
+ }), r.actionLabels[w.Delete] && x.permissions?.includes(Et.WRITE) && !Re && ie.push({
4563
4532
  key: "delete",
4564
4533
  label: r.actionLabels[w.Delete],
4565
- icon: /* @__PURE__ */ o(Ao, { ...M, className: "text-secondary" }),
4566
- onClick: () => Se([D], D.parentPath ?? "")
4567
- }), r.actionLabels[w.Rename] && !Ie && ie.push({
4534
+ icon: /* @__PURE__ */ o(Po, { ...M, className: "text-secondary" }),
4535
+ onClick: () => Se([x], x.parentPath ?? "")
4536
+ }), r.actionLabels[w.Rename] && !Re && ie.push({
4568
4537
  key: "rename",
4569
4538
  label: r.actionLabels[w.Rename],
4570
4539
  icon: /* @__PURE__ */ o(
4571
- pa,
4540
+ ma,
4572
4541
  {
4573
4542
  ...M,
4574
4543
  className: "text-secondary"
4575
4544
  }
4576
4545
  ),
4577
- onClick: () => Rn(D.path)
4578
- }), r.actionLabels[w.Unshare] && vt?.includes(D.path) && !Ie && ie.push({
4546
+ onClick: () => Rn(x.path)
4547
+ }), r.actionLabels[w.Unshare] && vt?.includes(x.path) && !Re && ie.push({
4579
4548
  key: "unshare",
4580
4549
  label: r.actionLabels[w.Unshare],
4581
4550
  icon: /* @__PURE__ */ o(
4582
- Wo,
4551
+ Uo,
4583
4552
  {
4584
4553
  width: M.size,
4585
4554
  height: M.size,
4586
4555
  className: "text-secondary"
4587
4556
  }
4588
4557
  ),
4589
- onClick: () => et?.([D])
4590
- }), r.actionLabels[w.RemoveAccess] && b?.has(D.path) && !Ie && ie.push({
4558
+ onClick: () => et?.([x])
4559
+ }), r.actionLabels[w.RemoveAccess] && b?.has(x.path) && !Re && ie.push({
4591
4560
  key: w.RemoveAccess,
4592
4561
  label: r.actionLabels[w.RemoveAccess],
4593
4562
  icon: /* @__PURE__ */ o(
4594
- Eo,
4563
+ So,
4595
4564
  {
4596
4565
  size: M.size,
4597
4566
  className: "text-secondary"
4598
4567
  }
4599
4568
  ),
4600
- onClick: () => gt?.([D])
4569
+ onClick: () => gt?.([x])
4601
4570
  })), ee.length ? ie.length === 0 ? ee : ee.length === 0 ? ie : [
4602
4571
  ...ee,
4603
- { key: "divider", type: xa.Divider },
4572
+ { key: "divider", type: Na.Divider },
4604
4573
  ...ie
4605
4574
  ] : ie;
4606
4575
  },
@@ -4609,10 +4578,10 @@ const di = () => {
4609
4578
  He,
4610
4579
  yt,
4611
4580
  W,
4612
- Re,
4581
+ Te,
4613
4582
  fe,
4614
- De,
4615
- ke,
4583
+ xe,
4584
+ Oe,
4616
4585
  Rn,
4617
4586
  et,
4618
4587
  gt,
@@ -4623,24 +4592,24 @@ const di = () => {
4623
4592
  Fn
4624
4593
  ]
4625
4594
  ), Mn = $(() => {
4626
- const D = /* @__PURE__ */ new Set();
4627
- return _.forEach((ee, ie) => D.add(ie)), D;
4595
+ const x = /* @__PURE__ */ new Set();
4596
+ return _.forEach((ee, ie) => x.add(ie)), x;
4628
4597
  }, [_]), Ht = d(
4629
- (D, ee) => {
4630
- P(D), j?.(ee);
4598
+ (x, ee) => {
4599
+ P(x), j?.(ee);
4631
4600
  },
4632
4601
  [j, P]
4633
- ), On = oi({
4602
+ ), kn = ti({
4634
4603
  selectedFiles: _,
4635
4604
  actionLabels: c?.actionLabels,
4636
4605
  onDuplicate: W,
4637
- onCopy: (D) => {
4638
- Re(D), fe(ge.Copy);
4606
+ onCopy: (x) => {
4607
+ Te(x), fe(ge.Copy);
4639
4608
  },
4640
- onMove: (D) => {
4641
- De(D), fe(ge.Move);
4609
+ onMove: (x) => {
4610
+ xe(x), fe(ge.Move);
4642
4611
  },
4643
- onDownload: ke,
4612
+ onDownload: Oe,
4644
4613
  onDelete: Se,
4645
4614
  onUnshare: et,
4646
4615
  onRemoveAccess: gt,
@@ -4650,20 +4619,20 @@ const di = () => {
4650
4619
  onClearSelection: U,
4651
4620
  forbiddenSymbolsRegExp: He
4652
4621
  }), Ut = d(
4653
- (D) => {
4654
- C?.onTabChange?.(D), Qe();
4622
+ (x) => {
4623
+ C?.onTabChange?.(x), Qe();
4655
4624
  },
4656
4625
  [C, Qe]
4657
- ), vo = d(() => C && A.size === 0 ? /* @__PURE__ */ Z(
4626
+ ), yo = d(() => C && A.size === 0 ? /* @__PURE__ */ X(
4658
4627
  "div",
4659
4628
  {
4660
- className: oa,
4629
+ className: ra,
4661
4630
  role: "toolbar",
4662
4631
  "aria-label": "File Manager Toolbar",
4663
4632
  children: [
4664
4633
  e,
4665
4634
  /* @__PURE__ */ o(
4666
- Xs,
4635
+ js,
4667
4636
  {
4668
4637
  ...C,
4669
4638
  onTabChange: Ut,
@@ -4679,16 +4648,16 @@ const di = () => {
4679
4648
  ) : A.size > 0 && c ? /* @__PURE__ */ o(
4680
4649
  "div",
4681
4650
  {
4682
- className: oa,
4651
+ className: ra,
4683
4652
  role: "toolbar",
4684
4653
  "aria-label": "File Manager Toolbar",
4685
4654
  children: /* @__PURE__ */ o(
4686
- Us,
4655
+ Ws,
4687
4656
  {
4688
4657
  ...c,
4689
4658
  selectedCount: A.size,
4690
4659
  onClearSelection: U,
4691
- actions: On
4660
+ actions: kn
4692
4661
  }
4693
4662
  )
4694
4663
  }
@@ -4697,7 +4666,7 @@ const di = () => {
4697
4666
  c,
4698
4667
  A,
4699
4668
  U,
4700
- On,
4669
+ kn,
4701
4670
  f,
4702
4671
  T,
4703
4672
  C,
@@ -4707,40 +4676,40 @@ const di = () => {
4707
4676
  e
4708
4677
  ]);
4709
4678
  Cr(
4710
- eo,
4679
+ to,
4711
4680
  () => ({
4712
4681
  createFolder: je
4713
4682
  }),
4714
4683
  [je]
4715
4684
  );
4716
- const yo = d(() => ze ? null : /* @__PURE__ */ o(
4685
+ const wo = d(() => ze ? null : /* @__PURE__ */ o(
4717
4686
  "aside",
4718
4687
  {
4719
4688
  role: "region",
4720
4689
  "aria-label": "File Manager Tree Navigation",
4721
4690
  className: "min-h-0 min-w-0 h-full flex-none",
4722
4691
  children: /* @__PURE__ */ o(
4723
- Br,
4692
+ zr,
4724
4693
  {
4725
- defaultWidth: Dt,
4726
- width: Dt,
4694
+ defaultWidth: xt,
4695
+ width: xt,
4727
4696
  onResizeStop: Tn,
4728
- onResize: uo,
4729
- minWidth: Kr,
4730
- maxWidth: Qr,
4731
- enabled: !x,
4697
+ onResize: ho,
4698
+ minWidth: qr,
4699
+ maxWidth: Yr,
4700
+ enabled: !N,
4732
4701
  children: /* @__PURE__ */ o(
4733
- Wr,
4702
+ _r,
4734
4703
  {
4735
- width: Dt,
4704
+ width: xt,
4736
4705
  title: Me,
4737
- containerClassName: Nn,
4706
+ containerClassName: Dn,
4738
4707
  titleClassName: "dial-body-text text-primary",
4739
- additionalButtons: xn,
4740
- isOpened: !x,
4708
+ additionalButtons: Nn,
4709
+ isOpened: !N,
4741
4710
  onToggle: F,
4742
4711
  children: /* @__PURE__ */ o(
4743
- ni,
4712
+ ei,
4744
4713
  {
4745
4714
  ...bn,
4746
4715
  items: s,
@@ -4753,7 +4722,7 @@ const di = () => {
4753
4722
  onItemClick: Y,
4754
4723
  areHiddenFilesVisible: f,
4755
4724
  getContextMenuItems: Wt,
4756
- renamedPath: nt === Rt.Tree ? X : void 0,
4725
+ renamedPath: nt === Rt.Tree ? Z : void 0,
4757
4726
  onRenameSave: Pe,
4758
4727
  onRenameCancel: ae,
4759
4728
  onRenameValidate: Ve,
@@ -4770,11 +4739,11 @@ const di = () => {
4770
4739
  }
4771
4740
  ), [
4772
4741
  ze,
4773
- Dt,
4774
- x,
4742
+ xt,
4743
+ N,
4775
4744
  Me,
4745
+ Dn,
4776
4746
  Nn,
4777
- xn,
4778
4747
  F,
4779
4748
  bn,
4780
4749
  s,
@@ -4789,7 +4758,7 @@ const di = () => {
4789
4758
  Wt,
4790
4759
  nt,
4791
4760
  In,
4792
- X,
4761
+ Z,
4793
4762
  Pe,
4794
4763
  ae,
4795
4764
  Ve,
@@ -4797,72 +4766,72 @@ const di = () => {
4797
4766
  Qe,
4798
4767
  Ct,
4799
4768
  re
4800
- ]), kn = ui({
4769
+ ]), On = ci({
4801
4770
  actionLabels: p?.actionLabels,
4802
- onDuplicate: (D) => W([D]),
4803
- onCopy: (D) => {
4804
- Re([D]), fe(ge.Copy);
4771
+ onDuplicate: (x) => W([x]),
4772
+ onCopy: (x) => {
4773
+ Te([x]), fe(ge.Copy);
4805
4774
  },
4806
- onMove: (D) => {
4807
- De([D]), fe(ge.Move);
4775
+ onMove: (x) => {
4776
+ xe([x]), fe(ge.Move);
4808
4777
  },
4809
- onDownload: (D) => ke([D]),
4810
- onRename: io,
4811
- onDelete: (D, ee) => Se([D], ee),
4812
- onInfo: (D) => de(D),
4813
- onUnshare: (D) => et?.([D]),
4814
- onRemoveAccess: (D) => gt?.([D]),
4778
+ onDownload: (x) => Oe([x]),
4779
+ onRename: lo,
4780
+ onDelete: (x, ee) => Se([x], ee),
4781
+ onInfo: (x) => de(x),
4782
+ onUnshare: (x) => et?.([x]),
4783
+ onRemoveAccess: (x) => gt?.([x]),
4815
4784
  sharedWithMeIds: vt,
4816
4785
  sharedByMePaths: b,
4817
- onManagePermissions: (D) => yt?.(D),
4818
- onPreview: (D) => no?.(D),
4819
- onOpenInNewTab: (D) => oo?.(D),
4820
- previewExtensions: ao,
4821
- isRenameFileAvailable: ro,
4822
- isDuplicateFolderAvailable: so,
4786
+ onManagePermissions: (x) => yt?.(x),
4787
+ onPreview: (x) => oo?.(x),
4788
+ onOpenInNewTab: (x) => ao?.(x),
4789
+ previewExtensions: ro,
4790
+ isRenameFileAvailable: so,
4791
+ isDuplicateFolderAvailable: io,
4823
4792
  forbiddenSymbolsRegExp: He,
4824
- onGridCreateSiblingFolder: lo,
4825
- onGridCreateChildFolder: co
4793
+ onGridCreateSiblingFolder: co,
4794
+ onGridCreateChildFolder: uo
4826
4795
  }), Gt = d(
4827
- (D) => {
4828
- const ee = Ke(s, D.path);
4829
- return ee ? kn(ee) : [];
4796
+ (x) => {
4797
+ const ee = Ke(s, x.path);
4798
+ return ee ? On(ee) : [];
4830
4799
  },
4831
- [s, kn]
4832
- ), wo = d(
4833
- (D, ee, ie) => Nt ? !1 : xt(D, ee, ie),
4834
- [Nt, xt]
4835
- ), { actionsColumnDef: Do } = ns({
4800
+ [s, On]
4801
+ ), xo = d(
4802
+ (x, ee, ie) => Dt ? !1 : Nt(x, ee, ie),
4803
+ [Dt, Nt]
4804
+ ), { actionsColumnDef: Do } = es({
4836
4805
  getContextMenuItems: Gt,
4837
- isRowDisabled: wo,
4838
- allowedFileTypes: N,
4839
- buttonClassName: ze ? "" : Zr
4840
- }), { columnDefs: Vt } = ci({
4841
- userColumnDefs: ho,
4842
- filterable: po,
4843
- dateLocale: fo,
4844
- dateOptions: mo,
4845
- effectiveVisibleColumns: go,
4806
+ isRowDisabled: xo,
4807
+ allowedFileTypes: D,
4808
+ buttonClassName: ze ? "" : $r
4809
+ }), { columnDefs: Vt } = ii({
4810
+ userColumnDefs: po,
4811
+ filterable: fo,
4812
+ dateLocale: mo,
4813
+ dateOptions: Co,
4814
+ effectiveVisibleColumns: vo,
4846
4815
  isCompactView: ze,
4847
4816
  hasActions: !!p?.actionLabels,
4848
4817
  actionsColumnDef: Do,
4849
4818
  rootItemLabel: a?.label,
4850
4819
  rootItemPath: a?.path
4851
4820
  }), Ln = d(
4852
- (D) => {
4853
- D.colDef.colId === "ag-Grid-SelectionColumn" || D.colDef.colId === ye.Actions || X && D.data?.path === X || D.data?.isTemporary || Lt && Lt.includes(
4854
- D.colDef.colId
4855
- ) || D.data && J(D.data);
4821
+ (x) => {
4822
+ x.colDef.colId === "ag-Grid-SelectionColumn" || x.colDef.colId === ye.Actions || Z && x.data?.path === Z || x.data?.isTemporary || Lt && Lt.includes(
4823
+ x.colDef.colId
4824
+ ) || x.data && J(x.data);
4856
4825
  },
4857
- [X, J, Lt]
4826
+ [Z, J, Lt]
4858
4827
  ), dt = d(
4859
4828
  () => /* @__PURE__ */ o(
4860
- Da,
4829
+ xa,
4861
4830
  {
4862
4831
  title: vn,
4863
4832
  description: yn,
4864
4833
  descriptionClassName: "text-sm",
4865
- containerClassName: "gap-3 size-full bg-layer-2 border rounded-[4px] border-primary",
4834
+ containerClassName: "gap-3 size-full bg-layer-sunken border rounded-[4px] border-primary",
4866
4835
  titleClassName: "mt-2 !text-lg",
4867
4836
  icon: lt || /* @__PURE__ */ o(
4868
4837
  hr,
@@ -4875,10 +4844,10 @@ const di = () => {
4875
4844
  }
4876
4845
  ),
4877
4846
  [yn, lt, vn]
4878
- ), zn = $(() => (D) => D.path, []), _n = $(
4847
+ ), zn = $(() => (x) => x.path, []), _n = $(
4879
4848
  () => on(
4880
4849
  "min-h-[248px] overflow-auto md:min-h-[266px]",
4881
- st ? "border border-dashed border-accent-primary" : "",
4850
+ st ? "border border-dashed border-info" : "",
4882
4851
  ft && !st ? "border border-dashed border-primary" : ""
4883
4852
  ),
4884
4853
  [st, ft]
@@ -4886,8 +4855,8 @@ const di = () => {
4886
4855
  () => ({
4887
4856
  ...ot.additionalGridOptions,
4888
4857
  onCellClicked: Ln,
4889
- headerHeight: ra,
4890
- rowHeight: ra,
4858
+ headerHeight: ia,
4859
+ rowHeight: ia,
4891
4860
  rowClass: "group/grid-row",
4892
4861
  defaultColDef: {
4893
4862
  ...ot.additionalGridOptions?.defaultColDef,
@@ -4903,7 +4872,7 @@ const di = () => {
4903
4872
  renameTriggerView: nt,
4904
4873
  validateFolderName: fn,
4905
4874
  renamedItem: me,
4906
- renamedPath: X,
4875
+ renamedPath: Z,
4907
4876
  createdFolderPath: $e,
4908
4877
  newFolderTempId: pn,
4909
4878
  sharedByMePaths: b,
@@ -4929,7 +4898,7 @@ const di = () => {
4929
4898
  nt,
4930
4899
  fn,
4931
4900
  me,
4932
- X,
4901
+ Z,
4933
4902
  $e,
4934
4903
  pn,
4935
4904
  b,
@@ -4943,7 +4912,7 @@ const di = () => {
4943
4912
  ]
4944
4913
  ), No = $(
4945
4914
  () => S.length === 0 && !tt && !n ? dt() : /* @__PURE__ */ o(
4946
- ma,
4915
+ ga,
4947
4916
  {
4948
4917
  columnDefs: Vt,
4949
4918
  rowData: S,
@@ -4961,7 +4930,7 @@ const di = () => {
4961
4930
  onSelectionChange: Ht,
4962
4931
  wrapperBorder: !st && !ft,
4963
4932
  disabledRowIds: ct,
4964
- allowDisabledContextMenu: Nt
4933
+ allowDisabledContextMenu: Dt
4965
4934
  }
4966
4935
  ),
4967
4936
  [
@@ -4985,14 +4954,14 @@ const di = () => {
4985
4954
  st,
4986
4955
  ft,
4987
4956
  ct,
4988
- Nt
4957
+ Dt
4989
4958
  ]
4990
4959
  );
4991
- return /* @__PURE__ */ o("section", { ref: Co, className: "size-full", children: /* @__PURE__ */ Z(
4960
+ return /* @__PURE__ */ o("section", { ref: go, className: "size-full", children: /* @__PURE__ */ X(
4992
4961
  "div",
4993
4962
  {
4994
- className: Fe(
4995
- Ur,
4963
+ className: Ee(
4964
+ Wr,
4996
4965
  {
4997
4966
  "gap-3 pt-4": c && A.size > 0,
4998
4967
  "gap-4 p-3 pt-4": ze,
@@ -5001,51 +4970,51 @@ const di = () => {
5001
4970
  t
5002
4971
  ),
5003
4972
  children: [
5004
- vo(),
5005
- /* @__PURE__ */ Z("div", { className: Fe(Gr, kt), children: [
5006
- yo(),
5007
- /* @__PURE__ */ Z(
4973
+ yo(),
4974
+ /* @__PURE__ */ X("div", { className: Ee(Hr, Ot), children: [
4975
+ wo(),
4976
+ /* @__PURE__ */ X(
5008
4977
  "div",
5009
4978
  {
5010
- className: Fe(Vr, {
4979
+ className: Ee(Ur, {
5011
4980
  "gap-3": ze
5012
4981
  }),
5013
4982
  children: [
5014
4983
  l && /* @__PURE__ */ o(
5015
- Zs,
4984
+ $s,
5016
4985
  {
5017
4986
  ...i ?? {},
5018
- makeHref: (D) => D.join("/"),
4987
+ makeHref: (x) => x.join("/"),
5019
4988
  path: I,
5020
4989
  onItemClick: B,
5021
4990
  rootItemPath: a?.path,
5022
4991
  rootItemLabel: a?.label,
5023
- value: O,
4992
+ value: k,
5024
4993
  onSearchChange: L,
5025
4994
  isCompactView: ze,
5026
4995
  labelClassName: "dial-tiny-text"
5027
4996
  }
5028
4997
  ),
5029
- /* @__PURE__ */ Z(
4998
+ /* @__PURE__ */ X(
5030
4999
  "section",
5031
5000
  {
5032
5001
  role: "region",
5033
5002
  "aria-label": "File Manager Grid View",
5034
- className: Fe(jr, "relative"),
5035
- onDragEnter: jn,
5036
- onDragLeave: Zn,
5037
- onDragOver: Xn,
5003
+ className: Ee(Vr, "relative"),
5004
+ onDragEnter: Zn,
5005
+ onDragLeave: Xn,
5006
+ onDragOver: qn,
5038
5007
  onDrop: mt,
5039
5008
  children: [
5040
5009
  No,
5041
5010
  /* @__PURE__ */ o(
5042
- zs,
5011
+ Os,
5043
5012
  {
5044
5013
  disabledGridRowIds: ct,
5045
5014
  gridRows: S,
5046
- getDisabledTooltip: Ot,
5015
+ getDisabledTooltip: kt,
5047
5016
  getRowDisabledTooltip: Bt,
5048
- allowedFileTypes: N,
5017
+ allowedFileTypes: D,
5049
5018
  maxSelectableFileSize: h
5050
5019
  }
5051
5020
  )
@@ -5057,7 +5026,7 @@ const di = () => {
5057
5026
  )
5058
5027
  ] }),
5059
5028
  /* @__PURE__ */ o(
5060
- Gs,
5029
+ Hs,
5061
5030
  {
5062
5031
  ...v,
5063
5032
  open: V,
@@ -5067,41 +5036,41 @@ const di = () => {
5067
5036
  }
5068
5037
  ),
5069
5038
  /* @__PURE__ */ o(
5070
- _s,
5039
+ Ls,
5071
5040
  {
5072
5041
  ...u,
5073
- open: xe,
5042
+ open: Ne,
5074
5043
  onClose: we,
5075
5044
  onConfirm: () => {
5076
- const D = u?.destinationFolderPath ?? "/";
5077
- ue === ge.Copy ? be(D) : Ne(D), we();
5045
+ const x = u?.destinationFolderPath ?? "/";
5046
+ ue === ge.Copy ? be(x) : De(x), we();
5078
5047
  },
5079
5048
  mode: ue,
5080
5049
  items: s,
5081
5050
  rootItem: a,
5082
5051
  gridOptions: {
5083
5052
  columnDefs: Vt.filter(
5084
- (D) => D.colId !== ye.Actions
5053
+ (x) => x.colId !== ye.Actions
5085
5054
  ),
5086
5055
  loading: n
5087
5056
  },
5088
5057
  onUploadFiles: cn,
5089
5058
  onValidateUpload: St,
5090
- maxFileSize: qn,
5059
+ maxFileSize: Yn,
5091
5060
  path: u?.destinationFolderPath ?? u?.sourceFolder ?? I,
5092
- onPathChange: (D) => {
5093
- u?.setDestinationFolderPath?.(D);
5061
+ onPathChange: (x) => {
5062
+ u?.setDestinationFolderPath?.(x);
5094
5063
  },
5095
5064
  sourceFolder: u?.sourceFolder ?? I,
5096
5065
  treeOptions: { header: r?.header },
5097
- onFolderPopupPathChange: to,
5066
+ onFolderPopupPathChange: no,
5098
5067
  showHiddenFileSwitcher: le,
5099
- showCreateFolderButton: Dn,
5068
+ showCreateFolderButton: xn,
5100
5069
  hideSearchPathItemName: zt
5101
5070
  }
5102
5071
  ),
5103
5072
  /* @__PURE__ */ o(
5104
- sa,
5073
+ la,
5105
5074
  {
5106
5075
  ...y,
5107
5076
  open: At,
@@ -5113,30 +5082,30 @@ const di = () => {
5113
5082
  }
5114
5083
  ),
5115
5084
  /* @__PURE__ */ o(
5116
- sa,
5085
+ la,
5117
5086
  {
5118
5087
  ...y,
5119
5088
  open: Je,
5120
- onClose: Qn,
5121
- onReplace: Yn,
5122
- onDuplicate: Kn,
5123
- onDecideForEach: Jn,
5089
+ onClose: Jn,
5090
+ onReplace: Kn,
5091
+ onDuplicate: Qn,
5092
+ onDecideForEach: eo,
5124
5093
  conflictingFiles: Cn
5125
5094
  }
5126
5095
  ),
5127
5096
  /* @__PURE__ */ o(
5128
- Ks,
5097
+ qs,
5129
5098
  {
5130
5099
  open: qe,
5131
5100
  onClose: Mt,
5132
- fileMetadata: Ee?.fileMetadata ?? Pt,
5133
- loading: Ee?.loading,
5134
- header: Ee?.header,
5135
- nameLabel: Ee?.nameLabel,
5136
- pathLabel: Ee?.pathLabel,
5137
- modifiedDateLabel: Ee?.modifiedDateLabel,
5138
- sizeLabel: Ee?.sizeLabel,
5139
- authorLabel: Ee?.authorLabel,
5101
+ fileMetadata: Fe?.fileMetadata ?? Pt,
5102
+ loading: Fe?.loading,
5103
+ header: Fe?.header,
5104
+ nameLabel: Fe?.nameLabel,
5105
+ pathLabel: Fe?.pathLabel,
5106
+ modifiedDateLabel: Fe?.modifiedDateLabel,
5107
+ sizeLabel: Fe?.sizeLabel,
5108
+ authorLabel: Fe?.authorLabel,
5140
5109
  dateLocale: p?.dateLocale,
5141
5110
  dateOptions: p?.dateOptions
5142
5111
  }
@@ -5144,7 +5113,7 @@ const di = () => {
5144
5113
  ]
5145
5114
  }
5146
5115
  ) });
5147
- }, Ni = (e, t = tn.MyFiles) => {
5116
+ }, wi = (e, t = tn.MyFiles) => {
5148
5117
  const s = Object.values(tn).includes(
5149
5118
  t
5150
5119
  ) ? t : tn.MyFiles, [a, n] = z(s), r = (i) => {
@@ -5164,25 +5133,25 @@ const di = () => {
5164
5133
  };
5165
5134
  export {
5166
5135
  ge as DestinationFolderMode,
5167
- _s as DialDestinationFolderPopup,
5168
- pi as DialFileManager,
5136
+ Ls as DialDestinationFolderPopup,
5137
+ ui as DialFileManager,
5169
5138
  w as DialFileManagerActions,
5170
5139
  Ce as DialFileManagerConflictActions,
5171
- Oe as DialFileManagerConflictStrategies,
5140
+ ke as DialFileManagerConflictStrategies,
5172
5141
  tn as DialFileManagerTabs,
5173
- k as DialFileNodeType,
5142
+ O as DialFileNodeType,
5174
5143
  Et as DialFilePermission,
5175
- ts as DialFileResourceType,
5176
- ni as DialFoldersTree,
5144
+ Jr as DialFileResourceType,
5145
+ ei as DialFoldersTree,
5177
5146
  ye as FileManagerColumnKey,
5178
5147
  ut as FileManagerCreateFolderTriggerView,
5179
5148
  Be as FileManagerCreateFolderType,
5180
- Ls as FileManagerProvider,
5149
+ ks as FileManagerProvider,
5181
5150
  Rt as FileManagerRenameTriggerView,
5182
- rs as GridSelectionMode,
5183
- ri as NAME_COLUMN,
5184
- ii as SIZE_COLUMN,
5185
- si as UPDATED_AT_COLUMN,
5186
- Ni as useDialFileManagerTabs,
5187
- di as useFileManagerContext
5151
+ os as GridSelectionMode,
5152
+ oi as NAME_COLUMN,
5153
+ ri as SIZE_COLUMN,
5154
+ ai as UPDATED_AT_COLUMN,
5155
+ wi as useDialFileManagerTabs,
5156
+ li as useFileManagerContext
5188
5157
  };