@pstdio/ui 0.36.0 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MermaidComponent-Cxg7NtjX.js → MermaidComponent-BLMDb5XE.js} +2 -2
- package/dist/{MermaidComponent-Cxg7NtjX.js.map → MermaidComponent-BLMDb5XE.js.map} +1 -1
- package/dist/chat-ui.d.ts +14 -3
- package/dist/chat-ui.js +702 -698
- package/dist/chat-ui.js.map +1 -1
- package/dist/{data-table-stats-row-UuTinYfL.js → data-table-stats-row-BrpOFzgn.js} +2 -2
- package/dist/{data-table-stats-row-UuTinYfL.js.map → data-table-stats-row-BrpOFzgn.js.map} +1 -1
- package/dist/data-table.js +4 -4
- package/dist/index.d.ts +15 -4
- package/dist/index.js +375 -348
- package/dist/index.js.map +1 -1
- package/dist/kanban-renderer.js +2 -2
- package/dist/{param-editor-I0dKQeeZ.js → param-editor-BsyIOdrP.js} +2 -2
- package/dist/{param-editor-I0dKQeeZ.js.map → param-editor-BsyIOdrP.js.map} +1 -1
- package/dist/{param-editor-field-CBguLs_b.js → param-editor-field-qEWoluWT.js} +39 -28
- package/dist/param-editor-field-qEWoluWT.js.map +1 -0
- package/dist/param-editor.js +2 -2
- package/dist/{prism-pSHJejZx.js → prism-BStPsJSB.js} +28 -16
- package/dist/prism-BStPsJSB.js.map +1 -0
- package/dist/{rich-text-BgDvOEGH.js → rich-text-CQAntEuA.js} +3 -3
- package/dist/{rich-text-BgDvOEGH.js.map → rich-text-CQAntEuA.js.map} +1 -1
- package/dist/rich-text.js +1 -1
- package/dist/{theme-0cbWICbg.js → theme-BH-rGipZ.js} +16 -1
- package/dist/theme-BH-rGipZ.js.map +1 -0
- package/dist/theme.js +1 -1
- package/package.json +2 -2
- package/dist/param-editor-field-CBguLs_b.js.map +0 -1
- package/dist/prism-pSHJejZx.js.map +0 -1
- package/dist/theme-0cbWICbg.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./prism-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./prism-BStPsJSB.js";
|
|
2
2
|
import { n as m, t as h } from "./scroll-area-Cr1lNXAr.js";
|
|
3
3
|
import { a as g, o as _, r as v, s as y, t as b } from "./list-row-De9R2zKU.js";
|
|
4
4
|
import { n as x, r as S, t as C } from "./tree-list-BUfDQz3v.js";
|
|
@@ -7,23 +7,23 @@ import { a as j, i as M, n as N, o as P, r as F, t as I } from "./workspace-badg
|
|
|
7
7
|
import { t as L } from "./empty-state-3mVV_pV-.js";
|
|
8
8
|
import { n as R, t as ee } from "./radio-CiFrDN6O.js";
|
|
9
9
|
import { t as z } from "./browser-storage-C_ipoNwP.js";
|
|
10
|
-
import { a as te, i as B, n as V, r as H, t as ne } from "./theme-
|
|
10
|
+
import { a as te, i as B, n as V, r as H, t as ne } from "./theme-BH-rGipZ.js";
|
|
11
11
|
import { a as U, c as re, i as ie, l as ae, n as oe, o as se, r as ce, s as le, t as ue } from "./theme-preference-pzfuK5cH.js";
|
|
12
12
|
import { AbsoluteCenter as de, Badge as W, Box as G, Breadcrumb as K, Button as q, Center as fe, ChakraProvider as pe, CloseButton as me, Collapsible as he, Dialog as J, Editable as ge, Flex as _e, Grid as ve, HStack as ye, Icon as be, IconButton as xe, Input as Se, InputGroup as Ce, Kbd as we, Menu as Te, Popover as Ee, Portal as De, Skeleton as Oe, Spacer as ke, Spinner as Ae, Stack as je, Text as Y, Textarea as Me, Toast as Ne, Toaster as Pe, chakra as Fe, createSlotRecipeContext as Ie, createToaster as Le, defineSlotRecipe as Re, useSlotRecipe as ze } from "@chakra-ui/react";
|
|
13
13
|
import { c as X } from "react/compiler-runtime";
|
|
14
14
|
import { Fragment as Be, jsx as Z, jsxs as Q } from "react/jsx-runtime";
|
|
15
15
|
import * as Ve from "react";
|
|
16
16
|
import { Component as He, Fragment as Ue, createContext as We, forwardRef as Ge, useContext as Ke, useEffect as qe, useRef as Je, useState as $ } from "react";
|
|
17
|
-
import { ArrowLeft as Ye, ArrowRight as Xe, ArrowUp as Ze, Bell as Qe, Check as $e, ChevronDown as et, ChevronRight as tt, Command as nt,
|
|
18
|
-
import { useVirtualizer as
|
|
19
|
-
import { DndContext as
|
|
20
|
-
import { SortableContext as
|
|
21
|
-
import { CSS as
|
|
22
|
-
import { useStore as
|
|
23
|
-
import { createJSONStorage as
|
|
24
|
-
import { createStore as
|
|
17
|
+
import { ArrowLeft as Ye, ArrowRight as Xe, ArrowUp as Ze, Bell as Qe, Check as $e, ChevronDown as et, ChevronRight as tt, Command as nt, Copy as rt, Folder as it, FolderPlus as at, GripVertical as ot, Home as st, Minus as ct, Option as lt, Paperclip as ut, Plus as dt, Search as ft, SquareArrowOutUpRight as pt, Trash2 as mt, X as ht } from "lucide-react";
|
|
18
|
+
import { useVirtualizer as gt } from "@tanstack/react-virtual";
|
|
19
|
+
import { DndContext as _t, KeyboardSensor as vt, PointerSensor as yt, closestCenter as bt, useSensor as xt, useSensors as St } from "@dnd-kit/core";
|
|
20
|
+
import { SortableContext as Ct, arrayMove as wt, horizontalListSortingStrategy as Tt, sortableKeyboardCoordinates as Et, useSortable as Dt, verticalListSortingStrategy as Ot } from "@dnd-kit/sortable";
|
|
21
|
+
import { CSS as kt } from "@dnd-kit/utilities";
|
|
22
|
+
import { useStore as At } from "zustand";
|
|
23
|
+
import { createJSONStorage as jt, persist as Mt } from "zustand/middleware";
|
|
24
|
+
import { createStore as Nt } from "zustand/vanilla";
|
|
25
25
|
//#region src/components/activity/activity-composer.tsx
|
|
26
|
-
var
|
|
26
|
+
var Pt = (e) => {
|
|
27
27
|
let { actor: t, value: n, defaultValue: r = "", placeholder: i = "Leave a comment...", variant: a = "standalone", minRows: s = a === "standalone" ? 3 : 1, attachLabel: c = "Attach file", submitLabel: l = "Submit comment", actions: u, onAttach: d, onChange: f, onSubmit: p, ...h } = e, [g, _] = $(r), v = n ?? g, y = a === "inline", b = v.trim().length > 0, x = (e) => {
|
|
28
28
|
n === void 0 && _(e), f?.(e);
|
|
29
29
|
};
|
|
@@ -75,7 +75,7 @@ var Nt = (e) => {
|
|
|
75
75
|
type: "button",
|
|
76
76
|
onClick: d,
|
|
77
77
|
children: /* @__PURE__ */ Z(be, {
|
|
78
|
-
as:
|
|
78
|
+
as: ut,
|
|
79
79
|
boxSize: "14px"
|
|
80
80
|
})
|
|
81
81
|
})
|
|
@@ -99,7 +99,7 @@ var Nt = (e) => {
|
|
|
99
99
|
})]
|
|
100
100
|
})
|
|
101
101
|
});
|
|
102
|
-
},
|
|
102
|
+
}, Ft = {
|
|
103
103
|
Root: p,
|
|
104
104
|
Header: a,
|
|
105
105
|
Feed: t,
|
|
@@ -107,15 +107,15 @@ var Nt = (e) => {
|
|
|
107
107
|
Event: n,
|
|
108
108
|
Comment: r,
|
|
109
109
|
Reply: l,
|
|
110
|
-
Composer:
|
|
110
|
+
Composer: Pt,
|
|
111
111
|
Avatar: o
|
|
112
|
-
},
|
|
112
|
+
}, It = 48, Lt = (e) => {
|
|
113
113
|
let t = typeof e.label == "string" ? e.label : "", n = typeof e.secondaryLabel == "string" ? e.secondaryLabel : "";
|
|
114
114
|
return `${t} ${e.searchText ?? ""} ${n}`;
|
|
115
|
-
},
|
|
116
|
-
let r = t.find((t) => t.id === n && t.inputPrefix &&
|
|
115
|
+
}, Rt = (e, t) => e.trimStart().startsWith(t), zt = (e, t = [], n) => t.find((t) => t.inputPrefix && Rt(e, t.inputPrefix))?.id ?? n ?? t.find((e) => !e.inputPrefix)?.id ?? t[0]?.id, Bt = (e, t = [], n) => {
|
|
116
|
+
let r = t.find((t) => t.id === n && t.inputPrefix && Rt(e, t.inputPrefix));
|
|
117
117
|
return r?.inputPrefix ? e.trimStart().slice(r.inputPrefix.length).trim() : e.trim();
|
|
118
|
-
},
|
|
118
|
+
}, Vt = (e, t) => {
|
|
119
119
|
let n = {};
|
|
120
120
|
return e.filter((e) => {
|
|
121
121
|
let r = e.assetType;
|
|
@@ -123,10 +123,10 @@ var Nt = (e) => {
|
|
|
123
123
|
let i = n[r] ?? 0;
|
|
124
124
|
return i >= t ? !1 : (n[r] = i + 1, !0);
|
|
125
125
|
});
|
|
126
|
-
},
|
|
127
|
-
let n = (t.getEffectiveQuery?.(t.query) ?? t.query.trim()).toLowerCase(), r = e.filter((e) => t.mode && e.mode !== t.mode ? !1 : !n ||
|
|
128
|
-
return n || t.defaultAssetLimit === void 0 ? r :
|
|
129
|
-
},
|
|
126
|
+
}, Ht = (e, t) => {
|
|
127
|
+
let n = (t.getEffectiveQuery?.(t.query) ?? t.query.trim()).toLowerCase(), r = e.filter((e) => t.mode && e.mode !== t.mode ? !1 : !n || Lt(e).toLowerCase().includes(n));
|
|
128
|
+
return n || t.defaultAssetLimit === void 0 ? r : Vt(r, t.defaultAssetLimit);
|
|
129
|
+
}, Ut = 24, Wt = 40, Gt = 384, Kt = (e) => ({
|
|
130
130
|
id: e.id,
|
|
131
131
|
label: e.label,
|
|
132
132
|
description: e.description ?? e.secondaryLabel,
|
|
@@ -140,7 +140,7 @@ var Nt = (e) => {
|
|
|
140
140
|
}) : null]
|
|
141
141
|
}) : void 0),
|
|
142
142
|
onActivate: e.onActivate
|
|
143
|
-
}),
|
|
143
|
+
}), qt = (e) => {
|
|
144
144
|
let t = [];
|
|
145
145
|
return e.forEach((n, r) => {
|
|
146
146
|
let i = e[r - 1];
|
|
@@ -155,15 +155,15 @@ var Nt = (e) => {
|
|
|
155
155
|
entryIndex: r
|
|
156
156
|
});
|
|
157
157
|
}), t;
|
|
158
|
-
},
|
|
159
|
-
let { entries: t, activeIndex: n, emptyLabel: r, onHover: i, scrollRef: a } = e, o =
|
|
158
|
+
}, Jt = (e, t) => e.findIndex((e) => e.type === "entry" && e.entryIndex === t), Yt = (e) => {
|
|
159
|
+
let { entries: t, activeIndex: n, emptyLabel: r, onHover: i, scrollRef: a } = e, o = qt(t), s = Jt(o, n), c = gt({
|
|
160
160
|
count: o.length,
|
|
161
161
|
getScrollElement: () => a.current,
|
|
162
|
-
estimateSize: (e) => o[e]?.type === "group" ?
|
|
162
|
+
estimateSize: (e) => o[e]?.type === "group" ? Ut : Wt,
|
|
163
163
|
getItemKey: (e) => o[e]?.id ?? e,
|
|
164
164
|
initialRect: {
|
|
165
165
|
width: 0,
|
|
166
|
-
height:
|
|
166
|
+
height: Gt
|
|
167
167
|
},
|
|
168
168
|
overscan: 6
|
|
169
169
|
});
|
|
@@ -201,7 +201,7 @@ var Nt = (e) => {
|
|
|
201
201
|
children: t.label
|
|
202
202
|
}) : /* @__PURE__ */ Z(b, {
|
|
203
203
|
variant: "full-width",
|
|
204
|
-
...
|
|
204
|
+
...Kt(t.entry),
|
|
205
205
|
isSelected: t.entryIndex === n,
|
|
206
206
|
tabIndex: -1,
|
|
207
207
|
onPointerMove: () => i(t.entryIndex)
|
|
@@ -209,10 +209,10 @@ var Nt = (e) => {
|
|
|
209
209
|
}, e.key) : null;
|
|
210
210
|
})
|
|
211
211
|
});
|
|
212
|
-
},
|
|
212
|
+
}, Xt = (e) => e != null, Zt = (e, t) => e && t ? "space-between" : t ? "flex-end" : "flex-start", Qt = (e) => {
|
|
213
213
|
let t = X(49), { children: n, searchValue: r, searchPlaceholder: i, searchAriaLabel: a, searchIcon: o, searchInputRef: s, searchAutoFocus: c, showCloseButton: l, closeButtonLabel: u, bodyBefore: d, footerStart: f, footerEnd: p, scrollAreaProps: m, onSearchChange: g, onSearchKeyDown: _ } = e, v = a === void 0 ? i : a, y = l !== void 0 && l, b = u === void 0 ? "Close" : u, x;
|
|
214
214
|
if (t[0] !== d || t[1] !== n || t[2] !== b || t[3] !== p || t[4] !== f || t[5] !== g || t[6] !== _ || t[7] !== m || t[8] !== v || t[9] !== c || t[10] !== o || t[11] !== s || t[12] !== i || t[13] !== r || t[14] !== y) {
|
|
215
|
-
let e =
|
|
215
|
+
let e = Xt(f), a = Xt(p), l;
|
|
216
216
|
t[16] === m ? l = t[17] : (l = m ?? {}, t[16] = m, t[17] = l);
|
|
217
217
|
let u, S, C;
|
|
218
218
|
t[18] === l ? (u = t[19], S = t[20], C = t[21]) : ({maxH: S, showHorizontalScrollbar: C, ...u} = l, t[18] = l, t[19] = u, t[20] = S, t[21] = C);
|
|
@@ -270,7 +270,7 @@ var Nt = (e) => {
|
|
|
270
270
|
A,
|
|
271
271
|
M,
|
|
272
272
|
e || a ? /* @__PURE__ */ Q(J.Footer, {
|
|
273
|
-
justifyContent:
|
|
273
|
+
justifyContent: Zt(e, a),
|
|
274
274
|
px: "sm",
|
|
275
275
|
py: "xs",
|
|
276
276
|
borderTopWidth: "1px",
|
|
@@ -286,7 +286,7 @@ var Nt = (e) => {
|
|
|
286
286
|
] }), t[0] = d, t[1] = n, t[2] = b, t[3] = p, t[4] = f, t[5] = g, t[6] = _, t[7] = m, t[8] = v, t[9] = c, t[10] = o, t[11] = s, t[12] = i, t[13] = r, t[14] = y, t[15] = x;
|
|
287
287
|
} else x = t[15];
|
|
288
288
|
return x;
|
|
289
|
-
},
|
|
289
|
+
}, $t = (e, t, n) => typeof e == "function" ? e(t) : e ?? n, en = (e) => {
|
|
290
290
|
let t = X(71), { open: n, entries: r, initialQuery: i, initialActiveIndex: a, mode: o, modes: s, resetKey: c, inputIcon: l, placeholder: u, emptyLabel: d, footerStart: f, footerEnd: p, filterEntries: m, onActiveEntryChange: h, onQueryChange: g, onClose: _, onEscape: v } = e, y = i === void 0 ? "" : i, b = a === void 0 ? 0 : a, x = c === void 0 ? "default" : c, S = d === void 0 ? "No results." : d, [C, w] = $(y), [T, E] = $(b), D = Je(null), O = Je(null), k;
|
|
291
291
|
t[0] === x ? k = t[1] : (k = {
|
|
292
292
|
open: !1,
|
|
@@ -294,17 +294,17 @@ var Nt = (e) => {
|
|
|
294
294
|
}, t[0] = x, t[1] = k);
|
|
295
295
|
let A = Je(k), j, M, N, P, F;
|
|
296
296
|
if (t[2] !== T || t[3] !== r || t[4] !== m || t[5] !== l || t[6] !== o || t[7] !== s || t[8] !== u || t[9] !== C) {
|
|
297
|
-
let e = o ??
|
|
298
|
-
M = m ? m(r, C, e) :
|
|
297
|
+
let e = o ?? zt(C, s);
|
|
298
|
+
M = m ? m(r, C, e) : Ht(r, {
|
|
299
299
|
query: C,
|
|
300
300
|
mode: e,
|
|
301
|
-
getEffectiveQuery: (t) =>
|
|
301
|
+
getEffectiveQuery: (t) => Bt(t, s, e)
|
|
302
302
|
}), j = M[T] ?? null, P = {
|
|
303
303
|
query: C,
|
|
304
304
|
mode: e,
|
|
305
305
|
activeIndex: T,
|
|
306
306
|
entries: M
|
|
307
|
-
}, N =
|
|
307
|
+
}, N = $t(l, P, null), F = $t(u, P, "Search"), t[2] = T, t[3] = r, t[4] = m, t[5] = l, t[6] = o, t[7] = s, t[8] = u, t[9] = C, t[10] = j, t[11] = M, t[12] = N, t[13] = P, t[14] = F;
|
|
308
308
|
} else j = t[10], M = t[11], N = t[12], P = t[13], F = t[14];
|
|
309
309
|
let I = F, L;
|
|
310
310
|
t[15] === g ? L = t[16] : (L = (e) => {
|
|
@@ -377,7 +377,7 @@ var Nt = (e) => {
|
|
|
377
377
|
return;
|
|
378
378
|
}
|
|
379
379
|
if (e.key === "ArrowUp") {
|
|
380
|
-
e.preventDefault(), E(
|
|
380
|
+
e.preventDefault(), E(tn);
|
|
381
381
|
return;
|
|
382
382
|
}
|
|
383
383
|
if (e.key === "Enter") {
|
|
@@ -402,7 +402,7 @@ var Nt = (e) => {
|
|
|
402
402
|
R(e), E(0);
|
|
403
403
|
}, t[52] = R, t[53] = W);
|
|
404
404
|
let G;
|
|
405
|
-
t[54] !== T || t[55] !== S || t[56] !== M ? (G = /* @__PURE__ */ Z(
|
|
405
|
+
t[54] !== T || t[55] !== S || t[56] !== M ? (G = /* @__PURE__ */ Z(Yt, {
|
|
406
406
|
entries: M,
|
|
407
407
|
activeIndex: T,
|
|
408
408
|
emptyLabel: S,
|
|
@@ -421,7 +421,7 @@ var Nt = (e) => {
|
|
|
421
421
|
overflow: "hidden",
|
|
422
422
|
borderWidth: "1px",
|
|
423
423
|
borderColor: "border.subtle",
|
|
424
|
-
children: /* @__PURE__ */ Z(
|
|
424
|
+
children: /* @__PURE__ */ Z(Qt, {
|
|
425
425
|
searchValue: C,
|
|
426
426
|
searchPlaceholder: I,
|
|
427
427
|
searchIcon: N,
|
|
@@ -443,21 +443,21 @@ var Nt = (e) => {
|
|
|
443
443
|
children: [ue, K]
|
|
444
444
|
}), t[67] = n, t[68] = le, t[69] = K, t[70] = q) : q = t[70], q;
|
|
445
445
|
};
|
|
446
|
-
function
|
|
446
|
+
function tn(e) {
|
|
447
447
|
return Math.max(e - 1, 0);
|
|
448
448
|
}
|
|
449
449
|
//#endregion
|
|
450
450
|
//#region src/components/command-palette/palette-shortcut.tsx
|
|
451
|
-
var
|
|
451
|
+
var nn = {
|
|
452
452
|
alt: { label: "Alt" },
|
|
453
453
|
control: { label: "Ctrl" },
|
|
454
454
|
ctrl: { label: "Ctrl" },
|
|
455
455
|
mod: { label: "Ctrl" },
|
|
456
456
|
shift: { label: "Shift" }
|
|
457
|
-
},
|
|
457
|
+
}, rn = {
|
|
458
458
|
alt: {
|
|
459
459
|
label: "Option",
|
|
460
|
-
Icon:
|
|
460
|
+
Icon: lt
|
|
461
461
|
},
|
|
462
462
|
cmd: {
|
|
463
463
|
label: "Command",
|
|
@@ -477,10 +477,10 @@ var tn = {
|
|
|
477
477
|
},
|
|
478
478
|
option: {
|
|
479
479
|
label: "Option",
|
|
480
|
-
Icon:
|
|
480
|
+
Icon: lt
|
|
481
481
|
},
|
|
482
482
|
shift: { label: "Shift" }
|
|
483
|
-
},
|
|
483
|
+
}, an = {
|
|
484
484
|
arrowleft: {
|
|
485
485
|
label: "Arrow Left",
|
|
486
486
|
Icon: Ye
|
|
@@ -489,17 +489,17 @@ var tn = {
|
|
|
489
489
|
label: "Arrow Right",
|
|
490
490
|
Icon: Xe
|
|
491
491
|
}
|
|
492
|
-
},
|
|
492
|
+
}, on = () => {
|
|
493
493
|
if (typeof navigator > "u") return "linux";
|
|
494
494
|
let e = navigator.platform?.toLowerCase() ?? "";
|
|
495
495
|
return e.includes("mac") ? "mac" : e.includes("win") ? "win" : "linux";
|
|
496
|
-
},
|
|
497
|
-
let n = e.toLowerCase(), r = t === "mac" ?
|
|
498
|
-
return
|
|
499
|
-
},
|
|
496
|
+
}, sn = (e, t = on()) => {
|
|
497
|
+
let n = e.toLowerCase(), r = t === "mac" ? rn : nn;
|
|
498
|
+
return an[n] ?? r[n] ?? { label: e };
|
|
499
|
+
}, cn = (e) => e.split("+").map((e) => e.trim()).filter(Boolean), ln = (e) => (Array.isArray(e) ? e.map(cn) : [cn(e)]).map((e) => e.map((e) => sn(e))), un = (e) => {
|
|
500
500
|
let t = X(4), { binding: n } = e, r;
|
|
501
501
|
if (t[0] !== n) {
|
|
502
|
-
let e =
|
|
502
|
+
let e = ln(n);
|
|
503
503
|
r = e.map((t, n) => /* @__PURE__ */ Q(Ue, { children: [t.map((e, n) => /* @__PURE__ */ Q(Ue, { children: [/* @__PURE__ */ Z(we, {
|
|
504
504
|
fontSize: "xs",
|
|
505
505
|
borderRadius: "0",
|
|
@@ -511,17 +511,17 @@ var tn = {
|
|
|
511
511
|
size: 12,
|
|
512
512
|
"aria-hidden": "true"
|
|
513
513
|
}) : e.label
|
|
514
|
-
}), n < t.length - 1 ? " " : null] }, `${e.label}-${n}`)), n < e.length - 1 ? " then " : null] }, `${t.map(
|
|
514
|
+
}), n < t.length - 1 ? " " : null] }, `${e.label}-${n}`)), n < e.length - 1 ? " then " : null] }, `${t.map(dn).join("+")}-${n}`)), t[0] = n, t[1] = r;
|
|
515
515
|
} else r = t[1];
|
|
516
516
|
let i;
|
|
517
517
|
return t[2] === r ? i = t[3] : (i = /* @__PURE__ */ Z(Be, { children: r }), t[2] = r, t[3] = i), i;
|
|
518
518
|
};
|
|
519
|
-
function
|
|
519
|
+
function dn(e) {
|
|
520
520
|
return e.label;
|
|
521
521
|
}
|
|
522
522
|
//#endregion
|
|
523
523
|
//#region src/components/layout/horizontal-menu-stack.tsx
|
|
524
|
-
function
|
|
524
|
+
function fn(e) {
|
|
525
525
|
let t = X(14), n, r, i, a, o, s;
|
|
526
526
|
t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4], o = t[5], s = t[6]) : ({children: n, h: i, px: a, py: o, borderBottomWidth: s, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a, t[5] = o, t[6] = s);
|
|
527
527
|
let c = i === void 0 ? "41px" : i, l = a === void 0 ? "xs" : a, u = o === void 0 ? "xs" : o, d = s === void 0 ? "1px" : s, f;
|
|
@@ -539,7 +539,7 @@ function dn(e) {
|
|
|
539
539
|
}
|
|
540
540
|
//#endregion
|
|
541
541
|
//#region src/components/layout/item-section.tsx
|
|
542
|
-
var
|
|
542
|
+
var pn = (e) => {
|
|
543
543
|
let t = X(17), { children: n, title: r, defaultOpen: i, action: a } = e, o = i === void 0 || i, s;
|
|
544
544
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (s = { background: "bg.hover" }, t[0] = s) : s = t[0];
|
|
545
545
|
let c;
|
|
@@ -570,7 +570,7 @@ var fn = (e) => {
|
|
|
570
570
|
let d;
|
|
571
571
|
t[6] === a ? d = t[7] : (d = a && /* @__PURE__ */ Z(G, {
|
|
572
572
|
marginLeft: "auto",
|
|
573
|
-
onClick:
|
|
573
|
+
onClick: mn,
|
|
574
574
|
children: a
|
|
575
575
|
}), t[6] = a, t[7] = d);
|
|
576
576
|
let f;
|
|
@@ -584,12 +584,12 @@ var fn = (e) => {
|
|
|
584
584
|
children: [f, p]
|
|
585
585
|
}), t[13] = o, t[14] = f, t[15] = p, t[16] = m) : m = t[16], m;
|
|
586
586
|
};
|
|
587
|
-
function
|
|
587
|
+
function mn(e) {
|
|
588
588
|
return e.stopPropagation();
|
|
589
589
|
}
|
|
590
590
|
//#endregion
|
|
591
591
|
//#region src/components/layout/panel-header.constants.ts
|
|
592
|
-
var
|
|
592
|
+
var hn = "2.5rem", gn = "2xs", _n = "sm", vn = (e) => e === "urgent" ? "red" : e === "high" ? "orange" : e === "low" ? "gray" : "blue", yn = (e) => e !== "normal", bn = (e) => [
|
|
593
593
|
e.title,
|
|
594
594
|
e.body,
|
|
595
595
|
e.kind,
|
|
@@ -599,10 +599,10 @@ var mn = "2.5rem", hn = "2xs", gn = "sm", _n = (e) => e === "urgent" ? "red" : e
|
|
|
599
599
|
e.targetLabel,
|
|
600
600
|
e.searchText,
|
|
601
601
|
...(e.actions ?? []).map((e) => e.label)
|
|
602
|
-
].filter(Boolean).join(" ").toLowerCase(),
|
|
602
|
+
].filter(Boolean).join(" ").toLowerCase(), xn = (e, t) => {
|
|
603
603
|
let n = t.trim().toLowerCase();
|
|
604
|
-
return n ? e.filter((e) =>
|
|
605
|
-
},
|
|
604
|
+
return n ? e.filter((e) => bn(e).includes(n)) : e;
|
|
605
|
+
}, Sn = (e) => {
|
|
606
606
|
let t = e.filter((e) => e.kind === "blocked"), n = e.filter((e) => e.kind !== "blocked" && (e.priority === "urgent" || e.priority === "high")), r = e.filter((e) => e.kind !== "blocked" && (e.priority === "normal" || e.priority === "low"));
|
|
607
607
|
return [
|
|
608
608
|
{
|
|
@@ -621,25 +621,25 @@ var mn = "2.5rem", hn = "2xs", gn = "sm", _n = (e) => e === "urgent" ? "red" : e
|
|
|
621
621
|
items: r
|
|
622
622
|
}
|
|
623
623
|
].filter((e) => e.items.length > 0);
|
|
624
|
-
},
|
|
624
|
+
}, Cn = (e) => Sn(e).flatMap((e) => e.items), wn = (e) => [
|
|
625
625
|
e.body,
|
|
626
626
|
e.targetLabel,
|
|
627
627
|
e.sourceLabel,
|
|
628
628
|
e.timeLabel
|
|
629
|
-
].filter(Boolean).join(" · "),
|
|
629
|
+
].filter(Boolean).join(" · "), Tn = (e, t) => {
|
|
630
630
|
let n = [];
|
|
631
631
|
return t.onDismiss && n.push({
|
|
632
632
|
id: "dismiss",
|
|
633
633
|
label: "Dismiss",
|
|
634
|
-
icon: /* @__PURE__ */ Z(
|
|
634
|
+
icon: /* @__PURE__ */ Z(ht, { size: 14 }),
|
|
635
635
|
tooltip: "Dismiss",
|
|
636
636
|
onAction: () => t.onDismiss?.(e)
|
|
637
637
|
}), n;
|
|
638
|
-
},
|
|
638
|
+
}, En = (e) => {
|
|
639
639
|
let t = X(15), { actions: n, item: r, onRunAction: i } = e, a;
|
|
640
|
-
t[0] === r.priority ? a = t[1] : (a =
|
|
640
|
+
t[0] === r.priority ? a = t[1] : (a = yn(r.priority) ? /* @__PURE__ */ Z(W, {
|
|
641
641
|
size: "sm",
|
|
642
|
-
colorPalette:
|
|
642
|
+
colorPalette: vn(r.priority),
|
|
643
643
|
textTransform: "capitalize",
|
|
644
644
|
flexShrink: 0,
|
|
645
645
|
children: r.priority
|
|
@@ -681,8 +681,8 @@ var mn = "2.5rem", hn = "2xs", gn = "sm", _n = (e) => e === "urgent" ? "red" : e
|
|
|
681
681
|
s
|
|
682
682
|
]
|
|
683
683
|
}), t[11] = a, t[12] = o, t[13] = s, t[14] = c) : c = t[14], c;
|
|
684
|
-
},
|
|
685
|
-
let { activeIndex: t, items: n, onActivateItem: r, onActiveIndexChange: i, onRunAction: a } = e, o =
|
|
684
|
+
}, Dn = (e) => {
|
|
685
|
+
let { activeIndex: t, items: n, onActivateItem: r, onActiveIndexChange: i, onRunAction: a } = e, o = Sn(n), s = 0;
|
|
686
686
|
return /* @__PURE__ */ Z(je, {
|
|
687
687
|
gap: "2xs",
|
|
688
688
|
py: "xs",
|
|
@@ -699,20 +699,20 @@ var mn = "2.5rem", hn = "2xs", gn = "sm", _n = (e) => e === "urgent" ? "red" : e
|
|
|
699
699
|
return s += 1, /* @__PURE__ */ Z(b, {
|
|
700
700
|
id: n.id,
|
|
701
701
|
label: n.title,
|
|
702
|
-
description:
|
|
702
|
+
description: wn(n),
|
|
703
703
|
icon: /* @__PURE__ */ Z(be, {
|
|
704
704
|
as: Qe,
|
|
705
705
|
boxSize: "14px"
|
|
706
706
|
}),
|
|
707
|
-
iconColor: `${
|
|
707
|
+
iconColor: `${vn(n.priority)}.500`,
|
|
708
708
|
variant: "compact",
|
|
709
709
|
isSelected: o === t,
|
|
710
|
-
endContent: /* @__PURE__ */ Z(
|
|
710
|
+
endContent: /* @__PURE__ */ Z(En, {
|
|
711
711
|
item: n,
|
|
712
712
|
actions: n.actions ?? [],
|
|
713
713
|
onRunAction: a
|
|
714
714
|
}),
|
|
715
|
-
actions:
|
|
715
|
+
actions: Tn(n, e),
|
|
716
716
|
tabIndex: -1,
|
|
717
717
|
onActivate: () => r?.(n),
|
|
718
718
|
onPointerMove: () => i(o)
|
|
@@ -720,7 +720,7 @@ var mn = "2.5rem", hn = "2xs", gn = "sm", _n = (e) => e === "urgent" ? "red" : e
|
|
|
720
720
|
})]
|
|
721
721
|
}, n.id))
|
|
722
722
|
});
|
|
723
|
-
},
|
|
723
|
+
}, On = () => {
|
|
724
724
|
let e = X(1), t;
|
|
725
725
|
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ Z(je, {
|
|
726
726
|
gap: "2",
|
|
@@ -730,11 +730,11 @@ var mn = "2.5rem", hn = "2xs", gn = "sm", _n = (e) => e === "urgent" ? "red" : e
|
|
|
730
730
|
1,
|
|
731
731
|
2,
|
|
732
732
|
3
|
|
733
|
-
].map(
|
|
733
|
+
].map(An)
|
|
734
734
|
}), e[0] = t) : t = e[0], t;
|
|
735
|
-
},
|
|
735
|
+
}, kn = (e) => {
|
|
736
736
|
let t = X(37), { autoFocus: n, emptyLabel: r, error: i, footerEnd: a, footerStart: o, items: s, loading: l, onActivateItem: u, onEscape: d, onQueryChange: f, query: p } = e, m = n !== void 0 && n, h = r === void 0 ? "No notifications." : r, g = l !== void 0 && l, [_, v] = $(""), [y, b] = $(0), x = Je(null), S = p ?? _, C, w;
|
|
737
|
-
t[0] !== S || t[1] !== s ? (C =
|
|
737
|
+
t[0] !== S || t[1] !== s ? (C = xn(s, S), w = Cn(C), t[0] = S, t[1] = s, t[2] = C, t[3] = w) : (C = t[2], w = t[3]);
|
|
738
738
|
let T = w, E = T[y] ?? null, D, O;
|
|
739
739
|
t[4] === m ? (D = t[5], O = t[6]) : (D = () => {
|
|
740
740
|
if (!m) return;
|
|
@@ -756,7 +756,7 @@ var mn = "2.5rem", hn = "2xs", gn = "sm", _n = (e) => e === "urgent" ? "red" : e
|
|
|
756
756
|
return;
|
|
757
757
|
}
|
|
758
758
|
if (e.key === "ArrowUp") {
|
|
759
|
-
e.preventDefault(), b(
|
|
759
|
+
e.preventDefault(), b(jn);
|
|
760
760
|
return;
|
|
761
761
|
}
|
|
762
762
|
if (e.key === "Enter") {
|
|
@@ -772,7 +772,7 @@ var mn = "2.5rem", hn = "2xs", gn = "sm", _n = (e) => e === "urgent" ? "red" : e
|
|
|
772
772
|
}
|
|
773
773
|
}, t[13] = E, t[14] = S, t[15] = T.length, t[16] = u, t[17] = d, t[18] = M, t[19] = N) : N = t[19];
|
|
774
774
|
let P = N, F;
|
|
775
|
-
t[20] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ Z(
|
|
775
|
+
t[20] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ Z(ft, { size: 14 }), t[20] = F) : F = t[20];
|
|
776
776
|
let I;
|
|
777
777
|
t[21] === Symbol.for("react.memo_cache_sentinel") ? (I = {
|
|
778
778
|
maxH: "24rem",
|
|
@@ -788,20 +788,20 @@ var mn = "2.5rem", hn = "2xs", gn = "sm", _n = (e) => e === "urgent" ? "red" : e
|
|
|
788
788
|
size: "sm",
|
|
789
789
|
children: i
|
|
790
790
|
})
|
|
791
|
-
}) : g ? /* @__PURE__ */ Z(
|
|
791
|
+
}) : g ? /* @__PURE__ */ Z(On, {}) : C.length === 0 ? /* @__PURE__ */ Z(Y, {
|
|
792
792
|
textStyle: "paragraph/S/regular",
|
|
793
793
|
color: "fg.muted",
|
|
794
794
|
px: "sm",
|
|
795
795
|
py: "md",
|
|
796
796
|
children: h
|
|
797
|
-
}) : /* @__PURE__ */ Z(
|
|
797
|
+
}) : /* @__PURE__ */ Z(Dn, {
|
|
798
798
|
...e,
|
|
799
799
|
items: C,
|
|
800
800
|
activeIndex: y,
|
|
801
801
|
onActiveIndexChange: b
|
|
802
802
|
}), t[22] = y, t[23] = h, t[24] = i, t[25] = C, t[26] = g, t[27] = e, t[28] = L) : L = t[28];
|
|
803
803
|
let R;
|
|
804
|
-
return t[29] !== S || t[30] !== m || t[31] !== a || t[32] !== o || t[33] !== P || t[34] !== L || t[35] !== M ? (R = /* @__PURE__ */ Z(
|
|
804
|
+
return t[29] !== S || t[30] !== m || t[31] !== a || t[32] !== o || t[33] !== P || t[34] !== L || t[35] !== M ? (R = /* @__PURE__ */ Z(Qt, {
|
|
805
805
|
searchValue: S,
|
|
806
806
|
searchPlaceholder: "Search notifications",
|
|
807
807
|
searchIcon: F,
|
|
@@ -815,7 +815,7 @@ var mn = "2.5rem", hn = "2xs", gn = "sm", _n = (e) => e === "urgent" ? "red" : e
|
|
|
815
815
|
children: L
|
|
816
816
|
}), t[29] = S, t[30] = m, t[31] = a, t[32] = o, t[33] = P, t[34] = L, t[35] = M, t[36] = R) : R = t[36], R;
|
|
817
817
|
};
|
|
818
|
-
function
|
|
818
|
+
function An(e) {
|
|
819
819
|
return /* @__PURE__ */ Q(je, {
|
|
820
820
|
gap: "2xs",
|
|
821
821
|
children: [/* @__PURE__ */ Z(Oe, {
|
|
@@ -829,12 +829,12 @@ function kn(e) {
|
|
|
829
829
|
})]
|
|
830
830
|
}, e);
|
|
831
831
|
}
|
|
832
|
-
function
|
|
832
|
+
function jn(e) {
|
|
833
833
|
return Math.max(e - 1, 0);
|
|
834
834
|
}
|
|
835
835
|
//#endregion
|
|
836
836
|
//#region src/components/overlays/attached-menu.tsx
|
|
837
|
-
var
|
|
837
|
+
var Mn = (e) => {
|
|
838
838
|
let t = X(6), n, r;
|
|
839
839
|
t[0] === e ? (n = t[1], r = t[2]) : ({children: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
840
840
|
let i;
|
|
@@ -850,10 +850,10 @@ var jn = (e) => {
|
|
|
850
850
|
...r,
|
|
851
851
|
children: n
|
|
852
852
|
}), t[3] = n, t[4] = r, t[5] = i) : i = t[5], i;
|
|
853
|
-
},
|
|
853
|
+
}, Nn = "20rem", Pn = (e) => {
|
|
854
854
|
let t = X(15), n, r, i, a, o, s;
|
|
855
855
|
t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4], o = t[5], s = t[6]) : ({children: n, header: r, width: o, minWidth: i, resizable: s, ...a} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a, t[5] = o, t[6] = s);
|
|
856
|
-
let c = o === void 0 ? "28rem" : o, l = s !== void 0 && s, u = i ?? (l ?
|
|
856
|
+
let c = o === void 0 ? "28rem" : o, l = s !== void 0 && s, u = i ?? (l ? Nn : c), d = l ? "full" : c, f;
|
|
857
857
|
t[7] === n ? f = t[8] : (f = /* @__PURE__ */ Z(_e, {
|
|
858
858
|
flex: "1",
|
|
859
859
|
minH: 0,
|
|
@@ -873,7 +873,7 @@ var jn = (e) => {
|
|
|
873
873
|
...a,
|
|
874
874
|
children: [r, f]
|
|
875
875
|
}), t[9] = r, t[10] = u, t[11] = d, t[12] = a, t[13] = f, t[14] = p) : p = t[14], p;
|
|
876
|
-
},
|
|
876
|
+
}, Fn = Ge(function(e, t) {
|
|
877
877
|
let n = X(19), r, i, a, o, s;
|
|
878
878
|
n[0] === e ? (r = n[1], i = n[2], a = n[3], o = n[4], s = n[5]) : ({children: r, containerProps: i, isOpen: o, tooltip: s, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = o, n[5] = s);
|
|
879
879
|
let c = o !== void 0 && o ? "border.accent" : "border", l, u;
|
|
@@ -905,7 +905,7 @@ var jn = (e) => {
|
|
|
905
905
|
...i,
|
|
906
906
|
children: p
|
|
907
907
|
}), n[16] = i, n[17] = p, n[18] = h) : h = n[18], h;
|
|
908
|
-
}),
|
|
908
|
+
}), In = Ge(function(e, t) {
|
|
909
909
|
let n = X(28), { isOpen: r, title: i, menu: a, onClose: o, closeLabel: s, onPopOut: c, popOutLabel: l, width: u, height: d, containerProps: f, testId: p, "aria-label": h, children: _ } = e, v = r !== void 0 && r, y = u === void 0 ? "28rem" : u, b = d === void 0 ? "38rem" : d;
|
|
910
910
|
if (!v) return null;
|
|
911
911
|
let x = h ?? i, S;
|
|
@@ -924,7 +924,7 @@ var jn = (e) => {
|
|
|
924
924
|
variant: "ghost",
|
|
925
925
|
"aria-label": l,
|
|
926
926
|
onClick: c,
|
|
927
|
-
children: /* @__PURE__ */ Z(
|
|
927
|
+
children: /* @__PURE__ */ Z(pt, { size: 16 })
|
|
928
928
|
})
|
|
929
929
|
}) : null, n[3] = c, n[4] = l, n[5] = w) : w = n[5];
|
|
930
930
|
let T;
|
|
@@ -935,7 +935,7 @@ var jn = (e) => {
|
|
|
935
935
|
variant: "ghost",
|
|
936
936
|
"aria-label": s,
|
|
937
937
|
onClick: o,
|
|
938
|
-
children: /* @__PURE__ */ Z(
|
|
938
|
+
children: /* @__PURE__ */ Z(ct, { size: 16 })
|
|
939
939
|
})
|
|
940
940
|
}) : null, n[6] = s, n[7] = o, n[8] = T) : T = n[8];
|
|
941
941
|
let E;
|
|
@@ -991,7 +991,7 @@ var jn = (e) => {
|
|
|
991
991
|
...f,
|
|
992
992
|
children: k
|
|
993
993
|
}) }), n[20] = f, n[21] = b, n[22] = t, n[23] = k, n[24] = x, n[25] = p, n[26] = y, n[27] = A) : A = n[27], A;
|
|
994
|
-
}),
|
|
994
|
+
}), Ln = (e) => {
|
|
995
995
|
let [t, n] = $(!1), { headline: r, buttonText: i, notificationText: a, onDelete: o, open: s, onClose: c, children: l } = e;
|
|
996
996
|
return /* @__PURE__ */ Z(J.Root, {
|
|
997
997
|
open: s,
|
|
@@ -1033,7 +1033,7 @@ var jn = (e) => {
|
|
|
1033
1033
|
}) })
|
|
1034
1034
|
] }) })] })
|
|
1035
1035
|
});
|
|
1036
|
-
},
|
|
1036
|
+
}, Rn = (e) => {
|
|
1037
1037
|
let { currentPath: t, entries: n, isLoading: r, isOpening: i, error: a, onClose: o, onSelect: s, onNavigate: c, onCreateFolder: l } = e, u = ze({ key: "folderPicker" })({}), [d, f] = $(t), [p, m] = $(""), [g, _] = $(!1), [v, y] = $(""), [x, S] = $(!1);
|
|
1038
1038
|
qe(() => {
|
|
1039
1039
|
f(t), m("");
|
|
@@ -1066,7 +1066,7 @@ var jn = (e) => {
|
|
|
1066
1066
|
"aria-label": "Go to home directory",
|
|
1067
1067
|
disabled: r || i,
|
|
1068
1068
|
onClick: () => c("~"),
|
|
1069
|
-
children: /* @__PURE__ */ Z(
|
|
1069
|
+
children: /* @__PURE__ */ Z(st, {})
|
|
1070
1070
|
}),
|
|
1071
1071
|
/* @__PURE__ */ Z(q, {
|
|
1072
1072
|
size: "sm",
|
|
@@ -1095,13 +1095,13 @@ var jn = (e) => {
|
|
|
1095
1095
|
size: "sm",
|
|
1096
1096
|
disabled: !t || r || i,
|
|
1097
1097
|
onClick: () => _(!0),
|
|
1098
|
-
children: [/* @__PURE__ */ Z(
|
|
1098
|
+
children: [/* @__PURE__ */ Z(at, {}), "New folder"]
|
|
1099
1099
|
})
|
|
1100
1100
|
]
|
|
1101
1101
|
}),
|
|
1102
1102
|
!g && /* @__PURE__ */ Z(Ce, {
|
|
1103
1103
|
css: u.filter,
|
|
1104
|
-
startElement: /* @__PURE__ */ Z(
|
|
1104
|
+
startElement: /* @__PURE__ */ Z(ft, {}),
|
|
1105
1105
|
children: /* @__PURE__ */ Z(Se, {
|
|
1106
1106
|
size: "sm",
|
|
1107
1107
|
"aria-label": "Filter folders",
|
|
@@ -1128,7 +1128,7 @@ var jn = (e) => {
|
|
|
1128
1128
|
disabled: !v.trim(),
|
|
1129
1129
|
loading: x,
|
|
1130
1130
|
onClick: k,
|
|
1131
|
-
children: [/* @__PURE__ */ Z(
|
|
1131
|
+
children: [/* @__PURE__ */ Z(at, {}), "Create folder"]
|
|
1132
1132
|
})]
|
|
1133
1133
|
}),
|
|
1134
1134
|
a && /* @__PURE__ */ Z(Y, {
|
|
@@ -1151,7 +1151,7 @@ var jn = (e) => {
|
|
|
1151
1151
|
}) : C.map((e) => /* @__PURE__ */ Z(b, {
|
|
1152
1152
|
id: e.path,
|
|
1153
1153
|
label: e.name,
|
|
1154
|
-
icon: /* @__PURE__ */ Z(
|
|
1154
|
+
icon: /* @__PURE__ */ Z(it, {}),
|
|
1155
1155
|
disabled: r || i,
|
|
1156
1156
|
onActivate: () => c(e.path)
|
|
1157
1157
|
}, e.path))
|
|
@@ -1177,7 +1177,7 @@ var jn = (e) => {
|
|
|
1177
1177
|
})]
|
|
1178
1178
|
})
|
|
1179
1179
|
] });
|
|
1180
|
-
},
|
|
1180
|
+
}, zn = (e) => {
|
|
1181
1181
|
let t = X(15), n;
|
|
1182
1182
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = { key: "folderPicker" }, t[0] = n) : n = t[0];
|
|
1183
1183
|
let r = ze(n), i;
|
|
@@ -1189,7 +1189,7 @@ var jn = (e) => {
|
|
|
1189
1189
|
let s;
|
|
1190
1190
|
t[5] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ Z(J.Backdrop, {}), t[5] = s) : s = t[5];
|
|
1191
1191
|
let c;
|
|
1192
|
-
t[6] === e ? c = t[7] : (c = /* @__PURE__ */ Z(
|
|
1192
|
+
t[6] === e ? c = t[7] : (c = /* @__PURE__ */ Z(Rn, { ...e }), t[6] = e, t[7] = c);
|
|
1193
1193
|
let l;
|
|
1194
1194
|
t[8] !== a.content || t[9] !== c ? (l = /* @__PURE__ */ Z(J.Positioner, { children: /* @__PURE__ */ Z(J.Content, {
|
|
1195
1195
|
css: a.content,
|
|
@@ -1206,7 +1206,7 @@ var jn = (e) => {
|
|
|
1206
1206
|
unmountOnExit: !0,
|
|
1207
1207
|
children: [s, l]
|
|
1208
1208
|
}), t[11] = e.open, t[12] = o, t[13] = l, t[14] = u) : u = t[14], u;
|
|
1209
|
-
},
|
|
1209
|
+
}, Bn = {
|
|
1210
1210
|
alignItems: "center",
|
|
1211
1211
|
display: "inline-flex",
|
|
1212
1212
|
gap: "2xs",
|
|
@@ -1219,18 +1219,18 @@ var jn = (e) => {
|
|
|
1219
1219
|
_active: { outline: "none" },
|
|
1220
1220
|
_focus: { outline: "none" },
|
|
1221
1221
|
_focusVisible: { outline: "none" }
|
|
1222
|
-
},
|
|
1223
|
-
...
|
|
1222
|
+
}, Vn = {
|
|
1223
|
+
...Bn,
|
|
1224
1224
|
color: "fg",
|
|
1225
1225
|
cursor: "default",
|
|
1226
1226
|
textDecoration: "none",
|
|
1227
1227
|
_hover: { textDecoration: "none" }
|
|
1228
|
-
},
|
|
1228
|
+
}, Hn = (e) => !!(e.url || e.onClick), Un = (e) => {
|
|
1229
1229
|
let t = X(14), { item: n, isCurrent: r, linkComponent: i } = e;
|
|
1230
|
-
if (r && !
|
|
1230
|
+
if (r && !Hn(n)) {
|
|
1231
1231
|
let e;
|
|
1232
1232
|
return t[0] === n.title ? e = t[1] : (e = /* @__PURE__ */ Z(K.CurrentLink, {
|
|
1233
|
-
...
|
|
1233
|
+
...Vn,
|
|
1234
1234
|
children: n.title
|
|
1235
1235
|
}), t[0] = n.title, t[1] = e), e;
|
|
1236
1236
|
}
|
|
@@ -1238,7 +1238,7 @@ var jn = (e) => {
|
|
|
1238
1238
|
let e;
|
|
1239
1239
|
return t[2] !== i || t[3] !== n.title || t[4] !== n.url ? (e = /* @__PURE__ */ Z(K.Link, {
|
|
1240
1240
|
asChild: !0,
|
|
1241
|
-
...
|
|
1241
|
+
...Bn,
|
|
1242
1242
|
children: /* @__PURE__ */ Z(i, {
|
|
1243
1243
|
to: n.url,
|
|
1244
1244
|
children: n.title
|
|
@@ -1249,7 +1249,7 @@ var jn = (e) => {
|
|
|
1249
1249
|
let e;
|
|
1250
1250
|
return t[6] !== n.title || t[7] !== n.url ? (e = /* @__PURE__ */ Z(K.Link, {
|
|
1251
1251
|
href: n.url,
|
|
1252
|
-
...
|
|
1252
|
+
...Bn,
|
|
1253
1253
|
children: n.title
|
|
1254
1254
|
}), t[6] = n.title, t[7] = n.url, t[8] = e) : e = t[8], e;
|
|
1255
1255
|
}
|
|
@@ -1259,19 +1259,19 @@ var jn = (e) => {
|
|
|
1259
1259
|
as: "button",
|
|
1260
1260
|
type: "button",
|
|
1261
1261
|
onClick: n.onClick,
|
|
1262
|
-
...
|
|
1262
|
+
...Bn,
|
|
1263
1263
|
children: n.title
|
|
1264
1264
|
}), t[9] = n.onClick, t[10] = n.title, t[11] = e) : e = t[11], e;
|
|
1265
1265
|
}
|
|
1266
1266
|
let a;
|
|
1267
1267
|
return t[12] === n.title ? a = t[13] : (a = /* @__PURE__ */ Z(K.Link, {
|
|
1268
1268
|
as: "span",
|
|
1269
|
-
...
|
|
1269
|
+
...Vn,
|
|
1270
1270
|
children: n.title
|
|
1271
1271
|
}), t[12] = n.title, t[13] = a), a;
|
|
1272
|
-
},
|
|
1272
|
+
}, Wn = (e) => {
|
|
1273
1273
|
let t = X(6), { item: n } = e, r;
|
|
1274
|
-
t[0] === e ? r = t[1] : (r = /* @__PURE__ */ Z(
|
|
1274
|
+
t[0] === e ? r = t[1] : (r = /* @__PURE__ */ Z(Un, { ...e }), t[0] = e, t[1] = r);
|
|
1275
1275
|
let i = r;
|
|
1276
1276
|
if (!n.contextMenuActions?.length) return i;
|
|
1277
1277
|
let a;
|
|
@@ -1282,7 +1282,7 @@ var jn = (e) => {
|
|
|
1282
1282
|
positioning: a,
|
|
1283
1283
|
children: i
|
|
1284
1284
|
}), t[3] = i, t[4] = n.contextMenuActions, t[5] = o) : o = t[5], o;
|
|
1285
|
-
},
|
|
1285
|
+
}, Gn = (e) => {
|
|
1286
1286
|
let t = X(3), { separator: n } = e;
|
|
1287
1287
|
if (n === void 0) {
|
|
1288
1288
|
let e;
|
|
@@ -1293,7 +1293,7 @@ var jn = (e) => {
|
|
|
1293
1293
|
flexShrink: 0,
|
|
1294
1294
|
children: n
|
|
1295
1295
|
}), t[1] = n, t[2] = r), r;
|
|
1296
|
-
},
|
|
1296
|
+
}, Kn = Ve.forwardRef(function(e, t) {
|
|
1297
1297
|
let n = X(21), r, i, a, o, s;
|
|
1298
1298
|
n[0] === e ? (r = n[1], i = n[2], a = n[3], o = n[4], s = n[5]) : ({separator: o, separatorGap: s, items: i, linkComponent: r, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = o, n[5] = s);
|
|
1299
1299
|
let c;
|
|
@@ -1305,12 +1305,12 @@ var jn = (e) => {
|
|
|
1305
1305
|
minW: "0",
|
|
1306
1306
|
flexShrink: +!!n,
|
|
1307
1307
|
overflow: "hidden",
|
|
1308
|
-
children: /* @__PURE__ */ Z(
|
|
1308
|
+
children: /* @__PURE__ */ Z(Wn, {
|
|
1309
1309
|
item: e,
|
|
1310
1310
|
isCurrent: n,
|
|
1311
1311
|
linkComponent: r
|
|
1312
1312
|
})
|
|
1313
|
-
}), n ? null : /* @__PURE__ */ Z(
|
|
1313
|
+
}), n ? null : /* @__PURE__ */ Z(Gn, { separator: o })] }, t);
|
|
1314
1314
|
}, n[10] = r, n[11] = i.length, n[12] = o, n[13] = e) : e = n[13], c = i.map(e), n[6] = r, n[7] = i, n[8] = o, n[9] = c;
|
|
1315
1315
|
} else c = n[9];
|
|
1316
1316
|
let l;
|
|
@@ -1328,11 +1328,11 @@ var jn = (e) => {
|
|
|
1328
1328
|
...a,
|
|
1329
1329
|
children: l
|
|
1330
1330
|
}), n[17] = t, n[18] = a, n[19] = l, n[20] = u) : u = n[20], u;
|
|
1331
|
-
}),
|
|
1331
|
+
}), qn = "url(\"data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.2' fillRule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E\")", Jn = (e) => {
|
|
1332
1332
|
let t = X(3), n;
|
|
1333
1333
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
1334
1334
|
backgroundClip: "padding-box",
|
|
1335
|
-
backgroundImage:
|
|
1335
|
+
backgroundImage: qn,
|
|
1336
1336
|
display: "flex",
|
|
1337
1337
|
width: "100%"
|
|
1338
1338
|
}, t[0] = n) : n = t[0];
|
|
@@ -1341,7 +1341,7 @@ var jn = (e) => {
|
|
|
1341
1341
|
...e,
|
|
1342
1342
|
css: n
|
|
1343
1343
|
}), t[1] = e, t[2] = r), r;
|
|
1344
|
-
},
|
|
1344
|
+
}, Yn = (e) => {
|
|
1345
1345
|
let t = X(2), n;
|
|
1346
1346
|
return t[0] === e ? n = t[1] : (n = /* @__PURE__ */ Z(G, {
|
|
1347
1347
|
p: "2",
|
|
@@ -1353,7 +1353,34 @@ var jn = (e) => {
|
|
|
1353
1353
|
...e
|
|
1354
1354
|
})
|
|
1355
1355
|
}), t[0] = e, t[1] = n), n;
|
|
1356
|
-
},
|
|
1356
|
+
}, Xn = (e) => {
|
|
1357
|
+
let { text: t, label: n = "Copy", onCopy: r, onCopyError: i, disabled: a, ...o } = e, [s, c] = $("ready"), l = Je(null);
|
|
1358
|
+
qe(() => () => {
|
|
1359
|
+
l.current && clearTimeout(l.current);
|
|
1360
|
+
}, []);
|
|
1361
|
+
let u = async () => {
|
|
1362
|
+
try {
|
|
1363
|
+
await navigator.clipboard.writeText(t), c("copied"), r?.();
|
|
1364
|
+
} catch (e) {
|
|
1365
|
+
c("failed"), i?.(e);
|
|
1366
|
+
}
|
|
1367
|
+
l.current && clearTimeout(l.current), l.current = setTimeout(() => c("ready"), 1500);
|
|
1368
|
+
}, d = n;
|
|
1369
|
+
return s === "copied" && (d = "Copied"), s === "failed" && (d = "Copy failed. Try again."), /* @__PURE__ */ Z(m, {
|
|
1370
|
+
content: d,
|
|
1371
|
+
openDelay: 300,
|
|
1372
|
+
closeDelay: 150,
|
|
1373
|
+
children: /* @__PURE__ */ Z(xe, {
|
|
1374
|
+
variant: "ghost",
|
|
1375
|
+
size: "sm",
|
|
1376
|
+
...o,
|
|
1377
|
+
"aria-label": d,
|
|
1378
|
+
disabled: a || !t,
|
|
1379
|
+
onClick: u,
|
|
1380
|
+
children: Z(s === "copied" ? $e : rt, {})
|
|
1381
|
+
})
|
|
1382
|
+
});
|
|
1383
|
+
}, Zn = class extends He {
|
|
1357
1384
|
state = { error: null };
|
|
1358
1385
|
static getDerivedStateFromError(e) {
|
|
1359
1386
|
return { error: e };
|
|
@@ -1366,13 +1393,13 @@ var jn = (e) => {
|
|
|
1366
1393
|
};
|
|
1367
1394
|
render() {
|
|
1368
1395
|
let { children: e, fallback: t, label: n } = this.props, { error: r } = this.state;
|
|
1369
|
-
return r ? t || /* @__PURE__ */ Z(
|
|
1396
|
+
return r ? t || /* @__PURE__ */ Z(Qn, {
|
|
1370
1397
|
error: r,
|
|
1371
1398
|
label: n,
|
|
1372
1399
|
onReset: this.handleReset
|
|
1373
1400
|
}) : e;
|
|
1374
1401
|
}
|
|
1375
|
-
},
|
|
1402
|
+
}, Qn = (e) => {
|
|
1376
1403
|
let t = X(12), { error: n, label: r, onReset: i } = e, a = r ?? "Something went wrong", o;
|
|
1377
1404
|
t[0] === a ? o = t[1] : (o = /* @__PURE__ */ Z(Y, {
|
|
1378
1405
|
textStyle: "paragraph/M/medium",
|
|
@@ -1396,7 +1423,7 @@ var jn = (e) => {
|
|
|
1396
1423
|
children: [l, u]
|
|
1397
1424
|
}), t[6] = l, t[7] = u, t[8] = d) : d = t[8];
|
|
1398
1425
|
let f;
|
|
1399
|
-
return t[9] !== o || t[10] !== d ? (f = /* @__PURE__ */ Z(
|
|
1426
|
+
return t[9] !== o || t[10] !== d ? (f = /* @__PURE__ */ Z(Jn, {
|
|
1400
1427
|
height: "100%",
|
|
1401
1428
|
width: "100%",
|
|
1402
1429
|
children: /* @__PURE__ */ Z(de, { children: /* @__PURE__ */ Z(c, {
|
|
@@ -1405,13 +1432,13 @@ var jn = (e) => {
|
|
|
1405
1432
|
children: d
|
|
1406
1433
|
}) })
|
|
1407
1434
|
}), t[9] = o, t[10] = d, t[11] = f) : f = t[11], f;
|
|
1408
|
-
},
|
|
1435
|
+
}, $n = (e) => !!e && e !== "circle", er = (e) => {
|
|
1409
1436
|
let t = X(18), n, r, i, a, o;
|
|
1410
1437
|
t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4], o = t[5]) : ({color: n, icon: r, iconOptions: i, showIcon: o, ...a} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a, t[5] = o);
|
|
1411
1438
|
let s = o === void 0 || o, c;
|
|
1412
1439
|
t[6] !== r || t[7] !== i ? (c = E(r, i), t[6] = r, t[7] = i, t[8] = c) : c = t[8];
|
|
1413
1440
|
let l = c, u = `${n}.500/15`, d;
|
|
1414
|
-
t[9] !== l || t[10] !== n || t[11] !== r || t[12] !== s ? (d = s &&
|
|
1441
|
+
t[9] !== l || t[10] !== n || t[11] !== r || t[12] !== s ? (d = s && $n(r) ? /* @__PURE__ */ Z(be, {
|
|
1415
1442
|
as: l,
|
|
1416
1443
|
boxSize: "icon-xs",
|
|
1417
1444
|
color: `${n}.500`
|
|
@@ -1429,7 +1456,7 @@ var jn = (e) => {
|
|
|
1429
1456
|
...a,
|
|
1430
1457
|
children: d
|
|
1431
1458
|
}), t[14] = a, t[15] = u, t[16] = d, t[17] = f) : f = t[17], f;
|
|
1432
|
-
},
|
|
1459
|
+
}, tr = Fe("button", { base: {
|
|
1433
1460
|
display: "inline-flex",
|
|
1434
1461
|
borderRadius: "compact",
|
|
1435
1462
|
cursor: "pointer",
|
|
@@ -1438,7 +1465,7 @@ var jn = (e) => {
|
|
|
1438
1465
|
cursor: "not-allowed",
|
|
1439
1466
|
opacity: .5
|
|
1440
1467
|
}
|
|
1441
|
-
} }),
|
|
1468
|
+
} }), nr = Fe("button", { base: {
|
|
1442
1469
|
boxSize: "tag-color-dot",
|
|
1443
1470
|
borderRadius: "full",
|
|
1444
1471
|
cursor: "pointer",
|
|
@@ -1447,7 +1474,7 @@ var jn = (e) => {
|
|
|
1447
1474
|
outlineOffset: "3xs",
|
|
1448
1475
|
outlineColor: "transparent",
|
|
1449
1476
|
_selected: { outlineColor: "fg" }
|
|
1450
|
-
} }),
|
|
1477
|
+
} }), rr = Fe("button", { base: {
|
|
1451
1478
|
display: "inline-flex",
|
|
1452
1479
|
alignItems: "center",
|
|
1453
1480
|
justifyContent: "center",
|
|
@@ -1456,11 +1483,11 @@ var jn = (e) => {
|
|
|
1456
1483
|
color: "fg.muted",
|
|
1457
1484
|
cursor: "pointer",
|
|
1458
1485
|
_hover: { bg: "bg.hover" }
|
|
1459
|
-
} }),
|
|
1486
|
+
} }), ir = (e) => {
|
|
1460
1487
|
let t = X(39), { color: n, colorOptions: r, icon: i, iconOptions: a, onColorChange: o, onIconChange: s, disabled: c, showIcons: l, colorLabel: u, iconLabel: d, "aria-label": f } = e, p = r === void 0 ? O : r, m = a === void 0 ? T : a, h = l === void 0 || l, g = u === void 0 ? "Color" : u, _ = d === void 0 ? "Icon" : d, v = f === void 0 ? "Pick color and icon" : f, y = i === "circle" ? null : i ?? null, b;
|
|
1461
1488
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (b = { placement: "bottom-start" }, t[0] = b) : b = t[0];
|
|
1462
1489
|
let x;
|
|
1463
|
-
t[1] !== n || t[2] !== i || t[3] !== m || t[4] !== h ? (x = /* @__PURE__ */ Z(
|
|
1490
|
+
t[1] !== n || t[2] !== i || t[3] !== m || t[4] !== h ? (x = /* @__PURE__ */ Z(er, {
|
|
1464
1491
|
color: n,
|
|
1465
1492
|
icon: i,
|
|
1466
1493
|
iconOptions: m,
|
|
@@ -1469,7 +1496,7 @@ var jn = (e) => {
|
|
|
1469
1496
|
let S;
|
|
1470
1497
|
t[6] !== v || t[7] !== c || t[8] !== x ? (S = /* @__PURE__ */ Z(Ee.Trigger, {
|
|
1471
1498
|
asChild: !0,
|
|
1472
|
-
children: /* @__PURE__ */ Z(
|
|
1499
|
+
children: /* @__PURE__ */ Z(tr, {
|
|
1473
1500
|
type: "button",
|
|
1474
1501
|
disabled: c,
|
|
1475
1502
|
"aria-label": v,
|
|
@@ -1485,7 +1512,7 @@ var jn = (e) => {
|
|
|
1485
1512
|
let E = `repeat(${h ? 10 : 5}, 1fr)`, D;
|
|
1486
1513
|
if (t[12] !== n || t[13] !== p || t[14] !== o) {
|
|
1487
1514
|
let e;
|
|
1488
|
-
t[16] !== n || t[17] !== o ? (e = (e) => /* @__PURE__ */ Z(
|
|
1515
|
+
t[16] !== n || t[17] !== o ? (e = (e) => /* @__PURE__ */ Z(nr, {
|
|
1489
1516
|
type: "button",
|
|
1490
1517
|
bg: `${e}.500`,
|
|
1491
1518
|
"aria-label": e,
|
|
@@ -1515,7 +1542,7 @@ var jn = (e) => {
|
|
|
1515
1542
|
justifyItems: "center",
|
|
1516
1543
|
children: m.map((e) => {
|
|
1517
1544
|
let t = e.value === y;
|
|
1518
|
-
return /* @__PURE__ */ Z(
|
|
1545
|
+
return /* @__PURE__ */ Z(rr, {
|
|
1519
1546
|
type: "button",
|
|
1520
1547
|
color: t ? `${n}.500` : void 0,
|
|
1521
1548
|
bg: t ? `${n}.500/15` : void 0,
|
|
@@ -1552,7 +1579,7 @@ var jn = (e) => {
|
|
|
1552
1579
|
positioning: b,
|
|
1553
1580
|
children: [S, M]
|
|
1554
1581
|
}), t[36] = M, t[37] = S, t[38] = N) : N = t[38], N;
|
|
1555
|
-
},
|
|
1582
|
+
}, ar = (e) => {
|
|
1556
1583
|
let t = X(6), n, r;
|
|
1557
1584
|
t[0] === e ? (n = t[1], r = t[2]) : ({children: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
1558
1585
|
let i;
|
|
@@ -1564,7 +1591,7 @@ var jn = (e) => {
|
|
|
1564
1591
|
...r,
|
|
1565
1592
|
children: n
|
|
1566
1593
|
}), t[3] = n, t[4] = r, t[5] = i) : i = t[5], i;
|
|
1567
|
-
},
|
|
1594
|
+
}, or = (e) => {
|
|
1568
1595
|
let t = X(6), n, r;
|
|
1569
1596
|
t[0] === e ? (n = t[1], r = t[2]) : ({children: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
1570
1597
|
let i;
|
|
@@ -1573,7 +1600,7 @@ var jn = (e) => {
|
|
|
1573
1600
|
...r,
|
|
1574
1601
|
children: n
|
|
1575
1602
|
}), t[3] = n, t[4] = r, t[5] = i) : i = t[5], i;
|
|
1576
|
-
},
|
|
1603
|
+
}, sr = (e) => {
|
|
1577
1604
|
let t = X(30), { icon: n, name: r, description: i, id: a, version: o, category: s, active: c, actionLabel: l } = e, u = c !== void 0 && c, d;
|
|
1578
1605
|
t[0] === n ? d = t[1] : (d = /* @__PURE__ */ Z(be, {
|
|
1579
1606
|
boxSize: "1em",
|
|
@@ -1648,7 +1675,7 @@ var jn = (e) => {
|
|
|
1648
1675
|
children: [y, b]
|
|
1649
1676
|
}), t[22] = u, t[23] = b, t[24] = y, t[25] = x) : x = t[25];
|
|
1650
1677
|
let S;
|
|
1651
|
-
return t[26] !== d || t[27] !== x || t[28] !== v ? (S = /* @__PURE__ */ Z(
|
|
1678
|
+
return t[26] !== d || t[27] !== x || t[28] !== v ? (S = /* @__PURE__ */ Z(ar, { children: /* @__PURE__ */ Z(or, { children: /* @__PURE__ */ Q(ye, {
|
|
1652
1679
|
gap: "4",
|
|
1653
1680
|
alignItems: "flex-start",
|
|
1654
1681
|
children: [
|
|
@@ -1657,7 +1684,7 @@ var jn = (e) => {
|
|
|
1657
1684
|
x
|
|
1658
1685
|
]
|
|
1659
1686
|
}) }) }), t[26] = d, t[27] = x, t[28] = v, t[29] = S) : S = t[29], S;
|
|
1660
|
-
},
|
|
1687
|
+
}, cr = Re({
|
|
1661
1688
|
className: "ps-segmented-control",
|
|
1662
1689
|
slots: ["root", "item"],
|
|
1663
1690
|
base: {
|
|
@@ -1713,7 +1740,7 @@ var jn = (e) => {
|
|
|
1713
1740
|
}
|
|
1714
1741
|
} },
|
|
1715
1742
|
defaultVariants: { size: "sm" }
|
|
1716
|
-
}), { withProvider:
|
|
1743
|
+
}), { withProvider: lr, withContext: ur } = Ie({ recipe: cr }), dr = lr("div", "root"), fr = ur("button", "item"), pr = (e) => {
|
|
1717
1744
|
let t = X(20), n, r, i, a, o, s;
|
|
1718
1745
|
t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4], o = t[5], s = t[6]) : ({options: a, value: s, onValueChange: i, disabled: r, "aria-label": n, ...o} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a, t[5] = o, t[6] = s);
|
|
1719
1746
|
let c;
|
|
@@ -1721,7 +1748,7 @@ var jn = (e) => {
|
|
|
1721
1748
|
let e;
|
|
1722
1749
|
t[12] !== r || t[13] !== i || t[14] !== s ? (e = (e) => {
|
|
1723
1750
|
let t = e.value === s;
|
|
1724
|
-
return /* @__PURE__ */ Z(
|
|
1751
|
+
return /* @__PURE__ */ Z(fr, {
|
|
1725
1752
|
type: "button",
|
|
1726
1753
|
"aria-pressed": t,
|
|
1727
1754
|
"data-selected": t ? "" : void 0,
|
|
@@ -1732,25 +1759,25 @@ var jn = (e) => {
|
|
|
1732
1759
|
}, t[12] = r, t[13] = i, t[14] = s, t[15] = e) : e = t[15], c = a.map(e), t[7] = r, t[8] = i, t[9] = a, t[10] = s, t[11] = c;
|
|
1733
1760
|
} else c = t[11];
|
|
1734
1761
|
let l;
|
|
1735
|
-
return t[16] !== n || t[17] !== o || t[18] !== c ? (l = /* @__PURE__ */ Z(
|
|
1762
|
+
return t[16] !== n || t[17] !== o || t[18] !== c ? (l = /* @__PURE__ */ Z(dr, {
|
|
1736
1763
|
role: "group",
|
|
1737
1764
|
"aria-label": n,
|
|
1738
1765
|
...o,
|
|
1739
1766
|
children: c
|
|
1740
1767
|
}), t[16] = n, t[17] = o, t[18] = c, t[19] = l) : l = t[19], l;
|
|
1741
|
-
},
|
|
1768
|
+
}, mr = Le({
|
|
1742
1769
|
placement: "top",
|
|
1743
1770
|
pauseOnPageIdle: !0,
|
|
1744
1771
|
duration: 1e4
|
|
1745
|
-
}),
|
|
1772
|
+
}), hr = () => {
|
|
1746
1773
|
let e = X(1), t;
|
|
1747
1774
|
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ Z(De, { children: /* @__PURE__ */ Z(Pe, {
|
|
1748
|
-
toaster:
|
|
1775
|
+
toaster: mr,
|
|
1749
1776
|
insetInline: { mdDown: "4" },
|
|
1750
|
-
children:
|
|
1777
|
+
children: gr
|
|
1751
1778
|
}) }), e[0] = t) : t = e[0], t;
|
|
1752
1779
|
};
|
|
1753
|
-
function
|
|
1780
|
+
function gr(e) {
|
|
1754
1781
|
return /* @__PURE__ */ Q(Ne.Root, {
|
|
1755
1782
|
width: { md: "sm" },
|
|
1756
1783
|
alignItems: "start",
|
|
@@ -1790,22 +1817,22 @@ function mr(e) {
|
|
|
1790
1817
|
}
|
|
1791
1818
|
//#endregion
|
|
1792
1819
|
//#region src/components/sidenav/sidenav.store.ts
|
|
1793
|
-
var
|
|
1820
|
+
var _r = {
|
|
1794
1821
|
open: !0,
|
|
1795
1822
|
expandedSections: [],
|
|
1796
1823
|
expandedNodes: [],
|
|
1797
1824
|
width: null
|
|
1798
|
-
},
|
|
1825
|
+
}, vr = "pstdio/ui/sidenav", yr = (e) => `${vr}/${e}`, br = (e, t) => e.includes(t) ? e.filter((e) => e !== t) : [...e, t], xr = (e, t, n) => n ? e.includes(t) ? e : [...e, t] : e.filter((e) => e !== t), Sr = (e) => ({
|
|
1799
1826
|
open: e.open,
|
|
1800
1827
|
expandedSections: e.expandedSections,
|
|
1801
1828
|
expandedNodes: e.expandedNodes,
|
|
1802
1829
|
width: e.width
|
|
1803
|
-
}),
|
|
1830
|
+
}), Cr = (e) => {
|
|
1804
1831
|
let { storageKey: t, initialState: n } = e, r = {
|
|
1805
|
-
...
|
|
1832
|
+
..._r,
|
|
1806
1833
|
...n
|
|
1807
1834
|
};
|
|
1808
|
-
return
|
|
1835
|
+
return Nt()(Mt((e) => ({
|
|
1809
1836
|
...r,
|
|
1810
1837
|
openSidenav: () => e((e) => ({
|
|
1811
1838
|
...e,
|
|
@@ -1821,42 +1848,42 @@ var hr = {
|
|
|
1821
1848
|
})),
|
|
1822
1849
|
toggleSection: (t) => e((e) => ({
|
|
1823
1850
|
...e,
|
|
1824
|
-
expandedSections:
|
|
1851
|
+
expandedSections: br(e.expandedSections, t)
|
|
1825
1852
|
})),
|
|
1826
1853
|
toggleNode: (t) => e((e) => ({
|
|
1827
1854
|
...e,
|
|
1828
|
-
expandedNodes:
|
|
1855
|
+
expandedNodes: br(e.expandedNodes, t)
|
|
1829
1856
|
})),
|
|
1830
1857
|
setSectionExpanded: (t, n) => e((e) => ({
|
|
1831
1858
|
...e,
|
|
1832
|
-
expandedSections:
|
|
1859
|
+
expandedSections: xr(e.expandedSections, t, n)
|
|
1833
1860
|
})),
|
|
1834
1861
|
setNodeExpanded: (t, n) => e((e) => ({
|
|
1835
1862
|
...e,
|
|
1836
|
-
expandedNodes:
|
|
1863
|
+
expandedNodes: xr(e.expandedNodes, t, n)
|
|
1837
1864
|
})),
|
|
1838
1865
|
setWidth: (t) => e((e) => ({
|
|
1839
1866
|
...e,
|
|
1840
1867
|
width: t
|
|
1841
1868
|
})),
|
|
1842
|
-
reset: () => e(
|
|
1869
|
+
reset: () => e(_r)
|
|
1843
1870
|
}), {
|
|
1844
|
-
name:
|
|
1845
|
-
storage:
|
|
1846
|
-
partialize:
|
|
1871
|
+
name: yr(t),
|
|
1872
|
+
storage: jt(z),
|
|
1873
|
+
partialize: Sr
|
|
1847
1874
|
}));
|
|
1848
|
-
},
|
|
1849
|
-
let n =
|
|
1875
|
+
}, wr = /* @__PURE__ */ new Map(), Tr = (e, t) => {
|
|
1876
|
+
let n = wr.get(e);
|
|
1850
1877
|
if (n) return n;
|
|
1851
|
-
let r =
|
|
1878
|
+
let r = Cr({
|
|
1852
1879
|
storageKey: e,
|
|
1853
1880
|
initialState: t
|
|
1854
1881
|
});
|
|
1855
|
-
return
|
|
1856
|
-
},
|
|
1882
|
+
return wr.set(e, r), r;
|
|
1883
|
+
}, Er = (e, t, n) => {
|
|
1857
1884
|
let r = X(3), i;
|
|
1858
|
-
return r[0] !== n || r[1] !== e ? (i =
|
|
1859
|
-
},
|
|
1885
|
+
return r[0] !== n || r[1] !== e ? (i = Tr(e, n), r[0] = n, r[1] = e, r[2] = i) : i = r[2], At(i, t);
|
|
1886
|
+
}, Dr = (e) => {
|
|
1860
1887
|
let t = X(2), { children: n } = e;
|
|
1861
1888
|
if (!n) return null;
|
|
1862
1889
|
let r;
|
|
@@ -1867,13 +1894,13 @@ var hr = {
|
|
|
1867
1894
|
overflow: "hidden",
|
|
1868
1895
|
children: n
|
|
1869
1896
|
}), t[0] = n, t[1] = r), r;
|
|
1870
|
-
},
|
|
1897
|
+
}, Or = (e) => {
|
|
1871
1898
|
let t = X(2), { children: n } = e, r;
|
|
1872
1899
|
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ Z(ye, {
|
|
1873
1900
|
"data-testid": "sidenav-header",
|
|
1874
1901
|
justify: "space-between",
|
|
1875
1902
|
align: "center",
|
|
1876
|
-
minH:
|
|
1903
|
+
minH: hn,
|
|
1877
1904
|
bg: "bg",
|
|
1878
1905
|
position: "sticky",
|
|
1879
1906
|
top: "0",
|
|
@@ -1885,18 +1912,18 @@ var hr = {
|
|
|
1885
1912
|
children: n
|
|
1886
1913
|
})
|
|
1887
1914
|
}), t[0] = n, t[1] = r), r;
|
|
1888
|
-
},
|
|
1915
|
+
}, kr = 240, Ar = 200, jr = 480, Mr = (e, t, n) => Math.min(Math.max(e, t), n), Nr = (e, t = kr) => {
|
|
1889
1916
|
if (typeof e == "number") return e;
|
|
1890
1917
|
if (typeof e == "string") {
|
|
1891
1918
|
let t = parseInt(e, 10);
|
|
1892
1919
|
if (!Number.isNaN(t)) return t;
|
|
1893
1920
|
}
|
|
1894
1921
|
return t;
|
|
1895
|
-
},
|
|
1922
|
+
}, Pr = (e) => {
|
|
1896
1923
|
let t = X(43), { storageKey: n, sections: r, activeNodeId: i, contextActions: a, header: o, footer: s, width: c, closable: l, emptyLabel: u, defaultExpandedSections: d, linkComponent: f, onNavigate: p, onOpenChange: m, resizable: g, defaultWidth: _, minWidth: v, maxWidth: b, virtualize: x } = e, S;
|
|
1897
1924
|
t[0] === a ? S = t[1] : (S = a === void 0 ? [] : a, t[0] = a, t[1] = S);
|
|
1898
|
-
let w = S, T = l === void 0 || l, E = u === void 0 ? "No items available." : u, D = g === void 0 || g, O = v === void 0 ?
|
|
1899
|
-
t[2] !== _ || t[3] !== c ? (M =
|
|
1925
|
+
let w = S, T = l === void 0 || l, E = u === void 0 ? "No items available." : u, D = g === void 0 || g, O = v === void 0 ? Ar : v, k = b === void 0 ? jr : b, A = x !== void 0 && x, j = Je(null), M;
|
|
1926
|
+
t[2] !== _ || t[3] !== c ? (M = Nr(c, _), t[2] = _, t[3] = c, t[4] = M) : M = t[4];
|
|
1900
1927
|
let N = M, P;
|
|
1901
1928
|
t[5] === d ? P = t[6] : (P = d ? { expandedSections: d } : {}, t[5] = d, t[6] = P);
|
|
1902
1929
|
let F;
|
|
@@ -1904,16 +1931,16 @@ var hr = {
|
|
|
1904
1931
|
...P,
|
|
1905
1932
|
width: N
|
|
1906
1933
|
}, t[7] = N, t[8] = P, t[9] = F) : F = t[9];
|
|
1907
|
-
let I = F, L =
|
|
1934
|
+
let I = F, L = Er(n, Fr, I), R = Er(n, Ir, I), ee = Er(n, Lr, I), z = Er(n, Rr, I), te = Er(n, zr, I), B = Er(n, Br, I), V, H;
|
|
1908
1935
|
t[10] !== m || t[11] !== L ? (V = () => {
|
|
1909
1936
|
m?.(L);
|
|
1910
1937
|
}, H = [m, L], t[10] = m, t[11] = L, t[12] = V, t[13] = H) : (V = t[12], H = t[13]), qe(V, H);
|
|
1911
1938
|
let ne = R ?? N, U;
|
|
1912
|
-
t[14] !== k || t[15] !== O || t[16] !== ne ? (U =
|
|
1939
|
+
t[14] !== k || t[15] !== O || t[16] !== ne ? (U = Mr(ne, O, k), t[14] = k, t[15] = O, t[16] = ne, t[17] = U) : U = t[17];
|
|
1913
1940
|
let re = U;
|
|
1914
1941
|
if (!L && T) return null;
|
|
1915
1942
|
let ie = D ? `${re}px` : c ?? `${N}px`, ae;
|
|
1916
|
-
t[18] === o ? ae = t[19] : (ae = /* @__PURE__ */ Z(
|
|
1943
|
+
t[18] === o ? ae = t[19] : (ae = /* @__PURE__ */ Z(Or, { children: o }), t[18] = o, t[19] = ae);
|
|
1917
1944
|
let oe, se;
|
|
1918
1945
|
t[20] === Symbol.for("react.memo_cache_sentinel") ? (oe = {
|
|
1919
1946
|
display: "block",
|
|
@@ -1961,7 +1988,7 @@ var hr = {
|
|
|
1961
1988
|
})
|
|
1962
1989
|
}), t[22] = i, t[23] = E, t[24] = z, t[25] = ee, t[26] = f, t[27] = p, t[28] = r, t[29] = B, t[30] = te, t[31] = A, t[32] = ce) : ce = t[32];
|
|
1963
1990
|
let le;
|
|
1964
|
-
t[33] === s ? le = t[34] : (le = /* @__PURE__ */ Z(
|
|
1991
|
+
t[33] === s ? le = t[34] : (le = /* @__PURE__ */ Z(Dr, { children: s }), t[33] = s, t[34] = le);
|
|
1965
1992
|
let ue;
|
|
1966
1993
|
t[35] !== ae || t[36] !== ce || t[37] !== le || t[38] !== ie ? (ue = /* @__PURE__ */ Q(_e, {
|
|
1967
1994
|
as: "aside",
|
|
@@ -1989,27 +2016,27 @@ var hr = {
|
|
|
1989
2016
|
children: de
|
|
1990
2017
|
}), t[40] = de, t[41] = w, t[42] = W) : W = t[42], W;
|
|
1991
2018
|
};
|
|
1992
|
-
function
|
|
2019
|
+
function Fr(e) {
|
|
1993
2020
|
return e.open;
|
|
1994
2021
|
}
|
|
1995
|
-
function
|
|
2022
|
+
function Ir(e) {
|
|
1996
2023
|
return e.width;
|
|
1997
2024
|
}
|
|
1998
|
-
function
|
|
2025
|
+
function Lr(e) {
|
|
1999
2026
|
return e.expandedSections;
|
|
2000
2027
|
}
|
|
2001
|
-
function
|
|
2028
|
+
function Rr(e) {
|
|
2002
2029
|
return e.expandedNodes;
|
|
2003
2030
|
}
|
|
2004
|
-
function
|
|
2031
|
+
function zr(e) {
|
|
2005
2032
|
return e.toggleSection;
|
|
2006
2033
|
}
|
|
2007
|
-
function
|
|
2034
|
+
function Br(e) {
|
|
2008
2035
|
return e.toggleNode;
|
|
2009
2036
|
}
|
|
2010
2037
|
//#endregion
|
|
2011
2038
|
//#region src/components/tab-strip/tab-visibility.store.ts
|
|
2012
|
-
var
|
|
2039
|
+
var Vr = { tabOverrides: {} }, Hr = "pstdio/ui/tab-visibility", Ur = (e) => `${Hr}/${e}`, Wr = (e, t) => e ?? (t ? "hidden" : "shown"), Gr = (e, t, n) => {
|
|
2013
2040
|
if (n === void 0) {
|
|
2014
2041
|
if (!(t in e)) return e;
|
|
2015
2042
|
let { [t]: n, ...r } = e;
|
|
@@ -2019,42 +2046,42 @@ var zr = { tabOverrides: {} }, Br = "pstdio/ui/tab-visibility", Vr = (e) => `${B
|
|
|
2019
2046
|
...e,
|
|
2020
2047
|
[t]: n
|
|
2021
2048
|
};
|
|
2022
|
-
},
|
|
2023
|
-
...
|
|
2049
|
+
}, Kr = (e, t, n) => Gr(e, t, Wr(e[t], n) === "hidden" ? "shown" : "hidden"), qr = (e) => ({ tabOverrides: e.tabOverrides }), Jr = (e) => Nt()(Mt((e) => ({
|
|
2050
|
+
...Vr,
|
|
2024
2051
|
setTab: (t, n) => e((e) => ({
|
|
2025
2052
|
...e,
|
|
2026
|
-
tabOverrides:
|
|
2053
|
+
tabOverrides: Gr(e.tabOverrides, t, n)
|
|
2027
2054
|
})),
|
|
2028
2055
|
toggleTab: (t, n) => e((e) => ({
|
|
2029
2056
|
...e,
|
|
2030
|
-
tabOverrides:
|
|
2057
|
+
tabOverrides: Kr(e.tabOverrides, t, n)
|
|
2031
2058
|
})),
|
|
2032
2059
|
clearTab: (t) => e((e) => ({
|
|
2033
2060
|
...e,
|
|
2034
|
-
tabOverrides:
|
|
2061
|
+
tabOverrides: Gr(e.tabOverrides, t, void 0)
|
|
2035
2062
|
})),
|
|
2036
|
-
reset: () => e(
|
|
2063
|
+
reset: () => e(Vr)
|
|
2037
2064
|
}), {
|
|
2038
|
-
name:
|
|
2039
|
-
storage:
|
|
2040
|
-
partialize:
|
|
2041
|
-
})),
|
|
2042
|
-
let t =
|
|
2065
|
+
name: Ur(e.storageKey),
|
|
2066
|
+
storage: jt(z),
|
|
2067
|
+
partialize: qr
|
|
2068
|
+
})), Yr = /* @__PURE__ */ new Map(), Xr = (e) => {
|
|
2069
|
+
let t = Yr.get(e);
|
|
2043
2070
|
if (t) return t;
|
|
2044
|
-
let n =
|
|
2045
|
-
return
|
|
2046
|
-
},
|
|
2071
|
+
let n = Jr({ storageKey: e });
|
|
2072
|
+
return Yr.set(e, n), n;
|
|
2073
|
+
}, Zr = (e, t) => {
|
|
2047
2074
|
let n = X(2), r;
|
|
2048
|
-
return n[0] === e ? r = n[1] : (r =
|
|
2049
|
-
},
|
|
2075
|
+
return n[0] === e ? r = n[1] : (r = Xr(e), n[0] = e, n[1] = r), At(r, t);
|
|
2076
|
+
}, Qr = (e, t) => typeof e == "string" ? e : t, $r = (e, t) => e ?? (t ? "hidden" : "shown"), ei = (e) => e.canHide === !0 || e.hiddenByDefault === !0, ti = (e, t) => $r(t[e.id], e.hiddenByDefault) === "shown", ni = (e, t) => {
|
|
2050
2077
|
let n = !1, r = [];
|
|
2051
2078
|
for (let i of e) {
|
|
2052
|
-
if (
|
|
2079
|
+
if (!ti(i, t)) {
|
|
2053
2080
|
n = !0;
|
|
2054
2081
|
continue;
|
|
2055
2082
|
}
|
|
2056
2083
|
if (i.children && i.children.length > 0) {
|
|
2057
|
-
let e =
|
|
2084
|
+
let e = ni(i.children, t);
|
|
2058
2085
|
if (e !== i.children) {
|
|
2059
2086
|
n = !0, r.push({
|
|
2060
2087
|
...i,
|
|
@@ -2066,14 +2093,14 @@ var zr = { tabOverrides: {} }, Br = "pstdio/ui/tab-visibility", Vr = (e) => `${B
|
|
|
2066
2093
|
r.push(i);
|
|
2067
2094
|
}
|
|
2068
2095
|
return n ? r : e;
|
|
2069
|
-
},
|
|
2096
|
+
}, ri = (e, t) => ni(e, t), ii = (e, t, n) => {
|
|
2070
2097
|
let r = !1, i = [];
|
|
2071
2098
|
for (let a of e) {
|
|
2072
|
-
if (
|
|
2099
|
+
if ($r(t[a.id], a.hiddenByDefault) === "hidden") {
|
|
2073
2100
|
r = !0;
|
|
2074
2101
|
continue;
|
|
2075
2102
|
}
|
|
2076
|
-
let e =
|
|
2103
|
+
let e = ni(a.nodes, n);
|
|
2077
2104
|
if (e.length === 0 && !a.emptyState) {
|
|
2078
2105
|
r = !0;
|
|
2079
2106
|
continue;
|
|
@@ -2088,24 +2115,24 @@ var zr = { tabOverrides: {} }, Br = "pstdio/ui/tab-visibility", Vr = (e) => `${B
|
|
|
2088
2115
|
i.push(a);
|
|
2089
2116
|
}
|
|
2090
2117
|
return r ? i : e;
|
|
2091
|
-
},
|
|
2092
|
-
let i = e.hiddenByDefault === !0, a =
|
|
2118
|
+
}, ai = (e, t) => e === "shown" ? t.visibleIcon : t.hiddenIcon, oi = (e, t, n, r) => {
|
|
2119
|
+
let i = e.hiddenByDefault === !0, a = $r(t[e.id], i);
|
|
2093
2120
|
return {
|
|
2094
2121
|
key: `section:${e.id}`,
|
|
2095
2122
|
label: e.label ?? e.id,
|
|
2096
2123
|
onClick: () => n.onToggleSection(e.id, i),
|
|
2097
|
-
endContent:
|
|
2124
|
+
endContent: ai(a, r)
|
|
2098
2125
|
};
|
|
2099
|
-
},
|
|
2100
|
-
let i = e.hiddenByDefault === !0, a =
|
|
2126
|
+
}, si = (e, t, n, r) => {
|
|
2127
|
+
let i = e.hiddenByDefault === !0, a = $r(t[e.id], i);
|
|
2101
2128
|
return {
|
|
2102
2129
|
key: `node:${e.id}`,
|
|
2103
|
-
label:
|
|
2130
|
+
label: Qr(e.label, e.id),
|
|
2104
2131
|
icon: e.icon,
|
|
2105
2132
|
onClick: () => n.onToggleNode(e.id, i),
|
|
2106
|
-
endContent:
|
|
2133
|
+
endContent: ai(a, r)
|
|
2107
2134
|
};
|
|
2108
|
-
},
|
|
2135
|
+
}, ci = (e, t, n, r, i) => {
|
|
2109
2136
|
let a = [], o = (e) => {
|
|
2110
2137
|
e.length !== 0 && (a.length > 0 && (e[0] = {
|
|
2111
2138
|
...e[0],
|
|
@@ -2114,8 +2141,8 @@ var zr = { tabOverrides: {} }, Br = "pstdio/ui/tab-visibility", Vr = (e) => `${B
|
|
|
2114
2141
|
}, s = (e) => {
|
|
2115
2142
|
let a = [];
|
|
2116
2143
|
for (let o of e) {
|
|
2117
|
-
|
|
2118
|
-
for (let e of o.nodes)
|
|
2144
|
+
ei(o) && a.push(oi(o, t, r, i));
|
|
2145
|
+
for (let e of o.nodes) ei(e) && a.push(si(e, n, r, i));
|
|
2119
2146
|
}
|
|
2120
2147
|
return a;
|
|
2121
2148
|
};
|
|
@@ -2126,7 +2153,7 @@ var zr = { tabOverrides: {} }, Br = "pstdio/ui/tab-visibility", Vr = (e) => `${B
|
|
|
2126
2153
|
separatorBefore: !0,
|
|
2127
2154
|
onClick: r.onResetAll
|
|
2128
2155
|
}), a;
|
|
2129
|
-
},
|
|
2156
|
+
}, li = (e, t, n) => {
|
|
2130
2157
|
let r = !1, i = [];
|
|
2131
2158
|
for (let a of e) {
|
|
2132
2159
|
if (a.closable === !0) {
|
|
@@ -2137,19 +2164,19 @@ var zr = { tabOverrides: {} }, Br = "pstdio/ui/tab-visibility", Vr = (e) => `${B
|
|
|
2137
2164
|
r = !0;
|
|
2138
2165
|
continue;
|
|
2139
2166
|
}
|
|
2140
|
-
if (
|
|
2167
|
+
if ($r(t[n(a)], a.hiddenByDefault) === "hidden") {
|
|
2141
2168
|
r = !0;
|
|
2142
2169
|
continue;
|
|
2143
2170
|
}
|
|
2144
2171
|
i.push(a);
|
|
2145
2172
|
}
|
|
2146
2173
|
return r ? i : e;
|
|
2147
|
-
},
|
|
2174
|
+
}, ui = (e, t, n, r, i, a) => {
|
|
2148
2175
|
let o = [], s = 0;
|
|
2149
2176
|
for (let c of e) {
|
|
2150
2177
|
if (c.pinned === !0 || c.closable === !0) continue;
|
|
2151
2178
|
s += 1;
|
|
2152
|
-
let e = r(c), l = c.hiddenByDefault === !0, u =
|
|
2179
|
+
let e = r(c), l = c.hiddenByDefault === !0, u = $r(t[e], l);
|
|
2153
2180
|
o.push({
|
|
2154
2181
|
key: `tab:${e}`,
|
|
2155
2182
|
label: c.title ?? c.contributionId,
|
|
@@ -2165,14 +2192,14 @@ var zr = { tabOverrides: {} }, Br = "pstdio/ui/tab-visibility", Vr = (e) => `${B
|
|
|
2165
2192
|
separatorBefore: !0,
|
|
2166
2193
|
onClick: n.onResetAll
|
|
2167
2194
|
}), o;
|
|
2168
|
-
}, { withProvider:
|
|
2195
|
+
}, { withProvider: di, withContext: fi } = Ie({ recipe: B }), pi = di("div", "list"), mi = fi("div", "tab"), hi = fi("button", "trigger"), gi = fi("span", "label"), _i = fi("button", "close"), vi = (e) => {
|
|
2169
2196
|
let t = X(38), { tab: n, selected: r, tabIndex: i, reorderable: a, onSelect: o, onClose: s, onKeyDown: c } = e, l = !a, u;
|
|
2170
2197
|
t[0] !== l || t[1] !== n.id ? (u = {
|
|
2171
2198
|
id: n.id,
|
|
2172
2199
|
disabled: l
|
|
2173
2200
|
}, t[0] = l, t[1] = n.id, t[2] = u) : u = t[2];
|
|
2174
|
-
let { attributes: d, listeners: f, setNodeRef: p, setActivatorNodeRef: m, transform: h, transition: g, isDragging: _, isSorting: v } =
|
|
2175
|
-
t[3] === h ? x = t[4] : (x =
|
|
2201
|
+
let { attributes: d, listeners: f, setNodeRef: p, setActivatorNodeRef: m, transform: h, transition: g, isDragging: _, isSorting: v } = Dt(u), y = r ? "" : void 0, b = _ ? "" : void 0, x;
|
|
2202
|
+
t[3] === h ? x = t[4] : (x = kt.Translate.toString(h), t[3] = h, t[4] = x);
|
|
2176
2203
|
let S;
|
|
2177
2204
|
t[5] !== d || t[6] !== a ? (S = a ? d : {}, t[5] = d, t[6] = a, t[7] = S) : S = t[7];
|
|
2178
2205
|
let C;
|
|
@@ -2180,9 +2207,9 @@ var zr = { tabOverrides: {} }, Br = "pstdio/ui/tab-visibility", Vr = (e) => `${B
|
|
|
2180
2207
|
f?.onKeyDown?.(e), !v && !e.defaultPrevented && c(e);
|
|
2181
2208
|
}, t[8] = v, t[9] = f, t[10] = c, t[11] = C) : C = t[11];
|
|
2182
2209
|
let w;
|
|
2183
|
-
t[12] === n.label ? w = t[13] : (w = /* @__PURE__ */ Z(
|
|
2210
|
+
t[12] === n.label ? w = t[13] : (w = /* @__PURE__ */ Z(gi, { children: n.label }), t[12] = n.label, t[13] = w);
|
|
2184
2211
|
let T;
|
|
2185
|
-
t[14] !== f || t[15] !== o || t[16] !== r || t[17] !== m || t[18] !== S || t[19] !== C || t[20] !== w || t[21] !== n.icon || t[22] !== n.label || t[23] !== i ? (T = /* @__PURE__ */ Q(
|
|
2212
|
+
t[14] !== f || t[15] !== o || t[16] !== r || t[17] !== m || t[18] !== S || t[19] !== C || t[20] !== w || t[21] !== n.icon || t[22] !== n.label || t[23] !== i ? (T = /* @__PURE__ */ Q(hi, {
|
|
2186
2213
|
...S,
|
|
2187
2214
|
...f,
|
|
2188
2215
|
ref: m,
|
|
@@ -2197,9 +2224,9 @@ var zr = { tabOverrides: {} }, Br = "pstdio/ui/tab-visibility", Vr = (e) => `${B
|
|
|
2197
2224
|
children: [n.icon, w]
|
|
2198
2225
|
}), t[14] = f, t[15] = o, t[16] = r, t[17] = m, t[18] = S, t[19] = C, t[20] = w, t[21] = n.icon, t[22] = n.label, t[23] = i, t[24] = T) : T = t[24];
|
|
2199
2226
|
let E = `Close ${n.label}`, D = `Close ${n.label}`, O;
|
|
2200
|
-
t[25] === Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ Z(
|
|
2227
|
+
t[25] === Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ Z(ht, { "aria-hidden": "true" }), t[25] = O) : O = t[25];
|
|
2201
2228
|
let k;
|
|
2202
|
-
t[26] !== s || t[27] !== D || t[28] !== E ? (k = /* @__PURE__ */ Z(
|
|
2229
|
+
t[26] !== s || t[27] !== D || t[28] !== E ? (k = /* @__PURE__ */ Z(_i, {
|
|
2203
2230
|
type: "button",
|
|
2204
2231
|
"aria-label": E,
|
|
2205
2232
|
title: D,
|
|
@@ -2207,7 +2234,7 @@ var zr = { tabOverrides: {} }, Br = "pstdio/ui/tab-visibility", Vr = (e) => `${B
|
|
|
2207
2234
|
children: O
|
|
2208
2235
|
}), t[26] = s, t[27] = D, t[28] = E, t[29] = k) : k = t[29];
|
|
2209
2236
|
let A;
|
|
2210
|
-
return t[30] !== p || t[31] !== k || t[32] !== y || t[33] !== b || t[34] !== x || t[35] !== T || t[36] !== g ? (A = /* @__PURE__ */ Q(
|
|
2237
|
+
return t[30] !== p || t[31] !== k || t[32] !== y || t[33] !== b || t[34] !== x || t[35] !== T || t[36] !== g ? (A = /* @__PURE__ */ Q(mi, {
|
|
2211
2238
|
ref: p,
|
|
2212
2239
|
role: "presentation",
|
|
2213
2240
|
"data-selected": y,
|
|
@@ -2216,12 +2243,12 @@ var zr = { tabOverrides: {} }, Br = "pstdio/ui/tab-visibility", Vr = (e) => `${B
|
|
|
2216
2243
|
transition: g,
|
|
2217
2244
|
children: [T, k]
|
|
2218
2245
|
}), t[30] = p, t[31] = k, t[32] = y, t[33] = b, t[34] = x, t[35] = T, t[36] = g, t[37] = A) : A = t[37], A;
|
|
2219
|
-
},
|
|
2246
|
+
}, yi = (e) => {
|
|
2220
2247
|
let t = X(48), { tabs: n, selectedId: r, onSelect: i, onClose: a, onReorder: o, "aria-label": s } = e, c = Je(null), l;
|
|
2221
2248
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (l = { activationConstraint: { distance: 6 } }, t[0] = l) : l = t[0];
|
|
2222
2249
|
let u;
|
|
2223
|
-
t[1] === Symbol.for("react.memo_cache_sentinel") ? (u = { coordinateGetter:
|
|
2224
|
-
let d = xt(
|
|
2250
|
+
t[1] === Symbol.for("react.memo_cache_sentinel") ? (u = { coordinateGetter: Et }, t[1] = u) : u = t[1];
|
|
2251
|
+
let d = St(xt(yt, l), xt(vt, u)), f, p;
|
|
2225
2252
|
t[2] === r ? (f = t[3], p = t[4]) : (f = () => {
|
|
2226
2253
|
r && c.current?.querySelector("[aria-selected=\"true\"]")?.scrollIntoView({
|
|
2227
2254
|
block: "nearest",
|
|
@@ -2245,10 +2272,10 @@ var zr = { tabOverrides: {} }, Br = "pstdio/ui/tab-visibility", Vr = (e) => `${B
|
|
|
2245
2272
|
} else return;
|
|
2246
2273
|
t.preventDefault(), c.current?.querySelectorAll("[role=\"tab\"]")[a]?.focus(), i(n[a].id);
|
|
2247
2274
|
};
|
|
2248
|
-
g =
|
|
2275
|
+
g = _t, _ = d, v = bt, t[25] === Symbol.for("react.memo_cache_sentinel") ? (y = [bi], t[25] = y) : y = t[25], t[26] === o ? b = t[27] : (b = (e) => {
|
|
2249
2276
|
let { active: t, over: n } = e;
|
|
2250
2277
|
n && t.id !== n.id && o?.(String(t.id), String(n.id));
|
|
2251
|
-
}, t[26] = o, t[27] = b), h =
|
|
2278
|
+
}, t[26] = o, t[27] = b), h = Ct, t[28] === n ? T = t[29] : (T = n.map(xi), t[28] = n, t[29] = T), E = Tt, m = pi, x = c, S = "tablist", C = s, w = n.map((t, a) => /* @__PURE__ */ Z(vi, {
|
|
2252
2279
|
tab: t,
|
|
2253
2280
|
selected: t.id === r,
|
|
2254
2281
|
tabIndex: t.id === (r ?? n[0]?.id) ? 0 : -1,
|
|
@@ -2280,28 +2307,28 @@ var zr = { tabOverrides: {} }, Br = "pstdio/ui/tab-visibility", Vr = (e) => `${B
|
|
|
2280
2307
|
children: O
|
|
2281
2308
|
}), t[41] = g, t[42] = _, t[43] = v, t[44] = y, t[45] = b, t[46] = O, t[47] = k) : k = t[47], k;
|
|
2282
2309
|
};
|
|
2283
|
-
function
|
|
2310
|
+
function bi(e) {
|
|
2284
2311
|
let { transform: t } = e;
|
|
2285
2312
|
return {
|
|
2286
2313
|
...t,
|
|
2287
2314
|
y: 0
|
|
2288
2315
|
};
|
|
2289
2316
|
}
|
|
2290
|
-
function
|
|
2317
|
+
function xi(e) {
|
|
2291
2318
|
return e.id;
|
|
2292
2319
|
}
|
|
2293
2320
|
//#endregion
|
|
2294
2321
|
//#region src/components/tab-strip/window-title-bar.tsx
|
|
2295
|
-
var { withProvider:
|
|
2322
|
+
var { withProvider: Si, withContext: Ci } = Ie({ recipe: te }), wi = Si("div", "root"), Ti = Ci("div", "content"), Ei = (e) => {
|
|
2296
2323
|
let t = X(5), { platform: n, children: r } = e, i = n === "darwin" ? "mac" : "overlay", a;
|
|
2297
|
-
t[0] === r ? a = t[1] : (a = /* @__PURE__ */ Z(
|
|
2324
|
+
t[0] === r ? a = t[1] : (a = /* @__PURE__ */ Z(Ti, { children: r }), t[0] = r, t[1] = a);
|
|
2298
2325
|
let o;
|
|
2299
|
-
return t[2] !== i || t[3] !== a ? (o = /* @__PURE__ */ Z(
|
|
2326
|
+
return t[2] !== i || t[3] !== a ? (o = /* @__PURE__ */ Z(wi, {
|
|
2300
2327
|
controls: i,
|
|
2301
2328
|
"data-window-title-bar": "",
|
|
2302
2329
|
children: a
|
|
2303
2330
|
}), t[2] = i, t[3] = a, t[4] = o) : o = t[4], o;
|
|
2304
|
-
},
|
|
2331
|
+
}, Di = (e) => {
|
|
2305
2332
|
let t = X(7), { children: n, hasChanges: r } = e, i;
|
|
2306
2333
|
t[0] === n ? i = t[1] : (i = /* @__PURE__ */ Z(Y, {
|
|
2307
2334
|
textStyle: "label/L/medium",
|
|
@@ -2321,7 +2348,7 @@ var { withProvider: bi, withContext: xi } = Ie({ recipe: te }), Si = bi("div", "
|
|
|
2321
2348
|
minWidth: "0",
|
|
2322
2349
|
children: [i, a]
|
|
2323
2350
|
}), t[4] = i, t[5] = a, t[6] = o) : o = t[6], o;
|
|
2324
|
-
},
|
|
2351
|
+
}, Oi = (e) => e.length === 0 ? "None" : e.length === 1 ? e[0].label : `${e[0].label} +${e.length - 1}`, ki = (e) => {
|
|
2325
2352
|
let t = X(54), { actions: n, disabled: r, label: i, options: a, optionName: o, onChange: s } = e, c, l, u, d, f, p, m, h, g, _, v, y, x, S;
|
|
2326
2353
|
if (t[0] !== n || t[1] !== r || t[2] !== i || t[3] !== s || t[4] !== o || t[5] !== a) {
|
|
2327
2354
|
let e;
|
|
@@ -2329,7 +2356,7 @@ var { withProvider: bi, withContext: xi } = Ie({ recipe: te }), Si = bi("div", "
|
|
|
2329
2356
|
let b = a.filter(e), C;
|
|
2330
2357
|
t[22] !== n || t[23] !== s ? (C = (e) => {
|
|
2331
2358
|
s(n.includes(e) ? n.filter((t) => t !== e) : [...n, e]);
|
|
2332
|
-
}, t[22] = n, t[23] = s, t[24] = C) : C = t[24], S = C, u = Te.Root, x = !1, l = Te.Trigger, y = !0, c = q, d = "2xs", f = "ghost", p = "xs", m = b.length === 0 ? "fg.subtle" : "fg", h = r, g = `${i} for ${o}`, _ = b[0]?.icon, v =
|
|
2359
|
+
}, t[22] = n, t[23] = s, t[24] = C) : C = t[24], S = C, u = Te.Root, x = !1, l = Te.Trigger, y = !0, c = q, d = "2xs", f = "ghost", p = "xs", m = b.length === 0 ? "fg.subtle" : "fg", h = r, g = `${i} for ${o}`, _ = b[0]?.icon, v = Oi(b), t[0] = n, t[1] = r, t[2] = i, t[3] = s, t[4] = o, t[5] = a, t[6] = c, t[7] = l, t[8] = u, t[9] = d, t[10] = f, t[11] = p, t[12] = m, t[13] = h, t[14] = g, t[15] = _, t[16] = v, t[17] = y, t[18] = x, t[19] = S;
|
|
2333
2360
|
} else c = t[6], l = t[7], u = t[8], d = t[9], f = t[10], p = t[11], m = t[12], h = t[13], g = t[14], _ = t[15], v = t[16], y = t[17], x = t[18], S = t[19];
|
|
2334
2361
|
let C;
|
|
2335
2362
|
t[25] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ Z(be, {
|
|
@@ -2387,14 +2414,14 @@ var { withProvider: bi, withContext: xi } = Ie({ recipe: te }), Si = bi("div", "
|
|
|
2387
2414
|
closeOnSelect: x,
|
|
2388
2415
|
children: [T, D]
|
|
2389
2416
|
}), t[49] = u, t[50] = T, t[51] = D, t[52] = x, t[53] = O) : O = t[53], O;
|
|
2390
|
-
},
|
|
2417
|
+
}, Ai = (e) => {
|
|
2391
2418
|
let t = X(69), { actionOptions: n, actionsLabel: r, colorOptions: i, iconOptions: a, value: o, isSaving: s, readOnly: c, showDefault: l, showIcons: u, onActionsChange: d, onColorChange: f, onDelete: p, onIconChange: m, onNameChange: h } = e, g = r === void 0 ? "Actions" : r, _ = s || c, v;
|
|
2392
2419
|
t[0] !== _ || t[1] !== o.id ? (v = {
|
|
2393
2420
|
id: o.id,
|
|
2394
2421
|
disabled: _
|
|
2395
2422
|
}, t[0] = _, t[1] = o.id, t[2] = v) : v = t[2];
|
|
2396
|
-
let { attributes: y, listeners: b, setNodeRef: x, transform: S, transition: C, isDragging: w } =
|
|
2397
|
-
t[3] === S ? T = t[4] : (T =
|
|
2423
|
+
let { attributes: y, listeners: b, setNodeRef: x, transform: S, transition: C, isDragging: w } = Dt(v), T;
|
|
2424
|
+
t[3] === S ? T = t[4] : (T = kt.Transform.toString(S), t[3] = S, t[4] = T);
|
|
2398
2425
|
let E;
|
|
2399
2426
|
t[5] !== T || t[6] !== C ? (E = {
|
|
2400
2427
|
transform: T,
|
|
@@ -2406,7 +2433,7 @@ var { withProvider: bi, withContext: xi } = Ie({ recipe: te }), Si = bi("div", "
|
|
|
2406
2433
|
t[10] === Symbol.for("react.memo_cache_sentinel") ? (P = { color: "fg.muted" }, t[10] = P) : P = t[10];
|
|
2407
2434
|
let F = `Reorder ${o.name}`, I;
|
|
2408
2435
|
t[11] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ Z(be, {
|
|
2409
|
-
as:
|
|
2436
|
+
as: ot,
|
|
2410
2437
|
boxSize: "icon-xs"
|
|
2411
2438
|
}), t[11] = I) : I = t[11];
|
|
2412
2439
|
let L;
|
|
@@ -2420,7 +2447,7 @@ var { withProvider: bi, withContext: xi } = Ie({ recipe: te }), Si = bi("div", "
|
|
|
2420
2447
|
children: I
|
|
2421
2448
|
}), t[12] = y, t[13] = b, t[14] = N, t[15] = F, t[16] = L) : L = t[16];
|
|
2422
2449
|
let R = `Change ${o.name} appearance`, ee;
|
|
2423
|
-
t[17] !== i || t[18] !== _ || t[19] !== a || t[20] !== f || t[21] !== m || t[22] !== u || t[23] !== R || t[24] !== o.color || t[25] !== o.icon ? (ee = /* @__PURE__ */ Z(
|
|
2450
|
+
t[17] !== i || t[18] !== _ || t[19] !== a || t[20] !== f || t[21] !== m || t[22] !== u || t[23] !== R || t[24] !== o.color || t[25] !== o.icon ? (ee = /* @__PURE__ */ Z(ir, {
|
|
2424
2451
|
color: o.color,
|
|
2425
2452
|
colorOptions: i,
|
|
2426
2453
|
icon: o.icon,
|
|
@@ -2467,7 +2494,7 @@ var { withProvider: bi, withContext: xi } = Ie({ recipe: te }), Si = bi("div", "
|
|
|
2467
2494
|
t[43] !== n || t[44] !== g || t[45] !== _ || t[46] !== d || t[47] !== o.actions || t[48] !== o.name ? (U = n ? /* @__PURE__ */ Z(_e, {
|
|
2468
2495
|
width: "tag-editor-commands",
|
|
2469
2496
|
justifyContent: "flex-end",
|
|
2470
|
-
children: /* @__PURE__ */ Z(
|
|
2497
|
+
children: /* @__PURE__ */ Z(ki, {
|
|
2471
2498
|
actions: o.actions ?? [],
|
|
2472
2499
|
disabled: _,
|
|
2473
2500
|
label: g,
|
|
@@ -2483,7 +2510,7 @@ var { withProvider: bi, withContext: xi } = Ie({ recipe: te }), Si = bi("div", "
|
|
|
2483
2510
|
}, t[50] = re) : re = t[50];
|
|
2484
2511
|
let ie = _ || o.isDefault, ae = `Delete ${o.name}`, oe;
|
|
2485
2512
|
t[51] === Symbol.for("react.memo_cache_sentinel") ? (oe = /* @__PURE__ */ Z(be, {
|
|
2486
|
-
as:
|
|
2513
|
+
as: mt,
|
|
2487
2514
|
boxSize: "icon-xs"
|
|
2488
2515
|
}), t[51] = oe) : oe = t[51];
|
|
2489
2516
|
let se;
|
|
@@ -2521,11 +2548,11 @@ var { withProvider: bi, withContext: xi } = Ie({ recipe: te }), Si = bi("div", "
|
|
|
2521
2548
|
se
|
|
2522
2549
|
]
|
|
2523
2550
|
}), t[56] = x, t[57] = L, t[58] = ee, t[59] = ne, t[60] = U, t[61] = se, t[62] = E, t[63] = D, t[64] = O, t[65] = k, t[66] = A, t[67] = M, t[68] = ce) : ce = t[68], ce;
|
|
2524
|
-
},
|
|
2551
|
+
}, ji = (e) => e.length > 0 ? Math.max(...e.map((e) => e.sortOrder)) + 1 : 0, Mi = (e) => {
|
|
2525
2552
|
let t = X(12), { title: n, hasChanges: r, isSaving: i, onTitleChange: a } = e;
|
|
2526
2553
|
if (!a) {
|
|
2527
2554
|
let e;
|
|
2528
|
-
return t[0] !== r || t[1] !== n ? (e = /* @__PURE__ */ Z(
|
|
2555
|
+
return t[0] !== r || t[1] !== n ? (e = /* @__PURE__ */ Z(Di, {
|
|
2529
2556
|
hasChanges: r,
|
|
2530
2557
|
children: n
|
|
2531
2558
|
}), t[0] = r, t[1] = n, t[2] = e) : e = t[2], e;
|
|
@@ -2545,7 +2572,7 @@ var { withProvider: bi, withContext: xi } = Ie({ recipe: te }), Si = bi("div", "
|
|
|
2545
2572
|
onValueCommit: o,
|
|
2546
2573
|
children: [s, c]
|
|
2547
2574
|
}, n), t[8] = i, t[9] = o, t[10] = n, t[11] = l) : l = t[11], l;
|
|
2548
|
-
},
|
|
2575
|
+
}, Ni = Fe("button", { base: {
|
|
2549
2576
|
display: "flex",
|
|
2550
2577
|
alignItems: "center",
|
|
2551
2578
|
gap: "xs",
|
|
@@ -2566,7 +2593,7 @@ var { withProvider: bi, withContext: xi } = Ie({ recipe: te }), Si = bi("div", "
|
|
|
2566
2593
|
color: "fg.muted"
|
|
2567
2594
|
}
|
|
2568
2595
|
}
|
|
2569
|
-
} }),
|
|
2596
|
+
} }), Pi = (e) => {
|
|
2570
2597
|
let t = X(9), { valueLabel: n, actionsLabel: r } = e, i;
|
|
2571
2598
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ Z(_e, {
|
|
2572
2599
|
width: "tag-editor-lead",
|
|
@@ -2609,9 +2636,9 @@ var { withProvider: bi, withContext: xi } = Ie({ recipe: te }), Si = bi("div", "
|
|
|
2609
2636
|
s
|
|
2610
2637
|
]
|
|
2611
2638
|
}), t[6] = a, t[7] = o, t[8] = c) : c = t[8], c;
|
|
2612
|
-
},
|
|
2639
|
+
}, Fi = (e) => {
|
|
2613
2640
|
let t = X(22), { label: n, values: r, disabled: i, onSelect: a } = e, o;
|
|
2614
|
-
t[0] === r ? o = t[1] : (o = r.find(
|
|
2641
|
+
t[0] === r ? o = t[1] : (o = r.find(Li), t[0] = r, t[1] = o);
|
|
2615
2642
|
let s = o, c;
|
|
2616
2643
|
t[2] === n ? c = t[3] : (c = /* @__PURE__ */ Z(Y, {
|
|
2617
2644
|
textStyle: "paragraph/S/regular",
|
|
@@ -2674,8 +2701,8 @@ var { withProvider: bi, withContext: xi } = Ie({ recipe: te }), Si = bi("div", "
|
|
|
2674
2701
|
borderColor: "border.subtle",
|
|
2675
2702
|
children: [c, m]
|
|
2676
2703
|
}), t[19] = c, t[20] = m, t[21] = h) : h = t[21], h;
|
|
2677
|
-
},
|
|
2678
|
-
let { title: t, description: n, headerActions: r, values: i, onValuesChange: a, onDeleteValue: o, onSetDefault: s, onTitleChange: c, hasChanges: l, isSaving: u, readOnly: d, addLabel: f = "Add option", addName: p = "New option", actionOptions: m, actionsLabel: h, defaultValueLabel: g = "Default value", colorOptions: _, defaultAddColor: v = "blue", defaultAddIcon: y = null, deleteButtonText: b = "Delete tag", deleteHeadline: x = "Delete tag?", deleteNotificationText: S = (e) => `This will delete "${e.name}".`, iconOptions: C, showDefault: w, showIcons: T = !0, framed: E, showColumnHeaders: D, valueColumnLabel: O = "Name" } = e, [k, A] = $(null), j = xt(
|
|
2704
|
+
}, Ii = (e) => {
|
|
2705
|
+
let { title: t, description: n, headerActions: r, values: i, onValuesChange: a, onDeleteValue: o, onSetDefault: s, onTitleChange: c, hasChanges: l, isSaving: u, readOnly: d, addLabel: f = "Add option", addName: p = "New option", actionOptions: m, actionsLabel: h, defaultValueLabel: g = "Default value", colorOptions: _, defaultAddColor: v = "blue", defaultAddIcon: y = null, deleteButtonText: b = "Delete tag", deleteHeadline: x = "Delete tag?", deleteNotificationText: S = (e) => `This will delete "${e.name}".`, iconOptions: C, showDefault: w, showIcons: T = !0, framed: E, showColumnHeaders: D, valueColumnLabel: O = "Name" } = e, [k, A] = $(null), j = St(xt(yt, { activationConstraint: { distance: 5 } })), M = (e, t) => {
|
|
2679
2706
|
let n = [...i];
|
|
2680
2707
|
n[e] = {
|
|
2681
2708
|
...n[e],
|
|
@@ -2692,7 +2719,7 @@ var { withProvider: bi, withContext: xi } = Ie({ recipe: te }), Si = bi("div", "
|
|
|
2692
2719
|
children: [/* @__PURE__ */ Q(je, {
|
|
2693
2720
|
gap: "3xs",
|
|
2694
2721
|
minWidth: "0",
|
|
2695
|
-
children: [t ? /* @__PURE__ */ Z(
|
|
2722
|
+
children: [t ? /* @__PURE__ */ Z(Mi, {
|
|
2696
2723
|
title: t,
|
|
2697
2724
|
hasChanges: l,
|
|
2698
2725
|
isSaving: u,
|
|
@@ -2710,26 +2737,26 @@ var { withProvider: bi, withContext: xi } = Ie({ recipe: te }), Si = bi("div", "
|
|
|
2710
2737
|
borderRadius: E ? "md" : void 0,
|
|
2711
2738
|
overflow: E ? "hidden" : void 0,
|
|
2712
2739
|
children: [
|
|
2713
|
-
D ? /* @__PURE__ */ Z(
|
|
2740
|
+
D ? /* @__PURE__ */ Z(Pi, {
|
|
2714
2741
|
valueLabel: O,
|
|
2715
2742
|
actionsLabel: m ? h : void 0
|
|
2716
2743
|
}) : null,
|
|
2717
|
-
/* @__PURE__ */ Z(
|
|
2744
|
+
/* @__PURE__ */ Z(_t, {
|
|
2718
2745
|
sensors: j,
|
|
2719
|
-
collisionDetection:
|
|
2746
|
+
collisionDetection: bt,
|
|
2720
2747
|
onDragEnd: d ? void 0 : (e) => {
|
|
2721
2748
|
let { active: t, over: n } = e;
|
|
2722
2749
|
if (!n || t.id === n.id) return;
|
|
2723
2750
|
let r = i.findIndex((e) => e.id === t.id), o = i.findIndex((e) => e.id === n.id);
|
|
2724
|
-
r < 0 || o < 0 || a(
|
|
2751
|
+
r < 0 || o < 0 || a(wt(i, r, o).map((e, t) => ({
|
|
2725
2752
|
...e,
|
|
2726
2753
|
sortOrder: t
|
|
2727
2754
|
})));
|
|
2728
2755
|
},
|
|
2729
|
-
children: /* @__PURE__ */ Z(
|
|
2756
|
+
children: /* @__PURE__ */ Z(Ct, {
|
|
2730
2757
|
items: i.map((e) => e.id),
|
|
2731
|
-
strategy:
|
|
2732
|
-
children: i.map((e, t) => /* @__PURE__ */ Z(
|
|
2758
|
+
strategy: Ot,
|
|
2759
|
+
children: i.map((e, t) => /* @__PURE__ */ Z(Ai, {
|
|
2733
2760
|
value: e,
|
|
2734
2761
|
isSaving: u,
|
|
2735
2762
|
readOnly: d,
|
|
@@ -2747,7 +2774,7 @@ var { withProvider: bi, withContext: xi } = Ie({ recipe: te }), Si = bi("div", "
|
|
|
2747
2774
|
}, e.id))
|
|
2748
2775
|
})
|
|
2749
2776
|
}),
|
|
2750
|
-
d ? null : /* @__PURE__ */ Q(
|
|
2777
|
+
d ? null : /* @__PURE__ */ Q(Ni, {
|
|
2751
2778
|
type: "button",
|
|
2752
2779
|
disabled: u,
|
|
2753
2780
|
onClick: () => {
|
|
@@ -2756,19 +2783,19 @@ var { withProvider: bi, withContext: xi } = Ie({ recipe: te }), Si = bi("div", "
|
|
|
2756
2783
|
name: p,
|
|
2757
2784
|
color: v,
|
|
2758
2785
|
icon: y,
|
|
2759
|
-
sortOrder:
|
|
2786
|
+
sortOrder: ji(i),
|
|
2760
2787
|
isNew: !0
|
|
2761
2788
|
}]);
|
|
2762
2789
|
},
|
|
2763
2790
|
children: [/* @__PURE__ */ Z(be, {
|
|
2764
|
-
as:
|
|
2791
|
+
as: dt,
|
|
2765
2792
|
boxSize: "icon-xs"
|
|
2766
2793
|
}), /* @__PURE__ */ Z(Y, {
|
|
2767
2794
|
textStyle: "paragraph/S/regular",
|
|
2768
2795
|
children: f
|
|
2769
2796
|
})]
|
|
2770
2797
|
}),
|
|
2771
|
-
w && i.length > 0 ? /* @__PURE__ */ Z(
|
|
2798
|
+
w && i.length > 0 ? /* @__PURE__ */ Z(Fi, {
|
|
2772
2799
|
label: g,
|
|
2773
2800
|
values: i,
|
|
2774
2801
|
disabled: u || d,
|
|
@@ -2776,7 +2803,7 @@ var { withProvider: bi, withContext: xi } = Ie({ recipe: te }), Si = bi("div", "
|
|
|
2776
2803
|
}) : null
|
|
2777
2804
|
]
|
|
2778
2805
|
})]
|
|
2779
|
-
}), /* @__PURE__ */ Z(
|
|
2806
|
+
}), /* @__PURE__ */ Z(Ln, {
|
|
2780
2807
|
open: !!k,
|
|
2781
2808
|
onClose: () => A(null),
|
|
2782
2809
|
onDelete: () => {
|
|
@@ -2787,12 +2814,12 @@ var { withProvider: bi, withContext: xi } = Ie({ recipe: te }), Si = bi("div", "
|
|
|
2787
2814
|
buttonText: b
|
|
2788
2815
|
})] });
|
|
2789
2816
|
};
|
|
2790
|
-
function
|
|
2817
|
+
function Li(e) {
|
|
2791
2818
|
return e.isDefault;
|
|
2792
2819
|
}
|
|
2793
2820
|
//#endregion
|
|
2794
2821
|
//#region src/components/tag-editor/tag-editor-save-bar.tsx
|
|
2795
|
-
var
|
|
2822
|
+
var Ri = (e) => {
|
|
2796
2823
|
let t = X(13), { onSave: n, onReset: r, hasChanges: i, isSaving: a, resetLabel: o, saveLabel: s } = e, c = o === void 0 ? "Reset" : o, l = s === void 0 ? "Save" : s, u;
|
|
2797
2824
|
t[0] !== i || t[1] !== a || t[2] !== r || t[3] !== c ? (u = i ? /* @__PURE__ */ Z(q, {
|
|
2798
2825
|
size: "sm",
|
|
@@ -2815,14 +2842,14 @@ var Ii = (e) => {
|
|
|
2815
2842
|
gap: "xs",
|
|
2816
2843
|
children: [u, f]
|
|
2817
2844
|
}), t[10] = u, t[11] = f, t[12] = p) : p = t[12], p;
|
|
2818
|
-
},
|
|
2845
|
+
}, zi = (e, t) => e.sortOrder - t.sortOrder || e.name.localeCompare(t.name), Bi = (e, t) => e.map(t).sort(zi), Vi = (e, t) => e.find((e) => e.id === t.id), Hi = (e, t, n, r) => n.size > 0 || t.some((t) => {
|
|
2819
2846
|
if (t.isNew) return !0;
|
|
2820
|
-
let n =
|
|
2847
|
+
let n = Vi(e, t);
|
|
2821
2848
|
return !n || r(n, t) || t.sortOrder !== n.sortOrder;
|
|
2822
|
-
}),
|
|
2849
|
+
}), Ui = (e) => e instanceof Error ? e.message : e ? String(e) : null, Wi = (e) => {
|
|
2823
2850
|
let { errorTitle: t, loadingText: n = "Loading...", resetLabel: r, saveLabel: i, values: a, loadError: o, onSave: s, readOnly: l, toEditorValue: u, valueNeedsUpdate: d, ...f } = e, [p, m] = $([]), [h, g] = $(/* @__PURE__ */ new Set()), [_, v] = $(!1), [y, b] = $(null), x = a ?? [];
|
|
2824
2851
|
qe(() => {
|
|
2825
|
-
a && m(
|
|
2852
|
+
a && m(Bi(a, u));
|
|
2826
2853
|
}, [a, u]);
|
|
2827
2854
|
let S = async () => {
|
|
2828
2855
|
v(!0), b(null);
|
|
@@ -2837,10 +2864,10 @@ var Ii = (e) => {
|
|
|
2837
2864
|
} finally {
|
|
2838
2865
|
v(!1);
|
|
2839
2866
|
}
|
|
2840
|
-
}, C =
|
|
2867
|
+
}, C = Hi(x, p, h, d), w = Ui(o) ?? Ui(y), T = (e) => {
|
|
2841
2868
|
e.isNew || g(/* @__PURE__ */ new Set([...h, e.id])), m(p.filter((t) => t.id !== e.id));
|
|
2842
2869
|
}, E = () => {
|
|
2843
|
-
m(
|
|
2870
|
+
m(Bi(x, u)), g(/* @__PURE__ */ new Set()), b(null);
|
|
2844
2871
|
};
|
|
2845
2872
|
return /* @__PURE__ */ Q(je, {
|
|
2846
2873
|
boxSizing: "border-box",
|
|
@@ -2862,7 +2889,7 @@ var Ii = (e) => {
|
|
|
2862
2889
|
textStyle: "paragraph/S/regular",
|
|
2863
2890
|
children: n
|
|
2864
2891
|
})]
|
|
2865
|
-
}) : /* @__PURE__ */ Z(
|
|
2892
|
+
}) : /* @__PURE__ */ Z(Ii, {
|
|
2866
2893
|
...f,
|
|
2867
2894
|
readOnly: l,
|
|
2868
2895
|
values: p,
|
|
@@ -2874,7 +2901,7 @@ var Ii = (e) => {
|
|
|
2874
2901
|
}))) : f.onSetDefault,
|
|
2875
2902
|
hasChanges: C,
|
|
2876
2903
|
isSaving: _,
|
|
2877
|
-
headerActions: l ? void 0 : /* @__PURE__ */ Z(
|
|
2904
|
+
headerActions: l ? void 0 : /* @__PURE__ */ Z(Ri, {
|
|
2878
2905
|
hasChanges: C,
|
|
2879
2906
|
isSaving: _,
|
|
2880
2907
|
resetLabel: r,
|
|
@@ -2884,29 +2911,29 @@ var Ii = (e) => {
|
|
|
2884
2911
|
})
|
|
2885
2912
|
})]
|
|
2886
2913
|
});
|
|
2887
|
-
},
|
|
2914
|
+
}, Gi = {
|
|
2888
2915
|
sectionOrder: [],
|
|
2889
2916
|
nodeOrderBySection: {},
|
|
2890
2917
|
sectionSlotById: {}
|
|
2891
|
-
},
|
|
2918
|
+
}, Ki = "pstdio/ui/tree-list-order", qi = (e) => `${Ki}/${e}`, Ji = (e) => {
|
|
2892
2919
|
let t = /* @__PURE__ */ new Set(), n = [];
|
|
2893
2920
|
for (let r of e) t.has(r) || (t.add(r), n.push(r));
|
|
2894
2921
|
return n;
|
|
2895
|
-
},
|
|
2922
|
+
}, Yi = (e) => ({
|
|
2896
2923
|
sectionOrder: e.sectionOrder,
|
|
2897
2924
|
nodeOrderBySection: e.nodeOrderBySection,
|
|
2898
2925
|
sectionSlotById: e.sectionSlotById
|
|
2899
|
-
}),
|
|
2900
|
-
...
|
|
2926
|
+
}), Xi = (e) => Nt()(Mt((e) => ({
|
|
2927
|
+
...Gi,
|
|
2901
2928
|
setSectionOrder: (t) => e((e) => ({
|
|
2902
2929
|
...e,
|
|
2903
|
-
sectionOrder:
|
|
2930
|
+
sectionOrder: Ji(t)
|
|
2904
2931
|
})),
|
|
2905
2932
|
setNodeOrder: (t, n) => e((e) => ({
|
|
2906
2933
|
...e,
|
|
2907
2934
|
nodeOrderBySection: {
|
|
2908
2935
|
...e.nodeOrderBySection,
|
|
2909
|
-
[t]:
|
|
2936
|
+
[t]: Ji(n)
|
|
2910
2937
|
}
|
|
2911
2938
|
})),
|
|
2912
2939
|
setSectionSlot: (t, n) => e((e) => ({
|
|
@@ -2928,20 +2955,20 @@ var Ii = (e) => {
|
|
|
2928
2955
|
nodeOrderBySection: r
|
|
2929
2956
|
};
|
|
2930
2957
|
}),
|
|
2931
|
-
reset: () => e(
|
|
2958
|
+
reset: () => e(Gi)
|
|
2932
2959
|
}), {
|
|
2933
|
-
name:
|
|
2934
|
-
storage:
|
|
2935
|
-
partialize:
|
|
2936
|
-
})),
|
|
2937
|
-
let t =
|
|
2960
|
+
name: qi(e.storageKey),
|
|
2961
|
+
storage: jt(z),
|
|
2962
|
+
partialize: Yi
|
|
2963
|
+
})), Zi = /* @__PURE__ */ new Map(), Qi = (e) => {
|
|
2964
|
+
let t = Zi.get(e);
|
|
2938
2965
|
if (t) return t;
|
|
2939
|
-
let n =
|
|
2940
|
-
return
|
|
2941
|
-
},
|
|
2966
|
+
let n = Xi({ storageKey: e });
|
|
2967
|
+
return Zi.set(e, n), n;
|
|
2968
|
+
}, $i = (e, t) => {
|
|
2942
2969
|
let n = X(2), r;
|
|
2943
|
-
return n[0] === e ? r = n[1] : (r =
|
|
2944
|
-
},
|
|
2970
|
+
return n[0] === e ? r = n[1] : (r = Qi(e), n[0] = e, n[1] = r), At(r, t);
|
|
2971
|
+
}, ea = (e, t) => {
|
|
2945
2972
|
if (t.length === 0) return e;
|
|
2946
2973
|
let n = new Map(e.map((e, t) => [e.id, t])), r = /* @__PURE__ */ new Set(), i = [];
|
|
2947
2974
|
for (let a of t) {
|
|
@@ -2957,8 +2984,8 @@ var Ii = (e) => {
|
|
|
2957
2984
|
}
|
|
2958
2985
|
}
|
|
2959
2986
|
return a ? i : e;
|
|
2960
|
-
},
|
|
2961
|
-
let r = !1, i =
|
|
2987
|
+
}, ta = (e, t, n) => {
|
|
2988
|
+
let r = !1, i = ea(e, t);
|
|
2962
2989
|
i !== e && (r = !0);
|
|
2963
2990
|
let a = new Map(e.flatMap((e) => e.nodes.map((e) => [e.id, e]))), o = new Set(Object.entries(n).filter(([t]) => e.some((e) => e.id === t)).flatMap(([, e]) => e.filter((e) => a.has(e)))), s = [];
|
|
2964
2991
|
for (let e of i) {
|
|
@@ -2981,10 +3008,10 @@ var Ii = (e) => {
|
|
|
2981
3008
|
})) : s.push(e);
|
|
2982
3009
|
}
|
|
2983
3010
|
return r ? s : e;
|
|
2984
|
-
},
|
|
3011
|
+
}, na = {
|
|
2985
3012
|
sectionOverrides: {},
|
|
2986
3013
|
nodeOverrides: {}
|
|
2987
|
-
},
|
|
3014
|
+
}, ra = "pstdio/ui/tree-list-visibility", ia = (e) => `${ra}/${e}`, aa = (e, t) => e ?? (t ? "hidden" : "shown"), oa = (e) => e === "hidden" ? "shown" : "hidden", sa = (e, t, n) => {
|
|
2988
3015
|
if (n === void 0) {
|
|
2989
3016
|
if (!(t in e)) return e;
|
|
2990
3017
|
let { [t]: n, ...r } = e;
|
|
@@ -2994,83 +3021,83 @@ var Ii = (e) => {
|
|
|
2994
3021
|
...e,
|
|
2995
3022
|
[t]: n
|
|
2996
3023
|
};
|
|
2997
|
-
},
|
|
3024
|
+
}, ca = (e, t, n) => sa(e, t, oa(aa(e[t], n))), la = (e) => ({
|
|
2998
3025
|
sectionOverrides: e.sectionOverrides,
|
|
2999
3026
|
nodeOverrides: e.nodeOverrides
|
|
3000
|
-
}),
|
|
3001
|
-
...
|
|
3027
|
+
}), ua = (e) => Nt()(Mt((e) => ({
|
|
3028
|
+
...na,
|
|
3002
3029
|
setSection: (t, n) => e((e) => ({
|
|
3003
3030
|
...e,
|
|
3004
|
-
sectionOverrides:
|
|
3031
|
+
sectionOverrides: sa(e.sectionOverrides, t, n)
|
|
3005
3032
|
})),
|
|
3006
3033
|
setNode: (t, n) => e((e) => ({
|
|
3007
3034
|
...e,
|
|
3008
|
-
nodeOverrides:
|
|
3035
|
+
nodeOverrides: sa(e.nodeOverrides, t, n)
|
|
3009
3036
|
})),
|
|
3010
3037
|
toggleSection: (t, n) => e((e) => ({
|
|
3011
3038
|
...e,
|
|
3012
|
-
sectionOverrides:
|
|
3039
|
+
sectionOverrides: ca(e.sectionOverrides, t, n)
|
|
3013
3040
|
})),
|
|
3014
3041
|
toggleNode: (t, n) => e((e) => ({
|
|
3015
3042
|
...e,
|
|
3016
|
-
nodeOverrides:
|
|
3043
|
+
nodeOverrides: ca(e.nodeOverrides, t, n)
|
|
3017
3044
|
})),
|
|
3018
3045
|
clearSection: (t) => e((e) => ({
|
|
3019
3046
|
...e,
|
|
3020
|
-
sectionOverrides:
|
|
3047
|
+
sectionOverrides: sa(e.sectionOverrides, t, void 0)
|
|
3021
3048
|
})),
|
|
3022
3049
|
clearNode: (t) => e((e) => ({
|
|
3023
3050
|
...e,
|
|
3024
|
-
nodeOverrides:
|
|
3051
|
+
nodeOverrides: sa(e.nodeOverrides, t, void 0)
|
|
3025
3052
|
})),
|
|
3026
|
-
reset: () => e(
|
|
3053
|
+
reset: () => e(na)
|
|
3027
3054
|
}), {
|
|
3028
|
-
name:
|
|
3029
|
-
storage:
|
|
3030
|
-
partialize:
|
|
3031
|
-
})),
|
|
3032
|
-
let t =
|
|
3055
|
+
name: ia(e.storageKey),
|
|
3056
|
+
storage: jt(z),
|
|
3057
|
+
partialize: la
|
|
3058
|
+
})), da = /* @__PURE__ */ new Map(), fa = (e) => {
|
|
3059
|
+
let t = da.get(e);
|
|
3033
3060
|
if (t) return t;
|
|
3034
|
-
let n =
|
|
3035
|
-
return
|
|
3036
|
-
},
|
|
3061
|
+
let n = ua({ storageKey: e });
|
|
3062
|
+
return da.set(e, n), n;
|
|
3063
|
+
}, pa = (e, t) => {
|
|
3037
3064
|
let n = X(2), r;
|
|
3038
|
-
return n[0] === e ? r = n[1] : (r =
|
|
3039
|
-
},
|
|
3065
|
+
return n[0] === e ? r = n[1] : (r = fa(e), n[0] = e, n[1] = r), At(r, t);
|
|
3066
|
+
}, ma = [], ha = (e, t) => typeof e == "string" && t.some((t) => t.id === e), ga = (e) => {
|
|
3040
3067
|
let t = e.toLowerCase().split("."), n = [];
|
|
3041
3068
|
for (let e = 1; e < t.length; e += 1) n.push(t.slice(e).join("."));
|
|
3042
3069
|
return n;
|
|
3043
|
-
},
|
|
3070
|
+
}, _a = (e, t, n) => {
|
|
3044
3071
|
if (n) return e.defaults.folder;
|
|
3045
3072
|
let r = e.fileNames[t.toLowerCase()];
|
|
3046
3073
|
if (r) return r;
|
|
3047
|
-
for (let n of
|
|
3074
|
+
for (let n of ga(t)) {
|
|
3048
3075
|
let t = e.fileExtensions[n];
|
|
3049
3076
|
if (t) return t;
|
|
3050
3077
|
}
|
|
3051
3078
|
return e.defaults.file;
|
|
3052
|
-
},
|
|
3079
|
+
}, va = (e, t) => {
|
|
3053
3080
|
if (t.fontId) {
|
|
3054
3081
|
let n = e.fonts.find((n) => n.fontFamily === `${e.id}-${t.fontId}`);
|
|
3055
3082
|
if (n) return n.fontFamily;
|
|
3056
3083
|
}
|
|
3057
3084
|
return e.fonts[0]?.fontFamily;
|
|
3058
|
-
},
|
|
3085
|
+
}, ya = (e) => {
|
|
3059
3086
|
let t = /^\\([0-9a-fA-F]+)$/.exec(e);
|
|
3060
3087
|
return t ? String.fromCodePoint(Number.parseInt(t[1], 16)) : e;
|
|
3061
|
-
},
|
|
3088
|
+
}, ba = (e, t, n = !1) => {
|
|
3062
3089
|
if (!e) return;
|
|
3063
|
-
let r =
|
|
3090
|
+
let r = _a(e, t, n);
|
|
3064
3091
|
if (!r) return;
|
|
3065
3092
|
let i = e.definitions[r];
|
|
3066
3093
|
if (!i?.fontCharacter) return;
|
|
3067
|
-
let a =
|
|
3094
|
+
let a = va(e, i);
|
|
3068
3095
|
if (a) return {
|
|
3069
3096
|
fontFamily: a,
|
|
3070
|
-
fontCharacter:
|
|
3097
|
+
fontCharacter: ya(i.fontCharacter),
|
|
3071
3098
|
fontColor: i.fontColor
|
|
3072
3099
|
};
|
|
3073
|
-
},
|
|
3100
|
+
}, xa = "data-pstdio-file-icon-fonts", Sa = (e) => {
|
|
3074
3101
|
let t = e.src.map((e) => `url("${e.url}")${e.format ? ` format("${e.format}")` : ""}`).join(", ");
|
|
3075
3102
|
return [
|
|
3076
3103
|
"@font-face {",
|
|
@@ -3080,27 +3107,27 @@ var Ii = (e) => {
|
|
|
3080
3107
|
` font-style: ${e.style ?? "normal"};`,
|
|
3081
3108
|
"}"
|
|
3082
3109
|
].join("\n");
|
|
3083
|
-
},
|
|
3110
|
+
}, Ca = (e, t) => {
|
|
3084
3111
|
if (typeof document > "u") return;
|
|
3085
|
-
let n = document.querySelector(`style[${
|
|
3086
|
-
n || (n = document.createElement("style"), n.setAttribute(
|
|
3112
|
+
let n = document.querySelector(`style[${xa}]`);
|
|
3113
|
+
n || (n = document.createElement("style"), n.setAttribute(xa, ""), document.head.appendChild(n));
|
|
3087
3114
|
let r = t.find((t) => t.id === e);
|
|
3088
|
-
n.textContent = (r?.fonts ?? []).map(
|
|
3089
|
-
},
|
|
3090
|
-
if (typeof window > "u") return
|
|
3091
|
-
let t = z().getItem(
|
|
3092
|
-
return
|
|
3093
|
-
},
|
|
3094
|
-
let t = X(18), { children: n, themePreferences: r } = e, i = r === void 0 ?
|
|
3095
|
-
t[0] === i ? a = t[1] : (a = () =>
|
|
3115
|
+
n.textContent = (r?.fonts ?? []).map(Sa).join("\n\n");
|
|
3116
|
+
}, wa = "file-icon-theme-preference", Ta = (e) => e.find((e) => e.id.endsWith(".seti"))?.id ?? e[0]?.id ?? null, Ea = We(null), Da = (e) => {
|
|
3117
|
+
if (typeof window > "u") return Ta(e);
|
|
3118
|
+
let t = z().getItem(wa);
|
|
3119
|
+
return ha(t, e) ? t : Ta(e);
|
|
3120
|
+
}, Oa = (e) => {
|
|
3121
|
+
let t = X(18), { children: n, themePreferences: r } = e, i = r === void 0 ? ma : r, a;
|
|
3122
|
+
t[0] === i ? a = t[1] : (a = () => Da(i), t[0] = i, t[1] = a);
|
|
3096
3123
|
let [o, s] = $(a), c, l;
|
|
3097
3124
|
t[2] !== o || t[3] !== i ? (c = () => {
|
|
3098
|
-
let e =
|
|
3125
|
+
let e = ha(o, i) ? o : Ta(i);
|
|
3099
3126
|
if (e !== o) {
|
|
3100
3127
|
s(e);
|
|
3101
3128
|
return;
|
|
3102
3129
|
}
|
|
3103
|
-
|
|
3130
|
+
Ca(e, i), typeof window < "u" && e && z().setItem(wa, e);
|
|
3104
3131
|
}, l = [o, i], t[2] = o, t[3] = i, t[4] = c, t[5] = l) : (c = t[4], l = t[5]), qe(c, l);
|
|
3105
3132
|
let u;
|
|
3106
3133
|
if (t[6] !== o || t[7] !== i) {
|
|
@@ -3115,16 +3142,16 @@ var Ii = (e) => {
|
|
|
3115
3142
|
setFileIconThemePreference: s
|
|
3116
3143
|
}, t[11] = d, t[12] = o, t[13] = i, t[14] = f) : f = t[14];
|
|
3117
3144
|
let p;
|
|
3118
|
-
return t[15] !== n || t[16] !== f ? (p = /* @__PURE__ */ Z(
|
|
3145
|
+
return t[15] !== n || t[16] !== f ? (p = /* @__PURE__ */ Z(Ea, {
|
|
3119
3146
|
value: f,
|
|
3120
3147
|
children: n
|
|
3121
3148
|
}), t[15] = n, t[16] = f, t[17] = p) : p = t[17], p;
|
|
3122
|
-
},
|
|
3123
|
-
let e = Ke(
|
|
3149
|
+
}, ka = () => {
|
|
3150
|
+
let e = Ke(Ea);
|
|
3124
3151
|
if (!e) throw Error("useFileIconThemePreference must be used within a FileIconThemePreferenceProvider");
|
|
3125
3152
|
return e;
|
|
3126
|
-
},
|
|
3127
|
-
let { isDirectory: n = !1, theme: r, size: a = 16 } = t, o =
|
|
3153
|
+
}, Aa = (e, t = {}) => {
|
|
3154
|
+
let { isDirectory: n = !1, theme: r, size: a = 16 } = t, o = ba(r, e, n);
|
|
3128
3155
|
if (o) {
|
|
3129
3156
|
let e = {
|
|
3130
3157
|
fontFamily: `"${o.fontFamily}"`,
|
|
@@ -3139,11 +3166,11 @@ var Ii = (e) => {
|
|
|
3139
3166
|
children: o.fontCharacter
|
|
3140
3167
|
});
|
|
3141
3168
|
}
|
|
3142
|
-
if (n) return /* @__PURE__ */ Z(
|
|
3169
|
+
if (n) return /* @__PURE__ */ Z(it, { size: a });
|
|
3143
3170
|
let s = i(e);
|
|
3144
3171
|
return /* @__PURE__ */ Z(s, { size: a });
|
|
3145
3172
|
};
|
|
3146
3173
|
//#endregion
|
|
3147
|
-
export {
|
|
3174
|
+
export { Ft as Activity, o as ActivityAvatar, r as ActivityComment, Pt as ActivityComposer, n as ActivityEvent, t as ActivityFeed, a as ActivityHeader, l as ActivityReply, p as ActivityRoot, d as ActivityTimeline, c as AlertMessage, Mn as AttachedMenu, Pn as AttachedPanel, k as AttachmentChip, Kn as Breadcrumb, Fn as BubbleButton, In as BubblePanel, pe as ChakraProvider, e as Checkbox, D as Chip, Jn as ContentPlaceholder, Yn as ContentPlaceholderLabel, Xn as CopyButton, It as DEFAULT_PALETTE_ASSET_LIMIT, Ln as DeleteConfirmationModal, L as EmptyState, Zn as ErrorBoundary, Oa as FileIconThemePreferenceProvider, Rn as FolderPicker, zn as FolderPickerDialog, g as Header, fn as HorizontalMenuStack, ir as IconColorPicker, sr as IntegrationCard, pn as ItemSection, b as ListRow, kn as NotificationCenter, gn as PANEL_HEADER_CONTROL_SIZE, hn as PANEL_HEADER_HEIGHT, _n as PANEL_HEADER_TAB_SIZE, en as Palette, un as PaletteShortcut, ee as Radio, R as RadioGroup, S as ResizableSplitLayout, _ as ResourceActionMenu, u as ResourceBadge, y as ResourceContextMenu, h as ScrollArea, Qt as SearchModalContent, v as SearchableMenu, pr as SegmentedControl, N as SessionIndicator, Pr as Sidenav, ar as SimpleCard, or as SimpleCardBody, A as Slider, s as Switch, Ii as TagEditor, Di as TagEditorHeading, Ri as TagEditorSaveBar, Wi as TagSettingsPanel, er as TagSwatch, ue as ThemePreferenceProvider, hr as Toaster, m as Tooltip, C as TreeList, x as TreeListDragProvider, yi as WindowTabs, Ei as WindowTitleBar, I as WorkspaceBadge, Ca as applyFileIconThemePreference, ie as applyThemePreference, ta as applyTreeListOrder, ui as buildTabVisibilityMenuActions, ci as buildTreeVisibilityMenuActions, w as createGlyphIcon, V as createMonacoThemeFromVsCodeTheme, H as createThemePreferenceFromVsCodeTheme, ma as defaultFileIconThemePreferences, U as defaultThemePreferences, Ht as filterPaletteEntries, ri as filterVisibleNodes, ii as filterVisibleSections, li as filterVisibleTabs, i as getFileTypeIcon, E as getIconComponent, oe as getInitialThemePreference, Xr as getTabVisibilityStore, se as getThemePreferenceClassName, le as getThemePreferenceClassNames, re as getThemePreferenceMode, Qi as getTreeListOrderStore, fa as getTreeListVisibilityStore, P as handleDialogAcceptShortcut, f as installPrismGlobal, ha as isFileIconThemePreference, ae as isThemePreference, O as optionColors, T as optionIcons, ne as psTheme, Aa as resolveFileIconElement, ba as resolveFileIconGlyph, F as resolveSessionIndicatorColor, M as resolveSessionIndicatorIcon, $r as resolveVisibility, j as sessionCompletionStatuses, mr as toaster, ka as useFileIconThemePreference, Er as useSidenavStore, Zr as useTabVisibilityStore, ce as useThemePreference, $i as useTreeListOrderStore, pa as useTreeListVisibilityStore };
|
|
3148
3175
|
|
|
3149
3176
|
//# sourceMappingURL=index.js.map
|