@pstdio/ui 0.41.0 → 0.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/dist/{MermaidComponent-BCiI63_G.js → MermaidComponent-D7vhkpka.js} +2 -2
  2. package/dist/{MermaidComponent-BCiI63_G.js.map → MermaidComponent-D7vhkpka.js.map} +1 -1
  3. package/dist/alert-MQ47wy7f.js +388 -0
  4. package/dist/alert-MQ47wy7f.js.map +1 -0
  5. package/dist/chat-ui.d.ts +36 -5
  6. package/dist/chat-ui.js +1777 -1422
  7. package/dist/chat-ui.js.map +1 -1
  8. package/dist/collection-view-fields-D3cysHNT.d.ts +232 -0
  9. package/dist/collection-view-grouping-D4nZk8-3.js +90 -0
  10. package/dist/collection-view-grouping-D4nZk8-3.js.map +1 -0
  11. package/dist/collection-view-search-CpjJy76w.js +1973 -0
  12. package/dist/collection-view-search-CpjJy76w.js.map +1 -0
  13. package/dist/collection-view.d.ts +4 -0
  14. package/dist/collection-view.js +2 -0
  15. package/dist/{data-table-stats-row-EiTEONdY.js → data-table-stats-row-64magT2g.js} +2 -2
  16. package/dist/{data-table-stats-row-EiTEONdY.js.map → data-table-stats-row-64magT2g.js.map} +1 -1
  17. package/dist/data-table.d.ts +3 -1
  18. package/dist/data-table.js +279 -277
  19. package/dist/data-table.js.map +1 -1
  20. package/dist/{diff-drawer-BwZBOObe.js → diff-drawer-IYpQ-QQK.js} +192 -191
  21. package/dist/diff-drawer-IYpQ-QQK.js.map +1 -0
  22. package/dist/{diff-viewer-kOOd7C7h.js → diff-viewer-C-0VAt9P.js} +4 -4
  23. package/dist/{diff-viewer-kOOd7C7h.js.map → diff-viewer-C-0VAt9P.js.map} +1 -1
  24. package/dist/diff.js +2 -2
  25. package/dist/{display-sort-control-DPxc0e5z.js → display-sort-control-f3rbILsV.js} +87 -86
  26. package/dist/{display-sort-control-DPxc0e5z.js.map → display-sort-control-f3rbILsV.js.map} +1 -1
  27. package/dist/drop-indicator-HjlBSIeV.js +27 -0
  28. package/dist/drop-indicator-HjlBSIeV.js.map +1 -0
  29. package/dist/edit-mode-data-table-DnMB2jiy.js +1449 -0
  30. package/dist/edit-mode-data-table-DnMB2jiy.js.map +1 -0
  31. package/dist/host-storage-BIo5azql.js +31 -0
  32. package/dist/host-storage-BIo5azql.js.map +1 -0
  33. package/dist/host-storage-J0089Hyk.d.ts +17 -0
  34. package/dist/icon-options-Tt6Wzhtv.js +308 -0
  35. package/dist/icon-options-Tt6Wzhtv.js.map +1 -0
  36. package/dist/{index-C9mywhyX.d.ts → index-B79hwNcB.d.ts} +17 -1
  37. package/dist/index-CKsd23jv.d.ts +80 -0
  38. package/dist/{index-D3UJyWWh.d.ts → index-ICoad2I_.d.ts} +4 -223
  39. package/dist/index.d.ts +22 -6
  40. package/dist/index.js +1174 -1112
  41. package/dist/index.js.map +1 -1
  42. package/dist/kanban-renderer.d.ts +2 -1
  43. package/dist/kanban-renderer.js +531 -528
  44. package/dist/kanban-renderer.js.map +1 -1
  45. package/dist/list-row-Z4SHkseA.js +1195 -0
  46. package/dist/list-row-Z4SHkseA.js.map +1 -0
  47. package/dist/markdown-editor-Dd4mor7l.js +3236 -0
  48. package/dist/markdown-editor-Dd4mor7l.js.map +1 -0
  49. package/dist/number-input-7K66wnSC.js +63 -0
  50. package/dist/number-input-7K66wnSC.js.map +1 -0
  51. package/dist/param-editor-Dnix-fJo.js +225 -0
  52. package/dist/param-editor-Dnix-fJo.js.map +1 -0
  53. package/dist/param-editor-field-B3vLST-B.js +2394 -0
  54. package/dist/param-editor-field-B3vLST-B.js.map +1 -0
  55. package/dist/param-editor.js +4 -2
  56. package/dist/prism-OG4H7Hu4.js +334 -0
  57. package/dist/prism-OG4H7Hu4.js.map +1 -0
  58. package/dist/queued-follow-up-Bj_vtMgd.js +208 -0
  59. package/dist/queued-follow-up-Bj_vtMgd.js.map +1 -0
  60. package/dist/rich-text-BgEnAHr2.js +1160 -0
  61. package/dist/rich-text-BgEnAHr2.js.map +1 -0
  62. package/dist/rich-text.d.ts +1 -1
  63. package/dist/rich-text.js +4 -2
  64. package/dist/terminal.js +1 -1
  65. package/dist/{theme-at0rtSnX.js → theme-CMJdH59Z.js} +224 -90
  66. package/dist/theme-CMJdH59Z.js.map +1 -0
  67. package/dist/theme.js +1 -1
  68. package/dist/tree-list-jarhD31R.js +1652 -0
  69. package/dist/tree-list-jarhD31R.js.map +1 -0
  70. package/dist/use-virtualizer-uj43XjBp.js +10 -0
  71. package/dist/use-virtualizer-uj43XjBp.js.map +1 -0
  72. package/dist/{host-storage-DP0RLj4i.d.ts → workspace-badge-BKtB805G.d.ts} +6 -16
  73. package/package.json +6 -2
  74. package/dist/chat-question-bubble-w2vMbFsS.js +0 -68
  75. package/dist/chat-question-bubble-w2vMbFsS.js.map +0 -1
  76. package/dist/diff-drawer-BwZBOObe.js.map +0 -1
  77. package/dist/list-row-DM0DiIrN.js +0 -1167
  78. package/dist/list-row-DM0DiIrN.js.map +0 -1
  79. package/dist/prism-JVIsQMoJ.js +0 -1029
  80. package/dist/prism-JVIsQMoJ.js.map +0 -1
  81. package/dist/rich-text-DM24VNQZ.js +0 -10447
  82. package/dist/rich-text-DM24VNQZ.js.map +0 -1
  83. package/dist/theme-at0rtSnX.js.map +0 -1
  84. package/dist/tree-list-Cqgl8mnN.js +0 -1621
  85. package/dist/tree-list-Cqgl8mnN.js.map +0 -1
