@epam/ai-dial-react-file-manager 0.3.0-dev.24 → 0.3.0-dev.25

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
- import { jsx as a, jsxs as q, Fragment as Pe } from "react/jsx-runtime";
2
- import { IconCircleFilled as to, IconDotsVertical as bn, IconFolder as cs, IconPlus as ds, IconFile as us, IconFileZip as hs, IconFolderPlus as Fa, IconEye as ca, IconX as ps, IconArrowsSort as fs, IconEyeOff as ms, IconAlertCircleFilled as Cs, IconAlertTriangleFilled as gs, IconCaretRightFilled as vs, IconDownload as da, IconCopy as ua, IconUserX as ha, IconTrashX as pa, IconExternalLink as sa, IconPencilMinus as $a, IconInfoCircle as ws } from "@tabler/icons-react";
1
+ import { jsx as a, jsxs as X, Fragment as Pe } from "react/jsx-runtime";
2
+ import { IconCircleFilled as to, IconDotsVertical as bn, IconFolder as cs, IconPlus as ds, IconFile as us, IconFileZip as hs, IconFolderPlus as Sa, IconEye as ua, IconX as ps, IconTrashX as ro, IconArrowsSort as fs, IconEyeOff as ms, IconAlertCircleFilled as Cs, IconAlertTriangleFilled as gs, IconCaretRightFilled as vs, IconDownload as ha, IconCopy as pa, IconUserX as fa, IconExternalLink as ra, IconPencilMinus as $a, IconInfoCircle as ws } from "@tabler/icons-react";
3
3
  import * as Ke from "react";
4
- import { useState as z, useMemo as U, useCallback as u, useRef as fe, useEffect as Ne, createContext as ys, useLayoutEffect as Ns, useContext as bs, useId as Ds, useImperativeHandle as Ts } from "react";
5
- import { DIAL_KIT_ICON_STROKE as Rs, BASE_ICON_SIZE as fa, FolderName as ja, FileName as ma, Dropdown as wt, DropdownTrigger as Za, InlineSelectTrigger as xs, ElementSize as Dn, Grid as Ka, Popup as Ca, PopupSize as no, RadioGroup as Sa, NeutralButton as Xa, PrimaryButton as Ut, mergeClasses as be, GhostIconButton as jt, baseColumnComparator as ga, NotificationVariant as ra, NOT_ALLOWED_SYMBOLS_REGEXP as Is, TooltipContainer as Fs, TooltipPlacement as Ss, TooltipTrigger as Es, TooltipContent as As, Notification as Ps, ButtonAppearance as oo, Switch as qa, Tooltip as ao, FlexibleActionsDirection as wn, DangerButton as Ea, ConfirmationPopup as ks, ConfirmationPopupVariant as Os, Breadcrumbs as Ms, BreadcrumbsSize as Ls, Search as _s, DropdownItemType as va, MenuItemMark as Aa, ButtonDropdown as ia, ButtonVariant as Ya, DIAL_ICON_SIZE as zs, Skeleton as pn, SkeletonVariant as fn, EllipsisTooltip as Wt, editableContainerProps as Bs, FileIcon as Hs, Input as Ws, useEditableItem as Us, DialItemType as ct, NoDataContent as la, DateCellRenderer as Qa, convertToDate as Gs, DEFAULT_DATE_LOCALE as Vs, DEFAULT_DATE_FORMAT_OPTIONS as $s, FilterChips as Pa, GRID_SELECTION_COLUMN_ID as js } from "@epam/ai-dial-ui-kit";
4
+ import { useState as z, useMemo as U, useCallback as u, useRef as fe, useEffect as Ne, createContext as ys, useLayoutEffect as Ns, useContext as bs, useId as Ds, useImperativeHandle as Rs } from "react";
5
+ import { DIAL_KIT_ICON_STROKE as Ts, BASE_ICON_SIZE as ma, FolderName as ja, FileName as Ca, Dropdown as wt, DropdownTrigger as Za, InlineSelectTrigger as xs, ElementSize as Dn, Grid as Ka, Popup as ga, PopupSize as no, RadioGroup as Ea, NeutralButton as Xa, PrimaryButton as Ut, mergeClasses as be, GhostIconButton as jt, baseColumnComparator as va, NotificationVariant as ia, NOT_ALLOWED_SYMBOLS_REGEXP as Is, TooltipContainer as Fs, TooltipPlacement as Ss, TooltipTrigger as Es, TooltipContent as As, Notification as Ps, ButtonAppearance as oo, Switch as qa, Tooltip as ao, FlexibleActionsDirection as wn, DangerButton as la, GhostButton as ks, ConfirmationPopup as Os, ConfirmationPopupVariant as Ms, Breadcrumbs as Ls, BreadcrumbsSize as _s, Search as zs, DropdownItemType as wa, MenuItemMark as Aa, ButtonDropdown as ca, ButtonVariant as Ya, DIAL_ICON_SIZE as Bs, Skeleton as pn, SkeletonVariant as fn, EllipsisTooltip as Wt, editableContainerProps as Hs, FileIcon as Ws, Input as Us, useEditableItem as Gs, DialItemType as ct, NoDataContent as da, DateCellRenderer as Qa, convertToDate as Vs, DEFAULT_DATE_LOCALE as $s, DEFAULT_DATE_FORMAT_OPTIONS as js, FilterChips as Pa, GRID_SELECTION_COLUMN_ID as Zs } from "@epam/ai-dial-ui-kit";
6
6
  import { extensions as ka } from "mime-types";
7
- import { createPortal as Zs } from "react-dom";
8
- const Ja = (e) => /* @__PURE__ */ Ke.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ke.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" })), es = (e) => /* @__PURE__ */ Ke.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ke.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" })), wa = (e) => /* @__PURE__ */ Ke.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ke.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" })), ya = (e) => /* @__PURE__ */ Ke.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ke.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" })), Na = (e) => /* @__PURE__ */ Ke.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ke.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" })), ts = Rs, E = {
9
- size: fa,
7
+ import { createPortal as Ks } from "react-dom";
8
+ const Ja = (e) => /* @__PURE__ */ Ke.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ke.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" })), es = (e) => /* @__PURE__ */ Ke.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ke.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" })), ya = (e) => /* @__PURE__ */ Ke.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ke.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" })), Na = (e) => /* @__PURE__ */ Ke.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ke.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" })), ba = (e) => /* @__PURE__ */ Ke.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ke.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" })), ts = Ts, E = {
9
+ size: ma,
10
10
  stroke: ts
11
11
  };
12
12
  var yn = /* @__PURE__ */ ((e) => (e.All = "all", e.MyFiles = "my_files", e.Shared = "shared", e.Organization = "organization", e.Review = "review", e))(yn || {}), 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 || {}), Ce = /* @__PURE__ */ ((e) => (e.Replace = "replace", e.Duplicate = "duplicate", e.Cancel = "cancel", e))(Ce || {}), He = /* @__PURE__ */ ((e) => (e.ReplaceAll = "replaceAll", e.DuplicateAll = "duplicateAll", e.DecideForEach = "decideForEach", e))(He || {}), xe = /* @__PURE__ */ ((e) => (e.Copy = "copy", e.Move = "move", e))(xe || {}), Gt = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(Gt || {}), vt = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(vt || {}), 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 || {}), et = /* @__PURE__ */ ((e) => (e.Name = "name", e.UpdatedAt = "updatedAt", e.Size = "size", e))(et || {}), Zt = /* @__PURE__ */ ((e) => (e.Asc = "asc", e.Desc = "desc", e))(Zt || {});
