@chaibuilder/pages 0.17.10 → 0.17.12

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 (84) hide show
  1. package/dist/{2AITGKQY-CW6frR_j.cjs → 2AITGKQY-BEWmpMeB.cjs} +1 -1
  2. package/dist/{2AITGKQY-DQFtfYAc.js → 2AITGKQY-DdlXCCch.js} +2 -2
  3. package/dist/{NCMVHL6D-URUKohh5.cjs → NCMVHL6D-B5s3it0O.cjs} +1 -1
  4. package/dist/{NCMVHL6D-DjkLlYvC.js → NCMVHL6D-al9EBNaz.js} +2 -2
  5. package/dist/{ZDWCUMSJ-BufXbZ_h.cjs → ZDWCUMSJ-DP7083KI.cjs} +1 -1
  6. package/dist/{ZDWCUMSJ-BF7bF60j.js → ZDWCUMSJ-VYarDCOs.js} +1 -1
  7. package/dist/{active-in-another-tab-CLSHrmaH.js → active-in-another-tab-CqlFNgyP.js} +1 -1
  8. package/dist/{active-in-another-tab-CLhzUxeR.cjs → active-in-another-tab-D-_6zWws.cjs} +1 -1
  9. package/dist/{add-new-language-page-DEvWaLIe.js → add-new-language-page-D-EIH_KG.js} +2 -2
  10. package/dist/{add-new-language-page-xOwbmNJj.cjs → add-new-language-page-f3pkbC8c.cjs} +1 -1
  11. package/dist/{add-new-page-B0OggHcf.cjs → add-new-page-A7tqO7s9.cjs} +1 -1
  12. package/dist/{add-new-page-BNq_DIdw.js → add-new-page-DOPMVtXH.js} +1 -1
  13. package/dist/{ai-panel-content-NdOClQP-.cjs → ai-panel-content-CeFFzAeq.cjs} +1 -1
  14. package/dist/{ai-panel-content-ClRm3rSN.js → ai-panel-content-Cw7KS8Iz.js} +2 -2
  15. package/dist/{ai-panel-default-lang-DmSW0N9S.cjs → ai-panel-default-lang-BZ_ljHv2.cjs} +2 -2
  16. package/dist/{ai-panel-default-lang-Bs_Nu8Yz.js → ai-panel-default-lang-PCapbW1j.js} +3 -3
  17. package/dist/{ai-panel-other-lang-B36IELRv.cjs → ai-panel-other-lang-DCrHNyXS.cjs} +1 -1
  18. package/dist/{ai-panel-other-lang-BYP_eD9z.js → ai-panel-other-lang-Dn2tKImG.js} +3 -3
  19. package/dist/ai-prompt-input-9b6rLylJ.cjs +1 -0
  20. package/dist/{ai-prompt-input-i9ZufZMi.js → ai-prompt-input-jOFQ-8_t.js} +107 -113
  21. package/dist/{ai-translation-prompt-CnNrf57B.js → ai-translation-prompt-CS-mQOHq.js} +1 -1
  22. package/dist/{ai-translation-prompt-DKN6hrUF.cjs → ai-translation-prompt-hd5TMlql.cjs} +1 -1
  23. package/dist/{continue-editing-in-this-client-ChVlHB-G.cjs → continue-editing-in-this-client-pFPMr4LR.cjs} +1 -1
  24. package/dist/{continue-editing-in-this-client-XtL9c2a2.js → continue-editing-in-this-client-z0CVTX34.js} +1 -1
  25. package/dist/{delete-page-JsuCy3_9.js → delete-page-BFTuNSlS.js} +1 -1
  26. package/dist/{delete-page-CGeb5OY9.cjs → delete-page-DL74lxYB.cjs} +1 -1
  27. package/dist/{digital-asset-manager-CeuTVT2m.cjs → digital-asset-manager-CaXVt3EZ.cjs} +1 -1
  28. package/dist/{digital-asset-manager-Dr_rmq-s.js → digital-asset-manager-CcByfPoi.js} +1 -1
  29. package/dist/{duplicate-page-WQGy0j2w.cjs → duplicate-page-CM63Brzc.cjs} +1 -1
  30. package/dist/{duplicate-page-CbPlxaWw.js → duplicate-page-D4CtwyEj.js} +2 -2
  31. package/dist/{dynamic-page-selector-Cl1ui3R0.js → dynamic-page-selector-B3LPjMt5.js} +1 -1
  32. package/dist/{dynamic-page-selector-Bxc0QbN-.cjs → dynamic-page-selector-Csz2pKB7.cjs} +1 -1
  33. package/dist/{index-BoQkDiU0.js → index-B4cxEof7.js} +1382 -1321
  34. package/dist/index-DLPsza7R.cjs +5 -0
  35. package/dist/index.cjs +1 -1
  36. package/dist/index.js +3 -3
  37. package/dist/{json-diff-viewer-C9Vtz001.js → json-diff-viewer-BxvfnruI.js} +1 -1
  38. package/dist/{json-diff-viewer-mAynlJ-t.cjs → json-diff-viewer-CP1CqGws.cjs} +1 -1
  39. package/dist/{lang-panel-_j4w2xyy.cjs → lang-panel-4qcZ7r_d.cjs} +1 -1
  40. package/dist/{lang-panel-Bbw7pLzm.js → lang-panel-RnkbDv6w.js} +2 -2
  41. package/dist/{mark-as-template-eaGMb1z4.js → mark-as-template-4Ghoxl99.js} +1 -1
  42. package/dist/{mark-as-template-Iecl3b9-.cjs → mark-as-template-DmOCvlX1.cjs} +1 -1
  43. package/dist/{no-language-page-content-BENe6zri.js → no-language-page-content-CfJSEyvP.js} +1 -1
  44. package/dist/{no-language-page-content-BNElMNrF.cjs → no-language-page-content-CiES2hgx.cjs} +1 -1
  45. package/dist/{no-language-page-dialog-CUBp8DfX.cjs → no-language-page-dialog-CA0RvERK.cjs} +1 -1
  46. package/dist/{no-language-page-dialog-B-9DnVeV.js → no-language-page-dialog-CrMNN-NZ.js} +2 -2
  47. package/dist/{page-creator-BA9amyHE.js → page-creator-Csa2adW4.js} +2 -2
  48. package/dist/{page-creator-ltZp2cvK.cjs → page-creator-Svz4sAs8.cjs} +1 -1
  49. package/dist/{page-lock-5Q89NXKg.js → page-lock-BJG3FOuQ.js} +2 -2
  50. package/dist/{page-lock-Uz94JnNt.cjs → page-lock-HtvnzoMt.cjs} +1 -1
  51. package/dist/{page-locked-dialog-CQ01l5GQ.cjs → page-locked-dialog-Bab2DfeD.cjs} +1 -1
  52. package/dist/{page-locked-dialog-BrFlnF1_.js → page-locked-dialog-CJ5DSATy.js} +1 -1
  53. package/dist/{page-manager-new-WhmwJZLE.cjs → page-manager-new-CBqk6pWg.cjs} +1 -1
  54. package/dist/{page-manager-new-VsciHCAM.js → page-manager-new-CVaAIEJq.js} +2 -2
  55. package/dist/{page-manager-search-and-filter-C25h2oZm.cjs → page-manager-search-and-filter-CG2hW34n.cjs} +1 -1
  56. package/dist/{page-manager-search-and-filter-JQpL82Sl.js → page-manager-search-and-filter-DOiUgdYA.js} +1 -1
  57. package/dist/{page-revisions-content-BJXW36z8.js → page-revisions-content-B6ttL983.js} +2 -2
  58. package/dist/{page-revisions-content-ynSnkxGq.cjs → page-revisions-content-DbW94Aqr.cjs} +1 -1
  59. package/dist/pages.css +1 -1
  60. package/dist/{publish-pages-content-CJX7kSdV.cjs → publish-pages-content-BG7hkOsG.cjs} +1 -1
  61. package/dist/{publish-pages-content-DD9OlPYp.js → publish-pages-content-WfSGxj2n.js} +2 -2
  62. package/dist/{save-to-lib-CooOVEaQ.js → save-to-lib-BVkEMHoE.js} +1 -1
  63. package/dist/{save-to-lib-D1wVNYQs.cjs → save-to-lib-BiBT_3-d.cjs} +1 -1
  64. package/dist/{selected-block-display-gP43mf34.cjs → selected-block-display-BuDBDqZD.cjs} +1 -1
  65. package/dist/{selected-block-display-DxwMm0qr.js → selected-block-display-DQEXsFkX.js} +1 -1
  66. package/dist/{seo-panel-g_OuoWp9.js → seo-panel-CY1S1tpO.js} +1 -1
  67. package/dist/{seo-panel-BZQVr7WN.cjs → seo-panel-SF1denm-.cjs} +1 -1
  68. package/dist/{shared-json-ld-jbhoi-Qv.cjs → shared-json-ld-CPGLTTPM.cjs} +1 -1
  69. package/dist/{shared-json-ld-DKwpR514.js → shared-json-ld-DyCKYT2v.js} +1 -1
  70. package/dist/{slug-input-Dc5XAgQc.js → slug-input-D-DKPODe.js} +1 -1
  71. package/dist/{slug-input-DAq9MT_P.cjs → slug-input-DTA7BsMG.cjs} +1 -1
  72. package/dist/{take-over-request-Byq9LiOV.js → take-over-request-D1F_3xeM.js} +1 -1
  73. package/dist/{take-over-request-BOGWNLpM.cjs → take-over-request-rGefOfEm.cjs} +1 -1
  74. package/dist/{theme-panel-footer-B8mn0xAf.js → theme-panel-footer-Cdxm1r9y.js} +1 -1
  75. package/dist/{theme-panel-footer-NFR6yf6k.cjs → theme-panel-footer-CfVUCIQS.cjs} +1 -1
  76. package/dist/{unmark-as-template-CIBRCR59.cjs → unmark-as-template-BRCuiVct.cjs} +1 -1
  77. package/dist/{unmark-as-template-BSjPZ86x.js → unmark-as-template-DcHmjuVo.js} +1 -1
  78. package/dist/{unpublish-page-CmUXigiU.cjs → unpublish-page-BXyhOIC8.cjs} +1 -1
  79. package/dist/{unpublish-page-Cr9AlIFG.js → unpublish-page-C0eahm0q.js} +1 -1
  80. package/dist/{web-preview-mGavSw4r.cjs → web-preview-BXxkLcVP.cjs} +1 -1
  81. package/dist/{web-preview-DK51eK9e.js → web-preview-DTw3MNBm.js} +1 -1
  82. package/package.json +3 -3
  83. package/dist/ai-prompt-input-DBlSqHCo.cjs +0 -1
  84. package/dist/index-DheBvIvo.cjs +0 -5
