@pstdio/ui 0.17.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/dist/{MermaidComponent-BCMQqPqu.js → MermaidComponent-BPiVFNYK.js} +2 -2
  2. package/dist/{MermaidComponent-BCMQqPqu.js.map → MermaidComponent-BPiVFNYK.js.map} +1 -1
  3. package/dist/chat-ui.js +2 -2
  4. package/dist/components/data-table/data-table-column-menu.d.ts +4 -1
  5. package/dist/components/data-table/data-table-header.d.ts +0 -8
  6. package/dist/components/data-table/editable-cells-story.d.ts +9 -0
  7. package/dist/components/diff-viewer/code-editor.d.ts +2 -0
  8. package/dist/components/diff-viewer/index.d.ts +1 -1
  9. package/dist/components/diff-viewer/monaco-browser.d.ts +1 -0
  10. package/dist/components/overlays/searchable-menu-input.d.ts +9 -0
  11. package/dist/components/param-editor/index.d.ts +5 -2
  12. package/dist/components/param-editor/inputs/action-input.d.ts +1 -0
  13. package/dist/components/param-editor/inputs/boolean-input.d.ts +13 -0
  14. package/dist/components/param-editor/inputs/color-input.d.ts +1 -0
  15. package/dist/components/param-editor/inputs/date-input.d.ts +1 -0
  16. package/dist/components/param-editor/inputs/file-upload-input.d.ts +15 -0
  17. package/dist/components/param-editor/inputs/file-upload-value.d.ts +7 -0
  18. package/dist/components/param-editor/inputs/horizontal-text-input.d.ts +1 -0
  19. package/dist/components/param-editor/inputs/markdown-input.d.ts +13 -0
  20. package/dist/components/param-editor/inputs/number-input.d.ts +1 -0
  21. package/dist/components/param-editor/inputs/range-input.d.ts +1 -0
  22. package/dist/components/param-editor/inputs/resource-input.d.ts +2 -0
  23. package/dist/components/param-editor/inputs/segmented-input.d.ts +1 -0
  24. package/dist/components/param-editor/inputs/selection-input.d.ts +1 -0
  25. package/dist/components/param-editor/inputs/selection-menu.d.ts +4 -0
  26. package/dist/components/param-editor/inputs/text-input.d.ts +1 -0
  27. package/dist/components/param-editor/param-editor-advanced-field.d.ts +14 -0
  28. package/dist/components/param-editor/param-editor-control-fixtures.d.ts +24 -0
  29. package/dist/components/param-editor/param-editor-field.d.ts +2 -0
  30. package/dist/components/param-editor/param-editor-horizontal.d.ts +2 -2
  31. package/dist/components/param-editor/param-editor-label.d.ts +1 -0
  32. package/dist/components/param-editor/param-editor-presentation.d.ts +3 -0
  33. package/dist/components/param-editor/param-editor.types.d.ts +25 -13
  34. package/dist/components/param-editor/resolve-param-value.d.ts +2 -0
  35. package/dist/components/primitives/chip.d.ts +4 -0
  36. package/dist/components/primitives/index.d.ts +2 -0
  37. package/dist/components/primitives/resource-badge.d.ts +12 -10
  38. package/dist/components/rich-text/index.d.ts +1 -0
  39. package/dist/components/rich-text/lazy-markdown-editor.d.ts +2 -0
  40. package/dist/components/rich-text/utils/inferResourceType.d.ts +1 -1
  41. package/dist/data-table.js +960 -910
  42. package/dist/data-table.js.map +1 -1
  43. package/dist/diff.js +370 -366
  44. package/dist/diff.js.map +1 -1
  45. package/dist/font/css/prompt-studio-icons.css +690 -0
  46. package/dist/font/prompt-studio-icons.eot +0 -0
  47. package/dist/font/prompt-studio-icons.svg +1 -0
  48. package/dist/font/prompt-studio-icons.ttf +0 -0
  49. package/dist/font/prompt-studio-icons.woff +0 -0
  50. package/dist/font/prompt-studio-icons.woff2 +0 -0
  51. package/dist/index.js +895 -947
  52. package/dist/index.js.map +1 -1
  53. package/dist/{kanban-renderer-toolbar-B9ro-9z1.js → kanban-renderer-toolbar-Db1mIWWd.js} +3 -3
  54. package/dist/{kanban-renderer-toolbar-B9ro-9z1.js.map → kanban-renderer-toolbar-Db1mIWWd.js.map} +1 -1
  55. package/dist/kanban-renderer.js +831 -817
  56. package/dist/kanban-renderer.js.map +1 -1
  57. package/dist/lazy-markdown-editor-DwhqQ-NN.js +26 -0
  58. package/dist/lazy-markdown-editor-DwhqQ-NN.js.map +1 -0
  59. package/dist/{list-row-YRUxEcy3.js → list-row-BYWwcbGK.js} +286 -271
  60. package/dist/list-row-BYWwcbGK.js.map +1 -0
  61. package/dist/markdown-DDd2ESoH.js +743 -0
  62. package/dist/markdown-DDd2ESoH.js.map +1 -0
  63. package/dist/markdown-editor-CYVkzt8t.js +741 -0
  64. package/dist/markdown-editor-CYVkzt8t.js.map +1 -0
  65. package/dist/monaco-browser-CO0NxK_Z.js +19 -0
  66. package/dist/monaco-browser-CO0NxK_Z.js.map +1 -0
  67. package/dist/param-editor-BCZOw5Gt.js +140 -0
  68. package/dist/param-editor-BCZOw5Gt.js.map +1 -0
  69. package/dist/param-editor-field-ZzZwgjZ_.js +2094 -0
  70. package/dist/param-editor-field-ZzZwgjZ_.js.map +1 -0
  71. package/dist/resource-badge-CuItchgL.js +98 -0
  72. package/dist/resource-badge-CuItchgL.js.map +1 -0
  73. package/dist/rich-message--eRzjWYK.js +730 -0
  74. package/dist/rich-message--eRzjWYK.js.map +1 -0
  75. package/dist/rich-text.js +114 -827
  76. package/dist/rich-text.js.map +1 -1
  77. package/dist/style.css +1 -1
  78. package/dist/theme/primitives/fonts.d.ts +3 -0
  79. package/dist/theme/recipes/badge.d.ts +8 -0
  80. package/dist/theme/recipes/color-picker.d.ts +18 -1
  81. package/dist/theme/recipes/switch.d.ts +17 -0
  82. package/dist/{theme-CNhnbvcE.js → theme-poQlUgt0.js} +284 -156
  83. package/dist/theme-poQlUgt0.js.map +1 -0
  84. package/dist/theme.js +1 -1
  85. package/dist/{tree-list-CZHLAURU.js → tree-list-BAja2eXU.js} +2 -2
  86. package/dist/{tree-list-CZHLAURU.js.map → tree-list-BAja2eXU.js.map} +1 -1
  87. package/package.json +2 -1
  88. package/dist/components/param-editor/inputs/file-accept.d.ts +0 -22
  89. package/dist/components/param-editor/inputs/file-drop-input.d.ts +0 -14
  90. package/dist/list-row-YRUxEcy3.js.map +0 -1
  91. package/dist/param-editor-CYZJbmKu.js +0 -933
  92. package/dist/param-editor-CYZJbmKu.js.map +0 -1
  93. package/dist/param-editor-read-only-field-DgtLqcFa.js +0 -925
  94. package/dist/param-editor-read-only-field-DgtLqcFa.js.map +0 -1
  95. package/dist/prism-BXb57lxL.js +0 -125
  96. package/dist/prism-BXb57lxL.js.map +0 -1
  97. package/dist/resource-badge-qCWHP-wQ.js +0 -99
  98. package/dist/resource-badge-qCWHP-wQ.js.map +0 -1
  99. package/dist/rich-message-DBf_5YlW.js +0 -1450
  100. package/dist/rich-message-DBf_5YlW.js.map +0 -1
  101. package/dist/theme-CNhnbvcE.js.map +0 -1
