@factorialco/f0-react 16.21.0 → 16.23.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 (44) hide show
  1. package/dist/{ArchiveThumbnail-BePfOv3F.js → ArchiveThumbnail-DVDLD1KO.js} +1 -1
  2. package/dist/{ArchiveViewer-DvKspMsv.js → ArchiveViewer-DE9_XePM.js} +2 -2
  3. package/dist/{ChatPostComposerDialog-BhlQzTXz.js → ChatPostComposerDialog-CwwUOsKv.js} +2 -2
  4. package/dist/{CoachmarkProvider-B0Fs1pf7.js → CoachmarkProvider-DKzIMyWY.js} +20671 -20665
  5. package/dist/{CodeThumbnail-CZKjZwpZ.js → CodeThumbnail-xdea98O9.js} +1 -1
  6. package/dist/{CodeViewer-DNLPQ2xO.js → CodeViewer-Btnvqa-X.js} +6 -6
  7. package/dist/{DocumentToolbar-Dua6PID0.js → DocumentToolbar-B_sygiWe.js} +5 -5
  8. package/dist/{DocxViewer-D2S3lGOn.js → DocxViewer-BKEv7ORw.js} +1 -1
  9. package/dist/{F0AiProcessingOverlay-bNWPwuH3.js → F0AiProcessingOverlay-BBvhg8LC.js} +286 -286
  10. package/dist/{F0Alert-DHPOzhGo.js → F0Alert-DtSyPCxn.js} +4 -4
  11. package/dist/F0AudioPlayer-CbwGn5bL.js +2 -0
  12. package/dist/{F0CanvasPanel-DV9kMkUy.js → F0CanvasPanel-CQ7gX7-P.js} +7855 -7746
  13. package/dist/{F0DocumentViewer-C-e-yjPh.js → F0DocumentViewer-BZsMdNcY.js} +1 -1
  14. package/dist/{F0DocumentViewer-BSMvv4hU.js → F0DocumentViewer-DWXuPrOG.js} +2 -2
  15. package/dist/{F0Map-C5GBzJKx.js → F0Map-BuLyNjHC.js} +16 -16
  16. package/dist/{F0Select-Ef_MkLqL.js → F0Select-DGvIH_Gp.js} +1607 -1601
  17. package/dist/{F0VideoPlayer-BXD4JMkM.js → F0VideoPlayer-B4JYaa4U.js} +22 -22
  18. package/dist/F0VideoPlayer-BYTQqwd2.js +1 -0
  19. package/dist/{HtmlViewer-CX1vkYRx.js → HtmlViewer-OY8T2uX6.js} +4 -4
  20. package/dist/{Map-BnhKWUJE.js → Map-CuunG2oS.js} +6 -6
  21. package/dist/{PdfThumbnail-BJi6FkbE.js → PdfThumbnail-DfwDJHEr.js} +1 -1
  22. package/dist/{PdfViewer-CFn2h9nq.js → PdfViewer-DzbV7lZw.js} +8 -8
  23. package/dist/{SheetViewer-onMadxsi.js → SheetViewer-DGX6KHnL.js} +11 -11
  24. package/dist/{TextViewer-BIcgDoH5.js → TextViewer-CLqt6uiQ.js} +1 -1
  25. package/dist/ai.d.ts +2 -2
  26. package/dist/ai.js +2 -2
  27. package/dist/component-status.js +4 -4
  28. package/dist/{dist-BCNVh6y5.js → dist-DMTFO2gF.js} +46 -0
  29. package/dist/experimental.d.ts +14 -3
  30. package/dist/experimental.js +974 -958
  31. package/dist/{exports-B8qwxvwL.d.ts → exports-BSFis6g6.d.ts} +1 -1
  32. package/dist/f0.d.ts +3 -3
  33. package/dist/f0.js +604 -609
  34. package/dist/{google-CG30Y63J.js → google-DDQ7XfPD.js} +1 -1
  35. package/dist/{highlight-BeMwpXOl.js → highlight-DpVfX1K9.js} +1 -1
  36. package/dist/{index-DC_v_uUG.d.ts → index-DR7cCKE6.d.ts} +62 -16
  37. package/dist/{maplibre-iFKMikCO.js → maplibre-BOwxOCps.js} +2 -2
  38. package/dist/{pdfWorker-rlBg8XHy.js → pdfWorker-DtUZLMfu.js} +1 -1
  39. package/dist/styles.css +1 -1
  40. package/dist/{types-Ia5pcWL6.d.ts → types-ChFboQlr.d.ts} +15 -4
  41. package/dist/{useData-CVTa0m1L.js → useData-QJRr_47g.js} +1 -1
  42. package/package.json +2 -2
  43. package/dist/F0AudioPlayer-BrjgdlIL.js +0 -2
  44. package/dist/F0VideoPlayer-Bwq_1c7j.js +0 -1
@@ -2,17 +2,17 @@ import { a as e, r as t } from "./i18n-provider-DyI_r6Au.js";
2
2
  import { n, t as r } from "./skeleton-Dw-7r7zp.js";
3
3
  import { L as i, R as a } from "./tooltip-NXXT56H4.js";
4
4
  import { A as o, D as s, K as c, R as l, V as u, Y as d, b as f, h as p, n as m, r as h, t as g, v as _ } from "./F0Button-B217B6lh.js";
5
- import { $ as v, At as y, B as b, Bn as x, Ca as S, D as C, Di as w, Ds as T, Dt as E, E as D, Ei as O, El as ee, En as k, Es as te, Fl as A, Fn as j, Gs as M, Gt as N, Ht as ne, I as re, Il as P, Io as ie, J as ae, Jn as oe, Kn as se, Ks as ce, Kt as F, L as le, Lo as ue, Mn as de, Mt as I, N as L, Nn as fe, Nt as pe, O as me, Os as he, Ot as ge, P as _e, Pn as ve, Pt as ye, Q as R, Qc as be, R as xe, Rn as z, Sn as Se, St as Ce, T as we, Tl as Te, Tn as Ee, Ts as De, Us as B, Ut as Oe, Vn as ke, Vo as Ae, Vs as je, Vt as V, Wt as Me, X as H, Xt as Ne, Y as Pe, Yi as Fe, Z as Ie, Zn as Le, _i as Re, _t as ze, a as Be, aa as Ve, at as He, b as Ue, bn as We, bt as Ge, c as Ke, cn as qe, co as Je, ct as Ye, dn as Xe, dt as Ze, ec as Qe, et as $e, fc as et, fl as tt, ft as nt, gc as rt, gn as it, gt as at, ht as ot, ia as st, in as ct, kn as lt, kt as ut, mc as dt, ms as ft, nl as pt, nt as mt, ot as ht, pi as gt, pn as _t, qn as vt, r as yt, ra as bt, rl as xt, rn as St, s as Ct, sc as wt, si as Tt, sn as Et, ts as Dt, tt as Ot, u as kt, uc as At, un as jt, ut as Mt, va as Nt, vn as Pt, vt as Ft, w as It, wl as Lt, x as Rt, xa as zt, xn as Bt, xt as Vt, y as Ht, ya as Ut, yc as Wt, yt as Gt, z as Kt, zn as qt } from "./F0CanvasPanel-DV9kMkUy.js";
5
+ import { $ as v, As as y, At as b, B as x, Bn as S, Ca as C, D as w, Di as T, Dl as E, Ds as D, Dt as O, E as k, Ei as ee, El as te, En as A, Fn as j, Gs as M, Gt as N, Ht as ne, I as re, J as P, Jn as ie, Js as ae, Kn as oe, Kt as F, L as se, Ll as ce, Mn as le, Mt as ue, N as de, Nn as I, Nt as L, O as fe, Ol as pe, Os as me, Ot as he, P as ge, Pn as _e, Pt as ve, Q as ye, R, Rl as be, Rn as xe, Ro as z, Sn as Se, St as Ce, T as we, Ta as Te, Tn as Ee, Uo as De, Us as B, Ut as Oe, Vn as ke, Vt as Ae, Wt as je, X as V, Xt as Me, Y as H, Yi as Ne, Z as Pe, Zn as Fe, _i as Ie, _t as Le, a as Re, aa as ze, al as Be, at as Ve, b as He, ba as Ue, bn as We, bt as Ge, c as Ke, cn as qe, ct as Je, dn as Ye, dt as Xe, el as Ze, et as Qe, fc as $e, ft as et, gc as tt, gn as nt, gs as rt, gt as it, ht as at, il as ot, in as st, kn as ct, ks as lt, kt as ut, lc as dt, mc as ft, ml as pt, nc as mt, nt as ht, oa as gt, ot as _t, pi as vt, pn as yt, qn as bt, qs as xt, r as St, rn as Ct, rs as wt, s as Tt, sa as Et, si as Dt, sn as Ot, tt as kt, u as At, un as jt, uo as Mt, ut as Nt, vc as Pt, vn as Ft, vt as It, w as Lt, x as Rt, xa as zt, xc as Bt, xn as Vt, xt as Ht, y as Ut, yt as Wt, z as Gt, zn as Kt, zo as qt } from "./F0CanvasPanel-CQ7gX7-P.js";
6
6
  import { o as Jt, t as U } from "./F0Icon-CRETnjaC.js";
7
7
  import { t as Yt } from "./i18n-provider-defaults-C8fwj3sA.js";
8
- import { C as Xt, H as Zt, I as Qt, N as W, U as $t, _ as en, b as tn, g as nn, h as rn, k as an, u as on } from "./useData-CVTa0m1L.js";
9
- import { Cr as sn, Dn as cn, En as ln, Ft as un, Or as dn, Ot as fn, Tr as pn, bt as mn, dt as hn, sn as gn, vt as _n, wr as vn, yt as yn } from "./F0Select-Ef_MkLqL.js";
8
+ import { C as Xt, H as Zt, I as Qt, N as W, U as $t, _ as en, b as tn, g as nn, h as rn, k as an, u as on } from "./useData-QJRr_47g.js";
9
+ import { Fr as sn, Gt as cn, In as ln, Ln as un, Nr as dn, Pr as fn, Rr as pn, Rt as mn, St as hn, _n as gn, bt as _n, dt as vn, xt as yn } from "./F0Select-DGvIH_Gp.js";
10
10
  import { t as bn } from "./Check-DAp9gCRh.js";
11
11
  import { t as xn } from "./Ellipsis-CBouJQYY.js";
12
12
  import { t as Sn } from "./ExternalLink-RdKU698E.js";
13
13
  import { $ as Cn, a as wn, i as Tn, n as En, t as Dn } from "./popover-CKVOp9XF.js";
14
14
  import { t as On } from "./F0Text-DEJMiNLl.js";
15
- import { a as kn } from "./dist-BCNVh6y5.js";
15
+ import { a as kn } from "./dist-DMTFO2gF.js";
16
16
  import { Children as An, Fragment as jn, createContext as Mn, createElement as Nn, forwardRef as Pn, isValidElement as Fn, memo as In, useCallback as G, useContext as Ln, useEffect as K, useId as Rn, useImperativeHandle as zn, useInsertionEffect as Bn, useLayoutEffect as Vn, useMemo as q, useRef as J, useState as Y } from "react";
17
17
  import { Fragment as Hn, jsx as X, jsxs as Z } from "react/jsx-runtime";
18
18
  import { createPortal as Un } from "react-dom";
