@pstdio/ui 0.19.0 → 0.20.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-BPiVFNYK.js → MermaidComponent-AmAjWLPm.js} +3 -3
  2. package/dist/{MermaidComponent-BPiVFNYK.js.map → MermaidComponent-AmAjWLPm.js.map} +1 -1
  3. package/dist/browser-storage-DPtOQJx0.js +127 -0
  4. package/dist/browser-storage-DPtOQJx0.js.map +1 -0
  5. package/dist/chat-ui.js +19 -20
  6. package/dist/chat-ui.js.map +1 -1
  7. package/dist/components/data-table/data-table-header.d.ts +3 -1
  8. package/dist/components/data-table/edit-mode-data-table-body.d.ts +29 -0
  9. package/dist/components/data-table/edit-mode-data-table-cell.d.ts +15 -0
  10. package/dist/components/data-table/edit-mode-data-table-editors.d.ts +19 -0
  11. package/dist/components/data-table/edit-mode-data-table-header.d.ts +23 -0
  12. package/dist/components/data-table/edit-mode-data-table-selection.d.ts +12 -0
  13. package/dist/components/data-table/edit-mode-data-table.d.ts +2 -0
  14. package/dist/components/data-table/edit-mode-story.d.ts +5 -0
  15. package/dist/components/data-table/index.d.ts +1 -1
  16. package/dist/components/data-table/pagination-footer.d.ts +8 -5
  17. package/dist/components/data-table/types.d.ts +24 -0
  18. package/dist/components/rich-text/index.d.ts +2 -0
  19. package/dist/components/rich-text/markdown-editor/markdown-editor.d.ts +7 -0
  20. package/dist/components/rich-text/markdown-editor/markdown-table.story-fixture.d.ts +3 -0
  21. package/dist/components/rich-text/markdown-editor/plugins/MarkdownSectionNavigationPlugin.d.ts +8 -0
  22. package/dist/components/rich-text/markdown-editor/plugins/MarkdownSlashCommandPlugin.d.ts +1 -0
  23. package/dist/components/rich-text/markdown-editor/plugins/markdown-history-plugin.d.ts +1 -0
  24. package/dist/components/rich-text/markdown-editor/plugins/markdown-section-navigation.d.ts +20 -0
  25. package/dist/components/rich-text/rich-message/rich-message.d.ts +2 -0
  26. package/dist/components/rich-text/shared/markdown-ast.d.ts +6 -0
  27. package/dist/components/rich-text/shared/markdown-codec.d.ts +3 -0
  28. package/dist/components/rich-text/shared/markdown-export.d.ts +2 -0
  29. package/dist/components/rich-text/shared/markdown-import.d.ts +2 -0
  30. package/dist/components/rich-text/shared/markdown-inline.d.ts +5 -0
  31. package/dist/components/rich-text/shared/markdown-table.d.ts +41 -0
  32. package/dist/components/rich-text/shared/markdown-url-context.d.ts +9 -0
  33. package/dist/components/rich-text/shared/markdown-url.d.ts +3 -0
  34. package/dist/components/rich-text/shared/nodes/DataTableNode.d.ts +13 -11
  35. package/dist/components/rich-text/shared/nodes/MarkdownImageNode.d.ts +35 -0
  36. package/dist/components/rich-text/shared/nodes/MarkdownLinkNode.d.ts +18 -0
  37. package/dist/components/rich-text/shared/nodes/RawHtmlNode.d.ts +31 -0
  38. package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/floating-toolbar-buttons.d.ts +4 -2
  39. package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/resolve-block-type.d.ts +1 -1
  40. package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/utils/setFloatingElemPos.d.ts +1 -1
  41. package/dist/components/rich-text/shared/plugins/MermaidPlugin/MermaidNode.d.ts +1 -0
  42. package/dist/components/rich-text/shared/transformers/markdown-transformers.d.ts +2 -3
  43. package/dist/data-table.js +723 -923
  44. package/dist/data-table.js.map +1 -1
  45. package/dist/diff.js +4 -4
  46. package/dist/edit-mode-data-table-4GMiDy75.js +775 -0
  47. package/dist/edit-mode-data-table-4GMiDy75.js.map +1 -0
  48. package/dist/editor-config-Dyh8n5A2.js +2416 -0
  49. package/dist/editor-config-Dyh8n5A2.js.map +1 -0
  50. package/dist/index.js +142 -144
  51. package/dist/index.js.map +1 -1
  52. package/dist/{kanban-renderer-toolbar-Bcj_N1qr.js → kanban-renderer-toolbar-BcUZvGyY.js} +359 -361
  53. package/dist/kanban-renderer-toolbar-BcUZvGyY.js.map +1 -0
  54. package/dist/kanban-renderer.js +28 -27
  55. package/dist/kanban-renderer.js.map +1 -1
  56. package/dist/{lazy-markdown-editor-DwhqQ-NN.js → lazy-markdown-editor-CWSREEhf.js} +2 -2
  57. package/dist/{lazy-markdown-editor-DwhqQ-NN.js.map → lazy-markdown-editor-CWSREEhf.js.map} +1 -1
  58. package/dist/{list-row-BtoVJpFs.js → list-row-B8L4TGsh.js} +2 -2
  59. package/dist/{list-row-BtoVJpFs.js.map → list-row-B8L4TGsh.js.map} +1 -1
  60. package/dist/{mermaid-renderer-DZo3qj6D.js → mermaid-renderer-H3IhLqnQ.js} +3 -3
  61. package/dist/{mermaid-renderer-DZo3qj6D.js.map → mermaid-renderer-H3IhLqnQ.js.map} +1 -1
  62. package/dist/mermaid.js +1 -1
  63. package/dist/number-input-WUfejtNx.js +343 -0
  64. package/dist/number-input-WUfejtNx.js.map +1 -0
  65. package/dist/param-editor-field-C8zRDStn.js +2845 -0
  66. package/dist/param-editor-field-C8zRDStn.js.map +1 -0
  67. package/dist/{param-editor-XRjSu6MT.js → param-editor-w3xH-t8A.js} +2 -2
  68. package/dist/{param-editor-XRjSu6MT.js.map → param-editor-w3xH-t8A.js.map} +1 -1
  69. package/dist/rich-message-jZ2oPQhU.js +658 -0
  70. package/dist/rich-message-jZ2oPQhU.js.map +1 -0
  71. package/dist/rich-text.js +182 -110
  72. package/dist/rich-text.js.map +1 -1
  73. package/dist/style.css +1 -1
  74. package/dist/theme/recipes/button.d.ts +11 -0
  75. package/dist/{theme-7PDdD9OD.js → theme-J8K8KbZi.js} +12 -1
  76. package/dist/theme-J8K8KbZi.js.map +1 -0
  77. package/dist/{theme-preference-DOzHx64J.js → theme-preference-DyymrYpR.js} +2 -2
  78. package/dist/{theme-preference-DOzHx64J.js.map → theme-preference-DyymrYpR.js.map} +1 -1
  79. package/dist/theme.js +1 -1
  80. package/dist/{tree-list-B2L0cTj2.js → tree-list-CC13pOYi.js} +2 -2
  81. package/dist/{tree-list-B2L0cTj2.js.map → tree-list-CC13pOYi.js.map} +1 -1
  82. package/package.json +9 -1
  83. package/dist/browser-storage-BinyFNJX.js +0 -40
  84. package/dist/browser-storage-BinyFNJX.js.map +0 -1
  85. package/dist/checkbox-B2zYVemL.js +0 -70
  86. package/dist/checkbox-B2zYVemL.js.map +0 -1
  87. package/dist/components/data-table/editable-cells-story.d.ts +0 -9
  88. package/dist/kanban-renderer-toolbar-Bcj_N1qr.js.map +0 -1
  89. package/dist/markdown-DDd2ESoH.js +0 -743
  90. package/dist/markdown-DDd2ESoH.js.map +0 -1
  91. package/dist/markdown-editor-CYVkzt8t.js +0 -741
  92. package/dist/markdown-editor-CYVkzt8t.js.map +0 -1
  93. package/dist/param-editor-field-B9lEPq8c.js +0 -3028
  94. package/dist/param-editor-field-B9lEPq8c.js.map +0 -1
  95. package/dist/resource-badge-CuItchgL.js +0 -98
  96. package/dist/resource-badge-CuItchgL.js.map +0 -1
  97. package/dist/rich-message--eRzjWYK.js +0 -730
  98. package/dist/rich-message--eRzjWYK.js.map +0 -1
  99. package/dist/scroll-area-BMbg1WcD.js +0 -91
  100. package/dist/scroll-area-BMbg1WcD.js.map +0 -1
  101. package/dist/theme-7PDdD9OD.js.map +0 -1
