@epam/ai-dial-react-file-manager 0.1.0-dev.14 → 0.1.0-dev.16

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