@@ -36,15 +36,15 @@ var Kn = [
36
36
  "sm",
37
37
  "md",
38
38
  "lg"
39
- ], Jn = "relative flex flex-col rounded-lg border border-solid border-f1-border-secondary bg-f1-background/95 shadow transition-colors focus-within:border-f1-border", Yn = [], Xn = () => null, Zn = ({ onSend: e, inProgress: t = !1, onStop: n, sendKind: r = "send", hasAttachments: a = !1, sendBlocked: o = !1, maxLength: s, maxLengthError: l, error: u = null, labels: f, placeholders: p, placeholdersPaused: h, placeholderPreview: g, placeholderPreviewOneLine: _ = !1, role: v = "combobox", name: y, mentions: b, autocomplete: x, voice: S, onTextChange: C, onCleared: w, onEscape: T, onArrowUpWhenEmpty: D, onPasteFiles: O, pastePreferText: ee = !1, onStateChange: k, header: te, tray: A, leading: j, toolbarStart: M, toolbarCenter: N, collapsible: ne = !1, collapsed: re = !1, replacement: P, asForm: ie = !1, className: ae, surfaceRef: se, onSurfaceFocus: ce, onSurfaceBlur: F, handleRef: le, reducedMotion: ue = !1, "data-testid": de }) => {
40
- let I = Gt(f, S), L = P != null, { error: fe, show: pe, clear: me } = Ft(), he = J(() => {}), ge = J(() => {}), _e = J(""), ve = G((e) => {
39
+ ], Jn = "relative flex flex-col rounded-lg border border-solid border-f1-border-secondary bg-f1-background/95 shadow transition-colors focus-within:border-f1-border", Yn = [], Xn = () => null, Zn = ({ onSend: e, inProgress: t = !1, onStop: n, sendKind: r = "send", hasAttachments: a = !1, sendBlocked: o = !1, maxLength: s, maxLengthError: l, error: u = null, labels: f, placeholders: p, placeholdersPaused: h, placeholderPreview: g, placeholderPreviewOneLine: _ = !1, role: v = "combobox", name: y, mentions: b, autocomplete: x, voice: S, onTextChange: C, onCleared: w, onEscape: T, onArrowUpWhenEmpty: E, onPasteFiles: D, pastePreferText: k = !1, onStateChange: ee, header: te, tray: A, leading: j, toolbarStart: M, toolbarCenter: N, collapsible: ne = !1, collapsed: re = !1, replacement: P, asForm: ae = !1, className: oe, surfaceRef: F, onSurfaceFocus: se, onSurfaceBlur: ce, handleRef: le, reducedMotion: ue = !1, "data-testid": de }) => {
40
+ let I = Wt(f, S), L = P != null, { error: fe, show: pe, clear: me } = It(), he = J(() => {}), ge = J(() => {}), _e = J(""), ve = G((e) => {
41
41
  let t = _e.current, n = t && !/\s$/.test(t) ? " " : "";
42
42
  he.current(`${t}${n}${e}`);
43
43
  }, []), ye = {
44
44
  "permission-denied": I.micPermissionDenied,
45
45
  "device-error": I.micError,
46
46
  "transcription-failed": I.transcriptionError
47
- }, R = oe({
47
+ }, R = ie({
48
48
  onTranscribe: S?.onTranscribe,
49
49
  onPartial: ve,
50
50
  onFinal: (e) => {
@@ -52,7 +52,7 @@ var Kn = [
52
52
  },
53
53
  onError: (e) => pe(ye[e]),
54
54
  onAudio: S?.onAudio
55
- }), [be, xe] = Y(!1), z = R.status === "recording", Se = R.status === "transcribing", we = !!S && (!!S.onTranscribe || !!S.onAudio) && R.isSupported, Te = !S?.onAudio && (R.status !== "idle" || be), [Ee, De] = Y(!1), B = Vt({
55
+ }), [be, xe] = Y(!1), z = R.status === "recording", Se = R.status === "transcribing", we = !!S && (!!S.onTranscribe || !!S.onAudio) && R.isSupported, Te = !S?.onAudio && (R.status !== "idle" || be), [Ee, De] = Y(!1), B = Ht({
56
56
  mentions: {
57
57
  enabled: !!b && b.sources.length + +!!b.pinned > 0 && !Ee && !L,
58
58
  sources: b?.sources ?? Yn,
@@ -69,13 +69,13 @@ var Kn = [
69
69
  };
70
70
  let Ie = J(Oe);
71
71
  Ie.current = Oe;
72
- let Le = J(H.mentions);
73
- Le.current = H.mentions;
74
- let Re = (x?.useAutocomplete ?? Xn)(B), Be = Re?.isOpen ?? !1, Ve = H.dismissCurrentTrigger;
72
+ let Re = J(H.mentions);
73
+ Re.current = H.mentions;
74
+ let ze = (x?.useAutocomplete ?? Xn)(B), Ve = ze?.isOpen ?? !1, He = H.dismissCurrentTrigger;
75
75
  K(() => {
76
- De(Be), Be && Ve();
77
- }, [Be, Ve]);
78
- let { highlightSegments: He, hasOverlay: Ue } = Ce(B, { suppressGhost: Be }), We = G((e) => {
76
+ De(Ve), Ve && He();
77
+ }, [Ve, He]);
78
+ let { highlightSegments: Ue, hasOverlay: We } = Ce(B, { suppressGhost: Ve }), Ke = G((e) => {
79
79
  let t = V.current;
80
80
  if (!t) return;
81
81
  t.focus(e);
@@ -83,29 +83,29 @@ var Kn = [
83
83
  t.setSelectionRange(n, n);
84
84
  }, [V]);
85
85
  ge.current = () => V.current?.focus();
86
- let Ke = H.close;
86
+ let qe = H.close;
87
87
  K(() => {
88
- L && Ke();
89
- }, [L, Ke]);
90
- let qe = Oe.length === 0;
88
+ L && qe();
89
+ }, [L, qe]);
90
+ let Je = Oe.length === 0;
91
91
  K(() => {
92
- k?.({
93
- isEmpty: qe,
92
+ ee?.({
93
+ isEmpty: Je,
94
94
  recorder: R.status
95
95
  });
96
96
  }, [
97
- k,
98
- qe,
97
+ ee,
98
+ Je,
99
99
  R.status
100
100
  ]);
101
- let [Je, Ye] = Y(!1), Xe = s !== void 0 && Oe.trim().length > s;
101
+ let [Ye, Ze] = Y(!1), Qe = s !== void 0 && Oe.trim().length > s;
102
102
  K(() => {
103
- Xe || Ye(!1);
104
- }, [Xe]);
105
- let Qe = Je && Xe ? l ?? null : null, $e = Qe ?? u ?? fe, [et, tt] = Y(!1), rt = J(!1), it = Oe.trim().length > 0 || a, st = it && !Te && !o && !et && !L, ct = t && !Se, lt = G(() => {
106
- if (!st || rt.current) return;
107
- if (Xe) {
108
- Ye(!0);
103
+ Qe || Ze(!1);
104
+ }, [Qe]);
105
+ let $e = Ye && Qe ? l ?? null : null, nt = $e ?? u ?? fe, [rt, ot] = Y(!1), st = J(!1), ct = Oe.trim().length > 0 || a, lt = ct && !Te && !o && !rt && !L, ut = t && !Se, dt = G(() => {
106
+ if (!lt || st.current) return;
107
+ if (Qe) {
108
+ Ze(!0);
109
109
  return;
110
110
  }
111
111
  H.close();
@@ -121,20 +121,20 @@ var Kn = [
121
121
  n(!0);
122
122
  return;
123
123
  }
124
- r instanceof Promise ? (rt.current = !0, tt(!0), r.then((e) => {
125
- rt.current = !1, tt(!1), n(e === !1);
124
+ r instanceof Promise ? (st.current = !0, ot(!0), r.then((e) => {
125
+ st.current = !1, ot(!1), n(e === !1);
126
126
  }, () => {
127
- rt.current = !1, tt(!1), n(!0);
127
+ st.current = !1, ot(!1), n(!0);
128
128
  })) : n(r === !1);
129
129
  }, [
130
- st,
131
- Xe,
130
+ lt,
131
+ Qe,
132
132
  H,
133
133
  e,
134
134
  Pe,
135
135
  Fe,
136
136
  V
137
- ]), ut = G(() => {
137
+ ]), ft = G(() => {
138
138
  be || (S?.onPress?.(), me(), xe(!0), (async () => {
139
139
  try {
140
140
  await R.start(), _e.current = Ie.current;
@@ -147,31 +147,31 @@ var Kn = [
147
147
  S,
148
148
  me,
149
149
  R
150
- ]), ft = R.cancel, pt = G(() => {
151
- ft(), S?.onCancelled?.();
152
- }, [ft, S]), mt = J(!1), ht = S?.onStarted;
150
+ ]), pt = R.cancel, mt = G(() => {
151
+ pt(), S?.onCancelled?.();
152
+ }, [pt, S]), ht = J(!1), gt = S?.onStarted;
153
153
  K(() => {
154
- z && !mt.current && ht?.(), mt.current = z;
155
- }, [z, ht]), zn(le, () => ({
154
+ z && !ht.current && gt?.(), ht.current = z;
155
+ }, [z, gt]), zn(le, () => ({
156
156
  focus: (e) => {
157
- L || We(e);
157
+ L || Ke(e);
158
158
  },
159
159
  clear: Pe,
160
160
  loadDraft: B.loadDraft,
161
161
  getDraft: () => ({
162
162
  text: Ie.current,
163
- mentions: Le.current
163
+ mentions: Re.current
164
164
  }),
165
165
  insertText: (e) => {
166
166
  let t = V.current, n = Ie.current, r = t?.selectionStart ?? n.length, i = t?.selectionEnd ?? n.length, a = r + e.length, o = n.slice(0, r) + e + n.slice(i);
167
167
  Ae(o), je(a), C?.(o), Ne(a, o, !0);
168
168
  },
169
- cancelRecording: ft,
169
+ cancelRecording: pt,
170
170
  breakHistory: Fe,
171
171
  addFiles: () => {}
172
172
  }), [
173
173
  L,
174
- We,
174
+ Ke,
175
175
  Pe,
176
176
  B.loadDraft,
177
177
  V,
@@ -179,48 +179,48 @@ var Kn = [
179
179
  je,
180
180
  C,
181
181
  Ne,
182
- ft,
182
+ pt,
183
183
  Fe
184
184
  ]);
185
- let { escapeArmed: gt, handleClearKeyDown: _t, handleUndoRedoKeyDown: vt } = B, yt = (e) => {
185
+ let { escapeArmed: _t, handleClearKeyDown: vt, handleUndoRedoKeyDown: yt } = B, bt = (e) => {
186
186
  if (e.key !== "Escape") return !1;
187
187
  if (T?.(e)) return !0;
188
- if (z) return e.preventDefault(), pt(), !0;
189
- let t = gt;
190
- return _t(e) ? (t && (Ye(!1), w?.()), !0) : !1;
191
- }, bt = (e) => {
192
- L || Ge(e) || vt(e) || Re?.handleKeyDown(e) || H.handleKeyDown(e) || yt(e) || (e.key === "ArrowUp" && !e.shiftKey && !e.altKey && !e.metaKey && !e.ctrlKey && Oe === "" && R.status === "idle" && !be && !S?.busy && D?.() ? e.preventDefault() : e.key === "Enter" && !e.shiftKey && (e.preventDefault(), t || lt()));
188
+ if (z) return e.preventDefault(), mt(), !0;
189
+ let t = _t;
190
+ return vt(e) ? (t && (Ze(!1), w?.()), !0) : !1;
191
+ }, xt = (e) => {
192
+ L || Ge(e) || yt(e) || ze?.handleKeyDown(e) || H.handleKeyDown(e) || bt(e) || (e.key === "ArrowUp" && !e.shiftKey && !e.altKey && !e.metaKey && !e.ctrlKey && Oe === "" && R.status === "idle" && !be && !S?.busy && E?.() ? e.preventDefault() : e.key === "Enter" && !e.shiftKey && (e.preventDefault(), t || dt()));
193
193
  }, St = (e) => {
194
- e.preventDefault(), !L && (t && !Te ? (H.close(), n?.(), V.current?.focus()) : lt());
195
- }, Ct = Mt({
196
- enabled: !!O && !L,
197
- onFiles: O ?? (() => {}),
198
- preferText: ee
199
- }), wt = Rn(), Tt = Rn(), Et = `chat-composer-mentions-${wt.replace(/:/g, "")}`, Dt = H.isOpen && !Be && !L && (H.isLoading || H.rows.length > 0), Ot = H.rows[H.selectedIndex] ?? H.rows[0], kt = Dt && Ot ? ze(Et, Ot.item) : void 0, At = (e) => we ? /* @__PURE__ */ X(m, {
194
+ e.preventDefault(), !L && (t && !Te ? (H.close(), n?.(), V.current?.focus()) : dt());
195
+ }, Ct = Nt({
196
+ enabled: !!D && !L,
197
+ onFiles: D ?? (() => {}),
198
+ preferText: k
199
+ }), wt = Rn(), Tt = Rn(), Et = `chat-composer-mentions-${wt.replace(/:/g, "")}`, Dt = H.isOpen && !Ve && !L && (H.isLoading || H.rows.length > 0), Ot = H.rows[H.selectedIndex] ?? H.rows[0], kt = Dt && Ot ? Le(Et, Ot.item) : void 0, At = (e) => we ? /* @__PURE__ */ X(m, {
200
200
  type: "button",
201
201
  variant: "ghost",
202
202
  size: e,
203
203
  hideLabel: !0,
204
204
  label: S?.busy ? I.sendingVoice : I.recordAudio,
205
- icon: dt,
206
- onClick: ut,
205
+ icon: tt,
206
+ onClick: ft,
207
207
  disabled: S?.disabled,
208
208
  loading: be || Se || !!S?.busy
209
- }) : null, jt = nt({
210
- streaming: ct,
211
- hasDataToSend: it,
212
- canSend: st
213
- }), Nt = (e) => /* @__PURE__ */ X(Ze, {
209
+ }) : null, jt = et({
210
+ streaming: ut,
211
+ hasDataToSend: ct,
212
+ canSend: lt
213
+ }), Mt = (e) => /* @__PURE__ */ X(Xe, {
214
214
  action: jt,
215
215
  sendKind: r,
216
216
  size: e,
217
- submit: ie,
217
+ submit: ae,
218
218
  labels: I,
219
- onSend: lt,
219
+ onSend: dt,
220
220
  onStop: () => {
221
221
  n?.(), V.current?.focus();
222
222
  }
223
- }), Pt = { duration: ue ? 0 : .15 }, It = typeof M == "function" ? M(R.status) : M, Lt = /* @__PURE__ */ X("div", {
223
+ }), Pt = { duration: ue ? 0 : .15 }, Ft = typeof M == "function" ? M(R.status) : M, Lt = /* @__PURE__ */ X("div", {
224
224
  className: "grid",
225
225
  children: /* @__PURE__ */ X(d, {
226
226
  initial: !1,
@@ -241,8 +241,8 @@ var Kn = [
241
241
  size: "md",
242
242
  hideLabel: !0,
243
243
  label: I.cancelRecording,
244
- icon: xt,
245
- onClick: pt
244
+ icon: Be,
245
+ onClick: mt
246
246
  }), /* @__PURE__ */ X(m, {
247
247
  type: "button",
248
248
  variant: "default",
@@ -260,9 +260,9 @@ var Kn = [
260
260
  exit: { opacity: 0 },
261
261
  transition: Pt,
262
262
  children: [
263
- It ? /* @__PURE__ */ X("div", {
263
+ Ft ? /* @__PURE__ */ X("div", {
264
264
  className: i("flex items-center gap-1", N ? "shrink-0" : "min-w-0"),
265
- children: It
265
+ children: Ft
266
266
  }) : null,
267
267
  N ? /* @__PURE__ */ X("div", {
268
268
  className: "min-w-0 flex-1",
@@ -270,7 +270,7 @@ var Kn = [
270
270
  }) : null,
271
271
  /* @__PURE__ */ Z("div", {
272
272
  className: "ml-auto flex shrink-0 items-center gap-1",
273
- children: [At("md"), Nt("md")]
273
+ children: [At("md"), Mt("md")]
274
274
  })
275
275
  ]
276
276
  }, "actions-row")
@@ -285,8 +285,8 @@ var Kn = [
285
285
  ]
286
286
  }, zt = /* @__PURE__ */ Z(Hn, { children: [
287
287
  te,
288
- /* @__PURE__ */ X(ot, {
289
- message: $e,
288
+ /* @__PURE__ */ X(at, {
289
+ message: nt,
290
290
  id: Tt,
291
291
  reducedMotion: ue
292
292
  }),
@@ -295,7 +295,7 @@ var Kn = [
295
295
  className: i((j || re) && "flex items-end", re && "pr-3"),
296
296
  children: [
297
297
  j,
298
- /* @__PURE__ */ X(E, {
298
+ /* @__PURE__ */ X(O, {
299
299
  className: "min-w-0 flex-1",
300
300
  textareaRef: V,
301
301
  highlightRef: Me,
@@ -315,24 +315,24 @@ var Kn = [
315
315
  text: z ? I.listening : I.placeholder
316
316
  },
317
317
  onChange: B.handleChange,
318
- onKeyDown: bt,
318
+ onKeyDown: xt,
319
319
  onPaste: Ct,
320
- onFocus: Re?.handleFocus,
321
- onBlur: Re?.handleBlur,
320
+ onFocus: ze?.handleFocus,
321
+ onBlur: ze?.handleBlur,
322
322
  onCursorUpdate: B.updateCursorPosition,
323
323
  onScroll: B.syncHighlightScroll,
324
- highlightSegments: He,
325
- hasOverlay: Ue,
326
- isAutocompleteOpen: Be || Dt,
327
- autocompleteListboxId: Be ? Re?.listboxId : Dt ? Et : void 0,
328
- activeAutocompleteOptionId: (Be ? Re?.activeDescendantId : void 0) ?? kt,
329
- isInvalid: Qe !== null,
324
+ highlightSegments: Ue,
325
+ hasOverlay: We,
326
+ isAutocompleteOpen: Ve || Dt,
327
+ autocompleteListboxId: Ve ? ze?.listboxId : Dt ? Et : void 0,
328
+ activeAutocompleteOptionId: (Ve ? ze?.activeDescendantId : void 0) ?? kt,
329
+ isInvalid: $e !== null,
330
330
  errorMessageId: Tt
331
331
  }),
332
332
  re ? /* @__PURE__ */ Z("div", {
333
333
  className: "flex shrink-0 items-center gap-2 pb-[10px] pl-2",
334
334
  onMouseDown: (e) => e.preventDefault(),
335
- children: [At("sm"), Nt("sm")]
335
+ children: [At("sm"), Mt("sm")]
336
336
  }) : null
337
337
  ]
338
338
  }),
@@ -357,8 +357,8 @@ var Kn = [
357
357
  }, "action-row")
358
358
  }) : Lt
359
359
  ] }), Bt = /* @__PURE__ */ Z(Hn, { children: [
360
- Re?.popover,
361
- /* @__PURE__ */ X(at, {
360
+ ze?.popover,
361
+ /* @__PURE__ */ X(it, {
362
362
  isOpen: Dt,
363
363
  listboxId: Et,
364
364
  label: I.mentionSuggestions,
@@ -441,27 +441,27 @@ var Kn = [
441
441
  children: zt
442
442
  }, "input")
443
443
  })
444
- ] }), Ht = i(Jn, ae);
445
- return ie ? /* @__PURE__ */ X("form", {
446
- ref: se,
444
+ ] }), Vt = i(Jn, oe);
445
+ return ae ? /* @__PURE__ */ X("form", {
446
+ ref: F,
447
447
  "data-testid": de,
448
448
  "data-f0-chat-composer": "",
449
449
  "aria-busy": t,
450
- className: Ht,
450
+ className: Vt,
451
451
  onClick: () => {
452
452
  L || V.current?.focus();
453
453
  },
454
- onFocus: ce,
455
- onBlur: F,
454
+ onFocus: se,
455
+ onBlur: ce,
456
456
  onSubmit: St,
457
457
  children: Bt
458
458
  }) : /* @__PURE__ */ X("div", {
459
- ref: se,
459
+ ref: F,
460
460
  "data-testid": de,
461
461
  "data-f0-chat-composer": "",
462
- className: Ht,
463
- onFocus: ce,
464
- onBlur: F,
462
+ className: Vt,
463
+ onFocus: se,
464
+ onBlur: ce,
465
465
  children: Bt
466
466
  });
467
467
  };
@@ -493,12 +493,12 @@ function Qn(e, t, n = .2) {
493
493
  //#region src/addons/ai/F0AiChatTextArea/components/AttachedFilesList.tsx
494
494
  var $n = (e) => {
495
495
  let { provided: t } = qe();
496
- return t ? /* @__PURE__ */ X(er, { ...e }) : /* @__PURE__ */ X(Et, { children: /* @__PURE__ */ X(er, { ...e }) });
496
+ return t ? /* @__PURE__ */ X(er, { ...e }) : /* @__PURE__ */ X(Ot, { children: /* @__PURE__ */ X(er, { ...e }) });
497
497
  }, er = ({ attachedFiles: e, isUploading: n, onRemove: r, removeLabel: i, reducedMotion: a }) => {
498
498
  let o = t(), s = tr(e), c = q(() => e.flatMap((e) => {
499
499
  let t = s.get(e.id);
500
500
  if (!t) return [];
501
- let n = e.file.name, r = e.file.type || Bt({
501
+ let n = e.file.name, r = e.file.type || Vt({
502
502
  name: n,
503
503
  url: t
504
504
  });
@@ -523,10 +523,10 @@ var $n = (e) => {
523
523
  }];
524
524
  }), [e, s]), l = q(() => c.map(({ att: e, attachment: t }, n) => ({
525
525
  file: t,
526
- item: e.status === "uploaded" ? Xe(t, _t(n, t.url)) : null
527
- })), [c]), u = H(l, "composer"), d = c.map(({ att: e, attachment: t }) => ({
526
+ item: e.status === "uploaded" ? Ye(t, yt(n, t.url)) : null
527
+ })), [c]), u = V(l, "composer"), d = c.map(({ att: e, attachment: t }) => ({
528
528
  id: e.id,
529
- content: /* @__PURE__ */ X(R, {
529
+ content: /* @__PURE__ */ X(ye, {
530
530
  attachment: t,
531
531
  status: e.status === "uploaded" ? "ready" : e.status === "error" ? "error" : "uploading",
532
532
  errorMessage: e.errorMessage,
@@ -536,7 +536,7 @@ var $n = (e) => {
536
536
  testIdPrefix: "ai-chat"
537
537
  })
538
538
  }));
539
- return /* @__PURE__ */ X(Ie, {
539
+ return /* @__PURE__ */ X(Pe, {
540
540
  items: d,
541
541
  label: o.t(e.length === 1 ? "chat.attachmentCount.one" : "chat.attachmentCount.other", { count: e.length }),
542
542
  busy: n,
@@ -566,14 +566,14 @@ var $n = (e) => {
566
566
  u(e), s?.(e);
567
567
  }, f = [...n ? [{
568
568
  label: c.ai.addFilesOrPhotos,
569
- icon: Qe,
569
+ icon: mt,
570
570
  onClick: r,
571
571
  disabled: i,
572
572
  disabledTooltip: a
573
- }, ...e.length > 0 ? [{ type: "separator" }] : []] : [], ...Pe(e)];
573
+ }, ...e.length > 0 ? [{ type: "separator" }] : []] : [], ...H(e)];
574
574
  return /* @__PURE__ */ X("div", {
575
575
  onClick: (e) => e.stopPropagation(),
576
- children: /* @__PURE__ */ X(Ae, {
576
+ children: /* @__PURE__ */ X(De, {
577
577
  items: f,
578
578
  align: "start",
579
579
  disabled: o,
@@ -606,7 +606,7 @@ var $n = (e) => {
606
606
  label: u.ai.attachFile,
607
607
  hideLabel: !0,
608
608
  type: "button",
609
- icon: Qe,
609
+ icon: mt,
610
610
  variant: "ghost",
611
611
  size: "md",
612
612
  disabled: r || d,
@@ -637,7 +637,7 @@ var $n = (e) => {
637
637
  };
638
638
  }, ar = ({ creditWarning: e, children: n }) => {
639
639
  let r = t(), i = ir(e);
640
- return /* @__PURE__ */ X(ae, {
640
+ return /* @__PURE__ */ X(P, {
641
641
  notice: i,
642
642
  dismissLabel: r.ai.creditWarning.dismiss ?? "",
643
643
  className: "[&_form]:border-f1-border",
@@ -799,7 +799,7 @@ function pr({ usage: e, error: n = !1, onOpenChange: r, trigger: o, side: s = "t
799
799
  className: "min-w-0 flex-1 truncate",
800
800
  children: c.t("ai.usageLimits.yourCompany")
801
801
  }), /* @__PURE__ */ X(U, {
802
- icon: vn,
802
+ icon: fn,
803
803
  size: "md",
804
804
  color: "default"
805
805
  })]
@@ -834,7 +834,7 @@ var mr = (e, t) => e || t ? {
834
834
  /* @__PURE__ */ X("div", {
835
835
  className: "flex items-center py-0.5",
836
836
  children: /* @__PURE__ */ X(U, {
837
- icon: je,
837
+ icon: B,
838
838
  size: "md",
839
839
  color: "default"
840
840
  })
@@ -849,7 +849,7 @@ var mr = (e, t) => e || t ? {
849
849
  variant: "ghost",
850
850
  label: r.ai.removeQuote,
851
851
  onClick: n,
852
- icon: xt,
852
+ icon: Be,
853
853
  hideLabel: !0,
854
854
  size: "sm"
855
855
  })
@@ -858,7 +858,7 @@ var mr = (e, t) => e || t ? {
858
858
  });
859
859
  }, gr = ({ cards: e }) => e.length === 0 ? null : /* @__PURE__ */ X("div", {
860
860
  className: "grid w-full grid-cols-2 gap-3",
861
- children: e.slice(0, 4).map((e) => /* @__PURE__ */ X(Fe, {
861
+ children: e.slice(0, 4).map((e) => /* @__PURE__ */ X(Ne, {
862
862
  avatar: {
863
863
  type: "icon",
864
864
  icon: e.icon
@@ -1002,7 +1002,7 @@ function Sr(e) {
1002
1002
  //#endregion
1003
1003
  //#region src/addons/ai/F0AiChatTextArea/AiChatComposer.tsx
1004
1004
  var Cr = "w-full max-w-content px-1";
1005
- function wr({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placeholders: o, creditWarning: s, clarifyingUI: l, pendingContext: u = null, onPendingContextChange: f, pendingQuote: m = null, onPendingQuoteChange: h, fileAttachments: g, toolbarStart: _, composerActions: v, onComposerActionsOpenChange: y, onTranscribe: b, searchPersons: S, mentionSources: C, onProcessFilesRef: w, disclaimer: T, usageLimits: E, footer: D, isWelcomeScreen: O = !1, fullscreen: ee = !1, welcomeScreenSuggestions: k, onSuggestionClick: te, welcomeScreenSuggestionsPlacement: A = "above", welcomeScreenSuggestionsCollapsedByDefault: j = !1, welcomeScreenCards: M, padding: ne = "default", name: re }) {
1005
+ function wr({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placeholders: o, creditWarning: s, clarifyingUI: l, pendingContext: u = null, onPendingContextChange: f, pendingQuote: m = null, onPendingQuoteChange: h, fileAttachments: g, toolbarStart: _, composerActions: v, onComposerActionsOpenChange: y, onTranscribe: b, searchPersons: x, mentionSources: C, onProcessFilesRef: w, disclaimer: T, usageLimits: E, footer: D, isWelcomeScreen: O = !1, fullscreen: k = !1, welcomeScreenSuggestions: ee, onSuggestionClick: te, welcomeScreenSuggestionsPlacement: A = "above", welcomeScreenSuggestionsCollapsedByDefault: j = !1, welcomeScreenCards: M, padding: ne = "default", name: re }) {
1006
1006
  let P = t(), ie = !!p(), ae = J(null), [oe, se] = Y(!1), [ce, le] = Y({
1007
1007
  isEmpty: !0,
1008
1008
  recorder: "idle"
@@ -1010,60 +1010,60 @@ function wr({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placehol
1010
1010
  K(() => () => {
1011
1011
  de.current && clearTimeout(de.current);
1012
1012
  }, []);
1013
- let I = l != null, L = J(u), fe = J(m);
1013
+ let I = l != null, fe = J(u), pe = J(m);
1014
1014
  Vn(() => {
1015
- L.current = u, fe.current = m;
1015
+ fe.current = u, pe.current = m;
1016
1016
  });
1017
- let { tracking: me, setFocusChatInputFunction: he } = F(), { attachedFiles: _e, fileInputRef: ve, onUploadFiles: ye, acceptValue: R, isAtMaxFiles: be, maxFiles: xe, processFiles: z, handleFileSelect: Se, handleRemoveFile: Ce, transientError: we, showTransientError: Te } = Sr(g), Ee = vr({
1018
- searchPersons: S,
1017
+ let { tracking: me, setFocusChatInputFunction: ge } = F(), { attachedFiles: _e, fileInputRef: ve, onUploadFiles: ye, acceptValue: R, isAtMaxFiles: be, maxFiles: xe, processFiles: z, handleFileSelect: Se, handleRemoveFile: Ce, transientError: we, showTransientError: Te } = Sr(g), Ee = vr({
1018
+ searchPersons: x,
1019
1019
  mentionSources: C
1020
1020
  });
1021
1021
  K(() => {
1022
1022
  j || typeof window < "u" && window.location.hash.length === 0 && ae.current?.focus();
1023
1023
  }, []), K(() => {
1024
- if (I) he(null);
1025
- else return he(() => {
1024
+ if (I) ge(null);
1025
+ else return ge(() => {
1026
1026
  ae.current?.focus();
1027
- }), () => he(null);
1028
- }, [I, he]), K(() => {
1027
+ }), () => ge(null);
1028
+ }, [I, ge]), K(() => {
1029
1029
  if (w) return w((e) => {
1030
1030
  z(e);
1031
1031
  }), () => {
1032
1032
  w(null);
1033
1033
  };
1034
1034
  }, [w, z]);
1035
- let De = G((e) => void z(e), [z]), B = _e.filter((e) => e.status === "uploaded"), Oe = _e.some((e) => e.status === "uploading"), ke = _e.some((e) => e.status === "error"), Ae = !ce.isEmpty || B.length > 0, je = async ({ text: t, mentions: n }) => {
1035
+ let De = G((e) => void z(e), [z]), B = _e.filter((e) => e.status === "uploaded"), Oe = _e.some((e) => e.status === "uploading"), ke = _e.some((e) => e.status === "error"), Ae = !ce.isEmpty || B.length > 0, V = async ({ text: t, mentions: n }) => {
1036
1036
  if (ke) return Te(P.ai.fileUploadBlockedSubmit), !1;
1037
1037
  if (a && await a() === !1) return !1;
1038
1038
  let r = B, i = r.flatMap((e) => e.uploadedFile ? [e.uploadedFile] : []), o = u, s = m;
1039
1039
  o && f?.(null), s && h?.(null);
1040
1040
  try {
1041
1041
  await e({
1042
- text: pe(t, n),
1042
+ text: L(t, n),
1043
1043
  files: i,
1044
1044
  context: o,
1045
1045
  quote: s
1046
1046
  });
1047
1047
  } catch {
1048
- return o && (L.current == null || L.current === o) && f?.(o), s && (fe.current == null || fe.current === s) && h?.(s), !1;
1048
+ return o && (fe.current == null || fe.current === o) && f?.(o), s && (pe.current == null || pe.current === s) && h?.(s), !1;
1049
1049
  }
1050
1050
  for (let e of r) Ce(e.id);
1051
1051
  return !0;
1052
- }, V = A === "inside", H = Me(), Ne = N({
1052
+ }, Me = A === "inside", H = je(), Ne = N({
1053
1053
  onItemClick: te,
1054
- inBar: V
1055
- }), Pe = O && k && k.length > 0 && te ? /* @__PURE__ */ X(ge, {
1056
- suggestions: k,
1054
+ inBar: Me
1055
+ }), Pe = O && ee && ee.length > 0 && te ? /* @__PURE__ */ X(he, {
1056
+ suggestions: ee,
1057
1057
  onItemClick: Ne.pick,
1058
1058
  onItemHover: Ne.preview,
1059
- side: V ? "bottom" : "top",
1060
- reserveTwoRows: !V,
1061
- overflow: V ? "scroll" : "wrap"
1059
+ side: Me ? "bottom" : "top",
1060
+ reserveTwoRows: !Me,
1061
+ overflow: Me ? "scroll" : "wrap"
1062
1062
  }) : null, Fe = !j || oe || Ae || ce.recorder !== "idle", Ie = (e) => e instanceof Node ? ue.current?.contains(e) ? !0 : e instanceof Element && e.closest("[data-radix-popper-content-wrapper]") !== null : !1, Le = () => {
1063
1063
  de.current && clearTimeout(de.current), de.current = setTimeout(() => {
1064
1064
  Ie(document.activeElement) || se(!1);
1065
1065
  }, 0);
1066
- }, Re = V, ze = Re && j, Be = ze && !Fe, Ve = Re && Pe ? /* @__PURE__ */ X("div", {
1066
+ }, Re = Me, ze = Re && j, Be = ze && !Fe, Ve = Re && Pe ? /* @__PURE__ */ X("div", {
1067
1067
  onClick: (e) => e.stopPropagation(),
1068
1068
  children: Pe
1069
1069
  }) : void 0, He = {
@@ -1074,17 +1074,17 @@ function wr({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placehol
1074
1074
  .2,
1075
1075
  1
1076
1076
  ]
1077
- }, Ue = O && ee && !!M && M.length > 0, We = ee && O, Ge = We || !H?.inBar, Ke = We ? null : mr(T, E), qe = I || !!(Ke?.text || Ke?.trailing), { motionProps: Je } = Qn(O, 160, .5);
1077
+ }, Ue = O && k && !!M && M.length > 0, We = k && O, Ge = We || !H?.inBar, Ke = We ? null : mr(T, E), qe = I || !!(Ke?.text || Ke?.trailing), { motionProps: Je } = Qn(O, 160, .5);
1078
1078
  return /* @__PURE__ */ Z(c.div, {
1079
1079
  "data-composer-layout": We ? "welcome" : "docked",
1080
1080
  className: i("flex flex-col items-center", ne === "default" && "px-4 pb-3 pt-2", We && "min-h-0 flex-1 justify-start"),
1081
- ...ee ? Je : {},
1081
+ ...k ? Je : {},
1082
1082
  children: [
1083
1083
  /* @__PURE__ */ Z("div", {
1084
1084
  className: i("flex flex-col gap-2", Cr),
1085
1085
  children: [
1086
- D && !ee ? D : null,
1087
- Pe && !V ? /* @__PURE__ */ X("div", { children: j ? /* @__PURE__ */ X(d, {
1086
+ D && !k ? D : null,
1087
+ Pe && !Me ? /* @__PURE__ */ X("div", { children: j ? /* @__PURE__ */ X(d, {
1088
1088
  initial: !1,
1089
1089
  children: Fe ? /* @__PURE__ */ X(c.div, {
1090
1090
  className: "overflow-hidden",
@@ -1115,7 +1115,7 @@ function wr({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placehol
1115
1115
  onSurfaceFocus: () => se(!0),
1116
1116
  onSurfaceBlur: Le,
1117
1117
  onStateChange: le,
1118
- onSend: je,
1118
+ onSend: V,
1119
1119
  inProgress: r,
1120
1120
  onStop: n,
1121
1121
  hasAttachments: B.length > 0,
@@ -1164,7 +1164,7 @@ function wr({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placehol
1164
1164
  }),
1165
1165
  leading: Re ? /* @__PURE__ */ X("div", {
1166
1166
  className: "flex shrink-0 self-center pl-3",
1167
- children: /* @__PURE__ */ X(x, {
1167
+ children: /* @__PURE__ */ X(S, {
1168
1168
  size: "sm",
1169
1169
  spin: r
1170
1170
  })
@@ -1212,7 +1212,7 @@ function wr({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placehol
1212
1212
  className: i("mt-2 pt-2", Cr),
1213
1213
  children: /* @__PURE__ */ X(gr, { cards: M })
1214
1214
  }) : null,
1215
- D && O && ee ? /* @__PURE__ */ X("div", {
1215
+ D && O && k ? /* @__PURE__ */ X("div", {
1216
1216
  className: "mx-auto mt-2 flex w-full max-w-content justify-center py-4",
1217
1217
  children: D
1218
1218
  }) : null
@@ -1326,12 +1326,12 @@ function Vr({ children: e, ...t }) {
1326
1326
  //#endregion
1327
1327
  //#region src/addons/ai/markdown/Image.tsx
1328
1328
  function Hr({ src: e, alt: n, ...r }) {
1329
- let o = t(), s = de(), c = fe(), l = j(e || void 0), [u, d] = Y(!1), [f, p] = Y(!1), m = n || (e ? it(e) : "") || "image";
1329
+ let o = t(), s = le(), c = I(), l = j(e || void 0), [u, d] = Y(!1), [f, p] = Y(!1), m = n || (e ? nt(e) : "") || "image";
1330
1330
  if (!e || u || l.status === "error") return n ? /* @__PURE__ */ X("span", {
1331
1331
  className: "text-f1-foreground-secondary",
1332
1332
  children: n
1333
1333
  }) : null;
1334
- let h = l.status === "ready" ? /* @__PURE__ */ X(lt, {
1334
+ let h = l.status === "ready" ? /* @__PURE__ */ X(ct, {
1335
1335
  ...r,
1336
1336
  src: l.url,
1337
1337
  alt: n,
@@ -1359,7 +1359,7 @@ function Hr({ src: e, alt: n, ...r }) {
1359
1359
  variant: "neutral",
1360
1360
  label: o.chat.download,
1361
1361
  hideLabel: !0,
1362
- icon: be,
1362
+ icon: Ze,
1363
1363
  onClick: () => c(e, m)
1364
1364
  })
1365
1365
  })]
@@ -1468,7 +1468,7 @@ var Zr = (e) => Array.from(e.querySelector("tr")?.children ?? []), Qr = (e) => {
1468
1468
  //#endregion
1469
1469
  //#region src/addons/ai/markdown/useOneLineWidth.ts
1470
1470
  function ti(e, t) {
1471
- let n = J(null), r = Nt(), [i, a] = Y();
1471
+ let n = J(null), r = Ue(), [i, a] = Y();
1472
1472
  return Vn(function() {
1473
1473
  if (!t || !n.current) return;
1474
1474
  let e = parseFloat(getComputedStyle(n.current, "::before").width);
@@ -1496,11 +1496,11 @@ var ni = (e) => An.toArray(e).filter((e) => Fn(e)), ri = (e) => ni(e.props.child
1496
1496
  return t;
1497
1497
  };
1498
1498
  async function ai({ header: e, rows: t }, n, r) {
1499
- let i = (e.length > 0 ? [e, ...t] : t).map((e) => e.map((e) => Kt(Xr(e)))), a = n === "xlsx" ? await b([{
1499
+ let i = (e.length > 0 ? [e, ...t] : t).map((e) => e.map((e) => Gt(Xr(e)))), a = n === "xlsx" ? await x([{
1500
1500
  name: "Data",
1501
1501
  rows: i
1502
- }]) : await le(i);
1503
- xe(a, `${r}.${n}`);
1502
+ }]) : await se(i);
1503
+ R(a, `${r}.${n}`);
1504
1504
  }
1505
1505
  var oi = (e, t, n) => e ? {
1506
1506
  role: "region",
@@ -1513,27 +1513,27 @@ function si({ children: e, title: n, ...r }) {
1513
1513
  ai(ii(e), t, r);
1514
1514
  }, h = /* @__PURE__ */ Z("div", {
1515
1515
  className: "-ml-2 flex gap-1 pt-1",
1516
- children: [/* @__PURE__ */ X(Ae, {
1516
+ children: [/* @__PURE__ */ X(De, {
1517
1517
  items: [{
1518
1518
  label: o.t("ai.dataDownload.download", { format: "Excel" }),
1519
- icon: be,
1519
+ icon: Ze,
1520
1520
  onClick: () => f("xlsx")
1521
1521
  }, {
1522
1522
  label: o.t("ai.dataDownload.download", { format: "CSV" }),
1523
- icon: be,
1523
+ icon: Ze,
1524
1524
  onClick: () => f("csv")
1525
1525
  }],
1526
1526
  children: /* @__PURE__ */ X(m, {
1527
1527
  variant: "ghost",
1528
1528
  size: "sm",
1529
- icon: be,
1529
+ icon: Ze,
1530
1530
  label: o.ai.dataDownload.title,
1531
1531
  className: "text-f1-foreground-secondary hover:text-f1-foreground"
1532
1532
  })
1533
1533
  }), l && (c.after > 0 || c.left) ? /* @__PURE__ */ X(m, {
1534
1534
  variant: "ghost",
1535
1535
  size: "sm",
1536
- icon: c.after > 0 ? Lt : dn,
1536
+ icon: c.after > 0 ? te : pn,
1537
1537
  iconPosition: c.after > 0 ? "right" : "left",
1538
1538
  label: c.after > 0 ? o.t(c.after === 1 ? "ai.aiTable.moreColumns.one" : "ai.aiTable.moreColumns.other", { count: c.after }) : o.ai.aiTable.backToStart,
1539
1539
  className: "text-f1-foreground-secondary hover:text-f1-foreground",
@@ -1627,14 +1627,14 @@ function gi({ id: e, trigger: t, resolver: n, contentClassName: r = "w-64", ...a
1627
1627
  onOpenChange: (e) => {
1628
1628
  e && s();
1629
1629
  },
1630
- children: [/* @__PURE__ */ X(mn, {
1630
+ children: [/* @__PURE__ */ X(hn, {
1631
1631
  asChild: !0,
1632
1632
  children: t
1633
1633
  }), /* @__PURE__ */ X(yn, {
1634
1634
  side: "top",
1635
1635
  align: "start",
1636
1636
  className: i(r, "rounded-2xl border-none bg-f1-background p-0 text-f1-foreground shadow-md"),
1637
- children: a.renderCard ? a.renderCard(o) : o.status === "loading" ? /* @__PURE__ */ X(Fe.Skeleton, {}) : /* @__PURE__ */ X(Fe, { ...o.status === "ready" ? a.mapToCard(o.data) : a.fallbackCard })
1637
+ children: a.renderCard ? a.renderCard(o) : o.status === "loading" ? /* @__PURE__ */ X(Ne.Skeleton, {}) : /* @__PURE__ */ X(Ne, { ...o.status === "ready" ? a.mapToCard(o.data) : a.fallbackCard })
1638
1638
  })]
1639
1639
  });
1640
1640
  }
@@ -1749,7 +1749,7 @@ function Si({ id: e, label: n }) {
1749
1749
  let { entityRefs: r } = F(), i = r?.resolvers?.expense, a = t(), o = r?.urls?.expense?.(e), s = q(() => (e) => ({
1750
1750
  avatar: {
1751
1751
  type: "icon",
1752
- icon: At
1752
+ icon: $e
1753
1753
  },
1754
1754
  title: e.description || `Expense #${e.id}`,
1755
1755
  description: [e.amount, e.status].filter(Boolean).join(" · "),
@@ -1829,7 +1829,7 @@ function Ei({ id: e, label: t }) {
1829
1829
  resolver: r,
1830
1830
  contentClassName: "w-72",
1831
1831
  renderCard: (e) => {
1832
- if (e.status !== "ready") return /* @__PURE__ */ X(_e, {
1832
+ if (e.status !== "ready") return /* @__PURE__ */ X(ge, {
1833
1833
  name: t,
1834
1834
  avatar: {
1835
1835
  type: "person",
@@ -1840,7 +1840,7 @@ function Ei({ id: e, label: t }) {
1840
1840
  profileHref: i
1841
1841
  });
1842
1842
  let n = e.data;
1843
- return /* @__PURE__ */ X(_e, {
1843
+ return /* @__PURE__ */ X(ge, {
1844
1844
  name: `${n.firstName} ${n.lastName}`,
1845
1845
  avatar: {
1846
1846
  type: "person",
@@ -2095,7 +2095,7 @@ var Vi = (e) => typeof e == "object" && !!e, Q = (e) => typeof e == "string" &&
2095
2095
  return i ? `${r}.${i}` : r;
2096
2096
  }
2097
2097
  let n = t.split("?")[1], r = n ? new URLSearchParams(n.split("#")[0]).get("path") : null;
2098
- return it(r ?? t) || e || "file";
2098
+ return nt(r ?? t) || e || "file";
2099
2099
  }, Ui = (e, t) => e.startsWith("data:") ? e : `data:${t ?? "application/octet-stream"};base64,${e}`, Wi = (e, t) => {
2100
2100
  let n = Q(e.data), r = Q(e.url) ?? (n ? Ui(n, t) : void 0);
2101
2101
  if (!r) return null;
@@ -2146,11 +2146,11 @@ var Vi = (e) => typeof e == "object" && !!e, Q = (e) => typeof e == "string" &&
2146
2146
  if (n.length !== 0) return t === "user" ? n[n.length - 1] : n.join("\n\n");
2147
2147
  }, Qi = (e, { urlFor: t } = {}) => ({
2148
2148
  url: e.url ?? t?.(e.path) ?? e.path,
2149
- name: e.displayName || it(e.path),
2149
+ name: e.displayName || nt(e.path),
2150
2150
  mimeType: e.mimeType,
2151
2151
  size: e.bytes,
2152
2152
  previewUrl: e.preview ? t?.(e.preview.path) ?? e.preview.url : void 0
2153
- }), $i = (e) => Bt(e) ?? "", ea = Mn(!1), ta = () => Ln(ea), na = (e, t) => {
2153
+ }), $i = (e) => Vt(e) ?? "", ea = Mn(!1), ta = () => Ln(ea), na = (e, t) => {
2154
2154
  let [n, r] = Y(() => t ? null : new Set(e));
2155
2155
  return t && n !== null ? r(null) : !t && n === null && r(new Set(e)), (e) => e !== void 0 && n !== null && !n.has(e);
2156
2156
  }, ra = kn.settleMs, ia = 1e3, aa = 2, oa = "data-ai-anchor", sa = "data-turn-index", ca = (e) => {
@@ -2460,7 +2460,7 @@ function Fa(e) {
2460
2460
  return e && e.charAt(0).toUpperCase() + e.slice(1);
2461
2461
  }
2462
2462
  function Ia(e) {
2463
- let { days: t, hours: n, minutes: r, seconds: i } = gt(e), a = [];
2463
+ let { days: t, hours: n, minutes: r, seconds: i } = vt(e), a = [];
2464
2464
  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(" ");
2465
2465
  }
2466
2466
  function La(e) {
@@ -2579,7 +2579,7 @@ function Va({ formName: e, formDescription: t, module: n, cardTitle: r, cardDesc
2579
2579
  },
2580
2580
  children: y.length > 0 && !g ? /* @__PURE__ */ X("div", {
2581
2581
  className: "-mx-3 flex w-full flex-col overflow-hidden pb-1",
2582
- children: /* @__PURE__ */ X(me, {
2582
+ children: /* @__PURE__ */ X(fe, {
2583
2583
  details: y.map((e) => ({
2584
2584
  title: e.label,
2585
2585
  content: e.content,
@@ -2596,7 +2596,7 @@ Va.displayName = "FormCard";
2596
2596
  //#endregion
2597
2597
  //#region src/addons/ai/F0AiMessagesContainer/components/ActiveFormCard.tsx
2598
2598
  function Ha() {
2599
- let e = Le(), t = e?.activeForm;
2599
+ let e = Fe(), t = e?.activeForm;
2600
2600
  if (!t) return null;
2601
2601
  let n = t.cardTitle, r = t.cardDescription, i = (e?.getFillVersion(t.formName) ?? 0) > 0;
2602
2602
  return !n || !r || !i ? null : /* @__PURE__ */ X("div", {
@@ -2615,7 +2615,7 @@ function Ha() {
2615
2615
  //#endregion
2616
2616
  //#region src/addons/ai/F0AiFileAttachments/components/FileCanvasCards.tsx
2617
2617
  var Ua = 625, Wa = /* @__PURE__ */ new Set(), Ga = ({ documents: e, onOpenFile: t, onCanvasUnavailable: n }) => {
2618
- let { canvasContent: r, tryOpenCanvas: i, dismissCanvas: a, panelOverlays: o } = F(), s = z(), c = ta(), l = e.map((e) => e.file), u = (r, { fallback: a = !0 } = {}) => {
2618
+ let { canvasContent: r, tryOpenCanvas: i, dismissCanvas: a, panelOverlays: o } = F(), s = xe(), c = ta(), l = e.map((e) => e.file), u = (r, { fallback: a = !0 } = {}) => {
2619
2619
  let o = e[r];
2620
2620
  o && t?.(o.file, "document", { documentKind: o.documentKind }) !== !1 && !i(Ke({
2621
2621
  files: l,
@@ -2637,7 +2637,7 @@ var Ua = 625, Wa = /* @__PURE__ */ new Set(), Ga = ({ documents: e, onOpenFile:
2637
2637
  className: "flex w-full max-w-sm flex-col gap-2",
2638
2638
  "data-testid": "ai-chat-file-canvas-cards",
2639
2639
  children: e.map(({ file: e }, t) => {
2640
- let n = kt(r, e.url);
2640
+ let n = At(r, e.url);
2641
2641
  return /* @__PURE__ */ X("div", {
2642
2642
  "data-active": n || void 0,
2643
2643
  "data-testid": "ai-chat-file-canvas-card",
@@ -2664,7 +2664,7 @@ var Ua = 625, Wa = /* @__PURE__ */ new Set(), Ga = ({ documents: e, onOpenFile:
2664
2664
  });
2665
2665
  }, Ka = "rounded-xl", qa = "ai-chat", Ja = (e) => {
2666
2666
  let { provided: t } = qe();
2667
- return t ? /* @__PURE__ */ X(Za, { ...e }) : /* @__PURE__ */ X(Et, { children: /* @__PURE__ */ X(Za, { ...e }) });
2667
+ return t ? /* @__PURE__ */ X(Za, { ...e }) : /* @__PURE__ */ X(Ot, { children: /* @__PURE__ */ X(Za, { ...e }) });
2668
2668
  }, Ya = {
2669
2669
  image: 0,
2670
2670
  video: 1,
@@ -2672,11 +2672,11 @@ var Ua = 625, Wa = /* @__PURE__ */ new Set(), Ga = ({ documents: e, onOpenFile:
2672
2672
  audio: 3,
2673
2673
  file: 4
2674
2674
  }, Xa = (e) => e.bucket === "image" || e.bucket === "video" || e.bucket === "audio" || e.bucket === "document" ? e.bucket : "file", Za = ({ files: e, align: t = "start", onOpenFile: n, onFileDownloaded: r, size: i = "default", opensIn: a }) => {
2675
- let { remotePreviews: o } = qe(), s = Ne(), c = i === "default" && (a ?? (t === "start" && s ? "canvas" : "viewer")) === "canvas", [l, u] = Y(() => /* @__PURE__ */ new Set()), d = q(() => Qa(e, o, l), [
2675
+ let { remotePreviews: o } = qe(), s = Me(), c = i === "default" && (a ?? (t === "start" && s ? "canvas" : "viewer")) === "canvas", [l, u] = Y(() => /* @__PURE__ */ new Set()), d = q(() => Qa(e, o, l), [
2676
2676
  e,
2677
2677
  o,
2678
2678
  l
2679
- ]), f = q(() => i === "compact" ? d : [...d].sort((e, t) => Ya[e.cls.bucket] - Ya[t.cls.bucket]), [d, i]), p = H(f, "transcript");
2679
+ ]), f = q(() => i === "compact" ? d : [...d].sort((e, t) => Ya[e.cls.bucket] - Ya[t.cls.bucket]), [d, i]), p = V(f, "transcript");
2680
2680
  return e.length === 0 ? null : X(i === "compact" ? to : eo, {
2681
2681
  entries: d,
2682
2682
  canvas: c,
@@ -2689,12 +2689,12 @@ var Ua = 625, Wa = /* @__PURE__ */ new Set(), Ga = ({ documents: e, onOpenFile:
2689
2689
  onImageError: (e) => u((t) => new Set(t).add(e.url))
2690
2690
  });
2691
2691
  }, Qa = (e, t, n) => e.map((e, r) => {
2692
- let i = Pt(e), a = !(t || qt(e.url)) || i.bucket === "file" || i.bucket === "image" && n.has(e.url);
2692
+ let i = Ft(e), a = !(t || Kt(e.url)) || i.bucket === "file" || i.bucket === "image" && n.has(e.url);
2693
2693
  return {
2694
2694
  file: e,
2695
2695
  cls: i,
2696
2696
  generic: a,
2697
- item: a ? null : Xe(e, _t(r, e.url))
2697
+ item: a ? null : Ye(e, yt(r, e.url))
2698
2698
  };
2699
2699
  }), $a = ({ align: e, compact: t = !1, children: n }) => /* @__PURE__ */ X("div", {
2700
2700
  className: i("flex w-full min-w-0 flex-col gap-1.5", e === "end" ? "items-end" : "items-start"),
@@ -2726,8 +2726,8 @@ var Ua = 625, Wa = /* @__PURE__ */ new Set(), Ga = ({ documents: e, onOpenFile:
2726
2726
  }) : null,
2727
2727
  c.map((e, t) => {
2728
2728
  let { file: n, cls: r } = e, i = `${n.name}-${t}`;
2729
- return r.bucket === "video" ? /* @__PURE__ */ X(It, {
2730
- file: k(n),
2729
+ return r.bucket === "video" ? /* @__PURE__ */ X(Lt, {
2730
+ file: A(n),
2731
2731
  cornerClass: "rounded-xl",
2732
2732
  testIdPrefix: qa,
2733
2733
  onDownloaded: () => s?.(n)
@@ -2735,8 +2735,8 @@ var Ua = 625, Wa = /* @__PURE__ */ new Set(), Ga = ({ documents: e, onOpenFile:
2735
2735
  }),
2736
2736
  f || t ? null : d.map((e, t) => {
2737
2737
  let { file: n, cls: i } = e;
2738
- return i.bucket === "document" ? /* @__PURE__ */ X(ht, {
2739
- file: k(n),
2738
+ return i.bucket === "document" ? /* @__PURE__ */ X(_t, {
2739
+ file: A(n),
2740
2740
  kind: i.kind,
2741
2741
  cornerClass: "rounded-xl",
2742
2742
  testIdPrefix: qa,
@@ -2748,8 +2748,8 @@ var Ua = 625, Wa = /* @__PURE__ */ new Set(), Ga = ({ documents: e, onOpenFile:
2748
2748
  onDownloaded: () => s?.(n)
2749
2749
  }, `${n.name}-${t}`) : null;
2750
2750
  }),
2751
- c.map((e, t) => e.cls.bucket === "audio" ? /* @__PURE__ */ X(D, {
2752
- file: k(e.file),
2751
+ c.map((e, t) => e.cls.bucket === "audio" ? /* @__PURE__ */ X(k, {
2752
+ file: A(e.file),
2753
2753
  testIdPrefix: qa,
2754
2754
  onDownloaded: () => s?.(e.file)
2755
2755
  }, `${e.file.name}-${t}`) : null),
@@ -2759,8 +2759,8 @@ var Ua = 625, Wa = /* @__PURE__ */ new Set(), Ga = ({ documents: e, onOpenFile:
2759
2759
  "data-testid": f ? `${qa}-file-shelf` : void 0,
2760
2760
  children: [g.length > 0 ? g.map((e, t) => {
2761
2761
  let { file: n, cls: i } = e;
2762
- return i.bucket === "document" ? /* @__PURE__ */ X(ht, {
2763
- file: k(n),
2762
+ return i.bucket === "document" ? /* @__PURE__ */ X(_t, {
2763
+ file: A(n),
2764
2764
  kind: i.kind,
2765
2765
  cornerClass: "rounded-xl",
2766
2766
  compact: !0,
@@ -2795,12 +2795,12 @@ var Ua = 625, Wa = /* @__PURE__ */ new Set(), Ga = ({ documents: e, onOpenFile:
2795
2795
  }, c) : s.bucket === "video" ? /* @__PURE__ */ X(ao, {
2796
2796
  file: i,
2797
2797
  onOpen: () => n(e)
2798
- }, c) : s.bucket === "audio" ? /* @__PURE__ */ X(C, {
2799
- file: k(i),
2798
+ }, c) : s.bucket === "audio" ? /* @__PURE__ */ X(w, {
2799
+ file: A(i),
2800
2800
  testIdPrefix: qa,
2801
2801
  onOpen: () => n(e)
2802
- }, c) : s.bucket === "document" ? /* @__PURE__ */ X(ht, {
2803
- file: k(i),
2802
+ }, c) : s.bucket === "document" ? /* @__PURE__ */ X(_t, {
2803
+ file: A(i),
2804
2804
  kind: s.kind,
2805
2805
  cornerClass: "rounded-xl",
2806
2806
  compact: !0,
@@ -2814,17 +2814,17 @@ var Ua = 625, Wa = /* @__PURE__ */ new Set(), Ga = ({ documents: e, onOpenFile:
2814
2814
  })
2815
2815
  })
2816
2816
  }), no = ({ file: e, onFileDownloaded: n }) => {
2817
- let r = t(), i = fe(), a = $i(e);
2818
- return /* @__PURE__ */ X(Ye, {
2817
+ let r = t(), i = I(), a = $i(e);
2818
+ return /* @__PURE__ */ X(Je, {
2819
2819
  file: {
2820
2820
  ...e,
2821
2821
  mimeType: a
2822
2822
  },
2823
- icon: a === "application/zip" ? ee : void 0,
2823
+ icon: a === "application/zip" ? pe : void 0,
2824
2824
  testId: `${qa}-file-tile`,
2825
2825
  action: {
2826
2826
  label: r.t("chat.downloadNamedFile", { name: e.name }),
2827
- icon: be,
2827
+ icon: Ze,
2828
2828
  onClick: () => {
2829
2829
  i(e.url, e.name), n?.(e);
2830
2830
  }
@@ -2832,14 +2832,14 @@ var Ua = 625, Wa = /* @__PURE__ */ new Set(), Ga = ({ documents: e, onOpenFile:
2832
2832
  });
2833
2833
  }, ro = "relative box-border h-[132px] w-[168px] shrink-0 overflow-hidden rounded-xl border border-solid border-f1-border-secondary bg-f1-background-secondary p-0 transition-opacity hover:opacity-90", io = ({ file: e, onOpen: n, onError: r }) => {
2834
2834
  let o = t(), s = j(e.thumbnailUrl ?? e.url);
2835
- return ve(s.status, r), /* @__PURE__ */ X("button", {
2835
+ return _e(s.status, r), /* @__PURE__ */ X("button", {
2836
2836
  type: "button",
2837
2837
  onClick: n,
2838
2838
  draggable: !1,
2839
2839
  "aria-label": o.t("chat.openNamedDocument", { name: e.name }),
2840
2840
  className: i(ro, a()),
2841
2841
  "data-testid": "ai-chat-image-attachment",
2842
- children: s.status === "ready" ? /* @__PURE__ */ X(lt, {
2842
+ children: s.status === "ready" ? /* @__PURE__ */ X(ct, {
2843
2843
  src: s.url,
2844
2844
  alt: e.name,
2845
2845
  draggable: !1,
@@ -2848,26 +2848,26 @@ var Ua = 625, Wa = /* @__PURE__ */ new Set(), Ga = ({ documents: e, onOpenFile:
2848
2848
  }) : null
2849
2849
  });
2850
2850
  }, ao = ({ file: e, onOpen: n }) => {
2851
- let r = t(), { urlCache: o } = z(), s = j(e.thumbnailUrl), c = !e.thumbnailUrl && o === null, [l, u] = Y(!1);
2851
+ let r = t(), { urlCache: o } = xe(), s = j(e.thumbnailUrl), c = !e.thumbnailUrl && o === null, [l, u] = Y(!1);
2852
2852
  return /* @__PURE__ */ Z("button", {
2853
2853
  type: "button",
2854
2854
  onClick: n,
2855
2855
  "aria-label": r.t("chat.videoPlayerLabel", { name: e.name }),
2856
2856
  className: i(ro, a()),
2857
2857
  "data-testid": "ai-chat-video-attachment",
2858
- children: [!l && (s.status === "ready" || c) ? /* @__PURE__ */ X($e, {
2858
+ children: [!l && (s.status === "ready" || c) ? /* @__PURE__ */ X(Qe, {
2859
2859
  url: e.url,
2860
2860
  posterUrl: s.status === "ready" ? s.url : void 0,
2861
2861
  onError: () => u(!0)
2862
2862
  }) : null, /* @__PURE__ */ X(v, {})]
2863
2863
  });
2864
2864
  }, oo = ({ images: e, onOpen: n, onImageError: r }) => {
2865
- let a = t(), o = e.length === 1 ? e[0] : void 0, s = j(o ? o.thumbnailUrl ?? o.url : void 0), c = Rt(o && s.status === "ready" ? s.url : void 0, o) ?? void 0, l = o ? Ue(c?.width, c?.height) : null;
2865
+ let a = t(), o = e.length === 1 ? e[0] : void 0, s = j(o ? o.thumbnailUrl ?? o.url : void 0), c = Rt(o && s.status === "ready" ? s.url : void 0, o) ?? void 0, l = o ? He(c?.width, c?.height) : null;
2866
2866
  return /* @__PURE__ */ X("div", {
2867
2867
  style: l ? { width: l.width } : void 0,
2868
- className: i("grid grid-cols-2 overflow-hidden border border-solid border-f1-border-secondary", l ? "max-w-full" : He, Ot, Ka),
2868
+ className: i("grid grid-cols-2 overflow-hidden border border-solid border-f1-border-secondary", l ? "max-w-full" : Ve, kt, Ka),
2869
2869
  "data-testid": "ai-chat-image-album",
2870
- children: Ht(c ? [c] : e).map((t, o, s) => {
2870
+ children: Ut(c ? [c] : e).map((t, o, s) => {
2871
2871
  let c = e[t.index];
2872
2872
  if (!c) return null;
2873
2873
  let l = o === s.length - 1;
@@ -2888,7 +2888,7 @@ var Ua = 625, Wa = /* @__PURE__ */ new Set(), Ga = ({ documents: e, onOpenFile:
2888
2888
  testIdPrefix: qa,
2889
2889
  overlay: t.hiddenCount > 0 ? /* @__PURE__ */ X("span", {
2890
2890
  "aria-hidden": !0,
2891
- className: i("absolute inset-0 flex items-center justify-center text-2xl font-semibold text-f1-foreground-inverse", mt),
2891
+ className: i("absolute inset-0 flex items-center justify-center text-2xl font-semibold text-f1-foreground-inverse", ht),
2892
2892
  "data-testid": "ai-chat-image-album-more",
2893
2893
  children: `+${t.hiddenCount}`
2894
2894
  }) : void 0
@@ -2967,7 +2967,7 @@ function mo({ anchor: e, onReply: n }) {
2967
2967
  type: "button",
2968
2968
  variant: "ghost",
2969
2969
  label: c,
2970
- icon: B,
2970
+ icon: M,
2971
2971
  onClick: () => {
2972
2972
  n(e.text);
2973
2973
  }
@@ -2976,7 +2976,7 @@ function mo({ anchor: e, onReply: n }) {
2976
2976
  }
2977
2977
  //#endregion
2978
2978
  //#region src/addons/ai/F0AiMessagesContainer/components/AssistantMessage.tsx
2979
- var ho = Mn(void 0), go = () => Ln(ho), _o = (e) => /* @__PURE__ */ X(w, {
2979
+ var ho = Mn(void 0), go = () => Ln(ho), _o = (e) => /* @__PURE__ */ X(T, {
2980
2980
  content: e,
2981
2981
  format: "markdown"
2982
2982
  }), vo = ({ isGenerating: e, isLoading: t, isLive: n = !1, message: r, renderToolCall: i, onReplyQuote: a, onRendered: o, renderMarkdown: s }) => {
@@ -3041,7 +3041,7 @@ var ho = Mn(void 0), go = () => Ln(ho), _o = (e) => /* @__PURE__ */ X(w, {
3041
3041
  return document.addEventListener("keydown", e), () => {
3042
3042
  document.removeEventListener("keydown", e);
3043
3043
  };
3044
- }, [d]), /* @__PURE__ */ X(Re, {
3044
+ }, [d]), /* @__PURE__ */ X(Ie, {
3045
3045
  position: "center",
3046
3046
  isOpen: !0,
3047
3047
  onClose: f,
@@ -3058,7 +3058,7 @@ var ho = Mn(void 0), go = () => Ln(ho), _o = (e) => /* @__PURE__ */ X(w, {
3058
3058
  },
3059
3059
  children: /* @__PURE__ */ X("div", {
3060
3060
  className: "flex flex-col gap-6",
3061
- children: /* @__PURE__ */ X(Tt, {
3061
+ children: /* @__PURE__ */ X(Dt, {
3062
3062
  autoFocus: !0,
3063
3063
  label: l,
3064
3064
  placeholder: u,
@@ -3074,7 +3074,7 @@ var ho = Mn(void 0), go = () => Ln(ho), _o = (e) => /* @__PURE__ */ X(w, {
3074
3074
  return /* @__PURE__ */ Z("div", {
3075
3075
  className: i("-ml-2 -mt-1 flex items-center", !a && f === null && "opacity-0 transition-opacity duration-150 focus-within:opacity-100 group-hover/turn:opacity-100 motion-reduce:transition-none [@media(hover:none)]:opacity-100"),
3076
3076
  children: [
3077
- /* @__PURE__ */ X(O, {
3077
+ /* @__PURE__ */ X(ee, {
3078
3078
  size: "md",
3079
3079
  variant: "ghost",
3080
3080
  valueToCopy: e,
@@ -3095,7 +3095,7 @@ var ho = Mn(void 0), go = () => Ln(ho), _o = (e) => /* @__PURE__ */ X(w, {
3095
3095
  className: "flex min-w-0 flex-1 items-center justify-center gap-1",
3096
3096
  children: /* @__PURE__ */ X(U, {
3097
3097
  size: "md",
3098
- icon: f === "like" ? De : te,
3098
+ icon: f === "like" ? D : me,
3099
3099
  color: "default"
3100
3100
  })
3101
3101
  })
@@ -3113,7 +3113,7 @@ var ho = Mn(void 0), go = () => Ln(ho), _o = (e) => /* @__PURE__ */ X(w, {
3113
3113
  className: "flex min-w-0 flex-1 items-center justify-center gap-1",
3114
3114
  children: /* @__PURE__ */ X(U, {
3115
3115
  size: "md",
3116
- icon: f === "dislike" ? T : he,
3116
+ icon: f === "dislike" ? lt : y,
3117
3117
  color: "default"
3118
3118
  })
3119
3119
  })
@@ -3130,7 +3130,7 @@ var ho = Mn(void 0), go = () => Ln(ho), _o = (e) => /* @__PURE__ */ X(w, {
3130
3130
  className: "flex min-w-0 flex-1 items-center justify-center gap-1",
3131
3131
  children: /* @__PURE__ */ X(U, {
3132
3132
  size: "md",
3133
- icon: Te,
3133
+ icon: E,
3134
3134
  color: "default"
3135
3135
  })
3136
3136
  })
@@ -3191,11 +3191,11 @@ function xo() {
3191
3191
  //#region src/addons/ai/F0AiMessagesContainer/components/rail.ts
3192
3192
  var So = "-ml-1 flex w-5 shrink-0 flex-col items-center", Co = "w-px shrink-0 bg-f1-border-secondary", wo = ({ icon: e, title: t, children: n, open: r, onOpenChange: a, disabled: o = !1 }) => {
3193
3193
  let s = p();
3194
- return /* @__PURE__ */ Z(bt, {
3194
+ return /* @__PURE__ */ Z(ze, {
3195
3195
  className: "mb-1 w-full",
3196
3196
  open: r,
3197
3197
  onOpenChange: a,
3198
- children: [/* @__PURE__ */ Z(Ve, {
3198
+ children: [/* @__PURE__ */ Z(Et, {
3199
3199
  disabled: o,
3200
3200
  className: i("group/rail flex w-full items-start gap-1.5 text-left text-base text-f1-foreground-secondary", !o && "transition-colors duration-150 hover:text-f1-foreground"),
3201
3201
  children: [e ? /* @__PURE__ */ X("span", {
@@ -3207,12 +3207,12 @@ var So = "-ml-1 flex w-5 shrink-0 flex-col items-center", Co = "w-px shrink-0 bg
3207
3207
  children: /* @__PURE__ */ Z("span", { children: [t, o ? null : /* @__PURE__ */ X("span", {
3208
3208
  className: "ml-[3px] inline-flex align-middle group-data-[state=open]/rail:rotate-90",
3209
3209
  children: /* @__PURE__ */ X(U, {
3210
- icon: vn,
3210
+ icon: fn,
3211
3211
  size: "sm"
3212
3212
  })
3213
3213
  })] })
3214
3214
  })]
3215
- }), /* @__PURE__ */ X(st, {
3215
+ }), /* @__PURE__ */ X(gt, {
3216
3216
  forceMount: !0,
3217
3217
  className: "data-[state=open]:mt-1.5",
3218
3218
  children: /* @__PURE__ */ X(c.div, {
@@ -3246,11 +3246,11 @@ function To({ step: e, last: t }) {
3246
3246
  className: "flex gap-1.5",
3247
3247
  children: [/* @__PURE__ */ Z("span", {
3248
3248
  className: i(So, "pt-0.5"),
3249
- children: [n ? /* @__PURE__ */ X(vt, {
3249
+ children: [n ? /* @__PURE__ */ X(bt, {
3250
3250
  variant: "thinking",
3251
3251
  size: 15
3252
3252
  }) : /* @__PURE__ */ X(U, {
3253
- icon: tt,
3253
+ icon: pt,
3254
3254
  size: "sm",
3255
3255
  color: "secondary"
3256
3256
  }), t ? null : /* @__PURE__ */ X("span", {
@@ -3330,7 +3330,7 @@ var jo = (e, t) => {
3330
3330
  function Mo({ titles: e, isThinking: t, startedAt: n }) {
3331
3331
  let [r, a] = Y(!1), o = jo(e, t), s = o.length > 0, c = r && s, l = t && !c;
3332
3332
  return /* @__PURE__ */ X(wo, {
3333
- icon: l ? /* @__PURE__ */ X(vt, {
3333
+ icon: l ? /* @__PURE__ */ X(bt, {
3334
3334
  variant: "thinking",
3335
3335
  size: 15
3336
3336
  }) : null,
@@ -3372,12 +3372,12 @@ function Po({ turn: e }) {
3372
3372
  className: "flex items-start gap-1.5 text-f1-foreground-secondary",
3373
3373
  children: [/* @__PURE__ */ X("span", {
3374
3374
  className: i(So, "h-5 justify-center"),
3375
- children: /* @__PURE__ */ X(vt, {
3375
+ children: /* @__PURE__ */ X(bt, {
3376
3376
  variant: r,
3377
3377
  size: 15
3378
3378
  })
3379
3379
  }), e.status === "asking" ? /* @__PURE__ */ X("p", {
3380
- className: i("text-pretty leading-5", se),
3380
+ className: i("text-pretty leading-5", oe),
3381
3381
  children: n.ai.askingQuestions
3382
3382
  }) : null]
3383
3383
  }) : null;
@@ -3424,7 +3424,7 @@ function Ro({ children: e }) {
3424
3424
  display: "flex",
3425
3425
  height: "5",
3426
3426
  alignItems: "center",
3427
- children: /* @__PURE__ */ X(U, { icon: je })
3427
+ children: /* @__PURE__ */ X(U, { icon: B })
3428
3428
  }), /* @__PURE__ */ Z("div", {
3429
3429
  className: "min-w-0 whitespace-pre-wrap text-base leading-5 [overflow-wrap:anywhere] [&>div]:flex [&>div]:flex-col [&>div]:gap-1 [&_p]:m-0",
3430
3430
  children: [/* @__PURE__ */ X("span", {
@@ -3478,7 +3478,7 @@ function Vo(e) {
3478
3478
  }
3479
3479
  //#endregion
3480
3480
  //#region src/addons/ai/F0AiMessagesContainer/components/UserMessage.tsx
3481
- var Ho = (e) => /* @__PURE__ */ X(w, {
3481
+ var Ho = (e) => /* @__PURE__ */ X(T, {
3482
3482
  content: e,
3483
3483
  format: "markdown"
3484
3484
  }), Uo = /[.,:;!?*_~]/, Wo = (e, t) => e.split(t).length - 1, Go = (e) => {
@@ -3496,9 +3496,9 @@ var Ho = (e) => /* @__PURE__ */ X(w, {
3496
3496
  target: "_blank",
3497
3497
  children: r
3498
3498
  }), e.slice(n)] }, t);
3499
- }, qo = (e, t) => ye(e).map((e, n) => n % 2 == 1 ? Ko(e, `${t}-${n}`) : e), Jo = (e) => /* @__PURE__ */ X("p", {
3499
+ }, qo = (e, t) => ve(e).map((e, n) => n % 2 == 1 ? Ko(e, `${t}-${n}`) : e), Jo = (e) => /* @__PURE__ */ X("p", {
3500
3500
  className: "m-0",
3501
- children: I(e).map((e, t) => e.kind === "text" ? qo(e.text, t) : /* @__PURE__ */ X(Fi, {
3501
+ children: ue(e).map((e, t) => e.kind === "text" ? qo(e.text, t) : /* @__PURE__ */ X(Fi, {
3502
3502
  type: e.type,
3503
3503
  id: e.id,
3504
3504
  typed: !0,
@@ -3509,7 +3509,7 @@ function Xo({ message: e, onReplyQuote: n, onCopy: r, autoScrollIntoView: a = !0
3509
3509
  let s = Vo(a), c = J(null), l = e?.content, u = e?.rawData, d = q(() => Xi({
3510
3510
  content: l,
3511
3511
  rawData: u
3512
- }), [l, u]), f = (Zi(l, "user") ?? "").trim(), p = e?.presentation, m = p?.kind === "notice", h = p?.kind === "answers" && p.questions.length > 0 ? p.questions : null, g = h !== null || f.length > 0, _ = t(), v = h ? h.map(({ question: e, answers: t }) => `${e}\n${Fo(t, _.ai.clarifyingQuestion.skipped)}`).join("\n\n") : y(f), { anchor: b, clear: x } = uo({
3512
+ }), [l, u]), f = (Zi(l, "user") ?? "").trim(), p = e?.presentation, m = p?.kind === "notice", h = p?.kind === "answers" && p.questions.length > 0 ? p.questions : null, g = h !== null || f.length > 0, _ = t(), v = h ? h.map(({ question: e, answers: t }) => `${e}\n${Fo(t, _.ai.clarifyingQuestion.skipped)}`).join("\n\n") : b(f), { anchor: y, clear: x } = uo({
3513
3513
  containerRef: c,
3514
3514
  enabled: g && !m
3515
3515
  });
@@ -3547,7 +3547,7 @@ function Xo({ message: e, onReplyQuote: n, onCopy: r, autoScrollIntoView: a = !0
3547
3547
  children: h ? /* @__PURE__ */ X(Lo, { questions: h }) : S(f)
3548
3548
  }), /* @__PURE__ */ X("div", {
3549
3549
  className: i("absolute bottom-0 right-full mr-1 flex", "opacity-0 transition-opacity duration-150 focus-within:opacity-100 group-hover/user-message:opacity-100 motion-reduce:transition-none [@media(hover:none)]:opacity-100"),
3550
- children: /* @__PURE__ */ X(O, {
3550
+ children: /* @__PURE__ */ X(ee, {
3551
3551
  size: "md",
3552
3552
  variant: "ghost",
3553
3553
  valueToCopy: v,
@@ -3558,7 +3558,7 @@ function Xo({ message: e, onReplyQuote: n, onCopy: r, autoScrollIntoView: a = !0
3558
3558
  })]
3559
3559
  }) : null,
3560
3560
  /* @__PURE__ */ X(mo, {
3561
- anchor: b,
3561
+ anchor: y,
3562
3562
  onReply: (e) => {
3563
3563
  n?.(e), x(), window.getSelection()?.removeAllRanges();
3564
3564
  }
@@ -3586,7 +3586,7 @@ function Zo({ phrase: e, caption: t, onClick: n }) {
3586
3586
  //#endregion
3587
3587
  //#region src/addons/ai/F0AiChat/providers/useWelcomeRound.ts
3588
3588
  var Qo = () => {
3589
- let e = Ln(V), [t] = Y(() => e?.nextRound ?? 0), n = e?.claimRound;
3589
+ let e = Ln(Ae), [t] = Y(() => e?.nextRound ?? 0), n = e?.claimRound;
3590
3590
  return K(function() {
3591
3591
  n?.(t);
3592
3592
  }, [n, t]), t;
@@ -3663,7 +3663,7 @@ function cs({ prompts: { suggestions: e, onItemClick: t, onItemHover: n }, round
3663
3663
  flexDirection: "column",
3664
3664
  gap: "md",
3665
3665
  width: "full",
3666
- children: o.map(({ item: e, group: t, onOverflowChange: n }, r) => /* @__PURE__ */ X(Ct, {
3666
+ children: o.map(({ item: e, group: t, onOverflowChange: n }, r) => /* @__PURE__ */ X(Tt, {
3667
3667
  label: e.title,
3668
3668
  icon: t.icon,
3669
3669
  onClick: () => a(e, t),
@@ -3733,7 +3733,7 @@ var ds = {
3733
3733
  onThumbsDown: () => {}
3734
3734
  }, fs = (e) => e?.status === "working" || e?.status === "answering";
3735
3735
  function ps({ turns: e, isLoadingThread: n = !1, interrupt: r, initialMessage: a, initialMessageCaption: o, initialMessageSubtitle: s, onWelcomeClick: l, welcomePrompts: u, renderToolCall: f, onReplyQuote: p, onAssistantMessageRendered: m, autoScrollUserIntoView: h = !0, renderMarkdown: g, feedback: _, freezeLayout: v = !1, noShadows: y = !1, children: b, AssistantMessage: x, UserMessage: S, onRegenerate: C, onCopy: w }) {
3736
- let { modal: T, handleSubmit: E, handleClose: D } = Bi(_ ?? ds), O = t(), ee = x ?? vo, k = S ?? Xo, te = a ?? O.ai.defaultInitialMessage, A = !n && e.length === 0 && te !== "", j = J(null), M = J(null), N = J(null), ne = J(null), { showScrollBtn: re, scrolledFromTop: P, turnMinHeight: ie, scrollToBottom: ae } = Ca({
3736
+ let { modal: T, handleSubmit: E, handleClose: D } = Bi(_ ?? ds), O = t(), k = x ?? vo, ee = S ?? Xo, te = a ?? O.ai.defaultInitialMessage, A = !n && e.length === 0 && te !== "", j = J(null), M = J(null), N = J(null), ne = J(null), { showScrollBtn: re, scrolledFromTop: P, turnMinHeight: ie, scrollToBottom: ae } = Ca({
3737
3737
  viewportRef: j,
3738
3738
  contentRef: M,
3739
3739
  lastTurnRef: ne,
@@ -3746,8 +3746,8 @@ function ps({ turns: e, isLoadingThread: n = !1, interrupt: r, initialMessage: a
3746
3746
  viewportRef: j,
3747
3747
  contentRef: M
3748
3748
  });
3749
- let oe = e[e.length - 1], se = oe?.status === "working", ce = fa(se), F = oe?.status === "asking" ? O.ai.askingQuestions : se ? oe.thinking?.titles.at(-1) ?? O.ai.thinkingNow : "", le = na(e.flatMap((e) => e.assistantMessages.flatMap((e) => e.id ? [e.id] : [])), n), ue = (t, n) => {
3750
- let r = n === e.length - 1, i = fs(t), a = r && se, o = t.thinking ?? (a ? { titles: [] } : null), s = t.assistantMessages.some(ms), c = {
3749
+ let oe = e[e.length - 1], F = oe?.status === "working", se = fa(F), ce = oe?.status === "asking" ? O.ai.askingQuestions : F ? oe.thinking?.titles.at(-1) ?? O.ai.thinkingNow : "", le = na(e.flatMap((e) => e.assistantMessages.flatMap((e) => e.id ? [e.id] : [])), n), ue = (t, n) => {
3750
+ let r = n === e.length - 1, i = fs(t), a = r && F, o = t.thinking ?? (a ? { titles: [] } : null), s = t.assistantMessages.some(ms), c = {
3751
3751
  renderToolCall: f,
3752
3752
  onReplyQuote: p,
3753
3753
  onRendered: m,
@@ -3759,28 +3759,28 @@ function ps({ turns: e, isLoadingThread: n = !1, interrupt: r, initialMessage: a
3759
3759
  inProgress: i,
3760
3760
  index: t,
3761
3761
  isCurrentMessage: !1,
3762
- AssistantMessage: ee,
3763
- UserMessage: k,
3762
+ AssistantMessage: k,
3763
+ UserMessage: ee,
3764
3764
  onRegenerate: C,
3765
3765
  onCopy: w,
3766
3766
  rawData: e.rawData || {},
3767
3767
  ...c
3768
3768
  };
3769
- return /* @__PURE__ */ X(k, { ...r }, `${n}-u-${t}`);
3769
+ return /* @__PURE__ */ X(ee, { ...r }, `${n}-u-${t}`);
3770
3770
  }, u = (e, a) => {
3771
3771
  let o = r && a === t.assistantMessages.length - 1, s = t.userMessages.length + a, l = {
3772
3772
  message: e,
3773
3773
  inProgress: i,
3774
3774
  index: s,
3775
3775
  isCurrentMessage: o,
3776
- AssistantMessage: ee,
3777
- UserMessage: k,
3776
+ AssistantMessage: k,
3777
+ UserMessage: ee,
3778
3778
  onRegenerate: C,
3779
3779
  onCopy: w,
3780
3780
  rawData: e.rawData || {},
3781
3781
  ...c
3782
3782
  };
3783
- return /* @__PURE__ */ X(ee, {
3783
+ return /* @__PURE__ */ X(k, {
3784
3784
  ...l,
3785
3785
  isGenerating: i && o,
3786
3786
  isLive: i || le(e.id),
@@ -3801,7 +3801,7 @@ function ps({ turns: e, isLoadingThread: n = !1, interrupt: r, initialMessage: a
3801
3801
  o ? /* @__PURE__ */ X(Mo, {
3802
3802
  titles: o.titles,
3803
3803
  isThinking: a,
3804
- startedAt: r ? ce : null
3804
+ startedAt: r ? se : null
3805
3805
  }) : null,
3806
3806
  t.assistantMessages.map((e, t) => u(e, t)),
3807
3807
  /* @__PURE__ */ X(Po, { turn: t }),
@@ -3824,7 +3824,7 @@ function ps({ turns: e, isLoadingThread: n = !1, interrupt: r, initialMessage: a
3824
3824
  /* @__PURE__ */ X("div", {
3825
3825
  role: "status",
3826
3826
  className: "sr-only",
3827
- children: F
3827
+ children: ce
3828
3828
  }),
3829
3829
  /* @__PURE__ */ X("div", {
3830
3830
  ref: j,
@@ -3875,7 +3875,7 @@ function ps({ turns: e, isLoadingThread: n = !1, interrupt: r, initialMessage: a
3875
3875
  scale: .8
3876
3876
  },
3877
3877
  transition: { duration: .2 },
3878
- children: /* @__PURE__ */ X(L, {
3878
+ children: /* @__PURE__ */ X(de, {
3879
3879
  label: O.ai.scrollToBottom,
3880
3880
  onClick: () => ae()
3881
3881
  })
@@ -3894,7 +3894,7 @@ var ms = (e) => !!Zi(e.content) || Xi(e).length > 0;
3894
3894
  //#region src/addons/ai/F0AiMessagesContainer/F0AiMessagesContainer.tsx
3895
3895
  function hs(e) {
3896
3896
  let t = qe(), n = /* @__PURE__ */ X(Ri, { children: /* @__PURE__ */ X(ps, { ...e }) });
3897
- return e.filePreviews || !t.provided ? /* @__PURE__ */ X(Et, {
3897
+ return e.filePreviews || !t.provided ? /* @__PURE__ */ X(Ot, {
3898
3898
  filePreviews: e.filePreviews,
3899
3899
  children: n
3900
3900
  }) : n;
@@ -3960,7 +3960,7 @@ var Ss = ({ canProceed: e, submitDisabled: n, label: r, onConfirm: i, onSkip: a,
3960
3960
  let t = Math.min(e.scrollHeight, ws);
3961
3961
  e.style.height = `${t}px`, e.style.overflowY = e.scrollHeight > ws ? "auto" : "hidden";
3962
3962
  }, [a]);
3963
- let g = e === "single" ? /* @__PURE__ */ X(Cs, { isSelected: r && !n }) : /* @__PURE__ */ X(hn, {
3963
+ let g = e === "single" ? /* @__PURE__ */ X(Cs, { isSelected: r && !n }) : /* @__PURE__ */ X(vn, {
3964
3964
  checked: o,
3965
3965
  onCheckedChange: () => d(!o),
3966
3966
  title: p,
@@ -4004,7 +4004,7 @@ var Ss = ({ canProceed: e, submitDisabled: n, label: r, onConfirm: i, onSkip: a,
4004
4004
  height: "9",
4005
4005
  shrink: !1,
4006
4006
  alignItems: "center",
4007
- children: /* @__PURE__ */ X(hn, {
4007
+ children: /* @__PURE__ */ X(vn, {
4008
4008
  checked: t,
4009
4009
  onCheckedChange: () => o(e.id),
4010
4010
  title: e.label,
@@ -4139,7 +4139,7 @@ var Ds = [
4139
4139
  disabled: r,
4140
4140
  label: l.ai.clarifyingQuestion.back,
4141
4141
  hideLabel: !0,
4142
- icon: pn
4142
+ icon: sn
4143
4143
  }),
4144
4144
  /* @__PURE__ */ X("span", {
4145
4145
  className: "translate-y-px text-sm font-semibold text-f1-foreground-tertiary",
@@ -4153,7 +4153,7 @@ var Ds = [
4153
4153
  disabled: i || !a,
4154
4154
  label: l.ai.clarifyingQuestion.next,
4155
4155
  hideLabel: !0,
4156
- icon: vn
4156
+ icon: fn
4157
4157
  })
4158
4158
  ]
4159
4159
  }) : null,
@@ -4164,7 +4164,7 @@ var Ds = [
4164
4164
  onClick: c,
4165
4165
  label: l.actions.cancel,
4166
4166
  hideLabel: !0,
4167
- icon: xt
4167
+ icon: Be
4168
4168
  })
4169
4169
  ]
4170
4170
  });
@@ -4172,7 +4172,7 @@ var Ds = [
4172
4172
  clarifyingQuestion: e,
4173
4173
  isSubmitDisabled: t
4174
4174
  }), Rs = ({ clarifyingQuestion: e, isSubmitDisabled: n }) => {
4175
- let r = t(), i = p(), { currentStep: a, currentStepIndex: o, totalSteps: s, toggleOption: l, confirm: u, 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 = J(null), O = S ?? "single", ee = s > 1, k = o === 0, te = o === s - 1, A = ee ? r.t("ai.clarifyingQuestion.stepOf", {
4175
+ let r = t(), i = p(), { currentStep: a, currentStepIndex: o, totalSteps: s, toggleOption: l, confirm: u, 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 = J(null), O = S ?? "single", k = s > 1, ee = o === 0, te = o === s - 1, A = k ? r.t("ai.clarifyingQuestion.stepOf", {
4176
4176
  current: String(o + 1),
4177
4177
  total: String(s)
4178
4178
  }) : void 0, j = x.length > 0, M = (T ?? "").trim().length > 0, N = j || E && M || C === !0, ne = n === !0 && te, re = () => {
@@ -4182,16 +4182,16 @@ var Ds = [
4182
4182
  }, ie = (e) => {
4183
4183
  let t = O === "single" && x.includes(e);
4184
4184
  l(e), O === "single" && !te && !t && Promise.resolve().then(u);
4185
- }, ae = te ? r.ai.clarifyingQuestion.submit : r.ai.clarifyingQuestion.next, oe = C === !0 && !j && !(E && M), se = () => {
4185
+ }, ae = te ? r.ai.clarifyingQuestion.submit : r.ai.clarifyingQuestion.next, oe = C === !0 && !j && !(E && M), F = () => {
4186
4186
  v(), requestAnimationFrame(() => {
4187
4187
  D.current?.focus();
4188
4188
  });
4189
- }, ce = (e) => {
4189
+ }, se = (e) => {
4190
4190
  e.key === "Escape" && (e.preventDefault(), m());
4191
- }, F = i ? 0 : Fs, le = i ? 0 : Is;
4191
+ }, ce = i ? 0 : Fs, le = i ? 0 : Is;
4192
4192
  return /* @__PURE__ */ Z("div", {
4193
4193
  className: "flex flex-col",
4194
- onKeyDown: ce,
4194
+ onKeyDown: se,
4195
4195
  children: [/* @__PURE__ */ X("div", {
4196
4196
  className: "flex flex-col gap-3 pt-3",
4197
4197
  children: /* @__PURE__ */ X(d, {
@@ -4203,7 +4203,7 @@ var Ds = [
4203
4203
  animate: {
4204
4204
  opacity: 1,
4205
4205
  transition: {
4206
- duration: F,
4206
+ duration: ce,
4207
4207
  ease: Ps
4208
4208
  }
4209
4209
  },
@@ -4217,7 +4217,7 @@ var Ds = [
4217
4217
  children: [/* @__PURE__ */ X(Ns, {
4218
4218
  question: y,
4219
4219
  stepLabel: A,
4220
- isFirstStep: k,
4220
+ isFirstStep: ee,
4221
4221
  isFinalStep: te,
4222
4222
  canProceed: N,
4223
4223
  onBack: h,
@@ -4236,7 +4236,7 @@ var Ds = [
4236
4236
  canProceed: N,
4237
4237
  customInputRef: D,
4238
4238
  onToggleOption: ie,
4239
- onActivateCustom: se,
4239
+ onActivateCustom: F,
4240
4240
  onChangeCustomText: g,
4241
4241
  onToggleCustomActive: _,
4242
4242
  onConfirm: re
@@ -4575,13 +4575,13 @@ var Ks = class {
4575
4575
  repeatType: "mirror"
4576
4576
  };
4577
4577
  function $s(e) {
4578
- let [t, n] = Y(e), r = P(e), i = J(null);
4578
+ let [t, n] = Y(e), r = be(e), i = J(null);
4579
4579
  return Gn(r, "change", (e) => n(e)), {
4580
4580
  value: t,
4581
4581
  motionValue: r,
4582
4582
  controls: i,
4583
4583
  animate: G((e, t) => {
4584
- i.current = A(r, e, t);
4584
+ i.current = ce(r, e, t);
4585
4585
  }, [r])
4586
4586
  };
4587
4587
  }
@@ -4851,9 +4851,9 @@ function Ac({ fs: e, vs: t = ic, textures: n = [], uniforms: r, clearColor: i =
4851
4851
  Array.isArray(i.value) || (i.value = []);
4852
4852
  let a = i.value;
4853
4853
  a[t * 3] = n * l, a[t * 3 + 1] = r * l, a[t * 3 + 2] = 0;
4854
- }, ee = () => {
4855
- p.current && (m.current = p.current.getContext("webgl", s) || p.current.getContext("experimental-webgl", s), m.current?.getExtension("OES_standard_derivatives"), m.current?.getExtension("EXT_shader_texture_lod"));
4856
4854
  }, k = () => {
4855
+ p.current && (m.current = p.current.getContext("webgl", s) || p.current.getContext("experimental-webgl", s), m.current?.getExtension("OES_standard_derivatives"), m.current?.getExtension("EXT_shader_texture_lod"));
4856
+ }, ee = () => {
4857
4857
  let e = m.current;
4858
4858
  h.current = e?.createBuffer() ?? null, e?.bindBuffer(e.ARRAY_BUFFER, h.current), e?.bufferData(e.ARRAY_BUFFER, new Float32Array([
4859
4859
  1,
@@ -5021,7 +5021,7 @@ function Ac({ fs: e, vs: t = ic, textures: n = [], uniforms: r, clearColor: i =
5021
5021
  t.activeTexture(t.TEXTURE0 + e), t.bindTexture(t.TEXTURE_2D, i), t.uniform1i(s, e), r && n.updateTexture(i, a, o);
5022
5022
  }
5023
5023
  }
5024
- }, se = (e) => {
5024
+ }, F = (e) => {
5025
5025
  let t = m.current;
5026
5026
  if (!t) return;
5027
5027
  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), oe(e), t.drawArrays(t.TRIANGLE_STRIP, 0, 4);
@@ -5030,11 +5030,11 @@ function Ac({ fs: e, vs: t = ic, textures: n = [], uniforms: r, clearColor: i =
5030
5030
  let e = n[0] ?? 0, t = n[1] ?? 0;
5031
5031
  n[0] = Oc(e, S.current[0] ?? 0, c), n[1] = Oc(t, S.current[1] ?? 0, c);
5032
5032
  }
5033
- v.current = requestAnimationFrame(se);
5034
- }, ce = () => {
5033
+ v.current = requestAnimationFrame(F);
5034
+ }, se = () => {
5035
5035
  let e = { passive: !0 };
5036
5036
  E.current.iMouse?.isNeeded && p.current && (p.current.addEventListener("mousemove", j, e), p.current.addEventListener("mouseout", M, e), p.current.addEventListener("mouseup", M, e), p.current.addEventListener("mousedown", A, e), p.current.addEventListener("touchmove", j, e), p.current.addEventListener("touchend", M, e), p.current.addEventListener("touchstart", A, e)), E.current.iDeviceOrientation?.isNeeded && window.addEventListener("deviceorientation", te, e), p.current && (T.current = new ResizeObserver(N), T.current.observe(p.current), window.addEventListener("resize", N, e));
5037
- }, F = () => {
5037
+ }, ce = () => {
5038
5038
  let e = { passive: !0 };
5039
5039
  E.current.iMouse?.isNeeded && p.current && (p.current.removeEventListener("mousemove", j, e), p.current.removeEventListener("mouseout", M, e), p.current.removeEventListener("mouseup", M, e), p.current.removeEventListener("mousedown", A, e), p.current.removeEventListener("touchmove", j, e), p.current.removeEventListener("touchend", M, e), p.current.removeEventListener("touchstart", A, e)), E.current.iDeviceOrientation?.isNeeded && window.removeEventListener("deviceorientation", te, e), T.current && (T.current.disconnect(), window.removeEventListener("resize", N, e));
5040
5040
  };
@@ -5043,9 +5043,9 @@ function Ac({ fs: e, vs: t = ic, textures: n = [], uniforms: r, clearColor: i =
5043
5043
  }, [r]), K(() => {
5044
5044
  let n = C.current;
5045
5045
  function r() {
5046
- ee();
5046
+ k();
5047
5047
  let n = m.current;
5048
- 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, P(), ie(), re(ae(e || rc), t || ic), k(), requestAnimationFrame(se), ce(), N());
5048
+ 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, P(), ie(), re(ae(e || rc), t || ic), ee(), requestAnimationFrame(F), se(), N());
5049
5049
  }
5050
5050
  return requestAnimationFrame(r), () => {
5051
5051
  let e = m.current;
@@ -5053,7 +5053,7 @@ function Ac({ fs: e, vs: t = ic, textures: n = [], uniforms: r, clearColor: i =
5053
5053
  if (e.getExtension("WEBGL_lose_context")?.loseContext(), e.useProgram(null), e.deleteProgram(g.current ?? null), n.length > 0) for (let t of n) e.deleteTexture(t._webglTexture);
5054
5054
  g.current = null;
5055
5055
  }
5056
- F(), cancelAnimationFrame(v.current ?? 0);
5056
+ ce(), cancelAnimationFrame(v.current ?? 0);
5057
5057
  };
5058
5058
  }, []), /* @__PURE__ */ X("canvas", {
5059
5059
  ref: p,
@@ -5192,7 +5192,7 @@ function Fc({ size: e = "lg", state: t, color: n, colorShift: r = .05, audioTrac
5192
5192
  }
5193
5193
  //#endregion
5194
5194
  //#region src/blocks/ai/F0HILActionConfirmation/F0HILActionConfirmation.tsx
5195
- var Ic = ({ text: e, description: t, avatar: n, confirmationText: r, onConfirm: i, cancelText: a, onCancel: o, stackAt: s = "sm" }) => /* @__PURE__ */ X(Be, {
5195
+ var Ic = ({ text: e, description: t, avatar: n, confirmationText: r, onConfirm: i, cancelText: a, onCancel: o, stackAt: s = "sm" }) => /* @__PURE__ */ X(Re, {
5196
5196
  title: e,
5197
5197
  description: t,
5198
5198
  avatar: n,
@@ -5258,7 +5258,7 @@ var Ic = ({ text: e, description: t, avatar: n, confirmationText: r, onConfirm:
5258
5258
  className: i(Bc()),
5259
5259
  children: e
5260
5260
  }) : null]
5261
- }), Wc = ({ balance: e }) => /* @__PURE__ */ X(un, {
5261
+ }), Wc = ({ balance: e }) => /* @__PURE__ */ X(cn, {
5262
5262
  amount: e.amount,
5263
5263
  percentage: e.percentage ?? void 0,
5264
5264
  invertStatus: e.invertStatus,
@@ -5292,7 +5292,7 @@ var Ic = ({ text: e, description: t, avatar: n, confirmationText: r, onConfirm:
5292
5292
  src: e.avatar.src,
5293
5293
  size: "xs"
5294
5294
  })
5295
- }) : e.content === "alert" ? /* @__PURE__ */ X(cn, {
5295
+ }) : e.content === "alert" ? /* @__PURE__ */ X(un, {
5296
5296
  text: e.alertLabel,
5297
5297
  level: e.level
5298
5298
  }) : e.content === "balance" ? /* @__PURE__ */ X(Wc, { balance: e.balance }) : null;
@@ -5365,10 +5365,10 @@ var Yc = ({ cx: e, cy: t, index: n, dataLength: r, color: i }) => n !== r - 1 ||
5365
5365
  className: "relative w-full flex-1",
5366
5366
  role: "img",
5367
5367
  "aria-label": `Sparkline chart showing ${i} trend`,
5368
- children: [/* @__PURE__ */ X(Je, {
5368
+ children: [/* @__PURE__ */ X(Mt, {
5369
5369
  width: "100%",
5370
5370
  height: "100%",
5371
- children: /* @__PURE__ */ Z(Ut, {
5371
+ children: /* @__PURE__ */ Z(zt, {
5372
5372
  data: e,
5373
5373
  margin: {
5374
5374
  top: 4,
@@ -5393,11 +5393,11 @@ var Yc = ({ cx: e, cy: t, index: n, dataLength: r, color: i }) => n !== r - 1 ||
5393
5393
  stopOpacity: .02
5394
5394
  })]
5395
5395
  }) }),
5396
- /* @__PURE__ */ X(zt, {
5396
+ /* @__PURE__ */ X(C, {
5397
5397
  hide: !0,
5398
5398
  domain: ["dataMin - 1", "dataMax + 1"]
5399
5399
  }),
5400
- /* @__PURE__ */ X(S, {
5400
+ /* @__PURE__ */ X(Te, {
5401
5401
  type: "linear",
5402
5402
  dataKey: "value",
5403
5403
  stroke: a.stroke,
@@ -5484,7 +5484,7 @@ var Yc = ({ cx: e, cy: t, index: n, dataLength: r, color: i }) => n !== r - 1 ||
5484
5484
  });
5485
5485
  });
5486
5486
  Qc.displayName = "F0AiInsightCard";
5487
- var $c = e(Dt(Qc, () => /* @__PURE__ */ Z("div", {
5487
+ var $c = e(wt(Qc, () => /* @__PURE__ */ Z("div", {
5488
5488
  className: "flex w-[217px] h-[200px] flex-col gap-2 rounded-2xl border border-solid border-f1-border-secondary bg-f1-background p-4",
5489
5489
  "aria-busy": "true",
5490
5490
  "aria-live": "polite",
@@ -5569,11 +5569,11 @@ ol.displayName = "F0AiProposalCard";
5569
5569
  //#region src/blocks/ai/F0AiMessageSources/components/CollapsibleMessage.tsx
5570
5570
  var sl = ({ icon: e, title: t, children: n }) => {
5571
5571
  let [r, i] = Y(!1), a = p();
5572
- return /* @__PURE__ */ Z(bt, {
5572
+ return /* @__PURE__ */ Z(ze, {
5573
5573
  className: "mb-1 w-full",
5574
5574
  open: r,
5575
5575
  onOpenChange: i,
5576
- children: [/* @__PURE__ */ Z(Ve, {
5576
+ children: [/* @__PURE__ */ Z(Et, {
5577
5577
  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",
5578
5578
  children: [
5579
5579
  /* @__PURE__ */ X("span", {
@@ -5588,11 +5588,11 @@ var sl = ({ icon: e, title: t, children: n }) => {
5588
5588
  children: t
5589
5589
  }),
5590
5590
  /* @__PURE__ */ X(U, {
5591
- icon: vn,
5591
+ icon: fn,
5592
5592
  className: "h-4 w-4 transition-transform duration-200"
5593
5593
  })
5594
5594
  ]
5595
- }), /* @__PURE__ */ X(st, {
5595
+ }), /* @__PURE__ */ X(gt, {
5596
5596
  forceMount: !0,
5597
5597
  className: "data-[state=open]:mt-3",
5598
5598
  children: /* @__PURE__ */ X(c.div, {
@@ -5616,7 +5616,7 @@ var sl = ({ icon: e, title: t, children: n }) => {
5616
5616
  })
5617
5617
  })]
5618
5618
  });
5619
- }, cl = (e) => ft[e] ?? Sn, ll = ({ iconName: e }) => e ? /* @__PURE__ */ X("div", {
5619
+ }, cl = (e) => rt[e] ?? Sn, ll = ({ iconName: e }) => e ? /* @__PURE__ */ X("div", {
5620
5620
  className: "mr-1 flex items-center justify-center",
5621
5621
  children: /* @__PURE__ */ X(U, {
5622
5622
  icon: cl(e),
@@ -5704,7 +5704,7 @@ function ml({ indicator: e }) {
5704
5704
  hideLabel: !0,
5705
5705
  label: n.ai.conversations,
5706
5706
  "aria-describedby": i ? r : void 0,
5707
- icon: rt
5707
+ icon: Pt
5708
5708
  })
5709
5709
  }),
5710
5710
  /* @__PURE__ */ X("span", {
@@ -5780,7 +5780,7 @@ function vl({ label: e, onClick: t }) {
5780
5780
  variant: "ghost",
5781
5781
  hideLabel: !0,
5782
5782
  label: e,
5783
- icon: wt,
5783
+ icon: dt,
5784
5784
  onClick: t
5785
5785
  })
5786
5786
  }) : null
@@ -5839,14 +5839,14 @@ var Sl = ({ currentThreadTitle: e, fullscreen: n = !1, onToggleVisualizationMode
5839
5839
  variant: "ghost",
5840
5840
  hideLabel: !0,
5841
5841
  label: n ? f.ai.collapseChat : f.ai.expandChat,
5842
- icon: n ? et : Wt,
5842
+ icon: n ? ft : Bt,
5843
5843
  onClick: r
5844
5844
  }),
5845
5845
  /* @__PURE__ */ X(m, {
5846
5846
  variant: "ghost",
5847
5847
  hideLabel: !0,
5848
5848
  label: f.ai.closeChat,
5849
- icon: xt,
5849
+ icon: Be,
5850
5850
  onClick: a
5851
5851
  })
5852
5852
  ]
@@ -5872,7 +5872,7 @@ function Cl({ items: e }) {
5872
5872
  let n = t();
5873
5873
  return /* @__PURE__ */ X("div", {
5874
5874
  className: i("hidden shrink-0 items-center", "group-hover:flex group-focus-within:flex", "has-[[aria-expanded=true]]:flex", "[@media(hover:none)]:flex [@media(pointer:coarse)]:flex"),
5875
- children: /* @__PURE__ */ X(Ae, {
5875
+ children: /* @__PURE__ */ X(De, {
5876
5876
  items: e,
5877
5877
  children: /* @__PURE__ */ X(m, {
5878
5878
  icon: xn,
@@ -5907,7 +5907,7 @@ function wl({ id: e, status: n }) {
5907
5907
  }), n === "running" ? /* @__PURE__ */ X(W, {
5908
5908
  display: "flex",
5909
5909
  "aria-hidden": "true",
5910
- children: /* @__PURE__ */ X(fn, { size: "small" })
5910
+ children: /* @__PURE__ */ X(mn, { size: "small" })
5911
5911
  }) : /* @__PURE__ */ X(pl, { status: n })]
5912
5912
  });
5913
5913
  }
@@ -5923,7 +5923,7 @@ function Tl({ items: e, status: n, statusId: r, isPending: a }) {
5923
5923
  alignItems: "center",
5924
5924
  justifyContent: "center",
5925
5925
  "aria-label": o.ai.threadOptions,
5926
- children: /* @__PURE__ */ X(fn, { size: "small" })
5926
+ children: /* @__PURE__ */ X(mn, { size: "small" })
5927
5927
  }) : /* @__PURE__ */ Z("div", {
5928
5928
  "data-testid": "thread-actions-slot",
5929
5929
  className: n ? i("group/slot relative flex h-7 w-7 shrink-0 items-center justify-center", "[@media(hover:none)]:w-auto [@media(hover:none)]:gap-1", "[@media(pointer:coarse)]:w-auto [@media(pointer:coarse)]:gap-1") : "contents",
@@ -5939,16 +5939,16 @@ function Tl({ items: e, status: n, statusId: r, isPending: a }) {
5939
5939
  //#endregion
5940
5940
  //#region src/addons/ai/F0AiChatHistory/components/ThreadItem.tsx
5941
5941
  function El({ thread: e, isPinned: n, isActive: r = !1, isPending: a = !1, onSelect: o, onPin: c, onUnpin: l, onDelete: u, threadActions: d, className: f }) {
5942
- let p = t(), m = Rn(), g = yt() === "two-level", _ = q(() => [
5942
+ let p = t(), m = Rn(), g = St() === "two-level", _ = q(() => [
5943
5943
  {
5944
5944
  label: n ? p.ai.unpinChat : p.ai.pinChat,
5945
- icon: n ? M : ce,
5945
+ icon: n ? xt : ae,
5946
5946
  onClick: () => n ? l(e.id) : c(e.id)
5947
5947
  },
5948
5948
  ...d?.(e) ?? [],
5949
5949
  {
5950
5950
  label: p.ai.deleteChat,
5951
- icon: pt,
5951
+ icon: ot,
5952
5952
  critical: !0,
5953
5953
  onClick: () => u(e.id)
5954
5954
  }
@@ -6022,7 +6022,7 @@ function Dl({ label: e, threads: t, pinnedIds: n, activeThreadId: r, onSelect: o
6022
6022
  }), /* @__PURE__ */ X("span", {
6023
6023
  className: i("flex opacity-0 transition-opacity duration-150 group-hover/label:opacity-100 group-focus-visible/label:opacity-100 motion-reduce:transition-none", !d && "opacity-100"),
6024
6024
  children: /* @__PURE__ */ X(U, {
6025
- icon: d ? Zt : sn,
6025
+ icon: d ? Zt : dn,
6026
6026
  color: "secondary",
6027
6027
  size: "xs"
6028
6028
  })
@@ -6131,7 +6131,7 @@ function Nl({ value: e, onChange: n }) {
6131
6131
  size: "sm",
6132
6132
  hideLabel: !0,
6133
6133
  label: r.actions.clear,
6134
- icon: xt,
6134
+ icon: Be,
6135
6135
  onClick: () => n("")
6136
6136
  }) : null
6137
6137
  ]
@@ -6159,7 +6159,7 @@ var Pl = () => {
6159
6159
  //#region src/addons/ai/F0AiChatHistory/utils.ts
6160
6160
  function Fl(e) {
6161
6161
  let t = new Date(e), n = /* @__PURE__ */ new Date();
6162
- return ue(t) ? "today" : ie(t) ? "yesterday" : gn(t, n) ? "thisMonth" : "older";
6162
+ return qt(t) ? "today" : z(t) ? "yesterday" : gn(t, n) ? "thisMonth" : "older";
6163
6163
  }
6164
6164
  function Il(e) {
6165
6165
  let t = {
@@ -6214,7 +6214,7 @@ function Ll({ onClose: e, onSelectThread: n, onNewChat: r, actions: a, threads:
6214
6214
  className: "flex flex-col gap-2",
6215
6215
  children: [
6216
6216
  r ? /* @__PURE__ */ X(Ml, {
6217
- icon: wt,
6217
+ icon: dt,
6218
6218
  label: h.ai.startNewChat,
6219
6219
  onClick: () => {
6220
6220
  r(), e();
@@ -6310,11 +6310,11 @@ var Vl = [
6310
6310
  "attention"
6311
6311
  ], Hl = "f0-ai-pinned-threads";
6312
6312
  function Ul() {
6313
- let e = St(Hl, []);
6313
+ let e = Ct(Hl, []);
6314
6314
  return new Set(Array.isArray(e) ? e : []);
6315
6315
  }
6316
6316
  function Wl(e) {
6317
- ct(Hl, [...e]);
6317
+ st(Hl, [...e]);
6318
6318
  }
6319
6319
  function Gl({ enabled: e = !1, fetchThreads: t, deleteThread: n, pinThread: r, unpinThread: i }) {
6320
6320
  let [a, o] = Y([]), [s, c] = Y(!1), [l, u] = Y(null), [d, f] = Y(Ul), [p, m] = Y(() => /* @__PURE__ */ new Set()), h = G(async () => {
@@ -6384,7 +6384,7 @@ function Gl({ enabled: e = !1, fetchThreads: t, deleteThread: n, pinThread: r, u
6384
6384
  }
6385
6385
  //#endregion
6386
6386
  //#region src/addons/ai/F0AiChatHeader/types.ts
6387
- var Kl = ["attention"], ql = ["top", "bottom"], Jl = c.create(x), Yl = ({ label: e, reduceMotion: t }) => /* @__PURE__ */ Z("div", {
6387
+ var Kl = ["attention"], ql = ["top", "bottom"], Jl = c.create(S), Yl = ({ label: e, reduceMotion: t }) => /* @__PURE__ */ Z("div", {
6388
6388
  role: "status",
6389
6389
  "aria-live": "polite",
6390
6390
  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",