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