13
- const Ks = "w-full h-full grid grid-rows-[minmax(0,1fr)] overflow-hidden min-w-0", Xs = "text-secondary flex items-center gap-2", qs = "flex min-h-0 min-w-0 h-full gap-4 overflow-hidden", Ys = "flex flex-col flex-1 min-h-0 min-w-0 h-full px-5 gap-5 pb-4", Qs = "flex w-full shrink-0 items-center justify-between gap-4 h-[64px]", Js = "min-h-0 w-[360px] shrink-0 h-full bg-layer-raised shadow-sm", er = "flex h-full min-h-0 flex-col gap-3", tr = "dial-h1-text text-primary", nr = "px-4 h-[64px] flex items-center justify-between gap-2", or = "min-h-0 flex-1 px-3", ar = "File storage sections", sr = "flex flex-1 flex-col w-full min-h-0 min-w-0 gap-5", rr = "flex-1 w-full text-secondary overflow-auto min-h-0 min-w-0 rounded-xl shadow-sm", ir = "outline outline-1 -outline-offset-1 outline-dashed outline-info", lr = "outline outline-1 -outline-offset-1 outline-dashed outline-primary", cr = "absolute bottom-4 left-4 right-4 z-10", dr = "opacity-0 pointer-events-none group-hover/grid-row:opacity-100 group-hover/grid-row:pointer-events-auto", ur = "Files", lt = 20, hr = "Files", oa = ".dial_folder", Oa = "New folder", pr = "ag-Grid-SelectionColumn", Ma = 44, fr = 800, mr = [
13
+ const Xs = "w-full h-full grid grid-rows-[minmax(0,1fr)] overflow-hidden min-w-0", qs = "text-secondary flex items-center gap-2", Ys = "flex min-h-0 min-w-0 h-full gap-4 overflow-hidden", Qs = "flex flex-col flex-1 min-h-0 min-w-0 h-full px-5 gap-5 pb-4", Js = "flex w-full shrink-0 items-center justify-between gap-4 h-[64px]", er = "min-h-0 w-[360px] shrink-0 h-full bg-layer-raised shadow-sm", tr = "flex h-full min-h-0 flex-col gap-3", nr = "dial-h1-text text-primary", or = "px-4 h-[64px] flex items-center justify-between gap-2", ar = "min-h-0 flex-1 px-3", sr = "File storage sections", rr = "flex flex-1 flex-col w-full min-h-0 min-w-0 gap-5", ir = "flex-1 w-full text-secondary overflow-auto min-h-0 min-w-0 rounded-xl shadow-sm", lr = "outline outline-1 -outline-offset-1 outline-dashed outline-info", cr = "outline outline-1 -outline-offset-1 outline-dashed outline-primary", dr = "absolute bottom-4 left-4 right-4 z-10", ur = "opacity-0 pointer-events-none group-hover/grid-row:opacity-100 group-hover/grid-row:pointer-events-auto", hr = "Files", lt = 20, pr = "Files", aa = ".dial_folder", Oa = "New folder", fr = "ag-Grid-SelectionColumn", Ma = 44, mr = 800, Cr = [
14
14
  Se.Name,
15
15
  Se.UpdatedAt,
16
16
  Se.Size,
17
17
  Se.Author,
18
18
  Se.Actions
19
- ], Cr = "flex w-full shrink-0 items-center gap-3";
20
- var O = /* @__PURE__ */ ((e) => (e.ITEM = "item", e.FOLDER = "folder", e))(O || {}), gr = /* @__PURE__ */ ((e) => (e.FILE = "FILE", e.PROMPT = "PROMPT", e.CONVERSATION = "CONVERSATION", e.APPLICATION = "APPLICATION", e.TOOLSET = "TOOL_SET", e))(gr || {}), Kt = /* @__PURE__ */ ((e) => (e.READ = "READ", e.WRITE = "WRITE", e.SHARE = "SHARE", e))(Kt || {});
19
+ ], gr = "flex w-full shrink-0 items-center gap-3";
20
+ var O = /* @__PURE__ */ ((e) => (e.ITEM = "item", e.FOLDER = "folder", e))(O || {}), vr = /* @__PURE__ */ ((e) => (e.FILE = "FILE", e.PROMPT = "PROMPT", e.CONVERSATION = "CONVERSATION", e.APPLICATION = "APPLICATION", e.TOOLSET = "TOOL_SET", e))(vr || {}), Kt = /* @__PURE__ */ ((e) => (e.READ = "READ", e.WRITE = "WRITE", e.SHARE = "SHARE", e))(Kt || {});
21
21
  const La = ({
22
22
  open: e,
23
23
  onClose: t,
@@ -30,12 +30,12 @@ const La = ({
30
30
  message: h,
31
31
  actionLabels: w,
32
32
  strategyLabels: c,
33
- confirmLabel: b = "Confirm",
33
+ confirmLabel: N = "Confirm",
34
34
  cancelLabel: p = "Cancel",
35
- nameColumnLabel: D = "Name",
36
- actionColumnLabel: g = "Action"
35
+ nameColumnLabel: R = "Name",
36
+ actionColumnLabel: v = "Action"
37
37
  }) => {
38
- const v = r.length === 1, x = v ? r[0]?.name : "", T = w?.[Ce.Replace] ?? "Replace", f = w?.[Ce.Duplicate] ?? "Duplicate", m = w?.[Ce.Cancel] ?? "Cancel", S = c?.[He.ReplaceAll] ?? "Replace all", A = c?.[He.DuplicateAll] ?? "Duplicate all", C = c?.[He.DecideForEach] ?? "Decide for each", [N, I] = z(
38
+ const C = r.length === 1, x = C ? r[0]?.name : "", D = w?.[Ce.Replace] ?? "Replace", f = w?.[Ce.Duplicate] ?? "Duplicate", m = w?.[Ce.Cancel] ?? "Cancel", S = c?.[He.ReplaceAll] ?? "Replace all", A = c?.[He.DuplicateAll] ?? "Duplicate all", g = c?.[He.DecideForEach] ?? "Decide for each", [b, I] = z(
39
39
  Ce.Replace
40
40
  ), [_, L] = z(
41
41
  He.ReplaceAll
@@ -48,28 +48,28 @@ const La = ({
48
48
  )
49
49
  ), [B, j] = z(
50
50
  void 0
51
- ), H = v ? i : l, X = /* @__PURE__ */ q(Pe, { children: [
51
+ ), H = C ? i : l, q = /* @__PURE__ */ X(Pe, { children: [
52
52
  "Item with the name ",
53
- /* @__PURE__ */ q("span", { className: "text-primary", children: [
53
+ /* @__PURE__ */ X("span", { className: "text-primary", children: [
54
54
  '"',
55
55
  x,
56
56
  '"'
57
57
  ] }),
58
58
  " ",
59
59
  "already exists in this destination."
60
- ] }), me = `${r.length} items with the same names already exist in this destination.`, ue = h ?? (v ? X : me), De = U(
60
+ ] }), me = `${r.length} items with the same names already exist in this destination.`, ue = h ?? (C ? q : me), De = U(
61
61
  () => [
62
62
  {
63
63
  value: Ce.Replace,
64
- label: T
64
+ label: D
65
65
  },
66
66
  {
67
67
  value: Ce.Duplicate,
68
68
  label: f
69
69
  }
70
70
  ],
71
- [T, f]
72
- ), Te = U(() => r.map((P) => ({
71
+ [D, f]
72
+ ), Re = U(() => r.map((P) => ({
73
73
  id: P.path,
74
74
  name: P.name,
75
75
  path: P.path,
@@ -78,7 +78,7 @@ const La = ({
78
78
  })), [r, $]), ne = U(() => [
79
79
  {
80
80
  field: "name",
81
- headerName: D,
81
+ headerName: R,
82
82
  flex: 1,
83
83
  minWidth: 200,
84
84
  floatingFilter: !1,
@@ -91,7 +91,7 @@ const La = ({
91
91
  iconSize: lt
92
92
  }
93
93
  ) : /* @__PURE__ */ a(
94
- ma,
94
+ Ca,
95
95
  {
96
96
  name: P.data.name,
97
97
  iconSize: lt
@@ -100,7 +100,7 @@ const La = ({
100
100
  },
101
101
  {
102
102
  field: "action",
103
- headerName: g,
103
+ headerName: v,
104
104
  width: 140,
105
105
  suppressSizeToFit: !0,
106
106
  sortable: !1,
@@ -112,7 +112,7 @@ const La = ({
112
112
  const ae = [
113
113
  {
114
114
  key: Ce.Replace,
115
- label: T,
115
+ label: D,
116
116
  icon: /* @__PURE__ */ a(to, { size: 10, className: "text-violet-1" })
117
117
  },
118
118
  {
@@ -126,7 +126,7 @@ const La = ({
126
126
  icon: /* @__PURE__ */ a(to, { size: 10, className: "text-error" })
127
127
  }
128
128
  ], ge = {
129
- [Ce.Replace]: T,
129
+ [Ce.Replace]: D,
130
130
  [Ce.Duplicate]: f,
131
131
  [Ce.Cancel]: m
132
132
  }, W = B === P.data.path;
@@ -156,7 +156,7 @@ const La = ({
156
156
  {
157
157
  size: Dn.Small,
158
158
  isOpen: W,
159
- "aria-label": g,
159
+ "aria-label": v,
160
160
  label: ge[P.data.action]
161
161
  }
162
162
  )
@@ -165,9 +165,9 @@ const La = ({
165
165
  }
166
166
  }
167
167
  ], [
168
+ R,
169
+ v,
168
170
  D,
169
- g,
170
- T,
171
171
  f,
172
172
  m,
173
173
  B
@@ -183,12 +183,12 @@ const La = ({
183
183
  },
184
184
  {
185
185
  value: He.DecideForEach,
186
- label: C,
186
+ label: g,
187
187
  content: /* @__PURE__ */ a(
188
188
  Ka,
189
189
  {
190
190
  columnDefs: ne,
191
- rowData: Te,
191
+ rowData: Re,
192
192
  getRowId: (P) => P.id,
193
193
  wrapCustomCellRenderers: !1,
194
194
  alternateOddRowColors: !1,
@@ -202,9 +202,9 @@ const La = ({
202
202
  [
203
203
  S,
204
204
  A,
205
- C,
205
+ g,
206
206
  ne,
207
- Te
207
+ Re
208
208
  ]
209
209
  ), he = u(() => {
210
210
  I(Ce.Replace), L(He.ReplaceAll), k(
@@ -218,8 +218,8 @@ const La = ({
218
218
  }, [r]), Ee = u(() => {
219
219
  he(), t();
220
220
  }, [he, t]), ze = u(() => {
221
- if (he(), v)
222
- N === Ce.Replace ? o() : s();
221
+ if (he(), C)
222
+ b === Ce.Replace ? o() : s();
223
223
  else if (_ === He.ReplaceAll)
224
224
  o();
225
225
  else if (_ === He.DuplicateAll)
@@ -235,8 +235,8 @@ const La = ({
235
235
  }
236
236
  }, [
237
237
  he,
238
- v,
239
- N,
238
+ C,
239
+ b,
240
240
  o,
241
241
  s,
242
242
  _,
@@ -245,31 +245,31 @@ const La = ({
245
245
  $
246
246
  ]);
247
247
  return /* @__PURE__ */ a(
248
- Ca,
248
+ ga,
249
249
  {
250
250
  open: e,
251
251
  onClose: Ee,
252
- size: v ? no.Sm : no.Md,
253
- className: be([!v && "w-[600px]"]),
252
+ size: C ? no.Sm : no.Md,
253
+ className: be([!C && "w-[600px]"]),
254
254
  header: H,
255
255
  preventKeyboardOnOpen: !0,
256
- footer: /* @__PURE__ */ q("div", { className: "flex justify-end gap-3 py-4 px-6 border-t border-tertiary", children: [
256
+ footer: /* @__PURE__ */ X("div", { className: "flex justify-end gap-3 py-4 px-6 border-t border-tertiary", children: [
257
257
  /* @__PURE__ */ a(Xa, { onClick: Ee, label: p }),
258
- /* @__PURE__ */ a(Ut, { onClick: ze, label: b })
258
+ /* @__PURE__ */ a(Ut, { onClick: ze, label: N })
259
259
  ] }),
260
- children: /* @__PURE__ */ q("div", { className: "px-6 py-4", children: [
260
+ children: /* @__PURE__ */ X("div", { className: "px-6 py-4", children: [
261
261
  /* @__PURE__ */ a("p", { className: "text-secondary mb-4 break-words", children: ue }),
262
- v ? /* @__PURE__ */ a(
263
- Sa,
262
+ C ? /* @__PURE__ */ a(
263
+ Ea,
264
264
  {
265
265
  id: "single-file-conflict",
266
266
  ariaLabel: H,
267
267
  items: De,
268
- value: N,
268
+ value: b,
269
269
  onChange: (P) => I(P)
270
270
  }
271
271
  ) : /* @__PURE__ */ a(
272
- Sa,
272
+ Ea,
273
273
  {
274
274
  id: "multiple-files-conflict",
275
275
  ariaLabel: H,
@@ -282,7 +282,7 @@ const La = ({
282
282
  ] })
283
283
  }
284
284
  );
285
- }, vr = ({
285
+ }, wr = ({
286
286
  getContextMenuItems: e,
287
287
  isRowDisabled: t,
288
288
  allowedFileTypes: o,
@@ -335,7 +335,7 @@ const La = ({
335
335
  }),
336
336
  [i]
337
337
  ) };
338
- }, wr = ({
338
+ }, yr = ({
339
339
  onRename: e
340
340
  }) => {
341
341
  const [t, o] = z(Gt.Grid), s = u(
@@ -355,7 +355,7 @@ const La = ({
355
355
  onTreeRename: n
356
356
  };
357
357
  };
358
- function yr(e, t) {
358
+ function Nr(e, t) {
359
359
  const o = fe(null), [s, n] = z(!1);
360
360
  return Ne(() => {
361
361
  if (!o.current) return;
@@ -366,7 +366,7 @@ function yr(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 Nr = /* @__PURE__ */ ((e) => (e.MULTIPLE = "MULTIPLE", e.SINGLE = "SINGLE", e))(Nr || {});
369
+ var br = /* @__PURE__ */ ((e) => (e.MULTIPLE = "MULTIPLE", e.SINGLE = "SINGLE", e))(br || {});
370
370
  const yt = (e, t) => {
371
371
  if (!(!e || !e.length || !t))
372
372
  for (const o of e) {
@@ -383,7 +383,7 @@ const yt = (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 yt(e, n) ?? e[0];
386
- }, $t = (e) => (e ?? "").toLowerCase(), br = (e) => $t(e).replace(/^\./, ""), Dr = (e) => {
386
+ }, $t = (e) => (e ?? "").toLowerCase(), Dr = (e) => $t(e).replace(/^\./, ""), Rr = (e) => {
387
387
  if (!e) return [];
388
388
  const t = [], o = (s) => {
389
389
  const n = s.items ?? [];
@@ -402,7 +402,7 @@ const yt = (e, t) => {
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
- }, Rr = (e, t = "en-US", o = {
405
+ }, xr = (e, t = "en-US", o = {
406
406
  year: "numeric",
407
407
  month: "short",
408
408
  day: "2-digit"
@@ -414,7 +414,7 @@ const yt = (e, t) => {
414
414
  return e;
415
415
  }
416
416
  };
417
- function ba(e, t, o) {
417
+ function Da(e, t, o) {
418
418
  if (!e || e.includes("*/*"))
419
419
  return !0;
420
420
  const s = t.toLowerCase(), n = o && o.includes(".") ? `.${o.split(".").at(-1).toLowerCase()}` : void 0;
@@ -429,38 +429,38 @@ function ba(e, t, o) {
429
429
  return s === i;
430
430
  });
431
431
  }
432
- const xr = (e) => e?.map((t) => t.endsWith("/*") ? t.replace("/*", "s") : Ir(t).flat().map((o) => `.${o}`)).flat().join(", ") || "", Ir = (e) => {
432
+ const Ir = (e) => e?.map((t) => t.endsWith("/*") ? t.replace("/*", "s") : Fr(t).flat().map((o) => `.${o}`)).flat().join(", ") || "", Fr = (e) => {
433
433
  const [t, o] = e.split("/");
434
434
  return t === "*" ? ["all"] : o === "*" ? Object.entries(ka).reduce((s, [n, r]) => {
435
435
  const [i] = n.split("/");
436
436
  return i === t && s.push(...r), s;
437
437
  }, []) : ka[e] || [];
438
- }, ro = (e) => {
438
+ }, io = (e) => {
439
439
  if (!e) return;
440
440
  const t = e.flags.replace(/[gy]/g, "");
441
441
  return new RegExp(e.source, t);
442
442
  };
443
- function Da(e, t, o) {
444
- if (t && ro(t)?.test(e.name))
443
+ function Ra(e, t, o) {
444
+ if (t && io(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 Fr = (e) => {
447
+ const Sr = (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
- }, Sr = (e, t, o) => {
454
- const s = !e.contentLength || o == null || e.contentLength <= o, n = !e.contentType || ba(t, e.contentType, e.name);
453
+ }, Er = (e, t, o) => {
454
+ const s = !e.contentLength || o == null || e.contentLength <= o, n = !e.contentType || Da(t, e.contentType, e.name);
455
455
  return s && n;
456
- }, Er = (e, t, o, s, n) => {
456
+ }, Ar = (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
- if (!(!e.contentType || ba(t, e.contentType, e.name)))
460
- return s ?? (t?.length ? `Unsupported file type. Supported types: ${xr(t)}.` : "Unsupported file type.");
459
+ if (!(!e.contentType || Da(t, e.contentType, e.name)))
460
+ return s ?? (t?.length ? `Unsupported file type. Supported types: ${Ir(t)}.` : "Unsupported file type.");
461
461
  if (!r)
462
462
  return n ?? `File is too large. Maximum size: ${Nn(o)}.`;
463
- }, Ar = (e) => e.replace(/\/+$/, "").split("/").filter(Boolean).length, mn = (e) => {
463
+ }, Pr = (e) => e.replace(/\/+$/, "").split("/").filter(Boolean).length, mn = (e) => {
464
464
  const t = `${Oa} `, o = new RegExp(`^${Oa} (\\d+)$`), s = new Set(
465
465
  e.map((l) => l.name.toLowerCase())
466
466
  ), n = e.map((l) => {
@@ -474,7 +474,7 @@ const Fr = (e) => {
474
474
  }, _a = (e) => {
475
475
  const t = e.updatedAt ? new Date(e.updatedAt).getTime() : NaN;
476
476
  return Number.isNaN(t) ? 0 : t;
477
- }, za = (e) => e.contentLength ?? e.size ?? 0, Pr = (e, t, o) => {
477
+ }, za = (e) => e.contentLength ?? e.size ?? 0, kr = (e, t, o) => {
478
478
  switch (o) {
479
479
  case et.UpdatedAt:
480
480
  return _a(e) - _a(t);
@@ -482,18 +482,18 @@ const Fr = (e) => {
482
482
  return za(e) - za(t);
483
483
  case et.Name:
484
484
  default:
485
- return ga(e.name, t.name);
485
+ return va(e.name, t.name);
486
486
  }
487
- }, kr = (e, t) => {
487
+ }, Or = (e, t) => {
488
488
  const o = t.direction === Zt.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 = Pr(s, n, t.field);
494
- return l !== 0 ? o * l : o * ga(s.name, n.name);
493
+ const l = kr(s, n, t.field);
494
+ return l !== 0 ? o * l : o * va(s.name, n.name);
495
495
  });
496
- }, Or = (e) => {
496
+ }, Mr = (e) => {
497
497
  const [t, o] = z(e?.showHiddenFiles ?? !1), s = !!e?.onShowHiddenFilesChange, n = s ? e.showHiddenFiles ?? !1 : t, r = u(
498
498
  (l) => {
499
499
  s ? e?.onShowHiddenFilesChange?.(l) : o(l);
@@ -508,7 +508,7 @@ const Fr = (e) => {
508
508
  toggleHiddenFilesVisibility: i,
509
509
  setAreHiddenFilesVisible: r
510
510
  };
511
- }, Mr = (e) => {
511
+ }, Lr = (e) => {
512
512
  const [t, o] = z(
513
513
  e?.collapsed ?? !1
514
514
  ), s = !!e?.onCollapseChange, n = s ? e.collapsed ?? !1 : t, r = u(
@@ -536,7 +536,7 @@ const Fr = (e) => {
536
536
  const r = s(e, n);
537
537
  if (!t.has(r)) return r;
538
538
  }
539
- }, aa = (e) => e.name, os = ({
539
+ }, sa = (e) => e.name, os = ({
540
540
  getDestinationFiles: e,
541
541
  onResolve: t
542
542
  }) => {
@@ -544,18 +544,18 @@ const Fr = (e) => {
544
544
  h.current = !0, s(m), r(!0);
545
545
  }, []), c = u(() => {
546
546
  h.current = !1, r(!1), s([]), l(null);
547
- }, []), b = u(
547
+ }, []), N = u(
548
548
  (m, S) => {
549
- const A = e(m), C = new Set(A.map(aa)), N = S.filter((I) => C.has(I.name));
549
+ const A = e(m), g = new Set(A.map(sa)), b = S.filter((I) => g.has(I.name));
550
550
  return {
551
- hasConflicts: N.length > 0,
552
- conflicts: N
551
+ hasConflicts: b.length > 0,
552
+ conflicts: b
553
553
  };
554
554
  },
555
555
  [e]
556
556
  ), p = u(
557
- (m, S, A, C) => {
558
- const N = e(m), I = new Set(N.map(aa));
557
+ (m, S, A, g) => {
558
+ const b = e(m), I = new Set(b.map(sa));
559
559
  return S.map((_) => {
560
560
  const L = _.name, $ = I.has(L), k = A && $ ? L : Ba(L, I, _.nodeType);
561
561
  return (!A || !$) && I.add(k), {
@@ -563,14 +563,14 @@ const Fr = (e) => {
563
563
  destinationUrl: `${m}/${k}`,
564
564
  overwrite: A && $,
565
565
  nodeType: _.nodeType ?? O.ITEM,
566
- ...C ?? {}
566
+ ...g ?? {}
567
567
  };
568
568
  });
569
569
  },
570
570
  [e]
571
- ), D = u(
572
- (m, S, A, C) => {
573
- const N = e(m), I = new Set(N.map(aa));
571
+ ), R = u(
572
+ (m, S, A, g) => {
573
+ const b = e(m), I = new Set(b.map(sa));
574
574
  return S.filter((L) => A.get(L.path) !== Ce.Cancel).map((L) => {
575
575
  const $ = A.get(L.path), k = I.has(L.name), B = $ === Ce.Replace && k, j = B ? L.name : Ba(L.name, I, L.nodeType);
576
576
  return B || I.add(j), {
@@ -578,30 +578,30 @@ const Fr = (e) => {
578
578
  destinationUrl: `${m}/${j}`,
579
579
  overwrite: B,
580
580
  nodeType: L.nodeType ?? O.ITEM,
581
- ...C ?? {}
581
+ ...g ?? {}
582
582
  };
583
583
  });
584
584
  },
585
585
  [e]
586
- ), g = u(
586
+ ), v = u(
587
587
  (m, S, A) => {
588
- const C = b(m, S);
589
- return C.hasConflicts && (l({
588
+ const g = N(m, S);
589
+ return g.hasConflicts && (l({
590
590
  files: S,
591
591
  destinationFolder: m,
592
592
  metadata: A
593
- }), w(C.conflicts)), C;
593
+ }), w(g.conflicts)), g;
594
594
  },
595
- [b, w]
596
- ), v = u(() => {
595
+ [N, w]
596
+ ), C = u(() => {
597
597
  if (!i) return;
598
- const { files: m, destinationFolder: S, metadata: A } = i, C = p(
598
+ const { files: m, destinationFolder: S, metadata: A } = i, g = p(
599
599
  S,
600
600
  m,
601
601
  !0,
602
602
  A
603
603
  );
604
- t?.(C, S), c();
604
+ t?.(g, S), c();
605
605
  }, [
606
606
  i,
607
607
  p,
@@ -609,54 +609,54 @@ const Fr = (e) => {
609
609
  c
610
610
  ]), x = u(() => {
611
611
  if (!i) return;
612
- const { files: m, destinationFolder: S, metadata: A } = i, C = p(
612
+ const { files: m, destinationFolder: S, metadata: A } = i, g = p(
613
613
  S,
614
614
  m,
615
615
  !1,
616
616
  A
617
617
  );
618
- t?.(C, S), c();
618
+ t?.(g, S), c();
619
619
  }, [
620
620
  i,
621
621
  p,
622
622
  t,
623
623
  c
624
- ]), T = u(() => {
624
+ ]), D = u(() => {
625
625
  if (!i) return;
626
- const { files: m, destinationFolder: S, metadata: A } = i, C = D(
626
+ const { files: m, destinationFolder: S, metadata: A } = i, g = R(
627
627
  S,
628
628
  m,
629
629
  new Map(
630
- o.map((N) => [
631
- N.path,
630
+ o.map((b) => [
631
+ b.path,
632
632
  Ce.Cancel
633
633
  ])
634
634
  ),
635
635
  A
636
636
  );
637
- t?.(C, S), c();
637
+ t?.(g, S), c();
638
638
  }, [
639
639
  c,
640
640
  o,
641
641
  t,
642
642
  i,
643
- D
643
+ R
644
644
  ]), f = u(
645
645
  (m) => {
646
646
  if (!i) return;
647
- const { files: S, destinationFolder: A, metadata: C } = i, N = new Map(
647
+ const { files: S, destinationFolder: A, metadata: g } = i, b = new Map(
648
648
  m.map((_) => [_.file.path, _.action])
649
- ), I = D(
649
+ ), I = R(
650
650
  A,
651
651
  S,
652
- N,
653
- C
652
+ b,
653
+ g
654
654
  );
655
655
  t?.(I, A), c();
656
656
  },
657
657
  [
658
658
  i,
659
- D,
659
+ R,
660
660
  t,
661
661
  c
662
662
  ]
@@ -665,18 +665,18 @@ const Fr = (e) => {
665
665
  conflictingFiles: o,
666
666
  conflictResolutionOpen: n,
667
667
  hasActiveConflictRef: h,
668
- checkForConflicts: b,
669
- startConflictResolution: g,
668
+ checkForConflicts: N,
669
+ startConflictResolution: v,
670
670
  resolveConflictsWithStrategy: p,
671
- resolveConflictsWithDecisions: D,
671
+ resolveConflictsWithDecisions: R,
672
672
  openConflictResolution: w,
673
673
  closeConflictResolution: c,
674
- handleReplaceAll: v,
674
+ handleReplaceAll: C,
675
675
  handleDuplicateAll: x,
676
- handleCancelAll: T,
676
+ handleCancelAll: D,
677
677
  handleDecideForEach: f
678
678
  };
679
- }, Lr = ({
679
+ }, _r = ({
680
680
  getDestinationFiles: e,
681
681
  onCopyFiles: t,
682
682
  onMoveToFiles: o,
@@ -686,11 +686,11 @@ const Fr = (e) => {
686
686
  getCopyHeader: i,
687
687
  getMoveHeader: l
688
688
  }) => {
689
- const [h, w] = z(!1), [c, b] = z([]), [p, D] = z([]), [g, v] = z(xe.Copy), [x, T] = z(), [f, m] = z(null), {
689
+ const [h, w] = z(!1), [c, N] = z([]), [p, R] = z([]), [v, C] = z(xe.Copy), [x, D] = z(), [f, m] = z(null), {
690
690
  conflictingFiles: S,
691
691
  conflictResolutionOpen: A,
692
- hasActiveConflictRef: C,
693
- startConflictResolution: N,
692
+ hasActiveConflictRef: g,
693
+ startConflictResolution: b,
694
694
  resolveConflictsWithStrategy: I,
695
695
  closeConflictResolution: _,
696
696
  openConflictResolution: L,
@@ -708,10 +708,10 @@ const Fr = (e) => {
708
708
  ), n?.()));
709
709
  }
710
710
  }), H = u(() => {
711
- b([]), D([]), m(null), T(void 0);
712
- }, []), X = u(
711
+ N([]), R([]), m(null), D(void 0);
712
+ }, []), q = u(
713
713
  (W) => {
714
- const Q = N(W, c, {
714
+ const Q = b(W, c, {
715
715
  type: xe.Copy
716
716
  });
717
717
  if (m({ type: xe.Copy }), !Q.hasConflicts) {
@@ -725,7 +725,7 @@ const Fr = (e) => {
725
725
  },
726
726
  [
727
727
  c,
728
- N,
728
+ b,
729
729
  I,
730
730
  t,
731
731
  s,
@@ -734,7 +734,7 @@ const Fr = (e) => {
734
734
  ), me = u(
735
735
  (W, Q) => {
736
736
  const te = Q || (f?.sourceFolder ?? "/");
737
- if (!N(W, p, {
737
+ if (!b(W, p, {
738
738
  type: xe.Move,
739
739
  sourceFolderPath: te
740
740
  }).hasConflicts) {
@@ -748,7 +748,7 @@ const Fr = (e) => {
748
748
  },
749
749
  [
750
750
  p,
751
- N,
751
+ b,
752
752
  I,
753
753
  o,
754
754
  n,
@@ -759,7 +759,7 @@ const Fr = (e) => {
759
759
  $(), H();
760
760
  }, [$, H]), De = u(() => {
761
761
  k(), H();
762
- }, [k, H]), Te = u(() => {
762
+ }, [k, H]), Re = u(() => {
763
763
  B(), H();
764
764
  }, [B, H]), ne = u(
765
765
  (W) => {
@@ -778,23 +778,23 @@ const Fr = (e) => {
778
778
  [t, r, I]
779
779
  ), he = u(
780
780
  (W) => {
781
- v(W), w(!0);
781
+ C(W), w(!0);
782
782
  },
783
783
  []
784
784
  ), Ee = u(() => {
785
- w(!1), C.current || H();
786
- }, [H, C]), [ze, P] = z(), ae = u(
785
+ w(!1), g.current || H();
786
+ }, [H, g]), [ze, P] = z(), ae = u(
787
787
  (W) => {
788
- b(W);
788
+ N(W);
789
789
  const Q = W[0]?.parentPath ?? W[0]?.folderId;
790
- T(Q), i && W.length > 0 ? P(i(W.length, W[0]?.name)) : P(void 0);
790
+ D(Q), i && W.length > 0 ? P(i(W.length, W[0]?.name)) : P(void 0);
791
791
  },
792
792
  [i]
793
793
  ), ge = u(
794
794
  (W) => {
795
- D(W);
795
+ R(W);
796
796
  const Q = W[0]?.parentPath ?? W[0]?.folderId;
797
- T(Q), m({
797
+ D(Q), m({
798
798
  type: xe.Move,
799
799
  sourceFolder: Q
800
800
  }), l && W.length > 0 ? P(l(W.length, W[0]?.name)) : P(void 0);
@@ -805,10 +805,10 @@ const Fr = (e) => {
805
805
  handleDuplicate: se,
806
806
  handleCloseDestinationFolderPopup: Ee,
807
807
  handleOpenDestinationFolderPopup: he,
808
- handleCopyTo: X,
808
+ handleCopyTo: q,
809
809
  handleMoveTo: me,
810
810
  openDestinationFolderPopup: h,
811
- destinationFolderMode: g,
811
+ destinationFolderMode: v,
812
812
  destinationFolderTitle: ze,
813
813
  handleSetCopiedFiles: ae,
814
814
  handleSetMovedFiles: ge,
@@ -818,12 +818,12 @@ const Fr = (e) => {
818
818
  openConflictResolution: L,
819
819
  closeConflictResolution: _,
820
820
  handleConflictReplace: ue,
821
- handleConflictCancel: Te,
821
+ handleConflictCancel: Re,
822
822
  handleConflictDuplicate: De,
823
823
  handleConflictDecideForEach: ne,
824
824
  sourceFolder: x
825
825
  };
826
- }, _r = ({
826
+ }, zr = ({
827
827
  path: e,
828
828
  defaultPath: t,
829
829
  onPathChange: o,
@@ -847,24 +847,24 @@ const Fr = (e) => {
847
847
  setCurrentPath: h,
848
848
  handlePathChange: w
849
849
  };
850
- }, zr = ({
850
+ }, Br = ({
851
851
  onDeleteFiles: e,
852
852
  onDeleteSuccess: t
853
853
  }) => {
854
854
  const [o, s] = z(!1), [n, r] = z([]), [i, l] = z(""), h = u(
855
- (b, p) => {
856
- r(b), l(p), s(!0);
855
+ (N, p) => {
856
+ r(N), l(p), s(!0);
857
857
  },
858
858
  []
859
859
  ), w = u(() => {
860
860
  s(!1), r([]);
861
861
  }, []), c = u(() => {
862
862
  if (e && n.length > 0) {
863
- const b = n.map((p) => ({
863
+ const N = n.map((p) => ({
864
864
  sourceUrl: p.path,
865
865
  nodeType: p.nodeType
866
866
  }));
867
- e(b, i), t?.();
867
+ e(N, i), t?.();
868
868
  }
869
869
  w();
870
870
  }, [
@@ -881,7 +881,7 @@ const Fr = (e) => {
881
881
  closeDeleteConfirmation: w,
882
882
  confirmDelete: c
883
883
  };
884
- }, Br = ({
884
+ }, Hr = ({
885
885
  onDownloadFiles: e,
886
886
  customDownloadItemsAction: t,
887
887
  onDownloadSuccess: o
@@ -892,7 +892,7 @@ const Fr = (e) => {
892
892
  },
893
893
  [e, o, t]
894
894
  )
895
- }), Hr = (e) => "dataTransfer" in e && e.dataTransfer !== null, Wr = ({
895
+ }), Wr = (e) => "dataTransfer" in e && e.dataTransfer !== null, Ur = ({
896
896
  onUploadFiles: e,
897
897
  onValidateUpload: t,
898
898
  maxFileSize: o,
@@ -903,13 +903,13 @@ const Fr = (e) => {
903
903
  uploadEnabled: l = !0,
904
904
  currentFolder: h
905
905
  } = {}) => {
906
- const [w, c] = z(!1), [b, p] = z(!1), [D, g] = z(), v = fe(null), x = fe(""), T = fe([]), f = U(() => !!h?.permissions?.includes(Kt.WRITE), [h]), [m, S] = z(/* @__PURE__ */ new Map()), [A, C] = z(null), N = u(
907
- (R) => !s || s.includes("*/*") ? R : R.filter(
908
- ({ fileContent: M, name: V }) => ba(s, M.type, V)
906
+ const [w, c] = z(!1), [N, p] = z(!1), [R, v] = z(), C = fe(null), x = fe(""), D = fe([]), f = U(() => !!h?.permissions?.includes(Kt.WRITE), [h]), [m, S] = z(/* @__PURE__ */ new Map()), [A, g] = z(null), b = u(
907
+ (T) => !s || s.includes("*/*") ? T : T.filter(
908
+ ({ fileContent: M, name: V }) => Da(s, M.type, V)
909
909
  ),
910
910
  [s]
911
911
  ), I = u(() => {
912
- S(/* @__PURE__ */ new Map()), C(null);
912
+ S(/* @__PURE__ */ new Map()), g(null);
913
913
  }, []), {
914
914
  conflictingFiles: _,
915
915
  conflictResolutionOpen: L,
@@ -918,19 +918,19 @@ const Fr = (e) => {
918
918
  startConflictResolution: B,
919
919
  closeConflictResolution: j,
920
920
  openConflictResolution: H,
921
- handleReplaceAll: X,
921
+ handleReplaceAll: q,
922
922
  handleDuplicateAll: me,
923
923
  handleCancelAll: ue,
924
924
  handleDecideForEach: De
925
925
  } = os({
926
- getDestinationFiles: () => T.current,
927
- onResolve: (R, M) => {
926
+ getDestinationFiles: () => D.current,
927
+ onResolve: (T, M) => {
928
928
  if (!l || !f) {
929
929
  I();
930
930
  return;
931
931
  }
932
932
  if (!A) return;
933
- const V = R.map((Y) => {
933
+ const V = T.map((Y) => {
934
934
  const Z = m.get(Y.sourceUrl);
935
935
  if (!Z)
936
936
  return;
@@ -948,7 +948,7 @@ const Fr = (e) => {
948
948
  }
949
949
  });
950
950
  Ne(() => {
951
- l && f || (c(!1), p(!1), g(void 0), j(), I());
951
+ l && f || (c(!1), p(!1), v(void 0), j(), I());
952
952
  }, [
953
953
  l,
954
954
  j,
@@ -956,13 +956,13 @@ const Fr = (e) => {
956
956
  f
957
957
  ]), Ne(() => {
958
958
  if (!l || !f) return;
959
- let R = 0;
959
+ let T = 0;
960
960
  const M = (le) => {
961
- Hr(le) && le.dataTransfer.types.includes(hr) && (R++, p(!0));
961
+ Wr(le) && le.dataTransfer.types.includes(pr) && (T++, p(!0));
962
962
  }, V = () => {
963
- R--, R === 0 && p(!1);
963
+ T--, T === 0 && p(!1);
964
964
  }, Y = () => {
965
- R = 0, p(!1);
965
+ T = 0, p(!1);
966
966
  }, Z = (le) => {
967
967
  le.preventDefault();
968
968
  };
@@ -970,11 +970,11 @@ const Fr = (e) => {
970
970
  window.removeEventListener("dragenter", M), window.removeEventListener("dragleave", V), window.removeEventListener("drop", Y), window.removeEventListener("dragover", Z);
971
971
  };
972
972
  }, [l, f]);
973
- const Te = u(
974
- (R) => o ? R.filter((M) => M.fileContent.size > o).map((M) => M.name) : [],
973
+ const Re = u(
974
+ (T) => o ? T.filter((M) => M.fileContent.size > o).map((M) => M.name) : [],
975
975
  [o]
976
976
  ), ne = u(
977
- (R, M) => R.map((V) => ({
977
+ (T, M) => T.map((V) => ({
978
978
  id: V.name,
979
979
  name: V.name,
980
980
  folderId: M,
@@ -985,16 +985,16 @@ const Fr = (e) => {
985
985
  })),
986
986
  []
987
987
  ), se = u(
988
- async (R, M, V) => {
988
+ async (T, M, V) => {
989
989
  if (!l || !f) return !1;
990
- g(void 0), T.current = V;
991
- const Y = i ? R.map((ee) => ({
990
+ v(void 0), D.current = V;
991
+ const Y = i ? T.map((ee) => ({
992
992
  ...ee,
993
993
  name: i(ee.name)
994
- })) : R, Z = Te(Y);
994
+ })) : T, Z = Re(Y);
995
995
  if (Z.length > 0) {
996
996
  const ee = o ? (o / 1048576).toFixed(2) : 0, Be = n.oversizedFiles || `Files exceed maximum size (${ee}MB): ${Z.join(", ")}`;
997
- return g(Be), !1;
997
+ return v(Be), !1;
998
998
  }
999
999
  if (t)
1000
1000
  try {
@@ -1004,30 +1004,30 @@ const Fr = (e) => {
1004
1004
  M
1005
1005
  );
1006
1006
  if (!ee.valid)
1007
- return g(
1007
+ return v(
1008
1008
  ee.message || n.validationFailed || "Validation failed"
1009
1009
  ), !1;
1010
1010
  } catch {
1011
- return g(
1011
+ return v(
1012
1012
  n.validationError || "Validation error occurred"
1013
1013
  ), !1;
1014
1014
  }
1015
1015
  const le = ne(
1016
1016
  Y,
1017
1017
  M
1018
- ), { conflicts: ve } = k(M, le), Re = new Set(ve.map((ee) => ee.name)), ce = Y.filter(
1019
- (ee) => !Re.has(ee.name)
1018
+ ), { conflicts: ve } = k(M, le), Te = new Set(ve.map((ee) => ee.name)), ce = Y.filter(
1019
+ (ee) => !Te.has(ee.name)
1020
1020
  );
1021
- return ce.length > 0 && e?.(ce, M), Re.size === 0 ? (I(), !0) : (T.current = [
1021
+ return ce.length > 0 && e?.(ce, M), Te.size === 0 ? (I(), !0) : (D.current = [
1022
1022
  ...V,
1023
1023
  ...ne(ce, M)
1024
1024
  ], S(
1025
1025
  new Map(
1026
- Y.filter((ee) => Re.has(ee.name)).map((ee) => [ee.name, ee])
1026
+ Y.filter((ee) => Te.has(ee.name)).map((ee) => [ee.name, ee])
1027
1027
  )
1028
- ), C({ destinationFolder: M }), B(
1028
+ ), g({ destinationFolder: M }), B(
1029
1029
  M,
1030
- le.filter((ee) => Re.has(ee.name)),
1030
+ le.filter((ee) => Te.has(ee.name)),
1031
1031
  { destinationFolder: M }
1032
1032
  ), !1);
1033
1033
  },
@@ -1036,7 +1036,7 @@ const Fr = (e) => {
1036
1036
  e,
1037
1037
  t,
1038
1038
  i,
1039
- Te,
1039
+ Re,
1040
1040
  o,
1041
1041
  n,
1042
1042
  ne,
@@ -1046,41 +1046,41 @@ const Fr = (e) => {
1046
1046
  f
1047
1047
  ]
1048
1048
  ), he = u(() => {
1049
- X(), I();
1050
- }, [X, I]), Ee = u(() => {
1049
+ q(), I();
1050
+ }, [q, I]), Ee = u(() => {
1051
1051
  me(), I();
1052
1052
  }, [me, I]), ze = u(() => {
1053
1053
  ue(), I();
1054
1054
  }, [ue, I]), P = u(
1055
- (R) => {
1056
- De(R), I();
1055
+ (T) => {
1056
+ De(T), I();
1057
1057
  },
1058
1058
  [De, I]
1059
1059
  ), ae = u(() => {
1060
1060
  j(), $.current || I();
1061
1061
  }, [j, $, I]), ge = u(
1062
- (R) => {
1063
- !l || !f || (R.preventDefault(), R.stopPropagation(), R.dataTransfer.types.includes("Files") && c(!0));
1062
+ (T) => {
1063
+ !l || !f || (T.preventDefault(), T.stopPropagation(), T.dataTransfer.types.includes("Files") && c(!0));
1064
1064
  },
1065
1065
  [l, f]
1066
1066
  ), W = u(
1067
- (R) => {
1067
+ (T) => {
1068
1068
  if (!l || !f) return;
1069
- R.preventDefault(), R.stopPropagation();
1070
- const M = R.currentTarget.getBoundingClientRect(), V = R.clientX, Y = R.clientY;
1069
+ T.preventDefault(), T.stopPropagation();
1070
+ const M = T.currentTarget.getBoundingClientRect(), V = T.clientX, Y = T.clientY;
1071
1071
  (V <= M.left || V >= M.right || Y <= M.top || Y >= M.bottom) && c(!1);
1072
1072
  },
1073
1073
  [l, f]
1074
1074
  ), Q = u(
1075
- (R) => {
1076
- !l || !f || (R.preventDefault(), R.stopPropagation(), R.dataTransfer.types.includes("Files") && (R.dataTransfer.dropEffect = "copy"));
1075
+ (T) => {
1076
+ !l || !f || (T.preventDefault(), T.stopPropagation(), T.dataTransfer.types.includes("Files") && (T.dataTransfer.dropEffect = "copy"));
1077
1077
  },
1078
1078
  [l, f]
1079
1079
  ), te = u(
1080
- async (R, M, V) => {
1081
- if (!l || !f || (R.preventDefault(), R.stopPropagation(), c(!1), !R.dataTransfer.types.includes("Files")))
1080
+ async (T, M, V) => {
1081
+ if (!l || !f || (T.preventDefault(), T.stopPropagation(), c(!1), !T.dataTransfer.types.includes("Files")))
1082
1082
  return;
1083
- const Y = Array.from(R.dataTransfer.items || []), Z = [];
1083
+ const Y = Array.from(T.dataTransfer.items || []), Z = [];
1084
1084
  let le = !1;
1085
1085
  if (Y.length > 0 && Y.forEach((ce) => {
1086
1086
  if (ce.kind === "file") {
@@ -1091,8 +1091,8 @@ const Fr = (e) => {
1091
1091
  const Be = ce.getAsFile?.();
1092
1092
  Be && Z.push(Be);
1093
1093
  }
1094
- }), Z.length === 0 && R.dataTransfer.files?.length && Z.push(...Array.from(R.dataTransfer.files)), Z.length === 0) {
1095
- le && g(
1094
+ }), Z.length === 0 && T.dataTransfer.files?.length && Z.push(...Array.from(T.dataTransfer.files)), Z.length === 0) {
1095
+ le && v(
1096
1096
  n.foldersNotSupported || "Folder upload is not supported"
1097
1097
  );
1098
1098
  return;
@@ -1100,18 +1100,18 @@ const Fr = (e) => {
1100
1100
  const ve = Z.map((ce) => ({
1101
1101
  fileContent: ce,
1102
1102
  name: ce.name
1103
- })), Re = N(ve);
1104
- if (Re.length === 0) {
1105
- g(
1103
+ })), Te = b(ve);
1104
+ if (Te.length === 0) {
1105
+ v(
1106
1106
  n.unsupportedFiles || "Selected files are not supported"
1107
1107
  );
1108
1108
  return;
1109
1109
  }
1110
- await se(Re, M, V);
1110
+ await se(Te, M, V);
1111
1111
  },
1112
1112
  [
1113
1113
  l,
1114
- N,
1114
+ b,
1115
1115
  se,
1116
1116
  n,
1117
1117
  f
@@ -1120,59 +1120,59 @@ const Fr = (e) => {
1120
1120
  });
1121
1121
  Ne(() => {
1122
1122
  Ie.current = async () => {
1123
- const R = v.current;
1124
- if (!R) return;
1123
+ const T = C.current;
1124
+ if (!T) return;
1125
1125
  if (!l || !f) {
1126
- R.value = "";
1126
+ T.value = "";
1127
1127
  return;
1128
1128
  }
1129
- if (!R.files?.length) return;
1130
- const V = Array.from(R.files).map((Z) => ({
1129
+ if (!T.files?.length) return;
1130
+ const V = Array.from(T.files).map((Z) => ({
1131
1131
  fileContent: Z,
1132
1132
  name: Z.name
1133
- })), Y = N(V);
1133
+ })), Y = b(V);
1134
1134
  if (Y.length === 0) {
1135
- g(
1135
+ v(
1136
1136
  n.unsupportedFiles || "Selected files are not supported"
1137
- ), R.value = "";
1137
+ ), T.value = "";
1138
1138
  return;
1139
1139
  }
1140
1140
  try {
1141
1141
  await se(
1142
1142
  Y,
1143
1143
  x.current,
1144
- T.current
1144
+ D.current
1145
1145
  );
1146
1146
  } catch {
1147
- g(n.validationError || "Upload failed");
1147
+ v(n.validationError || "Upload failed");
1148
1148
  } finally {
1149
- R.value = "";
1149
+ T.value = "";
1150
1150
  }
1151
1151
  };
1152
1152
  }, [
1153
1153
  l,
1154
1154
  f,
1155
- N,
1155
+ b,
1156
1156
  se,
1157
1157
  n
1158
1158
  ]), Ne(() => {
1159
- const R = document.createElement("input");
1160
- R.type = "file", R.multiple = !0, R.style.display = "none", document.body.appendChild(R), v.current = R;
1159
+ const T = document.createElement("input");
1160
+ T.type = "file", T.multiple = !0, T.style.display = "none", document.body.appendChild(T), C.current = T;
1161
1161
  const M = () => Ie.current?.();
1162
- return R.addEventListener("change", M), () => {
1163
- R.removeEventListener("change", M), v.current === R && (document.body.removeChild(R), v.current = null);
1162
+ return T.addEventListener("change", M), () => {
1163
+ T.removeEventListener("change", M), C.current === T && (document.body.removeChild(T), C.current = null);
1164
1164
  };
1165
1165
  }, []), Ne(() => {
1166
- const R = v.current;
1167
- R && (s && s.length > 0 ? R.accept = s.join(",") : R.removeAttribute("accept"));
1166
+ const T = C.current;
1167
+ T && (s && s.length > 0 ? T.accept = s.join(",") : T.removeAttribute("accept"));
1168
1168
  }, [s]);
1169
1169
  const re = u(
1170
- (R, M) => {
1171
- !l || !f || (x.current = R, T.current = M, v.current && v.current.click());
1170
+ (T, M) => {
1171
+ !l || !f || (x.current = T, D.current = M, C.current && C.current.click());
1172
1172
  },
1173
1173
  [l, f]
1174
1174
  ), Xe = u(
1175
- (R, M) => {
1175
+ (T, M) => {
1176
1176
  if (!r || !l || !f) return;
1177
1177
  const V = document.createElement("input");
1178
1178
  V.type = "file", V.accept = ".zip,application/zip", V.multiple = !1, V.style.display = "none";
@@ -1182,26 +1182,26 @@ const Fr = (e) => {
1182
1182
  document.body.removeChild(V);
1183
1183
  return;
1184
1184
  }
1185
- const le = Z.name.replace(/\.zip$/i, ""), ve = i ? i(le) : le, Re = {
1185
+ const le = Z.name.replace(/\.zip$/i, ""), ve = i ? i(le) : le, Te = {
1186
1186
  id: ve,
1187
1187
  name: ve,
1188
- folderId: R,
1189
- path: `${R}/${ve}`,
1188
+ folderId: T,
1189
+ path: `${T}/${ve}`,
1190
1190
  nodeType: O.FOLDER,
1191
- parentPath: R,
1191
+ parentPath: T,
1192
1192
  contentLength: Z.size,
1193
1193
  contentType: Z.type
1194
1194
  };
1195
- if (T.current = M, C({ destinationFolder: R, isArchive: !0 }), S(
1196
- /* @__PURE__ */ new Map([[Re.path, { fileContent: Z, name: ve }]])
1197
- ), B(R, [Re], {
1198
- destinationFolder: R
1195
+ if (D.current = M, g({ destinationFolder: T, isArchive: !0 }), S(
1196
+ /* @__PURE__ */ new Map([[Te.path, { fileContent: Z, name: ve }]])
1197
+ ), B(T, [Te], {
1198
+ destinationFolder: T
1199
1199
  }).hasConflicts) {
1200
1200
  document.body.removeChild(V);
1201
1201
  return;
1202
1202
  }
1203
1203
  try {
1204
- r(Z, ve, R);
1204
+ r(Z, ve, T);
1205
1205
  } finally {
1206
1206
  document.body.removeChild(V);
1207
1207
  }
@@ -1216,12 +1216,12 @@ const Fr = (e) => {
1216
1216
  i
1217
1217
  ]
1218
1218
  ), We = u(() => {
1219
- g(void 0);
1219
+ v(void 0);
1220
1220
  }, []);
1221
1221
  return {
1222
1222
  isDragging: w,
1223
- isDraggingOverWindow: b,
1224
- uploadError: D,
1223
+ isDraggingOverWindow: N,
1224
+ uploadError: R,
1225
1225
  handleDragEnter: ge,
1226
1226
  handleDragLeave: W,
1227
1227
  handleDragOver: Q,
@@ -1230,7 +1230,7 @@ const Fr = (e) => {
1230
1230
  handleUpload: se,
1231
1231
  openFileDialog: re,
1232
1232
  openArchiveDialog: Xe,
1233
- fileInputRef: v,
1233
+ fileInputRef: C,
1234
1234
  uploadConflictingFiles: _,
1235
1235
  uploadConflictResolutionOpen: L,
1236
1236
  hasActiveUploadConflictRef: $,
@@ -1242,25 +1242,25 @@ const Fr = (e) => {
1242
1242
  handleUploadConflictDecideForEach: P
1243
1243
  };
1244
1244
  }, as = ys(void 0), ss = {
1245
- hiddenItemWarning: `${ra.Warning}__A dot at the start of the name will make the item hidden`
1245
+ hiddenItemWarning: `${ia.Warning}__A dot at the start of the name will make the item hidden`
1246
1246
  }, rs = {
1247
1247
  consecutiveDotsError: "Name cannot contain consecutive dots"
1248
- }, Ur = {
1248
+ }, Gr = {
1249
1249
  emptyName: "Name cannot be empty",
1250
1250
  duplicateName: "An item with this name already exists",
1251
1251
  hiddenItemWarning: ss.hiddenItemWarning,
1252
1252
  consecutiveDotsError: rs.consecutiveDotsError
1253
1253
  };
1254
- function Gr(e) {
1254
+ function Vr(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 Vr(e, t) {
1260
- const o = Gr(e), s = o.lastIndexOf("/");
1259
+ function $r(e, t) {
1260
+ const o = Vr(e), s = o.lastIndexOf("/");
1261
1261
  return s === -1 ? t : o.slice(0, s + 1) + t;
1262
1262
  }
1263
- function $r(e) {
1263
+ function jr(e) {
1264
1264
  const t = e.lastIndexOf(".");
1265
1265
  return t === -1 || t === 0 ? e : e.substring(0, t);
1266
1266
  }
@@ -1268,7 +1268,7 @@ function Ha(e) {
1268
1268
  const t = e.lastIndexOf(".");
1269
1269
  return t === -1 || t === 0 ? "" : e.substring(t);
1270
1270
  }
1271
- const jr = ({
1271
+ const Zr = ({
1272
1272
  items: e,
1273
1273
  onRenameValidate: t,
1274
1274
  validationMessages: o,
@@ -1276,39 +1276,39 @@ const jr = ({
1276
1276
  }) => {
1277
1277
  const [n, r] = z(), i = U(
1278
1278
  () => ({
1279
- ...Ur,
1279
+ ...Gr,
1280
1280
  ...o
1281
1281
  }),
1282
1282
  [o]
1283
1283
  ), l = U(() => n?.path, [n]), h = u(
1284
- (D) => {
1285
- const g = yt(e, D);
1286
- g && r(g);
1284
+ (R) => {
1285
+ const v = yt(e, R);
1286
+ v && r(v);
1287
1287
  },
1288
1288
  [e]
1289
1289
  ), w = u(() => {
1290
1290
  r(void 0);
1291
1291
  }, []), c = u(
1292
- (D) => {
1292
+ (R) => {
1293
1293
  if (!n || !s) {
1294
1294
  r(void 0);
1295
1295
  return;
1296
1296
  }
1297
- const g = n.nodeType === O.ITEM;
1298
- let v = D.trim();
1299
- if (g) {
1297
+ const v = n.nodeType === O.ITEM;
1298
+ let C = R.trim();
1299
+ if (v) {
1300
1300
  const m = Ha(n.name);
1301
- m && !v.endsWith(m) && (v = v + m);
1301
+ m && !C.endsWith(m) && (C = C + m);
1302
1302
  }
1303
- if (v === n.name) {
1303
+ if (C === n.name) {
1304
1304
  r(void 0);
1305
1305
  return;
1306
1306
  }
1307
- const x = Vr(
1307
+ const x = $r(
1308
1308
  n.path,
1309
- v
1310
- ), T = n.parentPath;
1311
- if (!T) {
1309
+ C
1310
+ ), D = n.parentPath;
1311
+ if (!D) {
1312
1312
  r(void 0);
1313
1313
  return;
1314
1314
  }
@@ -1317,48 +1317,48 @@ const jr = ({
1317
1317
  destinationUrl: x,
1318
1318
  nodeType: n.nodeType
1319
1319
  };
1320
- s([f], T, T), r(void 0);
1320
+ s([f], D, D), r(void 0);
1321
1321
  },
1322
1322
  [n, s]
1323
- ), b = u(
1324
- (D, g) => {
1325
- const v = D.trim();
1326
- if (!v)
1323
+ ), N = u(
1324
+ (R, v) => {
1325
+ const C = R.trim();
1326
+ if (!C)
1327
1327
  return i.emptyName;
1328
- if (v.includes(".."))
1328
+ if (C.includes(".."))
1329
1329
  return i.consecutiveDotsError;
1330
- if (v.startsWith("."))
1330
+ if (C.startsWith("."))
1331
1331
  return i.hiddenItemWarning;
1332
- const x = g.nodeType === O.ITEM;
1333
- let T = v;
1332
+ const x = v.nodeType === O.ITEM;
1333
+ let D = C;
1334
1334
  if (x) {
1335
- const m = Ha(g.name);
1336
- m && !T.endsWith(m) && (T = T + m);
1335
+ const m = Ha(v.name);
1336
+ m && !D.endsWith(m) && (D = D + m);
1337
1337
  }
1338
- const f = g.parentPath;
1338
+ const f = v.parentPath;
1339
1339
  if (f) {
1340
1340
  const m = yt(e, f);
1341
1341
  if (m && new Set(
1342
- (m.items ?? []).filter((A) => A.path !== g.path).map((A) => A.name.toLowerCase())
1343
- ).has(T.toLowerCase()))
1342
+ (m.items ?? []).filter((A) => A.path !== v.path).map((A) => A.name.toLowerCase())
1343
+ ).has(D.toLowerCase()))
1344
1344
  return i.duplicateName;
1345
1345
  }
1346
1346
  if (t) {
1347
- const m = t(T, g);
1347
+ const m = t(D, v);
1348
1348
  if (m)
1349
1349
  return m;
1350
1350
  }
1351
1351
  return null;
1352
1352
  },
1353
1353
  [t, i, e]
1354
- ), p = u((D) => D.nodeType === O.ITEM ? $r(D.name) : D.name, []);
1354
+ ), p = u((R) => R.nodeType === O.ITEM ? jr(R.name) : R.name, []);
1355
1355
  return {
1356
1356
  renamedPath: l,
1357
1357
  renamedItem: n,
1358
1358
  renameHandler: h,
1359
1359
  renameSaveHandler: c,
1360
1360
  renameCancelHandler: w,
1361
- renameValidateHandler: b,
1361
+ renameValidateHandler: N,
1362
1362
  getDisplayName: p
1363
1363
  };
1364
1364
  }, is = (e) => {
@@ -1379,22 +1379,22 @@ const jr = ({
1379
1379
  [s, e]
1380
1380
  ), i = u(
1381
1381
  (c) => {
1382
- const b = new Set(n);
1383
- b.has(c) ? b.delete(c) : b.add(c), r(b);
1382
+ const N = new Set(n);
1383
+ N.has(c) ? N.delete(c) : N.add(c), r(N);
1384
1384
  },
1385
1385
  [n, r]
1386
1386
  ), l = u(() => {
1387
1387
  r(/* @__PURE__ */ new Set());
1388
1388
  }, [r]), h = u(
1389
1389
  (c) => {
1390
- const b = new Set(n);
1391
- b.add(c), r(b);
1390
+ const N = new Set(n);
1391
+ N.add(c), r(N);
1392
1392
  },
1393
1393
  [n, r]
1394
1394
  ), w = u(
1395
1395
  (c) => {
1396
- const b = new Set(n);
1397
- b.delete(c), r(b);
1396
+ const N = new Set(n);
1397
+ N.delete(c), r(N);
1398
1398
  },
1399
1399
  [n, r]
1400
1400
  );
@@ -1407,7 +1407,7 @@ const jr = ({
1407
1407
  collapsePath: w,
1408
1408
  isControlled: s
1409
1409
  };
1410
- }, Zr = ({
1410
+ }, Kr = ({
1411
1411
  newActions: e,
1412
1412
  currentFolder: t,
1413
1413
  onUploadFiles: o,
@@ -1477,12 +1477,12 @@ const jr = ({
1477
1477
  isNewButtonVisible: h,
1478
1478
  isNewButtonDisabled: w
1479
1479
  };
1480
- }, Kr = {
1480
+ }, Xr = {
1481
1481
  emptyName: "Folder name cannot be empty",
1482
1482
  duplicateName: "A folder with this name already exists",
1483
1483
  hiddenItemWarning: ss.hiddenItemWarning,
1484
1484
  consecutiveDotsError: rs.consecutiveDotsError
1485
- }, Xr = ({
1485
+ }, qr = ({
1486
1486
  currentFolder: e,
1487
1487
  onCreateFolder: t,
1488
1488
  onValidateFolderName: o,
@@ -1491,36 +1491,36 @@ const jr = ({
1491
1491
  }) => {
1492
1492
  const [r, i] = z(!1), [l, h] = z(null), [w, c] = z(
1493
1493
  Ge.Folder
1494
- ), [b, p] = z(null), [D, g] = z(
1494
+ ), [N, p] = z(null), [R, v] = z(
1495
1495
  null
1496
- ), [v, x] = z(""), T = fe(e?.path), f = U(
1496
+ ), [C, x] = z(""), D = fe(e?.path), f = U(
1497
1497
  () => ({
1498
- ...Kr,
1498
+ ...Xr,
1499
1499
  ...s
1500
1500
  }),
1501
1501
  [s]
1502
1502
  ), m = U(() => {
1503
1503
  if (w === Ge.Folder)
1504
1504
  return e;
1505
- if (w === Ge.Sibling && b) {
1506
- const k = Vt(n, b.parentPath || "");
1505
+ if (w === Ge.Sibling && N) {
1506
+ const k = Vt(n, N.parentPath || "");
1507
1507
  return {
1508
- path: b.parentPath,
1508
+ path: N.parentPath,
1509
1509
  items: k?.items || [],
1510
1510
  nodeType: O.FOLDER,
1511
- name: b?.parentPath?.split("/")?.pop() || "",
1511
+ name: N?.parentPath?.split("/")?.pop() || "",
1512
1512
  folderId: ""
1513
1513
  };
1514
1514
  }
1515
- return w === Ge.Child ? b : e;
1516
- }, [w, b, e, n]);
1515
+ return w === Ge.Child ? N : e;
1516
+ }, [w, N, e, n]);
1517
1517
  Ne(() => {
1518
1518
  const k = m?.path;
1519
- T.current !== k && r && (i(!1), h(null), x("")), T.current = k;
1519
+ D.current !== k && r && (i(!1), h(null), x("")), D.current = k;
1520
1520
  }, [m?.path, r]);
1521
1521
  const S = u(() => {
1522
1522
  if (r) return;
1523
- T.current = e?.path || "/";
1523
+ D.current = e?.path || "/";
1524
1524
  const k = `__new_folder_${Date.now()}`, B = (e?.items ?? []).filter(
1525
1525
  (H) => H.nodeType === O.FOLDER
1526
1526
  ), j = mn(B);
@@ -1528,45 +1528,45 @@ const jr = ({
1528
1528
  }, [r, e]), A = u(
1529
1529
  (k) => {
1530
1530
  if (r) return;
1531
- T.current = k?.parentPath || "/";
1531
+ D.current = k?.parentPath || "/";
1532
1532
  const B = `__new_folder_${Date.now()}`, H = (Vt(n, k?.parentPath || "/")?.items ?? []).filter(
1533
1533
  (me) => me.nodeType === O.FOLDER
1534
- ), X = mn(H);
1535
- x(X), h(B), i(!0), c(Ge.Sibling), p(k), g(k?.parentPath || "/");
1534
+ ), q = mn(H);
1535
+ x(q), h(B), i(!0), c(Ge.Sibling), p(k), v(k?.parentPath || "/");
1536
1536
  },
1537
1537
  [r, n]
1538
- ), C = u(
1538
+ ), g = u(
1539
1539
  (k) => {
1540
1540
  if (r) return;
1541
- T.current = k.path;
1541
+ D.current = k.path;
1542
1542
  const B = `__new_folder_${Date.now()}`, j = (k?.items ?? []).filter(
1543
- (X) => X.nodeType === O.FOLDER
1543
+ (q) => q.nodeType === O.FOLDER
1544
1544
  ), H = mn(j);
1545
- x(H), h(B), i(!0), c(Ge.Child), p(k), g(k?.path || "/");
1545
+ x(H), h(B), i(!0), c(Ge.Child), p(k), v(k?.path || "/");
1546
1546
  },
1547
1547
  [r]
1548
- ), N = u(
1548
+ ), b = u(
1549
1549
  (k) => {
1550
1550
  if (r) return;
1551
- T.current = k?.parentPath || "/";
1551
+ D.current = k?.parentPath || "/";
1552
1552
  const j = (Vt(n, k?.parentPath || "/")?.items ?? []).filter(
1553
- (X) => X.nodeType === O.FOLDER
1553
+ (q) => q.nodeType === O.FOLDER
1554
1554
  ), H = mn(j);
1555
- x(H), c(Ge.Sibling), p(k), g(k?.parentPath || "/"), i(!0);
1555
+ x(H), c(Ge.Sibling), p(k), v(k?.parentPath || "/"), i(!0);
1556
1556
  },
1557
1557
  [r, n]
1558
1558
  ), I = u(
1559
1559
  (k) => {
1560
1560
  if (r) return;
1561
- T.current = k.path;
1561
+ D.current = k.path;
1562
1562
  const B = (k?.items ?? []).filter(
1563
1563
  (H) => H.nodeType === O.FOLDER
1564
1564
  ), j = mn(B);
1565
- x(j), c(Ge.Child), p(k), g(k?.path || "/"), i(!0);
1565
+ x(j), c(Ge.Child), p(k), v(k?.path || "/"), i(!0);
1566
1566
  },
1567
1567
  [r]
1568
1568
  ), _ = u(() => {
1569
- i(!1), h(null), c(Ge.Folder), p(null), g(null), T.current = void 0, x("");
1569
+ i(!1), h(null), c(Ge.Folder), p(null), v(null), D.current = void 0, x("");
1570
1570
  }, []), L = u(
1571
1571
  (k) => {
1572
1572
  const B = k.trim();
@@ -1594,31 +1594,31 @@ const jr = ({
1594
1594
  if (!B)
1595
1595
  return;
1596
1596
  _();
1597
- const H = `${m?.path ?? "/"}/${B}`, X = `${H}/${oa}`, ue = {
1598
- fileContent: new File([], oa, {
1597
+ const H = `${m?.path ?? "/"}/${B}`, q = `${H}/${aa}`, ue = {
1598
+ fileContent: new File([], aa, {
1599
1599
  type: "text/plain"
1600
1600
  }),
1601
- name: oa
1601
+ name: aa
1602
1602
  };
1603
- t && await t(ue, H, X);
1603
+ t && await t(ue, H, q);
1604
1604
  },
1605
1605
  [m, t, _]
1606
1606
  );
1607
1607
  return {
1608
1608
  isCreatingFolder: r,
1609
- createdFolderPath: D,
1609
+ createdFolderPath: R,
1610
1610
  newFolderTempId: l,
1611
- newFolderDefaultName: v,
1611
+ newFolderDefaultName: C,
1612
1612
  startFolderCreation: S,
1613
1613
  startGridSiblingFolderCreation: A,
1614
- startTreeSiblingFolderCreation: N,
1615
- startGridChildFolderCreation: C,
1614
+ startTreeSiblingFolderCreation: b,
1615
+ startGridChildFolderCreation: g,
1616
1616
  startTreeChildFolderCreation: I,
1617
1617
  cancelFolderCreation: _,
1618
1618
  saveFolderCreation: $,
1619
1619
  validateFolderName: L
1620
1620
  };
1621
- }, qr = ({ onGetInfo: e }) => {
1621
+ }, Yr = ({ onGetInfo: e }) => {
1622
1622
  const [t, o] = z(!1), [s, n] = z(void 0), r = u(
1623
1623
  async (l) => {
1624
1624
  n(l), o(!0), e && await e(l);
@@ -1634,7 +1634,7 @@ const jr = ({
1634
1634
  closeMetadataPopup: i
1635
1635
  };
1636
1636
  };
1637
- function Yr(e) {
1637
+ function Qr(e) {
1638
1638
  const t = [];
1639
1639
  function o(s) {
1640
1640
  for (const n of s)
@@ -1646,7 +1646,7 @@ function Wa(e, t) {
1646
1646
  const o = $t(t);
1647
1647
  return e.filter((s) => $t(s.name).includes(o));
1648
1648
  }
1649
- function Qr({
1649
+ function Jr({
1650
1650
  onSearchFiles: e,
1651
1651
  clearSearchResults: t,
1652
1652
  currentPath: o,
@@ -1657,50 +1657,50 @@ function Qr({
1657
1657
  allItems: l = [],
1658
1658
  activeTab: h
1659
1659
  }) {
1660
- const [w, c] = z(""), b = fe(!1), p = fe(!1), D = fe([]), g = fe(o), v = fe(h);
1660
+ const [w, c] = z(""), N = fe(!1), p = fe(!1), R = fe([]), v = fe(o), C = fe(h);
1661
1661
  Ne(() => {
1662
1662
  r != null && c(String(r));
1663
1663
  }, [r]);
1664
1664
  const x = String(
1665
1665
  r ?? w ?? ""
1666
- ).trim(), T = p.current && (n || s.length > 0 || x !== ""), f = u(
1667
- (C) => {
1668
- const N = C.trim();
1669
- if (!N) {
1670
- p.current = !1, b.current = !1;
1666
+ ).trim(), D = p.current && (n || s.length > 0 || x !== ""), f = u(
1667
+ (g) => {
1668
+ const b = g.trim();
1669
+ if (!b) {
1670
+ p.current = !1, N.current = !1;
1671
1671
  return;
1672
1672
  }
1673
- p.current = !0, e && o && !b.current && (b.current = !0, e(o, N));
1673
+ p.current = !0, e && o && !N.current && (N.current = !0, e(o, b));
1674
1674
  },
1675
1675
  [e, o]
1676
1676
  ), m = u(() => {
1677
- b.current = !1, p.current = !1, D.current = [], c(""), i?.(""), t?.();
1677
+ N.current = !1, p.current = !1, R.current = [], c(""), i?.(""), t?.();
1678
1678
  }, [t, i]), S = u(
1679
- (C) => {
1680
- const N = String(C ?? "");
1681
- c(N), i?.(N), N.trim() ? f(N) : m();
1679
+ (g) => {
1680
+ const b = String(g ?? "");
1681
+ c(b), i?.(b), b.trim() ? f(b) : m();
1682
1682
  },
1683
1683
  [i, f, m]
1684
1684
  );
1685
1685
  Ne(() => {
1686
- (g.current !== o || v.current !== h) && (g.current = o, v.current = h, b.current = !1, p.current = !1, D.current = [], c(""), i?.(""), t?.());
1686
+ (v.current !== o || C.current !== h) && (v.current = o, C.current = h, N.current = !1, p.current = !1, R.current = [], c(""), i?.(""), t?.());
1687
1687
  }, [
1688
1688
  o,
1689
1689
  h,
1690
1690
  i,
1691
1691
  t
1692
1692
  ]), Ne(() => {
1693
- n || (D.current = s);
1693
+ n || (R.current = s);
1694
1694
  }, [s, n]);
1695
1695
  const A = U(() => {
1696
1696
  if (e) {
1697
- const N = n ? D.current : s;
1698
- return !x || N.length === 0 ? N : Wa(N, x);
1697
+ const b = n ? R.current : s;
1698
+ return !x || b.length === 0 ? b : Wa(b, x);
1699
1699
  }
1700
1700
  if (!x || !l.length)
1701
1701
  return [];
1702
- const C = Yr(l);
1703
- return Wa(C, x);
1702
+ const g = Qr(l);
1703
+ return Wa(g, x);
1704
1704
  }, [
1705
1705
  e,
1706
1706
  s,
@@ -1709,7 +1709,7 @@ function Qr({
1709
1709
  l
1710
1710
  ]);
1711
1711
  return {
1712
- isSearchMode: T,
1712
+ isSearchMode: D,
1713
1713
  searchValue: w,
1714
1714
  effectiveSearchValue: x,
1715
1715
  setSearchValue: c,
@@ -1719,7 +1719,7 @@ function Qr({
1719
1719
  searchResultsRows: A
1720
1720
  };
1721
1721
  }
1722
- function Jr({
1722
+ function ei({
1723
1723
  selectedPaths: e,
1724
1724
  defaultSelectedPaths: t,
1725
1725
  onSelectedPathsChange: o
@@ -1743,7 +1743,7 @@ function Jr({
1743
1743
  isControlled: s
1744
1744
  };
1745
1745
  }
1746
- const ei = ({
1746
+ const ti = ({
1747
1747
  children: e,
1748
1748
  className: t,
1749
1749
  items: o = [],
@@ -1755,19 +1755,19 @@ const ei = ({
1755
1755
  defaultSelectedPaths: h,
1756
1756
  onSelectedPathsChange: w,
1757
1757
  showHiddenFiles: c,
1758
- onShowHiddenFilesChange: b,
1758
+ onShowHiddenFilesChange: N,
1759
1759
  treeOptions: p,
1760
- showNavigationPanel: D = !0,
1761
- navigationPanelOptions: g,
1762
- sortOptions: v,
1760
+ showNavigationPanel: R = !0,
1761
+ navigationPanelOptions: v,
1762
+ sortOptions: C,
1763
1763
  deleteConfirmationOptions: x,
1764
- gridOptions: T,
1764
+ gridOptions: D,
1765
1765
  toolbarOptions: f,
1766
1766
  bulkActionsToolbarOptions: m,
1767
1767
  destinationFolderPopupOptions: S,
1768
1768
  conflictResolutionPopupOptions: A,
1769
- onPathChange: C,
1770
- onTableFileClick: N,
1769
+ onPathChange: g,
1770
+ onTableFileClick: b,
1771
1771
  handleSelectionClick: I,
1772
1772
  onGridApiChange: _,
1773
1773
  onCopyFiles: L,
@@ -1776,11 +1776,11 @@ const ei = ({
1776
1776
  onDownloadFiles: B,
1777
1777
  onRenameValidate: j,
1778
1778
  renameValidationMessages: H,
1779
- forbiddenSymbolsRegExp: X = Is,
1779
+ forbiddenSymbolsRegExp: q = Is,
1780
1780
  forbiddenSymbolsTooltip: me,
1781
1781
  skipForbiddenSymbolsCheckForActions: ue,
1782
1782
  onUploadFiles: De,
1783
- onValidateUpload: Te,
1783
+ onValidateUpload: Re,
1784
1784
  uploadEnabled: ne,
1785
1785
  uploadValidationMessages: se,
1786
1786
  maxFileSize: he,
@@ -1796,14 +1796,14 @@ const ei = ({
1796
1796
  actionsRef: re,
1797
1797
  sharedByMePaths: Xe,
1798
1798
  onSearchFiles: We,
1799
- searchResults: R,
1799
+ searchResults: T,
1800
1800
  searchInProgress: M,
1801
1801
  clearSearchResults: V,
1802
1802
  allowedFileTypes: Y,
1803
1803
  maxSelectableFileSize: Z,
1804
1804
  getDisabledTooltip: le,
1805
1805
  fileTooLargeTooltip: ve,
1806
- unsupportedFileTypeTooltip: Re,
1806
+ unsupportedFileTypeTooltip: Te,
1807
1807
  emptyStateIcon: ce,
1808
1808
  emptyStateTitle: ee,
1809
1809
  emptyStateDescription: Be,
@@ -1811,24 +1811,24 @@ const ei = ({
1811
1811
  sharedWithMeIds: Ve,
1812
1812
  onFolderPopupPathChange: bt,
1813
1813
  onManagePermissions: ke,
1814
- onPreview: io,
1815
- onOpenInNewTab: lo,
1816
- previewExtensions: co,
1817
- isRenameFileAvailable: uo,
1818
- isDuplicateFolderAvailable: ho,
1814
+ onPreview: lo,
1815
+ onOpenInNewTab: co,
1816
+ previewExtensions: uo,
1817
+ isRenameFileAvailable: ho,
1818
+ isDuplicateFolderAvailable: po,
1819
1819
  customUploadFileAction: Dt,
1820
1820
  customCreateNewItemAction: Xt,
1821
- customDuplicateAction: Tt,
1822
- customDeleteItemsAction: Tn,
1823
- customDownloadItemsAction: Rn,
1821
+ customDuplicateAction: Rt,
1822
+ customDeleteItemsAction: Rn,
1823
+ customDownloadItemsAction: Tn,
1824
1824
  customBreakpointRef: tt,
1825
- gridClassName: Rt,
1825
+ gridClassName: Tt,
1826
1826
  contentClassName: xn,
1827
1827
  contentHeaderClassName: In,
1828
- nonClickableTableColumns: po,
1829
- hideSearchPathItemName: fo,
1830
- showHiddenFileSwitcherInDestinationPopup: mo,
1831
- showCreateFolderButtonInDestinationPopup: Co,
1828
+ nonClickableTableColumns: fo,
1829
+ hideSearchPathItemName: mo,
1830
+ showHiddenFileSwitcherInDestinationPopup: Co,
1831
+ showCreateFolderButtonInDestinationPopup: go,
1832
1832
  autoSelectUploadedItems: nt = !1,
1833
1833
  maxNewFolderDepth: Fe,
1834
1834
  onNewFolderDepthExceeded: qt,
@@ -1838,14 +1838,14 @@ const ei = ({
1838
1838
  selectedPaths: qe,
1839
1839
  clearSelection: Ye,
1840
1840
  setSelectedPaths: dt
1841
- } = Jr({
1841
+ } = ei({
1842
1842
  selectedPaths: l,
1843
1843
  defaultSelectedPaths: h,
1844
1844
  onSelectedPathsChange: w
1845
1845
  }), Sn = fe(!1), ot = fe(null), $e = u(
1846
1846
  (F, K, d) => {
1847
1847
  if (nt) {
1848
- const { parent: J, name: ie } = Fr(K);
1848
+ const { parent: J, name: ie } = Sr(K);
1849
1849
  ot.current = {
1850
1850
  fileNames: /* @__PURE__ */ new Set([ie]),
1851
1851
  destinationFolder: J
@@ -1854,7 +1854,7 @@ const ei = ({
1854
1854
  P?.(F, K, d);
1855
1855
  },
1856
1856
  [P, nt]
1857
- ), go = u(
1857
+ ), vo = u(
1858
1858
  (F, K) => {
1859
1859
  nt && (ot.current = {
1860
1860
  fileNames: new Set(F.map((d) => d.name)),
@@ -1862,7 +1862,7 @@ const ei = ({
1862
1862
  }), De?.(F, K);
1863
1863
  },
1864
1864
  [De, nt]
1865
- ), vo = u(
1865
+ ), wo = u(
1866
1866
  (F, K, d) => {
1867
1867
  nt && (ot.current = {
1868
1868
  fileNames: /* @__PURE__ */ new Set([K]),
@@ -1872,10 +1872,10 @@ const ei = ({
1872
1872
  [Ee, nt]
1873
1873
  ), En = U(() => {
1874
1874
  const F = /* @__PURE__ */ new Map();
1875
- return R?.forEach((K) => {
1875
+ return T?.forEach((K) => {
1876
1876
  F.set(K.path, K);
1877
1877
  }), F;
1878
- }, [R]), je = u(
1878
+ }, [T]), je = u(
1879
1879
  (F) => yt(o, F) ?? En.get(F),
1880
1880
  [o, En]
1881
1881
  ), xt = U(() => {
@@ -1900,27 +1900,27 @@ const ei = ({
1900
1900
  dt(K);
1901
1901
  }
1902
1902
  }, [qe, je, dt]);
1903
- const { currentPath: we, setCurrentPath: Qe, handlePathChange: Oe } = _r({
1903
+ const { currentPath: we, setCurrentPath: Qe, handlePathChange: Oe } = zr({
1904
1904
  path: n,
1905
1905
  defaultPath: r,
1906
- onPathChange: C,
1906
+ onPathChange: g,
1907
1907
  onSelectionClear: Ye
1908
1908
  }), ut = U(() => {
1909
1909
  const {
1910
1910
  showFiles: F = !0,
1911
1911
  showFolders: K = !0,
1912
1912
  ...d
1913
- } = T || {};
1913
+ } = D || {};
1914
1914
  return { showFiles: F, showFolders: K, ...d };
1915
- }, [T]), It = ut.showFiles, Ft = ut.showFolders, [An, St] = z(), wo = S?.destinationFolderPath ?? An, at = u(
1915
+ }, [D]), It = ut.showFiles, Ft = ut.showFolders, [An, St] = z(), yo = S?.destinationFolderPath ?? An, at = u(
1916
1916
  (F) => {
1917
1917
  S?.setDestinationFolderPath ? S.setDestinationFolderPath(F) : St(F);
1918
1918
  },
1919
1919
  [S]
1920
- ), { areHiddenFilesVisible: Et, toggleHiddenFilesVisibility: yo } = Or({
1920
+ ), { areHiddenFilesVisible: Et, toggleHiddenFilesVisibility: No } = Mr({
1921
1921
  showHiddenFiles: c,
1922
- onShowHiddenFilesChange: b
1923
- }), { isTreeCollapsed: No, toggleTreeCollapse: bo, setIsTreeCollapsed: Do } = Mr({
1922
+ onShowHiddenFilesChange: N
1923
+ }), { isTreeCollapsed: bo, toggleTreeCollapse: Do, setIsTreeCollapsed: Ro } = Lr({
1924
1924
  collapsed: p?.collapsed,
1925
1925
  onCollapseChange: p?.onCollapseChange
1926
1926
  }), {
@@ -1928,30 +1928,30 @@ const ei = ({
1928
1928
  renamedItem: Pn,
1929
1929
  renameHandler: kn,
1930
1930
  renameSaveHandler: To,
1931
- renameCancelHandler: Ro,
1932
- renameValidateHandler: xo,
1931
+ renameCancelHandler: xo,
1932
+ renameValidateHandler: Io,
1933
1933
  getDisplayName: Qt
1934
- } = jr({
1934
+ } = Zr({
1935
1935
  items: o,
1936
1936
  onRenameValidate: j,
1937
1937
  validationMessages: H,
1938
1938
  onMoveToFiles: $
1939
1939
  }), {
1940
1940
  isSearchMode: ht,
1941
- searchValue: Io,
1941
+ searchValue: Fo,
1942
1942
  effectiveSearchValue: Jt,
1943
1943
  setSearchValue: At,
1944
1944
  handleSearchChange: Me,
1945
1945
  handleSearchClear: pe,
1946
1946
  searchResultsRows: pt
1947
- } = Qr({
1947
+ } = Jr({
1948
1948
  onSearchFiles: We,
1949
1949
  clearSearchResults: V,
1950
1950
  currentPath: we,
1951
- searchResults: R,
1951
+ searchResults: T,
1952
1952
  searchInProgress: M,
1953
- navigationPanelValue: g?.value,
1954
- onNavigationPanelSearchChange: g?.onSearchChange,
1953
+ navigationPanelValue: v?.value,
1954
+ onNavigationPanelSearchChange: v?.onSearchChange,
1955
1955
  allItems: o,
1956
1956
  // The tab row moved into the folders panel, next to the tree it scopes.
1957
1957
  activeTab: p?.activeTab
@@ -1959,7 +1959,7 @@ const ei = ({
1959
1959
  () => Vt(o, we) ?? o[0],
1960
1960
  [o, we]
1961
1961
  ), ye = u(
1962
- (F, K) => !K || !F ? !1 : Ar(F.path) > K,
1962
+ (F, K) => !K || !F ? !1 : Pr(F.path) > K,
1963
1963
  []
1964
1964
  ), Le = u(() => {
1965
1965
  qt?.();
@@ -1967,22 +1967,22 @@ const ei = ({
1967
1967
  handleCopyTo: Pt,
1968
1968
  handleMoveTo: On,
1969
1969
  handleDuplicate: kt,
1970
- handleOpenDestinationFolderPopup: Ra,
1971
- handleCloseDestinationFolderPopup: xa,
1970
+ handleOpenDestinationFolderPopup: xa,
1971
+ handleCloseDestinationFolderPopup: Ia,
1972
1972
  openDestinationFolderPopup: en,
1973
- handleSetCopiedFiles: Fo,
1974
- handleSetMovedFiles: So,
1975
- destinationFolderMode: Eo,
1976
- destinationFolderTitle: Ao,
1977
- conflictingFiles: Po,
1978
- conflictResolutionOpen: ko,
1979
- closeConflictResolution: Oo,
1980
- handleConflictReplace: Mo,
1973
+ handleSetCopiedFiles: So,
1974
+ handleSetMovedFiles: Eo,
1975
+ destinationFolderMode: Ao,
1976
+ destinationFolderTitle: Po,
1977
+ conflictingFiles: ko,
1978
+ conflictResolutionOpen: Oo,
1979
+ closeConflictResolution: Mo,
1980
+ handleConflictReplace: Lo,
1981
1981
  handleConflictDuplicate: Ot,
1982
1982
  handleConflictCancel: tn,
1983
- handleConflictDecideForEach: Lo,
1983
+ handleConflictDecideForEach: _o,
1984
1984
  sourceFolder: Mn
1985
- } = Lr({
1985
+ } = _r({
1986
1986
  getDestinationFiles: (F) => Vt(o, F)?.items ?? [],
1987
1987
  onCopyFiles: L,
1988
1988
  onMoveToFiles: $,
@@ -1997,41 +1997,41 @@ const ei = ({
1997
1997
  }, [en, at]);
1998
1998
  const {
1999
1999
  deleteConfirmationOpen: Ln,
2000
- itemsToDelete: _o,
2001
- openDeleteConfirmation: zo,
2000
+ itemsToDelete: zo,
2001
+ openDeleteConfirmation: Bo,
2002
2002
  closeDeleteConfirmation: nn,
2003
2003
  confirmDelete: _n
2004
- } = zr({
2004
+ } = Br({
2005
2005
  onDeleteFiles: k,
2006
2006
  onDeleteSuccess: Ye
2007
- }), { handleDownloadFiles: zn } = Br({
2007
+ }), { handleDownloadFiles: zn } = Hr({
2008
2008
  onDownloadFiles: B,
2009
- customDownloadItemsAction: Rn,
2009
+ customDownloadItemsAction: Tn,
2010
2010
  onDownloadSuccess: Ye
2011
2011
  }), {
2012
- isDragging: Bo,
2013
- isDraggingOverWindow: Ho,
2012
+ isDragging: Ho,
2013
+ isDraggingOverWindow: Wo,
2014
2014
  uploadError: Mt,
2015
2015
  handleDragEnter: Lt,
2016
- handleDragLeave: Wo,
2016
+ handleDragLeave: Uo,
2017
2017
  handleDragOver: Bn,
2018
2018
  handleDrop: on,
2019
- clearError: Uo,
2019
+ clearError: Go,
2020
2020
  openFileDialog: an,
2021
- fileInputRef: Go,
2021
+ fileInputRef: Vo,
2022
2022
  openArchiveDialog: sn,
2023
- uploadConflictingFiles: Vo,
2024
- uploadConflictResolutionOpen: $o,
2025
- closeUploadConflictResolution: jo,
2026
- handleUploadConflictReplace: Zo,
2023
+ uploadConflictingFiles: $o,
2024
+ uploadConflictResolutionOpen: jo,
2025
+ closeUploadConflictResolution: Zo,
2026
+ handleUploadConflictReplace: Ko,
2027
2027
  handleUploadConflictDuplicate: Hn,
2028
2028
  handleUploadConflictCancel: Wn,
2029
2029
  handleUploadConflictDecideForEach: Un
2030
- } = Wr({
2031
- onUploadFiles: go,
2032
- onValidateUpload: Te,
2030
+ } = Ur({
2031
+ onUploadFiles: vo,
2032
+ onValidateUpload: Re,
2033
2033
  maxFileSize: he,
2034
- onUploadArchive: vo,
2034
+ onUploadArchive: wo,
2035
2035
  prepareUploadFileName: ze,
2036
2036
  allowedFileTypes: Y,
2037
2037
  validationMessages: se,
@@ -2052,7 +2052,7 @@ const ei = ({
2052
2052
  pe();
2053
2053
  const F = we ?? "", K = oe?.items ?? [];
2054
2054
  sn(F, K);
2055
- }, [we, oe, sn, pe]), Ko = u(() => {
2055
+ }, [we, oe, sn, pe]), Xo = u(() => {
2056
2056
  pe(), Dt?.(we, oe);
2057
2057
  }, [Dt, we, oe, pe]), _e = u(() => {
2058
2058
  pe(), Xt?.(we, oe);
@@ -2061,25 +2061,25 @@ const ei = ({
2061
2061
  we,
2062
2062
  oe,
2063
2063
  pe
2064
- ]), Xo = u(
2064
+ ]), qo = u(
2065
2065
  (F) => {
2066
- Tt?.(F);
2066
+ Rt?.(F);
2067
2067
  },
2068
- [Tt]
2068
+ [Rt]
2069
2069
  ), {
2070
2070
  isCreatingFolder: Je,
2071
2071
  newFolderTempId: rt,
2072
- createdFolderPath: qo,
2072
+ createdFolderPath: Yo,
2073
2073
  newFolderDefaultName: mt,
2074
2074
  startFolderCreation: Ae,
2075
2075
  startGridSiblingFolderCreation: Gn,
2076
2076
  startTreeSiblingFolderCreation: Vn,
2077
2077
  startGridChildFolderCreation: rn,
2078
2078
  startTreeChildFolderCreation: $n,
2079
- cancelFolderCreation: Yo,
2079
+ cancelFolderCreation: Qo,
2080
2080
  saveFolderCreation: ln,
2081
2081
  validateFolderName: zt
2082
- } = Xr({
2082
+ } = qr({
2083
2083
  currentFolder: oe,
2084
2084
  onCreateFolder: $e,
2085
2085
  onValidateFolderName: ae,
@@ -2098,11 +2098,11 @@ const ei = ({
2098
2098
  Fe,
2099
2099
  ye,
2100
2100
  Le
2101
- ]), { newActions: jn, isNewButtonVisible: Zn, isNewButtonDisabled: Kn } = Zr(
2101
+ ]), { newActions: jn, isNewButtonVisible: Zn, isNewButtonDisabled: Kn } = Kr(
2102
2102
  {
2103
2103
  newActions: f?.newActions,
2104
2104
  currentFolder: oe,
2105
- onUploadFiles: Dt ? Ko : ft,
2105
+ onUploadFiles: Dt ? Xo : ft,
2106
2106
  onUploadArchive: st,
2107
2107
  onCreateFolder: it,
2108
2108
  onCreateNewItem: _e,
@@ -2144,7 +2144,7 @@ const ei = ({
2144
2144
  }), Ue;
2145
2145
  }
2146
2146
  const F = $t(Jt).trim(), K = oe?.items ?? [];
2147
- let d = F ? Dr(oe) : K;
2147
+ let d = F ? Rr(oe) : K;
2148
2148
  It || (d = d.filter((G) => G.nodeType !== O.ITEM)), Ft || (d = d.filter(
2149
2149
  (G) => G.nodeType !== O.FOLDER
2150
2150
  )), Et || (d = d.filter((G) => F ? !G.path.split("/").filter(Boolean).some((de) => de.startsWith(".")) : !ns(G)));
@@ -2178,9 +2178,9 @@ const ei = ({
2178
2178
  const ie = F.split(/\s+/).filter(Boolean);
2179
2179
  return J.filter((G) => {
2180
2180
  if (G.isTemporary) return !0;
2181
- const Ue = $t(G.name), de = $t(G.author), Ia = br(G.extension);
2181
+ const Ue = $t(G.name), de = $t(G.author), Fa = Dr(G.extension);
2182
2182
  return ie.every(
2183
- (hn) => Ue.includes(hn) || de.includes(hn) || Ia.includes(hn)
2183
+ (hn) => Ue.includes(hn) || de.includes(hn) || Fa.includes(hn)
2184
2184
  );
2185
2185
  });
2186
2186
  }, [
@@ -2207,7 +2207,7 @@ const ei = ({
2207
2207
  if (!K?.items) return;
2208
2208
  const d = /* @__PURE__ */ new Set();
2209
2209
  for (const J of K.items)
2210
- F.fileNames.has(J.name) && Sr(J, Y, Z) && d.add(J.path);
2210
+ F.fileNames.has(J.name) && Er(J, Y, Z) && d.add(J.path);
2211
2211
  d.size > 0 && (dt(d), ot.current = null);
2212
2212
  }, [
2213
2213
  o,
@@ -2223,20 +2223,20 @@ const ei = ({
2223
2223
  Oe(F.path);
2224
2224
  },
2225
2225
  [Oe]
2226
- ), Qo = u(
2226
+ ), Jo = u(
2227
2227
  (F) => {
2228
2228
  Oe(F);
2229
2229
  },
2230
2230
  [Oe]
2231
2231
  ), Ht = u(
2232
2232
  (F) => {
2233
- F.nodeType === O.FOLDER ? Oe(F.path) : N?.(F);
2233
+ F.nodeType === O.FOLDER ? Oe(F.path) : b?.(F);
2234
2234
  },
2235
- [Oe, N]
2235
+ [Oe, b]
2236
2236
  ), { expandedPaths: Ct, setExpandedPaths: gt } = is({
2237
2237
  expandedPaths: p?.expandedPaths,
2238
2238
  onExpandedPathsChange: p?.onExpandedPathsChange
2239
- }), Jo = u(
2239
+ }), ea = u(
2240
2240
  (F) => {
2241
2241
  if (F.length > 0) {
2242
2242
  if (Fe && ye(F[0], Fe)) {
@@ -2290,7 +2290,7 @@ const ei = ({
2290
2290
  ye,
2291
2291
  Le
2292
2292
  ]
2293
- ), ea = u(
2293
+ ), ta = u(
2294
2294
  (F) => {
2295
2295
  if (F.length > 0) {
2296
2296
  if (Fe && ye(F[0], Fe - 1)) {
@@ -2311,16 +2311,16 @@ const ei = ({
2311
2311
  Le
2312
2312
  ]
2313
2313
  ), {
2314
- isMetadataPopupOpen: ta,
2314
+ isMetadataPopupOpen: na,
2315
2315
  selectedFileForMetadata: dn,
2316
2316
  openMetadataPopup: Yn,
2317
2317
  closeMetadataPopup: un
2318
- } = qr({ onGetInfo: Q }), Qn = u(() => {
2318
+ } = Yr({ onGetInfo: Q }), Qn = u(() => {
2319
2319
  un(), W?.clearMetadata?.();
2320
2320
  }, [un, W]), Jn = U(() => {
2321
- if (X)
2322
- return ro(X);
2323
- }, [X]), na = {
2321
+ if (q)
2322
+ return io(q);
2323
+ }, [q]), oa = {
2324
2324
  className: t,
2325
2325
  items: o,
2326
2326
  allowedFileTypes: Y,
@@ -2332,18 +2332,18 @@ const ei = ({
2332
2332
  expandedPaths: Ct,
2333
2333
  onExpandedPathsChange: gt
2334
2334
  },
2335
- showNavigationPanel: D,
2336
- navigationPanelOptions: g,
2337
- sortOptions: v,
2335
+ showNavigationPanel: R,
2336
+ navigationPanelOptions: v,
2337
+ sortOptions: C,
2338
2338
  gridOptions: ut,
2339
2339
  toolbarOptions: f,
2340
2340
  bulkActionsToolbarOptions: m,
2341
2341
  deleteConfirmationOptions: x,
2342
2342
  destinationFolderPopupOptions: {
2343
2343
  ...S,
2344
- destinationFolderPath: wo,
2344
+ destinationFolderPath: yo,
2345
2345
  setDestinationFolderPath: at,
2346
- header: Ao,
2346
+ header: Po,
2347
2347
  onCreateFolder: P,
2348
2348
  onCreateFolderValidate: ae,
2349
2349
  folderCreationValidationMessages: ge,
@@ -2351,14 +2351,14 @@ const ei = ({
2351
2351
  },
2352
2352
  currentPath: we,
2353
2353
  setCurrentPath: Qe,
2354
- searchValue: Io,
2354
+ searchValue: Fo,
2355
2355
  effectiveSearchValue: Jt,
2356
2356
  setSearchValue: At,
2357
2357
  areHiddenFilesVisible: Et,
2358
- toggleHiddenFilesVisibility: yo,
2359
- isTreeCollapsed: No,
2360
- toggleTreeCollapse: bo,
2361
- setIsTreeCollapsed: Do,
2358
+ toggleHiddenFilesVisibility: No,
2359
+ isTreeCollapsed: bo,
2360
+ toggleTreeCollapse: Do,
2361
+ setIsTreeCollapsed: Ro,
2362
2362
  selectedPaths: qe,
2363
2363
  selectedFiles: xt,
2364
2364
  setSelectedPaths: dt,
@@ -2367,17 +2367,17 @@ const ei = ({
2367
2367
  gridRows: Xn,
2368
2368
  handleCopyTo: Pt,
2369
2369
  handleMoveTo: On,
2370
- handleDuplicate: Tt ? Xo : kt,
2371
- handleSetCopiedFiles: Fo,
2372
- handleSetMovedFiles: So,
2370
+ handleDuplicate: Rt ? qo : kt,
2371
+ handleSetCopiedFiles: So,
2372
+ handleSetMovedFiles: Eo,
2373
2373
  openDestinationFolderPopup: en,
2374
- handleCloseDestinationFolderPopup: xa,
2375
- handleOpenDestinationFolderPopup: Ra,
2376
- destinationFolderMode: Eo,
2377
- handleGridAddSibling: Jo,
2374
+ handleCloseDestinationFolderPopup: Ia,
2375
+ handleOpenDestinationFolderPopup: xa,
2376
+ destinationFolderMode: Ao,
2377
+ handleGridAddSibling: ea,
2378
2378
  handleGridAddChild: qn,
2379
2379
  handleTreeAddSibling: cn,
2380
- handleTreeAddChild: ea,
2380
+ handleTreeAddChild: ta,
2381
2381
  handleDownloadFiles: zn,
2382
2382
  renamedPath: Yt,
2383
2383
  renamedItem: Pn,
@@ -2386,63 +2386,63 @@ const ei = ({
2386
2386
  skipForbiddenSymbolsCheckForActions: ue,
2387
2387
  onRename: kn,
2388
2388
  onRenameSave: To,
2389
- onRenameCancel: Ro,
2390
- onRenameValidate: xo,
2389
+ onRenameCancel: xo,
2390
+ onRenameValidate: Io,
2391
2391
  getDisplayName: Qt,
2392
- openDeleteConfirmation: Tn || zo,
2392
+ openDeleteConfirmation: Rn || Bo,
2393
2393
  closeDeleteConfirmation: nn,
2394
2394
  confirmDelete: _n,
2395
2395
  deleteConfirmationOpen: Ln,
2396
- itemsToDelete: _o,
2396
+ itemsToDelete: zo,
2397
2397
  handlePathChange: Oe,
2398
2398
  handleTreeItemClick: Bt,
2399
- handleBreadcrumbItemClick: Qo,
2399
+ handleBreadcrumbItemClick: Jo,
2400
2400
  handleSearchChange: Me,
2401
2401
  handleTableRowClick: Ht,
2402
- onTableFileClick: N,
2402
+ onTableFileClick: b,
2403
2403
  handleSelectionClick: I,
2404
2404
  onGridApiChange: _,
2405
- isDragging: Bo,
2405
+ isDragging: Ho,
2406
2406
  uploadError: Mt,
2407
2407
  handleDragEnter: Lt,
2408
- handleDragLeave: Wo,
2408
+ handleDragLeave: Uo,
2409
2409
  handleDragOver: Bn,
2410
2410
  handleDrop: _t,
2411
- clearUploadError: Uo,
2411
+ clearUploadError: Go,
2412
2412
  onUploadFiles: De,
2413
- onValidateUpload: Te,
2413
+ onValidateUpload: Re,
2414
2414
  maxFileSize: he,
2415
- isDraggingOverWindow: Ho,
2415
+ isDraggingOverWindow: Wo,
2416
2416
  openFileDialog: ft,
2417
- fileInputRef: Go,
2417
+ fileInputRef: Vo,
2418
2418
  newActions: jn,
2419
2419
  isNewButtonVisible: Zn,
2420
2420
  isNewButtonDisabled: Kn,
2421
2421
  isCreatingFolder: Je,
2422
2422
  newFolderTempId: rt,
2423
- createdFolderPath: qo,
2423
+ createdFolderPath: Yo,
2424
2424
  newFolderDefaultName: mt,
2425
2425
  startFolderCreation: it,
2426
- cancelFolderCreation: Yo,
2426
+ cancelFolderCreation: Qo,
2427
2427
  saveFolderCreation: ln,
2428
2428
  validateFolderName: zt,
2429
2429
  conflictResolutionPopupOptions: A,
2430
- conflictingFiles: Po,
2431
- conflictResolutionOpen: ko,
2432
- closeConflictResolution: Oo,
2433
- handleConflictReplace: Mo,
2430
+ conflictingFiles: ko,
2431
+ conflictResolutionOpen: Oo,
2432
+ closeConflictResolution: Mo,
2433
+ handleConflictReplace: Lo,
2434
2434
  handleConflictDuplicate: Ot,
2435
2435
  handleConflictCancel: tn,
2436
- handleConflictDecideForEach: Lo,
2437
- uploadConflictingFiles: Vo,
2438
- uploadConflictResolutionOpen: $o,
2439
- closeUploadConflictResolution: jo,
2440
- handleUploadConflictReplace: Zo,
2436
+ handleConflictDecideForEach: _o,
2437
+ uploadConflictingFiles: $o,
2438
+ uploadConflictResolutionOpen: jo,
2439
+ closeUploadConflictResolution: Zo,
2440
+ handleUploadConflictReplace: Ko,
2441
2441
  handleUploadConflictDuplicate: Hn,
2442
2442
  handleUploadConflictCancel: Wn,
2443
2443
  handleUploadConflictDecideForEach: Un,
2444
2444
  fileMetadataPopupOptions: W,
2445
- isMetadataPopupOpen: ta,
2445
+ isMetadataPopupOpen: na,
2446
2446
  selectedFileForMetadata: dn,
2447
2447
  openMetadataPopup: Yn,
2448
2448
  closeMetadataPopup: Qn,
@@ -2453,38 +2453,38 @@ const ei = ({
2453
2453
  sharedByMePaths: Xe,
2454
2454
  onSearchFiles: We,
2455
2455
  searchInProgress: M,
2456
- searchResults: R,
2456
+ searchResults: T,
2457
2457
  clearSearchResults: V,
2458
2458
  isSearchMode: ht,
2459
2459
  emptyStateIcon: ce,
2460
2460
  emptyStateTitle: ee,
2461
2461
  emptyStateDescription: Be,
2462
2462
  searchEmptyStateTitle: Nt,
2463
- gridClassName: Rt,
2463
+ gridClassName: Tt,
2464
2464
  contentClassName: xn,
2465
2465
  contentHeaderClassName: In,
2466
2466
  sharedWithMeIds: Ve,
2467
2467
  onFolderPopupPathChange: bt,
2468
2468
  onManagePermissions: ke,
2469
- onPreview: io,
2470
- onOpenInNewTab: lo,
2471
- previewExtensions: co,
2472
- isRenameFileAvailable: uo,
2473
- isDuplicateFolderAvailable: ho,
2469
+ onPreview: lo,
2470
+ onOpenInNewTab: co,
2471
+ previewExtensions: uo,
2472
+ isRenameFileAvailable: ho,
2473
+ isDuplicateFolderAvailable: po,
2474
2474
  customUploadFileAction: Dt,
2475
2475
  customBreakpointRef: tt,
2476
- nonClickableTableColumns: po,
2477
- hideSearchPathItemName: fo,
2476
+ nonClickableTableColumns: fo,
2477
+ hideSearchPathItemName: mo,
2478
2478
  getDisabledTooltip: le,
2479
2479
  fileTooLargeTooltip: ve,
2480
- unsupportedFileTypeTooltip: Re,
2481
- showHiddenFileSwitcherInDestinationPopup: mo,
2482
- showCreateFolderButtonInDestinationPopup: Co,
2480
+ unsupportedFileTypeTooltip: Te,
2481
+ showHiddenFileSwitcherInDestinationPopup: Co,
2482
+ showCreateFolderButtonInDestinationPopup: go,
2483
2483
  maxNewFolderDepth: Fe,
2484
2484
  onNewFolderDepthExceeded: qt
2485
2485
  };
2486
- return /* @__PURE__ */ a(as.Provider, { value: na, children: e });
2487
- }, ti = ({
2486
+ return /* @__PURE__ */ a(as.Provider, { value: oa, children: e });
2487
+ }, ni = ({
2488
2488
  disabledGridRowIds: e,
2489
2489
  gridRows: t,
2490
2490
  getDisabledTooltip: o,
@@ -2499,33 +2499,33 @@ const ei = ({
2499
2499
  };
2500
2500
  return window.addEventListener("scroll", p, !0), () => window.removeEventListener("scroll", p, !0);
2501
2501
  }, []), Ne(() => {
2502
- const p = (v) => {
2503
- const T = v.target.closest(
2502
+ const p = (C) => {
2503
+ const D = C.target.closest(
2504
2504
  ".ag-row"
2505
2505
  );
2506
- if (!T) {
2506
+ if (!D) {
2507
2507
  l((m) => m && null);
2508
2508
  return;
2509
2509
  }
2510
2510
  const f = new DOMParser().parseFromString(
2511
- T.getAttribute("row-id") || "",
2511
+ D.getAttribute("row-id") || "",
2512
2512
  "text/html"
2513
2513
  ).documentElement.textContent;
2514
- f && e.has(f) ? l((m) => m !== f ? (w(T.getBoundingClientRect()), f) : m) : l((m) => m && null);
2515
- }, D = () => {
2514
+ f && e.has(f) ? l((m) => m !== f ? (w(D.getBoundingClientRect()), f) : m) : l((m) => m && null);
2515
+ }, R = () => {
2516
2516
  l(null), w(null);
2517
- }, g = document.querySelector(
2517
+ }, v = document.querySelector(
2518
2518
  '[aria-label="File Manager Grid View"]'
2519
2519
  );
2520
- if (g)
2521
- return g.addEventListener("mousemove", p), g.addEventListener("mouseleave", D), () => {
2522
- g.removeEventListener("mousemove", p), g.removeEventListener("mouseleave", D);
2520
+ if (v)
2521
+ return v.addEventListener("mousemove", p), v.addEventListener("mouseleave", R), () => {
2522
+ v.removeEventListener("mousemove", p), v.removeEventListener("mouseleave", R);
2523
2523
  };
2524
2524
  }, [e]);
2525
2525
  const c = U(() => {
2526
2526
  if (i)
2527
2527
  return t.find((p) => p.path === i);
2528
- }, [i, t]), b = U(() => {
2528
+ }, [i, t]), N = U(() => {
2529
2529
  if (c) {
2530
2530
  if (o) {
2531
2531
  const p = o(c);
@@ -2544,14 +2544,14 @@ const ei = ({
2544
2544
  n,
2545
2545
  r
2546
2546
  ]);
2547
- return /* @__PURE__ */ a(Pe, { children: b && h && Zs(
2548
- /* @__PURE__ */ q(Fs, { open: !0, placement: Ss.Top, children: [
2547
+ return /* @__PURE__ */ a(Pe, { children: N && h && Ks(
2548
+ /* @__PURE__ */ X(Fs, { open: !0, placement: Ss.Top, children: [
2549
2549
  /* @__PURE__ */ a(Es, { asChild: !0, children: /* @__PURE__ */ a(
2550
2550
  "div",
2551
2551
  {
2552
2552
  className: be(
2553
2553
  "fixed z-[-1]",
2554
- b && "pointer-events-none"
2554
+ N && "pointer-events-none"
2555
2555
  ),
2556
2556
  style: {
2557
2557
  top: h.top,
@@ -2561,7 +2561,7 @@ const ei = ({
2561
2561
  }
2562
2562
  }
2563
2563
  ) }),
2564
- /* @__PURE__ */ a(As, { className: "text-center", children: b })
2564
+ /* @__PURE__ */ a(As, { className: "text-center", children: N })
2565
2565
  ] }),
2566
2566
  document.body
2567
2567
  ) });
@@ -2571,7 +2571,7 @@ const ei = ({
2571
2571
  const o = () => t(Ua());
2572
2572
  return window.addEventListener("resize", o), () => window.removeEventListener("resize", o);
2573
2573
  }, []), e;
2574
- }, ni = ({
2574
+ }, oi = ({
2575
2575
  onClose: e,
2576
2576
  onConfirm: t,
2577
2577
  onFolderPopupPathChange: o,
@@ -2583,33 +2583,33 @@ const ei = ({
2583
2583
  mode: h = xe.Copy,
2584
2584
  hiddenFilesSwitcherLabel: w = "Show hidden files",
2585
2585
  showHiddenFileSwitcher: c = !0,
2586
- showCreateFolderButton: b = !0,
2586
+ showCreateFolderButton: N = !0,
2587
2587
  onUploadFiles: p,
2588
- onValidateUpload: D,
2589
- maxFileSize: g,
2590
- header: v,
2588
+ onValidateUpload: R,
2589
+ maxFileSize: v,
2590
+ header: C,
2591
2591
  sourceFolder: x,
2592
- disabledPathTooltip: T = "Unavailable for the original path. Please select another folder",
2592
+ disabledPathTooltip: D = "Unavailable for the original path. Please select another folder",
2593
2593
  path: f,
2594
2594
  collapsedFileTree: m = !1,
2595
2595
  alertProps: S,
2596
2596
  processDestinationFolderPath: A,
2597
- excludedPaths: C,
2598
- items: N,
2597
+ excludedPaths: g,
2598
+ items: b,
2599
2599
  ...I
2600
2600
  }) => {
2601
2601
  const [_, L] = z(!1), [$, k] = z(!1), B = fe(null), j = Ta(), H = U(
2602
- () => Tr(N, C),
2603
- [N, C]
2604
- ), X = u((ne) => {
2602
+ () => Tr(b, g),
2603
+ [b, g]
2604
+ ), q = u((ne) => {
2605
2605
  L(ne);
2606
2606
  }, []), me = U(() => {
2607
2607
  const ne = [];
2608
- return b && ne.push({
2608
+ return N && ne.push({
2609
2609
  key: "add-folder",
2610
2610
  label: l,
2611
2611
  icon: /* @__PURE__ */ a(
2612
- Fa,
2612
+ Sa,
2613
2613
  {
2614
2614
  ...E,
2615
2615
  className: "text-secondary"
@@ -2621,7 +2621,7 @@ const ei = ({
2621
2621
  }), c && ne.push({
2622
2622
  key: "show-hidden-files",
2623
2623
  label: w,
2624
- icon: /* @__PURE__ */ a(ca, { ...E, className: "text-secondary" }),
2624
+ icon: /* @__PURE__ */ a(ua, { ...E, className: "text-secondary" }),
2625
2625
  onClick: () => {
2626
2626
  L((se) => !se), k(!1);
2627
2627
  }
@@ -2630,7 +2630,7 @@ const ei = ({
2630
2630
  l,
2631
2631
  w,
2632
2632
  c,
2633
- b
2633
+ N
2634
2634
  ]), ue = u(
2635
2635
  (ne) => {
2636
2636
  if (ne) {
@@ -2643,9 +2643,9 @@ const ei = ({
2643
2643
  s,
2644
2644
  A
2645
2645
  ]
2646
- ), De = h === xe.Copy ? "Copy to" : "Move to", Te = U(() => !f || !x ? !1 : x === f, [f, x]);
2646
+ ), De = h === xe.Copy ? "Copy to" : "Move to", Re = U(() => !f || !x ? !1 : x === f, [f, x]);
2647
2647
  return /* @__PURE__ */ a(
2648
- Ca,
2648
+ ga,
2649
2649
  {
2650
2650
  open: n,
2651
2651
  onClose: () => {
@@ -2653,7 +2653,7 @@ const ei = ({
2653
2653
  },
2654
2654
  size: no.Lg,
2655
2655
  className: "md:!h-[800px] !bg-layer-sunken",
2656
- footer: /* @__PURE__ */ q("div", { className: "flex justify-between items-center gap-2 p-4 md:px-6", children: [
2656
+ footer: /* @__PURE__ */ X("div", { className: "flex justify-between items-center gap-2 p-4 md:px-6", children: [
2657
2657
  /* @__PURE__ */ a("div", { className: "flex items-center gap-4 min-w-0", children: j ? /* @__PURE__ */ a(
2658
2658
  wt,
2659
2659
  {
@@ -2669,38 +2669,38 @@ const ei = ({
2669
2669
  }
2670
2670
  )
2671
2671
  }
2672
- ) : /* @__PURE__ */ q(Pe, { children: [
2673
- b && /* @__PURE__ */ a(
2672
+ ) : /* @__PURE__ */ X(Pe, { children: [
2673
+ N && /* @__PURE__ */ a(
2674
2674
  Ut,
2675
2675
  {
2676
2676
  label: l,
2677
2677
  appearance: oo.Ghost,
2678
- iconBefore: /* @__PURE__ */ a(Fa, { ...E }),
2678
+ iconBefore: /* @__PURE__ */ a(Sa, { ...E }),
2679
2679
  onClick: () => {
2680
2680
  B.current?.createFolder();
2681
2681
  }
2682
2682
  }
2683
2683
  ),
2684
- b && c && /* @__PURE__ */ a("div", { className: "w-px h-[26px] bg-control-disable-primary my-2" }),
2684
+ N && c && /* @__PURE__ */ a("div", { className: "w-px h-[26px] bg-control-disable-primary my-2" }),
2685
2685
  c && /* @__PURE__ */ a(Pe, { children: /* @__PURE__ */ a("div", { className: "inline-flex items-center cursor-pointer", children: /* @__PURE__ */ a(
2686
2686
  qa,
2687
2687
  {
2688
2688
  labelProps: { label: w },
2689
2689
  isOn: _,
2690
- onChange: X,
2690
+ onChange: q,
2691
2691
  id: "hidden-files-switch-modal"
2692
2692
  }
2693
2693
  ) }) })
2694
2694
  ] }) }),
2695
- /* @__PURE__ */ q("div", { className: "flex space-x-4 items-center", children: [
2695
+ /* @__PURE__ */ X("div", { className: "flex space-x-4 items-center", children: [
2696
2696
  /* @__PURE__ */ a(Xa, { onClick: e, label: "Cancel" }),
2697
- Te ? /* @__PURE__ */ a(ao, { tooltip: T, children: /* @__PURE__ */ a(
2697
+ Re ? /* @__PURE__ */ a(ao, { tooltip: D, children: /* @__PURE__ */ a(
2698
2698
  Ut,
2699
2699
  {
2700
2700
  onClick: t,
2701
2701
  label: h === "copy" ? r : i,
2702
- disabled: Te,
2703
- "aria-disabled": Te
2702
+ disabled: Re,
2703
+ "aria-disabled": Re
2704
2704
  }
2705
2705
  ) }) : /* @__PURE__ */ a(
2706
2706
  Ut,
@@ -2711,12 +2711,12 @@ const ei = ({
2711
2711
  )
2712
2712
  ] })
2713
2713
  ] }),
2714
- header: v ?? De,
2714
+ header: C ?? De,
2715
2715
  ariaLabel: De,
2716
- children: /* @__PURE__ */ q("div", { className: "bg-layer-sunken h-full flex flex-col", children: [
2716
+ children: /* @__PURE__ */ X("div", { className: "bg-layer-sunken h-full flex flex-col", children: [
2717
2717
  S && /* @__PURE__ */ a("div", { className: "px-6 mb-4 pt-4", children: /* @__PURE__ */ a(Ps, { ...S }) }),
2718
2718
  /* @__PURE__ */ a("div", { className: "flex-1 min-h-0", children: /* @__PURE__ */ a(
2719
- Vi,
2719
+ $i,
2720
2720
  {
2721
2721
  ...I,
2722
2722
  items: H,
@@ -2729,7 +2729,7 @@ const ei = ({
2729
2729
  actionsRef: B,
2730
2730
  path: f,
2731
2731
  showHiddenFiles: _,
2732
- onShowHiddenFilesChange: X,
2732
+ onShowHiddenFilesChange: q,
2733
2733
  treeOptions: {
2734
2734
  ...I.treeOptions,
2735
2735
  collapsed: m,
@@ -2743,33 +2743,33 @@ const ei = ({
2743
2743
  ...I.navigationPanelOptions
2744
2744
  },
2745
2745
  onUploadFiles: p,
2746
- onValidateUpload: D,
2746
+ onValidateUpload: R,
2747
2747
  onPathChange: ue,
2748
- maxFileSize: g
2748
+ maxFileSize: v
2749
2749
  }
2750
2750
  ) })
2751
2751
  ] })
2752
2752
  }
2753
2753
  );
2754
2754
  };
2755
- function oi({
2755
+ function ai({
2756
2756
  actions: e,
2757
2757
  direction: t = wn.Normal,
2758
- moreButtonWidth: o = fa,
2758
+ moreButtonWidth: o = ma,
2759
2759
  actionsGap: s = 8,
2760
2760
  containerPadding: n = 8,
2761
2761
  dependencies: r = []
2762
2762
  }) {
2763
- const i = fe(null), l = fe(null), h = fe(null), w = fe(null), c = fe([]), [b, p] = z(0), D = u(
2764
- (x, T) => {
2765
- const f = h.current?.offsetWidth ?? 0, m = w.current?.offsetWidth ?? 0, S = f + m, C = T.getBoundingClientRect().width - S - o - s * 2 - n * 2;
2766
- let N = 0, I = 0;
2763
+ const i = fe(null), l = fe(null), h = fe(null), w = fe(null), c = fe([]), [N, p] = z(0), R = u(
2764
+ (x, D) => {
2765
+ const f = h.current?.offsetWidth ?? 0, m = w.current?.offsetWidth ?? 0, S = f + m, g = D.getBoundingClientRect().width - S - o - s * 2 - n * 2;
2766
+ let b = 0, I = 0;
2767
2767
  if (t === wn.Reverse)
2768
- for (let _ = x.length - 1; _ >= 0 && (N += x[_] + s, !(N > C)); _--)
2768
+ for (let _ = x.length - 1; _ >= 0 && (b += x[_] + s, !(b > g)); _--)
2769
2769
  I++;
2770
2770
  else
2771
2771
  for (const _ of x) {
2772
- if (N += _ + s, N > C) break;
2772
+ if (b += _ + s, b > g) break;
2773
2773
  I++;
2774
2774
  }
2775
2775
  p(I);
@@ -2779,37 +2779,37 @@ function oi({
2779
2779
  Ns(
2780
2780
  () => {
2781
2781
  if (!l.current || !i.current) return;
2782
- const T = Array.from(l.current.children).map(
2782
+ const D = Array.from(l.current.children).map(
2783
2783
  (f) => Math.ceil(f.getBoundingClientRect().width)
2784
2784
  );
2785
- c.current = T, T.length !== 0 && D(T, i.current);
2785
+ c.current = D, D.length !== 0 && R(D, i.current);
2786
2786
  },
2787
2787
  // Re-measure when the action list or layout-affecting deps (e.g. isMobile) change
2788
2788
  // eslint-disable-next-line react-hooks/exhaustive-deps
2789
- [e, D, ...r]
2789
+ [e, R, ...r]
2790
2790
  ), Ne(() => {
2791
2791
  if (!i.current) return;
2792
2792
  let x = null;
2793
- const T = () => {
2793
+ const D = () => {
2794
2794
  x && cancelAnimationFrame(x), x = requestAnimationFrame(() => {
2795
2795
  if (!i.current) return;
2796
2796
  const m = i.current, S = c.current;
2797
- S.length !== 0 && D(S, m);
2797
+ S.length !== 0 && R(S, m);
2798
2798
  });
2799
- }, f = new ResizeObserver(T);
2800
- return f.observe(i.current), T(), () => {
2799
+ }, f = new ResizeObserver(D);
2800
+ return f.observe(i.current), D(), () => {
2801
2801
  x && cancelAnimationFrame(x), f.disconnect();
2802
2802
  };
2803
2803
  }, [
2804
2804
  e.length,
2805
- D,
2805
+ R,
2806
2806
  // eslint-disable-next-line react-hooks/exhaustive-deps
2807
2807
  ...r
2808
2808
  ]);
2809
- const g = t === wn.Reverse ? e.slice(0, e.length - b) : e.slice(b);
2809
+ const v = t === wn.Reverse ? e.slice(0, e.length - N) : e.slice(N);
2810
2810
  return {
2811
- visibleActions: t === wn.Reverse ? e.slice(e.length - b) : e.slice(0, b),
2812
- hiddenActions: g,
2811
+ visibleActions: t === wn.Reverse ? e.slice(e.length - N) : e.slice(0, N),
2812
+ hiddenActions: v,
2813
2813
  refs: {
2814
2814
  containerRef: i,
2815
2815
  measureRef: l,
@@ -2818,7 +2818,7 @@ function oi({
2818
2818
  }
2819
2819
  };
2820
2820
  }
2821
- const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-full h-16 rounded-[12px] bg-layer-base shadow-sm px-[24px] flex items-center gap-3", li = "flex shrink-0 items-center gap-1 dial-small-semi-text text-primary", ci = "rounded bg-control-neutral-active w-[22px] flex items-center justify-center h-[22px] dial-small-text font-semibold text-primary rounded-full", di = "flex gap-3 items-center", ui = ({
2821
+ const si = 12, ri = 8, ii = "w-full flex justify-center", li = "w-auto max-w-full h-16 rounded-[12px] bg-layer-base shadow-sm px-[24px] flex items-center gap-3", ci = "flex shrink-0 items-center gap-1 dial-small-semi-text text-primary", di = "rounded bg-control-neutral-active w-[22px] flex items-center justify-center h-[22px] dial-small-text font-semibold text-primary rounded-full", ui = "flex gap-3 items-center", hi = ({
2822
2822
  getSelectionLabel: e,
2823
2823
  onClearSelection: t,
2824
2824
  actions: o,
@@ -2829,40 +2829,40 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
2829
2829
  refs: { containerRef: i, leftSectionRef: l, measureRef: h },
2830
2830
  visibleActions: w,
2831
2831
  hiddenActions: c
2832
- } = oi({
2832
+ } = ai({
2833
2833
  actions: o,
2834
2834
  direction: wn.Reverse,
2835
2835
  dependencies: [r],
2836
- actionsGap: ai,
2837
- containerPadding: si
2838
- }), b = e(s);
2839
- return /* @__PURE__ */ q(Pe, { children: [
2836
+ actionsGap: si,
2837
+ containerPadding: ri
2838
+ }), N = e(s);
2839
+ return /* @__PURE__ */ X(Pe, { children: [
2840
2840
  /* @__PURE__ */ a(
2841
2841
  "div",
2842
2842
  {
2843
2843
  ref: h,
2844
2844
  className: "absolute top-0 left-0 invisible pointer-events-none overflow-hidden whitespace-nowrap flex gap-3",
2845
- children: o.map(({ key: p, icon: D, title: g, danger: v }) => /* @__PURE__ */ a(
2846
- v ? Ea : Ut,
2845
+ children: o.map(({ key: p, icon: R, title: v, danger: C }) => /* @__PURE__ */ a(
2846
+ C ? la : Ut,
2847
2847
  {
2848
2848
  appearance: oo.Ghost,
2849
- iconBefore: D,
2850
- label: g
2849
+ iconBefore: R,
2850
+ label: v
2851
2851
  },
2852
2852
  p
2853
2853
  ))
2854
2854
  }
2855
2855
  ),
2856
- /* @__PURE__ */ a("div", { ref: i, className: ri, children: /* @__PURE__ */ q(
2856
+ /* @__PURE__ */ a("div", { ref: i, className: ii, children: /* @__PURE__ */ X(
2857
2857
  "div",
2858
2858
  {
2859
- className: ii,
2859
+ className: li,
2860
2860
  role: "toolbar",
2861
2861
  "aria-label": "File bulk actions",
2862
2862
  children: [
2863
- /* @__PURE__ */ q("div", { ref: l, className: li, children: [
2864
- /* @__PURE__ */ a("span", { className: ci, children: s }),
2865
- /* @__PURE__ */ a("span", { className: "whitespace-nowrap", children: b }),
2863
+ /* @__PURE__ */ X("div", { ref: l, className: ci, children: [
2864
+ /* @__PURE__ */ a("span", { className: di, children: s }),
2865
+ /* @__PURE__ */ a("span", { className: "whitespace-nowrap", children: N }),
2866
2866
  /* @__PURE__ */ a(
2867
2867
  jt,
2868
2868
  {
@@ -2874,7 +2874,7 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
2874
2874
  }
2875
2875
  )
2876
2876
  ] }),
2877
- /* @__PURE__ */ q("div", { className: di, children: [
2877
+ /* @__PURE__ */ X("div", { className: ui, children: [
2878
2878
  c.length > 0 && /* @__PURE__ */ a(
2879
2879
  wt,
2880
2880
  {
@@ -2890,14 +2890,14 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
2890
2890
  }
2891
2891
  ),
2892
2892
  w.map(
2893
- ({ key: p, icon: D, tooltip: g, title: v, onClick: x, disabled: T, danger: f }) => /* @__PURE__ */ a(
2894
- f ? Ea : Ut,
2893
+ ({ key: p, icon: R, tooltip: v, title: C, onClick: x, disabled: D, danger: f }) => /* @__PURE__ */ a(
2894
+ f ? la : Ut,
2895
2895
  {
2896
2896
  appearance: oo.Ghost,
2897
- iconBefore: D,
2898
- label: v,
2899
- disabled: T,
2900
- tooltipProps: { tooltip: g },
2897
+ iconBefore: R,
2898
+ label: C,
2899
+ disabled: D,
2900
+ tooltipProps: { tooltip: v },
2901
2901
  onClick: (S) => x?.({ key: p, domEvent: S })
2902
2902
  },
2903
2903
  p
@@ -2908,59 +2908,72 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
2908
2908
  }
2909
2909
  ) })
2910
2910
  ] });
2911
- }, hi = ({
2911
+ }, pi = ({
2912
2912
  open: e,
2913
2913
  itemsToDelete: t,
2914
2914
  onClose: o,
2915
2915
  onConfirm: s,
2916
2916
  cancelLabel: n = "Cancel",
2917
2917
  confirmLabel: r = "Delete",
2918
- titleRenderer: i,
2919
- contentRenderer: l
2918
+ closeLabel: i = "Close dialog",
2919
+ titleRenderer: l,
2920
+ contentRenderer: h
2920
2921
  }) => {
2921
- const h = t.map((D) => D.name), w = "Confirm Deleting Items", c = i?.(h) || w, b = /* @__PURE__ */ q("div", { className: "px-6 py-3 dial-small-text", children: [
2922
- /* @__PURE__ */ a("p", { className: "text-secondary mb-3", children: t.length === 1 ? /* @__PURE__ */ q(Pe, { children: [
2922
+ const w = t.map((C) => C.name), c = "Confirm Deleting Items", N = l?.(w, t) || c, p = /* @__PURE__ */ X("div", { className: "px-6 py-3 dial-small-text", children: [
2923
+ /* @__PURE__ */ a("p", { className: "text-secondary mb-3", children: t.length === 1 ? /* @__PURE__ */ X(Pe, { children: [
2923
2924
  "Do you want to delete file or folder",
2924
2925
  " ",
2925
- /* @__PURE__ */ q("span", { className: "text-primary break-all", children: [
2926
+ /* @__PURE__ */ X("span", { className: "text-primary break-all", children: [
2926
2927
  '"',
2927
2928
  t[0].name,
2928
2929
  '"'
2929
2930
  ] }),
2930
2931
  "?"
2931
- ] }) : /* @__PURE__ */ q(Pe, { children: [
2932
+ ] }) : /* @__PURE__ */ X(Pe, { children: [
2932
2933
  "Do you want to delete the following",
2933
2934
  " ",
2934
2935
  /* @__PURE__ */ a("span", { className: "text-primary", children: t.length }),
2935
2936
  " items?"
2936
2937
  ] }) }),
2937
- t.length > 1 && /* @__PURE__ */ a(Pe, { children: t.length <= 10 ? /* @__PURE__ */ a("ul", { className: "space-y-1 text-primary list-none", children: t.map((D) => /* @__PURE__ */ a("li", { className: "truncate", children: D.name }, D.path)) }) : /* @__PURE__ */ q(Pe, { children: [
2938
- /* @__PURE__ */ a("ul", { className: "space-y-1 text-primary list-none mb-2", children: t.slice(0, 10).map((D) => /* @__PURE__ */ a("li", { className: "truncate", children: D.name }, D.path)) }),
2939
- /* @__PURE__ */ q("p", { className: "text-secondary italic", children: [
2938
+ t.length > 1 && /* @__PURE__ */ a(Pe, { children: t.length <= 10 ? /* @__PURE__ */ a("ul", { className: "space-y-1 text-primary list-none", children: t.map((C) => /* @__PURE__ */ a("li", { className: "truncate", children: C.name }, C.path)) }) : /* @__PURE__ */ X(Pe, { children: [
2939
+ /* @__PURE__ */ a("ul", { className: "space-y-1 text-primary list-none mb-2", children: t.slice(0, 10).map((C) => /* @__PURE__ */ a("li", { className: "truncate", children: C.name }, C.path)) }),
2940
+ /* @__PURE__ */ X("p", { className: "text-secondary italic", children: [
2940
2941
  "... and ",
2941
2942
  t.length - 10,
2942
2943
  " more"
2943
2944
  ] })
2944
2945
  ] }) })
2945
- ] }), p = l?.(h) || b;
2946
+ ] }), R = h?.(w, t) || p, v = /* @__PURE__ */ X("div", { className: "flex justify-end gap-2 px-6 py-4 border-t border-tertiary", children: [
2947
+ /* @__PURE__ */ a(ks, { label: n, onClick: o }),
2948
+ /* @__PURE__ */ a(
2949
+ la,
2950
+ {
2951
+ label: r,
2952
+ iconBefore: /* @__PURE__ */ a(ro, { ...E, "aria-hidden": !0 }),
2953
+ onClick: s
2954
+ }
2955
+ )
2956
+ ] });
2946
2957
  return /* @__PURE__ */ a(
2947
- ks,
2958
+ Os,
2948
2959
  {
2949
2960
  open: e,
2950
- header: c,
2951
- ariaLabel: w,
2961
+ header: N,
2962
+ ariaLabel: typeof N == "string" ? N : c,
2952
2963
  confirmLabel: r,
2953
2964
  cancelLabel: n,
2954
- variant: Os.Danger,
2965
+ variant: Ms.Danger,
2966
+ footer: v,
2967
+ closeAriaLabel: i,
2955
2968
  onClose: o,
2956
2969
  onConfirm: s,
2957
- children: p
2970
+ children: R
2958
2971
  }
2959
2972
  );
2960
- }, Ga = (e) => e.split("/").map((t) => t.trim()).filter(Boolean), pi = "min-w-0 flex-1 flex items-center", fi = "min-w-0 h-[40px] flex-1 overflow-hidden flex items-center", mi = ({
2973
+ }, Ga = (e) => e.split("/").map((t) => t.trim()).filter(Boolean), fi = "min-w-0 flex-1 flex items-center", mi = "min-w-0 h-[40px] flex-1 overflow-hidden flex items-center", Ci = ({
2961
2974
  ariaLabel: e = "Breadcrumb",
2962
2975
  overflowAriaLabel: t,
2963
- size: o = Ls.Heading,
2976
+ size: o = _s.Heading,
2964
2977
  maxVisibleItems: s,
2965
2978
  itemClassName: n,
2966
2979
  onItemClick: r,
@@ -2969,11 +2982,11 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
2969
2982
  rootItemPath: h,
2970
2983
  rootItemLabel: w,
2971
2984
  breadcrumbsHiddenPathPart: c,
2972
- topLevelLabel: b,
2985
+ topLevelLabel: N,
2973
2986
  isTopLevel: p = !1,
2974
- onTopLevelClick: D,
2975
- className: g,
2976
- breadcrumbClassName: v
2987
+ onTopLevelClick: R,
2988
+ className: v,
2989
+ breadcrumbClassName: C
2977
2990
  }) => {
2978
2991
  const x = U(() => {
2979
2992
  if (!i) return [{ label: "/" }];
@@ -2981,22 +2994,22 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
2981
2994
  const m = [...f];
2982
2995
  let S = 0;
2983
2996
  if (c) {
2984
- const C = Ga(c);
2985
- if (C.length) {
2986
- const N = f.findIndex(
2987
- (I, _) => C.every((L, $) => f[_ + $] === L)
2997
+ const g = Ga(c);
2998
+ if (g.length) {
2999
+ const b = f.findIndex(
3000
+ (I, _) => g.every((L, $) => f[_ + $] === L)
2988
3001
  );
2989
- N !== -1 && (S = C.length, f = [
2990
- ...f.slice(0, N),
2991
- ...f.slice(N + C.length)
3002
+ b !== -1 && (S = g.length, f = [
3003
+ ...f.slice(0, b),
3004
+ ...f.slice(b + g.length)
2992
3005
  ]);
2993
3006
  }
2994
3007
  }
2995
3008
  if (!f.length) return [{ label: "/" }];
2996
- const A = f.map((C, N) => {
2997
- const I = N < f.length - S ? N : N + S, _ = m.slice(0, I + 1), L = typeof l == "function" ? l(_, I) : void 0;
3009
+ const A = f.map((g, b) => {
3010
+ const I = b < f.length - S ? b : b + S, _ = m.slice(0, I + 1), L = typeof l == "function" ? l(_, I) : void 0;
2998
3011
  return {
2999
- label: C,
3012
+ label: g,
3000
3013
  href: L,
3001
3014
  onClick: r ? ($) => {
3002
3015
  $.preventDefault(), r(L);
@@ -3004,11 +3017,11 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3004
3017
  };
3005
3018
  });
3006
3019
  if (h && w) {
3007
- const C = h.split("/").filter(Boolean), N = i.split("/").filter(Boolean);
3008
- if (C.every(
3009
- (_, L) => N[L] === _
3020
+ const g = h.split("/").filter(Boolean), b = i.split("/").filter(Boolean);
3021
+ if (g.every(
3022
+ (_, L) => b[L] === _
3010
3023
  ) && A.length > 0) {
3011
- const _ = A.slice(C.length);
3024
+ const _ = A.slice(g.length);
3012
3025
  return [
3013
3026
  {
3014
3027
  label: w,
@@ -3029,35 +3042,35 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3029
3042
  w,
3030
3043
  l,
3031
3044
  r
3032
- ]), T = U(() => b ? p ? [{ label: b }] : [
3045
+ ]), D = U(() => N ? p ? [{ label: N }] : [
3033
3046
  {
3034
- label: b,
3035
- onClick: D ? (f) => {
3036
- f.preventDefault(), D();
3047
+ label: N,
3048
+ onClick: R ? (f) => {
3049
+ f.preventDefault(), R();
3037
3050
  } : void 0
3038
3051
  },
3039
3052
  ...x
3040
- ] : x, [x, b, p, D]);
3053
+ ] : x, [x, N, p, R]);
3041
3054
  return /* @__PURE__ */ a(
3042
3055
  "div",
3043
3056
  {
3044
- className: be(pi, g),
3057
+ className: be(fi, v),
3045
3058
  "aria-label": "navigation-panel",
3046
- children: /* @__PURE__ */ a("div", { className: fi, children: /* @__PURE__ */ a(
3047
- Ms,
3059
+ children: /* @__PURE__ */ a("div", { className: mi, children: /* @__PURE__ */ a(
3060
+ Ls,
3048
3061
  {
3049
- items: T,
3062
+ items: D,
3050
3063
  size: o,
3051
3064
  maxVisibleItems: s,
3052
3065
  ariaLabel: e,
3053
3066
  overflowAriaLabel: t,
3054
3067
  itemClassName: n,
3055
- className: v
3068
+ className: C
3056
3069
  }
3057
3070
  ) })
3058
3071
  }
3059
3072
  );
3060
- }, Ci = "flex w-full shrink-0 items-center gap-3", gi = "min-w-0 flex-1", vi = ({
3073
+ }, gi = "flex w-full shrink-0 items-center gap-3", vi = "min-w-0 flex-1", wi = ({
3061
3074
  value: e,
3062
3075
  elementId: t = "file-manager-search",
3063
3076
  onSearchChange: o,
@@ -3069,8 +3082,8 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3069
3082
  ...h
3070
3083
  }) => {
3071
3084
  const w = u(
3072
- (b) => {
3073
- o?.(b ?? "");
3085
+ (N) => {
3086
+ o?.(N ?? "");
3074
3087
  },
3075
3088
  [o]
3076
3089
  ), c = u(() => {
@@ -3079,11 +3092,11 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3079
3092
  return /* @__PURE__ */ a(
3080
3093
  "div",
3081
3094
  {
3082
- className: be(Ci, s),
3095
+ className: be(gi, s),
3083
3096
  role: "search",
3084
3097
  "aria-label": "Search",
3085
- children: /* @__PURE__ */ a("div", { className: gi, children: /* @__PURE__ */ a(
3086
- _s,
3098
+ children: /* @__PURE__ */ a("div", { className: vi, children: /* @__PURE__ */ a(
3099
+ zs,
3087
3100
  {
3088
3101
  ...h,
3089
3102
  id: t,
@@ -3098,17 +3111,17 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3098
3111
  ) })
3099
3112
  }
3100
3113
  );
3101
- }, wi = {
3114
+ }, yi = {
3102
3115
  listClassName: "min-w-[240px]",
3103
3116
  matchReferenceWidth: !1
3104
- }, yi = {
3117
+ }, Ni = {
3105
3118
  [et.Name]: "Name",
3106
3119
  [et.UpdatedAt]: "Modified date",
3107
3120
  [et.Size]: "Size"
3108
- }, Ni = {
3121
+ }, bi = {
3109
3122
  [Zt.Asc]: "Ascending",
3110
3123
  [Zt.Desc]: "Descending"
3111
- }, bi = Object.values(et), Di = Object.values(Zt), Ti = ({
3124
+ }, Di = Object.values(et), Ri = Object.values(Zt), Ti = ({
3112
3125
  sort: e,
3113
3126
  onSortChange: t,
3114
3127
  label: o = "Sort",
@@ -3119,17 +3132,17 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3119
3132
  }) => {
3120
3133
  const l = U(
3121
3134
  () => [
3122
- ...bi.map((h) => ({
3135
+ ...Di.map((h) => ({
3123
3136
  key: `field-${h}`,
3124
- label: s?.[h] ?? yi[h],
3137
+ label: s?.[h] ?? Ni[h],
3125
3138
  mark: Aa.Check,
3126
3139
  checked: e.field === h,
3127
3140
  onClick: () => t?.({ ...e, field: h })
3128
3141
  })),
3129
- { key: "sort-divider", type: va.Divider },
3130
- ...Di.map((h) => ({
3142
+ { key: "sort-divider", type: wa.Divider },
3143
+ ...Ri.map((h) => ({
3131
3144
  key: `direction-${h}`,
3132
- label: n?.[h] ?? Ni[h],
3145
+ label: n?.[h] ?? bi[h],
3133
3146
  mark: Aa.Check,
3134
3147
  checked: e.direction === h,
3135
3148
  onClick: () => t?.({ ...e, direction: h })
@@ -3138,14 +3151,14 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3138
3151
  [e, t, s, n]
3139
3152
  );
3140
3153
  return /* @__PURE__ */ a(
3141
- ia,
3154
+ ca,
3142
3155
  {
3143
3156
  label: o,
3144
3157
  variant: Ya.Primary,
3145
3158
  appearance: oo.Ghost,
3146
3159
  iconBefore: /* @__PURE__ */ a(fs, { ...E }),
3147
3160
  items: l,
3148
- dropdownProps: wi,
3161
+ dropdownProps: yi,
3149
3162
  disabled: r,
3150
3163
  className: i
3151
3164
  }
@@ -3153,7 +3166,7 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3153
3166
  }, Va = {
3154
3167
  listClassName: "min-w-[108px]",
3155
3168
  matchReferenceWidth: !1
3156
- }, Ri = ({
3169
+ }, xi = ({
3157
3170
  areHiddenFilesVisible: e,
3158
3171
  onToggleHiddenFiles: t,
3159
3172
  isNewButtonVisible: o,
@@ -3166,11 +3179,11 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3166
3179
  showHiddenFilesToggle: w = !0,
3167
3180
  disabledNewButtonTooltip: c
3168
3181
  }) => {
3169
- const b = Ta(), p = U(() => [
3182
+ const N = Ta(), p = U(() => [
3170
3183
  {
3171
3184
  key: "hidden-files-switch",
3172
3185
  label: e ? h : l,
3173
- icon: e ? /* @__PURE__ */ a(ms, { ...E, className: "text-secondary" }) : /* @__PURE__ */ a(ca, { ...E, className: "text-secondary" }),
3186
+ icon: e ? /* @__PURE__ */ a(ms, { ...E, className: "text-secondary" }) : /* @__PURE__ */ a(ua, { ...E, className: "text-secondary" }),
3174
3187
  onClick: () => t?.(!e)
3175
3188
  }
3176
3189
  ], [
@@ -3179,7 +3192,7 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3179
3192
  l,
3180
3193
  t
3181
3194
  ]);
3182
- return /* @__PURE__ */ a("div", { className: "flex gap-4 shrink-0 items-center", children: b ? /* @__PURE__ */ q(Pe, { children: [
3195
+ return /* @__PURE__ */ a("div", { className: "flex gap-4 shrink-0 items-center", children: N ? /* @__PURE__ */ X(Pe, { children: [
3183
3196
  /* @__PURE__ */ a(
3184
3197
  wt,
3185
3198
  {
@@ -3193,7 +3206,7 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3193
3206
  bn,
3194
3207
  {
3195
3208
  stroke: ts,
3196
- size: zs.SM
3209
+ size: Bs.SM
3197
3210
  }
3198
3211
  )
3199
3212
  }
@@ -3205,7 +3218,7 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3205
3218
  {
3206
3219
  tooltip: s && c ? c : void 0,
3207
3220
  children: /* @__PURE__ */ a(
3208
- ia,
3221
+ ca,
3209
3222
  {
3210
3223
  label: i,
3211
3224
  variant: n,
@@ -3216,7 +3229,7 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3216
3229
  )
3217
3230
  }
3218
3231
  ) : null
3219
- ] }) : /* @__PURE__ */ q(Pe, { children: [
3232
+ ] }) : /* @__PURE__ */ X(Pe, { children: [
3220
3233
  w && /* @__PURE__ */ a(
3221
3234
  qa,
3222
3235
  {
@@ -3233,7 +3246,7 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3233
3246
  {
3234
3247
  tooltip: s && c ? c : void 0,
3235
3248
  children: /* @__PURE__ */ a(
3236
- ia,
3249
+ ca,
3237
3250
  {
3238
3251
  label: i,
3239
3252
  variant: n,
@@ -3245,7 +3258,7 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3245
3258
  }
3246
3259
  )
3247
3260
  ] }) });
3248
- }, xi = 100, Cn = 16, Ze = "text-secondary", eo = "text-primary min-w-0", Ii = "text-primary break-words min-w-0", gn = "bg-layer-sunken", Fi = ({
3261
+ }, Ii = 100, Cn = 16, Ze = "text-secondary", eo = "text-primary min-w-0", Fi = "text-primary break-words min-w-0", gn = "bg-layer-sunken", Si = ({
3249
3262
  open: e,
3250
3263
  onClose: t,
3251
3264
  fileMetadata: o,
@@ -3257,9 +3270,9 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3257
3270
  sizeLabel: h = "Size:",
3258
3271
  authorLabel: w = "Author:",
3259
3272
  dateLocale: c = "en-US",
3260
- dateOptions: b
3273
+ dateOptions: N
3261
3274
  }) => /* @__PURE__ */ a(
3262
- Ca,
3275
+ ga,
3263
3276
  {
3264
3277
  open: e,
3265
3278
  onClose: t,
@@ -3270,8 +3283,8 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3270
3283
  "div",
3271
3284
  {
3272
3285
  className: "grid gap-4 items-center dial-small-text",
3273
- style: { gridTemplateColumns: `${xi}px 1fr` },
3274
- children: s ? /* @__PURE__ */ q(Pe, { children: [
3286
+ style: { gridTemplateColumns: `${Ii}px 1fr` },
3287
+ children: s ? /* @__PURE__ */ X(Pe, { children: [
3275
3288
  /* @__PURE__ */ a("div", { className: Ze, children: r }),
3276
3289
  /* @__PURE__ */ a(
3277
3290
  pn,
@@ -3322,17 +3335,17 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3322
3335
  className: gn
3323
3336
  }
3324
3337
  )
3325
- ] }) : o ? /* @__PURE__ */ q(Pe, { children: [
3338
+ ] }) : o ? /* @__PURE__ */ X(Pe, { children: [
3326
3339
  /* @__PURE__ */ a("div", { className: Ze, children: r }),
3327
3340
  /* @__PURE__ */ a("div", { className: eo, children: /* @__PURE__ */ a(Wt, { text: o.name }) }),
3328
3341
  /* @__PURE__ */ a("div", { className: Ze, children: l }),
3329
3342
  /* @__PURE__ */ a("div", { className: eo, children: /* @__PURE__ */ a(
3330
3343
  Wt,
3331
3344
  {
3332
- text: Rr(
3345
+ text: xr(
3333
3346
  o.updatedAt,
3334
3347
  c,
3335
- b
3348
+ N
3336
3349
  )
3337
3350
  }
3338
3351
  ) }),
@@ -3346,15 +3359,15 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3346
3359
  /* @__PURE__ */ a("div", { className: Ze, children: w }),
3347
3360
  /* @__PURE__ */ a("div", { className: eo, children: /* @__PURE__ */ a(Wt, { text: o.author || "—" }) }),
3348
3361
  /* @__PURE__ */ a("div", { className: Ze, children: i }),
3349
- /* @__PURE__ */ a("div", { className: Ii, children: decodeURIComponent(o.path) })
3362
+ /* @__PURE__ */ a("div", { className: Fi, children: decodeURIComponent(o.path) })
3350
3363
  ] }) : null
3351
3364
  }
3352
3365
  ) })
3353
3366
  }
3354
- ), Si = {
3367
+ ), Ei = {
3355
3368
  size: 10,
3356
3369
  stroke: 2
3357
- }, Ei = 14, vn = "__new_folder", Ai = ({
3370
+ }, Ai = 14, vn = "__new_folder", Pi = ({
3358
3371
  name: e,
3359
3372
  type: t,
3360
3373
  elementId: o,
@@ -3366,23 +3379,23 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3366
3379
  inputInvalid: h,
3367
3380
  inputInvalidMessage: w,
3368
3381
  inputContainerClassName: c,
3369
- inputIconAfter: b,
3382
+ inputIconAfter: N,
3370
3383
  inputRef: p,
3371
- onChange: D,
3372
- sharedIndicatorClassName: g,
3373
- sharedIndicatorTooltip: v,
3384
+ onChange: R,
3385
+ sharedIndicatorClassName: v,
3386
+ sharedIndicatorTooltip: C,
3374
3387
  fileExtension: x
3375
3388
  }) => {
3376
- const T = () => {
3389
+ const D = () => {
3377
3390
  const f = w?.startsWith(
3378
- `${ra.Warning}__`
3391
+ `${ia.Warning}__`
3379
3392
  );
3380
3393
  if (!h && !f) return null;
3381
3394
  const m = w?.replace(
3382
- `${ra.Warning}__`,
3395
+ `${ia.Warning}__`,
3383
3396
  ""
3384
3397
  );
3385
- return /* @__PURE__ */ a(ao, { tooltip: m, children: b || (f ? /* @__PURE__ */ a(
3398
+ return /* @__PURE__ */ a(ao, { tooltip: m, children: N || (f ? /* @__PURE__ */ a(
3386
3399
  gs,
3387
3400
  {
3388
3401
  ...E,
@@ -3398,9 +3411,9 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3398
3411
  }
3399
3412
  )) });
3400
3413
  };
3401
- return /* @__PURE__ */ q("div", { className: "flex gap-2 items-center", ...Bs, children: [
3414
+ return /* @__PURE__ */ X("div", { className: "flex gap-2 items-center", ...Hs, children: [
3402
3415
  /* @__PURE__ */ a(
3403
- Hs,
3416
+ Ws,
3404
3417
  {
3405
3418
  name: e,
3406
3419
  type: t,
@@ -3410,12 +3423,12 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3410
3423
  loading: s,
3411
3424
  shared: n,
3412
3425
  fileExtension: x,
3413
- sharedIndicatorClassName: g,
3414
- sharedIndicatorTooltip: v
3426
+ sharedIndicatorClassName: v,
3427
+ sharedIndicatorTooltip: C
3415
3428
  }
3416
3429
  ),
3417
3430
  /* @__PURE__ */ a(
3418
- Ws,
3431
+ Us,
3419
3432
  {
3420
3433
  wrapperClassName: be(
3421
3434
  "!h-5 !py-[1px] !pl-[7px] !pr-[7px]",
@@ -3423,9 +3436,9 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3423
3436
  ),
3424
3437
  id: o,
3425
3438
  value: e,
3426
- onChange: D,
3439
+ onChange: R,
3427
3440
  invalid: h,
3428
- iconAfter: T(),
3441
+ iconAfter: D(),
3429
3442
  inputRef: p
3430
3443
  }
3431
3444
  )
@@ -3438,34 +3451,34 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3438
3451
  loading: n = !1,
3439
3452
  creating: r = !1,
3440
3453
  shared: i = !1,
3441
- iconSize: l = fa,
3454
+ iconSize: l = ma,
3442
3455
  validate: h,
3443
3456
  onSave: w,
3444
3457
  fileExtension: c,
3445
- onCancel: b,
3458
+ onCancel: N,
3446
3459
  onCreateFolderCancel: p,
3447
- onCreateFolderSave: D,
3448
- inputContainerClassName: g,
3449
- sharedIndicatorClassName: v,
3460
+ onCreateFolderSave: R,
3461
+ inputContainerClassName: v,
3462
+ sharedIndicatorClassName: C,
3450
3463
  sharedIndicatorTooltip: x,
3451
- hideTooltip: T = !1,
3464
+ hideTooltip: D = !1,
3452
3465
  forbiddenSymbolsRegExp: f,
3453
3466
  forbiddenSymbolsTooltip: m,
3454
3467
  details: S
3455
3468
  }) => {
3456
- const { value: A, invalid: C, invalidMessage: N, onChange: I, inputRef: _ } = Us({
3469
+ const { value: A, invalid: g, invalidMessage: b, onChange: I, inputRef: _ } = Gs({
3457
3470
  value: e,
3458
3471
  isEditing: s,
3459
3472
  isCreating: r,
3460
3473
  isLoading: n,
3461
3474
  onValidate: h,
3462
- onCancel: b,
3475
+ onCancel: N,
3463
3476
  onSave: w,
3464
3477
  onCreateFolderCancel: p,
3465
- onCreateFolderSave: D
3478
+ onCreateFolderSave: R
3466
3479
  });
3467
3480
  if (!s && !r) {
3468
- const L = Da(
3481
+ const L = Ra(
3469
3482
  {
3470
3483
  name: e,
3471
3484
  isFolder: t === ct.Folder
@@ -3474,7 +3487,7 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3474
3487
  m
3475
3488
  );
3476
3489
  return /* @__PURE__ */ a(
3477
- ma,
3490
+ Ca,
3478
3491
  {
3479
3492
  className: "max-w-[428px]",
3480
3493
  name: e,
@@ -3484,29 +3497,29 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3484
3497
  loading: n,
3485
3498
  shared: i,
3486
3499
  iconSize: l,
3487
- sharedIndicatorClassName: v,
3500
+ sharedIndicatorClassName: C,
3488
3501
  sharedIndicatorTooltip: x,
3489
- hideTooltip: T,
3502
+ hideTooltip: D,
3490
3503
  isInvalidName: !!L,
3491
3504
  tooltipContent: L
3492
3505
  }
3493
3506
  );
3494
3507
  }
3495
3508
  return /* @__PURE__ */ a(
3496
- Ai,
3509
+ Pi,
3497
3510
  {
3498
3511
  type: t,
3499
3512
  name: A,
3500
3513
  elementId: o,
3501
- inputInvalid: C,
3502
- inputInvalidMessage: N,
3514
+ inputInvalid: g,
3515
+ inputInvalidMessage: b,
3503
3516
  inputRef: _,
3504
3517
  onChange: I,
3505
3518
  iconSize: l,
3506
3519
  fileExtension: c,
3507
- inputContainerClassName: g,
3520
+ inputContainerClassName: v,
3508
3521
  sharedIndicatorTooltip: x,
3509
- sharedIndicatorClassName: v
3522
+ sharedIndicatorClassName: C
3510
3523
  }
3511
3524
  );
3512
3525
  }, ls = (e, t, o, s) => e.flatMap((n) => {
@@ -3521,7 +3534,7 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3521
3534
  n.path
3522
3535
  )
3523
3536
  ];
3524
- }), Pi = ({
3537
+ }), ki = ({
3525
3538
  items: e,
3526
3539
  showFiles: t = !1,
3527
3540
  expandedPaths: o,
@@ -3533,19 +3546,19 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3533
3546
  emptyStateDescription: h,
3534
3547
  emptyStateIcon: w,
3535
3548
  areHiddenFilesVisible: c = !1,
3536
- renamedPath: b,
3549
+ renamedPath: N,
3537
3550
  createdFolderPath: p,
3538
- rootItemLabel: D,
3539
- rootItemPath: g,
3540
- onItemClick: v,
3551
+ rootItemLabel: R,
3552
+ rootItemPath: v,
3553
+ onItemClick: C,
3541
3554
  getContextMenuItems: x,
3542
- onRenameSave: T,
3555
+ onRenameSave: D,
3543
3556
  onRenameCancel: f,
3544
3557
  onRenameValidate: m,
3545
3558
  onExpandedPathsChange: S,
3546
3559
  onCreateFolderSave: A,
3547
- onCreateFolderCancel: C,
3548
- forbiddenSymbolsRegExp: N,
3560
+ onCreateFolderCancel: g,
3561
+ forbiddenSymbolsRegExp: b,
3549
3562
  forbiddenSymbolsTooltip: I,
3550
3563
  newFolderDefaultName: _,
3551
3564
  ariaLabel: L = "Folders",
@@ -3555,47 +3568,47 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3555
3568
  const { expandedPaths: B, togglePath: j } = is({
3556
3569
  expandedPaths: o ?? /* @__PURE__ */ new Set(),
3557
3570
  onExpandedPathsChange: S
3558
- }), H = (P) => (c || !ns(P)) && (t || P.nodeType === O.FOLDER), X = U(
3571
+ }), H = (P) => (c || !ns(P)) && (t || P.nodeType === O.FOLDER), q = U(
3559
3572
  () => ls(e, B, H),
3560
3573
  // isNodeVisible only reads the two flags listed here.
3561
3574
  // eslint-disable-next-line react-hooks/exhaustive-deps
3562
3575
  [e, B, c, t]
3563
- ), me = fe(/* @__PURE__ */ new Map()), [ue, De] = z(), Te = (P) => P != null && X.some((ae) => ae.node.path === P), ne = Te(ue) ? ue : Te(i) ? i : X[0]?.node.path;
3576
+ ), me = fe(/* @__PURE__ */ new Map()), [ue, De] = z(), Re = (P) => P != null && q.some((ae) => ae.node.path === P), ne = Re(ue) ? ue : Re(i) ? i : q[0]?.node.path;
3564
3577
  Ne(() => {
3565
3578
  $ && ne != null && me.current.get(ne)?.focus();
3566
3579
  }, []);
3567
3580
  const se = (P) => {
3568
- v?.(P), j(P.path);
3581
+ C?.(P), j(P.path);
3569
3582
  }, he = (P) => {
3570
3583
  P != null && (De(P), me.current.get(P)?.focus());
3571
3584
  }, Ee = (P) => {
3572
- const ae = X.findIndex(
3585
+ const ae = q.findIndex(
3573
3586
  (We) => me.current.get(We.node.path) === P.target
3574
3587
  );
3575
3588
  if (ae === -1) return;
3576
- const { node: ge, parentPath: W } = X[ae], Q = ge.nodeType === O.FOLDER, te = B.has(ge.path), Ie = getComputedStyle(P.currentTarget).direction === "rtl", re = Ie ? "ArrowLeft" : "ArrowRight", Xe = Ie ? "ArrowRight" : "ArrowLeft";
3589
+ const { node: ge, parentPath: W } = q[ae], Q = ge.nodeType === O.FOLDER, te = B.has(ge.path), Ie = getComputedStyle(P.currentTarget).direction === "rtl", re = Ie ? "ArrowLeft" : "ArrowRight", Xe = Ie ? "ArrowRight" : "ArrowLeft";
3577
3590
  switch (P.key) {
3578
3591
  case "ArrowDown":
3579
- he(X[ae + 1]?.node.path);
3592
+ he(q[ae + 1]?.node.path);
3580
3593
  break;
3581
3594
  case "ArrowUp":
3582
- he(X[ae - 1]?.node.path);
3595
+ he(q[ae - 1]?.node.path);
3583
3596
  break;
3584
3597
  case "Home":
3585
- he(X[0]?.node.path);
3598
+ he(q[0]?.node.path);
3586
3599
  break;
3587
3600
  case "End":
3588
- he(X[X.length - 1]?.node.path);
3601
+ he(q[q.length - 1]?.node.path);
3589
3602
  break;
3590
3603
  case re:
3591
- Q && !te ? j(ge.path) : Q && X[ae + 1]?.parentPath === ge.path && he(X[ae + 1].node.path);
3604
+ Q && !te ? j(ge.path) : Q && q[ae + 1]?.parentPath === ge.path && he(q[ae + 1].node.path);
3592
3605
  break;
3593
3606
  case Xe:
3594
3607
  Q && te ? j(ge.path) : he(W);
3595
3608
  break;
3596
3609
  case "Enter":
3597
3610
  case " ":
3598
- Q ? se(ge) : v?.(ge);
3611
+ Q ? se(ge) : C?.(ge);
3599
3612
  break;
3600
3613
  case "Escape":
3601
3614
  if (!k) return;
@@ -3621,12 +3634,12 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3621
3634
  ]);
3622
3635
  const Q = W.filter(H);
3623
3636
  return Q.map((te, Ie) => {
3624
- const { path: re, nodeType: Xe, name: We, items: R } = te, M = Xe === O.FOLDER, V = Array.isArray(R) && R.length > 0 && R.some((ke) => ke.nodeType === O.FOLDER || t), Y = B.has(re), Z = i === re, le = s.has(re), ve = b === re || re === `${p}/${vn}`, Re = n.has(re), ce = r.has(re), ee = g && D && re === g && M, Be = m && ((ke) => m(ke, te)), Nt = Z ? "bg-control-accent-alpha" : "", Ve = ee ? [] : x?.(te) ?? [], bt = N ? Da(
3637
+ const { path: re, nodeType: Xe, name: We, items: T } = te, M = Xe === O.FOLDER, V = Array.isArray(T) && T.length > 0 && T.some((ke) => ke.nodeType === O.FOLDER || t), Y = B.has(re), Z = i === re, le = s.has(re), ve = N === re || re === `${p}/${vn}`, Te = n.has(re), ce = r.has(re), ee = v && R && re === v && M, Be = m && ((ke) => m(ke, te)), Nt = Z ? "bg-control-accent-alpha" : "", Ve = ee ? [] : x?.(te) ?? [], bt = b ? Ra(
3625
3638
  { name: te.name, isFolder: M },
3626
- N,
3639
+ b,
3627
3640
  I
3628
3641
  ) : void 0;
3629
- return /* @__PURE__ */ a("div", { className: "cursor-pointer", children: /* @__PURE__ */ q("div", { className: "flex flex-col w-full gap-1", children: [
3642
+ return /* @__PURE__ */ a("div", { className: "cursor-pointer", children: /* @__PURE__ */ X("div", { className: "flex flex-col w-full gap-1", children: [
3630
3643
  /* @__PURE__ */ a(
3631
3644
  wt,
3632
3645
  {
@@ -3634,14 +3647,14 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3634
3647
  className: "w-full h-[32px]",
3635
3648
  anchorToMouse: !0,
3636
3649
  items: Ve,
3637
- children: /* @__PURE__ */ q(
3650
+ children: /* @__PURE__ */ X(
3638
3651
  "div",
3639
3652
  {
3640
3653
  ref: (ke) => {
3641
3654
  ke ? me.current.set(re, ke) : me.current.delete(re);
3642
3655
  },
3643
3656
  role: "treeitem",
3644
- "aria-label": ee ? D : We,
3657
+ "aria-label": ee ? R : We,
3645
3658
  "aria-level": ae + 1,
3646
3659
  "aria-posinset": Ie + 1,
3647
3660
  "aria-setsize": Q.length,
@@ -3651,7 +3664,7 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3651
3664
  onFocus: (ke) => {
3652
3665
  ke.target === ke.currentTarget && De(re);
3653
3666
  },
3654
- style: { paddingLeft: `${ae * Ei}px` },
3667
+ style: { paddingLeft: `${ae * Ai}px` },
3655
3668
  className: be(
3656
3669
  "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",
3657
3670
  "outline-none focus-visible:outline focus-visible:outline-focus focus-visible:-outline-offset-1",
@@ -3670,15 +3683,15 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3670
3683
  {
3671
3684
  className: "relative flex flex-row truncate items-center w-fit h-6 gap-x-1 pl-1",
3672
3685
  onClick: () => !ve && se(te),
3673
- children: /* @__PURE__ */ q(Pe, { children: [
3686
+ children: /* @__PURE__ */ X(Pe, { children: [
3674
3687
  M && /* @__PURE__ */ a(
3675
3688
  vs,
3676
3689
  {
3677
- ...Si,
3690
+ ...Ei,
3678
3691
  className: be(
3679
3692
  "flex-shrink-0 text-secondary",
3680
3693
  Y && "rotate-90 transition-all",
3681
- Re && !V && "text-transparent"
3694
+ Te && !V && "text-transparent"
3682
3695
  )
3683
3696
  }
3684
3697
  ),
@@ -3686,7 +3699,7 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3686
3699
  so,
3687
3700
  {
3688
3701
  elementId: `${re}-tree-item`,
3689
- name: ee ? D : We,
3702
+ name: ee ? R : We,
3690
3703
  type: M ? ct.Folder : ct.File,
3691
3704
  loading: le,
3692
3705
  shared: ce,
@@ -3695,16 +3708,16 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3695
3708
  Z && "bg-control-accent-alpha"
3696
3709
  ),
3697
3710
  iconSize: lt,
3698
- forbiddenSymbolsRegExp: N,
3711
+ forbiddenSymbolsRegExp: b,
3699
3712
  forbiddenSymbolsTooltip: bt,
3700
3713
  ...!ee && {
3701
3714
  editing: ve,
3702
3715
  creating: re === `${p}/${vn}`,
3703
- onSave: T,
3716
+ onSave: D,
3704
3717
  onCancel: f,
3705
3718
  validate: Be,
3706
3719
  onCreateFolderSave: A,
3707
- onCreateFolderCancel: C
3720
+ onCreateFolderCancel: g
3708
3721
  }
3709
3722
  }
3710
3723
  )
@@ -3733,7 +3746,7 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3733
3746
  )
3734
3747
  }
3735
3748
  ),
3736
- Y && (R || te?.path === p) && ze(R || [], ae + 1, te)
3749
+ Y && (T || te?.path === p) && ze(T || [], ae + 1, te)
3737
3750
  ] }) }, `${re}-children`);
3738
3751
  });
3739
3752
  };
@@ -3741,14 +3754,14 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3741
3754
  // Focus lives on the roving-tabIndex rows; the root only routes their keys.
3742
3755
  /* @__PURE__ */ a("div", { role: "tree", "aria-label": L, onKeyDown: Ee, children: ze(e, 0) })
3743
3756
  ) : /* @__PURE__ */ a(
3744
- la,
3757
+ da,
3745
3758
  {
3746
3759
  title: l,
3747
3760
  description: h,
3748
3761
  icon: w
3749
3762
  }
3750
3763
  ) });
3751
- }, ki = ({
3764
+ }, Oi = ({
3752
3765
  selectedFiles: e,
3753
3766
  actionLabels: t,
3754
3767
  onDuplicate: o,
@@ -3760,106 +3773,106 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3760
3773
  onDelete: h,
3761
3774
  getCurrentFolderPath: w,
3762
3775
  sharedWithMeIds: c,
3763
- sharedByMePaths: b,
3776
+ sharedByMePaths: N,
3764
3777
  onClearSelection: p,
3765
- forbiddenSymbolsRegExp: D
3778
+ forbiddenSymbolsRegExp: R
3766
3779
  }) => U(() => {
3767
- const g = [], v = Array.from(e.values());
3768
- if (!v.length || !t)
3769
- return g;
3770
- const x = ro(D), T = x ? v.some((f) => x.test(f.name)) : !1;
3771
- if (t[y.Download] && !T && g.push({
3780
+ const v = [], C = Array.from(e.values());
3781
+ if (!C.length || !t)
3782
+ return v;
3783
+ const x = io(R), D = x ? C.some((f) => x.test(f.name)) : !1;
3784
+ if (t[y.Download] && !D && v.push({
3772
3785
  key: y.Download,
3773
3786
  label: t[y.Download],
3774
3787
  title: t[y.Download],
3775
- icon: /* @__PURE__ */ a(da, { ...E }),
3776
- onClick: () => r(v)
3777
- }), t[y.Move] && !T && g.push({
3788
+ icon: /* @__PURE__ */ a(ha, { ...E }),
3789
+ onClick: () => r(C)
3790
+ }), t[y.Move] && !D && v.push({
3778
3791
  key: y.Move,
3779
3792
  label: t[y.Move],
3780
3793
  title: t[y.Move],
3781
3794
  icon: /* @__PURE__ */ a(
3782
- ya,
3795
+ Na,
3783
3796
  {
3784
3797
  width: E.size,
3785
3798
  height: E.size
3786
3799
  }
3787
3800
  ),
3788
- onClick: () => n(v)
3789
- }), t[y.Copy] && !T && g.push({
3801
+ onClick: () => n(C)
3802
+ }), t[y.Copy] && !D && v.push({
3790
3803
  key: y.Copy,
3791
3804
  label: t[y.Copy],
3792
3805
  title: t[y.Copy],
3793
3806
  icon: /* @__PURE__ */ a(
3794
- wa,
3807
+ ya,
3795
3808
  {
3796
3809
  width: E.size,
3797
3810
  height: E.size
3798
3811
  }
3799
3812
  ),
3800
- onClick: () => s(v)
3801
- }), t[y.Duplicate] && !T && g.push({
3813
+ onClick: () => s(C)
3814
+ }), t[y.Duplicate] && !D && v.push({
3802
3815
  key: y.Duplicate,
3803
3816
  label: t[y.Duplicate],
3804
3817
  title: t[y.Duplicate],
3805
- icon: /* @__PURE__ */ a(ua, { ...E }),
3806
- onClick: () => o(v)
3818
+ icon: /* @__PURE__ */ a(pa, { ...E }),
3819
+ onClick: () => o(C)
3807
3820
  }), t[y.Unshare] && i) {
3808
- const f = v.some(
3821
+ const f = C.some(
3809
3822
  (m) => !c?.includes(m.path)
3810
3823
  );
3811
- g.push({
3824
+ v.push({
3812
3825
  key: y.Unshare,
3813
3826
  label: t[y.Unshare],
3814
3827
  title: t[y.Unshare],
3815
3828
  disabled: f,
3816
3829
  tooltip: f ? "Selected items contain item which can not be unshared" : void 0,
3817
3830
  icon: /* @__PURE__ */ a(
3818
- Na,
3831
+ ba,
3819
3832
  {
3820
3833
  width: E.size,
3821
3834
  height: E.size
3822
3835
  }
3823
3836
  ),
3824
3837
  onClick: () => {
3825
- i(v), p();
3838
+ i(C), p();
3826
3839
  }
3827
3840
  });
3828
3841
  }
3829
3842
  if (t[y.RemoveAccess] && l) {
3830
- const f = v.some(
3831
- (m) => !b?.has(m.path)
3843
+ const f = C.some(
3844
+ (m) => !N?.has(m.path)
3832
3845
  );
3833
- g.push({
3846
+ v.push({
3834
3847
  key: y.RemoveAccess,
3835
3848
  label: t[y.RemoveAccess],
3836
3849
  title: t[y.RemoveAccess],
3837
3850
  disabled: f,
3838
- icon: /* @__PURE__ */ a(ha, { ...E }),
3851
+ icon: /* @__PURE__ */ a(fa, { ...E }),
3839
3852
  onClick: () => {
3840
- l(v), p();
3853
+ l(C), p();
3841
3854
  }
3842
3855
  });
3843
3856
  }
3844
3857
  if (t[y.Delete]) {
3845
- const f = v.some(
3858
+ const f = C.some(
3846
3859
  (m) => m.permissions && !m.permissions.includes(Kt.WRITE)
3847
3860
  );
3848
- g.push({
3861
+ v.push({
3849
3862
  key: y.Delete,
3850
3863
  label: t[y.Delete],
3851
3864
  title: t[y.Delete],
3852
- icon: /* @__PURE__ */ a(pa, { ...E }),
3865
+ icon: /* @__PURE__ */ a(ro, { ...E }),
3853
3866
  danger: !0,
3854
3867
  disabled: f,
3855
3868
  tooltip: f ? "Selected items contain item which can not be deleted" : void 0,
3856
3869
  onClick: () => {
3857
3870
  const m = w();
3858
- h(v, m);
3871
+ h(C, m);
3859
3872
  }
3860
3873
  });
3861
3874
  }
3862
- return g;
3875
+ return v;
3863
3876
  }, [
3864
3877
  e,
3865
3878
  t,
@@ -3873,9 +3886,9 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3873
3886
  r,
3874
3887
  c,
3875
3888
  p,
3876
- b,
3877
- D
3878
- ]), Oi = ({
3889
+ N,
3890
+ R
3891
+ ]), Mi = ({
3879
3892
  id: e,
3880
3893
  name: t,
3881
3894
  nodeType: o,
@@ -3887,7 +3900,7 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3887
3900
  sharedIndicatorClassName: h,
3888
3901
  hideTooltip: w = !1,
3889
3902
  forbiddenSymbolsRegExp: c,
3890
- forbiddenSymbolsTooltip: b
3903
+ forbiddenSymbolsTooltip: N
3891
3904
  }) => /* @__PURE__ */ a("div", { className: "flex", children: /* @__PURE__ */ a("div", { className: "flex flex-1 min-w-0", children: /* @__PURE__ */ a(
3892
3905
  so,
3893
3906
  {
@@ -3899,8 +3912,8 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3899
3912
  sharedIndicatorClassName: h,
3900
3913
  hideTooltip: w,
3901
3914
  forbiddenSymbolsRegExp: c,
3902
- forbiddenSymbolsTooltip: b,
3903
- details: /* @__PURE__ */ q("div", { className: "flex items-center gap-1 dial-tiny-text text-secondary", children: [
3915
+ forbiddenSymbolsTooltip: N,
3916
+ details: /* @__PURE__ */ X("div", { className: "flex items-center gap-1 dial-tiny-text text-secondary", children: [
3904
3917
  /* @__PURE__ */ a("span", { children: o === O.ITEM ? Nn(s) : "" }),
3905
3918
  n && s && /* @__PURE__ */ a(to, { size: 2, className: "text-secondary" }),
3906
3919
  n ? /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a(
@@ -3915,7 +3928,7 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3915
3928
  ) }) : null
3916
3929
  ] })
3917
3930
  }
3918
- ) }) }), Mi = (e) => (t, o, s) => ({
3931
+ ) }) }), Li = (e) => (t, o, s) => ({
3919
3932
  colId: Se.Name,
3920
3933
  field: "name",
3921
3934
  headerName: e,
@@ -3928,12 +3941,12 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3928
3941
  cancelFolderCreation: h,
3929
3942
  newFolderTempId: w,
3930
3943
  sharedByMePaths: c,
3931
- selectedPaths: b,
3944
+ selectedPaths: N,
3932
3945
  disabledRowIds: p,
3933
- filesLoading: D
3934
- } = n.context, g = c?.has(n.data.path), v = b?.has(n.data.path), x = p?.has(n.data.path) ?? !1, T = be([
3946
+ filesLoading: R
3947
+ } = n.context, v = c?.has(n.data.path), C = N?.has(n.data.path), x = p?.has(n.data.path) ?? !1, D = be([
3935
3948
  "group-hover/grid-row:bg-control-accent-alpha-hover",
3936
- v && "bg-control-accent-alpha"
3949
+ C && "bg-control-accent-alpha"
3937
3950
  ]);
3938
3951
  if (n.data?.isTemporary && n.data.id === w)
3939
3952
  return /* @__PURE__ */ a(
@@ -3944,9 +3957,9 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3944
3957
  elementId: `new-folder-${n.data.id}`,
3945
3958
  editing: !0,
3946
3959
  creating: !0,
3947
- loading: D,
3948
- shared: g,
3949
- sharedIndicatorClassName: T,
3960
+ loading: R,
3961
+ shared: v,
3962
+ sharedIndicatorClassName: D,
3950
3963
  iconSize: lt,
3951
3964
  validate: l,
3952
3965
  onSave: i,
@@ -3964,8 +3977,8 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3964
3977
  renamedPath: m,
3965
3978
  renamedItem: S,
3966
3979
  getDisplayName: A,
3967
- onRenameValidate: C,
3968
- onRenameSave: N,
3980
+ onRenameValidate: g,
3981
+ onRenameSave: b,
3969
3982
  onRenameCancel: I
3970
3983
  } = n.context;
3971
3984
  if (f === Gt.Grid && m === n.data?.path && S && n.data) {
@@ -3978,11 +3991,11 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3978
3991
  fileExtension: S.name.split(".").pop(),
3979
3992
  elementId: `rename-${n.data.id}`,
3980
3993
  editing: !0,
3981
- shared: g,
3982
- sharedIndicatorClassName: T,
3994
+ shared: v,
3995
+ sharedIndicatorClassName: D,
3983
3996
  iconSize: lt,
3984
- validate: (k) => C(k, S),
3985
- onSave: N,
3997
+ validate: (k) => g(k, S),
3998
+ onSave: b,
3986
3999
  onCancel: I,
3987
4000
  inputContainerClassName: be([
3988
4001
  "!h-9",
@@ -3994,14 +4007,14 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
3994
4007
  }
3995
4008
  if (s)
3996
4009
  return /* @__PURE__ */ a(
3997
- Oi,
4010
+ Mi,
3998
4011
  {
3999
4012
  id: n.data.id,
4000
4013
  name: n.data.name,
4001
4014
  nodeType: r,
4002
4015
  size: n.data.size,
4003
- shared: g,
4004
- sharedIndicatorClassName: T,
4016
+ shared: v,
4017
+ sharedIndicatorClassName: D,
4005
4018
  updatedAt: n.data.updatedAt,
4006
4019
  dateLocale: t,
4007
4020
  dateOptions: o,
@@ -4010,7 +4023,7 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
4010
4023
  forbiddenSymbolsTooltip: n.context.forbiddenSymbolsTooltip
4011
4024
  }
4012
4025
  );
4013
- const L = Da(
4026
+ const L = Ra(
4014
4027
  {
4015
4028
  name: n.data.name,
4016
4029
  isFolder: r === O.FOLDER
@@ -4022,19 +4035,19 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
4022
4035
  ja,
4023
4036
  {
4024
4037
  name: n.data.name,
4025
- shared: g,
4026
- sharedIndicatorClassName: T,
4038
+ shared: v,
4039
+ sharedIndicatorClassName: D,
4027
4040
  iconSize: lt,
4028
4041
  hideTooltip: x,
4029
4042
  isInvalidName: !!L,
4030
4043
  tooltipContent: L
4031
4044
  }
4032
4045
  ) : /* @__PURE__ */ a(
4033
- ma,
4046
+ Ca,
4034
4047
  {
4035
4048
  name: n.data.name,
4036
- shared: g,
4037
- sharedIndicatorClassName: T,
4049
+ shared: v,
4050
+ sharedIndicatorClassName: D,
4038
4051
  iconSize: lt,
4039
4052
  hideTooltip: x,
4040
4053
  isInvalidName: !!L,
@@ -4042,7 +4055,7 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
4042
4055
  }
4043
4056
  );
4044
4057
  }
4045
- }), Li = (e) => (t, o) => ({
4058
+ }), _i = (e) => (t, o) => ({
4046
4059
  colId: Se.UpdatedAt,
4047
4060
  field: "updatedAt",
4048
4061
  headerName: e,
@@ -4057,13 +4070,13 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
4057
4070
  options: o
4058
4071
  },
4059
4072
  filterValueGetter: (s) => {
4060
- const n = s.data[s.colDef.field || ""], r = Gs(n);
4073
+ const n = s.data[s.colDef.field || ""], r = Vs(n);
4061
4074
  return r ? new Intl.DateTimeFormat(
4062
- t || Vs,
4063
- o || $s
4075
+ t || $s,
4076
+ o || js
4064
4077
  ).format(r) : "";
4065
4078
  }
4066
- }), _i = (e) => ({
4079
+ }), zi = (e) => ({
4067
4080
  colId: Se.Size,
4068
4081
  field: "size",
4069
4082
  headerName: e,
@@ -4071,7 +4084,7 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
4071
4084
  suppressSizeToFit: !0,
4072
4085
  cellRenderer: (t) => t.data.nodeType === O.ITEM ? Nn(t.data.contentLength) : "",
4073
4086
  filterValueGetter: (t) => t.data.nodeType === O.ITEM ? Nn(t.data.contentLength) : ""
4074
- }), zi = (e) => {
4087
+ }), Bi = (e) => {
4075
4088
  const t = e.event;
4076
4089
  if (!(t?.target ?? null)?.closest("input") || !t) return !1;
4077
4090
  switch (t.key) {
@@ -4086,7 +4099,7 @@ const ai = 12, si = 8, ri = "w-full flex justify-center", ii = "w-auto max-w-ful
4086
4099
  return !1;
4087
4100
  }
4088
4101
  };
4089
- function Bi({
4102
+ function Hi({
4090
4103
  userColumnDefs: e,
4091
4104
  filterable: t,
4092
4105
  dateLocale: o,
@@ -4099,7 +4112,7 @@ function Bi({
4099
4112
  rootItemPath: w
4100
4113
  }) {
4101
4114
  const c = U(() => [
4102
- Mi("Name")(o, s, r),
4115
+ Li("Name")(o, s, r),
4103
4116
  {
4104
4117
  colId: Se.Path,
4105
4118
  field: "path",
@@ -4107,16 +4120,16 @@ function Bi({
4107
4120
  flex: 1,
4108
4121
  minWidth: 200,
4109
4122
  cellRenderer: (p) => {
4110
- const D = p.context?.disabledRowIds?.has(p.data.path) ?? !1;
4111
- let g = p.data.path;
4112
- if (p.context?.hideSearchPathItemName && (p.data.parentPath ? g = p.data.parentPath : g = g.replace(/\/[^/]+\/?$/, "") || "/"), !w || !h)
4113
- return /* @__PURE__ */ a(Wt, { text: g, hideTooltip: D });
4114
- const v = g.replace(w, h);
4115
- return /* @__PURE__ */ a(Wt, { text: v, hideTooltip: D });
4123
+ const R = p.context?.disabledRowIds?.has(p.data.path) ?? !1;
4124
+ let v = p.data.path;
4125
+ if (p.context?.hideSearchPathItemName && (p.data.parentPath ? v = p.data.parentPath : v = v.replace(/\/[^/]+\/?$/, "") || "/"), !w || !h)
4126
+ return /* @__PURE__ */ a(Wt, { text: v, hideTooltip: R });
4127
+ const C = v.replace(w, h);
4128
+ return /* @__PURE__ */ a(Wt, { text: C, hideTooltip: R });
4116
4129
  }
4117
4130
  },
4118
- Li("Modified Date")(o, s),
4119
- _i("Size"),
4131
+ _i("Modified Date")(o, s),
4132
+ zi("Size"),
4120
4133
  {
4121
4134
  colId: Se.Author,
4122
4135
  field: "author",
@@ -4136,20 +4149,20 @@ function Bi({
4136
4149
  ], [o, s, r, h, w]);
4137
4150
  return { columnDefs: U(() => {
4138
4151
  const p = e?.map(
4139
- (v) => typeof v == "function" ? v(o, s, r) : v
4152
+ (C) => typeof C == "function" ? C(o, s, r) : C
4140
4153
  );
4141
- let D = p ?? c;
4142
- p || (D = D.filter(
4143
- (v) => v.colId && n.includes(v.colId)
4144
- )), i && (r && (D = D.slice(0, 1)), D.push(l));
4145
- const g = (v) => v.colId === Se.Name;
4146
- return D.map((v) => {
4154
+ let R = p ?? c;
4155
+ p || (R = R.filter(
4156
+ (C) => C.colId && n.includes(C.colId)
4157
+ )), i && (r && (R = R.slice(0, 1)), R.push(l));
4158
+ const v = (C) => C.colId === Se.Name;
4159
+ return R.map((C) => {
4147
4160
  const x = {
4148
- ...v,
4149
- filter: t ? v.filter : !1,
4150
- floatingFilter: t ? v.floatingFilter : !1
4161
+ ...C,
4162
+ filter: t ? C.filter : !1,
4163
+ floatingFilter: t ? C.floatingFilter : !1
4151
4164
  };
4152
- return g(v) && !v.suppressKeyboardEvent && (x.suppressKeyboardEvent = zi), x;
4165
+ return v(C) && !C.suppressKeyboardEvent && (x.suppressKeyboardEvent = Bi), x;
4153
4166
  });
4154
4167
  }, [
4155
4168
  l,
@@ -4163,14 +4176,14 @@ function Bi({
4163
4176
  e
4164
4177
  ]) };
4165
4178
  }
4166
- const Hi = () => {
4179
+ const Wi = () => {
4167
4180
  const e = bs(as);
4168
4181
  if (!e)
4169
4182
  throw new Error(
4170
4183
  "useFileManagerContext must be used within <FileManagerProvider>"
4171
4184
  );
4172
4185
  return e;
4173
- }, Wi = ({
4186
+ }, Ui = ({
4174
4187
  actionLabels: e,
4175
4188
  onDuplicate: t,
4176
4189
  onCopy: o,
@@ -4182,23 +4195,23 @@ const Hi = () => {
4182
4195
  onUnshare: h,
4183
4196
  onRemoveAccess: w,
4184
4197
  sharedWithMeIds: c,
4185
- sharedByMePaths: b,
4198
+ sharedByMePaths: N,
4186
4199
  onManagePermissions: p,
4187
- onPreview: D,
4188
- onOpenInNewTab: g,
4189
- previewExtensions: v,
4200
+ onPreview: R,
4201
+ onOpenInNewTab: v,
4202
+ previewExtensions: C,
4190
4203
  isRenameFileAvailable: x = !0,
4191
- isDuplicateFolderAvailable: T = !0,
4204
+ isDuplicateFolderAvailable: D = !0,
4192
4205
  forbiddenSymbolsRegExp: f,
4193
4206
  skipForbiddenSymbolsCheckForActions: m,
4194
4207
  onGridCreateSiblingFolder: S,
4195
4208
  onGridCreateChildFolder: A
4196
- }) => U(() => (C) => {
4197
- const N = [];
4209
+ }) => U(() => (g) => {
4210
+ const b = [];
4198
4211
  if (!e)
4199
- return N;
4200
- const I = !m && ro(f)?.test(C.name);
4201
- e[y.AddSibling] && C.nodeType === O.FOLDER && N.push({
4212
+ return b;
4213
+ const I = !m && io(f)?.test(g.name);
4214
+ e[y.AddSibling] && g.nodeType === O.FOLDER && b.push({
4202
4215
  key: "addSibling",
4203
4216
  label: e[y.AddSibling],
4204
4217
  icon: /* @__PURE__ */ a(
@@ -4209,8 +4222,8 @@ const Hi = () => {
4209
4222
  className: "text-secondary"
4210
4223
  }
4211
4224
  ),
4212
- onClick: () => S([C])
4213
- }), e[y.AddChild] && C.nodeType === O.FOLDER && !I && N.push(
4225
+ onClick: () => S([g])
4226
+ }), e[y.AddChild] && g.nodeType === O.FOLDER && !I && b.push(
4214
4227
  {
4215
4228
  key: "addChild",
4216
4229
  label: e[y.AddChild],
@@ -4222,86 +4235,86 @@ const Hi = () => {
4222
4235
  className: "text-secondary"
4223
4236
  }
4224
4237
  ),
4225
- onClick: () => A([C])
4238
+ onClick: () => A([g])
4226
4239
  },
4227
4240
  {
4228
4241
  key: "divider",
4229
- type: va.Divider
4242
+ type: wa.Divider
4230
4243
  }
4231
- ), e[y.OpenInNewTab] && typeof g == "function" && C.nodeType === O.ITEM && !I && N.push({
4244
+ ), e[y.OpenInNewTab] && typeof v == "function" && g.nodeType === O.ITEM && !I && b.push({
4232
4245
  key: y.OpenInNewTab,
4233
4246
  label: e[y.OpenInNewTab],
4234
4247
  icon: /* @__PURE__ */ a(
4235
- sa,
4248
+ ra,
4236
4249
  {
4237
4250
  ...E,
4238
4251
  className: "text-secondary"
4239
4252
  }
4240
4253
  ),
4241
- onClick: () => g?.(C)
4254
+ onClick: () => v?.(g)
4242
4255
  });
4243
- const _ = C.nodeType === O.ITEM || C.nodeType === O.FOLDER && T;
4244
- e[y.Duplicate] && _ && !I && N.push({
4256
+ const _ = g.nodeType === O.ITEM || g.nodeType === O.FOLDER && D;
4257
+ e[y.Duplicate] && _ && !I && b.push({
4245
4258
  key: y.Duplicate,
4246
4259
  label: e[y.Duplicate],
4247
- icon: /* @__PURE__ */ a(ua, { ...E, className: "text-secondary" }),
4248
- onClick: () => t(C)
4249
- }), e[y.Copy] && !I && N.push({
4260
+ icon: /* @__PURE__ */ a(pa, { ...E, className: "text-secondary" }),
4261
+ onClick: () => t(g)
4262
+ }), e[y.Copy] && !I && b.push({
4250
4263
  key: y.Copy,
4251
4264
  label: e[y.Copy],
4252
4265
  icon: /* @__PURE__ */ a(
4253
- wa,
4266
+ ya,
4254
4267
  {
4255
4268
  width: E.size,
4256
4269
  height: E.size,
4257
4270
  className: "text-secondary"
4258
4271
  }
4259
4272
  ),
4260
- onClick: () => o(C)
4261
- }), e[y.Move] && !I && N.push({
4273
+ onClick: () => o(g)
4274
+ }), e[y.Move] && !I && b.push({
4262
4275
  key: y.Move,
4263
4276
  label: e[y.Move],
4264
4277
  icon: /* @__PURE__ */ a(
4265
- ya,
4278
+ Na,
4266
4279
  {
4267
4280
  width: E.size,
4268
4281
  height: E.size,
4269
4282
  className: "text-secondary"
4270
4283
  }
4271
4284
  ),
4272
- onClick: () => s(C)
4273
- }), e[y.Download] && !I && N.push({
4285
+ onClick: () => s(g)
4286
+ }), e[y.Download] && !I && b.push({
4274
4287
  key: y.Download,
4275
4288
  label: e[y.Download],
4276
4289
  icon: /* @__PURE__ */ a(
4277
- da,
4290
+ ha,
4278
4291
  {
4279
4292
  ...E,
4280
4293
  className: "text-secondary"
4281
4294
  }
4282
4295
  ),
4283
- onClick: () => n(C)
4284
- }), e[y.ManagePermissions] && typeof p == "function" && C.nodeType === O.FOLDER && !I && N.push({
4296
+ onClick: () => n(g)
4297
+ }), e[y.ManagePermissions] && typeof p == "function" && g.nodeType === O.FOLDER && !I && b.push({
4285
4298
  key: y.ManagePermissions,
4286
4299
  label: e[y.ManagePermissions],
4287
4300
  icon: /* @__PURE__ */ a(
4288
- sa,
4301
+ ra,
4289
4302
  {
4290
4303
  ...E,
4291
4304
  className: "text-secondary"
4292
4305
  }
4293
4306
  ),
4294
- onClick: () => p?.(C.path)
4307
+ onClick: () => p?.(g.path)
4295
4308
  });
4296
- const L = C.name.split("."), $ = L.length > 1 ? L[L.length - 1] : "", k = $ && v?.includes(`.${$}`);
4297
- e[y.Preview] && typeof D == "function" && C.nodeType === O.ITEM && k && !I && N.push({
4309
+ const L = g.name.split("."), $ = L.length > 1 ? L[L.length - 1] : "", k = $ && C?.includes(`.${$}`);
4310
+ e[y.Preview] && typeof R == "function" && g.nodeType === O.ITEM && k && !I && b.push({
4298
4311
  key: y.Preview,
4299
4312
  label: e[y.Preview],
4300
- icon: /* @__PURE__ */ a(ca, { ...E, className: "text-secondary" }),
4301
- onClick: () => D?.(C.path)
4313
+ icon: /* @__PURE__ */ a(ua, { ...E, className: "text-secondary" }),
4314
+ onClick: () => R?.(g.path)
4302
4315
  });
4303
- const B = !C.permissions || C.permissions.includes(Kt.WRITE), j = C.nodeType === O.FOLDER || C.nodeType === O.ITEM && x;
4304
- return e[y.Rename] && j && B && N.push({
4316
+ const B = !g.permissions || g.permissions.includes(Kt.WRITE), j = g.nodeType === O.FOLDER || g.nodeType === O.ITEM && x;
4317
+ return e[y.Rename] && j && B && b.push({
4305
4318
  key: y.Rename,
4306
4319
  label: e[y.Rename],
4307
4320
  icon: /* @__PURE__ */ a(
@@ -4311,8 +4324,8 @@ const Hi = () => {
4311
4324
  className: "text-secondary"
4312
4325
  }
4313
4326
  ),
4314
- onClick: () => r(C.path)
4315
- }), e[y.Info] && C.nodeType === O.ITEM && !I && N.push({
4327
+ onClick: () => r(g.path)
4328
+ }), e[y.Info] && g.nodeType === O.ITEM && !I && b.push({
4316
4329
  key: y.Info,
4317
4330
  label: e[y.Info],
4318
4331
  icon: /* @__PURE__ */ a(
@@ -4322,37 +4335,37 @@ const Hi = () => {
4322
4335
  className: "text-secondary"
4323
4336
  }
4324
4337
  ),
4325
- onClick: () => l(C)
4326
- }), e[y.Unshare] && c?.includes(C.path) && N.push({
4338
+ onClick: () => l(g)
4339
+ }), e[y.Unshare] && c?.includes(g.path) && b.push({
4327
4340
  key: y.Unshare,
4328
4341
  label: e[y.Unshare],
4329
4342
  icon: /* @__PURE__ */ a(
4330
- Na,
4343
+ ba,
4331
4344
  {
4332
4345
  width: E.size,
4333
4346
  height: E.size,
4334
4347
  className: "text-secondary"
4335
4348
  }
4336
4349
  ),
4337
- onClick: () => h(C)
4338
- }), e[y.RemoveAccess] && b?.has(C.path) && w && N.push({
4350
+ onClick: () => h(g)
4351
+ }), e[y.RemoveAccess] && N?.has(g.path) && w && b.push({
4339
4352
  key: y.RemoveAccess,
4340
4353
  label: e[y.RemoveAccess],
4341
4354
  icon: /* @__PURE__ */ a(
4342
- ha,
4355
+ fa,
4343
4356
  {
4344
4357
  ...E,
4345
4358
  className: "text-secondary"
4346
4359
  }
4347
4360
  ),
4348
- onClick: () => w(C)
4349
- }), e[y.Delete] && B && N.push({
4361
+ onClick: () => w(g)
4362
+ }), e[y.Delete] && B && b.push({
4350
4363
  key: y.Delete,
4351
4364
  label: e[y.Delete],
4352
- icon: /* @__PURE__ */ a(pa, { ...E }),
4365
+ icon: /* @__PURE__ */ a(ro, { ...E }),
4353
4366
  danger: !0,
4354
- onClick: () => i(C, C.parentPath ?? "")
4355
- }), N;
4367
+ onClick: () => i(g, g.parentPath ?? "")
4368
+ }), b;
4356
4369
  }, [
4357
4370
  e,
4358
4371
  t,
@@ -4365,18 +4378,18 @@ const Hi = () => {
4365
4378
  h,
4366
4379
  w,
4367
4380
  c,
4368
- b,
4381
+ N,
4369
4382
  p,
4370
- D,
4371
- g,
4383
+ R,
4372
4384
  v,
4385
+ C,
4373
4386
  x,
4374
- T,
4387
+ D,
4375
4388
  f,
4376
4389
  m,
4377
4390
  A,
4378
4391
  S
4379
- ]), Ui = ({
4392
+ ]), Gi = ({
4380
4393
  onGridAddSibling: e,
4381
4394
  onGridAddChild: t,
4382
4395
  onTreeAddSibling: o,
@@ -4412,10 +4425,10 @@ const Hi = () => {
4412
4425
  onGridCreateChildFolder: h,
4413
4426
  onTreeCreateChildFolder: w
4414
4427
  };
4415
- }, Gi = {
4428
+ }, Vi = {
4416
4429
  field: et.Name,
4417
4430
  direction: Zt.Asc
4418
- }, Vi = (e) => /* @__PURE__ */ a(ei, { ...e, children: /* @__PURE__ */ a($i, {}) }), $i = () => {
4431
+ }, $i = (e) => /* @__PURE__ */ a(ti, { ...e, children: /* @__PURE__ */ a(ji, {}) }), ji = () => {
4419
4432
  const {
4420
4433
  className: e,
4421
4434
  items: t,
@@ -4428,19 +4441,19 @@ const Hi = () => {
4428
4441
  gridOptions: h,
4429
4442
  toolbarOptions: w,
4430
4443
  bulkActionsToolbarOptions: c,
4431
- deleteConfirmationOptions: b,
4444
+ deleteConfirmationOptions: N,
4432
4445
  destinationFolderPopupOptions: p,
4433
- conflictResolutionPopupOptions: D,
4434
- compactViewWidthBreakpoint: g = fr,
4435
- customBreakpointRef: v,
4446
+ conflictResolutionPopupOptions: R,
4447
+ compactViewWidthBreakpoint: v = mr,
4448
+ customBreakpointRef: C,
4436
4449
  sharedByMePaths: x,
4437
- allowedFileTypes: T,
4450
+ allowedFileTypes: D,
4438
4451
  maxSelectableFileSize: f,
4439
4452
  areHiddenFilesVisible: m,
4440
4453
  toggleHiddenFilesVisibility: S,
4441
4454
  currentPath: A,
4442
- gridRows: C,
4443
- selectedPaths: N,
4455
+ gridRows: g,
4456
+ selectedPaths: b,
4444
4457
  selectedFiles: I,
4445
4458
  clearSelection: _,
4446
4459
  setSelectedPaths: L,
@@ -4449,11 +4462,11 @@ const Hi = () => {
4449
4462
  handleSearchChange: B,
4450
4463
  handleTreeItemClick: j,
4451
4464
  handleTableRowClick: H,
4452
- handleSelectionClick: X,
4465
+ handleSelectionClick: q,
4453
4466
  onGridApiChange: me,
4454
4467
  handleOpenDestinationFolderPopup: ue,
4455
4468
  handleCloseDestinationFolderPopup: De,
4456
- openDestinationFolderPopup: Te,
4469
+ openDestinationFolderPopup: Re,
4457
4470
  destinationFolderMode: ne,
4458
4471
  handleSetCopiedFiles: se,
4459
4472
  handleSetMovedFiles: he,
@@ -4469,14 +4482,14 @@ const Hi = () => {
4469
4482
  closeDeleteConfirmation: re,
4470
4483
  confirmDelete: Xe,
4471
4484
  deleteConfirmationOpen: We,
4472
- itemsToDelete: R,
4485
+ itemsToDelete: T,
4473
4486
  renamedPath: M,
4474
4487
  renamedItem: V,
4475
4488
  onRename: Y,
4476
4489
  onRenameSave: Z,
4477
4490
  onRenameCancel: le,
4478
4491
  onRenameValidate: ve,
4479
- createdFolderPath: Re,
4492
+ createdFolderPath: Te,
4480
4493
  forbiddenSymbolsRegExp: ce,
4481
4494
  forbiddenSymbolsTooltip: ee,
4482
4495
  skipForbiddenSymbolsCheckForActions: Be,
@@ -4484,24 +4497,24 @@ const Hi = () => {
4484
4497
  isDragging: Ve,
4485
4498
  isDraggingOverWindow: bt,
4486
4499
  handleDragEnter: ke,
4487
- handleDragLeave: io,
4488
- handleDragOver: lo,
4489
- handleDrop: co,
4490
- onUploadFiles: uo,
4491
- onValidateUpload: ho,
4500
+ handleDragLeave: lo,
4501
+ handleDragOver: co,
4502
+ handleDrop: uo,
4503
+ onUploadFiles: ho,
4504
+ onValidateUpload: po,
4492
4505
  maxFileSize: Dt,
4493
4506
  newActions: Xt,
4494
- isNewButtonVisible: Tt,
4495
- isNewButtonDisabled: Tn,
4496
- newFolderTempId: Rn,
4507
+ isNewButtonVisible: Rt,
4508
+ isNewButtonDisabled: Rn,
4509
+ newFolderTempId: Tn,
4497
4510
  cancelFolderCreation: tt,
4498
- saveFolderCreation: Rt,
4511
+ saveFolderCreation: Tt,
4499
4512
  validateFolderName: xn,
4500
4513
  startFolderCreation: In,
4501
- conflictingFiles: po,
4502
- conflictResolutionOpen: fo,
4503
- handleConflictReplace: mo,
4504
- handleConflictDuplicate: Co,
4514
+ conflictingFiles: fo,
4515
+ conflictResolutionOpen: mo,
4516
+ handleConflictReplace: Co,
4517
+ handleConflictDuplicate: go,
4505
4518
  handleConflictCancel: nt,
4506
4519
  handleConflictDecideForEach: Fe,
4507
4520
  uploadConflictingFiles: qt,
@@ -4512,8 +4525,8 @@ const Hi = () => {
4512
4525
  handleUploadConflictDecideForEach: Sn,
4513
4526
  openMetadataPopup: ot,
4514
4527
  fileMetadataPopupOptions: $e,
4515
- isMetadataPopupOpen: go,
4516
- selectedFileForMetadata: vo,
4528
+ isMetadataPopupOpen: vo,
4529
+ selectedFileForMetadata: wo,
4517
4530
  closeMetadataPopup: En,
4518
4531
  onUnshareFiles: je,
4519
4532
  onRemoveFilesAccess: xt,
@@ -4525,94 +4538,94 @@ const Hi = () => {
4525
4538
  emptyStateDescription: Ft,
4526
4539
  searchEmptyStateTitle: An = "No data",
4527
4540
  sharedWithMeIds: St,
4528
- onFolderPopupPathChange: wo,
4541
+ onFolderPopupPathChange: yo,
4529
4542
  onManagePermissions: at,
4530
4543
  onPreview: Et,
4531
- onOpenInNewTab: yo,
4532
- previewExtensions: No,
4533
- isRenameFileAvailable: bo,
4534
- isDuplicateFolderAvailable: Do,
4544
+ onOpenInNewTab: No,
4545
+ previewExtensions: bo,
4546
+ isRenameFileAvailable: Do,
4547
+ isDuplicateFolderAvailable: Ro,
4535
4548
  getDisabledTooltip: Yt,
4536
4549
  fileTooLargeTooltip: Pn,
4537
4550
  unsupportedFileTypeTooltip: kn,
4538
4551
  gridClassName: To,
4539
- contentClassName: Ro,
4540
- contentHeaderClassName: xo,
4552
+ contentClassName: xo,
4553
+ contentHeaderClassName: Io,
4541
4554
  nonClickableTableColumns: Qt,
4542
4555
  hideSearchPathItemName: ht,
4543
- showHiddenFileSwitcherInDestinationPopup: Io,
4556
+ showHiddenFileSwitcherInDestinationPopup: Fo,
4544
4557
  showCreateFolderButtonInDestinationPopup: Jt,
4545
4558
  newFolderDefaultName: At
4546
- } = Hi(), {
4547
- header: Me = ur,
4548
- containerClassName: pe = Js,
4559
+ } = Wi(), {
4560
+ header: Me = hr,
4561
+ containerClassName: pe = er,
4549
4562
  additionalButtons: pt,
4550
4563
  tabs: oe,
4551
4564
  activeTab: ye,
4552
4565
  onTabChange: Le,
4553
- tabsAriaLabel: Pt = ar,
4566
+ tabsAriaLabel: Pt = sr,
4554
4567
  ...On
4555
4568
  } = n ?? {}, {
4556
4569
  searchable: kt = !0,
4557
4570
  // Owned by the provider and reached through effectiveSearchValue below.
4558
- value: Ra,
4559
- onSearchChange: xa,
4571
+ value: xa,
4572
+ onSearchChange: Ia,
4560
4573
  elementId: en,
4561
- placeholder: Fo,
4562
- size: So,
4563
- withoutBorder: Eo,
4564
- disabled: Ao,
4565
- invalid: Po,
4566
- searchClassName: ko,
4567
- searchContainerClassName: Oo,
4568
- ...Mo
4574
+ placeholder: So,
4575
+ size: Eo,
4576
+ withoutBorder: Ao,
4577
+ disabled: Po,
4578
+ invalid: ko,
4579
+ searchClassName: Oo,
4580
+ searchContainerClassName: Mo,
4581
+ ...Lo
4569
4582
  } = i ?? {}, {
4570
4583
  sortable: Ot = !0,
4571
4584
  sort: tn,
4572
- defaultSort: Lo = Gi,
4585
+ defaultSort: _o = Vi,
4573
4586
  onSortChange: Mn,
4574
4587
  ...Ln
4575
- } = l ?? {}, [_o, zo] = z(Lo), nn = tn ?? _o, _n = fe(null), zn = u(
4588
+ } = l ?? {}, [zo, Bo] = z(_o), nn = tn ?? zo, _n = fe(null), zn = u(
4576
4589
  (d) => {
4577
4590
  _n.current = d, me?.(d);
4578
4591
  },
4579
4592
  [me]
4580
- ), Bo = u(
4593
+ ), Ho = u(
4581
4594
  (d) => {
4582
- _n.current?.applyColumnState({ defaultState: { sort: null } }), tn || zo(d), Mn?.(d);
4595
+ _n.current?.applyColumnState({ defaultState: { sort: null } }), tn || Bo(d), Mn?.(d);
4583
4596
  },
4584
4597
  [tn, Mn]
4585
- ), Ho = U(
4586
- () => Ot ? kr(C, nn) : C,
4587
- [C, nn, Ot]
4588
- ), Mt = Ds(), { renameTriggerView: Lt, onGridRename: Wo, onTreeRename: Bn } = wr({ onRename: Y }), {
4598
+ ), Wo = U(
4599
+ () => Ot ? Or(g, nn) : g,
4600
+ [g, nn, Ot]
4601
+ ), Mt = Ds(), { renameTriggerView: Lt, onGridRename: Uo, onTreeRename: Bn } = yr({ onRename: Y }), {
4589
4602
  createFolderTriggerView: on,
4590
- onGridCreateSiblingFolder: Uo,
4603
+ onGridCreateSiblingFolder: Go,
4591
4604
  onTreeCreateSiblingFolder: an,
4592
- onGridCreateChildFolder: Go,
4605
+ onGridCreateChildFolder: Vo,
4593
4606
  onTreeCreateChildFolder: sn
4594
- } = Ui({
4607
+ } = Gi({
4595
4608
  onGridAddSibling: ae,
4596
4609
  onGridAddChild: ge,
4597
4610
  onTreeAddSibling: W,
4598
4611
  onTreeAddChild: Q
4599
4612
  }), {
4600
- columnDefs: Vo,
4601
- filterable: $o = !0,
4602
- dateLocale: jo,
4603
- dateOptions: Zo,
4613
+ columnDefs: $o,
4614
+ filterable: jo = !0,
4615
+ dateLocale: Zo,
4616
+ dateOptions: Ko,
4604
4617
  selectionMode: Hn,
4605
4618
  wrapCustomCellRenderers: Wn,
4606
- visibleColumns: Un = mr,
4619
+ visibleColumns: Un = Cr,
4607
4620
  allowDisabledContextMenu: _t = !1,
4608
4621
  containerClassName: ft,
4609
4622
  ...st
4610
- } = h ?? {}, { containerRef: Ko, isBelowBreakpoint: _e } = yr(
4611
- g,
4612
- v
4613
- ), [Xo, Je] = z(!0), [rt, qo] = z(ye);
4614
- rt !== ye && (qo(ye), Je(!0));
4615
- const mt = _e && t.length > 1, Ae = mt && Xo && !Oe && !$, Gn = oe?.find((d) => d.value === ye)?.label, Vn = U(
4623
+ } = h ?? {}, { containerRef: Xo, isBelowBreakpoint: _e } = Nr(
4624
+ v,
4625
+ C
4626
+ ), [qo, Je] = z(!0), [rt, Yo] = z(ye);
4627
+ rt !== ye && (Yo(ye), Je(!0));
4628
+ const mt = _e && t.length > 1, Ae = mt && qo && !Oe && !$, Gn = oe?.find((d) => d.value === ye)?.label, Vn = U(
4616
4629
  () => t.map((d) => ({
4617
4630
  ...d,
4618
4631
  id: d.id ?? d.path,
@@ -4621,12 +4634,12 @@ const Hi = () => {
4621
4634
  isTemporary: !1
4622
4635
  })),
4623
4636
  [t]
4624
- ), rn = Ae ? Vn : Ho, $n = u(() => Je(!0), []), Yo = U(() => Oe ? [
4637
+ ), rn = Ae ? Vn : Wo, $n = u(() => Je(!0), []), Qo = U(() => Oe ? [
4625
4638
  Se.Name,
4626
4639
  Se.Path,
4627
4640
  Se.Actions
4628
4641
  ] : Un, [Oe, Un]), ln = u(
4629
- (d, J, ie) => Er(
4642
+ (d, J, ie) => Ar(
4630
4643
  d,
4631
4644
  J,
4632
4645
  ie,
@@ -4639,10 +4652,10 @@ const Hi = () => {
4639
4652
  [ln, Yt]
4640
4653
  ), it = U(() => {
4641
4654
  const d = /* @__PURE__ */ new Set();
4642
- for (const J of C)
4643
- zt(J, T, f) && d.add(J.path);
4655
+ for (const J of g)
4656
+ zt(J, D, f) && d.add(J.path);
4644
4657
  return d;
4645
- }, [T, f, C, zt]), jn = u(
4658
+ }, [D, f, g, zt]), jn = u(
4646
4659
  (d) => {
4647
4660
  const J = [], ie = [], G = !d.parentPath, Ue = !Be && ce?.test(d.name);
4648
4661
  return n?.actionLabels && (n.actionLabels[y.AddSibling] && d.nodeType === O.FOLDER && !G && J.push({
@@ -4673,7 +4686,7 @@ const Hi = () => {
4673
4686
  key: "duplicate",
4674
4687
  label: n.actionLabels[y.Duplicate],
4675
4688
  icon: /* @__PURE__ */ a(
4676
- ua,
4689
+ pa,
4677
4690
  {
4678
4691
  ...E,
4679
4692
  className: "text-secondary"
@@ -4684,7 +4697,7 @@ const Hi = () => {
4684
4697
  key: xe.Copy,
4685
4698
  label: n.actionLabels[y.Copy],
4686
4699
  icon: /* @__PURE__ */ a(
4687
- wa,
4700
+ ya,
4688
4701
  {
4689
4702
  width: E.size,
4690
4703
  height: E.size,
@@ -4698,7 +4711,7 @@ const Hi = () => {
4698
4711
  key: xe.Move,
4699
4712
  label: n.actionLabels[y.Move],
4700
4713
  icon: /* @__PURE__ */ a(
4701
- ya,
4714
+ Na,
4702
4715
  {
4703
4716
  width: E.size,
4704
4717
  height: E.size,
@@ -4712,7 +4725,7 @@ const Hi = () => {
4712
4725
  key: "download",
4713
4726
  label: n.actionLabels[y.Download],
4714
4727
  icon: /* @__PURE__ */ a(
4715
- da,
4728
+ ha,
4716
4729
  {
4717
4730
  ...E,
4718
4731
  className: "text-secondary"
@@ -4723,7 +4736,7 @@ const Hi = () => {
4723
4736
  key: y.ManagePermissions,
4724
4737
  label: n.actionLabels[y.ManagePermissions],
4725
4738
  icon: /* @__PURE__ */ a(
4726
- sa,
4739
+ ra,
4727
4740
  {
4728
4741
  ...E,
4729
4742
  className: "text-secondary"
@@ -4745,7 +4758,7 @@ const Hi = () => {
4745
4758
  key: "unshare",
4746
4759
  label: n.actionLabels[y.Unshare],
4747
4760
  icon: /* @__PURE__ */ a(
4748
- Na,
4761
+ ba,
4749
4762
  {
4750
4763
  width: E.size,
4751
4764
  height: E.size,
@@ -4757,7 +4770,7 @@ const Hi = () => {
4757
4770
  key: y.RemoveAccess,
4758
4771
  label: n.actionLabels[y.RemoveAccess],
4759
4772
  icon: /* @__PURE__ */ a(
4760
- ha,
4773
+ fa,
4761
4774
  {
4762
4775
  ...E,
4763
4776
  className: "text-secondary"
@@ -4767,12 +4780,12 @@ const Hi = () => {
4767
4780
  }), n.actionLabels[y.Delete] && d.permissions?.includes(Kt.WRITE) && !G && ie.push({
4768
4781
  key: "delete",
4769
4782
  label: n.actionLabels[y.Delete],
4770
- icon: /* @__PURE__ */ a(pa, { ...E }),
4783
+ icon: /* @__PURE__ */ a(ro, { ...E }),
4771
4784
  danger: !0,
4772
4785
  onClick: () => Ie([d], d.parentPath ?? "")
4773
4786
  })), J.length ? ie.length === 0 ? J : J.length === 0 ? ie : [
4774
4787
  ...J,
4775
- { key: "divider", type: va.Divider },
4788
+ { key: "divider", type: wa.Divider },
4776
4789
  ...ie
4777
4790
  ] : ie;
4778
4791
  },
@@ -4800,10 +4813,10 @@ const Hi = () => {
4800
4813
  return I.forEach((J, ie) => d.add(ie)), d;
4801
4814
  }, [I]), Kn = u(
4802
4815
  (d, J) => {
4803
- L(d), X?.(J);
4816
+ L(d), q?.(J);
4804
4817
  },
4805
- [X, L]
4806
- ), Xn = ki({
4818
+ [q, L]
4819
+ ), Xn = Oi({
4807
4820
  selectedFiles: I,
4808
4821
  actionLabels: c?.actionLabels,
4809
4822
  onDuplicate: Ee,
@@ -4827,20 +4840,20 @@ const Hi = () => {
4827
4840
  Le?.(d), tt();
4828
4841
  },
4829
4842
  [Le, tt]
4830
- ), Qo = u(() => w ? /* @__PURE__ */ a(
4843
+ ), Jo = u(() => w ? /* @__PURE__ */ a(
4831
4844
  "div",
4832
4845
  {
4833
- className: Xs,
4846
+ className: qs,
4834
4847
  role: "toolbar",
4835
4848
  "aria-label": "File Manager Toolbar",
4836
4849
  children: /* @__PURE__ */ a(
4837
- Ri,
4850
+ xi,
4838
4851
  {
4839
4852
  ...w,
4840
4853
  areHiddenFilesVisible: m,
4841
4854
  onToggleHiddenFiles: S,
4842
- isNewButtonVisible: Tt,
4843
- isNewButtonDisabled: Tn,
4855
+ isNewButtonVisible: Rt,
4856
+ isNewButtonDisabled: Rn,
4844
4857
  newButtonDropdownItems: Xt
4845
4858
  }
4846
4859
  )
@@ -4849,26 +4862,26 @@ const Hi = () => {
4849
4862
  m,
4850
4863
  S,
4851
4864
  w,
4852
- Tt,
4853
- Tn,
4865
+ Rt,
4866
+ Rn,
4854
4867
  Xt
4855
- ]), Ht = !Ae && C.length === 0 && !s && !Qe, Ct = u(() => !c || N.size === 0 || Ht || Ae ? null : /* @__PURE__ */ a("div", { className: cr, children: /* @__PURE__ */ a(
4856
- ui,
4868
+ ]), Ht = !Ae && g.length === 0 && !s && !Qe, Ct = u(() => !c || b.size === 0 || Ht || Ae ? null : /* @__PURE__ */ a("div", { className: dr, children: /* @__PURE__ */ a(
4869
+ hi,
4857
4870
  {
4858
4871
  ...c,
4859
- selectedCount: N.size,
4872
+ selectedCount: b.size,
4860
4873
  onClearSelection: _,
4861
4874
  actions: Xn
4862
4875
  }
4863
4876
  ) }), [
4864
4877
  c,
4865
- N,
4878
+ b,
4866
4879
  Ht,
4867
4880
  Ae,
4868
4881
  _,
4869
4882
  Xn
4870
4883
  ]);
4871
- Ts(
4884
+ Rs(
4872
4885
  we,
4873
4886
  () => ({
4874
4887
  // The new-folder row lands in the current folder, which the root list hides.
@@ -4884,9 +4897,9 @@ const Hi = () => {
4884
4897
  className: pe,
4885
4898
  "aria-labelledby": Me ? Mt : void 0,
4886
4899
  "aria-label": Me ? void 0 : "File Manager Tree Navigation",
4887
- children: /* @__PURE__ */ q("div", { className: er, children: [
4888
- Me || pt ? /* @__PURE__ */ q("div", { className: nr, children: [
4889
- Me ? /* @__PURE__ */ a("h1", { id: Mt, className: tr, children: Me }) : null,
4900
+ children: /* @__PURE__ */ X("div", { className: tr, children: [
4901
+ Me || pt ? /* @__PURE__ */ X("div", { className: or, children: [
4902
+ Me ? /* @__PURE__ */ a("h1", { id: Mt, className: nr, children: Me }) : null,
4890
4903
  pt ? /* @__PURE__ */ a("div", { className: "flex shrink-0 items-center gap-1", children: pt }) : null
4891
4904
  ] }) : null,
4892
4905
  oe?.length && ye ? /* @__PURE__ */ a("div", { className: "px-3 py-2", children: /* @__PURE__ */ a(
@@ -4900,8 +4913,8 @@ const Hi = () => {
4900
4913
  className: "shrink-0"
4901
4914
  }
4902
4915
  ) }) : null,
4903
- /* @__PURE__ */ a("div", { className: or, children: /* @__PURE__ */ a(
4904
- Pi,
4916
+ /* @__PURE__ */ a("div", { className: ar, children: /* @__PURE__ */ a(
4917
+ ki,
4905
4918
  {
4906
4919
  ...On,
4907
4920
  items: t,
@@ -4918,9 +4931,9 @@ const Hi = () => {
4918
4931
  onRenameSave: Z,
4919
4932
  onRenameCancel: le,
4920
4933
  onRenameValidate: ve,
4921
- createdFolderPath: on === vt.Tree ? Re : null,
4934
+ createdFolderPath: on === vt.Tree ? Te : null,
4922
4935
  onCreateFolderCancel: tt,
4923
- onCreateFolderSave: Rt,
4936
+ onCreateFolderSave: Tt,
4924
4937
  newFolderDefaultName: At
4925
4938
  }
4926
4939
  ) })
@@ -4953,11 +4966,11 @@ const Hi = () => {
4953
4966
  Z,
4954
4967
  le,
4955
4968
  ve,
4956
- Re,
4969
+ Te,
4957
4970
  tt,
4958
- Rt,
4971
+ Tt,
4959
4972
  At
4960
- ]), Jo = u(() => !_e || !oe?.length || !ye ? null : /* @__PURE__ */ a(
4973
+ ]), ea = u(() => !_e || !oe?.length || !ye ? null : /* @__PURE__ */ a(
4961
4974
  Pa,
4962
4975
  {
4963
4976
  items: oe,
@@ -4966,7 +4979,7 @@ const Hi = () => {
4966
4979
  "aria-label": typeof Me == "string" ? Me : Pt,
4967
4980
  className: "shrink-0 flex-wrap"
4968
4981
  }
4969
- ), [_e, oe, ye, Bt, Me, Pt]), qn = Wi({
4982
+ ), [_e, oe, ye, Bt, Me, Pt]), qn = Ui({
4970
4983
  actionLabels: h?.actionLabels,
4971
4984
  onDuplicate: (d) => Ee([d]),
4972
4985
  onCopy: (d) => {
@@ -4976,7 +4989,7 @@ const Hi = () => {
4976
4989
  he([d]), ue(xe.Move);
4977
4990
  },
4978
4991
  onDownload: (d) => te([d]),
4979
- onRename: Wo,
4992
+ onRename: Uo,
4980
4993
  onDelete: (d, J) => Ie([d], J),
4981
4994
  onInfo: (d) => ot(d),
4982
4995
  onUnshare: (d) => je?.([d]),
@@ -4985,14 +4998,14 @@ const Hi = () => {
4985
4998
  sharedByMePaths: x,
4986
4999
  onManagePermissions: (d) => at?.(d),
4987
5000
  onPreview: (d) => Et?.(d),
4988
- onOpenInNewTab: (d) => yo?.(d),
4989
- previewExtensions: No,
4990
- isRenameFileAvailable: bo,
4991
- isDuplicateFolderAvailable: Do,
5001
+ onOpenInNewTab: (d) => No?.(d),
5002
+ previewExtensions: bo,
5003
+ isRenameFileAvailable: Do,
5004
+ isDuplicateFolderAvailable: Ro,
4992
5005
  forbiddenSymbolsRegExp: ce,
4993
5006
  skipForbiddenSymbolsCheckForActions: Be,
4994
- onGridCreateSiblingFolder: Uo,
4995
- onGridCreateChildFolder: Go
5007
+ onGridCreateSiblingFolder: Go,
5008
+ onGridCreateChildFolder: Vo
4996
5009
  }), cn = u(
4997
5010
  (d) => {
4998
5011
  if (Ae) return [];
@@ -5000,28 +5013,28 @@ const Hi = () => {
5000
5013
  return J ? qn(J) : [];
5001
5014
  },
5002
5015
  [Ae, t, qn]
5003
- ), ea = u(
5016
+ ), ta = u(
5004
5017
  (d, J, ie) => _t ? !1 : zt(d, J, ie),
5005
5018
  [_t, zt]
5006
- ), { actionsColumnDef: ta } = vr({
5019
+ ), { actionsColumnDef: na } = wr({
5007
5020
  getContextMenuItems: cn,
5008
- isRowDisabled: ea,
5009
- allowedFileTypes: T,
5010
- buttonClassName: _e ? "" : dr
5011
- }), { columnDefs: dn } = Bi({
5012
- userColumnDefs: Vo,
5013
- filterable: $o,
5014
- dateLocale: jo,
5015
- dateOptions: Zo,
5016
- effectiveVisibleColumns: Yo,
5021
+ isRowDisabled: ta,
5022
+ allowedFileTypes: D,
5023
+ buttonClassName: _e ? "" : ur
5024
+ }), { columnDefs: dn } = Hi({
5025
+ userColumnDefs: $o,
5026
+ filterable: jo,
5027
+ dateLocale: Zo,
5028
+ dateOptions: Ko,
5029
+ effectiveVisibleColumns: Qo,
5017
5030
  isCompactView: _e,
5018
5031
  hasActions: !!h?.actionLabels,
5019
- actionsColumnDef: ta,
5032
+ actionsColumnDef: na,
5020
5033
  rootItemLabel: o?.label,
5021
5034
  rootItemPath: o?.path
5022
5035
  }), Yn = u(
5023
5036
  (d) => {
5024
- d.colDef.colId === js || d.colDef.colId === pr || d.colDef.colId === Se.Actions || M && d.data?.path === M || d.data?.isTemporary || Qt && Qt.includes(
5037
+ d.colDef.colId === Zs || d.colDef.colId === fr || d.colDef.colId === Se.Actions || M && d.data?.path === M || d.data?.isTemporary || Qt && Qt.includes(
5025
5038
  d.colDef.colId
5026
5039
  ) || d.data && (Ae && Je(!1), H(d.data));
5027
5040
  },
@@ -5032,8 +5045,8 @@ const Hi = () => {
5032
5045
  Ae
5033
5046
  ]
5034
5047
  ), un = u(
5035
- () => Oe ? /* @__PURE__ */ a(la, { title: An, icon: ut }) : /* @__PURE__ */ a(
5036
- la,
5048
+ () => Oe ? /* @__PURE__ */ a(da, { title: An, icon: ut }) : /* @__PURE__ */ a(
5049
+ da,
5037
5050
  {
5038
5051
  title: It,
5039
5052
  description: Ft,
@@ -5047,11 +5060,11 @@ const Hi = () => {
5047
5060
  ut,
5048
5061
  It
5049
5062
  ]
5050
- ), Qn = U(() => (d) => d.path, []), Jn = "min-h-[248px] overflow-auto md:min-h-[266px]", na = U(
5063
+ ), Qn = U(() => (d) => d.path, []), Jn = "min-h-[248px] overflow-auto md:min-h-[266px]", oa = U(
5051
5064
  () => be(
5052
- rr,
5053
- Ve ? ir : "",
5054
- bt && !Ve ? lr : "",
5065
+ ir,
5066
+ Ve ? lr : "",
5067
+ bt && !Ve ? cr : "",
5055
5068
  ft
5056
5069
  ),
5057
5070
  [Ve, bt, ft]
@@ -5063,13 +5076,13 @@ const Hi = () => {
5063
5076
  onCellClicked: Yn,
5064
5077
  rowClass: "group/grid-row",
5065
5078
  defaultColDef: {
5066
- comparator: ga,
5079
+ comparator: va,
5067
5080
  ...st.additionalGridOptions?.defaultColDef,
5068
5081
  floatingFilter: kt ? !1 : st.additionalGridOptions?.defaultColDef?.floatingFilter
5069
5082
  },
5070
5083
  context: {
5071
5084
  cancelFolderCreation: tt,
5072
- saveFolderCreation: Rt,
5085
+ saveFolderCreation: Tt,
5073
5086
  getDisplayName: Nt,
5074
5087
  onRenameCancel: le,
5075
5088
  onRenameSave: Z,
@@ -5078,10 +5091,10 @@ const Hi = () => {
5078
5091
  validateFolderName: xn,
5079
5092
  renamedItem: V,
5080
5093
  renamedPath: M,
5081
- createdFolderPath: Re,
5082
- newFolderTempId: Rn,
5094
+ createdFolderPath: Te,
5095
+ newFolderTempId: Tn,
5083
5096
  sharedByMePaths: x,
5084
- selectedPaths: N,
5097
+ selectedPaths: b,
5085
5098
  disabledRowIds: it,
5086
5099
  forbiddenSymbolsRegExp: ce,
5087
5100
  forbiddenSymbolsTooltip: ee,
@@ -5095,7 +5108,7 @@ const Hi = () => {
5095
5108
  Yn,
5096
5109
  kt,
5097
5110
  tt,
5098
- Rt,
5111
+ Tt,
5099
5112
  Nt,
5100
5113
  le,
5101
5114
  Z,
@@ -5104,10 +5117,10 @@ const Hi = () => {
5104
5117
  xn,
5105
5118
  V,
5106
5119
  M,
5107
- Re,
5108
- Rn,
5120
+ Te,
5121
+ Tn,
5109
5122
  x,
5110
- N,
5123
+ b,
5111
5124
  it,
5112
5125
  ce,
5113
5126
  ee,
@@ -5161,39 +5174,39 @@ const Hi = () => {
5161
5174
  _t
5162
5175
  ]
5163
5176
  );
5164
- return /* @__PURE__ */ a("section", { ref: Ko, className: "size-full", children: /* @__PURE__ */ q(
5177
+ return /* @__PURE__ */ a("section", { ref: Xo, className: "size-full", children: /* @__PURE__ */ X(
5165
5178
  "div",
5166
5179
  {
5167
5180
  className: be(
5168
- Ks,
5181
+ Xs,
5169
5182
  {
5170
5183
  "p-3 pt-4": _e
5171
5184
  },
5172
5185
  e
5173
5186
  ),
5174
5187
  children: [
5175
- /* @__PURE__ */ q("div", { className: be(qs, To), children: [
5188
+ /* @__PURE__ */ X("div", { className: be(Ys, To), children: [
5176
5189
  gt(),
5177
- /* @__PURE__ */ q(
5190
+ /* @__PURE__ */ X(
5178
5191
  "div",
5179
5192
  {
5180
- className: be(Ys, Ro, {
5193
+ className: be(Qs, xo, {
5181
5194
  "gap-3": _e
5182
5195
  }),
5183
5196
  children: [
5184
- Jo(),
5185
- /* @__PURE__ */ q(
5197
+ ea(),
5198
+ /* @__PURE__ */ X(
5186
5199
  "div",
5187
5200
  {
5188
5201
  className: be(
5189
- Qs,
5190
- xo
5202
+ Js,
5203
+ Io
5191
5204
  ),
5192
5205
  children: [
5193
5206
  r && /* @__PURE__ */ a(
5194
- mi,
5207
+ Ci,
5195
5208
  {
5196
- ...Mo,
5209
+ ...Lo,
5197
5210
  makeHref: (d) => d.join("/"),
5198
5211
  path: A,
5199
5212
  onItemClick: k,
@@ -5204,32 +5217,32 @@ const Hi = () => {
5204
5217
  onTopLevelClick: $n
5205
5218
  }
5206
5219
  ),
5207
- !Ae && Qo()
5220
+ !Ae && Jo()
5208
5221
  ]
5209
5222
  }
5210
5223
  ),
5211
- /* @__PURE__ */ q(
5224
+ /* @__PURE__ */ X(
5212
5225
  "div",
5213
5226
  {
5214
- className: be(sr, "relative"),
5227
+ className: be(rr, "relative"),
5215
5228
  onDragEnter: ke,
5216
- onDragLeave: io,
5217
- onDragOver: lo,
5218
- onDrop: co,
5229
+ onDragLeave: lo,
5230
+ onDragOver: co,
5231
+ onDrop: uo,
5219
5232
  children: [
5220
- (kt || Ot) && /* @__PURE__ */ q("div", { className: Cr, children: [
5233
+ (kt || Ot) && /* @__PURE__ */ X("div", { className: gr, children: [
5221
5234
  kt && /* @__PURE__ */ a(
5222
- vi,
5235
+ wi,
5223
5236
  {
5224
5237
  className: "flex-1 min-w-0",
5225
5238
  elementId: en,
5226
- placeholder: Fo,
5227
- size: So,
5228
- withoutBorder: Eo,
5229
- disabled: Ao,
5230
- invalid: Po,
5231
- searchClassName: ko,
5232
- searchContainerClassName: Oo,
5239
+ placeholder: So,
5240
+ size: Eo,
5241
+ withoutBorder: Ao,
5242
+ disabled: Po,
5243
+ invalid: ko,
5244
+ searchClassName: Oo,
5245
+ searchContainerClassName: Mo,
5233
5246
  value: $,
5234
5247
  onSearchChange: B
5235
5248
  }
@@ -5243,7 +5256,7 @@ const Hi = () => {
5243
5256
  Ln.className
5244
5257
  ),
5245
5258
  sort: nn,
5246
- onSortChange: Bo
5259
+ onSortChange: Ho
5247
5260
  }
5248
5261
  )
5249
5262
  ] }),
@@ -5252,18 +5265,18 @@ const Hi = () => {
5252
5265
  {
5253
5266
  role: "region",
5254
5267
  "aria-label": "File Manager Grid View",
5255
- className: na,
5268
+ className: oa,
5256
5269
  children: K
5257
5270
  }
5258
5271
  ),
5259
5272
  /* @__PURE__ */ a(
5260
- ti,
5273
+ ni,
5261
5274
  {
5262
5275
  disabledGridRowIds: it,
5263
- gridRows: C,
5276
+ gridRows: g,
5264
5277
  getDisabledTooltip: Yt,
5265
5278
  getRowDisabledTooltip: ln,
5266
- allowedFileTypes: T,
5279
+ allowedFileTypes: D,
5267
5280
  maxSelectableFileSize: f
5268
5281
  }
5269
5282
  ),
@@ -5276,20 +5289,20 @@ const Hi = () => {
5276
5289
  )
5277
5290
  ] }),
5278
5291
  /* @__PURE__ */ a(
5279
- hi,
5292
+ pi,
5280
5293
  {
5281
- ...b,
5294
+ ...N,
5282
5295
  open: We,
5283
- itemsToDelete: R,
5296
+ itemsToDelete: T,
5284
5297
  onClose: re,
5285
5298
  onConfirm: Xe
5286
5299
  }
5287
5300
  ),
5288
5301
  /* @__PURE__ */ a(
5289
- ni,
5302
+ oi,
5290
5303
  {
5291
5304
  ...p,
5292
- open: Te,
5305
+ open: Re,
5293
5306
  onClose: De,
5294
5307
  onConfirm: () => {
5295
5308
  const d = p?.destinationFolderPath ?? "/";
@@ -5304,8 +5317,8 @@ const Hi = () => {
5304
5317
  ),
5305
5318
  loading: s
5306
5319
  },
5307
- onUploadFiles: uo,
5308
- onValidateUpload: ho,
5320
+ onUploadFiles: ho,
5321
+ onValidateUpload: po,
5309
5322
  maxFileSize: Dt,
5310
5323
  path: p?.destinationFolderPath ?? p?.sourceFolder ?? A,
5311
5324
  onPathChange: (d) => {
@@ -5317,8 +5330,8 @@ const Hi = () => {
5317
5330
  loadedPaths: n?.loadedPaths,
5318
5331
  loadingPaths: n?.loadingPaths
5319
5332
  },
5320
- onFolderPopupPathChange: wo,
5321
- showHiddenFileSwitcher: Io,
5333
+ onFolderPopupPathChange: yo,
5334
+ showHiddenFileSwitcher: Fo,
5322
5335
  showCreateFolderButton: Jt,
5323
5336
  hideSearchPathItemName: ht
5324
5337
  }
@@ -5326,19 +5339,19 @@ const Hi = () => {
5326
5339
  /* @__PURE__ */ a(
5327
5340
  La,
5328
5341
  {
5329
- ...D,
5330
- open: fo,
5342
+ ...R,
5343
+ open: mo,
5331
5344
  onClose: nt,
5332
- onReplace: mo,
5333
- onDuplicate: Co,
5345
+ onReplace: Co,
5346
+ onDuplicate: go,
5334
5347
  onDecideForEach: Fe,
5335
- conflictingFiles: po
5348
+ conflictingFiles: fo
5336
5349
  }
5337
5350
  ),
5338
5351
  /* @__PURE__ */ a(
5339
5352
  La,
5340
5353
  {
5341
- ...D,
5354
+ ...R,
5342
5355
  open: Fn,
5343
5356
  onClose: dt,
5344
5357
  onReplace: qe,
@@ -5348,11 +5361,11 @@ const Hi = () => {
5348
5361
  }
5349
5362
  ),
5350
5363
  /* @__PURE__ */ a(
5351
- Fi,
5364
+ Si,
5352
5365
  {
5353
- open: go,
5366
+ open: vo,
5354
5367
  onClose: En,
5355
- fileMetadata: $e?.fileMetadata ?? vo,
5368
+ fileMetadata: $e?.fileMetadata ?? wo,
5356
5369
  loading: $e?.loading,
5357
5370
  header: $e?.header,
5358
5371
  nameLabel: $e?.nameLabel,
@@ -5367,7 +5380,7 @@ const Hi = () => {
5367
5380
  ]
5368
5381
  }
5369
5382
  ) });
5370
- }, Qi = (e, t = yn.MyFiles) => {
5383
+ }, Ji = (e, t = yn.MyFiles) => {
5371
5384
  const o = Object.values(yn).includes(
5372
5385
  t
5373
5386
  ) ? t : yn.MyFiles, [s, n] = z(o), r = (l) => {
@@ -5387,8 +5400,8 @@ const Hi = () => {
5387
5400
  };
5388
5401
  export {
5389
5402
  xe as DestinationFolderMode,
5390
- ni as DialDestinationFolderPopup,
5391
- Vi as DialFileManager,
5403
+ oi as DialDestinationFolderPopup,
5404
+ $i as DialFileManager,
5392
5405
  y as DialFileManagerActions,
5393
5406
  Ce as DialFileManagerConflictActions,
5394
5407
  He as DialFileManagerConflictStrategies,
@@ -5396,21 +5409,21 @@ export {
5396
5409
  yn as DialFileManagerTabs,
5397
5410
  O as DialFileNodeType,
5398
5411
  Kt as DialFilePermission,
5399
- gr as DialFileResourceType,
5400
- Pi as DialFoldersTree,
5412
+ vr as DialFileResourceType,
5413
+ ki as DialFoldersTree,
5401
5414
  E as FILE_MANAGER_ICON_PROPS,
5402
5415
  ts as FILE_MANAGER_ICON_STROKE,
5403
5416
  Se as FileManagerColumnKey,
5404
5417
  vt as FileManagerCreateFolderTriggerView,
5405
5418
  Ge as FileManagerCreateFolderType,
5406
- ei as FileManagerProvider,
5419
+ ti as FileManagerProvider,
5407
5420
  Gt as FileManagerRenameTriggerView,
5408
5421
  Zt as FileManagerSortDirection,
5409
5422
  et as FileManagerSortField,
5410
- Nr as GridSelectionMode,
5411
- Mi as NAME_COLUMN,
5412
- _i as SIZE_COLUMN,
5413
- Li as UPDATED_AT_COLUMN,
5414
- Qi as useDialFileManagerTabs,
5415
- Hi as useFileManagerContext
5423
+ br as GridSelectionMode,
5424
+ Li as NAME_COLUMN,
5425
+ zi as SIZE_COLUMN,
5426
+ _i as UPDATED_AT_COLUMN,
5427
+ Ji as useDialFileManagerTabs,
5428
+ Wi as useFileManagerContext
5416
5429
  };