@pstdio/ui 0.16.0 → 0.17.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/chat-ui.js +1618 -1102
- package/dist/chat-ui.js.map +1 -1
- package/dist/{checkbox-D5AzFRlb.js → checkbox-B2zYVemL.js} +28 -28
- package/dist/checkbox-B2zYVemL.js.map +1 -0
- package/dist/components/chat-ui/components/chat-input-actions.d.ts +1 -0
- package/dist/components/chat-ui/components/chat-input.d.ts +8 -2
- package/dist/components/chat-ui/components/chat-panel.d.ts +11 -5
- package/dist/components/chat-ui/components/composer-constants.d.ts +1 -0
- package/dist/components/chat-ui/components/conversation-browse.d.ts +22 -0
- package/dist/components/chat-ui/components/message-types.d.ts +14 -0
- package/dist/components/chat-ui/components/queued-follow-up-list-state.d.ts +4 -0
- package/dist/components/chat-ui/components/queued-follow-up-list.d.ts +11 -0
- package/dist/components/chat-ui/components/timeline.d.ts +5 -0
- package/dist/components/chat-ui/components/working-indicator.d.ts +9 -0
- package/dist/components/chat-ui/components/workspace-hub.d.ts +8 -1
- package/dist/components/chat-ui/index.d.ts +4 -2
- package/dist/components/chat-ui/tool-rendering/build-timeline.d.ts +2 -2
- package/dist/components/chat-ui/tool-rendering/question-prompt.d.ts +9 -0
- package/dist/components/data-table/build-columns.d.ts +13 -2
- package/dist/components/data-table/categorical-color-cell.d.ts +8 -0
- package/dist/components/data-table/color-cell-style.d.ts +13 -0
- package/dist/components/data-table/color-scale-cell.d.ts +7 -0
- package/dist/components/data-table/data-table-column-menu.d.ts +12 -0
- package/dist/components/data-table/data-table-header.d.ts +18 -0
- package/dist/components/data-table/data-table-stat-chart.d.ts +21 -0
- package/dist/components/data-table/data-table-state.d.ts +27 -0
- package/dist/components/data-table/data-table-stats-row.d.ts +11 -0
- package/dist/components/data-table/data-table-stats.d.ts +19 -0
- package/dist/components/data-table/data-table-table-parts.d.ts +21 -0
- package/dist/components/data-table/data-table.story-descriptions.d.ts +6 -0
- package/dist/components/data-table/data-table.story-fixtures.d.ts +6 -0
- package/dist/components/data-table/friendly-json-display.d.ts +31 -0
- package/dist/components/data-table/index.d.ts +3 -1
- package/dist/components/data-table/json-cell.d.ts +6 -0
- package/dist/components/data-table/pagination-footer.d.ts +4 -1
- package/dist/components/data-table/selection-toolbar.d.ts +3 -1
- package/dist/components/data-table/types.d.ts +72 -0
- package/dist/components/{data-renderer → kanban-renderer}/display-menu.d.ts +4 -4
- package/dist/components/{data-renderer → kanban-renderer}/filter-menu.d.ts +3 -3
- package/dist/components/kanban-renderer/index.d.ts +19 -0
- package/dist/components/kanban-renderer/kanban-renderer-attribute-badge.d.ts +7 -0
- package/dist/components/{data-renderer/data-renderer-board-column-header.d.ts → kanban-renderer/kanban-renderer-board-column-header.d.ts} +2 -2
- package/dist/components/{data-renderer/data-renderer-board-group-section.d.ts → kanban-renderer/kanban-renderer-board-group-section.d.ts} +2 -2
- package/dist/components/{data-renderer/data-renderer-board-move.d.ts → kanban-renderer/kanban-renderer-board-move.d.ts} +3 -3
- package/dist/components/{data-renderer/data-renderer-board.d.ts → kanban-renderer/kanban-renderer-board.d.ts} +15 -14
- package/dist/components/{data-renderer/data-renderer-card.d.ts → kanban-renderer/kanban-renderer-card.d.ts} +4 -3
- package/dist/components/{data-renderer/data-renderer-content.d.ts → kanban-renderer/kanban-renderer-content.d.ts} +8 -8
- package/dist/components/kanban-renderer/kanban-renderer-create-dialog.d.ts +12 -0
- package/dist/components/kanban-renderer/kanban-renderer-create-field.d.ts +10 -0
- package/dist/components/kanban-renderer/kanban-renderer-grouping.d.ts +23 -0
- package/dist/components/{data-renderer/data-renderer-helpers.d.ts → kanban-renderer/kanban-renderer-helpers.d.ts} +15 -15
- package/dist/components/kanban-renderer/kanban-renderer-list-items.d.ts +25 -0
- package/dist/components/kanban-renderer/kanban-renderer-list.d.ts +43 -0
- package/dist/components/{data-renderer/data-renderer-story-fixtures.d.ts → kanban-renderer/kanban-renderer-story-fixtures.d.ts} +3 -2
- package/dist/components/kanban-renderer/kanban-renderer-toolbar.d.ts +15 -0
- package/dist/components/kanban-renderer/kanban-renderer-view-bar.d.ts +14 -0
- package/dist/components/kanban-renderer/kanban-renderer-views.d.ts +12 -0
- package/dist/components/{data-renderer/data-renderer.d.ts → kanban-renderer/kanban-renderer.d.ts} +11 -8
- package/dist/components/{data-renderer → kanban-renderer}/types.d.ts +51 -8
- package/dist/components/kanban-renderer/use-kanban-renderer-store.d.ts +78 -0
- package/dist/components/layout/index.d.ts +1 -0
- package/dist/components/layout/panel-header.constants.d.ts +2 -0
- package/dist/components/layout/resizable-split-layout.d.ts +3 -2
- package/dist/components/layout/resizable-split-layout.geometry.d.ts +56 -0
- package/dist/components/layout/resizable-split-layout.handle.d.ts +6 -2
- package/dist/components/layout/resizable-split-layout.panels.d.ts +25 -0
- package/dist/components/list-row/list-row-actions.d.ts +1 -0
- package/dist/components/list-row/list-row-content.d.ts +7 -0
- package/dist/components/list-row/list-row.types.d.ts +4 -1
- package/dist/components/overlays/attached-menu.d.ts +6 -0
- package/dist/components/overlays/attachment-chip.d.ts +13 -0
- package/dist/components/overlays/index.d.ts +6 -2
- package/dist/components/overlays/resource-context-menu.d.ts +13 -1
- package/dist/components/param-editor/index.d.ts +2 -1
- package/dist/components/param-editor/inputs/selection-input.d.ts +6 -6
- package/dist/components/param-editor/inputs/selection-menu.d.ts +29 -0
- package/dist/components/param-editor/param-editor-horizontal.d.ts +1 -0
- package/dist/components/param-editor/param-editor-read-only-field.d.ts +9 -0
- package/dist/components/param-editor/param-editor-section.d.ts +1 -0
- package/dist/components/param-editor/param-editor.d.ts +1 -0
- package/dist/components/param-editor/param-editor.types.d.ts +35 -6
- package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/ReferenceMenuPlugin.d.ts +2 -1
- package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/hooks/useContextLookup.d.ts +2 -1
- package/dist/components/rich-text/prompt-input/plugins/ReferencePlugin/ReferencePlugin.d.ts +2 -1
- package/dist/components/rich-text/prompt-input/prompt-input.d.ts +3 -2
- package/dist/components/rich-text/types.d.ts +1 -1
- package/dist/components/{sidebar/sidebar-footer.d.ts → sidenav/sidenav-footer.d.ts} +2 -2
- package/dist/components/{sidebar/sidebar-header.d.ts → sidenav/sidenav-header.d.ts} +2 -2
- package/dist/components/sidenav/sidenav.d.ts +2 -0
- package/dist/components/sidenav/sidenav.store.d.ts +49 -0
- package/dist/components/{sidebar/sidebar.types.d.ts → sidenav/sidenav.types.d.ts} +5 -5
- package/dist/components/tab-strip/tab-visibility-filter.d.ts +1 -0
- package/dist/components/terminal/terminal.d.ts +11 -0
- package/dist/components/tree-list/tree-list-visibility-filter.d.ts +0 -1
- package/dist/components/tree-list/tree-list.d.ts +1 -1
- package/dist/components/tree-list/tree-list.types.d.ts +4 -0
- package/dist/data-table.js +1271 -0
- package/dist/data-table.js.map +1 -0
- package/dist/diff.js +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1885 -3360
- package/dist/index.js.map +1 -1
- package/dist/kanban-renderer-toolbar-B9ro-9z1.js +1318 -0
- package/dist/kanban-renderer-toolbar-B9ro-9z1.js.map +1 -0
- package/dist/kanban-renderer.js +1087 -0
- package/dist/kanban-renderer.js.map +1 -0
- package/dist/list-row-YRUxEcy3.js +808 -0
- package/dist/list-row-YRUxEcy3.js.map +1 -0
- package/dist/param-editor-CYZJbmKu.js +933 -0
- package/dist/param-editor-CYZJbmKu.js.map +1 -0
- package/dist/param-editor-read-only-field-DgtLqcFa.js +925 -0
- package/dist/param-editor-read-only-field-DgtLqcFa.js.map +1 -0
- package/dist/prism-BXb57lxL.js +125 -0
- package/dist/prism-BXb57lxL.js.map +1 -0
- package/dist/rich-message-DBf_5YlW.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/terminal.js +197 -177
- package/dist/terminal.js.map +1 -1
- package/dist/theme/primitives/sizes.d.ts +23 -0
- package/dist/theme/recipes/button.d.ts +6 -0
- package/dist/theme/recipes/tabs.d.ts +4 -4
- package/dist/theme/tokens/colors.d.ts +18 -24
- package/dist/{theme-CJBYBJaA.js → theme-CNhnbvcE.js} +208 -162
- package/dist/theme-CNhnbvcE.js.map +1 -0
- package/dist/theme.js +1 -1
- package/dist/tree-list-CZHLAURU.js +1033 -0
- package/dist/tree-list-CZHLAURU.js.map +1 -0
- package/package.json +10 -4
- package/dist/checkbox-D5AzFRlb.js.map +0 -1
- package/dist/components/data-renderer/card-interaction-guard.d.ts +0 -2
- package/dist/components/data-renderer/data-renderer-attribute-badge.d.ts +0 -7
- package/dist/components/data-renderer/data-renderer-grouping.d.ts +0 -23
- package/dist/components/data-renderer/data-renderer-list.d.ts +0 -39
- package/dist/components/data-renderer/data-renderer-toolbar.d.ts +0 -12
- package/dist/components/data-renderer/index.d.ts +0 -18
- package/dist/components/data-renderer/use-data-renderer-store.d.ts +0 -59
- package/dist/components/sidebar/sidebar.d.ts +0 -2
- package/dist/components/sidebar/sidebar.store.d.ts +0 -49
- package/dist/data-renderer.js +0 -1669
- package/dist/data-renderer.js.map +0 -1
- package/dist/list-row-mi3Hn-Um.js +0 -740
- package/dist/list-row-mi3Hn-Um.js.map +0 -1
- package/dist/theme-CJBYBJaA.js.map +0 -1
- package/dist/tree-list-CcuZMLS5.js +0 -930
- package/dist/tree-list-CcuZMLS5.js.map +0 -1
- package/dist/workspace-badge-Fuo-1zPj.js +0 -314
- package/dist/workspace-badge-Fuo-1zPj.js.map +0 -1
- /package/dist/components/{data-renderer/data-renderer-badge-helpers.d.ts → kanban-renderer/kanban-renderer-badge-helpers.d.ts} +0 -0
- /package/dist/components/{data-renderer/data-renderer-enum-helpers.d.ts → kanban-renderer/kanban-renderer-enum-helpers.d.ts} +0 -0
- /package/dist/components/{data-renderer → kanban-renderer}/use-resolved-attributes.d.ts +0 -0
|
@@ -0,0 +1,925 @@
|
|
|
1
|
+
import { jsx as o, jsxs as x, Fragment as Le } from "react/jsx-runtime";
|
|
2
|
+
import { c as V } from "react/compiler-runtime";
|
|
3
|
+
import { Text as de, Icon as le, HStack as ge, Flex as K, Box as E, parseColor as Ne, ColorPicker as Y, Input as we, NumberInput as me, Slider as fe, Popover as Se, IconButton as Ce, Grid as _e, GridItem as We, Badge as ke, Spinner as je, Menu as he, Button as Be, Image as De } from "@chakra-ui/react";
|
|
4
|
+
import * as ze from "react";
|
|
5
|
+
import { useState as be, useRef as ae, useEffect as pe } from "react";
|
|
6
|
+
import { CircleHelp as Ve, Circle as xe, Bug as He, Sparkles as Fe, BookOpen as Me, Wrench as qe, Gauge as Ge, Feather as Ke, Scale as Ue, Layers as Xe, AlertTriangle as Qe, Star as Ye, Flag as Je, Flame as Ze, Lightbulb as et, Shield as tt, Eye as lt, Clock as nt, CheckCircle as it, Tag as rt, Code as ot, ChartColumnIncreasing as st, CircleQuestionMark as ct, ShieldAlert as at, LoaderCircle as dt, CircleCheck as ut, CircleAlert as ft, CircleStop as ht, CirclePause as mt, ClockAlert as gt, CircleDot as bt, CircleDashed as pt, ChevronDown as Re, GitCommitIcon as vt, GitBranchIcon as St, SquareCheck as xt, Square as Ct, Check as yt } from "lucide-react";
|
|
7
|
+
import { T as Ie } from "./scroll-area-BMbg1WcD.js";
|
|
8
|
+
import { L as kt } from "./list-row-YRUxEcy3.js";
|
|
9
|
+
import "./checkbox-B2zYVemL.js";
|
|
10
|
+
import "./empty-state-Bo4HVrgr.js";
|
|
11
|
+
const G = (r) => {
|
|
12
|
+
const e = V(7), {
|
|
13
|
+
name: l,
|
|
14
|
+
description: n
|
|
15
|
+
} = r;
|
|
16
|
+
let t;
|
|
17
|
+
e[0] !== l ? (t = /* @__PURE__ */ o(de, { textStyle: "label/S/medium", color: "fg.muted", truncate: !0, children: l }), e[0] = l, e[1] = t) : t = e[1];
|
|
18
|
+
let s;
|
|
19
|
+
e[2] !== n ? (s = n ? /* @__PURE__ */ o(Ie, { content: n, children: /* @__PURE__ */ o(le, { as: Ve, boxSize: "12px", color: "fg.muted", opacity: 0.6, cursor: "help", flexShrink: 0 }) }) : null, e[2] = n, e[3] = s) : s = e[3];
|
|
20
|
+
let i;
|
|
21
|
+
return e[4] !== t || e[5] !== s ? (i = /* @__PURE__ */ x(ge, { gap: "1", alignItems: "center", minW: "0", children: [
|
|
22
|
+
t,
|
|
23
|
+
s
|
|
24
|
+
] }), e[4] = t, e[5] = s, e[6] = i) : i = e[6], i;
|
|
25
|
+
}, It = (r) => {
|
|
26
|
+
const e = V(17), {
|
|
27
|
+
name: l,
|
|
28
|
+
description: n,
|
|
29
|
+
hideLabel: t,
|
|
30
|
+
fullWidth: s,
|
|
31
|
+
orientation: i,
|
|
32
|
+
labelTrailing: c,
|
|
33
|
+
children: a
|
|
34
|
+
} = r, f = t === void 0 ? !1 : t, u = s === void 0 ? !1 : s, p = i === void 0 ? "auto" : i;
|
|
35
|
+
let d;
|
|
36
|
+
e[0] !== n || e[1] !== f || e[2] !== l ? (d = f || !l ? null : /* @__PURE__ */ o(G, { name: l, description: n }), e[0] = n, e[1] = f, e[2] = l, e[3] = d) : d = e[3];
|
|
37
|
+
const m = d;
|
|
38
|
+
if ((p === "auto" ? u ? "stacked" : "inline" : p) === "stacked") {
|
|
39
|
+
const _ = m || c;
|
|
40
|
+
let b;
|
|
41
|
+
e[4] !== _ || e[5] !== m || e[6] !== c ? (b = _ ? /* @__PURE__ */ x(K, { alignItems: "center", justifyContent: "space-between", gap: "xs", mb: "xs", minW: "0", children: [
|
|
42
|
+
m,
|
|
43
|
+
c
|
|
44
|
+
] }) : null, e[4] = _, e[5] = m, e[6] = c, e[7] = b) : b = e[7];
|
|
45
|
+
let S;
|
|
46
|
+
return e[8] !== a || e[9] !== b ? (S = /* @__PURE__ */ x(E, { minW: "0", children: [
|
|
47
|
+
b,
|
|
48
|
+
a
|
|
49
|
+
] }), e[8] = a, e[9] = b, e[10] = S) : S = e[10], S;
|
|
50
|
+
}
|
|
51
|
+
let h;
|
|
52
|
+
e[11] !== a || e[12] !== c ? (h = /* @__PURE__ */ x(K, { alignItems: "center", gap: "xs", minW: "0", children: [
|
|
53
|
+
c,
|
|
54
|
+
a
|
|
55
|
+
] }), e[11] = a, e[12] = c, e[13] = h) : h = e[13];
|
|
56
|
+
let y;
|
|
57
|
+
return e[14] !== m || e[15] !== h ? (y = /* @__PURE__ */ x(K, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", minW: "0", children: [
|
|
58
|
+
m,
|
|
59
|
+
h
|
|
60
|
+
] }), e[14] = m, e[15] = h, e[16] = y) : y = e[16], y;
|
|
61
|
+
}, ue = (r) => {
|
|
62
|
+
const e = V(8);
|
|
63
|
+
let l, n, t;
|
|
64
|
+
e[0] !== r ? ({
|
|
65
|
+
children: n,
|
|
66
|
+
preserveWhitespace: t,
|
|
67
|
+
...l
|
|
68
|
+
} = r, e[0] = r, e[1] = l, e[2] = n, e[3] = t) : (l = e[1], n = e[2], t = e[3]);
|
|
69
|
+
const i = (t === void 0 ? !1 : t) ? "pre-wrap" : void 0;
|
|
70
|
+
let c;
|
|
71
|
+
return e[4] !== l || e[5] !== n || e[6] !== i ? (c = /* @__PURE__ */ o(E, { minW: "0", textStyle: "label/S/regular", whiteSpace: i, ...l, children: n }), e[4] = l, e[5] = n, e[6] = i, e[7] = c) : c = e[7], c;
|
|
72
|
+
}, sl = (r) => {
|
|
73
|
+
const e = V(68), {
|
|
74
|
+
id: l,
|
|
75
|
+
defaultValue: n,
|
|
76
|
+
name: t,
|
|
77
|
+
onChange: s,
|
|
78
|
+
description: i,
|
|
79
|
+
readOnly: c,
|
|
80
|
+
hideLabel: a,
|
|
81
|
+
fullWidth: f
|
|
82
|
+
} = r, u = a === void 0 ? !1 : a, p = f === void 0 ? !1 : f, [d, m] = be(n), [C, h] = be(!1), y = ae(null), _ = ae(null), b = ae(null);
|
|
83
|
+
let S;
|
|
84
|
+
e[0] !== l || e[1] !== s ? (S = (N) => {
|
|
85
|
+
b.current && clearTimeout(b.current), b.current = setTimeout(() => s(l, N), 540);
|
|
86
|
+
}, e[0] = l, e[1] = s, e[2] = S) : S = e[2];
|
|
87
|
+
const k = S;
|
|
88
|
+
let I, $;
|
|
89
|
+
e[3] !== n ? (I = () => {
|
|
90
|
+
m(n);
|
|
91
|
+
}, $ = [n], e[3] = n, e[4] = I, e[5] = $) : (I = e[4], $ = e[5]), pe(I, $);
|
|
92
|
+
let W, g;
|
|
93
|
+
e[6] !== C ? (W = () => {
|
|
94
|
+
if (!C)
|
|
95
|
+
return;
|
|
96
|
+
const N = (te) => {
|
|
97
|
+
const se = te;
|
|
98
|
+
return y.current?.contains(se) || _.current?.contains(se);
|
|
99
|
+
}, B = (te) => {
|
|
100
|
+
N(te.target) || h(!1);
|
|
101
|
+
};
|
|
102
|
+
return document.addEventListener("focusin", B, !0), document.addEventListener("pointerdown", B, !0), document.addEventListener("click", B, !0), () => {
|
|
103
|
+
document.removeEventListener("focusin", B, !0), document.removeEventListener("pointerdown", B, !0), document.removeEventListener("click", B, !0);
|
|
104
|
+
};
|
|
105
|
+
}, g = [C], e[6] = C, e[7] = W, e[8] = g) : (W = e[7], g = e[8]), pe(W, g);
|
|
106
|
+
let T;
|
|
107
|
+
e[9] !== k ? (T = (N) => {
|
|
108
|
+
m(N), k(N);
|
|
109
|
+
}, e[9] = k, e[10] = T) : T = e[10];
|
|
110
|
+
const A = T;
|
|
111
|
+
let O;
|
|
112
|
+
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = (N) => {
|
|
113
|
+
const B = N.currentTarget;
|
|
114
|
+
setTimeout(() => {
|
|
115
|
+
B.contains(B.ownerDocument.activeElement) || h(!1);
|
|
116
|
+
});
|
|
117
|
+
}, e[11] = O) : O = e[11];
|
|
118
|
+
const v = O;
|
|
119
|
+
if (c) {
|
|
120
|
+
let N;
|
|
121
|
+
e[12] !== d ? (N = /* @__PURE__ */ o(ue, { children: /* @__PURE__ */ x(K, { alignItems: "center", gap: "xs", children: [
|
|
122
|
+
/* @__PURE__ */ o(E, { boxSize: "0.75rem", borderRadius: "xs", bg: d }),
|
|
123
|
+
/* @__PURE__ */ o(E, { as: "span", children: d })
|
|
124
|
+
] }) }), e[12] = d, e[13] = N) : N = e[13];
|
|
125
|
+
const B = N;
|
|
126
|
+
if (p) {
|
|
127
|
+
let ce;
|
|
128
|
+
e[14] !== i || e[15] !== u || e[16] !== t ? (ce = !u && /* @__PURE__ */ o(E, { mb: "xs", children: /* @__PURE__ */ o(G, { name: t, description: i }) }), e[14] = i, e[15] = u, e[16] = t, e[17] = ce) : ce = e[17];
|
|
129
|
+
let ve;
|
|
130
|
+
return e[18] !== ce || e[19] !== B ? (ve = /* @__PURE__ */ x(E, { children: [
|
|
131
|
+
ce,
|
|
132
|
+
B
|
|
133
|
+
] }), e[18] = ce, e[19] = B, e[20] = ve) : ve = e[20], ve;
|
|
134
|
+
}
|
|
135
|
+
let te;
|
|
136
|
+
e[21] !== i || e[22] !== u || e[23] !== t ? (te = !u && /* @__PURE__ */ o(G, { name: t, description: i }), e[21] = i, e[22] = u, e[23] = t, e[24] = te) : te = e[24];
|
|
137
|
+
let se;
|
|
138
|
+
return e[25] !== te || e[26] !== B ? (se = /* @__PURE__ */ o(E, { children: /* @__PURE__ */ x(K, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
|
|
139
|
+
te,
|
|
140
|
+
B
|
|
141
|
+
] }) }), e[25] = te, e[26] = B, e[27] = se) : se = e[27], se;
|
|
142
|
+
}
|
|
143
|
+
let L;
|
|
144
|
+
e[28] !== d ? (L = Ne(d), e[28] = d, e[29] = L) : L = e[29];
|
|
145
|
+
let j, w, z;
|
|
146
|
+
e[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = (N) => h(N.open), w = () => h(!1), z = () => h(!1), e[30] = j, e[31] = w, e[32] = z) : (j = e[30], w = e[31], z = e[32]);
|
|
147
|
+
let H;
|
|
148
|
+
e[33] !== A ? (H = (N) => A(N.value.toString("hex")), e[33] = A, e[34] = H) : H = e[34];
|
|
149
|
+
let U;
|
|
150
|
+
e[35] !== C || e[36] !== c || e[37] !== H || e[38] !== L ? (U = {
|
|
151
|
+
value: L,
|
|
152
|
+
open: C,
|
|
153
|
+
onOpenChange: j,
|
|
154
|
+
onFocusOutside: w,
|
|
155
|
+
onInteractOutside: z,
|
|
156
|
+
onBlur: v,
|
|
157
|
+
onValueChange: H,
|
|
158
|
+
disabled: c
|
|
159
|
+
}, e[35] = C, e[36] = c, e[37] = H, e[38] = L, e[39] = U) : U = e[39];
|
|
160
|
+
const F = U, P = p ? "100%" : "8.75rem";
|
|
161
|
+
let J;
|
|
162
|
+
e[40] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = /* @__PURE__ */ o(Y.HiddenInput, {}), e[40] = J) : J = e[40];
|
|
163
|
+
let q;
|
|
164
|
+
e[41] !== t ? (q = /* @__PURE__ */ o(Y.Label, { srOnly: !0, children: t }), e[41] = t, e[42] = q) : q = e[42];
|
|
165
|
+
let Z;
|
|
166
|
+
e[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = () => h(!1), e[43] = Z) : Z = e[43];
|
|
167
|
+
let X;
|
|
168
|
+
e[44] !== c ? (X = /* @__PURE__ */ o(Y.Input, { readOnly: c, onFocus: Z }), e[44] = c, e[45] = X) : X = e[45];
|
|
169
|
+
let ne;
|
|
170
|
+
e[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ o(Y.Trigger, {}), e[46] = ne) : ne = e[46];
|
|
171
|
+
let Q;
|
|
172
|
+
e[47] !== X ? (Q = /* @__PURE__ */ x(Y.Control, { children: [
|
|
173
|
+
X,
|
|
174
|
+
ne
|
|
175
|
+
] }), e[47] = X, e[48] = Q) : Q = e[48];
|
|
176
|
+
let ie, R;
|
|
177
|
+
e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ie = /* @__PURE__ */ o(Y.Area, {}), R = /* @__PURE__ */ o(Y.Sliders, {}), e[49] = ie, e[50] = R) : (ie = e[49], R = e[50]);
|
|
178
|
+
let D;
|
|
179
|
+
e[51] !== d ? (D = /* @__PURE__ */ o(Y.Swatch, { value: d }), e[51] = d, e[52] = D) : D = e[52];
|
|
180
|
+
let M;
|
|
181
|
+
e[53] !== D || e[54] !== d ? (M = /* @__PURE__ */ o(Y.Positioner, { children: /* @__PURE__ */ x(Y.Content, { ref: _, onBlur: v, children: [
|
|
182
|
+
ie,
|
|
183
|
+
R,
|
|
184
|
+
/* @__PURE__ */ o(Y.SwatchGroup, { children: /* @__PURE__ */ o(Y.SwatchTrigger, { value: d, children: D }) })
|
|
185
|
+
] }) }), e[53] = D, e[54] = d, e[55] = M) : M = e[55];
|
|
186
|
+
let re;
|
|
187
|
+
e[56] !== F || e[57] !== P || e[58] !== q || e[59] !== Q || e[60] !== M ? (re = /* @__PURE__ */ x(Y.Root, { ref: y, ...F, size: "sm", width: P, maxW: "100%", children: [
|
|
188
|
+
J,
|
|
189
|
+
q,
|
|
190
|
+
Q,
|
|
191
|
+
M
|
|
192
|
+
] }), e[56] = F, e[57] = P, e[58] = q, e[59] = Q, e[60] = M, e[61] = re) : re = e[61];
|
|
193
|
+
const ee = re;
|
|
194
|
+
let oe;
|
|
195
|
+
return e[62] !== i || e[63] !== p || e[64] !== u || e[65] !== t || e[66] !== ee ? (oe = /* @__PURE__ */ o(E, { children: p ? /* @__PURE__ */ x(E, { children: [
|
|
196
|
+
!u && /* @__PURE__ */ o(E, { mb: "xs", children: /* @__PURE__ */ o(G, { name: t, description: i }) }),
|
|
197
|
+
ee
|
|
198
|
+
] }) : /* @__PURE__ */ x(K, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
|
|
199
|
+
!u && /* @__PURE__ */ o(G, { name: t, description: i }),
|
|
200
|
+
ee
|
|
201
|
+
] }) }), e[62] = i, e[63] = p, e[64] = u, e[65] = t, e[66] = ee, e[67] = oe) : oe = e[67], oe;
|
|
202
|
+
}, cl = (r) => {
|
|
203
|
+
const e = V(34), {
|
|
204
|
+
id: l,
|
|
205
|
+
defaultValue: n,
|
|
206
|
+
name: t,
|
|
207
|
+
min: s,
|
|
208
|
+
max: i,
|
|
209
|
+
onChange: c,
|
|
210
|
+
description: a,
|
|
211
|
+
readOnly: f,
|
|
212
|
+
hideLabel: u,
|
|
213
|
+
fullWidth: p
|
|
214
|
+
} = r, d = u === void 0 ? !1 : u, m = p === void 0 ? !1 : p, [C, h] = be(n), y = ae(null);
|
|
215
|
+
let _;
|
|
216
|
+
e[0] !== l || e[1] !== c ? (_ = (g) => {
|
|
217
|
+
y.current && clearTimeout(y.current), y.current = setTimeout(() => c(l, g), 540);
|
|
218
|
+
}, e[0] = l, e[1] = c, e[2] = _) : _ = e[2];
|
|
219
|
+
const b = _;
|
|
220
|
+
let S, k;
|
|
221
|
+
e[3] !== n ? (S = () => {
|
|
222
|
+
h(n);
|
|
223
|
+
}, k = [n], e[3] = n, e[4] = S, e[5] = k) : (S = e[4], k = e[5]), pe(S, k);
|
|
224
|
+
let I;
|
|
225
|
+
e[6] !== b ? (I = (g) => {
|
|
226
|
+
h(g), b(g);
|
|
227
|
+
}, e[6] = b, e[7] = I) : I = e[7];
|
|
228
|
+
const $ = I;
|
|
229
|
+
if (f) {
|
|
230
|
+
let g;
|
|
231
|
+
e[8] !== C ? (g = /* @__PURE__ */ o(ue, { children: C }), e[8] = C, e[9] = g) : g = e[9];
|
|
232
|
+
const T = g;
|
|
233
|
+
if (m) {
|
|
234
|
+
let v;
|
|
235
|
+
e[10] !== a || e[11] !== d || e[12] !== t ? (v = !d && /* @__PURE__ */ o(E, { mb: "xs", children: /* @__PURE__ */ o(G, { name: t, description: a }) }), e[10] = a, e[11] = d, e[12] = t, e[13] = v) : v = e[13];
|
|
236
|
+
let L;
|
|
237
|
+
return e[14] !== v || e[15] !== T ? (L = /* @__PURE__ */ x(E, { children: [
|
|
238
|
+
v,
|
|
239
|
+
T
|
|
240
|
+
] }), e[14] = v, e[15] = T, e[16] = L) : L = e[16], L;
|
|
241
|
+
}
|
|
242
|
+
let A;
|
|
243
|
+
e[17] !== a || e[18] !== d || e[19] !== t ? (A = !d && /* @__PURE__ */ o(G, { name: t, description: a }), e[17] = a, e[18] = d, e[19] = t, e[20] = A) : A = e[20];
|
|
244
|
+
let O;
|
|
245
|
+
return e[21] !== A || e[22] !== T ? (O = /* @__PURE__ */ o(E, { children: /* @__PURE__ */ x(K, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
|
|
246
|
+
A,
|
|
247
|
+
T
|
|
248
|
+
] }) }), e[21] = A, e[22] = T, e[23] = O) : O = e[23], O;
|
|
249
|
+
}
|
|
250
|
+
let W;
|
|
251
|
+
return e[24] !== a || e[25] !== m || e[26] !== $ || e[27] !== d || e[28] !== i || e[29] !== s || e[30] !== t || e[31] !== f || e[32] !== C ? (W = /* @__PURE__ */ o(E, { children: m ? /* @__PURE__ */ x(E, { children: [
|
|
252
|
+
!d && /* @__PURE__ */ o(E, { mb: "xs", children: /* @__PURE__ */ o(G, { name: t, description: a }) }),
|
|
253
|
+
/* @__PURE__ */ o(we, { className: "nodrag", readOnly: f, width: "100%", size: "sm", type: "date", placeholder: d ? t : void 0, value: C, min: s, max: i, onChange: (g) => $(g.target.value), onKeyUp: wt })
|
|
254
|
+
] }) : /* @__PURE__ */ x(K, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
|
|
255
|
+
!d && /* @__PURE__ */ o(G, { name: t, description: a }),
|
|
256
|
+
/* @__PURE__ */ o(we, { className: "nodrag", readOnly: f, width: "8.75rem", size: "sm", type: "date", placeholder: d ? t : void 0, value: C, min: s, max: i, onChange: (g) => $(g.target.value), onKeyUp: _t })
|
|
257
|
+
] }) }), e[24] = a, e[25] = m, e[26] = $, e[27] = d, e[28] = i, e[29] = s, e[30] = t, e[31] = f, e[32] = C, e[33] = W) : W = e[33], W;
|
|
258
|
+
};
|
|
259
|
+
function wt(r) {
|
|
260
|
+
r.key === "Enter" && r.currentTarget.blur();
|
|
261
|
+
}
|
|
262
|
+
function _t(r) {
|
|
263
|
+
r.key === "Enter" && r.currentTarget.blur();
|
|
264
|
+
}
|
|
265
|
+
const Te = ze.forwardRef(function(e, l) {
|
|
266
|
+
const n = V(8);
|
|
267
|
+
let t, s;
|
|
268
|
+
n[0] !== e ? ({
|
|
269
|
+
children: t,
|
|
270
|
+
...s
|
|
271
|
+
} = e, n[0] = e, n[1] = t, n[2] = s) : (t = n[1], s = n[2]);
|
|
272
|
+
let i;
|
|
273
|
+
n[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ x(me.Control, { children: [
|
|
274
|
+
/* @__PURE__ */ o(me.IncrementTrigger, {}),
|
|
275
|
+
/* @__PURE__ */ o(me.DecrementTrigger, {})
|
|
276
|
+
] }), n[3] = i) : i = n[3];
|
|
277
|
+
let c;
|
|
278
|
+
return n[4] !== t || n[5] !== l || n[6] !== s ? (c = /* @__PURE__ */ x(me.Root, { ref: l, variant: "outline", ...s, children: [
|
|
279
|
+
t,
|
|
280
|
+
i
|
|
281
|
+
] }), n[4] = t, n[5] = l, n[6] = s, n[7] = c) : c = n[7], c;
|
|
282
|
+
}), $e = me.Input, Wt = ze.forwardRef(function(e, l) {
|
|
283
|
+
const n = V(9);
|
|
284
|
+
let t, s;
|
|
285
|
+
n[0] !== e ? ({
|
|
286
|
+
children: t,
|
|
287
|
+
...s
|
|
288
|
+
} = e, n[0] = e, n[1] = t, n[2] = s) : (t = n[1], s = n[2]);
|
|
289
|
+
let i;
|
|
290
|
+
n[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ o(fe.Track, { height: "2px", borderRadius: "0", bg: "bg.muted", children: /* @__PURE__ */ o(fe.Range, { bg: "fg" }) }), n[3] = i) : i = n[3];
|
|
291
|
+
let c;
|
|
292
|
+
n[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ x(fe.Control, { children: [
|
|
293
|
+
i,
|
|
294
|
+
/* @__PURE__ */ o(fe.Thumbs, { boxSize: "0.625rem", bg: "fg", borderWidth: "1px", borderColor: "bg", borderRadius: "2xs", boxShadow: "none", transition: "width 0.12s ease, height 0.12s ease, border-color 0.2s ease-in-out", _hover: {
|
|
295
|
+
boxSize: "0.75rem",
|
|
296
|
+
borderColor: "border.accent-light"
|
|
297
|
+
}, _active: {
|
|
298
|
+
boxSize: "0.875rem",
|
|
299
|
+
borderColor: "border.accent-light"
|
|
300
|
+
}, _focusVisible: {
|
|
301
|
+
borderColor: "border.accent-light",
|
|
302
|
+
outline: "none",
|
|
303
|
+
boxShadow: "none"
|
|
304
|
+
} })
|
|
305
|
+
] }), n[4] = c) : c = n[4];
|
|
306
|
+
let a;
|
|
307
|
+
return n[5] !== t || n[6] !== l || n[7] !== s ? (a = /* @__PURE__ */ x(fe.Root, { ref: l, variant: "solid", ...s, children: [
|
|
308
|
+
c,
|
|
309
|
+
t
|
|
310
|
+
] }), n[5] = t, n[6] = l, n[7] = s, n[8] = a) : a = n[8], a;
|
|
311
|
+
}), al = (r) => {
|
|
312
|
+
const e = V(45), {
|
|
313
|
+
id: l,
|
|
314
|
+
defaultValue: n,
|
|
315
|
+
name: t,
|
|
316
|
+
step: s,
|
|
317
|
+
min: i,
|
|
318
|
+
max: c,
|
|
319
|
+
onChange: a,
|
|
320
|
+
description: f,
|
|
321
|
+
readOnly: u,
|
|
322
|
+
hideLabel: p,
|
|
323
|
+
hideSlider: d,
|
|
324
|
+
fullWidth: m
|
|
325
|
+
} = r, C = s === void 0 ? 1 : s, h = p === void 0 ? !1 : p, y = d === void 0 ? !1 : d, _ = m === void 0 ? !1 : m, [b, S] = be(n), I = i !== void 0 && c !== void 0 && !y, $ = _ && !I, W = ae(null);
|
|
326
|
+
let g;
|
|
327
|
+
e[0] !== l || e[1] !== a ? (g = (w) => {
|
|
328
|
+
W.current && clearTimeout(W.current), W.current = setTimeout(() => a(l, w), 540);
|
|
329
|
+
}, e[0] = l, e[1] = a, e[2] = g) : g = e[2];
|
|
330
|
+
const T = g;
|
|
331
|
+
let A, O;
|
|
332
|
+
if (e[3] !== n ? (A = () => {
|
|
333
|
+
S(n);
|
|
334
|
+
}, O = [n], e[3] = n, e[4] = A, e[5] = O) : (A = e[4], O = e[5]), pe(A, O), u) {
|
|
335
|
+
let w;
|
|
336
|
+
e[6] !== b ? (w = /* @__PURE__ */ o(ue, { children: b }), e[6] = b, e[7] = w) : w = e[7];
|
|
337
|
+
const z = w;
|
|
338
|
+
if (_) {
|
|
339
|
+
let F;
|
|
340
|
+
e[8] !== f || e[9] !== h || e[10] !== t ? (F = !h && /* @__PURE__ */ o(E, { mb: "xs", children: /* @__PURE__ */ o(G, { name: t, description: f }) }), e[8] = f, e[9] = h, e[10] = t, e[11] = F) : F = e[11];
|
|
341
|
+
let P;
|
|
342
|
+
return e[12] !== F || e[13] !== z ? (P = /* @__PURE__ */ x(E, { children: [
|
|
343
|
+
F,
|
|
344
|
+
z
|
|
345
|
+
] }), e[12] = F, e[13] = z, e[14] = P) : P = e[14], P;
|
|
346
|
+
}
|
|
347
|
+
let H;
|
|
348
|
+
e[15] !== f || e[16] !== h || e[17] !== t ? (H = !h && /* @__PURE__ */ o(G, { name: t, description: f }), e[15] = f, e[16] = h, e[17] = t, e[18] = H) : H = e[18];
|
|
349
|
+
let U;
|
|
350
|
+
return e[19] !== H || e[20] !== z ? (U = /* @__PURE__ */ o(E, { children: /* @__PURE__ */ x(K, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
|
|
351
|
+
H,
|
|
352
|
+
z
|
|
353
|
+
] }) }), e[19] = H, e[20] = z, e[21] = U) : U = e[21], U;
|
|
354
|
+
}
|
|
355
|
+
let v;
|
|
356
|
+
e[22] !== f || e[23] !== h || e[24] !== c || e[25] !== i || e[26] !== t || e[27] !== u || e[28] !== T || e[29] !== C || e[30] !== $ || e[31] !== b ? (v = $ ? /* @__PURE__ */ x(E, { children: [
|
|
357
|
+
!h && /* @__PURE__ */ o(E, { mb: "xs", children: /* @__PURE__ */ o(G, { name: t, description: f }) }),
|
|
358
|
+
/* @__PURE__ */ o(Te, { disabled: u, width: "100%", size: "sm", value: `${b}`, step: C, min: i, max: c, onValueChange: (w) => {
|
|
359
|
+
const z = Number.isNaN(w.valueAsNumber) ? i ?? 0 : w.valueAsNumber;
|
|
360
|
+
S(z), T(z);
|
|
361
|
+
}, children: /* @__PURE__ */ o($e, { className: "nodrag", h: "2rem", readOnly: u, placeholder: h ? t : void 0, onKeyUp: Tt }) })
|
|
362
|
+
] }) : /* @__PURE__ */ x(K, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
|
|
363
|
+
!h && /* @__PURE__ */ o(G, { name: t, description: f }),
|
|
364
|
+
/* @__PURE__ */ o(Te, { disabled: u, width: "5rem", size: "sm", value: `${b}`, step: C, min: i, max: c, onValueChange: (w) => {
|
|
365
|
+
const z = Number.isNaN(w.valueAsNumber) ? i ?? 0 : w.valueAsNumber;
|
|
366
|
+
S(z), T(z);
|
|
367
|
+
}, children: /* @__PURE__ */ o($e, { className: "nodrag", h: "2rem", readOnly: u, placeholder: h ? t : void 0, onKeyUp: $t }) })
|
|
368
|
+
] }), e[22] = f, e[23] = h, e[24] = c, e[25] = i, e[26] = t, e[27] = u, e[28] = T, e[29] = C, e[30] = $, e[31] = b, e[32] = v) : v = e[32];
|
|
369
|
+
let L;
|
|
370
|
+
e[33] !== l || e[34] !== c || e[35] !== i || e[36] !== a || e[37] !== u || e[38] !== I || e[39] !== C || e[40] !== b ? (L = I && /* @__PURE__ */ o(Wt, { size: "sm", disabled: u, value: [b], step: C, min: i, max: c, onValueChange: (w) => {
|
|
371
|
+
S(w.value[0]);
|
|
372
|
+
}, onValueChangeEnd: (w) => {
|
|
373
|
+
a(l, w.value[0]);
|
|
374
|
+
} }), e[33] = l, e[34] = c, e[35] = i, e[36] = a, e[37] = u, e[38] = I, e[39] = C, e[40] = b, e[41] = L) : L = e[41];
|
|
375
|
+
let j;
|
|
376
|
+
return e[42] !== v || e[43] !== L ? (j = /* @__PURE__ */ x(E, { children: [
|
|
377
|
+
v,
|
|
378
|
+
L
|
|
379
|
+
] }), e[42] = v, e[43] = L, e[44] = j) : j = e[44], j;
|
|
380
|
+
};
|
|
381
|
+
function Tt(r) {
|
|
382
|
+
r.key === "Enter" && r.currentTarget.blur();
|
|
383
|
+
}
|
|
384
|
+
function $t(r) {
|
|
385
|
+
r.key === "Enter" && r.currentTarget.blur();
|
|
386
|
+
}
|
|
387
|
+
const Lt = ["gray", "red", "orange", "yellow", "green", "teal", "blue", "cyan", "purple", "pink"], Ae = [{
|
|
388
|
+
value: "circle",
|
|
389
|
+
label: "circle",
|
|
390
|
+
icon: xe
|
|
391
|
+
}, {
|
|
392
|
+
value: "bug",
|
|
393
|
+
label: "bug",
|
|
394
|
+
icon: He
|
|
395
|
+
}, {
|
|
396
|
+
value: "sparkles",
|
|
397
|
+
label: "sparkles",
|
|
398
|
+
icon: Fe
|
|
399
|
+
}, {
|
|
400
|
+
value: "book-open",
|
|
401
|
+
label: "book open",
|
|
402
|
+
icon: Me
|
|
403
|
+
}, {
|
|
404
|
+
value: "wrench",
|
|
405
|
+
label: "wrench",
|
|
406
|
+
icon: qe
|
|
407
|
+
}, {
|
|
408
|
+
value: "gauge",
|
|
409
|
+
label: "gauge",
|
|
410
|
+
icon: Ge
|
|
411
|
+
}, {
|
|
412
|
+
value: "feather",
|
|
413
|
+
label: "feather",
|
|
414
|
+
icon: Ke
|
|
415
|
+
}, {
|
|
416
|
+
value: "scale",
|
|
417
|
+
label: "scale",
|
|
418
|
+
icon: Ue
|
|
419
|
+
}, {
|
|
420
|
+
value: "layers",
|
|
421
|
+
label: "layers",
|
|
422
|
+
icon: Xe
|
|
423
|
+
}, {
|
|
424
|
+
value: "alert-triangle",
|
|
425
|
+
label: "alert triangle",
|
|
426
|
+
icon: Qe
|
|
427
|
+
}, {
|
|
428
|
+
value: "star",
|
|
429
|
+
label: "star",
|
|
430
|
+
icon: Ye
|
|
431
|
+
}, {
|
|
432
|
+
value: "flag",
|
|
433
|
+
label: "flag",
|
|
434
|
+
icon: Je
|
|
435
|
+
}, {
|
|
436
|
+
value: "flame",
|
|
437
|
+
label: "flame",
|
|
438
|
+
icon: Ze
|
|
439
|
+
}, {
|
|
440
|
+
value: "lightbulb",
|
|
441
|
+
label: "lightbulb",
|
|
442
|
+
icon: et
|
|
443
|
+
}, {
|
|
444
|
+
value: "shield",
|
|
445
|
+
label: "shield",
|
|
446
|
+
icon: tt
|
|
447
|
+
}, {
|
|
448
|
+
value: "eye",
|
|
449
|
+
label: "eye",
|
|
450
|
+
icon: lt
|
|
451
|
+
}, {
|
|
452
|
+
value: "clock",
|
|
453
|
+
label: "clock",
|
|
454
|
+
icon: nt
|
|
455
|
+
}, {
|
|
456
|
+
value: "check-circle",
|
|
457
|
+
label: "check circle",
|
|
458
|
+
icon: it
|
|
459
|
+
}, {
|
|
460
|
+
value: "tag",
|
|
461
|
+
label: "tag",
|
|
462
|
+
icon: rt
|
|
463
|
+
}, {
|
|
464
|
+
value: "code",
|
|
465
|
+
label: "code",
|
|
466
|
+
icon: ot
|
|
467
|
+
}, {
|
|
468
|
+
value: "chart-column-increasing",
|
|
469
|
+
label: "chart column increasing",
|
|
470
|
+
icon: st
|
|
471
|
+
}, {
|
|
472
|
+
value: "circle-question-mark",
|
|
473
|
+
label: "circle question mark",
|
|
474
|
+
icon: ct
|
|
475
|
+
}, {
|
|
476
|
+
value: "shield-alert",
|
|
477
|
+
label: "shield alert",
|
|
478
|
+
icon: at
|
|
479
|
+
}], Ee = (r, e = Ae) => e.find((n) => n.value === (r ?? "circle"))?.icon ?? xe, dl = (r) => {
|
|
480
|
+
const e = V(36), {
|
|
481
|
+
color: l,
|
|
482
|
+
colorOptions: n,
|
|
483
|
+
icon: t,
|
|
484
|
+
iconOptions: s,
|
|
485
|
+
onColorChange: i,
|
|
486
|
+
onIconChange: c,
|
|
487
|
+
disabled: a,
|
|
488
|
+
showIcons: f,
|
|
489
|
+
"aria-label": u
|
|
490
|
+
} = r, p = n === void 0 ? Lt : n, d = s === void 0 ? Ae : s, m = f === void 0 ? !0 : f, C = u === void 0 ? "Pick color and icon" : u;
|
|
491
|
+
let h;
|
|
492
|
+
e[0] !== t || e[1] !== d || e[2] !== m ? (h = m ? Ee(t, d) : xe, e[0] = t, e[1] = d, e[2] = m, e[3] = h) : h = e[3];
|
|
493
|
+
const y = h, _ = t ?? "circle", b = `${l}.500`, S = m ? void 0 : `${l}.500`;
|
|
494
|
+
let k;
|
|
495
|
+
e[4] !== y || e[5] !== b || e[6] !== S ? (k = /* @__PURE__ */ o(le, { as: y, boxSize: "14px", color: b, fill: S }), e[4] = y, e[5] = b, e[6] = S, e[7] = k) : k = e[7];
|
|
496
|
+
let I;
|
|
497
|
+
e[8] !== C || e[9] !== a || e[10] !== k ? (I = /* @__PURE__ */ o(Se.Trigger, { asChild: !0, children: /* @__PURE__ */ o(Ce, { size: "2xs", variant: "ghost", disabled: a, "aria-label": C, children: k }) }), e[8] = C, e[9] = a, e[10] = k, e[11] = I) : I = e[11];
|
|
498
|
+
const $ = m ? "320px" : "220px";
|
|
499
|
+
let W;
|
|
500
|
+
e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ o(de, { textStyle: "label/S", mb: "xs", children: "Color" }), e[12] = W) : W = e[12];
|
|
501
|
+
const g = m ? "repeat(10, 1fr)" : "repeat(5, 1fr)", T = m ? "md" : "0";
|
|
502
|
+
let A;
|
|
503
|
+
if (e[13] !== l || e[14] !== p || e[15] !== i) {
|
|
504
|
+
let w;
|
|
505
|
+
e[17] !== l || e[18] !== i ? (w = (z) => /* @__PURE__ */ o(We, { children: /* @__PURE__ */ o(Ce, { size: "2xs", variant: z === l ? "outline" : "ghost", colorPalette: z, onClick: () => i(z), "aria-label": z, children: /* @__PURE__ */ o(le, { as: xe, boxSize: "14px", fill: `${z}.500`, color: `${z}.500` }) }) }, z), e[17] = l, e[18] = i, e[19] = w) : w = e[19], A = p.map(w), e[13] = l, e[14] = p, e[15] = i, e[16] = A;
|
|
506
|
+
} else
|
|
507
|
+
A = e[16];
|
|
508
|
+
let O;
|
|
509
|
+
e[20] !== g || e[21] !== T || e[22] !== A ? (O = /* @__PURE__ */ o(_e, { templateColumns: g, gap: "2xs", mb: T, children: A }), e[20] = g, e[21] = T, e[22] = A, e[23] = O) : O = e[23];
|
|
510
|
+
let v;
|
|
511
|
+
e[24] !== d || e[25] !== c || e[26] !== _ || e[27] !== m ? (v = m ? /* @__PURE__ */ x(Le, { children: [
|
|
512
|
+
/* @__PURE__ */ o(de, { textStyle: "label/S", mb: "xs", children: "Icon" }),
|
|
513
|
+
/* @__PURE__ */ o(_e, { templateColumns: "repeat(5, 1fr)", gap: "2xs", children: d.map((w) => /* @__PURE__ */ o(We, { children: /* @__PURE__ */ o(Ce, { size: "2xs", variant: w.value === _ ? "outline" : "ghost", onClick: () => c?.(w.value), "aria-label": w.label, children: /* @__PURE__ */ o(le, { as: w.icon, boxSize: "14px" }) }) }, w.value ?? "none")) })
|
|
514
|
+
] }) : null, e[24] = d, e[25] = c, e[26] = _, e[27] = m, e[28] = v) : v = e[28];
|
|
515
|
+
let L;
|
|
516
|
+
e[29] !== O || e[30] !== v || e[31] !== $ ? (L = /* @__PURE__ */ o(Se.Positioner, { children: /* @__PURE__ */ x(Se.Content, { w: $, p: "sm", bg: "bg", children: [
|
|
517
|
+
W,
|
|
518
|
+
O,
|
|
519
|
+
v
|
|
520
|
+
] }) }), e[29] = O, e[30] = v, e[31] = $, e[32] = L) : L = e[32];
|
|
521
|
+
let j;
|
|
522
|
+
return e[33] !== L || e[34] !== I ? (j = /* @__PURE__ */ x(Se.Root, { children: [
|
|
523
|
+
I,
|
|
524
|
+
L
|
|
525
|
+
] }), e[33] = L, e[34] = I, e[35] = j) : j = e[35], j;
|
|
526
|
+
}, zt = (r) => r === "in_progress" ? dt : r === "completed" ? ut : r === "failed" ? ft : r === "cancelled" ? ht : r === "disconnected" ? mt : r === "queued" ? gt : r === "awaiting_input" ? bt : pt, Rt = (r) => r === "in_progress" ? "fg.info" : r === "completed" ? "fg.success" : r === "failed" ? "fg.error" : r === "cancelled" || r === "disconnected" ? "fg.warning" : r === "queued" ? "fg.info" : r === "awaiting_input" ? "fg.warning" : "fg.muted", At = (r) => {
|
|
527
|
+
const e = V(11), {
|
|
528
|
+
status: l,
|
|
529
|
+
boxSize: n,
|
|
530
|
+
ariaLabel: t,
|
|
531
|
+
cursor: s,
|
|
532
|
+
onClick: i
|
|
533
|
+
} = r, c = n === void 0 ? "14px" : n, a = t === void 0 ? "Session status" : t;
|
|
534
|
+
let f;
|
|
535
|
+
e[0] !== l ? (f = zt(l), e[0] = l, e[1] = f) : f = e[1];
|
|
536
|
+
let u;
|
|
537
|
+
e[2] !== l ? (u = Rt(l), e[2] = l, e[3] = u) : u = e[3];
|
|
538
|
+
let p;
|
|
539
|
+
return e[4] !== a || e[5] !== c || e[6] !== s || e[7] !== i || e[8] !== f || e[9] !== u ? (p = /* @__PURE__ */ o(le, { as: f, boxSize: c, color: u, "aria-label": a, cursor: s, onClick: i }), e[4] = a, e[5] = c, e[6] = s, e[7] = i, e[8] = f, e[9] = u, e[10] = p) : p = e[10], p;
|
|
540
|
+
}, Et = {
|
|
541
|
+
amber: "yellow"
|
|
542
|
+
}, Ot = /* @__PURE__ */ new Set(["gray", "red", "orange", "yellow", "green", "teal", "blue", "cyan", "purple", "pink"]), Pt = {
|
|
543
|
+
bg: {
|
|
544
|
+
_light: "bg.muted",
|
|
545
|
+
_dark: "bg.subtle"
|
|
546
|
+
},
|
|
547
|
+
color: "fg.muted",
|
|
548
|
+
_hover: {
|
|
549
|
+
bg: {
|
|
550
|
+
_light: "bg.subtle",
|
|
551
|
+
_dark: "bg.hover"
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
}, Nt = (r) => r === "current_branch" ? vt : St, jt = (r) => {
|
|
555
|
+
if (r.startsWith("#") || r.startsWith("rgb") || r.startsWith("hsl") || r.startsWith("var("))
|
|
556
|
+
return r;
|
|
557
|
+
const e = Et[r] ?? r;
|
|
558
|
+
return Ot.has(e) ? `var(--chakra-colors-${e}-500)` : e;
|
|
559
|
+
}, Bt = (r) => r ? r.description ? `${r.name}: ${r.description}` : r.name : null, Oe = (r, e) => {
|
|
560
|
+
r.stopPropagation(), e?.();
|
|
561
|
+
}, Dt = (r, e) => {
|
|
562
|
+
r.stopPropagation(), e?.();
|
|
563
|
+
}, Vt = (r) => {
|
|
564
|
+
const e = V(9), {
|
|
565
|
+
sessionStatus: l,
|
|
566
|
+
onSessionIndicatorClick: n
|
|
567
|
+
} = r;
|
|
568
|
+
if (!l)
|
|
569
|
+
return null;
|
|
570
|
+
const t = n ? "Open latest session" : "Latest session status";
|
|
571
|
+
let s;
|
|
572
|
+
e[0] !== n ? (s = n ? (a) => Oe(a, n) : void 0, e[0] = n, e[1] = s) : s = e[1];
|
|
573
|
+
let i;
|
|
574
|
+
e[2] !== l || e[3] !== t || e[4] !== s ? (i = /* @__PURE__ */ o(At, { status: l, boxSize: "12px", ariaLabel: t, cursor: "pointer", onClick: s }), e[2] = l, e[3] = t, e[4] = s, e[5] = i) : i = e[5];
|
|
575
|
+
let c;
|
|
576
|
+
return e[6] !== t || e[7] !== i ? (c = /* @__PURE__ */ o(Ie, { content: t, children: i }), e[6] = t, e[7] = i, e[8] = c) : c = e[8], c;
|
|
577
|
+
}, Ht = (r) => {
|
|
578
|
+
const e = V(13), {
|
|
579
|
+
workspaceType: l,
|
|
580
|
+
initializing: n,
|
|
581
|
+
label: t,
|
|
582
|
+
shorthand: s
|
|
583
|
+
} = r;
|
|
584
|
+
let i;
|
|
585
|
+
e[0] !== l ? (i = Nt(l), e[0] = l, e[1] = i) : i = e[1];
|
|
586
|
+
const c = i, a = t ?? s, f = l === "worktree" ? "Worktree" : "Current branch";
|
|
587
|
+
let u;
|
|
588
|
+
e[2] !== c || e[3] !== f ? (u = /* @__PURE__ */ o(le, { as: c, boxSize: "3.5", flexShrink: 0, "aria-label": f }), e[2] = c, e[3] = f, e[4] = u) : u = e[4];
|
|
589
|
+
let p;
|
|
590
|
+
e[5] !== n ? (p = n ? /* @__PURE__ */ o(je, { size: "xs", color: "fg.muted" }) : null, e[5] = n, e[6] = p) : p = e[6];
|
|
591
|
+
let d;
|
|
592
|
+
e[7] !== a ? (d = a ? /* @__PURE__ */ o(de, { as: "span", textStyle: "label/XS/medium", color: "fg.muted", minW: "0", maxW: "10rem", truncate: !0, children: a }) : null, e[7] = a, e[8] = d) : d = e[8];
|
|
593
|
+
let m;
|
|
594
|
+
return e[9] !== u || e[10] !== p || e[11] !== d ? (m = /* @__PURE__ */ x(ge, { as: "span", gap: "2xs", alignItems: "center", color: "fg.muted", minW: "0", children: [
|
|
595
|
+
u,
|
|
596
|
+
p,
|
|
597
|
+
d
|
|
598
|
+
] }), e[9] = u, e[10] = p, e[11] = d, e[12] = m) : m = e[12], m;
|
|
599
|
+
}, Ft = (r) => {
|
|
600
|
+
const e = V(10), {
|
|
601
|
+
attemptStatus: l
|
|
602
|
+
} = r;
|
|
603
|
+
if (!l)
|
|
604
|
+
return null;
|
|
605
|
+
let n;
|
|
606
|
+
e[0] !== l ? (n = Bt(l), e[0] = l, e[1] = n) : n = e[1];
|
|
607
|
+
let t;
|
|
608
|
+
e[2] !== l.color ? (t = jt(l.color), e[2] = l.color, e[3] = t) : t = e[3];
|
|
609
|
+
const s = `Attempt status ${l.name}`;
|
|
610
|
+
let i;
|
|
611
|
+
e[4] !== t || e[5] !== s ? (i = /* @__PURE__ */ o(E, { as: "span", boxSize: "8px", borderRadius: "full", backgroundColor: t, flexShrink: 0, "aria-label": s, "data-testid": "workspace-attempt-status" }), e[4] = t, e[5] = s, e[6] = i) : i = e[6];
|
|
612
|
+
let c;
|
|
613
|
+
return e[7] !== n || e[8] !== i ? (c = /* @__PURE__ */ o(Ie, { content: n, children: i }), e[7] = n, e[8] = i, e[9] = c) : c = e[9], c;
|
|
614
|
+
}, Mt = (r) => {
|
|
615
|
+
const e = V(7), {
|
|
616
|
+
diffAdditions: l,
|
|
617
|
+
diffDeletions: n
|
|
618
|
+
} = r;
|
|
619
|
+
if (typeof l != "number" || typeof n != "number")
|
|
620
|
+
return null;
|
|
621
|
+
let t;
|
|
622
|
+
e[0] !== l ? (t = /* @__PURE__ */ x(de, { as: "span", textStyle: "label/XS/medium", color: "fg.success", children: [
|
|
623
|
+
"+",
|
|
624
|
+
l
|
|
625
|
+
] }), e[0] = l, e[1] = t) : t = e[1];
|
|
626
|
+
let s;
|
|
627
|
+
e[2] !== n ? (s = /* @__PURE__ */ x(de, { as: "span", textStyle: "label/XS/medium", color: "fg.error", children: [
|
|
628
|
+
"-",
|
|
629
|
+
n
|
|
630
|
+
] }), e[2] = n, e[3] = s) : s = e[3];
|
|
631
|
+
let i;
|
|
632
|
+
return e[4] !== t || e[5] !== s ? (i = /* @__PURE__ */ x(ge, { as: "span", gap: "3xs", flexShrink: 0, children: [
|
|
633
|
+
t,
|
|
634
|
+
s
|
|
635
|
+
] }), e[4] = t, e[5] = s, e[6] = i) : i = e[6], i;
|
|
636
|
+
}, qt = (r) => {
|
|
637
|
+
const e = V(5), {
|
|
638
|
+
hasMultipleWorkspaces: l,
|
|
639
|
+
onDropdownClick: n
|
|
640
|
+
} = r;
|
|
641
|
+
if (!l)
|
|
642
|
+
return null;
|
|
643
|
+
const t = n ? "pointer" : "default";
|
|
644
|
+
let s;
|
|
645
|
+
e[0] !== n ? (s = n ? (c) => Oe(c, n) : void 0, e[0] = n, e[1] = s) : s = e[1];
|
|
646
|
+
let i;
|
|
647
|
+
return e[2] !== t || e[3] !== s ? (i = /* @__PURE__ */ o(le, { as: Re, boxSize: "12px", color: "fg.muted", cursor: t, "aria-label": "Workspace selector", onClick: s }), e[2] = t, e[3] = s, e[4] = i) : i = e[4], i;
|
|
648
|
+
}, ul = (r) => {
|
|
649
|
+
const e = V(27), {
|
|
650
|
+
workspaceType: l,
|
|
651
|
+
initializing: n,
|
|
652
|
+
label: t,
|
|
653
|
+
shorthand: s,
|
|
654
|
+
attemptStatus: i,
|
|
655
|
+
sessionStatus: c,
|
|
656
|
+
showLeadingSessionIndicator: a,
|
|
657
|
+
diffAdditions: f,
|
|
658
|
+
diffDeletions: u,
|
|
659
|
+
hasMultipleWorkspaces: p,
|
|
660
|
+
onClick: d,
|
|
661
|
+
onDropdownClick: m,
|
|
662
|
+
onSessionIndicatorClick: C
|
|
663
|
+
} = r, h = n === void 0 ? !1 : n, y = a === void 0 ? !0 : a, _ = p === void 0 ? !1 : p, b = d || m || _ ? "pointer" : "default";
|
|
664
|
+
let S;
|
|
665
|
+
e[0] !== d ? (S = d ? (A) => Dt(A, d) : void 0, e[0] = d, e[1] = S) : S = e[1];
|
|
666
|
+
let k;
|
|
667
|
+
e[2] !== C || e[3] !== c || e[4] !== y ? (k = y ? /* @__PURE__ */ o(Vt, { sessionStatus: c, onSessionIndicatorClick: C }) : null, e[2] = C, e[3] = c, e[4] = y, e[5] = k) : k = e[5];
|
|
668
|
+
let I;
|
|
669
|
+
e[6] !== h || e[7] !== t || e[8] !== s || e[9] !== l ? (I = /* @__PURE__ */ o(Ht, { workspaceType: l, initializing: h, label: t, shorthand: s }), e[6] = h, e[7] = t, e[8] = s, e[9] = l, e[10] = I) : I = e[10];
|
|
670
|
+
let $;
|
|
671
|
+
e[11] !== i ? ($ = /* @__PURE__ */ o(Ft, { attemptStatus: i }), e[11] = i, e[12] = $) : $ = e[12];
|
|
672
|
+
let W;
|
|
673
|
+
e[13] !== f || e[14] !== u ? (W = /* @__PURE__ */ o(Mt, { diffAdditions: f, diffDeletions: u }), e[13] = f, e[14] = u, e[15] = W) : W = e[15];
|
|
674
|
+
let g;
|
|
675
|
+
e[16] !== _ || e[17] !== m ? (g = /* @__PURE__ */ o(qt, { hasMultipleWorkspaces: _, onDropdownClick: m }), e[16] = _, e[17] = m, e[18] = g) : g = e[18];
|
|
676
|
+
let T;
|
|
677
|
+
return e[19] !== b || e[20] !== S || e[21] !== k || e[22] !== I || e[23] !== $ || e[24] !== W || e[25] !== g ? (T = /* @__PURE__ */ x(ke, { as: "span", display: "inline-flex", gap: "2xs", alignItems: "center", minW: "0", maxW: "100%", variant: "subtle", ...Pt, textStyle: "label/XS/medium", cursor: b, transition: "background-color 0.2s ease-in-out", onClick: S, "data-testid": "workspace-badge", children: [
|
|
678
|
+
k,
|
|
679
|
+
I,
|
|
680
|
+
$,
|
|
681
|
+
W,
|
|
682
|
+
g
|
|
683
|
+
] }), e[19] = b, e[20] = S, e[21] = k, e[22] = I, e[23] = $, e[24] = W, e[25] = g, e[26] = T) : T = e[26], T;
|
|
684
|
+
}, Gt = (r, e) => r ? /* @__PURE__ */ o(le, { as: e ? xt : Ct, boxSize: "14px", color: e ? "fg" : "fg.muted" }) : e ? /* @__PURE__ */ o(le, { as: yt, boxSize: "14px", color: "fg" }) : null, Pe = (r, e) => r ? /* @__PURE__ */ o(le, { as: Ee(r.icon ?? null), boxSize: e, color: r.color ? `${r.color}.500` : "fg.muted" }) : null, Kt = (r) => {
|
|
685
|
+
const e = V(29), {
|
|
686
|
+
triggerLabel: l,
|
|
687
|
+
options: n,
|
|
688
|
+
selectedIds: t,
|
|
689
|
+
multiSelect: s,
|
|
690
|
+
disabled: i,
|
|
691
|
+
fullWidth: c,
|
|
692
|
+
onToggle: a
|
|
693
|
+
} = r, f = !s, u = c ? "100%" : void 0;
|
|
694
|
+
let p, d, m, C;
|
|
695
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = {
|
|
696
|
+
bg: "bg.hover",
|
|
697
|
+
borderColor: "border.accent-light"
|
|
698
|
+
}, d = {
|
|
699
|
+
bg: "bg.active",
|
|
700
|
+
borderColor: "border.accent-light"
|
|
701
|
+
}, m = {
|
|
702
|
+
bg: "bg.active",
|
|
703
|
+
borderColor: "border.accent-light"
|
|
704
|
+
}, C = {
|
|
705
|
+
borderColor: "border.accent-light",
|
|
706
|
+
outline: "none",
|
|
707
|
+
boxShadow: "none"
|
|
708
|
+
}, e[0] = p, e[1] = d, e[2] = m, e[3] = C) : (p = e[0], d = e[1], m = e[2], C = e[3]);
|
|
709
|
+
const h = c ? "full" : void 0;
|
|
710
|
+
let y;
|
|
711
|
+
e[4] !== l ? (y = /* @__PURE__ */ o(K, { alignItems: "center", gap: "xs", children: l }), e[4] = l, e[5] = y) : y = e[5];
|
|
712
|
+
let _;
|
|
713
|
+
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ o(Re, { size: 14 }), e[6] = _) : _ = e[6];
|
|
714
|
+
let b;
|
|
715
|
+
e[7] !== h || e[8] !== y ? (b = /* @__PURE__ */ x(K, { alignItems: "center", justifyContent: "space-between", gap: "xs", w: h, children: [
|
|
716
|
+
y,
|
|
717
|
+
_
|
|
718
|
+
] }), e[7] = h, e[8] = y, e[9] = b) : b = e[9];
|
|
719
|
+
let S;
|
|
720
|
+
e[10] !== i || e[11] !== u || e[12] !== b ? (S = /* @__PURE__ */ o(he.Trigger, { asChild: !0, children: /* @__PURE__ */ o(Be, { size: "sm", borderWidth: "1px", borderStyle: "solid", borderColor: "border", disabled: i, textStyle: "label/S/regular", width: u, _hover: p, _active: d, _expanded: m, _focusVisible: C, children: b }) }), e[10] = i, e[11] = u, e[12] = b, e[13] = S) : S = e[13];
|
|
721
|
+
let k;
|
|
722
|
+
if (e[14] !== s || e[15] !== a || e[16] !== n || e[17] !== t) {
|
|
723
|
+
let W;
|
|
724
|
+
e[19] !== s || e[20] !== a || e[21] !== t ? (W = (g) => {
|
|
725
|
+
const T = t.includes(g.id);
|
|
726
|
+
return /* @__PURE__ */ o(he.Item, { value: g.id, asChild: !0, children: /* @__PURE__ */ o(kt, { asChild: !0, variant: "full-width", role: s ? "menuitemcheckbox" : "menuitemradio", "aria-checked": T, id: g.id, label: g.name, icon: Pe(g, "16px"), tooltip: g.description, isSelected: T, endContent: Gt(s, T), onActivate: () => a(g.id) }) }, g.id);
|
|
727
|
+
}, e[19] = s, e[20] = a, e[21] = t, e[22] = W) : W = e[22], k = n.map(W), e[14] = s, e[15] = a, e[16] = n, e[17] = t, e[18] = k;
|
|
728
|
+
} else
|
|
729
|
+
k = e[18];
|
|
730
|
+
let I;
|
|
731
|
+
e[23] !== k ? (I = /* @__PURE__ */ o(he.Positioner, { children: /* @__PURE__ */ o(he.Content, { children: k }) }), e[23] = k, e[24] = I) : I = e[24];
|
|
732
|
+
let $;
|
|
733
|
+
return e[25] !== f || e[26] !== S || e[27] !== I ? ($ = /* @__PURE__ */ x(he.Root, { closeOnSelect: f, children: [
|
|
734
|
+
S,
|
|
735
|
+
I
|
|
736
|
+
] }), e[25] = f, e[26] = S, e[27] = I, e[28] = $) : $ = e[28], $;
|
|
737
|
+
}, fl = (r) => {
|
|
738
|
+
const e = V(71), {
|
|
739
|
+
id: l,
|
|
740
|
+
defaultValue: n,
|
|
741
|
+
name: t,
|
|
742
|
+
options: s,
|
|
743
|
+
onChange: i,
|
|
744
|
+
description: c,
|
|
745
|
+
readOnly: a,
|
|
746
|
+
hideLabel: f,
|
|
747
|
+
multiSelect: u,
|
|
748
|
+
placeholder: p,
|
|
749
|
+
fullWidth: d,
|
|
750
|
+
clearable: m,
|
|
751
|
+
disabled: C
|
|
752
|
+
} = r, h = f === void 0 ? !1 : f, y = u === void 0 ? !1 : u, _ = d === void 0 ? !1 : d, b = m === void 0 ? !1 : m, S = C === void 0 ? !1 : C, [k, I] = be(n), $ = ae(null);
|
|
753
|
+
let W;
|
|
754
|
+
e[0] !== l || e[1] !== i ? (W = (R) => {
|
|
755
|
+
$.current && clearTimeout($.current), $.current = setTimeout(() => i(l, R), 540);
|
|
756
|
+
}, e[0] = l, e[1] = i, e[2] = W) : W = e[2];
|
|
757
|
+
const g = W;
|
|
758
|
+
let T, A;
|
|
759
|
+
e[3] !== n ? (T = () => {
|
|
760
|
+
I(n);
|
|
761
|
+
}, A = [n], e[3] = n, e[4] = T, e[5] = A) : (T = e[4], A = e[5]), pe(T, A);
|
|
762
|
+
let O;
|
|
763
|
+
e[6] !== y || e[7] !== k ? (O = y ? Array.isArray(k) ? k : [] : typeof k == "string" && k ? [k] : [], e[6] = y, e[7] = k, e[8] = O) : O = e[8];
|
|
764
|
+
const v = O;
|
|
765
|
+
let L;
|
|
766
|
+
e[9] !== s || e[10] !== p || e[11] !== v ? (L = () => {
|
|
767
|
+
const R = v.map((D) => s.find((M) => M.id === D)?.name).filter(Ut);
|
|
768
|
+
return R.length === 0 ? p || "Select" : R.length <= 3 ? R.join(", ") : `${R.slice(0, 3).join(", ")} +${(R.length - 3).toString()}`;
|
|
769
|
+
}, e[9] = s, e[10] = p, e[11] = v, e[12] = L) : L = e[12];
|
|
770
|
+
const j = L;
|
|
771
|
+
let w;
|
|
772
|
+
e[13] !== g ? (w = (R) => {
|
|
773
|
+
I(R), g(R);
|
|
774
|
+
}, e[13] = g, e[14] = w) : w = e[14];
|
|
775
|
+
const z = w;
|
|
776
|
+
let H;
|
|
777
|
+
e[15] !== b || e[16] !== z || e[17] !== y || e[18] !== v ? (H = (R) => {
|
|
778
|
+
if (!y) {
|
|
779
|
+
z(b && v.includes(R) ? "" : R);
|
|
780
|
+
return;
|
|
781
|
+
}
|
|
782
|
+
z(v.includes(R) ? v.filter((D) => D !== R) : [...v, R]);
|
|
783
|
+
}, e[15] = b, e[16] = z, e[17] = y, e[18] = v, e[19] = H) : H = e[19];
|
|
784
|
+
const U = H;
|
|
785
|
+
let F, P, J, q;
|
|
786
|
+
if (e[20] !== c || e[21] !== _ || e[22] !== j || e[23] !== h || e[24] !== t || e[25] !== s || e[26] !== a || e[27] !== v[0] || e[28] !== v.length) {
|
|
787
|
+
q = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
788
|
+
e: {
|
|
789
|
+
const R = v.length === 1 ? s.find((M) => M.id === v[0]) : void 0;
|
|
790
|
+
let D;
|
|
791
|
+
if (e[33] !== c || e[34] !== h || e[35] !== t ? (D = h ? null : /* @__PURE__ */ o(G, { name: t, description: c }), e[33] = c, e[34] = h, e[35] = t, e[36] = D) : D = e[36], P = D, a) {
|
|
792
|
+
let M;
|
|
793
|
+
e[37] !== j ? (M = j(), e[37] = j, e[38] = M) : M = e[38];
|
|
794
|
+
let re;
|
|
795
|
+
e[39] !== M ? (re = /* @__PURE__ */ o(ue, { children: M }), e[39] = M, e[40] = re) : re = e[40];
|
|
796
|
+
const ee = re;
|
|
797
|
+
if (_) {
|
|
798
|
+
let N;
|
|
799
|
+
e[41] !== P ? (N = P ? /* @__PURE__ */ o(E, { mb: "xs", children: P }) : null, e[41] = P, e[42] = N) : N = e[42];
|
|
800
|
+
let B;
|
|
801
|
+
e[43] !== N || e[44] !== ee ? (B = /* @__PURE__ */ x(E, { children: [
|
|
802
|
+
N,
|
|
803
|
+
ee
|
|
804
|
+
] }), e[43] = N, e[44] = ee, e[45] = B) : B = e[45], q = B;
|
|
805
|
+
break e;
|
|
806
|
+
}
|
|
807
|
+
let oe;
|
|
808
|
+
e[46] !== P || e[47] !== ee ? (oe = /* @__PURE__ */ o(E, { children: /* @__PURE__ */ x(K, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
|
|
809
|
+
P,
|
|
810
|
+
ee
|
|
811
|
+
] }) }), e[46] = P, e[47] = ee, e[48] = oe) : oe = e[48], q = oe;
|
|
812
|
+
break e;
|
|
813
|
+
}
|
|
814
|
+
F = Kt, J = Pe(R, "14px");
|
|
815
|
+
}
|
|
816
|
+
e[20] = c, e[21] = _, e[22] = j, e[23] = h, e[24] = t, e[25] = s, e[26] = a, e[27] = v[0], e[28] = v.length, e[29] = F, e[30] = P, e[31] = J, e[32] = q;
|
|
817
|
+
} else
|
|
818
|
+
F = e[29], P = e[30], J = e[31], q = e[32];
|
|
819
|
+
if (q !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
|
|
820
|
+
return q;
|
|
821
|
+
let Z;
|
|
822
|
+
e[49] !== j ? (Z = j(), e[49] = j, e[50] = Z) : Z = e[50];
|
|
823
|
+
let X;
|
|
824
|
+
e[51] !== J || e[52] !== Z ? (X = /* @__PURE__ */ x(Le, { children: [
|
|
825
|
+
J,
|
|
826
|
+
Z
|
|
827
|
+
] }), e[51] = J, e[52] = Z, e[53] = X) : X = e[53];
|
|
828
|
+
let ne;
|
|
829
|
+
e[54] !== F || e[55] !== S || e[56] !== _ || e[57] !== U || e[58] !== y || e[59] !== s || e[60] !== v || e[61] !== X ? (ne = /* @__PURE__ */ o(F, { triggerLabel: X, options: s, selectedIds: v, multiSelect: y, disabled: S, fullWidth: _, onToggle: U }), e[54] = F, e[55] = S, e[56] = _, e[57] = U, e[58] = y, e[59] = s, e[60] = v, e[61] = X, e[62] = ne) : ne = e[62];
|
|
830
|
+
const Q = ne;
|
|
831
|
+
if (_) {
|
|
832
|
+
let R;
|
|
833
|
+
e[63] !== P ? (R = P ? /* @__PURE__ */ o(E, { mb: "xs", children: P }) : null, e[63] = P, e[64] = R) : R = e[64];
|
|
834
|
+
let D;
|
|
835
|
+
return e[65] !== Q || e[66] !== R ? (D = /* @__PURE__ */ x(E, { children: [
|
|
836
|
+
R,
|
|
837
|
+
Q
|
|
838
|
+
] }), e[65] = Q, e[66] = R, e[67] = D) : D = e[67], D;
|
|
839
|
+
}
|
|
840
|
+
let ie;
|
|
841
|
+
return e[68] !== P || e[69] !== Q ? (ie = /* @__PURE__ */ o(E, { children: /* @__PURE__ */ x(K, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
|
|
842
|
+
P,
|
|
843
|
+
Q
|
|
844
|
+
] }) }), e[68] = P, e[69] = Q, e[70] = ie) : ie = e[70], ie;
|
|
845
|
+
};
|
|
846
|
+
function Ut(r) {
|
|
847
|
+
return !!r;
|
|
848
|
+
}
|
|
849
|
+
const ye = (r) => r === null || r === "" ? "Not provided" : typeof r == "boolean" ? r ? "Yes" : "No" : String(r), Xt = (r) => {
|
|
850
|
+
const e = V(24), {
|
|
851
|
+
value: l
|
|
852
|
+
} = r;
|
|
853
|
+
if (Array.isArray(l)) {
|
|
854
|
+
if (l.length === 0) {
|
|
855
|
+
let a;
|
|
856
|
+
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ o(ue, { color: "fg.muted", children: "None" }), e[0] = a) : a = e[0], a;
|
|
857
|
+
}
|
|
858
|
+
let i;
|
|
859
|
+
e[1] !== l ? (i = l.map(Qt), e[1] = l, e[2] = i) : i = e[2];
|
|
860
|
+
let c;
|
|
861
|
+
return e[3] !== i ? (c = /* @__PURE__ */ o(ge, { gap: "2xs", flexWrap: "wrap", children: i }), e[3] = i, e[4] = c) : c = e[4], c;
|
|
862
|
+
}
|
|
863
|
+
if (typeof l == "object" && l !== null) {
|
|
864
|
+
let i;
|
|
865
|
+
e[5] !== l.alt || e[6] !== l.images || e[7] !== l.src || e[8] !== l.type ? (i = l.type === "image" ? [{
|
|
866
|
+
src: l.src,
|
|
867
|
+
alt: l.alt
|
|
868
|
+
}] : l.images, e[5] = l.alt, e[6] = l.images, e[7] = l.src, e[8] = l.type, e[9] = i) : i = e[9];
|
|
869
|
+
const c = i;
|
|
870
|
+
let a;
|
|
871
|
+
e[10] !== c ? (a = c.map(Yt), e[10] = c, e[11] = a) : a = e[11];
|
|
872
|
+
let f;
|
|
873
|
+
return e[12] !== a ? (f = /* @__PURE__ */ o(ge, { gap: "2xs", flexWrap: "wrap", children: a }), e[12] = a, e[13] = f) : f = e[13], f;
|
|
874
|
+
}
|
|
875
|
+
if (typeof l == "boolean") {
|
|
876
|
+
const i = l ? "green" : "gray";
|
|
877
|
+
let c;
|
|
878
|
+
e[14] !== l ? (c = ye(l), e[14] = l, e[15] = c) : c = e[15];
|
|
879
|
+
let a;
|
|
880
|
+
return e[16] !== i || e[17] !== c ? (a = /* @__PURE__ */ o(ke, { variant: "subtle", colorPalette: i, width: "fit-content", children: c }), e[16] = i, e[17] = c, e[18] = a) : a = e[18], a;
|
|
881
|
+
}
|
|
882
|
+
const n = l === null || l === "" ? "fg.muted" : "fg";
|
|
883
|
+
let t;
|
|
884
|
+
e[19] !== l ? (t = ye(l), e[19] = l, e[20] = t) : t = e[20];
|
|
885
|
+
let s;
|
|
886
|
+
return e[21] !== n || e[22] !== t ? (s = /* @__PURE__ */ o(ue, { color: n, children: t }), e[21] = n, e[22] = t, e[23] = s) : s = e[23], s;
|
|
887
|
+
}, hl = (r) => {
|
|
888
|
+
const e = V(7), {
|
|
889
|
+
param: l,
|
|
890
|
+
fullWidth: n
|
|
891
|
+
} = r;
|
|
892
|
+
let t;
|
|
893
|
+
e[0] !== l.value ? (t = /* @__PURE__ */ o(Xt, { value: l.value }), e[0] = l.value, e[1] = t) : t = e[1];
|
|
894
|
+
let s;
|
|
895
|
+
return e[2] !== n || e[3] !== l.description || e[4] !== l.name || e[5] !== t ? (s = /* @__PURE__ */ o(It, { name: l.name, description: l.description, fullWidth: n, children: t }), e[2] = n, e[3] = l.description, e[4] = l.name, e[5] = t, e[6] = s) : s = e[6], s;
|
|
896
|
+
};
|
|
897
|
+
function Qt(r, e) {
|
|
898
|
+
return /* @__PURE__ */ o(ke, { variant: "subtle", colorPalette: "gray", children: ye(r) }, `${String(r)}-${e}`);
|
|
899
|
+
}
|
|
900
|
+
function Yt(r) {
|
|
901
|
+
return /* @__PURE__ */ o(De, { src: r.src, alt: r.alt, width: "96px", height: "72px", borderRadius: "sm", borderWidth: "1px", borderColor: "border.subtle", objectFit: "cover" }, `${r.src}-${r.alt}`);
|
|
902
|
+
}
|
|
903
|
+
export {
|
|
904
|
+
sl as C,
|
|
905
|
+
cl as D,
|
|
906
|
+
dl as I,
|
|
907
|
+
al as N,
|
|
908
|
+
G as P,
|
|
909
|
+
fl as S,
|
|
910
|
+
ul as W,
|
|
911
|
+
ue as a,
|
|
912
|
+
hl as b,
|
|
913
|
+
$e as c,
|
|
914
|
+
Te as d,
|
|
915
|
+
It as e,
|
|
916
|
+
Wt as f,
|
|
917
|
+
Ee as g,
|
|
918
|
+
Kt as h,
|
|
919
|
+
At as i,
|
|
920
|
+
Ae as j,
|
|
921
|
+
zt as k,
|
|
922
|
+
Lt as o,
|
|
923
|
+
Rt as r
|
|
924
|
+
};
|
|
925
|
+
//# sourceMappingURL=param-editor-read-only-field-DgtLqcFa.js.map
|