@pstdio/ui 0.43.0 → 0.43.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/README.md +11 -0
- package/dist/{MermaidComponent-X7N-8w2S.js → MermaidComponent-_cmVeKKR.js} +3 -3
- package/dist/{MermaidComponent-X7N-8w2S.js.map → MermaidComponent-_cmVeKKR.js.map} +1 -1
- package/dist/chat-ui.d.ts +85 -57
- package/dist/chat-ui.js +1168 -1183
- package/dist/chat-ui.js.map +1 -1
- package/dist/{collection-view-fields-CajuwtKF.d.ts → collection-view-fields-B3fhsgn7.d.ts} +2 -0
- package/dist/{collection-view-grouping-DnuJ1U4R.js → collection-view-grouping-jIqOrBG8.js} +2 -2
- package/dist/{collection-view-grouping-DnuJ1U4R.js.map → collection-view-grouping-jIqOrBG8.js.map} +1 -1
- package/dist/{collection-view-search-D_7Qvz7p.js → collection-view-search-KbQpKHdn.js} +767 -630
- package/dist/collection-view-search-KbQpKHdn.js.map +1 -0
- package/dist/collection-view.d.ts +1 -1
- package/dist/collection-view.js +2 -2
- package/dist/{data-table-stats-row-C8CtvdDt.js → data-table-stats-row-83mX8b1B.js} +2 -2
- package/dist/{data-table-stats-row-C8CtvdDt.js.map → data-table-stats-row-83mX8b1B.js.map} +1 -1
- package/dist/data-table.d.ts +2 -2
- package/dist/data-table.js +8 -8
- package/dist/{diff-drawer-BGQhxyOh.js → diff-drawer-BMl0zobj.js} +2 -2
- package/dist/{diff-drawer-BGQhxyOh.js.map → diff-drawer-BMl0zobj.js.map} +1 -1
- package/dist/{diff-viewer-DYcswG6O.js → diff-viewer-C5KXwq7E.js} +5 -5
- package/dist/{diff-viewer-DYcswG6O.js.map → diff-viewer-C5KXwq7E.js.map} +1 -1
- package/dist/diff.js +2 -2
- package/dist/{display-sort-control-n3L5WvkJ.js → display-sort-control-BCkgKET1.js} +194 -183
- package/dist/display-sort-control-BCkgKET1.js.map +1 -0
- package/dist/{edit-mode-data-table-BclZ-pWe.js → edit-mode-data-table-ScVJJT9F.js} +8 -8
- package/dist/{edit-mode-data-table-BclZ-pWe.js.map → edit-mode-data-table-ScVJJT9F.js.map} +1 -1
- package/dist/{index-5Lw7YMKy.d.ts → index-Bc2BsdD1.d.ts} +6 -0
- package/dist/{index-DjZsR4Ey.d.ts → index-DXpADqIg.d.ts} +8 -4
- package/dist/index.d.ts +49 -49
- package/dist/index.js +453 -455
- package/dist/index.js.map +1 -1
- package/dist/kanban-renderer.d.ts +3 -3
- package/dist/kanban-renderer.js +935 -745
- package/dist/kanban-renderer.js.map +1 -1
- package/dist/{list-row-CmFG_jCC.js → list-row-F8kBQGB-.js} +394 -384
- package/dist/list-row-F8kBQGB-.js.map +1 -0
- package/dist/{markdown-editor-CN4qOKky.js → markdown-editor-Dm4Fi3sX.js} +6 -6
- package/dist/{markdown-editor-CN4qOKky.js.map → markdown-editor-Dm4Fi3sX.js.map} +1 -1
- package/dist/{mermaid-renderer-DybQ_2Cp.js → mermaid-renderer-BtW_13Sz.js} +2 -2
- package/dist/{mermaid-renderer-DybQ_2Cp.js.map → mermaid-renderer-BtW_13Sz.js.map} +1 -1
- package/dist/mermaid.js +1 -1
- package/dist/{number-input-CyrMrDxB.js → number-input-QDqWYzTR.js} +2 -2
- package/dist/{number-input-CyrMrDxB.js.map → number-input-QDqWYzTR.js.map} +1 -1
- package/dist/{param-editor-28dBRSV4.js → param-editor-B9ASM5Lv.js} +2 -2
- package/dist/{param-editor-28dBRSV4.js.map → param-editor-B9ASM5Lv.js.map} +1 -1
- package/dist/{param-editor-field-GxhFb86w.js → param-editor-field-BmNUziwI.js} +7 -5
- package/dist/param-editor-field-BmNUziwI.js.map +1 -0
- package/dist/param-editor.js +3 -3
- package/dist/{prism-CnkSh-ZG.js → prism-EZSmZh-a.js} +2 -2
- package/dist/{prism-CnkSh-ZG.js.map → prism-EZSmZh-a.js.map} +1 -1
- package/dist/{rich-text-DOK4dDeb.js → rich-text-Dx5F8Zm1.js} +384 -363
- package/dist/rich-text-Dx5F8Zm1.js.map +1 -0
- package/dist/rich-text.d.ts +1 -1
- package/dist/rich-text.js +3 -3
- package/dist/{scroll-area-crJfiiuF.js → scroll-area-IeoRS73V.js} +3 -5
- package/dist/scroll-area-IeoRS73V.js.map +1 -0
- package/dist/terminal.js +1 -1
- package/dist/{theme-Bd_a7sU8.js → theme-CWDvF5Yn.js} +185 -73
- package/dist/theme-CWDvF5Yn.js.map +1 -0
- package/dist/theme.js +1 -1
- package/dist/{tree-list-B_qqiIoM.js → tree-list-Ces1hpRd.js} +2 -2
- package/dist/{tree-list-B_qqiIoM.js.map → tree-list-Ces1hpRd.js.map} +1 -1
- package/dist/{workspace-badge-oFp29Gbe.d.ts → workspace-badge-De6OQjb5.d.ts} +2 -1
- package/dist/{workspace-badge-BfSkiGP_.js → workspace-badge-DqQKSUJw.js} +12 -12
- package/dist/workspace-badge-DqQKSUJw.js.map +1 -0
- package/package.json +2 -2
- package/dist/collection-view-search-D_7Qvz7p.js.map +0 -1
- package/dist/display-sort-control-n3L5WvkJ.js.map +0 -1
- package/dist/list-row-CmFG_jCC.js.map +0 -1
- package/dist/param-editor-field-GxhFb86w.js.map +0 -1
- package/dist/rich-text-DOK4dDeb.js.map +0 -1
- package/dist/scroll-area-crJfiiuF.js.map +0 -1
- package/dist/theme-Bd_a7sU8.js.map +0 -1
- package/dist/workspace-badge-BfSkiGP_.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./alert-MQ47wy7f.js";
|
|
2
|
-
import { n as l, t as u } from "./scroll-area-
|
|
3
|
-
import { a as d, l as f, r as p, s as m, t as h, u as g } from "./list-row-
|
|
2
|
+
import { n as l, t as u } from "./scroll-area-IeoRS73V.js";
|
|
3
|
+
import { a as d, l as f, r as p, s as m, t as h, u as g } from "./list-row-F8kBQGB-.js";
|
|
4
4
|
import { t as _ } from "./use-virtualizer-CfDHoDer.js";
|
|
5
|
-
import { n as v, r as y, t as b } from "./tree-list-
|
|
6
|
-
import { a as x, i as S, n as C, o as w, r as T, s as E, t as D } from "./prism-
|
|
7
|
-
import { a as O, i as k, n as A, o as j, r as M, t as N } from "./workspace-badge-
|
|
5
|
+
import { n as v, r as y, t as b } from "./tree-list-Ces1hpRd.js";
|
|
6
|
+
import { a as x, i as S, n as C, o as w, r as T, s as E, t as D } from "./prism-EZSmZh-a.js";
|
|
7
|
+
import { a as O, i as k, n as A, o as j, r as M, t as N } from "./workspace-badge-DqQKSUJw.js";
|
|
8
8
|
import { t as P } from "./drop-indicator-HjlBSIeV.js";
|
|
9
9
|
import { t as F } from "./empty-state-3mVV_pV-.js";
|
|
10
10
|
import { i as I, n as L, r as ee, t as R } from "./icon-options-Tt6Wzhtv.js";
|
|
11
11
|
import { n as te, t as ne } from "./radio-CiFrDN6O.js";
|
|
12
12
|
import { t as re } from "./browser-storage-C_ipoNwP.js";
|
|
13
|
-
import { n as ie, r as ae, t as z } from "./theme-
|
|
13
|
+
import { n as ie, r as ae, t as z } from "./theme-CWDvF5Yn.js";
|
|
14
14
|
import { i as B, n as V, r as oe, t as H } from "./host-storage-BIo5azql.js";
|
|
15
15
|
import { n as U, t as se } from "./theme-kKuLN2jb.js";
|
|
16
16
|
import { a as ce, c as le, i as ue, l as de, n as fe, o as pe, r as me, s as he, t as ge } from "./theme-preference-BV4cbJNB.js";
|
|
17
|
-
import { AbsoluteCenter as _e, Badge as ve, Box as W, Breadcrumb as ye, Button as
|
|
18
|
-
import { c as
|
|
19
|
-
import { Fragment as
|
|
20
|
-
import * as
|
|
21
|
-
import { Component as
|
|
17
|
+
import { AbsoluteCenter as _e, Badge as ve, Box as W, Breadcrumb as ye, Button as be, Center as xe, ChakraProvider as Se, CloseButton as Ce, Collapsible as we, Dialog as G, Editable as Te, Flex as K, Grid as Ee, HStack as q, Icon as J, IconButton as De, Input as Oe, InputGroup as ke, Kbd as Ae, Menu as je, Popover as Me, Portal as Ne, Skeleton as Pe, Spacer as Fe, Spinner as Ie, Stack as Le, Text as Y, Textarea as Re, Toast as ze, Toaster as Be, chakra as Ve, createSlotRecipeContext as He, createToaster as Ue, defineRecipe as We, defineSlotRecipe as Ge, useRecipe as Ke, useSlotRecipe as qe } from "@chakra-ui/react";
|
|
18
|
+
import { c as X } from "react/compiler-runtime";
|
|
19
|
+
import { Fragment as Je, jsx as Z, jsxs as Q } from "react/jsx-runtime";
|
|
20
|
+
import * as Ye from "react";
|
|
21
|
+
import { Component as Xe, Fragment as Ze, createContext as Qe, forwardRef as $e, useContext as et, useEffect as tt, useRef as nt, useState as $ } from "react";
|
|
22
22
|
import { ArrowLeft as rt, ArrowRight as it, ArrowUp as at, Bell as ot, Check as st, ChevronDown as ct, ChevronRight as lt, Command as ut, Copy as dt, Folder as ft, FolderPlus as pt, GripVertical as mt, Home as ht, Minus as gt, Option as _t, Paperclip as vt, Plus as yt, Search as bt, SquareArrowOutUpRight as xt, Trash2 as St, X as Ct } from "lucide-react";
|
|
23
23
|
import { DndContext as wt, KeyboardSensor as Tt, PointerSensor as Et, closestCenter as Dt, useSensor as Ot, useSensors as kt } from "@dnd-kit/core";
|
|
24
24
|
import { SortableContext as At, arrayMove as jt, horizontalListSortingStrategy as Mt, sortableKeyboardCoordinates as Nt, useSortable as Pt, verticalListSortingStrategy as Ft } from "@dnd-kit/sortable";
|
|
@@ -28,10 +28,10 @@ import { createStore as zt } from "zustand/vanilla";
|
|
|
28
28
|
import { CSS as Bt } from "@dnd-kit/utilities";
|
|
29
29
|
//#region src/components/activity/activity-composer.tsx
|
|
30
30
|
var Vt = (e) => {
|
|
31
|
-
let { actor: t, value: n, defaultValue: i = "", placeholder: a = "Leave a comment...", variant: o = "standalone", minRows: s = o === "standalone" ? 3 : 1, attachLabel: c = "Attach file", submitLabel: u = "Submit comment", actions: d, onAttach: f, onChange: p, onSubmit: m, ...h } = e, [g, _] =
|
|
31
|
+
let { actor: t, value: n, defaultValue: i = "", placeholder: a = "Leave a comment...", variant: o = "standalone", minRows: s = o === "standalone" ? 3 : 1, attachLabel: c = "Attach file", submitLabel: u = "Submit comment", actions: d, onAttach: f, onChange: p, onSubmit: m, ...h } = e, [g, _] = $(i), v = n ?? g, y = o === "inline", b = v.trim().length > 0, x = (e) => {
|
|
32
32
|
n === void 0 && _(e), p?.(e);
|
|
33
33
|
};
|
|
34
|
-
return /* @__PURE__ */
|
|
34
|
+
return /* @__PURE__ */ Z(Ve.form, {
|
|
35
35
|
width: "full",
|
|
36
36
|
background: "bg",
|
|
37
37
|
borderWidth: y ? "0" : "1px",
|
|
@@ -44,14 +44,14 @@ var Vt = (e) => {
|
|
|
44
44
|
e.preventDefault(), b && (m?.(v.trim()), n === void 0 && _(""));
|
|
45
45
|
},
|
|
46
46
|
...h,
|
|
47
|
-
children: /* @__PURE__ */
|
|
47
|
+
children: /* @__PURE__ */ Q(q, {
|
|
48
48
|
alignItems: "flex-start",
|
|
49
49
|
gap: "xs",
|
|
50
50
|
padding: y ? "sm" : "md",
|
|
51
|
-
children: [t ? /* @__PURE__ */
|
|
51
|
+
children: [t ? /* @__PURE__ */ Z(r, { actor: t }) : null, /* @__PURE__ */ Q(W, {
|
|
52
52
|
flex: "1",
|
|
53
53
|
minW: "0",
|
|
54
|
-
children: [/* @__PURE__ */
|
|
54
|
+
children: [/* @__PURE__ */ Z(Re, {
|
|
55
55
|
value: v,
|
|
56
56
|
rows: s,
|
|
57
57
|
resize: "none",
|
|
@@ -64,35 +64,35 @@ var Vt = (e) => {
|
|
|
64
64
|
placeholder: a,
|
|
65
65
|
_placeholder: { color: "fg.subtle" },
|
|
66
66
|
onChange: (e) => x(e.currentTarget.value)
|
|
67
|
-
}), /* @__PURE__ */
|
|
67
|
+
}), /* @__PURE__ */ Q(q, {
|
|
68
68
|
gap: "2xs",
|
|
69
69
|
marginTop: y ? "0" : "sm",
|
|
70
70
|
children: [
|
|
71
71
|
d,
|
|
72
|
-
/* @__PURE__ */
|
|
73
|
-
/* @__PURE__ */
|
|
72
|
+
/* @__PURE__ */ Z(Fe, {}),
|
|
73
|
+
/* @__PURE__ */ Z(l, {
|
|
74
74
|
content: c,
|
|
75
|
-
children: /* @__PURE__ */
|
|
75
|
+
children: /* @__PURE__ */ Z(De, {
|
|
76
76
|
size: "2xs",
|
|
77
77
|
variant: "ghost",
|
|
78
78
|
"aria-label": c,
|
|
79
79
|
type: "button",
|
|
80
80
|
onClick: f,
|
|
81
|
-
children: /* @__PURE__ */
|
|
81
|
+
children: /* @__PURE__ */ Z(J, {
|
|
82
82
|
as: vt,
|
|
83
83
|
boxSize: "14px"
|
|
84
84
|
})
|
|
85
85
|
})
|
|
86
86
|
}),
|
|
87
|
-
/* @__PURE__ */
|
|
87
|
+
/* @__PURE__ */ Z(l, {
|
|
88
88
|
content: u,
|
|
89
|
-
children: /* @__PURE__ */
|
|
89
|
+
children: /* @__PURE__ */ Z(De, {
|
|
90
90
|
size: "2xs",
|
|
91
91
|
variant: "subtle",
|
|
92
92
|
"aria-label": u,
|
|
93
93
|
type: "submit",
|
|
94
94
|
disabled: !b,
|
|
95
|
-
children: /* @__PURE__ */
|
|
95
|
+
children: /* @__PURE__ */ Z(J, {
|
|
96
96
|
as: at,
|
|
97
97
|
boxSize: "14px"
|
|
98
98
|
})
|
|
@@ -135,9 +135,9 @@ var Vt = (e) => {
|
|
|
135
135
|
label: e.label,
|
|
136
136
|
description: e.description ?? e.secondaryLabel,
|
|
137
137
|
icon: e.icon,
|
|
138
|
-
endContent: e.endContent ?? (e.shortcut || e.isSelected ? /* @__PURE__ */
|
|
138
|
+
endContent: e.endContent ?? (e.shortcut || e.isSelected ? /* @__PURE__ */ Q(q, {
|
|
139
139
|
gap: "2",
|
|
140
|
-
children: [e.shortcut, e.isSelected ? /* @__PURE__ */
|
|
140
|
+
children: [e.shortcut, e.isSelected ? /* @__PURE__ */ Z(J, {
|
|
141
141
|
as: st,
|
|
142
142
|
boxSize: "14px",
|
|
143
143
|
color: "fg.muted"
|
|
@@ -160,7 +160,7 @@ var Vt = (e) => {
|
|
|
160
160
|
});
|
|
161
161
|
}), t;
|
|
162
162
|
}, tn = (e, t) => e.findIndex((e) => e.type === "entry" && e.entryIndex === t), nn = (e) => {
|
|
163
|
-
let t =
|
|
163
|
+
let t = X(10), { entries: n, activeIndex: r, emptyLabel: i, onHover: a, scrollRef: o } = e, s = en(n), c = tn(s, r), l = _({
|
|
164
164
|
count: s.length,
|
|
165
165
|
getScrollElement: () => o.current,
|
|
166
166
|
estimateSize: (e) => s[e]?.type === "group" ? Xt : Zt,
|
|
@@ -171,14 +171,14 @@ var Vt = (e) => {
|
|
|
171
171
|
},
|
|
172
172
|
overscan: 6
|
|
173
173
|
});
|
|
174
|
-
if (
|
|
174
|
+
if (tt(() => {
|
|
175
175
|
c < 0 || l.scrollToIndex(c, {
|
|
176
176
|
align: "auto",
|
|
177
177
|
behavior: "auto"
|
|
178
178
|
});
|
|
179
179
|
}, [c, l]), n.length === 0) {
|
|
180
180
|
let e;
|
|
181
|
-
return t[0] === i ? e = t[1] : (e = /* @__PURE__ */
|
|
181
|
+
return t[0] === i ? e = t[1] : (e = /* @__PURE__ */ Z(Y, {
|
|
182
182
|
textStyle: "paragraph/S/regular",
|
|
183
183
|
color: "fg.muted",
|
|
184
184
|
px: "sm",
|
|
@@ -192,21 +192,21 @@ var Vt = (e) => {
|
|
|
192
192
|
t[4] === d ? f = t[5] : (f = { height: d }, t[4] = d, t[5] = f);
|
|
193
193
|
let p = l.getVirtualItems().map((e) => {
|
|
194
194
|
let t = s[e.index];
|
|
195
|
-
return t ? /* @__PURE__ */
|
|
195
|
+
return t ? /* @__PURE__ */ Z(W, {
|
|
196
196
|
"data-index": e.index,
|
|
197
197
|
ref: l.measureElement,
|
|
198
198
|
position: "absolute",
|
|
199
199
|
left: "0",
|
|
200
200
|
width: "100%",
|
|
201
201
|
style: { top: e.start },
|
|
202
|
-
children: t.type === "group" ? /* @__PURE__ */
|
|
202
|
+
children: t.type === "group" ? /* @__PURE__ */ Z(Y, {
|
|
203
203
|
textStyle: "label/XS/medium",
|
|
204
204
|
color: "fg.muted",
|
|
205
205
|
px: "sm",
|
|
206
206
|
pt: "xs",
|
|
207
207
|
pb: "2xs",
|
|
208
208
|
children: t.label
|
|
209
|
-
}) : /* @__PURE__ */
|
|
209
|
+
}) : /* @__PURE__ */ Z(h, {
|
|
210
210
|
variant: "full-width",
|
|
211
211
|
...$t(t.entry),
|
|
212
212
|
isSelected: t.entryIndex === r,
|
|
@@ -215,7 +215,7 @@ var Vt = (e) => {
|
|
|
215
215
|
})
|
|
216
216
|
}, e.key) : null;
|
|
217
217
|
}), m;
|
|
218
|
-
return t[6] !== u || t[7] !== f || t[8] !== p ? (m = /* @__PURE__ */
|
|
218
|
+
return t[6] !== u || t[7] !== f || t[8] !== p ? (m = /* @__PURE__ */ Z(u, {
|
|
219
219
|
role: "listbox",
|
|
220
220
|
position: "relative",
|
|
221
221
|
width: "100%",
|
|
@@ -223,7 +223,7 @@ var Vt = (e) => {
|
|
|
223
223
|
children: p
|
|
224
224
|
}), t[6] = u, t[7] = f, t[8] = p, t[9] = m) : m = t[9], m;
|
|
225
225
|
}, rn = (e) => e != null, an = (e, t) => e && t ? "space-between" : t ? "flex-end" : "flex-start", on = (e) => {
|
|
226
|
-
let t =
|
|
226
|
+
let t = X(49), { children: n, searchValue: r, searchPlaceholder: i, searchAriaLabel: a, searchIcon: o, searchInputRef: s, searchAutoFocus: c, showCloseButton: l, closeButtonLabel: d, bodyBefore: f, footerStart: p, footerEnd: m, scrollAreaProps: h, onSearchChange: g, onSearchKeyDown: _ } = e, v = a === void 0 ? i : a, y = l !== void 0 && l, b = d === void 0 ? "Close" : d, x;
|
|
227
227
|
if (t[0] !== f || t[1] !== n || t[2] !== b || t[3] !== m || t[4] !== p || t[5] !== g || t[6] !== _ || t[7] !== h || t[8] !== v || t[9] !== c || t[10] !== o || t[11] !== s || t[12] !== i || t[13] !== r || t[14] !== y) {
|
|
228
228
|
let e = rn(p), a = rn(m), l;
|
|
229
229
|
t[16] === h ? l = t[17] : (l = h ?? {}, t[16] = h, t[17] = l);
|
|
@@ -232,7 +232,7 @@ var Vt = (e) => {
|
|
|
232
232
|
let w = S === void 0 ? "24rem" : S, T = C !== void 0 && C, E;
|
|
233
233
|
t[22] === g ? E = t[23] : (E = (e) => g(e.target.value), t[22] = g, t[23] = E);
|
|
234
234
|
let D;
|
|
235
|
-
t[24] !== _ || t[25] !== v || t[26] !== c || t[27] !== s || t[28] !== i || t[29] !== r || t[30] !== E ? (D = /* @__PURE__ */
|
|
235
|
+
t[24] !== _ || t[25] !== v || t[26] !== c || t[27] !== s || t[28] !== i || t[29] !== r || t[30] !== E ? (D = /* @__PURE__ */ Z(Oe, {
|
|
236
236
|
ref: s,
|
|
237
237
|
value: r,
|
|
238
238
|
placeholder: i,
|
|
@@ -246,22 +246,22 @@ var Vt = (e) => {
|
|
|
246
246
|
onKeyDown: _
|
|
247
247
|
}), 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];
|
|
248
248
|
let O;
|
|
249
|
-
t[32] !== o || t[33] !== D ? (O = /* @__PURE__ */
|
|
249
|
+
t[32] !== o || t[33] !== D ? (O = /* @__PURE__ */ Z(ke, {
|
|
250
250
|
startElement: o,
|
|
251
251
|
width: "full",
|
|
252
252
|
children: D
|
|
253
253
|
}), t[32] = o, t[33] = D, t[34] = O) : O = t[34];
|
|
254
254
|
let k;
|
|
255
|
-
t[35] !== b || t[36] !== y ? (k = y ? /* @__PURE__ */
|
|
255
|
+
t[35] !== b || t[36] !== y ? (k = y ? /* @__PURE__ */ Z(G.CloseTrigger, {
|
|
256
256
|
asChild: !0,
|
|
257
|
-
children: /* @__PURE__ */
|
|
257
|
+
children: /* @__PURE__ */ Z(Ce, {
|
|
258
258
|
"aria-label": b,
|
|
259
259
|
size: "sm",
|
|
260
260
|
mr: "2"
|
|
261
261
|
})
|
|
262
262
|
}) : null, t[35] = b, t[36] = y, t[37] = k) : k = t[37];
|
|
263
263
|
let A;
|
|
264
|
-
t[38] !== k || t[39] !== O ? (A = /* @__PURE__ */
|
|
264
|
+
t[38] !== k || t[39] !== O ? (A = /* @__PURE__ */ Q(G.Header, {
|
|
265
265
|
px: "0",
|
|
266
266
|
py: "0",
|
|
267
267
|
borderBottomWidth: "1px",
|
|
@@ -269,29 +269,29 @@ var Vt = (e) => {
|
|
|
269
269
|
children: [O, k]
|
|
270
270
|
}), t[38] = k, t[39] = O, t[40] = A) : A = t[40];
|
|
271
271
|
let j;
|
|
272
|
-
t[41] !== n || t[42] !== w || t[43] !== d || t[44] !== T ? (j = /* @__PURE__ */
|
|
272
|
+
t[41] !== n || t[42] !== w || t[43] !== d || t[44] !== T ? (j = /* @__PURE__ */ Z(u, {
|
|
273
273
|
maxH: w,
|
|
274
274
|
showHorizontalScrollbar: T,
|
|
275
275
|
...d,
|
|
276
276
|
children: n
|
|
277
277
|
}), t[41] = n, t[42] = w, t[43] = d, t[44] = T, t[45] = j) : j = t[45];
|
|
278
278
|
let M;
|
|
279
|
-
t[46] !== f || t[47] !== j ? (M = /* @__PURE__ */
|
|
279
|
+
t[46] !== f || t[47] !== j ? (M = /* @__PURE__ */ Q(G.Body, {
|
|
280
280
|
p: "0",
|
|
281
281
|
children: [f, j]
|
|
282
|
-
}), t[46] = f, t[47] = j, t[48] = M) : M = t[48], x = /* @__PURE__ */
|
|
282
|
+
}), t[46] = f, t[47] = j, t[48] = M) : M = t[48], x = /* @__PURE__ */ Q(Je, { children: [
|
|
283
283
|
A,
|
|
284
284
|
M,
|
|
285
|
-
e || a ? /* @__PURE__ */
|
|
285
|
+
e || a ? /* @__PURE__ */ Q(G.Footer, {
|
|
286
286
|
justifyContent: an(e, a),
|
|
287
287
|
px: "sm",
|
|
288
288
|
py: "xs",
|
|
289
289
|
borderTopWidth: "1px",
|
|
290
290
|
borderTopColor: "border.subtle",
|
|
291
|
-
children: [e ? /* @__PURE__ */
|
|
291
|
+
children: [e ? /* @__PURE__ */ Z(W, {
|
|
292
292
|
minW: "0",
|
|
293
293
|
children: p
|
|
294
|
-
}) : null, a ? /* @__PURE__ */
|
|
294
|
+
}) : null, a ? /* @__PURE__ */ Z(W, {
|
|
295
295
|
flexShrink: 0,
|
|
296
296
|
children: m
|
|
297
297
|
}) : null]
|
|
@@ -300,9 +300,9 @@ var Vt = (e) => {
|
|
|
300
300
|
} else x = t[15];
|
|
301
301
|
return x;
|
|
302
302
|
}, sn = (e, t, n) => typeof e == "function" ? e(t) : e ?? n, cn = (e) => {
|
|
303
|
-
let t =
|
|
303
|
+
let t = X(106), { open: n, fullScreen: r, searchAutoFocus: i, entries: a, initialQuery: o, initialActiveIndex: s, mode: c, modes: l, resetKey: u, inputIcon: d, placeholder: f, emptyLabel: p, footerStart: m, footerEnd: h, filterEntries: g, onActiveEntryChange: _, onQueryChange: v, onClose: y, onEscape: b } = e, x = r !== void 0 && r, S = i === void 0 || i, C = o === void 0 ? "" : o, w = s === void 0 ? 0 : s, T = u === void 0 ? "default" : u, E = p === void 0 ? "No results." : p, D;
|
|
304
304
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (D = { key: "palette" }, t[0] = D) : D = t[0];
|
|
305
|
-
let O =
|
|
305
|
+
let O = qe(D), k;
|
|
306
306
|
t[1] !== x || t[2] !== O ? (k = O({ fullScreen: x }), t[1] = x, t[2] = O, t[3] = k) : k = t[3];
|
|
307
307
|
let A = k, j;
|
|
308
308
|
t[4] !== a || t[5] !== g || t[6] !== c || t[7] !== l ? (j = (e) => {
|
|
@@ -318,12 +318,12 @@ var Vt = (e) => {
|
|
|
318
318
|
query: C,
|
|
319
319
|
activeId: M(C)[w]?.id ?? null
|
|
320
320
|
}), t[9] = M, t[10] = w, t[11] = C, t[12] = N) : N = t[12];
|
|
321
|
-
let [P, F] =
|
|
321
|
+
let [P, F] = $(N), { query: I, activeId: L } = P, ee;
|
|
322
322
|
t[13] === T ? ee = t[14] : (ee = {
|
|
323
323
|
open: !1,
|
|
324
324
|
resetKey: T
|
|
325
325
|
}, t[13] = T, t[14] = ee);
|
|
326
|
-
let [R, te] =
|
|
326
|
+
let [R, te] = $(ee), ne = nt(null), re = nt(null), ie = nt(null), ae = R.open !== n || R.resetKey !== T;
|
|
327
327
|
ae && (te({
|
|
328
328
|
open: n,
|
|
329
329
|
resetKey: T
|
|
@@ -384,13 +384,13 @@ var Vt = (e) => {
|
|
|
384
384
|
return () => clearTimeout(e);
|
|
385
385
|
}, t[41] = S, t[42] = R.open, t[43] = he) : he = t[43];
|
|
386
386
|
let ge;
|
|
387
|
-
t[44] !== S || t[45] !== R ? (ge = [R, S], t[44] = S, t[45] = R, t[46] = ge) : ge = t[46],
|
|
387
|
+
t[44] !== S || t[45] !== R ? (ge = [R, S], t[44] = S, t[45] = R, t[46] = ge) : ge = t[46], tt(he, ge);
|
|
388
388
|
let _e = z?.id, ve;
|
|
389
389
|
t[47] !== z || t[48] !== B || t[49] !== _ ? (ve = () => {
|
|
390
390
|
_?.(z, B);
|
|
391
391
|
}, t[47] = z, t[48] = B, t[49] = _, t[50] = ve) : ve = t[50];
|
|
392
392
|
let W;
|
|
393
|
-
t[51] !== _e || t[52] !== B ? (W = [_e, B], t[51] = _e, t[52] = B, t[53] = W) : W = t[53],
|
|
393
|
+
t[51] !== _e || t[52] !== B ? (W = [_e, B], t[51] = _e, t[52] = B, t[53] = W) : W = t[53], tt(ve, W);
|
|
394
394
|
let ye;
|
|
395
395
|
t[54] !== z || t[55] !== me || t[56] !== V || t[57] !== b || t[58] !== I || t[59] !== fe || t[60] !== H || t[61] !== ue || t[62] !== U ? (ye = () => {
|
|
396
396
|
if (!b?.({
|
|
@@ -409,8 +409,8 @@ var Vt = (e) => {
|
|
|
409
409
|
me();
|
|
410
410
|
}
|
|
411
411
|
}, t[54] = z, t[55] = me, t[56] = V, t[57] = b, t[58] = I, t[59] = fe, t[60] = H, t[61] = ue, t[62] = U, t[63] = ye) : ye = t[63];
|
|
412
|
-
let
|
|
413
|
-
t[64] !== V || t[65] !==
|
|
412
|
+
let be = ye, xe;
|
|
413
|
+
t[64] !== V || t[65] !== be || t[66] !== fe || t[67] !== H ? (xe = (e) => {
|
|
414
414
|
if (e.key === "ArrowDown") {
|
|
415
415
|
e.preventDefault(), H((e) => Math.min(e + 1, Math.max(V.length - 1, 0)));
|
|
416
416
|
return;
|
|
@@ -423,38 +423,38 @@ var Vt = (e) => {
|
|
|
423
423
|
e.preventDefault(), fe();
|
|
424
424
|
return;
|
|
425
425
|
}
|
|
426
|
-
e.key === "Escape" && (e.preventDefault(), e.stopPropagation(),
|
|
427
|
-
}, t[64] = V, t[65] =
|
|
428
|
-
let
|
|
429
|
-
t[69] === S ?
|
|
430
|
-
let Ce;
|
|
431
|
-
t[71] === me ? Ce = t[72] : (Ce = (e) => !e.open && me(), t[71] = me, t[72] = Ce);
|
|
426
|
+
e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), be());
|
|
427
|
+
}, t[64] = V, t[65] = be, t[66] = fe, t[67] = H, t[68] = xe) : xe = t[68];
|
|
428
|
+
let Se = xe, Ce;
|
|
429
|
+
t[69] === S ? Ce = t[70] : (Ce = () => S ? ne.current : re.current, t[69] = S, t[70] = Ce);
|
|
432
430
|
let we;
|
|
433
|
-
t[
|
|
434
|
-
let q;
|
|
435
|
-
t[74] === Symbol.for("react.memo_cache_sentinel") ? (q = { style: { overflowAnchor: "none" } }, t[74] = q) : q = t[74];
|
|
431
|
+
t[71] === me ? we = t[72] : (we = (e) => !e.open && me(), t[71] = me, t[72] = we);
|
|
436
432
|
let Te;
|
|
437
|
-
t[
|
|
433
|
+
t[73] === Symbol.for("react.memo_cache_sentinel") ? (Te = /* @__PURE__ */ Z(G.Backdrop, {}), t[73] = Te) : Te = t[73];
|
|
434
|
+
let K;
|
|
435
|
+
t[74] === Symbol.for("react.memo_cache_sentinel") ? (K = { style: { overflowAnchor: "none" } }, t[74] = K) : K = t[74];
|
|
436
|
+
let Ee;
|
|
437
|
+
t[75] === A.results ? Ee = t[76] : (Ee = {
|
|
438
438
|
maxH: "var(--palette-results-height)",
|
|
439
439
|
css: A.results,
|
|
440
440
|
showHorizontalScrollbar: !1,
|
|
441
441
|
viewportRef: ie,
|
|
442
|
-
viewportProps:
|
|
443
|
-
}, t[75] = A.results, t[76] =
|
|
444
|
-
let
|
|
445
|
-
t[77] !== H || t[78] !== ue ? (
|
|
442
|
+
viewportProps: K
|
|
443
|
+
}, t[75] = A.results, t[76] = Ee);
|
|
444
|
+
let q;
|
|
445
|
+
t[77] !== H || t[78] !== ue ? (q = (e) => {
|
|
446
446
|
ue(e), H(0);
|
|
447
|
-
}, t[77] = H, t[78] = ue, t[79] =
|
|
448
|
-
let
|
|
449
|
-
t[80] !== B || t[81] !== E || t[82] !== V || t[83] !== H ? (
|
|
447
|
+
}, t[77] = H, t[78] = ue, t[79] = q) : q = t[79];
|
|
448
|
+
let J;
|
|
449
|
+
t[80] !== B || t[81] !== E || t[82] !== V || t[83] !== H ? (J = /* @__PURE__ */ Z(nn, {
|
|
450
450
|
entries: V,
|
|
451
451
|
activeIndex: B,
|
|
452
452
|
emptyLabel: E,
|
|
453
453
|
onHover: H,
|
|
454
454
|
scrollRef: ie
|
|
455
|
-
}), t[80] = B, t[81] = E, t[82] = V, t[83] = H, t[84] =
|
|
456
|
-
let
|
|
457
|
-
t[85] !== h || t[86] !== m || t[87] !==
|
|
455
|
+
}), t[80] = B, t[81] = E, t[82] = V, t[83] = H, t[84] = J) : J = t[84];
|
|
456
|
+
let De;
|
|
457
|
+
t[85] !== h || t[86] !== m || t[87] !== Se || t[88] !== I || t[89] !== oe || t[90] !== ce || t[91] !== Ee || t[92] !== q || t[93] !== J ? (De = /* @__PURE__ */ Z(on, {
|
|
458
458
|
searchValue: I,
|
|
459
459
|
searchPlaceholder: ce,
|
|
460
460
|
searchIcon: oe,
|
|
@@ -462,44 +462,44 @@ var Vt = (e) => {
|
|
|
462
462
|
showCloseButton: !0,
|
|
463
463
|
footerStart: m,
|
|
464
464
|
footerEnd: h,
|
|
465
|
-
scrollAreaProps:
|
|
466
|
-
onSearchChange:
|
|
467
|
-
onSearchKeyDown:
|
|
468
|
-
children:
|
|
469
|
-
}), t[85] = h, t[86] = m, t[87] =
|
|
470
|
-
let
|
|
471
|
-
t[95] !== A.content || t[96] !==
|
|
465
|
+
scrollAreaProps: Ee,
|
|
466
|
+
onSearchChange: q,
|
|
467
|
+
onSearchKeyDown: Se,
|
|
468
|
+
children: J
|
|
469
|
+
}), t[85] = h, t[86] = m, t[87] = Se, t[88] = I, t[89] = oe, t[90] = ce, t[91] = Ee, t[92] = q, t[93] = J, t[94] = De) : De = t[94];
|
|
470
|
+
let Oe;
|
|
471
|
+
t[95] !== A.content || t[96] !== De ? (Oe = /* @__PURE__ */ Z(G.Content, {
|
|
472
472
|
ref: re,
|
|
473
473
|
tabIndex: -1,
|
|
474
474
|
css: A.content,
|
|
475
475
|
"aria-label": "Command palette",
|
|
476
|
-
children: Ee
|
|
477
|
-
}), t[95] = A.content, t[96] = Ee, t[97] = De) : De = t[97];
|
|
478
|
-
let Oe;
|
|
479
|
-
t[98] !== A.positioner || t[99] !== De ? (Oe = /* @__PURE__ */ Q(K.Positioner, {
|
|
480
|
-
css: A.positioner,
|
|
481
476
|
children: De
|
|
482
|
-
}), t[
|
|
477
|
+
}), t[95] = A.content, t[96] = De, t[97] = Oe) : Oe = t[97];
|
|
483
478
|
let ke;
|
|
484
|
-
|
|
479
|
+
t[98] !== A.positioner || t[99] !== Oe ? (ke = /* @__PURE__ */ Z(G.Positioner, {
|
|
480
|
+
css: A.positioner,
|
|
481
|
+
children: Oe
|
|
482
|
+
}), t[98] = A.positioner, t[99] = Oe, t[100] = ke) : ke = t[100];
|
|
483
|
+
let Ae;
|
|
484
|
+
return t[101] !== n || t[102] !== Ce || t[103] !== we || t[104] !== ke ? (Ae = /* @__PURE__ */ Q(G.Root, {
|
|
485
485
|
open: n,
|
|
486
|
-
initialFocusEl:
|
|
487
|
-
onOpenChange:
|
|
488
|
-
children: [
|
|
489
|
-
}), t[101] = n, t[102] =
|
|
486
|
+
initialFocusEl: Ce,
|
|
487
|
+
onOpenChange: we,
|
|
488
|
+
children: [Te, ke]
|
|
489
|
+
}), t[101] = n, t[102] = Ce, t[103] = we, t[104] = ke, t[105] = Ae) : Ae = t[105], Ae;
|
|
490
490
|
};
|
|
491
491
|
function ln(e) {
|
|
492
492
|
return Math.max(e - 1, 0);
|
|
493
493
|
}
|
|
494
494
|
//#endregion
|
|
495
495
|
//#region src/theme/recipes/shortcut-keys.ts
|
|
496
|
-
var un =
|
|
496
|
+
var un = We({ base: {
|
|
497
497
|
display: "inline-flex",
|
|
498
498
|
alignItems: "center",
|
|
499
499
|
gap: "shortcut-key-gap",
|
|
500
500
|
verticalAlign: "middle",
|
|
501
501
|
whiteSpace: "nowrap"
|
|
502
|
-
} }), dn =
|
|
502
|
+
} }), dn = Ve("span", un), fn = {
|
|
503
503
|
alt: { label: "Alt" },
|
|
504
504
|
control: { label: "Ctrl" },
|
|
505
505
|
ctrl: { label: "Ctrl" },
|
|
@@ -548,21 +548,21 @@ var un = Ue({ base: {
|
|
|
548
548
|
let n = e.toLowerCase(), r = t === "mac" ? pn : fn;
|
|
549
549
|
return mn[n] ?? r[n] ?? { label: e };
|
|
550
550
|
}, _n = (e) => e.split("+").map((e) => e.trim()).filter(Boolean), vn = (e) => (Array.isArray(e) ? e.map(_n) : [_n(e)]).map((e) => e.map((e) => gn(e))), yn = (e) => {
|
|
551
|
-
let t =
|
|
551
|
+
let t = X(4), { binding: n } = e, r;
|
|
552
552
|
if (t[0] !== n) {
|
|
553
553
|
let e = vn(n);
|
|
554
|
-
r = e.map((t, n) => /* @__PURE__ */
|
|
554
|
+
r = e.map((t, n) => /* @__PURE__ */ Q(Ze, { children: [/* @__PURE__ */ Z(dn, { children: t.map(xn) }), n < e.length - 1 ? " then " : null] }, `${t.map(bn).join("+")}-${n}`)), t[0] = n, t[1] = r;
|
|
555
555
|
} else r = t[1];
|
|
556
556
|
let i;
|
|
557
|
-
return t[2] === r ? i = t[3] : (i = /* @__PURE__ */
|
|
557
|
+
return t[2] === r ? i = t[3] : (i = /* @__PURE__ */ Z(Je, { children: r }), t[2] = r, t[3] = i), i;
|
|
558
558
|
};
|
|
559
559
|
function bn(e) {
|
|
560
560
|
return e.label;
|
|
561
561
|
}
|
|
562
562
|
function xn(e, t) {
|
|
563
|
-
return /* @__PURE__ */
|
|
563
|
+
return /* @__PURE__ */ Z(Ae, {
|
|
564
564
|
"aria-label": e.label,
|
|
565
|
-
children: e.Icon ? /* @__PURE__ */
|
|
565
|
+
children: e.Icon ? /* @__PURE__ */ Z(e.Icon, {
|
|
566
566
|
size: 12,
|
|
567
567
|
"aria-hidden": "true"
|
|
568
568
|
}) : e.label
|
|
@@ -571,10 +571,10 @@ function xn(e, t) {
|
|
|
571
571
|
//#endregion
|
|
572
572
|
//#region src/components/layout/horizontal-menu-stack.tsx
|
|
573
573
|
function Sn(e) {
|
|
574
|
-
let t =
|
|
574
|
+
let t = X(14), n, r, i, a, o, s;
|
|
575
575
|
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);
|
|
576
576
|
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;
|
|
577
|
-
return t[7] !== d || t[8] !== n || t[9] !== c || t[10] !== l || t[11] !== u || t[12] !== r ? (f = /* @__PURE__ */
|
|
577
|
+
return t[7] !== d || t[8] !== n || t[9] !== c || t[10] !== l || t[11] !== u || t[12] !== r ? (f = /* @__PURE__ */ Z(q, {
|
|
578
578
|
...r,
|
|
579
579
|
h: c,
|
|
580
580
|
justify: "space-between",
|
|
@@ -589,22 +589,22 @@ function Sn(e) {
|
|
|
589
589
|
//#endregion
|
|
590
590
|
//#region src/components/layout/item-section.tsx
|
|
591
591
|
var Cn = (e) => {
|
|
592
|
-
let t =
|
|
592
|
+
let t = X(17), { children: n, title: r, defaultOpen: i, action: a } = e, o = i === void 0 || i, s;
|
|
593
593
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (s = { background: "bg.hover" }, t[0] = s) : s = t[0];
|
|
594
594
|
let c;
|
|
595
|
-
t[1] === r ? c = t[2] : (c = r && /* @__PURE__ */
|
|
595
|
+
t[1] === r ? c = t[2] : (c = r && /* @__PURE__ */ Z(Y, {
|
|
596
596
|
fontWeight: "600",
|
|
597
597
|
textStyle: "label/S/medium",
|
|
598
598
|
children: r
|
|
599
599
|
}), t[1] = r, t[2] = c);
|
|
600
600
|
let l;
|
|
601
|
-
t[3] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */
|
|
601
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ Z(we.Indicator, {
|
|
602
602
|
transition: "transform 0.2s",
|
|
603
603
|
_open: { transform: "rotate(90deg)" },
|
|
604
|
-
children: /* @__PURE__ */
|
|
604
|
+
children: /* @__PURE__ */ Z(lt, { size: 16 })
|
|
605
605
|
}), t[3] = l) : l = t[3];
|
|
606
606
|
let u;
|
|
607
|
-
t[4] === c ? u = t[5] : (u = /* @__PURE__ */
|
|
607
|
+
t[4] === c ? u = t[5] : (u = /* @__PURE__ */ Q(we.Trigger, {
|
|
608
608
|
_hover: s,
|
|
609
609
|
padding: "sm",
|
|
610
610
|
height: "2rem",
|
|
@@ -617,17 +617,17 @@ var Cn = (e) => {
|
|
|
617
617
|
children: [c, l]
|
|
618
618
|
}), t[4] = c, t[5] = u);
|
|
619
619
|
let d;
|
|
620
|
-
t[6] === a ? d = t[7] : (d = a && /* @__PURE__ */
|
|
620
|
+
t[6] === a ? d = t[7] : (d = a && /* @__PURE__ */ Z(W, {
|
|
621
621
|
marginLeft: "auto",
|
|
622
622
|
onClick: wn,
|
|
623
623
|
children: a
|
|
624
624
|
}), t[6] = a, t[7] = d);
|
|
625
625
|
let f;
|
|
626
|
-
t[8] !== u || t[9] !== d ? (f = /* @__PURE__ */
|
|
626
|
+
t[8] !== u || t[9] !== d ? (f = /* @__PURE__ */ Q(K, { children: [u, d] }), t[8] = u, t[9] = d, t[10] = f) : f = t[10];
|
|
627
627
|
let p;
|
|
628
|
-
t[11] === n ? p = t[12] : (p = /* @__PURE__ */
|
|
628
|
+
t[11] === n ? p = t[12] : (p = /* @__PURE__ */ Z(we.Content, { children: n }), t[11] = n, t[12] = p);
|
|
629
629
|
let m;
|
|
630
|
-
return t[13] !== o || t[14] !== f || t[15] !== p ? (m = /* @__PURE__ */
|
|
630
|
+
return t[13] !== o || t[14] !== f || t[15] !== p ? (m = /* @__PURE__ */ Q(we.Root, {
|
|
631
631
|
defaultOpen: o,
|
|
632
632
|
width: "full",
|
|
633
633
|
children: [f, p]
|
|
@@ -680,13 +680,13 @@ var Tn = "2.5rem", En = "2xs", Dn = "sm", On = (e) => e === "urgent" ? "red" : e
|
|
|
680
680
|
return t.onDismiss && n.push({
|
|
681
681
|
id: "dismiss",
|
|
682
682
|
label: "Dismiss",
|
|
683
|
-
icon: /* @__PURE__ */
|
|
683
|
+
icon: /* @__PURE__ */ Z(Ct, { size: 14 }),
|
|
684
684
|
tooltip: "Dismiss",
|
|
685
685
|
onAction: () => t.onDismiss?.(e)
|
|
686
686
|
}), n;
|
|
687
687
|
}, In = (e) => {
|
|
688
|
-
let t =
|
|
689
|
-
t[0] === r.priority ? a = t[1] : (a = kn(r.priority) ? /* @__PURE__ */
|
|
688
|
+
let t = X(15), { actions: n, item: r, onRunAction: i } = e, a;
|
|
689
|
+
t[0] === r.priority ? a = t[1] : (a = kn(r.priority) ? /* @__PURE__ */ Z(ve, {
|
|
690
690
|
size: "sm",
|
|
691
691
|
colorPalette: On(r.priority),
|
|
692
692
|
textTransform: "capitalize",
|
|
@@ -694,7 +694,7 @@ var Tn = "2.5rem", En = "2xs", Dn = "sm", On = (e) => e === "urgent" ? "red" : e
|
|
|
694
694
|
children: r.priority
|
|
695
695
|
}) : null, t[0] = r.priority, t[1] = a);
|
|
696
696
|
let o;
|
|
697
|
-
t[2] === r.status ? o = t[3] : (o = r.status === "open" ? /* @__PURE__ */
|
|
697
|
+
t[2] === r.status ? o = t[3] : (o = r.status === "open" ? /* @__PURE__ */ Z(ve, {
|
|
698
698
|
size: "sm",
|
|
699
699
|
colorPalette: "blue",
|
|
700
700
|
variant: "solid",
|
|
@@ -704,7 +704,7 @@ var Tn = "2.5rem", En = "2xs", Dn = "sm", On = (e) => e === "urgent" ? "red" : e
|
|
|
704
704
|
let s;
|
|
705
705
|
if (t[4] !== n || t[5] !== r || t[6] !== i) {
|
|
706
706
|
let e;
|
|
707
|
-
t[8] !== r || t[9] !== i ? (e = (e) => /* @__PURE__ */
|
|
707
|
+
t[8] !== r || t[9] !== i ? (e = (e) => /* @__PURE__ */ Z(be, {
|
|
708
708
|
size: "2xs",
|
|
709
709
|
variant: "outline",
|
|
710
710
|
colorPalette: e.destructive ? "red" : "gray",
|
|
@@ -712,14 +712,14 @@ var Tn = "2.5rem", En = "2xs", Dn = "sm", On = (e) => e === "urgent" ? "red" : e
|
|
|
712
712
|
onClick: (t) => {
|
|
713
713
|
t.stopPropagation(), i?.(r, e);
|
|
714
714
|
},
|
|
715
|
-
children: /* @__PURE__ */
|
|
715
|
+
children: /* @__PURE__ */ Z(Y, {
|
|
716
716
|
truncate: !0,
|
|
717
717
|
children: e.label
|
|
718
718
|
})
|
|
719
719
|
}, 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;
|
|
720
720
|
} else s = t[7];
|
|
721
721
|
let c;
|
|
722
|
-
return t[11] !== a || t[12] !== o || t[13] !== s ? (c = /* @__PURE__ */
|
|
722
|
+
return t[11] !== a || t[12] !== o || t[13] !== s ? (c = /* @__PURE__ */ Q(q, {
|
|
723
723
|
gap: "2",
|
|
724
724
|
minW: "0",
|
|
725
725
|
flexWrap: "wrap",
|
|
@@ -732,12 +732,12 @@ var Tn = "2.5rem", En = "2xs", Dn = "sm", On = (e) => e === "urgent" ? "red" : e
|
|
|
732
732
|
}), t[11] = a, t[12] = o, t[13] = s, t[14] = c) : c = t[14], c;
|
|
733
733
|
}, Ln = (e) => {
|
|
734
734
|
let { activeIndex: t, items: n, onActivateItem: r, onActiveIndexChange: i, onRunAction: a } = e, o = Mn(n), s = 0;
|
|
735
|
-
return /* @__PURE__ */
|
|
735
|
+
return /* @__PURE__ */ Z(Le, {
|
|
736
736
|
gap: "2xs",
|
|
737
737
|
py: "xs",
|
|
738
|
-
children: o.map((n) => /* @__PURE__ */
|
|
738
|
+
children: o.map((n) => /* @__PURE__ */ Q(Le, {
|
|
739
739
|
gap: "2xs",
|
|
740
|
-
children: [/* @__PURE__ */
|
|
740
|
+
children: [/* @__PURE__ */ Z(Y, {
|
|
741
741
|
textStyle: "label/XS/medium",
|
|
742
742
|
color: "fg.muted",
|
|
743
743
|
px: "sm",
|
|
@@ -745,18 +745,18 @@ var Tn = "2.5rem", En = "2xs", Dn = "sm", On = (e) => e === "urgent" ? "red" : e
|
|
|
745
745
|
children: n.label
|
|
746
746
|
}), n.items.map((n) => {
|
|
747
747
|
let o = s;
|
|
748
|
-
return s += 1, /* @__PURE__ */
|
|
748
|
+
return s += 1, /* @__PURE__ */ Z(h, {
|
|
749
749
|
id: n.id,
|
|
750
750
|
label: n.title,
|
|
751
751
|
description: Pn(n),
|
|
752
|
-
icon: /* @__PURE__ */
|
|
752
|
+
icon: /* @__PURE__ */ Z(J, {
|
|
753
753
|
as: ot,
|
|
754
754
|
boxSize: "14px"
|
|
755
755
|
}),
|
|
756
756
|
iconColor: `${On(n.priority)}.500`,
|
|
757
757
|
variant: "compact",
|
|
758
758
|
isSelected: o === t,
|
|
759
|
-
endContent: /* @__PURE__ */
|
|
759
|
+
endContent: /* @__PURE__ */ Z(In, {
|
|
760
760
|
item: n,
|
|
761
761
|
actions: n.actions ?? [],
|
|
762
762
|
onRunAction: a
|
|
@@ -770,8 +770,8 @@ var Tn = "2.5rem", En = "2xs", Dn = "sm", On = (e) => e === "urgent" ? "red" : e
|
|
|
770
770
|
}, n.id))
|
|
771
771
|
});
|
|
772
772
|
}, Rn = () => {
|
|
773
|
-
let e =
|
|
774
|
-
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */
|
|
773
|
+
let e = X(1), t;
|
|
774
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ Z(Le, {
|
|
775
775
|
gap: "2",
|
|
776
776
|
p: "sm",
|
|
777
777
|
children: [
|
|
@@ -782,18 +782,18 @@ var Tn = "2.5rem", En = "2xs", Dn = "sm", On = (e) => e === "urgent" ? "red" : e
|
|
|
782
782
|
].map(Bn)
|
|
783
783
|
}), e[0] = t) : t = e[0], t;
|
|
784
784
|
}, zn = (e) => {
|
|
785
|
-
let t =
|
|
785
|
+
let t = X(49), { 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 = nt(null), S = p ?? _, C, w;
|
|
786
786
|
t[0] !== S || t[1] !== s ? (C = jn(s, S), w = Nn(C), t[0] = S, t[1] = s, t[2] = C, t[3] = w) : (C = t[2], w = t[3]);
|
|
787
787
|
let T = w, E = T[y] ?? null, D, O;
|
|
788
788
|
t[4] === m ? (D = t[5], O = t[6]) : (D = () => {
|
|
789
789
|
if (!m) return;
|
|
790
790
|
let e = setTimeout(() => x.current?.focus(), 0);
|
|
791
791
|
return () => clearTimeout(e);
|
|
792
|
-
}, O = [m], t[4] = m, t[5] = D, t[6] = O),
|
|
792
|
+
}, O = [m], t[4] = m, t[5] = D, t[6] = O), tt(D, O);
|
|
793
793
|
let k, A;
|
|
794
794
|
t[7] === T.length ? (k = t[8], A = t[9]) : (k = () => {
|
|
795
795
|
b((e) => Math.min(e, Math.max(T.length - 1, 0)));
|
|
796
|
-
}, A = [T.length], t[7] = T.length, t[8] = k, t[9] = A),
|
|
796
|
+
}, A = [T.length], t[7] = T.length, t[8] = k, t[9] = A), tt(k, A);
|
|
797
797
|
let j;
|
|
798
798
|
t[10] !== f || t[11] !== p ? (j = (e) => {
|
|
799
799
|
p === void 0 && v(e), f?.(e), b(0);
|
|
@@ -821,16 +821,16 @@ var Tn = "2.5rem", En = "2xs", Dn = "sm", On = (e) => e === "urgent" ? "red" : e
|
|
|
821
821
|
}
|
|
822
822
|
}, 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];
|
|
823
823
|
let P = N, F;
|
|
824
|
-
t[20] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */
|
|
824
|
+
t[20] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ Z(bt, { size: 14 }), t[20] = F) : F = t[20];
|
|
825
825
|
let I;
|
|
826
826
|
t[21] === Symbol.for("react.memo_cache_sentinel") ? (I = {
|
|
827
827
|
maxH: "24rem",
|
|
828
828
|
showHorizontalScrollbar: !1
|
|
829
829
|
}, t[21] = I) : I = t[21];
|
|
830
830
|
let L;
|
|
831
|
-
t[22] === i ? L = t[23] : (L = i ? /* @__PURE__ */
|
|
831
|
+
t[22] === i ? L = t[23] : (L = i ? /* @__PURE__ */ Z(W, {
|
|
832
832
|
p: "sm",
|
|
833
|
-
children: /* @__PURE__ */
|
|
833
|
+
children: /* @__PURE__ */ Z(c, {
|
|
834
834
|
status: "error",
|
|
835
835
|
colorPalette: "red",
|
|
836
836
|
title: "Notifications unavailable",
|
|
@@ -839,9 +839,9 @@ var Tn = "2.5rem", En = "2xs", Dn = "sm", On = (e) => e === "urgent" ? "red" : e
|
|
|
839
839
|
})
|
|
840
840
|
}) : null, t[22] = i, t[23] = L);
|
|
841
841
|
let ee;
|
|
842
|
-
t[24] !== i || t[25] !== g ? (ee = !i && g && /* @__PURE__ */
|
|
842
|
+
t[24] !== i || t[25] !== g ? (ee = !i && g && /* @__PURE__ */ Z(Rn, {}), t[24] = i, t[25] = g, t[26] = ee) : ee = t[26];
|
|
843
843
|
let R;
|
|
844
|
-
t[27] !== h || t[28] !== i || t[29] !== C || t[30] !== g ? (R = !i && !g && C.length === 0 && /* @__PURE__ */
|
|
844
|
+
t[27] !== h || t[28] !== i || t[29] !== C || t[30] !== g ? (R = !i && !g && C.length === 0 && /* @__PURE__ */ Z(Y, {
|
|
845
845
|
textStyle: "paragraph/S/regular",
|
|
846
846
|
color: "fg.muted",
|
|
847
847
|
px: "sm",
|
|
@@ -849,14 +849,14 @@ var Tn = "2.5rem", En = "2xs", Dn = "sm", On = (e) => e === "urgent" ? "red" : e
|
|
|
849
849
|
children: h
|
|
850
850
|
}), t[27] = h, t[28] = i, t[29] = C, t[30] = g, t[31] = R) : R = t[31];
|
|
851
851
|
let te;
|
|
852
|
-
t[32] !== y || t[33] !== i || t[34] !== C || t[35] !== g || t[36] !== e ? (te = !i && !g && C.length > 0 && /* @__PURE__ */
|
|
852
|
+
t[32] !== y || t[33] !== i || t[34] !== C || t[35] !== g || t[36] !== e ? (te = !i && !g && C.length > 0 && /* @__PURE__ */ Z(Ln, {
|
|
853
853
|
...e,
|
|
854
854
|
items: C,
|
|
855
855
|
activeIndex: y,
|
|
856
856
|
onActiveIndexChange: b
|
|
857
857
|
}), t[32] = y, t[33] = i, t[34] = C, t[35] = g, t[36] = e, t[37] = te) : te = t[37];
|
|
858
858
|
let ne;
|
|
859
|
-
return t[38] !== S || t[39] !== m || t[40] !== a || t[41] !== o || t[42] !== P || t[43] !== L || t[44] !== ee || t[45] !== R || t[46] !== te || t[47] !== M ? (ne = /* @__PURE__ */
|
|
859
|
+
return t[38] !== S || t[39] !== m || t[40] !== a || t[41] !== o || t[42] !== P || t[43] !== L || t[44] !== ee || t[45] !== R || t[46] !== te || t[47] !== M ? (ne = /* @__PURE__ */ Q(on, {
|
|
860
860
|
searchValue: S,
|
|
861
861
|
searchPlaceholder: "Search notifications",
|
|
862
862
|
searchIcon: F,
|
|
@@ -876,13 +876,13 @@ var Tn = "2.5rem", En = "2xs", Dn = "sm", On = (e) => e === "urgent" ? "red" : e
|
|
|
876
876
|
}), t[38] = S, t[39] = m, t[40] = a, t[41] = o, t[42] = P, t[43] = L, t[44] = ee, t[45] = R, t[46] = te, t[47] = M, t[48] = ne) : ne = t[48], ne;
|
|
877
877
|
};
|
|
878
878
|
function Bn(e) {
|
|
879
|
-
return /* @__PURE__ */
|
|
879
|
+
return /* @__PURE__ */ Q(Le, {
|
|
880
880
|
gap: "2xs",
|
|
881
|
-
children: [/* @__PURE__ */
|
|
881
|
+
children: [/* @__PURE__ */ Z(Pe, {
|
|
882
882
|
h: "4",
|
|
883
883
|
w: e % 2 == 0 ? "68%" : "52%",
|
|
884
884
|
borderRadius: "xs"
|
|
885
|
-
}), /* @__PURE__ */
|
|
885
|
+
}), /* @__PURE__ */ Z(Pe, {
|
|
886
886
|
h: "3",
|
|
887
887
|
w: "88%",
|
|
888
888
|
borderRadius: "xs"
|
|
@@ -895,10 +895,10 @@ function Vn(e) {
|
|
|
895
895
|
//#endregion
|
|
896
896
|
//#region src/components/overlays/attached-menu.tsx
|
|
897
897
|
var Hn = (e) => {
|
|
898
|
-
let t =
|
|
898
|
+
let t = X(6), n, r;
|
|
899
899
|
t[0] === e ? (n = t[1], r = t[2]) : ({children: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
900
900
|
let i;
|
|
901
|
-
return t[3] !== n || t[4] !== r ? (i = /* @__PURE__ */
|
|
901
|
+
return t[3] !== n || t[4] !== r ? (i = /* @__PURE__ */ Z(K, {
|
|
902
902
|
as: "aside",
|
|
903
903
|
direction: "column",
|
|
904
904
|
h: "full",
|
|
@@ -911,17 +911,17 @@ var Hn = (e) => {
|
|
|
911
911
|
children: n
|
|
912
912
|
}), t[3] = n, t[4] = r, t[5] = i) : i = t[5], i;
|
|
913
913
|
}, Un = "20rem", Wn = (e) => {
|
|
914
|
-
let t =
|
|
914
|
+
let t = X(15), n, r, i, a, o, s;
|
|
915
915
|
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);
|
|
916
916
|
let c = o === void 0 ? "28rem" : o, l = s !== void 0 && s, u = i ?? (l ? Un : c), d = l ? "full" : c, f;
|
|
917
|
-
t[7] === n ? f = t[8] : (f = /* @__PURE__ */
|
|
917
|
+
t[7] === n ? f = t[8] : (f = /* @__PURE__ */ Z(K, {
|
|
918
918
|
flex: "1",
|
|
919
919
|
minH: 0,
|
|
920
920
|
direction: "column",
|
|
921
921
|
children: n
|
|
922
922
|
}), t[7] = n, t[8] = f);
|
|
923
923
|
let p;
|
|
924
|
-
return t[9] !== r || t[10] !== u || t[11] !== d || t[12] !== a || t[13] !== f ? (p = /* @__PURE__ */
|
|
924
|
+
return t[9] !== r || t[10] !== u || t[11] !== d || t[12] !== a || t[13] !== f ? (p = /* @__PURE__ */ Q(K, {
|
|
925
925
|
direction: "column",
|
|
926
926
|
position: "relative",
|
|
927
927
|
flexShrink: 0,
|
|
@@ -933,15 +933,15 @@ var Hn = (e) => {
|
|
|
933
933
|
...a,
|
|
934
934
|
children: [r, f]
|
|
935
935
|
}), t[9] = r, t[10] = u, t[11] = d, t[12] = a, t[13] = f, t[14] = p) : p = t[14], p;
|
|
936
|
-
}, Gn =
|
|
937
|
-
let n =
|
|
936
|
+
}, Gn = $e(function(e, t) {
|
|
937
|
+
let n = X(23), r, i, a, o, s;
|
|
938
938
|
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);
|
|
939
939
|
let c = o !== void 0 && o, u;
|
|
940
940
|
n[6] === Symbol.for("react.memo_cache_sentinel") ? (u = { key: "bubbleLauncher" }, n[6] = u) : u = n[6];
|
|
941
|
-
let d =
|
|
941
|
+
let d = Ke(u), f, p;
|
|
942
942
|
n[7] === Symbol.for("react.memo_cache_sentinel") ? (f = { borderColor: "border.accent" }, p = { borderColor: "border.accent" }, n[7] = f, n[8] = p) : (f = n[7], p = n[8]);
|
|
943
943
|
let m;
|
|
944
|
-
n[9] !== r || n[10] !== t || n[11] !== a ? (m = /* @__PURE__ */
|
|
944
|
+
n[9] !== r || n[10] !== t || n[11] !== a ? (m = /* @__PURE__ */ Z(De, {
|
|
945
945
|
ref: t,
|
|
946
946
|
rounded: "full",
|
|
947
947
|
size: "lg",
|
|
@@ -955,12 +955,12 @@ var Hn = (e) => {
|
|
|
955
955
|
let h = m, g;
|
|
956
956
|
n[13] === d ? g = n[14] : (g = d(), n[13] = d, n[14] = g);
|
|
957
957
|
let _;
|
|
958
|
-
n[15] !== h || n[16] !== s ? (_ = s ? /* @__PURE__ */
|
|
958
|
+
n[15] !== h || n[16] !== s ? (_ = s ? /* @__PURE__ */ Z(l, {
|
|
959
959
|
content: s,
|
|
960
960
|
children: h
|
|
961
961
|
}) : h, n[15] = h, n[16] = s, n[17] = _) : _ = n[17];
|
|
962
962
|
let v;
|
|
963
|
-
return n[18] !== i || n[19] !== c || n[20] !== g || n[21] !== _ ? (v = /* @__PURE__ */
|
|
963
|
+
return n[18] !== i || n[19] !== c || n[20] !== g || n[21] !== _ ? (v = /* @__PURE__ */ Z(Ve.div, {
|
|
964
964
|
position: "fixed",
|
|
965
965
|
bottom: "6",
|
|
966
966
|
right: "6",
|
|
@@ -972,48 +972,48 @@ var Hn = (e) => {
|
|
|
972
972
|
"aria-hidden": c,
|
|
973
973
|
children: _
|
|
974
974
|
}), n[18] = i, n[19] = c, n[20] = g, n[21] = _, n[22] = v) : v = n[22], v;
|
|
975
|
-
}), Kn =
|
|
976
|
-
let n =
|
|
975
|
+
}), Kn = $e(function(e, t) {
|
|
976
|
+
let n = X(36), { isOpen: r, title: i, menu: a, onClose: o, closeLabel: s, onPopOut: c, popOutLabel: u, width: d, height: f, containerProps: p, testId: h, "aria-label": g, children: _, overlay: v } = e, y = r !== void 0 && r, b = d === void 0 ? "28rem" : d, x = f === void 0 ? "38rem" : f, S;
|
|
977
977
|
n[0] === Symbol.for("react.memo_cache_sentinel") ? (S = { key: "bubblePanel" }, n[0] = S) : S = n[0];
|
|
978
|
-
let C =
|
|
978
|
+
let C = Ke(S), w = g ?? i, T;
|
|
979
979
|
n[1] === C ? T = n[2] : (T = C(), n[1] = C, n[2] = T);
|
|
980
980
|
let E = !y, D = !y, O;
|
|
981
|
-
n[3] === a ? O = n[4] : (O = /* @__PURE__ */
|
|
981
|
+
n[3] === a ? O = n[4] : (O = /* @__PURE__ */ Z(q, {
|
|
982
982
|
gap: "1",
|
|
983
983
|
minW: "0",
|
|
984
984
|
children: a
|
|
985
985
|
}), n[3] = a, n[4] = O);
|
|
986
986
|
let k;
|
|
987
|
-
n[5] === Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */
|
|
987
|
+
n[5] === Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ Z(Fe, {}), n[5] = k) : k = n[5];
|
|
988
988
|
let A;
|
|
989
|
-
n[6] !== c || n[7] !== u ? (A = c ? /* @__PURE__ */
|
|
989
|
+
n[6] !== c || n[7] !== u ? (A = c ? /* @__PURE__ */ Z(l, {
|
|
990
990
|
content: u,
|
|
991
|
-
children: /* @__PURE__ */
|
|
991
|
+
children: /* @__PURE__ */ Z(De, {
|
|
992
992
|
size: "2xs",
|
|
993
993
|
variant: "ghost",
|
|
994
994
|
"aria-label": u,
|
|
995
995
|
onClick: c,
|
|
996
|
-
children: /* @__PURE__ */
|
|
996
|
+
children: /* @__PURE__ */ Z(xt, { size: 16 })
|
|
997
997
|
})
|
|
998
998
|
}) : null, n[6] = c, n[7] = u, n[8] = A) : A = n[8];
|
|
999
999
|
let j;
|
|
1000
|
-
n[9] !== s || n[10] !== o ? (j = o ? /* @__PURE__ */
|
|
1000
|
+
n[9] !== s || n[10] !== o ? (j = o ? /* @__PURE__ */ Z(l, {
|
|
1001
1001
|
content: s,
|
|
1002
|
-
children: /* @__PURE__ */
|
|
1002
|
+
children: /* @__PURE__ */ Z(De, {
|
|
1003
1003
|
size: "2xs",
|
|
1004
1004
|
variant: "ghost",
|
|
1005
1005
|
"aria-label": s,
|
|
1006
1006
|
onClick: o,
|
|
1007
|
-
children: /* @__PURE__ */
|
|
1007
|
+
children: /* @__PURE__ */ Z(gt, { size: 16 })
|
|
1008
1008
|
})
|
|
1009
1009
|
}) : null, n[9] = s, n[10] = o, n[11] = j) : j = n[11];
|
|
1010
1010
|
let M;
|
|
1011
|
-
n[12] !== A || n[13] !== j ? (M = /* @__PURE__ */
|
|
1011
|
+
n[12] !== A || n[13] !== j ? (M = /* @__PURE__ */ Q(q, {
|
|
1012
1012
|
gap: "1",
|
|
1013
1013
|
children: [A, j]
|
|
1014
1014
|
}), n[12] = A, n[13] = j, n[14] = M) : M = n[14];
|
|
1015
1015
|
let N;
|
|
1016
|
-
n[15] !== M || n[16] !== O ? (N = /* @__PURE__ */
|
|
1016
|
+
n[15] !== M || n[16] !== O ? (N = /* @__PURE__ */ Q(m, {
|
|
1017
1017
|
variant: "main",
|
|
1018
1018
|
gap: "sm",
|
|
1019
1019
|
flexShrink: 0,
|
|
@@ -1024,7 +1024,7 @@ var Hn = (e) => {
|
|
|
1024
1024
|
]
|
|
1025
1025
|
}), n[15] = M, n[16] = O, n[17] = N) : N = n[17];
|
|
1026
1026
|
let P;
|
|
1027
|
-
n[18] === _ ? P = n[19] : (P = /* @__PURE__ */
|
|
1027
|
+
n[18] === _ ? P = n[19] : (P = /* @__PURE__ */ Z(W, {
|
|
1028
1028
|
flex: "1",
|
|
1029
1029
|
minH: 0,
|
|
1030
1030
|
display: "flex",
|
|
@@ -1033,13 +1033,13 @@ var Hn = (e) => {
|
|
|
1033
1033
|
children: _
|
|
1034
1034
|
}), n[18] = _, n[19] = P);
|
|
1035
1035
|
let F;
|
|
1036
|
-
n[20] !== N || n[21] !== P ? (F = /* @__PURE__ */
|
|
1036
|
+
n[20] !== N || n[21] !== P ? (F = /* @__PURE__ */ Q(K, {
|
|
1037
1037
|
direction: "column",
|
|
1038
1038
|
h: "full",
|
|
1039
1039
|
children: [N, P]
|
|
1040
1040
|
}), n[20] = N, n[21] = P, n[22] = F) : F = n[22];
|
|
1041
1041
|
let I;
|
|
1042
|
-
return n[23] !== p || n[24] !== x || n[25] !== y || n[26] !== v || n[27] !== t || n[28] !== F || n[29] !== w || n[30] !== T || n[31] !== E || n[32] !== D || n[33] !== h || n[34] !== b ? (I = /* @__PURE__ */
|
|
1042
|
+
return n[23] !== p || n[24] !== x || n[25] !== y || n[26] !== v || n[27] !== t || n[28] !== F || n[29] !== w || n[30] !== T || n[31] !== E || n[32] !== D || n[33] !== h || n[34] !== b ? (I = /* @__PURE__ */ Z(Ne, { children: /* @__PURE__ */ Q(Ve.section, {
|
|
1043
1043
|
ref: t,
|
|
1044
1044
|
role: "dialog",
|
|
1045
1045
|
"data-testid": h,
|
|
@@ -1065,32 +1065,32 @@ var Hn = (e) => {
|
|
|
1065
1065
|
children: [F, v]
|
|
1066
1066
|
}) }), n[23] = p, n[24] = x, n[25] = y, n[26] = v, n[27] = t, n[28] = F, n[29] = w, n[30] = T, n[31] = E, n[32] = D, n[33] = h, n[34] = b, n[35] = I) : I = n[35], I;
|
|
1067
1067
|
}), qn = (e) => {
|
|
1068
|
-
let [t, n] =
|
|
1069
|
-
return /* @__PURE__ */
|
|
1068
|
+
let [t, n] = $(!1), { headline: r, buttonText: i, notificationText: a, onDelete: o, open: s, onClose: c, children: l } = e;
|
|
1069
|
+
return /* @__PURE__ */ Z(G.Root, {
|
|
1070
1070
|
open: s,
|
|
1071
1071
|
onOpenChange: (e) => {
|
|
1072
1072
|
e.open || c();
|
|
1073
1073
|
},
|
|
1074
1074
|
closeOnInteractOutside: !1,
|
|
1075
|
-
children: /* @__PURE__ */
|
|
1076
|
-
/* @__PURE__ */
|
|
1075
|
+
children: /* @__PURE__ */ Q(Ne, { children: [/* @__PURE__ */ Z(G.Backdrop, {}), /* @__PURE__ */ Z(G.Positioner, { children: /* @__PURE__ */ Q(G.Content, { children: [
|
|
1076
|
+
/* @__PURE__ */ Q(G.Header, { children: [/* @__PURE__ */ Z(Y, {
|
|
1077
1077
|
textStyle: "heading/M",
|
|
1078
1078
|
children: r
|
|
1079
|
-
}), /* @__PURE__ */
|
|
1079
|
+
}), /* @__PURE__ */ Z(G.CloseTrigger, {
|
|
1080
1080
|
asChild: !0,
|
|
1081
|
-
children: /* @__PURE__ */
|
|
1081
|
+
children: /* @__PURE__ */ Z(Ce, { size: "sm" })
|
|
1082
1082
|
})] }),
|
|
1083
|
-
/* @__PURE__ */
|
|
1083
|
+
/* @__PURE__ */ Z(G.Body, { children: /* @__PURE__ */ Q(Le, {
|
|
1084
1084
|
gap: "3",
|
|
1085
|
-
children: [a ? /* @__PURE__ */
|
|
1085
|
+
children: [a ? /* @__PURE__ */ Z(Y, { children: a }) : null, l]
|
|
1086
1086
|
}) }),
|
|
1087
|
-
/* @__PURE__ */
|
|
1087
|
+
/* @__PURE__ */ Z(G.Footer, { children: /* @__PURE__ */ Q(Le, {
|
|
1088
1088
|
direction: "row",
|
|
1089
1089
|
gap: "1",
|
|
1090
|
-
children: [/* @__PURE__ */
|
|
1090
|
+
children: [/* @__PURE__ */ Z(be, {
|
|
1091
1091
|
onClick: c,
|
|
1092
1092
|
children: "Close"
|
|
1093
|
-
}), /* @__PURE__ */
|
|
1093
|
+
}), /* @__PURE__ */ Z(be, {
|
|
1094
1094
|
loading: t,
|
|
1095
1095
|
variant: "destructive",
|
|
1096
1096
|
onClick: async () => {
|
|
@@ -1107,50 +1107,48 @@ var Hn = (e) => {
|
|
|
1107
1107
|
] }) })] })
|
|
1108
1108
|
});
|
|
1109
1109
|
}, Jn = (e) => {
|
|
1110
|
-
let { currentPath: t, entries: n, isLoading: r, isOpening: i, error: a, onClose: o, onSelect: s, onNavigate: c, onCreateFolder: l } = e, d =
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
if (y.trim()) {
|
|
1116
|
-
S(!0);
|
|
1110
|
+
let { currentPath: t, entries: n, isLoading: r, isOpening: i, error: a, onClose: o, onSelect: s, onNavigate: c, onCreateFolder: l } = e, d = qe({ key: "folderPicker" })({}), [f, p] = $(t), [m, g] = $(t), [_, v] = $(""), [y, b] = $(!1), [x, S] = $(""), [C, w] = $(!1);
|
|
1111
|
+
t !== m && (g(t), p(t), v(""));
|
|
1112
|
+
let T = n.filter((e) => e.isDirectory && e.name.toLocaleLowerCase().includes(_.toLocaleLowerCase())), E = t.replaceAll("\\", "/"), D = E.match(/^\/\/[^/]+\/[^/]+/)?.[0] ?? E.match(/^[a-z]:\//i)?.[0] ?? "/", O = E.replace(/\/+$/, "").split("/").slice(0, -1).join("/"), k = O.length < D.length ? D : O, A = E.replace(/\/+$/, "") === D.replace(/\/+$/, ""), j = async () => {
|
|
1113
|
+
if (x.trim()) {
|
|
1114
|
+
w(!0);
|
|
1117
1115
|
try {
|
|
1118
|
-
await l(
|
|
1116
|
+
await l(x), b(!1), S("");
|
|
1119
1117
|
} catch {} finally {
|
|
1120
|
-
|
|
1118
|
+
w(!1);
|
|
1121
1119
|
}
|
|
1122
1120
|
}
|
|
1123
1121
|
};
|
|
1124
|
-
return /* @__PURE__ */
|
|
1125
|
-
/* @__PURE__ */
|
|
1122
|
+
return /* @__PURE__ */ Q(Je, { children: [
|
|
1123
|
+
/* @__PURE__ */ Z(G.Header, {
|
|
1126
1124
|
css: d.header,
|
|
1127
|
-
children: /* @__PURE__ */
|
|
1125
|
+
children: /* @__PURE__ */ Z(G.Title, { children: "Open project folder" })
|
|
1128
1126
|
}),
|
|
1129
|
-
/* @__PURE__ */
|
|
1127
|
+
/* @__PURE__ */ Q(G.Body, {
|
|
1130
1128
|
css: d.body,
|
|
1131
1129
|
children: [
|
|
1132
|
-
/* @__PURE__ */
|
|
1130
|
+
/* @__PURE__ */ Q(W, {
|
|
1133
1131
|
css: d.navigation,
|
|
1134
1132
|
children: [
|
|
1135
|
-
/* @__PURE__ */
|
|
1133
|
+
/* @__PURE__ */ Z(be, {
|
|
1136
1134
|
size: "sm",
|
|
1137
1135
|
variant: "outline",
|
|
1138
1136
|
css: d.navigationButton,
|
|
1139
1137
|
"aria-label": "Go to home directory",
|
|
1140
1138
|
disabled: r || i,
|
|
1141
1139
|
onClick: () => c("~"),
|
|
1142
|
-
children: /* @__PURE__ */
|
|
1140
|
+
children: /* @__PURE__ */ Z(ht, {})
|
|
1143
1141
|
}),
|
|
1144
|
-
/* @__PURE__ */
|
|
1142
|
+
/* @__PURE__ */ Z(be, {
|
|
1145
1143
|
size: "sm",
|
|
1146
1144
|
variant: "outline",
|
|
1147
1145
|
css: d.navigationButton,
|
|
1148
1146
|
"aria-label": "Go to parent directory",
|
|
1149
|
-
disabled: r || i ||
|
|
1150
|
-
onClick: () => c(
|
|
1151
|
-
children: /* @__PURE__ */
|
|
1147
|
+
disabled: r || i || A,
|
|
1148
|
+
onClick: () => c(k),
|
|
1149
|
+
children: /* @__PURE__ */ Z(at, {})
|
|
1152
1150
|
}),
|
|
1153
|
-
/* @__PURE__ */
|
|
1151
|
+
/* @__PURE__ */ Z(Oe, {
|
|
1154
1152
|
css: d.path,
|
|
1155
1153
|
size: "sm",
|
|
1156
1154
|
variant: "borderless",
|
|
@@ -1163,71 +1161,71 @@ var Hn = (e) => {
|
|
|
1163
1161
|
},
|
|
1164
1162
|
disabled: r || i
|
|
1165
1163
|
}),
|
|
1166
|
-
!
|
|
1164
|
+
!y && /* @__PURE__ */ Q(be, {
|
|
1167
1165
|
variant: "outline",
|
|
1168
1166
|
size: "sm",
|
|
1169
1167
|
disabled: !t || r || i,
|
|
1170
|
-
onClick: () =>
|
|
1171
|
-
children: [/* @__PURE__ */
|
|
1168
|
+
onClick: () => b(!0),
|
|
1169
|
+
children: [/* @__PURE__ */ Z(pt, {}), "New folder"]
|
|
1172
1170
|
})
|
|
1173
1171
|
]
|
|
1174
1172
|
}),
|
|
1175
|
-
!
|
|
1173
|
+
!y && /* @__PURE__ */ Z(ke, {
|
|
1176
1174
|
css: d.filter,
|
|
1177
|
-
startElement: /* @__PURE__ */
|
|
1178
|
-
children: /* @__PURE__ */
|
|
1175
|
+
startElement: /* @__PURE__ */ Z(bt, {}),
|
|
1176
|
+
children: /* @__PURE__ */ Z(Oe, {
|
|
1179
1177
|
size: "sm",
|
|
1180
1178
|
"aria-label": "Filter folders",
|
|
1181
1179
|
placeholder: "Filter folders",
|
|
1182
|
-
value:
|
|
1183
|
-
onChange: (e) =>
|
|
1180
|
+
value: _,
|
|
1181
|
+
onChange: (e) => v(e.target.value)
|
|
1184
1182
|
})
|
|
1185
1183
|
}),
|
|
1186
|
-
|
|
1184
|
+
y && /* @__PURE__ */ Q(W, {
|
|
1187
1185
|
css: d.creation,
|
|
1188
|
-
children: [/* @__PURE__ */
|
|
1186
|
+
children: [/* @__PURE__ */ Z(Oe, {
|
|
1189
1187
|
size: "sm",
|
|
1190
1188
|
"aria-label": "New folder name",
|
|
1191
1189
|
placeholder: "New folder name",
|
|
1192
1190
|
autoFocus: !0,
|
|
1193
|
-
value:
|
|
1194
|
-
onChange: (e) =>
|
|
1191
|
+
value: x,
|
|
1192
|
+
onChange: (e) => S(e.target.value),
|
|
1195
1193
|
onKeyDown: (e) => {
|
|
1196
|
-
e.key === "Enter" &&
|
|
1194
|
+
e.key === "Enter" && j();
|
|
1197
1195
|
}
|
|
1198
|
-
}), /* @__PURE__ */
|
|
1196
|
+
}), /* @__PURE__ */ Q(be, {
|
|
1199
1197
|
size: "sm",
|
|
1200
1198
|
variant: "primary",
|
|
1201
|
-
disabled: !
|
|
1202
|
-
loading:
|
|
1203
|
-
onClick:
|
|
1204
|
-
children: [/* @__PURE__ */
|
|
1199
|
+
disabled: !x.trim(),
|
|
1200
|
+
loading: C,
|
|
1201
|
+
onClick: j,
|
|
1202
|
+
children: [/* @__PURE__ */ Z(pt, {}), "Create folder"]
|
|
1205
1203
|
})]
|
|
1206
1204
|
}),
|
|
1207
|
-
a && /* @__PURE__ */
|
|
1205
|
+
a && /* @__PURE__ */ Z(Y, {
|
|
1208
1206
|
role: "alert",
|
|
1209
1207
|
color: "fg.error",
|
|
1210
1208
|
textStyle: "paragraph/S/regular",
|
|
1211
1209
|
children: a
|
|
1212
1210
|
}),
|
|
1213
|
-
/* @__PURE__ */
|
|
1211
|
+
/* @__PURE__ */ Z(u, {
|
|
1214
1212
|
css: d.list,
|
|
1215
|
-
children: /* @__PURE__ */
|
|
1213
|
+
children: /* @__PURE__ */ Q(W, {
|
|
1216
1214
|
css: d.rows,
|
|
1217
1215
|
"aria-label": "Folders",
|
|
1218
1216
|
children: [
|
|
1219
|
-
r && /* @__PURE__ */
|
|
1217
|
+
r && /* @__PURE__ */ Z(Y, {
|
|
1220
1218
|
color: "fg.muted",
|
|
1221
1219
|
children: "Loading folders..."
|
|
1222
1220
|
}),
|
|
1223
|
-
!r &&
|
|
1221
|
+
!r && T.length === 0 && /* @__PURE__ */ Z(Y, {
|
|
1224
1222
|
color: "fg.muted",
|
|
1225
|
-
children:
|
|
1223
|
+
children: _ ? "No matching folders." : "This folder is empty."
|
|
1226
1224
|
}),
|
|
1227
|
-
!r &&
|
|
1225
|
+
!r && T.map((e) => /* @__PURE__ */ Z(h, {
|
|
1228
1226
|
id: e.path,
|
|
1229
1227
|
label: e.name,
|
|
1230
|
-
icon: /* @__PURE__ */
|
|
1228
|
+
icon: /* @__PURE__ */ Z(ft, {}),
|
|
1231
1229
|
disabled: r || i,
|
|
1232
1230
|
onActivate: () => c(e.path)
|
|
1233
1231
|
}, e.path))
|
|
@@ -1236,44 +1234,44 @@ var Hn = (e) => {
|
|
|
1236
1234
|
})
|
|
1237
1235
|
]
|
|
1238
1236
|
}),
|
|
1239
|
-
/* @__PURE__ */
|
|
1237
|
+
/* @__PURE__ */ Q(G.Footer, {
|
|
1240
1238
|
css: d.footer,
|
|
1241
|
-
children: [/* @__PURE__ */
|
|
1239
|
+
children: [/* @__PURE__ */ Z(be, {
|
|
1242
1240
|
size: "sm",
|
|
1243
1241
|
variant: "outline",
|
|
1244
1242
|
onClick: o,
|
|
1245
|
-
disabled: r || i ||
|
|
1243
|
+
disabled: r || i || C,
|
|
1246
1244
|
children: "Cancel"
|
|
1247
|
-
}), !
|
|
1245
|
+
}), !y && /* @__PURE__ */ Z(be, {
|
|
1248
1246
|
size: "sm",
|
|
1249
1247
|
variant: "primary",
|
|
1250
1248
|
onClick: s,
|
|
1251
1249
|
loading: i,
|
|
1252
|
-
disabled: !t || r ||
|
|
1250
|
+
disabled: !t || r || C,
|
|
1253
1251
|
children: "Open folder"
|
|
1254
1252
|
})]
|
|
1255
1253
|
})
|
|
1256
1254
|
] });
|
|
1257
1255
|
}, Yn = (e) => {
|
|
1258
|
-
let t =
|
|
1256
|
+
let t = X(15), n;
|
|
1259
1257
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = { key: "folderPicker" }, t[0] = n) : n = t[0];
|
|
1260
|
-
let r =
|
|
1258
|
+
let r = qe(n), i;
|
|
1261
1259
|
t[1] === r ? i = t[2] : (i = r({}), t[1] = r, t[2] = i);
|
|
1262
1260
|
let a = i, o;
|
|
1263
1261
|
t[3] === e ? o = t[4] : (o = (t) => {
|
|
1264
1262
|
t.open || e.onClose();
|
|
1265
1263
|
}, t[3] = e, t[4] = o);
|
|
1266
1264
|
let s;
|
|
1267
|
-
t[5] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */
|
|
1265
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ Z(G.Backdrop, {}), t[5] = s) : s = t[5];
|
|
1268
1266
|
let c;
|
|
1269
|
-
t[6] === e ? c = t[7] : (c = /* @__PURE__ */
|
|
1267
|
+
t[6] === e ? c = t[7] : (c = /* @__PURE__ */ Z(Jn, { ...e }), t[6] = e, t[7] = c);
|
|
1270
1268
|
let l;
|
|
1271
|
-
t[8] !== a.content || t[9] !== c ? (l = /* @__PURE__ */
|
|
1269
|
+
t[8] !== a.content || t[9] !== c ? (l = /* @__PURE__ */ Z(G.Positioner, { children: /* @__PURE__ */ Z(G.Content, {
|
|
1272
1270
|
css: a.content,
|
|
1273
1271
|
children: c
|
|
1274
1272
|
}) }), t[8] = a.content, t[9] = c, t[10] = l) : l = t[10];
|
|
1275
1273
|
let u;
|
|
1276
|
-
return t[11] !== e.open || t[12] !== o || t[13] !== l ? (u = /* @__PURE__ */
|
|
1274
|
+
return t[11] !== e.open || t[12] !== o || t[13] !== l ? (u = /* @__PURE__ */ Q(G.Root, {
|
|
1277
1275
|
placement: "center",
|
|
1278
1276
|
scrollBehavior: "inside",
|
|
1279
1277
|
open: e.open,
|
|
@@ -1303,10 +1301,10 @@ var Hn = (e) => {
|
|
|
1303
1301
|
textDecoration: "none",
|
|
1304
1302
|
_hover: { textDecoration: "none" }
|
|
1305
1303
|
}, Qn = (e) => !!(e.url || e.onClick), $n = (e) => {
|
|
1306
|
-
let t =
|
|
1304
|
+
let t = X(16), { item: n, isCurrent: r, linkComponent: i } = e;
|
|
1307
1305
|
if (r && !Qn(n)) {
|
|
1308
1306
|
let e = n.contextMenuActions?.length ? 0 : void 0, r;
|
|
1309
|
-
return t[0] !== n.title || t[1] !== e ? (r = /* @__PURE__ */
|
|
1307
|
+
return t[0] !== n.title || t[1] !== e ? (r = /* @__PURE__ */ Z(ye.CurrentLink, {
|
|
1310
1308
|
...Zn,
|
|
1311
1309
|
tabIndex: e,
|
|
1312
1310
|
children: n.title
|
|
@@ -1314,10 +1312,10 @@ var Hn = (e) => {
|
|
|
1314
1312
|
}
|
|
1315
1313
|
if (n.url && i) {
|
|
1316
1314
|
let e;
|
|
1317
|
-
return t[3] !== i || t[4] !== n.title || t[5] !== n.url ? (e = /* @__PURE__ */
|
|
1315
|
+
return t[3] !== i || t[4] !== n.title || t[5] !== n.url ? (e = /* @__PURE__ */ Z(ye.Link, {
|
|
1318
1316
|
asChild: !0,
|
|
1319
1317
|
...Xn,
|
|
1320
|
-
children: /* @__PURE__ */
|
|
1318
|
+
children: /* @__PURE__ */ Z(i, {
|
|
1321
1319
|
to: n.url,
|
|
1322
1320
|
children: n.title
|
|
1323
1321
|
})
|
|
@@ -1325,7 +1323,7 @@ var Hn = (e) => {
|
|
|
1325
1323
|
}
|
|
1326
1324
|
if (n.url) {
|
|
1327
1325
|
let e;
|
|
1328
|
-
return t[7] !== n.title || t[8] !== n.url ? (e = /* @__PURE__ */
|
|
1326
|
+
return t[7] !== n.title || t[8] !== n.url ? (e = /* @__PURE__ */ Z(ye.Link, {
|
|
1329
1327
|
href: n.url,
|
|
1330
1328
|
...Xn,
|
|
1331
1329
|
children: n.title
|
|
@@ -1333,7 +1331,7 @@ var Hn = (e) => {
|
|
|
1333
1331
|
}
|
|
1334
1332
|
if (n.onClick) {
|
|
1335
1333
|
let e;
|
|
1336
|
-
return t[10] !== n.onClick || t[11] !== n.title ? (e = /* @__PURE__ */
|
|
1334
|
+
return t[10] !== n.onClick || t[11] !== n.title ? (e = /* @__PURE__ */ Z(ye.Link, {
|
|
1337
1335
|
as: "button",
|
|
1338
1336
|
type: "button",
|
|
1339
1337
|
onClick: n.onClick,
|
|
@@ -1342,65 +1340,65 @@ var Hn = (e) => {
|
|
|
1342
1340
|
}), t[10] = n.onClick, t[11] = n.title, t[12] = e) : e = t[12], e;
|
|
1343
1341
|
}
|
|
1344
1342
|
let a = n.contextMenuActions?.length ? 0 : void 0, o;
|
|
1345
|
-
return t[13] !== n.title || t[14] !== a ? (o = /* @__PURE__ */
|
|
1343
|
+
return t[13] !== n.title || t[14] !== a ? (o = /* @__PURE__ */ Z(ye.Link, {
|
|
1346
1344
|
as: "span",
|
|
1347
1345
|
...Zn,
|
|
1348
1346
|
tabIndex: a,
|
|
1349
1347
|
children: n.title
|
|
1350
1348
|
}), t[13] = n.title, t[14] = a, t[15] = o) : o = t[15], o;
|
|
1351
1349
|
}, er = (e) => {
|
|
1352
|
-
let t =
|
|
1353
|
-
t[0] === e ? r = t[1] : (r = /* @__PURE__ */
|
|
1350
|
+
let t = X(8), { item: n } = e, r;
|
|
1351
|
+
t[0] === e ? r = t[1] : (r = /* @__PURE__ */ Z($n, { ...e }), t[0] = e, t[1] = r);
|
|
1354
1352
|
let i = r;
|
|
1355
1353
|
if (!n.contextMenuActions?.length) return i;
|
|
1356
1354
|
let a;
|
|
1357
1355
|
t[2] === Symbol.for("react.memo_cache_sentinel") ? (a = { placement: "bottom-start" }, t[2] = a) : a = t[2];
|
|
1358
1356
|
let o;
|
|
1359
|
-
t[3] === i ? o = t[4] : (o = /* @__PURE__ */
|
|
1357
|
+
t[3] === i ? o = t[4] : (o = /* @__PURE__ */ Z(Ve.span, {
|
|
1360
1358
|
display: "inline-flex",
|
|
1361
1359
|
minW: "0",
|
|
1362
1360
|
tabIndex: -1,
|
|
1363
1361
|
children: i
|
|
1364
1362
|
}), t[3] = i, t[4] = o);
|
|
1365
1363
|
let s;
|
|
1366
|
-
return t[5] !== n.contextMenuActions || t[6] !== o ? (s = /* @__PURE__ */
|
|
1364
|
+
return t[5] !== n.contextMenuActions || t[6] !== o ? (s = /* @__PURE__ */ Z(g, {
|
|
1367
1365
|
actions: n.contextMenuActions,
|
|
1368
1366
|
positioning: a,
|
|
1369
1367
|
children: o
|
|
1370
1368
|
}), t[5] = n.contextMenuActions, t[6] = o, t[7] = s) : s = t[7], s;
|
|
1371
1369
|
}, tr = (e) => {
|
|
1372
|
-
let t =
|
|
1370
|
+
let t = X(3), { separator: n } = e;
|
|
1373
1371
|
if (n === void 0) {
|
|
1374
1372
|
let e;
|
|
1375
|
-
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
1373
|
+
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ Z(ye.Separator, { flexShrink: 0 }), t[0] = e) : e = t[0], e;
|
|
1376
1374
|
}
|
|
1377
1375
|
let r;
|
|
1378
|
-
return t[1] === n ? r = t[2] : (r = /* @__PURE__ */
|
|
1376
|
+
return t[1] === n ? r = t[2] : (r = /* @__PURE__ */ Z(ye.Separator, {
|
|
1379
1377
|
flexShrink: 0,
|
|
1380
1378
|
children: n
|
|
1381
1379
|
}), t[1] = n, t[2] = r), r;
|
|
1382
|
-
}, nr =
|
|
1383
|
-
let n =
|
|
1380
|
+
}, nr = Ye.forwardRef(function(e, t) {
|
|
1381
|
+
let n = X(21), r, i, a, o, s;
|
|
1384
1382
|
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);
|
|
1385
1383
|
let c;
|
|
1386
1384
|
if (n[6] !== r || n[7] !== i || n[8] !== o) {
|
|
1387
1385
|
let e;
|
|
1388
1386
|
n[10] !== r || n[11] !== i.length || n[12] !== o ? (e = (e, t) => {
|
|
1389
1387
|
let n = t === i.length - 1;
|
|
1390
|
-
return /* @__PURE__ */
|
|
1388
|
+
return /* @__PURE__ */ Q(Ye.Fragment, { children: [/* @__PURE__ */ Z(ye.Item, {
|
|
1391
1389
|
minW: "0",
|
|
1392
1390
|
flexShrink: +!!n,
|
|
1393
1391
|
overflow: "hidden",
|
|
1394
|
-
children: /* @__PURE__ */
|
|
1392
|
+
children: /* @__PURE__ */ Z(er, {
|
|
1395
1393
|
item: e,
|
|
1396
1394
|
isCurrent: n,
|
|
1397
1395
|
linkComponent: r
|
|
1398
1396
|
})
|
|
1399
|
-
}), n ? null : /* @__PURE__ */
|
|
1397
|
+
}), n ? null : /* @__PURE__ */ Z(tr, { separator: o })] }, t);
|
|
1400
1398
|
}, 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;
|
|
1401
1399
|
} else c = n[9];
|
|
1402
1400
|
let l;
|
|
1403
|
-
n[14] !== s || n[15] !== c ? (l = /* @__PURE__ */
|
|
1401
|
+
n[14] !== s || n[15] !== c ? (l = /* @__PURE__ */ Z(ye.List, {
|
|
1404
1402
|
gap: s,
|
|
1405
1403
|
flexWrap: "nowrap",
|
|
1406
1404
|
minW: "0",
|
|
@@ -1409,13 +1407,13 @@ var Hn = (e) => {
|
|
|
1409
1407
|
children: c
|
|
1410
1408
|
}), n[14] = s, n[15] = c, n[16] = l) : l = n[16];
|
|
1411
1409
|
let u;
|
|
1412
|
-
return n[17] !== t || n[18] !== a || n[19] !== l ? (u = /* @__PURE__ */
|
|
1410
|
+
return n[17] !== t || n[18] !== a || n[19] !== l ? (u = /* @__PURE__ */ Z(ye.Root, {
|
|
1413
1411
|
ref: t,
|
|
1414
1412
|
...a,
|
|
1415
1413
|
children: l
|
|
1416
1414
|
}), n[17] = t, n[18] = a, n[19] = l, n[20] = u) : u = n[20], u;
|
|
1417
1415
|
}), rr = "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\")", ir = (e) => {
|
|
1418
|
-
let t =
|
|
1416
|
+
let t = X(3), n;
|
|
1419
1417
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
1420
1418
|
backgroundClip: "padding-box",
|
|
1421
1419
|
backgroundImage: rr,
|
|
@@ -1423,15 +1421,15 @@ var Hn = (e) => {
|
|
|
1423
1421
|
width: "100%"
|
|
1424
1422
|
}, t[0] = n) : n = t[0];
|
|
1425
1423
|
let r;
|
|
1426
|
-
return t[1] === e ? r = t[2] : (r = /* @__PURE__ */
|
|
1424
|
+
return t[1] === e ? r = t[2] : (r = /* @__PURE__ */ Z(W, {
|
|
1427
1425
|
...e,
|
|
1428
1426
|
css: n
|
|
1429
1427
|
}), t[1] = e, t[2] = r), r;
|
|
1430
1428
|
}, ar = (e) => {
|
|
1431
|
-
let t =
|
|
1432
|
-
return t[0] === e ? n = t[1] : (n = /* @__PURE__ */
|
|
1429
|
+
let t = X(2), n;
|
|
1430
|
+
return t[0] === e ? n = t[1] : (n = /* @__PURE__ */ Z(W, {
|
|
1433
1431
|
p: "2",
|
|
1434
|
-
children: /* @__PURE__ */
|
|
1432
|
+
children: /* @__PURE__ */ Z(Y, {
|
|
1435
1433
|
color: "fg.muted",
|
|
1436
1434
|
fontWeight: "medium",
|
|
1437
1435
|
textStyle: "sm",
|
|
@@ -1440,8 +1438,8 @@ var Hn = (e) => {
|
|
|
1440
1438
|
})
|
|
1441
1439
|
}), t[0] = e, t[1] = n), n;
|
|
1442
1440
|
}, or = (e) => {
|
|
1443
|
-
let { text: t, label: n = "Copy", onCopy: r, onCopyError: i, disabled: a, ...o } = e, [s, c] =
|
|
1444
|
-
|
|
1441
|
+
let { text: t, label: n = "Copy", onCopy: r, onCopyError: i, disabled: a, ...o } = e, [s, c] = $("ready"), u = nt(null);
|
|
1442
|
+
tt(() => () => {
|
|
1445
1443
|
u.current && clearTimeout(u.current);
|
|
1446
1444
|
}, []);
|
|
1447
1445
|
let d = async () => {
|
|
@@ -1452,21 +1450,21 @@ var Hn = (e) => {
|
|
|
1452
1450
|
}
|
|
1453
1451
|
u.current && clearTimeout(u.current), u.current = setTimeout(() => c("ready"), 1500);
|
|
1454
1452
|
}, f = n;
|
|
1455
|
-
return s === "copied" && (f = "Copied"), s === "failed" && (f = "Copy failed. Try again."), /* @__PURE__ */
|
|
1453
|
+
return s === "copied" && (f = "Copied"), s === "failed" && (f = "Copy failed. Try again."), /* @__PURE__ */ Z(l, {
|
|
1456
1454
|
content: f,
|
|
1457
1455
|
openDelay: 300,
|
|
1458
1456
|
closeDelay: 150,
|
|
1459
|
-
children: /* @__PURE__ */
|
|
1457
|
+
children: /* @__PURE__ */ Z(De, {
|
|
1460
1458
|
variant: "ghost",
|
|
1461
1459
|
size: "sm",
|
|
1462
1460
|
...o,
|
|
1463
1461
|
"aria-label": f,
|
|
1464
1462
|
disabled: a || !t,
|
|
1465
1463
|
onClick: d,
|
|
1466
|
-
children:
|
|
1464
|
+
children: Z(s === "copied" ? st : dt, {})
|
|
1467
1465
|
})
|
|
1468
1466
|
});
|
|
1469
|
-
}, sr = class extends
|
|
1467
|
+
}, sr = class extends Xe {
|
|
1470
1468
|
state = { error: null };
|
|
1471
1469
|
static getDerivedStateFromError(e) {
|
|
1472
1470
|
return { error: e };
|
|
@@ -1479,62 +1477,62 @@ var Hn = (e) => {
|
|
|
1479
1477
|
};
|
|
1480
1478
|
render() {
|
|
1481
1479
|
let { children: e, fallback: t, label: n } = this.props, { error: r } = this.state;
|
|
1482
|
-
return r ? t || /* @__PURE__ */
|
|
1480
|
+
return r ? t || /* @__PURE__ */ Z(cr, {
|
|
1483
1481
|
error: r,
|
|
1484
1482
|
label: n,
|
|
1485
1483
|
onReset: this.handleReset
|
|
1486
1484
|
}) : e;
|
|
1487
1485
|
}
|
|
1488
1486
|
}, cr = (e) => {
|
|
1489
|
-
let t =
|
|
1490
|
-
t[0] === a ? o = t[1] : (o = /* @__PURE__ */
|
|
1487
|
+
let t = X(12), { error: n, label: r, onReset: i } = e, a = r ?? "Something went wrong", o;
|
|
1488
|
+
t[0] === a ? o = t[1] : (o = /* @__PURE__ */ Z(Y, {
|
|
1491
1489
|
textStyle: "paragraph/M/medium",
|
|
1492
1490
|
children: a
|
|
1493
1491
|
}), t[0] = a, t[1] = o);
|
|
1494
1492
|
let s = n.message || "An unexpected error occurred while rendering this section.", l;
|
|
1495
|
-
t[2] === s ? l = t[3] : (l = /* @__PURE__ */
|
|
1493
|
+
t[2] === s ? l = t[3] : (l = /* @__PURE__ */ Z(Y, {
|
|
1496
1494
|
textStyle: "paragraph/S/regular",
|
|
1497
1495
|
children: s
|
|
1498
1496
|
}), t[2] = s, t[3] = l);
|
|
1499
1497
|
let u;
|
|
1500
|
-
t[4] === i ? u = t[5] : (u = i ? /* @__PURE__ */
|
|
1498
|
+
t[4] === i ? u = t[5] : (u = i ? /* @__PURE__ */ Z(be, {
|
|
1501
1499
|
size: "sm",
|
|
1502
1500
|
variant: "primary",
|
|
1503
1501
|
onClick: i,
|
|
1504
1502
|
children: "Try again"
|
|
1505
1503
|
}) : null, t[4] = i, t[5] = u);
|
|
1506
1504
|
let d;
|
|
1507
|
-
t[6] !== l || t[7] !== u ? (d = /* @__PURE__ */
|
|
1505
|
+
t[6] !== l || t[7] !== u ? (d = /* @__PURE__ */ Q(Le, {
|
|
1508
1506
|
gap: "sm",
|
|
1509
1507
|
children: [l, u]
|
|
1510
1508
|
}), t[6] = l, t[7] = u, t[8] = d) : d = t[8];
|
|
1511
1509
|
let f;
|
|
1512
|
-
return t[9] !== o || t[10] !== d ? (f = /* @__PURE__ */
|
|
1510
|
+
return t[9] !== o || t[10] !== d ? (f = /* @__PURE__ */ Z(ir, {
|
|
1513
1511
|
height: "100%",
|
|
1514
1512
|
width: "100%",
|
|
1515
|
-
children: /* @__PURE__ */
|
|
1513
|
+
children: /* @__PURE__ */ Z(_e, { children: /* @__PURE__ */ Z(c, {
|
|
1516
1514
|
status: "error",
|
|
1517
1515
|
title: o,
|
|
1518
1516
|
children: d
|
|
1519
1517
|
}) })
|
|
1520
1518
|
}), t[9] = o, t[10] = d, t[11] = f) : f = t[11], f;
|
|
1521
1519
|
}, lr = (e) => !!e && e !== "circle", ur = (e) => {
|
|
1522
|
-
let t =
|
|
1520
|
+
let t = X(18), n, r, i, a, o;
|
|
1523
1521
|
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);
|
|
1524
1522
|
let s = o === void 0 || o, c;
|
|
1525
1523
|
t[6] !== r || t[7] !== i ? (c = R(r, i), t[6] = r, t[7] = i, t[8] = c) : c = t[8];
|
|
1526
1524
|
let l = c, u = `${n}.500/15`, d;
|
|
1527
|
-
t[9] !== l || t[10] !== n || t[11] !== r || t[12] !== s ? (d = s && lr(r) ? /* @__PURE__ */
|
|
1525
|
+
t[9] !== l || t[10] !== n || t[11] !== r || t[12] !== s ? (d = s && lr(r) ? /* @__PURE__ */ Z(J, {
|
|
1528
1526
|
as: l,
|
|
1529
1527
|
boxSize: "icon-xs",
|
|
1530
1528
|
color: `${n}.500`
|
|
1531
|
-
}) : /* @__PURE__ */
|
|
1529
|
+
}) : /* @__PURE__ */ Z(W, {
|
|
1532
1530
|
boxSize: "tag-swatch-dot",
|
|
1533
1531
|
borderRadius: "full",
|
|
1534
1532
|
bg: `${n}.500`
|
|
1535
1533
|
}), t[9] = l, t[10] = n, t[11] = r, t[12] = s, t[13] = d) : d = t[13];
|
|
1536
1534
|
let f;
|
|
1537
|
-
return t[14] !== a || t[15] !== u || t[16] !== d ? (f = /* @__PURE__ */
|
|
1535
|
+
return t[14] !== a || t[15] !== u || t[16] !== d ? (f = /* @__PURE__ */ Z(xe, {
|
|
1538
1536
|
boxSize: "tag-swatch",
|
|
1539
1537
|
flexShrink: 0,
|
|
1540
1538
|
borderRadius: "compact",
|
|
@@ -1542,7 +1540,7 @@ var Hn = (e) => {
|
|
|
1542
1540
|
...a,
|
|
1543
1541
|
children: d
|
|
1544
1542
|
}), t[14] = a, t[15] = u, t[16] = d, t[17] = f) : f = t[17], f;
|
|
1545
|
-
}, dr =
|
|
1543
|
+
}, dr = Ve("button", { base: {
|
|
1546
1544
|
display: "inline-flex",
|
|
1547
1545
|
borderRadius: "compact",
|
|
1548
1546
|
cursor: "pointer",
|
|
@@ -1551,7 +1549,7 @@ var Hn = (e) => {
|
|
|
1551
1549
|
cursor: "not-allowed",
|
|
1552
1550
|
opacity: .5
|
|
1553
1551
|
}
|
|
1554
|
-
} }), fr =
|
|
1552
|
+
} }), fr = Ve("button", { base: {
|
|
1555
1553
|
boxSize: "tag-color-dot",
|
|
1556
1554
|
borderRadius: "full",
|
|
1557
1555
|
cursor: "pointer",
|
|
@@ -1560,7 +1558,7 @@ var Hn = (e) => {
|
|
|
1560
1558
|
outlineOffset: "3xs",
|
|
1561
1559
|
outlineColor: "transparent",
|
|
1562
1560
|
_selected: { outlineColor: "fg" }
|
|
1563
|
-
} }), pr =
|
|
1561
|
+
} }), pr = Ve("button", { base: {
|
|
1564
1562
|
display: "inline-flex",
|
|
1565
1563
|
alignItems: "center",
|
|
1566
1564
|
justifyContent: "center",
|
|
@@ -1570,19 +1568,19 @@ var Hn = (e) => {
|
|
|
1570
1568
|
cursor: "pointer",
|
|
1571
1569
|
_hover: { bg: "bg.hover" }
|
|
1572
1570
|
} }), mr = (e) => {
|
|
1573
|
-
let t =
|
|
1571
|
+
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 ? L : r, m = a === void 0 ? ee : 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;
|
|
1574
1572
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (b = { placement: "bottom-start" }, t[0] = b) : b = t[0];
|
|
1575
1573
|
let x;
|
|
1576
|
-
t[1] !== n || t[2] !== i || t[3] !== m || t[4] !== h ? (x = /* @__PURE__ */
|
|
1574
|
+
t[1] !== n || t[2] !== i || t[3] !== m || t[4] !== h ? (x = /* @__PURE__ */ Z(ur, {
|
|
1577
1575
|
color: n,
|
|
1578
1576
|
icon: i,
|
|
1579
1577
|
iconOptions: m,
|
|
1580
1578
|
showIcon: h
|
|
1581
1579
|
}), t[1] = n, t[2] = i, t[3] = m, t[4] = h, t[5] = x) : x = t[5];
|
|
1582
1580
|
let S;
|
|
1583
|
-
t[6] !== v || t[7] !== c || t[8] !== x ? (S = /* @__PURE__ */
|
|
1581
|
+
t[6] !== v || t[7] !== c || t[8] !== x ? (S = /* @__PURE__ */ Z(Me.Trigger, {
|
|
1584
1582
|
asChild: !0,
|
|
1585
|
-
children: /* @__PURE__ */
|
|
1583
|
+
children: /* @__PURE__ */ Z(dr, {
|
|
1586
1584
|
type: "button",
|
|
1587
1585
|
disabled: c,
|
|
1588
1586
|
"aria-label": v,
|
|
@@ -1590,7 +1588,7 @@ var Hn = (e) => {
|
|
|
1590
1588
|
})
|
|
1591
1589
|
}), t[6] = v, t[7] = c, t[8] = x, t[9] = S) : S = t[9];
|
|
1592
1590
|
let C = h ? "tag-picker" : "tag-picker-color-only", w;
|
|
1593
|
-
t[10] === g ? w = t[11] : (w = /* @__PURE__ */
|
|
1591
|
+
t[10] === g ? w = t[11] : (w = /* @__PURE__ */ Z(Y, {
|
|
1594
1592
|
textStyle: "label/S/medium",
|
|
1595
1593
|
color: "fg.muted",
|
|
1596
1594
|
children: g
|
|
@@ -1598,7 +1596,7 @@ var Hn = (e) => {
|
|
|
1598
1596
|
let T = `repeat(${h ? 10 : 5}, 1fr)`, E;
|
|
1599
1597
|
if (t[12] !== n || t[13] !== p || t[14] !== o) {
|
|
1600
1598
|
let e;
|
|
1601
|
-
t[16] !== n || t[17] !== o ? (e = (e) => /* @__PURE__ */
|
|
1599
|
+
t[16] !== n || t[17] !== o ? (e = (e) => /* @__PURE__ */ Z(fr, {
|
|
1602
1600
|
type: "button",
|
|
1603
1601
|
bg: `${e}.500`,
|
|
1604
1602
|
"aria-label": e,
|
|
@@ -1608,27 +1606,27 @@ var Hn = (e) => {
|
|
|
1608
1606
|
}, e), t[16] = n, t[17] = o, t[18] = e) : e = t[18], E = p.map(e), t[12] = n, t[13] = p, t[14] = o, t[15] = E;
|
|
1609
1607
|
} else E = t[15];
|
|
1610
1608
|
let D;
|
|
1611
|
-
t[19] !== T || t[20] !== E ? (D = /* @__PURE__ */
|
|
1609
|
+
t[19] !== T || t[20] !== E ? (D = /* @__PURE__ */ Z(Ee, {
|
|
1612
1610
|
templateColumns: T,
|
|
1613
1611
|
gap: "2xs",
|
|
1614
1612
|
justifyItems: "center",
|
|
1615
1613
|
children: E
|
|
1616
1614
|
}), t[19] = T, t[20] = E, t[21] = D) : D = t[21];
|
|
1617
1615
|
let O;
|
|
1618
|
-
t[22] !== n || t[23] !== _ || t[24] !== m || t[25] !== s || t[26] !== y || t[27] !== h ? (O = h ? /* @__PURE__ */
|
|
1619
|
-
/* @__PURE__ */
|
|
1620
|
-
/* @__PURE__ */
|
|
1616
|
+
t[22] !== n || t[23] !== _ || t[24] !== m || t[25] !== s || t[26] !== y || t[27] !== h ? (O = h ? /* @__PURE__ */ Q(Je, { children: [
|
|
1617
|
+
/* @__PURE__ */ Z(W, { borderTop: "subtle" }),
|
|
1618
|
+
/* @__PURE__ */ Z(Y, {
|
|
1621
1619
|
textStyle: "label/S/medium",
|
|
1622
1620
|
color: "fg.muted",
|
|
1623
1621
|
children: _
|
|
1624
1622
|
}),
|
|
1625
|
-
/* @__PURE__ */
|
|
1623
|
+
/* @__PURE__ */ Z(Ee, {
|
|
1626
1624
|
templateColumns: "repeat(8, 1fr)",
|
|
1627
1625
|
gap: "3xs",
|
|
1628
1626
|
justifyItems: "center",
|
|
1629
1627
|
children: m.map((e) => {
|
|
1630
1628
|
let t = e.value === y;
|
|
1631
|
-
return /* @__PURE__ */
|
|
1629
|
+
return /* @__PURE__ */ Z(pr, {
|
|
1632
1630
|
type: "button",
|
|
1633
1631
|
color: t ? `${n}.500` : void 0,
|
|
1634
1632
|
bg: t ? `${n}.500/15` : void 0,
|
|
@@ -1636,7 +1634,7 @@ var Hn = (e) => {
|
|
|
1636
1634
|
"aria-label": e.label,
|
|
1637
1635
|
"aria-pressed": t,
|
|
1638
1636
|
onClick: () => s?.(e.value),
|
|
1639
|
-
children: /* @__PURE__ */
|
|
1637
|
+
children: /* @__PURE__ */ Z(J, {
|
|
1640
1638
|
as: e.icon,
|
|
1641
1639
|
boxSize: "icon-xs"
|
|
1642
1640
|
})
|
|
@@ -1645,7 +1643,7 @@ var Hn = (e) => {
|
|
|
1645
1643
|
})
|
|
1646
1644
|
] }) : null, t[22] = n, t[23] = _, t[24] = m, t[25] = s, t[26] = y, t[27] = h, t[28] = O) : O = t[28];
|
|
1647
1645
|
let k;
|
|
1648
|
-
t[29] !== w || t[30] !== D || t[31] !== O ? (k = /* @__PURE__ */
|
|
1646
|
+
t[29] !== w || t[30] !== D || t[31] !== O ? (k = /* @__PURE__ */ Q(Le, {
|
|
1649
1647
|
gap: "compact",
|
|
1650
1648
|
p: "sm",
|
|
1651
1649
|
children: [
|
|
@@ -1655,21 +1653,21 @@ var Hn = (e) => {
|
|
|
1655
1653
|
]
|
|
1656
1654
|
}), t[29] = w, t[30] = D, t[31] = O, t[32] = k) : k = t[32];
|
|
1657
1655
|
let A;
|
|
1658
|
-
t[33] !== k || t[34] !== C ? (A = /* @__PURE__ */
|
|
1656
|
+
t[33] !== k || t[34] !== C ? (A = /* @__PURE__ */ Z(Ne, { children: /* @__PURE__ */ Z(Me.Positioner, { children: /* @__PURE__ */ Z(Me.Content, {
|
|
1659
1657
|
width: C,
|
|
1660
1658
|
bg: "bg.elevated",
|
|
1661
1659
|
children: k
|
|
1662
1660
|
}) }) }), t[33] = k, t[34] = C, t[35] = A) : A = t[35];
|
|
1663
1661
|
let j;
|
|
1664
|
-
return t[36] !== A || t[37] !== S ? (j = /* @__PURE__ */
|
|
1662
|
+
return t[36] !== A || t[37] !== S ? (j = /* @__PURE__ */ Q(Me.Root, {
|
|
1665
1663
|
positioning: b,
|
|
1666
1664
|
children: [S, A]
|
|
1667
1665
|
}), t[36] = A, t[37] = S, t[38] = j) : j = t[38], j;
|
|
1668
1666
|
}, hr = (e) => {
|
|
1669
|
-
let t =
|
|
1667
|
+
let t = X(6), n, r;
|
|
1670
1668
|
t[0] === e ? (n = t[1], r = t[2]) : ({children: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
1671
1669
|
let i;
|
|
1672
|
-
return t[3] !== n || t[4] !== r ? (i = /* @__PURE__ */
|
|
1670
|
+
return t[3] !== n || t[4] !== r ? (i = /* @__PURE__ */ Z(W, {
|
|
1673
1671
|
borderWidth: "1px",
|
|
1674
1672
|
borderColor: "border.subtle",
|
|
1675
1673
|
borderRadius: "xs",
|
|
@@ -1678,17 +1676,17 @@ var Hn = (e) => {
|
|
|
1678
1676
|
children: n
|
|
1679
1677
|
}), t[3] = n, t[4] = r, t[5] = i) : i = t[5], i;
|
|
1680
1678
|
}, gr = (e) => {
|
|
1681
|
-
let t =
|
|
1679
|
+
let t = X(6), n, r;
|
|
1682
1680
|
t[0] === e ? (n = t[1], r = t[2]) : ({children: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
1683
1681
|
let i;
|
|
1684
|
-
return t[3] !== n || t[4] !== r ? (i = /* @__PURE__ */
|
|
1682
|
+
return t[3] !== n || t[4] !== r ? (i = /* @__PURE__ */ Z(W, {
|
|
1685
1683
|
p: "md",
|
|
1686
1684
|
...r,
|
|
1687
1685
|
children: n
|
|
1688
1686
|
}), t[3] = n, t[4] = r, t[5] = i) : i = t[5], i;
|
|
1689
1687
|
}, _r = (e) => {
|
|
1690
|
-
let t =
|
|
1691
|
-
t[0] === n ? d = t[1] : (d = /* @__PURE__ */
|
|
1688
|
+
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;
|
|
1689
|
+
t[0] === n ? d = t[1] : (d = /* @__PURE__ */ Z(J, {
|
|
1692
1690
|
boxSize: "1em",
|
|
1693
1691
|
fontSize: "2xl",
|
|
1694
1692
|
flexShrink: "0",
|
|
@@ -1696,31 +1694,31 @@ var Hn = (e) => {
|
|
|
1696
1694
|
children: n
|
|
1697
1695
|
}), t[0] = n, t[1] = d);
|
|
1698
1696
|
let f;
|
|
1699
|
-
t[2] === r ? f = t[3] : (f = /* @__PURE__ */
|
|
1697
|
+
t[2] === r ? f = t[3] : (f = /* @__PURE__ */ Z(Y, {
|
|
1700
1698
|
textStyle: "sm",
|
|
1701
1699
|
fontWeight: "semibold",
|
|
1702
1700
|
children: r
|
|
1703
1701
|
}), t[2] = r, t[3] = f);
|
|
1704
1702
|
let p;
|
|
1705
|
-
t[4] === a ? p = t[5] : (p = /* @__PURE__ */
|
|
1703
|
+
t[4] === a ? p = t[5] : (p = /* @__PURE__ */ Z(ve, {
|
|
1706
1704
|
size: "sm",
|
|
1707
1705
|
variant: "outline",
|
|
1708
1706
|
children: a
|
|
1709
1707
|
}), t[4] = a, t[5] = p);
|
|
1710
1708
|
let m;
|
|
1711
|
-
t[6] === o ? m = t[7] : (m = o && /* @__PURE__ */
|
|
1709
|
+
t[6] === o ? m = t[7] : (m = o && /* @__PURE__ */ Q(ve, {
|
|
1712
1710
|
size: "sm",
|
|
1713
1711
|
variant: "outline",
|
|
1714
1712
|
children: ["v", o]
|
|
1715
1713
|
}), t[6] = o, t[7] = m);
|
|
1716
1714
|
let h;
|
|
1717
|
-
t[8] === s ? h = t[9] : (h = s && /* @__PURE__ */
|
|
1715
|
+
t[8] === s ? h = t[9] : (h = s && /* @__PURE__ */ Z(ve, {
|
|
1718
1716
|
size: "sm",
|
|
1719
1717
|
variant: "outline",
|
|
1720
1718
|
children: s
|
|
1721
1719
|
}), t[8] = s, t[9] = h);
|
|
1722
1720
|
let g;
|
|
1723
|
-
t[10] !== f || t[11] !== p || t[12] !== m || t[13] !== h ? (g = /* @__PURE__ */
|
|
1721
|
+
t[10] !== f || t[11] !== p || t[12] !== m || t[13] !== h ? (g = /* @__PURE__ */ Q(q, {
|
|
1724
1722
|
gap: "2",
|
|
1725
1723
|
flexWrap: "wrap",
|
|
1726
1724
|
children: [
|
|
@@ -1731,26 +1729,26 @@ var Hn = (e) => {
|
|
|
1731
1729
|
]
|
|
1732
1730
|
}), t[10] = f, t[11] = p, t[12] = m, t[13] = h, t[14] = g) : g = t[14];
|
|
1733
1731
|
let _;
|
|
1734
|
-
t[15] === i ? _ = t[16] : (_ = /* @__PURE__ */
|
|
1732
|
+
t[15] === i ? _ = t[16] : (_ = /* @__PURE__ */ Z(Y, {
|
|
1735
1733
|
color: "fg.muted",
|
|
1736
1734
|
children: i
|
|
1737
1735
|
}), t[15] = i, t[16] = _);
|
|
1738
1736
|
let v;
|
|
1739
|
-
t[17] !== g || t[18] !== _ ? (v = /* @__PURE__ */
|
|
1737
|
+
t[17] !== g || t[18] !== _ ? (v = /* @__PURE__ */ Z(W, {
|
|
1740
1738
|
flex: "1",
|
|
1741
1739
|
minW: "0",
|
|
1742
|
-
children: /* @__PURE__ */
|
|
1740
|
+
children: /* @__PURE__ */ Q(Le, {
|
|
1743
1741
|
gap: "1",
|
|
1744
1742
|
children: [g, _]
|
|
1745
1743
|
})
|
|
1746
1744
|
}), t[17] = g, t[18] = _, t[19] = v) : v = t[19];
|
|
1747
1745
|
let y;
|
|
1748
|
-
t[20] === u ? y = t[21] : (y = u && /* @__PURE__ */
|
|
1746
|
+
t[20] === u ? y = t[21] : (y = u && /* @__PURE__ */ Z(J, {
|
|
1749
1747
|
color: "fg.success",
|
|
1750
|
-
children: /* @__PURE__ */
|
|
1748
|
+
children: /* @__PURE__ */ Z(st, {})
|
|
1751
1749
|
}), t[20] = u, t[21] = y);
|
|
1752
1750
|
let b = l ?? (u ? "Active" : "Connect"), x;
|
|
1753
|
-
t[22] !== u || t[23] !== b || t[24] !== y ? (x = /* @__PURE__ */
|
|
1751
|
+
t[22] !== u || t[23] !== b || t[24] !== y ? (x = /* @__PURE__ */ Q(be, {
|
|
1754
1752
|
type: "button",
|
|
1755
1753
|
disabled: u,
|
|
1756
1754
|
size: "sm",
|
|
@@ -1761,7 +1759,7 @@ var Hn = (e) => {
|
|
|
1761
1759
|
children: [y, b]
|
|
1762
1760
|
}), t[22] = u, t[23] = b, t[24] = y, t[25] = x) : x = t[25];
|
|
1763
1761
|
let S;
|
|
1764
|
-
return t[26] !== d || t[27] !== x || t[28] !== v ? (S = /* @__PURE__ */
|
|
1762
|
+
return t[26] !== d || t[27] !== x || t[28] !== v ? (S = /* @__PURE__ */ Z(hr, { children: /* @__PURE__ */ Z(gr, { children: /* @__PURE__ */ Q(q, {
|
|
1765
1763
|
gap: "4",
|
|
1766
1764
|
alignItems: "flex-start",
|
|
1767
1765
|
children: [
|
|
@@ -1770,7 +1768,7 @@ var Hn = (e) => {
|
|
|
1770
1768
|
x
|
|
1771
1769
|
]
|
|
1772
1770
|
}) }) }), t[26] = d, t[27] = x, t[28] = v, t[29] = S) : S = t[29], S;
|
|
1773
|
-
}, vr =
|
|
1771
|
+
}, vr = Ge({
|
|
1774
1772
|
className: "ps-segmented-control",
|
|
1775
1773
|
slots: ["root", "item"],
|
|
1776
1774
|
base: {
|
|
@@ -1826,15 +1824,15 @@ var Hn = (e) => {
|
|
|
1826
1824
|
}
|
|
1827
1825
|
} },
|
|
1828
1826
|
defaultVariants: { size: "sm" }
|
|
1829
|
-
}), { withProvider: yr, withContext: br } =
|
|
1830
|
-
let t =
|
|
1827
|
+
}), { withProvider: yr, withContext: br } = He({ recipe: vr }), xr = yr("div", "root"), Sr = br("button", "item"), Cr = (e) => {
|
|
1828
|
+
let t = X(20), n, r, i, a, o, s;
|
|
1831
1829
|
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);
|
|
1832
1830
|
let c;
|
|
1833
1831
|
if (t[7] !== r || t[8] !== i || t[9] !== a || t[10] !== s) {
|
|
1834
1832
|
let e;
|
|
1835
1833
|
t[12] !== r || t[13] !== i || t[14] !== s ? (e = (e) => {
|
|
1836
1834
|
let t = e.value === s;
|
|
1837
|
-
return /* @__PURE__ */
|
|
1835
|
+
return /* @__PURE__ */ Z(Sr, {
|
|
1838
1836
|
type: "button",
|
|
1839
1837
|
"aria-pressed": t,
|
|
1840
1838
|
"data-selected": t ? "" : void 0,
|
|
@@ -1845,26 +1843,26 @@ var Hn = (e) => {
|
|
|
1845
1843
|
}, 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;
|
|
1846
1844
|
} else c = t[11];
|
|
1847
1845
|
let l;
|
|
1848
|
-
return t[16] !== n || t[17] !== o || t[18] !== c ? (l = /* @__PURE__ */
|
|
1846
|
+
return t[16] !== n || t[17] !== o || t[18] !== c ? (l = /* @__PURE__ */ Z(xr, {
|
|
1849
1847
|
role: "group",
|
|
1850
1848
|
"aria-label": n,
|
|
1851
1849
|
...o,
|
|
1852
1850
|
children: c
|
|
1853
1851
|
}), t[16] = n, t[17] = o, t[18] = c, t[19] = l) : l = t[19], l;
|
|
1854
|
-
}, wr =
|
|
1852
|
+
}, wr = Ue({
|
|
1855
1853
|
placement: "top",
|
|
1856
1854
|
pauseOnPageIdle: !0,
|
|
1857
1855
|
duration: 1e4
|
|
1858
1856
|
}), Tr = () => {
|
|
1859
|
-
let e =
|
|
1860
|
-
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */
|
|
1857
|
+
let e = X(1), t;
|
|
1858
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ Z(Ne, { children: /* @__PURE__ */ Z(Be, {
|
|
1861
1859
|
toaster: wr,
|
|
1862
1860
|
insetInline: { mdDown: "4" },
|
|
1863
1861
|
children: Er
|
|
1864
1862
|
}) }), e[0] = t) : t = e[0], t;
|
|
1865
1863
|
};
|
|
1866
1864
|
function Er(e) {
|
|
1867
|
-
return /* @__PURE__ */
|
|
1865
|
+
return /* @__PURE__ */ Q(ze.Root, {
|
|
1868
1866
|
width: { md: "sm" },
|
|
1869
1867
|
alignItems: "start",
|
|
1870
1868
|
borderRadius: "xs",
|
|
@@ -1873,22 +1871,22 @@ function Er(e) {
|
|
|
1873
1871
|
py: "xs",
|
|
1874
1872
|
minH: "auto",
|
|
1875
1873
|
children: [
|
|
1876
|
-
e.type === "loading" ? /* @__PURE__ */
|
|
1874
|
+
e.type === "loading" ? /* @__PURE__ */ Z(Ie, {
|
|
1877
1875
|
size: "sm",
|
|
1878
1876
|
color: "blue.solid"
|
|
1879
|
-
}) : /* @__PURE__ */
|
|
1880
|
-
/* @__PURE__ */
|
|
1877
|
+
}) : /* @__PURE__ */ Z(ze.Indicator, {}),
|
|
1878
|
+
/* @__PURE__ */ Q(Le, {
|
|
1881
1879
|
gap: "0",
|
|
1882
1880
|
flex: "1",
|
|
1883
1881
|
minWidth: "0",
|
|
1884
1882
|
maxWidth: "100%",
|
|
1885
|
-
children: [e.title && /* @__PURE__ */
|
|
1883
|
+
children: [e.title && /* @__PURE__ */ Z(ze.Title, {
|
|
1886
1884
|
textStyle: "label/S/medium",
|
|
1887
1885
|
children: e.title
|
|
1888
|
-
}), e.description && /* @__PURE__ */
|
|
1886
|
+
}), e.description && /* @__PURE__ */ Z(u, {
|
|
1889
1887
|
maxHeight: "12rem",
|
|
1890
1888
|
contentProps: { paddingEnd: "1" },
|
|
1891
|
-
children: /* @__PURE__ */
|
|
1889
|
+
children: /* @__PURE__ */ Z(ze.Description, {
|
|
1892
1890
|
textStyle: "paragraph/S/regular",
|
|
1893
1891
|
whiteSpace: "pre-wrap",
|
|
1894
1892
|
wordBreak: "break-word",
|
|
@@ -1896,8 +1894,8 @@ function Er(e) {
|
|
|
1896
1894
|
})
|
|
1897
1895
|
})]
|
|
1898
1896
|
}),
|
|
1899
|
-
e.action && /* @__PURE__ */
|
|
1900
|
-
/* @__PURE__ */
|
|
1897
|
+
e.action && /* @__PURE__ */ Z(ze.ActionTrigger, { children: e.action.label }),
|
|
1898
|
+
/* @__PURE__ */ Z(ze.CloseTrigger, {})
|
|
1901
1899
|
]
|
|
1902
1900
|
});
|
|
1903
1901
|
}
|
|
@@ -1967,13 +1965,13 @@ var Dr = {
|
|
|
1967
1965
|
});
|
|
1968
1966
|
return Pr.set(e, r), r;
|
|
1969
1967
|
}, Ir = (e, t, n) => {
|
|
1970
|
-
let r =
|
|
1968
|
+
let r = X(3), i;
|
|
1971
1969
|
return r[0] !== n || r[1] !== e ? (i = Fr(e, n), r[0] = n, r[1] = e, r[2] = i) : i = r[2], It(i, t);
|
|
1972
1970
|
}, Lr = (e) => {
|
|
1973
|
-
let t =
|
|
1971
|
+
let t = X(2), { children: n } = e;
|
|
1974
1972
|
if (!n) return null;
|
|
1975
1973
|
let r;
|
|
1976
|
-
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */
|
|
1974
|
+
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ Z(W, {
|
|
1977
1975
|
bg: "bg",
|
|
1978
1976
|
position: "sticky",
|
|
1979
1977
|
bottom: "0",
|
|
@@ -1981,8 +1979,8 @@ var Dr = {
|
|
|
1981
1979
|
children: n
|
|
1982
1980
|
}), t[0] = n, t[1] = r), r;
|
|
1983
1981
|
}, Rr = (e) => {
|
|
1984
|
-
let t =
|
|
1985
|
-
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */
|
|
1982
|
+
let t = X(2), { children: n } = e, r;
|
|
1983
|
+
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ Z(q, {
|
|
1986
1984
|
"data-testid": "sidenav-header",
|
|
1987
1985
|
justify: "space-between",
|
|
1988
1986
|
align: "center",
|
|
@@ -1992,7 +1990,7 @@ var Dr = {
|
|
|
1992
1990
|
top: "0",
|
|
1993
1991
|
zIndex: "1",
|
|
1994
1992
|
gap: "0",
|
|
1995
|
-
children: /* @__PURE__ */
|
|
1993
|
+
children: /* @__PURE__ */ Z(q, {
|
|
1996
1994
|
minW: "0",
|
|
1997
1995
|
flex: "1",
|
|
1998
1996
|
children: n
|
|
@@ -2006,9 +2004,9 @@ var Dr = {
|
|
|
2006
2004
|
}
|
|
2007
2005
|
return t;
|
|
2008
2006
|
}, Wr = (e) => {
|
|
2009
|
-
let t =
|
|
2007
|
+
let t = X(43), { storageKey: n, sections: r, activeNodeId: i, contextActions: a, header: o, footer: s, width: c, closable: l, emptyLabel: d, defaultExpandedSections: f, linkComponent: p, onNavigate: m, onOpenChange: h, resizable: _, defaultWidth: v, minWidth: y, maxWidth: x, virtualize: S } = e, C;
|
|
2010
2008
|
t[0] === a ? C = t[1] : (C = a === void 0 ? [] : a, t[0] = a, t[1] = C);
|
|
2011
|
-
let w = C, T = l === void 0 || l, E = d === void 0 ? "No items available." : d, D = _ === void 0 || _, O = y === void 0 ? Br : y, k = x === void 0 ? Vr : x, A = S !== void 0 && S, j =
|
|
2009
|
+
let w = C, T = l === void 0 || l, E = d === void 0 ? "No items available." : d, D = _ === void 0 || _, O = y === void 0 ? Br : y, k = x === void 0 ? Vr : x, A = S !== void 0 && S, j = nt(null), M;
|
|
2012
2010
|
t[2] !== v || t[3] !== c ? (M = Ur(c, v), t[2] = v, t[3] = c, t[4] = M) : M = t[4];
|
|
2013
2011
|
let N = M, P;
|
|
2014
2012
|
t[5] === f ? P = t[6] : (P = f ? { expandedSections: f } : {}, t[5] = f, t[6] = P);
|
|
@@ -2020,13 +2018,13 @@ var Dr = {
|
|
|
2020
2018
|
let I = F, L = Ir(n, Gr, I), ee = Ir(n, Kr, I), R = Ir(n, qr, I), te = Ir(n, Jr, I), ne = Ir(n, Yr, I), re = Ir(n, Xr, I), ie, ae;
|
|
2021
2019
|
t[10] !== h || t[11] !== L ? (ie = () => {
|
|
2022
2020
|
h?.(L);
|
|
2023
|
-
}, ae = [h, L], t[10] = h, t[11] = L, t[12] = ie, t[13] = ae) : (ie = t[12], ae = t[13]),
|
|
2021
|
+
}, ae = [h, L], t[10] = h, t[11] = L, t[12] = ie, t[13] = ae) : (ie = t[12], ae = t[13]), tt(ie, ae);
|
|
2024
2022
|
let z = ee ?? N, B;
|
|
2025
2023
|
t[14] !== k || t[15] !== O || t[16] !== z ? (B = Hr(z, O, k), t[14] = k, t[15] = O, t[16] = z, t[17] = B) : B = t[17];
|
|
2026
2024
|
let V = B;
|
|
2027
2025
|
if (!L && T) return null;
|
|
2028
2026
|
let oe = D ? `${V}px` : c ?? `${N}px`, H;
|
|
2029
|
-
t[18] === o ? H = t[19] : (H = /* @__PURE__ */
|
|
2027
|
+
t[18] === o ? H = t[19] : (H = /* @__PURE__ */ Z(Rr, { children: o }), t[18] = o, t[19] = H);
|
|
2030
2028
|
let U, se;
|
|
2031
2029
|
t[20] === Symbol.for("react.memo_cache_sentinel") ? (U = {
|
|
2032
2030
|
display: "block",
|
|
@@ -2039,24 +2037,24 @@ var Dr = {
|
|
|
2039
2037
|
flexDirection: "column"
|
|
2040
2038
|
} }, t[20] = U, t[21] = se) : (U = t[20], se = t[21]);
|
|
2041
2039
|
let ce;
|
|
2042
|
-
t[22] !== i || t[23] !== E || t[24] !== te || t[25] !== R || t[26] !== p || t[27] !== m || t[28] !== r || t[29] !== re || t[30] !== ne || t[31] !== A ? (ce = /* @__PURE__ */
|
|
2040
|
+
t[22] !== i || t[23] !== E || t[24] !== te || t[25] !== R || t[26] !== p || t[27] !== m || t[28] !== r || t[29] !== re || t[30] !== ne || t[31] !== A ? (ce = /* @__PURE__ */ Z(u, {
|
|
2043
2041
|
flex: "1",
|
|
2044
2042
|
mt: "lg",
|
|
2045
2043
|
viewportRef: j,
|
|
2046
2044
|
viewportProps: U,
|
|
2047
2045
|
contentProps: se,
|
|
2048
|
-
children: /* @__PURE__ */
|
|
2046
|
+
children: /* @__PURE__ */ Z(W, {
|
|
2049
2047
|
w: "full",
|
|
2050
2048
|
minW: "0",
|
|
2051
2049
|
flex: "1 0 auto",
|
|
2052
2050
|
display: "flex",
|
|
2053
2051
|
flexDirection: "column",
|
|
2054
|
-
children: r.length === 0 ? /* @__PURE__ */
|
|
2052
|
+
children: r.length === 0 ? /* @__PURE__ */ Z(Y, {
|
|
2055
2053
|
textStyle: "paragraph/S/regular",
|
|
2056
2054
|
color: "fg.muted",
|
|
2057
2055
|
p: "3",
|
|
2058
2056
|
children: E
|
|
2059
|
-
}) : /* @__PURE__ */
|
|
2057
|
+
}) : /* @__PURE__ */ Z(b, {
|
|
2060
2058
|
sections: r,
|
|
2061
2059
|
expandedSectionIds: R,
|
|
2062
2060
|
expandedNodeIds: te,
|
|
@@ -2074,9 +2072,9 @@ var Dr = {
|
|
|
2074
2072
|
})
|
|
2075
2073
|
}), t[22] = i, t[23] = E, t[24] = te, t[25] = R, t[26] = p, t[27] = m, t[28] = r, t[29] = re, t[30] = ne, t[31] = A, t[32] = ce) : ce = t[32];
|
|
2076
2074
|
let le;
|
|
2077
|
-
t[33] === s ? le = t[34] : (le = /* @__PURE__ */
|
|
2075
|
+
t[33] === s ? le = t[34] : (le = /* @__PURE__ */ Z(Lr, { children: s }), t[33] = s, t[34] = le);
|
|
2078
2076
|
let ue;
|
|
2079
|
-
t[35] !== H || t[36] !== ce || t[37] !== le || t[38] !== oe ? (ue = /* @__PURE__ */
|
|
2077
|
+
t[35] !== H || t[36] !== ce || t[37] !== le || t[38] !== oe ? (ue = /* @__PURE__ */ Q(K, {
|
|
2080
2078
|
as: "aside",
|
|
2081
2079
|
"data-testid": "sidenav",
|
|
2082
2080
|
direction: "column",
|
|
@@ -2096,7 +2094,7 @@ var Dr = {
|
|
|
2096
2094
|
]
|
|
2097
2095
|
}), t[35] = H, t[36] = ce, t[37] = le, t[38] = oe, t[39] = ue) : ue = t[39];
|
|
2098
2096
|
let de = ue, fe;
|
|
2099
|
-
return t[40] !== de || t[41] !== w ? (fe = /* @__PURE__ */
|
|
2097
|
+
return t[40] !== de || t[41] !== w ? (fe = /* @__PURE__ */ Z(g, {
|
|
2100
2098
|
actions: w,
|
|
2101
2099
|
closeOnSelect: !1,
|
|
2102
2100
|
children: de
|
|
@@ -2157,7 +2155,7 @@ var Zr = { tabOverrides: {} }, Qr = "pstdio/ui/tab-visibility", $r = (e) => `${Q
|
|
|
2157
2155
|
let n = ii({ storageKey: e });
|
|
2158
2156
|
return ai.set(e, n), n;
|
|
2159
2157
|
}, si = (e, t) => {
|
|
2160
|
-
let n =
|
|
2158
|
+
let n = X(2), r;
|
|
2161
2159
|
return n[0] === e ? r = n[1] : (r = oi(e), n[0] = e, n[1] = r), It(r, t);
|
|
2162
2160
|
}, ci = (e, t) => typeof e == "string" ? e : t, li = (e, t) => e ?? (t ? "hidden" : "shown"), ui = (e) => e.canHide === !0 || e.hiddenByDefault === !0, di = (e, t) => li(t[e.id], e.hiddenByDefault) === "shown", fi = (e, t) => {
|
|
2163
2161
|
let n = !1, r = [];
|
|
@@ -2279,8 +2277,8 @@ var Zr = { tabOverrides: {} }, Qr = "pstdio/ui/tab-visibility", $r = (e) => `${Q
|
|
|
2279
2277
|
separatorBefore: !0,
|
|
2280
2278
|
onClick: n.onResetAll
|
|
2281
2279
|
}), o;
|
|
2282
|
-
}, { withProvider: xi, withContext: Si } =
|
|
2283
|
-
let t =
|
|
2280
|
+
}, { withProvider: xi, withContext: Si } = He({ recipe: ie }), Ci = xi("div", "list"), wi = Si("div", "tab"), Ti = Si("button", "trigger"), Ei = Si("span", "label"), Di = Si("button", "close"), Oi = (e) => {
|
|
2281
|
+
let t = X(38), { tab: n, selected: r, tabIndex: i, reorderable: a, onSelect: o, onClose: s, onKeyDown: c } = e, l = !a, u;
|
|
2284
2282
|
t[0] !== l || t[1] !== n.id ? (u = {
|
|
2285
2283
|
id: n.id,
|
|
2286
2284
|
disabled: l
|
|
@@ -2294,9 +2292,9 @@ var Zr = { tabOverrides: {} }, Qr = "pstdio/ui/tab-visibility", $r = (e) => `${Q
|
|
|
2294
2292
|
f?.onKeyDown?.(e), !v && !e.defaultPrevented && c(e);
|
|
2295
2293
|
}, t[8] = v, t[9] = f, t[10] = c, t[11] = C) : C = t[11];
|
|
2296
2294
|
let w;
|
|
2297
|
-
t[12] === n.label ? w = t[13] : (w = /* @__PURE__ */
|
|
2295
|
+
t[12] === n.label ? w = t[13] : (w = /* @__PURE__ */ Z(Ei, { children: n.label }), t[12] = n.label, t[13] = w);
|
|
2298
2296
|
let T;
|
|
2299
|
-
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__ */
|
|
2297
|
+
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(Ti, {
|
|
2300
2298
|
...S,
|
|
2301
2299
|
...f,
|
|
2302
2300
|
ref: m,
|
|
@@ -2311,9 +2309,9 @@ var Zr = { tabOverrides: {} }, Qr = "pstdio/ui/tab-visibility", $r = (e) => `${Q
|
|
|
2311
2309
|
children: [n.icon, w]
|
|
2312
2310
|
}), 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];
|
|
2313
2311
|
let E = `Close ${n.label}`, D = `Close ${n.label}`, O;
|
|
2314
|
-
t[25] === Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */
|
|
2312
|
+
t[25] === Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ Z(Ct, { "aria-hidden": "true" }), t[25] = O) : O = t[25];
|
|
2315
2313
|
let k;
|
|
2316
|
-
t[26] !== s || t[27] !== D || t[28] !== E ? (k = /* @__PURE__ */
|
|
2314
|
+
t[26] !== s || t[27] !== D || t[28] !== E ? (k = /* @__PURE__ */ Z(Di, {
|
|
2317
2315
|
type: "button",
|
|
2318
2316
|
"aria-label": E,
|
|
2319
2317
|
title: D,
|
|
@@ -2321,7 +2319,7 @@ var Zr = { tabOverrides: {} }, Qr = "pstdio/ui/tab-visibility", $r = (e) => `${Q
|
|
|
2321
2319
|
children: O
|
|
2322
2320
|
}), t[26] = s, t[27] = D, t[28] = E, t[29] = k) : k = t[29];
|
|
2323
2321
|
let A;
|
|
2324
|
-
return t[30] !== p || t[31] !== k || t[32] !== y || t[33] !== b || t[34] !== x || t[35] !== T || t[36] !== g ? (A = /* @__PURE__ */
|
|
2322
|
+
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(wi, {
|
|
2325
2323
|
ref: p,
|
|
2326
2324
|
role: "presentation",
|
|
2327
2325
|
"data-selected": y,
|
|
@@ -2331,7 +2329,7 @@ var Zr = { tabOverrides: {} }, Qr = "pstdio/ui/tab-visibility", $r = (e) => `${Q
|
|
|
2331
2329
|
children: [T, k]
|
|
2332
2330
|
}), 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;
|
|
2333
2331
|
}, ki = (e) => {
|
|
2334
|
-
let t =
|
|
2332
|
+
let t = X(48), { tabs: n, selectedId: r, onSelect: i, onClose: a, onReorder: o, "aria-label": s } = e, c = nt(null), l;
|
|
2335
2333
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (l = { activationConstraint: { distance: 6 } }, t[0] = l) : l = t[0];
|
|
2336
2334
|
let u;
|
|
2337
2335
|
t[1] === Symbol.for("react.memo_cache_sentinel") ? (u = { coordinateGetter: Nt }, t[1] = u) : u = t[1];
|
|
@@ -2341,7 +2339,7 @@ var Zr = { tabOverrides: {} }, Qr = "pstdio/ui/tab-visibility", $r = (e) => `${Q
|
|
|
2341
2339
|
block: "nearest",
|
|
2342
2340
|
inline: "nearest"
|
|
2343
2341
|
});
|
|
2344
|
-
}, p = [r], t[2] = r, t[3] = f, t[4] = p),
|
|
2342
|
+
}, p = [r], t[2] = r, t[3] = f, t[4] = p), tt(f, p);
|
|
2345
2343
|
let m, h, g, _, v, y, b, x, S, C, w, T, E;
|
|
2346
2344
|
if (t[5] !== s || t[6] !== a || t[7] !== o || t[8] !== i || t[9] !== r || t[10] !== d || t[11] !== n) {
|
|
2347
2345
|
let e = (e) => {
|
|
@@ -2362,7 +2360,7 @@ var Zr = { tabOverrides: {} }, Qr = "pstdio/ui/tab-visibility", $r = (e) => `${Q
|
|
|
2362
2360
|
g = wt, _ = d, v = Dt, t[25] === Symbol.for("react.memo_cache_sentinel") ? (y = [Ai], t[25] = y) : y = t[25], t[26] === o ? b = t[27] : (b = (e) => {
|
|
2363
2361
|
let { active: t, over: n } = e;
|
|
2364
2362
|
n && t.id !== n.id && o?.(String(t.id), String(n.id));
|
|
2365
|
-
}, t[26] = o, t[27] = b), h = At, t[28] === n ? T = t[29] : (T = n.map(ji), t[28] = n, t[29] = T), E = Mt, m = Ci, x = c, S = "tablist", C = s, w = n.map((t, a) => /* @__PURE__ */
|
|
2363
|
+
}, t[26] = o, t[27] = b), h = At, t[28] === n ? T = t[29] : (T = n.map(ji), t[28] = n, t[29] = T), E = Mt, m = Ci, x = c, S = "tablist", C = s, w = n.map((t, a) => /* @__PURE__ */ Z(Oi, {
|
|
2366
2364
|
tab: t,
|
|
2367
2365
|
selected: t.id === r,
|
|
2368
2366
|
tabIndex: t.id === (r ?? n[0]?.id) ? 0 : -1,
|
|
@@ -2373,20 +2371,20 @@ var Zr = { tabOverrides: {} }, Qr = "pstdio/ui/tab-visibility", $r = (e) => `${Q
|
|
|
2373
2371
|
}, 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;
|
|
2374
2372
|
} 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];
|
|
2375
2373
|
let D;
|
|
2376
|
-
t[30] !== m || t[31] !== x || t[32] !== S || t[33] !== C || t[34] !== w ? (D = /* @__PURE__ */
|
|
2374
|
+
t[30] !== m || t[31] !== x || t[32] !== S || t[33] !== C || t[34] !== w ? (D = /* @__PURE__ */ Z(m, {
|
|
2377
2375
|
ref: x,
|
|
2378
2376
|
role: S,
|
|
2379
2377
|
"aria-label": C,
|
|
2380
2378
|
children: w
|
|
2381
2379
|
}), t[30] = m, t[31] = x, t[32] = S, t[33] = C, t[34] = w, t[35] = D) : D = t[35];
|
|
2382
2380
|
let O;
|
|
2383
|
-
t[36] !== h || t[37] !== D || t[38] !== T || t[39] !== E ? (O = /* @__PURE__ */
|
|
2381
|
+
t[36] !== h || t[37] !== D || t[38] !== T || t[39] !== E ? (O = /* @__PURE__ */ Z(h, {
|
|
2384
2382
|
items: T,
|
|
2385
2383
|
strategy: E,
|
|
2386
2384
|
children: D
|
|
2387
2385
|
}), t[36] = h, t[37] = D, t[38] = T, t[39] = E, t[40] = O) : O = t[40];
|
|
2388
2386
|
let k;
|
|
2389
|
-
return t[41] !== g || t[42] !== _ || t[43] !== v || t[44] !== y || t[45] !== b || t[46] !== O ? (k = /* @__PURE__ */
|
|
2387
|
+
return t[41] !== g || t[42] !== _ || t[43] !== v || t[44] !== y || t[45] !== b || t[46] !== O ? (k = /* @__PURE__ */ Z(g, {
|
|
2390
2388
|
sensors: _,
|
|
2391
2389
|
collisionDetection: v,
|
|
2392
2390
|
modifiers: y,
|
|
@@ -2406,52 +2404,52 @@ function ji(e) {
|
|
|
2406
2404
|
}
|
|
2407
2405
|
//#endregion
|
|
2408
2406
|
//#region src/components/tab-strip/window-title-bar.tsx
|
|
2409
|
-
var { withProvider: Mi, withContext: Ni } =
|
|
2410
|
-
let t =
|
|
2411
|
-
t[0] === r ? a = t[1] : (a = /* @__PURE__ */
|
|
2407
|
+
var { withProvider: Mi, withContext: Ni } = He({ recipe: ae }), Pi = Mi("div", "root"), Fi = Ni("div", "content"), Ii = (e) => {
|
|
2408
|
+
let t = X(5), { platform: n, children: r } = e, i = n === "darwin" ? "mac" : "overlay", a;
|
|
2409
|
+
t[0] === r ? a = t[1] : (a = /* @__PURE__ */ Z(Fi, { children: r }), t[0] = r, t[1] = a);
|
|
2412
2410
|
let o;
|
|
2413
|
-
return t[2] !== i || t[3] !== a ? (o = /* @__PURE__ */
|
|
2411
|
+
return t[2] !== i || t[3] !== a ? (o = /* @__PURE__ */ Z(Pi, {
|
|
2414
2412
|
controls: i,
|
|
2415
2413
|
"data-window-title-bar": "",
|
|
2416
2414
|
children: a
|
|
2417
2415
|
}), t[2] = i, t[3] = a, t[4] = o) : o = t[4], o;
|
|
2418
2416
|
}, Li = (e) => {
|
|
2419
|
-
let t =
|
|
2420
|
-
t[0] === n ? i = t[1] : (i = /* @__PURE__ */
|
|
2417
|
+
let t = X(7), { children: n, hasChanges: r } = e, i;
|
|
2418
|
+
t[0] === n ? i = t[1] : (i = /* @__PURE__ */ Z(Y, {
|
|
2421
2419
|
textStyle: "label/L/medium",
|
|
2422
2420
|
truncate: !0,
|
|
2423
2421
|
children: n
|
|
2424
2422
|
}), t[0] = n, t[1] = i);
|
|
2425
2423
|
let a;
|
|
2426
|
-
t[2] === r ? a = t[3] : (a = r ? /* @__PURE__ */
|
|
2424
|
+
t[2] === r ? a = t[3] : (a = r ? /* @__PURE__ */ Z(Y, {
|
|
2427
2425
|
textStyle: "label/L/medium",
|
|
2428
2426
|
color: "fg.muted",
|
|
2429
2427
|
"aria-label": "Unsaved changes",
|
|
2430
2428
|
children: "*"
|
|
2431
2429
|
}) : null, t[2] = r, t[3] = a);
|
|
2432
2430
|
let o;
|
|
2433
|
-
return t[4] !== i || t[5] !== a ? (o = /* @__PURE__ */
|
|
2431
|
+
return t[4] !== i || t[5] !== a ? (o = /* @__PURE__ */ Q(q, {
|
|
2434
2432
|
gap: "3xs",
|
|
2435
2433
|
minWidth: "0",
|
|
2436
2434
|
children: [i, a]
|
|
2437
2435
|
}), t[4] = i, t[5] = a, t[6] = o) : o = t[6], o;
|
|
2438
2436
|
}, Ri = (e) => e.length === 0 ? "None" : e.length === 1 ? e[0].label : `${e[0].label} +${e.length - 1}`, zi = (e) => {
|
|
2439
|
-
let t =
|
|
2437
|
+
let t = X(54), { actions: n, disabled: r, label: i, options: a, optionName: o, onChange: s } = e, c, l, u, d, f, p, m, g, _, v, y, b, x, S;
|
|
2440
2438
|
if (t[0] !== n || t[1] !== r || t[2] !== i || t[3] !== s || t[4] !== o || t[5] !== a) {
|
|
2441
2439
|
let e;
|
|
2442
2440
|
t[20] === n ? e = t[21] : (e = (e) => n.includes(e.value), t[20] = n, t[21] = e);
|
|
2443
2441
|
let h = a.filter(e), C;
|
|
2444
2442
|
t[22] !== n || t[23] !== s ? (C = (e) => {
|
|
2445
2443
|
s(n.includes(e) ? n.filter((t) => t !== e) : [...n, e]);
|
|
2446
|
-
}, t[22] = n, t[23] = s, t[24] = C) : C = t[24], S = C, u =
|
|
2444
|
+
}, t[22] = n, t[23] = s, t[24] = C) : C = t[24], S = C, u = je.Root, x = !1, l = je.Trigger, b = !0, c = be, d = "2xs", f = "ghost", p = "xs", m = h.length === 0 ? "fg.subtle" : "fg", g = r, _ = `${i} for ${o}`, v = h[0]?.icon, y = Ri(h), 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] = g, t[14] = _, t[15] = v, t[16] = y, t[17] = b, t[18] = x, t[19] = S;
|
|
2447
2445
|
} else c = t[6], l = t[7], u = t[8], d = t[9], f = t[10], p = t[11], m = t[12], g = t[13], _ = t[14], v = t[15], y = t[16], b = t[17], x = t[18], S = t[19];
|
|
2448
2446
|
let C;
|
|
2449
|
-
t[25] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */
|
|
2447
|
+
t[25] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ Z(J, {
|
|
2450
2448
|
as: ct,
|
|
2451
2449
|
boxSize: "icon-2xs"
|
|
2452
2450
|
}), t[25] = C) : C = t[25];
|
|
2453
2451
|
let w;
|
|
2454
|
-
t[26] !== c || t[27] !== d || t[28] !== f || t[29] !== p || t[30] !== m || t[31] !== g || t[32] !== _ || t[33] !== v || t[34] !== y ? (w = /* @__PURE__ */
|
|
2452
|
+
t[26] !== c || t[27] !== d || t[28] !== f || t[29] !== p || t[30] !== m || t[31] !== g || t[32] !== _ || t[33] !== v || t[34] !== y ? (w = /* @__PURE__ */ Q(c, {
|
|
2455
2453
|
size: d,
|
|
2456
2454
|
variant: f,
|
|
2457
2455
|
gap: p,
|
|
@@ -2465,24 +2463,24 @@ var { withProvider: Mi, withContext: Ni } = Ve({ recipe: ae }), Pi = Mi("div", "
|
|
|
2465
2463
|
]
|
|
2466
2464
|
}), t[26] = c, t[27] = d, t[28] = f, t[29] = p, t[30] = m, t[31] = g, t[32] = _, t[33] = v, t[34] = y, t[35] = w) : w = t[35];
|
|
2467
2465
|
let T;
|
|
2468
|
-
t[36] !== l || t[37] !== w || t[38] !== b ? (T = /* @__PURE__ */
|
|
2466
|
+
t[36] !== l || t[37] !== w || t[38] !== b ? (T = /* @__PURE__ */ Z(l, {
|
|
2469
2467
|
asChild: b,
|
|
2470
2468
|
children: w
|
|
2471
2469
|
}), t[36] = l, t[37] = w, t[38] = b, t[39] = T) : T = t[39];
|
|
2472
2470
|
let E;
|
|
2473
2471
|
if (t[40] !== n || t[41] !== a || t[42] !== S) {
|
|
2474
2472
|
let e;
|
|
2475
|
-
t[44] !== n || t[45] !== S ? (e = (e) => /* @__PURE__ */
|
|
2473
|
+
t[44] !== n || t[45] !== S ? (e = (e) => /* @__PURE__ */ Z(je.Item, {
|
|
2476
2474
|
value: e.value,
|
|
2477
2475
|
asChild: !0,
|
|
2478
|
-
children: /* @__PURE__ */
|
|
2476
|
+
children: /* @__PURE__ */ Z(h, {
|
|
2479
2477
|
asChild: !0,
|
|
2480
2478
|
variant: "full-width",
|
|
2481
2479
|
id: e.value,
|
|
2482
2480
|
label: e.label,
|
|
2483
2481
|
icon: e.icon,
|
|
2484
2482
|
isSelected: n.includes(e.value),
|
|
2485
|
-
endContent: n.includes(e.value) ? /* @__PURE__ */
|
|
2483
|
+
endContent: n.includes(e.value) ? /* @__PURE__ */ Z(J, {
|
|
2486
2484
|
as: st,
|
|
2487
2485
|
boxSize: "icon-xs"
|
|
2488
2486
|
}) : void 0,
|
|
@@ -2491,18 +2489,18 @@ var { withProvider: Mi, withContext: Ni } = Ve({ recipe: ae }), Pi = Mi("div", "
|
|
|
2491
2489
|
}, 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;
|
|
2492
2490
|
} else E = t[43];
|
|
2493
2491
|
let D;
|
|
2494
|
-
t[47] === E ? D = t[48] : (D = /* @__PURE__ */
|
|
2492
|
+
t[47] === E ? D = t[48] : (D = /* @__PURE__ */ Z(je.Positioner, { children: /* @__PURE__ */ Z(je.Content, {
|
|
2495
2493
|
minW: "tag-action-menu",
|
|
2496
2494
|
bg: "bg",
|
|
2497
2495
|
children: E
|
|
2498
2496
|
}) }), t[47] = E, t[48] = D);
|
|
2499
2497
|
let O;
|
|
2500
|
-
return t[49] !== u || t[50] !== T || t[51] !== D || t[52] !== x ? (O = /* @__PURE__ */
|
|
2498
|
+
return t[49] !== u || t[50] !== T || t[51] !== D || t[52] !== x ? (O = /* @__PURE__ */ Q(u, {
|
|
2501
2499
|
closeOnSelect: x,
|
|
2502
2500
|
children: [T, D]
|
|
2503
2501
|
}), t[49] = u, t[50] = T, t[51] = D, t[52] = x, t[53] = O) : O = t[53], O;
|
|
2504
2502
|
}, Bi = (e) => {
|
|
2505
|
-
let t =
|
|
2503
|
+
let t = X(68), { 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;
|
|
2506
2504
|
t[0] !== _ || t[1] !== o.id ? (v = {
|
|
2507
2505
|
id: o.id,
|
|
2508
2506
|
disabled: _
|
|
@@ -2519,12 +2517,12 @@ var { withProvider: Mi, withContext: Ni } = Ve({ recipe: ae }), Pi = Mi("div", "
|
|
|
2519
2517
|
let N = c ? "default" : "grab", P;
|
|
2520
2518
|
t[10] === Symbol.for("react.memo_cache_sentinel") ? (P = { color: "fg.muted" }, t[10] = P) : P = t[10];
|
|
2521
2519
|
let F = `Reorder ${o.name}`, I;
|
|
2522
|
-
t[11] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */
|
|
2520
|
+
t[11] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ Z(J, {
|
|
2523
2521
|
as: mt,
|
|
2524
2522
|
boxSize: "icon-xs"
|
|
2525
2523
|
}), t[11] = I) : I = t[11];
|
|
2526
2524
|
let L;
|
|
2527
|
-
t[12] !== y || t[13] !== b || t[14] !== N || t[15] !== F ? (L = /* @__PURE__ */
|
|
2525
|
+
t[12] !== y || t[13] !== b || t[14] !== N || t[15] !== F ? (L = /* @__PURE__ */ Z(K, {
|
|
2528
2526
|
cursor: N,
|
|
2529
2527
|
color: "fg.subtle",
|
|
2530
2528
|
_groupHover: P,
|
|
@@ -2534,7 +2532,7 @@ var { withProvider: Mi, withContext: Ni } = Ve({ recipe: ae }), Pi = Mi("div", "
|
|
|
2534
2532
|
children: I
|
|
2535
2533
|
}), t[12] = y, t[13] = b, t[14] = N, t[15] = F, t[16] = L) : L = t[16];
|
|
2536
2534
|
let ee = `Change ${o.name} appearance`, R;
|
|
2537
|
-
t[17] !== i || t[18] !== _ || t[19] !== a || t[20] !== f || t[21] !== m || t[22] !== u || t[23] !== ee || t[24] !== o.color || t[25] !== o.icon ? (R = /* @__PURE__ */
|
|
2535
|
+
t[17] !== i || t[18] !== _ || t[19] !== a || t[20] !== f || t[21] !== m || t[22] !== u || t[23] !== ee || t[24] !== o.color || t[25] !== o.icon ? (R = /* @__PURE__ */ Z(mr, {
|
|
2538
2536
|
color: o.color,
|
|
2539
2537
|
colorOptions: i,
|
|
2540
2538
|
icon: o.icon,
|
|
@@ -2551,9 +2549,9 @@ var { withProvider: Mi, withContext: Ni } = Ve({ recipe: ae }), Pi = Mi("div", "
|
|
|
2551
2549
|
t && t !== o.name && h(t);
|
|
2552
2550
|
}, t[27] = h, t[28] = o.name, t[29] = te) : te = t[29];
|
|
2553
2551
|
let ne, re;
|
|
2554
|
-
t[30] === Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */
|
|
2552
|
+
t[30] === Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ Z(Te.Preview, { textStyle: "paragraph/S/regular" }), re = /* @__PURE__ */ Z(Te.Input, { textStyle: "paragraph/S/regular" }), t[30] = ne, t[31] = re) : (ne = t[30], re = t[31]);
|
|
2555
2553
|
let ie;
|
|
2556
|
-
t[32] !== _ || t[33] !== te || t[34] !== o.isNew || t[35] !== o.name ? (ie = /* @__PURE__ */
|
|
2554
|
+
t[32] !== _ || t[33] !== te || t[34] !== o.isNew || t[35] !== o.name ? (ie = /* @__PURE__ */ Q(Te.Root, {
|
|
2557
2555
|
minWidth: "0",
|
|
2558
2556
|
defaultValue: o.name,
|
|
2559
2557
|
defaultEdit: o.isNew,
|
|
@@ -2563,14 +2561,14 @@ var { withProvider: Mi, withContext: Ni } = Ve({ recipe: ae }), Pi = Mi("div", "
|
|
|
2563
2561
|
children: [ne, re]
|
|
2564
2562
|
}, o.name), t[32] = _, t[33] = te, t[34] = o.isNew, t[35] = o.name, t[36] = ie) : ie = t[36];
|
|
2565
2563
|
let ae;
|
|
2566
|
-
t[37] !== l || t[38] !== o.isDefault ? (ae = l && o.isDefault ? /* @__PURE__ */
|
|
2564
|
+
t[37] !== l || t[38] !== o.isDefault ? (ae = l && o.isDefault ? /* @__PURE__ */ Z(ve, {
|
|
2567
2565
|
size: "sm",
|
|
2568
2566
|
variant: "subtle",
|
|
2569
2567
|
colorPalette: "blue",
|
|
2570
2568
|
children: "Default"
|
|
2571
2569
|
}) : null, t[37] = l, t[38] = o.isDefault, t[39] = ae) : ae = t[39];
|
|
2572
2570
|
let z;
|
|
2573
|
-
t[40] !== ie || t[41] !== ae ? (z = /* @__PURE__ */
|
|
2571
|
+
t[40] !== ie || t[41] !== ae ? (z = /* @__PURE__ */ Q(K, {
|
|
2574
2572
|
flex: "1",
|
|
2575
2573
|
minWidth: "0",
|
|
2576
2574
|
alignItems: "center",
|
|
@@ -2578,10 +2576,10 @@ var { withProvider: Mi, withContext: Ni } = Ve({ recipe: ae }), Pi = Mi("div", "
|
|
|
2578
2576
|
children: [ie, ae]
|
|
2579
2577
|
}), t[40] = ie, t[41] = ae, t[42] = z) : z = t[42];
|
|
2580
2578
|
let B;
|
|
2581
|
-
t[43] !== n || t[44] !== g || t[45] !== _ || t[46] !== d || t[47] !== o.actions || t[48] !== o.name ? (B = n ? /* @__PURE__ */
|
|
2579
|
+
t[43] !== n || t[44] !== g || t[45] !== _ || t[46] !== d || t[47] !== o.actions || t[48] !== o.name ? (B = n ? /* @__PURE__ */ Z(K, {
|
|
2582
2580
|
width: "tag-editor-commands",
|
|
2583
2581
|
justifyContent: "flex-end",
|
|
2584
|
-
children: /* @__PURE__ */
|
|
2582
|
+
children: /* @__PURE__ */ Z(zi, {
|
|
2585
2583
|
actions: o.actions ?? [],
|
|
2586
2584
|
disabled: _,
|
|
2587
2585
|
label: g,
|
|
@@ -2591,12 +2589,12 @@ var { withProvider: Mi, withContext: Ni } = Ve({ recipe: ae }), Pi = Mi("div", "
|
|
|
2591
2589
|
})
|
|
2592
2590
|
}) : null, t[43] = n, t[44] = g, t[45] = _, t[46] = d, t[47] = o.actions, t[48] = o.name, t[49] = B) : B = t[49];
|
|
2593
2591
|
let V = _ || o.isDefault, oe = `Delete ${o.name}`, H;
|
|
2594
|
-
t[50] === Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */
|
|
2592
|
+
t[50] === Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ Z(J, {
|
|
2595
2593
|
as: St,
|
|
2596
2594
|
boxSize: "icon-xs"
|
|
2597
2595
|
}), t[50] = H) : H = t[50];
|
|
2598
2596
|
let U;
|
|
2599
|
-
t[51] !== p || t[52] !== V || t[53] !== oe ? (U = /* @__PURE__ */
|
|
2597
|
+
t[51] !== p || t[52] !== V || t[53] !== oe ? (U = /* @__PURE__ */ Z(De, {
|
|
2600
2598
|
size: "xs",
|
|
2601
2599
|
variant: "destructive-ghost",
|
|
2602
2600
|
onClick: p,
|
|
@@ -2605,7 +2603,7 @@ var { withProvider: Mi, withContext: Ni } = Ve({ recipe: ae }), Pi = Mi("div", "
|
|
|
2605
2603
|
children: H
|
|
2606
2604
|
}), t[51] = p, t[52] = V, t[53] = oe, t[54] = U) : U = t[54];
|
|
2607
2605
|
let se;
|
|
2608
|
-
return t[55] !== x || t[56] !== L || t[57] !== R || t[58] !== z || t[59] !== B || t[60] !== U || t[61] !== E || t[62] !== D || t[63] !== O || t[64] !== k || t[65] !== A || t[66] !== M ? (se = /* @__PURE__ */
|
|
2606
|
+
return t[55] !== x || t[56] !== L || t[57] !== R || t[58] !== z || t[59] !== B || t[60] !== U || t[61] !== E || t[62] !== D || t[63] !== O || t[64] !== k || t[65] !== A || t[66] !== M ? (se = /* @__PURE__ */ Q(K, {
|
|
2609
2607
|
ref: x,
|
|
2610
2608
|
style: E,
|
|
2611
2609
|
className: "group",
|
|
@@ -2629,10 +2627,10 @@ var { withProvider: Mi, withContext: Ni } = Ve({ recipe: ae }), Pi = Mi("div", "
|
|
|
2629
2627
|
]
|
|
2630
2628
|
}), t[55] = x, t[56] = L, t[57] = R, t[58] = z, t[59] = B, t[60] = U, t[61] = E, t[62] = D, t[63] = O, t[64] = k, t[65] = A, t[66] = M, t[67] = se) : se = t[67], se;
|
|
2631
2629
|
}, Vi = (e) => e.length > 0 ? Math.max(...e.map((e) => e.sortOrder)) + 1 : 0, Hi = (e) => {
|
|
2632
|
-
let t =
|
|
2630
|
+
let t = X(12), { title: n, hasChanges: r, isSaving: i, onTitleChange: a } = e;
|
|
2633
2631
|
if (!a) {
|
|
2634
2632
|
let e;
|
|
2635
|
-
return t[0] !== r || t[1] !== n ? (e = /* @__PURE__ */
|
|
2633
|
+
return t[0] !== r || t[1] !== n ? (e = /* @__PURE__ */ Z(Li, {
|
|
2636
2634
|
hasChanges: r,
|
|
2637
2635
|
children: n
|
|
2638
2636
|
}), t[0] = r, t[1] = n, t[2] = e) : e = t[2], e;
|
|
@@ -2643,16 +2641,16 @@ var { withProvider: Mi, withContext: Ni } = Ve({ recipe: ae }), Pi = Mi("div", "
|
|
|
2643
2641
|
t && t !== n && a(t);
|
|
2644
2642
|
}, t[3] = a, t[4] = n, t[5] = o) : o = t[5];
|
|
2645
2643
|
let s, c;
|
|
2646
|
-
t[6] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */
|
|
2644
|
+
t[6] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ Z(Te.Preview, { textStyle: "label/L/medium" }), c = /* @__PURE__ */ Z(Te.Input, { textStyle: "label/L/medium" }), t[6] = s, t[7] = c) : (s = t[6], c = t[7]);
|
|
2647
2645
|
let l;
|
|
2648
|
-
return t[8] !== i || t[9] !== o || t[10] !== n ? (l = /* @__PURE__ */
|
|
2646
|
+
return t[8] !== i || t[9] !== o || t[10] !== n ? (l = /* @__PURE__ */ Q(Te.Root, {
|
|
2649
2647
|
defaultValue: n,
|
|
2650
2648
|
disabled: i,
|
|
2651
2649
|
selectOnFocus: !0,
|
|
2652
2650
|
onValueCommit: o,
|
|
2653
2651
|
children: [s, c]
|
|
2654
2652
|
}, n), t[8] = i, t[9] = o, t[10] = n, t[11] = l) : l = t[11], l;
|
|
2655
|
-
}, Ui =
|
|
2653
|
+
}, Ui = Ve("button", { base: {
|
|
2656
2654
|
display: "flex",
|
|
2657
2655
|
alignItems: "center",
|
|
2658
2656
|
gap: "xs",
|
|
@@ -2674,13 +2672,13 @@ var { withProvider: Mi, withContext: Ni } = Ve({ recipe: ae }), Pi = Mi("div", "
|
|
|
2674
2672
|
}
|
|
2675
2673
|
}
|
|
2676
2674
|
} }), Wi = (e) => {
|
|
2677
|
-
let t =
|
|
2678
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */
|
|
2675
|
+
let t = X(9), { valueLabel: n, actionsLabel: r } = e, i;
|
|
2676
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ Z(K, {
|
|
2679
2677
|
width: "tag-editor-lead",
|
|
2680
2678
|
flexShrink: "0"
|
|
2681
2679
|
}), t[0] = i) : i = t[0];
|
|
2682
2680
|
let a;
|
|
2683
|
-
t[1] === n ? a = t[2] : (a = /* @__PURE__ */
|
|
2681
|
+
t[1] === n ? a = t[2] : (a = /* @__PURE__ */ Z(Y, {
|
|
2684
2682
|
flex: "1",
|
|
2685
2683
|
minWidth: "0",
|
|
2686
2684
|
textStyle: "label/XS/caps",
|
|
@@ -2688,7 +2686,7 @@ var { withProvider: Mi, withContext: Ni } = Ve({ recipe: ae }), Pi = Mi("div", "
|
|
|
2688
2686
|
children: n
|
|
2689
2687
|
}), t[1] = n, t[2] = a);
|
|
2690
2688
|
let o;
|
|
2691
|
-
t[3] === r ? o = t[4] : (o = r ? /* @__PURE__ */
|
|
2689
|
+
t[3] === r ? o = t[4] : (o = r ? /* @__PURE__ */ Z(Y, {
|
|
2692
2690
|
width: "tag-editor-commands",
|
|
2693
2691
|
textAlign: "right",
|
|
2694
2692
|
textStyle: "label/XS/caps",
|
|
@@ -2696,12 +2694,12 @@ var { withProvider: Mi, withContext: Ni } = Ve({ recipe: ae }), Pi = Mi("div", "
|
|
|
2696
2694
|
children: r
|
|
2697
2695
|
}) : null, t[3] = r, t[4] = o);
|
|
2698
2696
|
let s;
|
|
2699
|
-
t[5] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */
|
|
2697
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ Z(K, {
|
|
2700
2698
|
width: "tag-editor-trailing",
|
|
2701
2699
|
flexShrink: "0"
|
|
2702
2700
|
}), t[5] = s) : s = t[5];
|
|
2703
2701
|
let c;
|
|
2704
|
-
return t[6] !== a || t[7] !== o ? (c = /* @__PURE__ */
|
|
2702
|
+
return t[6] !== a || t[7] !== o ? (c = /* @__PURE__ */ Q(K, {
|
|
2705
2703
|
alignItems: "center",
|
|
2706
2704
|
gap: "compact",
|
|
2707
2705
|
paddingInline: "xs",
|
|
@@ -2717,23 +2715,23 @@ var { withProvider: Mi, withContext: Ni } = Ve({ recipe: ae }), Pi = Mi("div", "
|
|
|
2717
2715
|
]
|
|
2718
2716
|
}), t[6] = a, t[7] = o, t[8] = c) : c = t[8], c;
|
|
2719
2717
|
}, Gi = (e) => {
|
|
2720
|
-
let t =
|
|
2718
|
+
let t = X(22), { label: n, values: r, disabled: i, onSelect: a } = e, o;
|
|
2721
2719
|
t[0] === r ? o = t[1] : (o = r.find(qi), t[0] = r, t[1] = o);
|
|
2722
2720
|
let s = o, c;
|
|
2723
|
-
t[2] === n ? c = t[3] : (c = /* @__PURE__ */
|
|
2721
|
+
t[2] === n ? c = t[3] : (c = /* @__PURE__ */ Z(Y, {
|
|
2724
2722
|
textStyle: "paragraph/S/regular",
|
|
2725
2723
|
color: "fg.muted",
|
|
2726
2724
|
children: n
|
|
2727
2725
|
}), t[2] = n, t[3] = c);
|
|
2728
2726
|
let l = s?.name ?? "None", u;
|
|
2729
|
-
t[4] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */
|
|
2727
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ Z(J, {
|
|
2730
2728
|
as: ct,
|
|
2731
2729
|
boxSize: "icon-2xs"
|
|
2732
2730
|
}), t[4] = u) : u = t[4];
|
|
2733
2731
|
let d;
|
|
2734
|
-
t[5] !== i || t[6] !== n || t[7] !== l ? (d = /* @__PURE__ */
|
|
2732
|
+
t[5] !== i || t[6] !== n || t[7] !== l ? (d = /* @__PURE__ */ Z(je.Trigger, {
|
|
2735
2733
|
asChild: !0,
|
|
2736
|
-
children: /* @__PURE__ */
|
|
2734
|
+
children: /* @__PURE__ */ Q(be, {
|
|
2737
2735
|
size: "2xs",
|
|
2738
2736
|
variant: "ghost",
|
|
2739
2737
|
gap: "xs",
|
|
@@ -2745,16 +2743,16 @@ var { withProvider: Mi, withContext: Ni } = Ve({ recipe: ae }), Pi = Mi("div", "
|
|
|
2745
2743
|
let f;
|
|
2746
2744
|
if (t[9] !== a || t[10] !== r) {
|
|
2747
2745
|
let e;
|
|
2748
|
-
t[12] === a ? e = t[13] : (e = (e) => /* @__PURE__ */
|
|
2746
|
+
t[12] === a ? e = t[13] : (e = (e) => /* @__PURE__ */ Z(je.Item, {
|
|
2749
2747
|
value: e.id,
|
|
2750
2748
|
asChild: !0,
|
|
2751
|
-
children: /* @__PURE__ */
|
|
2749
|
+
children: /* @__PURE__ */ Z(h, {
|
|
2752
2750
|
asChild: !0,
|
|
2753
2751
|
variant: "full-width",
|
|
2754
2752
|
id: e.id,
|
|
2755
2753
|
label: e.name,
|
|
2756
2754
|
isSelected: e.isDefault,
|
|
2757
|
-
endContent: e.isDefault ? /* @__PURE__ */
|
|
2755
|
+
endContent: e.isDefault ? /* @__PURE__ */ Z(J, {
|
|
2758
2756
|
as: st,
|
|
2759
2757
|
boxSize: "icon-xs"
|
|
2760
2758
|
}) : void 0,
|
|
@@ -2763,15 +2761,15 @@ var { withProvider: Mi, withContext: Ni } = Ve({ recipe: ae }), Pi = Mi("div", "
|
|
|
2763
2761
|
}, e.id), t[12] = a, t[13] = e), f = r.map(e), t[9] = a, t[10] = r, t[11] = f;
|
|
2764
2762
|
} else f = t[11];
|
|
2765
2763
|
let p;
|
|
2766
|
-
t[14] === f ? p = t[15] : (p = /* @__PURE__ */
|
|
2764
|
+
t[14] === f ? p = t[15] : (p = /* @__PURE__ */ Z(je.Positioner, { children: /* @__PURE__ */ Z(je.Content, {
|
|
2767
2765
|
minW: "tag-action-menu",
|
|
2768
2766
|
bg: "bg",
|
|
2769
2767
|
children: f
|
|
2770
2768
|
}) }), t[14] = f, t[15] = p);
|
|
2771
2769
|
let m;
|
|
2772
|
-
t[16] !== d || t[17] !== p ? (m = /* @__PURE__ */
|
|
2770
|
+
t[16] !== d || t[17] !== p ? (m = /* @__PURE__ */ Q(je.Root, { children: [d, p] }), t[16] = d, t[17] = p, t[18] = m) : m = t[18];
|
|
2773
2771
|
let g;
|
|
2774
|
-
return t[19] !== c || t[20] !== m ? (g = /* @__PURE__ */
|
|
2772
|
+
return t[19] !== c || t[20] !== m ? (g = /* @__PURE__ */ Q(K, {
|
|
2775
2773
|
alignItems: "center",
|
|
2776
2774
|
gap: "sm",
|
|
2777
2775
|
paddingInline: "xs",
|
|
@@ -2782,46 +2780,46 @@ var { withProvider: Mi, withContext: Ni } = Ve({ recipe: ae }), Pi = Mi("div", "
|
|
|
2782
2780
|
children: [c, m]
|
|
2783
2781
|
}), t[19] = c, t[20] = m, t[21] = g) : g = t[21], g;
|
|
2784
2782
|
}, Ki = (e) => {
|
|
2785
|
-
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] =
|
|
2783
|
+
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 = kt(Ot(Et, { activationConstraint: { distance: 5 } })), M = (e, t) => {
|
|
2786
2784
|
let n = [...i];
|
|
2787
2785
|
n[e] = {
|
|
2788
2786
|
...n[e],
|
|
2789
2787
|
...t
|
|
2790
2788
|
}, a(n);
|
|
2791
2789
|
};
|
|
2792
|
-
return /* @__PURE__ */
|
|
2790
|
+
return /* @__PURE__ */ Q(Je, { children: [/* @__PURE__ */ Q(Le, {
|
|
2793
2791
|
gap: "2xs",
|
|
2794
|
-
children: [t || r ? /* @__PURE__ */
|
|
2792
|
+
children: [t || r ? /* @__PURE__ */ Q(K, {
|
|
2795
2793
|
minHeight: "tag-editor-row",
|
|
2796
2794
|
alignItems: "center",
|
|
2797
2795
|
justifyContent: "space-between",
|
|
2798
2796
|
gap: "xs",
|
|
2799
|
-
children: [/* @__PURE__ */
|
|
2797
|
+
children: [/* @__PURE__ */ Q(Le, {
|
|
2800
2798
|
gap: "3xs",
|
|
2801
2799
|
minWidth: "0",
|
|
2802
|
-
children: [t ? /* @__PURE__ */
|
|
2800
|
+
children: [t ? /* @__PURE__ */ Z(Hi, {
|
|
2803
2801
|
title: t,
|
|
2804
2802
|
hasChanges: l,
|
|
2805
2803
|
isSaving: u,
|
|
2806
2804
|
onTitleChange: c
|
|
2807
|
-
}) : null, n ? /* @__PURE__ */
|
|
2805
|
+
}) : null, n ? /* @__PURE__ */ Z(Y, {
|
|
2808
2806
|
textStyle: "paragraph/S/regular",
|
|
2809
2807
|
color: "fg.muted",
|
|
2810
2808
|
children: n
|
|
2811
2809
|
}) : null]
|
|
2812
2810
|
}), r]
|
|
2813
|
-
}) : null, /* @__PURE__ */
|
|
2811
|
+
}) : null, /* @__PURE__ */ Q(Le, {
|
|
2814
2812
|
gap: "none",
|
|
2815
2813
|
borderWidth: E ? "1px" : void 0,
|
|
2816
2814
|
borderColor: E ? "border.subtle" : void 0,
|
|
2817
2815
|
borderRadius: E ? "md" : void 0,
|
|
2818
2816
|
overflow: E ? "hidden" : void 0,
|
|
2819
2817
|
children: [
|
|
2820
|
-
D ? /* @__PURE__ */
|
|
2818
|
+
D ? /* @__PURE__ */ Z(Wi, {
|
|
2821
2819
|
valueLabel: O,
|
|
2822
2820
|
actionsLabel: m ? h : void 0
|
|
2823
2821
|
}) : null,
|
|
2824
|
-
/* @__PURE__ */
|
|
2822
|
+
/* @__PURE__ */ Z(wt, {
|
|
2825
2823
|
sensors: j,
|
|
2826
2824
|
collisionDetection: Dt,
|
|
2827
2825
|
onDragEnd: d ? void 0 : (e) => {
|
|
@@ -2833,10 +2831,10 @@ var { withProvider: Mi, withContext: Ni } = Ve({ recipe: ae }), Pi = Mi("div", "
|
|
|
2833
2831
|
sortOrder: t
|
|
2834
2832
|
})));
|
|
2835
2833
|
},
|
|
2836
|
-
children: /* @__PURE__ */
|
|
2834
|
+
children: /* @__PURE__ */ Z(At, {
|
|
2837
2835
|
items: i.map((e) => e.id),
|
|
2838
2836
|
strategy: Ft,
|
|
2839
|
-
children: i.map((e, t) => /* @__PURE__ */
|
|
2837
|
+
children: i.map((e, t) => /* @__PURE__ */ Z(Bi, {
|
|
2840
2838
|
value: e,
|
|
2841
2839
|
isSaving: u,
|
|
2842
2840
|
readOnly: d,
|
|
@@ -2854,7 +2852,7 @@ var { withProvider: Mi, withContext: Ni } = Ve({ recipe: ae }), Pi = Mi("div", "
|
|
|
2854
2852
|
}, e.id))
|
|
2855
2853
|
})
|
|
2856
2854
|
}),
|
|
2857
|
-
d ? null : /* @__PURE__ */
|
|
2855
|
+
d ? null : /* @__PURE__ */ Q(Ui, {
|
|
2858
2856
|
type: "button",
|
|
2859
2857
|
disabled: u,
|
|
2860
2858
|
onClick: () => {
|
|
@@ -2867,15 +2865,15 @@ var { withProvider: Mi, withContext: Ni } = Ve({ recipe: ae }), Pi = Mi("div", "
|
|
|
2867
2865
|
isNew: !0
|
|
2868
2866
|
}]);
|
|
2869
2867
|
},
|
|
2870
|
-
children: [/* @__PURE__ */
|
|
2868
|
+
children: [/* @__PURE__ */ Z(J, {
|
|
2871
2869
|
as: yt,
|
|
2872
2870
|
boxSize: "icon-xs"
|
|
2873
|
-
}), /* @__PURE__ */
|
|
2871
|
+
}), /* @__PURE__ */ Z(Y, {
|
|
2874
2872
|
textStyle: "paragraph/S/regular",
|
|
2875
2873
|
children: f
|
|
2876
2874
|
})]
|
|
2877
2875
|
}),
|
|
2878
|
-
w && i.length > 0 ? /* @__PURE__ */
|
|
2876
|
+
w && i.length > 0 ? /* @__PURE__ */ Z(Gi, {
|
|
2879
2877
|
label: g,
|
|
2880
2878
|
values: i,
|
|
2881
2879
|
disabled: u || d,
|
|
@@ -2883,7 +2881,7 @@ var { withProvider: Mi, withContext: Ni } = Ve({ recipe: ae }), Pi = Mi("div", "
|
|
|
2883
2881
|
}) : null
|
|
2884
2882
|
]
|
|
2885
2883
|
})]
|
|
2886
|
-
}), /* @__PURE__ */
|
|
2884
|
+
}), /* @__PURE__ */ Z(qn, {
|
|
2887
2885
|
open: !!k,
|
|
2888
2886
|
onClose: () => A(null),
|
|
2889
2887
|
onDelete: () => {
|
|
@@ -2900,8 +2898,8 @@ function qi(e) {
|
|
|
2900
2898
|
//#endregion
|
|
2901
2899
|
//#region src/components/tag-editor/tag-editor-save-bar.tsx
|
|
2902
2900
|
var Ji = (e) => {
|
|
2903
|
-
let t =
|
|
2904
|
-
t[0] !== i || t[1] !== a || t[2] !== r || t[3] !== c ? (u = i ? /* @__PURE__ */
|
|
2901
|
+
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;
|
|
2902
|
+
t[0] !== i || t[1] !== a || t[2] !== r || t[3] !== c ? (u = i ? /* @__PURE__ */ Z(be, {
|
|
2905
2903
|
size: "sm",
|
|
2906
2904
|
variant: "ghost",
|
|
2907
2905
|
onClick: r,
|
|
@@ -2909,7 +2907,7 @@ var Ji = (e) => {
|
|
|
2909
2907
|
children: c
|
|
2910
2908
|
}) : null, t[0] = i, t[1] = a, t[2] = r, t[3] = c, t[4] = u) : u = t[4];
|
|
2911
2909
|
let d = !i, f;
|
|
2912
|
-
t[5] !== a || t[6] !== n || t[7] !== l || t[8] !== d ? (f = /* @__PURE__ */
|
|
2910
|
+
t[5] !== a || t[6] !== n || t[7] !== l || t[8] !== d ? (f = /* @__PURE__ */ Z(be, {
|
|
2913
2911
|
size: "sm",
|
|
2914
2912
|
variant: "primary",
|
|
2915
2913
|
onClick: n,
|
|
@@ -2918,7 +2916,7 @@ var Ji = (e) => {
|
|
|
2918
2916
|
children: l
|
|
2919
2917
|
}), t[5] = a, t[6] = n, t[7] = l, t[8] = d, t[9] = f) : f = t[9];
|
|
2920
2918
|
let p;
|
|
2921
|
-
return t[10] !== u || t[11] !== f ? (p = /* @__PURE__ */
|
|
2919
|
+
return t[10] !== u || t[11] !== f ? (p = /* @__PURE__ */ Q(q, {
|
|
2922
2920
|
gap: "xs",
|
|
2923
2921
|
children: [u, f]
|
|
2924
2922
|
}), t[10] = u, t[11] = f, t[12] = p) : p = t[12], p;
|
|
@@ -2927,8 +2925,8 @@ var Ji = (e) => {
|
|
|
2927
2925
|
let n = Zi(e, t);
|
|
2928
2926
|
return !n || r(n, t) || t.sortOrder !== n.sortOrder;
|
|
2929
2927
|
}), $i = (e) => e instanceof Error ? e.message : e ? String(e) : null, ea = (e) => {
|
|
2930
|
-
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] =
|
|
2931
|
-
|
|
2928
|
+
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 ?? [];
|
|
2929
|
+
tt(() => {
|
|
2932
2930
|
a && m(Xi(a, u));
|
|
2933
2931
|
}, [a, u]);
|
|
2934
2932
|
let S = async () => {
|
|
@@ -2949,27 +2947,27 @@ var Ji = (e) => {
|
|
|
2949
2947
|
}, E = () => {
|
|
2950
2948
|
m(Xi(x, u)), g(/* @__PURE__ */ new Set()), b(null);
|
|
2951
2949
|
};
|
|
2952
|
-
return /* @__PURE__ */
|
|
2950
|
+
return /* @__PURE__ */ Q(Le, {
|
|
2953
2951
|
boxSizing: "border-box",
|
|
2954
2952
|
minH: "100%",
|
|
2955
2953
|
p: "lg",
|
|
2956
2954
|
gap: "lg",
|
|
2957
2955
|
bg: "bg",
|
|
2958
2956
|
color: "fg",
|
|
2959
|
-
children: [w ? /* @__PURE__ */
|
|
2957
|
+
children: [w ? /* @__PURE__ */ Z(c, {
|
|
2960
2958
|
status: "error",
|
|
2961
2959
|
colorPalette: "red",
|
|
2962
2960
|
title: t,
|
|
2963
2961
|
size: "sm",
|
|
2964
2962
|
children: w
|
|
2965
|
-
}) : null, a === void 0 ? /* @__PURE__ */
|
|
2963
|
+
}) : null, a === void 0 ? /* @__PURE__ */ Q(q, {
|
|
2966
2964
|
gap: "sm",
|
|
2967
2965
|
color: "fg.muted",
|
|
2968
|
-
children: [/* @__PURE__ */
|
|
2966
|
+
children: [/* @__PURE__ */ Z(Ie, { size: "sm" }), /* @__PURE__ */ Z(Y, {
|
|
2969
2967
|
textStyle: "paragraph/S/regular",
|
|
2970
2968
|
children: n
|
|
2971
2969
|
})]
|
|
2972
|
-
}) : /* @__PURE__ */
|
|
2970
|
+
}) : /* @__PURE__ */ Z(Ki, {
|
|
2973
2971
|
...f,
|
|
2974
2972
|
readOnly: l,
|
|
2975
2973
|
values: p,
|
|
@@ -2981,7 +2979,7 @@ var Ji = (e) => {
|
|
|
2981
2979
|
}))) : f.onSetDefault,
|
|
2982
2980
|
hasChanges: C,
|
|
2983
2981
|
isSaving: _,
|
|
2984
|
-
headerActions: l ? void 0 : /* @__PURE__ */
|
|
2982
|
+
headerActions: l ? void 0 : /* @__PURE__ */ Z(Ji, {
|
|
2985
2983
|
hasChanges: C,
|
|
2986
2984
|
isSaving: _,
|
|
2987
2985
|
resetLabel: r,
|
|
@@ -3073,7 +3071,7 @@ var Ji = (e) => {
|
|
|
3073
3071
|
storageKey: e,
|
|
3074
3072
|
storage: t
|
|
3075
3073
|
})), la = (e, t) => {
|
|
3076
|
-
let n =
|
|
3074
|
+
let n = X(3), r = B(), i;
|
|
3077
3075
|
return n[0] !== e || n[1] !== r ? (i = ca(e, r), n[0] = e, n[1] = r, n[2] = i) : i = n[2], It(i, t);
|
|
3078
3076
|
}, ua = (e, t) => {
|
|
3079
3077
|
let n = t.filter((e) => e.canReorder !== !1), r = 0, i = e.map((e) => e.canReorder === !1 ? e : n[r++]).filter((e) => !!e);
|
|
@@ -3181,7 +3179,7 @@ var Ji = (e) => {
|
|
|
3181
3179
|
storageKey: e,
|
|
3182
3180
|
storage: t
|
|
3183
3181
|
})), Ca = (e, t) => {
|
|
3184
|
-
let n =
|
|
3182
|
+
let n = X(3), r = B(), i;
|
|
3185
3183
|
return n[0] !== e || n[1] !== r ? (i = Sa(e, r), n[0] = e, n[1] = r, n[2] = i) : i = n[2], It(i, t);
|
|
3186
3184
|
}, wa = [], Ta = (e, t) => typeof e == "string" && t.some((t) => t.id === e), Ea = (e) => {
|
|
3187
3185
|
let t = e.toLowerCase().split("."), n = [];
|
|
@@ -3233,14 +3231,14 @@ var Ji = (e) => {
|
|
|
3233
3231
|
n || (n = document.createElement("style"), n.setAttribute(ja, ""), document.head.appendChild(n));
|
|
3234
3232
|
let r = t.find((t) => t.id === e);
|
|
3235
3233
|
n.textContent = (r?.fonts ?? []).map(Ma).join("\n\n");
|
|
3236
|
-
}, Pa = "file-icon-theme-preference", Fa = (e) => e.find((e) => e.id.endsWith(".seti"))?.id ?? e[0]?.id ?? null, Ia =
|
|
3234
|
+
}, Pa = "file-icon-theme-preference", Fa = (e) => e.find((e) => e.id.endsWith(".seti"))?.id ?? e[0]?.id ?? null, Ia = Qe(null), La = (e) => {
|
|
3237
3235
|
if (typeof window > "u") return Fa(e);
|
|
3238
3236
|
let t = re().getItem(Pa);
|
|
3239
3237
|
return Ta(t, e) ? t : Fa(e);
|
|
3240
3238
|
}, Ra = (e) => {
|
|
3241
|
-
let t =
|
|
3239
|
+
let t = X(18), { children: n, themePreferences: r } = e, i = r === void 0 ? wa : r, a;
|
|
3242
3240
|
t[0] === i ? a = t[1] : (a = () => La(i), t[0] = i, t[1] = a);
|
|
3243
|
-
let [o, s] =
|
|
3241
|
+
let [o, s] = $(a), c, l;
|
|
3244
3242
|
t[2] !== o || t[3] !== i ? (c = () => {
|
|
3245
3243
|
let e = Ta(o, i) ? o : Fa(i);
|
|
3246
3244
|
if (e !== o) {
|
|
@@ -3248,7 +3246,7 @@ var Ji = (e) => {
|
|
|
3248
3246
|
return;
|
|
3249
3247
|
}
|
|
3250
3248
|
Na(e, i), typeof window < "u" && e && re().setItem(Pa, e);
|
|
3251
|
-
}, l = [o, i], t[2] = o, t[3] = i, t[4] = c, t[5] = l) : (c = t[4], l = t[5]),
|
|
3249
|
+
}, l = [o, i], t[2] = o, t[3] = i, t[4] = c, t[5] = l) : (c = t[4], l = t[5]), tt(c, l);
|
|
3252
3250
|
let u;
|
|
3253
3251
|
if (t[6] !== o || t[7] !== i) {
|
|
3254
3252
|
let e;
|
|
@@ -3262,12 +3260,12 @@ var Ji = (e) => {
|
|
|
3262
3260
|
setFileIconThemePreference: s
|
|
3263
3261
|
}, t[11] = d, t[12] = o, t[13] = i, t[14] = f) : f = t[14];
|
|
3264
3262
|
let p;
|
|
3265
|
-
return t[15] !== n || t[16] !== f ? (p = /* @__PURE__ */
|
|
3263
|
+
return t[15] !== n || t[16] !== f ? (p = /* @__PURE__ */ Z(Ia, {
|
|
3266
3264
|
value: f,
|
|
3267
3265
|
children: n
|
|
3268
3266
|
}), t[15] = n, t[16] = f, t[17] = p) : p = t[17], p;
|
|
3269
3267
|
}, za = () => {
|
|
3270
|
-
let e =
|
|
3268
|
+
let e = et(Ia);
|
|
3271
3269
|
if (!e) throw Error("useFileIconThemePreference must be used within a FileIconThemePreferenceProvider");
|
|
3272
3270
|
return e;
|
|
3273
3271
|
}, Ba = (e, t = {}) => {
|
|
@@ -3280,17 +3278,17 @@ var Ji = (e) => {
|
|
|
3280
3278
|
lineHeight: 1,
|
|
3281
3279
|
display: "inline-flex"
|
|
3282
3280
|
};
|
|
3283
|
-
return /* @__PURE__ */
|
|
3281
|
+
return /* @__PURE__ */ Z("span", {
|
|
3284
3282
|
"aria-hidden": "true",
|
|
3285
3283
|
style: e,
|
|
3286
3284
|
children: a.fontCharacter
|
|
3287
3285
|
});
|
|
3288
3286
|
}
|
|
3289
|
-
if (n) return /* @__PURE__ */
|
|
3287
|
+
if (n) return /* @__PURE__ */ Z(ft, { size: i });
|
|
3290
3288
|
let o = x(e);
|
|
3291
|
-
return /* @__PURE__ */
|
|
3289
|
+
return /* @__PURE__ */ Z(o, { size: i });
|
|
3292
3290
|
};
|
|
3293
3291
|
//#endregion
|
|
3294
|
-
export { Ht as Activity, r as ActivityAvatar, s as ActivityComment, Vt as ActivityComposer, a as ActivityEvent, o as ActivityFeed, n as ActivityHeader, t as ActivityReply, e as ActivityRoot, i as ActivityTimeline, c as AlertMessage, Hn as AttachedMenu, Wn as AttachedPanel, E as AttachmentChip, nr as Breadcrumb, Gn as BubbleButton, Kn as BubblePanel,
|
|
3292
|
+
export { Ht as Activity, r as ActivityAvatar, s as ActivityComment, Vt as ActivityComposer, a as ActivityEvent, o as ActivityFeed, n as ActivityHeader, t as ActivityReply, e as ActivityRoot, i as ActivityTimeline, c as AlertMessage, Hn as AttachedMenu, Wn as AttachedPanel, E as AttachmentChip, nr as Breadcrumb, Gn as BubbleButton, Kn as BubblePanel, Se as ChakraProvider, d as Checkbox, w as Chip, ir as ContentPlaceholder, ar as ContentPlaceholderLabel, or as CopyButton, Ut as DEFAULT_PALETTE_ASSET_LIMIT, qn as DeleteConfirmationModal, P as DropIndicator, F as EmptyState, sr as ErrorBoundary, Ra as FileIconThemePreferenceProvider, Jn as FolderPicker, Yn as FolderPickerDialog, m as Header, Sn as HorizontalMenuStack, H as HostStorageProvider, mr as IconColorPicker, _r as IntegrationCard, Cn as ItemSection, h as ListRow, zn as NotificationCenter, En as PANEL_HEADER_CONTROL_SIZE, Tn as PANEL_HEADER_HEIGHT, Dn as PANEL_HEADER_TAB_SIZE, cn as Palette, yn as PaletteShortcut, ne as Radio, te as RadioGroup, y as ResizableSplitLayout, f as ResourceActionMenu, S as ResourceBadge, g as ResourceContextMenu, u as ScrollArea, on as SearchModalContent, p as SearchableMenu, Cr as SegmentedControl, A as SessionIndicator, Wr as Sidenav, hr as SimpleCard, gr as SimpleCardBody, T as Slider, C as Switch, Ki as TagEditor, Li as TagEditorHeading, Ji as TagEditorSaveBar, ea as TagSettingsPanel, ur as TagSwatch, ge as ThemePreferenceProvider, Tr as Toaster, l as Tooltip, b as TreeList, v as TreeListDragProvider, ki as WindowTabs, Ii as WindowTitleBar, N as WorkspaceBadge, Na as applyFileIconThemePreference, ue as applyThemePreference, fa as applyTreeListOrder, bi as buildTabVisibilityMenuActions, vi as buildTreeVisibilityMenuActions, I as createGlyphIcon, se as createMonacoThemeFromVsCodeTheme, U as createThemePreferenceFromVsCodeTheme, wa as defaultFileIconThemePreferences, ce as defaultThemePreferences, Yt as filterPaletteEntries, pi as filterVisibleNodes, mi as filterVisibleSections, yi as filterVisibleTabs, x as getFileTypeIcon, R as getIconComponent, fe as getInitialThemePreference, oi as getTabVisibilityStore, pe as getThemePreferenceClassName, he as getThemePreferenceClassNames, le as getThemePreferenceMode, ca as getTreeListOrderStore, Sa as getTreeListVisibilityStore, j as handleDialogAcceptShortcut, D as installPrismGlobal, Ta as isFileIconThemePreference, de as isThemePreference, L as optionColors, ee as optionIcons, z as psTheme, Ba as resolveFileIconElement, Aa as resolveFileIconGlyph, M as resolveSessionIndicatorColor, k as resolveSessionIndicatorIcon, li as resolveVisibility, O as sessionCompletionStatuses, wr as toaster, za as useFileIconThemePreference, Ir as useSidenavStore, si as useTabVisibilityStore, me as useThemePreference, la as useTreeListOrderStore, Ca as useTreeListVisibilityStore };
|
|
3295
3293
|
|
|
3296
3294
|
//# sourceMappingURL=index.js.map
|