@epam/ai-dial-react-file-manager 0.3.0-dev.15 → 0.3.0-dev.16

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,23 +1,23 @@
1
1
  import { jsx as a, jsxs as K, Fragment as ke } from "react/jsx-runtime";
2
- import { IconCircleFilled as Jn, IconDotsVertical as yn, IconFolder as as, IconPlus as ss, IconFile as rs, IconFileZip as is, IconFolderPlus as ya, IconEye as ea, IconX as ls, IconArrowsSort as cs, IconEyeOff as ds, IconAlertCircleFilled as hs, IconAlertTriangleFilled as us, IconCaretRightFilled as ps, IconDownload as ta, IconCopy as na, IconUserX as oa, IconTrashX as aa, IconExternalLink as qo, IconPencilMinus as Ma, IconInfoCircle as fs } from "@tabler/icons-react";
2
+ import { IconCircleFilled as Jn, IconDotsVertical as yn, IconFolder as ss, IconPlus as rs, IconFile as is, IconFileZip as ls, IconFolderPlus as ya, IconEye as ea, IconX as cs, IconArrowsSort as ds, IconEyeOff as hs, IconAlertCircleFilled as us, IconAlertTriangleFilled as ps, IconCaretRightFilled as fs, IconDownload as ta, IconCopy as na, IconUserX as oa, IconTrashX as aa, IconExternalLink as qo, IconPencilMinus as La, IconInfoCircle as ms } from "@tabler/icons-react";
3
3
  import * as qe from "react";
4
- import { useState as L, useMemo as U, useCallback as d, useRef as Ce, useEffect as Ne, createContext as ms, useLayoutEffect as Cs, useContext as gs, useId as vs, useImperativeHandle as ws } from "react";
5
- import { DIAL_KIT_ICON_STROKE as ys, BASE_ICON_SIZE as sa, FolderName as La, FileName as ra, Dropdown as Dt, DropdownTrigger as _a, InlineSelectTrigger as Ns, ElementSize as Nn, Grid as za, Popup as ia, PopupSize as eo, RadioGroup as Na, NeutralButton as Ba, PrimaryButton as zt, mergeClasses as Te, GhostIconButton as Ut, baseColumnComparator as la, NotificationVariant as Yo, NOT_ALLOWED_SYMBOLS_REGEXP as bs, TooltipContainer as Ds, TooltipPlacement as Ts, TooltipTrigger as Rs, TooltipContent as xs, Notification as Is, ButtonAppearance as to, Switch as Ha, Tooltip as no, FlexibleActionsDirection as gn, DangerButton as ba, ConfirmationPopup as Fs, ConfirmationPopupVariant as Es, Breadcrumbs as Ss, BreadcrumbsSize as As, Search as Ps, DropdownItemType as ca, MenuItemMark as Da, ButtonDropdown as Qo, ButtonVariant as Wa, DIAL_ICON_SIZE as ks, Skeleton as hn, SkeletonVariant as un, EllipsisTooltip as _t, editableContainerProps as Os, FileIcon as Ms, Input as Ls, useEditableItem as _s, DialItemType as ht, NoDataContent as Jo, DateCellRenderer as Ua, convertToDate as zs, DEFAULT_DATE_LOCALE as Bs, DEFAULT_DATE_FORMAT_OPTIONS as Hs, FilterChips as Ws, GRID_SELECTION_COLUMN_ID as Us } from "@epam/ai-dial-ui-kit";
4
+ import { useState as L, useMemo as U, useCallback as d, useRef as Ce, useEffect as Ne, createContext as Cs, useLayoutEffect as gs, useContext as vs, useId as ws, useImperativeHandle as ys } from "react";
5
+ import { DIAL_KIT_ICON_STROKE as Ns, BASE_ICON_SIZE as sa, FolderName as _a, FileName as ra, Dropdown as Dt, DropdownTrigger as za, InlineSelectTrigger as bs, ElementSize as Nn, Grid as Ba, Popup as ia, PopupSize as eo, RadioGroup as Na, NeutralButton as Wa, PrimaryButton as zt, mergeClasses as Te, GhostIconButton as Ut, baseColumnComparator as la, NotificationVariant as Yo, NOT_ALLOWED_SYMBOLS_REGEXP as Ds, TooltipContainer as Ts, TooltipPlacement as Rs, TooltipTrigger as xs, TooltipContent as Is, Notification as Fs, ButtonAppearance as to, Switch as Ha, Tooltip as no, FlexibleActionsDirection as gn, DangerButton as ba, ConfirmationPopup as Ss, ConfirmationPopupVariant as Es, Breadcrumbs as As, BreadcrumbsSize as Ps, Search as ks, DropdownItemType as ca, MenuItemMark as Da, ButtonDropdown as Qo, ButtonVariant as Ua, DIAL_ICON_SIZE as Os, Skeleton as hn, SkeletonVariant as un, EllipsisTooltip as _t, editableContainerProps as Ms, FileIcon as Ls, Input as _s, useEditableItem as zs, DialItemType as ht, NoDataContent as Jo, DateCellRenderer as Ga, convertToDate as Bs, DEFAULT_DATE_LOCALE as Ws, DEFAULT_DATE_FORMAT_OPTIONS as Hs, FilterChips as Us, GRID_SELECTION_COLUMN_ID as Gs } from "@epam/ai-dial-ui-kit";
6
6
  import { extensions as Ta } from "mime-types";
7
- import { createPortal as Gs } from "react-dom";
8
- const Ga = (e) => /* @__PURE__ */ qe.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ qe.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" })), Va = (e) => /* @__PURE__ */ qe.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ qe.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" })), da = (e) => /* @__PURE__ */ qe.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ qe.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" })), ha = (e) => /* @__PURE__ */ qe.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ qe.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" })), ua = (e) => /* @__PURE__ */ qe.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ qe.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" })), $a = ys, A = {
7
+ import { createPortal as Vs } from "react-dom";
8
+ const Va = (e) => /* @__PURE__ */ qe.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ qe.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" })), $a = (e) => /* @__PURE__ */ qe.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ qe.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" })), da = (e) => /* @__PURE__ */ qe.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ qe.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" })), ha = (e) => /* @__PURE__ */ qe.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ qe.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" })), ua = (e) => /* @__PURE__ */ qe.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ qe.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" })), ja = Ns, A = {
9
9
  size: sa,
10
- stroke: $a
10
+ stroke: ja
11
11
  };
