@epam/ai-dial-catalog 1.1.0-dev.331 → 1.1.0-dev.336
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/Catalog/Catalog.d.ts.map +1 -1
- package/components/Toolbar/Rows/TitleRow.d.ts +2 -1
- package/components/Toolbar/Rows/TitleRow.d.ts.map +1 -1
- package/index.js +815 -814
- package/models/catalog-props.d.ts +7 -0
- package/models/catalog-props.d.ts.map +1 -1
- package/models/toolbar-props.d.ts +7 -0
- package/models/toolbar-props.d.ts.map +1 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BASE_ICON_SIZE as e, ButtonAppearance as t, ButtonDropdown as n, ButtonVariant as r, CardShell as i, Checkbox as a, CheckboxBox as o, CloseButton as s, CollapsibleSidebar as c, ConditionalResizableContainer as l, ConfirmationPopup as u, ConfirmationPopupVariant as d, DEFAULT_DATE_FORMAT_OPTIONS as f, DEFAULT_DATE_LOCALE as p, DIAL_ICON_SIZE as m, DIAL_KIT_ICON_STROKE as h, DangerButton as g, DateCellRenderer as _, DialBreadcrumb as v, DialFileIcon as y, DialFileName as b, DialFileNodeType as x, DialFolderName as S, DialIcon as C, DialItemType as w, DialNoDataContent as T, DialSharedEntityIndicator as E, Dropdown as D, DropdownItemType as O, DropdownTrigger as
|
|
1
|
+
import { BASE_ICON_SIZE as e, ButtonAppearance as t, ButtonDropdown as n, ButtonVariant as r, CardShell as i, Checkbox as a, CheckboxBox as o, CloseButton as s, CollapsibleSidebar as c, ConditionalResizableContainer as l, ConfirmationPopup as u, ConfirmationPopupVariant as d, DEFAULT_DATE_FORMAT_OPTIONS as f, DEFAULT_DATE_LOCALE as p, DIAL_ICON_SIZE as m, DIAL_KIT_ICON_STROKE as h, DangerButton as g, DateCellRenderer as _, DialBreadcrumb as v, DialFileIcon as y, DialFileName as b, DialFileNodeType as x, DialFolderName as S, DialIcon as C, DialItemType as w, DialNoDataContent as T, DialSharedEntityIndicator as E, Dropdown as D, DropdownItemType as O, DropdownTrigger as k, ElementSize as ee, EllipsisTooltip as A, FlexibleActionsDirection as te, FolderPath as ne, GhostButton as re, GhostIconButton as ie, Grid as j, Highlight as ae, InlineSelect as oe, InlineSelectTrigger as se, Input as ce, LinkButton as le, NOT_ALLOWED_SYMBOLS_REGEXP as ue, NeutralButton as de, NeutralIconButton as fe, NoDataContent as pe, Notification as me, NotificationType as he, NotificationVariant as ge, Popup as _e, PopupSize as M, PrimaryButton as ve, ProgressBar as ye, RadioGroup as be, Search as xe, SegmentedControl as Se, Select as Ce, Skeleton as we, SkeletonAvatarShape as Te, SkeletonVariant as Ee, Spinner as De, Switch as Oe, Tabs as ke, TagInput as Ae, ToggleIconButton as je, Tooltip as Me, TooltipContainer as Ne, TooltipContent as Pe, TooltipPlacement as Fe, TooltipTrigger as Ie, convertToDate as Le, editableContainerProps as Re, mergeClasses as ze, useEditableItem as Be } from "@epam/ai-dial-ui-kit";
|
|
2
2
|
import * as Ve from "react";
|
|
3
3
|
import He, { Fragment as Ue, createContext as We, createElement as Ge, forwardRef as Ke, memo as qe, useCallback as N, useContext as Je, useEffect as Ye, useId as Xe, useImperativeHandle as Ze, useLayoutEffect as Qe, useMemo as P, useRef as $e, useState as F } from "react";
|
|
4
4
|
import { Fragment as et, jsx as I, jsxs as L } from "react/jsx-runtime";
|
|
@@ -7870,7 +7870,7 @@ var Yt = Object.create, Xt = Object.defineProperty, Zt = Object.getOwnPropertyDe
|
|
|
7870
7870
|
er.Author,
|
|
7871
7871
|
er.Actions
|
|
7872
7872
|
], yr = /* @__PURE__ */ ((e) => (e.ITEM = "item", e.FOLDER = "folder", e))(yr || {}), br = /* @__PURE__ */ ((e) => (e.FILE = "FILE", e.PROMPT = "PROMPT", e.CONVERSATION = "CONVERSATION", e.APPLICATION = "APPLICATION", e.TOOLSET = "TOOL_SET", e))(br || {}), xr = /* @__PURE__ */ ((e) => (e.READ = "READ", e.WRITE = "WRITE", e.SHARE = "SHARE", e))(xr || {}), Sr = ({ open: e, onClose: t, onReplace: n, onDuplicate: r, onDecideForEach: i, conflictingFiles: a, singleFileTitle: o = "Replace Or Duplicate Item", multipleFilesTitle: s = "Replace Or Duplicate Items", message: c, actionLabels: l, strategyLabels: u, confirmLabel: d = "Confirm", cancelLabel: f = "Cancel", nameColumnLabel: p = "Name", actionColumnLabel: h = "Action" }) => {
|
|
7873
|
-
let g = a.length === 1, _ = g ? a[0]?.name : "", v = l?.[Jn.Replace] ?? "Replace", y = l?.[Jn.Duplicate] ?? "Duplicate", x = l?.[Jn.Cancel] ?? "Cancel", C = u?.[Yn.ReplaceAll] ?? "Replace all", w = u?.[Yn.DuplicateAll] ?? "Duplicate all", T = u?.[Yn.DecideForEach] ?? "Decide for each", [E, O] = F(Jn.Replace), [
|
|
7873
|
+
let g = a.length === 1, _ = g ? a[0]?.name : "", v = l?.[Jn.Replace] ?? "Replace", y = l?.[Jn.Duplicate] ?? "Duplicate", x = l?.[Jn.Cancel] ?? "Cancel", C = u?.[Yn.ReplaceAll] ?? "Replace all", w = u?.[Yn.DuplicateAll] ?? "Duplicate all", T = u?.[Yn.DecideForEach] ?? "Decide for each", [E, O] = F(Jn.Replace), [ee, A] = F(Yn.ReplaceAll), [te, ne] = F(new Map(a.map((e) => [e.path, Jn.Replace]))), [re, ie] = F(void 0), ae = g ? o : s, oe = /* @__PURE__ */ L(et, { children: [
|
|
7874
7874
|
"Item with the name ",
|
|
7875
7875
|
/* @__PURE__ */ L("span", {
|
|
7876
7876
|
className: "text-primary",
|
|
@@ -7893,8 +7893,8 @@ var Yt = Object.create, Xt = Object.defineProperty, Zt = Object.getOwnPropertyDe
|
|
|
7893
7893
|
name: e.name,
|
|
7894
7894
|
path: e.path,
|
|
7895
7895
|
nodeType: e.nodeType ?? yr.ITEM,
|
|
7896
|
-
action:
|
|
7897
|
-
})), [a,
|
|
7896
|
+
action: te.get(e.path) || Jn.Replace
|
|
7897
|
+
})), [a, te]), fe = P(() => [{
|
|
7898
7898
|
field: "name",
|
|
7899
7899
|
headerName: p,
|
|
7900
7900
|
flex: 1,
|
|
@@ -7945,24 +7945,24 @@ var Yt = Object.create, Xt = Object.defineProperty, Zt = Object.getOwnPropertyDe
|
|
|
7945
7945
|
className: "text-error"
|
|
7946
7946
|
})
|
|
7947
7947
|
}
|
|
7948
|
-
], n = t.find((t) => t.key === e.data.action), r =
|
|
7948
|
+
], n = t.find((t) => t.key === e.data.action), r = re === e.data.path;
|
|
7949
7949
|
return /* @__PURE__ */ I("div", {
|
|
7950
7950
|
className: "flex items-center h-full",
|
|
7951
7951
|
children: /* @__PURE__ */ I(D, {
|
|
7952
|
-
trigger: [
|
|
7952
|
+
trigger: [k.Click],
|
|
7953
7953
|
open: r,
|
|
7954
7954
|
items: t,
|
|
7955
7955
|
onItemClick: ({ key: t }) => {
|
|
7956
|
-
|
|
7956
|
+
ne((n) => {
|
|
7957
7957
|
let r = new Map(n);
|
|
7958
7958
|
return r.set(e.data.path, t), r;
|
|
7959
|
-
}),
|
|
7959
|
+
}), ie(void 0);
|
|
7960
7960
|
},
|
|
7961
7961
|
placement: "bottom-start",
|
|
7962
7962
|
matchReferenceWidth: !1,
|
|
7963
7963
|
allowedPlacements: ["bottom-start", "top-start"],
|
|
7964
7964
|
onOpenChange: (t) => {
|
|
7965
|
-
|
|
7965
|
+
ie(t ? e.data.path : void 0);
|
|
7966
7966
|
},
|
|
7967
7967
|
children: /* @__PURE__ */ L("button", {
|
|
7968
7968
|
type: "button",
|
|
@@ -7985,7 +7985,7 @@ var Yt = Object.create, Xt = Object.defineProperty, Zt = Object.getOwnPropertyDe
|
|
|
7985
7985
|
v,
|
|
7986
7986
|
y,
|
|
7987
7987
|
x,
|
|
7988
|
-
|
|
7988
|
+
re
|
|
7989
7989
|
]), pe = P(() => [
|
|
7990
7990
|
{
|
|
7991
7991
|
value: Yn.ReplaceAll,
|
|
@@ -7998,7 +7998,7 @@ var Yt = Object.create, Xt = Object.defineProperty, Zt = Object.getOwnPropertyDe
|
|
|
7998
7998
|
{
|
|
7999
7999
|
value: Yn.DecideForEach,
|
|
8000
8000
|
label: T,
|
|
8001
|
-
content: /* @__PURE__ */ I(
|
|
8001
|
+
content: /* @__PURE__ */ I(j, {
|
|
8002
8002
|
columnDefs: fe,
|
|
8003
8003
|
rowData: ue,
|
|
8004
8004
|
getRowId: (e) => e.id,
|
|
@@ -8014,13 +8014,13 @@ var Yt = Object.create, Xt = Object.defineProperty, Zt = Object.getOwnPropertyDe
|
|
|
8014
8014
|
fe,
|
|
8015
8015
|
ue
|
|
8016
8016
|
]), me = N(() => {
|
|
8017
|
-
O(Jn.Replace),
|
|
8017
|
+
O(Jn.Replace), A(Yn.ReplaceAll), ne(new Map(a.map((e) => [e.path, Jn.Replace])));
|
|
8018
8018
|
}, [a]), he = N(() => {
|
|
8019
8019
|
me(), t();
|
|
8020
8020
|
}, [me, t]), ge = N(() => {
|
|
8021
|
-
me(), g ? E === Jn.Replace ? n() : r() :
|
|
8021
|
+
me(), g ? E === Jn.Replace ? n() : r() : ee === Yn.ReplaceAll ? n() : ee === Yn.DuplicateAll ? r() : ee === Yn.DecideForEach && i && i(a.map((e) => ({
|
|
8022
8022
|
file: e,
|
|
8023
|
-
action:
|
|
8023
|
+
action: te.get(e.path) || Jn.Replace
|
|
8024
8024
|
})));
|
|
8025
8025
|
}, [
|
|
8026
8026
|
me,
|
|
@@ -8028,17 +8028,17 @@ var Yt = Object.create, Xt = Object.defineProperty, Zt = Object.getOwnPropertyDe
|
|
|
8028
8028
|
E,
|
|
8029
8029
|
n,
|
|
8030
8030
|
r,
|
|
8031
|
-
|
|
8031
|
+
ee,
|
|
8032
8032
|
i,
|
|
8033
8033
|
a,
|
|
8034
|
-
|
|
8034
|
+
te
|
|
8035
8035
|
]);
|
|
8036
8036
|
return /* @__PURE__ */ I(_e, {
|
|
8037
8037
|
open: e,
|
|
8038
8038
|
onClose: he,
|
|
8039
8039
|
size: g ? M.Sm : M.Md,
|
|
8040
8040
|
className: (0, Rn.default)([!g && "w-[600px]"]),
|
|
8041
|
-
header:
|
|
8041
|
+
header: ae,
|
|
8042
8042
|
preventKeyboardOnOpen: !0,
|
|
8043
8043
|
footer: /* @__PURE__ */ L("div", {
|
|
8044
8044
|
className: "flex justify-end gap-3 py-4 px-6 border-t border-tertiary",
|
|
@@ -8057,16 +8057,16 @@ var Yt = Object.create, Xt = Object.defineProperty, Zt = Object.getOwnPropertyDe
|
|
|
8057
8057
|
children: ce
|
|
8058
8058
|
}), g ? /* @__PURE__ */ I(be, {
|
|
8059
8059
|
id: "single-file-conflict",
|
|
8060
|
-
ariaLabel:
|
|
8060
|
+
ariaLabel: ae,
|
|
8061
8061
|
items: le,
|
|
8062
8062
|
value: E,
|
|
8063
8063
|
onChange: (e) => O(e)
|
|
8064
8064
|
}) : /* @__PURE__ */ I(be, {
|
|
8065
8065
|
id: "multiple-files-conflict",
|
|
8066
|
-
ariaLabel:
|
|
8066
|
+
ariaLabel: ae,
|
|
8067
8067
|
items: pe,
|
|
8068
|
-
value:
|
|
8069
|
-
onChange: (e) =>
|
|
8068
|
+
value: ee,
|
|
8069
|
+
onChange: (e) => A(e),
|
|
8070
8070
|
contentClassName: "ml-0"
|
|
8071
8071
|
})]
|
|
8072
8072
|
})
|
|
@@ -8088,7 +8088,7 @@ var Yt = Object.create, Xt = Object.defineProperty, Zt = Object.getOwnPropertyDe
|
|
|
8088
8088
|
],
|
|
8089
8089
|
items: o,
|
|
8090
8090
|
className: ze("sticky right-0", i),
|
|
8091
|
-
children: /* @__PURE__ */ I(
|
|
8091
|
+
children: /* @__PURE__ */ I(ie, { icon: /* @__PURE__ */ I(gt, { ...Kn }) })
|
|
8092
8092
|
}) : null;
|
|
8093
8093
|
}, [
|
|
8094
8094
|
n,
|
|
@@ -8369,18 +8369,18 @@ var Br = (e) => {
|
|
|
8369
8369
|
])
|
|
8370
8370
|
};
|
|
8371
8371
|
}, Qr = ({ getDestinationFiles: e, onCopyFiles: t, onMoveToFiles: n, onCopySuccess: r, onMoveSuccess: i, onDuplicateSuccess: a, getCopyHeader: o, getMoveHeader: s }) => {
|
|
8372
|
-
let [c, l] = F(!1), [u, d] = F([]), [f, p] = F([]), [m, h] = F(Xn.Copy), [g, _] = F(), [v, y] = F(null), { conflictingFiles: b, conflictResolutionOpen: x, hasActiveConflictRef: S, startConflictResolution: C, resolveConflictsWithStrategy: w, closeConflictResolution: T, openConflictResolution: E, handleReplaceAll: D, handleDuplicateAll: O, handleCancelAll:
|
|
8372
|
+
let [c, l] = F(!1), [u, d] = F([]), [f, p] = F([]), [m, h] = F(Xn.Copy), [g, _] = F(), [v, y] = F(null), { conflictingFiles: b, conflictResolutionOpen: x, hasActiveConflictRef: S, startConflictResolution: C, resolveConflictsWithStrategy: w, closeConflictResolution: T, openConflictResolution: E, handleReplaceAll: D, handleDuplicateAll: O, handleCancelAll: k, handleDecideForEach: ee } = Zr({
|
|
8373
8373
|
getDestinationFiles: e,
|
|
8374
8374
|
onResolve: (e, a) => {
|
|
8375
8375
|
e?.length && (v?.type === Xn.Copy ? (t?.(e, a), r?.()) : v?.type === Xn.Move && v.sourceFolder && (n?.(e, v.sourceFolder, a), i?.()));
|
|
8376
8376
|
}
|
|
8377
|
-
}),
|
|
8377
|
+
}), A = N(() => {
|
|
8378
8378
|
d([]), p([]), y(null), _(void 0);
|
|
8379
|
-
}, []),
|
|
8379
|
+
}, []), te = N((e) => {
|
|
8380
8380
|
let n = C(e, u, { type: Xn.Copy });
|
|
8381
8381
|
if (y({ type: Xn.Copy }), !n.hasConflicts) {
|
|
8382
8382
|
let n = w(e, u, !1);
|
|
8383
|
-
t?.(n, e), r?.(),
|
|
8383
|
+
t?.(n, e), r?.(), A();
|
|
8384
8384
|
}
|
|
8385
8385
|
}, [
|
|
8386
8386
|
u,
|
|
@@ -8388,15 +8388,15 @@ var Br = (e) => {
|
|
|
8388
8388
|
w,
|
|
8389
8389
|
t,
|
|
8390
8390
|
r,
|
|
8391
|
-
|
|
8392
|
-
]),
|
|
8391
|
+
A
|
|
8392
|
+
]), ne = N((e, t) => {
|
|
8393
8393
|
let r = t || (v?.sourceFolder ?? "/");
|
|
8394
8394
|
if (!C(e, f, {
|
|
8395
8395
|
type: Xn.Move,
|
|
8396
8396
|
sourceFolderPath: r
|
|
8397
8397
|
}).hasConflicts) {
|
|
8398
8398
|
let t = w(e, f, !0);
|
|
8399
|
-
n?.(t, r, e), i?.(),
|
|
8399
|
+
n?.(t, r, e), i?.(), A();
|
|
8400
8400
|
}
|
|
8401
8401
|
}, [
|
|
8402
8402
|
f,
|
|
@@ -8404,17 +8404,17 @@ var Br = (e) => {
|
|
|
8404
8404
|
w,
|
|
8405
8405
|
n,
|
|
8406
8406
|
i,
|
|
8407
|
-
|
|
8407
|
+
A,
|
|
8408
8408
|
v
|
|
8409
|
-
]),
|
|
8410
|
-
D(),
|
|
8411
|
-
}, [D,
|
|
8412
|
-
O(),
|
|
8413
|
-
}, [O,
|
|
8414
|
-
|
|
8415
|
-
}, [
|
|
8416
|
-
|
|
8417
|
-
}, [
|
|
8409
|
+
]), re = N(() => {
|
|
8410
|
+
D(), A();
|
|
8411
|
+
}, [D, A]), ie = N(() => {
|
|
8412
|
+
O(), A();
|
|
8413
|
+
}, [O, A]), j = N(() => {
|
|
8414
|
+
k(), A();
|
|
8415
|
+
}, [k, A]), ae = N((e) => {
|
|
8416
|
+
ee(e), A();
|
|
8417
|
+
}, [ee, A]), oe = N((e) => {
|
|
8418
8418
|
let n = e.at(0)?.parentPath ?? "/", r = w(n, e, !1);
|
|
8419
8419
|
t?.(r, n), a?.();
|
|
8420
8420
|
}, [
|
|
@@ -8424,14 +8424,14 @@ var Br = (e) => {
|
|
|
8424
8424
|
]), se = N((e) => {
|
|
8425
8425
|
h(e), l(!0);
|
|
8426
8426
|
}, []), ce = N(() => {
|
|
8427
|
-
l(!1), S.current ||
|
|
8428
|
-
}, [
|
|
8427
|
+
l(!1), S.current || A();
|
|
8428
|
+
}, [A, S]), [le, ue] = F();
|
|
8429
8429
|
return {
|
|
8430
8430
|
handleDuplicate: oe,
|
|
8431
8431
|
handleCloseDestinationFolderPopup: ce,
|
|
8432
8432
|
handleOpenDestinationFolderPopup: se,
|
|
8433
|
-
handleCopyTo:
|
|
8434
|
-
handleMoveTo:
|
|
8433
|
+
handleCopyTo: te,
|
|
8434
|
+
handleMoveTo: ne,
|
|
8435
8435
|
openDestinationFolderPopup: c,
|
|
8436
8436
|
destinationFolderMode: m,
|
|
8437
8437
|
destinationFolderTitle: le,
|
|
@@ -8446,15 +8446,15 @@ var Br = (e) => {
|
|
|
8446
8446
|
sourceFolder: t
|
|
8447
8447
|
}), s && e.length > 0 ? ue(s(e.length, e[0]?.name)) : ue(void 0);
|
|
8448
8448
|
}, [s]),
|
|
8449
|
-
clearState:
|
|
8449
|
+
clearState: A,
|
|
8450
8450
|
conflictingFiles: b,
|
|
8451
8451
|
conflictResolutionOpen: x,
|
|
8452
8452
|
openConflictResolution: E,
|
|
8453
8453
|
closeConflictResolution: T,
|
|
8454
|
-
handleConflictReplace:
|
|
8455
|
-
handleConflictCancel:
|
|
8456
|
-
handleConflictDuplicate:
|
|
8457
|
-
handleConflictDecideForEach:
|
|
8454
|
+
handleConflictReplace: re,
|
|
8455
|
+
handleConflictCancel: j,
|
|
8456
|
+
handleConflictDuplicate: ie,
|
|
8457
|
+
handleConflictDecideForEach: ae,
|
|
8458
8458
|
sourceFolder: g
|
|
8459
8459
|
};
|
|
8460
8460
|
}, $r = ({ path: e, defaultPath: t, onPathChange: n, onSelectionClear: r }) => {
|
|
@@ -8501,7 +8501,7 @@ var Br = (e) => {
|
|
|
8501
8501
|
]) }), ni = (e) => "dataTransfer" in e && e.dataTransfer !== null, ri = ({ onUploadFiles: e, onValidateUpload: t, maxFileSize: n, allowedFileTypes: r, validationMessages: i = {}, onUploadArchive: a, prepareUploadFileName: o, uploadEnabled: s = !0, currentFolder: c } = {}) => {
|
|
8502
8502
|
let [l, u] = F(!1), [d, f] = F(!1), [p, m] = F(), h = $e(null), g = $e(""), _ = $e([]), v = P(() => !!c?.permissions?.includes(xr.WRITE), [c]), [y, b] = F(/* @__PURE__ */ new Map()), [x, S] = F(null), C = N((e) => !r || r.includes("*/*") ? e : e.filter(({ fileContent: e, name: t }) => Fr(r, e.type, t)), [r]), w = N(() => {
|
|
8503
8503
|
b(/* @__PURE__ */ new Map()), S(null);
|
|
8504
|
-
}, []), { conflictingFiles: T, conflictResolutionOpen: E, hasActiveConflictRef: D, startConflictResolution: O, closeConflictResolution:
|
|
8504
|
+
}, []), { conflictingFiles: T, conflictResolutionOpen: E, hasActiveConflictRef: D, startConflictResolution: O, closeConflictResolution: k, openConflictResolution: ee, handleReplaceAll: A, handleDuplicateAll: te, handleCancelAll: ne, handleDecideForEach: re } = Zr({
|
|
8505
8505
|
getDestinationFiles: () => _.current,
|
|
8506
8506
|
onResolve: (t, n) => {
|
|
8507
8507
|
if (!s || !v) {
|
|
@@ -8526,10 +8526,10 @@ var Br = (e) => {
|
|
|
8526
8526
|
}
|
|
8527
8527
|
});
|
|
8528
8528
|
Ye(() => {
|
|
8529
|
-
s && v || (u(!1), f(!1), m(void 0),
|
|
8529
|
+
s && v || (u(!1), f(!1), m(void 0), k(), w());
|
|
8530
8530
|
}, [
|
|
8531
8531
|
s,
|
|
8532
|
-
|
|
8532
|
+
k,
|
|
8533
8533
|
w,
|
|
8534
8534
|
v
|
|
8535
8535
|
]), Ye(() => {
|
|
@@ -8547,7 +8547,7 @@ var Br = (e) => {
|
|
|
8547
8547
|
window.removeEventListener("dragenter", t), window.removeEventListener("dragleave", n), window.removeEventListener("drop", r), window.removeEventListener("dragover", i);
|
|
8548
8548
|
};
|
|
8549
8549
|
}, [s, v]);
|
|
8550
|
-
let
|
|
8550
|
+
let ie = N((e) => n ? e.filter((e) => e.fileContent.size > n).map((e) => e.name) : [], [n]), j = N((e, t) => e.map((e) => ({
|
|
8551
8551
|
id: e.name,
|
|
8552
8552
|
name: e.name,
|
|
8553
8553
|
folderId: t,
|
|
@@ -8555,13 +8555,13 @@ var Br = (e) => {
|
|
|
8555
8555
|
nodeType: yr.ITEM,
|
|
8556
8556
|
parentPath: t,
|
|
8557
8557
|
contentLength: e.fileContent.size
|
|
8558
|
-
})), []),
|
|
8558
|
+
})), []), ae = N(async (r, a, c) => {
|
|
8559
8559
|
if (!s || !v) return !1;
|
|
8560
8560
|
m(void 0), _.current = c;
|
|
8561
8561
|
let l = o ? r.map((e) => ({
|
|
8562
8562
|
...e,
|
|
8563
8563
|
name: o(e.name)
|
|
8564
|
-
})) : r, u =
|
|
8564
|
+
})) : r, u = ie(l);
|
|
8565
8565
|
if (u.length > 0) {
|
|
8566
8566
|
let e = n ? (n / 1048576).toFixed(2) : 0;
|
|
8567
8567
|
return m(i.oversizedFiles || `Files exceed maximum size (${e}MB): ${u.join(", ")}`), !1;
|
|
@@ -8573,32 +8573,32 @@ var Br = (e) => {
|
|
|
8573
8573
|
return m(i.validationError || "Validation error occurred"), !1;
|
|
8574
8574
|
}
|
|
8575
8575
|
b(new Map(l.map((e) => [e.name, e])));
|
|
8576
|
-
let d =
|
|
8576
|
+
let d = j(l, a);
|
|
8577
8577
|
return S({ destinationFolder: a }), O(a, d, { destinationFolder: a }).hasConflicts ? !1 : (e?.(l, a), w(), !0);
|
|
8578
8578
|
}, [
|
|
8579
8579
|
s,
|
|
8580
8580
|
e,
|
|
8581
8581
|
t,
|
|
8582
8582
|
o,
|
|
8583
|
-
|
|
8583
|
+
ie,
|
|
8584
8584
|
n,
|
|
8585
8585
|
i,
|
|
8586
|
-
|
|
8586
|
+
j,
|
|
8587
8587
|
O,
|
|
8588
8588
|
w,
|
|
8589
8589
|
v
|
|
8590
8590
|
]), oe = N(() => {
|
|
8591
|
-
|
|
8592
|
-
}, [
|
|
8591
|
+
A(), w();
|
|
8592
|
+
}, [A, w]), se = N(() => {
|
|
8593
|
+
te(), w();
|
|
8594
|
+
}, [te, w]), ce = N(() => {
|
|
8593
8595
|
ne(), w();
|
|
8594
|
-
}, [ne, w]),
|
|
8595
|
-
re(), w();
|
|
8596
|
-
}, [re, w]),
|
|
8597
|
-
|
|
8598
|
-
}, [ie, w]), ue = N(() => {
|
|
8599
|
-
ee(), D.current || w();
|
|
8596
|
+
}, [ne, w]), le = N((e) => {
|
|
8597
|
+
re(e), w();
|
|
8598
|
+
}, [re, w]), ue = N(() => {
|
|
8599
|
+
k(), D.current || w();
|
|
8600
8600
|
}, [
|
|
8601
|
-
|
|
8601
|
+
k,
|
|
8602
8602
|
D,
|
|
8603
8603
|
w
|
|
8604
8604
|
]), de = N((e) => {
|
|
@@ -8634,11 +8634,11 @@ var Br = (e) => {
|
|
|
8634
8634
|
m(i.unsupportedFiles || "Selected files are not supported");
|
|
8635
8635
|
return;
|
|
8636
8636
|
}
|
|
8637
|
-
await
|
|
8637
|
+
await ae(c, t, n);
|
|
8638
8638
|
}, [
|
|
8639
8639
|
s,
|
|
8640
8640
|
C,
|
|
8641
|
-
|
|
8641
|
+
ae,
|
|
8642
8642
|
i,
|
|
8643
8643
|
v
|
|
8644
8644
|
]), he = $e(() => {});
|
|
@@ -8660,7 +8660,7 @@ var Br = (e) => {
|
|
|
8660
8660
|
return;
|
|
8661
8661
|
}
|
|
8662
8662
|
try {
|
|
8663
|
-
await
|
|
8663
|
+
await ae(t, g.current, _.current);
|
|
8664
8664
|
} catch {
|
|
8665
8665
|
m(i.validationError || "Upload failed");
|
|
8666
8666
|
} finally {
|
|
@@ -8671,7 +8671,7 @@ var Br = (e) => {
|
|
|
8671
8671
|
s,
|
|
8672
8672
|
v,
|
|
8673
8673
|
C,
|
|
8674
|
-
|
|
8674
|
+
ae,
|
|
8675
8675
|
i
|
|
8676
8676
|
]), Ye(() => {
|
|
8677
8677
|
let e = document.createElement("input");
|
|
@@ -8736,14 +8736,14 @@ var Br = (e) => {
|
|
|
8736
8736
|
clearError: N(() => {
|
|
8737
8737
|
m(void 0);
|
|
8738
8738
|
}, []),
|
|
8739
|
-
handleUpload:
|
|
8739
|
+
handleUpload: ae,
|
|
8740
8740
|
openFileDialog: ge,
|
|
8741
8741
|
openArchiveDialog: _e,
|
|
8742
8742
|
fileInputRef: h,
|
|
8743
8743
|
uploadConflictingFiles: T,
|
|
8744
8744
|
uploadConflictResolutionOpen: E,
|
|
8745
8745
|
hasActiveUploadConflictRef: D,
|
|
8746
|
-
openUploadConflictResolution:
|
|
8746
|
+
openUploadConflictResolution: ee,
|
|
8747
8747
|
closeUploadConflictResolution: ue,
|
|
8748
8748
|
handleUploadConflictReplace: oe,
|
|
8749
8749
|
handleUploadConflictDuplicate: se,
|
|
@@ -9026,9 +9026,9 @@ var fi = ({ items: e, onRenameValidate: t, validationMessages: n, onMoveToFiles:
|
|
|
9026
9026
|
};
|
|
9027
9027
|
}, _i = ({ additionalButtons: e, expandedPathsLength: t, collapseAll: n }) => {
|
|
9028
9028
|
let r = t === 0;
|
|
9029
|
-
return { additionalButtons: P(() => /* @__PURE__ */ L(et, { children: [e, /* @__PURE__ */ I(
|
|
9029
|
+
return { additionalButtons: P(() => /* @__PURE__ */ L(et, { children: [e, /* @__PURE__ */ I(ie, {
|
|
9030
9030
|
disabled: r,
|
|
9031
|
-
size:
|
|
9031
|
+
size: ee.Small,
|
|
9032
9032
|
onClick: n,
|
|
9033
9033
|
icon: /* @__PURE__ */ I(mt, {
|
|
9034
9034
|
size: m.LG,
|
|
@@ -9136,7 +9136,7 @@ function Si({ selectedPaths: e, defaultSelectedPaths: t, onSelectedPathsChange:
|
|
|
9136
9136
|
isControlled: r
|
|
9137
9137
|
};
|
|
9138
9138
|
}
|
|
9139
|
-
var Ci = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem: i, path: a, defaultPath: o, filesLoading: s, selectedPaths: c, defaultSelectedPaths: l, onSelectedPathsChange: u, showHiddenFiles: d, onShowHiddenFilesChange: f, treeOptions: p, showNavigationPanel: m = !0, navigationPanelOptions: h, deleteConfirmationOptions: g, gridOptions: _, toolbarOptions: v, bulkActionsToolbarOptions: y, destinationFolderPopupOptions: b, conflictResolutionPopupOptions: x, onPathChange: S, onTableFileClick: C, handleSelectionClick: w, onGridApiChange: T, onCopyFiles: E, onMoveToFiles: D, onDeleteFiles: O, onDownloadFiles:
|
|
9139
|
+
var Ci = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem: i, path: a, defaultPath: o, filesLoading: s, selectedPaths: c, defaultSelectedPaths: l, onSelectedPathsChange: u, showHiddenFiles: d, onShowHiddenFilesChange: f, treeOptions: p, showNavigationPanel: m = !0, navigationPanelOptions: h, deleteConfirmationOptions: g, gridOptions: _, toolbarOptions: v, bulkActionsToolbarOptions: y, destinationFolderPopupOptions: b, conflictResolutionPopupOptions: x, onPathChange: S, onTableFileClick: C, handleSelectionClick: w, onGridApiChange: T, onCopyFiles: E, onMoveToFiles: D, onDeleteFiles: O, onDownloadFiles: k, onRenameValidate: ee, renameValidationMessages: A, forbiddenSymbolsRegExp: te = ue, forbiddenSymbolsTooltip: ne, onUploadFiles: re, onValidateUpload: ie, uploadEnabled: j, uploadValidationMessages: ae, maxFileSize: oe, onUploadArchive: se, prepareUploadFileName: ce, onCreateFolder: le, onCreateFolderValidate: de, folderCreationValidationMessages: fe, fileMetadataPopupOptions: pe, onGetInfo: me, onUnshareFiles: he, onRemoveFilesAccess: ge, actionsRef: _e, sharedByMePaths: M, onSearchFiles: ve, searchResults: ye, searchInProgress: be, clearSearchResults: xe, allowedFileTypes: Se, maxSelectableFileSize: Ce, getDisabledTooltip: we, fileTooLargeTooltip: Te, unsupportedFileTypeTooltip: Ee, emptyStateIcon: De, emptyStateTitle: Oe, emptyStateDescription: ke, sharedWithMeIds: Ae, onFolderPopupPathChange: je, onManagePermissions: Me, onPreview: Ne, onOpenInNewTab: Pe, previewExtensions: Fe, isRenameFileAvailable: Ie, isDuplicateFolderAvailable: Le, customUploadFileAction: Re, customCreateNewItemAction: ze, customDuplicateAction: Be, customDeleteItemsAction: Ve, customDownloadItemsAction: He, customBreakpointRef: Ue, gridClassName: We, nonClickableTableColumns: Ge, hideSearchPathItemName: Ke, showHiddenFileSwitcherInDestinationPopup: qe, showCreateFolderButtonInDestinationPopup: Je, autoSelectUploadedItems: Xe = !1, maxNewFolderDepth: Ze, onNewFolderDepthExceeded: Qe, initialUploadFilesOpen: et }) => {
|
|
9140
9140
|
let { selectedPaths: L, clearSelection: tt, setSelectedPaths: nt } = Si({
|
|
9141
9141
|
selectedPaths: c,
|
|
9142
9142
|
defaultSelectedPaths: l,
|
|
@@ -9154,8 +9154,8 @@ var Ci = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
|
|
|
9154
9154
|
Xe && (it.current = {
|
|
9155
9155
|
fileNames: new Set(e.map((e) => e.name)),
|
|
9156
9156
|
destinationFolder: t
|
|
9157
|
-
}),
|
|
9158
|
-
}, [
|
|
9157
|
+
}), re?.(e, t);
|
|
9158
|
+
}, [re, Xe]), st = N((e, t, n) => {
|
|
9159
9159
|
Xe && (it.current = {
|
|
9160
9160
|
fileNames: /* @__PURE__ */ new Set([t]),
|
|
9161
9161
|
destinationFolder: n
|
|
@@ -9206,8 +9206,8 @@ var Ci = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
|
|
|
9206
9206
|
onCollapseChange: p?.onCollapseChange
|
|
9207
9207
|
}), { renamedPath: wt, renamedItem: Tt, renameHandler: Et, renameSaveHandler: Dt, renameCancelHandler: Ot, renameValidateHandler: kt, getDisplayName: At } = fi({
|
|
9208
9208
|
items: r,
|
|
9209
|
-
onRenameValidate:
|
|
9210
|
-
validationMessages:
|
|
9209
|
+
onRenameValidate: ee,
|
|
9210
|
+
validationMessages: A,
|
|
9211
9211
|
onMoveToFiles: D
|
|
9212
9212
|
}), { isSearchMode: jt, searchValue: Mt, effectiveSearchValue: Nt, setSearchValue: Pt, handleSearchChange: Ft, handleSearchClear: It, searchResultsRows: Lt } = xi({
|
|
9213
9213
|
onSearchFiles: ve,
|
|
@@ -9238,18 +9238,18 @@ var Ci = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
|
|
|
9238
9238
|
onDeleteFiles: O,
|
|
9239
9239
|
onDeleteSuccess: tt
|
|
9240
9240
|
}), { handleDownloadFiles: dn } = ti({
|
|
9241
|
-
onDownloadFiles:
|
|
9241
|
+
onDownloadFiles: k,
|
|
9242
9242
|
customDownloadItemsAction: He,
|
|
9243
9243
|
onDownloadSuccess: tt
|
|
9244
9244
|
}), { isDragging: fn, isDraggingOverWindow: pn, uploadError: mn, handleDragEnter: hn, handleDragLeave: gn, handleDragOver: _n, handleDrop: vn, clearError: yn, openFileDialog: bn, fileInputRef: xn, openArchiveDialog: Sn, uploadConflictingFiles: Cn, uploadConflictResolutionOpen: wn, closeUploadConflictResolution: Tn, handleUploadConflictReplace: En, handleUploadConflictDuplicate: Dn, handleUploadConflictCancel: On, handleUploadConflictDecideForEach: kn } = ri({
|
|
9245
9245
|
onUploadFiles: ot,
|
|
9246
|
-
onValidateUpload:
|
|
9246
|
+
onValidateUpload: ie,
|
|
9247
9247
|
maxFileSize: oe,
|
|
9248
9248
|
onUploadArchive: st,
|
|
9249
9249
|
prepareUploadFileName: ce,
|
|
9250
9250
|
allowedFileTypes: Se,
|
|
9251
|
-
validationMessages:
|
|
9252
|
-
uploadEnabled:
|
|
9251
|
+
validationMessages: ae,
|
|
9252
|
+
uploadEnabled: j,
|
|
9253
9253
|
currentFolder: Rt
|
|
9254
9254
|
}), An = N((e) => {
|
|
9255
9255
|
It(), vn(e, lt ?? "", Rt?.items ?? []);
|
|
@@ -9493,8 +9493,8 @@ var Ci = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
|
|
|
9493
9493
|
]), { isMetadataPopupOpen: lr, selectedFileForMetadata: ur, openMetadataPopup: dr, closeMetadataPopup: fr } = vi({ onGetInfo: me }), pr = N(() => {
|
|
9494
9494
|
fr(), pe?.clearMetadata?.();
|
|
9495
9495
|
}, [fr, pe]), mr = P(() => {
|
|
9496
|
-
if (
|
|
9497
|
-
}, [
|
|
9496
|
+
if (te) return Rr(te);
|
|
9497
|
+
}, [te]), hr = {
|
|
9498
9498
|
managerLabel: e,
|
|
9499
9499
|
className: n,
|
|
9500
9500
|
items: r,
|
|
@@ -9557,7 +9557,7 @@ var Ci = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
|
|
|
9557
9557
|
renamedPath: wt,
|
|
9558
9558
|
renamedItem: Tt,
|
|
9559
9559
|
forbiddenSymbolsRegExp: mr,
|
|
9560
|
-
forbiddenSymbolsTooltip:
|
|
9560
|
+
forbiddenSymbolsTooltip: ne,
|
|
9561
9561
|
onRename: Et,
|
|
9562
9562
|
onRenameSave: Dt,
|
|
9563
9563
|
onRenameCancel: Ot,
|
|
@@ -9583,8 +9583,8 @@ var Ci = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
|
|
|
9583
9583
|
handleDragOver: _n,
|
|
9584
9584
|
handleDrop: An,
|
|
9585
9585
|
clearUploadError: yn,
|
|
9586
|
-
onUploadFiles:
|
|
9587
|
-
onValidateUpload:
|
|
9586
|
+
onUploadFiles: re,
|
|
9587
|
+
onValidateUpload: ie,
|
|
9588
9588
|
maxFileSize: oe,
|
|
9589
9589
|
isDraggingOverWindow: pn,
|
|
9590
9590
|
openFileDialog: jn,
|
|
@@ -9724,9 +9724,9 @@ var Ci = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
|
|
|
9724
9724
|
return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
9725
9725
|
}, []), e;
|
|
9726
9726
|
}, Di = ({ onClose: e, onConfirm: n, onFolderPopupPathChange: r, setDestinationFolderPath: i, open: a, copyLabel: o = "Copy", moveLabel: s = "Move", addFolderLabel: c = "Add folder", mode: l = Xn.Copy, hiddenFilesSwitcherLabel: u = "Show hidden files", showHiddenFileSwitcher: d = !0, showCreateFolderButton: f = !0, onUploadFiles: p, onValidateUpload: m, maxFileSize: h, header: g, sourceFolder: _, disabledPathTooltip: v = "Unavailable for the original path. Please select another folder", path: y, collapsedFileTree: b = !1, alertProps: x, processDestinationFolderPath: S, ...C }) => {
|
|
9727
|
-
let [w, T] = F(!1), [E, O] = F(!1),
|
|
9727
|
+
let [w, T] = F(!1), [E, O] = F(!1), k = $e(null), A = Ei(), te = N((e) => {
|
|
9728
9728
|
T(e);
|
|
9729
|
-
}, []),
|
|
9729
|
+
}, []), ne = P(() => {
|
|
9730
9730
|
let e = [];
|
|
9731
9731
|
return f && e.push({
|
|
9732
9732
|
key: "add-folder",
|
|
@@ -9736,7 +9736,7 @@ var Ci = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
|
|
|
9736
9736
|
className: "text-secondary"
|
|
9737
9737
|
}),
|
|
9738
9738
|
onClick: () => {
|
|
9739
|
-
|
|
9739
|
+
k.current?.createFolder(), O(!1);
|
|
9740
9740
|
}
|
|
9741
9741
|
}), d && e.push({
|
|
9742
9742
|
key: "show-hidden-files",
|
|
@@ -9754,7 +9754,7 @@ var Ci = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
|
|
|
9754
9754
|
u,
|
|
9755
9755
|
d,
|
|
9756
9756
|
f
|
|
9757
|
-
]),
|
|
9757
|
+
]), re = N((e) => {
|
|
9758
9758
|
if (e) {
|
|
9759
9759
|
let t = S ? S(e) : e;
|
|
9760
9760
|
r?.(t), i?.(t);
|
|
@@ -9763,7 +9763,7 @@ var Ci = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
|
|
|
9763
9763
|
r,
|
|
9764
9764
|
i,
|
|
9765
9765
|
S
|
|
9766
|
-
]),
|
|
9766
|
+
]), j = l === Xn.Copy ? "Copy to" : "Move to", ae = P(() => !y || !_ ? !1 : _ === y, [y, _]);
|
|
9767
9767
|
return /* @__PURE__ */ I(_e, {
|
|
9768
9768
|
open: a,
|
|
9769
9769
|
onClose: () => {
|
|
@@ -9775,12 +9775,12 @@ var Ci = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
|
|
|
9775
9775
|
className: "flex justify-between items-center gap-2 p-4 md:px-6",
|
|
9776
9776
|
children: [/* @__PURE__ */ I("div", {
|
|
9777
9777
|
className: "flex items-center gap-4 min-w-0",
|
|
9778
|
-
children:
|
|
9779
|
-
items:
|
|
9778
|
+
children: A ? /* @__PURE__ */ I(D, {
|
|
9779
|
+
items: ne,
|
|
9780
9780
|
open: E,
|
|
9781
9781
|
onOpenChange: O,
|
|
9782
|
-
children: /* @__PURE__ */ I(
|
|
9783
|
-
size:
|
|
9782
|
+
children: /* @__PURE__ */ I(ie, {
|
|
9783
|
+
size: ee.Large,
|
|
9784
9784
|
"aria-label": "More options",
|
|
9785
9785
|
icon: /* @__PURE__ */ I(gt, { ...Kn })
|
|
9786
9786
|
})
|
|
@@ -9790,7 +9790,7 @@ var Ci = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
|
|
|
9790
9790
|
appearance: t.Ghost,
|
|
9791
9791
|
iconBefore: /* @__PURE__ */ I(Et, { ...Kn }),
|
|
9792
9792
|
onClick: () => {
|
|
9793
|
-
|
|
9793
|
+
k.current?.createFolder();
|
|
9794
9794
|
}
|
|
9795
9795
|
}),
|
|
9796
9796
|
f && d && /* @__PURE__ */ I("div", { className: "w-px h-[26px] bg-control-disable-primary my-2" }),
|
|
@@ -9799,7 +9799,7 @@ var Ci = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
|
|
|
9799
9799
|
children: /* @__PURE__ */ I(Oe, {
|
|
9800
9800
|
labelProps: { label: u },
|
|
9801
9801
|
isOn: w,
|
|
9802
|
-
onChange:
|
|
9802
|
+
onChange: te,
|
|
9803
9803
|
id: "hidden-files-switch-modal"
|
|
9804
9804
|
})
|
|
9805
9805
|
}) })
|
|
@@ -9809,13 +9809,13 @@ var Ci = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
|
|
|
9809
9809
|
children: [/* @__PURE__ */ I(de, {
|
|
9810
9810
|
onClick: e,
|
|
9811
9811
|
label: "Cancel"
|
|
9812
|
-
}),
|
|
9812
|
+
}), ae ? /* @__PURE__ */ I(Me, {
|
|
9813
9813
|
tooltip: v,
|
|
9814
9814
|
children: /* @__PURE__ */ I(ve, {
|
|
9815
9815
|
onClick: n,
|
|
9816
9816
|
label: l === "copy" ? o : s,
|
|
9817
|
-
disabled:
|
|
9818
|
-
"aria-disabled":
|
|
9817
|
+
disabled: ae,
|
|
9818
|
+
"aria-disabled": ae
|
|
9819
9819
|
})
|
|
9820
9820
|
}) : /* @__PURE__ */ I(ve, {
|
|
9821
9821
|
onClick: n,
|
|
@@ -9823,8 +9823,8 @@ var Ci = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
|
|
|
9823
9823
|
})]
|
|
9824
9824
|
})]
|
|
9825
9825
|
}),
|
|
9826
|
-
header: g ??
|
|
9827
|
-
ariaLabel:
|
|
9826
|
+
header: g ?? j,
|
|
9827
|
+
ariaLabel: j,
|
|
9828
9828
|
children: /* @__PURE__ */ L("div", {
|
|
9829
9829
|
className: "bg-layer-sunken h-full flex flex-col",
|
|
9830
9830
|
children: [x && /* @__PURE__ */ I("div", {
|
|
@@ -9836,10 +9836,10 @@ var Ci = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
|
|
|
9836
9836
|
...C,
|
|
9837
9837
|
gridClassName: "size-full",
|
|
9838
9838
|
className: ze(C.className, "bg-layer-sunken h-full flex pt-0"),
|
|
9839
|
-
actionsRef:
|
|
9839
|
+
actionsRef: k,
|
|
9840
9840
|
path: y,
|
|
9841
9841
|
showHiddenFiles: w,
|
|
9842
|
-
onShowHiddenFilesChange:
|
|
9842
|
+
onShowHiddenFilesChange: te,
|
|
9843
9843
|
treeOptions: {
|
|
9844
9844
|
...C.treeOptions,
|
|
9845
9845
|
collapsed: b,
|
|
@@ -9856,17 +9856,17 @@ var Ci = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
|
|
|
9856
9856
|
},
|
|
9857
9857
|
onUploadFiles: p,
|
|
9858
9858
|
onValidateUpload: m,
|
|
9859
|
-
onPathChange:
|
|
9859
|
+
onPathChange: re,
|
|
9860
9860
|
maxFileSize: h
|
|
9861
9861
|
})
|
|
9862
9862
|
})]
|
|
9863
9863
|
})
|
|
9864
9864
|
});
|
|
9865
9865
|
};
|
|
9866
|
-
function Oi({ actions: t, direction: n =
|
|
9866
|
+
function Oi({ actions: t, direction: n = te.Normal, moreButtonWidth: r = e, actionsGap: i = 8, containerPadding: a = 8, dependencies: o = [] }) {
|
|
9867
9867
|
let s = $e(null), c = $e(null), l = $e(null), u = $e(null), d = $e([]), [f, p] = F(0), m = N((e, t) => {
|
|
9868
9868
|
let o = (l.current?.offsetWidth ?? 0) + (u.current?.offsetWidth ?? 0), s = t.getBoundingClientRect().width - o - r - i * 2 - a * 2, c = 0, d = 0;
|
|
9869
|
-
if (n ===
|
|
9869
|
+
if (n === te.Reverse) for (let t = e.length - 1; t >= 0 && (c += e[t] + i, !(c > s)); t--) d++;
|
|
9870
9870
|
else for (let t of e) {
|
|
9871
9871
|
if (c += t + i, c > s) break;
|
|
9872
9872
|
d++;
|
|
@@ -9903,9 +9903,9 @@ function Oi({ actions: t, direction: n = ne.Normal, moreButtonWidth: r = e, acti
|
|
|
9903
9903
|
m,
|
|
9904
9904
|
...o
|
|
9905
9905
|
]);
|
|
9906
|
-
let h = n ===
|
|
9906
|
+
let h = n === te.Reverse ? t.slice(0, t.length - f) : t.slice(f);
|
|
9907
9907
|
return {
|
|
9908
|
-
visibleActions: n ===
|
|
9908
|
+
visibleActions: n === te.Reverse ? t.slice(t.length - f) : t.slice(0, f),
|
|
9909
9909
|
hiddenActions: h,
|
|
9910
9910
|
refs: {
|
|
9911
9911
|
containerRef: s,
|
|
@@ -9918,7 +9918,7 @@ function Oi({ actions: t, direction: n = ne.Normal, moreButtonWidth: r = e, acti
|
|
|
9918
9918
|
var ki = 12, Ai = 8, ji = ({ getSelectionLabel: e, onClearSelection: n, actions: r, selectedCount: i }) => {
|
|
9919
9919
|
let a = Ei(), { refs: { containerRef: o, leftSectionRef: s, measureRef: c }, visibleActions: l, hiddenActions: u } = Oi({
|
|
9920
9920
|
actions: r,
|
|
9921
|
-
direction:
|
|
9921
|
+
direction: te.Reverse,
|
|
9922
9922
|
dependencies: [a],
|
|
9923
9923
|
actionsGap: ki,
|
|
9924
9924
|
containerPadding: Ai
|
|
@@ -9949,7 +9949,7 @@ var ki = 12, Ai = 8, ji = ({ getSelectionLabel: e, onClearSelection: n, actions:
|
|
|
9949
9949
|
children: [u.length > 0 && /* @__PURE__ */ I(D, {
|
|
9950
9950
|
items: u,
|
|
9951
9951
|
allowedPlacements: ["bottom", "bottom-start"],
|
|
9952
|
-
children: /* @__PURE__ */ I(
|
|
9952
|
+
children: /* @__PURE__ */ I(ie, {
|
|
9953
9953
|
className: "h-[38px]",
|
|
9954
9954
|
icon: /* @__PURE__ */ I(gt, { ...Kn })
|
|
9955
9955
|
})
|
|
@@ -10081,8 +10081,8 @@ var ki = 12, Ai = 8, ji = ({ getSelectionLabel: e, onClearSelection: n, actions:
|
|
|
10081
10081
|
y
|
|
10082
10082
|
]), E = N(() => {
|
|
10083
10083
|
(!d || String(d).trim() === "") && h?.("");
|
|
10084
|
-
}, [d, h]), D = N(() => y && S ? /* @__PURE__ */ I(
|
|
10085
|
-
size:
|
|
10084
|
+
}, [d, h]), D = N(() => y && S ? /* @__PURE__ */ I(ie, {
|
|
10085
|
+
size: ee.Standard,
|
|
10086
10086
|
"aria-label": b,
|
|
10087
10087
|
icon: /* @__PURE__ */ I(rt, { ...Kn }),
|
|
10088
10088
|
onClick: () => {
|
|
@@ -10159,8 +10159,8 @@ var ki = 12, Ai = 8, ji = ({ getSelectionLabel: e, onClearSelection: n, actions:
|
|
|
10159
10159
|
children: v ? /* @__PURE__ */ L(et, { children: [/* @__PURE__ */ I(D, {
|
|
10160
10160
|
items: y,
|
|
10161
10161
|
allowedPlacements: ["bottom", "bottom-start"],
|
|
10162
|
-
children: /* @__PURE__ */ I(
|
|
10163
|
-
size:
|
|
10162
|
+
children: /* @__PURE__ */ I(ie, {
|
|
10163
|
+
size: ee.Small,
|
|
10164
10164
|
icon: /* @__PURE__ */ I(gt, {
|
|
10165
10165
|
stroke: Gn,
|
|
10166
10166
|
size: m.SM
|
|
@@ -10259,7 +10259,7 @@ var ki = 12, Ai = 8, ji = ({ getSelectionLabel: e, onClearSelection: n, actions:
|
|
|
10259
10259
|
}),
|
|
10260
10260
|
/* @__PURE__ */ I("div", {
|
|
10261
10261
|
className: Hi,
|
|
10262
|
-
children: /* @__PURE__ */ I(
|
|
10262
|
+
children: /* @__PURE__ */ I(A, { text: n.name })
|
|
10263
10263
|
}),
|
|
10264
10264
|
/* @__PURE__ */ I("div", {
|
|
10265
10265
|
className: Vi,
|
|
@@ -10267,7 +10267,7 @@ var ki = 12, Ai = 8, ji = ({ getSelectionLabel: e, onClearSelection: n, actions:
|
|
|
10267
10267
|
}),
|
|
10268
10268
|
/* @__PURE__ */ I("div", {
|
|
10269
10269
|
className: Hi,
|
|
10270
|
-
children: /* @__PURE__ */ I(
|
|
10270
|
+
children: /* @__PURE__ */ I(A, { text: Pr(n.updatedAt, u, d) })
|
|
10271
10271
|
}),
|
|
10272
10272
|
/* @__PURE__ */ I("div", {
|
|
10273
10273
|
className: Vi,
|
|
@@ -10275,7 +10275,7 @@ var ki = 12, Ai = 8, ji = ({ getSelectionLabel: e, onClearSelection: n, actions:
|
|
|
10275
10275
|
}),
|
|
10276
10276
|
/* @__PURE__ */ I("div", {
|
|
10277
10277
|
className: Hi,
|
|
10278
|
-
children: /* @__PURE__ */ I(
|
|
10278
|
+
children: /* @__PURE__ */ I(A, { text: Nr(n.contentLength) })
|
|
10279
10279
|
}),
|
|
10280
10280
|
/* @__PURE__ */ I("div", {
|
|
10281
10281
|
className: Vi,
|
|
@@ -10283,7 +10283,7 @@ var ki = 12, Ai = 8, ji = ({ getSelectionLabel: e, onClearSelection: n, actions:
|
|
|
10283
10283
|
}),
|
|
10284
10284
|
/* @__PURE__ */ I("div", {
|
|
10285
10285
|
className: Hi,
|
|
10286
|
-
children: /* @__PURE__ */ I(
|
|
10286
|
+
children: /* @__PURE__ */ I(A, { text: n.author || "—" })
|
|
10287
10287
|
}),
|
|
10288
10288
|
/* @__PURE__ */ I("div", {
|
|
10289
10289
|
className: Vi,
|
|
@@ -10378,7 +10378,7 @@ var ki = 12, Ai = 8, ji = ({ getSelectionLabel: e, onClearSelection: n, actions:
|
|
|
10378
10378
|
})]
|
|
10379
10379
|
});
|
|
10380
10380
|
}, Zi = ({ name: t, type: n, elementId: r, editing: i = !1, loading: a = !1, creating: o = !1, shared: s = !1, iconSize: c = e, validate: l, onSave: u, fileExtension: d, onCancel: f, onCreateFolderCancel: p, onCreateFolderSave: m, inputContainerClassName: h, sharedIndicatorClassName: g, sharedIndicatorTooltip: _, hideTooltip: v = !1, forbiddenSymbolsRegExp: y, forbiddenSymbolsTooltip: x, ...C }) => {
|
|
10381
|
-
let { value: T, invalid: E, invalidMessage: D, onChange: O, inputRef:
|
|
10381
|
+
let { value: T, invalid: E, invalidMessage: D, onChange: O, inputRef: k } = Be({
|
|
10382
10382
|
value: t,
|
|
10383
10383
|
isEditing: i,
|
|
10384
10384
|
isCreating: o,
|
|
@@ -10422,7 +10422,7 @@ var ki = 12, Ai = 8, ji = ({ getSelectionLabel: e, onClearSelection: n, actions:
|
|
|
10422
10422
|
elementId: r,
|
|
10423
10423
|
inputInvalid: E,
|
|
10424
10424
|
inputInvalidMessage: D,
|
|
10425
|
-
inputRef:
|
|
10425
|
+
inputRef: k,
|
|
10426
10426
|
onChange: O,
|
|
10427
10427
|
iconSize: c,
|
|
10428
10428
|
fileExtension: d,
|
|
@@ -10431,12 +10431,12 @@ var ki = 12, Ai = 8, ji = ({ getSelectionLabel: e, onClearSelection: n, actions:
|
|
|
10431
10431
|
sharedIndicatorClassName: g
|
|
10432
10432
|
});
|
|
10433
10433
|
}, Qi = ({ items: e, showFiles: t = !1, expandedPaths: n, loadingPaths: r = /* @__PURE__ */ new Set(), loadedPaths: i = /* @__PURE__ */ new Set(), sharedByMePaths: a = /* @__PURE__ */ new Set(), selectedPath: o, emptyStateTitle: s = "No Folders", emptyStateDescription: c, emptyStateIcon: l, areHiddenFilesVisible: u = !1, renamedPath: d, createdFolderPath: f, rootItemLabel: p, rootItemPath: m, onItemClick: h, getContextMenuItems: g, onRenameSave: _, onRenameCancel: v, onRenameValidate: y, onExpandedPathsChange: b, onCreateFolderSave: x, onCreateFolderCancel: S, forbiddenSymbolsRegExp: C, forbiddenSymbolsTooltip: T, newFolderDefaultName: E }) => {
|
|
10434
|
-
let { expandedPaths: O, togglePath:
|
|
10434
|
+
let { expandedPaths: O, togglePath: A } = pi({
|
|
10435
10435
|
expandedPaths: n ?? /* @__PURE__ */ new Set(),
|
|
10436
10436
|
onExpandedPathsChange: b
|
|
10437
|
-
}),
|
|
10438
|
-
h?.(e),
|
|
10439
|
-
},
|
|
10437
|
+
}), te = (e) => {
|
|
10438
|
+
h?.(e), A(e.path);
|
|
10439
|
+
}, ne = (e, n, s) => {
|
|
10440
10440
|
let c = e;
|
|
10441
10441
|
return s && s.path === f && (c = [{
|
|
10442
10442
|
folderId: Ji,
|
|
@@ -10450,7 +10450,7 @@ var ki = 12, Ai = 8, ji = ({ getSelectionLabel: e, onClearSelection: n, actions:
|
|
|
10450
10450
|
let { path: s, nodeType: c, name: l, items: h } = e, b = c === yr.FOLDER;
|
|
10451
10451
|
if (!u && Mr(e)) return null;
|
|
10452
10452
|
if (!b && !t) return;
|
|
10453
|
-
let E = Array.isArray(h) && h.length > 0 && h.some((e) => e.nodeType === yr.FOLDER || t),
|
|
10453
|
+
let E = Array.isArray(h) && h.length > 0 && h.some((e) => e.nodeType === yr.FOLDER || t), A = O.has(s), re = o === s, j = r.has(s), ae = d === s || s === `${f}/${Ji}`, oe = i.has(s), se = a.has(s), ce = m && p && s === m && b, le = y && ((t) => y(t, e)), ue = re ? "bg-control-accent-alpha rounded" : "", de = ce ? [] : g?.(e) ?? [], fe = C ? zr({
|
|
10454
10454
|
name: e.name,
|
|
10455
10455
|
isFolder: b
|
|
10456
10456
|
}, C, T) : void 0;
|
|
@@ -10460,37 +10460,37 @@ var ki = 12, Ai = 8, ji = ({ getSelectionLabel: e, onClearSelection: n, actions:
|
|
|
10460
10460
|
className: "flex flex-col w-full gap-1",
|
|
10461
10461
|
"aria-label": "folder",
|
|
10462
10462
|
children: [/* @__PURE__ */ I(D, {
|
|
10463
|
-
trigger: [
|
|
10463
|
+
trigger: [k.ContextMenu],
|
|
10464
10464
|
className: "w-full h-[32px]",
|
|
10465
10465
|
anchorToMouse: !0,
|
|
10466
10466
|
items: de,
|
|
10467
10467
|
children: /* @__PURE__ */ L("div", {
|
|
10468
10468
|
style: { paddingLeft: `${n * qi}px` },
|
|
10469
10469
|
className: ze("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", ue),
|
|
10470
|
-
"aria-selected":
|
|
10470
|
+
"aria-selected": re,
|
|
10471
10471
|
children: [
|
|
10472
|
-
!
|
|
10472
|
+
!ae && /* @__PURE__ */ I("div", {
|
|
10473
10473
|
className: "absolute size-full left-0 top-0 z-0",
|
|
10474
|
-
onClick: () =>
|
|
10474
|
+
onClick: () => te(e)
|
|
10475
10475
|
}),
|
|
10476
10476
|
/* @__PURE__ */ I("div", {
|
|
10477
10477
|
className: "relative flex flex-row truncate items-center w-fit h-6 gap-x-1 pl-1",
|
|
10478
|
-
onClick: () => !
|
|
10478
|
+
onClick: () => !ae && te(e),
|
|
10479
10479
|
children: /* @__PURE__ */ L(et, { children: [b && /* @__PURE__ */ I(ot, {
|
|
10480
10480
|
...Ki,
|
|
10481
|
-
className: (0, Rn.default)("flex-shrink-0",
|
|
10481
|
+
className: (0, Rn.default)("flex-shrink-0", A && "rotate-90 transition-all", oe && !E && "text-transparent")
|
|
10482
10482
|
}), /* @__PURE__ */ I(Zi, {
|
|
10483
10483
|
elementId: `${s}-tree-item`,
|
|
10484
10484
|
name: ce ? p : l,
|
|
10485
10485
|
type: b ? w.Folder : w.File,
|
|
10486
|
-
loading:
|
|
10486
|
+
loading: j,
|
|
10487
10487
|
shared: se,
|
|
10488
|
-
sharedIndicatorClassName: ze("group-hover/item:bg-control-accent-alpha-hover",
|
|
10488
|
+
sharedIndicatorClassName: ze("group-hover/item:bg-control-accent-alpha-hover", re && "bg-control-accent-alpha"),
|
|
10489
10489
|
iconSize: ur,
|
|
10490
10490
|
forbiddenSymbolsRegExp: C,
|
|
10491
10491
|
forbiddenSymbolsTooltip: fe,
|
|
10492
10492
|
...!ce && {
|
|
10493
|
-
editing:
|
|
10493
|
+
editing: ae,
|
|
10494
10494
|
creating: s === `${f}/${Ji}`,
|
|
10495
10495
|
onSave: _,
|
|
10496
10496
|
onCancel: v,
|
|
@@ -10500,15 +10500,15 @@ var ki = 12, Ai = 8, ji = ({ getSelectionLabel: e, onClearSelection: n, actions:
|
|
|
10500
10500
|
}
|
|
10501
10501
|
})] })
|
|
10502
10502
|
}),
|
|
10503
|
-
de.length > 0 && !
|
|
10503
|
+
de.length > 0 && !ae && !ce && /* @__PURE__ */ I("div", {
|
|
10504
10504
|
className: "flex-1 flex justify-end",
|
|
10505
10505
|
children: /* @__PURE__ */ I(D, {
|
|
10506
10506
|
placement: "bottom-start",
|
|
10507
10507
|
allowedPlacements: ["top-start", "top-end"],
|
|
10508
10508
|
items: de,
|
|
10509
10509
|
className: "sticky right-0",
|
|
10510
|
-
children: /* @__PURE__ */ I(
|
|
10511
|
-
size:
|
|
10510
|
+
children: /* @__PURE__ */ I(ie, {
|
|
10511
|
+
size: ee.Small,
|
|
10512
10512
|
className: "invisible group-hover/item:visible",
|
|
10513
10513
|
icon: /* @__PURE__ */ I(gt, { ...Kn })
|
|
10514
10514
|
})
|
|
@@ -10516,7 +10516,7 @@ var ki = 12, Ai = 8, ji = ({ getSelectionLabel: e, onClearSelection: n, actions:
|
|
|
10516
10516
|
})
|
|
10517
10517
|
]
|
|
10518
10518
|
})
|
|
10519
|
-
}),
|
|
10519
|
+
}), A && (h || e?.path === f) && ne(h || [], n + 1, e)]
|
|
10520
10520
|
})
|
|
10521
10521
|
}, `${s}-children`);
|
|
10522
10522
|
});
|
|
@@ -10524,7 +10524,7 @@ var ki = 12, Ai = 8, ji = ({ getSelectionLabel: e, onClearSelection: n, actions:
|
|
|
10524
10524
|
return /* @__PURE__ */ I("div", {
|
|
10525
10525
|
className: "flex-1 size-full overflow-y-auto",
|
|
10526
10526
|
"aria-label": "folders-tree",
|
|
10527
|
-
children: e.length > 0 ?
|
|
10527
|
+
children: e.length > 0 ? ne(e, 0) : /* @__PURE__ */ I(pe, {
|
|
10528
10528
|
title: s,
|
|
10529
10529
|
description: c,
|
|
10530
10530
|
icon: l
|
|
@@ -10787,10 +10787,10 @@ function aa({ userColumnDefs: e, filterable: t, dateLocale: n, dateOptions: r, e
|
|
|
10787
10787
|
minWidth: 200,
|
|
10788
10788
|
cellRenderer: (e) => {
|
|
10789
10789
|
let t = e.context?.disabledRowIds?.has(e.data.path) ?? !1, n = e.data.path;
|
|
10790
|
-
return e.context?.hideSearchPathItemName && (n = e.data.parentPath ? e.data.parentPath : n.replace(/\/[^/]+\/?$/, "") || "/"), !l || !c ? /* @__PURE__ */ I(
|
|
10790
|
+
return e.context?.hideSearchPathItemName && (n = e.data.parentPath ? e.data.parentPath : n.replace(/\/[^/]+\/?$/, "") || "/"), !l || !c ? /* @__PURE__ */ I(A, {
|
|
10791
10791
|
text: n,
|
|
10792
10792
|
hideTooltip: t
|
|
10793
|
-
}) : /* @__PURE__ */ I(
|
|
10793
|
+
}) : /* @__PURE__ */ I(A, {
|
|
10794
10794
|
text: n.replace(l, c),
|
|
10795
10795
|
hideTooltip: t
|
|
10796
10796
|
});
|
|
@@ -10937,8 +10937,8 @@ var oa = () => {
|
|
|
10937
10937
|
}),
|
|
10938
10938
|
onClick: () => p?.(x.path)
|
|
10939
10939
|
});
|
|
10940
|
-
let
|
|
10941
|
-
e[R.Delete] &&
|
|
10940
|
+
let k = !x.permissions || x.permissions.includes(xr.WRITE);
|
|
10941
|
+
e[R.Delete] && k && S.push({
|
|
10942
10942
|
key: R.Delete,
|
|
10943
10943
|
label: e[R.Delete],
|
|
10944
10944
|
icon: /* @__PURE__ */ I(Vt, {
|
|
@@ -10947,8 +10947,8 @@ var oa = () => {
|
|
|
10947
10947
|
}),
|
|
10948
10948
|
onClick: () => o(x, x.parentPath ?? "")
|
|
10949
10949
|
});
|
|
10950
|
-
let
|
|
10951
|
-
return e[R.Rename] &&
|
|
10950
|
+
let ee = x.nodeType === yr.FOLDER || x.nodeType === yr.ITEM && g;
|
|
10951
|
+
return e[R.Rename] && ee && k && S.push({
|
|
10952
10952
|
key: R.Rename,
|
|
10953
10953
|
label: e[R.Rename],
|
|
10954
10954
|
icon: /* @__PURE__ */ I(Pt, {
|
|
@@ -11025,7 +11025,7 @@ var oa = () => {
|
|
|
11025
11025
|
...e,
|
|
11026
11026
|
children: /* @__PURE__ */ I(ua, {})
|
|
11027
11027
|
}), ua = () => {
|
|
11028
|
-
let { managerLabel: e, className: t, items: n, rootItem: r, filesLoading: i, treeOptions: a, showNavigationPanel: o, navigationPanelOptions: s, gridOptions: u, toolbarOptions: d, bulkActionsToolbarOptions: f, deleteConfirmationOptions: p, destinationFolderPopupOptions: m, conflictResolutionPopupOptions: h, compactViewWidthBreakpoint: g = _r, customBreakpointRef: _, sharedByMePaths: v, allowedFileTypes: y, maxSelectableFileSize: b, areHiddenFilesVisible: x, toggleHiddenFilesVisibility: S, isTreeCollapsed: C, toggleTreeCollapse: w, currentPath: T, gridRows: E, selectedPaths: D, selectedFiles:
|
|
11028
|
+
let { managerLabel: e, className: t, items: n, rootItem: r, filesLoading: i, treeOptions: a, showNavigationPanel: o, navigationPanelOptions: s, gridOptions: u, toolbarOptions: d, bulkActionsToolbarOptions: f, deleteConfirmationOptions: p, destinationFolderPopupOptions: m, conflictResolutionPopupOptions: h, compactViewWidthBreakpoint: g = _r, customBreakpointRef: _, sharedByMePaths: v, allowedFileTypes: y, maxSelectableFileSize: b, areHiddenFilesVisible: x, toggleHiddenFilesVisibility: S, isTreeCollapsed: C, toggleTreeCollapse: w, currentPath: T, gridRows: E, selectedPaths: D, selectedFiles: k, clearSelection: ee, setSelectedPaths: A, effectiveSearchValue: te, handleBreadcrumbItemClick: ne, handleSearchChange: re, handleTreeItemClick: ie, handleTableRowClick: ae, handleSelectionClick: oe, onGridApiChange: se, handleOpenDestinationFolderPopup: ce, handleCloseDestinationFolderPopup: le, openDestinationFolderPopup: ue, destinationFolderMode: de, handleSetCopiedFiles: fe, handleSetMovedFiles: me, handleDuplicate: he, handleCopyTo: ge, handleMoveTo: _e, handleGridAddSibling: M, handleGridAddChild: ve, handleTreeAddSibling: ye, handleTreeAddChild: be, handleDownloadFiles: xe, openDeleteConfirmation: Se, closeDeleteConfirmation: Ce, confirmDelete: we, deleteConfirmationOpen: Te, itemsToDelete: Ee, renamedPath: De, renamedItem: Oe, onRename: ke, onRenameSave: Ae, onRenameCancel: je, onRenameValidate: Me, createdFolderPath: Ne, forbiddenSymbolsRegExp: Pe, forbiddenSymbolsTooltip: Fe, getDisplayName: Ie, isDragging: Le, isDraggingOverWindow: Re, handleDragEnter: Be, handleDragLeave: Ve, handleDragOver: He, handleDrop: Ue, onUploadFiles: We, onValidateUpload: Ge, maxFileSize: Ke, newActions: qe, isNewButtonVisible: Je, isNewButtonDisabled: Ye, newFolderTempId: Xe, cancelFolderCreation: Qe, saveFolderCreation: et, validateFolderName: tt, startFolderCreation: nt, conflictingFiles: rt, conflictResolutionOpen: it, handleConflictReplace: at, handleConflictDuplicate: ot, handleConflictCancel: st, handleConflictDecideForEach: ct, uploadConflictingFiles: lt, uploadConflictResolutionOpen: ut, handleUploadConflictReplace: dt, handleUploadConflictDuplicate: ft, handleUploadConflictCancel: mt, handleUploadConflictDecideForEach: ht, openMetadataPopup: gt, fileMetadataPopupOptions: yt, isMetadataPopupOpen: bt, selectedFileForMetadata: xt, closeMetadataPopup: Ct, onUnshareFiles: wt, onRemoveFilesAccess: Tt, actionsRef: Et, searchInProgress: Dt, isSearchMode: Ot, emptyStateIcon: kt, emptyStateTitle: At = "You don't have any files", emptyStateDescription: jt = "Upload or drag and drop files", sharedWithMeIds: Mt, onFolderPopupPathChange: Nt, onManagePermissions: Ft, onPreview: It, onOpenInNewTab: Lt, previewExtensions: Rt, isRenameFileAvailable: zt, isDuplicateFolderAvailable: Bt, getDisabledTooltip: Ht, fileTooLargeTooltip: Ut, unsupportedFileTypeTooltip: Gt, gridClassName: Kt, nonClickableTableColumns: qt, hideSearchPathItemName: Jt, showHiddenFileSwitcherInDestinationPopup: Yt, showCreateFolderButtonInDestinationPopup: Xt, newFolderDefaultName: Zt } = oa(), { width: Qt = cr, header: $t = lr, containerClassName: en = ar, additionalButtons: tn, ...nn } = a ?? {}, [rn, an] = F(Qt), { renameTriggerView: on, onGridRename: sn, onTreeRename: cn } = wr({ onRename: ke }), { createFolderTriggerView: ln, onGridCreateSiblingFolder: un, onTreeCreateSiblingFolder: dn, onGridCreateChildFolder: fn, onTreeCreateChildFolder: pn } = ca({
|
|
11029
11029
|
onGridAddSibling: M,
|
|
11030
11030
|
onGridAddChild: ve,
|
|
11031
11031
|
onTreeAddSibling: ye,
|
|
@@ -11173,11 +11173,11 @@ var oa = () => {
|
|
|
11173
11173
|
dn
|
|
11174
11174
|
]), Mn = P(() => {
|
|
11175
11175
|
let e = /* @__PURE__ */ new Set();
|
|
11176
|
-
return
|
|
11177
|
-
}, [
|
|
11178
|
-
|
|
11179
|
-
}, [oe,
|
|
11180
|
-
selectedFiles:
|
|
11176
|
+
return k.forEach((t, n) => e.add(n)), e;
|
|
11177
|
+
}, [k]), Nn = N((e, t) => {
|
|
11178
|
+
A(e), oe?.(t);
|
|
11179
|
+
}, [oe, A]), Pn = $i({
|
|
11180
|
+
selectedFiles: k,
|
|
11181
11181
|
actionLabels: f?.actionLabels,
|
|
11182
11182
|
onDuplicate: he,
|
|
11183
11183
|
onCopy: (e) => {
|
|
@@ -11193,7 +11193,7 @@ var oa = () => {
|
|
|
11193
11193
|
getCurrentFolderPath: () => T ?? "/",
|
|
11194
11194
|
sharedWithMeIds: Mt,
|
|
11195
11195
|
sharedByMePaths: v,
|
|
11196
|
-
onClearSelection:
|
|
11196
|
+
onClearSelection: ee,
|
|
11197
11197
|
forbiddenSymbolsRegExp: Pe
|
|
11198
11198
|
}), Fn = N((e) => {
|
|
11199
11199
|
d?.onTabChange?.(e), Qe();
|
|
@@ -11217,14 +11217,14 @@ var oa = () => {
|
|
|
11217
11217
|
children: /* @__PURE__ */ I(ji, {
|
|
11218
11218
|
...f,
|
|
11219
11219
|
selectedCount: D.size,
|
|
11220
|
-
onClearSelection:
|
|
11220
|
+
onClearSelection: ee,
|
|
11221
11221
|
actions: Pn
|
|
11222
11222
|
})
|
|
11223
11223
|
}) : null, [
|
|
11224
11224
|
Fn,
|
|
11225
11225
|
f,
|
|
11226
11226
|
D,
|
|
11227
|
-
|
|
11227
|
+
ee,
|
|
11228
11228
|
Pn,
|
|
11229
11229
|
x,
|
|
11230
11230
|
S,
|
|
@@ -11263,7 +11263,7 @@ var oa = () => {
|
|
|
11263
11263
|
sharedByMePaths: v,
|
|
11264
11264
|
forbiddenSymbolsRegExp: Pe,
|
|
11265
11265
|
forbiddenSymbolsTooltip: Fe,
|
|
11266
|
-
onItemClick:
|
|
11266
|
+
onItemClick: ie,
|
|
11267
11267
|
areHiddenFilesVisible: x,
|
|
11268
11268
|
getContextMenuItems: jn,
|
|
11269
11269
|
renamedPath: on === Zn.Tree ? De : void 0,
|
|
@@ -11293,7 +11293,7 @@ var oa = () => {
|
|
|
11293
11293
|
v,
|
|
11294
11294
|
Pe,
|
|
11295
11295
|
Fe,
|
|
11296
|
-
|
|
11296
|
+
ie,
|
|
11297
11297
|
x,
|
|
11298
11298
|
jn,
|
|
11299
11299
|
on,
|
|
@@ -11352,10 +11352,10 @@ var oa = () => {
|
|
|
11352
11352
|
rootItemLabel: r?.label,
|
|
11353
11353
|
rootItemPath: r?.path
|
|
11354
11354
|
}), Yn = N((e) => {
|
|
11355
|
-
e.colDef.colId === "ag-Grid-SelectionColumn" || e.colDef.colId === er.Actions || De && e.data?.path === De || e.data?.isTemporary || qt && qt.includes(e.colDef.colId) || e.data &&
|
|
11355
|
+
e.colDef.colId === "ag-Grid-SelectionColumn" || e.colDef.colId === er.Actions || De && e.data?.path === De || e.data?.isTemporary || qt && qt.includes(e.colDef.colId) || e.data && ae(e.data);
|
|
11356
11356
|
}, [
|
|
11357
11357
|
De,
|
|
11358
|
-
|
|
11358
|
+
ae,
|
|
11359
11359
|
qt
|
|
11360
11360
|
]), $n = N(() => /* @__PURE__ */ I(pe, {
|
|
11361
11361
|
title: At,
|
|
@@ -11429,7 +11429,7 @@ var oa = () => {
|
|
|
11429
11429
|
Jt,
|
|
11430
11430
|
Zt,
|
|
11431
11431
|
i
|
|
11432
|
-
]), pr = P(() => E.length === 0 && !Ot && !i ? $n() : /* @__PURE__ */ I(
|
|
11432
|
+
]), pr = P(() => E.length === 0 && !Ot && !i ? $n() : /* @__PURE__ */ I(j, {
|
|
11433
11433
|
columnDefs: Jn,
|
|
11434
11434
|
rowData: E,
|
|
11435
11435
|
getRowId: ur,
|
|
@@ -11489,11 +11489,11 @@ var oa = () => {
|
|
|
11489
11489
|
...s ?? {},
|
|
11490
11490
|
makeHref: (e) => e.join("/"),
|
|
11491
11491
|
path: T,
|
|
11492
|
-
onItemClick:
|
|
11492
|
+
onItemClick: ne,
|
|
11493
11493
|
rootItemPath: r?.path,
|
|
11494
11494
|
rootItemLabel: r?.label,
|
|
11495
|
-
value:
|
|
11496
|
-
onSearchChange:
|
|
11495
|
+
value: te,
|
|
11496
|
+
onSearchChange: re,
|
|
11497
11497
|
isCompactView: En,
|
|
11498
11498
|
labelClassName: "dial-tiny-text"
|
|
11499
11499
|
}), /* @__PURE__ */ L("section", {
|
|
@@ -11944,14 +11944,14 @@ var wa = /* @__PURE__ */ ba((/* @__PURE__ */ _a(((e, t) => {
|
|
|
11944
11944
|
"auto",
|
|
11945
11945
|
Fo,
|
|
11946
11946
|
Do
|
|
11947
|
-
],
|
|
11947
|
+
], k = () => [
|
|
11948
11948
|
"auto",
|
|
11949
11949
|
"min",
|
|
11950
11950
|
"max",
|
|
11951
11951
|
"fr",
|
|
11952
11952
|
Fo,
|
|
11953
11953
|
Do
|
|
11954
|
-
],
|
|
11954
|
+
], ee = () => [
|
|
11955
11955
|
"start",
|
|
11956
11956
|
"end",
|
|
11957
11957
|
"center",
|
|
@@ -11962,14 +11962,14 @@ var wa = /* @__PURE__ */ ba((/* @__PURE__ */ _a(((e, t) => {
|
|
|
11962
11962
|
"baseline",
|
|
11963
11963
|
"center-safe",
|
|
11964
11964
|
"end-safe"
|
|
11965
|
-
],
|
|
11965
|
+
], A = () => [
|
|
11966
11966
|
"start",
|
|
11967
11967
|
"end",
|
|
11968
11968
|
"center",
|
|
11969
11969
|
"stretch",
|
|
11970
11970
|
"center-safe",
|
|
11971
11971
|
"end-safe"
|
|
11972
|
-
],
|
|
11972
|
+
], te = () => ["auto", ...w()], ne = () => [
|
|
11973
11973
|
mo,
|
|
11974
11974
|
"auto",
|
|
11975
11975
|
"full",
|
|
@@ -11983,7 +11983,7 @@ var wa = /* @__PURE__ */ ba((/* @__PURE__ */ _a(((e, t) => {
|
|
|
11983
11983
|
"max",
|
|
11984
11984
|
"fit",
|
|
11985
11985
|
...w()
|
|
11986
|
-
],
|
|
11986
|
+
], re = () => [
|
|
11987
11987
|
mo,
|
|
11988
11988
|
"screen",
|
|
11989
11989
|
"full",
|
|
@@ -11994,7 +11994,7 @@ var wa = /* @__PURE__ */ ba((/* @__PURE__ */ _a(((e, t) => {
|
|
|
11994
11994
|
"max",
|
|
11995
11995
|
"fit",
|
|
11996
11996
|
...w()
|
|
11997
|
-
],
|
|
11997
|
+
], ie = () => [
|
|
11998
11998
|
mo,
|
|
11999
11999
|
"screen",
|
|
12000
12000
|
"full",
|
|
@@ -12006,11 +12006,11 @@ var wa = /* @__PURE__ */ ba((/* @__PURE__ */ _a(((e, t) => {
|
|
|
12006
12006
|
"max",
|
|
12007
12007
|
"fit",
|
|
12008
12008
|
...w()
|
|
12009
|
-
],
|
|
12009
|
+
], j = () => [
|
|
12010
12010
|
e,
|
|
12011
12011
|
Fo,
|
|
12012
12012
|
Do
|
|
12013
|
-
],
|
|
12013
|
+
], ae = () => [
|
|
12014
12014
|
...b(),
|
|
12015
12015
|
Ro,
|
|
12016
12016
|
Mo,
|
|
@@ -12343,24 +12343,24 @@ var wa = /* @__PURE__ */ ba((/* @__PURE__ */ _a(((e, t) => {
|
|
|
12343
12343
|
"row-dense",
|
|
12344
12344
|
"col-dense"
|
|
12345
12345
|
] }],
|
|
12346
|
-
"auto-cols": [{ "auto-cols":
|
|
12347
|
-
"auto-rows": [{ "auto-rows":
|
|
12346
|
+
"auto-cols": [{ "auto-cols": k() }],
|
|
12347
|
+
"auto-rows": [{ "auto-rows": k() }],
|
|
12348
12348
|
gap: [{ gap: w() }],
|
|
12349
12349
|
"gap-x": [{ "gap-x": w() }],
|
|
12350
12350
|
"gap-y": [{ "gap-y": w() }],
|
|
12351
|
-
"justify-content": [{ justify: [...
|
|
12352
|
-
"justify-items": [{ "justify-items": [...
|
|
12353
|
-
"justify-self": [{ "justify-self": ["auto", ...
|
|
12354
|
-
"align-content": [{ content: ["normal", ...
|
|
12355
|
-
"align-items": [{ items: [...
|
|
12351
|
+
"justify-content": [{ justify: [...ee(), "normal"] }],
|
|
12352
|
+
"justify-items": [{ "justify-items": [...A(), "normal"] }],
|
|
12353
|
+
"justify-self": [{ "justify-self": ["auto", ...A()] }],
|
|
12354
|
+
"align-content": [{ content: ["normal", ...ee()] }],
|
|
12355
|
+
"align-items": [{ items: [...A(), { baseline: ["", "last"] }] }],
|
|
12356
12356
|
"align-self": [{ self: [
|
|
12357
12357
|
"auto",
|
|
12358
|
-
...
|
|
12358
|
+
...A(),
|
|
12359
12359
|
{ baseline: ["", "last"] }
|
|
12360
12360
|
] }],
|
|
12361
|
-
"place-content": [{ "place-content":
|
|
12362
|
-
"place-items": [{ "place-items": [...
|
|
12363
|
-
"place-self": [{ "place-self": ["auto", ...
|
|
12361
|
+
"place-content": [{ "place-content": ee() }],
|
|
12362
|
+
"place-items": [{ "place-items": [...A(), "baseline"] }],
|
|
12363
|
+
"place-self": [{ "place-self": ["auto", ...A()] }],
|
|
12364
12364
|
p: [{ p: w() }],
|
|
12365
12365
|
px: [{ px: w() }],
|
|
12366
12366
|
py: [{ py: w() }],
|
|
@@ -12372,38 +12372,38 @@ var wa = /* @__PURE__ */ ba((/* @__PURE__ */ _a(((e, t) => {
|
|
|
12372
12372
|
pr: [{ pr: w() }],
|
|
12373
12373
|
pb: [{ pb: w() }],
|
|
12374
12374
|
pl: [{ pl: w() }],
|
|
12375
|
-
m: [{ m:
|
|
12376
|
-
mx: [{ mx:
|
|
12377
|
-
my: [{ my:
|
|
12378
|
-
ms: [{ ms:
|
|
12379
|
-
me: [{ me:
|
|
12380
|
-
mbs: [{ mbs:
|
|
12381
|
-
mbe: [{ mbe:
|
|
12382
|
-
mt: [{ mt:
|
|
12383
|
-
mr: [{ mr:
|
|
12384
|
-
mb: [{ mb:
|
|
12385
|
-
ml: [{ ml:
|
|
12375
|
+
m: [{ m: te() }],
|
|
12376
|
+
mx: [{ mx: te() }],
|
|
12377
|
+
my: [{ my: te() }],
|
|
12378
|
+
ms: [{ ms: te() }],
|
|
12379
|
+
me: [{ me: te() }],
|
|
12380
|
+
mbs: [{ mbs: te() }],
|
|
12381
|
+
mbe: [{ mbe: te() }],
|
|
12382
|
+
mt: [{ mt: te() }],
|
|
12383
|
+
mr: [{ mr: te() }],
|
|
12384
|
+
mb: [{ mb: te() }],
|
|
12385
|
+
ml: [{ ml: te() }],
|
|
12386
12386
|
"space-x": [{ "space-x": w() }],
|
|
12387
12387
|
"space-x-reverse": ["space-x-reverse"],
|
|
12388
12388
|
"space-y": [{ "space-y": w() }],
|
|
12389
12389
|
"space-y-reverse": ["space-y-reverse"],
|
|
12390
|
-
size: [{ size:
|
|
12391
|
-
"inline-size": [{ inline: ["auto", ...
|
|
12392
|
-
"min-inline-size": [{ "min-inline": ["auto", ...
|
|
12393
|
-
"max-inline-size": [{ "max-inline": ["none", ...
|
|
12394
|
-
"block-size": [{ block: ["auto", ...
|
|
12395
|
-
"min-block-size": [{ "min-block": ["auto", ...
|
|
12396
|
-
"max-block-size": [{ "max-block": ["none", ...
|
|
12390
|
+
size: [{ size: ne() }],
|
|
12391
|
+
"inline-size": [{ inline: ["auto", ...re()] }],
|
|
12392
|
+
"min-inline-size": [{ "min-inline": ["auto", ...re()] }],
|
|
12393
|
+
"max-inline-size": [{ "max-inline": ["none", ...re()] }],
|
|
12394
|
+
"block-size": [{ block: ["auto", ...ie()] }],
|
|
12395
|
+
"min-block-size": [{ "min-block": ["auto", ...ie()] }],
|
|
12396
|
+
"max-block-size": [{ "max-block": ["none", ...ie()] }],
|
|
12397
12397
|
w: [{ w: [
|
|
12398
12398
|
s,
|
|
12399
12399
|
"screen",
|
|
12400
|
-
...
|
|
12400
|
+
...ne()
|
|
12401
12401
|
] }],
|
|
12402
12402
|
"min-w": [{ "min-w": [
|
|
12403
12403
|
s,
|
|
12404
12404
|
"screen",
|
|
12405
12405
|
"none",
|
|
12406
|
-
...
|
|
12406
|
+
...ne()
|
|
12407
12407
|
] }],
|
|
12408
12408
|
"max-w": [{ "max-w": [
|
|
12409
12409
|
s,
|
|
@@ -12411,23 +12411,23 @@ var wa = /* @__PURE__ */ ba((/* @__PURE__ */ _a(((e, t) => {
|
|
|
12411
12411
|
"none",
|
|
12412
12412
|
"prose",
|
|
12413
12413
|
{ screen: [o] },
|
|
12414
|
-
...
|
|
12414
|
+
...ne()
|
|
12415
12415
|
] }],
|
|
12416
12416
|
h: [{ h: [
|
|
12417
12417
|
"screen",
|
|
12418
12418
|
"lh",
|
|
12419
|
-
...
|
|
12419
|
+
...ne()
|
|
12420
12420
|
] }],
|
|
12421
12421
|
"min-h": [{ "min-h": [
|
|
12422
12422
|
"screen",
|
|
12423
12423
|
"lh",
|
|
12424
12424
|
"none",
|
|
12425
|
-
...
|
|
12425
|
+
...ne()
|
|
12426
12426
|
] }],
|
|
12427
12427
|
"max-h": [{ "max-h": [
|
|
12428
12428
|
"screen",
|
|
12429
12429
|
"lh",
|
|
12430
|
-
...
|
|
12430
|
+
...ne()
|
|
12431
12431
|
] }],
|
|
12432
12432
|
"font-size": [{ text: [
|
|
12433
12433
|
"base",
|
|
@@ -12500,8 +12500,8 @@ var wa = /* @__PURE__ */ ba((/* @__PURE__ */ _a(((e, t) => {
|
|
|
12500
12500
|
"start",
|
|
12501
12501
|
"end"
|
|
12502
12502
|
] }],
|
|
12503
|
-
"placeholder-color": [{ placeholder:
|
|
12504
|
-
"text-color": [{ text:
|
|
12503
|
+
"placeholder-color": [{ placeholder: j() }],
|
|
12504
|
+
"text-color": [{ text: j() }],
|
|
12505
12505
|
"text-decoration": [
|
|
12506
12506
|
"underline",
|
|
12507
12507
|
"overline",
|
|
@@ -12516,7 +12516,7 @@ var wa = /* @__PURE__ */ ba((/* @__PURE__ */ _a(((e, t) => {
|
|
|
12516
12516
|
Fo,
|
|
12517
12517
|
Oo
|
|
12518
12518
|
] }],
|
|
12519
|
-
"text-decoration-color": [{ decoration:
|
|
12519
|
+
"text-decoration-color": [{ decoration: j() }],
|
|
12520
12520
|
"underline-offset": [{ "underline-offset": [
|
|
12521
12521
|
ho,
|
|
12522
12522
|
"auto",
|
|
@@ -12603,7 +12603,7 @@ var wa = /* @__PURE__ */ ba((/* @__PURE__ */ _a(((e, t) => {
|
|
|
12603
12603
|
"padding",
|
|
12604
12604
|
"content"
|
|
12605
12605
|
] }],
|
|
12606
|
-
"bg-position": [{ bg:
|
|
12606
|
+
"bg-position": [{ bg: ae() }],
|
|
12607
12607
|
"bg-repeat": [{ bg: oe() }],
|
|
12608
12608
|
"bg-size": [{ bg: se() }],
|
|
12609
12609
|
"bg-image": [{ bg: [
|
|
@@ -12638,13 +12638,13 @@ var wa = /* @__PURE__ */ ba((/* @__PURE__ */ _a(((e, t) => {
|
|
|
12638
12638
|
Bo,
|
|
12639
12639
|
No
|
|
12640
12640
|
] }],
|
|
12641
|
-
"bg-color": [{ bg:
|
|
12641
|
+
"bg-color": [{ bg: j() }],
|
|
12642
12642
|
"gradient-from-pos": [{ from: ce() }],
|
|
12643
12643
|
"gradient-via-pos": [{ via: ce() }],
|
|
12644
12644
|
"gradient-to-pos": [{ to: ce() }],
|
|
12645
|
-
"gradient-from": [{ from:
|
|
12646
|
-
"gradient-via": [{ via:
|
|
12647
|
-
"gradient-to": [{ to:
|
|
12645
|
+
"gradient-from": [{ from: j() }],
|
|
12646
|
+
"gradient-via": [{ via: j() }],
|
|
12647
|
+
"gradient-to": [{ to: j() }],
|
|
12648
12648
|
rounded: [{ rounded: le() }],
|
|
12649
12649
|
"rounded-s": [{ "rounded-s": le() }],
|
|
12650
12650
|
"rounded-e": [{ "rounded-e": le() }],
|
|
@@ -12685,18 +12685,18 @@ var wa = /* @__PURE__ */ ba((/* @__PURE__ */ _a(((e, t) => {
|
|
|
12685
12685
|
"hidden",
|
|
12686
12686
|
"none"
|
|
12687
12687
|
] }],
|
|
12688
|
-
"border-color": [{ border:
|
|
12689
|
-
"border-color-x": [{ "border-x":
|
|
12690
|
-
"border-color-y": [{ "border-y":
|
|
12691
|
-
"border-color-s": [{ "border-s":
|
|
12692
|
-
"border-color-e": [{ "border-e":
|
|
12693
|
-
"border-color-bs": [{ "border-bs":
|
|
12694
|
-
"border-color-be": [{ "border-be":
|
|
12695
|
-
"border-color-t": [{ "border-t":
|
|
12696
|
-
"border-color-r": [{ "border-r":
|
|
12697
|
-
"border-color-b": [{ "border-b":
|
|
12698
|
-
"border-color-l": [{ "border-l":
|
|
12699
|
-
"divide-color": [{ divide:
|
|
12688
|
+
"border-color": [{ border: j() }],
|
|
12689
|
+
"border-color-x": [{ "border-x": j() }],
|
|
12690
|
+
"border-color-y": [{ "border-y": j() }],
|
|
12691
|
+
"border-color-s": [{ "border-s": j() }],
|
|
12692
|
+
"border-color-e": [{ "border-e": j() }],
|
|
12693
|
+
"border-color-bs": [{ "border-bs": j() }],
|
|
12694
|
+
"border-color-be": [{ "border-be": j() }],
|
|
12695
|
+
"border-color-t": [{ "border-t": j() }],
|
|
12696
|
+
"border-color-r": [{ "border-r": j() }],
|
|
12697
|
+
"border-color-b": [{ "border-b": j() }],
|
|
12698
|
+
"border-color-l": [{ "border-l": j() }],
|
|
12699
|
+
"divide-color": [{ divide: j() }],
|
|
12700
12700
|
"outline-style": [{ outline: [
|
|
12701
12701
|
...de(),
|
|
12702
12702
|
"none",
|
|
@@ -12713,7 +12713,7 @@ var wa = /* @__PURE__ */ ba((/* @__PURE__ */ _a(((e, t) => {
|
|
|
12713
12713
|
Io,
|
|
12714
12714
|
Oo
|
|
12715
12715
|
] }],
|
|
12716
|
-
"outline-color": [{ outline:
|
|
12716
|
+
"outline-color": [{ outline: j() }],
|
|
12717
12717
|
shadow: [{ shadow: [
|
|
12718
12718
|
"",
|
|
12719
12719
|
"none",
|
|
@@ -12721,28 +12721,28 @@ var wa = /* @__PURE__ */ ba((/* @__PURE__ */ _a(((e, t) => {
|
|
|
12721
12721
|
Vo,
|
|
12722
12722
|
Po
|
|
12723
12723
|
] }],
|
|
12724
|
-
"shadow-color": [{ shadow:
|
|
12724
|
+
"shadow-color": [{ shadow: j() }],
|
|
12725
12725
|
"inset-shadow": [{ "inset-shadow": [
|
|
12726
12726
|
"none",
|
|
12727
12727
|
d,
|
|
12728
12728
|
Vo,
|
|
12729
12729
|
Po
|
|
12730
12730
|
] }],
|
|
12731
|
-
"inset-shadow-color": [{ "inset-shadow":
|
|
12731
|
+
"inset-shadow-color": [{ "inset-shadow": j() }],
|
|
12732
12732
|
"ring-w": [{ ring: ue() }],
|
|
12733
12733
|
"ring-w-inset": ["ring-inset"],
|
|
12734
|
-
"ring-color": [{ ring:
|
|
12734
|
+
"ring-color": [{ ring: j() }],
|
|
12735
12735
|
"ring-offset-w": [{ "ring-offset": [ho, Oo] }],
|
|
12736
|
-
"ring-offset-color": [{ "ring-offset":
|
|
12736
|
+
"ring-offset-color": [{ "ring-offset": j() }],
|
|
12737
12737
|
"inset-ring-w": [{ "inset-ring": ue() }],
|
|
12738
|
-
"inset-ring-color": [{ "inset-ring":
|
|
12738
|
+
"inset-ring-color": [{ "inset-ring": j() }],
|
|
12739
12739
|
"text-shadow": [{ "text-shadow": [
|
|
12740
12740
|
"none",
|
|
12741
12741
|
f,
|
|
12742
12742
|
Vo,
|
|
12743
12743
|
Po
|
|
12744
12744
|
] }],
|
|
12745
|
-
"text-shadow-color": [{ "text-shadow":
|
|
12745
|
+
"text-shadow-color": [{ "text-shadow": j() }],
|
|
12746
12746
|
opacity: [{ opacity: [
|
|
12747
12747
|
ho,
|
|
12748
12748
|
Fo,
|
|
@@ -12771,37 +12771,37 @@ var wa = /* @__PURE__ */ ba((/* @__PURE__ */ _a(((e, t) => {
|
|
|
12771
12771
|
"mask-image-linear-pos": [{ "mask-linear": [ho] }],
|
|
12772
12772
|
"mask-image-linear-from-pos": [{ "mask-linear-from": pe() }],
|
|
12773
12773
|
"mask-image-linear-to-pos": [{ "mask-linear-to": pe() }],
|
|
12774
|
-
"mask-image-linear-from-color": [{ "mask-linear-from":
|
|
12775
|
-
"mask-image-linear-to-color": [{ "mask-linear-to":
|
|
12774
|
+
"mask-image-linear-from-color": [{ "mask-linear-from": j() }],
|
|
12775
|
+
"mask-image-linear-to-color": [{ "mask-linear-to": j() }],
|
|
12776
12776
|
"mask-image-t-from-pos": [{ "mask-t-from": pe() }],
|
|
12777
12777
|
"mask-image-t-to-pos": [{ "mask-t-to": pe() }],
|
|
12778
|
-
"mask-image-t-from-color": [{ "mask-t-from":
|
|
12779
|
-
"mask-image-t-to-color": [{ "mask-t-to":
|
|
12778
|
+
"mask-image-t-from-color": [{ "mask-t-from": j() }],
|
|
12779
|
+
"mask-image-t-to-color": [{ "mask-t-to": j() }],
|
|
12780
12780
|
"mask-image-r-from-pos": [{ "mask-r-from": pe() }],
|
|
12781
12781
|
"mask-image-r-to-pos": [{ "mask-r-to": pe() }],
|
|
12782
|
-
"mask-image-r-from-color": [{ "mask-r-from":
|
|
12783
|
-
"mask-image-r-to-color": [{ "mask-r-to":
|
|
12782
|
+
"mask-image-r-from-color": [{ "mask-r-from": j() }],
|
|
12783
|
+
"mask-image-r-to-color": [{ "mask-r-to": j() }],
|
|
12784
12784
|
"mask-image-b-from-pos": [{ "mask-b-from": pe() }],
|
|
12785
12785
|
"mask-image-b-to-pos": [{ "mask-b-to": pe() }],
|
|
12786
|
-
"mask-image-b-from-color": [{ "mask-b-from":
|
|
12787
|
-
"mask-image-b-to-color": [{ "mask-b-to":
|
|
12786
|
+
"mask-image-b-from-color": [{ "mask-b-from": j() }],
|
|
12787
|
+
"mask-image-b-to-color": [{ "mask-b-to": j() }],
|
|
12788
12788
|
"mask-image-l-from-pos": [{ "mask-l-from": pe() }],
|
|
12789
12789
|
"mask-image-l-to-pos": [{ "mask-l-to": pe() }],
|
|
12790
|
-
"mask-image-l-from-color": [{ "mask-l-from":
|
|
12791
|
-
"mask-image-l-to-color": [{ "mask-l-to":
|
|
12790
|
+
"mask-image-l-from-color": [{ "mask-l-from": j() }],
|
|
12791
|
+
"mask-image-l-to-color": [{ "mask-l-to": j() }],
|
|
12792
12792
|
"mask-image-x-from-pos": [{ "mask-x-from": pe() }],
|
|
12793
12793
|
"mask-image-x-to-pos": [{ "mask-x-to": pe() }],
|
|
12794
|
-
"mask-image-x-from-color": [{ "mask-x-from":
|
|
12795
|
-
"mask-image-x-to-color": [{ "mask-x-to":
|
|
12794
|
+
"mask-image-x-from-color": [{ "mask-x-from": j() }],
|
|
12795
|
+
"mask-image-x-to-color": [{ "mask-x-to": j() }],
|
|
12796
12796
|
"mask-image-y-from-pos": [{ "mask-y-from": pe() }],
|
|
12797
12797
|
"mask-image-y-to-pos": [{ "mask-y-to": pe() }],
|
|
12798
|
-
"mask-image-y-from-color": [{ "mask-y-from":
|
|
12799
|
-
"mask-image-y-to-color": [{ "mask-y-to":
|
|
12798
|
+
"mask-image-y-from-color": [{ "mask-y-from": j() }],
|
|
12799
|
+
"mask-image-y-to-color": [{ "mask-y-to": j() }],
|
|
12800
12800
|
"mask-image-radial": [{ "mask-radial": [Fo, Do] }],
|
|
12801
12801
|
"mask-image-radial-from-pos": [{ "mask-radial-from": pe() }],
|
|
12802
12802
|
"mask-image-radial-to-pos": [{ "mask-radial-to": pe() }],
|
|
12803
|
-
"mask-image-radial-from-color": [{ "mask-radial-from":
|
|
12804
|
-
"mask-image-radial-to-color": [{ "mask-radial-to":
|
|
12803
|
+
"mask-image-radial-from-color": [{ "mask-radial-from": j() }],
|
|
12804
|
+
"mask-image-radial-to-color": [{ "mask-radial-to": j() }],
|
|
12805
12805
|
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
12806
12806
|
"mask-image-radial-size": [{ "mask-radial": [{
|
|
12807
12807
|
closest: ["side", "corner"],
|
|
@@ -12811,8 +12811,8 @@ var wa = /* @__PURE__ */ ba((/* @__PURE__ */ _a(((e, t) => {
|
|
|
12811
12811
|
"mask-image-conic-pos": [{ "mask-conic": [ho] }],
|
|
12812
12812
|
"mask-image-conic-from-pos": [{ "mask-conic-from": pe() }],
|
|
12813
12813
|
"mask-image-conic-to-pos": [{ "mask-conic-to": pe() }],
|
|
12814
|
-
"mask-image-conic-from-color": [{ "mask-conic-from":
|
|
12815
|
-
"mask-image-conic-to-color": [{ "mask-conic-to":
|
|
12814
|
+
"mask-image-conic-from-color": [{ "mask-conic-from": j() }],
|
|
12815
|
+
"mask-image-conic-to-color": [{ "mask-conic-to": j() }],
|
|
12816
12816
|
"mask-mode": [{ mask: [
|
|
12817
12817
|
"alpha",
|
|
12818
12818
|
"luminance",
|
|
@@ -12826,7 +12826,7 @@ var wa = /* @__PURE__ */ ba((/* @__PURE__ */ _a(((e, t) => {
|
|
|
12826
12826
|
"stroke",
|
|
12827
12827
|
"view"
|
|
12828
12828
|
] }],
|
|
12829
|
-
"mask-position": [{ mask:
|
|
12829
|
+
"mask-position": [{ mask: ae() }],
|
|
12830
12830
|
"mask-repeat": [{ mask: oe() }],
|
|
12831
12831
|
"mask-size": [{ mask: se() }],
|
|
12832
12832
|
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
@@ -12859,7 +12859,7 @@ var wa = /* @__PURE__ */ ba((/* @__PURE__ */ _a(((e, t) => {
|
|
|
12859
12859
|
Vo,
|
|
12860
12860
|
Po
|
|
12861
12861
|
] }],
|
|
12862
|
-
"drop-shadow-color": [{ "drop-shadow":
|
|
12862
|
+
"drop-shadow-color": [{ "drop-shadow": j() }],
|
|
12863
12863
|
grayscale: [{ grayscale: [
|
|
12864
12864
|
"",
|
|
12865
12865
|
ho,
|
|
@@ -13019,9 +13019,9 @@ var wa = /* @__PURE__ */ ba((/* @__PURE__ */ _a(((e, t) => {
|
|
|
13019
13019
|
Fo,
|
|
13020
13020
|
Do
|
|
13021
13021
|
] }],
|
|
13022
|
-
accent: [{ accent:
|
|
13022
|
+
accent: [{ accent: j() }],
|
|
13023
13023
|
appearance: [{ appearance: ["none", "auto"] }],
|
|
13024
|
-
"caret-color": [{ caret:
|
|
13024
|
+
"caret-color": [{ caret: j() }],
|
|
13025
13025
|
"color-scheme": [{ scheme: [
|
|
13026
13026
|
"normal",
|
|
13027
13027
|
"dark",
|
|
@@ -13079,8 +13079,8 @@ var wa = /* @__PURE__ */ ba((/* @__PURE__ */ _a(((e, t) => {
|
|
|
13079
13079
|
"x"
|
|
13080
13080
|
] }],
|
|
13081
13081
|
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
|
|
13082
|
-
"scrollbar-thumb-color": [{ "scrollbar-thumb":
|
|
13083
|
-
"scrollbar-track-color": [{ "scrollbar-track":
|
|
13082
|
+
"scrollbar-thumb-color": [{ "scrollbar-thumb": j() }],
|
|
13083
|
+
"scrollbar-track-color": [{ "scrollbar-track": j() }],
|
|
13084
13084
|
"scrollbar-gutter": [{ "scrollbar-gutter": [
|
|
13085
13085
|
"auto",
|
|
13086
13086
|
"stable",
|
|
@@ -13157,14 +13157,14 @@ var wa = /* @__PURE__ */ ba((/* @__PURE__ */ _a(((e, t) => {
|
|
|
13157
13157
|
Fo,
|
|
13158
13158
|
Do
|
|
13159
13159
|
] }],
|
|
13160
|
-
fill: [{ fill: ["none", ...
|
|
13160
|
+
fill: [{ fill: ["none", ...j()] }],
|
|
13161
13161
|
"stroke-w": [{ stroke: [
|
|
13162
13162
|
ho,
|
|
13163
13163
|
Io,
|
|
13164
13164
|
Oo,
|
|
13165
13165
|
ko
|
|
13166
13166
|
] }],
|
|
13167
|
-
stroke: [{ stroke: ["none", ...
|
|
13167
|
+
stroke: [{ stroke: ["none", ...j()] }],
|
|
13168
13168
|
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
13169
13169
|
},
|
|
13170
13170
|
conflictingClassGroups: {
|
|
@@ -13631,17 +13631,17 @@ function Sc() {
|
|
|
13631
13631
|
} finally {
|
|
13632
13632
|
E--;
|
|
13633
13633
|
}
|
|
13634
|
-
},
|
|
13634
|
+
}, k = function(e) {
|
|
13635
13635
|
D(), E++;
|
|
13636
13636
|
try {
|
|
13637
13637
|
return S.createScriptURL(e);
|
|
13638
13638
|
} finally {
|
|
13639
13639
|
E--;
|
|
13640
13640
|
}
|
|
13641
|
-
},
|
|
13641
|
+
}, ee = function() {
|
|
13642
13642
|
return T ||= (w = yc(u, i), !0), w;
|
|
13643
|
-
},
|
|
13644
|
-
t.isSupported = typeof ss == "function" && typeof g == "function" &&
|
|
13643
|
+
}, A = n, te = A.implementation, ne = A.createNodeIterator, re = A.createDocumentFragment, ie = A.getElementsByTagName, j = r.importNode, ae = bc();
|
|
13644
|
+
t.isSupported = typeof ss == "function" && typeof g == "function" && te && te.createHTMLDocument !== void 0;
|
|
13645
13645
|
let oe = rc, se = ic, ce = ac, le = oc, ue = sc, de = lc, fe = uc, pe = fc, me = cc, he = null, ge = Bs({}, [
|
|
13646
13646
|
...Ks,
|
|
13647
13647
|
...qs,
|
|
@@ -13750,7 +13750,7 @@ function Sc() {
|
|
|
13750
13750
|
} catch (e) {
|
|
13751
13751
|
throw S = t, e;
|
|
13752
13752
|
}
|
|
13753
|
-
} else e.TRUSTED_TYPES_POLICY === null ? (S = void 0, C = "") : (S === void 0 && (S =
|
|
13753
|
+
} else e.TRUSTED_TYPES_POLICY === null ? (S = void 0, C = "") : (S === void 0 && (S = ee()), S && typeof C == "string" && (C = O("")));
|
|
13754
13754
|
fs && fs(e), it = e;
|
|
13755
13755
|
}, ct = Bs({}, [
|
|
13756
13756
|
...qs,
|
|
@@ -13864,21 +13864,21 @@ function Sc() {
|
|
|
13864
13864
|
t = new l().parseFromString(i, tt);
|
|
13865
13865
|
} catch {}
|
|
13866
13866
|
if (!t || !t.documentElement) {
|
|
13867
|
-
t =
|
|
13867
|
+
t = te.createDocument(Xe, "template", null);
|
|
13868
13868
|
try {
|
|
13869
13869
|
t.documentElement.innerHTML = Ze ? C : i;
|
|
13870
13870
|
} catch {}
|
|
13871
13871
|
}
|
|
13872
13872
|
let a = t.body || t.documentElement;
|
|
13873
|
-
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Xe === Ye ?
|
|
13873
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Xe === Ye ? ie.call(t, Oe ? "html" : "body")[0] : Oe ? t.documentElement : a;
|
|
13874
13874
|
}, xt = function(e) {
|
|
13875
13875
|
let t = x ? x(e) : e.ownerDocument;
|
|
13876
|
-
return
|
|
13876
|
+
return ne.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
13877
13877
|
}, St = function(e) {
|
|
13878
13878
|
return e = Ds(e, oe, " "), e = Ds(e, se, " "), e = Ds(e, ce, " "), e;
|
|
13879
13879
|
}, Ct = function(e) {
|
|
13880
13880
|
e.normalize();
|
|
13881
|
-
let t = x ? x(e) : e.ownerDocument, n =
|
|
13881
|
+
let t = x ? x(e) : e.ownerDocument, n = ne.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
|
|
13882
13882
|
for (; r;) r.data = St(r.data), r = n.nextNode();
|
|
13883
13883
|
let i = e.querySelectorAll?.call(e, "template");
|
|
13884
13884
|
i && vs(i, (e) => {
|
|
@@ -13925,24 +13925,24 @@ function Sc() {
|
|
|
13925
13925
|
}, At = function(e, t, n, r) {
|
|
13926
13926
|
return e.length === 0 ? t : t === n || t === r ? Hs(t) : t;
|
|
13927
13927
|
}, jt = function(e, n) {
|
|
13928
|
-
if (Dt(
|
|
13928
|
+
if (Dt(ae.beforeSanitizeElements, e, null), e !== n && g(e) === null) return Be && vt(e), !0;
|
|
13929
13929
|
if (wt(e)) return mt(e), !0;
|
|
13930
13930
|
let r = rt(b ? b(e) : e.nodeName);
|
|
13931
|
-
if (he = At(
|
|
13931
|
+
if (he = At(ae.uponSanitizeElement, he, ge, Ae), Dt(ae.uponSanitizeElement, e, {
|
|
13932
13932
|
tagName: r,
|
|
13933
13933
|
allowedTags: he
|
|
13934
13934
|
}), e !== n && g(e) === null) return Be && vt(e), !0;
|
|
13935
13935
|
if (Ot(e, r)) return mt(e), !0;
|
|
13936
13936
|
if (ye[r] || !(xe.tagCheck instanceof Function && xe.tagCheck(r)) && !he[r]) {
|
|
13937
13937
|
let t = kt(e, r, n);
|
|
13938
|
-
return t === !1 && Dt(
|
|
13938
|
+
return t === !1 && Dt(ae.afterSanitizeElements, e, null), t;
|
|
13939
13939
|
}
|
|
13940
13940
|
if ((y ? y(e) : e.nodeType) === _c.element && !pt(e) || (r === "noscript" || r === "noembed" || r === "noframes") && Is(hc, e.innerHTML)) return mt(e), !0;
|
|
13941
13941
|
if (Ee && e.nodeType === _c.text) {
|
|
13942
13942
|
let n = St(e.textContent);
|
|
13943
13943
|
e.textContent !== n && (xs(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
13944
13944
|
}
|
|
13945
|
-
return Dt(
|
|
13945
|
+
return Dt(ae.afterSanitizeElements, e, null), !1;
|
|
13946
13946
|
}, Mt = function(e, t, r) {
|
|
13947
13947
|
if (be[t] || De && t === "patchsrc" || De && t === "for" && e !== "label" && e !== "output" || Ie && (t === "id" || t === "name") && (r in n || r in at)) return !1;
|
|
13948
13948
|
let i = _e[t] || xe.attributeCheck instanceof Function && xe.attributeCheck(t, e);
|
|
@@ -13966,7 +13966,7 @@ function Sc() {
|
|
|
13966
13966
|
}, Ft = function(e, t, n, r) {
|
|
13967
13967
|
if (S && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
|
|
13968
13968
|
case "TrustedHTML": return O(r);
|
|
13969
|
-
case "TrustedScriptURL": return
|
|
13969
|
+
case "TrustedScriptURL": return k(r);
|
|
13970
13970
|
}
|
|
13971
13971
|
return r;
|
|
13972
13972
|
}, It = function(e, n, r, i) {
|
|
@@ -13976,10 +13976,10 @@ function Sc() {
|
|
|
13976
13976
|
gt(n, e);
|
|
13977
13977
|
}
|
|
13978
13978
|
}, Lt = function(e) {
|
|
13979
|
-
Dt(
|
|
13979
|
+
Dt(ae.beforeSanitizeAttributes, e, null);
|
|
13980
13980
|
let t = e.attributes;
|
|
13981
13981
|
if (!t || wt(e)) return;
|
|
13982
|
-
_e = At(
|
|
13982
|
+
_e = At(ae.uponSanitizeAttribute, _e, M, je);
|
|
13983
13983
|
let n = {
|
|
13984
13984
|
attrName: "",
|
|
13985
13985
|
attrValue: "",
|
|
@@ -13989,7 +13989,7 @@ function Sc() {
|
|
|
13989
13989
|
}, r = t.length, i = rt(e.nodeName);
|
|
13990
13990
|
for (; r--;) {
|
|
13991
13991
|
let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = rt(o), u = c, d = o === "value" ? u : ks(u);
|
|
13992
|
-
if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, Dt(
|
|
13992
|
+
if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, Dt(ae.uponSanitizeAttribute, e, n), d = n.attrValue, Le && (l === "id" || l === "name") && Os(d, Re) !== 0 && (gt(o, e), d = Re + d), De && Is(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
|
|
13993
13993
|
gt(o, e);
|
|
13994
13994
|
continue;
|
|
13995
13995
|
}
|
|
@@ -14013,14 +14013,14 @@ function Sc() {
|
|
|
14013
14013
|
d = Ft(i, l, s, d), d !== u && It(e, o, s, d);
|
|
14014
14014
|
}
|
|
14015
14015
|
}
|
|
14016
|
-
Dt(
|
|
14016
|
+
Dt(ae.afterSanitizeAttributes, e, null);
|
|
14017
14017
|
}, Rt = function(e) {
|
|
14018
14018
|
let t = null, n = xt(e);
|
|
14019
|
-
for (Dt(
|
|
14019
|
+
for (Dt(ae.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (Dt(ae.uponSanitizeShadowNode, t, null), jt(t, e), Lt(t), Tt(t.content) && Rt(t.content), (y ? y(t) : t.nodeType) === _c.element) {
|
|
14020
14020
|
let e = _(t);
|
|
14021
14021
|
Tt(e) && (zt(e), Rt(e));
|
|
14022
14022
|
}
|
|
14023
|
-
Dt(
|
|
14023
|
+
Dt(ae.afterSanitizeShadowDOM, e, null);
|
|
14024
14024
|
}, zt = function(e) {
|
|
14025
14025
|
let t = [{
|
|
14026
14026
|
node: e,
|
|
@@ -14063,7 +14063,7 @@ function Sc() {
|
|
|
14063
14063
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
14064
14064
|
if (Ze = !e, Ze && (e = "<!-->"), typeof e != "string" && !Et(e) && (e = Us(e), typeof e != "string")) throw Ls("dirty is not a string, aborting");
|
|
14065
14065
|
if (!t.isSupported) return e;
|
|
14066
|
-
ke ? (he = Ae, _e = je) : st(n), (
|
|
14066
|
+
ke ? (he = Ae, _e = je) : st(n), (ae.uponSanitizeElement.length > 0 || ae.uponSanitizeAttribute.length > 0) && (he = Hs(he)), ae.uponSanitizeAttribute.length > 0 && (_e = Hs(_e)), t.removed = [];
|
|
14067
14067
|
let c = Be && typeof e != "string" && Et(e);
|
|
14068
14068
|
if (c) {
|
|
14069
14069
|
yt(e);
|
|
@@ -14097,9 +14097,9 @@ function Sc() {
|
|
|
14097
14097
|
e.element && vt(e.element);
|
|
14098
14098
|
}), Ee && Ct(e), e;
|
|
14099
14099
|
if (Ne) {
|
|
14100
|
-
if (Ee && Ct(i), Pe) for (s =
|
|
14100
|
+
if (Ee && Ct(i), Pe) for (s = re.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
14101
14101
|
else s = i;
|
|
14102
|
-
return (_e.shadowroot || _e.shadowrootmode) && (s =
|
|
14102
|
+
return (_e.shadowroot || _e.shadowrootmode) && (s = j.call(r, s, !0)), s;
|
|
14103
14103
|
}
|
|
14104
14104
|
let u = Oe ? i.outerHTML : i.innerHTML;
|
|
14105
14105
|
return Oe && he["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && Is(dc, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), Ee && (u = St(u)), S && Fe ? O(u) : u;
|
|
@@ -14110,19 +14110,19 @@ function Sc() {
|
|
|
14110
14110
|
}, t.isValidAttribute = function(e, t, n) {
|
|
14111
14111
|
return it || st({}), Mt(rt(e), rt(t), n);
|
|
14112
14112
|
}, t.addHook = function(e, t) {
|
|
14113
|
-
typeof t == "function" && Ps(
|
|
14113
|
+
typeof t == "function" && Ps(ae, e) && xs(ae[e], t);
|
|
14114
14114
|
}, t.removeHook = function(e, t) {
|
|
14115
|
-
if (Ps(
|
|
14115
|
+
if (Ps(ae, e)) {
|
|
14116
14116
|
if (t !== void 0) {
|
|
14117
|
-
let n = ys(
|
|
14118
|
-
return n === -1 ? void 0 : Ss(
|
|
14117
|
+
let n = ys(ae[e], t);
|
|
14118
|
+
return n === -1 ? void 0 : Ss(ae[e], n, 1)[0];
|
|
14119
14119
|
}
|
|
14120
|
-
return bs(
|
|
14120
|
+
return bs(ae[e]);
|
|
14121
14121
|
}
|
|
14122
14122
|
}, t.removeHooks = function(e) {
|
|
14123
|
-
Ps(
|
|
14123
|
+
Ps(ae, e) && (ae[e] = []);
|
|
14124
14124
|
}, t.removeAllHooks = function() {
|
|
14125
|
-
|
|
14125
|
+
ae = bc();
|
|
14126
14126
|
}, t;
|
|
14127
14127
|
}
|
|
14128
14128
|
Sc();
|
|
@@ -17908,13 +17908,13 @@ function Jm(e, t, n) {
|
|
|
17908
17908
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(t), d;
|
|
17909
17909
|
}
|
|
17910
17910
|
function d(s) {
|
|
17911
|
-
return s === 33 ? (e.consume(s), f) : s === 47 ? (e.consume(s), a = !0, h) : s === 63 ? (e.consume(s), i = 3, r.interrupt ? t :
|
|
17911
|
+
return s === 33 ? (e.consume(s), f) : s === 47 ? (e.consume(s), a = !0, h) : s === 63 ? (e.consume(s), i = 3, r.interrupt ? t : j) : wu(s) ? (e.consume(s), o = String.fromCharCode(s), g) : n(s);
|
|
17912
17912
|
}
|
|
17913
17913
|
function f(a) {
|
|
17914
|
-
return a === 45 ? (e.consume(a), i = 2, p) : a === 91 ? (e.consume(a), i = 5, s = 0, m) : wu(a) ? (e.consume(a), i = 4, r.interrupt ? t :
|
|
17914
|
+
return a === 45 ? (e.consume(a), i = 2, p) : a === 91 ? (e.consume(a), i = 5, s = 0, m) : wu(a) ? (e.consume(a), i = 4, r.interrupt ? t : j) : n(a);
|
|
17915
17915
|
}
|
|
17916
17916
|
function p(i) {
|
|
17917
|
-
return i === 45 ? (e.consume(i), r.interrupt ? t :
|
|
17917
|
+
return i === 45 ? (e.consume(i), r.interrupt ? t : j) : n(i);
|
|
17918
17918
|
}
|
|
17919
17919
|
function m(i) {
|
|
17920
17920
|
return i === "CDATA[".charCodeAt(s++) ? (e.consume(i), s === 6 ? r.interrupt ? t : O : m) : n(i);
|
|
@@ -17963,38 +17963,38 @@ function Jm(e, t, n) {
|
|
|
17963
17963
|
return t === null || ju(t) ? O(t) : Nu(t) ? (e.consume(t), D) : n(t);
|
|
17964
17964
|
}
|
|
17965
17965
|
function O(t) {
|
|
17966
|
-
return t === 45 && i === 2 ? (e.consume(t),
|
|
17966
|
+
return t === 45 && i === 2 ? (e.consume(t), te) : t === 60 && i === 1 ? (e.consume(t), ne) : t === 62 && i === 4 ? (e.consume(t), ae) : t === 63 && i === 3 ? (e.consume(t), j) : t === 93 && i === 5 ? (e.consume(t), ie) : ju(t) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Gm, oe, k)(t)) : t === null || ju(t) ? (e.exit("htmlFlowData"), k(t)) : (e.consume(t), O);
|
|
17967
|
+
}
|
|
17968
|
+
function k(t) {
|
|
17969
|
+
return e.check(Km, ee, oe)(t);
|
|
17967
17970
|
}
|
|
17968
17971
|
function ee(t) {
|
|
17969
|
-
return e.
|
|
17972
|
+
return e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), A;
|
|
17970
17973
|
}
|
|
17971
|
-
function
|
|
17972
|
-
return
|
|
17974
|
+
function A(t) {
|
|
17975
|
+
return t === null || ju(t) ? k(t) : (e.enter("htmlFlowData"), O(t));
|
|
17973
17976
|
}
|
|
17974
|
-
function
|
|
17975
|
-
return t ===
|
|
17977
|
+
function te(t) {
|
|
17978
|
+
return t === 45 ? (e.consume(t), j) : O(t);
|
|
17976
17979
|
}
|
|
17977
17980
|
function ne(t) {
|
|
17978
|
-
return t ===
|
|
17981
|
+
return t === 47 ? (e.consume(t), o = "", re) : O(t);
|
|
17979
17982
|
}
|
|
17980
17983
|
function re(t) {
|
|
17981
|
-
return t === 47 ? (e.consume(t), o = "", ie) : O(t);
|
|
17982
|
-
}
|
|
17983
|
-
function ie(t) {
|
|
17984
17984
|
if (t === 62) {
|
|
17985
17985
|
let n = o.toLowerCase();
|
|
17986
|
-
return Um.includes(n) ? (e.consume(t),
|
|
17986
|
+
return Um.includes(n) ? (e.consume(t), ae) : O(t);
|
|
17987
17987
|
}
|
|
17988
|
-
return wu(t) && o.length < 8 ? (e.consume(t), o += String.fromCharCode(t),
|
|
17988
|
+
return wu(t) && o.length < 8 ? (e.consume(t), o += String.fromCharCode(t), re) : O(t);
|
|
17989
17989
|
}
|
|
17990
|
-
function
|
|
17991
|
-
return t === 93 ? (e.consume(t),
|
|
17992
|
-
}
|
|
17993
|
-
function A(t) {
|
|
17994
|
-
return t === 62 ? (e.consume(t), j) : t === 45 && i === 2 ? (e.consume(t), A) : O(t);
|
|
17990
|
+
function ie(t) {
|
|
17991
|
+
return t === 93 ? (e.consume(t), j) : O(t);
|
|
17995
17992
|
}
|
|
17996
17993
|
function j(t) {
|
|
17997
|
-
return t ===
|
|
17994
|
+
return t === 62 ? (e.consume(t), ae) : t === 45 && i === 2 ? (e.consume(t), j) : O(t);
|
|
17995
|
+
}
|
|
17996
|
+
function ae(t) {
|
|
17997
|
+
return t === null || ju(t) ? (e.exit("htmlFlowData"), oe(t)) : (e.consume(t), ae);
|
|
17998
17998
|
}
|
|
17999
17999
|
function oe(n) {
|
|
18000
18000
|
return e.exit("htmlFlow"), t(n);
|
|
@@ -18036,34 +18036,34 @@ function Qm(e, t, n) {
|
|
|
18036
18036
|
return t === 45 ? (e.consume(t), p) : n(t);
|
|
18037
18037
|
}
|
|
18038
18038
|
function d(t) {
|
|
18039
|
-
return t === null ? n(t) : t === 45 ? (e.consume(t), f) : ju(t) ? (o = d,
|
|
18039
|
+
return t === null ? n(t) : t === 45 ? (e.consume(t), f) : ju(t) ? (o = d, ne(t)) : (e.consume(t), d);
|
|
18040
18040
|
}
|
|
18041
18041
|
function f(t) {
|
|
18042
18042
|
return t === 45 ? (e.consume(t), p) : d(t);
|
|
18043
18043
|
}
|
|
18044
18044
|
function p(e) {
|
|
18045
|
-
return e === 62 ?
|
|
18045
|
+
return e === 62 ? te(e) : e === 45 ? f(e) : d(e);
|
|
18046
18046
|
}
|
|
18047
18047
|
function m(t) {
|
|
18048
18048
|
return t === "CDATA[".charCodeAt(a++) ? (e.consume(t), a === 6 ? h : m) : n(t);
|
|
18049
18049
|
}
|
|
18050
18050
|
function h(t) {
|
|
18051
|
-
return t === null ? n(t) : t === 93 ? (e.consume(t), g) : ju(t) ? (o = h,
|
|
18051
|
+
return t === null ? n(t) : t === 93 ? (e.consume(t), g) : ju(t) ? (o = h, ne(t)) : (e.consume(t), h);
|
|
18052
18052
|
}
|
|
18053
18053
|
function g(t) {
|
|
18054
18054
|
return t === 93 ? (e.consume(t), _) : h(t);
|
|
18055
18055
|
}
|
|
18056
18056
|
function _(t) {
|
|
18057
|
-
return t === 62 ?
|
|
18057
|
+
return t === 62 ? te(t) : t === 93 ? (e.consume(t), _) : h(t);
|
|
18058
18058
|
}
|
|
18059
18059
|
function v(t) {
|
|
18060
|
-
return t === null || t === 62 ?
|
|
18060
|
+
return t === null || t === 62 ? te(t) : ju(t) ? (o = v, ne(t)) : (e.consume(t), v);
|
|
18061
18061
|
}
|
|
18062
18062
|
function y(t) {
|
|
18063
|
-
return t === null ? n(t) : t === 63 ? (e.consume(t), b) : ju(t) ? (o = y,
|
|
18063
|
+
return t === null ? n(t) : t === 63 ? (e.consume(t), b) : ju(t) ? (o = y, ne(t)) : (e.consume(t), y);
|
|
18064
18064
|
}
|
|
18065
18065
|
function b(e) {
|
|
18066
|
-
return e === 62 ?
|
|
18066
|
+
return e === 62 ? te(e) : y(e);
|
|
18067
18067
|
}
|
|
18068
18068
|
function x(t) {
|
|
18069
18069
|
return wu(t) ? (e.consume(t), S) : n(t);
|
|
@@ -18072,42 +18072,42 @@ function Qm(e, t, n) {
|
|
|
18072
18072
|
return t === 45 || Tu(t) ? (e.consume(t), S) : C(t);
|
|
18073
18073
|
}
|
|
18074
18074
|
function C(t) {
|
|
18075
|
-
return ju(t) ? (o = C,
|
|
18075
|
+
return ju(t) ? (o = C, ne(t)) : Nu(t) ? (e.consume(t), C) : te(t);
|
|
18076
18076
|
}
|
|
18077
18077
|
function w(t) {
|
|
18078
18078
|
return t === 45 || Tu(t) ? (e.consume(t), w) : t === 47 || t === 62 || Mu(t) ? T(t) : n(t);
|
|
18079
18079
|
}
|
|
18080
18080
|
function T(t) {
|
|
18081
|
-
return t === 47 ? (e.consume(t),
|
|
18081
|
+
return t === 47 ? (e.consume(t), te) : t === 58 || t === 95 || wu(t) ? (e.consume(t), E) : ju(t) ? (o = T, ne(t)) : Nu(t) ? (e.consume(t), T) : te(t);
|
|
18082
18082
|
}
|
|
18083
18083
|
function E(t) {
|
|
18084
18084
|
return t === 45 || t === 46 || t === 58 || t === 95 || Tu(t) ? (e.consume(t), E) : D(t);
|
|
18085
18085
|
}
|
|
18086
18086
|
function D(t) {
|
|
18087
|
-
return t === 61 ? (e.consume(t), O) : ju(t) ? (o = D,
|
|
18087
|
+
return t === 61 ? (e.consume(t), O) : ju(t) ? (o = D, ne(t)) : Nu(t) ? (e.consume(t), D) : T(t);
|
|
18088
18088
|
}
|
|
18089
18089
|
function O(t) {
|
|
18090
|
-
return t === null || t === 60 || t === 61 || t === 62 || t === 96 ? n(t) : t === 34 || t === 39 ? (e.consume(t), i = t,
|
|
18090
|
+
return t === null || t === 60 || t === 61 || t === 62 || t === 96 ? n(t) : t === 34 || t === 39 ? (e.consume(t), i = t, k) : ju(t) ? (o = O, ne(t)) : Nu(t) ? (e.consume(t), O) : (e.consume(t), ee);
|
|
18091
18091
|
}
|
|
18092
|
-
function
|
|
18093
|
-
return t === i ? (e.consume(t), i = void 0,
|
|
18092
|
+
function k(t) {
|
|
18093
|
+
return t === i ? (e.consume(t), i = void 0, A) : t === null ? n(t) : ju(t) ? (o = k, ne(t)) : (e.consume(t), k);
|
|
18094
18094
|
}
|
|
18095
|
-
function
|
|
18096
|
-
return t === null || t === 34 || t === 39 || t === 60 || t === 61 || t === 96 ? n(t) : t === 47 || t === 62 || Mu(t) ? T(t) : (e.consume(t),
|
|
18095
|
+
function ee(t) {
|
|
18096
|
+
return t === null || t === 34 || t === 39 || t === 60 || t === 61 || t === 96 ? n(t) : t === 47 || t === 62 || Mu(t) ? T(t) : (e.consume(t), ee);
|
|
18097
18097
|
}
|
|
18098
|
-
function
|
|
18098
|
+
function A(e) {
|
|
18099
18099
|
return e === 47 || e === 62 || Mu(e) ? T(e) : n(e);
|
|
18100
18100
|
}
|
|
18101
|
-
function
|
|
18101
|
+
function te(r) {
|
|
18102
18102
|
return r === 62 ? (e.consume(r), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(r);
|
|
18103
18103
|
}
|
|
18104
|
+
function ne(t) {
|
|
18105
|
+
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), re;
|
|
18106
|
+
}
|
|
18104
18107
|
function re(t) {
|
|
18105
|
-
return e
|
|
18108
|
+
return Nu(t) ? Zp(e, ie, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(t) : ie(t);
|
|
18106
18109
|
}
|
|
18107
18110
|
function ie(t) {
|
|
18108
|
-
return Nu(t) ? Zp(e, ae, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(t) : ae(t);
|
|
18109
|
-
}
|
|
18110
|
-
function ae(t) {
|
|
18111
18111
|
return e.enter("htmlTextData"), o(t);
|
|
18112
18112
|
}
|
|
18113
18113
|
}
|
|
@@ -19610,7 +19610,7 @@ function Lg(e) {
|
|
|
19610
19610
|
codeFencedFenceMeta: m,
|
|
19611
19611
|
codeFlowValue: E,
|
|
19612
19612
|
codeIndented: c(_),
|
|
19613
|
-
codeText: c(
|
|
19613
|
+
codeText: c(A),
|
|
19614
19614
|
codeTextData: E,
|
|
19615
19615
|
data: E,
|
|
19616
19616
|
definition: c(),
|
|
@@ -19620,22 +19620,22 @@ function Lg(e) {
|
|
|
19620
19620
|
emphasis: c(),
|
|
19621
19621
|
hardBreakEscape: c(O),
|
|
19622
19622
|
hardBreakTrailing: c(O),
|
|
19623
|
-
htmlFlow: c(
|
|
19623
|
+
htmlFlow: c(k),
|
|
19624
19624
|
htmlFlowData: E,
|
|
19625
|
-
htmlText: c(
|
|
19625
|
+
htmlText: c(ee),
|
|
19626
19626
|
htmlTextData: E,
|
|
19627
|
-
image: c(
|
|
19628
|
-
label:
|
|
19629
|
-
labelText:
|
|
19627
|
+
image: c(ne),
|
|
19628
|
+
label: ie,
|
|
19629
|
+
labelText: re,
|
|
19630
19630
|
lineEnding: D,
|
|
19631
|
-
link: c(
|
|
19631
|
+
link: c(te),
|
|
19632
19632
|
listItem: c(),
|
|
19633
19633
|
listOrdered: c(),
|
|
19634
19634
|
listUnordered: c(),
|
|
19635
19635
|
paragraph: c(),
|
|
19636
19636
|
referenceString: ce,
|
|
19637
|
-
resourceDestinationString:
|
|
19638
|
-
resourceTitleString:
|
|
19637
|
+
resourceDestinationString: j,
|
|
19638
|
+
resourceTitleString: ae,
|
|
19639
19639
|
resource: oe,
|
|
19640
19640
|
setextHeading: c(w),
|
|
19641
19641
|
setextHeadingLineSequence: C,
|
|
@@ -19850,19 +19850,19 @@ function Lg(e) {
|
|
|
19850
19850
|
function O() {
|
|
19851
19851
|
this.data.atHardBreak = !0;
|
|
19852
19852
|
}
|
|
19853
|
-
function
|
|
19853
|
+
function k() {
|
|
19854
19854
|
let e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
19855
19855
|
t.value = e;
|
|
19856
19856
|
}
|
|
19857
|
-
function
|
|
19857
|
+
function ee() {
|
|
19858
19858
|
let e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
19859
19859
|
t.value = e;
|
|
19860
19860
|
}
|
|
19861
|
-
function
|
|
19861
|
+
function A() {
|
|
19862
19862
|
let e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
19863
19863
|
t.value = e;
|
|
19864
19864
|
}
|
|
19865
|
-
function
|
|
19865
|
+
function te() {
|
|
19866
19866
|
let e = this.stack[this.stack.length - 1];
|
|
19867
19867
|
if (this.data.inReference) {
|
|
19868
19868
|
let t = this.data.referenceType || "shortcut";
|
|
@@ -19870,7 +19870,7 @@ function Lg(e) {
|
|
|
19870
19870
|
} else delete e.identifier, delete e.label;
|
|
19871
19871
|
this.data.referenceType = void 0;
|
|
19872
19872
|
}
|
|
19873
|
-
function
|
|
19873
|
+
function ne() {
|
|
19874
19874
|
let e = this.stack[this.stack.length - 1];
|
|
19875
19875
|
if (this.data.inReference) {
|
|
19876
19876
|
let t = this.data.referenceType || "shortcut";
|
|
@@ -19878,19 +19878,19 @@ function Lg(e) {
|
|
|
19878
19878
|
} else delete e.identifier, delete e.label;
|
|
19879
19879
|
this.data.referenceType = void 0;
|
|
19880
19880
|
}
|
|
19881
|
-
function
|
|
19881
|
+
function re(e) {
|
|
19882
19882
|
let t = this.sliceSerialize(e), n = this.stack[this.stack.length - 2];
|
|
19883
19883
|
n.label = Yf(t), n.identifier = gd(t).toLowerCase();
|
|
19884
19884
|
}
|
|
19885
|
-
function
|
|
19885
|
+
function ie() {
|
|
19886
19886
|
let e = this.stack[this.stack.length - 1], t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
19887
19887
|
this.data.inReference = !0, n.type === "link" ? n.children = e.children : n.alt = t;
|
|
19888
19888
|
}
|
|
19889
|
-
function
|
|
19889
|
+
function j() {
|
|
19890
19890
|
let e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
19891
19891
|
t.url = e;
|
|
19892
19892
|
}
|
|
19893
|
-
function
|
|
19893
|
+
function ae() {
|
|
19894
19894
|
let e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
19895
19895
|
t.title = e;
|
|
19896
19896
|
}
|
|
@@ -21701,12 +21701,12 @@ var ty = "bg-layer-sunken", ny = [
|
|
|
21701
21701
|
children: [
|
|
21702
21702
|
/* @__PURE__ */ I("h3", {
|
|
21703
21703
|
className: z(c ? "min-w-0 shrink" : "shrink-0 whitespace-nowrap", n, _y.title),
|
|
21704
|
-
children: a ? /* @__PURE__ */ I(
|
|
21704
|
+
children: a ? /* @__PURE__ */ I(ae, {
|
|
21705
21705
|
text: e,
|
|
21706
21706
|
query: a
|
|
21707
|
-
}) : c ? /* @__PURE__ */ I(
|
|
21707
|
+
}) : c ? /* @__PURE__ */ I(A, { text: e }) : e
|
|
21708
21708
|
}),
|
|
21709
|
-
t != null && /* @__PURE__ */ I(
|
|
21709
|
+
t != null && /* @__PURE__ */ I(A, {
|
|
21710
21710
|
className: z("max-w-[30%] shrink-0", r, _y.count),
|
|
21711
21711
|
text: t
|
|
21712
21712
|
}),
|
|
@@ -21787,7 +21787,7 @@ var ty = "bg-layer-sunken", ny = [
|
|
|
21787
21787
|
})
|
|
21788
21788
|
}), r && e.version && /* @__PURE__ */ I("span", {
|
|
21789
21789
|
className: z("inline-flex h-[24px] max-w-[45%] shrink-0 items-center gap-1 rounded-lg border px-2", l, Sy.versionTag),
|
|
21790
|
-
children: /* @__PURE__ */ I(
|
|
21790
|
+
children: /* @__PURE__ */ I(A, { text: n.replace("{version}", e.version) })
|
|
21791
21791
|
})] });
|
|
21792
21792
|
return /* @__PURE__ */ I("div", {
|
|
21793
21793
|
style: u,
|
|
@@ -40106,31 +40106,31 @@ var hT = function(e, t, n) {
|
|
|
40106
40106
|
n && (w *= r.sizeMultiplier);
|
|
40107
40107
|
var T = C / 2 - w, E = [];
|
|
40108
40108
|
if (u.length > 0) {
|
|
40109
|
-
var D = C - m - v, O = Math.round(C * 1e3),
|
|
40110
|
-
width:
|
|
40111
|
-
height:
|
|
40109
|
+
var D = C - m - v, O = Math.round(C * 1e3), k = iS(u, Math.round(D * 1e3)), ee = new CS(u, k), A = H(d / 1e3), te = H(O / 1e3), ne = MC([], [new SS([ee], {
|
|
40110
|
+
width: A,
|
|
40111
|
+
height: te,
|
|
40112
40112
|
viewBox: "0 0 " + d + " " + O
|
|
40113
40113
|
})], r);
|
|
40114
|
-
|
|
40114
|
+
ne.height = O / 1e3, ne.style.width = A, ne.style.height = te, E.push({
|
|
40115
40115
|
type: "elem",
|
|
40116
|
-
elem:
|
|
40116
|
+
elem: ne
|
|
40117
40117
|
});
|
|
40118
40118
|
} else {
|
|
40119
40119
|
if (E.push(xT(l, f, i)), E.push(wT), s === null) {
|
|
40120
|
-
var
|
|
40121
|
-
E.push(ST(c,
|
|
40120
|
+
var re = C - m - v + 2 * CT;
|
|
40121
|
+
E.push(ST(c, re, r));
|
|
40122
40122
|
} else {
|
|
40123
|
-
var
|
|
40124
|
-
E.push(ST(c,
|
|
40123
|
+
var ie = (C - m - v - y) / 2 + 2 * CT;
|
|
40124
|
+
E.push(ST(c, ie, r)), E.push(wT), E.push(xT(s, f, i)), E.push(wT), E.push(ST(c, ie, r));
|
|
40125
40125
|
}
|
|
40126
40126
|
E.push(wT), E.push(xT(o, f, i));
|
|
40127
40127
|
}
|
|
40128
|
-
var
|
|
40128
|
+
var j = r.havingBaseStyle(Vx.TEXT);
|
|
40129
40129
|
return gT(X(["delimsizing", "mult"], [RC({
|
|
40130
40130
|
positionType: "bottom",
|
|
40131
40131
|
positionData: T,
|
|
40132
40132
|
children: E
|
|
40133
|
-
})],
|
|
40133
|
+
})], j), Vx.TEXT, r, a);
|
|
40134
40134
|
}, OT = 80, kT = .08, AT = function(e, t, n, r, i) {
|
|
40135
40135
|
return MC(["hide-tail"], [new SS([new CS(e, tS(e, r, n))], {
|
|
40136
40136
|
width: "400em",
|
|
@@ -40877,29 +40877,29 @@ var cE = function(e, t) {
|
|
|
40877
40877
|
var w = e.rowGaps[n], T = 0;
|
|
40878
40878
|
w && (T = uS(w, t), T > 0 && (T += g, x < T && (x = T), T = 0)), e.addJot && n < e.body.length - 1 && (x += p), S.height = b, S.depth = x, _ += b, S.pos = _, _ += x + T, s[n] = S, v(a[n + 1]);
|
|
40879
40879
|
}
|
|
40880
|
-
var E = _ / 2 + t.fontMetrics().axisHeight, D = e.cols || [], O = [],
|
|
40880
|
+
var E = _ / 2 + t.fontMetrics().axisHeight, D = e.cols || [], O = [], k, ee, A = [];
|
|
40881
40881
|
if (e.tags && e.tags.some((e) => e)) for (n = 0; n < i; ++n) {
|
|
40882
|
-
var
|
|
40883
|
-
|
|
40882
|
+
var te = s[n], ne = te.pos - E, re = e.tags[n], ie = void 0;
|
|
40883
|
+
ie = re === !0 ? X(["eqn-num"], [], t) : re === !1 ? X([], [], t) : X([], ow(re, t, !0), t), ie.depth = te.depth, ie.height = te.height, A.push({
|
|
40884
40884
|
type: "elem",
|
|
40885
|
-
elem:
|
|
40886
|
-
shift:
|
|
40885
|
+
elem: ie,
|
|
40886
|
+
shift: ne
|
|
40887
40887
|
});
|
|
40888
40888
|
}
|
|
40889
|
-
for (r = 0,
|
|
40890
|
-
for (var
|
|
40889
|
+
for (r = 0, ee = 0; r < o || ee < D.length; ++r, ++ee) {
|
|
40890
|
+
for (var j = D[ee], ae = !0; (oe = j)?.type === "separator";) {
|
|
40891
40891
|
var oe;
|
|
40892
|
-
if (
|
|
40893
|
-
var se =
|
|
40892
|
+
if (ae || (k = X(["arraycolsep"], []), k.style.width = H(t.fontMetrics().doubleRuleSep), O.push(k)), j.separator === "|" || j.separator === ":") {
|
|
40893
|
+
var se = j.separator === "|" ? "solid" : "dashed", ce = X(["vertical-separator"], [], t);
|
|
40894
40894
|
ce.style.height = H(_), ce.style.borderRightWidth = H(l), ce.style.borderRightStyle = se, ce.style.margin = "0 " + H(-l / 2);
|
|
40895
40895
|
var le = _ - E;
|
|
40896
40896
|
le && (ce.style.verticalAlign = H(-le)), O.push(ce);
|
|
40897
|
-
} else throw new V("Invalid separator type: " +
|
|
40898
|
-
|
|
40897
|
+
} else throw new V("Invalid separator type: " + j.separator);
|
|
40898
|
+
ee++, j = D[ee], ae = !1;
|
|
40899
40899
|
}
|
|
40900
40900
|
if (!(r >= o)) {
|
|
40901
40901
|
var ue = void 0;
|
|
40902
|
-
(r > 0 || e.hskipBeforeAndAfter) && (ue =
|
|
40902
|
+
(r > 0 || e.hskipBeforeAndAfter) && (ue = j?.pregap ?? d, ue !== 0 && (k = X(["arraycolsep"], []), k.style.width = H(ue), O.push(k)));
|
|
40903
40903
|
var de = [];
|
|
40904
40904
|
for (n = 0; n < i; ++n) {
|
|
40905
40905
|
var fe = s[n], pe = fe.cells[r];
|
|
@@ -40915,8 +40915,8 @@ var cE = function(e, t) {
|
|
|
40915
40915
|
var he = RC({
|
|
40916
40916
|
positionType: "individualShift",
|
|
40917
40917
|
children: de
|
|
40918
|
-
}), ge = X(["col-align-" + (
|
|
40919
|
-
O.push(ge), (r < o - 1 || e.hskipBeforeAndAfter) && (ue =
|
|
40918
|
+
}), ge = X(["col-align-" + (j?.align || "c")], [he]);
|
|
40919
|
+
O.push(ge), (r < o - 1 || e.hskipBeforeAndAfter) && (ue = j?.postgap ?? d, ue !== 0 && (k = X(["arraycolsep"], []), k.style.width = H(ue), O.push(k)));
|
|
40920
40920
|
}
|
|
40921
40921
|
}
|
|
40922
40922
|
var _e = X(["mtable"], O);
|
|
@@ -40942,10 +40942,10 @@ var cE = function(e, t) {
|
|
|
40942
40942
|
children: ye
|
|
40943
40943
|
});
|
|
40944
40944
|
}
|
|
40945
|
-
if (
|
|
40945
|
+
if (A.length === 0) return X(["mord"], [_e], t);
|
|
40946
40946
|
var Se = X(["tag"], [RC({
|
|
40947
40947
|
positionType: "individualShift",
|
|
40948
|
-
children:
|
|
40948
|
+
children: A
|
|
40949
40949
|
})], t);
|
|
40950
40950
|
return FC([_e, Se]);
|
|
40951
40951
|
}, lE = {
|
|
@@ -45576,32 +45576,32 @@ function QO(e, t) {
|
|
|
45576
45576
|
var r = n.language, i = n.children, a = n.style, o = a === void 0 ? t : a, s = n.customStyle, c = s === void 0 ? {} : s, l = n.codeTagProps, u = l === void 0 ? {
|
|
45577
45577
|
className: r ? `language-${r}` : void 0,
|
|
45578
45578
|
style: RO(RO({}, o["code[class*=\"language-\"]"]), o[`code[class*="language-${r}"]`])
|
|
45579
|
-
} : l, d = n.useInlineStyles, f = d === void 0 ? !0 : d, p = n.showLineNumbers, m = p === void 0 ? !1 : p, h = n.showInlineLineNumbers, g = h === void 0 ? !0 : h, _ = n.startingLineNumber, v = _ === void 0 ? 1 : _, y = n.lineNumberContainerStyle, b = n.lineNumberStyle, x = b === void 0 ? {} : b, S = n.wrapLines, C = n.wrapLongLines, w = C === void 0 ? !1 : C, T = n.lineProps, E = T === void 0 ? {} : T, D = n.renderer, O = n.PreTag,
|
|
45580
|
-
|
|
45581
|
-
var
|
|
45579
|
+
} : l, d = n.useInlineStyles, f = d === void 0 ? !0 : d, p = n.showLineNumbers, m = p === void 0 ? !1 : p, h = n.showInlineLineNumbers, g = h === void 0 ? !0 : h, _ = n.startingLineNumber, v = _ === void 0 ? 1 : _, y = n.lineNumberContainerStyle, b = n.lineNumberStyle, x = b === void 0 ? {} : b, S = n.wrapLines, C = n.wrapLongLines, w = C === void 0 ? !1 : C, T = n.lineProps, E = T === void 0 ? {} : T, D = n.renderer, O = n.PreTag, k = O === void 0 ? "pre" : O, ee = n.CodeTag, A = ee === void 0 ? "code" : ee, te = n.code, ne = te === void 0 ? (Array.isArray(i) ? i[0] : i) || "" : te, re = n.astGenerator, ie = mO(n, IO);
|
|
45580
|
+
re ||= e;
|
|
45581
|
+
var j = m ? /*#__PURE__*/ He.createElement(HO, {
|
|
45582
45582
|
containerStyle: y,
|
|
45583
45583
|
codeStyle: u.style || {},
|
|
45584
45584
|
numberStyle: x,
|
|
45585
45585
|
startingLineNumber: v,
|
|
45586
|
-
codeString:
|
|
45587
|
-
}) : null,
|
|
45588
|
-
className:
|
|
45586
|
+
codeString: ne
|
|
45587
|
+
}) : null, ae = o.hljs || o["pre[class*=\"language-\"]"] || { backgroundColor: "#fff" }, oe = XO(re) ? "hljs" : "prismjs", se = f ? Object.assign({}, ie, { style: Object.assign({}, ae, c) }) : Object.assign({}, ie, {
|
|
45588
|
+
className: ie.className ? `${oe} ${ie.className}` : oe,
|
|
45589
45589
|
style: Object.assign({}, c)
|
|
45590
45590
|
});
|
|
45591
|
-
if (w ? u.style = RO({ whiteSpace: "pre-wrap" }, u.style) : u.style = RO({ whiteSpace: "pre" }, u.style), !
|
|
45591
|
+
if (w ? u.style = RO({ whiteSpace: "pre-wrap" }, u.style) : u.style = RO({ whiteSpace: "pre" }, u.style), !re) return /*#__PURE__*/ He.createElement(k, se, j, /*#__PURE__*/ He.createElement(A, u, ne));
|
|
45592
45592
|
(S === void 0 && D || w) && (S = !0), D ||= YO;
|
|
45593
45593
|
var ce = [{
|
|
45594
45594
|
type: "text",
|
|
45595
|
-
value:
|
|
45595
|
+
value: ne
|
|
45596
45596
|
}], le = ZO({
|
|
45597
|
-
astGenerator:
|
|
45597
|
+
astGenerator: re,
|
|
45598
45598
|
language: r,
|
|
45599
|
-
code:
|
|
45599
|
+
code: ne,
|
|
45600
45600
|
defaultCodeValue: ce
|
|
45601
45601
|
});
|
|
45602
45602
|
le.language === null && (le.value = ce);
|
|
45603
|
-
var ue = v + (
|
|
45604
|
-
return /*#__PURE__*/ He.createElement(
|
|
45603
|
+
var ue = v + (ne.match(/\n/g)?.length ?? 0), de = JO(le, S, E, m, g, v, ue, x, w);
|
|
45604
|
+
return /*#__PURE__*/ He.createElement(k, se, /*#__PURE__*/ He.createElement(A, u, !g && j, D({
|
|
45605
45605
|
rows: de,
|
|
45606
45606
|
stylesheet: o,
|
|
45607
45607
|
useInlineStyles: f
|
|
@@ -45872,15 +45872,15 @@ function mk(e, t, n, r, i, a) {
|
|
|
45872
45872
|
} else if (b = pk(h, 0, v, d), !b) continue;
|
|
45873
45873
|
var x = b.index, T = b[0], E = v.slice(0, x), D = v.slice(x + T.length), O = _ + v.length;
|
|
45874
45874
|
a && O > a.reach && (a.reach = O);
|
|
45875
|
-
var
|
|
45876
|
-
E && (
|
|
45877
|
-
var
|
|
45878
|
-
if (g = gk(t,
|
|
45879
|
-
var
|
|
45875
|
+
var k = g.prev;
|
|
45876
|
+
E && (k = gk(t, k, E), _ += E.length), _k(t, k, y);
|
|
45877
|
+
var ee = new fk(o, u ? dk.tokenize(T, u) : T, p, T);
|
|
45878
|
+
if (g = gk(t, k, ee), D && gk(t, g, D), y > 1) {
|
|
45879
|
+
var A = {
|
|
45880
45880
|
cause: o + "," + c,
|
|
45881
45881
|
reach: O
|
|
45882
45882
|
};
|
|
45883
|
-
mk(e, t, n, g.prev, _,
|
|
45883
|
+
mk(e, t, n, g.prev, _, A), a && A.reach > a.reach && (a.reach = A.reach);
|
|
45884
45884
|
}
|
|
45885
45885
|
}
|
|
45886
45886
|
}
|
|
@@ -48074,8 +48074,8 @@ function iA(e) {
|
|
|
48074
48074
|
punctuation: /[:,]/
|
|
48075
48075
|
}
|
|
48076
48076
|
} });
|
|
48077
|
-
var D = ":[^}\\r\\n]+", O = r(t("[^\"'/()]|<<0>>|\\(<<self>>*\\)", [C]), 2),
|
|
48078
|
-
function
|
|
48077
|
+
var D = ":[^}\\r\\n]+", O = r(t("[^\"'/()]|<<0>>|\\(<<self>>*\\)", [C]), 2), k = t("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}", [O, D]), ee = r(t("[^\"'/()]|\\/(?!\\*)|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>|\\(<<self>>*\\)", [S]), 2), A = t("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}", [ee, D]);
|
|
48078
|
+
function te(t, r) {
|
|
48079
48079
|
return {
|
|
48080
48080
|
interpolation: {
|
|
48081
48081
|
pattern: n("((?:^|[^{])(?:\\{\\{)*)<<0>>", [t]),
|
|
@@ -48099,15 +48099,15 @@ function iA(e) {
|
|
|
48099
48099
|
}
|
|
48100
48100
|
e.languages.insertBefore("csharp", "string", {
|
|
48101
48101
|
"interpolation-string": [{
|
|
48102
|
-
pattern: n("(^|[^\\\\])(?:\\$@|@\\$)\"(?:\"\"|\\\\[\\s\\S]|\\{\\{|<<0>>|[^\\\\{\"])*\"", [
|
|
48102
|
+
pattern: n("(^|[^\\\\])(?:\\$@|@\\$)\"(?:\"\"|\\\\[\\s\\S]|\\{\\{|<<0>>|[^\\\\{\"])*\"", [k]),
|
|
48103
48103
|
lookbehind: !0,
|
|
48104
48104
|
greedy: !0,
|
|
48105
|
-
inside:
|
|
48105
|
+
inside: te(k, O)
|
|
48106
48106
|
}, {
|
|
48107
|
-
pattern: n("(^|[^@\\\\])\\$\"(?:\\\\.|\\{\\{|<<0>>|[^\\\\\"{])*\"", [
|
|
48107
|
+
pattern: n("(^|[^@\\\\])\\$\"(?:\\\\.|\\{\\{|<<0>>|[^\\\\\"{])*\"", [A]),
|
|
48108
48108
|
lookbehind: !0,
|
|
48109
48109
|
greedy: !0,
|
|
48110
|
-
inside:
|
|
48110
|
+
inside: te(A, ee)
|
|
48111
48111
|
}],
|
|
48112
48112
|
char: {
|
|
48113
48113
|
pattern: RegExp(y),
|
|
@@ -61339,17 +61339,17 @@ var iF = 2e3, aF = (e, t = iF) => {
|
|
|
61339
61339
|
children: f ?? e
|
|
61340
61340
|
}), !n && /* @__PURE__ */ L("div", {
|
|
61341
61341
|
className: "flex items-center gap-1",
|
|
61342
|
-
children: [!s && /* @__PURE__ */ I(
|
|
61342
|
+
children: [!s && /* @__PURE__ */ I(ie, {
|
|
61343
61343
|
icon: /* @__PURE__ */ I(my, {
|
|
61344
61344
|
size: m.SM,
|
|
61345
61345
|
stroke: h
|
|
61346
61346
|
}),
|
|
61347
61347
|
"aria-label": o,
|
|
61348
|
-
size:
|
|
61348
|
+
size: ee.Small,
|
|
61349
61349
|
onClick: () => {
|
|
61350
61350
|
Kv(t, `code.${Hv(e)}`);
|
|
61351
61351
|
}
|
|
61352
|
-
}), /* @__PURE__ */ I(
|
|
61352
|
+
}), /* @__PURE__ */ I(ie, {
|
|
61353
61353
|
icon: _ ? /* @__PURE__ */ I(fy, {
|
|
61354
61354
|
size: m.SM,
|
|
61355
61355
|
className: oF.copiedIcon,
|
|
@@ -61361,7 +61361,7 @@ var iF = 2e3, aF = (e, t = iF) => {
|
|
|
61361
61361
|
stroke: h
|
|
61362
61362
|
}),
|
|
61363
61363
|
"aria-label": i,
|
|
61364
|
-
size:
|
|
61364
|
+
size: ee.Small,
|
|
61365
61365
|
onClick: v
|
|
61366
61366
|
})]
|
|
61367
61367
|
})]
|
|
@@ -61796,7 +61796,7 @@ var HF = (e, t) => {
|
|
|
61796
61796
|
if (e.isUnsharing) return t.unsharingLabel;
|
|
61797
61797
|
if (e.isRemovingAccess) return t.removingAccessLabel;
|
|
61798
61798
|
}, UF = ({ controller: e, labels: t, activeTab: n, tabs: r, onTabChange: i, selectedPaths: a, onSelectedPathsChange: o, variant: s, actionProfile: c, autoSelectUploadedItems: l = !1, allowedFileTypes: u, maxSelectableFileSize: d, isRowSelectable: f, getDisabledTooltip: p, unsupportedFileTypeTooltip: m }) => {
|
|
61799
|
-
let { items: h, isLoading: g, error: _, path: v, onPathChange: y, retry: b, onSearchFiles: x, isSearching: S, searchResults: C, clearSearchResults: w, expandedPaths: T, loadedPaths: E, onExpandedPathsChange: D, onFolderPopupPathChange: O, folderPopupLoadingPaths:
|
|
61799
|
+
let { items: h, isLoading: g, error: _, path: v, onPathChange: y, retry: b, onSearchFiles: x, isSearching: S, searchResults: C, clearSearchResults: w, expandedPaths: T, loadedPaths: E, onExpandedPathsChange: D, onFolderPopupPathChange: O, folderPopupLoadingPaths: k, onUploadFiles: ee, onUploadArchive: A, onValidateUpload: te, uploadBatchState: ne, cancelUpload: re, clearUploadBatch: ie, onCreateFolder: j, onCreateFolderValidate: ae, onDownloadFiles: oe, isDownloading: se, onDeleteFiles: ce, isDeleting: le, onMoveToFiles: de, onRenameValidate: fe, isRenaming: pe, onCopyFiles: me, isCopying: he, isMoving: ge, cancelCopyMove: _e, uploadEnabled: M, isNewButtonDisabled: ye, disabledNewButtonTooltip: be, visibleColumns: xe, dateLocale: Se, dateOptions: Ce, actionLabels: we, sharedWithMeIds: Te, sharedByMePaths: Ee, onUnshareFiles: Oe, isUnsharing: ke, onRemoveFilesAccess: Ae, isRemovingAccess: je, fileMetadata: Me, isFileMetadataLoading: Ne, onGetInfo: Pe, clearMetadata: Fe } = e, [Ie, Le] = F(void 0), { handleGridApiChange: Re, reset: ze } = zF();
|
|
61800
61800
|
Ye(() => {
|
|
61801
61801
|
ze();
|
|
61802
61802
|
}, [n, ze]);
|
|
@@ -61851,7 +61851,7 @@ var HF = (e, t) => {
|
|
|
61851
61851
|
header: t.treeHeaderByTab[n],
|
|
61852
61852
|
expandedPaths: T,
|
|
61853
61853
|
loadedPaths: E,
|
|
61854
|
-
loadingPaths:
|
|
61854
|
+
loadingPaths: k,
|
|
61855
61855
|
onExpandedPathsChange: D,
|
|
61856
61856
|
actionLabels: Be
|
|
61857
61857
|
}), [
|
|
@@ -61859,7 +61859,7 @@ var HF = (e, t) => {
|
|
|
61859
61859
|
n,
|
|
61860
61860
|
T,
|
|
61861
61861
|
E,
|
|
61862
|
-
|
|
61862
|
+
k,
|
|
61863
61863
|
D,
|
|
61864
61864
|
Be
|
|
61865
61865
|
]), Ke = s === jF.Standalone && c === MF.Full && n === qn.MyFiles && M, qe = P(() => ({
|
|
@@ -61911,7 +61911,7 @@ var HF = (e, t) => {
|
|
|
61911
61911
|
else if (e !== n) return;
|
|
61912
61912
|
}
|
|
61913
61913
|
return e;
|
|
61914
|
-
}, [a]), Ze = Ie != null &&
|
|
61914
|
+
}, [a]), Ze = Ie != null && k.has(Ie), Qe = Ze ? Ie : Xe, $e = P(() => ({
|
|
61915
61915
|
copyLabel: t.copyLabel,
|
|
61916
61916
|
moveLabel: t.moveLabel,
|
|
61917
61917
|
addFolderLabel: t.addFolderLabel,
|
|
@@ -61940,7 +61940,7 @@ var HF = (e, t) => {
|
|
|
61940
61940
|
Qe,
|
|
61941
61941
|
Ie
|
|
61942
61942
|
]), tt = () => {
|
|
61943
|
-
|
|
61943
|
+
re(), ie();
|
|
61944
61944
|
}, nt = P(() => ({
|
|
61945
61945
|
fileMetadata: Me,
|
|
61946
61946
|
loading: Ne,
|
|
@@ -61969,10 +61969,10 @@ var HF = (e, t) => {
|
|
|
61969
61969
|
isUnsharing: ke,
|
|
61970
61970
|
isRemovingAccess: je
|
|
61971
61971
|
}, t), it = P(() => {
|
|
61972
|
-
if (
|
|
61973
|
-
let e =
|
|
61974
|
-
return t.getUploadProgressText(e,
|
|
61975
|
-
}, [
|
|
61972
|
+
if (ne == null) return "";
|
|
61973
|
+
let e = ne.files.filter((e) => e.status !== FF.Uploading).length;
|
|
61974
|
+
return t.getUploadProgressText(e, ne.files.length);
|
|
61975
|
+
}, [ne, t]), at = P(() => C != null && !S ? {
|
|
61976
61976
|
title: t.searchEmptyStateTitle,
|
|
61977
61977
|
description: ""
|
|
61978
61978
|
} : v.split("/").filter(Boolean).length > 1 ? {
|
|
@@ -62023,11 +62023,11 @@ var HF = (e, t) => {
|
|
|
62023
62023
|
onRemoveFilesAccess: Ae,
|
|
62024
62024
|
fileMetadataPopupOptions: nt,
|
|
62025
62025
|
onGetInfo: Pe,
|
|
62026
|
-
onUploadFiles:
|
|
62027
|
-
onUploadArchive:
|
|
62028
|
-
onValidateUpload:
|
|
62029
|
-
onCreateFolder:
|
|
62030
|
-
onCreateFolderValidate:
|
|
62026
|
+
onUploadFiles: ee,
|
|
62027
|
+
onUploadArchive: A,
|
|
62028
|
+
onValidateUpload: te,
|
|
62029
|
+
onCreateFolder: j,
|
|
62030
|
+
onCreateFolderValidate: ae,
|
|
62031
62031
|
onDownloadFiles: oe,
|
|
62032
62032
|
onDeleteFiles: ce,
|
|
62033
62033
|
onMoveToFiles: de,
|
|
@@ -62059,8 +62059,8 @@ var HF = (e, t) => {
|
|
|
62059
62059
|
onClick: b
|
|
62060
62060
|
})]
|
|
62061
62061
|
}),
|
|
62062
|
-
|
|
62063
|
-
batchState:
|
|
62062
|
+
ne != null && /* @__PURE__ */ I(VF, {
|
|
62063
|
+
batchState: ne,
|
|
62064
62064
|
uploadProgressTitle: t.uploadProgressTitle,
|
|
62065
62065
|
uploadProgressText: it,
|
|
62066
62066
|
cancelLabel: t.cancelLabel,
|
|
@@ -62085,9 +62085,9 @@ var WF = qe(({ isOpen: e, onClose: t, onAttach: n, onSkippedUnsupportedFiles: r,
|
|
|
62085
62085
|
return t(T), D?.forEach((t) => {
|
|
62086
62086
|
e.set(t.path, t), t.id && e.set(t.id, t);
|
|
62087
62087
|
}), e;
|
|
62088
|
-
}, [T, D]),
|
|
62088
|
+
}, [T, D]), k = P(() => Array.from(p).map((e) => O.get(e)).filter((e) => e != null), [O, p]), ee = N(() => {
|
|
62089
62089
|
let e = [], t = [];
|
|
62090
|
-
for (let n of
|
|
62090
|
+
for (let n of k) NF(n.path) || (n.nodeType === yr.FOLDER ? e.push(n.path) : t.push(n));
|
|
62091
62091
|
let a = e.filter((t) => !e.some((e) => e !== t && t.startsWith(`${e}/`))), o = t.filter((e) => !(NF(e.path) || g != null && e.contentType != null && !g(e.contentType))), s = o.filter((e) => !a.some((t) => e.path.startsWith(`${t}/`)));
|
|
62092
62092
|
t.length - o.length > 0 && r?.();
|
|
62093
62093
|
let c = a.flatMap((e) => {
|
|
@@ -62108,39 +62108,39 @@ var WF = qe(({ isOpen: e, onClose: t, onAttach: n, onSkippedUnsupportedFiles: r,
|
|
|
62108
62108
|
n,
|
|
62109
62109
|
r,
|
|
62110
62110
|
i,
|
|
62111
|
-
|
|
62111
|
+
k,
|
|
62112
62112
|
g,
|
|
62113
62113
|
v,
|
|
62114
62114
|
y,
|
|
62115
62115
|
O,
|
|
62116
62116
|
h
|
|
62117
|
-
]), { title:
|
|
62117
|
+
]), { title: A, attachLabel: te, headerDescription: ne, ...re } = u;
|
|
62118
62118
|
return /* @__PURE__ */ I(_e, {
|
|
62119
62119
|
open: e,
|
|
62120
62120
|
header: /* @__PURE__ */ L("div", {
|
|
62121
62121
|
className: "flex flex-col gap-1",
|
|
62122
|
-
children: [/* @__PURE__ */ I("span", { children:
|
|
62122
|
+
children: [/* @__PURE__ */ I("span", { children: A }), ne != null && /* @__PURE__ */ I("p", {
|
|
62123
62123
|
className: "dial-small-text text-start",
|
|
62124
|
-
children:
|
|
62124
|
+
children: ne
|
|
62125
62125
|
})]
|
|
62126
62126
|
}),
|
|
62127
|
-
ariaLabel:
|
|
62127
|
+
ariaLabel: A,
|
|
62128
62128
|
size: M.Lg,
|
|
62129
62129
|
className: "flex !h-[min(800px,100dvh)] w-full flex-col !bg-layer-sunken",
|
|
62130
62130
|
onClose: t,
|
|
62131
62131
|
footer: /* @__PURE__ */ I("div", {
|
|
62132
62132
|
className: "flex justify-end px-6 py-4",
|
|
62133
62133
|
children: /* @__PURE__ */ I(ve, {
|
|
62134
|
-
label:
|
|
62135
|
-
disabled:
|
|
62136
|
-
onClick:
|
|
62134
|
+
label: te,
|
|
62135
|
+
disabled: k.length === 0 || E || o,
|
|
62136
|
+
onClick: ee
|
|
62137
62137
|
})
|
|
62138
62138
|
}),
|
|
62139
62139
|
children: /* @__PURE__ */ I("div", {
|
|
62140
62140
|
className: "flex min-h-0 flex-col",
|
|
62141
62141
|
children: /* @__PURE__ */ I(UF, {
|
|
62142
62142
|
controller: a,
|
|
62143
|
-
labels:
|
|
62143
|
+
labels: re,
|
|
62144
62144
|
activeTab: s,
|
|
62145
62145
|
tabs: c,
|
|
62146
62146
|
onTabChange: l,
|
|
@@ -62288,11 +62288,11 @@ var GF = {
|
|
|
62288
62288
|
className: "flex min-w-0 items-start gap-1 overflow-hidden",
|
|
62289
62289
|
children: [/* @__PURE__ */ I("span", {
|
|
62290
62290
|
className: z("min-w-0 flex-1 truncate", p?.nameClassName ?? "dial-body-semi-text", aI.name),
|
|
62291
|
-
children: o ? /* @__PURE__ */ I(
|
|
62291
|
+
children: o ? /* @__PURE__ */ I(ae, {
|
|
62292
62292
|
text: n,
|
|
62293
62293
|
query: o
|
|
62294
62294
|
}) : n
|
|
62295
|
-
}), r && /* @__PURE__ */ I(
|
|
62295
|
+
}), r && /* @__PURE__ */ I(A, {
|
|
62296
62296
|
text: r,
|
|
62297
62297
|
className: z("max-w-[30%] shrink-0 tabular-nums", p?.versionClassName ?? "dial-tiny-text", aI.version)
|
|
62298
62298
|
})]
|
|
@@ -62418,9 +62418,9 @@ var GF = {
|
|
|
62418
62418
|
"--cg-selected-bg": f?.colors?.selectedBackground,
|
|
62419
62419
|
"--cg-check-icon": f?.colors?.checkIcon,
|
|
62420
62420
|
"--cg-footer-border": f?.colors?.footerBorder
|
|
62421
|
-
}), T = !g && e.isFeatured === !0, E = !g && o?.(e) !== !1, D = !g || e.folder.length > 0, O = n ? () => n(e) : void 0,
|
|
62421
|
+
}), T = !g && e.isFeatured === !0, E = !g && o?.(e) !== !1, D = !g || e.folder.length > 0, O = n ? () => n(e) : void 0, k = N((t) => {
|
|
62422
62422
|
n && (t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e));
|
|
62423
|
-
}, [n, e]),
|
|
62423
|
+
}, [n, e]), A = N((t) => {
|
|
62424
62424
|
t.stopPropagation();
|
|
62425
62425
|
let n = !_;
|
|
62426
62426
|
v(n), a?.(e.id, n);
|
|
@@ -62434,7 +62434,7 @@ var GF = {
|
|
|
62434
62434
|
role: "button",
|
|
62435
62435
|
tabIndex: 0,
|
|
62436
62436
|
onClick: O,
|
|
62437
|
-
onKeyDown:
|
|
62437
|
+
onKeyDown: k
|
|
62438
62438
|
} : {},
|
|
62439
62439
|
"aria-label": e.name,
|
|
62440
62440
|
style: w,
|
|
@@ -62481,15 +62481,15 @@ var GF = {
|
|
|
62481
62481
|
className: "flex items-center gap-2",
|
|
62482
62482
|
children: [/* @__PURE__ */ I("div", {
|
|
62483
62483
|
className: "min-w-0 flex-1",
|
|
62484
|
-
children: e.folder.length > 0 && /* @__PURE__ */ I(
|
|
62484
|
+
children: e.folder.length > 0 && /* @__PURE__ */ I(ne, {
|
|
62485
62485
|
segments: e.folder,
|
|
62486
62486
|
labelClassName: S,
|
|
62487
62487
|
leafClassName: C
|
|
62488
62488
|
})
|
|
62489
62489
|
}), E && /* @__PURE__ */ I(uI, {
|
|
62490
62490
|
isStarred: _,
|
|
62491
|
-
size:
|
|
62492
|
-
onClick:
|
|
62491
|
+
size: ee.Small,
|
|
62492
|
+
onClick: A,
|
|
62493
62493
|
ariaLabel: _ ? l : c,
|
|
62494
62494
|
className: z(iI.starBtn, !_ && iI.emptyStarHidden)
|
|
62495
62495
|
})]
|
|
@@ -62781,11 +62781,11 @@ var GF = {
|
|
|
62781
62781
|
"--pare-select-border-focus": s.colors?.selectBorderFocus
|
|
62782
62782
|
}),
|
|
62783
62783
|
...s.cssVars
|
|
62784
|
-
}, { sourceLabel: l = "Source", sourcePlaceholder: u = "Select...", functionLabel: d = "Function", equalOptionLabel: f = "Equal", containOptionLabel: p = "Contain", regexOptionLabel: m = "Regex", targetsLabel: h = "Targets", targetsPlaceholder: g = "Add a target", targetsHintLabel: _ = "Press Enter or comma to add a target.", patternLabel: v = "Pattern", patternPlaceholder: y = "Enter a regular expression", invalidRegexError: b = "Enter a valid regular expression.", requiredFieldError: x = "This field is required.", targetsRequiredError: S = "Add at least one target.", saveLabel: C = "Save", cancelLabel: w = "Cancel", dialogAriaLabel: T = "Add access rule" } = a, E = Xe(), D = Xe(), O = Xe(),
|
|
62784
|
+
}, { sourceLabel: l = "Source", sourcePlaceholder: u = "Select...", functionLabel: d = "Function", equalOptionLabel: f = "Equal", containOptionLabel: p = "Contain", regexOptionLabel: m = "Regex", targetsLabel: h = "Targets", targetsPlaceholder: g = "Add a target", targetsHintLabel: _ = "Press Enter or comma to add a target.", patternLabel: v = "Pattern", patternPlaceholder: y = "Enter a regular expression", invalidRegexError: b = "Enter a valid regular expression.", requiredFieldError: x = "This field is required.", targetsRequiredError: S = "Add at least one target.", saveLabel: C = "Save", cancelLabel: w = "Cancel", dialogAriaLabel: T = "Add access rule" } = a, E = Xe(), D = Xe(), O = Xe(), k = Xe(), ee = $e(null);
|
|
62785
62785
|
Ye(() => {
|
|
62786
|
-
|
|
62786
|
+
ee.current?.focus();
|
|
62787
62787
|
}, []);
|
|
62788
|
-
let [
|
|
62788
|
+
let [A, te] = F(), [ne, ie] = F(), [j, ae] = F([]), [oe, se] = F(""), [le, ue] = F(!1), [fe, pe] = F(!1), [me, he] = F(!1), ge = z(II.selectField, le && II.selectFieldOpen), _e = z(II.selectField, fe && II.selectFieldOpen), M = P(() => e.map((e) => ({
|
|
62789
62789
|
value: e,
|
|
62790
62790
|
label: e
|
|
62791
62791
|
})), [e]), ve = P(() => [
|
|
@@ -62805,9 +62805,9 @@ var GF = {
|
|
|
62805
62805
|
f,
|
|
62806
62806
|
p,
|
|
62807
62807
|
m
|
|
62808
|
-
]), ye =
|
|
62808
|
+
]), ye = ne === yI.Regex, be = BI(oe), xe = A != null && ne != null && (ye ? be : j.length > 0);
|
|
62809
62809
|
return /* @__PURE__ */ L("div", {
|
|
62810
|
-
ref:
|
|
62810
|
+
ref: ee,
|
|
62811
62811
|
role: "dialog",
|
|
62812
62812
|
"aria-modal": "true",
|
|
62813
62813
|
"aria-label": T,
|
|
@@ -62822,9 +62822,9 @@ var GF = {
|
|
|
62822
62822
|
id: D,
|
|
62823
62823
|
labelProps: { label: l },
|
|
62824
62824
|
options: M,
|
|
62825
|
-
value:
|
|
62825
|
+
value: A,
|
|
62826
62826
|
onChange: (e) => {
|
|
62827
|
-
|
|
62827
|
+
te(Array.isArray(e) ? e[0] : e), ue(!1);
|
|
62828
62828
|
},
|
|
62829
62829
|
placeholder: u,
|
|
62830
62830
|
searchable: e.length > zI,
|
|
@@ -62833,25 +62833,25 @@ var GF = {
|
|
|
62833
62833
|
open: le,
|
|
62834
62834
|
onOpenChange: ue,
|
|
62835
62835
|
fieldClassName: ge,
|
|
62836
|
-
invalid: me &&
|
|
62837
|
-
error: me &&
|
|
62836
|
+
invalid: me && A == null,
|
|
62837
|
+
error: me && A == null ? x : void 0
|
|
62838
62838
|
}),
|
|
62839
62839
|
/* @__PURE__ */ I(Ce, {
|
|
62840
62840
|
labelProps: { label: d },
|
|
62841
62841
|
id: O,
|
|
62842
62842
|
options: ve,
|
|
62843
|
-
value:
|
|
62843
|
+
value: ne,
|
|
62844
62844
|
onChange: (e) => {
|
|
62845
62845
|
let t = Array.isArray(e) ? e[0] : e;
|
|
62846
|
-
|
|
62846
|
+
ne === yI.Regex != (t === yI.Regex) && (ae([]), se("")), ie(t), pe(!1);
|
|
62847
62847
|
},
|
|
62848
62848
|
placeholder: d,
|
|
62849
62849
|
disabled: r,
|
|
62850
62850
|
open: fe,
|
|
62851
62851
|
onOpenChange: pe,
|
|
62852
62852
|
fieldClassName: _e,
|
|
62853
|
-
invalid: me &&
|
|
62854
|
-
error: me &&
|
|
62853
|
+
invalid: me && ne == null,
|
|
62854
|
+
error: me && ne == null ? x : void 0
|
|
62855
62855
|
}),
|
|
62856
62856
|
ye ? /* @__PURE__ */ L("div", { children: [/* @__PURE__ */ I(ce, {
|
|
62857
62857
|
id: `${E}-input`,
|
|
@@ -62868,41 +62868,41 @@ var GF = {
|
|
|
62868
62868
|
className: z("mt-1 block", o, II.error),
|
|
62869
62869
|
children: b
|
|
62870
62870
|
})] }) : /* @__PURE__ */ I(Ae, {
|
|
62871
|
-
id:
|
|
62871
|
+
id: k,
|
|
62872
62872
|
labelProps: { label: h },
|
|
62873
62873
|
placeholder: g,
|
|
62874
|
-
caption: me &&
|
|
62875
|
-
error: me &&
|
|
62876
|
-
invalid: me &&
|
|
62877
|
-
value:
|
|
62874
|
+
caption: me && j.length === 0 ? void 0 : _,
|
|
62875
|
+
error: me && j.length === 0 ? S : void 0,
|
|
62876
|
+
invalid: me && j.length === 0,
|
|
62877
|
+
value: j,
|
|
62878
62878
|
onChange: (e) => {
|
|
62879
62879
|
let t = [];
|
|
62880
62880
|
for (let n of e) {
|
|
62881
62881
|
let e = n.trim();
|
|
62882
62882
|
if (!(e.length === 0 || t.includes(e)) && (t.push(e), t.length >= i)) break;
|
|
62883
62883
|
}
|
|
62884
|
-
|
|
62884
|
+
ae(t);
|
|
62885
62885
|
},
|
|
62886
62886
|
disabled: r,
|
|
62887
62887
|
tagClassName: ty
|
|
62888
62888
|
}),
|
|
62889
62889
|
/* @__PURE__ */ L("div", {
|
|
62890
62890
|
className: "mt-auto flex justify-end gap-2 desktop:mt-2",
|
|
62891
|
-
children: [/* @__PURE__ */ I(
|
|
62891
|
+
children: [/* @__PURE__ */ I(re, {
|
|
62892
62892
|
label: w,
|
|
62893
62893
|
onClick: n,
|
|
62894
62894
|
disabled: r
|
|
62895
62895
|
}), /* @__PURE__ */ I(de, {
|
|
62896
62896
|
label: C,
|
|
62897
62897
|
onClick: () => {
|
|
62898
|
-
if (!xe ||
|
|
62898
|
+
if (!xe || A == null || ne == null) {
|
|
62899
62899
|
he(!0);
|
|
62900
62900
|
return;
|
|
62901
62901
|
}
|
|
62902
62902
|
t({
|
|
62903
|
-
source:
|
|
62904
|
-
function:
|
|
62905
|
-
targets: ye ? [oe.trim()] :
|
|
62903
|
+
source: A,
|
|
62904
|
+
function: ne,
|
|
62905
|
+
targets: ye ? [oe.trim()] : j
|
|
62906
62906
|
});
|
|
62907
62907
|
},
|
|
62908
62908
|
disabled: r
|
|
@@ -62926,7 +62926,7 @@ var GF = {
|
|
|
62926
62926
|
"--par-rule-text": v.colors?.ruleText
|
|
62927
62927
|
}),
|
|
62928
62928
|
...v.cssVars
|
|
62929
|
-
}, { heading: b = "Allow access if all match", folderScopeHint: x = "These rules apply to \"{folder}\". Selecting another folder loads that folder's own rules instead.", noFolderScopeHint: S = "Access rules apply to the destination folder — pick a folder above to set its rules.", rulesWithoutFolderWarning: C = "These rules have no destination yet. Select a folder above to apply them.", maxRulesReachedLabel: w = "Rule limit reached ({max}). Remove a rule to add another.", addRuleLabel: T = "Add rule", clearAllLabel: E = "Clear all", orSeparatorLabel: D = "Or", removeRuleAriaLabelTemplate: O = "Remove rule for {source}: {targets}", equalFunctionLabel:
|
|
62929
|
+
}, { heading: b = "Allow access if all match", folderScopeHint: x = "These rules apply to \"{folder}\". Selecting another folder loads that folder's own rules instead.", noFolderScopeHint: S = "Access rules apply to the destination folder — pick a folder above to set its rules.", rulesWithoutFolderWarning: C = "These rules have no destination yet. Select a folder above to apply them.", maxRulesReachedLabel: w = "Rule limit reached ({max}). Remove a rule to add another.", addRuleLabel: T = "Add rule", clearAllLabel: E = "Clear all", orSeparatorLabel: D = "Or", removeRuleAriaLabelTemplate: O = "Remove rule for {source}: {targets}", equalFunctionLabel: k = "Equal", containFunctionLabel: ee = "Contain", regexFunctionLabel: A = "Regex", loadingLabel: te = "Loading existing rules…", loadErrorLabel: ne = "Couldn't load existing rules for this folder. You can still add rules manually.", ruleAddedAnnouncement: j = "Rule added.", ruleRemovedAnnouncement: ae = "Rule removed.", rulesClearedAnnouncement: oe = "All rules cleared.", rulesLoadedAnnouncement: se = "Existing rules loaded for the selected folder.", editorLabels: ce } = u, le = Xe(), [ue, de] = F(!1), [fe, pe] = F(""), _e = $e(null), M = $e(o);
|
|
62930
62930
|
Ye(() => {
|
|
62931
62931
|
M.current && !o && e.length > 0 && pe(se), M.current = o;
|
|
62932
62932
|
}, [
|
|
@@ -62939,15 +62939,15 @@ var GF = {
|
|
|
62939
62939
|
}, ye = () => {
|
|
62940
62940
|
de(!1), _e.current?.focus?.();
|
|
62941
62941
|
}, be = (n) => {
|
|
62942
|
-
t([...e, n]), pe(
|
|
62942
|
+
t([...e, n]), pe(j), ye();
|
|
62943
62943
|
}, xe = (n) => {
|
|
62944
|
-
t(e.filter((e, t) => t !== n)), pe(
|
|
62944
|
+
t(e.filter((e, t) => t !== n)), pe(ae);
|
|
62945
62945
|
}, Se = () => {
|
|
62946
62946
|
t([]), pe(oe);
|
|
62947
62947
|
}, Ce = {
|
|
62948
|
-
equal:
|
|
62949
|
-
contain:
|
|
62950
|
-
regex:
|
|
62948
|
+
equal: k,
|
|
62949
|
+
contain: ee,
|
|
62950
|
+
regex: A
|
|
62951
62951
|
}, we = e.length >= c, Te = a || we, Ee = i != null && i !== "";
|
|
62952
62952
|
return /* @__PURE__ */ L("div", {
|
|
62953
62953
|
role: "group",
|
|
@@ -62967,7 +62967,7 @@ var GF = {
|
|
|
62967
62967
|
id: le,
|
|
62968
62968
|
className: z(d, HI.heading),
|
|
62969
62969
|
children: b
|
|
62970
|
-
}), e.length > 0 && /* @__PURE__ */ I(
|
|
62970
|
+
}), e.length > 0 && /* @__PURE__ */ I(re, {
|
|
62971
62971
|
variant: r.Primary,
|
|
62972
62972
|
label: E,
|
|
62973
62973
|
onClick: Se,
|
|
@@ -62990,15 +62990,15 @@ var GF = {
|
|
|
62990
62990
|
className: z("mb-2 flex items-center gap-2", p, HI.loading),
|
|
62991
62991
|
children: [/* @__PURE__ */ I(De, {
|
|
62992
62992
|
size: 16,
|
|
62993
|
-
ariaLabel:
|
|
62994
|
-
}), /* @__PURE__ */ I("span", { children:
|
|
62993
|
+
ariaLabel: te
|
|
62994
|
+
}), /* @__PURE__ */ I("span", { children: te })]
|
|
62995
62995
|
}),
|
|
62996
62996
|
s && /* @__PURE__ */ I("div", {
|
|
62997
62997
|
className: "mb-2",
|
|
62998
62998
|
children: /* @__PURE__ */ I(me, {
|
|
62999
62999
|
type: he.SectionMessage,
|
|
63000
63000
|
variant: ge.Warning,
|
|
63001
|
-
message:
|
|
63001
|
+
message: ne
|
|
63002
63002
|
})
|
|
63003
63003
|
}),
|
|
63004
63004
|
e.length > 0 && /* @__PURE__ */ I("ul", {
|
|
@@ -63019,7 +63019,7 @@ var GF = {
|
|
|
63019
63019
|
": ",
|
|
63020
63020
|
n
|
|
63021
63021
|
]
|
|
63022
|
-
}), /* @__PURE__ */ I(
|
|
63022
|
+
}), /* @__PURE__ */ I(ie, {
|
|
63023
63023
|
icon: /* @__PURE__ */ I(Vt, {
|
|
63024
63024
|
size: m.SM,
|
|
63025
63025
|
"aria-hidden": !0,
|
|
@@ -63043,7 +63043,7 @@ var GF = {
|
|
|
63043
63043
|
}),
|
|
63044
63044
|
/* @__PURE__ */ I("div", {
|
|
63045
63045
|
className: "flex flex-wrap items-center gap-2",
|
|
63046
|
-
children: /* @__PURE__ */ I(
|
|
63046
|
+
children: /* @__PURE__ */ I(re, {
|
|
63047
63047
|
label: T,
|
|
63048
63048
|
iconBefore: /* @__PURE__ */ I(It, {
|
|
63049
63049
|
size: m.SM,
|
|
@@ -63067,15 +63067,15 @@ var GF = {
|
|
|
63067
63067
|
}, [C, w] = F(() => new Set(t?.map((e, n) => kI(t.slice(0, n + 1))) ?? [])), T = v ?? C, E = (e) => {
|
|
63068
63068
|
let t = new Set(e);
|
|
63069
63069
|
t.delete(""), y ? y(t) : w(t);
|
|
63070
|
-
}, [D, O] = F(null), [
|
|
63071
|
-
j,
|
|
63070
|
+
}, [D, O] = F(null), [k, ee] = F(u), A = $e(null), te = i.trim(), ne = D != null, ie = P(() => TI(e, i), [e, i]), j = te.length > 0 && ie.length === 0, ae = !ne && te.length > 0, oe = P(() => DI(ae ? ie : e), [
|
|
63072
63071
|
ae,
|
|
63072
|
+
ie,
|
|
63073
63073
|
e
|
|
63074
|
-
]), se = P(() => new Set(["", ...OI(oe)]), [oe]), ce = P(() => new Set(["", ...
|
|
63075
|
-
|
|
63074
|
+
]), se = P(() => new Set(["", ...OI(oe)]), [oe]), ce = P(() => new Set(["", ...ae ? se : T]), [
|
|
63075
|
+
ae,
|
|
63076
63076
|
se,
|
|
63077
63077
|
T
|
|
63078
|
-
]), le = P(() => jI(oe), [oe]), ue = P(() =>
|
|
63078
|
+
]), le = P(() => jI(oe), [oe]), ue = P(() => ae && le.length === 0 ? [] : [{
|
|
63079
63079
|
path: "",
|
|
63080
63080
|
name: _,
|
|
63081
63081
|
folderId: "",
|
|
@@ -63084,13 +63084,13 @@ var GF = {
|
|
|
63084
63084
|
}], [
|
|
63085
63085
|
le,
|
|
63086
63086
|
_,
|
|
63087
|
-
|
|
63087
|
+
ae
|
|
63088
63088
|
]), de = D ? kI(D) : null, fe = {
|
|
63089
63089
|
empty: f,
|
|
63090
63090
|
invalid: p,
|
|
63091
63091
|
duplicate: g
|
|
63092
|
-
}, pe = (t) => PI(
|
|
63093
|
-
O(e),
|
|
63092
|
+
}, pe = (t) => PI(j && NI(te, [], fe) == null ? te : u, FI(e, t)), me = (e) => {
|
|
63093
|
+
O(e), ee(pe(e)), A.current = null;
|
|
63094
63094
|
let t = kI(e);
|
|
63095
63095
|
t && E(new Set(T).add(t));
|
|
63096
63096
|
}, he = () => me(t ?? []), ge = (e) => {
|
|
@@ -63117,10 +63117,10 @@ var GF = {
|
|
|
63117
63117
|
}, _e = (t) => {
|
|
63118
63118
|
if (!D) return null;
|
|
63119
63119
|
let n = NI(t, FI(e, D), fe);
|
|
63120
|
-
return
|
|
63120
|
+
return A.current = n, n;
|
|
63121
63121
|
}, M = (e) => {
|
|
63122
63122
|
if (!D) return;
|
|
63123
|
-
let t = e.trim(), i =
|
|
63123
|
+
let t = e.trim(), i = A.current;
|
|
63124
63124
|
(_e(e) ?? i) || (r(D, t), n([...D, t])), O(null);
|
|
63125
63125
|
}, ve = () => O(null);
|
|
63126
63126
|
return /* @__PURE__ */ L("div", {
|
|
@@ -63141,11 +63141,11 @@ var GF = {
|
|
|
63141
63141
|
},
|
|
63142
63142
|
getContextMenuItems: ge,
|
|
63143
63143
|
createdFolderPath: de,
|
|
63144
|
-
newFolderDefaultName:
|
|
63144
|
+
newFolderDefaultName: k,
|
|
63145
63145
|
onCreateFolderSave: M,
|
|
63146
63146
|
onCreateFolderCancel: ve,
|
|
63147
63147
|
onRenameValidate: (e) => _e(e),
|
|
63148
|
-
emptyStateTitle:
|
|
63148
|
+
emptyStateTitle: ae ? d.replace("{query}", te) : void 0
|
|
63149
63149
|
})
|
|
63150
63150
|
}),
|
|
63151
63151
|
/* @__PURE__ */ I("div", {
|
|
@@ -63154,7 +63154,7 @@ var GF = {
|
|
|
63154
63154
|
}),
|
|
63155
63155
|
/* @__PURE__ */ L("div", {
|
|
63156
63156
|
className: "mb-4 flex flex-wrap items-center gap-2",
|
|
63157
|
-
children: [/* @__PURE__ */ I(
|
|
63157
|
+
children: [/* @__PURE__ */ I(re, {
|
|
63158
63158
|
onClick: he,
|
|
63159
63159
|
label: o,
|
|
63160
63160
|
iconBefore: /* @__PURE__ */ I(It, {
|
|
@@ -63162,8 +63162,8 @@ var GF = {
|
|
|
63162
63162
|
"aria-hidden": !0,
|
|
63163
63163
|
stroke: h
|
|
63164
63164
|
}),
|
|
63165
|
-
disabled: a ||
|
|
63166
|
-
}),
|
|
63165
|
+
disabled: a || ne
|
|
63166
|
+
}), ne && /* @__PURE__ */ I(re, {
|
|
63167
63167
|
label: s,
|
|
63168
63168
|
onClick: ve,
|
|
63169
63169
|
disabled: a
|
|
@@ -63175,19 +63175,19 @@ var GF = {
|
|
|
63175
63175
|
summaryTitle: "_summaryTitle_tf20a_1",
|
|
63176
63176
|
sectionHeading: "_sectionHeading_tf20a_5"
|
|
63177
63177
|
}, YI = ({ resource: e, renderSummary: t, history: n, isHistoryLoading: r = !1, hasHistoryError: i = !1, folderItems: a, selectedFolderPath: o, onSelectedFolderPathChange: s, onCreateFolder: c, expandedPaths: l, onExpandedPathsChange: u, loadingPaths: d, hasExistingPublicationInFolder: f, hasWriteAccess: p, isSubmitting: m, hasSubmitError: h = !1, allowReplace: g = !0, rules: _, onRulesChange: v, ruleSourceOptions: y, isRulesLoading: b = !1, hasRulesLoadError: x = !1, labels: S = {}, summaryTitleClassName: C = "dial-body-semi-text", headingClassName: w = "dial-body-semi-text", styles: T = {} }) => {
|
|
63178
|
-
let { colors: E, folderTree: D, accessRules: O } = T,
|
|
63178
|
+
let { colors: E, folderTree: D, accessRules: O } = T, k = {
|
|
63179
63179
|
...es({
|
|
63180
63180
|
"--pp-summary-title-text": E?.summaryTitleText,
|
|
63181
63181
|
"--pp-heading-text": E?.headingText
|
|
63182
63182
|
}),
|
|
63183
63183
|
...T.cssVars
|
|
63184
|
-
},
|
|
63184
|
+
}, ee = {
|
|
63185
63185
|
border: E?.summaryBorder,
|
|
63186
63186
|
background: E?.summaryBackground,
|
|
63187
63187
|
versionTagBorder: E?.summaryVersionTagBorder,
|
|
63188
63188
|
versionTagBackground: E?.summaryVersionTagBackground,
|
|
63189
63189
|
versionTagText: E?.summaryVersionTagText
|
|
63190
|
-
}, { folderLabel:
|
|
63190
|
+
}, { folderLabel: A = "Publish to folder", replaceWarning: te = "Version {version} is already published in {folder}. Publishing will replace it.", noAccessError: ne = "You don't have permission to publish to {folder}. Pick another, or ask an owner for access.", submitError: re = "Publishing failed. Please try again.", folderEmptyStateLabel: ie, addSiblingFolderLabel: j, addChildFolderLabel: ae, cancelCreatingFolderLabel: oe, createFolderEmptyNameError: se, createFolderInvalidNameError: ce, createFolderDuplicateNameError: le, rootFolderLabel: ue = "Organization", summaryVersionLabel: de, accessRulesLabels: fe, searchPlaceholder: pe, clearSearchAriaLabel: ge } = S, [_e, M] = F(""), ve = (e) => {
|
|
63191
63191
|
M(e ?? "");
|
|
63192
63192
|
}, ye = o != null, be = P(() => xI({
|
|
63193
63193
|
hasSelectedFolder: ye,
|
|
@@ -63209,9 +63209,9 @@ var GF = {
|
|
|
63209
63209
|
});
|
|
63210
63210
|
return /* @__PURE__ */ L("div", {
|
|
63211
63211
|
className: "flex flex-col gap-5",
|
|
63212
|
-
style:
|
|
63212
|
+
style: k,
|
|
63213
63213
|
children: [e?.type == null ? /* @__PURE__ */ I(Cy, {
|
|
63214
|
-
colors:
|
|
63214
|
+
colors: ee,
|
|
63215
63215
|
children: Ce
|
|
63216
63216
|
}) : /* @__PURE__ */ I(Cy, {
|
|
63217
63217
|
item: {
|
|
@@ -63221,11 +63221,11 @@ var GF = {
|
|
|
63221
63221
|
iconUrl: e.iconUrl
|
|
63222
63222
|
},
|
|
63223
63223
|
versionLabel: de,
|
|
63224
|
-
colors:
|
|
63224
|
+
colors: ee
|
|
63225
63225
|
}), /* @__PURE__ */ L("div", { children: [
|
|
63226
63226
|
/* @__PURE__ */ I("div", {
|
|
63227
63227
|
className: z("mb-2", w, JI.sectionHeading),
|
|
63228
|
-
children:
|
|
63228
|
+
children: A
|
|
63229
63229
|
}),
|
|
63230
63230
|
/* @__PURE__ */ I("div", {
|
|
63231
63231
|
role: "search",
|
|
@@ -63248,9 +63248,9 @@ var GF = {
|
|
|
63248
63248
|
loadingPaths: d,
|
|
63249
63249
|
searchQuery: _e,
|
|
63250
63250
|
disabled: m,
|
|
63251
|
-
noResultsLabel:
|
|
63252
|
-
addSiblingFolderLabel:
|
|
63253
|
-
addChildFolderLabel:
|
|
63251
|
+
noResultsLabel: ie,
|
|
63252
|
+
addSiblingFolderLabel: j,
|
|
63253
|
+
addChildFolderLabel: ae,
|
|
63254
63254
|
cancelCreatingFolderLabel: oe,
|
|
63255
63255
|
emptyFolderNameError: se,
|
|
63256
63256
|
invalidFolderNameError: ce,
|
|
@@ -63264,9 +63264,9 @@ var GF = {
|
|
|
63264
63264
|
type: he.SectionMessage,
|
|
63265
63265
|
variant: XI(be.calloutKind),
|
|
63266
63266
|
message: QI(be.calloutKind, {
|
|
63267
|
-
replaceWarning:
|
|
63268
|
-
noAccessError:
|
|
63269
|
-
submitError:
|
|
63267
|
+
replaceWarning: te,
|
|
63268
|
+
noAccessError: ne,
|
|
63269
|
+
submitError: re,
|
|
63270
63270
|
folderName: Se,
|
|
63271
63271
|
version: e?.version
|
|
63272
63272
|
})
|
|
@@ -63303,7 +63303,7 @@ var GF = {
|
|
|
63303
63303
|
return /* @__PURE__ */ L("div", {
|
|
63304
63304
|
style: c,
|
|
63305
63305
|
className: z("flex items-center justify-end gap-2 border-t px-3.5 py-4 rtl:flex-row-reverse rtl:justify-start", $I.footer),
|
|
63306
|
-
children: [/* @__PURE__ */ I(
|
|
63306
|
+
children: [/* @__PURE__ */ I(re, {
|
|
63307
63307
|
label: l,
|
|
63308
63308
|
disabled: r,
|
|
63309
63309
|
onClick: i
|
|
@@ -63415,7 +63415,7 @@ var GF = {
|
|
|
63415
63415
|
items: l,
|
|
63416
63416
|
matchReferenceWidth: !1,
|
|
63417
63417
|
placement: "bottom-end",
|
|
63418
|
-
size:
|
|
63418
|
+
size: ee.Small,
|
|
63419
63419
|
selectedKey: s
|
|
63420
63420
|
}) : void 0
|
|
63421
63421
|
})] });
|
|
@@ -63466,7 +63466,7 @@ var GF = {
|
|
|
63466
63466
|
items: b,
|
|
63467
63467
|
matchReferenceWidth: !1,
|
|
63468
63468
|
placement: "bottom-end",
|
|
63469
|
-
size:
|
|
63469
|
+
size: ee.Small,
|
|
63470
63470
|
selectedKey: y.url
|
|
63471
63471
|
}) : void 0
|
|
63472
63472
|
}, h),
|
|
@@ -63531,7 +63531,7 @@ var GF = {
|
|
|
63531
63531
|
return /* @__PURE__ */ L("div", {
|
|
63532
63532
|
className: z("flex items-center justify-end gap-2 px-6 py-4 rtl:flex-row-reverse rtl:justify-start", fL.footer),
|
|
63533
63533
|
children: [
|
|
63534
|
-
/* @__PURE__ */ I(
|
|
63534
|
+
/* @__PURE__ */ I(re, {
|
|
63535
63535
|
label: t,
|
|
63536
63536
|
disabled: r,
|
|
63537
63537
|
onClick: s
|
|
@@ -63676,15 +63676,15 @@ var GF = {
|
|
|
63676
63676
|
rowDescription: "_rowDescription_1q3s8_9",
|
|
63677
63677
|
errorText: "_errorText_1q3s8_13"
|
|
63678
63678
|
}, AL = ({ item: e, level: n, label: r, description: i, icon: a, status: o, isActive: s, authenticationType: c, apiKeyAddedWhen: l, onLogin: u, onRequestLogout: d, onRequestDeleteApiKey: f, texts: p, labelClassName: _, descriptionClassName: v, errorClassName: y, keyCardTitleClassName: b, keyCardDescriptionClassName: x, deleteActionClassName: S }) => {
|
|
63679
|
-
let [C, w] = F(""), [T, E] = F(!1), [D, O] = F(!1),
|
|
63679
|
+
let [C, w] = F(""), [T, E] = F(!1), [D, O] = F(!1), k = o === hn.SignedIn, ee = N(() => {
|
|
63680
63680
|
u?.(e, { level: n });
|
|
63681
63681
|
}, [
|
|
63682
63682
|
e,
|
|
63683
63683
|
n,
|
|
63684
63684
|
u
|
|
63685
|
-
]),
|
|
63685
|
+
]), A = N((e) => {
|
|
63686
63686
|
w(e ?? ""), E(!1);
|
|
63687
|
-
}, []),
|
|
63687
|
+
}, []), te = N(async () => {
|
|
63688
63688
|
if (C.trim().length === 0) {
|
|
63689
63689
|
E(!0);
|
|
63690
63690
|
return;
|
|
@@ -63703,11 +63703,11 @@ var GF = {
|
|
|
63703
63703
|
n,
|
|
63704
63704
|
C,
|
|
63705
63705
|
u
|
|
63706
|
-
]),
|
|
63706
|
+
]), ne = N(() => {
|
|
63707
63707
|
d?.(n);
|
|
63708
|
-
}, [n, d]),
|
|
63708
|
+
}, [n, d]), re = N(() => {
|
|
63709
63709
|
f?.(n);
|
|
63710
|
-
}, [n, f]),
|
|
63710
|
+
}, [n, f]), ie = p?.loginActionLabel ?? "Log in", j = p?.logoutActionLabel ?? "Log out", ae = p?.addApiKeyActionLabel ?? "Add", oe = p?.deleteActionLabel ?? "Delete", se = p?.credentialsSignedInLabel ?? "Signed in", ue = p?.credentialsSignedOutLabel ?? "Signed out", fe = p?.addingApiKeyStatusLabel ?? "Adding", pe = p?.apiKeyConfiguredMessage ?? "Key has been configured", me = l == null ? void 0 : (p?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(l);
|
|
63711
63711
|
return /* @__PURE__ */ L("div", {
|
|
63712
63712
|
className: "flex items-start gap-3 rounded-xl p-3",
|
|
63713
63713
|
children: [/* @__PURE__ */ I(bL, {
|
|
@@ -63728,18 +63728,18 @@ var GF = {
|
|
|
63728
63728
|
className: z(v, kL.rowDescription),
|
|
63729
63729
|
children: i
|
|
63730
63730
|
})]
|
|
63731
|
-
}), c === mn.OAuth && (
|
|
63731
|
+
}), c === mn.OAuth && (k ? /* @__PURE__ */ I(g, {
|
|
63732
63732
|
appearance: t.Ghost,
|
|
63733
|
-
label:
|
|
63733
|
+
label: j,
|
|
63734
63734
|
className: "min-w-28 shrink-0 justify-center whitespace-nowrap",
|
|
63735
|
-
onClick:
|
|
63735
|
+
onClick: ne
|
|
63736
63736
|
}) : /* @__PURE__ */ I(de, {
|
|
63737
|
-
label:
|
|
63737
|
+
label: ie,
|
|
63738
63738
|
className: "min-w-28 shrink-0 justify-center whitespace-nowrap",
|
|
63739
|
-
onClick:
|
|
63739
|
+
onClick: ee
|
|
63740
63740
|
}))]
|
|
63741
63741
|
}),
|
|
63742
|
-
c === mn.ApiKey && !
|
|
63742
|
+
c === mn.ApiKey && !k && /* @__PURE__ */ L("div", {
|
|
63743
63743
|
className: "flex animate-fadeIn flex-col gap-1 pt-1",
|
|
63744
63744
|
children: [/* @__PURE__ */ L("div", {
|
|
63745
63745
|
className: "flex items-end gap-2",
|
|
@@ -63748,20 +63748,20 @@ var GF = {
|
|
|
63748
63748
|
type: "password",
|
|
63749
63749
|
autoComplete: "current-password",
|
|
63750
63750
|
value: C,
|
|
63751
|
-
onChange:
|
|
63751
|
+
onChange: A,
|
|
63752
63752
|
labelProps: { label: p?.apiKeyFieldLabel ?? "API key" },
|
|
63753
63753
|
invalid: T,
|
|
63754
63754
|
disabled: D,
|
|
63755
63755
|
containerClassName: "min-w-0 flex-1"
|
|
63756
63756
|
}), /* @__PURE__ */ I(de, {
|
|
63757
|
-
label: D ? void 0 :
|
|
63757
|
+
label: D ? void 0 : ae,
|
|
63758
63758
|
"aria-label": D ? fe : void 0,
|
|
63759
63759
|
iconBefore: D ? /* @__PURE__ */ I(De, {
|
|
63760
63760
|
size: m.SM,
|
|
63761
63761
|
ariaLabel: fe
|
|
63762
63762
|
}) : void 0,
|
|
63763
63763
|
className: "shrink-0 whitespace-nowrap",
|
|
63764
|
-
onClick:
|
|
63764
|
+
onClick: te,
|
|
63765
63765
|
disabled: D
|
|
63766
63766
|
})]
|
|
63767
63767
|
}), T && /* @__PURE__ */ I("span", {
|
|
@@ -63769,7 +63769,7 @@ var GF = {
|
|
|
63769
63769
|
children: p?.apiKeyRequiredErrorMessage ?? "API key is required."
|
|
63770
63770
|
})]
|
|
63771
63771
|
}),
|
|
63772
|
-
c === mn.ApiKey &&
|
|
63772
|
+
c === mn.ApiKey && k && /* @__PURE__ */ I("div", {
|
|
63773
63773
|
className: "animate-fadeIn pt-1",
|
|
63774
63774
|
children: /* @__PURE__ */ I(SL, {
|
|
63775
63775
|
icon: /* @__PURE__ */ I(Ot, {
|
|
@@ -63784,7 +63784,7 @@ var GF = {
|
|
|
63784
63784
|
action: /* @__PURE__ */ I(le, {
|
|
63785
63785
|
label: oe,
|
|
63786
63786
|
className: S,
|
|
63787
|
-
onClick:
|
|
63787
|
+
onClick: re
|
|
63788
63788
|
})
|
|
63789
63789
|
})
|
|
63790
63790
|
})
|
|
@@ -63910,7 +63910,7 @@ var GF = {
|
|
|
63910
63910
|
t,
|
|
63911
63911
|
a,
|
|
63912
63912
|
o
|
|
63913
|
-
]), S = s?.personalApiKeyPanelTitle ?? "Personal API key", C = s?.addApiKeyActionLabel ?? "Add", w = s?.deleteActionLabel ?? "Delete", T = s?.addingApiKeyStatusLabel ?? "Adding", E = s?.deletingStatusLabel ?? "Deleting", D = s?.apiKeyRequiredErrorMessage ?? "API key is required.", O = s?.personalApiKeyAddedMessage ?? "Personal key has been added",
|
|
63913
|
+
]), S = s?.personalApiKeyPanelTitle ?? "Personal API key", C = s?.addApiKeyActionLabel ?? "Add", w = s?.deleteActionLabel ?? "Delete", T = s?.addingApiKeyStatusLabel ?? "Adding", E = s?.deletingStatusLabel ?? "Deleting", D = s?.apiKeyRequiredErrorMessage ?? "API key is required.", O = s?.personalApiKeyAddedMessage ?? "Personal key has been added", k = r == null ? void 0 : (s?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(r);
|
|
63914
63914
|
return /* @__PURE__ */ L("div", {
|
|
63915
63915
|
className: "flex w-[418px] flex-col",
|
|
63916
63916
|
children: [
|
|
@@ -63960,7 +63960,7 @@ var GF = {
|
|
|
63960
63960
|
stroke: h
|
|
63961
63961
|
}),
|
|
63962
63962
|
title: O,
|
|
63963
|
-
description:
|
|
63963
|
+
description: k,
|
|
63964
63964
|
action: /* @__PURE__ */ I(le, {
|
|
63965
63965
|
label: g ? void 0 : w,
|
|
63966
63966
|
"aria-label": g ? E : void 0,
|
|
@@ -64019,8 +64019,8 @@ var GF = {
|
|
|
64019
64019
|
}, UL = ({ status: e, label: t }) => /* @__PURE__ */ I("div", {
|
|
64020
64020
|
className: z("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text", HL[e]),
|
|
64021
64021
|
children: t
|
|
64022
|
-
}), WL = ({ item: e, onUseInChat: t, isPrimaryActionVisible: n, onShare: r, shareOverlay: i, isShareVisible: a, isSharePrimary: o, onEdit: s, onDownload: c, isDownloadVisible: l, isDownloadPrimary: u, onDelete: d, onUnshare: f, isUnshareVisible: p, onRevokeShare: g, onFetchRecipientsCount: _, isRevokeShareVisible: v, onLogin: y, onLogout: b, onOpenCredentialsManagement: x, onRequestLogout: S, texts: C, detailsStyles: w, isPublishVisible: T, isPublishPrimary: E, onOpenPublish: O, isUnpublishVisible:
|
|
64023
|
-
let { nameClassName:
|
|
64022
|
+
}), WL = ({ item: e, onUseInChat: t, isPrimaryActionVisible: n, onShare: r, shareOverlay: i, isShareVisible: a, isSharePrimary: o, onEdit: s, onDownload: c, isDownloadVisible: l, isDownloadPrimary: u, onDelete: d, onUnshare: f, isUnshareVisible: p, onRevokeShare: g, onFetchRecipientsCount: _, isRevokeShareVisible: v, onLogin: y, onLogout: b, onOpenCredentialsManagement: x, onRequestLogout: S, texts: C, detailsStyles: w, isPublishVisible: T, isPublishPrimary: E, onOpenPublish: O, isUnpublishVisible: k, hasPublishedFolders: ee = !1, onRequestPublishHistory: A, onOpenUnpublish: te, isReadonly: re = !1 }) => {
|
|
64023
|
+
let { nameClassName: ie = "dial-body-semi-text", folderLabelClassName: j = "dial-tiny-text", folderLeafClassName: ae = "dial-tiny-semi-text" } = w?.typography ?? {}, oe = e.details?.limits?.status, se = oe == null ? void 0 : /* @__PURE__ */ I(UL, {
|
|
64024
64024
|
status: oe,
|
|
64025
64025
|
label: oe === un.LimitReached ? C?.limitReachedLabel ?? "Limit reached" : C?.limitRunningLowLabel ?? "Running low"
|
|
64026
64026
|
}), ce = N(() => {
|
|
@@ -64030,8 +64030,8 @@ var GF = {
|
|
|
64030
64030
|
}, [e, s]), ue = N(() => {
|
|
64031
64031
|
O?.();
|
|
64032
64032
|
}, [O]), pe = N(() => {
|
|
64033
|
-
|
|
64034
|
-
}, [
|
|
64033
|
+
te?.();
|
|
64034
|
+
}, [te]), me = N(() => {
|
|
64035
64035
|
c?.(e);
|
|
64036
64036
|
}, [e, c]), [he, ge] = F(!1);
|
|
64037
64037
|
Ye(() => {
|
|
@@ -64094,12 +64094,12 @@ var GF = {
|
|
|
64094
64094
|
g,
|
|
64095
64095
|
v
|
|
64096
64096
|
]), Me = N((e) => {
|
|
64097
|
-
e && (je(),
|
|
64098
|
-
}, [je,
|
|
64099
|
-
je(),
|
|
64100
|
-
}, [je,
|
|
64101
|
-
|
|
64102
|
-
}, [
|
|
64097
|
+
e && (je(), A?.());
|
|
64098
|
+
}, [je, A]), Ne = N(() => {
|
|
64099
|
+
je(), A?.();
|
|
64100
|
+
}, [je, A]), Pe = N(() => {
|
|
64101
|
+
A?.();
|
|
64102
|
+
}, [A]), Fe = C?.hasPrimaryAction !== !1 && (n?.(e) ?? (e.type === xa.Model || e.type === xa.Agent || e.type === xa.Prompt)), Ie = !re && !!te && ee && (k?.(e) ?? !0), Le = !re && !Ie && (T?.(e) ?? (e.type === xa.Model || e.type === xa.Toolset || e.type === xa.Agent)), Re = !re && !!s && !!e.isEditable, ze = !re && e.isMyApp === !0 && (a?.(e) ?? !0), Be = o?.(e) ?? !0, Ve = E?.(e) ?? !1, He = e.credentials?.authenticationType ?? mn.None, Ue = e.credentials != null && He !== mn.None ? XF(e.credentials) : void 0, We = !re && Ue != null && (!!y || !!b), Ge = e.type === xa.Toolset && We, Ke = !!c && (l?.(e) ?? !0), qe = Ke && !Ge && (u?.(e) ?? e.type === xa.Skill), Je = Ke && !qe, Xe = !re && e.isMyApp, Ze = !re && !!f && e.isMyApp !== !0 && e.sharedWithMe === !0 && (p?.(e) ?? !0), Qe = !re && !!g && e.isMyApp === !0 && (!_ || Te === PL.Unknown || Te === PL.Resolved && (Oe ?? 0) > 0) && (v?.(e) ?? !0), tt = P(() => {
|
|
64103
64103
|
let e = [];
|
|
64104
64104
|
if (!Be && ze && e.push({
|
|
64105
64105
|
key: "share",
|
|
@@ -64277,13 +64277,13 @@ var GF = {
|
|
|
64277
64277
|
children: [/* @__PURE__ */ I(xy, {
|
|
64278
64278
|
item: e,
|
|
64279
64279
|
iconSize: 52,
|
|
64280
|
-
nameClassName: z(
|
|
64280
|
+
nameClassName: z(ie, RL.name),
|
|
64281
64281
|
featuredLabel: C?.featuredLabel ?? "Featured",
|
|
64282
64282
|
statusBadge: se,
|
|
64283
|
-
footer: e.folder.length > 0 ? /* @__PURE__ */ I(
|
|
64283
|
+
footer: e.folder.length > 0 ? /* @__PURE__ */ I(ne, {
|
|
64284
64284
|
segments: e.folder,
|
|
64285
|
-
labelClassName:
|
|
64286
|
-
leafClassName:
|
|
64285
|
+
labelClassName: j,
|
|
64286
|
+
leafClassName: ae
|
|
64287
64287
|
}) : void 0
|
|
64288
64288
|
}), /* @__PURE__ */ L("div", {
|
|
64289
64289
|
className: "flex flex-wrap items-center gap-2 ps-[60px]",
|
|
@@ -64542,7 +64542,7 @@ var GF = {
|
|
|
64542
64542
|
}),
|
|
64543
64543
|
children: /* @__PURE__ */ I(se, {
|
|
64544
64544
|
label: C,
|
|
64545
|
-
size:
|
|
64545
|
+
size: ee.Small,
|
|
64546
64546
|
isOpen: c,
|
|
64547
64547
|
onClick: () => l(!c)
|
|
64548
64548
|
})
|
|
@@ -64631,7 +64631,7 @@ var GF = {
|
|
|
64631
64631
|
}), /* @__PURE__ */ I(ye, {
|
|
64632
64632
|
value: $L(e),
|
|
64633
64633
|
max: eR(e.total),
|
|
64634
|
-
size:
|
|
64634
|
+
size: ee.Small,
|
|
64635
64635
|
className: z("!h-1 w-full", oR.progressTrack, aR(e) === QL.Default && oR.progressFillDefault, aR(e) === QL.Warning && oR.progressFillWarning, aR(e) === QL.Danger && oR.progressFillDanger),
|
|
64636
64636
|
"aria-label": e.label,
|
|
64637
64637
|
"aria-valuetext": e.ariaLabel ?? o
|
|
@@ -64815,7 +64815,7 @@ var GF = {
|
|
|
64815
64815
|
"Everyone you shared it with loses access",
|
|
64816
64816
|
"Existing share links stop working",
|
|
64817
64817
|
"You keep full access — nothing is deleted"
|
|
64818
|
-
], ER = (e) => e === mn.ApiKey ? "Toolset API keys" : "Toolset credentials", DR = (e) => e === gn.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", OR = new Set([dn.Delete, dn.Unshare]), kR = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, isReadonly: i = !1, onClose: a, onToggleFavorite: o, isFavoriteVisible: c, onUseInChat: l, isPrimaryActionVisible: u, onShare: d, isPublishVisible: f, isPublishPrimary: p, getPublishHistory: m, publishFolderItems: g = bR, publishExpandedPaths: _, onPublishExpandedPathsChange: v, publishLoadingPaths: y, hasPublishWriteAccess: b, onPublish: x, onPublishSuccess: S, onPublishError: C, onCreatePublishFolder: w, publishLabels: T, ruleSourceOptions: E = xR, onFetchExistingRules: D, shareOverlay: O, isShareVisible:
|
|
64818
|
+
], ER = (e) => e === mn.ApiKey ? "Toolset API keys" : "Toolset credentials", DR = (e) => e === gn.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", OR = new Set([dn.Delete, dn.Unshare]), kR = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, isReadonly: i = !1, onClose: a, onToggleFavorite: o, isFavoriteVisible: c, onUseInChat: l, isPrimaryActionVisible: u, onShare: d, isPublishVisible: f, isPublishPrimary: p, getPublishHistory: m, publishFolderItems: g = bR, publishExpandedPaths: _, onPublishExpandedPathsChange: v, publishLoadingPaths: y, hasPublishWriteAccess: b, onPublish: x, onPublishSuccess: S, onPublishError: C, onCreatePublishFolder: w, publishLabels: T, ruleSourceOptions: E = xR, onFetchExistingRules: D, shareOverlay: O, isShareVisible: k, isSharePrimary: A, onEdit: te, onDownload: ne, isDownloadVisible: re, isDownloadPrimary: j, onLoadContentFile: ae, onLoadContentFilePreview: oe, renderContentFilePreview: se, onDelete: ce, onUnshare: le, isUnshareVisible: ue, onRevokeShare: de, onFetchRecipientsCount: fe, isRevokeShareVisible: pe, onUnpublish: me, isUnpublishVisible: he, onLogin: ge, onLogout: _e, texts: M, styles: ve, limitsFooterNote: ye }) => {
|
|
64819
64819
|
let { subViewTitleClassName: xe = "dial-body-semi-text", overviewSectionClassName: Se = "dial-caption-text", overviewLabelClassName: Ce = "dial-small-semi-text", overviewValueClassName: Te = "dial-small-text", overviewValueTrueClassName: Ee = "dial-small-text", confirmMessageClassName: De = "dial-small-text" } = ve?.typography ?? {}, Oe = ve?.colors, Ae = es({
|
|
64820
64820
|
"--cat-details-backdrop": Oe?.backdrop,
|
|
64821
64821
|
"--cat-details-bg": Oe?.background,
|
|
@@ -64872,7 +64872,7 @@ var GF = {
|
|
|
64872
64872
|
ot.current += 1, st(null), Qe(!1);
|
|
64873
64873
|
return;
|
|
64874
64874
|
}
|
|
64875
|
-
if (se == null &&
|
|
64875
|
+
if (se == null && ae == null && oe == null) return;
|
|
64876
64876
|
if (se != null) {
|
|
64877
64877
|
ot.current += 1, st({
|
|
64878
64878
|
id: e,
|
|
@@ -64886,7 +64886,7 @@ var GF = {
|
|
|
64886
64886
|
preview: null
|
|
64887
64887
|
}), Qe(!0);
|
|
64888
64888
|
try {
|
|
64889
|
-
let n = oe == null ? await
|
|
64889
|
+
let n = oe == null ? await ae?.(e).then((e) => e == null ? void 0 : {
|
|
64890
64890
|
type: Cn.Markdown,
|
|
64891
64891
|
text: e
|
|
64892
64892
|
}) : await oe(e);
|
|
@@ -64909,7 +64909,7 @@ var GF = {
|
|
|
64909
64909
|
}
|
|
64910
64910
|
}, [
|
|
64911
64911
|
qe,
|
|
64912
|
-
|
|
64912
|
+
ae,
|
|
64913
64913
|
oe,
|
|
64914
64914
|
se,
|
|
64915
64915
|
st
|
|
@@ -65224,7 +65224,7 @@ var GF = {
|
|
|
65224
65224
|
children: [
|
|
65225
65225
|
/* @__PURE__ */ L("div", {
|
|
65226
65226
|
className: "flex shrink-0 items-center gap-2 px-6 py-3",
|
|
65227
|
-
children: [un != null && /* @__PURE__ */ L(et, { children: [/* @__PURE__ */ I(
|
|
65227
|
+
children: [un != null && /* @__PURE__ */ L(et, { children: [/* @__PURE__ */ I(ie, {
|
|
65228
65228
|
icon: /* @__PURE__ */ I(lt, {
|
|
65229
65229
|
className: "rtl:scale-x-[-1]",
|
|
65230
65230
|
stroke: h
|
|
@@ -65244,7 +65244,7 @@ var GF = {
|
|
|
65244
65244
|
}),
|
|
65245
65245
|
/* @__PURE__ */ I(s, {
|
|
65246
65246
|
onClose: a,
|
|
65247
|
-
size:
|
|
65247
|
+
size: ee.Standard,
|
|
65248
65248
|
ariaLabel: Qt
|
|
65249
65249
|
})
|
|
65250
65250
|
] })]
|
|
@@ -65322,8 +65322,8 @@ var GF = {
|
|
|
65322
65322
|
isPrimaryActionVisible: u,
|
|
65323
65323
|
onShare: d,
|
|
65324
65324
|
shareOverlay: O,
|
|
65325
|
-
isShareVisible:
|
|
65326
|
-
isSharePrimary:
|
|
65325
|
+
isShareVisible: k,
|
|
65326
|
+
isSharePrimary: A,
|
|
65327
65327
|
isPublishVisible: f,
|
|
65328
65328
|
isPublishPrimary: p,
|
|
65329
65329
|
onOpenPublish: Ut,
|
|
@@ -65331,10 +65331,10 @@ var GF = {
|
|
|
65331
65331
|
hasPublishedFolders: Lt,
|
|
65332
65332
|
onRequestPublishHistory: mt,
|
|
65333
65333
|
onOpenUnpublish: me ? zt : void 0,
|
|
65334
|
-
onEdit:
|
|
65335
|
-
onDownload:
|
|
65336
|
-
isDownloadVisible:
|
|
65337
|
-
isDownloadPrimary:
|
|
65334
|
+
onEdit: te,
|
|
65335
|
+
onDownload: ne,
|
|
65336
|
+
isDownloadVisible: re,
|
|
65337
|
+
isDownloadPrimary: j,
|
|
65338
65338
|
onDelete: ce ? Mt : void 0,
|
|
65339
65339
|
onUnshare: le ? Pt : void 0,
|
|
65340
65340
|
isUnshareVisible: ue,
|
|
@@ -65537,7 +65537,7 @@ var GF = {
|
|
|
65537
65537
|
}),
|
|
65538
65538
|
r?.(e) !== !1 && /* @__PURE__ */ I(uI, {
|
|
65539
65539
|
isStarred: _,
|
|
65540
|
-
size:
|
|
65540
|
+
size: ee.Small,
|
|
65541
65541
|
onClick: x,
|
|
65542
65542
|
ariaLabel: _ ? f : d,
|
|
65543
65543
|
className: "self-end"
|
|
@@ -65570,49 +65570,49 @@ var GF = {
|
|
|
65570
65570
|
y,
|
|
65571
65571
|
w,
|
|
65572
65572
|
C
|
|
65573
|
-
]), E = Math.ceil(y.length / C), D = t ?? e.length, O = $e(null),
|
|
65573
|
+
]), E = Math.ceil(y.length / C), D = t ?? e.length, O = $e(null), k = $e(null), ee = $e(null), [A, te] = F(), [ne, re] = F(), ie = $e(S);
|
|
65574
65574
|
Ye(() => {
|
|
65575
|
-
|
|
65575
|
+
ie.current !== S && (ie.current = S, x(1), te(void 0), re(void 0));
|
|
65576
65576
|
}, [S]), Ye(() => {
|
|
65577
65577
|
b > E && E > 0 && x(E);
|
|
65578
65578
|
}, [b, E]), Ye(() => {
|
|
65579
|
-
E <= 1 && (
|
|
65579
|
+
E <= 1 && (A !== void 0 || ne !== void 0) && (te(void 0), re(void 0));
|
|
65580
65580
|
}, [
|
|
65581
65581
|
E,
|
|
65582
|
-
|
|
65583
|
-
|
|
65582
|
+
A,
|
|
65583
|
+
ne
|
|
65584
65584
|
]), Qe(() => {
|
|
65585
|
-
!
|
|
65585
|
+
!ee.current || !k.current || E <= 1 || b !== 1 || A !== void 0 || (te(ee.current.offsetHeight), re(k.current.offsetHeight));
|
|
65586
65586
|
}, [
|
|
65587
65587
|
E,
|
|
65588
65588
|
b,
|
|
65589
|
-
|
|
65589
|
+
A
|
|
65590
65590
|
]);
|
|
65591
|
-
let
|
|
65591
|
+
let j = $e(/* @__PURE__ */ new Map()), ae = $e(b), oe = $e(S), se = $e(0), ce = $e(!1);
|
|
65592
65592
|
return Qe(() => {
|
|
65593
|
-
if (!
|
|
65593
|
+
if (!ee.current || s) return;
|
|
65594
65594
|
if (O.current && !ce.current) {
|
|
65595
65595
|
let e = O.current;
|
|
65596
65596
|
e.style.height = "", e.style.transition = "";
|
|
65597
65597
|
}
|
|
65598
|
-
let e =
|
|
65599
|
-
|
|
65600
|
-
let n =
|
|
65598
|
+
let e = ae.current !== b, t = oe.current !== S;
|
|
65599
|
+
ae.current = b, oe.current = S;
|
|
65600
|
+
let n = ee.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
|
|
65601
65601
|
if (n.forEach((e) => {
|
|
65602
65602
|
r.set(e.dataset.cardId, NR(e));
|
|
65603
65603
|
}), !e && !t) {
|
|
65604
|
-
let e =
|
|
65604
|
+
let e = k.current, t = se.current, i = 0;
|
|
65605
65605
|
if (e) {
|
|
65606
65606
|
let t = e.style.height;
|
|
65607
65607
|
t && (e.style.height = ""), i = e.offsetHeight, t && (e.style.height = t);
|
|
65608
65608
|
}
|
|
65609
65609
|
let a = e != null && t > 0 && Math.abs(i - t) > 2, o = i > t ? 280 : 220, s = [];
|
|
65610
65610
|
if (n.forEach((e) => {
|
|
65611
|
-
let t = e.dataset.cardId, n =
|
|
65611
|
+
let t = e.dataset.cardId, n = j.current.get(t), i = r.get(t);
|
|
65612
65612
|
if (!n || !i) return;
|
|
65613
65613
|
let o = n.left - i.left, c = n.top - i.top;
|
|
65614
65614
|
!a && Math.abs(c) > .5 || Math.abs(o) < .5 && Math.abs(c) < .5 || (e.style.transition = "none", e.style.transform = `translate(${o}px, ${c}px)`, s.push(e));
|
|
65615
|
-
}), a && e && (e.style.height = `${t}px`, e.style.overflow = "clip"), (s.length > 0 || a) &&
|
|
65615
|
+
}), a && e && (e.style.height = `${t}px`, e.style.overflow = "clip"), (s.length > 0 || a) && ee.current.offsetHeight, s.forEach((e) => {
|
|
65616
65616
|
e.style.transition = `transform ${o}ms cubic-bezier(0, 0, 0.2, 1)`, e.style.transform = "", e.addEventListener("transitionend", () => {
|
|
65617
65617
|
e.style.transition = "";
|
|
65618
65618
|
}, { once: !0 });
|
|
@@ -65624,8 +65624,8 @@ var GF = {
|
|
|
65624
65624
|
e.addEventListener("transitionend", t);
|
|
65625
65625
|
}
|
|
65626
65626
|
}
|
|
65627
|
-
if (
|
|
65628
|
-
let e =
|
|
65627
|
+
if (j.current = r, k.current) {
|
|
65628
|
+
let e = k.current, t = e.style.height ? parseFloat(e.style.height) : NaN;
|
|
65629
65629
|
se.current = Number.isNaN(t) ? e.offsetHeight : t;
|
|
65630
65630
|
}
|
|
65631
65631
|
}, [
|
|
@@ -65654,14 +65654,14 @@ var GF = {
|
|
|
65654
65654
|
}, [s]), /* @__PURE__ */ I("div", {
|
|
65655
65655
|
ref: O,
|
|
65656
65656
|
children: /* @__PURE__ */ L("section", {
|
|
65657
|
-
ref:
|
|
65657
|
+
ref: k,
|
|
65658
65658
|
className: z("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", AR.section, s && AR.sectionLeaving),
|
|
65659
65659
|
style: {
|
|
65660
65660
|
...v,
|
|
65661
|
-
minHeight:
|
|
65661
|
+
minHeight: ne
|
|
65662
65662
|
},
|
|
65663
65663
|
onAnimationEnd: (e) => {
|
|
65664
|
-
e.target ===
|
|
65664
|
+
e.target === k.current && s && c?.();
|
|
65665
65665
|
},
|
|
65666
65666
|
children: [/* @__PURE__ */ I(vy, {
|
|
65667
65667
|
title: n,
|
|
@@ -65704,11 +65704,11 @@ var GF = {
|
|
|
65704
65704
|
]
|
|
65705
65705
|
}) : void 0
|
|
65706
65706
|
}), /* @__PURE__ */ I("div", {
|
|
65707
|
-
ref:
|
|
65707
|
+
ref: ee,
|
|
65708
65708
|
className: z("grid content-start gap-5", AR.gridPage),
|
|
65709
65709
|
style: {
|
|
65710
65710
|
gridTemplateColumns: `repeat(${S}, minmax(0, 1fr))`,
|
|
65711
|
-
minHeight:
|
|
65711
|
+
minHeight: A
|
|
65712
65712
|
},
|
|
65713
65713
|
children: T.map((e) => /* @__PURE__ */ I(jR, {
|
|
65714
65714
|
item: e,
|
|
@@ -65734,7 +65734,7 @@ var GF = {
|
|
|
65734
65734
|
}, IR = ({ data: e }) => e ? /* @__PURE__ */ I("div", {
|
|
65735
65735
|
className: "flex h-full items-center",
|
|
65736
65736
|
children: /* @__PURE__ */ I(yy, { type: e.type })
|
|
65737
|
-
}) : null, LR = ({ data: e, context: t }) => !e || e.folder.length === 0 ? null : /* @__PURE__ */ I(
|
|
65737
|
+
}) : null, LR = ({ data: e, context: t }) => !e || e.folder.length === 0 ? null : /* @__PURE__ */ I(ne, {
|
|
65738
65738
|
segments: e.folder,
|
|
65739
65739
|
labelClassName: t?.typography?.folderClassName,
|
|
65740
65740
|
leafClassName: t?.typography?.folderLastSegmentClassName
|
|
@@ -65885,7 +65885,7 @@ var GF = {
|
|
|
65885
65885
|
className: ze("w-full rounded-xl border", FR.listContainer),
|
|
65886
65886
|
children: /* @__PURE__ */ L("div", {
|
|
65887
65887
|
className: ze("rounded-xl", FR.gridClip),
|
|
65888
|
-
children: [/* @__PURE__ */ I(
|
|
65888
|
+
children: [/* @__PURE__ */ I(j, {
|
|
65889
65889
|
columnDefs: VR(t, f),
|
|
65890
65890
|
rowData: x,
|
|
65891
65891
|
getRowId: (e) => e.id,
|
|
@@ -65971,36 +65971,36 @@ var GF = {
|
|
|
65971
65971
|
e,
|
|
65972
65972
|
r
|
|
65973
65973
|
]);
|
|
65974
|
-
let T = y.length + 1, [E, O] = F(-1),
|
|
65974
|
+
let T = y.length + 1, [E, O] = F(-1), k = $e([]), ee = $e(null), A = N((e) => {
|
|
65975
65975
|
let t = (e + T) % T;
|
|
65976
|
-
O(t),
|
|
65976
|
+
O(t), k.current[t]?.focus();
|
|
65977
65977
|
}, [T]);
|
|
65978
65978
|
Ye(() => {
|
|
65979
65979
|
if (!g) {
|
|
65980
65980
|
O(-1);
|
|
65981
65981
|
return;
|
|
65982
65982
|
}
|
|
65983
|
-
let e = requestAnimationFrame(() =>
|
|
65983
|
+
let e = requestAnimationFrame(() => A(0));
|
|
65984
65984
|
return () => cancelAnimationFrame(e);
|
|
65985
|
-
}, [g,
|
|
65986
|
-
let
|
|
65987
|
-
_(e), e ||
|
|
65988
|
-
},
|
|
65985
|
+
}, [g, A]);
|
|
65986
|
+
let te = (e) => {
|
|
65987
|
+
_(e), e || ee.current?.focus();
|
|
65988
|
+
}, ne = (e) => {
|
|
65989
65989
|
e.key === "ArrowDown" && !g && (e.preventDefault(), _(!0));
|
|
65990
|
-
},
|
|
65991
|
-
e.key === "ArrowDown" ? (e.preventDefault(),
|
|
65992
|
-
},
|
|
65990
|
+
}, ie = (e) => {
|
|
65991
|
+
e.key === "ArrowDown" ? (e.preventDefault(), A(E + 1)) : e.key === "ArrowUp" ? (e.preventDefault(), A(E - 1)) : e.key === "Escape" && (e.preventDefault(), _(!1), ee.current?.focus());
|
|
65992
|
+
}, j = (e) => (t) => {
|
|
65993
65993
|
(t.key === " " || t.key === "Enter") && (t.preventDefault(), e());
|
|
65994
|
-
},
|
|
65995
|
-
t(x), i?.(C),
|
|
65994
|
+
}, ae = () => {
|
|
65995
|
+
t(x), i?.(C), te(!1);
|
|
65996
65996
|
}, oe = () => {
|
|
65997
|
-
t(/* @__PURE__ */ new Set()), i?.(!1),
|
|
65997
|
+
t(/* @__PURE__ */ new Set()), i?.(!1), te(!1);
|
|
65998
65998
|
};
|
|
65999
65999
|
return /* @__PURE__ */ I(D, {
|
|
66000
66000
|
matchReferenceWidth: !1,
|
|
66001
66001
|
placement: "bottom-start",
|
|
66002
66002
|
open: g,
|
|
66003
|
-
onOpenChange:
|
|
66003
|
+
onOpenChange: te,
|
|
66004
66004
|
listClassName: "!bg-transparent !shadow-none !p-0",
|
|
66005
66005
|
renderOverlay: () => /* @__PURE__ */ L("div", {
|
|
66006
66006
|
role: "menu",
|
|
@@ -66008,18 +66008,18 @@ var GF = {
|
|
|
66008
66008
|
tabIndex: -1,
|
|
66009
66009
|
style: v,
|
|
66010
66010
|
className: z("min-w-[360px] rounded-xl p-[6px]", GR.overlay),
|
|
66011
|
-
onKeyDown:
|
|
66011
|
+
onKeyDown: ie,
|
|
66012
66012
|
children: [
|
|
66013
66013
|
/* @__PURE__ */ L("div", {
|
|
66014
66014
|
role: "menuitemcheckbox",
|
|
66015
66015
|
"aria-checked": C,
|
|
66016
66016
|
tabIndex: E === 0 ? 0 : -1,
|
|
66017
66017
|
ref: (e) => {
|
|
66018
|
-
|
|
66018
|
+
k.current[0] = e;
|
|
66019
66019
|
},
|
|
66020
66020
|
className: z("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none", GR.row, C && GR.rowChecked),
|
|
66021
66021
|
onClick: () => w(!C),
|
|
66022
|
-
onKeyDown:
|
|
66022
|
+
onKeyDown: j(() => w(!C)),
|
|
66023
66023
|
children: [/* @__PURE__ */ I(o, {
|
|
66024
66024
|
isSelected: C,
|
|
66025
66025
|
className: "shrink-0"
|
|
@@ -66048,11 +66048,11 @@ var GF = {
|
|
|
66048
66048
|
"aria-checked": n,
|
|
66049
66049
|
tabIndex: E === r ? 0 : -1,
|
|
66050
66050
|
ref: (e) => {
|
|
66051
|
-
|
|
66051
|
+
k.current[r] = e;
|
|
66052
66052
|
},
|
|
66053
66053
|
className: z("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none", GR.row, n && GR.rowChecked),
|
|
66054
66054
|
onClick: i,
|
|
66055
|
-
onKeyDown:
|
|
66055
|
+
onKeyDown: j(i),
|
|
66056
66056
|
children: [/* @__PURE__ */ I(o, {
|
|
66057
66057
|
isSelected: n,
|
|
66058
66058
|
className: "shrink-0"
|
|
@@ -66069,23 +66069,23 @@ var GF = {
|
|
|
66069
66069
|
onKeyDown: (e) => {
|
|
66070
66070
|
(e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
|
|
66071
66071
|
},
|
|
66072
|
-
children: [/* @__PURE__ */ I(
|
|
66072
|
+
children: [/* @__PURE__ */ I(re, {
|
|
66073
66073
|
label: l,
|
|
66074
66074
|
onClick: oe
|
|
66075
66075
|
}), /* @__PURE__ */ I(ve, {
|
|
66076
66076
|
label: u,
|
|
66077
66077
|
className: "ms-auto",
|
|
66078
|
-
onClick:
|
|
66078
|
+
onClick: ae
|
|
66079
66079
|
})]
|
|
66080
66080
|
})
|
|
66081
66081
|
]
|
|
66082
66082
|
}),
|
|
66083
66083
|
children: /* @__PURE__ */ L("button", {
|
|
66084
|
-
ref:
|
|
66084
|
+
ref: ee,
|
|
66085
66085
|
type: "button",
|
|
66086
66086
|
"aria-haspopup": "menu",
|
|
66087
66087
|
"aria-expanded": g,
|
|
66088
|
-
onKeyDown:
|
|
66088
|
+
onKeyDown: ne,
|
|
66089
66089
|
style: v,
|
|
66090
66090
|
className: z("flex h-12 shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-lg px-[18px]", GR.filterBtn, p && GR.filterBtnActive, g && GR.filterBtnOpen),
|
|
66091
66091
|
children: [
|
|
@@ -66111,15 +66111,15 @@ var GF = {
|
|
|
66111
66111
|
}, YR = {
|
|
66112
66112
|
section: "_section_mh952_1",
|
|
66113
66113
|
divider: "_divider_mh952_5"
|
|
66114
|
-
}, XR = ({ totalCount: e, viewMode: i, onViewModeChange: a, title: o = "Browse",
|
|
66115
|
-
let
|
|
66114
|
+
}, XR = ({ totalCount: e, viewMode: i, onViewModeChange: a, title: o = "Browse", browseHeaderRenderer: s, styles: c, query: l, onQueryChange: u, searchPlaceholder: d, gridViewLabel: f = "Grid view", listViewLabel: p = "List view", viewToggleLabel: g = "View mode", sortKey: _, sortOptions: v, filters: y, onFiltersChange: b, filterValues: x, isMyAppsActive: S, onMyAppsChange: C, filterFromLabel: w, filterMyAppsLabel: T, filterTopicsLabel: E }) => {
|
|
66115
|
+
let D = c?.typography?.titleClassName ?? "dial-body-semi-text", O = c?.typography?.countClassName ?? "dial-tiny-semi-text", k = P(() => [{
|
|
66116
66116
|
value: bn.Grid,
|
|
66117
66117
|
icon: /* @__PURE__ */ I(kt, {
|
|
66118
66118
|
size: m.SM,
|
|
66119
66119
|
"aria-hidden": !0,
|
|
66120
66120
|
stroke: h
|
|
66121
66121
|
}),
|
|
66122
|
-
"aria-label":
|
|
66122
|
+
"aria-label": f
|
|
66123
66123
|
}, {
|
|
66124
66124
|
value: bn.List,
|
|
66125
66125
|
icon: /* @__PURE__ */ I(At, {
|
|
@@ -66127,35 +66127,35 @@ var GF = {
|
|
|
66127
66127
|
"aria-hidden": !0,
|
|
66128
66128
|
stroke: h
|
|
66129
66129
|
}),
|
|
66130
|
-
"aria-label":
|
|
66131
|
-
}], [
|
|
66130
|
+
"aria-label": p
|
|
66131
|
+
}], [f, p]), A = v?.find((e) => e.key === _)?.label ?? "";
|
|
66132
66132
|
return /* @__PURE__ */ L("div", {
|
|
66133
66133
|
className: "flex flex-col gap-3",
|
|
66134
66134
|
children: [/* @__PURE__ */ L("div", {
|
|
66135
66135
|
className: "flex items-center gap-2",
|
|
66136
|
-
children: [/* @__PURE__ */ I(vy, {
|
|
66136
|
+
children: [s ?? /* @__PURE__ */ I(vy, {
|
|
66137
66137
|
title: o,
|
|
66138
66138
|
postfix: e,
|
|
66139
|
-
titleClassName:
|
|
66140
|
-
postfixClassName:
|
|
66139
|
+
titleClassName: D,
|
|
66140
|
+
postfixClassName: O,
|
|
66141
66141
|
className: "shrink-0",
|
|
66142
66142
|
shouldTruncateTitle: !1,
|
|
66143
66143
|
colors: {
|
|
66144
|
-
title:
|
|
66145
|
-
count:
|
|
66144
|
+
title: c?.colors?.titleText,
|
|
66145
|
+
count: c?.colors?.countText
|
|
66146
66146
|
}
|
|
66147
66147
|
}), /* @__PURE__ */ L("div", {
|
|
66148
66148
|
className: "ms-auto flex items-center gap-2",
|
|
66149
66149
|
children: [/* @__PURE__ */ I(Se, {
|
|
66150
|
-
"aria-label":
|
|
66150
|
+
"aria-label": g,
|
|
66151
66151
|
value: i,
|
|
66152
66152
|
onChange: a,
|
|
66153
|
-
items:
|
|
66154
|
-
}),
|
|
66155
|
-
label:
|
|
66153
|
+
items: k
|
|
66154
|
+
}), v != null && v.length > 0 && /* @__PURE__ */ L(et, { children: [/* @__PURE__ */ I("div", { className: z("h-4 w-px shrink-0", YR.divider) }), /* @__PURE__ */ I(n, {
|
|
66155
|
+
label: A,
|
|
66156
66156
|
variant: r.Primary,
|
|
66157
66157
|
appearance: t.Ghost,
|
|
66158
|
-
items:
|
|
66158
|
+
items: v
|
|
66159
66159
|
})] })]
|
|
66160
66160
|
})]
|
|
66161
66161
|
}), /* @__PURE__ */ L("div", {
|
|
@@ -66164,25 +66164,25 @@ var GF = {
|
|
|
66164
66164
|
role: "search",
|
|
66165
66165
|
className: "flex-1",
|
|
66166
66166
|
children: /* @__PURE__ */ I(xe, {
|
|
66167
|
-
value:
|
|
66167
|
+
value: l,
|
|
66168
66168
|
onChange: (e) => {
|
|
66169
|
-
|
|
66169
|
+
u(e ?? "");
|
|
66170
66170
|
},
|
|
66171
|
-
size:
|
|
66171
|
+
size: ee.Large,
|
|
66172
66172
|
wrapperClassName: "dial-kit-input-large",
|
|
66173
|
-
placeholder:
|
|
66174
|
-
"aria-label":
|
|
66173
|
+
placeholder: d,
|
|
66174
|
+
"aria-label": d
|
|
66175
66175
|
})
|
|
66176
66176
|
}), /* @__PURE__ */ I(JR, {
|
|
66177
|
-
checked:
|
|
66178
|
-
onChange:
|
|
66179
|
-
values:
|
|
66180
|
-
isMyAppsActive:
|
|
66181
|
-
onMyAppsChange:
|
|
66182
|
-
defaultLabel:
|
|
66183
|
-
myAppsLabel:
|
|
66184
|
-
topicsLabel:
|
|
66185
|
-
typography:
|
|
66177
|
+
checked: y ?? /* @__PURE__ */ new Set(),
|
|
66178
|
+
onChange: b ?? (() => void 0),
|
|
66179
|
+
values: x,
|
|
66180
|
+
isMyAppsActive: S,
|
|
66181
|
+
onMyAppsChange: C,
|
|
66182
|
+
defaultLabel: w,
|
|
66183
|
+
myAppsLabel: T,
|
|
66184
|
+
topicsLabel: E,
|
|
66185
|
+
typography: c?.typography
|
|
66186
66186
|
})]
|
|
66187
66187
|
})]
|
|
66188
66188
|
});
|
|
@@ -66238,269 +66238,270 @@ var GF = {
|
|
|
66238
66238
|
}),
|
|
66239
66239
|
onClick: a
|
|
66240
66240
|
});
|
|
66241
|
-
}, ez = ({ items: e, tabs: t, topicOptions: n, favorites: r, titles: i,
|
|
66242
|
-
let { typography:
|
|
66241
|
+
}, ez = ({ items: e, tabs: t, topicOptions: n, favorites: r, titles: i, browseHeaderRenderer: a, onToggleFavorite: o, isFavoriteVisible: s, onUseInChat: c, isPrimaryActionVisible: l, onShare: u, isPublishVisible: d, isPublishPrimary: f, getPublishHistory: p, publishFolderItems: m, publishExpandedPaths: h, onPublishExpandedPathsChange: g, publishLoadingPaths: _, hasPublishWriteAccess: v, onPublish: y, onPublishSuccess: b, onPublishError: x, onCreatePublishFolder: S, publishLabels: C, ruleSourceOptions: w, onFetchExistingRules: T, shareOverlay: E, isShareVisible: D, isSharePrimary: O, onFetchDetails: k, onEdit: ee, onDownload: A, isDownloadVisible: te, isDownloadPrimary: ne, onLoadContentFile: re, onLoadContentFilePreview: ie, renderContentFilePreview: j, onDelete: ae, onUnshare: oe, isUnshareVisible: se, onRevokeShare: ce, onFetchRecipientsCount: le, isRevokeShareVisible: ue, onUnpublish: de, isUnpublishVisible: fe, onLogin: pe, onLogout: me, onCreateClick: he, createOptions: ge, hideCreateButton: _e = !1, hidePageTitle: M = !1, isReadonly: ve = !1, initialViewMode: ye = bn.List, selectedItemId: be, onCardClick: xe, isLoading: Se, styles: Ce, detailsTexts: we, detailsLimitsFooterNote: Te, initialDetailsItemId: Ee, sortKey: Oe, onSortChange: Ae, filterTopics: je, onFilterTopicsChange: Me, isMyAppsActive: Ne, onMyAppsActiveChange: Pe, activeTab: Fe, onActiveTabChange: Ie }) => {
|
|
66242
|
+
let { typography: Le } = Ce ?? {}, Re = eI(Ce), ze = i?.pageTitle ?? "Catalog", Be = i?.createLabel ?? "Create", Ve = i?.favoritesTitle ?? "Your favorites", He = i?.browseTitle ?? "Browse", Ue = i?.searchPlaceholder ?? "Search models, tools, agents…", We = i?.noResultsTitle ?? ((e) => `No results for "${e}"`), Ge = i?.featuredLabel ?? "Featured", Ke = i?.gridViewLabel ?? "Grid view", qe = i?.listViewLabel ?? "List view", Je = i?.viewToggleLabel ?? "View mode", Xe = i?.ariaLabel ?? "Catalog", Ze = [
|
|
66243
66243
|
{
|
|
66244
66244
|
key: xn.RecentlyUpdated,
|
|
66245
66245
|
label: i?.sortRecentlyUpdatedLabel ?? "Recently Updated",
|
|
66246
|
-
onClick: () =>
|
|
66246
|
+
onClick: () => mt?.(xn.RecentlyUpdated)
|
|
66247
66247
|
},
|
|
66248
66248
|
{
|
|
66249
66249
|
key: xn.Newest,
|
|
66250
66250
|
label: i?.sortNewestLabel ?? "Newest",
|
|
66251
|
-
onClick: () =>
|
|
66251
|
+
onClick: () => mt?.(xn.Newest)
|
|
66252
66252
|
},
|
|
66253
66253
|
{
|
|
66254
66254
|
key: xn.NameAZ,
|
|
66255
66255
|
label: i?.sortNameAZLabel ?? "Name A-Z",
|
|
66256
|
-
onClick: () =>
|
|
66256
|
+
onClick: () => mt?.(xn.NameAZ)
|
|
66257
66257
|
}
|
|
66258
|
-
], [
|
|
66258
|
+
], [Qe, et] = F(""), [tt, nt] = F(ye), [rt, it] = F(ye === bn.List), [at, ot] = F(xn.RecentlyUpdated), [st, ct] = F(/* @__PURE__ */ new Set()), [lt, ut] = F(!1), dt = Oe ?? at, ft = je ?? st, pt = Ne ?? lt, mt = N((e) => {
|
|
66259
66259
|
let t = e;
|
|
66260
|
-
|
|
66261
|
-
}, [
|
|
66262
|
-
|
|
66263
|
-
}, [
|
|
66264
|
-
|
|
66265
|
-
}, [
|
|
66260
|
+
ot(t), Ae?.(t);
|
|
66261
|
+
}, [Ae]), ht = N((e) => {
|
|
66262
|
+
ct(e), Me?.(e);
|
|
66263
|
+
}, [Me]), gt = N((e) => {
|
|
66264
|
+
ut(e), Pe?.(e);
|
|
66265
|
+
}, [Pe]), _t = P(() => e.filter((e) => !e.isHidden), [e]), vt = P(() => n ?? Dn(_t), [n, _t]), yt = P(() => t ?? qF(_t, i?.tabLabels), [
|
|
66266
66266
|
t,
|
|
66267
|
-
|
|
66267
|
+
_t,
|
|
66268
66268
|
i?.tabLabels
|
|
66269
|
-
]),
|
|
66269
|
+
]), bt = yt[0]?.id ?? "", [xt, St] = F(bt);
|
|
66270
66270
|
Ye(() => {
|
|
66271
|
-
|
|
66272
|
-
}, [
|
|
66273
|
-
let
|
|
66274
|
-
|
|
66275
|
-
}, [
|
|
66271
|
+
St((e) => e || bt);
|
|
66272
|
+
}, [bt]);
|
|
66273
|
+
let Ct = Fe ?? xt, wt = N((e) => {
|
|
66274
|
+
St(e), Ie?.(e);
|
|
66275
|
+
}, [Ie]), [Tt, Et] = F(r.length > 0);
|
|
66276
66276
|
Ye(() => {
|
|
66277
|
-
r.length > 0 && !
|
|
66278
|
-
}, [r.length,
|
|
66279
|
-
let
|
|
66280
|
-
|
|
66281
|
-
}, []),
|
|
66282
|
-
|
|
66277
|
+
r.length > 0 && !Tt && Et(!0);
|
|
66278
|
+
}, [r.length, Tt]);
|
|
66279
|
+
let Dt = N(() => {
|
|
66280
|
+
Et(!1);
|
|
66281
|
+
}, []), Ot = Tt && r.length === 0, [kt, At] = F(null), [jt, Mt] = F(!1), [Nt, Pt] = F(void 0), [Ft, It] = F(!1), Lt = $e(null), Rt = N(async (e) => {
|
|
66282
|
+
At(e), Pt(void 0), Lt.current = e.id;
|
|
66283
66283
|
let t = [];
|
|
66284
|
-
|
|
66284
|
+
k && (It(!0), t.push((async () => {
|
|
66285
66285
|
try {
|
|
66286
|
-
let t = await
|
|
66287
|
-
|
|
66286
|
+
let t = await k(e);
|
|
66287
|
+
Lt.current === e.id && Pt(t);
|
|
66288
66288
|
} finally {
|
|
66289
|
-
|
|
66289
|
+
Lt.current === e.id && It(!1);
|
|
66290
66290
|
}
|
|
66291
66291
|
})())), await Promise.all(t);
|
|
66292
|
-
}, [
|
|
66292
|
+
}, [k]), zt = $e(null);
|
|
66293
66293
|
Ye(() => {
|
|
66294
|
-
if (!
|
|
66295
|
-
|
|
66294
|
+
if (!Ee) {
|
|
66295
|
+
zt.current = null;
|
|
66296
66296
|
return;
|
|
66297
66297
|
}
|
|
66298
|
-
if (
|
|
66299
|
-
let t = e.find((e) => e.id ===
|
|
66300
|
-
t && (
|
|
66298
|
+
if (zt.current === Ee) return;
|
|
66299
|
+
let t = e.find((e) => e.id === Ee);
|
|
66300
|
+
t && (zt.current = Ee, Rt(t));
|
|
66301
66301
|
}, [
|
|
66302
|
-
|
|
66302
|
+
Ee,
|
|
66303
66303
|
e,
|
|
66304
|
-
|
|
66304
|
+
Rt
|
|
66305
66305
|
]), Ye(() => {
|
|
66306
|
-
if (
|
|
66307
|
-
let t = e.find((e) => e.id ===
|
|
66308
|
-
t && t !==
|
|
66309
|
-
}, [e,
|
|
66310
|
-
let
|
|
66311
|
-
await
|
|
66312
|
-
}, [
|
|
66313
|
-
await
|
|
66314
|
-
}, [
|
|
66315
|
-
|
|
66316
|
-
|
|
66306
|
+
if (kt == null) return;
|
|
66307
|
+
let t = e.find((e) => e.id === kt.id);
|
|
66308
|
+
t && t !== kt && At(t);
|
|
66309
|
+
}, [e, kt]);
|
|
66310
|
+
let Bt = N(async (e, t) => {
|
|
66311
|
+
await pe?.(e, t), await Rt(e);
|
|
66312
|
+
}, [pe, Rt]), Vt = N(async (e, t) => {
|
|
66313
|
+
await me?.(e, t), await Rt(e);
|
|
66314
|
+
}, [me, Rt]), Ht = N(() => {
|
|
66315
|
+
Mt(!1), Lt.current = null, setTimeout(() => {
|
|
66316
|
+
At(null), Pt(void 0), It(!1);
|
|
66317
66317
|
}, 300);
|
|
66318
|
-
}, []),
|
|
66319
|
-
if (
|
|
66320
|
-
if (
|
|
66321
|
-
let { credentials: e, ...t } =
|
|
66318
|
+
}, []), Ut = P(() => {
|
|
66319
|
+
if (kt == null) return null;
|
|
66320
|
+
if (Nt == null) return kt;
|
|
66321
|
+
let { credentials: e, ...t } = Nt;
|
|
66322
66322
|
return {
|
|
66323
|
-
...
|
|
66323
|
+
...kt,
|
|
66324
66324
|
details: t,
|
|
66325
|
-
credentials: e ??
|
|
66325
|
+
credentials: e ?? kt.credentials
|
|
66326
66326
|
};
|
|
66327
|
-
}, [
|
|
66327
|
+
}, [kt, Nt]), Wt = P(() => kn(_t, dt), [_t, dt]), Gt = P(() => On(Wt, Qe), [Wt, Qe]), Kt = P(() => ft.size > 0 ? Tn(Gt, ft) : Gt, [Gt, ft]), qt = P(() => pt ? En(Kt) : Kt, [Kt, pt]), Jt = P(() => Ct ? qt.filter((e) => e.type === Ct) : qt, [qt, Ct]), Yt = kt != null && r.some((e) => e.id === kt.id);
|
|
66328
66328
|
Ye(() => {
|
|
66329
|
-
if (
|
|
66330
|
-
let e = requestAnimationFrame(() =>
|
|
66329
|
+
if (kt == null) return;
|
|
66330
|
+
let e = requestAnimationFrame(() => Mt(!0));
|
|
66331
66331
|
return () => cancelAnimationFrame(e);
|
|
66332
|
-
}, [
|
|
66333
|
-
let
|
|
66334
|
-
e === bn.List &&
|
|
66335
|
-
}, []),
|
|
66336
|
-
noResultsTitle:
|
|
66337
|
-
featuredLabel:
|
|
66338
|
-
credentialsBadgeLoggedOutLabel:
|
|
66332
|
+
}, [kt]);
|
|
66333
|
+
let Xt = N((e) => {
|
|
66334
|
+
e === bn.List && it(!0), nt(e);
|
|
66335
|
+
}, []), Zt = !_e && !ve, Qt = Tt && !ve, $t = Qe ? We(Qe) : "No items", en = P(() => ({
|
|
66336
|
+
noResultsTitle: $t,
|
|
66337
|
+
featuredLabel: Ge,
|
|
66338
|
+
credentialsBadgeLoggedOutLabel: we?.credentialsBadgeLoggedOutLabel
|
|
66339
66339
|
}), [
|
|
66340
|
-
|
|
66341
|
-
|
|
66342
|
-
|
|
66340
|
+
$t,
|
|
66341
|
+
Ge,
|
|
66342
|
+
we?.credentialsBadgeLoggedOutLabel
|
|
66343
66343
|
]);
|
|
66344
|
-
return
|
|
66344
|
+
return Se ? /* @__PURE__ */ I("div", {
|
|
66345
66345
|
className: "flex size-full min-h-0 flex-1 items-center justify-center",
|
|
66346
66346
|
children: /* @__PURE__ */ I(De, {})
|
|
66347
66347
|
}) : /* @__PURE__ */ L("section", {
|
|
66348
|
-
"aria-label":
|
|
66348
|
+
"aria-label": Xe,
|
|
66349
66349
|
className: z("flex size-full min-h-0 flex-1 flex-col", QR.root),
|
|
66350
|
-
style:
|
|
66350
|
+
style: Re,
|
|
66351
66351
|
children: [
|
|
66352
|
-
(!
|
|
66352
|
+
(!M || Zt) && /* @__PURE__ */ I("div", {
|
|
66353
66353
|
className: z("shrink-0", QR.heading),
|
|
66354
66354
|
children: /* @__PURE__ */ L("div", {
|
|
66355
66355
|
className: "flex h-[64px] w-full items-center justify-between px-8",
|
|
66356
|
-
children: [!
|
|
66357
|
-
className: z(
|
|
66358
|
-
children:
|
|
66359
|
-
}),
|
|
66360
|
-
label:
|
|
66361
|
-
options:
|
|
66362
|
-
onClick:
|
|
66356
|
+
children: [!M && /* @__PURE__ */ I("h1", {
|
|
66357
|
+
className: z(Le?.pageHeadingFontClassName ?? "dial-display2-text", QR.headingTitle),
|
|
66358
|
+
children: ze
|
|
66359
|
+
}), Zt && /* @__PURE__ */ I($R, {
|
|
66360
|
+
label: Be,
|
|
66361
|
+
options: ge,
|
|
66362
|
+
onClick: he
|
|
66363
66363
|
})]
|
|
66364
66364
|
})
|
|
66365
66365
|
}),
|
|
66366
66366
|
/* @__PURE__ */ L("div", {
|
|
66367
66367
|
className: "flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto overflow-x-hidden",
|
|
66368
66368
|
children: [
|
|
66369
|
-
|
|
66369
|
+
Qt && /* @__PURE__ */ I("div", {
|
|
66370
66370
|
className: "w-full px-8",
|
|
66371
66371
|
children: /* @__PURE__ */ I(PR, {
|
|
66372
66372
|
items: r,
|
|
66373
66373
|
totalCount: r.length,
|
|
66374
|
-
title:
|
|
66375
|
-
onToggleFavorite:
|
|
66376
|
-
isFavoriteVisible:
|
|
66377
|
-
onItemClick:
|
|
66378
|
-
isLeaving:
|
|
66379
|
-
onExitComplete:
|
|
66380
|
-
selectedItemId:
|
|
66381
|
-
credentialsBadgeLoggedOutLabel:
|
|
66374
|
+
title: Ve,
|
|
66375
|
+
onToggleFavorite: o,
|
|
66376
|
+
isFavoriteVisible: s,
|
|
66377
|
+
onItemClick: xe ?? Rt,
|
|
66378
|
+
isLeaving: Ot,
|
|
66379
|
+
onExitComplete: Dt,
|
|
66380
|
+
selectedItemId: be,
|
|
66381
|
+
credentialsBadgeLoggedOutLabel: we?.credentialsBadgeLoggedOutLabel
|
|
66382
66382
|
})
|
|
66383
66383
|
}),
|
|
66384
66384
|
/* @__PURE__ */ I("div", {
|
|
66385
66385
|
className: "w-full px-4 pt-6",
|
|
66386
66386
|
children: /* @__PURE__ */ I(ZR, {
|
|
66387
|
-
totalCount:
|
|
66388
|
-
viewMode:
|
|
66389
|
-
onViewModeChange:
|
|
66390
|
-
sortKey:
|
|
66391
|
-
query:
|
|
66392
|
-
onQueryChange:
|
|
66393
|
-
title:
|
|
66394
|
-
|
|
66395
|
-
|
|
66396
|
-
|
|
66397
|
-
|
|
66398
|
-
|
|
66399
|
-
|
|
66400
|
-
|
|
66401
|
-
|
|
66402
|
-
|
|
66403
|
-
|
|
66387
|
+
totalCount: qt.length,
|
|
66388
|
+
viewMode: tt,
|
|
66389
|
+
onViewModeChange: Xt,
|
|
66390
|
+
sortKey: dt,
|
|
66391
|
+
query: Qe,
|
|
66392
|
+
onQueryChange: et,
|
|
66393
|
+
title: He,
|
|
66394
|
+
browseHeaderRenderer: a,
|
|
66395
|
+
searchPlaceholder: Ue,
|
|
66396
|
+
gridViewLabel: Ke,
|
|
66397
|
+
listViewLabel: qe,
|
|
66398
|
+
viewToggleLabel: Je,
|
|
66399
|
+
sortOptions: Ze,
|
|
66400
|
+
filters: ft,
|
|
66401
|
+
onFiltersChange: ht,
|
|
66402
|
+
filterValues: vt,
|
|
66403
|
+
isMyAppsActive: pt,
|
|
66404
|
+
onMyAppsChange: gt,
|
|
66404
66405
|
filterFromLabel: i?.filterFromLabel,
|
|
66405
66406
|
filterMyAppsLabel: i?.filterMyAppsLabel,
|
|
66406
66407
|
filterTopicsLabel: i?.filterTopicsLabel
|
|
66407
66408
|
})
|
|
66408
66409
|
}),
|
|
66409
|
-
|
|
66410
|
+
yt.length > 0 && /* @__PURE__ */ I("div", {
|
|
66410
66411
|
className: "min-w-0 shrink-0 overflow-x-auto px-8",
|
|
66411
66412
|
children: /* @__PURE__ */ I(ke, {
|
|
66412
|
-
tabs:
|
|
66413
|
+
tabs: yt.map((e) => ({
|
|
66413
66414
|
id: e.id,
|
|
66414
66415
|
label: typeof e.label == "string" ? e.label : String(e.label),
|
|
66415
|
-
count:
|
|
66416
|
+
count: qt.filter((t) => t.type === e.id).length
|
|
66416
66417
|
})),
|
|
66417
|
-
activeTabId:
|
|
66418
|
-
onTabChange:
|
|
66418
|
+
activeTabId: Ct,
|
|
66419
|
+
onTabChange: wt
|
|
66419
66420
|
})
|
|
66420
66421
|
}),
|
|
66421
66422
|
/* @__PURE__ */ L("div", {
|
|
66422
|
-
className: z(
|
|
66423
|
+
className: z(Jt.length > 0 ? "mx-auto min-h-full w-full max-w-[1180px] px-8 py-6" : "min-h-[180px] flex-1", Jt.length === 0 && "px-8 py-6"),
|
|
66423
66424
|
children: [/* @__PURE__ */ I("div", {
|
|
66424
|
-
className: z(
|
|
66425
|
+
className: z(Jt.length > 0 ? "pb-8" : "size-full flex-1", tt !== bn.Grid && "hidden"),
|
|
66425
66426
|
children: /* @__PURE__ */ I(vI, {
|
|
66426
|
-
items:
|
|
66427
|
-
query:
|
|
66428
|
-
onToggleFavorite:
|
|
66429
|
-
isFavoriteVisible:
|
|
66430
|
-
onItemClick:
|
|
66431
|
-
titles:
|
|
66432
|
-
selectedItemId:
|
|
66433
|
-
isReadonly:
|
|
66427
|
+
items: Jt,
|
|
66428
|
+
query: Qe,
|
|
66429
|
+
onToggleFavorite: o,
|
|
66430
|
+
isFavoriteVisible: s,
|
|
66431
|
+
onItemClick: xe ?? Rt,
|
|
66432
|
+
titles: en,
|
|
66433
|
+
selectedItemId: be,
|
|
66434
|
+
isReadonly: ve
|
|
66434
66435
|
})
|
|
66435
|
-
}),
|
|
66436
|
-
className: z("pb-8",
|
|
66436
|
+
}), rt && /* @__PURE__ */ I("div", {
|
|
66437
|
+
className: z("pb-8", tt !== bn.List && "hidden", Jt.length === 0 && "h-full"),
|
|
66437
66438
|
children: /* @__PURE__ */ I(WR, {
|
|
66438
|
-
type:
|
|
66439
|
-
items:
|
|
66440
|
-
query:
|
|
66441
|
-
ariaLabel:
|
|
66442
|
-
emptyStateTitle:
|
|
66443
|
-
onToggleFavorite:
|
|
66444
|
-
isFavoriteVisible:
|
|
66445
|
-
onItemClick:
|
|
66439
|
+
type: Ct,
|
|
66440
|
+
items: Jt,
|
|
66441
|
+
query: Qe,
|
|
66442
|
+
ariaLabel: Xe,
|
|
66443
|
+
emptyStateTitle: $t,
|
|
66444
|
+
onToggleFavorite: o,
|
|
66445
|
+
isFavoriteVisible: s,
|
|
66446
|
+
onItemClick: xe ?? Rt,
|
|
66446
66447
|
stickyHeaderTop: 0,
|
|
66447
|
-
selectedItemId:
|
|
66448
|
-
credentialsBadgeLoggedOutLabel:
|
|
66449
|
-
isReadonly:
|
|
66448
|
+
selectedItemId: be,
|
|
66449
|
+
credentialsBadgeLoggedOutLabel: we?.credentialsBadgeLoggedOutLabel,
|
|
66450
|
+
isReadonly: ve
|
|
66450
66451
|
})
|
|
66451
66452
|
})]
|
|
66452
66453
|
})
|
|
66453
66454
|
]
|
|
66454
66455
|
}),
|
|
66455
|
-
|
|
66456
|
-
item:
|
|
66457
|
-
isOpen:
|
|
66458
|
-
isStarred:
|
|
66459
|
-
isDetailsLoading:
|
|
66460
|
-
isReadonly:
|
|
66461
|
-
onClose:
|
|
66462
|
-
onToggleFavorite:
|
|
66463
|
-
isFavoriteVisible:
|
|
66464
|
-
onUseInChat:
|
|
66465
|
-
isPrimaryActionVisible:
|
|
66466
|
-
onShare:
|
|
66467
|
-
isPublishVisible:
|
|
66468
|
-
isPublishPrimary:
|
|
66469
|
-
getPublishHistory:
|
|
66470
|
-
publishFolderItems:
|
|
66471
|
-
publishExpandedPaths:
|
|
66472
|
-
onPublishExpandedPathsChange:
|
|
66473
|
-
publishLoadingPaths:
|
|
66474
|
-
hasPublishWriteAccess:
|
|
66475
|
-
onPublish:
|
|
66476
|
-
onPublishSuccess:
|
|
66477
|
-
onPublishError:
|
|
66478
|
-
onCreatePublishFolder:
|
|
66479
|
-
publishLabels:
|
|
66480
|
-
ruleSourceOptions:
|
|
66481
|
-
onFetchExistingRules:
|
|
66482
|
-
shareOverlay:
|
|
66483
|
-
isShareVisible:
|
|
66484
|
-
isSharePrimary:
|
|
66456
|
+
Ut != null && /* @__PURE__ */ I(kR, {
|
|
66457
|
+
item: Ut,
|
|
66458
|
+
isOpen: jt,
|
|
66459
|
+
isStarred: Yt,
|
|
66460
|
+
isDetailsLoading: Ft,
|
|
66461
|
+
isReadonly: ve,
|
|
66462
|
+
onClose: Ht,
|
|
66463
|
+
onToggleFavorite: o,
|
|
66464
|
+
isFavoriteVisible: s,
|
|
66465
|
+
onUseInChat: c,
|
|
66466
|
+
isPrimaryActionVisible: l,
|
|
66467
|
+
onShare: u,
|
|
66468
|
+
isPublishVisible: d,
|
|
66469
|
+
isPublishPrimary: f,
|
|
66470
|
+
getPublishHistory: p,
|
|
66471
|
+
publishFolderItems: m,
|
|
66472
|
+
publishExpandedPaths: h,
|
|
66473
|
+
onPublishExpandedPathsChange: g,
|
|
66474
|
+
publishLoadingPaths: _,
|
|
66475
|
+
hasPublishWriteAccess: v,
|
|
66476
|
+
onPublish: y,
|
|
66477
|
+
onPublishSuccess: b,
|
|
66478
|
+
onPublishError: x,
|
|
66479
|
+
onCreatePublishFolder: S,
|
|
66480
|
+
publishLabels: C,
|
|
66481
|
+
ruleSourceOptions: w,
|
|
66482
|
+
onFetchExistingRules: T,
|
|
66483
|
+
shareOverlay: E,
|
|
66484
|
+
isShareVisible: D,
|
|
66485
|
+
isSharePrimary: O,
|
|
66485
66486
|
onEdit: ee,
|
|
66486
|
-
onDownload:
|
|
66487
|
-
isDownloadVisible:
|
|
66487
|
+
onDownload: A,
|
|
66488
|
+
isDownloadVisible: te,
|
|
66488
66489
|
isDownloadPrimary: ne,
|
|
66489
66490
|
onLoadContentFile: re,
|
|
66490
66491
|
onLoadContentFilePreview: ie,
|
|
66491
|
-
renderContentFilePreview:
|
|
66492
|
-
onDelete:
|
|
66493
|
-
onUnshare:
|
|
66494
|
-
isUnshareVisible:
|
|
66495
|
-
onRevokeShare:
|
|
66496
|
-
onFetchRecipientsCount:
|
|
66497
|
-
isRevokeShareVisible:
|
|
66498
|
-
onUnpublish:
|
|
66499
|
-
isUnpublishVisible:
|
|
66500
|
-
onLogin:
|
|
66501
|
-
onLogout:
|
|
66502
|
-
texts:
|
|
66503
|
-
limitsFooterNote:
|
|
66492
|
+
renderContentFilePreview: j,
|
|
66493
|
+
onDelete: ae,
|
|
66494
|
+
onUnshare: oe,
|
|
66495
|
+
isUnshareVisible: se,
|
|
66496
|
+
onRevokeShare: ce,
|
|
66497
|
+
onFetchRecipientsCount: le,
|
|
66498
|
+
isRevokeShareVisible: ue,
|
|
66499
|
+
onUnpublish: de,
|
|
66500
|
+
isUnpublishVisible: fe,
|
|
66501
|
+
onLogin: Bt,
|
|
66502
|
+
onLogout: Vt,
|
|
66503
|
+
texts: we,
|
|
66504
|
+
limitsFooterNote: Te
|
|
66504
66505
|
})
|
|
66505
66506
|
]
|
|
66506
66507
|
});
|