@epam/ai-dial-react-file-manager 0.1.0-dev.16 → 0.1.0-dev.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
1
|
+
import { jsx as o, jsxs as X, Fragment as Ie } from "react/jsx-runtime";
|
|
2
2
|
import { IconCircleFilled as Hn, IconChevronDown as er, IconDotsVertical as sn, IconFolder as fa, IconPlus as tr, IconFile as nr, IconFileZip as or, IconCopyMinus as ar, IconFolderPlus as Jo, IconEye as Eo, IconX as rr, IconArrowLeft as sr, IconEyeOff as ir, IconAlertCircleFilled as lr, IconAlertTriangleFilled as cr, IconCaretRightFilled as dr, IconUserX as So, IconCopy as Ao, IconTrashX as Po, IconDownload as Mo, IconExternalLink as Io, IconPencilMinus as ma, IconInfoCircle as ur, IconFileDescription as hr } from "@tabler/icons-react";
|
|
3
3
|
import on from "classnames";
|
|
4
4
|
import * as Ge from "react";
|
|
5
5
|
import { useState as z, useMemo as $, useCallback as d, useRef as ce, useEffect as pe, createContext as pr, useLayoutEffect as fr, useContext as mr, useImperativeHandle as Cr } from "react";
|
|
6
|
-
import { DialFolderName as ko, DialFileName as Oo, DialDropdown as ht, DropdownTrigger as Ca, DIAL_ICON_SIZE as Lo, DialGrid as ga, DialPopup as zo, PopupSize as Un, DialRadioGroup as ea, RadioGroupOrientation as ta, NeutralButton as an, PrimaryButton as nn, DialIcon as _o, BASE_ICON_PROPS as M, mergeClasses as Ee, NotificationVariant as Fo, GhostIconButton as $n, ElementSize as Bo, NOT_ALLOWED_SYMBOLS_REGEXP as gr, DialTooltipContainer as vr, DialTooltipTrigger as yr, DialTooltipContent as wr, Notification as
|
|
6
|
+
import { DialFolderName as ko, DialFileName as Oo, DialDropdown as ht, DropdownTrigger as Ca, DIAL_ICON_SIZE as Lo, DialGrid as ga, DialPopup as zo, PopupSize as Un, DialRadioGroup as ea, RadioGroupOrientation as ta, NeutralButton as an, PrimaryButton as nn, DialIcon as _o, BASE_ICON_PROPS as M, mergeClasses as Ee, NotificationVariant as Fo, GhostIconButton as $n, ElementSize as Bo, NOT_ALLOWED_SYMBOLS_REGEXP as gr, DialTooltipContainer as vr, DialTooltipTrigger as yr, DialTooltipContent as wr, Notification as xr, ButtonAppearance as va, DialSwitch as ya, DialTooltip as Gn, FlexibleActionsDirection as en, BASE_ICON_SIZE as wa, DialConfirmationPopup as Dr, ConfirmationPopupVariant as Nr, DialBreadcrumb as br, DialSearch as Tr, ButtonVariant as Rr, DialTabs as Ir, ScreenResolution as Fr, ButtonDropdown as na, DialSkeleton as Xt, DialSkeletonVariant as qt, DialEllipsisTooltip as Tt, DialItemType as We, DialFileIcon as Er, DialSharedEntityIndicator as oa, DialLoader as Sr, editableContainerProps as Ar, DialInput as Pr, useEditableItem as Mr, DialNoDataContent as xa, DialDateCellRenderer as Da, convertGridDateToDate as kr, DEFAULT_GRID_DATE_LOCALE as Or, DEFAULT_GRID_DATE_FORMAT_OPTIONS as Lr, DropdownItemType as Na, DialConditionalResizableContainer as zr, DialCollapsibleSidebar as _r } from "@epam/ai-dial-ui-kit";
|
|
7
7
|
import { extensions as aa } from "mime-types";
|
|
8
8
|
import { createPortal as Br } from "react-dom";
|
|
9
9
|
const ba = (e) => /* @__PURE__ */ Ge.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ge.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.1812 1.2002H2.80615C2.43319 1.2002 2.07551 1.34835 1.81178 1.61208C1.54806 1.8758 1.3999 2.23348 1.3999 2.60645V5.48145C1.3999 5.85441 1.54806 6.21209 1.81178 6.47581C2.07551 6.73954 2.43319 6.8877 2.80615 6.8877H15.1812C15.5541 6.8877 15.9118 6.73954 16.1755 6.47581C16.4392 6.21209 16.5874 5.85441 16.5874 5.48145V2.60645C16.5874 2.23348 16.4392 1.8758 16.1755 1.61208C15.9118 1.34835 15.5541 1.2002 15.1812 1.2002ZM14.8999 5.2002H3.0874V2.8877H14.8999V5.2002ZM12 7.80017C12.3107 7.80017 12.5625 8.05201 12.5625 8.36267V11.7377H15.9375C16.2482 11.7377 16.5 11.9895 16.5 12.3002C16.5 12.6108 16.2482 12.8627 15.9375 12.8627H12.5625V16.2377C12.5625 16.5483 12.3107 16.8002 12 16.8002C11.6893 16.8002 11.4375 16.5483 11.4375 16.2377V12.8627H8.0625C7.75184 12.8627 7.5 12.6108 7.5 12.3002C7.5 11.9895 7.75184 11.7377 8.0625 11.7377H11.4375V8.36267C11.4375 8.05201 11.6893 7.80017 12 7.80017ZM2.41188 12.5883C2.14816 12.3246 2 11.9669 2 11.5939V9.00018H3.6875V11.3127H6.1001V13.0002H3.40625C3.03329 13.0002 2.6756 12.852 2.41188 12.5883Z", fill: "currentColor" })), Ta = (e) => /* @__PURE__ */ Ge.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ge.createElement("path", { d: "M9.00049 7.7998C9.3108 7.80007 9.56279 8.05198 9.56299 8.3623V11.7373H12.938C13.2483 11.7376 13.5003 11.9895 13.5005 12.2998C13.5005 12.6103 13.2484 12.862 12.938 12.8623H9.56299V16.2373C9.56299 16.5478 9.31092 16.7995 9.00049 16.7998C8.68983 16.7998 8.43799 16.548 8.43799 16.2373V12.8623H5.06299C4.75233 12.8623 4.50049 12.6105 4.50049 12.2998C4.50069 11.9893 4.75245 11.7373 5.06299 11.7373H8.43799V8.3623C8.43819 8.05181 8.68995 7.7998 9.00049 7.7998ZM15.1812 1.2002C15.5541 1.2002 15.9116 1.34858 16.1753 1.6123C16.439 1.87603 16.5874 2.23348 16.5874 2.60645V5.48145C16.5874 5.85441 16.439 6.21186 16.1753 6.47559C15.9116 6.73931 15.5541 6.8877 15.1812 6.8877H2.80615C2.43319 6.8877 2.07573 6.73931 1.81201 6.47559C1.54829 6.21186 1.3999 5.85441 1.3999 5.48145V2.60645C1.3999 2.23348 1.54829 1.87603 1.81201 1.6123C2.07573 1.34858 2.43319 1.2002 2.80615 1.2002H15.1812ZM3.0874 2.8877V5.2002H14.8999V2.8877H3.0874Z", fill: "currentColor" })), Wo = (e) => /* @__PURE__ */ Ge.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ge.createElement("path", { d: "M3.009 12.5527C2.77901 12.4216 2.5877 12.2321 2.45443 12.0034C2.32116 11.7746 2.25064 11.5147 2.25 11.25V3.75C2.25 2.925 2.925 2.25 3.75 2.25H11.25C11.8125 2.25 12.1185 2.53875 12.375 3M10.5 15.75H7.25025C6.98757 15.75 6.72747 15.6983 6.48479 15.5977C6.24211 15.4972 6.0216 15.3499 5.83586 15.1641C5.65012 14.9784 5.50278 14.7579 5.40226 14.5152C5.30174 14.2725 5.25 14.0124 5.25 13.7498V7.25025C5.25 6.71975 5.46074 6.21098 5.83586 5.83586C6.21098 5.46074 6.71975 5.25 7.25025 5.25H13.7498C14.0124 5.25 14.2725 5.30174 14.5152 5.40226C14.7579 5.50278 14.9784 5.65012 15.1641 5.83586C15.3499 6.0216 15.4972 6.24211 15.5977 6.48479C15.6983 6.72747 15.75 6.98757 15.75 7.25025V10.5M12.75 16.5L16.5 12.75M16.5 12.75V16.125M16.5 12.75H13.125", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), Ho = (e) => /* @__PURE__ */ Ge.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ge.createElement("path", { d: "M9.75 14.25H3.75C3.35218 14.25 2.97064 14.092 2.68934 13.8107C2.40804 13.5294 2.25 13.1478 2.25 12.75V4.5C2.25 4.10218 2.40804 3.72064 2.68934 3.43934C2.97064 3.15804 3.35218 3 3.75 3H6.75L9 5.25H14.25C14.6478 5.25 15.0294 5.40804 15.3107 5.68934C15.592 5.97064 15.75 6.35218 15.75 6.75V9.75M12 16.5L15.75 12.75M15.75 12.75V16.125M15.75 12.75H12.375", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), Uo = (e) => /* @__PURE__ */ Ge.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ge.createElement("path", { d: "M4.5 15.75V14.25C4.5 13.4544 4.81607 12.6913 5.37868 12.1287C5.94129 11.5661 6.70435 11.25 7.5 11.25H9.75M15.75 12.75L12 16.5M12 16.5V13.125M12 16.5H15.375M6 5.25C6 6.04565 6.31607 6.80871 6.87868 7.37132C7.44129 7.93393 8.20435 8.25 9 8.25C9.79565 8.25 10.5587 7.93393 11.1213 7.37132C11.6839 6.80871 12 6.04565 12 5.25C12 4.45435 11.6839 3.69129 11.1213 3.12868C10.5587 2.56607 9.79565 2.25 9 2.25C8.20435 2.25 7.44129 2.56607 6.87868 3.12868C6.31607 3.69129 6 4.45435 6 5.25Z", stroke: "#7F8792", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
@@ -33,7 +33,7 @@ const la = ({
|
|
|
33
33
|
nameColumnLabel: y = "Name",
|
|
34
34
|
actionColumnLabel: g = "Action"
|
|
35
35
|
}) => {
|
|
36
|
-
const m = r.length === 1, b = m ? r[0]?.name : "",
|
|
36
|
+
const m = r.length === 1, b = m ? r[0]?.name : "", D = C?.[Ce.Replace] ?? "Replace", h = C?.[Ce.Duplicate] ?? "Duplicate", f = C?.[Ce.Cancel] ?? "Cancel", T = c?.[ke.ReplaceAll] ?? "Replace all", N = c?.[ke.DuplicateAll] ?? "Duplicate all", F = c?.[ke.DecideForEach] ?? "Decide for each", [I, S] = z(
|
|
37
37
|
Ce.Replace
|
|
38
38
|
), [A, _] = z(
|
|
39
39
|
ke.ReplaceAll
|
|
@@ -46,9 +46,9 @@ const la = ({
|
|
|
46
46
|
)
|
|
47
47
|
), [k, B] = z(
|
|
48
48
|
void 0
|
|
49
|
-
), L = m ? l : i, Y = /* @__PURE__ */
|
|
49
|
+
), L = m ? l : i, Y = /* @__PURE__ */ X(Ie, { children: [
|
|
50
50
|
"Item with the name ",
|
|
51
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ X("span", { className: "text-primary", children: [
|
|
52
52
|
'"',
|
|
53
53
|
b,
|
|
54
54
|
'"'
|
|
@@ -59,14 +59,14 @@ const la = ({
|
|
|
59
59
|
() => [
|
|
60
60
|
{
|
|
61
61
|
id: Ce.Replace,
|
|
62
|
-
name:
|
|
62
|
+
name: D
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
id: Ce.Duplicate,
|
|
66
66
|
name: h
|
|
67
67
|
}
|
|
68
68
|
],
|
|
69
|
-
[
|
|
69
|
+
[D, h]
|
|
70
70
|
), fe = $(() => r.map((W) => ({
|
|
71
71
|
id: W.path,
|
|
72
72
|
name: W.name,
|
|
@@ -110,7 +110,7 @@ const la = ({
|
|
|
110
110
|
const be = [
|
|
111
111
|
{
|
|
112
112
|
key: Ce.Replace,
|
|
113
|
-
label:
|
|
113
|
+
label: D,
|
|
114
114
|
icon: /* @__PURE__ */ o(Hn, { size: 10, className: "text-accent-tertiary" })
|
|
115
115
|
},
|
|
116
116
|
{
|
|
@@ -123,7 +123,7 @@ const la = ({
|
|
|
123
123
|
label: f,
|
|
124
124
|
icon: /* @__PURE__ */ o(Hn, { size: 10, className: "text-error" })
|
|
125
125
|
}
|
|
126
|
-
],
|
|
126
|
+
], De = be.find(
|
|
127
127
|
(ne) => ne.key === W.data.action
|
|
128
128
|
), G = k === W.data.path;
|
|
129
129
|
return /* @__PURE__ */ o("div", { className: "flex items-center h-full", children: /* @__PURE__ */ o(
|
|
@@ -147,10 +147,10 @@ const la = ({
|
|
|
147
147
|
onOpenChange: (ne) => {
|
|
148
148
|
B(ne ? W.data.path : void 0);
|
|
149
149
|
},
|
|
150
|
-
children: /* @__PURE__ */
|
|
151
|
-
/* @__PURE__ */
|
|
152
|
-
|
|
153
|
-
|
|
150
|
+
children: /* @__PURE__ */ X("button", { type: "button", className: "flex items-center gap-2", children: [
|
|
151
|
+
/* @__PURE__ */ X("span", { className: "flex items-center gap-2", children: [
|
|
152
|
+
De?.icon,
|
|
153
|
+
De?.label ?? D
|
|
154
154
|
] }),
|
|
155
155
|
/* @__PURE__ */ o(
|
|
156
156
|
er,
|
|
@@ -170,11 +170,11 @@ const la = ({
|
|
|
170
170
|
], [
|
|
171
171
|
y,
|
|
172
172
|
g,
|
|
173
|
-
|
|
173
|
+
D,
|
|
174
174
|
h,
|
|
175
175
|
f,
|
|
176
176
|
k
|
|
177
|
-
]),
|
|
177
|
+
]), Ne = $(
|
|
178
178
|
() => [
|
|
179
179
|
{
|
|
180
180
|
id: ke.ReplaceAll,
|
|
@@ -182,7 +182,7 @@ const la = ({
|
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
id: ke.DuplicateAll,
|
|
185
|
-
name:
|
|
185
|
+
name: N
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
188
|
id: ke.DecideForEach,
|
|
@@ -204,7 +204,7 @@ const la = ({
|
|
|
204
204
|
],
|
|
205
205
|
[
|
|
206
206
|
T,
|
|
207
|
-
|
|
207
|
+
N,
|
|
208
208
|
F,
|
|
209
209
|
A,
|
|
210
210
|
we,
|
|
@@ -219,9 +219,9 @@ const la = ({
|
|
|
219
219
|
])
|
|
220
220
|
)
|
|
221
221
|
);
|
|
222
|
-
}, [r]),
|
|
222
|
+
}, [r]), Te = d(() => {
|
|
223
223
|
ue(), t();
|
|
224
|
-
}, [ue, t]),
|
|
224
|
+
}, [ue, t]), xe = d(() => {
|
|
225
225
|
if (ue(), m)
|
|
226
226
|
I === Ce.Replace ? s() : a();
|
|
227
227
|
else if (A === ke.ReplaceAll)
|
|
@@ -252,17 +252,17 @@ const la = ({
|
|
|
252
252
|
zo,
|
|
253
253
|
{
|
|
254
254
|
open: e,
|
|
255
|
-
onClose:
|
|
255
|
+
onClose: Te,
|
|
256
256
|
size: m ? Un.Sm : Un.Md,
|
|
257
257
|
className: on([!m && "w-[600px]"]),
|
|
258
258
|
header: L,
|
|
259
259
|
dividers: !1,
|
|
260
260
|
preventKeyboardOnOpen: !0,
|
|
261
|
-
footer: /* @__PURE__ */
|
|
262
|
-
/* @__PURE__ */ o(an, { onClick:
|
|
263
|
-
/* @__PURE__ */ o(nn, { onClick:
|
|
261
|
+
footer: /* @__PURE__ */ X("div", { className: "flex justify-end gap-3 py-4 px-6 border-t border-tertiary", children: [
|
|
262
|
+
/* @__PURE__ */ o(an, { onClick: Te, label: u }),
|
|
263
|
+
/* @__PURE__ */ o(nn, { onClick: xe, label: v })
|
|
264
264
|
] }),
|
|
265
|
-
children: /* @__PURE__ */
|
|
265
|
+
children: /* @__PURE__ */ X("div", { className: "px-6 py-4", children: [
|
|
266
266
|
/* @__PURE__ */ o("p", { className: "text-secondary mb-4 break-words", children: j }),
|
|
267
267
|
m ? /* @__PURE__ */ o(
|
|
268
268
|
ea,
|
|
@@ -277,7 +277,7 @@ const la = ({
|
|
|
277
277
|
ea,
|
|
278
278
|
{
|
|
279
279
|
elementId: "multiple-files-conflict",
|
|
280
|
-
radioButtons:
|
|
280
|
+
radioButtons: Ne,
|
|
281
281
|
activeRadioButton: A,
|
|
282
282
|
orientation: ta.Column,
|
|
283
283
|
onChange: (W) => _(W),
|
|
@@ -523,7 +523,7 @@ const cs = (e) => {
|
|
|
523
523
|
p.current = !1, r(!1), a([]), i(null);
|
|
524
524
|
}, []), v = d(
|
|
525
525
|
(f, T) => {
|
|
526
|
-
const
|
|
526
|
+
const N = e(f), F = new Set(N.map(Ro)), I = T.filter((S) => F.has(S.name));
|
|
527
527
|
return {
|
|
528
528
|
hasConflicts: I.length > 0,
|
|
529
529
|
conflicts: I
|
|
@@ -531,14 +531,14 @@ const cs = (e) => {
|
|
|
531
531
|
},
|
|
532
532
|
[e]
|
|
533
533
|
), u = d(
|
|
534
|
-
(f, T,
|
|
534
|
+
(f, T, N, F) => {
|
|
535
535
|
const I = e(f), S = new Set(I.map(Ro));
|
|
536
536
|
return T.map((A) => {
|
|
537
|
-
const _ = A.name, U = S.has(_), P =
|
|
538
|
-
return (!
|
|
537
|
+
const _ = A.name, U = S.has(_), P = N && U ? _ : ca(_, S, A.nodeType);
|
|
538
|
+
return (!N || !U) && S.add(P), {
|
|
539
539
|
sourceUrl: A.path,
|
|
540
540
|
destinationUrl: `${f}/${P}`,
|
|
541
|
-
overwrite:
|
|
541
|
+
overwrite: N && U,
|
|
542
542
|
nodeType: A.nodeType ?? O.ITEM,
|
|
543
543
|
...F ?? {}
|
|
544
544
|
};
|
|
@@ -546,10 +546,10 @@ const cs = (e) => {
|
|
|
546
546
|
},
|
|
547
547
|
[e]
|
|
548
548
|
), y = d(
|
|
549
|
-
(f, T,
|
|
549
|
+
(f, T, N, F) => {
|
|
550
550
|
const I = e(f), S = new Set(I.map(Ro));
|
|
551
|
-
return T.filter((_) =>
|
|
552
|
-
const U =
|
|
551
|
+
return T.filter((_) => N.get(_.path) !== Ce.Cancel).map((_) => {
|
|
552
|
+
const U = N.get(_.path), P = S.has(_.name), k = U === Ce.Replace && P, B = k ? _.name : ca(_.name, S, _.nodeType);
|
|
553
553
|
return k || S.add(B), {
|
|
554
554
|
sourceUrl: _.path,
|
|
555
555
|
destinationUrl: `${f}/${B}`,
|
|
@@ -561,22 +561,22 @@ const cs = (e) => {
|
|
|
561
561
|
},
|
|
562
562
|
[e]
|
|
563
563
|
), g = d(
|
|
564
|
-
(f, T,
|
|
564
|
+
(f, T, N) => {
|
|
565
565
|
const F = v(f, T);
|
|
566
566
|
return F.hasConflicts && (i({
|
|
567
567
|
files: T,
|
|
568
568
|
destinationFolder: f,
|
|
569
|
-
metadata:
|
|
569
|
+
metadata: N
|
|
570
570
|
}), C(F.conflicts)), F;
|
|
571
571
|
},
|
|
572
572
|
[v, C]
|
|
573
573
|
), m = d(() => {
|
|
574
574
|
if (!l) return;
|
|
575
|
-
const { files: f, destinationFolder: T, metadata:
|
|
575
|
+
const { files: f, destinationFolder: T, metadata: N } = l, F = u(
|
|
576
576
|
T,
|
|
577
577
|
f,
|
|
578
578
|
!0,
|
|
579
|
-
|
|
579
|
+
N
|
|
580
580
|
);
|
|
581
581
|
t?.(F, T), c();
|
|
582
582
|
}, [
|
|
@@ -586,11 +586,11 @@ const cs = (e) => {
|
|
|
586
586
|
c
|
|
587
587
|
]), b = d(() => {
|
|
588
588
|
if (!l) return;
|
|
589
|
-
const { files: f, destinationFolder: T, metadata:
|
|
589
|
+
const { files: f, destinationFolder: T, metadata: N } = l, F = u(
|
|
590
590
|
T,
|
|
591
591
|
f,
|
|
592
592
|
!1,
|
|
593
|
-
|
|
593
|
+
N
|
|
594
594
|
);
|
|
595
595
|
t?.(F, T), c();
|
|
596
596
|
}, [
|
|
@@ -598,9 +598,9 @@ const cs = (e) => {
|
|
|
598
598
|
u,
|
|
599
599
|
t,
|
|
600
600
|
c
|
|
601
|
-
]),
|
|
601
|
+
]), D = d(() => {
|
|
602
602
|
if (!l) return;
|
|
603
|
-
const { files: f, destinationFolder: T, metadata:
|
|
603
|
+
const { files: f, destinationFolder: T, metadata: N } = l, F = y(
|
|
604
604
|
T,
|
|
605
605
|
f,
|
|
606
606
|
new Map(
|
|
@@ -609,7 +609,7 @@ const cs = (e) => {
|
|
|
609
609
|
Ce.Cancel
|
|
610
610
|
])
|
|
611
611
|
),
|
|
612
|
-
|
|
612
|
+
N
|
|
613
613
|
);
|
|
614
614
|
t?.(F, T), c();
|
|
615
615
|
}, [
|
|
@@ -621,15 +621,15 @@ const cs = (e) => {
|
|
|
621
621
|
]), h = d(
|
|
622
622
|
(f) => {
|
|
623
623
|
if (!l) return;
|
|
624
|
-
const { files: T, destinationFolder:
|
|
624
|
+
const { files: T, destinationFolder: N, metadata: F } = l, I = new Map(
|
|
625
625
|
f.map((A) => [A.file.path, A.action])
|
|
626
626
|
), S = y(
|
|
627
|
-
|
|
627
|
+
N,
|
|
628
628
|
T,
|
|
629
629
|
I,
|
|
630
630
|
F
|
|
631
631
|
);
|
|
632
|
-
t?.(S,
|
|
632
|
+
t?.(S, N), c();
|
|
633
633
|
},
|
|
634
634
|
[
|
|
635
635
|
l,
|
|
@@ -650,7 +650,7 @@ const cs = (e) => {
|
|
|
650
650
|
closeConflictResolution: c,
|
|
651
651
|
handleReplaceAll: m,
|
|
652
652
|
handleDuplicateAll: b,
|
|
653
|
-
handleCancelAll:
|
|
653
|
+
handleCancelAll: D,
|
|
654
654
|
handleDecideForEach: h
|
|
655
655
|
};
|
|
656
656
|
}, ms = ({
|
|
@@ -663,9 +663,9 @@ const cs = (e) => {
|
|
|
663
663
|
getCopyHeader: l,
|
|
664
664
|
getMoveHeader: i
|
|
665
665
|
}) => {
|
|
666
|
-
const [p, C] = z(!1), [c, v] = z([]), [u, y] = z([]), [g, m] = z(ge.Copy), [b,
|
|
666
|
+
const [p, C] = z(!1), [c, v] = z([]), [u, y] = z([]), [g, m] = z(ge.Copy), [b, D] = z(), [h, f] = z(null), {
|
|
667
667
|
conflictingFiles: T,
|
|
668
|
-
conflictResolutionOpen:
|
|
668
|
+
conflictResolutionOpen: N,
|
|
669
669
|
hasActiveConflictRef: F,
|
|
670
670
|
startConflictResolution: I,
|
|
671
671
|
resolveConflictsWithStrategy: S,
|
|
@@ -685,7 +685,7 @@ const cs = (e) => {
|
|
|
685
685
|
), n?.()));
|
|
686
686
|
}
|
|
687
687
|
}), L = d(() => {
|
|
688
|
-
v([]), y([]), f(null),
|
|
688
|
+
v([]), y([]), f(null), D(void 0);
|
|
689
689
|
}, []), Y = d(
|
|
690
690
|
(G) => {
|
|
691
691
|
const ne = I(G, c, {
|
|
@@ -743,7 +743,7 @@ const cs = (e) => {
|
|
|
743
743
|
B(G), L();
|
|
744
744
|
},
|
|
745
745
|
[B, L]
|
|
746
|
-
),
|
|
746
|
+
), Ne = d(
|
|
747
747
|
(G) => {
|
|
748
748
|
const ne = G.at(0)?.parentPath ?? "/", he = S(
|
|
749
749
|
ne,
|
|
@@ -758,20 +758,20 @@ const cs = (e) => {
|
|
|
758
758
|
m(G), C(!0);
|
|
759
759
|
},
|
|
760
760
|
[]
|
|
761
|
-
),
|
|
761
|
+
), Te = d(() => {
|
|
762
762
|
C(!1), F.current || L();
|
|
763
|
-
}, [L, F]), [
|
|
763
|
+
}, [L, F]), [xe, W] = z(), be = d(
|
|
764
764
|
(G) => {
|
|
765
765
|
v(G);
|
|
766
766
|
const ne = G[0]?.parentPath ?? G[0]?.folderId;
|
|
767
|
-
|
|
767
|
+
D(ne), l && G.length > 0 ? W(l(G.length, G[0]?.name)) : W(void 0);
|
|
768
768
|
},
|
|
769
769
|
[l]
|
|
770
|
-
),
|
|
770
|
+
), De = d(
|
|
771
771
|
(G) => {
|
|
772
772
|
y(G);
|
|
773
773
|
const ne = G[0]?.parentPath ?? G[0]?.folderId;
|
|
774
|
-
|
|
774
|
+
D(ne), f({
|
|
775
775
|
type: ge.Move,
|
|
776
776
|
sourceFolder: ne
|
|
777
777
|
}), i && G.length > 0 ? W(i(G.length, G[0]?.name)) : W(void 0);
|
|
@@ -779,19 +779,19 @@ const cs = (e) => {
|
|
|
779
779
|
[i]
|
|
780
780
|
);
|
|
781
781
|
return {
|
|
782
|
-
handleDuplicate:
|
|
783
|
-
handleCloseDestinationFolderPopup:
|
|
782
|
+
handleDuplicate: Ne,
|
|
783
|
+
handleCloseDestinationFolderPopup: Te,
|
|
784
784
|
handleOpenDestinationFolderPopup: ue,
|
|
785
785
|
handleCopyTo: Y,
|
|
786
786
|
handleMoveTo: J,
|
|
787
787
|
openDestinationFolderPopup: p,
|
|
788
788
|
destinationFolderMode: g,
|
|
789
|
-
destinationFolderTitle:
|
|
789
|
+
destinationFolderTitle: xe,
|
|
790
790
|
handleSetCopiedFiles: be,
|
|
791
|
-
handleSetMovedFiles:
|
|
791
|
+
handleSetMovedFiles: De,
|
|
792
792
|
clearState: L,
|
|
793
793
|
conflictingFiles: T,
|
|
794
|
-
conflictResolutionOpen:
|
|
794
|
+
conflictResolutionOpen: N,
|
|
795
795
|
openConflictResolution: _,
|
|
796
796
|
closeConflictResolution: A,
|
|
797
797
|
handleConflictReplace: j,
|
|
@@ -880,7 +880,7 @@ const cs = (e) => {
|
|
|
880
880
|
uploadEnabled: i = !0,
|
|
881
881
|
currentFolder: p
|
|
882
882
|
} = {}) => {
|
|
883
|
-
const [C, c] = z(!1), [v, u] = z(!1), [y, g] = z(), m = ce(null), b = ce(""),
|
|
883
|
+
const [C, c] = z(!1), [v, u] = z(!1), [y, g] = z(), m = ce(null), b = ce(""), D = ce([]), h = $(() => !!p?.permissions?.includes(Et.WRITE), [p]), [f, T] = z(/* @__PURE__ */ new Map()), [N, F] = z(null), I = d(
|
|
884
884
|
(R) => !a || a.includes("*/*") ? R : R.filter(
|
|
885
885
|
({ fileContent: H, name: V }) => Go(a, H.type, V)
|
|
886
886
|
),
|
|
@@ -899,26 +899,26 @@ const cs = (e) => {
|
|
|
899
899
|
handleCancelAll: J,
|
|
900
900
|
handleDecideForEach: j
|
|
901
901
|
} = Ia({
|
|
902
|
-
getDestinationFiles: () =>
|
|
902
|
+
getDestinationFiles: () => D.current,
|
|
903
903
|
onResolve: (R, H) => {
|
|
904
904
|
if (!i || !h) {
|
|
905
905
|
S();
|
|
906
906
|
return;
|
|
907
907
|
}
|
|
908
|
-
if (!
|
|
908
|
+
if (!N) return;
|
|
909
909
|
const V = R.map((Q) => {
|
|
910
|
-
const
|
|
911
|
-
if (!
|
|
910
|
+
const Z = f.get(Q.sourceUrl);
|
|
911
|
+
if (!Z)
|
|
912
912
|
return;
|
|
913
913
|
const me = Q.destinationUrl.split("/").pop();
|
|
914
914
|
return {
|
|
915
|
-
fileContent:
|
|
915
|
+
fileContent: Z.fileContent,
|
|
916
916
|
name: me
|
|
917
917
|
};
|
|
918
918
|
}).filter(Boolean);
|
|
919
919
|
if (V[0]?.fileContent?.type === "application/zip") {
|
|
920
|
-
const { fileContent: Q, name:
|
|
921
|
-
r?.(Q,
|
|
920
|
+
const { fileContent: Q, name: Z } = V[0];
|
|
921
|
+
r?.(Q, Z, H);
|
|
922
922
|
} else V.length > 0 && e?.(V, H);
|
|
923
923
|
S();
|
|
924
924
|
}
|
|
@@ -939,11 +939,11 @@ const cs = (e) => {
|
|
|
939
939
|
R--, R === 0 && u(!1);
|
|
940
940
|
}, Q = () => {
|
|
941
941
|
R = 0, u(!1);
|
|
942
|
-
},
|
|
942
|
+
}, Z = (me) => {
|
|
943
943
|
me.preventDefault();
|
|
944
944
|
};
|
|
945
|
-
return window.addEventListener("dragenter", H), window.addEventListener("dragleave", V), window.addEventListener("drop", Q), window.addEventListener("dragover",
|
|
946
|
-
window.removeEventListener("dragenter", H), window.removeEventListener("dragleave", V), window.removeEventListener("drop", Q), window.removeEventListener("dragover",
|
|
945
|
+
return window.addEventListener("dragenter", H), window.addEventListener("dragleave", V), window.addEventListener("drop", Q), window.addEventListener("dragover", Z), () => {
|
|
946
|
+
window.removeEventListener("dragenter", H), window.removeEventListener("dragleave", V), window.removeEventListener("drop", Q), window.removeEventListener("dragover", Z);
|
|
947
947
|
};
|
|
948
948
|
}, [i, h]);
|
|
949
949
|
const te = d(
|
|
@@ -963,13 +963,13 @@ const cs = (e) => {
|
|
|
963
963
|
), we = d(
|
|
964
964
|
async (R, H, V) => {
|
|
965
965
|
if (!i || !h) return !1;
|
|
966
|
-
g(void 0),
|
|
966
|
+
g(void 0), D.current = V;
|
|
967
967
|
const Q = l ? R.map((ae) => ({
|
|
968
968
|
...ae,
|
|
969
969
|
name: l(ae.name)
|
|
970
|
-
})) : R,
|
|
971
|
-
if (
|
|
972
|
-
const ae = s ? (s / 1048576).toFixed(2) : 0, Ve = n.oversizedFiles || `Files exceed maximum size (${ae}MB): ${
|
|
970
|
+
})) : R, Z = te(Q);
|
|
971
|
+
if (Z.length > 0) {
|
|
972
|
+
const ae = s ? (s / 1048576).toFixed(2) : 0, Ve = n.oversizedFiles || `Files exceed maximum size (${ae}MB): ${Z.join(", ")}`;
|
|
973
973
|
return g(Ve), !1;
|
|
974
974
|
}
|
|
975
975
|
if (t)
|
|
@@ -1011,13 +1011,13 @@ const cs = (e) => {
|
|
|
1011
1011
|
S,
|
|
1012
1012
|
h
|
|
1013
1013
|
]
|
|
1014
|
-
),
|
|
1014
|
+
), Ne = d(() => {
|
|
1015
1015
|
L(), S();
|
|
1016
1016
|
}, [L, S]), ue = d(() => {
|
|
1017
1017
|
Y(), S();
|
|
1018
|
-
}, [Y, S]),
|
|
1018
|
+
}, [Y, S]), Te = d(() => {
|
|
1019
1019
|
J(), S();
|
|
1020
|
-
}, [J, S]),
|
|
1020
|
+
}, [J, S]), xe = d(
|
|
1021
1021
|
(R) => {
|
|
1022
1022
|
j(R), S();
|
|
1023
1023
|
},
|
|
@@ -1029,7 +1029,7 @@ const cs = (e) => {
|
|
|
1029
1029
|
!i || !h || (R.preventDefault(), R.stopPropagation(), R.dataTransfer.types.includes("Files") && c(!0));
|
|
1030
1030
|
},
|
|
1031
1031
|
[i, h]
|
|
1032
|
-
),
|
|
1032
|
+
), De = d(
|
|
1033
1033
|
(R) => {
|
|
1034
1034
|
if (!i || !h) return;
|
|
1035
1035
|
R.preventDefault(), R.stopPropagation();
|
|
@@ -1046,7 +1046,7 @@ const cs = (e) => {
|
|
|
1046
1046
|
async (R, H, V) => {
|
|
1047
1047
|
if (!i || !h || (R.preventDefault(), R.stopPropagation(), c(!1), !R.dataTransfer.types.includes("Files")))
|
|
1048
1048
|
return;
|
|
1049
|
-
const Q = Array.from(R.dataTransfer.items || []),
|
|
1049
|
+
const Q = Array.from(R.dataTransfer.items || []), Z = [];
|
|
1050
1050
|
let me = !1;
|
|
1051
1051
|
if (Q.length > 0 && Q.forEach((ae) => {
|
|
1052
1052
|
if (ae.kind === "file") {
|
|
@@ -1055,15 +1055,15 @@ const cs = (e) => {
|
|
|
1055
1055
|
return;
|
|
1056
1056
|
}
|
|
1057
1057
|
const $e = ae.getAsFile?.();
|
|
1058
|
-
$e &&
|
|
1058
|
+
$e && Z.push($e);
|
|
1059
1059
|
}
|
|
1060
|
-
}),
|
|
1060
|
+
}), Z.length === 0 && R.dataTransfer.files?.length && Z.push(...Array.from(R.dataTransfer.files)), Z.length === 0) {
|
|
1061
1061
|
me && g(
|
|
1062
1062
|
n.foldersNotSupported || "Folder upload is not supported"
|
|
1063
1063
|
);
|
|
1064
1064
|
return;
|
|
1065
1065
|
}
|
|
1066
|
-
const Ae =
|
|
1066
|
+
const Ae = Z.map((ae) => ({
|
|
1067
1067
|
fileContent: ae,
|
|
1068
1068
|
name: ae.name
|
|
1069
1069
|
})), Pe = I(Ae);
|
|
@@ -1093,9 +1093,9 @@ const cs = (e) => {
|
|
|
1093
1093
|
return;
|
|
1094
1094
|
}
|
|
1095
1095
|
if (!R.files?.length) return;
|
|
1096
|
-
const V = Array.from(R.files).map((
|
|
1097
|
-
fileContent:
|
|
1098
|
-
name:
|
|
1096
|
+
const V = Array.from(R.files).map((Z) => ({
|
|
1097
|
+
fileContent: Z,
|
|
1098
|
+
name: Z.name
|
|
1099
1099
|
})), Q = I(V);
|
|
1100
1100
|
if (Q.length === 0) {
|
|
1101
1101
|
g(
|
|
@@ -1107,7 +1107,7 @@ const cs = (e) => {
|
|
|
1107
1107
|
await we(
|
|
1108
1108
|
Q,
|
|
1109
1109
|
b.current,
|
|
1110
|
-
|
|
1110
|
+
D.current
|
|
1111
1111
|
);
|
|
1112
1112
|
} catch {
|
|
1113
1113
|
g(n.validationError || "Upload failed");
|
|
@@ -1134,7 +1134,7 @@ const cs = (e) => {
|
|
|
1134
1134
|
}, [a]);
|
|
1135
1135
|
const _e = d(
|
|
1136
1136
|
(R, H) => {
|
|
1137
|
-
!i || !h || (b.current = R,
|
|
1137
|
+
!i || !h || (b.current = R, D.current = H, m.current && m.current.click());
|
|
1138
1138
|
},
|
|
1139
1139
|
[i, h]
|
|
1140
1140
|
), Oe = d(
|
|
@@ -1143,23 +1143,23 @@ const cs = (e) => {
|
|
|
1143
1143
|
const V = document.createElement("input");
|
|
1144
1144
|
V.type = "file", V.accept = ".zip,application/zip", V.multiple = !1, V.style.display = "none";
|
|
1145
1145
|
const Q = () => {
|
|
1146
|
-
const
|
|
1147
|
-
if (!
|
|
1146
|
+
const Z = V.files?.[0];
|
|
1147
|
+
if (!Z) {
|
|
1148
1148
|
document.body.removeChild(V);
|
|
1149
1149
|
return;
|
|
1150
1150
|
}
|
|
1151
|
-
const me =
|
|
1151
|
+
const me = Z.name.replace(/\.zip$/i, ""), Ae = l ? l(me) : me, Pe = {
|
|
1152
1152
|
id: Ae,
|
|
1153
1153
|
name: Ae,
|
|
1154
1154
|
folderId: R,
|
|
1155
1155
|
path: `${R}/${Ae}`,
|
|
1156
1156
|
nodeType: O.FOLDER,
|
|
1157
1157
|
parentPath: R,
|
|
1158
|
-
contentLength:
|
|
1159
|
-
contentType:
|
|
1158
|
+
contentLength: Z.size,
|
|
1159
|
+
contentType: Z.type
|
|
1160
1160
|
};
|
|
1161
|
-
if (
|
|
1162
|
-
/* @__PURE__ */ new Map([[Pe.path, { fileContent:
|
|
1161
|
+
if (D.current = H, F({ destinationFolder: R }), T(
|
|
1162
|
+
/* @__PURE__ */ new Map([[Pe.path, { fileContent: Z, name: Ae }]])
|
|
1163
1163
|
), P(R, [Pe], {
|
|
1164
1164
|
destinationFolder: R
|
|
1165
1165
|
}).hasConflicts) {
|
|
@@ -1167,7 +1167,7 @@ const cs = (e) => {
|
|
|
1167
1167
|
return;
|
|
1168
1168
|
}
|
|
1169
1169
|
try {
|
|
1170
|
-
r(
|
|
1170
|
+
r(Z, Ae, R);
|
|
1171
1171
|
} finally {
|
|
1172
1172
|
document.body.removeChild(V);
|
|
1173
1173
|
}
|
|
@@ -1189,7 +1189,7 @@ const cs = (e) => {
|
|
|
1189
1189
|
isDraggingOverWindow: v,
|
|
1190
1190
|
uploadError: y,
|
|
1191
1191
|
handleDragEnter: be,
|
|
1192
|
-
handleDragLeave:
|
|
1192
|
+
handleDragLeave: De,
|
|
1193
1193
|
handleDragOver: G,
|
|
1194
1194
|
handleDrop: ne,
|
|
1195
1195
|
clearError: Se,
|
|
@@ -1202,28 +1202,28 @@ const cs = (e) => {
|
|
|
1202
1202
|
hasActiveUploadConflictRef: U,
|
|
1203
1203
|
openUploadConflictResolution: B,
|
|
1204
1204
|
closeUploadConflictResolution: W,
|
|
1205
|
-
handleUploadConflictReplace:
|
|
1205
|
+
handleUploadConflictReplace: Ne,
|
|
1206
1206
|
handleUploadConflictDuplicate: ue,
|
|
1207
|
-
handleUploadConflictCancel:
|
|
1208
|
-
handleUploadConflictDecideForEach:
|
|
1207
|
+
handleUploadConflictCancel: Te,
|
|
1208
|
+
handleUploadConflictDecideForEach: xe
|
|
1209
1209
|
};
|
|
1210
1210
|
}, Fa = pr(void 0), Ea = {
|
|
1211
1211
|
hiddenItemWarning: `${Fo.Warning}__A dot at the start of the name will make the item hidden`
|
|
1212
1212
|
}, Sa = {
|
|
1213
1213
|
consecutiveDotsError: "Name cannot contain consecutive dots"
|
|
1214
|
-
},
|
|
1214
|
+
}, xs = {
|
|
1215
1215
|
emptyName: "Name cannot be empty",
|
|
1216
1216
|
duplicateName: "An item with this name already exists",
|
|
1217
1217
|
hiddenItemWarning: Ea.hiddenItemWarning,
|
|
1218
1218
|
consecutiveDotsError: Sa.consecutiveDotsError
|
|
1219
1219
|
};
|
|
1220
|
-
function
|
|
1220
|
+
function Ds(e) {
|
|
1221
1221
|
let t = e.length;
|
|
1222
1222
|
for (; t > 0 && e[t - 1] === "/"; ) t--;
|
|
1223
1223
|
return e.slice(0, t);
|
|
1224
1224
|
}
|
|
1225
|
-
function
|
|
1226
|
-
const s =
|
|
1225
|
+
function Ns(e, t) {
|
|
1226
|
+
const s = Ds(e), a = s.lastIndexOf("/");
|
|
1227
1227
|
return a === -1 ? t : s.slice(0, a + 1) + t;
|
|
1228
1228
|
}
|
|
1229
1229
|
function bs(e) {
|
|
@@ -1242,7 +1242,7 @@ const Ts = ({
|
|
|
1242
1242
|
}) => {
|
|
1243
1243
|
const [n, r] = z(), l = $(
|
|
1244
1244
|
() => ({
|
|
1245
|
-
...
|
|
1245
|
+
...xs,
|
|
1246
1246
|
...s
|
|
1247
1247
|
}),
|
|
1248
1248
|
[s]
|
|
@@ -1270,11 +1270,11 @@ const Ts = ({
|
|
|
1270
1270
|
r(void 0);
|
|
1271
1271
|
return;
|
|
1272
1272
|
}
|
|
1273
|
-
const b =
|
|
1273
|
+
const b = Ns(
|
|
1274
1274
|
n.path,
|
|
1275
1275
|
m
|
|
1276
|
-
),
|
|
1277
|
-
if (!
|
|
1276
|
+
), D = n.parentPath;
|
|
1277
|
+
if (!D) {
|
|
1278
1278
|
r(void 0);
|
|
1279
1279
|
return;
|
|
1280
1280
|
}
|
|
@@ -1283,7 +1283,7 @@ const Ts = ({
|
|
|
1283
1283
|
destinationUrl: b,
|
|
1284
1284
|
nodeType: n.nodeType
|
|
1285
1285
|
};
|
|
1286
|
-
a([h],
|
|
1286
|
+
a([h], D, D), r(void 0);
|
|
1287
1287
|
},
|
|
1288
1288
|
[n, a]
|
|
1289
1289
|
), v = d(
|
|
@@ -1296,21 +1296,21 @@ const Ts = ({
|
|
|
1296
1296
|
if (m.startsWith("."))
|
|
1297
1297
|
return l.hiddenItemWarning;
|
|
1298
1298
|
const b = g.nodeType === O.ITEM;
|
|
1299
|
-
let
|
|
1299
|
+
let D = m;
|
|
1300
1300
|
if (b) {
|
|
1301
1301
|
const f = da(g.name);
|
|
1302
|
-
f && !
|
|
1302
|
+
f && !D.endsWith(f) && (D = D + f);
|
|
1303
1303
|
}
|
|
1304
1304
|
const h = g.parentPath;
|
|
1305
1305
|
if (h) {
|
|
1306
1306
|
const f = Ke(e, h);
|
|
1307
1307
|
if (f && new Set(
|
|
1308
|
-
(f.items ?? []).filter((
|
|
1309
|
-
).has(
|
|
1308
|
+
(f.items ?? []).filter((N) => N.path !== g.path).map((N) => N.name.toLowerCase())
|
|
1309
|
+
).has(D.toLowerCase()))
|
|
1310
1310
|
return l.duplicateName;
|
|
1311
1311
|
}
|
|
1312
1312
|
if (t) {
|
|
1313
|
-
const f = t(
|
|
1313
|
+
const f = t(D, g);
|
|
1314
1314
|
if (f)
|
|
1315
1315
|
return f;
|
|
1316
1316
|
}
|
|
@@ -1447,7 +1447,7 @@ const Ts = ({
|
|
|
1447
1447
|
Be.Folder
|
|
1448
1448
|
), [v, u] = z(null), [y, g] = z(
|
|
1449
1449
|
null
|
|
1450
|
-
), [m, b] = z(""),
|
|
1450
|
+
), [m, b] = z(""), D = ce(e?.path), h = $(
|
|
1451
1451
|
() => ({
|
|
1452
1452
|
...Is,
|
|
1453
1453
|
...a
|
|
@@ -1470,19 +1470,19 @@ const Ts = ({
|
|
|
1470
1470
|
}, [C, v, e, n]);
|
|
1471
1471
|
pe(() => {
|
|
1472
1472
|
const P = f?.path;
|
|
1473
|
-
|
|
1473
|
+
D.current !== P && r && (l(!1), p(null), b("")), D.current = P;
|
|
1474
1474
|
}, [f?.path, r]);
|
|
1475
1475
|
const T = d(() => {
|
|
1476
1476
|
if (r) return;
|
|
1477
|
-
|
|
1477
|
+
D.current = e?.path || "/";
|
|
1478
1478
|
const P = `__new_folder_${Date.now()}`, k = (e?.items ?? []).filter(
|
|
1479
1479
|
(L) => L.nodeType === O.FOLDER
|
|
1480
1480
|
), B = Yt(k);
|
|
1481
1481
|
p(P), b(B), l(!0), c(Be.Folder), u(e || null);
|
|
1482
|
-
}, [r, e]),
|
|
1482
|
+
}, [r, e]), N = d(
|
|
1483
1483
|
(P) => {
|
|
1484
1484
|
if (r) return;
|
|
1485
|
-
|
|
1485
|
+
D.current = P?.parentPath || "/";
|
|
1486
1486
|
const k = `__new_folder_${Date.now()}`, L = (It(n, P?.parentPath || "/")?.items ?? []).filter(
|
|
1487
1487
|
(J) => J.nodeType === O.FOLDER
|
|
1488
1488
|
), Y = Yt(L);
|
|
@@ -1492,7 +1492,7 @@ const Ts = ({
|
|
|
1492
1492
|
), F = d(
|
|
1493
1493
|
(P) => {
|
|
1494
1494
|
if (r) return;
|
|
1495
|
-
|
|
1495
|
+
D.current = P.path;
|
|
1496
1496
|
const k = `__new_folder_${Date.now()}`, B = (P?.items ?? []).filter(
|
|
1497
1497
|
(Y) => Y.nodeType === O.FOLDER
|
|
1498
1498
|
), L = Yt(B);
|
|
@@ -1502,7 +1502,7 @@ const Ts = ({
|
|
|
1502
1502
|
), I = d(
|
|
1503
1503
|
(P) => {
|
|
1504
1504
|
if (r) return;
|
|
1505
|
-
|
|
1505
|
+
D.current = P?.parentPath || "/";
|
|
1506
1506
|
const B = (It(n, P?.parentPath || "/")?.items ?? []).filter(
|
|
1507
1507
|
(Y) => Y.nodeType === O.FOLDER
|
|
1508
1508
|
), L = Yt(B);
|
|
@@ -1512,7 +1512,7 @@ const Ts = ({
|
|
|
1512
1512
|
), S = d(
|
|
1513
1513
|
(P) => {
|
|
1514
1514
|
if (r) return;
|
|
1515
|
-
|
|
1515
|
+
D.current = P.path;
|
|
1516
1516
|
const k = (P?.items ?? []).filter(
|
|
1517
1517
|
(L) => L.nodeType === O.FOLDER
|
|
1518
1518
|
), B = Yt(k);
|
|
@@ -1520,7 +1520,7 @@ const Ts = ({
|
|
|
1520
1520
|
},
|
|
1521
1521
|
[r]
|
|
1522
1522
|
), A = d(() => {
|
|
1523
|
-
l(!1), p(null), c(Be.Folder), u(null), g(null),
|
|
1523
|
+
l(!1), p(null), c(Be.Folder), u(null), g(null), D.current = void 0, b("");
|
|
1524
1524
|
}, []), _ = d(
|
|
1525
1525
|
(P) => {
|
|
1526
1526
|
const k = P.trim();
|
|
@@ -1564,7 +1564,7 @@ const Ts = ({
|
|
|
1564
1564
|
newFolderTempId: i,
|
|
1565
1565
|
newFolderDefaultName: m,
|
|
1566
1566
|
startFolderCreation: T,
|
|
1567
|
-
startGridSiblingFolderCreation:
|
|
1567
|
+
startGridSiblingFolderCreation: N,
|
|
1568
1568
|
startTreeSiblingFolderCreation: I,
|
|
1569
1569
|
startGridChildFolderCreation: F,
|
|
1570
1570
|
startTreeChildFolderCreation: S,
|
|
@@ -1579,7 +1579,7 @@ const Ts = ({
|
|
|
1579
1579
|
}) => {
|
|
1580
1580
|
const a = t === 0;
|
|
1581
1581
|
return {
|
|
1582
|
-
additionalButtons: $(() => /* @__PURE__ */
|
|
1582
|
+
additionalButtons: $(() => /* @__PURE__ */ X(Ie, { children: [
|
|
1583
1583
|
e,
|
|
1584
1584
|
/* @__PURE__ */ o(
|
|
1585
1585
|
$n,
|
|
@@ -1638,7 +1638,7 @@ function Ps({
|
|
|
1638
1638
|
}, [r]);
|
|
1639
1639
|
const b = String(
|
|
1640
1640
|
r ?? C ?? ""
|
|
1641
|
-
).trim(),
|
|
1641
|
+
).trim(), D = u.current && (n || a.length > 0 || b !== ""), h = d(
|
|
1642
1642
|
(F) => {
|
|
1643
1643
|
const I = F.trim();
|
|
1644
1644
|
if (!I) {
|
|
@@ -1667,7 +1667,7 @@ function Ps({
|
|
|
1667
1667
|
]), pe(() => {
|
|
1668
1668
|
n || (y.current = a);
|
|
1669
1669
|
}, [a, n]);
|
|
1670
|
-
const
|
|
1670
|
+
const N = $(() => {
|
|
1671
1671
|
if (e) {
|
|
1672
1672
|
const I = n ? y.current : a;
|
|
1673
1673
|
return !b || I.length === 0 ? I : ua(I, b);
|
|
@@ -1684,14 +1684,14 @@ function Ps({
|
|
|
1684
1684
|
i
|
|
1685
1685
|
]);
|
|
1686
1686
|
return {
|
|
1687
|
-
isSearchMode:
|
|
1687
|
+
isSearchMode: D,
|
|
1688
1688
|
searchValue: C,
|
|
1689
1689
|
effectiveSearchValue: b,
|
|
1690
1690
|
setSearchValue: c,
|
|
1691
1691
|
handleSearchChange: T,
|
|
1692
1692
|
handleSearchActivate: h,
|
|
1693
1693
|
handleSearchClear: f,
|
|
1694
|
-
searchResultsRows:
|
|
1694
|
+
searchResultsRows: N
|
|
1695
1695
|
};
|
|
1696
1696
|
}
|
|
1697
1697
|
function Ms({
|
|
@@ -1736,11 +1736,11 @@ const ks = ({
|
|
|
1736
1736
|
showNavigationPanel: g = !0,
|
|
1737
1737
|
navigationPanelOptions: m,
|
|
1738
1738
|
deleteConfirmationOptions: b,
|
|
1739
|
-
gridOptions:
|
|
1739
|
+
gridOptions: D,
|
|
1740
1740
|
toolbarOptions: h,
|
|
1741
1741
|
bulkActionsToolbarOptions: f,
|
|
1742
1742
|
destinationFolderPopupOptions: T,
|
|
1743
|
-
conflictResolutionPopupOptions:
|
|
1743
|
+
conflictResolutionPopupOptions: N,
|
|
1744
1744
|
onPathChange: F,
|
|
1745
1745
|
onTableFileClick: I,
|
|
1746
1746
|
handleSelectionClick: S,
|
|
@@ -1757,13 +1757,13 @@ const ks = ({
|
|
|
1757
1757
|
onValidateUpload: te,
|
|
1758
1758
|
uploadEnabled: fe,
|
|
1759
1759
|
uploadValidationMessages: we,
|
|
1760
|
-
maxFileSize:
|
|
1760
|
+
maxFileSize: Ne,
|
|
1761
1761
|
onUploadArchive: ue,
|
|
1762
|
-
prepareUploadFileName:
|
|
1763
|
-
onCreateFolder:
|
|
1762
|
+
prepareUploadFileName: Te,
|
|
1763
|
+
onCreateFolder: xe,
|
|
1764
1764
|
onCreateFolderValidate: W,
|
|
1765
1765
|
folderCreationValidationMessages: be,
|
|
1766
|
-
fileMetadataPopupOptions:
|
|
1766
|
+
fileMetadataPopupOptions: De,
|
|
1767
1767
|
onGetInfo: G,
|
|
1768
1768
|
onUnshareFiles: ne,
|
|
1769
1769
|
onRemoveFilesAccess: he,
|
|
@@ -1774,7 +1774,7 @@ const ks = ({
|
|
|
1774
1774
|
searchInProgress: H,
|
|
1775
1775
|
clearSearchResults: V,
|
|
1776
1776
|
allowedFileTypes: Q,
|
|
1777
|
-
maxSelectableFileSize:
|
|
1777
|
+
maxSelectableFileSize: Z,
|
|
1778
1778
|
getDisabledTooltip: me,
|
|
1779
1779
|
fileTooLargeTooltip: Ae,
|
|
1780
1780
|
unsupportedFileTypeTooltip: Pe,
|
|
@@ -1822,9 +1822,9 @@ const ks = ({
|
|
|
1822
1822
|
destinationFolder: Ye
|
|
1823
1823
|
};
|
|
1824
1824
|
}
|
|
1825
|
-
|
|
1825
|
+
xe?.(E, K, oe);
|
|
1826
1826
|
},
|
|
1827
|
-
[
|
|
1827
|
+
[xe, je]
|
|
1828
1828
|
), Qn = d(
|
|
1829
1829
|
(E, K) => {
|
|
1830
1830
|
je && (Je.current = {
|
|
@@ -1873,9 +1873,9 @@ const ks = ({
|
|
|
1873
1873
|
showFiles: E = !0,
|
|
1874
1874
|
showFolders: K = !0,
|
|
1875
1875
|
...oe
|
|
1876
|
-
} =
|
|
1876
|
+
} = D || {};
|
|
1877
1877
|
return { showFiles: E, showFolders: K, ...oe };
|
|
1878
|
-
}, [
|
|
1878
|
+
}, [D]), Mt = Pt.showFiles, et = Pt.showFolders, [gt, to] = z(), gn = T?.destinationFolderPath ?? gt, tt = d(
|
|
1879
1879
|
(E) => {
|
|
1880
1880
|
T?.setDestinationFolderPath ? T.setDestinationFolderPath(E) : to(E);
|
|
1881
1881
|
},
|
|
@@ -1906,7 +1906,7 @@ const ks = ({
|
|
|
1906
1906
|
setSearchValue: Lt,
|
|
1907
1907
|
handleSearchChange: zt,
|
|
1908
1908
|
handleSearchClear: le,
|
|
1909
|
-
searchResultsRows:
|
|
1909
|
+
searchResultsRows: xn
|
|
1910
1910
|
} = Ps({
|
|
1911
1911
|
onSearchFiles: Se,
|
|
1912
1912
|
clearSearchResults: V,
|
|
@@ -1926,10 +1926,10 @@ const ks = ({
|
|
|
1926
1926
|
), Me = d(() => {
|
|
1927
1927
|
At?.();
|
|
1928
1928
|
}, [At]), {
|
|
1929
|
-
handleCopyTo:
|
|
1930
|
-
handleMoveTo:
|
|
1929
|
+
handleCopyTo: Dn,
|
|
1930
|
+
handleMoveTo: Nn,
|
|
1931
1931
|
handleDuplicate: bn,
|
|
1932
|
-
handleOpenDestinationFolderPopup:
|
|
1932
|
+
handleOpenDestinationFolderPopup: xt,
|
|
1933
1933
|
handleCloseDestinationFolderPopup: Tn,
|
|
1934
1934
|
openDestinationFolderPopup: nt,
|
|
1935
1935
|
handleSetCopiedFiles: lo,
|
|
@@ -1962,7 +1962,7 @@ const ks = ({
|
|
|
1962
1962
|
itemsToDelete: Sn,
|
|
1963
1963
|
openDeleteConfirmation: An,
|
|
1964
1964
|
closeDeleteConfirmation: Pn,
|
|
1965
|
-
confirmDelete:
|
|
1965
|
+
confirmDelete: Dt
|
|
1966
1966
|
} = gs({
|
|
1967
1967
|
onDeleteFiles: P,
|
|
1968
1968
|
onDeleteSuccess: Xe
|
|
@@ -1975,7 +1975,7 @@ const ks = ({
|
|
|
1975
1975
|
isDraggingOverWindow: ze,
|
|
1976
1976
|
uploadError: vo,
|
|
1977
1977
|
handleDragEnter: Bt,
|
|
1978
|
-
handleDragLeave:
|
|
1978
|
+
handleDragLeave: Nt,
|
|
1979
1979
|
handleDragOver: ct,
|
|
1980
1980
|
handleDrop: Wt,
|
|
1981
1981
|
clearError: Mn,
|
|
@@ -1986,15 +1986,15 @@ const ks = ({
|
|
|
1986
1986
|
uploadConflictResolutionOpen: wo,
|
|
1987
1987
|
closeUploadConflictResolution: On,
|
|
1988
1988
|
handleUploadConflictReplace: Gt,
|
|
1989
|
-
handleUploadConflictDuplicate:
|
|
1990
|
-
handleUploadConflictCancel:
|
|
1989
|
+
handleUploadConflictDuplicate: xo,
|
|
1990
|
+
handleUploadConflictCancel: Do,
|
|
1991
1991
|
handleUploadConflictDecideForEach: Vt
|
|
1992
1992
|
} = ws({
|
|
1993
1993
|
onUploadFiles: Qn,
|
|
1994
1994
|
onValidateUpload: te,
|
|
1995
|
-
maxFileSize:
|
|
1995
|
+
maxFileSize: Ne,
|
|
1996
1996
|
onUploadArchive: Jn,
|
|
1997
|
-
prepareUploadFileName:
|
|
1997
|
+
prepareUploadFileName: Te,
|
|
1998
1998
|
allowedFileTypes: Q,
|
|
1999
1999
|
validationMessages: we,
|
|
2000
2000
|
uploadEnabled: fe,
|
|
@@ -2023,16 +2023,16 @@ const ks = ({
|
|
|
2023
2023
|
de,
|
|
2024
2024
|
re,
|
|
2025
2025
|
le
|
|
2026
|
-
]),
|
|
2026
|
+
]), No = d(
|
|
2027
2027
|
(E) => {
|
|
2028
2028
|
St?.(E);
|
|
2029
2029
|
},
|
|
2030
2030
|
[St]
|
|
2031
2031
|
), {
|
|
2032
|
-
isCreatingFolder:
|
|
2032
|
+
isCreatingFolder: x,
|
|
2033
2033
|
newFolderTempId: ee,
|
|
2034
2034
|
createdFolderPath: ie,
|
|
2035
|
-
newFolderDefaultName:
|
|
2035
|
+
newFolderDefaultName: Re,
|
|
2036
2036
|
startFolderCreation: at,
|
|
2037
2037
|
startGridSiblingFolderCreation: jo,
|
|
2038
2038
|
startTreeSiblingFolderCreation: Zo,
|
|
@@ -2072,7 +2072,7 @@ const ks = ({
|
|
|
2072
2072
|
}
|
|
2073
2073
|
), _a = $(() => {
|
|
2074
2074
|
if (wt) {
|
|
2075
|
-
let q =
|
|
2075
|
+
let q = xn;
|
|
2076
2076
|
Mt || (q = q.filter(
|
|
2077
2077
|
(se) => se.nodeType !== O.ITEM
|
|
2078
2078
|
)), et || (q = q.filter(
|
|
@@ -2093,9 +2093,9 @@ const ks = ({
|
|
|
2093
2093
|
owner: se.owner,
|
|
2094
2094
|
folderId: se.folderId
|
|
2095
2095
|
}));
|
|
2096
|
-
return
|
|
2096
|
+
return x && ee && jt.unshift({
|
|
2097
2097
|
id: ee,
|
|
2098
|
-
name:
|
|
2098
|
+
name: Re,
|
|
2099
2099
|
updatedAt: void 0,
|
|
2100
2100
|
author: void 0,
|
|
2101
2101
|
path: de ?? "/",
|
|
@@ -2126,9 +2126,9 @@ const ks = ({
|
|
|
2126
2126
|
contentLength: q.contentLength,
|
|
2127
2127
|
folderId: q.folderId
|
|
2128
2128
|
}));
|
|
2129
|
-
if (
|
|
2129
|
+
if (x && ee && !E && Ye.unshift({
|
|
2130
2130
|
id: ee,
|
|
2131
|
-
name:
|
|
2131
|
+
name: Re,
|
|
2132
2132
|
updatedAt: void 0,
|
|
2133
2133
|
author: void 0,
|
|
2134
2134
|
path: de ?? "/",
|
|
@@ -2147,13 +2147,13 @@ const ks = ({
|
|
|
2147
2147
|
});
|
|
2148
2148
|
}, [
|
|
2149
2149
|
wt,
|
|
2150
|
-
|
|
2150
|
+
xn,
|
|
2151
2151
|
re,
|
|
2152
2152
|
Ot,
|
|
2153
2153
|
lt,
|
|
2154
|
-
|
|
2154
|
+
x,
|
|
2155
2155
|
ee,
|
|
2156
|
-
|
|
2156
|
+
Re,
|
|
2157
2157
|
Mt,
|
|
2158
2158
|
et,
|
|
2159
2159
|
de
|
|
@@ -2169,14 +2169,14 @@ const ks = ({
|
|
|
2169
2169
|
if (!K?.items) return;
|
|
2170
2170
|
const oe = /* @__PURE__ */ new Set();
|
|
2171
2171
|
for (const Ye of K.items)
|
|
2172
|
-
E.fileNames.has(Ye.name) && ds(Ye, Q,
|
|
2172
|
+
E.fileNames.has(Ye.name) && ds(Ye, Q, Z) && oe.add(Ye.path);
|
|
2173
2173
|
oe.size > 0 && (it(oe), Je.current = null);
|
|
2174
2174
|
}, [
|
|
2175
2175
|
a,
|
|
2176
2176
|
de,
|
|
2177
2177
|
it,
|
|
2178
2178
|
Q,
|
|
2179
|
-
|
|
2179
|
+
Z
|
|
2180
2180
|
]), pe(() => {
|
|
2181
2181
|
!Cn.current && mn && (dt(), Cn.current = !0);
|
|
2182
2182
|
}, [mn, dt]);
|
|
@@ -2282,8 +2282,8 @@ const ks = ({
|
|
|
2282
2282
|
openMetadataPopup: Ya,
|
|
2283
2283
|
closeMetadataPopup: Ko
|
|
2284
2284
|
} = Ss({ onGetInfo: G }), Ka = d(() => {
|
|
2285
|
-
Ko(),
|
|
2286
|
-
}, [Ko,
|
|
2285
|
+
Ko(), De?.clearMetadata?.();
|
|
2286
|
+
}, [Ko, De]), Qa = $(() => {
|
|
2287
2287
|
if (Y)
|
|
2288
2288
|
return jn(Y);
|
|
2289
2289
|
}, [Y]), Ja = {
|
|
@@ -2291,7 +2291,7 @@ const ks = ({
|
|
|
2291
2291
|
className: s,
|
|
2292
2292
|
items: a,
|
|
2293
2293
|
allowedFileTypes: Q,
|
|
2294
|
-
maxSelectableFileSize:
|
|
2294
|
+
maxSelectableFileSize: Z,
|
|
2295
2295
|
rootItem: n,
|
|
2296
2296
|
filesLoading: i,
|
|
2297
2297
|
treeOptions: {
|
|
@@ -2311,7 +2311,7 @@ const ks = ({
|
|
|
2311
2311
|
destinationFolderPath: gn,
|
|
2312
2312
|
setDestinationFolderPath: tt,
|
|
2313
2313
|
header: co,
|
|
2314
|
-
onCreateFolder:
|
|
2314
|
+
onCreateFolder: xe,
|
|
2315
2315
|
onCreateFolderValidate: W,
|
|
2316
2316
|
folderCreationValidationMessages: be,
|
|
2317
2317
|
sourceFolder: mo
|
|
@@ -2332,14 +2332,14 @@ const ks = ({
|
|
|
2332
2332
|
clearSelection: Xe,
|
|
2333
2333
|
currentFolder: re,
|
|
2334
2334
|
gridRows: _a,
|
|
2335
|
-
handleCopyTo:
|
|
2336
|
-
handleMoveTo:
|
|
2337
|
-
handleDuplicate: St ?
|
|
2335
|
+
handleCopyTo: Dn,
|
|
2336
|
+
handleMoveTo: Nn,
|
|
2337
|
+
handleDuplicate: St ? No : bn,
|
|
2338
2338
|
handleSetCopiedFiles: lo,
|
|
2339
2339
|
handleSetMovedFiles: Rn,
|
|
2340
2340
|
openDestinationFolderPopup: nt,
|
|
2341
2341
|
handleCloseDestinationFolderPopup: Tn,
|
|
2342
|
-
handleOpenDestinationFolderPopup:
|
|
2342
|
+
handleOpenDestinationFolderPopup: xt,
|
|
2343
2343
|
destinationFolderMode: In,
|
|
2344
2344
|
handleGridAddSibling: Va,
|
|
2345
2345
|
handleGridAddChild: $a,
|
|
@@ -2357,7 +2357,7 @@ const ks = ({
|
|
|
2357
2357
|
getDisplayName: kt,
|
|
2358
2358
|
openDeleteConfirmation: Yn || An,
|
|
2359
2359
|
closeDeleteConfirmation: Pn,
|
|
2360
|
-
confirmDelete:
|
|
2360
|
+
confirmDelete: Dt,
|
|
2361
2361
|
deleteConfirmationOpen: Co,
|
|
2362
2362
|
itemsToDelete: Sn,
|
|
2363
2363
|
handlePathChange: qe,
|
|
@@ -2371,28 +2371,28 @@ const ks = ({
|
|
|
2371
2371
|
isDragging: go,
|
|
2372
2372
|
uploadError: vo,
|
|
2373
2373
|
handleDragEnter: Bt,
|
|
2374
|
-
handleDragLeave:
|
|
2374
|
+
handleDragLeave: Nt,
|
|
2375
2375
|
handleDragOver: ct,
|
|
2376
2376
|
handleDrop: Ln,
|
|
2377
2377
|
clearUploadError: Mn,
|
|
2378
2378
|
onUploadFiles: j,
|
|
2379
2379
|
onValidateUpload: te,
|
|
2380
|
-
maxFileSize:
|
|
2380
|
+
maxFileSize: Ne,
|
|
2381
2381
|
isDraggingOverWindow: ze,
|
|
2382
2382
|
openFileDialog: dt,
|
|
2383
2383
|
fileInputRef: kn,
|
|
2384
2384
|
newActions: Oa,
|
|
2385
2385
|
isNewButtonVisible: La,
|
|
2386
2386
|
isNewButtonDisabled: za,
|
|
2387
|
-
isCreatingFolder:
|
|
2387
|
+
isCreatingFolder: x,
|
|
2388
2388
|
newFolderTempId: ee,
|
|
2389
2389
|
createdFolderPath: ie,
|
|
2390
|
-
newFolderDefaultName:
|
|
2390
|
+
newFolderDefaultName: Re,
|
|
2391
2391
|
startFolderCreation: Yo,
|
|
2392
2392
|
cancelFolderCreation: Pa,
|
|
2393
2393
|
saveFolderCreation: Ma,
|
|
2394
2394
|
validateFolderName: ka,
|
|
2395
|
-
conflictResolutionPopupOptions:
|
|
2395
|
+
conflictResolutionPopupOptions: N,
|
|
2396
2396
|
conflictingFiles: Fn,
|
|
2397
2397
|
conflictResolutionOpen: uo,
|
|
2398
2398
|
closeConflictResolution: En,
|
|
@@ -2404,10 +2404,10 @@ const ks = ({
|
|
|
2404
2404
|
uploadConflictResolutionOpen: wo,
|
|
2405
2405
|
closeUploadConflictResolution: On,
|
|
2406
2406
|
handleUploadConflictReplace: Gt,
|
|
2407
|
-
handleUploadConflictDuplicate:
|
|
2408
|
-
handleUploadConflictCancel:
|
|
2407
|
+
handleUploadConflictDuplicate: xo,
|
|
2408
|
+
handleUploadConflictCancel: Do,
|
|
2409
2409
|
handleUploadConflictDecideForEach: Vt,
|
|
2410
|
-
fileMetadataPopupOptions:
|
|
2410
|
+
fileMetadataPopupOptions: De,
|
|
2411
2411
|
isMetadataPopupOpen: Xa,
|
|
2412
2412
|
selectedFileForMetadata: qa,
|
|
2413
2413
|
openMetadataPopup: Ya,
|
|
@@ -2463,18 +2463,18 @@ const ks = ({
|
|
|
2463
2463
|
return window.addEventListener("scroll", u, !0), () => window.removeEventListener("scroll", u, !0);
|
|
2464
2464
|
}, []), pe(() => {
|
|
2465
2465
|
const u = (m) => {
|
|
2466
|
-
const
|
|
2466
|
+
const D = m.target.closest(
|
|
2467
2467
|
".ag-row"
|
|
2468
2468
|
);
|
|
2469
|
-
if (!
|
|
2469
|
+
if (!D) {
|
|
2470
2470
|
i((f) => f && null);
|
|
2471
2471
|
return;
|
|
2472
2472
|
}
|
|
2473
2473
|
const h = new DOMParser().parseFromString(
|
|
2474
|
-
|
|
2474
|
+
D.getAttribute("row-id") || "",
|
|
2475
2475
|
"text/html"
|
|
2476
2476
|
).documentElement.textContent;
|
|
2477
|
-
h && e.has(h) ? i((f) => f !== h ? (C(
|
|
2477
|
+
h && e.has(h) ? i((f) => f !== h ? (C(D.getBoundingClientRect()), h) : f) : i((f) => f && null);
|
|
2478
2478
|
}, y = () => {
|
|
2479
2479
|
i(null), C(null);
|
|
2480
2480
|
}, g = document.querySelector(
|
|
@@ -2507,8 +2507,8 @@ const ks = ({
|
|
|
2507
2507
|
n,
|
|
2508
2508
|
r
|
|
2509
2509
|
]);
|
|
2510
|
-
return /* @__PURE__ */ o(
|
|
2511
|
-
/* @__PURE__ */
|
|
2510
|
+
return /* @__PURE__ */ o(Ie, { children: v && p && Br(
|
|
2511
|
+
/* @__PURE__ */ X(vr, { open: !0, placement: "top", children: [
|
|
2512
2512
|
/* @__PURE__ */ o(yr, { asChild: !0, children: /* @__PURE__ */ o(
|
|
2513
2513
|
"div",
|
|
2514
2514
|
{
|
|
@@ -2552,11 +2552,11 @@ const ks = ({
|
|
|
2552
2552
|
maxFileSize: g,
|
|
2553
2553
|
header: m,
|
|
2554
2554
|
sourceFolder: b,
|
|
2555
|
-
disabledPathTooltip:
|
|
2555
|
+
disabledPathTooltip: D = "Unavailable for the original path. Please select another folder",
|
|
2556
2556
|
path: h,
|
|
2557
2557
|
collapsedFileTree: f = !1,
|
|
2558
2558
|
alertProps: T,
|
|
2559
|
-
processDestinationFolderPath:
|
|
2559
|
+
processDestinationFolderPath: N,
|
|
2560
2560
|
...F
|
|
2561
2561
|
}) => {
|
|
2562
2562
|
const [I, S] = z(!1), [A, _] = z(!1), U = ce(null), P = $o(), k = d((j) => {
|
|
@@ -2586,14 +2586,14 @@ const ks = ({
|
|
|
2586
2586
|
]), L = d(
|
|
2587
2587
|
(j) => {
|
|
2588
2588
|
if (j) {
|
|
2589
|
-
let te =
|
|
2589
|
+
let te = N ? N(j) : j;
|
|
2590
2590
|
s?.(te), a?.(te);
|
|
2591
2591
|
}
|
|
2592
2592
|
},
|
|
2593
2593
|
[
|
|
2594
2594
|
s,
|
|
2595
2595
|
a,
|
|
2596
|
-
|
|
2596
|
+
N
|
|
2597
2597
|
]
|
|
2598
2598
|
), Y = p === ge.Copy ? "Copy to" : "Move to", J = $(() => !h || !b ? !1 : b === h, [h, b]);
|
|
2599
2599
|
return /* @__PURE__ */ o(
|
|
@@ -2607,7 +2607,7 @@ const ks = ({
|
|
|
2607
2607
|
dividerFooter: !0,
|
|
2608
2608
|
dividers: !1,
|
|
2609
2609
|
className: "md:!h-[800px] !bg-layer-sunken",
|
|
2610
|
-
footer: /* @__PURE__ */
|
|
2610
|
+
footer: /* @__PURE__ */ X("div", { className: "flex justify-between items-center gap-2 p-4 md:px-6", children: [
|
|
2611
2611
|
/* @__PURE__ */ o("div", { className: "flex items-center gap-4 min-w-0", children: P ? /* @__PURE__ */ o(
|
|
2612
2612
|
ht,
|
|
2613
2613
|
{
|
|
@@ -2623,7 +2623,7 @@ const ks = ({
|
|
|
2623
2623
|
}
|
|
2624
2624
|
)
|
|
2625
2625
|
}
|
|
2626
|
-
) : /* @__PURE__ */
|
|
2626
|
+
) : /* @__PURE__ */ X(Ie, { children: [
|
|
2627
2627
|
v && /* @__PURE__ */ o(
|
|
2628
2628
|
nn,
|
|
2629
2629
|
{
|
|
@@ -2636,7 +2636,7 @@ const ks = ({
|
|
|
2636
2636
|
}
|
|
2637
2637
|
),
|
|
2638
2638
|
v && c && /* @__PURE__ */ o("div", { className: "w-px h-[26px] bg-controls-disable-accent my-2" }),
|
|
2639
|
-
c && /* @__PURE__ */ o(
|
|
2639
|
+
c && /* @__PURE__ */ o(Ie, { children: /* @__PURE__ */ o("div", { className: "inline-flex items-center cursor-pointer", children: /* @__PURE__ */ o(
|
|
2640
2640
|
ya,
|
|
2641
2641
|
{
|
|
2642
2642
|
label: C,
|
|
@@ -2646,9 +2646,9 @@ const ks = ({
|
|
|
2646
2646
|
}
|
|
2647
2647
|
) }) })
|
|
2648
2648
|
] }) }),
|
|
2649
|
-
/* @__PURE__ */
|
|
2649
|
+
/* @__PURE__ */ X("div", { className: "flex space-x-4 items-center", children: [
|
|
2650
2650
|
/* @__PURE__ */ o(an, { onClick: e, label: "Cancel" }),
|
|
2651
|
-
J ? /* @__PURE__ */ o(Gn, { tooltip:
|
|
2651
|
+
J ? /* @__PURE__ */ o(Gn, { tooltip: D, children: /* @__PURE__ */ o(
|
|
2652
2652
|
nn,
|
|
2653
2653
|
{
|
|
2654
2654
|
onClick: t,
|
|
@@ -2666,8 +2666,8 @@ const ks = ({
|
|
|
2666
2666
|
] })
|
|
2667
2667
|
] }),
|
|
2668
2668
|
header: m ?? Y,
|
|
2669
|
-
children: /* @__PURE__ */
|
|
2670
|
-
T && /* @__PURE__ */ o("div", { className: "px-6 mb-4 pt-4", children: /* @__PURE__ */ o(
|
|
2669
|
+
children: /* @__PURE__ */ X("div", { className: "bg-layer-sunken h-full flex flex-col", children: [
|
|
2670
|
+
T && /* @__PURE__ */ o("div", { className: "px-6 mb-4 pt-4", children: /* @__PURE__ */ o(xr, { ...T }) }),
|
|
2671
2671
|
/* @__PURE__ */ o("div", { className: "flex-1 min-h-0", children: /* @__PURE__ */ o(
|
|
2672
2672
|
ui,
|
|
2673
2673
|
{
|
|
@@ -2711,8 +2711,8 @@ function zs({
|
|
|
2711
2711
|
dependencies: r = []
|
|
2712
2712
|
}) {
|
|
2713
2713
|
const l = ce(null), i = ce(null), p = ce(null), C = ce(null), c = ce([]), [v, u] = z(0), y = d(
|
|
2714
|
-
(b,
|
|
2715
|
-
const h = p.current?.offsetWidth ?? 0, f = C.current?.offsetWidth ?? 0, T = h + f, F =
|
|
2714
|
+
(b, D) => {
|
|
2715
|
+
const h = p.current?.offsetWidth ?? 0, f = C.current?.offsetWidth ?? 0, T = h + f, F = D.getBoundingClientRect().width - T - s - a * 2 - n * 2;
|
|
2716
2716
|
let I = 0, S = 0;
|
|
2717
2717
|
if (t === en.Reverse)
|
|
2718
2718
|
for (let A = b.length - 1; A >= 0 && (I += b[A] + a, !(I > F)); A--)
|
|
@@ -2729,10 +2729,10 @@ function zs({
|
|
|
2729
2729
|
fr(
|
|
2730
2730
|
() => {
|
|
2731
2731
|
if (!i.current || !l.current) return;
|
|
2732
|
-
const
|
|
2732
|
+
const D = Array.from(i.current.children).map(
|
|
2733
2733
|
(h) => Math.ceil(h.getBoundingClientRect().width)
|
|
2734
2734
|
);
|
|
2735
|
-
c.current =
|
|
2735
|
+
c.current = D, D.length !== 0 && y(D, l.current);
|
|
2736
2736
|
},
|
|
2737
2737
|
// Re-measure when the action list or layout-affecting deps (e.g. isMobile) change
|
|
2738
2738
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -2740,14 +2740,14 @@ function zs({
|
|
|
2740
2740
|
), pe(() => {
|
|
2741
2741
|
if (!l.current) return;
|
|
2742
2742
|
let b = null;
|
|
2743
|
-
const
|
|
2743
|
+
const D = () => {
|
|
2744
2744
|
b && cancelAnimationFrame(b), b = requestAnimationFrame(() => {
|
|
2745
2745
|
if (!l.current) return;
|
|
2746
2746
|
const f = l.current, T = c.current;
|
|
2747
2747
|
T.length !== 0 && y(T, f);
|
|
2748
2748
|
});
|
|
2749
|
-
}, h = new ResizeObserver(
|
|
2750
|
-
return h.observe(l.current),
|
|
2749
|
+
}, h = new ResizeObserver(D);
|
|
2750
|
+
return h.observe(l.current), D(), () => {
|
|
2751
2751
|
b && cancelAnimationFrame(b), h.disconnect();
|
|
2752
2752
|
};
|
|
2753
2753
|
}, [
|
|
@@ -2780,7 +2780,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
2780
2780
|
actionsGap: _s,
|
|
2781
2781
|
containerPadding: Bs
|
|
2782
2782
|
}), c = e(a);
|
|
2783
|
-
return /* @__PURE__ */
|
|
2783
|
+
return /* @__PURE__ */ X(Ie, { children: [
|
|
2784
2784
|
/* @__PURE__ */ o(
|
|
2785
2785
|
"div",
|
|
2786
2786
|
{
|
|
@@ -2789,7 +2789,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
2789
2789
|
children: s.map(({ key: v, icon: u, title: y }) => /* @__PURE__ */ o(an, { iconBefore: u, label: y }, v))
|
|
2790
2790
|
}
|
|
2791
2791
|
),
|
|
2792
|
-
/* @__PURE__ */
|
|
2792
|
+
/* @__PURE__ */ X(
|
|
2793
2793
|
"div",
|
|
2794
2794
|
{
|
|
2795
2795
|
ref: r,
|
|
@@ -2807,7 +2807,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
2807
2807
|
iconBefore: /* @__PURE__ */ o(rr, { ...M })
|
|
2808
2808
|
}
|
|
2809
2809
|
) }),
|
|
2810
|
-
/* @__PURE__ */
|
|
2810
|
+
/* @__PURE__ */ X("div", { className: "flex flex-1 w-full gap-3 items-center justify-end", children: [
|
|
2811
2811
|
C.length > 0 && /* @__PURE__ */ o(
|
|
2812
2812
|
ht,
|
|
2813
2813
|
{
|
|
@@ -2831,7 +2831,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
2831
2831
|
label: g,
|
|
2832
2832
|
disabled: b,
|
|
2833
2833
|
tooltipProps: { tooltip: y },
|
|
2834
|
-
onClick: (
|
|
2834
|
+
onClick: (D) => m?.({ key: v, domEvent: D })
|
|
2835
2835
|
},
|
|
2836
2836
|
v
|
|
2837
2837
|
)
|
|
@@ -2851,25 +2851,25 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
2851
2851
|
titleRenderer: l,
|
|
2852
2852
|
contentRenderer: i
|
|
2853
2853
|
}) => {
|
|
2854
|
-
const p = t.map((y) => y.name), c = l?.(p) || "Confirm Deleting Items", v = /* @__PURE__ */
|
|
2855
|
-
/* @__PURE__ */ o("p", { className: "text-secondary mb-3", children: t.length === 1 ? /* @__PURE__ */
|
|
2854
|
+
const p = t.map((y) => y.name), c = l?.(p) || "Confirm Deleting Items", v = /* @__PURE__ */ X("div", { className: "px-6 py-3 dial-small-text", children: [
|
|
2855
|
+
/* @__PURE__ */ o("p", { className: "text-secondary mb-3", children: t.length === 1 ? /* @__PURE__ */ X(Ie, { children: [
|
|
2856
2856
|
"Do you want to delete file or folder",
|
|
2857
2857
|
" ",
|
|
2858
|
-
/* @__PURE__ */
|
|
2858
|
+
/* @__PURE__ */ X("span", { className: "text-primary break-all", children: [
|
|
2859
2859
|
'"',
|
|
2860
2860
|
t[0].name,
|
|
2861
2861
|
'"'
|
|
2862
2862
|
] }),
|
|
2863
2863
|
"?"
|
|
2864
|
-
] }) : /* @__PURE__ */
|
|
2864
|
+
] }) : /* @__PURE__ */ X(Ie, { children: [
|
|
2865
2865
|
"Do you want to delete the following",
|
|
2866
2866
|
" ",
|
|
2867
2867
|
/* @__PURE__ */ o("span", { className: "text-primary", children: t.length }),
|
|
2868
2868
|
" items?"
|
|
2869
2869
|
] }) }),
|
|
2870
|
-
t.length > 1 && /* @__PURE__ */ o(
|
|
2870
|
+
t.length > 1 && /* @__PURE__ */ o(Ie, { children: t.length <= 10 ? /* @__PURE__ */ o("ul", { className: "space-y-1 text-primary list-none", children: t.map((y) => /* @__PURE__ */ o("li", { className: "truncate", children: y.name }, y.path)) }) : /* @__PURE__ */ X(Ie, { children: [
|
|
2871
2871
|
/* @__PURE__ */ o("ul", { className: "space-y-1 text-primary list-none mb-2", children: t.slice(0, 10).map((y) => /* @__PURE__ */ o("li", { className: "truncate", children: y.name }, y.path)) }),
|
|
2872
|
-
/* @__PURE__ */
|
|
2872
|
+
/* @__PURE__ */ X("p", { className: "text-secondary italic", children: [
|
|
2873
2873
|
"... and ",
|
|
2874
2874
|
t.length - 10,
|
|
2875
2875
|
" more"
|
|
@@ -2877,13 +2877,13 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
2877
2877
|
] }) })
|
|
2878
2878
|
] }), u = i?.(p) || v;
|
|
2879
2879
|
return /* @__PURE__ */ o(
|
|
2880
|
-
|
|
2880
|
+
Dr,
|
|
2881
2881
|
{
|
|
2882
2882
|
open: e,
|
|
2883
2883
|
header: c,
|
|
2884
2884
|
confirmLabel: r,
|
|
2885
2885
|
cancelLabel: n,
|
|
2886
|
-
variant:
|
|
2886
|
+
variant: Nr.Danger,
|
|
2887
2887
|
onClose: s,
|
|
2888
2888
|
onConfirm: a,
|
|
2889
2889
|
children: u
|
|
@@ -2907,7 +2907,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
2907
2907
|
invalid: g,
|
|
2908
2908
|
onSearchChange: m,
|
|
2909
2909
|
searchClassName: b,
|
|
2910
|
-
searchContainerClassName:
|
|
2910
|
+
searchContainerClassName: D,
|
|
2911
2911
|
isCompactView: h = !1
|
|
2912
2912
|
}) => {
|
|
2913
2913
|
const f = $(() => {
|
|
@@ -2964,9 +2964,9 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
2964
2964
|
l,
|
|
2965
2965
|
n,
|
|
2966
2966
|
s
|
|
2967
|
-
]), [T,
|
|
2967
|
+
]), [T, N] = z(!1), F = d(() => {
|
|
2968
2968
|
if (h && !T) {
|
|
2969
|
-
|
|
2969
|
+
N(!0);
|
|
2970
2970
|
const A = document.getElementById(u);
|
|
2971
2971
|
A && A.focus();
|
|
2972
2972
|
}
|
|
@@ -2978,7 +2978,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
2978
2978
|
className: "!p-[9px]",
|
|
2979
2979
|
iconBefore: /* @__PURE__ */ o(sr, { ...M }),
|
|
2980
2980
|
onClick: () => {
|
|
2981
|
-
|
|
2981
|
+
N(!1), m?.("");
|
|
2982
2982
|
}
|
|
2983
2983
|
}
|
|
2984
2984
|
) : /* @__PURE__ */ o("div", { className: Gs, children: /* @__PURE__ */ o(
|
|
@@ -2998,7 +2998,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
2998
2998
|
t,
|
|
2999
2999
|
m
|
|
3000
3000
|
]);
|
|
3001
|
-
return /* @__PURE__ */
|
|
3001
|
+
return /* @__PURE__ */ X(
|
|
3002
3002
|
"div",
|
|
3003
3003
|
{
|
|
3004
3004
|
className: Ee(
|
|
@@ -3032,7 +3032,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3032
3032
|
invalid: g,
|
|
3033
3033
|
className: b,
|
|
3034
3034
|
wrapperClassName: h && !T ? "pl-2.5" : "",
|
|
3035
|
-
containerClassName:
|
|
3035
|
+
containerClassName: D
|
|
3036
3036
|
}
|
|
3037
3037
|
)
|
|
3038
3038
|
}
|
|
@@ -3069,7 +3069,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3069
3069
|
u,
|
|
3070
3070
|
v,
|
|
3071
3071
|
n
|
|
3072
|
-
]),
|
|
3072
|
+
]), D = () => e && t && s ? /* @__PURE__ */ o(
|
|
3073
3073
|
Ir,
|
|
3074
3074
|
{
|
|
3075
3075
|
tabs: e,
|
|
@@ -3079,19 +3079,16 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3079
3079
|
smallScreenContainerClassName: "w-fit bg-transparent h-[38px] overflow-hidden",
|
|
3080
3080
|
smallScreenDropdownItemClassName: "px-3 h-[38px]"
|
|
3081
3081
|
}
|
|
3082
|
-
) : null, h = () => /* @__PURE__ */
|
|
3083
|
-
y && /* @__PURE__ */
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
),
|
|
3093
|
-
/* @__PURE__ */ o("div", { className: "h-6 border-l border-primary" })
|
|
3094
|
-
] }),
|
|
3082
|
+
) : null, h = () => /* @__PURE__ */ X(Ie, { children: [
|
|
3083
|
+
y && /* @__PURE__ */ o(
|
|
3084
|
+
ya,
|
|
3085
|
+
{
|
|
3086
|
+
switchId: "hidden-files-switch",
|
|
3087
|
+
label: c,
|
|
3088
|
+
isOn: a,
|
|
3089
|
+
onChange: n
|
|
3090
|
+
}
|
|
3091
|
+
),
|
|
3095
3092
|
r && /* @__PURE__ */ o(
|
|
3096
3093
|
Gn,
|
|
3097
3094
|
{
|
|
@@ -3107,7 +3104,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3107
3104
|
)
|
|
3108
3105
|
}
|
|
3109
3106
|
)
|
|
3110
|
-
] }), f = () => /* @__PURE__ */
|
|
3107
|
+
] }), f = () => /* @__PURE__ */ X(Ie, { children: [
|
|
3111
3108
|
/* @__PURE__ */ o(
|
|
3112
3109
|
ht,
|
|
3113
3110
|
{
|
|
@@ -3138,8 +3135,8 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3138
3135
|
}
|
|
3139
3136
|
) : null
|
|
3140
3137
|
] });
|
|
3141
|
-
return /* @__PURE__ */
|
|
3142
|
-
/* @__PURE__ */ o("div", { className: "flex-1 min-w-0", children:
|
|
3138
|
+
return /* @__PURE__ */ X("div", { className: "flex w-full justify-between gap-4 items-center overflow-x-auto", children: [
|
|
3139
|
+
/* @__PURE__ */ o("div", { className: "flex-1 min-w-0", children: D() }),
|
|
3143
3140
|
/* @__PURE__ */ o("div", { className: "flex gap-2 shrink-0 items-center", children: m ? f() : h() })
|
|
3144
3141
|
] });
|
|
3145
3142
|
}, Zs = 100, Kt = 16, Ue = "text-secondary", Wn = "text-primary min-w-0", Xs = "text-primary break-words min-w-0", Qt = "bg-layer-sunken", qs = ({
|
|
@@ -3168,7 +3165,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3168
3165
|
{
|
|
3169
3166
|
className: "grid gap-4 items-center dial-small-text",
|
|
3170
3167
|
style: { gridTemplateColumns: `${Zs}px 1fr` },
|
|
3171
|
-
children: a ? /* @__PURE__ */
|
|
3168
|
+
children: a ? /* @__PURE__ */ X(Ie, { children: [
|
|
3172
3169
|
/* @__PURE__ */ o("div", { className: Ue, children: r }),
|
|
3173
3170
|
/* @__PURE__ */ o(
|
|
3174
3171
|
Xt,
|
|
@@ -3219,7 +3216,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3219
3216
|
className: Qt
|
|
3220
3217
|
}
|
|
3221
3218
|
)
|
|
3222
|
-
] }) : s ? /* @__PURE__ */
|
|
3219
|
+
] }) : s ? /* @__PURE__ */ X(Ie, { children: [
|
|
3223
3220
|
/* @__PURE__ */ o("div", { className: Ue, children: r }),
|
|
3224
3221
|
/* @__PURE__ */ o("div", { className: Wn, children: /* @__PURE__ */ o(Tt, { text: s.name }) }),
|
|
3225
3222
|
/* @__PURE__ */ o("div", { className: Ue, children: i }),
|
|
@@ -3261,7 +3258,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3261
3258
|
fileExtension: l,
|
|
3262
3259
|
...i
|
|
3263
3260
|
}) => {
|
|
3264
|
-
const p = (C) => /* @__PURE__ */
|
|
3261
|
+
const p = (C) => /* @__PURE__ */ X("span", { className: "inline-flex relative text-secondary", role: "img", children: [
|
|
3265
3262
|
C,
|
|
3266
3263
|
s && /* @__PURE__ */ o("span", { className: "absolute -bottom-0.5 -left-0.5", children: /* @__PURE__ */ o(
|
|
3267
3264
|
oa,
|
|
@@ -3326,7 +3323,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3326
3323
|
inputRef: g,
|
|
3327
3324
|
onChange: m,
|
|
3328
3325
|
sharedIndicatorClassName: b,
|
|
3329
|
-
sharedIndicatorTooltip:
|
|
3326
|
+
sharedIndicatorTooltip: D,
|
|
3330
3327
|
fileExtension: h
|
|
3331
3328
|
}) => {
|
|
3332
3329
|
const f = () => {
|
|
@@ -3334,11 +3331,11 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3334
3331
|
`${Fo.Warning}__`
|
|
3335
3332
|
);
|
|
3336
3333
|
if (!c && !T) return null;
|
|
3337
|
-
const
|
|
3334
|
+
const N = v?.replace(
|
|
3338
3335
|
`${Fo.Warning}__`,
|
|
3339
3336
|
""
|
|
3340
3337
|
);
|
|
3341
|
-
return /* @__PURE__ */ o(Gn, { tooltip:
|
|
3338
|
+
return /* @__PURE__ */ o(Gn, { tooltip: N, children: y || (T ? /* @__PURE__ */ o(
|
|
3342
3339
|
cr,
|
|
3343
3340
|
{
|
|
3344
3341
|
...M,
|
|
@@ -3354,7 +3351,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3354
3351
|
}
|
|
3355
3352
|
)) });
|
|
3356
3353
|
};
|
|
3357
|
-
return /* @__PURE__ */
|
|
3354
|
+
return /* @__PURE__ */ X("div", { className: "flex gap-2 items-center", ...Ar, children: [
|
|
3358
3355
|
/* @__PURE__ */ o(
|
|
3359
3356
|
Qs,
|
|
3360
3357
|
{
|
|
@@ -3369,7 +3366,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3369
3366
|
shared: n,
|
|
3370
3367
|
fileExtension: h,
|
|
3371
3368
|
sharedIndicatorClassName: b,
|
|
3372
|
-
sharedIndicatorTooltip:
|
|
3369
|
+
sharedIndicatorTooltip: D
|
|
3373
3370
|
}
|
|
3374
3371
|
),
|
|
3375
3372
|
/* @__PURE__ */ o(
|
|
@@ -3406,12 +3403,12 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3406
3403
|
inputContainerClassName: g,
|
|
3407
3404
|
sharedIndicatorClassName: m,
|
|
3408
3405
|
sharedIndicatorTooltip: b,
|
|
3409
|
-
hideTooltip:
|
|
3406
|
+
hideTooltip: D = !1,
|
|
3410
3407
|
forbiddenSymbolsRegExp: h,
|
|
3411
3408
|
forbiddenSymbolsTooltip: f,
|
|
3412
3409
|
...T
|
|
3413
3410
|
}) => {
|
|
3414
|
-
const { value:
|
|
3411
|
+
const { value: N, invalid: F, invalidMessage: I, onChange: S, inputRef: A } = Mr({
|
|
3415
3412
|
value: e,
|
|
3416
3413
|
isEditing: a,
|
|
3417
3414
|
isCreating: r,
|
|
@@ -3440,7 +3437,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3440
3437
|
iconSize: i,
|
|
3441
3438
|
className: "max-w-[428px] truncate",
|
|
3442
3439
|
sharedIndicatorClassName: m,
|
|
3443
|
-
hideTooltip:
|
|
3440
|
+
hideTooltip: D,
|
|
3444
3441
|
isInvalidName: U,
|
|
3445
3442
|
tooltipContent: _
|
|
3446
3443
|
}
|
|
@@ -3453,7 +3450,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3453
3450
|
shared: l,
|
|
3454
3451
|
iconSize: i,
|
|
3455
3452
|
sharedIndicatorClassName: m,
|
|
3456
|
-
hideTooltip:
|
|
3453
|
+
hideTooltip: D,
|
|
3457
3454
|
isInvalidName: U,
|
|
3458
3455
|
tooltipContent: _
|
|
3459
3456
|
}
|
|
@@ -3463,7 +3460,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3463
3460
|
Js,
|
|
3464
3461
|
{
|
|
3465
3462
|
type: t,
|
|
3466
|
-
name:
|
|
3463
|
+
name: N,
|
|
3467
3464
|
elementId: s,
|
|
3468
3465
|
inputInvalid: F,
|
|
3469
3466
|
inputInvalidMessage: I,
|
|
@@ -3494,11 +3491,11 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3494
3491
|
rootItemPath: g,
|
|
3495
3492
|
onItemClick: m,
|
|
3496
3493
|
getContextMenuItems: b,
|
|
3497
|
-
onRenameSave:
|
|
3494
|
+
onRenameSave: D,
|
|
3498
3495
|
onRenameCancel: h,
|
|
3499
3496
|
onRenameValidate: f,
|
|
3500
3497
|
onExpandedPathsChange: T,
|
|
3501
|
-
onCreateFolderSave:
|
|
3498
|
+
onCreateFolderSave: N,
|
|
3502
3499
|
onCreateFolderCancel: F,
|
|
3503
3500
|
forbiddenSymbolsRegExp: I,
|
|
3504
3501
|
forbiddenSymbolsTooltip: S,
|
|
@@ -3523,15 +3520,15 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3523
3520
|
},
|
|
3524
3521
|
...B
|
|
3525
3522
|
]), J.map((j) => {
|
|
3526
|
-
const { path: te, nodeType: fe, name: we, items:
|
|
3523
|
+
const { path: te, nodeType: fe, name: we, items: Ne } = j, ue = fe === O.FOLDER;
|
|
3527
3524
|
if (!c && Ra(j)) return null;
|
|
3528
3525
|
if (!ue && !t) return;
|
|
3529
|
-
const
|
|
3526
|
+
const Te = Array.isArray(Ne) && Ne.length > 0 && Ne.some((H) => H.nodeType === O.FOLDER || t), xe = _.has(te), W = l === te, be = a.has(te), De = v === te || te === `${u}/${Jt}`, G = n.has(te), ne = r.has(te), he = g && y && te === g && ue, _e = f && ((H) => f(H, j)), Oe = W ? "bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded" : "border-l-2 border-l-transparent", Se = he ? [] : b?.(j) ?? [], R = I ? Vo(
|
|
3530
3527
|
{ name: j.name, isFolder: ue },
|
|
3531
3528
|
I,
|
|
3532
3529
|
S
|
|
3533
3530
|
) : void 0;
|
|
3534
|
-
return /* @__PURE__ */ o("div", { className: "cursor-pointer text-secondary", children: /* @__PURE__ */
|
|
3531
|
+
return /* @__PURE__ */ o("div", { className: "cursor-pointer text-secondary", children: /* @__PURE__ */ X("div", { className: "flex flex-col w-full", "aria-label": "folder", children: [
|
|
3535
3532
|
/* @__PURE__ */ o(
|
|
3536
3533
|
ht,
|
|
3537
3534
|
{
|
|
@@ -3539,7 +3536,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3539
3536
|
className: "w-full",
|
|
3540
3537
|
anchorToMouse: !0,
|
|
3541
3538
|
items: Se,
|
|
3542
|
-
children: /* @__PURE__ */
|
|
3539
|
+
children: /* @__PURE__ */ X(
|
|
3543
3540
|
"div",
|
|
3544
3541
|
{
|
|
3545
3542
|
style: { paddingLeft: `${L * Ks}px` },
|
|
@@ -3549,7 +3546,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3549
3546
|
),
|
|
3550
3547
|
"aria-selected": W,
|
|
3551
3548
|
children: [
|
|
3552
|
-
!
|
|
3549
|
+
!De && /* @__PURE__ */ o(
|
|
3553
3550
|
"div",
|
|
3554
3551
|
{
|
|
3555
3552
|
className: "absolute size-full left-0 top-0 z-0",
|
|
@@ -3560,16 +3557,16 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3560
3557
|
"div",
|
|
3561
3558
|
{
|
|
3562
3559
|
className: "relative flex flex-row truncate items-center w-fit h-6 gap-x-1 pl-1",
|
|
3563
|
-
onClick: () => !
|
|
3564
|
-
children: /* @__PURE__ */
|
|
3560
|
+
onClick: () => !De && P(j),
|
|
3561
|
+
children: /* @__PURE__ */ X(Ie, { children: [
|
|
3565
3562
|
ue && /* @__PURE__ */ o(
|
|
3566
3563
|
dr,
|
|
3567
3564
|
{
|
|
3568
3565
|
...Ys,
|
|
3569
3566
|
className: on(
|
|
3570
3567
|
"flex-shrink-0",
|
|
3571
|
-
|
|
3572
|
-
G && !
|
|
3568
|
+
xe && "rotate-90 transition-all",
|
|
3569
|
+
G && !Te && "text-transparent"
|
|
3573
3570
|
)
|
|
3574
3571
|
}
|
|
3575
3572
|
),
|
|
@@ -3589,12 +3586,12 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3589
3586
|
forbiddenSymbolsRegExp: I,
|
|
3590
3587
|
forbiddenSymbolsTooltip: R,
|
|
3591
3588
|
...!he && {
|
|
3592
|
-
editing:
|
|
3589
|
+
editing: De,
|
|
3593
3590
|
creating: te === `${u}/${Jt}`,
|
|
3594
|
-
onSave:
|
|
3591
|
+
onSave: D,
|
|
3595
3592
|
onCancel: h,
|
|
3596
3593
|
validate: _e,
|
|
3597
|
-
onCreateFolderSave:
|
|
3594
|
+
onCreateFolderSave: N,
|
|
3598
3595
|
onCreateFolderCancel: F
|
|
3599
3596
|
}
|
|
3600
3597
|
}
|
|
@@ -3602,7 +3599,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3602
3599
|
] })
|
|
3603
3600
|
}
|
|
3604
3601
|
),
|
|
3605
|
-
Se.length > 0 && !
|
|
3602
|
+
Se.length > 0 && !De && !he && /* @__PURE__ */ o("div", { className: "flex-1 flex justify-end", children: /* @__PURE__ */ o(
|
|
3606
3603
|
ht,
|
|
3607
3604
|
{
|
|
3608
3605
|
placement: "bottom-start",
|
|
@@ -3623,12 +3620,12 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3623
3620
|
)
|
|
3624
3621
|
}
|
|
3625
3622
|
),
|
|
3626
|
-
|
|
3623
|
+
xe && (Ne || j?.path === u) && k(Ne || [], L + 1, j)
|
|
3627
3624
|
] }) }, `${te}-children`);
|
|
3628
3625
|
});
|
|
3629
3626
|
};
|
|
3630
3627
|
return /* @__PURE__ */ o("div", { className: "flex-1 size-full overflow-y-auto", "aria-label": "folders-tree", children: e.length > 0 ? k(e, 0) : /* @__PURE__ */ o(
|
|
3631
|
-
|
|
3628
|
+
xa,
|
|
3632
3629
|
{
|
|
3633
3630
|
title: i,
|
|
3634
3631
|
description: p,
|
|
@@ -3654,7 +3651,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3654
3651
|
const g = [], m = Array.from(e.values());
|
|
3655
3652
|
if (!m.length || !t)
|
|
3656
3653
|
return g;
|
|
3657
|
-
const b = jn(y),
|
|
3654
|
+
const b = jn(y), D = b ? m.some((h) => b.test(h.name)) : !1;
|
|
3658
3655
|
if (t[w.RemoveAccess] && i) {
|
|
3659
3656
|
const h = m.some(
|
|
3660
3657
|
(f) => !v?.has(f.path)
|
|
@@ -3670,7 +3667,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3670
3667
|
}
|
|
3671
3668
|
});
|
|
3672
3669
|
}
|
|
3673
|
-
if (t[w.Move] && !
|
|
3670
|
+
if (t[w.Move] && !D && g.push({
|
|
3674
3671
|
key: w.Move,
|
|
3675
3672
|
label: t[w.Move],
|
|
3676
3673
|
title: t[w.Move],
|
|
@@ -3683,7 +3680,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3683
3680
|
}
|
|
3684
3681
|
),
|
|
3685
3682
|
onClick: () => n(m)
|
|
3686
|
-
}), t[w.Copy] && !
|
|
3683
|
+
}), t[w.Copy] && !D && g.push({
|
|
3687
3684
|
key: w.Copy,
|
|
3688
3685
|
label: t[w.Copy],
|
|
3689
3686
|
title: t[w.Copy],
|
|
@@ -3696,7 +3693,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3696
3693
|
}
|
|
3697
3694
|
),
|
|
3698
3695
|
onClick: () => a(m)
|
|
3699
|
-
}), t[w.Duplicate] && !
|
|
3696
|
+
}), t[w.Duplicate] && !D && g.push({
|
|
3700
3697
|
key: w.Duplicate,
|
|
3701
3698
|
label: t[w.Duplicate],
|
|
3702
3699
|
title: t[w.Duplicate],
|
|
@@ -3719,7 +3716,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3719
3716
|
}
|
|
3720
3717
|
});
|
|
3721
3718
|
}
|
|
3722
|
-
if (t[w.Download] && !
|
|
3719
|
+
if (t[w.Download] && !D && g.push({
|
|
3723
3720
|
key: w.Download,
|
|
3724
3721
|
label: t[w.Download],
|
|
3725
3722
|
title: t[w.Download],
|
|
@@ -3789,11 +3786,11 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3789
3786
|
hideTooltip: C,
|
|
3790
3787
|
forbiddenSymbolsRegExp: c,
|
|
3791
3788
|
forbiddenSymbolsTooltip: v,
|
|
3792
|
-
details: /* @__PURE__ */
|
|
3789
|
+
details: /* @__PURE__ */ X("div", { className: "flex items-center gap-1 dial-tiny-text text-secondary", children: [
|
|
3793
3790
|
/* @__PURE__ */ o("span", { children: s === O.ITEM ? rn(a) : "" }),
|
|
3794
3791
|
n && a && /* @__PURE__ */ o(Hn, { size: 2, className: "text-secondary" }),
|
|
3795
3792
|
n ? /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(
|
|
3796
|
-
|
|
3793
|
+
Da,
|
|
3797
3794
|
{
|
|
3798
3795
|
value: n,
|
|
3799
3796
|
locale: r?.toString(),
|
|
@@ -3820,7 +3817,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3820
3817
|
selectedPaths: v,
|
|
3821
3818
|
disabledRowIds: u,
|
|
3822
3819
|
filesLoading: y
|
|
3823
|
-
} = n.context, g = c?.has(n.data.path), m = v?.has(n.data.path), b = u?.has(n.data.path) ?? !1,
|
|
3820
|
+
} = n.context, g = c?.has(n.data.path), m = v?.has(n.data.path), b = u?.has(n.data.path) ?? !1, D = Ee([
|
|
3824
3821
|
"group-hover/grid-row:bg-accent-primary-alpha",
|
|
3825
3822
|
m && "bg-accent-primary-alpha"
|
|
3826
3823
|
]);
|
|
@@ -3835,7 +3832,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3835
3832
|
creating: !0,
|
|
3836
3833
|
loading: y,
|
|
3837
3834
|
shared: g,
|
|
3838
|
-
sharedIndicatorClassName:
|
|
3835
|
+
sharedIndicatorClassName: D,
|
|
3839
3836
|
iconSize: rt,
|
|
3840
3837
|
validate: i,
|
|
3841
3838
|
onSave: l,
|
|
@@ -3852,13 +3849,13 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3852
3849
|
renameTriggerView: h,
|
|
3853
3850
|
renamedPath: f,
|
|
3854
3851
|
renamedItem: T,
|
|
3855
|
-
getDisplayName:
|
|
3852
|
+
getDisplayName: N,
|
|
3856
3853
|
onRenameValidate: F,
|
|
3857
3854
|
onRenameSave: I,
|
|
3858
3855
|
onRenameCancel: S
|
|
3859
3856
|
} = n.context;
|
|
3860
3857
|
if (h === Rt.Grid && f === n.data?.path && T && n.data) {
|
|
3861
|
-
const U =
|
|
3858
|
+
const U = N(T);
|
|
3862
3859
|
return /* @__PURE__ */ o(
|
|
3863
3860
|
Vn,
|
|
3864
3861
|
{
|
|
@@ -3868,7 +3865,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3868
3865
|
elementId: `rename-${n.data.id}`,
|
|
3869
3866
|
editing: !0,
|
|
3870
3867
|
shared: g,
|
|
3871
|
-
sharedIndicatorClassName:
|
|
3868
|
+
sharedIndicatorClassName: D,
|
|
3872
3869
|
iconSize: rt,
|
|
3873
3870
|
validate: (P) => F(P, T),
|
|
3874
3871
|
onSave: I,
|
|
@@ -3890,7 +3887,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3890
3887
|
nodeType: r,
|
|
3891
3888
|
size: n.data.size,
|
|
3892
3889
|
shared: g,
|
|
3893
|
-
sharedIndicatorClassName:
|
|
3890
|
+
sharedIndicatorClassName: D,
|
|
3894
3891
|
updatedAt: n.data.updatedAt,
|
|
3895
3892
|
dateLocale: t,
|
|
3896
3893
|
dateOptions: s,
|
|
@@ -3912,7 +3909,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3912
3909
|
{
|
|
3913
3910
|
name: n.data.name,
|
|
3914
3911
|
shared: g,
|
|
3915
|
-
sharedIndicatorClassName:
|
|
3912
|
+
sharedIndicatorClassName: D,
|
|
3916
3913
|
iconSize: rt,
|
|
3917
3914
|
hideTooltip: b,
|
|
3918
3915
|
isInvalidName: !!_,
|
|
@@ -3923,7 +3920,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3923
3920
|
{
|
|
3924
3921
|
name: n.data.name,
|
|
3925
3922
|
shared: g,
|
|
3926
|
-
sharedIndicatorClassName:
|
|
3923
|
+
sharedIndicatorClassName: D,
|
|
3927
3924
|
iconSize: rt,
|
|
3928
3925
|
hideTooltip: b,
|
|
3929
3926
|
isInvalidName: !!_,
|
|
@@ -3939,7 +3936,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3939
3936
|
suppressSizeToFit: !0,
|
|
3940
3937
|
cellRenderer: (a) => {
|
|
3941
3938
|
const n = a.context?.disabledRowIds?.has(a.data?.path) ?? !1;
|
|
3942
|
-
return /* @__PURE__ */ o(
|
|
3939
|
+
return /* @__PURE__ */ o(Da, { ...a, hideTooltip: n });
|
|
3943
3940
|
},
|
|
3944
3941
|
cellRendererParams: {
|
|
3945
3942
|
locale: t,
|
|
@@ -4083,18 +4080,18 @@ const li = () => {
|
|
|
4083
4080
|
onOpenInNewTab: g,
|
|
4084
4081
|
previewExtensions: m,
|
|
4085
4082
|
isRenameFileAvailable: b = !0,
|
|
4086
|
-
isDuplicateFolderAvailable:
|
|
4083
|
+
isDuplicateFolderAvailable: D = !0,
|
|
4087
4084
|
forbiddenSymbolsRegExp: h,
|
|
4088
4085
|
onGridCreateSiblingFolder: f,
|
|
4089
4086
|
onGridCreateChildFolder: T
|
|
4090
|
-
}) => $(() => (
|
|
4087
|
+
}) => $(() => (N) => {
|
|
4091
4088
|
const F = [];
|
|
4092
4089
|
if (!e)
|
|
4093
4090
|
return F;
|
|
4094
4091
|
const I = jn(
|
|
4095
4092
|
h
|
|
4096
|
-
)?.test(
|
|
4097
|
-
e[w.AddSibling] &&
|
|
4093
|
+
)?.test(N.name);
|
|
4094
|
+
e[w.AddSibling] && N.nodeType === O.FOLDER && F.push({
|
|
4098
4095
|
key: "addSibling",
|
|
4099
4096
|
label: e[w.AddSibling],
|
|
4100
4097
|
icon: /* @__PURE__ */ o(
|
|
@@ -4105,8 +4102,8 @@ const li = () => {
|
|
|
4105
4102
|
className: "text-secondary"
|
|
4106
4103
|
}
|
|
4107
4104
|
),
|
|
4108
|
-
onClick: () => f([
|
|
4109
|
-
}), e[w.AddChild] &&
|
|
4105
|
+
onClick: () => f([N])
|
|
4106
|
+
}), e[w.AddChild] && N.nodeType === O.FOLDER && !I && F.push(
|
|
4110
4107
|
{
|
|
4111
4108
|
key: "addChild",
|
|
4112
4109
|
label: e[w.AddChild],
|
|
@@ -4118,24 +4115,24 @@ const li = () => {
|
|
|
4118
4115
|
className: "text-secondary"
|
|
4119
4116
|
}
|
|
4120
4117
|
),
|
|
4121
|
-
onClick: () => T([
|
|
4118
|
+
onClick: () => T([N])
|
|
4122
4119
|
},
|
|
4123
4120
|
{
|
|
4124
4121
|
key: "divider",
|
|
4125
|
-
type:
|
|
4122
|
+
type: Na.Divider
|
|
4126
4123
|
}
|
|
4127
|
-
), e[w.OpenInNewTab] && typeof g == "function" &&
|
|
4124
|
+
), e[w.OpenInNewTab] && typeof g == "function" && N.nodeType === O.ITEM && !I && F.push({
|
|
4128
4125
|
key: w.OpenInNewTab,
|
|
4129
4126
|
label: e[w.OpenInNewTab],
|
|
4130
4127
|
icon: /* @__PURE__ */ o(Io, { ...M, className: "text-secondary" }),
|
|
4131
|
-
onClick: () => g?.(
|
|
4128
|
+
onClick: () => g?.(N)
|
|
4132
4129
|
});
|
|
4133
|
-
const S =
|
|
4130
|
+
const S = N.nodeType === O.ITEM || N.nodeType === O.FOLDER && D;
|
|
4134
4131
|
e[w.Duplicate] && S && !I && F.push({
|
|
4135
4132
|
key: w.Duplicate,
|
|
4136
4133
|
label: e[w.Duplicate],
|
|
4137
4134
|
icon: /* @__PURE__ */ o(Ao, { ...M, className: "text-secondary" }),
|
|
4138
|
-
onClick: () => t(
|
|
4135
|
+
onClick: () => t(N)
|
|
4139
4136
|
}), e[w.Copy] && !I && F.push({
|
|
4140
4137
|
key: w.Copy,
|
|
4141
4138
|
label: e[w.Copy],
|
|
@@ -4147,7 +4144,7 @@ const li = () => {
|
|
|
4147
4144
|
className: "text-secondary"
|
|
4148
4145
|
}
|
|
4149
4146
|
),
|
|
4150
|
-
onClick: () => s(
|
|
4147
|
+
onClick: () => s(N)
|
|
4151
4148
|
}), e[w.Move] && !I && F.push({
|
|
4152
4149
|
key: w.Move,
|
|
4153
4150
|
label: e[w.Move],
|
|
@@ -4159,44 +4156,44 @@ const li = () => {
|
|
|
4159
4156
|
className: "text-secondary"
|
|
4160
4157
|
}
|
|
4161
4158
|
),
|
|
4162
|
-
onClick: () => a(
|
|
4159
|
+
onClick: () => a(N)
|
|
4163
4160
|
}), e[w.Download] && !I && F.push({
|
|
4164
4161
|
key: w.Download,
|
|
4165
4162
|
label: e[w.Download],
|
|
4166
4163
|
icon: /* @__PURE__ */ o(Mo, { ...M, className: "text-secondary" }),
|
|
4167
|
-
onClick: () => n(
|
|
4168
|
-
}), e[w.ManagePermissions] && typeof u == "function" &&
|
|
4164
|
+
onClick: () => n(N)
|
|
4165
|
+
}), e[w.ManagePermissions] && typeof u == "function" && N.nodeType === O.FOLDER && !I && F.push({
|
|
4169
4166
|
key: w.ManagePermissions,
|
|
4170
4167
|
label: e[w.ManagePermissions],
|
|
4171
4168
|
icon: /* @__PURE__ */ o(Io, { ...M, className: "text-secondary" }),
|
|
4172
|
-
onClick: () => u?.(
|
|
4169
|
+
onClick: () => u?.(N.path)
|
|
4173
4170
|
});
|
|
4174
|
-
const A =
|
|
4175
|
-
e[w.Preview] && typeof y == "function" &&
|
|
4171
|
+
const A = N.name.split("."), _ = A.length > 1 ? A[A.length - 1] : "", U = _ && m?.includes(`.${_}`);
|
|
4172
|
+
e[w.Preview] && typeof y == "function" && N.nodeType === O.ITEM && U && !I && F.push({
|
|
4176
4173
|
key: w.Preview,
|
|
4177
4174
|
label: e[w.Preview],
|
|
4178
4175
|
icon: /* @__PURE__ */ o(Eo, { ...M, className: "text-secondary" }),
|
|
4179
|
-
onClick: () => y?.(
|
|
4176
|
+
onClick: () => y?.(N.path)
|
|
4180
4177
|
});
|
|
4181
|
-
const P = !
|
|
4178
|
+
const P = !N.permissions || N.permissions.includes(Et.WRITE);
|
|
4182
4179
|
e[w.Delete] && P && F.push({
|
|
4183
4180
|
key: w.Delete,
|
|
4184
4181
|
label: e[w.Delete],
|
|
4185
4182
|
icon: /* @__PURE__ */ o(Po, { ...M, className: "text-secondary" }),
|
|
4186
|
-
onClick: () => l(
|
|
4183
|
+
onClick: () => l(N, N.parentPath ?? "")
|
|
4187
4184
|
});
|
|
4188
|
-
const k =
|
|
4185
|
+
const k = N.nodeType === O.FOLDER || N.nodeType === O.ITEM && b;
|
|
4189
4186
|
return e[w.Rename] && k && P && F.push({
|
|
4190
4187
|
key: w.Rename,
|
|
4191
4188
|
label: e[w.Rename],
|
|
4192
4189
|
icon: /* @__PURE__ */ o(ma, { ...M, className: "text-secondary" }),
|
|
4193
|
-
onClick: () => r(
|
|
4194
|
-
}), e[w.Info] &&
|
|
4190
|
+
onClick: () => r(N.path)
|
|
4191
|
+
}), e[w.Info] && N.nodeType === O.ITEM && !I && F.push({
|
|
4195
4192
|
key: w.Info,
|
|
4196
4193
|
label: e[w.Info],
|
|
4197
4194
|
icon: /* @__PURE__ */ o(ur, { ...M, className: "text-secondary" }),
|
|
4198
|
-
onClick: () => i(
|
|
4199
|
-
}), e[w.Unshare] && c?.includes(
|
|
4195
|
+
onClick: () => i(N)
|
|
4196
|
+
}), e[w.Unshare] && c?.includes(N.path) && F.push({
|
|
4200
4197
|
key: w.Unshare,
|
|
4201
4198
|
label: e[w.Unshare],
|
|
4202
4199
|
icon: /* @__PURE__ */ o(
|
|
@@ -4207,12 +4204,12 @@ const li = () => {
|
|
|
4207
4204
|
className: "text-secondary"
|
|
4208
4205
|
}
|
|
4209
4206
|
),
|
|
4210
|
-
onClick: () => p(
|
|
4211
|
-
}), e[w.RemoveAccess] && v?.has(
|
|
4207
|
+
onClick: () => p(N)
|
|
4208
|
+
}), e[w.RemoveAccess] && v?.has(N.path) && C && F.push({
|
|
4212
4209
|
key: w.RemoveAccess,
|
|
4213
4210
|
label: e[w.RemoveAccess],
|
|
4214
4211
|
icon: /* @__PURE__ */ o(So, { size: M.size, className: "text-secondary" }),
|
|
4215
|
-
onClick: () => C(
|
|
4212
|
+
onClick: () => C(N)
|
|
4216
4213
|
}), F;
|
|
4217
4214
|
}, [
|
|
4218
4215
|
e,
|
|
@@ -4232,7 +4229,7 @@ const li = () => {
|
|
|
4232
4229
|
g,
|
|
4233
4230
|
m,
|
|
4234
4231
|
b,
|
|
4235
|
-
|
|
4232
|
+
D,
|
|
4236
4233
|
h,
|
|
4237
4234
|
T,
|
|
4238
4235
|
f
|
|
@@ -4291,11 +4288,11 @@ const li = () => {
|
|
|
4291
4288
|
compactViewWidthBreakpoint: g = Kr,
|
|
4292
4289
|
customBreakpointRef: m,
|
|
4293
4290
|
sharedByMePaths: b,
|
|
4294
|
-
allowedFileTypes:
|
|
4291
|
+
allowedFileTypes: D,
|
|
4295
4292
|
maxSelectableFileSize: h,
|
|
4296
4293
|
areHiddenFilesVisible: f,
|
|
4297
4294
|
toggleHiddenFilesVisibility: T,
|
|
4298
|
-
isTreeCollapsed:
|
|
4295
|
+
isTreeCollapsed: N,
|
|
4299
4296
|
toggleTreeCollapse: F,
|
|
4300
4297
|
currentPath: I,
|
|
4301
4298
|
gridRows: S,
|
|
@@ -4312,13 +4309,13 @@ const li = () => {
|
|
|
4312
4309
|
onGridApiChange: te,
|
|
4313
4310
|
handleOpenDestinationFolderPopup: fe,
|
|
4314
4311
|
handleCloseDestinationFolderPopup: we,
|
|
4315
|
-
openDestinationFolderPopup:
|
|
4312
|
+
openDestinationFolderPopup: Ne,
|
|
4316
4313
|
destinationFolderMode: ue,
|
|
4317
|
-
handleSetCopiedFiles:
|
|
4318
|
-
handleSetMovedFiles:
|
|
4314
|
+
handleSetCopiedFiles: Te,
|
|
4315
|
+
handleSetMovedFiles: xe,
|
|
4319
4316
|
handleDuplicate: W,
|
|
4320
4317
|
handleCopyTo: be,
|
|
4321
|
-
handleMoveTo:
|
|
4318
|
+
handleMoveTo: De,
|
|
4322
4319
|
handleGridAddSibling: G,
|
|
4323
4320
|
handleGridAddChild: ne,
|
|
4324
4321
|
handleTreeAddSibling: he,
|
|
@@ -4329,7 +4326,7 @@ const li = () => {
|
|
|
4329
4326
|
confirmDelete: H,
|
|
4330
4327
|
deleteConfirmationOpen: V,
|
|
4331
4328
|
itemsToDelete: Q,
|
|
4332
|
-
renamedPath:
|
|
4329
|
+
renamedPath: Z,
|
|
4333
4330
|
renamedItem: me,
|
|
4334
4331
|
onRename: Ae,
|
|
4335
4332
|
onRenameSave: Pe,
|
|
@@ -4396,15 +4393,15 @@ const li = () => {
|
|
|
4396
4393
|
nonClickableTableColumns: Lt,
|
|
4397
4394
|
hideSearchPathItemName: zt,
|
|
4398
4395
|
showHiddenFileSwitcherInDestinationPopup: le,
|
|
4399
|
-
showCreateFolderButtonInDestinationPopup:
|
|
4396
|
+
showCreateFolderButtonInDestinationPopup: xn,
|
|
4400
4397
|
newFolderDefaultName: re
|
|
4401
4398
|
} = li(), {
|
|
4402
4399
|
width: Le = jr,
|
|
4403
4400
|
header: Me = Zr,
|
|
4404
|
-
containerClassName:
|
|
4405
|
-
additionalButtons:
|
|
4401
|
+
containerClassName: Dn = Gr,
|
|
4402
|
+
additionalButtons: Nn,
|
|
4406
4403
|
...bn
|
|
4407
|
-
} = r ?? {}, [
|
|
4404
|
+
} = r ?? {}, [xt, Tn] = z(Le), { renameTriggerView: nt, onGridRename: lo, onTreeRename: Rn } = ts({ onRename: Ae }), {
|
|
4408
4405
|
createFolderTriggerView: In,
|
|
4409
4406
|
onGridCreateSiblingFolder: co,
|
|
4410
4407
|
onTreeCreateSiblingFolder: Fn,
|
|
@@ -4415,9 +4412,9 @@ const li = () => {
|
|
|
4415
4412
|
onGridAddChild: ne,
|
|
4416
4413
|
onTreeAddSibling: he,
|
|
4417
4414
|
onTreeAddChild: _e
|
|
4418
|
-
}), _t = ce(null), ho = (
|
|
4415
|
+
}), _t = ce(null), ho = (x) => {
|
|
4419
4416
|
_t.current === null && (_t.current = requestAnimationFrame(() => {
|
|
4420
|
-
Tn(
|
|
4417
|
+
Tn(x), _t.current = null;
|
|
4421
4418
|
}));
|
|
4422
4419
|
}, {
|
|
4423
4420
|
columnDefs: po,
|
|
@@ -4427,7 +4424,7 @@ const li = () => {
|
|
|
4427
4424
|
selectionMode: Sn,
|
|
4428
4425
|
wrapCustomCellRenderers: An,
|
|
4429
4426
|
visibleColumns: Pn = Qr,
|
|
4430
|
-
allowDisabledContextMenu:
|
|
4427
|
+
allowDisabledContextMenu: Dt = !1,
|
|
4431
4428
|
...ot
|
|
4432
4429
|
} = p ?? {}, { containerRef: go, isBelowBreakpoint: ze } = ns(
|
|
4433
4430
|
g,
|
|
@@ -4437,28 +4434,28 @@ const li = () => {
|
|
|
4437
4434
|
ye.Path,
|
|
4438
4435
|
ye.Actions
|
|
4439
4436
|
] : Pn, [tt, Pn]), Bt = d(
|
|
4440
|
-
(
|
|
4441
|
-
|
|
4437
|
+
(x, ee, ie) => us(
|
|
4438
|
+
x,
|
|
4442
4439
|
ee,
|
|
4443
4440
|
ie,
|
|
4444
4441
|
wn,
|
|
4445
4442
|
wt
|
|
4446
4443
|
),
|
|
4447
4444
|
[wt, wn]
|
|
4448
|
-
),
|
|
4449
|
-
(
|
|
4445
|
+
), Nt = d(
|
|
4446
|
+
(x, ee, ie) => !!kt?.(x) || !!Bt(x, ee, ie),
|
|
4450
4447
|
[Bt, kt]
|
|
4451
4448
|
), ct = $(() => {
|
|
4452
|
-
const
|
|
4449
|
+
const x = /* @__PURE__ */ new Set();
|
|
4453
4450
|
for (const ee of S)
|
|
4454
|
-
|
|
4455
|
-
return
|
|
4456
|
-
}, [
|
|
4457
|
-
(
|
|
4458
|
-
const ee = [], ie = [],
|
|
4459
|
-
|
|
4451
|
+
Nt(ee, D, h) && x.add(ee.path);
|
|
4452
|
+
return x;
|
|
4453
|
+
}, [D, h, S, Nt]), Wt = d(
|
|
4454
|
+
(x) => {
|
|
4455
|
+
const ee = [], ie = [], Re = !x.parentPath, at = He?.test(
|
|
4456
|
+
x.name
|
|
4460
4457
|
);
|
|
4461
|
-
return r?.actionLabels && (r.actionLabels[w.AddSibling] &&
|
|
4458
|
+
return r?.actionLabels && (r.actionLabels[w.AddSibling] && x.nodeType === O.FOLDER && !Re && ee.push({
|
|
4462
4459
|
key: "addSibling",
|
|
4463
4460
|
label: r.actionLabels[w.AddSibling],
|
|
4464
4461
|
icon: /* @__PURE__ */ o(
|
|
@@ -4469,8 +4466,8 @@ const li = () => {
|
|
|
4469
4466
|
className: "text-secondary"
|
|
4470
4467
|
}
|
|
4471
4468
|
),
|
|
4472
|
-
onClick: () => Fn([
|
|
4473
|
-
}), r.actionLabels[w.AddChild] &&
|
|
4469
|
+
onClick: () => Fn([x])
|
|
4470
|
+
}), r.actionLabels[w.AddChild] && x.nodeType === O.FOLDER && !at && ee.push({
|
|
4474
4471
|
key: "addChild",
|
|
4475
4472
|
label: r.actionLabels[w.AddChild],
|
|
4476
4473
|
icon: /* @__PURE__ */ o(
|
|
@@ -4481,13 +4478,13 @@ const li = () => {
|
|
|
4481
4478
|
className: "text-secondary"
|
|
4482
4479
|
}
|
|
4483
4480
|
),
|
|
4484
|
-
onClick: () => En([
|
|
4485
|
-
}), r.actionLabels[w.Duplicate] && !
|
|
4481
|
+
onClick: () => En([x])
|
|
4482
|
+
}), r.actionLabels[w.Duplicate] && !Re && !at && ie.push({
|
|
4486
4483
|
key: "duplicate",
|
|
4487
4484
|
label: r.actionLabels[w.Duplicate],
|
|
4488
4485
|
icon: /* @__PURE__ */ o(Ao, { ...M, className: "text-secondary" }),
|
|
4489
|
-
onClick: () => W([
|
|
4490
|
-
}), r.actionLabels[w.Copy] && !
|
|
4486
|
+
onClick: () => W([x])
|
|
4487
|
+
}), r.actionLabels[w.Copy] && !Re && !at && ie.push({
|
|
4491
4488
|
key: ge.Copy,
|
|
4492
4489
|
label: r.actionLabels[w.Copy],
|
|
4493
4490
|
icon: /* @__PURE__ */ o(
|
|
@@ -4499,9 +4496,9 @@ const li = () => {
|
|
|
4499
4496
|
}
|
|
4500
4497
|
),
|
|
4501
4498
|
onClick: () => {
|
|
4502
|
-
|
|
4499
|
+
Te([x]), fe(ge.Copy);
|
|
4503
4500
|
}
|
|
4504
|
-
}), r.actionLabels[w.Move] && !
|
|
4501
|
+
}), r.actionLabels[w.Move] && !Re && !at && ie.push({
|
|
4505
4502
|
key: ge.Move,
|
|
4506
4503
|
label: r.actionLabels[w.Move],
|
|
4507
4504
|
icon: /* @__PURE__ */ o(
|
|
@@ -4513,14 +4510,14 @@ const li = () => {
|
|
|
4513
4510
|
}
|
|
4514
4511
|
),
|
|
4515
4512
|
onClick: () => {
|
|
4516
|
-
|
|
4513
|
+
xe([x]), fe(ge.Move);
|
|
4517
4514
|
}
|
|
4518
|
-
}), r.actionLabels[w.Download] && !
|
|
4515
|
+
}), r.actionLabels[w.Download] && !Re && !at && ie.push({
|
|
4519
4516
|
key: "download",
|
|
4520
4517
|
label: r.actionLabels[w.Download],
|
|
4521
4518
|
icon: /* @__PURE__ */ o(Mo, { ...M, className: "text-secondary" }),
|
|
4522
|
-
onClick: () => Oe([
|
|
4523
|
-
}), r.actionLabels[w.ManagePermissions] && typeof yt == "function" &&
|
|
4519
|
+
onClick: () => Oe([x])
|
|
4520
|
+
}), r.actionLabels[w.ManagePermissions] && typeof yt == "function" && x.nodeType === O.FOLDER && !Re && ie.push({
|
|
4524
4521
|
key: w.ManagePermissions,
|
|
4525
4522
|
label: r.actionLabels[w.ManagePermissions],
|
|
4526
4523
|
icon: /* @__PURE__ */ o(
|
|
@@ -4530,13 +4527,13 @@ const li = () => {
|
|
|
4530
4527
|
className: "text-secondary"
|
|
4531
4528
|
}
|
|
4532
4529
|
),
|
|
4533
|
-
onClick: () => yt?.(
|
|
4534
|
-
}), r.actionLabels[w.Delete] &&
|
|
4530
|
+
onClick: () => yt?.(x.path)
|
|
4531
|
+
}), r.actionLabels[w.Delete] && x.permissions?.includes(Et.WRITE) && !Re && ie.push({
|
|
4535
4532
|
key: "delete",
|
|
4536
4533
|
label: r.actionLabels[w.Delete],
|
|
4537
4534
|
icon: /* @__PURE__ */ o(Po, { ...M, className: "text-secondary" }),
|
|
4538
|
-
onClick: () => Se([
|
|
4539
|
-
}), r.actionLabels[w.Rename] && !
|
|
4535
|
+
onClick: () => Se([x], x.parentPath ?? "")
|
|
4536
|
+
}), r.actionLabels[w.Rename] && !Re && ie.push({
|
|
4540
4537
|
key: "rename",
|
|
4541
4538
|
label: r.actionLabels[w.Rename],
|
|
4542
4539
|
icon: /* @__PURE__ */ o(
|
|
@@ -4546,8 +4543,8 @@ const li = () => {
|
|
|
4546
4543
|
className: "text-secondary"
|
|
4547
4544
|
}
|
|
4548
4545
|
),
|
|
4549
|
-
onClick: () => Rn(
|
|
4550
|
-
}), r.actionLabels[w.Unshare] && vt?.includes(
|
|
4546
|
+
onClick: () => Rn(x.path)
|
|
4547
|
+
}), r.actionLabels[w.Unshare] && vt?.includes(x.path) && !Re && ie.push({
|
|
4551
4548
|
key: "unshare",
|
|
4552
4549
|
label: r.actionLabels[w.Unshare],
|
|
4553
4550
|
icon: /* @__PURE__ */ o(
|
|
@@ -4558,8 +4555,8 @@ const li = () => {
|
|
|
4558
4555
|
className: "text-secondary"
|
|
4559
4556
|
}
|
|
4560
4557
|
),
|
|
4561
|
-
onClick: () => et?.([
|
|
4562
|
-
}), r.actionLabels[w.RemoveAccess] && b?.has(
|
|
4558
|
+
onClick: () => et?.([x])
|
|
4559
|
+
}), r.actionLabels[w.RemoveAccess] && b?.has(x.path) && !Re && ie.push({
|
|
4563
4560
|
key: w.RemoveAccess,
|
|
4564
4561
|
label: r.actionLabels[w.RemoveAccess],
|
|
4565
4562
|
icon: /* @__PURE__ */ o(
|
|
@@ -4569,10 +4566,10 @@ const li = () => {
|
|
|
4569
4566
|
className: "text-secondary"
|
|
4570
4567
|
}
|
|
4571
4568
|
),
|
|
4572
|
-
onClick: () => gt?.([
|
|
4569
|
+
onClick: () => gt?.([x])
|
|
4573
4570
|
})), ee.length ? ie.length === 0 ? ee : ee.length === 0 ? ie : [
|
|
4574
4571
|
...ee,
|
|
4575
|
-
{ key: "divider", type:
|
|
4572
|
+
{ key: "divider", type: Na.Divider },
|
|
4576
4573
|
...ie
|
|
4577
4574
|
] : ie;
|
|
4578
4575
|
},
|
|
@@ -4581,9 +4578,9 @@ const li = () => {
|
|
|
4581
4578
|
He,
|
|
4582
4579
|
yt,
|
|
4583
4580
|
W,
|
|
4584
|
-
|
|
4581
|
+
Te,
|
|
4585
4582
|
fe,
|
|
4586
|
-
|
|
4583
|
+
xe,
|
|
4587
4584
|
Oe,
|
|
4588
4585
|
Rn,
|
|
4589
4586
|
et,
|
|
@@ -4595,22 +4592,22 @@ const li = () => {
|
|
|
4595
4592
|
Fn
|
|
4596
4593
|
]
|
|
4597
4594
|
), Mn = $(() => {
|
|
4598
|
-
const
|
|
4599
|
-
return _.forEach((ee, ie) =>
|
|
4595
|
+
const x = /* @__PURE__ */ new Set();
|
|
4596
|
+
return _.forEach((ee, ie) => x.add(ie)), x;
|
|
4600
4597
|
}, [_]), Ht = d(
|
|
4601
|
-
(
|
|
4602
|
-
P(
|
|
4598
|
+
(x, ee) => {
|
|
4599
|
+
P(x), j?.(ee);
|
|
4603
4600
|
},
|
|
4604
4601
|
[j, P]
|
|
4605
4602
|
), kn = ti({
|
|
4606
4603
|
selectedFiles: _,
|
|
4607
4604
|
actionLabels: c?.actionLabels,
|
|
4608
4605
|
onDuplicate: W,
|
|
4609
|
-
onCopy: (
|
|
4610
|
-
|
|
4606
|
+
onCopy: (x) => {
|
|
4607
|
+
Te(x), fe(ge.Copy);
|
|
4611
4608
|
},
|
|
4612
|
-
onMove: (
|
|
4613
|
-
|
|
4609
|
+
onMove: (x) => {
|
|
4610
|
+
xe(x), fe(ge.Move);
|
|
4614
4611
|
},
|
|
4615
4612
|
onDownload: Oe,
|
|
4616
4613
|
onDelete: Se,
|
|
@@ -4622,11 +4619,11 @@ const li = () => {
|
|
|
4622
4619
|
onClearSelection: U,
|
|
4623
4620
|
forbiddenSymbolsRegExp: He
|
|
4624
4621
|
}), Ut = d(
|
|
4625
|
-
(
|
|
4626
|
-
C?.onTabChange?.(
|
|
4622
|
+
(x) => {
|
|
4623
|
+
C?.onTabChange?.(x), Qe();
|
|
4627
4624
|
},
|
|
4628
4625
|
[C, Qe]
|
|
4629
|
-
), yo = d(() => C && A.size === 0 ? /* @__PURE__ */
|
|
4626
|
+
), yo = d(() => C && A.size === 0 ? /* @__PURE__ */ X(
|
|
4630
4627
|
"div",
|
|
4631
4628
|
{
|
|
4632
4629
|
className: ra,
|
|
@@ -4694,22 +4691,22 @@ const li = () => {
|
|
|
4694
4691
|
children: /* @__PURE__ */ o(
|
|
4695
4692
|
zr,
|
|
4696
4693
|
{
|
|
4697
|
-
defaultWidth:
|
|
4698
|
-
width:
|
|
4694
|
+
defaultWidth: xt,
|
|
4695
|
+
width: xt,
|
|
4699
4696
|
onResizeStop: Tn,
|
|
4700
4697
|
onResize: ho,
|
|
4701
4698
|
minWidth: qr,
|
|
4702
4699
|
maxWidth: Yr,
|
|
4703
|
-
enabled: !
|
|
4700
|
+
enabled: !N,
|
|
4704
4701
|
children: /* @__PURE__ */ o(
|
|
4705
4702
|
_r,
|
|
4706
4703
|
{
|
|
4707
|
-
width:
|
|
4704
|
+
width: xt,
|
|
4708
4705
|
title: Me,
|
|
4709
|
-
containerClassName:
|
|
4706
|
+
containerClassName: Dn,
|
|
4710
4707
|
titleClassName: "dial-body-text text-primary",
|
|
4711
|
-
additionalButtons:
|
|
4712
|
-
isOpened: !
|
|
4708
|
+
additionalButtons: Nn,
|
|
4709
|
+
isOpened: !N,
|
|
4713
4710
|
onToggle: F,
|
|
4714
4711
|
children: /* @__PURE__ */ o(
|
|
4715
4712
|
ei,
|
|
@@ -4725,7 +4722,7 @@ const li = () => {
|
|
|
4725
4722
|
onItemClick: Y,
|
|
4726
4723
|
areHiddenFilesVisible: f,
|
|
4727
4724
|
getContextMenuItems: Wt,
|
|
4728
|
-
renamedPath: nt === Rt.Tree ?
|
|
4725
|
+
renamedPath: nt === Rt.Tree ? Z : void 0,
|
|
4729
4726
|
onRenameSave: Pe,
|
|
4730
4727
|
onRenameCancel: ae,
|
|
4731
4728
|
onRenameValidate: Ve,
|
|
@@ -4742,11 +4739,11 @@ const li = () => {
|
|
|
4742
4739
|
}
|
|
4743
4740
|
), [
|
|
4744
4741
|
ze,
|
|
4745
|
-
|
|
4746
|
-
|
|
4742
|
+
xt,
|
|
4743
|
+
N,
|
|
4747
4744
|
Me,
|
|
4745
|
+
Dn,
|
|
4748
4746
|
Nn,
|
|
4749
|
-
xn,
|
|
4750
4747
|
F,
|
|
4751
4748
|
bn,
|
|
4752
4749
|
s,
|
|
@@ -4761,7 +4758,7 @@ const li = () => {
|
|
|
4761
4758
|
Wt,
|
|
4762
4759
|
nt,
|
|
4763
4760
|
In,
|
|
4764
|
-
|
|
4761
|
+
Z,
|
|
4765
4762
|
Pe,
|
|
4766
4763
|
ae,
|
|
4767
4764
|
Ve,
|
|
@@ -4771,24 +4768,24 @@ const li = () => {
|
|
|
4771
4768
|
re
|
|
4772
4769
|
]), On = ci({
|
|
4773
4770
|
actionLabels: p?.actionLabels,
|
|
4774
|
-
onDuplicate: (
|
|
4775
|
-
onCopy: (
|
|
4776
|
-
|
|
4771
|
+
onDuplicate: (x) => W([x]),
|
|
4772
|
+
onCopy: (x) => {
|
|
4773
|
+
Te([x]), fe(ge.Copy);
|
|
4777
4774
|
},
|
|
4778
|
-
onMove: (
|
|
4779
|
-
|
|
4775
|
+
onMove: (x) => {
|
|
4776
|
+
xe([x]), fe(ge.Move);
|
|
4780
4777
|
},
|
|
4781
|
-
onDownload: (
|
|
4778
|
+
onDownload: (x) => Oe([x]),
|
|
4782
4779
|
onRename: lo,
|
|
4783
|
-
onDelete: (
|
|
4784
|
-
onInfo: (
|
|
4785
|
-
onUnshare: (
|
|
4786
|
-
onRemoveAccess: (
|
|
4780
|
+
onDelete: (x, ee) => Se([x], ee),
|
|
4781
|
+
onInfo: (x) => de(x),
|
|
4782
|
+
onUnshare: (x) => et?.([x]),
|
|
4783
|
+
onRemoveAccess: (x) => gt?.([x]),
|
|
4787
4784
|
sharedWithMeIds: vt,
|
|
4788
4785
|
sharedByMePaths: b,
|
|
4789
|
-
onManagePermissions: (
|
|
4790
|
-
onPreview: (
|
|
4791
|
-
onOpenInNewTab: (
|
|
4786
|
+
onManagePermissions: (x) => yt?.(x),
|
|
4787
|
+
onPreview: (x) => oo?.(x),
|
|
4788
|
+
onOpenInNewTab: (x) => ao?.(x),
|
|
4792
4789
|
previewExtensions: ro,
|
|
4793
4790
|
isRenameFileAvailable: so,
|
|
4794
4791
|
isDuplicateFolderAvailable: io,
|
|
@@ -4796,18 +4793,18 @@ const li = () => {
|
|
|
4796
4793
|
onGridCreateSiblingFolder: co,
|
|
4797
4794
|
onGridCreateChildFolder: uo
|
|
4798
4795
|
}), Gt = d(
|
|
4799
|
-
(
|
|
4800
|
-
const ee = Ke(s,
|
|
4796
|
+
(x) => {
|
|
4797
|
+
const ee = Ke(s, x.path);
|
|
4801
4798
|
return ee ? On(ee) : [];
|
|
4802
4799
|
},
|
|
4803
4800
|
[s, On]
|
|
4804
|
-
),
|
|
4805
|
-
(
|
|
4806
|
-
[
|
|
4807
|
-
), { actionsColumnDef:
|
|
4801
|
+
), xo = d(
|
|
4802
|
+
(x, ee, ie) => Dt ? !1 : Nt(x, ee, ie),
|
|
4803
|
+
[Dt, Nt]
|
|
4804
|
+
), { actionsColumnDef: Do } = es({
|
|
4808
4805
|
getContextMenuItems: Gt,
|
|
4809
|
-
isRowDisabled:
|
|
4810
|
-
allowedFileTypes:
|
|
4806
|
+
isRowDisabled: xo,
|
|
4807
|
+
allowedFileTypes: D,
|
|
4811
4808
|
buttonClassName: ze ? "" : $r
|
|
4812
4809
|
}), { columnDefs: Vt } = ii({
|
|
4813
4810
|
userColumnDefs: po,
|
|
@@ -4817,19 +4814,19 @@ const li = () => {
|
|
|
4817
4814
|
effectiveVisibleColumns: vo,
|
|
4818
4815
|
isCompactView: ze,
|
|
4819
4816
|
hasActions: !!p?.actionLabels,
|
|
4820
|
-
actionsColumnDef:
|
|
4817
|
+
actionsColumnDef: Do,
|
|
4821
4818
|
rootItemLabel: a?.label,
|
|
4822
4819
|
rootItemPath: a?.path
|
|
4823
4820
|
}), Ln = d(
|
|
4824
|
-
(
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
) ||
|
|
4821
|
+
(x) => {
|
|
4822
|
+
x.colDef.colId === "ag-Grid-SelectionColumn" || x.colDef.colId === ye.Actions || Z && x.data?.path === Z || x.data?.isTemporary || Lt && Lt.includes(
|
|
4823
|
+
x.colDef.colId
|
|
4824
|
+
) || x.data && J(x.data);
|
|
4828
4825
|
},
|
|
4829
|
-
[
|
|
4826
|
+
[Z, J, Lt]
|
|
4830
4827
|
), dt = d(
|
|
4831
4828
|
() => /* @__PURE__ */ o(
|
|
4832
|
-
|
|
4829
|
+
xa,
|
|
4833
4830
|
{
|
|
4834
4831
|
title: vn,
|
|
4835
4832
|
description: yn,
|
|
@@ -4847,7 +4844,7 @@ const li = () => {
|
|
|
4847
4844
|
}
|
|
4848
4845
|
),
|
|
4849
4846
|
[yn, lt, vn]
|
|
4850
|
-
), zn = $(() => (
|
|
4847
|
+
), zn = $(() => (x) => x.path, []), _n = $(
|
|
4851
4848
|
() => on(
|
|
4852
4849
|
"min-h-[248px] overflow-auto md:min-h-[266px]",
|
|
4853
4850
|
st ? "border border-dashed border-info" : "",
|
|
@@ -4875,7 +4872,7 @@ const li = () => {
|
|
|
4875
4872
|
renameTriggerView: nt,
|
|
4876
4873
|
validateFolderName: fn,
|
|
4877
4874
|
renamedItem: me,
|
|
4878
|
-
renamedPath:
|
|
4875
|
+
renamedPath: Z,
|
|
4879
4876
|
createdFolderPath: $e,
|
|
4880
4877
|
newFolderTempId: pn,
|
|
4881
4878
|
sharedByMePaths: b,
|
|
@@ -4901,7 +4898,7 @@ const li = () => {
|
|
|
4901
4898
|
nt,
|
|
4902
4899
|
fn,
|
|
4903
4900
|
me,
|
|
4904
|
-
|
|
4901
|
+
Z,
|
|
4905
4902
|
$e,
|
|
4906
4903
|
pn,
|
|
4907
4904
|
b,
|
|
@@ -4913,7 +4910,7 @@ const li = () => {
|
|
|
4913
4910
|
re,
|
|
4914
4911
|
n
|
|
4915
4912
|
]
|
|
4916
|
-
),
|
|
4913
|
+
), No = $(
|
|
4917
4914
|
() => S.length === 0 && !tt && !n ? dt() : /* @__PURE__ */ o(
|
|
4918
4915
|
ga,
|
|
4919
4916
|
{
|
|
@@ -4933,7 +4930,7 @@ const li = () => {
|
|
|
4933
4930
|
onSelectionChange: Ht,
|
|
4934
4931
|
wrapperBorder: !st && !ft,
|
|
4935
4932
|
disabledRowIds: ct,
|
|
4936
|
-
allowDisabledContextMenu:
|
|
4933
|
+
allowDisabledContextMenu: Dt
|
|
4937
4934
|
}
|
|
4938
4935
|
),
|
|
4939
4936
|
[
|
|
@@ -4957,10 +4954,10 @@ const li = () => {
|
|
|
4957
4954
|
st,
|
|
4958
4955
|
ft,
|
|
4959
4956
|
ct,
|
|
4960
|
-
|
|
4957
|
+
Dt
|
|
4961
4958
|
]
|
|
4962
4959
|
);
|
|
4963
|
-
return /* @__PURE__ */ o("section", { ref: go, className: "size-full", children: /* @__PURE__ */
|
|
4960
|
+
return /* @__PURE__ */ o("section", { ref: go, className: "size-full", children: /* @__PURE__ */ X(
|
|
4964
4961
|
"div",
|
|
4965
4962
|
{
|
|
4966
4963
|
className: Ee(
|
|
@@ -4974,9 +4971,9 @@ const li = () => {
|
|
|
4974
4971
|
),
|
|
4975
4972
|
children: [
|
|
4976
4973
|
yo(),
|
|
4977
|
-
/* @__PURE__ */
|
|
4974
|
+
/* @__PURE__ */ X("div", { className: Ee(Hr, Ot), children: [
|
|
4978
4975
|
wo(),
|
|
4979
|
-
/* @__PURE__ */
|
|
4976
|
+
/* @__PURE__ */ X(
|
|
4980
4977
|
"div",
|
|
4981
4978
|
{
|
|
4982
4979
|
className: Ee(Ur, {
|
|
@@ -4987,7 +4984,7 @@ const li = () => {
|
|
|
4987
4984
|
$s,
|
|
4988
4985
|
{
|
|
4989
4986
|
...i ?? {},
|
|
4990
|
-
makeHref: (
|
|
4987
|
+
makeHref: (x) => x.join("/"),
|
|
4991
4988
|
path: I,
|
|
4992
4989
|
onItemClick: B,
|
|
4993
4990
|
rootItemPath: a?.path,
|
|
@@ -4998,7 +4995,7 @@ const li = () => {
|
|
|
4998
4995
|
labelClassName: "dial-tiny-text"
|
|
4999
4996
|
}
|
|
5000
4997
|
),
|
|
5001
|
-
/* @__PURE__ */
|
|
4998
|
+
/* @__PURE__ */ X(
|
|
5002
4999
|
"section",
|
|
5003
5000
|
{
|
|
5004
5001
|
role: "region",
|
|
@@ -5009,7 +5006,7 @@ const li = () => {
|
|
|
5009
5006
|
onDragOver: qn,
|
|
5010
5007
|
onDrop: mt,
|
|
5011
5008
|
children: [
|
|
5012
|
-
|
|
5009
|
+
No,
|
|
5013
5010
|
/* @__PURE__ */ o(
|
|
5014
5011
|
Os,
|
|
5015
5012
|
{
|
|
@@ -5017,7 +5014,7 @@ const li = () => {
|
|
|
5017
5014
|
gridRows: S,
|
|
5018
5015
|
getDisabledTooltip: kt,
|
|
5019
5016
|
getRowDisabledTooltip: Bt,
|
|
5020
|
-
allowedFileTypes:
|
|
5017
|
+
allowedFileTypes: D,
|
|
5021
5018
|
maxSelectableFileSize: h
|
|
5022
5019
|
}
|
|
5023
5020
|
)
|
|
@@ -5042,18 +5039,18 @@ const li = () => {
|
|
|
5042
5039
|
Ls,
|
|
5043
5040
|
{
|
|
5044
5041
|
...u,
|
|
5045
|
-
open:
|
|
5042
|
+
open: Ne,
|
|
5046
5043
|
onClose: we,
|
|
5047
5044
|
onConfirm: () => {
|
|
5048
|
-
const
|
|
5049
|
-
ue === ge.Copy ? be(
|
|
5045
|
+
const x = u?.destinationFolderPath ?? "/";
|
|
5046
|
+
ue === ge.Copy ? be(x) : De(x), we();
|
|
5050
5047
|
},
|
|
5051
5048
|
mode: ue,
|
|
5052
5049
|
items: s,
|
|
5053
5050
|
rootItem: a,
|
|
5054
5051
|
gridOptions: {
|
|
5055
5052
|
columnDefs: Vt.filter(
|
|
5056
|
-
(
|
|
5053
|
+
(x) => x.colId !== ye.Actions
|
|
5057
5054
|
),
|
|
5058
5055
|
loading: n
|
|
5059
5056
|
},
|
|
@@ -5061,14 +5058,14 @@ const li = () => {
|
|
|
5061
5058
|
onValidateUpload: St,
|
|
5062
5059
|
maxFileSize: Yn,
|
|
5063
5060
|
path: u?.destinationFolderPath ?? u?.sourceFolder ?? I,
|
|
5064
|
-
onPathChange: (
|
|
5065
|
-
u?.setDestinationFolderPath?.(
|
|
5061
|
+
onPathChange: (x) => {
|
|
5062
|
+
u?.setDestinationFolderPath?.(x);
|
|
5066
5063
|
},
|
|
5067
5064
|
sourceFolder: u?.sourceFolder ?? I,
|
|
5068
5065
|
treeOptions: { header: r?.header },
|
|
5069
5066
|
onFolderPopupPathChange: no,
|
|
5070
5067
|
showHiddenFileSwitcher: le,
|
|
5071
|
-
showCreateFolderButton:
|
|
5068
|
+
showCreateFolderButton: xn,
|
|
5072
5069
|
hideSearchPathItemName: zt
|
|
5073
5070
|
}
|
|
5074
5071
|
),
|