@factorialco/f0-react 12.11.0 → 12.12.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 (62) hide show
  1. package/dist/{ArchiveThumbnail-cs8kx5Zf.js → ArchiveThumbnail-b34U-zTc.js} +7 -7
  2. package/dist/{ArchiveViewer-BXUH8Lm5.js → ArchiveViewer-BpmryW7A.js} +15 -15
  3. package/dist/{ChatPostComposerDialog-CGil1xkf.js → ChatPostComposerDialog-Cr207fXs.js} +3 -3
  4. package/dist/{CoachmarkProvider-cZnuTk79.js → CoachmarkProvider-CsytVD-X.js} +20090 -20267
  5. package/dist/{CodeThumbnail-Dcer4AyK.js → CodeThumbnail-8NiQ3uzU.js} +1 -1
  6. package/dist/{CodeViewer-DFBwdIFm.js → CodeViewer-BNZqt-5s.js} +6 -6
  7. package/dist/{DocumentToolbar-vZEyzJ89.js → DocumentToolbar-DUe9R1rU.js} +5 -5
  8. package/dist/{DocxViewer-DQV5Kv1n.js → DocxViewer-BUMy2iL7.js} +3 -3
  9. package/dist/{F0AiProcessingOverlay-DjGkQ2Nc.js → F0AiProcessingOverlay-CiUTeBwG.js} +328 -328
  10. package/dist/F0Alert-Ca8sBfXN.js +102 -0
  11. package/dist/F0AudioPlayer-BefDLQA2.js +1083 -0
  12. package/dist/F0AudioPlayer-CNb4kXOk.js +3 -0
  13. package/dist/{F0Button-FXkThQ9H.js → F0Button-d91IgOnc.js} +3 -3
  14. package/dist/{F0CanvasPanel-BgDo2LWP.js → F0CanvasPanel-BOo_mxBl.js} +8500 -8235
  15. package/dist/F0DocumentViewer-CaYAO9ok.js +3 -0
  16. package/dist/{F0DocumentViewer-BXifXzUW.js → F0DocumentViewer-h0XY5tgT.js} +30 -19
  17. package/dist/{F0Icon-Cj0USbCF.js → F0Icon-DmCBV0gK.js} +1 -1
  18. package/dist/{F0Map-Dwev4u-_.js → F0Map-b1uYlF_H.js} +504 -504
  19. package/dist/F0SegmentedControl-DXoAzTmH.js +103 -0
  20. package/dist/{F0Select-BWWdEd7l.js → F0Select-BZ20yXKy.js} +8284 -8333
  21. package/dist/{F0VideoPlayer-BmCmHG87.js → F0VideoPlayer-D85XCpqh.js} +306 -350
  22. package/dist/F0VideoPlayer-_zLFiEIp.js +1 -0
  23. package/dist/{HtmlThumbnail-BAgkBH2r.js → HtmlThumbnail-BJuJkuvu.js} +1 -1
  24. package/dist/{HtmlViewer-FRfNoxhP.js → HtmlViewer-DxOnMV30.js} +27 -27
  25. package/dist/{F0Text-DMZW7dhN.js → LayoutGroup-BGb5jMxE.js} +29 -37
  26. package/dist/{Map-BxGPElF2.js → Map-BOMgctnS.js} +17 -17
  27. package/dist/{PdfThumbnail-CpGZz5Kq.js → PdfThumbnail-98PDy4ud.js} +1 -1
  28. package/dist/{PdfViewer-C81MK43i.js → PdfViewer-nBnKrTYD.js} +13 -13
  29. package/dist/{SandboxedHtmlFrame-B6YWhgyg.js → SandboxedHtmlFrame-B95lWsIP.js} +2 -2
  30. package/dist/{SheetViewer-DPGpMNqq.js → SheetViewer-CD9SHbXJ.js} +5 -5
  31. package/dist/{TextViewer-BH42AeG8.js → TextViewer-DxRBCXzV.js} +4 -4
  32. package/dist/ai.d.ts +3 -3
  33. package/dist/ai.js +4 -4
  34. package/dist/component-status.js +1 -1
  35. package/dist/dist-CFY0KELA.js +55 -0
  36. package/dist/dist-DtILhk4w.js +253 -0
  37. package/dist/{dist-D-MJbPvE.js → dist-zvwuNflP.js} +1 -1
  38. package/dist/experimental.d.ts +2 -2
  39. package/dist/experimental.js +5941 -5745
  40. package/dist/{exports-C0yM5usu.d.ts → exports-cxvNeHfV.d.ts} +1 -1
  41. package/dist/f0.d.ts +4 -4
  42. package/dist/f0.js +1835 -2906
  43. package/dist/{highlight-CyebkDAD.js → highlight-CqFL-_MG.js} +1 -1
  44. package/dist/{i18n-provider-BBhzYHef.js → i18n-provider-Bdgo-LeP.js} +1 -1
  45. package/dist/{i18n-provider-defaults-BUagKwGN.js → i18n-provider-defaults-B9vdZZeS.js} +3 -0
  46. package/dist/{i18n-provider-defaults-CTDMMs-y.d.ts → i18n-provider-defaults-DyPn8R7T.d.ts} +3 -0
  47. package/dist/i18n-provider-defaults.d.ts +1 -1
  48. package/dist/i18n-provider-defaults.js +1 -1
  49. package/dist/{index-CduxMW5L.d.ts → index-DF8ubeg6.d.ts} +1 -1
  50. package/dist/localized-BrUgGMzm.js +46 -0
  51. package/dist/{maplibre-g-8NG-3q.js → maplibre-Ip4Qe9dM.js} +1 -1
  52. package/dist/{pdfWorker-D5NB2V5s.js → pdfWorker-DMjHHAyP.js} +1 -1
  53. package/dist/{popover-CQztsDta.js → popover-ics24JxK.js} +1 -1
  54. package/dist/scrollarea-cxaFAWG5.js +691 -0
  55. package/dist/{skeleton-DqejhQgn.js → skeleton-AC0Fb8zj.js} +1 -1
  56. package/dist/styles.css +1 -1
  57. package/dist/{toolbarStyles-0IygMI4H.js → toolbarStyles-lTj_42zD.js} +1 -1
  58. package/dist/{types-DlwD3i9z.d.ts → types-geibVrTM.d.ts} +2 -2
  59. package/dist/{useData-Dkq5W4r6.js → useData-BYkiGUHX.js} +4606 -5288
  60. package/package.json +1 -1
  61. package/dist/F0DocumentViewer-DWuIFBHu.js +0 -3
  62. package/dist/F0VideoPlayer-C8oYUUZM.js +0 -1
@@ -1,14 +1,14 @@
1
- import { a as e, r as t } from "./i18n-provider-BBhzYHef.js";
2
- import { n, t as r } from "./skeleton-DqejhQgn.js";
1
+ import { a as e, r as t } from "./i18n-provider-Bdgo-LeP.js";
2
+ import { n, t as r } from "./skeleton-AC0Fb8zj.js";
3
3
  import { L as i, R as a } from "./tooltip-BX4dSfeL.js";
4
- import { R as o, T as s, U as c, h as l, n as u, r as d, t as f, wt as p, y as m } from "./F0Button-FXkThQ9H.js";
5
- import { $ as h, A as g, At as _, B as v, Br as y, Ct as b, D as x, Do as S, Dt as C, Eo as w, Et as T, F as E, Fo as D, Go as O, Ho as k, Ht as A, Jr as j, Ls as M, Lt as N, Mt as P, Na as F, Ns as I, O as ee, P as te, Pt as ne, Q as L, Qn as re, R, Rs as z, Sa as B, So as ie, Tt as ae, Ua as oe, Ui as se, Xr as ce, Yr as le, _ as ue, _a as de, _r as fe, a as pe, ao as me, as as he, c as ge, cr as _e, ct as ve, dt as ye, ei as be, eo as xe, es as Se, ft as Ce, g as we, h as Te, hc as Ee, i as De, ii as Oe, io as ke, ir as Ae, it as je, j as Me, js as Ne, k as Pe, l as Fe, lt as Ie, mc as Le, ni as Re, nt as V, oo as ze, pt as Be, qa as Ve, qo as He, qr as Ue, r as We, so as Ge, tt as Ke, u as qe, v as Je, va as Ye, vo as Xe, vr as Ze, vt as Qe, wo as $e, wt as et, y as tt, z as nt } from "./F0CanvasPanel-BgDo2LWP.js";
6
- import { o as rt, t as H } from "./F0Icon-Cj0USbCF.js";
7
- import { t as it } from "./i18n-provider-defaults-BUagKwGN.js";
8
- import { C as at, D as ot, F as st, S as ct, V as lt, W as ut, X as dt, Z as ft, k as pt, l as mt, x as ht } from "./useData-Dkq5W4r6.js";
9
- import { Dn as gt, Er as _t, Ft as vt, On as yt, Ot as bt, Tr as xt, _t as St, cn as Ct, ct as wt, gt as Tt, ht as Et, jr as Dt, kr as Ot, nn as kt, sn as At, un as jt, wr as Mt } from "./F0Select-BWWdEd7l.js";
4
+ import { R as o, T as s, U as c, h as l, n as u, r as d, t as f, wt as p, y as m } from "./F0Button-d91IgOnc.js";
5
+ import { $ as h, $a as g, $o as _, A as v, As as y, At as b, B as x, Br as S, Co as C, Ct as w, D as T, Eo as E, Et as D, F as O, Ha as k, Ht as A, Is as j, Jr as M, Ka as N, Ko as P, Ls as F, Lt as I, Ms as L, Mt as ee, O as te, P as R, Po as ne, Pt as z, Q as re, Qn as B, Qr as ie, R as V, St as ae, To as oe, Tt as se, Vi as ce, Vo as le, Wo as ue, Xr as de, Yr as fe, _ as pe, _o as me, _r as he, _t as ge, a as _e, ao as ve, ba as ye, c as be, cr as xe, ct as Se, dt as Ce, ei as we, ft as Te, g as Ee, ga as De, h as Oe, ha as ke, i as Ae, io as je, ir as Me, is as Ne, it as Pe, j as Fe, ja as Ie, k as Le, l as Re, lt as ze, mc as Be, ni as Ve, nt as He, oo as Ue, pc as We, pt as Ge, qr as Ke, r as qe, ro as Je, tt as Ye, u as Xe, v as Ze, vr as Qe, wt as $e, xo as et, y as tt, z as nt } from "./F0CanvasPanel-BOo_mxBl.js";
6
+ import { o as rt, t as H } from "./F0Icon-DmCBV0gK.js";
7
+ import { t as it } from "./i18n-provider-defaults-B9vdZZeS.js";
8
+ import { C as at, H as ot, I as st, N as ct, U as lt, b as ut, g as dt, h as ft, k as pt, l as mt, m as ht } from "./useData-BYkiGUHX.js";
9
+ import { $t as gt, Er as _t, Mt as vt, Sr as yt, Tn as bt, Tt as xt, _t as St, an as Ct, br as wt, ct as Tt, gt as Et, ht as Dt, in as Ot, sn as kt, wn as At, wr as jt, xr as Mt } from "./F0Select-BZ20yXKy.js";
10
10
  import { t as Nt } from "./ExternalLink-RdKU698E.js";
11
- import { a as Pt, gt as Ft, i as It, n as Lt, t as Rt } from "./popover-CQztsDta.js";
11
+ import { a as Pt, gt as Ft, i as It, n as Lt, t as Rt } from "./popover-ics24JxK.js";
12
12
  import { a as zt } from "./dist-Cuwaibqg.js";
13
13
  import { createContext as Bt, createElement as Vt, forwardRef as U, memo as Ht, useCallback as W, useContext as Ut, useEffect as G, useId as Wt, useInsertionEffect as Gt, useLayoutEffect as Kt, useMemo as K, useRef as q, useState as J } from "react";
14
14
  import { Fragment as qt, jsx as Y, jsxs as X } from "react/jsx-runtime";
@@ -35,10 +35,10 @@ var Zt = [
35
35
  "sm",
36
36
  "md",
37
37
  "lg"
38
- ], $t = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;"), en = /[\\`*_{}[\]()#+\-.!|~>]/g, tn = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(en, "\\$&"), nn = (e) => `<entity-ref type="${$t(e.type)}" id="${$t(e.id)}">${$t(e.label)}</entity-ref>`, rn = (e, t) => e.slice(t.start, v(t)).normalize("NFC") === `@${t.label}`.normalize("NFC");
38
+ ], $t = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;"), en = /[\\`*_{}[\]()#+\-.!|~>]/g, tn = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(en, "\\$&"), nn = (e) => `<entity-ref type="${$t(e.type)}" id="${$t(e.id)}">${$t(e.label)}</entity-ref>`, rn = (e, t) => e.slice(t.start, x(t)).normalize("NFC") === `@${t.label}`.normalize("NFC");
39
39
  function an(e, t) {
40
40
  let n = e.length - e.trimStart().length, r = e.trimEnd().length, i = t.filter((t) => t.start >= n && rn(e, t)).sort((e, t) => e.start - t.start), a = "", o = n;
41
- for (let t of i) t.start < o || v(t) > r || (a += tn(e.slice(o, t.start)) + nn(t), o = v(t));
41
+ for (let t of i) t.start < o || x(t) > r || (a += tn(e.slice(o, t.start)) + nn(t), o = x(t));
42
42
  return a + tn(e.slice(o, r));
43
43
  }
44
44
  //#endregion
@@ -192,7 +192,7 @@ var sn = 14, cn = 2.31, ln = ({ percentage: e, tone: t }) => {
192
192
  className: "min-w-0 flex-1 truncate",
193
193
  children: c.t("ai.usageLimits.yourCompany")
194
194
  }), /* @__PURE__ */ Y(H, {
195
- icon: xt,
195
+ icon: Mt,
196
196
  size: "md",
197
197
  color: "default"
198
198
  })]
@@ -209,16 +209,16 @@ var sn = 14, cn = 2.31, ln = ({ percentage: e, tone: t }) => {
209
209
  })]
210
210
  });
