@epam/ai-dial-react-file-manager 0.1.0-dev.18 → 0.1.0-dev.19

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
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
- import on from "classnames";
2
+ import { IconCircleFilled as Un, IconChevronDown as Ja, IconDotsVertical as ln, IconFolder as pa, IconPlus as er, IconFile as tr, IconFileZip as nr, IconCopyMinus as or, IconFolderPlus as Qo, IconEye as Eo, IconX as ar, IconArrowLeft as rr, IconEyeOff as sr, IconAlertCircleFilled as ir, IconAlertTriangleFilled as lr, IconCaretRightFilled as cr, IconUserX as So, IconCopy as Ao, IconTrashX as Po, IconDownload as Mo, IconExternalLink as Io, IconPencilMinus as fa, IconInfoCircle as dr, IconFileDescription as ur } from "@tabler/icons-react";
3
+ import an from "classnames";
4
4
  import * as Ge from "react";
5
- import { useState as z, useMemo as $, useCallback as d, useRef as ce, useEffect as pe, createContext as pr, useLayoutEffect as fr, useContext as mr, useImperativeHandle as Cr } from "react";
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";
5
+ import { useState as z, useMemo as $, useCallback as d, useRef as ce, useEffect as pe, createContext as hr, useLayoutEffect as pr, useContext as fr, useImperativeHandle as mr } from "react";
6
+ import { DialFolderName as ko, DialFileName as Oo, Dropdown as ht, DropdownTrigger as ma, DIAL_ICON_SIZE as Lo, DialGrid as Ca, Popup as zo, PopupSize as Gn, DialRadioGroup as Jo, RadioGroupOrientation as ea, NeutralButton as rn, PrimaryButton as on, GhostIconButton as Et, BASE_ICON_PROPS as M, mergeClasses as Ee, NotificationVariant as Fo, ElementSize as _o, NOT_ALLOWED_SYMBOLS_REGEXP as Cr, DialTooltipContainer as gr, DialTooltipTrigger as vr, DialTooltipContent as yr, Notification as wr, ButtonAppearance as ga, DialSwitch as va, DialTooltip as Vn, FlexibleActionsDirection as tn, BASE_ICON_SIZE as ya, ConfirmationPopup as Nr, ConfirmationPopupVariant as Dr, DialBreadcrumb as xr, DialSearch as br, ButtonVariant as Tr, DialTabs as Rr, ScreenResolution as Ir, ButtonDropdown as ta, Skeleton as qt, SkeletonVariant as Yt, DialEllipsisTooltip as Tt, DialItemType as We, DialFileIcon as Fr, DialSharedEntityIndicator as na, DialIcon as Er, Spinner as Sr, editableContainerProps as Ar, Input as Pr, useEditableItem as Mr, DialNoDataContent as wa, DialDateCellRenderer as Na, convertGridDateToDate as kr, DEFAULT_GRID_DATE_LOCALE as Or, DEFAULT_GRID_DATE_FORMAT_OPTIONS as Lr, DropdownItemType as Da, DialConditionalResizableContainer as zr, DialCollapsibleSidebar as _r } from "@epam/ai-dial-ui-kit";
7
+ import { extensions as oa } from "mime-types";
8
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 = [
9
+ const xa = (e) => /* @__PURE__ */ Ge.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ge.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.1812 1.2002H2.80615C2.43319 1.2002 2.07551 1.34835 1.81178 1.61208C1.54806 1.8758 1.3999 2.23348 1.3999 2.60645V5.48145C1.3999 5.85441 1.54806 6.21209 1.81178 6.47581C2.07551 6.73954 2.43319 6.8877 2.80615 6.8877H15.1812C15.5541 6.8877 15.9118 6.73954 16.1755 6.47581C16.4392 6.21209 16.5874 5.85441 16.5874 5.48145V2.60645C16.5874 2.23348 16.4392 1.8758 16.1755 1.61208C15.9118 1.34835 15.5541 1.2002 15.1812 1.2002ZM14.8999 5.2002H3.0874V2.8877H14.8999V5.2002ZM12 7.80017C12.3107 7.80017 12.5625 8.05201 12.5625 8.36267V11.7377H15.9375C16.2482 11.7377 16.5 11.9895 16.5 12.3002C16.5 12.6108 16.2482 12.8627 15.9375 12.8627H12.5625V16.2377C12.5625 16.5483 12.3107 16.8002 12 16.8002C11.6893 16.8002 11.4375 16.5483 11.4375 16.2377V12.8627H8.0625C7.75184 12.8627 7.5 12.6108 7.5 12.3002C7.5 11.9895 7.75184 11.7377 8.0625 11.7377H11.4375V8.36267C11.4375 8.05201 11.6893 7.80017 12 7.80017ZM2.41188 12.5883C2.14816 12.3246 2 11.9669 2 11.5939V9.00018H3.6875V11.3127H6.1001V13.0002H3.40625C3.03329 13.0002 2.6756 12.852 2.41188 12.5883Z", fill: "currentColor" })), ba = (e) => /* @__PURE__ */ Ge.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ge.createElement("path", { d: "M9.00049 7.7998C9.3108 7.80007 9.56279 8.05198 9.56299 8.3623V11.7373H12.938C13.2483 11.7376 13.5003 11.9895 13.5005 12.2998C13.5005 12.6103 13.2484 12.862 12.938 12.8623H9.56299V16.2373C9.56299 16.5478 9.31092 16.7995 9.00049 16.7998C8.68983 16.7998 8.43799 16.548 8.43799 16.2373V12.8623H5.06299C4.75233 12.8623 4.50049 12.6105 4.50049 12.2998C4.50069 11.9893 4.75245 11.7373 5.06299 11.7373H8.43799V8.3623C8.43819 8.05181 8.68995 7.7998 9.00049 7.7998ZM15.1812 1.2002C15.5541 1.2002 15.9116 1.34858 16.1753 1.6123C16.439 1.87603 16.5874 2.23348 16.5874 2.60645V5.48145C16.5874 5.85441 16.439 6.21186 16.1753 6.47559C15.9116 6.73931 15.5541 6.8877 15.1812 6.8877H2.80615C2.43319 6.8877 2.07573 6.73931 1.81201 6.47559C1.54829 6.21186 1.3999 5.85441 1.3999 5.48145V2.60645C1.3999 2.23348 1.54829 1.87603 1.81201 1.6123C2.07573 1.34858 2.43319 1.2002 2.80615 1.2002H15.1812ZM3.0874 2.8877V5.2002H14.8999V2.8877H3.0874Z", fill: "currentColor" })), Bo = (e) => /* @__PURE__ */ Ge.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ge.createElement("path", { d: "M3.009 12.5527C2.77901 12.4216 2.5877 12.2321 2.45443 12.0034C2.32116 11.7746 2.25064 11.5147 2.25 11.25V3.75C2.25 2.925 2.925 2.25 3.75 2.25H11.25C11.8125 2.25 12.1185 2.53875 12.375 3M10.5 15.75H7.25025C6.98757 15.75 6.72747 15.6983 6.48479 15.5977C6.24211 15.4972 6.0216 15.3499 5.83586 15.1641C5.65012 14.9784 5.50278 14.7579 5.40226 14.5152C5.30174 14.2725 5.25 14.0124 5.25 13.7498V7.25025C5.25 6.71975 5.46074 6.21098 5.83586 5.83586C6.21098 5.46074 6.71975 5.25 7.25025 5.25H13.7498C14.0124 5.25 14.2725 5.30174 14.5152 5.40226C14.7579 5.50278 14.9784 5.65012 15.1641 5.83586C15.3499 6.0216 15.4972 6.24211 15.5977 6.48479C15.6983 6.72747 15.75 6.98757 15.75 7.25025V10.5M12.75 16.5L16.5 12.75M16.5 12.75V16.125M16.5 12.75H13.125", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), Wo = (e) => /* @__PURE__ */ Ge.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ge.createElement("path", { d: "M9.75 14.25H3.75C3.35218 14.25 2.97064 14.092 2.68934 13.8107C2.40804 13.5294 2.25 13.1478 2.25 12.75V4.5C2.25 4.10218 2.40804 3.72064 2.68934 3.43934C2.97064 3.15804 3.35218 3 3.75 3H6.75L9 5.25H14.25C14.6478 5.25 15.0294 5.40804 15.3107 5.68934C15.592 5.97064 15.75 6.35218 15.75 6.75V9.75M12 16.5L15.75 12.75M15.75 12.75V16.125M15.75 12.75H12.375", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), Ho = (e) => /* @__PURE__ */ Ge.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ge.createElement("path", { d: "M4.5 15.75V14.25C4.5 13.4544 4.81607 12.6913 5.37868 12.1287C5.94129 11.5661 6.70435 11.25 7.5 11.25H9.75M15.75 12.75L12 16.5M12 16.5V13.125M12 16.5H15.375M6 5.25C6 6.04565 6.31607 6.80871 6.87868 7.37132C7.44129 7.93393 8.20435 8.25 9 8.25C9.79565 8.25 10.5587 7.93393 11.1213 7.37132C11.6839 6.80871 12 6.04565 12 5.25C12 4.45435 11.6839 3.69129 11.1213 3.12868C10.5587 2.56607 9.79565 2.25 9 2.25C8.20435 2.25 7.44129 2.56607 6.87868 3.12868C6.31607 3.69129 6 4.45435 6 5.25Z", stroke: "#7F8792", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
10
+ var nn = /* @__PURE__ */ ((e) => (e.MyFiles = "my_files", e.Shared = "shared", e.Organization = "organization", e.Review = "review", e))(nn || {}), w = /* @__PURE__ */ ((e) => (e.AddSibling = "addSibling", e.AddChild = "addChild", e.Duplicate = "duplicate", e.Copy = "copy", e.Move = "move", e.Download = "download", e.Delete = "delete", e.Rename = "rename", e.Info = "info", e.Unshare = "unshare", e.RemoveAccess = "removeAccess", e.ManagePermissions = "managePermissions", e.Preview = "preview", e.OpenInNewTab = "openInNewTab", e))(w || {}), Ce = /* @__PURE__ */ ((e) => (e.Replace = "replace", e.Duplicate = "duplicate", e.Cancel = "cancel", e))(Ce || {}), ke = /* @__PURE__ */ ((e) => (e.ReplaceAll = "replaceAll", e.DuplicateAll = "duplicateAll", e.DecideForEach = "decideForEach", e))(ke || {}), ge = /* @__PURE__ */ ((e) => (e.Copy = "copy", e.Move = "move", e))(ge || {}), Rt = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(Rt || {}), ut = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(ut || {}), Be = /* @__PURE__ */ ((e) => (e.Folder = "folder", e.Child = "child", e.Sibling = "sibling", e))(Be || {}), ye = /* @__PURE__ */ ((e) => (e.Name = "name", e.UpdatedAt = "updatedAt", e.Size = "size", e.Author = "author", e.Owner = "owner", e.Path = "path", e.Actions = "__actions", e.Version = "version", e))(ye || {});
11
+ const Wr = "w-full h-full grid grid-rows-[auto_1fr] gap-5 p-6 overflow-hidden min-w-0 bg-layer-1", aa = "w-full text-secondary flex items-center gap-2", Hr = "flex min-h-0 min-w-0 h-full gap-4 overflow-hidden", Ur = "flex flex-col flex-1 min-h-0 min-w-0 h-full gap-4", Gr = "h-full rounded bg-layer-raised text-secondary min-w-0", Vr = "flex-1 w-full rounded text-secondary overflow-auto min-h-0 min-w-0", $r = "opacity-0 pointer-events-none group-hover/grid-row:opacity-100 group-hover/grid-row:pointer-events-auto", jr = 280, Zr = "Files", rt = 20, Xr = "Files", To = ".dial_folder", ra = "New folder", qr = 280, Yr = 460, sa = 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 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 = ({
18
+ var O = /* @__PURE__ */ ((e) => (e.ITEM = "item", e.FOLDER = "folder", e))(O || {}), Jr = /* @__PURE__ */ ((e) => (e.FILE = "FILE", e.PROMPT = "PROMPT", e.CONVERSATION = "CONVERSATION", e.APPLICATION = "APPLICATION", e.TOOLSET = "TOOL_SET", e))(Jr || {}), St = /* @__PURE__ */ ((e) => (e.READ = "READ", e.WRITE = "WRITE", e.SHARE = "SHARE", e))(St || {});
19
+ const ia = ({
20
20
  open: e,
21
21
  onClose: t,
22
22
  onReplace: s,
@@ -33,7 +33,7 @@ const la = ({
33
33
  nameColumnLabel: y = "Name",
34
34
  actionColumnLabel: g = "Action"
35
35
  }) => {
36
- const m = r.length === 1, b = m ? r[0]?.name : "", D = C?.[Ce.Replace] ?? "Replace", h = C?.[Ce.Duplicate] ?? "Duplicate", f = C?.[Ce.Cancel] ?? "Cancel", T = c?.[ke.ReplaceAll] ?? "Replace all", N = c?.[ke.DuplicateAll] ?? "Duplicate all", F = c?.[ke.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", x = c?.[ke.DuplicateAll] ?? "Duplicate all", F = c?.[ke.DecideForEach] ?? "Decide for each", [I, S] = z(
37
37
  Ce.Replace
38
38
  ), [A, _] = z(
39
39
  ke.ReplaceAll
@@ -46,7 +46,7 @@ const la = ({
46
46
  )
47
47
  ), [k, B] = z(
48
48
  void 0
49
- ), L = m ? l : i, Y = /* @__PURE__ */ X(Ie, { children: [
49
+ ), L = m ? l : i, q = /* @__PURE__ */ X(Ie, { children: [
50
50
  "Item with the name ",
51
51
  /* @__PURE__ */ X("span", { className: "text-primary", children: [
52
52
  '"',
@@ -55,7 +55,7 @@ const la = ({
55
55
  ] }),
56
56
  " ",
57
57
  "already exists in this destination."
58
- ] }), J = `${r.length} items with the same names already exist in this destination.`, j = p ?? (m ? Y : J), te = $(
58
+ ] }), J = `${r.length} items with the same names already exist in this destination.`, j = p ?? (m ? q : J), te = $(
59
59
  () => [
60
60
  {
61
61
  id: Ce.Replace,
@@ -111,17 +111,17 @@ const la = ({
111
111
  {
112
112
  key: Ce.Replace,
113
113
  label: D,
114
- icon: /* @__PURE__ */ o(Hn, { size: 10, className: "text-accent-tertiary" })
114
+ icon: /* @__PURE__ */ o(Un, { size: 10, className: "text-accent-tertiary" })
115
115
  },
116
116
  {
117
117
  key: Ce.Duplicate,
118
118
  label: h,
119
- icon: /* @__PURE__ */ o(Hn, { size: 10, className: "text-accent-secondary" })
119
+ icon: /* @__PURE__ */ o(Un, { size: 10, className: "text-accent-secondary" })
120
120
  },
121
121
  {
122
122
  key: Ce.Cancel,
123
123
  label: f,
124
- icon: /* @__PURE__ */ o(Hn, { size: 10, className: "text-error" })
124
+ icon: /* @__PURE__ */ o(Un, { size: 10, className: "text-error" })
125
125
  }
126
126
  ], De = be.find(
127
127
  (ne) => ne.key === W.data.action
@@ -129,7 +129,7 @@ const la = ({
129
129
  return /* @__PURE__ */ o("div", { className: "flex items-center h-full", children: /* @__PURE__ */ o(
130
130
  ht,
131
131
  {
132
- trigger: [Ca.Click],
132
+ trigger: [ma.Click],
133
133
  open: G,
134
134
  items: be,
135
135
  onItemClick: ({ key: ne }) => {
@@ -153,10 +153,10 @@ const la = ({
153
153
  De?.label ?? D
154
154
  ] }),
155
155
  /* @__PURE__ */ o(
156
- er,
156
+ Ja,
157
157
  {
158
158
  size: Lo.SM,
159
- className: on(
159
+ className: an(
160
160
  "text-secondary transition-transform",
161
161
  G && "rotate-180"
162
162
  )
@@ -174,7 +174,7 @@ const la = ({
174
174
  h,
175
175
  f,
176
176
  k
177
- ]), Ne = $(
177
+ ]), xe = $(
178
178
  () => [
179
179
  {
180
180
  id: ke.ReplaceAll,
@@ -182,13 +182,13 @@ const la = ({
182
182
  },
183
183
  {
184
184
  id: ke.DuplicateAll,
185
- name: N
185
+ name: x
186
186
  },
187
187
  {
188
188
  id: ke.DecideForEach,
189
189
  name: F,
190
190
  content: A === ke.DecideForEach ? /* @__PURE__ */ o("div", { className: "mt-4", children: /* @__PURE__ */ o(
191
- ga,
191
+ Ca,
192
192
  {
193
193
  columnDefs: we,
194
194
  rowData: fe,
@@ -204,7 +204,7 @@ const la = ({
204
204
  ],
205
205
  [
206
206
  T,
207
- N,
207
+ x,
208
208
  F,
209
209
  A,
210
210
  we,
@@ -221,7 +221,7 @@ const la = ({
221
221
  );
222
222
  }, [r]), Te = d(() => {
223
223
  ue(), t();
224
- }, [ue, t]), xe = d(() => {
224
+ }, [ue, t]), Ne = d(() => {
225
225
  if (ue(), m)
226
226
  I === Ce.Replace ? s() : a();
227
227
  else if (A === ke.ReplaceAll)
@@ -253,33 +253,32 @@ const la = ({
253
253
  {
254
254
  open: e,
255
255
  onClose: Te,
256
- size: m ? Un.Sm : Un.Md,
257
- className: on([!m && "w-[600px]"]),
256
+ size: m ? Gn.Sm : Gn.Md,
257
+ className: an([!m && "w-[600px]"]),
258
258
  header: L,
259
- dividers: !1,
260
259
  preventKeyboardOnOpen: !0,
261
260
  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 })
261
+ /* @__PURE__ */ o(rn, { onClick: Te, label: u }),
262
+ /* @__PURE__ */ o(on, { onClick: Ne, label: v })
264
263
  ] }),
265
264
  children: /* @__PURE__ */ X("div", { className: "px-6 py-4", children: [
266
265
  /* @__PURE__ */ o("p", { className: "text-secondary mb-4 break-words", children: j }),
267
266
  m ? /* @__PURE__ */ o(
268
- ea,
267
+ Jo,
269
268
  {
270
269
  elementId: "single-file-conflict",
271
270
  radioButtons: te,
272
271
  activeRadioButton: I,
273
- orientation: ta.Column,
272
+ orientation: ea.Column,
274
273
  onChange: (W) => S(W)
275
274
  }
276
275
  ) : /* @__PURE__ */ o(
277
- ea,
276
+ Jo,
278
277
  {
279
278
  elementId: "multiple-files-conflict",
280
- radioButtons: Ne,
279
+ radioButtons: xe,
281
280
  activeRadioButton: A,
282
- orientation: ta.Column,
281
+ orientation: ea.Column,
283
282
  onChange: (W) => _(W),
284
283
  formItemChildrenClassName: "gap-3"
285
284
  }
@@ -313,13 +312,7 @@ const la = ({
313
312
  allowedPlacements: ["top-start", "top-end", "bottom-start"],
314
313
  items: c,
315
314
  className: Ee("sticky right-0", n),
316
- children: /* @__PURE__ */ o(
317
- _o,
318
- {
319
- className: "text-secondary mx-2 flex flex-row gap-2 hover:text-accent cursor-default",
320
- icon: /* @__PURE__ */ o(sn, { ...M })
321
- }
322
- )
315
+ children: /* @__PURE__ */ o(Et, { icon: /* @__PURE__ */ o(ln, { ...M }) })
323
316
  }
324
317
  ) : null;
325
318
  },
@@ -397,7 +390,7 @@ const Ke = (e, t) => {
397
390
  t.push(r), r.nodeType === O.FOLDER && s(r);
398
391
  };
399
392
  return s(e), t;
400
- }, Ra = (e) => (e.name ?? e.path.split("/").pop() ?? "").startsWith("."), rn = (e) => {
393
+ }, Ta = (e) => (e.name ?? e.path.split("/").pop() ?? "").startsWith("."), sn = (e) => {
401
394
  if (!e) return "0 bytes";
402
395
  const t = 1024, s = t * 1024;
403
396
  return e >= s ? `${(e / s).toFixed(1)} MB` : e >= t ? `${(e / t).toFixed(0)} KB` : `${e} bytes`;
@@ -413,7 +406,7 @@ const Ke = (e, t) => {
413
406
  return e;
414
407
  }
415
408
  };
416
- function Go(e, t, s) {
409
+ function Uo(e, t, s) {
417
410
  if (!e || e.includes("*/*"))
418
411
  return !0;
419
412
  const a = t.toLowerCase(), n = s && s.includes(".") ? `.${s.split(".").at(-1).toLowerCase()}` : void 0;
@@ -430,16 +423,16 @@ function Go(e, t, s) {
430
423
  }
431
424
  const is = (e) => e?.map((t) => t.endsWith("/*") ? t.replace("/*", "s") : ls(t).flat().map((s) => `.${s}`)).flat().join(", ") || "", ls = (e) => {
432
425
  const [t, s] = e.split("/");
433
- return t === "*" ? ["all"] : s === "*" ? Object.entries(aa).reduce((a, [n, r]) => {
426
+ return t === "*" ? ["all"] : s === "*" ? Object.entries(oa).reduce((a, [n, r]) => {
434
427
  const [l] = n.split("/");
435
428
  return l === t && a.push(...r), a;
436
- }, []) : aa[e] || [];
429
+ }, []) : oa[e] || [];
437
430
  }, jn = (e) => {
438
431
  if (!e) return;
439
432
  const t = e.flags.replace(/[gy]/g, "");
440
433
  return new RegExp(e.source, t);
441
434
  };
442
- function Vo(e, t, s) {
435
+ function Go(e, t, s) {
443
436
  if (t && jn(t)?.test(e.name))
444
437
  return s ?? `This ${e.isFolder ? "folder" : "file"} contains forbidden characters in its name. Please rename it.`;
445
438
  }
@@ -450,17 +443,17 @@ const cs = (e) => {
450
443
  name: e.slice(t + 1)
451
444
  } : { parent: "", name: e };
452
445
  }, ds = (e, t, s) => {
453
- const a = !e.contentLength || s == null || e.contentLength <= s, n = !e.contentType || Go(t, e.contentType, e.name);
446
+ const a = !e.contentLength || s == null || e.contentLength <= s, n = !e.contentType || Uo(t, e.contentType, e.name);
454
447
  return a && n;
455
448
  }, us = (e, t, s, a, n) => {
456
449
  if (e.nodeType === O.FOLDER) return;
457
450
  const r = !e.contentLength || s == null || e.contentLength <= s;
458
- if (!(!e.contentType || Go(t, e.contentType, e.name)))
451
+ if (!(!e.contentType || Uo(t, e.contentType, e.name)))
459
452
  return a ?? (t?.length ? `Unsupported file type. Supported types: ${is(t)}.` : "Unsupported file type.");
460
453
  if (!r)
461
- return n ?? `File is too large. Maximum size: ${rn(s)}.`;
462
- }, hs = (e) => e.replace(/\/+$/, "").split("/").filter(Boolean).length, Yt = (e) => {
463
- const t = `${sa} `, s = new RegExp(`^${sa} (\\d+)$`), a = new Set(
454
+ return n ?? `File is too large. Maximum size: ${sn(s)}.`;
455
+ }, hs = (e) => e.replace(/\/+$/, "").split("/").filter(Boolean).length, Kt = (e) => {
456
+ const t = `${ra} `, s = new RegExp(`^${ra} (\\d+)$`), a = new Set(
464
457
  e.map((i) => i.name.toLowerCase())
465
458
  ), n = e.map((i) => {
466
459
  const p = i.name.match(s);
@@ -502,7 +495,7 @@ const cs = (e) => {
502
495
  toggleTreeCollapse: l,
503
496
  setIsTreeCollapsed: r
504
497
  };
505
- }, ca = (e, t, s) => {
498
+ }, la = (e, t, s) => {
506
499
  if (!t.has(e))
507
500
  return e;
508
501
  const a = s === O.FOLDER ? (n, r) => `${n} (${r})` : (n, r) => {
@@ -513,7 +506,7 @@ const cs = (e) => {
513
506
  const r = a(e, n);
514
507
  if (!t.has(r)) return r;
515
508
  }
516
- }, Ro = (e) => e.name, Ia = ({
509
+ }, Ro = (e) => e.name, Ra = ({
517
510
  getDestinationFiles: e,
518
511
  onResolve: t
519
512
  }) => {
@@ -523,7 +516,7 @@ const cs = (e) => {
523
516
  p.current = !1, r(!1), a([]), i(null);
524
517
  }, []), v = d(
525
518
  (f, T) => {
526
- const N = e(f), F = new Set(N.map(Ro)), I = T.filter((S) => F.has(S.name));
519
+ const x = e(f), F = new Set(x.map(Ro)), I = T.filter((S) => F.has(S.name));
527
520
  return {
528
521
  hasConflicts: I.length > 0,
529
522
  conflicts: I
@@ -531,14 +524,14 @@ const cs = (e) => {
531
524
  },
532
525
  [e]
533
526
  ), u = d(
534
- (f, T, N, F) => {
527
+ (f, T, x, F) => {
535
528
  const I = e(f), S = new Set(I.map(Ro));
536
529
  return T.map((A) => {
537
- const _ = A.name, U = S.has(_), P = N && U ? _ : ca(_, S, A.nodeType);
538
- return (!N || !U) && S.add(P), {
530
+ const _ = A.name, U = S.has(_), P = x && U ? _ : la(_, S, A.nodeType);
531
+ return (!x || !U) && S.add(P), {
539
532
  sourceUrl: A.path,
540
533
  destinationUrl: `${f}/${P}`,
541
- overwrite: N && U,
534
+ overwrite: x && U,
542
535
  nodeType: A.nodeType ?? O.ITEM,
543
536
  ...F ?? {}
544
537
  };
@@ -546,10 +539,10 @@ const cs = (e) => {
546
539
  },
547
540
  [e]
548
541
  ), y = d(
549
- (f, T, N, F) => {
542
+ (f, T, x, F) => {
550
543
  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);
544
+ return T.filter((_) => x.get(_.path) !== Ce.Cancel).map((_) => {
545
+ const U = x.get(_.path), P = S.has(_.name), k = U === Ce.Replace && P, B = k ? _.name : la(_.name, S, _.nodeType);
553
546
  return k || S.add(B), {
554
547
  sourceUrl: _.path,
555
548
  destinationUrl: `${f}/${B}`,
@@ -561,22 +554,22 @@ const cs = (e) => {
561
554
  },
562
555
  [e]
563
556
  ), g = d(
564
- (f, T, N) => {
557
+ (f, T, x) => {
565
558
  const F = v(f, T);
566
559
  return F.hasConflicts && (i({
567
560
  files: T,
568
561
  destinationFolder: f,
569
- metadata: N
562
+ metadata: x
570
563
  }), C(F.conflicts)), F;
571
564
  },
572
565
  [v, C]
573
566
  ), m = d(() => {
574
567
  if (!l) return;
575
- const { files: f, destinationFolder: T, metadata: N } = l, F = u(
568
+ const { files: f, destinationFolder: T, metadata: x } = l, F = u(
576
569
  T,
577
570
  f,
578
571
  !0,
579
- N
572
+ x
580
573
  );
581
574
  t?.(F, T), c();
582
575
  }, [
@@ -586,11 +579,11 @@ const cs = (e) => {
586
579
  c
587
580
  ]), b = d(() => {
588
581
  if (!l) return;
589
- const { files: f, destinationFolder: T, metadata: N } = l, F = u(
582
+ const { files: f, destinationFolder: T, metadata: x } = l, F = u(
590
583
  T,
591
584
  f,
592
585
  !1,
593
- N
586
+ x
594
587
  );
595
588
  t?.(F, T), c();
596
589
  }, [
@@ -600,7 +593,7 @@ const cs = (e) => {
600
593
  c
601
594
  ]), D = d(() => {
602
595
  if (!l) return;
603
- const { files: f, destinationFolder: T, metadata: N } = l, F = y(
596
+ const { files: f, destinationFolder: T, metadata: x } = l, F = y(
604
597
  T,
605
598
  f,
606
599
  new Map(
@@ -609,7 +602,7 @@ const cs = (e) => {
609
602
  Ce.Cancel
610
603
  ])
611
604
  ),
612
- N
605
+ x
613
606
  );
614
607
  t?.(F, T), c();
615
608
  }, [
@@ -621,15 +614,15 @@ const cs = (e) => {
621
614
  ]), h = d(
622
615
  (f) => {
623
616
  if (!l) return;
624
- const { files: T, destinationFolder: N, metadata: F } = l, I = new Map(
617
+ const { files: T, destinationFolder: x, metadata: F } = l, I = new Map(
625
618
  f.map((A) => [A.file.path, A.action])
626
619
  ), S = y(
627
- N,
620
+ x,
628
621
  T,
629
622
  I,
630
623
  F
631
624
  );
632
- t?.(S, N), c();
625
+ t?.(S, x), c();
633
626
  },
634
627
  [
635
628
  l,
@@ -665,7 +658,7 @@ const cs = (e) => {
665
658
  }) => {
666
659
  const [p, C] = z(!1), [c, v] = z([]), [u, y] = z([]), [g, m] = z(ge.Copy), [b, D] = z(), [h, f] = z(null), {
667
660
  conflictingFiles: T,
668
- conflictResolutionOpen: N,
661
+ conflictResolutionOpen: x,
669
662
  hasActiveConflictRef: F,
670
663
  startConflictResolution: I,
671
664
  resolveConflictsWithStrategy: S,
@@ -675,7 +668,7 @@ const cs = (e) => {
675
668
  handleDuplicateAll: P,
676
669
  handleCancelAll: k,
677
670
  handleDecideForEach: B
678
- } = Ia({
671
+ } = Ra({
679
672
  getDestinationFiles: e,
680
673
  onResolve: (G, ne) => {
681
674
  G?.length && (h?.type === ge.Copy ? (t?.(G, ne), a?.()) : h?.type === ge.Move && h.sourceFolder && (s?.(
@@ -686,7 +679,7 @@ const cs = (e) => {
686
679
  }
687
680
  }), L = d(() => {
688
681
  v([]), y([]), f(null), D(void 0);
689
- }, []), Y = d(
682
+ }, []), q = d(
690
683
  (G) => {
691
684
  const ne = I(G, c, {
692
685
  type: ge.Copy
@@ -743,7 +736,7 @@ const cs = (e) => {
743
736
  B(G), L();
744
737
  },
745
738
  [B, L]
746
- ), Ne = d(
739
+ ), xe = d(
747
740
  (G) => {
748
741
  const ne = G.at(0)?.parentPath ?? "/", he = S(
749
742
  ne,
@@ -760,7 +753,7 @@ const cs = (e) => {
760
753
  []
761
754
  ), Te = d(() => {
762
755
  C(!1), F.current || L();
763
- }, [L, F]), [xe, W] = z(), be = d(
756
+ }, [L, F]), [Ne, W] = z(), be = d(
764
757
  (G) => {
765
758
  v(G);
766
759
  const ne = G[0]?.parentPath ?? G[0]?.folderId;
@@ -779,19 +772,19 @@ const cs = (e) => {
779
772
  [i]
780
773
  );
781
774
  return {
782
- handleDuplicate: Ne,
775
+ handleDuplicate: xe,
783
776
  handleCloseDestinationFolderPopup: Te,
784
777
  handleOpenDestinationFolderPopup: ue,
785
- handleCopyTo: Y,
778
+ handleCopyTo: q,
786
779
  handleMoveTo: J,
787
780
  openDestinationFolderPopup: p,
788
781
  destinationFolderMode: g,
789
- destinationFolderTitle: xe,
782
+ destinationFolderTitle: Ne,
790
783
  handleSetCopiedFiles: be,
791
784
  handleSetMovedFiles: De,
792
785
  clearState: L,
793
786
  conflictingFiles: T,
794
- conflictResolutionOpen: N,
787
+ conflictResolutionOpen: x,
795
788
  openConflictResolution: _,
796
789
  closeConflictResolution: A,
797
790
  handleConflictReplace: j,
@@ -880,9 +873,9 @@ const cs = (e) => {
880
873
  uploadEnabled: i = !0,
881
874
  currentFolder: p
882
875
  } = {}) => {
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(
876
+ const [C, c] = z(!1), [v, u] = z(!1), [y, g] = z(), m = ce(null), b = ce(""), D = ce([]), h = $(() => !!p?.permissions?.includes(St.WRITE), [p]), [f, T] = z(/* @__PURE__ */ new Map()), [x, F] = z(null), I = d(
884
877
  (R) => !a || a.includes("*/*") ? R : R.filter(
885
- ({ fileContent: H, name: V }) => Go(a, H.type, V)
878
+ ({ fileContent: H, name: V }) => Uo(a, H.type, V)
886
879
  ),
887
880
  [a]
888
881
  ), S = d(() => {
@@ -895,17 +888,17 @@ const cs = (e) => {
895
888
  closeConflictResolution: k,
896
889
  openConflictResolution: B,
897
890
  handleReplaceAll: L,
898
- handleDuplicateAll: Y,
891
+ handleDuplicateAll: q,
899
892
  handleCancelAll: J,
900
893
  handleDecideForEach: j
901
- } = Ia({
894
+ } = Ra({
902
895
  getDestinationFiles: () => D.current,
903
896
  onResolve: (R, H) => {
904
897
  if (!i || !h) {
905
898
  S();
906
899
  return;
907
900
  }
908
- if (!N) return;
901
+ if (!x) return;
909
902
  const V = R.map((Q) => {
910
903
  const Z = f.get(Q.sourceUrl);
911
904
  if (!Z)
@@ -1011,13 +1004,13 @@ const cs = (e) => {
1011
1004
  S,
1012
1005
  h
1013
1006
  ]
1014
- ), Ne = d(() => {
1007
+ ), xe = d(() => {
1015
1008
  L(), S();
1016
1009
  }, [L, S]), ue = d(() => {
1017
- Y(), S();
1018
- }, [Y, S]), Te = d(() => {
1010
+ q(), S();
1011
+ }, [q, S]), Te = d(() => {
1019
1012
  J(), S();
1020
- }, [J, S]), xe = d(
1013
+ }, [J, S]), Ne = d(
1021
1014
  (R) => {
1022
1015
  j(R), S();
1023
1016
  },
@@ -1202,27 +1195,27 @@ const cs = (e) => {
1202
1195
  hasActiveUploadConflictRef: U,
1203
1196
  openUploadConflictResolution: B,
1204
1197
  closeUploadConflictResolution: W,
1205
- handleUploadConflictReplace: Ne,
1198
+ handleUploadConflictReplace: xe,
1206
1199
  handleUploadConflictDuplicate: ue,
1207
1200
  handleUploadConflictCancel: Te,
1208
- handleUploadConflictDecideForEach: xe
1201
+ handleUploadConflictDecideForEach: Ne
1209
1202
  };
1210
- }, Fa = pr(void 0), Ea = {
1203
+ }, Ia = hr(void 0), Fa = {
1211
1204
  hiddenItemWarning: `${Fo.Warning}__A dot at the start of the name will make the item hidden`
1212
- }, Sa = {
1205
+ }, Ea = {
1213
1206
  consecutiveDotsError: "Name cannot contain consecutive dots"
1214
- }, xs = {
1207
+ }, Ns = {
1215
1208
  emptyName: "Name cannot be empty",
1216
1209
  duplicateName: "An item with this name already exists",
1217
- hiddenItemWarning: Ea.hiddenItemWarning,
1218
- consecutiveDotsError: Sa.consecutiveDotsError
1210
+ hiddenItemWarning: Fa.hiddenItemWarning,
1211
+ consecutiveDotsError: Ea.consecutiveDotsError
1219
1212
  };
1220
1213
  function Ds(e) {
1221
1214
  let t = e.length;
1222
1215
  for (; t > 0 && e[t - 1] === "/"; ) t--;
1223
1216
  return e.slice(0, t);
1224
1217
  }
1225
- function Ns(e, t) {
1218
+ function xs(e, t) {
1226
1219
  const s = Ds(e), a = s.lastIndexOf("/");
1227
1220
  return a === -1 ? t : s.slice(0, a + 1) + t;
1228
1221
  }
@@ -1230,7 +1223,7 @@ function bs(e) {
1230
1223
  const t = e.lastIndexOf(".");
1231
1224
  return t === -1 || t === 0 ? e : e.substring(0, t);
1232
1225
  }
1233
- function da(e) {
1226
+ function ca(e) {
1234
1227
  const t = e.lastIndexOf(".");
1235
1228
  return t === -1 || t === 0 ? "" : e.substring(t);
1236
1229
  }
@@ -1242,7 +1235,7 @@ const Ts = ({
1242
1235
  }) => {
1243
1236
  const [n, r] = z(), l = $(
1244
1237
  () => ({
1245
- ...xs,
1238
+ ...Ns,
1246
1239
  ...s
1247
1240
  }),
1248
1241
  [s]
@@ -1263,14 +1256,14 @@ const Ts = ({
1263
1256
  const g = n.nodeType === O.ITEM;
1264
1257
  let m = y.trim();
1265
1258
  if (g) {
1266
- const f = da(n.name);
1259
+ const f = ca(n.name);
1267
1260
  f && !m.endsWith(f) && (m = m + f);
1268
1261
  }
1269
1262
  if (m === n.name) {
1270
1263
  r(void 0);
1271
1264
  return;
1272
1265
  }
1273
- const b = Ns(
1266
+ const b = xs(
1274
1267
  n.path,
1275
1268
  m
1276
1269
  ), D = n.parentPath;
@@ -1298,14 +1291,14 @@ const Ts = ({
1298
1291
  const b = g.nodeType === O.ITEM;
1299
1292
  let D = m;
1300
1293
  if (b) {
1301
- const f = da(g.name);
1294
+ const f = ca(g.name);
1302
1295
  f && !D.endsWith(f) && (D = D + f);
1303
1296
  }
1304
1297
  const h = g.parentPath;
1305
1298
  if (h) {
1306
1299
  const f = Ke(e, h);
1307
1300
  if (f && new Set(
1308
- (f.items ?? []).filter((N) => N.path !== g.path).map((N) => N.name.toLowerCase())
1301
+ (f.items ?? []).filter((x) => x.path !== g.path).map((x) => x.name.toLowerCase())
1309
1302
  ).has(D.toLowerCase()))
1310
1303
  return l.duplicateName;
1311
1304
  }
@@ -1327,7 +1320,7 @@ const Ts = ({
1327
1320
  renameValidateHandler: v,
1328
1321
  getDisplayName: u
1329
1322
  };
1330
- }, Aa = (e) => {
1323
+ }, Sa = (e) => {
1331
1324
  const [t, s] = z(e?.expandedPaths ?? /* @__PURE__ */ new Set()), a = $(
1332
1325
  () => !!e?.onExpandedPathsChange,
1333
1326
  [e?.onExpandedPathsChange]
@@ -1387,28 +1380,28 @@ const Ts = ({
1387
1380
  return e && (e.newFolder && c.push({
1388
1381
  key: "new-folder",
1389
1382
  label: e.newFolder.label,
1390
- icon: e?.newFolder?.icon !== void 0 ? e?.newFolder?.icon : /* @__PURE__ */ o(fa, { ...M, className: "text-secondary" }),
1383
+ icon: e?.newFolder?.icon !== void 0 ? e?.newFolder?.icon : /* @__PURE__ */ o(pa, { ...M, className: "text-secondary" }),
1391
1384
  onClick: () => {
1392
1385
  a && a();
1393
1386
  }
1394
1387
  }), e.newItem && c.push({
1395
1388
  key: "new-item",
1396
1389
  label: e.newItem.label,
1397
- icon: e?.newItem?.icon !== void 0 ? e?.newItem?.icon : /* @__PURE__ */ o(tr, { ...M, className: "text-secondary" }),
1390
+ icon: e?.newItem?.icon !== void 0 ? e?.newItem?.icon : /* @__PURE__ */ o(er, { ...M, className: "text-secondary" }),
1398
1391
  onClick: () => {
1399
1392
  r && r();
1400
1393
  }
1401
1394
  }), e.uploadFiles && c.push({
1402
1395
  key: "upload-file",
1403
1396
  label: e.uploadFiles.label,
1404
- icon: e?.uploadFiles?.icon !== void 0 ? e?.uploadFiles?.icon : /* @__PURE__ */ o(nr, { ...M, className: "text-secondary" }),
1397
+ icon: e?.uploadFiles?.icon !== void 0 ? e?.uploadFiles?.icon : /* @__PURE__ */ o(tr, { ...M, className: "text-secondary" }),
1405
1398
  onClick: () => {
1406
1399
  s && s();
1407
1400
  }
1408
1401
  }), e.uploadArchive && c.push({
1409
1402
  key: "upload-archive",
1410
1403
  label: e.uploadArchive.label,
1411
- icon: e?.uploadArchive?.icon !== void 0 ? e?.uploadArchive?.icon : /* @__PURE__ */ o(or, { ...M, className: "text-secondary" }),
1404
+ icon: e?.uploadArchive?.icon !== void 0 ? e?.uploadArchive?.icon : /* @__PURE__ */ o(nr, { ...M, className: "text-secondary" }),
1412
1405
  onClick: () => {
1413
1406
  n && n();
1414
1407
  }
@@ -1423,7 +1416,7 @@ const Ts = ({
1423
1416
  () => i?.length > 0,
1424
1417
  [i]
1425
1418
  ), C = $(
1426
- () => !t?.permissions?.includes(Et.WRITE) || !!l,
1419
+ () => !t?.permissions?.includes(St.WRITE) || !!l,
1427
1420
  [t, l]
1428
1421
  );
1429
1422
  return {
@@ -1434,8 +1427,8 @@ const Ts = ({
1434
1427
  }, Is = {
1435
1428
  emptyName: "Folder name cannot be empty",
1436
1429
  duplicateName: "A folder with this name already exists",
1437
- hiddenItemWarning: Ea.hiddenItemWarning,
1438
- consecutiveDotsError: Sa.consecutiveDotsError
1430
+ hiddenItemWarning: Fa.hiddenItemWarning,
1431
+ consecutiveDotsError: Ea.consecutiveDotsError
1439
1432
  }, Fs = ({
1440
1433
  currentFolder: e,
1441
1434
  onCreateFolder: t,
@@ -1477,16 +1470,16 @@ const Ts = ({
1477
1470
  D.current = e?.path || "/";
1478
1471
  const P = `__new_folder_${Date.now()}`, k = (e?.items ?? []).filter(
1479
1472
  (L) => L.nodeType === O.FOLDER
1480
- ), B = Yt(k);
1473
+ ), B = Kt(k);
1481
1474
  p(P), b(B), l(!0), c(Be.Folder), u(e || null);
1482
- }, [r, e]), N = d(
1475
+ }, [r, e]), x = d(
1483
1476
  (P) => {
1484
1477
  if (r) return;
1485
1478
  D.current = P?.parentPath || "/";
1486
1479
  const k = `__new_folder_${Date.now()}`, L = (It(n, P?.parentPath || "/")?.items ?? []).filter(
1487
1480
  (J) => J.nodeType === O.FOLDER
1488
- ), Y = Yt(L);
1489
- b(Y), p(k), l(!0), c(Be.Sibling), u(P), g(P?.parentPath || "/");
1481
+ ), q = Kt(L);
1482
+ b(q), p(k), l(!0), c(Be.Sibling), u(P), g(P?.parentPath || "/");
1490
1483
  },
1491
1484
  [r, n]
1492
1485
  ), F = d(
@@ -1494,8 +1487,8 @@ const Ts = ({
1494
1487
  if (r) return;
1495
1488
  D.current = P.path;
1496
1489
  const k = `__new_folder_${Date.now()}`, B = (P?.items ?? []).filter(
1497
- (Y) => Y.nodeType === O.FOLDER
1498
- ), L = Yt(B);
1490
+ (q) => q.nodeType === O.FOLDER
1491
+ ), L = Kt(B);
1499
1492
  b(L), p(k), l(!0), c(Be.Child), u(P), g(P?.path || "/");
1500
1493
  },
1501
1494
  [r]
@@ -1504,8 +1497,8 @@ const Ts = ({
1504
1497
  if (r) return;
1505
1498
  D.current = P?.parentPath || "/";
1506
1499
  const B = (It(n, P?.parentPath || "/")?.items ?? []).filter(
1507
- (Y) => Y.nodeType === O.FOLDER
1508
- ), L = Yt(B);
1500
+ (q) => q.nodeType === O.FOLDER
1501
+ ), L = Kt(B);
1509
1502
  b(L), c(Be.Sibling), u(P), g(P?.parentPath || "/"), l(!0);
1510
1503
  },
1511
1504
  [r, n]
@@ -1515,7 +1508,7 @@ const Ts = ({
1515
1508
  D.current = P.path;
1516
1509
  const k = (P?.items ?? []).filter(
1517
1510
  (L) => L.nodeType === O.FOLDER
1518
- ), B = Yt(k);
1511
+ ), B = Kt(k);
1519
1512
  b(B), c(Be.Child), u(P), g(P?.path || "/"), l(!0);
1520
1513
  },
1521
1514
  [r]
@@ -1548,13 +1541,13 @@ const Ts = ({
1548
1541
  if (!k)
1549
1542
  return;
1550
1543
  A();
1551
- const L = `${f?.path ?? "/"}/${k}`, Y = `${L}/${To}`, j = {
1544
+ const L = `${f?.path ?? "/"}/${k}`, q = `${L}/${To}`, j = {
1552
1545
  fileContent: new File([], To, {
1553
1546
  type: "text/plain"
1554
1547
  }),
1555
1548
  name: To
1556
1549
  };
1557
- t && await t(j, L, Y);
1550
+ t && await t(j, L, q);
1558
1551
  },
1559
1552
  [f, t, A]
1560
1553
  );
@@ -1564,7 +1557,7 @@ const Ts = ({
1564
1557
  newFolderTempId: i,
1565
1558
  newFolderDefaultName: m,
1566
1559
  startFolderCreation: T,
1567
- startGridSiblingFolderCreation: N,
1560
+ startGridSiblingFolderCreation: x,
1568
1561
  startTreeSiblingFolderCreation: I,
1569
1562
  startGridChildFolderCreation: F,
1570
1563
  startTreeChildFolderCreation: S,
@@ -1582,12 +1575,12 @@ const Ts = ({
1582
1575
  additionalButtons: $(() => /* @__PURE__ */ X(Ie, { children: [
1583
1576
  e,
1584
1577
  /* @__PURE__ */ o(
1585
- $n,
1578
+ Et,
1586
1579
  {
1587
1580
  disabled: a,
1588
- size: Bo.Small,
1581
+ size: _o.Small,
1589
1582
  onClick: s,
1590
- icon: /* @__PURE__ */ o(ar, { size: Lo.LG, stroke: 1.5 }),
1583
+ icon: /* @__PURE__ */ o(or, { size: Lo.LG, stroke: 1.5 }),
1591
1584
  "aria-label": "collapse-all"
1592
1585
  }
1593
1586
  )
@@ -1617,7 +1610,7 @@ function As(e) {
1617
1610
  }
1618
1611
  return s(e), t;
1619
1612
  }
1620
- function ua(e, t) {
1613
+ function da(e, t) {
1621
1614
  const s = Ft(t);
1622
1615
  return e.filter((a) => Ft(a.name).includes(s));
1623
1616
  }
@@ -1667,15 +1660,15 @@ function Ps({
1667
1660
  ]), pe(() => {
1668
1661
  n || (y.current = a);
1669
1662
  }, [a, n]);
1670
- const N = $(() => {
1663
+ const x = $(() => {
1671
1664
  if (e) {
1672
1665
  const I = n ? y.current : a;
1673
- return !b || I.length === 0 ? I : ua(I, b);
1666
+ return !b || I.length === 0 ? I : da(I, b);
1674
1667
  }
1675
1668
  if (!b || !i.length)
1676
1669
  return [];
1677
1670
  const F = As(i);
1678
- return ua(F, b);
1671
+ return da(F, b);
1679
1672
  }, [
1680
1673
  e,
1681
1674
  a,
@@ -1691,7 +1684,7 @@ function Ps({
1691
1684
  handleSearchChange: T,
1692
1685
  handleSearchActivate: h,
1693
1686
  handleSearchClear: f,
1694
- searchResultsRows: N
1687
+ searchResultsRows: x
1695
1688
  };
1696
1689
  }
1697
1690
  function Ms({
@@ -1740,7 +1733,7 @@ const ks = ({
1740
1733
  toolbarOptions: h,
1741
1734
  bulkActionsToolbarOptions: f,
1742
1735
  destinationFolderPopupOptions: T,
1743
- conflictResolutionPopupOptions: N,
1736
+ conflictResolutionPopupOptions: x,
1744
1737
  onPathChange: F,
1745
1738
  onTableFileClick: I,
1746
1739
  handleSelectionClick: S,
@@ -1751,16 +1744,16 @@ const ks = ({
1751
1744
  onDownloadFiles: k,
1752
1745
  onRenameValidate: B,
1753
1746
  renameValidationMessages: L,
1754
- forbiddenSymbolsRegExp: Y = gr,
1747
+ forbiddenSymbolsRegExp: q = Cr,
1755
1748
  forbiddenSymbolsTooltip: J,
1756
1749
  onUploadFiles: j,
1757
1750
  onValidateUpload: te,
1758
1751
  uploadEnabled: fe,
1759
1752
  uploadValidationMessages: we,
1760
- maxFileSize: Ne,
1753
+ maxFileSize: xe,
1761
1754
  onUploadArchive: ue,
1762
1755
  prepareUploadFileName: Te,
1763
- onCreateFolder: xe,
1756
+ onCreateFolder: Ne,
1764
1757
  onCreateFolderValidate: W,
1765
1758
  folderCreationValidationMessages: be,
1766
1759
  fileMetadataPopupOptions: De,
@@ -1783,27 +1776,27 @@ const ks = ({
1783
1776
  emptyStateDescription: $e,
1784
1777
  sharedWithMeIds: He,
1785
1778
  onFolderPopupPathChange: pt,
1786
- onManagePermissions: ln,
1779
+ onManagePermissions: cn,
1787
1780
  onPreview: st,
1788
1781
  onOpenInNewTab: ft,
1789
1782
  previewExtensions: Zn,
1790
1783
  isRenameFileAvailable: Xn,
1791
1784
  isDuplicateFolderAvailable: qn,
1792
1785
  customUploadFileAction: mt,
1793
- customCreateNewItemAction: cn,
1794
- customDuplicateAction: St,
1786
+ customCreateNewItemAction: dn,
1787
+ customDuplicateAction: At,
1795
1788
  customDeleteItemsAction: Yn,
1796
- customDownloadItemsAction: dn,
1797
- customBreakpointRef: un,
1798
- gridClassName: hn,
1799
- nonClickableTableColumns: pn,
1789
+ customDownloadItemsAction: un,
1790
+ customBreakpointRef: hn,
1791
+ gridClassName: pn,
1792
+ nonClickableTableColumns: fn,
1800
1793
  hideSearchPathItemName: Qe,
1801
1794
  showHiddenFileSwitcherInDestinationPopup: Ct,
1802
- showCreateFolderButtonInDestinationPopup: fn,
1795
+ showCreateFolderButtonInDestinationPopup: mn,
1803
1796
  autoSelectUploadedItems: je = !1,
1804
1797
  maxNewFolderDepth: ve,
1805
- onNewFolderDepthExceeded: At,
1806
- initialUploadFilesOpen: mn
1798
+ onNewFolderDepthExceeded: Pt,
1799
+ initialUploadFilesOpen: Cn
1807
1800
  }) => {
1808
1801
  const {
1809
1802
  selectedPaths: Ze,
@@ -1813,7 +1806,7 @@ const ks = ({
1813
1806
  selectedPaths: p,
1814
1807
  defaultSelectedPaths: C,
1815
1808
  onSelectedPathsChange: c
1816
- }), Cn = ce(!1), Je = ce(null), Kn = d(
1809
+ }), gn = ce(!1), Je = ce(null), Kn = d(
1817
1810
  (E, K, oe) => {
1818
1811
  if (je) {
1819
1812
  const { parent: Ye, name: bo } = cs(K);
@@ -1822,9 +1815,9 @@ const ks = ({
1822
1815
  destinationFolder: Ye
1823
1816
  };
1824
1817
  }
1825
- xe?.(E, K, oe);
1818
+ Ne?.(E, K, oe);
1826
1819
  },
1827
- [xe, je]
1820
+ [Ne, je]
1828
1821
  ), Qn = d(
1829
1822
  (E, K) => {
1830
1823
  je && (Je.current = {
@@ -1868,22 +1861,22 @@ const ks = ({
1868
1861
  defaultPath: l,
1869
1862
  onPathChange: F,
1870
1863
  onSelectionClear: Xe
1871
- }), Pt = $(() => {
1864
+ }), Mt = $(() => {
1872
1865
  const {
1873
1866
  showFiles: E = !0,
1874
1867
  showFolders: K = !0,
1875
1868
  ...oe
1876
1869
  } = D || {};
1877
1870
  return { showFiles: E, showFolders: K, ...oe };
1878
- }, [D]), Mt = Pt.showFiles, et = Pt.showFolders, [gt, to] = z(), gn = T?.destinationFolderPath ?? gt, tt = d(
1871
+ }, [D]), kt = Mt.showFiles, et = Mt.showFolders, [gt, to] = z(), vn = T?.destinationFolderPath ?? gt, tt = d(
1879
1872
  (E) => {
1880
1873
  T?.setDestinationFolderPath ? T.setDestinationFolderPath(E) : to(E);
1881
1874
  },
1882
1875
  [T]
1883
- ), { areHiddenFilesVisible: lt, toggleHiddenFilesVisibility: vn } = ps({
1876
+ ), { areHiddenFilesVisible: lt, toggleHiddenFilesVisibility: yn } = ps({
1884
1877
  showHiddenFiles: v,
1885
1878
  onShowHiddenFilesChange: u
1886
- }), { isTreeCollapsed: yn, toggleTreeCollapse: vt, setIsTreeCollapsed: no } = fs({
1879
+ }), { isTreeCollapsed: wn, toggleTreeCollapse: vt, setIsTreeCollapsed: no } = fs({
1887
1880
  collapsed: y?.collapsed,
1888
1881
  onCollapseChange: y?.onCollapseChange
1889
1882
  }), {
@@ -1893,7 +1886,7 @@ const ks = ({
1893
1886
  renameSaveHandler: ro,
1894
1887
  renameCancelHandler: so,
1895
1888
  renameValidateHandler: io,
1896
- getDisplayName: kt
1889
+ getDisplayName: Ot
1897
1890
  } = Ts({
1898
1891
  items: a,
1899
1892
  onRenameValidate: B,
@@ -1901,12 +1894,12 @@ const ks = ({
1901
1894
  onMoveToFiles: U
1902
1895
  }), {
1903
1896
  isSearchMode: wt,
1904
- searchValue: wn,
1905
- effectiveSearchValue: Ot,
1906
- setSearchValue: Lt,
1907
- handleSearchChange: zt,
1897
+ searchValue: Nn,
1898
+ effectiveSearchValue: Lt,
1899
+ setSearchValue: zt,
1900
+ handleSearchChange: _t,
1908
1901
  handleSearchClear: le,
1909
- searchResultsRows: xn
1902
+ searchResultsRows: Dn
1910
1903
  } = Ps({
1911
1904
  onSearchFiles: Se,
1912
1905
  clearSearchResults: V,
@@ -1924,22 +1917,22 @@ const ks = ({
1924
1917
  (E, K) => !K || !E ? !1 : hs(E.path) > K,
1925
1918
  []
1926
1919
  ), Me = d(() => {
1927
- At?.();
1928
- }, [At]), {
1929
- handleCopyTo: Dn,
1930
- handleMoveTo: Nn,
1931
- handleDuplicate: bn,
1932
- handleOpenDestinationFolderPopup: xt,
1933
- handleCloseDestinationFolderPopup: Tn,
1920
+ Pt?.();
1921
+ }, [Pt]), {
1922
+ handleCopyTo: xn,
1923
+ handleMoveTo: bn,
1924
+ handleDuplicate: Tn,
1925
+ handleOpenDestinationFolderPopup: Nt,
1926
+ handleCloseDestinationFolderPopup: Rn,
1934
1927
  openDestinationFolderPopup: nt,
1935
1928
  handleSetCopiedFiles: lo,
1936
- handleSetMovedFiles: Rn,
1937
- destinationFolderMode: In,
1929
+ handleSetMovedFiles: In,
1930
+ destinationFolderMode: Fn,
1938
1931
  destinationFolderTitle: co,
1939
- conflictingFiles: Fn,
1932
+ conflictingFiles: En,
1940
1933
  conflictResolutionOpen: uo,
1941
- closeConflictResolution: En,
1942
- handleConflictReplace: _t,
1934
+ closeConflictResolution: Sn,
1935
+ handleConflictReplace: Bt,
1943
1936
  handleConflictDuplicate: ho,
1944
1937
  handleConflictCancel: po,
1945
1938
  handleConflictDecideForEach: fo,
@@ -1959,95 +1952,95 @@ const ks = ({
1959
1952
  }, [nt, tt]);
1960
1953
  const {
1961
1954
  deleteConfirmationOpen: Co,
1962
- itemsToDelete: Sn,
1963
- openDeleteConfirmation: An,
1964
- closeDeleteConfirmation: Pn,
1955
+ itemsToDelete: An,
1956
+ openDeleteConfirmation: Pn,
1957
+ closeDeleteConfirmation: Mn,
1965
1958
  confirmDelete: Dt
1966
1959
  } = gs({
1967
1960
  onDeleteFiles: P,
1968
1961
  onDeleteSuccess: Xe
1969
1962
  }), { handleDownloadFiles: ot } = vs({
1970
1963
  onDownloadFiles: k,
1971
- customDownloadItemsAction: dn,
1964
+ customDownloadItemsAction: un,
1972
1965
  onDownloadSuccess: Xe
1973
1966
  }), {
1974
1967
  isDragging: go,
1975
1968
  isDraggingOverWindow: ze,
1976
1969
  uploadError: vo,
1977
- handleDragEnter: Bt,
1978
- handleDragLeave: Nt,
1970
+ handleDragEnter: Wt,
1971
+ handleDragLeave: xt,
1979
1972
  handleDragOver: ct,
1980
- handleDrop: Wt,
1981
- clearError: Mn,
1982
- openFileDialog: Ht,
1983
- fileInputRef: kn,
1984
- openArchiveDialog: Ut,
1973
+ handleDrop: Ht,
1974
+ clearError: kn,
1975
+ openFileDialog: Ut,
1976
+ fileInputRef: On,
1977
+ openArchiveDialog: Gt,
1985
1978
  uploadConflictingFiles: yo,
1986
1979
  uploadConflictResolutionOpen: wo,
1987
- closeUploadConflictResolution: On,
1988
- handleUploadConflictReplace: Gt,
1989
- handleUploadConflictDuplicate: xo,
1980
+ closeUploadConflictResolution: Ln,
1981
+ handleUploadConflictReplace: Vt,
1982
+ handleUploadConflictDuplicate: No,
1990
1983
  handleUploadConflictCancel: Do,
1991
- handleUploadConflictDecideForEach: Vt
1984
+ handleUploadConflictDecideForEach: $t
1992
1985
  } = ws({
1993
1986
  onUploadFiles: Qn,
1994
1987
  onValidateUpload: te,
1995
- maxFileSize: Ne,
1988
+ maxFileSize: xe,
1996
1989
  onUploadArchive: Jn,
1997
1990
  prepareUploadFileName: Te,
1998
1991
  allowedFileTypes: Q,
1999
1992
  validationMessages: we,
2000
1993
  uploadEnabled: fe,
2001
1994
  currentFolder: re
2002
- }), Ln = d(
1995
+ }), zn = d(
2003
1996
  (E) => {
2004
1997
  le();
2005
1998
  const K = de ?? "", oe = re?.items ?? [];
2006
- Wt(E, K, oe);
1999
+ Ht(E, K, oe);
2007
2000
  },
2008
- [de, re, Wt, le]
2001
+ [de, re, Ht, le]
2009
2002
  ), dt = d(() => {
2010
- le();
2011
- const E = de ?? "", K = re?.items ?? [];
2012
- Ht(E, K);
2013
- }, [de, re, Ht, le]), zn = d(() => {
2014
2003
  le();
2015
2004
  const E = de ?? "", K = re?.items ?? [];
2016
2005
  Ut(E, K);
2017
2006
  }, [de, re, Ut, le]), _n = d(() => {
2007
+ le();
2008
+ const E = de ?? "", K = re?.items ?? [];
2009
+ Gt(E, K);
2010
+ }, [de, re, Gt, le]), Bn = d(() => {
2018
2011
  le(), mt?.(de, re);
2019
- }, [mt, de, re, le]), Bn = d(() => {
2020
- le(), cn?.(de, re);
2012
+ }, [mt, de, re, le]), Wn = d(() => {
2013
+ le(), dn?.(de, re);
2021
2014
  }, [
2022
- cn,
2015
+ dn,
2023
2016
  de,
2024
2017
  re,
2025
2018
  le
2026
- ]), No = d(
2019
+ ]), xo = d(
2027
2020
  (E) => {
2028
- St?.(E);
2021
+ At?.(E);
2029
2022
  },
2030
- [St]
2023
+ [At]
2031
2024
  ), {
2032
- isCreatingFolder: x,
2025
+ isCreatingFolder: N,
2033
2026
  newFolderTempId: ee,
2034
2027
  createdFolderPath: ie,
2035
2028
  newFolderDefaultName: Re,
2036
2029
  startFolderCreation: at,
2037
- startGridSiblingFolderCreation: jo,
2038
- startTreeSiblingFolderCreation: Zo,
2039
- startGridChildFolderCreation: Xo,
2040
- startTreeChildFolderCreation: qo,
2041
- cancelFolderCreation: Pa,
2042
- saveFolderCreation: Ma,
2043
- validateFolderName: ka
2030
+ startGridSiblingFolderCreation: $o,
2031
+ startTreeSiblingFolderCreation: jo,
2032
+ startGridChildFolderCreation: Zo,
2033
+ startTreeChildFolderCreation: Xo,
2034
+ cancelFolderCreation: Aa,
2035
+ saveFolderCreation: Pa,
2036
+ validateFolderName: Ma
2044
2037
  } = Fs({
2045
2038
  currentFolder: re,
2046
2039
  onCreateFolder: Kn,
2047
2040
  onValidateFolderName: W,
2048
2041
  validationMessages: be,
2049
2042
  items: a
2050
- }), Yo = d(() => {
2043
+ }), qo = d(() => {
2051
2044
  if (ve && Le(re, ve - 1)) {
2052
2045
  Me();
2053
2046
  return;
@@ -2060,25 +2053,25 @@ const ks = ({
2060
2053
  ve,
2061
2054
  Le,
2062
2055
  Me
2063
- ]), { newActions: Oa, isNewButtonVisible: La, isNewButtonDisabled: za } = Rs(
2056
+ ]), { newActions: ka, isNewButtonVisible: Oa, isNewButtonDisabled: La } = Rs(
2064
2057
  {
2065
2058
  newActions: h?.newActions,
2066
2059
  currentFolder: re,
2067
- onUploadFiles: mt ? _n : dt,
2068
- onUploadArchive: zn,
2069
- onCreateFolder: Yo,
2070
- onCreateNewItem: Bn,
2060
+ onUploadFiles: mt ? Bn : dt,
2061
+ onUploadArchive: _n,
2062
+ onCreateFolder: qo,
2063
+ onCreateNewItem: Wn,
2071
2064
  isNewButtonDisabled: h?.isNewButtonDisabled
2072
2065
  }
2073
- ), _a = $(() => {
2066
+ ), za = $(() => {
2074
2067
  if (wt) {
2075
- let q = xn;
2076
- Mt || (q = q.filter(
2068
+ let Y = Dn;
2069
+ kt || (Y = Y.filter(
2077
2070
  (se) => se.nodeType !== O.ITEM
2078
- )), et || (q = q.filter(
2071
+ )), et || (Y = Y.filter(
2079
2072
  (se) => se.nodeType !== O.FOLDER
2080
- )), lt || (q = q.filter((se) => !se.path.split("/").filter(Boolean).some((Zt) => Zt.startsWith("."))));
2081
- const jt = q.map((se) => ({
2073
+ )), lt || (Y = Y.filter((se) => !se.path.split("/").filter(Boolean).some((Xt) => Xt.startsWith("."))));
2074
+ const Zt = Y.map((se) => ({
2082
2075
  ...se,
2083
2076
  id: se.id ?? se.path,
2084
2077
  name: se.name ?? se.path.split("/").pop() ?? "",
@@ -2093,7 +2086,7 @@ const ks = ({
2093
2086
  owner: se.owner,
2094
2087
  folderId: se.folderId
2095
2088
  }));
2096
- return x && ee && jt.unshift({
2089
+ return N && ee && Zt.unshift({
2097
2090
  id: ee,
2098
2091
  name: Re,
2099
2092
  updatedAt: void 0,
@@ -2103,30 +2096,30 @@ const ks = ({
2103
2096
  extension: void 0,
2104
2097
  isTemporary: !0,
2105
2098
  owner: void 0
2106
- }), jt;
2099
+ }), Zt;
2107
2100
  }
2108
- const E = Ft(Ot).trim(), K = re?.items ?? [];
2101
+ const E = Ft(Lt).trim(), K = re?.items ?? [];
2109
2102
  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
2112
- )), lt || (oe = oe.filter((q) => E ? !q.path.split("/").filter(Boolean).some((se) => se.startsWith(".")) : !Ra(q)));
2113
- const Ye = oe.map((q) => ({
2114
- ...q,
2115
- id: q.id ?? q.path,
2116
- name: q.name ?? q.path.split("/").pop() ?? "",
2117
- updatedAt: q.updatedAt,
2118
- size: q.contentLength,
2119
- author: q.author,
2120
- path: q.path,
2121
- nodeType: q.nodeType,
2122
- extension: q.extension,
2103
+ kt || (oe = oe.filter((Y) => Y.nodeType !== O.ITEM)), et || (oe = oe.filter(
2104
+ (Y) => Y.nodeType !== O.FOLDER
2105
+ )), lt || (oe = oe.filter((Y) => E ? !Y.path.split("/").filter(Boolean).some((se) => se.startsWith(".")) : !Ta(Y)));
2106
+ const Ye = oe.map((Y) => ({
2107
+ ...Y,
2108
+ id: Y.id ?? Y.path,
2109
+ name: Y.name ?? Y.path.split("/").pop() ?? "",
2110
+ updatedAt: Y.updatedAt,
2111
+ size: Y.contentLength,
2112
+ author: Y.author,
2113
+ path: Y.path,
2114
+ nodeType: Y.nodeType,
2115
+ extension: Y.extension,
2123
2116
  isTemporary: !1,
2124
- owner: q.owner,
2125
- contentType: q.contentType,
2126
- contentLength: q.contentLength,
2127
- folderId: q.folderId
2117
+ owner: Y.owner,
2118
+ contentType: Y.contentType,
2119
+ contentLength: Y.contentLength,
2120
+ folderId: Y.folderId
2128
2121
  }));
2129
- if (x && ee && !E && Ye.unshift({
2122
+ if (N && ee && !E && Ye.unshift({
2130
2123
  id: ee,
2131
2124
  name: Re,
2132
2125
  updatedAt: void 0,
@@ -2138,23 +2131,23 @@ const ks = ({
2138
2131
  owner: void 0
2139
2132
  }), !E) return Ye;
2140
2133
  const bo = E.split(/\s+/).filter(Boolean);
2141
- return Ye.filter((q) => {
2142
- if (q.isTemporary) return !0;
2143
- const jt = Ft(q.name), se = Ft(q.author), Qo = as(q.extension);
2134
+ return Ye.filter((Y) => {
2135
+ if (Y.isTemporary) return !0;
2136
+ const Zt = Ft(Y.name), se = Ft(Y.author), Ko = as(Y.extension);
2144
2137
  return bo.every(
2145
- (Zt) => jt.includes(Zt) || se.includes(Zt) || Qo.includes(Zt)
2138
+ (Xt) => Zt.includes(Xt) || se.includes(Xt) || Ko.includes(Xt)
2146
2139
  );
2147
2140
  });
2148
2141
  }, [
2149
2142
  wt,
2150
- xn,
2143
+ Dn,
2151
2144
  re,
2152
- Ot,
2145
+ Lt,
2153
2146
  lt,
2154
- x,
2147
+ N,
2155
2148
  ee,
2156
2149
  Re,
2157
- Mt,
2150
+ kt,
2158
2151
  et,
2159
2152
  de
2160
2153
  ]);
@@ -2178,115 +2171,115 @@ const ks = ({
2178
2171
  Q,
2179
2172
  Z
2180
2173
  ]), pe(() => {
2181
- !Cn.current && mn && (dt(), Cn.current = !0);
2182
- }, [mn, dt]);
2183
- const Ba = d(
2174
+ !gn.current && Cn && (dt(), gn.current = !0);
2175
+ }, [Cn, dt]);
2176
+ const _a = d(
2184
2177
  (E) => {
2185
2178
  qe(E.path);
2186
2179
  },
2187
2180
  [qe]
2188
- ), Wa = d(
2181
+ ), Ba = d(
2189
2182
  (E) => {
2190
2183
  qe(E);
2191
2184
  },
2192
2185
  [qe]
2193
- ), Ha = d(
2186
+ ), Wa = d(
2194
2187
  (E) => {
2195
2188
  E.nodeType === O.FOLDER ? qe(E.path) : I?.(E);
2196
2189
  },
2197
2190
  [qe, I]
2198
- ), { expandedPaths: bt, setExpandedPaths: $t, collapseAll: Ua } = Aa({
2191
+ ), { expandedPaths: bt, setExpandedPaths: jt, collapseAll: Ha } = Sa({
2199
2192
  expandedPaths: y?.expandedPaths,
2200
2193
  onExpandedPathsChange: y?.onExpandedPathsChange
2201
- }), { additionalButtons: Ga } = Es({
2202
- collapseAll: Ua,
2194
+ }), { additionalButtons: Ua } = Es({
2195
+ collapseAll: Ha,
2203
2196
  expandedPathsLength: bt.size,
2204
2197
  additionalButtons: y?.additionalButtons
2205
- }), Va = d(
2198
+ }), Ga = d(
2206
2199
  (E) => {
2207
2200
  if (E.length > 0) {
2208
2201
  if (ve && Le(E[0], ve)) {
2209
2202
  Me();
2210
2203
  return;
2211
2204
  }
2212
- le(), jo(E[0]);
2205
+ le(), $o(E[0]);
2213
2206
  }
2214
2207
  },
2215
2208
  [
2216
2209
  le,
2217
- jo,
2210
+ $o,
2218
2211
  ve,
2219
2212
  Le,
2220
2213
  Me
2221
2214
  ]
2222
- ), $a = d(
2215
+ ), Va = d(
2223
2216
  (E) => {
2224
2217
  if (E.length > 0) {
2225
2218
  if (ve && Le(E[0], ve - 1)) {
2226
2219
  Me();
2227
2220
  return;
2228
2221
  }
2229
- le(), Fe(E[0].path), $t(new Set(bt).add(E[0].path || "/")), Xo(E[0]);
2222
+ le(), Fe(E[0].path), jt(new Set(bt).add(E[0].path || "/")), Zo(E[0]);
2230
2223
  }
2231
2224
  },
2232
2225
  [
2233
2226
  le,
2234
- Xo,
2227
+ Zo,
2235
2228
  bt,
2236
- $t,
2229
+ jt,
2237
2230
  Fe,
2238
2231
  Me,
2239
2232
  ve,
2240
2233
  Le
2241
2234
  ]
2242
- ), ja = d(
2235
+ ), $a = d(
2243
2236
  (E) => {
2244
2237
  if (E.length > 0) {
2245
2238
  if (ve && Le(E[0], ve)) {
2246
2239
  Me();
2247
2240
  return;
2248
2241
  }
2249
- le(), Zo(E[0]);
2242
+ le(), jo(E[0]);
2250
2243
  }
2251
2244
  },
2252
2245
  [
2253
2246
  le,
2254
- Zo,
2247
+ jo,
2255
2248
  ve,
2256
2249
  Le,
2257
2250
  Me
2258
2251
  ]
2259
- ), Za = d(
2252
+ ), ja = d(
2260
2253
  (E) => {
2261
2254
  if (E.length > 0) {
2262
2255
  if (ve && Le(E[0], ve - 1)) {
2263
2256
  Me();
2264
2257
  return;
2265
2258
  }
2266
- le(), Fe(E[0].path), $t(new Set(bt).add(E[0].path || "/")), qo(E[0]);
2259
+ le(), Fe(E[0].path), jt(new Set(bt).add(E[0].path || "/")), Xo(E[0]);
2267
2260
  }
2268
2261
  },
2269
2262
  [
2270
2263
  le,
2271
- qo,
2264
+ Xo,
2272
2265
  Fe,
2273
2266
  bt,
2274
- $t,
2267
+ jt,
2275
2268
  ve,
2276
2269
  Le,
2277
2270
  Me
2278
2271
  ]
2279
2272
  ), {
2280
- isMetadataPopupOpen: Xa,
2281
- selectedFileForMetadata: qa,
2282
- openMetadataPopup: Ya,
2283
- closeMetadataPopup: Ko
2284
- } = Ss({ onGetInfo: G }), Ka = d(() => {
2285
- Ko(), De?.clearMetadata?.();
2286
- }, [Ko, De]), Qa = $(() => {
2287
- if (Y)
2288
- return jn(Y);
2289
- }, [Y]), Ja = {
2273
+ isMetadataPopupOpen: Za,
2274
+ selectedFileForMetadata: Xa,
2275
+ openMetadataPopup: qa,
2276
+ closeMetadataPopup: Yo
2277
+ } = Ss({ onGetInfo: G }), Ya = d(() => {
2278
+ Yo(), De?.clearMetadata?.();
2279
+ }, [Yo, De]), Ka = $(() => {
2280
+ if (q)
2281
+ return jn(q);
2282
+ }, [q]), Qa = {
2290
2283
  managerLabel: e,
2291
2284
  className: s,
2292
2285
  items: a,
@@ -2297,33 +2290,33 @@ const ks = ({
2297
2290
  treeOptions: {
2298
2291
  ...y,
2299
2292
  expandedPaths: bt,
2300
- onExpandedPathsChange: $t,
2301
- additionalButtons: Ga
2293
+ onExpandedPathsChange: jt,
2294
+ additionalButtons: Ua
2302
2295
  },
2303
2296
  showNavigationPanel: g,
2304
2297
  navigationPanelOptions: m,
2305
- gridOptions: Pt,
2298
+ gridOptions: Mt,
2306
2299
  toolbarOptions: h,
2307
2300
  bulkActionsToolbarOptions: f,
2308
2301
  deleteConfirmationOptions: b,
2309
2302
  destinationFolderPopupOptions: {
2310
2303
  ...T,
2311
- destinationFolderPath: gn,
2304
+ destinationFolderPath: vn,
2312
2305
  setDestinationFolderPath: tt,
2313
2306
  header: co,
2314
- onCreateFolder: xe,
2307
+ onCreateFolder: Ne,
2315
2308
  onCreateFolderValidate: W,
2316
2309
  folderCreationValidationMessages: be,
2317
2310
  sourceFolder: mo
2318
2311
  },
2319
2312
  currentPath: de,
2320
2313
  setCurrentPath: Fe,
2321
- searchValue: wn,
2322
- effectiveSearchValue: Ot,
2323
- setSearchValue: Lt,
2314
+ searchValue: Nn,
2315
+ effectiveSearchValue: Lt,
2316
+ setSearchValue: zt,
2324
2317
  areHiddenFilesVisible: lt,
2325
- toggleHiddenFilesVisibility: vn,
2326
- isTreeCollapsed: yn,
2318
+ toggleHiddenFilesVisibility: yn,
2319
+ isTreeCollapsed: wn,
2327
2320
  toggleTreeCollapse: vt,
2328
2321
  setIsTreeCollapsed: no,
2329
2322
  selectedPaths: Ze,
@@ -2331,87 +2324,87 @@ const ks = ({
2331
2324
  setSelectedPaths: it,
2332
2325
  clearSelection: Xe,
2333
2326
  currentFolder: re,
2334
- gridRows: _a,
2335
- handleCopyTo: Dn,
2336
- handleMoveTo: Nn,
2337
- handleDuplicate: St ? No : bn,
2327
+ gridRows: za,
2328
+ handleCopyTo: xn,
2329
+ handleMoveTo: bn,
2330
+ handleDuplicate: At ? xo : Tn,
2338
2331
  handleSetCopiedFiles: lo,
2339
- handleSetMovedFiles: Rn,
2332
+ handleSetMovedFiles: In,
2340
2333
  openDestinationFolderPopup: nt,
2341
- handleCloseDestinationFolderPopup: Tn,
2342
- handleOpenDestinationFolderPopup: xt,
2343
- destinationFolderMode: In,
2344
- handleGridAddSibling: Va,
2345
- handleGridAddChild: $a,
2346
- handleTreeAddSibling: ja,
2347
- handleTreeAddChild: Za,
2334
+ handleCloseDestinationFolderPopup: Rn,
2335
+ handleOpenDestinationFolderPopup: Nt,
2336
+ destinationFolderMode: Fn,
2337
+ handleGridAddSibling: Ga,
2338
+ handleGridAddChild: Va,
2339
+ handleTreeAddSibling: $a,
2340
+ handleTreeAddChild: ja,
2348
2341
  handleDownloadFiles: ot,
2349
2342
  renamedPath: yt,
2350
2343
  renamedItem: oo,
2351
- forbiddenSymbolsRegExp: Qa,
2344
+ forbiddenSymbolsRegExp: Ka,
2352
2345
  forbiddenSymbolsTooltip: J,
2353
2346
  onRename: ao,
2354
2347
  onRenameSave: ro,
2355
2348
  onRenameCancel: so,
2356
2349
  onRenameValidate: io,
2357
- getDisplayName: kt,
2358
- openDeleteConfirmation: Yn || An,
2359
- closeDeleteConfirmation: Pn,
2350
+ getDisplayName: Ot,
2351
+ openDeleteConfirmation: Yn || Pn,
2352
+ closeDeleteConfirmation: Mn,
2360
2353
  confirmDelete: Dt,
2361
2354
  deleteConfirmationOpen: Co,
2362
- itemsToDelete: Sn,
2355
+ itemsToDelete: An,
2363
2356
  handlePathChange: qe,
2364
- handleTreeItemClick: Ba,
2365
- handleBreadcrumbItemClick: Wa,
2366
- handleSearchChange: zt,
2367
- handleTableRowClick: Ha,
2357
+ handleTreeItemClick: _a,
2358
+ handleBreadcrumbItemClick: Ba,
2359
+ handleSearchChange: _t,
2360
+ handleTableRowClick: Wa,
2368
2361
  onTableFileClick: I,
2369
2362
  handleSelectionClick: S,
2370
2363
  onGridApiChange: A,
2371
2364
  isDragging: go,
2372
2365
  uploadError: vo,
2373
- handleDragEnter: Bt,
2374
- handleDragLeave: Nt,
2366
+ handleDragEnter: Wt,
2367
+ handleDragLeave: xt,
2375
2368
  handleDragOver: ct,
2376
- handleDrop: Ln,
2377
- clearUploadError: Mn,
2369
+ handleDrop: zn,
2370
+ clearUploadError: kn,
2378
2371
  onUploadFiles: j,
2379
2372
  onValidateUpload: te,
2380
- maxFileSize: Ne,
2373
+ maxFileSize: xe,
2381
2374
  isDraggingOverWindow: ze,
2382
2375
  openFileDialog: dt,
2383
- fileInputRef: kn,
2384
- newActions: Oa,
2385
- isNewButtonVisible: La,
2386
- isNewButtonDisabled: za,
2387
- isCreatingFolder: x,
2376
+ fileInputRef: On,
2377
+ newActions: ka,
2378
+ isNewButtonVisible: Oa,
2379
+ isNewButtonDisabled: La,
2380
+ isCreatingFolder: N,
2388
2381
  newFolderTempId: ee,
2389
2382
  createdFolderPath: ie,
2390
2383
  newFolderDefaultName: Re,
2391
- startFolderCreation: Yo,
2392
- cancelFolderCreation: Pa,
2393
- saveFolderCreation: Ma,
2394
- validateFolderName: ka,
2395
- conflictResolutionPopupOptions: N,
2396
- conflictingFiles: Fn,
2384
+ startFolderCreation: qo,
2385
+ cancelFolderCreation: Aa,
2386
+ saveFolderCreation: Pa,
2387
+ validateFolderName: Ma,
2388
+ conflictResolutionPopupOptions: x,
2389
+ conflictingFiles: En,
2397
2390
  conflictResolutionOpen: uo,
2398
- closeConflictResolution: En,
2399
- handleConflictReplace: _t,
2391
+ closeConflictResolution: Sn,
2392
+ handleConflictReplace: Bt,
2400
2393
  handleConflictDuplicate: ho,
2401
2394
  handleConflictCancel: po,
2402
2395
  handleConflictDecideForEach: fo,
2403
2396
  uploadConflictingFiles: yo,
2404
2397
  uploadConflictResolutionOpen: wo,
2405
- closeUploadConflictResolution: On,
2406
- handleUploadConflictReplace: Gt,
2407
- handleUploadConflictDuplicate: xo,
2398
+ closeUploadConflictResolution: Ln,
2399
+ handleUploadConflictReplace: Vt,
2400
+ handleUploadConflictDuplicate: No,
2408
2401
  handleUploadConflictCancel: Do,
2409
- handleUploadConflictDecideForEach: Vt,
2402
+ handleUploadConflictDecideForEach: $t,
2410
2403
  fileMetadataPopupOptions: De,
2411
- isMetadataPopupOpen: Xa,
2412
- selectedFileForMetadata: qa,
2413
- openMetadataPopup: Ya,
2414
- closeMetadataPopup: Ka,
2404
+ isMetadataPopupOpen: Za,
2405
+ selectedFileForMetadata: Xa,
2406
+ openMetadataPopup: qa,
2407
+ closeMetadataPopup: Ya,
2415
2408
  onGetInfo: G,
2416
2409
  onUnshareFiles: ne,
2417
2410
  onRemoveFilesAccess: he,
@@ -2425,28 +2418,28 @@ const ks = ({
2425
2418
  emptyStateIcon: ae,
2426
2419
  emptyStateTitle: Ve,
2427
2420
  emptyStateDescription: $e,
2428
- gridClassName: hn,
2421
+ gridClassName: pn,
2429
2422
  sharedWithMeIds: He,
2430
2423
  onFolderPopupPathChange: pt,
2431
- onManagePermissions: ln,
2424
+ onManagePermissions: cn,
2432
2425
  onPreview: st,
2433
2426
  onOpenInNewTab: ft,
2434
2427
  previewExtensions: Zn,
2435
2428
  isRenameFileAvailable: Xn,
2436
2429
  isDuplicateFolderAvailable: qn,
2437
2430
  customUploadFileAction: mt,
2438
- customBreakpointRef: un,
2439
- nonClickableTableColumns: pn,
2431
+ customBreakpointRef: hn,
2432
+ nonClickableTableColumns: fn,
2440
2433
  hideSearchPathItemName: Qe,
2441
2434
  getDisabledTooltip: me,
2442
2435
  fileTooLargeTooltip: Ae,
2443
2436
  unsupportedFileTypeTooltip: Pe,
2444
2437
  showHiddenFileSwitcherInDestinationPopup: Ct,
2445
- showCreateFolderButtonInDestinationPopup: fn,
2438
+ showCreateFolderButtonInDestinationPopup: mn,
2446
2439
  maxNewFolderDepth: ve,
2447
- onNewFolderDepthExceeded: At
2440
+ onNewFolderDepthExceeded: Pt
2448
2441
  };
2449
- return /* @__PURE__ */ o(Fa.Provider, { value: Ja, children: t });
2442
+ return /* @__PURE__ */ o(Ia.Provider, { value: Qa, children: t });
2450
2443
  }, Os = ({
2451
2444
  disabledGridRowIds: e,
2452
2445
  gridRows: t,
@@ -2508,11 +2501,11 @@ const ks = ({
2508
2501
  r
2509
2502
  ]);
2510
2503
  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(
2504
+ /* @__PURE__ */ X(gr, { open: !0, placement: "top", children: [
2505
+ /* @__PURE__ */ o(vr, { asChild: !0, children: /* @__PURE__ */ o(
2513
2506
  "div",
2514
2507
  {
2515
- className: on(
2508
+ className: an(
2516
2509
  "fixed z-[-1]",
2517
2510
  v && "pointer-events-none"
2518
2511
  ),
@@ -2524,14 +2517,14 @@ const ks = ({
2524
2517
  }
2525
2518
  }
2526
2519
  ) }),
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 })
2520
+ /* @__PURE__ */ o(yr, { className: "max-w-[300px] rounded border border-ui-outline-primary bg-ui-popover px-3 py-1.5 text-center text-primary shadow-md fill-ui-popover", children: v })
2528
2521
  ] }),
2529
2522
  document.body
2530
2523
  ) });
2531
- }, ha = () => typeof window < "u" && window.innerWidth < 640, $o = () => {
2532
- const [e, t] = z(ha());
2524
+ }, ua = () => typeof window < "u" && window.innerWidth < 640, Vo = () => {
2525
+ const [e, t] = z(ua());
2533
2526
  return pe(() => {
2534
- const s = () => t(ha());
2527
+ const s = () => t(ua());
2535
2528
  return window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
2536
2529
  }, []), e;
2537
2530
  }, Ls = ({
@@ -2556,17 +2549,17 @@ const ks = ({
2556
2549
  path: h,
2557
2550
  collapsedFileTree: f = !1,
2558
2551
  alertProps: T,
2559
- processDestinationFolderPath: N,
2552
+ processDestinationFolderPath: x,
2560
2553
  ...F
2561
2554
  }) => {
2562
- const [I, S] = z(!1), [A, _] = z(!1), U = ce(null), P = $o(), k = d((j) => {
2555
+ const [I, S] = z(!1), [A, _] = z(!1), U = ce(null), P = Vo(), k = d((j) => {
2563
2556
  S(j);
2564
2557
  }, []), B = $(() => {
2565
2558
  const j = [];
2566
2559
  return v && j.push({
2567
2560
  key: "add-folder",
2568
2561
  label: i,
2569
- icon: /* @__PURE__ */ o(Jo, { ...M, className: "text-secondary" }),
2562
+ icon: /* @__PURE__ */ o(Qo, { ...M, className: "text-secondary" }),
2570
2563
  onClick: () => {
2571
2564
  U.current?.createFolder(), _(!1);
2572
2565
  }
@@ -2586,16 +2579,16 @@ const ks = ({
2586
2579
  ]), L = d(
2587
2580
  (j) => {
2588
2581
  if (j) {
2589
- let te = N ? N(j) : j;
2582
+ let te = x ? x(j) : j;
2590
2583
  s?.(te), a?.(te);
2591
2584
  }
2592
2585
  },
2593
2586
  [
2594
2587
  s,
2595
2588
  a,
2596
- N
2589
+ x
2597
2590
  ]
2598
- ), Y = p === ge.Copy ? "Copy to" : "Move to", J = $(() => !h || !b ? !1 : b === h, [h, b]);
2591
+ ), q = p === ge.Copy ? "Copy to" : "Move to", J = $(() => !h || !b ? !1 : b === h, [h, b]);
2599
2592
  return /* @__PURE__ */ o(
2600
2593
  zo,
2601
2594
  {
@@ -2603,9 +2596,7 @@ const ks = ({
2603
2596
  onClose: () => {
2604
2597
  e();
2605
2598
  },
2606
- size: Un.Lg,
2607
- dividerFooter: !0,
2608
- dividers: !1,
2599
+ size: Gn.Lg,
2609
2600
  className: "md:!h-[800px] !bg-layer-sunken",
2610
2601
  footer: /* @__PURE__ */ X("div", { className: "flex justify-between items-center gap-2 p-4 md:px-6", children: [
2611
2602
  /* @__PURE__ */ o("div", { className: "flex items-center gap-4 min-w-0", children: P ? /* @__PURE__ */ o(
@@ -2615,21 +2606,21 @@ const ks = ({
2615
2606
  open: A,
2616
2607
  onOpenChange: _,
2617
2608
  children: /* @__PURE__ */ o(
2618
- $n,
2609
+ Et,
2619
2610
  {
2620
- size: Bo.Large,
2611
+ size: _o.Large,
2621
2612
  "aria-label": "More options",
2622
- icon: /* @__PURE__ */ o(sn, { ...M })
2613
+ icon: /* @__PURE__ */ o(ln, { ...M })
2623
2614
  }
2624
2615
  )
2625
2616
  }
2626
2617
  ) : /* @__PURE__ */ X(Ie, { children: [
2627
2618
  v && /* @__PURE__ */ o(
2628
- nn,
2619
+ on,
2629
2620
  {
2630
2621
  label: i,
2631
- appearance: va.Ghost,
2632
- iconBefore: /* @__PURE__ */ o(Jo, { ...M }),
2622
+ appearance: ga.Ghost,
2623
+ iconBefore: /* @__PURE__ */ o(Qo, { ...M }),
2633
2624
  onClick: () => {
2634
2625
  U.current?.createFolder();
2635
2626
  }
@@ -2637,7 +2628,7 @@ const ks = ({
2637
2628
  ),
2638
2629
  v && c && /* @__PURE__ */ o("div", { className: "w-px h-[26px] bg-controls-disable-accent my-2" }),
2639
2630
  c && /* @__PURE__ */ o(Ie, { children: /* @__PURE__ */ o("div", { className: "inline-flex items-center cursor-pointer", children: /* @__PURE__ */ o(
2640
- ya,
2631
+ va,
2641
2632
  {
2642
2633
  label: C,
2643
2634
  isOn: I,
@@ -2647,9 +2638,9 @@ const ks = ({
2647
2638
  ) }) })
2648
2639
  ] }) }),
2649
2640
  /* @__PURE__ */ X("div", { className: "flex space-x-4 items-center", children: [
2650
- /* @__PURE__ */ o(an, { onClick: e, label: "Cancel" }),
2651
- J ? /* @__PURE__ */ o(Gn, { tooltip: D, children: /* @__PURE__ */ o(
2652
- nn,
2641
+ /* @__PURE__ */ o(rn, { onClick: e, label: "Cancel" }),
2642
+ J ? /* @__PURE__ */ o(Vn, { tooltip: D, children: /* @__PURE__ */ o(
2643
+ on,
2653
2644
  {
2654
2645
  onClick: t,
2655
2646
  label: p === "copy" ? r : l,
@@ -2657,7 +2648,7 @@ const ks = ({
2657
2648
  "aria-disabled": J
2658
2649
  }
2659
2650
  ) }) : /* @__PURE__ */ o(
2660
- nn,
2651
+ on,
2661
2652
  {
2662
2653
  onClick: t,
2663
2654
  label: p === "copy" ? r : l
@@ -2665,9 +2656,10 @@ const ks = ({
2665
2656
  )
2666
2657
  ] })
2667
2658
  ] }),
2668
- header: m ?? Y,
2659
+ header: m ?? q,
2660
+ ariaLabel: q,
2669
2661
  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 }) }),
2662
+ T && /* @__PURE__ */ o("div", { className: "px-6 mb-4 pt-4", children: /* @__PURE__ */ o(wr, { ...T }) }),
2671
2663
  /* @__PURE__ */ o("div", { className: "flex-1 min-h-0", children: /* @__PURE__ */ o(
2672
2664
  ui,
2673
2665
  {
@@ -2704,8 +2696,8 @@ const ks = ({
2704
2696
  };
2705
2697
  function zs({
2706
2698
  actions: e,
2707
- direction: t = en.Normal,
2708
- moreButtonWidth: s = wa,
2699
+ direction: t = tn.Normal,
2700
+ moreButtonWidth: s = ya,
2709
2701
  actionsGap: a = 8,
2710
2702
  containerPadding: n = 8,
2711
2703
  dependencies: r = []
@@ -2714,7 +2706,7 @@ function zs({
2714
2706
  (b, D) => {
2715
2707
  const h = p.current?.offsetWidth ?? 0, f = C.current?.offsetWidth ?? 0, T = h + f, F = D.getBoundingClientRect().width - T - s - a * 2 - n * 2;
2716
2708
  let I = 0, S = 0;
2717
- if (t === en.Reverse)
2709
+ if (t === tn.Reverse)
2718
2710
  for (let A = b.length - 1; A >= 0 && (I += b[A] + a, !(I > F)); A--)
2719
2711
  S++;
2720
2712
  else
@@ -2726,7 +2718,7 @@ function zs({
2726
2718
  },
2727
2719
  [a, n, t, s]
2728
2720
  );
2729
- fr(
2721
+ pr(
2730
2722
  () => {
2731
2723
  if (!i.current || !l.current) return;
2732
2724
  const D = Array.from(i.current.children).map(
@@ -2756,9 +2748,9 @@ function zs({
2756
2748
  // eslint-disable-next-line react-hooks/exhaustive-deps
2757
2749
  ...r
2758
2750
  ]);
2759
- const g = t === en.Reverse ? e.slice(0, e.length - v) : e.slice(v);
2751
+ const g = t === tn.Reverse ? e.slice(0, e.length - v) : e.slice(v);
2760
2752
  return {
2761
- visibleActions: t === en.Reverse ? e.slice(e.length - v) : e.slice(0, v),
2753
+ visibleActions: t === tn.Reverse ? e.slice(e.length - v) : e.slice(0, v),
2762
2754
  hiddenActions: g,
2763
2755
  refs: {
2764
2756
  containerRef: l,
@@ -2769,13 +2761,13 @@ function zs({
2769
2761
  };
2770
2762
  }
2771
2763
  const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCount: a }) => {
2772
- const n = $o(), {
2764
+ const n = Vo(), {
2773
2765
  refs: { containerRef: r, leftSectionRef: l, measureRef: i },
2774
2766
  visibleActions: p,
2775
2767
  hiddenActions: C
2776
2768
  } = zs({
2777
2769
  actions: s,
2778
- direction: en.Reverse,
2770
+ direction: tn.Reverse,
2779
2771
  dependencies: [n],
2780
2772
  actionsGap: _s,
2781
2773
  containerPadding: Bs
@@ -2786,7 +2778,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
2786
2778
  {
2787
2779
  ref: i,
2788
2780
  className: "absolute top-0 left-0 invisible pointer-events-none overflow-hidden whitespace-nowrap flex gap-3",
2789
- children: s.map(({ key: v, icon: u, title: y }) => /* @__PURE__ */ o(an, { iconBefore: u, label: y }, v))
2781
+ children: s.map(({ key: v, icon: u, title: y }) => /* @__PURE__ */ o(rn, { iconBefore: u, label: y }, v))
2790
2782
  }
2791
2783
  ),
2792
2784
  /* @__PURE__ */ X(
@@ -2798,13 +2790,13 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
2798
2790
  "aria-label": "File bulk actions",
2799
2791
  children: [
2800
2792
  /* @__PURE__ */ o("div", { ref: l, children: /* @__PURE__ */ o(
2801
- nn,
2793
+ on,
2802
2794
  {
2803
2795
  label: c,
2804
2796
  onClick: t,
2805
2797
  textClassName: "text-accent whitespace-nowrap",
2806
- appearance: va.Ghost,
2807
- iconBefore: /* @__PURE__ */ o(rr, { ...M })
2798
+ appearance: ga.Ghost,
2799
+ iconBefore: /* @__PURE__ */ o(ar, { ...M })
2808
2800
  }
2809
2801
  ) }),
2810
2802
  /* @__PURE__ */ X("div", { className: "flex flex-1 w-full gap-3 items-center justify-end", children: [
@@ -2814,17 +2806,17 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
2814
2806
  items: C,
2815
2807
  allowedPlacements: ["bottom", "bottom-start"],
2816
2808
  children: /* @__PURE__ */ o(
2817
- $n,
2809
+ Et,
2818
2810
  {
2819
2811
  className: "h-[38px]",
2820
- icon: /* @__PURE__ */ o(sn, { ...M })
2812
+ icon: /* @__PURE__ */ o(ln, { ...M })
2821
2813
  }
2822
2814
  )
2823
2815
  }
2824
2816
  ),
2825
2817
  p.map(
2826
2818
  ({ key: v, icon: u, tooltip: y, title: g, onClick: m, disabled: b }) => /* @__PURE__ */ o(
2827
- an,
2819
+ rn,
2828
2820
  {
2829
2821
  className: "!p-[9px]",
2830
2822
  iconBefore: u,
@@ -2851,7 +2843,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
2851
2843
  titleRenderer: l,
2852
2844
  contentRenderer: i
2853
2845
  }) => {
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: [
2846
+ const p = t.map((y) => y.name), C = "Confirm Deleting Items", c = l?.(p) || C, v = /* @__PURE__ */ X("div", { className: "px-6 py-3 dial-small-text", children: [
2855
2847
  /* @__PURE__ */ o("p", { className: "text-secondary mb-3", children: t.length === 1 ? /* @__PURE__ */ X(Ie, { children: [
2856
2848
  "Do you want to delete file or folder",
2857
2849
  " ",
@@ -2877,19 +2869,20 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
2877
2869
  ] }) })
2878
2870
  ] }), u = i?.(p) || v;
2879
2871
  return /* @__PURE__ */ o(
2880
- Dr,
2872
+ Nr,
2881
2873
  {
2882
2874
  open: e,
2883
2875
  header: c,
2876
+ ariaLabel: C,
2884
2877
  confirmLabel: r,
2885
2878
  cancelLabel: n,
2886
- variant: Nr.Danger,
2879
+ variant: Dr.Danger,
2887
2880
  onClose: s,
2888
2881
  onConfirm: a,
2889
2882
  children: u
2890
2883
  }
2891
2884
  );
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 = ({
2885
+ }, ha = (e) => e.split("/").map((t) => t.trim()).filter(Boolean), Us = "w-full flex items-center justify-between gap-4", Gs = "min-w-0 h-[38px] flex-1 overflow-hidden bg-layer-raised px-3 flex items-center rounded", Vs = "w-[260px]", $s = ({
2893
2886
  ariaLabel: e = "Breadcrumb",
2894
2887
  labelClassName: t,
2895
2888
  onItemClick: s,
@@ -2912,14 +2905,14 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
2912
2905
  }) => {
2913
2906
  const f = $(() => {
2914
2907
  if (!a) return;
2915
- let A = pa(a);
2908
+ let A = ha(a);
2916
2909
  const _ = [...A];
2917
2910
  let U = 0;
2918
2911
  if (i) {
2919
- const k = pa(i);
2912
+ const k = ha(i);
2920
2913
  if (k.length) {
2921
2914
  const B = A.findIndex(
2922
- (L, Y) => k.every((J, j) => A[Y + j] === J)
2915
+ (L, q) => k.every((J, j) => A[q + j] === J)
2923
2916
  );
2924
2917
  B !== -1 && (U = k.length, A = [
2925
2918
  ...A.slice(0, B),
@@ -2929,7 +2922,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
2929
2922
  }
2930
2923
  if (!A.length) return [{ label: "/" }];
2931
2924
  const P = A.map((k, B) => {
2932
- const L = B < A.length - U ? B : B + U, Y = _.slice(0, L + 1), J = typeof n == "function" ? n(Y, L) : void 0;
2925
+ const L = B < A.length - U ? B : B + U, q = _.slice(0, L + 1), J = typeof n == "function" ? n(q, L) : void 0;
2933
2926
  return {
2934
2927
  label: k,
2935
2928
  href: J,
@@ -2941,9 +2934,9 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
2941
2934
  if (r && l) {
2942
2935
  const k = r.split("/").filter(Boolean), B = a.split("/").filter(Boolean);
2943
2936
  if (k.every(
2944
- (Y, J) => B[J] === Y
2937
+ (q, J) => B[J] === q
2945
2938
  ) && P.length > 0) {
2946
- const Y = P.slice(k.length);
2939
+ const q = P.slice(k.length);
2947
2940
  return [
2948
2941
  {
2949
2942
  label: l,
@@ -2952,7 +2945,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
2952
2945
  J.preventDefault(), s(r);
2953
2946
  } : void 0
2954
2947
  },
2955
- ...Y
2948
+ ...q
2956
2949
  ];
2957
2950
  }
2958
2951
  }
@@ -2964,25 +2957,25 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
2964
2957
  l,
2965
2958
  n,
2966
2959
  s
2967
- ]), [T, N] = z(!1), F = d(() => {
2960
+ ]), [T, x] = z(!1), F = d(() => {
2968
2961
  if (h && !T) {
2969
- N(!0);
2962
+ x(!0);
2970
2963
  const A = document.getElementById(u);
2971
2964
  A && A.focus();
2972
2965
  }
2973
2966
  }, [u, T, h]), I = d(() => {
2974
2967
  (!v || String(v).trim() === "") && m?.("");
2975
2968
  }, [v, m]), S = d(() => h && T ? /* @__PURE__ */ o(
2976
- an,
2969
+ rn,
2977
2970
  {
2978
2971
  className: "!p-[9px]",
2979
- iconBefore: /* @__PURE__ */ o(sr, { ...M }),
2972
+ iconBefore: /* @__PURE__ */ o(rr, { ...M }),
2980
2973
  onClick: () => {
2981
- N(!1), m?.("");
2974
+ x(!1), m?.("");
2982
2975
  }
2983
2976
  }
2984
2977
  ) : /* @__PURE__ */ o("div", { className: Gs, children: /* @__PURE__ */ o(
2985
- br,
2978
+ xr,
2986
2979
  {
2987
2980
  pathItems: f,
2988
2981
  ariaLabel: e,
@@ -3022,7 +3015,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3022
3015
  "aria-label": "Search",
3023
3016
  onClick: F,
3024
3017
  children: /* @__PURE__ */ o(
3025
- Tr,
3018
+ br,
3026
3019
  {
3027
3020
  id: u,
3028
3021
  value: v ?? "",
@@ -3048,7 +3041,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3048
3041
  onToggleHiddenFiles: n,
3049
3042
  isNewButtonVisible: r,
3050
3043
  isNewButtonDisabled: l,
3051
- newButtonVariant: i = Rr.Primary,
3044
+ newButtonVariant: i = Tr.Primary,
3052
3045
  newButtonDropdownItems: p = [],
3053
3046
  newButtonLabel: C = "New",
3054
3047
  hiddenFilesSwitcherLabel: c = "Hidden files",
@@ -3057,11 +3050,11 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3057
3050
  showHiddenFilesToggle: y = !0,
3058
3051
  disabledNewButtonTooltip: g
3059
3052
  }) => {
3060
- const m = $o(), b = $(() => [
3053
+ const m = Vo(), b = $(() => [
3061
3054
  {
3062
3055
  key: "hidden-files-switch",
3063
3056
  label: a ? u : v,
3064
- icon: a ? /* @__PURE__ */ o(ir, { ...M, className: "text-secondary" }) : /* @__PURE__ */ o(Eo, { ...M, className: "text-secondary" }),
3057
+ icon: a ? /* @__PURE__ */ o(sr, { ...M, className: "text-secondary" }) : /* @__PURE__ */ o(Eo, { ...M, className: "text-secondary" }),
3065
3058
  onClick: () => n?.(!a)
3066
3059
  }
3067
3060
  ], [
@@ -3070,18 +3063,18 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3070
3063
  v,
3071
3064
  n
3072
3065
  ]), D = () => e && t && s ? /* @__PURE__ */ o(
3073
- Ir,
3066
+ Rr,
3074
3067
  {
3075
3068
  tabs: e,
3076
3069
  activeTab: t,
3077
3070
  onClick: (T) => s(T),
3078
- screenThreshold: Fr.Tablet,
3071
+ screenThreshold: Ir.Tablet,
3079
3072
  smallScreenContainerClassName: "w-fit bg-transparent h-[38px] overflow-hidden",
3080
3073
  smallScreenDropdownItemClassName: "px-3 h-[38px]"
3081
3074
  }
3082
3075
  ) : null, h = () => /* @__PURE__ */ X(Ie, { children: [
3083
3076
  y && /* @__PURE__ */ o(
3084
- ya,
3077
+ va,
3085
3078
  {
3086
3079
  switchId: "hidden-files-switch",
3087
3080
  label: c,
@@ -3090,11 +3083,11 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3090
3083
  }
3091
3084
  ),
3092
3085
  r && /* @__PURE__ */ o(
3093
- Gn,
3086
+ Vn,
3094
3087
  {
3095
3088
  tooltip: l && g ? g : void 0,
3096
3089
  children: /* @__PURE__ */ o(
3097
- na,
3090
+ ta,
3098
3091
  {
3099
3092
  label: C,
3100
3093
  variant: i,
@@ -3111,20 +3104,20 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3111
3104
  items: b,
3112
3105
  allowedPlacements: ["bottom", "bottom-start"],
3113
3106
  children: /* @__PURE__ */ o(
3114
- $n,
3107
+ Et,
3115
3108
  {
3116
- size: Bo.Small,
3117
- icon: /* @__PURE__ */ o(sn, { stroke: 2, size: Lo.SM })
3109
+ size: _o.Small,
3110
+ icon: /* @__PURE__ */ o(ln, { stroke: 2, size: Lo.SM })
3118
3111
  }
3119
3112
  )
3120
3113
  }
3121
3114
  ),
3122
3115
  r ? /* @__PURE__ */ o(
3123
- Gn,
3116
+ Vn,
3124
3117
  {
3125
3118
  tooltip: l && g ? g : void 0,
3126
3119
  children: /* @__PURE__ */ o(
3127
- na,
3120
+ ta,
3128
3121
  {
3129
3122
  label: C,
3130
3123
  variant: i,
@@ -3139,7 +3132,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3139
3132
  /* @__PURE__ */ o("div", { className: "flex-1 min-w-0", children: D() }),
3140
3133
  /* @__PURE__ */ o("div", { className: "flex gap-2 shrink-0 items-center", children: m ? f() : h() })
3141
3134
  ] });
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 = ({
3135
+ }, Zs = 100, Qt = 16, Ue = "text-secondary", Hn = "text-primary min-w-0", Xs = "text-primary break-words min-w-0", Jt = "bg-layer-sunken", qs = ({
3143
3136
  open: e,
3144
3137
  onClose: t,
3145
3138
  fileMetadata: s,
@@ -3157,9 +3150,9 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3157
3150
  {
3158
3151
  open: e,
3159
3152
  onClose: t,
3160
- size: Un.Sm,
3153
+ size: Gn.Sm,
3161
3154
  header: n,
3162
- dividers: !1,
3155
+ ariaLabel: "File information",
3163
3156
  children: /* @__PURE__ */ o("div", { className: "px-6 py-4", children: /* @__PURE__ */ o(
3164
3157
  "div",
3165
3158
  {
@@ -3168,59 +3161,59 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3168
3161
  children: a ? /* @__PURE__ */ X(Ie, { children: [
3169
3162
  /* @__PURE__ */ o("div", { className: Ue, children: r }),
3170
3163
  /* @__PURE__ */ o(
3171
- Xt,
3164
+ qt,
3172
3165
  {
3173
- variant: qt.Text,
3166
+ variant: Yt.Text,
3174
3167
  width: "100%",
3175
- height: Kt,
3176
- className: Qt
3168
+ height: Qt,
3169
+ className: Jt
3177
3170
  }
3178
3171
  ),
3179
3172
  /* @__PURE__ */ o("div", { className: Ue, children: i }),
3180
3173
  /* @__PURE__ */ o(
3181
- Xt,
3174
+ qt,
3182
3175
  {
3183
- variant: qt.Text,
3176
+ variant: Yt.Text,
3184
3177
  width: "90%",
3185
- height: Kt,
3186
- className: Qt
3178
+ height: Qt,
3179
+ className: Jt
3187
3180
  }
3188
3181
  ),
3189
3182
  /* @__PURE__ */ o("div", { className: Ue, children: p }),
3190
3183
  /* @__PURE__ */ o(
3191
- Xt,
3184
+ qt,
3192
3185
  {
3193
- variant: qt.Text,
3186
+ variant: Yt.Text,
3194
3187
  width: "60%",
3195
- height: Kt,
3196
- className: Qt
3188
+ height: Qt,
3189
+ className: Jt
3197
3190
  }
3198
3191
  ),
3199
3192
  /* @__PURE__ */ o("div", { className: Ue, children: C }),
3200
3193
  /* @__PURE__ */ o(
3201
- Xt,
3194
+ qt,
3202
3195
  {
3203
- variant: qt.Text,
3196
+ variant: Yt.Text,
3204
3197
  width: "80%",
3205
- height: Kt,
3206
- className: Qt
3198
+ height: Qt,
3199
+ className: Jt
3207
3200
  }
3208
3201
  ),
3209
3202
  /* @__PURE__ */ o("div", { className: Ue, children: l }),
3210
3203
  /* @__PURE__ */ o(
3211
- Xt,
3204
+ qt,
3212
3205
  {
3213
- variant: qt.Text,
3206
+ variant: Yt.Text,
3214
3207
  width: "70%",
3215
- height: Kt,
3216
- className: Qt
3208
+ height: Qt,
3209
+ className: Jt
3217
3210
  }
3218
3211
  )
3219
3212
  ] }) : s ? /* @__PURE__ */ X(Ie, { children: [
3220
3213
  /* @__PURE__ */ o("div", { className: Ue, children: r }),
3221
- /* @__PURE__ */ o("div", { className: Wn, children: /* @__PURE__ */ o(Tt, { text: s.name }) }),
3214
+ /* @__PURE__ */ o("div", { className: Hn, children: /* @__PURE__ */ o(Tt, { text: s.name }) }),
3222
3215
  /* @__PURE__ */ o("div", { className: Ue, children: i }),
3223
- /* @__PURE__ */ o("div", { className: Wn, children: /* @__PURE__ */ o(
3216
+ /* @__PURE__ */ o("div", { className: Hn, children: /* @__PURE__ */ o(
3224
3217
  Tt,
3225
3218
  {
3226
3219
  text: ss(
@@ -3231,14 +3224,14 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3231
3224
  }
3232
3225
  ) }),
3233
3226
  /* @__PURE__ */ o("div", { className: Ue, children: p }),
3234
- /* @__PURE__ */ o("div", { className: Wn, children: /* @__PURE__ */ o(
3227
+ /* @__PURE__ */ o("div", { className: Hn, children: /* @__PURE__ */ o(
3235
3228
  Tt,
3236
3229
  {
3237
- text: rn(s.contentLength)
3230
+ text: sn(s.contentLength)
3238
3231
  }
3239
3232
  ) }),
3240
3233
  /* @__PURE__ */ o("div", { className: Ue, children: C }),
3241
- /* @__PURE__ */ o("div", { className: Wn, children: /* @__PURE__ */ o(Tt, { text: s.author || "—" }) }),
3234
+ /* @__PURE__ */ o("div", { className: Hn, children: /* @__PURE__ */ o(Tt, { text: s.author || "—" }) }),
3242
3235
  /* @__PURE__ */ o("div", { className: Ue, children: l }),
3243
3236
  /* @__PURE__ */ o("div", { className: Xs, children: decodeURIComponent(s.path) })
3244
3237
  ] }) : null
@@ -3248,7 +3241,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3248
3241
  ), Ys = {
3249
3242
  size: 10,
3250
3243
  stroke: 2
3251
- }, Ks = 26, Jt = "__new_folder", Qs = ({
3244
+ }, Ks = 26, en = "__new_folder", Qs = ({
3252
3245
  name: e,
3253
3246
  type: t,
3254
3247
  shared: s = !1,
@@ -3261,7 +3254,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3261
3254
  const p = (C) => /* @__PURE__ */ X("span", { className: "inline-flex relative text-secondary", role: "img", children: [
3262
3255
  C,
3263
3256
  s && /* @__PURE__ */ o("span", { className: "absolute -bottom-0.5 -left-0.5", children: /* @__PURE__ */ o(
3264
- oa,
3257
+ na,
3265
3258
  {
3266
3259
  className: n,
3267
3260
  sharedIndicatorTooltip: r
@@ -3273,13 +3266,13 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3273
3266
  if (t === We.File) {
3274
3267
  const C = l || (e.includes(".") ? e.split(".").pop() : void 0);
3275
3268
  return /* @__PURE__ */ o(
3276
- Er,
3269
+ Fr,
3277
3270
  {
3278
3271
  ...i,
3279
3272
  extension: C ?? "",
3280
3273
  className: "text-secondary",
3281
3274
  indicator: s ? /* @__PURE__ */ o(
3282
- oa,
3275
+ na,
3283
3276
  {
3284
3277
  className: n,
3285
3278
  sharedIndicatorTooltip: r
@@ -3291,10 +3284,10 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3291
3284
  }
3292
3285
  return t === We.Folder ? p(
3293
3286
  /* @__PURE__ */ o(
3294
- _o,
3287
+ Er,
3295
3288
  {
3296
3289
  icon: /* @__PURE__ */ o(
3297
- fa,
3290
+ pa,
3298
3291
  {
3299
3292
  className: i.className,
3300
3293
  size: i.size ?? M.size,
@@ -3331,19 +3324,19 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3331
3324
  `${Fo.Warning}__`
3332
3325
  );
3333
3326
  if (!c && !T) return null;
3334
- const N = v?.replace(
3327
+ const x = v?.replace(
3335
3328
  `${Fo.Warning}__`,
3336
3329
  ""
3337
3330
  );
3338
- return /* @__PURE__ */ o(Gn, { tooltip: N, children: y || (T ? /* @__PURE__ */ o(
3339
- cr,
3331
+ return /* @__PURE__ */ o(Vn, { tooltip: x, children: y || (T ? /* @__PURE__ */ o(
3332
+ lr,
3340
3333
  {
3341
3334
  ...M,
3342
3335
  className: "text-warning-icon",
3343
3336
  "aria-label": "warning"
3344
3337
  }
3345
3338
  ) : /* @__PURE__ */ o(
3346
- lr,
3339
+ ir,
3347
3340
  {
3348
3341
  ...M,
3349
3342
  className: "text-error",
@@ -3385,7 +3378,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3385
3378
  }
3386
3379
  )
3387
3380
  ] });
3388
- }, Vn = ({
3381
+ }, $n = ({
3389
3382
  name: e,
3390
3383
  type: t,
3391
3384
  elementId: s,
@@ -3393,7 +3386,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3393
3386
  loading: n = !1,
3394
3387
  creating: r = !1,
3395
3388
  shared: l = !1,
3396
- iconSize: i = wa,
3389
+ iconSize: i = ya,
3397
3390
  validate: p,
3398
3391
  onSave: C,
3399
3392
  fileExtension: c,
@@ -3408,7 +3401,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3408
3401
  forbiddenSymbolsTooltip: f,
3409
3402
  ...T
3410
3403
  }) => {
3411
- const { value: N, invalid: F, invalidMessage: I, onChange: S, inputRef: A } = Mr({
3404
+ const { value: x, invalid: F, invalidMessage: I, onChange: S, inputRef: A } = Mr({
3412
3405
  value: e,
3413
3406
  isEditing: a,
3414
3407
  isCreating: r,
@@ -3420,7 +3413,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3420
3413
  onCreateFolderSave: y
3421
3414
  });
3422
3415
  if (!a && !r) {
3423
- const _ = Vo(
3416
+ const _ = Go(
3424
3417
  {
3425
3418
  name: e,
3426
3419
  isFolder: t === We.Folder
@@ -3460,7 +3453,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3460
3453
  Js,
3461
3454
  {
3462
3455
  type: t,
3463
- name: N,
3456
+ name: x,
3464
3457
  elementId: s,
3465
3458
  inputInvalid: F,
3466
3459
  inputInvalidMessage: I,
@@ -3495,35 +3488,35 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3495
3488
  onRenameCancel: h,
3496
3489
  onRenameValidate: f,
3497
3490
  onExpandedPathsChange: T,
3498
- onCreateFolderSave: N,
3491
+ onCreateFolderSave: x,
3499
3492
  onCreateFolderCancel: F,
3500
3493
  forbiddenSymbolsRegExp: I,
3501
3494
  forbiddenSymbolsTooltip: S,
3502
3495
  newFolderDefaultName: A
3503
3496
  }) => {
3504
- const { expandedPaths: _, togglePath: U } = Aa({
3497
+ const { expandedPaths: _, togglePath: U } = Sa({
3505
3498
  expandedPaths: s ?? /* @__PURE__ */ new Set(),
3506
3499
  onExpandedPathsChange: T
3507
3500
  }), P = (B) => {
3508
3501
  m?.(B), U(B.path);
3509
- }, k = (B, L, Y) => {
3502
+ }, k = (B, L, q) => {
3510
3503
  let J = B;
3511
- return Y && Y.path === u && (J = [
3504
+ return q && q.path === u && (J = [
3512
3505
  {
3513
- folderId: Jt,
3514
- id: Jt,
3506
+ folderId: en,
3507
+ id: en,
3515
3508
  items: [],
3516
3509
  name: A || "",
3517
3510
  nodeType: O.FOLDER,
3518
3511
  parentPath: u,
3519
- path: `${u}/${Jt}`
3512
+ path: `${u}/${en}`
3520
3513
  },
3521
3514
  ...B
3522
3515
  ]), J.map((j) => {
3523
- const { path: te, nodeType: fe, name: we, items: Ne } = j, ue = fe === O.FOLDER;
3524
- if (!c && Ra(j)) return null;
3516
+ const { path: te, nodeType: fe, name: we, items: xe } = j, ue = fe === O.FOLDER;
3517
+ if (!c && Ta(j)) return null;
3525
3518
  if (!ue && !t) return;
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(
3519
+ const Te = Array.isArray(xe) && xe.length > 0 && xe.some((H) => H.nodeType === O.FOLDER || t), Ne = _.has(te), W = l === te, be = a.has(te), De = v === te || te === `${u}/${en}`, G = n.has(te), ne = r.has(te), he = g && y && te === g && ue, _e = f && ((H) => f(H, j)), Oe = W ? "bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded" : "border-l-2 border-l-transparent", Se = he ? [] : b?.(j) ?? [], R = I ? Go(
3527
3520
  { name: j.name, isFolder: ue },
3528
3521
  I,
3529
3522
  S
@@ -3532,7 +3525,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3532
3525
  /* @__PURE__ */ o(
3533
3526
  ht,
3534
3527
  {
3535
- trigger: [Ca.ContextMenu],
3528
+ trigger: [ma.ContextMenu],
3536
3529
  className: "w-full",
3537
3530
  anchorToMouse: !0,
3538
3531
  items: Se,
@@ -3560,18 +3553,18 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3560
3553
  onClick: () => !De && P(j),
3561
3554
  children: /* @__PURE__ */ X(Ie, { children: [
3562
3555
  ue && /* @__PURE__ */ o(
3563
- dr,
3556
+ cr,
3564
3557
  {
3565
3558
  ...Ys,
3566
- className: on(
3559
+ className: an(
3567
3560
  "flex-shrink-0",
3568
- xe && "rotate-90 transition-all",
3561
+ Ne && "rotate-90 transition-all",
3569
3562
  G && !Te && "text-transparent"
3570
3563
  )
3571
3564
  }
3572
3565
  ),
3573
3566
  /* @__PURE__ */ o(
3574
- Vn,
3567
+ $n,
3575
3568
  {
3576
3569
  elementId: `${te}-tree-item`,
3577
3570
  name: he ? y : we,
@@ -3587,11 +3580,11 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3587
3580
  forbiddenSymbolsTooltip: R,
3588
3581
  ...!he && {
3589
3582
  editing: De,
3590
- creating: te === `${u}/${Jt}`,
3583
+ creating: te === `${u}/${en}`,
3591
3584
  onSave: D,
3592
3585
  onCancel: h,
3593
3586
  validate: _e,
3594
- onCreateFolderSave: N,
3587
+ onCreateFolderSave: x,
3595
3588
  onCreateFolderCancel: F
3596
3589
  }
3597
3590
  }
@@ -3607,10 +3600,10 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3607
3600
  items: Se,
3608
3601
  className: "sticky right-0",
3609
3602
  children: /* @__PURE__ */ o(
3610
- _o,
3603
+ Et,
3611
3604
  {
3612
- className: "invisible group-hover/item:visible text-secondary mx-2 flex flex-row gap-2 hover:text-accent",
3613
- icon: /* @__PURE__ */ o(sn, { ...M })
3605
+ className: "invisible group-hover/item:visible",
3606
+ icon: /* @__PURE__ */ o(ln, { ...M })
3614
3607
  }
3615
3608
  )
3616
3609
  }
@@ -3620,12 +3613,12 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3620
3613
  )
3621
3614
  }
3622
3615
  ),
3623
- xe && (Ne || j?.path === u) && k(Ne || [], L + 1, j)
3616
+ Ne && (xe || j?.path === u) && k(xe || [], L + 1, j)
3624
3617
  ] }) }, `${te}-children`);
3625
3618
  });
3626
3619
  };
3627
3620
  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,
3621
+ wa,
3629
3622
  {
3630
3623
  title: i,
3631
3624
  description: p,
@@ -3672,7 +3665,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3672
3665
  label: t[w.Move],
3673
3666
  title: t[w.Move],
3674
3667
  icon: /* @__PURE__ */ o(
3675
- Ho,
3668
+ Wo,
3676
3669
  {
3677
3670
  width: M.size,
3678
3671
  height: M.size,
@@ -3685,7 +3678,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3685
3678
  label: t[w.Copy],
3686
3679
  title: t[w.Copy],
3687
3680
  icon: /* @__PURE__ */ o(
3688
- Wo,
3681
+ Bo,
3689
3682
  {
3690
3683
  width: M.size,
3691
3684
  height: M.size,
@@ -3701,7 +3694,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3701
3694
  onClick: () => s(m)
3702
3695
  }), t[w.Delete]) {
3703
3696
  const h = m.some(
3704
- (f) => f.permissions && !f.permissions.includes(Et.WRITE)
3697
+ (f) => f.permissions && !f.permissions.includes(St.WRITE)
3705
3698
  );
3706
3699
  g.push({
3707
3700
  key: w.Delete,
@@ -3733,7 +3726,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3733
3726
  disabled: h,
3734
3727
  tooltip: h ? "Selected items contain item which can not be unshared" : void 0,
3735
3728
  icon: /* @__PURE__ */ o(
3736
- Uo,
3729
+ Ho,
3737
3730
  {
3738
3731
  width: M.size,
3739
3732
  height: M.size,
@@ -3775,7 +3768,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3775
3768
  forbiddenSymbolsRegExp: c,
3776
3769
  forbiddenSymbolsTooltip: v
3777
3770
  }) => /* @__PURE__ */ o("div", { className: "flex", children: /* @__PURE__ */ o("div", { className: "flex flex-1 min-w-0", children: /* @__PURE__ */ o(
3778
- Vn,
3771
+ $n,
3779
3772
  {
3780
3773
  type: s === O.FOLDER ? We.Folder : We.File,
3781
3774
  name: t,
@@ -3787,10 +3780,10 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3787
3780
  forbiddenSymbolsRegExp: c,
3788
3781
  forbiddenSymbolsTooltip: v,
3789
3782
  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) : "" }),
3791
- n && a && /* @__PURE__ */ o(Hn, { size: 2, className: "text-secondary" }),
3783
+ /* @__PURE__ */ o("span", { children: s === O.ITEM ? sn(a) : "" }),
3784
+ n && a && /* @__PURE__ */ o(Un, { size: 2, className: "text-secondary" }),
3792
3785
  n ? /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(
3793
- Da,
3786
+ Na,
3794
3787
  {
3795
3788
  value: n,
3796
3789
  locale: r?.toString(),
@@ -3823,7 +3816,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3823
3816
  ]);
3824
3817
  if (n.data?.isTemporary && n.data.id === C)
3825
3818
  return /* @__PURE__ */ o(
3826
- Vn,
3819
+ $n,
3827
3820
  {
3828
3821
  name: n.data.name,
3829
3822
  type: We.Folder,
@@ -3849,15 +3842,15 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3849
3842
  renameTriggerView: h,
3850
3843
  renamedPath: f,
3851
3844
  renamedItem: T,
3852
- getDisplayName: N,
3845
+ getDisplayName: x,
3853
3846
  onRenameValidate: F,
3854
3847
  onRenameSave: I,
3855
3848
  onRenameCancel: S
3856
3849
  } = n.context;
3857
3850
  if (h === Rt.Grid && f === n.data?.path && T && n.data) {
3858
- const U = N(T);
3851
+ const U = x(T);
3859
3852
  return /* @__PURE__ */ o(
3860
- Vn,
3853
+ $n,
3861
3854
  {
3862
3855
  name: U,
3863
3856
  type: r === O.FOLDER ? We.Folder : We.File,
@@ -3896,7 +3889,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3896
3889
  forbiddenSymbolsTooltip: n.context.forbiddenSymbolsTooltip
3897
3890
  }
3898
3891
  );
3899
- const _ = Vo(
3892
+ const _ = Go(
3900
3893
  {
3901
3894
  name: n.data.name,
3902
3895
  isFolder: r === O.FOLDER
@@ -3936,7 +3929,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3936
3929
  suppressSizeToFit: !0,
3937
3930
  cellRenderer: (a) => {
3938
3931
  const n = a.context?.disabledRowIds?.has(a.data?.path) ?? !1;
3939
- return /* @__PURE__ */ o(Da, { ...a, hideTooltip: n });
3932
+ return /* @__PURE__ */ o(Na, { ...a, hideTooltip: n });
3940
3933
  },
3941
3934
  cellRendererParams: {
3942
3935
  locale: t,
@@ -3955,8 +3948,8 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
3955
3948
  headerName: e,
3956
3949
  width: 120,
3957
3950
  suppressSizeToFit: !0,
3958
- cellRenderer: (t) => t.data.nodeType === O.ITEM ? rn(t.data.contentLength) : "",
3959
- filterValueGetter: (t) => t.data.nodeType === O.ITEM ? rn(t.data.contentLength) : ""
3951
+ cellRenderer: (t) => t.data.nodeType === O.ITEM ? sn(t.data.contentLength) : "",
3952
+ filterValueGetter: (t) => t.data.nodeType === O.ITEM ? sn(t.data.contentLength) : ""
3960
3953
  }), si = (e) => {
3961
3954
  const t = e.event;
3962
3955
  if (!(t?.target ?? null)?.closest("input") || !t) return !1;
@@ -4056,7 +4049,7 @@ function ii({
4056
4049
  ]) };
4057
4050
  }
4058
4051
  const li = () => {
4059
- const e = mr(Fa);
4052
+ const e = fr(Ia);
4060
4053
  if (!e)
4061
4054
  throw new Error(
4062
4055
  "useFileManagerContext must be used within <FileManagerProvider>"
@@ -4084,132 +4077,132 @@ const li = () => {
4084
4077
  forbiddenSymbolsRegExp: h,
4085
4078
  onGridCreateSiblingFolder: f,
4086
4079
  onGridCreateChildFolder: T
4087
- }) => $(() => (N) => {
4080
+ }) => $(() => (x) => {
4088
4081
  const F = [];
4089
4082
  if (!e)
4090
4083
  return F;
4091
4084
  const I = jn(
4092
4085
  h
4093
- )?.test(N.name);
4094
- e[w.AddSibling] && N.nodeType === O.FOLDER && F.push({
4086
+ )?.test(x.name);
4087
+ e[w.AddSibling] && x.nodeType === O.FOLDER && F.push({
4095
4088
  key: "addSibling",
4096
4089
  label: e[w.AddSibling],
4097
4090
  icon: /* @__PURE__ */ o(
4098
- Ta,
4091
+ ba,
4099
4092
  {
4100
4093
  width: M.size,
4101
4094
  height: M.size,
4102
4095
  className: "text-secondary"
4103
4096
  }
4104
4097
  ),
4105
- onClick: () => f([N])
4106
- }), e[w.AddChild] && N.nodeType === O.FOLDER && !I && F.push(
4098
+ onClick: () => f([x])
4099
+ }), e[w.AddChild] && x.nodeType === O.FOLDER && !I && F.push(
4107
4100
  {
4108
4101
  key: "addChild",
4109
4102
  label: e[w.AddChild],
4110
4103
  icon: /* @__PURE__ */ o(
4111
- ba,
4104
+ xa,
4112
4105
  {
4113
4106
  width: M.size,
4114
4107
  height: M.size,
4115
4108
  className: "text-secondary"
4116
4109
  }
4117
4110
  ),
4118
- onClick: () => T([N])
4111
+ onClick: () => T([x])
4119
4112
  },
4120
4113
  {
4121
4114
  key: "divider",
4122
- type: Na.Divider
4115
+ type: Da.Divider
4123
4116
  }
4124
- ), e[w.OpenInNewTab] && typeof g == "function" && N.nodeType === O.ITEM && !I && F.push({
4117
+ ), e[w.OpenInNewTab] && typeof g == "function" && x.nodeType === O.ITEM && !I && F.push({
4125
4118
  key: w.OpenInNewTab,
4126
4119
  label: e[w.OpenInNewTab],
4127
4120
  icon: /* @__PURE__ */ o(Io, { ...M, className: "text-secondary" }),
4128
- onClick: () => g?.(N)
4121
+ onClick: () => g?.(x)
4129
4122
  });
4130
- const S = N.nodeType === O.ITEM || N.nodeType === O.FOLDER && D;
4123
+ const S = x.nodeType === O.ITEM || x.nodeType === O.FOLDER && D;
4131
4124
  e[w.Duplicate] && S && !I && F.push({
4132
4125
  key: w.Duplicate,
4133
4126
  label: e[w.Duplicate],
4134
4127
  icon: /* @__PURE__ */ o(Ao, { ...M, className: "text-secondary" }),
4135
- onClick: () => t(N)
4128
+ onClick: () => t(x)
4136
4129
  }), e[w.Copy] && !I && F.push({
4137
4130
  key: w.Copy,
4138
4131
  label: e[w.Copy],
4139
4132
  icon: /* @__PURE__ */ o(
4140
- Wo,
4133
+ Bo,
4141
4134
  {
4142
4135
  width: M.size,
4143
4136
  height: M.size,
4144
4137
  className: "text-secondary"
4145
4138
  }
4146
4139
  ),
4147
- onClick: () => s(N)
4140
+ onClick: () => s(x)
4148
4141
  }), e[w.Move] && !I && F.push({
4149
4142
  key: w.Move,
4150
4143
  label: e[w.Move],
4151
4144
  icon: /* @__PURE__ */ o(
4152
- Ho,
4145
+ Wo,
4153
4146
  {
4154
4147
  width: M.size,
4155
4148
  height: M.size,
4156
4149
  className: "text-secondary"
4157
4150
  }
4158
4151
  ),
4159
- onClick: () => a(N)
4152
+ onClick: () => a(x)
4160
4153
  }), e[w.Download] && !I && F.push({
4161
4154
  key: w.Download,
4162
4155
  label: e[w.Download],
4163
4156
  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({
4157
+ onClick: () => n(x)
4158
+ }), e[w.ManagePermissions] && typeof u == "function" && x.nodeType === O.FOLDER && !I && F.push({
4166
4159
  key: w.ManagePermissions,
4167
4160
  label: e[w.ManagePermissions],
4168
4161
  icon: /* @__PURE__ */ o(Io, { ...M, className: "text-secondary" }),
4169
- onClick: () => u?.(N.path)
4162
+ onClick: () => u?.(x.path)
4170
4163
  });
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({
4164
+ const A = x.name.split("."), _ = A.length > 1 ? A[A.length - 1] : "", U = _ && m?.includes(`.${_}`);
4165
+ e[w.Preview] && typeof y == "function" && x.nodeType === O.ITEM && U && !I && F.push({
4173
4166
  key: w.Preview,
4174
4167
  label: e[w.Preview],
4175
4168
  icon: /* @__PURE__ */ o(Eo, { ...M, className: "text-secondary" }),
4176
- onClick: () => y?.(N.path)
4169
+ onClick: () => y?.(x.path)
4177
4170
  });
4178
- const P = !N.permissions || N.permissions.includes(Et.WRITE);
4171
+ const P = !x.permissions || x.permissions.includes(St.WRITE);
4179
4172
  e[w.Delete] && P && F.push({
4180
4173
  key: w.Delete,
4181
4174
  label: e[w.Delete],
4182
4175
  icon: /* @__PURE__ */ o(Po, { ...M, className: "text-secondary" }),
4183
- onClick: () => l(N, N.parentPath ?? "")
4176
+ onClick: () => l(x, x.parentPath ?? "")
4184
4177
  });
4185
- const k = N.nodeType === O.FOLDER || N.nodeType === O.ITEM && b;
4178
+ const k = x.nodeType === O.FOLDER || x.nodeType === O.ITEM && b;
4186
4179
  return e[w.Rename] && k && P && F.push({
4187
4180
  key: w.Rename,
4188
4181
  label: e[w.Rename],
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({
4182
+ icon: /* @__PURE__ */ o(fa, { ...M, className: "text-secondary" }),
4183
+ onClick: () => r(x.path)
4184
+ }), e[w.Info] && x.nodeType === O.ITEM && !I && F.push({
4192
4185
  key: w.Info,
4193
4186
  label: e[w.Info],
4194
- icon: /* @__PURE__ */ o(ur, { ...M, className: "text-secondary" }),
4195
- onClick: () => i(N)
4196
- }), e[w.Unshare] && c?.includes(N.path) && F.push({
4187
+ icon: /* @__PURE__ */ o(dr, { ...M, className: "text-secondary" }),
4188
+ onClick: () => i(x)
4189
+ }), e[w.Unshare] && c?.includes(x.path) && F.push({
4197
4190
  key: w.Unshare,
4198
4191
  label: e[w.Unshare],
4199
4192
  icon: /* @__PURE__ */ o(
4200
- Uo,
4193
+ Ho,
4201
4194
  {
4202
4195
  width: M.size,
4203
4196
  height: M.size,
4204
4197
  className: "text-secondary"
4205
4198
  }
4206
4199
  ),
4207
- onClick: () => p(N)
4208
- }), e[w.RemoveAccess] && v?.has(N.path) && C && F.push({
4200
+ onClick: () => p(x)
4201
+ }), e[w.RemoveAccess] && v?.has(x.path) && C && F.push({
4209
4202
  key: w.RemoveAccess,
4210
4203
  label: e[w.RemoveAccess],
4211
4204
  icon: /* @__PURE__ */ o(So, { size: M.size, className: "text-secondary" }),
4212
- onClick: () => C(N)
4205
+ onClick: () => C(x)
4213
4206
  }), F;
4214
4207
  }, [
4215
4208
  e,
@@ -4292,7 +4285,7 @@ const li = () => {
4292
4285
  maxSelectableFileSize: h,
4293
4286
  areHiddenFilesVisible: f,
4294
4287
  toggleHiddenFilesVisibility: T,
4295
- isTreeCollapsed: N,
4288
+ isTreeCollapsed: x,
4296
4289
  toggleTreeCollapse: F,
4297
4290
  currentPath: I,
4298
4291
  gridRows: S,
@@ -4303,16 +4296,16 @@ const li = () => {
4303
4296
  effectiveSearchValue: k,
4304
4297
  handleBreadcrumbItemClick: B,
4305
4298
  handleSearchChange: L,
4306
- handleTreeItemClick: Y,
4299
+ handleTreeItemClick: q,
4307
4300
  handleTableRowClick: J,
4308
4301
  handleSelectionClick: j,
4309
4302
  onGridApiChange: te,
4310
4303
  handleOpenDestinationFolderPopup: fe,
4311
4304
  handleCloseDestinationFolderPopup: we,
4312
- openDestinationFolderPopup: Ne,
4305
+ openDestinationFolderPopup: xe,
4313
4306
  destinationFolderMode: ue,
4314
4307
  handleSetCopiedFiles: Te,
4315
- handleSetMovedFiles: xe,
4308
+ handleSetMovedFiles: Ne,
4316
4309
  handleDuplicate: W,
4317
4310
  handleCopyTo: be,
4318
4311
  handleMoveTo: De,
@@ -4335,31 +4328,31 @@ const li = () => {
4335
4328
  createdFolderPath: $e,
4336
4329
  forbiddenSymbolsRegExp: He,
4337
4330
  forbiddenSymbolsTooltip: pt,
4338
- getDisplayName: ln,
4331
+ getDisplayName: cn,
4339
4332
  isDragging: st,
4340
4333
  isDraggingOverWindow: ft,
4341
4334
  handleDragEnter: Zn,
4342
4335
  handleDragLeave: Xn,
4343
4336
  handleDragOver: qn,
4344
4337
  handleDrop: mt,
4345
- onUploadFiles: cn,
4346
- onValidateUpload: St,
4338
+ onUploadFiles: dn,
4339
+ onValidateUpload: At,
4347
4340
  maxFileSize: Yn,
4348
- newActions: dn,
4349
- isNewButtonVisible: un,
4350
- isNewButtonDisabled: hn,
4351
- newFolderTempId: pn,
4341
+ newActions: un,
4342
+ isNewButtonVisible: hn,
4343
+ isNewButtonDisabled: pn,
4344
+ newFolderTempId: fn,
4352
4345
  cancelFolderCreation: Qe,
4353
4346
  saveFolderCreation: Ct,
4354
- validateFolderName: fn,
4347
+ validateFolderName: mn,
4355
4348
  startFolderCreation: je,
4356
4349
  conflictingFiles: ve,
4357
- conflictResolutionOpen: At,
4358
- handleConflictReplace: mn,
4350
+ conflictResolutionOpen: Pt,
4351
+ handleConflictReplace: Cn,
4359
4352
  handleConflictDuplicate: Ze,
4360
4353
  handleConflictCancel: Xe,
4361
4354
  handleConflictDecideForEach: it,
4362
- uploadConflictingFiles: Cn,
4355
+ uploadConflictingFiles: gn,
4363
4356
  uploadConflictResolutionOpen: Je,
4364
4357
  handleUploadConflictReplace: Kn,
4365
4358
  handleUploadConflictDuplicate: Qn,
@@ -4368,16 +4361,16 @@ const li = () => {
4368
4361
  openMetadataPopup: de,
4369
4362
  fileMetadataPopupOptions: Fe,
4370
4363
  isMetadataPopupOpen: qe,
4371
- selectedFileForMetadata: Pt,
4372
- closeMetadataPopup: Mt,
4364
+ selectedFileForMetadata: Mt,
4365
+ closeMetadataPopup: kt,
4373
4366
  onUnshareFiles: et,
4374
4367
  onRemoveFilesAccess: gt,
4375
4368
  actionsRef: to,
4376
- searchInProgress: gn,
4369
+ searchInProgress: vn,
4377
4370
  isSearchMode: tt,
4378
4371
  emptyStateIcon: lt,
4379
- emptyStateTitle: vn = "You don't have any files",
4380
- emptyStateDescription: yn = "Upload or drag and drop files",
4372
+ emptyStateTitle: yn = "You don't have any files",
4373
+ emptyStateDescription: wn = "Upload or drag and drop files",
4381
4374
  sharedWithMeIds: vt,
4382
4375
  onFolderPopupPathChange: no,
4383
4376
  onManagePermissions: yt,
@@ -4386,44 +4379,44 @@ const li = () => {
4386
4379
  previewExtensions: ro,
4387
4380
  isRenameFileAvailable: so,
4388
4381
  isDuplicateFolderAvailable: io,
4389
- getDisabledTooltip: kt,
4382
+ getDisabledTooltip: Ot,
4390
4383
  fileTooLargeTooltip: wt,
4391
- unsupportedFileTypeTooltip: wn,
4392
- gridClassName: Ot,
4393
- nonClickableTableColumns: Lt,
4394
- hideSearchPathItemName: zt,
4384
+ unsupportedFileTypeTooltip: Nn,
4385
+ gridClassName: Lt,
4386
+ nonClickableTableColumns: zt,
4387
+ hideSearchPathItemName: _t,
4395
4388
  showHiddenFileSwitcherInDestinationPopup: le,
4396
- showCreateFolderButtonInDestinationPopup: xn,
4389
+ showCreateFolderButtonInDestinationPopup: Dn,
4397
4390
  newFolderDefaultName: re
4398
4391
  } = li(), {
4399
4392
  width: Le = jr,
4400
4393
  header: Me = Zr,
4401
- containerClassName: Dn = Gr,
4402
- additionalButtons: Nn,
4403
- ...bn
4404
- } = r ?? {}, [xt, Tn] = z(Le), { renameTriggerView: nt, onGridRename: lo, onTreeRename: Rn } = ts({ onRename: Ae }), {
4405
- createFolderTriggerView: In,
4394
+ containerClassName: xn = Gr,
4395
+ additionalButtons: bn,
4396
+ ...Tn
4397
+ } = r ?? {}, [Nt, Rn] = z(Le), { renameTriggerView: nt, onGridRename: lo, onTreeRename: In } = ts({ onRename: Ae }), {
4398
+ createFolderTriggerView: Fn,
4406
4399
  onGridCreateSiblingFolder: co,
4407
- onTreeCreateSiblingFolder: Fn,
4400
+ onTreeCreateSiblingFolder: En,
4408
4401
  onGridCreateChildFolder: uo,
4409
- onTreeCreateChildFolder: En
4402
+ onTreeCreateChildFolder: Sn
4410
4403
  } = di({
4411
4404
  onGridAddSibling: G,
4412
4405
  onGridAddChild: ne,
4413
4406
  onTreeAddSibling: he,
4414
4407
  onTreeAddChild: _e
4415
- }), _t = ce(null), ho = (x) => {
4416
- _t.current === null && (_t.current = requestAnimationFrame(() => {
4417
- Tn(x), _t.current = null;
4408
+ }), Bt = ce(null), ho = (N) => {
4409
+ Bt.current === null && (Bt.current = requestAnimationFrame(() => {
4410
+ Rn(N), Bt.current = null;
4418
4411
  }));
4419
4412
  }, {
4420
4413
  columnDefs: po,
4421
4414
  filterable: fo = !0,
4422
4415
  dateLocale: mo,
4423
4416
  dateOptions: Co,
4424
- selectionMode: Sn,
4425
- wrapCustomCellRenderers: An,
4426
- visibleColumns: Pn = Qr,
4417
+ selectionMode: An,
4418
+ wrapCustomCellRenderers: Pn,
4419
+ visibleColumns: Mn = Qr,
4427
4420
  allowDisabledContextMenu: Dt = !1,
4428
4421
  ...ot
4429
4422
  } = p ?? {}, { containerRef: go, isBelowBreakpoint: ze } = ns(
@@ -4433,62 +4426,62 @@ const li = () => {
4433
4426
  ye.Name,
4434
4427
  ye.Path,
4435
4428
  ye.Actions
4436
- ] : Pn, [tt, Pn]), Bt = d(
4437
- (x, ee, ie) => us(
4438
- x,
4429
+ ] : Mn, [tt, Mn]), Wt = d(
4430
+ (N, ee, ie) => us(
4431
+ N,
4439
4432
  ee,
4440
4433
  ie,
4441
- wn,
4434
+ Nn,
4442
4435
  wt
4443
4436
  ),
4444
- [wt, wn]
4445
- ), Nt = d(
4446
- (x, ee, ie) => !!kt?.(x) || !!Bt(x, ee, ie),
4447
- [Bt, kt]
4437
+ [wt, Nn]
4438
+ ), xt = d(
4439
+ (N, ee, ie) => !!Ot?.(N) || !!Wt(N, ee, ie),
4440
+ [Wt, Ot]
4448
4441
  ), ct = $(() => {
4449
- const x = /* @__PURE__ */ new Set();
4442
+ const N = /* @__PURE__ */ new Set();
4450
4443
  for (const ee of S)
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
4444
+ xt(ee, D, h) && N.add(ee.path);
4445
+ return N;
4446
+ }, [D, h, S, xt]), Ht = d(
4447
+ (N) => {
4448
+ const ee = [], ie = [], Re = !N.parentPath, at = He?.test(
4449
+ N.name
4457
4450
  );
4458
- return r?.actionLabels && (r.actionLabels[w.AddSibling] && x.nodeType === O.FOLDER && !Re && ee.push({
4451
+ return r?.actionLabels && (r.actionLabels[w.AddSibling] && N.nodeType === O.FOLDER && !Re && ee.push({
4459
4452
  key: "addSibling",
4460
4453
  label: r.actionLabels[w.AddSibling],
4461
4454
  icon: /* @__PURE__ */ o(
4462
- Ta,
4455
+ ba,
4463
4456
  {
4464
4457
  width: M.size,
4465
4458
  height: M.size,
4466
4459
  className: "text-secondary"
4467
4460
  }
4468
4461
  ),
4469
- onClick: () => Fn([x])
4470
- }), r.actionLabels[w.AddChild] && x.nodeType === O.FOLDER && !at && ee.push({
4462
+ onClick: () => En([N])
4463
+ }), r.actionLabels[w.AddChild] && N.nodeType === O.FOLDER && !at && ee.push({
4471
4464
  key: "addChild",
4472
4465
  label: r.actionLabels[w.AddChild],
4473
4466
  icon: /* @__PURE__ */ o(
4474
- ba,
4467
+ xa,
4475
4468
  {
4476
4469
  width: M.size,
4477
4470
  height: M.size,
4478
4471
  className: "text-secondary"
4479
4472
  }
4480
4473
  ),
4481
- onClick: () => En([x])
4474
+ onClick: () => Sn([N])
4482
4475
  }), r.actionLabels[w.Duplicate] && !Re && !at && ie.push({
4483
4476
  key: "duplicate",
4484
4477
  label: r.actionLabels[w.Duplicate],
4485
4478
  icon: /* @__PURE__ */ o(Ao, { ...M, className: "text-secondary" }),
4486
- onClick: () => W([x])
4479
+ onClick: () => W([N])
4487
4480
  }), r.actionLabels[w.Copy] && !Re && !at && ie.push({
4488
4481
  key: ge.Copy,
4489
4482
  label: r.actionLabels[w.Copy],
4490
4483
  icon: /* @__PURE__ */ o(
4491
- Wo,
4484
+ Bo,
4492
4485
  {
4493
4486
  width: M.size,
4494
4487
  height: M.size,
@@ -4496,13 +4489,13 @@ const li = () => {
4496
4489
  }
4497
4490
  ),
4498
4491
  onClick: () => {
4499
- Te([x]), fe(ge.Copy);
4492
+ Te([N]), fe(ge.Copy);
4500
4493
  }
4501
4494
  }), r.actionLabels[w.Move] && !Re && !at && ie.push({
4502
4495
  key: ge.Move,
4503
4496
  label: r.actionLabels[w.Move],
4504
4497
  icon: /* @__PURE__ */ o(
4505
- Ho,
4498
+ Wo,
4506
4499
  {
4507
4500
  width: M.size,
4508
4501
  height: M.size,
@@ -4510,14 +4503,14 @@ const li = () => {
4510
4503
  }
4511
4504
  ),
4512
4505
  onClick: () => {
4513
- xe([x]), fe(ge.Move);
4506
+ Ne([N]), fe(ge.Move);
4514
4507
  }
4515
4508
  }), r.actionLabels[w.Download] && !Re && !at && ie.push({
4516
4509
  key: "download",
4517
4510
  label: r.actionLabels[w.Download],
4518
4511
  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({
4512
+ onClick: () => Oe([N])
4513
+ }), r.actionLabels[w.ManagePermissions] && typeof yt == "function" && N.nodeType === O.FOLDER && !Re && ie.push({
4521
4514
  key: w.ManagePermissions,
4522
4515
  label: r.actionLabels[w.ManagePermissions],
4523
4516
  icon: /* @__PURE__ */ o(
@@ -4527,36 +4520,36 @@ const li = () => {
4527
4520
  className: "text-secondary"
4528
4521
  }
4529
4522
  ),
4530
- onClick: () => yt?.(x.path)
4531
- }), r.actionLabels[w.Delete] && x.permissions?.includes(Et.WRITE) && !Re && ie.push({
4523
+ onClick: () => yt?.(N.path)
4524
+ }), r.actionLabels[w.Delete] && N.permissions?.includes(St.WRITE) && !Re && ie.push({
4532
4525
  key: "delete",
4533
4526
  label: r.actionLabels[w.Delete],
4534
4527
  icon: /* @__PURE__ */ o(Po, { ...M, className: "text-secondary" }),
4535
- onClick: () => Se([x], x.parentPath ?? "")
4528
+ onClick: () => Se([N], N.parentPath ?? "")
4536
4529
  }), r.actionLabels[w.Rename] && !Re && ie.push({
4537
4530
  key: "rename",
4538
4531
  label: r.actionLabels[w.Rename],
4539
4532
  icon: /* @__PURE__ */ o(
4540
- ma,
4533
+ fa,
4541
4534
  {
4542
4535
  ...M,
4543
4536
  className: "text-secondary"
4544
4537
  }
4545
4538
  ),
4546
- onClick: () => Rn(x.path)
4547
- }), r.actionLabels[w.Unshare] && vt?.includes(x.path) && !Re && ie.push({
4539
+ onClick: () => In(N.path)
4540
+ }), r.actionLabels[w.Unshare] && vt?.includes(N.path) && !Re && ie.push({
4548
4541
  key: "unshare",
4549
4542
  label: r.actionLabels[w.Unshare],
4550
4543
  icon: /* @__PURE__ */ o(
4551
- Uo,
4544
+ Ho,
4552
4545
  {
4553
4546
  width: M.size,
4554
4547
  height: M.size,
4555
4548
  className: "text-secondary"
4556
4549
  }
4557
4550
  ),
4558
- onClick: () => et?.([x])
4559
- }), r.actionLabels[w.RemoveAccess] && b?.has(x.path) && !Re && ie.push({
4551
+ onClick: () => et?.([N])
4552
+ }), r.actionLabels[w.RemoveAccess] && b?.has(N.path) && !Re && ie.push({
4560
4553
  key: w.RemoveAccess,
4561
4554
  label: r.actionLabels[w.RemoveAccess],
4562
4555
  icon: /* @__PURE__ */ o(
@@ -4566,10 +4559,10 @@ const li = () => {
4566
4559
  className: "text-secondary"
4567
4560
  }
4568
4561
  ),
4569
- onClick: () => gt?.([x])
4562
+ onClick: () => gt?.([N])
4570
4563
  })), ee.length ? ie.length === 0 ? ee : ee.length === 0 ? ie : [
4571
4564
  ...ee,
4572
- { key: "divider", type: Na.Divider },
4565
+ { key: "divider", type: Da.Divider },
4573
4566
  ...ie
4574
4567
  ] : ie;
4575
4568
  },
@@ -4580,34 +4573,34 @@ const li = () => {
4580
4573
  W,
4581
4574
  Te,
4582
4575
  fe,
4583
- xe,
4576
+ Ne,
4584
4577
  Oe,
4585
- Rn,
4578
+ In,
4586
4579
  et,
4587
4580
  gt,
4588
4581
  vt,
4589
4582
  b,
4590
4583
  Se,
4591
- En,
4592
- Fn
4584
+ Sn,
4585
+ En
4593
4586
  ]
4594
- ), Mn = $(() => {
4595
- const x = /* @__PURE__ */ new Set();
4596
- return _.forEach((ee, ie) => x.add(ie)), x;
4597
- }, [_]), Ht = d(
4598
- (x, ee) => {
4599
- P(x), j?.(ee);
4587
+ ), kn = $(() => {
4588
+ const N = /* @__PURE__ */ new Set();
4589
+ return _.forEach((ee, ie) => N.add(ie)), N;
4590
+ }, [_]), Ut = d(
4591
+ (N, ee) => {
4592
+ P(N), j?.(ee);
4600
4593
  },
4601
4594
  [j, P]
4602
- ), kn = ti({
4595
+ ), On = ti({
4603
4596
  selectedFiles: _,
4604
4597
  actionLabels: c?.actionLabels,
4605
4598
  onDuplicate: W,
4606
- onCopy: (x) => {
4607
- Te(x), fe(ge.Copy);
4599
+ onCopy: (N) => {
4600
+ Te(N), fe(ge.Copy);
4608
4601
  },
4609
- onMove: (x) => {
4610
- xe(x), fe(ge.Move);
4602
+ onMove: (N) => {
4603
+ Ne(N), fe(ge.Move);
4611
4604
  },
4612
4605
  onDownload: Oe,
4613
4606
  onDelete: Se,
@@ -4618,15 +4611,15 @@ const li = () => {
4618
4611
  sharedByMePaths: b,
4619
4612
  onClearSelection: U,
4620
4613
  forbiddenSymbolsRegExp: He
4621
- }), Ut = d(
4622
- (x) => {
4623
- C?.onTabChange?.(x), Qe();
4614
+ }), Gt = d(
4615
+ (N) => {
4616
+ C?.onTabChange?.(N), Qe();
4624
4617
  },
4625
4618
  [C, Qe]
4626
4619
  ), yo = d(() => C && A.size === 0 ? /* @__PURE__ */ X(
4627
4620
  "div",
4628
4621
  {
4629
- className: ra,
4622
+ className: aa,
4630
4623
  role: "toolbar",
4631
4624
  "aria-label": "File Manager Toolbar",
4632
4625
  children: [
@@ -4635,12 +4628,12 @@ const li = () => {
4635
4628
  js,
4636
4629
  {
4637
4630
  ...C,
4638
- onTabChange: Ut,
4631
+ onTabChange: Gt,
4639
4632
  areHiddenFilesVisible: f,
4640
4633
  onToggleHiddenFiles: T,
4641
- isNewButtonVisible: un,
4642
- isNewButtonDisabled: hn,
4643
- newButtonDropdownItems: dn
4634
+ isNewButtonVisible: hn,
4635
+ isNewButtonDisabled: pn,
4636
+ newButtonDropdownItems: un
4644
4637
  }
4645
4638
  )
4646
4639
  ]
@@ -4648,7 +4641,7 @@ const li = () => {
4648
4641
  ) : A.size > 0 && c ? /* @__PURE__ */ o(
4649
4642
  "div",
4650
4643
  {
4651
- className: ra,
4644
+ className: aa,
4652
4645
  role: "toolbar",
4653
4646
  "aria-label": "File Manager Toolbar",
4654
4647
  children: /* @__PURE__ */ o(
@@ -4657,25 +4650,25 @@ const li = () => {
4657
4650
  ...c,
4658
4651
  selectedCount: A.size,
4659
4652
  onClearSelection: U,
4660
- actions: kn
4653
+ actions: On
4661
4654
  }
4662
4655
  )
4663
4656
  }
4664
4657
  ) : null, [
4665
- Ut,
4658
+ Gt,
4666
4659
  c,
4667
4660
  A,
4668
4661
  U,
4669
- kn,
4662
+ On,
4670
4663
  f,
4671
4664
  T,
4672
4665
  C,
4673
- un,
4674
4666
  hn,
4675
- dn,
4667
+ pn,
4668
+ un,
4676
4669
  e
4677
4670
  ]);
4678
- Cr(
4671
+ mr(
4679
4672
  to,
4680
4673
  () => ({
4681
4674
  createFolder: je
@@ -4691,27 +4684,27 @@ const li = () => {
4691
4684
  children: /* @__PURE__ */ o(
4692
4685
  zr,
4693
4686
  {
4694
- defaultWidth: xt,
4695
- width: xt,
4696
- onResizeStop: Tn,
4687
+ defaultWidth: Nt,
4688
+ width: Nt,
4689
+ onResizeStop: Rn,
4697
4690
  onResize: ho,
4698
4691
  minWidth: qr,
4699
4692
  maxWidth: Yr,
4700
- enabled: !N,
4693
+ enabled: !x,
4701
4694
  children: /* @__PURE__ */ o(
4702
4695
  _r,
4703
4696
  {
4704
- width: xt,
4697
+ width: Nt,
4705
4698
  title: Me,
4706
- containerClassName: Dn,
4699
+ containerClassName: xn,
4707
4700
  titleClassName: "dial-body-text text-primary",
4708
- additionalButtons: Nn,
4709
- isOpened: !N,
4701
+ additionalButtons: bn,
4702
+ isOpened: !x,
4710
4703
  onToggle: F,
4711
4704
  children: /* @__PURE__ */ o(
4712
4705
  ei,
4713
4706
  {
4714
- ...bn,
4707
+ ...Tn,
4715
4708
  items: s,
4716
4709
  rootItemPath: a?.path,
4717
4710
  rootItemLabel: a?.label,
@@ -4719,14 +4712,14 @@ const li = () => {
4719
4712
  sharedByMePaths: b,
4720
4713
  forbiddenSymbolsRegExp: He,
4721
4714
  forbiddenSymbolsTooltip: pt,
4722
- onItemClick: Y,
4715
+ onItemClick: q,
4723
4716
  areHiddenFilesVisible: f,
4724
- getContextMenuItems: Wt,
4717
+ getContextMenuItems: Ht,
4725
4718
  renamedPath: nt === Rt.Tree ? Z : void 0,
4726
4719
  onRenameSave: Pe,
4727
4720
  onRenameCancel: ae,
4728
4721
  onRenameValidate: Ve,
4729
- createdFolderPath: In === ut.Tree ? $e : null,
4722
+ createdFolderPath: Fn === ut.Tree ? $e : null,
4730
4723
  onCreateFolderCancel: Qe,
4731
4724
  onCreateFolderSave: Ct,
4732
4725
  newFolderDefaultName: re
@@ -4739,13 +4732,13 @@ const li = () => {
4739
4732
  }
4740
4733
  ), [
4741
4734
  ze,
4742
- xt,
4743
- N,
4735
+ Nt,
4736
+ x,
4744
4737
  Me,
4745
- Dn,
4746
- Nn,
4747
- F,
4738
+ xn,
4748
4739
  bn,
4740
+ F,
4741
+ Tn,
4749
4742
  s,
4750
4743
  a?.path,
4751
4744
  a?.label,
@@ -4753,11 +4746,11 @@ const li = () => {
4753
4746
  b,
4754
4747
  He,
4755
4748
  pt,
4756
- Y,
4749
+ q,
4757
4750
  f,
4758
- Wt,
4751
+ Ht,
4759
4752
  nt,
4760
- In,
4753
+ Fn,
4761
4754
  Z,
4762
4755
  Pe,
4763
4756
  ae,
@@ -4766,47 +4759,47 @@ const li = () => {
4766
4759
  Qe,
4767
4760
  Ct,
4768
4761
  re
4769
- ]), On = ci({
4762
+ ]), Ln = ci({
4770
4763
  actionLabels: p?.actionLabels,
4771
- onDuplicate: (x) => W([x]),
4772
- onCopy: (x) => {
4773
- Te([x]), fe(ge.Copy);
4764
+ onDuplicate: (N) => W([N]),
4765
+ onCopy: (N) => {
4766
+ Te([N]), fe(ge.Copy);
4774
4767
  },
4775
- onMove: (x) => {
4776
- xe([x]), fe(ge.Move);
4768
+ onMove: (N) => {
4769
+ Ne([N]), fe(ge.Move);
4777
4770
  },
4778
- onDownload: (x) => Oe([x]),
4771
+ onDownload: (N) => Oe([N]),
4779
4772
  onRename: lo,
4780
- onDelete: (x, ee) => Se([x], ee),
4781
- onInfo: (x) => de(x),
4782
- onUnshare: (x) => et?.([x]),
4783
- onRemoveAccess: (x) => gt?.([x]),
4773
+ onDelete: (N, ee) => Se([N], ee),
4774
+ onInfo: (N) => de(N),
4775
+ onUnshare: (N) => et?.([N]),
4776
+ onRemoveAccess: (N) => gt?.([N]),
4784
4777
  sharedWithMeIds: vt,
4785
4778
  sharedByMePaths: b,
4786
- onManagePermissions: (x) => yt?.(x),
4787
- onPreview: (x) => oo?.(x),
4788
- onOpenInNewTab: (x) => ao?.(x),
4779
+ onManagePermissions: (N) => yt?.(N),
4780
+ onPreview: (N) => oo?.(N),
4781
+ onOpenInNewTab: (N) => ao?.(N),
4789
4782
  previewExtensions: ro,
4790
4783
  isRenameFileAvailable: so,
4791
4784
  isDuplicateFolderAvailable: io,
4792
4785
  forbiddenSymbolsRegExp: He,
4793
4786
  onGridCreateSiblingFolder: co,
4794
4787
  onGridCreateChildFolder: uo
4795
- }), Gt = d(
4796
- (x) => {
4797
- const ee = Ke(s, x.path);
4798
- return ee ? On(ee) : [];
4788
+ }), Vt = d(
4789
+ (N) => {
4790
+ const ee = Ke(s, N.path);
4791
+ return ee ? Ln(ee) : [];
4799
4792
  },
4800
- [s, On]
4801
- ), xo = d(
4802
- (x, ee, ie) => Dt ? !1 : Nt(x, ee, ie),
4803
- [Dt, Nt]
4793
+ [s, Ln]
4794
+ ), No = d(
4795
+ (N, ee, ie) => Dt ? !1 : xt(N, ee, ie),
4796
+ [Dt, xt]
4804
4797
  ), { actionsColumnDef: Do } = es({
4805
- getContextMenuItems: Gt,
4806
- isRowDisabled: xo,
4798
+ getContextMenuItems: Vt,
4799
+ isRowDisabled: No,
4807
4800
  allowedFileTypes: D,
4808
4801
  buttonClassName: ze ? "" : $r
4809
- }), { columnDefs: Vt } = ii({
4802
+ }), { columnDefs: $t } = ii({
4810
4803
  userColumnDefs: po,
4811
4804
  filterable: fo,
4812
4805
  dateLocale: mo,
@@ -4817,24 +4810,24 @@ const li = () => {
4817
4810
  actionsColumnDef: Do,
4818
4811
  rootItemLabel: a?.label,
4819
4812
  rootItemPath: a?.path
4820
- }), Ln = d(
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);
4813
+ }), zn = d(
4814
+ (N) => {
4815
+ N.colDef.colId === "ag-Grid-SelectionColumn" || N.colDef.colId === ye.Actions || Z && N.data?.path === Z || N.data?.isTemporary || zt && zt.includes(
4816
+ N.colDef.colId
4817
+ ) || N.data && J(N.data);
4825
4818
  },
4826
- [Z, J, Lt]
4819
+ [Z, J, zt]
4827
4820
  ), dt = d(
4828
4821
  () => /* @__PURE__ */ o(
4829
- xa,
4822
+ wa,
4830
4823
  {
4831
- title: vn,
4832
- description: yn,
4824
+ title: yn,
4825
+ description: wn,
4833
4826
  descriptionClassName: "text-sm",
4834
4827
  containerClassName: "gap-3 size-full bg-layer-sunken border rounded-[4px] border-primary",
4835
4828
  titleClassName: "mt-2 !text-lg",
4836
4829
  icon: lt || /* @__PURE__ */ o(
4837
- hr,
4830
+ ur,
4838
4831
  {
4839
4832
  size: 100,
4840
4833
  stroke: 0.5,
@@ -4843,20 +4836,20 @@ const li = () => {
4843
4836
  )
4844
4837
  }
4845
4838
  ),
4846
- [yn, lt, vn]
4847
- ), zn = $(() => (x) => x.path, []), _n = $(
4848
- () => on(
4839
+ [wn, lt, yn]
4840
+ ), _n = $(() => (N) => N.path, []), Bn = $(
4841
+ () => an(
4849
4842
  "min-h-[248px] overflow-auto md:min-h-[266px]",
4850
4843
  st ? "border border-dashed border-info" : "",
4851
4844
  ft && !st ? "border border-dashed border-primary" : ""
4852
4845
  ),
4853
4846
  [st, ft]
4854
- ), Bn = $(
4847
+ ), Wn = $(
4855
4848
  () => ({
4856
4849
  ...ot.additionalGridOptions,
4857
- onCellClicked: Ln,
4858
- headerHeight: ia,
4859
- rowHeight: ia,
4850
+ onCellClicked: zn,
4851
+ headerHeight: sa,
4852
+ rowHeight: sa,
4860
4853
  rowClass: "group/grid-row",
4861
4854
  defaultColDef: {
4862
4855
  ...ot.additionalGridOptions?.defaultColDef,
@@ -4865,69 +4858,69 @@ const li = () => {
4865
4858
  context: {
4866
4859
  cancelFolderCreation: Qe,
4867
4860
  saveFolderCreation: Ct,
4868
- getDisplayName: ln,
4861
+ getDisplayName: cn,
4869
4862
  onRenameCancel: ae,
4870
4863
  onRenameSave: Pe,
4871
4864
  onRenameValidate: Ve,
4872
4865
  renameTriggerView: nt,
4873
- validateFolderName: fn,
4866
+ validateFolderName: mn,
4874
4867
  renamedItem: me,
4875
4868
  renamedPath: Z,
4876
4869
  createdFolderPath: $e,
4877
- newFolderTempId: pn,
4870
+ newFolderTempId: fn,
4878
4871
  sharedByMePaths: b,
4879
4872
  selectedPaths: A,
4880
4873
  disabledRowIds: ct,
4881
4874
  forbiddenSymbolsRegExp: He,
4882
4875
  forbiddenSymbolsTooltip: pt,
4883
- hideSearchPathItemName: zt,
4876
+ hideSearchPathItemName: _t,
4884
4877
  newFolderDefaultName: re,
4885
4878
  filesLoading: n
4886
4879
  }
4887
4880
  }),
4888
4881
  [
4889
4882
  ot.additionalGridOptions,
4890
- Ln,
4883
+ zn,
4891
4884
  i?.searchable,
4892
4885
  Qe,
4893
4886
  Ct,
4894
- ln,
4887
+ cn,
4895
4888
  ae,
4896
4889
  Pe,
4897
4890
  Ve,
4898
4891
  nt,
4899
- fn,
4892
+ mn,
4900
4893
  me,
4901
4894
  Z,
4902
4895
  $e,
4903
- pn,
4896
+ fn,
4904
4897
  b,
4905
4898
  A,
4906
4899
  ct,
4907
4900
  He,
4908
4901
  pt,
4909
- zt,
4902
+ _t,
4910
4903
  re,
4911
4904
  n
4912
4905
  ]
4913
- ), No = $(
4906
+ ), xo = $(
4914
4907
  () => S.length === 0 && !tt && !n ? dt() : /* @__PURE__ */ o(
4915
- ga,
4908
+ Ca,
4916
4909
  {
4917
- columnDefs: Vt,
4910
+ columnDefs: $t,
4918
4911
  rowData: S,
4919
- getRowId: zn,
4920
- loading: n || gn,
4921
- getContextMenuItems: Gt,
4912
+ getRowId: _n,
4913
+ loading: n || vn,
4914
+ getContextMenuItems: Vt,
4922
4915
  withoutHeaderBorders: ze,
4923
4916
  onGridApiChange: te,
4924
- className: _n,
4917
+ className: Bn,
4925
4918
  ...ot,
4926
- selectionMode: Sn,
4927
- wrapCustomCellRenderers: An,
4928
- additionalGridOptions: Bn,
4929
- selectedRowIds: Mn,
4930
- onSelectionChange: Ht,
4919
+ selectionMode: An,
4920
+ wrapCustomCellRenderers: Pn,
4921
+ additionalGridOptions: Wn,
4922
+ selectedRowIds: kn,
4923
+ onSelectionChange: Ut,
4931
4924
  wrapperBorder: !st && !ft,
4932
4925
  disabledRowIds: ct,
4933
4926
  allowDisabledContextMenu: Dt
@@ -4938,19 +4931,19 @@ const li = () => {
4938
4931
  tt,
4939
4932
  n,
4940
4933
  dt,
4934
+ $t,
4935
+ _n,
4936
+ vn,
4941
4937
  Vt,
4942
- zn,
4943
- gn,
4944
- Gt,
4945
4938
  ze,
4946
4939
  te,
4947
- _n,
4940
+ Bn,
4948
4941
  ot,
4949
- Sn,
4950
4942
  An,
4951
- Bn,
4952
- Mn,
4953
- Ht,
4943
+ Pn,
4944
+ Wn,
4945
+ kn,
4946
+ Ut,
4954
4947
  st,
4955
4948
  ft,
4956
4949
  ct,
@@ -4971,7 +4964,7 @@ const li = () => {
4971
4964
  ),
4972
4965
  children: [
4973
4966
  yo(),
4974
- /* @__PURE__ */ X("div", { className: Ee(Hr, Ot), children: [
4967
+ /* @__PURE__ */ X("div", { className: Ee(Hr, Lt), children: [
4975
4968
  wo(),
4976
4969
  /* @__PURE__ */ X(
4977
4970
  "div",
@@ -4984,7 +4977,7 @@ const li = () => {
4984
4977
  $s,
4985
4978
  {
4986
4979
  ...i ?? {},
4987
- makeHref: (x) => x.join("/"),
4980
+ makeHref: (N) => N.join("/"),
4988
4981
  path: I,
4989
4982
  onItemClick: B,
4990
4983
  rootItemPath: a?.path,
@@ -5006,14 +4999,14 @@ const li = () => {
5006
4999
  onDragOver: qn,
5007
5000
  onDrop: mt,
5008
5001
  children: [
5009
- No,
5002
+ xo,
5010
5003
  /* @__PURE__ */ o(
5011
5004
  Os,
5012
5005
  {
5013
5006
  disabledGridRowIds: ct,
5014
5007
  gridRows: S,
5015
- getDisabledTooltip: kt,
5016
- getRowDisabledTooltip: Bt,
5008
+ getDisabledTooltip: Ot,
5009
+ getRowDisabledTooltip: Wt,
5017
5010
  allowedFileTypes: D,
5018
5011
  maxSelectableFileSize: h
5019
5012
  }
@@ -5039,50 +5032,50 @@ const li = () => {
5039
5032
  Ls,
5040
5033
  {
5041
5034
  ...u,
5042
- open: Ne,
5035
+ open: xe,
5043
5036
  onClose: we,
5044
5037
  onConfirm: () => {
5045
- const x = u?.destinationFolderPath ?? "/";
5046
- ue === ge.Copy ? be(x) : De(x), we();
5038
+ const N = u?.destinationFolderPath ?? "/";
5039
+ ue === ge.Copy ? be(N) : De(N), we();
5047
5040
  },
5048
5041
  mode: ue,
5049
5042
  items: s,
5050
5043
  rootItem: a,
5051
5044
  gridOptions: {
5052
- columnDefs: Vt.filter(
5053
- (x) => x.colId !== ye.Actions
5045
+ columnDefs: $t.filter(
5046
+ (N) => N.colId !== ye.Actions
5054
5047
  ),
5055
5048
  loading: n
5056
5049
  },
5057
- onUploadFiles: cn,
5058
- onValidateUpload: St,
5050
+ onUploadFiles: dn,
5051
+ onValidateUpload: At,
5059
5052
  maxFileSize: Yn,
5060
5053
  path: u?.destinationFolderPath ?? u?.sourceFolder ?? I,
5061
- onPathChange: (x) => {
5062
- u?.setDestinationFolderPath?.(x);
5054
+ onPathChange: (N) => {
5055
+ u?.setDestinationFolderPath?.(N);
5063
5056
  },
5064
5057
  sourceFolder: u?.sourceFolder ?? I,
5065
5058
  treeOptions: { header: r?.header },
5066
5059
  onFolderPopupPathChange: no,
5067
5060
  showHiddenFileSwitcher: le,
5068
- showCreateFolderButton: xn,
5069
- hideSearchPathItemName: zt
5061
+ showCreateFolderButton: Dn,
5062
+ hideSearchPathItemName: _t
5070
5063
  }
5071
5064
  ),
5072
5065
  /* @__PURE__ */ o(
5073
- la,
5066
+ ia,
5074
5067
  {
5075
5068
  ...y,
5076
- open: At,
5069
+ open: Pt,
5077
5070
  onClose: Xe,
5078
- onReplace: mn,
5071
+ onReplace: Cn,
5079
5072
  onDuplicate: Ze,
5080
5073
  onDecideForEach: it,
5081
5074
  conflictingFiles: ve
5082
5075
  }
5083
5076
  ),
5084
5077
  /* @__PURE__ */ o(
5085
- la,
5078
+ ia,
5086
5079
  {
5087
5080
  ...y,
5088
5081
  open: Je,
@@ -5090,15 +5083,15 @@ const li = () => {
5090
5083
  onReplace: Kn,
5091
5084
  onDuplicate: Qn,
5092
5085
  onDecideForEach: eo,
5093
- conflictingFiles: Cn
5086
+ conflictingFiles: gn
5094
5087
  }
5095
5088
  ),
5096
5089
  /* @__PURE__ */ o(
5097
5090
  qs,
5098
5091
  {
5099
5092
  open: qe,
5100
- onClose: Mt,
5101
- fileMetadata: Fe?.fileMetadata ?? Pt,
5093
+ onClose: kt,
5094
+ fileMetadata: Fe?.fileMetadata ?? Mt,
5102
5095
  loading: Fe?.loading,
5103
5096
  header: Fe?.header,
5104
5097
  nameLabel: Fe?.nameLabel,
@@ -5113,14 +5106,14 @@ const li = () => {
5113
5106
  ]
5114
5107
  }
5115
5108
  ) });
5116
- }, wi = (e, t = tn.MyFiles) => {
5117
- const s = Object.values(tn).includes(
5109
+ }, wi = (e, t = nn.MyFiles) => {
5110
+ const s = Object.values(nn).includes(
5118
5111
  t
5119
- ) ? t : tn.MyFiles, [a, n] = z(s), r = (i) => {
5112
+ ) ? t : nn.MyFiles, [a, n] = z(s), r = (i) => {
5120
5113
  n(i);
5121
5114
  }, l = $(() => {
5122
5115
  if (e)
5123
- return Object.values(tn).map((i) => ({
5116
+ return Object.values(nn).map((i) => ({
5124
5117
  id: i,
5125
5118
  label: e?.[i] || i.replace("_", " ")
5126
5119
  }));
@@ -5138,9 +5131,9 @@ export {
5138
5131
  w as DialFileManagerActions,
5139
5132
  Ce as DialFileManagerConflictActions,
5140
5133
  ke as DialFileManagerConflictStrategies,
5141
- tn as DialFileManagerTabs,
5134
+ nn as DialFileManagerTabs,
5142
5135
  O as DialFileNodeType,
5143
- Et as DialFilePermission,
5136
+ St as DialFilePermission,
5144
5137
  Jr as DialFileResourceType,
5145
5138
  ei as DialFoldersTree,
5146
5139
  ye as FileManagerColumnKey,