12
- var vn = /* @__PURE__ */ ((e) => (e.All = "all", e.MyFiles = "my_files", e.Shared = "shared", e.Organization = "organization", e.Review = "review", e))(vn || {}), y = /* @__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))(y || {}), we = /* @__PURE__ */ ((e) => (e.Replace = "replace", e.Duplicate = "duplicate", e.Cancel = "cancel", e))(we || {}), Be = /* @__PURE__ */ ((e) => (e.ReplaceAll = "replaceAll", e.DuplicateAll = "duplicateAll", e.DecideForEach = "decideForEach", e))(Be || {}), De = /* @__PURE__ */ ((e) => (e.Copy = "copy", e.Move = "move", e))(De || {}), Bt = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(Bt || {}), bt = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(bt || {}), Ge = /* @__PURE__ */ ((e) => (e.Folder = "folder", e.Child = "child", e.Sibling = "sibling", e))(Ge || {}), Ee = /* @__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))(Ee || {}), ot = /* @__PURE__ */ ((e) => (e.Name = "name", e.UpdatedAt = "updatedAt", e.Size = "size", e))(ot || {}), Gt = /* @__PURE__ */ ((e) => (e.Asc = "asc", e.Desc = "desc", e))(Gt || {});
13
- const Vs = "w-full h-full grid grid-rows-[minmax(0,1fr)] overflow-hidden min-w-0", $s = "text-secondary flex items-center gap-2", js = "flex min-h-0 min-w-0 h-full gap-4 overflow-hidden", Zs = "flex flex-col flex-1 min-h-0 min-w-0 h-full px-5 gap-5 pb-4", Ks = "flex w-full shrink-0 items-center justify-between gap-4 h-[64px]", Xs = "min-h-0 min-w-[360px] h-full bg-layer-raised shadow-sm", qs = "flex h-full min-h-0 flex-col gap-3", Ys = "dial-h1-text text-primary", Qs = "px-4 h-[64px] flex items-center justify-between gap-2", Js = "min-h-0 flex-1 px-3", er = "File storage sections", tr = "flex flex-1 flex-col w-full min-h-0 min-w-0 gap-5", nr = "flex-1 w-full text-secondary overflow-auto min-h-0 min-w-0", or = "absolute bottom-4 left-4 right-4 z-10", ar = "opacity-0 pointer-events-none group-hover/grid-row:opacity-100 group-hover/grid-row:pointer-events-auto", sr = "Files", dt = 20, rr = "Files", Ko = ".dial_folder", Ra = "New folder", ir = "ag-Grid-SelectionColumn", xa = 44, lr = 800, cr = [
14
- Ee.Name,
15
- Ee.UpdatedAt,
16
- Ee.Size,
17
- Ee.Author,
18
- Ee.Actions
19
- ], dr = "flex w-full shrink-0 items-center gap-3";
20
- var O = /* @__PURE__ */ ((e) => (e.ITEM = "item", e.FOLDER = "folder", e))(O || {}), hr = /* @__PURE__ */ ((e) => (e.FILE = "FILE", e.PROMPT = "PROMPT", e.CONVERSATION = "CONVERSATION", e.APPLICATION = "APPLICATION", e.TOOLSET = "TOOL_SET", e))(hr || {}), Vt = /* @__PURE__ */ ((e) => (e.READ = "READ", e.WRITE = "WRITE", e.SHARE = "SHARE", e))(Vt || {});
12
+ var vn = /* @__PURE__ */ ((e) => (e.All = "all", e.MyFiles = "my_files", e.Shared = "shared", e.Organization = "organization", e.Review = "review", e))(vn || {}), y = /* @__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))(y || {}), we = /* @__PURE__ */ ((e) => (e.Replace = "replace", e.Duplicate = "duplicate", e.Cancel = "cancel", e))(we || {}), Be = /* @__PURE__ */ ((e) => (e.ReplaceAll = "replaceAll", e.DuplicateAll = "duplicateAll", e.DecideForEach = "decideForEach", e))(Be || {}), De = /* @__PURE__ */ ((e) => (e.Copy = "copy", e.Move = "move", e))(De || {}), Bt = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(Bt || {}), bt = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(bt || {}), Ge = /* @__PURE__ */ ((e) => (e.Folder = "folder", e.Child = "child", e.Sibling = "sibling", e))(Ge || {}), Se = /* @__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))(Se || {}), ot = /* @__PURE__ */ ((e) => (e.Name = "name", e.UpdatedAt = "updatedAt", e.Size = "size", e))(ot || {}), Gt = /* @__PURE__ */ ((e) => (e.Asc = "asc", e.Desc = "desc", e))(Gt || {});
13
+ const $s = "w-full h-full grid grid-rows-[minmax(0,1fr)] overflow-hidden min-w-0", js = "text-secondary flex items-center gap-2", Zs = "flex min-h-0 min-w-0 h-full gap-4 overflow-hidden", Ks = "flex flex-col flex-1 min-h-0 min-w-0 h-full px-5 gap-5 pb-4", Xs = "flex w-full shrink-0 items-center justify-between gap-4 h-[64px]", qs = "min-h-0 min-w-[360px] h-full bg-layer-raised shadow-sm", Ys = "flex h-full min-h-0 flex-col gap-3", Qs = "dial-h1-text text-primary", Js = "px-4 h-[64px] flex items-center justify-between gap-2", er = "min-h-0 flex-1 px-3", tr = "File storage sections", nr = "flex flex-1 flex-col w-full min-h-0 min-w-0 gap-5", or = "flex-1 w-full text-secondary overflow-auto min-h-0 min-w-0", ar = "absolute bottom-4 left-4 right-4 z-10", sr = "opacity-0 pointer-events-none group-hover/grid-row:opacity-100 group-hover/grid-row:pointer-events-auto", rr = "Files", dt = 20, ir = "Files", Ko = ".dial_folder", Ra = "New folder", lr = "ag-Grid-SelectionColumn", xa = 44, cr = 800, dr = [
14
+ Se.Name,
15
+ Se.UpdatedAt,
16
+ Se.Size,
17
+ Se.Author,
18
+ Se.Actions
19
+ ], hr = "flex w-full shrink-0 items-center gap-3";
20
+ var O = /* @__PURE__ */ ((e) => (e.ITEM = "item", e.FOLDER = "folder", e))(O || {}), ur = /* @__PURE__ */ ((e) => (e.FILE = "FILE", e.PROMPT = "PROMPT", e.CONVERSATION = "CONVERSATION", e.APPLICATION = "APPLICATION", e.TOOLSET = "TOOL_SET", e))(ur || {}), Vt = /* @__PURE__ */ ((e) => (e.READ = "READ", e.WRITE = "WRITE", e.SHARE = "SHARE", e))(Vt || {});
21
21
  const Ia = ({
22
22
  open: e,
23
23
  onClose: t,
@@ -35,9 +35,9 @@ const Ia = ({
35
35
  nameColumnLabel: N = "Name",
36
36
  actionColumnLabel: m = "Action"
37
37
  }) => {
38
- const C = r.length === 1, R = C ? r[0]?.name : "", b = g?.[we.Replace] ?? "Replace", f = g?.[we.Duplicate] ?? "Duplicate", u = g?.[we.Cancel] ?? "Cancel", E = c?.[Be.ReplaceAll] ?? "Replace all", v = c?.[Be.DuplicateAll] ?? "Duplicate all", T = c?.[Be.DecideForEach] ?? "Decide for each", [I, S] = L(
38
+ const C = r.length === 1, R = C ? r[0]?.name : "", b = g?.[we.Replace] ?? "Replace", f = g?.[we.Duplicate] ?? "Duplicate", u = g?.[we.Cancel] ?? "Cancel", S = c?.[Be.ReplaceAll] ?? "Replace all", v = c?.[Be.DuplicateAll] ?? "Duplicate all", T = c?.[Be.DecideForEach] ?? "Decide for each", [I, E] = L(
39
39
  we.Replace
40
- ), [W, G] = L(
40
+ ), [H, G] = L(
41
41
  Be.ReplaceAll
42
42
  ), [q, P] = L(
43
43
  new Map(
@@ -85,7 +85,7 @@ const Ia = ({
85
85
  filter: !1,
86
86
  resizable: !1,
87
87
  cellRenderer: (k) => k.data?.nodeType === O.FOLDER ? /* @__PURE__ */ a(
88
- La,
88
+ _a,
89
89
  {
90
90
  name: k.data.name,
91
91
  iconSize: dt
@@ -133,7 +133,7 @@ const Ia = ({
133
133
  return /* @__PURE__ */ a("div", { className: "flex items-center h-full", children: /* @__PURE__ */ a(
134
134
  Dt,
135
135
  {
136
- trigger: [_a.Click],
136
+ trigger: [za.Click],
137
137
  open: B,
138
138
  items: ae,
139
139
  onItemClick: ({ key: Q }) => {
@@ -152,7 +152,7 @@ const Ia = ({
152
152
  V(Q ? k.data.path : void 0);
153
153
  },
154
154
  children: /* @__PURE__ */ a(
155
- Ns,
155
+ bs,
156
156
  {
157
157
  size: Nn.Small,
158
158
  isOpen: B,
@@ -175,7 +175,7 @@ const Ia = ({
175
175
  () => [
176
176
  {
177
177
  value: Be.ReplaceAll,
178
- label: E
178
+ label: S
179
179
  },
180
180
  {
181
181
  value: Be.DuplicateAll,
@@ -185,7 +185,7 @@ const Ia = ({
185
185
  value: Be.DecideForEach,
186
186
  label: T,
187
187
  content: /* @__PURE__ */ a(
188
- za,
188
+ Ba,
189
189
  {
190
190
  columnDefs: ne,
191
191
  rowData: xe,
@@ -200,14 +200,14 @@ const Ia = ({
200
200
  }
201
201
  ],
202
202
  [
203
- E,
203
+ S,
204
204
  v,
205
205
  T,
206
206
  ne,
207
207
  xe
208
208
  ]
209
209
  ), ue = d(() => {
210
- S(we.Replace), G(Be.ReplaceAll), P(
210
+ E(we.Replace), G(Be.ReplaceAll), P(
211
211
  new Map(
212
212
  r.map((k) => [
213
213
  k.path,
@@ -215,16 +215,16 @@ const Ia = ({
215
215
  ])
216
216
  )
217
217
  );
218
- }, [r]), Se = d(() => {
218
+ }, [r]), Ee = d(() => {
219
219
  ue(), t();
220
220
  }, [ue, t]), Ae = d(() => {
221
221
  if (ue(), C)
222
222
  I === we.Replace ? o() : s();
223
- else if (W === Be.ReplaceAll)
223
+ else if (H === Be.ReplaceAll)
224
224
  o();
225
- else if (W === Be.DuplicateAll)
225
+ else if (H === Be.DuplicateAll)
226
226
  s();
227
- else if (W === Be.DecideForEach && n) {
227
+ else if (H === Be.DecideForEach && n) {
228
228
  const k = r.map(
229
229
  (ae) => ({
230
230
  file: ae,
@@ -239,7 +239,7 @@ const Ia = ({
239
239
  I,
240
240
  o,
241
241
  s,
242
- W,
242
+ H,
243
243
  n,
244
244
  r,
245
245
  q
@@ -248,13 +248,13 @@ const Ia = ({
248
248
  ia,
249
249
  {
250
250
  open: e,
251
- onClose: Se,
251
+ onClose: Ee,
252
252
  size: C ? eo.Sm : eo.Md,
253
253
  className: Te([!C && "w-[600px]"]),
254
254
  header: z,
255
255
  preventKeyboardOnOpen: !0,
256
256
  footer: /* @__PURE__ */ K("div", { className: "flex justify-end gap-3 py-4 px-6 border-t border-tertiary", children: [
257
- /* @__PURE__ */ a(Ba, { onClick: Se, label: p }),
257
+ /* @__PURE__ */ a(Wa, { onClick: Ee, label: p }),
258
258
  /* @__PURE__ */ a(zt, { onClick: Ae, label: D })
259
259
  ] }),
260
260
  children: /* @__PURE__ */ K("div", { className: "px-6 py-4", children: [
@@ -266,7 +266,7 @@ const Ia = ({
266
266
  ariaLabel: z,
267
267
  items: Re,
268
268
  value: I,
269
- onChange: (k) => S(k)
269
+ onChange: (k) => E(k)
270
270
  }
271
271
  ) : /* @__PURE__ */ a(
272
272
  Na,
@@ -274,7 +274,7 @@ const Ia = ({
274
274
  id: "multiple-files-conflict",
275
275
  ariaLabel: z,
276
276
  items: oe,
277
- value: W,
277
+ value: H,
278
278
  onChange: (k) => G(k),
279
279
  contentClassName: "ml-0"
280
280
  }
@@ -282,7 +282,7 @@ const Ia = ({
282
282
  ] })
283
283
  }
284
284
  );
285
- }, ur = ({
285
+ }, pr = ({
286
286
  getContextMenuItems: e,
287
287
  isRowDisabled: t,
288
288
  allowedFileTypes: o,
@@ -335,7 +335,7 @@ const Ia = ({
335
335
  }),
336
336
  [i]
337
337
  ) };
338
- }, pr = ({
338
+ }, fr = ({
339
339
  onRename: e
340
340
  }) => {
341
341
  const [t, o] = L(Bt.Grid), s = d(
@@ -355,7 +355,7 @@ const Ia = ({
355
355
  onTreeRename: n
356
356
  };
357
357
  };
358
- function fr(e, t) {
358
+ function mr(e, t) {
359
359
  const o = Ce(null), [s, n] = L(!1);
360
360
  return Ne(() => {
361
361
  if (!o.current) return;
@@ -366,7 +366,7 @@ function fr(e, t) {
366
366
  return r.observe(t?.current || o?.current), () => r.disconnect();
367
367
  }, [e, t]), { containerRef: o, isBelowBreakpoint: s };
368
368
  }
369
- var mr = /* @__PURE__ */ ((e) => (e.MULTIPLE = "MULTIPLE", e.SINGLE = "SINGLE", e))(mr || {});
369
+ var Cr = /* @__PURE__ */ ((e) => (e.MULTIPLE = "MULTIPLE", e.SINGLE = "SINGLE", e))(Cr || {});
370
370
  const Tt = (e, t) => {
371
371
  if (!(!e || !e.length || !t))
372
372
  for (const o of e) {
@@ -374,7 +374,7 @@ const Tt = (e, t) => {
374
374
  const s = Tt(o.items, t);
375
375
  if (s) return s;
376
376
  }
377
- }, Ht = (e, t) => {
377
+ }, Wt = (e, t) => {
378
378
  if (!e?.length) return;
379
379
  if (!t) return e[0];
380
380
  const o = Tt(e, t);
@@ -383,7 +383,7 @@ const Tt = (e, t) => {
383
383
  if (s.length <= 1) return e[0];
384
384
  const n = "/" + s.slice(0, s.length - 1).join("/");
385
385
  return Tt(e, n) ?? e[0];
386
- }, Wt = (e) => (e ?? "").toLowerCase(), Cr = (e) => Wt(e).replace(/^\./, ""), gr = (e) => {
386
+ }, Ht = (e) => (e ?? "").toLowerCase(), gr = (e) => Ht(e).replace(/^\./, ""), vr = (e) => {
387
387
  if (!e) return [];
388
388
  const t = [], o = (s) => {
389
389
  const n = s.items ?? [];
@@ -391,18 +391,18 @@ const Tt = (e, t) => {
391
391
  t.push(r), r.nodeType === O.FOLDER && o(r);
392
392
  };
393
393
  return o(e), t;
394
- }, vr = (e, t) => {
394
+ }, wr = (e, t) => {
395
395
  if (!e?.length) return [];
396
396
  if (!t?.length) return e;
397
397
  const o = new Set(t), s = (n) => n.filter((r) => !o.has(r.path)).map(
398
398
  (r) => r.items?.length ? { ...r, items: s(r.items) } : r
399
399
  );
400
400
  return s(e);
401
- }, ja = (e) => (e.name ?? e.path.split("/").pop() ?? "").startsWith("."), wn = (e) => {
401
+ }, Za = (e) => (e.name ?? e.path.split("/").pop() ?? "").startsWith("."), wn = (e) => {
402
402
  if (!e) return "0 bytes";
403
403
  const t = 1024, o = t * 1024;
404
404
  return e >= o ? `${(e / o).toFixed(1)} MB` : e >= t ? `${(e / t).toFixed(0)} KB` : `${e} bytes`;
405
- }, wr = (e, t = "en-US", o = {
405
+ }, yr = (e, t = "en-US", o = {
406
406
  year: "numeric",
407
407
  month: "short",
408
408
  day: "2-digit"
@@ -429,7 +429,7 @@ function pa(e, t, o) {
429
429
  return s === i;
430
430
  });
431
431
  }
432
- const yr = (e) => e?.map((t) => t.endsWith("/*") ? t.replace("/*", "s") : Nr(t).flat().map((o) => `.${o}`)).flat().join(", ") || "", Nr = (e) => {
432
+ const Nr = (e) => e?.map((t) => t.endsWith("/*") ? t.replace("/*", "s") : br(t).flat().map((o) => `.${o}`)).flat().join(", ") || "", br = (e) => {
433
433
  const [t, o] = e.split("/");
434
434
  return t === "*" ? ["all"] : o === "*" ? Object.entries(Ta).reduce((s, [n, r]) => {
435
435
  const [i] = n.split("/");
@@ -444,23 +444,23 @@ function fa(e, t, o) {
444
444
  if (t && ao(t)?.test(e.name))
445
445
  return o ?? `This ${e.isFolder ? "folder" : "file"} contains forbidden characters in its name. Please rename it.`;
446
446
  }
447
- const br = (e) => {
447
+ const Dr = (e) => {
448
448
  const t = e.lastIndexOf("/");
449
449
  return t >= 0 ? {
450
450
  parent: e.slice(0, t),
451
451
  name: e.slice(t + 1)
452
452
  } : { parent: "", name: e };
453
- }, Dr = (e, t, o) => {
453
+ }, Tr = (e, t, o) => {
454
454
  const s = !e.contentLength || o == null || e.contentLength <= o, n = !e.contentType || pa(t, e.contentType, e.name);
455
455
  return s && n;
456
- }, Tr = (e, t, o, s, n) => {
456
+ }, Rr = (e, t, o, s, n) => {
457
457
  if (e.nodeType === O.FOLDER) return;
458
458
  const r = !e.contentLength || o == null || e.contentLength <= o;
459
459
  if (!(!e.contentType || pa(t, e.contentType, e.name)))
460
- return s ?? (t?.length ? `Unsupported file type. Supported types: ${yr(t)}.` : "Unsupported file type.");
460
+ return s ?? (t?.length ? `Unsupported file type. Supported types: ${Nr(t)}.` : "Unsupported file type.");
461
461
  if (!r)
462
462
  return n ?? `File is too large. Maximum size: ${wn(o)}.`;
463
- }, Rr = (e) => e.replace(/\/+$/, "").split("/").filter(Boolean).length, pn = (e) => {
463
+ }, xr = (e) => e.replace(/\/+$/, "").split("/").filter(Boolean).length, pn = (e) => {
464
464
  const t = `${Ra} `, o = new RegExp(`^${Ra} (\\d+)$`), s = new Set(
465
465
  e.map((l) => l.name.toLowerCase())
466
466
  ), n = e.map((l) => {
@@ -474,26 +474,26 @@ const br = (e) => {
474
474
  }, Fa = (e) => {
475
475
  const t = e.updatedAt ? new Date(e.updatedAt).getTime() : NaN;
476
476
  return Number.isNaN(t) ? 0 : t;
477
- }, Ea = (e) => e.contentLength ?? e.size ?? 0, xr = (e, t, o) => {
477
+ }, Sa = (e) => e.contentLength ?? e.size ?? 0, Ir = (e, t, o) => {
478
478
  switch (o) {
479
479
  case ot.UpdatedAt:
480
480
  return Fa(e) - Fa(t);
481
481
  case ot.Size:
482
- return Ea(e) - Ea(t);
482
+ return Sa(e) - Sa(t);
483
483
  case ot.Name:
484
484
  default:
485
485
  return la(e.name, t.name);
486
486
  }
487
- }, Ir = (e, t) => {
487
+ }, Fr = (e, t) => {
488
488
  const o = t.direction === Gt.Desc ? -1 : 1;
489
489
  return [...e].sort((s, n) => {
490
490
  if (!!s.isTemporary != !!n.isTemporary) return s.isTemporary ? -1 : 1;
491
491
  const r = s.nodeType === O.FOLDER, i = n.nodeType === O.FOLDER;
492
492
  if (r !== i) return r ? -1 : 1;
493
- const l = xr(s, n, t.field);
493
+ const l = Ir(s, n, t.field);
494
494
  return l !== 0 ? o * l : o * la(s.name, n.name);
495
495
  });
496
- }, Fr = (e) => {
496
+ }, Sr = (e) => {
497
497
  const [t, o] = L(e?.showHiddenFiles ?? !1), s = !!e?.onShowHiddenFilesChange, n = s ? e.showHiddenFiles ?? !1 : t, r = d(
498
498
  (l) => {
499
499
  s ? e?.onShowHiddenFilesChange?.(l) : o(l);
@@ -525,7 +525,7 @@ const br = (e) => {
525
525
  toggleTreeCollapse: i,
526
526
  setIsTreeCollapsed: r
527
527
  };
528
- }, Sa = (e, t, o) => {
528
+ }, Ea = (e, t, o) => {
529
529
  if (!t.has(e))
530
530
  return e;
531
531
  const s = o === O.FOLDER ? (n, r) => `${n} (${r})` : (n, r) => {
@@ -536,7 +536,7 @@ const br = (e) => {
536
536
  const r = s(e, n);
537
537
  if (!t.has(r)) return r;
538
538
  }
539
- }, Xo = (e) => e.name, Za = ({
539
+ }, Xo = (e) => e.name, Ka = ({
540
540
  getDestinationFiles: e,
541
541
  onResolve: t
542
542
  }) => {
@@ -545,8 +545,8 @@ const br = (e) => {
545
545
  }, []), c = d(() => {
546
546
  h.current = !1, r(!1), s([]), l(null);
547
547
  }, []), D = d(
548
- (u, E) => {
549
- const v = e(u), T = new Set(v.map(Xo)), I = E.filter((S) => T.has(S.name));
548
+ (u, S) => {
549
+ const v = e(u), T = new Set(v.map(Xo)), I = S.filter((E) => T.has(E.name));
550
550
  return {
551
551
  hasConflicts: I.length > 0,
552
552
  conflicts: I
@@ -554,26 +554,26 @@ const br = (e) => {
554
554
  },
555
555
  [e]
556
556
  ), p = d(
557
- (u, E, v, T) => {
558
- const I = e(u), S = new Set(I.map(Xo));
559
- return E.map((W) => {
560
- const G = W.name, q = S.has(G), P = v && q ? G : Sa(G, S, W.nodeType);
561
- return (!v || !q) && S.add(P), {
562
- sourceUrl: W.path,
557
+ (u, S, v, T) => {
558
+ const I = e(u), E = new Set(I.map(Xo));
559
+ return S.map((H) => {
560
+ const G = H.name, q = E.has(G), P = v && q ? G : Ea(G, E, H.nodeType);
561
+ return (!v || !q) && E.add(P), {
562
+ sourceUrl: H.path,
563
563
  destinationUrl: `${u}/${P}`,
564
564
  overwrite: v && q,
565
- nodeType: W.nodeType ?? O.ITEM,
565
+ nodeType: H.nodeType ?? O.ITEM,
566
566
  ...T ?? {}
567
567
  };
568
568
  });
569
569
  },
570
570
  [e]
571
571
  ), N = d(
572
- (u, E, v, T) => {
573
- const I = e(u), S = new Set(I.map(Xo));
574
- return E.filter((G) => v.get(G.path) !== we.Cancel).map((G) => {
575
- const q = v.get(G.path), P = S.has(G.name), _ = q === we.Replace && P, V = _ ? G.name : Sa(G.name, S, G.nodeType);
576
- return _ || S.add(V), {
572
+ (u, S, v, T) => {
573
+ const I = e(u), E = new Set(I.map(Xo));
574
+ return S.filter((G) => v.get(G.path) !== we.Cancel).map((G) => {
575
+ const q = v.get(G.path), P = E.has(G.name), _ = q === we.Replace && P, V = _ ? G.name : Ea(G.name, E, G.nodeType);
576
+ return _ || E.add(V), {
577
577
  sourceUrl: G.path,
578
578
  destinationUrl: `${u}/${V}`,
579
579
  overwrite: _,
@@ -584,10 +584,10 @@ const br = (e) => {
584
584
  },
585
585
  [e]
586
586
  ), m = d(
587
- (u, E, v) => {
588
- const T = D(u, E);
587
+ (u, S, v) => {
588
+ const T = D(u, S);
589
589
  return T.hasConflicts && (l({
590
- files: E,
590
+ files: S,
591
591
  destinationFolder: u,
592
592
  metadata: v
593
593
  }), g(T.conflicts)), T;
@@ -595,13 +595,13 @@ const br = (e) => {
595
595
  [D, g]
596
596
  ), C = d(() => {
597
597
  if (!i) return;
598
- const { files: u, destinationFolder: E, metadata: v } = i, T = p(
599
- E,
598
+ const { files: u, destinationFolder: S, metadata: v } = i, T = p(
599
+ S,
600
600
  u,
601
601
  !0,
602
602
  v
603
603
  );
604
- t?.(T, E), c();
604
+ t?.(T, S), c();
605
605
  }, [
606
606
  i,
607
607
  p,
@@ -609,13 +609,13 @@ const br = (e) => {
609
609
  c
610
610
  ]), R = d(() => {
611
611
  if (!i) return;
612
- const { files: u, destinationFolder: E, metadata: v } = i, T = p(
613
- E,
612
+ const { files: u, destinationFolder: S, metadata: v } = i, T = p(
613
+ S,
614
614
  u,
615
615
  !1,
616
616
  v
617
617
  );
618
- t?.(T, E), c();
618
+ t?.(T, S), c();
619
619
  }, [
620
620
  i,
621
621
  p,
@@ -623,8 +623,8 @@ const br = (e) => {
623
623
  c
624
624
  ]), b = d(() => {
625
625
  if (!i) return;
626
- const { files: u, destinationFolder: E, metadata: v } = i, T = N(
627
- E,
626
+ const { files: u, destinationFolder: S, metadata: v } = i, T = N(
627
+ S,
628
628
  u,
629
629
  new Map(
630
630
  o.map((I) => [
@@ -634,7 +634,7 @@ const br = (e) => {
634
634
  ),
635
635
  v
636
636
  );
637
- t?.(T, E), c();
637
+ t?.(T, S), c();
638
638
  }, [
639
639
  c,
640
640
  o,
@@ -644,15 +644,15 @@ const br = (e) => {
644
644
  ]), f = d(
645
645
  (u) => {
646
646
  if (!i) return;
647
- const { files: E, destinationFolder: v, metadata: T } = i, I = new Map(
648
- u.map((W) => [W.file.path, W.action])
649
- ), S = N(
647
+ const { files: S, destinationFolder: v, metadata: T } = i, I = new Map(
648
+ u.map((H) => [H.file.path, H.action])
649
+ ), E = N(
650
650
  v,
651
- E,
651
+ S,
652
652
  I,
653
653
  T
654
654
  );
655
- t?.(S, v), c();
655
+ t?.(E, v), c();
656
656
  },
657
657
  [
658
658
  i,
@@ -676,7 +676,7 @@ const br = (e) => {
676
676
  handleCancelAll: b,
677
677
  handleDecideForEach: f
678
678
  };
679
- }, Sr = ({
679
+ }, Ar = ({
680
680
  getDestinationFiles: e,
681
681
  onCopyFiles: t,
682
682
  onMoveToFiles: o,
@@ -687,18 +687,18 @@ const br = (e) => {
687
687
  getMoveHeader: l
688
688
  }) => {
689
689
  const [h, g] = L(!1), [c, D] = L([]), [p, N] = L([]), [m, C] = L(De.Copy), [R, b] = L(), [f, u] = L(null), {
690
- conflictingFiles: E,
690
+ conflictingFiles: S,
691
691
  conflictResolutionOpen: v,
692
692
  hasActiveConflictRef: T,
693
693
  startConflictResolution: I,
694
- resolveConflictsWithStrategy: S,
695
- closeConflictResolution: W,
694
+ resolveConflictsWithStrategy: E,
695
+ closeConflictResolution: H,
696
696
  openConflictResolution: G,
697
697
  handleReplaceAll: q,
698
698
  handleDuplicateAll: P,
699
699
  handleCancelAll: _,
700
700
  handleDecideForEach: V
701
- } = Za({
701
+ } = Ka({
702
702
  getDestinationFiles: e,
703
703
  onResolve: (B, Q) => {
704
704
  B?.length && (f?.type === De.Copy ? (t?.(B, Q), s?.()) : f?.type === De.Move && f.sourceFolder && (o?.(
@@ -715,7 +715,7 @@ const br = (e) => {
715
715
  type: De.Copy
716
716
  });
717
717
  if (u({ type: De.Copy }), !Q.hasConflicts) {
718
- const ee = S(
718
+ const ee = E(
719
719
  B,
720
720
  c,
721
721
  !1
@@ -726,7 +726,7 @@ const br = (e) => {
726
726
  [
727
727
  c,
728
728
  I,
729
- S,
729
+ E,
730
730
  t,
731
731
  s,
732
732
  z
@@ -738,7 +738,7 @@ const br = (e) => {
738
738
  type: De.Move,
739
739
  sourceFolderPath: ee
740
740
  }).hasConflicts) {
741
- const re = S(
741
+ const re = E(
742
742
  B,
743
743
  p,
744
744
  !0
@@ -749,7 +749,7 @@ const br = (e) => {
749
749
  [
750
750
  p,
751
751
  I,
752
- S,
752
+ E,
753
753
  o,
754
754
  n,
755
755
  z,
@@ -768,20 +768,20 @@ const br = (e) => {
768
768
  [V, z]
769
769
  ), oe = d(
770
770
  (B) => {
771
- const Q = B.at(0)?.parentPath ?? "/", ee = S(
771
+ const Q = B.at(0)?.parentPath ?? "/", ee = E(
772
772
  Q,
773
773
  B,
774
774
  !1
775
775
  );
776
776
  t?.(ee, Q), r?.();
777
777
  },
778
- [t, r, S]
778
+ [t, r, E]
779
779
  ), ue = d(
780
780
  (B) => {
781
781
  C(B), g(!0);
782
782
  },
783
783
  []
784
- ), Se = d(() => {
784
+ ), Ee = d(() => {
785
785
  g(!1), T.current || z();
786
786
  }, [z, T]), [Ae, k] = L(), ae = d(
787
787
  (B) => {
@@ -803,7 +803,7 @@ const br = (e) => {
803
803
  );
804
804
  return {
805
805
  handleDuplicate: oe,
806
- handleCloseDestinationFolderPopup: Se,
806
+ handleCloseDestinationFolderPopup: Ee,
807
807
  handleOpenDestinationFolderPopup: ue,
808
808
  handleCopyTo: j,
809
809
  handleMoveTo: ge,
@@ -813,17 +813,17 @@ const br = (e) => {
813
813
  handleSetCopiedFiles: ae,
814
814
  handleSetMovedFiles: ve,
815
815
  clearState: z,
816
- conflictingFiles: E,
816
+ conflictingFiles: S,
817
817
  conflictResolutionOpen: v,
818
818
  openConflictResolution: G,
819
- closeConflictResolution: W,
819
+ closeConflictResolution: H,
820
820
  handleConflictReplace: se,
821
821
  handleConflictCancel: xe,
822
822
  handleConflictDuplicate: Re,
823
823
  handleConflictDecideForEach: ne,
824
824
  sourceFolder: R
825
825
  };
826
- }, Ar = ({
826
+ }, Pr = ({
827
827
  path: e,
828
828
  defaultPath: t,
829
829
  onPathChange: o,
@@ -847,7 +847,7 @@ const br = (e) => {
847
847
  setCurrentPath: h,
848
848
  handlePathChange: g
849
849
  };
850
- }, Pr = ({
850
+ }, kr = ({
851
851
  onDeleteFiles: e,
852
852
  onDeleteSuccess: t
853
853
  }) => {
@@ -881,7 +881,7 @@ const br = (e) => {
881
881
  closeDeleteConfirmation: g,
882
882
  confirmDelete: c
883
883
  };
884
- }, kr = ({
884
+ }, Or = ({
885
885
  onDownloadFiles: e,
886
886
  customDownloadItemsAction: t,
887
887
  onDownloadSuccess: o
@@ -892,7 +892,7 @@ const br = (e) => {
892
892
  },
893
893
  [e, o, t]
894
894
  )
895
- }), Or = (e) => "dataTransfer" in e && e.dataTransfer !== null, Mr = ({
895
+ }), Mr = (e) => "dataTransfer" in e && e.dataTransfer !== null, Lr = ({
896
896
  onUploadFiles: e,
897
897
  onValidateUpload: t,
898
898
  maxFileSize: o,
@@ -903,15 +903,15 @@ const br = (e) => {
903
903
  uploadEnabled: l = !0,
904
904
  currentFolder: h
905
905
  } = {}) => {
906
- const [g, c] = L(!1), [D, p] = L(!1), [N, m] = L(), C = Ce(null), R = Ce(""), b = Ce([]), f = U(() => !!h?.permissions?.includes(Vt.WRITE), [h]), [u, E] = L(/* @__PURE__ */ new Map()), [v, T] = L(null), I = d(
906
+ const [g, c] = L(!1), [D, p] = L(!1), [N, m] = L(), C = Ce(null), R = Ce(""), b = Ce([]), f = U(() => !!h?.permissions?.includes(Vt.WRITE), [h]), [u, S] = L(/* @__PURE__ */ new Map()), [v, T] = L(null), I = d(
907
907
  (x) => !s || s.includes("*/*") ? x : x.filter(
908
- ({ fileContent: M, name: H }) => pa(s, M.type, H)
908
+ ({ fileContent: M, name: W }) => pa(s, M.type, W)
909
909
  ),
910
910
  [s]
911
- ), S = d(() => {
912
- E(/* @__PURE__ */ new Map()), T(null);
911
+ ), E = d(() => {
912
+ S(/* @__PURE__ */ new Map()), T(null);
913
913
  }, []), {
914
- conflictingFiles: W,
914
+ conflictingFiles: H,
915
915
  conflictResolutionOpen: G,
916
916
  hasActiveConflictRef: q,
917
917
  checkForConflicts: P,
@@ -922,15 +922,15 @@ const br = (e) => {
922
922
  handleDuplicateAll: ge,
923
923
  handleCancelAll: se,
924
924
  handleDecideForEach: Re
925
- } = Za({
925
+ } = Ka({
926
926
  getDestinationFiles: () => b.current,
927
927
  onResolve: (x, M) => {
928
928
  if (!l || !f) {
929
- S();
929
+ E();
930
930
  return;
931
931
  }
932
932
  if (!v) return;
933
- const H = x.map((Y) => {
933
+ const W = x.map((Y) => {
934
934
  const $ = u.get(Y.sourceUrl);
935
935
  if (!$)
936
936
  return;
@@ -940,67 +940,67 @@ const br = (e) => {
940
940
  name: le
941
941
  };
942
942
  }).filter(Boolean);
943
- if (v.isArchive && H[0]) {
944
- const { fileContent: Y, name: $ } = H[0];
943
+ if (v.isArchive && W[0]) {
944
+ const { fileContent: Y, name: $ } = W[0];
945
945
  r?.(Y, $, M);
946
- } else H.length > 0 && e?.(H, M);
947
- S();
946
+ } else W.length > 0 && e?.(W, M);
947
+ E();
948
948
  }
949
949
  });
950
950
  Ne(() => {
951
- l && f || (c(!1), p(!1), m(void 0), V(), S());
951
+ l && f || (c(!1), p(!1), m(void 0), V(), E());
952
952
  }, [
953
953
  l,
954
954
  V,
955
- S,
955
+ E,
956
956
  f
957
957
  ]), Ne(() => {
958
958
  if (!l || !f) return;
959
959
  let x = 0;
960
960
  const M = (le) => {
961
- Or(le) && le.dataTransfer.types.includes(rr) && (x++, p(!0));
962
- }, H = () => {
961
+ Mr(le) && le.dataTransfer.types.includes(ir) && (x++, p(!0));
962
+ }, W = () => {
963
963
  x--, x === 0 && p(!1);
964
964
  }, Y = () => {
965
965
  x = 0, p(!1);
966
966
  }, $ = (le) => {
967
967
  le.preventDefault();
968
968
  };
969
- return window.addEventListener("dragenter", M), window.addEventListener("dragleave", H), window.addEventListener("drop", Y), window.addEventListener("dragover", $), () => {
970
- window.removeEventListener("dragenter", M), window.removeEventListener("dragleave", H), window.removeEventListener("drop", Y), window.removeEventListener("dragover", $);
969
+ return window.addEventListener("dragenter", M), window.addEventListener("dragleave", W), window.addEventListener("drop", Y), window.addEventListener("dragover", $), () => {
970
+ window.removeEventListener("dragenter", M), window.removeEventListener("dragleave", W), window.removeEventListener("drop", Y), window.removeEventListener("dragover", $);
971
971
  };
972
972
  }, [l, f]);
973
973
  const xe = d(
974
974
  (x) => o ? x.filter((M) => M.fileContent.size > o).map((M) => M.name) : [],
975
975
  [o]
976
976
  ), ne = d(
977
- (x, M) => x.map((H) => ({
978
- id: H.name,
979
- name: H.name,
977
+ (x, M) => x.map((W) => ({
978
+ id: W.name,
979
+ name: W.name,
980
980
  folderId: M,
981
- path: H.name,
981
+ path: W.name,
982
982
  nodeType: O.ITEM,
983
983
  parentPath: M,
984
- contentLength: H.fileContent.size
984
+ contentLength: W.fileContent.size
985
985
  })),
986
986
  []
987
987
  ), oe = d(
988
- async (x, M, H) => {
988
+ async (x, M, W) => {
989
989
  if (!l || !f) return !1;
990
- m(void 0), b.current = H;
990
+ m(void 0), b.current = W;
991
991
  const Y = i ? x.map((J) => ({
992
992
  ...J,
993
993
  name: i(J.name)
994
994
  })) : x, $ = xe(Y);
995
995
  if ($.length > 0) {
996
- const J = o ? (o / 1048576).toFixed(2) : 0, He = n.oversizedFiles || `Files exceed maximum size (${J}MB): ${$.join(", ")}`;
997
- return m(He), !1;
996
+ const J = o ? (o / 1048576).toFixed(2) : 0, We = n.oversizedFiles || `Files exceed maximum size (${J}MB): ${$.join(", ")}`;
997
+ return m(We), !1;
998
998
  }
999
999
  if (t)
1000
1000
  try {
1001
1001
  const J = await t(
1002
1002
  Y,
1003
- H,
1003
+ W,
1004
1004
  M
1005
1005
  );
1006
1006
  if (!J.valid)
@@ -1018,10 +1018,10 @@ const br = (e) => {
1018
1018
  ), { conflicts: ye } = P(M, le), be = new Set(ye.map((J) => J.name)), ce = Y.filter(
1019
1019
  (J) => !be.has(J.name)
1020
1020
  );
1021
- return ce.length > 0 && e?.(ce, M), be.size === 0 ? (S(), !0) : (b.current = [
1022
- ...H,
1021
+ return ce.length > 0 && e?.(ce, M), be.size === 0 ? (E(), !0) : (b.current = [
1022
+ ...W,
1023
1023
  ...ne(ce, M)
1024
- ], E(
1024
+ ], S(
1025
1025
  new Map(
1026
1026
  Y.filter((J) => be.has(J.name)).map((J) => [J.name, J])
1027
1027
  )
@@ -1042,23 +1042,23 @@ const br = (e) => {
1042
1042
  ne,
1043
1043
  P,
1044
1044
  _,
1045
- S,
1045
+ E,
1046
1046
  f
1047
1047
  ]
1048
1048
  ), ue = d(() => {
1049
- j(), S();
1050
- }, [j, S]), Se = d(() => {
1051
- ge(), S();
1052
- }, [ge, S]), Ae = d(() => {
1053
- se(), S();
1054
- }, [se, S]), k = d(
1049
+ j(), E();
1050
+ }, [j, E]), Ee = d(() => {
1051
+ ge(), E();
1052
+ }, [ge, E]), Ae = d(() => {
1053
+ se(), E();
1054
+ }, [se, E]), k = d(
1055
1055
  (x) => {
1056
- Re(x), S();
1056
+ Re(x), E();
1057
1057
  },
1058
- [Re, S]
1058
+ [Re, E]
1059
1059
  ), ae = d(() => {
1060
- V(), q.current || S();
1061
- }, [V, q, S]), ve = d(
1060
+ V(), q.current || E();
1061
+ }, [V, q, E]), ve = d(
1062
1062
  (x) => {
1063
1063
  !l || !f || (x.preventDefault(), x.stopPropagation(), x.dataTransfer.types.includes("Files") && c(!0));
1064
1064
  },
@@ -1067,8 +1067,8 @@ const br = (e) => {
1067
1067
  (x) => {
1068
1068
  if (!l || !f) return;
1069
1069
  x.preventDefault(), x.stopPropagation();
1070
- const M = x.currentTarget.getBoundingClientRect(), H = x.clientX, Y = x.clientY;
1071
- (H <= M.left || H >= M.right || Y <= M.top || Y >= M.bottom) && c(!1);
1070
+ const M = x.currentTarget.getBoundingClientRect(), W = x.clientX, Y = x.clientY;
1071
+ (W <= M.left || W >= M.right || Y <= M.top || Y >= M.bottom) && c(!1);
1072
1072
  },
1073
1073
  [l, f]
1074
1074
  ), Q = d(
@@ -1077,7 +1077,7 @@ const br = (e) => {
1077
1077
  },
1078
1078
  [l, f]
1079
1079
  ), ee = d(
1080
- async (x, M, H) => {
1080
+ async (x, M, W) => {
1081
1081
  if (!l || !f || (x.preventDefault(), x.stopPropagation(), c(!1), !x.dataTransfer.types.includes("Files")))
1082
1082
  return;
1083
1083
  const Y = Array.from(x.dataTransfer.items || []), $ = [];
@@ -1088,8 +1088,8 @@ const br = (e) => {
1088
1088
  le = !0;
1089
1089
  return;
1090
1090
  }
1091
- const He = ce.getAsFile?.();
1092
- He && $.push(He);
1091
+ const We = ce.getAsFile?.();
1092
+ We && $.push(We);
1093
1093
  }
1094
1094
  }), $.length === 0 && x.dataTransfer.files?.length && $.push(...Array.from(x.dataTransfer.files)), $.length === 0) {
1095
1095
  le && m(
@@ -1107,7 +1107,7 @@ const br = (e) => {
1107
1107
  );
1108
1108
  return;
1109
1109
  }
1110
- await oe(be, M, H);
1110
+ await oe(be, M, W);
1111
1111
  },
1112
1112
  [
1113
1113
  l,
@@ -1127,10 +1127,10 @@ const br = (e) => {
1127
1127
  return;
1128
1128
  }
1129
1129
  if (!x.files?.length) return;
1130
- const H = Array.from(x.files).map(($) => ({
1130
+ const W = Array.from(x.files).map(($) => ({
1131
1131
  fileContent: $,
1132
1132
  name: $.name
1133
- })), Y = I(H);
1133
+ })), Y = I(W);
1134
1134
  if (Y.length === 0) {
1135
1135
  m(
1136
1136
  n.unsupportedFiles || "Selected files are not supported"
@@ -1174,12 +1174,12 @@ const br = (e) => {
1174
1174
  ), Ve = d(
1175
1175
  (x, M) => {
1176
1176
  if (!r || !l || !f) return;
1177
- const H = document.createElement("input");
1178
- H.type = "file", H.accept = ".zip,application/zip", H.multiple = !1, H.style.display = "none";
1177
+ const W = document.createElement("input");
1178
+ W.type = "file", W.accept = ".zip,application/zip", W.multiple = !1, W.style.display = "none";
1179
1179
  const Y = () => {
1180
- const $ = H.files?.[0];
1180
+ const $ = W.files?.[0];
1181
1181
  if (!$) {
1182
- document.body.removeChild(H);
1182
+ document.body.removeChild(W);
1183
1183
  return;
1184
1184
  }
1185
1185
  const le = $.name.replace(/\.zip$/i, ""), ye = i ? i(le) : le, be = {
@@ -1192,21 +1192,21 @@ const br = (e) => {
1192
1192
  contentLength: $.size,
1193
1193
  contentType: $.type
1194
1194
  };
1195
- if (b.current = M, T({ destinationFolder: x, isArchive: !0 }), E(
1195
+ if (b.current = M, T({ destinationFolder: x, isArchive: !0 }), S(
1196
1196
  /* @__PURE__ */ new Map([[be.path, { fileContent: $, name: ye }]])
1197
1197
  ), _(x, [be], {
1198
1198
  destinationFolder: x
1199
1199
  }).hasConflicts) {
1200
- document.body.removeChild(H);
1200
+ document.body.removeChild(W);
1201
1201
  return;
1202
1202
  }
1203
1203
  try {
1204
1204
  r($, ye, x);
1205
1205
  } finally {
1206
- document.body.removeChild(H);
1206
+ document.body.removeChild(W);
1207
1207
  }
1208
1208
  };
1209
- H.addEventListener("change", Y), document.body.appendChild(H), H.click();
1209
+ W.addEventListener("change", Y), document.body.appendChild(W), W.click();
1210
1210
  },
1211
1211
  [
1212
1212
  r,
@@ -1231,36 +1231,36 @@ const br = (e) => {
1231
1231
  openFileDialog: re,
1232
1232
  openArchiveDialog: Ve,
1233
1233
  fileInputRef: C,
1234
- uploadConflictingFiles: W,
1234
+ uploadConflictingFiles: H,
1235
1235
  uploadConflictResolutionOpen: G,
1236
1236
  hasActiveUploadConflictRef: q,
1237
1237
  openUploadConflictResolution: z,
1238
1238
  closeUploadConflictResolution: ae,
1239
1239
  handleUploadConflictReplace: ue,
1240
- handleUploadConflictDuplicate: Se,
1240
+ handleUploadConflictDuplicate: Ee,
1241
1241
  handleUploadConflictCancel: Ae,
1242
1242
  handleUploadConflictDecideForEach: k
1243
1243
  };
1244
- }, Ka = ms(void 0), Xa = {
1244
+ }, Xa = Cs(void 0), qa = {
1245
1245
  hiddenItemWarning: `${Yo.Warning}__A dot at the start of the name will make the item hidden`
1246
- }, qa = {
1246
+ }, Ya = {
1247
1247
  consecutiveDotsError: "Name cannot contain consecutive dots"
1248
- }, Lr = {
1248
+ }, _r = {
1249
1249
  emptyName: "Name cannot be empty",
1250
1250
  duplicateName: "An item with this name already exists",
1251
- hiddenItemWarning: Xa.hiddenItemWarning,
1252
- consecutiveDotsError: qa.consecutiveDotsError
1251
+ hiddenItemWarning: qa.hiddenItemWarning,
1252
+ consecutiveDotsError: Ya.consecutiveDotsError
1253
1253
  };
1254
- function _r(e) {
1254
+ function zr(e) {
1255
1255
  let t = e.length;
1256
1256
  for (; t > 0 && e[t - 1] === "/"; ) t--;
1257
1257
  return e.slice(0, t);
1258
1258
  }
1259
- function zr(e, t) {
1260
- const o = _r(e), s = o.lastIndexOf("/");
1259
+ function Br(e, t) {
1260
+ const o = zr(e), s = o.lastIndexOf("/");
1261
1261
  return s === -1 ? t : o.slice(0, s + 1) + t;
1262
1262
  }
1263
- function Br(e) {
1263
+ function Wr(e) {
1264
1264
  const t = e.lastIndexOf(".");
1265
1265
  return t === -1 || t === 0 ? e : e.substring(0, t);
1266
1266
  }
@@ -1276,7 +1276,7 @@ const Hr = ({
1276
1276
  }) => {
1277
1277
  const [n, r] = L(), i = U(
1278
1278
  () => ({
1279
- ...Lr,
1279
+ ..._r,
1280
1280
  ...o
1281
1281
  }),
1282
1282
  [o]
@@ -1304,7 +1304,7 @@ const Hr = ({
1304
1304
  r(void 0);
1305
1305
  return;
1306
1306
  }
1307
- const R = zr(
1307
+ const R = Br(
1308
1308
  n.path,
1309
1309
  C
1310
1310
  ), b = n.parentPath;
@@ -1351,7 +1351,7 @@ const Hr = ({
1351
1351
  return null;
1352
1352
  },
1353
1353
  [t, i, e]
1354
- ), p = d((N) => N.nodeType === O.ITEM ? Br(N.name) : N.name, []);
1354
+ ), p = d((N) => N.nodeType === O.ITEM ? Wr(N.name) : N.name, []);
1355
1355
  return {
1356
1356
  renamedPath: l,
1357
1357
  renamedItem: n,
@@ -1361,7 +1361,7 @@ const Hr = ({
1361
1361
  renameValidateHandler: D,
1362
1362
  getDisplayName: p
1363
1363
  };
1364
- }, Ya = (e) => {
1364
+ }, Qa = (e) => {
1365
1365
  const [t, o] = L(e?.expandedPaths ?? /* @__PURE__ */ new Set()), s = U(
1366
1366
  () => !!e?.onExpandedPathsChange,
1367
1367
  [e?.onExpandedPathsChange]
@@ -1407,7 +1407,7 @@ const Hr = ({
1407
1407
  collapsePath: g,
1408
1408
  isControlled: s
1409
1409
  };
1410
- }, Wr = ({
1410
+ }, Ur = ({
1411
1411
  newActions: e,
1412
1412
  currentFolder: t,
1413
1413
  onUploadFiles: o,
@@ -1422,7 +1422,7 @@ const Hr = ({
1422
1422
  key: "new-folder",
1423
1423
  label: e.newFolder.label,
1424
1424
  icon: e?.newFolder?.icon !== void 0 ? e?.newFolder?.icon : /* @__PURE__ */ a(
1425
- as,
1425
+ ss,
1426
1426
  {
1427
1427
  ...A,
1428
1428
  className: "text-secondary"
@@ -1434,14 +1434,14 @@ const Hr = ({
1434
1434
  }), e.newItem && c.push({
1435
1435
  key: "new-item",
1436
1436
  label: e.newItem.label,
1437
- icon: e?.newItem?.icon !== void 0 ? e?.newItem?.icon : /* @__PURE__ */ a(ss, { ...A, className: "text-secondary" }),
1437
+ icon: e?.newItem?.icon !== void 0 ? e?.newItem?.icon : /* @__PURE__ */ a(rs, { ...A, className: "text-secondary" }),
1438
1438
  onClick: () => {
1439
1439
  r && r();
1440
1440
  }
1441
1441
  }), e.uploadFiles && c.push({
1442
1442
  key: "upload-file",
1443
1443
  label: e.uploadFiles.label,
1444
- icon: e?.uploadFiles?.icon !== void 0 ? e?.uploadFiles?.icon : /* @__PURE__ */ a(rs, { ...A, className: "text-secondary" }),
1444
+ icon: e?.uploadFiles?.icon !== void 0 ? e?.uploadFiles?.icon : /* @__PURE__ */ a(is, { ...A, className: "text-secondary" }),
1445
1445
  onClick: () => {
1446
1446
  o && o();
1447
1447
  }
@@ -1449,7 +1449,7 @@ const Hr = ({
1449
1449
  key: "upload-archive",
1450
1450
  label: e.uploadArchive.label,
1451
1451
  icon: e?.uploadArchive?.icon !== void 0 ? e?.uploadArchive?.icon : /* @__PURE__ */ a(
1452
- is,
1452
+ ls,
1453
1453
  {
1454
1454
  ...A,
1455
1455
  className: "text-secondary"
@@ -1477,12 +1477,12 @@ const Hr = ({
1477
1477
  isNewButtonVisible: h,
1478
1478
  isNewButtonDisabled: g
1479
1479
  };
1480
- }, Ur = {
1480
+ }, Gr = {
1481
1481
  emptyName: "Folder name cannot be empty",
1482
1482
  duplicateName: "A folder with this name already exists",
1483
- hiddenItemWarning: Xa.hiddenItemWarning,
1484
- consecutiveDotsError: qa.consecutiveDotsError
1485
- }, Gr = ({
1483
+ hiddenItemWarning: qa.hiddenItemWarning,
1484
+ consecutiveDotsError: Ya.consecutiveDotsError
1485
+ }, Vr = ({
1486
1486
  currentFolder: e,
1487
1487
  onCreateFolder: t,
1488
1488
  onValidateFolderName: o,
@@ -1495,7 +1495,7 @@ const Hr = ({
1495
1495
  null
1496
1496
  ), [C, R] = L(""), b = Ce(e?.path), f = U(
1497
1497
  () => ({
1498
- ...Ur,
1498
+ ...Gr,
1499
1499
  ...s
1500
1500
  }),
1501
1501
  [s]
@@ -1503,7 +1503,7 @@ const Hr = ({
1503
1503
  if (g === Ge.Folder)
1504
1504
  return e;
1505
1505
  if (g === Ge.Sibling && D) {
1506
- const P = Ht(n, D.parentPath || "");
1506
+ const P = Wt(n, D.parentPath || "");
1507
1507
  return {
1508
1508
  path: D.parentPath,
1509
1509
  items: P?.items || [],
@@ -1518,7 +1518,7 @@ const Hr = ({
1518
1518
  const P = u?.path;
1519
1519
  b.current !== P && r && (i(!1), h(null), R("")), b.current = P;
1520
1520
  }, [u?.path, r]);
1521
- const E = d(() => {
1521
+ const S = d(() => {
1522
1522
  if (r) return;
1523
1523
  b.current = e?.path || "/";
1524
1524
  const P = `__new_folder_${Date.now()}`, _ = (e?.items ?? []).filter(
@@ -1529,7 +1529,7 @@ const Hr = ({
1529
1529
  (P) => {
1530
1530
  if (r) return;
1531
1531
  b.current = P?.parentPath || "/";
1532
- const _ = `__new_folder_${Date.now()}`, z = (Ht(n, P?.parentPath || "/")?.items ?? []).filter(
1532
+ const _ = `__new_folder_${Date.now()}`, z = (Wt(n, P?.parentPath || "/")?.items ?? []).filter(
1533
1533
  (ge) => ge.nodeType === O.FOLDER
1534
1534
  ), j = pn(z);
1535
1535
  R(j), h(_), i(!0), c(Ge.Sibling), p(P), m(P?.parentPath || "/");
@@ -1549,13 +1549,13 @@ const Hr = ({
1549
1549
  (P) => {
1550
1550
  if (r) return;
1551
1551
  b.current = P?.parentPath || "/";
1552
- const V = (Ht(n, P?.parentPath || "/")?.items ?? []).filter(
1552
+ const V = (Wt(n, P?.parentPath || "/")?.items ?? []).filter(
1553
1553
  (j) => j.nodeType === O.FOLDER
1554
1554
  ), z = pn(V);
1555
1555
  R(z), c(Ge.Sibling), p(P), m(P?.parentPath || "/"), i(!0);
1556
1556
  },
1557
1557
  [r, n]
1558
- ), S = d(
1558
+ ), E = d(
1559
1559
  (P) => {
1560
1560
  if (r) return;
1561
1561
  b.current = P.path;
@@ -1565,7 +1565,7 @@ const Hr = ({
1565
1565
  R(V), c(Ge.Child), p(P), m(P?.path || "/"), i(!0);
1566
1566
  },
1567
1567
  [r]
1568
- ), W = d(() => {
1568
+ ), H = d(() => {
1569
1569
  i(!1), h(null), c(Ge.Folder), p(null), m(null), b.current = void 0, R("");
1570
1570
  }, []), G = d(
1571
1571
  (P) => {
@@ -1593,7 +1593,7 @@ const Hr = ({
1593
1593
  const _ = P.trim();
1594
1594
  if (!_)
1595
1595
  return;
1596
- W();
1596
+ H();
1597
1597
  const z = `${u?.path ?? "/"}/${_}`, j = `${z}/${Ko}`, se = {
1598
1598
  fileContent: new File([], Ko, {
1599
1599
  type: "text/plain"
@@ -1602,23 +1602,23 @@ const Hr = ({
1602
1602
  };
1603
1603
  t && await t(se, z, j);
1604
1604
  },
1605
- [u, t, W]
1605
+ [u, t, H]
1606
1606
  );
1607
1607
  return {
1608
1608
  isCreatingFolder: r,
1609
1609
  createdFolderPath: N,
1610
1610
  newFolderTempId: l,
1611
1611
  newFolderDefaultName: C,
1612
- startFolderCreation: E,
1612
+ startFolderCreation: S,
1613
1613
  startGridSiblingFolderCreation: v,
1614
1614
  startTreeSiblingFolderCreation: I,
1615
1615
  startGridChildFolderCreation: T,
1616
- startTreeChildFolderCreation: S,
1617
- cancelFolderCreation: W,
1616
+ startTreeChildFolderCreation: E,
1617
+ cancelFolderCreation: H,
1618
1618
  saveFolderCreation: q,
1619
1619
  validateFolderName: G
1620
1620
  };
1621
- }, Vr = ({ onGetInfo: e }) => {
1621
+ }, $r = ({ onGetInfo: e }) => {
1622
1622
  const [t, o] = L(!1), [s, n] = L(void 0), r = d(
1623
1623
  async (l) => {
1624
1624
  n(l), o(!0), e && await e(l);
@@ -1634,7 +1634,7 @@ const Hr = ({
1634
1634
  closeMetadataPopup: i
1635
1635
  };
1636
1636
  };
1637
- function $r(e) {
1637
+ function jr(e) {
1638
1638
  const t = [];
1639
1639
  function o(s) {
1640
1640
  for (const n of s)
@@ -1643,10 +1643,10 @@ function $r(e) {
1643
1643
  return o(e), t;
1644
1644
  }
1645
1645
  function Pa(e, t) {
1646
- const o = Wt(t);
1647
- return e.filter((s) => Wt(s.name).includes(o));
1646
+ const o = Ht(t);
1647
+ return e.filter((s) => Ht(s.name).includes(o));
1648
1648
  }
1649
- function jr({
1649
+ function Zr({
1650
1650
  onSearchFiles: e,
1651
1651
  clearSearchResults: t,
1652
1652
  currentPath: o,
@@ -1675,7 +1675,7 @@ function jr({
1675
1675
  [e, o]
1676
1676
  ), u = d(() => {
1677
1677
  D.current = !1, p.current = !1, N.current = [], c(""), i?.(""), t?.();
1678
- }, [t, i]), E = d(
1678
+ }, [t, i]), S = d(
1679
1679
  (T) => {
1680
1680
  const I = String(T ?? "");
1681
1681
  c(I), i?.(I), I.trim() ? f(I) : u();
@@ -1699,7 +1699,7 @@ function jr({
1699
1699
  }
1700
1700
  if (!R || !l.length)
1701
1701
  return [];
1702
- const T = $r(l);
1702
+ const T = jr(l);
1703
1703
  return Pa(T, R);
1704
1704
  }, [
1705
1705
  e,
@@ -1713,13 +1713,13 @@ function jr({
1713
1713
  searchValue: g,
1714
1714
  effectiveSearchValue: R,
1715
1715
  setSearchValue: c,
1716
- handleSearchChange: E,
1716
+ handleSearchChange: S,
1717
1717
  handleSearchActivate: f,
1718
1718
  handleSearchClear: u,
1719
1719
  searchResultsRows: v
1720
1720
  };
1721
1721
  }
1722
- function Zr({
1722
+ function Kr({
1723
1723
  selectedPaths: e,
1724
1724
  defaultSelectedPaths: t,
1725
1725
  onSelectedPathsChange: o
@@ -1743,7 +1743,7 @@ function Zr({
1743
1743
  isControlled: s
1744
1744
  };
1745
1745
  }
1746
- const Kr = ({
1746
+ const Xr = ({
1747
1747
  children: e,
1748
1748
  className: t,
1749
1749
  items: o = [],
@@ -1764,19 +1764,19 @@ const Kr = ({
1764
1764
  gridOptions: b,
1765
1765
  toolbarOptions: f,
1766
1766
  bulkActionsToolbarOptions: u,
1767
- destinationFolderPopupOptions: E,
1767
+ destinationFolderPopupOptions: S,
1768
1768
  conflictResolutionPopupOptions: v,
1769
1769
  onPathChange: T,
1770
1770
  onTableFileClick: I,
1771
- handleSelectionClick: S,
1772
- onGridApiChange: W,
1771
+ handleSelectionClick: E,
1772
+ onGridApiChange: H,
1773
1773
  onCopyFiles: G,
1774
1774
  onMoveToFiles: q,
1775
1775
  onDeleteFiles: P,
1776
1776
  onDownloadFiles: _,
1777
1777
  onRenameValidate: V,
1778
1778
  renameValidationMessages: z,
1779
- forbiddenSymbolsRegExp: j = bs,
1779
+ forbiddenSymbolsRegExp: j = Ds,
1780
1780
  forbiddenSymbolsTooltip: ge,
1781
1781
  onUploadFiles: se,
1782
1782
  onValidateUpload: Re,
@@ -1784,7 +1784,7 @@ const Kr = ({
1784
1784
  uploadValidationMessages: ne,
1785
1785
  maxFileSize: oe,
1786
1786
  onUploadArchive: ue,
1787
- prepareUploadFileName: Se,
1787
+ prepareUploadFileName: Ee,
1788
1788
  onCreateFolder: Ae,
1789
1789
  onCreateFolderValidate: k,
1790
1790
  folderCreationValidationMessages: ae,
@@ -1798,7 +1798,7 @@ const Kr = ({
1798
1798
  searchResults: Oe,
1799
1799
  searchInProgress: x,
1800
1800
  clearSearchResults: M,
1801
- allowedFileTypes: H,
1801
+ allowedFileTypes: W,
1802
1802
  maxSelectableFileSize: Y,
1803
1803
  getDisabledTooltip: $,
1804
1804
  fileTooLargeTooltip: le,
@@ -1806,9 +1806,9 @@ const Kr = ({
1806
1806
  emptyStateIcon: be,
1807
1807
  emptyStateTitle: ce,
1808
1808
  emptyStateDescription: J,
1809
- searchEmptyStateTitle: He,
1809
+ searchEmptyStateTitle: We,
1810
1810
  sharedWithMeIds: Ye,
1811
- onFolderPopupPathChange: We,
1811
+ onFolderPopupPathChange: He,
1812
1812
  onManagePermissions: $t,
1813
1813
  onPreview: Me,
1814
1814
  onOpenInNewTab: so,
@@ -1835,14 +1835,14 @@ const Kr = ({
1835
1835
  selectedPaths: Qe,
1836
1836
  clearSelection: Je,
1837
1837
  setSelectedPaths: ut
1838
- } = Zr({
1838
+ } = Kr({
1839
1839
  selectedPaths: l,
1840
1840
  defaultSelectedPaths: h,
1841
1841
  onSelectedPathsChange: g
1842
1842
  }), In = Ce(!1), rt = Ce(null), uo = d(
1843
1843
  (F, Z, te) => {
1844
1844
  if (st) {
1845
- const { parent: nt, name: Zo } = br(Z);
1845
+ const { parent: nt, name: Zo } = Dr(Z);
1846
1846
  rt.current = {
1847
1847
  fileNames: /* @__PURE__ */ new Set([Zo]),
1848
1848
  destinationFolder: nt
@@ -1897,7 +1897,7 @@ const Kr = ({
1897
1897
  ut(Z);
1898
1898
  }
1899
1899
  }, [Qe, pt, ut]);
1900
- const { currentPath: de, setCurrentPath: je, handlePathChange: et } = Ar({
1900
+ const { currentPath: de, setCurrentPath: je, handlePathChange: et } = Pr({
1901
1901
  path: n,
1902
1902
  defaultPath: r,
1903
1903
  onPathChange: T,
@@ -1909,12 +1909,12 @@ const Kr = ({
1909
1909
  ...te
1910
1910
  } = b || {};
1911
1911
  return { showFiles: F, showFolders: Z, ...te };
1912
- }, [b]), it = ft.showFiles, mt = ft.showFolders, [En, Sn] = L(), An = E?.destinationFolderPath ?? En, lt = d(
1912
+ }, [b]), it = ft.showFiles, mt = ft.showFolders, [Sn, En] = L(), An = S?.destinationFolderPath ?? Sn, lt = d(
1913
1913
  (F) => {
1914
- E?.setDestinationFolderPath ? E.setDestinationFolderPath(F) : Sn(F);
1914
+ S?.setDestinationFolderPath ? S.setDestinationFolderPath(F) : En(F);
1915
1915
  },
1916
- [E]
1917
- ), { areHiddenFilesVisible: Ft, toggleHiddenFilesVisibility: Et } = Fr({
1916
+ [S]
1917
+ ), { areHiddenFilesVisible: Ft, toggleHiddenFilesVisibility: St } = Sr({
1918
1918
  showHiddenFiles: c,
1919
1919
  onShowHiddenFilesChange: D
1920
1920
  }), { isTreeCollapsed: mo, toggleTreeCollapse: Co, setIsTreeCollapsed: go } = Er({
@@ -1937,11 +1937,11 @@ const Kr = ({
1937
1937
  isSearchMode: Ct,
1938
1938
  searchValue: No,
1939
1939
  effectiveSearchValue: qt,
1940
- setSearchValue: St,
1940
+ setSearchValue: Et,
1941
1941
  handleSearchChange: Ze,
1942
1942
  handleSearchClear: pe,
1943
1943
  searchResultsRows: gt
1944
- } = jr({
1944
+ } = Zr({
1945
1945
  onSearchFiles: Ve,
1946
1946
  clearSearchResults: M,
1947
1947
  currentPath: de,
@@ -1953,10 +1953,10 @@ const Kr = ({
1953
1953
  // The tab row moved into the folders panel, next to the tree it scopes.
1954
1954
  activeTab: p?.activeTab
1955
1955
  }), fe = U(
1956
- () => Ht(o, de) ?? o[0],
1956
+ () => Wt(o, de) ?? o[0],
1957
1957
  [o, de]
1958
1958
  ), Pe = d(
1959
- (F, Z) => !Z || !F ? !1 : Rr(F.path) > Z,
1959
+ (F, Z) => !Z || !F ? !1 : xr(F.path) > Z,
1960
1960
  []
1961
1961
  ), Le = d(() => {
1962
1962
  Zt?.();
@@ -1974,20 +1974,20 @@ const Kr = ({
1974
1974
  conflictingFiles: xo,
1975
1975
  conflictResolutionOpen: Io,
1976
1976
  closeConflictResolution: Fo,
1977
- handleConflictReplace: Eo,
1977
+ handleConflictReplace: So,
1978
1978
  handleConflictDuplicate: Pt,
1979
1979
  handleConflictCancel: Qt,
1980
- handleConflictDecideForEach: So,
1980
+ handleConflictDecideForEach: Eo,
1981
1981
  sourceFolder: Ln
1982
- } = Sr({
1983
- getDestinationFiles: (F) => Ht(o, F)?.items ?? [],
1982
+ } = Ar({
1983
+ getDestinationFiles: (F) => Wt(o, F)?.items ?? [],
1984
1984
  onCopyFiles: G,
1985
1985
  onMoveToFiles: q,
1986
1986
  onCopySuccess: Je,
1987
1987
  onMoveSuccess: Je,
1988
1988
  onDuplicateSuccess: Je,
1989
- getCopyHeader: E?.getCopyHeader,
1990
- getMoveHeader: E?.getMoveHeader
1989
+ getCopyHeader: S?.getCopyHeader,
1990
+ getMoveHeader: S?.getMoveHeader
1991
1991
  });
1992
1992
  Ne(() => {
1993
1993
  Yt || lt(void 0);
@@ -1998,20 +1998,20 @@ const Kr = ({
1998
1998
  openDeleteConfirmation: Po,
1999
1999
  closeDeleteConfirmation: Jt,
2000
2000
  confirmDelete: zn
2001
- } = Pr({
2001
+ } = kr({
2002
2002
  onDeleteFiles: P,
2003
2003
  onDeleteSuccess: Je
2004
- }), { handleDownloadFiles: Bn } = kr({
2004
+ }), { handleDownloadFiles: Bn } = Or({
2005
2005
  onDownloadFiles: _,
2006
2006
  customDownloadItemsAction: Dn,
2007
2007
  onDownloadSuccess: Je
2008
2008
  }), {
2009
2009
  isDragging: ko,
2010
- isDraggingOverWindow: Hn,
2010
+ isDraggingOverWindow: Wn,
2011
2011
  uploadError: kt,
2012
2012
  handleDragEnter: Ot,
2013
2013
  handleDragLeave: Oo,
2014
- handleDragOver: Wn,
2014
+ handleDragOver: Hn,
2015
2015
  handleDrop: en,
2016
2016
  clearError: Mo,
2017
2017
  openFileDialog: tn,
@@ -2020,17 +2020,17 @@ const Kr = ({
2020
2020
  uploadConflictingFiles: _o,
2021
2021
  uploadConflictResolutionOpen: zo,
2022
2022
  closeUploadConflictResolution: Bo,
2023
- handleUploadConflictReplace: Ho,
2023
+ handleUploadConflictReplace: Wo,
2024
2024
  handleUploadConflictDuplicate: Un,
2025
2025
  handleUploadConflictCancel: Gn,
2026
2026
  handleUploadConflictDecideForEach: Vn
2027
- } = Mr({
2027
+ } = Lr({
2028
2028
  onUploadFiles: po,
2029
2029
  onValidateUpload: Re,
2030
2030
  maxFileSize: oe,
2031
2031
  onUploadArchive: $e,
2032
- prepareUploadFileName: Se,
2033
- allowedFileTypes: H,
2032
+ prepareUploadFileName: Ee,
2033
+ allowedFileTypes: W,
2034
2034
  validationMessages: ne,
2035
2035
  uploadEnabled: xe,
2036
2036
  currentFolder: fe
@@ -2045,7 +2045,7 @@ const Kr = ({
2045
2045
  pe();
2046
2046
  const F = de ?? "", Z = fe?.items ?? [];
2047
2047
  tn(F, Z);
2048
- }, [de, fe, tn, pe]), Wo = d(() => {
2048
+ }, [de, fe, tn, pe]), Ho = d(() => {
2049
2049
  pe();
2050
2050
  const F = de ?? "", Z = fe?.items ?? [];
2051
2051
  nn(F, Z);
@@ -2076,7 +2076,7 @@ const Kr = ({
2076
2076
  cancelFolderCreation: Go,
2077
2077
  saveFolderCreation: Vo,
2078
2078
  validateFolderName: Zn
2079
- } = Gr({
2079
+ } = Vr({
2080
2080
  currentFolder: fe,
2081
2081
  onCreateFolder: uo,
2082
2082
  onValidateFolderName: k,
@@ -2095,12 +2095,12 @@ const Kr = ({
2095
2095
  Fe,
2096
2096
  Pe,
2097
2097
  Le
2098
- ]), { newActions: $o, isNewButtonVisible: jo, isNewButtonDisabled: ln } = Wr(
2098
+ ]), { newActions: $o, isNewButtonVisible: jo, isNewButtonDisabled: ln } = Ur(
2099
2099
  {
2100
2100
  newActions: f?.newActions,
2101
2101
  currentFolder: fe,
2102
2102
  onUploadFiles: Rt ? Ke : Ue,
2103
- onUploadArchive: Wo,
2103
+ onUploadArchive: Ho,
2104
2104
  onCreateFolder: Lt,
2105
2105
  onCreateNewItem: Uo,
2106
2106
  isNewButtonDisabled: f?.isNewButtonDisabled
@@ -2140,11 +2140,11 @@ const Kr = ({
2140
2140
  owner: void 0
2141
2141
  }), cn;
2142
2142
  }
2143
- const F = Wt(qt).trim(), Z = fe?.items ?? [];
2144
- let te = F ? gr(fe) : Z;
2143
+ const F = Ht(qt).trim(), Z = fe?.items ?? [];
2144
+ let te = F ? vr(fe) : Z;
2145
2145
  it || (te = te.filter((X) => X.nodeType !== O.ITEM)), mt || (te = te.filter(
2146
2146
  (X) => X.nodeType !== O.FOLDER
2147
- )), Ft || (te = te.filter((X) => F ? !X.path.split("/").filter(Boolean).some((he) => he.startsWith(".")) : !ja(X)));
2147
+ )), Ft || (te = te.filter((X) => F ? !X.path.split("/").filter(Boolean).some((he) => he.startsWith(".")) : !Za(X)));
2148
2148
  const nt = te.map((X) => ({
2149
2149
  ...X,
2150
2150
  id: X.id ?? X.path,
@@ -2175,7 +2175,7 @@ const Kr = ({
2175
2175
  const Zo = F.split(/\s+/).filter(Boolean);
2176
2176
  return nt.filter((X) => {
2177
2177
  if (X.isTemporary) return !0;
2178
- const cn = Wt(X.name), he = Wt(X.author), wa = Cr(X.extension);
2178
+ const cn = Ht(X.name), he = Ht(X.author), wa = gr(X.extension);
2179
2179
  return Zo.every(
2180
2180
  (dn) => cn.includes(dn) || he.includes(dn) || wa.includes(dn)
2181
2181
  );
@@ -2200,17 +2200,17 @@ const Kr = ({
2200
2200
  rt.current = null;
2201
2201
  return;
2202
2202
  }
2203
- const Z = Ht(o, F.destinationFolder);
2203
+ const Z = Wt(o, F.destinationFolder);
2204
2204
  if (!Z?.items) return;
2205
2205
  const te = /* @__PURE__ */ new Set();
2206
2206
  for (const nt of Z.items)
2207
- F.fileNames.has(nt.name) && Dr(nt, H, Y) && te.add(nt.path);
2207
+ F.fileNames.has(nt.name) && Tr(nt, W, Y) && te.add(nt.path);
2208
2208
  te.size > 0 && (ut(te), rt.current = null);
2209
2209
  }, [
2210
2210
  o,
2211
2211
  de,
2212
2212
  ut,
2213
- H,
2213
+ W,
2214
2214
  Y
2215
2215
  ]), Ne(() => {
2216
2216
  !In.current && xn && (Ue(), In.current = !0);
@@ -2230,7 +2230,7 @@ const Kr = ({
2230
2230
  F.nodeType === O.FOLDER ? et(F.path) : I?.(F);
2231
2231
  },
2232
2232
  [et, I]
2233
- ), { expandedPaths: ct, setExpandedPaths: yt } = Ya({
2233
+ ), { expandedPaths: ct, setExpandedPaths: yt } = Qa({
2234
2234
  expandedPaths: p?.expandedPaths,
2235
2235
  onExpandedPathsChange: p?.onExpandedPathsChange
2236
2236
  }), w = d(
@@ -2309,18 +2309,18 @@ const Kr = ({
2309
2309
  ]
2310
2310
  ), {
2311
2311
  isMetadataPopupOpen: Nt,
2312
- selectedFileForMetadata: Ja,
2313
- openMetadataPopup: es,
2312
+ selectedFileForMetadata: es,
2313
+ openMetadataPopup: ts,
2314
2314
  closeMetadataPopup: va
2315
- } = Vr({ onGetInfo: B }), ts = d(() => {
2315
+ } = $r({ onGetInfo: B }), ns = d(() => {
2316
2316
  va(), ve?.clearMetadata?.();
2317
- }, [va, ve]), ns = U(() => {
2317
+ }, [va, ve]), os = U(() => {
2318
2318
  if (j)
2319
2319
  return ao(j);
2320
- }, [j]), os = {
2320
+ }, [j]), as = {
2321
2321
  className: t,
2322
2322
  items: o,
2323
- allowedFileTypes: H,
2323
+ allowedFileTypes: W,
2324
2324
  maxSelectableFileSize: Y,
2325
2325
  rootItem: s,
2326
2326
  filesLoading: i,
@@ -2337,7 +2337,7 @@ const Kr = ({
2337
2337
  bulkActionsToolbarOptions: u,
2338
2338
  deleteConfirmationOptions: R,
2339
2339
  destinationFolderPopupOptions: {
2340
- ...E,
2340
+ ...S,
2341
2341
  destinationFolderPath: An,
2342
2342
  setDestinationFolderPath: lt,
2343
2343
  header: Ro,
@@ -2350,9 +2350,9 @@ const Kr = ({
2350
2350
  setCurrentPath: je,
2351
2351
  searchValue: No,
2352
2352
  effectiveSearchValue: qt,
2353
- setSearchValue: St,
2353
+ setSearchValue: Et,
2354
2354
  areHiddenFilesVisible: Ft,
2355
- toggleHiddenFilesVisibility: Et,
2355
+ toggleHiddenFilesVisibility: St,
2356
2356
  isTreeCollapsed: mo,
2357
2357
  toggleTreeCollapse: Co,
2358
2358
  setIsTreeCollapsed: go,
@@ -2378,7 +2378,7 @@ const Kr = ({
2378
2378
  handleDownloadFiles: Bn,
2379
2379
  renamedPath: vo,
2380
2380
  renamedItem: wo,
2381
- forbiddenSymbolsRegExp: ns,
2381
+ forbiddenSymbolsRegExp: os,
2382
2382
  forbiddenSymbolsTooltip: ge,
2383
2383
  onRename: Kt,
2384
2384
  onRenameSave: Pn,
@@ -2396,19 +2396,19 @@ const Kr = ({
2396
2396
  handleSearchChange: Ze,
2397
2397
  handleTableRowClick: Yn,
2398
2398
  onTableFileClick: I,
2399
- handleSelectionClick: S,
2400
- onGridApiChange: W,
2399
+ handleSelectionClick: E,
2400
+ onGridApiChange: H,
2401
2401
  isDragging: ko,
2402
2402
  uploadError: kt,
2403
2403
  handleDragEnter: Ot,
2404
2404
  handleDragLeave: Oo,
2405
- handleDragOver: Wn,
2405
+ handleDragOver: Hn,
2406
2406
  handleDrop: Mt,
2407
2407
  clearUploadError: Mo,
2408
2408
  onUploadFiles: se,
2409
2409
  onValidateUpload: Re,
2410
2410
  maxFileSize: oe,
2411
- isDraggingOverWindow: Hn,
2411
+ isDraggingOverWindow: Wn,
2412
2412
  openFileDialog: Ue,
2413
2413
  fileInputRef: Lo,
2414
2414
  newActions: $o,
@@ -2426,22 +2426,22 @@ const Kr = ({
2426
2426
  conflictingFiles: xo,
2427
2427
  conflictResolutionOpen: Io,
2428
2428
  closeConflictResolution: Fo,
2429
- handleConflictReplace: Eo,
2429
+ handleConflictReplace: So,
2430
2430
  handleConflictDuplicate: Pt,
2431
2431
  handleConflictCancel: Qt,
2432
- handleConflictDecideForEach: So,
2432
+ handleConflictDecideForEach: Eo,
2433
2433
  uploadConflictingFiles: _o,
2434
2434
  uploadConflictResolutionOpen: zo,
2435
2435
  closeUploadConflictResolution: Bo,
2436
- handleUploadConflictReplace: Ho,
2436
+ handleUploadConflictReplace: Wo,
2437
2437
  handleUploadConflictDuplicate: Un,
2438
2438
  handleUploadConflictCancel: Gn,
2439
2439
  handleUploadConflictDecideForEach: Vn,
2440
2440
  fileMetadataPopupOptions: ve,
2441
2441
  isMetadataPopupOpen: Nt,
2442
- selectedFileForMetadata: Ja,
2443
- openMetadataPopup: es,
2444
- closeMetadataPopup: ts,
2442
+ selectedFileForMetadata: es,
2443
+ openMetadataPopup: ts,
2444
+ closeMetadataPopup: ns,
2445
2445
  onGetInfo: B,
2446
2446
  onUnshareFiles: Q,
2447
2447
  onRemoveFilesAccess: ee,
@@ -2455,10 +2455,10 @@ const Kr = ({
2455
2455
  emptyStateIcon: be,
2456
2456
  emptyStateTitle: ce,
2457
2457
  emptyStateDescription: J,
2458
- searchEmptyStateTitle: He,
2458
+ searchEmptyStateTitle: We,
2459
2459
  gridClassName: It,
2460
2460
  sharedWithMeIds: Ye,
2461
- onFolderPopupPathChange: We,
2461
+ onFolderPopupPathChange: He,
2462
2462
  onManagePermissions: $t,
2463
2463
  onPreview: Me,
2464
2464
  onOpenInNewTab: so,
@@ -2477,8 +2477,8 @@ const Kr = ({
2477
2477
  maxNewFolderDepth: Fe,
2478
2478
  onNewFolderDepthExceeded: Zt
2479
2479
  };
2480
- return /* @__PURE__ */ a(Ka.Provider, { value: os, children: e });
2481
- }, Xr = ({
2480
+ return /* @__PURE__ */ a(Xa.Provider, { value: as, children: e });
2481
+ }, qr = ({
2482
2482
  disabledGridRowIds: e,
2483
2483
  gridRows: t,
2484
2484
  getDisabledTooltip: o,
@@ -2538,9 +2538,9 @@ const Kr = ({
2538
2538
  n,
2539
2539
  r
2540
2540
  ]);
2541
- return /* @__PURE__ */ a(ke, { children: D && h && Gs(
2542
- /* @__PURE__ */ K(Ds, { open: !0, placement: Ts.Top, children: [
2543
- /* @__PURE__ */ a(Rs, { asChild: !0, children: /* @__PURE__ */ a(
2541
+ return /* @__PURE__ */ a(ke, { children: D && h && Vs(
2542
+ /* @__PURE__ */ K(Ts, { open: !0, placement: Rs.Top, children: [
2543
+ /* @__PURE__ */ a(xs, { asChild: !0, children: /* @__PURE__ */ a(
2544
2544
  "div",
2545
2545
  {
2546
2546
  className: Te(
@@ -2555,7 +2555,7 @@ const Kr = ({
2555
2555
  }
2556
2556
  }
2557
2557
  ) }),
2558
- /* @__PURE__ */ a(xs, { className: "text-center", children: D })
2558
+ /* @__PURE__ */ a(Is, { className: "text-center", children: D })
2559
2559
  ] }),
2560
2560
  document.body
2561
2561
  ) });
@@ -2565,7 +2565,7 @@ const Kr = ({
2565
2565
  const o = () => t(ka());
2566
2566
  return window.addEventListener("resize", o), () => window.removeEventListener("resize", o);
2567
2567
  }, []), e;
2568
- }, qr = ({
2568
+ }, Yr = ({
2569
2569
  onClose: e,
2570
2570
  onConfirm: t,
2571
2571
  onFolderPopupPathChange: o,
@@ -2586,14 +2586,14 @@ const Kr = ({
2586
2586
  disabledPathTooltip: b = "Unavailable for the original path. Please select another folder",
2587
2587
  path: f,
2588
2588
  collapsedFileTree: u = !1,
2589
- alertProps: E,
2589
+ alertProps: S,
2590
2590
  processDestinationFolderPath: v,
2591
2591
  excludedPaths: T,
2592
2592
  items: I,
2593
- ...S
2593
+ ...E
2594
2594
  }) => {
2595
- const [W, G] = L(!1), [q, P] = L(!1), _ = Ce(null), V = ma(), z = U(
2596
- () => vr(I, T),
2595
+ const [H, G] = L(!1), [q, P] = L(!1), _ = Ce(null), V = ma(), z = U(
2596
+ () => wr(I, T),
2597
2597
  [I, T]
2598
2598
  ), j = d((ne) => {
2599
2599
  G(ne);
@@ -2680,14 +2680,14 @@ const Kr = ({
2680
2680
  Ha,
2681
2681
  {
2682
2682
  labelProps: { label: g },
2683
- isOn: W,
2683
+ isOn: H,
2684
2684
  onChange: j,
2685
2685
  id: "hidden-files-switch-modal"
2686
2686
  }
2687
2687
  ) }) })
2688
2688
  ] }) }),
2689
2689
  /* @__PURE__ */ K("div", { className: "flex space-x-4 items-center", children: [
2690
- /* @__PURE__ */ a(Ba, { onClick: e, label: "Cancel" }),
2690
+ /* @__PURE__ */ a(Wa, { onClick: e, label: "Cancel" }),
2691
2691
  xe ? /* @__PURE__ */ a(no, { tooltip: b, children: /* @__PURE__ */ a(
2692
2692
  zt,
2693
2693
  {
@@ -2708,31 +2708,31 @@ const Kr = ({
2708
2708
  header: C ?? Re,
2709
2709
  ariaLabel: Re,
2710
2710
  children: /* @__PURE__ */ K("div", { className: "bg-layer-sunken h-full flex flex-col", children: [
2711
- E && /* @__PURE__ */ a("div", { className: "px-6 mb-4 pt-4", children: /* @__PURE__ */ a(Is, { ...E }) }),
2711
+ S && /* @__PURE__ */ a("div", { className: "px-6 mb-4 pt-4", children: /* @__PURE__ */ a(Fs, { ...S }) }),
2712
2712
  /* @__PURE__ */ a("div", { className: "flex-1 min-h-0", children: /* @__PURE__ */ a(
2713
- _i,
2713
+ Bi,
2714
2714
  {
2715
- ...S,
2715
+ ...E,
2716
2716
  items: z,
2717
2717
  gridClassName: "size-full",
2718
2718
  className: Te(
2719
- S.className,
2719
+ E.className,
2720
2720
  "bg-layer-sunken h-full flex pt-0"
2721
2721
  ),
2722
2722
  actionsRef: _,
2723
2723
  path: f,
2724
- showHiddenFiles: W,
2724
+ showHiddenFiles: H,
2725
2725
  onShowHiddenFilesChange: j,
2726
2726
  treeOptions: {
2727
- ...S.treeOptions,
2727
+ ...E.treeOptions,
2728
2728
  collapsed: u,
2729
- expandedPaths: /* @__PURE__ */ new Set([S.rootItem?.path || "/"]),
2730
- header: S.treeOptions?.header
2729
+ expandedPaths: /* @__PURE__ */ new Set([E.rootItem?.path || "/"]),
2730
+ header: E.treeOptions?.header
2731
2731
  },
2732
- gridOptions: { ...S.gridOptions, selectionMode: void 0 },
2732
+ gridOptions: { ...E.gridOptions, selectionMode: void 0 },
2733
2733
  navigationPanelOptions: {
2734
2734
  elementId: "file-manager-destination-search",
2735
- ...S.navigationPanelOptions
2735
+ ...E.navigationPanelOptions
2736
2736
  },
2737
2737
  onUploadFiles: p,
2738
2738
  onValidateUpload: N,
@@ -2744,7 +2744,7 @@ const Kr = ({
2744
2744
  }
2745
2745
  );
2746
2746
  };
2747
- function Yr({
2747
+ function Qr({
2748
2748
  actions: e,
2749
2749
  direction: t = gn.Normal,
2750
2750
  moreButtonWidth: o = sa,
@@ -2754,21 +2754,21 @@ function Yr({
2754
2754
  }) {
2755
2755
  const i = Ce(null), l = Ce(null), h = Ce(null), g = Ce(null), c = Ce([]), [D, p] = L(0), N = d(
2756
2756
  (R, b) => {
2757
- const f = h.current?.offsetWidth ?? 0, u = g.current?.offsetWidth ?? 0, E = f + u, T = b.getBoundingClientRect().width - E - o - s * 2 - n * 2;
2758
- let I = 0, S = 0;
2757
+ const f = h.current?.offsetWidth ?? 0, u = g.current?.offsetWidth ?? 0, S = f + u, T = b.getBoundingClientRect().width - S - o - s * 2 - n * 2;
2758
+ let I = 0, E = 0;
2759
2759
  if (t === gn.Reverse)
2760
- for (let W = R.length - 1; W >= 0 && (I += R[W] + s, !(I > T)); W--)
2761
- S++;
2760
+ for (let H = R.length - 1; H >= 0 && (I += R[H] + s, !(I > T)); H--)
2761
+ E++;
2762
2762
  else
2763
- for (const W of R) {
2764
- if (I += W + s, I > T) break;
2765
- S++;
2763
+ for (const H of R) {
2764
+ if (I += H + s, I > T) break;
2765
+ E++;
2766
2766
  }
2767
- p(S);
2767
+ p(E);
2768
2768
  },
2769
2769
  [s, n, t, o]
2770
2770
  );
2771
- Cs(
2771
+ gs(
2772
2772
  () => {
2773
2773
  if (!l.current || !i.current) return;
2774
2774
  const b = Array.from(l.current.children).map(
@@ -2785,8 +2785,8 @@ function Yr({
2785
2785
  const b = () => {
2786
2786
  R && cancelAnimationFrame(R), R = requestAnimationFrame(() => {
2787
2787
  if (!i.current) return;
2788
- const u = i.current, E = c.current;
2789
- E.length !== 0 && N(E, u);
2788
+ const u = i.current, S = c.current;
2789
+ S.length !== 0 && N(S, u);
2790
2790
  });
2791
2791
  }, f = new ResizeObserver(b);
2792
2792
  return f.observe(i.current), b(), () => {
@@ -2810,7 +2810,7 @@ function Yr({
2810
2810
  }
2811
2811
  };
2812
2812
  }
2813
- const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-full h-16 rounded-[12px] bg-layer-base shadow-sm px-[24px] flex items-center gap-3", ni = "flex shrink-0 items-center gap-1 dial-small-semi-text text-primary", oi = "rounded bg-control-neutral-active w-[22px] flex items-center justify-center h-[22px] dial-small-text font-semibold text-primary rounded-full", ai = "flex gap-3 items-center", si = ({
2813
+ const Jr = 12, ei = 8, ti = "w-full flex justify-center", ni = "w-auto max-w-full h-16 rounded-[12px] bg-layer-base shadow-sm px-[24px] flex items-center gap-3", oi = "flex shrink-0 items-center gap-1 dial-small-semi-text text-primary", ai = "rounded bg-control-neutral-active w-[22px] flex items-center justify-center h-[22px] dial-small-text font-semibold text-primary rounded-full", si = "flex gap-3 items-center", ri = ({
2814
2814
  getSelectionLabel: e,
2815
2815
  onClearSelection: t,
2816
2816
  actions: o,
@@ -2821,12 +2821,12 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
2821
2821
  refs: { containerRef: i, leftSectionRef: l, measureRef: h },
2822
2822
  visibleActions: g,
2823
2823
  hiddenActions: c
2824
- } = Yr({
2824
+ } = Qr({
2825
2825
  actions: o,
2826
2826
  direction: gn.Reverse,
2827
2827
  dependencies: [r],
2828
- actionsGap: Qr,
2829
- containerPadding: Jr
2828
+ actionsGap: Jr,
2829
+ containerPadding: ei
2830
2830
  }), D = e(s);
2831
2831
  return /* @__PURE__ */ K(ke, { children: [
2832
2832
  /* @__PURE__ */ a(
@@ -2845,15 +2845,15 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
2845
2845
  ))
2846
2846
  }
2847
2847
  ),
2848
- /* @__PURE__ */ a("div", { ref: i, className: ei, children: /* @__PURE__ */ K(
2848
+ /* @__PURE__ */ a("div", { ref: i, className: ti, children: /* @__PURE__ */ K(
2849
2849
  "div",
2850
2850
  {
2851
- className: ti,
2851
+ className: ni,
2852
2852
  role: "toolbar",
2853
2853
  "aria-label": "File bulk actions",
2854
2854
  children: [
2855
- /* @__PURE__ */ K("div", { ref: l, className: ni, children: [
2856
- /* @__PURE__ */ a("span", { className: oi, children: s }),
2855
+ /* @__PURE__ */ K("div", { ref: l, className: oi, children: [
2856
+ /* @__PURE__ */ a("span", { className: ai, children: s }),
2857
2857
  /* @__PURE__ */ a("span", { className: "whitespace-nowrap", children: D }),
2858
2858
  /* @__PURE__ */ a(
2859
2859
  Ut,
@@ -2861,12 +2861,12 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
2861
2861
  size: Nn.Small,
2862
2862
  "aria-label": n,
2863
2863
  tooltipProps: { tooltip: n },
2864
- icon: /* @__PURE__ */ a(ls, { ...A }),
2864
+ icon: /* @__PURE__ */ a(cs, { ...A }),
2865
2865
  onClick: t
2866
2866
  }
2867
2867
  )
2868
2868
  ] }),
2869
- /* @__PURE__ */ K("div", { className: ai, children: [
2869
+ /* @__PURE__ */ K("div", { className: si, children: [
2870
2870
  c.length > 0 && /* @__PURE__ */ a(
2871
2871
  Dt,
2872
2872
  {
@@ -2890,7 +2890,7 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
2890
2890
  label: C,
2891
2891
  disabled: b,
2892
2892
  tooltipProps: { tooltip: m },
2893
- onClick: (E) => R?.({ key: p, domEvent: E })
2893
+ onClick: (S) => R?.({ key: p, domEvent: S })
2894
2894
  },
2895
2895
  p
2896
2896
  )
@@ -2900,7 +2900,7 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
2900
2900
  }
2901
2901
  ) })
2902
2902
  ] });
2903
- }, ri = ({
2903
+ }, ii = ({
2904
2904
  open: e,
2905
2905
  itemsToDelete: t,
2906
2906
  onClose: o,
@@ -2936,7 +2936,7 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
2936
2936
  ] }) })
2937
2937
  ] }), p = l?.(h) || D;
2938
2938
  return /* @__PURE__ */ a(
2939
- Fs,
2939
+ Ss,
2940
2940
  {
2941
2941
  open: e,
2942
2942
  header: c,
@@ -2949,10 +2949,10 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
2949
2949
  children: p
2950
2950
  }
2951
2951
  );
2952
- }, Oa = (e) => e.split("/").map((t) => t.trim()).filter(Boolean), ii = "min-w-0 flex-1 flex items-center", li = "min-w-0 h-[40px] flex-1 overflow-hidden flex items-center", ci = ({
2952
+ }, Oa = (e) => e.split("/").map((t) => t.trim()).filter(Boolean), li = "min-w-0 flex-1 flex items-center", ci = "min-w-0 h-[40px] flex-1 overflow-hidden flex items-center", di = ({
2953
2953
  ariaLabel: e = "Breadcrumb",
2954
2954
  overflowAriaLabel: t,
2955
- size: o = As.Heading,
2955
+ size: o = Ps.Heading,
2956
2956
  maxVisibleItems: s,
2957
2957
  itemClassName: n,
2958
2958
  onItemClick: r,
@@ -2973,7 +2973,7 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
2973
2973
  const f = Oa(c);
2974
2974
  if (f.length) {
2975
2975
  const u = m.findIndex(
2976
- (E, v) => f.every((T, I) => m[v + I] === T)
2976
+ (S, v) => f.every((T, I) => m[v + I] === T)
2977
2977
  );
2978
2978
  u !== -1 && (R = f.length, m = [
2979
2979
  ...m.slice(0, u),
@@ -2983,7 +2983,7 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
2983
2983
  }
2984
2984
  if (!m.length) return [{ label: "/" }];
2985
2985
  const b = m.map((f, u) => {
2986
- const E = u < m.length - R ? u : u + R, v = C.slice(0, E + 1), T = typeof l == "function" ? l(v, E) : void 0;
2986
+ const S = u < m.length - R ? u : u + R, v = C.slice(0, S + 1), T = typeof l == "function" ? l(v, S) : void 0;
2987
2987
  return {
2988
2988
  label: f,
2989
2989
  href: T,
@@ -3022,10 +3022,10 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3022
3022
  return /* @__PURE__ */ a(
3023
3023
  "div",
3024
3024
  {
3025
- className: Te(ii, D),
3025
+ className: Te(li, D),
3026
3026
  "aria-label": "navigation-panel",
3027
- children: /* @__PURE__ */ a("div", { className: li, children: /* @__PURE__ */ a(
3028
- Ss,
3027
+ children: /* @__PURE__ */ a("div", { className: ci, children: /* @__PURE__ */ a(
3028
+ As,
3029
3029
  {
3030
3030
  items: N,
3031
3031
  size: o,
@@ -3038,7 +3038,7 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3038
3038
  ) })
3039
3039
  }
3040
3040
  );
3041
- }, di = "flex w-full shrink-0 items-center gap-3", hi = "min-w-0 flex-1", ui = ({
3041
+ }, hi = "flex w-full shrink-0 items-center gap-3", ui = "min-w-0 flex-1", pi = ({
3042
3042
  value: e,
3043
3043
  elementId: t = "file-manager-search",
3044
3044
  onSearchChange: o,
@@ -3060,11 +3060,11 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3060
3060
  return /* @__PURE__ */ a(
3061
3061
  "div",
3062
3062
  {
3063
- className: Te(di, s),
3063
+ className: Te(hi, s),
3064
3064
  role: "search",
3065
3065
  "aria-label": "Search",
3066
- children: /* @__PURE__ */ a("div", { className: hi, children: /* @__PURE__ */ a(
3067
- Ps,
3066
+ children: /* @__PURE__ */ a("div", { className: ui, children: /* @__PURE__ */ a(
3067
+ ks,
3068
3068
  {
3069
3069
  ...h,
3070
3070
  id: t,
@@ -3079,14 +3079,17 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3079
3079
  ) })
3080
3080
  }
3081
3081
  );
3082
- }, pi = {
3082
+ }, fi = {
3083
+ listClassName: "min-w-[240px]",
3084
+ matchReferenceWidth: !1
3085
+ }, mi = {
3083
3086
  [ot.Name]: "Name",
3084
3087
  [ot.UpdatedAt]: "Modified date",
3085
3088
  [ot.Size]: "Size"
3086
- }, fi = {
3089
+ }, Ci = {
3087
3090
  [Gt.Asc]: "Ascending",
3088
3091
  [Gt.Desc]: "Descending"
3089
- }, mi = Object.values(ot), Ci = Object.values(Gt), gi = ({
3092
+ }, gi = Object.values(ot), vi = Object.values(Gt), wi = ({
3090
3093
  sort: e,
3091
3094
  onSortChange: t,
3092
3095
  label: o = "Sort",
@@ -3097,17 +3100,17 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3097
3100
  }) => {
3098
3101
  const l = U(
3099
3102
  () => [
3100
- ...mi.map((h) => ({
3103
+ ...gi.map((h) => ({
3101
3104
  key: `field-${h}`,
3102
- label: s?.[h] ?? pi[h],
3105
+ label: s?.[h] ?? mi[h],
3103
3106
  mark: Da.Check,
3104
3107
  checked: e.field === h,
3105
3108
  onClick: () => t?.({ ...e, field: h })
3106
3109
  })),
3107
3110
  { key: "sort-divider", type: ca.Divider },
3108
- ...Ci.map((h) => ({
3111
+ ...vi.map((h) => ({
3109
3112
  key: `direction-${h}`,
3110
- label: n?.[h] ?? fi[h],
3113
+ label: n?.[h] ?? Ci[h],
3111
3114
  mark: Da.Check,
3112
3115
  checked: e.direction === h,
3113
3116
  onClick: () => t?.({ ...e, direction: h })
@@ -3119,20 +3122,24 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3119
3122
  Qo,
3120
3123
  {
3121
3124
  label: o,
3122
- variant: Wa.Primary,
3125
+ variant: Ua.Primary,
3123
3126
  appearance: to.Ghost,
3124
- iconBefore: /* @__PURE__ */ a(cs, { ...A }),
3127
+ iconBefore: /* @__PURE__ */ a(ds, { ...A }),
3125
3128
  items: l,
3129
+ dropdownProps: fi,
3126
3130
  disabled: r,
3127
3131
  className: i
3128
3132
  }
3129
3133
  );
3130
- }, vi = ({
3134
+ }, Ma = {
3135
+ listClassName: "min-w-[108px]",
3136
+ matchReferenceWidth: !1
3137
+ }, yi = ({
3131
3138
  areHiddenFilesVisible: e,
3132
3139
  onToggleHiddenFiles: t,
3133
3140
  isNewButtonVisible: o,
3134
3141
  isNewButtonDisabled: s,
3135
- newButtonVariant: n = Wa.Primary,
3142
+ newButtonVariant: n = Ua.Primary,
3136
3143
  newButtonDropdownItems: r = [],
3137
3144
  newButtonLabel: i = "Add",
3138
3145
  showHiddenFilesLabel: l = "Show hidden files",
@@ -3144,7 +3151,7 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3144
3151
  {
3145
3152
  key: "hidden-files-switch",
3146
3153
  label: e ? h : l,
3147
- icon: e ? /* @__PURE__ */ a(ds, { ...A, className: "text-secondary" }) : /* @__PURE__ */ a(ea, { ...A, className: "text-secondary" }),
3154
+ icon: e ? /* @__PURE__ */ a(hs, { ...A, className: "text-secondary" }) : /* @__PURE__ */ a(ea, { ...A, className: "text-secondary" }),
3148
3155
  onClick: () => t?.(!e)
3149
3156
  }
3150
3157
  ], [
@@ -3166,8 +3173,8 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3166
3173
  icon: /* @__PURE__ */ a(
3167
3174
  yn,
3168
3175
  {
3169
- stroke: $a,
3170
- size: ks.SM
3176
+ stroke: ja,
3177
+ size: Os.SM
3171
3178
  }
3172
3179
  )
3173
3180
  }
@@ -3184,6 +3191,7 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3184
3191
  label: i,
3185
3192
  variant: n,
3186
3193
  items: r,
3194
+ dropdownProps: Ma,
3187
3195
  disabled: s
3188
3196
  }
3189
3197
  )
@@ -3211,13 +3219,14 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3211
3219
  label: i,
3212
3220
  variant: n,
3213
3221
  items: r,
3222
+ dropdownProps: Ma,
3214
3223
  disabled: s
3215
3224
  }
3216
3225
  )
3217
3226
  }
3218
3227
  )
3219
3228
  ] }) });
3220
- }, wi = 100, fn = 16, Xe = "text-secondary", Qn = "text-primary min-w-0", yi = "text-primary break-words min-w-0", mn = "bg-layer-sunken", Ni = ({
3229
+ }, Ni = 100, fn = 16, Xe = "text-secondary", Qn = "text-primary min-w-0", bi = "text-primary break-words min-w-0", mn = "bg-layer-sunken", Di = ({
3221
3230
  open: e,
3222
3231
  onClose: t,
3223
3232
  fileMetadata: o,
@@ -3242,7 +3251,7 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3242
3251
  "div",
3243
3252
  {
3244
3253
  className: "grid gap-4 items-center dial-small-text",
3245
- style: { gridTemplateColumns: `${wi}px 1fr` },
3254
+ style: { gridTemplateColumns: `${Ni}px 1fr` },
3246
3255
  children: s ? /* @__PURE__ */ K(ke, { children: [
3247
3256
  /* @__PURE__ */ a("div", { className: Xe, children: r }),
3248
3257
  /* @__PURE__ */ a(
@@ -3301,7 +3310,7 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3301
3310
  /* @__PURE__ */ a("div", { className: Qn, children: /* @__PURE__ */ a(
3302
3311
  _t,
3303
3312
  {
3304
- text: wr(
3313
+ text: yr(
3305
3314
  o.updatedAt,
3306
3315
  c,
3307
3316
  D
@@ -3318,15 +3327,15 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3318
3327
  /* @__PURE__ */ a("div", { className: Xe, children: g }),
3319
3328
  /* @__PURE__ */ a("div", { className: Qn, children: /* @__PURE__ */ a(_t, { text: o.author || "—" }) }),
3320
3329
  /* @__PURE__ */ a("div", { className: Xe, children: i }),
3321
- /* @__PURE__ */ a("div", { className: yi, children: decodeURIComponent(o.path) })
3330
+ /* @__PURE__ */ a("div", { className: bi, children: decodeURIComponent(o.path) })
3322
3331
  ] }) : null
3323
3332
  }
3324
3333
  ) })
3325
3334
  }
3326
- ), bi = {
3335
+ ), Ti = {
3327
3336
  size: 10,
3328
3337
  stroke: 2
3329
- }, Di = 14, Cn = "__new_folder", Ti = ({
3338
+ }, Ri = 14, Cn = "__new_folder", xi = ({
3330
3339
  name: e,
3331
3340
  type: t,
3332
3341
  elementId: o,
@@ -3355,14 +3364,14 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3355
3364
  ""
3356
3365
  );
3357
3366
  return /* @__PURE__ */ a(no, { tooltip: u, children: D || (f ? /* @__PURE__ */ a(
3358
- us,
3367
+ ps,
3359
3368
  {
3360
3369
  ...A,
3361
3370
  className: "text-warning-icon",
3362
3371
  "aria-label": "warning"
3363
3372
  }
3364
3373
  ) : /* @__PURE__ */ a(
3365
- hs,
3374
+ us,
3366
3375
  {
3367
3376
  ...A,
3368
3377
  className: "text-error",
@@ -3370,9 +3379,9 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3370
3379
  }
3371
3380
  )) });
3372
3381
  };
3373
- return /* @__PURE__ */ K("div", { className: "flex gap-2 items-center", ...Os, children: [
3382
+ return /* @__PURE__ */ K("div", { className: "flex gap-2 items-center", ...Ms, children: [
3374
3383
  /* @__PURE__ */ a(
3375
- Ms,
3384
+ Ls,
3376
3385
  {
3377
3386
  name: e,
3378
3387
  type: t,
@@ -3387,7 +3396,7 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3387
3396
  }
3388
3397
  ),
3389
3398
  /* @__PURE__ */ a(
3390
- Ls,
3399
+ _s,
3391
3400
  {
3392
3401
  wrapperClassName: Te(
3393
3402
  "!h-5 !py-[1px] !pl-[7px] !pr-[7px]",
@@ -3423,9 +3432,9 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3423
3432
  hideTooltip: b = !1,
3424
3433
  forbiddenSymbolsRegExp: f,
3425
3434
  forbiddenSymbolsTooltip: u,
3426
- details: E
3435
+ details: S
3427
3436
  }) => {
3428
- const { value: v, invalid: T, invalidMessage: I, onChange: S, inputRef: W } = _s({
3437
+ const { value: v, invalid: T, invalidMessage: I, onChange: E, inputRef: H } = zs({
3429
3438
  value: e,
3430
3439
  isEditing: s,
3431
3440
  isCreating: r,
@@ -3452,7 +3461,7 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3452
3461
  name: e,
3453
3462
  type: t,
3454
3463
  fileExtension: c,
3455
- details: E,
3464
+ details: S,
3456
3465
  loading: n,
3457
3466
  shared: i,
3458
3467
  iconSize: l,
@@ -3465,15 +3474,15 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3465
3474
  );
3466
3475
  }
3467
3476
  return /* @__PURE__ */ a(
3468
- Ti,
3477
+ xi,
3469
3478
  {
3470
3479
  type: t,
3471
3480
  name: v,
3472
3481
  elementId: o,
3473
3482
  inputInvalid: T,
3474
3483
  inputInvalidMessage: I,
3475
- inputRef: W,
3476
- onChange: S,
3484
+ inputRef: H,
3485
+ onChange: E,
3477
3486
  iconSize: l,
3478
3487
  fileExtension: c,
3479
3488
  inputContainerClassName: m,
@@ -3481,19 +3490,19 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3481
3490
  sharedIndicatorClassName: C
3482
3491
  }
3483
3492
  );
3484
- }, Qa = (e, t, o, s) => e.flatMap((n) => {
3493
+ }, Ja = (e, t, o, s) => e.flatMap((n) => {
3485
3494
  if (!o(n)) return [];
3486
3495
  const r = { node: n, parentPath: s };
3487
3496
  return n.nodeType !== O.FOLDER || !t.has(n.path) ? [r] : [
3488
3497
  r,
3489
- ...Qa(
3498
+ ...Ja(
3490
3499
  n.items ?? [],
3491
3500
  t,
3492
3501
  o,
3493
3502
  n.path
3494
3503
  )
3495
3504
  ];
3496
- }), Ri = ({
3505
+ }), Ii = ({
3497
3506
  items: e,
3498
3507
  showFiles: t = !1,
3499
3508
  expandedPaths: o,
@@ -3514,21 +3523,21 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3514
3523
  onRenameSave: b,
3515
3524
  onRenameCancel: f,
3516
3525
  onRenameValidate: u,
3517
- onExpandedPathsChange: E,
3526
+ onExpandedPathsChange: S,
3518
3527
  onCreateFolderSave: v,
3519
3528
  onCreateFolderCancel: T,
3520
3529
  forbiddenSymbolsRegExp: I,
3521
- forbiddenSymbolsTooltip: S,
3522
- newFolderDefaultName: W,
3530
+ forbiddenSymbolsTooltip: E,
3531
+ newFolderDefaultName: H,
3523
3532
  ariaLabel: G = "Folders",
3524
3533
  autoFocus: q = !1,
3525
3534
  onEscape: P
3526
3535
  }) => {
3527
- const { expandedPaths: _, togglePath: V } = Ya({
3536
+ const { expandedPaths: _, togglePath: V } = Qa({
3528
3537
  expandedPaths: o ?? /* @__PURE__ */ new Set(),
3529
- onExpandedPathsChange: E
3530
- }), z = (k) => (c || !ja(k)) && (t || k.nodeType === O.FOLDER), j = U(
3531
- () => Qa(e, _, z),
3538
+ onExpandedPathsChange: S
3539
+ }), z = (k) => (c || !Za(k)) && (t || k.nodeType === O.FOLDER), j = U(
3540
+ () => Ja(e, _, z),
3532
3541
  // isNodeVisible only reads the two flags listed here.
3533
3542
  // eslint-disable-next-line react-hooks/exhaustive-deps
3534
3543
  [e, _, c, t]
@@ -3540,7 +3549,7 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3540
3549
  C?.(k), V(k.path);
3541
3550
  }, ue = (k) => {
3542
3551
  k != null && (Re(k), ge.current.get(k)?.focus());
3543
- }, Se = (k) => {
3552
+ }, Ee = (k) => {
3544
3553
  const ae = j.findIndex(
3545
3554
  (Oe) => ge.current.get(Oe.node.path) === k.target
3546
3555
  );
@@ -3584,7 +3593,7 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3584
3593
  folderId: Cn,
3585
3594
  id: Cn,
3586
3595
  items: [],
3587
- name: W || "",
3596
+ name: H || "",
3588
3597
  nodeType: O.FOLDER,
3589
3598
  parentPath: p,
3590
3599
  path: `${p}/${Cn}`
@@ -3593,19 +3602,19 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3593
3602
  ]);
3594
3603
  const Q = B.filter(z);
3595
3604
  return Q.map((ee, Ie) => {
3596
- const { path: re, nodeType: Ve, name: Oe, items: x } = ee, M = Ve === O.FOLDER, H = Array.isArray(x) && x.length > 0 && x.some((Me) => Me.nodeType === O.FOLDER || t), Y = _.has(re), $ = i === re, le = s.has(re), ye = D === re || re === `${p}/${Cn}`, be = n.has(re), ce = r.has(re), J = m && N && re === m && M, He = u && ((Me) => u(Me, ee)), Ye = $ ? "bg-control-accent-alpha" : "", We = J ? [] : R?.(ee) ?? [], $t = I ? fa(
3605
+ const { path: re, nodeType: Ve, name: Oe, items: x } = ee, M = Ve === O.FOLDER, W = Array.isArray(x) && x.length > 0 && x.some((Me) => Me.nodeType === O.FOLDER || t), Y = _.has(re), $ = i === re, le = s.has(re), ye = D === re || re === `${p}/${Cn}`, be = n.has(re), ce = r.has(re), J = m && N && re === m && M, We = u && ((Me) => u(Me, ee)), Ye = $ ? "bg-control-accent-alpha" : "", He = J ? [] : R?.(ee) ?? [], $t = I ? fa(
3597
3606
  { name: ee.name, isFolder: M },
3598
3607
  I,
3599
- S
3608
+ E
3600
3609
  ) : void 0;
3601
3610
  return /* @__PURE__ */ a("div", { className: "cursor-pointer", children: /* @__PURE__ */ K("div", { className: "flex flex-col w-full gap-1", children: [
3602
3611
  /* @__PURE__ */ a(
3603
3612
  Dt,
3604
3613
  {
3605
- trigger: We.length > 0 ? [_a.ContextMenu] : [],
3614
+ trigger: He.length > 0 ? [za.ContextMenu] : [],
3606
3615
  className: "w-full h-[32px]",
3607
3616
  anchorToMouse: !0,
3608
- items: We,
3617
+ items: He,
3609
3618
  children: /* @__PURE__ */ K(
3610
3619
  "div",
3611
3620
  {
@@ -3623,7 +3632,7 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3623
3632
  onFocus: (Me) => {
3624
3633
  Me.target === Me.currentTarget && Re(re);
3625
3634
  },
3626
- style: { paddingLeft: `${ae * Di}px` },
3635
+ style: { paddingLeft: `${ae * Ri}px` },
3627
3636
  className: Te(
3628
3637
  "py-1 pr-3 gap-2 dial-small-paragraph-text flex justify-between hover:bg-control-accent-alpha-hover rounded-full group/item w-full relative",
3629
3638
  "outline-none focus-visible:outline focus-visible:outline-focus focus-visible:-outline-offset-1",
@@ -3644,13 +3653,13 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3644
3653
  onClick: () => !ye && oe(ee),
3645
3654
  children: /* @__PURE__ */ K(ke, { children: [
3646
3655
  M && /* @__PURE__ */ a(
3647
- ps,
3656
+ fs,
3648
3657
  {
3649
- ...bi,
3658
+ ...Ti,
3650
3659
  className: Te(
3651
3660
  "flex-shrink-0 text-secondary",
3652
3661
  Y && "rotate-90 transition-all",
3653
- be && !H && "text-transparent"
3662
+ be && !W && "text-transparent"
3654
3663
  )
3655
3664
  }
3656
3665
  ),
@@ -3674,7 +3683,7 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3674
3683
  creating: re === `${p}/${Cn}`,
3675
3684
  onSave: b,
3676
3685
  onCancel: f,
3677
- validate: He,
3686
+ validate: We,
3678
3687
  onCreateFolderSave: v,
3679
3688
  onCreateFolderCancel: T
3680
3689
  }
@@ -3683,12 +3692,12 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3683
3692
  ] })
3684
3693
  }
3685
3694
  ),
3686
- We.length > 0 && !ye && !J && /* @__PURE__ */ a("div", { className: "flex-1 flex justify-end", children: /* @__PURE__ */ a(
3695
+ He.length > 0 && !ye && !J && /* @__PURE__ */ a("div", { className: "flex-1 flex justify-end", children: /* @__PURE__ */ a(
3687
3696
  Dt,
3688
3697
  {
3689
3698
  placement: "bottom-start",
3690
3699
  allowedPlacements: ["top-start", "top-end"],
3691
- items: We,
3700
+ items: He,
3692
3701
  className: "sticky right-0",
3693
3702
  children: /* @__PURE__ */ a(
3694
3703
  Ut,
@@ -3711,7 +3720,7 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3711
3720
  };
3712
3721
  return /* @__PURE__ */ a("div", { className: "flex-1 size-full overflow-y-auto pb-6", children: e.length > 0 ? (
3713
3722
  // Focus lives on the roving-tabIndex rows; the root only routes their keys.
3714
- /* @__PURE__ */ a("div", { role: "tree", "aria-label": G, onKeyDown: Se, children: Ae(e, 0) })
3723
+ /* @__PURE__ */ a("div", { role: "tree", "aria-label": G, onKeyDown: Ee, children: Ae(e, 0) })
3715
3724
  ) : /* @__PURE__ */ a(
3716
3725
  Jo,
3717
3726
  {
@@ -3720,7 +3729,7 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3720
3729
  icon: g
3721
3730
  }
3722
3731
  ) });
3723
- }, xi = ({
3732
+ }, Fi = ({
3724
3733
  selectedFiles: e,
3725
3734
  actionLabels: t,
3726
3735
  onDuplicate: o,
@@ -3847,7 +3856,7 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3847
3856
  p,
3848
3857
  D,
3849
3858
  N
3850
- ]), Ii = ({
3859
+ ]), Si = ({
3851
3860
  id: e,
3852
3861
  name: t,
3853
3862
  nodeType: o,
@@ -3876,7 +3885,7 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3876
3885
  /* @__PURE__ */ a("span", { children: o === O.ITEM ? wn(s) : "" }),
3877
3886
  n && s && /* @__PURE__ */ a(Jn, { size: 2, className: "text-secondary" }),
3878
3887
  n ? /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a(
3879
- Ua,
3888
+ Ga,
3880
3889
  {
3881
3890
  value: n,
3882
3891
  locale: r?.toString(),
@@ -3887,8 +3896,8 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3887
3896
  ) }) : null
3888
3897
  ] })
3889
3898
  }
3890
- ) }) }), Fi = (e) => (t, o, s) => ({
3891
- colId: Ee.Name,
3899
+ ) }) }), Ei = (e) => (t, o, s) => ({
3900
+ colId: Se.Name,
3892
3901
  field: "name",
3893
3902
  headerName: e,
3894
3903
  flex: 1,
@@ -3934,28 +3943,28 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3934
3943
  const {
3935
3944
  renameTriggerView: f,
3936
3945
  renamedPath: u,
3937
- renamedItem: E,
3946
+ renamedItem: S,
3938
3947
  getDisplayName: v,
3939
3948
  onRenameValidate: T,
3940
3949
  onRenameSave: I,
3941
- onRenameCancel: S
3950
+ onRenameCancel: E
3942
3951
  } = n.context;
3943
- if (f === Bt.Grid && u === n.data?.path && E && n.data) {
3944
- const q = v(E);
3952
+ if (f === Bt.Grid && u === n.data?.path && S && n.data) {
3953
+ const q = v(S);
3945
3954
  return /* @__PURE__ */ a(
3946
3955
  oo,
3947
3956
  {
3948
3957
  name: q,
3949
3958
  type: r === O.FOLDER ? ht.Folder : ht.File,
3950
- fileExtension: E.name.split(".").pop(),
3959
+ fileExtension: S.name.split(".").pop(),
3951
3960
  elementId: `rename-${n.data.id}`,
3952
3961
  editing: !0,
3953
3962
  shared: m,
3954
3963
  sharedIndicatorClassName: b,
3955
3964
  iconSize: dt,
3956
- validate: (P) => T(P, E),
3965
+ validate: (P) => T(P, S),
3957
3966
  onSave: I,
3958
- onCancel: S,
3967
+ onCancel: E,
3959
3968
  inputContainerClassName: Te([
3960
3969
  "!h-9",
3961
3970
  s && r === O.ITEM && "!h-10"
@@ -3966,7 +3975,7 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3966
3975
  }
3967
3976
  if (s)
3968
3977
  return /* @__PURE__ */ a(
3969
- Ii,
3978
+ Si,
3970
3979
  {
3971
3980
  id: n.data.id,
3972
3981
  name: n.data.name,
@@ -3991,7 +4000,7 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
3991
4000
  n.context.forbiddenSymbolsTooltip
3992
4001
  );
3993
4002
  return r === O.FOLDER ? /* @__PURE__ */ a(
3994
- La,
4003
+ _a,
3995
4004
  {
3996
4005
  name: n.data.name,
3997
4006
  shared: m,
@@ -4014,36 +4023,36 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
4014
4023
  }
4015
4024
  );
4016
4025
  }
4017
- }), Ei = (e) => (t, o) => ({
4018
- colId: Ee.UpdatedAt,
4026
+ }), Ai = (e) => (t, o) => ({
4027
+ colId: Se.UpdatedAt,
4019
4028
  field: "updatedAt",
4020
4029
  headerName: e,
4021
4030
  width: 168,
4022
4031
  suppressSizeToFit: !0,
4023
4032
  cellRenderer: (s) => {
4024
4033
  const n = s.context?.disabledRowIds?.has(s.data?.path) ?? !1;
4025
- return /* @__PURE__ */ a(Ua, { ...s, hideTooltip: n });
4034
+ return /* @__PURE__ */ a(Ga, { ...s, hideTooltip: n });
4026
4035
  },
4027
4036
  cellRendererParams: {
4028
4037
  locale: t,
4029
4038
  options: o
4030
4039
  },
4031
4040
  filterValueGetter: (s) => {
4032
- const n = s.data[s.colDef.field || ""], r = zs(n);
4041
+ const n = s.data[s.colDef.field || ""], r = Bs(n);
4033
4042
  return r ? new Intl.DateTimeFormat(
4034
- t || Bs,
4043
+ t || Ws,
4035
4044
  o || Hs
4036
4045
  ).format(r) : "";
4037
4046
  }
4038
- }), Si = (e) => ({
4039
- colId: Ee.Size,
4047
+ }), Pi = (e) => ({
4048
+ colId: Se.Size,
4040
4049
  field: "size",
4041
4050
  headerName: e,
4042
4051
  width: 120,
4043
4052
  suppressSizeToFit: !0,
4044
4053
  cellRenderer: (t) => t.data.nodeType === O.ITEM ? wn(t.data.contentLength) : "",
4045
4054
  filterValueGetter: (t) => t.data.nodeType === O.ITEM ? wn(t.data.contentLength) : ""
4046
- }), Ai = (e) => {
4055
+ }), ki = (e) => {
4047
4056
  const t = e.event;
4048
4057
  if (!(t?.target ?? null)?.closest("input") || !t) return !1;
4049
4058
  switch (t.key) {
@@ -4058,7 +4067,7 @@ const Qr = 12, Jr = 8, ei = "w-full flex justify-center", ti = "w-auto max-w-ful
4058
4067
  return !1;
4059
4068
  }
4060
4069
  };
4061
- function Pi({
4070
+ function Oi({
4062
4071
  userColumnDefs: e,
4063
4072
  filterable: t,
4064
4073
  dateLocale: o,
@@ -4071,9 +4080,9 @@ function Pi({
4071
4080
  rootItemPath: g
4072
4081
  }) {
4073
4082
  const c = U(() => [
4074
- Fi("Name")(o, s, r),
4083
+ Ei("Name")(o, s, r),
4075
4084
  {
4076
- colId: Ee.Path,
4085
+ colId: Se.Path,
4077
4086
  field: "path",
4078
4087
  headerName: "Path",
4079
4088
  flex: 1,
@@ -4087,10 +4096,10 @@ function Pi({
4087
4096
  return /* @__PURE__ */ a(_t, { text: C, hideTooltip: N });
4088
4097
  }
4089
4098
  },
4090
- Ei("Modified Date")(o, s),
4091
- Si("Size"),
4099
+ Ai("Modified Date")(o, s),
4100
+ Pi("Size"),
4092
4101
  {
4093
- colId: Ee.Author,
4102
+ colId: Se.Author,
4094
4103
  field: "author",
4095
4104
  headerName: "Author",
4096
4105
  width: 200,
@@ -4098,7 +4107,7 @@ function Pi({
4098
4107
  cellRenderer: (p) => p.data.author
4099
4108
  },
4100
4109
  {
4101
- colId: Ee.Owner,
4110
+ colId: Se.Owner,
4102
4111
  field: "owner",
4103
4112
  headerName: "Owner",
4104
4113
  width: 200,
@@ -4114,14 +4123,14 @@ function Pi({
4114
4123
  p || (N = N.filter(
4115
4124
  (C) => C.colId && n.includes(C.colId)
4116
4125
  )), i && (r && (N = N.slice(0, 1)), N.push(l));
4117
- const m = (C) => C.colId === Ee.Name;
4126
+ const m = (C) => C.colId === Se.Name;
4118
4127
  return N.map((C) => {
4119
4128
  const R = {
4120
4129
  ...C,
4121
4130
  filter: t ? C.filter : !1,
4122
4131
  floatingFilter: t ? C.floatingFilter : !1
4123
4132
  };
4124
- return m(C) && !C.suppressKeyboardEvent && (R.suppressKeyboardEvent = Ai), R;
4133
+ return m(C) && !C.suppressKeyboardEvent && (R.suppressKeyboardEvent = ki), R;
4125
4134
  });
4126
4135
  }, [
4127
4136
  l,
@@ -4135,14 +4144,14 @@ function Pi({
4135
4144
  e
4136
4145
  ]) };
4137
4146
  }
4138
- const ki = () => {
4139
- const e = gs(Ka);
4147
+ const Mi = () => {
4148
+ const e = vs(Xa);
4140
4149
  if (!e)
4141
4150
  throw new Error(
4142
4151
  "useFileManagerContext must be used within <FileManagerProvider>"
4143
4152
  );
4144
4153
  return e;
4145
- }, Oi = ({
4154
+ }, Li = ({
4146
4155
  actionLabels: e,
4147
4156
  onDuplicate: t,
4148
4157
  onCopy: o,
@@ -4163,7 +4172,7 @@ const ki = () => {
4163
4172
  isDuplicateFolderAvailable: b = !0,
4164
4173
  forbiddenSymbolsRegExp: f,
4165
4174
  onGridCreateSiblingFolder: u,
4166
- onGridCreateChildFolder: E
4175
+ onGridCreateChildFolder: S
4167
4176
  }) => U(() => (v) => {
4168
4177
  const T = [];
4169
4178
  if (!e)
@@ -4175,7 +4184,7 @@ const ki = () => {
4175
4184
  key: "addSibling",
4176
4185
  label: e[y.AddSibling],
4177
4186
  icon: /* @__PURE__ */ a(
4178
- Va,
4187
+ $a,
4179
4188
  {
4180
4189
  width: A.size,
4181
4190
  height: A.size,
@@ -4188,14 +4197,14 @@ const ki = () => {
4188
4197
  key: "addChild",
4189
4198
  label: e[y.AddChild],
4190
4199
  icon: /* @__PURE__ */ a(
4191
- Ga,
4200
+ Va,
4192
4201
  {
4193
4202
  width: A.size,
4194
4203
  height: A.size,
4195
4204
  className: "text-secondary"
4196
4205
  }
4197
4206
  ),
4198
- onClick: () => E([v])
4207
+ onClick: () => S([v])
4199
4208
  },
4200
4209
  {
4201
4210
  key: "divider",
@@ -4213,8 +4222,8 @@ const ki = () => {
4213
4222
  ),
4214
4223
  onClick: () => m?.(v)
4215
4224
  });
4216
- const S = v.nodeType === O.ITEM || v.nodeType === O.FOLDER && b;
4217
- e[y.Duplicate] && S && !I && T.push({
4225
+ const E = v.nodeType === O.ITEM || v.nodeType === O.FOLDER && b;
4226
+ e[y.Duplicate] && E && !I && T.push({
4218
4227
  key: y.Duplicate,
4219
4228
  label: e[y.Duplicate],
4220
4229
  icon: /* @__PURE__ */ a(na, { ...A, className: "text-secondary" }),
@@ -4266,7 +4275,7 @@ const ki = () => {
4266
4275
  ),
4267
4276
  onClick: () => p?.(v.path)
4268
4277
  });
4269
- const W = v.name.split("."), G = W.length > 1 ? W[W.length - 1] : "", q = G && C?.includes(`.${G}`);
4278
+ const H = v.name.split("."), G = H.length > 1 ? H[H.length - 1] : "", q = G && C?.includes(`.${G}`);
4270
4279
  e[y.Preview] && typeof N == "function" && v.nodeType === O.ITEM && q && !I && T.push({
4271
4280
  key: y.Preview,
4272
4281
  label: e[y.Preview],
@@ -4286,7 +4295,7 @@ const ki = () => {
4286
4295
  key: y.Rename,
4287
4296
  label: e[y.Rename],
4288
4297
  icon: /* @__PURE__ */ a(
4289
- Ma,
4298
+ La,
4290
4299
  {
4291
4300
  ...A,
4292
4301
  className: "text-secondary"
@@ -4297,7 +4306,7 @@ const ki = () => {
4297
4306
  key: y.Info,
4298
4307
  label: e[y.Info],
4299
4308
  icon: /* @__PURE__ */ a(
4300
- fs,
4309
+ ms,
4301
4310
  {
4302
4311
  ...A,
4303
4312
  className: "text-secondary"
@@ -4348,9 +4357,9 @@ const ki = () => {
4348
4357
  R,
4349
4358
  b,
4350
4359
  f,
4351
- E,
4360
+ S,
4352
4361
  u
4353
- ]), Mi = ({
4362
+ ]), _i = ({
4354
4363
  onGridAddSibling: e,
4355
4364
  onGridAddChild: t,
4356
4365
  onTreeAddSibling: o,
@@ -4386,10 +4395,10 @@ const ki = () => {
4386
4395
  onGridCreateChildFolder: h,
4387
4396
  onTreeCreateChildFolder: g
4388
4397
  };
4389
- }, Li = {
4398
+ }, zi = {
4390
4399
  field: ot.Name,
4391
4400
  direction: Gt.Asc
4392
- }, _i = (e) => /* @__PURE__ */ a(Kr, { ...e, children: /* @__PURE__ */ a(zi, {}) }), zi = () => {
4401
+ }, Bi = (e) => /* @__PURE__ */ a(Xr, { ...e, children: /* @__PURE__ */ a(Wi, {}) }), Wi = () => {
4393
4402
  const {
4394
4403
  className: e,
4395
4404
  items: t,
@@ -4405,18 +4414,18 @@ const ki = () => {
4405
4414
  deleteConfirmationOptions: D,
4406
4415
  destinationFolderPopupOptions: p,
4407
4416
  conflictResolutionPopupOptions: N,
4408
- compactViewWidthBreakpoint: m = lr,
4417
+ compactViewWidthBreakpoint: m = cr,
4409
4418
  customBreakpointRef: C,
4410
4419
  sharedByMePaths: R,
4411
4420
  allowedFileTypes: b,
4412
4421
  maxSelectableFileSize: f,
4413
4422
  areHiddenFilesVisible: u,
4414
- toggleHiddenFilesVisibility: E,
4423
+ toggleHiddenFilesVisibility: S,
4415
4424
  currentPath: v,
4416
4425
  gridRows: T,
4417
4426
  selectedPaths: I,
4418
- selectedFiles: S,
4419
- clearSelection: W,
4427
+ selectedFiles: E,
4428
+ clearSelection: H,
4420
4429
  setSelectedPaths: G,
4421
4430
  effectiveSearchValue: q,
4422
4431
  handleBreadcrumbItemClick: P,
@@ -4431,7 +4440,7 @@ const ki = () => {
4431
4440
  destinationFolderMode: ne,
4432
4441
  handleSetCopiedFiles: oe,
4433
4442
  handleSetMovedFiles: ue,
4434
- handleDuplicate: Se,
4443
+ handleDuplicate: Ee,
4435
4444
  handleCopyTo: Ae,
4436
4445
  handleMoveTo: k,
4437
4446
  handleGridAddSibling: ae,
@@ -4445,7 +4454,7 @@ const ki = () => {
4445
4454
  deleteConfirmationOpen: Oe,
4446
4455
  itemsToDelete: x,
4447
4456
  renamedPath: M,
4448
- renamedItem: H,
4457
+ renamedItem: W,
4449
4458
  onRename: Y,
4450
4459
  onRenameSave: $,
4451
4460
  onRenameCancel: le,
@@ -4453,9 +4462,9 @@ const ki = () => {
4453
4462
  createdFolderPath: be,
4454
4463
  forbiddenSymbolsRegExp: ce,
4455
4464
  forbiddenSymbolsTooltip: J,
4456
- getDisplayName: He,
4465
+ getDisplayName: We,
4457
4466
  isDragging: Ye,
4458
- isDraggingOverWindow: We,
4467
+ isDraggingOverWindow: He,
4459
4468
  handleDragEnter: $t,
4460
4469
  handleDragLeave: Me,
4461
4470
  handleDragOver: so,
@@ -4494,12 +4503,12 @@ const ki = () => {
4494
4503
  searchInProgress: ft,
4495
4504
  isSearchMode: it,
4496
4505
  emptyStateIcon: mt,
4497
- emptyStateTitle: En = "This folder is empty",
4498
- emptyStateDescription: Sn,
4506
+ emptyStateTitle: Sn = "This folder is empty",
4507
+ emptyStateDescription: En,
4499
4508
  searchEmptyStateTitle: An = "No data",
4500
4509
  sharedWithMeIds: lt,
4501
4510
  onFolderPopupPathChange: Ft,
4502
- onManagePermissions: Et,
4511
+ onManagePermissions: St,
4503
4512
  onPreview: mo,
4504
4513
  onOpenInNewTab: Co,
4505
4514
  previewExtensions: go,
@@ -4513,15 +4522,15 @@ const ki = () => {
4513
4522
  hideSearchPathItemName: Ct,
4514
4523
  showHiddenFileSwitcherInDestinationPopup: No,
4515
4524
  showCreateFolderButtonInDestinationPopup: qt,
4516
- newFolderDefaultName: St
4517
- } = ki(), {
4518
- header: Ze = sr,
4519
- containerClassName: pe = Xs,
4525
+ newFolderDefaultName: Et
4526
+ } = Mi(), {
4527
+ header: Ze = rr,
4528
+ containerClassName: pe = qs,
4520
4529
  additionalButtons: gt,
4521
4530
  tabs: fe,
4522
4531
  activeTab: Pe,
4523
4532
  onTabChange: Le,
4524
- tabsAriaLabel: On = er,
4533
+ tabsAriaLabel: On = tr,
4525
4534
  ...Mn
4526
4535
  } = n ?? {}, {
4527
4536
  searchable: At = !0,
@@ -4536,14 +4545,14 @@ const ki = () => {
4536
4545
  invalid: xo,
4537
4546
  searchClassName: Io,
4538
4547
  searchContainerClassName: Fo,
4539
- ...Eo
4548
+ ...So
4540
4549
  } = i ?? {}, {
4541
4550
  sortable: Pt = !0,
4542
4551
  sort: Qt,
4543
- defaultSort: So = Li,
4552
+ defaultSort: Eo = zi,
4544
4553
  onSortChange: Ln,
4545
4554
  ..._n
4546
- } = l ?? {}, [Ao, Po] = L(So), Jt = Qt ?? Ao, zn = Ce(null), Bn = d(
4555
+ } = l ?? {}, [Ao, Po] = L(Eo), Jt = Qt ?? Ao, zn = Ce(null), Bn = d(
4547
4556
  (w) => {
4548
4557
  zn.current = w, ge?.(w);
4549
4558
  },
@@ -4553,16 +4562,16 @@ const ki = () => {
4553
4562
  zn.current?.applyColumnState({ defaultState: { sort: null } }), Qt || Po(w), Ln?.(w);
4554
4563
  },
4555
4564
  [Qt, Ln]
4556
- ), Hn = U(
4557
- () => Pt ? Ir(T, Jt) : T,
4565
+ ), Wn = U(
4566
+ () => Pt ? Fr(T, Jt) : T,
4558
4567
  [T, Jt, Pt]
4559
- ), kt = vs(), { renameTriggerView: Ot, onGridRename: Oo, onTreeRename: Wn } = pr({ onRename: Y }), {
4568
+ ), kt = ws(), { renameTriggerView: Ot, onGridRename: Oo, onTreeRename: Hn } = fr({ onRename: Y }), {
4560
4569
  createFolderTriggerView: en,
4561
4570
  onGridCreateSiblingFolder: Mo,
4562
4571
  onTreeCreateSiblingFolder: tn,
4563
4572
  onGridCreateChildFolder: Lo,
4564
4573
  onTreeCreateChildFolder: nn
4565
- } = Mi({
4574
+ } = _i({
4566
4575
  onGridAddSibling: ae,
4567
4576
  onGridAddChild: ve,
4568
4577
  onTreeAddSibling: B,
@@ -4571,21 +4580,21 @@ const ki = () => {
4571
4580
  columnDefs: _o,
4572
4581
  filterable: zo = !0,
4573
4582
  dateLocale: Bo,
4574
- dateOptions: Ho,
4583
+ dateOptions: Wo,
4575
4584
  selectionMode: Un,
4576
4585
  wrapCustomCellRenderers: Gn,
4577
- visibleColumns: Vn = cr,
4586
+ visibleColumns: Vn = dr,
4578
4587
  allowDisabledContextMenu: Mt = !1,
4579
4588
  ...Ue
4580
- } = h ?? {}, { containerRef: Wo, isBelowBreakpoint: Ke } = fr(
4589
+ } = h ?? {}, { containerRef: Ho, isBelowBreakpoint: Ke } = mr(
4581
4590
  m,
4582
4591
  C
4583
4592
  ), Uo = U(() => it ? [
4584
- Ee.Name,
4585
- Ee.Path,
4586
- Ee.Actions
4593
+ Se.Name,
4594
+ Se.Path,
4595
+ Se.Actions
4587
4596
  ] : Vn, [it, Vn]), on = d(
4588
- (w, ie, me) => Tr(
4597
+ (w, ie, me) => Rr(
4589
4598
  w,
4590
4599
  ie,
4591
4600
  me,
@@ -4610,7 +4619,7 @@ const ki = () => {
4610
4619
  key: "addSibling",
4611
4620
  label: n.actionLabels[y.AddSibling],
4612
4621
  icon: /* @__PURE__ */ a(
4613
- Va,
4622
+ $a,
4614
4623
  {
4615
4624
  width: A.size,
4616
4625
  height: A.size,
@@ -4622,7 +4631,7 @@ const ki = () => {
4622
4631
  key: "addChild",
4623
4632
  label: n.actionLabels[y.AddChild],
4624
4633
  icon: /* @__PURE__ */ a(
4625
- Ga,
4634
+ Va,
4626
4635
  {
4627
4636
  width: A.size,
4628
4637
  height: A.size,
@@ -4640,7 +4649,7 @@ const ki = () => {
4640
4649
  className: "text-secondary"
4641
4650
  }
4642
4651
  ),
4643
- onClick: () => Se([w])
4652
+ onClick: () => Ee([w])
4644
4653
  }), n.actionLabels[y.Copy] && !ze && !Nt && me.push({
4645
4654
  key: De.Copy,
4646
4655
  label: n.actionLabels[y.Copy],
@@ -4680,7 +4689,7 @@ const ki = () => {
4680
4689
  }
4681
4690
  ),
4682
4691
  onClick: () => ee([w])
4683
- }), n.actionLabels[y.ManagePermissions] && typeof Et == "function" && w.nodeType === O.FOLDER && !ze && me.push({
4692
+ }), n.actionLabels[y.ManagePermissions] && typeof St == "function" && w.nodeType === O.FOLDER && !ze && me.push({
4684
4693
  key: y.ManagePermissions,
4685
4694
  label: n.actionLabels[y.ManagePermissions],
4686
4695
  icon: /* @__PURE__ */ a(
@@ -4690,7 +4699,7 @@ const ki = () => {
4690
4699
  className: "text-secondary"
4691
4700
  }
4692
4701
  ),
4693
- onClick: () => Et?.(w.path)
4702
+ onClick: () => St?.(w.path)
4694
4703
  }), n.actionLabels[y.Delete] && w.permissions?.includes(Vt.WRITE) && !ze && me.push({
4695
4704
  key: "delete",
4696
4705
  label: n.actionLabels[y.Delete],
@@ -4701,13 +4710,13 @@ const ki = () => {
4701
4710
  key: "rename",
4702
4711
  label: n.actionLabels[y.Rename],
4703
4712
  icon: /* @__PURE__ */ a(
4704
- Ma,
4713
+ La,
4705
4714
  {
4706
4715
  ...A,
4707
4716
  className: "text-secondary"
4708
4717
  }
4709
4718
  ),
4710
- onClick: () => Wn(w.path)
4719
+ onClick: () => Hn(w.path)
4711
4720
  }), n.actionLabels[y.Unshare] && lt?.includes(w.path) && !ze && me.push({
4712
4721
  key: "unshare",
4713
4722
  label: n.actionLabels[y.Unshare],
@@ -4740,13 +4749,13 @@ const ki = () => {
4740
4749
  [
4741
4750
  n?.actionLabels,
4742
4751
  ce,
4743
- Et,
4744
- Se,
4752
+ St,
4753
+ Ee,
4745
4754
  oe,
4746
4755
  se,
4747
4756
  ue,
4748
4757
  ee,
4749
- Wn,
4758
+ Hn,
4750
4759
  de,
4751
4760
  je,
4752
4761
  lt,
@@ -4757,16 +4766,16 @@ const ki = () => {
4757
4766
  ]
4758
4767
  ), vt = U(() => {
4759
4768
  const w = /* @__PURE__ */ new Set();
4760
- return S.forEach((ie, me) => w.add(me)), w;
4761
- }, [S]), an = d(
4769
+ return E.forEach((ie, me) => w.add(me)), w;
4770
+ }, [E]), an = d(
4762
4771
  (w, ie) => {
4763
4772
  G(w), j?.(ie);
4764
4773
  },
4765
4774
  [j, G]
4766
- ), sn = xi({
4767
- selectedFiles: S,
4775
+ ), sn = Fi({
4776
+ selectedFiles: E,
4768
4777
  actionLabels: c?.actionLabels,
4769
- onDuplicate: Se,
4778
+ onDuplicate: Ee,
4770
4779
  onCopy: (w) => {
4771
4780
  oe(w), se(De.Copy);
4772
4781
  },
@@ -4780,7 +4789,7 @@ const ki = () => {
4780
4789
  getCurrentFolderPath: () => v ?? "/",
4781
4790
  sharedWithMeIds: lt,
4782
4791
  sharedByMePaths: R,
4783
- onClearSelection: W,
4792
+ onClearSelection: H,
4784
4793
  forbiddenSymbolsRegExp: ce
4785
4794
  }), rn = d(
4786
4795
  (w) => {
@@ -4790,15 +4799,15 @@ const ki = () => {
4790
4799
  ), jn = d(() => g ? /* @__PURE__ */ a(
4791
4800
  "div",
4792
4801
  {
4793
- className: $s,
4802
+ className: js,
4794
4803
  role: "toolbar",
4795
4804
  "aria-label": "File Manager Toolbar",
4796
4805
  children: /* @__PURE__ */ a(
4797
- vi,
4806
+ yi,
4798
4807
  {
4799
4808
  ...g,
4800
4809
  areHiddenFilesVisible: u,
4801
- onToggleHiddenFiles: E,
4810
+ onToggleHiddenFiles: S,
4802
4811
  isNewButtonVisible: xt,
4803
4812
  isNewButtonDisabled: bn,
4804
4813
  newButtonDropdownItems: jt
@@ -4807,27 +4816,27 @@ const ki = () => {
4807
4816
  }
4808
4817
  ) : null, [
4809
4818
  u,
4810
- E,
4819
+ S,
4811
4820
  g,
4812
4821
  xt,
4813
4822
  bn,
4814
4823
  jt
4815
- ]), wt = T.length === 0 && !s && !ft, Go = d(() => !c || I.size === 0 || wt ? null : /* @__PURE__ */ a("div", { className: or, children: /* @__PURE__ */ a(
4816
- si,
4824
+ ]), wt = T.length === 0 && !s && !ft, Go = d(() => !c || I.size === 0 || wt ? null : /* @__PURE__ */ a("div", { className: ar, children: /* @__PURE__ */ a(
4825
+ ri,
4817
4826
  {
4818
4827
  ...c,
4819
4828
  selectedCount: I.size,
4820
- onClearSelection: W,
4829
+ onClearSelection: H,
4821
4830
  actions: sn
4822
4831
  }
4823
4832
  ) }), [
4824
4833
  c,
4825
4834
  I,
4826
4835
  wt,
4827
- W,
4836
+ H,
4828
4837
  sn
4829
4838
  ]);
4830
- ws(
4839
+ ys(
4831
4840
  et,
4832
4841
  () => ({
4833
4842
  createFolder: Rn
@@ -4840,13 +4849,13 @@ const ki = () => {
4840
4849
  className: pe,
4841
4850
  "aria-labelledby": Ze ? kt : void 0,
4842
4851
  "aria-label": Ze ? void 0 : "File Manager Tree Navigation",
4843
- children: /* @__PURE__ */ K("div", { className: qs, children: [
4844
- Ze || gt ? /* @__PURE__ */ K("div", { className: Qs, children: [
4845
- Ze ? /* @__PURE__ */ a("h1", { id: kt, className: Ys, children: Ze }) : null,
4852
+ children: /* @__PURE__ */ K("div", { className: Ys, children: [
4853
+ Ze || gt ? /* @__PURE__ */ K("div", { className: Js, children: [
4854
+ Ze ? /* @__PURE__ */ a("h1", { id: kt, className: Qs, children: Ze }) : null,
4846
4855
  gt ? /* @__PURE__ */ a("div", { className: "flex shrink-0 items-center gap-1", children: gt }) : null
4847
4856
  ] }) : null,
4848
4857
  fe?.length && Pe ? /* @__PURE__ */ a("div", { className: "px-3 py-2", children: /* @__PURE__ */ a(
4849
- Ws,
4858
+ Us,
4850
4859
  {
4851
4860
  items: fe,
4852
4861
  value: Pe,
@@ -4856,8 +4865,8 @@ const ki = () => {
4856
4865
  className: "shrink-0"
4857
4866
  }
4858
4867
  ) }) : null,
4859
- /* @__PURE__ */ a("div", { className: Js, children: /* @__PURE__ */ a(
4860
- Ri,
4868
+ /* @__PURE__ */ a("div", { className: er, children: /* @__PURE__ */ a(
4869
+ Ii,
4861
4870
  {
4862
4871
  ...Mn,
4863
4872
  items: t,
@@ -4877,7 +4886,7 @@ const ki = () => {
4877
4886
  createdFolderPath: en === bt.Tree ? be : null,
4878
4887
  onCreateFolderCancel: at,
4879
4888
  onCreateFolderSave: It,
4880
- newFolderDefaultName: St
4889
+ newFolderDefaultName: Et
4881
4890
  }
4882
4891
  ) })
4883
4892
  ] })
@@ -4912,10 +4921,10 @@ const ki = () => {
4912
4921
  be,
4913
4922
  at,
4914
4923
  It,
4915
- St
4916
- ]), Zn = Oi({
4924
+ Et
4925
+ ]), Zn = Li({
4917
4926
  actionLabels: h?.actionLabels,
4918
- onDuplicate: (w) => Se([w]),
4927
+ onDuplicate: (w) => Ee([w]),
4919
4928
  onCopy: (w) => {
4920
4929
  oe([w]), se(De.Copy);
4921
4930
  },
@@ -4930,7 +4939,7 @@ const ki = () => {
4930
4939
  onRemoveAccess: (w) => je?.([w]),
4931
4940
  sharedWithMeIds: lt,
4932
4941
  sharedByMePaths: R,
4933
- onManagePermissions: (w) => Et?.(w),
4942
+ onManagePermissions: (w) => St?.(w),
4934
4943
  onPreview: (w) => mo?.(w),
4935
4944
  onOpenInNewTab: (w) => Co?.(w),
4936
4945
  previewExtensions: go,
@@ -4948,16 +4957,16 @@ const ki = () => {
4948
4957
  ), $o = d(
4949
4958
  (w, ie, me) => Mt ? !1 : tt(w, ie, me),
4950
4959
  [Mt, tt]
4951
- ), { actionsColumnDef: jo } = ur({
4960
+ ), { actionsColumnDef: jo } = pr({
4952
4961
  getContextMenuItems: Lt,
4953
4962
  isRowDisabled: $o,
4954
4963
  allowedFileTypes: b,
4955
- buttonClassName: Ke ? "" : ar
4956
- }), { columnDefs: ln } = Pi({
4964
+ buttonClassName: Ke ? "" : sr
4965
+ }), { columnDefs: ln } = Oi({
4957
4966
  userColumnDefs: _o,
4958
4967
  filterable: zo,
4959
4968
  dateLocale: Bo,
4960
- dateOptions: Ho,
4969
+ dateOptions: Wo,
4961
4970
  effectiveVisibleColumns: Uo,
4962
4971
  isCompactView: Ke,
4963
4972
  hasActions: !!h?.actionLabels,
@@ -4966,7 +4975,7 @@ const ki = () => {
4966
4975
  rootItemPath: o?.path
4967
4976
  }), Kn = d(
4968
4977
  (w) => {
4969
- w.colDef.colId === Us || w.colDef.colId === ir || w.colDef.colId === Ee.Actions || M && w.data?.path === M || w.data?.isTemporary || Xt && Xt.includes(
4978
+ w.colDef.colId === Gs || w.colDef.colId === lr || w.colDef.colId === Se.Actions || M && w.data?.path === M || w.data?.isTemporary || Xt && Xt.includes(
4970
4979
  w.colDef.colId
4971
4980
  ) || w.data && z(w.data);
4972
4981
  },
@@ -4975,25 +4984,25 @@ const ki = () => {
4975
4984
  () => it ? /* @__PURE__ */ a(Jo, { title: An, icon: mt }) : /* @__PURE__ */ a(
4976
4985
  Jo,
4977
4986
  {
4978
- title: En,
4979
- description: Sn,
4987
+ title: Sn,
4988
+ description: En,
4980
4989
  icon: mt
4981
4990
  }
4982
4991
  ),
4983
4992
  [
4984
4993
  it,
4985
4994
  An,
4986
- Sn,
4995
+ En,
4987
4996
  mt,
4988
- En
4997
+ Sn
4989
4998
  ]
4990
4999
  ), qn = U(() => (w) => w.path, []), Yn = U(
4991
5000
  () => Te(
4992
5001
  "min-h-[248px] overflow-auto md:min-h-[266px]",
4993
5002
  Ye ? "border border-dashed border-info" : "",
4994
- We && !Ye ? "border border-dashed border-primary" : ""
5003
+ He && !Ye ? "border border-dashed border-primary" : ""
4995
5004
  ),
4996
- [Ye, We]
5005
+ [Ye, He]
4997
5006
  ), ct = U(
4998
5007
  () => ({
4999
5008
  ...Ue.additionalGridOptions,
@@ -5009,13 +5018,13 @@ const ki = () => {
5009
5018
  context: {
5010
5019
  cancelFolderCreation: at,
5011
5020
  saveFolderCreation: It,
5012
- getDisplayName: He,
5021
+ getDisplayName: We,
5013
5022
  onRenameCancel: le,
5014
5023
  onRenameSave: $,
5015
5024
  onRenameValidate: ye,
5016
5025
  renameTriggerView: Ot,
5017
5026
  validateFolderName: Tn,
5018
- renamedItem: H,
5027
+ renamedItem: W,
5019
5028
  renamedPath: M,
5020
5029
  createdFolderPath: be,
5021
5030
  newFolderTempId: Dn,
@@ -5025,7 +5034,7 @@ const ki = () => {
5025
5034
  forbiddenSymbolsRegExp: ce,
5026
5035
  forbiddenSymbolsTooltip: J,
5027
5036
  hideSearchPathItemName: Ct,
5028
- newFolderDefaultName: St,
5037
+ newFolderDefaultName: Et,
5029
5038
  filesLoading: s
5030
5039
  }
5031
5040
  }),
@@ -5035,13 +5044,13 @@ const ki = () => {
5035
5044
  At,
5036
5045
  at,
5037
5046
  It,
5038
- He,
5047
+ We,
5039
5048
  le,
5040
5049
  $,
5041
5050
  ye,
5042
5051
  Ot,
5043
5052
  Tn,
5044
- H,
5053
+ W,
5045
5054
  M,
5046
5055
  be,
5047
5056
  Dn,
@@ -5051,15 +5060,15 @@ const ki = () => {
5051
5060
  ce,
5052
5061
  J,
5053
5062
  Ct,
5054
- St,
5063
+ Et,
5055
5064
  s
5056
5065
  ]
5057
5066
  ), yt = U(
5058
5067
  () => wt ? Xn() : /* @__PURE__ */ a(
5059
- za,
5068
+ Ba,
5060
5069
  {
5061
5070
  columnDefs: ln,
5062
- rowData: Hn,
5071
+ rowData: Wn,
5063
5072
  getRowId: qn,
5064
5073
  loading: s || ft,
5065
5074
  getContextMenuItems: Lt,
@@ -5072,14 +5081,14 @@ const ki = () => {
5072
5081
  additionalGridOptions: ct,
5073
5082
  selectedRowIds: vt,
5074
5083
  onSelectionChange: an,
5075
- wrapperBorder: !Ye && !We,
5084
+ wrapperBorder: !Ye && !He,
5076
5085
  disabledRowIds: _e,
5077
5086
  allowDisabledContextMenu: Mt
5078
5087
  }
5079
5088
  ),
5080
5089
  [
5081
5090
  wt,
5082
- Hn,
5091
+ Wn,
5083
5092
  s,
5084
5093
  Xn,
5085
5094
  ln,
@@ -5096,36 +5105,36 @@ const ki = () => {
5096
5105
  vt,
5097
5106
  an,
5098
5107
  Ye,
5099
- We,
5108
+ He,
5100
5109
  _e,
5101
5110
  Mt
5102
5111
  ]
5103
5112
  );
5104
- return /* @__PURE__ */ a("section", { ref: Wo, className: "size-full", children: /* @__PURE__ */ K(
5113
+ return /* @__PURE__ */ a("section", { ref: Ho, className: "size-full", children: /* @__PURE__ */ K(
5105
5114
  "div",
5106
5115
  {
5107
5116
  className: Te(
5108
- Vs,
5117
+ $s,
5109
5118
  {
5110
5119
  "p-3 pt-4": Ke
5111
5120
  },
5112
5121
  e
5113
5122
  ),
5114
5123
  children: [
5115
- /* @__PURE__ */ K("div", { className: Te(js, yo), children: [
5124
+ /* @__PURE__ */ K("div", { className: Te(Zs, yo), children: [
5116
5125
  Vo(),
5117
5126
  /* @__PURE__ */ K(
5118
5127
  "div",
5119
5128
  {
5120
- className: Te(Zs, {
5129
+ className: Te(Ks, {
5121
5130
  "gap-3": Ke
5122
5131
  }),
5123
5132
  children: [
5124
- /* @__PURE__ */ K("div", { className: Ks, children: [
5133
+ /* @__PURE__ */ K("div", { className: Xs, children: [
5125
5134
  r && /* @__PURE__ */ a(
5126
- ci,
5135
+ di,
5127
5136
  {
5128
- ...Eo,
5137
+ ...So,
5129
5138
  makeHref: (w) => w.join("/"),
5130
5139
  path: v,
5131
5140
  onItemClick: P,
@@ -5138,15 +5147,15 @@ const ki = () => {
5138
5147
  /* @__PURE__ */ K(
5139
5148
  "div",
5140
5149
  {
5141
- className: Te(tr, "relative"),
5150
+ className: Te(nr, "relative"),
5142
5151
  onDragEnter: $t,
5143
5152
  onDragLeave: Me,
5144
5153
  onDragOver: so,
5145
5154
  onDrop: ro,
5146
5155
  children: [
5147
- (At || Pt) && /* @__PURE__ */ K("div", { className: dr, children: [
5156
+ (At || Pt) && /* @__PURE__ */ K("div", { className: hr, children: [
5148
5157
  At && /* @__PURE__ */ a(
5149
- ui,
5158
+ pi,
5150
5159
  {
5151
5160
  className: "flex-1 min-w-0",
5152
5161
  elementId: Yt,
@@ -5162,7 +5171,7 @@ const ki = () => {
5162
5171
  }
5163
5172
  ),
5164
5173
  Pt && /* @__PURE__ */ a(
5165
- gi,
5174
+ wi,
5166
5175
  {
5167
5176
  ..._n,
5168
5177
  className: Te(
@@ -5179,12 +5188,12 @@ const ki = () => {
5179
5188
  {
5180
5189
  role: "region",
5181
5190
  "aria-label": "File Manager Grid View",
5182
- className: nr,
5191
+ className: or,
5183
5192
  children: yt
5184
5193
  }
5185
5194
  ),
5186
5195
  /* @__PURE__ */ a(
5187
- Xr,
5196
+ qr,
5188
5197
  {
5189
5198
  disabledGridRowIds: _e,
5190
5199
  gridRows: T,
@@ -5203,7 +5212,7 @@ const ki = () => {
5203
5212
  )
5204
5213
  ] }),
5205
5214
  /* @__PURE__ */ a(
5206
- ri,
5215
+ ii,
5207
5216
  {
5208
5217
  ...D,
5209
5218
  open: Oe,
@@ -5213,7 +5222,7 @@ const ki = () => {
5213
5222
  }
5214
5223
  ),
5215
5224
  /* @__PURE__ */ a(
5216
- qr,
5225
+ Yr,
5217
5226
  {
5218
5227
  ...p,
5219
5228
  open: xe,
@@ -5227,7 +5236,7 @@ const ki = () => {
5227
5236
  rootItem: o,
5228
5237
  gridOptions: {
5229
5238
  columnDefs: ln.filter(
5230
- (w) => w.colId !== Ee.Actions
5239
+ (w) => w.colId !== Se.Actions
5231
5240
  ),
5232
5241
  loading: s
5233
5242
  },
@@ -5275,7 +5284,7 @@ const ki = () => {
5275
5284
  }
5276
5285
  ),
5277
5286
  /* @__PURE__ */ a(
5278
- Ni,
5287
+ Di,
5279
5288
  {
5280
5289
  open: Fn,
5281
5290
  onClose: fo,
@@ -5294,7 +5303,7 @@ const ki = () => {
5294
5303
  ]
5295
5304
  }
5296
5305
  ) });
5297
- }, $i = (e, t = vn.MyFiles) => {
5306
+ }, Zi = (e, t = vn.MyFiles) => {
5298
5307
  const o = Object.values(vn).includes(
5299
5308
  t
5300
5309
  ) ? t : vn.MyFiles, [s, n] = L(o), r = (l) => {
@@ -5314,30 +5323,30 @@ const ki = () => {
5314
5323
  };
5315
5324
  export {
5316
5325
  De as DestinationFolderMode,
5317
- qr as DialDestinationFolderPopup,
5318
- _i as DialFileManager,
5326
+ Yr as DialDestinationFolderPopup,
5327
+ Bi as DialFileManager,
5319
5328
  y as DialFileManagerActions,
5320
5329
  we as DialFileManagerConflictActions,
5321
5330
  Be as DialFileManagerConflictStrategies,
5322
- gi as DialFileManagerSortDropdown,
5331
+ wi as DialFileManagerSortDropdown,
5323
5332
  vn as DialFileManagerTabs,
5324
5333
  O as DialFileNodeType,
5325
5334
  Vt as DialFilePermission,
5326
- hr as DialFileResourceType,
5327
- Ri as DialFoldersTree,
5335
+ ur as DialFileResourceType,
5336
+ Ii as DialFoldersTree,
5328
5337
  A as FILE_MANAGER_ICON_PROPS,
5329
- $a as FILE_MANAGER_ICON_STROKE,
5330
- Ee as FileManagerColumnKey,
5338
+ ja as FILE_MANAGER_ICON_STROKE,
5339
+ Se as FileManagerColumnKey,
5331
5340
  bt as FileManagerCreateFolderTriggerView,
5332
5341
  Ge as FileManagerCreateFolderType,
5333
- Kr as FileManagerProvider,
5342
+ Xr as FileManagerProvider,
5334
5343
  Bt as FileManagerRenameTriggerView,
5335
5344
  Gt as FileManagerSortDirection,
5336
5345
  ot as FileManagerSortField,
5337
- mr as GridSelectionMode,
5338
- Fi as NAME_COLUMN,
5339
- Si as SIZE_COLUMN,
5340
- Ei as UPDATED_AT_COLUMN,
5341
- $i as useDialFileManagerTabs,
5342
- ki as useFileManagerContext
5346
+ Cr as GridSelectionMode,
5347
+ Ei as NAME_COLUMN,
5348
+ Pi as SIZE_COLUMN,
5349
+ Ai as UPDATED_AT_COLUMN,
5350
+ Zi as useDialFileManagerTabs,
5351
+ Mi as useFileManagerContext
5343
5352
  };