@epam/ai-dial-react-file-manager 0.1.0-dev.18 → 0.1.0-dev.21
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,22 +1,22 @@
|
|
|
1
1
|
import { jsx as o, jsxs as X, Fragment as Ie } from "react/jsx-runtime";
|
|
2
|
-
import { IconCircleFilled as
|
|
3
|
-
import
|
|
2
|
+
import { IconCircleFilled as Un, IconChevronDown as Ja, IconDotsVertical as ln, IconFolder as pa, IconPlus as er, IconFile as tr, IconFileZip as nr, IconCopyMinus as or, IconFolderPlus as Qo, IconEye as So, IconX as ar, IconArrowLeft as rr, IconEyeOff as sr, IconAlertCircleFilled as ir, IconAlertTriangleFilled as lr, IconCaretRightFilled as cr, IconUserX as Ao, IconCopy as Po, IconTrashX as Mo, IconDownload as ko, IconExternalLink as Fo, IconPencilMinus as fa, IconInfoCircle as dr, IconFileDescription as ur } from "@tabler/icons-react";
|
|
3
|
+
import an from "classnames";
|
|
4
4
|
import * as Ge from "react";
|
|
5
|
-
import { useState as z, useMemo as $, useCallback as d, useRef as ce, useEffect as pe, createContext as
|
|
6
|
-
import { DialFolderName as
|
|
7
|
-
import { extensions as
|
|
5
|
+
import { useState as z, useMemo as $, useCallback as d, useRef as ce, useEffect as pe, createContext as hr, useLayoutEffect as pr, useContext as fr, useImperativeHandle as mr } from "react";
|
|
6
|
+
import { DialFolderName as Oo, DialFileName as Lo, Dropdown as ht, DropdownTrigger as ma, DIAL_ICON_SIZE as zo, DialGrid as Ca, Popup as _o, PopupSize as Gn, DialRadioGroup as Jo, RadioGroupOrientation as ea, NeutralButton as rn, PrimaryButton as on, GhostIconButton as Et, BASE_ICON_PROPS as M, mergeClasses as Ee, NotificationVariant as Eo, ElementSize as jn, NOT_ALLOWED_SYMBOLS_REGEXP as Cr, DialTooltipContainer as gr, DialTooltipTrigger as vr, DialTooltipContent as yr, Notification as wr, ButtonAppearance as ga, DialSwitch as va, DialTooltip as Vn, FlexibleActionsDirection as tn, BASE_ICON_SIZE as ya, ConfirmationPopup as Nr, ConfirmationPopupVariant as Dr, DialBreadcrumb as xr, DialSearch as br, ButtonVariant as Tr, DialTabs as Rr, ScreenResolution as Ir, ButtonDropdown as ta, Skeleton as qt, SkeletonVariant as Yt, DialEllipsisTooltip as Tt, DialItemType as We, DialFileIcon as Fr, DialSharedEntityIndicator as na, DialIcon as Er, Spinner as Sr, editableContainerProps as Ar, Input as Pr, useEditableItem as Mr, DialNoDataContent as wa, DialDateCellRenderer as Na, convertGridDateToDate as kr, DEFAULT_GRID_DATE_LOCALE as Or, DEFAULT_GRID_DATE_FORMAT_OPTIONS as Lr, DropdownItemType as Da, DialConditionalResizableContainer as zr, DialCollapsibleSidebar as _r } from "@epam/ai-dial-ui-kit";
|
|
7
|
+
import { extensions as oa } from "mime-types";
|
|
8
8
|
import { createPortal as Br } from "react-dom";
|
|
9
|
-
const
|
|
10
|
-
var
|
|
11
|
-
const Wr = "w-full h-full grid grid-rows-[auto_1fr] gap-5 p-6 overflow-hidden min-w-0 bg-layer-1",
|
|
9
|
+
const xa = (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" })), 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", { 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" })), Bo = (e) => /* @__PURE__ */ Ge.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Ge.createElement("path", { d: "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" })), 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: "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" })), 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: "M4.5 15.75V14.25C4.5 13.4544 4.81607 12.6913 5.37868 12.1287C5.94129 11.5661 6.70435 11.25 7.5 11.25H9.75M15.75 12.75L12 16.5M12 16.5V13.125M12 16.5H15.375M6 5.25C6 6.04565 6.31607 6.80871 6.87868 7.37132C7.44129 7.93393 8.20435 8.25 9 8.25C9.79565 8.25 10.5587 7.93393 11.1213 7.37132C11.6839 6.80871 12 6.04565 12 5.25C12 4.45435 11.6839 3.69129 11.1213 3.12868C10.5587 2.56607 9.79565 2.25 9 2.25C8.20435 2.25 7.44129 2.56607 6.87868 3.12868C6.31607 3.69129 6 4.45435 6 5.25Z", stroke: "#7F8792", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
10
|
+
var nn = /* @__PURE__ */ ((e) => (e.MyFiles = "my_files", e.Shared = "shared", e.Organization = "organization", e.Review = "review", e))(nn || {}), w = /* @__PURE__ */ ((e) => (e.AddSibling = "addSibling", e.AddChild = "addChild", e.Duplicate = "duplicate", e.Copy = "copy", e.Move = "move", e.Download = "download", e.Delete = "delete", e.Rename = "rename", e.Info = "info", e.Unshare = "unshare", e.RemoveAccess = "removeAccess", e.ManagePermissions = "managePermissions", e.Preview = "preview", e.OpenInNewTab = "openInNewTab", e))(w || {}), Ce = /* @__PURE__ */ ((e) => (e.Replace = "replace", e.Duplicate = "duplicate", e.Cancel = "cancel", e))(Ce || {}), ke = /* @__PURE__ */ ((e) => (e.ReplaceAll = "replaceAll", e.DuplicateAll = "duplicateAll", e.DecideForEach = "decideForEach", e))(ke || {}), ge = /* @__PURE__ */ ((e) => (e.Copy = "copy", e.Move = "move", e))(ge || {}), Rt = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(Rt || {}), ut = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(ut || {}), Be = /* @__PURE__ */ ((e) => (e.Folder = "folder", e.Child = "child", e.Sibling = "sibling", e))(Be || {}), ye = /* @__PURE__ */ ((e) => (e.Name = "name", e.UpdatedAt = "updatedAt", e.Size = "size", e.Author = "author", e.Owner = "owner", e.Path = "path", e.Actions = "__actions", e.Version = "version", e))(ye || {});
|
|
11
|
+
const Wr = "w-full h-full grid grid-rows-[auto_1fr] gap-5 p-6 overflow-hidden min-w-0 bg-layer-1", aa = "w-full text-secondary flex items-center gap-2", Hr = "flex min-h-0 min-w-0 h-full gap-4 overflow-hidden", Ur = "flex flex-col flex-1 min-h-0 min-w-0 h-full gap-4", Gr = "h-full rounded bg-layer-raised text-secondary min-w-0", Vr = "flex-1 w-full rounded text-secondary overflow-auto min-h-0 min-w-0", $r = "opacity-0 pointer-events-none group-hover/grid-row:opacity-100 group-hover/grid-row:pointer-events-auto", jr = 280, Zr = "Files", rt = 20, Xr = "Files", Ro = ".dial_folder", ra = "New folder", qr = 280, Yr = 460, sa = 44, Kr = 800, Qr = [
|
|
12
12
|
ye.Name,
|
|
13
13
|
ye.UpdatedAt,
|
|
14
14
|
ye.Size,
|
|
15
15
|
ye.Author,
|
|
16
16
|
ye.Actions
|
|
17
17
|
];
|
|
18
|
-
var O = /* @__PURE__ */ ((e) => (e.ITEM = "item", e.FOLDER = "folder", e))(O || {}), Jr = /* @__PURE__ */ ((e) => (e.FILE = "FILE", e.PROMPT = "PROMPT", e.CONVERSATION = "CONVERSATION", e.APPLICATION = "APPLICATION", e.TOOLSET = "TOOL_SET", e))(Jr || {}),
|
|
19
|
-
const
|
|
18
|
+
var O = /* @__PURE__ */ ((e) => (e.ITEM = "item", e.FOLDER = "folder", e))(O || {}), Jr = /* @__PURE__ */ ((e) => (e.FILE = "FILE", e.PROMPT = "PROMPT", e.CONVERSATION = "CONVERSATION", e.APPLICATION = "APPLICATION", e.TOOLSET = "TOOL_SET", e))(Jr || {}), St = /* @__PURE__ */ ((e) => (e.READ = "READ", e.WRITE = "WRITE", e.SHARE = "SHARE", e))(St || {});
|
|
19
|
+
const ia = ({
|
|
20
20
|
open: e,
|
|
21
21
|
onClose: t,
|
|
22
22
|
onReplace: s,
|
|
@@ -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 : "", D = C?.[Ce.Replace] ?? "Replace", h = C?.[Ce.Duplicate] ?? "Duplicate", f = C?.[Ce.Cancel] ?? "Cancel", T = c?.[ke.ReplaceAll] ?? "Replace all",
|
|
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", x = c?.[ke.DuplicateAll] ?? "Duplicate all", F = c?.[ke.DecideForEach] ?? "Decide for each", [I, S] = z(
|
|
37
37
|
Ce.Replace
|
|
38
38
|
), [A, _] = z(
|
|
39
39
|
ke.ReplaceAll
|
|
@@ -46,7 +46,7 @@ const la = ({
|
|
|
46
46
|
)
|
|
47
47
|
), [k, B] = z(
|
|
48
48
|
void 0
|
|
49
|
-
), L = m ? l : i,
|
|
49
|
+
), L = m ? l : i, q = /* @__PURE__ */ X(Ie, { children: [
|
|
50
50
|
"Item with the name ",
|
|
51
51
|
/* @__PURE__ */ X("span", { className: "text-primary", children: [
|
|
52
52
|
'"',
|
|
@@ -55,7 +55,7 @@ const la = ({
|
|
|
55
55
|
] }),
|
|
56
56
|
" ",
|
|
57
57
|
"already exists in this destination."
|
|
58
|
-
] }), J = `${r.length} items with the same names already exist in this destination.`, j = p ?? (m ?
|
|
58
|
+
] }), J = `${r.length} items with the same names already exist in this destination.`, j = p ?? (m ? q : J), te = $(
|
|
59
59
|
() => [
|
|
60
60
|
{
|
|
61
61
|
id: Ce.Replace,
|
|
@@ -83,13 +83,13 @@ const la = ({
|
|
|
83
83
|
filter: !1,
|
|
84
84
|
resizable: !1,
|
|
85
85
|
cellRenderer: (W) => W.data?.nodeType === O.FOLDER ? /* @__PURE__ */ o(
|
|
86
|
-
|
|
86
|
+
Oo,
|
|
87
87
|
{
|
|
88
88
|
name: W.data.name,
|
|
89
89
|
iconSize: rt
|
|
90
90
|
}
|
|
91
91
|
) : /* @__PURE__ */ o(
|
|
92
|
-
|
|
92
|
+
Lo,
|
|
93
93
|
{
|
|
94
94
|
name: W.data.name,
|
|
95
95
|
iconSize: rt
|
|
@@ -111,17 +111,17 @@ const la = ({
|
|
|
111
111
|
{
|
|
112
112
|
key: Ce.Replace,
|
|
113
113
|
label: D,
|
|
114
|
-
icon: /* @__PURE__ */ o(
|
|
114
|
+
icon: /* @__PURE__ */ o(Un, { size: 10, className: "text-accent-tertiary" })
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
key: Ce.Duplicate,
|
|
118
118
|
label: h,
|
|
119
|
-
icon: /* @__PURE__ */ o(
|
|
119
|
+
icon: /* @__PURE__ */ o(Un, { size: 10, className: "text-accent-secondary" })
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
122
|
key: Ce.Cancel,
|
|
123
123
|
label: f,
|
|
124
|
-
icon: /* @__PURE__ */ o(
|
|
124
|
+
icon: /* @__PURE__ */ o(Un, { size: 10, className: "text-error" })
|
|
125
125
|
}
|
|
126
126
|
], De = be.find(
|
|
127
127
|
(ne) => ne.key === W.data.action
|
|
@@ -129,7 +129,7 @@ const la = ({
|
|
|
129
129
|
return /* @__PURE__ */ o("div", { className: "flex items-center h-full", children: /* @__PURE__ */ o(
|
|
130
130
|
ht,
|
|
131
131
|
{
|
|
132
|
-
trigger: [
|
|
132
|
+
trigger: [ma.Click],
|
|
133
133
|
open: G,
|
|
134
134
|
items: be,
|
|
135
135
|
onItemClick: ({ key: ne }) => {
|
|
@@ -153,10 +153,10 @@ const la = ({
|
|
|
153
153
|
De?.label ?? D
|
|
154
154
|
] }),
|
|
155
155
|
/* @__PURE__ */ o(
|
|
156
|
-
|
|
156
|
+
Ja,
|
|
157
157
|
{
|
|
158
|
-
size:
|
|
159
|
-
className:
|
|
158
|
+
size: zo.SM,
|
|
159
|
+
className: an(
|
|
160
160
|
"text-secondary transition-transform",
|
|
161
161
|
G && "rotate-180"
|
|
162
162
|
)
|
|
@@ -174,7 +174,7 @@ const la = ({
|
|
|
174
174
|
h,
|
|
175
175
|
f,
|
|
176
176
|
k
|
|
177
|
-
]),
|
|
177
|
+
]), xe = $(
|
|
178
178
|
() => [
|
|
179
179
|
{
|
|
180
180
|
id: ke.ReplaceAll,
|
|
@@ -182,13 +182,13 @@ const la = ({
|
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
id: ke.DuplicateAll,
|
|
185
|
-
name:
|
|
185
|
+
name: x
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
188
|
id: ke.DecideForEach,
|
|
189
189
|
name: F,
|
|
190
190
|
content: A === ke.DecideForEach ? /* @__PURE__ */ o("div", { className: "mt-4", children: /* @__PURE__ */ o(
|
|
191
|
-
|
|
191
|
+
Ca,
|
|
192
192
|
{
|
|
193
193
|
columnDefs: we,
|
|
194
194
|
rowData: fe,
|
|
@@ -204,7 +204,7 @@ const la = ({
|
|
|
204
204
|
],
|
|
205
205
|
[
|
|
206
206
|
T,
|
|
207
|
-
|
|
207
|
+
x,
|
|
208
208
|
F,
|
|
209
209
|
A,
|
|
210
210
|
we,
|
|
@@ -221,7 +221,7 @@ const la = ({
|
|
|
221
221
|
);
|
|
222
222
|
}, [r]), Te = d(() => {
|
|
223
223
|
ue(), t();
|
|
224
|
-
}, [ue, t]),
|
|
224
|
+
}, [ue, t]), Ne = d(() => {
|
|
225
225
|
if (ue(), m)
|
|
226
226
|
I === Ce.Replace ? s() : a();
|
|
227
227
|
else if (A === ke.ReplaceAll)
|
|
@@ -249,37 +249,36 @@ const la = ({
|
|
|
249
249
|
U
|
|
250
250
|
]);
|
|
251
251
|
return /* @__PURE__ */ o(
|
|
252
|
-
|
|
252
|
+
_o,
|
|
253
253
|
{
|
|
254
254
|
open: e,
|
|
255
255
|
onClose: Te,
|
|
256
|
-
size: m ?
|
|
257
|
-
className:
|
|
256
|
+
size: m ? Gn.Sm : Gn.Md,
|
|
257
|
+
className: an([!m && "w-[600px]"]),
|
|
258
258
|
header: L,
|
|
259
|
-
dividers: !1,
|
|
260
259
|
preventKeyboardOnOpen: !0,
|
|
261
260
|
footer: /* @__PURE__ */ X("div", { className: "flex justify-end gap-3 py-4 px-6 border-t border-tertiary", children: [
|
|
262
|
-
/* @__PURE__ */ o(
|
|
263
|
-
/* @__PURE__ */ o(
|
|
261
|
+
/* @__PURE__ */ o(rn, { onClick: Te, label: u }),
|
|
262
|
+
/* @__PURE__ */ o(on, { onClick: Ne, label: v })
|
|
264
263
|
] }),
|
|
265
264
|
children: /* @__PURE__ */ X("div", { className: "px-6 py-4", children: [
|
|
266
265
|
/* @__PURE__ */ o("p", { className: "text-secondary mb-4 break-words", children: j }),
|
|
267
266
|
m ? /* @__PURE__ */ o(
|
|
268
|
-
|
|
267
|
+
Jo,
|
|
269
268
|
{
|
|
270
269
|
elementId: "single-file-conflict",
|
|
271
270
|
radioButtons: te,
|
|
272
271
|
activeRadioButton: I,
|
|
273
|
-
orientation:
|
|
272
|
+
orientation: ea.Column,
|
|
274
273
|
onChange: (W) => S(W)
|
|
275
274
|
}
|
|
276
275
|
) : /* @__PURE__ */ o(
|
|
277
|
-
|
|
276
|
+
Jo,
|
|
278
277
|
{
|
|
279
278
|
elementId: "multiple-files-conflict",
|
|
280
|
-
radioButtons:
|
|
279
|
+
radioButtons: xe,
|
|
281
280
|
activeRadioButton: A,
|
|
282
|
-
orientation:
|
|
281
|
+
orientation: ea.Column,
|
|
283
282
|
onChange: (W) => _(W),
|
|
284
283
|
formItemChildrenClassName: "gap-3"
|
|
285
284
|
}
|
|
@@ -313,13 +312,7 @@ const la = ({
|
|
|
313
312
|
allowedPlacements: ["top-start", "top-end", "bottom-start"],
|
|
314
313
|
items: c,
|
|
315
314
|
className: Ee("sticky right-0", n),
|
|
316
|
-
children: /* @__PURE__ */ o(
|
|
317
|
-
_o,
|
|
318
|
-
{
|
|
319
|
-
className: "text-secondary mx-2 flex flex-row gap-2 hover:text-accent cursor-default",
|
|
320
|
-
icon: /* @__PURE__ */ o(sn, { ...M })
|
|
321
|
-
}
|
|
322
|
-
)
|
|
315
|
+
children: /* @__PURE__ */ o(Et, { icon: /* @__PURE__ */ o(ln, { ...M }) })
|
|
323
316
|
}
|
|
324
317
|
) : null;
|
|
325
318
|
},
|
|
@@ -397,7 +390,7 @@ const Ke = (e, t) => {
|
|
|
397
390
|
t.push(r), r.nodeType === O.FOLDER && s(r);
|
|
398
391
|
};
|
|
399
392
|
return s(e), t;
|
|
400
|
-
},
|
|
393
|
+
}, Ta = (e) => (e.name ?? e.path.split("/").pop() ?? "").startsWith("."), sn = (e) => {
|
|
401
394
|
if (!e) return "0 bytes";
|
|
402
395
|
const t = 1024, s = t * 1024;
|
|
403
396
|
return e >= s ? `${(e / s).toFixed(1)} MB` : e >= t ? `${(e / t).toFixed(0)} KB` : `${e} bytes`;
|
|
@@ -413,7 +406,7 @@ const Ke = (e, t) => {
|
|
|
413
406
|
return e;
|
|
414
407
|
}
|
|
415
408
|
};
|
|
416
|
-
function
|
|
409
|
+
function Uo(e, t, s) {
|
|
417
410
|
if (!e || e.includes("*/*"))
|
|
418
411
|
return !0;
|
|
419
412
|
const a = t.toLowerCase(), n = s && s.includes(".") ? `.${s.split(".").at(-1).toLowerCase()}` : void 0;
|
|
@@ -430,17 +423,17 @@ function Go(e, t, s) {
|
|
|
430
423
|
}
|
|
431
424
|
const is = (e) => e?.map((t) => t.endsWith("/*") ? t.replace("/*", "s") : ls(t).flat().map((s) => `.${s}`)).flat().join(", ") || "", ls = (e) => {
|
|
432
425
|
const [t, s] = e.split("/");
|
|
433
|
-
return t === "*" ? ["all"] : s === "*" ? Object.entries(
|
|
426
|
+
return t === "*" ? ["all"] : s === "*" ? Object.entries(oa).reduce((a, [n, r]) => {
|
|
434
427
|
const [l] = n.split("/");
|
|
435
428
|
return l === t && a.push(...r), a;
|
|
436
|
-
}, []) :
|
|
437
|
-
},
|
|
429
|
+
}, []) : oa[e] || [];
|
|
430
|
+
}, Zn = (e) => {
|
|
438
431
|
if (!e) return;
|
|
439
432
|
const t = e.flags.replace(/[gy]/g, "");
|
|
440
433
|
return new RegExp(e.source, t);
|
|
441
434
|
};
|
|
442
|
-
function
|
|
443
|
-
if (t &&
|
|
435
|
+
function Go(e, t, s) {
|
|
436
|
+
if (t && Zn(t)?.test(e.name))
|
|
444
437
|
return s ?? `This ${e.isFolder ? "folder" : "file"} contains forbidden characters in its name. Please rename it.`;
|
|
445
438
|
}
|
|
446
439
|
const cs = (e) => {
|
|
@@ -450,17 +443,17 @@ const cs = (e) => {
|
|
|
450
443
|
name: e.slice(t + 1)
|
|
451
444
|
} : { parent: "", name: e };
|
|
452
445
|
}, ds = (e, t, s) => {
|
|
453
|
-
const a = !e.contentLength || s == null || e.contentLength <= s, n = !e.contentType ||
|
|
446
|
+
const a = !e.contentLength || s == null || e.contentLength <= s, n = !e.contentType || Uo(t, e.contentType, e.name);
|
|
454
447
|
return a && n;
|
|
455
448
|
}, us = (e, t, s, a, n) => {
|
|
456
449
|
if (e.nodeType === O.FOLDER) return;
|
|
457
450
|
const r = !e.contentLength || s == null || e.contentLength <= s;
|
|
458
|
-
if (!(!e.contentType ||
|
|
451
|
+
if (!(!e.contentType || Uo(t, e.contentType, e.name)))
|
|
459
452
|
return a ?? (t?.length ? `Unsupported file type. Supported types: ${is(t)}.` : "Unsupported file type.");
|
|
460
453
|
if (!r)
|
|
461
|
-
return n ?? `File is too large. Maximum size: ${
|
|
462
|
-
}, hs = (e) => e.replace(/\/+$/, "").split("/").filter(Boolean).length,
|
|
463
|
-
const t = `${
|
|
454
|
+
return n ?? `File is too large. Maximum size: ${sn(s)}.`;
|
|
455
|
+
}, hs = (e) => e.replace(/\/+$/, "").split("/").filter(Boolean).length, Kt = (e) => {
|
|
456
|
+
const t = `${ra} `, s = new RegExp(`^${ra} (\\d+)$`), a = new Set(
|
|
464
457
|
e.map((i) => i.name.toLowerCase())
|
|
465
458
|
), n = e.map((i) => {
|
|
466
459
|
const p = i.name.match(s);
|
|
@@ -502,7 +495,7 @@ const cs = (e) => {
|
|
|
502
495
|
toggleTreeCollapse: l,
|
|
503
496
|
setIsTreeCollapsed: r
|
|
504
497
|
};
|
|
505
|
-
},
|
|
498
|
+
}, la = (e, t, s) => {
|
|
506
499
|
if (!t.has(e))
|
|
507
500
|
return e;
|
|
508
501
|
const a = s === O.FOLDER ? (n, r) => `${n} (${r})` : (n, r) => {
|
|
@@ -513,7 +506,7 @@ const cs = (e) => {
|
|
|
513
506
|
const r = a(e, n);
|
|
514
507
|
if (!t.has(r)) return r;
|
|
515
508
|
}
|
|
516
|
-
},
|
|
509
|
+
}, Io = (e) => e.name, Ra = ({
|
|
517
510
|
getDestinationFiles: e,
|
|
518
511
|
onResolve: t
|
|
519
512
|
}) => {
|
|
@@ -523,7 +516,7 @@ const cs = (e) => {
|
|
|
523
516
|
p.current = !1, r(!1), a([]), i(null);
|
|
524
517
|
}, []), v = d(
|
|
525
518
|
(f, T) => {
|
|
526
|
-
const
|
|
519
|
+
const x = e(f), F = new Set(x.map(Io)), I = T.filter((S) => F.has(S.name));
|
|
527
520
|
return {
|
|
528
521
|
hasConflicts: I.length > 0,
|
|
529
522
|
conflicts: I
|
|
@@ -531,14 +524,14 @@ const cs = (e) => {
|
|
|
531
524
|
},
|
|
532
525
|
[e]
|
|
533
526
|
), u = d(
|
|
534
|
-
(f, T,
|
|
535
|
-
const I = e(f), S = new Set(I.map(
|
|
527
|
+
(f, T, x, F) => {
|
|
528
|
+
const I = e(f), S = new Set(I.map(Io));
|
|
536
529
|
return T.map((A) => {
|
|
537
|
-
const _ = A.name, U = S.has(_), P =
|
|
538
|
-
return (!
|
|
530
|
+
const _ = A.name, U = S.has(_), P = x && U ? _ : la(_, S, A.nodeType);
|
|
531
|
+
return (!x || !U) && S.add(P), {
|
|
539
532
|
sourceUrl: A.path,
|
|
540
533
|
destinationUrl: `${f}/${P}`,
|
|
541
|
-
overwrite:
|
|
534
|
+
overwrite: x && U,
|
|
542
535
|
nodeType: A.nodeType ?? O.ITEM,
|
|
543
536
|
...F ?? {}
|
|
544
537
|
};
|
|
@@ -546,10 +539,10 @@ const cs = (e) => {
|
|
|
546
539
|
},
|
|
547
540
|
[e]
|
|
548
541
|
), y = d(
|
|
549
|
-
(f, T,
|
|
550
|
-
const I = e(f), S = new Set(I.map(
|
|
551
|
-
return T.filter((_) =>
|
|
552
|
-
const U =
|
|
542
|
+
(f, T, x, F) => {
|
|
543
|
+
const I = e(f), S = new Set(I.map(Io));
|
|
544
|
+
return T.filter((_) => x.get(_.path) !== Ce.Cancel).map((_) => {
|
|
545
|
+
const U = x.get(_.path), P = S.has(_.name), k = U === Ce.Replace && P, B = k ? _.name : la(_.name, S, _.nodeType);
|
|
553
546
|
return k || S.add(B), {
|
|
554
547
|
sourceUrl: _.path,
|
|
555
548
|
destinationUrl: `${f}/${B}`,
|
|
@@ -561,22 +554,22 @@ const cs = (e) => {
|
|
|
561
554
|
},
|
|
562
555
|
[e]
|
|
563
556
|
), g = d(
|
|
564
|
-
(f, T,
|
|
557
|
+
(f, T, x) => {
|
|
565
558
|
const F = v(f, T);
|
|
566
559
|
return F.hasConflicts && (i({
|
|
567
560
|
files: T,
|
|
568
561
|
destinationFolder: f,
|
|
569
|
-
metadata:
|
|
562
|
+
metadata: x
|
|
570
563
|
}), C(F.conflicts)), F;
|
|
571
564
|
},
|
|
572
565
|
[v, C]
|
|
573
566
|
), m = d(() => {
|
|
574
567
|
if (!l) return;
|
|
575
|
-
const { files: f, destinationFolder: T, metadata:
|
|
568
|
+
const { files: f, destinationFolder: T, metadata: x } = l, F = u(
|
|
576
569
|
T,
|
|
577
570
|
f,
|
|
578
571
|
!0,
|
|
579
|
-
|
|
572
|
+
x
|
|
580
573
|
);
|
|
581
574
|
t?.(F, T), c();
|
|
582
575
|
}, [
|
|
@@ -586,11 +579,11 @@ const cs = (e) => {
|
|
|
586
579
|
c
|
|
587
580
|
]), b = d(() => {
|
|
588
581
|
if (!l) return;
|
|
589
|
-
const { files: f, destinationFolder: T, metadata:
|
|
582
|
+
const { files: f, destinationFolder: T, metadata: x } = l, F = u(
|
|
590
583
|
T,
|
|
591
584
|
f,
|
|
592
585
|
!1,
|
|
593
|
-
|
|
586
|
+
x
|
|
594
587
|
);
|
|
595
588
|
t?.(F, T), c();
|
|
596
589
|
}, [
|
|
@@ -600,7 +593,7 @@ const cs = (e) => {
|
|
|
600
593
|
c
|
|
601
594
|
]), D = d(() => {
|
|
602
595
|
if (!l) return;
|
|
603
|
-
const { files: f, destinationFolder: T, metadata:
|
|
596
|
+
const { files: f, destinationFolder: T, metadata: x } = l, F = y(
|
|
604
597
|
T,
|
|
605
598
|
f,
|
|
606
599
|
new Map(
|
|
@@ -609,7 +602,7 @@ const cs = (e) => {
|
|
|
609
602
|
Ce.Cancel
|
|
610
603
|
])
|
|
611
604
|
),
|
|
612
|
-
|
|
605
|
+
x
|
|
613
606
|
);
|
|
614
607
|
t?.(F, T), c();
|
|
615
608
|
}, [
|
|
@@ -621,15 +614,15 @@ const cs = (e) => {
|
|
|
621
614
|
]), h = d(
|
|
622
615
|
(f) => {
|
|
623
616
|
if (!l) return;
|
|
624
|
-
const { files: T, destinationFolder:
|
|
617
|
+
const { files: T, destinationFolder: x, metadata: F } = l, I = new Map(
|
|
625
618
|
f.map((A) => [A.file.path, A.action])
|
|
626
619
|
), S = y(
|
|
627
|
-
|
|
620
|
+
x,
|
|
628
621
|
T,
|
|
629
622
|
I,
|
|
630
623
|
F
|
|
631
624
|
);
|
|
632
|
-
t?.(S,
|
|
625
|
+
t?.(S, x), c();
|
|
633
626
|
},
|
|
634
627
|
[
|
|
635
628
|
l,
|
|
@@ -665,7 +658,7 @@ const cs = (e) => {
|
|
|
665
658
|
}) => {
|
|
666
659
|
const [p, C] = z(!1), [c, v] = z([]), [u, y] = z([]), [g, m] = z(ge.Copy), [b, D] = z(), [h, f] = z(null), {
|
|
667
660
|
conflictingFiles: T,
|
|
668
|
-
conflictResolutionOpen:
|
|
661
|
+
conflictResolutionOpen: x,
|
|
669
662
|
hasActiveConflictRef: F,
|
|
670
663
|
startConflictResolution: I,
|
|
671
664
|
resolveConflictsWithStrategy: S,
|
|
@@ -675,7 +668,7 @@ const cs = (e) => {
|
|
|
675
668
|
handleDuplicateAll: P,
|
|
676
669
|
handleCancelAll: k,
|
|
677
670
|
handleDecideForEach: B
|
|
678
|
-
} =
|
|
671
|
+
} = Ra({
|
|
679
672
|
getDestinationFiles: e,
|
|
680
673
|
onResolve: (G, ne) => {
|
|
681
674
|
G?.length && (h?.type === ge.Copy ? (t?.(G, ne), a?.()) : h?.type === ge.Move && h.sourceFolder && (s?.(
|
|
@@ -686,7 +679,7 @@ const cs = (e) => {
|
|
|
686
679
|
}
|
|
687
680
|
}), L = d(() => {
|
|
688
681
|
v([]), y([]), f(null), D(void 0);
|
|
689
|
-
}, []),
|
|
682
|
+
}, []), q = d(
|
|
690
683
|
(G) => {
|
|
691
684
|
const ne = I(G, c, {
|
|
692
685
|
type: ge.Copy
|
|
@@ -743,7 +736,7 @@ const cs = (e) => {
|
|
|
743
736
|
B(G), L();
|
|
744
737
|
},
|
|
745
738
|
[B, L]
|
|
746
|
-
),
|
|
739
|
+
), xe = d(
|
|
747
740
|
(G) => {
|
|
748
741
|
const ne = G.at(0)?.parentPath ?? "/", he = S(
|
|
749
742
|
ne,
|
|
@@ -760,7 +753,7 @@ const cs = (e) => {
|
|
|
760
753
|
[]
|
|
761
754
|
), Te = d(() => {
|
|
762
755
|
C(!1), F.current || L();
|
|
763
|
-
}, [L, F]), [
|
|
756
|
+
}, [L, F]), [Ne, W] = z(), be = d(
|
|
764
757
|
(G) => {
|
|
765
758
|
v(G);
|
|
766
759
|
const ne = G[0]?.parentPath ?? G[0]?.folderId;
|
|
@@ -779,19 +772,19 @@ const cs = (e) => {
|
|
|
779
772
|
[i]
|
|
780
773
|
);
|
|
781
774
|
return {
|
|
782
|
-
handleDuplicate:
|
|
775
|
+
handleDuplicate: xe,
|
|
783
776
|
handleCloseDestinationFolderPopup: Te,
|
|
784
777
|
handleOpenDestinationFolderPopup: ue,
|
|
785
|
-
handleCopyTo:
|
|
778
|
+
handleCopyTo: q,
|
|
786
779
|
handleMoveTo: J,
|
|
787
780
|
openDestinationFolderPopup: p,
|
|
788
781
|
destinationFolderMode: g,
|
|
789
|
-
destinationFolderTitle:
|
|
782
|
+
destinationFolderTitle: Ne,
|
|
790
783
|
handleSetCopiedFiles: be,
|
|
791
784
|
handleSetMovedFiles: De,
|
|
792
785
|
clearState: L,
|
|
793
786
|
conflictingFiles: T,
|
|
794
|
-
conflictResolutionOpen:
|
|
787
|
+
conflictResolutionOpen: x,
|
|
795
788
|
openConflictResolution: _,
|
|
796
789
|
closeConflictResolution: A,
|
|
797
790
|
handleConflictReplace: j,
|
|
@@ -880,9 +873,9 @@ const cs = (e) => {
|
|
|
880
873
|
uploadEnabled: i = !0,
|
|
881
874
|
currentFolder: p
|
|
882
875
|
} = {}) => {
|
|
883
|
-
const [C, c] = z(!1), [v, u] = z(!1), [y, g] = z(), m = ce(null), b = ce(""), D = ce([]), h = $(() => !!p?.permissions?.includes(
|
|
876
|
+
const [C, c] = z(!1), [v, u] = z(!1), [y, g] = z(), m = ce(null), b = ce(""), D = ce([]), h = $(() => !!p?.permissions?.includes(St.WRITE), [p]), [f, T] = z(/* @__PURE__ */ new Map()), [x, F] = z(null), I = d(
|
|
884
877
|
(R) => !a || a.includes("*/*") ? R : R.filter(
|
|
885
|
-
({ fileContent: H, name: V }) =>
|
|
878
|
+
({ fileContent: H, name: V }) => Uo(a, H.type, V)
|
|
886
879
|
),
|
|
887
880
|
[a]
|
|
888
881
|
), S = d(() => {
|
|
@@ -895,17 +888,17 @@ const cs = (e) => {
|
|
|
895
888
|
closeConflictResolution: k,
|
|
896
889
|
openConflictResolution: B,
|
|
897
890
|
handleReplaceAll: L,
|
|
898
|
-
handleDuplicateAll:
|
|
891
|
+
handleDuplicateAll: q,
|
|
899
892
|
handleCancelAll: J,
|
|
900
893
|
handleDecideForEach: j
|
|
901
|
-
} =
|
|
894
|
+
} = Ra({
|
|
902
895
|
getDestinationFiles: () => D.current,
|
|
903
896
|
onResolve: (R, H) => {
|
|
904
897
|
if (!i || !h) {
|
|
905
898
|
S();
|
|
906
899
|
return;
|
|
907
900
|
}
|
|
908
|
-
if (!
|
|
901
|
+
if (!x) return;
|
|
909
902
|
const V = R.map((Q) => {
|
|
910
903
|
const Z = f.get(Q.sourceUrl);
|
|
911
904
|
if (!Z)
|
|
@@ -1011,13 +1004,13 @@ const cs = (e) => {
|
|
|
1011
1004
|
S,
|
|
1012
1005
|
h
|
|
1013
1006
|
]
|
|
1014
|
-
),
|
|
1007
|
+
), xe = d(() => {
|
|
1015
1008
|
L(), S();
|
|
1016
1009
|
}, [L, S]), ue = d(() => {
|
|
1017
|
-
|
|
1018
|
-
}, [
|
|
1010
|
+
q(), S();
|
|
1011
|
+
}, [q, S]), Te = d(() => {
|
|
1019
1012
|
J(), S();
|
|
1020
|
-
}, [J, S]),
|
|
1013
|
+
}, [J, S]), Ne = d(
|
|
1021
1014
|
(R) => {
|
|
1022
1015
|
j(R), S();
|
|
1023
1016
|
},
|
|
@@ -1202,27 +1195,27 @@ const cs = (e) => {
|
|
|
1202
1195
|
hasActiveUploadConflictRef: U,
|
|
1203
1196
|
openUploadConflictResolution: B,
|
|
1204
1197
|
closeUploadConflictResolution: W,
|
|
1205
|
-
handleUploadConflictReplace:
|
|
1198
|
+
handleUploadConflictReplace: xe,
|
|
1206
1199
|
handleUploadConflictDuplicate: ue,
|
|
1207
1200
|
handleUploadConflictCancel: Te,
|
|
1208
|
-
handleUploadConflictDecideForEach:
|
|
1201
|
+
handleUploadConflictDecideForEach: Ne
|
|
1209
1202
|
};
|
|
1210
|
-
},
|
|
1211
|
-
hiddenItemWarning: `${
|
|
1212
|
-
},
|
|
1203
|
+
}, Ia = hr(void 0), Fa = {
|
|
1204
|
+
hiddenItemWarning: `${Eo.Warning}__A dot at the start of the name will make the item hidden`
|
|
1205
|
+
}, Ea = {
|
|
1213
1206
|
consecutiveDotsError: "Name cannot contain consecutive dots"
|
|
1214
|
-
},
|
|
1207
|
+
}, Ns = {
|
|
1215
1208
|
emptyName: "Name cannot be empty",
|
|
1216
1209
|
duplicateName: "An item with this name already exists",
|
|
1217
|
-
hiddenItemWarning:
|
|
1218
|
-
consecutiveDotsError:
|
|
1210
|
+
hiddenItemWarning: Fa.hiddenItemWarning,
|
|
1211
|
+
consecutiveDotsError: Ea.consecutiveDotsError
|
|
1219
1212
|
};
|
|
1220
1213
|
function Ds(e) {
|
|
1221
1214
|
let t = e.length;
|
|
1222
1215
|
for (; t > 0 && e[t - 1] === "/"; ) t--;
|
|
1223
1216
|
return e.slice(0, t);
|
|
1224
1217
|
}
|
|
1225
|
-
function
|
|
1218
|
+
function xs(e, t) {
|
|
1226
1219
|
const s = Ds(e), a = s.lastIndexOf("/");
|
|
1227
1220
|
return a === -1 ? t : s.slice(0, a + 1) + t;
|
|
1228
1221
|
}
|
|
@@ -1230,7 +1223,7 @@ function bs(e) {
|
|
|
1230
1223
|
const t = e.lastIndexOf(".");
|
|
1231
1224
|
return t === -1 || t === 0 ? e : e.substring(0, t);
|
|
1232
1225
|
}
|
|
1233
|
-
function
|
|
1226
|
+
function ca(e) {
|
|
1234
1227
|
const t = e.lastIndexOf(".");
|
|
1235
1228
|
return t === -1 || t === 0 ? "" : e.substring(t);
|
|
1236
1229
|
}
|
|
@@ -1242,7 +1235,7 @@ const Ts = ({
|
|
|
1242
1235
|
}) => {
|
|
1243
1236
|
const [n, r] = z(), l = $(
|
|
1244
1237
|
() => ({
|
|
1245
|
-
...
|
|
1238
|
+
...Ns,
|
|
1246
1239
|
...s
|
|
1247
1240
|
}),
|
|
1248
1241
|
[s]
|
|
@@ -1263,14 +1256,14 @@ const Ts = ({
|
|
|
1263
1256
|
const g = n.nodeType === O.ITEM;
|
|
1264
1257
|
let m = y.trim();
|
|
1265
1258
|
if (g) {
|
|
1266
|
-
const f =
|
|
1259
|
+
const f = ca(n.name);
|
|
1267
1260
|
f && !m.endsWith(f) && (m = m + f);
|
|
1268
1261
|
}
|
|
1269
1262
|
if (m === n.name) {
|
|
1270
1263
|
r(void 0);
|
|
1271
1264
|
return;
|
|
1272
1265
|
}
|
|
1273
|
-
const b =
|
|
1266
|
+
const b = xs(
|
|
1274
1267
|
n.path,
|
|
1275
1268
|
m
|
|
1276
1269
|
), D = n.parentPath;
|
|
@@ -1298,14 +1291,14 @@ const Ts = ({
|
|
|
1298
1291
|
const b = g.nodeType === O.ITEM;
|
|
1299
1292
|
let D = m;
|
|
1300
1293
|
if (b) {
|
|
1301
|
-
const f =
|
|
1294
|
+
const f = ca(g.name);
|
|
1302
1295
|
f && !D.endsWith(f) && (D = D + f);
|
|
1303
1296
|
}
|
|
1304
1297
|
const h = g.parentPath;
|
|
1305
1298
|
if (h) {
|
|
1306
1299
|
const f = Ke(e, h);
|
|
1307
1300
|
if (f && new Set(
|
|
1308
|
-
(f.items ?? []).filter((
|
|
1301
|
+
(f.items ?? []).filter((x) => x.path !== g.path).map((x) => x.name.toLowerCase())
|
|
1309
1302
|
).has(D.toLowerCase()))
|
|
1310
1303
|
return l.duplicateName;
|
|
1311
1304
|
}
|
|
@@ -1327,7 +1320,7 @@ const Ts = ({
|
|
|
1327
1320
|
renameValidateHandler: v,
|
|
1328
1321
|
getDisplayName: u
|
|
1329
1322
|
};
|
|
1330
|
-
},
|
|
1323
|
+
}, Sa = (e) => {
|
|
1331
1324
|
const [t, s] = z(e?.expandedPaths ?? /* @__PURE__ */ new Set()), a = $(
|
|
1332
1325
|
() => !!e?.onExpandedPathsChange,
|
|
1333
1326
|
[e?.onExpandedPathsChange]
|
|
@@ -1387,28 +1380,28 @@ const Ts = ({
|
|
|
1387
1380
|
return e && (e.newFolder && c.push({
|
|
1388
1381
|
key: "new-folder",
|
|
1389
1382
|
label: e.newFolder.label,
|
|
1390
|
-
icon: e?.newFolder?.icon !== void 0 ? e?.newFolder?.icon : /* @__PURE__ */ o(
|
|
1383
|
+
icon: e?.newFolder?.icon !== void 0 ? e?.newFolder?.icon : /* @__PURE__ */ o(pa, { ...M, className: "text-secondary" }),
|
|
1391
1384
|
onClick: () => {
|
|
1392
1385
|
a && a();
|
|
1393
1386
|
}
|
|
1394
1387
|
}), e.newItem && c.push({
|
|
1395
1388
|
key: "new-item",
|
|
1396
1389
|
label: e.newItem.label,
|
|
1397
|
-
icon: e?.newItem?.icon !== void 0 ? e?.newItem?.icon : /* @__PURE__ */ o(
|
|
1390
|
+
icon: e?.newItem?.icon !== void 0 ? e?.newItem?.icon : /* @__PURE__ */ o(er, { ...M, className: "text-secondary" }),
|
|
1398
1391
|
onClick: () => {
|
|
1399
1392
|
r && r();
|
|
1400
1393
|
}
|
|
1401
1394
|
}), e.uploadFiles && c.push({
|
|
1402
1395
|
key: "upload-file",
|
|
1403
1396
|
label: e.uploadFiles.label,
|
|
1404
|
-
icon: e?.uploadFiles?.icon !== void 0 ? e?.uploadFiles?.icon : /* @__PURE__ */ o(
|
|
1397
|
+
icon: e?.uploadFiles?.icon !== void 0 ? e?.uploadFiles?.icon : /* @__PURE__ */ o(tr, { ...M, className: "text-secondary" }),
|
|
1405
1398
|
onClick: () => {
|
|
1406
1399
|
s && s();
|
|
1407
1400
|
}
|
|
1408
1401
|
}), e.uploadArchive && c.push({
|
|
1409
1402
|
key: "upload-archive",
|
|
1410
1403
|
label: e.uploadArchive.label,
|
|
1411
|
-
icon: e?.uploadArchive?.icon !== void 0 ? e?.uploadArchive?.icon : /* @__PURE__ */ o(
|
|
1404
|
+
icon: e?.uploadArchive?.icon !== void 0 ? e?.uploadArchive?.icon : /* @__PURE__ */ o(nr, { ...M, className: "text-secondary" }),
|
|
1412
1405
|
onClick: () => {
|
|
1413
1406
|
n && n();
|
|
1414
1407
|
}
|
|
@@ -1423,7 +1416,7 @@ const Ts = ({
|
|
|
1423
1416
|
() => i?.length > 0,
|
|
1424
1417
|
[i]
|
|
1425
1418
|
), C = $(
|
|
1426
|
-
() => !t?.permissions?.includes(
|
|
1419
|
+
() => !t?.permissions?.includes(St.WRITE) || !!l,
|
|
1427
1420
|
[t, l]
|
|
1428
1421
|
);
|
|
1429
1422
|
return {
|
|
@@ -1434,8 +1427,8 @@ const Ts = ({
|
|
|
1434
1427
|
}, Is = {
|
|
1435
1428
|
emptyName: "Folder name cannot be empty",
|
|
1436
1429
|
duplicateName: "A folder with this name already exists",
|
|
1437
|
-
hiddenItemWarning:
|
|
1438
|
-
consecutiveDotsError:
|
|
1430
|
+
hiddenItemWarning: Fa.hiddenItemWarning,
|
|
1431
|
+
consecutiveDotsError: Ea.consecutiveDotsError
|
|
1439
1432
|
}, Fs = ({
|
|
1440
1433
|
currentFolder: e,
|
|
1441
1434
|
onCreateFolder: t,
|
|
@@ -1477,16 +1470,16 @@ const Ts = ({
|
|
|
1477
1470
|
D.current = e?.path || "/";
|
|
1478
1471
|
const P = `__new_folder_${Date.now()}`, k = (e?.items ?? []).filter(
|
|
1479
1472
|
(L) => L.nodeType === O.FOLDER
|
|
1480
|
-
), B =
|
|
1473
|
+
), B = Kt(k);
|
|
1481
1474
|
p(P), b(B), l(!0), c(Be.Folder), u(e || null);
|
|
1482
|
-
}, [r, e]),
|
|
1475
|
+
}, [r, e]), x = d(
|
|
1483
1476
|
(P) => {
|
|
1484
1477
|
if (r) return;
|
|
1485
1478
|
D.current = P?.parentPath || "/";
|
|
1486
1479
|
const k = `__new_folder_${Date.now()}`, L = (It(n, P?.parentPath || "/")?.items ?? []).filter(
|
|
1487
1480
|
(J) => J.nodeType === O.FOLDER
|
|
1488
|
-
),
|
|
1489
|
-
b(
|
|
1481
|
+
), q = Kt(L);
|
|
1482
|
+
b(q), p(k), l(!0), c(Be.Sibling), u(P), g(P?.parentPath || "/");
|
|
1490
1483
|
},
|
|
1491
1484
|
[r, n]
|
|
1492
1485
|
), F = d(
|
|
@@ -1494,8 +1487,8 @@ const Ts = ({
|
|
|
1494
1487
|
if (r) return;
|
|
1495
1488
|
D.current = P.path;
|
|
1496
1489
|
const k = `__new_folder_${Date.now()}`, B = (P?.items ?? []).filter(
|
|
1497
|
-
(
|
|
1498
|
-
), L =
|
|
1490
|
+
(q) => q.nodeType === O.FOLDER
|
|
1491
|
+
), L = Kt(B);
|
|
1499
1492
|
b(L), p(k), l(!0), c(Be.Child), u(P), g(P?.path || "/");
|
|
1500
1493
|
},
|
|
1501
1494
|
[r]
|
|
@@ -1504,8 +1497,8 @@ const Ts = ({
|
|
|
1504
1497
|
if (r) return;
|
|
1505
1498
|
D.current = P?.parentPath || "/";
|
|
1506
1499
|
const B = (It(n, P?.parentPath || "/")?.items ?? []).filter(
|
|
1507
|
-
(
|
|
1508
|
-
), L =
|
|
1500
|
+
(q) => q.nodeType === O.FOLDER
|
|
1501
|
+
), L = Kt(B);
|
|
1509
1502
|
b(L), c(Be.Sibling), u(P), g(P?.parentPath || "/"), l(!0);
|
|
1510
1503
|
},
|
|
1511
1504
|
[r, n]
|
|
@@ -1515,7 +1508,7 @@ const Ts = ({
|
|
|
1515
1508
|
D.current = P.path;
|
|
1516
1509
|
const k = (P?.items ?? []).filter(
|
|
1517
1510
|
(L) => L.nodeType === O.FOLDER
|
|
1518
|
-
), B =
|
|
1511
|
+
), B = Kt(k);
|
|
1519
1512
|
b(B), c(Be.Child), u(P), g(P?.path || "/"), l(!0);
|
|
1520
1513
|
},
|
|
1521
1514
|
[r]
|
|
@@ -1548,13 +1541,13 @@ const Ts = ({
|
|
|
1548
1541
|
if (!k)
|
|
1549
1542
|
return;
|
|
1550
1543
|
A();
|
|
1551
|
-
const L = `${f?.path ?? "/"}/${k}`,
|
|
1552
|
-
fileContent: new File([],
|
|
1544
|
+
const L = `${f?.path ?? "/"}/${k}`, q = `${L}/${Ro}`, j = {
|
|
1545
|
+
fileContent: new File([], Ro, {
|
|
1553
1546
|
type: "text/plain"
|
|
1554
1547
|
}),
|
|
1555
|
-
name:
|
|
1548
|
+
name: Ro
|
|
1556
1549
|
};
|
|
1557
|
-
t && await t(j, L,
|
|
1550
|
+
t && await t(j, L, q);
|
|
1558
1551
|
},
|
|
1559
1552
|
[f, t, A]
|
|
1560
1553
|
);
|
|
@@ -1564,7 +1557,7 @@ const Ts = ({
|
|
|
1564
1557
|
newFolderTempId: i,
|
|
1565
1558
|
newFolderDefaultName: m,
|
|
1566
1559
|
startFolderCreation: T,
|
|
1567
|
-
startGridSiblingFolderCreation:
|
|
1560
|
+
startGridSiblingFolderCreation: x,
|
|
1568
1561
|
startTreeSiblingFolderCreation: I,
|
|
1569
1562
|
startGridChildFolderCreation: F,
|
|
1570
1563
|
startTreeChildFolderCreation: S,
|
|
@@ -1582,12 +1575,12 @@ const Ts = ({
|
|
|
1582
1575
|
additionalButtons: $(() => /* @__PURE__ */ X(Ie, { children: [
|
|
1583
1576
|
e,
|
|
1584
1577
|
/* @__PURE__ */ o(
|
|
1585
|
-
|
|
1578
|
+
Et,
|
|
1586
1579
|
{
|
|
1587
1580
|
disabled: a,
|
|
1588
|
-
size:
|
|
1581
|
+
size: jn.Small,
|
|
1589
1582
|
onClick: s,
|
|
1590
|
-
icon: /* @__PURE__ */ o(
|
|
1583
|
+
icon: /* @__PURE__ */ o(or, { size: zo.LG, stroke: 1.5 }),
|
|
1591
1584
|
"aria-label": "collapse-all"
|
|
1592
1585
|
}
|
|
1593
1586
|
)
|
|
@@ -1617,7 +1610,7 @@ function As(e) {
|
|
|
1617
1610
|
}
|
|
1618
1611
|
return s(e), t;
|
|
1619
1612
|
}
|
|
1620
|
-
function
|
|
1613
|
+
function da(e, t) {
|
|
1621
1614
|
const s = Ft(t);
|
|
1622
1615
|
return e.filter((a) => Ft(a.name).includes(s));
|
|
1623
1616
|
}
|
|
@@ -1667,15 +1660,15 @@ function Ps({
|
|
|
1667
1660
|
]), pe(() => {
|
|
1668
1661
|
n || (y.current = a);
|
|
1669
1662
|
}, [a, n]);
|
|
1670
|
-
const
|
|
1663
|
+
const x = $(() => {
|
|
1671
1664
|
if (e) {
|
|
1672
1665
|
const I = n ? y.current : a;
|
|
1673
|
-
return !b || I.length === 0 ? I :
|
|
1666
|
+
return !b || I.length === 0 ? I : da(I, b);
|
|
1674
1667
|
}
|
|
1675
1668
|
if (!b || !i.length)
|
|
1676
1669
|
return [];
|
|
1677
1670
|
const F = As(i);
|
|
1678
|
-
return
|
|
1671
|
+
return da(F, b);
|
|
1679
1672
|
}, [
|
|
1680
1673
|
e,
|
|
1681
1674
|
a,
|
|
@@ -1691,7 +1684,7 @@ function Ps({
|
|
|
1691
1684
|
handleSearchChange: T,
|
|
1692
1685
|
handleSearchActivate: h,
|
|
1693
1686
|
handleSearchClear: f,
|
|
1694
|
-
searchResultsRows:
|
|
1687
|
+
searchResultsRows: x
|
|
1695
1688
|
};
|
|
1696
1689
|
}
|
|
1697
1690
|
function Ms({
|
|
@@ -1740,7 +1733,7 @@ const ks = ({
|
|
|
1740
1733
|
toolbarOptions: h,
|
|
1741
1734
|
bulkActionsToolbarOptions: f,
|
|
1742
1735
|
destinationFolderPopupOptions: T,
|
|
1743
|
-
conflictResolutionPopupOptions:
|
|
1736
|
+
conflictResolutionPopupOptions: x,
|
|
1744
1737
|
onPathChange: F,
|
|
1745
1738
|
onTableFileClick: I,
|
|
1746
1739
|
handleSelectionClick: S,
|
|
@@ -1751,16 +1744,16 @@ const ks = ({
|
|
|
1751
1744
|
onDownloadFiles: k,
|
|
1752
1745
|
onRenameValidate: B,
|
|
1753
1746
|
renameValidationMessages: L,
|
|
1754
|
-
forbiddenSymbolsRegExp:
|
|
1747
|
+
forbiddenSymbolsRegExp: q = Cr,
|
|
1755
1748
|
forbiddenSymbolsTooltip: J,
|
|
1756
1749
|
onUploadFiles: j,
|
|
1757
1750
|
onValidateUpload: te,
|
|
1758
1751
|
uploadEnabled: fe,
|
|
1759
1752
|
uploadValidationMessages: we,
|
|
1760
|
-
maxFileSize:
|
|
1753
|
+
maxFileSize: xe,
|
|
1761
1754
|
onUploadArchive: ue,
|
|
1762
1755
|
prepareUploadFileName: Te,
|
|
1763
|
-
onCreateFolder:
|
|
1756
|
+
onCreateFolder: Ne,
|
|
1764
1757
|
onCreateFolderValidate: W,
|
|
1765
1758
|
folderCreationValidationMessages: be,
|
|
1766
1759
|
fileMetadataPopupOptions: De,
|
|
@@ -1783,27 +1776,27 @@ const ks = ({
|
|
|
1783
1776
|
emptyStateDescription: $e,
|
|
1784
1777
|
sharedWithMeIds: He,
|
|
1785
1778
|
onFolderPopupPathChange: pt,
|
|
1786
|
-
onManagePermissions:
|
|
1779
|
+
onManagePermissions: cn,
|
|
1787
1780
|
onPreview: st,
|
|
1788
1781
|
onOpenInNewTab: ft,
|
|
1789
|
-
previewExtensions:
|
|
1790
|
-
isRenameFileAvailable:
|
|
1791
|
-
isDuplicateFolderAvailable:
|
|
1782
|
+
previewExtensions: Xn,
|
|
1783
|
+
isRenameFileAvailable: qn,
|
|
1784
|
+
isDuplicateFolderAvailable: Yn,
|
|
1792
1785
|
customUploadFileAction: mt,
|
|
1793
|
-
customCreateNewItemAction:
|
|
1794
|
-
customDuplicateAction:
|
|
1795
|
-
customDeleteItemsAction:
|
|
1796
|
-
customDownloadItemsAction:
|
|
1797
|
-
customBreakpointRef:
|
|
1798
|
-
gridClassName:
|
|
1799
|
-
nonClickableTableColumns:
|
|
1786
|
+
customCreateNewItemAction: dn,
|
|
1787
|
+
customDuplicateAction: At,
|
|
1788
|
+
customDeleteItemsAction: Kn,
|
|
1789
|
+
customDownloadItemsAction: un,
|
|
1790
|
+
customBreakpointRef: hn,
|
|
1791
|
+
gridClassName: pn,
|
|
1792
|
+
nonClickableTableColumns: fn,
|
|
1800
1793
|
hideSearchPathItemName: Qe,
|
|
1801
1794
|
showHiddenFileSwitcherInDestinationPopup: Ct,
|
|
1802
|
-
showCreateFolderButtonInDestinationPopup:
|
|
1795
|
+
showCreateFolderButtonInDestinationPopup: mn,
|
|
1803
1796
|
autoSelectUploadedItems: je = !1,
|
|
1804
1797
|
maxNewFolderDepth: ve,
|
|
1805
|
-
onNewFolderDepthExceeded:
|
|
1806
|
-
initialUploadFilesOpen:
|
|
1798
|
+
onNewFolderDepthExceeded: Pt,
|
|
1799
|
+
initialUploadFilesOpen: Cn
|
|
1807
1800
|
}) => {
|
|
1808
1801
|
const {
|
|
1809
1802
|
selectedPaths: Ze,
|
|
@@ -1813,19 +1806,19 @@ const ks = ({
|
|
|
1813
1806
|
selectedPaths: p,
|
|
1814
1807
|
defaultSelectedPaths: C,
|
|
1815
1808
|
onSelectedPathsChange: c
|
|
1816
|
-
}),
|
|
1809
|
+
}), gn = ce(!1), Je = ce(null), Qn = d(
|
|
1817
1810
|
(E, K, oe) => {
|
|
1818
1811
|
if (je) {
|
|
1819
|
-
const { parent: Ye, name:
|
|
1812
|
+
const { parent: Ye, name: To } = cs(K);
|
|
1820
1813
|
Je.current = {
|
|
1821
|
-
fileNames: /* @__PURE__ */ new Set([
|
|
1814
|
+
fileNames: /* @__PURE__ */ new Set([To]),
|
|
1822
1815
|
destinationFolder: Ye
|
|
1823
1816
|
};
|
|
1824
1817
|
}
|
|
1825
|
-
|
|
1818
|
+
Ne?.(E, K, oe);
|
|
1826
1819
|
},
|
|
1827
|
-
[
|
|
1828
|
-
),
|
|
1820
|
+
[Ne, je]
|
|
1821
|
+
), Jn = d(
|
|
1829
1822
|
(E, K) => {
|
|
1830
1823
|
je && (Je.current = {
|
|
1831
1824
|
fileNames: new Set(E.map((oe) => oe.name)),
|
|
@@ -1833,7 +1826,7 @@ const ks = ({
|
|
|
1833
1826
|
}), j?.(E, K);
|
|
1834
1827
|
},
|
|
1835
1828
|
[j, je]
|
|
1836
|
-
),
|
|
1829
|
+
), eo = d(
|
|
1837
1830
|
(E, K, oe) => {
|
|
1838
1831
|
je && (Je.current = {
|
|
1839
1832
|
fileNames: /* @__PURE__ */ new Set([K]),
|
|
@@ -1841,7 +1834,7 @@ const ks = ({
|
|
|
1841
1834
|
}), ue?.(E, K, oe);
|
|
1842
1835
|
},
|
|
1843
1836
|
[ue, je]
|
|
1844
|
-
),
|
|
1837
|
+
), to = $(() => {
|
|
1845
1838
|
const E = /* @__PURE__ */ new Map();
|
|
1846
1839
|
return Ze.forEach((K) => {
|
|
1847
1840
|
const oe = Ke(a, K);
|
|
@@ -1868,32 +1861,32 @@ const ks = ({
|
|
|
1868
1861
|
defaultPath: l,
|
|
1869
1862
|
onPathChange: F,
|
|
1870
1863
|
onSelectionClear: Xe
|
|
1871
|
-
}),
|
|
1864
|
+
}), Mt = $(() => {
|
|
1872
1865
|
const {
|
|
1873
1866
|
showFiles: E = !0,
|
|
1874
1867
|
showFolders: K = !0,
|
|
1875
1868
|
...oe
|
|
1876
1869
|
} = D || {};
|
|
1877
1870
|
return { showFiles: E, showFolders: K, ...oe };
|
|
1878
|
-
}, [D]),
|
|
1871
|
+
}, [D]), kt = Mt.showFiles, et = Mt.showFolders, [gt, no] = z(), vn = T?.destinationFolderPath ?? gt, tt = d(
|
|
1879
1872
|
(E) => {
|
|
1880
|
-
T?.setDestinationFolderPath ? T.setDestinationFolderPath(E) :
|
|
1873
|
+
T?.setDestinationFolderPath ? T.setDestinationFolderPath(E) : no(E);
|
|
1881
1874
|
},
|
|
1882
1875
|
[T]
|
|
1883
|
-
), { areHiddenFilesVisible: lt, toggleHiddenFilesVisibility:
|
|
1876
|
+
), { areHiddenFilesVisible: lt, toggleHiddenFilesVisibility: yn } = ps({
|
|
1884
1877
|
showHiddenFiles: v,
|
|
1885
1878
|
onShowHiddenFilesChange: u
|
|
1886
|
-
}), { isTreeCollapsed:
|
|
1879
|
+
}), { isTreeCollapsed: wn, toggleTreeCollapse: vt, setIsTreeCollapsed: oo } = fs({
|
|
1887
1880
|
collapsed: y?.collapsed,
|
|
1888
1881
|
onCollapseChange: y?.onCollapseChange
|
|
1889
1882
|
}), {
|
|
1890
1883
|
renamedPath: yt,
|
|
1891
|
-
renamedItem:
|
|
1892
|
-
renameHandler:
|
|
1893
|
-
renameSaveHandler:
|
|
1894
|
-
renameCancelHandler:
|
|
1895
|
-
renameValidateHandler:
|
|
1896
|
-
getDisplayName:
|
|
1884
|
+
renamedItem: ao,
|
|
1885
|
+
renameHandler: ro,
|
|
1886
|
+
renameSaveHandler: so,
|
|
1887
|
+
renameCancelHandler: io,
|
|
1888
|
+
renameValidateHandler: lo,
|
|
1889
|
+
getDisplayName: Ot
|
|
1897
1890
|
} = Ts({
|
|
1898
1891
|
items: a,
|
|
1899
1892
|
onRenameValidate: B,
|
|
@@ -1901,12 +1894,12 @@ const ks = ({
|
|
|
1901
1894
|
onMoveToFiles: U
|
|
1902
1895
|
}), {
|
|
1903
1896
|
isSearchMode: wt,
|
|
1904
|
-
searchValue:
|
|
1905
|
-
effectiveSearchValue:
|
|
1906
|
-
setSearchValue:
|
|
1907
|
-
handleSearchChange:
|
|
1897
|
+
searchValue: Nn,
|
|
1898
|
+
effectiveSearchValue: Lt,
|
|
1899
|
+
setSearchValue: zt,
|
|
1900
|
+
handleSearchChange: _t,
|
|
1908
1901
|
handleSearchClear: le,
|
|
1909
|
-
searchResultsRows:
|
|
1902
|
+
searchResultsRows: Dn
|
|
1910
1903
|
} = Ps({
|
|
1911
1904
|
onSearchFiles: Se,
|
|
1912
1905
|
clearSearchResults: V,
|
|
@@ -1924,26 +1917,26 @@ const ks = ({
|
|
|
1924
1917
|
(E, K) => !K || !E ? !1 : hs(E.path) > K,
|
|
1925
1918
|
[]
|
|
1926
1919
|
), Me = d(() => {
|
|
1927
|
-
|
|
1928
|
-
}, [
|
|
1929
|
-
handleCopyTo:
|
|
1930
|
-
handleMoveTo:
|
|
1931
|
-
handleDuplicate:
|
|
1932
|
-
handleOpenDestinationFolderPopup:
|
|
1933
|
-
handleCloseDestinationFolderPopup:
|
|
1920
|
+
Pt?.();
|
|
1921
|
+
}, [Pt]), {
|
|
1922
|
+
handleCopyTo: xn,
|
|
1923
|
+
handleMoveTo: bn,
|
|
1924
|
+
handleDuplicate: Tn,
|
|
1925
|
+
handleOpenDestinationFolderPopup: Nt,
|
|
1926
|
+
handleCloseDestinationFolderPopup: Rn,
|
|
1934
1927
|
openDestinationFolderPopup: nt,
|
|
1935
|
-
handleSetCopiedFiles:
|
|
1936
|
-
handleSetMovedFiles:
|
|
1937
|
-
destinationFolderMode:
|
|
1938
|
-
destinationFolderTitle:
|
|
1939
|
-
conflictingFiles:
|
|
1940
|
-
conflictResolutionOpen:
|
|
1941
|
-
closeConflictResolution:
|
|
1942
|
-
handleConflictReplace:
|
|
1943
|
-
handleConflictDuplicate:
|
|
1944
|
-
handleConflictCancel:
|
|
1945
|
-
handleConflictDecideForEach:
|
|
1946
|
-
sourceFolder:
|
|
1928
|
+
handleSetCopiedFiles: co,
|
|
1929
|
+
handleSetMovedFiles: In,
|
|
1930
|
+
destinationFolderMode: Fn,
|
|
1931
|
+
destinationFolderTitle: uo,
|
|
1932
|
+
conflictingFiles: En,
|
|
1933
|
+
conflictResolutionOpen: ho,
|
|
1934
|
+
closeConflictResolution: Sn,
|
|
1935
|
+
handleConflictReplace: Bt,
|
|
1936
|
+
handleConflictDuplicate: po,
|
|
1937
|
+
handleConflictCancel: fo,
|
|
1938
|
+
handleConflictDecideForEach: mo,
|
|
1939
|
+
sourceFolder: Co
|
|
1947
1940
|
} = ms({
|
|
1948
1941
|
getDestinationFiles: (E) => It(a, E)?.items ?? [],
|
|
1949
1942
|
onCopyFiles: _,
|
|
@@ -1958,96 +1951,96 @@ const ks = ({
|
|
|
1958
1951
|
nt || tt(void 0);
|
|
1959
1952
|
}, [nt, tt]);
|
|
1960
1953
|
const {
|
|
1961
|
-
deleteConfirmationOpen:
|
|
1962
|
-
itemsToDelete:
|
|
1963
|
-
openDeleteConfirmation:
|
|
1964
|
-
closeDeleteConfirmation:
|
|
1954
|
+
deleteConfirmationOpen: go,
|
|
1955
|
+
itemsToDelete: An,
|
|
1956
|
+
openDeleteConfirmation: Pn,
|
|
1957
|
+
closeDeleteConfirmation: Mn,
|
|
1965
1958
|
confirmDelete: Dt
|
|
1966
1959
|
} = gs({
|
|
1967
1960
|
onDeleteFiles: P,
|
|
1968
1961
|
onDeleteSuccess: Xe
|
|
1969
1962
|
}), { handleDownloadFiles: ot } = vs({
|
|
1970
1963
|
onDownloadFiles: k,
|
|
1971
|
-
customDownloadItemsAction:
|
|
1964
|
+
customDownloadItemsAction: un,
|
|
1972
1965
|
onDownloadSuccess: Xe
|
|
1973
1966
|
}), {
|
|
1974
|
-
isDragging:
|
|
1967
|
+
isDragging: vo,
|
|
1975
1968
|
isDraggingOverWindow: ze,
|
|
1976
|
-
uploadError:
|
|
1977
|
-
handleDragEnter:
|
|
1978
|
-
handleDragLeave:
|
|
1969
|
+
uploadError: yo,
|
|
1970
|
+
handleDragEnter: Wt,
|
|
1971
|
+
handleDragLeave: xt,
|
|
1979
1972
|
handleDragOver: ct,
|
|
1980
|
-
handleDrop:
|
|
1981
|
-
clearError:
|
|
1982
|
-
openFileDialog:
|
|
1983
|
-
fileInputRef:
|
|
1984
|
-
openArchiveDialog:
|
|
1985
|
-
uploadConflictingFiles:
|
|
1986
|
-
uploadConflictResolutionOpen:
|
|
1987
|
-
closeUploadConflictResolution:
|
|
1988
|
-
handleUploadConflictReplace:
|
|
1989
|
-
handleUploadConflictDuplicate:
|
|
1990
|
-
handleUploadConflictCancel:
|
|
1991
|
-
handleUploadConflictDecideForEach:
|
|
1973
|
+
handleDrop: Ht,
|
|
1974
|
+
clearError: kn,
|
|
1975
|
+
openFileDialog: Ut,
|
|
1976
|
+
fileInputRef: On,
|
|
1977
|
+
openArchiveDialog: Gt,
|
|
1978
|
+
uploadConflictingFiles: wo,
|
|
1979
|
+
uploadConflictResolutionOpen: No,
|
|
1980
|
+
closeUploadConflictResolution: Ln,
|
|
1981
|
+
handleUploadConflictReplace: Vt,
|
|
1982
|
+
handleUploadConflictDuplicate: Do,
|
|
1983
|
+
handleUploadConflictCancel: xo,
|
|
1984
|
+
handleUploadConflictDecideForEach: $t
|
|
1992
1985
|
} = ws({
|
|
1993
|
-
onUploadFiles:
|
|
1986
|
+
onUploadFiles: Jn,
|
|
1994
1987
|
onValidateUpload: te,
|
|
1995
|
-
maxFileSize:
|
|
1996
|
-
onUploadArchive:
|
|
1988
|
+
maxFileSize: xe,
|
|
1989
|
+
onUploadArchive: eo,
|
|
1997
1990
|
prepareUploadFileName: Te,
|
|
1998
1991
|
allowedFileTypes: Q,
|
|
1999
1992
|
validationMessages: we,
|
|
2000
1993
|
uploadEnabled: fe,
|
|
2001
1994
|
currentFolder: re
|
|
2002
|
-
}),
|
|
1995
|
+
}), zn = d(
|
|
2003
1996
|
(E) => {
|
|
2004
1997
|
le();
|
|
2005
1998
|
const K = de ?? "", oe = re?.items ?? [];
|
|
2006
|
-
|
|
1999
|
+
Ht(E, K, oe);
|
|
2007
2000
|
},
|
|
2008
|
-
[de, re,
|
|
2001
|
+
[de, re, Ht, le]
|
|
2009
2002
|
), dt = d(() => {
|
|
2010
|
-
le();
|
|
2011
|
-
const E = de ?? "", K = re?.items ?? [];
|
|
2012
|
-
Ht(E, K);
|
|
2013
|
-
}, [de, re, Ht, le]), zn = d(() => {
|
|
2014
2003
|
le();
|
|
2015
2004
|
const E = de ?? "", K = re?.items ?? [];
|
|
2016
2005
|
Ut(E, K);
|
|
2017
2006
|
}, [de, re, Ut, le]), _n = d(() => {
|
|
2007
|
+
le();
|
|
2008
|
+
const E = de ?? "", K = re?.items ?? [];
|
|
2009
|
+
Gt(E, K);
|
|
2010
|
+
}, [de, re, Gt, le]), Bn = d(() => {
|
|
2018
2011
|
le(), mt?.(de, re);
|
|
2019
|
-
}, [mt, de, re, le]),
|
|
2020
|
-
le(),
|
|
2012
|
+
}, [mt, de, re, le]), Wn = d(() => {
|
|
2013
|
+
le(), dn?.(de, re);
|
|
2021
2014
|
}, [
|
|
2022
|
-
|
|
2015
|
+
dn,
|
|
2023
2016
|
de,
|
|
2024
2017
|
re,
|
|
2025
2018
|
le
|
|
2026
|
-
]),
|
|
2019
|
+
]), bo = d(
|
|
2027
2020
|
(E) => {
|
|
2028
|
-
|
|
2021
|
+
At?.(E);
|
|
2029
2022
|
},
|
|
2030
|
-
[
|
|
2023
|
+
[At]
|
|
2031
2024
|
), {
|
|
2032
|
-
isCreatingFolder:
|
|
2025
|
+
isCreatingFolder: N,
|
|
2033
2026
|
newFolderTempId: ee,
|
|
2034
2027
|
createdFolderPath: ie,
|
|
2035
2028
|
newFolderDefaultName: Re,
|
|
2036
2029
|
startFolderCreation: at,
|
|
2037
|
-
startGridSiblingFolderCreation:
|
|
2038
|
-
startTreeSiblingFolderCreation:
|
|
2039
|
-
startGridChildFolderCreation:
|
|
2040
|
-
startTreeChildFolderCreation:
|
|
2041
|
-
cancelFolderCreation:
|
|
2042
|
-
saveFolderCreation:
|
|
2043
|
-
validateFolderName:
|
|
2030
|
+
startGridSiblingFolderCreation: $o,
|
|
2031
|
+
startTreeSiblingFolderCreation: jo,
|
|
2032
|
+
startGridChildFolderCreation: Zo,
|
|
2033
|
+
startTreeChildFolderCreation: Xo,
|
|
2034
|
+
cancelFolderCreation: Aa,
|
|
2035
|
+
saveFolderCreation: Pa,
|
|
2036
|
+
validateFolderName: Ma
|
|
2044
2037
|
} = Fs({
|
|
2045
2038
|
currentFolder: re,
|
|
2046
|
-
onCreateFolder:
|
|
2039
|
+
onCreateFolder: Qn,
|
|
2047
2040
|
onValidateFolderName: W,
|
|
2048
2041
|
validationMessages: be,
|
|
2049
2042
|
items: a
|
|
2050
|
-
}),
|
|
2043
|
+
}), qo = d(() => {
|
|
2051
2044
|
if (ve && Le(re, ve - 1)) {
|
|
2052
2045
|
Me();
|
|
2053
2046
|
return;
|
|
@@ -2060,25 +2053,25 @@ const ks = ({
|
|
|
2060
2053
|
ve,
|
|
2061
2054
|
Le,
|
|
2062
2055
|
Me
|
|
2063
|
-
]), { newActions:
|
|
2056
|
+
]), { newActions: ka, isNewButtonVisible: Oa, isNewButtonDisabled: La } = Rs(
|
|
2064
2057
|
{
|
|
2065
2058
|
newActions: h?.newActions,
|
|
2066
2059
|
currentFolder: re,
|
|
2067
|
-
onUploadFiles: mt ?
|
|
2068
|
-
onUploadArchive:
|
|
2069
|
-
onCreateFolder:
|
|
2070
|
-
onCreateNewItem:
|
|
2060
|
+
onUploadFiles: mt ? Bn : dt,
|
|
2061
|
+
onUploadArchive: _n,
|
|
2062
|
+
onCreateFolder: qo,
|
|
2063
|
+
onCreateNewItem: Wn,
|
|
2071
2064
|
isNewButtonDisabled: h?.isNewButtonDisabled
|
|
2072
2065
|
}
|
|
2073
|
-
),
|
|
2066
|
+
), za = $(() => {
|
|
2074
2067
|
if (wt) {
|
|
2075
|
-
let
|
|
2076
|
-
|
|
2068
|
+
let Y = Dn;
|
|
2069
|
+
kt || (Y = Y.filter(
|
|
2077
2070
|
(se) => se.nodeType !== O.ITEM
|
|
2078
|
-
)), et || (
|
|
2071
|
+
)), et || (Y = Y.filter(
|
|
2079
2072
|
(se) => se.nodeType !== O.FOLDER
|
|
2080
|
-
)), lt || (
|
|
2081
|
-
const
|
|
2073
|
+
)), lt || (Y = Y.filter((se) => !se.path.split("/").filter(Boolean).some((Xt) => Xt.startsWith("."))));
|
|
2074
|
+
const Zt = Y.map((se) => ({
|
|
2082
2075
|
...se,
|
|
2083
2076
|
id: se.id ?? se.path,
|
|
2084
2077
|
name: se.name ?? se.path.split("/").pop() ?? "",
|
|
@@ -2093,7 +2086,7 @@ const ks = ({
|
|
|
2093
2086
|
owner: se.owner,
|
|
2094
2087
|
folderId: se.folderId
|
|
2095
2088
|
}));
|
|
2096
|
-
return
|
|
2089
|
+
return N && ee && Zt.unshift({
|
|
2097
2090
|
id: ee,
|
|
2098
2091
|
name: Re,
|
|
2099
2092
|
updatedAt: void 0,
|
|
@@ -2103,30 +2096,30 @@ const ks = ({
|
|
|
2103
2096
|
extension: void 0,
|
|
2104
2097
|
isTemporary: !0,
|
|
2105
2098
|
owner: void 0
|
|
2106
|
-
}),
|
|
2099
|
+
}), Zt;
|
|
2107
2100
|
}
|
|
2108
|
-
const E = Ft(
|
|
2101
|
+
const E = Ft(Lt).trim(), K = re?.items ?? [];
|
|
2109
2102
|
let oe = E ? rs(re) : K;
|
|
2110
|
-
|
|
2111
|
-
(
|
|
2112
|
-
)), lt || (oe = oe.filter((
|
|
2113
|
-
const Ye = oe.map((
|
|
2114
|
-
...
|
|
2115
|
-
id:
|
|
2116
|
-
name:
|
|
2117
|
-
updatedAt:
|
|
2118
|
-
size:
|
|
2119
|
-
author:
|
|
2120
|
-
path:
|
|
2121
|
-
nodeType:
|
|
2122
|
-
extension:
|
|
2103
|
+
kt || (oe = oe.filter((Y) => Y.nodeType !== O.ITEM)), et || (oe = oe.filter(
|
|
2104
|
+
(Y) => Y.nodeType !== O.FOLDER
|
|
2105
|
+
)), lt || (oe = oe.filter((Y) => E ? !Y.path.split("/").filter(Boolean).some((se) => se.startsWith(".")) : !Ta(Y)));
|
|
2106
|
+
const Ye = oe.map((Y) => ({
|
|
2107
|
+
...Y,
|
|
2108
|
+
id: Y.id ?? Y.path,
|
|
2109
|
+
name: Y.name ?? Y.path.split("/").pop() ?? "",
|
|
2110
|
+
updatedAt: Y.updatedAt,
|
|
2111
|
+
size: Y.contentLength,
|
|
2112
|
+
author: Y.author,
|
|
2113
|
+
path: Y.path,
|
|
2114
|
+
nodeType: Y.nodeType,
|
|
2115
|
+
extension: Y.extension,
|
|
2123
2116
|
isTemporary: !1,
|
|
2124
|
-
owner:
|
|
2125
|
-
contentType:
|
|
2126
|
-
contentLength:
|
|
2127
|
-
folderId:
|
|
2117
|
+
owner: Y.owner,
|
|
2118
|
+
contentType: Y.contentType,
|
|
2119
|
+
contentLength: Y.contentLength,
|
|
2120
|
+
folderId: Y.folderId
|
|
2128
2121
|
}));
|
|
2129
|
-
if (
|
|
2122
|
+
if (N && ee && !E && Ye.unshift({
|
|
2130
2123
|
id: ee,
|
|
2131
2124
|
name: Re,
|
|
2132
2125
|
updatedAt: void 0,
|
|
@@ -2137,24 +2130,24 @@ const ks = ({
|
|
|
2137
2130
|
isTemporary: !0,
|
|
2138
2131
|
owner: void 0
|
|
2139
2132
|
}), !E) return Ye;
|
|
2140
|
-
const
|
|
2141
|
-
return Ye.filter((
|
|
2142
|
-
if (
|
|
2143
|
-
const
|
|
2144
|
-
return
|
|
2145
|
-
(
|
|
2133
|
+
const To = E.split(/\s+/).filter(Boolean);
|
|
2134
|
+
return Ye.filter((Y) => {
|
|
2135
|
+
if (Y.isTemporary) return !0;
|
|
2136
|
+
const Zt = Ft(Y.name), se = Ft(Y.author), Ko = as(Y.extension);
|
|
2137
|
+
return To.every(
|
|
2138
|
+
(Xt) => Zt.includes(Xt) || se.includes(Xt) || Ko.includes(Xt)
|
|
2146
2139
|
);
|
|
2147
2140
|
});
|
|
2148
2141
|
}, [
|
|
2149
2142
|
wt,
|
|
2150
|
-
|
|
2143
|
+
Dn,
|
|
2151
2144
|
re,
|
|
2152
|
-
|
|
2145
|
+
Lt,
|
|
2153
2146
|
lt,
|
|
2154
|
-
|
|
2147
|
+
N,
|
|
2155
2148
|
ee,
|
|
2156
2149
|
Re,
|
|
2157
|
-
|
|
2150
|
+
kt,
|
|
2158
2151
|
et,
|
|
2159
2152
|
de
|
|
2160
2153
|
]);
|
|
@@ -2178,115 +2171,115 @@ const ks = ({
|
|
|
2178
2171
|
Q,
|
|
2179
2172
|
Z
|
|
2180
2173
|
]), pe(() => {
|
|
2181
|
-
!
|
|
2182
|
-
}, [
|
|
2183
|
-
const
|
|
2174
|
+
!gn.current && Cn && (dt(), gn.current = !0);
|
|
2175
|
+
}, [Cn, dt]);
|
|
2176
|
+
const _a = d(
|
|
2184
2177
|
(E) => {
|
|
2185
2178
|
qe(E.path);
|
|
2186
2179
|
},
|
|
2187
2180
|
[qe]
|
|
2188
|
-
),
|
|
2181
|
+
), Ba = d(
|
|
2189
2182
|
(E) => {
|
|
2190
2183
|
qe(E);
|
|
2191
2184
|
},
|
|
2192
2185
|
[qe]
|
|
2193
|
-
),
|
|
2186
|
+
), Wa = d(
|
|
2194
2187
|
(E) => {
|
|
2195
2188
|
E.nodeType === O.FOLDER ? qe(E.path) : I?.(E);
|
|
2196
2189
|
},
|
|
2197
2190
|
[qe, I]
|
|
2198
|
-
), { expandedPaths: bt, setExpandedPaths:
|
|
2191
|
+
), { expandedPaths: bt, setExpandedPaths: jt, collapseAll: Ha } = Sa({
|
|
2199
2192
|
expandedPaths: y?.expandedPaths,
|
|
2200
2193
|
onExpandedPathsChange: y?.onExpandedPathsChange
|
|
2201
|
-
}), { additionalButtons:
|
|
2202
|
-
collapseAll:
|
|
2194
|
+
}), { additionalButtons: Ua } = Es({
|
|
2195
|
+
collapseAll: Ha,
|
|
2203
2196
|
expandedPathsLength: bt.size,
|
|
2204
2197
|
additionalButtons: y?.additionalButtons
|
|
2205
|
-
}),
|
|
2198
|
+
}), Ga = d(
|
|
2206
2199
|
(E) => {
|
|
2207
2200
|
if (E.length > 0) {
|
|
2208
2201
|
if (ve && Le(E[0], ve)) {
|
|
2209
2202
|
Me();
|
|
2210
2203
|
return;
|
|
2211
2204
|
}
|
|
2212
|
-
le(),
|
|
2205
|
+
le(), $o(E[0]);
|
|
2213
2206
|
}
|
|
2214
2207
|
},
|
|
2215
2208
|
[
|
|
2216
2209
|
le,
|
|
2217
|
-
|
|
2210
|
+
$o,
|
|
2218
2211
|
ve,
|
|
2219
2212
|
Le,
|
|
2220
2213
|
Me
|
|
2221
2214
|
]
|
|
2222
|
-
),
|
|
2215
|
+
), Va = d(
|
|
2223
2216
|
(E) => {
|
|
2224
2217
|
if (E.length > 0) {
|
|
2225
2218
|
if (ve && Le(E[0], ve - 1)) {
|
|
2226
2219
|
Me();
|
|
2227
2220
|
return;
|
|
2228
2221
|
}
|
|
2229
|
-
le(), Fe(E[0].path),
|
|
2222
|
+
le(), Fe(E[0].path), jt(new Set(bt).add(E[0].path || "/")), Zo(E[0]);
|
|
2230
2223
|
}
|
|
2231
2224
|
},
|
|
2232
2225
|
[
|
|
2233
2226
|
le,
|
|
2234
|
-
|
|
2227
|
+
Zo,
|
|
2235
2228
|
bt,
|
|
2236
|
-
|
|
2229
|
+
jt,
|
|
2237
2230
|
Fe,
|
|
2238
2231
|
Me,
|
|
2239
2232
|
ve,
|
|
2240
2233
|
Le
|
|
2241
2234
|
]
|
|
2242
|
-
),
|
|
2235
|
+
), $a = d(
|
|
2243
2236
|
(E) => {
|
|
2244
2237
|
if (E.length > 0) {
|
|
2245
2238
|
if (ve && Le(E[0], ve)) {
|
|
2246
2239
|
Me();
|
|
2247
2240
|
return;
|
|
2248
2241
|
}
|
|
2249
|
-
le(),
|
|
2242
|
+
le(), jo(E[0]);
|
|
2250
2243
|
}
|
|
2251
2244
|
},
|
|
2252
2245
|
[
|
|
2253
2246
|
le,
|
|
2254
|
-
|
|
2247
|
+
jo,
|
|
2255
2248
|
ve,
|
|
2256
2249
|
Le,
|
|
2257
2250
|
Me
|
|
2258
2251
|
]
|
|
2259
|
-
),
|
|
2252
|
+
), ja = d(
|
|
2260
2253
|
(E) => {
|
|
2261
2254
|
if (E.length > 0) {
|
|
2262
2255
|
if (ve && Le(E[0], ve - 1)) {
|
|
2263
2256
|
Me();
|
|
2264
2257
|
return;
|
|
2265
2258
|
}
|
|
2266
|
-
le(), Fe(E[0].path),
|
|
2259
|
+
le(), Fe(E[0].path), jt(new Set(bt).add(E[0].path || "/")), Xo(E[0]);
|
|
2267
2260
|
}
|
|
2268
2261
|
},
|
|
2269
2262
|
[
|
|
2270
2263
|
le,
|
|
2271
|
-
|
|
2264
|
+
Xo,
|
|
2272
2265
|
Fe,
|
|
2273
2266
|
bt,
|
|
2274
|
-
|
|
2267
|
+
jt,
|
|
2275
2268
|
ve,
|
|
2276
2269
|
Le,
|
|
2277
2270
|
Me
|
|
2278
2271
|
]
|
|
2279
2272
|
), {
|
|
2280
|
-
isMetadataPopupOpen:
|
|
2281
|
-
selectedFileForMetadata:
|
|
2282
|
-
openMetadataPopup:
|
|
2283
|
-
closeMetadataPopup:
|
|
2284
|
-
} = Ss({ onGetInfo: G }),
|
|
2285
|
-
|
|
2286
|
-
}, [
|
|
2287
|
-
if (
|
|
2288
|
-
return
|
|
2289
|
-
}, [
|
|
2273
|
+
isMetadataPopupOpen: Za,
|
|
2274
|
+
selectedFileForMetadata: Xa,
|
|
2275
|
+
openMetadataPopup: qa,
|
|
2276
|
+
closeMetadataPopup: Yo
|
|
2277
|
+
} = Ss({ onGetInfo: G }), Ya = d(() => {
|
|
2278
|
+
Yo(), De?.clearMetadata?.();
|
|
2279
|
+
}, [Yo, De]), Ka = $(() => {
|
|
2280
|
+
if (q)
|
|
2281
|
+
return Zn(q);
|
|
2282
|
+
}, [q]), Qa = {
|
|
2290
2283
|
managerLabel: e,
|
|
2291
2284
|
className: s,
|
|
2292
2285
|
items: a,
|
|
@@ -2297,121 +2290,121 @@ const ks = ({
|
|
|
2297
2290
|
treeOptions: {
|
|
2298
2291
|
...y,
|
|
2299
2292
|
expandedPaths: bt,
|
|
2300
|
-
onExpandedPathsChange:
|
|
2301
|
-
additionalButtons:
|
|
2293
|
+
onExpandedPathsChange: jt,
|
|
2294
|
+
additionalButtons: Ua
|
|
2302
2295
|
},
|
|
2303
2296
|
showNavigationPanel: g,
|
|
2304
2297
|
navigationPanelOptions: m,
|
|
2305
|
-
gridOptions:
|
|
2298
|
+
gridOptions: Mt,
|
|
2306
2299
|
toolbarOptions: h,
|
|
2307
2300
|
bulkActionsToolbarOptions: f,
|
|
2308
2301
|
deleteConfirmationOptions: b,
|
|
2309
2302
|
destinationFolderPopupOptions: {
|
|
2310
2303
|
...T,
|
|
2311
|
-
destinationFolderPath:
|
|
2304
|
+
destinationFolderPath: vn,
|
|
2312
2305
|
setDestinationFolderPath: tt,
|
|
2313
|
-
header:
|
|
2314
|
-
onCreateFolder:
|
|
2306
|
+
header: uo,
|
|
2307
|
+
onCreateFolder: Ne,
|
|
2315
2308
|
onCreateFolderValidate: W,
|
|
2316
2309
|
folderCreationValidationMessages: be,
|
|
2317
|
-
sourceFolder:
|
|
2310
|
+
sourceFolder: Co
|
|
2318
2311
|
},
|
|
2319
2312
|
currentPath: de,
|
|
2320
2313
|
setCurrentPath: Fe,
|
|
2321
|
-
searchValue:
|
|
2322
|
-
effectiveSearchValue:
|
|
2323
|
-
setSearchValue:
|
|
2314
|
+
searchValue: Nn,
|
|
2315
|
+
effectiveSearchValue: Lt,
|
|
2316
|
+
setSearchValue: zt,
|
|
2324
2317
|
areHiddenFilesVisible: lt,
|
|
2325
|
-
toggleHiddenFilesVisibility:
|
|
2326
|
-
isTreeCollapsed:
|
|
2318
|
+
toggleHiddenFilesVisibility: yn,
|
|
2319
|
+
isTreeCollapsed: wn,
|
|
2327
2320
|
toggleTreeCollapse: vt,
|
|
2328
|
-
setIsTreeCollapsed:
|
|
2321
|
+
setIsTreeCollapsed: oo,
|
|
2329
2322
|
selectedPaths: Ze,
|
|
2330
|
-
selectedFiles:
|
|
2323
|
+
selectedFiles: to,
|
|
2331
2324
|
setSelectedPaths: it,
|
|
2332
2325
|
clearSelection: Xe,
|
|
2333
2326
|
currentFolder: re,
|
|
2334
|
-
gridRows:
|
|
2335
|
-
handleCopyTo:
|
|
2336
|
-
handleMoveTo:
|
|
2337
|
-
handleDuplicate:
|
|
2338
|
-
handleSetCopiedFiles:
|
|
2339
|
-
handleSetMovedFiles:
|
|
2327
|
+
gridRows: za,
|
|
2328
|
+
handleCopyTo: xn,
|
|
2329
|
+
handleMoveTo: bn,
|
|
2330
|
+
handleDuplicate: At ? bo : Tn,
|
|
2331
|
+
handleSetCopiedFiles: co,
|
|
2332
|
+
handleSetMovedFiles: In,
|
|
2340
2333
|
openDestinationFolderPopup: nt,
|
|
2341
|
-
handleCloseDestinationFolderPopup:
|
|
2342
|
-
handleOpenDestinationFolderPopup:
|
|
2343
|
-
destinationFolderMode:
|
|
2344
|
-
handleGridAddSibling:
|
|
2345
|
-
handleGridAddChild:
|
|
2346
|
-
handleTreeAddSibling:
|
|
2347
|
-
handleTreeAddChild:
|
|
2334
|
+
handleCloseDestinationFolderPopup: Rn,
|
|
2335
|
+
handleOpenDestinationFolderPopup: Nt,
|
|
2336
|
+
destinationFolderMode: Fn,
|
|
2337
|
+
handleGridAddSibling: Ga,
|
|
2338
|
+
handleGridAddChild: Va,
|
|
2339
|
+
handleTreeAddSibling: $a,
|
|
2340
|
+
handleTreeAddChild: ja,
|
|
2348
2341
|
handleDownloadFiles: ot,
|
|
2349
2342
|
renamedPath: yt,
|
|
2350
|
-
renamedItem:
|
|
2351
|
-
forbiddenSymbolsRegExp:
|
|
2343
|
+
renamedItem: ao,
|
|
2344
|
+
forbiddenSymbolsRegExp: Ka,
|
|
2352
2345
|
forbiddenSymbolsTooltip: J,
|
|
2353
|
-
onRename:
|
|
2354
|
-
onRenameSave:
|
|
2355
|
-
onRenameCancel:
|
|
2356
|
-
onRenameValidate:
|
|
2357
|
-
getDisplayName:
|
|
2358
|
-
openDeleteConfirmation:
|
|
2359
|
-
closeDeleteConfirmation:
|
|
2346
|
+
onRename: ro,
|
|
2347
|
+
onRenameSave: so,
|
|
2348
|
+
onRenameCancel: io,
|
|
2349
|
+
onRenameValidate: lo,
|
|
2350
|
+
getDisplayName: Ot,
|
|
2351
|
+
openDeleteConfirmation: Kn || Pn,
|
|
2352
|
+
closeDeleteConfirmation: Mn,
|
|
2360
2353
|
confirmDelete: Dt,
|
|
2361
|
-
deleteConfirmationOpen:
|
|
2362
|
-
itemsToDelete:
|
|
2354
|
+
deleteConfirmationOpen: go,
|
|
2355
|
+
itemsToDelete: An,
|
|
2363
2356
|
handlePathChange: qe,
|
|
2364
|
-
handleTreeItemClick:
|
|
2365
|
-
handleBreadcrumbItemClick:
|
|
2366
|
-
handleSearchChange:
|
|
2367
|
-
handleTableRowClick:
|
|
2357
|
+
handleTreeItemClick: _a,
|
|
2358
|
+
handleBreadcrumbItemClick: Ba,
|
|
2359
|
+
handleSearchChange: _t,
|
|
2360
|
+
handleTableRowClick: Wa,
|
|
2368
2361
|
onTableFileClick: I,
|
|
2369
2362
|
handleSelectionClick: S,
|
|
2370
2363
|
onGridApiChange: A,
|
|
2371
|
-
isDragging:
|
|
2372
|
-
uploadError:
|
|
2373
|
-
handleDragEnter:
|
|
2374
|
-
handleDragLeave:
|
|
2364
|
+
isDragging: vo,
|
|
2365
|
+
uploadError: yo,
|
|
2366
|
+
handleDragEnter: Wt,
|
|
2367
|
+
handleDragLeave: xt,
|
|
2375
2368
|
handleDragOver: ct,
|
|
2376
|
-
handleDrop:
|
|
2377
|
-
clearUploadError:
|
|
2369
|
+
handleDrop: zn,
|
|
2370
|
+
clearUploadError: kn,
|
|
2378
2371
|
onUploadFiles: j,
|
|
2379
2372
|
onValidateUpload: te,
|
|
2380
|
-
maxFileSize:
|
|
2373
|
+
maxFileSize: xe,
|
|
2381
2374
|
isDraggingOverWindow: ze,
|
|
2382
2375
|
openFileDialog: dt,
|
|
2383
|
-
fileInputRef:
|
|
2384
|
-
newActions:
|
|
2385
|
-
isNewButtonVisible:
|
|
2386
|
-
isNewButtonDisabled:
|
|
2387
|
-
isCreatingFolder:
|
|
2376
|
+
fileInputRef: On,
|
|
2377
|
+
newActions: ka,
|
|
2378
|
+
isNewButtonVisible: Oa,
|
|
2379
|
+
isNewButtonDisabled: La,
|
|
2380
|
+
isCreatingFolder: N,
|
|
2388
2381
|
newFolderTempId: ee,
|
|
2389
2382
|
createdFolderPath: ie,
|
|
2390
2383
|
newFolderDefaultName: Re,
|
|
2391
|
-
startFolderCreation:
|
|
2392
|
-
cancelFolderCreation:
|
|
2393
|
-
saveFolderCreation:
|
|
2394
|
-
validateFolderName:
|
|
2395
|
-
conflictResolutionPopupOptions:
|
|
2396
|
-
conflictingFiles:
|
|
2397
|
-
conflictResolutionOpen:
|
|
2398
|
-
closeConflictResolution:
|
|
2399
|
-
handleConflictReplace:
|
|
2400
|
-
handleConflictDuplicate:
|
|
2401
|
-
handleConflictCancel:
|
|
2402
|
-
handleConflictDecideForEach:
|
|
2403
|
-
uploadConflictingFiles:
|
|
2404
|
-
uploadConflictResolutionOpen:
|
|
2405
|
-
closeUploadConflictResolution:
|
|
2406
|
-
handleUploadConflictReplace:
|
|
2407
|
-
handleUploadConflictDuplicate:
|
|
2408
|
-
handleUploadConflictCancel:
|
|
2409
|
-
handleUploadConflictDecideForEach:
|
|
2384
|
+
startFolderCreation: qo,
|
|
2385
|
+
cancelFolderCreation: Aa,
|
|
2386
|
+
saveFolderCreation: Pa,
|
|
2387
|
+
validateFolderName: Ma,
|
|
2388
|
+
conflictResolutionPopupOptions: x,
|
|
2389
|
+
conflictingFiles: En,
|
|
2390
|
+
conflictResolutionOpen: ho,
|
|
2391
|
+
closeConflictResolution: Sn,
|
|
2392
|
+
handleConflictReplace: Bt,
|
|
2393
|
+
handleConflictDuplicate: po,
|
|
2394
|
+
handleConflictCancel: fo,
|
|
2395
|
+
handleConflictDecideForEach: mo,
|
|
2396
|
+
uploadConflictingFiles: wo,
|
|
2397
|
+
uploadConflictResolutionOpen: No,
|
|
2398
|
+
closeUploadConflictResolution: Ln,
|
|
2399
|
+
handleUploadConflictReplace: Vt,
|
|
2400
|
+
handleUploadConflictDuplicate: Do,
|
|
2401
|
+
handleUploadConflictCancel: xo,
|
|
2402
|
+
handleUploadConflictDecideForEach: $t,
|
|
2410
2403
|
fileMetadataPopupOptions: De,
|
|
2411
|
-
isMetadataPopupOpen:
|
|
2412
|
-
selectedFileForMetadata:
|
|
2413
|
-
openMetadataPopup:
|
|
2414
|
-
closeMetadataPopup:
|
|
2404
|
+
isMetadataPopupOpen: Za,
|
|
2405
|
+
selectedFileForMetadata: Xa,
|
|
2406
|
+
openMetadataPopup: qa,
|
|
2407
|
+
closeMetadataPopup: Ya,
|
|
2415
2408
|
onGetInfo: G,
|
|
2416
2409
|
onUnshareFiles: ne,
|
|
2417
2410
|
onRemoveFilesAccess: he,
|
|
@@ -2425,28 +2418,28 @@ const ks = ({
|
|
|
2425
2418
|
emptyStateIcon: ae,
|
|
2426
2419
|
emptyStateTitle: Ve,
|
|
2427
2420
|
emptyStateDescription: $e,
|
|
2428
|
-
gridClassName:
|
|
2421
|
+
gridClassName: pn,
|
|
2429
2422
|
sharedWithMeIds: He,
|
|
2430
2423
|
onFolderPopupPathChange: pt,
|
|
2431
|
-
onManagePermissions:
|
|
2424
|
+
onManagePermissions: cn,
|
|
2432
2425
|
onPreview: st,
|
|
2433
2426
|
onOpenInNewTab: ft,
|
|
2434
|
-
previewExtensions:
|
|
2435
|
-
isRenameFileAvailable:
|
|
2436
|
-
isDuplicateFolderAvailable:
|
|
2427
|
+
previewExtensions: Xn,
|
|
2428
|
+
isRenameFileAvailable: qn,
|
|
2429
|
+
isDuplicateFolderAvailable: Yn,
|
|
2437
2430
|
customUploadFileAction: mt,
|
|
2438
|
-
customBreakpointRef:
|
|
2439
|
-
nonClickableTableColumns:
|
|
2431
|
+
customBreakpointRef: hn,
|
|
2432
|
+
nonClickableTableColumns: fn,
|
|
2440
2433
|
hideSearchPathItemName: Qe,
|
|
2441
2434
|
getDisabledTooltip: me,
|
|
2442
2435
|
fileTooLargeTooltip: Ae,
|
|
2443
2436
|
unsupportedFileTypeTooltip: Pe,
|
|
2444
2437
|
showHiddenFileSwitcherInDestinationPopup: Ct,
|
|
2445
|
-
showCreateFolderButtonInDestinationPopup:
|
|
2438
|
+
showCreateFolderButtonInDestinationPopup: mn,
|
|
2446
2439
|
maxNewFolderDepth: ve,
|
|
2447
|
-
onNewFolderDepthExceeded:
|
|
2440
|
+
onNewFolderDepthExceeded: Pt
|
|
2448
2441
|
};
|
|
2449
|
-
return /* @__PURE__ */ o(
|
|
2442
|
+
return /* @__PURE__ */ o(Ia.Provider, { value: Qa, children: t });
|
|
2450
2443
|
}, Os = ({
|
|
2451
2444
|
disabledGridRowIds: e,
|
|
2452
2445
|
gridRows: t,
|
|
@@ -2508,11 +2501,11 @@ const ks = ({
|
|
|
2508
2501
|
r
|
|
2509
2502
|
]);
|
|
2510
2503
|
return /* @__PURE__ */ o(Ie, { children: v && p && Br(
|
|
2511
|
-
/* @__PURE__ */ X(
|
|
2512
|
-
/* @__PURE__ */ o(
|
|
2504
|
+
/* @__PURE__ */ X(gr, { open: !0, placement: "top", children: [
|
|
2505
|
+
/* @__PURE__ */ o(vr, { asChild: !0, children: /* @__PURE__ */ o(
|
|
2513
2506
|
"div",
|
|
2514
2507
|
{
|
|
2515
|
-
className:
|
|
2508
|
+
className: an(
|
|
2516
2509
|
"fixed z-[-1]",
|
|
2517
2510
|
v && "pointer-events-none"
|
|
2518
2511
|
),
|
|
@@ -2524,14 +2517,14 @@ const ks = ({
|
|
|
2524
2517
|
}
|
|
2525
2518
|
}
|
|
2526
2519
|
) }),
|
|
2527
|
-
/* @__PURE__ */ o(
|
|
2520
|
+
/* @__PURE__ */ o(yr, { className: "max-w-[300px] rounded border border-ui-outline-primary bg-ui-popover px-3 py-1.5 text-center text-primary shadow-md fill-ui-popover", children: v })
|
|
2528
2521
|
] }),
|
|
2529
2522
|
document.body
|
|
2530
2523
|
) });
|
|
2531
|
-
},
|
|
2532
|
-
const [e, t] = z(
|
|
2524
|
+
}, ua = () => typeof window < "u" && window.innerWidth < 640, Vo = () => {
|
|
2525
|
+
const [e, t] = z(ua());
|
|
2533
2526
|
return pe(() => {
|
|
2534
|
-
const s = () => t(
|
|
2527
|
+
const s = () => t(ua());
|
|
2535
2528
|
return window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
|
|
2536
2529
|
}, []), e;
|
|
2537
2530
|
}, Ls = ({
|
|
@@ -2556,24 +2549,24 @@ const ks = ({
|
|
|
2556
2549
|
path: h,
|
|
2557
2550
|
collapsedFileTree: f = !1,
|
|
2558
2551
|
alertProps: T,
|
|
2559
|
-
processDestinationFolderPath:
|
|
2552
|
+
processDestinationFolderPath: x,
|
|
2560
2553
|
...F
|
|
2561
2554
|
}) => {
|
|
2562
|
-
const [I, S] = z(!1), [A, _] = z(!1), U = ce(null), P =
|
|
2555
|
+
const [I, S] = z(!1), [A, _] = z(!1), U = ce(null), P = Vo(), k = d((j) => {
|
|
2563
2556
|
S(j);
|
|
2564
2557
|
}, []), B = $(() => {
|
|
2565
2558
|
const j = [];
|
|
2566
2559
|
return v && j.push({
|
|
2567
2560
|
key: "add-folder",
|
|
2568
2561
|
label: i,
|
|
2569
|
-
icon: /* @__PURE__ */ o(
|
|
2562
|
+
icon: /* @__PURE__ */ o(Qo, { ...M, className: "text-secondary" }),
|
|
2570
2563
|
onClick: () => {
|
|
2571
2564
|
U.current?.createFolder(), _(!1);
|
|
2572
2565
|
}
|
|
2573
2566
|
}), c && j.push({
|
|
2574
2567
|
key: "show-hidden-files",
|
|
2575
2568
|
label: C,
|
|
2576
|
-
icon: /* @__PURE__ */ o(
|
|
2569
|
+
icon: /* @__PURE__ */ o(So, { ...M, className: "text-secondary" }),
|
|
2577
2570
|
onClick: () => {
|
|
2578
2571
|
S((te) => !te), _(!1);
|
|
2579
2572
|
}
|
|
@@ -2586,26 +2579,24 @@ const ks = ({
|
|
|
2586
2579
|
]), L = d(
|
|
2587
2580
|
(j) => {
|
|
2588
2581
|
if (j) {
|
|
2589
|
-
let te =
|
|
2582
|
+
let te = x ? x(j) : j;
|
|
2590
2583
|
s?.(te), a?.(te);
|
|
2591
2584
|
}
|
|
2592
2585
|
},
|
|
2593
2586
|
[
|
|
2594
2587
|
s,
|
|
2595
2588
|
a,
|
|
2596
|
-
|
|
2589
|
+
x
|
|
2597
2590
|
]
|
|
2598
|
-
),
|
|
2591
|
+
), q = p === ge.Copy ? "Copy to" : "Move to", J = $(() => !h || !b ? !1 : b === h, [h, b]);
|
|
2599
2592
|
return /* @__PURE__ */ o(
|
|
2600
|
-
|
|
2593
|
+
_o,
|
|
2601
2594
|
{
|
|
2602
2595
|
open: n,
|
|
2603
2596
|
onClose: () => {
|
|
2604
2597
|
e();
|
|
2605
2598
|
},
|
|
2606
|
-
size:
|
|
2607
|
-
dividerFooter: !0,
|
|
2608
|
-
dividers: !1,
|
|
2599
|
+
size: Gn.Lg,
|
|
2609
2600
|
className: "md:!h-[800px] !bg-layer-sunken",
|
|
2610
2601
|
footer: /* @__PURE__ */ X("div", { className: "flex justify-between items-center gap-2 p-4 md:px-6", children: [
|
|
2611
2602
|
/* @__PURE__ */ o("div", { className: "flex items-center gap-4 min-w-0", children: P ? /* @__PURE__ */ o(
|
|
@@ -2615,21 +2606,21 @@ const ks = ({
|
|
|
2615
2606
|
open: A,
|
|
2616
2607
|
onOpenChange: _,
|
|
2617
2608
|
children: /* @__PURE__ */ o(
|
|
2618
|
-
|
|
2609
|
+
Et,
|
|
2619
2610
|
{
|
|
2620
|
-
size:
|
|
2611
|
+
size: jn.Large,
|
|
2621
2612
|
"aria-label": "More options",
|
|
2622
|
-
icon: /* @__PURE__ */ o(
|
|
2613
|
+
icon: /* @__PURE__ */ o(ln, { ...M })
|
|
2623
2614
|
}
|
|
2624
2615
|
)
|
|
2625
2616
|
}
|
|
2626
2617
|
) : /* @__PURE__ */ X(Ie, { children: [
|
|
2627
2618
|
v && /* @__PURE__ */ o(
|
|
2628
|
-
|
|
2619
|
+
on,
|
|
2629
2620
|
{
|
|
2630
2621
|
label: i,
|
|
2631
|
-
appearance:
|
|
2632
|
-
iconBefore: /* @__PURE__ */ o(
|
|
2622
|
+
appearance: ga.Ghost,
|
|
2623
|
+
iconBefore: /* @__PURE__ */ o(Qo, { ...M }),
|
|
2633
2624
|
onClick: () => {
|
|
2634
2625
|
U.current?.createFolder();
|
|
2635
2626
|
}
|
|
@@ -2637,7 +2628,7 @@ const ks = ({
|
|
|
2637
2628
|
),
|
|
2638
2629
|
v && c && /* @__PURE__ */ o("div", { className: "w-px h-[26px] bg-controls-disable-accent my-2" }),
|
|
2639
2630
|
c && /* @__PURE__ */ o(Ie, { children: /* @__PURE__ */ o("div", { className: "inline-flex items-center cursor-pointer", children: /* @__PURE__ */ o(
|
|
2640
|
-
|
|
2631
|
+
va,
|
|
2641
2632
|
{
|
|
2642
2633
|
label: C,
|
|
2643
2634
|
isOn: I,
|
|
@@ -2647,9 +2638,9 @@ const ks = ({
|
|
|
2647
2638
|
) }) })
|
|
2648
2639
|
] }) }),
|
|
2649
2640
|
/* @__PURE__ */ X("div", { className: "flex space-x-4 items-center", children: [
|
|
2650
|
-
/* @__PURE__ */ o(
|
|
2651
|
-
J ? /* @__PURE__ */ o(
|
|
2652
|
-
|
|
2641
|
+
/* @__PURE__ */ o(rn, { onClick: e, label: "Cancel" }),
|
|
2642
|
+
J ? /* @__PURE__ */ o(Vn, { tooltip: D, children: /* @__PURE__ */ o(
|
|
2643
|
+
on,
|
|
2653
2644
|
{
|
|
2654
2645
|
onClick: t,
|
|
2655
2646
|
label: p === "copy" ? r : l,
|
|
@@ -2657,7 +2648,7 @@ const ks = ({
|
|
|
2657
2648
|
"aria-disabled": J
|
|
2658
2649
|
}
|
|
2659
2650
|
) }) : /* @__PURE__ */ o(
|
|
2660
|
-
|
|
2651
|
+
on,
|
|
2661
2652
|
{
|
|
2662
2653
|
onClick: t,
|
|
2663
2654
|
label: p === "copy" ? r : l
|
|
@@ -2665,9 +2656,10 @@ const ks = ({
|
|
|
2665
2656
|
)
|
|
2666
2657
|
] })
|
|
2667
2658
|
] }),
|
|
2668
|
-
header: m ??
|
|
2659
|
+
header: m ?? q,
|
|
2660
|
+
ariaLabel: q,
|
|
2669
2661
|
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(
|
|
2662
|
+
T && /* @__PURE__ */ o("div", { className: "px-6 mb-4 pt-4", children: /* @__PURE__ */ o(wr, { ...T }) }),
|
|
2671
2663
|
/* @__PURE__ */ o("div", { className: "flex-1 min-h-0", children: /* @__PURE__ */ o(
|
|
2672
2664
|
ui,
|
|
2673
2665
|
{
|
|
@@ -2704,8 +2696,8 @@ const ks = ({
|
|
|
2704
2696
|
};
|
|
2705
2697
|
function zs({
|
|
2706
2698
|
actions: e,
|
|
2707
|
-
direction: t =
|
|
2708
|
-
moreButtonWidth: s =
|
|
2699
|
+
direction: t = tn.Normal,
|
|
2700
|
+
moreButtonWidth: s = ya,
|
|
2709
2701
|
actionsGap: a = 8,
|
|
2710
2702
|
containerPadding: n = 8,
|
|
2711
2703
|
dependencies: r = []
|
|
@@ -2714,7 +2706,7 @@ function zs({
|
|
|
2714
2706
|
(b, D) => {
|
|
2715
2707
|
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
2708
|
let I = 0, S = 0;
|
|
2717
|
-
if (t ===
|
|
2709
|
+
if (t === tn.Reverse)
|
|
2718
2710
|
for (let A = b.length - 1; A >= 0 && (I += b[A] + a, !(I > F)); A--)
|
|
2719
2711
|
S++;
|
|
2720
2712
|
else
|
|
@@ -2726,7 +2718,7 @@ function zs({
|
|
|
2726
2718
|
},
|
|
2727
2719
|
[a, n, t, s]
|
|
2728
2720
|
);
|
|
2729
|
-
|
|
2721
|
+
pr(
|
|
2730
2722
|
() => {
|
|
2731
2723
|
if (!i.current || !l.current) return;
|
|
2732
2724
|
const D = Array.from(i.current.children).map(
|
|
@@ -2756,9 +2748,9 @@ function zs({
|
|
|
2756
2748
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2757
2749
|
...r
|
|
2758
2750
|
]);
|
|
2759
|
-
const g = t ===
|
|
2751
|
+
const g = t === tn.Reverse ? e.slice(0, e.length - v) : e.slice(v);
|
|
2760
2752
|
return {
|
|
2761
|
-
visibleActions: t ===
|
|
2753
|
+
visibleActions: t === tn.Reverse ? e.slice(e.length - v) : e.slice(0, v),
|
|
2762
2754
|
hiddenActions: g,
|
|
2763
2755
|
refs: {
|
|
2764
2756
|
containerRef: l,
|
|
@@ -2769,13 +2761,13 @@ function zs({
|
|
|
2769
2761
|
};
|
|
2770
2762
|
}
|
|
2771
2763
|
const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCount: a }) => {
|
|
2772
|
-
const n =
|
|
2764
|
+
const n = Vo(), {
|
|
2773
2765
|
refs: { containerRef: r, leftSectionRef: l, measureRef: i },
|
|
2774
2766
|
visibleActions: p,
|
|
2775
2767
|
hiddenActions: C
|
|
2776
2768
|
} = zs({
|
|
2777
2769
|
actions: s,
|
|
2778
|
-
direction:
|
|
2770
|
+
direction: tn.Reverse,
|
|
2779
2771
|
dependencies: [n],
|
|
2780
2772
|
actionsGap: _s,
|
|
2781
2773
|
containerPadding: Bs
|
|
@@ -2786,7 +2778,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
2786
2778
|
{
|
|
2787
2779
|
ref: i,
|
|
2788
2780
|
className: "absolute top-0 left-0 invisible pointer-events-none overflow-hidden whitespace-nowrap flex gap-3",
|
|
2789
|
-
children: s.map(({ key: v, icon: u, title: y }) => /* @__PURE__ */ o(
|
|
2781
|
+
children: s.map(({ key: v, icon: u, title: y }) => /* @__PURE__ */ o(rn, { iconBefore: u, label: y }, v))
|
|
2790
2782
|
}
|
|
2791
2783
|
),
|
|
2792
2784
|
/* @__PURE__ */ X(
|
|
@@ -2798,13 +2790,13 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
2798
2790
|
"aria-label": "File bulk actions",
|
|
2799
2791
|
children: [
|
|
2800
2792
|
/* @__PURE__ */ o("div", { ref: l, children: /* @__PURE__ */ o(
|
|
2801
|
-
|
|
2793
|
+
on,
|
|
2802
2794
|
{
|
|
2803
2795
|
label: c,
|
|
2804
2796
|
onClick: t,
|
|
2805
2797
|
textClassName: "text-accent whitespace-nowrap",
|
|
2806
|
-
appearance:
|
|
2807
|
-
iconBefore: /* @__PURE__ */ o(
|
|
2798
|
+
appearance: ga.Ghost,
|
|
2799
|
+
iconBefore: /* @__PURE__ */ o(ar, { ...M })
|
|
2808
2800
|
}
|
|
2809
2801
|
) }),
|
|
2810
2802
|
/* @__PURE__ */ X("div", { className: "flex flex-1 w-full gap-3 items-center justify-end", children: [
|
|
@@ -2814,17 +2806,17 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
2814
2806
|
items: C,
|
|
2815
2807
|
allowedPlacements: ["bottom", "bottom-start"],
|
|
2816
2808
|
children: /* @__PURE__ */ o(
|
|
2817
|
-
|
|
2809
|
+
Et,
|
|
2818
2810
|
{
|
|
2819
2811
|
className: "h-[38px]",
|
|
2820
|
-
icon: /* @__PURE__ */ o(
|
|
2812
|
+
icon: /* @__PURE__ */ o(ln, { ...M })
|
|
2821
2813
|
}
|
|
2822
2814
|
)
|
|
2823
2815
|
}
|
|
2824
2816
|
),
|
|
2825
2817
|
p.map(
|
|
2826
2818
|
({ key: v, icon: u, tooltip: y, title: g, onClick: m, disabled: b }) => /* @__PURE__ */ o(
|
|
2827
|
-
|
|
2819
|
+
rn,
|
|
2828
2820
|
{
|
|
2829
2821
|
className: "!p-[9px]",
|
|
2830
2822
|
iconBefore: u,
|
|
@@ -2851,7 +2843,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
2851
2843
|
titleRenderer: l,
|
|
2852
2844
|
contentRenderer: i
|
|
2853
2845
|
}) => {
|
|
2854
|
-
const p = t.map((y) => y.name), c = l?.(p) ||
|
|
2846
|
+
const p = t.map((y) => y.name), C = "Confirm Deleting Items", c = l?.(p) || C, v = /* @__PURE__ */ X("div", { className: "px-6 py-3 dial-small-text", children: [
|
|
2855
2847
|
/* @__PURE__ */ o("p", { className: "text-secondary mb-3", children: t.length === 1 ? /* @__PURE__ */ X(Ie, { children: [
|
|
2856
2848
|
"Do you want to delete file or folder",
|
|
2857
2849
|
" ",
|
|
@@ -2877,19 +2869,20 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
2877
2869
|
] }) })
|
|
2878
2870
|
] }), u = i?.(p) || v;
|
|
2879
2871
|
return /* @__PURE__ */ o(
|
|
2880
|
-
|
|
2872
|
+
Nr,
|
|
2881
2873
|
{
|
|
2882
2874
|
open: e,
|
|
2883
2875
|
header: c,
|
|
2876
|
+
ariaLabel: C,
|
|
2884
2877
|
confirmLabel: r,
|
|
2885
2878
|
cancelLabel: n,
|
|
2886
|
-
variant:
|
|
2879
|
+
variant: Dr.Danger,
|
|
2887
2880
|
onClose: s,
|
|
2888
2881
|
onConfirm: a,
|
|
2889
2882
|
children: u
|
|
2890
2883
|
}
|
|
2891
2884
|
);
|
|
2892
|
-
},
|
|
2885
|
+
}, ha = (e) => e.split("/").map((t) => t.trim()).filter(Boolean), Us = "w-full flex items-center justify-between gap-4", Gs = "min-w-0 h-[38px] flex-1 overflow-hidden bg-layer-raised px-3 flex items-center rounded", Vs = "w-[260px]", $s = ({
|
|
2893
2886
|
ariaLabel: e = "Breadcrumb",
|
|
2894
2887
|
labelClassName: t,
|
|
2895
2888
|
onItemClick: s,
|
|
@@ -2912,14 +2905,14 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
2912
2905
|
}) => {
|
|
2913
2906
|
const f = $(() => {
|
|
2914
2907
|
if (!a) return;
|
|
2915
|
-
let A =
|
|
2908
|
+
let A = ha(a);
|
|
2916
2909
|
const _ = [...A];
|
|
2917
2910
|
let U = 0;
|
|
2918
2911
|
if (i) {
|
|
2919
|
-
const k =
|
|
2912
|
+
const k = ha(i);
|
|
2920
2913
|
if (k.length) {
|
|
2921
2914
|
const B = A.findIndex(
|
|
2922
|
-
(L,
|
|
2915
|
+
(L, q) => k.every((J, j) => A[q + j] === J)
|
|
2923
2916
|
);
|
|
2924
2917
|
B !== -1 && (U = k.length, A = [
|
|
2925
2918
|
...A.slice(0, B),
|
|
@@ -2929,7 +2922,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
2929
2922
|
}
|
|
2930
2923
|
if (!A.length) return [{ label: "/" }];
|
|
2931
2924
|
const P = A.map((k, B) => {
|
|
2932
|
-
const L = B < A.length - U ? B : B + U,
|
|
2925
|
+
const L = B < A.length - U ? B : B + U, q = _.slice(0, L + 1), J = typeof n == "function" ? n(q, L) : void 0;
|
|
2933
2926
|
return {
|
|
2934
2927
|
label: k,
|
|
2935
2928
|
href: J,
|
|
@@ -2941,9 +2934,9 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
2941
2934
|
if (r && l) {
|
|
2942
2935
|
const k = r.split("/").filter(Boolean), B = a.split("/").filter(Boolean);
|
|
2943
2936
|
if (k.every(
|
|
2944
|
-
(
|
|
2937
|
+
(q, J) => B[J] === q
|
|
2945
2938
|
) && P.length > 0) {
|
|
2946
|
-
const
|
|
2939
|
+
const q = P.slice(k.length);
|
|
2947
2940
|
return [
|
|
2948
2941
|
{
|
|
2949
2942
|
label: l,
|
|
@@ -2952,7 +2945,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
2952
2945
|
J.preventDefault(), s(r);
|
|
2953
2946
|
} : void 0
|
|
2954
2947
|
},
|
|
2955
|
-
...
|
|
2948
|
+
...q
|
|
2956
2949
|
];
|
|
2957
2950
|
}
|
|
2958
2951
|
}
|
|
@@ -2964,25 +2957,25 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
2964
2957
|
l,
|
|
2965
2958
|
n,
|
|
2966
2959
|
s
|
|
2967
|
-
]), [T,
|
|
2960
|
+
]), [T, x] = z(!1), F = d(() => {
|
|
2968
2961
|
if (h && !T) {
|
|
2969
|
-
|
|
2962
|
+
x(!0);
|
|
2970
2963
|
const A = document.getElementById(u);
|
|
2971
2964
|
A && A.focus();
|
|
2972
2965
|
}
|
|
2973
2966
|
}, [u, T, h]), I = d(() => {
|
|
2974
2967
|
(!v || String(v).trim() === "") && m?.("");
|
|
2975
2968
|
}, [v, m]), S = d(() => h && T ? /* @__PURE__ */ o(
|
|
2976
|
-
|
|
2969
|
+
rn,
|
|
2977
2970
|
{
|
|
2978
2971
|
className: "!p-[9px]",
|
|
2979
|
-
iconBefore: /* @__PURE__ */ o(
|
|
2972
|
+
iconBefore: /* @__PURE__ */ o(rr, { ...M }),
|
|
2980
2973
|
onClick: () => {
|
|
2981
|
-
|
|
2974
|
+
x(!1), m?.("");
|
|
2982
2975
|
}
|
|
2983
2976
|
}
|
|
2984
2977
|
) : /* @__PURE__ */ o("div", { className: Gs, children: /* @__PURE__ */ o(
|
|
2985
|
-
|
|
2978
|
+
xr,
|
|
2986
2979
|
{
|
|
2987
2980
|
pathItems: f,
|
|
2988
2981
|
ariaLabel: e,
|
|
@@ -3022,7 +3015,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3022
3015
|
"aria-label": "Search",
|
|
3023
3016
|
onClick: F,
|
|
3024
3017
|
children: /* @__PURE__ */ o(
|
|
3025
|
-
|
|
3018
|
+
br,
|
|
3026
3019
|
{
|
|
3027
3020
|
id: u,
|
|
3028
3021
|
value: v ?? "",
|
|
@@ -3048,7 +3041,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3048
3041
|
onToggleHiddenFiles: n,
|
|
3049
3042
|
isNewButtonVisible: r,
|
|
3050
3043
|
isNewButtonDisabled: l,
|
|
3051
|
-
newButtonVariant: i =
|
|
3044
|
+
newButtonVariant: i = Tr.Primary,
|
|
3052
3045
|
newButtonDropdownItems: p = [],
|
|
3053
3046
|
newButtonLabel: C = "New",
|
|
3054
3047
|
hiddenFilesSwitcherLabel: c = "Hidden files",
|
|
@@ -3057,11 +3050,11 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3057
3050
|
showHiddenFilesToggle: y = !0,
|
|
3058
3051
|
disabledNewButtonTooltip: g
|
|
3059
3052
|
}) => {
|
|
3060
|
-
const m =
|
|
3053
|
+
const m = Vo(), b = $(() => [
|
|
3061
3054
|
{
|
|
3062
3055
|
key: "hidden-files-switch",
|
|
3063
3056
|
label: a ? u : v,
|
|
3064
|
-
icon: a ? /* @__PURE__ */ o(
|
|
3057
|
+
icon: a ? /* @__PURE__ */ o(sr, { ...M, className: "text-secondary" }) : /* @__PURE__ */ o(So, { ...M, className: "text-secondary" }),
|
|
3065
3058
|
onClick: () => n?.(!a)
|
|
3066
3059
|
}
|
|
3067
3060
|
], [
|
|
@@ -3070,18 +3063,18 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3070
3063
|
v,
|
|
3071
3064
|
n
|
|
3072
3065
|
]), D = () => e && t && s ? /* @__PURE__ */ o(
|
|
3073
|
-
|
|
3066
|
+
Rr,
|
|
3074
3067
|
{
|
|
3075
3068
|
tabs: e,
|
|
3076
3069
|
activeTab: t,
|
|
3077
3070
|
onClick: (T) => s(T),
|
|
3078
|
-
screenThreshold:
|
|
3071
|
+
screenThreshold: Ir.Tablet,
|
|
3079
3072
|
smallScreenContainerClassName: "w-fit bg-transparent h-[38px] overflow-hidden",
|
|
3080
3073
|
smallScreenDropdownItemClassName: "px-3 h-[38px]"
|
|
3081
3074
|
}
|
|
3082
3075
|
) : null, h = () => /* @__PURE__ */ X(Ie, { children: [
|
|
3083
3076
|
y && /* @__PURE__ */ o(
|
|
3084
|
-
|
|
3077
|
+
va,
|
|
3085
3078
|
{
|
|
3086
3079
|
switchId: "hidden-files-switch",
|
|
3087
3080
|
label: c,
|
|
@@ -3090,11 +3083,11 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3090
3083
|
}
|
|
3091
3084
|
),
|
|
3092
3085
|
r && /* @__PURE__ */ o(
|
|
3093
|
-
|
|
3086
|
+
Vn,
|
|
3094
3087
|
{
|
|
3095
3088
|
tooltip: l && g ? g : void 0,
|
|
3096
3089
|
children: /* @__PURE__ */ o(
|
|
3097
|
-
|
|
3090
|
+
ta,
|
|
3098
3091
|
{
|
|
3099
3092
|
label: C,
|
|
3100
3093
|
variant: i,
|
|
@@ -3111,20 +3104,20 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3111
3104
|
items: b,
|
|
3112
3105
|
allowedPlacements: ["bottom", "bottom-start"],
|
|
3113
3106
|
children: /* @__PURE__ */ o(
|
|
3114
|
-
|
|
3107
|
+
Et,
|
|
3115
3108
|
{
|
|
3116
|
-
size:
|
|
3117
|
-
icon: /* @__PURE__ */ o(
|
|
3109
|
+
size: jn.Small,
|
|
3110
|
+
icon: /* @__PURE__ */ o(ln, { stroke: 2, size: zo.SM })
|
|
3118
3111
|
}
|
|
3119
3112
|
)
|
|
3120
3113
|
}
|
|
3121
3114
|
),
|
|
3122
3115
|
r ? /* @__PURE__ */ o(
|
|
3123
|
-
|
|
3116
|
+
Vn,
|
|
3124
3117
|
{
|
|
3125
3118
|
tooltip: l && g ? g : void 0,
|
|
3126
3119
|
children: /* @__PURE__ */ o(
|
|
3127
|
-
|
|
3120
|
+
ta,
|
|
3128
3121
|
{
|
|
3129
3122
|
label: C,
|
|
3130
3123
|
variant: i,
|
|
@@ -3139,7 +3132,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3139
3132
|
/* @__PURE__ */ o("div", { className: "flex-1 min-w-0", children: D() }),
|
|
3140
3133
|
/* @__PURE__ */ o("div", { className: "flex gap-2 shrink-0 items-center", children: m ? f() : h() })
|
|
3141
3134
|
] });
|
|
3142
|
-
}, Zs = 100,
|
|
3135
|
+
}, Zs = 100, Qt = 16, Ue = "text-secondary", Hn = "text-primary min-w-0", Xs = "text-primary break-words min-w-0", Jt = "bg-layer-sunken", qs = ({
|
|
3143
3136
|
open: e,
|
|
3144
3137
|
onClose: t,
|
|
3145
3138
|
fileMetadata: s,
|
|
@@ -3153,13 +3146,13 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3153
3146
|
dateLocale: c = "en-US",
|
|
3154
3147
|
dateOptions: v
|
|
3155
3148
|
}) => /* @__PURE__ */ o(
|
|
3156
|
-
|
|
3149
|
+
_o,
|
|
3157
3150
|
{
|
|
3158
3151
|
open: e,
|
|
3159
3152
|
onClose: t,
|
|
3160
|
-
size:
|
|
3153
|
+
size: Gn.Sm,
|
|
3161
3154
|
header: n,
|
|
3162
|
-
|
|
3155
|
+
ariaLabel: "File information",
|
|
3163
3156
|
children: /* @__PURE__ */ o("div", { className: "px-6 py-4", children: /* @__PURE__ */ o(
|
|
3164
3157
|
"div",
|
|
3165
3158
|
{
|
|
@@ -3168,59 +3161,59 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3168
3161
|
children: a ? /* @__PURE__ */ X(Ie, { children: [
|
|
3169
3162
|
/* @__PURE__ */ o("div", { className: Ue, children: r }),
|
|
3170
3163
|
/* @__PURE__ */ o(
|
|
3171
|
-
|
|
3164
|
+
qt,
|
|
3172
3165
|
{
|
|
3173
|
-
variant:
|
|
3166
|
+
variant: Yt.Text,
|
|
3174
3167
|
width: "100%",
|
|
3175
|
-
height:
|
|
3176
|
-
className:
|
|
3168
|
+
height: Qt,
|
|
3169
|
+
className: Jt
|
|
3177
3170
|
}
|
|
3178
3171
|
),
|
|
3179
3172
|
/* @__PURE__ */ o("div", { className: Ue, children: i }),
|
|
3180
3173
|
/* @__PURE__ */ o(
|
|
3181
|
-
|
|
3174
|
+
qt,
|
|
3182
3175
|
{
|
|
3183
|
-
variant:
|
|
3176
|
+
variant: Yt.Text,
|
|
3184
3177
|
width: "90%",
|
|
3185
|
-
height:
|
|
3186
|
-
className:
|
|
3178
|
+
height: Qt,
|
|
3179
|
+
className: Jt
|
|
3187
3180
|
}
|
|
3188
3181
|
),
|
|
3189
3182
|
/* @__PURE__ */ o("div", { className: Ue, children: p }),
|
|
3190
3183
|
/* @__PURE__ */ o(
|
|
3191
|
-
|
|
3184
|
+
qt,
|
|
3192
3185
|
{
|
|
3193
|
-
variant:
|
|
3186
|
+
variant: Yt.Text,
|
|
3194
3187
|
width: "60%",
|
|
3195
|
-
height:
|
|
3196
|
-
className:
|
|
3188
|
+
height: Qt,
|
|
3189
|
+
className: Jt
|
|
3197
3190
|
}
|
|
3198
3191
|
),
|
|
3199
3192
|
/* @__PURE__ */ o("div", { className: Ue, children: C }),
|
|
3200
3193
|
/* @__PURE__ */ o(
|
|
3201
|
-
|
|
3194
|
+
qt,
|
|
3202
3195
|
{
|
|
3203
|
-
variant:
|
|
3196
|
+
variant: Yt.Text,
|
|
3204
3197
|
width: "80%",
|
|
3205
|
-
height:
|
|
3206
|
-
className:
|
|
3198
|
+
height: Qt,
|
|
3199
|
+
className: Jt
|
|
3207
3200
|
}
|
|
3208
3201
|
),
|
|
3209
3202
|
/* @__PURE__ */ o("div", { className: Ue, children: l }),
|
|
3210
3203
|
/* @__PURE__ */ o(
|
|
3211
|
-
|
|
3204
|
+
qt,
|
|
3212
3205
|
{
|
|
3213
|
-
variant:
|
|
3206
|
+
variant: Yt.Text,
|
|
3214
3207
|
width: "70%",
|
|
3215
|
-
height:
|
|
3216
|
-
className:
|
|
3208
|
+
height: Qt,
|
|
3209
|
+
className: Jt
|
|
3217
3210
|
}
|
|
3218
3211
|
)
|
|
3219
3212
|
] }) : s ? /* @__PURE__ */ X(Ie, { children: [
|
|
3220
3213
|
/* @__PURE__ */ o("div", { className: Ue, children: r }),
|
|
3221
|
-
/* @__PURE__ */ o("div", { className:
|
|
3214
|
+
/* @__PURE__ */ o("div", { className: Hn, children: /* @__PURE__ */ o(Tt, { text: s.name }) }),
|
|
3222
3215
|
/* @__PURE__ */ o("div", { className: Ue, children: i }),
|
|
3223
|
-
/* @__PURE__ */ o("div", { className:
|
|
3216
|
+
/* @__PURE__ */ o("div", { className: Hn, children: /* @__PURE__ */ o(
|
|
3224
3217
|
Tt,
|
|
3225
3218
|
{
|
|
3226
3219
|
text: ss(
|
|
@@ -3231,14 +3224,14 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3231
3224
|
}
|
|
3232
3225
|
) }),
|
|
3233
3226
|
/* @__PURE__ */ o("div", { className: Ue, children: p }),
|
|
3234
|
-
/* @__PURE__ */ o("div", { className:
|
|
3227
|
+
/* @__PURE__ */ o("div", { className: Hn, children: /* @__PURE__ */ o(
|
|
3235
3228
|
Tt,
|
|
3236
3229
|
{
|
|
3237
|
-
text:
|
|
3230
|
+
text: sn(s.contentLength)
|
|
3238
3231
|
}
|
|
3239
3232
|
) }),
|
|
3240
3233
|
/* @__PURE__ */ o("div", { className: Ue, children: C }),
|
|
3241
|
-
/* @__PURE__ */ o("div", { className:
|
|
3234
|
+
/* @__PURE__ */ o("div", { className: Hn, children: /* @__PURE__ */ o(Tt, { text: s.author || "—" }) }),
|
|
3242
3235
|
/* @__PURE__ */ o("div", { className: Ue, children: l }),
|
|
3243
3236
|
/* @__PURE__ */ o("div", { className: Xs, children: decodeURIComponent(s.path) })
|
|
3244
3237
|
] }) : null
|
|
@@ -3248,7 +3241,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3248
3241
|
), Ys = {
|
|
3249
3242
|
size: 10,
|
|
3250
3243
|
stroke: 2
|
|
3251
|
-
}, Ks = 26,
|
|
3244
|
+
}, Ks = 26, en = "__new_folder", Qs = ({
|
|
3252
3245
|
name: e,
|
|
3253
3246
|
type: t,
|
|
3254
3247
|
shared: s = !1,
|
|
@@ -3261,7 +3254,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3261
3254
|
const p = (C) => /* @__PURE__ */ X("span", { className: "inline-flex relative text-secondary", role: "img", children: [
|
|
3262
3255
|
C,
|
|
3263
3256
|
s && /* @__PURE__ */ o("span", { className: "absolute -bottom-0.5 -left-0.5", children: /* @__PURE__ */ o(
|
|
3264
|
-
|
|
3257
|
+
na,
|
|
3265
3258
|
{
|
|
3266
3259
|
className: n,
|
|
3267
3260
|
sharedIndicatorTooltip: r
|
|
@@ -3273,13 +3266,13 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3273
3266
|
if (t === We.File) {
|
|
3274
3267
|
const C = l || (e.includes(".") ? e.split(".").pop() : void 0);
|
|
3275
3268
|
return /* @__PURE__ */ o(
|
|
3276
|
-
|
|
3269
|
+
Fr,
|
|
3277
3270
|
{
|
|
3278
3271
|
...i,
|
|
3279
3272
|
extension: C ?? "",
|
|
3280
3273
|
className: "text-secondary",
|
|
3281
3274
|
indicator: s ? /* @__PURE__ */ o(
|
|
3282
|
-
|
|
3275
|
+
na,
|
|
3283
3276
|
{
|
|
3284
3277
|
className: n,
|
|
3285
3278
|
sharedIndicatorTooltip: r
|
|
@@ -3291,10 +3284,10 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3291
3284
|
}
|
|
3292
3285
|
return t === We.Folder ? p(
|
|
3293
3286
|
/* @__PURE__ */ o(
|
|
3294
|
-
|
|
3287
|
+
Er,
|
|
3295
3288
|
{
|
|
3296
3289
|
icon: /* @__PURE__ */ o(
|
|
3297
|
-
|
|
3290
|
+
pa,
|
|
3298
3291
|
{
|
|
3299
3292
|
className: i.className,
|
|
3300
3293
|
size: i.size ?? M.size,
|
|
@@ -3328,22 +3321,22 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3328
3321
|
}) => {
|
|
3329
3322
|
const f = () => {
|
|
3330
3323
|
const T = v?.startsWith(
|
|
3331
|
-
`${
|
|
3324
|
+
`${Eo.Warning}__`
|
|
3332
3325
|
);
|
|
3333
3326
|
if (!c && !T) return null;
|
|
3334
|
-
const
|
|
3335
|
-
`${
|
|
3327
|
+
const x = v?.replace(
|
|
3328
|
+
`${Eo.Warning}__`,
|
|
3336
3329
|
""
|
|
3337
3330
|
);
|
|
3338
|
-
return /* @__PURE__ */ o(
|
|
3339
|
-
|
|
3331
|
+
return /* @__PURE__ */ o(Vn, { tooltip: x, children: y || (T ? /* @__PURE__ */ o(
|
|
3332
|
+
lr,
|
|
3340
3333
|
{
|
|
3341
3334
|
...M,
|
|
3342
3335
|
className: "text-warning-icon",
|
|
3343
3336
|
"aria-label": "warning"
|
|
3344
3337
|
}
|
|
3345
3338
|
) : /* @__PURE__ */ o(
|
|
3346
|
-
|
|
3339
|
+
ir,
|
|
3347
3340
|
{
|
|
3348
3341
|
...M,
|
|
3349
3342
|
className: "text-error",
|
|
@@ -3373,7 +3366,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3373
3366
|
Pr,
|
|
3374
3367
|
{
|
|
3375
3368
|
containerClassName: Ee(
|
|
3376
|
-
"!h-
|
|
3369
|
+
"!h-5 !py-[1px] !pl-[7px] pr-[7px]",
|
|
3377
3370
|
u
|
|
3378
3371
|
),
|
|
3379
3372
|
id: s,
|
|
@@ -3385,7 +3378,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3385
3378
|
}
|
|
3386
3379
|
)
|
|
3387
3380
|
] });
|
|
3388
|
-
},
|
|
3381
|
+
}, $n = ({
|
|
3389
3382
|
name: e,
|
|
3390
3383
|
type: t,
|
|
3391
3384
|
elementId: s,
|
|
@@ -3393,7 +3386,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3393
3386
|
loading: n = !1,
|
|
3394
3387
|
creating: r = !1,
|
|
3395
3388
|
shared: l = !1,
|
|
3396
|
-
iconSize: i =
|
|
3389
|
+
iconSize: i = ya,
|
|
3397
3390
|
validate: p,
|
|
3398
3391
|
onSave: C,
|
|
3399
3392
|
fileExtension: c,
|
|
@@ -3408,7 +3401,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3408
3401
|
forbiddenSymbolsTooltip: f,
|
|
3409
3402
|
...T
|
|
3410
3403
|
}) => {
|
|
3411
|
-
const { value:
|
|
3404
|
+
const { value: x, invalid: F, invalidMessage: I, onChange: S, inputRef: A } = Mr({
|
|
3412
3405
|
value: e,
|
|
3413
3406
|
isEditing: a,
|
|
3414
3407
|
isCreating: r,
|
|
@@ -3420,7 +3413,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3420
3413
|
onCreateFolderSave: y
|
|
3421
3414
|
});
|
|
3422
3415
|
if (!a && !r) {
|
|
3423
|
-
const _ =
|
|
3416
|
+
const _ = Go(
|
|
3424
3417
|
{
|
|
3425
3418
|
name: e,
|
|
3426
3419
|
isFolder: t === We.Folder
|
|
@@ -3429,7 +3422,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3429
3422
|
f
|
|
3430
3423
|
), U = !!_;
|
|
3431
3424
|
return t === We.Folder ? /* @__PURE__ */ o(
|
|
3432
|
-
|
|
3425
|
+
Oo,
|
|
3433
3426
|
{
|
|
3434
3427
|
name: e,
|
|
3435
3428
|
loading: n,
|
|
@@ -3442,7 +3435,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3442
3435
|
tooltipContent: _
|
|
3443
3436
|
}
|
|
3444
3437
|
) : /* @__PURE__ */ o(
|
|
3445
|
-
|
|
3438
|
+
Lo,
|
|
3446
3439
|
{
|
|
3447
3440
|
className: "max-w-[428px]",
|
|
3448
3441
|
...T,
|
|
@@ -3460,7 +3453,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3460
3453
|
Js,
|
|
3461
3454
|
{
|
|
3462
3455
|
type: t,
|
|
3463
|
-
name:
|
|
3456
|
+
name: x,
|
|
3464
3457
|
elementId: s,
|
|
3465
3458
|
inputInvalid: F,
|
|
3466
3459
|
inputInvalidMessage: I,
|
|
@@ -3495,35 +3488,35 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3495
3488
|
onRenameCancel: h,
|
|
3496
3489
|
onRenameValidate: f,
|
|
3497
3490
|
onExpandedPathsChange: T,
|
|
3498
|
-
onCreateFolderSave:
|
|
3491
|
+
onCreateFolderSave: x,
|
|
3499
3492
|
onCreateFolderCancel: F,
|
|
3500
3493
|
forbiddenSymbolsRegExp: I,
|
|
3501
3494
|
forbiddenSymbolsTooltip: S,
|
|
3502
3495
|
newFolderDefaultName: A
|
|
3503
3496
|
}) => {
|
|
3504
|
-
const { expandedPaths: _, togglePath: U } =
|
|
3497
|
+
const { expandedPaths: _, togglePath: U } = Sa({
|
|
3505
3498
|
expandedPaths: s ?? /* @__PURE__ */ new Set(),
|
|
3506
3499
|
onExpandedPathsChange: T
|
|
3507
3500
|
}), P = (B) => {
|
|
3508
3501
|
m?.(B), U(B.path);
|
|
3509
|
-
}, k = (B, L,
|
|
3502
|
+
}, k = (B, L, q) => {
|
|
3510
3503
|
let J = B;
|
|
3511
|
-
return
|
|
3504
|
+
return q && q.path === u && (J = [
|
|
3512
3505
|
{
|
|
3513
|
-
folderId:
|
|
3514
|
-
id:
|
|
3506
|
+
folderId: en,
|
|
3507
|
+
id: en,
|
|
3515
3508
|
items: [],
|
|
3516
3509
|
name: A || "",
|
|
3517
3510
|
nodeType: O.FOLDER,
|
|
3518
3511
|
parentPath: u,
|
|
3519
|
-
path: `${u}/${
|
|
3512
|
+
path: `${u}/${en}`
|
|
3520
3513
|
},
|
|
3521
3514
|
...B
|
|
3522
3515
|
]), J.map((j) => {
|
|
3523
|
-
const { path: te, nodeType: fe, name: we, items:
|
|
3524
|
-
if (!c &&
|
|
3516
|
+
const { path: te, nodeType: fe, name: we, items: xe } = j, ue = fe === O.FOLDER;
|
|
3517
|
+
if (!c && Ta(j)) return null;
|
|
3525
3518
|
if (!ue && !t) return;
|
|
3526
|
-
const Te = Array.isArray(
|
|
3519
|
+
const Te = Array.isArray(xe) && xe.length > 0 && xe.some((H) => H.nodeType === O.FOLDER || t), Ne = _.has(te), W = l === te, be = a.has(te), De = v === te || te === `${u}/${en}`, 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 ? Go(
|
|
3527
3520
|
{ name: j.name, isFolder: ue },
|
|
3528
3521
|
I,
|
|
3529
3522
|
S
|
|
@@ -3532,7 +3525,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3532
3525
|
/* @__PURE__ */ o(
|
|
3533
3526
|
ht,
|
|
3534
3527
|
{
|
|
3535
|
-
trigger: [
|
|
3528
|
+
trigger: [ma.ContextMenu],
|
|
3536
3529
|
className: "w-full",
|
|
3537
3530
|
anchorToMouse: !0,
|
|
3538
3531
|
items: Se,
|
|
@@ -3560,18 +3553,18 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3560
3553
|
onClick: () => !De && P(j),
|
|
3561
3554
|
children: /* @__PURE__ */ X(Ie, { children: [
|
|
3562
3555
|
ue && /* @__PURE__ */ o(
|
|
3563
|
-
|
|
3556
|
+
cr,
|
|
3564
3557
|
{
|
|
3565
3558
|
...Ys,
|
|
3566
|
-
className:
|
|
3559
|
+
className: an(
|
|
3567
3560
|
"flex-shrink-0",
|
|
3568
|
-
|
|
3561
|
+
Ne && "rotate-90 transition-all",
|
|
3569
3562
|
G && !Te && "text-transparent"
|
|
3570
3563
|
)
|
|
3571
3564
|
}
|
|
3572
3565
|
),
|
|
3573
3566
|
/* @__PURE__ */ o(
|
|
3574
|
-
|
|
3567
|
+
$n,
|
|
3575
3568
|
{
|
|
3576
3569
|
elementId: `${te}-tree-item`,
|
|
3577
3570
|
name: he ? y : we,
|
|
@@ -3587,11 +3580,11 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3587
3580
|
forbiddenSymbolsTooltip: R,
|
|
3588
3581
|
...!he && {
|
|
3589
3582
|
editing: De,
|
|
3590
|
-
creating: te === `${u}/${
|
|
3583
|
+
creating: te === `${u}/${en}`,
|
|
3591
3584
|
onSave: D,
|
|
3592
3585
|
onCancel: h,
|
|
3593
3586
|
validate: _e,
|
|
3594
|
-
onCreateFolderSave:
|
|
3587
|
+
onCreateFolderSave: x,
|
|
3595
3588
|
onCreateFolderCancel: F
|
|
3596
3589
|
}
|
|
3597
3590
|
}
|
|
@@ -3607,10 +3600,11 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3607
3600
|
items: Se,
|
|
3608
3601
|
className: "sticky right-0",
|
|
3609
3602
|
children: /* @__PURE__ */ o(
|
|
3610
|
-
|
|
3603
|
+
Et,
|
|
3611
3604
|
{
|
|
3612
|
-
|
|
3613
|
-
|
|
3605
|
+
size: jn.Small,
|
|
3606
|
+
className: "invisible group-hover/item:visible",
|
|
3607
|
+
icon: /* @__PURE__ */ o(ln, { ...M })
|
|
3614
3608
|
}
|
|
3615
3609
|
)
|
|
3616
3610
|
}
|
|
@@ -3620,12 +3614,12 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3620
3614
|
)
|
|
3621
3615
|
}
|
|
3622
3616
|
),
|
|
3623
|
-
|
|
3617
|
+
Ne && (xe || j?.path === u) && k(xe || [], L + 1, j)
|
|
3624
3618
|
] }) }, `${te}-children`);
|
|
3625
3619
|
});
|
|
3626
3620
|
};
|
|
3627
3621
|
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(
|
|
3628
|
-
|
|
3622
|
+
wa,
|
|
3629
3623
|
{
|
|
3630
3624
|
title: i,
|
|
3631
3625
|
description: p,
|
|
@@ -3651,7 +3645,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3651
3645
|
const g = [], m = Array.from(e.values());
|
|
3652
3646
|
if (!m.length || !t)
|
|
3653
3647
|
return g;
|
|
3654
|
-
const b =
|
|
3648
|
+
const b = Zn(y), D = b ? m.some((h) => b.test(h.name)) : !1;
|
|
3655
3649
|
if (t[w.RemoveAccess] && i) {
|
|
3656
3650
|
const h = m.some(
|
|
3657
3651
|
(f) => !v?.has(f.path)
|
|
@@ -3661,7 +3655,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3661
3655
|
label: t[w.RemoveAccess],
|
|
3662
3656
|
title: t[w.RemoveAccess],
|
|
3663
3657
|
disabled: h,
|
|
3664
|
-
icon: /* @__PURE__ */ o(
|
|
3658
|
+
icon: /* @__PURE__ */ o(Ao, { size: M.size, className: "text-secondary" }),
|
|
3665
3659
|
onClick: () => {
|
|
3666
3660
|
i(m), u();
|
|
3667
3661
|
}
|
|
@@ -3672,7 +3666,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3672
3666
|
label: t[w.Move],
|
|
3673
3667
|
title: t[w.Move],
|
|
3674
3668
|
icon: /* @__PURE__ */ o(
|
|
3675
|
-
|
|
3669
|
+
Wo,
|
|
3676
3670
|
{
|
|
3677
3671
|
width: M.size,
|
|
3678
3672
|
height: M.size,
|
|
@@ -3685,7 +3679,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3685
3679
|
label: t[w.Copy],
|
|
3686
3680
|
title: t[w.Copy],
|
|
3687
3681
|
icon: /* @__PURE__ */ o(
|
|
3688
|
-
|
|
3682
|
+
Bo,
|
|
3689
3683
|
{
|
|
3690
3684
|
width: M.size,
|
|
3691
3685
|
height: M.size,
|
|
@@ -3697,17 +3691,17 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3697
3691
|
key: w.Duplicate,
|
|
3698
3692
|
label: t[w.Duplicate],
|
|
3699
3693
|
title: t[w.Duplicate],
|
|
3700
|
-
icon: /* @__PURE__ */ o(
|
|
3694
|
+
icon: /* @__PURE__ */ o(Po, { ...M, className: "text-secondary" }),
|
|
3701
3695
|
onClick: () => s(m)
|
|
3702
3696
|
}), t[w.Delete]) {
|
|
3703
3697
|
const h = m.some(
|
|
3704
|
-
(f) => f.permissions && !f.permissions.includes(
|
|
3698
|
+
(f) => f.permissions && !f.permissions.includes(St.WRITE)
|
|
3705
3699
|
);
|
|
3706
3700
|
g.push({
|
|
3707
3701
|
key: w.Delete,
|
|
3708
3702
|
label: t[w.Delete],
|
|
3709
3703
|
title: t[w.Delete],
|
|
3710
|
-
icon: /* @__PURE__ */ o(
|
|
3704
|
+
icon: /* @__PURE__ */ o(Mo, { ...M, className: "text-secondary" }),
|
|
3711
3705
|
disabled: h,
|
|
3712
3706
|
tooltip: h ? "Selected items contain item which can not be deleted" : void 0,
|
|
3713
3707
|
onClick: () => {
|
|
@@ -3720,7 +3714,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3720
3714
|
key: w.Download,
|
|
3721
3715
|
label: t[w.Download],
|
|
3722
3716
|
title: t[w.Download],
|
|
3723
|
-
icon: /* @__PURE__ */ o(
|
|
3717
|
+
icon: /* @__PURE__ */ o(ko, { ...M, className: "text-secondary" }),
|
|
3724
3718
|
onClick: () => r(m)
|
|
3725
3719
|
}), t[w.Unshare] && l) {
|
|
3726
3720
|
const h = m.some(
|
|
@@ -3733,7 +3727,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3733
3727
|
disabled: h,
|
|
3734
3728
|
tooltip: h ? "Selected items contain item which can not be unshared" : void 0,
|
|
3735
3729
|
icon: /* @__PURE__ */ o(
|
|
3736
|
-
|
|
3730
|
+
Ho,
|
|
3737
3731
|
{
|
|
3738
3732
|
width: M.size,
|
|
3739
3733
|
height: M.size,
|
|
@@ -3775,7 +3769,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3775
3769
|
forbiddenSymbolsRegExp: c,
|
|
3776
3770
|
forbiddenSymbolsTooltip: v
|
|
3777
3771
|
}) => /* @__PURE__ */ o("div", { className: "flex", children: /* @__PURE__ */ o("div", { className: "flex flex-1 min-w-0", children: /* @__PURE__ */ o(
|
|
3778
|
-
|
|
3772
|
+
$n,
|
|
3779
3773
|
{
|
|
3780
3774
|
type: s === O.FOLDER ? We.Folder : We.File,
|
|
3781
3775
|
name: t,
|
|
@@ -3787,10 +3781,10 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3787
3781
|
forbiddenSymbolsRegExp: c,
|
|
3788
3782
|
forbiddenSymbolsTooltip: v,
|
|
3789
3783
|
details: /* @__PURE__ */ X("div", { className: "flex items-center gap-1 dial-tiny-text text-secondary", children: [
|
|
3790
|
-
/* @__PURE__ */ o("span", { children: s === O.ITEM ?
|
|
3791
|
-
n && a && /* @__PURE__ */ o(
|
|
3784
|
+
/* @__PURE__ */ o("span", { children: s === O.ITEM ? sn(a) : "" }),
|
|
3785
|
+
n && a && /* @__PURE__ */ o(Un, { size: 2, className: "text-secondary" }),
|
|
3792
3786
|
n ? /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(
|
|
3793
|
-
|
|
3787
|
+
Na,
|
|
3794
3788
|
{
|
|
3795
3789
|
value: n,
|
|
3796
3790
|
locale: r?.toString(),
|
|
@@ -3823,7 +3817,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3823
3817
|
]);
|
|
3824
3818
|
if (n.data?.isTemporary && n.data.id === C)
|
|
3825
3819
|
return /* @__PURE__ */ o(
|
|
3826
|
-
|
|
3820
|
+
$n,
|
|
3827
3821
|
{
|
|
3828
3822
|
name: n.data.name,
|
|
3829
3823
|
type: We.Folder,
|
|
@@ -3849,15 +3843,15 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3849
3843
|
renameTriggerView: h,
|
|
3850
3844
|
renamedPath: f,
|
|
3851
3845
|
renamedItem: T,
|
|
3852
|
-
getDisplayName:
|
|
3846
|
+
getDisplayName: x,
|
|
3853
3847
|
onRenameValidate: F,
|
|
3854
3848
|
onRenameSave: I,
|
|
3855
3849
|
onRenameCancel: S
|
|
3856
3850
|
} = n.context;
|
|
3857
3851
|
if (h === Rt.Grid && f === n.data?.path && T && n.data) {
|
|
3858
|
-
const U =
|
|
3852
|
+
const U = x(T);
|
|
3859
3853
|
return /* @__PURE__ */ o(
|
|
3860
|
-
|
|
3854
|
+
$n,
|
|
3861
3855
|
{
|
|
3862
3856
|
name: U,
|
|
3863
3857
|
type: r === O.FOLDER ? We.Folder : We.File,
|
|
@@ -3896,7 +3890,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3896
3890
|
forbiddenSymbolsTooltip: n.context.forbiddenSymbolsTooltip
|
|
3897
3891
|
}
|
|
3898
3892
|
);
|
|
3899
|
-
const _ =
|
|
3893
|
+
const _ = Go(
|
|
3900
3894
|
{
|
|
3901
3895
|
name: n.data.name,
|
|
3902
3896
|
isFolder: r === O.FOLDER
|
|
@@ -3905,7 +3899,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3905
3899
|
n.context.forbiddenSymbolsTooltip
|
|
3906
3900
|
);
|
|
3907
3901
|
return r === O.FOLDER ? /* @__PURE__ */ o(
|
|
3908
|
-
|
|
3902
|
+
Oo,
|
|
3909
3903
|
{
|
|
3910
3904
|
name: n.data.name,
|
|
3911
3905
|
shared: g,
|
|
@@ -3916,7 +3910,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3916
3910
|
tooltipContent: _
|
|
3917
3911
|
}
|
|
3918
3912
|
) : /* @__PURE__ */ o(
|
|
3919
|
-
|
|
3913
|
+
Lo,
|
|
3920
3914
|
{
|
|
3921
3915
|
name: n.data.name,
|
|
3922
3916
|
shared: g,
|
|
@@ -3936,7 +3930,7 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3936
3930
|
suppressSizeToFit: !0,
|
|
3937
3931
|
cellRenderer: (a) => {
|
|
3938
3932
|
const n = a.context?.disabledRowIds?.has(a.data?.path) ?? !1;
|
|
3939
|
-
return /* @__PURE__ */ o(
|
|
3933
|
+
return /* @__PURE__ */ o(Na, { ...a, hideTooltip: n });
|
|
3940
3934
|
},
|
|
3941
3935
|
cellRendererParams: {
|
|
3942
3936
|
locale: t,
|
|
@@ -3955,8 +3949,8 @@ const _s = 12, Bs = 8, Ws = ({ getSelectionLabel: e, onClearSelection: t, action
|
|
|
3955
3949
|
headerName: e,
|
|
3956
3950
|
width: 120,
|
|
3957
3951
|
suppressSizeToFit: !0,
|
|
3958
|
-
cellRenderer: (t) => t.data.nodeType === O.ITEM ?
|
|
3959
|
-
filterValueGetter: (t) => t.data.nodeType === O.ITEM ?
|
|
3952
|
+
cellRenderer: (t) => t.data.nodeType === O.ITEM ? sn(t.data.contentLength) : "",
|
|
3953
|
+
filterValueGetter: (t) => t.data.nodeType === O.ITEM ? sn(t.data.contentLength) : ""
|
|
3960
3954
|
}), si = (e) => {
|
|
3961
3955
|
const t = e.event;
|
|
3962
3956
|
if (!(t?.target ?? null)?.closest("input") || !t) return !1;
|
|
@@ -4056,7 +4050,7 @@ function ii({
|
|
|
4056
4050
|
]) };
|
|
4057
4051
|
}
|
|
4058
4052
|
const li = () => {
|
|
4059
|
-
const e =
|
|
4053
|
+
const e = fr(Ia);
|
|
4060
4054
|
if (!e)
|
|
4061
4055
|
throw new Error(
|
|
4062
4056
|
"useFileManagerContext must be used within <FileManagerProvider>"
|
|
@@ -4084,132 +4078,132 @@ const li = () => {
|
|
|
4084
4078
|
forbiddenSymbolsRegExp: h,
|
|
4085
4079
|
onGridCreateSiblingFolder: f,
|
|
4086
4080
|
onGridCreateChildFolder: T
|
|
4087
|
-
}) => $(() => (
|
|
4081
|
+
}) => $(() => (x) => {
|
|
4088
4082
|
const F = [];
|
|
4089
4083
|
if (!e)
|
|
4090
4084
|
return F;
|
|
4091
|
-
const I =
|
|
4085
|
+
const I = Zn(
|
|
4092
4086
|
h
|
|
4093
|
-
)?.test(
|
|
4094
|
-
e[w.AddSibling] &&
|
|
4087
|
+
)?.test(x.name);
|
|
4088
|
+
e[w.AddSibling] && x.nodeType === O.FOLDER && F.push({
|
|
4095
4089
|
key: "addSibling",
|
|
4096
4090
|
label: e[w.AddSibling],
|
|
4097
4091
|
icon: /* @__PURE__ */ o(
|
|
4098
|
-
|
|
4092
|
+
ba,
|
|
4099
4093
|
{
|
|
4100
4094
|
width: M.size,
|
|
4101
4095
|
height: M.size,
|
|
4102
4096
|
className: "text-secondary"
|
|
4103
4097
|
}
|
|
4104
4098
|
),
|
|
4105
|
-
onClick: () => f([
|
|
4106
|
-
}), e[w.AddChild] &&
|
|
4099
|
+
onClick: () => f([x])
|
|
4100
|
+
}), e[w.AddChild] && x.nodeType === O.FOLDER && !I && F.push(
|
|
4107
4101
|
{
|
|
4108
4102
|
key: "addChild",
|
|
4109
4103
|
label: e[w.AddChild],
|
|
4110
4104
|
icon: /* @__PURE__ */ o(
|
|
4111
|
-
|
|
4105
|
+
xa,
|
|
4112
4106
|
{
|
|
4113
4107
|
width: M.size,
|
|
4114
4108
|
height: M.size,
|
|
4115
4109
|
className: "text-secondary"
|
|
4116
4110
|
}
|
|
4117
4111
|
),
|
|
4118
|
-
onClick: () => T([
|
|
4112
|
+
onClick: () => T([x])
|
|
4119
4113
|
},
|
|
4120
4114
|
{
|
|
4121
4115
|
key: "divider",
|
|
4122
|
-
type:
|
|
4116
|
+
type: Da.Divider
|
|
4123
4117
|
}
|
|
4124
|
-
), e[w.OpenInNewTab] && typeof g == "function" &&
|
|
4118
|
+
), e[w.OpenInNewTab] && typeof g == "function" && x.nodeType === O.ITEM && !I && F.push({
|
|
4125
4119
|
key: w.OpenInNewTab,
|
|
4126
4120
|
label: e[w.OpenInNewTab],
|
|
4127
|
-
icon: /* @__PURE__ */ o(
|
|
4128
|
-
onClick: () => g?.(
|
|
4121
|
+
icon: /* @__PURE__ */ o(Fo, { ...M, className: "text-secondary" }),
|
|
4122
|
+
onClick: () => g?.(x)
|
|
4129
4123
|
});
|
|
4130
|
-
const S =
|
|
4124
|
+
const S = x.nodeType === O.ITEM || x.nodeType === O.FOLDER && D;
|
|
4131
4125
|
e[w.Duplicate] && S && !I && F.push({
|
|
4132
4126
|
key: w.Duplicate,
|
|
4133
4127
|
label: e[w.Duplicate],
|
|
4134
|
-
icon: /* @__PURE__ */ o(
|
|
4135
|
-
onClick: () => t(
|
|
4128
|
+
icon: /* @__PURE__ */ o(Po, { ...M, className: "text-secondary" }),
|
|
4129
|
+
onClick: () => t(x)
|
|
4136
4130
|
}), e[w.Copy] && !I && F.push({
|
|
4137
4131
|
key: w.Copy,
|
|
4138
4132
|
label: e[w.Copy],
|
|
4139
4133
|
icon: /* @__PURE__ */ o(
|
|
4140
|
-
|
|
4134
|
+
Bo,
|
|
4141
4135
|
{
|
|
4142
4136
|
width: M.size,
|
|
4143
4137
|
height: M.size,
|
|
4144
4138
|
className: "text-secondary"
|
|
4145
4139
|
}
|
|
4146
4140
|
),
|
|
4147
|
-
onClick: () => s(
|
|
4141
|
+
onClick: () => s(x)
|
|
4148
4142
|
}), e[w.Move] && !I && F.push({
|
|
4149
4143
|
key: w.Move,
|
|
4150
4144
|
label: e[w.Move],
|
|
4151
4145
|
icon: /* @__PURE__ */ o(
|
|
4152
|
-
|
|
4146
|
+
Wo,
|
|
4153
4147
|
{
|
|
4154
4148
|
width: M.size,
|
|
4155
4149
|
height: M.size,
|
|
4156
4150
|
className: "text-secondary"
|
|
4157
4151
|
}
|
|
4158
4152
|
),
|
|
4159
|
-
onClick: () => a(
|
|
4153
|
+
onClick: () => a(x)
|
|
4160
4154
|
}), e[w.Download] && !I && F.push({
|
|
4161
4155
|
key: w.Download,
|
|
4162
4156
|
label: e[w.Download],
|
|
4163
|
-
icon: /* @__PURE__ */ o(
|
|
4164
|
-
onClick: () => n(
|
|
4165
|
-
}), e[w.ManagePermissions] && typeof u == "function" &&
|
|
4157
|
+
icon: /* @__PURE__ */ o(ko, { ...M, className: "text-secondary" }),
|
|
4158
|
+
onClick: () => n(x)
|
|
4159
|
+
}), e[w.ManagePermissions] && typeof u == "function" && x.nodeType === O.FOLDER && !I && F.push({
|
|
4166
4160
|
key: w.ManagePermissions,
|
|
4167
4161
|
label: e[w.ManagePermissions],
|
|
4168
|
-
icon: /* @__PURE__ */ o(
|
|
4169
|
-
onClick: () => u?.(
|
|
4162
|
+
icon: /* @__PURE__ */ o(Fo, { ...M, className: "text-secondary" }),
|
|
4163
|
+
onClick: () => u?.(x.path)
|
|
4170
4164
|
});
|
|
4171
|
-
const A =
|
|
4172
|
-
e[w.Preview] && typeof y == "function" &&
|
|
4165
|
+
const A = x.name.split("."), _ = A.length > 1 ? A[A.length - 1] : "", U = _ && m?.includes(`.${_}`);
|
|
4166
|
+
e[w.Preview] && typeof y == "function" && x.nodeType === O.ITEM && U && !I && F.push({
|
|
4173
4167
|
key: w.Preview,
|
|
4174
4168
|
label: e[w.Preview],
|
|
4175
|
-
icon: /* @__PURE__ */ o(
|
|
4176
|
-
onClick: () => y?.(
|
|
4169
|
+
icon: /* @__PURE__ */ o(So, { ...M, className: "text-secondary" }),
|
|
4170
|
+
onClick: () => y?.(x.path)
|
|
4177
4171
|
});
|
|
4178
|
-
const P = !
|
|
4172
|
+
const P = !x.permissions || x.permissions.includes(St.WRITE);
|
|
4179
4173
|
e[w.Delete] && P && F.push({
|
|
4180
4174
|
key: w.Delete,
|
|
4181
4175
|
label: e[w.Delete],
|
|
4182
|
-
icon: /* @__PURE__ */ o(
|
|
4183
|
-
onClick: () => l(
|
|
4176
|
+
icon: /* @__PURE__ */ o(Mo, { ...M, className: "text-secondary" }),
|
|
4177
|
+
onClick: () => l(x, x.parentPath ?? "")
|
|
4184
4178
|
});
|
|
4185
|
-
const k =
|
|
4179
|
+
const k = x.nodeType === O.FOLDER || x.nodeType === O.ITEM && b;
|
|
4186
4180
|
return e[w.Rename] && k && P && F.push({
|
|
4187
4181
|
key: w.Rename,
|
|
4188
4182
|
label: e[w.Rename],
|
|
4189
|
-
icon: /* @__PURE__ */ o(
|
|
4190
|
-
onClick: () => r(
|
|
4191
|
-
}), e[w.Info] &&
|
|
4183
|
+
icon: /* @__PURE__ */ o(fa, { ...M, className: "text-secondary" }),
|
|
4184
|
+
onClick: () => r(x.path)
|
|
4185
|
+
}), e[w.Info] && x.nodeType === O.ITEM && !I && F.push({
|
|
4192
4186
|
key: w.Info,
|
|
4193
4187
|
label: e[w.Info],
|
|
4194
|
-
icon: /* @__PURE__ */ o(
|
|
4195
|
-
onClick: () => i(
|
|
4196
|
-
}), e[w.Unshare] && c?.includes(
|
|
4188
|
+
icon: /* @__PURE__ */ o(dr, { ...M, className: "text-secondary" }),
|
|
4189
|
+
onClick: () => i(x)
|
|
4190
|
+
}), e[w.Unshare] && c?.includes(x.path) && F.push({
|
|
4197
4191
|
key: w.Unshare,
|
|
4198
4192
|
label: e[w.Unshare],
|
|
4199
4193
|
icon: /* @__PURE__ */ o(
|
|
4200
|
-
|
|
4194
|
+
Ho,
|
|
4201
4195
|
{
|
|
4202
4196
|
width: M.size,
|
|
4203
4197
|
height: M.size,
|
|
4204
4198
|
className: "text-secondary"
|
|
4205
4199
|
}
|
|
4206
4200
|
),
|
|
4207
|
-
onClick: () => p(
|
|
4208
|
-
}), e[w.RemoveAccess] && v?.has(
|
|
4201
|
+
onClick: () => p(x)
|
|
4202
|
+
}), e[w.RemoveAccess] && v?.has(x.path) && C && F.push({
|
|
4209
4203
|
key: w.RemoveAccess,
|
|
4210
4204
|
label: e[w.RemoveAccess],
|
|
4211
|
-
icon: /* @__PURE__ */ o(
|
|
4212
|
-
onClick: () => C(
|
|
4205
|
+
icon: /* @__PURE__ */ o(Ao, { size: M.size, className: "text-secondary" }),
|
|
4206
|
+
onClick: () => C(x)
|
|
4213
4207
|
}), F;
|
|
4214
4208
|
}, [
|
|
4215
4209
|
e,
|
|
@@ -4292,7 +4286,7 @@ const li = () => {
|
|
|
4292
4286
|
maxSelectableFileSize: h,
|
|
4293
4287
|
areHiddenFilesVisible: f,
|
|
4294
4288
|
toggleHiddenFilesVisibility: T,
|
|
4295
|
-
isTreeCollapsed:
|
|
4289
|
+
isTreeCollapsed: x,
|
|
4296
4290
|
toggleTreeCollapse: F,
|
|
4297
4291
|
currentPath: I,
|
|
4298
4292
|
gridRows: S,
|
|
@@ -4303,16 +4297,16 @@ const li = () => {
|
|
|
4303
4297
|
effectiveSearchValue: k,
|
|
4304
4298
|
handleBreadcrumbItemClick: B,
|
|
4305
4299
|
handleSearchChange: L,
|
|
4306
|
-
handleTreeItemClick:
|
|
4300
|
+
handleTreeItemClick: q,
|
|
4307
4301
|
handleTableRowClick: J,
|
|
4308
4302
|
handleSelectionClick: j,
|
|
4309
4303
|
onGridApiChange: te,
|
|
4310
4304
|
handleOpenDestinationFolderPopup: fe,
|
|
4311
4305
|
handleCloseDestinationFolderPopup: we,
|
|
4312
|
-
openDestinationFolderPopup:
|
|
4306
|
+
openDestinationFolderPopup: xe,
|
|
4313
4307
|
destinationFolderMode: ue,
|
|
4314
4308
|
handleSetCopiedFiles: Te,
|
|
4315
|
-
handleSetMovedFiles:
|
|
4309
|
+
handleSetMovedFiles: Ne,
|
|
4316
4310
|
handleDuplicate: W,
|
|
4317
4311
|
handleCopyTo: be,
|
|
4318
4312
|
handleMoveTo: De,
|
|
@@ -4335,160 +4329,160 @@ const li = () => {
|
|
|
4335
4329
|
createdFolderPath: $e,
|
|
4336
4330
|
forbiddenSymbolsRegExp: He,
|
|
4337
4331
|
forbiddenSymbolsTooltip: pt,
|
|
4338
|
-
getDisplayName:
|
|
4332
|
+
getDisplayName: cn,
|
|
4339
4333
|
isDragging: st,
|
|
4340
4334
|
isDraggingOverWindow: ft,
|
|
4341
|
-
handleDragEnter:
|
|
4342
|
-
handleDragLeave:
|
|
4343
|
-
handleDragOver:
|
|
4335
|
+
handleDragEnter: Xn,
|
|
4336
|
+
handleDragLeave: qn,
|
|
4337
|
+
handleDragOver: Yn,
|
|
4344
4338
|
handleDrop: mt,
|
|
4345
|
-
onUploadFiles:
|
|
4346
|
-
onValidateUpload:
|
|
4347
|
-
maxFileSize:
|
|
4348
|
-
newActions:
|
|
4349
|
-
isNewButtonVisible:
|
|
4350
|
-
isNewButtonDisabled:
|
|
4351
|
-
newFolderTempId:
|
|
4339
|
+
onUploadFiles: dn,
|
|
4340
|
+
onValidateUpload: At,
|
|
4341
|
+
maxFileSize: Kn,
|
|
4342
|
+
newActions: un,
|
|
4343
|
+
isNewButtonVisible: hn,
|
|
4344
|
+
isNewButtonDisabled: pn,
|
|
4345
|
+
newFolderTempId: fn,
|
|
4352
4346
|
cancelFolderCreation: Qe,
|
|
4353
4347
|
saveFolderCreation: Ct,
|
|
4354
|
-
validateFolderName:
|
|
4348
|
+
validateFolderName: mn,
|
|
4355
4349
|
startFolderCreation: je,
|
|
4356
4350
|
conflictingFiles: ve,
|
|
4357
|
-
conflictResolutionOpen:
|
|
4358
|
-
handleConflictReplace:
|
|
4351
|
+
conflictResolutionOpen: Pt,
|
|
4352
|
+
handleConflictReplace: Cn,
|
|
4359
4353
|
handleConflictDuplicate: Ze,
|
|
4360
4354
|
handleConflictCancel: Xe,
|
|
4361
4355
|
handleConflictDecideForEach: it,
|
|
4362
|
-
uploadConflictingFiles:
|
|
4356
|
+
uploadConflictingFiles: gn,
|
|
4363
4357
|
uploadConflictResolutionOpen: Je,
|
|
4364
|
-
handleUploadConflictReplace:
|
|
4365
|
-
handleUploadConflictDuplicate:
|
|
4366
|
-
handleUploadConflictCancel:
|
|
4367
|
-
handleUploadConflictDecideForEach:
|
|
4358
|
+
handleUploadConflictReplace: Qn,
|
|
4359
|
+
handleUploadConflictDuplicate: Jn,
|
|
4360
|
+
handleUploadConflictCancel: eo,
|
|
4361
|
+
handleUploadConflictDecideForEach: to,
|
|
4368
4362
|
openMetadataPopup: de,
|
|
4369
4363
|
fileMetadataPopupOptions: Fe,
|
|
4370
4364
|
isMetadataPopupOpen: qe,
|
|
4371
|
-
selectedFileForMetadata:
|
|
4372
|
-
closeMetadataPopup:
|
|
4365
|
+
selectedFileForMetadata: Mt,
|
|
4366
|
+
closeMetadataPopup: kt,
|
|
4373
4367
|
onUnshareFiles: et,
|
|
4374
4368
|
onRemoveFilesAccess: gt,
|
|
4375
|
-
actionsRef:
|
|
4376
|
-
searchInProgress:
|
|
4369
|
+
actionsRef: no,
|
|
4370
|
+
searchInProgress: vn,
|
|
4377
4371
|
isSearchMode: tt,
|
|
4378
4372
|
emptyStateIcon: lt,
|
|
4379
|
-
emptyStateTitle:
|
|
4380
|
-
emptyStateDescription:
|
|
4373
|
+
emptyStateTitle: yn = "You don't have any files",
|
|
4374
|
+
emptyStateDescription: wn = "Upload or drag and drop files",
|
|
4381
4375
|
sharedWithMeIds: vt,
|
|
4382
|
-
onFolderPopupPathChange:
|
|
4376
|
+
onFolderPopupPathChange: oo,
|
|
4383
4377
|
onManagePermissions: yt,
|
|
4384
|
-
onPreview:
|
|
4385
|
-
onOpenInNewTab:
|
|
4386
|
-
previewExtensions:
|
|
4387
|
-
isRenameFileAvailable:
|
|
4388
|
-
isDuplicateFolderAvailable:
|
|
4389
|
-
getDisabledTooltip:
|
|
4378
|
+
onPreview: ao,
|
|
4379
|
+
onOpenInNewTab: ro,
|
|
4380
|
+
previewExtensions: so,
|
|
4381
|
+
isRenameFileAvailable: io,
|
|
4382
|
+
isDuplicateFolderAvailable: lo,
|
|
4383
|
+
getDisabledTooltip: Ot,
|
|
4390
4384
|
fileTooLargeTooltip: wt,
|
|
4391
|
-
unsupportedFileTypeTooltip:
|
|
4392
|
-
gridClassName:
|
|
4393
|
-
nonClickableTableColumns:
|
|
4394
|
-
hideSearchPathItemName:
|
|
4385
|
+
unsupportedFileTypeTooltip: Nn,
|
|
4386
|
+
gridClassName: Lt,
|
|
4387
|
+
nonClickableTableColumns: zt,
|
|
4388
|
+
hideSearchPathItemName: _t,
|
|
4395
4389
|
showHiddenFileSwitcherInDestinationPopup: le,
|
|
4396
|
-
showCreateFolderButtonInDestinationPopup:
|
|
4390
|
+
showCreateFolderButtonInDestinationPopup: Dn,
|
|
4397
4391
|
newFolderDefaultName: re
|
|
4398
4392
|
} = li(), {
|
|
4399
4393
|
width: Le = jr,
|
|
4400
4394
|
header: Me = Zr,
|
|
4401
|
-
containerClassName:
|
|
4402
|
-
additionalButtons:
|
|
4403
|
-
...
|
|
4404
|
-
} = r ?? {}, [
|
|
4405
|
-
createFolderTriggerView:
|
|
4406
|
-
onGridCreateSiblingFolder:
|
|
4407
|
-
onTreeCreateSiblingFolder:
|
|
4408
|
-
onGridCreateChildFolder:
|
|
4409
|
-
onTreeCreateChildFolder:
|
|
4395
|
+
containerClassName: xn = Gr,
|
|
4396
|
+
additionalButtons: bn,
|
|
4397
|
+
...Tn
|
|
4398
|
+
} = r ?? {}, [Nt, Rn] = z(Le), { renameTriggerView: nt, onGridRename: co, onTreeRename: In } = ts({ onRename: Ae }), {
|
|
4399
|
+
createFolderTriggerView: Fn,
|
|
4400
|
+
onGridCreateSiblingFolder: uo,
|
|
4401
|
+
onTreeCreateSiblingFolder: En,
|
|
4402
|
+
onGridCreateChildFolder: ho,
|
|
4403
|
+
onTreeCreateChildFolder: Sn
|
|
4410
4404
|
} = di({
|
|
4411
4405
|
onGridAddSibling: G,
|
|
4412
4406
|
onGridAddChild: ne,
|
|
4413
4407
|
onTreeAddSibling: he,
|
|
4414
4408
|
onTreeAddChild: _e
|
|
4415
|
-
}),
|
|
4416
|
-
|
|
4417
|
-
|
|
4409
|
+
}), Bt = ce(null), po = (N) => {
|
|
4410
|
+
Bt.current === null && (Bt.current = requestAnimationFrame(() => {
|
|
4411
|
+
Rn(N), Bt.current = null;
|
|
4418
4412
|
}));
|
|
4419
4413
|
}, {
|
|
4420
|
-
columnDefs:
|
|
4421
|
-
filterable:
|
|
4422
|
-
dateLocale:
|
|
4423
|
-
dateOptions:
|
|
4424
|
-
selectionMode:
|
|
4425
|
-
wrapCustomCellRenderers:
|
|
4426
|
-
visibleColumns:
|
|
4414
|
+
columnDefs: fo,
|
|
4415
|
+
filterable: mo = !0,
|
|
4416
|
+
dateLocale: Co,
|
|
4417
|
+
dateOptions: go,
|
|
4418
|
+
selectionMode: An,
|
|
4419
|
+
wrapCustomCellRenderers: Pn,
|
|
4420
|
+
visibleColumns: Mn = Qr,
|
|
4427
4421
|
allowDisabledContextMenu: Dt = !1,
|
|
4428
4422
|
...ot
|
|
4429
|
-
} = p ?? {}, { containerRef:
|
|
4423
|
+
} = p ?? {}, { containerRef: vo, isBelowBreakpoint: ze } = ns(
|
|
4430
4424
|
g,
|
|
4431
4425
|
m
|
|
4432
|
-
),
|
|
4426
|
+
), yo = $(() => tt ? [
|
|
4433
4427
|
ye.Name,
|
|
4434
4428
|
ye.Path,
|
|
4435
4429
|
ye.Actions
|
|
4436
|
-
] :
|
|
4437
|
-
(
|
|
4438
|
-
|
|
4430
|
+
] : Mn, [tt, Mn]), Wt = d(
|
|
4431
|
+
(N, ee, ie) => us(
|
|
4432
|
+
N,
|
|
4439
4433
|
ee,
|
|
4440
4434
|
ie,
|
|
4441
|
-
|
|
4435
|
+
Nn,
|
|
4442
4436
|
wt
|
|
4443
4437
|
),
|
|
4444
|
-
[wt,
|
|
4445
|
-
),
|
|
4446
|
-
(
|
|
4447
|
-
[
|
|
4438
|
+
[wt, Nn]
|
|
4439
|
+
), xt = d(
|
|
4440
|
+
(N, ee, ie) => !!Ot?.(N) || !!Wt(N, ee, ie),
|
|
4441
|
+
[Wt, Ot]
|
|
4448
4442
|
), ct = $(() => {
|
|
4449
|
-
const
|
|
4443
|
+
const N = /* @__PURE__ */ new Set();
|
|
4450
4444
|
for (const ee of S)
|
|
4451
|
-
|
|
4452
|
-
return
|
|
4453
|
-
}, [D, h, S,
|
|
4454
|
-
(
|
|
4455
|
-
const ee = [], ie = [], Re = !
|
|
4456
|
-
|
|
4445
|
+
xt(ee, D, h) && N.add(ee.path);
|
|
4446
|
+
return N;
|
|
4447
|
+
}, [D, h, S, xt]), Ht = d(
|
|
4448
|
+
(N) => {
|
|
4449
|
+
const ee = [], ie = [], Re = !N.parentPath, at = He?.test(
|
|
4450
|
+
N.name
|
|
4457
4451
|
);
|
|
4458
|
-
return r?.actionLabels && (r.actionLabels[w.AddSibling] &&
|
|
4452
|
+
return r?.actionLabels && (r.actionLabels[w.AddSibling] && N.nodeType === O.FOLDER && !Re && ee.push({
|
|
4459
4453
|
key: "addSibling",
|
|
4460
4454
|
label: r.actionLabels[w.AddSibling],
|
|
4461
4455
|
icon: /* @__PURE__ */ o(
|
|
4462
|
-
|
|
4456
|
+
ba,
|
|
4463
4457
|
{
|
|
4464
4458
|
width: M.size,
|
|
4465
4459
|
height: M.size,
|
|
4466
4460
|
className: "text-secondary"
|
|
4467
4461
|
}
|
|
4468
4462
|
),
|
|
4469
|
-
onClick: () =>
|
|
4470
|
-
}), r.actionLabels[w.AddChild] &&
|
|
4463
|
+
onClick: () => En([N])
|
|
4464
|
+
}), r.actionLabels[w.AddChild] && N.nodeType === O.FOLDER && !at && ee.push({
|
|
4471
4465
|
key: "addChild",
|
|
4472
4466
|
label: r.actionLabels[w.AddChild],
|
|
4473
4467
|
icon: /* @__PURE__ */ o(
|
|
4474
|
-
|
|
4468
|
+
xa,
|
|
4475
4469
|
{
|
|
4476
4470
|
width: M.size,
|
|
4477
4471
|
height: M.size,
|
|
4478
4472
|
className: "text-secondary"
|
|
4479
4473
|
}
|
|
4480
4474
|
),
|
|
4481
|
-
onClick: () =>
|
|
4475
|
+
onClick: () => Sn([N])
|
|
4482
4476
|
}), r.actionLabels[w.Duplicate] && !Re && !at && ie.push({
|
|
4483
4477
|
key: "duplicate",
|
|
4484
4478
|
label: r.actionLabels[w.Duplicate],
|
|
4485
|
-
icon: /* @__PURE__ */ o(
|
|
4486
|
-
onClick: () => W([
|
|
4479
|
+
icon: /* @__PURE__ */ o(Po, { ...M, className: "text-secondary" }),
|
|
4480
|
+
onClick: () => W([N])
|
|
4487
4481
|
}), r.actionLabels[w.Copy] && !Re && !at && ie.push({
|
|
4488
4482
|
key: ge.Copy,
|
|
4489
4483
|
label: r.actionLabels[w.Copy],
|
|
4490
4484
|
icon: /* @__PURE__ */ o(
|
|
4491
|
-
|
|
4485
|
+
Bo,
|
|
4492
4486
|
{
|
|
4493
4487
|
width: M.size,
|
|
4494
4488
|
height: M.size,
|
|
@@ -4496,13 +4490,13 @@ const li = () => {
|
|
|
4496
4490
|
}
|
|
4497
4491
|
),
|
|
4498
4492
|
onClick: () => {
|
|
4499
|
-
Te([
|
|
4493
|
+
Te([N]), fe(ge.Copy);
|
|
4500
4494
|
}
|
|
4501
4495
|
}), r.actionLabels[w.Move] && !Re && !at && ie.push({
|
|
4502
4496
|
key: ge.Move,
|
|
4503
4497
|
label: r.actionLabels[w.Move],
|
|
4504
4498
|
icon: /* @__PURE__ */ o(
|
|
4505
|
-
|
|
4499
|
+
Wo,
|
|
4506
4500
|
{
|
|
4507
4501
|
width: M.size,
|
|
4508
4502
|
height: M.size,
|
|
@@ -4510,66 +4504,66 @@ const li = () => {
|
|
|
4510
4504
|
}
|
|
4511
4505
|
),
|
|
4512
4506
|
onClick: () => {
|
|
4513
|
-
|
|
4507
|
+
Ne([N]), fe(ge.Move);
|
|
4514
4508
|
}
|
|
4515
4509
|
}), r.actionLabels[w.Download] && !Re && !at && ie.push({
|
|
4516
4510
|
key: "download",
|
|
4517
4511
|
label: r.actionLabels[w.Download],
|
|
4518
|
-
icon: /* @__PURE__ */ o(
|
|
4519
|
-
onClick: () => Oe([
|
|
4520
|
-
}), r.actionLabels[w.ManagePermissions] && typeof yt == "function" &&
|
|
4512
|
+
icon: /* @__PURE__ */ o(ko, { ...M, className: "text-secondary" }),
|
|
4513
|
+
onClick: () => Oe([N])
|
|
4514
|
+
}), r.actionLabels[w.ManagePermissions] && typeof yt == "function" && N.nodeType === O.FOLDER && !Re && ie.push({
|
|
4521
4515
|
key: w.ManagePermissions,
|
|
4522
4516
|
label: r.actionLabels[w.ManagePermissions],
|
|
4523
4517
|
icon: /* @__PURE__ */ o(
|
|
4524
|
-
|
|
4518
|
+
Fo,
|
|
4525
4519
|
{
|
|
4526
4520
|
...M,
|
|
4527
4521
|
className: "text-secondary"
|
|
4528
4522
|
}
|
|
4529
4523
|
),
|
|
4530
|
-
onClick: () => yt?.(
|
|
4531
|
-
}), r.actionLabels[w.Delete] &&
|
|
4524
|
+
onClick: () => yt?.(N.path)
|
|
4525
|
+
}), r.actionLabels[w.Delete] && N.permissions?.includes(St.WRITE) && !Re && ie.push({
|
|
4532
4526
|
key: "delete",
|
|
4533
4527
|
label: r.actionLabels[w.Delete],
|
|
4534
|
-
icon: /* @__PURE__ */ o(
|
|
4535
|
-
onClick: () => Se([
|
|
4528
|
+
icon: /* @__PURE__ */ o(Mo, { ...M, className: "text-secondary" }),
|
|
4529
|
+
onClick: () => Se([N], N.parentPath ?? "")
|
|
4536
4530
|
}), r.actionLabels[w.Rename] && !Re && ie.push({
|
|
4537
4531
|
key: "rename",
|
|
4538
4532
|
label: r.actionLabels[w.Rename],
|
|
4539
4533
|
icon: /* @__PURE__ */ o(
|
|
4540
|
-
|
|
4534
|
+
fa,
|
|
4541
4535
|
{
|
|
4542
4536
|
...M,
|
|
4543
4537
|
className: "text-secondary"
|
|
4544
4538
|
}
|
|
4545
4539
|
),
|
|
4546
|
-
onClick: () =>
|
|
4547
|
-
}), r.actionLabels[w.Unshare] && vt?.includes(
|
|
4540
|
+
onClick: () => In(N.path)
|
|
4541
|
+
}), r.actionLabels[w.Unshare] && vt?.includes(N.path) && !Re && ie.push({
|
|
4548
4542
|
key: "unshare",
|
|
4549
4543
|
label: r.actionLabels[w.Unshare],
|
|
4550
4544
|
icon: /* @__PURE__ */ o(
|
|
4551
|
-
|
|
4545
|
+
Ho,
|
|
4552
4546
|
{
|
|
4553
4547
|
width: M.size,
|
|
4554
4548
|
height: M.size,
|
|
4555
4549
|
className: "text-secondary"
|
|
4556
4550
|
}
|
|
4557
4551
|
),
|
|
4558
|
-
onClick: () => et?.([
|
|
4559
|
-
}), r.actionLabels[w.RemoveAccess] && b?.has(
|
|
4552
|
+
onClick: () => et?.([N])
|
|
4553
|
+
}), r.actionLabels[w.RemoveAccess] && b?.has(N.path) && !Re && ie.push({
|
|
4560
4554
|
key: w.RemoveAccess,
|
|
4561
4555
|
label: r.actionLabels[w.RemoveAccess],
|
|
4562
4556
|
icon: /* @__PURE__ */ o(
|
|
4563
|
-
|
|
4557
|
+
Ao,
|
|
4564
4558
|
{
|
|
4565
4559
|
size: M.size,
|
|
4566
4560
|
className: "text-secondary"
|
|
4567
4561
|
}
|
|
4568
4562
|
),
|
|
4569
|
-
onClick: () => gt?.([
|
|
4563
|
+
onClick: () => gt?.([N])
|
|
4570
4564
|
})), ee.length ? ie.length === 0 ? ee : ee.length === 0 ? ie : [
|
|
4571
4565
|
...ee,
|
|
4572
|
-
{ key: "divider", type:
|
|
4566
|
+
{ key: "divider", type: Da.Divider },
|
|
4573
4567
|
...ie
|
|
4574
4568
|
] : ie;
|
|
4575
4569
|
},
|
|
@@ -4580,34 +4574,34 @@ const li = () => {
|
|
|
4580
4574
|
W,
|
|
4581
4575
|
Te,
|
|
4582
4576
|
fe,
|
|
4583
|
-
|
|
4577
|
+
Ne,
|
|
4584
4578
|
Oe,
|
|
4585
|
-
|
|
4579
|
+
In,
|
|
4586
4580
|
et,
|
|
4587
4581
|
gt,
|
|
4588
4582
|
vt,
|
|
4589
4583
|
b,
|
|
4590
4584
|
Se,
|
|
4591
|
-
|
|
4592
|
-
|
|
4585
|
+
Sn,
|
|
4586
|
+
En
|
|
4593
4587
|
]
|
|
4594
|
-
),
|
|
4595
|
-
const
|
|
4596
|
-
return _.forEach((ee, ie) =>
|
|
4597
|
-
}, [_]),
|
|
4598
|
-
(
|
|
4599
|
-
P(
|
|
4588
|
+
), kn = $(() => {
|
|
4589
|
+
const N = /* @__PURE__ */ new Set();
|
|
4590
|
+
return _.forEach((ee, ie) => N.add(ie)), N;
|
|
4591
|
+
}, [_]), Ut = d(
|
|
4592
|
+
(N, ee) => {
|
|
4593
|
+
P(N), j?.(ee);
|
|
4600
4594
|
},
|
|
4601
4595
|
[j, P]
|
|
4602
|
-
),
|
|
4596
|
+
), On = ti({
|
|
4603
4597
|
selectedFiles: _,
|
|
4604
4598
|
actionLabels: c?.actionLabels,
|
|
4605
4599
|
onDuplicate: W,
|
|
4606
|
-
onCopy: (
|
|
4607
|
-
Te(
|
|
4600
|
+
onCopy: (N) => {
|
|
4601
|
+
Te(N), fe(ge.Copy);
|
|
4608
4602
|
},
|
|
4609
|
-
onMove: (
|
|
4610
|
-
|
|
4603
|
+
onMove: (N) => {
|
|
4604
|
+
Ne(N), fe(ge.Move);
|
|
4611
4605
|
},
|
|
4612
4606
|
onDownload: Oe,
|
|
4613
4607
|
onDelete: Se,
|
|
@@ -4618,15 +4612,15 @@ const li = () => {
|
|
|
4618
4612
|
sharedByMePaths: b,
|
|
4619
4613
|
onClearSelection: U,
|
|
4620
4614
|
forbiddenSymbolsRegExp: He
|
|
4621
|
-
}),
|
|
4622
|
-
(
|
|
4623
|
-
C?.onTabChange?.(
|
|
4615
|
+
}), Gt = d(
|
|
4616
|
+
(N) => {
|
|
4617
|
+
C?.onTabChange?.(N), Qe();
|
|
4624
4618
|
},
|
|
4625
4619
|
[C, Qe]
|
|
4626
|
-
),
|
|
4620
|
+
), wo = d(() => C && A.size === 0 ? /* @__PURE__ */ X(
|
|
4627
4621
|
"div",
|
|
4628
4622
|
{
|
|
4629
|
-
className:
|
|
4623
|
+
className: aa,
|
|
4630
4624
|
role: "toolbar",
|
|
4631
4625
|
"aria-label": "File Manager Toolbar",
|
|
4632
4626
|
children: [
|
|
@@ -4635,12 +4629,12 @@ const li = () => {
|
|
|
4635
4629
|
js,
|
|
4636
4630
|
{
|
|
4637
4631
|
...C,
|
|
4638
|
-
onTabChange:
|
|
4632
|
+
onTabChange: Gt,
|
|
4639
4633
|
areHiddenFilesVisible: f,
|
|
4640
4634
|
onToggleHiddenFiles: T,
|
|
4641
|
-
isNewButtonVisible:
|
|
4642
|
-
isNewButtonDisabled:
|
|
4643
|
-
newButtonDropdownItems:
|
|
4635
|
+
isNewButtonVisible: hn,
|
|
4636
|
+
isNewButtonDisabled: pn,
|
|
4637
|
+
newButtonDropdownItems: un
|
|
4644
4638
|
}
|
|
4645
4639
|
)
|
|
4646
4640
|
]
|
|
@@ -4648,7 +4642,7 @@ const li = () => {
|
|
|
4648
4642
|
) : A.size > 0 && c ? /* @__PURE__ */ o(
|
|
4649
4643
|
"div",
|
|
4650
4644
|
{
|
|
4651
|
-
className:
|
|
4645
|
+
className: aa,
|
|
4652
4646
|
role: "toolbar",
|
|
4653
4647
|
"aria-label": "File Manager Toolbar",
|
|
4654
4648
|
children: /* @__PURE__ */ o(
|
|
@@ -4657,32 +4651,32 @@ const li = () => {
|
|
|
4657
4651
|
...c,
|
|
4658
4652
|
selectedCount: A.size,
|
|
4659
4653
|
onClearSelection: U,
|
|
4660
|
-
actions:
|
|
4654
|
+
actions: On
|
|
4661
4655
|
}
|
|
4662
4656
|
)
|
|
4663
4657
|
}
|
|
4664
4658
|
) : null, [
|
|
4665
|
-
|
|
4659
|
+
Gt,
|
|
4666
4660
|
c,
|
|
4667
4661
|
A,
|
|
4668
4662
|
U,
|
|
4669
|
-
|
|
4663
|
+
On,
|
|
4670
4664
|
f,
|
|
4671
4665
|
T,
|
|
4672
4666
|
C,
|
|
4673
|
-
un,
|
|
4674
4667
|
hn,
|
|
4675
|
-
|
|
4668
|
+
pn,
|
|
4669
|
+
un,
|
|
4676
4670
|
e
|
|
4677
4671
|
]);
|
|
4678
|
-
|
|
4679
|
-
|
|
4672
|
+
mr(
|
|
4673
|
+
no,
|
|
4680
4674
|
() => ({
|
|
4681
4675
|
createFolder: je
|
|
4682
4676
|
}),
|
|
4683
4677
|
[je]
|
|
4684
4678
|
);
|
|
4685
|
-
const
|
|
4679
|
+
const No = d(() => ze ? null : /* @__PURE__ */ o(
|
|
4686
4680
|
"aside",
|
|
4687
4681
|
{
|
|
4688
4682
|
role: "region",
|
|
@@ -4691,27 +4685,27 @@ const li = () => {
|
|
|
4691
4685
|
children: /* @__PURE__ */ o(
|
|
4692
4686
|
zr,
|
|
4693
4687
|
{
|
|
4694
|
-
defaultWidth:
|
|
4695
|
-
width:
|
|
4696
|
-
onResizeStop:
|
|
4697
|
-
onResize:
|
|
4688
|
+
defaultWidth: Nt,
|
|
4689
|
+
width: Nt,
|
|
4690
|
+
onResizeStop: Rn,
|
|
4691
|
+
onResize: po,
|
|
4698
4692
|
minWidth: qr,
|
|
4699
4693
|
maxWidth: Yr,
|
|
4700
|
-
enabled: !
|
|
4694
|
+
enabled: !x,
|
|
4701
4695
|
children: /* @__PURE__ */ o(
|
|
4702
4696
|
_r,
|
|
4703
4697
|
{
|
|
4704
|
-
width:
|
|
4698
|
+
width: Nt,
|
|
4705
4699
|
title: Me,
|
|
4706
|
-
containerClassName:
|
|
4700
|
+
containerClassName: xn,
|
|
4707
4701
|
titleClassName: "dial-body-text text-primary",
|
|
4708
|
-
additionalButtons:
|
|
4709
|
-
isOpened: !
|
|
4702
|
+
additionalButtons: bn,
|
|
4703
|
+
isOpened: !x,
|
|
4710
4704
|
onToggle: F,
|
|
4711
4705
|
children: /* @__PURE__ */ o(
|
|
4712
4706
|
ei,
|
|
4713
4707
|
{
|
|
4714
|
-
...
|
|
4708
|
+
...Tn,
|
|
4715
4709
|
items: s,
|
|
4716
4710
|
rootItemPath: a?.path,
|
|
4717
4711
|
rootItemLabel: a?.label,
|
|
@@ -4719,14 +4713,14 @@ const li = () => {
|
|
|
4719
4713
|
sharedByMePaths: b,
|
|
4720
4714
|
forbiddenSymbolsRegExp: He,
|
|
4721
4715
|
forbiddenSymbolsTooltip: pt,
|
|
4722
|
-
onItemClick:
|
|
4716
|
+
onItemClick: q,
|
|
4723
4717
|
areHiddenFilesVisible: f,
|
|
4724
|
-
getContextMenuItems:
|
|
4718
|
+
getContextMenuItems: Ht,
|
|
4725
4719
|
renamedPath: nt === Rt.Tree ? Z : void 0,
|
|
4726
4720
|
onRenameSave: Pe,
|
|
4727
4721
|
onRenameCancel: ae,
|
|
4728
4722
|
onRenameValidate: Ve,
|
|
4729
|
-
createdFolderPath:
|
|
4723
|
+
createdFolderPath: Fn === ut.Tree ? $e : null,
|
|
4730
4724
|
onCreateFolderCancel: Qe,
|
|
4731
4725
|
onCreateFolderSave: Ct,
|
|
4732
4726
|
newFolderDefaultName: re
|
|
@@ -4739,13 +4733,13 @@ const li = () => {
|
|
|
4739
4733
|
}
|
|
4740
4734
|
), [
|
|
4741
4735
|
ze,
|
|
4742
|
-
|
|
4743
|
-
|
|
4736
|
+
Nt,
|
|
4737
|
+
x,
|
|
4744
4738
|
Me,
|
|
4745
|
-
|
|
4746
|
-
Nn,
|
|
4747
|
-
F,
|
|
4739
|
+
xn,
|
|
4748
4740
|
bn,
|
|
4741
|
+
F,
|
|
4742
|
+
Tn,
|
|
4749
4743
|
s,
|
|
4750
4744
|
a?.path,
|
|
4751
4745
|
a?.label,
|
|
@@ -4753,11 +4747,11 @@ const li = () => {
|
|
|
4753
4747
|
b,
|
|
4754
4748
|
He,
|
|
4755
4749
|
pt,
|
|
4756
|
-
|
|
4750
|
+
q,
|
|
4757
4751
|
f,
|
|
4758
|
-
|
|
4752
|
+
Ht,
|
|
4759
4753
|
nt,
|
|
4760
|
-
|
|
4754
|
+
Fn,
|
|
4761
4755
|
Z,
|
|
4762
4756
|
Pe,
|
|
4763
4757
|
ae,
|
|
@@ -4766,75 +4760,75 @@ const li = () => {
|
|
|
4766
4760
|
Qe,
|
|
4767
4761
|
Ct,
|
|
4768
4762
|
re
|
|
4769
|
-
]),
|
|
4763
|
+
]), Ln = ci({
|
|
4770
4764
|
actionLabels: p?.actionLabels,
|
|
4771
|
-
onDuplicate: (
|
|
4772
|
-
onCopy: (
|
|
4773
|
-
Te([
|
|
4765
|
+
onDuplicate: (N) => W([N]),
|
|
4766
|
+
onCopy: (N) => {
|
|
4767
|
+
Te([N]), fe(ge.Copy);
|
|
4774
4768
|
},
|
|
4775
|
-
onMove: (
|
|
4776
|
-
|
|
4769
|
+
onMove: (N) => {
|
|
4770
|
+
Ne([N]), fe(ge.Move);
|
|
4777
4771
|
},
|
|
4778
|
-
onDownload: (
|
|
4779
|
-
onRename:
|
|
4780
|
-
onDelete: (
|
|
4781
|
-
onInfo: (
|
|
4782
|
-
onUnshare: (
|
|
4783
|
-
onRemoveAccess: (
|
|
4772
|
+
onDownload: (N) => Oe([N]),
|
|
4773
|
+
onRename: co,
|
|
4774
|
+
onDelete: (N, ee) => Se([N], ee),
|
|
4775
|
+
onInfo: (N) => de(N),
|
|
4776
|
+
onUnshare: (N) => et?.([N]),
|
|
4777
|
+
onRemoveAccess: (N) => gt?.([N]),
|
|
4784
4778
|
sharedWithMeIds: vt,
|
|
4785
4779
|
sharedByMePaths: b,
|
|
4786
|
-
onManagePermissions: (
|
|
4787
|
-
onPreview: (
|
|
4788
|
-
onOpenInNewTab: (
|
|
4789
|
-
previewExtensions:
|
|
4790
|
-
isRenameFileAvailable:
|
|
4791
|
-
isDuplicateFolderAvailable:
|
|
4780
|
+
onManagePermissions: (N) => yt?.(N),
|
|
4781
|
+
onPreview: (N) => ao?.(N),
|
|
4782
|
+
onOpenInNewTab: (N) => ro?.(N),
|
|
4783
|
+
previewExtensions: so,
|
|
4784
|
+
isRenameFileAvailable: io,
|
|
4785
|
+
isDuplicateFolderAvailable: lo,
|
|
4792
4786
|
forbiddenSymbolsRegExp: He,
|
|
4793
|
-
onGridCreateSiblingFolder:
|
|
4794
|
-
onGridCreateChildFolder:
|
|
4795
|
-
}),
|
|
4796
|
-
(
|
|
4797
|
-
const ee = Ke(s,
|
|
4798
|
-
return ee ?
|
|
4787
|
+
onGridCreateSiblingFolder: uo,
|
|
4788
|
+
onGridCreateChildFolder: ho
|
|
4789
|
+
}), Vt = d(
|
|
4790
|
+
(N) => {
|
|
4791
|
+
const ee = Ke(s, N.path);
|
|
4792
|
+
return ee ? Ln(ee) : [];
|
|
4799
4793
|
},
|
|
4800
|
-
[s,
|
|
4801
|
-
),
|
|
4802
|
-
(
|
|
4803
|
-
[Dt,
|
|
4804
|
-
), { actionsColumnDef:
|
|
4805
|
-
getContextMenuItems:
|
|
4806
|
-
isRowDisabled:
|
|
4794
|
+
[s, Ln]
|
|
4795
|
+
), Do = d(
|
|
4796
|
+
(N, ee, ie) => Dt ? !1 : xt(N, ee, ie),
|
|
4797
|
+
[Dt, xt]
|
|
4798
|
+
), { actionsColumnDef: xo } = es({
|
|
4799
|
+
getContextMenuItems: Vt,
|
|
4800
|
+
isRowDisabled: Do,
|
|
4807
4801
|
allowedFileTypes: D,
|
|
4808
4802
|
buttonClassName: ze ? "" : $r
|
|
4809
|
-
}), { columnDefs:
|
|
4810
|
-
userColumnDefs:
|
|
4811
|
-
filterable:
|
|
4812
|
-
dateLocale:
|
|
4813
|
-
dateOptions:
|
|
4814
|
-
effectiveVisibleColumns:
|
|
4803
|
+
}), { columnDefs: $t } = ii({
|
|
4804
|
+
userColumnDefs: fo,
|
|
4805
|
+
filterable: mo,
|
|
4806
|
+
dateLocale: Co,
|
|
4807
|
+
dateOptions: go,
|
|
4808
|
+
effectiveVisibleColumns: yo,
|
|
4815
4809
|
isCompactView: ze,
|
|
4816
4810
|
hasActions: !!p?.actionLabels,
|
|
4817
|
-
actionsColumnDef:
|
|
4811
|
+
actionsColumnDef: xo,
|
|
4818
4812
|
rootItemLabel: a?.label,
|
|
4819
4813
|
rootItemPath: a?.path
|
|
4820
|
-
}),
|
|
4821
|
-
(
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
) ||
|
|
4814
|
+
}), zn = d(
|
|
4815
|
+
(N) => {
|
|
4816
|
+
N.colDef.colId === "ag-Grid-SelectionColumn" || N.colDef.colId === ye.Actions || Z && N.data?.path === Z || N.data?.isTemporary || zt && zt.includes(
|
|
4817
|
+
N.colDef.colId
|
|
4818
|
+
) || N.data && J(N.data);
|
|
4825
4819
|
},
|
|
4826
|
-
[Z, J,
|
|
4820
|
+
[Z, J, zt]
|
|
4827
4821
|
), dt = d(
|
|
4828
4822
|
() => /* @__PURE__ */ o(
|
|
4829
|
-
|
|
4823
|
+
wa,
|
|
4830
4824
|
{
|
|
4831
|
-
title:
|
|
4832
|
-
description:
|
|
4825
|
+
title: yn,
|
|
4826
|
+
description: wn,
|
|
4833
4827
|
descriptionClassName: "text-sm",
|
|
4834
4828
|
containerClassName: "gap-3 size-full bg-layer-sunken border rounded-[4px] border-primary",
|
|
4835
4829
|
titleClassName: "mt-2 !text-lg",
|
|
4836
4830
|
icon: lt || /* @__PURE__ */ o(
|
|
4837
|
-
|
|
4831
|
+
ur,
|
|
4838
4832
|
{
|
|
4839
4833
|
size: 100,
|
|
4840
4834
|
stroke: 0.5,
|
|
@@ -4843,20 +4837,20 @@ const li = () => {
|
|
|
4843
4837
|
)
|
|
4844
4838
|
}
|
|
4845
4839
|
),
|
|
4846
|
-
[
|
|
4847
|
-
),
|
|
4848
|
-
() =>
|
|
4840
|
+
[wn, lt, yn]
|
|
4841
|
+
), _n = $(() => (N) => N.path, []), Bn = $(
|
|
4842
|
+
() => an(
|
|
4849
4843
|
"min-h-[248px] overflow-auto md:min-h-[266px]",
|
|
4850
4844
|
st ? "border border-dashed border-info" : "",
|
|
4851
4845
|
ft && !st ? "border border-dashed border-primary" : ""
|
|
4852
4846
|
),
|
|
4853
4847
|
[st, ft]
|
|
4854
|
-
),
|
|
4848
|
+
), Wn = $(
|
|
4855
4849
|
() => ({
|
|
4856
4850
|
...ot.additionalGridOptions,
|
|
4857
|
-
onCellClicked:
|
|
4858
|
-
headerHeight:
|
|
4859
|
-
rowHeight:
|
|
4851
|
+
onCellClicked: zn,
|
|
4852
|
+
headerHeight: sa,
|
|
4853
|
+
rowHeight: sa,
|
|
4860
4854
|
rowClass: "group/grid-row",
|
|
4861
4855
|
defaultColDef: {
|
|
4862
4856
|
...ot.additionalGridOptions?.defaultColDef,
|
|
@@ -4865,69 +4859,69 @@ const li = () => {
|
|
|
4865
4859
|
context: {
|
|
4866
4860
|
cancelFolderCreation: Qe,
|
|
4867
4861
|
saveFolderCreation: Ct,
|
|
4868
|
-
getDisplayName:
|
|
4862
|
+
getDisplayName: cn,
|
|
4869
4863
|
onRenameCancel: ae,
|
|
4870
4864
|
onRenameSave: Pe,
|
|
4871
4865
|
onRenameValidate: Ve,
|
|
4872
4866
|
renameTriggerView: nt,
|
|
4873
|
-
validateFolderName:
|
|
4867
|
+
validateFolderName: mn,
|
|
4874
4868
|
renamedItem: me,
|
|
4875
4869
|
renamedPath: Z,
|
|
4876
4870
|
createdFolderPath: $e,
|
|
4877
|
-
newFolderTempId:
|
|
4871
|
+
newFolderTempId: fn,
|
|
4878
4872
|
sharedByMePaths: b,
|
|
4879
4873
|
selectedPaths: A,
|
|
4880
4874
|
disabledRowIds: ct,
|
|
4881
4875
|
forbiddenSymbolsRegExp: He,
|
|
4882
4876
|
forbiddenSymbolsTooltip: pt,
|
|
4883
|
-
hideSearchPathItemName:
|
|
4877
|
+
hideSearchPathItemName: _t,
|
|
4884
4878
|
newFolderDefaultName: re,
|
|
4885
4879
|
filesLoading: n
|
|
4886
4880
|
}
|
|
4887
4881
|
}),
|
|
4888
4882
|
[
|
|
4889
4883
|
ot.additionalGridOptions,
|
|
4890
|
-
|
|
4884
|
+
zn,
|
|
4891
4885
|
i?.searchable,
|
|
4892
4886
|
Qe,
|
|
4893
4887
|
Ct,
|
|
4894
|
-
|
|
4888
|
+
cn,
|
|
4895
4889
|
ae,
|
|
4896
4890
|
Pe,
|
|
4897
4891
|
Ve,
|
|
4898
4892
|
nt,
|
|
4899
|
-
|
|
4893
|
+
mn,
|
|
4900
4894
|
me,
|
|
4901
4895
|
Z,
|
|
4902
4896
|
$e,
|
|
4903
|
-
|
|
4897
|
+
fn,
|
|
4904
4898
|
b,
|
|
4905
4899
|
A,
|
|
4906
4900
|
ct,
|
|
4907
4901
|
He,
|
|
4908
4902
|
pt,
|
|
4909
|
-
|
|
4903
|
+
_t,
|
|
4910
4904
|
re,
|
|
4911
4905
|
n
|
|
4912
4906
|
]
|
|
4913
|
-
),
|
|
4907
|
+
), bo = $(
|
|
4914
4908
|
() => S.length === 0 && !tt && !n ? dt() : /* @__PURE__ */ o(
|
|
4915
|
-
|
|
4909
|
+
Ca,
|
|
4916
4910
|
{
|
|
4917
|
-
columnDefs:
|
|
4911
|
+
columnDefs: $t,
|
|
4918
4912
|
rowData: S,
|
|
4919
|
-
getRowId:
|
|
4920
|
-
loading: n ||
|
|
4921
|
-
getContextMenuItems:
|
|
4913
|
+
getRowId: _n,
|
|
4914
|
+
loading: n || vn,
|
|
4915
|
+
getContextMenuItems: Vt,
|
|
4922
4916
|
withoutHeaderBorders: ze,
|
|
4923
4917
|
onGridApiChange: te,
|
|
4924
|
-
className:
|
|
4918
|
+
className: Bn,
|
|
4925
4919
|
...ot,
|
|
4926
|
-
selectionMode:
|
|
4927
|
-
wrapCustomCellRenderers:
|
|
4928
|
-
additionalGridOptions:
|
|
4929
|
-
selectedRowIds:
|
|
4930
|
-
onSelectionChange:
|
|
4920
|
+
selectionMode: An,
|
|
4921
|
+
wrapCustomCellRenderers: Pn,
|
|
4922
|
+
additionalGridOptions: Wn,
|
|
4923
|
+
selectedRowIds: kn,
|
|
4924
|
+
onSelectionChange: Ut,
|
|
4931
4925
|
wrapperBorder: !st && !ft,
|
|
4932
4926
|
disabledRowIds: ct,
|
|
4933
4927
|
allowDisabledContextMenu: Dt
|
|
@@ -4938,26 +4932,26 @@ const li = () => {
|
|
|
4938
4932
|
tt,
|
|
4939
4933
|
n,
|
|
4940
4934
|
dt,
|
|
4935
|
+
$t,
|
|
4936
|
+
_n,
|
|
4937
|
+
vn,
|
|
4941
4938
|
Vt,
|
|
4942
|
-
zn,
|
|
4943
|
-
gn,
|
|
4944
|
-
Gt,
|
|
4945
4939
|
ze,
|
|
4946
4940
|
te,
|
|
4947
|
-
|
|
4941
|
+
Bn,
|
|
4948
4942
|
ot,
|
|
4949
|
-
Sn,
|
|
4950
4943
|
An,
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4944
|
+
Pn,
|
|
4945
|
+
Wn,
|
|
4946
|
+
kn,
|
|
4947
|
+
Ut,
|
|
4954
4948
|
st,
|
|
4955
4949
|
ft,
|
|
4956
4950
|
ct,
|
|
4957
4951
|
Dt
|
|
4958
4952
|
]
|
|
4959
4953
|
);
|
|
4960
|
-
return /* @__PURE__ */ o("section", { ref:
|
|
4954
|
+
return /* @__PURE__ */ o("section", { ref: vo, className: "size-full", children: /* @__PURE__ */ X(
|
|
4961
4955
|
"div",
|
|
4962
4956
|
{
|
|
4963
4957
|
className: Ee(
|
|
@@ -4970,9 +4964,9 @@ const li = () => {
|
|
|
4970
4964
|
t
|
|
4971
4965
|
),
|
|
4972
4966
|
children: [
|
|
4973
|
-
|
|
4974
|
-
/* @__PURE__ */ X("div", { className: Ee(Hr,
|
|
4975
|
-
|
|
4967
|
+
wo(),
|
|
4968
|
+
/* @__PURE__ */ X("div", { className: Ee(Hr, Lt), children: [
|
|
4969
|
+
No(),
|
|
4976
4970
|
/* @__PURE__ */ X(
|
|
4977
4971
|
"div",
|
|
4978
4972
|
{
|
|
@@ -4984,7 +4978,7 @@ const li = () => {
|
|
|
4984
4978
|
$s,
|
|
4985
4979
|
{
|
|
4986
4980
|
...i ?? {},
|
|
4987
|
-
makeHref: (
|
|
4981
|
+
makeHref: (N) => N.join("/"),
|
|
4988
4982
|
path: I,
|
|
4989
4983
|
onItemClick: B,
|
|
4990
4984
|
rootItemPath: a?.path,
|
|
@@ -5001,19 +4995,19 @@ const li = () => {
|
|
|
5001
4995
|
role: "region",
|
|
5002
4996
|
"aria-label": "File Manager Grid View",
|
|
5003
4997
|
className: Ee(Vr, "relative"),
|
|
5004
|
-
onDragEnter:
|
|
5005
|
-
onDragLeave:
|
|
5006
|
-
onDragOver:
|
|
4998
|
+
onDragEnter: Xn,
|
|
4999
|
+
onDragLeave: qn,
|
|
5000
|
+
onDragOver: Yn,
|
|
5007
5001
|
onDrop: mt,
|
|
5008
5002
|
children: [
|
|
5009
|
-
|
|
5003
|
+
bo,
|
|
5010
5004
|
/* @__PURE__ */ o(
|
|
5011
5005
|
Os,
|
|
5012
5006
|
{
|
|
5013
5007
|
disabledGridRowIds: ct,
|
|
5014
5008
|
gridRows: S,
|
|
5015
|
-
getDisabledTooltip:
|
|
5016
|
-
getRowDisabledTooltip:
|
|
5009
|
+
getDisabledTooltip: Ot,
|
|
5010
|
+
getRowDisabledTooltip: Wt,
|
|
5017
5011
|
allowedFileTypes: D,
|
|
5018
5012
|
maxSelectableFileSize: h
|
|
5019
5013
|
}
|
|
@@ -5039,66 +5033,66 @@ const li = () => {
|
|
|
5039
5033
|
Ls,
|
|
5040
5034
|
{
|
|
5041
5035
|
...u,
|
|
5042
|
-
open:
|
|
5036
|
+
open: xe,
|
|
5043
5037
|
onClose: we,
|
|
5044
5038
|
onConfirm: () => {
|
|
5045
|
-
const
|
|
5046
|
-
ue === ge.Copy ? be(
|
|
5039
|
+
const N = u?.destinationFolderPath ?? "/";
|
|
5040
|
+
ue === ge.Copy ? be(N) : De(N), we();
|
|
5047
5041
|
},
|
|
5048
5042
|
mode: ue,
|
|
5049
5043
|
items: s,
|
|
5050
5044
|
rootItem: a,
|
|
5051
5045
|
gridOptions: {
|
|
5052
|
-
columnDefs:
|
|
5053
|
-
(
|
|
5046
|
+
columnDefs: $t.filter(
|
|
5047
|
+
(N) => N.colId !== ye.Actions
|
|
5054
5048
|
),
|
|
5055
5049
|
loading: n
|
|
5056
5050
|
},
|
|
5057
|
-
onUploadFiles:
|
|
5058
|
-
onValidateUpload:
|
|
5059
|
-
maxFileSize:
|
|
5051
|
+
onUploadFiles: dn,
|
|
5052
|
+
onValidateUpload: At,
|
|
5053
|
+
maxFileSize: Kn,
|
|
5060
5054
|
path: u?.destinationFolderPath ?? u?.sourceFolder ?? I,
|
|
5061
|
-
onPathChange: (
|
|
5062
|
-
u?.setDestinationFolderPath?.(
|
|
5055
|
+
onPathChange: (N) => {
|
|
5056
|
+
u?.setDestinationFolderPath?.(N);
|
|
5063
5057
|
},
|
|
5064
5058
|
sourceFolder: u?.sourceFolder ?? I,
|
|
5065
5059
|
treeOptions: { header: r?.header },
|
|
5066
|
-
onFolderPopupPathChange:
|
|
5060
|
+
onFolderPopupPathChange: oo,
|
|
5067
5061
|
showHiddenFileSwitcher: le,
|
|
5068
|
-
showCreateFolderButton:
|
|
5069
|
-
hideSearchPathItemName:
|
|
5062
|
+
showCreateFolderButton: Dn,
|
|
5063
|
+
hideSearchPathItemName: _t
|
|
5070
5064
|
}
|
|
5071
5065
|
),
|
|
5072
5066
|
/* @__PURE__ */ o(
|
|
5073
|
-
|
|
5067
|
+
ia,
|
|
5074
5068
|
{
|
|
5075
5069
|
...y,
|
|
5076
|
-
open:
|
|
5070
|
+
open: Pt,
|
|
5077
5071
|
onClose: Xe,
|
|
5078
|
-
onReplace:
|
|
5072
|
+
onReplace: Cn,
|
|
5079
5073
|
onDuplicate: Ze,
|
|
5080
5074
|
onDecideForEach: it,
|
|
5081
5075
|
conflictingFiles: ve
|
|
5082
5076
|
}
|
|
5083
5077
|
),
|
|
5084
5078
|
/* @__PURE__ */ o(
|
|
5085
|
-
|
|
5079
|
+
ia,
|
|
5086
5080
|
{
|
|
5087
5081
|
...y,
|
|
5088
5082
|
open: Je,
|
|
5089
|
-
onClose:
|
|
5090
|
-
onReplace:
|
|
5091
|
-
onDuplicate:
|
|
5092
|
-
onDecideForEach:
|
|
5093
|
-
conflictingFiles:
|
|
5083
|
+
onClose: eo,
|
|
5084
|
+
onReplace: Qn,
|
|
5085
|
+
onDuplicate: Jn,
|
|
5086
|
+
onDecideForEach: to,
|
|
5087
|
+
conflictingFiles: gn
|
|
5094
5088
|
}
|
|
5095
5089
|
),
|
|
5096
5090
|
/* @__PURE__ */ o(
|
|
5097
5091
|
qs,
|
|
5098
5092
|
{
|
|
5099
5093
|
open: qe,
|
|
5100
|
-
onClose:
|
|
5101
|
-
fileMetadata: Fe?.fileMetadata ??
|
|
5094
|
+
onClose: kt,
|
|
5095
|
+
fileMetadata: Fe?.fileMetadata ?? Mt,
|
|
5102
5096
|
loading: Fe?.loading,
|
|
5103
5097
|
header: Fe?.header,
|
|
5104
5098
|
nameLabel: Fe?.nameLabel,
|
|
@@ -5113,14 +5107,14 @@ const li = () => {
|
|
|
5113
5107
|
]
|
|
5114
5108
|
}
|
|
5115
5109
|
) });
|
|
5116
|
-
}, wi = (e, t =
|
|
5117
|
-
const s = Object.values(
|
|
5110
|
+
}, wi = (e, t = nn.MyFiles) => {
|
|
5111
|
+
const s = Object.values(nn).includes(
|
|
5118
5112
|
t
|
|
5119
|
-
) ? t :
|
|
5113
|
+
) ? t : nn.MyFiles, [a, n] = z(s), r = (i) => {
|
|
5120
5114
|
n(i);
|
|
5121
5115
|
}, l = $(() => {
|
|
5122
5116
|
if (e)
|
|
5123
|
-
return Object.values(
|
|
5117
|
+
return Object.values(nn).map((i) => ({
|
|
5124
5118
|
id: i,
|
|
5125
5119
|
label: e?.[i] || i.replace("_", " ")
|
|
5126
5120
|
}));
|
|
@@ -5138,9 +5132,9 @@ export {
|
|
|
5138
5132
|
w as DialFileManagerActions,
|
|
5139
5133
|
Ce as DialFileManagerConflictActions,
|
|
5140
5134
|
ke as DialFileManagerConflictStrategies,
|
|
5141
|
-
|
|
5135
|
+
nn as DialFileManagerTabs,
|
|
5142
5136
|
O as DialFileNodeType,
|
|
5143
|
-
|
|
5137
|
+
St as DialFilePermission,
|
|
5144
5138
|
Jr as DialFileResourceType,
|
|
5145
5139
|
ei as DialFoldersTree,
|
|
5146
5140
|
ye as FileManagerColumnKey,
|