211
211
  }, mn = (e) => {
212
- let { provided: t } = V();
213
- return t ? /* @__PURE__ */ Y(hn, { ...e }) : /* @__PURE__ */ Y(Ke, { children: /* @__PURE__ */ Y(hn, { ...e }) });
212
+ let { provided: t } = He();
213
+ return t ? /* @__PURE__ */ Y(hn, { ...e }) : /* @__PURE__ */ Y(Ye, { children: /* @__PURE__ */ Y(hn, { ...e }) });
214
214
  }, hn = ({ attachedFiles: e, isUploading: n, onRemove: r, removeLabel: i, reducedMotion: a }) => {
215
215
  let o = t(), s = gn(e), c = e.flatMap((e) => {
216
216
  let t = s.get(e.id);
217
217
  if (!t) return [];
218
- let n = e.file.name, a = e.file.type || ve({
218
+ let n = e.file.name, a = e.file.type || Se({
219
219
  name: n,
220
220
  url: t
221
- }), o = Ie({
221
+ }), o = ze({
222
222
  name: n,
223
223
  url: t,
224
224
  mimeType: a
@@ -236,7 +236,7 @@ var sn = 14, cn = 2.31, ln = ({ percentage: e, tone: t }) => {
236
236
  };
237
237
  return [{
238
238
  id: e.id,
239
- content: /* @__PURE__ */ Y(Pe, {
239
+ content: /* @__PURE__ */ Y(Le, {
240
240
  attachment: o,
241
241
  status: e.status === "uploaded" ? "ready" : e.status === "error" ? "error" : "uploading",
242
242
  errorMessage: e.errorMessage,
@@ -246,7 +246,7 @@ var sn = 14, cn = 2.31, ln = ({ percentage: e, tone: t }) => {
246
246
  })
247
247
  }];
248
248
  });
249
- return /* @__PURE__ */ Y(ee, {
249
+ return /* @__PURE__ */ Y(te, {
250
250
  items: c,
251
251
  label: o.t(e.length === 1 ? "chat.attachmentCount.one" : "chat.attachmentCount.other", { count: e.length }),
252
252
  busy: n,
@@ -295,14 +295,14 @@ var sn = 14, cn = 2.31, ln = ({ percentage: e, tone: t }) => {
295
295
  d(e), s?.(e);
296
296
  }, p = [...n ? [{
297
297
  label: c.ai.addFilesOrPhotos,
298
- icon: D,
298
+ icon: ne,
299
299
  onClick: r,
300
300
  disabled: i,
301
301
  disabledTooltip: a
302
302
  }, ...e.length > 0 ? [{ type: "separator" }] : []] : [], ..._n(e)];
303
303
  return /* @__PURE__ */ Y("div", {
304
304
  onClick: (e) => e.stopPropagation(),
305
- children: /* @__PURE__ */ Y(B, {
305
+ children: /* @__PURE__ */ Y(ye, {
306
306
  items: p,
307
307
  align: "start",
308
308
  disabled: o,
@@ -313,7 +313,7 @@ var sn = 14, cn = 2.31, ln = ({ percentage: e, tone: t }) => {
313
313
  label: c.ai.addToConversation,
314
314
  hideLabel: !0,
315
315
  type: "button",
316
- icon: ft,
316
+ icon: lt,
317
317
  variant: "outline",
318
318
  size: "md",
319
319
  pressed: l,
@@ -335,7 +335,7 @@ var sn = 14, cn = 2.31, ln = ({ percentage: e, tone: t }) => {
335
335
  label: d.ai.attachFile,
336
336
  hideLabel: !0,
337
337
  type: "button",
338
- icon: D,
338
+ icon: ne,
339
339
  variant: "outline",
340
340
  size: "md",
341
341
  disabled: r || f,
@@ -383,7 +383,7 @@ var sn = 14, cn = 2.31, ln = ({ percentage: e, tone: t }) => {
383
383
  label: r.ai.creditWarning.dismiss ?? "",
384
384
  size: "sm",
385
385
  variant: "ghost",
386
- icon: z,
386
+ icon: F,
387
387
  hideLabel: !0,
388
388
  onClick: e.onDismiss
389
389
  }) : null]
@@ -403,7 +403,7 @@ var sn = 14, cn = 2.31, ln = ({ percentage: e, tone: t }) => {
403
403
  /* @__PURE__ */ Y("div", {
404
404
  className: "flex items-center py-0.5",
405
405
  children: /* @__PURE__ */ Y(H, {
406
- icon: ie,
406
+ icon: et,
407
407
  size: "md",
408
408
  color: "default"
409
409
  })
@@ -418,7 +418,7 @@ var sn = 14, cn = 2.31, ln = ({ percentage: e, tone: t }) => {
418
418
  variant: "ghost",
419
419
  label: r.ai.removeQuote,
420
420
  onClick: n,
421
- icon: z,
421
+ icon: F,
422
422
  hideLabel: !0,
423
423
  size: "sm"
424
424
  })
@@ -427,7 +427,7 @@ var sn = 14, cn = 2.31, ln = ({ percentage: e, tone: t }) => {
427
427
  });
428
428
  }, Cn = ({ cards: e }) => e.length === 0 ? null : /* @__PURE__ */ Y("div", {
429
429
  className: "grid w-full grid-cols-2 gap-3",
430
- children: e.slice(0, 4).map((e) => /* @__PURE__ */ Y(x, {
430
+ children: e.slice(0, 4).map((e) => /* @__PURE__ */ Y(T, {
431
431
  avatar: {
432
432
  type: "icon",
433
433
  icon: e.icon
@@ -595,7 +595,7 @@ function Mn({ item: e, onSelect: t, onHover: n }) {
595
595
  "aria-hidden": !0,
596
596
  className: "flex flex-shrink-0 items-center text-f1-foreground-secondary opacity-0 transition-opacity group-hover:opacity-100 group-focus-visible:opacity-100",
597
597
  children: /* @__PURE__ */ Y(H, {
598
- icon: Ot,
598
+ icon: jt,
599
599
  size: "sm"
600
600
  })
601
601
  })]
@@ -733,46 +733,46 @@ function Rn(e) {
733
733
  }
734
734
  //#endregion
735
735
  //#region src/addons/ai/ai/F0AiChatTextArea/AiChatComposer.tsx
736
- var zn = ({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placeholders: s, creditWarning: u, clarifyingUI: f, pendingContext: m = null, onPendingContextChange: h, pendingQuote: g = null, onPendingQuoteChange: _, fileAttachments: v, toolbarStart: y, composerActions: b, onComposerActionsOpenChange: x, onTranscribe: S, searchPersons: C, mentionSources: w, onProcessFilesRef: T, disclaimer: E, usageLimits: D, footer: O, isWelcomeScreen: k = !1, fullscreen: A = !1, welcomeScreenSuggestions: j, onSuggestionClick: M, welcomeScreenSuggestionsPlacement: N = "above", welcomeScreenSuggestionsCollapsedByDefault: F = !1, welcomeScreenCards: I, padding: ee = "default", name: te, ref: ne }) => {
737
- let L = t(), re = l(), z = !!re, B = q(null), [ie, ae] = J(null), [oe, se] = J(!1), [ce, le] = J({
736
+ var zn = ({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placeholders: s, creditWarning: u, clarifyingUI: f, pendingContext: m = null, onPendingContextChange: h, pendingQuote: g = null, onPendingQuoteChange: _, fileAttachments: v, toolbarStart: y, composerActions: b, onComposerActionsOpenChange: x, onTranscribe: S, searchPersons: C, mentionSources: w, onProcessFilesRef: T, disclaimer: E, usageLimits: D, footer: O, isWelcomeScreen: k = !1, fullscreen: A = !1, welcomeScreenSuggestions: j, onSuggestionClick: M, welcomeScreenSuggestionsPlacement: N = "above", welcomeScreenSuggestionsCollapsedByDefault: P = !1, welcomeScreenCards: F, padding: I = "default", name: L, ref: te }) => {
737
+ let R = t(), ne = l(), z = !!ne, re = q(null), [B, ie] = J(null), [ae, oe] = J(!1), [se, ce] = J({
738
738
  isEmpty: !0,
739
739
  recorder: "idle"
740
- }), ue = q(null), de = q(null);
740
+ }), le = q(null), ue = q(null);
741
741
  G(() => () => {
742
- de.current && clearTimeout(de.current);
742
+ ue.current && clearTimeout(ue.current);
743
743
  }, []);
744
- let fe = f != null, pe = q(m), me = q(g);
744
+ let de = f != null, fe = q(m), pe = q(g);
745
745
  Kt(() => {
746
- pe.current = m, me.current = g;
746
+ fe.current = m, pe.current = g;
747
747
  });
748
- let { tracking: he, setFocusChatInputFunction: ge } = R(), _e = W((e, t) => {
749
- he?.onWelcomeSuggestionClick?.({
748
+ let { tracking: me, setFocusChatInputFunction: he } = V(), ge = W((e, t) => {
749
+ me?.onWelcomeSuggestionClick?.({
750
750
  item: e,
751
751
  group: t,
752
752
  prompt: e.prompt || e.title
753
753
  }), M?.(e, t);
754
- }, [he, M]), { attachedFiles: ve, fileInputRef: ye, onUploadFiles: be, acceptValue: xe, isAtMaxFiles: Se, maxFiles: Ce, processFiles: we, handleFileSelect: Te, handleRemoveFile: Ee, transientError: De, showTransientError: Oe } = Rn(v), ke = Pn({
754
+ }, [me, M]), { attachedFiles: _e, fileInputRef: ve, onUploadFiles: ye, acceptValue: be, isAtMaxFiles: xe, maxFiles: Se, processFiles: Ce, handleFileSelect: we, handleRemoveFile: Te, transientError: Ee, showTransientError: De } = Rn(v), Oe = Pn({
755
755
  searchPersons: C,
756
756
  mentionSources: w
757
757
  });
758
758
  G(() => {
759
- F || typeof window < "u" && window.location.hash.length === 0 && B.current?.focus();
759
+ P || typeof window < "u" && window.location.hash.length === 0 && re.current?.focus();
760
760
  }, []), G(() => {
761
- if (fe) ge(null);
762
- else return ge(() => {
763
- B.current?.focus();
764
- }), () => ge(null);
765
- }, [fe, ge]), G(() => {
761
+ if (de) he(null);
762
+ else return he(() => {
763
+ re.current?.focus();
764
+ }), () => he(null);
765
+ }, [de, he]), G(() => {
766
766
  if (T) return T((e) => {
767
- we(e);
767
+ Ce(e);
768
768
  }), () => {
769
769
  T(null);
770
770
  };
771
- }, [T, we]);
772
- let Ae = W((e) => void we(e), [we]), je = ve.filter((e) => e.status === "uploaded"), Me = ve.some((e) => e.status === "uploading"), Ne = ve.some((e) => e.status === "error"), Pe = !ce.isEmpty || je.length > 0, Fe = async ({ text: t, mentions: n }) => {
773
- if (Ne) return Oe(L.ai.fileUploadBlockedSubmit), !1;
771
+ }, [T, Ce]);
772
+ let ke = W((e) => void Ce(e), [Ce]), Ae = _e.filter((e) => e.status === "uploaded"), je = _e.some((e) => e.status === "uploading"), Me = _e.some((e) => e.status === "error"), Ne = !se.isEmpty || Ae.length > 0, Pe = async ({ text: t, mentions: n }) => {
773
+ if (Me) return De(R.ai.fileUploadBlockedSubmit), !1;
774
774
  if (a && await a() === !1) return !1;
775
- let r = je, i = r.flatMap((e) => e.uploadedFile ? [e.uploadedFile] : []), o = m, s = g;
775
+ let r = Ae, i = r.flatMap((e) => e.uploadedFile ? [e.uploadedFile] : []), o = m, s = g;
776
776
  o && h?.(null), s && _?.(null);
777
777
  try {
778
778
  await e({
@@ -782,24 +782,24 @@ var zn = ({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placeholde
782
782
  quote: s
783
783
  });
784
784
  } catch {
785
- return o && (pe.current == null || pe.current === o) && h?.(o), s && (me.current == null || me.current === s) && _?.(s), !1;
785
+ return o && (fe.current == null || fe.current === o) && h?.(o), s && (pe.current == null || pe.current === s) && _?.(s), !1;
786
786
  }
787
- for (let e of r) Ee(e.id);
787
+ for (let e of r) Te(e.id);
788
788
  return !0;
789
- }, Ie = ie ? ie.prompt ?? ie.title : null, Le = Ie ? [Ie] : s ?? [], Re = N === "inside", V = k && j && j.length > 0 && M ? /* @__PURE__ */ Y(jn, {
789
+ }, Fe = B ? B.prompt ?? B.title : null, Ie = Fe ? [Fe] : s ?? [], Le = N === "inside", Re = k && j && j.length > 0 && M ? /* @__PURE__ */ Y(jn, {
790
790
  suggestions: j,
791
- onItemClick: _e,
792
- onItemHover: ae,
793
- side: Re ? "bottom" : "top",
794
- reserveTwoRows: !Re,
795
- overflow: Re ? "scroll" : "wrap"
796
- }) : null, ze = !F || oe || Pe || ce.recorder !== "idle", Be = (e) => e instanceof Node ? ue.current?.contains(e) ? !0 : e instanceof Element && e.closest("[data-radix-popper-content-wrapper]") !== null : !1, Ve = () => {
797
- de.current && clearTimeout(de.current), de.current = setTimeout(() => {
798
- Be(document.activeElement) || se(!1);
791
+ onItemClick: ge,
792
+ onItemHover: ie,
793
+ side: Le ? "bottom" : "top",
794
+ reserveTwoRows: !Le,
795
+ overflow: Le ? "scroll" : "wrap"
796
+ }) : null, ze = !P || ae || Ne || se.recorder !== "idle", Be = (e) => e instanceof Node ? le.current?.contains(e) ? !0 : e instanceof Element && e.closest("[data-radix-popper-content-wrapper]") !== null : !1, Ve = () => {
797
+ ue.current && clearTimeout(ue.current), ue.current = setTimeout(() => {
798
+ Be(document.activeElement) || oe(!1);
799
799
  }, 0);
800
- }, He = Re, Ue = He && F, We = Ue && !ze, Ge = He && V ? /* @__PURE__ */ Y("div", {
800
+ }, He = Le, Ue = He && P, We = Ue && !ze, Ge = He && Re ? /* @__PURE__ */ Y("div", {
801
801
  onClick: (e) => e.stopPropagation(),
802
- children: V
802
+ children: Re
803
803
  }) : void 0, Ke = {
804
804
  duration: z ? 0 : .32,
805
805
  ease: [
@@ -808,16 +808,16 @@ var zn = ({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placeholde
808
808
  .2,
809
809
  1
810
810
  ]
811
- }, qe = k && A && !!I && I.length > 0, Je = A && k, { motionProps: Ye } = on(k, 160, .5);
811
+ }, qe = k && A && !!F && F.length > 0, Je = A && k, { motionProps: Ye } = on(k, 160, .5);
812
812
  return /* @__PURE__ */ X(c.div, {
813
- ref: ne,
813
+ ref: te,
814
814
  "data-composer-layout": Je ? "welcome" : "docked",
815
- className: i("flex flex-col items-center gap-2", ee === "default" && "px-4 pb-3 pt-2", Je && "min-h-0 flex-1 justify-start -mt-20"),
815
+ className: i("flex flex-col items-center gap-2", I === "default" && "px-4 pb-3 pt-2", Je && "min-h-0 flex-1 justify-start -mt-20"),
816
816
  ...A ? Ye : {},
817
817
  children: [
818
818
  /* @__PURE__ */ X("div", {
819
819
  className: "flex w-full max-w-content flex-col gap-2",
820
- children: [V && !Re ? /* @__PURE__ */ Y("div", { children: F ? /* @__PURE__ */ Y(p, {
820
+ children: [Re && !Le ? /* @__PURE__ */ Y("div", { children: P ? /* @__PURE__ */ Y(p, {
821
821
  initial: !1,
822
822
  children: ze ? /* @__PURE__ */ Y(c.div, {
823
823
  className: "overflow-hidden",
@@ -834,81 +834,81 @@ var zn = ({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placeholde
834
834
  height: 0
835
835
  },
836
836
  transition: Ke,
837
- children: V
837
+ children: Re
838
838
  }, "welcome-suggestions") : null
839
- }) : V }) : null, /* @__PURE__ */ Y(xn, {
839
+ }) : Re }) : null, /* @__PURE__ */ Y(xn, {
840
840
  creditWarning: u,
841
841
  children: /* @__PURE__ */ Y(nt, {
842
842
  asForm: !0,
843
- surfaceRef: ue,
844
- handleRef: B,
843
+ surfaceRef: le,
844
+ handleRef: re,
845
845
  className: "isolate z-20 items-stretch p-0 hover:cursor-text",
846
- accent: fe,
847
- replacement: fe ? f : null,
848
- onSurfaceFocus: () => se(!0),
846
+ accent: de,
847
+ replacement: de ? f : null,
848
+ onSurfaceFocus: () => oe(!0),
849
849
  onSurfaceBlur: Ve,
850
- onStateChange: le,
851
- onSend: Fe,
850
+ onStateChange: ce,
851
+ onSend: Pe,
852
852
  inProgress: r,
853
853
  onStop: n,
854
- hasAttachments: je.length > 0,
855
- sendBlocked: Me,
856
- error: De,
854
+ hasAttachments: Ae.length > 0,
855
+ sendBlocked: je,
856
+ error: Ee,
857
857
  role: "textbox",
858
- name: te,
859
- placeholders: Le,
858
+ name: L,
859
+ placeholders: Ie,
860
860
  placeholdersPaused: r,
861
861
  labels: {
862
- placeholder: L.ai.inputPlaceholder,
863
- listening: L.ai.listening,
864
- send: L.ai.sendMessage,
865
- stop: L.ai.stopAnswerGeneration,
866
- recordAudio: L.ai.recordAudio,
867
- cancelRecording: L.ai.cancelRecording,
868
- confirmRecording: L.ai.stopRecording,
869
- micPermissionDenied: L.ai.micPermissionDenied,
870
- micError: L.ai.micError,
871
- transcriptionError: L.ai.transcriptionError,
872
- mentionSuggestions: L.ai.mentions.suggestions
862
+ placeholder: R.ai.inputPlaceholder,
863
+ listening: R.ai.listening,
864
+ send: R.ai.sendMessage,
865
+ stop: R.ai.stopAnswerGeneration,
866
+ recordAudio: R.ai.recordAudio,
867
+ cancelRecording: R.ai.cancelRecording,
868
+ confirmRecording: R.ai.stopRecording,
869
+ micPermissionDenied: R.ai.micPermissionDenied,
870
+ micError: R.ai.micError,
871
+ transcriptionError: R.ai.transcriptionError,
872
+ mentionSuggestions: R.ai.mentions.suggestions
873
873
  },
874
874
  mentions: {
875
- sources: ke,
876
- showGroupLabels: ke.length > 1
875
+ sources: Oe,
876
+ showGroupLabels: Oe.length > 1
877
877
  },
878
878
  voice: S ? {
879
879
  onTranscribe: S,
880
- onPress: he?.onDictationStart,
881
- onCancelled: he?.onDictationCancel
880
+ onPress: me?.onDictationStart,
881
+ onCancelled: me?.onDictationCancel
882
882
  } : void 0,
883
- onPasteFiles: v?.onUploadFiles ? Ae : void 0,
883
+ onPasteFiles: v?.onUploadFiles ? ke : void 0,
884
884
  pastePreferText: !0,
885
885
  header: g ? /* @__PURE__ */ Y(Sn, {
886
886
  quote: g,
887
887
  onRemove: () => _?.(null)
888
888
  }) : null,
889
889
  tray: /* @__PURE__ */ Y(mn, {
890
- attachedFiles: ve,
891
- isUploading: Me,
892
- onRemove: Ee,
893
- removeLabel: L.ai.removeFile,
890
+ attachedFiles: _e,
891
+ isUploading: je,
892
+ onRemove: Te,
893
+ removeLabel: R.ai.removeFile,
894
894
  reducedMotion: z
895
895
  }),
896
896
  leading: He ? /* @__PURE__ */ Y("div", {
897
897
  className: "flex shrink-0 self-center pl-3",
898
- children: /* @__PURE__ */ Y(P, {
898
+ children: /* @__PURE__ */ Y(ee, {
899
899
  size: "sm",
900
900
  spin: r
901
901
  })
902
902
  }) : void 0,
903
- toolbarStart: be || y || b?.length ? (e) => /* @__PURE__ */ X(qt, { children: [/* @__PURE__ */ Y(yn, {
904
- onUploadFiles: be,
903
+ toolbarStart: ye || y || b?.length ? (e) => /* @__PURE__ */ X(qt, { children: [/* @__PURE__ */ Y(yn, {
904
+ onUploadFiles: ye,
905
905
  composerActions: b,
906
906
  onComposerActionsOpenChange: x,
907
- isAtMaxFiles: Se,
908
- maxFiles: Ce,
909
- acceptValue: xe,
910
- fileInputRef: ye,
911
- handleFileSelect: Te,
907
+ isAtMaxFiles: xe,
908
+ maxFiles: Se,
909
+ acceptValue: be,
910
+ fileInputRef: ve,
911
+ handleFileSelect: we,
912
912
  recordingStatus: e
913
913
  }), y ? /* @__PURE__ */ Y("div", {
914
914
  className: "min-w-0 cursor-default",
@@ -924,7 +924,7 @@ var zn = ({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placeholde
924
924
  }),
925
925
  qe ? /* @__PURE__ */ Y("div", {
926
926
  className: "w-full max-w-content pt-2",
927
- children: /* @__PURE__ */ Y(Cn, { cards: I })
927
+ children: /* @__PURE__ */ Y(Cn, { cards: F })
928
928
  }) : null,
929
929
  O && k && A ? /* @__PURE__ */ Y("div", {
930
930
  className: "w-full py-4 mx-auto flex max-w-content justify-center",
@@ -933,7 +933,7 @@ var zn = ({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placeholde
933
933
  /* @__PURE__ */ Y(p, {
934
934
  mode: "wait",
935
935
  initial: !1,
936
- children: fe ? /* @__PURE__ */ X(c.div, {
936
+ children: de ? /* @__PURE__ */ X(c.div, {
937
937
  className: "flex w-full max-w-content flex-row flex-wrap items-center justify-center gap-x-3 gap-y-1 text-sm font-medium text-f1-foreground-tertiary",
938
938
  initial: { opacity: 0 },
939
939
  animate: { opacity: 1 },
@@ -949,7 +949,7 @@ var zn = ({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placeholde
949
949
  children: "↑↓"
950
950
  }),
951
951
  " ",
952
- L.ai.clarifyingQuestion.navHint.navigate
952
+ R.ai.clarifyingQuestion.navHint.navigate
953
953
  ] }),
954
954
  /* @__PURE__ */ X("span", { children: [
955
955
  /* @__PURE__ */ Y("kbd", {
@@ -957,7 +957,7 @@ var zn = ({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placeholde
957
957
  children: "Enter"
958
958
  }),
959
959
  " ",
960
- L.ai.clarifyingQuestion.navHint.select
960
+ R.ai.clarifyingQuestion.navHint.select
961
961
  ] }),
962
962
  /* @__PURE__ */ X("span", { children: [
963
963
  /* @__PURE__ */ Y("kbd", {
@@ -965,7 +965,7 @@ var zn = ({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placeholde
965
965
  children: "Esc"
966
966
  }),
967
967
  " ",
968
- L.ai.clarifyingQuestion.navHint.cancel
968
+ R.ai.clarifyingQuestion.navHint.cancel
969
969
  ] })
970
970
  ]
971
971
  }, "clarifying-nav-hint") : (E?.text || D) && !Je && /* @__PURE__ */ X(c.div, {
@@ -974,7 +974,7 @@ var zn = ({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placeholde
974
974
  animate: { opacity: 1 },
975
975
  exit: { opacity: 0 },
976
976
  transition: {
977
- duration: re ? 0 : .3,
977
+ duration: ne ? 0 : .3,
978
978
  ease: "easeOut"
979
979
  },
980
980
  children: [/* @__PURE__ */ X("div", {
@@ -1041,12 +1041,12 @@ function Wn({ ...e }) {
1041
1041
  //#endregion
1042
1042
  //#region src/addons/ai/ai/F0AiChat/components/markdownRenderers/components/Image.tsx
1043
1043
  function Gn({ src: e, alt: n, ...r }) {
1044
- let o = t(), s = et(), c = ae(), l = C(e || void 0), [u, d] = J(!1), [p, m] = J(!1), h = n || (e ? je(e) : "") || "image";
1044
+ let o = t(), s = w(), c = $e(), l = D(e || void 0), [u, d] = J(!1), [p, m] = J(!1), h = n || (e ? Pe(e) : "") || "image";
1045
1045
  if (!e || u || l.status === "error") return n ? /* @__PURE__ */ Y("span", {
1046
1046
  className: "text-f1-foreground-secondary",
1047
1047
  children: n
1048
1048
  }) : null;
1049
- let g = l.status === "ready" ? /* @__PURE__ */ Y(Qe, {
1049
+ let g = l.status === "ready" ? /* @__PURE__ */ Y(ge, {
1050
1050
  ...r,
1051
1051
  src: l.url,
1052
1052
  alt: n,
@@ -1074,7 +1074,7 @@ function Gn({ src: e, alt: n, ...r }) {
1074
1074
  variant: "neutral",
1075
1075
  label: o.chat.download,
1076
1076
  hideLabel: !0,
1077
- icon: I,
1077
+ icon: L,
1078
1078
  onClick: () => c(e, h)
1079
1079
  })
1080
1080
  })]
@@ -1083,7 +1083,7 @@ function Gn({ src: e, alt: n, ...r }) {
1083
1083
  //#endregion
1084
1084
  //#region src/addons/ai/ai/F0AiChat/components/markdownRenderers/components/Link.tsx
1085
1085
  function Kn({ children: e, ...t }) {
1086
- return /* @__PURE__ */ Y(ce, {
1086
+ return /* @__PURE__ */ Y(de, {
1087
1087
  ...t,
1088
1088
  variant: "link",
1089
1089
  href: t.href,
@@ -1136,7 +1136,7 @@ function Xn({ id: e, trigger: t, resolver: n, contentClassName: r = "w-64", ...a
1136
1136
  s,
1137
1137
  l
1138
1138
  ]), h = d ? null : s;
1139
- return /* @__PURE__ */ X(Et, {
1139
+ return /* @__PURE__ */ X(Dt, {
1140
1140
  openDelay: 300,
1141
1141
  closeDelay: 100,
1142
1142
  onOpenChange: (e) => {
@@ -1145,11 +1145,11 @@ function Xn({ id: e, trigger: t, resolver: n, contentClassName: r = "w-64", ...a
1145
1145
  children: [/* @__PURE__ */ Y(St, {
1146
1146
  asChild: !0,
1147
1147
  children: t
1148
- }), /* @__PURE__ */ Y(Tt, {
1148
+ }), /* @__PURE__ */ Y(Et, {
1149
1149
  side: "top",
1150
1150
  align: "start",
1151
1151
  className: i(r, "rounded-2xl border-none p-0 shadow-md"),
1152
- children: l ? /* @__PURE__ */ Y(y.Skeleton, {}) : a.renderCard ? a.renderCard(h) : /* @__PURE__ */ Y(y, { ...h ? a.mapToCard(h) : a.fallbackCard })
1152
+ children: l ? /* @__PURE__ */ Y(S.Skeleton, {}) : a.renderCard ? a.renderCard(h) : /* @__PURE__ */ Y(S, { ...h ? a.mapToCard(h) : a.fallbackCard })
1153
1153
  })]
1154
1154
  });
1155
1155
  }
@@ -1197,7 +1197,7 @@ var $n = U(({ label: e, ...t }, n) => /* @__PURE__ */ Y("button", {
1197
1197
  }));
1198
1198
  $n.displayName = "CandidateTrigger";
1199
1199
  function er({ id: e, label: n }) {
1200
- let { entityRefs: r } = R(), i = r?.resolvers?.candidate, a = t(), o = r?.urls?.candidate?.(e), s = K(() => (e) => {
1200
+ let { entityRefs: r } = V(), i = r?.resolvers?.candidate, a = t(), o = r?.urls?.candidate?.(e), s = K(() => (e) => {
1201
1201
  let t = [];
1202
1202
  return e.source && t.push({
1203
1203
  title: a.t("ai.entityRef.candidate.source"),
@@ -1261,10 +1261,10 @@ var tr = U(({ label: e, ...t }, n) => /* @__PURE__ */ Y("button", {
1261
1261
  }));
1262
1262
  tr.displayName = "ExpenseTrigger";
1263
1263
  function nr({ id: e, label: n }) {
1264
- let { entityRefs: r } = R(), i = r?.resolvers?.expense, a = t(), o = r?.urls?.expense?.(e), s = K(() => (e) => ({
1264
+ let { entityRefs: r } = V(), i = r?.resolvers?.expense, a = t(), o = r?.urls?.expense?.(e), s = K(() => (e) => ({
1265
1265
  avatar: {
1266
1266
  type: "icon",
1267
- icon: O
1267
+ icon: ue
1268
1268
  },
1269
1269
  title: e.description || `Expense #${e.id}`,
1270
1270
  description: [e.amount, e.status].filter(Boolean).join(" · "),
@@ -1302,7 +1302,7 @@ var rr = U(({ label: e, ...t }, n) => /* @__PURE__ */ Y("button", {
1302
1302
  }));
1303
1303
  rr.displayName = "JobPostingTrigger";
1304
1304
  function ir({ id: e, label: n }) {
1305
- let { entityRefs: r } = R(), i = r?.resolvers?.jobPosting, a = t(), o = r?.urls?.jobPosting?.(e), s = K(() => (e) => ({
1305
+ let { entityRefs: r } = V(), i = r?.resolvers?.jobPosting, a = t(), o = r?.urls?.jobPosting?.(e), s = K(() => (e) => ({
1306
1306
  title: e.title,
1307
1307
  description: [e.status, e.location].filter(Boolean).join(" · "),
1308
1308
  ...o && { secondaryActions: {
@@ -1331,13 +1331,13 @@ function ir({ id: e, label: n }) {
1331
1331
  //#endregion
1332
1332
  //#region src/addons/ai/ai/F0AiChat/components/markdownRenderers/entityRef/entities/person/PersonEntityRef.tsx
1333
1333
  function ar({ id: e, label: t }) {
1334
- let { entityRefs: n } = R(), r = n?.resolvers?.person, i = n?.urls?.person?.(e);
1334
+ let { entityRefs: n } = V(), r = n?.resolvers?.person, i = n?.urls?.person?.(e);
1335
1335
  return r ? /* @__PURE__ */ Y(Xn, {
1336
1336
  id: e,
1337
1337
  trigger: /* @__PURE__ */ Y(Zn, { label: t }),
1338
1338
  resolver: r,
1339
1339
  contentClassName: "w-72",
1340
- renderCard: (e) => e ? /* @__PURE__ */ Y(Te, {
1340
+ renderCard: (e) => e ? /* @__PURE__ */ Y(Oe, {
1341
1341
  name: `${e.firstName} ${e.lastName}`,
1342
1342
  avatar: {
1343
1343
  type: "person",
@@ -1349,7 +1349,7 @@ function ar({ id: e, label: t }) {
1349
1349
  profileHref: i,
1350
1350
  onProfileClick: e.onProfileClick,
1351
1351
  actions: e.actions
1352
- }) : /* @__PURE__ */ Y(Te, {
1352
+ }) : /* @__PURE__ */ Y(Oe, {
1353
1353
  name: t,
1354
1354
  profileHref: i
1355
1355
  })
@@ -1383,13 +1383,13 @@ var sr = U(({ label: e, ...t }, n) => /* @__PURE__ */ Y("button", {
1383
1383
  }));
1384
1384
  sr.displayName = "RequisitionTrigger";
1385
1385
  function cr({ id: e, label: n }) {
1386
- let { entityRefs: r } = R(), i = r?.resolvers?.requisition, a = t(), o = r?.urls?.requisition?.(e), s = K(() => (e) => {
1386
+ let { entityRefs: r } = V(), i = r?.resolvers?.requisition, a = t(), o = r?.urls?.requisition?.(e), s = K(() => (e) => {
1387
1387
  let t = e.lineManager ? `${e.lineManager.firstName} ${e.lineManager.lastName}` : void 0, n = [
1388
1388
  e.status ? {
1389
1389
  label: a.t("ai.entityRef.requisition.status"),
1390
1390
  value: /* @__PURE__ */ Y("div", {
1391
1391
  className: "flex items-center pt-1",
1392
- children: /* @__PURE__ */ Y(gt, {
1392
+ children: /* @__PURE__ */ Y(At, {
1393
1393
  text: e.status,
1394
1394
  variant: e.statusVariant ?? "neutral"
1395
1395
  })
@@ -1399,7 +1399,7 @@ function cr({ id: e, label: n }) {
1399
1399
  label: a.t("ai.entityRef.requisition.lineManager"),
1400
1400
  value: /* @__PURE__ */ X("div", {
1401
1401
  className: "flex items-center gap-1.5 pt-1",
1402
- children: [/* @__PURE__ */ Y(ct, {
1402
+ children: [/* @__PURE__ */ Y(ft, {
1403
1403
  firstName: e.lineManager.firstName,
1404
1404
  lastName: e.lineManager.lastName,
1405
1405
  src: e.lineManager.avatarUrl,
@@ -1451,7 +1451,7 @@ var lr = U(({ label: e, ...t }, n) => /* @__PURE__ */ Y("button", {
1451
1451
  }));
1452
1452
  lr.displayName = "VacancyTrigger";
1453
1453
  function ur({ id: e, label: n }) {
1454
- let { entityRefs: r } = R(), i = r?.resolvers?.vacancy, a = t(), o = r?.urls?.vacancy?.(e), s = K(() => (e) => ({
1454
+ let { entityRefs: r } = V(), i = r?.resolvers?.vacancy, a = t(), o = r?.urls?.vacancy?.(e), s = K(() => (e) => ({
1455
1455
  title: e.name,
1456
1456
  description: [e.status, e.vacancyType].filter(Boolean).join(" · "),
1457
1457
  ...o && { secondaryActions: {
@@ -1499,7 +1499,7 @@ function mr(e) {
1499
1499
  return typeof e == "string" ? e : typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(mr).join("") : e && typeof e == "object" && "props" in e ? mr(e.props.children) : "";
1500
1500
  }
1501
1501
  function hr({ type: e, id: t, children: n }) {
1502
- let { entityRefs: r } = R();
1502
+ let { entityRefs: r } = V();
1503
1503
  if (!t || !e) return /* @__PURE__ */ Y("span", { children: n });
1504
1504
  let i = mr(n), a = fr(e);
1505
1505
  if (a) return /* @__PURE__ */ Y(a, {
@@ -1516,11 +1516,11 @@ function hr({ type: e, id: t, children: n }) {
1516
1516
  //#endregion
1517
1517
  //#region src/addons/ai/ai/F0AiChat/components/markdownRenderers/components/Table.tsx
1518
1518
  async function gr(e, t, n) {
1519
- let r = Je(e), i = t === "xlsx" ? await tt([{
1519
+ let r = Ze(e), i = t === "xlsx" ? await tt([{
1520
1520
  name: "Data",
1521
1521
  rows: r
1522
- }]) : await we(r);
1523
- ue(i, `${n}.${t}`);
1522
+ }]) : await Ee(r);
1523
+ pe(i, `${n}.${t}`);
1524
1524
  }
1525
1525
  function _r({ children: e, title: n, ...r }) {
1526
1526
  let a = t(), o = q(null), s = W((e) => {
@@ -1536,16 +1536,16 @@ function _r({ children: e, title: n, ...r }) {
1536
1536
  tag: "h2",
1537
1537
  className: "text-base font-medium capitalize text-f1-foreground",
1538
1538
  children: n ?? a.ai.reportCard.tableLabel
1539
- }), /* @__PURE__ */ Y(B, {
1540
- icon: I,
1539
+ }), /* @__PURE__ */ Y(ye, {
1540
+ icon: L,
1541
1541
  size: "md",
1542
1542
  items: [{
1543
1543
  label: a.t("ai.dataDownload.download", { format: "Excel" }),
1544
- icon: I,
1544
+ icon: L,
1545
1545
  onClick: () => s("xlsx")
1546
1546
  }, {
1547
1547
  label: a.t("ai.dataDownload.download", { format: "CSV" }),
1548
- icon: I,
1548
+ icon: L,
1549
1549
  onClick: () => s("csv")
1550
1550
  }]
1551
1551
  })]
@@ -1649,7 +1649,7 @@ var Er = {
1649
1649
  return i ? `${r}.${i}` : r;
1650
1650
  }
1651
1651
  let n = t.split("?")[1], r = n ? new URLSearchParams(n.split("#")[0]).get("path") : null;
1652
- return je(r ?? t) || e || "file";
1652
+ return Pe(r ?? t) || e || "file";
1653
1653
  }, kr = (e, t) => e.startsWith("data:") ? e : `data:${t ?? "application/octet-stream"};base64,${e}`, Ar = (e, t) => {
1654
1654
  let n = Z(e.data), r = Z(e.url) ?? (n ? kr(n, t) : void 0);
1655
1655
  return r ? {
@@ -1687,17 +1687,17 @@ var Er = {
1687
1687
  if (n.length !== 0) return t === "user" ? n[n.length - 1] : n.join("\n\n");
1688
1688
  }, Ir = (e, { urlFor: t } = {}) => ({
1689
1689
  url: e.url ?? t?.(e.path) ?? e.path,
1690
- name: e.displayName || je(e.path),
1690
+ name: e.displayName || Pe(e.path),
1691
1691
  mimeType: e.mimeType,
1692
1692
  size: e.bytes,
1693
1693
  previewUrl: e.preview && t ? t(e.preview.path) : void 0
1694
- }), Lr = (e) => ve(e) ?? "", Rr = ({ avatar: e }) => e?.type === "module" ? /* @__PURE__ */ Y(st, {
1694
+ }), Lr = (e) => Se(e) ?? "", Rr = ({ avatar: e }) => e?.type === "module" ? /* @__PURE__ */ Y(pt, {
1695
1695
  module: e.module,
1696
1696
  size: "md"
1697
- }) : e?.type === "file" ? /* @__PURE__ */ Y(ot, {
1697
+ }) : e?.type === "file" ? /* @__PURE__ */ Y(ut, {
1698
1698
  file: e.file,
1699
1699
  size: "lg"
1700
- }) : e?.type === "icon" ? /* @__PURE__ */ Y(at, {
1700
+ }) : e?.type === "icon" ? /* @__PURE__ */ Y(dt, {
1701
1701
  icon: e.icon,
1702
1702
  size: "md"
1703
1703
  }) : null, zr = ({ action: e, isActive: n }) => {
@@ -1791,7 +1791,7 @@ function Yr(e) {
1791
1791
  return e && e.charAt(0).toUpperCase() + e.slice(1);
1792
1792
  }
1793
1793
  function Xr(e) {
1794
- let { days: t, hours: n, minutes: r, seconds: i } = Ae(e), a = [];
1794
+ let { days: t, hours: n, minutes: r, seconds: i } = Me(e), a = [];
1795
1795
  return t > 0 && a.push(`${t}d`), n > 0 && a.push(`${n}h`), r > 0 && a.push(`${r}m`), (i > 0 || a.length === 0) && a.push(`${i}s`), a.join(" ");
1796
1796
  }
1797
1797
  function Zr(e) {
@@ -1866,7 +1866,7 @@ function ei(e, t) {
1866
1866
  };
1867
1867
  }
1868
1868
  function ti({ formName: e, formDescription: t, module: n, cardTitle: r, cardDescription: i, fieldDescriptions: a, formValues: o, valueFormatter: s }) {
1869
- let { canvasContent: c, openCanvas: l, closeCanvas: u, dismissCanvas: d } = R(), f = Ur(e), p = s ?? f, m = q(() => {}), h = r ?? e, g = i ?? t ?? "", _ = c?.type === "form" && c.formName === e, v = () => l({
1869
+ let { canvasContent: c, openCanvas: l, closeCanvas: u, dismissCanvas: d } = V(), f = Ur(e), p = s ?? f, m = q(() => {}), h = r ?? e, g = i ?? t ?? "", _ = c?.type === "form" && c.formName === e, v = () => l({
1870
1870
  type: "form",
1871
1871
  title: h,
1872
1872
  description: g,
@@ -1910,7 +1910,7 @@ function ti({ formName: e, formDescription: t, module: n, cardTitle: r, cardDesc
1910
1910
  },
1911
1911
  children: b.length > 0 && !_ ? /* @__PURE__ */ Y("div", {
1912
1912
  className: "-mx-3 flex w-full flex-col overflow-hidden pb-1",
1913
- children: /* @__PURE__ */ Y(qe, {
1913
+ children: /* @__PURE__ */ Y(Xe, {
1914
1914
  details: b.map((e) => ({
1915
1915
  title: e.label,
1916
1916
  content: e.content,
@@ -1946,10 +1946,10 @@ function ni() {
1946
1946
  //#endregion
1947
1947
  //#region src/addons/ai/ai/F0AiFileAttachments/F0AiFileAttachments.tsx
1948
1948
  var ri = "rounded-xl", ii = "ai-chat", ai = (e) => {
1949
- let { provided: t } = V();
1950
- return t ? /* @__PURE__ */ Y(oi, { ...e }) : /* @__PURE__ */ Y(Ke, { children: /* @__PURE__ */ Y(oi, { ...e }) });
1949
+ let { provided: t } = He();
1950
+ return t ? /* @__PURE__ */ Y(oi, { ...e }) : /* @__PURE__ */ Y(Ye, { children: /* @__PURE__ */ Y(oi, { ...e }) });
1951
1951
  }, oi = ({ files: e, align: t = "start", onOpenFile: n, onFileDownloaded: r, size: i = "default" }) => {
1952
- let { remotePreviews: a } = V(), { openImagePreview: o } = b(), [s, c] = J(() => /* @__PURE__ */ new Set()), l = K(() => si(e, a, s), [
1952
+ let { remotePreviews: a } = He(), { openImagePreview: o } = ae(), [s, c] = J(() => /* @__PURE__ */ new Set()), l = K(() => si(e, a, s), [
1953
1953
  e,
1954
1954
  a,
1955
1955
  s
@@ -1962,13 +1962,13 @@ var ri = "rounded-xl", ii = "ai-chat", ai = (e) => {
1962
1962
  onOpenFile: n,
1963
1963
  onFileDownloaded: r,
1964
1964
  openImage: (e, t) => {
1965
- n?.(e, "image") !== !1 && o(l.images.map(Ce), t);
1965
+ n?.(e, "image") !== !1 && o(l.images.map(Te), t);
1966
1966
  },
1967
1967
  onImageError: (e) => c((t) => new Set(t).add(e.url))
1968
1968
  };
1969
1969
  return Y(i === "compact" ? ui : li, { ...u });
1970
1970
  }, si = (e, t, n) => {
1971
- let r = (e) => t || _(e.url), i = ye(e.filter(r)), a = /* @__PURE__ */ new Set([
1971
+ let r = (e) => t || b(e.url), i = Ce(e.filter(r)), a = /* @__PURE__ */ new Set([
1972
1972
  ...e.filter((e) => !r(e)),
1973
1973
  ...i.images.filter((e) => n.has(e.url)),
1974
1974
  ...i.audios,
@@ -1996,14 +1996,14 @@ var ri = "rounded-xl", ii = "ai-chat", ai = (e) => {
1996
1996
  },
1997
1997
  onImageError: o
1998
1998
  }) : null,
1999
- t.map((e, t) => /* @__PURE__ */ Y(ge, {
2000
- file: Be(e),
1999
+ t.map((e, t) => /* @__PURE__ */ Y(be, {
2000
+ file: Ge(e),
2001
2001
  cornerClass: "rounded-xl",
2002
2002
  testIdPrefix: ii,
2003
2003
  onDownloaded: () => c?.(e)
2004
2004
  }, `${e.name}-${t}`)),
2005
- n.map(({ file: e, kind: t }, n) => /* @__PURE__ */ Y(E, {
2006
- file: Be(e),
2005
+ n.map(({ file: e, kind: t }, n) => /* @__PURE__ */ Y(O, {
2006
+ file: Ge(e),
2007
2007
  kind: t,
2008
2008
  cornerClass: "rounded-xl",
2009
2009
  testIdPrefix: ii,
@@ -2028,8 +2028,8 @@ var ri = "rounded-xl", ii = "ai-chat", ai = (e) => {
2028
2028
  className: i("flex max-w-full flex-wrap gap-1", o === "end" ? "justify-end" : "justify-start"),
2029
2029
  children: f.map((e, n) => {
2030
2030
  let r = d.get(e);
2031
- return r ? /* @__PURE__ */ Y(E, {
2032
- file: Be(e),
2031
+ return r ? /* @__PURE__ */ Y(O, {
2032
+ file: Ge(e),
2033
2033
  kind: r,
2034
2034
  cornerClass: "rounded-lg",
2035
2035
  compact: !0,
@@ -2050,7 +2050,7 @@ var ri = "rounded-xl", ii = "ai-chat", ai = (e) => {
2050
2050
  })]
2051
2051
  });
2052
2052
  }, di = ({ files: e, align: t, onFileDownloaded: n }) => {
2053
- let r = ae();
2053
+ let r = $e();
2054
2054
  return e.length === 0 ? null : /* @__PURE__ */ Y("div", {
2055
2055
  className: i("flex max-w-full flex-wrap gap-1.5", t === "end" ? "justify-end" : "justify-start"),
2056
2056
  children: e.map((e, t) => /* @__PURE__ */ Y(pi, {
@@ -2061,15 +2061,15 @@ var ri = "rounded-xl", ii = "ai-chat", ai = (e) => {
2061
2061
  }, `${e.name}-${t}`))
2062
2062
  });
2063
2063
  }, fi = ({ file: e, onOpen: n, onError: r }) => {
2064
- let o = t(), s = C(e.thumbnailUrl ?? e.url);
2065
- return T(s.status, r), /* @__PURE__ */ Y("button", {
2064
+ let o = t(), s = D(e.thumbnailUrl ?? e.url);
2065
+ return se(s.status, r), /* @__PURE__ */ Y("button", {
2066
2066
  type: "button",
2067
2067
  onClick: n,
2068
2068
  draggable: !1,
2069
2069
  "aria-label": o.t("chat.openNamedDocument", { name: e.name }),
2070
2070
  className: i("relative box-border h-16 w-16 shrink-0 overflow-hidden rounded-lg border border-solid border-f1-border-secondary bg-f1-background-secondary p-0 transition-opacity hover:opacity-90", a()),
2071
2071
  "data-testid": "ai-chat-image-attachment",
2072
- children: s.status === "ready" ? /* @__PURE__ */ Y(Qe, {
2072
+ children: s.status === "ready" ? /* @__PURE__ */ Y(ge, {
2073
2073
  src: s.url,
2074
2074
  alt: e.name,
2075
2075
  draggable: !1,
@@ -2079,7 +2079,7 @@ var ri = "rounded-xl", ii = "ai-chat", ai = (e) => {
2079
2079
  });
2080
2080
  }, pi = ({ file: e, onDownload: n }) => {
2081
2081
  let r = t();
2082
- return /* @__PURE__ */ Y(ne, {
2082
+ return /* @__PURE__ */ Y(z, {
2083
2083
  file: {
2084
2084
  name: e.name,
2085
2085
  type: Lr(e)
@@ -2087,22 +2087,22 @@ var ri = "rounded-xl", ii = "ai-chat", ai = (e) => {
2087
2087
  size: "lg",
2088
2088
  actions: [{
2089
2089
  label: r.t("chat.downloadNamedFile", { name: e.name }),
2090
- icon: I,
2090
+ icon: L,
2091
2091
  onClick: n
2092
2092
  }]
2093
2093
  });
2094
2094
  }, mi = ({ images: e, onOpen: n, onImageError: r }) => {
2095
- let a = t(), o = e.length === 1 ? e[0] : void 0, s = C(o ? o.thumbnailUrl ?? o.url : void 0), c = pe(o && s.status === "ready" ? s.url : void 0, o) ?? void 0, l = o ? De(c?.width, c?.height) : null;
2095
+ let a = t(), o = e.length === 1 ? e[0] : void 0, s = D(o ? o.thumbnailUrl ?? o.url : void 0), c = _e(o && s.status === "ready" ? s.url : void 0, o) ?? void 0, l = o ? Ae(c?.width, c?.height) : null;
2096
2096
  return /* @__PURE__ */ Y("div", {
2097
2097
  style: l ? { width: l.width } : void 0,
2098
- className: i("grid grid-cols-2 overflow-hidden border border-solid border-f1-border-secondary", l ? "max-w-full" : te, g, ri),
2098
+ className: i("grid grid-cols-2 overflow-hidden border border-solid border-f1-border-secondary", l ? "max-w-full" : R, v, ri),
2099
2099
  "data-testid": "ai-chat-image-album",
2100
- children: We(c ? [c] : e).map((t, o, s) => {
2100
+ children: qe(c ? [c] : e).map((t, o, s) => {
2101
2101
  let c = e[t.index];
2102
2102
  if (!c) return null;
2103
2103
  let l = o === s.length - 1;
2104
- return /* @__PURE__ */ Y(Fe, {
2105
- image: Ce(c),
2104
+ return /* @__PURE__ */ Y(Re, {
2105
+ image: Te(c),
2106
2106
  aspectRatio: t.aspectRatio,
2107
2107
  spanFull: t.span === 2,
2108
2108
  inset: t.inset,
@@ -2118,7 +2118,7 @@ var ri = "rounded-xl", ii = "ai-chat", ai = (e) => {
2118
2118
  testIdPrefix: ii,
2119
2119
  overlay: t.hiddenCount > 0 ? /* @__PURE__ */ Y("span", {
2120
2120
  "aria-hidden": !0,
2121
- className: i("absolute inset-0 flex items-center justify-center text-2xl font-semibold text-f1-foreground-inverse", Me),
2121
+ className: i("absolute inset-0 flex items-center justify-center text-2xl font-semibold text-f1-foreground-inverse", Fe),
2122
2122
  "data-testid": "ai-chat-image-album-more",
2123
2123
  children: `+${t.hiddenCount}`
2124
2124
  }) : void 0
@@ -2197,7 +2197,7 @@ function xi({ anchor: e, onReply: n }) {
2197
2197
  type: "button",
2198
2198
  variant: "ghost",
2199
2199
  label: c,
2200
- icon: $e,
2200
+ icon: C,
2201
2201
  onClick: () => {
2202
2202
  n(e.text);
2203
2203
  }
@@ -2206,7 +2206,7 @@ function xi({ anchor: e, onReply: n }) {
2206
2206
  }
2207
2207
  //#endregion
2208
2208
  //#region src/addons/ai/ai/F0AiMessagesContainer/components/AssistantMessage.tsx
2209
- var Si = Bt(void 0), Ci = () => Ut(Si), wi = (e) => /* @__PURE__ */ Y(Ze, {
2209
+ var Si = Bt(void 0), Ci = () => Ut(Si), wi = (e) => /* @__PURE__ */ Y(Qe, {
2210
2210
  content: e,
2211
2211
  format: "markdown"
2212
2212
  }), Ti = ({ isGenerating: e, isLoading: t, message: n, renderToolCall: r, onReplyQuote: i, onRendered: a, renderMarkdown: o }) => {
@@ -2268,7 +2268,7 @@ var Si = Bt(void 0), Ci = () => Ut(Si), wi = (e) => /* @__PURE__ */ Y(Ze, {
2268
2268
  return document.addEventListener("keydown", e), () => {
2269
2269
  document.removeEventListener("keydown", e);
2270
2270
  };
2271
- }, [d]), /* @__PURE__ */ Y(_e, {
2271
+ }, [d]), /* @__PURE__ */ Y(xe, {
2272
2272
  position: "center",
2273
2273
  isOpen: !0,
2274
2274
  onClose: f,
@@ -2285,7 +2285,7 @@ var Si = Bt(void 0), Ci = () => Ut(Si), wi = (e) => /* @__PURE__ */ Y(Ze, {
2285
2285
  },
2286
2286
  children: /* @__PURE__ */ Y("div", {
2287
2287
  className: "flex flex-col gap-6",
2288
- children: /* @__PURE__ */ Y(re, {
2288
+ children: /* @__PURE__ */ Y(B, {
2289
2289
  autoFocus: !0,
2290
2290
  label: l,
2291
2291
  placeholder: u,
@@ -2350,7 +2350,7 @@ var ji = ({ content: e, targetMessage: n, onCopy: r }) => {
2350
2350
  return /* @__PURE__ */ X("div", {
2351
2351
  className: "flex",
2352
2352
  children: [
2353
- /* @__PURE__ */ Y(fe, {
2353
+ /* @__PURE__ */ Y(he, {
2354
2354
  size: "md",
2355
2355
  variant: "ghost",
2356
2356
  valueToCopy: e,
@@ -2371,7 +2371,7 @@ var ji = ({ content: e, targetMessage: n, onCopy: r }) => {
2371
2371
  className: "flex min-w-0 flex-1 items-center justify-center gap-1",
2372
2372
  children: /* @__PURE__ */ Y(H, {
2373
2373
  size: "md",
2374
- icon: o === "like" ? ke : me,
2374
+ icon: o === "like" ? Je : je,
2375
2375
  color: "default"
2376
2376
  })
2377
2377
  })
@@ -2389,7 +2389,7 @@ var ji = ({ content: e, targetMessage: n, onCopy: r }) => {
2389
2389
  className: "flex min-w-0 flex-1 items-center justify-center gap-1",
2390
2390
  children: /* @__PURE__ */ Y(H, {
2391
2391
  size: "md",
2392
- icon: o === "dislike" ? ze : Ge,
2392
+ icon: o === "dislike" ? ve : Ue,
2393
2393
  color: "default"
2394
2394
  })
2395
2395
  })
@@ -2414,13 +2414,13 @@ var ji = ({ content: e, targetMessage: n, onCopy: r }) => {
2414
2414
  ])
2415
2415
  }), Ni = ({ icon: e, title: t, children: n, open: r, defaultOpen: a = !1, onOpenChange: o, lockOpen: s = !1 }) => {
2416
2416
  let [u, d] = J(a), f = l(), p = r !== void 0, m = p ? r : u;
2417
- return /* @__PURE__ */ X(Ue, {
2417
+ return /* @__PURE__ */ X(Ke, {
2418
2418
  className: "mb-1 w-full",
2419
2419
  open: m,
2420
2420
  onOpenChange: (e) => {
2421
2421
  s || (p || d(e), o?.(e));
2422
2422
  },
2423
- children: [/* @__PURE__ */ X(le, {
2423
+ children: [/* @__PURE__ */ X(fe, {
2424
2424
  disabled: s,
2425
2425
  className: i("gap-1", s ? "flex w-full items-center text-base text-f1-foreground-secondary" : "flex w-full items-center text-base text-f1-foreground-secondary transition-colors duration-150 hover:text-f1-foreground [&[data-state=open]>svg]:rotate-90"),
2426
2426
  children: [
@@ -2435,9 +2435,9 @@ var ji = ({ content: e, targetMessage: n, onCopy: r }) => {
2435
2435
  className: "min-h-6 flex items-center",
2436
2436
  children: /* @__PURE__ */ Y("span", { children: t })
2437
2437
  }),
2438
- s ? null : /* @__PURE__ */ Y(H, { icon: xt })
2438
+ s ? null : /* @__PURE__ */ Y(H, { icon: Mt })
2439
2439
  ]
2440
- }), /* @__PURE__ */ Y(j, {
2440
+ }), /* @__PURE__ */ Y(M, {
2441
2441
  forceMount: !0,
2442
2442
  className: "data-[state=open]:mt-3",
2443
2443
  children: /* @__PURE__ */ Y(c.div, {
@@ -2493,7 +2493,7 @@ var ji = ({ content: e, targetMessage: n, onCopy: r }) => {
2493
2493
  }, [r, s]);
2494
2494
  let u = r ? o.ai.thoughtsGroupTitle : n ?? o.ai.thoughtsGroupTitle, d = e.length - 1, f = (e) => !r || i ? "completed" : e === d ? "executing" : "completed";
2495
2495
  return /* @__PURE__ */ Y(Ni, {
2496
- icon: he,
2496
+ icon: Ne,
2497
2497
  title: u,
2498
2498
  open: s,
2499
2499
  onOpenChange: c,
@@ -2502,7 +2502,7 @@ var ji = ({ content: e, targetMessage: n, onCopy: r }) => {
2502
2502
  className: "flex flex-col gap-3 pb-4",
2503
2503
  children: e.map((t, n) => /* @__PURE__ */ X("div", {
2504
2504
  className: "relative",
2505
- children: [/* @__PURE__ */ Y(N, {
2505
+ children: [/* @__PURE__ */ Y(I, {
2506
2506
  title: t,
2507
2507
  status: f(n),
2508
2508
  suffix: f(n) === "executing" ? /* @__PURE__ */ Y(Ii, { startedAt: a }) : void 0,
@@ -2514,14 +2514,14 @@ var ji = ({ content: e, targetMessage: n, onCopy: r }) => {
2514
2514
  }, n))
2515
2515
  })
2516
2516
  });
2517
- }, Ri = (e) => /* @__PURE__ */ Y(Ze, {
2517
+ }, Ri = (e) => /* @__PURE__ */ Y(Qe, {
2518
2518
  content: e,
2519
2519
  format: "markdown"
2520
2520
  }), zi = ({ text: e, renderMarkdown: t }) => /* @__PURE__ */ X("div", {
2521
2521
  className: "flex max-w-[90%] items-start gap-2 self-end pb-1 pr-2 text-f1-foreground-tertiary",
2522
2522
  children: [/* @__PURE__ */ Y("div", {
2523
2523
  className: "flex h-5 items-center",
2524
- children: /* @__PURE__ */ Y(H, { icon: ie })
2524
+ children: /* @__PURE__ */ Y(H, { icon: et })
2525
2525
  }), /* @__PURE__ */ Y("div", {
2526
2526
  className: "min-w-0 whitespace-pre-wrap text-base leading-5 [&>div]:flex [&>div]:flex-col [&>div]:gap-1 [&_p]:m-0",
2527
2527
  children: (t ?? Ri)(e)
@@ -2776,28 +2776,28 @@ var aa = {
2776
2776
  onThumbsUp: () => {},
2777
2777
  onThumbsDown: () => {}
2778
2778
  }, oa = (e) => {
2779
- let t = V(), n = /* @__PURE__ */ Y(Oi, { children: /* @__PURE__ */ Y(sa, { ...e }) });
2780
- return e.filePreviews || !t.provided ? /* @__PURE__ */ Y(Ke, {
2779
+ let t = He(), n = /* @__PURE__ */ Y(Oi, { children: /* @__PURE__ */ Y(sa, { ...e }) });
2780
+ return e.filePreviews || !t.provided ? /* @__PURE__ */ Y(Ye, {
2781
2781
  filePreviews: e.filePreviews,
2782
2782
  children: n
2783
2783
  }) : n;
2784
2784
  }, sa = ({ turns: e, isLoadingThread: n = !1, interrupt: r, initialMessage: a, initialMessageCaption: o, initialMessageSubtitle: s, initialMessageCta: l, onWelcomeClick: d, renderToolCall: f, onReplyQuote: m, onAssistantMessageRendered: h, autoScrollUserIntoView: g = !0, renderMarkdown: _, feedback: v, freezeLayout: y = !1, noShadows: b = !1, fullscreen: x = !1, children: S, AssistantMessage: C, UserMessage: w, onRegenerate: T, onCopy: E }) => {
2785
- let { modal: D, handleSubmit: O, handleClose: k } = Ai(v ?? aa), A = t(), j = C ?? Ti, M = w ?? Bi, P = K(() => {
2785
+ let { modal: D, handleSubmit: O, handleClose: k } = Ai(v ?? aa), A = t(), j = C ?? Ti, M = w ?? Bi, N = K(() => {
2786
2786
  let e = a ?? A.ai.defaultInitialMessage;
2787
2787
  return (Array.isArray(e) ? e : [e]).filter((e) => typeof e == "string" && e.length > 0);
2788
- }, [a, A.ai.defaultInitialMessage]), F = !n && e.length === 0 && P.length > 0, I = q(null), ee = q(null), te = q(null), ne = q(null), L = q(null), { showScrollBtn: re, turnMinHeight: R, scrollToBottom: z } = ia({
2789
- viewportRef: I,
2790
- contentRef: ee,
2791
- endRef: te,
2792
- lastTurnRef: L,
2788
+ }, [a, A.ai.defaultInitialMessage]), P = !n && e.length === 0 && N.length > 0, F = q(null), L = q(null), ee = q(null), te = q(null), R = q(null), { showScrollBtn: ne, turnMinHeight: z, scrollToBottom: re } = ia({
2789
+ viewportRef: F,
2790
+ contentRef: L,
2791
+ endRef: ee,
2792
+ lastTurnRef: R,
2793
2793
  turnsCount: e.length,
2794
2794
  freezeTurnMinHeight: y
2795
2795
  });
2796
2796
  na({
2797
- viewportRef: I,
2798
- contentRef: ee
2797
+ viewportRef: F,
2798
+ contentRef: L
2799
2799
  });
2800
- let B = e[e.length - 1], ie = ra(!(!B || B.endIndicator !== "thinking" && !B.thinking?.inProgress), B?.thinking?.startedAt), ae = B?.endIndicator === "asking", oe = (t, n) => {
2800
+ let B = e[e.length - 1], ie = ra(!(!B || B.endIndicator !== "thinking" && !B.thinking?.inProgress), B?.thinking?.startedAt), V = B?.endIndicator === "asking", ae = (t, n) => {
2801
2801
  let r = n === e.length - 1, a = {
2802
2802
  renderToolCall: f,
2803
2803
  onReplyQuote: m,
@@ -2838,10 +2838,10 @@ var aa = {
2838
2838
  }, `${n}-a-${i}`);
2839
2839
  };
2840
2840
  return /* @__PURE__ */ X("div", {
2841
- ref: r ? L : void 0,
2841
+ ref: r ? R : void 0,
2842
2842
  className: i("flex flex-col items-start justify-start gap-2 px-1", r && "pb-5"),
2843
2843
  [Qi]: n,
2844
- style: { minHeight: r && R || void 0 },
2844
+ style: { minHeight: r && z || void 0 },
2845
2845
  children: [
2846
2846
  t.userMessages.map((e, t) => o(e, t)),
2847
2847
  t.thinking && t.thinking.titles.length > 0 ? /* @__PURE__ */ Y(Li, {
@@ -2852,13 +2852,13 @@ var aa = {
2852
2852
  startedAt: r ? ie : null
2853
2853
  }) : null,
2854
2854
  t.assistantMessages.map((e, t) => s(e, t)),
2855
- t.endIndicator === "thinking" ? /* @__PURE__ */ Y(N, {
2855
+ t.endIndicator === "thinking" ? /* @__PURE__ */ Y(I, {
2856
2856
  title: A.ai.thinking,
2857
2857
  status: "executing",
2858
2858
  suffix: /* @__PURE__ */ Y(Ii, { startedAt: ie })
2859
2859
  }) : null,
2860
- t.endIndicator === "activity" ? /* @__PURE__ */ Y(N, { status: "writing" }) : null,
2861
- t.endIndicator === "asking" ? /* @__PURE__ */ Y(N, {
2860
+ t.endIndicator === "activity" ? /* @__PURE__ */ Y(I, { status: "writing" }) : null,
2861
+ t.endIndicator === "asking" ? /* @__PURE__ */ Y(I, {
2862
2862
  title: A.ai.askingQuestions,
2863
2863
  status: "asking"
2864
2864
  }) : null,
@@ -2877,42 +2877,42 @@ var aa = {
2877
2877
  /* @__PURE__ */ Y("div", {
2878
2878
  role: "status",
2879
2879
  className: "sr-only",
2880
- children: ae ? A.ai.askingQuestions : ""
2880
+ children: V ? A.ai.askingQuestions : ""
2881
2881
  }),
2882
2882
  /* @__PURE__ */ Y("div", {
2883
- ref: I,
2883
+ ref: F,
2884
2884
  className: i("flex-1 overflow-y-scroll [overflow-anchor:none]", "[scrollbar-width:thin] [scrollbar-color:transparent_transparent]", "hover:[scrollbar-color:var(--scrollbar-thumb)_transparent]", "[&::-webkit-scrollbar]:w-1 [&::-webkit-scrollbar-track]:bg-transparent", "[&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-transparent", "hover:[&::-webkit-scrollbar-thumb]:bg-f1-background-inverse/30"),
2885
2885
  children: /* @__PURE__ */ X("div", {
2886
- ref: ee,
2886
+ ref: L,
2887
2887
  className: "flex min-h-full flex-col items-center px-4 pb-[calc(1rem+var(--f0-ai-composer-overlap,0px))] pt-4",
2888
2888
  children: [
2889
2889
  /* @__PURE__ */ X("div", {
2890
- className: i(F ? "flex flex-1" : "flex flex-col gap-6", "w-full max-w-content"),
2890
+ className: i(P ? "flex flex-1" : "flex flex-col gap-6", "w-full max-w-content"),
2891
2891
  children: [
2892
2892
  n ? /* @__PURE__ */ Y(la, {}) : null,
2893
- F ? /* @__PURE__ */ Y(qi, {
2894
- messages: P,
2893
+ P ? /* @__PURE__ */ Y(qi, {
2894
+ messages: N,
2895
2895
  caption: o,
2896
2896
  subtitle: s,
2897
2897
  cta: l,
2898
2898
  onClick: d,
2899
2899
  fullscreen: x
2900
2900
  }) : null,
2901
- n ? null : e.map((e, t) => oe(e, t)),
2901
+ n ? null : e.map((e, t) => ae(e, t)),
2902
2902
  r
2903
2903
  ]
2904
2904
  }),
2905
2905
  /* @__PURE__ */ Y("div", {
2906
- ref: ne,
2906
+ ref: te,
2907
2907
  className: "h-px shrink-0",
2908
2908
  "aria-hidden": !0
2909
2909
  }),
2910
2910
  /* @__PURE__ */ Y("footer", {
2911
2911
  className: "copilotKitMessagesFooter",
2912
- ref: te,
2912
+ ref: ee,
2913
2913
  children: S
2914
2914
  }),
2915
- /* @__PURE__ */ Y(p, { children: re ? /* @__PURE__ */ Y(c.div, {
2915
+ /* @__PURE__ */ Y(p, { children: ne ? /* @__PURE__ */ Y(c.div, {
2916
2916
  className: "sticky bottom-[calc(0.5rem+var(--f0-ai-composer-overlap,0px))] z-10 flex justify-center",
2917
2917
  initial: {
2918
2918
  opacity: 0,
@@ -2928,17 +2928,17 @@ var aa = {
2928
2928
  },
2929
2929
  transition: { duration: .2 },
2930
2930
  children: /* @__PURE__ */ Y(u, {
2931
- onClick: () => z(),
2931
+ onClick: () => re(),
2932
2932
  label: A.ai.scrollToBottom,
2933
2933
  variant: "neutral",
2934
- icon: Dt,
2934
+ icon: _t,
2935
2935
  hideLabel: !0
2936
2936
  })
2937
2937
  }) : null })
2938
2938
  ]
2939
2939
  })
2940
2940
  }),
2941
- !b && !F ? /* @__PURE__ */ Y(Mi, { position: "top" }, "shadow-top") : null
2941
+ !b && !P ? /* @__PURE__ */ Y(Mi, { position: "top" }, "shadow-top") : null
2942
2942
  ]
2943
2943
  }), D.isOpen ? /* @__PURE__ */ Y(Ei, {
2944
2944
  onSubmit: O,
@@ -2975,7 +2975,7 @@ function pa() {
2975
2975
  //#endregion
2976
2976
  //#region src/addons/ai/ai/F0AiChat/providers/useCanvasEntities.ts
2977
2977
  function ma() {
2978
- let { canvasEntities: e } = R();
2978
+ let { canvasEntities: e } = V();
2979
2979
  return e;
2980
2980
  }
2981
2981
  //#endregion
@@ -3019,7 +3019,7 @@ var ga = ({ canProceed: e, submitDisabled: n, label: r, onConfirm: i, onSkip: a,
3019
3019
  let t = Math.min(e.scrollHeight, va);
3020
3020
  e.style.height = `${t}px`, e.style.overflowY = e.scrollHeight > va ? "auto" : "hidden";
3021
3021
  }, [a]);
3022
- let g = e === "single" ? /* @__PURE__ */ Y(_a, { isSelected: r && !n }) : /* @__PURE__ */ Y(wt, {
3022
+ let g = e === "single" ? /* @__PURE__ */ Y(_a, { isSelected: r && !n }) : /* @__PURE__ */ Y(Tt, {
3023
3023
  checked: o,
3024
3024
  onCheckedChange: () => d(!o),
3025
3025
  title: p,
@@ -3058,7 +3058,7 @@ var ga = ({ canProceed: e, submitDisabled: n, label: r, onConfirm: i, onSkip: a,
3058
3058
  }) : /* @__PURE__ */ X("div", {
3059
3059
  ref: c,
3060
3060
  className: i("flex cursor-pointer items-center rounded-md pl-2 transition-[background-color,transform] hover:bg-f1-background-secondary active:scale-[0.99]"),
3061
- children: [/* @__PURE__ */ Y(wt, {
3061
+ children: [/* @__PURE__ */ Y(Tt, {
3062
3062
  checked: t,
3063
3063
  onCheckedChange: () => o(e.id),
3064
3064
  title: e.label,
@@ -3179,7 +3179,7 @@ var xa = [
3179
3179
  disabled: r,
3180
3180
  label: l.ai.clarifyingQuestion.back,
3181
3181
  hideLabel: !0,
3182
- icon: _t
3182
+ icon: yt
3183
3183
  }),
3184
3184
  /* @__PURE__ */ Y("span", {
3185
3185
  className: "translate-y-px text-sm font-semibold text-f1-foreground-tertiary",
@@ -3193,7 +3193,7 @@ var xa = [
3193
3193
  disabled: i || !a,
3194
3194
  label: l.ai.clarifyingQuestion.next,
3195
3195
  hideLabel: !0,
3196
- icon: xt
3196
+ icon: Mt
3197
3197
  })
3198
3198
  ]
3199
3199
  }) : null,
@@ -3204,7 +3204,7 @@ var xa = [
3204
3204
  onClick: c,
3205
3205
  label: l.actions.cancel,
3206
3206
  hideLabel: !0,
3207
- icon: z
3207
+ icon: F
3208
3208
  })
3209
3209
  ]
3210
3210
  });
@@ -3215,23 +3215,23 @@ var xa = [
3215
3215
  let r = t(), i = l(), { currentStep: a, currentStepIndex: o, totalSteps: s, toggleOption: u, confirm: d, skip: f, cancel: m, back: h, setCustomAnswerText: g, setCustomAnswerActive: _, activateCustomAnswer: v } = e, { question: y, options: b, selectedOptionIds: x, selectionMode: S, optional: C, allowCustomAnswer: w, customAnswerText: T, isCustomAnswerActive: E } = a, D = q(null), O = S ?? "single", k = s > 1, A = o === 0, j = o === s - 1, M = k ? r.t("ai.clarifyingQuestion.stepOf", {
3216
3216
  current: String(o + 1),
3217
3217
  total: String(s)
3218
- }) : void 0, N = x.length > 0, P = (T ?? "").trim().length > 0, F = N || E && P || C === !0, I = n === !0 && j, ee = () => {
3218
+ }) : void 0, N = x.length > 0, P = (T ?? "").trim().length > 0, F = N || E && P || C === !0, I = n === !0 && j, L = () => {
3219
3219
  I || d();
3220
- }, te = () => {
3220
+ }, ee = () => {
3221
3221
  I || f();
3222
- }, ne = (e) => {
3222
+ }, te = (e) => {
3223
3223
  let t = O === "single" && x.includes(e);
3224
3224
  u(e), O === "single" && !j && !t && Promise.resolve().then(d);
3225
- }, L = j ? r.ai.clarifyingQuestion.submit : r.ai.clarifyingQuestion.next, re = C === !0 && !N && !(E && P), R = () => {
3225
+ }, R = j ? r.ai.clarifyingQuestion.submit : r.ai.clarifyingQuestion.next, ne = C === !0 && !N && !(E && P), z = () => {
3226
3226
  v(), requestAnimationFrame(() => {
3227
3227
  D.current?.focus();
3228
3228
  });
3229
- }, z = (e) => {
3229
+ }, re = (e) => {
3230
3230
  e.key === "Escape" && (e.preventDefault(), m());
3231
3231
  }, B = i ? 0 : Oa, ie = i ? 0 : ka;
3232
3232
  return /* @__PURE__ */ X("div", {
3233
3233
  className: "flex flex-col",
3234
- onKeyDown: z,
3234
+ onKeyDown: re,
3235
3235
  children: [/* @__PURE__ */ Y("div", {
3236
3236
  className: "flex flex-col gap-3 pt-3",
3237
3237
  children: /* @__PURE__ */ Y(p, {
@@ -3275,21 +3275,21 @@ var xa = [
3275
3275
  isCustomAnswerActive: E,
3276
3276
  canProceed: F,
3277
3277
  customInputRef: D,
3278
- onToggleOption: ne,
3279
- onActivateCustom: R,
3278
+ onToggleOption: te,
3279
+ onActivateCustom: z,
3280
3280
  onChangeCustomText: g,
3281
3281
  onToggleCustomActive: _,
3282
- onConfirm: ee
3282
+ onConfirm: L
3283
3283
  })]
3284
3284
  }, o)
3285
3285
  })
3286
3286
  }), /* @__PURE__ */ Y(ga, {
3287
3287
  canProceed: F,
3288
3288
  submitDisabled: I,
3289
- label: L,
3290
- onConfirm: ee,
3291
- onSkip: te,
3292
- showSkip: re
3289
+ label: R,
3290
+ onConfirm: L,
3291
+ onSkip: ee,
3292
+ showSkip: ne
3293
3293
  })]
3294
3294
  });
3295
3295
  };
@@ -3615,13 +3615,13 @@ var za = class {
3615
3615
  repeatType: "mirror"
3616
3616
  };
3617
3617
  function Ka(e) {
3618
- let [t, n] = J(e), r = Ee(e), i = q(null);
3618
+ let [t, n] = J(e), r = Be(e), i = q(null);
3619
3619
  return Xt(r, "change", (e) => n(e)), {
3620
3620
  value: t,
3621
3621
  motionValue: r,
3622
3622
  controls: i,
3623
3623
  animate: W((e, t) => {
3624
- i.current = Le(r, e, t);
3624
+ i.current = We(r, e, t);
3625
3625
  }, [r])
3626
3626
  };
3627
3627
  }
@@ -3952,12 +3952,12 @@ function Co({ fs: e, vs: t = Za, textures: n = [], uniforms: r, clearColor: i =
3952
3952
  n.deleteShader(r), d?.($(`Shader compiler log: ${e}`));
3953
3953
  }
3954
3954
  return r;
3955
- }, ee = (e, t) => {
3955
+ }, L = (e, t) => {
3956
3956
  let n = m.current;
3957
3957
  if (!n) return;
3958
3958
  let r = I(n.FRAGMENT_SHADER, e), i = I(n.VERTEX_SHADER, t);
3959
3959
  g.current = n.createProgram(), g.current && i && r && (n.attachShader(g.current, i), n.attachShader(g.current, r), n.linkProgram(g.current), n.getProgramParameter(g.current, n.LINK_STATUS) ? (n.useProgram(g.current), _.current = n.getAttribLocation(g.current, "aVertexPosition"), n.enableVertexAttribArray(_.current)) : d?.($(`Unable to initialize the shader program: ${n.getProgramInfoLog(g.current)}`)));
3960
- }, te = () => {
3960
+ }, ee = () => {
3961
3961
  if (r) for (let e of Object.keys(r)) {
3962
3962
  let t = r[e];
3963
3963
  if (!t) continue;
@@ -3971,7 +3971,7 @@ function Co({ fs: e, vs: t = Za, textures: n = [], uniforms: r, clearColor: i =
3971
3971
  ...o ? { arraySize: o } : {}
3972
3972
  };
3973
3973
  }
3974
- }, ne = () => {
3974
+ }, te = () => {
3975
3975
  let e = m.current;
3976
3976
  if (e) {
3977
3977
  if (n && n.length > 0) {
@@ -3992,7 +3992,7 @@ function Co({ fs: e, vs: t = Za, textures: n = [], uniforms: r, clearColor: i =
3992
3992
  });
3993
3993
  } else u && u();
3994
3994
  }
3995
- }, L = (e) => {
3995
+ }, R = (e) => {
3996
3996
  let t = Ja.includes(a ?? "highp"), n = `precision ${t ? a : Ja[1]} float;\n`;
3997
3997
  t || f?.($(`wrong precision type ${a}, please make sure to pass one of a valid precision lowp, mediump, highp, by default you shader precision will be set to highp.`));
3998
3998
  let r = n.concat(`#define DPR ${l.toFixed(1)}\n`).concat(e.replace(/texture\(/g, "texture2D("));
@@ -4002,7 +4002,7 @@ function Co({ fs: e, vs: t = Za, textures: n = [], uniforms: r, clearColor: i =
4002
4002
  r = So(r, `uniform ${e.type} ${t}${e.arraySize || ""}; \n`, r.lastIndexOf(n) + n.length), e.isNeeded = !0;
4003
4003
  }
4004
4004
  return e.includes("mainImage") && (r = r.concat(Ya)), r;
4005
- }, re = (e) => {
4005
+ }, ne = (e) => {
4006
4006
  let t = m.current;
4007
4007
  if (!t || !g.current) return;
4008
4008
  let n = w.current ? (e - w.current) / 1e3 : 0;
@@ -4061,17 +4061,17 @@ function Co({ fs: e, vs: t = Za, textures: n = [], uniforms: r, clearColor: i =
4061
4061
  t.activeTexture(t.TEXTURE0 + e), t.bindTexture(t.TEXTURE_2D, i), t.uniform1i(s, e), r && n.updateTexture(i, a, o);
4062
4062
  }
4063
4063
  }
4064
- }, R = (e) => {
4064
+ }, z = (e) => {
4065
4065
  let t = m.current;
4066
4066
  if (!t) return;
4067
- t.viewport(0, 0, t.drawingBufferWidth, t.drawingBufferHeight), t.clear(t.COLOR_BUFFER_BIT | t.DEPTH_BUFFER_BIT), t.bindBuffer(t.ARRAY_BUFFER, h.current), t.vertexAttribPointer(_.current ?? 0, 3, t.FLOAT, !1, 0, 0), re(e), t.drawArrays(t.TRIANGLE_STRIP, 0, 4);
4067
+ t.viewport(0, 0, t.drawingBufferWidth, t.drawingBufferHeight), t.clear(t.COLOR_BUFFER_BIT | t.DEPTH_BUFFER_BIT), t.bindBuffer(t.ARRAY_BUFFER, h.current), t.vertexAttribPointer(_.current ?? 0, 3, t.FLOAT, !1, 0, 0), ne(e), t.drawArrays(t.TRIANGLE_STRIP, 0, 4);
4068
4068
  let n = E.current.iMouse?.value;
4069
4069
  if (E.current.iMouse?.isNeeded && c !== 1 && Array.isArray(n)) {
4070
4070
  let e = n[0] ?? 0, t = n[1] ?? 0;
4071
4071
  n[0] = xo(e, S.current[0] ?? 0, c), n[1] = xo(t, S.current[1] ?? 0, c);
4072
4072
  }
4073
- v.current = requestAnimationFrame(R);
4074
- }, z = () => {
4073
+ v.current = requestAnimationFrame(z);
4074
+ }, re = () => {
4075
4075
  let e = { passive: !0 };
4076
4076
  E.current.iMouse?.isNeeded && p.current && (p.current.addEventListener("mousemove", N, e), p.current.addEventListener("mouseout", P, e), p.current.addEventListener("mouseup", P, e), p.current.addEventListener("mousedown", M, e), p.current.addEventListener("touchmove", N, e), p.current.addEventListener("touchend", P, e), p.current.addEventListener("touchstart", M, e)), E.current.iDeviceOrientation?.isNeeded && window.addEventListener("deviceorientation", j, e), p.current && (T.current = new ResizeObserver(F), T.current.observe(p.current), window.addEventListener("resize", F, e));
4077
4077
  }, B = () => {
@@ -4085,7 +4085,7 @@ function Co({ fs: e, vs: t = Za, textures: n = [], uniforms: r, clearColor: i =
4085
4085
  function r() {
4086
4086
  k();
4087
4087
  let n = m.current;
4088
- n && p.current && (n.clearColor(...i), n.clearDepth(1), n.enable(n.DEPTH_TEST), n.depthFunc(n.LEQUAL), n.viewport(0, 0, p.current.width, p.current.height), p.current.height = p.current.clientHeight, p.current.width = p.current.clientWidth, te(), ne(), ee(L(e || Xa), t || Za), A(), requestAnimationFrame(R), z(), F());
4088
+ n && p.current && (n.clearColor(...i), n.clearDepth(1), n.enable(n.DEPTH_TEST), n.depthFunc(n.LEQUAL), n.viewport(0, 0, p.current.width, p.current.height), p.current.height = p.current.clientHeight, p.current.width = p.current.clientWidth, ee(), te(), L(R(e || Xa), t || Za), A(), requestAnimationFrame(z), re(), F());
4089
4089
  }
4090
4090
  return requestAnimationFrame(r), () => {
4091
4091
  let e = m.current;
@@ -4232,7 +4232,7 @@ function Oo({ size: e = "lg", state: t, color: n, colorShift: r = .05, audioTrac
4232
4232
  }
4233
4233
  //#endregion
4234
4234
  //#region src/blocks/ai/F0HILActionConfirmation/F0HILActionConfirmation.tsx
4235
- var ko = ({ text: e, description: t, avatar: n, confirmationText: r, onConfirm: i, cancelText: a, onCancel: o, stackAt: s = "sm" }) => /* @__PURE__ */ Y(x, {
4235
+ var ko = ({ text: e, description: t, avatar: n, confirmationText: r, onConfirm: i, cancelText: a, onCancel: o, stackAt: s = "sm" }) => /* @__PURE__ */ Y(T, {
4236
4236
  title: e,
4237
4237
  description: t,
4238
4238
  avatar: n,
@@ -4276,7 +4276,7 @@ var ko = ({ text: e, description: t, avatar: n, confirmationText: r, onConfirm:
4276
4276
  1
4277
4277
  ]
4278
4278
  },
4279
- children: /* @__PURE__ */ Y(oe, {
4279
+ children: /* @__PURE__ */ Y(k, {
4280
4280
  size: "md",
4281
4281
  label: a.ai.ask,
4282
4282
  onClick: (e) => {
@@ -4306,7 +4306,7 @@ var ko = ({ text: e, description: t, avatar: n, confirmationText: r, onConfirm:
4306
4306
  let { label: t } = e;
4307
4307
  return e.content === "person" ? /* @__PURE__ */ Y(Io, {
4308
4308
  label: t,
4309
- children: /* @__PURE__ */ Y(ct, {
4309
+ children: /* @__PURE__ */ Y(ft, {
4310
4310
  firstName: e.avatar.firstName,
4311
4311
  lastName: e.avatar.lastName,
4312
4312
  src: e.avatar.src,
@@ -4326,12 +4326,12 @@ var ko = ({ text: e, description: t, avatar: n, confirmationText: r, onConfirm:
4326
4326
  })
4327
4327
  }) : e.content === "company" ? /* @__PURE__ */ Y(Io, {
4328
4328
  label: t,
4329
- children: /* @__PURE__ */ Y(pt, {
4329
+ children: /* @__PURE__ */ Y(at, {
4330
4330
  name: e.avatar.name,
4331
4331
  src: e.avatar.src,
4332
4332
  size: "xs"
4333
4333
  })
4334
- }) : e.content === "alert" ? /* @__PURE__ */ Y(yt, {
4334
+ }) : e.content === "alert" ? /* @__PURE__ */ Y(bt, {
4335
4335
  text: e.alertLabel,
4336
4336
  level: e.level
4337
4337
  }) : e.content === "balance" ? /* @__PURE__ */ Y(Lo, { balance: e.balance }) : null;
@@ -4404,10 +4404,10 @@ var Ho = ({ cx: e, cy: t, index: n, dataLength: r, color: i }) => n !== r - 1 ||
4404
4404
  className: "relative w-full flex-1",
4405
4405
  role: "img",
4406
4406
  "aria-label": `Sparkline chart showing ${i} trend`,
4407
- children: [/* @__PURE__ */ Y(se, {
4407
+ children: [/* @__PURE__ */ Y(ce, {
4408
4408
  width: "100%",
4409
4409
  height: "100%",
4410
- children: /* @__PURE__ */ X(be, {
4410
+ children: /* @__PURE__ */ X(ie, {
4411
4411
  data: e,
4412
4412
  margin: {
4413
4413
  top: 4,
@@ -4432,11 +4432,11 @@ var Ho = ({ cx: e, cy: t, index: n, dataLength: r, color: i }) => n !== r - 1 ||
4432
4432
  stopOpacity: .02
4433
4433
  })]
4434
4434
  }) }),
4435
- /* @__PURE__ */ Y(Re, {
4435
+ /* @__PURE__ */ Y(we, {
4436
4436
  hide: !0,
4437
4437
  domain: ["dataMin - 1", "dataMax + 1"]
4438
4438
  }),
4439
- /* @__PURE__ */ Y(Oe, {
4439
+ /* @__PURE__ */ Y(Ve, {
4440
4440
  type: "linear",
4441
4441
  dataKey: "value",
4442
4442
  stroke: a.stroke,
@@ -4536,7 +4536,7 @@ var Ko = ["className"], qo = U((e, t) => {
4536
4536
  });
4537
4537
  });
4538
4538
  qo.displayName = "F0AiInsightCard";
4539
- var Jo = e(F(qo, () => /* @__PURE__ */ X("div", {
4539
+ var Jo = e(Ie(qo, () => /* @__PURE__ */ X("div", {
4540
4540
  className: "flex w-[217px] h-[200px] flex-col gap-2 rounded-2xl border border-solid border-f1-border-secondary bg-f1-background p-4",
4541
4541
  "aria-busy": "true",
4542
4542
  "aria-live": "polite",
@@ -4570,7 +4570,7 @@ function ts(e) {
4570
4570
  children: [
4571
4571
  /* @__PURE__ */ X("div", {
4572
4572
  className: "flex items-center gap-3 px-4 py-3",
4573
- children: [t ? /* @__PURE__ */ Y(st, {
4573
+ children: [t ? /* @__PURE__ */ Y(pt, {
4574
4574
  module: t,
4575
4575
  size: "md"
4576
4576
  }) : null, /* @__PURE__ */ X("div", {
@@ -4621,11 +4621,11 @@ ts.displayName = "F0AiProposalCard";
4621
4621
  //#region src/blocks/ai/F0AiMessageSources/components/CollapsibleMessage.tsx
4622
4622
  var ns = ({ icon: e, title: t, children: n }) => {
4623
4623
  let [r, i] = J(!1), a = l();
4624
- return /* @__PURE__ */ X(Ue, {
4624
+ return /* @__PURE__ */ X(Ke, {
4625
4625
  className: "mb-1 w-full",
4626
4626
  open: r,
4627
4627
  onOpenChange: i,
4628
- children: [/* @__PURE__ */ X(le, {
4628
+ children: [/* @__PURE__ */ X(fe, {
4629
4629
  className: "flex w-full items-center text-base text-f1-foreground-secondary transition-colors duration-150 hover:text-f1-foreground [&[data-state=open]>svg]:rotate-90",
4630
4630
  children: [
4631
4631
  /* @__PURE__ */ Y("span", {
@@ -4640,11 +4640,11 @@ var ns = ({ icon: e, title: t, children: n }) => {
4640
4640
  children: t
4641
4641
  }),
4642
4642
  /* @__PURE__ */ Y(H, {
4643
- icon: xt,
4643
+ icon: Mt,
4644
4644
  className: "h-4 w-4 transition-transform duration-200"
4645
4645
  })
4646
4646
  ]
4647
- }), /* @__PURE__ */ Y(j, {
4647
+ }), /* @__PURE__ */ Y(M, {
4648
4648
  forceMount: !0,
4649
4649
  className: "data-[state=open]:mt-3",
4650
4650
  children: /* @__PURE__ */ Y(c.div, {
@@ -4668,7 +4668,7 @@ var ns = ({ icon: e, title: t, children: n }) => {
4668
4668
  })
4669
4669
  })]
4670
4670
  });
4671
- }, rs = (e) => Ve[e] ?? Nt, is = ({ iconName: e }) => e ? /* @__PURE__ */ Y("div", {
4671
+ }, rs = (e) => N[e] ?? Nt, is = ({ iconName: e }) => e ? /* @__PURE__ */ Y("div", {
4672
4672
  className: "mr-1 flex items-center justify-center",
4673
4673
  children: /* @__PURE__ */ Y(H, {
4674
4674
  icon: rs(e),
@@ -4681,7 +4681,7 @@ function as({ sources: e, title: n }) {
4681
4681
  if (!e || e.length === 0 || !Array.isArray(e)) return null;
4682
4682
  let i = n ?? r.ai.resourcesGroupTitle;
4683
4683
  return /* @__PURE__ */ Y(ns, {
4684
- icon: ut,
4684
+ icon: st,
4685
4685
  title: i,
4686
4686
  children: /* @__PURE__ */ Y("div", {
4687
4687
  className: "flex flex-col gap-1 rounded-lg border border-solid border-f1-border-secondary p-2",
@@ -4712,11 +4712,11 @@ as.displayName = "F0AiMessageSources";
4712
4712
  //#endregion
4713
4713
  //#region src/addons/ai/ai/F0AiTableCard/F0AiTableCard.tsx
4714
4714
  async function os(e, t, n) {
4715
- let r = Je(e), i = t === "xlsx" ? await tt([{
4715
+ let r = Ze(e), i = t === "xlsx" ? await tt([{
4716
4716
  name: "Data",
4717
4717
  rows: r
4718
- }]) : await we(r);
4719
- ue(i, `${n}.${t}`);
4718
+ }]) : await Ee(r);
4719
+ pe(i, `${n}.${t}`);
4720
4720
  }
4721
4721
  function ss({ dataset: e, title: n, filename: r }) {
4722
4722
  let a = t(), o = q(null), s = n ?? a.ai.aiTable.title, c = W((e) => {
@@ -4724,14 +4724,14 @@ function ss({ dataset: e, title: n, filename: r }) {
4724
4724
  let t = r ?? (s.replace(/\s+/g, "_").toLowerCase() || "table");
4725
4725
  os(o.current, e, t);
4726
4726
  }, [s, r]);
4727
- return e.columns?.length ? /* @__PURE__ */ X(lt, {
4727
+ return e.columns?.length ? /* @__PURE__ */ X(ct, {
4728
4728
  display: "flex",
4729
4729
  flexDirection: "column",
4730
4730
  gap: "md",
4731
4731
  borderRadius: "md",
4732
4732
  border: "default",
4733
4733
  borderColor: "secondary",
4734
- children: [/* @__PURE__ */ X(lt, {
4734
+ children: [/* @__PURE__ */ X(ct, {
4735
4735
  display: "flex",
4736
4736
  alignItems: "center",
4737
4737
  justifyContent: "between",
@@ -4745,20 +4745,20 @@ function ss({ dataset: e, title: n, filename: r }) {
4745
4745
  tag: "h2",
4746
4746
  className: "text-base font-medium capitalize text-f1-foreground",
4747
4747
  children: s
4748
- }), /* @__PURE__ */ Y(B, {
4749
- icon: I,
4748
+ }), /* @__PURE__ */ Y(ye, {
4749
+ icon: L,
4750
4750
  size: "md",
4751
4751
  items: [{
4752
4752
  label: a.ai.aiTable.downloadExcel,
4753
- icon: I,
4753
+ icon: L,
4754
4754
  onClick: () => c("xlsx")
4755
4755
  }, {
4756
4756
  label: a.ai.aiTable.downloadCsv,
4757
- icon: I,
4757
+ icon: L,
4758
4758
  onClick: () => c("csv")
4759
4759
  }]
4760
4760
  })]
4761
- }), /* @__PURE__ */ Y(lt, {
4761
+ }), /* @__PURE__ */ Y(ct, {
4762
4762
  overflowX: "auto",
4763
4763
  children: /* @__PURE__ */ X("table", {
4764
4764
  ref: o,
@@ -4781,7 +4781,7 @@ ss.displayName = "F0AiTableCard";
4781
4781
  //#endregion
4782
4782
  //#region src/addons/ai/ai/F0AiChatHeader/components/CreditsPopover.tsx
4783
4783
  function cs({ credits: e, trigger: n }) {
4784
- let r = t(), [i, a] = J(!1), [o, s] = J(!1), [l, p] = J(!1), [m, h] = J(null), g = W((t) => {
4784
+ let r = t(), [i, a] = J(!1), [o, s] = J(!1), [l, p] = J(!1), [m, h] = J(null), _ = W((t) => {
4785
4785
  a(t), t && e?.fetchUsage && (s(!0), p(!1), e.fetchUsage().then((e) => {
4786
4786
  h(e), p(!1);
4787
4787
  }).catch(() => {
@@ -4791,17 +4791,17 @@ function cs({ credits: e, trigger: n }) {
4791
4791
  }));
4792
4792
  }, [e]);
4793
4793
  if (!e) return null;
4794
- let _ = m ? Math.min(100, Math.round(m.used / m.total * 100)) : 0, v = e.companyName;
4794
+ let v = m ? Math.min(100, Math.round(m.used / m.total * 100)) : 0, y = e.companyName;
4795
4795
  return /* @__PURE__ */ X(Rt, {
4796
4796
  open: i,
4797
- onOpenChange: g,
4797
+ onOpenChange: _,
4798
4798
  children: [/* @__PURE__ */ Y(Pt, {
4799
4799
  asChild: !0,
4800
4800
  children: n ?? /* @__PURE__ */ Y(u, {
4801
4801
  variant: "ghost",
4802
4802
  hideLabel: !0,
4803
4803
  label: r.t("ai.credits.title"),
4804
- icon: Xe,
4804
+ icon: me,
4805
4805
  pressed: i
4806
4806
  })
4807
4807
  }), /* @__PURE__ */ X(It, {
@@ -4811,9 +4811,9 @@ function cs({ credits: e, trigger: n }) {
4811
4811
  sideOffset: 4,
4812
4812
  collisionPadding: 12,
4813
4813
  className: "flex w-[324px] flex-col gap-3 rounded-md border border-solid border-f1-border-secondary p-3",
4814
- children: [v ? /* @__PURE__ */ X("div", {
4814
+ children: [y ? /* @__PURE__ */ X("div", {
4815
4815
  className: "flex min-w-0 max-w-full flex-1 items-center gap-2 overflow-hidden text-left text-lg text-f1-foreground",
4816
- children: [/* @__PURE__ */ Y(pt, {
4816
+ children: [/* @__PURE__ */ Y(at, {
4817
4817
  name: e.companyName ?? "",
4818
4818
  src: e.companyLogoUrl,
4819
4819
  size: "lg"
@@ -4870,7 +4870,7 @@ function cs({ credits: e, trigger: n }) {
4870
4870
  children: /* @__PURE__ */ Y(c.div, {
4871
4871
  className: "h-full rounded-full",
4872
4872
  style: {
4873
- width: `${_}%`,
4873
+ width: `${v}%`,
4874
4874
  backgroundImage: "linear-gradient(90deg, #E55619, #A1ADE5, #E51943, #E55619)",
4875
4875
  backgroundSize: "300% 100%"
4876
4876
  },
@@ -4899,7 +4899,7 @@ function cs({ credits: e, trigger: n }) {
4899
4899
  variant: "outlinePromote",
4900
4900
  href: e.upgradePlanUrl,
4901
4901
  label: r.t("ai.credits.upgradePlan"),
4902
- icon: xe
4902
+ icon: g
4903
4903
  })]
4904
4904
  }) : null]
4905
4905
  })]
@@ -5003,7 +5003,7 @@ function ds({ employeeCredits: e, trigger: n }) {
5003
5003
  variant: "ghost",
5004
5004
  hideLabel: !0,
5005
5005
  label: r.t("ai.credits.title"),
5006
- icon: Xe,
5006
+ icon: me,
5007
5007
  pressed: i
5008
5008
  })
5009
5009
  }), /* @__PURE__ */ X(It, {
@@ -5015,7 +5015,7 @@ function ds({ employeeCredits: e, trigger: n }) {
5015
5015
  className: "flex w-[324px] flex-col gap-3 rounded-md border border-solid border-f1-border-secondary p-3",
5016
5016
  children: [h ? /* @__PURE__ */ X("div", {
5017
5017
  className: "flex min-w-0 max-w-full flex-1 items-center gap-2 overflow-hidden text-left text-lg text-f1-foreground",
5018
- children: [/* @__PURE__ */ Y(pt, {
5018
+ children: [/* @__PURE__ */ Y(at, {
5019
5019
  name: e.companyName ?? "",
5020
5020
  src: e.companyLogoUrl,
5021
5021
  size: "lg"
@@ -5047,20 +5047,20 @@ var fs = ({ credits: e, employeeCredits: t, trigger: n }) => t ? /* @__PURE__ */
5047
5047
  }) : e ? /* @__PURE__ */ Y(cs, {
5048
5048
  credits: e,
5049
5049
  trigger: n
5050
- }) : null, ps = fs, ms = ({ historyEnabled: e = !1, title: n, currentThreadTitle: r, fullscreen: a = !1, lockVisualizationMode: o = !1, onToggleVisualizationMode: f, onClose: p, onNewChat: m, onOpenHistory: h, hasMessages: g = !1, credits: _, employeeCredits: v, compact: y = !1, actions: b }) => {
5051
- let x = t(), S = l(), { panelOverlays: C } = R(), w = !o && !C && /* @__PURE__ */ Y(u, {
5050
+ }) : null, ps = fs, ms = ({ historyEnabled: e = !1, title: n, currentThreadTitle: r, fullscreen: a = !1, lockVisualizationMode: o = !1, onToggleVisualizationMode: f, onClose: p, onNewChat: m, onOpenHistory: h, hasMessages: g = !1, credits: v, employeeCredits: y, compact: b = !1, actions: x }) => {
5051
+ let S = t(), C = l(), { panelOverlays: w } = V(), T = !o && !w && /* @__PURE__ */ Y(u, {
5052
5052
  variant: "ghost",
5053
5053
  hideLabel: !0,
5054
- label: a ? x.ai.collapseChat : x.ai.expandChat,
5055
- icon: a ? He : Se,
5054
+ label: a ? S.ai.collapseChat : S.ai.expandChat,
5055
+ icon: a ? P : _,
5056
5056
  onClick: f
5057
- }), T = /* @__PURE__ */ Y(u, {
5057
+ }), E = /* @__PURE__ */ Y(u, {
5058
5058
  variant: "ghost",
5059
5059
  hideLabel: !0,
5060
- label: x.ai.closeChat,
5061
- icon: z,
5060
+ label: S.ai.closeChat,
5061
+ icon: F,
5062
5062
  onClick: p
5063
- }), E = b?.map((e) => /* @__PURE__ */ Y(u, {
5063
+ }), D = x?.map((e) => /* @__PURE__ */ Y(u, {
5064
5064
  variant: "ghost",
5065
5065
  hideLabel: !0,
5066
5066
  label: e.label,
@@ -5068,24 +5068,24 @@ var fs = ({ credits: e, employeeCredits: t, trigger: n }) => t ? /* @__PURE__ */
5068
5068
  type: "button",
5069
5069
  onClick: e.onClick
5070
5070
  }, e.id));
5071
- return y ? /* @__PURE__ */ X("header", {
5071
+ return b ? /* @__PURE__ */ X("header", {
5072
5072
  className: i("flex items-center justify-between gap-3 pr-4 pl-5 py-3"),
5073
5073
  children: [/* @__PURE__ */ Y(d, {
5074
5074
  lines: 1,
5075
5075
  className: "min-w-0 flex-1 text-left font-semibold text-f1-foreground",
5076
- children: r ?? x.ai.newConversation
5076
+ children: r ?? S.ai.newConversation
5077
5077
  }), /* @__PURE__ */ X(c.div, {
5078
5078
  className: "flex shrink-0 items-center",
5079
5079
  initial: { opacity: 0 },
5080
5080
  animate: { opacity: 1 },
5081
5081
  transition: {
5082
- duration: S ? 0 : .2,
5082
+ duration: C ? 0 : .2,
5083
5083
  ease: "easeOut"
5084
5084
  },
5085
5085
  children: [
5086
- E,
5087
- w,
5088
- T
5086
+ D,
5087
+ T,
5088
+ E
5089
5089
  ]
5090
5090
  })]
5091
5091
  }) : e ? /* @__PURE__ */ X("header", {
@@ -5102,9 +5102,9 @@ var fs = ({ credits: e, employeeCredits: t, trigger: n }) => t ? /* @__PURE__ */
5102
5102
  children: [/* @__PURE__ */ Y(d, {
5103
5103
  lines: 1,
5104
5104
  className: "min-w-0 text-left",
5105
- children: r ?? x.ai.newConversation
5105
+ children: r ?? S.ai.newConversation
5106
5106
  }), /* @__PURE__ */ Y(H, {
5107
- icon: dt,
5107
+ icon: ot,
5108
5108
  color: "default",
5109
5109
  size: "md"
5110
5110
  })]
@@ -5115,17 +5115,17 @@ var fs = ({ credits: e, employeeCredits: t, trigger: n }) => t ? /* @__PURE__ */
5115
5115
  initial: { opacity: 0 },
5116
5116
  animate: { opacity: 1 },
5117
5117
  transition: {
5118
- duration: S ? 0 : .2,
5118
+ duration: C ? 0 : .2,
5119
5119
  ease: "easeOut"
5120
5120
  },
5121
5121
  children: [
5122
5122
  /* @__PURE__ */ Y(fs, {
5123
- credits: _,
5124
- employeeCredits: v
5123
+ credits: v,
5124
+ employeeCredits: y
5125
5125
  }),
5126
- E,
5127
- w,
5128
- T
5126
+ D,
5127
+ T,
5128
+ E
5129
5129
  ]
5130
5130
  })]
5131
5131
  }) : /* @__PURE__ */ X("header", {
@@ -5141,24 +5141,24 @@ var fs = ({ credits: e, employeeCredits: t, trigger: n }) => t ? /* @__PURE__ */
5141
5141
  initial: { opacity: 0 },
5142
5142
  animate: { opacity: 1 },
5143
5143
  transition: {
5144
- duration: S ? 0 : .2,
5144
+ duration: C ? 0 : .2,
5145
5145
  ease: "easeOut"
5146
5146
  },
5147
5147
  children: [
5148
5148
  g && !o ? /* @__PURE__ */ Y(u, {
5149
5149
  variant: "ghost",
5150
5150
  hideLabel: !0,
5151
- label: x.ai.startNewChat,
5152
- icon: k,
5151
+ label: S.ai.startNewChat,
5152
+ icon: le,
5153
5153
  onClick: m
5154
5154
  }) : null,
5155
5155
  /* @__PURE__ */ Y(fs, {
5156
- credits: _,
5157
- employeeCredits: v
5156
+ credits: v,
5157
+ employeeCredits: y
5158
5158
  }),
5159
- E,
5160
- w,
5161
- T
5159
+ D,
5160
+ T,
5161
+ E
5162
5162
  ]
5163
5163
  })]
5164
5164
  });
@@ -5167,14 +5167,14 @@ var fs = ({ credits: e, employeeCredits: t, trigger: n }) => t ? /* @__PURE__ */
5167
5167
  //#region src/addons/ai/ai/F0AiChatHistory/utils.ts
5168
5168
  function hs(e) {
5169
5169
  let t = new Date(e), n = /* @__PURE__ */ new Date();
5170
- return Ye(t) ? "today" : de(t) ? "yesterday" : Ct(t, n) ? "thisMonth" : "older";
5170
+ return De(t) ? "today" : ke(t) ? "yesterday" : Ct(t, n) ? "thisMonth" : "older";
5171
5171
  }
5172
5172
  function gs(e, t, n) {
5173
- let r = new Date(e), i = jt(r, "p", { locale: n });
5174
- if (Ye(r)) return `${t.today}, ${i}`;
5175
- if (de(r)) return `${t.yesterday}, ${i}`;
5176
- let a = !At(r, /* @__PURE__ */ new Date());
5177
- return `${jt(r, a ? "MMM d yyyy" : "MMM d", { locale: n })}, ${i}`;
5173
+ let r = new Date(e), i = kt(r, "p", { locale: n });
5174
+ if (De(r)) return `${t.today}, ${i}`;
5175
+ if (ke(r)) return `${t.yesterday}, ${i}`;
5176
+ let a = !Ot(r, /* @__PURE__ */ new Date());
5177
+ return `${kt(r, a ? "MMM d yyyy" : "MMM d", { locale: n })}, ${i}`;
5178
5178
  }
5179
5179
  function _s(e) {
5180
5180
  let t = {
@@ -5197,13 +5197,13 @@ function _s(e) {
5197
5197
  //#endregion
5198
5198
  //#region src/addons/ai/ai/F0AiChatHistory/components/ThreadItem.tsx
5199
5199
  function vs({ thread: e, isPinned: n, isActive: r = !1, isPending: o = !1, onSelect: s, onPin: c, onUnpin: l, onDelete: f, className: p }) {
5200
- let m = t(), h = kt(), g = K(() => [{
5200
+ let m = t(), h = gt(), g = K(() => [{
5201
5201
  label: n ? m.ai.unpinChat : m.ai.pinChat,
5202
- icon: n ? w : S,
5202
+ icon: n ? oe : E,
5203
5203
  onClick: () => n ? l(e.id) : c(e.id)
5204
5204
  }, {
5205
5205
  label: m.ai.deleteChat,
5206
- icon: M,
5206
+ icon: j,
5207
5207
  critical: !0,
5208
5208
  onClick: () => f(e.id)
5209
5209
  }], [
@@ -5258,13 +5258,13 @@ function vs({ thread: e, isPinned: n, isActive: r = !1, isPending: o = !1, onSel
5258
5258
  o ? /* @__PURE__ */ Y("div", {
5259
5259
  className: "flex h-7 w-7 shrink-0 items-center justify-center",
5260
5260
  "aria-label": m.ai.threadOptions,
5261
- children: /* @__PURE__ */ Y(bt, { size: "small" })
5261
+ children: /* @__PURE__ */ Y(xt, { size: "small" })
5262
5262
  }) : /* @__PURE__ */ Y("div", {
5263
5263
  className: i("hidden items-center", "group-hover:flex group-focus-within:flex", "has-[[aria-expanded=true]]:flex"),
5264
- children: /* @__PURE__ */ Y(B, {
5264
+ children: /* @__PURE__ */ Y(ye, {
5265
5265
  items: g,
5266
5266
  children: /* @__PURE__ */ Y(u, {
5267
- icon: Ne,
5267
+ icon: y,
5268
5268
  variant: "ghost",
5269
5269
  size: "sm",
5270
5270
  label: m.ai.threadOptions,
@@ -5293,7 +5293,7 @@ function ys({ label: e, threads: t, pinnedIds: n, onSelect: r, onPin: o, onUnpin
5293
5293
  className: "text-sm font-medium capitalize tracking-wide text-f1-foreground-secondary",
5294
5294
  children: e
5295
5295
  }), /* @__PURE__ */ Y(H, {
5296
- icon: l ? dt : Mt,
5296
+ icon: l ? ot : wt,
5297
5297
  color: "secondary",
5298
5298
  size: "xs"
5299
5299
  })]
@@ -5386,7 +5386,7 @@ var ws = ({ onClose: e, onSelectThread: n, onNewChat: r, threads: a, isLoading:
5386
5386
  children: [/* @__PURE__ */ X("div", {
5387
5387
  className: "flex flex-shrink-0 items-center gap-2 border-0 border-b border-solid border-f1-border-secondary py-2 pl-5 pr-3",
5388
5388
  children: [/* @__PURE__ */ Y(H, {
5389
- icon: ut,
5389
+ icon: st,
5390
5390
  color: "secondary",
5391
5391
  size: "md"
5392
5392
  }), /* @__PURE__ */ Y("input", {
@@ -5407,7 +5407,7 @@ var ws = ({ onClose: e, onSelectThread: n, onNewChat: r, threads: a, isLoading:
5407
5407
  children: /* @__PURE__ */ X("div", {
5408
5408
  className: "flex w-full items-center gap-2",
5409
5409
  children: [/* @__PURE__ */ Y(H, {
5410
- icon: k,
5410
+ icon: le,
5411
5411
  color: "default",
5412
5412
  size: "md"
5413
5413
  }), /* @__PURE__ */ Y(d, {
@@ -5450,7 +5450,7 @@ var ws = ({ onClose: e, onSelectThread: n, onNewChat: r, threads: a, isLoading:
5450
5450
  })] }), document.body);
5451
5451
  }, Ts = "f0-ai-pinned-threads";
5452
5452
  function Es() {
5453
- let e = L(Ts, []);
5453
+ let e = re(Ts, []);
5454
5454
  return new Set(Array.isArray(e) ? e : []);
5455
5455
  }
5456
5456
  function Ds(e) {
@@ -5524,7 +5524,7 @@ function Os({ enabled: e = !1, fetchThreads: t, deleteThread: n, pinThread: r, u
5524
5524
  }
5525
5525
  //#endregion
5526
5526
  //#region src/addons/ai/ai/F0AiChatUsageLimits/types.ts
5527
- var ks = ["top", "bottom"], As = c.create(P), js = ({ label: e, reduceMotion: t }) => /* @__PURE__ */ X("div", {
5527
+ var ks = ["top", "bottom"], As = c.create(ee), js = ({ label: e, reduceMotion: t }) => /* @__PURE__ */ X("div", {
5528
5528
  role: "status",
5529
5529
  "aria-live": "polite",
5530
5530
  className: "flex flex-row items-center gap-1 rounded-full border border-solid border-f1-border-secondary bg-f1-background px-2 py-1.5 pr-2.5 shadow-md",