@pstdio/ui 0.35.0 → 0.36.1
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-DGDnQ6pb.js → MermaidComponent-Cxg7NtjX.js} +2 -2
- package/dist/{MermaidComponent-DGDnQ6pb.js.map → MermaidComponent-Cxg7NtjX.js.map} +1 -1
- package/dist/chat-ui.d.ts +3 -3
- package/dist/chat-ui.js +1 -1
- package/dist/{data-table-stats-row-DNJG8tLZ.js → data-table-stats-row-UuTinYfL.js} +2 -2
- package/dist/{data-table-stats-row-DNJG8tLZ.js.map → data-table-stats-row-UuTinYfL.js.map} +1 -1
- package/dist/data-table.d.ts +32 -1
- package/dist/data-table.js +540 -406
- package/dist/data-table.js.map +1 -1
- package/dist/index.d.ts +17 -21
- package/dist/index.js +861 -907
- package/dist/index.js.map +1 -1
- package/dist/kanban-renderer.d.ts +3 -1
- package/dist/kanban-renderer.js +171 -171
- package/dist/kanban-renderer.js.map +1 -1
- package/dist/{param-editor-IJzw1cA2.js → param-editor-I0dKQeeZ.js} +2 -2
- package/dist/{param-editor-IJzw1cA2.js.map → param-editor-I0dKQeeZ.js.map} +1 -1
- package/dist/{param-editor-field-DscIjv8s.js → param-editor-field-CBguLs_b.js} +2 -2
- package/dist/{param-editor-field-DscIjv8s.js.map → param-editor-field-CBguLs_b.js.map} +1 -1
- package/dist/param-editor.js +2 -2
- package/dist/{rich-text-DtQpHBlX.js → rich-text-BgDvOEGH.js} +657 -654
- package/dist/rich-text-BgDvOEGH.js.map +1 -0
- package/dist/rich-text.js +1 -1
- package/dist/{theme-kSkOHzbV.js → theme-0cbWICbg.js} +247 -163
- package/dist/theme-0cbWICbg.js.map +1 -0
- package/dist/theme.js +1 -1
- package/dist/{workspace-badge-CkJ_jTQw.d.ts → workspace-badge-Brm3Xr3m.d.ts} +1 -1
- package/dist/{workspace-badge-9g78pXHS.js → workspace-badge-DrvH8WKV.js} +38 -42
- package/dist/workspace-badge-DrvH8WKV.js.map +1 -0
- package/package.json +2 -2
- package/dist/rich-text-DtQpHBlX.js.map +0 -1
- package/dist/theme-kSkOHzbV.js.map +0 -1
- package/dist/workspace-badge-9g78pXHS.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -3,31 +3,31 @@ 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";
|
|
5
5
|
import { a as w, i as T, n as E, o as D, r as O, s as k, t as A } from "./slider-hwHYe98I.js";
|
|
6
|
-
import { a as j, i as M, n as N, o as P, r as F, t as I } from "./workspace-badge-
|
|
6
|
+
import { a as j, i as M, n as N, o as P, r as F, t as I } from "./workspace-badge-DrvH8WKV.js";
|
|
7
7
|
import { t as L } from "./empty-state-3mVV_pV-.js";
|
|
8
|
-
import { n as
|
|
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
|
|
11
|
-
import { a as
|
|
12
|
-
import { AbsoluteCenter as de, Badge as W, Box as G, Breadcrumb as K, Button as
|
|
13
|
-
import { c as
|
|
14
|
-
import { Fragment as
|
|
15
|
-
import * as
|
|
16
|
-
import { Component as
|
|
17
|
-
import { ArrowLeft as
|
|
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
|
|
10
|
+
import { a as te, i as B, n as V, r as H, t as ne } from "./theme-0cbWICbg.js";
|
|
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
|
+
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
|
+
import { c as X } from "react/compiler-runtime";
|
|
14
|
+
import { Fragment as Be, jsx as Z, jsxs as Q } from "react/jsx-runtime";
|
|
15
|
+
import * as Ve from "react";
|
|
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, Folder as rt, FolderPlus as it, GripVertical as at, Home as ot, Minus as st, Option as ct, Paperclip as lt, Plus as ut, Search as dt, SquareArrowOutUpRight as ft, Trash2 as pt, X as mt } from "lucide-react";
|
|
18
|
+
import { useVirtualizer as ht } from "@tanstack/react-virtual";
|
|
19
|
+
import { DndContext as gt, KeyboardSensor as _t, PointerSensor as vt, closestCenter as yt, useSensor as bt, useSensors as xt } from "@dnd-kit/core";
|
|
20
|
+
import { SortableContext as St, arrayMove as Ct, horizontalListSortingStrategy as wt, sortableKeyboardCoordinates as Tt, useSortable as Et, verticalListSortingStrategy as Dt } from "@dnd-kit/sortable";
|
|
21
|
+
import { CSS as Ot } from "@dnd-kit/utilities";
|
|
22
|
+
import { useStore as kt } from "zustand";
|
|
23
|
+
import { createJSONStorage as At, persist as jt } from "zustand/middleware";
|
|
24
|
+
import { createStore as Mt } from "zustand/vanilla";
|
|
25
25
|
//#region src/components/activity/activity-composer.tsx
|
|
26
|
-
var
|
|
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, _] =
|
|
26
|
+
var Nt = (e) => {
|
|
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
|
};
|
|
30
|
-
return /* @__PURE__ */
|
|
30
|
+
return /* @__PURE__ */ Z(Fe.form, {
|
|
31
31
|
width: "full",
|
|
32
32
|
background: "bg",
|
|
33
33
|
borderWidth: y ? "0" : "1px",
|
|
@@ -40,14 +40,14 @@ var Pt = (e) => {
|
|
|
40
40
|
e.preventDefault(), b && (p?.(v.trim()), n === void 0 && _(""));
|
|
41
41
|
},
|
|
42
42
|
...h,
|
|
43
|
-
children: /* @__PURE__ */
|
|
43
|
+
children: /* @__PURE__ */ Q(ye, {
|
|
44
44
|
alignItems: "flex-start",
|
|
45
45
|
gap: "xs",
|
|
46
46
|
padding: y ? "sm" : "md",
|
|
47
|
-
children: [t ? /* @__PURE__ */
|
|
47
|
+
children: [t ? /* @__PURE__ */ Z(o, { actor: t }) : null, /* @__PURE__ */ Q(G, {
|
|
48
48
|
flex: "1",
|
|
49
49
|
minW: "0",
|
|
50
|
-
children: [/* @__PURE__ */
|
|
50
|
+
children: [/* @__PURE__ */ Z(Me, {
|
|
51
51
|
value: v,
|
|
52
52
|
rows: s,
|
|
53
53
|
resize: "none",
|
|
@@ -60,36 +60,36 @@ var Pt = (e) => {
|
|
|
60
60
|
placeholder: i,
|
|
61
61
|
_placeholder: { color: "fg.subtle" },
|
|
62
62
|
onChange: (e) => x(e.currentTarget.value)
|
|
63
|
-
}), /* @__PURE__ */
|
|
63
|
+
}), /* @__PURE__ */ Q(ye, {
|
|
64
64
|
gap: "2xs",
|
|
65
65
|
marginTop: y ? "0" : "sm",
|
|
66
66
|
children: [
|
|
67
67
|
u,
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ Z(ke, {}),
|
|
69
|
+
/* @__PURE__ */ Z(m, {
|
|
70
70
|
content: c,
|
|
71
|
-
children: /* @__PURE__ */
|
|
71
|
+
children: /* @__PURE__ */ Z(xe, {
|
|
72
72
|
size: "2xs",
|
|
73
73
|
variant: "ghost",
|
|
74
74
|
"aria-label": c,
|
|
75
75
|
type: "button",
|
|
76
76
|
onClick: d,
|
|
77
|
-
children: /* @__PURE__ */
|
|
78
|
-
as:
|
|
77
|
+
children: /* @__PURE__ */ Z(be, {
|
|
78
|
+
as: lt,
|
|
79
79
|
boxSize: "14px"
|
|
80
80
|
})
|
|
81
81
|
})
|
|
82
82
|
}),
|
|
83
|
-
/* @__PURE__ */
|
|
83
|
+
/* @__PURE__ */ Z(m, {
|
|
84
84
|
content: l,
|
|
85
|
-
children: /* @__PURE__ */
|
|
85
|
+
children: /* @__PURE__ */ Z(xe, {
|
|
86
86
|
size: "2xs",
|
|
87
87
|
variant: "subtle",
|
|
88
88
|
"aria-label": l,
|
|
89
89
|
type: "submit",
|
|
90
90
|
disabled: !b,
|
|
91
|
-
children: /* @__PURE__ */
|
|
92
|
-
as:
|
|
91
|
+
children: /* @__PURE__ */ Z(be, {
|
|
92
|
+
as: Ze,
|
|
93
93
|
boxSize: "14px"
|
|
94
94
|
})
|
|
95
95
|
})
|
|
@@ -99,7 +99,7 @@ var Pt = (e) => {
|
|
|
99
99
|
})]
|
|
100
100
|
})
|
|
101
101
|
});
|
|
102
|
-
},
|
|
102
|
+
}, Pt = {
|
|
103
103
|
Root: p,
|
|
104
104
|
Header: a,
|
|
105
105
|
Feed: t,
|
|
@@ -107,15 +107,15 @@ var Pt = (e) => {
|
|
|
107
107
|
Event: n,
|
|
108
108
|
Comment: r,
|
|
109
109
|
Reply: l,
|
|
110
|
-
Composer:
|
|
110
|
+
Composer: Nt,
|
|
111
111
|
Avatar: o
|
|
112
|
-
},
|
|
112
|
+
}, Ft = 48, It = (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
|
+
}, Lt = (e, t) => e.trimStart().startsWith(t), Rt = (e, t = [], n) => t.find((t) => t.inputPrefix && Lt(e, t.inputPrefix))?.id ?? n ?? t.find((e) => !e.inputPrefix)?.id ?? t[0]?.id, zt = (e, t = [], n) => {
|
|
116
|
+
let r = t.find((t) => t.id === n && t.inputPrefix && Lt(e, t.inputPrefix));
|
|
117
117
|
return r?.inputPrefix ? e.trimStart().slice(r.inputPrefix.length).trim() : e.trim();
|
|
118
|
-
},
|
|
118
|
+
}, Bt = (e, t) => {
|
|
119
119
|
let n = {};
|
|
120
120
|
return e.filter((e) => {
|
|
121
121
|
let r = e.assetType;
|
|
@@ -123,24 +123,24 @@ var Pt = (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
|
+
}, Vt = (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 || It(e).toLowerCase().includes(n));
|
|
128
|
+
return n || t.defaultAssetLimit === void 0 ? r : Bt(r, t.defaultAssetLimit);
|
|
129
|
+
}, Ht = 24, Ut = 40, Wt = 384, Gt = (e) => ({
|
|
130
130
|
id: e.id,
|
|
131
131
|
label: e.label,
|
|
132
132
|
description: e.description ?? e.secondaryLabel,
|
|
133
133
|
icon: e.icon,
|
|
134
|
-
endContent: e.endContent ?? (e.shortcut || e.isSelected ? /* @__PURE__ */
|
|
134
|
+
endContent: e.endContent ?? (e.shortcut || e.isSelected ? /* @__PURE__ */ Q(ye, {
|
|
135
135
|
gap: "2",
|
|
136
|
-
children: [e.shortcut, e.isSelected ? /* @__PURE__ */
|
|
137
|
-
as:
|
|
136
|
+
children: [e.shortcut, e.isSelected ? /* @__PURE__ */ Z(be, {
|
|
137
|
+
as: $e,
|
|
138
138
|
boxSize: "14px",
|
|
139
139
|
color: "fg.muted"
|
|
140
140
|
}) : null]
|
|
141
141
|
}) : void 0),
|
|
142
142
|
onActivate: e.onActivate
|
|
143
|
-
}),
|
|
143
|
+
}), Kt = (e) => {
|
|
144
144
|
let t = [];
|
|
145
145
|
return e.forEach((n, r) => {
|
|
146
146
|
let i = e[r - 1];
|
|
@@ -155,53 +155,53 @@ var Pt = (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
|
+
}, qt = (e, t) => e.findIndex((e) => e.type === "entry" && e.entryIndex === t), Jt = (e) => {
|
|
159
|
+
let { entries: t, activeIndex: n, emptyLabel: r, onHover: i, scrollRef: a } = e, o = Kt(t), s = qt(o, n), c = ht({
|
|
160
160
|
count: o.length,
|
|
161
161
|
getScrollElement: () => a.current,
|
|
162
|
-
estimateSize: (e) => o[e]?.type === "group" ?
|
|
162
|
+
estimateSize: (e) => o[e]?.type === "group" ? Ht : Ut,
|
|
163
163
|
getItemKey: (e) => o[e]?.id ?? e,
|
|
164
164
|
initialRect: {
|
|
165
165
|
width: 0,
|
|
166
|
-
height:
|
|
166
|
+
height: Wt
|
|
167
167
|
},
|
|
168
168
|
overscan: 6
|
|
169
169
|
});
|
|
170
|
-
return
|
|
170
|
+
return qe(() => {
|
|
171
171
|
s < 0 || c.scrollToIndex(s, {
|
|
172
172
|
align: "auto",
|
|
173
173
|
behavior: "auto"
|
|
174
174
|
});
|
|
175
|
-
}, [s, c]), t.length === 0 ? /* @__PURE__ */
|
|
175
|
+
}, [s, c]), t.length === 0 ? /* @__PURE__ */ Z(Y, {
|
|
176
176
|
textStyle: "paragraph/S/regular",
|
|
177
177
|
color: "fg.muted",
|
|
178
178
|
px: "sm",
|
|
179
179
|
py: "md",
|
|
180
180
|
children: r
|
|
181
|
-
}) : /* @__PURE__ */
|
|
181
|
+
}) : /* @__PURE__ */ Z(G, {
|
|
182
182
|
role: "listbox",
|
|
183
183
|
position: "relative",
|
|
184
184
|
width: "100%",
|
|
185
185
|
style: { height: c.getTotalSize() },
|
|
186
186
|
children: c.getVirtualItems().map((e) => {
|
|
187
187
|
let t = o[e.index];
|
|
188
|
-
return t ? /* @__PURE__ */
|
|
188
|
+
return t ? /* @__PURE__ */ Z(G, {
|
|
189
189
|
"data-index": e.index,
|
|
190
190
|
ref: c.measureElement,
|
|
191
191
|
position: "absolute",
|
|
192
192
|
left: "0",
|
|
193
193
|
width: "100%",
|
|
194
194
|
style: { top: e.start },
|
|
195
|
-
children: t.type === "group" ? /* @__PURE__ */
|
|
195
|
+
children: t.type === "group" ? /* @__PURE__ */ Z(Y, {
|
|
196
196
|
textStyle: "label/XS/medium",
|
|
197
197
|
color: "fg.muted",
|
|
198
198
|
px: "sm",
|
|
199
199
|
pt: "xs",
|
|
200
200
|
pb: "2xs",
|
|
201
201
|
children: t.label
|
|
202
|
-
}) : /* @__PURE__ */
|
|
202
|
+
}) : /* @__PURE__ */ Z(b, {
|
|
203
203
|
variant: "full-width",
|
|
204
|
-
...
|
|
204
|
+
...Gt(t.entry),
|
|
205
205
|
isSelected: t.entryIndex === n,
|
|
206
206
|
tabIndex: -1,
|
|
207
207
|
onPointerMove: () => i(t.entryIndex)
|
|
@@ -209,17 +209,17 @@ var Pt = (e) => {
|
|
|
209
209
|
}, e.key) : null;
|
|
210
210
|
})
|
|
211
211
|
});
|
|
212
|
-
},
|
|
213
|
-
let t =
|
|
212
|
+
}, Yt = (e) => e != null, Xt = (e, t) => e && t ? "space-between" : t ? "flex-end" : "flex-start", Zt = (e) => {
|
|
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 = Yt(f), a = Yt(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);
|
|
219
219
|
let w = S === void 0 ? "24rem" : S, T = C !== void 0 && C, E;
|
|
220
220
|
t[22] === g ? E = t[23] : (E = (e) => g(e.target.value), t[22] = g, t[23] = E);
|
|
221
221
|
let D;
|
|
222
|
-
t[24] !== _ || t[25] !== v || t[26] !== c || t[27] !== s || t[28] !== i || t[29] !== r || t[30] !== E ? (D = /* @__PURE__ */
|
|
222
|
+
t[24] !== _ || t[25] !== v || t[26] !== c || t[27] !== s || t[28] !== i || t[29] !== r || t[30] !== E ? (D = /* @__PURE__ */ Z(Se, {
|
|
223
223
|
ref: s,
|
|
224
224
|
value: r,
|
|
225
225
|
placeholder: i,
|
|
@@ -233,22 +233,22 @@ var Pt = (e) => {
|
|
|
233
233
|
onKeyDown: _
|
|
234
234
|
}), t[24] = _, t[25] = v, t[26] = c, t[27] = s, t[28] = i, t[29] = r, t[30] = E, t[31] = D) : D = t[31];
|
|
235
235
|
let O;
|
|
236
|
-
t[32] !== o || t[33] !== D ? (O = /* @__PURE__ */
|
|
236
|
+
t[32] !== o || t[33] !== D ? (O = /* @__PURE__ */ Z(Ce, {
|
|
237
237
|
startElement: o,
|
|
238
238
|
width: "full",
|
|
239
239
|
children: D
|
|
240
240
|
}), t[32] = o, t[33] = D, t[34] = O) : O = t[34];
|
|
241
241
|
let k;
|
|
242
|
-
t[35] !== b || t[36] !== y ? (k = y ? /* @__PURE__ */
|
|
242
|
+
t[35] !== b || t[36] !== y ? (k = y ? /* @__PURE__ */ Z(J.CloseTrigger, {
|
|
243
243
|
asChild: !0,
|
|
244
|
-
children: /* @__PURE__ */
|
|
244
|
+
children: /* @__PURE__ */ Z(me, {
|
|
245
245
|
"aria-label": b,
|
|
246
246
|
size: "sm",
|
|
247
247
|
mr: "2"
|
|
248
248
|
})
|
|
249
249
|
}) : null, t[35] = b, t[36] = y, t[37] = k) : k = t[37];
|
|
250
250
|
let A;
|
|
251
|
-
t[38] !== k || t[39] !== O ? (A = /* @__PURE__ */
|
|
251
|
+
t[38] !== k || t[39] !== O ? (A = /* @__PURE__ */ Q(J.Header, {
|
|
252
252
|
px: "0",
|
|
253
253
|
py: "0",
|
|
254
254
|
borderBottomWidth: "1px",
|
|
@@ -256,29 +256,29 @@ var Pt = (e) => {
|
|
|
256
256
|
children: [O, k]
|
|
257
257
|
}), t[38] = k, t[39] = O, t[40] = A) : A = t[40];
|
|
258
258
|
let j;
|
|
259
|
-
t[41] !== n || t[42] !== w || t[43] !== u || t[44] !== T ? (j = /* @__PURE__ */
|
|
259
|
+
t[41] !== n || t[42] !== w || t[43] !== u || t[44] !== T ? (j = /* @__PURE__ */ Z(h, {
|
|
260
260
|
maxH: w,
|
|
261
261
|
showHorizontalScrollbar: T,
|
|
262
262
|
...u,
|
|
263
263
|
children: n
|
|
264
264
|
}), t[41] = n, t[42] = w, t[43] = u, t[44] = T, t[45] = j) : j = t[45];
|
|
265
265
|
let M;
|
|
266
|
-
t[46] !== d || t[47] !== j ? (M = /* @__PURE__ */
|
|
266
|
+
t[46] !== d || t[47] !== j ? (M = /* @__PURE__ */ Q(J.Body, {
|
|
267
267
|
p: "0",
|
|
268
268
|
children: [d, j]
|
|
269
|
-
}), t[46] = d, t[47] = j, t[48] = M) : M = t[48], x = /* @__PURE__ */
|
|
269
|
+
}), t[46] = d, t[47] = j, t[48] = M) : M = t[48], x = /* @__PURE__ */ Q(Be, { children: [
|
|
270
270
|
A,
|
|
271
271
|
M,
|
|
272
|
-
e || a ? /* @__PURE__ */
|
|
273
|
-
justifyContent:
|
|
272
|
+
e || a ? /* @__PURE__ */ Q(J.Footer, {
|
|
273
|
+
justifyContent: Xt(e, a),
|
|
274
274
|
px: "sm",
|
|
275
275
|
py: "xs",
|
|
276
276
|
borderTopWidth: "1px",
|
|
277
277
|
borderTopColor: "border.subtle",
|
|
278
|
-
children: [e ? /* @__PURE__ */
|
|
278
|
+
children: [e ? /* @__PURE__ */ Z(G, {
|
|
279
279
|
minW: "0",
|
|
280
280
|
children: f
|
|
281
|
-
}) : null, a ? /* @__PURE__ */
|
|
281
|
+
}) : null, a ? /* @__PURE__ */ Z(G, {
|
|
282
282
|
flexShrink: 0,
|
|
283
283
|
children: p
|
|
284
284
|
}) : null]
|
|
@@ -286,40 +286,40 @@ var Pt = (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
|
-
},
|
|
290
|
-
let t =
|
|
289
|
+
}, Qt = (e, t, n) => typeof e == "function" ? e(t) : e ?? n, $t = (e) => {
|
|
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,
|
|
293
293
|
resetKey: x
|
|
294
294
|
}, t[0] = x, t[1] = k);
|
|
295
|
-
let A =
|
|
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 ?? Rt(C, s);
|
|
298
|
+
M = m ? m(r, C, e) : Vt(r, {
|
|
299
299
|
query: C,
|
|
300
300
|
mode: e,
|
|
301
|
-
getEffectiveQuery: (t) =>
|
|
301
|
+
getEffectiveQuery: (t) => zt(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 = Qt(l, P, null), F = Qt(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) => {
|
|
311
311
|
w(e), g?.(e);
|
|
312
312
|
}, t[15] = g, t[16] = L);
|
|
313
|
-
let
|
|
314
|
-
t[17] === j ?
|
|
313
|
+
let R = L, ee;
|
|
314
|
+
t[17] === j ? ee = t[18] : (ee = () => {
|
|
315
315
|
j?.onActivate();
|
|
316
|
-
}, t[17] = j, t[18] =
|
|
317
|
-
let z =
|
|
316
|
+
}, t[17] = j, t[18] = ee);
|
|
317
|
+
let z = ee, te;
|
|
318
318
|
t[19] === _ ? te = t[20] : (te = () => {
|
|
319
319
|
_();
|
|
320
320
|
}, t[19] = _, t[20] = te);
|
|
321
|
-
let
|
|
322
|
-
t[21] !== b || t[22] !== y || t[23] !== n || t[24] !== x ? (
|
|
321
|
+
let B = te, V, H;
|
|
322
|
+
t[21] !== b || t[22] !== y || t[23] !== n || t[24] !== x ? (H = () => {
|
|
323
323
|
let e = A.current;
|
|
324
324
|
if (A.current = {
|
|
325
325
|
open: n,
|
|
@@ -334,50 +334,50 @@ var Pt = (e) => {
|
|
|
334
334
|
e.setSelectionRange(t, t);
|
|
335
335
|
}, 0);
|
|
336
336
|
return () => clearTimeout(t);
|
|
337
|
-
},
|
|
337
|
+
}, V = [
|
|
338
338
|
b,
|
|
339
339
|
y,
|
|
340
340
|
n,
|
|
341
341
|
x
|
|
342
|
-
], t[21] = b, t[22] = y, t[23] = n, t[24] = x, t[25] =
|
|
343
|
-
let
|
|
344
|
-
t[27] === M.length ? (
|
|
342
|
+
], t[21] = b, t[22] = y, t[23] = n, t[24] = x, t[25] = V, t[26] = H) : (V = t[25], H = t[26]), qe(H, V);
|
|
343
|
+
let ne, U;
|
|
344
|
+
t[27] === M.length ? (ne = t[28], U = t[29]) : (ne = () => {
|
|
345
345
|
E((e) => Math.min(e, Math.max(M.length - 1, 0)));
|
|
346
|
-
},
|
|
347
|
-
let
|
|
348
|
-
t[30] !== j || t[31] !== T || t[32] !== h ? (
|
|
346
|
+
}, U = [M.length], t[27] = M.length, t[28] = ne, t[29] = U), qe(ne, U);
|
|
347
|
+
let re, ie;
|
|
348
|
+
t[30] !== j || t[31] !== T || t[32] !== h ? (re = () => {
|
|
349
349
|
h?.(j, T);
|
|
350
|
-
},
|
|
350
|
+
}, ie = [
|
|
351
351
|
j,
|
|
352
352
|
T,
|
|
353
353
|
h
|
|
354
|
-
], t[30] = j, t[31] = T, t[32] = h, t[33] =
|
|
355
|
-
let
|
|
356
|
-
t[35] !== j || t[36] !==
|
|
354
|
+
], t[30] = j, t[31] = T, t[32] = h, t[33] = re, t[34] = ie) : (re = t[33], ie = t[34]), qe(re, ie);
|
|
355
|
+
let ae;
|
|
356
|
+
t[35] !== j || t[36] !== B || t[37] !== M.length || t[38] !== v || t[39] !== C || t[40] !== z || t[41] !== R || t[42] !== P ? (ae = () => {
|
|
357
357
|
if (!v?.({
|
|
358
358
|
...P,
|
|
359
359
|
activeEntry: j,
|
|
360
360
|
entryCount: M.length,
|
|
361
|
-
setQuery:
|
|
361
|
+
setQuery: R,
|
|
362
362
|
setActiveIndex: E,
|
|
363
363
|
runActiveEntry: z,
|
|
364
|
-
closePalette:
|
|
364
|
+
closePalette: B
|
|
365
365
|
})) {
|
|
366
366
|
if (C.length > 0) {
|
|
367
|
-
|
|
367
|
+
R(""), E(0);
|
|
368
368
|
return;
|
|
369
369
|
}
|
|
370
|
-
|
|
370
|
+
B();
|
|
371
371
|
}
|
|
372
|
-
}, t[35] = j, t[36] =
|
|
373
|
-
let oe =
|
|
372
|
+
}, t[35] = j, t[36] = B, t[37] = M.length, t[38] = v, t[39] = C, t[40] = z, t[41] = R, t[42] = P, t[43] = ae) : ae = t[43];
|
|
373
|
+
let oe = ae, se;
|
|
374
374
|
t[44] !== M.length || t[45] !== oe || t[46] !== z ? (se = (e) => {
|
|
375
375
|
if (e.key === "ArrowDown") {
|
|
376
376
|
e.preventDefault(), E((e) => Math.min(e + 1, Math.max(M.length - 1, 0)));
|
|
377
377
|
return;
|
|
378
378
|
}
|
|
379
379
|
if (e.key === "ArrowUp") {
|
|
380
|
-
e.preventDefault(), E(
|
|
380
|
+
e.preventDefault(), E(en);
|
|
381
381
|
return;
|
|
382
382
|
}
|
|
383
383
|
if (e.key === "Enter") {
|
|
@@ -387,9 +387,9 @@ var Pt = (e) => {
|
|
|
387
387
|
e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), oe());
|
|
388
388
|
}, t[44] = M.length, t[45] = oe, t[46] = z, t[47] = se) : se = t[47];
|
|
389
389
|
let ce = se, le;
|
|
390
|
-
t[48] ===
|
|
390
|
+
t[48] === B ? le = t[49] : (le = (e) => !e.open && B(), t[48] = B, t[49] = le);
|
|
391
391
|
let ue;
|
|
392
|
-
t[50] === Symbol.for("react.memo_cache_sentinel") ? (ue = /* @__PURE__ */
|
|
392
|
+
t[50] === Symbol.for("react.memo_cache_sentinel") ? (ue = /* @__PURE__ */ Z(J.Backdrop, {}), t[50] = ue) : ue = t[50];
|
|
393
393
|
let de;
|
|
394
394
|
t[51] === Symbol.for("react.memo_cache_sentinel") ? (de = {
|
|
395
395
|
maxH: "24rem",
|
|
@@ -398,11 +398,11 @@ var Pt = (e) => {
|
|
|
398
398
|
viewportProps: { style: { overflowAnchor: "none" } }
|
|
399
399
|
}, t[51] = de) : de = t[51];
|
|
400
400
|
let W;
|
|
401
|
-
t[52] ===
|
|
402
|
-
|
|
403
|
-
}, t[52] =
|
|
401
|
+
t[52] === R ? W = t[53] : (W = (e) => {
|
|
402
|
+
R(e), E(0);
|
|
403
|
+
}, t[52] = R, t[53] = W);
|
|
404
404
|
let G;
|
|
405
|
-
t[54] !== T || t[55] !== S || t[56] !== M ? (G = /* @__PURE__ */
|
|
405
|
+
t[54] !== T || t[55] !== S || t[56] !== M ? (G = /* @__PURE__ */ Z(Jt, {
|
|
406
406
|
entries: M,
|
|
407
407
|
activeIndex: T,
|
|
408
408
|
emptyLabel: S,
|
|
@@ -410,18 +410,18 @@ var Pt = (e) => {
|
|
|
410
410
|
scrollRef: O
|
|
411
411
|
}), t[54] = T, t[55] = S, t[56] = M, t[57] = G) : G = t[57];
|
|
412
412
|
let K;
|
|
413
|
-
t[58] !== p || t[59] !== f || t[60] !== ce || t[61] !== C || t[62] !== N || t[63] !== I || t[64] !== W || t[65] !== G ? (K = /* @__PURE__ */
|
|
413
|
+
t[58] !== p || t[59] !== f || t[60] !== ce || t[61] !== C || t[62] !== N || t[63] !== I || t[64] !== W || t[65] !== G ? (K = /* @__PURE__ */ Z(J.Positioner, {
|
|
414
414
|
alignItems: "center",
|
|
415
415
|
justifyContent: "center",
|
|
416
416
|
p: "md",
|
|
417
|
-
children: /* @__PURE__ */
|
|
417
|
+
children: /* @__PURE__ */ Z(J.Content, {
|
|
418
418
|
maxW: "44rem",
|
|
419
419
|
w: "full",
|
|
420
420
|
p: "0",
|
|
421
421
|
overflow: "hidden",
|
|
422
422
|
borderWidth: "1px",
|
|
423
423
|
borderColor: "border.subtle",
|
|
424
|
-
children: /* @__PURE__ */
|
|
424
|
+
children: /* @__PURE__ */ Z(Zt, {
|
|
425
425
|
searchValue: C,
|
|
426
426
|
searchPlaceholder: I,
|
|
427
427
|
searchIcon: N,
|
|
@@ -436,28 +436,28 @@ var Pt = (e) => {
|
|
|
436
436
|
})
|
|
437
437
|
})
|
|
438
438
|
}), t[58] = p, t[59] = f, t[60] = ce, t[61] = C, t[62] = N, t[63] = I, t[64] = W, t[65] = G, t[66] = K) : K = t[66];
|
|
439
|
-
let
|
|
440
|
-
return t[67] !== n || t[68] !== le || t[69] !== K ? (
|
|
439
|
+
let q;
|
|
440
|
+
return t[67] !== n || t[68] !== le || t[69] !== K ? (q = /* @__PURE__ */ Q(J.Root, {
|
|
441
441
|
open: n,
|
|
442
442
|
onOpenChange: le,
|
|
443
443
|
children: [ue, K]
|
|
444
|
-
}), t[67] = n, t[68] = le, t[69] = K, t[70] =
|
|
444
|
+
}), t[67] = n, t[68] = le, t[69] = K, t[70] = q) : q = t[70], q;
|
|
445
445
|
};
|
|
446
|
-
function
|
|
446
|
+
function en(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 tn = {
|
|
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
|
+
}, nn = {
|
|
458
458
|
alt: {
|
|
459
459
|
label: "Option",
|
|
460
|
-
Icon:
|
|
460
|
+
Icon: ct
|
|
461
461
|
},
|
|
462
462
|
cmd: {
|
|
463
463
|
label: "Command",
|
|
@@ -477,55 +477,55 @@ var nn = {
|
|
|
477
477
|
},
|
|
478
478
|
option: {
|
|
479
479
|
label: "Option",
|
|
480
|
-
Icon:
|
|
480
|
+
Icon: ct
|
|
481
481
|
},
|
|
482
482
|
shift: { label: "Shift" }
|
|
483
|
-
},
|
|
483
|
+
}, rn = {
|
|
484
484
|
arrowleft: {
|
|
485
485
|
label: "Arrow Left",
|
|
486
|
-
Icon:
|
|
486
|
+
Icon: Ye
|
|
487
487
|
},
|
|
488
488
|
arrowright: {
|
|
489
489
|
label: "Arrow Right",
|
|
490
|
-
Icon:
|
|
490
|
+
Icon: Xe
|
|
491
491
|
}
|
|
492
|
-
},
|
|
492
|
+
}, an = () => {
|
|
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
|
-
},
|
|
500
|
-
let t =
|
|
496
|
+
}, on = (e, t = an()) => {
|
|
497
|
+
let n = e.toLowerCase(), r = t === "mac" ? nn : tn;
|
|
498
|
+
return rn[n] ?? r[n] ?? { label: e };
|
|
499
|
+
}, sn = (e) => e.split("+").map((e) => e.trim()).filter(Boolean), cn = (e) => (Array.isArray(e) ? e.map(sn) : [sn(e)]).map((e) => e.map((e) => on(e))), ln = (e) => {
|
|
500
|
+
let t = X(4), { binding: n } = e, r;
|
|
501
501
|
if (t[0] !== n) {
|
|
502
|
-
let e =
|
|
503
|
-
r = e.map((t, n) => /* @__PURE__ */
|
|
502
|
+
let e = cn(n);
|
|
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",
|
|
506
506
|
display: "inline-flex",
|
|
507
507
|
alignItems: "center",
|
|
508
508
|
justifyContent: "center",
|
|
509
509
|
"aria-label": e.label,
|
|
510
|
-
children: e.Icon ? /* @__PURE__ */
|
|
510
|
+
children: e.Icon ? /* @__PURE__ */ Z(e.Icon, {
|
|
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(un).join("+")}-${n}`)), t[0] = n, t[1] = r;
|
|
515
515
|
} else r = t[1];
|
|
516
516
|
let i;
|
|
517
|
-
return t[2] === r ? i = t[3] : (i = /* @__PURE__ */
|
|
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 un(e) {
|
|
520
520
|
return e.label;
|
|
521
521
|
}
|
|
522
522
|
//#endregion
|
|
523
523
|
//#region src/components/layout/horizontal-menu-stack.tsx
|
|
524
|
-
function
|
|
525
|
-
let t =
|
|
524
|
+
function dn(e) {
|
|
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;
|
|
528
|
-
return t[7] !== d || t[8] !== n || t[9] !== c || t[10] !== l || t[11] !== u || t[12] !== r ? (f = /* @__PURE__ */
|
|
528
|
+
return t[7] !== d || t[8] !== n || t[9] !== c || t[10] !== l || t[11] !== u || t[12] !== r ? (f = /* @__PURE__ */ Z(ye, {
|
|
529
529
|
...r,
|
|
530
530
|
h: c,
|
|
531
531
|
justify: "space-between",
|
|
@@ -539,23 +539,23 @@ function fn(e) {
|
|
|
539
539
|
}
|
|
540
540
|
//#endregion
|
|
541
541
|
//#region src/components/layout/item-section.tsx
|
|
542
|
-
var
|
|
543
|
-
let t =
|
|
542
|
+
var fn = (e) => {
|
|
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;
|
|
546
|
-
t[1] === r ? c = t[2] : (c = r && /* @__PURE__ */
|
|
546
|
+
t[1] === r ? c = t[2] : (c = r && /* @__PURE__ */ Z(Y, {
|
|
547
547
|
fontWeight: "600",
|
|
548
548
|
textStyle: "label/S/medium",
|
|
549
549
|
children: r
|
|
550
550
|
}), t[1] = r, t[2] = c);
|
|
551
551
|
let l;
|
|
552
|
-
t[3] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */
|
|
552
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ Z(he.Indicator, {
|
|
553
553
|
transition: "transform 0.2s",
|
|
554
554
|
_open: { transform: "rotate(90deg)" },
|
|
555
|
-
children: /* @__PURE__ */
|
|
555
|
+
children: /* @__PURE__ */ Z(tt, { size: 16 })
|
|
556
556
|
}), t[3] = l) : l = t[3];
|
|
557
557
|
let u;
|
|
558
|
-
t[4] === c ? u = t[5] : (u = /* @__PURE__ */
|
|
558
|
+
t[4] === c ? u = t[5] : (u = /* @__PURE__ */ Q(he.Trigger, {
|
|
559
559
|
_hover: s,
|
|
560
560
|
padding: "sm",
|
|
561
561
|
height: "2rem",
|
|
@@ -568,28 +568,28 @@ var pn = (e) => {
|
|
|
568
568
|
children: [c, l]
|
|
569
569
|
}), t[4] = c, t[5] = u);
|
|
570
570
|
let d;
|
|
571
|
-
t[6] === a ? d = t[7] : (d = a && /* @__PURE__ */
|
|
571
|
+
t[6] === a ? d = t[7] : (d = a && /* @__PURE__ */ Z(G, {
|
|
572
572
|
marginLeft: "auto",
|
|
573
|
-
onClick:
|
|
573
|
+
onClick: pn,
|
|
574
574
|
children: a
|
|
575
575
|
}), t[6] = a, t[7] = d);
|
|
576
576
|
let f;
|
|
577
|
-
t[8] !== u || t[9] !== d ? (f = /* @__PURE__ */
|
|
577
|
+
t[8] !== u || t[9] !== d ? (f = /* @__PURE__ */ Q(_e, { children: [u, d] }), t[8] = u, t[9] = d, t[10] = f) : f = t[10];
|
|
578
578
|
let p;
|
|
579
|
-
t[11] === n ? p = t[12] : (p = /* @__PURE__ */
|
|
579
|
+
t[11] === n ? p = t[12] : (p = /* @__PURE__ */ Z(he.Content, { children: n }), t[11] = n, t[12] = p);
|
|
580
580
|
let m;
|
|
581
|
-
return t[13] !== o || t[14] !== f || t[15] !== p ? (m = /* @__PURE__ */
|
|
581
|
+
return t[13] !== o || t[14] !== f || t[15] !== p ? (m = /* @__PURE__ */ Q(he.Root, {
|
|
582
582
|
defaultOpen: o,
|
|
583
583
|
width: "full",
|
|
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 pn(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 mn = "2.5rem", hn = "2xs", gn = "sm", _n = (e) => e === "urgent" ? "red" : e === "high" ? "orange" : e === "low" ? "gray" : "blue", vn = (e) => e !== "normal", yn = (e) => [
|
|
593
593
|
e.title,
|
|
594
594
|
e.body,
|
|
595
595
|
e.kind,
|
|
@@ -599,10 +599,10 @@ var hn = "2.5rem", gn = "2xs", _n = "sm", vn = (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(), bn = (e, t) => {
|
|
603
603
|
let n = t.trim().toLowerCase();
|
|
604
|
-
return n ? e.filter((e) =>
|
|
605
|
-
},
|
|
604
|
+
return n ? e.filter((e) => yn(e).includes(n)) : e;
|
|
605
|
+
}, xn = (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,31 +621,31 @@ var hn = "2.5rem", gn = "2xs", _n = "sm", vn = (e) => e === "urgent" ? "red" : e
|
|
|
621
621
|
items: r
|
|
622
622
|
}
|
|
623
623
|
].filter((e) => e.items.length > 0);
|
|
624
|
-
},
|
|
624
|
+
}, Sn = (e) => xn(e).flatMap((e) => e.items), Cn = (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(" · "), wn = (e, t) => {
|
|
630
630
|
let n = [];
|
|
631
631
|
return t.onDismiss && n.push({
|
|
632
632
|
id: "dismiss",
|
|
633
633
|
label: "Dismiss",
|
|
634
|
-
icon: /* @__PURE__ */
|
|
634
|
+
icon: /* @__PURE__ */ Z(mt, { size: 14 }),
|
|
635
635
|
tooltip: "Dismiss",
|
|
636
636
|
onAction: () => t.onDismiss?.(e)
|
|
637
637
|
}), n;
|
|
638
|
-
},
|
|
639
|
-
let t =
|
|
640
|
-
t[0] === r.priority ? a = t[1] : (a =
|
|
638
|
+
}, Tn = (e) => {
|
|
639
|
+
let t = X(15), { actions: n, item: r, onRunAction: i } = e, a;
|
|
640
|
+
t[0] === r.priority ? a = t[1] : (a = vn(r.priority) ? /* @__PURE__ */ Z(W, {
|
|
641
641
|
size: "sm",
|
|
642
|
-
colorPalette:
|
|
642
|
+
colorPalette: _n(r.priority),
|
|
643
643
|
textTransform: "capitalize",
|
|
644
644
|
flexShrink: 0,
|
|
645
645
|
children: r.priority
|
|
646
646
|
}) : null, t[0] = r.priority, t[1] = a);
|
|
647
647
|
let o;
|
|
648
|
-
t[2] === r.status ? o = t[3] : (o = r.status === "open" ? /* @__PURE__ */
|
|
648
|
+
t[2] === r.status ? o = t[3] : (o = r.status === "open" ? /* @__PURE__ */ Z(W, {
|
|
649
649
|
size: "sm",
|
|
650
650
|
colorPalette: "blue",
|
|
651
651
|
variant: "solid",
|
|
@@ -655,7 +655,7 @@ var hn = "2.5rem", gn = "2xs", _n = "sm", vn = (e) => e === "urgent" ? "red" : e
|
|
|
655
655
|
let s;
|
|
656
656
|
if (t[4] !== n || t[5] !== r || t[6] !== i) {
|
|
657
657
|
let e;
|
|
658
|
-
t[8] !== r || t[9] !== i ? (e = (e) => /* @__PURE__ */
|
|
658
|
+
t[8] !== r || t[9] !== i ? (e = (e) => /* @__PURE__ */ Z(q, {
|
|
659
659
|
size: "2xs",
|
|
660
660
|
variant: "outline",
|
|
661
661
|
colorPalette: e.destructive ? "red" : "gray",
|
|
@@ -663,14 +663,14 @@ var hn = "2.5rem", gn = "2xs", _n = "sm", vn = (e) => e === "urgent" ? "red" : e
|
|
|
663
663
|
onClick: (t) => {
|
|
664
664
|
t.stopPropagation(), i?.(r, e);
|
|
665
665
|
},
|
|
666
|
-
children: /* @__PURE__ */
|
|
666
|
+
children: /* @__PURE__ */ Z(Y, {
|
|
667
667
|
truncate: !0,
|
|
668
668
|
children: e.label
|
|
669
669
|
})
|
|
670
670
|
}, e.id), t[8] = r, t[9] = i, t[10] = e) : e = t[10], s = n.map(e), t[4] = n, t[5] = r, t[6] = i, t[7] = s;
|
|
671
671
|
} else s = t[7];
|
|
672
672
|
let c;
|
|
673
|
-
return t[11] !== a || t[12] !== o || t[13] !== s ? (c = /* @__PURE__ */
|
|
673
|
+
return t[11] !== a || t[12] !== o || t[13] !== s ? (c = /* @__PURE__ */ Q(ye, {
|
|
674
674
|
gap: "2",
|
|
675
675
|
minW: "0",
|
|
676
676
|
flexWrap: "wrap",
|
|
@@ -681,14 +681,14 @@ var hn = "2.5rem", gn = "2xs", _n = "sm", vn = (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 =
|
|
686
|
-
return /* @__PURE__ */
|
|
684
|
+
}, En = (e) => {
|
|
685
|
+
let { activeIndex: t, items: n, onActivateItem: r, onActiveIndexChange: i, onRunAction: a } = e, o = xn(n), s = 0;
|
|
686
|
+
return /* @__PURE__ */ Z(je, {
|
|
687
687
|
gap: "2xs",
|
|
688
688
|
py: "xs",
|
|
689
|
-
children: o.map((n) => /* @__PURE__ */
|
|
689
|
+
children: o.map((n) => /* @__PURE__ */ Q(je, {
|
|
690
690
|
gap: "2xs",
|
|
691
|
-
children: [/* @__PURE__ */
|
|
691
|
+
children: [/* @__PURE__ */ Z(Y, {
|
|
692
692
|
textStyle: "label/XS/medium",
|
|
693
693
|
color: "fg.muted",
|
|
694
694
|
px: "sm",
|
|
@@ -696,23 +696,23 @@ var hn = "2.5rem", gn = "2xs", _n = "sm", vn = (e) => e === "urgent" ? "red" : e
|
|
|
696
696
|
children: n.label
|
|
697
697
|
}), n.items.map((n) => {
|
|
698
698
|
let o = s;
|
|
699
|
-
return s += 1, /* @__PURE__ */
|
|
699
|
+
return s += 1, /* @__PURE__ */ Z(b, {
|
|
700
700
|
id: n.id,
|
|
701
701
|
label: n.title,
|
|
702
|
-
description:
|
|
703
|
-
icon: /* @__PURE__ */
|
|
704
|
-
as:
|
|
702
|
+
description: Cn(n),
|
|
703
|
+
icon: /* @__PURE__ */ Z(be, {
|
|
704
|
+
as: Qe,
|
|
705
705
|
boxSize: "14px"
|
|
706
706
|
}),
|
|
707
|
-
iconColor: `${
|
|
707
|
+
iconColor: `${_n(n.priority)}.500`,
|
|
708
708
|
variant: "compact",
|
|
709
709
|
isSelected: o === t,
|
|
710
|
-
endContent: /* @__PURE__ */
|
|
710
|
+
endContent: /* @__PURE__ */ Z(Tn, {
|
|
711
711
|
item: n,
|
|
712
712
|
actions: n.actions ?? [],
|
|
713
713
|
onRunAction: a
|
|
714
714
|
}),
|
|
715
|
-
actions:
|
|
715
|
+
actions: wn(n, e),
|
|
716
716
|
tabIndex: -1,
|
|
717
717
|
onActivate: () => r?.(n),
|
|
718
718
|
onPointerMove: () => i(o)
|
|
@@ -720,9 +720,9 @@ var hn = "2.5rem", gn = "2xs", _n = "sm", vn = (e) => e === "urgent" ? "red" : e
|
|
|
720
720
|
})]
|
|
721
721
|
}, n.id))
|
|
722
722
|
});
|
|
723
|
-
},
|
|
724
|
-
let e =
|
|
725
|
-
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */
|
|
723
|
+
}, Dn = () => {
|
|
724
|
+
let e = X(1), t;
|
|
725
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ Z(je, {
|
|
726
726
|
gap: "2",
|
|
727
727
|
p: "sm",
|
|
728
728
|
children: [
|
|
@@ -730,21 +730,21 @@ var hn = "2.5rem", gn = "2xs", _n = "sm", vn = (e) => e === "urgent" ? "red" : e
|
|
|
730
730
|
1,
|
|
731
731
|
2,
|
|
732
732
|
3
|
|
733
|
-
].map(
|
|
733
|
+
].map(kn)
|
|
734
734
|
}), e[0] = t) : t = e[0], t;
|
|
735
|
-
},
|
|
736
|
-
let t =
|
|
737
|
-
t[0] !== S || t[1] !== s ? (C =
|
|
735
|
+
}, On = (e) => {
|
|
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 = bn(s, S), w = Sn(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;
|
|
741
741
|
let e = setTimeout(() => x.current?.focus(), 0);
|
|
742
742
|
return () => clearTimeout(e);
|
|
743
|
-
}, O = [m], t[4] = m, t[5] = D, t[6] = O),
|
|
743
|
+
}, O = [m], t[4] = m, t[5] = D, t[6] = O), qe(D, O);
|
|
744
744
|
let k, A;
|
|
745
745
|
t[7] === T.length ? (k = t[8], A = t[9]) : (k = () => {
|
|
746
746
|
b((e) => Math.min(e, Math.max(T.length - 1, 0)));
|
|
747
|
-
}, A = [T.length], t[7] = T.length, t[8] = k, t[9] = A),
|
|
747
|
+
}, A = [T.length], t[7] = T.length, t[8] = k, t[9] = A), qe(k, A);
|
|
748
748
|
let j;
|
|
749
749
|
t[10] !== f || t[11] !== p ? (j = (e) => {
|
|
750
750
|
p === void 0 && v(e), f?.(e), b(0);
|
|
@@ -756,7 +756,7 @@ var hn = "2.5rem", gn = "2xs", _n = "sm", vn = (e) => e === "urgent" ? "red" : e
|
|
|
756
756
|
return;
|
|
757
757
|
}
|
|
758
758
|
if (e.key === "ArrowUp") {
|
|
759
|
-
e.preventDefault(), b(
|
|
759
|
+
e.preventDefault(), b(An);
|
|
760
760
|
return;
|
|
761
761
|
}
|
|
762
762
|
if (e.key === "Enter") {
|
|
@@ -772,36 +772,36 @@ var hn = "2.5rem", gn = "2xs", _n = "sm", vn = (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__ */
|
|
775
|
+
t[20] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ Z(dt, { 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",
|
|
779
779
|
showHorizontalScrollbar: !1
|
|
780
780
|
}, t[21] = I) : I = t[21];
|
|
781
781
|
let L;
|
|
782
|
-
t[22] !== y || t[23] !== h || t[24] !== i || t[25] !== C || t[26] !== g || t[27] !== e ? (L = i ? /* @__PURE__ */
|
|
782
|
+
t[22] !== y || t[23] !== h || t[24] !== i || t[25] !== C || t[26] !== g || t[27] !== e ? (L = i ? /* @__PURE__ */ Z(G, {
|
|
783
783
|
p: "sm",
|
|
784
|
-
children: /* @__PURE__ */
|
|
784
|
+
children: /* @__PURE__ */ Z(c, {
|
|
785
785
|
status: "error",
|
|
786
786
|
colorPalette: "red",
|
|
787
787
|
title: "Notifications unavailable",
|
|
788
788
|
size: "sm",
|
|
789
789
|
children: i
|
|
790
790
|
})
|
|
791
|
-
}) : g ? /* @__PURE__ */
|
|
791
|
+
}) : g ? /* @__PURE__ */ Z(Dn, {}) : 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__ */
|
|
797
|
+
}) : /* @__PURE__ */ Z(En, {
|
|
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
|
-
let
|
|
804
|
-
return t[29] !== S || t[30] !== m || t[31] !== a || t[32] !== o || t[33] !== P || t[34] !== L || t[35] !== M ? (
|
|
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(Zt, {
|
|
805
805
|
searchValue: S,
|
|
806
806
|
searchPlaceholder: "Search notifications",
|
|
807
807
|
searchIcon: F,
|
|
@@ -813,32 +813,32 @@ var hn = "2.5rem", gn = "2xs", _n = "sm", vn = (e) => e === "urgent" ? "red" : e
|
|
|
813
813
|
onSearchChange: M,
|
|
814
814
|
onSearchKeyDown: P,
|
|
815
815
|
children: L
|
|
816
|
-
}), t[29] = S, t[30] = m, t[31] = a, t[32] = o, t[33] = P, t[34] = L, t[35] = M, t[36] =
|
|
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
|
|
819
|
-
return /* @__PURE__ */
|
|
818
|
+
function kn(e) {
|
|
819
|
+
return /* @__PURE__ */ Q(je, {
|
|
820
820
|
gap: "2xs",
|
|
821
|
-
children: [/* @__PURE__ */
|
|
821
|
+
children: [/* @__PURE__ */ Z(Oe, {
|
|
822
822
|
h: "4",
|
|
823
823
|
w: e % 2 == 0 ? "68%" : "52%",
|
|
824
824
|
borderRadius: "xs"
|
|
825
|
-
}), /* @__PURE__ */
|
|
825
|
+
}), /* @__PURE__ */ Z(Oe, {
|
|
826
826
|
h: "3",
|
|
827
827
|
w: "88%",
|
|
828
828
|
borderRadius: "xs"
|
|
829
829
|
})]
|
|
830
830
|
}, e);
|
|
831
831
|
}
|
|
832
|
-
function
|
|
832
|
+
function An(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
|
|
838
|
-
let t =
|
|
837
|
+
var jn = (e) => {
|
|
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;
|
|
841
|
-
return t[3] !== n || t[4] !== r ? (i = /* @__PURE__ */
|
|
841
|
+
return t[3] !== n || t[4] !== r ? (i = /* @__PURE__ */ Z(_e, {
|
|
842
842
|
as: "aside",
|
|
843
843
|
direction: "column",
|
|
844
844
|
h: "full",
|
|
@@ -850,18 +850,18 @@ var Mn = (e) => {
|
|
|
850
850
|
...r,
|
|
851
851
|
children: n
|
|
852
852
|
}), t[3] = n, t[4] = r, t[5] = i) : i = t[5], i;
|
|
853
|
-
},
|
|
854
|
-
let t =
|
|
853
|
+
}, Mn = "20rem", Nn = (e) => {
|
|
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 ?
|
|
857
|
-
t[7] === n ? f = t[8] : (f = /* @__PURE__ */
|
|
856
|
+
let c = o === void 0 ? "28rem" : o, l = s !== void 0 && s, u = i ?? (l ? Mn : c), d = l ? "full" : c, f;
|
|
857
|
+
t[7] === n ? f = t[8] : (f = /* @__PURE__ */ Z(_e, {
|
|
858
858
|
flex: "1",
|
|
859
859
|
minH: 0,
|
|
860
860
|
direction: "column",
|
|
861
861
|
children: n
|
|
862
862
|
}), t[7] = n, t[8] = f);
|
|
863
863
|
let p;
|
|
864
|
-
return t[9] !== r || t[10] !== u || t[11] !== d || t[12] !== a || t[13] !== f ? (p = /* @__PURE__ */
|
|
864
|
+
return t[9] !== r || t[10] !== u || t[11] !== d || t[12] !== a || t[13] !== f ? (p = /* @__PURE__ */ Q(_e, {
|
|
865
865
|
direction: "column",
|
|
866
866
|
position: "relative",
|
|
867
867
|
flexShrink: 0,
|
|
@@ -873,13 +873,13 @@ var Mn = (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
|
-
},
|
|
877
|
-
let n =
|
|
876
|
+
}, Pn = Ge(function(e, t) {
|
|
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;
|
|
880
880
|
n[6] === Symbol.for("react.memo_cache_sentinel") ? (l = { borderColor: "border.accent" }, u = { borderColor: "border.accent" }, n[6] = l, n[7] = u) : (l = n[6], u = n[7]);
|
|
881
881
|
let d;
|
|
882
|
-
n[8] !== r || n[9] !== t || n[10] !== a || n[11] !== c ? (d = /* @__PURE__ */
|
|
882
|
+
n[8] !== r || n[9] !== t || n[10] !== a || n[11] !== c ? (d = /* @__PURE__ */ Z(xe, {
|
|
883
883
|
ref: t,
|
|
884
884
|
rounded: "full",
|
|
885
885
|
size: "lg",
|
|
@@ -892,12 +892,12 @@ var Mn = (e) => {
|
|
|
892
892
|
children: r
|
|
893
893
|
}), n[8] = r, n[9] = t, n[10] = a, n[11] = c, n[12] = d) : d = n[12];
|
|
894
894
|
let f = d, p;
|
|
895
|
-
n[13] !== f || n[14] !== s ? (p = s ? /* @__PURE__ */
|
|
895
|
+
n[13] !== f || n[14] !== s ? (p = s ? /* @__PURE__ */ Z(m, {
|
|
896
896
|
content: s,
|
|
897
897
|
children: f
|
|
898
898
|
}) : f, n[13] = f, n[14] = s, n[15] = p) : p = n[15];
|
|
899
899
|
let h;
|
|
900
|
-
return n[16] !== i || n[17] !== p ? (h = /* @__PURE__ */
|
|
900
|
+
return n[16] !== i || n[17] !== p ? (h = /* @__PURE__ */ Z(Fe.div, {
|
|
901
901
|
position: "fixed",
|
|
902
902
|
bottom: "6",
|
|
903
903
|
right: "6",
|
|
@@ -905,46 +905,46 @@ var Mn = (e) => {
|
|
|
905
905
|
...i,
|
|
906
906
|
children: p
|
|
907
907
|
}), n[16] = i, n[17] = p, n[18] = h) : h = n[18], h;
|
|
908
|
-
}),
|
|
909
|
-
let n =
|
|
908
|
+
}), Fn = Ge(function(e, t) {
|
|
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;
|
|
912
|
-
n[0] === a ? S = n[1] : (S = /* @__PURE__ */
|
|
912
|
+
n[0] === a ? S = n[1] : (S = /* @__PURE__ */ Z(ye, {
|
|
913
913
|
gap: "1",
|
|
914
914
|
minW: "0",
|
|
915
915
|
children: a
|
|
916
916
|
}), n[0] = a, n[1] = S);
|
|
917
917
|
let C;
|
|
918
|
-
n[2] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */
|
|
918
|
+
n[2] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ Z(ke, {}), n[2] = C) : C = n[2];
|
|
919
919
|
let w;
|
|
920
|
-
n[3] !== c || n[4] !== l ? (w = c ? /* @__PURE__ */
|
|
920
|
+
n[3] !== c || n[4] !== l ? (w = c ? /* @__PURE__ */ Z(m, {
|
|
921
921
|
content: l,
|
|
922
|
-
children: /* @__PURE__ */
|
|
922
|
+
children: /* @__PURE__ */ Z(xe, {
|
|
923
923
|
size: "2xs",
|
|
924
924
|
variant: "ghost",
|
|
925
925
|
"aria-label": l,
|
|
926
926
|
onClick: c,
|
|
927
|
-
children: /* @__PURE__ */
|
|
927
|
+
children: /* @__PURE__ */ Z(ft, { size: 16 })
|
|
928
928
|
})
|
|
929
929
|
}) : null, n[3] = c, n[4] = l, n[5] = w) : w = n[5];
|
|
930
930
|
let T;
|
|
931
|
-
n[6] !== s || n[7] !== o ? (T = o ? /* @__PURE__ */
|
|
931
|
+
n[6] !== s || n[7] !== o ? (T = o ? /* @__PURE__ */ Z(m, {
|
|
932
932
|
content: s,
|
|
933
|
-
children: /* @__PURE__ */
|
|
933
|
+
children: /* @__PURE__ */ Z(xe, {
|
|
934
934
|
size: "2xs",
|
|
935
935
|
variant: "ghost",
|
|
936
936
|
"aria-label": s,
|
|
937
937
|
onClick: o,
|
|
938
|
-
children: /* @__PURE__ */
|
|
938
|
+
children: /* @__PURE__ */ Z(st, { size: 16 })
|
|
939
939
|
})
|
|
940
940
|
}) : null, n[6] = s, n[7] = o, n[8] = T) : T = n[8];
|
|
941
941
|
let E;
|
|
942
|
-
n[9] !== w || n[10] !== T ? (E = /* @__PURE__ */
|
|
942
|
+
n[9] !== w || n[10] !== T ? (E = /* @__PURE__ */ Q(ye, {
|
|
943
943
|
gap: "1",
|
|
944
944
|
children: [w, T]
|
|
945
945
|
}), n[9] = w, n[10] = T, n[11] = E) : E = n[11];
|
|
946
946
|
let D;
|
|
947
|
-
n[12] !== S || n[13] !== E ? (D = /* @__PURE__ */
|
|
947
|
+
n[12] !== S || n[13] !== E ? (D = /* @__PURE__ */ Q(g, {
|
|
948
948
|
variant: "main",
|
|
949
949
|
gap: "sm",
|
|
950
950
|
flexShrink: 0,
|
|
@@ -955,7 +955,7 @@ var Mn = (e) => {
|
|
|
955
955
|
]
|
|
956
956
|
}), n[12] = S, n[13] = E, n[14] = D) : D = n[14];
|
|
957
957
|
let O;
|
|
958
|
-
n[15] === _ ? O = n[16] : (O = /* @__PURE__ */
|
|
958
|
+
n[15] === _ ? O = n[16] : (O = /* @__PURE__ */ Z(G, {
|
|
959
959
|
flex: "1",
|
|
960
960
|
minH: 0,
|
|
961
961
|
display: "flex",
|
|
@@ -964,13 +964,13 @@ var Mn = (e) => {
|
|
|
964
964
|
children: _
|
|
965
965
|
}), n[15] = _, n[16] = O);
|
|
966
966
|
let k;
|
|
967
|
-
n[17] !== O || n[18] !== D ? (k = /* @__PURE__ */
|
|
967
|
+
n[17] !== O || n[18] !== D ? (k = /* @__PURE__ */ Q(_e, {
|
|
968
968
|
direction: "column",
|
|
969
969
|
h: "full",
|
|
970
970
|
children: [D, O]
|
|
971
971
|
}), n[17] = O, n[18] = D, n[19] = k) : k = n[19];
|
|
972
972
|
let A;
|
|
973
|
-
return n[20] !== f || n[21] !== b || n[22] !== t || n[23] !== k || n[24] !== x || n[25] !== p || n[26] !== y ? (A = /* @__PURE__ */
|
|
973
|
+
return n[20] !== f || n[21] !== b || n[22] !== t || n[23] !== k || n[24] !== x || n[25] !== p || n[26] !== y ? (A = /* @__PURE__ */ Z(De, { children: /* @__PURE__ */ Z(Fe.section, {
|
|
974
974
|
ref: t,
|
|
975
975
|
role: "dialog",
|
|
976
976
|
"data-testid": p,
|
|
@@ -991,33 +991,33 @@ var Mn = (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
|
-
}),
|
|
995
|
-
let [t, n] =
|
|
996
|
-
return /* @__PURE__ */
|
|
994
|
+
}), In = (e) => {
|
|
995
|
+
let [t, n] = $(!1), { headline: r, buttonText: i, notificationText: a, onDelete: o, open: s, onClose: c, children: l } = e;
|
|
996
|
+
return /* @__PURE__ */ Z(J.Root, {
|
|
997
997
|
open: s,
|
|
998
998
|
onOpenChange: (e) => {
|
|
999
999
|
e.open || c();
|
|
1000
1000
|
},
|
|
1001
1001
|
closeOnInteractOutside: !1,
|
|
1002
|
-
children: /* @__PURE__ */
|
|
1003
|
-
/* @__PURE__ */
|
|
1002
|
+
children: /* @__PURE__ */ Q(De, { children: [/* @__PURE__ */ Z(J.Backdrop, {}), /* @__PURE__ */ Z(J.Positioner, { children: /* @__PURE__ */ Q(J.Content, { children: [
|
|
1003
|
+
/* @__PURE__ */ Q(J.Header, { children: [/* @__PURE__ */ Z(Y, {
|
|
1004
1004
|
textStyle: "heading/M",
|
|
1005
1005
|
children: r
|
|
1006
|
-
}), /* @__PURE__ */
|
|
1006
|
+
}), /* @__PURE__ */ Z(J.CloseTrigger, {
|
|
1007
1007
|
asChild: !0,
|
|
1008
|
-
children: /* @__PURE__ */
|
|
1008
|
+
children: /* @__PURE__ */ Z(me, { size: "sm" })
|
|
1009
1009
|
})] }),
|
|
1010
|
-
/* @__PURE__ */
|
|
1010
|
+
/* @__PURE__ */ Z(J.Body, { children: /* @__PURE__ */ Q(je, {
|
|
1011
1011
|
gap: "3",
|
|
1012
|
-
children: [a ? /* @__PURE__ */
|
|
1012
|
+
children: [a ? /* @__PURE__ */ Z(Y, { children: a }) : null, l]
|
|
1013
1013
|
}) }),
|
|
1014
|
-
/* @__PURE__ */
|
|
1014
|
+
/* @__PURE__ */ Z(J.Footer, { children: /* @__PURE__ */ Q(je, {
|
|
1015
1015
|
direction: "row",
|
|
1016
1016
|
gap: "1",
|
|
1017
|
-
children: [/* @__PURE__ */
|
|
1017
|
+
children: [/* @__PURE__ */ Z(q, {
|
|
1018
1018
|
onClick: c,
|
|
1019
1019
|
children: "Close"
|
|
1020
|
-
}), /* @__PURE__ */
|
|
1020
|
+
}), /* @__PURE__ */ Z(q, {
|
|
1021
1021
|
loading: t,
|
|
1022
1022
|
variant: "destructive",
|
|
1023
1023
|
onClick: async () => {
|
|
@@ -1033,226 +1033,180 @@ var Mn = (e) => {
|
|
|
1033
1033
|
}) })
|
|
1034
1034
|
] }) })] })
|
|
1035
1035
|
});
|
|
1036
|
-
},
|
|
1037
|
-
let n = t
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
children: "Loading..."
|
|
1179
|
-
}) : w ? /* @__PURE__ */ Q(X, {
|
|
1180
|
-
textStyle: "paragraph/S/regular",
|
|
1181
|
-
color: "red.500",
|
|
1182
|
-
p: "sm",
|
|
1183
|
-
children: w
|
|
1184
|
-
}) : A.length === 0 ? /* @__PURE__ */ Q(X, {
|
|
1185
|
-
textStyle: "paragraph/S/regular",
|
|
1186
|
-
color: "fg.muted",
|
|
1187
|
-
p: "sm",
|
|
1188
|
-
children: "No entries found."
|
|
1189
|
-
}) : /* @__PURE__ */ Q(h, {
|
|
1190
|
-
maxHeight: "320px",
|
|
1191
|
-
contentProps: { padding: "sm" },
|
|
1192
|
-
children: /* @__PURE__ */ Q(Y, {
|
|
1193
|
-
gap: "xs",
|
|
1194
|
-
role: "listbox",
|
|
1195
|
-
"aria-label": "Repository folders",
|
|
1196
|
-
onKeyDown: Vn,
|
|
1197
|
-
children: A.map((e) => /* @__PURE__ */ Q(Bn, {
|
|
1198
|
-
entry: e,
|
|
1199
|
-
selectedPath: b,
|
|
1200
|
-
selectedPathSet: k,
|
|
1201
|
-
onEntryClick: _
|
|
1202
|
-
}, e.path))
|
|
1036
|
+
}, Ln = (e) => {
|
|
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
|
+
qe(() => {
|
|
1039
|
+
f(t), m("");
|
|
1040
|
+
}, [t]);
|
|
1041
|
+
let C = n.filter((e) => e.isDirectory && e.name.toLocaleLowerCase().includes(p.toLocaleLowerCase())), w = t.replaceAll("\\", "/"), T = w.match(/^\/\/[^/]+\/[^/]+/)?.[0] ?? w.match(/^[a-z]:\//i)?.[0] ?? "/", E = w.replace(/\/+$/, "").split("/").slice(0, -1).join("/"), D = E.length < T.length ? T : E, O = w.replace(/\/+$/, "") === T.replace(/\/+$/, ""), k = async () => {
|
|
1042
|
+
if (v.trim()) {
|
|
1043
|
+
S(!0);
|
|
1044
|
+
try {
|
|
1045
|
+
await l(v), _(!1), y("");
|
|
1046
|
+
} catch {} finally {
|
|
1047
|
+
S(!1);
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
};
|
|
1051
|
+
return /* @__PURE__ */ Q(Be, { children: [
|
|
1052
|
+
/* @__PURE__ */ Z(J.Header, {
|
|
1053
|
+
css: u.header,
|
|
1054
|
+
children: /* @__PURE__ */ Z(J.Title, { children: "Open project folder" })
|
|
1055
|
+
}),
|
|
1056
|
+
/* @__PURE__ */ Q(J.Body, {
|
|
1057
|
+
css: u.body,
|
|
1058
|
+
children: [
|
|
1059
|
+
/* @__PURE__ */ Q(G, {
|
|
1060
|
+
css: u.navigation,
|
|
1061
|
+
children: [
|
|
1062
|
+
/* @__PURE__ */ Z(q, {
|
|
1063
|
+
size: "sm",
|
|
1064
|
+
variant: "outline",
|
|
1065
|
+
css: u.navigationButton,
|
|
1066
|
+
"aria-label": "Go to home directory",
|
|
1067
|
+
disabled: r || i,
|
|
1068
|
+
onClick: () => c("~"),
|
|
1069
|
+
children: /* @__PURE__ */ Z(ot, {})
|
|
1070
|
+
}),
|
|
1071
|
+
/* @__PURE__ */ Z(q, {
|
|
1072
|
+
size: "sm",
|
|
1073
|
+
variant: "outline",
|
|
1074
|
+
css: u.navigationButton,
|
|
1075
|
+
"aria-label": "Go to parent directory",
|
|
1076
|
+
disabled: r || i || O,
|
|
1077
|
+
onClick: () => c(D),
|
|
1078
|
+
children: /* @__PURE__ */ Z(Ze, {})
|
|
1079
|
+
}),
|
|
1080
|
+
/* @__PURE__ */ Z(Se, {
|
|
1081
|
+
css: u.path,
|
|
1082
|
+
size: "sm",
|
|
1083
|
+
variant: "borderless",
|
|
1084
|
+
title: d,
|
|
1085
|
+
"aria-label": "Folder path",
|
|
1086
|
+
value: d,
|
|
1087
|
+
onChange: (e) => f(e.target.value),
|
|
1088
|
+
onKeyDown: (e) => {
|
|
1089
|
+
e.key === "Enter" && c(d);
|
|
1090
|
+
},
|
|
1091
|
+
disabled: r || i
|
|
1092
|
+
}),
|
|
1093
|
+
!g && /* @__PURE__ */ Q(q, {
|
|
1094
|
+
variant: "outline",
|
|
1095
|
+
size: "sm",
|
|
1096
|
+
disabled: !t || r || i,
|
|
1097
|
+
onClick: () => _(!0),
|
|
1098
|
+
children: [/* @__PURE__ */ Z(it, {}), "New folder"]
|
|
1099
|
+
})
|
|
1100
|
+
]
|
|
1101
|
+
}),
|
|
1102
|
+
!g && /* @__PURE__ */ Z(Ce, {
|
|
1103
|
+
css: u.filter,
|
|
1104
|
+
startElement: /* @__PURE__ */ Z(dt, {}),
|
|
1105
|
+
children: /* @__PURE__ */ Z(Se, {
|
|
1106
|
+
size: "sm",
|
|
1107
|
+
"aria-label": "Filter folders",
|
|
1108
|
+
placeholder: "Filter folders",
|
|
1109
|
+
value: p,
|
|
1110
|
+
onChange: (e) => m(e.target.value)
|
|
1111
|
+
})
|
|
1112
|
+
}),
|
|
1113
|
+
g && /* @__PURE__ */ Q(G, {
|
|
1114
|
+
css: u.creation,
|
|
1115
|
+
children: [/* @__PURE__ */ Z(Se, {
|
|
1116
|
+
size: "sm",
|
|
1117
|
+
"aria-label": "New folder name",
|
|
1118
|
+
placeholder: "New folder name",
|
|
1119
|
+
autoFocus: !0,
|
|
1120
|
+
value: v,
|
|
1121
|
+
onChange: (e) => y(e.target.value),
|
|
1122
|
+
onKeyDown: (e) => {
|
|
1123
|
+
e.key === "Enter" && k();
|
|
1124
|
+
}
|
|
1125
|
+
}), /* @__PURE__ */ Q(q, {
|
|
1126
|
+
size: "sm",
|
|
1127
|
+
variant: "primary",
|
|
1128
|
+
disabled: !v.trim(),
|
|
1129
|
+
loading: x,
|
|
1130
|
+
onClick: k,
|
|
1131
|
+
children: [/* @__PURE__ */ Z(it, {}), "Create folder"]
|
|
1132
|
+
})]
|
|
1133
|
+
}),
|
|
1134
|
+
a && /* @__PURE__ */ Z(Y, {
|
|
1135
|
+
role: "alert",
|
|
1136
|
+
color: "fg.error",
|
|
1137
|
+
textStyle: "paragraph/S/regular",
|
|
1138
|
+
children: a
|
|
1139
|
+
}),
|
|
1140
|
+
/* @__PURE__ */ Z(h, {
|
|
1141
|
+
css: u.list,
|
|
1142
|
+
children: /* @__PURE__ */ Z(G, {
|
|
1143
|
+
css: u.rows,
|
|
1144
|
+
"aria-label": "Folders",
|
|
1145
|
+
children: r ? /* @__PURE__ */ Z(Y, {
|
|
1146
|
+
color: "fg.muted",
|
|
1147
|
+
children: "Loading folders..."
|
|
1148
|
+
}) : C.length === 0 ? /* @__PURE__ */ Z(Y, {
|
|
1149
|
+
color: "fg.muted",
|
|
1150
|
+
children: p ? "No matching folders." : "This folder is empty."
|
|
1151
|
+
}) : C.map((e) => /* @__PURE__ */ Z(b, {
|
|
1152
|
+
id: e.path,
|
|
1153
|
+
label: e.name,
|
|
1154
|
+
icon: /* @__PURE__ */ Z(rt, {}),
|
|
1155
|
+
disabled: r || i,
|
|
1156
|
+
onActivate: () => c(e.path)
|
|
1157
|
+
}, e.path))
|
|
1158
|
+
})
|
|
1159
|
+
})
|
|
1160
|
+
]
|
|
1161
|
+
}),
|
|
1162
|
+
/* @__PURE__ */ Q(J.Footer, {
|
|
1163
|
+
css: u.footer,
|
|
1164
|
+
children: [/* @__PURE__ */ Z(q, {
|
|
1165
|
+
size: "sm",
|
|
1166
|
+
variant: "outline",
|
|
1167
|
+
onClick: o,
|
|
1168
|
+
disabled: r || i || x,
|
|
1169
|
+
children: "Cancel"
|
|
1170
|
+
}), !g && /* @__PURE__ */ Z(q, {
|
|
1171
|
+
size: "sm",
|
|
1172
|
+
variant: "primary",
|
|
1173
|
+
onClick: s,
|
|
1174
|
+
loading: i,
|
|
1175
|
+
disabled: !t || r || x,
|
|
1176
|
+
children: "Open folder"
|
|
1177
|
+
})]
|
|
1203
1178
|
})
|
|
1204
|
-
})
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
let
|
|
1219
|
-
t[
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
children: "Select repository"
|
|
1231
|
-
}), t[48] = T, t[49] = p, t[50] = me) : me = t[50];
|
|
1232
|
-
let he;
|
|
1233
|
-
t[51] !== pe || t[52] !== me ? (he = /* @__PURE__ */ Q(q.Footer, { children: /* @__PURE__ */ $(Y, {
|
|
1234
|
-
direction: "row",
|
|
1235
|
-
gap: "sm",
|
|
1236
|
-
children: [pe, me]
|
|
1237
|
-
}) }), t[51] = pe, t[52] = me, t[53] = he) : he = t[53];
|
|
1238
|
-
let ge;
|
|
1239
|
-
t[54] !== ee.Content || t[55] !== te || t[56] !== K || t[57] !== he ? (ge = /* @__PURE__ */ $(ee.Content, { children: [
|
|
1240
|
-
te,
|
|
1241
|
-
K,
|
|
1242
|
-
he
|
|
1243
|
-
] }), t[54] = ee.Content, t[55] = te, t[56] = K, t[57] = he, t[58] = ge) : ge = t[58];
|
|
1244
|
-
let _e;
|
|
1245
|
-
t[59] !== L.Positioner || t[60] !== ge ? (_e = /* @__PURE__ */ Q(L.Positioner, { children: ge }), t[59] = L.Positioner, t[60] = ge, t[61] = _e) : _e = t[61];
|
|
1246
|
-
let J;
|
|
1247
|
-
return t[62] !== n || t[63] !== P.Root || t[64] !== F || t[65] !== I || t[66] !== _e ? (J = /* @__PURE__ */ $(P.Root, {
|
|
1179
|
+
] });
|
|
1180
|
+
}, Rn = (e) => {
|
|
1181
|
+
let t = X(15), n;
|
|
1182
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = { key: "folderPicker" }, t[0] = n) : n = t[0];
|
|
1183
|
+
let r = ze(n), i;
|
|
1184
|
+
t[1] === r ? i = t[2] : (i = r({}), t[1] = r, t[2] = i);
|
|
1185
|
+
let a = i, o;
|
|
1186
|
+
t[3] === e ? o = t[4] : (o = (t) => {
|
|
1187
|
+
t.open || e.onClose();
|
|
1188
|
+
}, t[3] = e, t[4] = o);
|
|
1189
|
+
let s;
|
|
1190
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ Z(J.Backdrop, {}), t[5] = s) : s = t[5];
|
|
1191
|
+
let c;
|
|
1192
|
+
t[6] === e ? c = t[7] : (c = /* @__PURE__ */ Z(Ln, { ...e }), t[6] = e, t[7] = c);
|
|
1193
|
+
let l;
|
|
1194
|
+
t[8] !== a.content || t[9] !== c ? (l = /* @__PURE__ */ Z(J.Positioner, { children: /* @__PURE__ */ Z(J.Content, {
|
|
1195
|
+
css: a.content,
|
|
1196
|
+
children: c
|
|
1197
|
+
}) }), t[8] = a.content, t[9] = c, t[10] = l) : l = t[10];
|
|
1198
|
+
let u;
|
|
1199
|
+
return t[11] !== e.open || t[12] !== o || t[13] !== l ? (u = /* @__PURE__ */ Q(J.Root, {
|
|
1200
|
+
placement: "center",
|
|
1201
|
+
scrollBehavior: "inside",
|
|
1202
|
+
open: e.open,
|
|
1203
|
+
onOpenChange: o,
|
|
1204
|
+
closeOnInteractOutside: !1,
|
|
1248
1205
|
lazyMount: !0,
|
|
1249
1206
|
unmountOnExit: !0,
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
children: [I, _e]
|
|
1254
|
-
}), t[62] = n, t[63] = P.Root, t[64] = F, t[65] = I, t[66] = _e, t[67] = J) : J = t[67], J;
|
|
1255
|
-
}, Un = {
|
|
1207
|
+
children: [s, l]
|
|
1208
|
+
}), t[11] = e.open, t[12] = o, t[13] = l, t[14] = u) : u = t[14], u;
|
|
1209
|
+
}, zn = {
|
|
1256
1210
|
alignItems: "center",
|
|
1257
1211
|
display: "inline-flex",
|
|
1258
1212
|
gap: "2xs",
|
|
@@ -1265,27 +1219,27 @@ var Mn = (e) => {
|
|
|
1265
1219
|
_active: { outline: "none" },
|
|
1266
1220
|
_focus: { outline: "none" },
|
|
1267
1221
|
_focusVisible: { outline: "none" }
|
|
1268
|
-
},
|
|
1269
|
-
...
|
|
1222
|
+
}, Bn = {
|
|
1223
|
+
...zn,
|
|
1270
1224
|
color: "fg",
|
|
1271
1225
|
cursor: "default",
|
|
1272
1226
|
textDecoration: "none",
|
|
1273
1227
|
_hover: { textDecoration: "none" }
|
|
1274
|
-
},
|
|
1275
|
-
let t =
|
|
1276
|
-
if (r && !
|
|
1228
|
+
}, Vn = (e) => !!(e.url || e.onClick), Hn = (e) => {
|
|
1229
|
+
let t = X(14), { item: n, isCurrent: r, linkComponent: i } = e;
|
|
1230
|
+
if (r && !Vn(n)) {
|
|
1277
1231
|
let e;
|
|
1278
|
-
return t[0] === n.title ? e = t[1] : (e = /* @__PURE__ */
|
|
1279
|
-
...
|
|
1232
|
+
return t[0] === n.title ? e = t[1] : (e = /* @__PURE__ */ Z(K.CurrentLink, {
|
|
1233
|
+
...Bn,
|
|
1280
1234
|
children: n.title
|
|
1281
1235
|
}), t[0] = n.title, t[1] = e), e;
|
|
1282
1236
|
}
|
|
1283
1237
|
if (n.url && i) {
|
|
1284
1238
|
let e;
|
|
1285
|
-
return t[2] !== i || t[3] !== n.title || t[4] !== n.url ? (e = /* @__PURE__ */
|
|
1239
|
+
return t[2] !== i || t[3] !== n.title || t[4] !== n.url ? (e = /* @__PURE__ */ Z(K.Link, {
|
|
1286
1240
|
asChild: !0,
|
|
1287
|
-
...
|
|
1288
|
-
children: /* @__PURE__ */
|
|
1241
|
+
...zn,
|
|
1242
|
+
children: /* @__PURE__ */ Z(i, {
|
|
1289
1243
|
to: n.url,
|
|
1290
1244
|
children: n.title
|
|
1291
1245
|
})
|
|
@@ -1293,74 +1247,74 @@ var Mn = (e) => {
|
|
|
1293
1247
|
}
|
|
1294
1248
|
if (n.url) {
|
|
1295
1249
|
let e;
|
|
1296
|
-
return t[6] !== n.title || t[7] !== n.url ? (e = /* @__PURE__ */
|
|
1250
|
+
return t[6] !== n.title || t[7] !== n.url ? (e = /* @__PURE__ */ Z(K.Link, {
|
|
1297
1251
|
href: n.url,
|
|
1298
|
-
...
|
|
1252
|
+
...zn,
|
|
1299
1253
|
children: n.title
|
|
1300
1254
|
}), t[6] = n.title, t[7] = n.url, t[8] = e) : e = t[8], e;
|
|
1301
1255
|
}
|
|
1302
1256
|
if (n.onClick) {
|
|
1303
1257
|
let e;
|
|
1304
|
-
return t[9] !== n.onClick || t[10] !== n.title ? (e = /* @__PURE__ */
|
|
1258
|
+
return t[9] !== n.onClick || t[10] !== n.title ? (e = /* @__PURE__ */ Z(K.Link, {
|
|
1305
1259
|
as: "button",
|
|
1306
1260
|
type: "button",
|
|
1307
1261
|
onClick: n.onClick,
|
|
1308
|
-
...
|
|
1262
|
+
...zn,
|
|
1309
1263
|
children: n.title
|
|
1310
1264
|
}), t[9] = n.onClick, t[10] = n.title, t[11] = e) : e = t[11], e;
|
|
1311
1265
|
}
|
|
1312
1266
|
let a;
|
|
1313
|
-
return t[12] === n.title ? a = t[13] : (a = /* @__PURE__ */
|
|
1267
|
+
return t[12] === n.title ? a = t[13] : (a = /* @__PURE__ */ Z(K.Link, {
|
|
1314
1268
|
as: "span",
|
|
1315
|
-
...
|
|
1269
|
+
...Bn,
|
|
1316
1270
|
children: n.title
|
|
1317
1271
|
}), t[12] = n.title, t[13] = a), a;
|
|
1318
|
-
},
|
|
1319
|
-
let t =
|
|
1320
|
-
t[0] === e ? r = t[1] : (r = /* @__PURE__ */
|
|
1272
|
+
}, Un = (e) => {
|
|
1273
|
+
let t = X(6), { item: n } = e, r;
|
|
1274
|
+
t[0] === e ? r = t[1] : (r = /* @__PURE__ */ Z(Hn, { ...e }), t[0] = e, t[1] = r);
|
|
1321
1275
|
let i = r;
|
|
1322
1276
|
if (!n.contextMenuActions?.length) return i;
|
|
1323
1277
|
let a;
|
|
1324
1278
|
t[2] === Symbol.for("react.memo_cache_sentinel") ? (a = { placement: "bottom-start" }, t[2] = a) : a = t[2];
|
|
1325
1279
|
let o;
|
|
1326
|
-
return t[3] !== i || t[4] !== n.contextMenuActions ? (o = /* @__PURE__ */
|
|
1280
|
+
return t[3] !== i || t[4] !== n.contextMenuActions ? (o = /* @__PURE__ */ Z(y, {
|
|
1327
1281
|
actions: n.contextMenuActions,
|
|
1328
1282
|
positioning: a,
|
|
1329
1283
|
children: i
|
|
1330
1284
|
}), t[3] = i, t[4] = n.contextMenuActions, t[5] = o) : o = t[5], o;
|
|
1331
|
-
},
|
|
1332
|
-
let t =
|
|
1285
|
+
}, Wn = (e) => {
|
|
1286
|
+
let t = X(3), { separator: n } = e;
|
|
1333
1287
|
if (n === void 0) {
|
|
1334
1288
|
let e;
|
|
1335
|
-
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
1289
|
+
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ Z(K.Separator, { flexShrink: 0 }), t[0] = e) : e = t[0], e;
|
|
1336
1290
|
}
|
|
1337
1291
|
let r;
|
|
1338
|
-
return t[1] === n ? r = t[2] : (r = /* @__PURE__ */
|
|
1292
|
+
return t[1] === n ? r = t[2] : (r = /* @__PURE__ */ Z(K.Separator, {
|
|
1339
1293
|
flexShrink: 0,
|
|
1340
1294
|
children: n
|
|
1341
1295
|
}), t[1] = n, t[2] = r), r;
|
|
1342
|
-
},
|
|
1343
|
-
let n =
|
|
1296
|
+
}, Gn = Ve.forwardRef(function(e, t) {
|
|
1297
|
+
let n = X(21), r, i, a, o, s;
|
|
1344
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);
|
|
1345
1299
|
let c;
|
|
1346
1300
|
if (n[6] !== r || n[7] !== i || n[8] !== o) {
|
|
1347
1301
|
let e;
|
|
1348
1302
|
n[10] !== r || n[11] !== i.length || n[12] !== o ? (e = (e, t) => {
|
|
1349
1303
|
let n = t === i.length - 1;
|
|
1350
|
-
return /* @__PURE__ */
|
|
1304
|
+
return /* @__PURE__ */ Q(Ve.Fragment, { children: [/* @__PURE__ */ Z(K.Item, {
|
|
1351
1305
|
minW: "0",
|
|
1352
1306
|
flexShrink: +!!n,
|
|
1353
1307
|
overflow: "hidden",
|
|
1354
|
-
children: /* @__PURE__ */
|
|
1308
|
+
children: /* @__PURE__ */ Z(Un, {
|
|
1355
1309
|
item: e,
|
|
1356
1310
|
isCurrent: n,
|
|
1357
1311
|
linkComponent: r
|
|
1358
1312
|
})
|
|
1359
|
-
}), n ? null : /* @__PURE__ */
|
|
1313
|
+
}), n ? null : /* @__PURE__ */ Z(Wn, { separator: o })] }, t);
|
|
1360
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;
|
|
1361
1315
|
} else c = n[9];
|
|
1362
1316
|
let l;
|
|
1363
|
-
n[14] !== s || n[15] !== c ? (l = /* @__PURE__ */
|
|
1317
|
+
n[14] !== s || n[15] !== c ? (l = /* @__PURE__ */ Z(K.List, {
|
|
1364
1318
|
gap: s,
|
|
1365
1319
|
flexWrap: "nowrap",
|
|
1366
1320
|
minW: "0",
|
|
@@ -1369,29 +1323,29 @@ var Mn = (e) => {
|
|
|
1369
1323
|
children: c
|
|
1370
1324
|
}), n[14] = s, n[15] = c, n[16] = l) : l = n[16];
|
|
1371
1325
|
let u;
|
|
1372
|
-
return n[17] !== t || n[18] !== a || n[19] !== l ? (u = /* @__PURE__ */
|
|
1326
|
+
return n[17] !== t || n[18] !== a || n[19] !== l ? (u = /* @__PURE__ */ Z(K.Root, {
|
|
1373
1327
|
ref: t,
|
|
1374
1328
|
...a,
|
|
1375
1329
|
children: l
|
|
1376
1330
|
}), n[17] = t, n[18] = a, n[19] = l, n[20] = u) : u = n[20], u;
|
|
1377
|
-
}),
|
|
1378
|
-
let t =
|
|
1331
|
+
}), Kn = "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\")", qn = (e) => {
|
|
1332
|
+
let t = X(3), n;
|
|
1379
1333
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
1380
1334
|
backgroundClip: "padding-box",
|
|
1381
|
-
backgroundImage:
|
|
1335
|
+
backgroundImage: Kn,
|
|
1382
1336
|
display: "flex",
|
|
1383
1337
|
width: "100%"
|
|
1384
1338
|
}, t[0] = n) : n = t[0];
|
|
1385
1339
|
let r;
|
|
1386
|
-
return t[1] === e ? r = t[2] : (r = /* @__PURE__ */
|
|
1340
|
+
return t[1] === e ? r = t[2] : (r = /* @__PURE__ */ Z(G, {
|
|
1387
1341
|
...e,
|
|
1388
1342
|
css: n
|
|
1389
1343
|
}), t[1] = e, t[2] = r), r;
|
|
1390
|
-
},
|
|
1391
|
-
let t =
|
|
1392
|
-
return t[0] === e ? n = t[1] : (n = /* @__PURE__ */
|
|
1344
|
+
}, Jn = (e) => {
|
|
1345
|
+
let t = X(2), n;
|
|
1346
|
+
return t[0] === e ? n = t[1] : (n = /* @__PURE__ */ Z(G, {
|
|
1393
1347
|
p: "2",
|
|
1394
|
-
children: /* @__PURE__ */
|
|
1348
|
+
children: /* @__PURE__ */ Z(Y, {
|
|
1395
1349
|
color: "fg.muted",
|
|
1396
1350
|
fontWeight: "medium",
|
|
1397
1351
|
textStyle: "sm",
|
|
@@ -1399,7 +1353,7 @@ var Mn = (e) => {
|
|
|
1399
1353
|
...e
|
|
1400
1354
|
})
|
|
1401
1355
|
}), t[0] = e, t[1] = n), n;
|
|
1402
|
-
},
|
|
1356
|
+
}, Yn = class extends He {
|
|
1403
1357
|
state = { error: null };
|
|
1404
1358
|
static getDerivedStateFromError(e) {
|
|
1405
1359
|
return { error: e };
|
|
@@ -1412,62 +1366,62 @@ var Mn = (e) => {
|
|
|
1412
1366
|
};
|
|
1413
1367
|
render() {
|
|
1414
1368
|
let { children: e, fallback: t, label: n } = this.props, { error: r } = this.state;
|
|
1415
|
-
return r ? t || /* @__PURE__ */
|
|
1369
|
+
return r ? t || /* @__PURE__ */ Z(Xn, {
|
|
1416
1370
|
error: r,
|
|
1417
1371
|
label: n,
|
|
1418
1372
|
onReset: this.handleReset
|
|
1419
1373
|
}) : e;
|
|
1420
1374
|
}
|
|
1421
|
-
},
|
|
1422
|
-
let t =
|
|
1423
|
-
t[0] === a ? o = t[1] : (o = /* @__PURE__ */
|
|
1375
|
+
}, Xn = (e) => {
|
|
1376
|
+
let t = X(12), { error: n, label: r, onReset: i } = e, a = r ?? "Something went wrong", o;
|
|
1377
|
+
t[0] === a ? o = t[1] : (o = /* @__PURE__ */ Z(Y, {
|
|
1424
1378
|
textStyle: "paragraph/M/medium",
|
|
1425
1379
|
children: a
|
|
1426
1380
|
}), t[0] = a, t[1] = o);
|
|
1427
1381
|
let s = n.message || "An unexpected error occurred while rendering this section.", l;
|
|
1428
|
-
t[2] === s ? l = t[3] : (l = /* @__PURE__ */
|
|
1382
|
+
t[2] === s ? l = t[3] : (l = /* @__PURE__ */ Z(Y, {
|
|
1429
1383
|
textStyle: "paragraph/S/regular",
|
|
1430
1384
|
children: s
|
|
1431
1385
|
}), t[2] = s, t[3] = l);
|
|
1432
1386
|
let u;
|
|
1433
|
-
t[4] === i ? u = t[5] : (u = i ? /* @__PURE__ */
|
|
1387
|
+
t[4] === i ? u = t[5] : (u = i ? /* @__PURE__ */ Z(q, {
|
|
1434
1388
|
size: "sm",
|
|
1435
1389
|
variant: "primary",
|
|
1436
1390
|
onClick: i,
|
|
1437
1391
|
children: "Try again"
|
|
1438
1392
|
}) : null, t[4] = i, t[5] = u);
|
|
1439
1393
|
let d;
|
|
1440
|
-
t[6] !== l || t[7] !== u ? (d = /* @__PURE__ */
|
|
1394
|
+
t[6] !== l || t[7] !== u ? (d = /* @__PURE__ */ Q(je, {
|
|
1441
1395
|
gap: "sm",
|
|
1442
1396
|
children: [l, u]
|
|
1443
1397
|
}), t[6] = l, t[7] = u, t[8] = d) : d = t[8];
|
|
1444
1398
|
let f;
|
|
1445
|
-
return t[9] !== o || t[10] !== d ? (f = /* @__PURE__ */
|
|
1399
|
+
return t[9] !== o || t[10] !== d ? (f = /* @__PURE__ */ Z(qn, {
|
|
1446
1400
|
height: "100%",
|
|
1447
1401
|
width: "100%",
|
|
1448
|
-
children: /* @__PURE__ */
|
|
1402
|
+
children: /* @__PURE__ */ Z(de, { children: /* @__PURE__ */ Z(c, {
|
|
1449
1403
|
status: "error",
|
|
1450
1404
|
title: o,
|
|
1451
1405
|
children: d
|
|
1452
1406
|
}) })
|
|
1453
1407
|
}), t[9] = o, t[10] = d, t[11] = f) : f = t[11], f;
|
|
1454
|
-
},
|
|
1455
|
-
let t =
|
|
1408
|
+
}, Zn = (e) => !!e && e !== "circle", Qn = (e) => {
|
|
1409
|
+
let t = X(18), n, r, i, a, o;
|
|
1456
1410
|
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);
|
|
1457
1411
|
let s = o === void 0 || o, c;
|
|
1458
1412
|
t[6] !== r || t[7] !== i ? (c = E(r, i), t[6] = r, t[7] = i, t[8] = c) : c = t[8];
|
|
1459
1413
|
let l = c, u = `${n}.500/15`, d;
|
|
1460
|
-
t[9] !== l || t[10] !== n || t[11] !== r || t[12] !== s ? (d = s &&
|
|
1414
|
+
t[9] !== l || t[10] !== n || t[11] !== r || t[12] !== s ? (d = s && Zn(r) ? /* @__PURE__ */ Z(be, {
|
|
1461
1415
|
as: l,
|
|
1462
1416
|
boxSize: "icon-xs",
|
|
1463
1417
|
color: `${n}.500`
|
|
1464
|
-
}) : /* @__PURE__ */
|
|
1418
|
+
}) : /* @__PURE__ */ Z(G, {
|
|
1465
1419
|
boxSize: "tag-swatch-dot",
|
|
1466
1420
|
borderRadius: "full",
|
|
1467
1421
|
bg: `${n}.500`
|
|
1468
1422
|
}), t[9] = l, t[10] = n, t[11] = r, t[12] = s, t[13] = d) : d = t[13];
|
|
1469
1423
|
let f;
|
|
1470
|
-
return t[14] !== a || t[15] !== u || t[16] !== d ? (f = /* @__PURE__ */
|
|
1424
|
+
return t[14] !== a || t[15] !== u || t[16] !== d ? (f = /* @__PURE__ */ Z(fe, {
|
|
1471
1425
|
boxSize: "tag-swatch",
|
|
1472
1426
|
flexShrink: 0,
|
|
1473
1427
|
borderRadius: "compact",
|
|
@@ -1475,7 +1429,7 @@ var Mn = (e) => {
|
|
|
1475
1429
|
...a,
|
|
1476
1430
|
children: d
|
|
1477
1431
|
}), t[14] = a, t[15] = u, t[16] = d, t[17] = f) : f = t[17], f;
|
|
1478
|
-
},
|
|
1432
|
+
}, $n = Fe("button", { base: {
|
|
1479
1433
|
display: "inline-flex",
|
|
1480
1434
|
borderRadius: "compact",
|
|
1481
1435
|
cursor: "pointer",
|
|
@@ -1484,7 +1438,7 @@ var Mn = (e) => {
|
|
|
1484
1438
|
cursor: "not-allowed",
|
|
1485
1439
|
opacity: .5
|
|
1486
1440
|
}
|
|
1487
|
-
} }),
|
|
1441
|
+
} }), er = Fe("button", { base: {
|
|
1488
1442
|
boxSize: "tag-color-dot",
|
|
1489
1443
|
borderRadius: "full",
|
|
1490
1444
|
cursor: "pointer",
|
|
@@ -1493,7 +1447,7 @@ var Mn = (e) => {
|
|
|
1493
1447
|
outlineOffset: "3xs",
|
|
1494
1448
|
outlineColor: "transparent",
|
|
1495
1449
|
_selected: { outlineColor: "fg" }
|
|
1496
|
-
} }),
|
|
1450
|
+
} }), tr = Fe("button", { base: {
|
|
1497
1451
|
display: "inline-flex",
|
|
1498
1452
|
alignItems: "center",
|
|
1499
1453
|
justifyContent: "center",
|
|
@@ -1502,20 +1456,20 @@ var Mn = (e) => {
|
|
|
1502
1456
|
color: "fg.muted",
|
|
1503
1457
|
cursor: "pointer",
|
|
1504
1458
|
_hover: { bg: "bg.hover" }
|
|
1505
|
-
} }),
|
|
1506
|
-
let t =
|
|
1459
|
+
} }), nr = (e) => {
|
|
1460
|
+
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;
|
|
1507
1461
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (b = { placement: "bottom-start" }, t[0] = b) : b = t[0];
|
|
1508
1462
|
let x;
|
|
1509
|
-
t[1] !== n || t[2] !== i || t[3] !== m || t[4] !== h ? (x = /* @__PURE__ */
|
|
1463
|
+
t[1] !== n || t[2] !== i || t[3] !== m || t[4] !== h ? (x = /* @__PURE__ */ Z(Qn, {
|
|
1510
1464
|
color: n,
|
|
1511
1465
|
icon: i,
|
|
1512
1466
|
iconOptions: m,
|
|
1513
1467
|
showIcon: h
|
|
1514
1468
|
}), t[1] = n, t[2] = i, t[3] = m, t[4] = h, t[5] = x) : x = t[5];
|
|
1515
1469
|
let S;
|
|
1516
|
-
t[6] !== v || t[7] !== c || t[8] !== x ? (S = /* @__PURE__ */
|
|
1470
|
+
t[6] !== v || t[7] !== c || t[8] !== x ? (S = /* @__PURE__ */ Z(Ee.Trigger, {
|
|
1517
1471
|
asChild: !0,
|
|
1518
|
-
children: /* @__PURE__ */
|
|
1472
|
+
children: /* @__PURE__ */ Z($n, {
|
|
1519
1473
|
type: "button",
|
|
1520
1474
|
disabled: c,
|
|
1521
1475
|
"aria-label": v,
|
|
@@ -1523,7 +1477,7 @@ var Mn = (e) => {
|
|
|
1523
1477
|
})
|
|
1524
1478
|
}), t[6] = v, t[7] = c, t[8] = x, t[9] = S) : S = t[9];
|
|
1525
1479
|
let C = h ? "tag-picker" : "tag-picker-color-only", w;
|
|
1526
|
-
t[10] === g ? w = t[11] : (w = /* @__PURE__ */
|
|
1480
|
+
t[10] === g ? w = t[11] : (w = /* @__PURE__ */ Z(Y, {
|
|
1527
1481
|
textStyle: "label/S/medium",
|
|
1528
1482
|
color: "fg.muted",
|
|
1529
1483
|
children: g
|
|
@@ -1531,7 +1485,7 @@ var Mn = (e) => {
|
|
|
1531
1485
|
let E = `repeat(${h ? 10 : 5}, 1fr)`, D;
|
|
1532
1486
|
if (t[12] !== n || t[13] !== p || t[14] !== o) {
|
|
1533
1487
|
let e;
|
|
1534
|
-
t[16] !== n || t[17] !== o ? (e = (e) => /* @__PURE__ */
|
|
1488
|
+
t[16] !== n || t[17] !== o ? (e = (e) => /* @__PURE__ */ Z(er, {
|
|
1535
1489
|
type: "button",
|
|
1536
1490
|
bg: `${e}.500`,
|
|
1537
1491
|
"aria-label": e,
|
|
@@ -1541,27 +1495,27 @@ var Mn = (e) => {
|
|
|
1541
1495
|
}, e), t[16] = n, t[17] = o, t[18] = e) : e = t[18], D = p.map(e), t[12] = n, t[13] = p, t[14] = o, t[15] = D;
|
|
1542
1496
|
} else D = t[15];
|
|
1543
1497
|
let k;
|
|
1544
|
-
t[19] !== E || t[20] !== D ? (k = /* @__PURE__ */
|
|
1498
|
+
t[19] !== E || t[20] !== D ? (k = /* @__PURE__ */ Z(ve, {
|
|
1545
1499
|
templateColumns: E,
|
|
1546
1500
|
gap: "2xs",
|
|
1547
1501
|
justifyItems: "center",
|
|
1548
1502
|
children: D
|
|
1549
1503
|
}), t[19] = E, t[20] = D, t[21] = k) : k = t[21];
|
|
1550
1504
|
let A;
|
|
1551
|
-
t[22] !== n || t[23] !== _ || t[24] !== m || t[25] !== s || t[26] !== y || t[27] !== h ? (A = h ? /* @__PURE__ */
|
|
1552
|
-
/* @__PURE__ */
|
|
1553
|
-
/* @__PURE__ */
|
|
1505
|
+
t[22] !== n || t[23] !== _ || t[24] !== m || t[25] !== s || t[26] !== y || t[27] !== h ? (A = h ? /* @__PURE__ */ Q(Be, { children: [
|
|
1506
|
+
/* @__PURE__ */ Z(G, { borderTop: "subtle" }),
|
|
1507
|
+
/* @__PURE__ */ Z(Y, {
|
|
1554
1508
|
textStyle: "label/S/medium",
|
|
1555
1509
|
color: "fg.muted",
|
|
1556
1510
|
children: _
|
|
1557
1511
|
}),
|
|
1558
|
-
/* @__PURE__ */
|
|
1512
|
+
/* @__PURE__ */ Z(ve, {
|
|
1559
1513
|
templateColumns: "repeat(8, 1fr)",
|
|
1560
1514
|
gap: "3xs",
|
|
1561
1515
|
justifyItems: "center",
|
|
1562
1516
|
children: m.map((e) => {
|
|
1563
1517
|
let t = e.value === y;
|
|
1564
|
-
return /* @__PURE__ */
|
|
1518
|
+
return /* @__PURE__ */ Z(tr, {
|
|
1565
1519
|
type: "button",
|
|
1566
1520
|
color: t ? `${n}.500` : void 0,
|
|
1567
1521
|
bg: t ? `${n}.500/15` : void 0,
|
|
@@ -1569,7 +1523,7 @@ var Mn = (e) => {
|
|
|
1569
1523
|
"aria-label": e.label,
|
|
1570
1524
|
"aria-pressed": t,
|
|
1571
1525
|
onClick: () => s?.(e.value),
|
|
1572
|
-
children: /* @__PURE__ */
|
|
1526
|
+
children: /* @__PURE__ */ Z(be, {
|
|
1573
1527
|
as: e.icon,
|
|
1574
1528
|
boxSize: "icon-xs"
|
|
1575
1529
|
})
|
|
@@ -1578,7 +1532,7 @@ var Mn = (e) => {
|
|
|
1578
1532
|
})
|
|
1579
1533
|
] }) : null, t[22] = n, t[23] = _, t[24] = m, t[25] = s, t[26] = y, t[27] = h, t[28] = A) : A = t[28];
|
|
1580
1534
|
let j;
|
|
1581
|
-
t[29] !== w || t[30] !== k || t[31] !== A ? (j = /* @__PURE__ */
|
|
1535
|
+
t[29] !== w || t[30] !== k || t[31] !== A ? (j = /* @__PURE__ */ Q(je, {
|
|
1582
1536
|
gap: "compact",
|
|
1583
1537
|
p: "sm",
|
|
1584
1538
|
children: [
|
|
@@ -1588,21 +1542,21 @@ var Mn = (e) => {
|
|
|
1588
1542
|
]
|
|
1589
1543
|
}), t[29] = w, t[30] = k, t[31] = A, t[32] = j) : j = t[32];
|
|
1590
1544
|
let M;
|
|
1591
|
-
t[33] !== j || t[34] !== C ? (M = /* @__PURE__ */
|
|
1545
|
+
t[33] !== j || t[34] !== C ? (M = /* @__PURE__ */ Z(De, { children: /* @__PURE__ */ Z(Ee.Positioner, { children: /* @__PURE__ */ Z(Ee.Content, {
|
|
1592
1546
|
width: C,
|
|
1593
1547
|
bg: "bg.elevated",
|
|
1594
1548
|
children: j
|
|
1595
1549
|
}) }) }), t[33] = j, t[34] = C, t[35] = M) : M = t[35];
|
|
1596
1550
|
let N;
|
|
1597
|
-
return t[36] !== M || t[37] !== S ? (N = /* @__PURE__ */
|
|
1551
|
+
return t[36] !== M || t[37] !== S ? (N = /* @__PURE__ */ Q(Ee.Root, {
|
|
1598
1552
|
positioning: b,
|
|
1599
1553
|
children: [S, M]
|
|
1600
1554
|
}), t[36] = M, t[37] = S, t[38] = N) : N = t[38], N;
|
|
1601
|
-
},
|
|
1602
|
-
let t =
|
|
1555
|
+
}, rr = (e) => {
|
|
1556
|
+
let t = X(6), n, r;
|
|
1603
1557
|
t[0] === e ? (n = t[1], r = t[2]) : ({children: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
1604
1558
|
let i;
|
|
1605
|
-
return t[3] !== n || t[4] !== r ? (i = /* @__PURE__ */
|
|
1559
|
+
return t[3] !== n || t[4] !== r ? (i = /* @__PURE__ */ Z(G, {
|
|
1606
1560
|
borderWidth: "1px",
|
|
1607
1561
|
borderColor: "border.subtle",
|
|
1608
1562
|
borderRadius: "xs",
|
|
@@ -1610,18 +1564,18 @@ var Mn = (e) => {
|
|
|
1610
1564
|
...r,
|
|
1611
1565
|
children: n
|
|
1612
1566
|
}), t[3] = n, t[4] = r, t[5] = i) : i = t[5], i;
|
|
1613
|
-
},
|
|
1614
|
-
let t =
|
|
1567
|
+
}, ir = (e) => {
|
|
1568
|
+
let t = X(6), n, r;
|
|
1615
1569
|
t[0] === e ? (n = t[1], r = t[2]) : ({children: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
1616
1570
|
let i;
|
|
1617
|
-
return t[3] !== n || t[4] !== r ? (i = /* @__PURE__ */
|
|
1571
|
+
return t[3] !== n || t[4] !== r ? (i = /* @__PURE__ */ Z(G, {
|
|
1618
1572
|
p: "md",
|
|
1619
1573
|
...r,
|
|
1620
1574
|
children: n
|
|
1621
1575
|
}), t[3] = n, t[4] = r, t[5] = i) : i = t[5], i;
|
|
1622
|
-
},
|
|
1623
|
-
let t =
|
|
1624
|
-
t[0] === n ? d = t[1] : (d = /* @__PURE__ */
|
|
1576
|
+
}, ar = (e) => {
|
|
1577
|
+
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
|
+
t[0] === n ? d = t[1] : (d = /* @__PURE__ */ Z(be, {
|
|
1625
1579
|
boxSize: "1em",
|
|
1626
1580
|
fontSize: "2xl",
|
|
1627
1581
|
flexShrink: "0",
|
|
@@ -1629,31 +1583,31 @@ var Mn = (e) => {
|
|
|
1629
1583
|
children: n
|
|
1630
1584
|
}), t[0] = n, t[1] = d);
|
|
1631
1585
|
let f;
|
|
1632
|
-
t[2] === r ? f = t[3] : (f = /* @__PURE__ */
|
|
1586
|
+
t[2] === r ? f = t[3] : (f = /* @__PURE__ */ Z(Y, {
|
|
1633
1587
|
textStyle: "sm",
|
|
1634
1588
|
fontWeight: "semibold",
|
|
1635
1589
|
children: r
|
|
1636
1590
|
}), t[2] = r, t[3] = f);
|
|
1637
1591
|
let p;
|
|
1638
|
-
t[4] === a ? p = t[5] : (p = /* @__PURE__ */
|
|
1592
|
+
t[4] === a ? p = t[5] : (p = /* @__PURE__ */ Z(W, {
|
|
1639
1593
|
size: "sm",
|
|
1640
1594
|
variant: "outline",
|
|
1641
1595
|
children: a
|
|
1642
1596
|
}), t[4] = a, t[5] = p);
|
|
1643
1597
|
let m;
|
|
1644
|
-
t[6] === o ? m = t[7] : (m = o && /* @__PURE__ */
|
|
1598
|
+
t[6] === o ? m = t[7] : (m = o && /* @__PURE__ */ Q(W, {
|
|
1645
1599
|
size: "sm",
|
|
1646
1600
|
variant: "outline",
|
|
1647
1601
|
children: ["v", o]
|
|
1648
1602
|
}), t[6] = o, t[7] = m);
|
|
1649
1603
|
let h;
|
|
1650
|
-
t[8] === s ? h = t[9] : (h = s && /* @__PURE__ */
|
|
1604
|
+
t[8] === s ? h = t[9] : (h = s && /* @__PURE__ */ Z(W, {
|
|
1651
1605
|
size: "sm",
|
|
1652
1606
|
variant: "outline",
|
|
1653
1607
|
children: s
|
|
1654
1608
|
}), t[8] = s, t[9] = h);
|
|
1655
1609
|
let g;
|
|
1656
|
-
t[10] !== f || t[11] !== p || t[12] !== m || t[13] !== h ? (g = /* @__PURE__ */
|
|
1610
|
+
t[10] !== f || t[11] !== p || t[12] !== m || t[13] !== h ? (g = /* @__PURE__ */ Q(ye, {
|
|
1657
1611
|
gap: "2",
|
|
1658
1612
|
flexWrap: "wrap",
|
|
1659
1613
|
children: [
|
|
@@ -1664,26 +1618,26 @@ var Mn = (e) => {
|
|
|
1664
1618
|
]
|
|
1665
1619
|
}), t[10] = f, t[11] = p, t[12] = m, t[13] = h, t[14] = g) : g = t[14];
|
|
1666
1620
|
let _;
|
|
1667
|
-
t[15] === i ? _ = t[16] : (_ = /* @__PURE__ */
|
|
1621
|
+
t[15] === i ? _ = t[16] : (_ = /* @__PURE__ */ Z(Y, {
|
|
1668
1622
|
color: "fg.muted",
|
|
1669
1623
|
children: i
|
|
1670
1624
|
}), t[15] = i, t[16] = _);
|
|
1671
1625
|
let v;
|
|
1672
|
-
t[17] !== g || t[18] !== _ ? (v = /* @__PURE__ */
|
|
1626
|
+
t[17] !== g || t[18] !== _ ? (v = /* @__PURE__ */ Z(G, {
|
|
1673
1627
|
flex: "1",
|
|
1674
1628
|
minW: "0",
|
|
1675
|
-
children: /* @__PURE__ */
|
|
1629
|
+
children: /* @__PURE__ */ Q(je, {
|
|
1676
1630
|
gap: "1",
|
|
1677
1631
|
children: [g, _]
|
|
1678
1632
|
})
|
|
1679
1633
|
}), t[17] = g, t[18] = _, t[19] = v) : v = t[19];
|
|
1680
1634
|
let y;
|
|
1681
|
-
t[20] === u ? y = t[21] : (y = u && /* @__PURE__ */
|
|
1635
|
+
t[20] === u ? y = t[21] : (y = u && /* @__PURE__ */ Z(be, {
|
|
1682
1636
|
color: "fg.success",
|
|
1683
|
-
children: /* @__PURE__ */
|
|
1637
|
+
children: /* @__PURE__ */ Z($e, {})
|
|
1684
1638
|
}), t[20] = u, t[21] = y);
|
|
1685
1639
|
let b = l ?? (u ? "Active" : "Connect"), x;
|
|
1686
|
-
t[22] !== u || t[23] !== b || t[24] !== y ? (x = /* @__PURE__ */
|
|
1640
|
+
t[22] !== u || t[23] !== b || t[24] !== y ? (x = /* @__PURE__ */ Q(q, {
|
|
1687
1641
|
type: "button",
|
|
1688
1642
|
disabled: u,
|
|
1689
1643
|
size: "sm",
|
|
@@ -1694,7 +1648,7 @@ var Mn = (e) => {
|
|
|
1694
1648
|
children: [y, b]
|
|
1695
1649
|
}), t[22] = u, t[23] = b, t[24] = y, t[25] = x) : x = t[25];
|
|
1696
1650
|
let S;
|
|
1697
|
-
return t[26] !== d || t[27] !== x || t[28] !== v ? (S = /* @__PURE__ */
|
|
1651
|
+
return t[26] !== d || t[27] !== x || t[28] !== v ? (S = /* @__PURE__ */ Z(rr, { children: /* @__PURE__ */ Z(ir, { children: /* @__PURE__ */ Q(ye, {
|
|
1698
1652
|
gap: "4",
|
|
1699
1653
|
alignItems: "flex-start",
|
|
1700
1654
|
children: [
|
|
@@ -1703,7 +1657,7 @@ var Mn = (e) => {
|
|
|
1703
1657
|
x
|
|
1704
1658
|
]
|
|
1705
1659
|
}) }) }), t[26] = d, t[27] = x, t[28] = v, t[29] = S) : S = t[29], S;
|
|
1706
|
-
},
|
|
1660
|
+
}, or = Re({
|
|
1707
1661
|
className: "ps-segmented-control",
|
|
1708
1662
|
slots: ["root", "item"],
|
|
1709
1663
|
base: {
|
|
@@ -1759,15 +1713,15 @@ var Mn = (e) => {
|
|
|
1759
1713
|
}
|
|
1760
1714
|
} },
|
|
1761
1715
|
defaultVariants: { size: "sm" }
|
|
1762
|
-
}), { withProvider:
|
|
1763
|
-
let t =
|
|
1716
|
+
}), { withProvider: sr, withContext: cr } = Ie({ recipe: or }), lr = sr("div", "root"), ur = cr("button", "item"), dr = (e) => {
|
|
1717
|
+
let t = X(20), n, r, i, a, o, s;
|
|
1764
1718
|
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);
|
|
1765
1719
|
let c;
|
|
1766
1720
|
if (t[7] !== r || t[8] !== i || t[9] !== a || t[10] !== s) {
|
|
1767
1721
|
let e;
|
|
1768
1722
|
t[12] !== r || t[13] !== i || t[14] !== s ? (e = (e) => {
|
|
1769
1723
|
let t = e.value === s;
|
|
1770
|
-
return /* @__PURE__ */
|
|
1724
|
+
return /* @__PURE__ */ Z(ur, {
|
|
1771
1725
|
type: "button",
|
|
1772
1726
|
"aria-pressed": t,
|
|
1773
1727
|
"data-selected": t ? "" : void 0,
|
|
@@ -1778,26 +1732,26 @@ var Mn = (e) => {
|
|
|
1778
1732
|
}, 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;
|
|
1779
1733
|
} else c = t[11];
|
|
1780
1734
|
let l;
|
|
1781
|
-
return t[16] !== n || t[17] !== o || t[18] !== c ? (l = /* @__PURE__ */
|
|
1735
|
+
return t[16] !== n || t[17] !== o || t[18] !== c ? (l = /* @__PURE__ */ Z(lr, {
|
|
1782
1736
|
role: "group",
|
|
1783
1737
|
"aria-label": n,
|
|
1784
1738
|
...o,
|
|
1785
1739
|
children: c
|
|
1786
1740
|
}), t[16] = n, t[17] = o, t[18] = c, t[19] = l) : l = t[19], l;
|
|
1787
|
-
},
|
|
1741
|
+
}, fr = Le({
|
|
1788
1742
|
placement: "top",
|
|
1789
1743
|
pauseOnPageIdle: !0,
|
|
1790
1744
|
duration: 1e4
|
|
1791
|
-
}),
|
|
1792
|
-
let e =
|
|
1793
|
-
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */
|
|
1794
|
-
toaster:
|
|
1745
|
+
}), pr = () => {
|
|
1746
|
+
let e = X(1), t;
|
|
1747
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ Z(De, { children: /* @__PURE__ */ Z(Pe, {
|
|
1748
|
+
toaster: fr,
|
|
1795
1749
|
insetInline: { mdDown: "4" },
|
|
1796
|
-
children:
|
|
1750
|
+
children: mr
|
|
1797
1751
|
}) }), e[0] = t) : t = e[0], t;
|
|
1798
1752
|
};
|
|
1799
|
-
function
|
|
1800
|
-
return /* @__PURE__ */
|
|
1753
|
+
function mr(e) {
|
|
1754
|
+
return /* @__PURE__ */ Q(Ne.Root, {
|
|
1801
1755
|
width: { md: "sm" },
|
|
1802
1756
|
alignItems: "start",
|
|
1803
1757
|
borderRadius: "xs",
|
|
@@ -1806,22 +1760,22 @@ function vr(e) {
|
|
|
1806
1760
|
py: "xs",
|
|
1807
1761
|
minH: "auto",
|
|
1808
1762
|
children: [
|
|
1809
|
-
e.type === "loading" ? /* @__PURE__ */
|
|
1763
|
+
e.type === "loading" ? /* @__PURE__ */ Z(Ae, {
|
|
1810
1764
|
size: "sm",
|
|
1811
1765
|
color: "blue.solid"
|
|
1812
|
-
}) : /* @__PURE__ */
|
|
1813
|
-
/* @__PURE__ */
|
|
1766
|
+
}) : /* @__PURE__ */ Z(Ne.Indicator, {}),
|
|
1767
|
+
/* @__PURE__ */ Q(je, {
|
|
1814
1768
|
gap: "0",
|
|
1815
1769
|
flex: "1",
|
|
1816
1770
|
minWidth: "0",
|
|
1817
1771
|
maxWidth: "100%",
|
|
1818
|
-
children: [e.title && /* @__PURE__ */
|
|
1772
|
+
children: [e.title && /* @__PURE__ */ Z(Ne.Title, {
|
|
1819
1773
|
textStyle: "label/S/medium",
|
|
1820
1774
|
children: e.title
|
|
1821
|
-
}), e.description && /* @__PURE__ */
|
|
1775
|
+
}), e.description && /* @__PURE__ */ Z(h, {
|
|
1822
1776
|
maxHeight: "12rem",
|
|
1823
1777
|
contentProps: { paddingEnd: "1" },
|
|
1824
|
-
children: /* @__PURE__ */
|
|
1778
|
+
children: /* @__PURE__ */ Z(Ne.Description, {
|
|
1825
1779
|
textStyle: "paragraph/S/regular",
|
|
1826
1780
|
whiteSpace: "pre-wrap",
|
|
1827
1781
|
wordBreak: "break-word",
|
|
@@ -1829,29 +1783,29 @@ function vr(e) {
|
|
|
1829
1783
|
})
|
|
1830
1784
|
})]
|
|
1831
1785
|
}),
|
|
1832
|
-
e.action && /* @__PURE__ */
|
|
1833
|
-
/* @__PURE__ */
|
|
1786
|
+
e.action && /* @__PURE__ */ Z(Ne.ActionTrigger, { children: e.action.label }),
|
|
1787
|
+
/* @__PURE__ */ Z(Ne.CloseTrigger, {})
|
|
1834
1788
|
]
|
|
1835
1789
|
});
|
|
1836
1790
|
}
|
|
1837
1791
|
//#endregion
|
|
1838
1792
|
//#region src/components/sidenav/sidenav.store.ts
|
|
1839
|
-
var
|
|
1793
|
+
var hr = {
|
|
1840
1794
|
open: !0,
|
|
1841
1795
|
expandedSections: [],
|
|
1842
1796
|
expandedNodes: [],
|
|
1843
1797
|
width: null
|
|
1844
|
-
},
|
|
1798
|
+
}, gr = "pstdio/ui/sidenav", _r = (e) => `${gr}/${e}`, vr = (e, t) => e.includes(t) ? e.filter((e) => e !== t) : [...e, t], yr = (e, t, n) => n ? e.includes(t) ? e : [...e, t] : e.filter((e) => e !== t), br = (e) => ({
|
|
1845
1799
|
open: e.open,
|
|
1846
1800
|
expandedSections: e.expandedSections,
|
|
1847
1801
|
expandedNodes: e.expandedNodes,
|
|
1848
1802
|
width: e.width
|
|
1849
|
-
}),
|
|
1803
|
+
}), xr = (e) => {
|
|
1850
1804
|
let { storageKey: t, initialState: n } = e, r = {
|
|
1851
|
-
...
|
|
1805
|
+
...hr,
|
|
1852
1806
|
...n
|
|
1853
1807
|
};
|
|
1854
|
-
return
|
|
1808
|
+
return Mt()(jt((e) => ({
|
|
1855
1809
|
...r,
|
|
1856
1810
|
openSidenav: () => e((e) => ({
|
|
1857
1811
|
...e,
|
|
@@ -1867,82 +1821,82 @@ var yr = {
|
|
|
1867
1821
|
})),
|
|
1868
1822
|
toggleSection: (t) => e((e) => ({
|
|
1869
1823
|
...e,
|
|
1870
|
-
expandedSections:
|
|
1824
|
+
expandedSections: vr(e.expandedSections, t)
|
|
1871
1825
|
})),
|
|
1872
1826
|
toggleNode: (t) => e((e) => ({
|
|
1873
1827
|
...e,
|
|
1874
|
-
expandedNodes:
|
|
1828
|
+
expandedNodes: vr(e.expandedNodes, t)
|
|
1875
1829
|
})),
|
|
1876
1830
|
setSectionExpanded: (t, n) => e((e) => ({
|
|
1877
1831
|
...e,
|
|
1878
|
-
expandedSections:
|
|
1832
|
+
expandedSections: yr(e.expandedSections, t, n)
|
|
1879
1833
|
})),
|
|
1880
1834
|
setNodeExpanded: (t, n) => e((e) => ({
|
|
1881
1835
|
...e,
|
|
1882
|
-
expandedNodes:
|
|
1836
|
+
expandedNodes: yr(e.expandedNodes, t, n)
|
|
1883
1837
|
})),
|
|
1884
1838
|
setWidth: (t) => e((e) => ({
|
|
1885
1839
|
...e,
|
|
1886
1840
|
width: t
|
|
1887
1841
|
})),
|
|
1888
|
-
reset: () => e(
|
|
1842
|
+
reset: () => e(hr)
|
|
1889
1843
|
}), {
|
|
1890
|
-
name:
|
|
1891
|
-
storage:
|
|
1892
|
-
partialize:
|
|
1844
|
+
name: _r(t),
|
|
1845
|
+
storage: At(z),
|
|
1846
|
+
partialize: br
|
|
1893
1847
|
}));
|
|
1894
|
-
},
|
|
1895
|
-
let n =
|
|
1848
|
+
}, Sr = /* @__PURE__ */ new Map(), Cr = (e, t) => {
|
|
1849
|
+
let n = Sr.get(e);
|
|
1896
1850
|
if (n) return n;
|
|
1897
|
-
let r =
|
|
1851
|
+
let r = xr({
|
|
1898
1852
|
storageKey: e,
|
|
1899
1853
|
initialState: t
|
|
1900
1854
|
});
|
|
1901
|
-
return
|
|
1902
|
-
},
|
|
1903
|
-
let r =
|
|
1904
|
-
return r[0] !== n || r[1] !== e ? (i =
|
|
1905
|
-
},
|
|
1906
|
-
let t =
|
|
1855
|
+
return Sr.set(e, r), r;
|
|
1856
|
+
}, wr = (e, t, n) => {
|
|
1857
|
+
let r = X(3), i;
|
|
1858
|
+
return r[0] !== n || r[1] !== e ? (i = Cr(e, n), r[0] = n, r[1] = e, r[2] = i) : i = r[2], kt(i, t);
|
|
1859
|
+
}, Tr = (e) => {
|
|
1860
|
+
let t = X(2), { children: n } = e;
|
|
1907
1861
|
if (!n) return null;
|
|
1908
1862
|
let r;
|
|
1909
|
-
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */
|
|
1863
|
+
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ Z(G, {
|
|
1910
1864
|
bg: "bg",
|
|
1911
1865
|
position: "sticky",
|
|
1912
1866
|
bottom: "0",
|
|
1913
1867
|
overflow: "hidden",
|
|
1914
1868
|
children: n
|
|
1915
1869
|
}), t[0] = n, t[1] = r), r;
|
|
1916
|
-
},
|
|
1917
|
-
let t =
|
|
1918
|
-
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */
|
|
1870
|
+
}, Er = (e) => {
|
|
1871
|
+
let t = X(2), { children: n } = e, r;
|
|
1872
|
+
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ Z(ye, {
|
|
1919
1873
|
"data-testid": "sidenav-header",
|
|
1920
1874
|
justify: "space-between",
|
|
1921
1875
|
align: "center",
|
|
1922
|
-
minH:
|
|
1876
|
+
minH: mn,
|
|
1923
1877
|
bg: "bg",
|
|
1924
1878
|
position: "sticky",
|
|
1925
1879
|
top: "0",
|
|
1926
1880
|
zIndex: "1",
|
|
1927
1881
|
gap: "0",
|
|
1928
|
-
children: /* @__PURE__ */
|
|
1882
|
+
children: /* @__PURE__ */ Z(ye, {
|
|
1929
1883
|
minW: "0",
|
|
1930
1884
|
flex: "1",
|
|
1931
1885
|
children: n
|
|
1932
1886
|
})
|
|
1933
1887
|
}), t[0] = n, t[1] = r), r;
|
|
1934
|
-
},
|
|
1888
|
+
}, Dr = 240, Or = 200, kr = 480, Ar = (e, t, n) => Math.min(Math.max(e, t), n), jr = (e, t = Dr) => {
|
|
1935
1889
|
if (typeof e == "number") return e;
|
|
1936
1890
|
if (typeof e == "string") {
|
|
1937
1891
|
let t = parseInt(e, 10);
|
|
1938
1892
|
if (!Number.isNaN(t)) return t;
|
|
1939
1893
|
}
|
|
1940
1894
|
return t;
|
|
1941
|
-
},
|
|
1942
|
-
let t =
|
|
1895
|
+
}, Mr = (e) => {
|
|
1896
|
+
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;
|
|
1943
1897
|
t[0] === a ? S = t[1] : (S = a === void 0 ? [] : a, t[0] = a, t[1] = S);
|
|
1944
|
-
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 ?
|
|
1945
|
-
t[2] !== _ || t[3] !== c ? (M =
|
|
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 ? Or : v, k = b === void 0 ? kr : b, A = x !== void 0 && x, j = Je(null), M;
|
|
1899
|
+
t[2] !== _ || t[3] !== c ? (M = jr(c, _), t[2] = _, t[3] = c, t[4] = M) : M = t[4];
|
|
1946
1900
|
let N = M, P;
|
|
1947
1901
|
t[5] === d ? P = t[6] : (P = d ? { expandedSections: d } : {}, t[5] = d, t[6] = P);
|
|
1948
1902
|
let F;
|
|
@@ -1950,16 +1904,16 @@ var yr = {
|
|
|
1950
1904
|
...P,
|
|
1951
1905
|
width: N
|
|
1952
1906
|
}, t[7] = N, t[8] = P, t[9] = F) : F = t[9];
|
|
1953
|
-
let I = F, L =
|
|
1954
|
-
t[10] !== m || t[11] !== L ? (
|
|
1907
|
+
let I = F, L = wr(n, Nr, I), R = wr(n, Pr, I), ee = wr(n, Fr, I), z = wr(n, Ir, I), te = wr(n, Lr, I), B = wr(n, Rr, I), V, H;
|
|
1908
|
+
t[10] !== m || t[11] !== L ? (V = () => {
|
|
1955
1909
|
m?.(L);
|
|
1956
|
-
},
|
|
1957
|
-
let
|
|
1958
|
-
t[14] !== k || t[15] !== O || t[16] !==
|
|
1959
|
-
let
|
|
1910
|
+
}, 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
|
+
let ne = R ?? N, U;
|
|
1912
|
+
t[14] !== k || t[15] !== O || t[16] !== ne ? (U = Ar(ne, O, k), t[14] = k, t[15] = O, t[16] = ne, t[17] = U) : U = t[17];
|
|
1913
|
+
let re = U;
|
|
1960
1914
|
if (!L && T) return null;
|
|
1961
|
-
let
|
|
1962
|
-
t[18] === o ?
|
|
1915
|
+
let ie = D ? `${re}px` : c ?? `${N}px`, ae;
|
|
1916
|
+
t[18] === o ? ae = t[19] : (ae = /* @__PURE__ */ Z(Er, { children: o }), t[18] = o, t[19] = ae);
|
|
1963
1917
|
let oe, se;
|
|
1964
1918
|
t[20] === Symbol.for("react.memo_cache_sentinel") ? (oe = {
|
|
1965
1919
|
display: "block",
|
|
@@ -1972,26 +1926,26 @@ var yr = {
|
|
|
1972
1926
|
flexDirection: "column"
|
|
1973
1927
|
} }, t[20] = oe, t[21] = se) : (oe = t[20], se = t[21]);
|
|
1974
1928
|
let ce;
|
|
1975
|
-
t[22] !== i || t[23] !== E || t[24] !== z || t[25] !==
|
|
1929
|
+
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 ? (ce = /* @__PURE__ */ Z(h, {
|
|
1976
1930
|
flex: "1",
|
|
1977
1931
|
mt: "lg",
|
|
1978
1932
|
viewportRef: j,
|
|
1979
1933
|
viewportProps: oe,
|
|
1980
1934
|
contentProps: se,
|
|
1981
|
-
children: /* @__PURE__ */
|
|
1935
|
+
children: /* @__PURE__ */ Z(G, {
|
|
1982
1936
|
w: "full",
|
|
1983
1937
|
minW: "0",
|
|
1984
1938
|
flex: "1 0 auto",
|
|
1985
1939
|
display: "flex",
|
|
1986
1940
|
flexDirection: "column",
|
|
1987
|
-
children: r.length === 0 ? /* @__PURE__ */
|
|
1941
|
+
children: r.length === 0 ? /* @__PURE__ */ Z(Y, {
|
|
1988
1942
|
textStyle: "paragraph/S/regular",
|
|
1989
1943
|
color: "fg.muted",
|
|
1990
1944
|
p: "3",
|
|
1991
1945
|
children: E
|
|
1992
|
-
}) : /* @__PURE__ */
|
|
1946
|
+
}) : /* @__PURE__ */ Z(C, {
|
|
1993
1947
|
sections: r,
|
|
1994
|
-
expandedSectionIds:
|
|
1948
|
+
expandedSectionIds: ee,
|
|
1995
1949
|
expandedNodeIds: z,
|
|
1996
1950
|
activeNodeId: i,
|
|
1997
1951
|
rowVariant: "compact",
|
|
@@ -2000,62 +1954,62 @@ var yr = {
|
|
|
2000
1954
|
linkComponent: f,
|
|
2001
1955
|
onNavigate: p,
|
|
2002
1956
|
onToggleSection: te,
|
|
2003
|
-
onToggleNode:
|
|
1957
|
+
onToggleNode: B,
|
|
2004
1958
|
virtualize: A,
|
|
2005
1959
|
scrollRef: j
|
|
2006
1960
|
})
|
|
2007
1961
|
})
|
|
2008
|
-
}), t[22] = i, t[23] = E, t[24] = z, t[25] =
|
|
1962
|
+
}), 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];
|
|
2009
1963
|
let le;
|
|
2010
|
-
t[33] === s ? le = t[34] : (le = /* @__PURE__ */
|
|
1964
|
+
t[33] === s ? le = t[34] : (le = /* @__PURE__ */ Z(Tr, { children: s }), t[33] = s, t[34] = le);
|
|
2011
1965
|
let ue;
|
|
2012
|
-
t[35] !==
|
|
1966
|
+
t[35] !== ae || t[36] !== ce || t[37] !== le || t[38] !== ie ? (ue = /* @__PURE__ */ Q(_e, {
|
|
2013
1967
|
as: "aside",
|
|
2014
1968
|
"data-testid": "sidenav",
|
|
2015
1969
|
direction: "column",
|
|
2016
1970
|
position: "relative",
|
|
2017
1971
|
h: "100%",
|
|
2018
|
-
w:
|
|
2019
|
-
minW:
|
|
2020
|
-
maxW:
|
|
1972
|
+
w: ie,
|
|
1973
|
+
minW: ie,
|
|
1974
|
+
maxW: ie,
|
|
2021
1975
|
flexShrink: 0,
|
|
2022
1976
|
borderRightWidth: "1px",
|
|
2023
1977
|
borderRightColor: "border.subtle",
|
|
2024
1978
|
bg: "bg",
|
|
2025
1979
|
children: [
|
|
2026
|
-
|
|
1980
|
+
ae,
|
|
2027
1981
|
ce,
|
|
2028
1982
|
le
|
|
2029
1983
|
]
|
|
2030
|
-
}), t[35] =
|
|
1984
|
+
}), t[35] = ae, t[36] = ce, t[37] = le, t[38] = ie, t[39] = ue) : ue = t[39];
|
|
2031
1985
|
let de = ue, W;
|
|
2032
|
-
return t[40] !== de || t[41] !== w ? (W = /* @__PURE__ */
|
|
1986
|
+
return t[40] !== de || t[41] !== w ? (W = /* @__PURE__ */ Z(y, {
|
|
2033
1987
|
actions: w,
|
|
2034
1988
|
closeOnSelect: !1,
|
|
2035
1989
|
children: de
|
|
2036
1990
|
}), t[40] = de, t[41] = w, t[42] = W) : W = t[42], W;
|
|
2037
1991
|
};
|
|
2038
|
-
function
|
|
1992
|
+
function Nr(e) {
|
|
2039
1993
|
return e.open;
|
|
2040
1994
|
}
|
|
2041
|
-
function
|
|
1995
|
+
function Pr(e) {
|
|
2042
1996
|
return e.width;
|
|
2043
1997
|
}
|
|
2044
|
-
function
|
|
1998
|
+
function Fr(e) {
|
|
2045
1999
|
return e.expandedSections;
|
|
2046
2000
|
}
|
|
2047
|
-
function
|
|
2001
|
+
function Ir(e) {
|
|
2048
2002
|
return e.expandedNodes;
|
|
2049
2003
|
}
|
|
2050
|
-
function
|
|
2004
|
+
function Lr(e) {
|
|
2051
2005
|
return e.toggleSection;
|
|
2052
2006
|
}
|
|
2053
|
-
function
|
|
2007
|
+
function Rr(e) {
|
|
2054
2008
|
return e.toggleNode;
|
|
2055
2009
|
}
|
|
2056
2010
|
//#endregion
|
|
2057
2011
|
//#region src/components/tab-strip/tab-visibility.store.ts
|
|
2058
|
-
var
|
|
2012
|
+
var zr = { tabOverrides: {} }, Br = "pstdio/ui/tab-visibility", Vr = (e) => `${Br}/${e}`, Hr = (e, t) => e ?? (t ? "hidden" : "shown"), Ur = (e, t, n) => {
|
|
2059
2013
|
if (n === void 0) {
|
|
2060
2014
|
if (!(t in e)) return e;
|
|
2061
2015
|
let { [t]: n, ...r } = e;
|
|
@@ -2065,42 +2019,42 @@ var Ur = { tabOverrides: {} }, Wr = "pstdio/ui/tab-visibility", Gr = (e) => `${W
|
|
|
2065
2019
|
...e,
|
|
2066
2020
|
[t]: n
|
|
2067
2021
|
};
|
|
2068
|
-
},
|
|
2069
|
-
...
|
|
2022
|
+
}, Wr = (e, t, n) => Ur(e, t, Hr(e[t], n) === "hidden" ? "shown" : "hidden"), Gr = (e) => ({ tabOverrides: e.tabOverrides }), Kr = (e) => Mt()(jt((e) => ({
|
|
2023
|
+
...zr,
|
|
2070
2024
|
setTab: (t, n) => e((e) => ({
|
|
2071
2025
|
...e,
|
|
2072
|
-
tabOverrides:
|
|
2026
|
+
tabOverrides: Ur(e.tabOverrides, t, n)
|
|
2073
2027
|
})),
|
|
2074
2028
|
toggleTab: (t, n) => e((e) => ({
|
|
2075
2029
|
...e,
|
|
2076
|
-
tabOverrides:
|
|
2030
|
+
tabOverrides: Wr(e.tabOverrides, t, n)
|
|
2077
2031
|
})),
|
|
2078
2032
|
clearTab: (t) => e((e) => ({
|
|
2079
2033
|
...e,
|
|
2080
|
-
tabOverrides:
|
|
2034
|
+
tabOverrides: Ur(e.tabOverrides, t, void 0)
|
|
2081
2035
|
})),
|
|
2082
|
-
reset: () => e(
|
|
2036
|
+
reset: () => e(zr)
|
|
2083
2037
|
}), {
|
|
2084
|
-
name:
|
|
2085
|
-
storage:
|
|
2086
|
-
partialize:
|
|
2087
|
-
})),
|
|
2088
|
-
let t =
|
|
2038
|
+
name: Vr(e.storageKey),
|
|
2039
|
+
storage: At(z),
|
|
2040
|
+
partialize: Gr
|
|
2041
|
+
})), qr = /* @__PURE__ */ new Map(), Jr = (e) => {
|
|
2042
|
+
let t = qr.get(e);
|
|
2089
2043
|
if (t) return t;
|
|
2090
|
-
let n =
|
|
2091
|
-
return
|
|
2092
|
-
},
|
|
2093
|
-
let n =
|
|
2094
|
-
return n[0] === e ? r = n[1] : (r =
|
|
2095
|
-
},
|
|
2044
|
+
let n = Kr({ storageKey: e });
|
|
2045
|
+
return qr.set(e, n), n;
|
|
2046
|
+
}, Yr = (e, t) => {
|
|
2047
|
+
let n = X(2), r;
|
|
2048
|
+
return n[0] === e ? r = n[1] : (r = Jr(e), n[0] = e, n[1] = r), kt(r, t);
|
|
2049
|
+
}, Xr = (e, t) => typeof e == "string" ? e : t, Zr = (e, t) => e ?? (t ? "hidden" : "shown"), Qr = (e) => e.canHide === !0 || e.hiddenByDefault === !0, $r = (e, t) => Zr(t[e.id], e.hiddenByDefault) === "shown", ei = (e, t) => {
|
|
2096
2050
|
let n = !1, r = [];
|
|
2097
2051
|
for (let i of e) {
|
|
2098
|
-
if (
|
|
2052
|
+
if (!$r(i, t)) {
|
|
2099
2053
|
n = !0;
|
|
2100
2054
|
continue;
|
|
2101
2055
|
}
|
|
2102
2056
|
if (i.children && i.children.length > 0) {
|
|
2103
|
-
let e =
|
|
2057
|
+
let e = ei(i.children, t);
|
|
2104
2058
|
if (e !== i.children) {
|
|
2105
2059
|
n = !0, r.push({
|
|
2106
2060
|
...i,
|
|
@@ -2112,14 +2066,14 @@ var Ur = { tabOverrides: {} }, Wr = "pstdio/ui/tab-visibility", Gr = (e) => `${W
|
|
|
2112
2066
|
r.push(i);
|
|
2113
2067
|
}
|
|
2114
2068
|
return n ? r : e;
|
|
2115
|
-
},
|
|
2069
|
+
}, ti = (e, t) => ei(e, t), ni = (e, t, n) => {
|
|
2116
2070
|
let r = !1, i = [];
|
|
2117
2071
|
for (let a of e) {
|
|
2118
|
-
if (
|
|
2072
|
+
if (Zr(t[a.id], a.hiddenByDefault) === "hidden") {
|
|
2119
2073
|
r = !0;
|
|
2120
2074
|
continue;
|
|
2121
2075
|
}
|
|
2122
|
-
let e =
|
|
2076
|
+
let e = ei(a.nodes, n);
|
|
2123
2077
|
if (e.length === 0 && !a.emptyState) {
|
|
2124
2078
|
r = !0;
|
|
2125
2079
|
continue;
|
|
@@ -2134,24 +2088,24 @@ var Ur = { tabOverrides: {} }, Wr = "pstdio/ui/tab-visibility", Gr = (e) => `${W
|
|
|
2134
2088
|
i.push(a);
|
|
2135
2089
|
}
|
|
2136
2090
|
return r ? i : e;
|
|
2137
|
-
},
|
|
2138
|
-
let i = e.hiddenByDefault === !0, a =
|
|
2091
|
+
}, ri = (e, t) => e === "shown" ? t.visibleIcon : t.hiddenIcon, ii = (e, t, n, r) => {
|
|
2092
|
+
let i = e.hiddenByDefault === !0, a = Zr(t[e.id], i);
|
|
2139
2093
|
return {
|
|
2140
2094
|
key: `section:${e.id}`,
|
|
2141
2095
|
label: e.label ?? e.id,
|
|
2142
2096
|
onClick: () => n.onToggleSection(e.id, i),
|
|
2143
|
-
endContent:
|
|
2097
|
+
endContent: ri(a, r)
|
|
2144
2098
|
};
|
|
2145
|
-
},
|
|
2146
|
-
let i = e.hiddenByDefault === !0, a =
|
|
2099
|
+
}, ai = (e, t, n, r) => {
|
|
2100
|
+
let i = e.hiddenByDefault === !0, a = Zr(t[e.id], i);
|
|
2147
2101
|
return {
|
|
2148
2102
|
key: `node:${e.id}`,
|
|
2149
|
-
label:
|
|
2103
|
+
label: Xr(e.label, e.id),
|
|
2150
2104
|
icon: e.icon,
|
|
2151
2105
|
onClick: () => n.onToggleNode(e.id, i),
|
|
2152
|
-
endContent:
|
|
2106
|
+
endContent: ri(a, r)
|
|
2153
2107
|
};
|
|
2154
|
-
},
|
|
2108
|
+
}, oi = (e, t, n, r, i) => {
|
|
2155
2109
|
let a = [], o = (e) => {
|
|
2156
2110
|
e.length !== 0 && (a.length > 0 && (e[0] = {
|
|
2157
2111
|
...e[0],
|
|
@@ -2160,8 +2114,8 @@ var Ur = { tabOverrides: {} }, Wr = "pstdio/ui/tab-visibility", Gr = (e) => `${W
|
|
|
2160
2114
|
}, s = (e) => {
|
|
2161
2115
|
let a = [];
|
|
2162
2116
|
for (let o of e) {
|
|
2163
|
-
|
|
2164
|
-
for (let e of o.nodes)
|
|
2117
|
+
Qr(o) && a.push(ii(o, t, r, i));
|
|
2118
|
+
for (let e of o.nodes) Qr(e) && a.push(ai(e, n, r, i));
|
|
2165
2119
|
}
|
|
2166
2120
|
return a;
|
|
2167
2121
|
};
|
|
@@ -2172,7 +2126,7 @@ var Ur = { tabOverrides: {} }, Wr = "pstdio/ui/tab-visibility", Gr = (e) => `${W
|
|
|
2172
2126
|
separatorBefore: !0,
|
|
2173
2127
|
onClick: r.onResetAll
|
|
2174
2128
|
}), a;
|
|
2175
|
-
},
|
|
2129
|
+
}, si = (e, t, n) => {
|
|
2176
2130
|
let r = !1, i = [];
|
|
2177
2131
|
for (let a of e) {
|
|
2178
2132
|
if (a.closable === !0) {
|
|
@@ -2183,19 +2137,19 @@ var Ur = { tabOverrides: {} }, Wr = "pstdio/ui/tab-visibility", Gr = (e) => `${W
|
|
|
2183
2137
|
r = !0;
|
|
2184
2138
|
continue;
|
|
2185
2139
|
}
|
|
2186
|
-
if (
|
|
2140
|
+
if (Zr(t[n(a)], a.hiddenByDefault) === "hidden") {
|
|
2187
2141
|
r = !0;
|
|
2188
2142
|
continue;
|
|
2189
2143
|
}
|
|
2190
2144
|
i.push(a);
|
|
2191
2145
|
}
|
|
2192
2146
|
return r ? i : e;
|
|
2193
|
-
},
|
|
2147
|
+
}, ci = (e, t, n, r, i, a) => {
|
|
2194
2148
|
let o = [], s = 0;
|
|
2195
2149
|
for (let c of e) {
|
|
2196
2150
|
if (c.pinned === !0 || c.closable === !0) continue;
|
|
2197
2151
|
s += 1;
|
|
2198
|
-
let e = r(c), l = c.hiddenByDefault === !0, u =
|
|
2152
|
+
let e = r(c), l = c.hiddenByDefault === !0, u = Zr(t[e], l);
|
|
2199
2153
|
o.push({
|
|
2200
2154
|
key: `tab:${e}`,
|
|
2201
2155
|
label: c.title ?? c.contributionId,
|
|
@@ -2211,14 +2165,14 @@ var Ur = { tabOverrides: {} }, Wr = "pstdio/ui/tab-visibility", Gr = (e) => `${W
|
|
|
2211
2165
|
separatorBefore: !0,
|
|
2212
2166
|
onClick: n.onResetAll
|
|
2213
2167
|
}), o;
|
|
2214
|
-
}, { withProvider:
|
|
2215
|
-
let t =
|
|
2168
|
+
}, { withProvider: li, withContext: ui } = Ie({ recipe: B }), di = li("div", "list"), fi = ui("div", "tab"), pi = ui("button", "trigger"), mi = ui("span", "label"), hi = ui("button", "close"), gi = (e) => {
|
|
2169
|
+
let t = X(38), { tab: n, selected: r, tabIndex: i, reorderable: a, onSelect: o, onClose: s, onKeyDown: c } = e, l = !a, u;
|
|
2216
2170
|
t[0] !== l || t[1] !== n.id ? (u = {
|
|
2217
2171
|
id: n.id,
|
|
2218
2172
|
disabled: l
|
|
2219
2173
|
}, t[0] = l, t[1] = n.id, t[2] = u) : u = t[2];
|
|
2220
|
-
let { attributes: d, listeners: f, setNodeRef: p, setActivatorNodeRef: m, transform: h, transition: g, isDragging: _, isSorting: v } =
|
|
2221
|
-
t[3] === h ? x = t[4] : (x =
|
|
2174
|
+
let { attributes: d, listeners: f, setNodeRef: p, setActivatorNodeRef: m, transform: h, transition: g, isDragging: _, isSorting: v } = Et(u), y = r ? "" : void 0, b = _ ? "" : void 0, x;
|
|
2175
|
+
t[3] === h ? x = t[4] : (x = Ot.Translate.toString(h), t[3] = h, t[4] = x);
|
|
2222
2176
|
let S;
|
|
2223
2177
|
t[5] !== d || t[6] !== a ? (S = a ? d : {}, t[5] = d, t[6] = a, t[7] = S) : S = t[7];
|
|
2224
2178
|
let C;
|
|
@@ -2226,9 +2180,9 @@ var Ur = { tabOverrides: {} }, Wr = "pstdio/ui/tab-visibility", Gr = (e) => `${W
|
|
|
2226
2180
|
f?.onKeyDown?.(e), !v && !e.defaultPrevented && c(e);
|
|
2227
2181
|
}, t[8] = v, t[9] = f, t[10] = c, t[11] = C) : C = t[11];
|
|
2228
2182
|
let w;
|
|
2229
|
-
t[12] === n.label ? w = t[13] : (w = /* @__PURE__ */
|
|
2183
|
+
t[12] === n.label ? w = t[13] : (w = /* @__PURE__ */ Z(mi, { children: n.label }), t[12] = n.label, t[13] = w);
|
|
2230
2184
|
let T;
|
|
2231
|
-
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__ */
|
|
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(pi, {
|
|
2232
2186
|
...S,
|
|
2233
2187
|
...f,
|
|
2234
2188
|
ref: m,
|
|
@@ -2243,9 +2197,9 @@ var Ur = { tabOverrides: {} }, Wr = "pstdio/ui/tab-visibility", Gr = (e) => `${W
|
|
|
2243
2197
|
children: [n.icon, w]
|
|
2244
2198
|
}), 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];
|
|
2245
2199
|
let E = `Close ${n.label}`, D = `Close ${n.label}`, O;
|
|
2246
|
-
t[25] === Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */
|
|
2200
|
+
t[25] === Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ Z(mt, { "aria-hidden": "true" }), t[25] = O) : O = t[25];
|
|
2247
2201
|
let k;
|
|
2248
|
-
t[26] !== s || t[27] !== D || t[28] !== E ? (k = /* @__PURE__ */
|
|
2202
|
+
t[26] !== s || t[27] !== D || t[28] !== E ? (k = /* @__PURE__ */ Z(hi, {
|
|
2249
2203
|
type: "button",
|
|
2250
2204
|
"aria-label": E,
|
|
2251
2205
|
title: D,
|
|
@@ -2253,7 +2207,7 @@ var Ur = { tabOverrides: {} }, Wr = "pstdio/ui/tab-visibility", Gr = (e) => `${W
|
|
|
2253
2207
|
children: O
|
|
2254
2208
|
}), t[26] = s, t[27] = D, t[28] = E, t[29] = k) : k = t[29];
|
|
2255
2209
|
let A;
|
|
2256
|
-
return t[30] !== p || t[31] !== k || t[32] !== y || t[33] !== b || t[34] !== x || t[35] !== T || t[36] !== g ? (A = /* @__PURE__ */
|
|
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(fi, {
|
|
2257
2211
|
ref: p,
|
|
2258
2212
|
role: "presentation",
|
|
2259
2213
|
"data-selected": y,
|
|
@@ -2262,18 +2216,18 @@ var Ur = { tabOverrides: {} }, Wr = "pstdio/ui/tab-visibility", Gr = (e) => `${W
|
|
|
2262
2216
|
transition: g,
|
|
2263
2217
|
children: [T, k]
|
|
2264
2218
|
}), 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;
|
|
2265
|
-
},
|
|
2266
|
-
let t =
|
|
2219
|
+
}, _i = (e) => {
|
|
2220
|
+
let t = X(48), { tabs: n, selectedId: r, onSelect: i, onClose: a, onReorder: o, "aria-label": s } = e, c = Je(null), l;
|
|
2267
2221
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (l = { activationConstraint: { distance: 6 } }, t[0] = l) : l = t[0];
|
|
2268
2222
|
let u;
|
|
2269
|
-
t[1] === Symbol.for("react.memo_cache_sentinel") ? (u = { coordinateGetter:
|
|
2270
|
-
let d =
|
|
2223
|
+
t[1] === Symbol.for("react.memo_cache_sentinel") ? (u = { coordinateGetter: Tt }, t[1] = u) : u = t[1];
|
|
2224
|
+
let d = xt(bt(vt, l), bt(_t, u)), f, p;
|
|
2271
2225
|
t[2] === r ? (f = t[3], p = t[4]) : (f = () => {
|
|
2272
2226
|
r && c.current?.querySelector("[aria-selected=\"true\"]")?.scrollIntoView({
|
|
2273
2227
|
block: "nearest",
|
|
2274
2228
|
inline: "nearest"
|
|
2275
2229
|
});
|
|
2276
|
-
}, p = [r], t[2] = r, t[3] = f, t[4] = p),
|
|
2230
|
+
}, p = [r], t[2] = r, t[3] = f, t[4] = p), qe(f, p);
|
|
2277
2231
|
let m, h, g, _, v, y, b, x, S, C, w, T, E;
|
|
2278
2232
|
if (t[5] !== s || t[6] !== a || t[7] !== o || t[8] !== i || t[9] !== r || t[10] !== d || t[11] !== n) {
|
|
2279
2233
|
let e = (e) => {
|
|
@@ -2291,10 +2245,10 @@ var Ur = { tabOverrides: {} }, Wr = "pstdio/ui/tab-visibility", Gr = (e) => `${W
|
|
|
2291
2245
|
} else return;
|
|
2292
2246
|
t.preventDefault(), c.current?.querySelectorAll("[role=\"tab\"]")[a]?.focus(), i(n[a].id);
|
|
2293
2247
|
};
|
|
2294
|
-
g =
|
|
2248
|
+
g = gt, _ = d, v = yt, t[25] === Symbol.for("react.memo_cache_sentinel") ? (y = [vi], t[25] = y) : y = t[25], t[26] === o ? b = t[27] : (b = (e) => {
|
|
2295
2249
|
let { active: t, over: n } = e;
|
|
2296
2250
|
n && t.id !== n.id && o?.(String(t.id), String(n.id));
|
|
2297
|
-
}, t[26] = o, t[27] = b), h =
|
|
2251
|
+
}, t[26] = o, t[27] = b), h = St, t[28] === n ? T = t[29] : (T = n.map(yi), t[28] = n, t[29] = T), E = wt, m = di, x = c, S = "tablist", C = s, w = n.map((t, a) => /* @__PURE__ */ Z(gi, {
|
|
2298
2252
|
tab: t,
|
|
2299
2253
|
selected: t.id === r,
|
|
2300
2254
|
tabIndex: t.id === (r ?? n[0]?.id) ? 0 : -1,
|
|
@@ -2305,20 +2259,20 @@ var Ur = { tabOverrides: {} }, Wr = "pstdio/ui/tab-visibility", Gr = (e) => `${W
|
|
|
2305
2259
|
}, t.id)), t[5] = s, t[6] = a, t[7] = o, t[8] = i, t[9] = r, t[10] = d, t[11] = n, t[12] = m, t[13] = h, t[14] = g, t[15] = _, t[16] = v, t[17] = y, t[18] = b, t[19] = x, t[20] = S, t[21] = C, t[22] = w, t[23] = T, t[24] = E;
|
|
2306
2260
|
} else m = t[12], h = t[13], g = t[14], _ = t[15], v = t[16], y = t[17], b = t[18], x = t[19], S = t[20], C = t[21], w = t[22], T = t[23], E = t[24];
|
|
2307
2261
|
let D;
|
|
2308
|
-
t[30] !== m || t[31] !== x || t[32] !== S || t[33] !== C || t[34] !== w ? (D = /* @__PURE__ */
|
|
2262
|
+
t[30] !== m || t[31] !== x || t[32] !== S || t[33] !== C || t[34] !== w ? (D = /* @__PURE__ */ Z(m, {
|
|
2309
2263
|
ref: x,
|
|
2310
2264
|
role: S,
|
|
2311
2265
|
"aria-label": C,
|
|
2312
2266
|
children: w
|
|
2313
2267
|
}), t[30] = m, t[31] = x, t[32] = S, t[33] = C, t[34] = w, t[35] = D) : D = t[35];
|
|
2314
2268
|
let O;
|
|
2315
|
-
t[36] !== h || t[37] !== D || t[38] !== T || t[39] !== E ? (O = /* @__PURE__ */
|
|
2269
|
+
t[36] !== h || t[37] !== D || t[38] !== T || t[39] !== E ? (O = /* @__PURE__ */ Z(h, {
|
|
2316
2270
|
items: T,
|
|
2317
2271
|
strategy: E,
|
|
2318
2272
|
children: D
|
|
2319
2273
|
}), t[36] = h, t[37] = D, t[38] = T, t[39] = E, t[40] = O) : O = t[40];
|
|
2320
2274
|
let k;
|
|
2321
|
-
return t[41] !== g || t[42] !== _ || t[43] !== v || t[44] !== y || t[45] !== b || t[46] !== O ? (k = /* @__PURE__ */
|
|
2275
|
+
return t[41] !== g || t[42] !== _ || t[43] !== v || t[44] !== y || t[45] !== b || t[46] !== O ? (k = /* @__PURE__ */ Z(g, {
|
|
2322
2276
|
sensors: _,
|
|
2323
2277
|
collisionDetection: v,
|
|
2324
2278
|
modifiers: y,
|
|
@@ -2326,64 +2280,64 @@ var Ur = { tabOverrides: {} }, Wr = "pstdio/ui/tab-visibility", Gr = (e) => `${W
|
|
|
2326
2280
|
children: O
|
|
2327
2281
|
}), t[41] = g, t[42] = _, t[43] = v, t[44] = y, t[45] = b, t[46] = O, t[47] = k) : k = t[47], k;
|
|
2328
2282
|
};
|
|
2329
|
-
function
|
|
2283
|
+
function vi(e) {
|
|
2330
2284
|
let { transform: t } = e;
|
|
2331
2285
|
return {
|
|
2332
2286
|
...t,
|
|
2333
2287
|
y: 0
|
|
2334
2288
|
};
|
|
2335
2289
|
}
|
|
2336
|
-
function
|
|
2290
|
+
function yi(e) {
|
|
2337
2291
|
return e.id;
|
|
2338
2292
|
}
|
|
2339
2293
|
//#endregion
|
|
2340
2294
|
//#region src/components/tab-strip/window-title-bar.tsx
|
|
2341
|
-
var { withProvider:
|
|
2342
|
-
let t =
|
|
2343
|
-
t[0] === r ? a = t[1] : (a = /* @__PURE__ */
|
|
2295
|
+
var { withProvider: bi, withContext: xi } = Ie({ recipe: te }), Si = bi("div", "root"), Ci = xi("div", "content"), wi = (e) => {
|
|
2296
|
+
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(Ci, { children: r }), t[0] = r, t[1] = a);
|
|
2344
2298
|
let o;
|
|
2345
|
-
return t[2] !== i || t[3] !== a ? (o = /* @__PURE__ */
|
|
2299
|
+
return t[2] !== i || t[3] !== a ? (o = /* @__PURE__ */ Z(Si, {
|
|
2346
2300
|
controls: i,
|
|
2347
2301
|
"data-window-title-bar": "",
|
|
2348
2302
|
children: a
|
|
2349
2303
|
}), t[2] = i, t[3] = a, t[4] = o) : o = t[4], o;
|
|
2350
|
-
},
|
|
2351
|
-
let t =
|
|
2352
|
-
t[0] === n ? i = t[1] : (i = /* @__PURE__ */
|
|
2304
|
+
}, Ti = (e) => {
|
|
2305
|
+
let t = X(7), { children: n, hasChanges: r } = e, i;
|
|
2306
|
+
t[0] === n ? i = t[1] : (i = /* @__PURE__ */ Z(Y, {
|
|
2353
2307
|
textStyle: "label/L/medium",
|
|
2354
2308
|
truncate: !0,
|
|
2355
2309
|
children: n
|
|
2356
2310
|
}), t[0] = n, t[1] = i);
|
|
2357
2311
|
let a;
|
|
2358
|
-
t[2] === r ? a = t[3] : (a = r ? /* @__PURE__ */
|
|
2312
|
+
t[2] === r ? a = t[3] : (a = r ? /* @__PURE__ */ Z(Y, {
|
|
2359
2313
|
textStyle: "label/L/medium",
|
|
2360
2314
|
color: "fg.muted",
|
|
2361
2315
|
"aria-label": "Unsaved changes",
|
|
2362
2316
|
children: "*"
|
|
2363
2317
|
}) : null, t[2] = r, t[3] = a);
|
|
2364
2318
|
let o;
|
|
2365
|
-
return t[4] !== i || t[5] !== a ? (o = /* @__PURE__ */
|
|
2319
|
+
return t[4] !== i || t[5] !== a ? (o = /* @__PURE__ */ Q(ye, {
|
|
2366
2320
|
gap: "3xs",
|
|
2367
2321
|
minWidth: "0",
|
|
2368
2322
|
children: [i, a]
|
|
2369
2323
|
}), t[4] = i, t[5] = a, t[6] = o) : o = t[6], o;
|
|
2370
|
-
},
|
|
2371
|
-
let t =
|
|
2324
|
+
}, Ei = (e) => e.length === 0 ? "None" : e.length === 1 ? e[0].label : `${e[0].label} +${e.length - 1}`, Di = (e) => {
|
|
2325
|
+
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;
|
|
2372
2326
|
if (t[0] !== n || t[1] !== r || t[2] !== i || t[3] !== s || t[4] !== o || t[5] !== a) {
|
|
2373
2327
|
let e;
|
|
2374
2328
|
t[20] === n ? e = t[21] : (e = (e) => n.includes(e.value), t[20] = n, t[21] = e);
|
|
2375
2329
|
let b = a.filter(e), C;
|
|
2376
2330
|
t[22] !== n || t[23] !== s ? (C = (e) => {
|
|
2377
2331
|
s(n.includes(e) ? n.filter((t) => t !== e) : [...n, e]);
|
|
2378
|
-
}, 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 =
|
|
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 = Ei(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;
|
|
2379
2333
|
} 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];
|
|
2380
2334
|
let C;
|
|
2381
|
-
t[25] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */
|
|
2382
|
-
as:
|
|
2335
|
+
t[25] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ Z(be, {
|
|
2336
|
+
as: et,
|
|
2383
2337
|
boxSize: "icon-2xs"
|
|
2384
2338
|
}), t[25] = C) : C = t[25];
|
|
2385
2339
|
let w;
|
|
2386
|
-
t[26] !== c || t[27] !== d || t[28] !== f || t[29] !== p || t[30] !== m || t[31] !== h || t[32] !== g || t[33] !== _ || t[34] !== v ? (w = /* @__PURE__ */
|
|
2340
|
+
t[26] !== c || t[27] !== d || t[28] !== f || t[29] !== p || t[30] !== m || t[31] !== h || t[32] !== g || t[33] !== _ || t[34] !== v ? (w = /* @__PURE__ */ Q(c, {
|
|
2387
2341
|
size: d,
|
|
2388
2342
|
variant: f,
|
|
2389
2343
|
gap: p,
|
|
@@ -2397,25 +2351,25 @@ var { withProvider: wi, withContext: Ti } = Fe({ recipe: te }), Ei = wi("div", "
|
|
|
2397
2351
|
]
|
|
2398
2352
|
}), t[26] = c, t[27] = d, t[28] = f, t[29] = p, t[30] = m, t[31] = h, t[32] = g, t[33] = _, t[34] = v, t[35] = w) : w = t[35];
|
|
2399
2353
|
let T;
|
|
2400
|
-
t[36] !== l || t[37] !== w || t[38] !== y ? (T = /* @__PURE__ */
|
|
2354
|
+
t[36] !== l || t[37] !== w || t[38] !== y ? (T = /* @__PURE__ */ Z(l, {
|
|
2401
2355
|
asChild: y,
|
|
2402
2356
|
children: w
|
|
2403
2357
|
}), t[36] = l, t[37] = w, t[38] = y, t[39] = T) : T = t[39];
|
|
2404
2358
|
let E;
|
|
2405
2359
|
if (t[40] !== n || t[41] !== a || t[42] !== S) {
|
|
2406
2360
|
let e;
|
|
2407
|
-
t[44] !== n || t[45] !== S ? (e = (e) => /* @__PURE__ */
|
|
2361
|
+
t[44] !== n || t[45] !== S ? (e = (e) => /* @__PURE__ */ Z(Te.Item, {
|
|
2408
2362
|
value: e.value,
|
|
2409
2363
|
asChild: !0,
|
|
2410
|
-
children: /* @__PURE__ */
|
|
2364
|
+
children: /* @__PURE__ */ Z(b, {
|
|
2411
2365
|
asChild: !0,
|
|
2412
2366
|
variant: "full-width",
|
|
2413
2367
|
id: e.value,
|
|
2414
2368
|
label: e.label,
|
|
2415
2369
|
icon: e.icon,
|
|
2416
2370
|
isSelected: n.includes(e.value),
|
|
2417
|
-
endContent: n.includes(e.value) ? /* @__PURE__ */
|
|
2418
|
-
as:
|
|
2371
|
+
endContent: n.includes(e.value) ? /* @__PURE__ */ Z(be, {
|
|
2372
|
+
as: $e,
|
|
2419
2373
|
boxSize: "icon-xs"
|
|
2420
2374
|
}) : void 0,
|
|
2421
2375
|
onActivate: () => S(e.value)
|
|
@@ -2423,24 +2377,24 @@ var { withProvider: wi, withContext: Ti } = Fe({ recipe: te }), Ei = wi("div", "
|
|
|
2423
2377
|
}, e.value), t[44] = n, t[45] = S, t[46] = e) : e = t[46], E = a.map(e), t[40] = n, t[41] = a, t[42] = S, t[43] = E;
|
|
2424
2378
|
} else E = t[43];
|
|
2425
2379
|
let D;
|
|
2426
|
-
t[47] === E ? D = t[48] : (D = /* @__PURE__ */
|
|
2380
|
+
t[47] === E ? D = t[48] : (D = /* @__PURE__ */ Z(Te.Positioner, { children: /* @__PURE__ */ Z(Te.Content, {
|
|
2427
2381
|
minW: "tag-action-menu",
|
|
2428
2382
|
bg: "bg",
|
|
2429
2383
|
children: E
|
|
2430
2384
|
}) }), t[47] = E, t[48] = D);
|
|
2431
2385
|
let O;
|
|
2432
|
-
return t[49] !== u || t[50] !== T || t[51] !== D || t[52] !== x ? (O = /* @__PURE__ */
|
|
2386
|
+
return t[49] !== u || t[50] !== T || t[51] !== D || t[52] !== x ? (O = /* @__PURE__ */ Q(u, {
|
|
2433
2387
|
closeOnSelect: x,
|
|
2434
2388
|
children: [T, D]
|
|
2435
2389
|
}), t[49] = u, t[50] = T, t[51] = D, t[52] = x, t[53] = O) : O = t[53], O;
|
|
2436
|
-
},
|
|
2437
|
-
let t =
|
|
2390
|
+
}, Oi = (e) => {
|
|
2391
|
+
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;
|
|
2438
2392
|
t[0] !== _ || t[1] !== o.id ? (v = {
|
|
2439
2393
|
id: o.id,
|
|
2440
2394
|
disabled: _
|
|
2441
2395
|
}, t[0] = _, t[1] = o.id, t[2] = v) : v = t[2];
|
|
2442
|
-
let { attributes: y, listeners: b, setNodeRef: x, transform: S, transition: C, isDragging: w } =
|
|
2443
|
-
t[3] === S ? T = t[4] : (T =
|
|
2396
|
+
let { attributes: y, listeners: b, setNodeRef: x, transform: S, transition: C, isDragging: w } = Et(v), T;
|
|
2397
|
+
t[3] === S ? T = t[4] : (T = Ot.Transform.toString(S), t[3] = S, t[4] = T);
|
|
2444
2398
|
let E;
|
|
2445
2399
|
t[5] !== T || t[6] !== C ? (E = {
|
|
2446
2400
|
transform: T,
|
|
@@ -2451,12 +2405,12 @@ var { withProvider: wi, withContext: Ti } = Fe({ recipe: te }), Ei = wi("div", "
|
|
|
2451
2405
|
let N = c ? "default" : "grab", P;
|
|
2452
2406
|
t[10] === Symbol.for("react.memo_cache_sentinel") ? (P = { color: "fg.muted" }, t[10] = P) : P = t[10];
|
|
2453
2407
|
let F = `Reorder ${o.name}`, I;
|
|
2454
|
-
t[11] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */
|
|
2455
|
-
as:
|
|
2408
|
+
t[11] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ Z(be, {
|
|
2409
|
+
as: at,
|
|
2456
2410
|
boxSize: "icon-xs"
|
|
2457
2411
|
}), t[11] = I) : I = t[11];
|
|
2458
2412
|
let L;
|
|
2459
|
-
t[12] !== y || t[13] !== b || t[14] !== N || t[15] !== F ? (L = /* @__PURE__ */
|
|
2413
|
+
t[12] !== y || t[13] !== b || t[14] !== N || t[15] !== F ? (L = /* @__PURE__ */ Z(_e, {
|
|
2460
2414
|
cursor: N,
|
|
2461
2415
|
color: "fg.subtle",
|
|
2462
2416
|
_groupHover: P,
|
|
@@ -2465,8 +2419,8 @@ var { withProvider: wi, withContext: Ti } = Fe({ recipe: te }), Ei = wi("div", "
|
|
|
2465
2419
|
...b,
|
|
2466
2420
|
children: I
|
|
2467
2421
|
}), t[12] = y, t[13] = b, t[14] = N, t[15] = F, t[16] = L) : L = t[16];
|
|
2468
|
-
let
|
|
2469
|
-
t[17] !== i || t[18] !== _ || t[19] !== a || t[20] !== f || t[21] !== m || t[22] !== u || t[23] !==
|
|
2422
|
+
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(nr, {
|
|
2470
2424
|
color: o.color,
|
|
2471
2425
|
colorOptions: i,
|
|
2472
2426
|
icon: o.icon,
|
|
@@ -2475,45 +2429,45 @@ var { withProvider: wi, withContext: Ti } = Fe({ recipe: te }), Ei = wi("div", "
|
|
|
2475
2429
|
onColorChange: f,
|
|
2476
2430
|
onIconChange: m,
|
|
2477
2431
|
disabled: _,
|
|
2478
|
-
"aria-label":
|
|
2479
|
-
}), t[17] = i, t[18] = _, t[19] = a, t[20] = f, t[21] = m, t[22] = u, t[23] =
|
|
2432
|
+
"aria-label": R
|
|
2433
|
+
}), 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, t[26] = ee) : ee = t[26];
|
|
2480
2434
|
let z;
|
|
2481
2435
|
t[27] !== h || t[28] !== o.name ? (z = (e) => {
|
|
2482
2436
|
let t = e.value.trim();
|
|
2483
2437
|
t && t !== o.name && h(t);
|
|
2484
2438
|
}, t[27] = h, t[28] = o.name, t[29] = z) : z = t[29];
|
|
2485
|
-
let te,
|
|
2486
|
-
t[30] === Symbol.for("react.memo_cache_sentinel") ? (te = /* @__PURE__ */
|
|
2487
|
-
let
|
|
2488
|
-
t[32] !== _ || t[33] !== z || t[34] !== o.isNew || t[35] !== o.name ? (
|
|
2439
|
+
let te, B;
|
|
2440
|
+
t[30] === Symbol.for("react.memo_cache_sentinel") ? (te = /* @__PURE__ */ Z(ge.Preview, { textStyle: "paragraph/S/regular" }), B = /* @__PURE__ */ Z(ge.Input, { textStyle: "paragraph/S/regular" }), t[30] = te, t[31] = B) : (te = t[30], B = t[31]);
|
|
2441
|
+
let V;
|
|
2442
|
+
t[32] !== _ || t[33] !== z || t[34] !== o.isNew || t[35] !== o.name ? (V = /* @__PURE__ */ Q(ge.Root, {
|
|
2489
2443
|
minWidth: "0",
|
|
2490
2444
|
defaultValue: o.name,
|
|
2491
2445
|
defaultEdit: o.isNew,
|
|
2492
2446
|
selectOnFocus: !0,
|
|
2493
2447
|
disabled: _,
|
|
2494
2448
|
onValueCommit: z,
|
|
2495
|
-
children: [te,
|
|
2496
|
-
}, o.name), t[32] = _, t[33] = z, t[34] = o.isNew, t[35] = o.name, t[36] =
|
|
2497
|
-
let
|
|
2498
|
-
t[37] !== l || t[38] !== o.isDefault ? (
|
|
2449
|
+
children: [te, B]
|
|
2450
|
+
}, o.name), t[32] = _, t[33] = z, t[34] = o.isNew, t[35] = o.name, t[36] = V) : V = t[36];
|
|
2451
|
+
let H;
|
|
2452
|
+
t[37] !== l || t[38] !== o.isDefault ? (H = l && o.isDefault ? /* @__PURE__ */ Z(W, {
|
|
2499
2453
|
size: "sm",
|
|
2500
2454
|
variant: "subtle",
|
|
2501
2455
|
colorPalette: "blue",
|
|
2502
2456
|
children: "Default"
|
|
2503
|
-
}) : null, t[37] = l, t[38] = o.isDefault, t[39] =
|
|
2504
|
-
let
|
|
2505
|
-
t[40] !==
|
|
2457
|
+
}) : null, t[37] = l, t[38] = o.isDefault, t[39] = H) : H = t[39];
|
|
2458
|
+
let ne;
|
|
2459
|
+
t[40] !== V || t[41] !== H ? (ne = /* @__PURE__ */ Q(_e, {
|
|
2506
2460
|
flex: "1",
|
|
2507
2461
|
minWidth: "0",
|
|
2508
2462
|
alignItems: "center",
|
|
2509
2463
|
gap: "xs",
|
|
2510
|
-
children: [
|
|
2511
|
-
}), t[40] =
|
|
2512
|
-
let
|
|
2513
|
-
t[43] !== n || t[44] !== g || t[45] !== _ || t[46] !== d || t[47] !== o.actions || t[48] !== o.name ? (
|
|
2464
|
+
children: [V, H]
|
|
2465
|
+
}), t[40] = V, t[41] = H, t[42] = ne) : ne = t[42];
|
|
2466
|
+
let U;
|
|
2467
|
+
t[43] !== n || t[44] !== g || t[45] !== _ || t[46] !== d || t[47] !== o.actions || t[48] !== o.name ? (U = n ? /* @__PURE__ */ Z(_e, {
|
|
2514
2468
|
width: "tag-editor-commands",
|
|
2515
2469
|
justifyContent: "flex-end",
|
|
2516
|
-
children: /* @__PURE__ */
|
|
2470
|
+
children: /* @__PURE__ */ Z(Di, {
|
|
2517
2471
|
actions: o.actions ?? [],
|
|
2518
2472
|
disabled: _,
|
|
2519
2473
|
label: g,
|
|
@@ -2521,30 +2475,30 @@ var { withProvider: wi, withContext: Ti } = Fe({ recipe: te }), Ei = wi("div", "
|
|
|
2521
2475
|
options: n,
|
|
2522
2476
|
onChange: d
|
|
2523
2477
|
})
|
|
2524
|
-
}) : null, t[43] = n, t[44] = g, t[45] = _, t[46] = d, t[47] = o.actions, t[48] = o.name, t[49] =
|
|
2525
|
-
let
|
|
2526
|
-
t[50] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
2478
|
+
}) : null, t[43] = n, t[44] = g, t[45] = _, t[46] = d, t[47] = o.actions, t[48] = o.name, t[49] = U) : U = t[49];
|
|
2479
|
+
let re;
|
|
2480
|
+
t[50] === Symbol.for("react.memo_cache_sentinel") ? (re = {
|
|
2527
2481
|
color: "fg.error",
|
|
2528
2482
|
bg: "bg.error"
|
|
2529
|
-
}, t[50] =
|
|
2530
|
-
let
|
|
2531
|
-
t[51] === Symbol.for("react.memo_cache_sentinel") ? (oe = /* @__PURE__ */
|
|
2532
|
-
as:
|
|
2483
|
+
}, t[50] = re) : re = t[50];
|
|
2484
|
+
let ie = _ || o.isDefault, ae = `Delete ${o.name}`, oe;
|
|
2485
|
+
t[51] === Symbol.for("react.memo_cache_sentinel") ? (oe = /* @__PURE__ */ Z(be, {
|
|
2486
|
+
as: pt,
|
|
2533
2487
|
boxSize: "icon-xs"
|
|
2534
2488
|
}), t[51] = oe) : oe = t[51];
|
|
2535
2489
|
let se;
|
|
2536
|
-
t[52] !== p || t[53] !==
|
|
2490
|
+
t[52] !== p || t[53] !== ie || t[54] !== ae ? (se = /* @__PURE__ */ Z(xe, {
|
|
2537
2491
|
size: "xs",
|
|
2538
2492
|
variant: "ghost",
|
|
2539
2493
|
color: "fg.subtle",
|
|
2540
|
-
_groupHover:
|
|
2494
|
+
_groupHover: re,
|
|
2541
2495
|
onClick: p,
|
|
2542
|
-
disabled:
|
|
2543
|
-
"aria-label":
|
|
2496
|
+
disabled: ie,
|
|
2497
|
+
"aria-label": ae,
|
|
2544
2498
|
children: oe
|
|
2545
|
-
}), t[52] = p, t[53] =
|
|
2499
|
+
}), t[52] = p, t[53] = ie, t[54] = ae, t[55] = se) : se = t[55];
|
|
2546
2500
|
let ce;
|
|
2547
|
-
return t[56] !== x || t[57] !== L || t[58] !==
|
|
2501
|
+
return 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 ? (ce = /* @__PURE__ */ Q(_e, {
|
|
2548
2502
|
ref: x,
|
|
2549
2503
|
style: E,
|
|
2550
2504
|
className: "group",
|
|
@@ -2561,17 +2515,17 @@ var { withProvider: wi, withContext: Ti } = Fe({ recipe: te }), Ei = wi("div", "
|
|
|
2561
2515
|
_hover: M,
|
|
2562
2516
|
children: [
|
|
2563
2517
|
L,
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2518
|
+
ee,
|
|
2519
|
+
ne,
|
|
2520
|
+
U,
|
|
2567
2521
|
se
|
|
2568
2522
|
]
|
|
2569
|
-
}), t[56] = x, t[57] = L, t[58] =
|
|
2570
|
-
},
|
|
2571
|
-
let t =
|
|
2523
|
+
}), 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
|
+
}, ki = (e) => e.length > 0 ? Math.max(...e.map((e) => e.sortOrder)) + 1 : 0, Ai = (e) => {
|
|
2525
|
+
let t = X(12), { title: n, hasChanges: r, isSaving: i, onTitleChange: a } = e;
|
|
2572
2526
|
if (!a) {
|
|
2573
2527
|
let e;
|
|
2574
|
-
return t[0] !== r || t[1] !== n ? (e = /* @__PURE__ */
|
|
2528
|
+
return t[0] !== r || t[1] !== n ? (e = /* @__PURE__ */ Z(Ti, {
|
|
2575
2529
|
hasChanges: r,
|
|
2576
2530
|
children: n
|
|
2577
2531
|
}), t[0] = r, t[1] = n, t[2] = e) : e = t[2], e;
|
|
@@ -2582,16 +2536,16 @@ var { withProvider: wi, withContext: Ti } = Fe({ recipe: te }), Ei = wi("div", "
|
|
|
2582
2536
|
t && t !== n && a(t);
|
|
2583
2537
|
}, t[3] = a, t[4] = n, t[5] = o) : o = t[5];
|
|
2584
2538
|
let s, c;
|
|
2585
|
-
t[6] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */
|
|
2539
|
+
t[6] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ Z(ge.Preview, { textStyle: "label/L/medium" }), c = /* @__PURE__ */ Z(ge.Input, { textStyle: "label/L/medium" }), t[6] = s, t[7] = c) : (s = t[6], c = t[7]);
|
|
2586
2540
|
let l;
|
|
2587
|
-
return t[8] !== i || t[9] !== o || t[10] !== n ? (l = /* @__PURE__ */
|
|
2541
|
+
return t[8] !== i || t[9] !== o || t[10] !== n ? (l = /* @__PURE__ */ Q(ge.Root, {
|
|
2588
2542
|
defaultValue: n,
|
|
2589
2543
|
disabled: i,
|
|
2590
2544
|
selectOnFocus: !0,
|
|
2591
2545
|
onValueCommit: o,
|
|
2592
2546
|
children: [s, c]
|
|
2593
2547
|
}, n), t[8] = i, t[9] = o, t[10] = n, t[11] = l) : l = t[11], l;
|
|
2594
|
-
},
|
|
2548
|
+
}, ji = Fe("button", { base: {
|
|
2595
2549
|
display: "flex",
|
|
2596
2550
|
alignItems: "center",
|
|
2597
2551
|
gap: "xs",
|
|
@@ -2612,14 +2566,14 @@ var { withProvider: wi, withContext: Ti } = Fe({ recipe: te }), Ei = wi("div", "
|
|
|
2612
2566
|
color: "fg.muted"
|
|
2613
2567
|
}
|
|
2614
2568
|
}
|
|
2615
|
-
} }),
|
|
2616
|
-
let t =
|
|
2617
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */
|
|
2569
|
+
} }), Mi = (e) => {
|
|
2570
|
+
let t = X(9), { valueLabel: n, actionsLabel: r } = e, i;
|
|
2571
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ Z(_e, {
|
|
2618
2572
|
width: "tag-editor-lead",
|
|
2619
2573
|
flexShrink: "0"
|
|
2620
2574
|
}), t[0] = i) : i = t[0];
|
|
2621
2575
|
let a;
|
|
2622
|
-
t[1] === n ? a = t[2] : (a = /* @__PURE__ */
|
|
2576
|
+
t[1] === n ? a = t[2] : (a = /* @__PURE__ */ Z(Y, {
|
|
2623
2577
|
flex: "1",
|
|
2624
2578
|
minWidth: "0",
|
|
2625
2579
|
textStyle: "label/XS/caps",
|
|
@@ -2627,7 +2581,7 @@ var { withProvider: wi, withContext: Ti } = Fe({ recipe: te }), Ei = wi("div", "
|
|
|
2627
2581
|
children: n
|
|
2628
2582
|
}), t[1] = n, t[2] = a);
|
|
2629
2583
|
let o;
|
|
2630
|
-
t[3] === r ? o = t[4] : (o = r ? /* @__PURE__ */
|
|
2584
|
+
t[3] === r ? o = t[4] : (o = r ? /* @__PURE__ */ Z(Y, {
|
|
2631
2585
|
width: "tag-editor-commands",
|
|
2632
2586
|
textAlign: "right",
|
|
2633
2587
|
textStyle: "label/XS/caps",
|
|
@@ -2635,12 +2589,12 @@ var { withProvider: wi, withContext: Ti } = Fe({ recipe: te }), Ei = wi("div", "
|
|
|
2635
2589
|
children: r
|
|
2636
2590
|
}) : null, t[3] = r, t[4] = o);
|
|
2637
2591
|
let s;
|
|
2638
|
-
t[5] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */
|
|
2592
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ Z(_e, {
|
|
2639
2593
|
width: "tag-editor-trailing",
|
|
2640
2594
|
flexShrink: "0"
|
|
2641
2595
|
}), t[5] = s) : s = t[5];
|
|
2642
2596
|
let c;
|
|
2643
|
-
return t[6] !== a || t[7] !== o ? (c = /* @__PURE__ */
|
|
2597
|
+
return t[6] !== a || t[7] !== o ? (c = /* @__PURE__ */ Q(_e, {
|
|
2644
2598
|
alignItems: "center",
|
|
2645
2599
|
gap: "compact",
|
|
2646
2600
|
paddingInline: "xs",
|
|
@@ -2655,24 +2609,24 @@ var { withProvider: wi, withContext: Ti } = Fe({ recipe: te }), Ei = wi("div", "
|
|
|
2655
2609
|
s
|
|
2656
2610
|
]
|
|
2657
2611
|
}), t[6] = a, t[7] = o, t[8] = c) : c = t[8], c;
|
|
2658
|
-
},
|
|
2659
|
-
let t =
|
|
2660
|
-
t[0] === r ? o = t[1] : (o = r.find(
|
|
2612
|
+
}, Ni = (e) => {
|
|
2613
|
+
let t = X(22), { label: n, values: r, disabled: i, onSelect: a } = e, o;
|
|
2614
|
+
t[0] === r ? o = t[1] : (o = r.find(Fi), t[0] = r, t[1] = o);
|
|
2661
2615
|
let s = o, c;
|
|
2662
|
-
t[2] === n ? c = t[3] : (c = /* @__PURE__ */
|
|
2616
|
+
t[2] === n ? c = t[3] : (c = /* @__PURE__ */ Z(Y, {
|
|
2663
2617
|
textStyle: "paragraph/S/regular",
|
|
2664
2618
|
color: "fg.muted",
|
|
2665
2619
|
children: n
|
|
2666
2620
|
}), t[2] = n, t[3] = c);
|
|
2667
2621
|
let l = s?.name ?? "None", u;
|
|
2668
|
-
t[4] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */
|
|
2669
|
-
as:
|
|
2622
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ Z(be, {
|
|
2623
|
+
as: et,
|
|
2670
2624
|
boxSize: "icon-2xs"
|
|
2671
2625
|
}), t[4] = u) : u = t[4];
|
|
2672
2626
|
let d;
|
|
2673
|
-
t[5] !== i || t[6] !== n || t[7] !== l ? (d = /* @__PURE__ */
|
|
2627
|
+
t[5] !== i || t[6] !== n || t[7] !== l ? (d = /* @__PURE__ */ Z(Te.Trigger, {
|
|
2674
2628
|
asChild: !0,
|
|
2675
|
-
children: /* @__PURE__ */
|
|
2629
|
+
children: /* @__PURE__ */ Q(q, {
|
|
2676
2630
|
size: "2xs",
|
|
2677
2631
|
variant: "ghost",
|
|
2678
2632
|
gap: "xs",
|
|
@@ -2684,17 +2638,17 @@ var { withProvider: wi, withContext: Ti } = Fe({ recipe: te }), Ei = wi("div", "
|
|
|
2684
2638
|
let f;
|
|
2685
2639
|
if (t[9] !== a || t[10] !== r) {
|
|
2686
2640
|
let e;
|
|
2687
|
-
t[12] === a ? e = t[13] : (e = (e) => /* @__PURE__ */
|
|
2641
|
+
t[12] === a ? e = t[13] : (e = (e) => /* @__PURE__ */ Z(Te.Item, {
|
|
2688
2642
|
value: e.id,
|
|
2689
2643
|
asChild: !0,
|
|
2690
|
-
children: /* @__PURE__ */
|
|
2644
|
+
children: /* @__PURE__ */ Z(b, {
|
|
2691
2645
|
asChild: !0,
|
|
2692
2646
|
variant: "full-width",
|
|
2693
2647
|
id: e.id,
|
|
2694
2648
|
label: e.name,
|
|
2695
2649
|
isSelected: e.isDefault,
|
|
2696
|
-
endContent: e.isDefault ? /* @__PURE__ */
|
|
2697
|
-
as:
|
|
2650
|
+
endContent: e.isDefault ? /* @__PURE__ */ Z(be, {
|
|
2651
|
+
as: $e,
|
|
2698
2652
|
boxSize: "icon-xs"
|
|
2699
2653
|
}) : void 0,
|
|
2700
2654
|
onActivate: () => a(e)
|
|
@@ -2702,15 +2656,15 @@ var { withProvider: wi, withContext: Ti } = Fe({ recipe: te }), Ei = wi("div", "
|
|
|
2702
2656
|
}, e.id), t[12] = a, t[13] = e), f = r.map(e), t[9] = a, t[10] = r, t[11] = f;
|
|
2703
2657
|
} else f = t[11];
|
|
2704
2658
|
let p;
|
|
2705
|
-
t[14] === f ? p = t[15] : (p = /* @__PURE__ */
|
|
2659
|
+
t[14] === f ? p = t[15] : (p = /* @__PURE__ */ Z(Te.Positioner, { children: /* @__PURE__ */ Z(Te.Content, {
|
|
2706
2660
|
minW: "tag-action-menu",
|
|
2707
2661
|
bg: "bg",
|
|
2708
2662
|
children: f
|
|
2709
2663
|
}) }), t[14] = f, t[15] = p);
|
|
2710
2664
|
let m;
|
|
2711
|
-
t[16] !== d || t[17] !== p ? (m = /* @__PURE__ */
|
|
2665
|
+
t[16] !== d || t[17] !== p ? (m = /* @__PURE__ */ Q(Te.Root, { children: [d, p] }), t[16] = d, t[17] = p, t[18] = m) : m = t[18];
|
|
2712
2666
|
let h;
|
|
2713
|
-
return t[19] !== c || t[20] !== m ? (h = /* @__PURE__ */
|
|
2667
|
+
return t[19] !== c || t[20] !== m ? (h = /* @__PURE__ */ Q(_e, {
|
|
2714
2668
|
alignItems: "center",
|
|
2715
2669
|
gap: "sm",
|
|
2716
2670
|
paddingInline: "xs",
|
|
@@ -2720,62 +2674,62 @@ var { withProvider: wi, withContext: Ti } = Fe({ recipe: te }), Ei = wi("div", "
|
|
|
2720
2674
|
borderColor: "border.subtle",
|
|
2721
2675
|
children: [c, m]
|
|
2722
2676
|
}), t[19] = c, t[20] = m, t[21] = h) : h = t[21], h;
|
|
2723
|
-
},
|
|
2724
|
-
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] =
|
|
2677
|
+
}, Pi = (e) => {
|
|
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(bt(vt, { activationConstraint: { distance: 5 } })), M = (e, t) => {
|
|
2725
2679
|
let n = [...i];
|
|
2726
2680
|
n[e] = {
|
|
2727
2681
|
...n[e],
|
|
2728
2682
|
...t
|
|
2729
2683
|
}, a(n);
|
|
2730
2684
|
};
|
|
2731
|
-
return /* @__PURE__ */
|
|
2685
|
+
return /* @__PURE__ */ Q(Be, { children: [/* @__PURE__ */ Q(je, {
|
|
2732
2686
|
gap: "2xs",
|
|
2733
|
-
children: [t || r ? /* @__PURE__ */
|
|
2687
|
+
children: [t || r ? /* @__PURE__ */ Q(_e, {
|
|
2734
2688
|
minHeight: "tag-editor-row",
|
|
2735
2689
|
alignItems: "center",
|
|
2736
2690
|
justifyContent: "space-between",
|
|
2737
2691
|
gap: "xs",
|
|
2738
|
-
children: [/* @__PURE__ */
|
|
2692
|
+
children: [/* @__PURE__ */ Q(je, {
|
|
2739
2693
|
gap: "3xs",
|
|
2740
2694
|
minWidth: "0",
|
|
2741
|
-
children: [t ? /* @__PURE__ */
|
|
2695
|
+
children: [t ? /* @__PURE__ */ Z(Ai, {
|
|
2742
2696
|
title: t,
|
|
2743
2697
|
hasChanges: l,
|
|
2744
2698
|
isSaving: u,
|
|
2745
2699
|
onTitleChange: c
|
|
2746
|
-
}) : null, n ? /* @__PURE__ */
|
|
2700
|
+
}) : null, n ? /* @__PURE__ */ Z(Y, {
|
|
2747
2701
|
textStyle: "paragraph/S/regular",
|
|
2748
2702
|
color: "fg.muted",
|
|
2749
2703
|
children: n
|
|
2750
2704
|
}) : null]
|
|
2751
2705
|
}), r]
|
|
2752
|
-
}) : null, /* @__PURE__ */
|
|
2706
|
+
}) : null, /* @__PURE__ */ Q(je, {
|
|
2753
2707
|
gap: "none",
|
|
2754
2708
|
borderWidth: E ? "1px" : void 0,
|
|
2755
2709
|
borderColor: E ? "border.subtle" : void 0,
|
|
2756
2710
|
borderRadius: E ? "md" : void 0,
|
|
2757
2711
|
overflow: E ? "hidden" : void 0,
|
|
2758
2712
|
children: [
|
|
2759
|
-
D ? /* @__PURE__ */
|
|
2713
|
+
D ? /* @__PURE__ */ Z(Mi, {
|
|
2760
2714
|
valueLabel: O,
|
|
2761
2715
|
actionsLabel: m ? h : void 0
|
|
2762
2716
|
}) : null,
|
|
2763
|
-
/* @__PURE__ */
|
|
2717
|
+
/* @__PURE__ */ Z(gt, {
|
|
2764
2718
|
sensors: j,
|
|
2765
|
-
collisionDetection:
|
|
2719
|
+
collisionDetection: yt,
|
|
2766
2720
|
onDragEnd: d ? void 0 : (e) => {
|
|
2767
2721
|
let { active: t, over: n } = e;
|
|
2768
2722
|
if (!n || t.id === n.id) return;
|
|
2769
2723
|
let r = i.findIndex((e) => e.id === t.id), o = i.findIndex((e) => e.id === n.id);
|
|
2770
|
-
r < 0 || o < 0 || a(
|
|
2724
|
+
r < 0 || o < 0 || a(Ct(i, r, o).map((e, t) => ({
|
|
2771
2725
|
...e,
|
|
2772
2726
|
sortOrder: t
|
|
2773
2727
|
})));
|
|
2774
2728
|
},
|
|
2775
|
-
children: /* @__PURE__ */
|
|
2729
|
+
children: /* @__PURE__ */ Z(St, {
|
|
2776
2730
|
items: i.map((e) => e.id),
|
|
2777
|
-
strategy:
|
|
2778
|
-
children: i.map((e, t) => /* @__PURE__ */
|
|
2731
|
+
strategy: Dt,
|
|
2732
|
+
children: i.map((e, t) => /* @__PURE__ */ Z(Oi, {
|
|
2779
2733
|
value: e,
|
|
2780
2734
|
isSaving: u,
|
|
2781
2735
|
readOnly: d,
|
|
@@ -2793,7 +2747,7 @@ var { withProvider: wi, withContext: Ti } = Fe({ recipe: te }), Ei = wi("div", "
|
|
|
2793
2747
|
}, e.id))
|
|
2794
2748
|
})
|
|
2795
2749
|
}),
|
|
2796
|
-
d ? null : /* @__PURE__ */
|
|
2750
|
+
d ? null : /* @__PURE__ */ Q(ji, {
|
|
2797
2751
|
type: "button",
|
|
2798
2752
|
disabled: u,
|
|
2799
2753
|
onClick: () => {
|
|
@@ -2802,19 +2756,19 @@ var { withProvider: wi, withContext: Ti } = Fe({ recipe: te }), Ei = wi("div", "
|
|
|
2802
2756
|
name: p,
|
|
2803
2757
|
color: v,
|
|
2804
2758
|
icon: y,
|
|
2805
|
-
sortOrder:
|
|
2759
|
+
sortOrder: ki(i),
|
|
2806
2760
|
isNew: !0
|
|
2807
2761
|
}]);
|
|
2808
2762
|
},
|
|
2809
|
-
children: [/* @__PURE__ */
|
|
2810
|
-
as:
|
|
2763
|
+
children: [/* @__PURE__ */ Z(be, {
|
|
2764
|
+
as: ut,
|
|
2811
2765
|
boxSize: "icon-xs"
|
|
2812
|
-
}), /* @__PURE__ */
|
|
2766
|
+
}), /* @__PURE__ */ Z(Y, {
|
|
2813
2767
|
textStyle: "paragraph/S/regular",
|
|
2814
2768
|
children: f
|
|
2815
2769
|
})]
|
|
2816
2770
|
}),
|
|
2817
|
-
w && i.length > 0 ? /* @__PURE__ */
|
|
2771
|
+
w && i.length > 0 ? /* @__PURE__ */ Z(Ni, {
|
|
2818
2772
|
label: g,
|
|
2819
2773
|
values: i,
|
|
2820
2774
|
disabled: u || d,
|
|
@@ -2822,7 +2776,7 @@ var { withProvider: wi, withContext: Ti } = Fe({ recipe: te }), Ei = wi("div", "
|
|
|
2822
2776
|
}) : null
|
|
2823
2777
|
]
|
|
2824
2778
|
})]
|
|
2825
|
-
}), /* @__PURE__ */
|
|
2779
|
+
}), /* @__PURE__ */ Z(In, {
|
|
2826
2780
|
open: !!k,
|
|
2827
2781
|
onClose: () => A(null),
|
|
2828
2782
|
onDelete: () => {
|
|
@@ -2833,14 +2787,14 @@ var { withProvider: wi, withContext: Ti } = Fe({ recipe: te }), Ei = wi("div", "
|
|
|
2833
2787
|
buttonText: b
|
|
2834
2788
|
})] });
|
|
2835
2789
|
};
|
|
2836
|
-
function
|
|
2790
|
+
function Fi(e) {
|
|
2837
2791
|
return e.isDefault;
|
|
2838
2792
|
}
|
|
2839
2793
|
//#endregion
|
|
2840
2794
|
//#region src/components/tag-editor/tag-editor-save-bar.tsx
|
|
2841
|
-
var
|
|
2842
|
-
let t =
|
|
2843
|
-
t[0] !== i || t[1] !== a || t[2] !== r || t[3] !== c ? (u = i ? /* @__PURE__ */
|
|
2795
|
+
var Ii = (e) => {
|
|
2796
|
+
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
|
+
t[0] !== i || t[1] !== a || t[2] !== r || t[3] !== c ? (u = i ? /* @__PURE__ */ Z(q, {
|
|
2844
2798
|
size: "sm",
|
|
2845
2799
|
variant: "ghost",
|
|
2846
2800
|
onClick: r,
|
|
@@ -2848,7 +2802,7 @@ var Bi = (e) => {
|
|
|
2848
2802
|
children: c
|
|
2849
2803
|
}) : null, t[0] = i, t[1] = a, t[2] = r, t[3] = c, t[4] = u) : u = t[4];
|
|
2850
2804
|
let d = !i, f;
|
|
2851
|
-
t[5] !== a || t[6] !== n || t[7] !== l || t[8] !== d ? (f = /* @__PURE__ */
|
|
2805
|
+
t[5] !== a || t[6] !== n || t[7] !== l || t[8] !== d ? (f = /* @__PURE__ */ Z(q, {
|
|
2852
2806
|
size: "sm",
|
|
2853
2807
|
variant: "primary",
|
|
2854
2808
|
onClick: n,
|
|
@@ -2857,18 +2811,18 @@ var Bi = (e) => {
|
|
|
2857
2811
|
children: l
|
|
2858
2812
|
}), t[5] = a, t[6] = n, t[7] = l, t[8] = d, t[9] = f) : f = t[9];
|
|
2859
2813
|
let p;
|
|
2860
|
-
return t[10] !== u || t[11] !== f ? (p = /* @__PURE__ */
|
|
2814
|
+
return t[10] !== u || t[11] !== f ? (p = /* @__PURE__ */ Q(ye, {
|
|
2861
2815
|
gap: "xs",
|
|
2862
2816
|
children: [u, f]
|
|
2863
2817
|
}), t[10] = u, t[11] = f, t[12] = p) : p = t[12], p;
|
|
2864
|
-
},
|
|
2818
|
+
}, Li = (e, t) => e.sortOrder - t.sortOrder || e.name.localeCompare(t.name), Ri = (e, t) => e.map(t).sort(Li), zi = (e, t) => e.find((e) => e.id === t.id), Bi = (e, t, n, r) => n.size > 0 || t.some((t) => {
|
|
2865
2819
|
if (t.isNew) return !0;
|
|
2866
|
-
let n =
|
|
2820
|
+
let n = zi(e, t);
|
|
2867
2821
|
return !n || r(n, t) || t.sortOrder !== n.sortOrder;
|
|
2868
|
-
}),
|
|
2869
|
-
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] =
|
|
2870
|
-
|
|
2871
|
-
a && m(
|
|
2822
|
+
}), Vi = (e) => e instanceof Error ? e.message : e ? String(e) : null, Hi = (e) => {
|
|
2823
|
+
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
|
+
qe(() => {
|
|
2825
|
+
a && m(Ri(a, u));
|
|
2872
2826
|
}, [a, u]);
|
|
2873
2827
|
let S = async () => {
|
|
2874
2828
|
v(!0), b(null);
|
|
@@ -2883,32 +2837,32 @@ var Bi = (e) => {
|
|
|
2883
2837
|
} finally {
|
|
2884
2838
|
v(!1);
|
|
2885
2839
|
}
|
|
2886
|
-
}, C =
|
|
2840
|
+
}, C = Bi(x, p, h, d), w = Vi(o) ?? Vi(y), T = (e) => {
|
|
2887
2841
|
e.isNew || g(/* @__PURE__ */ new Set([...h, e.id])), m(p.filter((t) => t.id !== e.id));
|
|
2888
2842
|
}, E = () => {
|
|
2889
|
-
m(
|
|
2843
|
+
m(Ri(x, u)), g(/* @__PURE__ */ new Set()), b(null);
|
|
2890
2844
|
};
|
|
2891
|
-
return /* @__PURE__ */
|
|
2845
|
+
return /* @__PURE__ */ Q(je, {
|
|
2892
2846
|
boxSizing: "border-box",
|
|
2893
2847
|
minH: "100%",
|
|
2894
2848
|
p: "lg",
|
|
2895
2849
|
gap: "lg",
|
|
2896
2850
|
bg: "bg",
|
|
2897
2851
|
color: "fg",
|
|
2898
|
-
children: [w ? /* @__PURE__ */
|
|
2852
|
+
children: [w ? /* @__PURE__ */ Z(c, {
|
|
2899
2853
|
status: "error",
|
|
2900
2854
|
colorPalette: "red",
|
|
2901
2855
|
title: t,
|
|
2902
2856
|
size: "sm",
|
|
2903
2857
|
children: w
|
|
2904
|
-
}) : null, a === void 0 ? /* @__PURE__ */
|
|
2858
|
+
}) : null, a === void 0 ? /* @__PURE__ */ Q(ye, {
|
|
2905
2859
|
gap: "sm",
|
|
2906
2860
|
color: "fg.muted",
|
|
2907
|
-
children: [/* @__PURE__ */
|
|
2861
|
+
children: [/* @__PURE__ */ Z(Ae, { size: "sm" }), /* @__PURE__ */ Z(Y, {
|
|
2908
2862
|
textStyle: "paragraph/S/regular",
|
|
2909
2863
|
children: n
|
|
2910
2864
|
})]
|
|
2911
|
-
}) : /* @__PURE__ */
|
|
2865
|
+
}) : /* @__PURE__ */ Z(Pi, {
|
|
2912
2866
|
...f,
|
|
2913
2867
|
readOnly: l,
|
|
2914
2868
|
values: p,
|
|
@@ -2920,7 +2874,7 @@ var Bi = (e) => {
|
|
|
2920
2874
|
}))) : f.onSetDefault,
|
|
2921
2875
|
hasChanges: C,
|
|
2922
2876
|
isSaving: _,
|
|
2923
|
-
headerActions: l ? void 0 : /* @__PURE__ */
|
|
2877
|
+
headerActions: l ? void 0 : /* @__PURE__ */ Z(Ii, {
|
|
2924
2878
|
hasChanges: C,
|
|
2925
2879
|
isSaving: _,
|
|
2926
2880
|
resetLabel: r,
|
|
@@ -2930,29 +2884,29 @@ var Bi = (e) => {
|
|
|
2930
2884
|
})
|
|
2931
2885
|
})]
|
|
2932
2886
|
});
|
|
2933
|
-
},
|
|
2887
|
+
}, Ui = {
|
|
2934
2888
|
sectionOrder: [],
|
|
2935
2889
|
nodeOrderBySection: {},
|
|
2936
2890
|
sectionSlotById: {}
|
|
2937
|
-
},
|
|
2891
|
+
}, Wi = "pstdio/ui/tree-list-order", Gi = (e) => `${Wi}/${e}`, Ki = (e) => {
|
|
2938
2892
|
let t = /* @__PURE__ */ new Set(), n = [];
|
|
2939
2893
|
for (let r of e) t.has(r) || (t.add(r), n.push(r));
|
|
2940
2894
|
return n;
|
|
2941
|
-
},
|
|
2895
|
+
}, qi = (e) => ({
|
|
2942
2896
|
sectionOrder: e.sectionOrder,
|
|
2943
2897
|
nodeOrderBySection: e.nodeOrderBySection,
|
|
2944
2898
|
sectionSlotById: e.sectionSlotById
|
|
2945
|
-
}),
|
|
2946
|
-
...
|
|
2899
|
+
}), Ji = (e) => Mt()(jt((e) => ({
|
|
2900
|
+
...Ui,
|
|
2947
2901
|
setSectionOrder: (t) => e((e) => ({
|
|
2948
2902
|
...e,
|
|
2949
|
-
sectionOrder:
|
|
2903
|
+
sectionOrder: Ki(t)
|
|
2950
2904
|
})),
|
|
2951
2905
|
setNodeOrder: (t, n) => e((e) => ({
|
|
2952
2906
|
...e,
|
|
2953
2907
|
nodeOrderBySection: {
|
|
2954
2908
|
...e.nodeOrderBySection,
|
|
2955
|
-
[t]:
|
|
2909
|
+
[t]: Ki(n)
|
|
2956
2910
|
}
|
|
2957
2911
|
})),
|
|
2958
2912
|
setSectionSlot: (t, n) => e((e) => ({
|
|
@@ -2974,20 +2928,20 @@ var Bi = (e) => {
|
|
|
2974
2928
|
nodeOrderBySection: r
|
|
2975
2929
|
};
|
|
2976
2930
|
}),
|
|
2977
|
-
reset: () => e(
|
|
2931
|
+
reset: () => e(Ui)
|
|
2978
2932
|
}), {
|
|
2979
|
-
name:
|
|
2980
|
-
storage:
|
|
2981
|
-
partialize:
|
|
2982
|
-
})),
|
|
2983
|
-
let t =
|
|
2933
|
+
name: Gi(e.storageKey),
|
|
2934
|
+
storage: At(z),
|
|
2935
|
+
partialize: qi
|
|
2936
|
+
})), Yi = /* @__PURE__ */ new Map(), Xi = (e) => {
|
|
2937
|
+
let t = Yi.get(e);
|
|
2984
2938
|
if (t) return t;
|
|
2985
|
-
let n =
|
|
2986
|
-
return
|
|
2987
|
-
},
|
|
2988
|
-
let n =
|
|
2989
|
-
return n[0] === e ? r = n[1] : (r =
|
|
2990
|
-
},
|
|
2939
|
+
let n = Ji({ storageKey: e });
|
|
2940
|
+
return Yi.set(e, n), n;
|
|
2941
|
+
}, Zi = (e, t) => {
|
|
2942
|
+
let n = X(2), r;
|
|
2943
|
+
return n[0] === e ? r = n[1] : (r = Xi(e), n[0] = e, n[1] = r), kt(r, t);
|
|
2944
|
+
}, Qi = (e, t) => {
|
|
2991
2945
|
if (t.length === 0) return e;
|
|
2992
2946
|
let n = new Map(e.map((e, t) => [e.id, t])), r = /* @__PURE__ */ new Set(), i = [];
|
|
2993
2947
|
for (let a of t) {
|
|
@@ -3003,8 +2957,8 @@ var Bi = (e) => {
|
|
|
3003
2957
|
}
|
|
3004
2958
|
}
|
|
3005
2959
|
return a ? i : e;
|
|
3006
|
-
},
|
|
3007
|
-
let r = !1, i =
|
|
2960
|
+
}, $i = (e, t, n) => {
|
|
2961
|
+
let r = !1, i = Qi(e, t);
|
|
3008
2962
|
i !== e && (r = !0);
|
|
3009
2963
|
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 = [];
|
|
3010
2964
|
for (let e of i) {
|
|
@@ -3027,10 +2981,10 @@ var Bi = (e) => {
|
|
|
3027
2981
|
})) : s.push(e);
|
|
3028
2982
|
}
|
|
3029
2983
|
return r ? s : e;
|
|
3030
|
-
},
|
|
2984
|
+
}, ea = {
|
|
3031
2985
|
sectionOverrides: {},
|
|
3032
2986
|
nodeOverrides: {}
|
|
3033
|
-
},
|
|
2987
|
+
}, ta = "pstdio/ui/tree-list-visibility", na = (e) => `${ta}/${e}`, ra = (e, t) => e ?? (t ? "hidden" : "shown"), ia = (e) => e === "hidden" ? "shown" : "hidden", aa = (e, t, n) => {
|
|
3034
2988
|
if (n === void 0) {
|
|
3035
2989
|
if (!(t in e)) return e;
|
|
3036
2990
|
let { [t]: n, ...r } = e;
|
|
@@ -3040,83 +2994,83 @@ var Bi = (e) => {
|
|
|
3040
2994
|
...e,
|
|
3041
2995
|
[t]: n
|
|
3042
2996
|
};
|
|
3043
|
-
},
|
|
2997
|
+
}, oa = (e, t, n) => aa(e, t, ia(ra(e[t], n))), sa = (e) => ({
|
|
3044
2998
|
sectionOverrides: e.sectionOverrides,
|
|
3045
2999
|
nodeOverrides: e.nodeOverrides
|
|
3046
|
-
}),
|
|
3047
|
-
...
|
|
3000
|
+
}), ca = (e) => Mt()(jt((e) => ({
|
|
3001
|
+
...ea,
|
|
3048
3002
|
setSection: (t, n) => e((e) => ({
|
|
3049
3003
|
...e,
|
|
3050
|
-
sectionOverrides:
|
|
3004
|
+
sectionOverrides: aa(e.sectionOverrides, t, n)
|
|
3051
3005
|
})),
|
|
3052
3006
|
setNode: (t, n) => e((e) => ({
|
|
3053
3007
|
...e,
|
|
3054
|
-
nodeOverrides:
|
|
3008
|
+
nodeOverrides: aa(e.nodeOverrides, t, n)
|
|
3055
3009
|
})),
|
|
3056
3010
|
toggleSection: (t, n) => e((e) => ({
|
|
3057
3011
|
...e,
|
|
3058
|
-
sectionOverrides:
|
|
3012
|
+
sectionOverrides: oa(e.sectionOverrides, t, n)
|
|
3059
3013
|
})),
|
|
3060
3014
|
toggleNode: (t, n) => e((e) => ({
|
|
3061
3015
|
...e,
|
|
3062
|
-
nodeOverrides:
|
|
3016
|
+
nodeOverrides: oa(e.nodeOverrides, t, n)
|
|
3063
3017
|
})),
|
|
3064
3018
|
clearSection: (t) => e((e) => ({
|
|
3065
3019
|
...e,
|
|
3066
|
-
sectionOverrides:
|
|
3020
|
+
sectionOverrides: aa(e.sectionOverrides, t, void 0)
|
|
3067
3021
|
})),
|
|
3068
3022
|
clearNode: (t) => e((e) => ({
|
|
3069
3023
|
...e,
|
|
3070
|
-
nodeOverrides:
|
|
3024
|
+
nodeOverrides: aa(e.nodeOverrides, t, void 0)
|
|
3071
3025
|
})),
|
|
3072
|
-
reset: () => e(
|
|
3026
|
+
reset: () => e(ea)
|
|
3073
3027
|
}), {
|
|
3074
|
-
name:
|
|
3075
|
-
storage:
|
|
3076
|
-
partialize:
|
|
3077
|
-
})),
|
|
3078
|
-
let t =
|
|
3028
|
+
name: na(e.storageKey),
|
|
3029
|
+
storage: At(z),
|
|
3030
|
+
partialize: sa
|
|
3031
|
+
})), la = /* @__PURE__ */ new Map(), ua = (e) => {
|
|
3032
|
+
let t = la.get(e);
|
|
3079
3033
|
if (t) return t;
|
|
3080
|
-
let n =
|
|
3081
|
-
return
|
|
3082
|
-
},
|
|
3083
|
-
let n =
|
|
3084
|
-
return n[0] === e ? r = n[1] : (r =
|
|
3085
|
-
},
|
|
3034
|
+
let n = ca({ storageKey: e });
|
|
3035
|
+
return la.set(e, n), n;
|
|
3036
|
+
}, da = (e, t) => {
|
|
3037
|
+
let n = X(2), r;
|
|
3038
|
+
return n[0] === e ? r = n[1] : (r = ua(e), n[0] = e, n[1] = r), kt(r, t);
|
|
3039
|
+
}, fa = [], pa = (e, t) => typeof e == "string" && t.some((t) => t.id === e), ma = (e) => {
|
|
3086
3040
|
let t = e.toLowerCase().split("."), n = [];
|
|
3087
3041
|
for (let e = 1; e < t.length; e += 1) n.push(t.slice(e).join("."));
|
|
3088
3042
|
return n;
|
|
3089
|
-
},
|
|
3043
|
+
}, ha = (e, t, n) => {
|
|
3090
3044
|
if (n) return e.defaults.folder;
|
|
3091
3045
|
let r = e.fileNames[t.toLowerCase()];
|
|
3092
3046
|
if (r) return r;
|
|
3093
|
-
for (let n of
|
|
3047
|
+
for (let n of ma(t)) {
|
|
3094
3048
|
let t = e.fileExtensions[n];
|
|
3095
3049
|
if (t) return t;
|
|
3096
3050
|
}
|
|
3097
3051
|
return e.defaults.file;
|
|
3098
|
-
},
|
|
3052
|
+
}, ga = (e, t) => {
|
|
3099
3053
|
if (t.fontId) {
|
|
3100
3054
|
let n = e.fonts.find((n) => n.fontFamily === `${e.id}-${t.fontId}`);
|
|
3101
3055
|
if (n) return n.fontFamily;
|
|
3102
3056
|
}
|
|
3103
3057
|
return e.fonts[0]?.fontFamily;
|
|
3104
|
-
},
|
|
3058
|
+
}, _a = (e) => {
|
|
3105
3059
|
let t = /^\\([0-9a-fA-F]+)$/.exec(e);
|
|
3106
3060
|
return t ? String.fromCodePoint(Number.parseInt(t[1], 16)) : e;
|
|
3107
|
-
},
|
|
3061
|
+
}, va = (e, t, n = !1) => {
|
|
3108
3062
|
if (!e) return;
|
|
3109
|
-
let r =
|
|
3063
|
+
let r = ha(e, t, n);
|
|
3110
3064
|
if (!r) return;
|
|
3111
3065
|
let i = e.definitions[r];
|
|
3112
3066
|
if (!i?.fontCharacter) return;
|
|
3113
|
-
let a =
|
|
3067
|
+
let a = ga(e, i);
|
|
3114
3068
|
if (a) return {
|
|
3115
3069
|
fontFamily: a,
|
|
3116
|
-
fontCharacter:
|
|
3070
|
+
fontCharacter: _a(i.fontCharacter),
|
|
3117
3071
|
fontColor: i.fontColor
|
|
3118
3072
|
};
|
|
3119
|
-
},
|
|
3073
|
+
}, ya = "data-pstdio-file-icon-fonts", ba = (e) => {
|
|
3120
3074
|
let t = e.src.map((e) => `url("${e.url}")${e.format ? ` format("${e.format}")` : ""}`).join(", ");
|
|
3121
3075
|
return [
|
|
3122
3076
|
"@font-face {",
|
|
@@ -3126,28 +3080,28 @@ var Bi = (e) => {
|
|
|
3126
3080
|
` font-style: ${e.style ?? "normal"};`,
|
|
3127
3081
|
"}"
|
|
3128
3082
|
].join("\n");
|
|
3129
|
-
},
|
|
3083
|
+
}, xa = (e, t) => {
|
|
3130
3084
|
if (typeof document > "u") return;
|
|
3131
|
-
let n = document.querySelector(`style[${
|
|
3132
|
-
n || (n = document.createElement("style"), n.setAttribute(
|
|
3085
|
+
let n = document.querySelector(`style[${ya}]`);
|
|
3086
|
+
n || (n = document.createElement("style"), n.setAttribute(ya, ""), document.head.appendChild(n));
|
|
3133
3087
|
let r = t.find((t) => t.id === e);
|
|
3134
|
-
n.textContent = (r?.fonts ?? []).map(
|
|
3135
|
-
},
|
|
3136
|
-
if (typeof window > "u") return
|
|
3137
|
-
let t = z().getItem(
|
|
3138
|
-
return
|
|
3139
|
-
},
|
|
3140
|
-
let t =
|
|
3141
|
-
t[0] === i ? a = t[1] : (a = () =>
|
|
3142
|
-
let [o, s] =
|
|
3088
|
+
n.textContent = (r?.fonts ?? []).map(ba).join("\n\n");
|
|
3089
|
+
}, Sa = "file-icon-theme-preference", Ca = (e) => e.find((e) => e.id.endsWith(".seti"))?.id ?? e[0]?.id ?? null, wa = We(null), Ta = (e) => {
|
|
3090
|
+
if (typeof window > "u") return Ca(e);
|
|
3091
|
+
let t = z().getItem(Sa);
|
|
3092
|
+
return pa(t, e) ? t : Ca(e);
|
|
3093
|
+
}, Ea = (e) => {
|
|
3094
|
+
let t = X(18), { children: n, themePreferences: r } = e, i = r === void 0 ? fa : r, a;
|
|
3095
|
+
t[0] === i ? a = t[1] : (a = () => Ta(i), t[0] = i, t[1] = a);
|
|
3096
|
+
let [o, s] = $(a), c, l;
|
|
3143
3097
|
t[2] !== o || t[3] !== i ? (c = () => {
|
|
3144
|
-
let e =
|
|
3098
|
+
let e = pa(o, i) ? o : Ca(i);
|
|
3145
3099
|
if (e !== o) {
|
|
3146
3100
|
s(e);
|
|
3147
3101
|
return;
|
|
3148
3102
|
}
|
|
3149
|
-
|
|
3150
|
-
}, l = [o, i], t[2] = o, t[3] = i, t[4] = c, t[5] = l) : (c = t[4], l = t[5]),
|
|
3103
|
+
xa(e, i), typeof window < "u" && e && z().setItem(Sa, e);
|
|
3104
|
+
}, l = [o, i], t[2] = o, t[3] = i, t[4] = c, t[5] = l) : (c = t[4], l = t[5]), qe(c, l);
|
|
3151
3105
|
let u;
|
|
3152
3106
|
if (t[6] !== o || t[7] !== i) {
|
|
3153
3107
|
let e;
|
|
@@ -3161,16 +3115,16 @@ var Bi = (e) => {
|
|
|
3161
3115
|
setFileIconThemePreference: s
|
|
3162
3116
|
}, t[11] = d, t[12] = o, t[13] = i, t[14] = f) : f = t[14];
|
|
3163
3117
|
let p;
|
|
3164
|
-
return t[15] !== n || t[16] !== f ? (p = /* @__PURE__ */
|
|
3118
|
+
return t[15] !== n || t[16] !== f ? (p = /* @__PURE__ */ Z(wa, {
|
|
3165
3119
|
value: f,
|
|
3166
3120
|
children: n
|
|
3167
3121
|
}), t[15] = n, t[16] = f, t[17] = p) : p = t[17], p;
|
|
3168
|
-
},
|
|
3169
|
-
let e =
|
|
3122
|
+
}, Da = () => {
|
|
3123
|
+
let e = Ke(wa);
|
|
3170
3124
|
if (!e) throw Error("useFileIconThemePreference must be used within a FileIconThemePreferenceProvider");
|
|
3171
3125
|
return e;
|
|
3172
|
-
},
|
|
3173
|
-
let { isDirectory: n = !1, theme: r, size: a = 16 } = t, o =
|
|
3126
|
+
}, Oa = (e, t = {}) => {
|
|
3127
|
+
let { isDirectory: n = !1, theme: r, size: a = 16 } = t, o = va(r, e, n);
|
|
3174
3128
|
if (o) {
|
|
3175
3129
|
let e = {
|
|
3176
3130
|
fontFamily: `"${o.fontFamily}"`,
|
|
@@ -3179,17 +3133,17 @@ var Bi = (e) => {
|
|
|
3179
3133
|
lineHeight: 1,
|
|
3180
3134
|
display: "inline-flex"
|
|
3181
3135
|
};
|
|
3182
|
-
return /* @__PURE__ */
|
|
3136
|
+
return /* @__PURE__ */ Z("span", {
|
|
3183
3137
|
"aria-hidden": "true",
|
|
3184
3138
|
style: e,
|
|
3185
3139
|
children: o.fontCharacter
|
|
3186
3140
|
});
|
|
3187
3141
|
}
|
|
3188
|
-
if (n) return /* @__PURE__ */
|
|
3142
|
+
if (n) return /* @__PURE__ */ Z(rt, { size: a });
|
|
3189
3143
|
let s = i(e);
|
|
3190
|
-
return /* @__PURE__ */
|
|
3144
|
+
return /* @__PURE__ */ Z(s, { size: a });
|
|
3191
3145
|
};
|
|
3192
3146
|
//#endregion
|
|
3193
|
-
export {
|
|
3147
|
+
export { Pt as Activity, o as ActivityAvatar, r as ActivityComment, Nt as ActivityComposer, n as ActivityEvent, t as ActivityFeed, a as ActivityHeader, l as ActivityReply, p as ActivityRoot, d as ActivityTimeline, c as AlertMessage, jn as AttachedMenu, Nn as AttachedPanel, k as AttachmentChip, Gn as Breadcrumb, Pn as BubbleButton, Fn as BubblePanel, pe as ChakraProvider, e as Checkbox, D as Chip, qn as ContentPlaceholder, Jn as ContentPlaceholderLabel, Ft as DEFAULT_PALETTE_ASSET_LIMIT, In as DeleteConfirmationModal, L as EmptyState, Yn as ErrorBoundary, Ea as FileIconThemePreferenceProvider, Ln as FolderPicker, Rn as FolderPickerDialog, g as Header, dn as HorizontalMenuStack, nr as IconColorPicker, ar as IntegrationCard, fn as ItemSection, b as ListRow, On as NotificationCenter, hn as PANEL_HEADER_CONTROL_SIZE, mn as PANEL_HEADER_HEIGHT, gn as PANEL_HEADER_TAB_SIZE, $t as Palette, ln as PaletteShortcut, ee as Radio, R as RadioGroup, S as ResizableSplitLayout, _ as ResourceActionMenu, u as ResourceBadge, y as ResourceContextMenu, h as ScrollArea, Zt as SearchModalContent, v as SearchableMenu, dr as SegmentedControl, N as SessionIndicator, Mr as Sidenav, rr as SimpleCard, ir as SimpleCardBody, A as Slider, s as Switch, Pi as TagEditor, Ti as TagEditorHeading, Ii as TagEditorSaveBar, Hi as TagSettingsPanel, Qn as TagSwatch, ue as ThemePreferenceProvider, pr as Toaster, m as Tooltip, C as TreeList, x as TreeListDragProvider, _i as WindowTabs, wi as WindowTitleBar, I as WorkspaceBadge, xa as applyFileIconThemePreference, ie as applyThemePreference, $i as applyTreeListOrder, ci as buildTabVisibilityMenuActions, oi as buildTreeVisibilityMenuActions, w as createGlyphIcon, V as createMonacoThemeFromVsCodeTheme, H as createThemePreferenceFromVsCodeTheme, fa as defaultFileIconThemePreferences, U as defaultThemePreferences, Vt as filterPaletteEntries, ti as filterVisibleNodes, ni as filterVisibleSections, si as filterVisibleTabs, i as getFileTypeIcon, E as getIconComponent, oe as getInitialThemePreference, Jr as getTabVisibilityStore, se as getThemePreferenceClassName, le as getThemePreferenceClassNames, re as getThemePreferenceMode, Xi as getTreeListOrderStore, ua as getTreeListVisibilityStore, P as handleDialogAcceptShortcut, f as installPrismGlobal, pa as isFileIconThemePreference, ae as isThemePreference, O as optionColors, T as optionIcons, ne as psTheme, Oa as resolveFileIconElement, va as resolveFileIconGlyph, F as resolveSessionIndicatorColor, M as resolveSessionIndicatorIcon, Zr as resolveVisibility, j as sessionCompletionStatuses, fr as toaster, Da as useFileIconThemePreference, wr as useSidenavStore, Yr as useTabVisibilityStore, ce as useThemePreference, Zi as useTreeListOrderStore, da as useTreeListVisibilityStore };
|
|
3194
3148
|
|
|
3195
3149
|
//# sourceMappingURL=index.js.map
|