@@ -2,16 +2,17 @@ import { jsx as t, jsxs as c, Fragment as Ce } from "react/jsx-runtime";
2
2
  import { c as s, B as $ } from "./button-CggatMM3.js";
3
3
  import * as p from "react";
4
4
  import { createContext as X, Fragment as Te, useRef as B, useEffect as j, useState as A, useCallback as V, useMemo as Pe, Children as Le, useContext as Y } from "react";
5
- import { Command as D } from "cmdk";
5
+ import { Command as z } from "cmdk";
6
6
  import { X as Ae, Search as Me, ChevronRight as je, Check as ae, Circle as _e, ChevronDown as ne, ChevronUp as Ue, PaperclipIcon as Oe, XIcon as oe, ImageIcon as Be, PlusIcon as Fe, MicIcon as Ge, CornerDownLeftIcon as Ee, Loader2Icon as Ve, SquareIcon as He, Cpu as We, Paperclip as qe, GlobeIcon as Ke, Square as $e, Send as Xe } from "lucide-react";
7
7
  import * as C from "@radix-ui/react-dialog";
8
8
  import * as w from "@radix-ui/react-dropdown-menu";
9
9
  import * as H from "@radix-ui/react-hover-card";
10
10
  import { cva as re } from "class-variance-authority";
11
11
  import * as S from "@radix-ui/react-select";
12
- import { useTranslation as Ye } from "@chaibuilder/sdk";
13
- import { a as Je, g as K, A as Qe } from "./ai-panel-content-ClRm3rSN.js";
14
- const Ze = C.Root, et = C.Trigger, tt = C.Portal, se = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
12
+ import { aV as Ye } from "./index-B4cxEof7.js";
13
+ import { useTranslation as Je } from "@chaibuilder/sdk";
14
+ import { a as Qe, g as K, A as Ze } from "./ai-panel-content-Cw7KS8Iz.js";
15
+ const et = C.Root, tt = C.Trigger, at = C.Portal, se = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
15
16
  C.Overlay,