@@ -0,0 +1,2094 @@
1
+ import { jsx as r, jsxs as _, Fragment as Ye } from "react/jsx-runtime";
2
+ import { c as E } from "react/compiler-runtime";
3
+ import { Text as ae, Popover as de, chakra as ct, Image as Qe, IconButton as ye, Badge as Re, Icon as ne, HStack as Ve, Flex as D, Box as A, Grid as Ee, GridItem as Fe, Switch as ve, Spinner as Je, Menu as Ce, Button as $e, parseColor as dt, ColorPicker as se, Input as Se, Stack as We, Wrap as Ze, Textarea as et, NumberInput as Ie, Slider as ke, Group as ut } from "@chakra-ui/react";
4
+ import { X as ft, CircleHelp as mt, Circle as ze, Bug as ht, Sparkles as pt, BookOpen as gt, Wrench as bt, Gauge as vt, Feather as xt, Scale as yt, Layers as St, AlertTriangle as Ct, Star as kt, Flag as It, Flame as wt, Lightbulb as Vt, Shield as $t, Eye as Wt, Clock as Lt, CheckCircle as Tt, Tag as zt, Ticket as Rt, Code as _t, GitPullRequest as Ot, ChartColumnIncreasing as At, CircleQuestionMark as Et, ShieldAlert as Nt, LoaderCircle as Pt, CircleCheck as tt, CircleAlert as lt, CircleStop as jt, CirclePause as Ht, ClockAlert as Ft, CircleDot as Ut, CircleDashed as Bt, ChevronDown as Pe, GitCommitIcon as Dt, GitBranchIcon as Mt, SquareCheck as Gt, Square as qt, Check as Kt, Paperclip as Xt, Clock3 as Yt, Plus as Qt } from "lucide-react";
5
+ import { T as je } from "./scroll-area-BMbg1WcD.js";
6
+ import * as He from "react";
7
+ import { useState as Z, useEffect as le, useRef as me } from "react";
8
+ import { L as Jt } from "./lazy-markdown-editor-DwhqQ-NN.js";
9
+ import { R as Zt } from "./resource-badge-CuItchgL.js";
10
+ import { L as el } from "./list-row-BYWwcbGK.js";
11
+ import "./checkbox-B2zYVemL.js";
12
+ import "./empty-state-Bo4HVrgr.js";
13
+ const tl = (s) => s.type.startsWith("image/"), ll = (s) => s < 1024 ? `${s.toString()} B` : s < 1024 * 1024 ? `${Math.round(s / 1024).toString()} KB` : `${(s / (1024 * 1024)).toFixed(1)} MB`, nl = (s) => {
14
+ const e = E(22), {
15
+ file: t,
16
+ removeLabel: l,
17
+ disabled: n,
18
+ onRemove: a
19
+ } = s, [i, o] = Z(null);
20
+ let c, d;
21
+ e[0] !== t ? (c = () => {
22
+ if (!tl(t))
23
+ return;
24
+ const I = URL.createObjectURL(t);
25
+ return o(I), () => URL.revokeObjectURL(I);
26
+ }, d = [t], e[0] = t, e[1] = c, e[2] = d) : (c = e[1], d = e[2]), le(c, d);
27
+ let h;
28
+ e[3] !== t.name ? (h = /* @__PURE__ */ r(ae, { as: "span", textStyle: "label/XS/medium", lineClamp: 1, maxW: "180px", children: t.name }), e[3] = t.name, e[4] = h) : h = e[4];
29
+ const m = h;
30
+ let g;
31
+ e[5] !== t.name || e[6] !== m || e[7] !== i ? (g = i ? /* @__PURE__ */ _(de.Root, { positioning: {
32
+ placement: "top"
33
+ }, children: [
34
+ /* @__PURE__ */ r(de.Trigger, { asChild: !0, children: /* @__PURE__ */ r(ct.button, { type: "button", cursor: "pointer", minW: "0", display: "inline-flex", children: m }) }),
35
+ /* @__PURE__ */ r(de.Positioner, { children: /* @__PURE__ */ r(de.Content, { w: "auto", p: "2xs", bg: "bg", children: /* @__PURE__ */ r(Qe, { src: i, alt: t.name, maxW: "240px", maxH: "240px", borderRadius: "sm" }) }) })
36
+ ] }) : m, e[5] = t.name, e[6] = m, e[7] = i, e[8] = g) : g = e[8];
37
+ let u;
38
+ e[9] !== t.size ? (u = ll(t.size), e[9] = t.size, e[10] = u) : u = e[10];
39
+ let p;
40
+ e[11] !== u ? (p = /* @__PURE__ */ r(ae, { as: "span", textStyle: "label/XS/regular", color: "fg.subtle", children: u }), e[11] = u, e[12] = p) : p = e[12];
41
+ let f;
42
+ e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ r(ft, { size: 12 }), e[13] = f) : f = e[13];
43
+ let x;
44
+ e[14] !== n || e[15] !== a || e[16] !== l ? (x = /* @__PURE__ */ r(ye, { size: "2xs", variant: "ghost", "aria-label": l, disabled: n, onClick: a, children: f }), e[14] = n, e[15] = a, e[16] = l, e[17] = x) : x = e[17];
45
+ let w;
46
+ return e[18] !== g || e[19] !== p || e[20] !== x ? (w = /* @__PURE__ */ _(Re, { variant: "chip", gap: "2xs", pr: "2xs", children: [
47
+ g,
48
+ p,
49
+ x
50
+ ] }), e[18] = g, e[19] = p, e[20] = x, e[21] = w) : w = e[21], w;
51
+ }, X = (s) => {
52
+ const e = E(10), {
53
+ name: t,
54
+ description: l,
55
+ compact: n
56
+ } = s, a = n === void 0 ? !1 : n, i = a ? "label/XS/medium" : "label/S/medium", o = a ? "0.08em" : void 0, c = a ? "uppercase" : void 0;
57
+ let d;
58
+ e[0] !== t || e[1] !== i || e[2] !== o || e[3] !== c ? (d = /* @__PURE__ */ r(ae, { textStyle: i, color: "fg.muted", letterSpacing: o, textTransform: c, truncate: !0, children: t }), e[0] = t, e[1] = i, e[2] = o, e[3] = c, e[4] = d) : d = e[4];
59
+ let h;
60
+ e[5] !== l ? (h = l ? /* @__PURE__ */ r(je, { content: l, children: /* @__PURE__ */ r(ne, { as: mt, boxSize: "12px", color: "fg.muted", opacity: 0.6, cursor: "help", flexShrink: 0 }) }) : null, e[5] = l, e[6] = h) : h = e[6];
61
+ let m;
62
+ return e[7] !== d || e[8] !== h ? (m = /* @__PURE__ */ _(Ve, { gap: "1", alignItems: "center", minW: "0", children: [
63
+ d,
64
+ h
65
+ ] }), e[7] = d, e[8] = h, e[9] = m) : m = e[9], m;
66
+ }, ce = (s) => {
67
+ const e = E(17), {
68
+ name: t,
69
+ description: l,
70
+ hideLabel: n,
71
+ fullWidth: a,
72
+ orientation: i,
73
+ labelTrailing: o,
74
+ children: c
75
+ } = s, d = n === void 0 ? !1 : n, h = a === void 0 ? !1 : a, m = i === void 0 ? "auto" : i;
76
+ let g;
77
+ e[0] !== l || e[1] !== d || e[2] !== t ? (g = d || !t ? null : /* @__PURE__ */ r(X, { name: t, description: l }), e[0] = l, e[1] = d, e[2] = t, e[3] = g) : g = e[3];
78
+ const u = g;
79
+ if ((m === "auto" ? h ? "stacked" : "inline" : m) === "stacked") {
80
+ const w = u || o;
81
+ let I;
82
+ e[4] !== w || e[5] !== u || e[6] !== o ? (I = w ? /* @__PURE__ */ _(D, { alignItems: "center", justifyContent: "space-between", gap: "xs", mb: "xs", minW: "0", children: [
83
+ u,
84
+ o
85
+ ] }) : null, e[4] = w, e[5] = u, e[6] = o, e[7] = I) : I = e[7];
86
+ let S;
87
+ return e[8] !== c || e[9] !== I ? (S = /* @__PURE__ */ _(A, { minW: "0", children: [
88
+ I,
89
+ c
90
+ ] }), e[8] = c, e[9] = I, e[10] = S) : S = e[10], S;
91
+ }
92
+ let f;
93
+ e[11] !== c || e[12] !== o ? (f = /* @__PURE__ */ _(D, { alignItems: "center", gap: "xs", minW: "0", children: [
94
+ o,
95
+ c
96
+ ] }), e[11] = c, e[12] = o, e[13] = f) : f = e[13];
97
+ let x;
98
+ return e[14] !== u || e[15] !== f ? (x = /* @__PURE__ */ _(D, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", minW: "0", children: [
99
+ u,
100
+ f
101
+ ] }), e[14] = u, e[15] = f, e[16] = x) : x = e[16], x;
102
+ }, il = (s) => {
103
+ const e = E(2);
104
+ let t;
105
+ return e[0] !== s ? (t = /* @__PURE__ */ r(Re, { size: "sm", variant: "chip", ...s }), e[0] = s, e[1] = t) : t = e[1], t;
106
+ }, rl = ["gray", "red", "orange", "yellow", "green", "teal", "blue", "cyan", "purple", "pink"], nt = [{
107
+ value: "circle",
108
+ label: "circle",
109
+ icon: ze
110
+ }, {
111
+ value: "bug",
112
+ label: "bug",
113
+ icon: ht
114
+ }, {
115
+ value: "sparkles",
116
+ label: "sparkles",
117
+ icon: pt
118
+ }, {
119
+ value: "book-open",
120
+ label: "book open",
121
+ icon: gt
122
+ }, {
123
+ value: "wrench",
124
+ label: "wrench",
125
+ icon: bt
126
+ }, {
127
+ value: "gauge",
128
+ label: "gauge",
129
+ icon: vt
130
+ }, {
131
+ value: "feather",
132
+ label: "feather",
133
+ icon: xt
134
+ }, {
135
+ value: "scale",
136
+ label: "scale",
137
+ icon: yt
138
+ }, {
139
+ value: "layers",
140
+ label: "layers",
141
+ icon: St
142
+ }, {
143
+ value: "alert-triangle",
144
+ label: "alert triangle",
145
+ icon: Ct
146
+ }, {
147
+ value: "star",
148
+ label: "star",
149
+ icon: kt
150
+ }, {
151
+ value: "flag",
152
+ label: "flag",
153
+ icon: It
154
+ }, {
155
+ value: "flame",
156
+ label: "flame",
157
+ icon: wt
158
+ }, {
159
+ value: "lightbulb",
160
+ label: "lightbulb",
161
+ icon: Vt
162
+ }, {
163
+ value: "shield",
164
+ label: "shield",
165
+ icon: $t
166
+ }, {
167
+ value: "eye",
168
+ label: "eye",
169
+ icon: Wt
170
+ }, {
171
+ value: "clock",
172
+ label: "clock",
173
+ icon: Lt
174
+ }, {
175
+ value: "check-circle",
176
+ label: "check circle",
177
+ icon: Tt
178
+ }, {
179
+ value: "tag",
180
+ label: "tag",
181
+ icon: zt
182
+ }, {
183
+ value: "ticket",
184
+ label: "ticket",
185
+ icon: Rt
186
+ }, {
187
+ value: "code",
188
+ label: "code",
189
+ icon: _t
190
+ }, {
191
+ value: "git-pull-request",
192
+ label: "git pull request",
193
+ icon: Ot
194
+ }, {
195
+ value: "chart-column-increasing",
196
+ label: "chart column increasing",
197
+ icon: At
198
+ }, {
199
+ value: "circle-question-mark",
200
+ label: "circle question mark",
201
+ icon: Et
202
+ }, {
203
+ value: "shield-alert",
204
+ label: "shield alert",
205
+ icon: Nt
206
+ }], _e = (s, e = nt) => e.find((l) => l.value === (s ?? "circle"))?.icon ?? ze, wn = (s) => {
207
+ const e = E(36), {
208
+ color: t,
209
+ colorOptions: l,
210
+ icon: n,
211
+ iconOptions: a,
212
+ onColorChange: i,
213
+ onIconChange: o,
214
+ disabled: c,
215
+ showIcons: d,
216
+ "aria-label": h
217
+ } = s, m = l === void 0 ? rl : l, g = a === void 0 ? nt : a, u = d === void 0 ? !0 : d, p = h === void 0 ? "Pick color and icon" : h;
218
+ let f;
219
+ e[0] !== n || e[1] !== g || e[2] !== u ? (f = u ? _e(n, g) : ze, e[0] = n, e[1] = g, e[2] = u, e[3] = f) : f = e[3];
220
+ const x = f, w = n ?? "circle", I = `${t}.500`, S = u ? void 0 : `${t}.500`;
221
+ let b;
222
+ e[4] !== x || e[5] !== I || e[6] !== S ? (b = /* @__PURE__ */ r(ne, { as: x, boxSize: "14px", color: I, fill: S }), e[4] = x, e[5] = I, e[6] = S, e[7] = b) : b = e[7];
223
+ let v;
224
+ e[8] !== p || e[9] !== c || e[10] !== b ? (v = /* @__PURE__ */ r(de.Trigger, { asChild: !0, children: /* @__PURE__ */ r(ye, { size: "2xs", variant: "ghost", disabled: c, "aria-label": p, children: b }) }), e[8] = p, e[9] = c, e[10] = b, e[11] = v) : v = e[11];
225
+ const y = u ? "320px" : "220px";
226
+ let C;
227
+ e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ r(ae, { textStyle: "label/S", mb: "xs", children: "Color" }), e[12] = C) : C = e[12];
228
+ const V = u ? "repeat(10, 1fr)" : "repeat(5, 1fr)", L = u ? "md" : "0";
229
+ let $;
230
+ if (e[13] !== t || e[14] !== m || e[15] !== i) {
231
+ let W;
232
+ e[17] !== t || e[18] !== i ? (W = (O) => /* @__PURE__ */ r(Fe, { children: /* @__PURE__ */ r(ye, { size: "2xs", variant: O === t ? "outline" : "ghost", colorPalette: O, onClick: () => i(O), "aria-label": O, children: /* @__PURE__ */ r(ne, { as: ze, boxSize: "14px", fill: `${O}.500`, color: `${O}.500` }) }) }, O), e[17] = t, e[18] = i, e[19] = W) : W = e[19], $ = m.map(W), e[13] = t, e[14] = m, e[15] = i, e[16] = $;
233
+ } else
234
+ $ = e[16];
235
+ let T;
236
+ e[20] !== V || e[21] !== L || e[22] !== $ ? (T = /* @__PURE__ */ r(Ee, { templateColumns: V, gap: "2xs", mb: L, children: $ }), e[20] = V, e[21] = L, e[22] = $, e[23] = T) : T = e[23];
237
+ let z;
238
+ e[24] !== g || e[25] !== o || e[26] !== w || e[27] !== u ? (z = u ? /* @__PURE__ */ _(Ye, { children: [
239
+ /* @__PURE__ */ r(ae, { textStyle: "label/S", mb: "xs", children: "Icon" }),
240
+ /* @__PURE__ */ r(Ee, { templateColumns: "repeat(5, 1fr)", gap: "2xs", children: g.map((W) => /* @__PURE__ */ r(Fe, { children: /* @__PURE__ */ r(ye, { size: "2xs", variant: W.value === w ? "outline" : "ghost", onClick: () => o?.(W.value), "aria-label": W.label, children: /* @__PURE__ */ r(ne, { as: W.icon, boxSize: "14px" }) }) }, W.value ?? "none")) })
241
+ ] }) : null, e[24] = g, e[25] = o, e[26] = w, e[27] = u, e[28] = z) : z = e[28];
242
+ let R;
243
+ e[29] !== T || e[30] !== z || e[31] !== y ? (R = /* @__PURE__ */ r(de.Positioner, { children: /* @__PURE__ */ _(de.Content, { w: y, p: "sm", bg: "bg", children: [
244
+ C,
245
+ T,
246
+ z
247
+ ] }) }), e[29] = T, e[30] = z, e[31] = y, e[32] = R) : R = e[32];
248
+ let k;
249
+ return e[33] !== R || e[34] !== v ? (k = /* @__PURE__ */ _(de.Root, { children: [
250
+ v,
251
+ R
252
+ ] }), e[33] = R, e[34] = v, e[35] = k) : k = e[35], k;
253
+ }, ol = (s) => s === "in_progress" ? Pt : s === "completed" ? tt : s === "failed" ? lt : s === "cancelled" ? jt : s === "disconnected" ? Ht : s === "queued" ? Ft : s === "awaiting_input" ? Ut : Bt, sl = (s) => s === "in_progress" ? "fg.info" : s === "completed" ? "fg.success" : s === "failed" ? "fg.error" : s === "cancelled" || s === "disconnected" ? "fg.warning" : s === "queued" ? "fg.info" : s === "awaiting_input" ? "fg.warning" : "fg.muted", al = (s) => {
254
+ const e = E(11), {
255
+ status: t,
256
+ boxSize: l,
257
+ ariaLabel: n,
258
+ cursor: a,
259
+ onClick: i
260
+ } = s, o = l === void 0 ? "14px" : l, c = n === void 0 ? "Session status" : n;
261
+ let d;
262
+ e[0] !== t ? (d = ol(t), e[0] = t, e[1] = d) : d = e[1];
263
+ let h;
264
+ e[2] !== t ? (h = sl(t), e[2] = t, e[3] = h) : h = e[3];
265
+ let m;
266
+ return e[4] !== c || e[5] !== o || e[6] !== a || e[7] !== i || e[8] !== d || e[9] !== h ? (m = /* @__PURE__ */ r(ne, { as: d, boxSize: o, color: h, "aria-label": c, cursor: a, onClick: i }), e[4] = c, e[5] = o, e[6] = a, e[7] = i, e[8] = d, e[9] = h, e[10] = m) : m = e[10], m;
267
+ }, cl = He.forwardRef(function(e, t) {
268
+ const l = E(32);
269
+ let n, a, i, o, c, d, h;
270
+ l[0] !== e ? ({
271
+ inputProps: a,
272
+ children: n,
273
+ rootRef: o,
274
+ trackLabel: h,
275
+ thumbLabel: d,
276
+ disabled: c,
277
+ ...i
278
+ } = e, l[0] = e, l[1] = n, l[2] = a, l[3] = i, l[4] = o, l[5] = c, l[6] = d, l[7] = h) : (n = l[1], a = l[2], i = l[3], o = l[4], c = l[5], d = l[6], h = l[7]);
279
+ const m = c === void 0 ? !1 : c, g = m ? "not-allowed" : "pointer";
280
+ let u;
281
+ l[8] !== a || l[9] !== t ? (u = /* @__PURE__ */ r(ve.HiddenInput, { ref: t, ...a }), l[8] = a, l[9] = t, l[10] = u) : u = l[10];
282
+ let p;
283
+ l[11] !== d ? (p = d && /* @__PURE__ */ r(ve.ThumbIndicator, { fallback: d?.off, children: d?.on }), l[11] = d, l[12] = p) : p = l[12];
284
+ let f;
285
+ l[13] !== p ? (f = /* @__PURE__ */ r(ve.Thumb, { children: p }), l[13] = p, l[14] = f) : f = l[14];
286
+ let x;
287
+ l[15] !== h ? (x = h && /* @__PURE__ */ r(ve.Indicator, { fallback: h.off, children: h.on }), l[15] = h, l[16] = x) : x = l[16];
288
+ let w;
289
+ l[17] !== g || l[18] !== f || l[19] !== x ? (w = /* @__PURE__ */ _(ve.Control, { cursor: g, children: [
290
+ f,
291
+ x
292
+ ] }), l[17] = g, l[18] = f, l[19] = x, l[20] = w) : w = l[20];
293
+ let I;
294
+ l[21] !== n || l[22] !== g ? (I = n != null && /* @__PURE__ */ r(ve.Label, { cursor: g, children: n }), l[21] = n, l[22] = g, l[23] = I) : I = l[23];
295
+ let S;
296
+ return l[24] !== m || l[25] !== g || l[26] !== i || l[27] !== o || l[28] !== u || l[29] !== w || l[30] !== I ? (S = /* @__PURE__ */ _(ve.Root, { ref: o, disabled: m, cursor: g, ...i, children: [
297
+ u,
298
+ w,
299
+ I
300
+ ] }), l[24] = m, l[25] = g, l[26] = i, l[27] = o, l[28] = u, l[29] = w, l[30] = I, l[31] = S) : S = l[31], S;
301
+ }), dl = {
302
+ amber: "yellow"
303
+ }, ul = /* @__PURE__ */ new Set(["gray", "red", "orange", "yellow", "green", "teal", "blue", "cyan", "purple", "pink"]), fl = {
304
+ bg: {
305
+ _light: "bg.muted",
306
+ _dark: "bg.subtle"
307
+ },
308
+ color: "fg.muted",
309
+ _hover: {
310
+ bg: {
311
+ _light: "bg.subtle",
312
+ _dark: "bg.hover"
313
+ }
314
+ }
315
+ }, ml = (s) => s === "current_branch" ? Dt : Mt, hl = (s) => {
316
+ if (s.startsWith("#") || s.startsWith("rgb") || s.startsWith("hsl") || s.startsWith("var("))
317
+ return s;
318
+ const e = dl[s] ?? s;
319
+ return ul.has(e) ? `var(--chakra-colors-${e}-500)` : e;
320
+ }, pl = (s) => s ? s.description ? `${s.name}: ${s.description}` : s.name : null, it = (s, e) => {
321
+ s.stopPropagation(), e?.();
322
+ }, gl = (s, e) => {
323
+ s.stopPropagation(), e?.();
324
+ }, bl = (s) => {
325
+ const e = E(9), {
326
+ sessionStatus: t,
327
+ onSessionIndicatorClick: l
328
+ } = s;
329
+ if (!t)
330
+ return null;
331
+ const n = l ? "Open latest session" : "Latest session status";
332
+ let a;
333
+ e[0] !== l ? (a = l ? (c) => it(c, l) : void 0, e[0] = l, e[1] = a) : a = e[1];
334
+ let i;
335
+ e[2] !== t || e[3] !== n || e[4] !== a ? (i = /* @__PURE__ */ r(al, { status: t, boxSize: "12px", ariaLabel: n, cursor: "pointer", onClick: a }), e[2] = t, e[3] = n, e[4] = a, e[5] = i) : i = e[5];
336
+ let o;
337
+ return e[6] !== n || e[7] !== i ? (o = /* @__PURE__ */ r(je, { content: n, children: i }), e[6] = n, e[7] = i, e[8] = o) : o = e[8], o;
338
+ }, vl = (s) => {
339
+ const e = E(13), {
340
+ workspaceType: t,
341
+ initializing: l,
342
+ label: n,
343
+ shorthand: a
344
+ } = s;
345
+ let i;
346
+ e[0] !== t ? (i = ml(t), e[0] = t, e[1] = i) : i = e[1];
347
+ const o = i, c = n ?? a, d = t === "worktree" ? "Worktree" : "Current branch";
348
+ let h;
349
+ e[2] !== o || e[3] !== d ? (h = /* @__PURE__ */ r(ne, { as: o, boxSize: "3.5", flexShrink: 0, "aria-label": d }), e[2] = o, e[3] = d, e[4] = h) : h = e[4];
350
+ let m;
351
+ e[5] !== l ? (m = l ? /* @__PURE__ */ r(Je, { size: "xs", color: "fg.muted" }) : null, e[5] = l, e[6] = m) : m = e[6];
352
+ let g;
353
+ e[7] !== c ? (g = c ? /* @__PURE__ */ r(ae, { as: "span", textStyle: "label/XS/medium", color: "fg.muted", minW: "0", maxW: "10rem", truncate: !0, children: c }) : null, e[7] = c, e[8] = g) : g = e[8];
354
+ let u;
355
+ return e[9] !== h || e[10] !== m || e[11] !== g ? (u = /* @__PURE__ */ _(Ve, { as: "span", gap: "2xs", alignItems: "center", color: "fg.muted", minW: "0", children: [
356
+ h,
357
+ m,
358
+ g
359
+ ] }), e[9] = h, e[10] = m, e[11] = g, e[12] = u) : u = e[12], u;
360
+ }, xl = (s) => {
361
+ const e = E(10), {
362
+ attemptStatus: t
363
+ } = s;
364
+ if (!t)
365
+ return null;
366
+ let l;
367
+ e[0] !== t ? (l = pl(t), e[0] = t, e[1] = l) : l = e[1];
368
+ let n;
369
+ e[2] !== t.color ? (n = hl(t.color), e[2] = t.color, e[3] = n) : n = e[3];
370
+ const a = `Attempt status ${t.name}`;
371
+ let i;
372
+ e[4] !== n || e[5] !== a ? (i = /* @__PURE__ */ r(A, { as: "span", boxSize: "8px", borderRadius: "full", backgroundColor: n, flexShrink: 0, "aria-label": a, "data-testid": "workspace-attempt-status" }), e[4] = n, e[5] = a, e[6] = i) : i = e[6];
373
+ let o;
374
+ return e[7] !== l || e[8] !== i ? (o = /* @__PURE__ */ r(je, { content: l, children: i }), e[7] = l, e[8] = i, e[9] = o) : o = e[9], o;
375
+ }, yl = (s) => {
376
+ const e = E(7), {
377
+ diffAdditions: t,
378
+ diffDeletions: l
379
+ } = s;
380
+ if (typeof t != "number" || typeof l != "number")
381
+ return null;
382
+ let n;
383
+ e[0] !== t ? (n = /* @__PURE__ */ _(ae, { as: "span", textStyle: "label/XS/medium", color: "fg.success", children: [
384
+ "+",
385
+ t
386
+ ] }), e[0] = t, e[1] = n) : n = e[1];
387
+ let a;
388
+ e[2] !== l ? (a = /* @__PURE__ */ _(ae, { as: "span", textStyle: "label/XS/medium", color: "fg.error", children: [
389
+ "-",
390
+ l
391
+ ] }), e[2] = l, e[3] = a) : a = e[3];
392
+ let i;
393
+ return e[4] !== n || e[5] !== a ? (i = /* @__PURE__ */ _(Ve, { as: "span", gap: "3xs", flexShrink: 0, children: [
394
+ n,
395
+ a
396
+ ] }), e[4] = n, e[5] = a, e[6] = i) : i = e[6], i;
397
+ }, Sl = (s) => {
398
+ const e = E(5), {
399
+ hasMultipleWorkspaces: t,
400
+ onDropdownClick: l
401
+ } = s;
402
+ if (!t)
403
+ return null;
404
+ const n = l ? "pointer" : "default";
405
+ let a;
406
+ e[0] !== l ? (a = l ? (o) => it(o, l) : void 0, e[0] = l, e[1] = a) : a = e[1];
407
+ let i;
408
+ return e[2] !== n || e[3] !== a ? (i = /* @__PURE__ */ r(ne, { as: Pe, boxSize: "12px", color: "fg.muted", cursor: n, "aria-label": "Workspace selector", onClick: a }), e[2] = n, e[3] = a, e[4] = i) : i = e[4], i;
409
+ }, Vn = (s) => {
410
+ const e = E(27), {
411
+ workspaceType: t,
412
+ initializing: l,
413
+ label: n,
414
+ shorthand: a,
415
+ attemptStatus: i,
416
+ sessionStatus: o,
417
+ showLeadingSessionIndicator: c,
418
+ diffAdditions: d,
419
+ diffDeletions: h,
420
+ hasMultipleWorkspaces: m,
421
+ onClick: g,
422
+ onDropdownClick: u,
423
+ onSessionIndicatorClick: p
424
+ } = s, f = l === void 0 ? !1 : l, x = c === void 0 ? !0 : c, w = m === void 0 ? !1 : m, I = g || u || w ? "pointer" : "default";
425
+ let S;
426
+ e[0] !== g ? (S = g ? ($) => gl($, g) : void 0, e[0] = g, e[1] = S) : S = e[1];
427
+ let b;
428
+ e[2] !== p || e[3] !== o || e[4] !== x ? (b = x ? /* @__PURE__ */ r(bl, { sessionStatus: o, onSessionIndicatorClick: p }) : null, e[2] = p, e[3] = o, e[4] = x, e[5] = b) : b = e[5];
429
+ let v;
430
+ e[6] !== f || e[7] !== n || e[8] !== a || e[9] !== t ? (v = /* @__PURE__ */ r(vl, { workspaceType: t, initializing: f, label: n, shorthand: a }), e[6] = f, e[7] = n, e[8] = a, e[9] = t, e[10] = v) : v = e[10];
431
+ let y;
432
+ e[11] !== i ? (y = /* @__PURE__ */ r(xl, { attemptStatus: i }), e[11] = i, e[12] = y) : y = e[12];
433
+ let C;
434
+ e[13] !== d || e[14] !== h ? (C = /* @__PURE__ */ r(yl, { diffAdditions: d, diffDeletions: h }), e[13] = d, e[14] = h, e[15] = C) : C = e[15];
435
+ let V;
436
+ e[16] !== w || e[17] !== u ? (V = /* @__PURE__ */ r(Sl, { hasMultipleWorkspaces: w, onDropdownClick: u }), e[16] = w, e[17] = u, e[18] = V) : V = e[18];
437
+ let L;
438
+ return e[19] !== I || e[20] !== S || e[21] !== b || e[22] !== v || e[23] !== y || e[24] !== C || e[25] !== V ? (L = /* @__PURE__ */ _(Re, { as: "span", display: "inline-flex", gap: "2xs", alignItems: "center", minW: "0", maxW: "100%", variant: "subtle", ...fl, textStyle: "label/XS/medium", cursor: I, transition: "background-color 0.2s ease-in-out", onClick: S, "data-testid": "workspace-badge", children: [
439
+ b,
440
+ v,
441
+ y,
442
+ C,
443
+ V
444
+ ] }), e[19] = I, e[20] = S, e[21] = b, e[22] = v, e[23] = y, e[24] = C, e[25] = V, e[26] = L) : L = e[26], L;
445
+ }, Cl = (s, e) => s ? /* @__PURE__ */ r(ne, { as: e ? Gt : qt, boxSize: "14px", color: e ? "fg" : "fg.muted" }) : e ? /* @__PURE__ */ r(ne, { as: Kt, boxSize: "14px", color: "fg" }) : null, rt = (s, e) => s ? /* @__PURE__ */ r(ne, { as: _e(s.icon ?? null), boxSize: e, color: s.color ? `${s.color}.500` : "fg.muted" }) : null, Oe = (s) => {
446
+ const e = E(24), {
447
+ triggerLabel: t,
448
+ options: l,
449
+ selectedIds: n,
450
+ multiSelect: a,
451
+ disabled: i,
452
+ fullWidth: o,
453
+ triggerVariant: c,
454
+ triggerAriaLabel: d,
455
+ size: h,
456
+ onToggle: m
457
+ } = s, g = c === void 0 ? "button" : c, u = h === void 0 ? "sm" : h;
458
+ let p;
459
+ e[0] !== i || e[1] !== o || e[2] !== u || e[3] !== d || e[4] !== t || e[5] !== g ? (p = g === "icon" ? /* @__PURE__ */ r(ye, { "aria-label": d ?? "Open options", size: "2xs", variant: "ghost", disabled: i, children: t }) : /* @__PURE__ */ r($e, { size: u, borderWidth: "1px", borderStyle: "solid", borderColor: "border", disabled: i, textStyle: u === "xs" ? "label/XS" : "label/S/regular", width: o ? "100%" : void 0, _hover: {
460
+ bg: "bg.hover",
461
+ borderColor: "border.accent-light"
462
+ }, _active: {
463
+ bg: "bg.active",
464
+ borderColor: "border.accent-light"
465
+ }, _expanded: {
466
+ bg: "bg.active",
467
+ borderColor: "border.accent-light"
468
+ }, _focusVisible: {
469
+ borderColor: "border.accent-light",
470
+ outline: "none",
471
+ boxShadow: "none"
472
+ }, children: /* @__PURE__ */ _(D, { alignItems: "center", justifyContent: "space-between", gap: "xs", w: o ? "full" : void 0, children: [
473
+ /* @__PURE__ */ r(D, { alignItems: "center", gap: "xs", children: t }),
474
+ /* @__PURE__ */ r(Pe, { size: 14 })
475
+ ] }) }), e[0] = i, e[1] = o, e[2] = u, e[3] = d, e[4] = t, e[5] = g, e[6] = p) : p = e[6];
476
+ const f = p, x = !a;
477
+ let w;
478
+ e[7] !== f ? (w = /* @__PURE__ */ r(Ce.Trigger, { asChild: !0, children: f }), e[7] = f, e[8] = w) : w = e[8];
479
+ let I;
480
+ if (e[9] !== a || e[10] !== m || e[11] !== l || e[12] !== n) {
481
+ let v;
482
+ e[14] !== a || e[15] !== m || e[16] !== n ? (v = (y) => {
483
+ const C = n.includes(y.id);
484
+ return /* @__PURE__ */ r(Ce.Item, { value: y.id, disabled: y.disabled, asChild: !0, children: /* @__PURE__ */ r(el, { asChild: !0, variant: "full-width", role: a ? "menuitemcheckbox" : "menuitemradio", "aria-checked": C, id: y.id, label: y.name, icon: rt(y, "16px"), tooltip: y.description, disabled: y.disabled, isSelected: C, endContent: Cl(a, C), onActivate: () => m(y.id) }) }, y.id);
485
+ }, e[14] = a, e[15] = m, e[16] = n, e[17] = v) : v = e[17], I = l.map(v), e[9] = a, e[10] = m, e[11] = l, e[12] = n, e[13] = I;
486
+ } else
487
+ I = e[13];
488
+ let S;
489
+ e[18] !== I ? (S = /* @__PURE__ */ r(Ce.Positioner, { children: /* @__PURE__ */ r(Ce.Content, { children: I }) }), e[18] = I, e[19] = S) : S = e[19];
490
+ let b;
491
+ return e[20] !== x || e[21] !== w || e[22] !== S ? (b = /* @__PURE__ */ _(Ce.Root, { closeOnSelect: x, children: [
492
+ w,
493
+ S
494
+ ] }), e[20] = x, e[21] = w, e[22] = S, e[23] = b) : b = e[23], b;
495
+ }, kl = (s) => {
496
+ const e = E(33), {
497
+ id: t,
498
+ name: l,
499
+ description: n,
500
+ defaultValue: a,
501
+ options: i,
502
+ onChange: o,
503
+ readOnly: c,
504
+ presentation: d
505
+ } = s, h = d === void 0 ? "stacked" : d, [m, g] = Z(a);
506
+ let u, p;
507
+ e[0] !== a ? (u = () => {
508
+ g(a);
509
+ }, p = [a], e[0] = a, e[1] = u, e[2] = p) : (u = e[1], p = e[2]), le(u, p);
510
+ let f;
511
+ e[3] !== t || e[4] !== o ? (f = (V) => {
512
+ g(V), o(t, V);
513
+ }, e[3] = t, e[4] = o, e[5] = f) : f = e[5];
514
+ const x = f, w = h === "horizontal";
515
+ let I;
516
+ e[6] !== m || e[7] !== l || e[8] !== i ? (I = i.find((V) => V.id === m)?.name ?? l, e[6] = m, e[7] = l, e[8] = i, e[9] = I) : I = e[9];
517
+ const S = I;
518
+ if (w) {
519
+ let V;
520
+ e[10] !== m ? (V = m ? [m] : [], e[10] = m, e[11] = V) : V = e[11];
521
+ let L;
522
+ return e[12] !== i || e[13] !== c || e[14] !== x || e[15] !== S || e[16] !== V ? (L = /* @__PURE__ */ r(Oe, { triggerLabel: S, options: i, selectedIds: V, multiSelect: !1, disabled: c, onToggle: x }), e[12] = i, e[13] = c, e[14] = x, e[15] = S, e[16] = V, e[17] = L) : L = e[17], L;
523
+ }
524
+ let b;
525
+ if (e[18] !== m || e[19] !== i || e[20] !== c || e[21] !== x) {
526
+ let V;
527
+ e[23] !== m || e[24] !== c || e[25] !== x ? (V = (L) => /* @__PURE__ */ r($e, { size: "xs", variant: m === L.id ? "subtle" : "outline", disabled: L.disabled || c, _hover: {
528
+ bg: "bg.hover",
529
+ borderColor: "border.accent-light"
530
+ }, _active: {
531
+ bg: "bg.active",
532
+ borderColor: "border.accent-light"
533
+ }, _focusVisible: {
534
+ borderColor: "border.accent-light",
535
+ outline: "none",
536
+ boxShadow: "none"
537
+ }, onClick: () => x(L.id), children: L.name }, L.id), e[23] = m, e[24] = c, e[25] = x, e[26] = V) : V = e[26], b = i.map(V), e[18] = m, e[19] = i, e[20] = c, e[21] = x, e[22] = b;
538
+ } else
539
+ b = e[22];
540
+ let v;
541
+ e[27] !== b ? (v = /* @__PURE__ */ r(D, { gap: "xs", wrap: "wrap", children: b }), e[27] = b, e[28] = v) : v = e[28];
542
+ const y = v;
543
+ let C;
544
+ return e[29] !== n || e[30] !== l || e[31] !== y ? (C = /* @__PURE__ */ r(ce, { name: l, description: n, orientation: "stacked", children: y }), e[29] = n, e[30] = l, e[31] = y, e[32] = C) : C = e[32], C;
545
+ }, ot = ["top-left", "top", "top-right", "left", "center", "right", "bottom-left", "bottom", "bottom-right"], $n = (s) => typeof s == "string" && ot.includes(s), ee = (s) => {
546
+ const e = E(8);
547
+ let t, l, n;
548
+ e[0] !== s ? ({
549
+ children: l,
550
+ preserveWhitespace: n,
551
+ ...t
552
+ } = s, e[0] = s, e[1] = t, e[2] = l, e[3] = n) : (t = e[1], l = e[2], n = e[3]);
553
+ const i = (n === void 0 ? !1 : n) ? "pre-wrap" : void 0;
554
+ let o;
555
+ return e[4] !== t || e[5] !== l || e[6] !== i ? (o = /* @__PURE__ */ r(A, { minW: "0", textStyle: "label/S/regular", whiteSpace: i, ...t, children: l }), e[4] = t, e[5] = l, e[6] = i, e[7] = o) : o = e[7], o;
556
+ }, Il = (s) => {
557
+ const e = E(23), {
558
+ id: t,
559
+ name: l,
560
+ description: n,
561
+ defaultValue: a,
562
+ onChange: i,
563
+ readOnly: o,
564
+ fullWidth: c
565
+ } = s, [d, h] = Z(a);
566
+ let m, g;
567
+ e[0] !== a ? (m = () => {
568
+ h(a);
569
+ }, g = [a], e[0] = a, e[1] = m, e[2] = g) : (m = e[1], g = e[2]), le(m, g);
570
+ let u;
571
+ e[3] !== t || e[4] !== i ? (u = (b) => {
572
+ h(b), i(t, b);
573
+ }, e[3] = t, e[4] = i, e[5] = u) : u = e[5];
574
+ const p = u;
575
+ if (o) {
576
+ let b;
577
+ e[6] !== d ? (b = /* @__PURE__ */ r(ee, { children: d }), e[6] = d, e[7] = b) : b = e[7];
578
+ let v;
579
+ return e[8] !== n || e[9] !== c || e[10] !== l || e[11] !== b ? (v = /* @__PURE__ */ r(ce, { name: l, description: n, fullWidth: c, children: b }), e[8] = n, e[9] = c, e[10] = l, e[11] = b, e[12] = v) : v = e[12], v;
580
+ }
581
+ let f;
582
+ e[13] !== p || e[14] !== d ? (f = ot.map((b) => {
583
+ const v = b === d;
584
+ return /* @__PURE__ */ r(ye, { "aria-label": b, "aria-pressed": v, size: "2xs", variant: "ghost", bg: v ? "fg" : "bg", _hover: {
585
+ bg: v ? "fg" : "bg.muted"
586
+ }, borderRadius: "0", onClick: () => p(b), children: /* @__PURE__ */ r(A, { boxSize: "0.375rem", borderRadius: "full", bg: v ? "bg" : "fg.muted" }) }, b);
587
+ }), e[13] = p, e[14] = d, e[15] = f) : f = e[15];
588
+ let x;
589
+ e[16] !== f ? (x = /* @__PURE__ */ r(Ee, { templateColumns: "repeat(3, 1.5rem)", gap: "1px", width: "fit-content", bg: "border.subtle", p: "1px", borderRadius: "sm", overflow: "hidden", children: f }), e[16] = f, e[17] = x) : x = e[17];
590
+ const w = x, I = c ? "stacked" : "inline";
591
+ let S;
592
+ return e[18] !== n || e[19] !== w || e[20] !== l || e[21] !== I ? (S = /* @__PURE__ */ r(ce, { name: l, description: n, orientation: I, children: w }), e[18] = n, e[19] = w, e[20] = l, e[21] = I, e[22] = S) : S = e[22], S;
593
+ }, wl = (s) => {
594
+ const e = E(27), {
595
+ id: t,
596
+ name: l,
597
+ description: n,
598
+ defaultValue: a,
599
+ onChange: i,
600
+ readOnly: o,
601
+ hideLabel: c,
602
+ fullWidth: d,
603
+ size: h
604
+ } = s, m = h === void 0 ? "sm" : h, [g, u] = Z(a);
605
+ let p, f;
606
+ if (e[0] !== a ? (p = () => {
607
+ u(a);
608
+ }, f = [a], e[0] = a, e[1] = p, e[2] = f) : (p = e[1], f = e[2]), le(p, f), o) {
609
+ const b = String(g);
610
+ let v;
611
+ e[3] !== b ? (v = /* @__PURE__ */ r(ee, { children: b }), e[3] = b, e[4] = v) : v = e[4];
612
+ let y;
613
+ return e[5] !== n || e[6] !== d || e[7] !== c || e[8] !== l || e[9] !== v ? (y = /* @__PURE__ */ r(ce, { name: l, description: n, hideLabel: c, fullWidth: d, orientation: "inline", children: v }), e[5] = n, e[6] = d, e[7] = c, e[8] = l, e[9] = v, e[10] = y) : y = e[10], y;
614
+ }
615
+ let x;
616
+ e[11] !== l ? (x = {
617
+ "aria-label": l
618
+ }, e[11] = l, e[12] = x) : x = e[12];
619
+ let w;
620
+ e[13] !== t || e[14] !== i ? (w = (b) => {
621
+ u(b.checked), i(t, b.checked);
622
+ }, e[13] = t, e[14] = i, e[15] = w) : w = e[15];
623
+ let I;
624
+ e[16] !== m || e[17] !== x || e[18] !== w || e[19] !== g ? (I = /* @__PURE__ */ r(cl, { size: m, checked: g, inputProps: x, onCheckedChange: w }), e[16] = m, e[17] = x, e[18] = w, e[19] = g, e[20] = I) : I = e[20];
625
+ let S;
626
+ return e[21] !== n || e[22] !== d || e[23] !== c || e[24] !== l || e[25] !== I ? (S = /* @__PURE__ */ r(ce, { name: l, description: n, hideLabel: c, fullWidth: d, orientation: "inline", children: I }), e[21] = n, e[22] = d, e[23] = c, e[24] = l, e[25] = I, e[26] = S) : S = e[26], S;
627
+ }, Vl = (s) => {
628
+ const e = E(69), {
629
+ id: t,
630
+ defaultValue: l,
631
+ name: n,
632
+ onChange: a,
633
+ description: i,
634
+ readOnly: o,
635
+ hideLabel: c,
636
+ fullWidth: d,
637
+ size: h
638
+ } = s, m = c === void 0 ? !1 : c, g = d === void 0 ? !1 : d, u = h === void 0 ? "sm" : h, [p, f] = Z(l), [x, w] = Z(!1), I = me(null), S = me(null), b = me(null);
639
+ let v;
640
+ e[0] !== t || e[1] !== a ? (v = (Y) => {
641
+ b.current && clearTimeout(b.current), b.current = setTimeout(() => a(t, Y), 540);
642
+ }, e[0] = t, e[1] = a, e[2] = v) : v = e[2];
643
+ const y = v;
644
+ let C, V;
645
+ e[3] !== l ? (C = () => {
646
+ f(l);
647
+ }, V = [l], e[3] = l, e[4] = C, e[5] = V) : (C = e[4], V = e[5]), le(C, V);
648
+ let L, $;
649
+ e[6] !== x ? (L = () => {
650
+ if (!x)
651
+ return;
652
+ const Y = (fe) => {
653
+ const be = fe;
654
+ return I.current?.contains(be) || S.current?.contains(be);
655
+ }, Q = (fe) => {
656
+ Y(fe.target) || w(!1);
657
+ };
658
+ return document.addEventListener("focusin", Q, !0), document.addEventListener("pointerdown", Q, !0), document.addEventListener("click", Q, !0), () => {
659
+ document.removeEventListener("focusin", Q, !0), document.removeEventListener("pointerdown", Q, !0), document.removeEventListener("click", Q, !0);
660
+ };
661
+ }, $ = [x], e[6] = x, e[7] = L, e[8] = $) : (L = e[7], $ = e[8]), le(L, $);
662
+ let T;
663
+ e[9] !== y ? (T = (Y) => {
664
+ f(Y), y(Y);
665
+ }, e[9] = y, e[10] = T) : T = e[10];
666
+ const z = T;
667
+ let R;
668
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = (Y) => {
669
+ const Q = Y.currentTarget;
670
+ setTimeout(() => {
671
+ Q.contains(Q.ownerDocument.activeElement) || w(!1);
672
+ });
673
+ }, e[11] = R) : R = e[11];
674
+ const k = R;
675
+ if (o) {
676
+ let Y;
677
+ e[12] !== p ? (Y = /* @__PURE__ */ r(ee, { children: /* @__PURE__ */ _(D, { alignItems: "center", gap: "xs", children: [
678
+ /* @__PURE__ */ r(A, { boxSize: "0.75rem", borderRadius: "xs", bg: p }),
679
+ /* @__PURE__ */ r(A, { as: "span", children: p })
680
+ ] }) }), e[12] = p, e[13] = Y) : Y = e[13];
681
+ const Q = Y;
682
+ if (g) {
683
+ let xe;
684
+ e[14] !== i || e[15] !== m || e[16] !== n ? (xe = !m && /* @__PURE__ */ r(A, { mb: "xs", children: /* @__PURE__ */ r(X, { name: n, description: i }) }), e[14] = i, e[15] = m, e[16] = n, e[17] = xe) : xe = e[17];
685
+ let Le;
686
+ return e[18] !== xe || e[19] !== Q ? (Le = /* @__PURE__ */ _(A, { children: [
687
+ xe,
688
+ Q
689
+ ] }), e[18] = xe, e[19] = Q, e[20] = Le) : Le = e[20], Le;
690
+ }
691
+ let fe;
692
+ e[21] !== i || e[22] !== m || e[23] !== n ? (fe = !m && /* @__PURE__ */ r(X, { name: n, description: i }), e[21] = i, e[22] = m, e[23] = n, e[24] = fe) : fe = e[24];
693
+ let be;
694
+ return e[25] !== fe || e[26] !== Q ? (be = /* @__PURE__ */ r(A, { children: /* @__PURE__ */ _(D, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
695
+ fe,
696
+ Q
697
+ ] }) }), e[25] = fe, e[26] = Q, e[27] = be) : be = e[27], be;
698
+ }
699
+ let W;
700
+ e[28] !== p ? (W = dt(p), e[28] = p, e[29] = W) : W = e[29];
701
+ let O, N, F;
702
+ e[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = (Y) => w(Y.open), N = () => w(!1), F = () => w(!1), e[30] = O, e[31] = N, e[32] = F) : (O = e[30], N = e[31], F = e[32]);
703
+ let P;
704
+ e[33] !== z ? (P = (Y) => z(Y.value.toString("hex")), e[33] = z, e[34] = P) : P = e[34];
705
+ let M;
706
+ e[35] !== x || e[36] !== o || e[37] !== W || e[38] !== P ? (M = {
707
+ value: W,
708
+ open: x,
709
+ onOpenChange: O,
710
+ onFocusOutside: N,
711
+ onInteractOutside: F,
712
+ onBlur: k,
713
+ onValueChange: P,
714
+ disabled: o
715
+ }, e[35] = x, e[36] = o, e[37] = W, e[38] = P, e[39] = M) : M = e[39];
716
+ const U = M, j = g ? "100%" : "8.75rem";
717
+ let K;
718
+ e[40] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (K = /* @__PURE__ */ r(se.HiddenInput, {}), e[40] = K) : K = e[40];
719
+ let G;
720
+ e[41] !== n ? (G = /* @__PURE__ */ r(se.Label, { srOnly: !0, children: n }), e[41] = n, e[42] = G) : G = e[42];
721
+ let H;
722
+ e[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = () => w(!1), e[43] = H) : H = e[43];
723
+ let q;
724
+ e[44] !== o ? (q = /* @__PURE__ */ r(se.Input, { readOnly: o, onFocus: H }), e[44] = o, e[45] = q) : q = e[45];
725
+ let oe;
726
+ e[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oe = /* @__PURE__ */ r(se.Trigger, {}), e[46] = oe) : oe = e[46];
727
+ let ie;
728
+ e[47] !== q ? (ie = /* @__PURE__ */ _(se.Control, { children: [
729
+ q,
730
+ oe
731
+ ] }), e[47] = q, e[48] = ie) : ie = e[48];
732
+ let he, B;
733
+ e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (he = /* @__PURE__ */ r(se.Area, {}), B = /* @__PURE__ */ r(se.Sliders, {}), e[49] = he, e[50] = B) : (he = e[49], B = e[50]);
734
+ let J;
735
+ e[51] !== p ? (J = /* @__PURE__ */ r(se.Swatch, { value: p }), e[51] = p, e[52] = J) : J = e[52];
736
+ let te;
737
+ e[53] !== J || e[54] !== p ? (te = /* @__PURE__ */ r(se.Positioner, { children: /* @__PURE__ */ _(se.Content, { ref: S, onBlur: k, children: [
738
+ he,
739
+ B,
740
+ /* @__PURE__ */ r(se.SwatchGroup, { children: /* @__PURE__ */ r(se.SwatchTrigger, { value: p, children: J }) })
741
+ ] }) }), e[53] = J, e[54] = p, e[55] = te) : te = e[55];
742
+ let pe;
743
+ e[56] !== U || e[57] !== u || e[58] !== j || e[59] !== G || e[60] !== ie || e[61] !== te ? (pe = /* @__PURE__ */ _(se.Root, { ref: I, ...U, size: u, width: j, maxW: "100%", children: [
744
+ K,
745
+ G,
746
+ ie,
747
+ te
748
+ ] }), e[56] = U, e[57] = u, e[58] = j, e[59] = G, e[60] = ie, e[61] = te, e[62] = pe) : pe = e[62];
749
+ const ue = pe;
750
+ let ge;
751
+ return e[63] !== i || e[64] !== g || e[65] !== m || e[66] !== n || e[67] !== ue ? (ge = /* @__PURE__ */ r(A, { children: g ? /* @__PURE__ */ _(A, { children: [
752
+ !m && /* @__PURE__ */ r(A, { mb: "xs", children: /* @__PURE__ */ r(X, { name: n, description: i }) }),
753
+ ue
754
+ ] }) : /* @__PURE__ */ _(D, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
755
+ !m && /* @__PURE__ */ r(X, { name: n, description: i }),
756
+ ue
757
+ ] }) }), e[63] = i, e[64] = g, e[65] = m, e[66] = n, e[67] = ue, e[68] = ge) : ge = e[68], ge;
758
+ }, $l = (s) => {
759
+ const e = E(35), {
760
+ id: t,
761
+ defaultValue: l,
762
+ name: n,
763
+ min: a,
764
+ max: i,
765
+ onChange: o,
766
+ description: c,
767
+ readOnly: d,
768
+ hideLabel: h,
769
+ fullWidth: m,
770
+ size: g
771
+ } = s, u = h === void 0 ? !1 : h, p = m === void 0 ? !1 : m, f = g === void 0 ? "sm" : g, [x, w] = Z(l), I = me(null);
772
+ let S;
773
+ e[0] !== t || e[1] !== o ? (S = ($) => {
774
+ I.current && clearTimeout(I.current), I.current = setTimeout(() => o(t, $), 540);
775
+ }, e[0] = t, e[1] = o, e[2] = S) : S = e[2];
776
+ const b = S;
777
+ let v, y;
778
+ e[3] !== l ? (v = () => {
779
+ w(l);
780
+ }, y = [l], e[3] = l, e[4] = v, e[5] = y) : (v = e[4], y = e[5]), le(v, y);
781
+ let C;
782
+ e[6] !== b ? (C = ($) => {
783
+ w($), b($);
784
+ }, e[6] = b, e[7] = C) : C = e[7];
785
+ const V = C;
786
+ if (d) {
787
+ let $;
788
+ e[8] !== x ? ($ = /* @__PURE__ */ r(ee, { children: x }), e[8] = x, e[9] = $) : $ = e[9];
789
+ const T = $;
790
+ if (p) {
791
+ let k;
792
+ e[10] !== c || e[11] !== u || e[12] !== n ? (k = !u && /* @__PURE__ */ r(A, { mb: "xs", children: /* @__PURE__ */ r(X, { name: n, description: c }) }), e[10] = c, e[11] = u, e[12] = n, e[13] = k) : k = e[13];
793
+ let W;
794
+ return e[14] !== k || e[15] !== T ? (W = /* @__PURE__ */ _(A, { children: [
795
+ k,
796
+ T
797
+ ] }), e[14] = k, e[15] = T, e[16] = W) : W = e[16], W;
798
+ }
799
+ let z;
800
+ e[17] !== c || e[18] !== u || e[19] !== n ? (z = !u && /* @__PURE__ */ r(X, { name: n, description: c }), e[17] = c, e[18] = u, e[19] = n, e[20] = z) : z = e[20];
801
+ let R;
802
+ return e[21] !== z || e[22] !== T ? (R = /* @__PURE__ */ r(A, { children: /* @__PURE__ */ _(D, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
803
+ z,
804
+ T
805
+ ] }) }), e[21] = z, e[22] = T, e[23] = R) : R = e[23], R;
806
+ }
807
+ let L;
808
+ return e[24] !== c || e[25] !== p || e[26] !== V || e[27] !== u || e[28] !== i || e[29] !== a || e[30] !== n || e[31] !== d || e[32] !== f || e[33] !== x ? (L = /* @__PURE__ */ r(A, { children: p ? /* @__PURE__ */ _(A, { children: [
809
+ !u && /* @__PURE__ */ r(A, { mb: "xs", children: /* @__PURE__ */ r(X, { name: n, description: c }) }),
810
+ /* @__PURE__ */ r(Se, { className: "nodrag", readOnly: d, width: "100%", size: f, type: "date", placeholder: u ? n : void 0, value: x, min: a, max: i, onChange: ($) => V($.target.value), onKeyUp: Wl })
811
+ ] }) : /* @__PURE__ */ _(D, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
812
+ !u && /* @__PURE__ */ r(X, { name: n, description: c }),
813
+ /* @__PURE__ */ r(Se, { className: "nodrag", readOnly: d, width: "8.75rem", size: f, type: "date", placeholder: u ? n : void 0, value: x, min: a, max: i, onChange: ($) => V($.target.value), onKeyUp: Ll })
814
+ ] }) }), e[24] = c, e[25] = p, e[26] = V, e[27] = u, e[28] = i, e[29] = a, e[30] = n, e[31] = d, e[32] = f, e[33] = x, e[34] = L) : L = e[34], L;
815
+ };
816
+ function Wl(s) {
817
+ s.key === "Enter" && s.currentTarget.blur();
818
+ }
819
+ function Ll(s) {
820
+ s.key === "Enter" && s.currentTarget.blur();
821
+ }
822
+ const Tl = (s, e) => `${s.name}-${s.size.toString()}-${s.lastModified.toString()}-${e.toString()}`, zl = (s, e, t) => {
823
+ const l = t ? e.length : 0, n = s.map((a, i) => ({
824
+ id: Tl(a, l + i),
825
+ file: a,
826
+ status: "queued"
827
+ }));
828
+ return t ? [...e, ...n] : n.slice(0, 1);
829
+ }, Rl = (s) => {
830
+ const t = ["uploading", "error", "queued", "complete"].find((n) => s.some((a) => a.status === n)) ?? "empty", l = t === "empty" ? 0 : s.filter((n) => n.status === t).length;
831
+ return {
832
+ state: t,
833
+ count: l
834
+ };
835
+ }, _l = (s) => {
836
+ const e = E(21), {
837
+ values: t
838
+ } = s;
839
+ let l, n, a, i, o, c, d;
840
+ if (e[0] !== t) {
841
+ d = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
842
+ e: {
843
+ if (n = Rl(t), n.state === "empty") {
844
+ d = null;
845
+ break e;
846
+ }
847
+ l = n.count === 1 ? "file" : "files", i = `${n.count.toString()} ${l} queued`, o = `Uploading ${n.count.toString()} ${l}`, c = `${n.count.toString()} ${l} uploaded`, a = n.count.toString();
848
+ }
849
+ e[0] = t, e[1] = l, e[2] = n, e[3] = a, e[4] = i, e[5] = o, e[6] = c, e[7] = d;
850
+ } else
851
+ l = e[1], n = e[2], a = e[3], i = e[4], o = e[5], c = e[6], d = e[7];
852
+ if (d !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
853
+ return d;
854
+ const h = `${a} ${l} failed`;
855
+ let m;
856
+ e[8] !== i || e[9] !== o || e[10] !== c || e[11] !== h ? (m = {
857
+ queued: i,
858
+ uploading: o,
859
+ complete: c,
860
+ error: h,
861
+ empty: ""
862
+ }, e[8] = i, e[9] = o, e[10] = c, e[11] = h, e[12] = m) : m = e[12];
863
+ const g = m;
864
+ let u;
865
+ e[13] !== n.state ? (u = n.state === "uploading" ? /* @__PURE__ */ r(Je, { boxSize: "12px", borderWidth: "1px" }) : /* @__PURE__ */ r(ne, { as: n.state === "error" ? lt : n.state === "complete" ? tt : Yt, boxSize: "12px" }), e[13] = n.state, e[14] = u) : u = e[14];
866
+ const p = u, f = n.state === "error" ? "fg.error" : "fg.muted", x = g[n.state];
867
+ let w;
868
+ e[15] !== x ? (w = /* @__PURE__ */ r(ae, { textStyle: "label/XS/medium", children: x }), e[15] = x, e[16] = w) : w = e[16];
869
+ let I;
870
+ return e[17] !== p || e[18] !== w || e[19] !== f ? (I = /* @__PURE__ */ _(D, { alignItems: "center", gap: "2xs", color: f, children: [
871
+ p,
872
+ w
873
+ ] }), e[17] = p, e[18] = w, e[19] = f, e[20] = I) : I = e[20], I;
874
+ }, Ue = (s) => {
875
+ const e = E(14), {
876
+ readOnly: t,
877
+ values: l,
878
+ onRemove: n
879
+ } = s;
880
+ if (l.length === 0)
881
+ return null;
882
+ let a;
883
+ e[0] !== l ? (a = /* @__PURE__ */ r(_l, { values: l }), e[0] = l, e[1] = a) : a = e[1];
884
+ let i;
885
+ if (e[2] !== n || e[3] !== t || e[4] !== l) {
886
+ let d;
887
+ e[6] !== n || e[7] !== t ? (d = (h) => /* @__PURE__ */ r(nl, { file: h.file, disabled: t, removeLabel: `Remove ${h.file.name}`, onRemove: () => n(h.id) }, h.id), e[6] = n, e[7] = t, e[8] = d) : d = e[8], i = l.map(d), e[2] = n, e[3] = t, e[4] = l, e[5] = i;
888
+ } else
889
+ i = e[5];
890
+ let o;
891
+ e[9] !== i ? (o = /* @__PURE__ */ r(Ze, { gap: "2xs", children: i }), e[9] = i, e[10] = o) : o = e[10];
892
+ let c;
893
+ return e[11] !== a || e[12] !== o ? (c = /* @__PURE__ */ _(We, { gap: "2xs", minW: "0", children: [
894
+ a,
895
+ o
896
+ ] }), e[11] = a, e[12] = o, e[13] = c) : c = e[13], c;
897
+ }, Ol = (s) => {
898
+ const e = E(40), {
899
+ id: t,
900
+ name: l,
901
+ description: n,
902
+ defaultValue: a,
903
+ accept: i,
904
+ multiple: o,
905
+ uploadLabel: c,
906
+ onChange: d,
907
+ readOnly: h,
908
+ presentation: m
909
+ } = s, g = o === void 0 ? !0 : o, u = c === void 0 ? "Attach files" : c, p = m === void 0 ? "stacked" : m, [f, x] = Z(a), w = me(null);
910
+ let I, S;
911
+ e[0] !== a ? (I = () => {
912
+ x(a);
913
+ }, S = [a], e[0] = a, e[1] = I, e[2] = S) : (I = e[1], S = e[2]), le(I, S);
914
+ let b;
915
+ e[3] !== t || e[4] !== d ? (b = (O) => {
916
+ x(O), d(t, O);
917
+ }, e[3] = t, e[4] = d, e[5] = b) : b = e[5];
918
+ const v = b;
919
+ let y;
920
+ e[6] !== v || e[7] !== f ? (y = (O) => v(f.filter((N) => N.id !== O)), e[6] = v, e[7] = f, e[8] = y) : y = e[8];
921
+ const C = y;
922
+ let V;
923
+ e[9] !== h || e[10] !== u ? (V = h ? null : /* @__PURE__ */ _($e, { size: "xs", variant: "ghost", flexShrink: 0, onClick: () => w.current?.click(), children: [
924
+ /* @__PURE__ */ r(ne, { as: Xt, boxSize: "14px" }),
925
+ u
926
+ ] }), e[9] = h, e[10] = u, e[11] = V) : V = e[11];
927
+ const L = V;
928
+ let $;
929
+ e[12] !== v || e[13] !== g || e[14] !== f ? ($ = (O) => {
930
+ v(zl(Array.from(O.currentTarget.files ?? []), f, g)), O.currentTarget.value = "";
931
+ }, e[12] = v, e[13] = g, e[14] = f, e[15] = $) : $ = e[15];
932
+ let T;
933
+ e[16] !== i || e[17] !== g || e[18] !== $ ? (T = /* @__PURE__ */ r("input", { ref: w, hidden: !0, type: "file", accept: i, multiple: g, onChange: $ }), e[16] = i, e[17] = g, e[18] = $, e[19] = T) : T = e[19];
934
+ const z = T;
935
+ if (p === "horizontal") {
936
+ let O;
937
+ e[20] !== h || e[21] !== C || e[22] !== f ? (O = /* @__PURE__ */ r(Ue, { readOnly: h, values: f, onRemove: C }), e[20] = h, e[21] = C, e[22] = f, e[23] = O) : O = e[23];
938
+ let N;
939
+ return e[24] !== L || e[25] !== z || e[26] !== O ? (N = /* @__PURE__ */ _(D, { alignItems: "center", gap: "sm", minW: "0", width: "full", children: [
940
+ z,
941
+ L,
942
+ O
943
+ ] }), e[24] = L, e[25] = z, e[26] = O, e[27] = N) : N = e[27], N;
944
+ }
945
+ let R;
946
+ e[28] !== h || e[29] !== C || e[30] !== f ? (R = /* @__PURE__ */ r(Ue, { readOnly: h, values: f, onRemove: C }), e[28] = h, e[29] = C, e[30] = f, e[31] = R) : R = e[31];
947
+ let k;
948
+ e[32] !== L || e[33] !== z || e[34] !== R ? (k = /* @__PURE__ */ _(We, { alignItems: "start", gap: "xs", minW: "0", children: [
949
+ z,
950
+ L,
951
+ R
952
+ ] }), e[32] = L, e[33] = z, e[34] = R, e[35] = k) : k = e[35];
953
+ let W;
954
+ return e[36] !== n || e[37] !== l || e[38] !== k ? (W = /* @__PURE__ */ r(ce, { name: l, description: n, orientation: "stacked", children: k }), e[36] = n, e[37] = l, e[38] = k, e[39] = W) : W = e[39], W;
955
+ }, Al = (s) => {
956
+ const e = E(33), {
957
+ id: t,
958
+ defaultValue: l,
959
+ name: n,
960
+ onChange: a,
961
+ description: i,
962
+ readOnly: o,
963
+ hideLabel: c,
964
+ size: d
965
+ } = s, h = c === void 0 ? !1 : c, m = d === void 0 ? "sm" : d, [g, u] = Z(l), [p, f] = Z(!1), x = me(null);
966
+ let w;
967
+ e[0] !== t || e[1] !== a ? (w = (k) => {
968
+ x.current && clearTimeout(x.current), x.current = setTimeout(() => a(t, k), 540);
969
+ }, e[0] = t, e[1] = a, e[2] = w) : w = e[2];
970
+ const I = w;
971
+ let S, b;
972
+ e[3] !== l ? (S = () => {
973
+ u(l);
974
+ }, b = [l], e[3] = l, e[4] = S, e[5] = b) : (S = e[4], b = e[5]), le(S, b);
975
+ let v;
976
+ e[6] !== I ? (v = (k) => {
977
+ u(k), I(k);
978
+ }, e[6] = I, e[7] = v) : v = e[7];
979
+ const y = v;
980
+ let C;
981
+ e[8] !== o ? (C = () => {
982
+ o || f(!0);
983
+ }, e[8] = o, e[9] = C) : C = e[9];
984
+ const V = C;
985
+ let L;
986
+ e[10] !== g ? (L = () => {
987
+ g.trim().length === 0 && f(!1);
988
+ }, e[10] = g, e[11] = L) : L = e[11];
989
+ const $ = L;
990
+ let T;
991
+ e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = (k) => {
992
+ k.key === "Escape" && (f(!1), k.preventDefault());
993
+ }, e[12] = T) : T = e[12];
994
+ const z = T;
995
+ if (o) {
996
+ let k;
997
+ e[13] !== i || e[14] !== h || e[15] !== n ? (k = !h && /* @__PURE__ */ r(X, { name: n, description: i }), e[13] = i, e[14] = h, e[15] = n, e[16] = k) : k = e[16];
998
+ let W;
999
+ e[17] !== g ? (W = /* @__PURE__ */ r(ee, { preserveWhitespace: !0, children: g }), e[17] = g, e[18] = W) : W = e[18];
1000
+ let O;
1001
+ return e[19] !== W || e[20] !== k ? (O = /* @__PURE__ */ r(A, { position: "relative", flex: "1", minW: "12.5rem", children: /* @__PURE__ */ _(D, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
1002
+ k,
1003
+ W
1004
+ ] }) }), e[19] = W, e[20] = k, e[21] = O) : O = e[21], O;
1005
+ }
1006
+ let R;
1007
+ return e[22] !== i || e[23] !== $ || e[24] !== y || e[25] !== V || e[26] !== h || e[27] !== p || e[28] !== n || e[29] !== o || e[30] !== m || e[31] !== g ? (R = /* @__PURE__ */ r(A, { position: "relative", flex: "1", minW: "12.5rem", children: /* @__PURE__ */ r(A, { position: "relative", minHeight: "2rem", children: p ? /* @__PURE__ */ _(A, { position: "absolute", top: "0", left: "0", right: "0", zIndex: "10", bg: "bg", borderWidth: "1px", borderStyle: "solid", borderColor: "border", borderRadius: "lg", p: "2", transition: "border-color 0.2s ease-in-out", boxShadow: "none", _hover: {
1008
+ borderColor: "border.accent-light"
1009
+ }, _active: {
1010
+ borderColor: "border.accent-light"
1011
+ }, _focusWithin: {
1012
+ borderColor: "border.accent-light",
1013
+ boxShadow: "none"
1014
+ }, children: [
1015
+ !h && /* @__PURE__ */ r(A, { mb: "sm", children: /* @__PURE__ */ r(X, { name: n, description: i }) }),
1016
+ /* @__PURE__ */ r(et, { className: "nodrag", readOnly: o, width: "100%", size: m, placeholder: h ? n : void 0, value: g, onChange: (k) => y(k.target.value), onBlur: $, onKeyDown: z, rows: 3, resize: "vertical", autoFocus: !0 })
1017
+ ] }) : /* @__PURE__ */ _(D, { alignItems: "center", justifyContent: "space-between", height: "2rem", gap: "xs", children: [
1018
+ !h && /* @__PURE__ */ r(X, { name: n, description: i }),
1019
+ /* @__PURE__ */ r(Se, { className: "nodrag", readOnly: o, flex: "1", maxW: "12.5rem", size: m, type: "text", placeholder: h ? n : void 0, value: g, onClick: V, onChange: (k) => y(k.target.value), onKeyUp: El })
1020
+ ] }) }) }), e[22] = i, e[23] = $, e[24] = y, e[25] = V, e[26] = h, e[27] = p, e[28] = n, e[29] = o, e[30] = m, e[31] = g, e[32] = R) : R = e[32], R;
1021
+ };
1022
+ function El(s) {
1023
+ s.key === "Enter" && s.currentTarget.blur();
1024
+ }
1025
+ const Nl = (s) => {
1026
+ const e = E(28), {
1027
+ id: t,
1028
+ name: l,
1029
+ description: n,
1030
+ defaultValue: a,
1031
+ placeholder: i,
1032
+ onChange: o,
1033
+ readOnly: c,
1034
+ presentation: d,
1035
+ size: h
1036
+ } = s, m = d === void 0 ? "stacked" : d, g = h === void 0 ? "sm" : h, [u, p] = Z(a), [f, x] = Z(!1);
1037
+ let w, I;
1038
+ e[0] !== a ? (w = () => {
1039
+ p(a);
1040
+ }, I = [a], e[0] = a, e[1] = w, e[2] = I) : (w = e[1], I = e[2]), le(w, I);
1041
+ let S;
1042
+ e[3] !== t || e[4] !== o ? (S = (T) => {
1043
+ p(T), o(t, T);
1044
+ }, e[3] = t, e[4] = o, e[5] = S) : S = e[5];
1045
+ const b = S;
1046
+ let v;
1047
+ e[6] !== b || e[7] !== i || e[8] !== c ? (v = (T) => /* @__PURE__ */ r(A, { borderWidth: "1px", borderColor: "border", borderRadius: "xs", minH: "7rem", minW: "0", overflow: "visible", width: "full", children: /* @__PURE__ */ r(Jt, { defaultState: T, isEditable: !c, placeholder: i, scrollable: !1, onChange: b }) }), e[6] = b, e[7] = i, e[8] = c, e[9] = v) : v = e[9];
1048
+ const y = v;
1049
+ let C;
1050
+ e[10] !== n || e[11] !== l ? (C = /* @__PURE__ */ r(X, { name: l, description: n }), e[10] = n, e[11] = l, e[12] = C) : C = e[12];
1051
+ const V = C;
1052
+ if (m === "horizontal") {
1053
+ if (c) {
1054
+ let z;
1055
+ return e[13] !== u ? (z = /* @__PURE__ */ r(A, { position: "relative", flex: "1", minW: "12.5rem", children: /* @__PURE__ */ r(D, { alignItems: "center", minHeight: "2rem", children: /* @__PURE__ */ r(ee, { preserveWhitespace: !0, children: u }) }) }), e[13] = u, e[14] = z) : z = e[14], z;
1056
+ }
1057
+ let T;
1058
+ return e[15] !== b || e[16] !== y || e[17] !== f || e[18] !== l || e[19] !== g || e[20] !== u ? (T = /* @__PURE__ */ r(A, { position: "relative", flex: "1", minW: "12.5rem", children: /* @__PURE__ */ r(A, { position: "relative", minHeight: "2rem", children: f ? /* @__PURE__ */ r(A, { position: "absolute", top: "0", left: "0", right: "0", zIndex: "10", bg: "bg", borderWidth: "1px", borderColor: "border", borderRadius: "lg", p: "2", transition: "border-color 0.2s ease-in-out", _hover: {
1059
+ borderColor: "border.accent-light"
1060
+ }, _focusWithin: {
1061
+ borderColor: "border.accent-light"
1062
+ }, onKeyDown: (z) => {
1063
+ z.key === "Escape" && (x(!1), z.preventDefault());
1064
+ }, children: y(u) }) : /* @__PURE__ */ r(Se, { className: "nodrag", flex: "1", maxW: "12.5rem", size: g, type: "text", placeholder: l, value: u, onClick: () => {
1065
+ x(!0);
1066
+ }, onChange: (z) => b(z.target.value) }) }) }), e[15] = b, e[16] = y, e[17] = f, e[18] = l, e[19] = g, e[20] = u, e[21] = T) : T = e[21], T;
1067
+ }
1068
+ let L;
1069
+ e[22] !== y || e[23] !== u ? (L = y(u), e[22] = y, e[23] = u, e[24] = L) : L = e[24];
1070
+ let $;
1071
+ return e[25] !== V || e[26] !== L ? ($ = /* @__PURE__ */ _(We, { gap: "xs", minW: "0", width: "full", children: [
1072
+ V,
1073
+ L
1074
+ ] }), e[25] = V, e[26] = L, e[27] = $) : $ = e[27], $;
1075
+ }, Be = He.forwardRef(function(e, t) {
1076
+ const l = E(8);
1077
+ let n, a;
1078
+ l[0] !== e ? ({
1079
+ children: n,
1080
+ ...a
1081
+ } = e, l[0] = e, l[1] = n, l[2] = a) : (n = l[1], a = l[2]);
1082
+ let i;
1083
+ l[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ _(Ie.Control, { children: [
1084
+ /* @__PURE__ */ r(Ie.IncrementTrigger, {}),
1085
+ /* @__PURE__ */ r(Ie.DecrementTrigger, {})
1086
+ ] }), l[3] = i) : i = l[3];
1087
+ let o;
1088
+ return l[4] !== n || l[5] !== t || l[6] !== a ? (o = /* @__PURE__ */ _(Ie.Root, { ref: t, variant: "outline", ...a, children: [
1089
+ n,
1090
+ i
1091
+ ] }), l[4] = n, l[5] = t, l[6] = a, l[7] = o) : o = l[7], o;
1092
+ }), De = Ie.Input, st = He.forwardRef(function(e, t) {
1093
+ const l = E(9);
1094
+ let n, a;
1095
+ l[0] !== e ? ({
1096
+ children: n,
1097
+ ...a
1098
+ } = e, l[0] = e, l[1] = n, l[2] = a) : (n = l[1], a = l[2]);
1099
+ let i;
1100
+ l[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ r(ke.Track, { height: "2px", borderRadius: "0", bg: "bg.muted", children: /* @__PURE__ */ r(ke.Range, { bg: "fg" }) }), l[3] = i) : i = l[3];
1101
+ let o;
1102
+ l[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ _(ke.Control, { children: [
1103
+ i,
1104
+ /* @__PURE__ */ r(ke.Thumbs, { boxSize: "0.5rem", bg: "fg", borderWidth: "1px", borderColor: "bg", borderRadius: "none", boxShadow: "none", transition: "width 0.12s ease, height 0.12s ease, border-color 0.2s ease-in-out", _hover: {
1105
+ boxSize: "0.75rem",
1106
+ borderColor: "border.accent-light"
1107
+ }, _active: {
1108
+ boxSize: "0.875rem",
1109
+ borderColor: "border.accent-light"
1110
+ }, _focusVisible: {
1111
+ borderColor: "border.accent-light",
1112
+ outline: "none",
1113
+ boxShadow: "none"
1114
+ } })
1115
+ ] }), l[4] = o) : o = l[4];
1116
+ let c;
1117
+ return l[5] !== n || l[6] !== t || l[7] !== a ? (c = /* @__PURE__ */ _(ke.Root, { ref: t, variant: "solid", ...a, children: [
1118
+ o,
1119
+ n
1120
+ ] }), l[5] = n, l[6] = t, l[7] = a, l[8] = c) : c = l[8], c;
1121
+ }), at = (s) => {
1122
+ const e = E(46), {
1123
+ id: t,
1124
+ defaultValue: l,
1125
+ name: n,
1126
+ step: a,
1127
+ min: i,
1128
+ max: o,
1129
+ onChange: c,
1130
+ description: d,
1131
+ readOnly: h,
1132
+ hideLabel: m,
1133
+ hideSlider: g,
1134
+ fullWidth: u,
1135
+ size: p
1136
+ } = s, f = a === void 0 ? 1 : a, x = m === void 0 ? !1 : m, w = g === void 0 ? !1 : g, I = u === void 0 ? !1 : u, S = p === void 0 ? "sm" : p, [b, v] = Z(l), C = i !== void 0 && o !== void 0 && !w, V = I && !C, L = me(null);
1137
+ let $;
1138
+ e[0] !== t || e[1] !== c ? ($ = (N) => {
1139
+ L.current && clearTimeout(L.current), L.current = setTimeout(() => c(t, N), 540);
1140
+ }, e[0] = t, e[1] = c, e[2] = $) : $ = e[2];
1141
+ const T = $;
1142
+ let z, R;
1143
+ if (e[3] !== l ? (z = () => {
1144
+ v(l);
1145
+ }, R = [l], e[3] = l, e[4] = z, e[5] = R) : (z = e[4], R = e[5]), le(z, R), h) {
1146
+ let N;
1147
+ e[6] !== b ? (N = /* @__PURE__ */ r(ee, { children: b }), e[6] = b, e[7] = N) : N = e[7];
1148
+ const F = N;
1149
+ if (I) {
1150
+ let U;
1151
+ e[8] !== d || e[9] !== x || e[10] !== n ? (U = !x && /* @__PURE__ */ r(A, { mb: "xs", children: /* @__PURE__ */ r(X, { name: n, description: d }) }), e[8] = d, e[9] = x, e[10] = n, e[11] = U) : U = e[11];
1152
+ let j;
1153
+ return e[12] !== U || e[13] !== F ? (j = /* @__PURE__ */ _(A, { children: [
1154
+ U,
1155
+ F
1156
+ ] }), e[12] = U, e[13] = F, e[14] = j) : j = e[14], j;
1157
+ }
1158
+ let P;
1159
+ e[15] !== d || e[16] !== x || e[17] !== n ? (P = !x && /* @__PURE__ */ r(X, { name: n, description: d }), e[15] = d, e[16] = x, e[17] = n, e[18] = P) : P = e[18];
1160
+ let M;
1161
+ return e[19] !== P || e[20] !== F ? (M = /* @__PURE__ */ r(A, { children: /* @__PURE__ */ _(D, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
1162
+ P,
1163
+ F
1164
+ ] }) }), e[19] = P, e[20] = F, e[21] = M) : M = e[21], M;
1165
+ }
1166
+ let k;
1167
+ e[22] !== d || e[23] !== x || e[24] !== o || e[25] !== i || e[26] !== n || e[27] !== h || e[28] !== T || e[29] !== S || e[30] !== f || e[31] !== V || e[32] !== b ? (k = V ? /* @__PURE__ */ _(A, { children: [
1168
+ !x && /* @__PURE__ */ r(A, { mb: "xs", children: /* @__PURE__ */ r(X, { name: n, description: d }) }),
1169
+ /* @__PURE__ */ r(Be, { disabled: h, width: "100%", size: S, value: `${b}`, step: f, min: i, max: o, onValueChange: (N) => {
1170
+ const F = Number.isNaN(N.valueAsNumber) ? i ?? 0 : N.valueAsNumber;
1171
+ v(F), T(F);
1172
+ }, children: /* @__PURE__ */ r(De, { className: "nodrag", readOnly: h, placeholder: x ? n : void 0, onKeyUp: Pl }) })
1173
+ ] }) : /* @__PURE__ */ _(D, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
1174
+ !x && /* @__PURE__ */ r(X, { name: n, description: d }),
1175
+ /* @__PURE__ */ r(Be, { disabled: h, width: "5rem", size: S, value: `${b}`, step: f, min: i, max: o, onValueChange: (N) => {
1176
+ const F = Number.isNaN(N.valueAsNumber) ? i ?? 0 : N.valueAsNumber;
1177
+ v(F), T(F);
1178
+ }, children: /* @__PURE__ */ r(De, { className: "nodrag", readOnly: h, placeholder: x ? n : void 0, onKeyUp: jl }) })
1179
+ ] }), e[22] = d, e[23] = x, e[24] = o, e[25] = i, e[26] = n, e[27] = h, e[28] = T, e[29] = S, e[30] = f, e[31] = V, e[32] = b, e[33] = k) : k = e[33];
1180
+ let W;
1181
+ e[34] !== t || e[35] !== o || e[36] !== i || e[37] !== c || e[38] !== h || e[39] !== C || e[40] !== f || e[41] !== b ? (W = C && /* @__PURE__ */ r(st, { disabled: h, value: [b], step: f, min: i, max: o, onValueChange: (N) => {
1182
+ v(N.value[0]);
1183
+ }, onValueChangeEnd: (N) => {
1184
+ c(t, N.value[0]);
1185
+ } }), e[34] = t, e[35] = o, e[36] = i, e[37] = c, e[38] = h, e[39] = C, e[40] = f, e[41] = b, e[42] = W) : W = e[42];
1186
+ let O;
1187
+ return e[43] !== k || e[44] !== W ? (O = /* @__PURE__ */ _(A, { children: [
1188
+ k,
1189
+ W
1190
+ ] }), e[43] = k, e[44] = W, e[45] = O) : O = e[45], O;
1191
+ };
1192
+ function Pl(s) {
1193
+ s.key === "Enter" && s.currentTarget.blur();
1194
+ }
1195
+ function jl(s) {
1196
+ s.key === "Enter" && s.currentTarget.blur();
1197
+ }
1198
+ const we = (s, e, t) => {
1199
+ const l = Math.min(e, t), n = Math.max(e, t);
1200
+ return s < l ? l : s > n ? n : s;
1201
+ }, Me = (s, e, t = 0) => {
1202
+ if (!(e > 0)) return s;
1203
+ const l = Math.round((s - t) / e);
1204
+ return t + l * e;
1205
+ }, Ge = (s, e) => {
1206
+ const t = Number.isInteger(s) ? `${s}` : `${Number(s.toFixed(3))}`;
1207
+ return e ? `${t}${e}` : t;
1208
+ }, Te = (s, e, t, l) => {
1209
+ const n = we(s[0], e, t), a = we(s[1], e, t);
1210
+ let i = Math.min(n, a), o = Math.max(n, a);
1211
+ return l && l > 0 && (i = we(Me(i, l, e), e, t), o = we(Me(o, l, e), e, t)), [i, o];
1212
+ }, Hl = (s) => {
1213
+ const e = E(4), {
1214
+ count: t
1215
+ } = s;
1216
+ if (!t || t < 2)
1217
+ return null;
1218
+ let l;
1219
+ e[0] !== t ? (l = Array.from({
1220
+ length: t
1221
+ }, (i, o) => o / (t - 1)), e[0] = t, e[1] = l) : l = e[1];
1222
+ const n = l;
1223
+ let a;
1224
+ return e[2] !== n ? (a = /* @__PURE__ */ r(D, { justifyContent: "space-between", mt: "2xs", "aria-hidden": "true", children: n.map(Fl) }), e[2] = n, e[3] = a) : a = e[3], a;
1225
+ };
1226
+ function Fl(s) {
1227
+ return /* @__PURE__ */ r(A, { width: "1px", height: "0.375rem", bg: "border.subtle" }, s);
1228
+ }
1229
+ const Ul = (s) => {
1230
+ const e = E(71), {
1231
+ id: t,
1232
+ name: l,
1233
+ description: n,
1234
+ defaultValue: a,
1235
+ min: i,
1236
+ max: o,
1237
+ step: c,
1238
+ unit: d,
1239
+ markerCount: h,
1240
+ onChange: m,
1241
+ readOnly: g,
1242
+ fullWidth: u,
1243
+ presentation: p
1244
+ } = s, f = c === void 0 ? 1 : c, x = p === void 0 ? "stacked" : p;
1245
+ let w;
1246
+ e[0] !== a || e[1] !== o || e[2] !== i || e[3] !== f ? (w = () => Te(a, i, o, f), e[0] = a, e[1] = o, e[2] = i, e[3] = f, e[4] = w) : w = e[4];
1247
+ const [I, S] = Z(w);
1248
+ let b, v;
1249
+ e[5] !== a || e[6] !== o || e[7] !== i || e[8] !== f ? (b = () => {
1250
+ S(Te(a, i, o, f));
1251
+ }, v = [a, i, o, f], e[5] = a, e[6] = o, e[7] = i, e[8] = f, e[9] = b, e[10] = v) : (b = e[9], v = e[10]), le(b, v);
1252
+ let y;
1253
+ e[11] !== d || e[12] !== I[0] ? (y = Ge(I[0], d), e[11] = d, e[12] = I[0], e[13] = y) : y = e[13];
1254
+ let C;
1255
+ e[14] !== d || e[15] !== I[1] ? (C = Ge(I[1], d), e[14] = d, e[15] = I[1], e[16] = C) : C = e[16];
1256
+ const V = `${y} – ${C}`, L = x === "horizontal";
1257
+ if (g) {
1258
+ if (L) {
1259
+ let U;
1260
+ return e[17] !== V ? (U = /* @__PURE__ */ r(ee, { children: V }), e[17] = V, e[18] = U) : U = e[18], U;
1261
+ }
1262
+ let P;
1263
+ e[19] !== V ? (P = /* @__PURE__ */ r(ee, { children: V }), e[19] = V, e[20] = P) : P = e[20];
1264
+ let M;
1265
+ return e[21] !== n || e[22] !== u || e[23] !== l || e[24] !== P ? (M = /* @__PURE__ */ r(ce, { name: l, description: n, fullWidth: u, children: P }), e[21] = n, e[22] = u, e[23] = l, e[24] = P, e[25] = M) : M = e[25], M;
1266
+ }
1267
+ let $;
1268
+ e[26] !== V ? ($ = /* @__PURE__ */ r(ae, { textStyle: "label/S/regular", color: "fg.muted", whiteSpace: "nowrap", children: V }), e[26] = V, e[27] = $) : $ = e[27];
1269
+ const T = $;
1270
+ let z;
1271
+ e[28] !== o || e[29] !== i || e[30] !== f ? (z = (P) => S(Te(P.value, i, o, f)), e[28] = o, e[29] = i, e[30] = f, e[31] = z) : z = e[31];
1272
+ let R;
1273
+ e[32] !== t || e[33] !== o || e[34] !== i || e[35] !== m || e[36] !== f ? (R = (P) => {
1274
+ const M = Te(P.value, i, o, f);
1275
+ S(M), m(t, M);
1276
+ }, e[32] = t, e[33] = o, e[34] = i, e[35] = m, e[36] = f, e[37] = R) : R = e[37];
1277
+ let k;
1278
+ e[38] !== o || e[39] !== i || e[40] !== f || e[41] !== z || e[42] !== R || e[43] !== I ? (k = /* @__PURE__ */ r(st, { size: "sm", value: I, min: i, max: o, step: f, onValueChange: z, onValueChangeEnd: R }), e[38] = o, e[39] = i, e[40] = f, e[41] = z, e[42] = R, e[43] = I, e[44] = k) : k = e[44];
1279
+ let W;
1280
+ e[45] !== h ? (W = /* @__PURE__ */ r(Hl, { count: h }), e[45] = h, e[46] = W) : W = e[46];
1281
+ let O;
1282
+ e[47] !== k || e[48] !== W ? (O = /* @__PURE__ */ _(A, { children: [
1283
+ k,
1284
+ W
1285
+ ] }), e[47] = k, e[48] = W, e[49] = O) : O = e[49];
1286
+ const N = O;
1287
+ if (L) {
1288
+ let P;
1289
+ e[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = {
1290
+ placement: "bottom-start",
1291
+ offset: {
1292
+ mainAxis: 4
1293
+ }
1294
+ }, e[50] = P) : P = e[50];
1295
+ const M = `${l}: ${V}`;
1296
+ let U;
1297
+ e[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ r(ne, { as: Pe, boxSize: "14px" }), e[51] = U) : U = e[51];
1298
+ let j;
1299
+ e[52] !== V || e[53] !== M ? (j = /* @__PURE__ */ r(de.Trigger, { asChild: !0, children: /* @__PURE__ */ _($e, { size: "xs", variant: "ghost", "aria-label": M, children: [
1300
+ V,
1301
+ U
1302
+ ] }) }), e[52] = V, e[53] = M, e[54] = j) : j = e[54];
1303
+ let K;
1304
+ e[55] !== l ? (K = /* @__PURE__ */ r(ae, { textStyle: "label/S/medium", children: l }), e[55] = l, e[56] = K) : K = e[56];
1305
+ let G;
1306
+ e[57] !== K || e[58] !== T ? (G = /* @__PURE__ */ _(D, { alignItems: "center", justifyContent: "space-between", gap: "xs", children: [
1307
+ K,
1308
+ T
1309
+ ] }), e[57] = K, e[58] = T, e[59] = G) : G = e[59];
1310
+ let H;
1311
+ e[60] !== N || e[61] !== G ? (H = /* @__PURE__ */ r(de.Positioner, { children: /* @__PURE__ */ r(de.Content, { width: "60", padding: "sm", background: "bg", children: /* @__PURE__ */ _(We, { gap: "xs", children: [
1312
+ G,
1313
+ N
1314
+ ] }) }) }), e[60] = N, e[61] = G, e[62] = H) : H = e[62];
1315
+ let q;
1316
+ return e[63] !== j || e[64] !== H ? (q = /* @__PURE__ */ _(de.Root, { positioning: P, children: [
1317
+ j,
1318
+ H
1319
+ ] }), e[63] = j, e[64] = H, e[65] = q) : q = e[65], q;
1320
+ }
1321
+ let F;
1322
+ return e[66] !== n || e[67] !== l || e[68] !== N || e[69] !== T ? (F = /* @__PURE__ */ r(ce, { name: l, description: n, orientation: "stacked", labelTrailing: T, children: N }), e[66] = n, e[67] = l, e[68] = N, e[69] = T, e[70] = F) : F = e[70], F;
1323
+ }, Bl = (s) => /* @__PURE__ */ r(ne, { as: _e(s.icon), boxSize: "14px", color: s.color ? `${s.color}.500` : "fg.muted" }), Dl = (s) => window.open(s, "_blank", "noreferrer"), Ml = (s) => {
1324
+ navigator.clipboard?.writeText(s).catch(() => {
1325
+ });
1326
+ }, Gl = (s) => {
1327
+ const e = E(18), {
1328
+ option: t,
1329
+ onOpenResource: l,
1330
+ onRemove: n
1331
+ } = s;
1332
+ if (!!!(t.href || t.ref || t.copyText)) {
1333
+ let u;
1334
+ return e[0] !== t.name ? (u = /* @__PURE__ */ r(il, { children: t.name }), e[0] = t.name, e[1] = u) : u = e[1], u;
1335
+ }
1336
+ let i;
1337
+ e[2] !== l || e[3] !== t.copyText || e[4] !== t.href || e[5] !== t.ref ? (i = t.href && t.href.length > 0 ? () => Dl(t.href) : t.ref && l ? () => l(t.ref) : t.copyText ? () => Ml(t.copyText) : void 0, e[2] = l, e[3] = t.copyText, e[4] = t.href, e[5] = t.ref, e[6] = i) : i = e[6];
1338
+ const o = i, c = t.name;
1339
+ let d;
1340
+ e[7] !== t ? (d = Bl(t), e[7] = t, e[8] = d) : d = e[8];
1341
+ let h;
1342
+ e[9] !== o ? (h = o ? () => o() : void 0, e[9] = o, e[10] = h) : h = e[10];
1343
+ let m;
1344
+ e[11] !== n ? (m = n ? () => n() : void 0, e[11] = n, e[12] = m) : m = e[12];
1345
+ let g;
1346
+ return e[13] !== t.name || e[14] !== d || e[15] !== h || e[16] !== m ? (g = /* @__PURE__ */ r(Zt, { fileName: c, icon: d, size: "md", onSelect: h, onRemove: m }), e[13] = t.name, e[14] = d, e[15] = h, e[16] = m, e[17] = g) : g = e[17], g;
1347
+ }, qe = (s) => {
1348
+ const e = E(11), {
1349
+ options: t,
1350
+ onOpenResource: l,
1351
+ onRemove: n,
1352
+ emptyText: a
1353
+ } = s;
1354
+ if (t.length === 0) {
1355
+ const c = a ?? "None";
1356
+ let d;
1357
+ return e[0] !== c ? (d = /* @__PURE__ */ r(ae, { textStyle: "label/S/regular", color: "fg.muted", children: c }), e[0] = c, e[1] = d) : d = e[1], d;
1358
+ }
1359
+ let i;
1360
+ if (e[2] !== l || e[3] !== n || e[4] !== t) {
1361
+ let c;
1362
+ e[6] !== l || e[7] !== n ? (c = (d) => /* @__PURE__ */ r(Gl, { option: d, onOpenResource: l, onRemove: n ? () => n(d.id) : void 0 }, d.id), e[6] = l, e[7] = n, e[8] = c) : c = e[8], i = t.map(c), e[2] = l, e[3] = n, e[4] = t, e[5] = i;
1363
+ } else
1364
+ i = e[5];
1365
+ let o;
1366
+ return e[9] !== i ? (o = /* @__PURE__ */ r(Ze, { gap: "2xs", children: i }), e[9] = i, e[10] = o) : o = e[10], o;
1367
+ }, ql = (s) => Array.isArray(s) ? s : s ? [s] : [], Kl = (s, e) => s.map((t) => e.find((l) => l.id === t)).filter((t) => !!t), Ae = (s) => {
1368
+ const e = E(11), {
1369
+ fullWidth: t,
1370
+ label: l,
1371
+ control: n,
1372
+ presentation: a
1373
+ } = s;
1374
+ if (a === "horizontal") {
1375
+ let o;
1376
+ return e[0] !== n || e[1] !== l ? (o = /* @__PURE__ */ _(We, { gap: "2xs", alignItems: "start", minW: "0", children: [
1377
+ l,
1378
+ n
1379
+ ] }), e[0] = n, e[1] = l, e[2] = o) : o = e[2], o;
1380
+ }
1381
+ if (t) {
1382
+ let o;
1383
+ e[3] !== l ? (o = /* @__PURE__ */ r(A, { mb: "xs", children: l }), e[3] = l, e[4] = o) : o = e[4];
1384
+ let c;
1385
+ return e[5] !== n || e[6] !== o ? (c = /* @__PURE__ */ _(A, { children: [
1386
+ o,
1387
+ n
1388
+ ] }), e[5] = n, e[6] = o, e[7] = c) : c = e[7], c;
1389
+ }
1390
+ let i;
1391
+ return e[8] !== n || e[9] !== l ? (i = /* @__PURE__ */ _(D, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
1392
+ l,
1393
+ n
1394
+ ] }), e[8] = n, e[9] = l, e[10] = i) : i = e[10], i;
1395
+ }, Ke = (s) => {
1396
+ const e = E(9), {
1397
+ triggerLabel: t,
1398
+ options: l,
1399
+ selectedIds: n,
1400
+ multiSelect: a,
1401
+ triggerVariant: i,
1402
+ triggerAriaLabel: o,
1403
+ size: c,
1404
+ onToggle: d
1405
+ } = s;
1406
+ let h;
1407
+ return e[0] !== a || e[1] !== d || e[2] !== l || e[3] !== n || e[4] !== c || e[5] !== o || e[6] !== t || e[7] !== i ? (h = /* @__PURE__ */ r(Oe, { triggerLabel: t, options: l, selectedIds: n, multiSelect: a, triggerVariant: i, triggerAriaLabel: o, size: c, onToggle: d }), e[0] = a, e[1] = d, e[2] = l, e[3] = n, e[4] = c, e[5] = o, e[6] = t, e[7] = i, e[8] = h) : h = e[8], h;
1408
+ }, Xl = (s) => {
1409
+ const e = E(19), {
1410
+ id: t,
1411
+ name: l,
1412
+ description: n,
1413
+ defaultValue: a,
1414
+ options: i,
1415
+ onChange: o,
1416
+ onOpenResource: c,
1417
+ readOnly: d,
1418
+ editable: h,
1419
+ multiSelect: m,
1420
+ placeholder: g,
1421
+ emptyText: u,
1422
+ fullWidth: p,
1423
+ presentation: f,
1424
+ size: x
1425
+ } = s, w = h === void 0 ? !1 : h, I = m === void 0 ? !1 : m, S = p === void 0 ? !1 : p, b = f === void 0 ? "stacked" : f, v = x === void 0 ? "sm" : x, [y, C] = Z(a), V = me(null);
1426
+ let L, $;
1427
+ e[0] !== a ? (L = () => {
1428
+ C(a);
1429
+ }, $ = [a], e[0] = a, e[1] = L, e[2] = $) : (L = e[1], $ = e[2]), le(L, $);
1430
+ const T = (H) => {
1431
+ V.current && clearTimeout(V.current), o(t, H);
1432
+ }, z = (H) => {
1433
+ V.current && clearTimeout(V.current), V.current = setTimeout(() => o(t, H), 540);
1434
+ }, R = ql(y), k = Kl(R, i), W = w && !d, O = b === "horizontal";
1435
+ let N;
1436
+ e[3] !== n || e[4] !== l || e[5] !== O ? (N = /* @__PURE__ */ r(X, { name: l, description: n, compact: O }), e[3] = n, e[4] = l, e[5] = O, e[6] = N) : N = e[6];
1437
+ const F = N;
1438
+ if (!W)
1439
+ return /* @__PURE__ */ r(Ae, { fullWidth: S, label: F, presentation: b, control: /* @__PURE__ */ r(qe, { options: k, onOpenResource: c, emptyText: u }) });
1440
+ const P = (H) => {
1441
+ if (I) {
1442
+ const oe = R.includes(H) ? R.filter((ie) => ie !== H) : [...R, H];
1443
+ C(oe), z(oe);
1444
+ return;
1445
+ }
1446
+ const q = R.includes(H) ? "" : H;
1447
+ C(q), T(q);
1448
+ }, M = (H) => {
1449
+ const q = R.filter((oe) => oe !== H);
1450
+ C(q), z(q);
1451
+ };
1452
+ if (I) {
1453
+ let H;
1454
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ r(ne, { as: Qt, boxSize: "12px" }), e[7] = H) : H = e[7];
1455
+ const q = /* @__PURE__ */ _(D, { gap: "2xs", alignItems: "center", flexWrap: "wrap", minW: "0", children: [
1456
+ k.length > 0 ? /* @__PURE__ */ r(qe, { options: k, onOpenResource: c, onRemove: M, emptyText: u }) : null,
1457
+ /* @__PURE__ */ r(Ke, { triggerLabel: H, options: i, selectedIds: R, multiSelect: !0, triggerVariant: "icon", triggerAriaLabel: g ?? `Add ${l}`, size: v, onToggle: P })
1458
+ ] });
1459
+ return /* @__PURE__ */ r(Ae, { fullWidth: S, label: F, control: q, presentation: b });
1460
+ }
1461
+ const U = k[0], j = U ? /* @__PURE__ */ _(D, { align: "center", gap: "2xs", minW: "0", children: [
1462
+ /* @__PURE__ */ r(ne, { as: _e(U.icon), boxSize: "14px", color: U.color ? `${U.color}.500` : "fg.muted" }),
1463
+ U.name
1464
+ ] }) : g ?? "Select";
1465
+ let K;
1466
+ e[8] !== i || e[9] !== R || e[10] !== v || e[11] !== P || e[12] !== j ? (K = /* @__PURE__ */ r(Ke, { triggerLabel: j, options: i, selectedIds: R, multiSelect: !1, size: v, onToggle: P }), e[8] = i, e[9] = R, e[10] = v, e[11] = P, e[12] = j, e[13] = K) : K = e[13];
1467
+ let G;
1468
+ return e[14] !== S || e[15] !== F || e[16] !== b || e[17] !== K ? (G = /* @__PURE__ */ r(Ae, { fullWidth: S, label: F, presentation: b, control: K }), e[14] = S, e[15] = F, e[16] = b, e[17] = K, e[18] = G) : G = e[18], G;
1469
+ }, Yl = (s) => {
1470
+ const e = E(42), {
1471
+ id: t,
1472
+ name: l,
1473
+ description: n,
1474
+ defaultValue: a,
1475
+ options: i,
1476
+ variant: o,
1477
+ onChange: c,
1478
+ readOnly: d,
1479
+ fullWidth: h,
1480
+ presentation: m
1481
+ } = s, g = o === void 0 ? "default" : o, u = m === void 0 ? "stacked" : m, [p, f] = Z(a);
1482
+ let x, w;
1483
+ e[0] !== a ? (x = () => {
1484
+ f(a);
1485
+ }, w = [a], e[0] = a, e[1] = x, e[2] = w) : (x = e[1], w = e[2]), le(x, w);
1486
+ let I;
1487
+ e[3] !== t || e[4] !== c ? (I = (k) => {
1488
+ f(k), c(t, k);
1489
+ }, e[3] = t, e[4] = c, e[5] = I) : I = e[5];
1490
+ const S = I;
1491
+ let b;
1492
+ e[6] !== i || e[7] !== p ? (b = i.find((k) => k.id === p)?.name ?? p, e[6] = i, e[7] = p, e[8] = b) : b = e[8];
1493
+ const v = b, y = u === "horizontal";
1494
+ if (d) {
1495
+ let k;
1496
+ e[9] !== v ? (k = /* @__PURE__ */ r(ee, { children: v }), e[9] = v, e[10] = k) : k = e[10];
1497
+ let W;
1498
+ return e[11] !== n || e[12] !== h || e[13] !== y || e[14] !== l || e[15] !== k ? (W = /* @__PURE__ */ r(ce, { name: l, description: n, hideLabel: y, fullWidth: h, children: k }), e[11] = n, e[12] = h, e[13] = y, e[14] = l, e[15] = k, e[16] = W) : W = e[16], W;
1499
+ }
1500
+ if (y) {
1501
+ let k;
1502
+ e[17] !== p ? (k = [p], e[17] = p, e[18] = k) : k = e[18];
1503
+ let W;
1504
+ return e[19] !== i || e[20] !== S || e[21] !== v || e[22] !== k ? (W = /* @__PURE__ */ r(Oe, { triggerLabel: v, options: i, selectedIds: k, multiSelect: !1, onToggle: S }), e[19] = i, e[20] = S, e[21] = v, e[22] = k, e[23] = W) : W = e[23], W;
1505
+ }
1506
+ let C, V, L;
1507
+ e[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = {
1508
+ borderColor: "border.accent-light"
1509
+ }, V = {
1510
+ borderColor: "border.accent-light"
1511
+ }, L = {
1512
+ borderColor: "border.accent-light",
1513
+ boxShadow: "none"
1514
+ }, e[24] = C, e[25] = V, e[26] = L) : (C = e[24], V = e[25], L = e[26]);
1515
+ let $;
1516
+ if (e[27] !== i || e[28] !== S || e[29] !== p || e[30] !== g) {
1517
+ let k;
1518
+ e[32] !== S || e[33] !== p || e[34] !== g ? (k = (W) => {
1519
+ const O = W.id === p;
1520
+ return /* @__PURE__ */ _($e, { flex: "1", size: "xs", variant: O ? "subtle" : "ghost", borderRadius: "0", "aria-pressed": O, onClick: () => S(W.id), children: [
1521
+ g === "dots" ? /* @__PURE__ */ r(A, { boxSize: "0.5rem", borderRadius: "full", bg: W.indicatorColor ?? "fg.muted", mr: "1" }) : null,
1522
+ W.name
1523
+ ] }, W.id);
1524
+ }, e[32] = S, e[33] = p, e[34] = g, e[35] = k) : k = e[35], $ = i.map(k), e[27] = i, e[28] = S, e[29] = p, e[30] = g, e[31] = $;
1525
+ } else
1526
+ $ = e[31];
1527
+ let T;
1528
+ e[36] !== $ ? (T = /* @__PURE__ */ r(ut, { attached: !0, width: "full", borderWidth: "1px", borderColor: "border", borderRadius: "xs", overflow: "hidden", transition: "border-color 0.2s ease-in-out", _hover: C, _active: V, _focusWithin: L, children: $ }), e[36] = $, e[37] = T) : T = e[37];
1529
+ const z = T;
1530
+ let R;
1531
+ return e[38] !== n || e[39] !== z || e[40] !== l ? (R = /* @__PURE__ */ r(ce, { name: l, description: n, orientation: "stacked", children: z }), e[38] = n, e[39] = z, e[40] = l, e[41] = R) : R = e[41], R;
1532
+ }, Ql = (s) => {
1533
+ const e = E(72), {
1534
+ id: t,
1535
+ defaultValue: l,
1536
+ name: n,
1537
+ options: a,
1538
+ onChange: i,
1539
+ description: o,
1540
+ readOnly: c,
1541
+ hideLabel: d,
1542
+ multiSelect: h,
1543
+ placeholder: m,
1544
+ fullWidth: g,
1545
+ clearable: u,
1546
+ disabled: p,
1547
+ size: f
1548
+ } = s, x = d === void 0 ? !1 : d, w = h === void 0 ? !1 : h, I = g === void 0 ? !1 : g, S = u === void 0 ? !1 : u, b = p === void 0 ? !1 : p, v = f === void 0 ? "sm" : f, [y, C] = Z(l), V = me(null);
1549
+ let L;
1550
+ e[0] !== t || e[1] !== i ? (L = (B) => {
1551
+ V.current && clearTimeout(V.current), V.current = setTimeout(() => i(t, B), 540);
1552
+ }, e[0] = t, e[1] = i, e[2] = L) : L = e[2];
1553
+ const $ = L;
1554
+ let T, z;
1555
+ e[3] !== l ? (T = () => {
1556
+ C(l);
1557
+ }, z = [l], e[3] = l, e[4] = T, e[5] = z) : (T = e[4], z = e[5]), le(T, z);
1558
+ let R;
1559
+ e[6] !== w || e[7] !== y ? (R = w ? Array.isArray(y) ? y : [] : typeof y == "string" && y ? [y] : [], e[6] = w, e[7] = y, e[8] = R) : R = e[8];
1560
+ const k = R;
1561
+ let W;
1562
+ e[9] !== a || e[10] !== m || e[11] !== k ? (W = () => {
1563
+ const B = k.map((J) => a.find((te) => te.id === J)?.name).filter(Jl);
1564
+ return B.length === 0 ? m || "Select" : B.length <= 3 ? B.join(", ") : `${B.slice(0, 3).join(", ")} +${(B.length - 3).toString()}`;
1565
+ }, e[9] = a, e[10] = m, e[11] = k, e[12] = W) : W = e[12];
1566
+ const O = W;
1567
+ let N;
1568
+ e[13] !== $ ? (N = (B) => {
1569
+ C(B), $(B);
1570
+ }, e[13] = $, e[14] = N) : N = e[14];
1571
+ const F = N;
1572
+ let P;
1573
+ e[15] !== S || e[16] !== F || e[17] !== w || e[18] !== k ? (P = (B) => {
1574
+ if (!w) {
1575
+ F(S && k.includes(B) ? "" : B);
1576
+ return;
1577
+ }
1578
+ F(k.includes(B) ? k.filter((J) => J !== B) : [...k, B]);
1579
+ }, e[15] = S, e[16] = F, e[17] = w, e[18] = k, e[19] = P) : P = e[19];
1580
+ const M = P;
1581
+ let U, j, K, G;
1582
+ if (e[20] !== o || e[21] !== I || e[22] !== O || e[23] !== x || e[24] !== n || e[25] !== a || e[26] !== c || e[27] !== k[0] || e[28] !== k.length) {
1583
+ G = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
1584
+ e: {
1585
+ const B = k.length === 1 ? a.find((te) => te.id === k[0]) : void 0;
1586
+ let J;
1587
+ if (e[33] !== o || e[34] !== x || e[35] !== n ? (J = x ? null : /* @__PURE__ */ r(X, { name: n, description: o }), e[33] = o, e[34] = x, e[35] = n, e[36] = J) : J = e[36], j = J, c) {
1588
+ let te;
1589
+ e[37] !== O ? (te = O(), e[37] = O, e[38] = te) : te = e[38];
1590
+ let pe;
1591
+ e[39] !== te ? (pe = /* @__PURE__ */ r(ee, { children: te }), e[39] = te, e[40] = pe) : pe = e[40];
1592
+ const ue = pe;
1593
+ if (I) {
1594
+ let Y;
1595
+ e[41] !== j ? (Y = j ? /* @__PURE__ */ r(A, { mb: "xs", children: j }) : null, e[41] = j, e[42] = Y) : Y = e[42];
1596
+ let Q;
1597
+ e[43] !== Y || e[44] !== ue ? (Q = /* @__PURE__ */ _(A, { children: [
1598
+ Y,
1599
+ ue
1600
+ ] }), e[43] = Y, e[44] = ue, e[45] = Q) : Q = e[45], G = Q;
1601
+ break e;
1602
+ }
1603
+ let ge;
1604
+ e[46] !== j || e[47] !== ue ? (ge = /* @__PURE__ */ r(A, { children: /* @__PURE__ */ _(D, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
1605
+ j,
1606
+ ue
1607
+ ] }) }), e[46] = j, e[47] = ue, e[48] = ge) : ge = e[48], G = ge;
1608
+ break e;
1609
+ }
1610
+ U = Oe, K = rt(B, "14px");
1611
+ }
1612
+ e[20] = o, e[21] = I, e[22] = O, e[23] = x, e[24] = n, e[25] = a, e[26] = c, e[27] = k[0], e[28] = k.length, e[29] = U, e[30] = j, e[31] = K, e[32] = G;
1613
+ } else
1614
+ U = e[29], j = e[30], K = e[31], G = e[32];
1615
+ if (G !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
1616
+ return G;
1617
+ let H;
1618
+ e[49] !== O ? (H = O(), e[49] = O, e[50] = H) : H = e[50];
1619
+ let q;
1620
+ e[51] !== K || e[52] !== H ? (q = /* @__PURE__ */ _(Ye, { children: [
1621
+ K,
1622
+ H
1623
+ ] }), e[51] = K, e[52] = H, e[53] = q) : q = e[53];
1624
+ let oe;
1625
+ e[54] !== U || e[55] !== b || e[56] !== I || e[57] !== M || e[58] !== w || e[59] !== a || e[60] !== k || e[61] !== v || e[62] !== q ? (oe = /* @__PURE__ */ r(U, { triggerLabel: q, options: a, selectedIds: k, multiSelect: w, disabled: b, fullWidth: I, size: v, onToggle: M }), e[54] = U, e[55] = b, e[56] = I, e[57] = M, e[58] = w, e[59] = a, e[60] = k, e[61] = v, e[62] = q, e[63] = oe) : oe = e[63];
1626
+ const ie = oe;
1627
+ if (I) {
1628
+ let B;
1629
+ e[64] !== j ? (B = j ? /* @__PURE__ */ r(A, { mb: "xs", children: j }) : null, e[64] = j, e[65] = B) : B = e[65];
1630
+ let J;
1631
+ return e[66] !== ie || e[67] !== B ? (J = /* @__PURE__ */ _(A, { children: [
1632
+ B,
1633
+ ie
1634
+ ] }), e[66] = ie, e[67] = B, e[68] = J) : J = e[68], J;
1635
+ }
1636
+ let he;
1637
+ return e[69] !== j || e[70] !== ie ? (he = /* @__PURE__ */ r(A, { children: /* @__PURE__ */ _(D, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
1638
+ j,
1639
+ ie
1640
+ ] }) }), e[69] = j, e[70] = ie, e[71] = he) : he = e[71], he;
1641
+ };
1642
+ function Jl(s) {
1643
+ return !!s;
1644
+ }
1645
+ const Zl = (s) => {
1646
+ const e = E(35), {
1647
+ id: t,
1648
+ defaultValue: l,
1649
+ name: n,
1650
+ onChange: a,
1651
+ description: i,
1652
+ readOnly: o,
1653
+ singleLine: c,
1654
+ hideLabel: d,
1655
+ fullWidth: h,
1656
+ size: m
1657
+ } = s, g = c === void 0 ? !0 : c, u = d === void 0 ? !1 : d, p = h === void 0 ? !1 : h, f = m === void 0 ? "sm" : m, [x, w] = Z(l), I = me(null);
1658
+ let S;
1659
+ e[0] !== t || e[1] !== a ? (S = ($) => {
1660
+ I.current && clearTimeout(I.current), I.current = setTimeout(() => a(t, $), 540);
1661
+ }, e[0] = t, e[1] = a, e[2] = S) : S = e[2];
1662
+ const b = S;
1663
+ let v, y;
1664
+ e[3] !== l ? (v = () => {
1665
+ w(l);
1666
+ }, y = [l], e[3] = l, e[4] = v, e[5] = y) : (v = e[4], y = e[5]), le(v, y);
1667
+ let C;
1668
+ e[6] !== b ? (C = ($) => {
1669
+ w($), b($);
1670
+ }, e[6] = b, e[7] = C) : C = e[7];
1671
+ const V = C;
1672
+ if (o) {
1673
+ const $ = !g;
1674
+ let T;
1675
+ e[8] !== $ || e[9] !== x ? (T = /* @__PURE__ */ r(ee, { preserveWhitespace: $, children: x }), e[8] = $, e[9] = x, e[10] = T) : T = e[10];
1676
+ const z = T;
1677
+ if (g && !p) {
1678
+ let W;
1679
+ e[11] !== i || e[12] !== u || e[13] !== n ? (W = !u && /* @__PURE__ */ r(X, { name: n, description: i }), e[11] = i, e[12] = u, e[13] = n, e[14] = W) : W = e[14];
1680
+ let O;
1681
+ return e[15] !== W || e[16] !== z ? (O = /* @__PURE__ */ r(A, { children: /* @__PURE__ */ _(D, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
1682
+ W,
1683
+ z
1684
+ ] }) }), e[15] = W, e[16] = z, e[17] = O) : O = e[17], O;
1685
+ }
1686
+ let R;
1687
+ e[18] !== i || e[19] !== u || e[20] !== n ? (R = !u && /* @__PURE__ */ r(A, { mb: "xs", children: /* @__PURE__ */ r(X, { name: n, description: i }) }), e[18] = i, e[19] = u, e[20] = n, e[21] = R) : R = e[21];
1688
+ let k;
1689
+ return e[22] !== R || e[23] !== z ? (k = /* @__PURE__ */ _(A, { children: [
1690
+ R,
1691
+ z
1692
+ ] }), e[22] = R, e[23] = z, e[24] = k) : k = e[24], k;
1693
+ }
1694
+ let L;
1695
+ return e[25] !== i || e[26] !== p || e[27] !== V || e[28] !== u || e[29] !== n || e[30] !== o || e[31] !== g || e[32] !== f || e[33] !== x ? (L = /* @__PURE__ */ r(A, { children: g && !p ? /* @__PURE__ */ _(D, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
1696
+ !u && /* @__PURE__ */ r(X, { name: n, description: i }),
1697
+ /* @__PURE__ */ r(Se, { className: "nodrag", readOnly: o, flex: "1", maxW: "12.5rem", size: f, type: "text", placeholder: u ? n : void 0, value: x, onChange: ($) => V($.target.value), onKeyUp: en })
1698
+ ] }) : /* @__PURE__ */ _(A, { children: [
1699
+ !u && /* @__PURE__ */ r(A, { mb: "xs", children: /* @__PURE__ */ r(X, { name: n, description: i }) }),
1700
+ g ? /* @__PURE__ */ r(Se, { className: "nodrag", readOnly: o, width: "100%", size: f, type: "text", placeholder: u ? n : void 0, value: x, onChange: ($) => V($.target.value), onKeyUp: tn }) : /* @__PURE__ */ r(et, { className: "nodrag", readOnly: o, width: "100%", size: f, placeholder: u ? n : void 0, value: x, onChange: ($) => V($.target.value), rows: 3, resize: "vertical" })
1701
+ ] }) }), e[25] = i, e[26] = p, e[27] = V, e[28] = u, e[29] = n, e[30] = o, e[31] = g, e[32] = f, e[33] = x, e[34] = L) : L = e[34], L;
1702
+ };
1703
+ function en(s) {
1704
+ s.key === "Enter" && s.currentTarget.blur();
1705
+ }
1706
+ function tn(s) {
1707
+ s.key === "Enter" && s.currentTarget.blur();
1708
+ }
1709
+ const ln = (s) => {
1710
+ const e = E(6);
1711
+ let t, l;
1712
+ e[0] !== s ? ({
1713
+ children: t,
1714
+ ...l
1715
+ } = s, e[0] = s, e[1] = t, e[2] = l) : (t = e[1], l = e[2]);
1716
+ let n;
1717
+ return e[3] !== t || e[4] !== l ? (n = /* @__PURE__ */ r(D, { alignItems: "center", gap: "xs", minW: "0", ...l, children: t }), e[3] = t, e[4] = l, e[5] = n) : n = e[5], n;
1718
+ }, nn = (s, e) => {
1719
+ if (e.min === void 0 && e.max === void 0) return s;
1720
+ const t = e.min ?? Number.NEGATIVE_INFINITY, l = e.max ?? Number.POSITIVE_INFINITY;
1721
+ return we(s, t, l);
1722
+ }, rn = (s, e, t, l = {}) => {
1723
+ const n = nn(t, l);
1724
+ return e === "x" ? {
1725
+ x: n,
1726
+ y: s.y
1727
+ } : {
1728
+ x: s.x,
1729
+ y: n
1730
+ };
1731
+ }, Xe = (s) => {
1732
+ const e = E(15), {
1733
+ label: t,
1734
+ fieldId: l,
1735
+ value: n,
1736
+ min: a,
1737
+ max: i,
1738
+ step: o,
1739
+ onCommit: c
1740
+ } = s;
1741
+ let d;
1742
+ e[0] !== t ? (d = /* @__PURE__ */ r(ae, { textStyle: "label/XS/regular", color: "fg.muted", width: "1rem", flexShrink: 0, children: t }), e[0] = t, e[1] = d) : d = e[1];
1743
+ let h;
1744
+ e[2] !== c ? (h = (u, p) => c(p), e[2] = c, e[3] = h) : h = e[3];
1745
+ let m;
1746
+ e[4] !== l || e[5] !== t || e[6] !== i || e[7] !== a || e[8] !== o || e[9] !== h || e[10] !== n ? (m = /* @__PURE__ */ r(at, { id: l, name: t, description: "", defaultValue: n, min: a, max: i, step: o, hideLabel: !0, hideSlider: !0, onChange: h }), e[4] = l, e[5] = t, e[6] = i, e[7] = a, e[8] = o, e[9] = h, e[10] = n, e[11] = m) : m = e[11];
1747
+ let g;
1748
+ return e[12] !== d || e[13] !== m ? (g = /* @__PURE__ */ _(D, { alignItems: "center", gap: "1", flexShrink: 0, children: [
1749
+ d,
1750
+ m
1751
+ ] }), e[12] = d, e[13] = m, e[14] = g) : g = e[14], g;
1752
+ }, on = (s) => {
1753
+ const e = E(42), {
1754
+ id: t,
1755
+ name: l,
1756
+ description: n,
1757
+ defaultValue: a,
1758
+ xLabel: i,
1759
+ yLabel: o,
1760
+ min: c,
1761
+ max: d,
1762
+ step: h,
1763
+ onChange: m,
1764
+ readOnly: g
1765
+ } = s, u = i === void 0 ? "X" : i, p = o === void 0 ? "Y" : o, f = h === void 0 ? 1 : h, [x, w] = Z(a);
1766
+ let I, S;
1767
+ e[0] !== a ? (I = () => {
1768
+ w(a);
1769
+ }, S = [a], e[0] = a, e[1] = I, e[2] = S) : (I = e[1], S = e[2]), le(I, S);
1770
+ let b;
1771
+ e[3] !== t || e[4] !== d || e[5] !== c || e[6] !== m || e[7] !== x ? (b = (k, W) => {
1772
+ const O = rn(x, k, W, {
1773
+ min: c,
1774
+ max: d
1775
+ });
1776
+ w(O), m(t, O);
1777
+ }, e[3] = t, e[4] = d, e[5] = c, e[6] = m, e[7] = x, e[8] = b) : b = e[8];
1778
+ const v = b;
1779
+ if (g) {
1780
+ const k = `${x.x}, ${x.y}`;
1781
+ let W;
1782
+ e[9] !== k ? (W = /* @__PURE__ */ r(ee, { children: k }), e[9] = k, e[10] = W) : W = e[10];
1783
+ let O;
1784
+ return e[11] !== n || e[12] !== l || e[13] !== W ? (O = /* @__PURE__ */ r(ce, { name: l, description: n, children: W }), e[11] = n, e[12] = l, e[13] = W, e[14] = O) : O = e[14], O;
1785
+ }
1786
+ const y = `${t}.x`;
1787
+ let C;
1788
+ e[15] !== v ? (C = (k) => v("x", k), e[15] = v, e[16] = C) : C = e[16];
1789
+ let V;
1790
+ e[17] !== d || e[18] !== c || e[19] !== f || e[20] !== y || e[21] !== C || e[22] !== x.x || e[23] !== u ? (V = /* @__PURE__ */ r(Xe, { label: u, fieldId: y, value: x.x, min: c, max: d, step: f, onCommit: C }), e[17] = d, e[18] = c, e[19] = f, e[20] = y, e[21] = C, e[22] = x.x, e[23] = u, e[24] = V) : V = e[24];
1791
+ const L = `${t}.y`;
1792
+ let $;
1793
+ e[25] !== v ? ($ = (k) => v("y", k), e[25] = v, e[26] = $) : $ = e[26];
1794
+ let T;
1795
+ e[27] !== d || e[28] !== c || e[29] !== f || e[30] !== $ || e[31] !== L || e[32] !== x.y || e[33] !== p ? (T = /* @__PURE__ */ r(Xe, { label: p, fieldId: L, value: x.y, min: c, max: d, step: f, onCommit: $ }), e[27] = d, e[28] = c, e[29] = f, e[30] = $, e[31] = L, e[32] = x.y, e[33] = p, e[34] = T) : T = e[34];
1796
+ let z;
1797
+ e[35] !== T || e[36] !== V ? (z = /* @__PURE__ */ _(ln, { children: [
1798
+ V,
1799
+ T
1800
+ ] }), e[35] = T, e[36] = V, e[37] = z) : z = e[37];
1801
+ let R;
1802
+ return e[38] !== n || e[39] !== l || e[40] !== z ? (R = /* @__PURE__ */ r(ce, { name: l, description: n, orientation: "stacked", children: z }), e[38] = n, e[39] = l, e[40] = z, e[41] = R) : R = e[41], R;
1803
+ }, re = (s, e, t) => s[e] === void 0 ? t : s[e], sn = (s) => {
1804
+ const e = E(81), {
1805
+ param: t,
1806
+ defaultValues: l,
1807
+ onChange: n,
1808
+ readOnly: a,
1809
+ fullWidth: i,
1810
+ presentation: o
1811
+ } = s, c = a || t.readOnly, d = o === "horizontal" ? !1 : i;
1812
+ let h;
1813
+ e[0] !== n || e[1] !== t.id || e[2] !== c || e[3] !== d ? (h = {
1814
+ id: t.id,
1815
+ readOnly: c,
1816
+ onChange: n,
1817
+ fullWidth: d
1818
+ }, e[0] = n, e[1] = t.id, e[2] = c, e[3] = d, e[4] = h) : h = e[4];
1819
+ const m = h;
1820
+ switch (t.type) {
1821
+ case "range": {
1822
+ const g = t.name, u = t.description;
1823
+ let p;
1824
+ e[5] !== l || e[6] !== t.defaultValue || e[7] !== t.id ? (p = re(l, t.id, t.defaultValue), e[5] = l, e[6] = t.defaultValue, e[7] = t.id, e[8] = p) : p = e[8];
1825
+ let f;
1826
+ return e[9] !== m || e[10] !== t.description || e[11] !== t.markerCount || e[12] !== t.max || e[13] !== t.min || e[14] !== t.name || e[15] !== t.step || e[16] !== t.unit || e[17] !== o || e[18] !== p ? (f = /* @__PURE__ */ r(Ul, { ...m, name: g, description: u, defaultValue: p, min: t.min, max: t.max, step: t.step, unit: t.unit, markerCount: t.markerCount, presentation: o }), e[9] = m, e[10] = t.description, e[11] = t.markerCount, e[12] = t.max, e[13] = t.min, e[14] = t.name, e[15] = t.step, e[16] = t.unit, e[17] = o, e[18] = p, e[19] = f) : f = e[19], f;
1827
+ }
1828
+ case "segmented": {
1829
+ const g = t.name, u = t.description;
1830
+ let p;
1831
+ e[20] !== l || e[21] !== t.defaultValue || e[22] !== t.id ? (p = re(l, t.id, t.defaultValue), e[20] = l, e[21] = t.defaultValue, e[22] = t.id, e[23] = p) : p = e[23];
1832
+ let f;
1833
+ return e[24] !== m || e[25] !== t.description || e[26] !== t.name || e[27] !== t.options || e[28] !== t.variant || e[29] !== o || e[30] !== p ? (f = /* @__PURE__ */ r(Yl, { ...m, name: g, description: u, defaultValue: p, options: t.options, variant: t.variant, presentation: o }), e[24] = m, e[25] = t.description, e[26] = t.name, e[27] = t.options, e[28] = t.variant, e[29] = o, e[30] = p, e[31] = f) : f = e[31], f;
1834
+ }
1835
+ case "actions": {
1836
+ const g = t.name, u = t.description;
1837
+ let p;
1838
+ e[32] !== l || e[33] !== t.defaultValue || e[34] !== t.id ? (p = re(l, t.id, t.defaultValue), e[32] = l, e[33] = t.defaultValue, e[34] = t.id, e[35] = p) : p = e[35];
1839
+ let f;
1840
+ return e[36] !== m || e[37] !== t.description || e[38] !== t.name || e[39] !== t.options || e[40] !== o || e[41] !== p ? (f = /* @__PURE__ */ r(kl, { ...m, name: g, description: u, defaultValue: p, options: t.options, presentation: o }), e[36] = m, e[37] = t.description, e[38] = t.name, e[39] = t.options, e[40] = o, e[41] = p, e[42] = f) : f = e[42], f;
1841
+ }
1842
+ case "anchorGrid": {
1843
+ if (o === "horizontal")
1844
+ return null;
1845
+ const g = t.name, u = t.description;
1846
+ let p;
1847
+ e[43] !== l || e[44] !== t.defaultValue || e[45] !== t.id ? (p = re(l, t.id, t.defaultValue), e[43] = l, e[44] = t.defaultValue, e[45] = t.id, e[46] = p) : p = e[46];
1848
+ let f;
1849
+ return e[47] !== m || e[48] !== t.description || e[49] !== t.name || e[50] !== p ? (f = /* @__PURE__ */ r(Il, { ...m, name: g, description: u, defaultValue: p }), e[47] = m, e[48] = t.description, e[49] = t.name, e[50] = p, e[51] = f) : f = e[51], f;
1850
+ }
1851
+ case "vector": {
1852
+ const g = t.name, u = t.description;
1853
+ let p;
1854
+ e[52] !== l || e[53] !== t.defaultValue || e[54] !== t.id ? (p = re(l, t.id, t.defaultValue), e[52] = l, e[53] = t.defaultValue, e[54] = t.id, e[55] = p) : p = e[55];
1855
+ let f;
1856
+ return e[56] !== m || e[57] !== t.description || e[58] !== t.max || e[59] !== t.min || e[60] !== t.name || e[61] !== t.step || e[62] !== t.xLabel || e[63] !== t.yLabel || e[64] !== p ? (f = /* @__PURE__ */ r(on, { ...m, name: g, description: u, defaultValue: p, xLabel: t.xLabel, yLabel: t.yLabel, min: t.min, max: t.max, step: t.step }), e[56] = m, e[57] = t.description, e[58] = t.max, e[59] = t.min, e[60] = t.name, e[61] = t.step, e[62] = t.xLabel, e[63] = t.yLabel, e[64] = p, e[65] = f) : f = e[65], f;
1857
+ }
1858
+ case "fileUpload": {
1859
+ const g = t.id, u = t.name, p = t.description;
1860
+ let f;
1861
+ e[66] !== l || e[67] !== t.defaultValue || e[68] !== t.id ? (f = re(l, t.id, t.defaultValue), e[66] = l, e[67] = t.defaultValue, e[68] = t.id, e[69] = f) : f = e[69];
1862
+ let x;
1863
+ return e[70] !== m.readOnly || e[71] !== n || e[72] !== t.accept || e[73] !== t.description || e[74] !== t.id || e[75] !== t.multiple || e[76] !== t.name || e[77] !== t.uploadLabel || e[78] !== o || e[79] !== f ? (x = /* @__PURE__ */ r(Ol, { id: g, name: u, description: p, defaultValue: f, accept: t.accept, multiple: t.multiple, uploadLabel: t.uploadLabel, readOnly: m.readOnly, presentation: o, onChange: n }), e[70] = m.readOnly, e[71] = n, e[72] = t.accept, e[73] = t.description, e[74] = t.id, e[75] = t.multiple, e[76] = t.name, e[77] = t.uploadLabel, e[78] = o, e[79] = f, e[80] = x) : x = e[80], x;
1864
+ }
1865
+ }
1866
+ }, an = (s) => s.type === "fileUpload", Wn = (s) => s.type !== "anchorGrid", Ne = (s) => s === null || s === "" ? "Not provided" : String(s), cn = (s) => {
1867
+ const e = E(23), {
1868
+ value: t
1869
+ } = s;
1870
+ if (Array.isArray(t)) {
1871
+ if (t.length === 0) {
1872
+ let c;
1873
+ return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ r(ee, { color: "fg.muted", children: "None" }), e[0] = c) : c = e[0], c;
1874
+ }
1875
+ let i;
1876
+ e[1] !== t ? (i = t.map(un), e[1] = t, e[2] = i) : i = e[2];
1877
+ let o;
1878
+ return e[3] !== i ? (o = /* @__PURE__ */ r(Ve, { gap: "2xs", flexWrap: "wrap", children: i }), e[3] = i, e[4] = o) : o = e[4], o;
1879
+ }
1880
+ if (typeof t == "object" && t !== null) {
1881
+ let i;
1882
+ e[5] !== t.alt || e[6] !== t.images || e[7] !== t.src || e[8] !== t.type ? (i = t.type === "image" ? [{
1883
+ src: t.src,
1884
+ alt: t.alt
1885
+ }] : t.images, e[5] = t.alt, e[6] = t.images, e[7] = t.src, e[8] = t.type, e[9] = i) : i = e[9];
1886
+ const o = i;
1887
+ let c;
1888
+ e[10] !== o ? (c = o.map(fn), e[10] = o, e[11] = c) : c = e[11];
1889
+ let d;
1890
+ return e[12] !== c ? (d = /* @__PURE__ */ r(Ve, { gap: "2xs", flexWrap: "wrap", children: c }), e[12] = c, e[13] = d) : d = e[13], d;
1891
+ }
1892
+ if (typeof t == "boolean") {
1893
+ let i;
1894
+ e[14] !== t ? (i = Ne(t), e[14] = t, e[15] = i) : i = e[15];
1895
+ let o;
1896
+ return e[16] !== i ? (o = /* @__PURE__ */ r(ee, { children: i }), e[16] = i, e[17] = o) : o = e[17], o;
1897
+ }
1898
+ const l = t === null || t === "" ? "fg.muted" : "fg";
1899
+ let n;
1900
+ e[18] !== t ? (n = Ne(t), e[18] = t, e[19] = n) : n = e[19];
1901
+ let a;
1902
+ return e[20] !== l || e[21] !== n ? (a = /* @__PURE__ */ r(ee, { color: l, children: n }), e[20] = l, e[21] = n, e[22] = a) : a = e[22], a;
1903
+ }, dn = (s) => {
1904
+ const e = E(7), {
1905
+ param: t,
1906
+ fullWidth: l
1907
+ } = s;
1908
+ let n;
1909
+ e[0] !== t.value ? (n = /* @__PURE__ */ r(cn, { value: t.value }), e[0] = t.value, e[1] = n) : n = e[1];
1910
+ let a;
1911
+ return e[2] !== l || e[3] !== t.description || e[4] !== t.name || e[5] !== n ? (a = /* @__PURE__ */ r(ce, { name: t.name, description: t.description, fullWidth: l, children: n }), e[2] = l, e[3] = t.description, e[4] = t.name, e[5] = n, e[6] = a) : a = e[6], a;
1912
+ };
1913
+ function un(s, e) {
1914
+ return /* @__PURE__ */ r(Re, { variant: "subtle", colorPalette: "gray", children: Ne(s) }, `${String(s)}-${e}`);
1915
+ }
1916
+ function fn(s) {
1917
+ return /* @__PURE__ */ r(Qe, { src: s.src, alt: s.alt, width: "96px", height: "72px", borderRadius: "sm", borderWidth: "1px", borderColor: "border.subtle", objectFit: "cover" }, `${s.src}-${s.alt}`);
1918
+ }
1919
+ const mn = (s) => {
1920
+ const e = E(16), {
1921
+ param: t,
1922
+ fullWidth: l
1923
+ } = s;
1924
+ if (l) {
1925
+ let o;
1926
+ e[0] !== t.description || e[1] !== t.name ? (o = /* @__PURE__ */ r(A, { mb: "xs", children: /* @__PURE__ */ r(X, { name: t.name, description: t.description }) }), e[0] = t.description, e[1] = t.name, e[2] = o) : o = e[2];
1927
+ let c;
1928
+ e[3] !== t.value ? (c = /* @__PURE__ */ r(ee, { children: t.value }), e[3] = t.value, e[4] = c) : c = e[4];
1929
+ let d;
1930
+ return e[5] !== o || e[6] !== c ? (d = /* @__PURE__ */ _(A, { children: [
1931
+ o,
1932
+ c
1933
+ ] }), e[5] = o, e[6] = c, e[7] = d) : d = e[7], d;
1934
+ }
1935
+ let n;
1936
+ e[8] !== t.description || e[9] !== t.name ? (n = /* @__PURE__ */ r(X, { name: t.name, description: t.description }), e[8] = t.description, e[9] = t.name, e[10] = n) : n = e[10];
1937
+ let a;
1938
+ e[11] !== t.value ? (a = /* @__PURE__ */ r(ee, { children: t.value }), e[11] = t.value, e[12] = a) : a = e[12];
1939
+ let i;
1940
+ return e[13] !== n || e[14] !== a ? (i = /* @__PURE__ */ _(D, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
1941
+ n,
1942
+ a
1943
+ ] }), e[13] = n, e[14] = a, e[15] = i) : i = e[15], i;
1944
+ }, Ln = (s) => {
1945
+ const e = E(130), {
1946
+ param: t,
1947
+ defaultValues: l,
1948
+ onChange: n,
1949
+ onOpenResource: a,
1950
+ readOnly: i,
1951
+ fullWidth: o,
1952
+ presentation: c,
1953
+ size: d
1954
+ } = s, h = o === void 0 ? !1 : o, m = c === void 0 ? "stacked" : c, g = d === void 0 ? "sm" : d, u = m === "horizontal";
1955
+ let p;
1956
+ e[0] !== t ? (p = an(t), e[0] = t, e[1] = p) : p = e[1];
1957
+ const f = p, x = i || t.readOnly, w = u ? f : h;
1958
+ let I;
1959
+ e[2] !== n || e[3] !== t.id || e[4] !== g || e[5] !== x || e[6] !== w ? (I = {
1960
+ id: t.id,
1961
+ readOnly: x,
1962
+ onChange: n,
1963
+ fullWidth: w,
1964
+ size: g
1965
+ }, e[2] = n, e[3] = t.id, e[4] = g, e[5] = x, e[6] = w, e[7] = I) : I = e[7];
1966
+ const S = I;
1967
+ switch (t.type) {
1968
+ case "number": {
1969
+ const b = t.name, v = t.description || "";
1970
+ let y;
1971
+ e[8] !== l || e[9] !== t.defaultValue || e[10] !== t.id ? (y = re(l, t.id, t.defaultValue), e[8] = l, e[9] = t.defaultValue, e[10] = t.id, e[11] = y) : y = e[11];
1972
+ let C;
1973
+ return e[12] !== S || e[13] !== u || e[14] !== t.max || e[15] !== t.min || e[16] !== t.name || e[17] !== t.step || e[18] !== v || e[19] !== y ? (C = /* @__PURE__ */ r(at, { ...S, name: b, description: v, defaultValue: y, min: t.min, max: t.max, step: t.step, hideLabel: u, hideSlider: u }), e[12] = S, e[13] = u, e[14] = t.max, e[15] = t.min, e[16] = t.name, e[17] = t.step, e[18] = v, e[19] = y, e[20] = C) : C = e[20], C;
1974
+ }
1975
+ case "boolean": {
1976
+ const b = t.name, v = t.description;
1977
+ let y;
1978
+ e[21] !== l || e[22] !== t.defaultValue || e[23] !== t.id ? (y = re(l, t.id, t.defaultValue), e[21] = l, e[22] = t.defaultValue, e[23] = t.id, e[24] = y) : y = e[24];
1979
+ let C;
1980
+ return e[25] !== S || e[26] !== u || e[27] !== t.description || e[28] !== t.name || e[29] !== y ? (C = /* @__PURE__ */ r(wl, { ...S, name: b, description: v, defaultValue: y, hideLabel: u }), e[25] = S, e[26] = u, e[27] = t.description, e[28] = t.name, e[29] = y, e[30] = C) : C = e[30], C;
1981
+ }
1982
+ case "text": {
1983
+ if (u) {
1984
+ const V = t.name, L = t.description || "";
1985
+ let $;
1986
+ e[31] !== l || e[32] !== t.defaultValue || e[33] !== t.id ? ($ = re(l, t.id, t.defaultValue), e[31] = l, e[32] = t.defaultValue, e[33] = t.id, e[34] = $) : $ = e[34];
1987
+ let T;
1988
+ return e[35] !== S || e[36] !== t.name || e[37] !== L || e[38] !== $ ? (T = /* @__PURE__ */ r(Al, { ...S, name: V, description: L, defaultValue: $, hideLabel: !0 }), e[35] = S, e[36] = t.name, e[37] = L, e[38] = $, e[39] = T) : T = e[39], T;
1989
+ }
1990
+ const b = t.name, v = t.description || "";
1991
+ let y;
1992
+ e[40] !== l || e[41] !== t.defaultValue || e[42] !== t.id ? (y = re(l, t.id, t.defaultValue), e[40] = l, e[41] = t.defaultValue, e[42] = t.id, e[43] = y) : y = e[43];
1993
+ let C;
1994
+ return e[44] !== S || e[45] !== t.name || e[46] !== t.singleLine || e[47] !== v || e[48] !== y ? (C = /* @__PURE__ */ r(Zl, { ...S, name: b, description: v, defaultValue: y, singleLine: t.singleLine }), e[44] = S, e[45] = t.name, e[46] = t.singleLine, e[47] = v, e[48] = y, e[49] = C) : C = e[49], C;
1995
+ }
1996
+ case "markdown": {
1997
+ const b = t.id, v = t.name, y = t.description;
1998
+ let C;
1999
+ e[50] !== l || e[51] !== t.defaultValue || e[52] !== t.id ? (C = re(l, t.id, t.defaultValue), e[50] = l, e[51] = t.defaultValue, e[52] = t.id, e[53] = C) : C = e[53];
2000
+ let V;
2001
+ return e[54] !== S.readOnly || e[55] !== n || e[56] !== t.description || e[57] !== t.id || e[58] !== t.name || e[59] !== t.placeholder || e[60] !== m || e[61] !== g || e[62] !== C ? (V = /* @__PURE__ */ r(Nl, { id: b, name: v, description: y, defaultValue: C, placeholder: t.placeholder, readOnly: S.readOnly, presentation: m, size: g, onChange: n }), e[54] = S.readOnly, e[55] = n, e[56] = t.description, e[57] = t.id, e[58] = t.name, e[59] = t.placeholder, e[60] = m, e[61] = g, e[62] = C, e[63] = V) : V = e[63], V;
2002
+ }
2003
+ case "selection": {
2004
+ const b = t.name, v = t.description || "";
2005
+ let y;
2006
+ e[64] !== l || e[65] !== t.defaultValue || e[66] !== t.id ? (y = re(l, t.id, t.defaultValue), e[64] = l, e[65] = t.defaultValue, e[66] = t.id, e[67] = y) : y = e[67];
2007
+ let C;
2008
+ return e[68] !== S || e[69] !== u || e[70] !== t.clearable || e[71] !== t.disabled || e[72] !== t.multiSelect || e[73] !== t.name || e[74] !== t.options || e[75] !== t.placeholder || e[76] !== v || e[77] !== y ? (C = /* @__PURE__ */ r(Ql, { ...S, name: b, description: v, defaultValue: y, options: t.options, multiSelect: t.multiSelect, placeholder: t.placeholder, clearable: t.clearable, disabled: t.disabled, hideLabel: u }), e[68] = S, e[69] = u, e[70] = t.clearable, e[71] = t.disabled, e[72] = t.multiSelect, e[73] = t.name, e[74] = t.options, e[75] = t.placeholder, e[76] = v, e[77] = y, e[78] = C) : C = e[78], C;
2009
+ }
2010
+ case "date": {
2011
+ const b = t.name, v = t.description || "";
2012
+ let y;
2013
+ e[79] !== l || e[80] !== t.defaultValue || e[81] !== t.id ? (y = re(l, t.id, t.defaultValue), e[79] = l, e[80] = t.defaultValue, e[81] = t.id, e[82] = y) : y = e[82];
2014
+ let C;
2015
+ return e[83] !== S || e[84] !== u || e[85] !== t.max || e[86] !== t.min || e[87] !== t.name || e[88] !== v || e[89] !== y ? (C = /* @__PURE__ */ r($l, { ...S, name: b, description: v, defaultValue: y, min: t.min, max: t.max, hideLabel: u }), e[83] = S, e[84] = u, e[85] = t.max, e[86] = t.min, e[87] = t.name, e[88] = v, e[89] = y, e[90] = C) : C = e[90], C;
2016
+ }
2017
+ case "color": {
2018
+ const b = t.name, v = t.description || "";
2019
+ let y;
2020
+ e[91] !== l || e[92] !== t.defaultValue || e[93] !== t.id ? (y = re(l, t.id, t.defaultValue), e[91] = l, e[92] = t.defaultValue, e[93] = t.id, e[94] = y) : y = e[94];
2021
+ let C;
2022
+ return e[95] !== S || e[96] !== u || e[97] !== t.name || e[98] !== v || e[99] !== y ? (C = /* @__PURE__ */ r(Vl, { ...S, name: b, description: v, defaultValue: y, hideLabel: u }), e[95] = S, e[96] = u, e[97] = t.name, e[98] = v, e[99] = y, e[100] = C) : C = e[100], C;
2023
+ }
2024
+ case "property": {
2025
+ const b = u ? !1 : h;
2026
+ let v;
2027
+ return e[101] !== t || e[102] !== b ? (v = /* @__PURE__ */ r(mn, { param: t, fullWidth: b }), e[101] = t, e[102] = b, e[103] = v) : v = e[103], v;
2028
+ }
2029
+ case "readOnly": {
2030
+ const b = u ? !1 : h;
2031
+ let v;
2032
+ return e[104] !== t || e[105] !== b ? (v = /* @__PURE__ */ r(dn, { param: t, fullWidth: b }), e[104] = t, e[105] = b, e[106] = v) : v = e[106], v;
2033
+ }
2034
+ case "resource": {
2035
+ const b = t.name, v = t.description;
2036
+ let y;
2037
+ e[107] !== l || e[108] !== t.defaultValue || e[109] !== t.id ? (y = re(l, t.id, t.defaultValue), e[107] = l, e[108] = t.defaultValue, e[109] = t.id, e[110] = y) : y = e[110];
2038
+ let C;
2039
+ return e[111] !== S || e[112] !== a || e[113] !== t.description || e[114] !== t.editable || e[115] !== t.emptyText || e[116] !== t.multiSelect || e[117] !== t.name || e[118] !== t.options || e[119] !== t.placeholder || e[120] !== m || e[121] !== y ? (C = /* @__PURE__ */ r(Xl, { ...S, name: b, description: v, defaultValue: y, options: t.options, multiSelect: t.multiSelect, editable: t.editable, placeholder: t.placeholder, emptyText: t.emptyText, onOpenResource: a, presentation: m }), e[111] = S, e[112] = a, e[113] = t.description, e[114] = t.editable, e[115] = t.emptyText, e[116] = t.multiSelect, e[117] = t.name, e[118] = t.options, e[119] = t.placeholder, e[120] = m, e[121] = y, e[122] = C) : C = e[122], C;
2040
+ }
2041
+ case "range":
2042
+ case "segmented":
2043
+ case "actions":
2044
+ case "anchorGrid":
2045
+ case "vector":
2046
+ case "fileUpload": {
2047
+ let b;
2048
+ return e[123] !== l || e[124] !== h || e[125] !== n || e[126] !== t || e[127] !== m || e[128] !== i ? (b = /* @__PURE__ */ r(sn, { param: t, defaultValues: l, onChange: n, readOnly: i, fullWidth: h, presentation: m }), e[123] = l, e[124] = h, e[125] = n, e[126] = t, e[127] = m, e[128] = i, e[129] = b) : b = e[129], b;
2049
+ }
2050
+ default:
2051
+ return null;
2052
+ }
2053
+ };
2054
+ export {
2055
+ nl as A,
2056
+ wl as B,
2057
+ il as C,
2058
+ $l as D,
2059
+ Ol as F,
2060
+ Al as H,
2061
+ wn as I,
2062
+ Nl as M,
2063
+ De as N,
2064
+ Ln as P,
2065
+ Ul as R,
2066
+ Ql as S,
2067
+ Zl as T,
2068
+ on as V,
2069
+ Vn as W,
2070
+ an as a,
2071
+ cl as b,
2072
+ Be as c,
2073
+ ot as d,
2074
+ kl as e,
2075
+ Il as f,
2076
+ _e as g,
2077
+ Vl as h,
2078
+ Wn as i,
2079
+ at as j,
2080
+ ce as k,
2081
+ X as l,
2082
+ ln as m,
2083
+ dn as n,
2084
+ ee as o,
2085
+ Xl as p,
2086
+ Yl as q,
2087
+ al as r,
2088
+ $n as s,
2089
+ rl as t,
2090
+ nt as u,
2091
+ sl as v,
2092
+ ol as w
2093
+ };
2094
+ //# sourceMappingURL=param-editor-field-ZzZwgjZ_.js.map