@@ -1,1029 +0,0 @@
1
- import { n as e } from "./scroll-area-Cr1lNXAr.js";
2
- import { t } from "./browser-storage-C_ipoNwP.js";
3
- import { Alert as n, Avatar as r, Badge as i, Box as a, HStack as o, IconButton as s, Image as c, Popover as l, Slider as u, Stack as d, Switch as f, Text as p, Timeline as m, chakra as h, createSlotRecipeContext as g, defineSlotRecipe as _ } from "@chakra-ui/react";
4
- import { c as v } from "react/compiler-runtime";
5
- import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
6
- import * as S from "react";
7
- import { Children as C, createContext as w, useContext as T, useEffect as E, useState as D } from "react";
8
- import { Archive as O, Ban as k, Bell as A, BookOpen as j, Bookmark as M, Bot as N, Bug as ee, Circle as te, Code as ne, Component as re, Cpu as ie, Eye as ae, Feather as oe, File as se, FileArchive as ce, FileChartLine as le, FileCode as ue, FileCog as de, FileImage as P, FileJson as F, FileSpreadsheet as I, FileText as L, Flag as R, Flame as z, Folder as B, GitBranch as V, GitCommitHorizontal as H, Hash as fe, Heart as pe, History as me, Inbox as he, Kanban as ge, Layers as _e, Lightbulb as ve, Link as ye, ListChecks as be, MessageSquare as xe, Pause as Se, Pencil as Ce, Play as we, Puzzle as Te, Rocket as Ee, Scale as De, Settings as Oe, Shield as ke, Sparkles as Ae, SquareKanban as je, Star as Me, Tag as Ne, Target as Pe, Terminal as Fe, Ticket as Ie, Timer as Le, Trash2 as Re, Users as ze, Workflow as Be, Wrench as Ve, X as U, Zap as He } from "lucide-react";
9
- import { createJSONStorage as Ue } from "zustand/middleware";
10
- //#region src/components/activity/activity-avatar.tsx
11
- var W = (e) => {
12
- let t = v(14), { actor: n, icon: i, color: o, background: s } = e, c = o === void 0 ? "fg.muted" : o, l = s === void 0 ? "bg.muted" : s;
13
- if (i) {
14
- let e;
15
- return t[0] !== l || t[1] !== c || t[2] !== i ? (e = /* @__PURE__ */ b(a, {
16
- boxSize: "18px",
17
- borderRadius: "full",
18
- display: "inline-flex",
19
- alignItems: "center",
20
- justifyContent: "center",
21
- flexShrink: 0,
22
- color: c,
23
- background: l,
24
- children: i
25
- }), t[0] = l, t[1] = c, t[2] = i, t[3] = e) : e = t[3], e;
26
- }
27
- let u = n?.avatarSrc, d = n?.avatarAlt ?? n?.name, f;
28
- t[4] !== u || t[5] !== d ? (f = /* @__PURE__ */ b(r.Image, {
29
- src: u,
30
- alt: d
31
- }), t[4] = u, t[5] = d, t[6] = f) : f = t[6];
32
- let p = n?.name, m;
33
- t[7] !== l || t[8] !== c || t[9] !== p ? (m = /* @__PURE__ */ b(r.Fallback, {
34
- name: p,
35
- background: l,
36
- color: c
37
- }), t[7] = l, t[8] = c, t[9] = p, t[10] = m) : m = t[10];
38
- let h;
39
- return t[11] !== f || t[12] !== m ? (h = /* @__PURE__ */ x(r.Root, {
40
- size: "2xs",
41
- flexShrink: 0,
42
- children: [f, m]
43
- }), t[11] = f, t[12] = m, t[13] = h) : h = t[13], h;
44
- }, We = _({
45
- className: "activity-comment",
46
- slots: [
47
- "root",
48
- "body",
49
- "content"
50
- ],
51
- base: {
52
- root: {
53
- width: "full",
54
- borderWidth: "1px",
55
- borderRadius: "xs",
56
- overflow: "hidden"
57
- },
58
- body: {
59
- display: "flex",
60
- flexDirection: "column"
61
- },
62
- content: {
63
- color: "fg",
64
- overflowWrap: "anywhere",
65
- whiteSpace: "pre-wrap"
66
- }
67
- },
68
- variants: {
69
- tone: {
70
- default: { root: {
71
- background: "bg",
72
- borderColor: "border.subtle"
73
- } },
74
- attention: { root: {
75
- background: "bg.warning",
76
- borderColor: "border.warning"
77
- } }
78
- },
79
- size: {
80
- comfortable: {
81
- body: {
82
- gap: "sm",
83
- padding: "md"
84
- },
85
- content: { textStyle: "label/S/regular" }
86
- },
87
- compact: {
88
- body: {
89
- gap: "xs",
90
- padding: "sm"
91
- },
92
- content: { textStyle: "label/S/regular" }
93
- }
94
- }
95
- },
96
- defaultVariants: {
97
- tone: "default",
98
- size: "comfortable"
99
- }
100
- }), { withContext: G, withProvider: Ge } = g({ recipe: We }), Ke = () => {
101
- let e = v(1), t;
102
- return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ b(a, {
103
- as: "span",
104
- boxSize: "3px",
105
- borderRadius: "full",
106
- background: "fg.subtle",
107
- flexShrink: 0
108
- }), e[0] = t) : t = e[0], t;
109
- }, K = (e) => {
110
- let t = v(16), { actor: n, icon: r, iconColor: i, iconBackground: s, timestamp: c, actions: l } = e, u;
111
- t[0] !== n || t[1] !== r || t[2] !== s || t[3] !== i ? (u = /* @__PURE__ */ b(W, {
112
- actor: n,
113
- icon: r,
114
- color: i,
115
- background: s
116
- }), t[0] = n, t[1] = r, t[2] = s, t[3] = i, t[4] = u) : u = t[4];
117
- let d;
118
- t[5] === n.name ? d = t[6] : (d = /* @__PURE__ */ b(p, {
119
- textStyle: "label/S/medium",
120
- color: "fg",
121
- truncate: !0,
122
- children: n.name
123
- }), t[5] = n.name, t[6] = d);
124
- let f;
125
- t[7] === c ? f = t[8] : (f = c ? /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(Ke, {}), /* @__PURE__ */ b(p, {
126
- textStyle: "label/S/regular",
127
- color: "fg.muted",
128
- flexShrink: 0,
129
- children: c
130
- })] }) : null, t[7] = c, t[8] = f);
131
- let m;
132
- t[9] === l ? m = t[10] : (m = /* @__PURE__ */ b(a, {
133
- marginLeft: "auto",
134
- flexShrink: 0,
135
- children: l
136
- }), t[9] = l, t[10] = m);
137
- let h;
138
- return t[11] !== u || t[12] !== d || t[13] !== f || t[14] !== m ? (h = /* @__PURE__ */ x(o, {
139
- gap: "xs",
140
- alignItems: "center",
141
- minW: "0",
142
- children: [
143
- u,
144
- d,
145
- f,
146
- m
147
- ]
148
- }), t[11] = u, t[12] = d, t[13] = f, t[14] = m, t[15] = h) : h = t[15], h;
149
- }, qe = Ge("article", "root"), Je = G("div", "body"), Ye = G("div", "content"), Xe = (e) => {
150
- let t = v(18), n, r, i, o, s;
151
- t[0] === e ? (n = t[1], r = t[2], i = t[3], o = t[4], s = t[5]) : ({actor: r, timestamp: s, actions: n, children: i, ...o} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = o, t[5] = s);
152
- let c;
153
- t[6] !== n || t[7] !== r || t[8] !== s ? (c = /* @__PURE__ */ b(K, {
154
- actor: r,
155
- timestamp: s,
156
- actions: n
157
- }), t[6] = n, t[7] = r, t[8] = s, t[9] = c) : c = t[9];
158
- let l;
159
- t[10] === i ? l = t[11] : (l = /* @__PURE__ */ b(a, {
160
- paddingLeft: "32px",
161
- children: /* @__PURE__ */ b(p, {
162
- as: "div",
163
- textStyle: "label/S/regular",
164
- color: "fg",
165
- overflowWrap: "anywhere",
166
- children: i
167
- })
168
- }), t[10] = i, t[11] = l);
169
- let u;
170
- t[12] !== c || t[13] !== l ? (u = /* @__PURE__ */ x(d, {
171
- gap: "xs",
172
- children: [c, l]
173
- }), t[12] = c, t[13] = l, t[14] = u) : u = t[14];
174
- let f;
175
- return t[15] !== o || t[16] !== u ? (f = /* @__PURE__ */ b(a, {
176
- paddingX: "md",
177
- paddingY: "sm",
178
- ...o,
179
- children: u
180
- }), t[15] = o, t[16] = u, t[17] = f) : f = t[17], f;
181
- }, Ze = (e) => {
182
- let t = v(33), n, r, i, o, s, c, l, u, d, f;
183
- t[0] === e ? (n = t[1], r = t[2], i = t[3], o = t[4], s = t[5], c = t[6], l = t[7], u = t[8], d = t[9], f = t[10]) : ({actor: r, icon: s, iconColor: l, iconBackground: c, timestamp: f, actions: n, replies: u, composer: o, children: i, ...d} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = o, t[5] = s, t[6] = c, t[7] = l, t[8] = u, t[9] = d, t[10] = f);
184
- let p = C.count(u) > 0, m;
185
- t[11] !== n || t[12] !== r || t[13] !== s || t[14] !== c || t[15] !== l || t[16] !== f ? (m = /* @__PURE__ */ b(K, {
186
- actor: r,
187
- icon: s,
188
- iconColor: l,
189
- iconBackground: c,
190
- timestamp: f,
191
- actions: n
192
- }), t[11] = n, t[12] = r, t[13] = s, t[14] = c, t[15] = l, t[16] = f, t[17] = m) : m = t[17];
193
- let h;
194
- t[18] === i ? h = t[19] : (h = /* @__PURE__ */ b(Ye, { children: i }), t[18] = i, t[19] = h);
195
- let g;
196
- t[20] !== m || t[21] !== h ? (g = /* @__PURE__ */ x(Je, { children: [m, h] }), t[20] = m, t[21] = h, t[22] = g) : g = t[22];
197
- let _;
198
- t[23] !== p || t[24] !== u ? (_ = p ? /* @__PURE__ */ b(a, {
199
- borderTopWidth: "1px",
200
- borderColor: "border.subtle",
201
- children: u
202
- }) : null, t[23] = p, t[24] = u, t[25] = _) : _ = t[25];
203
- let y;
204
- t[26] === o ? y = t[27] : (y = o ? /* @__PURE__ */ b(a, {
205
- borderTopWidth: "1px",
206
- borderColor: "border.subtle",
207
- children: o
208
- }) : null, t[26] = o, t[27] = y);
209
- let S;
210
- return t[28] !== d || t[29] !== g || t[30] !== _ || t[31] !== y ? (S = /* @__PURE__ */ x(qe, {
211
- ...d,
212
- children: [
213
- g,
214
- _,
215
- y
216
- ]
217
- }), t[28] = d, t[29] = g, t[30] = _, t[31] = y, t[32] = S) : S = t[32], S;
218
- }, Qe = () => {
219
- let e = v(1), t;
220
- return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ b(a, {
221
- as: "span",
222
- boxSize: "3px",
223
- borderRadius: "full",
224
- background: "fg.subtle",
225
- flexShrink: 0
226
- }), e[0] = t) : t = e[0], t;
227
- }, $e = (e) => {
228
- let t = v(28), n, r, i, o, s, c, l;
229
- t[0] === e ? (n = t[1], r = t[2], i = t[3], o = t[4], s = t[5], c = t[6], l = t[7]) : ({actor: n, icon: i, iconColor: s, iconBackground: c, timestamp: l, children: r, ...o} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = o, t[5] = s, t[6] = c, t[7] = l);
230
- let u = s === void 0 ? "fg" : s, d = c === void 0 ? "transparent" : c, f;
231
- t[8] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ b(m.Separator, { borderColor: "border" }), t[8] = f) : f = t[8];
232
- let h;
233
- t[9] !== n || t[10] !== i || t[11] !== d || t[12] !== u ? (h = /* @__PURE__ */ x(m.Connector, { children: [f, /* @__PURE__ */ b(m.Indicator, {
234
- outline: "none",
235
- border: "none",
236
- background: "bg",
237
- children: /* @__PURE__ */ b(W, {
238
- actor: n,
239
- icon: i,
240
- color: u,
241
- background: d
242
- })
243
- })] }), t[9] = n, t[10] = i, t[11] = d, t[12] = u, t[13] = h) : h = t[13];
244
- let g;
245
- t[14] === n ? g = t[15] : (g = n ? /* @__PURE__ */ b(p, {
246
- as: "span",
247
- color: "fg",
248
- fontWeight: "500",
249
- flexShrink: 0,
250
- children: n.name
251
- }) : null, t[14] = n, t[15] = g);
252
- let _;
253
- t[16] === r ? _ = t[17] : (_ = /* @__PURE__ */ b(a, {
254
- as: "span",
255
- display: "inline-flex",
256
- alignItems: "center",
257
- gap: "2xs",
258
- minW: "0",
259
- flexWrap: "wrap",
260
- children: r
261
- }), t[16] = r, t[17] = _);
262
- let S;
263
- t[18] === l ? S = t[19] : (S = l ? /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(Qe, {}), /* @__PURE__ */ b(p, {
264
- as: "span",
265
- color: "fg.muted",
266
- flexShrink: 0,
267
- children: l
268
- })] }) : null, t[18] = l, t[19] = S);
269
- let C;
270
- t[20] !== g || t[21] !== _ || t[22] !== S ? (C = /* @__PURE__ */ b(m.Content, {
271
- gap: "0",
272
- minW: "0",
273
- children: /* @__PURE__ */ x(m.Title, {
274
- marginTop: "0",
275
- gap: "xs",
276
- minW: "0",
277
- fontWeight: "normal",
278
- textStyle: "label/S/regular",
279
- color: "fg.muted",
280
- children: [
281
- g,
282
- _,
283
- S
284
- ]
285
- })
286
- }), t[20] = g, t[21] = _, t[22] = S, t[23] = C) : C = t[23];
287
- let w;
288
- return t[24] !== o || t[25] !== h || t[26] !== C ? (w = /* @__PURE__ */ x(m.Item, {
289
- gap: "xs",
290
- minH: "24px",
291
- paddingX: "md",
292
- ...o,
293
- children: [h, C]
294
- }), t[24] = o, t[25] = h, t[26] = C, t[27] = w) : w = t[27], w;
295
- }, et = (e) => {
296
- let t = v(6), n, r;
297
- t[0] === e ? (n = t[1], r = t[2]) : ({children: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
298
- let i;
299
- return t[3] !== n || t[4] !== r ? (i = /* @__PURE__ */ b(d, {
300
- width: "full",
301
- gap: "md",
302
- ...r,
303
- children: n
304
- }), t[3] = n, t[4] = r, t[5] = i) : i = t[5], i;
305
- }, tt = (e) => {
306
- let t = v(12), n, r, i;
307
- t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({title: i, actions: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
308
- let a = i === void 0 ? "Activity" : i, s;
309
- t[4] === a ? s = t[5] : (s = /* @__PURE__ */ b(p, {
310
- textStyle: "label/M/medium",
311
- color: "fg",
312
- children: a
313
- }), t[4] = a, t[5] = s);
314
- let c;
315
- t[6] === n ? c = t[7] : (c = n ? /* @__PURE__ */ b(o, {
316
- gap: "xs",
317
- children: n
318
- }) : null, t[6] = n, t[7] = c);
319
- let l;
320
- return t[8] !== r || t[9] !== s || t[10] !== c ? (l = /* @__PURE__ */ x(o, {
321
- alignItems: "center",
322
- justifyContent: "space-between",
323
- gap: "md",
324
- ...r,
325
- children: [s, c]
326
- }), t[8] = r, t[9] = s, t[10] = c, t[11] = l) : l = t[11], l;
327
- }, nt = (e) => {
328
- let t = v(6), n, r;
329
- t[0] === e ? (n = t[1], r = t[2]) : ({children: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
330
- let i;
331
- return t[3] !== n || t[4] !== r ? (i = /* @__PURE__ */ b(d, {
332
- gap: "md",
333
- width: "full",
334
- ...r,
335
- children: n
336
- }), t[3] = n, t[4] = r, t[5] = i) : i = t[5], i;
337
- }, rt = (e) => {
338
- let t = v(7), n, r;
339
- t[0] === e ? (n = t[1], r = t[2]) : ({children: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
340
- let i;
341
- t[3] === Symbol.for("react.memo_cache_sentinel") ? (i = { "--timeline-indicator-size": "18px" }, t[3] = i) : i = t[3];
342
- let a;
343
- return t[4] !== n || t[5] !== r ? (a = /* @__PURE__ */ b(m.Root, {
344
- size: "sm",
345
- variant: "plain",
346
- width: "full",
347
- css: i,
348
- ...r,
349
- children: n
350
- }), t[4] = n, t[5] = r, t[6] = a) : a = t[6], a;
351
- }, it = S.forwardRef(function(e, t) {
352
- let r = v(23), i, a, c, l, u, d, f;
353
- r[0] === e ? (i = r[1], a = r[2], c = r[3], l = r[4], u = r[5], d = r[6], f = r[7]) : ({title: f, children: i, icon: c, startElement: d, endElement: a, onClose: l, ...u} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = c, r[4] = l, r[5] = u, r[6] = d, r[7] = f);
354
- let p;
355
- r[8] !== c || r[9] !== d ? (p = d || /* @__PURE__ */ b(n.Indicator, { children: c }), r[8] = c, r[9] = d, r[10] = p) : p = r[10];
356
- let m;
357
- r[11] !== i || r[12] !== f ? (m = i ? /* @__PURE__ */ x(n.Content, { children: [/* @__PURE__ */ b(n.Title, { children: f }), /* @__PURE__ */ b(n.Description, { children: i })] }) : /* @__PURE__ */ b(n.Title, {
358
- flex: "1",
359
- children: f
360
- }), r[11] = i, r[12] = f, r[13] = m) : m = r[13];
361
- let h;
362
- r[14] !== a || r[15] !== l ? (h = a || l ? /* @__PURE__ */ x(o, {
363
- gap: "2xs",
364
- alignSelf: "center",
365
- children: [a, l ? /* @__PURE__ */ b(s, {
366
- "aria-label": "Dismiss",
367
- size: "2xs",
368
- variant: "ghost",
369
- onClick: l,
370
- children: /* @__PURE__ */ b(U, {})
371
- }) : null]
372
- }) : null, r[14] = a, r[15] = l, r[16] = h) : h = r[16];
373
- let g;
374
- return r[17] !== t || r[18] !== u || r[19] !== p || r[20] !== m || r[21] !== h ? (g = /* @__PURE__ */ x(n.Root, {
375
- ref: t,
376
- px: "xs",
377
- py: "2xs",
378
- gap: "2xs",
379
- minH: "auto",
380
- ...u,
381
- children: [
382
- p,
383
- m,
384
- h
385
- ]
386
- }), r[17] = t, r[18] = u, r[19] = p, r[20] = m, r[21] = h, r[22] = g) : g = r[22], g;
387
- }), at = (e) => e.type.startsWith("image/"), ot = (e) => e < 1024 ? `${e.toString()} B` : e < 1048576 ? `${Math.round(e / 1024).toString()} KB` : `${(e / 1048576).toFixed(1)} MB`, st = (e) => {
388
- let t = v(22), { file: n, removeLabel: r, disabled: a, onRemove: o } = e, [u, d] = D(null), f, m;
389
- t[0] === n ? (f = t[1], m = t[2]) : (f = () => {
390
- if (!at(n)) return;
391
- let e = URL.createObjectURL(n);
392
- return d(e), () => URL.revokeObjectURL(e);
393
- }, m = [n], t[0] = n, t[1] = f, t[2] = m), E(f, m);
394
- let g;
395
- t[3] === n.name ? g = t[4] : (g = /* @__PURE__ */ b(p, {
396
- as: "span",
397
- textStyle: "label/XS/medium",
398
- lineClamp: 1,
399
- maxW: "180px",
400
- children: n.name
401
- }), t[3] = n.name, t[4] = g);
402
- let _ = g, y;
403
- t[5] !== n.name || t[6] !== _ || t[7] !== u ? (y = u ? /* @__PURE__ */ x(l.Root, {
404
- positioning: { placement: "top" },
405
- children: [/* @__PURE__ */ b(l.Trigger, {
406
- asChild: !0,
407
- children: /* @__PURE__ */ b(h.button, {
408
- type: "button",
409
- cursor: "pointer",
410
- minW: "0",
411
- display: "inline-flex",
412
- children: _
413
- })
414
- }), /* @__PURE__ */ b(l.Positioner, { children: /* @__PURE__ */ b(l.Content, {
415
- w: "auto",
416
- p: "2xs",
417
- bg: "bg",
418
- children: /* @__PURE__ */ b(c, {
419
- src: u,
420
- alt: n.name,
421
- maxW: "240px",
422
- maxH: "240px",
423
- borderRadius: "sm"
424
- })
425
- }) })]
426
- }) : _, t[5] = n.name, t[6] = _, t[7] = u, t[8] = y) : y = t[8];
427
- let S;
428
- t[9] === n.size ? S = t[10] : (S = ot(n.size), t[9] = n.size, t[10] = S);
429
- let C;
430
- t[11] === S ? C = t[12] : (C = /* @__PURE__ */ b(p, {
431
- as: "span",
432
- textStyle: "label/XS/regular",
433
- color: "fg.subtle",
434
- children: S
435
- }), t[11] = S, t[12] = C);
436
- let w;
437
- t[13] === Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ b(U, { size: 12 }), t[13] = w) : w = t[13];
438
- let T;
439
- t[14] !== a || t[15] !== o || t[16] !== r ? (T = /* @__PURE__ */ b(s, {
440
- size: "2xs",
441
- variant: "ghost",
442
- "aria-label": r,
443
- disabled: a,
444
- onClick: o,
445
- children: w
446
- }), t[14] = a, t[15] = o, t[16] = r, t[17] = T) : T = t[17];
447
- let O;
448
- return t[18] !== y || t[19] !== C || t[20] !== T ? (O = /* @__PURE__ */ x(i, {
449
- variant: "chip",
450
- gap: "2xs",
451
- pr: "2xs",
452
- children: [
453
- y,
454
- C,
455
- T
456
- ]
457
- }), t[18] = y, t[19] = C, t[20] = T, t[21] = O) : O = t[21], O;
458
- }, ct = (e) => {
459
- let t = v(2), n;
460
- return t[0] === e ? n = t[1] : (n = /* @__PURE__ */ b(i, {
461
- size: "sm",
462
- variant: "chip",
463
- ...e
464
- }), t[0] = e, t[1] = n), n;
465
- }, lt = new Map(Array.from("@font-face {\n font-family: \"prompt-studio-icons\";\n src: url(\"$fonts/prompt-studio-icons.eot?959122fb\");\n src:\n url(\"$fonts/prompt-studio-icons.eot?959122fb#iefix\") format(\"embedded-opentype\"),\n url(\"$fonts/prompt-studio-icons.woff2?959122fb\") format(\"woff2\"),\n url(\"$fonts/prompt-studio-icons.woff?959122fb\") format(\"woff\"),\n url(\"$fonts/prompt-studio-icons.ttf?959122fb\") format(\"truetype\"),\n url(\"$fonts/prompt-studio-icons.svg?959122fb#prompt-studio-icons\") format(\"svg\");\n font-weight: normal;\n font-style: normal;\n font-display: block;\n}\n\n[class^=\"icon-\"]::before,\n[class*=\" icon-\"]::before {\n font-family: \"prompt-studio-icons\", sans-serif;\n font-style: normal;\n font-weight: normal;\n speak: never;\n display: inline-block;\n text-decoration: inherit;\n width: 1em;\n margin-right: 0.2em;\n text-align: center;\n font-variant: normal;\n text-transform: none;\n line-height: 1em;\n margin-left: 0.2em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.icon-cloud-add::before {\n content: \"\\e800\";\n}\n.icon-credit-usage-50::before {\n content: \"\\e801\";\n}\n.icon-history::before {\n content: \"\\e802\";\n}\n.icon-data-string::before {\n content: \"\\e803\";\n}\n.icon-data-object::before {\n content: \"\\e804\";\n}\n.icon-data-integer::before {\n content: \"\\e805\";\n}\n.icon-data-double::before {\n content: \"\\e806\";\n}\n.icon-add::before {\n content: \"\\e807\";\n}\n.icon-add-circle::before {\n content: \"\\e808\";\n}\n.icon-data-boolean::before {\n content: \"\\e809\";\n}\n.icon-add-square::before {\n content: \"\\e80a\";\n}\n.icon-data-array::before {\n content: \"\\e80b\";\n}\n.icon-status-backlog::before {\n content: \"\\e80c\";\n}\n.icon-metrics::before {\n content: \"\\e80d\";\n}\n.icon-pie-donut::before {\n content: \"\\e80e\";\n}\n.icon-area-plot::before {\n content: \"\\e80f\";\n}\n.icon-treemap::before {\n content: \"\\e810\";\n}\n.icon-align-bottom::before {\n content: \"\\e811\";\n}\n.icon-align-horizontally::before {\n content: \"\\e812\";\n}\n.icon-align-left::before {\n content: \"\\e813\";\n}\n.icon-align-right::before {\n content: \"\\e814\";\n}\n.icon-align-vertically::before {\n content: \"\\e815\";\n}\n.icon-radar-column-chart::before {\n content: \"\\e816\";\n}\n.icon-pie-full::before {\n content: \"\\e817\";\n}\n.icon-archive-1::before {\n content: \"\\e818\";\n}\n.icon-archive-2::before {\n content: \"\\e819\";\n}\n.icon-archive-add::before {\n content: \"\\e81a\";\n}\n.icon-ct::before {\n content: \"\\e81b\";\n}\n.icon-archive-minus::before {\n content: \"\\e81c\";\n}\n.icon-archive-slash::before {\n content: \"\\e81d\";\n}\n.icon-archive-tick::before {\n content: \"\\e81e\";\n}\n.icon-min::before {\n content: \"\\e81f\";\n}\n.icon-ctd::before {\n content: \"\\e820\";\n}\n.icon-std::before {\n content: \"\\e821\";\n}\n.icon-var::before {\n content: \"\\e822\";\n}\n.icon-max::before {\n content: \"\\e823\";\n}\n.icon-sum::before {\n content: \"\\e824\";\n}\n.icon-status-todo::before {\n content: \"\\e825\";\n}\n.icon-status-progress::before {\n content: \"\\e826\";\n}\n.icon-status-review::before {\n content: \"\\e827\";\n}\n.icon-status-done::before {\n content: \"\\e828\";\n}\n.icon-status-canceled::before {\n content: \"\\e829\";\n}\n.icon-level-low::before {\n content: \"\\e82a\";\n}\n.icon-arrow-down::before {\n content: \"\\e82b\";\n}\n.icon-arrow-down-1::before {\n content: \"\\e82c\";\n}\n.icon-level-mid::before {\n content: \"\\e82d\";\n}\n.icon-arrow-left::before {\n content: \"\\e82e\";\n}\n.icon-level-high::before {\n content: \"\\e82f\";\n}\n.icon-arrow-left-2::before {\n content: \"\\e830\";\n}\n.icon-level-xhigh::before {\n content: \"\\e831\";\n}\n.icon-arrow-right::before {\n content: \"\\e832\";\n}\n.icon-arrow-right-1::before {\n content: \"\\e833\";\n}\n.icon-arrow-right-3::before {\n content: \"\\e835\";\n}\n.icon-arrow-right-4::before {\n content: \"\\e836\";\n}\n.icon-arrow-square-down::before {\n content: \"\\e838\";\n}\n.icon-arrow-square-left::before {\n content: \"\\e839\";\n}\n.icon-arrow-square-up::before {\n content: \"\\e83a\";\n}\n.icon-arrow-up-2::before {\n content: \"\\e83f\";\n}\n.icon-arrow-up-3::before {\n content: \"\\e840\";\n}\n.icon-book::before {\n content: \"\\e868\";\n}\n.icon-book-1::before {\n content: \"\\e869\";\n}\n.icon-box::before {\n content: \"\\e86e\";\n}\n.icon-pointing-arrow::before {\n content: \"\\e87d\";\n}\n.icon-data-structure::before {\n content: \"\\e87e\";\n}\n.icon-brush-4::before {\n content: \"\\e87f\";\n}\n.icon-folder::before {\n content: \"\\e880\";\n}\n.icon-import-2::before {\n content: \"\\e881\";\n}\n.icon-refresh::before {\n content: \"\\e882\";\n}\n.icon-message-text-1::before {\n content: \"\\e883\";\n}\n.icon-messages-2::before {\n content: \"\\e884\";\n}\n.icon-global::before {\n content: \"\\e885\";\n}\n.icon-briefcase::before {\n content: \"\\e886\";\n}\n.icon-row-vertical::before {\n content: \"\\e887\";\n}\n.icon-format-square::before {\n content: \"\\e888\";\n}\n.icon-document-copy::before {\n content: \"\\e889\";\n}\n.icon-document-forward::before {\n content: \"\\e88a\";\n}\n.icon-tick-circle-1::before {\n content: \"\\e88b\";\n}\n.icon-data-timestamp::before {\n content: \"\\e88c\";\n}\n.icon-more-2::before {\n content: \"\\e88d\";\n}\n.icon-notification::before {\n content: \"\\e88e\";\n}\n.icon-search-normal-1::before {\n content: \"\\e890\";\n}\n.icon-home-1::before {\n content: \"\\e891\";\n}\n.icon-brush-1::before {\n content: \"\\e892\";\n}\n.icon-paperclip-2::before {\n content: \"\\e893\";\n}\n.icon-grid-4::before {\n content: \"\\e894\";\n}\n.icon-mouse-circle::before {\n content: \"\\e895\";\n}\n.icon-message-question::before {\n content: \"\\e896\";\n}\n.icon-saving::before {\n content: \"\\e898\";\n}\n.icon-chevron-double::before {\n content: \"\\e899\";\n}\n.icon-close::before {\n content: \"\\e89a\";\n}\n.icon-more-info::before {\n content: \"\\e89b\";\n}\n.icon-arrow-up::before {\n content: \"\\e89c\";\n}\n.icon-reorder::before {\n content: \"\\e89d\";\n}\n.icon-refresh-1::before {\n content: \"\\e89e\";\n}\n.icon-text-variable::before {\n content: \"\\e89f\";\n}\n.icon-header-horizontal::before {\n content: \"\\e8a0\";\n}\n.icon-edit-1::before {\n content: \"\\e8a1\";\n}\n.icon-credit-usage-0::before {\n content: \"\\e8a2\";\n}\n.icon-credit-usage-25::before {\n content: \"\\e8a3\";\n}\n.icon-credit-usage-75::before {\n content: \"\\e8a4\";\n}\n.icon-card::before {\n content: \"\\e8a5\";\n}\n.icon-credit-usage-100::before {\n content: \"\\e8a6\";\n}\n.icon-coding-language::before {\n content: \"\\e8ab\";\n}\n.icon-table::before {\n content: \"\\e8ad\";\n}\n.icon-check::before {\n content: \"\\e8ae\";\n}\n.icon-logo-google::before {\n content: \"\\e8af\";\n}\n.icon-data-date::before {\n content: \"\\e8b0\";\n}\n.icon-llms::before {\n content: \"\\e8b1\";\n}\n.icon-logo-openai::before {\n content: \"\\e8b2\";\n}\n.icon-logo-anthropic::before {\n content: \"\\e8b3\";\n}\n.icon-logo-meta::before {\n content: \"\\e8b4\";\n}\n.icon-data-variant::before {\n content: \"\\e8b5\";\n}\n.icon-chart-1::before {\n content: \"\\e8b6\";\n}\n.icon-schema::before {\n content: \"\\e8b7\";\n}\n.icon-ascending::before {\n content: \"\\e8b8\";\n}\n.icon-bar-chart-100stacked::before {\n content: \"\\e8ba\";\n}\n.icon-results::before {\n content: \"\\e8bc\";\n}\n.icon-bar-chart::before {\n content: \"\\e8be\";\n}\n.icon-descending::before {\n content: \"\\e8bf\";\n}\n.icon-bar-chart-vertical::before {\n content: \"\\e8c0\";\n}\n.icon-step-before-points::before {\n content: \"\\e8c4\";\n}\n.icon-step-after-points::before {\n content: \"\\e8c6\";\n}\n.icon-line-rounded::before {\n content: \"\\e8c9\";\n}\n.icon-line-sharp::before {\n content: \"\\e8cb\";\n}\n.icon-bar-chart-simple::before {\n content: \"\\e8cc\";\n}\n.icon-pie-chart::before {\n content: \"\\e8cd\";\n}\n.icon-bar-chart-stacked::before {\n content: \"\\e8ce\";\n}\n.icon-map::before {\n content: \"\\e8cf\";\n}\n.icon-radar-bar-chart::before {\n content: \"\\e8d0\";\n}\n.icon-radar-chart::before {\n content: \"\\e8d1\";\n}\n.icon-metric::before {\n content: \"\\e8d2\";\n}\n.icon-area-plot-1::before {\n content: \"\\e8d3\";\n}\n.icon-avg::before {\n content: \"\\e8d4\";\n}\n.icon-area-plot-stacked100::before {\n content: \"\\e8d5\";\n}\n.icon-scatter-bubbles::before {\n content: \"\\e8d6\";\n}\n.icon-code::before {\n content: \"\\e8d7\";\n}\n.icon-code-1::before {\n content: \"\\e8d8\";\n}\n.icon-code-circle::before {\n content: \"\\e8d9\";\n}\n.icon-scatter-plot::before {\n content: \"\\e8db\";\n}\n.icon-scatter-dots::before {\n content: \"\\e8dc\";\n}\n.icon-med::before {\n content: \"\\e8dd\";\n}\n.icon-command-square::before {\n content: \"\\e8e1\";\n}\n.icon-component::before {\n content: \"\\e8e2\";\n}\n.icon-copy::before {\n content: \"\\e8e9\";\n}\n.icon-danger::before {\n content: \"\\e8f5\";\n}\n.icon-visualization::before {\n content: \"\\e8fc\";\n}\n.icon-document-1::before {\n content: \"\\e911\";\n}\n.icon-document-code::before {\n content: \"\\e913\";\n}\n.icon-document-download::before {\n content: \"\\e916\";\n}\n.icon-document-text-1::before {\n content: \"\\e91f\";\n}\n.icon-document-upload::before {\n content: \"\\e920\";\n}\n.icon-edit::before {\n content: \"\\e927\";\n}\n.icon-edit-2::before {\n content: \"\\e928\";\n}\n.icon-eraser-1::before {\n content: \"\\e939\";\n}\n.icon-export-1::before {\n content: \"\\e93b\";\n}\n.icon-export-3::before {\n content: \"\\e93d\";\n}\n.icon-eye::before {\n content: \"\\e93f\";\n}\n.icon-eye-slash::before {\n content: \"\\e940\";\n}\n.icon-flash-1::before {\n content: \"\\e950\";\n}\n.icon-folder-2::before {\n content: \"\\e955\";\n}\n.icon-glass::before {\n content: \"\\e97c\";\n}\n.icon-home-2::before {\n content: \"\\e9aa\";\n}\n.icon-import-1::before {\n content: \"\\e9b5\";\n}\n.icon-info-circle::before {\n content: \"\\e9b7\";\n}\n.icon-key::before {\n content: \"\\e9bc\";\n}\n.icon-data::before {\n content: \"\\e9c7\";\n}\n.icon-link-2::before {\n content: \"\\e9d1\";\n}\n.icon-location::before {\n content: \"\\e9d5\";\n}\n.icon-location-slash::before {\n content: \"\\e9d9\";\n}\n.icon-login-1::before {\n content: \"\\e9e0\";\n}\n.icon-logout-1::before {\n content: \"\\e9e2\";\n}\n.icon-magicpen::before {\n content: \"\\e9e4\";\n}\n.icon-maximize-2::before {\n content: \"\\e9f0\";\n}\n.icon-maximize-4::before {\n content: \"\\e9f2\";\n}\n.icon-maximize-21::before {\n content: \"\\e9f3\";\n}\n.icon-menu-1::before {\n content: \"\\e9f8\";\n}\n.icon-message::before {\n content: \"\\e9fa\";\n}\n.icon-messages::before {\n content: \"\\ea06\";\n}\n.icon-microphone-2::before {\n content: \"\\ea11\";\n}\n.icon-minus-cirlce::before {\n content: \"\\ea18\";\n}\n.icon-moon::before {\n content: \"\\ea2e\";\n}\n.icon-more::before {\n content: \"\\ea2f\";\n}\n.icon-note::before {\n content: \"\\ea44\";\n}\n.icon-paperclip::before {\n content: \"\\ea56\";\n}\n.icon-play::before {\n content: \"\\ea6a\";\n}\n.icon-presention-chart::before {\n content: \"\\ea6f\";\n}\n.icon-redo::before {\n content: \"\\ea9c\";\n}\n.icon-rotate-left::before {\n content: \"\\eaa8\";\n}\n.icon-rotate-right::before {\n content: \"\\eaaa\";\n}\n.icon-search-zoom-in-1::before {\n content: \"\\eac8\";\n}\n.icon-search-zoom-out::before {\n content: \"\\eac9\";\n}\n.icon-send-1::before {\n content: \"\\ead1\";\n}\n.icon-setting-2::before {\n content: \"\\ead6\";\n}\n.icon-setting-4::before {\n content: \"\\ead8\";\n}\n.icon-setting-5::before {\n content: \"\\ead9\";\n}\n.icon-shuffle::before {\n content: \"\\eae9\";\n}\n.icon-sidebar-bottom::before {\n content: \"\\eaea\";\n}\n.icon-sidebar-left::before {\n content: \"\\eaeb\";\n}\n.icon-sidebar-right::before {\n content: \"\\eaec\";\n}\n.icon-sidebar-top::before {\n content: \"\\eaed\";\n}\n.icon-slash::before {\n content: \"\\eaf3\";\n}\n.icon-smallcaps::before {\n content: \"\\eaf9\";\n}\n.icon-sms::before {\n content: \"\\eafd\";\n}\n.icon-star::before {\n content: \"\\eb07\";\n}\n.icon-stop::before {\n content: \"\\eb0e\";\n}\n.icon-sun-1::before {\n content: \"\\eb15\";\n}\n.icon-tag-cross::before {\n content: \"\\eb19\";\n}\n.icon-task::before {\n content: \"\\eb1c\";\n}\n.icon-task-square::before {\n content: \"\\eb1d\";\n}\n.icon-teacher::before {\n content: \"\\eb1e\";\n}\n.icon-text::before {\n content: \"\\eb1f\";\n}\n.icon-textalign-center::before {\n content: \"\\eb20\";\n}\n.icon-textalign-justifycenter::before {\n content: \"\\eb21\";\n}\n.icon-textalign-left::before {\n content: \"\\eb24\";\n}\n.icon-textalign-right::before {\n content: \"\\eb25\";\n}\n.icon-text-block::before {\n content: \"\\eb26\";\n}\n.icon-text-bold::before {\n content: \"\\eb27\";\n}\n.icon-text-italic::before {\n content: \"\\eb28\";\n}\n.icon-text-underline::before {\n content: \"\\eb29\";\n}\n.icon-tick-circle::before {\n content: \"\\eb2a\";\n}\n.icon-timer-1::before {\n content: \"\\eb32\";\n}\n.icon-trash::before {\n content: \"\\eb3c\";\n}\n.icon-undo::before {\n content: \"\\eb47\";\n}\n.icon-user::before {\n content: \"\\eb4a\";\n}\n.icon-video-vertical::before {\n content: \"\\eb61\";\n}\n.icon-wallet-2::before {\n content: \"\\eb6d\";\n}\n.icon-wifi::before {\n content: \"\\eb7b\";\n}\n.icon-stockholm::before {\n content: \"\\eb81\";\n}\n.icon-perplexity-ai::before {\n content: \"\\eb82\";\n}\n".matchAll(/\.icon-([\w-]+)::before\s*\{\s*content:\s*"(\\[0-9a-f]+)"/g), ([, e, t]) => [e, t])), ut = 89.5, dt = "0.209em", ft = h("span"), pt = (e, t) => ({
466
- position: "relative",
467
- display: "inline-block",
468
- verticalAlign: "middle",
469
- flexShrink: 0,
470
- boxSize: "1em",
471
- lineHeight: 1,
472
- containerType: "size",
473
- "&::before": {
474
- content: e,
475
- fontSize: t,
476
- position: "absolute",
477
- inset: 0,
478
- fontFamily: "\"prompt-studio-icons\", sans-serif",
479
- fontStyle: "normal",
480
- fontWeight: "normal",
481
- lineHeight: "100cqmin",
482
- textAlign: "center",
483
- transform: `translateY(${dt})`
484
- }
485
- }), q = (e, t = {}) => {
486
- let n = pt(`"${lt.get(e) ?? ""}"`, `${(ut * (t.scale ?? 1)).toFixed(1)}cqmin`), r = (e) => {
487
- let t = v(2), r;
488
- return t[0] === e ? r = t[1] : (r = /* @__PURE__ */ b(ft, {
489
- "aria-hidden": !0,
490
- ...e,
491
- css: n
492
- }), t[0] = e, t[1] = r), r;
493
- };
494
- return r.displayName = `GlyphIcon(${e})`, r;
495
- }, mt = [
496
- "gray",
497
- "red",
498
- "orange",
499
- "yellow",
500
- "green",
501
- "teal",
502
- "blue",
503
- "cyan",
504
- "purple",
505
- "pink"
506
- ], J = (e, t) => ({
507
- value: e,
508
- label: t,
509
- icon: q(e)
510
- }), Y = (e, t) => ({
511
- value: e,
512
- label: t,
513
- icon: q(e, { scale: .82 })
514
- }), X = [
515
- {
516
- value: null,
517
- label: "none",
518
- icon: k
519
- },
520
- {
521
- value: "flag",
522
- label: "flag",
523
- icon: R
524
- },
525
- {
526
- value: "bug",
527
- label: "bug",
528
- icon: ee
529
- },
530
- {
531
- value: "sparkles",
532
- label: "sparkles",
533
- icon: Ae
534
- },
535
- {
536
- value: "book-open",
537
- label: "book open",
538
- icon: j
539
- },
540
- {
541
- value: "wrench",
542
- label: "wrench",
543
- icon: Ve
544
- },
545
- {
546
- value: "zap",
547
- label: "zap",
548
- icon: He
549
- },
550
- {
551
- value: "feather",
552
- label: "feather",
553
- icon: oe
554
- },
555
- {
556
- value: "scale",
557
- label: "scale",
558
- icon: De
559
- },
560
- {
561
- value: "layers",
562
- label: "layers",
563
- icon: _e
564
- },
565
- {
566
- value: "star",
567
- label: "star",
568
- icon: Me
569
- },
570
- {
571
- value: "flame",
572
- label: "flame",
573
- icon: z
574
- },
575
- {
576
- value: "lightbulb",
577
- label: "lightbulb",
578
- icon: ve
579
- },
580
- {
581
- value: "shield",
582
- label: "shield",
583
- icon: ke
584
- },
585
- {
586
- value: "eye",
587
- label: "eye",
588
- icon: ae
589
- },
590
- {
591
- value: "clock",
592
- label: "clock",
593
- icon: Le
594
- },
595
- {
596
- value: "tag",
597
- label: "tag",
598
- icon: Ne
599
- },
600
- {
601
- value: "code",
602
- label: "code",
603
- icon: ne
604
- },
605
- {
606
- value: "rocket",
607
- label: "rocket",
608
- icon: Ee
609
- },
610
- {
611
- value: "heart",
612
- label: "heart",
613
- icon: pe
614
- },
615
- {
616
- value: "bookmark",
617
- label: "bookmark",
618
- icon: M
619
- },
620
- {
621
- value: "target",
622
- label: "target",
623
- icon: Pe
624
- },
625
- {
626
- value: "bell",
627
- label: "bell",
628
- icon: A
629
- },
630
- {
631
- value: "hash",
632
- label: "hash",
633
- icon: fe
634
- },
635
- J("status-backlog", "status backlog"),
636
- J("status-todo", "status todo"),
637
- J("status-progress", "status in progress"),
638
- J("status-review", "status in review"),
639
- J("status-done", "status done"),
640
- J("status-canceled", "status canceled"),
641
- {
642
- value: "ticket",
643
- label: "ticket",
644
- icon: Ie
645
- },
646
- {
647
- value: "git-branch",
648
- label: "git branch",
649
- icon: V
650
- },
651
- Y("level-low", "level low"),
652
- Y("level-mid", "level medium"),
653
- Y("level-high", "level high"),
654
- Y("level-xhigh", "level very high"),
655
- {
656
- value: "bot",
657
- label: "bot",
658
- icon: N
659
- },
660
- {
661
- value: "puzzle",
662
- label: "puzzle",
663
- icon: Te
664
- },
665
- {
666
- value: "workflow",
667
- label: "workflow",
668
- icon: Be
669
- },
670
- {
671
- value: "kanban",
672
- label: "kanban",
673
- icon: ge
674
- },
675
- {
676
- value: "message-square",
677
- label: "message square",
678
- icon: xe
679
- },
680
- {
681
- value: "folder",
682
- label: "folder",
683
- icon: B
684
- },
685
- {
686
- value: "file-text",
687
- label: "file text",
688
- icon: L
689
- },
690
- {
691
- value: "history",
692
- label: "history",
693
- icon: me
694
- },
695
- {
696
- value: "play",
697
- label: "play",
698
- icon: we
699
- },
700
- {
701
- value: "terminal",
702
- label: "terminal",
703
- icon: Fe
704
- },
705
- {
706
- value: "cpu",
707
- label: "CPU",
708
- icon: ie
709
- },
710
- {
711
- value: "users",
712
- label: "users",
713
- icon: ze
714
- },
715
- {
716
- value: "component",
717
- label: "ticket",
718
- icon: re
719
- },
720
- {
721
- value: "square-kanban",
722
- label: "board",
723
- icon: je
724
- },
725
- {
726
- value: "git-commit-horizontal",
727
- label: "workspace",
728
- icon: H
729
- },
730
- {
731
- value: "inbox",
732
- label: "notifications",
733
- icon: he
734
- },
735
- {
736
- value: "list-checks",
737
- label: "checklist",
738
- icon: be
739
- },
740
- {
741
- value: "archive",
742
- label: "archive",
743
- icon: O
744
- },
745
- {
746
- value: "link",
747
- label: "link",
748
- icon: ye
749
- },
750
- {
751
- value: "settings",
752
- label: "settings",
753
- icon: Oe
754
- }
755
- ], ht = {
756
- pause: Se,
757
- pencil: Ce,
758
- "trash-2": Re
759
- }, gt = (e, t = X) => {
760
- let n = (e ?? "circle").replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([a-zA-Z])([0-9])/g, "$1-$2").toLowerCase();
761
- return t.find((e) => e.value === n)?.icon ?? ht[n] ?? te;
762
- }, Z = (e) => {
763
- let t = e.split(".").pop()?.toLowerCase() ?? "";
764
- return [
765
- "csv",
766
- "tsv",
767
- "xlsx",
768
- "xls",
769
- "parquet"
770
- ].includes(t) ? I : [
771
- "sql",
772
- "py",
773
- "js",
774
- "ts",
775
- "jsx",
776
- "tsx",
777
- "java",
778
- "cpp",
779
- "c",
780
- "h",
781
- "css",
782
- "scss",
783
- "sass",
784
- "php",
785
- "rb",
786
- "go",
787
- "rs",
788
- "kt",
789
- "swift"
790
- ].includes(t) ? ue : [
791
- "json",
792
- "jsonl",
793
- "ndjson"
794
- ].includes(t) ? e.includes("/visualizations/") ? le : F : [
795
- "md",
796
- "txt",
797
- "rst",
798
- "org",
799
- "pdf",
800
- "doc",
801
- "docx",
802
- "rtf"
803
- ].includes(t) ? L : [
804
- "yaml",
805
- "yml",
806
- "toml",
807
- "ini",
808
- "conf",
809
- "config"
810
- ].includes(t) ? de : [
811
- "png",
812
- "jpg",
813
- "jpeg",
814
- "gif",
815
- "svg",
816
- "webp",
817
- "ico"
818
- ].includes(t) ? P : [
819
- "zip",
820
- "tar",
821
- "gz",
822
- "rar",
823
- "7z"
824
- ].includes(t) ? ce : se;
825
- }, _t = {
826
- sm: {
827
- container: {
828
- height: "5",
829
- lineHeight: { base: "5" },
830
- px: "xs"
831
- },
832
- iconSize: 12,
833
- textStyle: "label/XS"
834
- },
835
- md: {
836
- container: {
837
- height: "6",
838
- lineHeight: { base: "6" },
839
- px: "xs"
840
- },
841
- iconSize: 14,
842
- textStyle: "label/S/regular"
843
- }
844
- }, vt = {
845
- neutral: {
846
- color: "fg",
847
- bg: "bg.subtle",
848
- borderColor: "border",
849
- _hover: { bg: "bg.hover" }
850
- },
851
- accent: {
852
- color: "var(--schub-foreground-accent)",
853
- bg: "var(--schub-accent-subtle)",
854
- borderColor: "var(--schub-accent-subtle)",
855
- _hover: { bg: "var(--schub-accent-subtle)" }
856
- }
857
- }, yt = "md", bt = "neutral", xt = (t) => {
858
- let n = v(39), r, i, a, o, c, l, u, d;
859
- n[0] === t ? (r = n[1], i = n[2], a = n[3], o = n[4], c = n[5], l = n[6], u = n[7], d = n[8]) : ({fileName: r, onSelect: o, onRemove: a, size: l, tone: u, icon: i, tooltip: d, ...c} = t, n[0] = t, n[1] = r, n[2] = i, n[3] = a, n[4] = o, n[5] = c, n[6] = l, n[7] = u, n[8] = d);
860
- let f = l === void 0 ? yt : l, m = u === void 0 ? bt : u, g;
861
- n[9] === r ? g = n[10] : (g = Z(r), n[9] = r, n[10] = g);
862
- let _ = g, y = _t[f], S = vt[m], C = o ? "pointer" : "default", w;
863
- n[11] !== r || n[12] !== o ? (w = (e) => {
864
- e.stopPropagation(), o?.(r);
865
- }, n[11] = r, n[12] = o, n[13] = w) : w = n[13];
866
- let T;
867
- n[14] !== _ || n[15] !== i || n[16] !== y.iconSize ? (T = i ?? /* @__PURE__ */ b(_, { size: y.iconSize }), n[14] = _, n[15] = i, n[16] = y.iconSize, n[17] = T) : T = n[17];
868
- let E;
869
- n[18] === T ? E = n[19] : (E = /* @__PURE__ */ b(h.span, {
870
- display: "inline-flex",
871
- flexShrink: 0,
872
- children: T
873
- }), n[18] = T, n[19] = E);
874
- let D = d ?? r, O;
875
- n[20] === Symbol.for("react.memo_cache_sentinel") ? (O = { base: "14rem" }, n[20] = O) : O = n[20];
876
- let k;
877
- n[21] !== r || n[22] !== y.textStyle ? (k = /* @__PURE__ */ b(p, {
878
- maxW: O,
879
- textOverflow: "ellipsis",
880
- whiteSpace: "nowrap",
881
- overflow: "hidden",
882
- textStyle: y.textStyle,
883
- children: r
884
- }), n[21] = r, n[22] = y.textStyle, n[23] = k) : k = n[23];
885
- let A;
886
- n[24] !== D || n[25] !== k ? (A = /* @__PURE__ */ b(e, {
887
- content: D,
888
- children: k
889
- }), n[24] = D, n[25] = k, n[26] = A) : A = n[26];
890
- let j;
891
- n[27] !== r || n[28] !== a ? (j = a && /* @__PURE__ */ b(s, {
892
- "aria-label": `Remove ${r}`,
893
- size: "2xs",
894
- variant: "ghost",
895
- _hover: { bg: "transparent" },
896
- onClick: (e) => {
897
- e.stopPropagation(), a?.(r);
898
- },
899
- children: /* @__PURE__ */ b(U, { size: 12 })
900
- }), n[27] = r, n[28] = a, n[29] = j) : j = n[29];
901
- let M;
902
- return n[30] !== c || n[31] !== y.container || n[32] !== A || n[33] !== j || n[34] !== C || n[35] !== w || n[36] !== E || n[37] !== S ? (M = /* @__PURE__ */ x(h.span, {
903
- display: "flex",
904
- flexDirection: "row",
905
- alignItems: "center",
906
- borderWidth: "1px",
907
- borderRadius: "xs",
908
- gap: "2xs",
909
- cursor: C,
910
- ...S,
911
- ...y.container,
912
- onClick: w,
913
- ...c,
914
- children: [
915
- E,
916
- A,
917
- j
918
- ]
919
- }), n[30] = c, n[31] = y.container, n[32] = A, n[33] = j, n[34] = C, n[35] = w, n[36] = E, n[37] = S, n[38] = M) : M = n[38], M;
920
- }, St = S.forwardRef(function(e, t) {
921
- let n = v(9), r, i;
922
- n[0] === e ? (r = n[1], i = n[2]) : ({children: r, ...i} = e, n[0] = e, n[1] = r, n[2] = i);
923
- let a;
924
- n[3] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ b(u.Track, {
925
- height: "2px",
926
- borderRadius: "0",
927
- bg: "bg.muted",
928
- children: /* @__PURE__ */ b(u.Range, { bg: "fg" })
929
- }), n[3] = a) : a = n[3];
930
- let o;
931
- n[4] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ x(u.Control, { children: [a, /* @__PURE__ */ b(u.Thumbs, {
932
- boxSize: "0.5rem",
933
- bg: "fg",
934
- borderWidth: "1px",
935
- borderColor: "bg",
936
- borderRadius: "none",
937
- boxShadow: "none",
938
- transition: "width 0.12s ease, height 0.12s ease, border-color 0.2s ease-in-out",
939
- _hover: {
940
- boxSize: "0.75rem",
941
- borderColor: "border.accent-light"
942
- },
943
- _active: {
944
- boxSize: "0.875rem",
945
- borderColor: "border.accent-light"
946
- },
947
- _focusVisible: {
948
- borderColor: "border.accent-light",
949
- outline: "none",
950
- boxShadow: "none"
951
- }
952
- })] }), n[4] = o) : o = n[4];
953
- let s;
954
- return n[5] !== r || n[6] !== t || n[7] !== i ? (s = /* @__PURE__ */ x(u.Root, {
955
- ref: t,
956
- variant: "solid",
957
- ...i,
958
- children: [o, r]
959
- }), n[5] = r, n[6] = t, n[7] = i, n[8] = s) : s = n[8], s;
960
- }), Ct = S.forwardRef(function(e, t) {
961
- let n = v(32), r, i, a, o, s, c, l;
962
- n[0] === e ? (r = n[1], i = n[2], a = n[3], o = n[4], s = n[5], c = n[6], l = n[7]) : ({inputProps: i, children: r, rootRef: o, trackLabel: l, thumbLabel: c, disabled: s, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = o, n[5] = s, n[6] = c, n[7] = l);
963
- let u = s !== void 0 && s, d = u ? "not-allowed" : "pointer", p;
964
- n[8] !== i || n[9] !== t ? (p = /* @__PURE__ */ b(f.HiddenInput, {
965
- ref: t,
966
- ...i
967
- }), n[8] = i, n[9] = t, n[10] = p) : p = n[10];
968
- let m;
969
- n[11] === c ? m = n[12] : (m = c && /* @__PURE__ */ b(f.ThumbIndicator, {
970
- fallback: c?.off,
971
- children: c?.on
972
- }), n[11] = c, n[12] = m);
973
- let h;
974
- n[13] === m ? h = n[14] : (h = /* @__PURE__ */ b(f.Thumb, { children: m }), n[13] = m, n[14] = h);
975
- let g;
976
- n[15] === l ? g = n[16] : (g = l && /* @__PURE__ */ b(f.Indicator, {
977
- fallback: l.off,
978
- children: l.on
979
- }), n[15] = l, n[16] = g);
980
- let _;
981
- n[17] !== d || n[18] !== h || n[19] !== g ? (_ = /* @__PURE__ */ x(f.Control, {
982
- cursor: d,
983
- children: [h, g]
984
- }), n[17] = d, n[18] = h, n[19] = g, n[20] = _) : _ = n[20];
985
- let y;
986
- n[21] !== r || n[22] !== d ? (y = r != null && /* @__PURE__ */ b(f.Label, {
987
- cursor: d,
988
- children: r
989
- }), n[21] = r, n[22] = d, n[23] = y) : y = n[23];
990
- let S;
991
- return n[24] !== u || n[25] !== d || n[26] !== a || n[27] !== o || n[28] !== p || n[29] !== _ || n[30] !== y ? (S = /* @__PURE__ */ x(f.Root, {
992
- ref: o,
993
- disabled: u,
994
- cursor: d,
995
- ...a,
996
- children: [
997
- p,
998
- _,
999
- y
1000
- ]
1001
- }), n[24] = u, n[25] = d, n[26] = a, n[27] = o, n[28] = p, n[29] = _, n[30] = y, n[31] = S) : S = n[31], S;
1002
- }), Q = w(void 0), wt = (e) => {
1003
- let t = v(3), { storage: n, children: r } = e, i;
1004
- return t[0] !== r || t[1] !== n ? (i = /* @__PURE__ */ b(Q, {
1005
- value: n,
1006
- children: r
1007
- }), t[0] = r, t[1] = n, t[2] = i) : i = t[2], i;
1008
- }, Tt = () => T(Q), $ = (e) => Ue(() => e ? {
1009
- getItem: (t) => e.getItem(t),
1010
- setItem: (t, n) => e.setItem(t, n),
1011
- removeItem: (t) => e.removeItem?.(t)
1012
- } : t()), Et = (e) => {
1013
- let t = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new Map();
1014
- return (r, i, ...a) => {
1015
- let o = i ? t.get(i) : n;
1016
- o || (o = /* @__PURE__ */ new Map(), t.set(i, o));
1017
- let s = o.get(r);
1018
- if (s) return s;
1019
- let c = e(r, i, ...a);
1020
- return o.set(r, c), c;
1021
- };
1022
- }, Dt = (e) => e.default ?? e, Ot = async () => {
1023
- let e = globalThis;
1024
- e.Prism ||= Dt(await import("prismjs"));
1025
- };
1026
- //#endregion
1027
- export { Xe as C, Ze as S, rt as _, Tt as a, et as b, xt as c, mt as d, X as f, it as g, st as h, Et as i, Z as l, ct as m, wt as n, Ct as o, q as p, $ as r, St as s, Ot as t, gt as u, nt as v, W as w, $e as x, tt as y };
1028
-
1029
- //# sourceMappingURL=prism-JVIsQMoJ.js.map