@pstdio/ui 0.44.0 → 0.45.0-nightly.20261020145025

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