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