16
17
  {
17
18
  ref: n,
@@ -23,7 +24,7 @@ const Ze = C.Root, et = C.Trigger, tt = C.Portal, se = p.forwardRef(({ className
23
24
  }
24
25
  ));
25
26
  se.displayName = C.Overlay.displayName;
26
- const ie = p.forwardRef(({ className: e, children: a, ...n }, o) => /* @__PURE__ */ c(tt, { children: [
27
+ const ie = p.forwardRef(({ className: e, children: a, ...n }, o) => /* @__PURE__ */ c(at, { children: [
27
28
  /* @__PURE__ */ t(se, {}),
28
29
  /* @__PURE__ */ c(
29
30
  C.Content,
@@ -57,7 +58,7 @@ const le = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
57
58
  }
58
59
  ));
59
60
  le.displayName = C.Title.displayName;
60
- const at = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
61
+ const nt = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
61
62
  C.Description,
62
63
  {
63
64
  ref: n,
@@ -65,9 +66,9 @@ const at = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
65
66
  ...a
66
67
  }
67
68
  ));
68
- at.displayName = C.Description.displayName;
69
+ nt.displayName = C.Description.displayName;
69
70
  const de = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
70
- D,
71
+ z,
71
72
  {
72
73
  ref: n,
73
74
  className: s(
@@ -77,11 +78,11 @@ const de = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
77
78
  ...a
78
79
  }
79
80
  ));
80
- de.displayName = D.displayName;
81
+ de.displayName = z.displayName;
81
82
  const ce = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ c("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
82
83
  /* @__PURE__ */ t(Me, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
83
84
  /* @__PURE__ */ t(
84
- D.Input,
85
+ z.Input,
85
86
  {
86
87
  ref: n,
87
88
  className: s(
@@ -92,27 +93,27 @@ const ce = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ c("div",
92
93
  }
93
94
  )
94
95
  ] }));
95
- ce.displayName = D.Input.displayName;
96
+ ce.displayName = z.Input.displayName;
96
97
  const ue = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
97
- D.List,
98
+ z.List,
98
99
  {
99
100
  ref: n,
100
101
  className: s("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
101
102
  ...a
102
103
  }
103
104
  ));
104
- ue.displayName = D.List.displayName;
105
- const nt = p.forwardRef((e, a) => /* @__PURE__ */ t(
106
- D.Empty,
105
+ ue.displayName = z.List.displayName;
106
+ const ot = p.forwardRef((e, a) => /* @__PURE__ */ t(
107
+ z.Empty,
107
108
  {
108
109
  ref: a,
109
110
  className: "py-6 text-center text-sm",
110
111
  ...e
111
112
  }
112
113
  ));
113
- nt.displayName = D.Empty.displayName;
114
+ ot.displayName = z.Empty.displayName;
114
115
  const me = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
115
- D.Group,
116
+ z.Group,
116
117
  {
117
118
  ref: n,
118
119
  className: s(
@@ -122,18 +123,18 @@ const me = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
122
123
  ...a
123
124
  }
124
125
  ));
125
- me.displayName = D.Group.displayName;
126
- const ot = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
127
- D.Separator,
126
+ me.displayName = z.Group.displayName;
127
+ const rt = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
128
+ z.Separator,
128
129
  {
129
130
  ref: n,
130
131
  className: s("-mx-1 h-px bg-border", e),
131
132
  ...a
132
133
  }
133
134
  ));
134
- ot.displayName = D.Separator.displayName;
135
+ rt.displayName = z.Separator.displayName;
135
136
  const pe = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
136
- D.Item,
137
+ z.Item,
137
138
  {
138
139
  ref: n,
139
140
  className: s(
@@ -143,8 +144,8 @@ const pe = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
143
144
  ...a
144
145
  }
145
146
  ));
146
- pe.displayName = D.Item.displayName;
147
- const rt = w.Root, st = w.Trigger, it = p.forwardRef(({ className: e, inset: a, children: n, ...o }, l) => /* @__PURE__ */ c(
147
+ pe.displayName = z.Item.displayName;
148
+ const st = w.Root, it = w.Trigger, lt = p.forwardRef(({ className: e, inset: a, children: n, ...o }, l) => /* @__PURE__ */ c(
148
149
  w.SubTrigger,
149
150
  {
150
151
  ref: l,
@@ -160,8 +161,8 @@ const rt = w.Root, st = w.Trigger, it = p.forwardRef(({ className: e, inset: a,
160
161
  ]
161
162
  }
162
163
  ));
163
- it.displayName = w.SubTrigger.displayName;
164
- const lt = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
164
+ lt.displayName = w.SubTrigger.displayName;
165
+ const dt = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
165
166
  w.SubContent,
166
167
  {
167
168
  ref: n,
@@ -172,7 +173,7 @@ const lt = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
172
173
  ...a
173
174
  }
174
175
  ));
175
- lt.displayName = w.SubContent.displayName;
176
+ dt.displayName = w.SubContent.displayName;
176
177
  const fe = p.forwardRef(({ className: e, sideOffset: a = 4, ...n }, o) => /* @__PURE__ */ t(w.Portal, { children: /* @__PURE__ */ t(
177
178
  w.Content,
178
179
  {
@@ -199,7 +200,7 @@ const ge = p.forwardRef(({ className: e, inset: a, ...n }, o) => /* @__PURE__ */
199
200
  }
200
201
  ));
201
202
  ge.displayName = w.Item.displayName;
202
- const dt = p.forwardRef(({ className: e, children: a, checked: n, ...o }, l) => /* @__PURE__ */ c(
203
+ const ct = p.forwardRef(({ className: e, children: a, checked: n, ...o }, l) => /* @__PURE__ */ c(
203
204
  w.CheckboxItem,
204
205
  {
205
206
  ref: l,
@@ -215,8 +216,8 @@ const dt = p.forwardRef(({ className: e, children: a, checked: n, ...o }, l) =>
215
216
  ]
216
217
  }
217
218
  ));
218
- dt.displayName = w.CheckboxItem.displayName;
219
- const ct = p.forwardRef(({ className: e, children: a, ...n }, o) => /* @__PURE__ */ c(
219
+ ct.displayName = w.CheckboxItem.displayName;
220
+ const ut = p.forwardRef(({ className: e, children: a, ...n }, o) => /* @__PURE__ */ c(
220
221
  w.RadioItem,
221
222
  {
222
223
  ref: o,
@@ -231,8 +232,8 @@ const ct = p.forwardRef(({ className: e, children: a, ...n }, o) => /* @__PURE__
231
232
  ]
232
233
  }
233
234
  ));
234
- ct.displayName = w.RadioItem.displayName;
235
- const ut = p.forwardRef(({ className: e, inset: a, ...n }, o) => /* @__PURE__ */ t(
235
+ ut.displayName = w.RadioItem.displayName;
236
+ const mt = p.forwardRef(({ className: e, inset: a, ...n }, o) => /* @__PURE__ */ t(
236
237
  w.Label,
237
238
  {
238
239
  ref: o,
@@ -244,8 +245,8 @@ const ut = p.forwardRef(({ className: e, inset: a, ...n }, o) => /* @__PURE__ */
244
245
  ...n
245
246
  }
246
247
  ));
247
- ut.displayName = w.Label.displayName;
248
- const mt = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
248
+ mt.displayName = w.Label.displayName;
249
+ const pt = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
249
250
  w.Separator,
250
251
  {
251
252
  ref: n,
@@ -253,8 +254,8 @@ const mt = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
253
254
  ...a
254
255
  }
255
256
  ));
256
- mt.displayName = w.Separator.displayName;
257
- const pt = H.Root, ft = H.Trigger, he = p.forwardRef(({ className: e, align: a = "center", sideOffset: n = 4, ...o }, l) => /* @__PURE__ */ t(
257
+ pt.displayName = w.Separator.displayName;
258
+ const ft = H.Root, gt = H.Trigger, he = p.forwardRef(({ className: e, align: a = "center", sideOffset: n = 4, ...o }, l) => /* @__PURE__ */ t(
258
259
  H.Content,
259
260
  {
260
261
  ref: l,
@@ -268,7 +269,7 @@ const pt = H.Root, ft = H.Trigger, he = p.forwardRef(({ className: e, align: a =
268
269
  }
269
270
  ));
270
271
  he.displayName = H.Content.displayName;
271
- const gt = p.forwardRef(
272
+ const ht = p.forwardRef(
272
273
  ({ className: e, type: a, ...n }, o) => /* @__PURE__ */ t(
273
274
  "input",
274
275
  {
@@ -282,7 +283,7 @@ const gt = p.forwardRef(
282
283
  }
283
284
  )
284
285
  );
285
- gt.displayName = "Input";
286
+ ht.displayName = "Input";
286
287
  const be = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
287
288
  "textarea",
288
289
  {
@@ -295,7 +296,7 @@ const be = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
295
296
  }
296
297
  ));
297
298
  be.displayName = "Textarea";
298
- function ht({ className: e, ...a }) {
299
+ function bt({ className: e, ...a }) {
299
300
  return /* @__PURE__ */ t(
300
301
  "div",
301
302
  {
@@ -319,7 +320,7 @@ function ht({ className: e, ...a }) {
319
320
  }
320
321
  );
321
322
  }
322
- const bt = re(
323
+ const vt = re(
323
324
  "text-muted-foreground flex h-auto cursor-text select-none items-center justify-center gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",
324
325
  {
325
326
  variants: {
@@ -346,7 +347,7 @@ function ve({
346
347
  role: "group",
347
348
  "data-slot": "input-group-addon",
348
349
  "data-align": a,
349
- className: s(bt({ align: a }), e),
350
+ className: s(vt({ align: a }), e),
350
351
  onClick: (o) => {
351
352
  var l, h;
352
353
  o.target.closest("button") || (h = (l = o.currentTarget.parentElement) == null ? void 0 : l.querySelector("input")) == null || h.focus();
@@ -355,7 +356,7 @@ function ve({
355
356
  }
356
357
  );
357
358
  }
358
- const vt = re(
359
+ const xt = re(
359
360
  "flex items-center gap-2 text-sm shadow-none",
360
361
  {
361
362
  variants: {
@@ -384,12 +385,12 @@ function xe({
384
385
  type: a,
385
386
  "data-size": o,
386
387
  variant: n,
387
- className: s(vt({ size: o }), e),
388
+ className: s(xt({ size: o }), e),
388
389
  ...l
389
390
  }
390
391
  );
391
392
  }
392
- function xt({
393
+ function yt({
393
394
  className: e,
394
395
  ...a
395
396
  }) {
@@ -405,7 +406,7 @@ function xt({
405
406
  }
406
407
  );
407
408
  }
408
- const yt = p.forwardRef(({ className: e, children: a, ...n }, o) => /* @__PURE__ */ c(
409
+ const Nt = p.forwardRef(({ className: e, children: a, ...n }, o) => /* @__PURE__ */ c(
409
410
  S.Trigger,
410
411
  {
411
412
  ref: o,
@@ -420,7 +421,7 @@ const yt = p.forwardRef(({ className: e, children: a, ...n }, o) => /* @__PURE__
420
421
  ]
421
422
  }
422
423
  ));
423
- yt.displayName = S.Trigger.displayName;
424
+ Nt.displayName = S.Trigger.displayName;
424
425
  const ye = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
425
426
  S.ScrollUpButton,
426
427
  {
@@ -447,7 +448,7 @@ const Ne = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
447
448
  }
448
449
  ));
449
450
  Ne.displayName = S.ScrollDownButton.displayName;
450
- const Nt = p.forwardRef(({ className: e, children: a, position: n = "popper", ...o }, l) => /* @__PURE__ */ t(S.Portal, { children: /* @__PURE__ */ c(
451
+ const wt = p.forwardRef(({ className: e, children: a, position: n = "popper", ...o }, l) => /* @__PURE__ */ t(S.Portal, { children: /* @__PURE__ */ c(
451
452
  S.Content,
452
453
  {
453
454
  ref: l,
@@ -474,8 +475,8 @@ const Nt = p.forwardRef(({ className: e, children: a, position: n = "popper", ..
474
475
  ]
475
476
  }
476
477
  ) }));
477
- Nt.displayName = S.Content.displayName;
478
- const wt = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
478
+ wt.displayName = S.Content.displayName;
479
+ const It = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
479
480
  S.Label,
480
481
  {
481
482
  ref: n,
@@ -483,8 +484,8 @@ const wt = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
483
484
  ...a
484
485
  }
485
486
  ));
486
- wt.displayName = S.Label.displayName;
487
- const It = p.forwardRef(({ className: e, children: a, ...n }, o) => /* @__PURE__ */ c(
487
+ It.displayName = S.Label.displayName;
488
+ const St = p.forwardRef(({ className: e, children: a, ...n }, o) => /* @__PURE__ */ c(
488
489
  S.Item,
489
490
  {
490
491
  ref: o,
@@ -499,8 +500,8 @@ const It = p.forwardRef(({ className: e, children: a, ...n }, o) => /* @__PURE__
499
500
  ]
500
501
  }
501
502
  ));
502
- It.displayName = S.Item.displayName;
503
- const St = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
503
+ St.displayName = S.Item.displayName;
504
+ const kt = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
504
505
  S.Separator,
505
506
  {
506
507
  ref: n,
@@ -508,25 +509,18 @@ const St = p.forwardRef(({ className: e, ...a }, n) => /* @__PURE__ */ t(
508
509
  ...a
509
510
  }
510
511
  ));
511
- St.displayName = S.Separator.displayName;
512
- const kt = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
513
- let Rt = (e = 21) => {
514
- let a = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
515
- for (; e--; )
516
- a += kt[n[e] & 63];
517
- return a;
518
- };
519
- const Dt = X(null), zt = X(null), we = () => Y(Dt), Ct = () => Y(zt), Ie = X(null), W = () => {
520
- const e = Ct(), a = Y(Ie), n = e ?? a;
512
+ kt.displayName = S.Separator.displayName;
513
+ const Rt = X(null), zt = X(null), we = () => Y(Rt), Dt = () => Y(zt), Ie = X(null), W = () => {
514
+ const e = Dt(), a = Y(Ie), n = e ?? a;
521
515
  if (!n)
522
516
  throw new Error("usePromptInputAttachments must be used within a PromptInput or PromptInputProvider");
523
517
  return n;
524
518
  };
525
- function Tt({ data: e, className: a, ...n }) {
519
+ function Ct({ data: e, className: a, ...n }) {
526
520
  var v;
527
521
  const o = W(), l = e.filename || "", u = ((v = e.mediaType) != null && v.startsWith("image/") && e.url ? "image" : "file") === "image", y = l || (u ? "Image" : "Attachment");
528
- return /* @__PURE__ */ c(Vt, { children: [
529
- /* @__PURE__ */ t(ft, { asChild: !0, children: /* @__PURE__ */ c(
522
+ return /* @__PURE__ */ c(Et, { children: [
523
+ /* @__PURE__ */ t(gt, { asChild: !0, children: /* @__PURE__ */ c(
530
524
  "div",
531
525
  {
532
526
  className: s(
@@ -568,7 +562,7 @@ function Tt({ data: e, className: a, ...n }) {
568
562
  },
569
563
  e.id
570
564
  ) }),
571
- /* @__PURE__ */ t(Ht, { className: "w-auto p-2", children: /* @__PURE__ */ c("div", { className: "w-auto space-y-3", children: [
565
+ /* @__PURE__ */ t(Vt, { className: "w-auto p-2", children: /* @__PURE__ */ c("div", { className: "w-auto space-y-3", children: [
572
566
  u && /* @__PURE__ */ t("div", { className: "flex max-h-96 w-96 items-center justify-center overflow-hidden rounded-md border", children: /* @__PURE__ */ t(
573
567
  "img",
574
568
  {
@@ -586,11 +580,11 @@ function Tt({ data: e, className: a, ...n }) {
586
580
  ] }) })
587
581
  ] });
588
582
  }
589
- function Pt({ children: e, className: a, ...n }) {
583
+ function Tt({ children: e, className: a, ...n }) {
590
584
  const o = W();
591
585
  return o.files.length ? /* @__PURE__ */ t("div", { className: s("flex flex-wrap items-center gap-2 p-3", a), ...n, children: o.files.map((l) => /* @__PURE__ */ t(Te, { children: e(l) }, l.id)) }) : null;
592
586
  }
593
- const Lt = ({
587
+ const Pt = ({
594
588
  label: e = "Add photos or files",
595
589
  ...a
596
590
  }) => {
@@ -609,7 +603,7 @@ const Lt = ({
609
603
  ]
610
604
  }
611
605
  );
612
- }, At = ({
606
+ }, Lt = ({
613
607
  className: e,
614
608
  accept: a,
615
609
  multiple: n,
@@ -628,7 +622,7 @@ const Lt = ({
628
622
  const i = (N = T.current) == null ? void 0 : N.closest("form");
629
623
  i instanceof HTMLFormElement && (k.current = i);
630
624
  }, []);
631
- const [z, _] = A([]), x = d ? r.attachments.files : z, M = V(() => {
625
+ const [D, _] = A([]), x = d ? r.attachments.files : D, M = V(() => {
632
626
  var i;
633
627
  (i = m.current) == null || i.click();
634
628
  }, []), F = V(
@@ -653,15 +647,15 @@ const Lt = ({
653
647
  return;
654
648
  }
655
649
  _((I) => {
656
- const U = typeof h == "number" ? Math.max(0, h - I.length) : void 0, ze = typeof U == "number" ? f.slice(0, U) : f;
650
+ const U = typeof h == "number" ? Math.max(0, h - I.length) : void 0, De = typeof U == "number" ? f.slice(0, U) : f;
657
651
  typeof U == "number" && f.length > U && (y == null || y({
658
652
  code: "max_files",
659
653
  message: "Too many files. Some were not added."
660
654
  }));
661
655
  const ee = [];
662
- for (const q of ze)
656
+ for (const q of De)
663
657
  ee.push({
664
- id: Rt(),
658
+ id: Ye(),
665
659
  type: "file",
666
660
  url: URL.createObjectURL(q),
667
661
  mediaType: q.type,
@@ -737,7 +731,7 @@ const Lt = ({
737
731
  fileInputRef: m
738
732
  }),
739
733
  [x, L, O, E, Q]
740
- ), De = (i) => {
734
+ ), ze = (i) => {
741
735
  i.preventDefault();
742
736
  const N = i.currentTarget, b = d ? r.textInput.value : new FormData(N).get("message") || "";
743
737
  d || N.reset(), Promise.all(
@@ -770,10 +764,10 @@ const Lt = ({
770
764
  type: "file"
771
765
  }
772
766
  ),
773
- /* @__PURE__ */ t("form", { className: s("w-full", e), onSubmit: De, ...P, children: /* @__PURE__ */ t(ht, { className: "overflow-hidden", children: R }) })
767
+ /* @__PURE__ */ t("form", { className: s("w-full", e), onSubmit: ze, ...P, children: /* @__PURE__ */ t(bt, { className: "overflow-hidden", children: R }) })
774
768
  ] });
775
769
  return d ? Z : /* @__PURE__ */ t(Ie.Provider, { value: Re, children: Z });
776
- }, Mt = ({
770
+ }, At = ({
777
771
  onChange: e,
778
772
  className: a,
779
773
  placeholder: n = "What would you like to know?",
@@ -802,8 +796,8 @@ const Lt = ({
802
796
  const m = [];
803
797
  for (const k of d)
804
798
  if (k.kind === "file") {
805
- const z = k.getAsFile();
806
- z && m.push(z);
799
+ const D = k.getAsFile();
800
+ D && m.push(D);
807
801
  }
808
802
  m.length > 0 && (r.preventDefault(), h.add(m));
809
803
  }, P = l ? {
@@ -815,7 +809,7 @@ const Lt = ({
815
809
  onChange: e
816
810
  };
817
811
  return /* @__PURE__ */ t(
818
- xt,
812
+ yt,
819
813
  {
820
814
  className: s("field-sizing-content max-h-48 min-h-16", a),
821
815
  name: "message",
@@ -828,10 +822,10 @@ const Lt = ({
828
822
  ...P
829
823
  }
830
824
  );
831
- }, jt = ({ className: e, ...a }) => /* @__PURE__ */ t(ve, { align: "block-end", className: s("order-first flex-wrap gap-1", e), ...a }), _t = ({ className: e, ...a }) => /* @__PURE__ */ t(ve, { align: "block-end", className: s("justify-between gap-1", e), ...a }), Ut = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: s("flex items-center gap-1", e), ...a }), J = ({ variant: e = "ghost", className: a, size: n, ...o }) => {
825
+ }, Mt = ({ className: e, ...a }) => /* @__PURE__ */ t(ve, { align: "block-end", className: s("order-first flex-wrap gap-1", e), ...a }), jt = ({ className: e, ...a }) => /* @__PURE__ */ t(ve, { align: "block-end", className: s("justify-between gap-1", e), ...a }), _t = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: s("flex items-center gap-1", e), ...a }), J = ({ variant: e = "ghost", className: a, size: n, ...o }) => {
832
826
  const l = n ?? (Le.count(o.children) > 1 ? "sm" : "icon-sm");
833
827
  return /* @__PURE__ */ t(xe, { className: s(a), size: l, type: "button", variant: e, ...o });
834
- }, Ot = (e) => /* @__PURE__ */ t(rt, { ...e }), Bt = ({ className: e, children: a, ...n }) => /* @__PURE__ */ t(st, { asChild: !0, children: /* @__PURE__ */ t(J, { className: e, ...n, children: a ?? /* @__PURE__ */ t(Fe, { className: "size-4" }) }) }), Ft = ({ className: e, ...a }) => /* @__PURE__ */ t(fe, { align: "start", className: s(e), ...a }), Gt = ({
828
+ }, Ut = (e) => /* @__PURE__ */ t(st, { ...e }), Ot = ({ className: e, children: a, ...n }) => /* @__PURE__ */ t(it, { asChild: !0, children: /* @__PURE__ */ t(J, { className: e, ...n, children: a ?? /* @__PURE__ */ t(Fe, { className: "size-4" }) }) }), Bt = ({ className: e, ...a }) => /* @__PURE__ */ t(fe, { align: "start", className: s(e), ...a }), Ft = ({
835
829
  className: e,
836
830
  variant: a = "default",
837
831
  size: n = "icon-sm",
@@ -852,7 +846,7 @@ const Lt = ({
852
846
  children: l ?? u
853
847
  }
854
848
  );
855
- }, Et = ({
849
+ }, Gt = ({
856
850
  className: e,
857
851
  textareaRef: a,
858
852
  onTranscriptionChange: n,
@@ -870,11 +864,11 @@ const Lt = ({
870
864
  var T;
871
865
  let m = "";
872
866
  for (let k = d.resultIndex; k < d.results.length; k++) {
873
- const z = d.results[k];
874
- z.isFinal && (m += ((T = z[0]) == null ? void 0 : T.transcript) ?? "");
867
+ const D = d.results[k];
868
+ D.isFinal && (m += ((T = D[0]) == null ? void 0 : T.transcript) ?? "");
875
869
  }
876
870
  if (m && (a != null && a.current)) {
877
- const k = a.current, z = k.value, _ = z + (z ? " " : "") + m;
871
+ const k = a.current, D = k.value, _ = D + (D ? " " : "") + m;
878
872
  k.value = _, k.dispatchEvent(new Event("input", { bubbles: !0 })), n == null || n(_);
879
873
  }
880
874
  }, r.onerror = (d) => {
@@ -902,7 +896,7 @@ const Lt = ({
902
896
  children: /* @__PURE__ */ t(Ge, { className: "size-4" })
903
897
  }
904
898
  );
905
- }, Vt = ({ openDelay: e = 0, closeDelay: a = 0, ...n }) => /* @__PURE__ */ t(pt, { closeDelay: a, openDelay: e, ...n }), Ht = ({ align: e = "start", ...a }) => /* @__PURE__ */ t(he, { align: e, ...a }), Wt = (e) => /* @__PURE__ */ t(Ze, { ...e }), qt = (e) => /* @__PURE__ */ t(et, { ...e }), Kt = ({
899
+ }, Et = ({ openDelay: e = 0, closeDelay: a = 0, ...n }) => /* @__PURE__ */ t(ft, { closeDelay: a, openDelay: e, ...n }), Vt = ({ align: e = "start", ...a }) => /* @__PURE__ */ t(he, { align: e, ...a }), Ht = (e) => /* @__PURE__ */ t(et, { ...e }), Wt = (e) => /* @__PURE__ */ t(tt, { ...e }), qt = ({
906
900
  className: e,
907
901
  children: a,
908
902
  title: n = "Model Selector",
@@ -910,10 +904,10 @@ const Lt = ({
910
904
  }) => /* @__PURE__ */ c(ie, { className: s("p-0", e), ...o, children: [
911
905
  /* @__PURE__ */ t(le, { className: "sr-only", children: n }),
912
906
  /* @__PURE__ */ t(de, { className: "**:data-[slot=command-input-wrapper]:h-auto", children: a })
913
- ] }), $t = ({
907
+ ] }), Kt = ({
914
908
  className: e,
915
909
  ...a
916
- }) => /* @__PURE__ */ t(ce, { className: s("h-auto py-3.5", e), ...a }), Xt = (e) => /* @__PURE__ */ t(ue, { ...e }), Yt = (e) => /* @__PURE__ */ t(me, { ...e }), Jt = (e) => /* @__PURE__ */ t(pe, { ...e }), Qt = ({
910
+ }) => /* @__PURE__ */ t(ce, { className: s("h-auto py-3.5", e), ...a }), $t = (e) => /* @__PURE__ */ t(ue, { ...e }), Xt = (e) => /* @__PURE__ */ t(me, { ...e }), Yt = (e) => /* @__PURE__ */ t(pe, { ...e }), Jt = ({
917
911
  provider: e,
918
912
  className: a,
919
913
  ...n
@@ -927,15 +921,15 @@ const Lt = ({
927
921
  src: `https://models.dev/logos/${e}.svg`,
928
922
  width: 12
929
923
  }
930
- ), Zt = ({
924
+ ), Qt = ({
931
925
  className: e,
932
926
  ...a
933
- }) => /* @__PURE__ */ t("span", { className: s("flex-1 truncate text-left", e), ...a }), ea = ({
927
+ }) => /* @__PURE__ */ t("span", { className: s("flex-1 truncate text-left", e), ...a }), Zt = ({
934
928
  selectedModel: e,
935
929
  onModelChange: a,
936
930
  disabled: n = !1
937
931
  }) => {
938
- const [o, l] = A(!1), [h, u] = A(""), y = Je(e) || K(), R = Qe.filter(
932
+ const [o, l] = A(!1), [h, u] = A(""), y = Qe(e) || K(), R = Ze.filter(
939
933
  (r) => r.name.toLowerCase().includes(h.toLowerCase()) || r.provider.toLowerCase().includes(h.toLowerCase())
940
934
  ).reduce(
941
935
  (r, d) => (r[d.provider] || (r[d.provider] = []), r[d.provider].push(d), r),
@@ -943,23 +937,23 @@ const Lt = ({
943
937
  ), P = (r) => {
944
938
  a(r), l(!1), u("");
945
939
  };
946
- return /* @__PURE__ */ c(Wt, { open: o, onOpenChange: l, children: [
947
- /* @__PURE__ */ t(qt, { asChild: !0, children: /* @__PURE__ */ c($, { variant: "outline", size: "sm", disabled: n, className: "h-8 gap-1 px-2 text-xs", children: [
940
+ return /* @__PURE__ */ c(Ht, { open: o, onOpenChange: l, children: [
941
+ /* @__PURE__ */ t(Wt, { asChild: !0, children: /* @__PURE__ */ c($, { variant: "outline", size: "sm", disabled: n, className: "h-8 gap-1 px-2 text-xs", children: [
948
942
  /* @__PURE__ */ t(We, { size: 14 }),
949
943
  /* @__PURE__ */ t("span", { className: "max-w-20 truncate", children: y.name })
950
944
  ] }) }),
951
- /* @__PURE__ */ c(Kt, { className: "w-96 p-0", children: [
952
- /* @__PURE__ */ t($t, { placeholder: "Search models...", value: h, onValueChange: u }),
953
- /* @__PURE__ */ t(Xt, { children: Object.entries(R).map(([r, d]) => /* @__PURE__ */ t(Yt, { heading: r.charAt(0).toUpperCase() + r.slice(1), children: d.map((m) => /* @__PURE__ */ c(
954
- Jt,
945
+ /* @__PURE__ */ c(qt, { className: "w-96 p-0", children: [
946
+ /* @__PURE__ */ t(Kt, { placeholder: "Search models...", value: h, onValueChange: u }),
947
+ /* @__PURE__ */ t($t, { children: Object.entries(R).map(([r, d]) => /* @__PURE__ */ t(Xt, { heading: r.charAt(0).toUpperCase() + r.slice(1), children: d.map((m) => /* @__PURE__ */ c(
948
+ Yt,
955
949
  {
956
950
  value: m.id,
957
951
  onSelect: () => P(m.id),
958
952
  className: "flex cursor-pointer items-center gap-2 p-2",
959
953
  children: [
960
- /* @__PURE__ */ t(Qt, { provider: m.provider }),
954
+ /* @__PURE__ */ t(Jt, { provider: m.provider }),
961
955
  /* @__PURE__ */ c("div", { className: "flex flex-1 flex-col", children: [
962
- /* @__PURE__ */ t(Zt, { children: m.name }),
956
+ /* @__PURE__ */ t(Qt, { children: m.name }),
963
957
  /* @__PURE__ */ t("span", { className: "text-xs text-muted-foreground", children: m.description })
964
958
  ] }),
965
959
  e === m.id && /* @__PURE__ */ t("div", { className: "h-2 w-2 rounded-full bg-blue-500" })
@@ -980,7 +974,7 @@ const Lt = ({
980
974
  selectedModel: y = K().id,
981
975
  onModelChange: v
982
976
  }) => {
983
- const { t: R } = Ye(), [P, r] = A(y), [d, m] = A(null), T = B(null), [k, z] = A(!1);
977
+ const { t: R } = Je(), [P, r] = A(y), [d, m] = A(null), T = B(null), [k, D] = A(!1);
984
978
  return j(() => {
985
979
  if (!u) {
986
980
  const x = localStorage.getItem(te);
@@ -991,7 +985,7 @@ const Lt = ({
991
985
  r(M), v == null || v(M);
992
986
  }
993
987
  }
994
- }, [u, v]), /* @__PURE__ */ t("div", { className: "relative", children: /* @__PURE__ */ t("div", { className: "border-gray-20 rounded-lg border", children: /* @__PURE__ */ c(At, { onSubmit: (x) => {
988
+ }, [u, v]), /* @__PURE__ */ t("div", { className: "relative", children: /* @__PURE__ */ t("div", { className: "border-gray-20 rounded-lg border", children: /* @__PURE__ */ c(Lt, { onSubmit: (x) => {
995
989
  var G;
996
990
  const M = x.files.find((L) => {
997
991
  var O;
@@ -999,9 +993,9 @@ const Lt = ({
999
993
  }), F = (M == null ? void 0 : M.url) || d;
1000
994
  n((G = x.text) == null ? void 0 : G.trim(), void 0, F, P), m(null);
1001
995
  }, accept: "image/*", className: "flex h-auto w-full flex-col", children: [
1002
- /* @__PURE__ */ t(jt, { className: "p-0", children: /* @__PURE__ */ t(Pt, { className: "pb-0", children: (x) => /* @__PURE__ */ t(Tt, { className: "text-xs", data: x }) }) }),
996
+ /* @__PURE__ */ t(Mt, { className: "p-0", children: /* @__PURE__ */ t(Tt, { className: "pb-0", children: (x) => /* @__PURE__ */ t(Ct, { className: "text-xs", data: x }) }) }),
1003
997
  /* @__PURE__ */ t(
1004
- Mt,
998
+ At,
1005
999
  {
1006
1000
  ref: T,
1007
1001
  value: e,
@@ -1012,14 +1006,14 @@ const Lt = ({
1012
1006
  rows: 3
1013
1007
  }
1014
1008
  ),
1015
- /* @__PURE__ */ c(_t, { children: [
1016
- u ? /* @__PURE__ */ t("div", {}) : /* @__PURE__ */ c(Ut, { children: [
1017
- /* @__PURE__ */ c(Ot, { children: [
1018
- /* @__PURE__ */ t(Bt, { disabled: l, children: /* @__PURE__ */ t(qe, { size: 16 }) }),
1019
- /* @__PURE__ */ t(Ft, { children: /* @__PURE__ */ t(Lt, {}) })
1009
+ /* @__PURE__ */ c(jt, { children: [
1010
+ u ? /* @__PURE__ */ t("div", {}) : /* @__PURE__ */ c(_t, { children: [
1011
+ /* @__PURE__ */ c(Ut, { children: [
1012
+ /* @__PURE__ */ t(Ot, { disabled: l, children: /* @__PURE__ */ t(qe, { size: 16 }) }),
1013
+ /* @__PURE__ */ t(Bt, { children: /* @__PURE__ */ t(Pt, {}) })
1020
1014
  ] }),
1021
1015
  /* @__PURE__ */ t(
1022
- Et,
1016
+ Gt,
1023
1017
  {
1024
1018
  textareaRef: T,
1025
1019
  onTranscriptionChange: a,
@@ -1027,7 +1021,7 @@ const Lt = ({
1027
1021
  }
1028
1022
  ),
1029
1023
  /* @__PURE__ */ t(
1030
- ea,
1024
+ Zt,
1031
1025
  {
1032
1026
  selectedModel: P,
1033
1027
  onModelChange: (x) => {
@@ -1041,7 +1035,7 @@ const Lt = ({
1041
1035
  {
1042
1036
  className: "hidden",
1043
1037
  size: "sm",
1044
- onClick: () => z(!k),
1038
+ onClick: () => D(!k),
1045
1039
  variant: k ? "default" : "ghost",
1046
1040
  children: [
1047
1041
  /* @__PURE__ */ t(Ke, { size: 16 }),
@@ -1062,7 +1056,7 @@ const Lt = ({
1062
1056
  /* @__PURE__ */ t("span", { className: "text-xs", children: R("Stop") })
1063
1057
  ]
1064
1058
  }
1065
- ) : /* @__PURE__ */ t(Gt, { disabled: !e.trim() || h, children: /* @__PURE__ */ t(Xe, { size: 16 }) })
1059
+ ) : /* @__PURE__ */ t(Ft, { disabled: !e.trim() || h, children: /* @__PURE__ */ t(Xe, { size: 16 }) })
1066
1060
  ] })
1067
1061
  ] }) }) });
1068
1062
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
- import { L as r } from "./index-BoQkDiU0.js";
2
+ import { L as r } from "./index-B4cxEof7.js";
3
3
  import { useTranslation as i } from "@chaibuilder/sdk";
4
4
  import { Button as c } from "@chaibuilder/sdk/ui";
5
5
  import { ArrowRight as m } from "lucide-react";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("./index-DheBvIvo.cjs"),c=require("@chaibuilder/sdk"),r=require("@chaibuilder/sdk/ui"),o=require("lucide-react"),x=({selectedLang:s,isLoading:n,selectedBlock:l,onClick:i})=>{const{t}=c.useTranslation();return e.jsx("div",{className:"flex flex-col gap-2",children:e.jsx("div",{className:`flex flex-col gap-2 ${n?"pointer-events-none opacity-50":""}`,children:l?e.jsx(r.Button,{variant:"outline",className:"h-auto",onClick:()=>i("TRANSLATE"),children:e.jsxs("div",{className:"flex flex-col",children:[e.jsx("p",{className:"text-left text-xs font-thin",children:t("Quick Action:")}),e.jsxs("span",{className:"flex items-center gap-x-2 text-sm font-medium",children:[t("Translate Content")," ",t("to")," ",a.LANGUAGES[s]," ",e.jsx(o.ArrowRight,{className:"h-4 w-4"})]})]})}):null})})};exports.default=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("./index-DLPsza7R.cjs"),c=require("@chaibuilder/sdk"),r=require("@chaibuilder/sdk/ui"),o=require("lucide-react"),x=({selectedLang:s,isLoading:n,selectedBlock:l,onClick:i})=>{const{t}=c.useTranslation();return e.jsx("div",{className:"flex flex-col gap-2",children:e.jsx("div",{className:`flex flex-col gap-2 ${n?"pointer-events-none opacity-50":""}`,children:l?e.jsx(r.Button,{variant:"outline",className:"h-auto",onClick:()=>i("TRANSLATE"),children:e.jsxs("div",{className:"flex flex-col",children:[e.jsx("p",{className:"text-left text-xs font-thin",children:t("Quick Action:")}),e.jsxs("span",{className:"flex items-center gap-x-2 text-sm font-medium",children:[t("Translate Content")," ",t("to")," ",a.LANGUAGES[s]," ",e.jsx(o.ArrowRight,{className:"h-4 w-4"})]})]})}):null})})};exports.default=x;