@epam/ai-dial-react-file-manager 0.3.0-dev.18 → 0.3.0-dev.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-dial-react-file-manager.es.js +1254 -1244
- package/package.json +1 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { jsx as a, jsxs as K, Fragment as Pe } from "react/jsx-runtime";
|
|
2
|
-
import { IconCircleFilled as
|
|
2
|
+
import { IconCircleFilled as Qn, IconDotsVertical as bn, IconFolder as is, IconPlus as ls, IconFile as cs, IconFileZip as ds, IconFolderPlus as ba, IconEye as na, IconX as hs, IconArrowsSort as us, IconEyeOff as ps, IconAlertCircleFilled as fs, IconAlertTriangleFilled as ms, IconCaretRightFilled as Cs, IconDownload as oa, IconCopy as aa, IconUserX as sa, IconTrashX as ra, IconExternalLink as Qo, IconPencilMinus as Ba, IconInfoCircle as gs } from "@tabler/icons-react";
|
|
3
3
|
import * as Xe from "react";
|
|
4
|
-
import { useState as L, useMemo as H, useCallback as d, useRef as Ce, useEffect as Ne, createContext as
|
|
5
|
-
import { DIAL_KIT_ICON_STROKE as
|
|
6
|
-
import { extensions as
|
|
4
|
+
import { useState as L, useMemo as H, useCallback as d, useRef as Ce, useEffect as Ne, createContext as vs, useLayoutEffect as ws, useContext as ys, useId as Ns, useImperativeHandle as bs } from "react";
|
|
5
|
+
import { DIAL_KIT_ICON_STROKE as Ds, BASE_ICON_SIZE as ia, FolderName as Wa, FileName as la, Dropdown as Tt, DropdownTrigger as Ha, InlineSelectTrigger as Ts, ElementSize as Dn, Grid as Ua, Popup as ca, PopupSize as Jn, RadioGroup as Da, NeutralButton as Ga, PrimaryButton as Wt, mergeClasses as xe, GhostIconButton as Vt, baseColumnComparator as da, NotificationVariant as Jo, NOT_ALLOWED_SYMBOLS_REGEXP as Rs, TooltipContainer as xs, TooltipPlacement as Is, TooltipTrigger as Fs, TooltipContent as Ss, Notification as Es, ButtonAppearance as eo, Switch as Va, Tooltip as to, FlexibleActionsDirection as wn, DangerButton as Ta, ConfirmationPopup as As, ConfirmationPopupVariant as Ps, Breadcrumbs as ks, BreadcrumbsSize as Os, Search as Ms, DropdownItemType as ha, MenuItemMark as Ra, ButtonDropdown as ea, ButtonVariant as $a, DIAL_ICON_SIZE as Ls, Skeleton as pn, SkeletonVariant as fn, EllipsisTooltip as Bt, editableContainerProps as _s, FileIcon as zs, Input as Bs, useEditableItem as Ws, DialItemType as ut, NoDataContent as ta, DateCellRenderer as ja, convertToDate as Hs, DEFAULT_DATE_LOCALE as Us, DEFAULT_DATE_FORMAT_OPTIONS as Gs, FilterChips as xa, GRID_SELECTION_COLUMN_ID as Vs } from "@epam/ai-dial-ui-kit";
|
|
6
|
+
import { extensions as Ia } from "mime-types";
|
|
7
7
|
import { createPortal as $s } from "react-dom";
|
|
8
|
-
const
|
|
9
|
-
size:
|
|
10
|
-
stroke:
|
|
8
|
+
const Za = (e) => /* @__PURE__ */ Xe.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Xe.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" })), Ka = (e) => /* @__PURE__ */ Xe.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Xe.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" })), ua = (e) => /* @__PURE__ */ Xe.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Xe.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" })), pa = (e) => /* @__PURE__ */ Xe.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Xe.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" })), fa = (e) => /* @__PURE__ */ Xe.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Xe.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" })), Xa = Ds, A = {
|
|
9
|
+
size: ia,
|
|
10
|
+
stroke: Xa
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
const js = "w-full h-full grid grid-rows-[minmax(0,1fr)] overflow-hidden min-w-0", Zs = "text-secondary flex items-center gap-2", Ks = "flex min-h-0 min-w-0 h-full gap-4 overflow-hidden", Xs = "flex flex-col flex-1 min-h-0 min-w-0 h-full px-5 gap-5 pb-4", qs = "flex w-full shrink-0 items-center justify-between gap-4 h-[64px]", Ys = "min-h-0 min-w-[360px] h-full bg-layer-raised shadow-sm", Qs = "flex h-full min-h-0 flex-col gap-3", Js = "dial-h1-text text-primary", er = "px-4 h-[64px] flex items-center justify-between gap-2", tr = "min-h-0 flex-1 px-3", nr = "File storage sections", or = "flex flex-1 flex-col w-full min-h-0 min-w-0 gap-5", ar = "flex-1 w-full text-secondary overflow-auto min-h-0 min-w-0", sr = "absolute bottom-4 left-4 right-4 z-10", rr = "opacity-0 pointer-events-none group-hover/grid-row:opacity-100 group-hover/grid-row:pointer-events-auto", ir = "Files",
|
|
12
|
+
var yn = /* @__PURE__ */ ((e) => (e.All = "all", e.MyFiles = "my_files", e.Shared = "shared", e.Organization = "organization", e.Review = "review", e))(yn || {}), y = /* @__PURE__ */ ((e) => (e.AddSibling = "addSibling", e.AddChild = "addChild", e.Duplicate = "duplicate", e.Copy = "copy", e.Move = "move", e.Download = "download", e.Delete = "delete", e.Rename = "rename", e.Info = "info", e.Unshare = "unshare", e.RemoveAccess = "removeAccess", e.ManagePermissions = "managePermissions", e.Preview = "preview", e.OpenInNewTab = "openInNewTab", e))(y || {}), ve = /* @__PURE__ */ ((e) => (e.Replace = "replace", e.Duplicate = "duplicate", e.Cancel = "cancel", e))(ve || {}), Ue = /* @__PURE__ */ ((e) => (e.ReplaceAll = "replaceAll", e.DuplicateAll = "duplicateAll", e.DecideForEach = "decideForEach", e))(Ue || {}), Re = /* @__PURE__ */ ((e) => (e.Copy = "copy", e.Move = "move", e))(Re || {}), Ht = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(Ht || {}), Dt = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(Dt || {}), $e = /* @__PURE__ */ ((e) => (e.Folder = "folder", e.Child = "child", e.Sibling = "sibling", e))($e || {}), Se = /* @__PURE__ */ ((e) => (e.Name = "name", e.UpdatedAt = "updatedAt", e.Size = "size", e.Author = "author", e.Owner = "owner", e.Path = "path", e.Actions = "__actions", e.Version = "version", e))(Se || {}), nt = /* @__PURE__ */ ((e) => (e.Name = "name", e.UpdatedAt = "updatedAt", e.Size = "size", e))(nt || {}), $t = /* @__PURE__ */ ((e) => (e.Asc = "asc", e.Desc = "desc", e))($t || {});
|
|
13
|
+
const js = "w-full h-full grid grid-rows-[minmax(0,1fr)] overflow-hidden min-w-0", Zs = "text-secondary flex items-center gap-2", Ks = "flex min-h-0 min-w-0 h-full gap-4 overflow-hidden", Xs = "flex flex-col flex-1 min-h-0 min-w-0 h-full px-5 gap-5 pb-4", qs = "flex w-full shrink-0 items-center justify-between gap-4 h-[64px]", Ys = "min-h-0 min-w-[360px] h-full bg-layer-raised shadow-sm", Qs = "flex h-full min-h-0 flex-col gap-3", Js = "dial-h1-text text-primary", er = "px-4 h-[64px] flex items-center justify-between gap-2", tr = "min-h-0 flex-1 px-3", nr = "File storage sections", or = "flex flex-1 flex-col w-full min-h-0 min-w-0 gap-5", ar = "flex-1 w-full text-secondary overflow-auto min-h-0 min-w-0", sr = "absolute bottom-4 left-4 right-4 z-10", rr = "opacity-0 pointer-events-none group-hover/grid-row:opacity-100 group-hover/grid-row:pointer-events-auto", ir = "Files", ht = 20, lr = "Files", qo = ".dial_folder", Fa = "New folder", cr = "ag-Grid-SelectionColumn", Sa = 44, dr = 800, hr = [
|
|
14
14
|
Se.Name,
|
|
15
15
|
Se.UpdatedAt,
|
|
16
16
|
Se.Size,
|
|
17
17
|
Se.Author,
|
|
18
18
|
Se.Actions
|
|
19
19
|
], ur = "flex w-full shrink-0 items-center gap-3";
|
|
20
|
-
var O = /* @__PURE__ */ ((e) => (e.ITEM = "item", e.FOLDER = "folder", e))(O || {}), pr = /* @__PURE__ */ ((e) => (e.FILE = "FILE", e.PROMPT = "PROMPT", e.CONVERSATION = "CONVERSATION", e.APPLICATION = "APPLICATION", e.TOOLSET = "TOOL_SET", e))(pr || {}),
|
|
21
|
-
const
|
|
20
|
+
var O = /* @__PURE__ */ ((e) => (e.ITEM = "item", e.FOLDER = "folder", e))(O || {}), pr = /* @__PURE__ */ ((e) => (e.FILE = "FILE", e.PROMPT = "PROMPT", e.CONVERSATION = "CONVERSATION", e.APPLICATION = "APPLICATION", e.TOOLSET = "TOOL_SET", e))(pr || {}), jt = /* @__PURE__ */ ((e) => (e.READ = "READ", e.WRITE = "WRITE", e.SHARE = "SHARE", e))(jt || {});
|
|
21
|
+
const Ea = ({
|
|
22
22
|
open: e,
|
|
23
23
|
onClose: t,
|
|
24
24
|
onReplace: o,
|
|
@@ -35,10 +35,10 @@ const Fa = ({
|
|
|
35
35
|
nameColumnLabel: N = "Name",
|
|
36
36
|
actionColumnLabel: m = "Action"
|
|
37
37
|
}) => {
|
|
38
|
-
const g = r.length === 1, x = g ? r[0]?.name : "", b = v?.[ve.Replace] ?? "Replace", f = v?.[ve.Duplicate] ?? "Duplicate", u = v?.[ve.Cancel] ?? "Cancel", S = c?.[
|
|
38
|
+
const g = r.length === 1, x = g ? r[0]?.name : "", b = v?.[ve.Replace] ?? "Replace", f = v?.[ve.Duplicate] ?? "Duplicate", u = v?.[ve.Cancel] ?? "Cancel", S = c?.[Ue.ReplaceAll] ?? "Replace all", E = c?.[Ue.DuplicateAll] ?? "Duplicate all", C = c?.[Ue.DecideForEach] ?? "Decide for each", [T, F] = L(
|
|
39
39
|
ve.Replace
|
|
40
40
|
), [U, G] = L(
|
|
41
|
-
|
|
41
|
+
Ue.ReplaceAll
|
|
42
42
|
), [X, k] = L(
|
|
43
43
|
new Map(
|
|
44
44
|
r.map((P) => [
|
|
@@ -57,7 +57,7 @@ const Fa = ({
|
|
|
57
57
|
] }),
|
|
58
58
|
" ",
|
|
59
59
|
"already exists in this destination."
|
|
60
|
-
] }), ge = `${r.length} items with the same names already exist in this destination.`,
|
|
60
|
+
] }), ge = `${r.length} items with the same names already exist in this destination.`, ue = h ?? (g ? j : ge), be = H(
|
|
61
61
|
() => [
|
|
62
62
|
{
|
|
63
63
|
value: ve.Replace,
|
|
@@ -85,16 +85,16 @@ const Fa = ({
|
|
|
85
85
|
filter: !1,
|
|
86
86
|
resizable: !1,
|
|
87
87
|
cellRenderer: (P) => P.data?.nodeType === O.FOLDER ? /* @__PURE__ */ a(
|
|
88
|
-
|
|
88
|
+
Wa,
|
|
89
89
|
{
|
|
90
90
|
name: P.data.name,
|
|
91
|
-
iconSize:
|
|
91
|
+
iconSize: ht
|
|
92
92
|
}
|
|
93
93
|
) : /* @__PURE__ */ a(
|
|
94
|
-
|
|
94
|
+
la,
|
|
95
95
|
{
|
|
96
96
|
name: P.data.name,
|
|
97
|
-
iconSize:
|
|
97
|
+
iconSize: ht
|
|
98
98
|
}
|
|
99
99
|
)
|
|
100
100
|
},
|
|
@@ -113,17 +113,17 @@ const Fa = ({
|
|
|
113
113
|
{
|
|
114
114
|
key: ve.Replace,
|
|
115
115
|
label: b,
|
|
116
|
-
icon: /* @__PURE__ */ a(
|
|
116
|
+
icon: /* @__PURE__ */ a(Qn, { size: 10, className: "text-violet-1" })
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
key: ve.Duplicate,
|
|
120
120
|
label: f,
|
|
121
|
-
icon: /* @__PURE__ */ a(
|
|
121
|
+
icon: /* @__PURE__ */ a(Qn, { size: 10, className: "text-success" })
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
key: ve.Cancel,
|
|
125
125
|
label: u,
|
|
126
|
-
icon: /* @__PURE__ */ a(
|
|
126
|
+
icon: /* @__PURE__ */ a(Qn, { size: 10, className: "text-error" })
|
|
127
127
|
}
|
|
128
128
|
], we = {
|
|
129
129
|
[ve.Replace]: b,
|
|
@@ -131,9 +131,9 @@ const Fa = ({
|
|
|
131
131
|
[ve.Cancel]: u
|
|
132
132
|
}, B = _ === P.data.path;
|
|
133
133
|
return /* @__PURE__ */ a("div", { className: "flex items-center h-full", children: /* @__PURE__ */ a(
|
|
134
|
-
|
|
134
|
+
Tt,
|
|
135
135
|
{
|
|
136
|
-
trigger: [
|
|
136
|
+
trigger: [Ha.Click],
|
|
137
137
|
open: B,
|
|
138
138
|
items: oe,
|
|
139
139
|
onItemClick: ({ key: Q }) => {
|
|
@@ -152,9 +152,9 @@ const Fa = ({
|
|
|
152
152
|
V(Q ? P.data.path : void 0);
|
|
153
153
|
},
|
|
154
154
|
children: /* @__PURE__ */ a(
|
|
155
|
-
|
|
155
|
+
Ts,
|
|
156
156
|
{
|
|
157
|
-
size:
|
|
157
|
+
size: Dn.Small,
|
|
158
158
|
isOpen: B,
|
|
159
159
|
"aria-label": m,
|
|
160
160
|
label: we[P.data.action]
|
|
@@ -171,21 +171,21 @@ const Fa = ({
|
|
|
171
171
|
f,
|
|
172
172
|
u,
|
|
173
173
|
_
|
|
174
|
-
]),
|
|
174
|
+
]), se = H(
|
|
175
175
|
() => [
|
|
176
176
|
{
|
|
177
|
-
value:
|
|
177
|
+
value: Ue.ReplaceAll,
|
|
178
178
|
label: S
|
|
179
179
|
},
|
|
180
180
|
{
|
|
181
|
-
value:
|
|
181
|
+
value: Ue.DuplicateAll,
|
|
182
182
|
label: E
|
|
183
183
|
},
|
|
184
184
|
{
|
|
185
|
-
value:
|
|
185
|
+
value: Ue.DecideForEach,
|
|
186
186
|
label: C,
|
|
187
187
|
content: /* @__PURE__ */ a(
|
|
188
|
-
|
|
188
|
+
Ua,
|
|
189
189
|
{
|
|
190
190
|
columnDefs: ne,
|
|
191
191
|
rowData: De,
|
|
@@ -206,8 +206,8 @@ const Fa = ({
|
|
|
206
206
|
ne,
|
|
207
207
|
De
|
|
208
208
|
]
|
|
209
|
-
),
|
|
210
|
-
F(ve.Replace), G(
|
|
209
|
+
), pe = d(() => {
|
|
210
|
+
F(ve.Replace), G(Ue.ReplaceAll), k(
|
|
211
211
|
new Map(
|
|
212
212
|
r.map((P) => [
|
|
213
213
|
P.path,
|
|
@@ -215,16 +215,16 @@ const Fa = ({
|
|
|
215
215
|
])
|
|
216
216
|
)
|
|
217
217
|
);
|
|
218
|
-
}, [r]),
|
|
219
|
-
|
|
220
|
-
}, [
|
|
221
|
-
if (
|
|
218
|
+
}, [r]), Ae = d(() => {
|
|
219
|
+
pe(), t();
|
|
220
|
+
}, [pe, t]), Le = d(() => {
|
|
221
|
+
if (pe(), g)
|
|
222
222
|
T === ve.Replace ? o() : s();
|
|
223
|
-
else if (U ===
|
|
223
|
+
else if (U === Ue.ReplaceAll)
|
|
224
224
|
o();
|
|
225
|
-
else if (U ===
|
|
225
|
+
else if (U === Ue.DuplicateAll)
|
|
226
226
|
s();
|
|
227
|
-
else if (U ===
|
|
227
|
+
else if (U === Ue.DecideForEach && n) {
|
|
228
228
|
const P = r.map(
|
|
229
229
|
(oe) => ({
|
|
230
230
|
file: oe,
|
|
@@ -234,7 +234,7 @@ const Fa = ({
|
|
|
234
234
|
n(P);
|
|
235
235
|
}
|
|
236
236
|
}, [
|
|
237
|
-
|
|
237
|
+
pe,
|
|
238
238
|
g,
|
|
239
239
|
T,
|
|
240
240
|
o,
|
|
@@ -245,22 +245,22 @@ const Fa = ({
|
|
|
245
245
|
X
|
|
246
246
|
]);
|
|
247
247
|
return /* @__PURE__ */ a(
|
|
248
|
-
|
|
248
|
+
ca,
|
|
249
249
|
{
|
|
250
250
|
open: e,
|
|
251
|
-
onClose:
|
|
252
|
-
size: g ?
|
|
251
|
+
onClose: Ae,
|
|
252
|
+
size: g ? Jn.Sm : Jn.Md,
|
|
253
253
|
className: xe([!g && "w-[600px]"]),
|
|
254
254
|
header: z,
|
|
255
255
|
preventKeyboardOnOpen: !0,
|
|
256
256
|
footer: /* @__PURE__ */ K("div", { className: "flex justify-end gap-3 py-4 px-6 border-t border-tertiary", children: [
|
|
257
|
-
/* @__PURE__ */ a(
|
|
258
|
-
/* @__PURE__ */ a(
|
|
257
|
+
/* @__PURE__ */ a(Ga, { onClick: Ae, label: p }),
|
|
258
|
+
/* @__PURE__ */ a(Wt, { onClick: Le, label: D })
|
|
259
259
|
] }),
|
|
260
260
|
children: /* @__PURE__ */ K("div", { className: "px-6 py-4", children: [
|
|
261
|
-
/* @__PURE__ */ a("p", { className: "text-secondary mb-4 break-words", children:
|
|
261
|
+
/* @__PURE__ */ a("p", { className: "text-secondary mb-4 break-words", children: ue }),
|
|
262
262
|
g ? /* @__PURE__ */ a(
|
|
263
|
-
|
|
263
|
+
Da,
|
|
264
264
|
{
|
|
265
265
|
id: "single-file-conflict",
|
|
266
266
|
ariaLabel: z,
|
|
@@ -269,11 +269,11 @@ const Fa = ({
|
|
|
269
269
|
onChange: (P) => F(P)
|
|
270
270
|
}
|
|
271
271
|
) : /* @__PURE__ */ a(
|
|
272
|
-
|
|
272
|
+
Da,
|
|
273
273
|
{
|
|
274
274
|
id: "multiple-files-conflict",
|
|
275
275
|
ariaLabel: z,
|
|
276
|
-
items:
|
|
276
|
+
items: se,
|
|
277
277
|
value: U,
|
|
278
278
|
onChange: (P) => G(P),
|
|
279
279
|
contentClassName: "ml-0"
|
|
@@ -302,16 +302,16 @@ const Fa = ({
|
|
|
302
302
|
)) return null;
|
|
303
303
|
const c = h.data ? r.current?.(h.data) ?? [] : [];
|
|
304
304
|
return c.length ? /* @__PURE__ */ a(
|
|
305
|
-
|
|
305
|
+
Tt,
|
|
306
306
|
{
|
|
307
307
|
placement: "bottom-start",
|
|
308
308
|
allowedPlacements: ["top-start", "top-end", "bottom-start"],
|
|
309
309
|
items: c,
|
|
310
310
|
className: xe("sticky right-0", n),
|
|
311
311
|
children: /* @__PURE__ */ a(
|
|
312
|
-
|
|
312
|
+
Vt,
|
|
313
313
|
{
|
|
314
|
-
icon: /* @__PURE__ */ a(
|
|
314
|
+
icon: /* @__PURE__ */ a(bn, { ...A })
|
|
315
315
|
}
|
|
316
316
|
)
|
|
317
317
|
}
|
|
@@ -338,14 +338,14 @@ const Fa = ({
|
|
|
338
338
|
}, mr = ({
|
|
339
339
|
onRename: e
|
|
340
340
|
}) => {
|
|
341
|
-
const [t, o] = L(
|
|
341
|
+
const [t, o] = L(Ht.Grid), s = d(
|
|
342
342
|
(r) => {
|
|
343
|
-
e(r), o(
|
|
343
|
+
e(r), o(Ht.Grid);
|
|
344
344
|
},
|
|
345
345
|
[e]
|
|
346
346
|
), n = d(
|
|
347
347
|
(r) => {
|
|
348
|
-
e(r), o(
|
|
348
|
+
e(r), o(Ht.Tree);
|
|
349
349
|
},
|
|
350
350
|
[e]
|
|
351
351
|
);
|
|
@@ -367,23 +367,23 @@ function Cr(e, t) {
|
|
|
367
367
|
}, [e, t]), { containerRef: o, isBelowBreakpoint: s };
|
|
368
368
|
}
|
|
369
369
|
var gr = /* @__PURE__ */ ((e) => (e.MULTIPLE = "MULTIPLE", e.SINGLE = "SINGLE", e))(gr || {});
|
|
370
|
-
const
|
|
370
|
+
const Rt = (e, t) => {
|
|
371
371
|
if (!(!e || !e.length || !t))
|
|
372
372
|
for (const o of e) {
|
|
373
373
|
if (o.path === t) return o;
|
|
374
|
-
const s =
|
|
374
|
+
const s = Rt(o.items, t);
|
|
375
375
|
if (s) return s;
|
|
376
376
|
}
|
|
377
|
-
},
|
|
377
|
+
}, Ut = (e, t) => {
|
|
378
378
|
if (!e?.length) return;
|
|
379
379
|
if (!t) return e[0];
|
|
380
|
-
const o =
|
|
380
|
+
const o = Rt(e, t);
|
|
381
381
|
if (o && o.nodeType === O.FOLDER) return o;
|
|
382
382
|
const s = t.split("/").filter(Boolean);
|
|
383
383
|
if (s.length <= 1) return e[0];
|
|
384
384
|
const n = "/" + s.slice(0, s.length - 1).join("/");
|
|
385
|
-
return
|
|
386
|
-
},
|
|
385
|
+
return Rt(e, n) ?? e[0];
|
|
386
|
+
}, Gt = (e) => (e ?? "").toLowerCase(), vr = (e) => Gt(e).replace(/^\./, ""), wr = (e) => {
|
|
387
387
|
if (!e) return [];
|
|
388
388
|
const t = [], o = (s) => {
|
|
389
389
|
const n = s.items ?? [];
|
|
@@ -398,7 +398,7 @@ const Tt = (e, t) => {
|
|
|
398
398
|
(r) => r.items?.length ? { ...r, items: s(r.items) } : r
|
|
399
399
|
);
|
|
400
400
|
return s(e);
|
|
401
|
-
},
|
|
401
|
+
}, qa = (e) => (e.name ?? e.path.split("/").pop() ?? "").startsWith("."), Nn = (e) => {
|
|
402
402
|
if (!e) return "0 bytes";
|
|
403
403
|
const t = 1024, o = t * 1024;
|
|
404
404
|
return e >= o ? `${(e / o).toFixed(1)} MB` : e >= t ? `${(e / t).toFixed(0)} KB` : `${e} bytes`;
|
|
@@ -414,7 +414,7 @@ const Tt = (e, t) => {
|
|
|
414
414
|
return e;
|
|
415
415
|
}
|
|
416
416
|
};
|
|
417
|
-
function
|
|
417
|
+
function ma(e, t, o) {
|
|
418
418
|
if (!e || e.includes("*/*"))
|
|
419
419
|
return !0;
|
|
420
420
|
const s = t.toLowerCase(), n = o && o.includes(".") ? `.${o.split(".").at(-1).toLowerCase()}` : void 0;
|
|
@@ -431,17 +431,17 @@ function fa(e, t, o) {
|
|
|
431
431
|
}
|
|
432
432
|
const br = (e) => e?.map((t) => t.endsWith("/*") ? t.replace("/*", "s") : Dr(t).flat().map((o) => `.${o}`)).flat().join(", ") || "", Dr = (e) => {
|
|
433
433
|
const [t, o] = e.split("/");
|
|
434
|
-
return t === "*" ? ["all"] : o === "*" ? Object.entries(
|
|
434
|
+
return t === "*" ? ["all"] : o === "*" ? Object.entries(Ia).reduce((s, [n, r]) => {
|
|
435
435
|
const [i] = n.split("/");
|
|
436
436
|
return i === t && s.push(...r), s;
|
|
437
|
-
}, []) :
|
|
438
|
-
},
|
|
437
|
+
}, []) : Ia[e] || [];
|
|
438
|
+
}, oo = (e) => {
|
|
439
439
|
if (!e) return;
|
|
440
440
|
const t = e.flags.replace(/[gy]/g, "");
|
|
441
441
|
return new RegExp(e.source, t);
|
|
442
442
|
};
|
|
443
|
-
function
|
|
444
|
-
if (t &&
|
|
443
|
+
function Ca(e, t, o) {
|
|
444
|
+
if (t && oo(t)?.test(e.name))
|
|
445
445
|
return o ?? `This ${e.isFolder ? "folder" : "file"} contains forbidden characters in its name. Please rename it.`;
|
|
446
446
|
}
|
|
447
447
|
const Tr = (e) => {
|
|
@@ -451,17 +451,17 @@ const Tr = (e) => {
|
|
|
451
451
|
name: e.slice(t + 1)
|
|
452
452
|
} : { parent: "", name: e };
|
|
453
453
|
}, Rr = (e, t, o) => {
|
|
454
|
-
const s = !e.contentLength || o == null || e.contentLength <= o, n = !e.contentType ||
|
|
454
|
+
const s = !e.contentLength || o == null || e.contentLength <= o, n = !e.contentType || ma(t, e.contentType, e.name);
|
|
455
455
|
return s && n;
|
|
456
456
|
}, xr = (e, t, o, s, n) => {
|
|
457
457
|
if (e.nodeType === O.FOLDER) return;
|
|
458
458
|
const r = !e.contentLength || o == null || e.contentLength <= o;
|
|
459
|
-
if (!(!e.contentType ||
|
|
459
|
+
if (!(!e.contentType || ma(t, e.contentType, e.name)))
|
|
460
460
|
return s ?? (t?.length ? `Unsupported file type. Supported types: ${br(t)}.` : "Unsupported file type.");
|
|
461
461
|
if (!r)
|
|
462
|
-
return n ?? `File is too large. Maximum size: ${
|
|
463
|
-
}, Ir = (e) => e.replace(/\/+$/, "").split("/").filter(Boolean).length,
|
|
464
|
-
const t = `${
|
|
462
|
+
return n ?? `File is too large. Maximum size: ${Nn(o)}.`;
|
|
463
|
+
}, Ir = (e) => e.replace(/\/+$/, "").split("/").filter(Boolean).length, mn = (e) => {
|
|
464
|
+
const t = `${Fa} `, o = new RegExp(`^${Fa} (\\d+)$`), s = new Set(
|
|
465
465
|
e.map((l) => l.name.toLowerCase())
|
|
466
466
|
), n = e.map((l) => {
|
|
467
467
|
const h = l.name.match(o);
|
|
@@ -471,27 +471,27 @@ const Tr = (e) => {
|
|
|
471
471
|
for (; s.has(r.toLowerCase()); )
|
|
472
472
|
i++, r = `${t}${i}`;
|
|
473
473
|
return r;
|
|
474
|
-
},
|
|
474
|
+
}, Aa = (e) => {
|
|
475
475
|
const t = e.updatedAt ? new Date(e.updatedAt).getTime() : NaN;
|
|
476
476
|
return Number.isNaN(t) ? 0 : t;
|
|
477
|
-
},
|
|
477
|
+
}, Pa = (e) => e.contentLength ?? e.size ?? 0, Fr = (e, t, o) => {
|
|
478
478
|
switch (o) {
|
|
479
479
|
case nt.UpdatedAt:
|
|
480
|
-
return
|
|
480
|
+
return Aa(e) - Aa(t);
|
|
481
481
|
case nt.Size:
|
|
482
|
-
return
|
|
482
|
+
return Pa(e) - Pa(t);
|
|
483
483
|
case nt.Name:
|
|
484
484
|
default:
|
|
485
|
-
return
|
|
485
|
+
return da(e.name, t.name);
|
|
486
486
|
}
|
|
487
487
|
}, Sr = (e, t) => {
|
|
488
|
-
const o = t.direction ===
|
|
488
|
+
const o = t.direction === $t.Desc ? -1 : 1;
|
|
489
489
|
return [...e].sort((s, n) => {
|
|
490
490
|
if (!!s.isTemporary != !!n.isTemporary) return s.isTemporary ? -1 : 1;
|
|
491
491
|
const r = s.nodeType === O.FOLDER, i = n.nodeType === O.FOLDER;
|
|
492
492
|
if (r !== i) return r ? -1 : 1;
|
|
493
493
|
const l = Fr(s, n, t.field);
|
|
494
|
-
return l !== 0 ? o * l : o *
|
|
494
|
+
return l !== 0 ? o * l : o * da(s.name, n.name);
|
|
495
495
|
});
|
|
496
496
|
}, Er = (e) => {
|
|
497
497
|
const [t, o] = L(e?.showHiddenFiles ?? !1), s = !!e?.onShowHiddenFilesChange, n = s ? e.showHiddenFiles ?? !1 : t, r = d(
|
|
@@ -525,7 +525,7 @@ const Tr = (e) => {
|
|
|
525
525
|
toggleTreeCollapse: i,
|
|
526
526
|
setIsTreeCollapsed: r
|
|
527
527
|
};
|
|
528
|
-
},
|
|
528
|
+
}, ka = (e, t, o) => {
|
|
529
529
|
if (!t.has(e))
|
|
530
530
|
return e;
|
|
531
531
|
const s = o === O.FOLDER ? (n, r) => `${n} (${r})` : (n, r) => {
|
|
@@ -536,7 +536,7 @@ const Tr = (e) => {
|
|
|
536
536
|
const r = s(e, n);
|
|
537
537
|
if (!t.has(r)) return r;
|
|
538
538
|
}
|
|
539
|
-
},
|
|
539
|
+
}, Yo = (e) => e.name, Ya = ({
|
|
540
540
|
getDestinationFiles: e,
|
|
541
541
|
onResolve: t
|
|
542
542
|
}) => {
|
|
@@ -546,7 +546,7 @@ const Tr = (e) => {
|
|
|
546
546
|
h.current = !1, r(!1), s([]), l(null);
|
|
547
547
|
}, []), D = d(
|
|
548
548
|
(u, S) => {
|
|
549
|
-
const E = e(u), C = new Set(E.map(
|
|
549
|
+
const E = e(u), C = new Set(E.map(Yo)), T = S.filter((F) => C.has(F.name));
|
|
550
550
|
return {
|
|
551
551
|
hasConflicts: T.length > 0,
|
|
552
552
|
conflicts: T
|
|
@@ -555,9 +555,9 @@ const Tr = (e) => {
|
|
|
555
555
|
[e]
|
|
556
556
|
), p = d(
|
|
557
557
|
(u, S, E, C) => {
|
|
558
|
-
const T = e(u), F = new Set(T.map(
|
|
558
|
+
const T = e(u), F = new Set(T.map(Yo));
|
|
559
559
|
return S.map((U) => {
|
|
560
|
-
const G = U.name, X = F.has(G), k = E && X ? G :
|
|
560
|
+
const G = U.name, X = F.has(G), k = E && X ? G : ka(G, F, U.nodeType);
|
|
561
561
|
return (!E || !X) && F.add(k), {
|
|
562
562
|
sourceUrl: U.path,
|
|
563
563
|
destinationUrl: `${u}/${k}`,
|
|
@@ -570,9 +570,9 @@ const Tr = (e) => {
|
|
|
570
570
|
[e]
|
|
571
571
|
), N = d(
|
|
572
572
|
(u, S, E, C) => {
|
|
573
|
-
const T = e(u), F = new Set(T.map(
|
|
573
|
+
const T = e(u), F = new Set(T.map(Yo));
|
|
574
574
|
return S.filter((G) => E.get(G.path) !== ve.Cancel).map((G) => {
|
|
575
|
-
const X = E.get(G.path), k = F.has(G.name), _ = X === ve.Replace && k, V = _ ? G.name :
|
|
575
|
+
const X = E.get(G.path), k = F.has(G.name), _ = X === ve.Replace && k, V = _ ? G.name : ka(G.name, F, G.nodeType);
|
|
576
576
|
return _ || F.add(V), {
|
|
577
577
|
sourceUrl: G.path,
|
|
578
578
|
destinationUrl: `${u}/${V}`,
|
|
@@ -698,7 +698,7 @@ const Tr = (e) => {
|
|
|
698
698
|
handleDuplicateAll: k,
|
|
699
699
|
handleCancelAll: _,
|
|
700
700
|
handleDecideForEach: V
|
|
701
|
-
} =
|
|
701
|
+
} = Ya({
|
|
702
702
|
getDestinationFiles: e,
|
|
703
703
|
onResolve: (B, Q) => {
|
|
704
704
|
B?.length && (f?.type === Re.Copy ? (t?.(B, Q), s?.()) : f?.type === Re.Move && f.sourceFolder && (o?.(
|
|
@@ -738,12 +738,12 @@ const Tr = (e) => {
|
|
|
738
738
|
type: Re.Move,
|
|
739
739
|
sourceFolderPath: ee
|
|
740
740
|
}).hasConflicts) {
|
|
741
|
-
const
|
|
741
|
+
const re = F(
|
|
742
742
|
B,
|
|
743
743
|
p,
|
|
744
744
|
!0
|
|
745
745
|
);
|
|
746
|
-
o?.(
|
|
746
|
+
o?.(re, ee, B), n?.(), z();
|
|
747
747
|
}
|
|
748
748
|
},
|
|
749
749
|
[
|
|
@@ -755,7 +755,7 @@ const Tr = (e) => {
|
|
|
755
755
|
z,
|
|
756
756
|
f
|
|
757
757
|
]
|
|
758
|
-
),
|
|
758
|
+
), ue = d(() => {
|
|
759
759
|
X(), z();
|
|
760
760
|
}, [X, z]), be = d(() => {
|
|
761
761
|
k(), z();
|
|
@@ -766,7 +766,7 @@ const Tr = (e) => {
|
|
|
766
766
|
V(B), z();
|
|
767
767
|
},
|
|
768
768
|
[V, z]
|
|
769
|
-
),
|
|
769
|
+
), se = d(
|
|
770
770
|
(B) => {
|
|
771
771
|
const Q = B.at(0)?.parentPath ?? "/", ee = F(
|
|
772
772
|
Q,
|
|
@@ -776,14 +776,14 @@ const Tr = (e) => {
|
|
|
776
776
|
t?.(ee, Q), r?.();
|
|
777
777
|
},
|
|
778
778
|
[t, r, F]
|
|
779
|
-
),
|
|
779
|
+
), pe = d(
|
|
780
780
|
(B) => {
|
|
781
781
|
g(B), v(!0);
|
|
782
782
|
},
|
|
783
783
|
[]
|
|
784
|
-
),
|
|
784
|
+
), Ae = d(() => {
|
|
785
785
|
v(!1), C.current || z();
|
|
786
|
-
}, [z, C]), [
|
|
786
|
+
}, [z, C]), [Le, P] = L(), oe = d(
|
|
787
787
|
(B) => {
|
|
788
788
|
D(B);
|
|
789
789
|
const Q = B[0]?.parentPath ?? B[0]?.folderId;
|
|
@@ -802,14 +802,14 @@ const Tr = (e) => {
|
|
|
802
802
|
[l]
|
|
803
803
|
);
|
|
804
804
|
return {
|
|
805
|
-
handleDuplicate:
|
|
806
|
-
handleCloseDestinationFolderPopup:
|
|
807
|
-
handleOpenDestinationFolderPopup:
|
|
805
|
+
handleDuplicate: se,
|
|
806
|
+
handleCloseDestinationFolderPopup: Ae,
|
|
807
|
+
handleOpenDestinationFolderPopup: pe,
|
|
808
808
|
handleCopyTo: j,
|
|
809
809
|
handleMoveTo: ge,
|
|
810
810
|
openDestinationFolderPopup: h,
|
|
811
811
|
destinationFolderMode: m,
|
|
812
|
-
destinationFolderTitle:
|
|
812
|
+
destinationFolderTitle: Le,
|
|
813
813
|
handleSetCopiedFiles: oe,
|
|
814
814
|
handleSetMovedFiles: we,
|
|
815
815
|
clearState: z,
|
|
@@ -817,7 +817,7 @@ const Tr = (e) => {
|
|
|
817
817
|
conflictResolutionOpen: E,
|
|
818
818
|
openConflictResolution: G,
|
|
819
819
|
closeConflictResolution: U,
|
|
820
|
-
handleConflictReplace:
|
|
820
|
+
handleConflictReplace: ue,
|
|
821
821
|
handleConflictCancel: De,
|
|
822
822
|
handleConflictDuplicate: be,
|
|
823
823
|
handleConflictDecideForEach: ne,
|
|
@@ -903,9 +903,9 @@ const Tr = (e) => {
|
|
|
903
903
|
uploadEnabled: l = !0,
|
|
904
904
|
currentFolder: h
|
|
905
905
|
} = {}) => {
|
|
906
|
-
const [v, c] = L(!1), [D, p] = L(!1), [N, m] = L(), g = Ce(null), x = Ce(""), b = Ce([]), f = H(() => !!h?.permissions?.includes(
|
|
906
|
+
const [v, c] = L(!1), [D, p] = L(!1), [N, m] = L(), g = Ce(null), x = Ce(""), b = Ce([]), f = H(() => !!h?.permissions?.includes(jt.WRITE), [h]), [u, S] = L(/* @__PURE__ */ new Map()), [E, C] = L(null), T = d(
|
|
907
907
|
(R) => !s || s.includes("*/*") ? R : R.filter(
|
|
908
|
-
({ fileContent: M, name: W }) =>
|
|
908
|
+
({ fileContent: M, name: W }) => ma(s, M.type, W)
|
|
909
909
|
),
|
|
910
910
|
[s]
|
|
911
911
|
), F = d(() => {
|
|
@@ -920,9 +920,9 @@ const Tr = (e) => {
|
|
|
920
920
|
openConflictResolution: z,
|
|
921
921
|
handleReplaceAll: j,
|
|
922
922
|
handleDuplicateAll: ge,
|
|
923
|
-
handleCancelAll:
|
|
923
|
+
handleCancelAll: ue,
|
|
924
924
|
handleDecideForEach: be
|
|
925
|
-
} =
|
|
925
|
+
} = Ya({
|
|
926
926
|
getDestinationFiles: () => b.current,
|
|
927
927
|
onResolve: (R, M) => {
|
|
928
928
|
if (!l || !f) {
|
|
@@ -934,10 +934,10 @@ const Tr = (e) => {
|
|
|
934
934
|
const $ = u.get(q.sourceUrl);
|
|
935
935
|
if (!$)
|
|
936
936
|
return;
|
|
937
|
-
const
|
|
937
|
+
const le = q.destinationUrl.split("/").pop();
|
|
938
938
|
return {
|
|
939
939
|
fileContent: $.fileContent,
|
|
940
|
-
name:
|
|
940
|
+
name: le
|
|
941
941
|
};
|
|
942
942
|
}).filter(Boolean);
|
|
943
943
|
if (E.isArchive && W[0]) {
|
|
@@ -957,14 +957,14 @@ const Tr = (e) => {
|
|
|
957
957
|
]), Ne(() => {
|
|
958
958
|
if (!l || !f) return;
|
|
959
959
|
let R = 0;
|
|
960
|
-
const M = (
|
|
961
|
-
Lr(
|
|
960
|
+
const M = (le) => {
|
|
961
|
+
Lr(le) && le.dataTransfer.types.includes(lr) && (R++, p(!0));
|
|
962
962
|
}, W = () => {
|
|
963
963
|
R--, R === 0 && p(!1);
|
|
964
964
|
}, q = () => {
|
|
965
965
|
R = 0, p(!1);
|
|
966
|
-
}, $ = (
|
|
967
|
-
|
|
966
|
+
}, $ = (le) => {
|
|
967
|
+
le.preventDefault();
|
|
968
968
|
};
|
|
969
969
|
return window.addEventListener("dragenter", M), window.addEventListener("dragleave", W), window.addEventListener("drop", q), window.addEventListener("dragover", $), () => {
|
|
970
970
|
window.removeEventListener("dragenter", M), window.removeEventListener("dragleave", W), window.removeEventListener("drop", q), window.removeEventListener("dragover", $);
|
|
@@ -984,7 +984,7 @@ const Tr = (e) => {
|
|
|
984
984
|
contentLength: W.fileContent.size
|
|
985
985
|
})),
|
|
986
986
|
[]
|
|
987
|
-
),
|
|
987
|
+
), se = d(
|
|
988
988
|
async (R, M, W) => {
|
|
989
989
|
if (!l || !f) return !1;
|
|
990
990
|
m(void 0), b.current = W;
|
|
@@ -993,8 +993,8 @@ const Tr = (e) => {
|
|
|
993
993
|
name: i(J.name)
|
|
994
994
|
})) : R, $ = De(q);
|
|
995
995
|
if ($.length > 0) {
|
|
996
|
-
const J = o ? (o / 1048576).toFixed(2) : 0,
|
|
997
|
-
return m(
|
|
996
|
+
const J = o ? (o / 1048576).toFixed(2) : 0, _e = n.oversizedFiles || `Files exceed maximum size (${J}MB): ${$.join(", ")}`;
|
|
997
|
+
return m(_e), !1;
|
|
998
998
|
}
|
|
999
999
|
if (t)
|
|
1000
1000
|
try {
|
|
@@ -1012,22 +1012,22 @@ const Tr = (e) => {
|
|
|
1012
1012
|
n.validationError || "Validation error occurred"
|
|
1013
1013
|
), !1;
|
|
1014
1014
|
}
|
|
1015
|
-
const
|
|
1015
|
+
const le = ne(
|
|
1016
1016
|
q,
|
|
1017
1017
|
M
|
|
1018
|
-
), { conflicts: ye } = k(M,
|
|
1018
|
+
), { conflicts: ye } = k(M, le), Te = new Set(ye.map((J) => J.name)), ce = q.filter(
|
|
1019
1019
|
(J) => !Te.has(J.name)
|
|
1020
1020
|
);
|
|
1021
|
-
return
|
|
1021
|
+
return ce.length > 0 && e?.(ce, M), Te.size === 0 ? (F(), !0) : (b.current = [
|
|
1022
1022
|
...W,
|
|
1023
|
-
...ne(
|
|
1023
|
+
...ne(ce, M)
|
|
1024
1024
|
], S(
|
|
1025
1025
|
new Map(
|
|
1026
1026
|
q.filter((J) => Te.has(J.name)).map((J) => [J.name, J])
|
|
1027
1027
|
)
|
|
1028
1028
|
), C({ destinationFolder: M }), _(
|
|
1029
1029
|
M,
|
|
1030
|
-
|
|
1030
|
+
le.filter((J) => Te.has(J.name)),
|
|
1031
1031
|
{ destinationFolder: M }
|
|
1032
1032
|
), !1);
|
|
1033
1033
|
},
|
|
@@ -1045,13 +1045,13 @@ const Tr = (e) => {
|
|
|
1045
1045
|
F,
|
|
1046
1046
|
f
|
|
1047
1047
|
]
|
|
1048
|
-
),
|
|
1048
|
+
), pe = d(() => {
|
|
1049
1049
|
j(), F();
|
|
1050
|
-
}, [j, F]),
|
|
1050
|
+
}, [j, F]), Ae = d(() => {
|
|
1051
1051
|
ge(), F();
|
|
1052
|
-
}, [ge, F]),
|
|
1053
|
-
|
|
1054
|
-
}, [
|
|
1052
|
+
}, [ge, F]), Le = d(() => {
|
|
1053
|
+
ue(), F();
|
|
1054
|
+
}, [ue, F]), P = d(
|
|
1055
1055
|
(R) => {
|
|
1056
1056
|
be(R), F();
|
|
1057
1057
|
},
|
|
@@ -1081,25 +1081,25 @@ const Tr = (e) => {
|
|
|
1081
1081
|
if (!l || !f || (R.preventDefault(), R.stopPropagation(), c(!1), !R.dataTransfer.types.includes("Files")))
|
|
1082
1082
|
return;
|
|
1083
1083
|
const q = Array.from(R.dataTransfer.items || []), $ = [];
|
|
1084
|
-
let
|
|
1085
|
-
if (q.length > 0 && q.forEach((
|
|
1086
|
-
if (
|
|
1087
|
-
if (
|
|
1088
|
-
|
|
1084
|
+
let le = !1;
|
|
1085
|
+
if (q.length > 0 && q.forEach((ce) => {
|
|
1086
|
+
if (ce.kind === "file") {
|
|
1087
|
+
if (ce.webkitGetAsEntry?.()?.isDirectory) {
|
|
1088
|
+
le = !0;
|
|
1089
1089
|
return;
|
|
1090
1090
|
}
|
|
1091
|
-
const
|
|
1092
|
-
|
|
1091
|
+
const _e = ce.getAsFile?.();
|
|
1092
|
+
_e && $.push(_e);
|
|
1093
1093
|
}
|
|
1094
1094
|
}), $.length === 0 && R.dataTransfer.files?.length && $.push(...Array.from(R.dataTransfer.files)), $.length === 0) {
|
|
1095
|
-
|
|
1095
|
+
le && m(
|
|
1096
1096
|
n.foldersNotSupported || "Folder upload is not supported"
|
|
1097
1097
|
);
|
|
1098
1098
|
return;
|
|
1099
1099
|
}
|
|
1100
|
-
const ye = $.map((
|
|
1101
|
-
fileContent:
|
|
1102
|
-
name:
|
|
1100
|
+
const ye = $.map((ce) => ({
|
|
1101
|
+
fileContent: ce,
|
|
1102
|
+
name: ce.name
|
|
1103
1103
|
})), Te = T(ye);
|
|
1104
1104
|
if (Te.length === 0) {
|
|
1105
1105
|
m(
|
|
@@ -1107,12 +1107,12 @@ const Tr = (e) => {
|
|
|
1107
1107
|
);
|
|
1108
1108
|
return;
|
|
1109
1109
|
}
|
|
1110
|
-
await
|
|
1110
|
+
await se(Te, M, W);
|
|
1111
1111
|
},
|
|
1112
1112
|
[
|
|
1113
1113
|
l,
|
|
1114
1114
|
T,
|
|
1115
|
-
|
|
1115
|
+
se,
|
|
1116
1116
|
n,
|
|
1117
1117
|
f
|
|
1118
1118
|
]
|
|
@@ -1138,7 +1138,7 @@ const Tr = (e) => {
|
|
|
1138
1138
|
return;
|
|
1139
1139
|
}
|
|
1140
1140
|
try {
|
|
1141
|
-
await
|
|
1141
|
+
await se(
|
|
1142
1142
|
q,
|
|
1143
1143
|
x.current,
|
|
1144
1144
|
b.current
|
|
@@ -1153,7 +1153,7 @@ const Tr = (e) => {
|
|
|
1153
1153
|
l,
|
|
1154
1154
|
f,
|
|
1155
1155
|
T,
|
|
1156
|
-
|
|
1156
|
+
se,
|
|
1157
1157
|
n
|
|
1158
1158
|
]), Ne(() => {
|
|
1159
1159
|
const R = document.createElement("input");
|
|
@@ -1166,7 +1166,7 @@ const Tr = (e) => {
|
|
|
1166
1166
|
const R = g.current;
|
|
1167
1167
|
R && (s && s.length > 0 ? R.accept = s.join(",") : R.removeAttribute("accept"));
|
|
1168
1168
|
}, [s]);
|
|
1169
|
-
const
|
|
1169
|
+
const re = d(
|
|
1170
1170
|
(R, M) => {
|
|
1171
1171
|
!l || !f || (x.current = R, b.current = M, g.current && g.current.click());
|
|
1172
1172
|
},
|
|
@@ -1182,7 +1182,7 @@ const Tr = (e) => {
|
|
|
1182
1182
|
document.body.removeChild(W);
|
|
1183
1183
|
return;
|
|
1184
1184
|
}
|
|
1185
|
-
const
|
|
1185
|
+
const le = $.name.replace(/\.zip$/i, ""), ye = i ? i(le) : le, Te = {
|
|
1186
1186
|
id: ye,
|
|
1187
1187
|
name: ye,
|
|
1188
1188
|
folderId: R,
|
|
@@ -1215,7 +1215,7 @@ const Tr = (e) => {
|
|
|
1215
1215
|
_,
|
|
1216
1216
|
i
|
|
1217
1217
|
]
|
|
1218
|
-
),
|
|
1218
|
+
), Ge = d(() => {
|
|
1219
1219
|
m(void 0);
|
|
1220
1220
|
}, []);
|
|
1221
1221
|
return {
|
|
@@ -1226,9 +1226,9 @@ const Tr = (e) => {
|
|
|
1226
1226
|
handleDragLeave: B,
|
|
1227
1227
|
handleDragOver: Q,
|
|
1228
1228
|
handleDrop: ee,
|
|
1229
|
-
clearError:
|
|
1230
|
-
handleUpload:
|
|
1231
|
-
openFileDialog:
|
|
1229
|
+
clearError: Ge,
|
|
1230
|
+
handleUpload: se,
|
|
1231
|
+
openFileDialog: re,
|
|
1232
1232
|
openArchiveDialog: qe,
|
|
1233
1233
|
fileInputRef: g,
|
|
1234
1234
|
uploadConflictingFiles: U,
|
|
@@ -1236,20 +1236,20 @@ const Tr = (e) => {
|
|
|
1236
1236
|
hasActiveUploadConflictRef: X,
|
|
1237
1237
|
openUploadConflictResolution: z,
|
|
1238
1238
|
closeUploadConflictResolution: oe,
|
|
1239
|
-
handleUploadConflictReplace:
|
|
1240
|
-
handleUploadConflictDuplicate:
|
|
1241
|
-
handleUploadConflictCancel:
|
|
1239
|
+
handleUploadConflictReplace: pe,
|
|
1240
|
+
handleUploadConflictDuplicate: Ae,
|
|
1241
|
+
handleUploadConflictCancel: Le,
|
|
1242
1242
|
handleUploadConflictDecideForEach: P
|
|
1243
1243
|
};
|
|
1244
|
-
},
|
|
1245
|
-
hiddenItemWarning: `${
|
|
1246
|
-
},
|
|
1244
|
+
}, Qa = vs(void 0), Ja = {
|
|
1245
|
+
hiddenItemWarning: `${Jo.Warning}__A dot at the start of the name will make the item hidden`
|
|
1246
|
+
}, es = {
|
|
1247
1247
|
consecutiveDotsError: "Name cannot contain consecutive dots"
|
|
1248
1248
|
}, zr = {
|
|
1249
1249
|
emptyName: "Name cannot be empty",
|
|
1250
1250
|
duplicateName: "An item with this name already exists",
|
|
1251
|
-
hiddenItemWarning:
|
|
1252
|
-
consecutiveDotsError:
|
|
1251
|
+
hiddenItemWarning: Ja.hiddenItemWarning,
|
|
1252
|
+
consecutiveDotsError: es.consecutiveDotsError
|
|
1253
1253
|
};
|
|
1254
1254
|
function Br(e) {
|
|
1255
1255
|
let t = e.length;
|
|
@@ -1264,7 +1264,7 @@ function Hr(e) {
|
|
|
1264
1264
|
const t = e.lastIndexOf(".");
|
|
1265
1265
|
return t === -1 || t === 0 ? e : e.substring(0, t);
|
|
1266
1266
|
}
|
|
1267
|
-
function
|
|
1267
|
+
function Oa(e) {
|
|
1268
1268
|
const t = e.lastIndexOf(".");
|
|
1269
1269
|
return t === -1 || t === 0 ? "" : e.substring(t);
|
|
1270
1270
|
}
|
|
@@ -1282,7 +1282,7 @@ const Ur = ({
|
|
|
1282
1282
|
[o]
|
|
1283
1283
|
), l = H(() => n?.path, [n]), h = d(
|
|
1284
1284
|
(N) => {
|
|
1285
|
-
const m =
|
|
1285
|
+
const m = Rt(e, N);
|
|
1286
1286
|
m && r(m);
|
|
1287
1287
|
},
|
|
1288
1288
|
[e]
|
|
@@ -1297,7 +1297,7 @@ const Ur = ({
|
|
|
1297
1297
|
const m = n.nodeType === O.ITEM;
|
|
1298
1298
|
let g = N.trim();
|
|
1299
1299
|
if (m) {
|
|
1300
|
-
const u =
|
|
1300
|
+
const u = Oa(n.name);
|
|
1301
1301
|
u && !g.endsWith(u) && (g = g + u);
|
|
1302
1302
|
}
|
|
1303
1303
|
if (g === n.name) {
|
|
@@ -1332,12 +1332,12 @@ const Ur = ({
|
|
|
1332
1332
|
const x = m.nodeType === O.ITEM;
|
|
1333
1333
|
let b = g;
|
|
1334
1334
|
if (x) {
|
|
1335
|
-
const u =
|
|
1335
|
+
const u = Oa(m.name);
|
|
1336
1336
|
u && !b.endsWith(u) && (b = b + u);
|
|
1337
1337
|
}
|
|
1338
1338
|
const f = m.parentPath;
|
|
1339
1339
|
if (f) {
|
|
1340
|
-
const u =
|
|
1340
|
+
const u = Rt(e, f);
|
|
1341
1341
|
if (u && new Set(
|
|
1342
1342
|
(u.items ?? []).filter((E) => E.path !== m.path).map((E) => E.name.toLowerCase())
|
|
1343
1343
|
).has(b.toLowerCase()))
|
|
@@ -1361,7 +1361,7 @@ const Ur = ({
|
|
|
1361
1361
|
renameValidateHandler: D,
|
|
1362
1362
|
getDisplayName: p
|
|
1363
1363
|
};
|
|
1364
|
-
},
|
|
1364
|
+
}, ts = (e) => {
|
|
1365
1365
|
const [t, o] = L(e?.expandedPaths ?? /* @__PURE__ */ new Set()), s = H(
|
|
1366
1366
|
() => !!e?.onExpandedPathsChange,
|
|
1367
1367
|
[e?.onExpandedPathsChange]
|
|
@@ -1422,7 +1422,7 @@ const Ur = ({
|
|
|
1422
1422
|
key: "new-folder",
|
|
1423
1423
|
label: e.newFolder.label,
|
|
1424
1424
|
icon: e?.newFolder?.icon !== void 0 ? e?.newFolder?.icon : /* @__PURE__ */ a(
|
|
1425
|
-
|
|
1425
|
+
is,
|
|
1426
1426
|
{
|
|
1427
1427
|
...A,
|
|
1428
1428
|
className: "text-secondary"
|
|
@@ -1434,14 +1434,14 @@ const Ur = ({
|
|
|
1434
1434
|
}), e.newItem && c.push({
|
|
1435
1435
|
key: "new-item",
|
|
1436
1436
|
label: e.newItem.label,
|
|
1437
|
-
icon: e?.newItem?.icon !== void 0 ? e?.newItem?.icon : /* @__PURE__ */ a(
|
|
1437
|
+
icon: e?.newItem?.icon !== void 0 ? e?.newItem?.icon : /* @__PURE__ */ a(ls, { ...A, className: "text-secondary" }),
|
|
1438
1438
|
onClick: () => {
|
|
1439
1439
|
r && r();
|
|
1440
1440
|
}
|
|
1441
1441
|
}), e.uploadFiles && c.push({
|
|
1442
1442
|
key: "upload-file",
|
|
1443
1443
|
label: e.uploadFiles.label,
|
|
1444
|
-
icon: e?.uploadFiles?.icon !== void 0 ? e?.uploadFiles?.icon : /* @__PURE__ */ a(
|
|
1444
|
+
icon: e?.uploadFiles?.icon !== void 0 ? e?.uploadFiles?.icon : /* @__PURE__ */ a(cs, { ...A, className: "text-secondary" }),
|
|
1445
1445
|
onClick: () => {
|
|
1446
1446
|
o && o();
|
|
1447
1447
|
}
|
|
@@ -1449,7 +1449,7 @@ const Ur = ({
|
|
|
1449
1449
|
key: "upload-archive",
|
|
1450
1450
|
label: e.uploadArchive.label,
|
|
1451
1451
|
icon: e?.uploadArchive?.icon !== void 0 ? e?.uploadArchive?.icon : /* @__PURE__ */ a(
|
|
1452
|
-
|
|
1452
|
+
ds,
|
|
1453
1453
|
{
|
|
1454
1454
|
...A,
|
|
1455
1455
|
className: "text-secondary"
|
|
@@ -1469,7 +1469,7 @@ const Ur = ({
|
|
|
1469
1469
|
() => l?.length > 0,
|
|
1470
1470
|
[l]
|
|
1471
1471
|
), v = H(
|
|
1472
|
-
() => !t?.permissions?.includes(
|
|
1472
|
+
() => !t?.permissions?.includes(jt.WRITE) || !!i,
|
|
1473
1473
|
[t, i]
|
|
1474
1474
|
);
|
|
1475
1475
|
return {
|
|
@@ -1480,8 +1480,8 @@ const Ur = ({
|
|
|
1480
1480
|
}, Vr = {
|
|
1481
1481
|
emptyName: "Folder name cannot be empty",
|
|
1482
1482
|
duplicateName: "A folder with this name already exists",
|
|
1483
|
-
hiddenItemWarning:
|
|
1484
|
-
consecutiveDotsError:
|
|
1483
|
+
hiddenItemWarning: Ja.hiddenItemWarning,
|
|
1484
|
+
consecutiveDotsError: es.consecutiveDotsError
|
|
1485
1485
|
}, $r = ({
|
|
1486
1486
|
currentFolder: e,
|
|
1487
1487
|
onCreateFolder: t,
|
|
@@ -1490,7 +1490,7 @@ const Ur = ({
|
|
|
1490
1490
|
items: n = []
|
|
1491
1491
|
}) => {
|
|
1492
1492
|
const [r, i] = L(!1), [l, h] = L(null), [v, c] = L(
|
|
1493
|
-
|
|
1493
|
+
$e.Folder
|
|
1494
1494
|
), [D, p] = L(null), [N, m] = L(
|
|
1495
1495
|
null
|
|
1496
1496
|
), [g, x] = L(""), b = Ce(e?.path), f = H(
|
|
@@ -1500,10 +1500,10 @@ const Ur = ({
|
|
|
1500
1500
|
}),
|
|
1501
1501
|
[s]
|
|
1502
1502
|
), u = H(() => {
|
|
1503
|
-
if (v ===
|
|
1503
|
+
if (v === $e.Folder)
|
|
1504
1504
|
return e;
|
|
1505
|
-
if (v ===
|
|
1506
|
-
const k =
|
|
1505
|
+
if (v === $e.Sibling && D) {
|
|
1506
|
+
const k = Ut(n, D.parentPath || "");
|
|
1507
1507
|
return {
|
|
1508
1508
|
path: D.parentPath,
|
|
1509
1509
|
items: k?.items || [],
|
|
@@ -1512,7 +1512,7 @@ const Ur = ({
|
|
|
1512
1512
|
folderId: ""
|
|
1513
1513
|
};
|
|
1514
1514
|
}
|
|
1515
|
-
return v ===
|
|
1515
|
+
return v === $e.Child ? D : e;
|
|
1516
1516
|
}, [v, D, e, n]);
|
|
1517
1517
|
Ne(() => {
|
|
1518
1518
|
const k = u?.path;
|
|
@@ -1523,16 +1523,16 @@ const Ur = ({
|
|
|
1523
1523
|
b.current = e?.path || "/";
|
|
1524
1524
|
const k = `__new_folder_${Date.now()}`, _ = (e?.items ?? []).filter(
|
|
1525
1525
|
(z) => z.nodeType === O.FOLDER
|
|
1526
|
-
), V =
|
|
1527
|
-
h(k), x(V), i(!0), c(
|
|
1526
|
+
), V = mn(_);
|
|
1527
|
+
h(k), x(V), i(!0), c($e.Folder), p(e || null);
|
|
1528
1528
|
}, [r, e]), E = d(
|
|
1529
1529
|
(k) => {
|
|
1530
1530
|
if (r) return;
|
|
1531
1531
|
b.current = k?.parentPath || "/";
|
|
1532
|
-
const _ = `__new_folder_${Date.now()}`, z = (
|
|
1532
|
+
const _ = `__new_folder_${Date.now()}`, z = (Ut(n, k?.parentPath || "/")?.items ?? []).filter(
|
|
1533
1533
|
(ge) => ge.nodeType === O.FOLDER
|
|
1534
|
-
), j =
|
|
1535
|
-
x(j), h(_), i(!0), c(
|
|
1534
|
+
), j = mn(z);
|
|
1535
|
+
x(j), h(_), i(!0), c($e.Sibling), p(k), m(k?.parentPath || "/");
|
|
1536
1536
|
},
|
|
1537
1537
|
[r, n]
|
|
1538
1538
|
), C = d(
|
|
@@ -1541,18 +1541,18 @@ const Ur = ({
|
|
|
1541
1541
|
b.current = k.path;
|
|
1542
1542
|
const _ = `__new_folder_${Date.now()}`, V = (k?.items ?? []).filter(
|
|
1543
1543
|
(j) => j.nodeType === O.FOLDER
|
|
1544
|
-
), z =
|
|
1545
|
-
x(z), h(_), i(!0), c(
|
|
1544
|
+
), z = mn(V);
|
|
1545
|
+
x(z), h(_), i(!0), c($e.Child), p(k), m(k?.path || "/");
|
|
1546
1546
|
},
|
|
1547
1547
|
[r]
|
|
1548
1548
|
), T = d(
|
|
1549
1549
|
(k) => {
|
|
1550
1550
|
if (r) return;
|
|
1551
1551
|
b.current = k?.parentPath || "/";
|
|
1552
|
-
const V = (
|
|
1552
|
+
const V = (Ut(n, k?.parentPath || "/")?.items ?? []).filter(
|
|
1553
1553
|
(j) => j.nodeType === O.FOLDER
|
|
1554
|
-
), z =
|
|
1555
|
-
x(z), c(
|
|
1554
|
+
), z = mn(V);
|
|
1555
|
+
x(z), c($e.Sibling), p(k), m(k?.parentPath || "/"), i(!0);
|
|
1556
1556
|
},
|
|
1557
1557
|
[r, n]
|
|
1558
1558
|
), F = d(
|
|
@@ -1561,12 +1561,12 @@ const Ur = ({
|
|
|
1561
1561
|
b.current = k.path;
|
|
1562
1562
|
const _ = (k?.items ?? []).filter(
|
|
1563
1563
|
(z) => z.nodeType === O.FOLDER
|
|
1564
|
-
), V =
|
|
1565
|
-
x(V), c(
|
|
1564
|
+
), V = mn(_);
|
|
1565
|
+
x(V), c($e.Child), p(k), m(k?.path || "/"), i(!0);
|
|
1566
1566
|
},
|
|
1567
1567
|
[r]
|
|
1568
1568
|
), U = d(() => {
|
|
1569
|
-
i(!1), h(null), c(
|
|
1569
|
+
i(!1), h(null), c($e.Folder), p(null), m(null), b.current = void 0, x("");
|
|
1570
1570
|
}, []), G = d(
|
|
1571
1571
|
(k) => {
|
|
1572
1572
|
const _ = k.trim();
|
|
@@ -1594,13 +1594,13 @@ const Ur = ({
|
|
|
1594
1594
|
if (!_)
|
|
1595
1595
|
return;
|
|
1596
1596
|
U();
|
|
1597
|
-
const z = `${u?.path ?? "/"}/${_}`, j = `${z}/${
|
|
1598
|
-
fileContent: new File([],
|
|
1597
|
+
const z = `${u?.path ?? "/"}/${_}`, j = `${z}/${qo}`, ue = {
|
|
1598
|
+
fileContent: new File([], qo, {
|
|
1599
1599
|
type: "text/plain"
|
|
1600
1600
|
}),
|
|
1601
|
-
name:
|
|
1601
|
+
name: qo
|
|
1602
1602
|
};
|
|
1603
|
-
t && await t(
|
|
1603
|
+
t && await t(ue, z, j);
|
|
1604
1604
|
},
|
|
1605
1605
|
[u, t, U]
|
|
1606
1606
|
);
|
|
@@ -1642,9 +1642,9 @@ function Zr(e) {
|
|
|
1642
1642
|
}
|
|
1643
1643
|
return o(e), t;
|
|
1644
1644
|
}
|
|
1645
|
-
function
|
|
1646
|
-
const o =
|
|
1647
|
-
return e.filter((s) =>
|
|
1645
|
+
function Ma(e, t) {
|
|
1646
|
+
const o = Gt(t);
|
|
1647
|
+
return e.filter((s) => Gt(s.name).includes(o));
|
|
1648
1648
|
}
|
|
1649
1649
|
function Kr({
|
|
1650
1650
|
onSearchFiles: e,
|
|
@@ -1695,12 +1695,12 @@ function Kr({
|
|
|
1695
1695
|
const E = H(() => {
|
|
1696
1696
|
if (e) {
|
|
1697
1697
|
const T = n ? N.current : s;
|
|
1698
|
-
return !x || T.length === 0 ? T :
|
|
1698
|
+
return !x || T.length === 0 ? T : Ma(T, x);
|
|
1699
1699
|
}
|
|
1700
1700
|
if (!x || !l.length)
|
|
1701
1701
|
return [];
|
|
1702
1702
|
const C = Zr(l);
|
|
1703
|
-
return
|
|
1703
|
+
return Ma(C, x);
|
|
1704
1704
|
}, [
|
|
1705
1705
|
e,
|
|
1706
1706
|
s,
|
|
@@ -1776,16 +1776,16 @@ const qr = ({
|
|
|
1776
1776
|
onDownloadFiles: _,
|
|
1777
1777
|
onRenameValidate: V,
|
|
1778
1778
|
renameValidationMessages: z,
|
|
1779
|
-
forbiddenSymbolsRegExp: j =
|
|
1779
|
+
forbiddenSymbolsRegExp: j = Rs,
|
|
1780
1780
|
forbiddenSymbolsTooltip: ge,
|
|
1781
|
-
skipForbiddenSymbolsCheckForActions:
|
|
1781
|
+
skipForbiddenSymbolsCheckForActions: ue,
|
|
1782
1782
|
onUploadFiles: be,
|
|
1783
1783
|
onValidateUpload: De,
|
|
1784
1784
|
uploadEnabled: ne,
|
|
1785
|
-
uploadValidationMessages:
|
|
1786
|
-
maxFileSize:
|
|
1787
|
-
onUploadArchive:
|
|
1788
|
-
prepareUploadFileName:
|
|
1785
|
+
uploadValidationMessages: se,
|
|
1786
|
+
maxFileSize: pe,
|
|
1787
|
+
onUploadArchive: Ae,
|
|
1788
|
+
prepareUploadFileName: Le,
|
|
1789
1789
|
onCreateFolder: P,
|
|
1790
1790
|
onCreateFolderValidate: oe,
|
|
1791
1791
|
folderCreationValidationMessages: we,
|
|
@@ -1793,66 +1793,66 @@ const qr = ({
|
|
|
1793
1793
|
onGetInfo: Q,
|
|
1794
1794
|
onUnshareFiles: ee,
|
|
1795
1795
|
onRemoveFilesAccess: Ie,
|
|
1796
|
-
actionsRef:
|
|
1796
|
+
actionsRef: re,
|
|
1797
1797
|
sharedByMePaths: qe,
|
|
1798
|
-
onSearchFiles:
|
|
1798
|
+
onSearchFiles: Ge,
|
|
1799
1799
|
searchResults: R,
|
|
1800
1800
|
searchInProgress: M,
|
|
1801
1801
|
clearSearchResults: W,
|
|
1802
1802
|
allowedFileTypes: q,
|
|
1803
1803
|
maxSelectableFileSize: $,
|
|
1804
|
-
getDisabledTooltip:
|
|
1804
|
+
getDisabledTooltip: le,
|
|
1805
1805
|
fileTooLargeTooltip: ye,
|
|
1806
1806
|
unsupportedFileTypeTooltip: Te,
|
|
1807
|
-
emptyStateIcon:
|
|
1807
|
+
emptyStateIcon: ce,
|
|
1808
1808
|
emptyStateTitle: J,
|
|
1809
|
-
emptyStateDescription:
|
|
1810
|
-
searchEmptyStateTitle:
|
|
1811
|
-
sharedWithMeIds:
|
|
1809
|
+
emptyStateDescription: _e,
|
|
1810
|
+
searchEmptyStateTitle: xt,
|
|
1811
|
+
sharedWithMeIds: ze,
|
|
1812
1812
|
onFolderPopupPathChange: ot,
|
|
1813
1813
|
onManagePermissions: ke,
|
|
1814
|
-
onPreview:
|
|
1815
|
-
onOpenInNewTab:
|
|
1816
|
-
previewExtensions:
|
|
1817
|
-
isRenameFileAvailable:
|
|
1818
|
-
isDuplicateFolderAvailable:
|
|
1819
|
-
customUploadFileAction:
|
|
1820
|
-
customCreateNewItemAction:
|
|
1821
|
-
customDuplicateAction:
|
|
1822
|
-
customDeleteItemsAction:
|
|
1823
|
-
customDownloadItemsAction:
|
|
1814
|
+
onPreview: ao,
|
|
1815
|
+
onOpenInNewTab: so,
|
|
1816
|
+
previewExtensions: ro,
|
|
1817
|
+
isRenameFileAvailable: io,
|
|
1818
|
+
isDuplicateFolderAvailable: lo,
|
|
1819
|
+
customUploadFileAction: It,
|
|
1820
|
+
customCreateNewItemAction: Zt,
|
|
1821
|
+
customDuplicateAction: Ft,
|
|
1822
|
+
customDeleteItemsAction: Tn,
|
|
1823
|
+
customDownloadItemsAction: Rn,
|
|
1824
1824
|
customBreakpointRef: at,
|
|
1825
|
-
gridClassName:
|
|
1826
|
-
nonClickableTableColumns:
|
|
1827
|
-
hideSearchPathItemName:
|
|
1828
|
-
showHiddenFileSwitcherInDestinationPopup:
|
|
1829
|
-
showCreateFolderButtonInDestinationPopup:
|
|
1825
|
+
gridClassName: St,
|
|
1826
|
+
nonClickableTableColumns: xn,
|
|
1827
|
+
hideSearchPathItemName: In,
|
|
1828
|
+
showHiddenFileSwitcherInDestinationPopup: co,
|
|
1829
|
+
showCreateFolderButtonInDestinationPopup: ho,
|
|
1830
1830
|
autoSelectUploadedItems: st = !1,
|
|
1831
1831
|
maxNewFolderDepth: Fe,
|
|
1832
|
-
onNewFolderDepthExceeded:
|
|
1833
|
-
initialUploadFilesOpen:
|
|
1832
|
+
onNewFolderDepthExceeded: Kt,
|
|
1833
|
+
initialUploadFilesOpen: Fn
|
|
1834
1834
|
}) => {
|
|
1835
1835
|
const {
|
|
1836
1836
|
selectedPaths: Ye,
|
|
1837
1837
|
clearSelection: Qe,
|
|
1838
|
-
setSelectedPaths:
|
|
1838
|
+
setSelectedPaths: pt
|
|
1839
1839
|
} = Xr({
|
|
1840
1840
|
selectedPaths: l,
|
|
1841
1841
|
defaultSelectedPaths: h,
|
|
1842
1842
|
onSelectedPathsChange: v
|
|
1843
|
-
}),
|
|
1843
|
+
}), Sn = Ce(!1), rt = Ce(null), uo = d(
|
|
1844
1844
|
(I, Z, te) => {
|
|
1845
1845
|
if (st) {
|
|
1846
|
-
const { parent: tt, name:
|
|
1846
|
+
const { parent: tt, name: Xo } = Tr(Z);
|
|
1847
1847
|
rt.current = {
|
|
1848
|
-
fileNames: /* @__PURE__ */ new Set([
|
|
1848
|
+
fileNames: /* @__PURE__ */ new Set([Xo]),
|
|
1849
1849
|
destinationFolder: tt
|
|
1850
1850
|
};
|
|
1851
1851
|
}
|
|
1852
1852
|
P?.(I, Z, te);
|
|
1853
1853
|
},
|
|
1854
1854
|
[P, st]
|
|
1855
|
-
),
|
|
1855
|
+
), po = d(
|
|
1856
1856
|
(I, Z) => {
|
|
1857
1857
|
st && (rt.current = {
|
|
1858
1858
|
fileNames: new Set(I.map((te) => te.name)),
|
|
@@ -1860,92 +1860,92 @@ const qr = ({
|
|
|
1860
1860
|
}), be?.(I, Z);
|
|
1861
1861
|
},
|
|
1862
1862
|
[be, st]
|
|
1863
|
-
),
|
|
1863
|
+
), je = d(
|
|
1864
1864
|
(I, Z, te) => {
|
|
1865
1865
|
st && (rt.current = {
|
|
1866
1866
|
fileNames: /* @__PURE__ */ new Set([Z]),
|
|
1867
1867
|
destinationFolder: te
|
|
1868
|
-
}),
|
|
1868
|
+
}), Ae?.(I, Z, te);
|
|
1869
1869
|
},
|
|
1870
|
-
[
|
|
1871
|
-
),
|
|
1870
|
+
[Ae, st]
|
|
1871
|
+
), En = H(() => {
|
|
1872
1872
|
const I = /* @__PURE__ */ new Map();
|
|
1873
1873
|
return R?.forEach((Z) => {
|
|
1874
1874
|
I.set(Z.path, Z);
|
|
1875
1875
|
}), I;
|
|
1876
|
-
}, [R]),
|
|
1877
|
-
(I) =>
|
|
1878
|
-
[o,
|
|
1879
|
-
),
|
|
1876
|
+
}, [R]), ft = d(
|
|
1877
|
+
(I) => Rt(o, I) ?? En.get(I),
|
|
1878
|
+
[o, En]
|
|
1879
|
+
), fo = H(() => {
|
|
1880
1880
|
const I = /* @__PURE__ */ new Map();
|
|
1881
1881
|
return Ye.forEach((Z) => {
|
|
1882
|
-
const te =
|
|
1882
|
+
const te = ft(Z);
|
|
1883
1883
|
te && I.set(Z, te);
|
|
1884
1884
|
}), I;
|
|
1885
|
-
}, [Ye,
|
|
1885
|
+
}, [Ye, ft]);
|
|
1886
1886
|
Ne(() => {
|
|
1887
1887
|
if (Ye.size === 0) return;
|
|
1888
1888
|
let I = !1;
|
|
1889
1889
|
for (const Z of Ye)
|
|
1890
|
-
if (!
|
|
1890
|
+
if (!ft(Z)) {
|
|
1891
1891
|
I = !0;
|
|
1892
1892
|
break;
|
|
1893
1893
|
}
|
|
1894
1894
|
if (I) {
|
|
1895
1895
|
const Z = /* @__PURE__ */ new Set();
|
|
1896
1896
|
for (const te of Ye)
|
|
1897
|
-
|
|
1898
|
-
|
|
1897
|
+
ft(te) && Z.add(te);
|
|
1898
|
+
pt(Z);
|
|
1899
1899
|
}
|
|
1900
|
-
}, [Ye,
|
|
1901
|
-
const { currentPath:
|
|
1900
|
+
}, [Ye, ft, pt]);
|
|
1901
|
+
const { currentPath: de, setCurrentPath: Ze, handlePathChange: Je } = kr({
|
|
1902
1902
|
path: n,
|
|
1903
1903
|
defaultPath: r,
|
|
1904
1904
|
onPathChange: C,
|
|
1905
1905
|
onSelectionClear: Qe
|
|
1906
|
-
}),
|
|
1906
|
+
}), mt = H(() => {
|
|
1907
1907
|
const {
|
|
1908
1908
|
showFiles: I = !0,
|
|
1909
1909
|
showFolders: Z = !0,
|
|
1910
1910
|
...te
|
|
1911
1911
|
} = b || {};
|
|
1912
1912
|
return { showFiles: I, showFolders: Z, ...te };
|
|
1913
|
-
}, [b]), it =
|
|
1913
|
+
}, [b]), it = mt.showFiles, Ct = mt.showFolders, [An, Pn] = L(), kn = S?.destinationFolderPath ?? An, lt = d(
|
|
1914
1914
|
(I) => {
|
|
1915
|
-
S?.setDestinationFolderPath ? S.setDestinationFolderPath(I) :
|
|
1915
|
+
S?.setDestinationFolderPath ? S.setDestinationFolderPath(I) : Pn(I);
|
|
1916
1916
|
},
|
|
1917
1917
|
[S]
|
|
1918
|
-
), { areHiddenFilesVisible:
|
|
1918
|
+
), { areHiddenFilesVisible: Et, toggleHiddenFilesVisibility: At } = Er({
|
|
1919
1919
|
showHiddenFiles: c,
|
|
1920
1920
|
onShowHiddenFilesChange: D
|
|
1921
|
-
}), { isTreeCollapsed:
|
|
1921
|
+
}), { isTreeCollapsed: mo, toggleTreeCollapse: Co, setIsTreeCollapsed: go } = Ar({
|
|
1922
1922
|
collapsed: p?.collapsed,
|
|
1923
1923
|
onCollapseChange: p?.onCollapseChange
|
|
1924
1924
|
}), {
|
|
1925
|
-
renamedPath:
|
|
1926
|
-
renamedItem:
|
|
1927
|
-
renameHandler:
|
|
1928
|
-
renameSaveHandler:
|
|
1929
|
-
renameCancelHandler:
|
|
1930
|
-
renameValidateHandler:
|
|
1931
|
-
getDisplayName:
|
|
1925
|
+
renamedPath: vo,
|
|
1926
|
+
renamedItem: wo,
|
|
1927
|
+
renameHandler: Xt,
|
|
1928
|
+
renameSaveHandler: On,
|
|
1929
|
+
renameCancelHandler: Mn,
|
|
1930
|
+
renameValidateHandler: yo,
|
|
1931
|
+
getDisplayName: qt
|
|
1932
1932
|
} = Ur({
|
|
1933
1933
|
items: o,
|
|
1934
1934
|
onRenameValidate: V,
|
|
1935
1935
|
validationMessages: z,
|
|
1936
1936
|
onMoveToFiles: X
|
|
1937
1937
|
}), {
|
|
1938
|
-
isSearchMode:
|
|
1939
|
-
searchValue:
|
|
1940
|
-
effectiveSearchValue:
|
|
1941
|
-
setSearchValue:
|
|
1942
|
-
handleSearchChange:
|
|
1943
|
-
handleSearchClear:
|
|
1944
|
-
searchResultsRows:
|
|
1938
|
+
isSearchMode: gt,
|
|
1939
|
+
searchValue: No,
|
|
1940
|
+
effectiveSearchValue: Yt,
|
|
1941
|
+
setSearchValue: Pt,
|
|
1942
|
+
handleSearchChange: Oe,
|
|
1943
|
+
handleSearchClear: fe,
|
|
1944
|
+
searchResultsRows: vt
|
|
1945
1945
|
} = Kr({
|
|
1946
|
-
onSearchFiles:
|
|
1946
|
+
onSearchFiles: Ge,
|
|
1947
1947
|
clearSearchResults: W,
|
|
1948
|
-
currentPath:
|
|
1948
|
+
currentPath: de,
|
|
1949
1949
|
searchResults: R,
|
|
1950
1950
|
searchInProgress: M,
|
|
1951
1951
|
navigationPanelValue: m?.value,
|
|
@@ -1953,35 +1953,35 @@ const qr = ({
|
|
|
1953
1953
|
allItems: o,
|
|
1954
1954
|
// The tab row moved into the folders panel, next to the tree it scopes.
|
|
1955
1955
|
activeTab: p?.activeTab
|
|
1956
|
-
}),
|
|
1957
|
-
() =>
|
|
1958
|
-
[o,
|
|
1959
|
-
),
|
|
1956
|
+
}), ae = H(
|
|
1957
|
+
() => Ut(o, de) ?? o[0],
|
|
1958
|
+
[o, de]
|
|
1959
|
+
), Ee = d(
|
|
1960
1960
|
(I, Z) => !Z || !I ? !1 : Ir(I.path) > Z,
|
|
1961
1961
|
[]
|
|
1962
|
-
),
|
|
1963
|
-
|
|
1964
|
-
}, [
|
|
1965
|
-
handleCopyTo:
|
|
1966
|
-
handleMoveTo:
|
|
1967
|
-
handleDuplicate:
|
|
1968
|
-
handleOpenDestinationFolderPopup:
|
|
1969
|
-
handleCloseDestinationFolderPopup:
|
|
1970
|
-
openDestinationFolderPopup:
|
|
1971
|
-
handleSetCopiedFiles:
|
|
1972
|
-
handleSetMovedFiles:
|
|
1973
|
-
destinationFolderMode:
|
|
1974
|
-
destinationFolderTitle:
|
|
1975
|
-
conflictingFiles:
|
|
1976
|
-
conflictResolutionOpen:
|
|
1977
|
-
closeConflictResolution:
|
|
1978
|
-
handleConflictReplace:
|
|
1979
|
-
handleConflictDuplicate:
|
|
1980
|
-
handleConflictCancel:
|
|
1981
|
-
handleConflictDecideForEach:
|
|
1982
|
-
sourceFolder:
|
|
1962
|
+
), Me = d(() => {
|
|
1963
|
+
Kt?.();
|
|
1964
|
+
}, [Kt]), {
|
|
1965
|
+
handleCopyTo: kt,
|
|
1966
|
+
handleMoveTo: Ln,
|
|
1967
|
+
handleDuplicate: Ot,
|
|
1968
|
+
handleOpenDestinationFolderPopup: va,
|
|
1969
|
+
handleCloseDestinationFolderPopup: wa,
|
|
1970
|
+
openDestinationFolderPopup: Qt,
|
|
1971
|
+
handleSetCopiedFiles: bo,
|
|
1972
|
+
handleSetMovedFiles: Do,
|
|
1973
|
+
destinationFolderMode: To,
|
|
1974
|
+
destinationFolderTitle: Ro,
|
|
1975
|
+
conflictingFiles: xo,
|
|
1976
|
+
conflictResolutionOpen: Io,
|
|
1977
|
+
closeConflictResolution: Fo,
|
|
1978
|
+
handleConflictReplace: So,
|
|
1979
|
+
handleConflictDuplicate: Mt,
|
|
1980
|
+
handleConflictCancel: Jt,
|
|
1981
|
+
handleConflictDecideForEach: Eo,
|
|
1982
|
+
sourceFolder: _n
|
|
1983
1983
|
} = Pr({
|
|
1984
|
-
getDestinationFiles: (I) =>
|
|
1984
|
+
getDestinationFiles: (I) => Ut(o, I)?.items ?? [],
|
|
1985
1985
|
onCopyFiles: G,
|
|
1986
1986
|
onMoveToFiles: X,
|
|
1987
1987
|
onCopySuccess: Qe,
|
|
@@ -1991,161 +1991,161 @@ const qr = ({
|
|
|
1991
1991
|
getMoveHeader: S?.getMoveHeader
|
|
1992
1992
|
});
|
|
1993
1993
|
Ne(() => {
|
|
1994
|
-
|
|
1995
|
-
}, [
|
|
1994
|
+
Qt || lt(void 0);
|
|
1995
|
+
}, [Qt, lt]);
|
|
1996
1996
|
const {
|
|
1997
|
-
deleteConfirmationOpen:
|
|
1998
|
-
itemsToDelete:
|
|
1999
|
-
openDeleteConfirmation:
|
|
2000
|
-
closeDeleteConfirmation:
|
|
2001
|
-
confirmDelete:
|
|
1997
|
+
deleteConfirmationOpen: zn,
|
|
1998
|
+
itemsToDelete: Ao,
|
|
1999
|
+
openDeleteConfirmation: Po,
|
|
2000
|
+
closeDeleteConfirmation: en,
|
|
2001
|
+
confirmDelete: Bn
|
|
2002
2002
|
} = Or({
|
|
2003
2003
|
onDeleteFiles: k,
|
|
2004
2004
|
onDeleteSuccess: Qe
|
|
2005
|
-
}), { handleDownloadFiles:
|
|
2005
|
+
}), { handleDownloadFiles: Wn } = Mr({
|
|
2006
2006
|
onDownloadFiles: _,
|
|
2007
|
-
customDownloadItemsAction:
|
|
2007
|
+
customDownloadItemsAction: Rn,
|
|
2008
2008
|
onDownloadSuccess: Qe
|
|
2009
2009
|
}), {
|
|
2010
|
-
isDragging:
|
|
2011
|
-
isDraggingOverWindow:
|
|
2012
|
-
uploadError:
|
|
2013
|
-
handleDragEnter:
|
|
2014
|
-
handleDragLeave:
|
|
2015
|
-
handleDragOver:
|
|
2016
|
-
handleDrop:
|
|
2017
|
-
clearError:
|
|
2018
|
-
openFileDialog:
|
|
2019
|
-
fileInputRef:
|
|
2020
|
-
openArchiveDialog:
|
|
2021
|
-
uploadConflictingFiles:
|
|
2022
|
-
uploadConflictResolutionOpen:
|
|
2023
|
-
closeUploadConflictResolution:
|
|
2024
|
-
handleUploadConflictReplace:
|
|
2025
|
-
handleUploadConflictDuplicate:
|
|
2026
|
-
handleUploadConflictCancel:
|
|
2027
|
-
handleUploadConflictDecideForEach:
|
|
2010
|
+
isDragging: ko,
|
|
2011
|
+
isDraggingOverWindow: Hn,
|
|
2012
|
+
uploadError: Lt,
|
|
2013
|
+
handleDragEnter: _t,
|
|
2014
|
+
handleDragLeave: Oo,
|
|
2015
|
+
handleDragOver: Un,
|
|
2016
|
+
handleDrop: tn,
|
|
2017
|
+
clearError: Mo,
|
|
2018
|
+
openFileDialog: nn,
|
|
2019
|
+
fileInputRef: Lo,
|
|
2020
|
+
openArchiveDialog: on,
|
|
2021
|
+
uploadConflictingFiles: _o,
|
|
2022
|
+
uploadConflictResolutionOpen: zo,
|
|
2023
|
+
closeUploadConflictResolution: Bo,
|
|
2024
|
+
handleUploadConflictReplace: Wo,
|
|
2025
|
+
handleUploadConflictDuplicate: Gn,
|
|
2026
|
+
handleUploadConflictCancel: Vn,
|
|
2027
|
+
handleUploadConflictDecideForEach: $n
|
|
2028
2028
|
} = _r({
|
|
2029
|
-
onUploadFiles:
|
|
2029
|
+
onUploadFiles: po,
|
|
2030
2030
|
onValidateUpload: De,
|
|
2031
|
-
maxFileSize:
|
|
2032
|
-
onUploadArchive:
|
|
2033
|
-
prepareUploadFileName:
|
|
2031
|
+
maxFileSize: pe,
|
|
2032
|
+
onUploadArchive: je,
|
|
2033
|
+
prepareUploadFileName: Le,
|
|
2034
2034
|
allowedFileTypes: q,
|
|
2035
|
-
validationMessages:
|
|
2035
|
+
validationMessages: se,
|
|
2036
2036
|
uploadEnabled: ne,
|
|
2037
|
-
currentFolder:
|
|
2038
|
-
}),
|
|
2037
|
+
currentFolder: ae
|
|
2038
|
+
}), zt = d(
|
|
2039
2039
|
(I) => {
|
|
2040
|
-
|
|
2041
|
-
const Z =
|
|
2042
|
-
|
|
2040
|
+
fe();
|
|
2041
|
+
const Z = de ?? "", te = ae?.items ?? [];
|
|
2042
|
+
tn(I, Z, te);
|
|
2043
2043
|
},
|
|
2044
|
-
[
|
|
2045
|
-
),
|
|
2046
|
-
|
|
2047
|
-
const I =
|
|
2048
|
-
tn(I, Z);
|
|
2049
|
-
}, [ce, fe, tn, pe]), Uo = d(() => {
|
|
2050
|
-
pe();
|
|
2051
|
-
const I = ce ?? "", Z = fe?.items ?? [];
|
|
2044
|
+
[de, ae, tn, fe]
|
|
2045
|
+
), Ve = d(() => {
|
|
2046
|
+
fe();
|
|
2047
|
+
const I = de ?? "", Z = ae?.items ?? [];
|
|
2052
2048
|
nn(I, Z);
|
|
2053
|
-
}, [
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2049
|
+
}, [de, ae, nn, fe]), Ho = d(() => {
|
|
2050
|
+
fe();
|
|
2051
|
+
const I = de ?? "", Z = ae?.items ?? [];
|
|
2052
|
+
on(I, Z);
|
|
2053
|
+
}, [de, ae, on, fe]), Be = d(() => {
|
|
2054
|
+
fe(), It?.(de, ae);
|
|
2055
|
+
}, [It, de, ae, fe]), Uo = d(() => {
|
|
2056
|
+
fe(), Zt?.(de, ae);
|
|
2057
2057
|
}, [
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
]),
|
|
2058
|
+
Zt,
|
|
2059
|
+
de,
|
|
2060
|
+
ae,
|
|
2061
|
+
fe
|
|
2062
|
+
]), an = d(
|
|
2063
2063
|
(I) => {
|
|
2064
|
-
|
|
2064
|
+
Ft?.(I);
|
|
2065
2065
|
},
|
|
2066
|
-
[
|
|
2066
|
+
[Ft]
|
|
2067
2067
|
), {
|
|
2068
2068
|
isCreatingFolder: et,
|
|
2069
|
-
newFolderTempId:
|
|
2070
|
-
createdFolderPath:
|
|
2071
|
-
newFolderDefaultName:
|
|
2072
|
-
startFolderCreation:
|
|
2073
|
-
startGridSiblingFolderCreation:
|
|
2074
|
-
startTreeSiblingFolderCreation:
|
|
2075
|
-
startGridChildFolderCreation:
|
|
2076
|
-
startTreeChildFolderCreation:
|
|
2077
|
-
cancelFolderCreation:
|
|
2078
|
-
saveFolderCreation:
|
|
2079
|
-
validateFolderName:
|
|
2069
|
+
newFolderTempId: We,
|
|
2070
|
+
createdFolderPath: jn,
|
|
2071
|
+
newFolderDefaultName: wt,
|
|
2072
|
+
startFolderCreation: sn,
|
|
2073
|
+
startGridSiblingFolderCreation: rn,
|
|
2074
|
+
startTreeSiblingFolderCreation: yt,
|
|
2075
|
+
startGridChildFolderCreation: Zn,
|
|
2076
|
+
startTreeChildFolderCreation: Nt,
|
|
2077
|
+
cancelFolderCreation: Go,
|
|
2078
|
+
saveFolderCreation: Vo,
|
|
2079
|
+
validateFolderName: $o
|
|
2080
2080
|
} = $r({
|
|
2081
|
-
currentFolder:
|
|
2082
|
-
onCreateFolder:
|
|
2081
|
+
currentFolder: ae,
|
|
2082
|
+
onCreateFolder: uo,
|
|
2083
2083
|
onValidateFolderName: oe,
|
|
2084
2084
|
validationMessages: we,
|
|
2085
2085
|
items: o
|
|
2086
|
-
}),
|
|
2087
|
-
if (Fe &&
|
|
2088
|
-
|
|
2086
|
+
}), ln = d(() => {
|
|
2087
|
+
if (Fe && Ee(ae, Fe - 1)) {
|
|
2088
|
+
Me();
|
|
2089
2089
|
return;
|
|
2090
2090
|
}
|
|
2091
|
-
|
|
2091
|
+
fe(), sn();
|
|
2092
2092
|
}, [
|
|
2093
|
-
pe,
|
|
2094
|
-
an,
|
|
2095
2093
|
fe,
|
|
2094
|
+
sn,
|
|
2095
|
+
ae,
|
|
2096
2096
|
Fe,
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
]), { newActions:
|
|
2097
|
+
Ee,
|
|
2098
|
+
Me
|
|
2099
|
+
]), { newActions: cn, isNewButtonVisible: jo, isNewButtonDisabled: Zo } = Gr(
|
|
2100
2100
|
{
|
|
2101
2101
|
newActions: f?.newActions,
|
|
2102
|
-
currentFolder:
|
|
2103
|
-
onUploadFiles:
|
|
2104
|
-
onUploadArchive:
|
|
2105
|
-
onCreateFolder:
|
|
2106
|
-
onCreateNewItem:
|
|
2102
|
+
currentFolder: ae,
|
|
2103
|
+
onUploadFiles: It ? Be : Ve,
|
|
2104
|
+
onUploadArchive: Ho,
|
|
2105
|
+
onCreateFolder: ln,
|
|
2106
|
+
onCreateNewItem: Uo,
|
|
2107
2107
|
isNewButtonDisabled: f?.isNewButtonDisabled
|
|
2108
2108
|
}
|
|
2109
|
-
),
|
|
2110
|
-
if (
|
|
2111
|
-
let Y =
|
|
2109
|
+
), dn = H(() => {
|
|
2110
|
+
if (gt) {
|
|
2111
|
+
let Y = vt;
|
|
2112
2112
|
it || (Y = Y.filter(
|
|
2113
|
-
(
|
|
2114
|
-
)),
|
|
2115
|
-
(
|
|
2116
|
-
)),
|
|
2117
|
-
const
|
|
2118
|
-
...
|
|
2119
|
-
id:
|
|
2120
|
-
name:
|
|
2121
|
-
updatedAt:
|
|
2122
|
-
size:
|
|
2123
|
-
contentLength:
|
|
2124
|
-
author:
|
|
2125
|
-
path:
|
|
2126
|
-
nodeType:
|
|
2127
|
-
extension:
|
|
2113
|
+
(he) => he.nodeType !== O.ITEM
|
|
2114
|
+
)), Ct || (Y = Y.filter(
|
|
2115
|
+
(he) => he.nodeType !== O.FOLDER
|
|
2116
|
+
)), Et || (Y = Y.filter((he) => !he.path.split("/").filter(Boolean).some((un) => un.startsWith("."))));
|
|
2117
|
+
const hn = Y.map((he) => ({
|
|
2118
|
+
...he,
|
|
2119
|
+
id: he.id ?? he.path,
|
|
2120
|
+
name: he.name ?? he.path.split("/").pop() ?? "",
|
|
2121
|
+
updatedAt: he.updatedAt,
|
|
2122
|
+
size: he.contentLength,
|
|
2123
|
+
contentLength: he.contentLength,
|
|
2124
|
+
author: he.author,
|
|
2125
|
+
path: he.path,
|
|
2126
|
+
nodeType: he.nodeType,
|
|
2127
|
+
extension: he.extension,
|
|
2128
2128
|
isTemporary: !1,
|
|
2129
|
-
owner:
|
|
2130
|
-
folderId:
|
|
2129
|
+
owner: he.owner,
|
|
2130
|
+
folderId: he.folderId
|
|
2131
2131
|
}));
|
|
2132
|
-
return et &&
|
|
2133
|
-
id:
|
|
2134
|
-
name:
|
|
2132
|
+
return et && We && hn.unshift({
|
|
2133
|
+
id: We,
|
|
2134
|
+
name: wt,
|
|
2135
2135
|
updatedAt: void 0,
|
|
2136
2136
|
author: void 0,
|
|
2137
|
-
path:
|
|
2137
|
+
path: de ?? "/",
|
|
2138
2138
|
nodeType: O.FOLDER,
|
|
2139
2139
|
extension: void 0,
|
|
2140
2140
|
isTemporary: !0,
|
|
2141
2141
|
owner: void 0
|
|
2142
|
-
}),
|
|
2142
|
+
}), hn;
|
|
2143
2143
|
}
|
|
2144
|
-
const I =
|
|
2145
|
-
let te = I ? wr(
|
|
2146
|
-
it || (te = te.filter((Y) => Y.nodeType !== O.ITEM)),
|
|
2144
|
+
const I = Gt(Yt).trim(), Z = ae?.items ?? [];
|
|
2145
|
+
let te = I ? wr(ae) : Z;
|
|
2146
|
+
it || (te = te.filter((Y) => Y.nodeType !== O.ITEM)), Ct || (te = te.filter(
|
|
2147
2147
|
(Y) => Y.nodeType !== O.FOLDER
|
|
2148
|
-
)),
|
|
2148
|
+
)), Et || (te = te.filter((Y) => I ? !Y.path.split("/").filter(Boolean).some((he) => he.startsWith(".")) : !qa(Y)));
|
|
2149
2149
|
const tt = te.map((Y) => ({
|
|
2150
2150
|
...Y,
|
|
2151
2151
|
id: Y.id ?? Y.path,
|
|
@@ -2162,163 +2162,163 @@ const qr = ({
|
|
|
2162
2162
|
contentLength: Y.contentLength,
|
|
2163
2163
|
folderId: Y.folderId
|
|
2164
2164
|
}));
|
|
2165
|
-
if (et &&
|
|
2166
|
-
id:
|
|
2167
|
-
name:
|
|
2165
|
+
if (et && We && !I && tt.unshift({
|
|
2166
|
+
id: We,
|
|
2167
|
+
name: wt,
|
|
2168
2168
|
updatedAt: void 0,
|
|
2169
2169
|
author: void 0,
|
|
2170
|
-
path:
|
|
2170
|
+
path: de ?? "/",
|
|
2171
2171
|
nodeType: O.FOLDER,
|
|
2172
2172
|
extension: void 0,
|
|
2173
2173
|
isTemporary: !0,
|
|
2174
2174
|
owner: void 0
|
|
2175
2175
|
}), !I) return tt;
|
|
2176
|
-
const
|
|
2176
|
+
const Xo = I.split(/\s+/).filter(Boolean);
|
|
2177
2177
|
return tt.filter((Y) => {
|
|
2178
2178
|
if (Y.isTemporary) return !0;
|
|
2179
|
-
const
|
|
2180
|
-
return
|
|
2181
|
-
(
|
|
2179
|
+
const hn = Gt(Y.name), he = Gt(Y.author), Na = vr(Y.extension);
|
|
2180
|
+
return Xo.every(
|
|
2181
|
+
(un) => hn.includes(un) || he.includes(un) || Na.includes(un)
|
|
2182
2182
|
);
|
|
2183
2183
|
});
|
|
2184
2184
|
}, [
|
|
2185
|
-
Ct,
|
|
2186
2185
|
gt,
|
|
2187
|
-
fe,
|
|
2188
|
-
qt,
|
|
2189
|
-
St,
|
|
2190
|
-
et,
|
|
2191
|
-
ze,
|
|
2192
2186
|
vt,
|
|
2187
|
+
ae,
|
|
2188
|
+
Yt,
|
|
2189
|
+
Et,
|
|
2190
|
+
et,
|
|
2191
|
+
We,
|
|
2192
|
+
wt,
|
|
2193
2193
|
it,
|
|
2194
|
-
|
|
2195
|
-
|
|
2194
|
+
Ct,
|
|
2195
|
+
de
|
|
2196
2196
|
]);
|
|
2197
2197
|
Ne(() => {
|
|
2198
2198
|
const I = rt.current;
|
|
2199
2199
|
if (!I) return;
|
|
2200
|
-
if ((
|
|
2200
|
+
if ((de ?? "") !== I.destinationFolder) {
|
|
2201
2201
|
rt.current = null;
|
|
2202
2202
|
return;
|
|
2203
2203
|
}
|
|
2204
|
-
const Z =
|
|
2204
|
+
const Z = Ut(o, I.destinationFolder);
|
|
2205
2205
|
if (!Z?.items) return;
|
|
2206
2206
|
const te = /* @__PURE__ */ new Set();
|
|
2207
2207
|
for (const tt of Z.items)
|
|
2208
2208
|
I.fileNames.has(tt.name) && Rr(tt, q, $) && te.add(tt.path);
|
|
2209
|
-
te.size > 0 && (
|
|
2209
|
+
te.size > 0 && (pt(te), rt.current = null);
|
|
2210
2210
|
}, [
|
|
2211
2211
|
o,
|
|
2212
|
-
|
|
2213
|
-
|
|
2212
|
+
de,
|
|
2213
|
+
pt,
|
|
2214
2214
|
q,
|
|
2215
2215
|
$
|
|
2216
2216
|
]), Ne(() => {
|
|
2217
|
-
!
|
|
2218
|
-
}, [
|
|
2219
|
-
const
|
|
2217
|
+
!Sn.current && Fn && (Ve(), Sn.current = !0);
|
|
2218
|
+
}, [Fn, Ve]);
|
|
2219
|
+
const Kn = d(
|
|
2220
2220
|
(I) => {
|
|
2221
2221
|
Je(I.path);
|
|
2222
2222
|
},
|
|
2223
2223
|
[Je]
|
|
2224
|
-
),
|
|
2224
|
+
), Xn = d(
|
|
2225
2225
|
(I) => {
|
|
2226
2226
|
Je(I);
|
|
2227
2227
|
},
|
|
2228
2228
|
[Je]
|
|
2229
|
-
),
|
|
2229
|
+
), qn = d(
|
|
2230
2230
|
(I) => {
|
|
2231
2231
|
I.nodeType === O.FOLDER ? Je(I.path) : T?.(I);
|
|
2232
2232
|
},
|
|
2233
2233
|
[Je, T]
|
|
2234
|
-
), { expandedPaths: ct, setExpandedPaths:
|
|
2234
|
+
), { expandedPaths: ct, setExpandedPaths: dt } = ts({
|
|
2235
2235
|
expandedPaths: p?.expandedPaths,
|
|
2236
2236
|
onExpandedPathsChange: p?.onExpandedPathsChange
|
|
2237
|
-
}),
|
|
2237
|
+
}), Ko = d(
|
|
2238
2238
|
(I) => {
|
|
2239
2239
|
if (I.length > 0) {
|
|
2240
|
-
if (Fe &&
|
|
2241
|
-
|
|
2240
|
+
if (Fe && Ee(I[0], Fe)) {
|
|
2241
|
+
Me();
|
|
2242
2242
|
return;
|
|
2243
2243
|
}
|
|
2244
|
-
|
|
2244
|
+
fe(), rn(I[0]);
|
|
2245
2245
|
}
|
|
2246
2246
|
},
|
|
2247
2247
|
[
|
|
2248
|
-
|
|
2249
|
-
|
|
2248
|
+
fe,
|
|
2249
|
+
rn,
|
|
2250
2250
|
Fe,
|
|
2251
|
-
|
|
2252
|
-
|
|
2251
|
+
Ee,
|
|
2252
|
+
Me
|
|
2253
2253
|
]
|
|
2254
|
-
),
|
|
2254
|
+
), w = d(
|
|
2255
2255
|
(I) => {
|
|
2256
2256
|
if (I.length > 0) {
|
|
2257
|
-
if (Fe &&
|
|
2258
|
-
|
|
2257
|
+
if (Fe && Ee(I[0], Fe - 1)) {
|
|
2258
|
+
Me();
|
|
2259
2259
|
return;
|
|
2260
2260
|
}
|
|
2261
|
-
|
|
2261
|
+
fe(), Ze(I[0].path), dt(new Set(ct).add(I[0].path || "/")), Zn(I[0]);
|
|
2262
2262
|
}
|
|
2263
2263
|
},
|
|
2264
2264
|
[
|
|
2265
|
-
|
|
2266
|
-
|
|
2265
|
+
fe,
|
|
2266
|
+
Zn,
|
|
2267
2267
|
ct,
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2268
|
+
dt,
|
|
2269
|
+
Ze,
|
|
2270
|
+
Me,
|
|
2271
2271
|
Fe,
|
|
2272
|
-
|
|
2272
|
+
Ee
|
|
2273
2273
|
]
|
|
2274
|
-
),
|
|
2274
|
+
), ie = d(
|
|
2275
2275
|
(I) => {
|
|
2276
2276
|
if (I.length > 0) {
|
|
2277
|
-
if (Fe &&
|
|
2278
|
-
|
|
2277
|
+
if (Fe && Ee(I[0], Fe)) {
|
|
2278
|
+
Me();
|
|
2279
2279
|
return;
|
|
2280
2280
|
}
|
|
2281
|
-
|
|
2281
|
+
fe(), yt(I[0]);
|
|
2282
2282
|
}
|
|
2283
2283
|
},
|
|
2284
2284
|
[
|
|
2285
|
-
|
|
2286
|
-
|
|
2285
|
+
fe,
|
|
2286
|
+
yt,
|
|
2287
2287
|
Fe,
|
|
2288
|
-
|
|
2289
|
-
|
|
2288
|
+
Ee,
|
|
2289
|
+
Me
|
|
2290
2290
|
]
|
|
2291
|
-
),
|
|
2291
|
+
), me = d(
|
|
2292
2292
|
(I) => {
|
|
2293
2293
|
if (I.length > 0) {
|
|
2294
|
-
if (Fe &&
|
|
2295
|
-
|
|
2294
|
+
if (Fe && Ee(I[0], Fe - 1)) {
|
|
2295
|
+
Me();
|
|
2296
2296
|
return;
|
|
2297
2297
|
}
|
|
2298
|
-
|
|
2298
|
+
fe(), Ze(I[0].path), dt(new Set(ct).add(I[0].path || "/")), Nt(I[0]);
|
|
2299
2299
|
}
|
|
2300
2300
|
},
|
|
2301
2301
|
[
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2302
|
+
fe,
|
|
2303
|
+
Nt,
|
|
2304
|
+
Ze,
|
|
2305
2305
|
ct,
|
|
2306
|
-
|
|
2306
|
+
dt,
|
|
2307
2307
|
Fe,
|
|
2308
|
-
|
|
2309
|
-
|
|
2308
|
+
Ee,
|
|
2309
|
+
Me
|
|
2310
2310
|
]
|
|
2311
2311
|
), {
|
|
2312
|
-
isMetadataPopupOpen:
|
|
2313
|
-
selectedFileForMetadata:
|
|
2314
|
-
openMetadataPopup:
|
|
2315
|
-
closeMetadataPopup:
|
|
2316
|
-
} = jr({ onGetInfo: Q }),
|
|
2317
|
-
|
|
2318
|
-
}, [
|
|
2312
|
+
isMetadataPopupOpen: He,
|
|
2313
|
+
selectedFileForMetadata: bt,
|
|
2314
|
+
openMetadataPopup: os,
|
|
2315
|
+
closeMetadataPopup: ya
|
|
2316
|
+
} = jr({ onGetInfo: Q }), as = d(() => {
|
|
2317
|
+
ya(), B?.clearMetadata?.();
|
|
2318
|
+
}, [ya, B]), ss = H(() => {
|
|
2319
2319
|
if (j)
|
|
2320
|
-
return
|
|
2321
|
-
}, [j]),
|
|
2320
|
+
return oo(j);
|
|
2321
|
+
}, [j]), rs = {
|
|
2322
2322
|
className: t,
|
|
2323
2323
|
items: o,
|
|
2324
2324
|
allowedFileTypes: q,
|
|
@@ -2328,158 +2328,158 @@ const qr = ({
|
|
|
2328
2328
|
treeOptions: {
|
|
2329
2329
|
...p,
|
|
2330
2330
|
expandedPaths: ct,
|
|
2331
|
-
onExpandedPathsChange:
|
|
2331
|
+
onExpandedPathsChange: dt
|
|
2332
2332
|
},
|
|
2333
2333
|
showNavigationPanel: N,
|
|
2334
2334
|
navigationPanelOptions: m,
|
|
2335
2335
|
sortOptions: g,
|
|
2336
|
-
gridOptions:
|
|
2336
|
+
gridOptions: mt,
|
|
2337
2337
|
toolbarOptions: f,
|
|
2338
2338
|
bulkActionsToolbarOptions: u,
|
|
2339
2339
|
deleteConfirmationOptions: x,
|
|
2340
2340
|
destinationFolderPopupOptions: {
|
|
2341
2341
|
...S,
|
|
2342
|
-
destinationFolderPath:
|
|
2342
|
+
destinationFolderPath: kn,
|
|
2343
2343
|
setDestinationFolderPath: lt,
|
|
2344
|
-
header:
|
|
2344
|
+
header: Ro,
|
|
2345
2345
|
onCreateFolder: P,
|
|
2346
2346
|
onCreateFolderValidate: oe,
|
|
2347
2347
|
folderCreationValidationMessages: we,
|
|
2348
|
-
sourceFolder:
|
|
2348
|
+
sourceFolder: _n
|
|
2349
2349
|
},
|
|
2350
|
-
currentPath:
|
|
2351
|
-
setCurrentPath:
|
|
2352
|
-
searchValue:
|
|
2353
|
-
effectiveSearchValue:
|
|
2354
|
-
setSearchValue:
|
|
2355
|
-
areHiddenFilesVisible:
|
|
2356
|
-
toggleHiddenFilesVisibility:
|
|
2357
|
-
isTreeCollapsed:
|
|
2358
|
-
toggleTreeCollapse:
|
|
2359
|
-
setIsTreeCollapsed:
|
|
2350
|
+
currentPath: de,
|
|
2351
|
+
setCurrentPath: Ze,
|
|
2352
|
+
searchValue: No,
|
|
2353
|
+
effectiveSearchValue: Yt,
|
|
2354
|
+
setSearchValue: Pt,
|
|
2355
|
+
areHiddenFilesVisible: Et,
|
|
2356
|
+
toggleHiddenFilesVisibility: At,
|
|
2357
|
+
isTreeCollapsed: mo,
|
|
2358
|
+
toggleTreeCollapse: Co,
|
|
2359
|
+
setIsTreeCollapsed: go,
|
|
2360
2360
|
selectedPaths: Ye,
|
|
2361
|
-
selectedFiles:
|
|
2362
|
-
setSelectedPaths:
|
|
2361
|
+
selectedFiles: fo,
|
|
2362
|
+
setSelectedPaths: pt,
|
|
2363
2363
|
clearSelection: Qe,
|
|
2364
|
-
currentFolder:
|
|
2365
|
-
gridRows:
|
|
2366
|
-
handleCopyTo:
|
|
2367
|
-
handleMoveTo:
|
|
2368
|
-
handleDuplicate:
|
|
2369
|
-
handleSetCopiedFiles:
|
|
2370
|
-
handleSetMovedFiles:
|
|
2371
|
-
openDestinationFolderPopup:
|
|
2372
|
-
handleCloseDestinationFolderPopup:
|
|
2373
|
-
handleOpenDestinationFolderPopup:
|
|
2374
|
-
destinationFolderMode:
|
|
2375
|
-
handleGridAddSibling:
|
|
2376
|
-
handleGridAddChild:
|
|
2377
|
-
handleTreeAddSibling:
|
|
2378
|
-
handleTreeAddChild:
|
|
2379
|
-
handleDownloadFiles:
|
|
2380
|
-
renamedPath:
|
|
2381
|
-
renamedItem:
|
|
2382
|
-
forbiddenSymbolsRegExp:
|
|
2364
|
+
currentFolder: ae,
|
|
2365
|
+
gridRows: dn,
|
|
2366
|
+
handleCopyTo: kt,
|
|
2367
|
+
handleMoveTo: Ln,
|
|
2368
|
+
handleDuplicate: Ft ? an : Ot,
|
|
2369
|
+
handleSetCopiedFiles: bo,
|
|
2370
|
+
handleSetMovedFiles: Do,
|
|
2371
|
+
openDestinationFolderPopup: Qt,
|
|
2372
|
+
handleCloseDestinationFolderPopup: wa,
|
|
2373
|
+
handleOpenDestinationFolderPopup: va,
|
|
2374
|
+
destinationFolderMode: To,
|
|
2375
|
+
handleGridAddSibling: Ko,
|
|
2376
|
+
handleGridAddChild: w,
|
|
2377
|
+
handleTreeAddSibling: ie,
|
|
2378
|
+
handleTreeAddChild: me,
|
|
2379
|
+
handleDownloadFiles: Wn,
|
|
2380
|
+
renamedPath: vo,
|
|
2381
|
+
renamedItem: wo,
|
|
2382
|
+
forbiddenSymbolsRegExp: ss,
|
|
2383
2383
|
forbiddenSymbolsTooltip: ge,
|
|
2384
|
-
skipForbiddenSymbolsCheckForActions:
|
|
2385
|
-
onRename:
|
|
2386
|
-
onRenameSave:
|
|
2387
|
-
onRenameCancel:
|
|
2388
|
-
onRenameValidate:
|
|
2389
|
-
getDisplayName:
|
|
2390
|
-
openDeleteConfirmation:
|
|
2391
|
-
closeDeleteConfirmation:
|
|
2392
|
-
confirmDelete:
|
|
2393
|
-
deleteConfirmationOpen:
|
|
2394
|
-
itemsToDelete:
|
|
2384
|
+
skipForbiddenSymbolsCheckForActions: ue,
|
|
2385
|
+
onRename: Xt,
|
|
2386
|
+
onRenameSave: On,
|
|
2387
|
+
onRenameCancel: Mn,
|
|
2388
|
+
onRenameValidate: yo,
|
|
2389
|
+
getDisplayName: qt,
|
|
2390
|
+
openDeleteConfirmation: Tn || Po,
|
|
2391
|
+
closeDeleteConfirmation: en,
|
|
2392
|
+
confirmDelete: Bn,
|
|
2393
|
+
deleteConfirmationOpen: zn,
|
|
2394
|
+
itemsToDelete: Ao,
|
|
2395
2395
|
handlePathChange: Je,
|
|
2396
|
-
handleTreeItemClick:
|
|
2397
|
-
handleBreadcrumbItemClick:
|
|
2398
|
-
handleSearchChange:
|
|
2399
|
-
handleTableRowClick:
|
|
2396
|
+
handleTreeItemClick: Kn,
|
|
2397
|
+
handleBreadcrumbItemClick: Xn,
|
|
2398
|
+
handleSearchChange: Oe,
|
|
2399
|
+
handleTableRowClick: qn,
|
|
2400
2400
|
onTableFileClick: T,
|
|
2401
2401
|
handleSelectionClick: F,
|
|
2402
2402
|
onGridApiChange: U,
|
|
2403
|
-
isDragging:
|
|
2404
|
-
uploadError:
|
|
2405
|
-
handleDragEnter:
|
|
2406
|
-
handleDragLeave:
|
|
2407
|
-
handleDragOver:
|
|
2408
|
-
handleDrop:
|
|
2409
|
-
clearUploadError:
|
|
2403
|
+
isDragging: ko,
|
|
2404
|
+
uploadError: Lt,
|
|
2405
|
+
handleDragEnter: _t,
|
|
2406
|
+
handleDragLeave: Oo,
|
|
2407
|
+
handleDragOver: Un,
|
|
2408
|
+
handleDrop: zt,
|
|
2409
|
+
clearUploadError: Mo,
|
|
2410
2410
|
onUploadFiles: be,
|
|
2411
2411
|
onValidateUpload: De,
|
|
2412
|
-
maxFileSize:
|
|
2413
|
-
isDraggingOverWindow:
|
|
2414
|
-
openFileDialog:
|
|
2415
|
-
fileInputRef:
|
|
2416
|
-
newActions:
|
|
2417
|
-
isNewButtonVisible:
|
|
2418
|
-
isNewButtonDisabled:
|
|
2412
|
+
maxFileSize: pe,
|
|
2413
|
+
isDraggingOverWindow: Hn,
|
|
2414
|
+
openFileDialog: Ve,
|
|
2415
|
+
fileInputRef: Lo,
|
|
2416
|
+
newActions: cn,
|
|
2417
|
+
isNewButtonVisible: jo,
|
|
2418
|
+
isNewButtonDisabled: Zo,
|
|
2419
2419
|
isCreatingFolder: et,
|
|
2420
|
-
newFolderTempId:
|
|
2421
|
-
createdFolderPath:
|
|
2422
|
-
newFolderDefaultName:
|
|
2423
|
-
startFolderCreation:
|
|
2424
|
-
cancelFolderCreation:
|
|
2425
|
-
saveFolderCreation:
|
|
2426
|
-
validateFolderName:
|
|
2420
|
+
newFolderTempId: We,
|
|
2421
|
+
createdFolderPath: jn,
|
|
2422
|
+
newFolderDefaultName: wt,
|
|
2423
|
+
startFolderCreation: ln,
|
|
2424
|
+
cancelFolderCreation: Go,
|
|
2425
|
+
saveFolderCreation: Vo,
|
|
2426
|
+
validateFolderName: $o,
|
|
2427
2427
|
conflictResolutionPopupOptions: E,
|
|
2428
|
-
conflictingFiles:
|
|
2429
|
-
conflictResolutionOpen:
|
|
2430
|
-
closeConflictResolution:
|
|
2431
|
-
handleConflictReplace:
|
|
2432
|
-
handleConflictDuplicate:
|
|
2433
|
-
handleConflictCancel:
|
|
2434
|
-
handleConflictDecideForEach:
|
|
2435
|
-
uploadConflictingFiles:
|
|
2436
|
-
uploadConflictResolutionOpen:
|
|
2437
|
-
closeUploadConflictResolution:
|
|
2438
|
-
handleUploadConflictReplace:
|
|
2439
|
-
handleUploadConflictDuplicate:
|
|
2440
|
-
handleUploadConflictCancel:
|
|
2441
|
-
handleUploadConflictDecideForEach:
|
|
2428
|
+
conflictingFiles: xo,
|
|
2429
|
+
conflictResolutionOpen: Io,
|
|
2430
|
+
closeConflictResolution: Fo,
|
|
2431
|
+
handleConflictReplace: So,
|
|
2432
|
+
handleConflictDuplicate: Mt,
|
|
2433
|
+
handleConflictCancel: Jt,
|
|
2434
|
+
handleConflictDecideForEach: Eo,
|
|
2435
|
+
uploadConflictingFiles: _o,
|
|
2436
|
+
uploadConflictResolutionOpen: zo,
|
|
2437
|
+
closeUploadConflictResolution: Bo,
|
|
2438
|
+
handleUploadConflictReplace: Wo,
|
|
2439
|
+
handleUploadConflictDuplicate: Gn,
|
|
2440
|
+
handleUploadConflictCancel: Vn,
|
|
2441
|
+
handleUploadConflictDecideForEach: $n,
|
|
2442
2442
|
fileMetadataPopupOptions: B,
|
|
2443
|
-
isMetadataPopupOpen:
|
|
2444
|
-
selectedFileForMetadata:
|
|
2445
|
-
openMetadataPopup:
|
|
2446
|
-
closeMetadataPopup:
|
|
2443
|
+
isMetadataPopupOpen: He,
|
|
2444
|
+
selectedFileForMetadata: bt,
|
|
2445
|
+
openMetadataPopup: os,
|
|
2446
|
+
closeMetadataPopup: as,
|
|
2447
2447
|
onGetInfo: Q,
|
|
2448
2448
|
onUnshareFiles: ee,
|
|
2449
2449
|
onRemoveFilesAccess: Ie,
|
|
2450
|
-
actionsRef:
|
|
2450
|
+
actionsRef: re,
|
|
2451
2451
|
sharedByMePaths: qe,
|
|
2452
|
-
onSearchFiles:
|
|
2452
|
+
onSearchFiles: Ge,
|
|
2453
2453
|
searchInProgress: M,
|
|
2454
2454
|
searchResults: R,
|
|
2455
2455
|
clearSearchResults: W,
|
|
2456
|
-
isSearchMode:
|
|
2457
|
-
emptyStateIcon:
|
|
2456
|
+
isSearchMode: gt,
|
|
2457
|
+
emptyStateIcon: ce,
|
|
2458
2458
|
emptyStateTitle: J,
|
|
2459
|
-
emptyStateDescription:
|
|
2460
|
-
searchEmptyStateTitle:
|
|
2461
|
-
gridClassName:
|
|
2462
|
-
sharedWithMeIds:
|
|
2459
|
+
emptyStateDescription: _e,
|
|
2460
|
+
searchEmptyStateTitle: xt,
|
|
2461
|
+
gridClassName: St,
|
|
2462
|
+
sharedWithMeIds: ze,
|
|
2463
2463
|
onFolderPopupPathChange: ot,
|
|
2464
2464
|
onManagePermissions: ke,
|
|
2465
|
-
onPreview:
|
|
2466
|
-
onOpenInNewTab:
|
|
2467
|
-
previewExtensions:
|
|
2468
|
-
isRenameFileAvailable:
|
|
2469
|
-
isDuplicateFolderAvailable:
|
|
2470
|
-
customUploadFileAction:
|
|
2465
|
+
onPreview: ao,
|
|
2466
|
+
onOpenInNewTab: so,
|
|
2467
|
+
previewExtensions: ro,
|
|
2468
|
+
isRenameFileAvailable: io,
|
|
2469
|
+
isDuplicateFolderAvailable: lo,
|
|
2470
|
+
customUploadFileAction: It,
|
|
2471
2471
|
customBreakpointRef: at,
|
|
2472
|
-
nonClickableTableColumns:
|
|
2473
|
-
hideSearchPathItemName:
|
|
2474
|
-
getDisabledTooltip:
|
|
2472
|
+
nonClickableTableColumns: xn,
|
|
2473
|
+
hideSearchPathItemName: In,
|
|
2474
|
+
getDisabledTooltip: le,
|
|
2475
2475
|
fileTooLargeTooltip: ye,
|
|
2476
2476
|
unsupportedFileTypeTooltip: Te,
|
|
2477
|
-
showHiddenFileSwitcherInDestinationPopup:
|
|
2478
|
-
showCreateFolderButtonInDestinationPopup:
|
|
2477
|
+
showHiddenFileSwitcherInDestinationPopup: co,
|
|
2478
|
+
showCreateFolderButtonInDestinationPopup: ho,
|
|
2479
2479
|
maxNewFolderDepth: Fe,
|
|
2480
|
-
onNewFolderDepthExceeded:
|
|
2480
|
+
onNewFolderDepthExceeded: Kt
|
|
2481
2481
|
};
|
|
2482
|
-
return /* @__PURE__ */ a(
|
|
2482
|
+
return /* @__PURE__ */ a(Qa.Provider, { value: rs, children: e });
|
|
2483
2483
|
}, Yr = ({
|
|
2484
2484
|
disabledGridRowIds: e,
|
|
2485
2485
|
gridRows: t,
|
|
@@ -2541,8 +2541,8 @@ const qr = ({
|
|
|
2541
2541
|
r
|
|
2542
2542
|
]);
|
|
2543
2543
|
return /* @__PURE__ */ a(Pe, { children: D && h && $s(
|
|
2544
|
-
/* @__PURE__ */ K(
|
|
2545
|
-
/* @__PURE__ */ a(
|
|
2544
|
+
/* @__PURE__ */ K(xs, { open: !0, placement: Is.Top, children: [
|
|
2545
|
+
/* @__PURE__ */ a(Fs, { asChild: !0, children: /* @__PURE__ */ a(
|
|
2546
2546
|
"div",
|
|
2547
2547
|
{
|
|
2548
2548
|
className: xe(
|
|
@@ -2557,14 +2557,14 @@ const qr = ({
|
|
|
2557
2557
|
}
|
|
2558
2558
|
}
|
|
2559
2559
|
) }),
|
|
2560
|
-
/* @__PURE__ */ a(
|
|
2560
|
+
/* @__PURE__ */ a(Ss, { className: "text-center", children: D })
|
|
2561
2561
|
] }),
|
|
2562
2562
|
document.body
|
|
2563
2563
|
) });
|
|
2564
|
-
},
|
|
2565
|
-
const [e, t] = L(
|
|
2564
|
+
}, La = () => typeof window < "u" && window.innerWidth < 640, ga = () => {
|
|
2565
|
+
const [e, t] = L(La());
|
|
2566
2566
|
return Ne(() => {
|
|
2567
|
-
const o = () => t(
|
|
2567
|
+
const o = () => t(La());
|
|
2568
2568
|
return window.addEventListener("resize", o), () => window.removeEventListener("resize", o);
|
|
2569
2569
|
}, []), e;
|
|
2570
2570
|
}, Qr = ({
|
|
@@ -2594,7 +2594,7 @@ const qr = ({
|
|
|
2594
2594
|
items: T,
|
|
2595
2595
|
...F
|
|
2596
2596
|
}) => {
|
|
2597
|
-
const [U, G] = L(!1), [X, k] = L(!1), _ = Ce(null), V =
|
|
2597
|
+
const [U, G] = L(!1), [X, k] = L(!1), _ = Ce(null), V = ga(), z = H(
|
|
2598
2598
|
() => yr(T, C),
|
|
2599
2599
|
[T, C]
|
|
2600
2600
|
), j = d((ne) => {
|
|
@@ -2605,7 +2605,7 @@ const qr = ({
|
|
|
2605
2605
|
key: "add-folder",
|
|
2606
2606
|
label: l,
|
|
2607
2607
|
icon: /* @__PURE__ */ a(
|
|
2608
|
-
|
|
2608
|
+
ba,
|
|
2609
2609
|
{
|
|
2610
2610
|
...A,
|
|
2611
2611
|
className: "text-secondary"
|
|
@@ -2617,9 +2617,9 @@ const qr = ({
|
|
|
2617
2617
|
}), c && ne.push({
|
|
2618
2618
|
key: "show-hidden-files",
|
|
2619
2619
|
label: v,
|
|
2620
|
-
icon: /* @__PURE__ */ a(
|
|
2620
|
+
icon: /* @__PURE__ */ a(na, { ...A, className: "text-secondary" }),
|
|
2621
2621
|
onClick: () => {
|
|
2622
|
-
G((
|
|
2622
|
+
G((se) => !se), k(!1);
|
|
2623
2623
|
}
|
|
2624
2624
|
}), ne;
|
|
2625
2625
|
}, [
|
|
@@ -2627,11 +2627,11 @@ const qr = ({
|
|
|
2627
2627
|
v,
|
|
2628
2628
|
c,
|
|
2629
2629
|
D
|
|
2630
|
-
]),
|
|
2630
|
+
]), ue = d(
|
|
2631
2631
|
(ne) => {
|
|
2632
2632
|
if (ne) {
|
|
2633
|
-
let
|
|
2634
|
-
o?.(
|
|
2633
|
+
let se = E ? E(ne) : ne;
|
|
2634
|
+
o?.(se), s?.(se);
|
|
2635
2635
|
}
|
|
2636
2636
|
},
|
|
2637
2637
|
[
|
|
@@ -2641,37 +2641,37 @@ const qr = ({
|
|
|
2641
2641
|
]
|
|
2642
2642
|
), be = h === Re.Copy ? "Copy to" : "Move to", De = H(() => !f || !x ? !1 : x === f, [f, x]);
|
|
2643
2643
|
return /* @__PURE__ */ a(
|
|
2644
|
-
|
|
2644
|
+
ca,
|
|
2645
2645
|
{
|
|
2646
2646
|
open: n,
|
|
2647
2647
|
onClose: () => {
|
|
2648
2648
|
e();
|
|
2649
2649
|
},
|
|
2650
|
-
size:
|
|
2650
|
+
size: Jn.Lg,
|
|
2651
2651
|
className: "md:!h-[800px] !bg-layer-sunken",
|
|
2652
2652
|
footer: /* @__PURE__ */ K("div", { className: "flex justify-between items-center gap-2 p-4 md:px-6", children: [
|
|
2653
2653
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-4 min-w-0", children: V ? /* @__PURE__ */ a(
|
|
2654
|
-
|
|
2654
|
+
Tt,
|
|
2655
2655
|
{
|
|
2656
2656
|
items: ge,
|
|
2657
2657
|
open: X,
|
|
2658
2658
|
onOpenChange: k,
|
|
2659
2659
|
children: /* @__PURE__ */ a(
|
|
2660
|
-
|
|
2660
|
+
Vt,
|
|
2661
2661
|
{
|
|
2662
|
-
size:
|
|
2662
|
+
size: Dn.Large,
|
|
2663
2663
|
"aria-label": "More options",
|
|
2664
|
-
icon: /* @__PURE__ */ a(
|
|
2664
|
+
icon: /* @__PURE__ */ a(bn, { ...A })
|
|
2665
2665
|
}
|
|
2666
2666
|
)
|
|
2667
2667
|
}
|
|
2668
2668
|
) : /* @__PURE__ */ K(Pe, { children: [
|
|
2669
2669
|
D && /* @__PURE__ */ a(
|
|
2670
|
-
|
|
2670
|
+
Wt,
|
|
2671
2671
|
{
|
|
2672
2672
|
label: l,
|
|
2673
|
-
appearance:
|
|
2674
|
-
iconBefore: /* @__PURE__ */ a(
|
|
2673
|
+
appearance: eo.Ghost,
|
|
2674
|
+
iconBefore: /* @__PURE__ */ a(ba, { ...A }),
|
|
2675
2675
|
onClick: () => {
|
|
2676
2676
|
_.current?.createFolder();
|
|
2677
2677
|
}
|
|
@@ -2679,7 +2679,7 @@ const qr = ({
|
|
|
2679
2679
|
),
|
|
2680
2680
|
D && c && /* @__PURE__ */ a("div", { className: "w-px h-[26px] bg-control-disable-primary my-2" }),
|
|
2681
2681
|
c && /* @__PURE__ */ a(Pe, { children: /* @__PURE__ */ a("div", { className: "inline-flex items-center cursor-pointer", children: /* @__PURE__ */ a(
|
|
2682
|
-
|
|
2682
|
+
Va,
|
|
2683
2683
|
{
|
|
2684
2684
|
labelProps: { label: v },
|
|
2685
2685
|
isOn: U,
|
|
@@ -2689,9 +2689,9 @@ const qr = ({
|
|
|
2689
2689
|
) }) })
|
|
2690
2690
|
] }) }),
|
|
2691
2691
|
/* @__PURE__ */ K("div", { className: "flex space-x-4 items-center", children: [
|
|
2692
|
-
/* @__PURE__ */ a(
|
|
2693
|
-
De ? /* @__PURE__ */ a(
|
|
2694
|
-
|
|
2692
|
+
/* @__PURE__ */ a(Ga, { onClick: e, label: "Cancel" }),
|
|
2693
|
+
De ? /* @__PURE__ */ a(to, { tooltip: b, children: /* @__PURE__ */ a(
|
|
2694
|
+
Wt,
|
|
2695
2695
|
{
|
|
2696
2696
|
onClick: t,
|
|
2697
2697
|
label: h === "copy" ? r : i,
|
|
@@ -2699,7 +2699,7 @@ const qr = ({
|
|
|
2699
2699
|
"aria-disabled": De
|
|
2700
2700
|
}
|
|
2701
2701
|
) }) : /* @__PURE__ */ a(
|
|
2702
|
-
|
|
2702
|
+
Wt,
|
|
2703
2703
|
{
|
|
2704
2704
|
onClick: t,
|
|
2705
2705
|
label: h === "copy" ? r : i
|
|
@@ -2710,7 +2710,7 @@ const qr = ({
|
|
|
2710
2710
|
header: g ?? be,
|
|
2711
2711
|
ariaLabel: be,
|
|
2712
2712
|
children: /* @__PURE__ */ K("div", { className: "bg-layer-sunken h-full flex flex-col", children: [
|
|
2713
|
-
S && /* @__PURE__ */ a("div", { className: "px-6 mb-4 pt-4", children: /* @__PURE__ */ a(
|
|
2713
|
+
S && /* @__PURE__ */ a("div", { className: "px-6 mb-4 pt-4", children: /* @__PURE__ */ a(Es, { ...S }) }),
|
|
2714
2714
|
/* @__PURE__ */ a("div", { className: "flex-1 min-h-0", children: /* @__PURE__ */ a(
|
|
2715
2715
|
Wi,
|
|
2716
2716
|
{
|
|
@@ -2738,7 +2738,7 @@ const qr = ({
|
|
|
2738
2738
|
},
|
|
2739
2739
|
onUploadFiles: p,
|
|
2740
2740
|
onValidateUpload: N,
|
|
2741
|
-
onPathChange:
|
|
2741
|
+
onPathChange: ue,
|
|
2742
2742
|
maxFileSize: m
|
|
2743
2743
|
}
|
|
2744
2744
|
) })
|
|
@@ -2748,8 +2748,8 @@ const qr = ({
|
|
|
2748
2748
|
};
|
|
2749
2749
|
function Jr({
|
|
2750
2750
|
actions: e,
|
|
2751
|
-
direction: t =
|
|
2752
|
-
moreButtonWidth: o =
|
|
2751
|
+
direction: t = wn.Normal,
|
|
2752
|
+
moreButtonWidth: o = ia,
|
|
2753
2753
|
actionsGap: s = 8,
|
|
2754
2754
|
containerPadding: n = 8,
|
|
2755
2755
|
dependencies: r = []
|
|
@@ -2758,7 +2758,7 @@ function Jr({
|
|
|
2758
2758
|
(x, b) => {
|
|
2759
2759
|
const f = h.current?.offsetWidth ?? 0, u = v.current?.offsetWidth ?? 0, S = f + u, C = b.getBoundingClientRect().width - S - o - s * 2 - n * 2;
|
|
2760
2760
|
let T = 0, F = 0;
|
|
2761
|
-
if (t ===
|
|
2761
|
+
if (t === wn.Reverse)
|
|
2762
2762
|
for (let U = x.length - 1; U >= 0 && (T += x[U] + s, !(T > C)); U--)
|
|
2763
2763
|
F++;
|
|
2764
2764
|
else
|
|
@@ -2770,7 +2770,7 @@ function Jr({
|
|
|
2770
2770
|
},
|
|
2771
2771
|
[s, n, t, o]
|
|
2772
2772
|
);
|
|
2773
|
-
|
|
2773
|
+
ws(
|
|
2774
2774
|
() => {
|
|
2775
2775
|
if (!l.current || !i.current) return;
|
|
2776
2776
|
const b = Array.from(l.current.children).map(
|
|
@@ -2800,9 +2800,9 @@ function Jr({
|
|
|
2800
2800
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2801
2801
|
...r
|
|
2802
2802
|
]);
|
|
2803
|
-
const m = t ===
|
|
2803
|
+
const m = t === wn.Reverse ? e.slice(0, e.length - D) : e.slice(D);
|
|
2804
2804
|
return {
|
|
2805
|
-
visibleActions: t ===
|
|
2805
|
+
visibleActions: t === wn.Reverse ? e.slice(e.length - D) : e.slice(0, D),
|
|
2806
2806
|
hiddenActions: m,
|
|
2807
2807
|
refs: {
|
|
2808
2808
|
containerRef: i,
|
|
@@ -2819,13 +2819,13 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
2819
2819
|
selectedCount: s,
|
|
2820
2820
|
clearSelectionLabel: n = "Clear selection"
|
|
2821
2821
|
}) => {
|
|
2822
|
-
const r =
|
|
2822
|
+
const r = ga(), {
|
|
2823
2823
|
refs: { containerRef: i, leftSectionRef: l, measureRef: h },
|
|
2824
2824
|
visibleActions: v,
|
|
2825
2825
|
hiddenActions: c
|
|
2826
2826
|
} = Jr({
|
|
2827
2827
|
actions: o,
|
|
2828
|
-
direction:
|
|
2828
|
+
direction: wn.Reverse,
|
|
2829
2829
|
dependencies: [r],
|
|
2830
2830
|
actionsGap: ei,
|
|
2831
2831
|
containerPadding: ti
|
|
@@ -2837,9 +2837,9 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
2837
2837
|
ref: h,
|
|
2838
2838
|
className: "absolute top-0 left-0 invisible pointer-events-none overflow-hidden whitespace-nowrap flex gap-3",
|
|
2839
2839
|
children: o.map(({ key: p, icon: N, title: m, danger: g }) => /* @__PURE__ */ a(
|
|
2840
|
-
g ?
|
|
2840
|
+
g ? Ta : Wt,
|
|
2841
2841
|
{
|
|
2842
|
-
appearance:
|
|
2842
|
+
appearance: eo.Ghost,
|
|
2843
2843
|
iconBefore: N,
|
|
2844
2844
|
label: m
|
|
2845
2845
|
},
|
|
@@ -2858,36 +2858,36 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
2858
2858
|
/* @__PURE__ */ a("span", { className: si, children: s }),
|
|
2859
2859
|
/* @__PURE__ */ a("span", { className: "whitespace-nowrap", children: D }),
|
|
2860
2860
|
/* @__PURE__ */ a(
|
|
2861
|
-
|
|
2861
|
+
Vt,
|
|
2862
2862
|
{
|
|
2863
|
-
size:
|
|
2863
|
+
size: Dn.Small,
|
|
2864
2864
|
"aria-label": n,
|
|
2865
2865
|
tooltipProps: { tooltip: n },
|
|
2866
|
-
icon: /* @__PURE__ */ a(
|
|
2866
|
+
icon: /* @__PURE__ */ a(hs, { ...A }),
|
|
2867
2867
|
onClick: t
|
|
2868
2868
|
}
|
|
2869
2869
|
)
|
|
2870
2870
|
] }),
|
|
2871
2871
|
/* @__PURE__ */ K("div", { className: ri, children: [
|
|
2872
2872
|
c.length > 0 && /* @__PURE__ */ a(
|
|
2873
|
-
|
|
2873
|
+
Tt,
|
|
2874
2874
|
{
|
|
2875
2875
|
items: c,
|
|
2876
2876
|
allowedPlacements: ["bottom", "bottom-start"],
|
|
2877
2877
|
children: /* @__PURE__ */ a(
|
|
2878
|
-
|
|
2878
|
+
Vt,
|
|
2879
2879
|
{
|
|
2880
2880
|
className: "h-[38px]",
|
|
2881
|
-
icon: /* @__PURE__ */ a(
|
|
2881
|
+
icon: /* @__PURE__ */ a(bn, { ...A })
|
|
2882
2882
|
}
|
|
2883
2883
|
)
|
|
2884
2884
|
}
|
|
2885
2885
|
),
|
|
2886
2886
|
v.map(
|
|
2887
2887
|
({ key: p, icon: N, tooltip: m, title: g, onClick: x, disabled: b, danger: f }) => /* @__PURE__ */ a(
|
|
2888
|
-
f ?
|
|
2888
|
+
f ? Ta : Wt,
|
|
2889
2889
|
{
|
|
2890
|
-
appearance:
|
|
2890
|
+
appearance: eo.Ghost,
|
|
2891
2891
|
iconBefore: N,
|
|
2892
2892
|
label: g,
|
|
2893
2893
|
disabled: b,
|
|
@@ -2938,23 +2938,23 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
2938
2938
|
] }) })
|
|
2939
2939
|
] }), p = l?.(h) || D;
|
|
2940
2940
|
return /* @__PURE__ */ a(
|
|
2941
|
-
|
|
2941
|
+
As,
|
|
2942
2942
|
{
|
|
2943
2943
|
open: e,
|
|
2944
2944
|
header: c,
|
|
2945
2945
|
ariaLabel: v,
|
|
2946
2946
|
confirmLabel: r,
|
|
2947
2947
|
cancelLabel: n,
|
|
2948
|
-
variant:
|
|
2948
|
+
variant: Ps.Danger,
|
|
2949
2949
|
onClose: o,
|
|
2950
2950
|
onConfirm: s,
|
|
2951
2951
|
children: p
|
|
2952
2952
|
}
|
|
2953
2953
|
);
|
|
2954
|
-
},
|
|
2954
|
+
}, _a = (e) => e.split("/").map((t) => t.trim()).filter(Boolean), ci = "min-w-0 flex-1 flex items-center", di = "min-w-0 h-[40px] flex-1 overflow-hidden flex items-center", hi = ({
|
|
2955
2955
|
ariaLabel: e = "Breadcrumb",
|
|
2956
2956
|
overflowAriaLabel: t,
|
|
2957
|
-
size: o =
|
|
2957
|
+
size: o = Os.Heading,
|
|
2958
2958
|
maxVisibleItems: s,
|
|
2959
2959
|
itemClassName: n,
|
|
2960
2960
|
onItemClick: r,
|
|
@@ -2968,11 +2968,11 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
2968
2968
|
}) => {
|
|
2969
2969
|
const N = H(() => {
|
|
2970
2970
|
if (!i) return [{ label: "/" }];
|
|
2971
|
-
let m =
|
|
2971
|
+
let m = _a(i);
|
|
2972
2972
|
const g = [...m];
|
|
2973
2973
|
let x = 0;
|
|
2974
2974
|
if (c) {
|
|
2975
|
-
const f =
|
|
2975
|
+
const f = _a(c);
|
|
2976
2976
|
if (f.length) {
|
|
2977
2977
|
const u = m.findIndex(
|
|
2978
2978
|
(S, E) => f.every((C, T) => m[E + T] === C)
|
|
@@ -3027,7 +3027,7 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3027
3027
|
className: xe(ci, D),
|
|
3028
3028
|
"aria-label": "navigation-panel",
|
|
3029
3029
|
children: /* @__PURE__ */ a("div", { className: di, children: /* @__PURE__ */ a(
|
|
3030
|
-
|
|
3030
|
+
ks,
|
|
3031
3031
|
{
|
|
3032
3032
|
items: N,
|
|
3033
3033
|
size: o,
|
|
@@ -3066,7 +3066,7 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3066
3066
|
role: "search",
|
|
3067
3067
|
"aria-label": "Search",
|
|
3068
3068
|
children: /* @__PURE__ */ a("div", { className: pi, children: /* @__PURE__ */ a(
|
|
3069
|
-
|
|
3069
|
+
Ms,
|
|
3070
3070
|
{
|
|
3071
3071
|
...h,
|
|
3072
3072
|
id: t,
|
|
@@ -3089,9 +3089,9 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3089
3089
|
[nt.UpdatedAt]: "Modified date",
|
|
3090
3090
|
[nt.Size]: "Size"
|
|
3091
3091
|
}, gi = {
|
|
3092
|
-
[
|
|
3093
|
-
[
|
|
3094
|
-
}, vi = Object.values(nt), wi = Object.values(
|
|
3092
|
+
[$t.Asc]: "Ascending",
|
|
3093
|
+
[$t.Desc]: "Descending"
|
|
3094
|
+
}, vi = Object.values(nt), wi = Object.values($t), yi = ({
|
|
3095
3095
|
sort: e,
|
|
3096
3096
|
onSortChange: t,
|
|
3097
3097
|
label: o = "Sort",
|
|
@@ -3105,15 +3105,15 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3105
3105
|
...vi.map((h) => ({
|
|
3106
3106
|
key: `field-${h}`,
|
|
3107
3107
|
label: s?.[h] ?? Ci[h],
|
|
3108
|
-
mark:
|
|
3108
|
+
mark: Ra.Check,
|
|
3109
3109
|
checked: e.field === h,
|
|
3110
3110
|
onClick: () => t?.({ ...e, field: h })
|
|
3111
3111
|
})),
|
|
3112
|
-
{ key: "sort-divider", type:
|
|
3112
|
+
{ key: "sort-divider", type: ha.Divider },
|
|
3113
3113
|
...wi.map((h) => ({
|
|
3114
3114
|
key: `direction-${h}`,
|
|
3115
3115
|
label: n?.[h] ?? gi[h],
|
|
3116
|
-
mark:
|
|
3116
|
+
mark: Ra.Check,
|
|
3117
3117
|
checked: e.direction === h,
|
|
3118
3118
|
onClick: () => t?.({ ...e, direction: h })
|
|
3119
3119
|
}))
|
|
@@ -3121,19 +3121,19 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3121
3121
|
[e, t, s, n]
|
|
3122
3122
|
);
|
|
3123
3123
|
return /* @__PURE__ */ a(
|
|
3124
|
-
|
|
3124
|
+
ea,
|
|
3125
3125
|
{
|
|
3126
3126
|
label: o,
|
|
3127
|
-
variant:
|
|
3128
|
-
appearance:
|
|
3129
|
-
iconBefore: /* @__PURE__ */ a(
|
|
3127
|
+
variant: $a.Primary,
|
|
3128
|
+
appearance: eo.Ghost,
|
|
3129
|
+
iconBefore: /* @__PURE__ */ a(us, { ...A }),
|
|
3130
3130
|
items: l,
|
|
3131
3131
|
dropdownProps: mi,
|
|
3132
3132
|
disabled: r,
|
|
3133
3133
|
className: i
|
|
3134
3134
|
}
|
|
3135
3135
|
);
|
|
3136
|
-
},
|
|
3136
|
+
}, za = {
|
|
3137
3137
|
listClassName: "min-w-[108px]",
|
|
3138
3138
|
matchReferenceWidth: !1
|
|
3139
3139
|
}, Ni = ({
|
|
@@ -3141,7 +3141,7 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3141
3141
|
onToggleHiddenFiles: t,
|
|
3142
3142
|
isNewButtonVisible: o,
|
|
3143
3143
|
isNewButtonDisabled: s,
|
|
3144
|
-
newButtonVariant: n =
|
|
3144
|
+
newButtonVariant: n = $a.Primary,
|
|
3145
3145
|
newButtonDropdownItems: r = [],
|
|
3146
3146
|
newButtonLabel: i = "Add",
|
|
3147
3147
|
showHiddenFilesLabel: l = "Show hidden files",
|
|
@@ -3149,11 +3149,11 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3149
3149
|
showHiddenFilesToggle: v = !0,
|
|
3150
3150
|
disabledNewButtonTooltip: c
|
|
3151
3151
|
}) => {
|
|
3152
|
-
const D =
|
|
3152
|
+
const D = ga(), p = H(() => [
|
|
3153
3153
|
{
|
|
3154
3154
|
key: "hidden-files-switch",
|
|
3155
3155
|
label: e ? h : l,
|
|
3156
|
-
icon: e ? /* @__PURE__ */ a(
|
|
3156
|
+
icon: e ? /* @__PURE__ */ a(ps, { ...A, className: "text-secondary" }) : /* @__PURE__ */ a(na, { ...A, className: "text-secondary" }),
|
|
3157
3157
|
onClick: () => t?.(!e)
|
|
3158
3158
|
}
|
|
3159
3159
|
], [
|
|
@@ -3164,19 +3164,19 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3164
3164
|
]);
|
|
3165
3165
|
return /* @__PURE__ */ a("div", { className: "flex gap-4 shrink-0 items-center", children: D ? /* @__PURE__ */ K(Pe, { children: [
|
|
3166
3166
|
/* @__PURE__ */ a(
|
|
3167
|
-
|
|
3167
|
+
Tt,
|
|
3168
3168
|
{
|
|
3169
3169
|
items: p,
|
|
3170
3170
|
allowedPlacements: ["bottom", "bottom-start"],
|
|
3171
3171
|
children: /* @__PURE__ */ a(
|
|
3172
|
-
|
|
3172
|
+
Vt,
|
|
3173
3173
|
{
|
|
3174
|
-
size:
|
|
3174
|
+
size: Dn.Small,
|
|
3175
3175
|
icon: /* @__PURE__ */ a(
|
|
3176
|
-
|
|
3176
|
+
bn,
|
|
3177
3177
|
{
|
|
3178
|
-
stroke:
|
|
3179
|
-
size:
|
|
3178
|
+
stroke: Xa,
|
|
3179
|
+
size: Ls.SM
|
|
3180
3180
|
}
|
|
3181
3181
|
)
|
|
3182
3182
|
}
|
|
@@ -3184,16 +3184,16 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3184
3184
|
}
|
|
3185
3185
|
),
|
|
3186
3186
|
o ? /* @__PURE__ */ a(
|
|
3187
|
-
|
|
3187
|
+
to,
|
|
3188
3188
|
{
|
|
3189
3189
|
tooltip: s && c ? c : void 0,
|
|
3190
3190
|
children: /* @__PURE__ */ a(
|
|
3191
|
-
|
|
3191
|
+
ea,
|
|
3192
3192
|
{
|
|
3193
3193
|
label: i,
|
|
3194
3194
|
variant: n,
|
|
3195
3195
|
items: r,
|
|
3196
|
-
dropdownProps:
|
|
3196
|
+
dropdownProps: za,
|
|
3197
3197
|
disabled: s
|
|
3198
3198
|
}
|
|
3199
3199
|
)
|
|
@@ -3201,7 +3201,7 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3201
3201
|
) : null
|
|
3202
3202
|
] }) : /* @__PURE__ */ K(Pe, { children: [
|
|
3203
3203
|
v && /* @__PURE__ */ a(
|
|
3204
|
-
|
|
3204
|
+
Va,
|
|
3205
3205
|
{
|
|
3206
3206
|
id: "hidden-files-switch",
|
|
3207
3207
|
labelProps: {
|
|
@@ -3212,23 +3212,23 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3212
3212
|
}
|
|
3213
3213
|
),
|
|
3214
3214
|
o && /* @__PURE__ */ a(
|
|
3215
|
-
|
|
3215
|
+
to,
|
|
3216
3216
|
{
|
|
3217
3217
|
tooltip: s && c ? c : void 0,
|
|
3218
3218
|
children: /* @__PURE__ */ a(
|
|
3219
|
-
|
|
3219
|
+
ea,
|
|
3220
3220
|
{
|
|
3221
3221
|
label: i,
|
|
3222
3222
|
variant: n,
|
|
3223
3223
|
items: r,
|
|
3224
|
-
dropdownProps:
|
|
3224
|
+
dropdownProps: za,
|
|
3225
3225
|
disabled: s
|
|
3226
3226
|
}
|
|
3227
3227
|
)
|
|
3228
3228
|
}
|
|
3229
3229
|
)
|
|
3230
3230
|
] }) });
|
|
3231
|
-
}, bi = 100,
|
|
3231
|
+
}, bi = 100, Cn = 16, Ke = "text-secondary", Yn = "text-primary min-w-0", Di = "text-primary break-words min-w-0", gn = "bg-layer-sunken", Ti = ({
|
|
3232
3232
|
open: e,
|
|
3233
3233
|
onClose: t,
|
|
3234
3234
|
fileMetadata: o,
|
|
@@ -3242,11 +3242,11 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3242
3242
|
dateLocale: c = "en-US",
|
|
3243
3243
|
dateOptions: D
|
|
3244
3244
|
}) => /* @__PURE__ */ a(
|
|
3245
|
-
|
|
3245
|
+
ca,
|
|
3246
3246
|
{
|
|
3247
3247
|
open: e,
|
|
3248
3248
|
onClose: t,
|
|
3249
|
-
size:
|
|
3249
|
+
size: Jn.Sm,
|
|
3250
3250
|
header: n,
|
|
3251
3251
|
ariaLabel: "File information",
|
|
3252
3252
|
children: /* @__PURE__ */ a("div", { className: "px-6 py-4", children: /* @__PURE__ */ a(
|
|
@@ -3257,60 +3257,60 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3257
3257
|
children: s ? /* @__PURE__ */ K(Pe, { children: [
|
|
3258
3258
|
/* @__PURE__ */ a("div", { className: Ke, children: r }),
|
|
3259
3259
|
/* @__PURE__ */ a(
|
|
3260
|
-
|
|
3260
|
+
pn,
|
|
3261
3261
|
{
|
|
3262
|
-
variant:
|
|
3262
|
+
variant: fn.Text,
|
|
3263
3263
|
width: "100%",
|
|
3264
|
-
height:
|
|
3265
|
-
className:
|
|
3264
|
+
height: Cn,
|
|
3265
|
+
className: gn
|
|
3266
3266
|
}
|
|
3267
3267
|
),
|
|
3268
3268
|
/* @__PURE__ */ a("div", { className: Ke, children: l }),
|
|
3269
3269
|
/* @__PURE__ */ a(
|
|
3270
|
-
|
|
3270
|
+
pn,
|
|
3271
3271
|
{
|
|
3272
|
-
variant:
|
|
3272
|
+
variant: fn.Text,
|
|
3273
3273
|
width: "90%",
|
|
3274
|
-
height:
|
|
3275
|
-
className:
|
|
3274
|
+
height: Cn,
|
|
3275
|
+
className: gn
|
|
3276
3276
|
}
|
|
3277
3277
|
),
|
|
3278
3278
|
/* @__PURE__ */ a("div", { className: Ke, children: h }),
|
|
3279
3279
|
/* @__PURE__ */ a(
|
|
3280
|
-
|
|
3280
|
+
pn,
|
|
3281
3281
|
{
|
|
3282
|
-
variant:
|
|
3282
|
+
variant: fn.Text,
|
|
3283
3283
|
width: "60%",
|
|
3284
|
-
height:
|
|
3285
|
-
className:
|
|
3284
|
+
height: Cn,
|
|
3285
|
+
className: gn
|
|
3286
3286
|
}
|
|
3287
3287
|
),
|
|
3288
3288
|
/* @__PURE__ */ a("div", { className: Ke, children: v }),
|
|
3289
3289
|
/* @__PURE__ */ a(
|
|
3290
|
-
|
|
3290
|
+
pn,
|
|
3291
3291
|
{
|
|
3292
|
-
variant:
|
|
3292
|
+
variant: fn.Text,
|
|
3293
3293
|
width: "80%",
|
|
3294
|
-
height:
|
|
3295
|
-
className:
|
|
3294
|
+
height: Cn,
|
|
3295
|
+
className: gn
|
|
3296
3296
|
}
|
|
3297
3297
|
),
|
|
3298
3298
|
/* @__PURE__ */ a("div", { className: Ke, children: i }),
|
|
3299
3299
|
/* @__PURE__ */ a(
|
|
3300
|
-
|
|
3300
|
+
pn,
|
|
3301
3301
|
{
|
|
3302
|
-
variant:
|
|
3302
|
+
variant: fn.Text,
|
|
3303
3303
|
width: "70%",
|
|
3304
|
-
height:
|
|
3305
|
-
className:
|
|
3304
|
+
height: Cn,
|
|
3305
|
+
className: gn
|
|
3306
3306
|
}
|
|
3307
3307
|
)
|
|
3308
3308
|
] }) : o ? /* @__PURE__ */ K(Pe, { children: [
|
|
3309
3309
|
/* @__PURE__ */ a("div", { className: Ke, children: r }),
|
|
3310
|
-
/* @__PURE__ */ a("div", { className:
|
|
3310
|
+
/* @__PURE__ */ a("div", { className: Yn, children: /* @__PURE__ */ a(Bt, { text: o.name }) }),
|
|
3311
3311
|
/* @__PURE__ */ a("div", { className: Ke, children: l }),
|
|
3312
|
-
/* @__PURE__ */ a("div", { className:
|
|
3313
|
-
|
|
3312
|
+
/* @__PURE__ */ a("div", { className: Yn, children: /* @__PURE__ */ a(
|
|
3313
|
+
Bt,
|
|
3314
3314
|
{
|
|
3315
3315
|
text: Nr(
|
|
3316
3316
|
o.updatedAt,
|
|
@@ -3320,14 +3320,14 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3320
3320
|
}
|
|
3321
3321
|
) }),
|
|
3322
3322
|
/* @__PURE__ */ a("div", { className: Ke, children: h }),
|
|
3323
|
-
/* @__PURE__ */ a("div", { className:
|
|
3324
|
-
|
|
3323
|
+
/* @__PURE__ */ a("div", { className: Yn, children: /* @__PURE__ */ a(
|
|
3324
|
+
Bt,
|
|
3325
3325
|
{
|
|
3326
|
-
text:
|
|
3326
|
+
text: Nn(o.contentLength)
|
|
3327
3327
|
}
|
|
3328
3328
|
) }),
|
|
3329
3329
|
/* @__PURE__ */ a("div", { className: Ke, children: v }),
|
|
3330
|
-
/* @__PURE__ */ a("div", { className:
|
|
3330
|
+
/* @__PURE__ */ a("div", { className: Yn, children: /* @__PURE__ */ a(Bt, { text: o.author || "—" }) }),
|
|
3331
3331
|
/* @__PURE__ */ a("div", { className: Ke, children: i }),
|
|
3332
3332
|
/* @__PURE__ */ a("div", { className: Di, children: decodeURIComponent(o.path) })
|
|
3333
3333
|
] }) : null
|
|
@@ -3337,7 +3337,7 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3337
3337
|
), Ri = {
|
|
3338
3338
|
size: 10,
|
|
3339
3339
|
stroke: 2
|
|
3340
|
-
}, xi = 14,
|
|
3340
|
+
}, xi = 14, vn = "__new_folder", Ii = ({
|
|
3341
3341
|
name: e,
|
|
3342
3342
|
type: t,
|
|
3343
3343
|
elementId: o,
|
|
@@ -3358,22 +3358,22 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3358
3358
|
}) => {
|
|
3359
3359
|
const b = () => {
|
|
3360
3360
|
const f = v?.startsWith(
|
|
3361
|
-
`${
|
|
3361
|
+
`${Jo.Warning}__`
|
|
3362
3362
|
);
|
|
3363
3363
|
if (!h && !f) return null;
|
|
3364
3364
|
const u = v?.replace(
|
|
3365
|
-
`${
|
|
3365
|
+
`${Jo.Warning}__`,
|
|
3366
3366
|
""
|
|
3367
3367
|
);
|
|
3368
|
-
return /* @__PURE__ */ a(
|
|
3369
|
-
|
|
3368
|
+
return /* @__PURE__ */ a(to, { tooltip: u, children: D || (f ? /* @__PURE__ */ a(
|
|
3369
|
+
ms,
|
|
3370
3370
|
{
|
|
3371
3371
|
...A,
|
|
3372
3372
|
className: "text-warning-icon",
|
|
3373
3373
|
"aria-label": "warning"
|
|
3374
3374
|
}
|
|
3375
3375
|
) : /* @__PURE__ */ a(
|
|
3376
|
-
|
|
3376
|
+
fs,
|
|
3377
3377
|
{
|
|
3378
3378
|
...A,
|
|
3379
3379
|
className: "text-error",
|
|
@@ -3381,9 +3381,9 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3381
3381
|
}
|
|
3382
3382
|
)) });
|
|
3383
3383
|
};
|
|
3384
|
-
return /* @__PURE__ */ K("div", { className: "flex gap-2 items-center", ...
|
|
3384
|
+
return /* @__PURE__ */ K("div", { className: "flex gap-2 items-center", ..._s, children: [
|
|
3385
3385
|
/* @__PURE__ */ a(
|
|
3386
|
-
|
|
3386
|
+
zs,
|
|
3387
3387
|
{
|
|
3388
3388
|
name: e,
|
|
3389
3389
|
type: t,
|
|
@@ -3398,7 +3398,7 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3398
3398
|
}
|
|
3399
3399
|
),
|
|
3400
3400
|
/* @__PURE__ */ a(
|
|
3401
|
-
|
|
3401
|
+
Bs,
|
|
3402
3402
|
{
|
|
3403
3403
|
wrapperClassName: xe(
|
|
3404
3404
|
"!h-5 !py-[1px] !pl-[7px] !pr-[7px]",
|
|
@@ -3413,7 +3413,7 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3413
3413
|
}
|
|
3414
3414
|
)
|
|
3415
3415
|
] });
|
|
3416
|
-
},
|
|
3416
|
+
}, no = ({
|
|
3417
3417
|
name: e,
|
|
3418
3418
|
type: t,
|
|
3419
3419
|
elementId: o,
|
|
@@ -3421,7 +3421,7 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3421
3421
|
loading: n = !1,
|
|
3422
3422
|
creating: r = !1,
|
|
3423
3423
|
shared: i = !1,
|
|
3424
|
-
iconSize: l =
|
|
3424
|
+
iconSize: l = ia,
|
|
3425
3425
|
validate: h,
|
|
3426
3426
|
onSave: v,
|
|
3427
3427
|
fileExtension: c,
|
|
@@ -3436,7 +3436,7 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3436
3436
|
forbiddenSymbolsTooltip: u,
|
|
3437
3437
|
details: S
|
|
3438
3438
|
}) => {
|
|
3439
|
-
const { value: E, invalid: C, invalidMessage: T, onChange: F, inputRef: U } =
|
|
3439
|
+
const { value: E, invalid: C, invalidMessage: T, onChange: F, inputRef: U } = Ws({
|
|
3440
3440
|
value: e,
|
|
3441
3441
|
isEditing: s,
|
|
3442
3442
|
isCreating: r,
|
|
@@ -3448,16 +3448,16 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3448
3448
|
onCreateFolderSave: N
|
|
3449
3449
|
});
|
|
3450
3450
|
if (!s && !r) {
|
|
3451
|
-
const G =
|
|
3451
|
+
const G = Ca(
|
|
3452
3452
|
{
|
|
3453
3453
|
name: e,
|
|
3454
|
-
isFolder: t ===
|
|
3454
|
+
isFolder: t === ut.Folder
|
|
3455
3455
|
},
|
|
3456
3456
|
f,
|
|
3457
3457
|
u
|
|
3458
3458
|
);
|
|
3459
3459
|
return /* @__PURE__ */ a(
|
|
3460
|
-
|
|
3460
|
+
la,
|
|
3461
3461
|
{
|
|
3462
3462
|
className: "max-w-[428px]",
|
|
3463
3463
|
name: e,
|
|
@@ -3492,12 +3492,12 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3492
3492
|
sharedIndicatorClassName: g
|
|
3493
3493
|
}
|
|
3494
3494
|
);
|
|
3495
|
-
},
|
|
3495
|
+
}, ns = (e, t, o, s) => e.flatMap((n) => {
|
|
3496
3496
|
if (!o(n)) return [];
|
|
3497
3497
|
const r = { node: n, parentPath: s };
|
|
3498
3498
|
return n.nodeType !== O.FOLDER || !t.has(n.path) ? [r] : [
|
|
3499
3499
|
r,
|
|
3500
|
-
...
|
|
3500
|
+
...ns(
|
|
3501
3501
|
n.items ?? [],
|
|
3502
3502
|
t,
|
|
3503
3503
|
o,
|
|
@@ -3535,50 +3535,50 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3535
3535
|
autoFocus: X = !1,
|
|
3536
3536
|
onEscape: k
|
|
3537
3537
|
}) => {
|
|
3538
|
-
const { expandedPaths: _, togglePath: V } =
|
|
3538
|
+
const { expandedPaths: _, togglePath: V } = ts({
|
|
3539
3539
|
expandedPaths: o ?? /* @__PURE__ */ new Set(),
|
|
3540
3540
|
onExpandedPathsChange: S
|
|
3541
|
-
}), z = (P) => (c || !
|
|
3542
|
-
() =>
|
|
3541
|
+
}), z = (P) => (c || !qa(P)) && (t || P.nodeType === O.FOLDER), j = H(
|
|
3542
|
+
() => ns(e, _, z),
|
|
3543
3543
|
// isNodeVisible only reads the two flags listed here.
|
|
3544
3544
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3545
3545
|
[e, _, c, t]
|
|
3546
|
-
), ge = Ce(/* @__PURE__ */ new Map()), [
|
|
3546
|
+
), ge = Ce(/* @__PURE__ */ new Map()), [ue, be] = L(), De = (P) => P != null && j.some((oe) => oe.node.path === P), ne = De(ue) ? ue : De(i) ? i : j[0]?.node.path;
|
|
3547
3547
|
Ne(() => {
|
|
3548
3548
|
X && ne != null && ge.current.get(ne)?.focus();
|
|
3549
3549
|
}, []);
|
|
3550
|
-
const
|
|
3550
|
+
const se = (P) => {
|
|
3551
3551
|
g?.(P), V(P.path);
|
|
3552
|
-
},
|
|
3552
|
+
}, pe = (P) => {
|
|
3553
3553
|
P != null && (be(P), ge.current.get(P)?.focus());
|
|
3554
|
-
},
|
|
3554
|
+
}, Ae = (P) => {
|
|
3555
3555
|
const oe = j.findIndex(
|
|
3556
|
-
(
|
|
3556
|
+
(Ge) => ge.current.get(Ge.node.path) === P.target
|
|
3557
3557
|
);
|
|
3558
3558
|
if (oe === -1) return;
|
|
3559
|
-
const { node: we, parentPath: B } = j[oe], Q = we.nodeType === O.FOLDER, ee = _.has(we.path), Ie = getComputedStyle(P.currentTarget).direction === "rtl",
|
|
3559
|
+
const { node: we, parentPath: B } = j[oe], Q = we.nodeType === O.FOLDER, ee = _.has(we.path), Ie = getComputedStyle(P.currentTarget).direction === "rtl", re = Ie ? "ArrowLeft" : "ArrowRight", qe = Ie ? "ArrowRight" : "ArrowLeft";
|
|
3560
3560
|
switch (P.key) {
|
|
3561
3561
|
case "ArrowDown":
|
|
3562
|
-
|
|
3562
|
+
pe(j[oe + 1]?.node.path);
|
|
3563
3563
|
break;
|
|
3564
3564
|
case "ArrowUp":
|
|
3565
|
-
|
|
3565
|
+
pe(j[oe - 1]?.node.path);
|
|
3566
3566
|
break;
|
|
3567
3567
|
case "Home":
|
|
3568
|
-
|
|
3568
|
+
pe(j[0]?.node.path);
|
|
3569
3569
|
break;
|
|
3570
3570
|
case "End":
|
|
3571
|
-
|
|
3571
|
+
pe(j[j.length - 1]?.node.path);
|
|
3572
3572
|
break;
|
|
3573
|
-
case
|
|
3574
|
-
Q && !ee ? V(we.path) : Q && j[oe + 1]?.parentPath === we.path &&
|
|
3573
|
+
case re:
|
|
3574
|
+
Q && !ee ? V(we.path) : Q && j[oe + 1]?.parentPath === we.path && pe(j[oe + 1].node.path);
|
|
3575
3575
|
break;
|
|
3576
3576
|
case qe:
|
|
3577
|
-
Q && ee ? V(we.path) :
|
|
3577
|
+
Q && ee ? V(we.path) : pe(B);
|
|
3578
3578
|
break;
|
|
3579
3579
|
case "Enter":
|
|
3580
3580
|
case " ":
|
|
3581
|
-
Q ?
|
|
3581
|
+
Q ? se(we) : g?.(we);
|
|
3582
3582
|
break;
|
|
3583
3583
|
case "Escape":
|
|
3584
3584
|
if (!k) return;
|
|
@@ -3588,74 +3588,74 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3588
3588
|
return;
|
|
3589
3589
|
}
|
|
3590
3590
|
P.preventDefault();
|
|
3591
|
-
},
|
|
3591
|
+
}, Le = (P, oe, we) => {
|
|
3592
3592
|
let B = P;
|
|
3593
3593
|
we && we.path === p && (B = [
|
|
3594
3594
|
{
|
|
3595
|
-
folderId:
|
|
3596
|
-
id:
|
|
3595
|
+
folderId: vn,
|
|
3596
|
+
id: vn,
|
|
3597
3597
|
items: [],
|
|
3598
3598
|
name: U || "",
|
|
3599
3599
|
nodeType: O.FOLDER,
|
|
3600
3600
|
parentPath: p,
|
|
3601
|
-
path: `${p}/${
|
|
3601
|
+
path: `${p}/${vn}`
|
|
3602
3602
|
},
|
|
3603
3603
|
...P
|
|
3604
3604
|
]);
|
|
3605
3605
|
const Q = B.filter(z);
|
|
3606
3606
|
return Q.map((ee, Ie) => {
|
|
3607
|
-
const { path:
|
|
3607
|
+
const { path: re, nodeType: qe, name: Ge, items: R } = ee, M = qe === O.FOLDER, W = Array.isArray(R) && R.length > 0 && R.some((ke) => ke.nodeType === O.FOLDER || t), q = _.has(re), $ = i === re, le = s.has(re), ye = D === re || re === `${p}/${vn}`, Te = n.has(re), ce = r.has(re), J = m && N && re === m && M, _e = u && ((ke) => u(ke, ee)), xt = $ ? "bg-control-accent-alpha" : "", ze = J ? [] : x?.(ee) ?? [], ot = T ? Ca(
|
|
3608
3608
|
{ name: ee.name, isFolder: M },
|
|
3609
3609
|
T,
|
|
3610
3610
|
F
|
|
3611
3611
|
) : void 0;
|
|
3612
3612
|
return /* @__PURE__ */ a("div", { className: "cursor-pointer", children: /* @__PURE__ */ K("div", { className: "flex flex-col w-full gap-1", children: [
|
|
3613
3613
|
/* @__PURE__ */ a(
|
|
3614
|
-
|
|
3614
|
+
Tt,
|
|
3615
3615
|
{
|
|
3616
|
-
trigger:
|
|
3616
|
+
trigger: ze.length > 0 ? [Ha.ContextMenu] : [],
|
|
3617
3617
|
className: "w-full h-[32px]",
|
|
3618
3618
|
anchorToMouse: !0,
|
|
3619
|
-
items:
|
|
3619
|
+
items: ze,
|
|
3620
3620
|
children: /* @__PURE__ */ K(
|
|
3621
3621
|
"div",
|
|
3622
3622
|
{
|
|
3623
3623
|
ref: (ke) => {
|
|
3624
|
-
ke ? ge.current.set(
|
|
3624
|
+
ke ? ge.current.set(re, ke) : ge.current.delete(re);
|
|
3625
3625
|
},
|
|
3626
3626
|
role: "treeitem",
|
|
3627
|
-
"aria-label": J ? N :
|
|
3627
|
+
"aria-label": J ? N : Ge,
|
|
3628
3628
|
"aria-level": oe + 1,
|
|
3629
3629
|
"aria-posinset": Ie + 1,
|
|
3630
3630
|
"aria-setsize": Q.length,
|
|
3631
3631
|
"aria-expanded": M ? q : void 0,
|
|
3632
3632
|
"aria-selected": $,
|
|
3633
|
-
tabIndex:
|
|
3633
|
+
tabIndex: re === ne ? 0 : -1,
|
|
3634
3634
|
onFocus: (ke) => {
|
|
3635
|
-
ke.target === ke.currentTarget && be(
|
|
3635
|
+
ke.target === ke.currentTarget && be(re);
|
|
3636
3636
|
},
|
|
3637
3637
|
style: { paddingLeft: `${oe * xi}px` },
|
|
3638
3638
|
className: xe(
|
|
3639
3639
|
"py-1 pr-3 gap-2 dial-small-paragraph-text flex justify-between hover:bg-control-accent-alpha-hover rounded-full group/item w-full relative",
|
|
3640
3640
|
"outline-none focus-visible:outline focus-visible:outline-focus focus-visible:-outline-offset-1",
|
|
3641
|
-
|
|
3641
|
+
xt
|
|
3642
3642
|
),
|
|
3643
3643
|
children: [
|
|
3644
3644
|
!ye && /* @__PURE__ */ a(
|
|
3645
3645
|
"div",
|
|
3646
3646
|
{
|
|
3647
3647
|
className: "absolute size-full left-0 top-0 z-0",
|
|
3648
|
-
onClick: () =>
|
|
3648
|
+
onClick: () => se(ee)
|
|
3649
3649
|
}
|
|
3650
3650
|
),
|
|
3651
3651
|
/* @__PURE__ */ a(
|
|
3652
3652
|
"div",
|
|
3653
3653
|
{
|
|
3654
3654
|
className: "relative flex flex-row truncate items-center w-fit h-6 gap-x-1 pl-1",
|
|
3655
|
-
onClick: () => !ye &&
|
|
3655
|
+
onClick: () => !ye && se(ee),
|
|
3656
3656
|
children: /* @__PURE__ */ K(Pe, { children: [
|
|
3657
3657
|
M && /* @__PURE__ */ a(
|
|
3658
|
-
|
|
3658
|
+
Cs,
|
|
3659
3659
|
{
|
|
3660
3660
|
...Ri,
|
|
3661
3661
|
className: xe(
|
|
@@ -3666,26 +3666,26 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3666
3666
|
}
|
|
3667
3667
|
),
|
|
3668
3668
|
/* @__PURE__ */ a(
|
|
3669
|
-
|
|
3669
|
+
no,
|
|
3670
3670
|
{
|
|
3671
|
-
elementId: `${
|
|
3672
|
-
name: J ? N :
|
|
3673
|
-
type: M ?
|
|
3674
|
-
loading:
|
|
3675
|
-
shared:
|
|
3671
|
+
elementId: `${re}-tree-item`,
|
|
3672
|
+
name: J ? N : Ge,
|
|
3673
|
+
type: M ? ut.Folder : ut.File,
|
|
3674
|
+
loading: le,
|
|
3675
|
+
shared: ce,
|
|
3676
3676
|
sharedIndicatorClassName: xe(
|
|
3677
3677
|
"group-hover/item:bg-control-accent-alpha-hover",
|
|
3678
3678
|
$ && "bg-control-accent-alpha"
|
|
3679
3679
|
),
|
|
3680
|
-
iconSize:
|
|
3680
|
+
iconSize: ht,
|
|
3681
3681
|
forbiddenSymbolsRegExp: T,
|
|
3682
3682
|
forbiddenSymbolsTooltip: ot,
|
|
3683
3683
|
...!J && {
|
|
3684
3684
|
editing: ye,
|
|
3685
|
-
creating:
|
|
3685
|
+
creating: re === `${p}/${vn}`,
|
|
3686
3686
|
onSave: b,
|
|
3687
3687
|
onCancel: f,
|
|
3688
|
-
validate:
|
|
3688
|
+
validate: _e,
|
|
3689
3689
|
onCreateFolderSave: E,
|
|
3690
3690
|
onCreateFolderCancel: C
|
|
3691
3691
|
}
|
|
@@ -3694,19 +3694,19 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3694
3694
|
] })
|
|
3695
3695
|
}
|
|
3696
3696
|
),
|
|
3697
|
-
|
|
3698
|
-
|
|
3697
|
+
ze.length > 0 && !ye && !J && /* @__PURE__ */ a("div", { className: "flex-1 flex justify-end", children: /* @__PURE__ */ a(
|
|
3698
|
+
Tt,
|
|
3699
3699
|
{
|
|
3700
3700
|
placement: "bottom-start",
|
|
3701
3701
|
allowedPlacements: ["top-start", "top-end"],
|
|
3702
|
-
items:
|
|
3702
|
+
items: ze,
|
|
3703
3703
|
className: "sticky right-0",
|
|
3704
3704
|
children: /* @__PURE__ */ a(
|
|
3705
|
-
|
|
3705
|
+
Vt,
|
|
3706
3706
|
{
|
|
3707
|
-
size:
|
|
3707
|
+
size: Dn.Small,
|
|
3708
3708
|
className: "invisible group-hover/item:visible",
|
|
3709
|
-
icon: /* @__PURE__ */ a(
|
|
3709
|
+
icon: /* @__PURE__ */ a(bn, { ...A })
|
|
3710
3710
|
}
|
|
3711
3711
|
)
|
|
3712
3712
|
}
|
|
@@ -3716,15 +3716,15 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3716
3716
|
)
|
|
3717
3717
|
}
|
|
3718
3718
|
),
|
|
3719
|
-
q && (R || ee?.path === p) &&
|
|
3720
|
-
] }) }, `${
|
|
3719
|
+
q && (R || ee?.path === p) && Le(R || [], oe + 1, ee)
|
|
3720
|
+
] }) }, `${re}-children`);
|
|
3721
3721
|
});
|
|
3722
3722
|
};
|
|
3723
3723
|
return /* @__PURE__ */ a("div", { className: "flex-1 size-full overflow-y-auto pb-6", children: e.length > 0 ? (
|
|
3724
3724
|
// Focus lives on the roving-tabIndex rows; the root only routes their keys.
|
|
3725
|
-
/* @__PURE__ */ a("div", { role: "tree", "aria-label": G, onKeyDown:
|
|
3725
|
+
/* @__PURE__ */ a("div", { role: "tree", "aria-label": G, onKeyDown: Ae, children: Le(e, 0) })
|
|
3726
3726
|
) : /* @__PURE__ */ a(
|
|
3727
|
-
|
|
3727
|
+
ta,
|
|
3728
3728
|
{
|
|
3729
3729
|
title: l,
|
|
3730
3730
|
description: h,
|
|
@@ -3750,19 +3750,19 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3750
3750
|
const m = [], g = Array.from(e.values());
|
|
3751
3751
|
if (!g.length || !t)
|
|
3752
3752
|
return m;
|
|
3753
|
-
const x =
|
|
3753
|
+
const x = oo(N), b = x ? g.some((f) => x.test(f.name)) : !1;
|
|
3754
3754
|
if (t[y.Download] && !b && m.push({
|
|
3755
3755
|
key: y.Download,
|
|
3756
3756
|
label: t[y.Download],
|
|
3757
3757
|
title: t[y.Download],
|
|
3758
|
-
icon: /* @__PURE__ */ a(
|
|
3758
|
+
icon: /* @__PURE__ */ a(oa, { ...A }),
|
|
3759
3759
|
onClick: () => r(g)
|
|
3760
3760
|
}), t[y.Move] && !b && m.push({
|
|
3761
3761
|
key: y.Move,
|
|
3762
3762
|
label: t[y.Move],
|
|
3763
3763
|
title: t[y.Move],
|
|
3764
3764
|
icon: /* @__PURE__ */ a(
|
|
3765
|
-
|
|
3765
|
+
pa,
|
|
3766
3766
|
{
|
|
3767
3767
|
width: A.size,
|
|
3768
3768
|
height: A.size
|
|
@@ -3774,7 +3774,7 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3774
3774
|
label: t[y.Copy],
|
|
3775
3775
|
title: t[y.Copy],
|
|
3776
3776
|
icon: /* @__PURE__ */ a(
|
|
3777
|
-
|
|
3777
|
+
ua,
|
|
3778
3778
|
{
|
|
3779
3779
|
width: A.size,
|
|
3780
3780
|
height: A.size
|
|
@@ -3785,7 +3785,7 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3785
3785
|
key: y.Duplicate,
|
|
3786
3786
|
label: t[y.Duplicate],
|
|
3787
3787
|
title: t[y.Duplicate],
|
|
3788
|
-
icon: /* @__PURE__ */ a(
|
|
3788
|
+
icon: /* @__PURE__ */ a(aa, { ...A }),
|
|
3789
3789
|
onClick: () => o(g)
|
|
3790
3790
|
}), t[y.Unshare] && i) {
|
|
3791
3791
|
const f = g.some(
|
|
@@ -3798,7 +3798,7 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3798
3798
|
disabled: f,
|
|
3799
3799
|
tooltip: f ? "Selected items contain item which can not be unshared" : void 0,
|
|
3800
3800
|
icon: /* @__PURE__ */ a(
|
|
3801
|
-
|
|
3801
|
+
fa,
|
|
3802
3802
|
{
|
|
3803
3803
|
width: A.size,
|
|
3804
3804
|
height: A.size
|
|
@@ -3818,7 +3818,7 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3818
3818
|
label: t[y.RemoveAccess],
|
|
3819
3819
|
title: t[y.RemoveAccess],
|
|
3820
3820
|
disabled: f,
|
|
3821
|
-
icon: /* @__PURE__ */ a(
|
|
3821
|
+
icon: /* @__PURE__ */ a(sa, { ...A }),
|
|
3822
3822
|
onClick: () => {
|
|
3823
3823
|
l(g), p();
|
|
3824
3824
|
}
|
|
@@ -3826,13 +3826,13 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3826
3826
|
}
|
|
3827
3827
|
if (t[y.Delete]) {
|
|
3828
3828
|
const f = g.some(
|
|
3829
|
-
(u) => u.permissions && !u.permissions.includes(
|
|
3829
|
+
(u) => u.permissions && !u.permissions.includes(jt.WRITE)
|
|
3830
3830
|
);
|
|
3831
3831
|
m.push({
|
|
3832
3832
|
key: y.Delete,
|
|
3833
3833
|
label: t[y.Delete],
|
|
3834
3834
|
title: t[y.Delete],
|
|
3835
|
-
icon: /* @__PURE__ */ a(
|
|
3835
|
+
icon: /* @__PURE__ */ a(ra, { ...A }),
|
|
3836
3836
|
danger: !0,
|
|
3837
3837
|
disabled: f,
|
|
3838
3838
|
tooltip: f ? "Selected items contain item which can not be deleted" : void 0,
|
|
@@ -3872,22 +3872,22 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3872
3872
|
forbiddenSymbolsRegExp: c,
|
|
3873
3873
|
forbiddenSymbolsTooltip: D
|
|
3874
3874
|
}) => /* @__PURE__ */ a("div", { className: "flex", children: /* @__PURE__ */ a("div", { className: "flex flex-1 min-w-0", children: /* @__PURE__ */ a(
|
|
3875
|
-
|
|
3875
|
+
no,
|
|
3876
3876
|
{
|
|
3877
|
-
type: o === O.FOLDER ?
|
|
3877
|
+
type: o === O.FOLDER ? ut.Folder : ut.File,
|
|
3878
3878
|
name: t,
|
|
3879
3879
|
elementId: e,
|
|
3880
3880
|
shared: l,
|
|
3881
|
-
iconSize:
|
|
3881
|
+
iconSize: ht,
|
|
3882
3882
|
sharedIndicatorClassName: h,
|
|
3883
3883
|
hideTooltip: v,
|
|
3884
3884
|
forbiddenSymbolsRegExp: c,
|
|
3885
3885
|
forbiddenSymbolsTooltip: D,
|
|
3886
3886
|
details: /* @__PURE__ */ K("div", { className: "flex items-center gap-1 dial-tiny-text text-secondary", children: [
|
|
3887
|
-
/* @__PURE__ */ a("span", { children: o === O.ITEM ?
|
|
3888
|
-
n && s && /* @__PURE__ */ a(
|
|
3887
|
+
/* @__PURE__ */ a("span", { children: o === O.ITEM ? Nn(s) : "" }),
|
|
3888
|
+
n && s && /* @__PURE__ */ a(Qn, { size: 2, className: "text-secondary" }),
|
|
3889
3889
|
n ? /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a(
|
|
3890
|
-
|
|
3890
|
+
ja,
|
|
3891
3891
|
{
|
|
3892
3892
|
value: n,
|
|
3893
3893
|
locale: r?.toString(),
|
|
@@ -3920,17 +3920,17 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3920
3920
|
]);
|
|
3921
3921
|
if (n.data?.isTemporary && n.data.id === v)
|
|
3922
3922
|
return /* @__PURE__ */ a(
|
|
3923
|
-
|
|
3923
|
+
no,
|
|
3924
3924
|
{
|
|
3925
3925
|
name: n.data.name,
|
|
3926
|
-
type:
|
|
3926
|
+
type: ut.Folder,
|
|
3927
3927
|
elementId: `new-folder-${n.data.id}`,
|
|
3928
3928
|
editing: !0,
|
|
3929
3929
|
creating: !0,
|
|
3930
3930
|
loading: N,
|
|
3931
3931
|
shared: m,
|
|
3932
3932
|
sharedIndicatorClassName: b,
|
|
3933
|
-
iconSize:
|
|
3933
|
+
iconSize: ht,
|
|
3934
3934
|
validate: l,
|
|
3935
3935
|
onSave: i,
|
|
3936
3936
|
onCancel: h,
|
|
@@ -3951,19 +3951,19 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3951
3951
|
onRenameSave: T,
|
|
3952
3952
|
onRenameCancel: F
|
|
3953
3953
|
} = n.context;
|
|
3954
|
-
if (f ===
|
|
3954
|
+
if (f === Ht.Grid && u === n.data?.path && S && n.data) {
|
|
3955
3955
|
const X = E(S);
|
|
3956
3956
|
return /* @__PURE__ */ a(
|
|
3957
|
-
|
|
3957
|
+
no,
|
|
3958
3958
|
{
|
|
3959
3959
|
name: X,
|
|
3960
|
-
type: r === O.FOLDER ?
|
|
3960
|
+
type: r === O.FOLDER ? ut.Folder : ut.File,
|
|
3961
3961
|
fileExtension: S.name.split(".").pop(),
|
|
3962
3962
|
elementId: `rename-${n.data.id}`,
|
|
3963
3963
|
editing: !0,
|
|
3964
3964
|
shared: m,
|
|
3965
3965
|
sharedIndicatorClassName: b,
|
|
3966
|
-
iconSize:
|
|
3966
|
+
iconSize: ht,
|
|
3967
3967
|
validate: (k) => C(k, S),
|
|
3968
3968
|
onSave: T,
|
|
3969
3969
|
onCancel: F,
|
|
@@ -3993,7 +3993,7 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
3993
3993
|
forbiddenSymbolsTooltip: n.context.forbiddenSymbolsTooltip
|
|
3994
3994
|
}
|
|
3995
3995
|
);
|
|
3996
|
-
const G =
|
|
3996
|
+
const G = Ca(
|
|
3997
3997
|
{
|
|
3998
3998
|
name: n.data.name,
|
|
3999
3999
|
isFolder: r === O.FOLDER
|
|
@@ -4002,23 +4002,23 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
4002
4002
|
n.context.forbiddenSymbolsTooltip
|
|
4003
4003
|
);
|
|
4004
4004
|
return r === O.FOLDER ? /* @__PURE__ */ a(
|
|
4005
|
-
|
|
4005
|
+
Wa,
|
|
4006
4006
|
{
|
|
4007
4007
|
name: n.data.name,
|
|
4008
4008
|
shared: m,
|
|
4009
4009
|
sharedIndicatorClassName: b,
|
|
4010
|
-
iconSize:
|
|
4010
|
+
iconSize: ht,
|
|
4011
4011
|
hideTooltip: x,
|
|
4012
4012
|
isInvalidName: !!G,
|
|
4013
4013
|
tooltipContent: G
|
|
4014
4014
|
}
|
|
4015
4015
|
) : /* @__PURE__ */ a(
|
|
4016
|
-
|
|
4016
|
+
la,
|
|
4017
4017
|
{
|
|
4018
4018
|
name: n.data.name,
|
|
4019
4019
|
shared: m,
|
|
4020
4020
|
sharedIndicatorClassName: b,
|
|
4021
|
-
iconSize:
|
|
4021
|
+
iconSize: ht,
|
|
4022
4022
|
hideTooltip: x,
|
|
4023
4023
|
isInvalidName: !!G,
|
|
4024
4024
|
tooltipContent: G
|
|
@@ -4033,17 +4033,17 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
4033
4033
|
suppressSizeToFit: !0,
|
|
4034
4034
|
cellRenderer: (s) => {
|
|
4035
4035
|
const n = s.context?.disabledRowIds?.has(s.data?.path) ?? !1;
|
|
4036
|
-
return /* @__PURE__ */ a(
|
|
4036
|
+
return /* @__PURE__ */ a(ja, { ...s, hideTooltip: n });
|
|
4037
4037
|
},
|
|
4038
4038
|
cellRendererParams: {
|
|
4039
4039
|
locale: t,
|
|
4040
4040
|
options: o
|
|
4041
4041
|
},
|
|
4042
4042
|
filterValueGetter: (s) => {
|
|
4043
|
-
const n = s.data[s.colDef.field || ""], r =
|
|
4043
|
+
const n = s.data[s.colDef.field || ""], r = Hs(n);
|
|
4044
4044
|
return r ? new Intl.DateTimeFormat(
|
|
4045
|
-
t ||
|
|
4046
|
-
o ||
|
|
4045
|
+
t || Us,
|
|
4046
|
+
o || Gs
|
|
4047
4047
|
).format(r) : "";
|
|
4048
4048
|
}
|
|
4049
4049
|
}), ki = (e) => ({
|
|
@@ -4052,8 +4052,8 @@ const ei = 12, ti = 8, ni = "w-full flex justify-center", oi = "w-auto max-w-ful
|
|
|
4052
4052
|
headerName: e,
|
|
4053
4053
|
width: 120,
|
|
4054
4054
|
suppressSizeToFit: !0,
|
|
4055
|
-
cellRenderer: (t) => t.data.nodeType === O.ITEM ?
|
|
4056
|
-
filterValueGetter: (t) => t.data.nodeType === O.ITEM ?
|
|
4055
|
+
cellRenderer: (t) => t.data.nodeType === O.ITEM ? Nn(t.data.contentLength) : "",
|
|
4056
|
+
filterValueGetter: (t) => t.data.nodeType === O.ITEM ? Nn(t.data.contentLength) : ""
|
|
4057
4057
|
}), Oi = (e) => {
|
|
4058
4058
|
const t = e.event;
|
|
4059
4059
|
if (!(t?.target ?? null)?.closest("input") || !t) return !1;
|
|
@@ -4093,9 +4093,9 @@ function Mi({
|
|
|
4093
4093
|
const N = p.context?.disabledRowIds?.has(p.data.path) ?? !1;
|
|
4094
4094
|
let m = p.data.path;
|
|
4095
4095
|
if (p.context?.hideSearchPathItemName && (p.data.parentPath ? m = p.data.parentPath : m = m.replace(/\/[^/]+\/?$/, "") || "/"), !v || !h)
|
|
4096
|
-
return /* @__PURE__ */ a(
|
|
4096
|
+
return /* @__PURE__ */ a(Bt, { text: m, hideTooltip: N });
|
|
4097
4097
|
const g = m.replace(v, h);
|
|
4098
|
-
return /* @__PURE__ */ a(
|
|
4098
|
+
return /* @__PURE__ */ a(Bt, { text: g, hideTooltip: N });
|
|
4099
4099
|
}
|
|
4100
4100
|
},
|
|
4101
4101
|
Pi("Modified Date")(o, s),
|
|
@@ -4147,7 +4147,7 @@ function Mi({
|
|
|
4147
4147
|
]) };
|
|
4148
4148
|
}
|
|
4149
4149
|
const Li = () => {
|
|
4150
|
-
const e =
|
|
4150
|
+
const e = ys(Qa);
|
|
4151
4151
|
if (!e)
|
|
4152
4152
|
throw new Error(
|
|
4153
4153
|
"useFileManagerContext must be used within <FileManagerProvider>"
|
|
@@ -4180,12 +4180,12 @@ const Li = () => {
|
|
|
4180
4180
|
const T = [];
|
|
4181
4181
|
if (!e)
|
|
4182
4182
|
return T;
|
|
4183
|
-
const F = !u &&
|
|
4183
|
+
const F = !u && oo(f)?.test(C.name);
|
|
4184
4184
|
e[y.AddSibling] && C.nodeType === O.FOLDER && T.push({
|
|
4185
4185
|
key: "addSibling",
|
|
4186
4186
|
label: e[y.AddSibling],
|
|
4187
4187
|
icon: /* @__PURE__ */ a(
|
|
4188
|
-
|
|
4188
|
+
Ka,
|
|
4189
4189
|
{
|
|
4190
4190
|
width: A.size,
|
|
4191
4191
|
height: A.size,
|
|
@@ -4198,7 +4198,7 @@ const Li = () => {
|
|
|
4198
4198
|
key: "addChild",
|
|
4199
4199
|
label: e[y.AddChild],
|
|
4200
4200
|
icon: /* @__PURE__ */ a(
|
|
4201
|
-
|
|
4201
|
+
Za,
|
|
4202
4202
|
{
|
|
4203
4203
|
width: A.size,
|
|
4204
4204
|
height: A.size,
|
|
@@ -4209,13 +4209,13 @@ const Li = () => {
|
|
|
4209
4209
|
},
|
|
4210
4210
|
{
|
|
4211
4211
|
key: "divider",
|
|
4212
|
-
type:
|
|
4212
|
+
type: ha.Divider
|
|
4213
4213
|
}
|
|
4214
4214
|
), e[y.OpenInNewTab] && typeof m == "function" && C.nodeType === O.ITEM && !F && T.push({
|
|
4215
4215
|
key: y.OpenInNewTab,
|
|
4216
4216
|
label: e[y.OpenInNewTab],
|
|
4217
4217
|
icon: /* @__PURE__ */ a(
|
|
4218
|
-
|
|
4218
|
+
Qo,
|
|
4219
4219
|
{
|
|
4220
4220
|
...A,
|
|
4221
4221
|
className: "text-secondary"
|
|
@@ -4227,13 +4227,13 @@ const Li = () => {
|
|
|
4227
4227
|
e[y.Duplicate] && U && !F && T.push({
|
|
4228
4228
|
key: y.Duplicate,
|
|
4229
4229
|
label: e[y.Duplicate],
|
|
4230
|
-
icon: /* @__PURE__ */ a(
|
|
4230
|
+
icon: /* @__PURE__ */ a(aa, { ...A, className: "text-secondary" }),
|
|
4231
4231
|
onClick: () => t(C)
|
|
4232
4232
|
}), e[y.Copy] && !F && T.push({
|
|
4233
4233
|
key: y.Copy,
|
|
4234
4234
|
label: e[y.Copy],
|
|
4235
4235
|
icon: /* @__PURE__ */ a(
|
|
4236
|
-
|
|
4236
|
+
ua,
|
|
4237
4237
|
{
|
|
4238
4238
|
width: A.size,
|
|
4239
4239
|
height: A.size,
|
|
@@ -4245,7 +4245,7 @@ const Li = () => {
|
|
|
4245
4245
|
key: y.Move,
|
|
4246
4246
|
label: e[y.Move],
|
|
4247
4247
|
icon: /* @__PURE__ */ a(
|
|
4248
|
-
|
|
4248
|
+
pa,
|
|
4249
4249
|
{
|
|
4250
4250
|
width: A.size,
|
|
4251
4251
|
height: A.size,
|
|
@@ -4257,7 +4257,7 @@ const Li = () => {
|
|
|
4257
4257
|
key: y.Download,
|
|
4258
4258
|
label: e[y.Download],
|
|
4259
4259
|
icon: /* @__PURE__ */ a(
|
|
4260
|
-
|
|
4260
|
+
oa,
|
|
4261
4261
|
{
|
|
4262
4262
|
...A,
|
|
4263
4263
|
className: "text-secondary"
|
|
@@ -4268,7 +4268,7 @@ const Li = () => {
|
|
|
4268
4268
|
key: y.ManagePermissions,
|
|
4269
4269
|
label: e[y.ManagePermissions],
|
|
4270
4270
|
icon: /* @__PURE__ */ a(
|
|
4271
|
-
|
|
4271
|
+
Qo,
|
|
4272
4272
|
{
|
|
4273
4273
|
...A,
|
|
4274
4274
|
className: "text-secondary"
|
|
@@ -4280,14 +4280,14 @@ const Li = () => {
|
|
|
4280
4280
|
e[y.Preview] && typeof N == "function" && C.nodeType === O.ITEM && k && !F && T.push({
|
|
4281
4281
|
key: y.Preview,
|
|
4282
4282
|
label: e[y.Preview],
|
|
4283
|
-
icon: /* @__PURE__ */ a(
|
|
4283
|
+
icon: /* @__PURE__ */ a(na, { ...A, className: "text-secondary" }),
|
|
4284
4284
|
onClick: () => N?.(C.path)
|
|
4285
4285
|
});
|
|
4286
|
-
const _ = !C.permissions || C.permissions.includes(
|
|
4286
|
+
const _ = !C.permissions || C.permissions.includes(jt.WRITE);
|
|
4287
4287
|
e[y.Delete] && _ && T.push({
|
|
4288
4288
|
key: y.Delete,
|
|
4289
4289
|
label: e[y.Delete],
|
|
4290
|
-
icon: /* @__PURE__ */ a(
|
|
4290
|
+
icon: /* @__PURE__ */ a(ra, { ...A }),
|
|
4291
4291
|
danger: !0,
|
|
4292
4292
|
onClick: () => i(C, C.parentPath ?? "")
|
|
4293
4293
|
});
|
|
@@ -4296,7 +4296,7 @@ const Li = () => {
|
|
|
4296
4296
|
key: y.Rename,
|
|
4297
4297
|
label: e[y.Rename],
|
|
4298
4298
|
icon: /* @__PURE__ */ a(
|
|
4299
|
-
|
|
4299
|
+
Ba,
|
|
4300
4300
|
{
|
|
4301
4301
|
...A,
|
|
4302
4302
|
className: "text-secondary"
|
|
@@ -4307,7 +4307,7 @@ const Li = () => {
|
|
|
4307
4307
|
key: y.Info,
|
|
4308
4308
|
label: e[y.Info],
|
|
4309
4309
|
icon: /* @__PURE__ */ a(
|
|
4310
|
-
|
|
4310
|
+
gs,
|
|
4311
4311
|
{
|
|
4312
4312
|
...A,
|
|
4313
4313
|
className: "text-secondary"
|
|
@@ -4318,7 +4318,7 @@ const Li = () => {
|
|
|
4318
4318
|
key: y.Unshare,
|
|
4319
4319
|
label: e[y.Unshare],
|
|
4320
4320
|
icon: /* @__PURE__ */ a(
|
|
4321
|
-
|
|
4321
|
+
fa,
|
|
4322
4322
|
{
|
|
4323
4323
|
width: A.size,
|
|
4324
4324
|
height: A.size,
|
|
@@ -4330,7 +4330,7 @@ const Li = () => {
|
|
|
4330
4330
|
key: y.RemoveAccess,
|
|
4331
4331
|
label: e[y.RemoveAccess],
|
|
4332
4332
|
icon: /* @__PURE__ */ a(
|
|
4333
|
-
|
|
4333
|
+
sa,
|
|
4334
4334
|
{
|
|
4335
4335
|
...A,
|
|
4336
4336
|
className: "text-secondary"
|
|
@@ -4368,25 +4368,25 @@ const Li = () => {
|
|
|
4368
4368
|
onTreeAddChild: s
|
|
4369
4369
|
}) => {
|
|
4370
4370
|
const [n, r] = L(
|
|
4371
|
-
|
|
4371
|
+
Dt.Grid
|
|
4372
4372
|
), i = d(
|
|
4373
4373
|
(c) => {
|
|
4374
|
-
e?.(c), r(
|
|
4374
|
+
e?.(c), r(Dt.Grid);
|
|
4375
4375
|
},
|
|
4376
4376
|
[e]
|
|
4377
4377
|
), l = d(
|
|
4378
4378
|
(c) => {
|
|
4379
|
-
o?.(c), r(
|
|
4379
|
+
o?.(c), r(Dt.Tree);
|
|
4380
4380
|
},
|
|
4381
4381
|
[o]
|
|
4382
4382
|
), h = d(
|
|
4383
4383
|
(c) => {
|
|
4384
|
-
t?.(c), r(
|
|
4384
|
+
t?.(c), r(Dt.Grid);
|
|
4385
4385
|
},
|
|
4386
4386
|
[t]
|
|
4387
4387
|
), v = d(
|
|
4388
4388
|
(c) => {
|
|
4389
|
-
s?.(c), r(
|
|
4389
|
+
s?.(c), r(Dt.Tree);
|
|
4390
4390
|
},
|
|
4391
4391
|
[s]
|
|
4392
4392
|
);
|
|
@@ -4399,7 +4399,7 @@ const Li = () => {
|
|
|
4399
4399
|
};
|
|
4400
4400
|
}, Bi = {
|
|
4401
4401
|
field: nt.Name,
|
|
4402
|
-
direction:
|
|
4402
|
+
direction: $t.Asc
|
|
4403
4403
|
}, Wi = (e) => /* @__PURE__ */ a(qr, { ...e, children: /* @__PURE__ */ a(Hi, {}) }), Hi = () => {
|
|
4404
4404
|
const {
|
|
4405
4405
|
className: e,
|
|
@@ -4436,14 +4436,14 @@ const Li = () => {
|
|
|
4436
4436
|
handleTableRowClick: z,
|
|
4437
4437
|
handleSelectionClick: j,
|
|
4438
4438
|
onGridApiChange: ge,
|
|
4439
|
-
handleOpenDestinationFolderPopup:
|
|
4439
|
+
handleOpenDestinationFolderPopup: ue,
|
|
4440
4440
|
handleCloseDestinationFolderPopup: be,
|
|
4441
4441
|
openDestinationFolderPopup: De,
|
|
4442
4442
|
destinationFolderMode: ne,
|
|
4443
|
-
handleSetCopiedFiles:
|
|
4444
|
-
handleSetMovedFiles:
|
|
4445
|
-
handleDuplicate:
|
|
4446
|
-
handleCopyTo:
|
|
4443
|
+
handleSetCopiedFiles: se,
|
|
4444
|
+
handleSetMovedFiles: pe,
|
|
4445
|
+
handleDuplicate: Ae,
|
|
4446
|
+
handleCopyTo: Le,
|
|
4447
4447
|
handleMoveTo: P,
|
|
4448
4448
|
handleGridAddSibling: oe,
|
|
4449
4449
|
handleGridAddChild: we,
|
|
@@ -4451,211 +4451,211 @@ const Li = () => {
|
|
|
4451
4451
|
handleTreeAddChild: Q,
|
|
4452
4452
|
handleDownloadFiles: ee,
|
|
4453
4453
|
openDeleteConfirmation: Ie,
|
|
4454
|
-
closeDeleteConfirmation:
|
|
4454
|
+
closeDeleteConfirmation: re,
|
|
4455
4455
|
confirmDelete: qe,
|
|
4456
|
-
deleteConfirmationOpen:
|
|
4456
|
+
deleteConfirmationOpen: Ge,
|
|
4457
4457
|
itemsToDelete: R,
|
|
4458
4458
|
renamedPath: M,
|
|
4459
4459
|
renamedItem: W,
|
|
4460
4460
|
onRename: q,
|
|
4461
4461
|
onRenameSave: $,
|
|
4462
|
-
onRenameCancel:
|
|
4462
|
+
onRenameCancel: le,
|
|
4463
4463
|
onRenameValidate: ye,
|
|
4464
4464
|
createdFolderPath: Te,
|
|
4465
|
-
forbiddenSymbolsRegExp:
|
|
4465
|
+
forbiddenSymbolsRegExp: ce,
|
|
4466
4466
|
forbiddenSymbolsTooltip: J,
|
|
4467
|
-
skipForbiddenSymbolsCheckForActions:
|
|
4468
|
-
getDisplayName:
|
|
4469
|
-
isDragging:
|
|
4467
|
+
skipForbiddenSymbolsCheckForActions: _e,
|
|
4468
|
+
getDisplayName: xt,
|
|
4469
|
+
isDragging: ze,
|
|
4470
4470
|
isDraggingOverWindow: ot,
|
|
4471
4471
|
handleDragEnter: ke,
|
|
4472
|
-
handleDragLeave:
|
|
4473
|
-
handleDragOver:
|
|
4474
|
-
handleDrop:
|
|
4475
|
-
onUploadFiles:
|
|
4476
|
-
onValidateUpload:
|
|
4477
|
-
maxFileSize:
|
|
4478
|
-
newActions:
|
|
4479
|
-
isNewButtonVisible:
|
|
4480
|
-
isNewButtonDisabled:
|
|
4481
|
-
newFolderTempId:
|
|
4472
|
+
handleDragLeave: ao,
|
|
4473
|
+
handleDragOver: so,
|
|
4474
|
+
handleDrop: ro,
|
|
4475
|
+
onUploadFiles: io,
|
|
4476
|
+
onValidateUpload: lo,
|
|
4477
|
+
maxFileSize: It,
|
|
4478
|
+
newActions: Zt,
|
|
4479
|
+
isNewButtonVisible: Ft,
|
|
4480
|
+
isNewButtonDisabled: Tn,
|
|
4481
|
+
newFolderTempId: Rn,
|
|
4482
4482
|
cancelFolderCreation: at,
|
|
4483
|
-
saveFolderCreation:
|
|
4484
|
-
validateFolderName:
|
|
4485
|
-
startFolderCreation:
|
|
4486
|
-
conflictingFiles:
|
|
4487
|
-
conflictResolutionOpen:
|
|
4483
|
+
saveFolderCreation: St,
|
|
4484
|
+
validateFolderName: xn,
|
|
4485
|
+
startFolderCreation: In,
|
|
4486
|
+
conflictingFiles: co,
|
|
4487
|
+
conflictResolutionOpen: ho,
|
|
4488
4488
|
handleConflictReplace: st,
|
|
4489
4489
|
handleConflictDuplicate: Fe,
|
|
4490
|
-
handleConflictCancel:
|
|
4491
|
-
handleConflictDecideForEach:
|
|
4490
|
+
handleConflictCancel: Kt,
|
|
4491
|
+
handleConflictDecideForEach: Fn,
|
|
4492
4492
|
uploadConflictingFiles: Ye,
|
|
4493
4493
|
uploadConflictResolutionOpen: Qe,
|
|
4494
|
-
handleUploadConflictReplace:
|
|
4495
|
-
handleUploadConflictDuplicate:
|
|
4494
|
+
handleUploadConflictReplace: pt,
|
|
4495
|
+
handleUploadConflictDuplicate: Sn,
|
|
4496
4496
|
handleUploadConflictCancel: rt,
|
|
4497
|
-
handleUploadConflictDecideForEach:
|
|
4498
|
-
openMetadataPopup:
|
|
4499
|
-
fileMetadataPopupOptions:
|
|
4500
|
-
isMetadataPopupOpen:
|
|
4501
|
-
selectedFileForMetadata:
|
|
4502
|
-
closeMetadataPopup:
|
|
4503
|
-
onUnshareFiles:
|
|
4504
|
-
onRemoveFilesAccess:
|
|
4497
|
+
handleUploadConflictDecideForEach: uo,
|
|
4498
|
+
openMetadataPopup: po,
|
|
4499
|
+
fileMetadataPopupOptions: je,
|
|
4500
|
+
isMetadataPopupOpen: En,
|
|
4501
|
+
selectedFileForMetadata: ft,
|
|
4502
|
+
closeMetadataPopup: fo,
|
|
4503
|
+
onUnshareFiles: de,
|
|
4504
|
+
onRemoveFilesAccess: Ze,
|
|
4505
4505
|
actionsRef: Je,
|
|
4506
|
-
searchInProgress:
|
|
4506
|
+
searchInProgress: mt,
|
|
4507
4507
|
isSearchMode: it,
|
|
4508
|
-
emptyStateIcon:
|
|
4509
|
-
emptyStateTitle:
|
|
4510
|
-
emptyStateDescription:
|
|
4511
|
-
searchEmptyStateTitle:
|
|
4508
|
+
emptyStateIcon: Ct,
|
|
4509
|
+
emptyStateTitle: An = "This folder is empty",
|
|
4510
|
+
emptyStateDescription: Pn,
|
|
4511
|
+
searchEmptyStateTitle: kn = "No data",
|
|
4512
4512
|
sharedWithMeIds: lt,
|
|
4513
|
-
onFolderPopupPathChange:
|
|
4514
|
-
onManagePermissions:
|
|
4515
|
-
onPreview:
|
|
4516
|
-
onOpenInNewTab:
|
|
4517
|
-
previewExtensions:
|
|
4518
|
-
isRenameFileAvailable:
|
|
4519
|
-
isDuplicateFolderAvailable:
|
|
4520
|
-
getDisabledTooltip:
|
|
4521
|
-
fileTooLargeTooltip:
|
|
4522
|
-
unsupportedFileTypeTooltip:
|
|
4523
|
-
gridClassName:
|
|
4524
|
-
nonClickableTableColumns:
|
|
4525
|
-
hideSearchPathItemName:
|
|
4526
|
-
showHiddenFileSwitcherInDestinationPopup:
|
|
4527
|
-
showCreateFolderButtonInDestinationPopup:
|
|
4528
|
-
newFolderDefaultName:
|
|
4513
|
+
onFolderPopupPathChange: Et,
|
|
4514
|
+
onManagePermissions: At,
|
|
4515
|
+
onPreview: mo,
|
|
4516
|
+
onOpenInNewTab: Co,
|
|
4517
|
+
previewExtensions: go,
|
|
4518
|
+
isRenameFileAvailable: vo,
|
|
4519
|
+
isDuplicateFolderAvailable: wo,
|
|
4520
|
+
getDisabledTooltip: Xt,
|
|
4521
|
+
fileTooLargeTooltip: On,
|
|
4522
|
+
unsupportedFileTypeTooltip: Mn,
|
|
4523
|
+
gridClassName: yo,
|
|
4524
|
+
nonClickableTableColumns: qt,
|
|
4525
|
+
hideSearchPathItemName: gt,
|
|
4526
|
+
showHiddenFileSwitcherInDestinationPopup: No,
|
|
4527
|
+
showCreateFolderButtonInDestinationPopup: Yt,
|
|
4528
|
+
newFolderDefaultName: Pt
|
|
4529
4529
|
} = Li(), {
|
|
4530
|
-
header:
|
|
4531
|
-
containerClassName:
|
|
4532
|
-
additionalButtons:
|
|
4533
|
-
tabs:
|
|
4534
|
-
activeTab:
|
|
4535
|
-
onTabChange:
|
|
4536
|
-
tabsAriaLabel:
|
|
4537
|
-
...
|
|
4530
|
+
header: Oe = ir,
|
|
4531
|
+
containerClassName: fe = Ys,
|
|
4532
|
+
additionalButtons: vt,
|
|
4533
|
+
tabs: ae,
|
|
4534
|
+
activeTab: Ee,
|
|
4535
|
+
onTabChange: Me,
|
|
4536
|
+
tabsAriaLabel: kt = nr,
|
|
4537
|
+
...Ln
|
|
4538
4538
|
} = n ?? {}, {
|
|
4539
|
-
searchable:
|
|
4539
|
+
searchable: Ot = !0,
|
|
4540
4540
|
// Owned by the provider and reached through effectiveSearchValue below.
|
|
4541
|
-
value:
|
|
4542
|
-
onSearchChange:
|
|
4543
|
-
elementId:
|
|
4544
|
-
placeholder:
|
|
4545
|
-
size:
|
|
4546
|
-
withoutBorder:
|
|
4547
|
-
disabled:
|
|
4548
|
-
invalid:
|
|
4549
|
-
searchClassName:
|
|
4550
|
-
searchContainerClassName:
|
|
4551
|
-
...
|
|
4541
|
+
value: va,
|
|
4542
|
+
onSearchChange: wa,
|
|
4543
|
+
elementId: Qt,
|
|
4544
|
+
placeholder: bo,
|
|
4545
|
+
size: Do,
|
|
4546
|
+
withoutBorder: To,
|
|
4547
|
+
disabled: Ro,
|
|
4548
|
+
invalid: xo,
|
|
4549
|
+
searchClassName: Io,
|
|
4550
|
+
searchContainerClassName: Fo,
|
|
4551
|
+
...So
|
|
4552
4552
|
} = i ?? {}, {
|
|
4553
|
-
sortable:
|
|
4554
|
-
sort:
|
|
4555
|
-
defaultSort:
|
|
4556
|
-
onSortChange:
|
|
4557
|
-
...
|
|
4558
|
-
} = l ?? {}, [
|
|
4553
|
+
sortable: Mt = !0,
|
|
4554
|
+
sort: Jt,
|
|
4555
|
+
defaultSort: Eo = Bi,
|
|
4556
|
+
onSortChange: _n,
|
|
4557
|
+
...zn
|
|
4558
|
+
} = l ?? {}, [Ao, Po] = L(Eo), en = Jt ?? Ao, Bn = Ce(null), Wn = d(
|
|
4559
4559
|
(w) => {
|
|
4560
|
-
|
|
4560
|
+
Bn.current = w, ge?.(w);
|
|
4561
4561
|
},
|
|
4562
4562
|
[ge]
|
|
4563
|
-
),
|
|
4563
|
+
), ko = d(
|
|
4564
4564
|
(w) => {
|
|
4565
|
-
|
|
4565
|
+
Bn.current?.applyColumnState({ defaultState: { sort: null } }), Jt || Po(w), _n?.(w);
|
|
4566
4566
|
},
|
|
4567
|
-
[
|
|
4568
|
-
),
|
|
4569
|
-
() =>
|
|
4570
|
-
[C,
|
|
4571
|
-
),
|
|
4572
|
-
createFolderTriggerView:
|
|
4573
|
-
onGridCreateSiblingFolder:
|
|
4574
|
-
onTreeCreateSiblingFolder:
|
|
4575
|
-
onGridCreateChildFolder:
|
|
4576
|
-
onTreeCreateChildFolder:
|
|
4567
|
+
[Jt, _n]
|
|
4568
|
+
), Hn = H(
|
|
4569
|
+
() => Mt ? Sr(C, en) : C,
|
|
4570
|
+
[C, en, Mt]
|
|
4571
|
+
), Lt = Ns(), { renameTriggerView: _t, onGridRename: Oo, onTreeRename: Un } = mr({ onRename: q }), {
|
|
4572
|
+
createFolderTriggerView: tn,
|
|
4573
|
+
onGridCreateSiblingFolder: Mo,
|
|
4574
|
+
onTreeCreateSiblingFolder: nn,
|
|
4575
|
+
onGridCreateChildFolder: Lo,
|
|
4576
|
+
onTreeCreateChildFolder: on
|
|
4577
4577
|
} = zi({
|
|
4578
4578
|
onGridAddSibling: oe,
|
|
4579
4579
|
onGridAddChild: we,
|
|
4580
4580
|
onTreeAddSibling: B,
|
|
4581
4581
|
onTreeAddChild: Q
|
|
4582
4582
|
}), {
|
|
4583
|
-
columnDefs:
|
|
4584
|
-
filterable:
|
|
4585
|
-
dateLocale:
|
|
4586
|
-
dateOptions:
|
|
4587
|
-
selectionMode:
|
|
4588
|
-
wrapCustomCellRenderers:
|
|
4589
|
-
visibleColumns:
|
|
4590
|
-
allowDisabledContextMenu:
|
|
4591
|
-
...
|
|
4592
|
-
} = h ?? {}, { containerRef:
|
|
4583
|
+
columnDefs: _o,
|
|
4584
|
+
filterable: zo = !0,
|
|
4585
|
+
dateLocale: Bo,
|
|
4586
|
+
dateOptions: Wo,
|
|
4587
|
+
selectionMode: Gn,
|
|
4588
|
+
wrapCustomCellRenderers: Vn,
|
|
4589
|
+
visibleColumns: $n = hr,
|
|
4590
|
+
allowDisabledContextMenu: zt = !1,
|
|
4591
|
+
...Ve
|
|
4592
|
+
} = h ?? {}, { containerRef: Ho, isBelowBreakpoint: Be } = Cr(
|
|
4593
4593
|
m,
|
|
4594
4594
|
g
|
|
4595
|
-
),
|
|
4595
|
+
), Uo = H(() => it ? [
|
|
4596
4596
|
Se.Name,
|
|
4597
4597
|
Se.Path,
|
|
4598
4598
|
Se.Actions
|
|
4599
|
-
] :
|
|
4600
|
-
(w,
|
|
4599
|
+
] : $n, [it, $n]), an = d(
|
|
4600
|
+
(w, ie, me) => xr(
|
|
4601
4601
|
w,
|
|
4602
|
-
|
|
4602
|
+
ie,
|
|
4603
4603
|
me,
|
|
4604
|
-
|
|
4605
|
-
|
|
4604
|
+
Mn,
|
|
4605
|
+
On
|
|
4606
4606
|
),
|
|
4607
|
-
[
|
|
4607
|
+
[On, Mn]
|
|
4608
4608
|
), et = d(
|
|
4609
|
-
(w,
|
|
4610
|
-
[
|
|
4611
|
-
),
|
|
4609
|
+
(w, ie, me) => !!Xt?.(w) || !!an(w, ie, me),
|
|
4610
|
+
[an, Xt]
|
|
4611
|
+
), We = H(() => {
|
|
4612
4612
|
const w = /* @__PURE__ */ new Set();
|
|
4613
|
-
for (const
|
|
4614
|
-
et(
|
|
4613
|
+
for (const ie of C)
|
|
4614
|
+
et(ie, b, f) && w.add(ie.path);
|
|
4615
4615
|
return w;
|
|
4616
|
-
}, [b, f, C, et]),
|
|
4616
|
+
}, [b, f, C, et]), jn = d(
|
|
4617
4617
|
(w) => {
|
|
4618
|
-
const
|
|
4619
|
-
return n?.actionLabels && (n.actionLabels[y.AddSibling] && w.nodeType === O.FOLDER && !
|
|
4618
|
+
const ie = [], me = [], He = !w.parentPath, bt = !_e && ce?.test(w.name);
|
|
4619
|
+
return n?.actionLabels && (n.actionLabels[y.AddSibling] && w.nodeType === O.FOLDER && !He && ie.push({
|
|
4620
4620
|
key: "addSibling",
|
|
4621
4621
|
label: n.actionLabels[y.AddSibling],
|
|
4622
4622
|
icon: /* @__PURE__ */ a(
|
|
4623
|
-
|
|
4623
|
+
Ka,
|
|
4624
4624
|
{
|
|
4625
4625
|
width: A.size,
|
|
4626
4626
|
height: A.size,
|
|
4627
4627
|
className: "text-secondary"
|
|
4628
4628
|
}
|
|
4629
4629
|
),
|
|
4630
|
-
onClick: () =>
|
|
4631
|
-
}), n.actionLabels[y.AddChild] && w.nodeType === O.FOLDER && !
|
|
4630
|
+
onClick: () => nn([w])
|
|
4631
|
+
}), n.actionLabels[y.AddChild] && w.nodeType === O.FOLDER && !bt && ie.push({
|
|
4632
4632
|
key: "addChild",
|
|
4633
4633
|
label: n.actionLabels[y.AddChild],
|
|
4634
4634
|
icon: /* @__PURE__ */ a(
|
|
4635
|
-
|
|
4635
|
+
Za,
|
|
4636
4636
|
{
|
|
4637
4637
|
width: A.size,
|
|
4638
4638
|
height: A.size,
|
|
4639
4639
|
className: "text-secondary"
|
|
4640
4640
|
}
|
|
4641
4641
|
),
|
|
4642
|
-
onClick: () =>
|
|
4643
|
-
}), n.actionLabels[y.Duplicate] && !
|
|
4642
|
+
onClick: () => on([w])
|
|
4643
|
+
}), n.actionLabels[y.Duplicate] && !He && !bt && me.push({
|
|
4644
4644
|
key: "duplicate",
|
|
4645
4645
|
label: n.actionLabels[y.Duplicate],
|
|
4646
4646
|
icon: /* @__PURE__ */ a(
|
|
4647
|
-
|
|
4647
|
+
aa,
|
|
4648
4648
|
{
|
|
4649
4649
|
...A,
|
|
4650
4650
|
className: "text-secondary"
|
|
4651
4651
|
}
|
|
4652
4652
|
),
|
|
4653
|
-
onClick: () =>
|
|
4654
|
-
}), n.actionLabels[y.Copy] && !
|
|
4653
|
+
onClick: () => Ae([w])
|
|
4654
|
+
}), n.actionLabels[y.Copy] && !He && !bt && me.push({
|
|
4655
4655
|
key: Re.Copy,
|
|
4656
4656
|
label: n.actionLabels[y.Copy],
|
|
4657
4657
|
icon: /* @__PURE__ */ a(
|
|
4658
|
-
|
|
4658
|
+
ua,
|
|
4659
4659
|
{
|
|
4660
4660
|
width: A.size,
|
|
4661
4661
|
height: A.size,
|
|
@@ -4663,13 +4663,13 @@ const Li = () => {
|
|
|
4663
4663
|
}
|
|
4664
4664
|
),
|
|
4665
4665
|
onClick: () => {
|
|
4666
|
-
|
|
4666
|
+
se([w]), ue(Re.Copy);
|
|
4667
4667
|
}
|
|
4668
|
-
}), n.actionLabels[y.Move] && !
|
|
4668
|
+
}), n.actionLabels[y.Move] && !He && !bt && me.push({
|
|
4669
4669
|
key: Re.Move,
|
|
4670
4670
|
label: n.actionLabels[y.Move],
|
|
4671
4671
|
icon: /* @__PURE__ */ a(
|
|
4672
|
-
|
|
4672
|
+
pa,
|
|
4673
4673
|
{
|
|
4674
4674
|
width: A.size,
|
|
4675
4675
|
height: A.size,
|
|
@@ -4677,128 +4677,128 @@ const Li = () => {
|
|
|
4677
4677
|
}
|
|
4678
4678
|
),
|
|
4679
4679
|
onClick: () => {
|
|
4680
|
-
|
|
4680
|
+
pe([w]), ue(Re.Move);
|
|
4681
4681
|
}
|
|
4682
|
-
}), n.actionLabels[y.Download] && !
|
|
4682
|
+
}), n.actionLabels[y.Download] && !He && !bt && me.push({
|
|
4683
4683
|
key: "download",
|
|
4684
4684
|
label: n.actionLabels[y.Download],
|
|
4685
4685
|
icon: /* @__PURE__ */ a(
|
|
4686
|
-
|
|
4686
|
+
oa,
|
|
4687
4687
|
{
|
|
4688
4688
|
...A,
|
|
4689
4689
|
className: "text-secondary"
|
|
4690
4690
|
}
|
|
4691
4691
|
),
|
|
4692
4692
|
onClick: () => ee([w])
|
|
4693
|
-
}), n.actionLabels[y.ManagePermissions] && typeof
|
|
4693
|
+
}), n.actionLabels[y.ManagePermissions] && typeof At == "function" && w.nodeType === O.FOLDER && !He && me.push({
|
|
4694
4694
|
key: y.ManagePermissions,
|
|
4695
4695
|
label: n.actionLabels[y.ManagePermissions],
|
|
4696
4696
|
icon: /* @__PURE__ */ a(
|
|
4697
|
-
|
|
4697
|
+
Qo,
|
|
4698
4698
|
{
|
|
4699
4699
|
...A,
|
|
4700
4700
|
className: "text-secondary"
|
|
4701
4701
|
}
|
|
4702
4702
|
),
|
|
4703
|
-
onClick: () =>
|
|
4704
|
-
}), n.actionLabels[y.Delete] && w.permissions?.includes(
|
|
4703
|
+
onClick: () => At?.(w.path)
|
|
4704
|
+
}), n.actionLabels[y.Delete] && w.permissions?.includes(jt.WRITE) && !He && me.push({
|
|
4705
4705
|
key: "delete",
|
|
4706
4706
|
label: n.actionLabels[y.Delete],
|
|
4707
|
-
icon: /* @__PURE__ */ a(
|
|
4707
|
+
icon: /* @__PURE__ */ a(ra, { ...A }),
|
|
4708
4708
|
danger: !0,
|
|
4709
4709
|
onClick: () => Ie([w], w.parentPath ?? "")
|
|
4710
|
-
}), n.actionLabels[y.Rename] && !
|
|
4710
|
+
}), n.actionLabels[y.Rename] && !He && me.push({
|
|
4711
4711
|
key: "rename",
|
|
4712
4712
|
label: n.actionLabels[y.Rename],
|
|
4713
4713
|
icon: /* @__PURE__ */ a(
|
|
4714
|
-
|
|
4714
|
+
Ba,
|
|
4715
4715
|
{
|
|
4716
4716
|
...A,
|
|
4717
4717
|
className: "text-secondary"
|
|
4718
4718
|
}
|
|
4719
4719
|
),
|
|
4720
|
-
onClick: () =>
|
|
4721
|
-
}), n.actionLabels[y.Unshare] && lt?.includes(w.path) && !
|
|
4720
|
+
onClick: () => Un(w.path)
|
|
4721
|
+
}), n.actionLabels[y.Unshare] && lt?.includes(w.path) && !He && me.push({
|
|
4722
4722
|
key: "unshare",
|
|
4723
4723
|
label: n.actionLabels[y.Unshare],
|
|
4724
4724
|
icon: /* @__PURE__ */ a(
|
|
4725
|
-
|
|
4725
|
+
fa,
|
|
4726
4726
|
{
|
|
4727
4727
|
width: A.size,
|
|
4728
4728
|
height: A.size,
|
|
4729
4729
|
className: "text-secondary"
|
|
4730
4730
|
}
|
|
4731
4731
|
),
|
|
4732
|
-
onClick: () =>
|
|
4733
|
-
}), n.actionLabels[y.RemoveAccess] && x?.has(w.path) && !
|
|
4732
|
+
onClick: () => de?.([w])
|
|
4733
|
+
}), n.actionLabels[y.RemoveAccess] && x?.has(w.path) && !He && me.push({
|
|
4734
4734
|
key: y.RemoveAccess,
|
|
4735
4735
|
label: n.actionLabels[y.RemoveAccess],
|
|
4736
4736
|
icon: /* @__PURE__ */ a(
|
|
4737
|
-
|
|
4737
|
+
sa,
|
|
4738
4738
|
{
|
|
4739
4739
|
...A,
|
|
4740
4740
|
className: "text-secondary"
|
|
4741
4741
|
}
|
|
4742
4742
|
),
|
|
4743
|
-
onClick: () =>
|
|
4744
|
-
})),
|
|
4745
|
-
...
|
|
4746
|
-
{ key: "divider", type:
|
|
4743
|
+
onClick: () => Ze?.([w])
|
|
4744
|
+
})), ie.length ? me.length === 0 ? ie : ie.length === 0 ? me : [
|
|
4745
|
+
...ie,
|
|
4746
|
+
{ key: "divider", type: ha.Divider },
|
|
4747
4747
|
...me
|
|
4748
4748
|
] : me;
|
|
4749
4749
|
},
|
|
4750
4750
|
[
|
|
4751
4751
|
n?.actionLabels,
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
he,
|
|
4752
|
+
ce,
|
|
4753
|
+
_e,
|
|
4754
|
+
At,
|
|
4755
|
+
Ae,
|
|
4756
|
+
se,
|
|
4758
4757
|
ue,
|
|
4758
|
+
pe,
|
|
4759
4759
|
ee,
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4760
|
+
Un,
|
|
4761
|
+
de,
|
|
4762
|
+
Ze,
|
|
4763
4763
|
lt,
|
|
4764
4764
|
x,
|
|
4765
4765
|
Ie,
|
|
4766
|
-
|
|
4767
|
-
|
|
4766
|
+
on,
|
|
4767
|
+
nn
|
|
4768
4768
|
]
|
|
4769
|
-
),
|
|
4769
|
+
), wt = H(() => {
|
|
4770
4770
|
const w = /* @__PURE__ */ new Set();
|
|
4771
|
-
return F.forEach((
|
|
4772
|
-
}, [F]),
|
|
4773
|
-
(w,
|
|
4774
|
-
G(w), j?.(
|
|
4771
|
+
return F.forEach((ie, me) => w.add(me)), w;
|
|
4772
|
+
}, [F]), sn = d(
|
|
4773
|
+
(w, ie) => {
|
|
4774
|
+
G(w), j?.(ie);
|
|
4775
4775
|
},
|
|
4776
4776
|
[j, G]
|
|
4777
|
-
),
|
|
4777
|
+
), rn = Si({
|
|
4778
4778
|
selectedFiles: F,
|
|
4779
4779
|
actionLabels: c?.actionLabels,
|
|
4780
|
-
onDuplicate:
|
|
4780
|
+
onDuplicate: Ae,
|
|
4781
4781
|
onCopy: (w) => {
|
|
4782
|
-
|
|
4782
|
+
se(w), ue(Re.Copy);
|
|
4783
4783
|
},
|
|
4784
4784
|
onMove: (w) => {
|
|
4785
|
-
|
|
4785
|
+
pe(w), ue(Re.Move);
|
|
4786
4786
|
},
|
|
4787
4787
|
onDownload: ee,
|
|
4788
4788
|
onDelete: Ie,
|
|
4789
|
-
onUnshare:
|
|
4790
|
-
onRemoveAccess:
|
|
4789
|
+
onUnshare: de,
|
|
4790
|
+
onRemoveAccess: Ze,
|
|
4791
4791
|
getCurrentFolderPath: () => E ?? "/",
|
|
4792
4792
|
sharedWithMeIds: lt,
|
|
4793
4793
|
sharedByMePaths: x,
|
|
4794
4794
|
onClearSelection: U,
|
|
4795
|
-
forbiddenSymbolsRegExp:
|
|
4796
|
-
}),
|
|
4795
|
+
forbiddenSymbolsRegExp: ce
|
|
4796
|
+
}), yt = d(
|
|
4797
4797
|
(w) => {
|
|
4798
|
-
|
|
4798
|
+
Me?.(w), at();
|
|
4799
4799
|
},
|
|
4800
|
-
[
|
|
4801
|
-
),
|
|
4800
|
+
[Me, at]
|
|
4801
|
+
), Zn = d(() => v ? /* @__PURE__ */ a(
|
|
4802
4802
|
"div",
|
|
4803
4803
|
{
|
|
4804
4804
|
className: Zs,
|
|
@@ -4810,9 +4810,9 @@ const Li = () => {
|
|
|
4810
4810
|
...v,
|
|
4811
4811
|
areHiddenFilesVisible: u,
|
|
4812
4812
|
onToggleHiddenFiles: S,
|
|
4813
|
-
isNewButtonVisible:
|
|
4814
|
-
isNewButtonDisabled:
|
|
4815
|
-
newButtonDropdownItems:
|
|
4813
|
+
isNewButtonVisible: Ft,
|
|
4814
|
+
isNewButtonDisabled: Tn,
|
|
4815
|
+
newButtonDropdownItems: Zt
|
|
4816
4816
|
}
|
|
4817
4817
|
)
|
|
4818
4818
|
}
|
|
@@ -4820,324 +4820,334 @@ const Li = () => {
|
|
|
4820
4820
|
u,
|
|
4821
4821
|
S,
|
|
4822
4822
|
v,
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
]),
|
|
4823
|
+
Ft,
|
|
4824
|
+
Tn,
|
|
4825
|
+
Zt
|
|
4826
|
+
]), Nt = C.length === 0 && !s && !mt, Go = d(() => !c || T.size === 0 || Nt ? null : /* @__PURE__ */ a("div", { className: sr, children: /* @__PURE__ */ a(
|
|
4827
4827
|
ii,
|
|
4828
4828
|
{
|
|
4829
4829
|
...c,
|
|
4830
4830
|
selectedCount: T.size,
|
|
4831
4831
|
onClearSelection: U,
|
|
4832
|
-
actions:
|
|
4832
|
+
actions: rn
|
|
4833
4833
|
}
|
|
4834
4834
|
) }), [
|
|
4835
4835
|
c,
|
|
4836
4836
|
T,
|
|
4837
|
-
|
|
4837
|
+
Nt,
|
|
4838
4838
|
U,
|
|
4839
|
-
|
|
4839
|
+
rn
|
|
4840
4840
|
]);
|
|
4841
|
-
|
|
4841
|
+
bs(
|
|
4842
4842
|
Je,
|
|
4843
4843
|
() => ({
|
|
4844
|
-
createFolder:
|
|
4844
|
+
createFolder: In
|
|
4845
4845
|
}),
|
|
4846
|
-
[
|
|
4846
|
+
[In]
|
|
4847
4847
|
);
|
|
4848
|
-
const
|
|
4848
|
+
const Vo = d(() => Be ? null : /* @__PURE__ */ a(
|
|
4849
4849
|
"aside",
|
|
4850
4850
|
{
|
|
4851
|
-
className:
|
|
4852
|
-
"aria-labelledby":
|
|
4853
|
-
"aria-label":
|
|
4851
|
+
className: fe,
|
|
4852
|
+
"aria-labelledby": Oe ? Lt : void 0,
|
|
4853
|
+
"aria-label": Oe ? void 0 : "File Manager Tree Navigation",
|
|
4854
4854
|
children: /* @__PURE__ */ K("div", { className: Qs, children: [
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4855
|
+
Oe || vt ? /* @__PURE__ */ K("div", { className: er, children: [
|
|
4856
|
+
Oe ? /* @__PURE__ */ a("h1", { id: Lt, className: Js, children: Oe }) : null,
|
|
4857
|
+
vt ? /* @__PURE__ */ a("div", { className: "flex shrink-0 items-center gap-1", children: vt }) : null
|
|
4858
4858
|
] }) : null,
|
|
4859
|
-
|
|
4860
|
-
|
|
4859
|
+
ae?.length && Ee ? /* @__PURE__ */ a("div", { className: "px-3 py-2", children: /* @__PURE__ */ a(
|
|
4860
|
+
xa,
|
|
4861
4861
|
{
|
|
4862
|
-
items:
|
|
4863
|
-
value:
|
|
4864
|
-
onChange:
|
|
4865
|
-
"aria-labelledby":
|
|
4866
|
-
"aria-label":
|
|
4862
|
+
items: ae,
|
|
4863
|
+
value: Ee,
|
|
4864
|
+
onChange: yt,
|
|
4865
|
+
"aria-labelledby": Oe ? Lt : void 0,
|
|
4866
|
+
"aria-label": Oe ? void 0 : kt,
|
|
4867
4867
|
className: "shrink-0"
|
|
4868
4868
|
}
|
|
4869
4869
|
) }) : null,
|
|
4870
4870
|
/* @__PURE__ */ a("div", { className: tr, children: /* @__PURE__ */ a(
|
|
4871
4871
|
Fi,
|
|
4872
4872
|
{
|
|
4873
|
-
...
|
|
4873
|
+
...Ln,
|
|
4874
4874
|
items: t,
|
|
4875
4875
|
rootItemPath: o?.path,
|
|
4876
4876
|
rootItemLabel: o?.label,
|
|
4877
4877
|
selectedPath: E,
|
|
4878
4878
|
sharedByMePaths: x,
|
|
4879
|
-
forbiddenSymbolsRegExp:
|
|
4879
|
+
forbiddenSymbolsRegExp: ce,
|
|
4880
4880
|
forbiddenSymbolsTooltip: J,
|
|
4881
4881
|
onItemClick: V,
|
|
4882
4882
|
areHiddenFilesVisible: u,
|
|
4883
|
-
getContextMenuItems:
|
|
4884
|
-
renamedPath:
|
|
4883
|
+
getContextMenuItems: jn,
|
|
4884
|
+
renamedPath: _t === Ht.Tree ? M : void 0,
|
|
4885
4885
|
onRenameSave: $,
|
|
4886
|
-
onRenameCancel:
|
|
4886
|
+
onRenameCancel: le,
|
|
4887
4887
|
onRenameValidate: ye,
|
|
4888
|
-
createdFolderPath:
|
|
4888
|
+
createdFolderPath: tn === Dt.Tree ? Te : null,
|
|
4889
4889
|
onCreateFolderCancel: at,
|
|
4890
|
-
onCreateFolderSave:
|
|
4891
|
-
newFolderDefaultName:
|
|
4890
|
+
onCreateFolderSave: St,
|
|
4891
|
+
newFolderDefaultName: Pt
|
|
4892
4892
|
}
|
|
4893
4893
|
) })
|
|
4894
4894
|
] })
|
|
4895
4895
|
}
|
|
4896
4896
|
), [
|
|
4897
|
-
|
|
4898
|
-
pe,
|
|
4899
|
-
gt,
|
|
4900
|
-
je,
|
|
4901
|
-
Ot,
|
|
4897
|
+
Be,
|
|
4902
4898
|
fe,
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4899
|
+
vt,
|
|
4900
|
+
Oe,
|
|
4901
|
+
Lt,
|
|
4902
|
+
ae,
|
|
4903
|
+
Ee,
|
|
4904
|
+
kt,
|
|
4905
|
+
yt,
|
|
4906
|
+
Ln,
|
|
4907
4907
|
t,
|
|
4908
4908
|
o?.path,
|
|
4909
4909
|
o?.label,
|
|
4910
4910
|
E,
|
|
4911
4911
|
x,
|
|
4912
|
-
|
|
4912
|
+
ce,
|
|
4913
4913
|
J,
|
|
4914
4914
|
V,
|
|
4915
4915
|
u,
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4916
|
+
jn,
|
|
4917
|
+
_t,
|
|
4918
|
+
tn,
|
|
4919
4919
|
M,
|
|
4920
4920
|
$,
|
|
4921
|
-
|
|
4921
|
+
le,
|
|
4922
4922
|
ye,
|
|
4923
4923
|
Te,
|
|
4924
4924
|
at,
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
]),
|
|
4925
|
+
St,
|
|
4926
|
+
Pt
|
|
4927
|
+
]), $o = d(() => !Be || !ae?.length || !Ee ? null : /* @__PURE__ */ a(
|
|
4928
|
+
xa,
|
|
4929
|
+
{
|
|
4930
|
+
items: ae,
|
|
4931
|
+
value: Ee,
|
|
4932
|
+
onChange: yt,
|
|
4933
|
+
"aria-label": typeof Oe == "string" ? Oe : kt,
|
|
4934
|
+
className: "shrink-0 flex-wrap"
|
|
4935
|
+
}
|
|
4936
|
+
), [Be, ae, Ee, yt, Oe, kt]), ln = _i({
|
|
4928
4937
|
actionLabels: h?.actionLabels,
|
|
4929
|
-
onDuplicate: (w) =>
|
|
4938
|
+
onDuplicate: (w) => Ae([w]),
|
|
4930
4939
|
onCopy: (w) => {
|
|
4931
|
-
|
|
4940
|
+
se([w]), ue(Re.Copy);
|
|
4932
4941
|
},
|
|
4933
4942
|
onMove: (w) => {
|
|
4934
|
-
|
|
4943
|
+
pe([w]), ue(Re.Move);
|
|
4935
4944
|
},
|
|
4936
4945
|
onDownload: (w) => ee([w]),
|
|
4937
|
-
onRename:
|
|
4938
|
-
onDelete: (w,
|
|
4939
|
-
onInfo: (w) =>
|
|
4940
|
-
onUnshare: (w) =>
|
|
4941
|
-
onRemoveAccess: (w) =>
|
|
4946
|
+
onRename: Oo,
|
|
4947
|
+
onDelete: (w, ie) => Ie([w], ie),
|
|
4948
|
+
onInfo: (w) => po(w),
|
|
4949
|
+
onUnshare: (w) => de?.([w]),
|
|
4950
|
+
onRemoveAccess: (w) => Ze?.([w]),
|
|
4942
4951
|
sharedWithMeIds: lt,
|
|
4943
4952
|
sharedByMePaths: x,
|
|
4944
|
-
onManagePermissions: (w) =>
|
|
4945
|
-
onPreview: (w) =>
|
|
4946
|
-
onOpenInNewTab: (w) =>
|
|
4947
|
-
previewExtensions:
|
|
4948
|
-
isRenameFileAvailable:
|
|
4949
|
-
isDuplicateFolderAvailable:
|
|
4950
|
-
forbiddenSymbolsRegExp:
|
|
4951
|
-
skipForbiddenSymbolsCheckForActions:
|
|
4952
|
-
onGridCreateSiblingFolder:
|
|
4953
|
-
onGridCreateChildFolder:
|
|
4954
|
-
}),
|
|
4953
|
+
onManagePermissions: (w) => At?.(w),
|
|
4954
|
+
onPreview: (w) => mo?.(w),
|
|
4955
|
+
onOpenInNewTab: (w) => Co?.(w),
|
|
4956
|
+
previewExtensions: go,
|
|
4957
|
+
isRenameFileAvailable: vo,
|
|
4958
|
+
isDuplicateFolderAvailable: wo,
|
|
4959
|
+
forbiddenSymbolsRegExp: ce,
|
|
4960
|
+
skipForbiddenSymbolsCheckForActions: _e,
|
|
4961
|
+
onGridCreateSiblingFolder: Mo,
|
|
4962
|
+
onGridCreateChildFolder: Lo
|
|
4963
|
+
}), cn = d(
|
|
4955
4964
|
(w) => {
|
|
4956
|
-
const
|
|
4957
|
-
return
|
|
4965
|
+
const ie = Rt(t, w.path);
|
|
4966
|
+
return ie ? ln(ie) : [];
|
|
4958
4967
|
},
|
|
4959
|
-
[t,
|
|
4968
|
+
[t, ln]
|
|
4960
4969
|
), jo = d(
|
|
4961
|
-
(w,
|
|
4962
|
-
[
|
|
4970
|
+
(w, ie, me) => zt ? !1 : et(w, ie, me),
|
|
4971
|
+
[zt, et]
|
|
4963
4972
|
), { actionsColumnDef: Zo } = fr({
|
|
4964
|
-
getContextMenuItems:
|
|
4973
|
+
getContextMenuItems: cn,
|
|
4965
4974
|
isRowDisabled: jo,
|
|
4966
4975
|
allowedFileTypes: b,
|
|
4967
|
-
buttonClassName:
|
|
4968
|
-
}), { columnDefs:
|
|
4969
|
-
userColumnDefs:
|
|
4970
|
-
filterable:
|
|
4971
|
-
dateLocale:
|
|
4972
|
-
dateOptions:
|
|
4973
|
-
effectiveVisibleColumns:
|
|
4974
|
-
isCompactView:
|
|
4976
|
+
buttonClassName: Be ? "" : rr
|
|
4977
|
+
}), { columnDefs: dn } = Mi({
|
|
4978
|
+
userColumnDefs: _o,
|
|
4979
|
+
filterable: zo,
|
|
4980
|
+
dateLocale: Bo,
|
|
4981
|
+
dateOptions: Wo,
|
|
4982
|
+
effectiveVisibleColumns: Uo,
|
|
4983
|
+
isCompactView: Be,
|
|
4975
4984
|
hasActions: !!h?.actionLabels,
|
|
4976
4985
|
actionsColumnDef: Zo,
|
|
4977
4986
|
rootItemLabel: o?.label,
|
|
4978
4987
|
rootItemPath: o?.path
|
|
4979
4988
|
}), Kn = d(
|
|
4980
4989
|
(w) => {
|
|
4981
|
-
w.colDef.colId === Vs || w.colDef.colId === cr || w.colDef.colId === Se.Actions || M && w.data?.path === M || w.data?.isTemporary ||
|
|
4990
|
+
w.colDef.colId === Vs || w.colDef.colId === cr || w.colDef.colId === Se.Actions || M && w.data?.path === M || w.data?.isTemporary || qt && qt.includes(
|
|
4982
4991
|
w.colDef.colId
|
|
4983
4992
|
) || w.data && z(w.data);
|
|
4984
4993
|
},
|
|
4985
|
-
[M, z,
|
|
4994
|
+
[M, z, qt]
|
|
4986
4995
|
), Xn = d(
|
|
4987
|
-
() => it ? /* @__PURE__ */ a(
|
|
4988
|
-
|
|
4996
|
+
() => it ? /* @__PURE__ */ a(ta, { title: kn, icon: Ct }) : /* @__PURE__ */ a(
|
|
4997
|
+
ta,
|
|
4989
4998
|
{
|
|
4990
|
-
title:
|
|
4991
|
-
description:
|
|
4992
|
-
icon:
|
|
4999
|
+
title: An,
|
|
5000
|
+
description: Pn,
|
|
5001
|
+
icon: Ct
|
|
4993
5002
|
}
|
|
4994
5003
|
),
|
|
4995
5004
|
[
|
|
4996
5005
|
it,
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5006
|
+
kn,
|
|
5007
|
+
Pn,
|
|
5008
|
+
Ct,
|
|
5009
|
+
An
|
|
5001
5010
|
]
|
|
5002
|
-
), qn = H(() => (w) => w.path, []),
|
|
5011
|
+
), qn = H(() => (w) => w.path, []), ct = H(
|
|
5003
5012
|
() => xe(
|
|
5004
5013
|
"min-h-[248px] overflow-auto md:min-h-[266px]",
|
|
5005
|
-
|
|
5006
|
-
ot && !
|
|
5014
|
+
ze ? "border border-dashed border-info" : "",
|
|
5015
|
+
ot && !ze ? "border border-dashed border-primary" : ""
|
|
5007
5016
|
),
|
|
5008
|
-
[
|
|
5009
|
-
),
|
|
5017
|
+
[ze, ot]
|
|
5018
|
+
), dt = H(
|
|
5010
5019
|
() => ({
|
|
5011
|
-
headerHeight:
|
|
5012
|
-
rowHeight:
|
|
5013
|
-
...
|
|
5020
|
+
headerHeight: Sa,
|
|
5021
|
+
rowHeight: Sa,
|
|
5022
|
+
...Ve.additionalGridOptions,
|
|
5014
5023
|
onCellClicked: Kn,
|
|
5015
5024
|
rowClass: "group/grid-row",
|
|
5016
5025
|
defaultColDef: {
|
|
5017
|
-
comparator:
|
|
5018
|
-
...
|
|
5019
|
-
floatingFilter:
|
|
5026
|
+
comparator: da,
|
|
5027
|
+
...Ve.additionalGridOptions?.defaultColDef,
|
|
5028
|
+
floatingFilter: Ot ? !1 : Ve.additionalGridOptions?.defaultColDef?.floatingFilter
|
|
5020
5029
|
},
|
|
5021
5030
|
context: {
|
|
5022
5031
|
cancelFolderCreation: at,
|
|
5023
|
-
saveFolderCreation:
|
|
5024
|
-
getDisplayName:
|
|
5025
|
-
onRenameCancel:
|
|
5032
|
+
saveFolderCreation: St,
|
|
5033
|
+
getDisplayName: xt,
|
|
5034
|
+
onRenameCancel: le,
|
|
5026
5035
|
onRenameSave: $,
|
|
5027
5036
|
onRenameValidate: ye,
|
|
5028
|
-
renameTriggerView:
|
|
5029
|
-
validateFolderName:
|
|
5037
|
+
renameTriggerView: _t,
|
|
5038
|
+
validateFolderName: xn,
|
|
5030
5039
|
renamedItem: W,
|
|
5031
5040
|
renamedPath: M,
|
|
5032
5041
|
createdFolderPath: Te,
|
|
5033
|
-
newFolderTempId:
|
|
5042
|
+
newFolderTempId: Rn,
|
|
5034
5043
|
sharedByMePaths: x,
|
|
5035
5044
|
selectedPaths: T,
|
|
5036
|
-
disabledRowIds:
|
|
5037
|
-
forbiddenSymbolsRegExp:
|
|
5045
|
+
disabledRowIds: We,
|
|
5046
|
+
forbiddenSymbolsRegExp: ce,
|
|
5038
5047
|
forbiddenSymbolsTooltip: J,
|
|
5039
|
-
hideSearchPathItemName:
|
|
5040
|
-
newFolderDefaultName:
|
|
5048
|
+
hideSearchPathItemName: gt,
|
|
5049
|
+
newFolderDefaultName: Pt,
|
|
5041
5050
|
filesLoading: s
|
|
5042
5051
|
}
|
|
5043
5052
|
}),
|
|
5044
5053
|
[
|
|
5045
|
-
|
|
5054
|
+
Ve.additionalGridOptions,
|
|
5046
5055
|
Kn,
|
|
5047
|
-
|
|
5056
|
+
Ot,
|
|
5048
5057
|
at,
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5058
|
+
St,
|
|
5059
|
+
xt,
|
|
5060
|
+
le,
|
|
5052
5061
|
$,
|
|
5053
5062
|
ye,
|
|
5054
|
-
|
|
5055
|
-
|
|
5063
|
+
_t,
|
|
5064
|
+
xn,
|
|
5056
5065
|
W,
|
|
5057
5066
|
M,
|
|
5058
5067
|
Te,
|
|
5059
|
-
|
|
5068
|
+
Rn,
|
|
5060
5069
|
x,
|
|
5061
5070
|
T,
|
|
5062
|
-
|
|
5063
|
-
|
|
5071
|
+
We,
|
|
5072
|
+
ce,
|
|
5064
5073
|
J,
|
|
5065
|
-
|
|
5066
|
-
|
|
5074
|
+
gt,
|
|
5075
|
+
Pt,
|
|
5067
5076
|
s
|
|
5068
5077
|
]
|
|
5069
|
-
),
|
|
5070
|
-
() =>
|
|
5071
|
-
|
|
5078
|
+
), Ko = H(
|
|
5079
|
+
() => Nt ? Xn() : /* @__PURE__ */ a(
|
|
5080
|
+
Ua,
|
|
5072
5081
|
{
|
|
5073
|
-
columnDefs:
|
|
5074
|
-
rowData:
|
|
5082
|
+
columnDefs: dn,
|
|
5083
|
+
rowData: Hn,
|
|
5075
5084
|
getRowId: qn,
|
|
5076
|
-
loading: s ||
|
|
5077
|
-
getContextMenuItems:
|
|
5078
|
-
withoutHeaderBorders:
|
|
5079
|
-
onGridApiChange:
|
|
5080
|
-
className:
|
|
5081
|
-
...
|
|
5082
|
-
selectionMode:
|
|
5083
|
-
wrapCustomCellRenderers:
|
|
5084
|
-
additionalGridOptions:
|
|
5085
|
-
selectedRowIds:
|
|
5086
|
-
onSelectionChange:
|
|
5087
|
-
wrapperBorder: !
|
|
5088
|
-
disabledRowIds:
|
|
5089
|
-
allowDisabledContextMenu:
|
|
5085
|
+
loading: s || mt,
|
|
5086
|
+
getContextMenuItems: cn,
|
|
5087
|
+
withoutHeaderBorders: Be,
|
|
5088
|
+
onGridApiChange: Wn,
|
|
5089
|
+
className: ct,
|
|
5090
|
+
...Ve,
|
|
5091
|
+
selectionMode: Gn,
|
|
5092
|
+
wrapCustomCellRenderers: Vn,
|
|
5093
|
+
additionalGridOptions: dt,
|
|
5094
|
+
selectedRowIds: wt,
|
|
5095
|
+
onSelectionChange: sn,
|
|
5096
|
+
wrapperBorder: !ze && !ot,
|
|
5097
|
+
disabledRowIds: We,
|
|
5098
|
+
allowDisabledContextMenu: zt
|
|
5090
5099
|
}
|
|
5091
5100
|
),
|
|
5092
5101
|
[
|
|
5093
|
-
|
|
5094
|
-
|
|
5102
|
+
Nt,
|
|
5103
|
+
Hn,
|
|
5095
5104
|
s,
|
|
5096
5105
|
Xn,
|
|
5097
|
-
|
|
5106
|
+
dn,
|
|
5098
5107
|
qn,
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
Yn,
|
|
5104
|
-
Ue,
|
|
5105
|
-
Un,
|
|
5106
|
-
Gn,
|
|
5108
|
+
mt,
|
|
5109
|
+
cn,
|
|
5110
|
+
Be,
|
|
5111
|
+
Wn,
|
|
5107
5112
|
ct,
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5113
|
+
Ve,
|
|
5114
|
+
Gn,
|
|
5115
|
+
Vn,
|
|
5116
|
+
dt,
|
|
5117
|
+
wt,
|
|
5118
|
+
sn,
|
|
5112
5119
|
ze,
|
|
5113
|
-
|
|
5120
|
+
ot,
|
|
5121
|
+
We,
|
|
5122
|
+
zt
|
|
5114
5123
|
]
|
|
5115
5124
|
);
|
|
5116
|
-
return /* @__PURE__ */ a("section", { ref:
|
|
5125
|
+
return /* @__PURE__ */ a("section", { ref: Ho, className: "size-full", children: /* @__PURE__ */ K(
|
|
5117
5126
|
"div",
|
|
5118
5127
|
{
|
|
5119
5128
|
className: xe(
|
|
5120
5129
|
js,
|
|
5121
5130
|
{
|
|
5122
|
-
"p-3 pt-4":
|
|
5131
|
+
"p-3 pt-4": Be
|
|
5123
5132
|
},
|
|
5124
5133
|
e
|
|
5125
5134
|
),
|
|
5126
5135
|
children: [
|
|
5127
|
-
/* @__PURE__ */ K("div", { className: xe(Ks,
|
|
5128
|
-
|
|
5136
|
+
/* @__PURE__ */ K("div", { className: xe(Ks, yo), children: [
|
|
5137
|
+
Vo(),
|
|
5129
5138
|
/* @__PURE__ */ K(
|
|
5130
5139
|
"div",
|
|
5131
5140
|
{
|
|
5132
5141
|
className: xe(Xs, {
|
|
5133
|
-
"gap-3":
|
|
5142
|
+
"gap-3": Be
|
|
5134
5143
|
}),
|
|
5135
5144
|
children: [
|
|
5145
|
+
$o(),
|
|
5136
5146
|
/* @__PURE__ */ K("div", { className: qs, children: [
|
|
5137
5147
|
r && /* @__PURE__ */ a(
|
|
5138
5148
|
hi,
|
|
5139
5149
|
{
|
|
5140
|
-
...
|
|
5150
|
+
...So,
|
|
5141
5151
|
makeHref: (w) => w.join("/"),
|
|
5142
5152
|
path: E,
|
|
5143
5153
|
onItemClick: k,
|
|
@@ -5145,44 +5155,44 @@ const Li = () => {
|
|
|
5145
5155
|
rootItemLabel: o?.label
|
|
5146
5156
|
}
|
|
5147
5157
|
),
|
|
5148
|
-
|
|
5158
|
+
Zn()
|
|
5149
5159
|
] }),
|
|
5150
5160
|
/* @__PURE__ */ K(
|
|
5151
5161
|
"div",
|
|
5152
5162
|
{
|
|
5153
5163
|
className: xe(or, "relative"),
|
|
5154
5164
|
onDragEnter: ke,
|
|
5155
|
-
onDragLeave:
|
|
5156
|
-
onDragOver:
|
|
5157
|
-
onDrop:
|
|
5165
|
+
onDragLeave: ao,
|
|
5166
|
+
onDragOver: so,
|
|
5167
|
+
onDrop: ro,
|
|
5158
5168
|
children: [
|
|
5159
|
-
(
|
|
5160
|
-
|
|
5169
|
+
(Ot || Mt) && /* @__PURE__ */ K("div", { className: ur, children: [
|
|
5170
|
+
Ot && /* @__PURE__ */ a(
|
|
5161
5171
|
fi,
|
|
5162
5172
|
{
|
|
5163
5173
|
className: "flex-1 min-w-0",
|
|
5164
|
-
elementId:
|
|
5165
|
-
placeholder:
|
|
5166
|
-
size:
|
|
5167
|
-
withoutBorder:
|
|
5168
|
-
disabled:
|
|
5169
|
-
invalid:
|
|
5170
|
-
searchClassName:
|
|
5171
|
-
searchContainerClassName:
|
|
5174
|
+
elementId: Qt,
|
|
5175
|
+
placeholder: bo,
|
|
5176
|
+
size: Do,
|
|
5177
|
+
withoutBorder: To,
|
|
5178
|
+
disabled: Ro,
|
|
5179
|
+
invalid: xo,
|
|
5180
|
+
searchClassName: Io,
|
|
5181
|
+
searchContainerClassName: Fo,
|
|
5172
5182
|
value: X,
|
|
5173
5183
|
onSearchChange: _
|
|
5174
5184
|
}
|
|
5175
5185
|
),
|
|
5176
|
-
|
|
5186
|
+
Mt && /* @__PURE__ */ a(
|
|
5177
5187
|
yi,
|
|
5178
5188
|
{
|
|
5179
|
-
...
|
|
5189
|
+
...zn,
|
|
5180
5190
|
className: xe(
|
|
5181
5191
|
"ml-auto shrink-0",
|
|
5182
|
-
|
|
5192
|
+
zn.className
|
|
5183
5193
|
),
|
|
5184
|
-
sort:
|
|
5185
|
-
onSortChange:
|
|
5194
|
+
sort: en,
|
|
5195
|
+
onSortChange: ko
|
|
5186
5196
|
}
|
|
5187
5197
|
)
|
|
5188
5198
|
] }),
|
|
@@ -5192,21 +5202,21 @@ const Li = () => {
|
|
|
5192
5202
|
role: "region",
|
|
5193
5203
|
"aria-label": "File Manager Grid View",
|
|
5194
5204
|
className: ar,
|
|
5195
|
-
children:
|
|
5205
|
+
children: Ko
|
|
5196
5206
|
}
|
|
5197
5207
|
),
|
|
5198
5208
|
/* @__PURE__ */ a(
|
|
5199
5209
|
Yr,
|
|
5200
5210
|
{
|
|
5201
|
-
disabledGridRowIds:
|
|
5211
|
+
disabledGridRowIds: We,
|
|
5202
5212
|
gridRows: C,
|
|
5203
|
-
getDisabledTooltip:
|
|
5204
|
-
getRowDisabledTooltip:
|
|
5213
|
+
getDisabledTooltip: Xt,
|
|
5214
|
+
getRowDisabledTooltip: an,
|
|
5205
5215
|
allowedFileTypes: b,
|
|
5206
5216
|
maxSelectableFileSize: f
|
|
5207
5217
|
}
|
|
5208
5218
|
),
|
|
5209
|
-
|
|
5219
|
+
Go()
|
|
5210
5220
|
]
|
|
5211
5221
|
}
|
|
5212
5222
|
)
|
|
@@ -5218,9 +5228,9 @@ const Li = () => {
|
|
|
5218
5228
|
li,
|
|
5219
5229
|
{
|
|
5220
5230
|
...D,
|
|
5221
|
-
open:
|
|
5231
|
+
open: Ge,
|
|
5222
5232
|
itemsToDelete: R,
|
|
5223
|
-
onClose:
|
|
5233
|
+
onClose: re,
|
|
5224
5234
|
onConfirm: qe
|
|
5225
5235
|
}
|
|
5226
5236
|
),
|
|
@@ -5232,20 +5242,20 @@ const Li = () => {
|
|
|
5232
5242
|
onClose: be,
|
|
5233
5243
|
onConfirm: () => {
|
|
5234
5244
|
const w = p?.destinationFolderPath ?? "/";
|
|
5235
|
-
ne === Re.Copy ?
|
|
5245
|
+
ne === Re.Copy ? Le(w) : P(w), be();
|
|
5236
5246
|
},
|
|
5237
5247
|
mode: ne,
|
|
5238
5248
|
items: t,
|
|
5239
5249
|
rootItem: o,
|
|
5240
5250
|
gridOptions: {
|
|
5241
|
-
columnDefs:
|
|
5251
|
+
columnDefs: dn.filter(
|
|
5242
5252
|
(w) => w.colId !== Se.Actions
|
|
5243
5253
|
),
|
|
5244
5254
|
loading: s
|
|
5245
5255
|
},
|
|
5246
|
-
onUploadFiles:
|
|
5247
|
-
onValidateUpload:
|
|
5248
|
-
maxFileSize:
|
|
5256
|
+
onUploadFiles: io,
|
|
5257
|
+
onValidateUpload: lo,
|
|
5258
|
+
maxFileSize: It,
|
|
5249
5259
|
path: p?.destinationFolderPath ?? p?.sourceFolder ?? E,
|
|
5250
5260
|
onPathChange: (w) => {
|
|
5251
5261
|
p?.setDestinationFolderPath?.(w);
|
|
@@ -5256,49 +5266,49 @@ const Li = () => {
|
|
|
5256
5266
|
loadedPaths: n?.loadedPaths,
|
|
5257
5267
|
loadingPaths: n?.loadingPaths
|
|
5258
5268
|
},
|
|
5259
|
-
onFolderPopupPathChange:
|
|
5260
|
-
showHiddenFileSwitcher:
|
|
5261
|
-
showCreateFolderButton:
|
|
5262
|
-
hideSearchPathItemName:
|
|
5269
|
+
onFolderPopupPathChange: Et,
|
|
5270
|
+
showHiddenFileSwitcher: No,
|
|
5271
|
+
showCreateFolderButton: Yt,
|
|
5272
|
+
hideSearchPathItemName: gt
|
|
5263
5273
|
}
|
|
5264
5274
|
),
|
|
5265
5275
|
/* @__PURE__ */ a(
|
|
5266
|
-
|
|
5276
|
+
Ea,
|
|
5267
5277
|
{
|
|
5268
5278
|
...N,
|
|
5269
|
-
open:
|
|
5270
|
-
onClose:
|
|
5279
|
+
open: ho,
|
|
5280
|
+
onClose: Kt,
|
|
5271
5281
|
onReplace: st,
|
|
5272
5282
|
onDuplicate: Fe,
|
|
5273
|
-
onDecideForEach:
|
|
5274
|
-
conflictingFiles:
|
|
5283
|
+
onDecideForEach: Fn,
|
|
5284
|
+
conflictingFiles: co
|
|
5275
5285
|
}
|
|
5276
5286
|
),
|
|
5277
5287
|
/* @__PURE__ */ a(
|
|
5278
|
-
|
|
5288
|
+
Ea,
|
|
5279
5289
|
{
|
|
5280
5290
|
...N,
|
|
5281
5291
|
open: Qe,
|
|
5282
5292
|
onClose: rt,
|
|
5283
|
-
onReplace:
|
|
5284
|
-
onDuplicate:
|
|
5285
|
-
onDecideForEach:
|
|
5293
|
+
onReplace: pt,
|
|
5294
|
+
onDuplicate: Sn,
|
|
5295
|
+
onDecideForEach: uo,
|
|
5286
5296
|
conflictingFiles: Ye
|
|
5287
5297
|
}
|
|
5288
5298
|
),
|
|
5289
5299
|
/* @__PURE__ */ a(
|
|
5290
5300
|
Ti,
|
|
5291
5301
|
{
|
|
5292
|
-
open:
|
|
5293
|
-
onClose:
|
|
5294
|
-
fileMetadata:
|
|
5295
|
-
loading:
|
|
5296
|
-
header:
|
|
5297
|
-
nameLabel:
|
|
5298
|
-
pathLabel:
|
|
5299
|
-
modifiedDateLabel:
|
|
5300
|
-
sizeLabel:
|
|
5301
|
-
authorLabel:
|
|
5302
|
+
open: En,
|
|
5303
|
+
onClose: fo,
|
|
5304
|
+
fileMetadata: je?.fileMetadata ?? ft,
|
|
5305
|
+
loading: je?.loading,
|
|
5306
|
+
header: je?.header,
|
|
5307
|
+
nameLabel: je?.nameLabel,
|
|
5308
|
+
pathLabel: je?.pathLabel,
|
|
5309
|
+
modifiedDateLabel: je?.modifiedDateLabel,
|
|
5310
|
+
sizeLabel: je?.sizeLabel,
|
|
5311
|
+
authorLabel: je?.authorLabel,
|
|
5302
5312
|
dateLocale: h?.dateLocale,
|
|
5303
5313
|
dateOptions: h?.dateOptions
|
|
5304
5314
|
}
|
|
@@ -5306,14 +5316,14 @@ const Li = () => {
|
|
|
5306
5316
|
]
|
|
5307
5317
|
}
|
|
5308
5318
|
) });
|
|
5309
|
-
}, Ki = (e, t =
|
|
5310
|
-
const o = Object.values(
|
|
5319
|
+
}, Ki = (e, t = yn.MyFiles) => {
|
|
5320
|
+
const o = Object.values(yn).includes(
|
|
5311
5321
|
t
|
|
5312
|
-
) ? t :
|
|
5322
|
+
) ? t : yn.MyFiles, [s, n] = L(o), r = (l) => {
|
|
5313
5323
|
n(l);
|
|
5314
5324
|
}, i = H(() => {
|
|
5315
5325
|
if (e)
|
|
5316
|
-
return Object.values(
|
|
5326
|
+
return Object.values(yn).map((l) => ({
|
|
5317
5327
|
value: l,
|
|
5318
5328
|
label: e?.[l] || l.replace("_", " ")
|
|
5319
5329
|
}));
|
|
@@ -5330,21 +5340,21 @@ export {
|
|
|
5330
5340
|
Wi as DialFileManager,
|
|
5331
5341
|
y as DialFileManagerActions,
|
|
5332
5342
|
ve as DialFileManagerConflictActions,
|
|
5333
|
-
|
|
5343
|
+
Ue as DialFileManagerConflictStrategies,
|
|
5334
5344
|
yi as DialFileManagerSortDropdown,
|
|
5335
|
-
|
|
5345
|
+
yn as DialFileManagerTabs,
|
|
5336
5346
|
O as DialFileNodeType,
|
|
5337
|
-
|
|
5347
|
+
jt as DialFilePermission,
|
|
5338
5348
|
pr as DialFileResourceType,
|
|
5339
5349
|
Fi as DialFoldersTree,
|
|
5340
5350
|
A as FILE_MANAGER_ICON_PROPS,
|
|
5341
|
-
|
|
5351
|
+
Xa as FILE_MANAGER_ICON_STROKE,
|
|
5342
5352
|
Se as FileManagerColumnKey,
|
|
5343
|
-
|
|
5344
|
-
|
|
5353
|
+
Dt as FileManagerCreateFolderTriggerView,
|
|
5354
|
+
$e as FileManagerCreateFolderType,
|
|
5345
5355
|
qr as FileManagerProvider,
|
|
5346
|
-
|
|
5347
|
-
|
|
5356
|
+
Ht as FileManagerRenameTriggerView,
|
|
5357
|
+
$t as FileManagerSortDirection,
|
|
5348
5358
|
nt as FileManagerSortField,
|
|
5349
5359
|
gr as GridSelectionMode,
|
|
5350
5360
|
Ai as NAME_COLUMN,
|