@pstdio/ui 0.40.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-81jr28u4.js → MermaidComponent-D7vhkpka.js} +3 -3
- package/dist/{MermaidComponent-81jr28u4.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 +129 -23
- package/dist/chat-ui.js +2596 -1591
- package/dist/chat-ui.js.map +1 -1
- package/dist/{types-DWA3enV6.d.ts → collection-view-fields-D3cysHNT.d.ts} +87 -37
- 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-CpRe_xK2.js → data-table-stats-row-64magT2g.js} +2 -2
- package/dist/{data-table-stats-row-CpRe_xK2.js.map → data-table-stats-row-64magT2g.js.map} +1 -1
- package/dist/data-table.d.ts +29 -7
- package/dist/data-table.js +1043 -878
- package/dist/data-table.js.map +1 -1
- package/dist/diff-bubble-DewUd_2w.js +61 -0
- package/dist/diff-bubble-DewUd_2w.js.map +1 -0
- package/dist/{diff-drawer-45rpk3aq.js → diff-drawer-IYpQ-QQK.js} +264 -242
- package/dist/diff-drawer-IYpQ-QQK.js.map +1 -0
- package/dist/diff-viewer-C-0VAt9P.js +574 -0
- package/dist/diff-viewer-C-0VAt9P.js.map +1 -0
- package/dist/diff.d.ts +11 -0
- package/dist/diff.js +107 -98
- package/dist/diff.js.map +1 -1
- package/dist/display-sort-control-f3rbILsV.js +588 -0
- package/dist/display-sort-control-f3rbILsV.js.map +1 -0
- 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/{slider-hwHYe98I.js → icon-options-Tt6Wzhtv.js} +86 -201
- package/dist/icon-options-Tt6Wzhtv.js.map +1 -0
- package/dist/{index-Bfddrlz8.d.ts → index-B79hwNcB.d.ts} +66 -14
- package/dist/index-CKsd23jv.d.ts +80 -0
- package/dist/{index-CbtbcvKm.d.ts → index-DlmvvQ6x.d.ts} +1 -1
- package/dist/index-ICoad2I_.d.ts +282 -0
- package/dist/index.d.ts +63 -22
- package/dist/index.js +1149 -1054
- package/dist/index.js.map +1 -1
- package/dist/kanban-renderer.d.ts +3 -326
- package/dist/kanban-renderer.js +980 -596
- 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/{mermaid-renderer-DImi0fDp.js → mermaid-renderer-0PmNkOXI.js} +29 -29
- package/dist/mermaid-renderer-0PmNkOXI.js.map +1 -0
- package/dist/mermaid.js +1 -1
- package/dist/number-input-7K66wnSC.js +63 -0
- package/dist/number-input-7K66wnSC.js.map +1 -0
- package/dist/{param-editor-BQd4AOUP.js → param-editor-Dnix-fJo.js} +2 -2
- package/dist/{param-editor-BQd4AOUP.js.map → param-editor-Dnix-fJo.js.map} +1 -1
- package/dist/{param-editor-field-BJ_rLUnV.js → param-editor-field-B3vLST-B.js} +1436 -1427
- package/dist/param-editor-field-B3vLST-B.js.map +1 -0
- package/dist/param-editor.js +4 -3
- 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/{resource-badge-95WPVlZf.d.ts → resource-badge-nOWPqxFU.d.ts} +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 +2 -2
- package/dist/rich-text.js +4 -2
- package/dist/style.css +1 -1
- package/dist/terminal.d.ts +5 -63
- package/dist/terminal.js +102 -122
- package/dist/terminal.js.map +1 -1
- package/dist/{theme-CbmSEbRF.js → theme-CMJdH59Z.js} +589 -265
- package/dist/theme-CMJdH59Z.js.map +1 -0
- package/dist/theme-kKuLN2jb.js +80 -0
- package/dist/theme-kKuLN2jb.js.map +1 -0
- package/dist/theme-preference-BV4cbJNB.js +115 -0
- package/dist/theme-preference-BV4cbJNB.js.map +1 -0
- package/dist/theme.js +3 -2
- 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/{workspace-badge-Brm3Xr3m.d.ts → workspace-badge-BKtB805G.d.ts} +5 -1
- package/package.json +8 -4
- package/dist/diff-bubble-DZsarmSG.js +0 -61
- package/dist/diff-bubble-DZsarmSG.js.map +0 -1
- package/dist/diff-drawer-45rpk3aq.js.map +0 -1
- package/dist/diff-viewer-BP_mI6Wx.js +0 -558
- package/dist/diff-viewer-BP_mI6Wx.js.map +0 -1
- package/dist/list-row-uqD-q4gv.js +0 -1018
- package/dist/list-row-uqD-q4gv.js.map +0 -1
- package/dist/mermaid-renderer-DImi0fDp.js.map +0 -1
- package/dist/param-editor-field-BJ_rLUnV.js.map +0 -1
- package/dist/prism-BStPsJSB.js +0 -658
- package/dist/prism-BStPsJSB.js.map +0 -1
- package/dist/rich-text-VYAmEigU.js +0 -6979
- package/dist/rich-text-VYAmEigU.js.map +0 -1
- package/dist/slider-hwHYe98I.js.map +0 -1
- package/dist/theme-CbmSEbRF.js.map +0 -1
- package/dist/theme-preference-pzfuK5cH.js +0 -101
- package/dist/theme-preference-pzfuK5cH.js.map +0 -1
- package/dist/tree-list-BNZwjQZA.js +0 -1616
- package/dist/tree-list-BNZwjQZA.js.map +0 -1
|
@@ -1,829 +1,79 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n } from "./
|
|
3
|
-
import {
|
|
4
|
-
import { n as
|
|
5
|
-
import { _ as u, p as d, v as f } from "./rich-text-VYAmEigU.js";
|
|
1
|
+
import { i as e, r as t, t as n } from "./list-row-Z4SHkseA.js";
|
|
2
|
+
import { i as r, n as i, o as a, r as o, s, t as c } from "./prism-OG4H7Hu4.js";
|
|
3
|
+
import { t as l } from "./icon-options-Tt6Wzhtv.js";
|
|
4
|
+
import { n as u, r as d, t as f } from "./number-input-7K66wnSC.js";
|
|
6
5
|
import { Badge as p, Box as m, Button as h, ColorPicker as g, Flex as _, Grid as v, Group as y, HStack as b, Icon as x, IconButton as S, Image as C, Input as w, Menu as T, Popover as E, Portal as D, Spinner as O, Stack as k, Text as A, Textarea as j, Wrap as M, parseColor as N } from "@chakra-ui/react";
|
|
7
6
|
import { c as P } from "react/compiler-runtime";
|
|
8
7
|
import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
|
|
9
8
|
import { useEffect as R, useRef as z, useState as B } from "react";
|
|
10
|
-
import { Check as V, ChevronDown as H, CircleAlert as U, CircleCheck as W, Clock3 as G,
|
|
11
|
-
//#region src/components/param-editor/param-editor-
|
|
9
|
+
import { Check as V, ChevronDown as H, CircleAlert as U, CircleCheck as W, Clock3 as G, Paperclip as K, Plus as q, Square as J, SquareCheck as Y } from "lucide-react";
|
|
10
|
+
//#region src/components/param-editor/param-editor-control-item.tsx
|
|
12
11
|
var X = (e) => {
|
|
13
|
-
let t = P(
|
|
14
|
-
t[0] !== r || t[1] !==
|
|
15
|
-
textStyle: s,
|
|
16
|
-
color: "fg.muted",
|
|
17
|
-
letterSpacing: c,
|
|
18
|
-
textTransform: l,
|
|
19
|
-
truncate: !0,
|
|
20
|
-
children: r
|
|
21
|
-
}), t[0] = r, t[1] = s, t[2] = c, t[3] = l, t[4] = u) : u = t[4];
|
|
22
|
-
let d;
|
|
23
|
-
t[5] !== i || t[6] !== r ? (d = i ? /* @__PURE__ */ I(n, {
|
|
24
|
-
content: i,
|
|
25
|
-
portalled: !1,
|
|
26
|
-
positioning: {
|
|
27
|
-
placement: "bottom-start",
|
|
28
|
-
strategy: "fixed",
|
|
29
|
-
hideWhenDetached: !0
|
|
30
|
-
},
|
|
31
|
-
children: /* @__PURE__ */ I(x, {
|
|
32
|
-
asChild: !0,
|
|
33
|
-
role: "img",
|
|
34
|
-
"aria-label": `About ${r}`,
|
|
35
|
-
"aria-hidden": !1,
|
|
36
|
-
focusable: "true",
|
|
37
|
-
tabIndex: 0,
|
|
38
|
-
boxSize: "3",
|
|
39
|
-
color: "fg.muted",
|
|
40
|
-
flexShrink: 0,
|
|
41
|
-
children: /* @__PURE__ */ I(K, {})
|
|
42
|
-
})
|
|
43
|
-
}) : null, t[5] = i, t[6] = r, t[7] = d) : d = t[7];
|
|
44
|
-
let f;
|
|
45
|
-
return t[8] !== u || t[9] !== d ? (f = /* @__PURE__ */ L(b, {
|
|
46
|
-
gap: "1",
|
|
47
|
-
alignItems: "center",
|
|
48
|
-
minW: "0",
|
|
49
|
-
children: [u, d]
|
|
50
|
-
}), t[8] = u, t[9] = d, t[10] = f) : f = t[10], f;
|
|
51
|
-
}, Z = (e) => {
|
|
52
|
-
let t = P(17), { name: n, description: r, hideLabel: i, fullWidth: a, orientation: o, labelTrailing: s, children: c } = e, l = i !== void 0 && i, u = a !== void 0 && a, d = o === void 0 ? "auto" : o, f;
|
|
53
|
-
t[0] !== r || t[1] !== l || t[2] !== n ? (f = l || !n ? null : /* @__PURE__ */ I(X, {
|
|
12
|
+
let t = P(17), { name: n, description: r, hideLabel: i, fullWidth: a, orientation: o, labelTrailing: s, children: c } = e, l = i !== void 0 && i, u = a !== void 0 && a, f = o === void 0 ? "auto" : o, p;
|
|
13
|
+
t[0] !== r || t[1] !== l || t[2] !== n ? (p = l || !n ? null : /* @__PURE__ */ I(d, {
|
|
54
14
|
name: n,
|
|
55
15
|
description: r
|
|
56
|
-
}), t[0] = r, t[1] = l, t[2] = n, t[3] =
|
|
57
|
-
let
|
|
58
|
-
if ((
|
|
59
|
-
let e =
|
|
60
|
-
t[4] !== e || t[5] !==
|
|
16
|
+
}), t[0] = r, t[1] = l, t[2] = n, t[3] = p) : p = t[3];
|
|
17
|
+
let h = p;
|
|
18
|
+
if ((f === "auto" ? u ? "stacked" : "inline" : f) === "stacked") {
|
|
19
|
+
let e = h || s, n;
|
|
20
|
+
t[4] !== e || t[5] !== h || t[6] !== s ? (n = e ? /* @__PURE__ */ L(_, {
|
|
61
21
|
alignItems: "center",
|
|
62
22
|
justifyContent: "space-between",
|
|
63
23
|
gap: "xs",
|
|
64
24
|
mb: "xs",
|
|
65
25
|
minW: "0",
|
|
66
|
-
children: [
|
|
67
|
-
}) : null, t[4] = e, t[5] =
|
|
26
|
+
children: [h, s]
|
|
27
|
+
}) : null, t[4] = e, t[5] = h, t[6] = s, t[7] = n) : n = t[7];
|
|
68
28
|
let r;
|
|
69
29
|
return t[8] !== c || t[9] !== n ? (r = /* @__PURE__ */ L(m, {
|
|
70
30
|
minW: "0",
|
|
71
31
|
children: [n, c]
|
|
72
32
|
}), t[8] = c, t[9] = n, t[10] = r) : r = t[10], r;
|
|
73
33
|
}
|
|
74
|
-
let h;
|
|
75
|
-
t[11] !== c || t[12] !== s ? (h = /* @__PURE__ */ L(_, {
|
|
76
|
-
alignItems: "center",
|
|
77
|
-
gap: "xs",
|
|
78
|
-
minW: "0",
|
|
79
|
-
children: [s, c]
|
|
80
|
-
}), t[11] = c, t[12] = s, t[13] = h) : h = t[13];
|
|
81
34
|
let g;
|
|
82
|
-
|
|
35
|
+
t[11] !== c || t[12] !== s ? (g = /* @__PURE__ */ L(_, {
|
|
83
36
|
alignItems: "center",
|
|
84
|
-
justifyContent: "space-between",
|
|
85
|
-
minHeight: "2rem",
|
|
86
37
|
gap: "xs",
|
|
87
38
|
minW: "0",
|
|
88
|
-
children: [
|
|
89
|
-
}), t[
|
|
90
|
-
}, Q = (e) => {
|
|
91
|
-
let t = P(8), n, r, i;
|
|
92
|
-
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({children: r, preserveWhitespace: i, ...n} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
93
|
-
let a = i !== void 0 && i ? "pre-wrap" : void 0, o;
|
|
94
|
-
return t[4] !== n || t[5] !== r || t[6] !== a ? (o = /* @__PURE__ */ I(m, {
|
|
95
|
-
minW: "0",
|
|
96
|
-
textStyle: "label/S/regular",
|
|
97
|
-
whiteSpace: a,
|
|
98
|
-
...n,
|
|
99
|
-
children: r
|
|
100
|
-
}), t[4] = n, t[5] = r, t[6] = a, t[7] = o) : o = t[7], o;
|
|
101
|
-
}, te = (t) => {
|
|
102
|
-
let n = P(27), { id: r, name: i, description: a, defaultValue: o, onChange: s, readOnly: c, hideLabel: l, fullWidth: u, size: d } = t, f = d === void 0 ? "sm" : d, [p, m] = B(o), h, g;
|
|
103
|
-
if (n[0] === o ? (h = n[1], g = n[2]) : (h = () => {
|
|
104
|
-
m(o);
|
|
105
|
-
}, g = [o], n[0] = o, n[1] = h, n[2] = g), R(h, g), c) {
|
|
106
|
-
let e = String(p), t;
|
|
107
|
-
n[3] === e ? t = n[4] : (t = /* @__PURE__ */ I(Q, { children: e }), n[3] = e, n[4] = t);
|
|
108
|
-
let r;
|
|
109
|
-
return n[5] !== a || n[6] !== u || n[7] !== l || n[8] !== i || n[9] !== t ? (r = /* @__PURE__ */ I(Z, {
|
|
110
|
-
name: i,
|
|
111
|
-
description: a,
|
|
112
|
-
hideLabel: l,
|
|
113
|
-
fullWidth: u,
|
|
114
|
-
orientation: "inline",
|
|
115
|
-
children: t
|
|
116
|
-
}), n[5] = a, n[6] = u, n[7] = l, n[8] = i, n[9] = t, n[10] = r) : r = n[10], r;
|
|
117
|
-
}
|
|
118
|
-
let _;
|
|
119
|
-
n[11] === i ? _ = n[12] : (_ = { "aria-label": i }, n[11] = i, n[12] = _);
|
|
39
|
+
children: [s, c]
|
|
40
|
+
}), t[11] = c, t[12] = s, t[13] = g) : g = t[13];
|
|
120
41
|
let v;
|
|
121
|
-
|
|
122
|
-
m(e.checked), s(r, e.checked);
|
|
123
|
-
}, n[13] = r, n[14] = s, n[15] = v) : v = n[15];
|
|
124
|
-
let y;
|
|
125
|
-
n[16] !== f || n[17] !== _ || n[18] !== v || n[19] !== p ? (y = /* @__PURE__ */ I(e, {
|
|
126
|
-
size: f,
|
|
127
|
-
checked: p,
|
|
128
|
-
inputProps: _,
|
|
129
|
-
onCheckedChange: v
|
|
130
|
-
}), n[16] = f, n[17] = _, n[18] = v, n[19] = p, n[20] = y) : y = n[20];
|
|
131
|
-
let b;
|
|
132
|
-
return n[21] !== a || n[22] !== u || n[23] !== l || n[24] !== i || n[25] !== y ? (b = /* @__PURE__ */ I(Z, {
|
|
133
|
-
name: i,
|
|
134
|
-
description: a,
|
|
135
|
-
hideLabel: l,
|
|
136
|
-
fullWidth: u,
|
|
137
|
-
orientation: "inline",
|
|
138
|
-
children: y
|
|
139
|
-
}), n[21] = a, n[22] = u, n[23] = l, n[24] = i, n[25] = y, n[26] = b) : b = n[26], b;
|
|
140
|
-
}, ne = (e) => {
|
|
141
|
-
let t = P(69), { id: n, defaultValue: r, name: i, onChange: a, description: o, readOnly: s, hideLabel: c, fullWidth: l, size: u } = e, d = c !== void 0 && c, f = l !== void 0 && l, p = u === void 0 ? "sm" : u, [h, v] = B(r), [y, b] = B(!1), x = z(null), S = z(null), C = z(null), w;
|
|
142
|
-
t[0] !== n || t[1] !== a ? (w = (e) => {
|
|
143
|
-
C.current && clearTimeout(C.current), C.current = setTimeout(() => a(n, e), 540);
|
|
144
|
-
}, t[0] = n, t[1] = a, t[2] = w) : w = t[2];
|
|
145
|
-
let T = w, E, D;
|
|
146
|
-
t[3] === r ? (E = t[4], D = t[5]) : (E = () => {
|
|
147
|
-
v(r);
|
|
148
|
-
}, D = [r], t[3] = r, t[4] = E, t[5] = D), R(E, D);
|
|
149
|
-
let O, k;
|
|
150
|
-
t[6] === y ? (O = t[7], k = t[8]) : (O = () => {
|
|
151
|
-
if (!y) return;
|
|
152
|
-
let e = (e) => {
|
|
153
|
-
let t = e;
|
|
154
|
-
return x.current?.contains(t) || S.current?.contains(t);
|
|
155
|
-
}, t = (t) => {
|
|
156
|
-
e(t.target) || b(!1);
|
|
157
|
-
};
|
|
158
|
-
return document.addEventListener("focusin", t, !0), document.addEventListener("pointerdown", t, !0), document.addEventListener("click", t, !0), () => {
|
|
159
|
-
document.removeEventListener("focusin", t, !0), document.removeEventListener("pointerdown", t, !0), document.removeEventListener("click", t, !0);
|
|
160
|
-
};
|
|
161
|
-
}, k = [y], t[6] = y, t[7] = O, t[8] = k), R(O, k);
|
|
162
|
-
let A;
|
|
163
|
-
t[9] === T ? A = t[10] : (A = (e) => {
|
|
164
|
-
v(e), T(e);
|
|
165
|
-
}, t[9] = T, t[10] = A);
|
|
166
|
-
let j = A, M;
|
|
167
|
-
t[11] === Symbol.for("react.memo_cache_sentinel") ? (M = (e) => {
|
|
168
|
-
let t = e.currentTarget;
|
|
169
|
-
setTimeout(() => {
|
|
170
|
-
t.contains(t.ownerDocument.activeElement) || b(!1);
|
|
171
|
-
});
|
|
172
|
-
}, t[11] = M) : M = t[11];
|
|
173
|
-
let F = M;
|
|
174
|
-
if (s) {
|
|
175
|
-
let e;
|
|
176
|
-
t[12] === h ? e = t[13] : (e = /* @__PURE__ */ I(Q, { children: /* @__PURE__ */ L(_, {
|
|
177
|
-
alignItems: "center",
|
|
178
|
-
gap: "xs",
|
|
179
|
-
children: [/* @__PURE__ */ I(m, {
|
|
180
|
-
boxSize: "0.75rem",
|
|
181
|
-
borderRadius: "xs",
|
|
182
|
-
bg: h
|
|
183
|
-
}), /* @__PURE__ */ I(m, {
|
|
184
|
-
as: "span",
|
|
185
|
-
children: h
|
|
186
|
-
})]
|
|
187
|
-
}) }), t[12] = h, t[13] = e);
|
|
188
|
-
let n = e;
|
|
189
|
-
if (f) {
|
|
190
|
-
let e;
|
|
191
|
-
t[14] !== o || t[15] !== d || t[16] !== i ? (e = !d && /* @__PURE__ */ I(m, {
|
|
192
|
-
mb: "xs",
|
|
193
|
-
children: /* @__PURE__ */ I(X, {
|
|
194
|
-
name: i,
|
|
195
|
-
description: o
|
|
196
|
-
})
|
|
197
|
-
}), t[14] = o, t[15] = d, t[16] = i, t[17] = e) : e = t[17];
|
|
198
|
-
let r;
|
|
199
|
-
return t[18] !== e || t[19] !== n ? (r = /* @__PURE__ */ L(m, { children: [e, n] }), t[18] = e, t[19] = n, t[20] = r) : r = t[20], r;
|
|
200
|
-
}
|
|
201
|
-
let r;
|
|
202
|
-
t[21] !== o || t[22] !== d || t[23] !== i ? (r = !d && /* @__PURE__ */ I(X, {
|
|
203
|
-
name: i,
|
|
204
|
-
description: o
|
|
205
|
-
}), t[21] = o, t[22] = d, t[23] = i, t[24] = r) : r = t[24];
|
|
206
|
-
let a;
|
|
207
|
-
return t[25] !== r || t[26] !== n ? (a = /* @__PURE__ */ I(m, { children: /* @__PURE__ */ L(_, {
|
|
208
|
-
alignItems: "center",
|
|
209
|
-
justifyContent: "space-between",
|
|
210
|
-
minHeight: "2rem",
|
|
211
|
-
gap: "xs",
|
|
212
|
-
children: [r, n]
|
|
213
|
-
}) }), t[25] = r, t[26] = n, t[27] = a) : a = t[27], a;
|
|
214
|
-
}
|
|
215
|
-
let V;
|
|
216
|
-
t[28] === h ? V = t[29] : (V = N(h), t[28] = h, t[29] = V);
|
|
217
|
-
let H, U, W;
|
|
218
|
-
t[30] === Symbol.for("react.memo_cache_sentinel") ? (H = (e) => b(e.open), U = () => b(!1), W = () => b(!1), t[30] = H, t[31] = U, t[32] = W) : (H = t[30], U = t[31], W = t[32]);
|
|
219
|
-
let G;
|
|
220
|
-
t[33] === j ? G = t[34] : (G = (e) => j(e.value.toString("hex")), t[33] = j, t[34] = G);
|
|
221
|
-
let K;
|
|
222
|
-
t[35] !== y || t[36] !== s || t[37] !== V || t[38] !== G ? (K = {
|
|
223
|
-
value: V,
|
|
224
|
-
open: y,
|
|
225
|
-
onOpenChange: H,
|
|
226
|
-
onFocusOutside: U,
|
|
227
|
-
onInteractOutside: W,
|
|
228
|
-
onBlur: F,
|
|
229
|
-
onValueChange: G,
|
|
230
|
-
disabled: s
|
|
231
|
-
}, t[35] = y, t[36] = s, t[37] = V, t[38] = G, t[39] = K) : K = t[39];
|
|
232
|
-
let q = K, J = f ? "100%" : "8.75rem", ee;
|
|
233
|
-
t[40] === Symbol.for("react.memo_cache_sentinel") ? (ee = /* @__PURE__ */ I(g.HiddenInput, {}), t[40] = ee) : ee = t[40];
|
|
234
|
-
let Y;
|
|
235
|
-
t[41] === i ? Y = t[42] : (Y = /* @__PURE__ */ I(g.Label, {
|
|
236
|
-
srOnly: !0,
|
|
237
|
-
children: i
|
|
238
|
-
}), t[41] = i, t[42] = Y);
|
|
239
|
-
let Z;
|
|
240
|
-
t[43] === Symbol.for("react.memo_cache_sentinel") ? (Z = () => b(!1), t[43] = Z) : Z = t[43];
|
|
241
|
-
let te;
|
|
242
|
-
t[44] === s ? te = t[45] : (te = /* @__PURE__ */ I(g.Input, {
|
|
243
|
-
readOnly: s,
|
|
244
|
-
onFocus: Z
|
|
245
|
-
}), t[44] = s, t[45] = te);
|
|
246
|
-
let ne;
|
|
247
|
-
t[46] === Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ I(g.Trigger, {}), t[46] = ne) : ne = t[46];
|
|
248
|
-
let re;
|
|
249
|
-
t[47] === te ? re = t[48] : (re = /* @__PURE__ */ L(g.Control, { children: [te, ne] }), t[47] = te, t[48] = re);
|
|
250
|
-
let ie, ae;
|
|
251
|
-
t[49] === Symbol.for("react.memo_cache_sentinel") ? (ie = /* @__PURE__ */ I(g.Area, {}), ae = /* @__PURE__ */ I(g.Sliders, {}), t[49] = ie, t[50] = ae) : (ie = t[49], ae = t[50]);
|
|
252
|
-
let oe;
|
|
253
|
-
t[51] === h ? oe = t[52] : (oe = /* @__PURE__ */ I(g.Swatch, { value: h }), t[51] = h, t[52] = oe);
|
|
254
|
-
let se;
|
|
255
|
-
t[53] !== oe || t[54] !== h ? (se = /* @__PURE__ */ I(g.Positioner, { children: /* @__PURE__ */ L(g.Content, {
|
|
256
|
-
ref: S,
|
|
257
|
-
onBlur: F,
|
|
258
|
-
children: [
|
|
259
|
-
ie,
|
|
260
|
-
ae,
|
|
261
|
-
/* @__PURE__ */ I(g.SwatchGroup, { children: /* @__PURE__ */ I(g.SwatchTrigger, {
|
|
262
|
-
value: h,
|
|
263
|
-
children: oe
|
|
264
|
-
}) })
|
|
265
|
-
]
|
|
266
|
-
}) }), t[53] = oe, t[54] = h, t[55] = se) : se = t[55];
|
|
267
|
-
let ce;
|
|
268
|
-
t[56] !== q || t[57] !== p || t[58] !== J || t[59] !== Y || t[60] !== re || t[61] !== se ? (ce = /* @__PURE__ */ L(g.Root, {
|
|
269
|
-
ref: x,
|
|
270
|
-
...q,
|
|
271
|
-
size: p,
|
|
272
|
-
width: J,
|
|
273
|
-
maxW: "100%",
|
|
274
|
-
children: [
|
|
275
|
-
ee,
|
|
276
|
-
Y,
|
|
277
|
-
re,
|
|
278
|
-
se
|
|
279
|
-
]
|
|
280
|
-
}), t[56] = q, t[57] = p, t[58] = J, t[59] = Y, t[60] = re, t[61] = se, t[62] = ce) : ce = t[62];
|
|
281
|
-
let le = ce, ue;
|
|
282
|
-
return t[63] !== o || t[64] !== f || t[65] !== d || t[66] !== i || t[67] !== le ? (ue = /* @__PURE__ */ I(m, { children: f ? /* @__PURE__ */ L(m, { children: [!d && /* @__PURE__ */ I(m, {
|
|
283
|
-
mb: "xs",
|
|
284
|
-
children: /* @__PURE__ */ I(X, {
|
|
285
|
-
name: i,
|
|
286
|
-
description: o
|
|
287
|
-
})
|
|
288
|
-
}), le] }) : /* @__PURE__ */ L(_, {
|
|
42
|
+
return t[14] !== h || t[15] !== g ? (v = /* @__PURE__ */ L(_, {
|
|
289
43
|
alignItems: "center",
|
|
290
44
|
justifyContent: "space-between",
|
|
291
|
-
minHeight: "2rem",
|
|
292
|
-
gap: "xs",
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
}, re = (e) => {
|
|
299
|
-
let t = P(35), { id: n, defaultValue: r, name: i, min: a, max: o, onChange: s, description: c, readOnly: l, hideLabel: u, fullWidth: d, size: f } = e, p = u !== void 0 && u, h = d !== void 0 && d, g = f === void 0 ? "sm" : f, [v, y] = B(r), b = z(null), x;
|
|
300
|
-
t[0] !== n || t[1] !== s ? (x = (e) => {
|
|
301
|
-
b.current && clearTimeout(b.current), b.current = setTimeout(() => s(n, e), 540);
|
|
302
|
-
}, t[0] = n, t[1] = s, t[2] = x) : x = t[2];
|
|
303
|
-
let S = x, C, T;
|
|
304
|
-
t[3] === r ? (C = t[4], T = t[5]) : (C = () => {
|
|
305
|
-
y(r);
|
|
306
|
-
}, T = [r], t[3] = r, t[4] = C, t[5] = T), R(C, T);
|
|
307
|
-
let E;
|
|
308
|
-
t[6] === S ? E = t[7] : (E = (e) => {
|
|
309
|
-
y(e), S(e);
|
|
310
|
-
}, t[6] = S, t[7] = E);
|
|
311
|
-
let D = E;
|
|
312
|
-
if (l) {
|
|
313
|
-
let e;
|
|
314
|
-
t[8] === v ? e = t[9] : (e = /* @__PURE__ */ I(Q, { children: v }), t[8] = v, t[9] = e);
|
|
315
|
-
let n = e;
|
|
316
|
-
if (h) {
|
|
317
|
-
let e;
|
|
318
|
-
t[10] !== c || t[11] !== p || t[12] !== i ? (e = !p && /* @__PURE__ */ I(m, {
|
|
319
|
-
mb: "xs",
|
|
320
|
-
children: /* @__PURE__ */ I(X, {
|
|
321
|
-
name: i,
|
|
322
|
-
description: c
|
|
323
|
-
})
|
|
324
|
-
}), t[10] = c, t[11] = p, t[12] = i, t[13] = e) : e = t[13];
|
|
325
|
-
let r;
|
|
326
|
-
return t[14] !== e || t[15] !== n ? (r = /* @__PURE__ */ L(m, { children: [e, n] }), t[14] = e, t[15] = n, t[16] = r) : r = t[16], r;
|
|
327
|
-
}
|
|
328
|
-
let r;
|
|
329
|
-
t[17] !== c || t[18] !== p || t[19] !== i ? (r = !p && /* @__PURE__ */ I(X, {
|
|
330
|
-
name: i,
|
|
331
|
-
description: c
|
|
332
|
-
}), t[17] = c, t[18] = p, t[19] = i, t[20] = r) : r = t[20];
|
|
333
|
-
let a;
|
|
334
|
-
return t[21] !== r || t[22] !== n ? (a = /* @__PURE__ */ I(m, { children: /* @__PURE__ */ L(_, {
|
|
335
|
-
alignItems: "center",
|
|
336
|
-
justifyContent: "space-between",
|
|
337
|
-
minHeight: "2rem",
|
|
338
|
-
gap: "xs",
|
|
339
|
-
children: [r, n]
|
|
340
|
-
}) }), t[21] = r, t[22] = n, t[23] = a) : a = t[23], a;
|
|
341
|
-
}
|
|
342
|
-
let O;
|
|
343
|
-
return t[24] !== c || t[25] !== h || t[26] !== D || t[27] !== p || t[28] !== o || t[29] !== a || t[30] !== i || t[31] !== l || t[32] !== g || t[33] !== v ? (O = /* @__PURE__ */ I(m, { children: h ? /* @__PURE__ */ L(m, { children: [!p && /* @__PURE__ */ I(m, {
|
|
344
|
-
mb: "xs",
|
|
345
|
-
children: /* @__PURE__ */ I(X, {
|
|
346
|
-
name: i,
|
|
347
|
-
description: c
|
|
348
|
-
})
|
|
349
|
-
}), /* @__PURE__ */ I(w, {
|
|
350
|
-
className: "nodrag",
|
|
351
|
-
readOnly: l,
|
|
352
|
-
width: "100%",
|
|
353
|
-
size: g,
|
|
354
|
-
type: "date",
|
|
355
|
-
placeholder: p ? i : void 0,
|
|
356
|
-
value: v,
|
|
357
|
-
min: a,
|
|
358
|
-
max: o,
|
|
359
|
-
onChange: (e) => D(e.target.value),
|
|
360
|
-
onKeyUp: ie
|
|
361
|
-
})] }) : /* @__PURE__ */ L(_, {
|
|
362
|
-
alignItems: "center",
|
|
363
|
-
justifyContent: "space-between",
|
|
364
|
-
minHeight: "2rem",
|
|
365
|
-
gap: "xs",
|
|
366
|
-
children: [!p && /* @__PURE__ */ I(X, {
|
|
367
|
-
name: i,
|
|
368
|
-
description: c
|
|
369
|
-
}), /* @__PURE__ */ I(w, {
|
|
370
|
-
className: "nodrag",
|
|
371
|
-
readOnly: l,
|
|
372
|
-
width: "8.75rem",
|
|
373
|
-
size: g,
|
|
374
|
-
type: "date",
|
|
375
|
-
placeholder: p ? i : void 0,
|
|
376
|
-
value: v,
|
|
377
|
-
min: a,
|
|
378
|
-
max: o,
|
|
379
|
-
onChange: (e) => D(e.target.value),
|
|
380
|
-
onKeyUp: ae
|
|
381
|
-
})]
|
|
382
|
-
}) }), t[24] = c, t[25] = h, t[26] = D, t[27] = p, t[28] = o, t[29] = a, t[30] = i, t[31] = l, t[32] = g, t[33] = v, t[34] = O) : O = t[34], O;
|
|
383
|
-
};
|
|
384
|
-
function ie(e) {
|
|
385
|
-
e.key === "Enter" && e.currentTarget.blur();
|
|
386
|
-
}
|
|
387
|
-
function ae(e) {
|
|
388
|
-
e.key === "Enter" && e.currentTarget.blur();
|
|
389
|
-
}
|
|
390
|
-
//#endregion
|
|
391
|
-
//#region src/components/param-editor/inputs/horizontal-text-input.tsx
|
|
392
|
-
var oe = (e) => {
|
|
393
|
-
let t = P(33), { id: n, defaultValue: r, name: i, onChange: a, description: o, readOnly: s, hideLabel: c, size: l } = e, u = c !== void 0 && c, d = l === void 0 ? "sm" : l, [f, p] = B(r), [h, g] = B(!1), v = z(null), y;
|
|
394
|
-
t[0] !== n || t[1] !== a ? (y = (e) => {
|
|
395
|
-
v.current && clearTimeout(v.current), v.current = setTimeout(() => a(n, e), 540);
|
|
396
|
-
}, t[0] = n, t[1] = a, t[2] = y) : y = t[2];
|
|
397
|
-
let b = y, x, S;
|
|
398
|
-
t[3] === r ? (x = t[4], S = t[5]) : (x = () => {
|
|
399
|
-
p(r);
|
|
400
|
-
}, S = [r], t[3] = r, t[4] = x, t[5] = S), R(x, S);
|
|
401
|
-
let C;
|
|
402
|
-
t[6] === b ? C = t[7] : (C = (e) => {
|
|
403
|
-
p(e), b(e);
|
|
404
|
-
}, t[6] = b, t[7] = C);
|
|
405
|
-
let T = C, E;
|
|
406
|
-
t[8] === s ? E = t[9] : (E = () => {
|
|
407
|
-
s || g(!0);
|
|
408
|
-
}, t[8] = s, t[9] = E);
|
|
409
|
-
let D = E, O;
|
|
410
|
-
t[10] === f ? O = t[11] : (O = () => {
|
|
411
|
-
f.trim().length === 0 && g(!1);
|
|
412
|
-
}, t[10] = f, t[11] = O);
|
|
413
|
-
let k = O, A;
|
|
414
|
-
t[12] === Symbol.for("react.memo_cache_sentinel") ? (A = (e) => {
|
|
415
|
-
e.key === "Escape" && (g(!1), e.preventDefault());
|
|
416
|
-
}, t[12] = A) : A = t[12];
|
|
417
|
-
let M = A;
|
|
418
|
-
if (s) {
|
|
419
|
-
let e;
|
|
420
|
-
t[13] !== o || t[14] !== u || t[15] !== i ? (e = !u && /* @__PURE__ */ I(X, {
|
|
421
|
-
name: i,
|
|
422
|
-
description: o
|
|
423
|
-
}), t[13] = o, t[14] = u, t[15] = i, t[16] = e) : e = t[16];
|
|
424
|
-
let n;
|
|
425
|
-
t[17] === f ? n = t[18] : (n = /* @__PURE__ */ I(Q, {
|
|
426
|
-
preserveWhitespace: !0,
|
|
427
|
-
children: f
|
|
428
|
-
}), t[17] = f, t[18] = n);
|
|
429
|
-
let r;
|
|
430
|
-
return t[19] !== n || t[20] !== e ? (r = /* @__PURE__ */ I(m, {
|
|
431
|
-
position: "relative",
|
|
432
|
-
flex: "1",
|
|
433
|
-
minW: "12.5rem",
|
|
434
|
-
children: /* @__PURE__ */ L(_, {
|
|
435
|
-
alignItems: "center",
|
|
436
|
-
justifyContent: "space-between",
|
|
437
|
-
minHeight: "2rem",
|
|
438
|
-
gap: "xs",
|
|
439
|
-
children: [e, n]
|
|
440
|
-
})
|
|
441
|
-
}), t[19] = n, t[20] = e, t[21] = r) : r = t[21], r;
|
|
442
|
-
}
|
|
443
|
-
let N;
|
|
444
|
-
return t[22] !== o || t[23] !== k || t[24] !== T || t[25] !== D || t[26] !== u || t[27] !== h || t[28] !== i || t[29] !== s || t[30] !== d || t[31] !== f ? (N = /* @__PURE__ */ I(m, {
|
|
445
|
-
position: "relative",
|
|
446
|
-
flex: "1",
|
|
447
|
-
minW: "12.5rem",
|
|
448
|
-
children: /* @__PURE__ */ I(m, {
|
|
449
|
-
position: "relative",
|
|
450
|
-
minHeight: "2rem",
|
|
451
|
-
children: h ? /* @__PURE__ */ L(m, {
|
|
452
|
-
position: "absolute",
|
|
453
|
-
top: "0",
|
|
454
|
-
left: "0",
|
|
455
|
-
right: "0",
|
|
456
|
-
zIndex: "10",
|
|
457
|
-
bg: "bg",
|
|
458
|
-
borderWidth: "1px",
|
|
459
|
-
borderStyle: "solid",
|
|
460
|
-
borderColor: "border",
|
|
461
|
-
borderRadius: "lg",
|
|
462
|
-
p: "2",
|
|
463
|
-
transition: "border-color 0.2s ease-in-out",
|
|
464
|
-
boxShadow: "none",
|
|
465
|
-
_hover: { borderColor: "border.accent-light" },
|
|
466
|
-
_active: { borderColor: "border.accent-light" },
|
|
467
|
-
_focusWithin: {
|
|
468
|
-
borderColor: "border.accent-light",
|
|
469
|
-
boxShadow: "none"
|
|
470
|
-
},
|
|
471
|
-
children: [!u && /* @__PURE__ */ I(m, {
|
|
472
|
-
mb: "sm",
|
|
473
|
-
children: /* @__PURE__ */ I(X, {
|
|
474
|
-
name: i,
|
|
475
|
-
description: o
|
|
476
|
-
})
|
|
477
|
-
}), /* @__PURE__ */ I(j, {
|
|
478
|
-
"aria-label": i,
|
|
479
|
-
className: "nodrag",
|
|
480
|
-
readOnly: s,
|
|
481
|
-
width: "100%",
|
|
482
|
-
size: d,
|
|
483
|
-
placeholder: u ? i : void 0,
|
|
484
|
-
value: f,
|
|
485
|
-
onChange: (e) => T(e.target.value),
|
|
486
|
-
onBlur: k,
|
|
487
|
-
onKeyDown: M,
|
|
488
|
-
rows: 3,
|
|
489
|
-
resize: "vertical",
|
|
490
|
-
autoFocus: !0
|
|
491
|
-
})]
|
|
492
|
-
}) : /* @__PURE__ */ L(_, {
|
|
493
|
-
alignItems: "center",
|
|
494
|
-
justifyContent: "space-between",
|
|
495
|
-
height: "2rem",
|
|
496
|
-
gap: "xs",
|
|
497
|
-
children: [!u && /* @__PURE__ */ I(X, {
|
|
498
|
-
name: i,
|
|
499
|
-
description: o
|
|
500
|
-
}), /* @__PURE__ */ I(w, {
|
|
501
|
-
"aria-label": i,
|
|
502
|
-
className: "nodrag",
|
|
503
|
-
readOnly: s,
|
|
504
|
-
flex: "1",
|
|
505
|
-
maxW: "12.5rem",
|
|
506
|
-
size: d,
|
|
507
|
-
type: "text",
|
|
508
|
-
placeholder: u ? i : void 0,
|
|
509
|
-
value: f,
|
|
510
|
-
onClick: D,
|
|
511
|
-
onChange: (e) => T(e.target.value),
|
|
512
|
-
onKeyUp: se
|
|
513
|
-
})]
|
|
514
|
-
})
|
|
515
|
-
})
|
|
516
|
-
}), t[22] = o, t[23] = k, t[24] = T, t[25] = D, t[26] = u, t[27] = h, t[28] = i, t[29] = s, t[30] = d, t[31] = f, t[32] = N) : N = t[32], N;
|
|
517
|
-
};
|
|
518
|
-
function se(e) {
|
|
519
|
-
e.key === "Enter" && e.currentTarget.blur();
|
|
520
|
-
}
|
|
521
|
-
//#endregion
|
|
522
|
-
//#region src/components/param-editor/inputs/markdown-input.tsx
|
|
523
|
-
var ce = (e) => {
|
|
524
|
-
let t = P(28), { id: n, name: r, description: i, defaultValue: a, placeholder: o, onChange: s, readOnly: c, presentation: l, size: u } = e, f = l === void 0 ? "stacked" : l, p = u === void 0 ? "sm" : u, [h, g] = B(a), [v, y] = B(!1), b, x;
|
|
525
|
-
t[0] === a ? (b = t[1], x = t[2]) : (b = () => {
|
|
526
|
-
g(a);
|
|
527
|
-
}, x = [a], t[0] = a, t[1] = b, t[2] = x), R(b, x);
|
|
528
|
-
let S;
|
|
529
|
-
t[3] !== n || t[4] !== s ? (S = (e) => {
|
|
530
|
-
g(e), s(n, e);
|
|
531
|
-
}, t[3] = n, t[4] = s, t[5] = S) : S = t[5];
|
|
532
|
-
let C = S, T;
|
|
533
|
-
t[6] !== C || t[7] !== o || t[8] !== c ? (T = (e) => /* @__PURE__ */ I(m, {
|
|
534
|
-
borderWidth: "1px",
|
|
535
|
-
borderColor: "border",
|
|
536
|
-
borderRadius: "xs",
|
|
537
|
-
minH: "7rem",
|
|
538
|
-
minW: "0",
|
|
539
|
-
overflow: "visible",
|
|
540
|
-
width: "full",
|
|
541
|
-
children: /* @__PURE__ */ I(d, {
|
|
542
|
-
defaultState: e,
|
|
543
|
-
isEditable: !c,
|
|
544
|
-
placeholder: o,
|
|
545
|
-
scrollable: !1,
|
|
546
|
-
onChange: C
|
|
547
|
-
})
|
|
548
|
-
}), t[6] = C, t[7] = o, t[8] = c, t[9] = T) : T = t[9];
|
|
549
|
-
let E = T, D;
|
|
550
|
-
t[10] !== i || t[11] !== r ? (D = /* @__PURE__ */ I(X, {
|
|
551
|
-
name: r,
|
|
552
|
-
description: i
|
|
553
|
-
}), t[10] = i, t[11] = r, t[12] = D) : D = t[12];
|
|
554
|
-
let O = D;
|
|
555
|
-
if (f === "horizontal") {
|
|
556
|
-
if (c) {
|
|
557
|
-
let e;
|
|
558
|
-
return t[13] === h ? e = t[14] : (e = /* @__PURE__ */ I(m, {
|
|
559
|
-
position: "relative",
|
|
560
|
-
flex: "1",
|
|
561
|
-
minW: "12.5rem",
|
|
562
|
-
children: /* @__PURE__ */ I(_, {
|
|
563
|
-
alignItems: "center",
|
|
564
|
-
minHeight: "2rem",
|
|
565
|
-
children: /* @__PURE__ */ I(Q, {
|
|
566
|
-
preserveWhitespace: !0,
|
|
567
|
-
children: h
|
|
568
|
-
})
|
|
569
|
-
})
|
|
570
|
-
}), t[13] = h, t[14] = e), e;
|
|
571
|
-
}
|
|
572
|
-
let e;
|
|
573
|
-
return t[15] !== C || t[16] !== E || t[17] !== v || t[18] !== r || t[19] !== p || t[20] !== h ? (e = /* @__PURE__ */ I(m, {
|
|
574
|
-
position: "relative",
|
|
575
|
-
flex: "1",
|
|
576
|
-
minW: "12.5rem",
|
|
577
|
-
children: /* @__PURE__ */ I(m, {
|
|
578
|
-
position: "relative",
|
|
579
|
-
minHeight: "2rem",
|
|
580
|
-
children: v ? /* @__PURE__ */ I(m, {
|
|
581
|
-
position: "absolute",
|
|
582
|
-
top: "0",
|
|
583
|
-
left: "0",
|
|
584
|
-
right: "0",
|
|
585
|
-
zIndex: "10",
|
|
586
|
-
bg: "bg",
|
|
587
|
-
borderWidth: "1px",
|
|
588
|
-
borderColor: "border",
|
|
589
|
-
borderRadius: "lg",
|
|
590
|
-
p: "2",
|
|
591
|
-
transition: "border-color 0.2s ease-in-out",
|
|
592
|
-
_hover: { borderColor: "border.accent-light" },
|
|
593
|
-
_focusWithin: { borderColor: "border.accent-light" },
|
|
594
|
-
onKeyDown: (e) => {
|
|
595
|
-
e.key === "Escape" && (y(!1), e.preventDefault());
|
|
596
|
-
},
|
|
597
|
-
children: E(h)
|
|
598
|
-
}) : /* @__PURE__ */ I(w, {
|
|
599
|
-
className: "nodrag",
|
|
600
|
-
flex: "1",
|
|
601
|
-
maxW: "12.5rem",
|
|
602
|
-
size: p,
|
|
603
|
-
type: "text",
|
|
604
|
-
placeholder: r,
|
|
605
|
-
value: h,
|
|
606
|
-
onClick: () => {
|
|
607
|
-
y(!0);
|
|
608
|
-
},
|
|
609
|
-
onChange: (e) => C(e.target.value)
|
|
610
|
-
})
|
|
611
|
-
})
|
|
612
|
-
}), t[15] = C, t[16] = E, t[17] = v, t[18] = r, t[19] = p, t[20] = h, t[21] = e) : e = t[21], e;
|
|
613
|
-
}
|
|
614
|
-
let A;
|
|
615
|
-
t[22] !== E || t[23] !== h ? (A = E(h), t[22] = E, t[23] = h, t[24] = A) : A = t[24];
|
|
616
|
-
let j;
|
|
617
|
-
return t[25] !== O || t[26] !== A ? (j = /* @__PURE__ */ L(k, {
|
|
618
|
-
gap: "xs",
|
|
619
|
-
minW: "0",
|
|
620
|
-
width: "full",
|
|
621
|
-
children: [O, A]
|
|
622
|
-
}), t[25] = O, t[26] = A, t[27] = j) : j = t[27], j;
|
|
623
|
-
}, le = (e) => {
|
|
624
|
-
let t = P(50), { id: n, defaultValue: r, name: i, step: a, min: o, max: s, onChange: c, description: d, readOnly: p, hideLabel: h, hideSlider: g, fullWidth: v, size: y } = e, b = a === void 0 ? 1 : a, x = h !== void 0 && h, S = g !== void 0 && g, C = v !== void 0 && v, w = y === void 0 ? "sm" : y, [T, E] = B(r), D = o !== void 0 && s !== void 0 && !S, O = C && !D, k = z(null), A = z(null), j;
|
|
625
|
-
t[0] !== n || t[1] !== c ? (j = (e) => {
|
|
626
|
-
k.current && clearTimeout(k.current), A.current = e, k.current = setTimeout(() => {
|
|
627
|
-
A.current = null, c(n, e);
|
|
628
|
-
}, 540);
|
|
629
|
-
}, t[0] = n, t[1] = c, t[2] = j) : j = t[2];
|
|
630
|
-
let M = j, N;
|
|
631
|
-
t[3] !== n || t[4] !== c ? (N = () => {
|
|
632
|
-
if (A.current === null) return;
|
|
633
|
-
k.current && clearTimeout(k.current);
|
|
634
|
-
let e = A.current;
|
|
635
|
-
A.current = null, c(n, e);
|
|
636
|
-
}, t[3] = n, t[4] = c, t[5] = N) : N = t[5];
|
|
637
|
-
let F = N, V, H;
|
|
638
|
-
if (t[6] === r ? (V = t[7], H = t[8]) : (V = () => {
|
|
639
|
-
E(r);
|
|
640
|
-
}, H = [r], t[6] = r, t[7] = V, t[8] = H), R(V, H), p) {
|
|
641
|
-
let e;
|
|
642
|
-
t[9] === T ? e = t[10] : (e = /* @__PURE__ */ I(Q, { children: T }), t[9] = T, t[10] = e);
|
|
643
|
-
let n = e;
|
|
644
|
-
if (C) {
|
|
645
|
-
let e;
|
|
646
|
-
t[11] !== d || t[12] !== x || t[13] !== i ? (e = !x && /* @__PURE__ */ I(m, {
|
|
647
|
-
mb: "xs",
|
|
648
|
-
children: /* @__PURE__ */ I(X, {
|
|
649
|
-
name: i,
|
|
650
|
-
description: d
|
|
651
|
-
})
|
|
652
|
-
}), t[11] = d, t[12] = x, t[13] = i, t[14] = e) : e = t[14];
|
|
653
|
-
let r;
|
|
654
|
-
return t[15] !== e || t[16] !== n ? (r = /* @__PURE__ */ L(m, { children: [e, n] }), t[15] = e, t[16] = n, t[17] = r) : r = t[17], r;
|
|
655
|
-
}
|
|
656
|
-
let r;
|
|
657
|
-
t[18] !== d || t[19] !== x || t[20] !== i ? (r = !x && /* @__PURE__ */ I(X, {
|
|
658
|
-
name: i,
|
|
659
|
-
description: d
|
|
660
|
-
}), t[18] = d, t[19] = x, t[20] = i, t[21] = r) : r = t[21];
|
|
661
|
-
let a;
|
|
662
|
-
return t[22] !== r || t[23] !== n ? (a = /* @__PURE__ */ I(m, { children: /* @__PURE__ */ L(_, {
|
|
663
|
-
alignItems: "center",
|
|
664
|
-
justifyContent: "space-between",
|
|
665
|
-
minHeight: "2rem",
|
|
666
|
-
gap: "xs",
|
|
667
|
-
children: [r, n]
|
|
668
|
-
}) }), t[22] = r, t[23] = n, t[24] = a) : a = t[24], a;
|
|
669
|
-
}
|
|
670
|
-
let U;
|
|
671
|
-
t[25] !== d || t[26] !== F || t[27] !== x || t[28] !== s || t[29] !== o || t[30] !== i || t[31] !== p || t[32] !== M || t[33] !== w || t[34] !== b || t[35] !== O || t[36] !== T ? (U = O ? /* @__PURE__ */ L(m, { children: [!x && /* @__PURE__ */ I(m, {
|
|
672
|
-
mb: "xs",
|
|
673
|
-
children: /* @__PURE__ */ I(X, {
|
|
674
|
-
name: i,
|
|
675
|
-
description: d
|
|
676
|
-
})
|
|
677
|
-
}), /* @__PURE__ */ I(f, {
|
|
678
|
-
disabled: p,
|
|
679
|
-
width: "100%",
|
|
680
|
-
size: w,
|
|
681
|
-
value: `${T}`,
|
|
682
|
-
step: b,
|
|
683
|
-
min: o,
|
|
684
|
-
max: s,
|
|
685
|
-
onValueChange: (e) => {
|
|
686
|
-
let t = Number.isNaN(e.valueAsNumber) ? o ?? 0 : e.valueAsNumber;
|
|
687
|
-
E(t), M(t);
|
|
688
|
-
},
|
|
689
|
-
children: /* @__PURE__ */ I(u, {
|
|
690
|
-
className: "nodrag",
|
|
691
|
-
readOnly: p,
|
|
692
|
-
placeholder: x ? i : void 0,
|
|
693
|
-
onBlur: F,
|
|
694
|
-
onKeyUp: ue
|
|
695
|
-
})
|
|
696
|
-
})] }) : /* @__PURE__ */ L(_, {
|
|
697
|
-
alignItems: "center",
|
|
698
|
-
justifyContent: "space-between",
|
|
699
|
-
minHeight: "2rem",
|
|
700
|
-
gap: "xs",
|
|
701
|
-
children: [!x && /* @__PURE__ */ I(X, {
|
|
702
|
-
name: i,
|
|
703
|
-
description: d
|
|
704
|
-
}), /* @__PURE__ */ I(f, {
|
|
705
|
-
disabled: p,
|
|
706
|
-
width: "5rem",
|
|
707
|
-
size: w,
|
|
708
|
-
value: `${T}`,
|
|
709
|
-
step: b,
|
|
710
|
-
min: o,
|
|
711
|
-
max: s,
|
|
712
|
-
onValueChange: (e) => {
|
|
713
|
-
let t = Number.isNaN(e.valueAsNumber) ? o ?? 0 : e.valueAsNumber;
|
|
714
|
-
E(t), M(t);
|
|
715
|
-
},
|
|
716
|
-
children: /* @__PURE__ */ I(u, {
|
|
717
|
-
className: "nodrag",
|
|
718
|
-
readOnly: p,
|
|
719
|
-
placeholder: x ? i : void 0,
|
|
720
|
-
onBlur: F,
|
|
721
|
-
onKeyUp: de
|
|
722
|
-
})
|
|
723
|
-
})]
|
|
724
|
-
}), t[25] = d, t[26] = F, t[27] = x, t[28] = s, t[29] = o, t[30] = i, t[31] = p, t[32] = M, t[33] = w, t[34] = b, t[35] = O, t[36] = T, t[37] = U) : U = t[37];
|
|
725
|
-
let W;
|
|
726
|
-
t[38] !== n || t[39] !== s || t[40] !== o || t[41] !== c || t[42] !== p || t[43] !== D || t[44] !== b || t[45] !== T ? (W = D && /* @__PURE__ */ I(l, {
|
|
727
|
-
disabled: p,
|
|
728
|
-
value: [T],
|
|
729
|
-
step: b,
|
|
730
|
-
min: o,
|
|
731
|
-
max: s,
|
|
732
|
-
onValueChange: (e) => {
|
|
733
|
-
E(e.value[0]);
|
|
734
|
-
},
|
|
735
|
-
onValueChangeEnd: (e) => {
|
|
736
|
-
c(n, e.value[0]);
|
|
737
|
-
}
|
|
738
|
-
}), t[38] = n, t[39] = s, t[40] = o, t[41] = c, t[42] = p, t[43] = D, t[44] = b, t[45] = T, t[46] = W) : W = t[46];
|
|
739
|
-
let G;
|
|
740
|
-
return t[47] !== W || t[48] !== U ? (G = /* @__PURE__ */ L(m, { children: [U, W] }), t[47] = W, t[48] = U, t[49] = G) : G = t[49], G;
|
|
741
|
-
};
|
|
742
|
-
function ue(e) {
|
|
743
|
-
e.key === "Enter" && e.currentTarget.blur();
|
|
744
|
-
}
|
|
745
|
-
function de(e) {
|
|
746
|
-
e.key === "Enter" && e.currentTarget.blur();
|
|
747
|
-
}
|
|
748
|
-
//#endregion
|
|
749
|
-
//#region src/components/param-editor/inputs/resource-input-chips.tsx
|
|
750
|
-
var fe = (e) => /* @__PURE__ */ I(x, {
|
|
751
|
-
as: o(e.icon),
|
|
752
|
-
boxSize: "14px",
|
|
753
|
-
color: e.color ? `${e.color}.500` : "fg.muted"
|
|
754
|
-
}), pe = (e) => window.open(e, "_blank", "noreferrer"), me = (e) => void navigator.clipboard?.writeText(e).catch(() => void 0), he = (e) => {
|
|
755
|
-
let n = P(18), { option: r, onOpenResource: i, onRemove: a } = e;
|
|
756
|
-
if (!(r.href || r.ref || r.copyText)) {
|
|
757
|
-
let e;
|
|
758
|
-
return n[0] === r.name ? e = n[1] : (e = /* @__PURE__ */ I(s, { children: r.name }), n[0] = r.name, n[1] = e), e;
|
|
759
|
-
}
|
|
760
|
-
let o;
|
|
761
|
-
n[2] !== i || n[3] !== r.copyText || n[4] !== r.href || n[5] !== r.ref ? (o = r.href && r.href.length > 0 ? () => pe(r.href) : r.ref && i ? () => i(r.ref) : r.copyText ? () => me(r.copyText) : void 0, n[2] = i, n[3] = r.copyText, n[4] = r.href, n[5] = r.ref, n[6] = o) : o = n[6];
|
|
762
|
-
let c = o, l = r.name, u;
|
|
763
|
-
n[7] === r ? u = n[8] : (u = fe(r), n[7] = r, n[8] = u);
|
|
764
|
-
let d;
|
|
765
|
-
n[9] === c ? d = n[10] : (d = c ? () => c() : void 0, n[9] = c, n[10] = d);
|
|
766
|
-
let f;
|
|
767
|
-
n[11] === a ? f = n[12] : (f = a ? () => a() : void 0, n[11] = a, n[12] = f);
|
|
768
|
-
let p;
|
|
769
|
-
return n[13] !== r.name || n[14] !== u || n[15] !== d || n[16] !== f ? (p = /* @__PURE__ */ I(t, {
|
|
770
|
-
fileName: l,
|
|
771
|
-
icon: u,
|
|
772
|
-
size: "md",
|
|
773
|
-
onSelect: d,
|
|
774
|
-
onRemove: f
|
|
775
|
-
}), n[13] = r.name, n[14] = u, n[15] = d, n[16] = f, n[17] = p) : p = n[17], p;
|
|
776
|
-
}, ge = (e) => {
|
|
777
|
-
let t = P(11), { options: n, onOpenResource: r, onRemove: i, emptyText: a } = e;
|
|
778
|
-
if (n.length === 0) {
|
|
779
|
-
let e = a ?? "None", n;
|
|
780
|
-
return t[0] === e ? n = t[1] : (n = /* @__PURE__ */ I(A, {
|
|
781
|
-
textStyle: "label/S/regular",
|
|
782
|
-
color: "fg.muted",
|
|
783
|
-
children: e
|
|
784
|
-
}), t[0] = e, t[1] = n), n;
|
|
785
|
-
}
|
|
786
|
-
let o;
|
|
787
|
-
if (t[2] !== r || t[3] !== i || t[4] !== n) {
|
|
788
|
-
let e;
|
|
789
|
-
t[6] !== r || t[7] !== i ? (e = (e) => /* @__PURE__ */ I(he, {
|
|
790
|
-
option: e,
|
|
791
|
-
onOpenResource: r,
|
|
792
|
-
onRemove: i ? () => i(e.id) : void 0
|
|
793
|
-
}, e.id), t[6] = r, t[7] = i, t[8] = e) : e = t[8], o = n.map(e), t[2] = r, t[3] = i, t[4] = n, t[5] = o;
|
|
794
|
-
} else o = t[5];
|
|
795
|
-
let s;
|
|
796
|
-
return t[9] === o ? s = t[10] : (s = /* @__PURE__ */ I(M, {
|
|
797
|
-
gap: "2xs",
|
|
798
|
-
children: o
|
|
799
|
-
}), t[9] = o, t[10] = s), s;
|
|
800
|
-
}, _e = (e, t) => e ? /* @__PURE__ */ I(x, {
|
|
801
|
-
as: t ? Y : ee,
|
|
45
|
+
minHeight: "2rem",
|
|
46
|
+
gap: "xs",
|
|
47
|
+
minW: "0",
|
|
48
|
+
children: [h, g]
|
|
49
|
+
}), t[14] = h, t[15] = g, t[16] = v) : v = t[16], v;
|
|
50
|
+
}, ee = (e, t) => e ? /* @__PURE__ */ I(x, {
|
|
51
|
+
as: t ? Y : J,
|
|
802
52
|
boxSize: "14px",
|
|
803
53
|
color: t ? "fg" : "fg.muted"
|
|
804
54
|
}) : t ? /* @__PURE__ */ I(x, {
|
|
805
55
|
as: V,
|
|
806
56
|
boxSize: "14px",
|
|
807
57
|
color: "fg"
|
|
808
|
-
}) : null,
|
|
809
|
-
as:
|
|
58
|
+
}) : null, Z = (e) => e?.icon ? l(e.icon) : void 0, te = (e, t) => e?.icon ? /* @__PURE__ */ I(x, {
|
|
59
|
+
as: l(e.icon),
|
|
810
60
|
boxSize: t,
|
|
811
61
|
color: e.color ? `${e.color}.500` : "fg.muted"
|
|
812
|
-
}) : null,
|
|
813
|
-
let
|
|
814
|
-
|
|
62
|
+
}) : null, ne = (r) => {
|
|
63
|
+
let i = P(62), { triggerLabel: a, options: o, selectedIds: s, multiSelect: c, reselectable: l, disabled: u, searchable: d, allowCustomValues: f, searchPlaceholder: p, emptyText: m, group: g, fullWidth: v, triggerVariant: y, triggerAriaLabel: b, size: x, onToggle: C, onGroupChange: w } = r, E = l !== void 0 && l, O = d !== void 0 && d, k = f !== void 0 && f, A = p === void 0 ? "Search options…" : p, j = m === void 0 ? "No options found" : m, M = y === void 0 ? "button" : y, N = x === void 0 ? "sm" : x, F;
|
|
64
|
+
i[0] !== g || i[1] !== w ? (F = w && g && !g.disabled && g.options.some((e) => !e.disabled && e.id !== g.defaultValue), i[0] = g, i[1] = w, i[2] = F) : F = i[2];
|
|
815
65
|
let R = !!F, z;
|
|
816
|
-
if (
|
|
66
|
+
if (i[3] !== c || i[4] !== o || i[5] !== E || i[6] !== s) {
|
|
817
67
|
let e;
|
|
818
|
-
|
|
819
|
-
} else z =
|
|
68
|
+
i[8] !== c || i[9] !== E || i[10] !== s ? (e = (e) => !e.disabled && (c || E || !s.includes(e.id)), i[8] = c, i[9] = E, i[10] = s, i[11] = e) : e = i[11], z = o.some(e), i[3] = c, i[4] = o, i[5] = E, i[6] = s, i[7] = z;
|
|
69
|
+
} else z = i[7];
|
|
820
70
|
let B = u || !k && !z && !R, V;
|
|
821
|
-
|
|
71
|
+
i[12] !== v || i[13] !== B || i[14] !== N || i[15] !== b || i[16] !== a || i[17] !== M ? (V = M === "icon" ? /* @__PURE__ */ I(S, {
|
|
822
72
|
"aria-label": b ?? "Open options",
|
|
823
73
|
size: "2xs",
|
|
824
74
|
variant: "ghost",
|
|
825
75
|
disabled: B,
|
|
826
|
-
children:
|
|
76
|
+
children: a
|
|
827
77
|
}) : /* @__PURE__ */ I(h, {
|
|
828
78
|
size: N,
|
|
829
79
|
borderWidth: "1px",
|
|
@@ -832,6 +82,8 @@ var fe = (e) => /* @__PURE__ */ I(x, {
|
|
|
832
82
|
disabled: B,
|
|
833
83
|
textStyle: N === "xs" ? "label/XS" : "label/S/regular",
|
|
834
84
|
width: v ? "100%" : void 0,
|
|
85
|
+
minW: "0",
|
|
86
|
+
flexShrink: 1,
|
|
835
87
|
_hover: {
|
|
836
88
|
bg: "bg.hover",
|
|
837
89
|
borderColor: "border.accent-light"
|
|
@@ -853,501 +105,137 @@ var fe = (e) => /* @__PURE__ */ I(x, {
|
|
|
853
105
|
alignItems: "center",
|
|
854
106
|
justifyContent: "space-between",
|
|
855
107
|
gap: "xs",
|
|
856
|
-
w: v ? "full" : void 0,
|
|
857
|
-
children: [/* @__PURE__ */ I(_, {
|
|
858
|
-
alignItems: "center",
|
|
859
|
-
gap: "xs",
|
|
860
|
-
children: n
|
|
861
|
-
}), /* @__PURE__ */ I(H, { size: 14 })]
|
|
862
|
-
})
|
|
863
|
-
}), t[12] = v, t[13] = B, t[14] = N, t[15] = b, t[16] = n, t[17] = M, t[18] = V) : V = t[18];
|
|
864
|
-
let U = V;
|
|
865
|
-
if (O || k || g) {
|
|
866
|
-
let e;
|
|
867
|
-
if (t[19] !== C || t[20] !== o || t[21] !== s) {
|
|
868
|
-
let n;
|
|
869
|
-
t[23] !== C || t[24] !== s ? (n = (e) => ({
|
|
870
|
-
id: e.id,
|
|
871
|
-
label: e.name,
|
|
872
|
-
searchText: [e.id, e.description].filter(Boolean).join(" "),
|
|
873
|
-
secondaryLabel: e.description,
|
|
874
|
-
icon: ve(e),
|
|
875
|
-
isDisabled: e.disabled,
|
|
876
|
-
isSelected: s.includes(e.id),
|
|
877
|
-
onSelect: () => C(e.id)
|
|
878
|
-
}), t[23] = C, t[24] = s, t[25] = n) : n = t[25], e = o.map(n), t[19] = C, t[20] = o, t[21] = s, t[22] = e;
|
|
879
|
-
} else e = t[22];
|
|
880
|
-
let n = e, l;
|
|
881
|
-
if (t[26] !== k || t[27] !== R || t[28] !== j || t[29] !== g || t[30] !== n || t[31] !== c || t[32] !== w || t[33] !== C || t[34] !== o || t[35] !== A || t[36] !== O || t[37] !== U) {
|
|
882
|
-
let e = g?.options.find((e) => e.id === g.defaultValue), s;
|
|
883
|
-
t[39] !== k || t[40] !== C || t[41] !== o ? (s = (e, t) => {
|
|
884
|
-
let n = r(e, t), i = t.trim();
|
|
885
|
-
return !k || !i || o.some((e) => e.id === i) ? n : [...n, {
|
|
886
|
-
id: i,
|
|
887
|
-
label: `Use "${i}"`,
|
|
888
|
-
onSelect: () => C(i)
|
|
889
|
-
}];
|
|
890
|
-
}, t[39] = k, t[40] = C, t[41] = o, t[42] = s) : s = t[42];
|
|
891
|
-
let u;
|
|
892
|
-
t[43] === j ? u = t[44] : (u = /* @__PURE__ */ I(T.Item, {
|
|
893
|
-
value: "empty",
|
|
894
|
-
disabled: !0,
|
|
895
|
-
asChild: !0,
|
|
896
|
-
children: /* @__PURE__ */ I(a, {
|
|
897
|
-
asChild: !0,
|
|
898
|
-
variant: "full-width",
|
|
899
|
-
id: "empty",
|
|
900
|
-
label: j,
|
|
901
|
-
disabled: !0
|
|
902
|
-
})
|
|
903
|
-
}), t[43] = j, t[44] = u), l = /* @__PURE__ */ I(i, {
|
|
904
|
-
trigger: U,
|
|
905
|
-
items: n,
|
|
906
|
-
listId: g?.defaultValue,
|
|
907
|
-
showSearch: O || k,
|
|
908
|
-
filterItems: s,
|
|
909
|
-
searchPlaceholder: A,
|
|
910
|
-
closeOnSelect: !c,
|
|
911
|
-
emptyState: u,
|
|
912
|
-
parentList: g ? {
|
|
913
|
-
items: g.options.map((e) => ({
|
|
914
|
-
id: e.id,
|
|
915
|
-
label: e.name,
|
|
916
|
-
searchText: [e.id, e.description].filter(Boolean).join(" "),
|
|
917
|
-
secondaryLabel: e.description,
|
|
918
|
-
icon: ve(e),
|
|
919
|
-
isDisabled: e.disabled,
|
|
920
|
-
isSelected: e.id === g.defaultValue
|
|
921
|
-
})),
|
|
922
|
-
selectedLabel: e?.name ?? g.placeholder ?? `Select ${g.name.toLowerCase()}`,
|
|
923
|
-
selectedIcon: ve(e),
|
|
924
|
-
ariaLabel: g.name,
|
|
925
|
-
disabled: !R,
|
|
926
|
-
showSearch: g.searchable,
|
|
927
|
-
searchPlaceholder: g.searchPlaceholder ?? `Search ${g.name.toLowerCase()}…`,
|
|
928
|
-
emptyState: /* @__PURE__ */ I(T.Item, {
|
|
929
|
-
value: "group-empty",
|
|
930
|
-
disabled: !0,
|
|
931
|
-
asChild: !0,
|
|
932
|
-
children: /* @__PURE__ */ I(a, {
|
|
933
|
-
asChild: !0,
|
|
934
|
-
variant: "full-width",
|
|
935
|
-
id: "group-empty",
|
|
936
|
-
label: g.emptyText ?? `No ${g.name.toLowerCase()} found`,
|
|
937
|
-
disabled: !0
|
|
938
|
-
})
|
|
939
|
-
}),
|
|
940
|
-
onSelect: (e) => w?.(e.id)
|
|
941
|
-
} : void 0
|
|
942
|
-
}), t[26] = k, t[27] = R, t[28] = j, t[29] = g, t[30] = n, t[31] = c, t[32] = w, t[33] = C, t[34] = o, t[35] = A, t[36] = O, t[37] = U, t[38] = l;
|
|
943
|
-
} else l = t[38];
|
|
944
|
-
return l;
|
|
945
|
-
}
|
|
946
|
-
let W = !c, G;
|
|
947
|
-
t[45] === U ? G = t[46] : (G = /* @__PURE__ */ I(T.Trigger, {
|
|
948
|
-
asChild: !0,
|
|
949
|
-
children: U
|
|
950
|
-
}), t[45] = U, t[46] = G);
|
|
951
|
-
let K;
|
|
952
|
-
if (t[47] !== c || t[48] !== C || t[49] !== o || t[50] !== s) {
|
|
953
|
-
let e;
|
|
954
|
-
t[52] !== c || t[53] !== C || t[54] !== s ? (e = (e) => {
|
|
955
|
-
let t = s.includes(e.id);
|
|
956
|
-
return /* @__PURE__ */ I(T.Item, {
|
|
957
|
-
value: e.id,
|
|
958
|
-
disabled: e.disabled,
|
|
959
|
-
asChild: !0,
|
|
960
|
-
children: /* @__PURE__ */ I(a, {
|
|
961
|
-
asChild: !0,
|
|
962
|
-
variant: "full-width",
|
|
963
|
-
role: c ? "menuitemcheckbox" : "menuitemradio",
|
|
964
|
-
"aria-checked": t,
|
|
965
|
-
id: e.id,
|
|
966
|
-
label: e.name,
|
|
967
|
-
icon: ye(e, "16px"),
|
|
968
|
-
tooltip: e.description,
|
|
969
|
-
disabled: e.disabled,
|
|
970
|
-
isSelected: t,
|
|
971
|
-
endContent: _e(c, t),
|
|
972
|
-
onActivate: () => C(e.id)
|
|
973
|
-
})
|
|
974
|
-
}, e.id);
|
|
975
|
-
}, t[52] = c, t[53] = C, t[54] = s, t[55] = e) : e = t[55], K = o.map(e), t[47] = c, t[48] = C, t[49] = o, t[50] = s, t[51] = K;
|
|
976
|
-
} else K = t[51];
|
|
977
|
-
let q;
|
|
978
|
-
t[56] === K ? q = t[57] : (q = /* @__PURE__ */ I(D, { children: /* @__PURE__ */ I(T.Positioner, { children: /* @__PURE__ */ I(T.Content, { children: K }) }) }), t[56] = K, t[57] = q);
|
|
979
|
-
let J;
|
|
980
|
-
return t[58] !== W || t[59] !== G || t[60] !== q ? (J = /* @__PURE__ */ L(T.Root, {
|
|
981
|
-
closeOnSelect: W,
|
|
982
|
-
children: [G, q]
|
|
983
|
-
}), t[58] = W, t[59] = G, t[60] = q, t[61] = J) : J = t[61], J;
|
|
984
|
-
}, xe = (e) => Array.isArray(e) ? e : e ? [e] : [], Se = (e, t) => e.map((e) => t.find((t) => t.id === e)).filter((e) => !!e), Ce = (e) => {
|
|
985
|
-
let t = P(11), { fullWidth: n, label: r, control: i, presentation: a } = e;
|
|
986
|
-
if (a === "horizontal") {
|
|
987
|
-
let e;
|
|
988
|
-
return t[0] !== i || t[1] !== r ? (e = /* @__PURE__ */ L(k, {
|
|
989
|
-
gap: "2xs",
|
|
990
|
-
alignItems: "start",
|
|
991
|
-
minW: "0",
|
|
992
|
-
children: [r, i]
|
|
993
|
-
}), t[0] = i, t[1] = r, t[2] = e) : e = t[2], e;
|
|
994
|
-
}
|
|
995
|
-
if (n) {
|
|
996
|
-
let e;
|
|
997
|
-
t[3] === r ? e = t[4] : (e = /* @__PURE__ */ I(m, {
|
|
998
|
-
mb: "xs",
|
|
999
|
-
children: r
|
|
1000
|
-
}), t[3] = r, t[4] = e);
|
|
1001
|
-
let n;
|
|
1002
|
-
return t[5] !== i || t[6] !== e ? (n = /* @__PURE__ */ L(m, { children: [e, i] }), t[5] = i, t[6] = e, t[7] = n) : n = t[7], n;
|
|
1003
|
-
}
|
|
1004
|
-
let o;
|
|
1005
|
-
return t[8] !== i || t[9] !== r ? (o = /* @__PURE__ */ L(_, {
|
|
1006
|
-
alignItems: "center",
|
|
1007
|
-
justifyContent: "space-between",
|
|
1008
|
-
minHeight: "2rem",
|
|
1009
|
-
gap: "xs",
|
|
1010
|
-
children: [r, i]
|
|
1011
|
-
}), t[8] = i, t[9] = r, t[10] = o) : o = t[10], o;
|
|
1012
|
-
}, we = (e) => {
|
|
1013
|
-
let t = P(9), { triggerLabel: n, options: r, selectedIds: i, multiSelect: a, triggerVariant: o, triggerAriaLabel: s, size: c, onToggle: l } = e, u;
|
|
1014
|
-
return t[0] !== a || t[1] !== l || t[2] !== r || t[3] !== i || t[4] !== c || t[5] !== s || t[6] !== n || t[7] !== o ? (u = /* @__PURE__ */ I(be, {
|
|
1015
|
-
triggerLabel: n,
|
|
1016
|
-
options: r,
|
|
1017
|
-
selectedIds: i,
|
|
1018
|
-
multiSelect: a,
|
|
1019
|
-
reselectable: !0,
|
|
1020
|
-
triggerVariant: o,
|
|
1021
|
-
triggerAriaLabel: s,
|
|
1022
|
-
size: c,
|
|
1023
|
-
onToggle: l
|
|
1024
|
-
}), t[0] = a, t[1] = l, t[2] = r, t[3] = i, t[4] = c, t[5] = s, t[6] = n, t[7] = o, t[8] = u) : u = t[8], u;
|
|
1025
|
-
}, Te = (e) => {
|
|
1026
|
-
let t = P(19), { id: n, name: r, description: i, defaultValue: a, options: o, onChange: s, onOpenResource: c, readOnly: l, editable: u, multiSelect: d, placeholder: f, emptyText: p, fullWidth: m, presentation: h, size: g } = e, v = u !== void 0 && u, y = d !== void 0 && d, b = m !== void 0 && m, S = h === void 0 ? "stacked" : h, C = g === void 0 ? "sm" : g, [w, T] = B(a), E = z(null), D, O;
|
|
1027
|
-
t[0] === a ? (D = t[1], O = t[2]) : (D = () => {
|
|
1028
|
-
T(a);
|
|
1029
|
-
}, O = [a], t[0] = a, t[1] = D, t[2] = O), R(D, O);
|
|
1030
|
-
let k = (e) => {
|
|
1031
|
-
E.current && clearTimeout(E.current), s(n, e);
|
|
1032
|
-
}, A = (e) => {
|
|
1033
|
-
E.current && clearTimeout(E.current), E.current = setTimeout(() => s(n, e), 540);
|
|
1034
|
-
}, j = xe(w), M = Se(j, o), N = v && !l, F = S === "horizontal", V;
|
|
1035
|
-
t[3] !== i || t[4] !== r || t[5] !== F ? (V = /* @__PURE__ */ I(X, {
|
|
1036
|
-
name: r,
|
|
1037
|
-
description: i,
|
|
1038
|
-
compact: F
|
|
1039
|
-
}), t[3] = i, t[4] = r, t[5] = F, t[6] = V) : V = t[6];
|
|
1040
|
-
let H = V;
|
|
1041
|
-
if (!N) return /* @__PURE__ */ I(Ce, {
|
|
1042
|
-
fullWidth: b,
|
|
1043
|
-
label: H,
|
|
1044
|
-
presentation: S,
|
|
1045
|
-
control: /* @__PURE__ */ I(ge, {
|
|
1046
|
-
options: M,
|
|
1047
|
-
onOpenResource: c,
|
|
1048
|
-
emptyText: p
|
|
1049
|
-
})
|
|
1050
|
-
});
|
|
1051
|
-
let U = (e) => {
|
|
1052
|
-
if (y) {
|
|
1053
|
-
let t = j.includes(e) ? j.filter((t) => t !== e) : [...j, e];
|
|
1054
|
-
T(t), A(t);
|
|
1055
|
-
return;
|
|
1056
|
-
}
|
|
1057
|
-
let t = j.includes(e) ? "" : e;
|
|
1058
|
-
T(t), k(t);
|
|
1059
|
-
}, W = (e) => {
|
|
1060
|
-
let t = j.filter((t) => t !== e);
|
|
1061
|
-
T(t), A(t);
|
|
1062
|
-
};
|
|
1063
|
-
if (y) {
|
|
1064
|
-
let e;
|
|
1065
|
-
t[7] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ I(x, {
|
|
1066
|
-
as: J,
|
|
1067
|
-
boxSize: "12px"
|
|
1068
|
-
}), t[7] = e) : e = t[7];
|
|
1069
|
-
let n = /* @__PURE__ */ L(_, {
|
|
1070
|
-
gap: "2xs",
|
|
1071
|
-
alignItems: "center",
|
|
1072
|
-
flexWrap: "wrap",
|
|
1073
108
|
minW: "0",
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
options: o,
|
|
1082
|
-
selectedIds: j,
|
|
1083
|
-
multiSelect: !0,
|
|
1084
|
-
triggerVariant: "icon",
|
|
1085
|
-
triggerAriaLabel: f ?? `Add ${r}`,
|
|
1086
|
-
size: C,
|
|
1087
|
-
onToggle: U
|
|
1088
|
-
})]
|
|
1089
|
-
});
|
|
1090
|
-
return /* @__PURE__ */ I(Ce, {
|
|
1091
|
-
fullWidth: b,
|
|
1092
|
-
label: H,
|
|
1093
|
-
control: n,
|
|
1094
|
-
presentation: S
|
|
1095
|
-
});
|
|
1096
|
-
}
|
|
1097
|
-
let G = M[0], K = G ? /* @__PURE__ */ L(_, {
|
|
1098
|
-
align: "center",
|
|
1099
|
-
gap: "2xs",
|
|
1100
|
-
minW: "0",
|
|
1101
|
-
children: [ye(G, "14px"), G.name]
|
|
1102
|
-
}) : f ?? "Select", q;
|
|
1103
|
-
t[8] !== o || t[9] !== j || t[10] !== C || t[11] !== U || t[12] !== K ? (q = /* @__PURE__ */ I(we, {
|
|
1104
|
-
triggerLabel: K,
|
|
1105
|
-
options: o,
|
|
1106
|
-
selectedIds: j,
|
|
1107
|
-
multiSelect: !1,
|
|
1108
|
-
size: C,
|
|
1109
|
-
onToggle: U
|
|
1110
|
-
}), t[8] = o, t[9] = j, t[10] = C, t[11] = U, t[12] = K, t[13] = q) : q = t[13];
|
|
1111
|
-
let ee;
|
|
1112
|
-
return t[14] !== b || t[15] !== H || t[16] !== S || t[17] !== q ? (ee = /* @__PURE__ */ I(Ce, {
|
|
1113
|
-
fullWidth: b,
|
|
1114
|
-
label: H,
|
|
1115
|
-
presentation: S,
|
|
1116
|
-
control: q
|
|
1117
|
-
}), t[14] = b, t[15] = H, t[16] = S, t[17] = q, t[18] = ee) : ee = t[18], ee;
|
|
1118
|
-
}, Ee = (e, t, n) => n ? [...e, ...t.filter((t) => !e.some((e) => e.id === t)).map((e) => ({
|
|
1119
|
-
id: e,
|
|
1120
|
-
name: e
|
|
1121
|
-
}))] : e, De = (e) => {
|
|
1122
|
-
let t = P(81), { id: n, defaultValue: r, name: i, options: a, onChange: o, description: s, readOnly: c, hideLabel: l, multiSelect: u, placeholder: d, fullWidth: f, clearable: p, disabled: h, searchable: g, allowCustomValues: v, searchPlaceholder: y, emptyText: b, group: x, size: S } = e, C = l !== void 0 && l, w = u !== void 0 && u, T = f !== void 0 && f, E = p !== void 0 && p, D = h !== void 0 && h, O = g !== void 0 && g, k = v !== void 0 && v, A = S === void 0 ? "sm" : S, [j, M] = B(r), [N, z] = B(x?.defaultValue ?? ""), V, H;
|
|
1123
|
-
t[0] === r ? (V = t[1], H = t[2]) : (V = () => {
|
|
1124
|
-
M(r);
|
|
1125
|
-
}, H = [r], t[0] = r, t[1] = V, t[2] = H), R(V, H);
|
|
1126
|
-
let U;
|
|
1127
|
-
t[3] === x?.defaultValue ? U = t[4] : (U = () => {
|
|
1128
|
-
z(x?.defaultValue ?? "");
|
|
1129
|
-
}, t[3] = x?.defaultValue, t[4] = U);
|
|
1130
|
-
let W = x?.defaultValue, G;
|
|
1131
|
-
t[5] === W ? G = t[6] : (G = [W], t[5] = W, t[6] = G), R(U, G);
|
|
1132
|
-
let K, q, J, ee, Y, Z, te, ne, re;
|
|
1133
|
-
if (t[7] !== k || t[8] !== E || t[9] !== s || t[10] !== T || t[11] !== x || t[12] !== N || t[13] !== C || t[14] !== n || t[15] !== w || t[16] !== i || t[17] !== o || t[18] !== a || t[19] !== d || t[20] !== c || t[21] !== j) {
|
|
1134
|
-
re = Symbol.for("react.early_return_sentinel");
|
|
1135
|
-
bb0: {
|
|
1136
|
-
Z = w ? Array.isArray(j) ? j : [] : typeof j == "string" && j ? [j] : [], q = Ee(a, Z, k);
|
|
1137
|
-
let e = () => {
|
|
1138
|
-
let e = Z.map((e) => q.find((t) => t.id === e)?.name).filter(Oe);
|
|
1139
|
-
return e.length === 0 ? d || "Select" : e.length <= 3 ? e.join(", ") : `${e.slice(0, 3).join(", ")} +${(e.length - 3).toString()}`;
|
|
1140
|
-
}, r;
|
|
1141
|
-
t[31] !== n || t[32] !== o ? (r = (e) => {
|
|
1142
|
-
M(e), o(n, e);
|
|
1143
|
-
}, t[31] = n, t[32] = o, t[33] = r) : r = t[33];
|
|
1144
|
-
let l = r;
|
|
1145
|
-
ee = (e) => {
|
|
1146
|
-
if (!w) {
|
|
1147
|
-
l(E && Z.includes(e) ? "" : e);
|
|
1148
|
-
return;
|
|
1149
|
-
}
|
|
1150
|
-
l(Z.includes(e) ? Z.filter((t) => t !== e) : [...Z, e]);
|
|
1151
|
-
};
|
|
1152
|
-
let u;
|
|
1153
|
-
t[34] !== x || t[35] !== N || t[36] !== o ? (u = (e) => {
|
|
1154
|
-
x && e !== N && (z(e), o(x.id, e));
|
|
1155
|
-
}, t[34] = x, t[35] = N, t[36] = o, t[37] = u) : u = t[37], J = u;
|
|
1156
|
-
let f = Z.length === 1 ? a.find((e) => e.id === Z[0]) : void 0, p;
|
|
1157
|
-
if (t[38] !== s || t[39] !== C || t[40] !== i ? (p = C ? null : /* @__PURE__ */ I(X, {
|
|
1158
|
-
name: i,
|
|
1159
|
-
description: s
|
|
1160
|
-
}), t[38] = s, t[39] = C, t[40] = i, t[41] = p) : p = t[41], Y = p, c) {
|
|
1161
|
-
let n = /* @__PURE__ */ I(Q, { children: e() });
|
|
1162
|
-
if (T) {
|
|
1163
|
-
let e;
|
|
1164
|
-
t[42] === Y ? e = t[43] : (e = Y ? /* @__PURE__ */ I(m, {
|
|
1165
|
-
mb: "xs",
|
|
1166
|
-
children: Y
|
|
1167
|
-
}) : null, t[42] = Y, t[43] = e);
|
|
1168
|
-
let r;
|
|
1169
|
-
t[44] !== e || t[45] !== n ? (r = /* @__PURE__ */ L(m, { children: [e, n] }), t[44] = e, t[45] = n, t[46] = r) : r = t[46], re = r;
|
|
1170
|
-
break bb0;
|
|
1171
|
-
}
|
|
1172
|
-
let r;
|
|
1173
|
-
t[47] !== Y || t[48] !== n ? (r = /* @__PURE__ */ I(m, { children: /* @__PURE__ */ L(_, {
|
|
1174
|
-
alignItems: "center",
|
|
1175
|
-
justifyContent: "space-between",
|
|
1176
|
-
minHeight: "2rem",
|
|
1177
|
-
gap: "xs",
|
|
1178
|
-
children: [Y, n]
|
|
1179
|
-
}) }), t[47] = Y, t[48] = n, t[49] = r) : r = t[49], re = r;
|
|
1180
|
-
break bb0;
|
|
1181
|
-
}
|
|
1182
|
-
K = be, te = ye(f, "14px"), ne = e();
|
|
1183
|
-
}
|
|
1184
|
-
t[7] = k, t[8] = E, t[9] = s, t[10] = T, t[11] = x, t[12] = N, t[13] = C, t[14] = n, t[15] = w, t[16] = i, t[17] = o, t[18] = a, t[19] = d, t[20] = c, t[21] = j, t[22] = K, t[23] = q, t[24] = J, t[25] = ee, t[26] = Y, t[27] = Z, t[28] = te, t[29] = ne, t[30] = re;
|
|
1185
|
-
} else K = t[22], q = t[23], J = t[24], ee = t[25], Y = t[26], Z = t[27], te = t[28], ne = t[29], re = t[30];
|
|
1186
|
-
if (re !== Symbol.for("react.early_return_sentinel")) return re;
|
|
1187
|
-
let ie;
|
|
1188
|
-
t[50] !== te || t[51] !== ne ? (ie = /* @__PURE__ */ L(F, { children: [te, ne] }), t[50] = te, t[51] = ne, t[52] = ie) : ie = t[52];
|
|
1189
|
-
let ae;
|
|
1190
|
-
t[53] !== x || t[54] !== N ? (ae = x ? {
|
|
1191
|
-
...x,
|
|
1192
|
-
defaultValue: N
|
|
1193
|
-
} : void 0, t[53] = x, t[54] = N, t[55] = ae) : ae = t[55];
|
|
1194
|
-
let oe;
|
|
1195
|
-
t[56] !== K || t[57] !== k || t[58] !== q || t[59] !== E || t[60] !== D || t[61] !== b || t[62] !== T || t[63] !== J || t[64] !== ee || t[65] !== w || t[66] !== y || t[67] !== O || t[68] !== Z || t[69] !== A || t[70] !== ie || t[71] !== ae ? (oe = /* @__PURE__ */ I(K, {
|
|
1196
|
-
triggerLabel: ie,
|
|
1197
|
-
options: q,
|
|
1198
|
-
allowCustomValues: k,
|
|
1199
|
-
selectedIds: Z,
|
|
1200
|
-
multiSelect: w,
|
|
1201
|
-
reselectable: E,
|
|
1202
|
-
disabled: D,
|
|
1203
|
-
searchable: O,
|
|
1204
|
-
searchPlaceholder: y,
|
|
1205
|
-
emptyText: b,
|
|
1206
|
-
group: ae,
|
|
1207
|
-
fullWidth: T,
|
|
1208
|
-
size: A,
|
|
1209
|
-
onToggle: ee,
|
|
1210
|
-
onGroupChange: J
|
|
1211
|
-
}), t[56] = K, t[57] = k, t[58] = q, t[59] = E, t[60] = D, t[61] = b, t[62] = T, t[63] = J, t[64] = ee, t[65] = w, t[66] = y, t[67] = O, t[68] = Z, t[69] = A, t[70] = ie, t[71] = ae, t[72] = oe) : oe = t[72];
|
|
1212
|
-
let se = oe;
|
|
1213
|
-
if (T) {
|
|
1214
|
-
let e;
|
|
1215
|
-
t[73] === Y ? e = t[74] : (e = Y ? /* @__PURE__ */ I(m, {
|
|
1216
|
-
mb: "xs",
|
|
1217
|
-
children: Y
|
|
1218
|
-
}) : null, t[73] = Y, t[74] = e);
|
|
1219
|
-
let n;
|
|
1220
|
-
return t[75] !== se || t[76] !== e ? (n = /* @__PURE__ */ L(m, { children: [e, se] }), t[75] = se, t[76] = e, t[77] = n) : n = t[77], n;
|
|
1221
|
-
}
|
|
1222
|
-
let ce;
|
|
1223
|
-
return t[78] !== Y || t[79] !== se ? (ce = /* @__PURE__ */ I(m, { children: /* @__PURE__ */ L(_, {
|
|
1224
|
-
alignItems: "center",
|
|
1225
|
-
justifyContent: "space-between",
|
|
1226
|
-
minHeight: "2rem",
|
|
1227
|
-
gap: "xs",
|
|
1228
|
-
children: [Y, se]
|
|
1229
|
-
}) }), t[78] = Y, t[79] = se, t[80] = ce) : ce = t[80], ce;
|
|
1230
|
-
};
|
|
1231
|
-
function Oe(e) {
|
|
1232
|
-
return !!e;
|
|
1233
|
-
}
|
|
1234
|
-
//#endregion
|
|
1235
|
-
//#region src/components/param-editor/inputs/text-input.tsx
|
|
1236
|
-
var ke = (e) => {
|
|
1237
|
-
let t = P(40), { id: n, defaultValue: r, name: i, onChange: a, description: o, readOnly: s, singleLine: c, hideLabel: l, fullWidth: u, size: d } = e, f = c === void 0 || c, p = l !== void 0 && l, h = u !== void 0 && u, g = d === void 0 ? "sm" : d, [v, y] = B(r), b = z(null), x;
|
|
1238
|
-
t[0] !== n || t[1] !== a ? (x = (e) => {
|
|
1239
|
-
b.current && clearTimeout(b.current), b.current = setTimeout(() => a(n, e), 540);
|
|
1240
|
-
}, t[0] = n, t[1] = a, t[2] = x) : x = t[2];
|
|
1241
|
-
let S = x, C, T;
|
|
1242
|
-
t[3] === r ? (C = t[4], T = t[5]) : (C = () => {
|
|
1243
|
-
y(r);
|
|
1244
|
-
}, T = [r], t[3] = r, t[4] = C, t[5] = T), R(C, T);
|
|
1245
|
-
let E;
|
|
1246
|
-
t[6] === S ? E = t[7] : (E = (e) => {
|
|
1247
|
-
y(e), S(e);
|
|
1248
|
-
}, t[6] = S, t[7] = E);
|
|
1249
|
-
let D = E, O;
|
|
1250
|
-
t[8] !== n || t[9] !== a || t[10] !== v ? (O = () => {
|
|
1251
|
-
b.current && (clearTimeout(b.current), b.current = null, a(n, v));
|
|
1252
|
-
}, t[8] = n, t[9] = a, t[10] = v, t[11] = O) : O = t[11];
|
|
1253
|
-
let k = O;
|
|
1254
|
-
if (s) {
|
|
1255
|
-
let e = !f, n;
|
|
1256
|
-
t[12] !== e || t[13] !== v ? (n = /* @__PURE__ */ I(Q, {
|
|
1257
|
-
preserveWhitespace: e,
|
|
1258
|
-
children: v
|
|
1259
|
-
}), t[12] = e, t[13] = v, t[14] = n) : n = t[14];
|
|
1260
|
-
let r = n;
|
|
1261
|
-
if (f && !h) {
|
|
1262
|
-
let e;
|
|
1263
|
-
t[15] !== o || t[16] !== p || t[17] !== i ? (e = !p && /* @__PURE__ */ I(X, {
|
|
1264
|
-
name: i,
|
|
1265
|
-
description: o
|
|
1266
|
-
}), t[15] = o, t[16] = p, t[17] = i, t[18] = e) : e = t[18];
|
|
1267
|
-
let n;
|
|
1268
|
-
return t[19] !== e || t[20] !== r ? (n = /* @__PURE__ */ I(m, { children: /* @__PURE__ */ L(_, {
|
|
1269
|
-
alignItems: "center",
|
|
1270
|
-
justifyContent: "space-between",
|
|
1271
|
-
minHeight: "2rem",
|
|
1272
|
-
gap: "xs",
|
|
1273
|
-
children: [e, r]
|
|
1274
|
-
}) }), t[19] = e, t[20] = r, t[21] = n) : n = t[21], n;
|
|
1275
|
-
}
|
|
1276
|
-
let a;
|
|
1277
|
-
t[22] !== o || t[23] !== p || t[24] !== i ? (a = !p && /* @__PURE__ */ I(m, {
|
|
1278
|
-
mb: "xs",
|
|
1279
|
-
children: /* @__PURE__ */ I(X, {
|
|
1280
|
-
name: i,
|
|
1281
|
-
description: o
|
|
1282
|
-
})
|
|
1283
|
-
}), t[22] = o, t[23] = p, t[24] = i, t[25] = a) : a = t[25];
|
|
1284
|
-
let s;
|
|
1285
|
-
return t[26] !== a || t[27] !== r ? (s = /* @__PURE__ */ L(m, { children: [a, r] }), t[26] = a, t[27] = r, t[28] = s) : s = t[28], s;
|
|
1286
|
-
}
|
|
1287
|
-
let A;
|
|
1288
|
-
return t[29] !== o || t[30] !== h || t[31] !== k || t[32] !== D || t[33] !== p || t[34] !== i || t[35] !== s || t[36] !== f || t[37] !== g || t[38] !== v ? (A = /* @__PURE__ */ I(m, { children: f && !h ? /* @__PURE__ */ L(_, {
|
|
1289
|
-
alignItems: "center",
|
|
1290
|
-
justifyContent: "space-between",
|
|
1291
|
-
minHeight: "2rem",
|
|
1292
|
-
gap: "xs",
|
|
1293
|
-
children: [!p && /* @__PURE__ */ I(X, {
|
|
1294
|
-
name: i,
|
|
1295
|
-
description: o
|
|
1296
|
-
}), /* @__PURE__ */ I(w, {
|
|
1297
|
-
"aria-label": i,
|
|
1298
|
-
className: "nodrag",
|
|
1299
|
-
readOnly: s,
|
|
1300
|
-
flex: "1",
|
|
1301
|
-
maxW: "12.5rem",
|
|
1302
|
-
size: g,
|
|
1303
|
-
type: "text",
|
|
1304
|
-
placeholder: p ? i : void 0,
|
|
1305
|
-
value: v,
|
|
1306
|
-
onChange: (e) => D(e.target.value),
|
|
1307
|
-
onBlur: k,
|
|
1308
|
-
onKeyUp: Ae
|
|
1309
|
-
})]
|
|
1310
|
-
}) : /* @__PURE__ */ L(m, { children: [!p && /* @__PURE__ */ I(m, {
|
|
1311
|
-
mb: "xs",
|
|
1312
|
-
children: /* @__PURE__ */ I(X, {
|
|
1313
|
-
name: i,
|
|
1314
|
-
description: o
|
|
109
|
+
w: v ? "full" : void 0,
|
|
110
|
+
children: [/* @__PURE__ */ I(_, {
|
|
111
|
+
alignItems: "center",
|
|
112
|
+
gap: "xs",
|
|
113
|
+
minW: "0",
|
|
114
|
+
children: a
|
|
115
|
+
}), /* @__PURE__ */ I(H, { size: 14 })]
|
|
1315
116
|
})
|
|
1316
|
-
}),
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
117
|
+
}), i[12] = v, i[13] = B, i[14] = N, i[15] = b, i[16] = a, i[17] = M, i[18] = V) : V = i[18];
|
|
118
|
+
let U = V;
|
|
119
|
+
if (O || k || g) {
|
|
120
|
+
let r;
|
|
121
|
+
if (i[19] !== C || i[20] !== o || i[21] !== s) {
|
|
122
|
+
let e;
|
|
123
|
+
i[23] !== C || i[24] !== s ? (e = (e) => ({
|
|
124
|
+
id: e.id,
|
|
125
|
+
label: e.name,
|
|
126
|
+
searchText: [e.id, e.description].filter(Boolean).join(" "),
|
|
127
|
+
secondaryLabel: e.description,
|
|
128
|
+
icon: Z(e),
|
|
129
|
+
isDisabled: e.disabled,
|
|
130
|
+
isSelected: s.includes(e.id),
|
|
131
|
+
onSelect: () => C(e.id)
|
|
132
|
+
}), i[23] = C, i[24] = s, i[25] = e) : e = i[25], r = o.map(e), i[19] = C, i[20] = o, i[21] = s, i[22] = r;
|
|
133
|
+
} else r = i[22];
|
|
134
|
+
let a = r, l;
|
|
135
|
+
if (i[26] !== k || i[27] !== R || i[28] !== j || i[29] !== g || i[30] !== a || i[31] !== c || i[32] !== w || i[33] !== C || i[34] !== o || i[35] !== A || i[36] !== O || i[37] !== U) {
|
|
136
|
+
let r = g?.options.find((e) => e.id === g.defaultValue), s;
|
|
137
|
+
i[39] !== k || i[40] !== C || i[41] !== o ? (s = (t, n) => {
|
|
138
|
+
let r = e(t, n), i = n.trim();
|
|
139
|
+
return !k || !i || o.some((e) => e.id === i) ? r : [...r, {
|
|
140
|
+
id: i,
|
|
141
|
+
label: `Use "${i}"`,
|
|
142
|
+
onSelect: () => C(i)
|
|
143
|
+
}];
|
|
144
|
+
}, i[39] = k, i[40] = C, i[41] = o, i[42] = s) : s = i[42];
|
|
145
|
+
let u;
|
|
146
|
+
i[43] === j ? u = i[44] : (u = /* @__PURE__ */ I(T.Item, {
|
|
147
|
+
value: "empty",
|
|
148
|
+
disabled: !0,
|
|
149
|
+
asChild: !0,
|
|
150
|
+
children: /* @__PURE__ */ I(n, {
|
|
151
|
+
asChild: !0,
|
|
152
|
+
variant: "full-width",
|
|
153
|
+
id: "empty",
|
|
154
|
+
label: j,
|
|
155
|
+
disabled: !0
|
|
156
|
+
})
|
|
157
|
+
}), i[43] = j, i[44] = u), l = /* @__PURE__ */ I(t, {
|
|
158
|
+
trigger: U,
|
|
159
|
+
items: a,
|
|
160
|
+
listId: g?.defaultValue,
|
|
161
|
+
showSearch: O || k,
|
|
162
|
+
filterItems: s,
|
|
163
|
+
searchPlaceholder: A,
|
|
164
|
+
closeOnSelect: !c,
|
|
165
|
+
emptyState: u,
|
|
166
|
+
parentList: g ? {
|
|
167
|
+
items: g.options.map((e) => ({
|
|
168
|
+
id: e.id,
|
|
169
|
+
label: e.name,
|
|
170
|
+
searchText: [e.id, e.description].filter(Boolean).join(" "),
|
|
171
|
+
secondaryLabel: e.description,
|
|
172
|
+
icon: Z(e),
|
|
173
|
+
isDisabled: e.disabled,
|
|
174
|
+
isSelected: e.id === g.defaultValue
|
|
175
|
+
})),
|
|
176
|
+
selectedLabel: r?.name ?? g.placeholder ?? `Select ${g.name.toLowerCase()}`,
|
|
177
|
+
selectedIcon: Z(r),
|
|
178
|
+
ariaLabel: g.name,
|
|
179
|
+
disabled: !R,
|
|
180
|
+
showSearch: g.searchable,
|
|
181
|
+
searchPlaceholder: g.searchPlaceholder ?? `Search ${g.name.toLowerCase()}…`,
|
|
182
|
+
emptyState: /* @__PURE__ */ I(T.Item, {
|
|
183
|
+
value: "group-empty",
|
|
184
|
+
disabled: !0,
|
|
185
|
+
asChild: !0,
|
|
186
|
+
children: /* @__PURE__ */ I(n, {
|
|
187
|
+
asChild: !0,
|
|
188
|
+
variant: "full-width",
|
|
189
|
+
id: "group-empty",
|
|
190
|
+
label: g.emptyText ?? `No ${g.name.toLowerCase()} found`,
|
|
191
|
+
disabled: !0
|
|
192
|
+
})
|
|
193
|
+
}),
|
|
194
|
+
onSelect: (e) => w?.(e.id)
|
|
195
|
+
} : void 0
|
|
196
|
+
}), i[26] = k, i[27] = R, i[28] = j, i[29] = g, i[30] = a, i[31] = c, i[32] = w, i[33] = C, i[34] = o, i[35] = A, i[36] = O, i[37] = U, i[38] = l;
|
|
197
|
+
} else l = i[38];
|
|
198
|
+
return l;
|
|
199
|
+
}
|
|
200
|
+
let W = !c, G;
|
|
201
|
+
i[45] === U ? G = i[46] : (G = /* @__PURE__ */ I(T.Trigger, {
|
|
202
|
+
asChild: !0,
|
|
203
|
+
children: U
|
|
204
|
+
}), i[45] = U, i[46] = G);
|
|
205
|
+
let K;
|
|
206
|
+
if (i[47] !== c || i[48] !== C || i[49] !== o || i[50] !== s) {
|
|
207
|
+
let e;
|
|
208
|
+
i[52] !== c || i[53] !== C || i[54] !== s ? (e = (e) => {
|
|
209
|
+
let t = s.includes(e.id);
|
|
210
|
+
return /* @__PURE__ */ I(T.Item, {
|
|
211
|
+
value: e.id,
|
|
212
|
+
disabled: e.disabled,
|
|
213
|
+
asChild: !0,
|
|
214
|
+
children: /* @__PURE__ */ I(n, {
|
|
215
|
+
asChild: !0,
|
|
216
|
+
variant: "full-width",
|
|
217
|
+
role: c ? "menuitemcheckbox" : "menuitemradio",
|
|
218
|
+
"aria-checked": t,
|
|
219
|
+
id: e.id,
|
|
220
|
+
label: e.name,
|
|
221
|
+
icon: te(e, "16px"),
|
|
222
|
+
tooltip: e.description,
|
|
223
|
+
disabled: e.disabled,
|
|
224
|
+
isSelected: t,
|
|
225
|
+
endContent: ee(c, t),
|
|
226
|
+
onActivate: () => C(e.id)
|
|
227
|
+
})
|
|
228
|
+
}, e.id);
|
|
229
|
+
}, i[52] = c, i[53] = C, i[54] = s, i[55] = e) : e = i[55], K = o.map(e), i[47] = c, i[48] = C, i[49] = o, i[50] = s, i[51] = K;
|
|
230
|
+
} else K = i[51];
|
|
231
|
+
let q;
|
|
232
|
+
i[56] === K ? q = i[57] : (q = /* @__PURE__ */ I(D, { children: /* @__PURE__ */ I(T.Positioner, { children: /* @__PURE__ */ I(T.Content, { children: K }) }) }), i[56] = K, i[57] = q);
|
|
233
|
+
let J;
|
|
234
|
+
return i[58] !== W || i[59] !== G || i[60] !== q ? (J = /* @__PURE__ */ L(T.Root, {
|
|
235
|
+
closeOnSelect: W,
|
|
236
|
+
children: [G, q]
|
|
237
|
+
}), i[58] = W, i[59] = G, i[60] = q, i[61] = J) : J = i[61], J;
|
|
238
|
+
}, Q = (e) => {
|
|
1351
239
|
let t = P(33), { id: n, name: r, description: i, defaultValue: a, options: o, onChange: s, readOnly: c, presentation: l } = e, u = l === void 0 ? "stacked" : l, [d, f] = B(a), p, m;
|
|
1352
240
|
t[0] === a ? (p = t[1], m = t[2]) : (p = () => {
|
|
1353
241
|
f(a);
|
|
@@ -1363,7 +251,7 @@ var Me = (e) => {
|
|
|
1363
251
|
let e;
|
|
1364
252
|
t[10] === d ? e = t[11] : (e = d ? [d] : [], t[10] = d, t[11] = e);
|
|
1365
253
|
let n;
|
|
1366
|
-
return t[12] !== o || t[13] !== c || t[14] !== v || t[15] !== x || t[16] !== e ? (n = /* @__PURE__ */ I(
|
|
254
|
+
return t[12] !== o || t[13] !== c || t[14] !== v || t[15] !== x || t[16] !== e ? (n = /* @__PURE__ */ I(ne, {
|
|
1367
255
|
triggerLabel: x,
|
|
1368
256
|
options: o,
|
|
1369
257
|
selectedIds: e,
|
|
@@ -1404,13 +292,13 @@ var Me = (e) => {
|
|
|
1404
292
|
children: S
|
|
1405
293
|
}), t[27] = S, t[28] = C);
|
|
1406
294
|
let w = C, T;
|
|
1407
|
-
return t[29] !== i || t[30] !== r || t[31] !== w ? (T = /* @__PURE__ */ I(
|
|
295
|
+
return t[29] !== i || t[30] !== r || t[31] !== w ? (T = /* @__PURE__ */ I(X, {
|
|
1408
296
|
name: r,
|
|
1409
297
|
description: i,
|
|
1410
298
|
orientation: "stacked",
|
|
1411
299
|
children: w
|
|
1412
300
|
}), t[29] = i, t[30] = r, t[31] = w, t[32] = T) : T = t[32], T;
|
|
1413
|
-
},
|
|
301
|
+
}, re = [
|
|
1414
302
|
"top-left",
|
|
1415
303
|
"top",
|
|
1416
304
|
"top-right",
|
|
@@ -1420,7 +308,18 @@ var Me = (e) => {
|
|
|
1420
308
|
"bottom-left",
|
|
1421
309
|
"bottom",
|
|
1422
310
|
"bottom-right"
|
|
1423
|
-
],
|
|
311
|
+
], ie = (e) => typeof e == "string" && re.includes(e), $ = (e) => {
|
|
312
|
+
let t = P(8), n, r, i;
|
|
313
|
+
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({children: r, preserveWhitespace: i, ...n} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
314
|
+
let a = i !== void 0 && i ? "pre-wrap" : void 0, o;
|
|
315
|
+
return t[4] !== n || t[5] !== r || t[6] !== a ? (o = /* @__PURE__ */ I(m, {
|
|
316
|
+
minW: "0",
|
|
317
|
+
textStyle: "label/S/regular",
|
|
318
|
+
whiteSpace: a,
|
|
319
|
+
...n,
|
|
320
|
+
children: r
|
|
321
|
+
}), t[4] = n, t[5] = r, t[6] = a, t[7] = o) : o = t[7], o;
|
|
322
|
+
}, ae = (e) => {
|
|
1424
323
|
let t = P(23), { id: n, name: r, description: i, defaultValue: a, onChange: o, readOnly: s, fullWidth: c } = e, [l, u] = B(a), d, f;
|
|
1425
324
|
t[0] === a ? (d = t[1], f = t[2]) : (d = () => {
|
|
1426
325
|
u(a);
|
|
@@ -1432,9 +331,9 @@ var Me = (e) => {
|
|
|
1432
331
|
let h = p;
|
|
1433
332
|
if (s) {
|
|
1434
333
|
let e;
|
|
1435
|
-
t[6] === l ? e = t[7] : (e = /* @__PURE__ */ I(
|
|
334
|
+
t[6] === l ? e = t[7] : (e = /* @__PURE__ */ I($, { children: l }), t[6] = l, t[7] = e);
|
|
1436
335
|
let n;
|
|
1437
|
-
return t[8] !== i || t[9] !== c || t[10] !== r || t[11] !== e ? (n = /* @__PURE__ */ I(
|
|
336
|
+
return t[8] !== i || t[9] !== c || t[10] !== r || t[11] !== e ? (n = /* @__PURE__ */ I(X, {
|
|
1438
337
|
name: r,
|
|
1439
338
|
description: i,
|
|
1440
339
|
fullWidth: c,
|
|
@@ -1442,7 +341,7 @@ var Me = (e) => {
|
|
|
1442
341
|
}), t[8] = i, t[9] = c, t[10] = r, t[11] = e, t[12] = n) : n = t[12], n;
|
|
1443
342
|
}
|
|
1444
343
|
let g;
|
|
1445
|
-
t[13] !== h || t[14] !== l ? (g =
|
|
344
|
+
t[13] !== h || t[14] !== l ? (g = re.map((e) => {
|
|
1446
345
|
let t = e === l;
|
|
1447
346
|
return /* @__PURE__ */ I(S, {
|
|
1448
347
|
"aria-label": e,
|
|
@@ -1472,20 +371,324 @@ var Me = (e) => {
|
|
|
1472
371
|
children: g
|
|
1473
372
|
}), t[16] = g, t[17] = _);
|
|
1474
373
|
let y = _, b = c ? "stacked" : "inline", x;
|
|
1475
|
-
return t[18] !== i || t[19] !== y || t[20] !== r || t[21] !== b ? (x = /* @__PURE__ */ I(
|
|
374
|
+
return t[18] !== i || t[19] !== y || t[20] !== r || t[21] !== b ? (x = /* @__PURE__ */ I(X, {
|
|
1476
375
|
name: r,
|
|
1477
376
|
description: i,
|
|
1478
377
|
orientation: b,
|
|
1479
378
|
children: y
|
|
1480
379
|
}), t[18] = i, t[19] = y, t[20] = r, t[21] = b, t[22] = x) : x = t[22], x;
|
|
1481
|
-
},
|
|
380
|
+
}, oe = (e) => {
|
|
381
|
+
let t = P(27), { id: n, name: r, description: a, defaultValue: o, onChange: s, readOnly: c, hideLabel: l, fullWidth: u, size: d } = e, f = d === void 0 ? "sm" : d, [p, m] = B(o), h, g;
|
|
382
|
+
if (t[0] === o ? (h = t[1], g = t[2]) : (h = () => {
|
|
383
|
+
m(o);
|
|
384
|
+
}, g = [o], t[0] = o, t[1] = h, t[2] = g), R(h, g), c) {
|
|
385
|
+
let e = String(p), n;
|
|
386
|
+
t[3] === e ? n = t[4] : (n = /* @__PURE__ */ I($, { children: e }), t[3] = e, t[4] = n);
|
|
387
|
+
let i;
|
|
388
|
+
return t[5] !== a || t[6] !== u || t[7] !== l || t[8] !== r || t[9] !== n ? (i = /* @__PURE__ */ I(X, {
|
|
389
|
+
name: r,
|
|
390
|
+
description: a,
|
|
391
|
+
hideLabel: l,
|
|
392
|
+
fullWidth: u,
|
|
393
|
+
orientation: "inline",
|
|
394
|
+
children: n
|
|
395
|
+
}), t[5] = a, t[6] = u, t[7] = l, t[8] = r, t[9] = n, t[10] = i) : i = t[10], i;
|
|
396
|
+
}
|
|
397
|
+
let _;
|
|
398
|
+
t[11] === r ? _ = t[12] : (_ = { "aria-label": r }, t[11] = r, t[12] = _);
|
|
399
|
+
let v;
|
|
400
|
+
t[13] !== n || t[14] !== s ? (v = (e) => {
|
|
401
|
+
m(e.checked), s(n, e.checked);
|
|
402
|
+
}, t[13] = n, t[14] = s, t[15] = v) : v = t[15];
|
|
403
|
+
let y;
|
|
404
|
+
t[16] !== f || t[17] !== _ || t[18] !== v || t[19] !== p ? (y = /* @__PURE__ */ I(i, {
|
|
405
|
+
size: f,
|
|
406
|
+
checked: p,
|
|
407
|
+
inputProps: _,
|
|
408
|
+
onCheckedChange: v
|
|
409
|
+
}), t[16] = f, t[17] = _, t[18] = v, t[19] = p, t[20] = y) : y = t[20];
|
|
410
|
+
let b;
|
|
411
|
+
return t[21] !== a || t[22] !== u || t[23] !== l || t[24] !== r || t[25] !== y ? (b = /* @__PURE__ */ I(X, {
|
|
412
|
+
name: r,
|
|
413
|
+
description: a,
|
|
414
|
+
hideLabel: l,
|
|
415
|
+
fullWidth: u,
|
|
416
|
+
orientation: "inline",
|
|
417
|
+
children: y
|
|
418
|
+
}), t[21] = a, t[22] = u, t[23] = l, t[24] = r, t[25] = y, t[26] = b) : b = t[26], b;
|
|
419
|
+
}, se = (e) => {
|
|
420
|
+
let t = P(69), { id: n, defaultValue: r, name: i, onChange: a, description: o, readOnly: s, hideLabel: c, fullWidth: l, size: u } = e, f = c !== void 0 && c, p = l !== void 0 && l, h = u === void 0 ? "sm" : u, [v, y] = B(r), [b, x] = B(!1), S = z(null), C = z(null), w = z(null), T;
|
|
421
|
+
t[0] !== n || t[1] !== a ? (T = (e) => {
|
|
422
|
+
w.current && clearTimeout(w.current), w.current = setTimeout(() => a(n, e), 540);
|
|
423
|
+
}, t[0] = n, t[1] = a, t[2] = T) : T = t[2];
|
|
424
|
+
let E = T, D, O;
|
|
425
|
+
t[3] === r ? (D = t[4], O = t[5]) : (D = () => {
|
|
426
|
+
y(r);
|
|
427
|
+
}, O = [r], t[3] = r, t[4] = D, t[5] = O), R(D, O);
|
|
428
|
+
let k, A;
|
|
429
|
+
t[6] === b ? (k = t[7], A = t[8]) : (k = () => {
|
|
430
|
+
if (!b) return;
|
|
431
|
+
let e = (e) => {
|
|
432
|
+
let t = e;
|
|
433
|
+
return S.current?.contains(t) || C.current?.contains(t);
|
|
434
|
+
}, t = (t) => {
|
|
435
|
+
e(t.target) || x(!1);
|
|
436
|
+
};
|
|
437
|
+
return document.addEventListener("focusin", t, !0), document.addEventListener("pointerdown", t, !0), document.addEventListener("click", t, !0), () => {
|
|
438
|
+
document.removeEventListener("focusin", t, !0), document.removeEventListener("pointerdown", t, !0), document.removeEventListener("click", t, !0);
|
|
439
|
+
};
|
|
440
|
+
}, A = [b], t[6] = b, t[7] = k, t[8] = A), R(k, A);
|
|
441
|
+
let j;
|
|
442
|
+
t[9] === E ? j = t[10] : (j = (e) => {
|
|
443
|
+
y(e), E(e);
|
|
444
|
+
}, t[9] = E, t[10] = j);
|
|
445
|
+
let M = j, F;
|
|
446
|
+
t[11] === Symbol.for("react.memo_cache_sentinel") ? (F = (e) => {
|
|
447
|
+
let t = e.currentTarget;
|
|
448
|
+
setTimeout(() => {
|
|
449
|
+
t.contains(t.ownerDocument.activeElement) || x(!1);
|
|
450
|
+
});
|
|
451
|
+
}, t[11] = F) : F = t[11];
|
|
452
|
+
let V = F;
|
|
453
|
+
if (s) {
|
|
454
|
+
let e;
|
|
455
|
+
t[12] === v ? e = t[13] : (e = /* @__PURE__ */ I($, { children: /* @__PURE__ */ L(_, {
|
|
456
|
+
alignItems: "center",
|
|
457
|
+
gap: "xs",
|
|
458
|
+
children: [/* @__PURE__ */ I(m, {
|
|
459
|
+
boxSize: "0.75rem",
|
|
460
|
+
borderRadius: "xs",
|
|
461
|
+
bg: v
|
|
462
|
+
}), /* @__PURE__ */ I(m, {
|
|
463
|
+
as: "span",
|
|
464
|
+
children: v
|
|
465
|
+
})]
|
|
466
|
+
}) }), t[12] = v, t[13] = e);
|
|
467
|
+
let n = e;
|
|
468
|
+
if (p) {
|
|
469
|
+
let e;
|
|
470
|
+
t[14] !== o || t[15] !== f || t[16] !== i ? (e = !f && /* @__PURE__ */ I(m, {
|
|
471
|
+
mb: "xs",
|
|
472
|
+
children: /* @__PURE__ */ I(d, {
|
|
473
|
+
name: i,
|
|
474
|
+
description: o
|
|
475
|
+
})
|
|
476
|
+
}), t[14] = o, t[15] = f, t[16] = i, t[17] = e) : e = t[17];
|
|
477
|
+
let r;
|
|
478
|
+
return t[18] !== e || t[19] !== n ? (r = /* @__PURE__ */ L(m, { children: [e, n] }), t[18] = e, t[19] = n, t[20] = r) : r = t[20], r;
|
|
479
|
+
}
|
|
480
|
+
let r;
|
|
481
|
+
t[21] !== o || t[22] !== f || t[23] !== i ? (r = !f && /* @__PURE__ */ I(d, {
|
|
482
|
+
name: i,
|
|
483
|
+
description: o
|
|
484
|
+
}), t[21] = o, t[22] = f, t[23] = i, t[24] = r) : r = t[24];
|
|
485
|
+
let a;
|
|
486
|
+
return t[25] !== r || t[26] !== n ? (a = /* @__PURE__ */ I(m, { children: /* @__PURE__ */ L(_, {
|
|
487
|
+
alignItems: "center",
|
|
488
|
+
justifyContent: "space-between",
|
|
489
|
+
minHeight: "2rem",
|
|
490
|
+
gap: "xs",
|
|
491
|
+
children: [r, n]
|
|
492
|
+
}) }), t[25] = r, t[26] = n, t[27] = a) : a = t[27], a;
|
|
493
|
+
}
|
|
494
|
+
let H;
|
|
495
|
+
t[28] === v ? H = t[29] : (H = N(v), t[28] = v, t[29] = H);
|
|
496
|
+
let U, W, G;
|
|
497
|
+
t[30] === Symbol.for("react.memo_cache_sentinel") ? (U = (e) => x(e.open), W = () => x(!1), G = () => x(!1), t[30] = U, t[31] = W, t[32] = G) : (U = t[30], W = t[31], G = t[32]);
|
|
498
|
+
let K;
|
|
499
|
+
t[33] === M ? K = t[34] : (K = (e) => M(e.value.toString("hex")), t[33] = M, t[34] = K);
|
|
500
|
+
let q;
|
|
501
|
+
t[35] !== b || t[36] !== s || t[37] !== H || t[38] !== K ? (q = {
|
|
502
|
+
value: H,
|
|
503
|
+
open: b,
|
|
504
|
+
onOpenChange: U,
|
|
505
|
+
onFocusOutside: W,
|
|
506
|
+
onInteractOutside: G,
|
|
507
|
+
onBlur: V,
|
|
508
|
+
onValueChange: K,
|
|
509
|
+
disabled: s
|
|
510
|
+
}, t[35] = b, t[36] = s, t[37] = H, t[38] = K, t[39] = q) : q = t[39];
|
|
511
|
+
let J = q, Y = p ? "100%" : "8.75rem", X;
|
|
512
|
+
t[40] === Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ I(g.HiddenInput, {}), t[40] = X) : X = t[40];
|
|
513
|
+
let ee;
|
|
514
|
+
t[41] === i ? ee = t[42] : (ee = /* @__PURE__ */ I(g.Label, {
|
|
515
|
+
srOnly: !0,
|
|
516
|
+
children: i
|
|
517
|
+
}), t[41] = i, t[42] = ee);
|
|
518
|
+
let Z;
|
|
519
|
+
t[43] === Symbol.for("react.memo_cache_sentinel") ? (Z = () => x(!1), t[43] = Z) : Z = t[43];
|
|
520
|
+
let te;
|
|
521
|
+
t[44] === s ? te = t[45] : (te = /* @__PURE__ */ I(g.Input, {
|
|
522
|
+
readOnly: s,
|
|
523
|
+
onFocus: Z
|
|
524
|
+
}), t[44] = s, t[45] = te);
|
|
525
|
+
let ne;
|
|
526
|
+
t[46] === Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ I(g.Trigger, {}), t[46] = ne) : ne = t[46];
|
|
527
|
+
let Q;
|
|
528
|
+
t[47] === te ? Q = t[48] : (Q = /* @__PURE__ */ L(g.Control, { children: [te, ne] }), t[47] = te, t[48] = Q);
|
|
529
|
+
let re, ie;
|
|
530
|
+
t[49] === Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ I(g.Area, {}), ie = /* @__PURE__ */ I(g.Sliders, {}), t[49] = re, t[50] = ie) : (re = t[49], ie = t[50]);
|
|
531
|
+
let ae;
|
|
532
|
+
t[51] === v ? ae = t[52] : (ae = /* @__PURE__ */ I(g.Swatch, { value: v }), t[51] = v, t[52] = ae);
|
|
533
|
+
let oe;
|
|
534
|
+
t[53] !== ae || t[54] !== v ? (oe = /* @__PURE__ */ I(g.Positioner, { children: /* @__PURE__ */ L(g.Content, {
|
|
535
|
+
ref: C,
|
|
536
|
+
onBlur: V,
|
|
537
|
+
children: [
|
|
538
|
+
re,
|
|
539
|
+
ie,
|
|
540
|
+
/* @__PURE__ */ I(g.SwatchGroup, { children: /* @__PURE__ */ I(g.SwatchTrigger, {
|
|
541
|
+
value: v,
|
|
542
|
+
children: ae
|
|
543
|
+
}) })
|
|
544
|
+
]
|
|
545
|
+
}) }), t[53] = ae, t[54] = v, t[55] = oe) : oe = t[55];
|
|
546
|
+
let se;
|
|
547
|
+
t[56] !== J || t[57] !== h || t[58] !== Y || t[59] !== ee || t[60] !== Q || t[61] !== oe ? (se = /* @__PURE__ */ L(g.Root, {
|
|
548
|
+
ref: S,
|
|
549
|
+
...J,
|
|
550
|
+
size: h,
|
|
551
|
+
width: Y,
|
|
552
|
+
maxW: "100%",
|
|
553
|
+
children: [
|
|
554
|
+
X,
|
|
555
|
+
ee,
|
|
556
|
+
Q,
|
|
557
|
+
oe
|
|
558
|
+
]
|
|
559
|
+
}), t[56] = J, t[57] = h, t[58] = Y, t[59] = ee, t[60] = Q, t[61] = oe, t[62] = se) : se = t[62];
|
|
560
|
+
let ce = se, le;
|
|
561
|
+
return t[63] !== o || t[64] !== p || t[65] !== f || t[66] !== i || t[67] !== ce ? (le = /* @__PURE__ */ I(m, { children: p ? /* @__PURE__ */ L(m, { children: [!f && /* @__PURE__ */ I(m, {
|
|
562
|
+
mb: "xs",
|
|
563
|
+
children: /* @__PURE__ */ I(d, {
|
|
564
|
+
name: i,
|
|
565
|
+
description: o
|
|
566
|
+
})
|
|
567
|
+
}), ce] }) : /* @__PURE__ */ L(_, {
|
|
568
|
+
alignItems: "center",
|
|
569
|
+
justifyContent: "space-between",
|
|
570
|
+
minHeight: "2rem",
|
|
571
|
+
gap: "xs",
|
|
572
|
+
children: [!f && /* @__PURE__ */ I(d, {
|
|
573
|
+
name: i,
|
|
574
|
+
description: o
|
|
575
|
+
}), ce]
|
|
576
|
+
}) }), t[63] = o, t[64] = p, t[65] = f, t[66] = i, t[67] = ce, t[68] = le) : le = t[68], le;
|
|
577
|
+
}, ce = /^(\d{4})-(\d{2})-(\d{2})$/, le = (e) => {
|
|
578
|
+
let t = ce.exec(e);
|
|
579
|
+
if (t) {
|
|
580
|
+
let [, e, n, r] = t;
|
|
581
|
+
return new Intl.DateTimeFormat(void 0, { dateStyle: "medium" }).format(new Date(Number(e), Number(n) - 1, Number(r)));
|
|
582
|
+
}
|
|
583
|
+
let n = new Date(e);
|
|
584
|
+
return Number.isNaN(n.getTime()) ? e : new Intl.DateTimeFormat(void 0, {
|
|
585
|
+
dateStyle: "medium",
|
|
586
|
+
timeStyle: "short"
|
|
587
|
+
}).format(n);
|
|
588
|
+
}, ue = (e) => {
|
|
589
|
+
let t = P(37), { id: n, defaultValue: r, name: i, min: a, max: o, onChange: s, description: c, readOnly: l, hideLabel: u, fullWidth: f, size: p } = e, h = u !== void 0 && u, g = f !== void 0 && f, v = p === void 0 ? "sm" : p, [y, b] = B(r), x = z(null), S;
|
|
590
|
+
t[0] !== n || t[1] !== s ? (S = (e) => {
|
|
591
|
+
x.current && clearTimeout(x.current), x.current = setTimeout(() => s(n, e), 540);
|
|
592
|
+
}, t[0] = n, t[1] = s, t[2] = S) : S = t[2];
|
|
593
|
+
let C = S, T, E;
|
|
594
|
+
t[3] === r ? (T = t[4], E = t[5]) : (T = () => {
|
|
595
|
+
b(r);
|
|
596
|
+
}, E = [r], t[3] = r, t[4] = T, t[5] = E), R(T, E);
|
|
597
|
+
let D;
|
|
598
|
+
t[6] === C ? D = t[7] : (D = (e) => {
|
|
599
|
+
b(e), C(e);
|
|
600
|
+
}, t[6] = C, t[7] = D);
|
|
601
|
+
let O = D;
|
|
602
|
+
if (l) {
|
|
603
|
+
let e;
|
|
604
|
+
t[8] === y ? e = t[9] : (e = le(y), t[8] = y, t[9] = e);
|
|
605
|
+
let n;
|
|
606
|
+
t[10] === e ? n = t[11] : (n = /* @__PURE__ */ I($, { children: e }), t[10] = e, t[11] = n);
|
|
607
|
+
let r = n;
|
|
608
|
+
if (g) {
|
|
609
|
+
let e;
|
|
610
|
+
t[12] !== c || t[13] !== h || t[14] !== i ? (e = !h && /* @__PURE__ */ I(m, {
|
|
611
|
+
mb: "xs",
|
|
612
|
+
children: /* @__PURE__ */ I(d, {
|
|
613
|
+
name: i,
|
|
614
|
+
description: c
|
|
615
|
+
})
|
|
616
|
+
}), t[12] = c, t[13] = h, t[14] = i, t[15] = e) : e = t[15];
|
|
617
|
+
let n;
|
|
618
|
+
return t[16] !== e || t[17] !== r ? (n = /* @__PURE__ */ L(m, { children: [e, r] }), t[16] = e, t[17] = r, t[18] = n) : n = t[18], n;
|
|
619
|
+
}
|
|
620
|
+
let a;
|
|
621
|
+
t[19] !== c || t[20] !== h || t[21] !== i ? (a = !h && /* @__PURE__ */ I(d, {
|
|
622
|
+
name: i,
|
|
623
|
+
description: c
|
|
624
|
+
}), t[19] = c, t[20] = h, t[21] = i, t[22] = a) : a = t[22];
|
|
625
|
+
let o;
|
|
626
|
+
return t[23] !== a || t[24] !== r ? (o = /* @__PURE__ */ I(m, { children: /* @__PURE__ */ L(_, {
|
|
627
|
+
alignItems: "center",
|
|
628
|
+
justifyContent: "space-between",
|
|
629
|
+
minHeight: "2rem",
|
|
630
|
+
gap: "xs",
|
|
631
|
+
children: [a, r]
|
|
632
|
+
}) }), t[23] = a, t[24] = r, t[25] = o) : o = t[25], o;
|
|
633
|
+
}
|
|
634
|
+
let k;
|
|
635
|
+
return t[26] !== c || t[27] !== g || t[28] !== O || t[29] !== h || t[30] !== o || t[31] !== a || t[32] !== i || t[33] !== l || t[34] !== v || t[35] !== y ? (k = /* @__PURE__ */ I(m, { children: g ? /* @__PURE__ */ L(m, { children: [!h && /* @__PURE__ */ I(m, {
|
|
636
|
+
mb: "xs",
|
|
637
|
+
children: /* @__PURE__ */ I(d, {
|
|
638
|
+
name: i,
|
|
639
|
+
description: c
|
|
640
|
+
})
|
|
641
|
+
}), /* @__PURE__ */ I(w, {
|
|
642
|
+
className: "nodrag",
|
|
643
|
+
readOnly: l,
|
|
644
|
+
width: "100%",
|
|
645
|
+
size: v,
|
|
646
|
+
type: "date",
|
|
647
|
+
placeholder: h ? i : void 0,
|
|
648
|
+
value: y,
|
|
649
|
+
min: a,
|
|
650
|
+
max: o,
|
|
651
|
+
onChange: (e) => O(e.target.value),
|
|
652
|
+
onKeyUp: de
|
|
653
|
+
})] }) : /* @__PURE__ */ L(_, {
|
|
654
|
+
alignItems: "center",
|
|
655
|
+
justifyContent: "space-between",
|
|
656
|
+
minHeight: "2rem",
|
|
657
|
+
gap: "xs",
|
|
658
|
+
children: [!h && /* @__PURE__ */ I(d, {
|
|
659
|
+
name: i,
|
|
660
|
+
description: c
|
|
661
|
+
}), /* @__PURE__ */ I(w, {
|
|
662
|
+
className: "nodrag",
|
|
663
|
+
readOnly: l,
|
|
664
|
+
width: "8.75rem",
|
|
665
|
+
size: v,
|
|
666
|
+
type: "date",
|
|
667
|
+
placeholder: h ? i : void 0,
|
|
668
|
+
value: y,
|
|
669
|
+
min: a,
|
|
670
|
+
max: o,
|
|
671
|
+
onChange: (e) => O(e.target.value),
|
|
672
|
+
onKeyUp: fe
|
|
673
|
+
})]
|
|
674
|
+
}) }), t[26] = c, t[27] = g, t[28] = O, t[29] = h, t[30] = o, t[31] = a, t[32] = i, t[33] = l, t[34] = v, t[35] = y, t[36] = k) : k = t[36], k;
|
|
675
|
+
};
|
|
676
|
+
function de(e) {
|
|
677
|
+
e.key === "Enter" && e.currentTarget.blur();
|
|
678
|
+
}
|
|
679
|
+
function fe(e) {
|
|
680
|
+
e.key === "Enter" && e.currentTarget.blur();
|
|
681
|
+
}
|
|
682
|
+
//#endregion
|
|
683
|
+
//#region src/components/param-editor/inputs/file-upload-value.ts
|
|
684
|
+
var pe = (e, t) => `${e.name}-${e.size.toString()}-${e.lastModified.toString()}-${t.toString()}`, me = (e, t, n) => {
|
|
1482
685
|
let r = n ? t.length : 0, i = e.map((e, t) => ({
|
|
1483
|
-
id:
|
|
686
|
+
id: pe(e, r + t),
|
|
1484
687
|
file: e,
|
|
1485
688
|
status: "queued"
|
|
1486
689
|
}));
|
|
1487
690
|
return n ? [...t, ...i] : i.slice(0, 1);
|
|
1488
|
-
},
|
|
691
|
+
}, he = (e) => {
|
|
1489
692
|
let t = [
|
|
1490
693
|
"uploading",
|
|
1491
694
|
"error",
|
|
@@ -1496,12 +699,16 @@ var Me = (e) => {
|
|
|
1496
699
|
state: t,
|
|
1497
700
|
count: t === "empty" ? 0 : e.filter((e) => e.status === t).length
|
|
1498
701
|
};
|
|
1499
|
-
},
|
|
702
|
+
}, ge = {
|
|
703
|
+
queued: G,
|
|
704
|
+
complete: W,
|
|
705
|
+
error: U
|
|
706
|
+
}, _e = (e) => {
|
|
1500
707
|
let t = P(21), { values: n } = e, r, i, a, o, s, c, l;
|
|
1501
708
|
if (t[0] !== n) {
|
|
1502
709
|
l = Symbol.for("react.early_return_sentinel");
|
|
1503
710
|
bb0: {
|
|
1504
|
-
if (i =
|
|
711
|
+
if (i = he(n), i.state === "empty") {
|
|
1505
712
|
l = null;
|
|
1506
713
|
break bb0;
|
|
1507
714
|
}
|
|
@@ -1523,7 +730,7 @@ var Me = (e) => {
|
|
|
1523
730
|
boxSize: "12px",
|
|
1524
731
|
borderWidth: "1px"
|
|
1525
732
|
}) : /* @__PURE__ */ I(x, {
|
|
1526
|
-
as: i.state
|
|
733
|
+
as: ge[i.state],
|
|
1527
734
|
boxSize: "12px"
|
|
1528
735
|
}), t[13] = i.state, t[14] = p);
|
|
1529
736
|
let m = p, h = i.state === "error" ? "fg.error" : "fg.muted", g = f[i.state], v;
|
|
@@ -1538,33 +745,33 @@ var Me = (e) => {
|
|
|
1538
745
|
color: h,
|
|
1539
746
|
children: [m, v]
|
|
1540
747
|
}), t[17] = m, t[18] = v, t[19] = h, t[20] = y) : y = t[20], y;
|
|
1541
|
-
},
|
|
748
|
+
}, ve = (e) => {
|
|
1542
749
|
let t = P(14), { readOnly: n, values: r, onRemove: i } = e;
|
|
1543
750
|
if (r.length === 0) return null;
|
|
1544
751
|
let a;
|
|
1545
|
-
t[0] === r ? a = t[1] : (a = /* @__PURE__ */ I(
|
|
752
|
+
t[0] === r ? a = t[1] : (a = /* @__PURE__ */ I(_e, { values: r }), t[0] = r, t[1] = a);
|
|
1546
753
|
let o;
|
|
1547
754
|
if (t[2] !== i || t[3] !== n || t[4] !== r) {
|
|
1548
755
|
let e;
|
|
1549
|
-
t[6] !== i || t[7] !== n ? (e = (e) => /* @__PURE__ */ I(
|
|
756
|
+
t[6] !== i || t[7] !== n ? (e = (e) => /* @__PURE__ */ I(s, {
|
|
1550
757
|
file: e.file,
|
|
1551
758
|
disabled: n,
|
|
1552
759
|
removeLabel: `Remove ${e.file.name}`,
|
|
1553
760
|
onRemove: () => i(e.id)
|
|
1554
761
|
}, e.id), t[6] = i, t[7] = n, t[8] = e) : e = t[8], o = r.map(e), t[2] = i, t[3] = n, t[4] = r, t[5] = o;
|
|
1555
762
|
} else o = t[5];
|
|
1556
|
-
let
|
|
1557
|
-
t[9] === o ?
|
|
763
|
+
let c;
|
|
764
|
+
t[9] === o ? c = t[10] : (c = /* @__PURE__ */ I(M, {
|
|
1558
765
|
gap: "2xs",
|
|
1559
766
|
children: o
|
|
1560
|
-
}), t[9] = o, t[10] =
|
|
767
|
+
}), t[9] = o, t[10] = c);
|
|
1561
768
|
let l;
|
|
1562
|
-
return t[11] !== a || t[12] !==
|
|
769
|
+
return t[11] !== a || t[12] !== c ? (l = /* @__PURE__ */ L(k, {
|
|
1563
770
|
gap: "2xs",
|
|
1564
771
|
minW: "0",
|
|
1565
|
-
children: [a,
|
|
1566
|
-
}), t[11] = a, t[12] =
|
|
1567
|
-
},
|
|
772
|
+
children: [a, c]
|
|
773
|
+
}), t[11] = a, t[12] = c, t[13] = l) : l = t[13], l;
|
|
774
|
+
}, ye = (e) => {
|
|
1568
775
|
let t = P(40), { id: n, name: r, description: i, defaultValue: a, accept: o, multiple: s, uploadLabel: c, onChange: l, readOnly: u, presentation: d } = e, f = s === void 0 || s, p = c === void 0 ? "Attach files" : c, m = d === void 0 ? "stacked" : d, [g, v] = B(a), y = z(null), b, S;
|
|
1569
776
|
t[0] === a ? (b = t[1], S = t[2]) : (b = () => {
|
|
1570
777
|
v(a);
|
|
@@ -1582,13 +789,13 @@ var Me = (e) => {
|
|
|
1582
789
|
flexShrink: 0,
|
|
1583
790
|
onClick: () => y.current?.click(),
|
|
1584
791
|
children: [/* @__PURE__ */ I(x, {
|
|
1585
|
-
as:
|
|
792
|
+
as: K,
|
|
1586
793
|
boxSize: "14px"
|
|
1587
794
|
}), p]
|
|
1588
795
|
}), t[9] = u, t[10] = p, t[11] = D) : D = t[11];
|
|
1589
796
|
let O = D, A;
|
|
1590
797
|
t[12] !== w || t[13] !== f || t[14] !== g ? (A = (e) => {
|
|
1591
|
-
w(
|
|
798
|
+
w(me(Array.from(e.currentTarget.files ?? []), g, f)), e.currentTarget.value = "";
|
|
1592
799
|
}, t[12] = w, t[13] = f, t[14] = g, t[15] = A) : A = t[15];
|
|
1593
800
|
let j;
|
|
1594
801
|
t[16] !== o || t[17] !== f || t[18] !== A ? (j = /* @__PURE__ */ I("input", {
|
|
@@ -1602,7 +809,7 @@ var Me = (e) => {
|
|
|
1602
809
|
let M = j;
|
|
1603
810
|
if (m === "horizontal") {
|
|
1604
811
|
let e;
|
|
1605
|
-
t[20] !== u || t[21] !== E || t[22] !== g ? (e = /* @__PURE__ */ I(
|
|
812
|
+
t[20] !== u || t[21] !== E || t[22] !== g ? (e = /* @__PURE__ */ I(ve, {
|
|
1606
813
|
readOnly: u,
|
|
1607
814
|
values: g,
|
|
1608
815
|
onRemove: E
|
|
@@ -1621,7 +828,7 @@ var Me = (e) => {
|
|
|
1621
828
|
}), t[24] = O, t[25] = M, t[26] = e, t[27] = n) : n = t[27], n;
|
|
1622
829
|
}
|
|
1623
830
|
let N;
|
|
1624
|
-
t[28] !== u || t[29] !== E || t[30] !== g ? (N = /* @__PURE__ */ I(
|
|
831
|
+
t[28] !== u || t[29] !== E || t[30] !== g ? (N = /* @__PURE__ */ I(ve, {
|
|
1625
832
|
readOnly: u,
|
|
1626
833
|
values: g,
|
|
1627
834
|
onRemove: E
|
|
@@ -1630,30 +837,405 @@ var Me = (e) => {
|
|
|
1630
837
|
t[32] !== O || t[33] !== M || t[34] !== N ? (F = /* @__PURE__ */ L(k, {
|
|
1631
838
|
alignItems: "start",
|
|
1632
839
|
gap: "xs",
|
|
1633
|
-
minW: "0",
|
|
1634
|
-
children: [
|
|
1635
|
-
M,
|
|
1636
|
-
O,
|
|
1637
|
-
N
|
|
1638
|
-
]
|
|
1639
|
-
}), t[32] = O, t[33] = M, t[34] = N, t[35] = F) : F = t[35];
|
|
1640
|
-
let V;
|
|
1641
|
-
return t[36] !== i || t[37] !== r || t[38] !== F ? (V = /* @__PURE__ */ I(
|
|
1642
|
-
name: r,
|
|
1643
|
-
description: i,
|
|
1644
|
-
orientation: "stacked",
|
|
1645
|
-
children: F
|
|
1646
|
-
}), t[36] = i, t[37] = r, t[38] = F, t[39] = V) : V = t[39], V;
|
|
1647
|
-
},
|
|
840
|
+
minW: "0",
|
|
841
|
+
children: [
|
|
842
|
+
M,
|
|
843
|
+
O,
|
|
844
|
+
N
|
|
845
|
+
]
|
|
846
|
+
}), t[32] = O, t[33] = M, t[34] = N, t[35] = F) : F = t[35];
|
|
847
|
+
let V;
|
|
848
|
+
return t[36] !== i || t[37] !== r || t[38] !== F ? (V = /* @__PURE__ */ I(X, {
|
|
849
|
+
name: r,
|
|
850
|
+
description: i,
|
|
851
|
+
orientation: "stacked",
|
|
852
|
+
children: F
|
|
853
|
+
}), t[36] = i, t[37] = r, t[38] = F, t[39] = V) : V = t[39], V;
|
|
854
|
+
}, be = (e) => {
|
|
855
|
+
let t = P(33), { id: n, defaultValue: r, name: i, onChange: a, description: o, readOnly: s, hideLabel: c, size: l } = e, u = c !== void 0 && c, f = l === void 0 ? "sm" : l, [p, h] = B(r), [g, v] = B(!1), y = z(null), b;
|
|
856
|
+
t[0] !== n || t[1] !== a ? (b = (e) => {
|
|
857
|
+
y.current && clearTimeout(y.current), y.current = setTimeout(() => a(n, e), 540);
|
|
858
|
+
}, t[0] = n, t[1] = a, t[2] = b) : b = t[2];
|
|
859
|
+
let x = b, S, C;
|
|
860
|
+
t[3] === r ? (S = t[4], C = t[5]) : (S = () => {
|
|
861
|
+
h(r);
|
|
862
|
+
}, C = [r], t[3] = r, t[4] = S, t[5] = C), R(S, C);
|
|
863
|
+
let T;
|
|
864
|
+
t[6] === x ? T = t[7] : (T = (e) => {
|
|
865
|
+
h(e), x(e);
|
|
866
|
+
}, t[6] = x, t[7] = T);
|
|
867
|
+
let E = T, D;
|
|
868
|
+
t[8] === s ? D = t[9] : (D = () => {
|
|
869
|
+
s || v(!0);
|
|
870
|
+
}, t[8] = s, t[9] = D);
|
|
871
|
+
let O = D, k;
|
|
872
|
+
t[10] === p ? k = t[11] : (k = () => {
|
|
873
|
+
p.trim().length === 0 && v(!1);
|
|
874
|
+
}, t[10] = p, t[11] = k);
|
|
875
|
+
let A = k, M;
|
|
876
|
+
t[12] === Symbol.for("react.memo_cache_sentinel") ? (M = (e) => {
|
|
877
|
+
e.key === "Escape" && (v(!1), e.preventDefault());
|
|
878
|
+
}, t[12] = M) : M = t[12];
|
|
879
|
+
let N = M;
|
|
880
|
+
if (s) {
|
|
881
|
+
let e;
|
|
882
|
+
t[13] !== o || t[14] !== u || t[15] !== i ? (e = !u && /* @__PURE__ */ I(d, {
|
|
883
|
+
name: i,
|
|
884
|
+
description: o
|
|
885
|
+
}), t[13] = o, t[14] = u, t[15] = i, t[16] = e) : e = t[16];
|
|
886
|
+
let n;
|
|
887
|
+
t[17] === p ? n = t[18] : (n = /* @__PURE__ */ I($, {
|
|
888
|
+
preserveWhitespace: !0,
|
|
889
|
+
children: p
|
|
890
|
+
}), t[17] = p, t[18] = n);
|
|
891
|
+
let r;
|
|
892
|
+
return t[19] !== n || t[20] !== e ? (r = /* @__PURE__ */ I(m, {
|
|
893
|
+
position: "relative",
|
|
894
|
+
flex: "1",
|
|
895
|
+
minW: "12.5rem",
|
|
896
|
+
children: /* @__PURE__ */ L(_, {
|
|
897
|
+
alignItems: "center",
|
|
898
|
+
justifyContent: "space-between",
|
|
899
|
+
minHeight: "2rem",
|
|
900
|
+
gap: "xs",
|
|
901
|
+
children: [e, n]
|
|
902
|
+
})
|
|
903
|
+
}), t[19] = n, t[20] = e, t[21] = r) : r = t[21], r;
|
|
904
|
+
}
|
|
905
|
+
let F;
|
|
906
|
+
return t[22] !== o || t[23] !== A || t[24] !== E || t[25] !== O || t[26] !== u || t[27] !== g || t[28] !== i || t[29] !== s || t[30] !== f || t[31] !== p ? (F = /* @__PURE__ */ I(m, {
|
|
907
|
+
position: "relative",
|
|
908
|
+
flex: "1",
|
|
909
|
+
minW: "12.5rem",
|
|
910
|
+
children: /* @__PURE__ */ I(m, {
|
|
911
|
+
position: "relative",
|
|
912
|
+
minHeight: "2rem",
|
|
913
|
+
children: g ? /* @__PURE__ */ L(m, {
|
|
914
|
+
position: "absolute",
|
|
915
|
+
top: "0",
|
|
916
|
+
left: "0",
|
|
917
|
+
right: "0",
|
|
918
|
+
zIndex: "10",
|
|
919
|
+
bg: "bg",
|
|
920
|
+
borderWidth: "1px",
|
|
921
|
+
borderStyle: "solid",
|
|
922
|
+
borderColor: "border",
|
|
923
|
+
borderRadius: "lg",
|
|
924
|
+
p: "2",
|
|
925
|
+
transition: "border-color 0.2s ease-in-out",
|
|
926
|
+
boxShadow: "none",
|
|
927
|
+
_hover: { borderColor: "border.accent-light" },
|
|
928
|
+
_active: { borderColor: "border.accent-light" },
|
|
929
|
+
_focusWithin: {
|
|
930
|
+
borderColor: "border.accent-light",
|
|
931
|
+
boxShadow: "none"
|
|
932
|
+
},
|
|
933
|
+
children: [!u && /* @__PURE__ */ I(m, {
|
|
934
|
+
mb: "sm",
|
|
935
|
+
children: /* @__PURE__ */ I(d, {
|
|
936
|
+
name: i,
|
|
937
|
+
description: o
|
|
938
|
+
})
|
|
939
|
+
}), /* @__PURE__ */ I(j, {
|
|
940
|
+
"aria-label": i,
|
|
941
|
+
className: "nodrag",
|
|
942
|
+
readOnly: s,
|
|
943
|
+
width: "100%",
|
|
944
|
+
size: f,
|
|
945
|
+
placeholder: u ? i : void 0,
|
|
946
|
+
value: p,
|
|
947
|
+
onChange: (e) => E(e.target.value),
|
|
948
|
+
onBlur: A,
|
|
949
|
+
onKeyDown: N,
|
|
950
|
+
rows: 3,
|
|
951
|
+
resize: "vertical",
|
|
952
|
+
autoFocus: !0
|
|
953
|
+
})]
|
|
954
|
+
}) : /* @__PURE__ */ L(_, {
|
|
955
|
+
alignItems: "center",
|
|
956
|
+
justifyContent: "space-between",
|
|
957
|
+
height: "2rem",
|
|
958
|
+
gap: "xs",
|
|
959
|
+
children: [!u && /* @__PURE__ */ I(d, {
|
|
960
|
+
name: i,
|
|
961
|
+
description: o
|
|
962
|
+
}), /* @__PURE__ */ I(w, {
|
|
963
|
+
"aria-label": i,
|
|
964
|
+
className: "nodrag",
|
|
965
|
+
readOnly: s,
|
|
966
|
+
flex: "1",
|
|
967
|
+
maxW: "12.5rem",
|
|
968
|
+
size: f,
|
|
969
|
+
type: "text",
|
|
970
|
+
placeholder: u ? i : void 0,
|
|
971
|
+
value: p,
|
|
972
|
+
onClick: O,
|
|
973
|
+
onChange: (e) => E(e.target.value),
|
|
974
|
+
onKeyUp: xe
|
|
975
|
+
})]
|
|
976
|
+
})
|
|
977
|
+
})
|
|
978
|
+
}), t[22] = o, t[23] = A, t[24] = E, t[25] = O, t[26] = u, t[27] = g, t[28] = i, t[29] = s, t[30] = f, t[31] = p, t[32] = F) : F = t[32], F;
|
|
979
|
+
};
|
|
980
|
+
function xe(e) {
|
|
981
|
+
e.key === "Enter" && e.currentTarget.blur();
|
|
982
|
+
}
|
|
983
|
+
//#endregion
|
|
984
|
+
//#region src/components/rich-text/lazy-markdown-editor.tsx
|
|
985
|
+
var Se = (e) => {
|
|
986
|
+
let [t, n] = B(null);
|
|
987
|
+
return R(() => {
|
|
988
|
+
let e = !1;
|
|
989
|
+
return (async () => {
|
|
990
|
+
await c();
|
|
991
|
+
let t = await import("./markdown-editor-Dd4mor7l.js").then((e) => e.n);
|
|
992
|
+
e || n(() => t.MarkdownEditor);
|
|
993
|
+
})(), () => {
|
|
994
|
+
e = !0;
|
|
995
|
+
};
|
|
996
|
+
}, []), t ? /* @__PURE__ */ I(t, { ...e }) : /* @__PURE__ */ I(m, {
|
|
997
|
+
minH: "7rem",
|
|
998
|
+
borderWidth: "1px",
|
|
999
|
+
borderColor: "border",
|
|
1000
|
+
borderRadius: "xs"
|
|
1001
|
+
});
|
|
1002
|
+
}, Ce = (e) => {
|
|
1003
|
+
let t = P(28), { id: n, name: r, description: i, defaultValue: a, placeholder: o, onChange: s, readOnly: c, presentation: l, size: u } = e, f = l === void 0 ? "stacked" : l, p = u === void 0 ? "sm" : u, [h, g] = B(a), [v, y] = B(!1), b, x;
|
|
1004
|
+
t[0] === a ? (b = t[1], x = t[2]) : (b = () => {
|
|
1005
|
+
g(a);
|
|
1006
|
+
}, x = [a], t[0] = a, t[1] = b, t[2] = x), R(b, x);
|
|
1007
|
+
let S;
|
|
1008
|
+
t[3] !== n || t[4] !== s ? (S = (e) => {
|
|
1009
|
+
g(e), s(n, e);
|
|
1010
|
+
}, t[3] = n, t[4] = s, t[5] = S) : S = t[5];
|
|
1011
|
+
let C = S, T;
|
|
1012
|
+
t[6] !== C || t[7] !== o || t[8] !== c ? (T = (e) => /* @__PURE__ */ I(m, {
|
|
1013
|
+
borderWidth: "1px",
|
|
1014
|
+
borderColor: "border",
|
|
1015
|
+
borderRadius: "xs",
|
|
1016
|
+
minH: "7rem",
|
|
1017
|
+
minW: "0",
|
|
1018
|
+
overflow: "visible",
|
|
1019
|
+
width: "full",
|
|
1020
|
+
children: /* @__PURE__ */ I(Se, {
|
|
1021
|
+
defaultState: e,
|
|
1022
|
+
isEditable: !c,
|
|
1023
|
+
placeholder: o,
|
|
1024
|
+
scrollable: !1,
|
|
1025
|
+
onChange: C
|
|
1026
|
+
})
|
|
1027
|
+
}), t[6] = C, t[7] = o, t[8] = c, t[9] = T) : T = t[9];
|
|
1028
|
+
let E = T, D;
|
|
1029
|
+
t[10] !== i || t[11] !== r ? (D = /* @__PURE__ */ I(d, {
|
|
1030
|
+
name: r,
|
|
1031
|
+
description: i
|
|
1032
|
+
}), t[10] = i, t[11] = r, t[12] = D) : D = t[12];
|
|
1033
|
+
let O = D;
|
|
1034
|
+
if (f === "horizontal") {
|
|
1035
|
+
if (c) {
|
|
1036
|
+
let e;
|
|
1037
|
+
return t[13] === h ? e = t[14] : (e = /* @__PURE__ */ I(m, {
|
|
1038
|
+
position: "relative",
|
|
1039
|
+
flex: "1",
|
|
1040
|
+
minW: "12.5rem",
|
|
1041
|
+
children: /* @__PURE__ */ I(_, {
|
|
1042
|
+
alignItems: "center",
|
|
1043
|
+
minHeight: "2rem",
|
|
1044
|
+
children: /* @__PURE__ */ I($, {
|
|
1045
|
+
preserveWhitespace: !0,
|
|
1046
|
+
children: h
|
|
1047
|
+
})
|
|
1048
|
+
})
|
|
1049
|
+
}), t[13] = h, t[14] = e), e;
|
|
1050
|
+
}
|
|
1051
|
+
let e;
|
|
1052
|
+
return t[15] !== C || t[16] !== E || t[17] !== v || t[18] !== r || t[19] !== p || t[20] !== h ? (e = /* @__PURE__ */ I(m, {
|
|
1053
|
+
position: "relative",
|
|
1054
|
+
flex: "1",
|
|
1055
|
+
minW: "12.5rem",
|
|
1056
|
+
children: /* @__PURE__ */ I(m, {
|
|
1057
|
+
position: "relative",
|
|
1058
|
+
minHeight: "2rem",
|
|
1059
|
+
children: v ? /* @__PURE__ */ I(m, {
|
|
1060
|
+
position: "absolute",
|
|
1061
|
+
top: "0",
|
|
1062
|
+
left: "0",
|
|
1063
|
+
right: "0",
|
|
1064
|
+
zIndex: "10",
|
|
1065
|
+
bg: "bg",
|
|
1066
|
+
borderWidth: "1px",
|
|
1067
|
+
borderColor: "border",
|
|
1068
|
+
borderRadius: "lg",
|
|
1069
|
+
p: "2",
|
|
1070
|
+
transition: "border-color 0.2s ease-in-out",
|
|
1071
|
+
_hover: { borderColor: "border.accent-light" },
|
|
1072
|
+
_focusWithin: { borderColor: "border.accent-light" },
|
|
1073
|
+
onKeyDown: (e) => {
|
|
1074
|
+
e.key === "Escape" && (y(!1), e.preventDefault());
|
|
1075
|
+
},
|
|
1076
|
+
children: E(h)
|
|
1077
|
+
}) : /* @__PURE__ */ I(w, {
|
|
1078
|
+
className: "nodrag",
|
|
1079
|
+
flex: "1",
|
|
1080
|
+
maxW: "12.5rem",
|
|
1081
|
+
size: p,
|
|
1082
|
+
type: "text",
|
|
1083
|
+
placeholder: r,
|
|
1084
|
+
value: h,
|
|
1085
|
+
onClick: () => {
|
|
1086
|
+
y(!0);
|
|
1087
|
+
},
|
|
1088
|
+
onChange: (e) => C(e.target.value)
|
|
1089
|
+
})
|
|
1090
|
+
})
|
|
1091
|
+
}), t[15] = C, t[16] = E, t[17] = v, t[18] = r, t[19] = p, t[20] = h, t[21] = e) : e = t[21], e;
|
|
1092
|
+
}
|
|
1093
|
+
let A;
|
|
1094
|
+
t[22] !== E || t[23] !== h ? (A = E(h), t[22] = E, t[23] = h, t[24] = A) : A = t[24];
|
|
1095
|
+
let j;
|
|
1096
|
+
return t[25] !== O || t[26] !== A ? (j = /* @__PURE__ */ L(k, {
|
|
1097
|
+
gap: "xs",
|
|
1098
|
+
minW: "0",
|
|
1099
|
+
width: "full",
|
|
1100
|
+
children: [O, A]
|
|
1101
|
+
}), t[25] = O, t[26] = A, t[27] = j) : j = t[27], j;
|
|
1102
|
+
}, we = (e) => {
|
|
1103
|
+
let t = P(50), { id: n, defaultValue: r, name: i, step: a, min: s, max: c, onChange: l, description: p, readOnly: h, hideLabel: g, hideSlider: v, fullWidth: y, size: b } = e, x = a === void 0 ? 1 : a, S = g !== void 0 && g, C = v !== void 0 && v, w = y !== void 0 && y, T = b === void 0 ? "sm" : b, [E, D] = B(r), O = s !== void 0 && c !== void 0 && !C, k = w && !O, A = z(null), j = z(null), M;
|
|
1104
|
+
t[0] !== n || t[1] !== l ? (M = (e) => {
|
|
1105
|
+
A.current && clearTimeout(A.current), j.current = e, A.current = setTimeout(() => {
|
|
1106
|
+
j.current = null, l(n, e);
|
|
1107
|
+
}, 540);
|
|
1108
|
+
}, t[0] = n, t[1] = l, t[2] = M) : M = t[2];
|
|
1109
|
+
let N = M, F;
|
|
1110
|
+
t[3] !== n || t[4] !== l ? (F = () => {
|
|
1111
|
+
if (j.current === null) return;
|
|
1112
|
+
A.current && clearTimeout(A.current);
|
|
1113
|
+
let e = j.current;
|
|
1114
|
+
j.current = null, l(n, e);
|
|
1115
|
+
}, t[3] = n, t[4] = l, t[5] = F) : F = t[5];
|
|
1116
|
+
let V = F, H, U;
|
|
1117
|
+
if (t[6] === r ? (H = t[7], U = t[8]) : (H = () => {
|
|
1118
|
+
D(r);
|
|
1119
|
+
}, U = [r], t[6] = r, t[7] = H, t[8] = U), R(H, U), h) {
|
|
1120
|
+
let e;
|
|
1121
|
+
t[9] === E ? e = t[10] : (e = /* @__PURE__ */ I($, { children: E }), t[9] = E, t[10] = e);
|
|
1122
|
+
let n = e;
|
|
1123
|
+
if (w) {
|
|
1124
|
+
let e;
|
|
1125
|
+
t[11] !== p || t[12] !== S || t[13] !== i ? (e = !S && /* @__PURE__ */ I(m, {
|
|
1126
|
+
mb: "xs",
|
|
1127
|
+
children: /* @__PURE__ */ I(d, {
|
|
1128
|
+
name: i,
|
|
1129
|
+
description: p
|
|
1130
|
+
})
|
|
1131
|
+
}), t[11] = p, t[12] = S, t[13] = i, t[14] = e) : e = t[14];
|
|
1132
|
+
let r;
|
|
1133
|
+
return t[15] !== e || t[16] !== n ? (r = /* @__PURE__ */ L(m, { children: [e, n] }), t[15] = e, t[16] = n, t[17] = r) : r = t[17], r;
|
|
1134
|
+
}
|
|
1135
|
+
let r;
|
|
1136
|
+
t[18] !== p || t[19] !== S || t[20] !== i ? (r = !S && /* @__PURE__ */ I(d, {
|
|
1137
|
+
name: i,
|
|
1138
|
+
description: p
|
|
1139
|
+
}), t[18] = p, t[19] = S, t[20] = i, t[21] = r) : r = t[21];
|
|
1140
|
+
let a;
|
|
1141
|
+
return t[22] !== r || t[23] !== n ? (a = /* @__PURE__ */ I(m, { children: /* @__PURE__ */ L(_, {
|
|
1142
|
+
alignItems: "center",
|
|
1143
|
+
justifyContent: "space-between",
|
|
1144
|
+
minHeight: "2rem",
|
|
1145
|
+
gap: "xs",
|
|
1146
|
+
children: [r, n]
|
|
1147
|
+
}) }), t[22] = r, t[23] = n, t[24] = a) : a = t[24], a;
|
|
1148
|
+
}
|
|
1149
|
+
let W;
|
|
1150
|
+
t[25] !== p || t[26] !== V || t[27] !== S || t[28] !== c || t[29] !== s || t[30] !== i || t[31] !== h || t[32] !== N || t[33] !== T || t[34] !== x || t[35] !== k || t[36] !== E ? (W = k ? /* @__PURE__ */ L(m, { children: [!S && /* @__PURE__ */ I(m, {
|
|
1151
|
+
mb: "xs",
|
|
1152
|
+
children: /* @__PURE__ */ I(d, {
|
|
1153
|
+
name: i,
|
|
1154
|
+
description: p
|
|
1155
|
+
})
|
|
1156
|
+
}), /* @__PURE__ */ I(u, {
|
|
1157
|
+
disabled: h,
|
|
1158
|
+
width: "100%",
|
|
1159
|
+
size: T,
|
|
1160
|
+
value: `${E}`,
|
|
1161
|
+
step: x,
|
|
1162
|
+
min: s,
|
|
1163
|
+
max: c,
|
|
1164
|
+
onValueChange: (e) => {
|
|
1165
|
+
let t = Number.isNaN(e.valueAsNumber) ? s ?? 0 : e.valueAsNumber;
|
|
1166
|
+
D(t), N(t);
|
|
1167
|
+
},
|
|
1168
|
+
children: /* @__PURE__ */ I(f, {
|
|
1169
|
+
className: "nodrag",
|
|
1170
|
+
readOnly: h,
|
|
1171
|
+
placeholder: S ? i : void 0,
|
|
1172
|
+
onBlur: V,
|
|
1173
|
+
onKeyUp: Te
|
|
1174
|
+
})
|
|
1175
|
+
})] }) : /* @__PURE__ */ L(_, {
|
|
1176
|
+
alignItems: "center",
|
|
1177
|
+
justifyContent: "space-between",
|
|
1178
|
+
minHeight: "2rem",
|
|
1179
|
+
gap: "xs",
|
|
1180
|
+
children: [!S && /* @__PURE__ */ I(d, {
|
|
1181
|
+
name: i,
|
|
1182
|
+
description: p
|
|
1183
|
+
}), /* @__PURE__ */ I(u, {
|
|
1184
|
+
disabled: h,
|
|
1185
|
+
width: "5rem",
|
|
1186
|
+
size: T,
|
|
1187
|
+
value: `${E}`,
|
|
1188
|
+
step: x,
|
|
1189
|
+
min: s,
|
|
1190
|
+
max: c,
|
|
1191
|
+
onValueChange: (e) => {
|
|
1192
|
+
let t = Number.isNaN(e.valueAsNumber) ? s ?? 0 : e.valueAsNumber;
|
|
1193
|
+
D(t), N(t);
|
|
1194
|
+
},
|
|
1195
|
+
children: /* @__PURE__ */ I(f, {
|
|
1196
|
+
className: "nodrag",
|
|
1197
|
+
readOnly: h,
|
|
1198
|
+
placeholder: S ? i : void 0,
|
|
1199
|
+
onBlur: V,
|
|
1200
|
+
onKeyUp: Ee
|
|
1201
|
+
})
|
|
1202
|
+
})]
|
|
1203
|
+
}), t[25] = p, t[26] = V, t[27] = S, t[28] = c, t[29] = s, t[30] = i, t[31] = h, t[32] = N, t[33] = T, t[34] = x, t[35] = k, t[36] = E, t[37] = W) : W = t[37];
|
|
1204
|
+
let G;
|
|
1205
|
+
t[38] !== n || t[39] !== c || t[40] !== s || t[41] !== l || t[42] !== h || t[43] !== O || t[44] !== x || t[45] !== E ? (G = O && /* @__PURE__ */ I(o, {
|
|
1206
|
+
disabled: h,
|
|
1207
|
+
value: [E],
|
|
1208
|
+
step: x,
|
|
1209
|
+
min: s,
|
|
1210
|
+
max: c,
|
|
1211
|
+
onValueChange: (e) => {
|
|
1212
|
+
D(e.value[0]);
|
|
1213
|
+
},
|
|
1214
|
+
onValueChangeEnd: (e) => {
|
|
1215
|
+
l(n, e.value[0]);
|
|
1216
|
+
}
|
|
1217
|
+
}), t[38] = n, t[39] = c, t[40] = s, t[41] = l, t[42] = h, t[43] = O, t[44] = x, t[45] = E, t[46] = G) : G = t[46];
|
|
1218
|
+
let K;
|
|
1219
|
+
return t[47] !== G || t[48] !== W ? (K = /* @__PURE__ */ L(m, { children: [W, G] }), t[47] = G, t[48] = W, t[49] = K) : K = t[49], K;
|
|
1220
|
+
};
|
|
1221
|
+
function Te(e) {
|
|
1222
|
+
e.key === "Enter" && e.currentTarget.blur();
|
|
1223
|
+
}
|
|
1224
|
+
function Ee(e) {
|
|
1225
|
+
e.key === "Enter" && e.currentTarget.blur();
|
|
1226
|
+
}
|
|
1227
|
+
//#endregion
|
|
1228
|
+
//#region src/components/param-editor/inputs/numeric-value.ts
|
|
1229
|
+
var De = (e, t, n) => {
|
|
1648
1230
|
let r = Math.min(t, n), i = Math.max(t, n);
|
|
1649
1231
|
return e < r ? r : e > i ? i : e;
|
|
1650
|
-
},
|
|
1232
|
+
}, Oe = (e, t, n = 0) => t > 0 ? n + Math.round((e - n) / t) * t : e, ke = (e, t) => {
|
|
1651
1233
|
let n = Number.isInteger(e) ? `${e}` : `${Number(e.toFixed(3))}`;
|
|
1652
1234
|
return t ? `${n}${t}` : n;
|
|
1653
|
-
},
|
|
1654
|
-
let i =
|
|
1655
|
-
return r && r > 0 && (o =
|
|
1656
|
-
},
|
|
1235
|
+
}, Ae = (e, t, n, r) => {
|
|
1236
|
+
let i = De(e[0], t, n), a = De(e[1], t, n), o = Math.min(i, a), s = Math.max(i, a);
|
|
1237
|
+
return r && r > 0 && (o = De(Oe(o, r, t), t, n), s = De(Oe(s, r, t), t, n)), [o, s];
|
|
1238
|
+
}, je = (e) => {
|
|
1657
1239
|
let t = P(4), { count: n } = e;
|
|
1658
1240
|
if (!n || n < 2) return null;
|
|
1659
1241
|
let r;
|
|
@@ -1663,10 +1245,10 @@ var Me = (e) => {
|
|
|
1663
1245
|
justifyContent: "space-between",
|
|
1664
1246
|
mt: "2xs",
|
|
1665
1247
|
"aria-hidden": "true",
|
|
1666
|
-
children: i.map(
|
|
1248
|
+
children: i.map(Me)
|
|
1667
1249
|
}), t[2] = i, t[3] = a), a;
|
|
1668
1250
|
};
|
|
1669
|
-
function
|
|
1251
|
+
function Me(e) {
|
|
1670
1252
|
return /* @__PURE__ */ I(m, {
|
|
1671
1253
|
width: "1px",
|
|
1672
1254
|
height: "0.375rem",
|
|
@@ -1675,32 +1257,32 @@ function qe(e) {
|
|
|
1675
1257
|
}
|
|
1676
1258
|
//#endregion
|
|
1677
1259
|
//#region src/components/param-editor/inputs/range-input.tsx
|
|
1678
|
-
var
|
|
1679
|
-
let t = P(71), { id: n, name: r, description: i, defaultValue: a, min:
|
|
1680
|
-
t[0] !== a || t[1] !==
|
|
1260
|
+
var Ne = (e) => {
|
|
1261
|
+
let t = P(71), { id: n, name: r, description: i, defaultValue: a, min: s, max: c, step: l, unit: u, markerCount: d, onChange: f, readOnly: p, fullWidth: g, presentation: v } = e, y = l === void 0 ? 1 : l, b = v === void 0 ? "stacked" : v, S;
|
|
1262
|
+
t[0] !== a || t[1] !== c || t[2] !== s || t[3] !== y ? (S = () => Ae(a, s, c, y), t[0] = a, t[1] = c, t[2] = s, t[3] = y, t[4] = S) : S = t[4];
|
|
1681
1263
|
let [C, w] = B(S), T, D;
|
|
1682
|
-
t[5] !== a || t[6] !==
|
|
1683
|
-
w(
|
|
1264
|
+
t[5] !== a || t[6] !== c || t[7] !== s || t[8] !== y ? (T = () => {
|
|
1265
|
+
w(Ae(a, s, c, y));
|
|
1684
1266
|
}, D = [
|
|
1685
1267
|
a,
|
|
1686
|
-
o,
|
|
1687
1268
|
s,
|
|
1269
|
+
c,
|
|
1688
1270
|
y
|
|
1689
|
-
], t[5] = a, t[6] =
|
|
1271
|
+
], t[5] = a, t[6] = c, t[7] = s, t[8] = y, t[9] = T, t[10] = D) : (T = t[9], D = t[10]), R(T, D);
|
|
1690
1272
|
let O;
|
|
1691
|
-
t[11] !== u || t[12] !== C[0] ? (O =
|
|
1273
|
+
t[11] !== u || t[12] !== C[0] ? (O = ke(C[0], u), t[11] = u, t[12] = C[0], t[13] = O) : O = t[13];
|
|
1692
1274
|
let j;
|
|
1693
|
-
t[14] !== u || t[15] !== C[1] ? (j =
|
|
1275
|
+
t[14] !== u || t[15] !== C[1] ? (j = ke(C[1], u), t[14] = u, t[15] = C[1], t[16] = j) : j = t[16];
|
|
1694
1276
|
let M = `${O} – ${j}`, N = b === "horizontal";
|
|
1695
1277
|
if (p) {
|
|
1696
1278
|
if (N) {
|
|
1697
1279
|
let e;
|
|
1698
|
-
return t[17] === M ? e = t[18] : (e = /* @__PURE__ */ I(
|
|
1280
|
+
return t[17] === M ? e = t[18] : (e = /* @__PURE__ */ I($, { children: M }), t[17] = M, t[18] = e), e;
|
|
1699
1281
|
}
|
|
1700
1282
|
let e;
|
|
1701
|
-
t[19] === M ? e = t[20] : (e = /* @__PURE__ */ I(
|
|
1283
|
+
t[19] === M ? e = t[20] : (e = /* @__PURE__ */ I($, { children: M }), t[19] = M, t[20] = e);
|
|
1702
1284
|
let n;
|
|
1703
|
-
return t[21] !== i || t[22] !== g || t[23] !== r || t[24] !== e ? (n = /* @__PURE__ */ I(
|
|
1285
|
+
return t[21] !== i || t[22] !== g || t[23] !== r || t[24] !== e ? (n = /* @__PURE__ */ I(X, {
|
|
1704
1286
|
name: r,
|
|
1705
1287
|
description: i,
|
|
1706
1288
|
fullWidth: g,
|
|
@@ -1715,24 +1297,24 @@ var Je = (e) => {
|
|
|
1715
1297
|
children: M
|
|
1716
1298
|
}), t[26] = M, t[27] = F);
|
|
1717
1299
|
let z = F, V;
|
|
1718
|
-
t[28] !==
|
|
1300
|
+
t[28] !== c || t[29] !== s || t[30] !== y ? (V = (e) => w(Ae(e.value, s, c, y)), t[28] = c, t[29] = s, t[30] = y, t[31] = V) : V = t[31];
|
|
1719
1301
|
let U;
|
|
1720
|
-
t[32] !== n || t[33] !==
|
|
1721
|
-
let t =
|
|
1302
|
+
t[32] !== n || t[33] !== c || t[34] !== s || t[35] !== f || t[36] !== y ? (U = (e) => {
|
|
1303
|
+
let t = Ae(e.value, s, c, y);
|
|
1722
1304
|
w(t), f(n, t);
|
|
1723
|
-
}, t[32] = n, t[33] =
|
|
1305
|
+
}, t[32] = n, t[33] = c, t[34] = s, t[35] = f, t[36] = y, t[37] = U) : U = t[37];
|
|
1724
1306
|
let W;
|
|
1725
|
-
t[38] !==
|
|
1307
|
+
t[38] !== c || t[39] !== s || t[40] !== y || t[41] !== V || t[42] !== U || t[43] !== C ? (W = /* @__PURE__ */ I(o, {
|
|
1726
1308
|
size: "sm",
|
|
1727
1309
|
value: C,
|
|
1728
|
-
min:
|
|
1729
|
-
max:
|
|
1310
|
+
min: s,
|
|
1311
|
+
max: c,
|
|
1730
1312
|
step: y,
|
|
1731
1313
|
onValueChange: V,
|
|
1732
1314
|
onValueChangeEnd: U
|
|
1733
|
-
}), t[38] =
|
|
1315
|
+
}), t[38] = c, t[39] = s, t[40] = y, t[41] = V, t[42] = U, t[43] = C, t[44] = W) : W = t[44];
|
|
1734
1316
|
let G;
|
|
1735
|
-
t[45] === d ? G = t[46] : (G = /* @__PURE__ */ I(
|
|
1317
|
+
t[45] === d ? G = t[46] : (G = /* @__PURE__ */ I(je, { count: d }), t[45] = d, t[46] = G);
|
|
1736
1318
|
let K;
|
|
1737
1319
|
t[47] !== W || t[48] !== G ? (K = /* @__PURE__ */ L(m, { children: [W, G] }), t[47] = W, t[48] = G, t[49] = K) : K = t[49];
|
|
1738
1320
|
let q = K;
|
|
@@ -1786,14 +1368,198 @@ var Je = (e) => {
|
|
|
1786
1368
|
}), t[63] = a, t[64] = c, t[65] = l) : l = t[65], l;
|
|
1787
1369
|
}
|
|
1788
1370
|
let J;
|
|
1789
|
-
return t[66] !== i || t[67] !== r || t[68] !== q || t[69] !== z ? (J = /* @__PURE__ */ I(
|
|
1371
|
+
return t[66] !== i || t[67] !== r || t[68] !== q || t[69] !== z ? (J = /* @__PURE__ */ I(X, {
|
|
1790
1372
|
name: r,
|
|
1791
1373
|
description: i,
|
|
1792
1374
|
orientation: "stacked",
|
|
1793
1375
|
labelTrailing: z,
|
|
1794
1376
|
children: q
|
|
1795
1377
|
}), t[66] = i, t[67] = r, t[68] = q, t[69] = z, t[70] = J) : J = t[70], J;
|
|
1796
|
-
},
|
|
1378
|
+
}, Pe = (e) => /* @__PURE__ */ I(x, {
|
|
1379
|
+
as: l(e.icon),
|
|
1380
|
+
boxSize: "14px",
|
|
1381
|
+
color: e.color ? `${e.color}.500` : "fg.muted"
|
|
1382
|
+
}), Fe = (e) => window.open(e, "_blank", "noreferrer"), Ie = (e) => void navigator.clipboard?.writeText(e).catch(() => void 0), Le = (e) => {
|
|
1383
|
+
let t = P(18), { option: n, onOpenResource: i, onRemove: o } = e;
|
|
1384
|
+
if (!(n.href || n.ref || n.copyText)) {
|
|
1385
|
+
let e;
|
|
1386
|
+
return t[0] === n.name ? e = t[1] : (e = /* @__PURE__ */ I(a, { children: n.name }), t[0] = n.name, t[1] = e), e;
|
|
1387
|
+
}
|
|
1388
|
+
let s;
|
|
1389
|
+
t[2] !== i || t[3] !== n.copyText || t[4] !== n.href || t[5] !== n.ref ? (n.href && n.href.length > 0 ? s = () => Fe(n.href) : n.ref && i ? s = () => i(n.ref) : n.copyText && (s = () => Ie(n.copyText)), t[2] = i, t[3] = n.copyText, t[4] = n.href, t[5] = n.ref, t[6] = s) : s = t[6];
|
|
1390
|
+
let c = n.name, l;
|
|
1391
|
+
t[7] === n ? l = t[8] : (l = Pe(n), t[7] = n, t[8] = l);
|
|
1392
|
+
let u;
|
|
1393
|
+
t[9] === s ? u = t[10] : (u = s ? () => s() : void 0, t[9] = s, t[10] = u);
|
|
1394
|
+
let d;
|
|
1395
|
+
t[11] === o ? d = t[12] : (d = o ? () => o() : void 0, t[11] = o, t[12] = d);
|
|
1396
|
+
let f;
|
|
1397
|
+
return t[13] !== n.name || t[14] !== l || t[15] !== u || t[16] !== d ? (f = /* @__PURE__ */ I(r, {
|
|
1398
|
+
fileName: c,
|
|
1399
|
+
icon: l,
|
|
1400
|
+
size: "md",
|
|
1401
|
+
onSelect: u,
|
|
1402
|
+
onRemove: d
|
|
1403
|
+
}), t[13] = n.name, t[14] = l, t[15] = u, t[16] = d, t[17] = f) : f = t[17], f;
|
|
1404
|
+
}, Re = (e) => {
|
|
1405
|
+
let t = P(11), { options: n, onOpenResource: r, onRemove: i, emptyText: a } = e;
|
|
1406
|
+
if (n.length === 0) {
|
|
1407
|
+
let e = a ?? "None", n;
|
|
1408
|
+
return t[0] === e ? n = t[1] : (n = /* @__PURE__ */ I(A, {
|
|
1409
|
+
textStyle: "label/S/regular",
|
|
1410
|
+
color: "fg.muted",
|
|
1411
|
+
children: e
|
|
1412
|
+
}), t[0] = e, t[1] = n), n;
|
|
1413
|
+
}
|
|
1414
|
+
let o;
|
|
1415
|
+
if (t[2] !== r || t[3] !== i || t[4] !== n) {
|
|
1416
|
+
let e;
|
|
1417
|
+
t[6] !== r || t[7] !== i ? (e = (e) => /* @__PURE__ */ I(Le, {
|
|
1418
|
+
option: e,
|
|
1419
|
+
onOpenResource: r,
|
|
1420
|
+
onRemove: i ? () => i(e.id) : void 0
|
|
1421
|
+
}, e.id), t[6] = r, t[7] = i, t[8] = e) : e = t[8], o = n.map(e), t[2] = r, t[3] = i, t[4] = n, t[5] = o;
|
|
1422
|
+
} else o = t[5];
|
|
1423
|
+
let s;
|
|
1424
|
+
return t[9] === o ? s = t[10] : (s = /* @__PURE__ */ I(M, {
|
|
1425
|
+
gap: "2xs",
|
|
1426
|
+
children: o
|
|
1427
|
+
}), t[9] = o, t[10] = s), s;
|
|
1428
|
+
}, ze = (e) => Array.isArray(e) ? e : e ? [e] : [], Be = (e, t) => e.map((e) => t.find((t) => t.id === e)).filter((e) => !!e), Ve = (e) => {
|
|
1429
|
+
let t = P(11), { fullWidth: n, label: r, control: i, presentation: a } = e;
|
|
1430
|
+
if (a === "horizontal") {
|
|
1431
|
+
let e;
|
|
1432
|
+
return t[0] !== i || t[1] !== r ? (e = /* @__PURE__ */ L(k, {
|
|
1433
|
+
gap: "2xs",
|
|
1434
|
+
alignItems: "start",
|
|
1435
|
+
minW: "0",
|
|
1436
|
+
children: [r, i]
|
|
1437
|
+
}), t[0] = i, t[1] = r, t[2] = e) : e = t[2], e;
|
|
1438
|
+
}
|
|
1439
|
+
if (n) {
|
|
1440
|
+
let e;
|
|
1441
|
+
t[3] === r ? e = t[4] : (e = /* @__PURE__ */ I(m, {
|
|
1442
|
+
mb: "xs",
|
|
1443
|
+
children: r
|
|
1444
|
+
}), t[3] = r, t[4] = e);
|
|
1445
|
+
let n;
|
|
1446
|
+
return t[5] !== i || t[6] !== e ? (n = /* @__PURE__ */ L(m, { children: [e, i] }), t[5] = i, t[6] = e, t[7] = n) : n = t[7], n;
|
|
1447
|
+
}
|
|
1448
|
+
let o;
|
|
1449
|
+
return t[8] !== i || t[9] !== r ? (o = /* @__PURE__ */ L(_, {
|
|
1450
|
+
alignItems: "center",
|
|
1451
|
+
justifyContent: "space-between",
|
|
1452
|
+
minHeight: "2rem",
|
|
1453
|
+
gap: "xs",
|
|
1454
|
+
children: [r, i]
|
|
1455
|
+
}), t[8] = i, t[9] = r, t[10] = o) : o = t[10], o;
|
|
1456
|
+
}, He = (e) => {
|
|
1457
|
+
let t = P(9), { triggerLabel: n, options: r, selectedIds: i, multiSelect: a, triggerVariant: o, triggerAriaLabel: s, size: c, onToggle: l } = e, u;
|
|
1458
|
+
return t[0] !== a || t[1] !== l || t[2] !== r || t[3] !== i || t[4] !== c || t[5] !== s || t[6] !== n || t[7] !== o ? (u = /* @__PURE__ */ I(ne, {
|
|
1459
|
+
triggerLabel: n,
|
|
1460
|
+
options: r,
|
|
1461
|
+
selectedIds: i,
|
|
1462
|
+
multiSelect: a,
|
|
1463
|
+
reselectable: !0,
|
|
1464
|
+
triggerVariant: o,
|
|
1465
|
+
triggerAriaLabel: s,
|
|
1466
|
+
size: c,
|
|
1467
|
+
onToggle: l
|
|
1468
|
+
}), t[0] = a, t[1] = l, t[2] = r, t[3] = i, t[4] = c, t[5] = s, t[6] = n, t[7] = o, t[8] = u) : u = t[8], u;
|
|
1469
|
+
}, Ue = (e) => {
|
|
1470
|
+
let t = P(19), { id: n, name: r, description: i, defaultValue: a, options: o, onChange: s, onOpenResource: c, readOnly: l, editable: u, multiSelect: f, placeholder: p, emptyText: m, fullWidth: h, presentation: g, size: v } = e, y = u !== void 0 && u, b = f !== void 0 && f, S = h !== void 0 && h, C = g === void 0 ? "stacked" : g, w = v === void 0 ? "sm" : v, [T, E] = B(a), D = z(null), O, k;
|
|
1471
|
+
t[0] === a ? (O = t[1], k = t[2]) : (O = () => {
|
|
1472
|
+
E(a);
|
|
1473
|
+
}, k = [a], t[0] = a, t[1] = O, t[2] = k), R(O, k);
|
|
1474
|
+
let A = (e) => {
|
|
1475
|
+
D.current && clearTimeout(D.current), s(n, e);
|
|
1476
|
+
}, j = (e) => {
|
|
1477
|
+
D.current && clearTimeout(D.current), D.current = setTimeout(() => s(n, e), 540);
|
|
1478
|
+
}, M = ze(T), N = Be(M, o), F = y && !l, V = C === "horizontal", H;
|
|
1479
|
+
t[3] !== i || t[4] !== r || t[5] !== V ? (H = /* @__PURE__ */ I(d, {
|
|
1480
|
+
name: r,
|
|
1481
|
+
description: i,
|
|
1482
|
+
compact: V
|
|
1483
|
+
}), t[3] = i, t[4] = r, t[5] = V, t[6] = H) : H = t[6];
|
|
1484
|
+
let U = H;
|
|
1485
|
+
if (!F) return /* @__PURE__ */ I(Ve, {
|
|
1486
|
+
fullWidth: S,
|
|
1487
|
+
label: U,
|
|
1488
|
+
presentation: C,
|
|
1489
|
+
control: /* @__PURE__ */ I(Re, {
|
|
1490
|
+
options: N,
|
|
1491
|
+
onOpenResource: c,
|
|
1492
|
+
emptyText: m
|
|
1493
|
+
})
|
|
1494
|
+
});
|
|
1495
|
+
let W = (e) => {
|
|
1496
|
+
if (b) {
|
|
1497
|
+
let t = M.includes(e) ? M.filter((t) => t !== e) : [...M, e];
|
|
1498
|
+
E(t), j(t);
|
|
1499
|
+
return;
|
|
1500
|
+
}
|
|
1501
|
+
let t = M.includes(e) ? "" : e;
|
|
1502
|
+
E(t), A(t);
|
|
1503
|
+
}, G = (e) => {
|
|
1504
|
+
let t = M.filter((t) => t !== e);
|
|
1505
|
+
E(t), j(t);
|
|
1506
|
+
};
|
|
1507
|
+
if (b) {
|
|
1508
|
+
let e;
|
|
1509
|
+
t[7] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ I(x, {
|
|
1510
|
+
as: q,
|
|
1511
|
+
boxSize: "12px"
|
|
1512
|
+
}), t[7] = e) : e = t[7];
|
|
1513
|
+
let n = /* @__PURE__ */ L(_, {
|
|
1514
|
+
gap: "2xs",
|
|
1515
|
+
alignItems: "center",
|
|
1516
|
+
flexWrap: "wrap",
|
|
1517
|
+
minW: "0",
|
|
1518
|
+
children: [N.length > 0 ? /* @__PURE__ */ I(Re, {
|
|
1519
|
+
options: N,
|
|
1520
|
+
onOpenResource: c,
|
|
1521
|
+
onRemove: G,
|
|
1522
|
+
emptyText: m
|
|
1523
|
+
}) : null, /* @__PURE__ */ I(He, {
|
|
1524
|
+
triggerLabel: e,
|
|
1525
|
+
options: o,
|
|
1526
|
+
selectedIds: M,
|
|
1527
|
+
multiSelect: !0,
|
|
1528
|
+
triggerVariant: "icon",
|
|
1529
|
+
triggerAriaLabel: p ?? `Add ${r}`,
|
|
1530
|
+
size: w,
|
|
1531
|
+
onToggle: W
|
|
1532
|
+
})]
|
|
1533
|
+
});
|
|
1534
|
+
return /* @__PURE__ */ I(Ve, {
|
|
1535
|
+
fullWidth: S,
|
|
1536
|
+
label: U,
|
|
1537
|
+
control: n,
|
|
1538
|
+
presentation: C
|
|
1539
|
+
});
|
|
1540
|
+
}
|
|
1541
|
+
let K = N[0], J = K ? /* @__PURE__ */ L(_, {
|
|
1542
|
+
align: "center",
|
|
1543
|
+
gap: "2xs",
|
|
1544
|
+
minW: "0",
|
|
1545
|
+
children: [te(K, "14px"), K.name]
|
|
1546
|
+
}) : p ?? "Select", Y;
|
|
1547
|
+
t[8] !== o || t[9] !== M || t[10] !== w || t[11] !== W || t[12] !== J ? (Y = /* @__PURE__ */ I(He, {
|
|
1548
|
+
triggerLabel: J,
|
|
1549
|
+
options: o,
|
|
1550
|
+
selectedIds: M,
|
|
1551
|
+
multiSelect: !1,
|
|
1552
|
+
size: w,
|
|
1553
|
+
onToggle: W
|
|
1554
|
+
}), t[8] = o, t[9] = M, t[10] = w, t[11] = W, t[12] = J, t[13] = Y) : Y = t[13];
|
|
1555
|
+
let X;
|
|
1556
|
+
return t[14] !== S || t[15] !== U || t[16] !== C || t[17] !== Y ? (X = /* @__PURE__ */ I(Ve, {
|
|
1557
|
+
fullWidth: S,
|
|
1558
|
+
label: U,
|
|
1559
|
+
presentation: C,
|
|
1560
|
+
control: Y
|
|
1561
|
+
}), t[14] = S, t[15] = U, t[16] = C, t[17] = Y, t[18] = X) : X = t[18], X;
|
|
1562
|
+
}, We = (e) => {
|
|
1797
1563
|
let t = P(42), { id: n, name: r, description: i, defaultValue: a, options: o, variant: s, onChange: c, readOnly: l, fullWidth: u, presentation: d } = e, f = s === void 0 ? "default" : s, p = d === void 0 ? "stacked" : d, [g, _] = B(a), v, b;
|
|
1798
1564
|
t[0] === a ? (v = t[1], b = t[2]) : (v = () => {
|
|
1799
1565
|
_(a);
|
|
@@ -1807,9 +1573,9 @@ var Je = (e) => {
|
|
|
1807
1573
|
let w = C, T = p === "horizontal";
|
|
1808
1574
|
if (l) {
|
|
1809
1575
|
let e;
|
|
1810
|
-
t[9] === w ? e = t[10] : (e = /* @__PURE__ */ I(
|
|
1576
|
+
t[9] === w ? e = t[10] : (e = /* @__PURE__ */ I($, { children: w }), t[9] = w, t[10] = e);
|
|
1811
1577
|
let n;
|
|
1812
|
-
return t[11] !== i || t[12] !== u || t[13] !== T || t[14] !== r || t[15] !== e ? (n = /* @__PURE__ */ I(
|
|
1578
|
+
return t[11] !== i || t[12] !== u || t[13] !== T || t[14] !== r || t[15] !== e ? (n = /* @__PURE__ */ I(X, {
|
|
1813
1579
|
name: r,
|
|
1814
1580
|
description: i,
|
|
1815
1581
|
hideLabel: T,
|
|
@@ -1821,7 +1587,7 @@ var Je = (e) => {
|
|
|
1821
1587
|
let e;
|
|
1822
1588
|
t[17] === g ? e = t[18] : (e = [g], t[17] = g, t[18] = e);
|
|
1823
1589
|
let n;
|
|
1824
|
-
return t[19] !== o || t[20] !== S || t[21] !== w || t[22] !== e ? (n = /* @__PURE__ */ I(
|
|
1590
|
+
return t[19] !== o || t[20] !== S || t[21] !== w || t[22] !== e ? (n = /* @__PURE__ */ I(ne, {
|
|
1825
1591
|
triggerLabel: w,
|
|
1826
1592
|
options: o,
|
|
1827
1593
|
selectedIds: e,
|
|
@@ -1870,13 +1636,256 @@ var Je = (e) => {
|
|
|
1870
1636
|
children: k
|
|
1871
1637
|
}), t[36] = k, t[37] = A);
|
|
1872
1638
|
let j = A, M;
|
|
1873
|
-
return t[38] !== i || t[39] !== j || t[40] !== r ? (M = /* @__PURE__ */ I(
|
|
1639
|
+
return t[38] !== i || t[39] !== j || t[40] !== r ? (M = /* @__PURE__ */ I(X, {
|
|
1874
1640
|
name: r,
|
|
1875
1641
|
description: i,
|
|
1876
1642
|
orientation: "stacked",
|
|
1877
1643
|
children: j
|
|
1878
1644
|
}), t[38] = i, t[39] = j, t[40] = r, t[41] = M) : M = t[41], M;
|
|
1879
|
-
},
|
|
1645
|
+
}, Ge = (e, t, n) => n ? [...e, ...t.filter((t) => !e.some((e) => e.id === t)).map((e) => ({
|
|
1646
|
+
id: e,
|
|
1647
|
+
name: e
|
|
1648
|
+
}))] : e, Ke = (e) => {
|
|
1649
|
+
let t = P(91), { id: n, defaultValue: r, name: i, options: a, onChange: o, description: s, readOnly: c, hideLabel: l, multiSelect: u, placeholder: f, fullWidth: p, clearable: h, disabled: g, searchable: v, allowCustomValues: y, searchPlaceholder: b, emptyText: x, group: S, size: C } = e, w = l !== void 0 && l, T = u !== void 0 && u, E = p !== void 0 && p, D = h !== void 0 && h, O = g !== void 0 && g, k = v !== void 0 && v, A = y !== void 0 && y, j = C === void 0 ? "sm" : C, [M, N] = B(r), [z, V] = B(S?.defaultValue ?? ""), H, U;
|
|
1650
|
+
t[0] === r ? (H = t[1], U = t[2]) : (H = () => {
|
|
1651
|
+
N(r);
|
|
1652
|
+
}, U = [r], t[0] = r, t[1] = H, t[2] = U), R(H, U);
|
|
1653
|
+
let W;
|
|
1654
|
+
t[3] === S?.defaultValue ? W = t[4] : (W = () => {
|
|
1655
|
+
V(S?.defaultValue ?? "");
|
|
1656
|
+
}, t[3] = S?.defaultValue, t[4] = W);
|
|
1657
|
+
let G = S?.defaultValue, K;
|
|
1658
|
+
t[5] === G ? K = t[6] : (K = [G], t[5] = G, t[6] = K), R(W, K);
|
|
1659
|
+
let q, J, Y, X, ee, Z, Q, re, ie, ae, oe, se;
|
|
1660
|
+
if (t[7] !== A || t[8] !== D || t[9] !== s || t[10] !== E || t[11] !== S || t[12] !== z || t[13] !== w || t[14] !== n || t[15] !== T || t[16] !== i || t[17] !== o || t[18] !== a || t[19] !== f || t[20] !== c || t[21] !== M) {
|
|
1661
|
+
se = Symbol.for("react.early_return_sentinel");
|
|
1662
|
+
bb0: {
|
|
1663
|
+
Q = T ? Array.isArray(M) ? M : [] : typeof M == "string" && M ? [M] : [], Y = Ge(a, Q, A);
|
|
1664
|
+
let e = () => {
|
|
1665
|
+
let e = Q.map((e) => Y.find((t) => t.id === e)?.name).filter(qe);
|
|
1666
|
+
return e.length === 0 ? f || "Select" : e.length <= 3 ? e.join(", ") : `${e.slice(0, 3).join(", ")} +${(e.length - 3).toString()}`;
|
|
1667
|
+
}, r;
|
|
1668
|
+
t[34] !== n || t[35] !== o ? (r = (e) => {
|
|
1669
|
+
N(e), o(n, e);
|
|
1670
|
+
}, t[34] = n, t[35] = o, t[36] = r) : r = t[36];
|
|
1671
|
+
let l = r;
|
|
1672
|
+
ee = (e) => {
|
|
1673
|
+
if (!T) {
|
|
1674
|
+
l(D && Q.includes(e) ? "" : e);
|
|
1675
|
+
return;
|
|
1676
|
+
}
|
|
1677
|
+
l(Q.includes(e) ? Q.filter((t) => t !== e) : [...Q, e]);
|
|
1678
|
+
};
|
|
1679
|
+
let u;
|
|
1680
|
+
t[37] !== S || t[38] !== z || t[39] !== o ? (u = (e) => {
|
|
1681
|
+
S && e !== z && (V(e), o(S.id, e));
|
|
1682
|
+
}, t[37] = S, t[38] = z, t[39] = o, t[40] = u) : u = t[40], X = u;
|
|
1683
|
+
let p = Q.length === 1 ? a.find((e) => e.id === Q[0]) : void 0, h;
|
|
1684
|
+
if (t[41] !== s || t[42] !== w || t[43] !== i ? (h = w ? null : /* @__PURE__ */ I(d, {
|
|
1685
|
+
name: i,
|
|
1686
|
+
description: s
|
|
1687
|
+
}), t[41] = s, t[42] = w, t[43] = i, t[44] = h) : h = t[44], Z = h, c) {
|
|
1688
|
+
let n = /* @__PURE__ */ I($, { children: e() });
|
|
1689
|
+
if (E) {
|
|
1690
|
+
let e;
|
|
1691
|
+
t[45] === Z ? e = t[46] : (e = Z ? /* @__PURE__ */ I(m, {
|
|
1692
|
+
mb: "xs",
|
|
1693
|
+
children: Z
|
|
1694
|
+
}) : null, t[45] = Z, t[46] = e);
|
|
1695
|
+
let r;
|
|
1696
|
+
t[47] !== e || t[48] !== n ? (r = /* @__PURE__ */ L(m, { children: [e, n] }), t[47] = e, t[48] = n, t[49] = r) : r = t[49], se = r;
|
|
1697
|
+
break bb0;
|
|
1698
|
+
}
|
|
1699
|
+
let r;
|
|
1700
|
+
t[50] !== Z || t[51] !== n ? (r = /* @__PURE__ */ I(m, { children: /* @__PURE__ */ L(_, {
|
|
1701
|
+
alignItems: "center",
|
|
1702
|
+
justifyContent: "space-between",
|
|
1703
|
+
minHeight: "2rem",
|
|
1704
|
+
gap: "xs",
|
|
1705
|
+
children: [Z, n]
|
|
1706
|
+
}) }), t[50] = Z, t[51] = n, t[52] = r) : r = t[52], se = r;
|
|
1707
|
+
break bb0;
|
|
1708
|
+
}
|
|
1709
|
+
J = ne, oe = te(p, "14px"), q = m, re = "span", ie = !0, ae = e();
|
|
1710
|
+
}
|
|
1711
|
+
t[7] = A, t[8] = D, t[9] = s, t[10] = E, t[11] = S, t[12] = z, t[13] = w, t[14] = n, t[15] = T, t[16] = i, t[17] = o, t[18] = a, t[19] = f, t[20] = c, t[21] = M, t[22] = q, t[23] = J, t[24] = Y, t[25] = X, t[26] = ee, t[27] = Z, t[28] = Q, t[29] = re, t[30] = ie, t[31] = ae, t[32] = oe, t[33] = se;
|
|
1712
|
+
} else q = t[22], J = t[23], Y = t[24], X = t[25], ee = t[26], Z = t[27], Q = t[28], re = t[29], ie = t[30], ae = t[31], oe = t[32], se = t[33];
|
|
1713
|
+
if (se !== Symbol.for("react.early_return_sentinel")) return se;
|
|
1714
|
+
let ce;
|
|
1715
|
+
t[53] !== q || t[54] !== re || t[55] !== ie || t[56] !== ae ? (ce = /* @__PURE__ */ I(q, {
|
|
1716
|
+
as: re,
|
|
1717
|
+
truncate: ie,
|
|
1718
|
+
children: ae
|
|
1719
|
+
}), t[53] = q, t[54] = re, t[55] = ie, t[56] = ae, t[57] = ce) : ce = t[57];
|
|
1720
|
+
let le;
|
|
1721
|
+
t[58] !== oe || t[59] !== ce ? (le = /* @__PURE__ */ L(F, { children: [oe, ce] }), t[58] = oe, t[59] = ce, t[60] = le) : le = t[60];
|
|
1722
|
+
let ue;
|
|
1723
|
+
t[61] !== S || t[62] !== z ? (ue = S ? {
|
|
1724
|
+
...S,
|
|
1725
|
+
defaultValue: z
|
|
1726
|
+
} : void 0, t[61] = S, t[62] = z, t[63] = ue) : ue = t[63];
|
|
1727
|
+
let de;
|
|
1728
|
+
t[64] !== J || t[65] !== A || t[66] !== Y || t[67] !== D || t[68] !== O || t[69] !== x || t[70] !== E || t[71] !== X || t[72] !== ee || t[73] !== T || t[74] !== b || t[75] !== k || t[76] !== Q || t[77] !== j || t[78] !== le || t[79] !== ue ? (de = /* @__PURE__ */ I(J, {
|
|
1729
|
+
triggerLabel: le,
|
|
1730
|
+
options: Y,
|
|
1731
|
+
allowCustomValues: A,
|
|
1732
|
+
selectedIds: Q,
|
|
1733
|
+
multiSelect: T,
|
|
1734
|
+
reselectable: D,
|
|
1735
|
+
disabled: O,
|
|
1736
|
+
searchable: k,
|
|
1737
|
+
searchPlaceholder: b,
|
|
1738
|
+
emptyText: x,
|
|
1739
|
+
group: ue,
|
|
1740
|
+
fullWidth: E,
|
|
1741
|
+
size: j,
|
|
1742
|
+
onToggle: ee,
|
|
1743
|
+
onGroupChange: X
|
|
1744
|
+
}), t[64] = J, t[65] = A, t[66] = Y, t[67] = D, t[68] = O, t[69] = x, t[70] = E, t[71] = X, t[72] = ee, t[73] = T, t[74] = b, t[75] = k, t[76] = Q, t[77] = j, t[78] = le, t[79] = ue, t[80] = de) : de = t[80];
|
|
1745
|
+
let fe = de;
|
|
1746
|
+
if (E) {
|
|
1747
|
+
let e;
|
|
1748
|
+
t[81] === Z ? e = t[82] : (e = Z ? /* @__PURE__ */ I(m, {
|
|
1749
|
+
mb: "xs",
|
|
1750
|
+
children: Z
|
|
1751
|
+
}) : null, t[81] = Z, t[82] = e);
|
|
1752
|
+
let n;
|
|
1753
|
+
return t[83] !== fe || t[84] !== e ? (n = /* @__PURE__ */ L(m, { children: [e, fe] }), t[83] = fe, t[84] = e, t[85] = n) : n = t[85], n;
|
|
1754
|
+
}
|
|
1755
|
+
let pe;
|
|
1756
|
+
t[86] === Z ? pe = t[87] : (pe = Z ? /* @__PURE__ */ I(m, {
|
|
1757
|
+
flexShrink: 0,
|
|
1758
|
+
children: Z
|
|
1759
|
+
}) : null, t[86] = Z, t[87] = pe);
|
|
1760
|
+
let me;
|
|
1761
|
+
return t[88] !== fe || t[89] !== pe ? (me = /* @__PURE__ */ I(m, { children: /* @__PURE__ */ L(_, {
|
|
1762
|
+
alignItems: "center",
|
|
1763
|
+
justifyContent: "space-between",
|
|
1764
|
+
minHeight: "2rem",
|
|
1765
|
+
gap: "xs",
|
|
1766
|
+
children: [pe, fe]
|
|
1767
|
+
}) }), t[88] = fe, t[89] = pe, t[90] = me) : me = t[90], me;
|
|
1768
|
+
};
|
|
1769
|
+
function qe(e) {
|
|
1770
|
+
return !!e;
|
|
1771
|
+
}
|
|
1772
|
+
//#endregion
|
|
1773
|
+
//#region src/components/param-editor/inputs/text-input.tsx
|
|
1774
|
+
var Je = (e) => {
|
|
1775
|
+
let t = P(40), { id: n, defaultValue: r, name: i, onChange: a, description: o, readOnly: s, singleLine: c, hideLabel: l, fullWidth: u, size: f } = e, p = c === void 0 || c, h = l !== void 0 && l, g = u !== void 0 && u, v = f === void 0 ? "sm" : f, [y, b] = B(r), x = z(null), S;
|
|
1776
|
+
t[0] !== n || t[1] !== a ? (S = (e) => {
|
|
1777
|
+
x.current && clearTimeout(x.current), x.current = setTimeout(() => a(n, e), 540);
|
|
1778
|
+
}, t[0] = n, t[1] = a, t[2] = S) : S = t[2];
|
|
1779
|
+
let C = S, T, E;
|
|
1780
|
+
t[3] === r ? (T = t[4], E = t[5]) : (T = () => {
|
|
1781
|
+
b(r);
|
|
1782
|
+
}, E = [r], t[3] = r, t[4] = T, t[5] = E), R(T, E);
|
|
1783
|
+
let D;
|
|
1784
|
+
t[6] === C ? D = t[7] : (D = (e) => {
|
|
1785
|
+
b(e), C(e);
|
|
1786
|
+
}, t[6] = C, t[7] = D);
|
|
1787
|
+
let O = D, k;
|
|
1788
|
+
t[8] !== n || t[9] !== a || t[10] !== y ? (k = () => {
|
|
1789
|
+
x.current && (clearTimeout(x.current), x.current = null, a(n, y));
|
|
1790
|
+
}, t[8] = n, t[9] = a, t[10] = y, t[11] = k) : k = t[11];
|
|
1791
|
+
let A = k;
|
|
1792
|
+
if (s) {
|
|
1793
|
+
let e = !p, n;
|
|
1794
|
+
t[12] !== e || t[13] !== y ? (n = /* @__PURE__ */ I($, {
|
|
1795
|
+
preserveWhitespace: e,
|
|
1796
|
+
children: y
|
|
1797
|
+
}), t[12] = e, t[13] = y, t[14] = n) : n = t[14];
|
|
1798
|
+
let r = n;
|
|
1799
|
+
if (p && !g) {
|
|
1800
|
+
let e;
|
|
1801
|
+
t[15] !== o || t[16] !== h || t[17] !== i ? (e = !h && /* @__PURE__ */ I(d, {
|
|
1802
|
+
name: i,
|
|
1803
|
+
description: o
|
|
1804
|
+
}), t[15] = o, t[16] = h, t[17] = i, t[18] = e) : e = t[18];
|
|
1805
|
+
let n;
|
|
1806
|
+
return t[19] !== e || t[20] !== r ? (n = /* @__PURE__ */ I(m, { children: /* @__PURE__ */ L(_, {
|
|
1807
|
+
alignItems: "center",
|
|
1808
|
+
justifyContent: "space-between",
|
|
1809
|
+
minHeight: "2rem",
|
|
1810
|
+
gap: "xs",
|
|
1811
|
+
children: [e, r]
|
|
1812
|
+
}) }), t[19] = e, t[20] = r, t[21] = n) : n = t[21], n;
|
|
1813
|
+
}
|
|
1814
|
+
let a;
|
|
1815
|
+
t[22] !== o || t[23] !== h || t[24] !== i ? (a = !h && /* @__PURE__ */ I(m, {
|
|
1816
|
+
mb: "xs",
|
|
1817
|
+
children: /* @__PURE__ */ I(d, {
|
|
1818
|
+
name: i,
|
|
1819
|
+
description: o
|
|
1820
|
+
})
|
|
1821
|
+
}), t[22] = o, t[23] = h, t[24] = i, t[25] = a) : a = t[25];
|
|
1822
|
+
let s;
|
|
1823
|
+
return t[26] !== a || t[27] !== r ? (s = /* @__PURE__ */ L(m, { children: [a, r] }), t[26] = a, t[27] = r, t[28] = s) : s = t[28], s;
|
|
1824
|
+
}
|
|
1825
|
+
let M;
|
|
1826
|
+
return t[29] !== o || t[30] !== g || t[31] !== A || t[32] !== O || t[33] !== h || t[34] !== i || t[35] !== s || t[36] !== p || t[37] !== v || t[38] !== y ? (M = /* @__PURE__ */ I(m, { children: p && !g ? /* @__PURE__ */ L(_, {
|
|
1827
|
+
alignItems: "center",
|
|
1828
|
+
justifyContent: "space-between",
|
|
1829
|
+
minHeight: "2rem",
|
|
1830
|
+
gap: "xs",
|
|
1831
|
+
children: [!h && /* @__PURE__ */ I(d, {
|
|
1832
|
+
name: i,
|
|
1833
|
+
description: o
|
|
1834
|
+
}), /* @__PURE__ */ I(w, {
|
|
1835
|
+
"aria-label": i,
|
|
1836
|
+
className: "nodrag",
|
|
1837
|
+
readOnly: s,
|
|
1838
|
+
flex: "1",
|
|
1839
|
+
maxW: "12.5rem",
|
|
1840
|
+
size: v,
|
|
1841
|
+
type: "text",
|
|
1842
|
+
placeholder: h ? i : void 0,
|
|
1843
|
+
value: y,
|
|
1844
|
+
onChange: (e) => O(e.target.value),
|
|
1845
|
+
onBlur: A,
|
|
1846
|
+
onKeyUp: Ye
|
|
1847
|
+
})]
|
|
1848
|
+
}) : /* @__PURE__ */ L(m, { children: [!h && /* @__PURE__ */ I(m, {
|
|
1849
|
+
mb: "xs",
|
|
1850
|
+
children: /* @__PURE__ */ I(d, {
|
|
1851
|
+
name: i,
|
|
1852
|
+
description: o
|
|
1853
|
+
})
|
|
1854
|
+
}), p ? /* @__PURE__ */ I(w, {
|
|
1855
|
+
"aria-label": i,
|
|
1856
|
+
className: "nodrag",
|
|
1857
|
+
readOnly: s,
|
|
1858
|
+
width: "100%",
|
|
1859
|
+
size: v,
|
|
1860
|
+
type: "text",
|
|
1861
|
+
placeholder: h ? i : void 0,
|
|
1862
|
+
value: y,
|
|
1863
|
+
onChange: (e) => O(e.target.value),
|
|
1864
|
+
onBlur: A,
|
|
1865
|
+
onKeyUp: Xe
|
|
1866
|
+
}) : /* @__PURE__ */ I(j, {
|
|
1867
|
+
"aria-label": i,
|
|
1868
|
+
className: "nodrag",
|
|
1869
|
+
readOnly: s,
|
|
1870
|
+
width: "100%",
|
|
1871
|
+
size: v,
|
|
1872
|
+
placeholder: h ? i : void 0,
|
|
1873
|
+
value: y,
|
|
1874
|
+
onChange: (e) => O(e.target.value),
|
|
1875
|
+
onBlur: A,
|
|
1876
|
+
rows: 3,
|
|
1877
|
+
resize: "vertical"
|
|
1878
|
+
})] }) }), t[29] = o, t[30] = g, t[31] = A, t[32] = O, t[33] = h, t[34] = i, t[35] = s, t[36] = p, t[37] = v, t[38] = y, t[39] = M) : M = t[39], M;
|
|
1879
|
+
};
|
|
1880
|
+
function Ye(e) {
|
|
1881
|
+
e.key === "Enter" && e.currentTarget.blur();
|
|
1882
|
+
}
|
|
1883
|
+
function Xe(e) {
|
|
1884
|
+
e.key === "Enter" && e.currentTarget.blur();
|
|
1885
|
+
}
|
|
1886
|
+
//#endregion
|
|
1887
|
+
//#region src/components/param-editor/param-editor-inline-group.tsx
|
|
1888
|
+
var Ze = (e) => {
|
|
1880
1889
|
let t = P(6), n, r;
|
|
1881
1890
|
t[0] === e ? (n = t[1], r = t[2]) : ({children: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
1882
1891
|
let i;
|
|
@@ -1887,8 +1896,8 @@ var Je = (e) => {
|
|
|
1887
1896
|
...r,
|
|
1888
1897
|
children: n
|
|
1889
1898
|
}), t[3] = n, t[4] = r, t[5] = i) : i = t[5], i;
|
|
1890
|
-
},
|
|
1891
|
-
let i =
|
|
1899
|
+
}, Qe = (e, t) => t.min === void 0 && t.max === void 0 ? e : De(e, t.min ?? -Infinity, t.max ?? Infinity), $e = (e, t, n, r = {}) => {
|
|
1900
|
+
let i = Qe(n, r);
|
|
1892
1901
|
return t === "x" ? {
|
|
1893
1902
|
x: i,
|
|
1894
1903
|
y: e.y
|
|
@@ -1896,7 +1905,7 @@ var Je = (e) => {
|
|
|
1896
1905
|
x: e.x,
|
|
1897
1906
|
y: i
|
|
1898
1907
|
};
|
|
1899
|
-
},
|
|
1908
|
+
}, et = (e) => {
|
|
1900
1909
|
let t = P(15), { label: n, fieldId: r, value: i, min: a, max: o, step: s, onCommit: c } = e, l;
|
|
1901
1910
|
t[0] === n ? l = t[1] : (l = /* @__PURE__ */ I(A, {
|
|
1902
1911
|
textStyle: "label/XS/regular",
|
|
@@ -1908,7 +1917,7 @@ var Je = (e) => {
|
|
|
1908
1917
|
let u;
|
|
1909
1918
|
t[2] === c ? u = t[3] : (u = (e, t) => c(t), t[2] = c, t[3] = u);
|
|
1910
1919
|
let d;
|
|
1911
|
-
t[4] !== r || t[5] !== n || t[6] !== o || t[7] !== a || t[8] !== s || t[9] !== u || t[10] !== i ? (d = /* @__PURE__ */ I(
|
|
1920
|
+
t[4] !== r || t[5] !== n || t[6] !== o || t[7] !== a || t[8] !== s || t[9] !== u || t[10] !== i ? (d = /* @__PURE__ */ I(we, {
|
|
1912
1921
|
id: r,
|
|
1913
1922
|
name: n,
|
|
1914
1923
|
description: "",
|
|
@@ -1927,14 +1936,14 @@ var Je = (e) => {
|
|
|
1927
1936
|
flexShrink: 0,
|
|
1928
1937
|
children: [l, d]
|
|
1929
1938
|
}), t[12] = l, t[13] = d, t[14] = f) : f = t[14], f;
|
|
1930
|
-
},
|
|
1939
|
+
}, tt = (e) => {
|
|
1931
1940
|
let t = P(42), { id: n, name: r, description: i, defaultValue: a, xLabel: o, yLabel: s, min: c, max: l, step: u, onChange: d, readOnly: f } = e, p = o === void 0 ? "X" : o, m = s === void 0 ? "Y" : s, h = u === void 0 ? 1 : u, [g, _] = B(a), v, y;
|
|
1932
1941
|
t[0] === a ? (v = t[1], y = t[2]) : (v = () => {
|
|
1933
1942
|
_(a);
|
|
1934
1943
|
}, y = [a], t[0] = a, t[1] = v, t[2] = y), R(v, y);
|
|
1935
1944
|
let b;
|
|
1936
1945
|
t[3] !== n || t[4] !== l || t[5] !== c || t[6] !== d || t[7] !== g ? (b = (e, t) => {
|
|
1937
|
-
let r =
|
|
1946
|
+
let r = $e(g, e, t, {
|
|
1938
1947
|
min: c,
|
|
1939
1948
|
max: l
|
|
1940
1949
|
});
|
|
@@ -1943,9 +1952,9 @@ var Je = (e) => {
|
|
|
1943
1952
|
let x = b;
|
|
1944
1953
|
if (f) {
|
|
1945
1954
|
let e = `${g.x}, ${g.y}`, n;
|
|
1946
|
-
t[9] === e ? n = t[10] : (n = /* @__PURE__ */ I(
|
|
1955
|
+
t[9] === e ? n = t[10] : (n = /* @__PURE__ */ I($, { children: e }), t[9] = e, t[10] = n);
|
|
1947
1956
|
let a;
|
|
1948
|
-
return t[11] !== i || t[12] !== r || t[13] !== n ? (a = /* @__PURE__ */ I(
|
|
1957
|
+
return t[11] !== i || t[12] !== r || t[13] !== n ? (a = /* @__PURE__ */ I(X, {
|
|
1949
1958
|
name: r,
|
|
1950
1959
|
description: i,
|
|
1951
1960
|
children: n
|
|
@@ -1954,7 +1963,7 @@ var Je = (e) => {
|
|
|
1954
1963
|
let S = `${n}.x`, C;
|
|
1955
1964
|
t[15] === x ? C = t[16] : (C = (e) => x("x", e), t[15] = x, t[16] = C);
|
|
1956
1965
|
let w;
|
|
1957
|
-
t[17] !== l || t[18] !== c || t[19] !== h || t[20] !== S || t[21] !== C || t[22] !== g.x || t[23] !== p ? (w = /* @__PURE__ */ I(
|
|
1966
|
+
t[17] !== l || t[18] !== c || t[19] !== h || t[20] !== S || t[21] !== C || t[22] !== g.x || t[23] !== p ? (w = /* @__PURE__ */ I(et, {
|
|
1958
1967
|
label: p,
|
|
1959
1968
|
fieldId: S,
|
|
1960
1969
|
value: g.x,
|
|
@@ -1966,7 +1975,7 @@ var Je = (e) => {
|
|
|
1966
1975
|
let T = `${n}.y`, E;
|
|
1967
1976
|
t[25] === x ? E = t[26] : (E = (e) => x("y", e), t[25] = x, t[26] = E);
|
|
1968
1977
|
let D;
|
|
1969
|
-
t[27] !== l || t[28] !== c || t[29] !== h || t[30] !== E || t[31] !== T || t[32] !== g.y || t[33] !== m ? (D = /* @__PURE__ */ I(
|
|
1978
|
+
t[27] !== l || t[28] !== c || t[29] !== h || t[30] !== E || t[31] !== T || t[32] !== g.y || t[33] !== m ? (D = /* @__PURE__ */ I(et, {
|
|
1970
1979
|
label: m,
|
|
1971
1980
|
fieldId: T,
|
|
1972
1981
|
value: g.y,
|
|
@@ -1976,15 +1985,15 @@ var Je = (e) => {
|
|
|
1976
1985
|
onCommit: E
|
|
1977
1986
|
}), t[27] = l, t[28] = c, t[29] = h, t[30] = E, t[31] = T, t[32] = g.y, t[33] = m, t[34] = D) : D = t[34];
|
|
1978
1987
|
let O;
|
|
1979
|
-
t[35] !== D || t[36] !== w ? (O = /* @__PURE__ */ L(
|
|
1988
|
+
t[35] !== D || t[36] !== w ? (O = /* @__PURE__ */ L(Ze, { children: [w, D] }), t[35] = D, t[36] = w, t[37] = O) : O = t[37];
|
|
1980
1989
|
let k;
|
|
1981
|
-
return t[38] !== i || t[39] !== r || t[40] !== O ? (k = /* @__PURE__ */ I(
|
|
1990
|
+
return t[38] !== i || t[39] !== r || t[40] !== O ? (k = /* @__PURE__ */ I(X, {
|
|
1982
1991
|
name: r,
|
|
1983
1992
|
description: i,
|
|
1984
1993
|
orientation: "stacked",
|
|
1985
1994
|
children: O
|
|
1986
1995
|
}), t[38] = i, t[39] = r, t[40] = O, t[41] = k) : k = t[41], k;
|
|
1987
|
-
},
|
|
1996
|
+
}, nt = (e, t, n) => e[t] === void 0 ? n : e[t], rt = (e) => {
|
|
1988
1997
|
let t = P(81), { param: n, defaultValues: r, onChange: i, readOnly: a, fullWidth: o, presentation: s } = e, c = a || n.readOnly, l = s !== "horizontal" && o, u;
|
|
1989
1998
|
t[0] !== i || t[1] !== n.id || t[2] !== c || t[3] !== l ? (u = {
|
|
1990
1999
|
id: n.id,
|
|
@@ -1996,9 +2005,9 @@ var Je = (e) => {
|
|
|
1996
2005
|
switch (n.type) {
|
|
1997
2006
|
case "range": {
|
|
1998
2007
|
let e = n.name, i = n.description, a;
|
|
1999
|
-
t[5] !== r || t[6] !== n.defaultValue || t[7] !== n.id ? (a =
|
|
2008
|
+
t[5] !== r || t[6] !== n.defaultValue || t[7] !== n.id ? (a = nt(r, n.id, n.defaultValue), t[5] = r, t[6] = n.defaultValue, t[7] = n.id, t[8] = a) : a = t[8];
|
|
2000
2009
|
let o;
|
|
2001
|
-
return t[9] !== d || t[10] !== n.description || t[11] !== n.markerCount || t[12] !== n.max || t[13] !== n.min || t[14] !== n.name || t[15] !== n.step || t[16] !== n.unit || t[17] !== s || t[18] !== a ? (o = /* @__PURE__ */ I(
|
|
2010
|
+
return t[9] !== d || t[10] !== n.description || t[11] !== n.markerCount || t[12] !== n.max || t[13] !== n.min || t[14] !== n.name || t[15] !== n.step || t[16] !== n.unit || t[17] !== s || t[18] !== a ? (o = /* @__PURE__ */ I(Ne, {
|
|
2002
2011
|
...d,
|
|
2003
2012
|
name: e,
|
|
2004
2013
|
description: i,
|
|
@@ -2013,9 +2022,9 @@ var Je = (e) => {
|
|
|
2013
2022
|
}
|
|
2014
2023
|
case "segmented": {
|
|
2015
2024
|
let e = n.name, i = n.description, a;
|
|
2016
|
-
t[20] !== r || t[21] !== n.defaultValue || t[22] !== n.id ? (a =
|
|
2025
|
+
t[20] !== r || t[21] !== n.defaultValue || t[22] !== n.id ? (a = nt(r, n.id, n.defaultValue), t[20] = r, t[21] = n.defaultValue, t[22] = n.id, t[23] = a) : a = t[23];
|
|
2017
2026
|
let o;
|
|
2018
|
-
return t[24] !== d || t[25] !== n.description || t[26] !== n.name || t[27] !== n.options || t[28] !== n.variant || t[29] !== s || t[30] !== a ? (o = /* @__PURE__ */ I(
|
|
2027
|
+
return t[24] !== d || t[25] !== n.description || t[26] !== n.name || t[27] !== n.options || t[28] !== n.variant || t[29] !== s || t[30] !== a ? (o = /* @__PURE__ */ I(We, {
|
|
2019
2028
|
...d,
|
|
2020
2029
|
name: e,
|
|
2021
2030
|
description: i,
|
|
@@ -2027,9 +2036,9 @@ var Je = (e) => {
|
|
|
2027
2036
|
}
|
|
2028
2037
|
case "actions": {
|
|
2029
2038
|
let e = n.name, i = n.description, a;
|
|
2030
|
-
t[32] !== r || t[33] !== n.defaultValue || t[34] !== n.id ? (a =
|
|
2039
|
+
t[32] !== r || t[33] !== n.defaultValue || t[34] !== n.id ? (a = nt(r, n.id, n.defaultValue), t[32] = r, t[33] = n.defaultValue, t[34] = n.id, t[35] = a) : a = t[35];
|
|
2031
2040
|
let o;
|
|
2032
|
-
return t[36] !== d || t[37] !== n.description || t[38] !== n.name || t[39] !== n.options || t[40] !== s || t[41] !== a ? (o = /* @__PURE__ */ I(
|
|
2041
|
+
return t[36] !== d || t[37] !== n.description || t[38] !== n.name || t[39] !== n.options || t[40] !== s || t[41] !== a ? (o = /* @__PURE__ */ I(Q, {
|
|
2033
2042
|
...d,
|
|
2034
2043
|
name: e,
|
|
2035
2044
|
description: i,
|
|
@@ -2041,9 +2050,9 @@ var Je = (e) => {
|
|
|
2041
2050
|
case "anchorGrid": {
|
|
2042
2051
|
if (s === "horizontal") return null;
|
|
2043
2052
|
let e = n.name, i = n.description, a;
|
|
2044
|
-
t[43] !== r || t[44] !== n.defaultValue || t[45] !== n.id ? (a =
|
|
2053
|
+
t[43] !== r || t[44] !== n.defaultValue || t[45] !== n.id ? (a = nt(r, n.id, n.defaultValue), t[43] = r, t[44] = n.defaultValue, t[45] = n.id, t[46] = a) : a = t[46];
|
|
2045
2054
|
let o;
|
|
2046
|
-
return t[47] !== d || t[48] !== n.description || t[49] !== n.name || t[50] !== a ? (o = /* @__PURE__ */ I(
|
|
2055
|
+
return t[47] !== d || t[48] !== n.description || t[49] !== n.name || t[50] !== a ? (o = /* @__PURE__ */ I(ae, {
|
|
2047
2056
|
...d,
|
|
2048
2057
|
name: e,
|
|
2049
2058
|
description: i,
|
|
@@ -2052,9 +2061,9 @@ var Je = (e) => {
|
|
|
2052
2061
|
}
|
|
2053
2062
|
case "vector": {
|
|
2054
2063
|
let e = n.name, i = n.description, a;
|
|
2055
|
-
t[52] !== r || t[53] !== n.defaultValue || t[54] !== n.id ? (a =
|
|
2064
|
+
t[52] !== r || t[53] !== n.defaultValue || t[54] !== n.id ? (a = nt(r, n.id, n.defaultValue), t[52] = r, t[53] = n.defaultValue, t[54] = n.id, t[55] = a) : a = t[55];
|
|
2056
2065
|
let o;
|
|
2057
|
-
return t[56] !== d || t[57] !== n.description || t[58] !== n.max || t[59] !== n.min || t[60] !== n.name || t[61] !== n.step || t[62] !== n.xLabel || t[63] !== n.yLabel || t[64] !== a ? (o = /* @__PURE__ */ I(
|
|
2066
|
+
return t[56] !== d || t[57] !== n.description || t[58] !== n.max || t[59] !== n.min || t[60] !== n.name || t[61] !== n.step || t[62] !== n.xLabel || t[63] !== n.yLabel || t[64] !== a ? (o = /* @__PURE__ */ I(tt, {
|
|
2058
2067
|
...d,
|
|
2059
2068
|
name: e,
|
|
2060
2069
|
description: i,
|
|
@@ -2068,9 +2077,9 @@ var Je = (e) => {
|
|
|
2068
2077
|
}
|
|
2069
2078
|
case "fileUpload": {
|
|
2070
2079
|
let e = n.id, a = n.name, o = n.description, c;
|
|
2071
|
-
t[66] !== r || t[67] !== n.defaultValue || t[68] !== n.id ? (c =
|
|
2080
|
+
t[66] !== r || t[67] !== n.defaultValue || t[68] !== n.id ? (c = nt(r, n.id, n.defaultValue), t[66] = r, t[67] = n.defaultValue, t[68] = n.id, t[69] = c) : c = t[69];
|
|
2072
2081
|
let l;
|
|
2073
|
-
return t[70] !== d.readOnly || t[71] !== i || t[72] !== n.accept || t[73] !== n.description || t[74] !== n.id || t[75] !== n.multiple || t[76] !== n.name || t[77] !== n.uploadLabel || t[78] !== s || t[79] !== c ? (l = /* @__PURE__ */ I(
|
|
2082
|
+
return t[70] !== d.readOnly || t[71] !== i || t[72] !== n.accept || t[73] !== n.description || t[74] !== n.id || t[75] !== n.multiple || t[76] !== n.name || t[77] !== n.uploadLabel || t[78] !== s || t[79] !== c ? (l = /* @__PURE__ */ I(ye, {
|
|
2074
2083
|
id: e,
|
|
2075
2084
|
name: a,
|
|
2076
2085
|
description: o,
|
|
@@ -2084,18 +2093,18 @@ var Je = (e) => {
|
|
|
2084
2093
|
}), t[70] = d.readOnly, t[71] = i, t[72] = n.accept, t[73] = n.description, t[74] = n.id, t[75] = n.multiple, t[76] = n.name, t[77] = n.uploadLabel, t[78] = s, t[79] = c, t[80] = l) : l = t[80], l;
|
|
2085
2094
|
}
|
|
2086
2095
|
}
|
|
2087
|
-
},
|
|
2096
|
+
}, it = (e) => e.type === "fileUpload", at = (e) => e.type !== "anchorGrid", ot = (e) => e === null || e === "" ? "Not provided" : String(e), st = (e) => {
|
|
2088
2097
|
let t = P(23), { value: n } = e;
|
|
2089
2098
|
if (Array.isArray(n)) {
|
|
2090
2099
|
if (n.length === 0) {
|
|
2091
2100
|
let e;
|
|
2092
|
-
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ I(
|
|
2101
|
+
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ I($, {
|
|
2093
2102
|
color: "fg.muted",
|
|
2094
2103
|
children: "None"
|
|
2095
2104
|
}), t[0] = e) : e = t[0], e;
|
|
2096
2105
|
}
|
|
2097
2106
|
let e;
|
|
2098
|
-
t[1] === n ? e = t[2] : (e = n.map(
|
|
2107
|
+
t[1] === n ? e = t[2] : (e = n.map(lt), t[1] = n, t[2] = e);
|
|
2099
2108
|
let r;
|
|
2100
2109
|
return t[3] === e ? r = t[4] : (r = /* @__PURE__ */ I(b, {
|
|
2101
2110
|
gap: "2xs",
|
|
@@ -2110,7 +2119,7 @@ var Je = (e) => {
|
|
|
2110
2119
|
alt: n.alt
|
|
2111
2120
|
}] : n.images, t[5] = n.alt, t[6] = n.images, t[7] = n.src, t[8] = n.type, t[9] = e) : e = t[9];
|
|
2112
2121
|
let r = e, i;
|
|
2113
|
-
t[10] === r ? i = t[11] : (i = r.map(
|
|
2122
|
+
t[10] === r ? i = t[11] : (i = r.map(ut), t[10] = r, t[11] = i);
|
|
2114
2123
|
let a;
|
|
2115
2124
|
return t[12] === i ? a = t[13] : (a = /* @__PURE__ */ I(b, {
|
|
2116
2125
|
gap: "2xs",
|
|
@@ -2120,36 +2129,36 @@ var Je = (e) => {
|
|
|
2120
2129
|
}
|
|
2121
2130
|
if (typeof n == "boolean") {
|
|
2122
2131
|
let e;
|
|
2123
|
-
t[14] === n ? e = t[15] : (e =
|
|
2132
|
+
t[14] === n ? e = t[15] : (e = ot(n), t[14] = n, t[15] = e);
|
|
2124
2133
|
let r;
|
|
2125
|
-
return t[16] === e ? r = t[17] : (r = /* @__PURE__ */ I(
|
|
2134
|
+
return t[16] === e ? r = t[17] : (r = /* @__PURE__ */ I($, { children: e }), t[16] = e, t[17] = r), r;
|
|
2126
2135
|
}
|
|
2127
2136
|
let r = n === null || n === "" ? "fg.muted" : "fg", i;
|
|
2128
|
-
t[18] === n ? i = t[19] : (i =
|
|
2137
|
+
t[18] === n ? i = t[19] : (i = ot(n), t[18] = n, t[19] = i);
|
|
2129
2138
|
let a;
|
|
2130
|
-
return t[20] !== r || t[21] !== i ? (a = /* @__PURE__ */ I(
|
|
2139
|
+
return t[20] !== r || t[21] !== i ? (a = /* @__PURE__ */ I($, {
|
|
2131
2140
|
color: r,
|
|
2132
2141
|
children: i
|
|
2133
2142
|
}), t[20] = r, t[21] = i, t[22] = a) : a = t[22], a;
|
|
2134
|
-
},
|
|
2143
|
+
}, ct = (e) => {
|
|
2135
2144
|
let t = P(7), { param: n, fullWidth: r } = e, i;
|
|
2136
|
-
t[0] === n.value ? i = t[1] : (i = /* @__PURE__ */ I(
|
|
2145
|
+
t[0] === n.value ? i = t[1] : (i = /* @__PURE__ */ I(st, { value: n.value }), t[0] = n.value, t[1] = i);
|
|
2137
2146
|
let a;
|
|
2138
|
-
return t[2] !== r || t[3] !== n.description || t[4] !== n.name || t[5] !== i ? (a = /* @__PURE__ */ I(
|
|
2147
|
+
return t[2] !== r || t[3] !== n.description || t[4] !== n.name || t[5] !== i ? (a = /* @__PURE__ */ I(X, {
|
|
2139
2148
|
name: n.name,
|
|
2140
2149
|
description: n.description,
|
|
2141
2150
|
fullWidth: r,
|
|
2142
2151
|
children: i
|
|
2143
2152
|
}), t[2] = r, t[3] = n.description, t[4] = n.name, t[5] = i, t[6] = a) : a = t[6], a;
|
|
2144
2153
|
};
|
|
2145
|
-
function
|
|
2154
|
+
function lt(e, t) {
|
|
2146
2155
|
return /* @__PURE__ */ I(p, {
|
|
2147
2156
|
variant: "subtle",
|
|
2148
2157
|
colorPalette: "gray",
|
|
2149
|
-
children:
|
|
2158
|
+
children: ot(e)
|
|
2150
2159
|
}, `${String(e)}-${t}`);
|
|
2151
2160
|
}
|
|
2152
|
-
function
|
|
2161
|
+
function ut(e) {
|
|
2153
2162
|
return /* @__PURE__ */ I(C, {
|
|
2154
2163
|
src: e.src,
|
|
2155
2164
|
alt: e.alt,
|
|
@@ -2163,29 +2172,29 @@ function ct(e) {
|
|
|
2163
2172
|
}
|
|
2164
2173
|
//#endregion
|
|
2165
2174
|
//#region src/components/param-editor/param-editor-field.tsx
|
|
2166
|
-
var
|
|
2175
|
+
var dt = (e) => {
|
|
2167
2176
|
let t = P(16), { param: n, fullWidth: r } = e;
|
|
2168
2177
|
if (r) {
|
|
2169
2178
|
let e;
|
|
2170
2179
|
t[0] !== n.description || t[1] !== n.name ? (e = /* @__PURE__ */ I(m, {
|
|
2171
2180
|
mb: "xs",
|
|
2172
|
-
children: /* @__PURE__ */ I(
|
|
2181
|
+
children: /* @__PURE__ */ I(d, {
|
|
2173
2182
|
name: n.name,
|
|
2174
2183
|
description: n.description
|
|
2175
2184
|
})
|
|
2176
2185
|
}), t[0] = n.description, t[1] = n.name, t[2] = e) : e = t[2];
|
|
2177
2186
|
let r;
|
|
2178
|
-
t[3] === n.value ? r = t[4] : (r = /* @__PURE__ */ I(
|
|
2187
|
+
t[3] === n.value ? r = t[4] : (r = /* @__PURE__ */ I($, { children: n.value }), t[3] = n.value, t[4] = r);
|
|
2179
2188
|
let i;
|
|
2180
2189
|
return t[5] !== e || t[6] !== r ? (i = /* @__PURE__ */ L(m, { children: [e, r] }), t[5] = e, t[6] = r, t[7] = i) : i = t[7], i;
|
|
2181
2190
|
}
|
|
2182
2191
|
let i;
|
|
2183
|
-
t[8] !== n.description || t[9] !== n.name ? (i = /* @__PURE__ */ I(
|
|
2192
|
+
t[8] !== n.description || t[9] !== n.name ? (i = /* @__PURE__ */ I(d, {
|
|
2184
2193
|
name: n.name,
|
|
2185
2194
|
description: n.description
|
|
2186
2195
|
}), t[8] = n.description, t[9] = n.name, t[10] = i) : i = t[10];
|
|
2187
2196
|
let a;
|
|
2188
|
-
t[11] === n.value ? a = t[12] : (a = /* @__PURE__ */ I(
|
|
2197
|
+
t[11] === n.value ? a = t[12] : (a = /* @__PURE__ */ I($, { children: n.value }), t[11] = n.value, t[12] = a);
|
|
2189
2198
|
let o;
|
|
2190
2199
|
return t[13] !== i || t[14] !== a ? (o = /* @__PURE__ */ L(_, {
|
|
2191
2200
|
alignItems: "center",
|
|
@@ -2194,9 +2203,9 @@ var lt = (e) => {
|
|
|
2194
2203
|
gap: "xs",
|
|
2195
2204
|
children: [i, a]
|
|
2196
2205
|
}), t[13] = i, t[14] = a, t[15] = o) : o = t[15], o;
|
|
2197
|
-
},
|
|
2206
|
+
}, ft = (e) => {
|
|
2198
2207
|
let t = P(138), { param: n, defaultValues: r, onChange: i, onOpenResource: a, readOnly: o, fullWidth: s, presentation: c, size: l } = e, u = s !== void 0 && s, d = c === void 0 ? "stacked" : c, f = l === void 0 ? "sm" : l, p = d === "horizontal", m;
|
|
2199
|
-
t[0] === n ? m = t[1] : (m =
|
|
2208
|
+
t[0] === n ? m = t[1] : (m = it(n), t[0] = n, t[1] = m);
|
|
2200
2209
|
let h = m, g = o || n.readOnly, _ = p ? h : u, v;
|
|
2201
2210
|
t[2] !== i || t[3] !== n.id || t[4] !== f || t[5] !== g || t[6] !== _ ? (v = {
|
|
2202
2211
|
id: n.id,
|
|
@@ -2209,9 +2218,9 @@ var lt = (e) => {
|
|
|
2209
2218
|
switch (n.type) {
|
|
2210
2219
|
case "number": {
|
|
2211
2220
|
let e = n.name, i = n.description || "", a;
|
|
2212
|
-
t[8] !== r || t[9] !== n.defaultValue || t[10] !== n.id ? (a =
|
|
2221
|
+
t[8] !== r || t[9] !== n.defaultValue || t[10] !== n.id ? (a = nt(r, n.id, n.defaultValue), t[8] = r, t[9] = n.defaultValue, t[10] = n.id, t[11] = a) : a = t[11];
|
|
2213
2222
|
let o;
|
|
2214
|
-
return t[12] !== y || t[13] !== p || t[14] !== n.max || t[15] !== n.min || t[16] !== n.name || t[17] !== n.step || t[18] !== i || t[19] !== a ? (o = /* @__PURE__ */ I(
|
|
2223
|
+
return t[12] !== y || t[13] !== p || t[14] !== n.max || t[15] !== n.min || t[16] !== n.name || t[17] !== n.step || t[18] !== i || t[19] !== a ? (o = /* @__PURE__ */ I(we, {
|
|
2215
2224
|
...y,
|
|
2216
2225
|
name: e,
|
|
2217
2226
|
description: i,
|
|
@@ -2225,9 +2234,9 @@ var lt = (e) => {
|
|
|
2225
2234
|
}
|
|
2226
2235
|
case "boolean": {
|
|
2227
2236
|
let e = n.name, i = n.description, a;
|
|
2228
|
-
t[21] !== r || t[22] !== n.defaultValue || t[23] !== n.id ? (a =
|
|
2237
|
+
t[21] !== r || t[22] !== n.defaultValue || t[23] !== n.id ? (a = nt(r, n.id, n.defaultValue), t[21] = r, t[22] = n.defaultValue, t[23] = n.id, t[24] = a) : a = t[24];
|
|
2229
2238
|
let o;
|
|
2230
|
-
return t[25] !== y || t[26] !== p || t[27] !== n.description || t[28] !== n.name || t[29] !== a ? (o = /* @__PURE__ */ I(
|
|
2239
|
+
return t[25] !== y || t[26] !== p || t[27] !== n.description || t[28] !== n.name || t[29] !== a ? (o = /* @__PURE__ */ I(oe, {
|
|
2231
2240
|
...y,
|
|
2232
2241
|
name: e,
|
|
2233
2242
|
description: i,
|
|
@@ -2238,9 +2247,9 @@ var lt = (e) => {
|
|
|
2238
2247
|
case "text": {
|
|
2239
2248
|
if (p) {
|
|
2240
2249
|
let e = n.name, i = n.description || "", a;
|
|
2241
|
-
t[31] !== r || t[32] !== n.defaultValue || t[33] !== n.id ? (a =
|
|
2250
|
+
t[31] !== r || t[32] !== n.defaultValue || t[33] !== n.id ? (a = nt(r, n.id, n.defaultValue), t[31] = r, t[32] = n.defaultValue, t[33] = n.id, t[34] = a) : a = t[34];
|
|
2242
2251
|
let o;
|
|
2243
|
-
return t[35] !== y || t[36] !== n.name || t[37] !== i || t[38] !== a ? (o = /* @__PURE__ */ I(
|
|
2252
|
+
return t[35] !== y || t[36] !== n.name || t[37] !== i || t[38] !== a ? (o = /* @__PURE__ */ I(be, {
|
|
2244
2253
|
...y,
|
|
2245
2254
|
name: e,
|
|
2246
2255
|
description: i,
|
|
@@ -2249,9 +2258,9 @@ var lt = (e) => {
|
|
|
2249
2258
|
}), t[35] = y, t[36] = n.name, t[37] = i, t[38] = a, t[39] = o) : o = t[39], o;
|
|
2250
2259
|
}
|
|
2251
2260
|
let e = n.name, i = n.description || "", a;
|
|
2252
|
-
t[40] !== r || t[41] !== n.defaultValue || t[42] !== n.id ? (a =
|
|
2261
|
+
t[40] !== r || t[41] !== n.defaultValue || t[42] !== n.id ? (a = nt(r, n.id, n.defaultValue), t[40] = r, t[41] = n.defaultValue, t[42] = n.id, t[43] = a) : a = t[43];
|
|
2253
2262
|
let o;
|
|
2254
|
-
return t[44] !== y || t[45] !== n.name || t[46] !== n.singleLine || t[47] !== i || t[48] !== a ? (o = /* @__PURE__ */ I(
|
|
2263
|
+
return t[44] !== y || t[45] !== n.name || t[46] !== n.singleLine || t[47] !== i || t[48] !== a ? (o = /* @__PURE__ */ I(Je, {
|
|
2255
2264
|
...y,
|
|
2256
2265
|
name: e,
|
|
2257
2266
|
description: i,
|
|
@@ -2261,9 +2270,9 @@ var lt = (e) => {
|
|
|
2261
2270
|
}
|
|
2262
2271
|
case "markdown": {
|
|
2263
2272
|
let e = n.id, a = n.name, o = n.description, s;
|
|
2264
|
-
t[50] !== r || t[51] !== n.defaultValue || t[52] !== n.id ? (s =
|
|
2273
|
+
t[50] !== r || t[51] !== n.defaultValue || t[52] !== n.id ? (s = nt(r, n.id, n.defaultValue), t[50] = r, t[51] = n.defaultValue, t[52] = n.id, t[53] = s) : s = t[53];
|
|
2265
2274
|
let c;
|
|
2266
|
-
return t[54] !== y.readOnly || t[55] !== i || t[56] !== n.description || t[57] !== n.id || t[58] !== n.name || t[59] !== n.placeholder || t[60] !== d || t[61] !== f || t[62] !== s ? (c = /* @__PURE__ */ I(
|
|
2275
|
+
return t[54] !== y.readOnly || t[55] !== i || t[56] !== n.description || t[57] !== n.id || t[58] !== n.name || t[59] !== n.placeholder || t[60] !== d || t[61] !== f || t[62] !== s ? (c = /* @__PURE__ */ I(Ce, {
|
|
2267
2276
|
id: e,
|
|
2268
2277
|
name: a,
|
|
2269
2278
|
description: o,
|
|
@@ -2277,14 +2286,14 @@ var lt = (e) => {
|
|
|
2277
2286
|
}
|
|
2278
2287
|
case "selection": {
|
|
2279
2288
|
let e = n.name, i = n.description || "", a;
|
|
2280
|
-
t[64] !== r || t[65] !== n.defaultValue || t[66] !== n.id ? (a =
|
|
2289
|
+
t[64] !== r || t[65] !== n.defaultValue || t[66] !== n.id ? (a = nt(r, n.id, n.defaultValue), t[64] = r, t[65] = n.defaultValue, t[66] = n.id, t[67] = a) : a = t[67];
|
|
2281
2290
|
let o;
|
|
2282
2291
|
t[68] !== r || t[69] !== n.group ? (o = n.group ? {
|
|
2283
2292
|
...n.group,
|
|
2284
|
-
defaultValue:
|
|
2293
|
+
defaultValue: nt(r, n.group.id, n.group.defaultValue)
|
|
2285
2294
|
} : void 0, t[68] = r, t[69] = n.group, t[70] = o) : o = t[70];
|
|
2286
2295
|
let s;
|
|
2287
|
-
return t[71] !== y || t[72] !== p || t[73] !== n.allowCustomValues || t[74] !== n.clearable || t[75] !== n.disabled || t[76] !== n.emptyText || t[77] !== n.multiSelect || t[78] !== n.name || t[79] !== n.options || t[80] !== n.placeholder || t[81] !== n.searchPlaceholder || t[82] !== n.searchable || t[83] !== o || t[84] !== i || t[85] !== a ? (s = /* @__PURE__ */ I(
|
|
2296
|
+
return t[71] !== y || t[72] !== p || t[73] !== n.allowCustomValues || t[74] !== n.clearable || t[75] !== n.disabled || t[76] !== n.emptyText || t[77] !== n.multiSelect || t[78] !== n.name || t[79] !== n.options || t[80] !== n.placeholder || t[81] !== n.searchPlaceholder || t[82] !== n.searchable || t[83] !== o || t[84] !== i || t[85] !== a ? (s = /* @__PURE__ */ I(Ke, {
|
|
2288
2297
|
...y,
|
|
2289
2298
|
name: e,
|
|
2290
2299
|
description: i,
|
|
@@ -2304,9 +2313,9 @@ var lt = (e) => {
|
|
|
2304
2313
|
}
|
|
2305
2314
|
case "date": {
|
|
2306
2315
|
let e = n.name, i = n.description || "", a;
|
|
2307
|
-
t[87] !== r || t[88] !== n.defaultValue || t[89] !== n.id ? (a =
|
|
2316
|
+
t[87] !== r || t[88] !== n.defaultValue || t[89] !== n.id ? (a = nt(r, n.id, n.defaultValue), t[87] = r, t[88] = n.defaultValue, t[89] = n.id, t[90] = a) : a = t[90];
|
|
2308
2317
|
let o;
|
|
2309
|
-
return t[91] !== y || t[92] !== p || t[93] !== n.max || t[94] !== n.min || t[95] !== n.name || t[96] !== i || t[97] !== a ? (o = /* @__PURE__ */ I(
|
|
2318
|
+
return t[91] !== y || t[92] !== p || t[93] !== n.max || t[94] !== n.min || t[95] !== n.name || t[96] !== i || t[97] !== a ? (o = /* @__PURE__ */ I(ue, {
|
|
2310
2319
|
...y,
|
|
2311
2320
|
name: e,
|
|
2312
2321
|
description: i,
|
|
@@ -2318,9 +2327,9 @@ var lt = (e) => {
|
|
|
2318
2327
|
}
|
|
2319
2328
|
case "color": {
|
|
2320
2329
|
let e = n.name, i = n.description || "", a;
|
|
2321
|
-
t[99] !== r || t[100] !== n.defaultValue || t[101] !== n.id ? (a =
|
|
2330
|
+
t[99] !== r || t[100] !== n.defaultValue || t[101] !== n.id ? (a = nt(r, n.id, n.defaultValue), t[99] = r, t[100] = n.defaultValue, t[101] = n.id, t[102] = a) : a = t[102];
|
|
2322
2331
|
let o;
|
|
2323
|
-
return t[103] !== y || t[104] !== p || t[105] !== n.name || t[106] !== i || t[107] !== a ? (o = /* @__PURE__ */ I(
|
|
2332
|
+
return t[103] !== y || t[104] !== p || t[105] !== n.name || t[106] !== i || t[107] !== a ? (o = /* @__PURE__ */ I(se, {
|
|
2324
2333
|
...y,
|
|
2325
2334
|
name: e,
|
|
2326
2335
|
description: i,
|
|
@@ -2330,23 +2339,23 @@ var lt = (e) => {
|
|
|
2330
2339
|
}
|
|
2331
2340
|
case "property": {
|
|
2332
2341
|
let e = !p && u, r;
|
|
2333
|
-
return t[109] !== n || t[110] !== e ? (r = /* @__PURE__ */ I(
|
|
2342
|
+
return t[109] !== n || t[110] !== e ? (r = /* @__PURE__ */ I(dt, {
|
|
2334
2343
|
param: n,
|
|
2335
2344
|
fullWidth: e
|
|
2336
2345
|
}), t[109] = n, t[110] = e, t[111] = r) : r = t[111], r;
|
|
2337
2346
|
}
|
|
2338
2347
|
case "readOnly": {
|
|
2339
2348
|
let e = !p && u, r;
|
|
2340
|
-
return t[112] !== n || t[113] !== e ? (r = /* @__PURE__ */ I(
|
|
2349
|
+
return t[112] !== n || t[113] !== e ? (r = /* @__PURE__ */ I(ct, {
|
|
2341
2350
|
param: n,
|
|
2342
2351
|
fullWidth: e
|
|
2343
2352
|
}), t[112] = n, t[113] = e, t[114] = r) : r = t[114], r;
|
|
2344
2353
|
}
|
|
2345
2354
|
case "resource": {
|
|
2346
2355
|
let e = n.name, i = n.description, o;
|
|
2347
|
-
t[115] !== r || t[116] !== n.defaultValue || t[117] !== n.id ? (o =
|
|
2356
|
+
t[115] !== r || t[116] !== n.defaultValue || t[117] !== n.id ? (o = nt(r, n.id, n.defaultValue), t[115] = r, t[116] = n.defaultValue, t[117] = n.id, t[118] = o) : o = t[118];
|
|
2348
2357
|
let s;
|
|
2349
|
-
return t[119] !== y || t[120] !== a || t[121] !== n.description || t[122] !== n.editable || t[123] !== n.emptyText || t[124] !== n.multiSelect || t[125] !== n.name || t[126] !== n.options || t[127] !== n.placeholder || t[128] !== d || t[129] !== o ? (s = /* @__PURE__ */ I(
|
|
2358
|
+
return t[119] !== y || t[120] !== a || t[121] !== n.description || t[122] !== n.editable || t[123] !== n.emptyText || t[124] !== n.multiSelect || t[125] !== n.name || t[126] !== n.options || t[127] !== n.placeholder || t[128] !== d || t[129] !== o ? (s = /* @__PURE__ */ I(Ue, {
|
|
2350
2359
|
...y,
|
|
2351
2360
|
name: e,
|
|
2352
2361
|
description: i,
|
|
@@ -2367,7 +2376,7 @@ var lt = (e) => {
|
|
|
2367
2376
|
case "vector":
|
|
2368
2377
|
case "fileUpload": {
|
|
2369
2378
|
let e;
|
|
2370
|
-
return t[131] !== r || t[132] !== u || t[133] !== i || t[134] !== n || t[135] !== d || t[136] !== o ? (e = /* @__PURE__ */ I(
|
|
2379
|
+
return t[131] !== r || t[132] !== u || t[133] !== i || t[134] !== n || t[135] !== d || t[136] !== o ? (e = /* @__PURE__ */ I(rt, {
|
|
2371
2380
|
param: n,
|
|
2372
2381
|
defaultValues: r,
|
|
2373
2382
|
onChange: i,
|
|
@@ -2380,6 +2389,6 @@ var lt = (e) => {
|
|
|
2380
2389
|
}
|
|
2381
2390
|
};
|
|
2382
2391
|
//#endregion
|
|
2383
|
-
export {
|
|
2392
|
+
export { ie as C, re as S, X as T, ue as _, tt as a, ae as b, Ke as c, Ne as d, we as f, ye as g, be as h, it as i, We as l, Se as m, ct as n, Ze as o, Ce as p, at as r, Je as s, ft as t, Ue as u, se as v, Q as w, $ as x, oe as y };
|
|
2384
2393
|
|
|
2385
|
-
//# sourceMappingURL=param-editor-field-
|
|
2394
|
+
//# sourceMappingURL=param-editor-field-B3vLST-B.js.map
|