@@ -1,3028 +0,0 @@
1
- import { jsx as r, jsxs as _, Fragment as ht } from "react/jsx-runtime";
2
- import { c as N } from "react/compiler-runtime";
3
- import { Text as pe, Popover as ye, chakra as nt, Image as ot, IconButton as Ue, Badge as He, Icon as se, HStack as We, Flex as G, Box as E, Switch as Se, Spinner as lt, Menu as Ce, Button as Re, Grid as pt, parseColor as gt, ColorPicker as ae, Input as Ie, Stack as _e, Wrap as it, Textarea as rt, NumberInput as ze, Slider as Le, Group as vt } from "@chakra-ui/react";
4
- import { X as xt, CircleHelp as yt, Ban as St, Flag as Ct, Bug as kt, Sparkles as wt, BookOpen as Vt, Wrench as $t, Zap as It, Feather as Lt, Scale as zt, Layers as Tt, Star as Wt, Flame as Rt, Lightbulb as _t, Shield as Ot, Eye as At, Timer as Et, Tag as Pt, Code as Nt, Rocket as Ht, Heart as Bt, Bookmark as jt, Target as Ft, Bell as Gt, Hash as Ut, Ticket as qt, GitBranch as Dt, Bot as Mt, Puzzle as Kt, Workflow as Xt, Kanban as Yt, MessageSquare as Zt, Folder as Qt, FileText as Jt, History as en, Play as tn, Terminal as nn, Cpu as on, Users as ln, Component as rn, SquareKanban as cn, GitCommitHorizontal as an, Inbox as sn, ListChecks as dn, Archive as fn, Link as un, Settings as bn, Circle as mn, LoaderCircle as hn, CircleCheck as ct, CircleAlert as at, CircleStop as pn, CirclePause as gn, ClockAlert as vn, CircleDot as xn, CircleDashed as yn, ChevronDown as qe, GitCommitIcon as Sn, GitBranchIcon as Cn, SquareCheck as kn, Square as wn, Check as Vn, Paperclip as $n, Clock3 as In, Plus as Ln } from "lucide-react";
5
- import { T as De } from "./scroll-area-BMbg1WcD.js";
6
- import * as Me from "react";
7
- import { useState as J, useEffect as ne, useRef as ve } from "react";
8
- import { L as zn } from "./lazy-markdown-editor-DwhqQ-NN.js";
9
- import { R as Tn } from "./resource-badge-CuItchgL.js";
10
- import { L as je, b as Wn } from "./list-row-BtoVJpFs.js";
11
- import "./checkbox-B2zYVemL.js";
12
- import "./empty-state-Bo4HVrgr.js";
13
- const Rn = (i) => i.type.startsWith("image/"), _n = (i) => i < 1024 ? `${i.toString()} B` : i < 1024 * 1024 ? `${Math.round(i / 1024).toString()} KB` : `${(i / (1024 * 1024)).toFixed(1)} MB`, On = (i) => {
14
- const e = N(22), {
15
- file: t,
16
- removeLabel: n,
17
- disabled: o,
18
- onRemove: a
19
- } = i, [l, c] = J(null);
20
- let s, d;
21
- e[0] !== t ? (s = () => {
22
- if (!Rn(t))
23
- return;
24
- const k = URL.createObjectURL(t);
25
- return c(k), () => URL.revokeObjectURL(k);
26
- }, d = [t], e[0] = t, e[1] = s, e[2] = d) : (s = e[1], d = e[2]), ne(s, d);
27
- let f;
28
- e[3] !== t.name ? (f = /* @__PURE__ */ r(pe, { as: "span", textStyle: "label/XS/medium", lineClamp: 1, maxW: "180px", children: t.name }), e[3] = t.name, e[4] = f) : f = e[4];
29
- const m = f;
30
- let g;
31
- e[5] !== t.name || e[6] !== m || e[7] !== l ? (g = l ? /* @__PURE__ */ _(ye.Root, { positioning: {
32
- placement: "top"
33
- }, children: [
34
- /* @__PURE__ */ r(ye.Trigger, { asChild: !0, children: /* @__PURE__ */ r(nt.button, { type: "button", cursor: "pointer", minW: "0", display: "inline-flex", children: m }) }),
35
- /* @__PURE__ */ r(ye.Positioner, { children: /* @__PURE__ */ r(ye.Content, { w: "auto", p: "2xs", bg: "bg", children: /* @__PURE__ */ r(ot, { src: l, alt: t.name, maxW: "240px", maxH: "240px", borderRadius: "sm" }) }) })
36
- ] }) : m, e[5] = t.name, e[6] = m, e[7] = l, e[8] = g) : g = e[8];
37
- let b;
38
- e[9] !== t.size ? (b = _n(t.size), e[9] = t.size, e[10] = b) : b = e[10];
39
- let h;
40
- e[11] !== b ? (h = /* @__PURE__ */ r(pe, { as: "span", textStyle: "label/XS/regular", color: "fg.subtle", children: b }), e[11] = b, e[12] = h) : h = e[12];
41
- let u;
42
- e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ r(xt, { size: 12 }), e[13] = u) : u = e[13];
43
- let v;
44
- e[14] !== o || e[15] !== a || e[16] !== n ? (v = /* @__PURE__ */ r(Ue, { size: "2xs", variant: "ghost", "aria-label": n, disabled: o, onClick: a, children: u }), e[14] = o, e[15] = a, e[16] = n, e[17] = v) : v = e[17];
45
- let $;
46
- return e[18] !== g || e[19] !== h || e[20] !== v ? ($ = /* @__PURE__ */ _(He, { variant: "chip", gap: "2xs", pr: "2xs", children: [
47
- g,
48
- h,
49
- v
50
- ] }), e[18] = g, e[19] = h, e[20] = v, e[21] = $) : $ = e[21], $;
51
- }, D = (i) => {
52
- const e = N(10), {
53
- name: t,
54
- description: n,
55
- compact: o
56
- } = i, a = o === void 0 ? !1 : o, l = a ? "label/XS/medium" : "label/S/medium", c = a ? "0.08em" : void 0, s = a ? "uppercase" : void 0;
57
- let d;
58
- e[0] !== t || e[1] !== l || e[2] !== c || e[3] !== s ? (d = /* @__PURE__ */ r(pe, { textStyle: l, color: "fg.muted", letterSpacing: c, textTransform: s, truncate: !0, children: t }), e[0] = t, e[1] = l, e[2] = c, e[3] = s, e[4] = d) : d = e[4];
59
- let f;
60
- e[5] !== n ? (f = n ? /* @__PURE__ */ r(De, { content: n, children: /* @__PURE__ */ r(se, { as: yt, boxSize: "12px", color: "fg.muted", opacity: 0.6, cursor: "help", flexShrink: 0 }) }) : null, e[5] = n, e[6] = f) : f = e[6];
61
- let m;
62
- return e[7] !== d || e[8] !== f ? (m = /* @__PURE__ */ _(We, { gap: "1", alignItems: "center", minW: "0", children: [
63
- d,
64
- f
65
- ] }), e[7] = d, e[8] = f, e[9] = m) : m = e[9], m;
66
- }, de = (i) => {
67
- const e = N(17), {
68
- name: t,
69
- description: n,
70
- hideLabel: o,
71
- fullWidth: a,
72
- orientation: l,
73
- labelTrailing: c,
74
- children: s
75
- } = i, d = o === void 0 ? !1 : o, f = a === void 0 ? !1 : a, m = l === void 0 ? "auto" : l;
76
- let g;
77
- e[0] !== n || e[1] !== d || e[2] !== t ? (g = d || !t ? null : /* @__PURE__ */ r(D, { name: t, description: n }), e[0] = n, e[1] = d, e[2] = t, e[3] = g) : g = e[3];
78
- const b = g;
79
- if ((m === "auto" ? f ? "stacked" : "inline" : m) === "stacked") {
80
- const $ = b || c;
81
- let k;
82
- e[4] !== $ || e[5] !== b || e[6] !== c ? (k = $ ? /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", gap: "xs", mb: "xs", minW: "0", children: [
83
- b,
84
- c
85
- ] }) : null, e[4] = $, e[5] = b, e[6] = c, e[7] = k) : k = e[7];
86
- let C;
87
- return e[8] !== s || e[9] !== k ? (C = /* @__PURE__ */ _(E, { minW: "0", children: [
88
- k,
89
- s
90
- ] }), e[8] = s, e[9] = k, e[10] = C) : C = e[10], C;
91
- }
92
- let u;
93
- e[11] !== s || e[12] !== c ? (u = /* @__PURE__ */ _(G, { alignItems: "center", gap: "xs", minW: "0", children: [
94
- c,
95
- s
96
- ] }), e[11] = s, e[12] = c, e[13] = u) : u = e[13];
97
- let v;
98
- return e[14] !== b || e[15] !== u ? (v = /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", minW: "0", children: [
99
- b,
100
- u
101
- ] }), e[14] = b, e[15] = u, e[16] = v) : v = e[16], v;
102
- }, An = (i) => {
103
- const e = N(2);
104
- let t;
105
- return e[0] !== i ? (t = /* @__PURE__ */ r(He, { size: "sm", variant: "chip", ...i }), e[0] = i, e[1] = t) : t = e[1], t;
106
- }, En = `@font-face {
107
- font-family: "prompt-studio-icons";
108
- src: url("$fonts/prompt-studio-icons.eot?959122fb");
109
- src:
110
- url("$fonts/prompt-studio-icons.eot?959122fb#iefix") format("embedded-opentype"),
111
- url("$fonts/prompt-studio-icons.woff2?959122fb") format("woff2"),
112
- url("$fonts/prompt-studio-icons.woff?959122fb") format("woff"),
113
- url("$fonts/prompt-studio-icons.ttf?959122fb") format("truetype"),
114
- url("$fonts/prompt-studio-icons.svg?959122fb#prompt-studio-icons") format("svg");
115
- font-weight: normal;
116
- font-style: normal;
117
- font-display: block;
118
- }
119
-
120
- [class^="icon-"]::before,
121
- [class*=" icon-"]::before {
122
- font-family: "prompt-studio-icons", sans-serif;
123
- font-style: normal;
124
- font-weight: normal;
125
- speak: never;
126
- display: inline-block;
127
- text-decoration: inherit;
128
- width: 1em;
129
- margin-right: 0.2em;
130
- text-align: center;
131
- font-variant: normal;
132
- text-transform: none;
133
- line-height: 1em;
134
- margin-left: 0.2em;
135
- -webkit-font-smoothing: antialiased;
136
- -moz-osx-font-smoothing: grayscale;
137
- }
138
-
139
- .icon-cloud-add::before {
140
- content: "\\e800";
141
- }
142
- .icon-credit-usage-50::before {
143
- content: "\\e801";
144
- }
145
- .icon-history::before {
146
- content: "\\e802";
147
- }
148
- .icon-data-string::before {
149
- content: "\\e803";
150
- }
151
- .icon-data-object::before {
152
- content: "\\e804";
153
- }
154
- .icon-data-integer::before {
155
- content: "\\e805";
156
- }
157
- .icon-data-double::before {
158
- content: "\\e806";
159
- }
160
- .icon-add::before {
161
- content: "\\e807";
162
- }
163
- .icon-add-circle::before {
164
- content: "\\e808";
165
- }
166
- .icon-data-boolean::before {
167
- content: "\\e809";
168
- }
169
- .icon-add-square::before {
170
- content: "\\e80a";
171
- }
172
- .icon-data-array::before {
173
- content: "\\e80b";
174
- }
175
- .icon-status-backlog::before {
176
- content: "\\e80c";
177
- }
178
- .icon-metrics::before {
179
- content: "\\e80d";
180
- }
181
- .icon-pie-donut::before {
182
- content: "\\e80e";
183
- }
184
- .icon-area-plot::before {
185
- content: "\\e80f";
186
- }
187
- .icon-treemap::before {
188
- content: "\\e810";
189
- }
190
- .icon-align-bottom::before {
191
- content: "\\e811";
192
- }
193
- .icon-align-horizontally::before {
194
- content: "\\e812";
195
- }
196
- .icon-align-left::before {
197
- content: "\\e813";
198
- }
199
- .icon-align-right::before {
200
- content: "\\e814";
201
- }
202
- .icon-align-vertically::before {
203
- content: "\\e815";
204
- }
205
- .icon-radar-column-chart::before {
206
- content: "\\e816";
207
- }
208
- .icon-pie-full::before {
209
- content: "\\e817";
210
- }
211
- .icon-archive-1::before {
212
- content: "\\e818";
213
- }
214
- .icon-archive-2::before {
215
- content: "\\e819";
216
- }
217
- .icon-archive-add::before {
218
- content: "\\e81a";
219
- }
220
- .icon-ct::before {
221
- content: "\\e81b";
222
- }
223
- .icon-archive-minus::before {
224
- content: "\\e81c";
225
- }
226
- .icon-archive-slash::before {
227
- content: "\\e81d";
228
- }
229
- .icon-archive-tick::before {
230
- content: "\\e81e";
231
- }
232
- .icon-min::before {
233
- content: "\\e81f";
234
- }
235
- .icon-ctd::before {
236
- content: "\\e820";
237
- }
238
- .icon-std::before {
239
- content: "\\e821";
240
- }
241
- .icon-var::before {
242
- content: "\\e822";
243
- }
244
- .icon-max::before {
245
- content: "\\e823";
246
- }
247
- .icon-sum::before {
248
- content: "\\e824";
249
- }
250
- .icon-status-todo::before {
251
- content: "\\e825";
252
- }
253
- .icon-status-progress::before {
254
- content: "\\e826";
255
- }
256
- .icon-status-review::before {
257
- content: "\\e827";
258
- }
259
- .icon-status-done::before {
260
- content: "\\e828";
261
- }
262
- .icon-status-canceled::before {
263
- content: "\\e829";
264
- }
265
- .icon-level-low::before {
266
- content: "\\e82a";
267
- }
268
- .icon-arrow-down::before {
269
- content: "\\e82b";
270
- }
271
- .icon-arrow-down-1::before {
272
- content: "\\e82c";
273
- }
274
- .icon-level-mid::before {
275
- content: "\\e82d";
276
- }
277
- .icon-arrow-left::before {
278
- content: "\\e82e";
279
- }
280
- .icon-level-high::before {
281
- content: "\\e82f";
282
- }
283
- .icon-arrow-left-2::before {
284
- content: "\\e830";
285
- }
286
- .icon-level-xhigh::before {
287
- content: "\\e831";
288
- }
289
- .icon-arrow-right::before {
290
- content: "\\e832";
291
- }
292
- .icon-arrow-right-1::before {
293
- content: "\\e833";
294
- }
295
- .icon-arrow-right-3::before {
296
- content: "\\e835";
297
- }
298
- .icon-arrow-right-4::before {
299
- content: "\\e836";
300
- }
301
- .icon-arrow-square-down::before {
302
- content: "\\e838";
303
- }
304
- .icon-arrow-square-left::before {
305
- content: "\\e839";
306
- }
307
- .icon-arrow-square-up::before {
308
- content: "\\e83a";
309
- }
310
- .icon-arrow-up-2::before {
311
- content: "\\e83f";
312
- }
313
- .icon-arrow-up-3::before {
314
- content: "\\e840";
315
- }
316
- .icon-book::before {
317
- content: "\\e868";
318
- }
319
- .icon-book-1::before {
320
- content: "\\e869";
321
- }
322
- .icon-box::before {
323
- content: "\\e86e";
324
- }
325
- .icon-pointing-arrow::before {
326
- content: "\\e87d";
327
- }
328
- .icon-data-structure::before {
329
- content: "\\e87e";
330
- }
331
- .icon-brush-4::before {
332
- content: "\\e87f";
333
- }
334
- .icon-folder::before {
335
- content: "\\e880";
336
- }
337
- .icon-import-2::before {
338
- content: "\\e881";
339
- }
340
- .icon-refresh::before {
341
- content: "\\e882";
342
- }
343
- .icon-message-text-1::before {
344
- content: "\\e883";
345
- }
346
- .icon-messages-2::before {
347
- content: "\\e884";
348
- }
349
- .icon-global::before {
350
- content: "\\e885";
351
- }
352
- .icon-briefcase::before {
353
- content: "\\e886";
354
- }
355
- .icon-row-vertical::before {
356
- content: "\\e887";
357
- }
358
- .icon-format-square::before {
359
- content: "\\e888";
360
- }
361
- .icon-document-copy::before {
362
- content: "\\e889";
363
- }
364
- .icon-document-forward::before {
365
- content: "\\e88a";
366
- }
367
- .icon-tick-circle-1::before {
368
- content: "\\e88b";
369
- }
370
- .icon-data-timestamp::before {
371
- content: "\\e88c";
372
- }
373
- .icon-more-2::before {
374
- content: "\\e88d";
375
- }
376
- .icon-notification::before {
377
- content: "\\e88e";
378
- }
379
- .icon-search-normal-1::before {
380
- content: "\\e890";
381
- }
382
- .icon-home-1::before {
383
- content: "\\e891";
384
- }
385
- .icon-brush-1::before {
386
- content: "\\e892";
387
- }
388
- .icon-paperclip-2::before {
389
- content: "\\e893";
390
- }
391
- .icon-grid-4::before {
392
- content: "\\e894";
393
- }
394
- .icon-mouse-circle::before {
395
- content: "\\e895";
396
- }
397
- .icon-message-question::before {
398
- content: "\\e896";
399
- }
400
- .icon-saving::before {
401
- content: "\\e898";
402
- }
403
- .icon-chevron-double::before {
404
- content: "\\e899";
405
- }
406
- .icon-close::before {
407
- content: "\\e89a";
408
- }
409
- .icon-more-info::before {
410
- content: "\\e89b";
411
- }
412
- .icon-arrow-up::before {
413
- content: "\\e89c";
414
- }
415
- .icon-reorder::before {
416
- content: "\\e89d";
417
- }
418
- .icon-refresh-1::before {
419
- content: "\\e89e";
420
- }
421
- .icon-text-variable::before {
422
- content: "\\e89f";
423
- }
424
- .icon-header-horizontal::before {
425
- content: "\\e8a0";
426
- }
427
- .icon-edit-1::before {
428
- content: "\\e8a1";
429
- }
430
- .icon-credit-usage-0::before {
431
- content: "\\e8a2";
432
- }
433
- .icon-credit-usage-25::before {
434
- content: "\\e8a3";
435
- }
436
- .icon-credit-usage-75::before {
437
- content: "\\e8a4";
438
- }
439
- .icon-card::before {
440
- content: "\\e8a5";
441
- }
442
- .icon-credit-usage-100::before {
443
- content: "\\e8a6";
444
- }
445
- .icon-coding-language::before {
446
- content: "\\e8ab";
447
- }
448
- .icon-table::before {
449
- content: "\\e8ad";
450
- }
451
- .icon-check::before {
452
- content: "\\e8ae";
453
- }
454
- .icon-logo-google::before {
455
- content: "\\e8af";
456
- }
457
- .icon-data-date::before {
458
- content: "\\e8b0";
459
- }
460
- .icon-llms::before {
461
- content: "\\e8b1";
462
- }
463
- .icon-logo-openai::before {
464
- content: "\\e8b2";
465
- }
466
- .icon-logo-anthropic::before {
467
- content: "\\e8b3";
468
- }
469
- .icon-logo-meta::before {
470
- content: "\\e8b4";
471
- }
472
- .icon-data-variant::before {
473
- content: "\\e8b5";
474
- }
475
- .icon-chart-1::before {
476
- content: "\\e8b6";
477
- }
478
- .icon-schema::before {
479
- content: "\\e8b7";
480
- }
481
- .icon-ascending::before {
482
- content: "\\e8b8";
483
- }
484
- .icon-bar-chart-100stacked::before {
485
- content: "\\e8ba";
486
- }
487
- .icon-results::before {
488
- content: "\\e8bc";
489
- }
490
- .icon-bar-chart::before {
491
- content: "\\e8be";
492
- }
493
- .icon-descending::before {
494
- content: "\\e8bf";
495
- }
496
- .icon-bar-chart-vertical::before {
497
- content: "\\e8c0";
498
- }
499
- .icon-step-before-points::before {
500
- content: "\\e8c4";
501
- }
502
- .icon-step-after-points::before {
503
- content: "\\e8c6";
504
- }
505
- .icon-line-rounded::before {
506
- content: "\\e8c9";
507
- }
508
- .icon-line-sharp::before {
509
- content: "\\e8cb";
510
- }
511
- .icon-bar-chart-simple::before {
512
- content: "\\e8cc";
513
- }
514
- .icon-pie-chart::before {
515
- content: "\\e8cd";
516
- }
517
- .icon-bar-chart-stacked::before {
518
- content: "\\e8ce";
519
- }
520
- .icon-map::before {
521
- content: "\\e8cf";
522
- }
523
- .icon-radar-bar-chart::before {
524
- content: "\\e8d0";
525
- }
526
- .icon-radar-chart::before {
527
- content: "\\e8d1";
528
- }
529
- .icon-metric::before {
530
- content: "\\e8d2";
531
- }
532
- .icon-area-plot-1::before {
533
- content: "\\e8d3";
534
- }
535
- .icon-avg::before {
536
- content: "\\e8d4";
537
- }
538
- .icon-area-plot-stacked100::before {
539
- content: "\\e8d5";
540
- }
541
- .icon-scatter-bubbles::before {
542
- content: "\\e8d6";
543
- }
544
- .icon-code::before {
545
- content: "\\e8d7";
546
- }
547
- .icon-code-1::before {
548
- content: "\\e8d8";
549
- }
550
- .icon-code-circle::before {
551
- content: "\\e8d9";
552
- }
553
- .icon-scatter-plot::before {
554
- content: "\\e8db";
555
- }
556
- .icon-scatter-dots::before {
557
- content: "\\e8dc";
558
- }
559
- .icon-med::before {
560
- content: "\\e8dd";
561
- }
562
- .icon-command-square::before {
563
- content: "\\e8e1";
564
- }
565
- .icon-component::before {
566
- content: "\\e8e2";
567
- }
568
- .icon-copy::before {
569
- content: "\\e8e9";
570
- }
571
- .icon-danger::before {
572
- content: "\\e8f5";
573
- }
574
- .icon-visualization::before {
575
- content: "\\e8fc";
576
- }
577
- .icon-document-1::before {
578
- content: "\\e911";
579
- }
580
- .icon-document-code::before {
581
- content: "\\e913";
582
- }
583
- .icon-document-download::before {
584
- content: "\\e916";
585
- }
586
- .icon-document-text-1::before {
587
- content: "\\e91f";
588
- }
589
- .icon-document-upload::before {
590
- content: "\\e920";
591
- }
592
- .icon-edit::before {
593
- content: "\\e927";
594
- }
595
- .icon-edit-2::before {
596
- content: "\\e928";
597
- }
598
- .icon-eraser-1::before {
599
- content: "\\e939";
600
- }
601
- .icon-export-1::before {
602
- content: "\\e93b";
603
- }
604
- .icon-export-3::before {
605
- content: "\\e93d";
606
- }
607
- .icon-eye::before {
608
- content: "\\e93f";
609
- }
610
- .icon-eye-slash::before {
611
- content: "\\e940";
612
- }
613
- .icon-flash-1::before {
614
- content: "\\e950";
615
- }
616
- .icon-folder-2::before {
617
- content: "\\e955";
618
- }
619
- .icon-glass::before {
620
- content: "\\e97c";
621
- }
622
- .icon-home-2::before {
623
- content: "\\e9aa";
624
- }
625
- .icon-import-1::before {
626
- content: "\\e9b5";
627
- }
628
- .icon-info-circle::before {
629
- content: "\\e9b7";
630
- }
631
- .icon-key::before {
632
- content: "\\e9bc";
633
- }
634
- .icon-data::before {
635
- content: "\\e9c7";
636
- }
637
- .icon-link-2::before {
638
- content: "\\e9d1";
639
- }
640
- .icon-location::before {
641
- content: "\\e9d5";
642
- }
643
- .icon-location-slash::before {
644
- content: "\\e9d9";
645
- }
646
- .icon-login-1::before {
647
- content: "\\e9e0";
648
- }
649
- .icon-logout-1::before {
650
- content: "\\e9e2";
651
- }
652
- .icon-magicpen::before {
653
- content: "\\e9e4";
654
- }
655
- .icon-maximize-2::before {
656
- content: "\\e9f0";
657
- }
658
- .icon-maximize-4::before {
659
- content: "\\e9f2";
660
- }
661
- .icon-maximize-21::before {
662
- content: "\\e9f3";
663
- }
664
- .icon-menu-1::before {
665
- content: "\\e9f8";
666
- }
667
- .icon-message::before {
668
- content: "\\e9fa";
669
- }
670
- .icon-messages::before {
671
- content: "\\ea06";
672
- }
673
- .icon-microphone-2::before {
674
- content: "\\ea11";
675
- }
676
- .icon-minus-cirlce::before {
677
- content: "\\ea18";
678
- }
679
- .icon-moon::before {
680
- content: "\\ea2e";
681
- }
682
- .icon-more::before {
683
- content: "\\ea2f";
684
- }
685
- .icon-note::before {
686
- content: "\\ea44";
687
- }
688
- .icon-paperclip::before {
689
- content: "\\ea56";
690
- }
691
- .icon-play::before {
692
- content: "\\ea6a";
693
- }
694
- .icon-presention-chart::before {
695
- content: "\\ea6f";
696
- }
697
- .icon-redo::before {
698
- content: "\\ea9c";
699
- }
700
- .icon-rotate-left::before {
701
- content: "\\eaa8";
702
- }
703
- .icon-rotate-right::before {
704
- content: "\\eaaa";
705
- }
706
- .icon-search-zoom-in-1::before {
707
- content: "\\eac8";
708
- }
709
- .icon-search-zoom-out::before {
710
- content: "\\eac9";
711
- }
712
- .icon-send-1::before {
713
- content: "\\ead1";
714
- }
715
- .icon-setting-2::before {
716
- content: "\\ead6";
717
- }
718
- .icon-setting-4::before {
719
- content: "\\ead8";
720
- }
721
- .icon-setting-5::before {
722
- content: "\\ead9";
723
- }
724
- .icon-shuffle::before {
725
- content: "\\eae9";
726
- }
727
- .icon-sidebar-bottom::before {
728
- content: "\\eaea";
729
- }
730
- .icon-sidebar-left::before {
731
- content: "\\eaeb";
732
- }
733
- .icon-sidebar-right::before {
734
- content: "\\eaec";
735
- }
736
- .icon-sidebar-top::before {
737
- content: "\\eaed";
738
- }
739
- .icon-slash::before {
740
- content: "\\eaf3";
741
- }
742
- .icon-smallcaps::before {
743
- content: "\\eaf9";
744
- }
745
- .icon-sms::before {
746
- content: "\\eafd";
747
- }
748
- .icon-star::before {
749
- content: "\\eb07";
750
- }
751
- .icon-stop::before {
752
- content: "\\eb0e";
753
- }
754
- .icon-sun-1::before {
755
- content: "\\eb15";
756
- }
757
- .icon-tag-cross::before {
758
- content: "\\eb19";
759
- }
760
- .icon-task::before {
761
- content: "\\eb1c";
762
- }
763
- .icon-task-square::before {
764
- content: "\\eb1d";
765
- }
766
- .icon-teacher::before {
767
- content: "\\eb1e";
768
- }
769
- .icon-text::before {
770
- content: "\\eb1f";
771
- }
772
- .icon-textalign-center::before {
773
- content: "\\eb20";
774
- }
775
- .icon-textalign-justifycenter::before {
776
- content: "\\eb21";
777
- }
778
- .icon-textalign-left::before {
779
- content: "\\eb24";
780
- }
781
- .icon-textalign-right::before {
782
- content: "\\eb25";
783
- }
784
- .icon-text-block::before {
785
- content: "\\eb26";
786
- }
787
- .icon-text-bold::before {
788
- content: "\\eb27";
789
- }
790
- .icon-text-italic::before {
791
- content: "\\eb28";
792
- }
793
- .icon-text-underline::before {
794
- content: "\\eb29";
795
- }
796
- .icon-tick-circle::before {
797
- content: "\\eb2a";
798
- }
799
- .icon-timer-1::before {
800
- content: "\\eb32";
801
- }
802
- .icon-trash::before {
803
- content: "\\eb3c";
804
- }
805
- .icon-undo::before {
806
- content: "\\eb47";
807
- }
808
- .icon-user::before {
809
- content: "\\eb4a";
810
- }
811
- .icon-video-vertical::before {
812
- content: "\\eb61";
813
- }
814
- .icon-wallet-2::before {
815
- content: "\\eb6d";
816
- }
817
- .icon-wifi::before {
818
- content: "\\eb7b";
819
- }
820
- .icon-stockholm::before {
821
- content: "\\eb81";
822
- }
823
- .icon-perplexity-ai::before {
824
- content: "\\eb82";
825
- }
826
- `, Pn = /\.icon-([\w-]+)::before\s*\{\s*content:\s*"(\\[0-9a-f]+)"/g, Nn = new Map(Array.from(En.matchAll(Pn), ([, i, e]) => [i, e])), Hn = 89.5, Bn = "0.209em", jn = nt("span"), Fn = (i, e) => ({
827
- position: "relative",
828
- display: "inline-block",
829
- verticalAlign: "middle",
830
- flexShrink: 0,
831
- boxSize: "1em",
832
- lineHeight: 1,
833
- containerType: "size",
834
- "&::before": {
835
- content: i,
836
- fontSize: e,
837
- position: "absolute",
838
- inset: 0,
839
- fontFamily: '"prompt-studio-icons", sans-serif',
840
- fontStyle: "normal",
841
- fontWeight: "normal",
842
- lineHeight: "100cqmin",
843
- textAlign: "center",
844
- transform: `translateY(${Bn})`
845
- }
846
- }), st = (i, e = {}) => {
847
- const t = Fn(`"${Nn.get(i) ?? ""}"`, `${(Hn * (e.scale ?? 1)).toFixed(1)}cqmin`), n = (o) => {
848
- const a = N(2);
849
- let l;
850
- return a[0] !== o ? (l = /* @__PURE__ */ r(jn, { "aria-hidden": !0, ...o, css: t }), a[0] = o, a[1] = l) : l = a[1], l;
851
- };
852
- return n.displayName = `GlyphIcon(${i})`, n;
853
- }, sl = ["gray", "red", "orange", "yellow", "green", "teal", "blue", "cyan", "purple", "pink"], Ve = (i, e) => ({
854
- value: i,
855
- label: e,
856
- icon: st(i)
857
- }), Pe = (i, e) => ({
858
- value: i,
859
- label: e,
860
- icon: st(i, {
861
- scale: 0.82
862
- })
863
- }), Gn = [
864
- {
865
- value: null,
866
- label: "none",
867
- icon: St
868
- },
869
- {
870
- value: "flag",
871
- label: "flag",
872
- icon: Ct
873
- },
874
- {
875
- value: "bug",
876
- label: "bug",
877
- icon: kt
878
- },
879
- {
880
- value: "sparkles",
881
- label: "sparkles",
882
- icon: wt
883
- },
884
- {
885
- value: "book-open",
886
- label: "book open",
887
- icon: Vt
888
- },
889
- {
890
- value: "wrench",
891
- label: "wrench",
892
- icon: $t
893
- },
894
- {
895
- value: "zap",
896
- label: "zap",
897
- icon: It
898
- },
899
- {
900
- value: "feather",
901
- label: "feather",
902
- icon: Lt
903
- },
904
- {
905
- value: "scale",
906
- label: "scale",
907
- icon: zt
908
- },
909
- {
910
- value: "layers",
911
- label: "layers",
912
- icon: Tt
913
- },
914
- {
915
- value: "star",
916
- label: "star",
917
- icon: Wt
918
- },
919
- {
920
- value: "flame",
921
- label: "flame",
922
- icon: Rt
923
- },
924
- {
925
- value: "lightbulb",
926
- label: "lightbulb",
927
- icon: _t
928
- },
929
- {
930
- value: "shield",
931
- label: "shield",
932
- icon: Ot
933
- },
934
- {
935
- value: "eye",
936
- label: "eye",
937
- icon: At
938
- },
939
- // The design draws the clock cell with lucide's timer.
940
- {
941
- value: "clock",
942
- label: "clock",
943
- icon: Et
944
- },
945
- {
946
- value: "tag",
947
- label: "tag",
948
- icon: Pt
949
- },
950
- {
951
- value: "code",
952
- label: "code",
953
- icon: Nt
954
- },
955
- {
956
- value: "rocket",
957
- label: "rocket",
958
- icon: Ht
959
- },
960
- {
961
- value: "heart",
962
- label: "heart",
963
- icon: Bt
964
- },
965
- {
966
- value: "bookmark",
967
- label: "bookmark",
968
- icon: jt
969
- },
970
- {
971
- value: "target",
972
- label: "target",
973
- icon: Ft
974
- },
975
- {
976
- value: "bell",
977
- label: "bell",
978
- icon: Gt
979
- },
980
- {
981
- value: "hash",
982
- label: "hash",
983
- icon: Ut
984
- },
985
- Ve("status-backlog", "status backlog"),
986
- Ve("status-todo", "status todo"),
987
- Ve("status-progress", "status in progress"),
988
- Ve("status-review", "status in review"),
989
- Ve("status-done", "status done"),
990
- Ve("status-canceled", "status canceled"),
991
- {
992
- value: "ticket",
993
- label: "ticket",
994
- icon: qt
995
- },
996
- {
997
- value: "git-branch",
998
- label: "git branch",
999
- icon: Dt
1000
- },
1001
- Pe("level-low", "level low"),
1002
- Pe("level-mid", "level medium"),
1003
- Pe("level-high", "level high"),
1004
- Pe("level-xhigh", "level very high"),
1005
- {
1006
- value: "bot",
1007
- label: "bot",
1008
- icon: Mt
1009
- },
1010
- {
1011
- value: "puzzle",
1012
- label: "puzzle",
1013
- icon: Kt
1014
- },
1015
- {
1016
- value: "workflow",
1017
- label: "workflow",
1018
- icon: Xt
1019
- },
1020
- {
1021
- value: "kanban",
1022
- label: "kanban",
1023
- icon: Yt
1024
- },
1025
- {
1026
- value: "message-square",
1027
- label: "message square",
1028
- icon: Zt
1029
- },
1030
- {
1031
- value: "folder",
1032
- label: "folder",
1033
- icon: Qt
1034
- },
1035
- {
1036
- value: "file-text",
1037
- label: "file text",
1038
- icon: Jt
1039
- },
1040
- {
1041
- value: "history",
1042
- label: "history",
1043
- icon: en
1044
- },
1045
- {
1046
- value: "play",
1047
- label: "play",
1048
- icon: tn
1049
- },
1050
- {
1051
- value: "terminal",
1052
- label: "terminal",
1053
- icon: nn
1054
- },
1055
- {
1056
- value: "cpu",
1057
- label: "CPU",
1058
- icon: on
1059
- },
1060
- {
1061
- value: "users",
1062
- label: "users",
1063
- icon: ln
1064
- },
1065
- // Prompt Studio concepts: the icons its own tickets, boards, workspaces and
1066
- // notifications are drawn with.
1067
- {
1068
- value: "component",
1069
- label: "ticket",
1070
- icon: rn
1071
- },
1072
- {
1073
- value: "square-kanban",
1074
- label: "board",
1075
- icon: cn
1076
- },
1077
- {
1078
- value: "git-commit-horizontal",
1079
- label: "workspace",
1080
- icon: an
1081
- },
1082
- {
1083
- value: "inbox",
1084
- label: "notifications",
1085
- icon: sn
1086
- },
1087
- {
1088
- value: "list-checks",
1089
- label: "checklist",
1090
- icon: dn
1091
- },
1092
- {
1093
- value: "archive",
1094
- label: "archive",
1095
- icon: fn
1096
- },
1097
- {
1098
- value: "link",
1099
- label: "link",
1100
- icon: un
1101
- },
1102
- {
1103
- value: "settings",
1104
- label: "settings",
1105
- icon: bn
1106
- }
1107
- ], $e = (i, e = Gn) => {
1108
- const t = (i ?? "circle").replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([a-zA-Z])([0-9])/g, "$1-$2").toLowerCase();
1109
- return e.find((o) => o.value === t)?.icon ?? mn;
1110
- }, dl = ["in_progress", "awaiting_input", "queued", "completed", "failed", "cancelled", "disconnected"], Un = (i) => i === "in_progress" ? hn : i === "completed" ? ct : i === "failed" ? at : i === "cancelled" ? pn : i === "disconnected" ? gn : i === "queued" ? vn : i === "awaiting_input" ? xn : yn, qn = (i) => i === "in_progress" ? "fg.info" : i === "completed" ? "fg.success" : i === "failed" ? "fg.error" : i === "cancelled" || i === "disconnected" ? "fg.warning" : i === "queued" ? "fg.info" : i === "awaiting_input" ? "fg.warning" : "fg.muted", Dn = (i) => {
1111
- const e = N(11), {
1112
- status: t,
1113
- boxSize: n,
1114
- ariaLabel: o,
1115
- cursor: a,
1116
- onClick: l
1117
- } = i, c = n === void 0 ? "14px" : n, s = o === void 0 ? "Session status" : o;
1118
- let d;
1119
- e[0] !== t ? (d = Un(t), e[0] = t, e[1] = d) : d = e[1];
1120
- let f;
1121
- e[2] !== t ? (f = qn(t), e[2] = t, e[3] = f) : f = e[3];
1122
- let m;
1123
- return e[4] !== s || e[5] !== c || e[6] !== a || e[7] !== l || e[8] !== d || e[9] !== f ? (m = /* @__PURE__ */ r(se, { as: d, boxSize: c, color: f, "aria-label": s, cursor: a, onClick: l }), e[4] = s, e[5] = c, e[6] = a, e[7] = l, e[8] = d, e[9] = f, e[10] = m) : m = e[10], m;
1124
- }, Mn = Me.forwardRef(function(e, t) {
1125
- const n = N(32);
1126
- let o, a, l, c, s, d, f;
1127
- n[0] !== e ? ({
1128
- inputProps: a,
1129
- children: o,
1130
- rootRef: c,
1131
- trackLabel: f,
1132
- thumbLabel: d,
1133
- disabled: s,
1134
- ...l
1135
- } = e, n[0] = e, n[1] = o, n[2] = a, n[3] = l, n[4] = c, n[5] = s, n[6] = d, n[7] = f) : (o = n[1], a = n[2], l = n[3], c = n[4], s = n[5], d = n[6], f = n[7]);
1136
- const m = s === void 0 ? !1 : s, g = m ? "not-allowed" : "pointer";
1137
- let b;
1138
- n[8] !== a || n[9] !== t ? (b = /* @__PURE__ */ r(Se.HiddenInput, { ref: t, ...a }), n[8] = a, n[9] = t, n[10] = b) : b = n[10];
1139
- let h;
1140
- n[11] !== d ? (h = d && /* @__PURE__ */ r(Se.ThumbIndicator, { fallback: d?.off, children: d?.on }), n[11] = d, n[12] = h) : h = n[12];
1141
- let u;
1142
- n[13] !== h ? (u = /* @__PURE__ */ r(Se.Thumb, { children: h }), n[13] = h, n[14] = u) : u = n[14];
1143
- let v;
1144
- n[15] !== f ? (v = f && /* @__PURE__ */ r(Se.Indicator, { fallback: f.off, children: f.on }), n[15] = f, n[16] = v) : v = n[16];
1145
- let $;
1146
- n[17] !== g || n[18] !== u || n[19] !== v ? ($ = /* @__PURE__ */ _(Se.Control, { cursor: g, children: [
1147
- u,
1148
- v
1149
- ] }), n[17] = g, n[18] = u, n[19] = v, n[20] = $) : $ = n[20];
1150
- let k;
1151
- n[21] !== o || n[22] !== g ? (k = o != null && /* @__PURE__ */ r(Se.Label, { cursor: g, children: o }), n[21] = o, n[22] = g, n[23] = k) : k = n[23];
1152
- let C;
1153
- return n[24] !== m || n[25] !== g || n[26] !== l || n[27] !== c || n[28] !== b || n[29] !== $ || n[30] !== k ? (C = /* @__PURE__ */ _(Se.Root, { ref: c, disabled: m, cursor: g, ...l, children: [
1154
- b,
1155
- $,
1156
- k
1157
- ] }), n[24] = m, n[25] = g, n[26] = l, n[27] = c, n[28] = b, n[29] = $, n[30] = k, n[31] = C) : C = n[31], C;
1158
- }), Kn = {
1159
- amber: "yellow"
1160
- }, Xn = /* @__PURE__ */ new Set(["gray", "red", "orange", "yellow", "green", "teal", "blue", "cyan", "purple", "pink"]), Yn = {
1161
- bg: {
1162
- _light: "bg.muted",
1163
- _dark: "bg.subtle"
1164
- },
1165
- color: "fg.muted",
1166
- _hover: {
1167
- bg: {
1168
- _light: "bg.subtle",
1169
- _dark: "bg.hover"
1170
- }
1171
- }
1172
- }, Zn = (i) => i === "current_branch" ? Sn : Cn, Qn = (i) => {
1173
- if (i.startsWith("#") || i.startsWith("rgb") || i.startsWith("hsl") || i.startsWith("var("))
1174
- return i;
1175
- const e = Kn[i] ?? i;
1176
- return Xn.has(e) ? `var(--chakra-colors-${e}-500)` : e;
1177
- }, Jn = (i) => i ? i.description ? `${i.name}: ${i.description}` : i.name : null, dt = (i, e) => {
1178
- i.stopPropagation(), e?.();
1179
- }, eo = (i, e) => {
1180
- i.stopPropagation(), e?.();
1181
- }, to = (i) => {
1182
- const e = N(9), {
1183
- sessionStatus: t,
1184
- onSessionIndicatorClick: n
1185
- } = i;
1186
- if (!t)
1187
- return null;
1188
- const o = n ? "Open latest session" : "Latest session status";
1189
- let a;
1190
- e[0] !== n ? (a = n ? (s) => dt(s, n) : void 0, e[0] = n, e[1] = a) : a = e[1];
1191
- let l;
1192
- e[2] !== t || e[3] !== o || e[4] !== a ? (l = /* @__PURE__ */ r(Dn, { status: t, boxSize: "12px", ariaLabel: o, cursor: "pointer", onClick: a }), e[2] = t, e[3] = o, e[4] = a, e[5] = l) : l = e[5];
1193
- let c;
1194
- return e[6] !== o || e[7] !== l ? (c = /* @__PURE__ */ r(De, { content: o, children: l }), e[6] = o, e[7] = l, e[8] = c) : c = e[8], c;
1195
- }, no = (i) => {
1196
- const e = N(13), {
1197
- workspaceType: t,
1198
- initializing: n,
1199
- label: o,
1200
- shorthand: a
1201
- } = i;
1202
- let l;
1203
- e[0] !== t ? (l = Zn(t), e[0] = t, e[1] = l) : l = e[1];
1204
- const c = l, s = o ?? a, d = t === "worktree" ? "Worktree" : "Current branch";
1205
- let f;
1206
- e[2] !== c || e[3] !== d ? (f = /* @__PURE__ */ r(se, { as: c, boxSize: "3.5", flexShrink: 0, "aria-label": d }), e[2] = c, e[3] = d, e[4] = f) : f = e[4];
1207
- let m;
1208
- e[5] !== n ? (m = n ? /* @__PURE__ */ r(lt, { size: "xs", color: "fg.muted" }) : null, e[5] = n, e[6] = m) : m = e[6];
1209
- let g;
1210
- e[7] !== s ? (g = s ? /* @__PURE__ */ r(pe, { as: "span", textStyle: "label/XS/medium", color: "fg.muted", minW: "0", maxW: "10rem", truncate: !0, children: s }) : null, e[7] = s, e[8] = g) : g = e[8];
1211
- let b;
1212
- return e[9] !== f || e[10] !== m || e[11] !== g ? (b = /* @__PURE__ */ _(We, { as: "span", gap: "2xs", alignItems: "center", color: "fg.muted", minW: "0", children: [
1213
- f,
1214
- m,
1215
- g
1216
- ] }), e[9] = f, e[10] = m, e[11] = g, e[12] = b) : b = e[12], b;
1217
- }, oo = (i) => {
1218
- const e = N(10), {
1219
- attemptStatus: t
1220
- } = i;
1221
- if (!t)
1222
- return null;
1223
- let n;
1224
- e[0] !== t ? (n = Jn(t), e[0] = t, e[1] = n) : n = e[1];
1225
- let o;
1226
- e[2] !== t.color ? (o = Qn(t.color), e[2] = t.color, e[3] = o) : o = e[3];
1227
- const a = `Attempt status ${t.name}`;
1228
- let l;
1229
- e[4] !== o || e[5] !== a ? (l = /* @__PURE__ */ r(E, { as: "span", boxSize: "8px", borderRadius: "full", backgroundColor: o, flexShrink: 0, "aria-label": a, "data-testid": "workspace-attempt-status" }), e[4] = o, e[5] = a, e[6] = l) : l = e[6];
1230
- let c;
1231
- return e[7] !== n || e[8] !== l ? (c = /* @__PURE__ */ r(De, { content: n, children: l }), e[7] = n, e[8] = l, e[9] = c) : c = e[9], c;
1232
- }, lo = (i) => {
1233
- const e = N(7), {
1234
- diffAdditions: t,
1235
- diffDeletions: n
1236
- } = i;
1237
- if (typeof t != "number" || typeof n != "number")
1238
- return null;
1239
- let o;
1240
- e[0] !== t ? (o = /* @__PURE__ */ _(pe, { as: "span", textStyle: "label/XS/medium", color: "fg.success", children: [
1241
- "+",
1242
- t
1243
- ] }), e[0] = t, e[1] = o) : o = e[1];
1244
- let a;
1245
- e[2] !== n ? (a = /* @__PURE__ */ _(pe, { as: "span", textStyle: "label/XS/medium", color: "fg.error", children: [
1246
- "-",
1247
- n
1248
- ] }), e[2] = n, e[3] = a) : a = e[3];
1249
- let l;
1250
- return e[4] !== o || e[5] !== a ? (l = /* @__PURE__ */ _(We, { as: "span", gap: "3xs", flexShrink: 0, children: [
1251
- o,
1252
- a
1253
- ] }), e[4] = o, e[5] = a, e[6] = l) : l = e[6], l;
1254
- }, io = (i) => {
1255
- const e = N(5), {
1256
- hasMultipleWorkspaces: t,
1257
- onDropdownClick: n
1258
- } = i;
1259
- if (!t)
1260
- return null;
1261
- const o = n ? "pointer" : "default";
1262
- let a;
1263
- e[0] !== n ? (a = n ? (c) => dt(c, n) : void 0, e[0] = n, e[1] = a) : a = e[1];
1264
- let l;
1265
- return e[2] !== o || e[3] !== a ? (l = /* @__PURE__ */ r(se, { as: qe, boxSize: "12px", color: "fg.muted", cursor: o, "aria-label": "Workspace selector", onClick: a }), e[2] = o, e[3] = a, e[4] = l) : l = e[4], l;
1266
- }, fl = (i) => {
1267
- const e = N(27), {
1268
- workspaceType: t,
1269
- initializing: n,
1270
- label: o,
1271
- shorthand: a,
1272
- attemptStatus: l,
1273
- sessionStatus: c,
1274
- showLeadingSessionIndicator: s,
1275
- diffAdditions: d,
1276
- diffDeletions: f,
1277
- hasMultipleWorkspaces: m,
1278
- onClick: g,
1279
- onDropdownClick: b,
1280
- onSessionIndicatorClick: h
1281
- } = i, u = n === void 0 ? !1 : n, v = s === void 0 ? !0 : s, $ = m === void 0 ? !1 : m, k = g || b || $ ? "pointer" : "default";
1282
- let C;
1283
- e[0] !== g ? (C = g ? (I) => eo(I, g) : void 0, e[0] = g, e[1] = C) : C = e[1];
1284
- let x;
1285
- e[2] !== h || e[3] !== c || e[4] !== v ? (x = v ? /* @__PURE__ */ r(to, { sessionStatus: c, onSessionIndicatorClick: h }) : null, e[2] = h, e[3] = c, e[4] = v, e[5] = x) : x = e[5];
1286
- let p;
1287
- e[6] !== u || e[7] !== o || e[8] !== a || e[9] !== t ? (p = /* @__PURE__ */ r(no, { workspaceType: t, initializing: u, label: o, shorthand: a }), e[6] = u, e[7] = o, e[8] = a, e[9] = t, e[10] = p) : p = e[10];
1288
- let y;
1289
- e[11] !== l ? (y = /* @__PURE__ */ r(oo, { attemptStatus: l }), e[11] = l, e[12] = y) : y = e[12];
1290
- let S;
1291
- e[13] !== d || e[14] !== f ? (S = /* @__PURE__ */ r(lo, { diffAdditions: d, diffDeletions: f }), e[13] = d, e[14] = f, e[15] = S) : S = e[15];
1292
- let V;
1293
- e[16] !== $ || e[17] !== b ? (V = /* @__PURE__ */ r(io, { hasMultipleWorkspaces: $, onDropdownClick: b }), e[16] = $, e[17] = b, e[18] = V) : V = e[18];
1294
- let L;
1295
- return e[19] !== k || e[20] !== C || e[21] !== x || e[22] !== p || e[23] !== y || e[24] !== S || e[25] !== V ? (L = /* @__PURE__ */ _(He, { as: "span", display: "inline-flex", gap: "2xs", alignItems: "center", minW: "0", maxW: "100%", variant: "subtle", ...Yn, textStyle: "label/XS/medium", cursor: k, transition: "background-color 0.2s ease-in-out", onClick: C, "data-testid": "workspace-badge", children: [
1296
- x,
1297
- p,
1298
- y,
1299
- S,
1300
- V
1301
- ] }), e[19] = k, e[20] = C, e[21] = x, e[22] = p, e[23] = y, e[24] = S, e[25] = V, e[26] = L) : L = e[26], L;
1302
- }, ro = (i, e) => i ? /* @__PURE__ */ r(se, { as: e ? kn : wn, boxSize: "14px", color: e ? "fg" : "fg.muted" }) : e ? /* @__PURE__ */ r(se, { as: Vn, boxSize: "14px", color: "fg" }) : null, ft = (i, e) => i ? /* @__PURE__ */ r(se, { as: $e(i.icon ?? null), boxSize: e, color: i.color ? `${i.color}.500` : "fg.muted" }) : null, Be = (i) => {
1303
- const e = N(42), {
1304
- triggerLabel: t,
1305
- options: n,
1306
- selectedIds: o,
1307
- multiSelect: a,
1308
- disabled: l,
1309
- searchable: c,
1310
- searchPlaceholder: s,
1311
- emptyText: d,
1312
- group: f,
1313
- fullWidth: m,
1314
- triggerVariant: g,
1315
- triggerAriaLabel: b,
1316
- size: h,
1317
- onToggle: u,
1318
- onGroupChange: v
1319
- } = i, $ = c === void 0 ? !1 : c, k = s === void 0 ? "Search options…" : s, C = d === void 0 ? "No options found" : d, x = g === void 0 ? "button" : g, p = h === void 0 ? "sm" : h;
1320
- let y;
1321
- e[0] !== l || e[1] !== m || e[2] !== p || e[3] !== b || e[4] !== t || e[5] !== x ? (y = x === "icon" ? /* @__PURE__ */ r(Ue, { "aria-label": b ?? "Open options", size: "2xs", variant: "ghost", disabled: l, children: t }) : /* @__PURE__ */ r(Re, { size: p, borderWidth: "1px", borderStyle: "solid", borderColor: "border", disabled: l, textStyle: p === "xs" ? "label/XS" : "label/S/regular", width: m ? "100%" : void 0, _hover: {
1322
- bg: "bg.hover",
1323
- borderColor: "border.accent-light"
1324
- }, _active: {
1325
- bg: "bg.active",
1326
- borderColor: "border.accent-light"
1327
- }, _expanded: {
1328
- bg: "bg.active",
1329
- borderColor: "border.accent-light"
1330
- }, _focusVisible: {
1331
- borderColor: "border.accent-light",
1332
- outline: "none",
1333
- boxShadow: "none"
1334
- }, children: /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", gap: "xs", w: m ? "full" : void 0, children: [
1335
- /* @__PURE__ */ r(G, { alignItems: "center", gap: "xs", children: t }),
1336
- /* @__PURE__ */ r(qe, { size: 14 })
1337
- ] }) }), e[0] = l, e[1] = m, e[2] = p, e[3] = b, e[4] = t, e[5] = x, e[6] = y) : y = e[6];
1338
- const S = y;
1339
- if ($ || f) {
1340
- let R;
1341
- if (e[7] !== u || e[8] !== n || e[9] !== o) {
1342
- let O;
1343
- e[11] !== u || e[12] !== o ? (O = (A) => ({
1344
- id: A.id,
1345
- label: A.name,
1346
- searchText: [A.id, A.description].filter(Boolean).join(" "),
1347
- secondaryLabel: A.description,
1348
- icon: $e(A.icon),
1349
- isDisabled: A.disabled,
1350
- isSelected: o.includes(A.id),
1351
- onSelect: () => u(A.id)
1352
- }), e[11] = u, e[12] = o, e[13] = O) : O = e[13], R = n.map(O), e[7] = u, e[8] = n, e[9] = o, e[10] = R;
1353
- } else
1354
- R = e[10];
1355
- const w = R;
1356
- let z;
1357
- if (e[14] !== C || e[15] !== f || e[16] !== w || e[17] !== a || e[18] !== v || e[19] !== k || e[20] !== $ || e[21] !== S) {
1358
- const O = f?.options.find((P) => P.id === f.defaultValue);
1359
- let A;
1360
- e[23] !== C ? (A = /* @__PURE__ */ r(Ce.Item, { value: "empty", disabled: !0, asChild: !0, children: /* @__PURE__ */ r(je, { asChild: !0, variant: "full-width", id: "empty", label: C, disabled: !0 }) }), e[23] = C, e[24] = A) : A = e[24], z = /* @__PURE__ */ r(Wn, { trigger: S, items: w, listId: f?.defaultValue, showSearch: $, searchPlaceholder: k, closeOnSelect: !a, emptyState: A, parentList: f ? {
1361
- items: f.options.map((P) => ({
1362
- id: P.id,
1363
- label: P.name,
1364
- searchText: [P.id, P.description].filter(Boolean).join(" "),
1365
- secondaryLabel: P.description,
1366
- icon: $e(P.icon),
1367
- isDisabled: P.disabled,
1368
- isSelected: P.id === f.defaultValue
1369
- })),
1370
- selectedLabel: O?.name ?? f.placeholder ?? `Select ${f.name.toLowerCase()}`,
1371
- selectedIcon: O ? $e(O.icon) : void 0,
1372
- ariaLabel: f.name,
1373
- disabled: f.disabled || f.options.length <= 1,
1374
- showSearch: f.searchable,
1375
- searchPlaceholder: f.searchPlaceholder ?? `Search ${f.name.toLowerCase()}…`,
1376
- emptyState: /* @__PURE__ */ r(Ce.Item, { value: "group-empty", disabled: !0, asChild: !0, children: /* @__PURE__ */ r(je, { asChild: !0, variant: "full-width", id: "group-empty", label: f.emptyText ?? `No ${f.name.toLowerCase()} found`, disabled: !0 }) }),
1377
- onSelect: (P) => v?.(P.id)
1378
- } : void 0 }), e[14] = C, e[15] = f, e[16] = w, e[17] = a, e[18] = v, e[19] = k, e[20] = $, e[21] = S, e[22] = z;
1379
- } else
1380
- z = e[22];
1381
- return z;
1382
- }
1383
- const V = !a;
1384
- let L;
1385
- e[25] !== S ? (L = /* @__PURE__ */ r(Ce.Trigger, { asChild: !0, children: S }), e[25] = S, e[26] = L) : L = e[26];
1386
- let I;
1387
- if (e[27] !== a || e[28] !== u || e[29] !== n || e[30] !== o) {
1388
- let R;
1389
- e[32] !== a || e[33] !== u || e[34] !== o ? (R = (w) => {
1390
- const z = o.includes(w.id);
1391
- return /* @__PURE__ */ r(Ce.Item, { value: w.id, disabled: w.disabled, asChild: !0, children: /* @__PURE__ */ r(je, { asChild: !0, variant: "full-width", role: a ? "menuitemcheckbox" : "menuitemradio", "aria-checked": z, id: w.id, label: w.name, icon: ft(w, "16px"), tooltip: w.description, disabled: w.disabled, isSelected: z, endContent: ro(a, z), onActivate: () => u(w.id) }) }, w.id);
1392
- }, e[32] = a, e[33] = u, e[34] = o, e[35] = R) : R = e[35], I = n.map(R), e[27] = a, e[28] = u, e[29] = n, e[30] = o, e[31] = I;
1393
- } else
1394
- I = e[31];
1395
- let T;
1396
- e[36] !== I ? (T = /* @__PURE__ */ r(Ce.Positioner, { children: /* @__PURE__ */ r(Ce.Content, { children: I }) }), e[36] = I, e[37] = T) : T = e[37];
1397
- let W;
1398
- return e[38] !== V || e[39] !== L || e[40] !== T ? (W = /* @__PURE__ */ _(Ce.Root, { closeOnSelect: V, children: [
1399
- L,
1400
- T
1401
- ] }), e[38] = V, e[39] = L, e[40] = T, e[41] = W) : W = e[41], W;
1402
- }, co = (i) => {
1403
- const e = N(33), {
1404
- id: t,
1405
- name: n,
1406
- description: o,
1407
- defaultValue: a,
1408
- options: l,
1409
- onChange: c,
1410
- readOnly: s,
1411
- presentation: d
1412
- } = i, f = d === void 0 ? "stacked" : d, [m, g] = J(a);
1413
- let b, h;
1414
- e[0] !== a ? (b = () => {
1415
- g(a);
1416
- }, h = [a], e[0] = a, e[1] = b, e[2] = h) : (b = e[1], h = e[2]), ne(b, h);
1417
- let u;
1418
- e[3] !== t || e[4] !== c ? (u = (V) => {
1419
- g(V), c(t, V);
1420
- }, e[3] = t, e[4] = c, e[5] = u) : u = e[5];
1421
- const v = u, $ = f === "horizontal";
1422
- let k;
1423
- e[6] !== m || e[7] !== n || e[8] !== l ? (k = l.find((V) => V.id === m)?.name ?? n, e[6] = m, e[7] = n, e[8] = l, e[9] = k) : k = e[9];
1424
- const C = k;
1425
- if ($) {
1426
- let V;
1427
- e[10] !== m ? (V = m ? [m] : [], e[10] = m, e[11] = V) : V = e[11];
1428
- let L;
1429
- return e[12] !== l || e[13] !== s || e[14] !== v || e[15] !== C || e[16] !== V ? (L = /* @__PURE__ */ r(Be, { triggerLabel: C, options: l, selectedIds: V, multiSelect: !1, disabled: s, onToggle: v }), e[12] = l, e[13] = s, e[14] = v, e[15] = C, e[16] = V, e[17] = L) : L = e[17], L;
1430
- }
1431
- let x;
1432
- if (e[18] !== m || e[19] !== l || e[20] !== s || e[21] !== v) {
1433
- let V;
1434
- e[23] !== m || e[24] !== s || e[25] !== v ? (V = (L) => /* @__PURE__ */ r(Re, { size: "xs", variant: m === L.id ? "subtle" : "outline", disabled: L.disabled || s, _hover: {
1435
- bg: "bg.hover",
1436
- borderColor: "border.accent-light"
1437
- }, _active: {
1438
- bg: "bg.active",
1439
- borderColor: "border.accent-light"
1440
- }, _focusVisible: {
1441
- borderColor: "border.accent-light",
1442
- outline: "none",
1443
- boxShadow: "none"
1444
- }, onClick: () => v(L.id), children: L.name }, L.id), e[23] = m, e[24] = s, e[25] = v, e[26] = V) : V = e[26], x = l.map(V), e[18] = m, e[19] = l, e[20] = s, e[21] = v, e[22] = x;
1445
- } else
1446
- x = e[22];
1447
- let p;
1448
- e[27] !== x ? (p = /* @__PURE__ */ r(G, { gap: "xs", wrap: "wrap", children: x }), e[27] = x, e[28] = p) : p = e[28];
1449
- const y = p;
1450
- let S;
1451
- return e[29] !== o || e[30] !== n || e[31] !== y ? (S = /* @__PURE__ */ r(de, { name: n, description: o, orientation: "stacked", children: y }), e[29] = o, e[30] = n, e[31] = y, e[32] = S) : S = e[32], S;
1452
- }, ut = ["top-left", "top", "top-right", "left", "center", "right", "bottom-left", "bottom", "bottom-right"], ul = (i) => typeof i == "string" && ut.includes(i), te = (i) => {
1453
- const e = N(8);
1454
- let t, n, o;
1455
- e[0] !== i ? ({
1456
- children: n,
1457
- preserveWhitespace: o,
1458
- ...t
1459
- } = i, e[0] = i, e[1] = t, e[2] = n, e[3] = o) : (t = e[1], n = e[2], o = e[3]);
1460
- const l = (o === void 0 ? !1 : o) ? "pre-wrap" : void 0;
1461
- let c;
1462
- return e[4] !== t || e[5] !== n || e[6] !== l ? (c = /* @__PURE__ */ r(E, { minW: "0", textStyle: "label/S/regular", whiteSpace: l, ...t, children: n }), e[4] = t, e[5] = n, e[6] = l, e[7] = c) : c = e[7], c;
1463
- }, ao = (i) => {
1464
- const e = N(23), {
1465
- id: t,
1466
- name: n,
1467
- description: o,
1468
- defaultValue: a,
1469
- onChange: l,
1470
- readOnly: c,
1471
- fullWidth: s
1472
- } = i, [d, f] = J(a);
1473
- let m, g;
1474
- e[0] !== a ? (m = () => {
1475
- f(a);
1476
- }, g = [a], e[0] = a, e[1] = m, e[2] = g) : (m = e[1], g = e[2]), ne(m, g);
1477
- let b;
1478
- e[3] !== t || e[4] !== l ? (b = (x) => {
1479
- f(x), l(t, x);
1480
- }, e[3] = t, e[4] = l, e[5] = b) : b = e[5];
1481
- const h = b;
1482
- if (c) {
1483
- let x;
1484
- e[6] !== d ? (x = /* @__PURE__ */ r(te, { children: d }), e[6] = d, e[7] = x) : x = e[7];
1485
- let p;
1486
- return e[8] !== o || e[9] !== s || e[10] !== n || e[11] !== x ? (p = /* @__PURE__ */ r(de, { name: n, description: o, fullWidth: s, children: x }), e[8] = o, e[9] = s, e[10] = n, e[11] = x, e[12] = p) : p = e[12], p;
1487
- }
1488
- let u;
1489
- e[13] !== h || e[14] !== d ? (u = ut.map((x) => {
1490
- const p = x === d;
1491
- return /* @__PURE__ */ r(Ue, { "aria-label": x, "aria-pressed": p, size: "2xs", variant: "ghost", bg: p ? "fg" : "bg", _hover: {
1492
- bg: p ? "fg" : "bg.muted"
1493
- }, borderRadius: "0", onClick: () => h(x), children: /* @__PURE__ */ r(E, { boxSize: "0.375rem", borderRadius: "full", bg: p ? "bg" : "fg.muted" }) }, x);
1494
- }), e[13] = h, e[14] = d, e[15] = u) : u = e[15];
1495
- let v;
1496
- e[16] !== u ? (v = /* @__PURE__ */ r(pt, { templateColumns: "repeat(3, 1.5rem)", gap: "1px", width: "fit-content", bg: "border.subtle", p: "1px", borderRadius: "sm", overflow: "hidden", children: u }), e[16] = u, e[17] = v) : v = e[17];
1497
- const $ = v, k = s ? "stacked" : "inline";
1498
- let C;
1499
- return e[18] !== o || e[19] !== $ || e[20] !== n || e[21] !== k ? (C = /* @__PURE__ */ r(de, { name: n, description: o, orientation: k, children: $ }), e[18] = o, e[19] = $, e[20] = n, e[21] = k, e[22] = C) : C = e[22], C;
1500
- }, so = (i) => {
1501
- const e = N(27), {
1502
- id: t,
1503
- name: n,
1504
- description: o,
1505
- defaultValue: a,
1506
- onChange: l,
1507
- readOnly: c,
1508
- hideLabel: s,
1509
- fullWidth: d,
1510
- size: f
1511
- } = i, m = f === void 0 ? "sm" : f, [g, b] = J(a);
1512
- let h, u;
1513
- if (e[0] !== a ? (h = () => {
1514
- b(a);
1515
- }, u = [a], e[0] = a, e[1] = h, e[2] = u) : (h = e[1], u = e[2]), ne(h, u), c) {
1516
- const x = String(g);
1517
- let p;
1518
- e[3] !== x ? (p = /* @__PURE__ */ r(te, { children: x }), e[3] = x, e[4] = p) : p = e[4];
1519
- let y;
1520
- return e[5] !== o || e[6] !== d || e[7] !== s || e[8] !== n || e[9] !== p ? (y = /* @__PURE__ */ r(de, { name: n, description: o, hideLabel: s, fullWidth: d, orientation: "inline", children: p }), e[5] = o, e[6] = d, e[7] = s, e[8] = n, e[9] = p, e[10] = y) : y = e[10], y;
1521
- }
1522
- let v;
1523
- e[11] !== n ? (v = {
1524
- "aria-label": n
1525
- }, e[11] = n, e[12] = v) : v = e[12];
1526
- let $;
1527
- e[13] !== t || e[14] !== l ? ($ = (x) => {
1528
- b(x.checked), l(t, x.checked);
1529
- }, e[13] = t, e[14] = l, e[15] = $) : $ = e[15];
1530
- let k;
1531
- e[16] !== m || e[17] !== v || e[18] !== $ || e[19] !== g ? (k = /* @__PURE__ */ r(Mn, { size: m, checked: g, inputProps: v, onCheckedChange: $ }), e[16] = m, e[17] = v, e[18] = $, e[19] = g, e[20] = k) : k = e[20];
1532
- let C;
1533
- return e[21] !== o || e[22] !== d || e[23] !== s || e[24] !== n || e[25] !== k ? (C = /* @__PURE__ */ r(de, { name: n, description: o, hideLabel: s, fullWidth: d, orientation: "inline", children: k }), e[21] = o, e[22] = d, e[23] = s, e[24] = n, e[25] = k, e[26] = C) : C = e[26], C;
1534
- }, fo = (i) => {
1535
- const e = N(69), {
1536
- id: t,
1537
- defaultValue: n,
1538
- name: o,
1539
- onChange: a,
1540
- description: l,
1541
- readOnly: c,
1542
- hideLabel: s,
1543
- fullWidth: d,
1544
- size: f
1545
- } = i, m = s === void 0 ? !1 : s, g = d === void 0 ? !1 : d, b = f === void 0 ? "sm" : f, [h, u] = J(n), [v, $] = J(!1), k = ve(null), C = ve(null), x = ve(null);
1546
- let p;
1547
- e[0] !== t || e[1] !== a ? (p = (Y) => {
1548
- x.current && clearTimeout(x.current), x.current = setTimeout(() => a(t, Y), 540);
1549
- }, e[0] = t, e[1] = a, e[2] = p) : p = e[2];
1550
- const y = p;
1551
- let S, V;
1552
- e[3] !== n ? (S = () => {
1553
- u(n);
1554
- }, V = [n], e[3] = n, e[4] = S, e[5] = V) : (S = e[4], V = e[5]), ne(S, V);
1555
- let L, I;
1556
- e[6] !== v ? (L = () => {
1557
- if (!v)
1558
- return;
1559
- const Y = (oe) => {
1560
- const ue = oe;
1561
- return k.current?.contains(ue) || C.current?.contains(ue);
1562
- }, Q = (oe) => {
1563
- Y(oe.target) || $(!1);
1564
- };
1565
- return document.addEventListener("focusin", Q, !0), document.addEventListener("pointerdown", Q, !0), document.addEventListener("click", Q, !0), () => {
1566
- document.removeEventListener("focusin", Q, !0), document.removeEventListener("pointerdown", Q, !0), document.removeEventListener("click", Q, !0);
1567
- };
1568
- }, I = [v], e[6] = v, e[7] = L, e[8] = I) : (L = e[7], I = e[8]), ne(L, I);
1569
- let T;
1570
- e[9] !== y ? (T = (Y) => {
1571
- u(Y), y(Y);
1572
- }, e[9] = y, e[10] = T) : T = e[10];
1573
- const W = T;
1574
- let R;
1575
- e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = (Y) => {
1576
- const Q = Y.currentTarget;
1577
- setTimeout(() => {
1578
- Q.contains(Q.ownerDocument.activeElement) || $(!1);
1579
- });
1580
- }, e[11] = R) : R = e[11];
1581
- const w = R;
1582
- if (c) {
1583
- let Y;
1584
- e[12] !== h ? (Y = /* @__PURE__ */ r(te, { children: /* @__PURE__ */ _(G, { alignItems: "center", gap: "xs", children: [
1585
- /* @__PURE__ */ r(E, { boxSize: "0.75rem", borderRadius: "xs", bg: h }),
1586
- /* @__PURE__ */ r(E, { as: "span", children: h })
1587
- ] }) }), e[12] = h, e[13] = Y) : Y = e[13];
1588
- const Q = Y;
1589
- if (g) {
1590
- let j;
1591
- e[14] !== l || e[15] !== m || e[16] !== o ? (j = !m && /* @__PURE__ */ r(E, { mb: "xs", children: /* @__PURE__ */ r(D, { name: o, description: l }) }), e[14] = l, e[15] = m, e[16] = o, e[17] = j) : j = e[17];
1592
- let ee;
1593
- return e[18] !== j || e[19] !== Q ? (ee = /* @__PURE__ */ _(E, { children: [
1594
- j,
1595
- Q
1596
- ] }), e[18] = j, e[19] = Q, e[20] = ee) : ee = e[20], ee;
1597
- }
1598
- let oe;
1599
- e[21] !== l || e[22] !== m || e[23] !== o ? (oe = !m && /* @__PURE__ */ r(D, { name: o, description: l }), e[21] = l, e[22] = m, e[23] = o, e[24] = oe) : oe = e[24];
1600
- let ue;
1601
- return e[25] !== oe || e[26] !== Q ? (ue = /* @__PURE__ */ r(E, { children: /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
1602
- oe,
1603
- Q
1604
- ] }) }), e[25] = oe, e[26] = Q, e[27] = ue) : ue = e[27], ue;
1605
- }
1606
- let z;
1607
- e[28] !== h ? (z = gt(h), e[28] = h, e[29] = z) : z = e[29];
1608
- let O, A, P;
1609
- e[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = (Y) => $(Y.open), A = () => $(!1), P = () => $(!1), e[30] = O, e[31] = A, e[32] = P) : (O = e[30], A = e[31], P = e[32]);
1610
- let B;
1611
- e[33] !== W ? (B = (Y) => W(Y.value.toString("hex")), e[33] = W, e[34] = B) : B = e[34];
1612
- let U;
1613
- e[35] !== v || e[36] !== c || e[37] !== z || e[38] !== B ? (U = {
1614
- value: z,
1615
- open: v,
1616
- onOpenChange: O,
1617
- onFocusOutside: A,
1618
- onInteractOutside: P,
1619
- onBlur: w,
1620
- onValueChange: B,
1621
- disabled: c
1622
- }, e[35] = v, e[36] = c, e[37] = z, e[38] = B, e[39] = U) : U = e[39];
1623
- const H = U, M = g ? "100%" : "8.75rem";
1624
- let q;
1625
- e[40] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = /* @__PURE__ */ r(ae.HiddenInput, {}), e[40] = q) : q = e[40];
1626
- let Z;
1627
- e[41] !== o ? (Z = /* @__PURE__ */ r(ae.Label, { srOnly: !0, children: o }), e[41] = o, e[42] = Z) : Z = e[42];
1628
- let F;
1629
- e[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = () => $(!1), e[43] = F) : F = e[43];
1630
- let K;
1631
- e[44] !== c ? (K = /* @__PURE__ */ r(ae.Input, { readOnly: c, onFocus: F }), e[44] = c, e[45] = K) : K = e[45];
1632
- let ie;
1633
- e[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ie = /* @__PURE__ */ r(ae.Trigger, {}), e[46] = ie) : ie = e[46];
1634
- let re;
1635
- e[47] !== K ? (re = /* @__PURE__ */ _(ae.Control, { children: [
1636
- K,
1637
- ie
1638
- ] }), e[47] = K, e[48] = re) : re = e[48];
1639
- let xe, be;
1640
- e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xe = /* @__PURE__ */ r(ae.Area, {}), be = /* @__PURE__ */ r(ae.Sliders, {}), e[49] = xe, e[50] = be) : (xe = e[49], be = e[50]);
1641
- let X;
1642
- e[51] !== h ? (X = /* @__PURE__ */ r(ae.Swatch, { value: h }), e[51] = h, e[52] = X) : X = e[52];
1643
- let ce;
1644
- e[53] !== X || e[54] !== h ? (ce = /* @__PURE__ */ r(ae.Positioner, { children: /* @__PURE__ */ _(ae.Content, { ref: C, onBlur: w, children: [
1645
- xe,
1646
- be,
1647
- /* @__PURE__ */ r(ae.SwatchGroup, { children: /* @__PURE__ */ r(ae.SwatchTrigger, { value: h, children: X }) })
1648
- ] }) }), e[53] = X, e[54] = h, e[55] = ce) : ce = e[55];
1649
- let fe;
1650
- e[56] !== H || e[57] !== b || e[58] !== M || e[59] !== Z || e[60] !== re || e[61] !== ce ? (fe = /* @__PURE__ */ _(ae.Root, { ref: k, ...H, size: b, width: M, maxW: "100%", children: [
1651
- q,
1652
- Z,
1653
- re,
1654
- ce
1655
- ] }), e[56] = H, e[57] = b, e[58] = M, e[59] = Z, e[60] = re, e[61] = ce, e[62] = fe) : fe = e[62];
1656
- const me = fe;
1657
- let he;
1658
- return e[63] !== l || e[64] !== g || e[65] !== m || e[66] !== o || e[67] !== me ? (he = /* @__PURE__ */ r(E, { children: g ? /* @__PURE__ */ _(E, { children: [
1659
- !m && /* @__PURE__ */ r(E, { mb: "xs", children: /* @__PURE__ */ r(D, { name: o, description: l }) }),
1660
- me
1661
- ] }) : /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
1662
- !m && /* @__PURE__ */ r(D, { name: o, description: l }),
1663
- me
1664
- ] }) }), e[63] = l, e[64] = g, e[65] = m, e[66] = o, e[67] = me, e[68] = he) : he = e[68], he;
1665
- }, uo = (i) => {
1666
- const e = N(35), {
1667
- id: t,
1668
- defaultValue: n,
1669
- name: o,
1670
- min: a,
1671
- max: l,
1672
- onChange: c,
1673
- description: s,
1674
- readOnly: d,
1675
- hideLabel: f,
1676
- fullWidth: m,
1677
- size: g
1678
- } = i, b = f === void 0 ? !1 : f, h = m === void 0 ? !1 : m, u = g === void 0 ? "sm" : g, [v, $] = J(n), k = ve(null);
1679
- let C;
1680
- e[0] !== t || e[1] !== c ? (C = (I) => {
1681
- k.current && clearTimeout(k.current), k.current = setTimeout(() => c(t, I), 540);
1682
- }, e[0] = t, e[1] = c, e[2] = C) : C = e[2];
1683
- const x = C;
1684
- let p, y;
1685
- e[3] !== n ? (p = () => {
1686
- $(n);
1687
- }, y = [n], e[3] = n, e[4] = p, e[5] = y) : (p = e[4], y = e[5]), ne(p, y);
1688
- let S;
1689
- e[6] !== x ? (S = (I) => {
1690
- $(I), x(I);
1691
- }, e[6] = x, e[7] = S) : S = e[7];
1692
- const V = S;
1693
- if (d) {
1694
- let I;
1695
- e[8] !== v ? (I = /* @__PURE__ */ r(te, { children: v }), e[8] = v, e[9] = I) : I = e[9];
1696
- const T = I;
1697
- if (h) {
1698
- let w;
1699
- e[10] !== s || e[11] !== b || e[12] !== o ? (w = !b && /* @__PURE__ */ r(E, { mb: "xs", children: /* @__PURE__ */ r(D, { name: o, description: s }) }), e[10] = s, e[11] = b, e[12] = o, e[13] = w) : w = e[13];
1700
- let z;
1701
- return e[14] !== w || e[15] !== T ? (z = /* @__PURE__ */ _(E, { children: [
1702
- w,
1703
- T
1704
- ] }), e[14] = w, e[15] = T, e[16] = z) : z = e[16], z;
1705
- }
1706
- let W;
1707
- e[17] !== s || e[18] !== b || e[19] !== o ? (W = !b && /* @__PURE__ */ r(D, { name: o, description: s }), e[17] = s, e[18] = b, e[19] = o, e[20] = W) : W = e[20];
1708
- let R;
1709
- return e[21] !== W || e[22] !== T ? (R = /* @__PURE__ */ r(E, { children: /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
1710
- W,
1711
- T
1712
- ] }) }), e[21] = W, e[22] = T, e[23] = R) : R = e[23], R;
1713
- }
1714
- let L;
1715
- return e[24] !== s || e[25] !== h || e[26] !== V || e[27] !== b || e[28] !== l || e[29] !== a || e[30] !== o || e[31] !== d || e[32] !== u || e[33] !== v ? (L = /* @__PURE__ */ r(E, { children: h ? /* @__PURE__ */ _(E, { children: [
1716
- !b && /* @__PURE__ */ r(E, { mb: "xs", children: /* @__PURE__ */ r(D, { name: o, description: s }) }),
1717
- /* @__PURE__ */ r(Ie, { className: "nodrag", readOnly: d, width: "100%", size: u, type: "date", placeholder: b ? o : void 0, value: v, min: a, max: l, onChange: (I) => V(I.target.value), onKeyUp: bo })
1718
- ] }) : /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
1719
- !b && /* @__PURE__ */ r(D, { name: o, description: s }),
1720
- /* @__PURE__ */ r(Ie, { className: "nodrag", readOnly: d, width: "8.75rem", size: u, type: "date", placeholder: b ? o : void 0, value: v, min: a, max: l, onChange: (I) => V(I.target.value), onKeyUp: mo })
1721
- ] }) }), e[24] = s, e[25] = h, e[26] = V, e[27] = b, e[28] = l, e[29] = a, e[30] = o, e[31] = d, e[32] = u, e[33] = v, e[34] = L) : L = e[34], L;
1722
- };
1723
- function bo(i) {
1724
- i.key === "Enter" && i.currentTarget.blur();
1725
- }
1726
- function mo(i) {
1727
- i.key === "Enter" && i.currentTarget.blur();
1728
- }
1729
- const ho = (i, e) => `${i.name}-${i.size.toString()}-${i.lastModified.toString()}-${e.toString()}`, po = (i, e, t) => {
1730
- const n = t ? e.length : 0, o = i.map((a, l) => ({
1731
- id: ho(a, n + l),
1732
- file: a,
1733
- status: "queued"
1734
- }));
1735
- return t ? [...e, ...o] : o.slice(0, 1);
1736
- }, go = (i) => {
1737
- const t = ["uploading", "error", "queued", "complete"].find((o) => i.some((a) => a.status === o)) ?? "empty", n = t === "empty" ? 0 : i.filter((o) => o.status === t).length;
1738
- return {
1739
- state: t,
1740
- count: n
1741
- };
1742
- }, vo = (i) => {
1743
- const e = N(21), {
1744
- values: t
1745
- } = i;
1746
- let n, o, a, l, c, s, d;
1747
- if (e[0] !== t) {
1748
- d = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
1749
- e: {
1750
- if (o = go(t), o.state === "empty") {
1751
- d = null;
1752
- break e;
1753
- }
1754
- n = o.count === 1 ? "file" : "files", l = `${o.count.toString()} ${n} queued`, c = `Uploading ${o.count.toString()} ${n}`, s = `${o.count.toString()} ${n} uploaded`, a = o.count.toString();
1755
- }
1756
- e[0] = t, e[1] = n, e[2] = o, e[3] = a, e[4] = l, e[5] = c, e[6] = s, e[7] = d;
1757
- } else
1758
- n = e[1], o = e[2], a = e[3], l = e[4], c = e[5], s = e[6], d = e[7];
1759
- if (d !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
1760
- return d;
1761
- const f = `${a} ${n} failed`;
1762
- let m;
1763
- e[8] !== l || e[9] !== c || e[10] !== s || e[11] !== f ? (m = {
1764
- queued: l,
1765
- uploading: c,
1766
- complete: s,
1767
- error: f,
1768
- empty: ""
1769
- }, e[8] = l, e[9] = c, e[10] = s, e[11] = f, e[12] = m) : m = e[12];
1770
- const g = m;
1771
- let b;
1772
- e[13] !== o.state ? (b = o.state === "uploading" ? /* @__PURE__ */ r(lt, { boxSize: "12px", borderWidth: "1px" }) : /* @__PURE__ */ r(se, { as: o.state === "error" ? at : o.state === "complete" ? ct : In, boxSize: "12px" }), e[13] = o.state, e[14] = b) : b = e[14];
1773
- const h = b, u = o.state === "error" ? "fg.error" : "fg.muted", v = g[o.state];
1774
- let $;
1775
- e[15] !== v ? ($ = /* @__PURE__ */ r(pe, { textStyle: "label/XS/medium", children: v }), e[15] = v, e[16] = $) : $ = e[16];
1776
- let k;
1777
- return e[17] !== h || e[18] !== $ || e[19] !== u ? (k = /* @__PURE__ */ _(G, { alignItems: "center", gap: "2xs", color: u, children: [
1778
- h,
1779
- $
1780
- ] }), e[17] = h, e[18] = $, e[19] = u, e[20] = k) : k = e[20], k;
1781
- }, Ke = (i) => {
1782
- const e = N(14), {
1783
- readOnly: t,
1784
- values: n,
1785
- onRemove: o
1786
- } = i;
1787
- if (n.length === 0)
1788
- return null;
1789
- let a;
1790
- e[0] !== n ? (a = /* @__PURE__ */ r(vo, { values: n }), e[0] = n, e[1] = a) : a = e[1];
1791
- let l;
1792
- if (e[2] !== o || e[3] !== t || e[4] !== n) {
1793
- let d;
1794
- e[6] !== o || e[7] !== t ? (d = (f) => /* @__PURE__ */ r(On, { file: f.file, disabled: t, removeLabel: `Remove ${f.file.name}`, onRemove: () => o(f.id) }, f.id), e[6] = o, e[7] = t, e[8] = d) : d = e[8], l = n.map(d), e[2] = o, e[3] = t, e[4] = n, e[5] = l;
1795
- } else
1796
- l = e[5];
1797
- let c;
1798
- e[9] !== l ? (c = /* @__PURE__ */ r(it, { gap: "2xs", children: l }), e[9] = l, e[10] = c) : c = e[10];
1799
- let s;
1800
- return e[11] !== a || e[12] !== c ? (s = /* @__PURE__ */ _(_e, { gap: "2xs", minW: "0", children: [
1801
- a,
1802
- c
1803
- ] }), e[11] = a, e[12] = c, e[13] = s) : s = e[13], s;
1804
- }, xo = (i) => {
1805
- const e = N(40), {
1806
- id: t,
1807
- name: n,
1808
- description: o,
1809
- defaultValue: a,
1810
- accept: l,
1811
- multiple: c,
1812
- uploadLabel: s,
1813
- onChange: d,
1814
- readOnly: f,
1815
- presentation: m
1816
- } = i, g = c === void 0 ? !0 : c, b = s === void 0 ? "Attach files" : s, h = m === void 0 ? "stacked" : m, [u, v] = J(a), $ = ve(null);
1817
- let k, C;
1818
- e[0] !== a ? (k = () => {
1819
- v(a);
1820
- }, C = [a], e[0] = a, e[1] = k, e[2] = C) : (k = e[1], C = e[2]), ne(k, C);
1821
- let x;
1822
- e[3] !== t || e[4] !== d ? (x = (O) => {
1823
- v(O), d(t, O);
1824
- }, e[3] = t, e[4] = d, e[5] = x) : x = e[5];
1825
- const p = x;
1826
- let y;
1827
- e[6] !== p || e[7] !== u ? (y = (O) => p(u.filter((A) => A.id !== O)), e[6] = p, e[7] = u, e[8] = y) : y = e[8];
1828
- const S = y;
1829
- let V;
1830
- e[9] !== f || e[10] !== b ? (V = f ? null : /* @__PURE__ */ _(Re, { size: "xs", variant: "ghost", flexShrink: 0, onClick: () => $.current?.click(), children: [
1831
- /* @__PURE__ */ r(se, { as: $n, boxSize: "14px" }),
1832
- b
1833
- ] }), e[9] = f, e[10] = b, e[11] = V) : V = e[11];
1834
- const L = V;
1835
- let I;
1836
- e[12] !== p || e[13] !== g || e[14] !== u ? (I = (O) => {
1837
- p(po(Array.from(O.currentTarget.files ?? []), u, g)), O.currentTarget.value = "";
1838
- }, e[12] = p, e[13] = g, e[14] = u, e[15] = I) : I = e[15];
1839
- let T;
1840
- e[16] !== l || e[17] !== g || e[18] !== I ? (T = /* @__PURE__ */ r("input", { ref: $, hidden: !0, type: "file", accept: l, multiple: g, onChange: I }), e[16] = l, e[17] = g, e[18] = I, e[19] = T) : T = e[19];
1841
- const W = T;
1842
- if (h === "horizontal") {
1843
- let O;
1844
- e[20] !== f || e[21] !== S || e[22] !== u ? (O = /* @__PURE__ */ r(Ke, { readOnly: f, values: u, onRemove: S }), e[20] = f, e[21] = S, e[22] = u, e[23] = O) : O = e[23];
1845
- let A;
1846
- return e[24] !== L || e[25] !== W || e[26] !== O ? (A = /* @__PURE__ */ _(G, { alignItems: "center", gap: "sm", minW: "0", width: "full", children: [
1847
- W,
1848
- L,
1849
- O
1850
- ] }), e[24] = L, e[25] = W, e[26] = O, e[27] = A) : A = e[27], A;
1851
- }
1852
- let R;
1853
- e[28] !== f || e[29] !== S || e[30] !== u ? (R = /* @__PURE__ */ r(Ke, { readOnly: f, values: u, onRemove: S }), e[28] = f, e[29] = S, e[30] = u, e[31] = R) : R = e[31];
1854
- let w;
1855
- e[32] !== L || e[33] !== W || e[34] !== R ? (w = /* @__PURE__ */ _(_e, { alignItems: "start", gap: "xs", minW: "0", children: [
1856
- W,
1857
- L,
1858
- R
1859
- ] }), e[32] = L, e[33] = W, e[34] = R, e[35] = w) : w = e[35];
1860
- let z;
1861
- return e[36] !== o || e[37] !== n || e[38] !== w ? (z = /* @__PURE__ */ r(de, { name: n, description: o, orientation: "stacked", children: w }), e[36] = o, e[37] = n, e[38] = w, e[39] = z) : z = e[39], z;
1862
- }, yo = (i) => {
1863
- const e = N(33), {
1864
- id: t,
1865
- defaultValue: n,
1866
- name: o,
1867
- onChange: a,
1868
- description: l,
1869
- readOnly: c,
1870
- hideLabel: s,
1871
- size: d
1872
- } = i, f = s === void 0 ? !1 : s, m = d === void 0 ? "sm" : d, [g, b] = J(n), [h, u] = J(!1), v = ve(null);
1873
- let $;
1874
- e[0] !== t || e[1] !== a ? ($ = (w) => {
1875
- v.current && clearTimeout(v.current), v.current = setTimeout(() => a(t, w), 540);
1876
- }, e[0] = t, e[1] = a, e[2] = $) : $ = e[2];
1877
- const k = $;
1878
- let C, x;
1879
- e[3] !== n ? (C = () => {
1880
- b(n);
1881
- }, x = [n], e[3] = n, e[4] = C, e[5] = x) : (C = e[4], x = e[5]), ne(C, x);
1882
- let p;
1883
- e[6] !== k ? (p = (w) => {
1884
- b(w), k(w);
1885
- }, e[6] = k, e[7] = p) : p = e[7];
1886
- const y = p;
1887
- let S;
1888
- e[8] !== c ? (S = () => {
1889
- c || u(!0);
1890
- }, e[8] = c, e[9] = S) : S = e[9];
1891
- const V = S;
1892
- let L;
1893
- e[10] !== g ? (L = () => {
1894
- g.trim().length === 0 && u(!1);
1895
- }, e[10] = g, e[11] = L) : L = e[11];
1896
- const I = L;
1897
- let T;
1898
- e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = (w) => {
1899
- w.key === "Escape" && (u(!1), w.preventDefault());
1900
- }, e[12] = T) : T = e[12];
1901
- const W = T;
1902
- if (c) {
1903
- let w;
1904
- e[13] !== l || e[14] !== f || e[15] !== o ? (w = !f && /* @__PURE__ */ r(D, { name: o, description: l }), e[13] = l, e[14] = f, e[15] = o, e[16] = w) : w = e[16];
1905
- let z;
1906
- e[17] !== g ? (z = /* @__PURE__ */ r(te, { preserveWhitespace: !0, children: g }), e[17] = g, e[18] = z) : z = e[18];
1907
- let O;
1908
- return e[19] !== z || e[20] !== w ? (O = /* @__PURE__ */ r(E, { position: "relative", flex: "1", minW: "12.5rem", children: /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
1909
- w,
1910
- z
1911
- ] }) }), e[19] = z, e[20] = w, e[21] = O) : O = e[21], O;
1912
- }
1913
- let R;
1914
- return e[22] !== l || e[23] !== I || e[24] !== y || e[25] !== V || e[26] !== f || e[27] !== h || e[28] !== o || e[29] !== c || e[30] !== m || e[31] !== g ? (R = /* @__PURE__ */ r(E, { position: "relative", flex: "1", minW: "12.5rem", children: /* @__PURE__ */ r(E, { position: "relative", minHeight: "2rem", children: h ? /* @__PURE__ */ _(E, { 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: {
1915
- borderColor: "border.accent-light"
1916
- }, _active: {
1917
- borderColor: "border.accent-light"
1918
- }, _focusWithin: {
1919
- borderColor: "border.accent-light",
1920
- boxShadow: "none"
1921
- }, children: [
1922
- !f && /* @__PURE__ */ r(E, { mb: "sm", children: /* @__PURE__ */ r(D, { name: o, description: l }) }),
1923
- /* @__PURE__ */ r(rt, { className: "nodrag", readOnly: c, width: "100%", size: m, placeholder: f ? o : void 0, value: g, onChange: (w) => y(w.target.value), onBlur: I, onKeyDown: W, rows: 3, resize: "vertical", autoFocus: !0 })
1924
- ] }) : /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", height: "2rem", gap: "xs", children: [
1925
- !f && /* @__PURE__ */ r(D, { name: o, description: l }),
1926
- /* @__PURE__ */ r(Ie, { className: "nodrag", readOnly: c, flex: "1", maxW: "12.5rem", size: m, type: "text", placeholder: f ? o : void 0, value: g, onClick: V, onChange: (w) => y(w.target.value), onKeyUp: So })
1927
- ] }) }) }), e[22] = l, e[23] = I, e[24] = y, e[25] = V, e[26] = f, e[27] = h, e[28] = o, e[29] = c, e[30] = m, e[31] = g, e[32] = R) : R = e[32], R;
1928
- };
1929
- function So(i) {
1930
- i.key === "Enter" && i.currentTarget.blur();
1931
- }
1932
- const Co = (i) => {
1933
- const e = N(28), {
1934
- id: t,
1935
- name: n,
1936
- description: o,
1937
- defaultValue: a,
1938
- placeholder: l,
1939
- onChange: c,
1940
- readOnly: s,
1941
- presentation: d,
1942
- size: f
1943
- } = i, m = d === void 0 ? "stacked" : d, g = f === void 0 ? "sm" : f, [b, h] = J(a), [u, v] = J(!1);
1944
- let $, k;
1945
- e[0] !== a ? ($ = () => {
1946
- h(a);
1947
- }, k = [a], e[0] = a, e[1] = $, e[2] = k) : ($ = e[1], k = e[2]), ne($, k);
1948
- let C;
1949
- e[3] !== t || e[4] !== c ? (C = (T) => {
1950
- h(T), c(t, T);
1951
- }, e[3] = t, e[4] = c, e[5] = C) : C = e[5];
1952
- const x = C;
1953
- let p;
1954
- e[6] !== x || e[7] !== l || e[8] !== s ? (p = (T) => /* @__PURE__ */ r(E, { borderWidth: "1px", borderColor: "border", borderRadius: "xs", minH: "7rem", minW: "0", overflow: "visible", width: "full", children: /* @__PURE__ */ r(zn, { defaultState: T, isEditable: !s, placeholder: l, scrollable: !1, onChange: x }) }), e[6] = x, e[7] = l, e[8] = s, e[9] = p) : p = e[9];
1955
- const y = p;
1956
- let S;
1957
- e[10] !== o || e[11] !== n ? (S = /* @__PURE__ */ r(D, { name: n, description: o }), e[10] = o, e[11] = n, e[12] = S) : S = e[12];
1958
- const V = S;
1959
- if (m === "horizontal") {
1960
- if (s) {
1961
- let W;
1962
- return e[13] !== b ? (W = /* @__PURE__ */ r(E, { position: "relative", flex: "1", minW: "12.5rem", children: /* @__PURE__ */ r(G, { alignItems: "center", minHeight: "2rem", children: /* @__PURE__ */ r(te, { preserveWhitespace: !0, children: b }) }) }), e[13] = b, e[14] = W) : W = e[14], W;
1963
- }
1964
- let T;
1965
- return e[15] !== x || e[16] !== y || e[17] !== u || e[18] !== n || e[19] !== g || e[20] !== b ? (T = /* @__PURE__ */ r(E, { position: "relative", flex: "1", minW: "12.5rem", children: /* @__PURE__ */ r(E, { position: "relative", minHeight: "2rem", children: u ? /* @__PURE__ */ r(E, { 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: {
1966
- borderColor: "border.accent-light"
1967
- }, _focusWithin: {
1968
- borderColor: "border.accent-light"
1969
- }, onKeyDown: (W) => {
1970
- W.key === "Escape" && (v(!1), W.preventDefault());
1971
- }, children: y(b) }) : /* @__PURE__ */ r(Ie, { className: "nodrag", flex: "1", maxW: "12.5rem", size: g, type: "text", placeholder: n, value: b, onClick: () => {
1972
- v(!0);
1973
- }, onChange: (W) => x(W.target.value) }) }) }), e[15] = x, e[16] = y, e[17] = u, e[18] = n, e[19] = g, e[20] = b, e[21] = T) : T = e[21], T;
1974
- }
1975
- let L;
1976
- e[22] !== y || e[23] !== b ? (L = y(b), e[22] = y, e[23] = b, e[24] = L) : L = e[24];
1977
- let I;
1978
- return e[25] !== V || e[26] !== L ? (I = /* @__PURE__ */ _(_e, { gap: "xs", minW: "0", width: "full", children: [
1979
- V,
1980
- L
1981
- ] }), e[25] = V, e[26] = L, e[27] = I) : I = e[27], I;
1982
- }, Xe = Me.forwardRef(function(e, t) {
1983
- const n = N(8);
1984
- let o, a;
1985
- n[0] !== e ? ({
1986
- children: o,
1987
- ...a
1988
- } = e, n[0] = e, n[1] = o, n[2] = a) : (o = n[1], a = n[2]);
1989
- let l;
1990
- n[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ _(ze.Control, { children: [
1991
- /* @__PURE__ */ r(ze.IncrementTrigger, {}),
1992
- /* @__PURE__ */ r(ze.DecrementTrigger, {})
1993
- ] }), n[3] = l) : l = n[3];
1994
- let c;
1995
- return n[4] !== o || n[5] !== t || n[6] !== a ? (c = /* @__PURE__ */ _(ze.Root, { ref: t, variant: "outline", ...a, children: [
1996
- o,
1997
- l
1998
- ] }), n[4] = o, n[5] = t, n[6] = a, n[7] = c) : c = n[7], c;
1999
- }), Ye = ze.Input, bt = Me.forwardRef(function(e, t) {
2000
- const n = N(9);
2001
- let o, a;
2002
- n[0] !== e ? ({
2003
- children: o,
2004
- ...a
2005
- } = e, n[0] = e, n[1] = o, n[2] = a) : (o = n[1], a = n[2]);
2006
- let l;
2007
- n[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ r(Le.Track, { height: "2px", borderRadius: "0", bg: "bg.muted", children: /* @__PURE__ */ r(Le.Range, { bg: "fg" }) }), n[3] = l) : l = n[3];
2008
- let c;
2009
- n[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ _(Le.Control, { children: [
2010
- l,
2011
- /* @__PURE__ */ r(Le.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: {
2012
- boxSize: "0.75rem",
2013
- borderColor: "border.accent-light"
2014
- }, _active: {
2015
- boxSize: "0.875rem",
2016
- borderColor: "border.accent-light"
2017
- }, _focusVisible: {
2018
- borderColor: "border.accent-light",
2019
- outline: "none",
2020
- boxShadow: "none"
2021
- } })
2022
- ] }), n[4] = c) : c = n[4];
2023
- let s;
2024
- return n[5] !== o || n[6] !== t || n[7] !== a ? (s = /* @__PURE__ */ _(Le.Root, { ref: t, variant: "solid", ...a, children: [
2025
- c,
2026
- o
2027
- ] }), n[5] = o, n[6] = t, n[7] = a, n[8] = s) : s = n[8], s;
2028
- }), mt = (i) => {
2029
- const e = N(46), {
2030
- id: t,
2031
- defaultValue: n,
2032
- name: o,
2033
- step: a,
2034
- min: l,
2035
- max: c,
2036
- onChange: s,
2037
- description: d,
2038
- readOnly: f,
2039
- hideLabel: m,
2040
- hideSlider: g,
2041
- fullWidth: b,
2042
- size: h
2043
- } = i, u = a === void 0 ? 1 : a, v = m === void 0 ? !1 : m, $ = g === void 0 ? !1 : g, k = b === void 0 ? !1 : b, C = h === void 0 ? "sm" : h, [x, p] = J(n), S = l !== void 0 && c !== void 0 && !$, V = k && !S, L = ve(null);
2044
- let I;
2045
- e[0] !== t || e[1] !== s ? (I = (A) => {
2046
- L.current && clearTimeout(L.current), L.current = setTimeout(() => s(t, A), 540);
2047
- }, e[0] = t, e[1] = s, e[2] = I) : I = e[2];
2048
- const T = I;
2049
- let W, R;
2050
- if (e[3] !== n ? (W = () => {
2051
- p(n);
2052
- }, R = [n], e[3] = n, e[4] = W, e[5] = R) : (W = e[4], R = e[5]), ne(W, R), f) {
2053
- let A;
2054
- e[6] !== x ? (A = /* @__PURE__ */ r(te, { children: x }), e[6] = x, e[7] = A) : A = e[7];
2055
- const P = A;
2056
- if (k) {
2057
- let H;
2058
- e[8] !== d || e[9] !== v || e[10] !== o ? (H = !v && /* @__PURE__ */ r(E, { mb: "xs", children: /* @__PURE__ */ r(D, { name: o, description: d }) }), e[8] = d, e[9] = v, e[10] = o, e[11] = H) : H = e[11];
2059
- let M;
2060
- return e[12] !== H || e[13] !== P ? (M = /* @__PURE__ */ _(E, { children: [
2061
- H,
2062
- P
2063
- ] }), e[12] = H, e[13] = P, e[14] = M) : M = e[14], M;
2064
- }
2065
- let B;
2066
- e[15] !== d || e[16] !== v || e[17] !== o ? (B = !v && /* @__PURE__ */ r(D, { name: o, description: d }), e[15] = d, e[16] = v, e[17] = o, e[18] = B) : B = e[18];
2067
- let U;
2068
- return e[19] !== B || e[20] !== P ? (U = /* @__PURE__ */ r(E, { children: /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
2069
- B,
2070
- P
2071
- ] }) }), e[19] = B, e[20] = P, e[21] = U) : U = e[21], U;
2072
- }
2073
- let w;
2074
- e[22] !== d || e[23] !== v || e[24] !== c || e[25] !== l || e[26] !== o || e[27] !== f || e[28] !== T || e[29] !== C || e[30] !== u || e[31] !== V || e[32] !== x ? (w = V ? /* @__PURE__ */ _(E, { children: [
2075
- !v && /* @__PURE__ */ r(E, { mb: "xs", children: /* @__PURE__ */ r(D, { name: o, description: d }) }),
2076
- /* @__PURE__ */ r(Xe, { disabled: f, width: "100%", size: C, value: `${x}`, step: u, min: l, max: c, onValueChange: (A) => {
2077
- const P = Number.isNaN(A.valueAsNumber) ? l ?? 0 : A.valueAsNumber;
2078
- p(P), T(P);
2079
- }, children: /* @__PURE__ */ r(Ye, { className: "nodrag", readOnly: f, placeholder: v ? o : void 0, onKeyUp: ko }) })
2080
- ] }) : /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
2081
- !v && /* @__PURE__ */ r(D, { name: o, description: d }),
2082
- /* @__PURE__ */ r(Xe, { disabled: f, width: "5rem", size: C, value: `${x}`, step: u, min: l, max: c, onValueChange: (A) => {
2083
- const P = Number.isNaN(A.valueAsNumber) ? l ?? 0 : A.valueAsNumber;
2084
- p(P), T(P);
2085
- }, children: /* @__PURE__ */ r(Ye, { className: "nodrag", readOnly: f, placeholder: v ? o : void 0, onKeyUp: wo }) })
2086
- ] }), e[22] = d, e[23] = v, e[24] = c, e[25] = l, e[26] = o, e[27] = f, e[28] = T, e[29] = C, e[30] = u, e[31] = V, e[32] = x, e[33] = w) : w = e[33];
2087
- let z;
2088
- e[34] !== t || e[35] !== c || e[36] !== l || e[37] !== s || e[38] !== f || e[39] !== S || e[40] !== u || e[41] !== x ? (z = S && /* @__PURE__ */ r(bt, { disabled: f, value: [x], step: u, min: l, max: c, onValueChange: (A) => {
2089
- p(A.value[0]);
2090
- }, onValueChangeEnd: (A) => {
2091
- s(t, A.value[0]);
2092
- } }), e[34] = t, e[35] = c, e[36] = l, e[37] = s, e[38] = f, e[39] = S, e[40] = u, e[41] = x, e[42] = z) : z = e[42];
2093
- let O;
2094
- return e[43] !== w || e[44] !== z ? (O = /* @__PURE__ */ _(E, { children: [
2095
- w,
2096
- z
2097
- ] }), e[43] = w, e[44] = z, e[45] = O) : O = e[45], O;
2098
- };
2099
- function ko(i) {
2100
- i.key === "Enter" && i.currentTarget.blur();
2101
- }
2102
- function wo(i) {
2103
- i.key === "Enter" && i.currentTarget.blur();
2104
- }
2105
- const Te = (i, e, t) => {
2106
- const n = Math.min(e, t), o = Math.max(e, t);
2107
- return i < n ? n : i > o ? o : i;
2108
- }, Ze = (i, e, t = 0) => {
2109
- if (!(e > 0)) return i;
2110
- const n = Math.round((i - t) / e);
2111
- return t + n * e;
2112
- }, Qe = (i, e) => {
2113
- const t = Number.isInteger(i) ? `${i}` : `${Number(i.toFixed(3))}`;
2114
- return e ? `${t}${e}` : t;
2115
- }, Ne = (i, e, t, n) => {
2116
- const o = Te(i[0], e, t), a = Te(i[1], e, t);
2117
- let l = Math.min(o, a), c = Math.max(o, a);
2118
- return n && n > 0 && (l = Te(Ze(l, n, e), e, t), c = Te(Ze(c, n, e), e, t)), [l, c];
2119
- }, Vo = (i) => {
2120
- const e = N(4), {
2121
- count: t
2122
- } = i;
2123
- if (!t || t < 2)
2124
- return null;
2125
- let n;
2126
- e[0] !== t ? (n = Array.from({
2127
- length: t
2128
- }, (l, c) => c / (t - 1)), e[0] = t, e[1] = n) : n = e[1];
2129
- const o = n;
2130
- let a;
2131
- return e[2] !== o ? (a = /* @__PURE__ */ r(G, { justifyContent: "space-between", mt: "2xs", "aria-hidden": "true", children: o.map($o) }), e[2] = o, e[3] = a) : a = e[3], a;
2132
- };
2133
- function $o(i) {
2134
- return /* @__PURE__ */ r(E, { width: "1px", height: "0.375rem", bg: "border.subtle" }, i);
2135
- }
2136
- const Io = (i) => {
2137
- const e = N(71), {
2138
- id: t,
2139
- name: n,
2140
- description: o,
2141
- defaultValue: a,
2142
- min: l,
2143
- max: c,
2144
- step: s,
2145
- unit: d,
2146
- markerCount: f,
2147
- onChange: m,
2148
- readOnly: g,
2149
- fullWidth: b,
2150
- presentation: h
2151
- } = i, u = s === void 0 ? 1 : s, v = h === void 0 ? "stacked" : h;
2152
- let $;
2153
- e[0] !== a || e[1] !== c || e[2] !== l || e[3] !== u ? ($ = () => Ne(a, l, c, u), e[0] = a, e[1] = c, e[2] = l, e[3] = u, e[4] = $) : $ = e[4];
2154
- const [k, C] = J($);
2155
- let x, p;
2156
- e[5] !== a || e[6] !== c || e[7] !== l || e[8] !== u ? (x = () => {
2157
- C(Ne(a, l, c, u));
2158
- }, p = [a, l, c, u], e[5] = a, e[6] = c, e[7] = l, e[8] = u, e[9] = x, e[10] = p) : (x = e[9], p = e[10]), ne(x, p);
2159
- let y;
2160
- e[11] !== d || e[12] !== k[0] ? (y = Qe(k[0], d), e[11] = d, e[12] = k[0], e[13] = y) : y = e[13];
2161
- let S;
2162
- e[14] !== d || e[15] !== k[1] ? (S = Qe(k[1], d), e[14] = d, e[15] = k[1], e[16] = S) : S = e[16];
2163
- const V = `${y} – ${S}`, L = v === "horizontal";
2164
- if (g) {
2165
- if (L) {
2166
- let H;
2167
- return e[17] !== V ? (H = /* @__PURE__ */ r(te, { children: V }), e[17] = V, e[18] = H) : H = e[18], H;
2168
- }
2169
- let B;
2170
- e[19] !== V ? (B = /* @__PURE__ */ r(te, { children: V }), e[19] = V, e[20] = B) : B = e[20];
2171
- let U;
2172
- return e[21] !== o || e[22] !== b || e[23] !== n || e[24] !== B ? (U = /* @__PURE__ */ r(de, { name: n, description: o, fullWidth: b, children: B }), e[21] = o, e[22] = b, e[23] = n, e[24] = B, e[25] = U) : U = e[25], U;
2173
- }
2174
- let I;
2175
- e[26] !== V ? (I = /* @__PURE__ */ r(pe, { textStyle: "label/S/regular", color: "fg.muted", whiteSpace: "nowrap", children: V }), e[26] = V, e[27] = I) : I = e[27];
2176
- const T = I;
2177
- let W;
2178
- e[28] !== c || e[29] !== l || e[30] !== u ? (W = (B) => C(Ne(B.value, l, c, u)), e[28] = c, e[29] = l, e[30] = u, e[31] = W) : W = e[31];
2179
- let R;
2180
- e[32] !== t || e[33] !== c || e[34] !== l || e[35] !== m || e[36] !== u ? (R = (B) => {
2181
- const U = Ne(B.value, l, c, u);
2182
- C(U), m(t, U);
2183
- }, e[32] = t, e[33] = c, e[34] = l, e[35] = m, e[36] = u, e[37] = R) : R = e[37];
2184
- let w;
2185
- e[38] !== c || e[39] !== l || e[40] !== u || e[41] !== W || e[42] !== R || e[43] !== k ? (w = /* @__PURE__ */ r(bt, { size: "sm", value: k, min: l, max: c, step: u, onValueChange: W, onValueChangeEnd: R }), e[38] = c, e[39] = l, e[40] = u, e[41] = W, e[42] = R, e[43] = k, e[44] = w) : w = e[44];
2186
- let z;
2187
- e[45] !== f ? (z = /* @__PURE__ */ r(Vo, { count: f }), e[45] = f, e[46] = z) : z = e[46];
2188
- let O;
2189
- e[47] !== w || e[48] !== z ? (O = /* @__PURE__ */ _(E, { children: [
2190
- w,
2191
- z
2192
- ] }), e[47] = w, e[48] = z, e[49] = O) : O = e[49];
2193
- const A = O;
2194
- if (L) {
2195
- let B;
2196
- e[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = {
2197
- placement: "bottom-start",
2198
- offset: {
2199
- mainAxis: 4
2200
- }
2201
- }, e[50] = B) : B = e[50];
2202
- const U = `${n}: ${V}`;
2203
- let H;
2204
- e[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ r(se, { as: qe, boxSize: "14px" }), e[51] = H) : H = e[51];
2205
- let M;
2206
- e[52] !== V || e[53] !== U ? (M = /* @__PURE__ */ r(ye.Trigger, { asChild: !0, children: /* @__PURE__ */ _(Re, { size: "xs", variant: "ghost", "aria-label": U, children: [
2207
- V,
2208
- H
2209
- ] }) }), e[52] = V, e[53] = U, e[54] = M) : M = e[54];
2210
- let q;
2211
- e[55] !== n ? (q = /* @__PURE__ */ r(pe, { textStyle: "label/S/medium", children: n }), e[55] = n, e[56] = q) : q = e[56];
2212
- let Z;
2213
- e[57] !== q || e[58] !== T ? (Z = /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", gap: "xs", children: [
2214
- q,
2215
- T
2216
- ] }), e[57] = q, e[58] = T, e[59] = Z) : Z = e[59];
2217
- let F;
2218
- e[60] !== A || e[61] !== Z ? (F = /* @__PURE__ */ r(ye.Positioner, { children: /* @__PURE__ */ r(ye.Content, { width: "60", padding: "sm", background: "bg", children: /* @__PURE__ */ _(_e, { gap: "xs", children: [
2219
- Z,
2220
- A
2221
- ] }) }) }), e[60] = A, e[61] = Z, e[62] = F) : F = e[62];
2222
- let K;
2223
- return e[63] !== M || e[64] !== F ? (K = /* @__PURE__ */ _(ye.Root, { positioning: B, children: [
2224
- M,
2225
- F
2226
- ] }), e[63] = M, e[64] = F, e[65] = K) : K = e[65], K;
2227
- }
2228
- let P;
2229
- return e[66] !== o || e[67] !== n || e[68] !== A || e[69] !== T ? (P = /* @__PURE__ */ r(de, { name: n, description: o, orientation: "stacked", labelTrailing: T, children: A }), e[66] = o, e[67] = n, e[68] = A, e[69] = T, e[70] = P) : P = e[70], P;
2230
- }, Lo = (i) => /* @__PURE__ */ r(se, { as: $e(i.icon), boxSize: "14px", color: i.color ? `${i.color}.500` : "fg.muted" }), zo = (i) => window.open(i, "_blank", "noreferrer"), To = (i) => {
2231
- navigator.clipboard?.writeText(i).catch(() => {
2232
- });
2233
- }, Wo = (i) => {
2234
- const e = N(18), {
2235
- option: t,
2236
- onOpenResource: n,
2237
- onRemove: o
2238
- } = i;
2239
- if (!!!(t.href || t.ref || t.copyText)) {
2240
- let b;
2241
- return e[0] !== t.name ? (b = /* @__PURE__ */ r(An, { children: t.name }), e[0] = t.name, e[1] = b) : b = e[1], b;
2242
- }
2243
- let l;
2244
- e[2] !== n || e[3] !== t.copyText || e[4] !== t.href || e[5] !== t.ref ? (l = t.href && t.href.length > 0 ? () => zo(t.href) : t.ref && n ? () => n(t.ref) : t.copyText ? () => To(t.copyText) : void 0, e[2] = n, e[3] = t.copyText, e[4] = t.href, e[5] = t.ref, e[6] = l) : l = e[6];
2245
- const c = l, s = t.name;
2246
- let d;
2247
- e[7] !== t ? (d = Lo(t), e[7] = t, e[8] = d) : d = e[8];
2248
- let f;
2249
- e[9] !== c ? (f = c ? () => c() : void 0, e[9] = c, e[10] = f) : f = e[10];
2250
- let m;
2251
- e[11] !== o ? (m = o ? () => o() : void 0, e[11] = o, e[12] = m) : m = e[12];
2252
- let g;
2253
- return e[13] !== t.name || e[14] !== d || e[15] !== f || e[16] !== m ? (g = /* @__PURE__ */ r(Tn, { fileName: s, icon: d, size: "md", onSelect: f, onRemove: m }), e[13] = t.name, e[14] = d, e[15] = f, e[16] = m, e[17] = g) : g = e[17], g;
2254
- }, Je = (i) => {
2255
- const e = N(11), {
2256
- options: t,
2257
- onOpenResource: n,
2258
- onRemove: o,
2259
- emptyText: a
2260
- } = i;
2261
- if (t.length === 0) {
2262
- const s = a ?? "None";
2263
- let d;
2264
- return e[0] !== s ? (d = /* @__PURE__ */ r(pe, { textStyle: "label/S/regular", color: "fg.muted", children: s }), e[0] = s, e[1] = d) : d = e[1], d;
2265
- }
2266
- let l;
2267
- if (e[2] !== n || e[3] !== o || e[4] !== t) {
2268
- let s;
2269
- e[6] !== n || e[7] !== o ? (s = (d) => /* @__PURE__ */ r(Wo, { option: d, onOpenResource: n, onRemove: o ? () => o(d.id) : void 0 }, d.id), e[6] = n, e[7] = o, e[8] = s) : s = e[8], l = t.map(s), e[2] = n, e[3] = o, e[4] = t, e[5] = l;
2270
- } else
2271
- l = e[5];
2272
- let c;
2273
- return e[9] !== l ? (c = /* @__PURE__ */ r(it, { gap: "2xs", children: l }), e[9] = l, e[10] = c) : c = e[10], c;
2274
- }, Ro = (i) => Array.isArray(i) ? i : i ? [i] : [], _o = (i, e) => i.map((t) => e.find((n) => n.id === t)).filter((t) => !!t), Fe = (i) => {
2275
- const e = N(11), {
2276
- fullWidth: t,
2277
- label: n,
2278
- control: o,
2279
- presentation: a
2280
- } = i;
2281
- if (a === "horizontal") {
2282
- let c;
2283
- return e[0] !== o || e[1] !== n ? (c = /* @__PURE__ */ _(_e, { gap: "2xs", alignItems: "start", minW: "0", children: [
2284
- n,
2285
- o
2286
- ] }), e[0] = o, e[1] = n, e[2] = c) : c = e[2], c;
2287
- }
2288
- if (t) {
2289
- let c;
2290
- e[3] !== n ? (c = /* @__PURE__ */ r(E, { mb: "xs", children: n }), e[3] = n, e[4] = c) : c = e[4];
2291
- let s;
2292
- return e[5] !== o || e[6] !== c ? (s = /* @__PURE__ */ _(E, { children: [
2293
- c,
2294
- o
2295
- ] }), e[5] = o, e[6] = c, e[7] = s) : s = e[7], s;
2296
- }
2297
- let l;
2298
- return e[8] !== o || e[9] !== n ? (l = /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
2299
- n,
2300
- o
2301
- ] }), e[8] = o, e[9] = n, e[10] = l) : l = e[10], l;
2302
- }, et = (i) => {
2303
- const e = N(9), {
2304
- triggerLabel: t,
2305
- options: n,
2306
- selectedIds: o,
2307
- multiSelect: a,
2308
- triggerVariant: l,
2309
- triggerAriaLabel: c,
2310
- size: s,
2311
- onToggle: d
2312
- } = i;
2313
- let f;
2314
- return e[0] !== a || e[1] !== d || e[2] !== n || e[3] !== o || e[4] !== s || e[5] !== c || e[6] !== t || e[7] !== l ? (f = /* @__PURE__ */ r(Be, { triggerLabel: t, options: n, selectedIds: o, multiSelect: a, triggerVariant: l, triggerAriaLabel: c, size: s, onToggle: d }), e[0] = a, e[1] = d, e[2] = n, e[3] = o, e[4] = s, e[5] = c, e[6] = t, e[7] = l, e[8] = f) : f = e[8], f;
2315
- }, Oo = (i) => {
2316
- const e = N(19), {
2317
- id: t,
2318
- name: n,
2319
- description: o,
2320
- defaultValue: a,
2321
- options: l,
2322
- onChange: c,
2323
- onOpenResource: s,
2324
- readOnly: d,
2325
- editable: f,
2326
- multiSelect: m,
2327
- placeholder: g,
2328
- emptyText: b,
2329
- fullWidth: h,
2330
- presentation: u,
2331
- size: v
2332
- } = i, $ = f === void 0 ? !1 : f, k = m === void 0 ? !1 : m, C = h === void 0 ? !1 : h, x = u === void 0 ? "stacked" : u, p = v === void 0 ? "sm" : v, [y, S] = J(a), V = ve(null);
2333
- let L, I;
2334
- e[0] !== a ? (L = () => {
2335
- S(a);
2336
- }, I = [a], e[0] = a, e[1] = L, e[2] = I) : (L = e[1], I = e[2]), ne(L, I);
2337
- const T = (F) => {
2338
- V.current && clearTimeout(V.current), c(t, F);
2339
- }, W = (F) => {
2340
- V.current && clearTimeout(V.current), V.current = setTimeout(() => c(t, F), 540);
2341
- }, R = Ro(y), w = _o(R, l), z = $ && !d, O = x === "horizontal";
2342
- let A;
2343
- e[3] !== o || e[4] !== n || e[5] !== O ? (A = /* @__PURE__ */ r(D, { name: n, description: o, compact: O }), e[3] = o, e[4] = n, e[5] = O, e[6] = A) : A = e[6];
2344
- const P = A;
2345
- if (!z)
2346
- return /* @__PURE__ */ r(Fe, { fullWidth: C, label: P, presentation: x, control: /* @__PURE__ */ r(Je, { options: w, onOpenResource: s, emptyText: b }) });
2347
- const B = (F) => {
2348
- if (k) {
2349
- const ie = R.includes(F) ? R.filter((re) => re !== F) : [...R, F];
2350
- S(ie), W(ie);
2351
- return;
2352
- }
2353
- const K = R.includes(F) ? "" : F;
2354
- S(K), T(K);
2355
- }, U = (F) => {
2356
- const K = R.filter((ie) => ie !== F);
2357
- S(K), W(K);
2358
- };
2359
- if (k) {
2360
- let F;
2361
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ r(se, { as: Ln, boxSize: "12px" }), e[7] = F) : F = e[7];
2362
- const K = /* @__PURE__ */ _(G, { gap: "2xs", alignItems: "center", flexWrap: "wrap", minW: "0", children: [
2363
- w.length > 0 ? /* @__PURE__ */ r(Je, { options: w, onOpenResource: s, onRemove: U, emptyText: b }) : null,
2364
- /* @__PURE__ */ r(et, { triggerLabel: F, options: l, selectedIds: R, multiSelect: !0, triggerVariant: "icon", triggerAriaLabel: g ?? `Add ${n}`, size: p, onToggle: B })
2365
- ] });
2366
- return /* @__PURE__ */ r(Fe, { fullWidth: C, label: P, control: K, presentation: x });
2367
- }
2368
- const H = w[0], M = H ? /* @__PURE__ */ _(G, { align: "center", gap: "2xs", minW: "0", children: [
2369
- /* @__PURE__ */ r(se, { as: $e(H.icon), boxSize: "14px", color: H.color ? `${H.color}.500` : "fg.muted" }),
2370
- H.name
2371
- ] }) : g ?? "Select";
2372
- let q;
2373
- e[8] !== l || e[9] !== R || e[10] !== p || e[11] !== B || e[12] !== M ? (q = /* @__PURE__ */ r(et, { triggerLabel: M, options: l, selectedIds: R, multiSelect: !1, size: p, onToggle: B }), e[8] = l, e[9] = R, e[10] = p, e[11] = B, e[12] = M, e[13] = q) : q = e[13];
2374
- let Z;
2375
- return e[14] !== C || e[15] !== P || e[16] !== x || e[17] !== q ? (Z = /* @__PURE__ */ r(Fe, { fullWidth: C, label: P, presentation: x, control: q }), e[14] = C, e[15] = P, e[16] = x, e[17] = q, e[18] = Z) : Z = e[18], Z;
2376
- }, Ao = (i) => {
2377
- const e = N(42), {
2378
- id: t,
2379
- name: n,
2380
- description: o,
2381
- defaultValue: a,
2382
- options: l,
2383
- variant: c,
2384
- onChange: s,
2385
- readOnly: d,
2386
- fullWidth: f,
2387
- presentation: m
2388
- } = i, g = c === void 0 ? "default" : c, b = m === void 0 ? "stacked" : m, [h, u] = J(a);
2389
- let v, $;
2390
- e[0] !== a ? (v = () => {
2391
- u(a);
2392
- }, $ = [a], e[0] = a, e[1] = v, e[2] = $) : (v = e[1], $ = e[2]), ne(v, $);
2393
- let k;
2394
- e[3] !== t || e[4] !== s ? (k = (w) => {
2395
- u(w), s(t, w);
2396
- }, e[3] = t, e[4] = s, e[5] = k) : k = e[5];
2397
- const C = k;
2398
- let x;
2399
- e[6] !== l || e[7] !== h ? (x = l.find((w) => w.id === h)?.name ?? h, e[6] = l, e[7] = h, e[8] = x) : x = e[8];
2400
- const p = x, y = b === "horizontal";
2401
- if (d) {
2402
- let w;
2403
- e[9] !== p ? (w = /* @__PURE__ */ r(te, { children: p }), e[9] = p, e[10] = w) : w = e[10];
2404
- let z;
2405
- return e[11] !== o || e[12] !== f || e[13] !== y || e[14] !== n || e[15] !== w ? (z = /* @__PURE__ */ r(de, { name: n, description: o, hideLabel: y, fullWidth: f, children: w }), e[11] = o, e[12] = f, e[13] = y, e[14] = n, e[15] = w, e[16] = z) : z = e[16], z;
2406
- }
2407
- if (y) {
2408
- let w;
2409
- e[17] !== h ? (w = [h], e[17] = h, e[18] = w) : w = e[18];
2410
- let z;
2411
- return e[19] !== l || e[20] !== C || e[21] !== p || e[22] !== w ? (z = /* @__PURE__ */ r(Be, { triggerLabel: p, options: l, selectedIds: w, multiSelect: !1, onToggle: C }), e[19] = l, e[20] = C, e[21] = p, e[22] = w, e[23] = z) : z = e[23], z;
2412
- }
2413
- let S, V, L;
2414
- e[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = {
2415
- borderColor: "border.accent-light"
2416
- }, V = {
2417
- borderColor: "border.accent-light"
2418
- }, L = {
2419
- borderColor: "border.accent-light",
2420
- boxShadow: "none"
2421
- }, e[24] = S, e[25] = V, e[26] = L) : (S = e[24], V = e[25], L = e[26]);
2422
- let I;
2423
- if (e[27] !== l || e[28] !== C || e[29] !== h || e[30] !== g) {
2424
- let w;
2425
- e[32] !== C || e[33] !== h || e[34] !== g ? (w = (z) => {
2426
- const O = z.id === h;
2427
- return /* @__PURE__ */ _(Re, { flex: "1", size: "xs", variant: O ? "subtle" : "ghost", borderRadius: "0", "aria-pressed": O, onClick: () => C(z.id), children: [
2428
- g === "dots" ? /* @__PURE__ */ r(E, { boxSize: "0.5rem", borderRadius: "full", bg: z.indicatorColor ?? "fg.muted", mr: "1" }) : null,
2429
- z.name
2430
- ] }, z.id);
2431
- }, e[32] = C, e[33] = h, e[34] = g, e[35] = w) : w = e[35], I = l.map(w), e[27] = l, e[28] = C, e[29] = h, e[30] = g, e[31] = I;
2432
- } else
2433
- I = e[31];
2434
- let T;
2435
- e[36] !== I ? (T = /* @__PURE__ */ r(vt, { attached: !0, width: "full", borderWidth: "1px", borderColor: "border", borderRadius: "xs", overflow: "hidden", transition: "border-color 0.2s ease-in-out", _hover: S, _active: V, _focusWithin: L, children: I }), e[36] = I, e[37] = T) : T = e[37];
2436
- const W = T;
2437
- let R;
2438
- return e[38] !== o || e[39] !== W || e[40] !== n ? (R = /* @__PURE__ */ r(de, { name: n, description: o, orientation: "stacked", children: W }), e[38] = o, e[39] = W, e[40] = n, e[41] = R) : R = e[41], R;
2439
- }, Eo = (i) => {
2440
- const e = N(86), {
2441
- id: t,
2442
- defaultValue: n,
2443
- name: o,
2444
- options: a,
2445
- onChange: l,
2446
- description: c,
2447
- readOnly: s,
2448
- hideLabel: d,
2449
- multiSelect: f,
2450
- placeholder: m,
2451
- fullWidth: g,
2452
- clearable: b,
2453
- disabled: h,
2454
- searchable: u,
2455
- searchPlaceholder: v,
2456
- emptyText: $,
2457
- group: k,
2458
- size: C
2459
- } = i, x = d === void 0 ? !1 : d, p = f === void 0 ? !1 : f, y = g === void 0 ? !1 : g, S = b === void 0 ? !1 : b, V = h === void 0 ? !1 : h, L = u === void 0 ? !1 : u, I = C === void 0 ? "sm" : C, [T, W] = J(n), [R, w] = J(k?.defaultValue ?? "");
2460
- let z, O;
2461
- e[0] !== n ? (z = () => {
2462
- W(n);
2463
- }, O = [n], e[0] = n, e[1] = z, e[2] = O) : (z = e[1], O = e[2]), ne(z, O);
2464
- let A;
2465
- e[3] !== k?.defaultValue ? (A = () => {
2466
- w(k?.defaultValue ?? "");
2467
- }, e[3] = k?.defaultValue, e[4] = A) : A = e[4];
2468
- const P = k?.defaultValue;
2469
- let B;
2470
- e[5] !== P ? (B = [P], e[5] = P, e[6] = B) : B = e[6], ne(A, B);
2471
- let U;
2472
- e[7] !== p || e[8] !== T ? (U = p ? Array.isArray(T) ? T : [] : typeof T == "string" && T ? [T] : [], e[7] = p, e[8] = T, e[9] = U) : U = e[9];
2473
- const H = U;
2474
- let M;
2475
- e[10] !== a || e[11] !== m || e[12] !== H ? (M = () => {
2476
- const j = H.map((ee) => a.find((ge) => ge.id === ee)?.name).filter(Po);
2477
- return j.length === 0 ? m || "Select" : j.length <= 3 ? j.join(", ") : `${j.slice(0, 3).join(", ")} +${(j.length - 3).toString()}`;
2478
- }, e[10] = a, e[11] = m, e[12] = H, e[13] = M) : M = e[13];
2479
- const q = M;
2480
- let Z;
2481
- e[14] !== t || e[15] !== l ? (Z = (j) => {
2482
- W(j), l(t, j);
2483
- }, e[14] = t, e[15] = l, e[16] = Z) : Z = e[16];
2484
- const F = Z;
2485
- let K;
2486
- e[17] !== S || e[18] !== F || e[19] !== p || e[20] !== H ? (K = (j) => {
2487
- if (!p) {
2488
- F(S && H.includes(j) ? "" : j);
2489
- return;
2490
- }
2491
- F(H.includes(j) ? H.filter((ee) => ee !== j) : [...H, j]);
2492
- }, e[17] = S, e[18] = F, e[19] = p, e[20] = H, e[21] = K) : K = e[21];
2493
- const ie = K;
2494
- let re;
2495
- e[22] !== k || e[23] !== R || e[24] !== l ? (re = (j) => {
2496
- !k || j === R || (w(j), l(k.id, j));
2497
- }, e[22] = k, e[23] = R, e[24] = l, e[25] = re) : re = e[25];
2498
- const xe = re;
2499
- let be, X, ce, fe;
2500
- if (e[26] !== c || e[27] !== y || e[28] !== q || e[29] !== x || e[30] !== o || e[31] !== a || e[32] !== s || e[33] !== H[0] || e[34] !== H.length) {
2501
- fe = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
2502
- e: {
2503
- const j = H.length === 1 ? a.find((ge) => ge.id === H[0]) : void 0;
2504
- let ee;
2505
- if (e[39] !== c || e[40] !== x || e[41] !== o ? (ee = x ? null : /* @__PURE__ */ r(D, { name: o, description: c }), e[39] = c, e[40] = x, e[41] = o, e[42] = ee) : ee = e[42], X = ee, s) {
2506
- let ge;
2507
- e[43] !== q ? (ge = q(), e[43] = q, e[44] = ge) : ge = e[44];
2508
- let Oe;
2509
- e[45] !== ge ? (Oe = /* @__PURE__ */ r(te, { children: ge }), e[45] = ge, e[46] = Oe) : Oe = e[46];
2510
- const ke = Oe;
2511
- if (y) {
2512
- let we;
2513
- e[47] !== X ? (we = X ? /* @__PURE__ */ r(E, { mb: "xs", children: X }) : null, e[47] = X, e[48] = we) : we = e[48];
2514
- let Ee;
2515
- e[49] !== we || e[50] !== ke ? (Ee = /* @__PURE__ */ _(E, { children: [
2516
- we,
2517
- ke
2518
- ] }), e[49] = we, e[50] = ke, e[51] = Ee) : Ee = e[51], fe = Ee;
2519
- break e;
2520
- }
2521
- let Ae;
2522
- e[52] !== X || e[53] !== ke ? (Ae = /* @__PURE__ */ r(E, { children: /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
2523
- X,
2524
- ke
2525
- ] }) }), e[52] = X, e[53] = ke, e[54] = Ae) : Ae = e[54], fe = Ae;
2526
- break e;
2527
- }
2528
- be = Be, ce = ft(j, "14px");
2529
- }
2530
- e[26] = c, e[27] = y, e[28] = q, e[29] = x, e[30] = o, e[31] = a, e[32] = s, e[33] = H[0], e[34] = H.length, e[35] = be, e[36] = X, e[37] = ce, e[38] = fe;
2531
- } else
2532
- be = e[35], X = e[36], ce = e[37], fe = e[38];
2533
- if (fe !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
2534
- return fe;
2535
- let me;
2536
- e[55] !== q ? (me = q(), e[55] = q, e[56] = me) : me = e[56];
2537
- let he;
2538
- e[57] !== ce || e[58] !== me ? (he = /* @__PURE__ */ _(ht, { children: [
2539
- ce,
2540
- me
2541
- ] }), e[57] = ce, e[58] = me, e[59] = he) : he = e[59];
2542
- let Y;
2543
- e[60] !== k || e[61] !== R ? (Y = k ? {
2544
- ...k,
2545
- defaultValue: R
2546
- } : void 0, e[60] = k, e[61] = R, e[62] = Y) : Y = e[62];
2547
- let Q;
2548
- e[63] !== be || e[64] !== V || e[65] !== $ || e[66] !== y || e[67] !== xe || e[68] !== ie || e[69] !== p || e[70] !== a || e[71] !== v || e[72] !== L || e[73] !== H || e[74] !== I || e[75] !== he || e[76] !== Y ? (Q = /* @__PURE__ */ r(be, { triggerLabel: he, options: a, selectedIds: H, multiSelect: p, disabled: V, searchable: L, searchPlaceholder: v, emptyText: $, group: Y, fullWidth: y, size: I, onToggle: ie, onGroupChange: xe }), e[63] = be, e[64] = V, e[65] = $, e[66] = y, e[67] = xe, e[68] = ie, e[69] = p, e[70] = a, e[71] = v, e[72] = L, e[73] = H, e[74] = I, e[75] = he, e[76] = Y, e[77] = Q) : Q = e[77];
2549
- const oe = Q;
2550
- if (y) {
2551
- let j;
2552
- e[78] !== X ? (j = X ? /* @__PURE__ */ r(E, { mb: "xs", children: X }) : null, e[78] = X, e[79] = j) : j = e[79];
2553
- let ee;
2554
- return e[80] !== oe || e[81] !== j ? (ee = /* @__PURE__ */ _(E, { children: [
2555
- j,
2556
- oe
2557
- ] }), e[80] = oe, e[81] = j, e[82] = ee) : ee = e[82], ee;
2558
- }
2559
- let ue;
2560
- return e[83] !== X || e[84] !== oe ? (ue = /* @__PURE__ */ r(E, { children: /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
2561
- X,
2562
- oe
2563
- ] }) }), e[83] = X, e[84] = oe, e[85] = ue) : ue = e[85], ue;
2564
- };
2565
- function Po(i) {
2566
- return !!i;
2567
- }
2568
- const No = (i) => {
2569
- const e = N(40), {
2570
- id: t,
2571
- defaultValue: n,
2572
- name: o,
2573
- onChange: a,
2574
- description: l,
2575
- readOnly: c,
2576
- singleLine: s,
2577
- hideLabel: d,
2578
- fullWidth: f,
2579
- size: m
2580
- } = i, g = s === void 0 ? !0 : s, b = d === void 0 ? !1 : d, h = f === void 0 ? !1 : f, u = m === void 0 ? "sm" : m, [v, $] = J(n), k = ve(null);
2581
- let C;
2582
- e[0] !== t || e[1] !== a ? (C = (W) => {
2583
- k.current && clearTimeout(k.current), k.current = setTimeout(() => a(t, W), 540);
2584
- }, e[0] = t, e[1] = a, e[2] = C) : C = e[2];
2585
- const x = C;
2586
- let p, y;
2587
- e[3] !== n ? (p = () => {
2588
- $(n);
2589
- }, y = [n], e[3] = n, e[4] = p, e[5] = y) : (p = e[4], y = e[5]), ne(p, y);
2590
- let S;
2591
- e[6] !== x ? (S = (W) => {
2592
- $(W), x(W);
2593
- }, e[6] = x, e[7] = S) : S = e[7];
2594
- const V = S;
2595
- let L;
2596
- e[8] !== t || e[9] !== a || e[10] !== v ? (L = () => {
2597
- k.current && (clearTimeout(k.current), k.current = null, a(t, v));
2598
- }, e[8] = t, e[9] = a, e[10] = v, e[11] = L) : L = e[11];
2599
- const I = L;
2600
- if (c) {
2601
- const W = !g;
2602
- let R;
2603
- e[12] !== W || e[13] !== v ? (R = /* @__PURE__ */ r(te, { preserveWhitespace: W, children: v }), e[12] = W, e[13] = v, e[14] = R) : R = e[14];
2604
- const w = R;
2605
- if (g && !h) {
2606
- let A;
2607
- e[15] !== l || e[16] !== b || e[17] !== o ? (A = !b && /* @__PURE__ */ r(D, { name: o, description: l }), e[15] = l, e[16] = b, e[17] = o, e[18] = A) : A = e[18];
2608
- let P;
2609
- return e[19] !== A || e[20] !== w ? (P = /* @__PURE__ */ r(E, { children: /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
2610
- A,
2611
- w
2612
- ] }) }), e[19] = A, e[20] = w, e[21] = P) : P = e[21], P;
2613
- }
2614
- let z;
2615
- e[22] !== l || e[23] !== b || e[24] !== o ? (z = !b && /* @__PURE__ */ r(E, { mb: "xs", children: /* @__PURE__ */ r(D, { name: o, description: l }) }), e[22] = l, e[23] = b, e[24] = o, e[25] = z) : z = e[25];
2616
- let O;
2617
- return e[26] !== z || e[27] !== w ? (O = /* @__PURE__ */ _(E, { children: [
2618
- z,
2619
- w
2620
- ] }), e[26] = z, e[27] = w, e[28] = O) : O = e[28], O;
2621
- }
2622
- let T;
2623
- return e[29] !== l || e[30] !== h || e[31] !== I || e[32] !== V || e[33] !== b || e[34] !== o || e[35] !== c || e[36] !== g || e[37] !== u || e[38] !== v ? (T = /* @__PURE__ */ r(E, { children: g && !h ? /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
2624
- !b && /* @__PURE__ */ r(D, { name: o, description: l }),
2625
- /* @__PURE__ */ r(Ie, { className: "nodrag", readOnly: c, flex: "1", maxW: "12.5rem", size: u, type: "text", placeholder: b ? o : void 0, value: v, onChange: (W) => V(W.target.value), onBlur: I, onKeyUp: Ho })
2626
- ] }) : /* @__PURE__ */ _(E, { children: [
2627
- !b && /* @__PURE__ */ r(E, { mb: "xs", children: /* @__PURE__ */ r(D, { name: o, description: l }) }),
2628
- g ? /* @__PURE__ */ r(Ie, { className: "nodrag", readOnly: c, width: "100%", size: u, type: "text", placeholder: b ? o : void 0, value: v, onChange: (W) => V(W.target.value), onBlur: I, onKeyUp: Bo }) : /* @__PURE__ */ r(rt, { className: "nodrag", readOnly: c, width: "100%", size: u, placeholder: b ? o : void 0, value: v, onChange: (W) => V(W.target.value), onBlur: I, rows: 3, resize: "vertical" })
2629
- ] }) }), e[29] = l, e[30] = h, e[31] = I, e[32] = V, e[33] = b, e[34] = o, e[35] = c, e[36] = g, e[37] = u, e[38] = v, e[39] = T) : T = e[39], T;
2630
- };
2631
- function Ho(i) {
2632
- i.key === "Enter" && i.currentTarget.blur();
2633
- }
2634
- function Bo(i) {
2635
- i.key === "Enter" && i.currentTarget.blur();
2636
- }
2637
- const jo = (i) => {
2638
- const e = N(6);
2639
- let t, n;
2640
- e[0] !== i ? ({
2641
- children: t,
2642
- ...n
2643
- } = i, e[0] = i, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
2644
- let o;
2645
- return e[3] !== t || e[4] !== n ? (o = /* @__PURE__ */ r(G, { alignItems: "center", gap: "xs", minW: "0", ...n, children: t }), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
2646
- }, Fo = (i, e) => {
2647
- if (e.min === void 0 && e.max === void 0) return i;
2648
- const t = e.min ?? Number.NEGATIVE_INFINITY, n = e.max ?? Number.POSITIVE_INFINITY;
2649
- return Te(i, t, n);
2650
- }, Go = (i, e, t, n = {}) => {
2651
- const o = Fo(t, n);
2652
- return e === "x" ? {
2653
- x: o,
2654
- y: i.y
2655
- } : {
2656
- x: i.x,
2657
- y: o
2658
- };
2659
- }, tt = (i) => {
2660
- const e = N(15), {
2661
- label: t,
2662
- fieldId: n,
2663
- value: o,
2664
- min: a,
2665
- max: l,
2666
- step: c,
2667
- onCommit: s
2668
- } = i;
2669
- let d;
2670
- e[0] !== t ? (d = /* @__PURE__ */ r(pe, { textStyle: "label/XS/regular", color: "fg.muted", width: "1rem", flexShrink: 0, children: t }), e[0] = t, e[1] = d) : d = e[1];
2671
- let f;
2672
- e[2] !== s ? (f = (b, h) => s(h), e[2] = s, e[3] = f) : f = e[3];
2673
- let m;
2674
- e[4] !== n || e[5] !== t || e[6] !== l || e[7] !== a || e[8] !== c || e[9] !== f || e[10] !== o ? (m = /* @__PURE__ */ r(mt, { id: n, name: t, description: "", defaultValue: o, min: a, max: l, step: c, hideLabel: !0, hideSlider: !0, onChange: f }), e[4] = n, e[5] = t, e[6] = l, e[7] = a, e[8] = c, e[9] = f, e[10] = o, e[11] = m) : m = e[11];
2675
- let g;
2676
- return e[12] !== d || e[13] !== m ? (g = /* @__PURE__ */ _(G, { alignItems: "center", gap: "1", flexShrink: 0, children: [
2677
- d,
2678
- m
2679
- ] }), e[12] = d, e[13] = m, e[14] = g) : g = e[14], g;
2680
- }, Uo = (i) => {
2681
- const e = N(42), {
2682
- id: t,
2683
- name: n,
2684
- description: o,
2685
- defaultValue: a,
2686
- xLabel: l,
2687
- yLabel: c,
2688
- min: s,
2689
- max: d,
2690
- step: f,
2691
- onChange: m,
2692
- readOnly: g
2693
- } = i, b = l === void 0 ? "X" : l, h = c === void 0 ? "Y" : c, u = f === void 0 ? 1 : f, [v, $] = J(a);
2694
- let k, C;
2695
- e[0] !== a ? (k = () => {
2696
- $(a);
2697
- }, C = [a], e[0] = a, e[1] = k, e[2] = C) : (k = e[1], C = e[2]), ne(k, C);
2698
- let x;
2699
- e[3] !== t || e[4] !== d || e[5] !== s || e[6] !== m || e[7] !== v ? (x = (w, z) => {
2700
- const O = Go(v, w, z, {
2701
- min: s,
2702
- max: d
2703
- });
2704
- $(O), m(t, O);
2705
- }, e[3] = t, e[4] = d, e[5] = s, e[6] = m, e[7] = v, e[8] = x) : x = e[8];
2706
- const p = x;
2707
- if (g) {
2708
- const w = `${v.x}, ${v.y}`;
2709
- let z;
2710
- e[9] !== w ? (z = /* @__PURE__ */ r(te, { children: w }), e[9] = w, e[10] = z) : z = e[10];
2711
- let O;
2712
- return e[11] !== o || e[12] !== n || e[13] !== z ? (O = /* @__PURE__ */ r(de, { name: n, description: o, children: z }), e[11] = o, e[12] = n, e[13] = z, e[14] = O) : O = e[14], O;
2713
- }
2714
- const y = `${t}.x`;
2715
- let S;
2716
- e[15] !== p ? (S = (w) => p("x", w), e[15] = p, e[16] = S) : S = e[16];
2717
- let V;
2718
- e[17] !== d || e[18] !== s || e[19] !== u || e[20] !== y || e[21] !== S || e[22] !== v.x || e[23] !== b ? (V = /* @__PURE__ */ r(tt, { label: b, fieldId: y, value: v.x, min: s, max: d, step: u, onCommit: S }), e[17] = d, e[18] = s, e[19] = u, e[20] = y, e[21] = S, e[22] = v.x, e[23] = b, e[24] = V) : V = e[24];
2719
- const L = `${t}.y`;
2720
- let I;
2721
- e[25] !== p ? (I = (w) => p("y", w), e[25] = p, e[26] = I) : I = e[26];
2722
- let T;
2723
- e[27] !== d || e[28] !== s || e[29] !== u || e[30] !== I || e[31] !== L || e[32] !== v.y || e[33] !== h ? (T = /* @__PURE__ */ r(tt, { label: h, fieldId: L, value: v.y, min: s, max: d, step: u, onCommit: I }), e[27] = d, e[28] = s, e[29] = u, e[30] = I, e[31] = L, e[32] = v.y, e[33] = h, e[34] = T) : T = e[34];
2724
- let W;
2725
- e[35] !== T || e[36] !== V ? (W = /* @__PURE__ */ _(jo, { children: [
2726
- V,
2727
- T
2728
- ] }), e[35] = T, e[36] = V, e[37] = W) : W = e[37];
2729
- let R;
2730
- return e[38] !== o || e[39] !== n || e[40] !== W ? (R = /* @__PURE__ */ r(de, { name: n, description: o, orientation: "stacked", children: W }), e[38] = o, e[39] = n, e[40] = W, e[41] = R) : R = e[41], R;
2731
- }, le = (i, e, t) => i[e] === void 0 ? t : i[e], qo = (i) => {
2732
- const e = N(81), {
2733
- param: t,
2734
- defaultValues: n,
2735
- onChange: o,
2736
- readOnly: a,
2737
- fullWidth: l,
2738
- presentation: c
2739
- } = i, s = a || t.readOnly, d = c === "horizontal" ? !1 : l;
2740
- let f;
2741
- e[0] !== o || e[1] !== t.id || e[2] !== s || e[3] !== d ? (f = {
2742
- id: t.id,
2743
- readOnly: s,
2744
- onChange: o,
2745
- fullWidth: d
2746
- }, e[0] = o, e[1] = t.id, e[2] = s, e[3] = d, e[4] = f) : f = e[4];
2747
- const m = f;
2748
- switch (t.type) {
2749
- case "range": {
2750
- const g = t.name, b = t.description;
2751
- let h;
2752
- e[5] !== n || e[6] !== t.defaultValue || e[7] !== t.id ? (h = le(n, t.id, t.defaultValue), e[5] = n, e[6] = t.defaultValue, e[7] = t.id, e[8] = h) : h = e[8];
2753
- let u;
2754
- 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] !== c || e[18] !== h ? (u = /* @__PURE__ */ r(Io, { ...m, name: g, description: b, defaultValue: h, min: t.min, max: t.max, step: t.step, unit: t.unit, markerCount: t.markerCount, presentation: c }), 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] = c, e[18] = h, e[19] = u) : u = e[19], u;
2755
- }
2756
- case "segmented": {
2757
- const g = t.name, b = t.description;
2758
- let h;
2759
- e[20] !== n || e[21] !== t.defaultValue || e[22] !== t.id ? (h = le(n, t.id, t.defaultValue), e[20] = n, e[21] = t.defaultValue, e[22] = t.id, e[23] = h) : h = e[23];
2760
- let u;
2761
- return e[24] !== m || e[25] !== t.description || e[26] !== t.name || e[27] !== t.options || e[28] !== t.variant || e[29] !== c || e[30] !== h ? (u = /* @__PURE__ */ r(Ao, { ...m, name: g, description: b, defaultValue: h, options: t.options, variant: t.variant, presentation: c }), e[24] = m, e[25] = t.description, e[26] = t.name, e[27] = t.options, e[28] = t.variant, e[29] = c, e[30] = h, e[31] = u) : u = e[31], u;
2762
- }
2763
- case "actions": {
2764
- const g = t.name, b = t.description;
2765
- let h;
2766
- e[32] !== n || e[33] !== t.defaultValue || e[34] !== t.id ? (h = le(n, t.id, t.defaultValue), e[32] = n, e[33] = t.defaultValue, e[34] = t.id, e[35] = h) : h = e[35];
2767
- let u;
2768
- return e[36] !== m || e[37] !== t.description || e[38] !== t.name || e[39] !== t.options || e[40] !== c || e[41] !== h ? (u = /* @__PURE__ */ r(co, { ...m, name: g, description: b, defaultValue: h, options: t.options, presentation: c }), e[36] = m, e[37] = t.description, e[38] = t.name, e[39] = t.options, e[40] = c, e[41] = h, e[42] = u) : u = e[42], u;
2769
- }
2770
- case "anchorGrid": {
2771
- if (c === "horizontal")
2772
- return null;
2773
- const g = t.name, b = t.description;
2774
- let h;
2775
- e[43] !== n || e[44] !== t.defaultValue || e[45] !== t.id ? (h = le(n, t.id, t.defaultValue), e[43] = n, e[44] = t.defaultValue, e[45] = t.id, e[46] = h) : h = e[46];
2776
- let u;
2777
- return e[47] !== m || e[48] !== t.description || e[49] !== t.name || e[50] !== h ? (u = /* @__PURE__ */ r(ao, { ...m, name: g, description: b, defaultValue: h }), e[47] = m, e[48] = t.description, e[49] = t.name, e[50] = h, e[51] = u) : u = e[51], u;
2778
- }
2779
- case "vector": {
2780
- const g = t.name, b = t.description;
2781
- let h;
2782
- e[52] !== n || e[53] !== t.defaultValue || e[54] !== t.id ? (h = le(n, t.id, t.defaultValue), e[52] = n, e[53] = t.defaultValue, e[54] = t.id, e[55] = h) : h = e[55];
2783
- let u;
2784
- 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] !== h ? (u = /* @__PURE__ */ r(Uo, { ...m, name: g, description: b, defaultValue: h, 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] = h, e[65] = u) : u = e[65], u;
2785
- }
2786
- case "fileUpload": {
2787
- const g = t.id, b = t.name, h = t.description;
2788
- let u;
2789
- e[66] !== n || e[67] !== t.defaultValue || e[68] !== t.id ? (u = le(n, t.id, t.defaultValue), e[66] = n, e[67] = t.defaultValue, e[68] = t.id, e[69] = u) : u = e[69];
2790
- let v;
2791
- return e[70] !== m.readOnly || e[71] !== o || 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] !== c || e[79] !== u ? (v = /* @__PURE__ */ r(xo, { id: g, name: b, description: h, defaultValue: u, accept: t.accept, multiple: t.multiple, uploadLabel: t.uploadLabel, readOnly: m.readOnly, presentation: c, onChange: o }), e[70] = m.readOnly, e[71] = o, 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] = c, e[79] = u, e[80] = v) : v = e[80], v;
2792
- }
2793
- }
2794
- }, Do = (i) => i.type === "fileUpload", bl = (i) => i.type !== "anchorGrid", Ge = (i) => i === null || i === "" ? "Not provided" : String(i), Mo = (i) => {
2795
- const e = N(23), {
2796
- value: t
2797
- } = i;
2798
- if (Array.isArray(t)) {
2799
- if (t.length === 0) {
2800
- let s;
2801
- return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(te, { color: "fg.muted", children: "None" }), e[0] = s) : s = e[0], s;
2802
- }
2803
- let l;
2804
- e[1] !== t ? (l = t.map(Xo), e[1] = t, e[2] = l) : l = e[2];
2805
- let c;
2806
- return e[3] !== l ? (c = /* @__PURE__ */ r(We, { gap: "2xs", flexWrap: "wrap", children: l }), e[3] = l, e[4] = c) : c = e[4], c;
2807
- }
2808
- if (typeof t == "object" && t !== null) {
2809
- let l;
2810
- e[5] !== t.alt || e[6] !== t.images || e[7] !== t.src || e[8] !== t.type ? (l = t.type === "image" ? [{
2811
- src: t.src,
2812
- alt: t.alt
2813
- }] : t.images, e[5] = t.alt, e[6] = t.images, e[7] = t.src, e[8] = t.type, e[9] = l) : l = e[9];
2814
- const c = l;
2815
- let s;
2816
- e[10] !== c ? (s = c.map(Yo), e[10] = c, e[11] = s) : s = e[11];
2817
- let d;
2818
- return e[12] !== s ? (d = /* @__PURE__ */ r(We, { gap: "2xs", flexWrap: "wrap", children: s }), e[12] = s, e[13] = d) : d = e[13], d;
2819
- }
2820
- if (typeof t == "boolean") {
2821
- let l;
2822
- e[14] !== t ? (l = Ge(t), e[14] = t, e[15] = l) : l = e[15];
2823
- let c;
2824
- return e[16] !== l ? (c = /* @__PURE__ */ r(te, { children: l }), e[16] = l, e[17] = c) : c = e[17], c;
2825
- }
2826
- const n = t === null || t === "" ? "fg.muted" : "fg";
2827
- let o;
2828
- e[18] !== t ? (o = Ge(t), e[18] = t, e[19] = o) : o = e[19];
2829
- let a;
2830
- return e[20] !== n || e[21] !== o ? (a = /* @__PURE__ */ r(te, { color: n, children: o }), e[20] = n, e[21] = o, e[22] = a) : a = e[22], a;
2831
- }, Ko = (i) => {
2832
- const e = N(7), {
2833
- param: t,
2834
- fullWidth: n
2835
- } = i;
2836
- let o;
2837
- e[0] !== t.value ? (o = /* @__PURE__ */ r(Mo, { value: t.value }), e[0] = t.value, e[1] = o) : o = e[1];
2838
- let a;
2839
- return e[2] !== n || e[3] !== t.description || e[4] !== t.name || e[5] !== o ? (a = /* @__PURE__ */ r(de, { name: t.name, description: t.description, fullWidth: n, children: o }), e[2] = n, e[3] = t.description, e[4] = t.name, e[5] = o, e[6] = a) : a = e[6], a;
2840
- };
2841
- function Xo(i, e) {
2842
- return /* @__PURE__ */ r(He, { variant: "subtle", colorPalette: "gray", children: Ge(i) }, `${String(i)}-${e}`);
2843
- }
2844
- function Yo(i) {
2845
- return /* @__PURE__ */ r(ot, { src: i.src, alt: i.alt, width: "96px", height: "72px", borderRadius: "sm", borderWidth: "1px", borderColor: "border.subtle", objectFit: "cover" }, `${i.src}-${i.alt}`);
2846
- }
2847
- const Zo = (i) => {
2848
- const e = N(16), {
2849
- param: t,
2850
- fullWidth: n
2851
- } = i;
2852
- if (n) {
2853
- let c;
2854
- e[0] !== t.description || e[1] !== t.name ? (c = /* @__PURE__ */ r(E, { mb: "xs", children: /* @__PURE__ */ r(D, { name: t.name, description: t.description }) }), e[0] = t.description, e[1] = t.name, e[2] = c) : c = e[2];
2855
- let s;
2856
- e[3] !== t.value ? (s = /* @__PURE__ */ r(te, { children: t.value }), e[3] = t.value, e[4] = s) : s = e[4];
2857
- let d;
2858
- return e[5] !== c || e[6] !== s ? (d = /* @__PURE__ */ _(E, { children: [
2859
- c,
2860
- s
2861
- ] }), e[5] = c, e[6] = s, e[7] = d) : d = e[7], d;
2862
- }
2863
- let o;
2864
- e[8] !== t.description || e[9] !== t.name ? (o = /* @__PURE__ */ r(D, { name: t.name, description: t.description }), e[8] = t.description, e[9] = t.name, e[10] = o) : o = e[10];
2865
- let a;
2866
- e[11] !== t.value ? (a = /* @__PURE__ */ r(te, { children: t.value }), e[11] = t.value, e[12] = a) : a = e[12];
2867
- let l;
2868
- return e[13] !== o || e[14] !== a ? (l = /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
2869
- o,
2870
- a
2871
- ] }), e[13] = o, e[14] = a, e[15] = l) : l = e[15], l;
2872
- }, ml = (i) => {
2873
- const e = N(137), {
2874
- param: t,
2875
- defaultValues: n,
2876
- onChange: o,
2877
- onOpenResource: a,
2878
- readOnly: l,
2879
- fullWidth: c,
2880
- presentation: s,
2881
- size: d
2882
- } = i, f = c === void 0 ? !1 : c, m = s === void 0 ? "stacked" : s, g = d === void 0 ? "sm" : d, b = m === "horizontal";
2883
- let h;
2884
- e[0] !== t ? (h = Do(t), e[0] = t, e[1] = h) : h = e[1];
2885
- const u = h, v = l || t.readOnly, $ = b ? u : f;
2886
- let k;
2887
- e[2] !== o || e[3] !== t.id || e[4] !== g || e[5] !== v || e[6] !== $ ? (k = {
2888
- id: t.id,
2889
- readOnly: v,
2890
- onChange: o,
2891
- fullWidth: $,
2892
- size: g
2893
- }, e[2] = o, e[3] = t.id, e[4] = g, e[5] = v, e[6] = $, e[7] = k) : k = e[7];
2894
- const C = k;
2895
- switch (t.type) {
2896
- case "number": {
2897
- const x = t.name, p = t.description || "";
2898
- let y;
2899
- e[8] !== n || e[9] !== t.defaultValue || e[10] !== t.id ? (y = le(n, t.id, t.defaultValue), e[8] = n, e[9] = t.defaultValue, e[10] = t.id, e[11] = y) : y = e[11];
2900
- let S;
2901
- return e[12] !== C || e[13] !== b || e[14] !== t.max || e[15] !== t.min || e[16] !== t.name || e[17] !== t.step || e[18] !== p || e[19] !== y ? (S = /* @__PURE__ */ r(mt, { ...C, name: x, description: p, defaultValue: y, min: t.min, max: t.max, step: t.step, hideLabel: b, hideSlider: b }), e[12] = C, e[13] = b, e[14] = t.max, e[15] = t.min, e[16] = t.name, e[17] = t.step, e[18] = p, e[19] = y, e[20] = S) : S = e[20], S;
2902
- }
2903
- case "boolean": {
2904
- const x = t.name, p = t.description;
2905
- let y;
2906
- e[21] !== n || e[22] !== t.defaultValue || e[23] !== t.id ? (y = le(n, t.id, t.defaultValue), e[21] = n, e[22] = t.defaultValue, e[23] = t.id, e[24] = y) : y = e[24];
2907
- let S;
2908
- return e[25] !== C || e[26] !== b || e[27] !== t.description || e[28] !== t.name || e[29] !== y ? (S = /* @__PURE__ */ r(so, { ...C, name: x, description: p, defaultValue: y, hideLabel: b }), e[25] = C, e[26] = b, e[27] = t.description, e[28] = t.name, e[29] = y, e[30] = S) : S = e[30], S;
2909
- }
2910
- case "text": {
2911
- if (b) {
2912
- const V = t.name, L = t.description || "";
2913
- let I;
2914
- e[31] !== n || e[32] !== t.defaultValue || e[33] !== t.id ? (I = le(n, t.id, t.defaultValue), e[31] = n, e[32] = t.defaultValue, e[33] = t.id, e[34] = I) : I = e[34];
2915
- let T;
2916
- return e[35] !== C || e[36] !== t.name || e[37] !== L || e[38] !== I ? (T = /* @__PURE__ */ r(yo, { ...C, name: V, description: L, defaultValue: I, hideLabel: !0 }), e[35] = C, e[36] = t.name, e[37] = L, e[38] = I, e[39] = T) : T = e[39], T;
2917
- }
2918
- const x = t.name, p = t.description || "";
2919
- let y;
2920
- e[40] !== n || e[41] !== t.defaultValue || e[42] !== t.id ? (y = le(n, t.id, t.defaultValue), e[40] = n, e[41] = t.defaultValue, e[42] = t.id, e[43] = y) : y = e[43];
2921
- let S;
2922
- return e[44] !== C || e[45] !== t.name || e[46] !== t.singleLine || e[47] !== p || e[48] !== y ? (S = /* @__PURE__ */ r(No, { ...C, name: x, description: p, defaultValue: y, singleLine: t.singleLine }), e[44] = C, e[45] = t.name, e[46] = t.singleLine, e[47] = p, e[48] = y, e[49] = S) : S = e[49], S;
2923
- }
2924
- case "markdown": {
2925
- const x = t.id, p = t.name, y = t.description;
2926
- let S;
2927
- e[50] !== n || e[51] !== t.defaultValue || e[52] !== t.id ? (S = le(n, t.id, t.defaultValue), e[50] = n, e[51] = t.defaultValue, e[52] = t.id, e[53] = S) : S = e[53];
2928
- let V;
2929
- return e[54] !== C.readOnly || e[55] !== o || e[56] !== t.description || e[57] !== t.id || e[58] !== t.name || e[59] !== t.placeholder || e[60] !== m || e[61] !== g || e[62] !== S ? (V = /* @__PURE__ */ r(Co, { id: x, name: p, description: y, defaultValue: S, placeholder: t.placeholder, readOnly: C.readOnly, presentation: m, size: g, onChange: o }), e[54] = C.readOnly, e[55] = o, e[56] = t.description, e[57] = t.id, e[58] = t.name, e[59] = t.placeholder, e[60] = m, e[61] = g, e[62] = S, e[63] = V) : V = e[63], V;
2930
- }
2931
- case "selection": {
2932
- const x = t.name, p = t.description || "";
2933
- let y;
2934
- e[64] !== n || e[65] !== t.defaultValue || e[66] !== t.id ? (y = le(n, t.id, t.defaultValue), e[64] = n, e[65] = t.defaultValue, e[66] = t.id, e[67] = y) : y = e[67];
2935
- let S;
2936
- e[68] !== n || e[69] !== t.group ? (S = t.group ? {
2937
- ...t.group,
2938
- defaultValue: le(n, t.group.id, t.group.defaultValue)
2939
- } : void 0, e[68] = n, e[69] = t.group, e[70] = S) : S = e[70];
2940
- let V;
2941
- return e[71] !== C || e[72] !== b || e[73] !== t.clearable || e[74] !== t.disabled || e[75] !== t.emptyText || e[76] !== t.multiSelect || e[77] !== t.name || e[78] !== t.options || e[79] !== t.placeholder || e[80] !== t.searchPlaceholder || e[81] !== t.searchable || e[82] !== S || e[83] !== p || e[84] !== y ? (V = /* @__PURE__ */ r(Eo, { ...C, name: x, description: p, defaultValue: y, options: t.options, multiSelect: t.multiSelect, placeholder: t.placeholder, clearable: t.clearable, disabled: t.disabled, searchable: t.searchable, searchPlaceholder: t.searchPlaceholder, emptyText: t.emptyText, group: S, hideLabel: b }), e[71] = C, e[72] = b, e[73] = t.clearable, e[74] = t.disabled, e[75] = t.emptyText, e[76] = t.multiSelect, e[77] = t.name, e[78] = t.options, e[79] = t.placeholder, e[80] = t.searchPlaceholder, e[81] = t.searchable, e[82] = S, e[83] = p, e[84] = y, e[85] = V) : V = e[85], V;
2942
- }
2943
- case "date": {
2944
- const x = t.name, p = t.description || "";
2945
- let y;
2946
- e[86] !== n || e[87] !== t.defaultValue || e[88] !== t.id ? (y = le(n, t.id, t.defaultValue), e[86] = n, e[87] = t.defaultValue, e[88] = t.id, e[89] = y) : y = e[89];
2947
- let S;
2948
- return e[90] !== C || e[91] !== b || e[92] !== t.max || e[93] !== t.min || e[94] !== t.name || e[95] !== p || e[96] !== y ? (S = /* @__PURE__ */ r(uo, { ...C, name: x, description: p, defaultValue: y, min: t.min, max: t.max, hideLabel: b }), e[90] = C, e[91] = b, e[92] = t.max, e[93] = t.min, e[94] = t.name, e[95] = p, e[96] = y, e[97] = S) : S = e[97], S;
2949
- }
2950
- case "color": {
2951
- const x = t.name, p = t.description || "";
2952
- let y;
2953
- e[98] !== n || e[99] !== t.defaultValue || e[100] !== t.id ? (y = le(n, t.id, t.defaultValue), e[98] = n, e[99] = t.defaultValue, e[100] = t.id, e[101] = y) : y = e[101];
2954
- let S;
2955
- return e[102] !== C || e[103] !== b || e[104] !== t.name || e[105] !== p || e[106] !== y ? (S = /* @__PURE__ */ r(fo, { ...C, name: x, description: p, defaultValue: y, hideLabel: b }), e[102] = C, e[103] = b, e[104] = t.name, e[105] = p, e[106] = y, e[107] = S) : S = e[107], S;
2956
- }
2957
- case "property": {
2958
- const x = b ? !1 : f;
2959
- let p;
2960
- return e[108] !== t || e[109] !== x ? (p = /* @__PURE__ */ r(Zo, { param: t, fullWidth: x }), e[108] = t, e[109] = x, e[110] = p) : p = e[110], p;
2961
- }
2962
- case "readOnly": {
2963
- const x = b ? !1 : f;
2964
- let p;
2965
- return e[111] !== t || e[112] !== x ? (p = /* @__PURE__ */ r(Ko, { param: t, fullWidth: x }), e[111] = t, e[112] = x, e[113] = p) : p = e[113], p;
2966
- }
2967
- case "resource": {
2968
- const x = t.name, p = t.description;
2969
- let y;
2970
- e[114] !== n || e[115] !== t.defaultValue || e[116] !== t.id ? (y = le(n, t.id, t.defaultValue), e[114] = n, e[115] = t.defaultValue, e[116] = t.id, e[117] = y) : y = e[117];
2971
- let S;
2972
- return e[118] !== C || e[119] !== a || e[120] !== t.description || e[121] !== t.editable || e[122] !== t.emptyText || e[123] !== t.multiSelect || e[124] !== t.name || e[125] !== t.options || e[126] !== t.placeholder || e[127] !== m || e[128] !== y ? (S = /* @__PURE__ */ r(Oo, { ...C, name: x, description: p, defaultValue: y, options: t.options, multiSelect: t.multiSelect, editable: t.editable, placeholder: t.placeholder, emptyText: t.emptyText, onOpenResource: a, presentation: m }), e[118] = C, e[119] = a, e[120] = t.description, e[121] = t.editable, e[122] = t.emptyText, e[123] = t.multiSelect, e[124] = t.name, e[125] = t.options, e[126] = t.placeholder, e[127] = m, e[128] = y, e[129] = S) : S = e[129], S;
2973
- }
2974
- case "range":
2975
- case "segmented":
2976
- case "actions":
2977
- case "anchorGrid":
2978
- case "vector":
2979
- case "fileUpload": {
2980
- let x;
2981
- return e[130] !== n || e[131] !== f || e[132] !== o || e[133] !== t || e[134] !== m || e[135] !== l ? (x = /* @__PURE__ */ r(qo, { param: t, defaultValues: n, onChange: o, readOnly: l, fullWidth: f, presentation: m }), e[130] = n, e[131] = f, e[132] = o, e[133] = t, e[134] = m, e[135] = l, e[136] = x) : x = e[136], x;
2982
- }
2983
- default:
2984
- return null;
2985
- }
2986
- };
2987
- export {
2988
- On as A,
2989
- so as B,
2990
- An as C,
2991
- uo as D,
2992
- xo as F,
2993
- yo as H,
2994
- Co as M,
2995
- Ye as N,
2996
- ml as P,
2997
- Io as R,
2998
- Eo as S,
2999
- No as T,
3000
- Uo as V,
3001
- fl as W,
3002
- Do as a,
3003
- Mn as b,
3004
- Xe as c,
3005
- sl as d,
3006
- ut as e,
3007
- co as f,
3008
- $e as g,
3009
- ao as h,
3010
- bl as i,
3011
- fo as j,
3012
- mt as k,
3013
- de as l,
3014
- D as m,
3015
- jo as n,
3016
- Gn as o,
3017
- Ko as p,
3018
- te as q,
3019
- Oo as r,
3020
- Ao as s,
3021
- Dn as t,
3022
- st as u,
3023
- ul as v,
3024
- qn as w,
3025
- Un as x,
3026
- dl as y
3027
- };
3028
- //# sourceMappingURL=param-editor-field-B9lEPq8c.js.map