@epam/ai-dial-publish-panel 1.1.0-dev.445 → 1.1.0-dev.447
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/PublishPanel/PublishPanel.d.ts +13 -0
- package/components/PublishPanel/PublishPanel.d.ts.map +1 -1
- package/components/PublishPanel/StandalonePublishPanel.d.ts +7 -0
- package/components/PublishPanel/StandalonePublishPanel.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.js +894 -867
- package/package.json +2 -2
- package/utils/use-publish-flow.d.ts +25 -3
- package/utils/use-publish-flow.d.ts.map +1 -1
package/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import { createContext as t, useCallback as n, useContext as r, useEffect as i, useId as a, useImperativeHandle as o, useLayoutEffect as s, useMemo as c, useRef as l, useState as u } from "react";
|
|
3
|
-
import { BASE_ICON_SIZE as d, ButtonAppearance as f, ButtonDropdown as p, ButtonVariant as m, CloseButton as h, CollapsibleSidebar as g, ConditionalResizableContainer as _, ConfirmationPopup as v, ConfirmationPopupVariant as y, DEFAULT_DATE_FORMAT_OPTIONS as b, DEFAULT_DATE_LOCALE as x, DIAL_ICON_SIZE as S, DIAL_KIT_ICON_STROKE as C, DateCellRenderer as w, DialBreadcrumb as T, DialFileIcon as E, DialFileName as D, DialFileNodeType as O, DialFolderName as k, DialIcon as A, DialItemType as j, DialSharedEntityIndicator as M, Dropdown as N, DropdownItemType as P, DropdownTrigger as F, ElementSize as I, EllipsisTooltip as L, FlexibleActionsDirection as R, GRID_SELECTION_COLUMN_ID as z, GhostButton as ee, GhostIconButton as B, Grid as te, Input as
|
|
4
|
-
import { ResourceSummary as
|
|
5
|
-
import { Fragment as
|
|
6
|
-
import { IconAlertCircleFilled as
|
|
3
|
+
import { BASE_ICON_SIZE as d, ButtonAppearance as f, ButtonDropdown as p, ButtonVariant as m, CloseButton as h, CollapsibleSidebar as g, ConditionalResizableContainer as _, ConfirmationPopup as v, ConfirmationPopupVariant as y, DEFAULT_DATE_FORMAT_OPTIONS as b, DEFAULT_DATE_LOCALE as x, DIAL_ICON_SIZE as S, DIAL_KIT_ICON_STROKE as C, DateCellRenderer as w, DialBreadcrumb as T, DialFileIcon as E, DialFileName as D, DialFileNodeType as O, DialFolderName as k, DialIcon as A, DialItemType as j, DialSharedEntityIndicator as M, Dropdown as N, DropdownItemType as P, DropdownTrigger as F, ElementSize as I, EllipsisTooltip as L, FlexibleActionsDirection as R, GRID_SELECTION_COLUMN_ID as z, GhostButton as ee, GhostIconButton as B, Grid as te, Input as V, NOT_ALLOWED_SYMBOLS_REGEXP as ne, NeutralButton as re, NoDataContent as ie, Notification as ae, NotificationType as oe, NotificationVariant as se, Popup as ce, PopupSize as H, PrimaryButton as le, RadioGroup as ue, Search as de, Select as fe, Skeleton as pe, SkeletonVariant as me, Spinner as he, Switch as ge, Tabs as _e, Tag as ve, TagInput as ye, Tooltip as be, TooltipContainer as xe, TooltipContent as Se, TooltipPlacement as Ce, TooltipTrigger as we, convertToDate as Te, editableContainerProps as Ee, mergeClasses as De, useEditableItem as Oe } from "@epam/ai-dial-ui-kit";
|
|
4
|
+
import { ResourceSummary as ke, TAG_INPUT_TAG_CLASS_NAME as Ae, buildCssVars as je, mergeClasses as U } from "@epam/ai-dial-chat-shared";
|
|
5
|
+
import { Fragment as W, jsx as G, jsxs as K } from "react/jsx-runtime";
|
|
6
|
+
import { IconAlertCircleFilled as Me, IconAlertTriangleFilled as Ne, IconArrowLeft as Pe, IconCaretRightFilled as Fe, IconChevronDown as Ie, IconCircleFilled as Le, IconCopy as Re, IconCopyMinus as ze, IconDotsVertical as Be, IconDownload as Ve, IconExternalLink as He, IconEye as Ue, IconEyeOff as We, IconFile as Ge, IconFileDescription as Ke, IconFileZip as qe, IconFolder as Je, IconFolderPlus as Ye, IconInfoCircle as Xe, IconPencilMinus as Ze, IconPlus as Qe, IconTrashX as $e, IconUserX as q, IconX as et } from "@tabler/icons-react";
|
|
7
7
|
import { createPortal as tt } from "react-dom";
|
|
8
8
|
//#region \0rolldown/runtime.js
|
|
9
9
|
var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDescriptor, at = Object.getOwnPropertyNames, ot = Object.getPrototypeOf, st = Object.prototype.hasOwnProperty, ct = (e, t) => () => (e && (t = e(e = 0)), t), lt = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), ut = (e, t) => {
|
|
@@ -78,79 +78,88 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
|
|
|
78
78
|
...e,
|
|
79
79
|
children: e.children ? bt(e.children, t, n) : e.children
|
|
80
80
|
});
|
|
81
|
-
}, xt = ({ item: e, history: t, folderItems: r, hasWriteAccess: a = () => !0,
|
|
82
|
-
let [
|
|
81
|
+
}, xt = ({ item: e, history: t, folderItems: r, hasWriteAccess: a = () => !0, defaultAuthor: o = "", onCreateFolder: s, onPublish: l, onPublishSuccess: d, onPublishError: f, onFetchExistingRules: p }) => {
|
|
82
|
+
let [m, h] = u(r);
|
|
83
83
|
i(() => {
|
|
84
|
-
|
|
84
|
+
h(r);
|
|
85
85
|
}, [r]);
|
|
86
|
-
let [
|
|
86
|
+
let [g, _] = u(), [v, y] = u(!1), [b, x] = u(!1), [S, C] = u([]), [w, T] = u(!1), [E, D] = u(!1), [O, k] = u(o), [A, j] = u(!1);
|
|
87
87
|
i(() => {
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
A || k(o);
|
|
89
|
+
}, [o, A]);
|
|
90
|
+
let M = n((e) => {
|
|
91
|
+
j(!0), k(e);
|
|
92
|
+
}, []);
|
|
93
|
+
i(() => {
|
|
94
|
+
if (g == null) {
|
|
95
|
+
C([]), D(!1);
|
|
90
96
|
return;
|
|
91
97
|
}
|
|
92
|
-
if (!
|
|
98
|
+
if (!p) return;
|
|
93
99
|
let e = !1;
|
|
94
|
-
return
|
|
95
|
-
e ||
|
|
100
|
+
return T(!0), D(!1), p(g).then((t) => {
|
|
101
|
+
e || C(t);
|
|
96
102
|
}).catch(() => {
|
|
97
|
-
e ||
|
|
103
|
+
e || D(!0);
|
|
98
104
|
}).finally(() => {
|
|
99
|
-
e ||
|
|
105
|
+
e || T(!1);
|
|
100
106
|
}), () => {
|
|
101
107
|
e = !0;
|
|
102
108
|
};
|
|
103
|
-
}, [
|
|
104
|
-
let
|
|
105
|
-
if (!
|
|
106
|
-
let n =
|
|
109
|
+
}, [g]);
|
|
110
|
+
let N = c(() => {
|
|
111
|
+
if (!g) return !1;
|
|
112
|
+
let n = g.join("/");
|
|
107
113
|
return t.some((t) => t.folderPath.join("/") === n ? e.version == null ? !0 : t.version === e.version : !1);
|
|
108
114
|
}, [
|
|
109
115
|
t,
|
|
110
116
|
e.version,
|
|
111
|
-
|
|
112
|
-
]),
|
|
113
|
-
|
|
117
|
+
g
|
|
118
|
+
]), P = n(async (e, t) => {
|
|
119
|
+
h((n) => yt(n, e, t));
|
|
114
120
|
try {
|
|
115
|
-
await
|
|
121
|
+
await s?.(e, t);
|
|
116
122
|
} catch {
|
|
117
|
-
|
|
123
|
+
h((n) => bt(n, e, t)), x(!0);
|
|
118
124
|
}
|
|
119
|
-
}, [
|
|
120
|
-
if (!
|
|
121
|
-
|
|
125
|
+
}, [s]), F = n(async () => {
|
|
126
|
+
if (!g) return !1;
|
|
127
|
+
y(!0), x(!1);
|
|
122
128
|
try {
|
|
123
|
-
return await
|
|
129
|
+
return await l(e, g, S, O.trim()), d?.(e, g), !0;
|
|
124
130
|
} catch (t) {
|
|
125
|
-
return
|
|
131
|
+
return x(!0), f?.(e, g, t), !1;
|
|
126
132
|
} finally {
|
|
127
|
-
|
|
133
|
+
y(!1);
|
|
128
134
|
}
|
|
129
135
|
}, [
|
|
136
|
+
O,
|
|
130
137
|
e,
|
|
131
|
-
s,
|
|
132
|
-
d,
|
|
133
138
|
l,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
+
f,
|
|
140
|
+
d,
|
|
141
|
+
S,
|
|
142
|
+
g
|
|
143
|
+
]), I = n(() => {
|
|
144
|
+
h(r), _(void 0), x(!1), C([]), D(!1), k(o), j(!1);
|
|
145
|
+
}, [o, r]);
|
|
139
146
|
return {
|
|
140
|
-
folderItems:
|
|
141
|
-
selectedFolderPath:
|
|
142
|
-
setSelectedFolderPath:
|
|
143
|
-
handleCreateFolder:
|
|
144
|
-
hasExistingPublicationInFolder:
|
|
145
|
-
hasWriteAccess:
|
|
146
|
-
isSubmitting:
|
|
147
|
-
hasSubmitError:
|
|
148
|
-
handleSubmit:
|
|
149
|
-
reset:
|
|
150
|
-
rules:
|
|
151
|
-
setRules:
|
|
152
|
-
|
|
153
|
-
|
|
147
|
+
folderItems: m,
|
|
148
|
+
selectedFolderPath: g,
|
|
149
|
+
setSelectedFolderPath: _,
|
|
150
|
+
handleCreateFolder: P,
|
|
151
|
+
hasExistingPublicationInFolder: N,
|
|
152
|
+
hasWriteAccess: g ? a(g) : !0,
|
|
153
|
+
isSubmitting: v,
|
|
154
|
+
hasSubmitError: b,
|
|
155
|
+
handleSubmit: F,
|
|
156
|
+
reset: I,
|
|
157
|
+
rules: S,
|
|
158
|
+
setRules: C,
|
|
159
|
+
author: O,
|
|
160
|
+
setAuthor: M,
|
|
161
|
+
isRulesLoading: w,
|
|
162
|
+
hasRulesLoadError: E
|
|
154
163
|
};
|
|
155
164
|
}, St = (e, t) => {
|
|
156
165
|
let n = t.trim().toLowerCase();
|
|
@@ -222,7 +231,7 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
|
|
|
222
231
|
}
|
|
223
232
|
}, Rt = ({ sourceOptions: e, onSave: t, onCancel: n, disabled: r = !1, maxTargets: o = Pt, labels: s = {}, errorClassName: d = "dial-small-text", styles: f = {} }) => {
|
|
224
233
|
let p = {
|
|
225
|
-
...
|
|
234
|
+
...je({
|
|
226
235
|
"--pare-mobile-bg": f.colors?.mobileBackground,
|
|
227
236
|
"--pare-bg": f.colors?.background,
|
|
228
237
|
"--pare-error-text": f.colors?.errorText,
|
|
@@ -236,10 +245,10 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
|
|
|
236
245
|
i(() => {
|
|
237
246
|
F.current?.focus();
|
|
238
247
|
}, []);
|
|
239
|
-
let [I, L] = u(), [R, z] = u(), [B, te] = u([]), [
|
|
248
|
+
let [I, L] = u(), [R, z] = u(), [B, te] = u([]), [ne, ie] = u(""), [ae, oe] = u(!1), [se, ce] = u(!1), [H, le] = u(!1), ue = U(Nt.selectField, ae && Nt.selectFieldOpen), de = U(Nt.selectField, se && Nt.selectFieldOpen), pe = c(() => e.map((e) => ({
|
|
240
249
|
value: e,
|
|
241
250
|
label: e
|
|
242
|
-
})), [e]),
|
|
251
|
+
})), [e]), me = c(() => [
|
|
243
252
|
{
|
|
244
253
|
value: mt.Equal,
|
|
245
254
|
label: _
|
|
@@ -256,8 +265,8 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
|
|
|
256
265
|
_,
|
|
257
266
|
v,
|
|
258
267
|
y
|
|
259
|
-
]),
|
|
260
|
-
return /* @__PURE__ */
|
|
268
|
+
]), he = R === mt.Regex, ge = Lt(ne), _e = I != null && R != null && (he ? ge : B.length > 0);
|
|
269
|
+
return /* @__PURE__ */ K("div", {
|
|
261
270
|
ref: F,
|
|
262
271
|
role: "dialog",
|
|
263
272
|
"aria-modal": "true",
|
|
@@ -267,12 +276,12 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
|
|
|
267
276
|
e.key === "Escape" && (e.stopPropagation(), n());
|
|
268
277
|
},
|
|
269
278
|
style: p,
|
|
270
|
-
className:
|
|
279
|
+
className: U("fixed inset-0 z-[60] flex flex-col gap-3 overflow-y-auto p-4", "desktop:static desktop:z-auto desktop:flex-none desktop:overflow-visible desktop:rounded-lg desktop:p-3", Nt.dialog),
|
|
271
280
|
children: [
|
|
272
|
-
/* @__PURE__ */
|
|
281
|
+
/* @__PURE__ */ G(fe, {
|
|
273
282
|
id: M,
|
|
274
283
|
labelProps: { label: m },
|
|
275
|
-
options:
|
|
284
|
+
options: pe,
|
|
276
285
|
value: I,
|
|
277
286
|
onChange: (e) => {
|
|
278
287
|
L(Array.isArray(e) ? e[0] : e), oe(!1);
|
|
@@ -283,48 +292,48 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
|
|
|
283
292
|
disabled: r,
|
|
284
293
|
open: ae,
|
|
285
294
|
onOpenChange: oe,
|
|
286
|
-
fieldClassName:
|
|
287
|
-
invalid:
|
|
288
|
-
error:
|
|
295
|
+
fieldClassName: ue,
|
|
296
|
+
invalid: H && I == null,
|
|
297
|
+
error: H && I == null ? E : void 0
|
|
289
298
|
}),
|
|
290
|
-
/* @__PURE__ */
|
|
299
|
+
/* @__PURE__ */ G(fe, {
|
|
291
300
|
labelProps: { label: g },
|
|
292
301
|
id: N,
|
|
293
|
-
options:
|
|
302
|
+
options: me,
|
|
294
303
|
value: R,
|
|
295
304
|
onChange: (e) => {
|
|
296
305
|
let t = Array.isArray(e) ? e[0] : e;
|
|
297
|
-
R === mt.Regex != (t === mt.Regex) && (te([]), ie("")), z(t),
|
|
306
|
+
R === mt.Regex != (t === mt.Regex) && (te([]), ie("")), z(t), ce(!1);
|
|
298
307
|
},
|
|
299
308
|
placeholder: g,
|
|
300
309
|
disabled: r,
|
|
301
|
-
open:
|
|
302
|
-
onOpenChange:
|
|
303
|
-
fieldClassName:
|
|
304
|
-
invalid:
|
|
305
|
-
error:
|
|
310
|
+
open: se,
|
|
311
|
+
onOpenChange: ce,
|
|
312
|
+
fieldClassName: de,
|
|
313
|
+
invalid: H && R == null,
|
|
314
|
+
error: H && R == null ? E : void 0
|
|
306
315
|
}),
|
|
307
|
-
|
|
316
|
+
he ? /* @__PURE__ */ K("div", { children: [/* @__PURE__ */ G(V, {
|
|
308
317
|
id: `${j}-input`,
|
|
309
318
|
labelProps: { label: C },
|
|
310
319
|
placeholder: w,
|
|
311
|
-
value:
|
|
320
|
+
value: ne,
|
|
312
321
|
onChange: (e) => ie(e ?? ""),
|
|
313
|
-
invalid: (
|
|
314
|
-
"aria-describedby": (
|
|
322
|
+
invalid: (ne.length > 0 || H) && !ge,
|
|
323
|
+
"aria-describedby": (ne.length > 0 || H) && !ge ? j : void 0,
|
|
315
324
|
disabled: r
|
|
316
|
-
}), (
|
|
325
|
+
}), (ne.length > 0 || H) && !ge && /* @__PURE__ */ G("span", {
|
|
317
326
|
id: j,
|
|
318
327
|
role: "alert",
|
|
319
|
-
className:
|
|
328
|
+
className: U("mt-1 block", d, Nt.error),
|
|
320
329
|
children: T
|
|
321
|
-
})] }) : /* @__PURE__ */
|
|
330
|
+
})] }) : /* @__PURE__ */ G(ye, {
|
|
322
331
|
id: P,
|
|
323
332
|
labelProps: { label: b },
|
|
324
333
|
placeholder: x,
|
|
325
|
-
caption:
|
|
326
|
-
error:
|
|
327
|
-
invalid:
|
|
334
|
+
caption: H && B.length === 0 ? void 0 : S,
|
|
335
|
+
error: H && B.length === 0 ? D : void 0,
|
|
336
|
+
invalid: H && B.length === 0,
|
|
328
337
|
value: B,
|
|
329
338
|
onChange: (e) => {
|
|
330
339
|
let t = [];
|
|
@@ -335,25 +344,25 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
|
|
|
335
344
|
te(t);
|
|
336
345
|
},
|
|
337
346
|
disabled: r,
|
|
338
|
-
tagClassName:
|
|
347
|
+
tagClassName: Ae
|
|
339
348
|
}),
|
|
340
|
-
/* @__PURE__ */
|
|
349
|
+
/* @__PURE__ */ K("div", {
|
|
341
350
|
className: "mt-auto flex justify-end gap-2 desktop:mt-2",
|
|
342
|
-
children: [/* @__PURE__ */
|
|
351
|
+
children: [/* @__PURE__ */ G(ee, {
|
|
343
352
|
label: k,
|
|
344
353
|
onClick: n,
|
|
345
354
|
disabled: r
|
|
346
|
-
}), /* @__PURE__ */
|
|
355
|
+
}), /* @__PURE__ */ G(re, {
|
|
347
356
|
label: O,
|
|
348
357
|
onClick: () => {
|
|
349
|
-
if (!
|
|
350
|
-
|
|
358
|
+
if (!_e || I == null || R == null) {
|
|
359
|
+
le(!0);
|
|
351
360
|
return;
|
|
352
361
|
}
|
|
353
362
|
t({
|
|
354
363
|
source: I,
|
|
355
364
|
function: R,
|
|
356
|
-
targets:
|
|
365
|
+
targets: he ? [ne.trim()] : B
|
|
357
366
|
});
|
|
358
367
|
},
|
|
359
368
|
disabled: r
|
|
@@ -369,7 +378,7 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
|
|
|
369
378
|
ruleText: "_ruleText_nx0en_17"
|
|
370
379
|
}, Bt = 20, Vt = (e, t) => e === mt.Equal ? t.equal : e === mt.Contain ? t.contain : t.regex, Ht = ({ rules: e, onRulesChange: t, sourceOptions: n, folderName: r, disabled: o = !1, isLoading: s = !1, hasLoadError: c = !1, maxRules: d = Bt, maxTargetsPerRule: f, labels: p = {}, headingClassName: h = "dial-body-semi-text", hintClassName: g = "dial-small-text", loadingClassName: _ = "dial-small-text", ruleTextClassName: v = "dial-small-text", ruleSourceClassName: y = "dial-small-semi-text", styles: b = {} }) => {
|
|
371
380
|
let x = {
|
|
372
|
-
...
|
|
381
|
+
...je({
|
|
373
382
|
"--par-rule-bg": b.colors?.ruleBackground,
|
|
374
383
|
"--par-heading-text": b.colors?.headingText,
|
|
375
384
|
"--par-hint-text": b.colors?.hintText,
|
|
@@ -377,136 +386,136 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
|
|
|
377
386
|
"--par-rule-text": b.colors?.ruleText
|
|
378
387
|
}),
|
|
379
388
|
...b.cssVars
|
|
380
|
-
}, { heading: w = "Allow access if all match", folderScopeHint: T = "These rules apply to \"{folder}\". Selecting another folder loads that folder's own rules instead.", noFolderScopeHint: E = "Access rules apply to the destination folder — pick a folder above to set its rules.", rulesWithoutFolderWarning: D = "These rules have no destination yet. Select a folder above to apply them.", maxRulesReachedLabel: O = "Rule limit reached ({max}). Remove a rule to add another.", addRuleLabel: k = "Add rule", clearAllLabel: A = "Clear all", orSeparatorLabel: j = "Or", removeRuleAriaLabelTemplate: M = "Remove rule for {source}: {targets}", equalFunctionLabel: N = "Equal", containFunctionLabel: P = "Contain", regexFunctionLabel: F = "Regex", loadingLabel: I = "Loading existing rules…", loadErrorLabel: L = "Couldn't load existing rules for this folder. You can still add rules manually.", ruleAddedAnnouncement: R = "Rule added.", ruleRemovedAnnouncement: z = "Rule removed.", rulesClearedAnnouncement: te = "All rules cleared.", rulesLoadedAnnouncement:
|
|
389
|
+
}, { heading: w = "Allow access if all match", folderScopeHint: T = "These rules apply to \"{folder}\". Selecting another folder loads that folder's own rules instead.", noFolderScopeHint: E = "Access rules apply to the destination folder — pick a folder above to set its rules.", rulesWithoutFolderWarning: D = "These rules have no destination yet. Select a folder above to apply them.", maxRulesReachedLabel: O = "Rule limit reached ({max}). Remove a rule to add another.", addRuleLabel: k = "Add rule", clearAllLabel: A = "Clear all", orSeparatorLabel: j = "Or", removeRuleAriaLabelTemplate: M = "Remove rule for {source}: {targets}", equalFunctionLabel: N = "Equal", containFunctionLabel: P = "Contain", regexFunctionLabel: F = "Regex", loadingLabel: I = "Loading existing rules…", loadErrorLabel: L = "Couldn't load existing rules for this folder. You can still add rules manually.", ruleAddedAnnouncement: R = "Rule added.", ruleRemovedAnnouncement: z = "Rule removed.", rulesClearedAnnouncement: te = "All rules cleared.", rulesLoadedAnnouncement: V = "Existing rules loaded for the selected folder.", editorLabels: ne } = p, re = a(), [ie, ce] = u(!1), [H, le] = u(""), ue = l(null), de = l(s);
|
|
381
390
|
i(() => {
|
|
382
|
-
|
|
391
|
+
de.current && !s && e.length > 0 && le(V), de.current = s;
|
|
383
392
|
}, [
|
|
384
393
|
s,
|
|
385
394
|
e,
|
|
386
|
-
|
|
395
|
+
V
|
|
387
396
|
]);
|
|
388
|
-
let
|
|
389
|
-
|
|
390
|
-
},
|
|
391
|
-
|
|
392
|
-
},
|
|
393
|
-
t([...e, n]),
|
|
394
|
-
},
|
|
395
|
-
t(e.filter((e, t) => t !== n)),
|
|
396
|
-
},
|
|
397
|
-
t([]),
|
|
398
|
-
},
|
|
397
|
+
let fe = () => {
|
|
398
|
+
ue.current = document.activeElement, ce(!0);
|
|
399
|
+
}, pe = () => {
|
|
400
|
+
ce(!1), ue.current?.focus?.();
|
|
401
|
+
}, me = (n) => {
|
|
402
|
+
t([...e, n]), le(R), pe();
|
|
403
|
+
}, ge = (n) => {
|
|
404
|
+
t(e.filter((e, t) => t !== n)), le(z);
|
|
405
|
+
}, _e = () => {
|
|
406
|
+
t([]), le(te);
|
|
407
|
+
}, ve = {
|
|
399
408
|
equal: N,
|
|
400
409
|
contain: P,
|
|
401
410
|
regex: F
|
|
402
|
-
},
|
|
403
|
-
return /* @__PURE__ */
|
|
411
|
+
}, ye = e.length >= d, be = o || ye, xe = r != null && r !== "";
|
|
412
|
+
return /* @__PURE__ */ K("div", {
|
|
404
413
|
role: "group",
|
|
405
414
|
"aria-labelledby": re,
|
|
406
415
|
style: x,
|
|
407
|
-
className:
|
|
416
|
+
className: U(o && "pointer-events-none opacity-60"),
|
|
408
417
|
children: [
|
|
409
|
-
/* @__PURE__ */
|
|
418
|
+
/* @__PURE__ */ G("span", {
|
|
410
419
|
role: "status",
|
|
411
420
|
"aria-live": "polite",
|
|
412
421
|
className: "sr-only",
|
|
413
|
-
children:
|
|
422
|
+
children: H
|
|
414
423
|
}),
|
|
415
|
-
/* @__PURE__ */
|
|
424
|
+
/* @__PURE__ */ K("div", {
|
|
416
425
|
className: "mb-1 flex items-center justify-between gap-2",
|
|
417
|
-
children: [/* @__PURE__ */
|
|
426
|
+
children: [/* @__PURE__ */ G("div", {
|
|
418
427
|
id: re,
|
|
419
|
-
className:
|
|
428
|
+
className: U(h, zt.heading),
|
|
420
429
|
children: w
|
|
421
|
-
}), e.length > 0 && /* @__PURE__ */
|
|
430
|
+
}), e.length > 0 && /* @__PURE__ */ G(ee, {
|
|
422
431
|
variant: m.Primary,
|
|
423
432
|
label: A,
|
|
424
|
-
onClick:
|
|
433
|
+
onClick: _e,
|
|
425
434
|
disabled: o
|
|
426
435
|
})]
|
|
427
436
|
}),
|
|
428
|
-
/* @__PURE__ */
|
|
429
|
-
className:
|
|
430
|
-
children:
|
|
437
|
+
/* @__PURE__ */ G("p", {
|
|
438
|
+
className: U("mb-2", g, zt.hint),
|
|
439
|
+
children: xe ? T.replace("{folder}", r) : E
|
|
431
440
|
}),
|
|
432
|
-
e.length > 0 && !
|
|
441
|
+
e.length > 0 && !xe && /* @__PURE__ */ G("div", {
|
|
433
442
|
className: "mb-2",
|
|
434
|
-
children: /* @__PURE__ */
|
|
443
|
+
children: /* @__PURE__ */ G(ae, {
|
|
435
444
|
type: oe.SectionMessage,
|
|
436
|
-
variant:
|
|
445
|
+
variant: se.Warning,
|
|
437
446
|
message: D
|
|
438
447
|
})
|
|
439
448
|
}),
|
|
440
|
-
s && /* @__PURE__ */
|
|
441
|
-
className:
|
|
442
|
-
children: [/* @__PURE__ */
|
|
449
|
+
s && /* @__PURE__ */ K("div", {
|
|
450
|
+
className: U("mb-2 flex items-center gap-2", _, zt.loading),
|
|
451
|
+
children: [/* @__PURE__ */ G(he, {
|
|
443
452
|
size: 16,
|
|
444
453
|
ariaLabel: I
|
|
445
|
-
}), /* @__PURE__ */
|
|
454
|
+
}), /* @__PURE__ */ G("span", { children: I })]
|
|
446
455
|
}),
|
|
447
|
-
c && /* @__PURE__ */
|
|
456
|
+
c && /* @__PURE__ */ G("div", {
|
|
448
457
|
className: "mb-2",
|
|
449
|
-
children: /* @__PURE__ */
|
|
458
|
+
children: /* @__PURE__ */ G(ae, {
|
|
450
459
|
type: oe.SectionMessage,
|
|
451
|
-
variant:
|
|
460
|
+
variant: se.Warning,
|
|
452
461
|
message: L
|
|
453
462
|
})
|
|
454
463
|
}),
|
|
455
|
-
e.length > 0 && /* @__PURE__ */
|
|
464
|
+
e.length > 0 && /* @__PURE__ */ G("ul", {
|
|
456
465
|
className: "mb-3 flex flex-col gap-2",
|
|
457
466
|
children: e.map((e, t) => {
|
|
458
467
|
let n = e.targets.join(` ${j} `), r = M.replace("{source}", e.source).replace("{targets}", n);
|
|
459
|
-
return /* @__PURE__ */
|
|
460
|
-
className:
|
|
461
|
-
children: [/* @__PURE__ */
|
|
462
|
-
className:
|
|
468
|
+
return /* @__PURE__ */ K("li", {
|
|
469
|
+
className: U("flex items-center justify-between gap-2 rounded-lg px-3 py-2", zt.ruleRow),
|
|
470
|
+
children: [/* @__PURE__ */ K("span", {
|
|
471
|
+
className: U("truncate", v, zt.ruleText),
|
|
463
472
|
children: [
|
|
464
|
-
/* @__PURE__ */
|
|
473
|
+
/* @__PURE__ */ G("span", {
|
|
465
474
|
className: y,
|
|
466
475
|
children: e.source
|
|
467
476
|
}),
|
|
468
477
|
" ",
|
|
469
|
-
Vt(e.function,
|
|
478
|
+
Vt(e.function, ve),
|
|
470
479
|
": ",
|
|
471
480
|
n
|
|
472
481
|
]
|
|
473
|
-
}), /* @__PURE__ */
|
|
474
|
-
icon: /* @__PURE__ */
|
|
482
|
+
}), /* @__PURE__ */ G(B, {
|
|
483
|
+
icon: /* @__PURE__ */ G($e, {
|
|
475
484
|
size: S.SM,
|
|
476
485
|
"aria-hidden": !0,
|
|
477
486
|
stroke: C
|
|
478
487
|
}),
|
|
479
488
|
"aria-label": r,
|
|
480
|
-
onClick: () =>
|
|
489
|
+
onClick: () => ge(t),
|
|
481
490
|
disabled: o
|
|
482
491
|
})]
|
|
483
492
|
}, t);
|
|
484
493
|
})
|
|
485
494
|
}),
|
|
486
|
-
ie && /* @__PURE__ */
|
|
495
|
+
ie && /* @__PURE__ */ G(Rt, {
|
|
487
496
|
sourceOptions: n,
|
|
488
|
-
onSave:
|
|
489
|
-
onCancel:
|
|
497
|
+
onSave: me,
|
|
498
|
+
onCancel: pe,
|
|
490
499
|
disabled: o,
|
|
491
500
|
maxTargets: f,
|
|
492
|
-
labels:
|
|
501
|
+
labels: ne,
|
|
493
502
|
styles: b.editor
|
|
494
503
|
}),
|
|
495
|
-
/* @__PURE__ */
|
|
504
|
+
/* @__PURE__ */ G("div", {
|
|
496
505
|
className: "flex flex-wrap items-center gap-2",
|
|
497
|
-
children: /* @__PURE__ */
|
|
506
|
+
children: /* @__PURE__ */ G(ee, {
|
|
498
507
|
label: k,
|
|
499
|
-
iconBefore: /* @__PURE__ */
|
|
508
|
+
iconBefore: /* @__PURE__ */ G(Qe, {
|
|
500
509
|
size: S.SM,
|
|
501
510
|
"aria-hidden": !0,
|
|
502
511
|
stroke: C
|
|
503
512
|
}),
|
|
504
|
-
onClick:
|
|
505
|
-
disabled:
|
|
513
|
+
onClick: fe,
|
|
514
|
+
disabled: be
|
|
506
515
|
})
|
|
507
516
|
}),
|
|
508
|
-
|
|
509
|
-
className:
|
|
517
|
+
ye && /* @__PURE__ */ G("p", {
|
|
518
|
+
className: U("mt-2", g, zt.hint),
|
|
510
519
|
children: O.replace("{max}", String(d))
|
|
511
520
|
})
|
|
512
521
|
]
|
|
@@ -518,7 +527,7 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
|
|
|
518
527
|
emptyState: "_emptyState_eo6mj_15",
|
|
519
528
|
stripedRow: "_stripedRow_eo6mj_19"
|
|
520
529
|
}, Wt = ({ entries: e, currentVersion: t, isLoading: n = !1, hasError: r = !1, versionPrefix: i = "Version", currentBadgeLabel: a = "Current", emptyStateLabel: o = "Not published to this folder yet — this will be the first version here.", loadingLabel: s = "Loading history…", errorLabel: c = "Failed to load publish history.", versionClassName: l = "dial-small-text", dateClassName: u = "dial-small-text", emptyStateClassName: d = "dial-small-text", colors: f }) => {
|
|
521
|
-
let p =
|
|
530
|
+
let p = je({
|
|
522
531
|
"--phl-badge-border": f?.currentBadgeBorder,
|
|
523
532
|
"--phl-badge-bg": f?.currentBadgeBackground,
|
|
524
533
|
"--phl-badge-text": f?.currentBadgeText,
|
|
@@ -526,40 +535,40 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
|
|
|
526
535
|
"--phl-date-text": f?.dateText,
|
|
527
536
|
"--phl-empty-text": f?.emptyStateText,
|
|
528
537
|
"--phl-striped-bg": f?.stripedBackground
|
|
529
|
-
}), m =
|
|
530
|
-
return n ? /* @__PURE__ */
|
|
538
|
+
}), m = U(d, Ut.emptyState);
|
|
539
|
+
return n ? /* @__PURE__ */ G("p", {
|
|
531
540
|
style: p,
|
|
532
541
|
className: m,
|
|
533
542
|
children: s
|
|
534
|
-
}) : r ? /* @__PURE__ */
|
|
543
|
+
}) : r ? /* @__PURE__ */ G("p", {
|
|
535
544
|
style: p,
|
|
536
545
|
className: m,
|
|
537
546
|
role: "alert",
|
|
538
547
|
children: c
|
|
539
|
-
}) : e.length === 0 ? /* @__PURE__ */
|
|
548
|
+
}) : e.length === 0 ? /* @__PURE__ */ G("p", {
|
|
540
549
|
style: p,
|
|
541
550
|
className: m,
|
|
542
551
|
children: o
|
|
543
|
-
}) : /* @__PURE__ */
|
|
552
|
+
}) : /* @__PURE__ */ G("ul", {
|
|
544
553
|
style: p,
|
|
545
|
-
children: e.map((e, n) => /* @__PURE__ */
|
|
546
|
-
className:
|
|
547
|
-
children: [/* @__PURE__ */
|
|
554
|
+
children: e.map((e, n) => /* @__PURE__ */ K("li", {
|
|
555
|
+
className: U("flex items-center justify-between gap-2 rounded-lg px-3 py-[11px]", n % 2 == 0 && Ut.stripedRow),
|
|
556
|
+
children: [/* @__PURE__ */ K("span", {
|
|
548
557
|
className: "flex min-w-0 items-center gap-2",
|
|
549
558
|
style: p,
|
|
550
|
-
children: [/* @__PURE__ */
|
|
551
|
-
className:
|
|
559
|
+
children: [/* @__PURE__ */ K("span", {
|
|
560
|
+
className: U(l, Ut.version),
|
|
552
561
|
children: [
|
|
553
562
|
i,
|
|
554
563
|
" ",
|
|
555
564
|
e.version
|
|
556
565
|
]
|
|
557
|
-
}), e.version === t && /* @__PURE__ */
|
|
566
|
+
}), e.version === t && /* @__PURE__ */ G(ve, {
|
|
558
567
|
label: a,
|
|
559
|
-
className:
|
|
568
|
+
className: U("shrink-0 whitespace-nowrap", Ut.currentBadge)
|
|
560
569
|
})]
|
|
561
|
-
}), /* @__PURE__ */
|
|
562
|
-
className:
|
|
570
|
+
}), /* @__PURE__ */ G("span", {
|
|
571
|
+
className: U(u, Ut.date),
|
|
563
572
|
children: vt(e.publishedAt)
|
|
564
573
|
})]
|
|
565
574
|
}, `${e.version}-${n}`))
|
|
@@ -8367,9 +8376,9 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
|
|
|
8367
8376
|
mn.Author,
|
|
8368
8377
|
mn.Actions
|
|
8369
8378
|
], $ = /* @__PURE__ */ ((e) => (e.ITEM = "item", e.FOLDER = "folder", e))($ || {}), Pn = /* @__PURE__ */ ((e) => (e.FILE = "FILE", e.PROMPT = "PROMPT", e.CONVERSATION = "CONVERSATION", e.APPLICATION = "APPLICATION", e.TOOLSET = "TOOL_SET", e))(Pn || {}), Fn = /* @__PURE__ */ ((e) => (e.READ = "READ", e.WRITE = "WRITE", e.SHARE = "SHARE", e))(Fn || {}), In = ({ open: e, onClose: t, onReplace: r, onDuplicate: i, onDecideForEach: a, conflictingFiles: o, singleFileTitle: s = "Replace Or Duplicate Item", multipleFilesTitle: l = "Replace Or Duplicate Items", message: d, actionLabels: f, strategyLabels: p, confirmLabel: m = "Confirm", cancelLabel: h = "Cancel", nameColumnLabel: g = "Name", actionColumnLabel: _ = "Action" }) => {
|
|
8370
|
-
let v = o.length === 1, y = v ? o[0]?.name : "", b = f?.[Q.Replace] ?? "Replace", x = f?.[Q.Duplicate] ?? "Duplicate", C = f?.[Q.Cancel] ?? "Cancel", w = p?.[ln.ReplaceAll] ?? "Replace all", T = p?.[ln.DuplicateAll] ?? "Duplicate all", E = p?.[ln.DecideForEach] ?? "Decide for each", [O, A] = u(Q.Replace), [j, M] = u(ln.ReplaceAll), [P, I] = u(new Map(o.map((e) => [e.path, Q.Replace]))), [L, R] = u(void 0), z = v ? s : l, ee = /* @__PURE__ */
|
|
8379
|
+
let v = o.length === 1, y = v ? o[0]?.name : "", b = f?.[Q.Replace] ?? "Replace", x = f?.[Q.Duplicate] ?? "Duplicate", C = f?.[Q.Cancel] ?? "Cancel", w = p?.[ln.ReplaceAll] ?? "Replace all", T = p?.[ln.DuplicateAll] ?? "Duplicate all", E = p?.[ln.DecideForEach] ?? "Decide for each", [O, A] = u(Q.Replace), [j, M] = u(ln.ReplaceAll), [P, I] = u(new Map(o.map((e) => [e.path, Q.Replace]))), [L, R] = u(void 0), z = v ? s : l, ee = /* @__PURE__ */ K(W, { children: [
|
|
8371
8380
|
"Item with the name ",
|
|
8372
|
-
/* @__PURE__ */
|
|
8381
|
+
/* @__PURE__ */ K("span", {
|
|
8373
8382
|
className: "text-primary",
|
|
8374
8383
|
children: [
|
|
8375
8384
|
"\"",
|
|
@@ -8379,7 +8388,7 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
|
|
|
8379
8388
|
}),
|
|
8380
8389
|
" ",
|
|
8381
8390
|
"already exists in this destination."
|
|
8382
|
-
] }), B = `${o.length} items with the same names already exist in this destination.`,
|
|
8391
|
+
] }), B = `${o.length} items with the same names already exist in this destination.`, V = d ?? (v ? ee : B), ne = c(() => [{
|
|
8383
8392
|
value: Q.Replace,
|
|
8384
8393
|
label: b
|
|
8385
8394
|
}, {
|
|
@@ -8399,10 +8408,10 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
|
|
|
8399
8408
|
floatingFilter: !1,
|
|
8400
8409
|
filter: !1,
|
|
8401
8410
|
resizable: !1,
|
|
8402
|
-
cellRenderer: (e) => e.data?.nodeType === $.FOLDER ? /* @__PURE__ */
|
|
8411
|
+
cellRenderer: (e) => e.data?.nodeType === $.FOLDER ? /* @__PURE__ */ G(k, {
|
|
8403
8412
|
name: e.data.name,
|
|
8404
8413
|
iconSize: wn
|
|
8405
|
-
}) : /* @__PURE__ */
|
|
8414
|
+
}) : /* @__PURE__ */ G(D, {
|
|
8406
8415
|
name: e.data.name,
|
|
8407
8416
|
iconSize: wn
|
|
8408
8417
|
})
|
|
@@ -8421,7 +8430,7 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
|
|
|
8421
8430
|
{
|
|
8422
8431
|
key: Q.Replace,
|
|
8423
8432
|
label: b,
|
|
8424
|
-
icon: /* @__PURE__ */
|
|
8433
|
+
icon: /* @__PURE__ */ G(Le, {
|
|
8425
8434
|
size: 10,
|
|
8426
8435
|
className: "text-violet-1"
|
|
8427
8436
|
})
|
|
@@ -8429,7 +8438,7 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
|
|
|
8429
8438
|
{
|
|
8430
8439
|
key: Q.Duplicate,
|
|
8431
8440
|
label: x,
|
|
8432
|
-
icon: /* @__PURE__ */
|
|
8441
|
+
icon: /* @__PURE__ */ G(Le, {
|
|
8433
8442
|
size: 10,
|
|
8434
8443
|
className: "text-success"
|
|
8435
8444
|
})
|
|
@@ -8437,15 +8446,15 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
|
|
|
8437
8446
|
{
|
|
8438
8447
|
key: Q.Cancel,
|
|
8439
8448
|
label: C,
|
|
8440
|
-
icon: /* @__PURE__ */
|
|
8449
|
+
icon: /* @__PURE__ */ G(Le, {
|
|
8441
8450
|
size: 10,
|
|
8442
8451
|
className: "text-error"
|
|
8443
8452
|
})
|
|
8444
8453
|
}
|
|
8445
8454
|
], n = t.find((t) => t.key === e.data.action), r = L === e.data.path;
|
|
8446
|
-
return /* @__PURE__ */
|
|
8455
|
+
return /* @__PURE__ */ G("div", {
|
|
8447
8456
|
className: "flex items-center h-full",
|
|
8448
|
-
children: /* @__PURE__ */
|
|
8457
|
+
children: /* @__PURE__ */ G(N, {
|
|
8449
8458
|
trigger: [F.Click],
|
|
8450
8459
|
open: r,
|
|
8451
8460
|
items: t,
|
|
@@ -8461,13 +8470,13 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
|
|
|
8461
8470
|
onOpenChange: (t) => {
|
|
8462
8471
|
R(t ? e.data.path : void 0);
|
|
8463
8472
|
},
|
|
8464
|
-
children: /* @__PURE__ */
|
|
8473
|
+
children: /* @__PURE__ */ K("button", {
|
|
8465
8474
|
type: "button",
|
|
8466
8475
|
className: "flex items-center gap-2",
|
|
8467
|
-
children: [/* @__PURE__ */
|
|
8476
|
+
children: [/* @__PURE__ */ K("span", {
|
|
8468
8477
|
className: "flex items-center gap-2",
|
|
8469
8478
|
children: [n?.icon, n?.label ?? b]
|
|
8470
|
-
}), /* @__PURE__ */
|
|
8479
|
+
}), /* @__PURE__ */ G(Ie, {
|
|
8471
8480
|
size: S.SM,
|
|
8472
8481
|
stroke: sn,
|
|
8473
8482
|
className: (0, $t.default)("text-secondary transition-transform", r && "rotate-180")
|
|
@@ -8495,7 +8504,7 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
|
|
|
8495
8504
|
{
|
|
8496
8505
|
value: ln.DecideForEach,
|
|
8497
8506
|
label: E,
|
|
8498
|
-
content: /* @__PURE__ */
|
|
8507
|
+
content: /* @__PURE__ */ G(te, {
|
|
8499
8508
|
columnDefs: ae,
|
|
8500
8509
|
rowData: ie,
|
|
8501
8510
|
getRowId: (e) => e.id,
|
|
@@ -8510,17 +8519,17 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
|
|
|
8510
8519
|
E,
|
|
8511
8520
|
ae,
|
|
8512
8521
|
ie
|
|
8513
|
-
]),
|
|
8522
|
+
]), se = n(() => {
|
|
8514
8523
|
A(Q.Replace), M(ln.ReplaceAll), I(new Map(o.map((e) => [e.path, Q.Replace])));
|
|
8515
|
-
}, [o]),
|
|
8516
|
-
|
|
8517
|
-
}, [
|
|
8518
|
-
|
|
8524
|
+
}, [o]), de = n(() => {
|
|
8525
|
+
se(), t();
|
|
8526
|
+
}, [se, t]), fe = n(() => {
|
|
8527
|
+
se(), v ? O === Q.Replace ? r() : i() : j === ln.ReplaceAll ? r() : j === ln.DuplicateAll ? i() : j === ln.DecideForEach && a && a(o.map((e) => ({
|
|
8519
8528
|
file: e,
|
|
8520
8529
|
action: P.get(e.path) || Q.Replace
|
|
8521
8530
|
})));
|
|
8522
8531
|
}, [
|
|
8523
|
-
|
|
8532
|
+
se,
|
|
8524
8533
|
v,
|
|
8525
8534
|
O,
|
|
8526
8535
|
r,
|
|
@@ -8530,35 +8539,35 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
|
|
|
8530
8539
|
o,
|
|
8531
8540
|
P
|
|
8532
8541
|
]);
|
|
8533
|
-
return /* @__PURE__ */
|
|
8542
|
+
return /* @__PURE__ */ G(ce, {
|
|
8534
8543
|
open: e,
|
|
8535
|
-
onClose:
|
|
8536
|
-
size: v ?
|
|
8544
|
+
onClose: de,
|
|
8545
|
+
size: v ? H.Sm : H.Md,
|
|
8537
8546
|
className: (0, $t.default)([!v && "w-[600px]"]),
|
|
8538
8547
|
header: z,
|
|
8539
8548
|
preventKeyboardOnOpen: !0,
|
|
8540
|
-
footer: /* @__PURE__ */
|
|
8549
|
+
footer: /* @__PURE__ */ K("div", {
|
|
8541
8550
|
className: "flex justify-end gap-3 py-4 px-6 border-t border-tertiary",
|
|
8542
|
-
children: [/* @__PURE__ */
|
|
8543
|
-
onClick: ue,
|
|
8544
|
-
label: h
|
|
8545
|
-
}), /* @__PURE__ */ K(ce, {
|
|
8551
|
+
children: [/* @__PURE__ */ G(re, {
|
|
8546
8552
|
onClick: de,
|
|
8553
|
+
label: h
|
|
8554
|
+
}), /* @__PURE__ */ G(le, {
|
|
8555
|
+
onClick: fe,
|
|
8547
8556
|
label: m
|
|
8548
8557
|
})]
|
|
8549
8558
|
}),
|
|
8550
|
-
children: /* @__PURE__ */
|
|
8559
|
+
children: /* @__PURE__ */ K("div", {
|
|
8551
8560
|
className: "px-6 py-4",
|
|
8552
|
-
children: [/* @__PURE__ */
|
|
8561
|
+
children: [/* @__PURE__ */ G("p", {
|
|
8553
8562
|
className: "text-secondary mb-4 break-words",
|
|
8554
|
-
children:
|
|
8555
|
-
}), v ? /* @__PURE__ */
|
|
8563
|
+
children: V
|
|
8564
|
+
}), v ? /* @__PURE__ */ G(ue, {
|
|
8556
8565
|
id: "single-file-conflict",
|
|
8557
8566
|
ariaLabel: z,
|
|
8558
|
-
items:
|
|
8567
|
+
items: ne,
|
|
8559
8568
|
value: O,
|
|
8560
8569
|
onChange: (e) => A(e)
|
|
8561
|
-
}) : /* @__PURE__ */
|
|
8570
|
+
}) : /* @__PURE__ */ G(ue, {
|
|
8562
8571
|
id: "multiple-files-conflict",
|
|
8563
8572
|
ariaLabel: z,
|
|
8564
8573
|
items: oe,
|
|
@@ -8576,7 +8585,7 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
|
|
|
8576
8585
|
let u = n((e) => {
|
|
8577
8586
|
if (!e.data || t(e.data, r, a)) return null;
|
|
8578
8587
|
let n = e.data ? s.current?.(e.data) ?? [] : [];
|
|
8579
|
-
return n.length ? /* @__PURE__ */
|
|
8588
|
+
return n.length ? /* @__PURE__ */ G(N, {
|
|
8580
8589
|
placement: "bottom-start",
|
|
8581
8590
|
allowedPlacements: [
|
|
8582
8591
|
"top-start",
|
|
@@ -8584,8 +8593,8 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
|
|
|
8584
8593
|
"bottom-start"
|
|
8585
8594
|
],
|
|
8586
8595
|
items: n,
|
|
8587
|
-
className:
|
|
8588
|
-
children: /* @__PURE__ */
|
|
8596
|
+
className: De("sticky right-0", o),
|
|
8597
|
+
children: /* @__PURE__ */ G(B, { icon: /* @__PURE__ */ G(Be, { ...X }) })
|
|
8589
8598
|
}) : null;
|
|
8590
8599
|
}, [
|
|
8591
8600
|
r,
|
|
@@ -8922,7 +8931,7 @@ var $n = (e) => {
|
|
|
8922
8931
|
_(e), d(!0);
|
|
8923
8932
|
}, []), te = n(() => {
|
|
8924
8933
|
d(!1), w.current || N();
|
|
8925
|
-
}, [N, w]), [
|
|
8934
|
+
}, [N, w]), [V, ne] = u();
|
|
8926
8935
|
return {
|
|
8927
8936
|
handleDuplicate: ee,
|
|
8928
8937
|
handleCloseDestinationFolderPopup: te,
|
|
@@ -8931,9 +8940,9 @@ var $n = (e) => {
|
|
|
8931
8940
|
handleMoveTo: F,
|
|
8932
8941
|
openDestinationFolderPopup: l,
|
|
8933
8942
|
destinationFolderMode: g,
|
|
8934
|
-
destinationFolderTitle:
|
|
8943
|
+
destinationFolderTitle: V,
|
|
8935
8944
|
handleSetCopiedFiles: n((e) => {
|
|
8936
|
-
p(e), y(e[0]?.parentPath ?? e[0]?.folderId), s && e.length > 0 ?
|
|
8945
|
+
p(e), y(e[0]?.parentPath ?? e[0]?.folderId), s && e.length > 0 ? ne(s(e.length, e[0]?.name)) : ne(void 0);
|
|
8937
8946
|
}, [s]),
|
|
8938
8947
|
handleSetMovedFiles: n((e) => {
|
|
8939
8948
|
h(e);
|
|
@@ -8941,7 +8950,7 @@ var $n = (e) => {
|
|
|
8941
8950
|
y(t), x({
|
|
8942
8951
|
type: un.Move,
|
|
8943
8952
|
sourceFolder: t
|
|
8944
|
-
}), c && e.length > 0 ?
|
|
8953
|
+
}), c && e.length > 0 ? ne(c(e.length, e[0]?.name)) : ne(void 0);
|
|
8945
8954
|
}, [c]),
|
|
8946
8955
|
clearState: N,
|
|
8947
8956
|
conflictingFiles: S,
|
|
@@ -9052,7 +9061,7 @@ var $n = (e) => {
|
|
|
9052
9061
|
nodeType: $.ITEM,
|
|
9053
9062
|
parentPath: t,
|
|
9054
9063
|
contentLength: e.fileContent.size
|
|
9055
|
-
})), []),
|
|
9064
|
+
})), []), V = n(async (n, i, a) => {
|
|
9056
9065
|
if (!f || !C) return !1;
|
|
9057
9066
|
y(void 0), S.current = a;
|
|
9058
9067
|
let s = d ? n.map((e) => ({
|
|
@@ -9084,7 +9093,7 @@ var $n = (e) => {
|
|
|
9084
9093
|
P,
|
|
9085
9094
|
k,
|
|
9086
9095
|
C
|
|
9087
|
-
]),
|
|
9096
|
+
]), ne = n(() => {
|
|
9088
9097
|
L(), k();
|
|
9089
9098
|
}, [L, k]), re = n(() => {
|
|
9090
9099
|
R(), k();
|
|
@@ -9098,16 +9107,16 @@ var $n = (e) => {
|
|
|
9098
9107
|
F,
|
|
9099
9108
|
M,
|
|
9100
9109
|
k
|
|
9101
|
-
]),
|
|
9110
|
+
]), se = n((e) => {
|
|
9102
9111
|
!f || !C || (e.preventDefault(), e.stopPropagation(), e.dataTransfer.types.includes("Files") && h(!0));
|
|
9103
|
-
}, [f, C]),
|
|
9112
|
+
}, [f, C]), ce = n((e) => {
|
|
9104
9113
|
if (!f || !C) return;
|
|
9105
9114
|
e.preventDefault(), e.stopPropagation();
|
|
9106
9115
|
let t = e.currentTarget.getBoundingClientRect(), n = e.clientX, r = e.clientY;
|
|
9107
9116
|
(n <= t.left || n >= t.right || r <= t.top || r >= t.bottom) && h(!1);
|
|
9108
|
-
}, [f, C]),
|
|
9117
|
+
}, [f, C]), H = n((e) => {
|
|
9109
9118
|
!f || !C || (e.preventDefault(), e.stopPropagation(), e.dataTransfer.types.includes("Files") && (e.dataTransfer.dropEffect = "copy"));
|
|
9110
|
-
}, [f, C]),
|
|
9119
|
+
}, [f, C]), le = n(async (e, t, n) => {
|
|
9111
9120
|
if (!f || !C || (e.preventDefault(), e.stopPropagation(), h(!1), !e.dataTransfer.types.includes("Files"))) return;
|
|
9112
9121
|
let r = Array.from(e.dataTransfer.items || []), i = [], a = !1;
|
|
9113
9122
|
if (r.length > 0 && r.forEach((e) => {
|
|
@@ -9131,16 +9140,16 @@ var $n = (e) => {
|
|
|
9131
9140
|
y(o.unsupportedFiles || "Selected files are not supported");
|
|
9132
9141
|
return;
|
|
9133
9142
|
}
|
|
9134
|
-
await
|
|
9143
|
+
await V(s, t, n);
|
|
9135
9144
|
}, [
|
|
9136
9145
|
f,
|
|
9137
9146
|
O,
|
|
9138
|
-
|
|
9147
|
+
V,
|
|
9139
9148
|
o,
|
|
9140
9149
|
C
|
|
9141
|
-
]),
|
|
9150
|
+
]), ue = l(() => {});
|
|
9142
9151
|
i(() => {
|
|
9143
|
-
|
|
9152
|
+
ue.current = async () => {
|
|
9144
9153
|
let e = b.current;
|
|
9145
9154
|
if (!e) return;
|
|
9146
9155
|
if (!f || !C) {
|
|
@@ -9157,7 +9166,7 @@ var $n = (e) => {
|
|
|
9157
9166
|
return;
|
|
9158
9167
|
}
|
|
9159
9168
|
try {
|
|
9160
|
-
await
|
|
9169
|
+
await V(t, x.current, S.current);
|
|
9161
9170
|
} catch {
|
|
9162
9171
|
y(o.validationError || "Upload failed");
|
|
9163
9172
|
} finally {
|
|
@@ -9168,12 +9177,12 @@ var $n = (e) => {
|
|
|
9168
9177
|
f,
|
|
9169
9178
|
C,
|
|
9170
9179
|
O,
|
|
9171
|
-
|
|
9180
|
+
V,
|
|
9172
9181
|
o
|
|
9173
9182
|
]), i(() => {
|
|
9174
9183
|
let e = document.createElement("input");
|
|
9175
9184
|
e.type = "file", e.multiple = !0, e.style.display = "none", document.body.appendChild(e), b.current = e;
|
|
9176
|
-
let t = () =>
|
|
9185
|
+
let t = () => ue.current?.();
|
|
9177
9186
|
return e.addEventListener("change", t), () => {
|
|
9178
9187
|
e.removeEventListener("change", t), b.current === e && (document.body.removeChild(e), b.current = null);
|
|
9179
9188
|
};
|
|
@@ -9181,9 +9190,9 @@ var $n = (e) => {
|
|
|
9181
9190
|
let e = b.current;
|
|
9182
9191
|
e && (a && a.length > 0 ? e.accept = a.join(",") : e.removeAttribute("accept"));
|
|
9183
9192
|
}, [a]);
|
|
9184
|
-
let
|
|
9193
|
+
let de = n((e, t) => {
|
|
9185
9194
|
!f || !C || (x.current = e, S.current = t, b.current && b.current.click());
|
|
9186
|
-
}, [f, C]),
|
|
9195
|
+
}, [f, C]), fe = n((e, t) => {
|
|
9187
9196
|
if (!s || !f || !C) return;
|
|
9188
9197
|
let n = document.createElement("input");
|
|
9189
9198
|
n.type = "file", n.accept = ".zip,application/zip", n.multiple = !1, n.style.display = "none", n.addEventListener("change", () => {
|
|
@@ -9229,28 +9238,28 @@ var $n = (e) => {
|
|
|
9229
9238
|
isDragging: m,
|
|
9230
9239
|
isDraggingOverWindow: g,
|
|
9231
9240
|
uploadError: v,
|
|
9232
|
-
handleDragEnter:
|
|
9233
|
-
handleDragLeave:
|
|
9234
|
-
handleDragOver:
|
|
9235
|
-
handleDrop:
|
|
9241
|
+
handleDragEnter: se,
|
|
9242
|
+
handleDragLeave: ce,
|
|
9243
|
+
handleDragOver: H,
|
|
9244
|
+
handleDrop: le,
|
|
9236
9245
|
clearError: n(() => {
|
|
9237
9246
|
y(void 0);
|
|
9238
9247
|
}, []),
|
|
9239
|
-
handleUpload:
|
|
9240
|
-
openFileDialog:
|
|
9241
|
-
openArchiveDialog:
|
|
9248
|
+
handleUpload: V,
|
|
9249
|
+
openFileDialog: de,
|
|
9250
|
+
openArchiveDialog: fe,
|
|
9242
9251
|
fileInputRef: b,
|
|
9243
9252
|
uploadConflictingFiles: A,
|
|
9244
9253
|
uploadConflictResolutionOpen: j,
|
|
9245
9254
|
hasActiveUploadConflictRef: M,
|
|
9246
9255
|
openUploadConflictResolution: I,
|
|
9247
9256
|
closeUploadConflictResolution: oe,
|
|
9248
|
-
handleUploadConflictReplace:
|
|
9257
|
+
handleUploadConflictReplace: ne,
|
|
9249
9258
|
handleUploadConflictDuplicate: re,
|
|
9250
9259
|
handleUploadConflictCancel: ie,
|
|
9251
9260
|
handleUploadConflictDecideForEach: ae
|
|
9252
9261
|
};
|
|
9253
|
-
}, _r = t(void 0), vr = { hiddenItemWarning: `${
|
|
9262
|
+
}, _r = t(void 0), vr = { hiddenItemWarning: `${se.Warning}__A dot at the start of the name will make the item hidden` }, yr = { consecutiveDotsError: "Name cannot contain consecutive dots" }, br = {
|
|
9254
9263
|
emptyName: "Name cannot be empty",
|
|
9255
9264
|
duplicateName: "An item with this name already exists",
|
|
9256
9265
|
hiddenItemWarning: vr.hiddenItemWarning,
|
|
@@ -9378,7 +9387,7 @@ var Tr = ({ items: e, onRenameValidate: t, validationMessages: r, onMoveToFiles:
|
|
|
9378
9387
|
return e && (e.newFolder && t.push({
|
|
9379
9388
|
key: "new-folder",
|
|
9380
9389
|
label: e.newFolder.label,
|
|
9381
|
-
icon: e?.newFolder?.icon === void 0 ? /* @__PURE__ */
|
|
9390
|
+
icon: e?.newFolder?.icon === void 0 ? /* @__PURE__ */ G(Je, {
|
|
9382
9391
|
...X,
|
|
9383
9392
|
className: "text-secondary"
|
|
9384
9393
|
}) : e?.newFolder?.icon,
|
|
@@ -9388,7 +9397,7 @@ var Tr = ({ items: e, onRenameValidate: t, validationMessages: r, onMoveToFiles:
|
|
|
9388
9397
|
}), e.newItem && t.push({
|
|
9389
9398
|
key: "new-item",
|
|
9390
9399
|
label: e.newItem.label,
|
|
9391
|
-
icon: e?.newItem?.icon === void 0 ? /* @__PURE__ */
|
|
9400
|
+
icon: e?.newItem?.icon === void 0 ? /* @__PURE__ */ G(Qe, {
|
|
9392
9401
|
...X,
|
|
9393
9402
|
className: "text-secondary"
|
|
9394
9403
|
}) : e?.newItem?.icon,
|
|
@@ -9398,7 +9407,7 @@ var Tr = ({ items: e, onRenameValidate: t, validationMessages: r, onMoveToFiles:
|
|
|
9398
9407
|
}), e.uploadFiles && t.push({
|
|
9399
9408
|
key: "upload-file",
|
|
9400
9409
|
label: e.uploadFiles.label,
|
|
9401
|
-
icon: e?.uploadFiles?.icon === void 0 ? /* @__PURE__ */
|
|
9410
|
+
icon: e?.uploadFiles?.icon === void 0 ? /* @__PURE__ */ G(Ge, {
|
|
9402
9411
|
...X,
|
|
9403
9412
|
className: "text-secondary"
|
|
9404
9413
|
}) : e?.uploadFiles?.icon,
|
|
@@ -9408,7 +9417,7 @@ var Tr = ({ items: e, onRenameValidate: t, validationMessages: r, onMoveToFiles:
|
|
|
9408
9417
|
}), e.uploadArchive && t.push({
|
|
9409
9418
|
key: "upload-archive",
|
|
9410
9419
|
label: e.uploadArchive.label,
|
|
9411
|
-
icon: e?.uploadArchive?.icon === void 0 ? /* @__PURE__ */
|
|
9420
|
+
icon: e?.uploadArchive?.icon === void 0 ? /* @__PURE__ */ G(qe, {
|
|
9412
9421
|
...X,
|
|
9413
9422
|
className: "text-secondary"
|
|
9414
9423
|
}) : e?.uploadArchive?.icon,
|
|
@@ -9526,11 +9535,11 @@ var Tr = ({ items: e, onRenameValidate: t, validationMessages: r, onMoveToFiles:
|
|
|
9526
9535
|
};
|
|
9527
9536
|
}, Ar = ({ additionalButtons: e, expandedPathsLength: t, collapseAll: n }) => {
|
|
9528
9537
|
let r = t === 0;
|
|
9529
|
-
return { additionalButtons: c(() => /* @__PURE__ */
|
|
9538
|
+
return { additionalButtons: c(() => /* @__PURE__ */ K(W, { children: [e, /* @__PURE__ */ G(B, {
|
|
9530
9539
|
disabled: r,
|
|
9531
9540
|
size: I.Small,
|
|
9532
9541
|
onClick: n,
|
|
9533
|
-
icon: /* @__PURE__ */
|
|
9542
|
+
icon: /* @__PURE__ */ G(ze, {
|
|
9534
9543
|
size: S.LG,
|
|
9535
9544
|
stroke: sn
|
|
9536
9545
|
}),
|
|
@@ -9636,59 +9645,59 @@ function Fr({ selectedPaths: e, defaultSelectedPaths: t, onSelectedPathsChange:
|
|
|
9636
9645
|
isControlled: i
|
|
9637
9646
|
};
|
|
9638
9647
|
}
|
|
9639
|
-
var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem: o, path: s, defaultPath: d, filesLoading: f, selectedPaths: p, defaultSelectedPaths: m, onSelectedPathsChange: h, showHiddenFiles: g, onShowHiddenFilesChange: _, treeOptions: v, showNavigationPanel: y = !0, navigationPanelOptions: b, deleteConfirmationOptions: x, gridOptions: S, toolbarOptions: C, bulkActionsToolbarOptions: w, destinationFolderPopupOptions: T, conflictResolutionPopupOptions: E, onPathChange: D, onTableFileClick: O, handleSelectionClick: k, onGridApiChange: A, onCopyFiles: j, onMoveToFiles: M, onDeleteFiles: N, onDownloadFiles: P, onRenameValidate: F, renameValidationMessages: I, forbiddenSymbolsRegExp: L =
|
|
9640
|
-
let { selectedPaths:
|
|
9648
|
+
var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem: o, path: s, defaultPath: d, filesLoading: f, selectedPaths: p, defaultSelectedPaths: m, onSelectedPathsChange: h, showHiddenFiles: g, onShowHiddenFilesChange: _, treeOptions: v, showNavigationPanel: y = !0, navigationPanelOptions: b, deleteConfirmationOptions: x, gridOptions: S, toolbarOptions: C, bulkActionsToolbarOptions: w, destinationFolderPopupOptions: T, conflictResolutionPopupOptions: E, onPathChange: D, onTableFileClick: O, handleSelectionClick: k, onGridApiChange: A, onCopyFiles: j, onMoveToFiles: M, onDeleteFiles: N, onDownloadFiles: P, onRenameValidate: F, renameValidationMessages: I, forbiddenSymbolsRegExp: L = ne, forbiddenSymbolsTooltip: R, onUploadFiles: z, onValidateUpload: ee, uploadEnabled: B, uploadValidationMessages: te, maxFileSize: V, onUploadArchive: re, prepareUploadFileName: ie, onCreateFolder: ae, onCreateFolderValidate: oe, folderCreationValidationMessages: se, fileMetadataPopupOptions: ce, onGetInfo: H, onUnshareFiles: le, onRemoveFilesAccess: ue, actionsRef: de, sharedByMePaths: fe, onSearchFiles: pe, searchResults: me, searchInProgress: he, clearSearchResults: ge, allowedFileTypes: _e, maxSelectableFileSize: ve, getDisabledTooltip: ye, fileTooLargeTooltip: be, unsupportedFileTypeTooltip: xe, emptyStateIcon: Se, emptyStateTitle: Ce, emptyStateDescription: we, sharedWithMeIds: Te, onFolderPopupPathChange: Ee, onManagePermissions: De, onPreview: Oe, onOpenInNewTab: ke, previewExtensions: Ae, isRenameFileAvailable: je, isDuplicateFolderAvailable: U, customUploadFileAction: W, customCreateNewItemAction: K, customDuplicateAction: Me, customDeleteItemsAction: Ne, customDownloadItemsAction: Pe, customBreakpointRef: Fe, gridClassName: Ie, nonClickableTableColumns: Le, hideSearchPathItemName: Re, showHiddenFileSwitcherInDestinationPopup: ze, showCreateFolderButtonInDestinationPopup: Be, autoSelectUploadedItems: Ve = !1, maxNewFolderDepth: He, onNewFolderDepthExceeded: Ue, initialUploadFilesOpen: We }) => {
|
|
9649
|
+
let { selectedPaths: Ge, clearSelection: Ke, setSelectedPaths: qe } = Fr({
|
|
9641
9650
|
selectedPaths: p,
|
|
9642
9651
|
defaultSelectedPaths: m,
|
|
9643
9652
|
onSelectedPathsChange: h
|
|
9644
|
-
}),
|
|
9645
|
-
if (
|
|
9653
|
+
}), Je = l(!1), Ye = l(null), Xe = n((e, t, n) => {
|
|
9654
|
+
if (Ve) {
|
|
9646
9655
|
let { parent: e, name: n } = $n(t);
|
|
9647
|
-
|
|
9656
|
+
Ye.current = {
|
|
9648
9657
|
fileNames: /* @__PURE__ */ new Set([n]),
|
|
9649
9658
|
destinationFolder: e
|
|
9650
9659
|
};
|
|
9651
9660
|
}
|
|
9652
9661
|
ae?.(e, t, n);
|
|
9653
|
-
}, [ae,
|
|
9654
|
-
|
|
9662
|
+
}, [ae, Ve]), Ze = n((e, t) => {
|
|
9663
|
+
Ve && (Ye.current = {
|
|
9655
9664
|
fileNames: new Set(e.map((e) => e.name)),
|
|
9656
9665
|
destinationFolder: t
|
|
9657
9666
|
}), z?.(e, t);
|
|
9658
|
-
}, [z,
|
|
9659
|
-
|
|
9667
|
+
}, [z, Ve]), Qe = n((e, t, n) => {
|
|
9668
|
+
Ve && (Ye.current = {
|
|
9660
9669
|
fileNames: /* @__PURE__ */ new Set([t]),
|
|
9661
9670
|
destinationFolder: n
|
|
9662
9671
|
}), re?.(e, t, n);
|
|
9663
|
-
}, [re,
|
|
9672
|
+
}, [re, Ve]), $e = c(() => {
|
|
9664
9673
|
let e = /* @__PURE__ */ new Map();
|
|
9665
|
-
return
|
|
9674
|
+
return Ge.forEach((t) => {
|
|
9666
9675
|
let n = Bn(a, t);
|
|
9667
9676
|
n && e.set(t, n);
|
|
9668
9677
|
}), e;
|
|
9669
|
-
}, [
|
|
9678
|
+
}, [Ge, a]);
|
|
9670
9679
|
i(() => {
|
|
9671
|
-
if (
|
|
9680
|
+
if (Ge.size === 0) return;
|
|
9672
9681
|
let e = !1;
|
|
9673
|
-
for (let t of
|
|
9682
|
+
for (let t of Ge) if (!Bn(a, t)) {
|
|
9674
9683
|
e = !0;
|
|
9675
9684
|
break;
|
|
9676
9685
|
}
|
|
9677
9686
|
if (e) {
|
|
9678
9687
|
let e = /* @__PURE__ */ new Set();
|
|
9679
|
-
for (let t of
|
|
9680
|
-
|
|
9688
|
+
for (let t of Ge) Bn(a, t) && e.add(t);
|
|
9689
|
+
qe(e);
|
|
9681
9690
|
}
|
|
9682
9691
|
}, [
|
|
9683
9692
|
a,
|
|
9684
|
-
|
|
9685
|
-
|
|
9693
|
+
Ge,
|
|
9694
|
+
qe
|
|
9686
9695
|
]);
|
|
9687
|
-
let { currentPath:
|
|
9696
|
+
let { currentPath: q, setCurrentPath: et, handlePathChange: tt } = fr({
|
|
9688
9697
|
path: s,
|
|
9689
9698
|
defaultPath: d,
|
|
9690
9699
|
onPathChange: D,
|
|
9691
|
-
onSelectionClear:
|
|
9700
|
+
onSelectionClear: Ke
|
|
9692
9701
|
}), nt = c(() => {
|
|
9693
9702
|
let { showFiles: e = !0, showFolders: t = !0, ...n } = S || {};
|
|
9694
9703
|
return {
|
|
@@ -9710,24 +9719,24 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
|
|
|
9710
9719
|
validationMessages: I,
|
|
9711
9720
|
onMoveToFiles: M
|
|
9712
9721
|
}), { isSearchMode: xt, searchValue: St, effectiveSearchValue: Ct, setSearchValue: wt, handleSearchChange: Tt, handleSearchClear: J, searchResultsRows: Et } = Pr({
|
|
9713
|
-
onSearchFiles:
|
|
9714
|
-
clearSearchResults:
|
|
9715
|
-
currentPath:
|
|
9716
|
-
searchResults:
|
|
9717
|
-
searchInProgress:
|
|
9722
|
+
onSearchFiles: pe,
|
|
9723
|
+
clearSearchResults: ge,
|
|
9724
|
+
currentPath: q,
|
|
9725
|
+
searchResults: me,
|
|
9726
|
+
searchInProgress: he,
|
|
9718
9727
|
navigationPanelValue: b?.value,
|
|
9719
9728
|
onNavigationPanelSearchChange: b?.onSearchChange,
|
|
9720
9729
|
allItems: a,
|
|
9721
9730
|
activeTab: C?.activeTab
|
|
9722
|
-
}), Y = c(() => Vn(a,
|
|
9723
|
-
|
|
9724
|
-
}, [
|
|
9731
|
+
}), Y = c(() => Vn(a, q) ?? a[0], [a, q]), Dt = n((e, t) => !t || !e ? !1 : ir(e.path) > t, []), Ot = n(() => {
|
|
9732
|
+
Ue?.();
|
|
9733
|
+
}, [Ue]), { handleCopyTo: kt, handleMoveTo: At, handleDuplicate: jt, handleOpenDestinationFolderPopup: Mt, handleCloseDestinationFolderPopup: Nt, openDestinationFolderPopup: Pt, handleSetCopiedFiles: Ft, handleSetMovedFiles: It, destinationFolderMode: Lt, destinationFolderTitle: Rt, conflictingFiles: zt, conflictResolutionOpen: Bt, closeConflictResolution: Vt, handleConflictReplace: Ht, handleConflictDuplicate: Ut, handleConflictCancel: Wt, handleConflictDecideForEach: Gt, sourceFolder: Kt } = dr({
|
|
9725
9734
|
getDestinationFiles: (e) => Vn(a, e)?.items ?? [],
|
|
9726
9735
|
onCopyFiles: j,
|
|
9727
9736
|
onMoveToFiles: M,
|
|
9728
|
-
onCopySuccess:
|
|
9729
|
-
onMoveSuccess:
|
|
9730
|
-
onDuplicateSuccess:
|
|
9737
|
+
onCopySuccess: Ke,
|
|
9738
|
+
onMoveSuccess: Ke,
|
|
9739
|
+
onDuplicateSuccess: Ke,
|
|
9731
9740
|
getCopyHeader: T?.getCopyHeader,
|
|
9732
9741
|
getMoveHeader: T?.getMoveHeader
|
|
9733
9742
|
});
|
|
@@ -9736,66 +9745,66 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
|
|
|
9736
9745
|
}, [Pt, ct]);
|
|
9737
9746
|
let { deleteConfirmationOpen: qt, itemsToDelete: Jt, openDeleteConfirmation: Yt, closeDeleteConfirmation: Xt, confirmDelete: Zt } = pr({
|
|
9738
9747
|
onDeleteFiles: N,
|
|
9739
|
-
onDeleteSuccess:
|
|
9748
|
+
onDeleteSuccess: Ke
|
|
9740
9749
|
}), { handleDownloadFiles: Qt } = mr({
|
|
9741
9750
|
onDownloadFiles: P,
|
|
9742
|
-
customDownloadItemsAction:
|
|
9743
|
-
onDownloadSuccess:
|
|
9751
|
+
customDownloadItemsAction: Pe,
|
|
9752
|
+
onDownloadSuccess: Ke
|
|
9744
9753
|
}), { isDragging: $t, isDraggingOverWindow: en, uploadError: tn, handleDragEnter: nn, handleDragLeave: rn, handleDragOver: an, handleDrop: on, clearError: sn, openFileDialog: X, fileInputRef: cn, openArchiveDialog: Z, uploadConflictingFiles: Q, uploadConflictResolutionOpen: ln, closeUploadConflictResolution: un, handleUploadConflictReplace: dn, handleUploadConflictDuplicate: fn, handleUploadConflictCancel: pn, handleUploadConflictDecideForEach: mn } = gr({
|
|
9745
|
-
onUploadFiles:
|
|
9754
|
+
onUploadFiles: Ze,
|
|
9746
9755
|
onValidateUpload: ee,
|
|
9747
|
-
maxFileSize:
|
|
9748
|
-
onUploadArchive:
|
|
9756
|
+
maxFileSize: V,
|
|
9757
|
+
onUploadArchive: Qe,
|
|
9749
9758
|
prepareUploadFileName: ie,
|
|
9750
|
-
allowedFileTypes:
|
|
9759
|
+
allowedFileTypes: _e,
|
|
9751
9760
|
validationMessages: te,
|
|
9752
9761
|
uploadEnabled: B,
|
|
9753
9762
|
currentFolder: Y
|
|
9754
9763
|
}), hn = n((e) => {
|
|
9755
|
-
J(), on(e,
|
|
9764
|
+
J(), on(e, q ?? "", Y?.items ?? []);
|
|
9756
9765
|
}, [
|
|
9757
|
-
|
|
9766
|
+
q,
|
|
9758
9767
|
Y,
|
|
9759
9768
|
on,
|
|
9760
9769
|
J
|
|
9761
9770
|
]), gn = n(() => {
|
|
9762
|
-
J(), X(
|
|
9771
|
+
J(), X(q ?? "", Y?.items ?? []);
|
|
9763
9772
|
}, [
|
|
9764
|
-
|
|
9773
|
+
q,
|
|
9765
9774
|
Y,
|
|
9766
9775
|
X,
|
|
9767
9776
|
J
|
|
9768
9777
|
]), _n = n(() => {
|
|
9769
|
-
J(), Z(
|
|
9778
|
+
J(), Z(q ?? "", Y?.items ?? []);
|
|
9770
9779
|
}, [
|
|
9771
|
-
|
|
9780
|
+
q,
|
|
9772
9781
|
Y,
|
|
9773
9782
|
Z,
|
|
9774
9783
|
J
|
|
9775
9784
|
]), vn = n(() => {
|
|
9776
|
-
J(),
|
|
9785
|
+
J(), W?.(q, Y);
|
|
9777
9786
|
}, [
|
|
9778
|
-
|
|
9779
|
-
|
|
9787
|
+
W,
|
|
9788
|
+
q,
|
|
9780
9789
|
Y,
|
|
9781
9790
|
J
|
|
9782
9791
|
]), yn = n(() => {
|
|
9783
|
-
J(),
|
|
9792
|
+
J(), K?.(q, Y);
|
|
9784
9793
|
}, [
|
|
9794
|
+
K,
|
|
9785
9795
|
q,
|
|
9786
|
-
$e,
|
|
9787
9796
|
Y,
|
|
9788
9797
|
J
|
|
9789
9798
|
]), bn = n((e) => {
|
|
9790
|
-
|
|
9791
|
-
}, [
|
|
9799
|
+
Me?.(e);
|
|
9800
|
+
}, [Me]), { isCreatingFolder: xn, newFolderTempId: Sn, createdFolderPath: Cn, newFolderDefaultName: wn, startFolderCreation: Tn, startGridSiblingFolderCreation: En, startTreeSiblingFolderCreation: Dn, startGridChildFolderCreation: On, startTreeChildFolderCreation: kn, cancelFolderCreation: An, saveFolderCreation: jn, validateFolderName: Mn } = kr({
|
|
9792
9801
|
currentFolder: Y,
|
|
9793
|
-
onCreateFolder:
|
|
9802
|
+
onCreateFolder: Xe,
|
|
9794
9803
|
onValidateFolderName: oe,
|
|
9795
|
-
validationMessages:
|
|
9804
|
+
validationMessages: se,
|
|
9796
9805
|
items: a
|
|
9797
9806
|
}), Nn = n(() => {
|
|
9798
|
-
if (
|
|
9807
|
+
if (He && Dt(Y, He - 1)) {
|
|
9799
9808
|
Ot();
|
|
9800
9809
|
return;
|
|
9801
9810
|
}
|
|
@@ -9804,13 +9813,13 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
|
|
|
9804
9813
|
J,
|
|
9805
9814
|
Tn,
|
|
9806
9815
|
Y,
|
|
9807
|
-
|
|
9816
|
+
He,
|
|
9808
9817
|
Dt,
|
|
9809
9818
|
Ot
|
|
9810
9819
|
]), { newActions: Pn, isNewButtonVisible: Fn, isNewButtonDisabled: In } = Dr({
|
|
9811
9820
|
newActions: C?.newActions,
|
|
9812
9821
|
currentFolder: Y,
|
|
9813
|
-
onUploadFiles:
|
|
9822
|
+
onUploadFiles: W ? vn : gn,
|
|
9814
9823
|
onUploadArchive: _n,
|
|
9815
9824
|
onCreateFolder: Nn,
|
|
9816
9825
|
onCreateNewItem: yn,
|
|
@@ -9839,7 +9848,7 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
|
|
|
9839
9848
|
name: wn,
|
|
9840
9849
|
updatedAt: void 0,
|
|
9841
9850
|
author: void 0,
|
|
9842
|
-
path:
|
|
9851
|
+
path: q ?? "/",
|
|
9843
9852
|
nodeType: $.FOLDER,
|
|
9844
9853
|
extension: void 0,
|
|
9845
9854
|
isTemporary: !0,
|
|
@@ -9869,7 +9878,7 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
|
|
|
9869
9878
|
name: wn,
|
|
9870
9879
|
updatedAt: void 0,
|
|
9871
9880
|
author: void 0,
|
|
9872
|
-
path:
|
|
9881
|
+
path: q ?? "/",
|
|
9873
9882
|
nodeType: $.FOLDER,
|
|
9874
9883
|
extension: void 0,
|
|
9875
9884
|
isTemporary: !0,
|
|
@@ -9892,29 +9901,29 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
|
|
|
9892
9901
|
wn,
|
|
9893
9902
|
rt,
|
|
9894
9903
|
it,
|
|
9895
|
-
|
|
9904
|
+
q
|
|
9896
9905
|
]);
|
|
9897
9906
|
i(() => {
|
|
9898
|
-
let e =
|
|
9907
|
+
let e = Ye.current;
|
|
9899
9908
|
if (!e) return;
|
|
9900
|
-
if ((
|
|
9901
|
-
|
|
9909
|
+
if ((q ?? "") !== e.destinationFolder) {
|
|
9910
|
+
Ye.current = null;
|
|
9902
9911
|
return;
|
|
9903
9912
|
}
|
|
9904
9913
|
let t = Vn(a, e.destinationFolder);
|
|
9905
9914
|
if (!t?.items) return;
|
|
9906
9915
|
let n = /* @__PURE__ */ new Set();
|
|
9907
|
-
for (let r of t.items) e.fileNames.has(r.name) && er(r,
|
|
9908
|
-
n.size > 0 && (
|
|
9916
|
+
for (let r of t.items) e.fileNames.has(r.name) && er(r, _e, ve) && n.add(r.path);
|
|
9917
|
+
n.size > 0 && (qe(n), Ye.current = null);
|
|
9909
9918
|
}, [
|
|
9910
9919
|
a,
|
|
9911
|
-
|
|
9912
|
-
|
|
9913
|
-
|
|
9914
|
-
|
|
9920
|
+
q,
|
|
9921
|
+
qe,
|
|
9922
|
+
_e,
|
|
9923
|
+
ve
|
|
9915
9924
|
]), i(() => {
|
|
9916
|
-
!
|
|
9917
|
-
}, [
|
|
9925
|
+
!Je.current && We && (gn(), Je.current = !0);
|
|
9926
|
+
}, [We, gn]);
|
|
9918
9927
|
let Rn = n((e) => {
|
|
9919
9928
|
tt(e.path);
|
|
9920
9929
|
}, [tt]), zn = n((e) => {
|
|
@@ -9930,7 +9939,7 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
|
|
|
9930
9939
|
additionalButtons: v?.additionalButtons
|
|
9931
9940
|
}), Qn = n((e) => {
|
|
9932
9941
|
if (e.length > 0) {
|
|
9933
|
-
if (
|
|
9942
|
+
if (He && Dt(e[0], He)) {
|
|
9934
9943
|
Ot();
|
|
9935
9944
|
return;
|
|
9936
9945
|
}
|
|
@@ -9939,12 +9948,12 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
|
|
|
9939
9948
|
}, [
|
|
9940
9949
|
J,
|
|
9941
9950
|
En,
|
|
9942
|
-
|
|
9951
|
+
He,
|
|
9943
9952
|
Dt,
|
|
9944
9953
|
Ot
|
|
9945
9954
|
]), tr = n((e) => {
|
|
9946
9955
|
if (e.length > 0) {
|
|
9947
|
-
if (
|
|
9956
|
+
if (He && Dt(e[0], He - 1)) {
|
|
9948
9957
|
Ot();
|
|
9949
9958
|
return;
|
|
9950
9959
|
}
|
|
@@ -9957,11 +9966,11 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
|
|
|
9957
9966
|
Jn,
|
|
9958
9967
|
et,
|
|
9959
9968
|
Ot,
|
|
9960
|
-
|
|
9969
|
+
He,
|
|
9961
9970
|
Dt
|
|
9962
9971
|
]), nr = n((e) => {
|
|
9963
9972
|
if (e.length > 0) {
|
|
9964
|
-
if (
|
|
9973
|
+
if (He && Dt(e[0], He)) {
|
|
9965
9974
|
Ot();
|
|
9966
9975
|
return;
|
|
9967
9976
|
}
|
|
@@ -9970,12 +9979,12 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
|
|
|
9970
9979
|
}, [
|
|
9971
9980
|
J,
|
|
9972
9981
|
Dn,
|
|
9973
|
-
|
|
9982
|
+
He,
|
|
9974
9983
|
Dt,
|
|
9975
9984
|
Ot
|
|
9976
9985
|
]), rr = n((e) => {
|
|
9977
9986
|
if (e.length > 0) {
|
|
9978
|
-
if (
|
|
9987
|
+
if (He && Dt(e[0], He - 1)) {
|
|
9979
9988
|
Ot();
|
|
9980
9989
|
return;
|
|
9981
9990
|
}
|
|
@@ -9987,19 +9996,19 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
|
|
|
9987
9996
|
et,
|
|
9988
9997
|
qn,
|
|
9989
9998
|
Jn,
|
|
9990
|
-
|
|
9999
|
+
He,
|
|
9991
10000
|
Dt,
|
|
9992
10001
|
Ot
|
|
9993
|
-
]), { isMetadataPopupOpen: ar, selectedFileForMetadata: cr, openMetadataPopup: lr, closeMetadataPopup: ur } = jr({ onGetInfo:
|
|
9994
|
-
ur(),
|
|
9995
|
-
}, [ur,
|
|
10002
|
+
]), { isMetadataPopupOpen: ar, selectedFileForMetadata: cr, openMetadataPopup: lr, closeMetadataPopup: ur } = jr({ onGetInfo: H }), hr = n(() => {
|
|
10003
|
+
ur(), ce?.clearMetadata?.();
|
|
10004
|
+
}, [ur, ce]), vr = c(() => {
|
|
9996
10005
|
if (L) return Zn(L);
|
|
9997
10006
|
}, [L]), yr = {
|
|
9998
10007
|
managerLabel: e,
|
|
9999
10008
|
className: r,
|
|
10000
10009
|
items: a,
|
|
10001
|
-
allowedFileTypes:
|
|
10002
|
-
maxSelectableFileSize:
|
|
10010
|
+
allowedFileTypes: _e,
|
|
10011
|
+
maxSelectableFileSize: ve,
|
|
10003
10012
|
rootItem: o,
|
|
10004
10013
|
filesLoading: f,
|
|
10005
10014
|
treeOptions: {
|
|
@@ -10021,10 +10030,10 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
|
|
|
10021
10030
|
header: Rt,
|
|
10022
10031
|
onCreateFolder: ae,
|
|
10023
10032
|
onCreateFolderValidate: oe,
|
|
10024
|
-
folderCreationValidationMessages:
|
|
10033
|
+
folderCreationValidationMessages: se,
|
|
10025
10034
|
sourceFolder: Kt
|
|
10026
10035
|
},
|
|
10027
|
-
currentPath:
|
|
10036
|
+
currentPath: q,
|
|
10028
10037
|
setCurrentPath: et,
|
|
10029
10038
|
searchValue: St,
|
|
10030
10039
|
effectiveSearchValue: Ct,
|
|
@@ -10034,15 +10043,15 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
|
|
|
10034
10043
|
isTreeCollapsed: dt,
|
|
10035
10044
|
toggleTreeCollapse: ft,
|
|
10036
10045
|
setIsTreeCollapsed: pt,
|
|
10037
|
-
selectedPaths:
|
|
10038
|
-
selectedFiles:
|
|
10039
|
-
setSelectedPaths:
|
|
10040
|
-
clearSelection:
|
|
10046
|
+
selectedPaths: Ge,
|
|
10047
|
+
selectedFiles: $e,
|
|
10048
|
+
setSelectedPaths: qe,
|
|
10049
|
+
clearSelection: Ke,
|
|
10041
10050
|
currentFolder: Y,
|
|
10042
10051
|
gridRows: Ln,
|
|
10043
10052
|
handleCopyTo: kt,
|
|
10044
10053
|
handleMoveTo: At,
|
|
10045
|
-
handleDuplicate:
|
|
10054
|
+
handleDuplicate: Me ? bn : jt,
|
|
10046
10055
|
handleSetCopiedFiles: Ft,
|
|
10047
10056
|
handleSetMovedFiles: It,
|
|
10048
10057
|
openDestinationFolderPopup: Pt,
|
|
@@ -10063,7 +10072,7 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
|
|
|
10063
10072
|
onRenameCancel: vt,
|
|
10064
10073
|
onRenameValidate: yt,
|
|
10065
10074
|
getDisplayName: bt,
|
|
10066
|
-
openDeleteConfirmation:
|
|
10075
|
+
openDeleteConfirmation: Ne || Yt,
|
|
10067
10076
|
closeDeleteConfirmation: Xt,
|
|
10068
10077
|
confirmDelete: Zt,
|
|
10069
10078
|
deleteConfirmationOpen: qt,
|
|
@@ -10085,7 +10094,7 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
|
|
|
10085
10094
|
clearUploadError: sn,
|
|
10086
10095
|
onUploadFiles: z,
|
|
10087
10096
|
onValidateUpload: ee,
|
|
10088
|
-
maxFileSize:
|
|
10097
|
+
maxFileSize: V,
|
|
10089
10098
|
isDraggingOverWindow: en,
|
|
10090
10099
|
openFileDialog: gn,
|
|
10091
10100
|
fileInputRef: cn,
|
|
@@ -10115,46 +10124,46 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
|
|
|
10115
10124
|
handleUploadConflictDuplicate: fn,
|
|
10116
10125
|
handleUploadConflictCancel: pn,
|
|
10117
10126
|
handleUploadConflictDecideForEach: mn,
|
|
10118
|
-
fileMetadataPopupOptions:
|
|
10127
|
+
fileMetadataPopupOptions: ce,
|
|
10119
10128
|
isMetadataPopupOpen: ar,
|
|
10120
10129
|
selectedFileForMetadata: cr,
|
|
10121
10130
|
openMetadataPopup: lr,
|
|
10122
10131
|
closeMetadataPopup: hr,
|
|
10123
|
-
onGetInfo:
|
|
10124
|
-
onUnshareFiles:
|
|
10125
|
-
onRemoveFilesAccess:
|
|
10126
|
-
actionsRef:
|
|
10127
|
-
sharedByMePaths:
|
|
10128
|
-
onSearchFiles:
|
|
10129
|
-
searchInProgress:
|
|
10130
|
-
searchResults:
|
|
10131
|
-
clearSearchResults:
|
|
10132
|
+
onGetInfo: H,
|
|
10133
|
+
onUnshareFiles: le,
|
|
10134
|
+
onRemoveFilesAccess: ue,
|
|
10135
|
+
actionsRef: de,
|
|
10136
|
+
sharedByMePaths: fe,
|
|
10137
|
+
onSearchFiles: pe,
|
|
10138
|
+
searchInProgress: he,
|
|
10139
|
+
searchResults: me,
|
|
10140
|
+
clearSearchResults: ge,
|
|
10132
10141
|
isSearchMode: xt,
|
|
10133
|
-
emptyStateIcon:
|
|
10134
|
-
emptyStateTitle:
|
|
10135
|
-
emptyStateDescription:
|
|
10136
|
-
gridClassName:
|
|
10137
|
-
sharedWithMeIds:
|
|
10138
|
-
onFolderPopupPathChange:
|
|
10139
|
-
onManagePermissions:
|
|
10140
|
-
onPreview:
|
|
10141
|
-
onOpenInNewTab:
|
|
10142
|
-
previewExtensions:
|
|
10143
|
-
isRenameFileAvailable:
|
|
10144
|
-
isDuplicateFolderAvailable:
|
|
10145
|
-
customUploadFileAction:
|
|
10146
|
-
customBreakpointRef:
|
|
10147
|
-
nonClickableTableColumns:
|
|
10148
|
-
hideSearchPathItemName:
|
|
10149
|
-
getDisabledTooltip:
|
|
10150
|
-
fileTooLargeTooltip:
|
|
10151
|
-
unsupportedFileTypeTooltip:
|
|
10152
|
-
showHiddenFileSwitcherInDestinationPopup:
|
|
10153
|
-
showCreateFolderButtonInDestinationPopup:
|
|
10154
|
-
maxNewFolderDepth:
|
|
10155
|
-
onNewFolderDepthExceeded:
|
|
10142
|
+
emptyStateIcon: Se,
|
|
10143
|
+
emptyStateTitle: Ce,
|
|
10144
|
+
emptyStateDescription: we,
|
|
10145
|
+
gridClassName: Ie,
|
|
10146
|
+
sharedWithMeIds: Te,
|
|
10147
|
+
onFolderPopupPathChange: Ee,
|
|
10148
|
+
onManagePermissions: De,
|
|
10149
|
+
onPreview: Oe,
|
|
10150
|
+
onOpenInNewTab: ke,
|
|
10151
|
+
previewExtensions: Ae,
|
|
10152
|
+
isRenameFileAvailable: je,
|
|
10153
|
+
isDuplicateFolderAvailable: U,
|
|
10154
|
+
customUploadFileAction: W,
|
|
10155
|
+
customBreakpointRef: Fe,
|
|
10156
|
+
nonClickableTableColumns: Le,
|
|
10157
|
+
hideSearchPathItemName: Re,
|
|
10158
|
+
getDisabledTooltip: ye,
|
|
10159
|
+
fileTooLargeTooltip: be,
|
|
10160
|
+
unsupportedFileTypeTooltip: xe,
|
|
10161
|
+
showHiddenFileSwitcherInDestinationPopup: ze,
|
|
10162
|
+
showCreateFolderButtonInDestinationPopup: Be,
|
|
10163
|
+
maxNewFolderDepth: He,
|
|
10164
|
+
onNewFolderDepthExceeded: Ue
|
|
10156
10165
|
};
|
|
10157
|
-
return /* @__PURE__ */
|
|
10166
|
+
return /* @__PURE__ */ G(_r.Provider, {
|
|
10158
10167
|
value: yr,
|
|
10159
10168
|
children: t
|
|
10160
10169
|
});
|
|
@@ -10198,12 +10207,12 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
|
|
|
10198
10207
|
a,
|
|
10199
10208
|
o
|
|
10200
10209
|
]);
|
|
10201
|
-
return /* @__PURE__ */
|
|
10210
|
+
return /* @__PURE__ */ G(W, { children: m && d && tt(/* @__PURE__ */ K(xe, {
|
|
10202
10211
|
open: !0,
|
|
10203
|
-
placement:
|
|
10204
|
-
children: [/* @__PURE__ */
|
|
10212
|
+
placement: Ce.Top,
|
|
10213
|
+
children: [/* @__PURE__ */ G(we, {
|
|
10205
10214
|
asChild: !0,
|
|
10206
|
-
children: /* @__PURE__ */
|
|
10215
|
+
children: /* @__PURE__ */ G("div", {
|
|
10207
10216
|
className: (0, $t.default)("fixed z-[-1]", m && "pointer-events-none"),
|
|
10208
10217
|
style: {
|
|
10209
10218
|
top: d.top,
|
|
@@ -10212,7 +10221,7 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
|
|
|
10212
10221
|
height: d.height
|
|
10213
10222
|
}
|
|
10214
10223
|
})
|
|
10215
|
-
}), /* @__PURE__ */
|
|
10224
|
+
}), /* @__PURE__ */ G(Se, {
|
|
10216
10225
|
className: "text-center",
|
|
10217
10226
|
children: m
|
|
10218
10227
|
})]
|
|
@@ -10231,7 +10240,7 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
|
|
|
10231
10240
|
return g && e.push({
|
|
10232
10241
|
key: "add-folder",
|
|
10233
10242
|
label: d,
|
|
10234
|
-
icon: /* @__PURE__ */
|
|
10243
|
+
icon: /* @__PURE__ */ G(Ye, {
|
|
10235
10244
|
...X,
|
|
10236
10245
|
className: "text-secondary"
|
|
10237
10246
|
}),
|
|
@@ -10241,7 +10250,7 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
|
|
|
10241
10250
|
}), h && e.push({
|
|
10242
10251
|
key: "show-hidden-files",
|
|
10243
10252
|
label: m,
|
|
10244
|
-
icon: /* @__PURE__ */
|
|
10253
|
+
icon: /* @__PURE__ */ G(Ue, {
|
|
10245
10254
|
...X,
|
|
10246
10255
|
className: "text-secondary"
|
|
10247
10256
|
}),
|
|
@@ -10264,39 +10273,39 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
|
|
|
10264
10273
|
i,
|
|
10265
10274
|
E
|
|
10266
10275
|
]), z = p === un.Copy ? "Copy to" : "Move to", ee = c(() => !C || !x ? !1 : x === C, [C, x]);
|
|
10267
|
-
return /* @__PURE__ */
|
|
10276
|
+
return /* @__PURE__ */ G(ce, {
|
|
10268
10277
|
open: a,
|
|
10269
10278
|
onClose: () => {
|
|
10270
10279
|
e();
|
|
10271
10280
|
},
|
|
10272
|
-
size:
|
|
10281
|
+
size: H.Lg,
|
|
10273
10282
|
className: "md:!h-[800px] !bg-layer-sunken",
|
|
10274
|
-
footer: /* @__PURE__ */
|
|
10283
|
+
footer: /* @__PURE__ */ K("div", {
|
|
10275
10284
|
className: "flex justify-between items-center gap-2 p-4 md:px-6",
|
|
10276
|
-
children: [/* @__PURE__ */
|
|
10285
|
+
children: [/* @__PURE__ */ G("div", {
|
|
10277
10286
|
className: "flex items-center gap-4 min-w-0",
|
|
10278
|
-
children: P ? /* @__PURE__ */
|
|
10287
|
+
children: P ? /* @__PURE__ */ G(N, {
|
|
10279
10288
|
items: L,
|
|
10280
10289
|
open: A,
|
|
10281
10290
|
onOpenChange: j,
|
|
10282
|
-
children: /* @__PURE__ */
|
|
10291
|
+
children: /* @__PURE__ */ G(B, {
|
|
10283
10292
|
size: I.Large,
|
|
10284
10293
|
"aria-label": "More options",
|
|
10285
|
-
icon: /* @__PURE__ */
|
|
10294
|
+
icon: /* @__PURE__ */ G(Be, { ...X })
|
|
10286
10295
|
})
|
|
10287
|
-
}) : /* @__PURE__ */
|
|
10288
|
-
g && /* @__PURE__ */
|
|
10296
|
+
}) : /* @__PURE__ */ K(W, { children: [
|
|
10297
|
+
g && /* @__PURE__ */ G(le, {
|
|
10289
10298
|
label: d,
|
|
10290
10299
|
appearance: f.Ghost,
|
|
10291
|
-
iconBefore: /* @__PURE__ */
|
|
10300
|
+
iconBefore: /* @__PURE__ */ G(Ye, { ...X }),
|
|
10292
10301
|
onClick: () => {
|
|
10293
10302
|
M.current?.createFolder();
|
|
10294
10303
|
}
|
|
10295
10304
|
}),
|
|
10296
|
-
g && h && /* @__PURE__ */
|
|
10297
|
-
h && /* @__PURE__ */
|
|
10305
|
+
g && h && /* @__PURE__ */ G("div", { className: "w-px h-[26px] bg-control-disable-primary my-2" }),
|
|
10306
|
+
h && /* @__PURE__ */ G(W, { children: /* @__PURE__ */ G("div", {
|
|
10298
10307
|
className: "inline-flex items-center cursor-pointer",
|
|
10299
|
-
children: /* @__PURE__ */
|
|
10308
|
+
children: /* @__PURE__ */ G(ge, {
|
|
10300
10309
|
labelProps: { label: m },
|
|
10301
10310
|
isOn: O,
|
|
10302
10311
|
onChange: F,
|
|
@@ -10304,20 +10313,20 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
|
|
|
10304
10313
|
})
|
|
10305
10314
|
}) })
|
|
10306
10315
|
] })
|
|
10307
|
-
}), /* @__PURE__ */
|
|
10316
|
+
}), /* @__PURE__ */ K("div", {
|
|
10308
10317
|
className: "flex space-x-4 items-center",
|
|
10309
|
-
children: [/* @__PURE__ */
|
|
10318
|
+
children: [/* @__PURE__ */ G(re, {
|
|
10310
10319
|
onClick: e,
|
|
10311
10320
|
label: "Cancel"
|
|
10312
|
-
}), ee ? /* @__PURE__ */
|
|
10321
|
+
}), ee ? /* @__PURE__ */ G(be, {
|
|
10313
10322
|
tooltip: S,
|
|
10314
|
-
children: /* @__PURE__ */
|
|
10323
|
+
children: /* @__PURE__ */ G(le, {
|
|
10315
10324
|
onClick: t,
|
|
10316
10325
|
label: p === "copy" ? o : s,
|
|
10317
10326
|
disabled: ee,
|
|
10318
10327
|
"aria-disabled": ee
|
|
10319
10328
|
})
|
|
10320
|
-
}) : /* @__PURE__ */
|
|
10329
|
+
}) : /* @__PURE__ */ G(le, {
|
|
10321
10330
|
onClick: t,
|
|
10322
10331
|
label: p === "copy" ? o : s
|
|
10323
10332
|
})]
|
|
@@ -10325,17 +10334,17 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
|
|
|
10325
10334
|
}),
|
|
10326
10335
|
header: b ?? z,
|
|
10327
10336
|
ariaLabel: z,
|
|
10328
|
-
children: /* @__PURE__ */
|
|
10337
|
+
children: /* @__PURE__ */ K("div", {
|
|
10329
10338
|
className: "bg-layer-sunken h-full flex flex-col",
|
|
10330
|
-
children: [T && /* @__PURE__ */
|
|
10339
|
+
children: [T && /* @__PURE__ */ G("div", {
|
|
10331
10340
|
className: "px-6 mb-4 pt-4",
|
|
10332
|
-
children: /* @__PURE__ */
|
|
10333
|
-
}), /* @__PURE__ */
|
|
10341
|
+
children: /* @__PURE__ */ G(ae, { ...T })
|
|
10342
|
+
}), /* @__PURE__ */ G("div", {
|
|
10334
10343
|
className: "flex-1 min-h-0",
|
|
10335
|
-
children: /* @__PURE__ */
|
|
10344
|
+
children: /* @__PURE__ */ G(Si, {
|
|
10336
10345
|
...D,
|
|
10337
10346
|
gridClassName: "size-full",
|
|
10338
|
-
className:
|
|
10347
|
+
className: De(D.className, "bg-layer-sunken h-full flex pt-0"),
|
|
10339
10348
|
actionsRef: M,
|
|
10340
10349
|
path: C,
|
|
10341
10350
|
showHiddenFiles: O,
|
|
@@ -10423,37 +10432,37 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
10423
10432
|
actionsGap: Hr,
|
|
10424
10433
|
containerPadding: Ur
|
|
10425
10434
|
}), u = e(r);
|
|
10426
|
-
return /* @__PURE__ */
|
|
10435
|
+
return /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("div", {
|
|
10427
10436
|
ref: s,
|
|
10428
10437
|
className: "absolute top-0 left-0 invisible pointer-events-none overflow-hidden whitespace-nowrap flex gap-3",
|
|
10429
|
-
children: n.map(({ key: e, icon: t, title: n }) => /* @__PURE__ */
|
|
10438
|
+
children: n.map(({ key: e, icon: t, title: n }) => /* @__PURE__ */ G(re, {
|
|
10430
10439
|
iconBefore: t,
|
|
10431
10440
|
label: n
|
|
10432
10441
|
}, e))
|
|
10433
|
-
}), /* @__PURE__ */
|
|
10442
|
+
}), /* @__PURE__ */ K("div", {
|
|
10434
10443
|
ref: a,
|
|
10435
10444
|
className: "rounded bg-layer-raised p-2 flex justify-between items-center w-full",
|
|
10436
10445
|
role: "toolbar",
|
|
10437
10446
|
"aria-label": "File bulk actions",
|
|
10438
|
-
children: [/* @__PURE__ */
|
|
10447
|
+
children: [/* @__PURE__ */ G("div", {
|
|
10439
10448
|
ref: o,
|
|
10440
|
-
children: /* @__PURE__ */
|
|
10449
|
+
children: /* @__PURE__ */ G(le, {
|
|
10441
10450
|
label: u,
|
|
10442
10451
|
onClick: t,
|
|
10443
10452
|
textClassName: "text-accent whitespace-nowrap",
|
|
10444
10453
|
appearance: f.Ghost,
|
|
10445
|
-
iconBefore: /* @__PURE__ */
|
|
10454
|
+
iconBefore: /* @__PURE__ */ G(et, { ...X })
|
|
10446
10455
|
})
|
|
10447
|
-
}), /* @__PURE__ */
|
|
10456
|
+
}), /* @__PURE__ */ K("div", {
|
|
10448
10457
|
className: "flex flex-1 w-full gap-3 items-center justify-end",
|
|
10449
|
-
children: [l.length > 0 && /* @__PURE__ */
|
|
10458
|
+
children: [l.length > 0 && /* @__PURE__ */ G(N, {
|
|
10450
10459
|
items: l,
|
|
10451
10460
|
allowedPlacements: ["bottom", "bottom-start"],
|
|
10452
|
-
children: /* @__PURE__ */
|
|
10461
|
+
children: /* @__PURE__ */ G(B, {
|
|
10453
10462
|
className: "h-[38px]",
|
|
10454
|
-
icon: /* @__PURE__ */
|
|
10463
|
+
icon: /* @__PURE__ */ G(Be, { ...X })
|
|
10455
10464
|
})
|
|
10456
|
-
}), c.map(({ key: e, icon: t, tooltip: n, title: r, onClick: i, disabled: a }) => /* @__PURE__ */
|
|
10465
|
+
}), c.map(({ key: e, icon: t, tooltip: n, title: r, onClick: i, disabled: a }) => /* @__PURE__ */ G(re, {
|
|
10457
10466
|
className: "!p-[9px]",
|
|
10458
10467
|
iconBefore: t,
|
|
10459
10468
|
label: r,
|
|
@@ -10467,14 +10476,14 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
10467
10476
|
})]
|
|
10468
10477
|
})] });
|
|
10469
10478
|
}, Gr = ({ open: e, itemsToDelete: t, onClose: n, onConfirm: r, cancelLabel: i = "Cancel", confirmLabel: a = "Delete", titleRenderer: o, contentRenderer: s }) => {
|
|
10470
|
-
let c = t.map((e) => e.name), l = "Confirm Deleting Items", u = o?.(c) || l, d = /* @__PURE__ */
|
|
10479
|
+
let c = t.map((e) => e.name), l = "Confirm Deleting Items", u = o?.(c) || l, d = /* @__PURE__ */ K("div", {
|
|
10471
10480
|
className: "px-6 py-3 dial-small-text",
|
|
10472
|
-
children: [/* @__PURE__ */
|
|
10481
|
+
children: [/* @__PURE__ */ G("p", {
|
|
10473
10482
|
className: "text-secondary mb-3",
|
|
10474
|
-
children: t.length === 1 ? /* @__PURE__ */
|
|
10483
|
+
children: t.length === 1 ? /* @__PURE__ */ K(W, { children: [
|
|
10475
10484
|
"Do you want to delete file or folder",
|
|
10476
10485
|
" ",
|
|
10477
|
-
/* @__PURE__ */
|
|
10486
|
+
/* @__PURE__ */ K("span", {
|
|
10478
10487
|
className: "text-primary break-all",
|
|
10479
10488
|
children: [
|
|
10480
10489
|
"\"",
|
|
@@ -10483,28 +10492,28 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
10483
10492
|
]
|
|
10484
10493
|
}),
|
|
10485
10494
|
"?"
|
|
10486
|
-
] }) : /* @__PURE__ */
|
|
10495
|
+
] }) : /* @__PURE__ */ K(W, { children: [
|
|
10487
10496
|
"Do you want to delete the following",
|
|
10488
10497
|
" ",
|
|
10489
|
-
/* @__PURE__ */
|
|
10498
|
+
/* @__PURE__ */ G("span", {
|
|
10490
10499
|
className: "text-primary",
|
|
10491
10500
|
children: t.length
|
|
10492
10501
|
}),
|
|
10493
10502
|
" items?"
|
|
10494
10503
|
] })
|
|
10495
|
-
}), t.length > 1 && /* @__PURE__ */
|
|
10504
|
+
}), t.length > 1 && /* @__PURE__ */ G(W, { children: t.length <= 10 ? /* @__PURE__ */ G("ul", {
|
|
10496
10505
|
className: "space-y-1 text-primary list-none",
|
|
10497
|
-
children: t.map((e) => /* @__PURE__ */
|
|
10506
|
+
children: t.map((e) => /* @__PURE__ */ G("li", {
|
|
10498
10507
|
className: "truncate",
|
|
10499
10508
|
children: e.name
|
|
10500
10509
|
}, e.path))
|
|
10501
|
-
}) : /* @__PURE__ */
|
|
10510
|
+
}) : /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("ul", {
|
|
10502
10511
|
className: "space-y-1 text-primary list-none mb-2",
|
|
10503
|
-
children: t.slice(0, 10).map((e) => /* @__PURE__ */
|
|
10512
|
+
children: t.slice(0, 10).map((e) => /* @__PURE__ */ G("li", {
|
|
10504
10513
|
className: "truncate",
|
|
10505
10514
|
children: e.name
|
|
10506
10515
|
}, e.path))
|
|
10507
|
-
}), /* @__PURE__ */
|
|
10516
|
+
}), /* @__PURE__ */ K("p", {
|
|
10508
10517
|
className: "text-secondary italic",
|
|
10509
10518
|
children: [
|
|
10510
10519
|
"... and ",
|
|
@@ -10513,7 +10522,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
10513
10522
|
]
|
|
10514
10523
|
})] }) })]
|
|
10515
10524
|
}), f = s?.(c) || d;
|
|
10516
|
-
return /* @__PURE__ */
|
|
10525
|
+
return /* @__PURE__ */ G(v, {
|
|
10517
10526
|
open: e,
|
|
10518
10527
|
header: u,
|
|
10519
10528
|
ariaLabel: l,
|
|
@@ -10581,16 +10590,16 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
10581
10590
|
x
|
|
10582
10591
|
]), k = n(() => {
|
|
10583
10592
|
(!m || String(m).trim() === "") && v?.("");
|
|
10584
|
-
}, [m, v]), A = n(() => x && w ? /* @__PURE__ */
|
|
10593
|
+
}, [m, v]), A = n(() => x && w ? /* @__PURE__ */ G(B, {
|
|
10585
10594
|
size: I.Standard,
|
|
10586
10595
|
"aria-label": S,
|
|
10587
|
-
icon: /* @__PURE__ */
|
|
10596
|
+
icon: /* @__PURE__ */ G(Pe, { ...X }),
|
|
10588
10597
|
onClick: () => {
|
|
10589
10598
|
E(!1), v?.("");
|
|
10590
10599
|
}
|
|
10591
|
-
}) : /* @__PURE__ */
|
|
10600
|
+
}) : /* @__PURE__ */ G("div", {
|
|
10592
10601
|
className: Jr,
|
|
10593
|
-
children: /* @__PURE__ */
|
|
10602
|
+
children: /* @__PURE__ */ G(T, {
|
|
10594
10603
|
pathItems: C,
|
|
10595
10604
|
ariaLabel: e,
|
|
10596
10605
|
labelClassName: t,
|
|
@@ -10606,18 +10615,18 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
10606
10615
|
t,
|
|
10607
10616
|
v
|
|
10608
10617
|
]);
|
|
10609
|
-
return /* @__PURE__ */
|
|
10610
|
-
className:
|
|
10618
|
+
return /* @__PURE__ */ K("div", {
|
|
10619
|
+
className: De(qr, { "gap-3": x }, d),
|
|
10611
10620
|
"aria-label": "navigation-panel",
|
|
10612
|
-
children: [A(), p && /* @__PURE__ */
|
|
10613
|
-
className:
|
|
10621
|
+
children: [A(), p && /* @__PURE__ */ G("div", {
|
|
10622
|
+
className: De(Yr, {
|
|
10614
10623
|
"w-[40px]": x && !w,
|
|
10615
10624
|
"w-full": x && w
|
|
10616
10625
|
}),
|
|
10617
10626
|
role: "search",
|
|
10618
10627
|
"aria-label": "Search",
|
|
10619
10628
|
onClick: O,
|
|
10620
|
-
children: /* @__PURE__ */
|
|
10629
|
+
children: /* @__PURE__ */ G(de, {
|
|
10621
10630
|
id: h,
|
|
10622
10631
|
value: m ?? "",
|
|
10623
10632
|
onChange: D,
|
|
@@ -10634,7 +10643,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
10634
10643
|
let v = zr(), y = c(() => [{
|
|
10635
10644
|
key: "hidden-files-switch",
|
|
10636
10645
|
label: r ? h : f,
|
|
10637
|
-
icon:
|
|
10646
|
+
icon: G(r ? We : Ue, {
|
|
10638
10647
|
...X,
|
|
10639
10648
|
className: "text-secondary"
|
|
10640
10649
|
}),
|
|
@@ -10645,43 +10654,43 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
10645
10654
|
f,
|
|
10646
10655
|
i
|
|
10647
10656
|
]);
|
|
10648
|
-
return /* @__PURE__ */
|
|
10657
|
+
return /* @__PURE__ */ K("div", {
|
|
10649
10658
|
className: "flex w-full justify-between gap-4 items-center overflow-x-auto py-[2px] my-[-2px]",
|
|
10650
|
-
children: [/* @__PURE__ */
|
|
10659
|
+
children: [/* @__PURE__ */ G("div", {
|
|
10651
10660
|
className: "flex-1 min-w-0",
|
|
10652
|
-
children: e && t && n ? /* @__PURE__ */
|
|
10661
|
+
children: e && t && n ? /* @__PURE__ */ G(_e, {
|
|
10653
10662
|
tabs: e,
|
|
10654
10663
|
activeTabId: t,
|
|
10655
10664
|
onTabChange: (e) => n(e)
|
|
10656
10665
|
}) : null
|
|
10657
|
-
}), /* @__PURE__ */
|
|
10666
|
+
}), /* @__PURE__ */ G("div", {
|
|
10658
10667
|
className: "flex gap-2 shrink-0 items-center",
|
|
10659
|
-
children: v ? /* @__PURE__ */
|
|
10668
|
+
children: v ? /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(N, {
|
|
10660
10669
|
items: y,
|
|
10661
10670
|
allowedPlacements: ["bottom", "bottom-start"],
|
|
10662
|
-
children: /* @__PURE__ */
|
|
10671
|
+
children: /* @__PURE__ */ G(B, {
|
|
10663
10672
|
size: I.Small,
|
|
10664
|
-
icon: /* @__PURE__ */
|
|
10673
|
+
icon: /* @__PURE__ */ G(Be, {
|
|
10665
10674
|
stroke: sn,
|
|
10666
10675
|
size: S.SM
|
|
10667
10676
|
})
|
|
10668
10677
|
})
|
|
10669
|
-
}), a ? /* @__PURE__ */
|
|
10678
|
+
}), a ? /* @__PURE__ */ G(be, {
|
|
10670
10679
|
tooltip: o && _ ? _ : void 0,
|
|
10671
|
-
children: /* @__PURE__ */
|
|
10680
|
+
children: /* @__PURE__ */ G(p, {
|
|
10672
10681
|
label: u,
|
|
10673
10682
|
variant: s,
|
|
10674
10683
|
items: l,
|
|
10675
10684
|
disabled: o
|
|
10676
10685
|
})
|
|
10677
|
-
}) : null] }) : /* @__PURE__ */
|
|
10686
|
+
}) : null] }) : /* @__PURE__ */ K(W, { children: [g && /* @__PURE__ */ G(ge, {
|
|
10678
10687
|
id: "hidden-files-switch",
|
|
10679
10688
|
labelProps: { label: d },
|
|
10680
10689
|
isOn: r,
|
|
10681
10690
|
onChange: i
|
|
10682
|
-
}), a && /* @__PURE__ */
|
|
10691
|
+
}), a && /* @__PURE__ */ G(be, {
|
|
10683
10692
|
tooltip: o && _ ? _ : void 0,
|
|
10684
|
-
children: /* @__PURE__ */
|
|
10693
|
+
children: /* @__PURE__ */ G(p, {
|
|
10685
10694
|
label: u,
|
|
10686
10695
|
variant: s,
|
|
10687
10696
|
items: l,
|
|
@@ -10690,106 +10699,106 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
10690
10699
|
})] })
|
|
10691
10700
|
})]
|
|
10692
10701
|
});
|
|
10693
|
-
}, Qr = 100, $r = 16, ei = "text-secondary", ti = "text-primary min-w-0", ni = "text-primary break-words min-w-0", ri = "bg-layer-sunken", ii = ({ open: e, onClose: t, fileMetadata: n, loading: r = !1, header: i = "Information", nameLabel: a = "Name:", pathLabel: o = "Path:", modifiedDateLabel: s = "Modified Date:", sizeLabel: c = "Size:", authorLabel: l = "Author:", dateLocale: u = "en-US", dateOptions: d }) => /* @__PURE__ */
|
|
10702
|
+
}, Qr = 100, $r = 16, ei = "text-secondary", ti = "text-primary min-w-0", ni = "text-primary break-words min-w-0", ri = "bg-layer-sunken", ii = ({ open: e, onClose: t, fileMetadata: n, loading: r = !1, header: i = "Information", nameLabel: a = "Name:", pathLabel: o = "Path:", modifiedDateLabel: s = "Modified Date:", sizeLabel: c = "Size:", authorLabel: l = "Author:", dateLocale: u = "en-US", dateOptions: d }) => /* @__PURE__ */ G(ce, {
|
|
10694
10703
|
open: e,
|
|
10695
10704
|
onClose: t,
|
|
10696
|
-
size:
|
|
10705
|
+
size: H.Sm,
|
|
10697
10706
|
header: i,
|
|
10698
10707
|
ariaLabel: "File information",
|
|
10699
|
-
children: /* @__PURE__ */
|
|
10708
|
+
children: /* @__PURE__ */ G("div", {
|
|
10700
10709
|
className: "px-6 py-4",
|
|
10701
|
-
children: /* @__PURE__ */
|
|
10710
|
+
children: /* @__PURE__ */ G("div", {
|
|
10702
10711
|
className: "grid gap-4 items-center dial-small-text",
|
|
10703
10712
|
style: { gridTemplateColumns: `${Qr}px 1fr` },
|
|
10704
|
-
children: r ? /* @__PURE__ */
|
|
10705
|
-
/* @__PURE__ */
|
|
10713
|
+
children: r ? /* @__PURE__ */ K(W, { children: [
|
|
10714
|
+
/* @__PURE__ */ G("div", {
|
|
10706
10715
|
className: ei,
|
|
10707
10716
|
children: a
|
|
10708
10717
|
}),
|
|
10709
|
-
/* @__PURE__ */
|
|
10710
|
-
variant:
|
|
10718
|
+
/* @__PURE__ */ G(pe, {
|
|
10719
|
+
variant: me.Text,
|
|
10711
10720
|
width: "100%",
|
|
10712
10721
|
height: $r,
|
|
10713
10722
|
className: ri
|
|
10714
10723
|
}),
|
|
10715
|
-
/* @__PURE__ */
|
|
10724
|
+
/* @__PURE__ */ G("div", {
|
|
10716
10725
|
className: ei,
|
|
10717
10726
|
children: s
|
|
10718
10727
|
}),
|
|
10719
|
-
/* @__PURE__ */
|
|
10720
|
-
variant:
|
|
10728
|
+
/* @__PURE__ */ G(pe, {
|
|
10729
|
+
variant: me.Text,
|
|
10721
10730
|
width: "90%",
|
|
10722
10731
|
height: $r,
|
|
10723
10732
|
className: ri
|
|
10724
10733
|
}),
|
|
10725
|
-
/* @__PURE__ */
|
|
10734
|
+
/* @__PURE__ */ G("div", {
|
|
10726
10735
|
className: ei,
|
|
10727
10736
|
children: c
|
|
10728
10737
|
}),
|
|
10729
|
-
/* @__PURE__ */
|
|
10730
|
-
variant:
|
|
10738
|
+
/* @__PURE__ */ G(pe, {
|
|
10739
|
+
variant: me.Text,
|
|
10731
10740
|
width: "60%",
|
|
10732
10741
|
height: $r,
|
|
10733
10742
|
className: ri
|
|
10734
10743
|
}),
|
|
10735
|
-
/* @__PURE__ */
|
|
10744
|
+
/* @__PURE__ */ G("div", {
|
|
10736
10745
|
className: ei,
|
|
10737
10746
|
children: l
|
|
10738
10747
|
}),
|
|
10739
|
-
/* @__PURE__ */
|
|
10740
|
-
variant:
|
|
10748
|
+
/* @__PURE__ */ G(pe, {
|
|
10749
|
+
variant: me.Text,
|
|
10741
10750
|
width: "80%",
|
|
10742
10751
|
height: $r,
|
|
10743
10752
|
className: ri
|
|
10744
10753
|
}),
|
|
10745
|
-
/* @__PURE__ */
|
|
10754
|
+
/* @__PURE__ */ G("div", {
|
|
10746
10755
|
className: ei,
|
|
10747
10756
|
children: o
|
|
10748
10757
|
}),
|
|
10749
|
-
/* @__PURE__ */
|
|
10750
|
-
variant:
|
|
10758
|
+
/* @__PURE__ */ G(pe, {
|
|
10759
|
+
variant: me.Text,
|
|
10751
10760
|
width: "70%",
|
|
10752
10761
|
height: $r,
|
|
10753
10762
|
className: ri
|
|
10754
10763
|
})
|
|
10755
|
-
] }) : n ? /* @__PURE__ */
|
|
10756
|
-
/* @__PURE__ */
|
|
10764
|
+
] }) : n ? /* @__PURE__ */ K(W, { children: [
|
|
10765
|
+
/* @__PURE__ */ G("div", {
|
|
10757
10766
|
className: ei,
|
|
10758
10767
|
children: a
|
|
10759
10768
|
}),
|
|
10760
|
-
/* @__PURE__ */
|
|
10769
|
+
/* @__PURE__ */ G("div", {
|
|
10761
10770
|
className: ti,
|
|
10762
|
-
children: /* @__PURE__ */
|
|
10771
|
+
children: /* @__PURE__ */ G(L, { text: n.name })
|
|
10763
10772
|
}),
|
|
10764
|
-
/* @__PURE__ */
|
|
10773
|
+
/* @__PURE__ */ G("div", {
|
|
10765
10774
|
className: ei,
|
|
10766
10775
|
children: s
|
|
10767
10776
|
}),
|
|
10768
|
-
/* @__PURE__ */
|
|
10777
|
+
/* @__PURE__ */ G("div", {
|
|
10769
10778
|
className: ti,
|
|
10770
|
-
children: /* @__PURE__ */
|
|
10779
|
+
children: /* @__PURE__ */ G(L, { text: qn(n.updatedAt, u, d) })
|
|
10771
10780
|
}),
|
|
10772
|
-
/* @__PURE__ */
|
|
10781
|
+
/* @__PURE__ */ G("div", {
|
|
10773
10782
|
className: ei,
|
|
10774
10783
|
children: c
|
|
10775
10784
|
}),
|
|
10776
|
-
/* @__PURE__ */
|
|
10785
|
+
/* @__PURE__ */ G("div", {
|
|
10777
10786
|
className: ti,
|
|
10778
|
-
children: /* @__PURE__ */
|
|
10787
|
+
children: /* @__PURE__ */ G(L, { text: Kn(n.contentLength) })
|
|
10779
10788
|
}),
|
|
10780
|
-
/* @__PURE__ */
|
|
10789
|
+
/* @__PURE__ */ G("div", {
|
|
10781
10790
|
className: ei,
|
|
10782
10791
|
children: l
|
|
10783
10792
|
}),
|
|
10784
|
-
/* @__PURE__ */
|
|
10793
|
+
/* @__PURE__ */ G("div", {
|
|
10785
10794
|
className: ti,
|
|
10786
|
-
children: /* @__PURE__ */
|
|
10795
|
+
children: /* @__PURE__ */ G(L, { text: n.author || "—" })
|
|
10787
10796
|
}),
|
|
10788
|
-
/* @__PURE__ */
|
|
10797
|
+
/* @__PURE__ */ G("div", {
|
|
10789
10798
|
className: ei,
|
|
10790
10799
|
children: o
|
|
10791
10800
|
}),
|
|
10792
|
-
/* @__PURE__ */
|
|
10801
|
+
/* @__PURE__ */ G("div", {
|
|
10793
10802
|
className: ni,
|
|
10794
10803
|
children: decodeURIComponent(n.path)
|
|
10795
10804
|
})
|
|
@@ -10800,33 +10809,33 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
10800
10809
|
size: 10,
|
|
10801
10810
|
stroke: 2
|
|
10802
10811
|
}, oi = 26, si = "__new_folder", ci = ({ name: e, type: t, shared: n = !1, loading: r = !1, sharedIndicatorClassName: i, sharedIndicatorTooltip: a, fileExtension: o, ...s }) => {
|
|
10803
|
-
let c = (e) => /* @__PURE__ */
|
|
10812
|
+
let c = (e) => /* @__PURE__ */ K("span", {
|
|
10804
10813
|
className: "inline-flex relative text-secondary",
|
|
10805
10814
|
role: "img",
|
|
10806
|
-
children: [e, n && /* @__PURE__ */
|
|
10815
|
+
children: [e, n && /* @__PURE__ */ G("span", {
|
|
10807
10816
|
className: "absolute -bottom-0.5 -left-0.5",
|
|
10808
|
-
children: /* @__PURE__ */
|
|
10817
|
+
children: /* @__PURE__ */ G(M, {
|
|
10809
10818
|
className: i,
|
|
10810
10819
|
sharedIndicatorTooltip: a
|
|
10811
10820
|
})
|
|
10812
10821
|
})]
|
|
10813
10822
|
});
|
|
10814
|
-
if (r) return c(/* @__PURE__ */
|
|
10823
|
+
if (r) return c(/* @__PURE__ */ G(he, {}));
|
|
10815
10824
|
if (t === j.File) {
|
|
10816
10825
|
let t = o || (e.includes(".") ? e.split(".").pop() : void 0);
|
|
10817
|
-
return /* @__PURE__ */
|
|
10826
|
+
return /* @__PURE__ */ G(E, {
|
|
10818
10827
|
...s,
|
|
10819
10828
|
extension: t ?? "",
|
|
10820
10829
|
className: "text-secondary",
|
|
10821
|
-
indicator: n ? /* @__PURE__ */
|
|
10830
|
+
indicator: n ? /* @__PURE__ */ G(M, {
|
|
10822
10831
|
className: i,
|
|
10823
10832
|
sharedIndicatorTooltip: a
|
|
10824
10833
|
}) : null,
|
|
10825
10834
|
label: "File type icon"
|
|
10826
10835
|
});
|
|
10827
10836
|
}
|
|
10828
|
-
return t === j.Folder ? c(/* @__PURE__ */
|
|
10829
|
-
icon: /* @__PURE__ */
|
|
10837
|
+
return t === j.Folder ? c(/* @__PURE__ */ G(A, {
|
|
10838
|
+
icon: /* @__PURE__ */ G(Je, {
|
|
10830
10839
|
className: s.className,
|
|
10831
10840
|
size: s.size ?? X.size,
|
|
10832
10841
|
stroke: s.stroke ?? X.stroke
|
|
@@ -10835,26 +10844,26 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
10835
10844
|
})) : null;
|
|
10836
10845
|
}, li = ({ name: e, type: t, elementId: n, loading: r = !1, shared: i = !1, iconClassName: a, iconIndicator: o, iconLabel: s, iconSize: c, iconStroke: l, inputInvalid: u, inputInvalidMessage: d, inputContainerClassName: f, inputIconAfter: p, inputRef: m, onChange: h, sharedIndicatorClassName: g, sharedIndicatorTooltip: _, fileExtension: v }) => {
|
|
10837
10846
|
let y = () => {
|
|
10838
|
-
let e = d?.startsWith(`${
|
|
10847
|
+
let e = d?.startsWith(`${se.Warning}__`);
|
|
10839
10848
|
if (!u && !e) return null;
|
|
10840
|
-
let t = d?.replace(`${
|
|
10841
|
-
return /* @__PURE__ */
|
|
10849
|
+
let t = d?.replace(`${se.Warning}__`, "");
|
|
10850
|
+
return /* @__PURE__ */ G(be, {
|
|
10842
10851
|
tooltip: t,
|
|
10843
|
-
children: p || (e ? /* @__PURE__ */
|
|
10852
|
+
children: p || (e ? /* @__PURE__ */ G(Ne, {
|
|
10844
10853
|
...X,
|
|
10845
10854
|
className: "text-warning-icon",
|
|
10846
10855
|
"aria-label": "warning"
|
|
10847
|
-
}) : /* @__PURE__ */
|
|
10856
|
+
}) : /* @__PURE__ */ G(Me, {
|
|
10848
10857
|
...X,
|
|
10849
10858
|
className: "text-error",
|
|
10850
10859
|
"aria-label": "alert"
|
|
10851
10860
|
}))
|
|
10852
10861
|
});
|
|
10853
10862
|
};
|
|
10854
|
-
return /* @__PURE__ */
|
|
10863
|
+
return /* @__PURE__ */ K("div", {
|
|
10855
10864
|
className: "flex gap-2 items-center",
|
|
10856
|
-
...
|
|
10857
|
-
children: [/* @__PURE__ */
|
|
10865
|
+
...Ee,
|
|
10866
|
+
children: [/* @__PURE__ */ G(ci, {
|
|
10858
10867
|
name: e,
|
|
10859
10868
|
type: t,
|
|
10860
10869
|
label: s,
|
|
@@ -10867,8 +10876,8 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
10867
10876
|
fileExtension: v,
|
|
10868
10877
|
sharedIndicatorClassName: g,
|
|
10869
10878
|
sharedIndicatorTooltip: _
|
|
10870
|
-
}), /* @__PURE__ */
|
|
10871
|
-
containerClassName:
|
|
10879
|
+
}), /* @__PURE__ */ G(V, {
|
|
10880
|
+
containerClassName: De("!h-5 !py-[1px] !pl-[7px] pr-[7px]", f),
|
|
10872
10881
|
id: n,
|
|
10873
10882
|
value: e,
|
|
10874
10883
|
onChange: h,
|
|
@@ -10878,7 +10887,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
10878
10887
|
})]
|
|
10879
10888
|
});
|
|
10880
10889
|
}, ui = ({ name: e, type: t, elementId: n, editing: r = !1, loading: i = !1, creating: a = !1, shared: o = !1, iconSize: s = d, validate: c, onSave: l, fileExtension: u, onCancel: f, onCreateFolderCancel: p, onCreateFolderSave: m, inputContainerClassName: h, sharedIndicatorClassName: g, sharedIndicatorTooltip: _, hideTooltip: v = !1, forbiddenSymbolsRegExp: y, forbiddenSymbolsTooltip: b, ...x }) => {
|
|
10881
|
-
let { value: S, invalid: C, invalidMessage: w, onChange: T, inputRef: E } =
|
|
10890
|
+
let { value: S, invalid: C, invalidMessage: w, onChange: T, inputRef: E } = Oe({
|
|
10882
10891
|
value: e,
|
|
10883
10892
|
isEditing: r,
|
|
10884
10893
|
isCreating: a,
|
|
@@ -10894,7 +10903,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
10894
10903
|
name: e,
|
|
10895
10904
|
isFolder: t === j.Folder
|
|
10896
10905
|
}, y, b), r = !!n;
|
|
10897
|
-
return t === j.Folder ? /* @__PURE__ */
|
|
10906
|
+
return t === j.Folder ? /* @__PURE__ */ G(k, {
|
|
10898
10907
|
name: e,
|
|
10899
10908
|
loading: i,
|
|
10900
10909
|
shared: o,
|
|
@@ -10904,7 +10913,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
10904
10913
|
hideTooltip: v,
|
|
10905
10914
|
isInvalidName: r,
|
|
10906
10915
|
tooltipContent: n
|
|
10907
|
-
}) : /* @__PURE__ */
|
|
10916
|
+
}) : /* @__PURE__ */ G(D, {
|
|
10908
10917
|
className: "max-w-[428px]",
|
|
10909
10918
|
...x,
|
|
10910
10919
|
name: e,
|
|
@@ -10916,7 +10925,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
10916
10925
|
tooltipContent: n
|
|
10917
10926
|
});
|
|
10918
10927
|
}
|
|
10919
|
-
return /* @__PURE__ */
|
|
10928
|
+
return /* @__PURE__ */ G(li, {
|
|
10920
10929
|
type: t,
|
|
10921
10930
|
name: S,
|
|
10922
10931
|
elementId: n,
|
|
@@ -10950,45 +10959,45 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
10950
10959
|
let { path: s, nodeType: c, name: l, items: h } = e, b = c === $.FOLDER;
|
|
10951
10960
|
if (!u && Gn(e)) return null;
|
|
10952
10961
|
if (!b && !t) return;
|
|
10953
|
-
let T = Array.isArray(h) && h.length > 0 && h.some((e) => e.nodeType === $.FOLDER || t), D = E.has(s), A = o === s, M = r.has(s), P = d === s || s === `${f}/${si}`, L = i.has(s), R = a.has(s), z = m && p && s === m && b, ee = y && ((t) => y(t, e)), te = A ? "bg-control-accent-alpha rounded" : "",
|
|
10962
|
+
let T = Array.isArray(h) && h.length > 0 && h.some((e) => e.nodeType === $.FOLDER || t), D = E.has(s), A = o === s, M = r.has(s), P = d === s || s === `${f}/${si}`, L = i.has(s), R = a.has(s), z = m && p && s === m && b, ee = y && ((t) => y(t, e)), te = A ? "bg-control-accent-alpha rounded" : "", V = z ? [] : g?.(e) ?? [], ne = C ? Qn({
|
|
10954
10963
|
name: e.name,
|
|
10955
10964
|
isFolder: b
|
|
10956
10965
|
}, C, w) : void 0;
|
|
10957
|
-
return /* @__PURE__ */
|
|
10966
|
+
return /* @__PURE__ */ G("div", {
|
|
10958
10967
|
className: "cursor-pointer text-secondary",
|
|
10959
|
-
children: /* @__PURE__ */
|
|
10968
|
+
children: /* @__PURE__ */ K("div", {
|
|
10960
10969
|
className: "flex flex-col w-full gap-1",
|
|
10961
10970
|
"aria-label": "folder",
|
|
10962
|
-
children: [/* @__PURE__ */
|
|
10971
|
+
children: [/* @__PURE__ */ G(N, {
|
|
10963
10972
|
trigger: [F.ContextMenu],
|
|
10964
10973
|
className: "w-full h-[32px]",
|
|
10965
10974
|
anchorToMouse: !0,
|
|
10966
|
-
items:
|
|
10967
|
-
children: /* @__PURE__ */
|
|
10975
|
+
items: V,
|
|
10976
|
+
children: /* @__PURE__ */ K("div", {
|
|
10968
10977
|
style: { paddingLeft: `${n * oi}px` },
|
|
10969
|
-
className:
|
|
10978
|
+
className: De("py-1 pr-3 gap-2 dial-small-paragraph-text flex justify-between hover:bg-control-accent-alpha-hover rounded group/item w-full relative", te),
|
|
10970
10979
|
"aria-selected": A,
|
|
10971
10980
|
children: [
|
|
10972
|
-
!P && /* @__PURE__ */
|
|
10981
|
+
!P && /* @__PURE__ */ G("div", {
|
|
10973
10982
|
className: "absolute size-full left-0 top-0 z-0",
|
|
10974
10983
|
onClick: () => O(e)
|
|
10975
10984
|
}),
|
|
10976
|
-
/* @__PURE__ */
|
|
10985
|
+
/* @__PURE__ */ G("div", {
|
|
10977
10986
|
className: "relative flex flex-row truncate items-center w-fit h-6 gap-x-1 pl-1",
|
|
10978
10987
|
onClick: () => !P && O(e),
|
|
10979
|
-
children: /* @__PURE__ */
|
|
10988
|
+
children: /* @__PURE__ */ K(W, { children: [b && /* @__PURE__ */ G(Fe, {
|
|
10980
10989
|
...ai,
|
|
10981
10990
|
className: (0, $t.default)("flex-shrink-0", D && "rotate-90 transition-all", L && !T && "text-transparent")
|
|
10982
|
-
}), /* @__PURE__ */
|
|
10991
|
+
}), /* @__PURE__ */ G(ui, {
|
|
10983
10992
|
elementId: `${s}-tree-item`,
|
|
10984
10993
|
name: z ? p : l,
|
|
10985
10994
|
type: b ? j.Folder : j.File,
|
|
10986
10995
|
loading: M,
|
|
10987
10996
|
shared: R,
|
|
10988
|
-
sharedIndicatorClassName:
|
|
10997
|
+
sharedIndicatorClassName: De("group-hover/item:bg-control-accent-alpha-hover", A && "bg-control-accent-alpha"),
|
|
10989
10998
|
iconSize: wn,
|
|
10990
10999
|
forbiddenSymbolsRegExp: C,
|
|
10991
|
-
forbiddenSymbolsTooltip:
|
|
11000
|
+
forbiddenSymbolsTooltip: ne,
|
|
10992
11001
|
...!z && {
|
|
10993
11002
|
editing: P,
|
|
10994
11003
|
creating: s === `${f}/${si}`,
|
|
@@ -11000,17 +11009,17 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
11000
11009
|
}
|
|
11001
11010
|
})] })
|
|
11002
11011
|
}),
|
|
11003
|
-
|
|
11012
|
+
V.length > 0 && !P && !z && /* @__PURE__ */ G("div", {
|
|
11004
11013
|
className: "flex-1 flex justify-end",
|
|
11005
|
-
children: /* @__PURE__ */
|
|
11014
|
+
children: /* @__PURE__ */ G(N, {
|
|
11006
11015
|
placement: "bottom-start",
|
|
11007
11016
|
allowedPlacements: ["top-start", "top-end"],
|
|
11008
|
-
items:
|
|
11017
|
+
items: V,
|
|
11009
11018
|
className: "sticky right-0",
|
|
11010
|
-
children: /* @__PURE__ */
|
|
11019
|
+
children: /* @__PURE__ */ G(B, {
|
|
11011
11020
|
size: I.Small,
|
|
11012
11021
|
className: "invisible group-hover/item:visible",
|
|
11013
|
-
icon: /* @__PURE__ */
|
|
11022
|
+
icon: /* @__PURE__ */ G(Be, { ...X })
|
|
11014
11023
|
})
|
|
11015
11024
|
})
|
|
11016
11025
|
})
|
|
@@ -11021,10 +11030,10 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
11021
11030
|
}, `${s}-children`);
|
|
11022
11031
|
});
|
|
11023
11032
|
};
|
|
11024
|
-
return /* @__PURE__ */
|
|
11033
|
+
return /* @__PURE__ */ G("div", {
|
|
11025
11034
|
className: "flex-1 size-full overflow-y-auto",
|
|
11026
11035
|
"aria-label": "folders-tree",
|
|
11027
|
-
children: e.length > 0 ? k(e, 0) : /* @__PURE__ */
|
|
11036
|
+
children: e.length > 0 ? k(e, 0) : /* @__PURE__ */ G(ie, {
|
|
11028
11037
|
title: s,
|
|
11029
11038
|
description: c,
|
|
11030
11039
|
icon: l
|
|
@@ -11041,7 +11050,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
11041
11050
|
label: t[Z.RemoveAccess],
|
|
11042
11051
|
title: t[Z.RemoveAccess],
|
|
11043
11052
|
disabled: e,
|
|
11044
|
-
icon: /* @__PURE__ */
|
|
11053
|
+
icon: /* @__PURE__ */ G(q, { ...X }),
|
|
11045
11054
|
onClick: () => {
|
|
11046
11055
|
s(h), p();
|
|
11047
11056
|
}
|
|
@@ -11051,7 +11060,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
11051
11060
|
key: Z.Move,
|
|
11052
11061
|
label: t[Z.Move],
|
|
11053
11062
|
title: t[Z.Move],
|
|
11054
|
-
icon: /* @__PURE__ */
|
|
11063
|
+
icon: /* @__PURE__ */ G(an, {
|
|
11055
11064
|
width: X.size,
|
|
11056
11065
|
height: X.size
|
|
11057
11066
|
}),
|
|
@@ -11060,7 +11069,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
11060
11069
|
key: Z.Copy,
|
|
11061
11070
|
label: t[Z.Copy],
|
|
11062
11071
|
title: t[Z.Copy],
|
|
11063
|
-
icon: /* @__PURE__ */
|
|
11072
|
+
icon: /* @__PURE__ */ G(rn, {
|
|
11064
11073
|
width: X.size,
|
|
11065
11074
|
height: X.size
|
|
11066
11075
|
}),
|
|
@@ -11069,7 +11078,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
11069
11078
|
key: Z.Duplicate,
|
|
11070
11079
|
label: t[Z.Duplicate],
|
|
11071
11080
|
title: t[Z.Duplicate],
|
|
11072
|
-
icon: /* @__PURE__ */
|
|
11081
|
+
icon: /* @__PURE__ */ G(Re, { ...X }),
|
|
11073
11082
|
onClick: () => n(h)
|
|
11074
11083
|
}), t[Z.Delete]) {
|
|
11075
11084
|
let e = h.some((e) => e.permissions && !e.permissions.includes(Fn.WRITE));
|
|
@@ -11077,7 +11086,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
11077
11086
|
key: Z.Delete,
|
|
11078
11087
|
label: t[Z.Delete],
|
|
11079
11088
|
title: t[Z.Delete],
|
|
11080
|
-
icon: /* @__PURE__ */
|
|
11089
|
+
icon: /* @__PURE__ */ G($e, { ...X }),
|
|
11081
11090
|
disabled: e,
|
|
11082
11091
|
tooltip: e ? "Selected items contain item which can not be deleted" : void 0,
|
|
11083
11092
|
onClick: () => {
|
|
@@ -11089,7 +11098,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
11089
11098
|
key: Z.Download,
|
|
11090
11099
|
label: t[Z.Download],
|
|
11091
11100
|
title: t[Z.Download],
|
|
11092
|
-
icon: /* @__PURE__ */
|
|
11101
|
+
icon: /* @__PURE__ */ G(Ve, { ...X }),
|
|
11093
11102
|
onClick: () => a(h)
|
|
11094
11103
|
}), t[Z.Unshare] && o) {
|
|
11095
11104
|
let e = h.some((e) => !d?.includes(e.path));
|
|
@@ -11099,7 +11108,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
11099
11108
|
title: t[Z.Unshare],
|
|
11100
11109
|
disabled: e,
|
|
11101
11110
|
tooltip: e ? "Selected items contain item which can not be unshared" : void 0,
|
|
11102
|
-
icon: /* @__PURE__ */
|
|
11111
|
+
icon: /* @__PURE__ */ G(on, {
|
|
11103
11112
|
width: X.size,
|
|
11104
11113
|
height: X.size
|
|
11105
11114
|
}),
|
|
@@ -11124,11 +11133,11 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
11124
11133
|
p,
|
|
11125
11134
|
f,
|
|
11126
11135
|
m
|
|
11127
|
-
]), pi = ({ id: e, name: t, nodeType: n, size: r, updatedAt: i, dateLocale: a, dateOptions: o, shared: s, sharedIndicatorClassName: c, hideTooltip: l = !1, forbiddenSymbolsRegExp: u, forbiddenSymbolsTooltip: d }) => /* @__PURE__ */
|
|
11136
|
+
]), pi = ({ id: e, name: t, nodeType: n, size: r, updatedAt: i, dateLocale: a, dateOptions: o, shared: s, sharedIndicatorClassName: c, hideTooltip: l = !1, forbiddenSymbolsRegExp: u, forbiddenSymbolsTooltip: d }) => /* @__PURE__ */ G("div", {
|
|
11128
11137
|
className: "flex",
|
|
11129
|
-
children: /* @__PURE__ */
|
|
11138
|
+
children: /* @__PURE__ */ G("div", {
|
|
11130
11139
|
className: "flex flex-1 min-w-0",
|
|
11131
|
-
children: /* @__PURE__ */
|
|
11140
|
+
children: /* @__PURE__ */ G(ui, {
|
|
11132
11141
|
type: n === $.FOLDER ? j.Folder : j.File,
|
|
11133
11142
|
name: t,
|
|
11134
11143
|
elementId: e,
|
|
@@ -11138,15 +11147,15 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
11138
11147
|
hideTooltip: l,
|
|
11139
11148
|
forbiddenSymbolsRegExp: u,
|
|
11140
11149
|
forbiddenSymbolsTooltip: d,
|
|
11141
|
-
details: /* @__PURE__ */
|
|
11150
|
+
details: /* @__PURE__ */ K("div", {
|
|
11142
11151
|
className: "flex items-center gap-1 dial-tiny-text text-secondary",
|
|
11143
11152
|
children: [
|
|
11144
|
-
/* @__PURE__ */
|
|
11145
|
-
i && r && /* @__PURE__ */
|
|
11153
|
+
/* @__PURE__ */ G("span", { children: n === $.ITEM ? Kn(r) : "" }),
|
|
11154
|
+
i && r && /* @__PURE__ */ G(Le, {
|
|
11146
11155
|
size: 2,
|
|
11147
11156
|
className: "text-secondary"
|
|
11148
11157
|
}),
|
|
11149
|
-
i ? /* @__PURE__ */
|
|
11158
|
+
i ? /* @__PURE__ */ G("span", { children: /* @__PURE__ */ G(w, {
|
|
11150
11159
|
value: i,
|
|
11151
11160
|
locale: a?.toString(),
|
|
11152
11161
|
options: o,
|
|
@@ -11164,8 +11173,8 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
11164
11173
|
flex: 1,
|
|
11165
11174
|
minWidth: 200,
|
|
11166
11175
|
cellRenderer: (e) => {
|
|
11167
|
-
let i = e.data.nodeType, { saveFolderCreation: a, validateFolderName: o, cancelFolderCreation: s, newFolderTempId: c, sharedByMePaths: l, selectedPaths: u, disabledRowIds: d, filesLoading: f } = e.context, p = l?.has(e.data.path), m = u?.has(e.data.path), h = d?.has(e.data.path) ?? !1, g =
|
|
11168
|
-
if (e.data?.isTemporary && e.data.id === c) return /* @__PURE__ */
|
|
11176
|
+
let i = e.data.nodeType, { saveFolderCreation: a, validateFolderName: o, cancelFolderCreation: s, newFolderTempId: c, sharedByMePaths: l, selectedPaths: u, disabledRowIds: d, filesLoading: f } = e.context, p = l?.has(e.data.path), m = u?.has(e.data.path), h = d?.has(e.data.path) ?? !1, g = De(["group-hover/grid-row:bg-control-accent-alpha-hover", m && "bg-control-accent-alpha"]);
|
|
11177
|
+
if (e.data?.isTemporary && e.data.id === c) return /* @__PURE__ */ G(ui, {
|
|
11169
11178
|
name: e.data.name,
|
|
11170
11179
|
type: j.Folder,
|
|
11171
11180
|
elementId: `new-folder-${e.data.id}`,
|
|
@@ -11180,10 +11189,10 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
11180
11189
|
onCancel: s,
|
|
11181
11190
|
onCreateFolderSave: a,
|
|
11182
11191
|
onCreateFolderCancel: s,
|
|
11183
|
-
inputContainerClassName:
|
|
11192
|
+
inputContainerClassName: De(["!h-9", r && i === $.ITEM && "!h-10"])
|
|
11184
11193
|
});
|
|
11185
11194
|
let { renameTriggerView: _, renamedPath: v, renamedItem: y, getDisplayName: b, onRenameValidate: x, onRenameSave: S, onRenameCancel: C } = e.context;
|
|
11186
|
-
if (_ === dn.Grid && v === e.data?.path && y && e.data) return /* @__PURE__ */
|
|
11195
|
+
if (_ === dn.Grid && v === e.data?.path && y && e.data) return /* @__PURE__ */ G(ui, {
|
|
11187
11196
|
name: b(y),
|
|
11188
11197
|
type: i === $.FOLDER ? j.Folder : j.File,
|
|
11189
11198
|
fileExtension: y.name.split(".").pop(),
|
|
@@ -11195,10 +11204,10 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
11195
11204
|
validate: (e) => x(e, y),
|
|
11196
11205
|
onSave: S,
|
|
11197
11206
|
onCancel: C,
|
|
11198
|
-
inputContainerClassName:
|
|
11207
|
+
inputContainerClassName: De(["!h-9", r && i === $.ITEM && "!h-10"]),
|
|
11199
11208
|
forbiddenSymbolsRegExp: e.context.forbiddenSymbolsRegExp
|
|
11200
11209
|
});
|
|
11201
|
-
if (r) return /* @__PURE__ */
|
|
11210
|
+
if (r) return /* @__PURE__ */ G(pi, {
|
|
11202
11211
|
id: e.data.id,
|
|
11203
11212
|
name: e.data.name,
|
|
11204
11213
|
nodeType: i,
|
|
@@ -11216,7 +11225,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
11216
11225
|
name: e.data.name,
|
|
11217
11226
|
isFolder: i === $.FOLDER
|
|
11218
11227
|
}, e.context.forbiddenSymbolsRegExp, e.context.forbiddenSymbolsTooltip);
|
|
11219
|
-
return i === $.FOLDER ? /* @__PURE__ */
|
|
11228
|
+
return i === $.FOLDER ? /* @__PURE__ */ G(k, {
|
|
11220
11229
|
name: e.data.name,
|
|
11221
11230
|
shared: p,
|
|
11222
11231
|
sharedIndicatorClassName: g,
|
|
@@ -11224,7 +11233,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
11224
11233
|
hideTooltip: h,
|
|
11225
11234
|
isInvalidName: !!w,
|
|
11226
11235
|
tooltipContent: w
|
|
11227
|
-
}) : /* @__PURE__ */
|
|
11236
|
+
}) : /* @__PURE__ */ G(D, {
|
|
11228
11237
|
name: e.data.name,
|
|
11229
11238
|
shared: p,
|
|
11230
11239
|
sharedIndicatorClassName: g,
|
|
@@ -11242,7 +11251,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
11242
11251
|
suppressSizeToFit: !0,
|
|
11243
11252
|
cellRenderer: (e) => {
|
|
11244
11253
|
let t = e.context?.disabledRowIds?.has(e.data?.path) ?? !1;
|
|
11245
|
-
return /* @__PURE__ */
|
|
11254
|
+
return /* @__PURE__ */ G(w, {
|
|
11246
11255
|
...e,
|
|
11247
11256
|
hideTooltip: t
|
|
11248
11257
|
});
|
|
@@ -11252,7 +11261,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
|
|
|
11252
11261
|
options: n
|
|
11253
11262
|
},
|
|
11254
11263
|
filterValueGetter: (e) => {
|
|
11255
|
-
let r = e.data[e.colDef.field || ""], i =
|
|
11264
|
+
let r = e.data[e.colDef.field || ""], i = Te(r);
|
|
11256
11265
|
return i ? new Intl.DateTimeFormat(t || x, n || b).format(i) : "";
|
|
11257
11266
|
}
|
|
11258
11267
|
}), gi = (e) => ({
|
|
@@ -11287,10 +11296,10 @@ function vi({ userColumnDefs: e, filterable: t, dateLocale: n, dateOptions: r, e
|
|
|
11287
11296
|
minWidth: 200,
|
|
11288
11297
|
cellRenderer: (e) => {
|
|
11289
11298
|
let t = e.context?.disabledRowIds?.has(e.data.path) ?? !1, n = e.data.path;
|
|
11290
|
-
return e.context?.hideSearchPathItemName && (n = e.data.parentPath ? e.data.parentPath : n.replace(/\/[^/]+\/?$/, "") || "/"), !u || !l ? /* @__PURE__ */
|
|
11299
|
+
return e.context?.hideSearchPathItemName && (n = e.data.parentPath ? e.data.parentPath : n.replace(/\/[^/]+\/?$/, "") || "/"), !u || !l ? /* @__PURE__ */ G(L, {
|
|
11291
11300
|
text: n,
|
|
11292
11301
|
hideTooltip: t
|
|
11293
|
-
}) : /* @__PURE__ */
|
|
11302
|
+
}) : /* @__PURE__ */ G(L, {
|
|
11294
11303
|
text: n.replace(u, l),
|
|
11295
11304
|
hideTooltip: t
|
|
11296
11305
|
});
|
|
@@ -11356,7 +11365,7 @@ var yi = () => {
|
|
|
11356
11365
|
e[Z.AddSibling] && c.nodeType === $.FOLDER && S.push({
|
|
11357
11366
|
key: "addSibling",
|
|
11358
11367
|
label: e[Z.AddSibling],
|
|
11359
|
-
icon: /* @__PURE__ */
|
|
11368
|
+
icon: /* @__PURE__ */ G(nn, {
|
|
11360
11369
|
width: X.size,
|
|
11361
11370
|
height: X.size,
|
|
11362
11371
|
className: "text-secondary"
|
|
@@ -11365,7 +11374,7 @@ var yi = () => {
|
|
|
11365
11374
|
}), e[Z.AddChild] && c.nodeType === $.FOLDER && !C && S.push({
|
|
11366
11375
|
key: "addChild",
|
|
11367
11376
|
label: e[Z.AddChild],
|
|
11368
|
-
icon: /* @__PURE__ */
|
|
11377
|
+
icon: /* @__PURE__ */ G(tn, {
|
|
11369
11378
|
width: X.size,
|
|
11370
11379
|
height: X.size,
|
|
11371
11380
|
className: "text-secondary"
|
|
@@ -11377,7 +11386,7 @@ var yi = () => {
|
|
|
11377
11386
|
}), e[Z.OpenInNewTab] && typeof h == "function" && c.nodeType === $.ITEM && !C && S.push({
|
|
11378
11387
|
key: Z.OpenInNewTab,
|
|
11379
11388
|
label: e[Z.OpenInNewTab],
|
|
11380
|
-
icon: /* @__PURE__ */
|
|
11389
|
+
icon: /* @__PURE__ */ G(He, {
|
|
11381
11390
|
...X,
|
|
11382
11391
|
className: "text-secondary"
|
|
11383
11392
|
}),
|
|
@@ -11387,7 +11396,7 @@ var yi = () => {
|
|
|
11387
11396
|
e[Z.Duplicate] && w && !C && S.push({
|
|
11388
11397
|
key: Z.Duplicate,
|
|
11389
11398
|
label: e[Z.Duplicate],
|
|
11390
|
-
icon: /* @__PURE__ */
|
|
11399
|
+
icon: /* @__PURE__ */ G(Re, {
|
|
11391
11400
|
...X,
|
|
11392
11401
|
className: "text-secondary"
|
|
11393
11402
|
}),
|
|
@@ -11395,7 +11404,7 @@ var yi = () => {
|
|
|
11395
11404
|
}), e[Z.Copy] && !C && S.push({
|
|
11396
11405
|
key: Z.Copy,
|
|
11397
11406
|
label: e[Z.Copy],
|
|
11398
|
-
icon: /* @__PURE__ */
|
|
11407
|
+
icon: /* @__PURE__ */ G(rn, {
|
|
11399
11408
|
width: X.size,
|
|
11400
11409
|
height: X.size,
|
|
11401
11410
|
className: "text-secondary"
|
|
@@ -11404,7 +11413,7 @@ var yi = () => {
|
|
|
11404
11413
|
}), e[Z.Move] && !C && S.push({
|
|
11405
11414
|
key: Z.Move,
|
|
11406
11415
|
label: e[Z.Move],
|
|
11407
|
-
icon: /* @__PURE__ */
|
|
11416
|
+
icon: /* @__PURE__ */ G(an, {
|
|
11408
11417
|
width: X.size,
|
|
11409
11418
|
height: X.size,
|
|
11410
11419
|
className: "text-secondary"
|
|
@@ -11413,7 +11422,7 @@ var yi = () => {
|
|
|
11413
11422
|
}), e[Z.Download] && !C && S.push({
|
|
11414
11423
|
key: Z.Download,
|
|
11415
11424
|
label: e[Z.Download],
|
|
11416
|
-
icon: /* @__PURE__ */
|
|
11425
|
+
icon: /* @__PURE__ */ G(Ve, {
|
|
11417
11426
|
...X,
|
|
11418
11427
|
className: "text-secondary"
|
|
11419
11428
|
}),
|
|
@@ -11421,7 +11430,7 @@ var yi = () => {
|
|
|
11421
11430
|
}), e[Z.ManagePermissions] && typeof p == "function" && c.nodeType === $.FOLDER && !C && S.push({
|
|
11422
11431
|
key: Z.ManagePermissions,
|
|
11423
11432
|
label: e[Z.ManagePermissions],
|
|
11424
|
-
icon: /* @__PURE__ */
|
|
11433
|
+
icon: /* @__PURE__ */ G(He, {
|
|
11425
11434
|
...X,
|
|
11426
11435
|
className: "text-secondary"
|
|
11427
11436
|
}),
|
|
@@ -11431,7 +11440,7 @@ var yi = () => {
|
|
|
11431
11440
|
e[Z.Preview] && typeof m == "function" && c.nodeType === $.ITEM && D && !C && S.push({
|
|
11432
11441
|
key: Z.Preview,
|
|
11433
11442
|
label: e[Z.Preview],
|
|
11434
|
-
icon: /* @__PURE__ */
|
|
11443
|
+
icon: /* @__PURE__ */ G(Ue, {
|
|
11435
11444
|
...X,
|
|
11436
11445
|
className: "text-secondary"
|
|
11437
11446
|
}),
|
|
@@ -11441,7 +11450,7 @@ var yi = () => {
|
|
|
11441
11450
|
e[Z.Delete] && O && S.push({
|
|
11442
11451
|
key: Z.Delete,
|
|
11443
11452
|
label: e[Z.Delete],
|
|
11444
|
-
icon: /* @__PURE__ */
|
|
11453
|
+
icon: /* @__PURE__ */ G($e, {
|
|
11445
11454
|
...X,
|
|
11446
11455
|
className: "text-secondary"
|
|
11447
11456
|
}),
|
|
@@ -11451,7 +11460,7 @@ var yi = () => {
|
|
|
11451
11460
|
return e[Z.Rename] && k && O && S.push({
|
|
11452
11461
|
key: Z.Rename,
|
|
11453
11462
|
label: e[Z.Rename],
|
|
11454
|
-
icon: /* @__PURE__ */
|
|
11463
|
+
icon: /* @__PURE__ */ G(Ze, {
|
|
11455
11464
|
...X,
|
|
11456
11465
|
className: "text-secondary"
|
|
11457
11466
|
}),
|
|
@@ -11459,7 +11468,7 @@ var yi = () => {
|
|
|
11459
11468
|
}), e[Z.Info] && c.nodeType === $.ITEM && !C && S.push({
|
|
11460
11469
|
key: Z.Info,
|
|
11461
11470
|
label: e[Z.Info],
|
|
11462
|
-
icon: /* @__PURE__ */
|
|
11471
|
+
icon: /* @__PURE__ */ G(Xe, {
|
|
11463
11472
|
...X,
|
|
11464
11473
|
className: "text-secondary"
|
|
11465
11474
|
}),
|
|
@@ -11467,7 +11476,7 @@ var yi = () => {
|
|
|
11467
11476
|
}), e[Z.Unshare] && d?.includes(c.path) && S.push({
|
|
11468
11477
|
key: Z.Unshare,
|
|
11469
11478
|
label: e[Z.Unshare],
|
|
11470
|
-
icon: /* @__PURE__ */
|
|
11479
|
+
icon: /* @__PURE__ */ G(on, {
|
|
11471
11480
|
width: X.size,
|
|
11472
11481
|
height: X.size,
|
|
11473
11482
|
className: "text-secondary"
|
|
@@ -11476,7 +11485,7 @@ var yi = () => {
|
|
|
11476
11485
|
}), e[Z.RemoveAccess] && f?.has(c.path) && u && S.push({
|
|
11477
11486
|
key: Z.RemoveAccess,
|
|
11478
11487
|
label: e[Z.RemoveAccess],
|
|
11479
|
-
icon: /* @__PURE__ */
|
|
11488
|
+
icon: /* @__PURE__ */ G(q, {
|
|
11480
11489
|
...X,
|
|
11481
11490
|
className: "text-secondary"
|
|
11482
11491
|
}),
|
|
@@ -11521,15 +11530,15 @@ var yi = () => {
|
|
|
11521
11530
|
i?.(e), o(fn.Tree);
|
|
11522
11531
|
}, [i])
|
|
11523
11532
|
};
|
|
11524
|
-
}, Si = (e) => /* @__PURE__ */
|
|
11533
|
+
}, Si = (e) => /* @__PURE__ */ G(Ir, {
|
|
11525
11534
|
...e,
|
|
11526
|
-
children: /* @__PURE__ */
|
|
11535
|
+
children: /* @__PURE__ */ G(Ci, {})
|
|
11527
11536
|
}), Ci = () => {
|
|
11528
|
-
let { managerLabel: e, className: t, items: r, rootItem: i, filesLoading: a, treeOptions: s, showNavigationPanel: d, navigationPanelOptions: f, gridOptions: p, toolbarOptions: m, bulkActionsToolbarOptions: h, deleteConfirmationOptions: v, destinationFolderPopupOptions: y, conflictResolutionPopupOptions: b, compactViewWidthBreakpoint: x = Mn, customBreakpointRef: S, sharedByMePaths: C, allowedFileTypes: w, maxSelectableFileSize: T, areHiddenFilesVisible: E, toggleHiddenFilesVisibility: D, isTreeCollapsed: O, toggleTreeCollapse: k, currentPath: A, gridRows: j, selectedPaths: M, selectedFiles: N, clearSelection: F, setSelectedPaths: I, effectiveSearchValue: L, handleBreadcrumbItemClick: R, handleSearchChange: ee, handleTreeItemClick: B, handleTableRowClick:
|
|
11529
|
-
onGridAddSibling:
|
|
11530
|
-
onGridAddChild:
|
|
11531
|
-
onTreeAddSibling:
|
|
11532
|
-
onTreeAddChild:
|
|
11537
|
+
let { managerLabel: e, className: t, items: r, rootItem: i, filesLoading: a, treeOptions: s, showNavigationPanel: d, navigationPanelOptions: f, gridOptions: p, toolbarOptions: m, bulkActionsToolbarOptions: h, deleteConfirmationOptions: v, destinationFolderPopupOptions: y, conflictResolutionPopupOptions: b, compactViewWidthBreakpoint: x = Mn, customBreakpointRef: S, sharedByMePaths: C, allowedFileTypes: w, maxSelectableFileSize: T, areHiddenFilesVisible: E, toggleHiddenFilesVisibility: D, isTreeCollapsed: O, toggleTreeCollapse: k, currentPath: A, gridRows: j, selectedPaths: M, selectedFiles: N, clearSelection: F, setSelectedPaths: I, effectiveSearchValue: L, handleBreadcrumbItemClick: R, handleSearchChange: ee, handleTreeItemClick: B, handleTableRowClick: V, handleSelectionClick: ne, onGridApiChange: re, handleOpenDestinationFolderPopup: ae, handleCloseDestinationFolderPopup: oe, openDestinationFolderPopup: se, destinationFolderMode: ce, handleSetCopiedFiles: H, handleSetMovedFiles: le, handleDuplicate: ue, handleCopyTo: de, handleMoveTo: fe, handleGridAddSibling: pe, handleGridAddChild: me, handleTreeAddSibling: he, handleTreeAddChild: ge, handleDownloadFiles: _e, openDeleteConfirmation: ve, closeDeleteConfirmation: ye, confirmDelete: be, deleteConfirmationOpen: xe, itemsToDelete: Se, renamedPath: Ce, renamedItem: we, onRename: Te, onRenameSave: Ee, onRenameCancel: Oe, onRenameValidate: ke, createdFolderPath: Ae, forbiddenSymbolsRegExp: je, forbiddenSymbolsTooltip: U, getDisplayName: W, isDragging: Me, isDraggingOverWindow: Ne, handleDragEnter: Pe, handleDragLeave: Fe, handleDragOver: Ie, handleDrop: Le, onUploadFiles: ze, onValidateUpload: Be, maxFileSize: Ue, newActions: We, isNewButtonVisible: Ge, isNewButtonDisabled: qe, newFolderTempId: Je, cancelFolderCreation: Ye, saveFolderCreation: Xe, validateFolderName: Qe, startFolderCreation: et, conflictingFiles: tt, conflictResolutionOpen: nt, handleConflictReplace: rt, handleConflictDuplicate: it, handleConflictCancel: at, handleConflictDecideForEach: ot, uploadConflictingFiles: st, uploadConflictResolutionOpen: ct, handleUploadConflictReplace: lt, handleUploadConflictDuplicate: ut, handleUploadConflictCancel: dt, handleUploadConflictDecideForEach: ft, openMetadataPopup: pt, fileMetadataPopupOptions: mt, isMetadataPopupOpen: ht, selectedFileForMetadata: gt, closeMetadataPopup: _t, onUnshareFiles: vt, onRemoveFilesAccess: yt, actionsRef: bt, searchInProgress: xt, isSearchMode: St, emptyStateIcon: Ct, emptyStateTitle: wt = "You don't have any files", emptyStateDescription: Tt = "Upload or drag and drop files", sharedWithMeIds: J, onFolderPopupPathChange: Et, onManagePermissions: Y, onPreview: Dt, onOpenInNewTab: Ot, previewExtensions: kt, isRenameFileAvailable: At, isDuplicateFolderAvailable: jt, getDisabledTooltip: Mt, fileTooLargeTooltip: Nt, unsupportedFileTypeTooltip: Pt, gridClassName: Ft, nonClickableTableColumns: It, hideSearchPathItemName: Lt, showHiddenFileSwitcherInDestinationPopup: Rt, showCreateFolderButtonInDestinationPopup: zt, newFolderDefaultName: Bt } = yi(), { width: Vt = Sn, header: Ht = Cn, containerClassName: Ut = yn, additionalButtons: Wt, ...Gt } = s ?? {}, [Kt, qt] = u(Vt), { renameTriggerView: Jt, onGridRename: Yt, onTreeRename: Xt } = Rn({ onRename: Te }), { createFolderTriggerView: Zt, onGridCreateSiblingFolder: Qt, onTreeCreateSiblingFolder: en, onGridCreateChildFolder: sn, onTreeCreateChildFolder: cn } = xi({
|
|
11538
|
+
onGridAddSibling: pe,
|
|
11539
|
+
onGridAddChild: me,
|
|
11540
|
+
onTreeAddSibling: he,
|
|
11541
|
+
onTreeAddChild: ge
|
|
11533
11542
|
}), Q = l(null), ln = (e) => {
|
|
11534
11543
|
Q.current === null && (Q.current = requestAnimationFrame(() => {
|
|
11535
11544
|
qt(e), Q.current = null;
|
|
@@ -11548,11 +11557,11 @@ var yi = () => {
|
|
|
11548
11557
|
j,
|
|
11549
11558
|
Jn
|
|
11550
11559
|
]), Xn = n((e) => {
|
|
11551
|
-
let t = [], n = [], r = !e.parentPath, i =
|
|
11560
|
+
let t = [], n = [], r = !e.parentPath, i = je?.test(e.name);
|
|
11552
11561
|
return s?.actionLabels && (s.actionLabels[Z.AddSibling] && e.nodeType === $.FOLDER && !r && t.push({
|
|
11553
11562
|
key: "addSibling",
|
|
11554
11563
|
label: s.actionLabels[Z.AddSibling],
|
|
11555
|
-
icon: /* @__PURE__ */
|
|
11564
|
+
icon: /* @__PURE__ */ G(nn, {
|
|
11556
11565
|
width: X.size,
|
|
11557
11566
|
height: X.size,
|
|
11558
11567
|
className: "text-secondary"
|
|
@@ -11561,7 +11570,7 @@ var yi = () => {
|
|
|
11561
11570
|
}), s.actionLabels[Z.AddChild] && e.nodeType === $.FOLDER && !i && t.push({
|
|
11562
11571
|
key: "addChild",
|
|
11563
11572
|
label: s.actionLabels[Z.AddChild],
|
|
11564
|
-
icon: /* @__PURE__ */
|
|
11573
|
+
icon: /* @__PURE__ */ G(tn, {
|
|
11565
11574
|
width: X.size,
|
|
11566
11575
|
height: X.size,
|
|
11567
11576
|
className: "text-secondary"
|
|
@@ -11570,45 +11579,45 @@ var yi = () => {
|
|
|
11570
11579
|
}), s.actionLabels[Z.Duplicate] && !r && !i && n.push({
|
|
11571
11580
|
key: "duplicate",
|
|
11572
11581
|
label: s.actionLabels[Z.Duplicate],
|
|
11573
|
-
icon: /* @__PURE__ */
|
|
11582
|
+
icon: /* @__PURE__ */ G(Re, {
|
|
11574
11583
|
...X,
|
|
11575
11584
|
className: "text-secondary"
|
|
11576
11585
|
}),
|
|
11577
|
-
onClick: () =>
|
|
11586
|
+
onClick: () => ue([e])
|
|
11578
11587
|
}), s.actionLabels[Z.Copy] && !r && !i && n.push({
|
|
11579
11588
|
key: un.Copy,
|
|
11580
11589
|
label: s.actionLabels[Z.Copy],
|
|
11581
|
-
icon: /* @__PURE__ */
|
|
11590
|
+
icon: /* @__PURE__ */ G(rn, {
|
|
11582
11591
|
width: X.size,
|
|
11583
11592
|
height: X.size,
|
|
11584
11593
|
className: "text-secondary"
|
|
11585
11594
|
}),
|
|
11586
11595
|
onClick: () => {
|
|
11587
|
-
|
|
11596
|
+
H([e]), ae(un.Copy);
|
|
11588
11597
|
}
|
|
11589
11598
|
}), s.actionLabels[Z.Move] && !r && !i && n.push({
|
|
11590
11599
|
key: un.Move,
|
|
11591
11600
|
label: s.actionLabels[Z.Move],
|
|
11592
|
-
icon: /* @__PURE__ */
|
|
11601
|
+
icon: /* @__PURE__ */ G(an, {
|
|
11593
11602
|
width: X.size,
|
|
11594
11603
|
height: X.size,
|
|
11595
11604
|
className: "text-secondary"
|
|
11596
11605
|
}),
|
|
11597
11606
|
onClick: () => {
|
|
11598
|
-
|
|
11607
|
+
le([e]), ae(un.Move);
|
|
11599
11608
|
}
|
|
11600
11609
|
}), s.actionLabels[Z.Download] && !r && !i && n.push({
|
|
11601
11610
|
key: "download",
|
|
11602
11611
|
label: s.actionLabels[Z.Download],
|
|
11603
|
-
icon: /* @__PURE__ */
|
|
11612
|
+
icon: /* @__PURE__ */ G(Ve, {
|
|
11604
11613
|
...X,
|
|
11605
11614
|
className: "text-secondary"
|
|
11606
11615
|
}),
|
|
11607
|
-
onClick: () =>
|
|
11616
|
+
onClick: () => _e([e])
|
|
11608
11617
|
}), s.actionLabels[Z.ManagePermissions] && typeof Y == "function" && e.nodeType === $.FOLDER && !r && n.push({
|
|
11609
11618
|
key: Z.ManagePermissions,
|
|
11610
11619
|
label: s.actionLabels[Z.ManagePermissions],
|
|
11611
|
-
icon: /* @__PURE__ */
|
|
11620
|
+
icon: /* @__PURE__ */ G(He, {
|
|
11612
11621
|
...X,
|
|
11613
11622
|
className: "text-secondary"
|
|
11614
11623
|
}),
|
|
@@ -11616,15 +11625,15 @@ var yi = () => {
|
|
|
11616
11625
|
}), s.actionLabels[Z.Delete] && e.permissions?.includes(Fn.WRITE) && !r && n.push({
|
|
11617
11626
|
key: "delete",
|
|
11618
11627
|
label: s.actionLabels[Z.Delete],
|
|
11619
|
-
icon: /* @__PURE__ */
|
|
11628
|
+
icon: /* @__PURE__ */ G($e, {
|
|
11620
11629
|
...X,
|
|
11621
11630
|
className: "text-secondary"
|
|
11622
11631
|
}),
|
|
11623
|
-
onClick: () =>
|
|
11632
|
+
onClick: () => ve([e], e.parentPath ?? "")
|
|
11624
11633
|
}), s.actionLabels[Z.Rename] && !r && n.push({
|
|
11625
11634
|
key: "rename",
|
|
11626
11635
|
label: s.actionLabels[Z.Rename],
|
|
11627
|
-
icon: /* @__PURE__ */
|
|
11636
|
+
icon: /* @__PURE__ */ G(Ze, {
|
|
11628
11637
|
...X,
|
|
11629
11638
|
className: "text-secondary"
|
|
11630
11639
|
}),
|
|
@@ -11632,7 +11641,7 @@ var yi = () => {
|
|
|
11632
11641
|
}), s.actionLabels[Z.Unshare] && J?.includes(e.path) && !r && n.push({
|
|
11633
11642
|
key: "unshare",
|
|
11634
11643
|
label: s.actionLabels[Z.Unshare],
|
|
11635
|
-
icon: /* @__PURE__ */
|
|
11644
|
+
icon: /* @__PURE__ */ G(on, {
|
|
11636
11645
|
width: X.size,
|
|
11637
11646
|
height: X.size,
|
|
11638
11647
|
className: "text-secondary"
|
|
@@ -11641,7 +11650,7 @@ var yi = () => {
|
|
|
11641
11650
|
}), s.actionLabels[Z.RemoveAccess] && C?.has(e.path) && !r && n.push({
|
|
11642
11651
|
key: Z.RemoveAccess,
|
|
11643
11652
|
label: s.actionLabels[Z.RemoveAccess],
|
|
11644
|
-
icon: /* @__PURE__ */
|
|
11653
|
+
icon: /* @__PURE__ */ G(q, {
|
|
11645
11654
|
...X,
|
|
11646
11655
|
className: "text-secondary"
|
|
11647
11656
|
}),
|
|
@@ -11656,65 +11665,65 @@ var yi = () => {
|
|
|
11656
11665
|
] : n;
|
|
11657
11666
|
}, [
|
|
11658
11667
|
s?.actionLabels,
|
|
11659
|
-
|
|
11668
|
+
je,
|
|
11660
11669
|
Y,
|
|
11661
|
-
|
|
11662
|
-
|
|
11670
|
+
ue,
|
|
11671
|
+
H,
|
|
11663
11672
|
ae,
|
|
11664
|
-
|
|
11665
|
-
|
|
11673
|
+
le,
|
|
11674
|
+
_e,
|
|
11666
11675
|
Xt,
|
|
11667
11676
|
vt,
|
|
11668
11677
|
yt,
|
|
11669
11678
|
J,
|
|
11670
11679
|
C,
|
|
11671
|
-
|
|
11680
|
+
ve,
|
|
11672
11681
|
cn,
|
|
11673
11682
|
en
|
|
11674
11683
|
]), Zn = c(() => {
|
|
11675
11684
|
let e = /* @__PURE__ */ new Set();
|
|
11676
11685
|
return N.forEach((t, n) => e.add(n)), e;
|
|
11677
11686
|
}, [N]), Qn = n((e, t) => {
|
|
11678
|
-
I(e),
|
|
11679
|
-
}, [
|
|
11687
|
+
I(e), ne?.(t);
|
|
11688
|
+
}, [ne, I]), $n = fi({
|
|
11680
11689
|
selectedFiles: N,
|
|
11681
11690
|
actionLabels: h?.actionLabels,
|
|
11682
|
-
onDuplicate:
|
|
11691
|
+
onDuplicate: ue,
|
|
11683
11692
|
onCopy: (e) => {
|
|
11684
|
-
|
|
11693
|
+
H(e), ae(un.Copy);
|
|
11685
11694
|
},
|
|
11686
11695
|
onMove: (e) => {
|
|
11687
|
-
|
|
11696
|
+
le(e), ae(un.Move);
|
|
11688
11697
|
},
|
|
11689
|
-
onDownload:
|
|
11690
|
-
onDelete:
|
|
11698
|
+
onDownload: _e,
|
|
11699
|
+
onDelete: ve,
|
|
11691
11700
|
onUnshare: vt,
|
|
11692
11701
|
onRemoveAccess: yt,
|
|
11693
11702
|
getCurrentFolderPath: () => A ?? "/",
|
|
11694
11703
|
sharedWithMeIds: J,
|
|
11695
11704
|
sharedByMePaths: C,
|
|
11696
11705
|
onClearSelection: F,
|
|
11697
|
-
forbiddenSymbolsRegExp:
|
|
11706
|
+
forbiddenSymbolsRegExp: je
|
|
11698
11707
|
}), er = n((e) => {
|
|
11699
|
-
m?.onTabChange?.(e),
|
|
11700
|
-
}, [m,
|
|
11708
|
+
m?.onTabChange?.(e), Ye();
|
|
11709
|
+
}, [m, Ye]), nr = n(() => m && M.size === 0 ? /* @__PURE__ */ K("div", {
|
|
11701
11710
|
className: gn,
|
|
11702
11711
|
role: "toolbar",
|
|
11703
11712
|
"aria-label": "File Manager Toolbar",
|
|
11704
|
-
children: [e, /* @__PURE__ */
|
|
11713
|
+
children: [e, /* @__PURE__ */ G(Zr, {
|
|
11705
11714
|
...m,
|
|
11706
11715
|
onTabChange: er,
|
|
11707
11716
|
areHiddenFilesVisible: E,
|
|
11708
11717
|
onToggleHiddenFiles: D,
|
|
11709
|
-
isNewButtonVisible:
|
|
11710
|
-
isNewButtonDisabled:
|
|
11711
|
-
newButtonDropdownItems:
|
|
11718
|
+
isNewButtonVisible: Ge,
|
|
11719
|
+
isNewButtonDisabled: qe,
|
|
11720
|
+
newButtonDropdownItems: We
|
|
11712
11721
|
})]
|
|
11713
|
-
}) : M.size > 0 && h ? /* @__PURE__ */
|
|
11722
|
+
}) : M.size > 0 && h ? /* @__PURE__ */ G("div", {
|
|
11714
11723
|
className: gn,
|
|
11715
11724
|
role: "toolbar",
|
|
11716
11725
|
"aria-label": "File Manager Toolbar",
|
|
11717
|
-
children: /* @__PURE__ */
|
|
11726
|
+
children: /* @__PURE__ */ G(Wr, {
|
|
11718
11727
|
...h,
|
|
11719
11728
|
selectedCount: M.size,
|
|
11720
11729
|
onClearSelection: F,
|
|
@@ -11729,15 +11738,15 @@ var yi = () => {
|
|
|
11729
11738
|
E,
|
|
11730
11739
|
D,
|
|
11731
11740
|
m,
|
|
11741
|
+
Ge,
|
|
11742
|
+
qe,
|
|
11732
11743
|
We,
|
|
11733
|
-
Ke,
|
|
11734
|
-
Ue,
|
|
11735
11744
|
e
|
|
11736
11745
|
]);
|
|
11737
11746
|
o(bt, () => ({ createFolder: et }), [et]);
|
|
11738
|
-
let ir = n(() => Gn ? null : /* @__PURE__ */
|
|
11747
|
+
let ir = n(() => Gn ? null : /* @__PURE__ */ G("div", {
|
|
11739
11748
|
className: "min-h-0 min-w-0 h-full flex-none",
|
|
11740
|
-
children: /* @__PURE__ */
|
|
11749
|
+
children: /* @__PURE__ */ G(_, {
|
|
11741
11750
|
defaultWidth: Kt,
|
|
11742
11751
|
width: Kt,
|
|
11743
11752
|
onResizeStop: qt,
|
|
@@ -11745,7 +11754,7 @@ var yi = () => {
|
|
|
11745
11754
|
minWidth: On,
|
|
11746
11755
|
maxWidth: kn,
|
|
11747
11756
|
enabled: !O,
|
|
11748
|
-
children: /* @__PURE__ */
|
|
11757
|
+
children: /* @__PURE__ */ G(g, {
|
|
11749
11758
|
width: Kt,
|
|
11750
11759
|
title: Ht,
|
|
11751
11760
|
ariaLabel: "File Manager Tree Navigation",
|
|
@@ -11754,25 +11763,25 @@ var yi = () => {
|
|
|
11754
11763
|
additionalButtons: Wt,
|
|
11755
11764
|
isOpened: !O,
|
|
11756
11765
|
onToggle: k,
|
|
11757
|
-
children: /* @__PURE__ */
|
|
11766
|
+
children: /* @__PURE__ */ G(di, {
|
|
11758
11767
|
...Gt,
|
|
11759
11768
|
items: r,
|
|
11760
11769
|
rootItemPath: i?.path,
|
|
11761
11770
|
rootItemLabel: i?.label,
|
|
11762
11771
|
selectedPath: A,
|
|
11763
11772
|
sharedByMePaths: C,
|
|
11764
|
-
forbiddenSymbolsRegExp:
|
|
11765
|
-
forbiddenSymbolsTooltip:
|
|
11773
|
+
forbiddenSymbolsRegExp: je,
|
|
11774
|
+
forbiddenSymbolsTooltip: U,
|
|
11766
11775
|
onItemClick: B,
|
|
11767
11776
|
areHiddenFilesVisible: E,
|
|
11768
11777
|
getContextMenuItems: Xn,
|
|
11769
|
-
renamedPath: Jt === dn.Tree ?
|
|
11770
|
-
onRenameSave:
|
|
11771
|
-
onRenameCancel:
|
|
11772
|
-
onRenameValidate:
|
|
11773
|
-
createdFolderPath: Zt === fn.Tree ?
|
|
11774
|
-
onCreateFolderCancel:
|
|
11775
|
-
onCreateFolderSave:
|
|
11778
|
+
renamedPath: Jt === dn.Tree ? Ce : void 0,
|
|
11779
|
+
onRenameSave: Ee,
|
|
11780
|
+
onRenameCancel: Oe,
|
|
11781
|
+
onRenameValidate: ke,
|
|
11782
|
+
createdFolderPath: Zt === fn.Tree ? Ae : null,
|
|
11783
|
+
onCreateFolderCancel: Ye,
|
|
11784
|
+
onCreateFolderSave: Xe,
|
|
11776
11785
|
newFolderDefaultName: Bt
|
|
11777
11786
|
})
|
|
11778
11787
|
})
|
|
@@ -11791,33 +11800,33 @@ var yi = () => {
|
|
|
11791
11800
|
i?.label,
|
|
11792
11801
|
A,
|
|
11793
11802
|
C,
|
|
11794
|
-
|
|
11795
|
-
|
|
11803
|
+
je,
|
|
11804
|
+
U,
|
|
11796
11805
|
B,
|
|
11797
11806
|
E,
|
|
11798
11807
|
Xn,
|
|
11799
11808
|
Jt,
|
|
11800
11809
|
Zt,
|
|
11801
|
-
|
|
11802
|
-
|
|
11803
|
-
De,
|
|
11810
|
+
Ce,
|
|
11811
|
+
Ee,
|
|
11804
11812
|
Oe,
|
|
11805
11813
|
ke,
|
|
11806
|
-
|
|
11814
|
+
Ae,
|
|
11807
11815
|
Ye,
|
|
11816
|
+
Xe,
|
|
11808
11817
|
Bt
|
|
11809
11818
|
]), ar = bi({
|
|
11810
11819
|
actionLabels: p?.actionLabels,
|
|
11811
|
-
onDuplicate: (e) =>
|
|
11820
|
+
onDuplicate: (e) => ue([e]),
|
|
11812
11821
|
onCopy: (e) => {
|
|
11813
|
-
|
|
11822
|
+
H([e]), ae(un.Copy);
|
|
11814
11823
|
},
|
|
11815
11824
|
onMove: (e) => {
|
|
11816
|
-
|
|
11825
|
+
le([e]), ae(un.Move);
|
|
11817
11826
|
},
|
|
11818
|
-
onDownload: (e) =>
|
|
11827
|
+
onDownload: (e) => _e([e]),
|
|
11819
11828
|
onRename: Yt,
|
|
11820
|
-
onDelete: (e, t) =>
|
|
11829
|
+
onDelete: (e, t) => ve([e], t),
|
|
11821
11830
|
onInfo: (e) => pt(e),
|
|
11822
11831
|
onUnshare: (e) => vt?.([e]),
|
|
11823
11832
|
onRemoveAccess: (e) => yt?.([e]),
|
|
@@ -11829,7 +11838,7 @@ var yi = () => {
|
|
|
11829
11838
|
previewExtensions: kt,
|
|
11830
11839
|
isRenameFileAvailable: At,
|
|
11831
11840
|
isDuplicateFolderAvailable: jt,
|
|
11832
|
-
forbiddenSymbolsRegExp:
|
|
11841
|
+
forbiddenSymbolsRegExp: je,
|
|
11833
11842
|
onGridCreateSiblingFolder: Qt,
|
|
11834
11843
|
onGridCreateChildFolder: sn
|
|
11835
11844
|
}), or = n((e) => {
|
|
@@ -11852,18 +11861,18 @@ var yi = () => {
|
|
|
11852
11861
|
rootItemLabel: i?.label,
|
|
11853
11862
|
rootItemPath: i?.path
|
|
11854
11863
|
}), lr = n((e) => {
|
|
11855
|
-
e.colDef.colId === z || e.colDef.colId === An || e.colDef.colId === mn.Actions ||
|
|
11864
|
+
e.colDef.colId === z || e.colDef.colId === An || e.colDef.colId === mn.Actions || Ce && e.data?.path === Ce || e.data?.isTemporary || It && It.includes(e.colDef.colId) || e.data && V(e.data);
|
|
11856
11865
|
}, [
|
|
11857
|
-
|
|
11858
|
-
|
|
11866
|
+
Ce,
|
|
11867
|
+
V,
|
|
11859
11868
|
It
|
|
11860
|
-
]), ur = n(() => /* @__PURE__ */
|
|
11869
|
+
]), ur = n(() => /* @__PURE__ */ G(ie, {
|
|
11861
11870
|
title: wt,
|
|
11862
11871
|
description: Tt,
|
|
11863
11872
|
descriptionClassName: "text-sm",
|
|
11864
11873
|
className: "gap-3 size-full bg-layer-sunken border rounded border-primary",
|
|
11865
11874
|
titleClassName: "mt-2 !text-lg",
|
|
11866
|
-
icon: Ct || /* @__PURE__ */
|
|
11875
|
+
icon: Ct || /* @__PURE__ */ G(Ke, {
|
|
11867
11876
|
size: 100,
|
|
11868
11877
|
stroke: .5,
|
|
11869
11878
|
className: "text-secondary"
|
|
@@ -11872,7 +11881,7 @@ var yi = () => {
|
|
|
11872
11881
|
Tt,
|
|
11873
11882
|
Ct,
|
|
11874
11883
|
wt
|
|
11875
|
-
]), dr = c(() => (e) => e.path, []), fr = c(() => (0, $t.default)("min-h-[248px] overflow-auto md:min-h-[266px]",
|
|
11884
|
+
]), dr = c(() => (e) => e.path, []), fr = c(() => (0, $t.default)("min-h-[248px] overflow-auto md:min-h-[266px]", Me ? "border border-dashed border-info" : "", Ne && !Me ? "border border-dashed border-primary" : ""), [Me, Ne]), pr = c(() => ({
|
|
11876
11885
|
...Un.additionalGridOptions,
|
|
11877
11886
|
onCellClicked: lr,
|
|
11878
11887
|
headerHeight: jn,
|
|
@@ -11884,23 +11893,23 @@ var yi = () => {
|
|
|
11884
11893
|
floatingFilter: f?.searchable ? !1 : Un.additionalGridOptions?.defaultColDef?.floatingFilter
|
|
11885
11894
|
},
|
|
11886
11895
|
context: {
|
|
11887
|
-
cancelFolderCreation:
|
|
11888
|
-
saveFolderCreation:
|
|
11889
|
-
getDisplayName:
|
|
11890
|
-
onRenameCancel:
|
|
11891
|
-
onRenameSave:
|
|
11892
|
-
onRenameValidate:
|
|
11896
|
+
cancelFolderCreation: Ye,
|
|
11897
|
+
saveFolderCreation: Xe,
|
|
11898
|
+
getDisplayName: W,
|
|
11899
|
+
onRenameCancel: Oe,
|
|
11900
|
+
onRenameSave: Ee,
|
|
11901
|
+
onRenameValidate: ke,
|
|
11893
11902
|
renameTriggerView: Jt,
|
|
11894
|
-
validateFolderName:
|
|
11895
|
-
renamedItem:
|
|
11896
|
-
renamedPath:
|
|
11897
|
-
createdFolderPath:
|
|
11898
|
-
newFolderTempId:
|
|
11903
|
+
validateFolderName: Qe,
|
|
11904
|
+
renamedItem: we,
|
|
11905
|
+
renamedPath: Ce,
|
|
11906
|
+
createdFolderPath: Ae,
|
|
11907
|
+
newFolderTempId: Je,
|
|
11899
11908
|
sharedByMePaths: C,
|
|
11900
11909
|
selectedPaths: M,
|
|
11901
11910
|
disabledRowIds: Yn,
|
|
11902
|
-
forbiddenSymbolsRegExp:
|
|
11903
|
-
forbiddenSymbolsTooltip:
|
|
11911
|
+
forbiddenSymbolsRegExp: je,
|
|
11912
|
+
forbiddenSymbolsTooltip: U,
|
|
11904
11913
|
hideSearchPathItemName: Lt,
|
|
11905
11914
|
newFolderDefaultName: Bt,
|
|
11906
11915
|
filesLoading: a
|
|
@@ -11909,27 +11918,27 @@ var yi = () => {
|
|
|
11909
11918
|
Un.additionalGridOptions,
|
|
11910
11919
|
lr,
|
|
11911
11920
|
f?.searchable,
|
|
11912
|
-
Je,
|
|
11913
11921
|
Ye,
|
|
11914
|
-
|
|
11915
|
-
|
|
11916
|
-
Te,
|
|
11922
|
+
Xe,
|
|
11923
|
+
W,
|
|
11917
11924
|
Oe,
|
|
11925
|
+
Ee,
|
|
11926
|
+
ke,
|
|
11918
11927
|
Jt,
|
|
11919
|
-
|
|
11928
|
+
Qe,
|
|
11929
|
+
we,
|
|
11920
11930
|
Ce,
|
|
11921
|
-
|
|
11922
|
-
|
|
11923
|
-
qe,
|
|
11931
|
+
Ae,
|
|
11932
|
+
Je,
|
|
11924
11933
|
C,
|
|
11925
11934
|
M,
|
|
11926
11935
|
Yn,
|
|
11927
|
-
|
|
11928
|
-
|
|
11936
|
+
je,
|
|
11937
|
+
U,
|
|
11929
11938
|
Lt,
|
|
11930
11939
|
Bt,
|
|
11931
11940
|
a
|
|
11932
|
-
]), mr = c(() => j.length === 0 && !St && !a ? ur() : /* @__PURE__ */
|
|
11941
|
+
]), mr = c(() => j.length === 0 && !St && !a ? ur() : /* @__PURE__ */ G(te, {
|
|
11933
11942
|
columnDefs: cr,
|
|
11934
11943
|
rowData: j,
|
|
11935
11944
|
getRowId: dr,
|
|
@@ -11944,7 +11953,7 @@ var yi = () => {
|
|
|
11944
11953
|
additionalGridOptions: pr,
|
|
11945
11954
|
selectedRowIds: Zn,
|
|
11946
11955
|
onSelectionChange: Qn,
|
|
11947
|
-
wrapperBorder: !
|
|
11956
|
+
wrapperBorder: !Me && !Ne,
|
|
11948
11957
|
disabledRowIds: Yn,
|
|
11949
11958
|
allowDisabledContextMenu: Hn
|
|
11950
11959
|
}), [
|
|
@@ -11965,27 +11974,27 @@ var yi = () => {
|
|
|
11965
11974
|
pr,
|
|
11966
11975
|
Zn,
|
|
11967
11976
|
Qn,
|
|
11968
|
-
je,
|
|
11969
11977
|
Me,
|
|
11978
|
+
Ne,
|
|
11970
11979
|
Yn,
|
|
11971
11980
|
Hn
|
|
11972
11981
|
]);
|
|
11973
|
-
return /* @__PURE__ */
|
|
11982
|
+
return /* @__PURE__ */ G("section", {
|
|
11974
11983
|
ref: Wn,
|
|
11975
11984
|
className: "size-full",
|
|
11976
|
-
children: /* @__PURE__ */
|
|
11977
|
-
className:
|
|
11985
|
+
children: /* @__PURE__ */ K("div", {
|
|
11986
|
+
className: De(hn, {
|
|
11978
11987
|
"gap-3 pt-4": h && M.size > 0,
|
|
11979
11988
|
"gap-4 p-3 pt-4": Gn,
|
|
11980
11989
|
"gap-2 pt-2": Gn && h && M.size > 0
|
|
11981
11990
|
}, t),
|
|
11982
11991
|
children: [
|
|
11983
11992
|
nr(),
|
|
11984
|
-
/* @__PURE__ */
|
|
11985
|
-
className:
|
|
11986
|
-
children: [ir(), /* @__PURE__ */
|
|
11987
|
-
className:
|
|
11988
|
-
children: [d && /* @__PURE__ */
|
|
11993
|
+
/* @__PURE__ */ K("div", {
|
|
11994
|
+
className: De(_n, Ft),
|
|
11995
|
+
children: [ir(), /* @__PURE__ */ K("div", {
|
|
11996
|
+
className: De(vn, { "gap-3": Gn }),
|
|
11997
|
+
children: [d && /* @__PURE__ */ G(Xr, {
|
|
11989
11998
|
...f ?? {},
|
|
11990
11999
|
makeHref: (e) => e.join("/"),
|
|
11991
12000
|
path: A,
|
|
@@ -11996,15 +12005,15 @@ var yi = () => {
|
|
|
11996
12005
|
onSearchChange: ee,
|
|
11997
12006
|
isCompactView: Gn,
|
|
11998
12007
|
labelClassName: "dial-tiny-text"
|
|
11999
|
-
}), /* @__PURE__ */
|
|
12008
|
+
}), /* @__PURE__ */ K("section", {
|
|
12000
12009
|
role: "region",
|
|
12001
12010
|
"aria-label": "File Manager Grid View",
|
|
12002
|
-
className:
|
|
12003
|
-
onDragEnter:
|
|
12004
|
-
onDragLeave:
|
|
12005
|
-
onDragOver:
|
|
12006
|
-
onDrop:
|
|
12007
|
-
children: [mr, /* @__PURE__ */
|
|
12011
|
+
className: De(bn, "relative"),
|
|
12012
|
+
onDragEnter: Pe,
|
|
12013
|
+
onDragLeave: Fe,
|
|
12014
|
+
onDragOver: Ie,
|
|
12015
|
+
onDrop: Le,
|
|
12016
|
+
children: [mr, /* @__PURE__ */ G(Lr, {
|
|
12008
12017
|
disabledGridRowIds: Yn,
|
|
12009
12018
|
gridRows: j,
|
|
12010
12019
|
getDisabledTooltip: Mt,
|
|
@@ -12015,31 +12024,31 @@ var yi = () => {
|
|
|
12015
12024
|
})]
|
|
12016
12025
|
})]
|
|
12017
12026
|
}),
|
|
12018
|
-
/* @__PURE__ */
|
|
12027
|
+
/* @__PURE__ */ G(Gr, {
|
|
12019
12028
|
...v,
|
|
12020
|
-
open:
|
|
12021
|
-
itemsToDelete:
|
|
12022
|
-
onClose:
|
|
12023
|
-
onConfirm:
|
|
12029
|
+
open: xe,
|
|
12030
|
+
itemsToDelete: Se,
|
|
12031
|
+
onClose: ye,
|
|
12032
|
+
onConfirm: be
|
|
12024
12033
|
}),
|
|
12025
|
-
/* @__PURE__ */
|
|
12034
|
+
/* @__PURE__ */ G(Br, {
|
|
12026
12035
|
...y,
|
|
12027
|
-
open:
|
|
12036
|
+
open: se,
|
|
12028
12037
|
onClose: oe,
|
|
12029
12038
|
onConfirm: () => {
|
|
12030
12039
|
let e = y?.destinationFolderPath ?? "/";
|
|
12031
|
-
|
|
12040
|
+
ce === un.Copy ? de(e) : fe(e), oe();
|
|
12032
12041
|
},
|
|
12033
|
-
mode:
|
|
12042
|
+
mode: ce,
|
|
12034
12043
|
items: r,
|
|
12035
12044
|
rootItem: i,
|
|
12036
12045
|
gridOptions: {
|
|
12037
12046
|
columnDefs: cr.filter((e) => e.colId !== mn.Actions),
|
|
12038
12047
|
loading: a
|
|
12039
12048
|
},
|
|
12040
|
-
onUploadFiles:
|
|
12041
|
-
onValidateUpload:
|
|
12042
|
-
maxFileSize:
|
|
12049
|
+
onUploadFiles: ze,
|
|
12050
|
+
onValidateUpload: Be,
|
|
12051
|
+
maxFileSize: Ue,
|
|
12043
12052
|
path: y?.destinationFolderPath ?? y?.sourceFolder ?? A,
|
|
12044
12053
|
onPathChange: (e) => {
|
|
12045
12054
|
y?.setDestinationFolderPath?.(e);
|
|
@@ -12055,7 +12064,7 @@ var yi = () => {
|
|
|
12055
12064
|
showCreateFolderButton: zt,
|
|
12056
12065
|
hideSearchPathItemName: Lt
|
|
12057
12066
|
}),
|
|
12058
|
-
/* @__PURE__ */
|
|
12067
|
+
/* @__PURE__ */ G(In, {
|
|
12059
12068
|
...b,
|
|
12060
12069
|
open: nt,
|
|
12061
12070
|
onClose: at,
|
|
@@ -12064,7 +12073,7 @@ var yi = () => {
|
|
|
12064
12073
|
onDecideForEach: ot,
|
|
12065
12074
|
conflictingFiles: tt
|
|
12066
12075
|
}),
|
|
12067
|
-
/* @__PURE__ */
|
|
12076
|
+
/* @__PURE__ */ G(In, {
|
|
12068
12077
|
...b,
|
|
12069
12078
|
open: ct,
|
|
12070
12079
|
onClose: dt,
|
|
@@ -12073,7 +12082,7 @@ var yi = () => {
|
|
|
12073
12082
|
onDecideForEach: ft,
|
|
12074
12083
|
conflictingFiles: st
|
|
12075
12084
|
}),
|
|
12076
|
-
/* @__PURE__ */
|
|
12085
|
+
/* @__PURE__ */ G(ii, {
|
|
12077
12086
|
open: ht,
|
|
12078
12087
|
onClose: _t,
|
|
12079
12088
|
fileMetadata: mt?.fileMetadata ?? gt,
|
|
@@ -12090,9 +12099,12 @@ var yi = () => {
|
|
|
12090
12099
|
]
|
|
12091
12100
|
})
|
|
12092
12101
|
});
|
|
12093
|
-
}, wi = {
|
|
12102
|
+
}, wi = {
|
|
12103
|
+
divider: "_divider_1gs31_1",
|
|
12104
|
+
tree: "_tree_1gs31_17"
|
|
12105
|
+
}, Ti = ({ items: e, selectedPath: t, onSelectedPathChange: n, onCreateFolder: r, searchQuery: i, disabled: a = !1, createFolderLabel: o = "Create new folder", cancelCreatingFolderLabel: s = "Cancel", addSiblingFolderLabel: d = "Add sibling", addChildFolderLabel: f = "Add child", newFolderDefaultName: p = "New folder", noResultsLabel: m = "No folders match \"{query}\".", emptyFolderNameError: h = "Folder name cannot be empty.", invalidFolderNameError: g = "Folder name contains invalid characters.", duplicateFolderNameError: _ = "A folder with this name already exists.", rootLabel: v = "Organization", expandedPaths: y, onExpandedPathsChange: b, loadingPaths: x, styles: w = {} }) => {
|
|
12094
12106
|
let T = {
|
|
12095
|
-
...
|
|
12107
|
+
...je({ "--pft-divider": w.colors?.divider }),
|
|
12096
12108
|
...w.cssVars
|
|
12097
12109
|
}, [E, D] = u(() => new Set(t?.map((e, n) => Y(t.slice(0, n + 1))) ?? [])), O = y ?? E, k = (e) => {
|
|
12098
12110
|
let t = new Set(e);
|
|
@@ -12101,101 +12113,101 @@ var yi = () => {
|
|
|
12101
12113
|
z,
|
|
12102
12114
|
L,
|
|
12103
12115
|
e
|
|
12104
|
-
]), te = c(() => new Set(["", ...Et(B)]), [B]),
|
|
12116
|
+
]), te = c(() => new Set(["", ...Et(B)]), [B]), V = c(() => new Set(["", ...z ? te : O]), [
|
|
12105
12117
|
z,
|
|
12106
12118
|
te,
|
|
12107
12119
|
O
|
|
12108
|
-
]),
|
|
12120
|
+
]), ne = c(() => Ot(B), [B]), re = c(() => z && ne.length === 0 ? [] : [{
|
|
12109
12121
|
path: "",
|
|
12110
12122
|
name: v,
|
|
12111
12123
|
folderId: "",
|
|
12112
12124
|
nodeType: $.FOLDER,
|
|
12113
|
-
items:
|
|
12125
|
+
items: ne
|
|
12114
12126
|
}], [
|
|
12115
|
-
|
|
12127
|
+
ne,
|
|
12116
12128
|
v,
|
|
12117
12129
|
z
|
|
12118
12130
|
]), ie = A ? Y(A) : null, ae = {
|
|
12119
12131
|
empty: h,
|
|
12120
12132
|
invalid: g,
|
|
12121
12133
|
duplicate: _
|
|
12122
|
-
}, oe = (t) => jt(R && At(F, [], ae) == null ? F : p, Mt(e, t)),
|
|
12134
|
+
}, oe = (t) => jt(R && At(F, [], ae) == null ? F : p, Mt(e, t)), se = (e) => {
|
|
12123
12135
|
j(e), N(oe(e)), P.current = null;
|
|
12124
12136
|
let t = Y(e);
|
|
12125
12137
|
t && k(new Set(O).add(t));
|
|
12126
|
-
},
|
|
12138
|
+
}, ce = () => se(t ?? []), H = (e) => {
|
|
12127
12139
|
let t = Dt(e.path), n = [{
|
|
12128
12140
|
key: "add-child",
|
|
12129
12141
|
label: f,
|
|
12130
|
-
icon: /* @__PURE__ */
|
|
12142
|
+
icon: /* @__PURE__ */ G(Ye, {
|
|
12131
12143
|
size: S.SM,
|
|
12132
12144
|
"aria-hidden": !0,
|
|
12133
12145
|
stroke: C
|
|
12134
12146
|
}),
|
|
12135
|
-
onClick: () =>
|
|
12147
|
+
onClick: () => se(t)
|
|
12136
12148
|
}];
|
|
12137
12149
|
return e.path !== "" && n.push({
|
|
12138
12150
|
key: "add-sibling",
|
|
12139
12151
|
label: d,
|
|
12140
|
-
icon: /* @__PURE__ */
|
|
12152
|
+
icon: /* @__PURE__ */ G(Qe, {
|
|
12141
12153
|
size: S.SM,
|
|
12142
12154
|
"aria-hidden": !0,
|
|
12143
12155
|
stroke: C
|
|
12144
12156
|
}),
|
|
12145
|
-
onClick: () =>
|
|
12157
|
+
onClick: () => se(t.slice(0, -1))
|
|
12146
12158
|
}), n;
|
|
12147
|
-
},
|
|
12159
|
+
}, le = (t) => {
|
|
12148
12160
|
if (!A) return null;
|
|
12149
12161
|
let n = At(t, Mt(e, A), ae);
|
|
12150
12162
|
return P.current = n, n;
|
|
12151
|
-
},
|
|
12163
|
+
}, ue = (e) => {
|
|
12152
12164
|
if (!A) return;
|
|
12153
12165
|
let t = e.trim(), i = P.current;
|
|
12154
|
-
(
|
|
12155
|
-
},
|
|
12156
|
-
return /* @__PURE__ */
|
|
12166
|
+
(le(e) ?? i) || (r(A, t), n([...A, t])), j(null);
|
|
12167
|
+
}, de = () => j(null);
|
|
12168
|
+
return /* @__PURE__ */ K("div", {
|
|
12157
12169
|
style: T,
|
|
12158
|
-
className:
|
|
12170
|
+
className: U(a && "pointer-events-none opacity-60", w.className),
|
|
12159
12171
|
children: [
|
|
12160
|
-
/* @__PURE__ */
|
|
12161
|
-
className: "w-full min-w-0 max-w-full",
|
|
12162
|
-
children: /* @__PURE__ */
|
|
12172
|
+
/* @__PURE__ */ G("div", {
|
|
12173
|
+
className: U("w-full min-w-0 max-w-full", wi.tree),
|
|
12174
|
+
children: /* @__PURE__ */ G(di, {
|
|
12163
12175
|
items: re,
|
|
12164
12176
|
showFiles: !1,
|
|
12165
12177
|
selectedPath: t == null ? void 0 : Y(t),
|
|
12166
|
-
expandedPaths:
|
|
12178
|
+
expandedPaths: V,
|
|
12167
12179
|
onExpandedPathsChange: k,
|
|
12168
12180
|
loadingPaths: x,
|
|
12169
12181
|
onItemClick: (e) => {
|
|
12170
12182
|
n(t != null && Y(t) === e.path ? void 0 : Dt(e.path));
|
|
12171
12183
|
},
|
|
12172
|
-
getContextMenuItems:
|
|
12184
|
+
getContextMenuItems: H,
|
|
12173
12185
|
createdFolderPath: ie,
|
|
12174
12186
|
newFolderDefaultName: M,
|
|
12175
|
-
onCreateFolderSave:
|
|
12176
|
-
onCreateFolderCancel:
|
|
12177
|
-
onRenameValidate: (e) =>
|
|
12187
|
+
onCreateFolderSave: ue,
|
|
12188
|
+
onCreateFolderCancel: de,
|
|
12189
|
+
onRenameValidate: (e) => le(e),
|
|
12178
12190
|
emptyStateTitle: z ? m.replace("{query}", F) : void 0
|
|
12179
12191
|
})
|
|
12180
12192
|
}),
|
|
12181
|
-
/* @__PURE__ */
|
|
12182
|
-
className:
|
|
12193
|
+
/* @__PURE__ */ G("div", {
|
|
12194
|
+
className: U("my-2 h-px", wi.divider),
|
|
12183
12195
|
"aria-hidden": !0
|
|
12184
12196
|
}),
|
|
12185
|
-
/* @__PURE__ */
|
|
12197
|
+
/* @__PURE__ */ K("div", {
|
|
12186
12198
|
className: "mb-4 flex flex-wrap items-center gap-2",
|
|
12187
|
-
children: [/* @__PURE__ */
|
|
12188
|
-
onClick:
|
|
12199
|
+
children: [/* @__PURE__ */ G(ee, {
|
|
12200
|
+
onClick: ce,
|
|
12189
12201
|
label: o,
|
|
12190
|
-
iconBefore: /* @__PURE__ */
|
|
12202
|
+
iconBefore: /* @__PURE__ */ G(Qe, {
|
|
12191
12203
|
size: S.SM,
|
|
12192
12204
|
"aria-hidden": !0,
|
|
12193
12205
|
stroke: C
|
|
12194
12206
|
}),
|
|
12195
12207
|
disabled: a || I
|
|
12196
|
-
}), I && /* @__PURE__ */
|
|
12208
|
+
}), I && /* @__PURE__ */ G(ee, {
|
|
12197
12209
|
label: s,
|
|
12198
|
-
onClick:
|
|
12210
|
+
onClick: de,
|
|
12199
12211
|
disabled: a
|
|
12200
12212
|
})]
|
|
12201
12213
|
})
|
|
@@ -12204,147 +12216,160 @@ var yi = () => {
|
|
|
12204
12216
|
}, Ei = {
|
|
12205
12217
|
summaryTitle: "_summaryTitle_tf20a_1",
|
|
12206
12218
|
sectionHeading: "_sectionHeading_tf20a_5"
|
|
12207
|
-
}, Di = ({ resource: e, renderSummary: t, history: n, isHistoryLoading: r = !1, hasHistoryError: i = !1, folderItems:
|
|
12208
|
-
let { colors:
|
|
12209
|
-
...
|
|
12210
|
-
"--pp-summary-title-text":
|
|
12211
|
-
"--pp-heading-text":
|
|
12219
|
+
}, Di = 200, Oi = ({ resource: e, renderSummary: t, history: n, isHistoryLoading: r = !1, hasHistoryError: i = !1, folderItems: o, selectedFolderPath: s, onSelectedFolderPathChange: l, onCreateFolder: d, expandedPaths: f, onExpandedPathsChange: p, loadingPaths: m, hasExistingPublicationInFolder: h, hasWriteAccess: g, isSubmitting: _, hasSubmitError: v = !1, allowReplace: y = !0, author: b, onAuthorChange: x, rules: S, onRulesChange: C, ruleSourceOptions: w, isRulesLoading: T = !1, hasRulesLoadError: E = !1, labels: D = {}, summaryTitleClassName: O = "dial-body-semi-text", headingClassName: k = "dial-body-semi-text", styles: A = {} }) => {
|
|
12220
|
+
let { colors: j, folderTree: M, accessRules: N } = A, P = {
|
|
12221
|
+
...je({
|
|
12222
|
+
"--pp-summary-title-text": j?.summaryTitleText,
|
|
12223
|
+
"--pp-heading-text": j?.headingText
|
|
12212
12224
|
}),
|
|
12213
|
-
...
|
|
12214
|
-
},
|
|
12215
|
-
border:
|
|
12216
|
-
background:
|
|
12217
|
-
versionTagBorder:
|
|
12218
|
-
versionTagBackground:
|
|
12219
|
-
versionTagText:
|
|
12220
|
-
}, { folderLabel:
|
|
12221
|
-
|
|
12222
|
-
},
|
|
12223
|
-
hasSelectedFolder:
|
|
12224
|
-
hasExistingPublicationInFolder:
|
|
12225
|
-
hasWriteAccess:
|
|
12226
|
-
isSubmitting:
|
|
12227
|
-
hasSubmitError:
|
|
12228
|
-
allowReplace:
|
|
12225
|
+
...A.cssVars
|
|
12226
|
+
}, F = {
|
|
12227
|
+
border: j?.summaryBorder,
|
|
12228
|
+
background: j?.summaryBackground,
|
|
12229
|
+
versionTagBorder: j?.summaryVersionTagBorder,
|
|
12230
|
+
versionTagBackground: j?.summaryVersionTagBackground,
|
|
12231
|
+
versionTagText: j?.summaryVersionTagText
|
|
12232
|
+
}, { folderLabel: I = "Publish to folder", replaceWarning: L = "Version {version} is already published in {folder}. Publishing will replace it.", noAccessError: R = "You don't have permission to publish to {folder}. Pick another, or ask an owner for access.", submitError: z = "Publishing failed. Please try again.", folderEmptyStateLabel: ee, addSiblingFolderLabel: B, addChildFolderLabel: te, cancelCreatingFolderLabel: ne, createFolderEmptyNameError: re, createFolderInvalidNameError: ie, createFolderDuplicateNameError: se, rootFolderLabel: ce = "Organization", summaryVersionLabel: H, accessRulesLabels: le, searchPlaceholder: ue, clearSearchAriaLabel: fe, authorLabel: pe = "Author", authorPlaceholder: me = "Author name", authorHint: he = "Shown as the publication’s author. Defaults to you — replace it to credit a team instead." } = D, [ge, _e] = u(""), ve = a(), ye = (e) => {
|
|
12233
|
+
_e(e ?? "");
|
|
12234
|
+
}, be = s != null, xe = c(() => gt({
|
|
12235
|
+
hasSelectedFolder: be,
|
|
12236
|
+
hasExistingPublicationInFolder: h,
|
|
12237
|
+
hasWriteAccess: g,
|
|
12238
|
+
isSubmitting: _,
|
|
12239
|
+
hasSubmitError: v,
|
|
12240
|
+
allowReplace: y
|
|
12229
12241
|
}), [
|
|
12230
|
-
|
|
12231
|
-
m,
|
|
12242
|
+
be,
|
|
12232
12243
|
h,
|
|
12233
12244
|
g,
|
|
12234
12245
|
_,
|
|
12235
|
-
v
|
|
12236
|
-
|
|
12237
|
-
|
|
12246
|
+
v,
|
|
12247
|
+
y
|
|
12248
|
+
]), Se = be ? s[s.length - 1] ?? ce : "", Ce = t ? t() : /* @__PURE__ */ G("span", {
|
|
12249
|
+
className: U("truncate", O, Ei.summaryTitle),
|
|
12238
12250
|
children: e?.title
|
|
12239
12251
|
});
|
|
12240
|
-
return /* @__PURE__ */
|
|
12252
|
+
return /* @__PURE__ */ K("div", {
|
|
12241
12253
|
className: "flex flex-col gap-5",
|
|
12242
|
-
style:
|
|
12243
|
-
children: [e?.type == null ? /* @__PURE__ */
|
|
12244
|
-
colors:
|
|
12245
|
-
children:
|
|
12246
|
-
}) : /* @__PURE__ */
|
|
12254
|
+
style: P,
|
|
12255
|
+
children: [e?.type == null ? /* @__PURE__ */ G(ke, {
|
|
12256
|
+
colors: F,
|
|
12257
|
+
children: Ce
|
|
12258
|
+
}) : /* @__PURE__ */ G(ke, {
|
|
12247
12259
|
item: {
|
|
12248
12260
|
type: e.type,
|
|
12249
12261
|
name: e.title,
|
|
12250
12262
|
version: e.version ?? "",
|
|
12251
12263
|
iconUrl: e.iconUrl
|
|
12252
12264
|
},
|
|
12253
|
-
versionLabel:
|
|
12254
|
-
colors:
|
|
12255
|
-
}), /* @__PURE__ */
|
|
12256
|
-
/* @__PURE__ */
|
|
12257
|
-
className:
|
|
12258
|
-
children:
|
|
12265
|
+
versionLabel: H,
|
|
12266
|
+
colors: F
|
|
12267
|
+
}), /* @__PURE__ */ K("div", { children: [
|
|
12268
|
+
/* @__PURE__ */ G("div", {
|
|
12269
|
+
className: U("mb-2", k, Ei.sectionHeading),
|
|
12270
|
+
children: I
|
|
12259
12271
|
}),
|
|
12260
|
-
/* @__PURE__ */
|
|
12272
|
+
/* @__PURE__ */ G("div", {
|
|
12261
12273
|
role: "search",
|
|
12262
12274
|
className: "mb-3",
|
|
12263
|
-
children: /* @__PURE__ */
|
|
12264
|
-
value:
|
|
12265
|
-
onChange:
|
|
12266
|
-
placeholder:
|
|
12267
|
-
clearLabel:
|
|
12268
|
-
"aria-label":
|
|
12275
|
+
children: /* @__PURE__ */ G(de, {
|
|
12276
|
+
value: ge,
|
|
12277
|
+
onChange: ye,
|
|
12278
|
+
placeholder: ue,
|
|
12279
|
+
clearLabel: fe,
|
|
12280
|
+
"aria-label": ue
|
|
12269
12281
|
})
|
|
12270
12282
|
}),
|
|
12271
|
-
/* @__PURE__ */
|
|
12272
|
-
items:
|
|
12273
|
-
selectedPath:
|
|
12274
|
-
onSelectedPathChange:
|
|
12275
|
-
onCreateFolder:
|
|
12276
|
-
expandedPaths:
|
|
12277
|
-
onExpandedPathsChange:
|
|
12278
|
-
loadingPaths:
|
|
12279
|
-
searchQuery:
|
|
12280
|
-
disabled:
|
|
12281
|
-
noResultsLabel:
|
|
12282
|
-
addSiblingFolderLabel:
|
|
12283
|
-
addChildFolderLabel:
|
|
12284
|
-
cancelCreatingFolderLabel:
|
|
12285
|
-
emptyFolderNameError:
|
|
12286
|
-
invalidFolderNameError:
|
|
12287
|
-
duplicateFolderNameError:
|
|
12288
|
-
rootLabel:
|
|
12289
|
-
styles:
|
|
12283
|
+
/* @__PURE__ */ G(Ti, {
|
|
12284
|
+
items: o,
|
|
12285
|
+
selectedPath: s,
|
|
12286
|
+
onSelectedPathChange: l,
|
|
12287
|
+
onCreateFolder: d,
|
|
12288
|
+
expandedPaths: f,
|
|
12289
|
+
onExpandedPathsChange: p,
|
|
12290
|
+
loadingPaths: m,
|
|
12291
|
+
searchQuery: ge,
|
|
12292
|
+
disabled: _,
|
|
12293
|
+
noResultsLabel: ee,
|
|
12294
|
+
addSiblingFolderLabel: B,
|
|
12295
|
+
addChildFolderLabel: te,
|
|
12296
|
+
cancelCreatingFolderLabel: ne,
|
|
12297
|
+
emptyFolderNameError: re,
|
|
12298
|
+
invalidFolderNameError: ie,
|
|
12299
|
+
duplicateFolderNameError: se,
|
|
12300
|
+
rootLabel: ce,
|
|
12301
|
+
styles: M
|
|
12290
12302
|
}),
|
|
12291
|
-
|
|
12303
|
+
xe.calloutKind !== ht.None && xe.calloutKind !== ht.Info && /* @__PURE__ */ G("div", {
|
|
12292
12304
|
className: "mt-3",
|
|
12293
|
-
children: /* @__PURE__ */
|
|
12305
|
+
children: /* @__PURE__ */ G(ae, {
|
|
12294
12306
|
type: oe.SectionMessage,
|
|
12295
|
-
variant:
|
|
12296
|
-
message:
|
|
12297
|
-
replaceWarning:
|
|
12298
|
-
noAccessError:
|
|
12299
|
-
submitError:
|
|
12300
|
-
folderName:
|
|
12307
|
+
variant: ki(xe.calloutKind),
|
|
12308
|
+
message: ji(xe.calloutKind, {
|
|
12309
|
+
replaceWarning: L,
|
|
12310
|
+
noAccessError: R,
|
|
12311
|
+
submitError: z,
|
|
12312
|
+
folderName: Se,
|
|
12301
12313
|
version: e?.version
|
|
12302
12314
|
})
|
|
12303
12315
|
})
|
|
12304
12316
|
}),
|
|
12305
|
-
/* @__PURE__ */
|
|
12317
|
+
/* @__PURE__ */ G("div", {
|
|
12306
12318
|
className: "mt-4",
|
|
12307
|
-
children: /* @__PURE__ */
|
|
12308
|
-
|
|
12309
|
-
|
|
12310
|
-
|
|
12311
|
-
|
|
12312
|
-
|
|
12313
|
-
|
|
12314
|
-
|
|
12315
|
-
|
|
12316
|
-
|
|
12319
|
+
children: /* @__PURE__ */ G(V, {
|
|
12320
|
+
id: ve,
|
|
12321
|
+
labelProps: { label: pe },
|
|
12322
|
+
placeholder: me,
|
|
12323
|
+
caption: he,
|
|
12324
|
+
value: b,
|
|
12325
|
+
onChange: (e) => x(e ?? ""),
|
|
12326
|
+
maxLength: Di,
|
|
12327
|
+
disabled: _
|
|
12328
|
+
})
|
|
12329
|
+
}),
|
|
12330
|
+
/* @__PURE__ */ G("div", {
|
|
12331
|
+
className: "mt-4",
|
|
12332
|
+
children: /* @__PURE__ */ G(Ht, {
|
|
12333
|
+
rules: S,
|
|
12334
|
+
onRulesChange: C,
|
|
12335
|
+
sourceOptions: w,
|
|
12336
|
+
folderName: be ? Se : void 0,
|
|
12337
|
+
disabled: _,
|
|
12338
|
+
isLoading: T,
|
|
12339
|
+
hasLoadError: E,
|
|
12340
|
+
labels: le,
|
|
12341
|
+
styles: N
|
|
12317
12342
|
})
|
|
12318
12343
|
})
|
|
12319
12344
|
] })]
|
|
12320
12345
|
});
|
|
12321
|
-
},
|
|
12346
|
+
}, ki = (e) => e === ht.ReplaceWarning ? se.Warning : se.Error, Ai = (e, t) => {
|
|
12322
12347
|
let [n, r, ...i] = e.split("{folder}");
|
|
12323
|
-
return r === void 0 || i.length > 0 ? e : /* @__PURE__ */
|
|
12348
|
+
return r === void 0 || i.length > 0 ? e : /* @__PURE__ */ K(W, { children: [
|
|
12324
12349
|
n,
|
|
12325
|
-
/* @__PURE__ */
|
|
12350
|
+
/* @__PURE__ */ G("strong", {
|
|
12326
12351
|
className: "font-semibold",
|
|
12327
12352
|
children: t
|
|
12328
12353
|
}),
|
|
12329
12354
|
r
|
|
12330
12355
|
] });
|
|
12331
|
-
},
|
|
12332
|
-
let c =
|
|
12333
|
-
return /* @__PURE__ */
|
|
12356
|
+
}, ji = (e, t) => e === ht.ReplaceWarning ? Ai(t.replaceWarning.replace("{version}", t.version ?? ""), t.folderName) : e === ht.NoAccess ? Ai(t.noAccessError, t.folderName) : t.submitError, Mi = { footer: "_footer_dks1v_1" }, Ni = ({ version: e, hasExistingPublicationInFolder: t, isSubmitDisabled: n, isSubmitLoading: r, onCancel: i, onSubmit: a, labels: o = {}, colors: s }) => {
|
|
12357
|
+
let c = je({ "--pf-border": s?.border }), { cancelLabel: l = "Cancel", publishDefaultLabel: u = "Publish", updateLabel: d = "Update version {version}", publishingInProgressLabel: f = "Publishing…" } = o, p = r ? f : t && e != null ? d.replace("{version}", e) : u;
|
|
12358
|
+
return /* @__PURE__ */ K("div", {
|
|
12334
12359
|
style: c,
|
|
12335
|
-
className:
|
|
12336
|
-
children: [/* @__PURE__ */
|
|
12360
|
+
className: U("flex items-center justify-end gap-2 border-t px-3.5 py-4 rtl:flex-row-reverse rtl:justify-start", Mi.footer),
|
|
12361
|
+
children: [/* @__PURE__ */ G(ee, {
|
|
12337
12362
|
label: l,
|
|
12338
12363
|
disabled: r,
|
|
12339
12364
|
onClick: i
|
|
12340
|
-
}), /* @__PURE__ */
|
|
12365
|
+
}), /* @__PURE__ */ G(re, {
|
|
12341
12366
|
label: p,
|
|
12342
12367
|
disabled: n,
|
|
12343
|
-
iconBefore: r ? /* @__PURE__ */
|
|
12368
|
+
iconBefore: r ? /* @__PURE__ */ G(he, { size: S.SM }) : void 0,
|
|
12344
12369
|
onClick: a
|
|
12345
12370
|
})]
|
|
12346
12371
|
});
|
|
12347
|
-
},
|
|
12372
|
+
}, Pi = [
|
|
12348
12373
|
"a[href]",
|
|
12349
12374
|
"area[href]",
|
|
12350
12375
|
"button",
|
|
@@ -12354,21 +12379,21 @@ var yi = () => {
|
|
|
12354
12379
|
"summary",
|
|
12355
12380
|
"[contenteditable=\"true\"]",
|
|
12356
12381
|
"[tabindex]"
|
|
12357
|
-
].join(","),
|
|
12382
|
+
].join(","), Fi = (e) => e.hasAttribute("disabled") || e.getAttribute("aria-disabled") === "true" || e.tabIndex < 0 ? !1 : e.closest("[inert],[hidden],[aria-hidden=\"true\"]") == null, Ii = (e) => Array.from(e.querySelectorAll(Pi)).filter(Fi), Li = {
|
|
12358
12383
|
backdrop: "_backdrop_1rdk6_1",
|
|
12359
12384
|
panel: "_panel_1rdk6_5",
|
|
12360
12385
|
divider: "_divider_1rdk6_10",
|
|
12361
12386
|
content: "_content_1rdk6_14",
|
|
12362
12387
|
title: "_title_1rdk6_19"
|
|
12363
|
-
},
|
|
12364
|
-
let
|
|
12365
|
-
"--spp-backdrop-bg":
|
|
12366
|
-
"--spp-panel-bg":
|
|
12367
|
-
"--spp-panel-border":
|
|
12368
|
-
"--spp-divider-border":
|
|
12369
|
-
"--spp-scrollbar-thumb":
|
|
12370
|
-
"--spp-title-text":
|
|
12371
|
-
}),
|
|
12388
|
+
}, Ri = ({ isOpen: e, resource: t, renderSummary: n, history: r, isHistoryLoading: a = !1, hasHistoryError: o = !1, folderItems: s, selectedFolderPath: u, onSelectedFolderPathChange: d, onCreateFolder: f, expandedPaths: p, onExpandedPathsChange: m, loadingPaths: g, hasExistingPublicationInFolder: _, hasWriteAccess: v, isSubmitting: y, hasSubmitError: b = !1, allowReplace: x = !0, author: S, onAuthorChange: C, rules: w, onRulesChange: T, ruleSourceOptions: E, isRulesLoading: D = !1, hasRulesLoadError: O = !1, onClose: k, returnFocusRef: A, onSubmit: j, panelLabels: M, panelStyles: N, footerLabels: P, labels: F = {}, titleClassName: I = "dial-body-semi-text", colors: L }) => {
|
|
12389
|
+
let R = je({
|
|
12390
|
+
"--spp-backdrop-bg": L?.backdropBackground,
|
|
12391
|
+
"--spp-panel-bg": L?.panelBackground,
|
|
12392
|
+
"--spp-panel-border": L?.panelBorder,
|
|
12393
|
+
"--spp-divider-border": L?.dividerBorder,
|
|
12394
|
+
"--spp-scrollbar-thumb": L?.scrollbarThumb,
|
|
12395
|
+
"--spp-title-text": L?.titleText
|
|
12396
|
+
}), z = l(null), { title: ee = "Publish", ariaLabel: B = "Publish", closeAriaLabel: te = "Close" } = F, V = c(() => gt({
|
|
12372
12397
|
hasSelectedFolder: u != null,
|
|
12373
12398
|
hasExistingPublicationInFolder: _,
|
|
12374
12399
|
hasWriteAccess: v,
|
|
@@ -12385,7 +12410,7 @@ var yi = () => {
|
|
|
12385
12410
|
]);
|
|
12386
12411
|
return i(() => {
|
|
12387
12412
|
if (!e) return;
|
|
12388
|
-
let t =
|
|
12413
|
+
let t = z.current;
|
|
12389
12414
|
if (!t) return;
|
|
12390
12415
|
let n = () => t.focus({ preventScroll: !0 });
|
|
12391
12416
|
n();
|
|
@@ -12395,23 +12420,23 @@ var yi = () => {
|
|
|
12395
12420
|
document.addEventListener("focusin", r);
|
|
12396
12421
|
let i = requestAnimationFrame(() => {
|
|
12397
12422
|
document.removeEventListener("focusin", r);
|
|
12398
|
-
}), a =
|
|
12423
|
+
}), a = A?.current;
|
|
12399
12424
|
return () => {
|
|
12400
12425
|
cancelAnimationFrame(i), document.removeEventListener("focusin", r), a?.isConnected && a.focus({ preventScroll: !0 });
|
|
12401
12426
|
};
|
|
12402
|
-
}, [e,
|
|
12427
|
+
}, [e, A]), i(() => {
|
|
12403
12428
|
if (!e) return;
|
|
12404
12429
|
let t = (e) => {
|
|
12405
12430
|
if (e.key === "Escape") {
|
|
12406
|
-
|
|
12431
|
+
k();
|
|
12407
12432
|
return;
|
|
12408
12433
|
}
|
|
12409
12434
|
if (e.key !== "Tab") return;
|
|
12410
|
-
let t =
|
|
12435
|
+
let t = z.current;
|
|
12411
12436
|
if (!t) return;
|
|
12412
12437
|
let n = document.activeElement;
|
|
12413
12438
|
if (!(n instanceof HTMLElement) || !t.contains(n)) return;
|
|
12414
|
-
let r =
|
|
12439
|
+
let r = Ii(t);
|
|
12415
12440
|
if (r.length === 0) {
|
|
12416
12441
|
e.preventDefault(), t.focus({ preventScroll: !0 });
|
|
12417
12442
|
return;
|
|
@@ -12426,46 +12451,46 @@ var yi = () => {
|
|
|
12426
12451
|
return document.addEventListener("keydown", t), () => {
|
|
12427
12452
|
document.removeEventListener("keydown", t);
|
|
12428
12453
|
};
|
|
12429
|
-
}, [e,
|
|
12430
|
-
style:
|
|
12431
|
-
className:
|
|
12432
|
-
onClick:
|
|
12454
|
+
}, [e, k]), /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("div", {
|
|
12455
|
+
style: R,
|
|
12456
|
+
className: U("fixed inset-0 z-[51] transition-opacity duration-300", Li.backdrop, e ? "opacity-100" : "pointer-events-none opacity-0"),
|
|
12457
|
+
onClick: k,
|
|
12433
12458
|
"aria-hidden": "true"
|
|
12434
|
-
}), /* @__PURE__ */
|
|
12435
|
-
ref:
|
|
12459
|
+
}), /* @__PURE__ */ K("div", {
|
|
12460
|
+
ref: z,
|
|
12436
12461
|
role: "dialog",
|
|
12437
12462
|
"aria-modal": "true",
|
|
12438
|
-
"aria-label":
|
|
12463
|
+
"aria-label": B,
|
|
12439
12464
|
"aria-hidden": !e,
|
|
12440
12465
|
inert: !e,
|
|
12441
12466
|
tabIndex: -1,
|
|
12442
|
-
style:
|
|
12443
|
-
className:
|
|
12467
|
+
style: R,
|
|
12468
|
+
className: U("fixed inset-y-0 end-0 z-[52] flex w-full flex-col overflow-hidden", "desktop:rounded-ts-xl desktop:rounded-bs-xl desktop:w-[540px] desktop:border-s", "transition-transform duration-300", Li.panel, e ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
|
|
12444
12469
|
children: [
|
|
12445
|
-
/* @__PURE__ */
|
|
12470
|
+
/* @__PURE__ */ K("div", {
|
|
12446
12471
|
className: "flex shrink-0 items-center gap-2 px-[22px] py-3",
|
|
12447
12472
|
children: [
|
|
12448
|
-
/* @__PURE__ */
|
|
12449
|
-
/* @__PURE__ */
|
|
12450
|
-
className:
|
|
12451
|
-
children:
|
|
12473
|
+
/* @__PURE__ */ G("div", { className: "flex-1" }),
|
|
12474
|
+
/* @__PURE__ */ G("span", {
|
|
12475
|
+
className: U("flex-1 text-center", I, Li.title),
|
|
12476
|
+
children: ee
|
|
12452
12477
|
}),
|
|
12453
|
-
/* @__PURE__ */
|
|
12478
|
+
/* @__PURE__ */ G("div", {
|
|
12454
12479
|
className: "flex flex-1 justify-end",
|
|
12455
|
-
children: /* @__PURE__ */
|
|
12456
|
-
onClose:
|
|
12457
|
-
ariaLabel:
|
|
12480
|
+
children: /* @__PURE__ */ G(h, {
|
|
12481
|
+
onClose: k,
|
|
12482
|
+
ariaLabel: te,
|
|
12458
12483
|
disabled: y
|
|
12459
12484
|
})
|
|
12460
12485
|
})
|
|
12461
12486
|
]
|
|
12462
12487
|
}),
|
|
12463
|
-
/* @__PURE__ */
|
|
12464
|
-
/* @__PURE__ */
|
|
12465
|
-
className:
|
|
12466
|
-
children: /* @__PURE__ */
|
|
12488
|
+
/* @__PURE__ */ G("div", { className: U("shrink-0", Li.divider) }),
|
|
12489
|
+
/* @__PURE__ */ G("div", {
|
|
12490
|
+
className: U("min-h-0 flex-1 overflow-y-auto", Li.content),
|
|
12491
|
+
children: /* @__PURE__ */ G("div", {
|
|
12467
12492
|
className: "p-[22px]",
|
|
12468
|
-
children: /* @__PURE__ */
|
|
12493
|
+
children: /* @__PURE__ */ G(Oi, {
|
|
12469
12494
|
resource: t,
|
|
12470
12495
|
renderSummary: n,
|
|
12471
12496
|
history: r,
|
|
@@ -12483,27 +12508,29 @@ var yi = () => {
|
|
|
12483
12508
|
isSubmitting: y,
|
|
12484
12509
|
hasSubmitError: b,
|
|
12485
12510
|
allowReplace: x,
|
|
12486
|
-
|
|
12487
|
-
|
|
12488
|
-
|
|
12489
|
-
|
|
12490
|
-
|
|
12491
|
-
|
|
12492
|
-
|
|
12511
|
+
author: S,
|
|
12512
|
+
onAuthorChange: C,
|
|
12513
|
+
rules: w,
|
|
12514
|
+
onRulesChange: T,
|
|
12515
|
+
ruleSourceOptions: E,
|
|
12516
|
+
isRulesLoading: D,
|
|
12517
|
+
hasRulesLoadError: O,
|
|
12518
|
+
labels: M,
|
|
12519
|
+
styles: N
|
|
12493
12520
|
})
|
|
12494
12521
|
})
|
|
12495
12522
|
}),
|
|
12496
|
-
/* @__PURE__ */
|
|
12523
|
+
/* @__PURE__ */ G(Ni, {
|
|
12497
12524
|
version: t?.version,
|
|
12498
12525
|
hasExistingPublicationInFolder: _,
|
|
12499
|
-
isSubmitDisabled:
|
|
12500
|
-
isSubmitLoading:
|
|
12501
|
-
onCancel:
|
|
12502
|
-
onSubmit:
|
|
12503
|
-
labels:
|
|
12526
|
+
isSubmitDisabled: V.isSubmitDisabled,
|
|
12527
|
+
isSubmitLoading: V.isSubmitLoading,
|
|
12528
|
+
onCancel: k,
|
|
12529
|
+
onSubmit: j,
|
|
12530
|
+
labels: P
|
|
12504
12531
|
})
|
|
12505
12532
|
]
|
|
12506
12533
|
})] });
|
|
12507
12534
|
};
|
|
12508
12535
|
//#endregion
|
|
12509
|
-
export { mt as PublicationRuleFunction, Rt as PublishAccessRuleEditor, Ht as PublishAccessRules, ht as PublishCalloutKind, Ti as PublishFoldersTree,
|
|
12536
|
+
export { mt as PublicationRuleFunction, Rt as PublishAccessRuleEditor, Ht as PublishAccessRules, ht as PublishCalloutKind, Ti as PublishFoldersTree, Ni as PublishFooter, Wt as PublishHistoryList, Oi as PublishPanel, Ri as StandalonePublishPanel, Et as collectFolderKeys, gt as derivePublishState, St as filterFolderTree, vt as formatPublishedDate, Dt as fromFolderPathKey, Mt as getSiblingFolderNames, jt as getUniqueFolderName, J as mergeFolderPaths, wt as sortFolderTree, Ot as toDialFileTree, Y as toFolderPathKey, xt as usePublishFlow, At as validateFolderName };
|