@factorialco/f0-react 16.25.3 → 16.26.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 (60) hide show
  1. package/dist/{ArchiveThumbnail-DrlQCpa9.js → ArchiveThumbnail-DdBfDDOf.js} +3 -3
  2. package/dist/{ArchiveViewer-e5gDqbRQ.js → ArchiveViewer-Bfbyf0oj.js} +5 -5
  3. package/dist/{ChatPostComposerDialog-Raz9aUqE.js → ChatPostComposerDialog-C92Df7L4.js} +3 -3
  4. package/dist/{CoachmarkProvider-BaG6nTzJ.js → CoachmarkProvider-B27Hof_e.js} +16695 -16695
  5. package/dist/{CodeThumbnail-S1Gh7dtQ.js → CodeThumbnail-CNE5KNbp.js} +1 -1
  6. package/dist/{CodeViewer-DTtGdDc2.js → CodeViewer-BgJoW3B4.js} +8 -8
  7. package/dist/{DocumentToolbar-3enTl24j.js → DocumentToolbar-Cy6NF51Q.js} +5 -5
  8. package/dist/{DocxViewer-DRcX9fii.js → DocxViewer-BjmAyUhF.js} +3 -3
  9. package/dist/{F0AiProcessingOverlay-DXnk36T0.js → F0AiProcessingOverlay-C7y7ABxK.js} +255 -255
  10. package/dist/{F0Alert-BBfbUoFr.js → F0Alert-RkDEVcED.js} +7 -7
  11. package/dist/F0AudioPlayer-DEdezV8_.js +2 -0
  12. package/dist/{F0Button-C1aRGjA7.js → F0Button-BU859Fsf.js} +3 -3
  13. package/dist/{F0CanvasPanel-BO8mckaU.js → F0CanvasPanel-jhOgcA_m.js} +5997 -5967
  14. package/dist/{F0DocumentViewer-B7cAb7L7.js → F0DocumentViewer-DXIhoMqd.js} +4 -4
  15. package/dist/{F0DocumentViewer-DTbfrU29.js → F0DocumentViewer-LMxGzqhh.js} +1 -1
  16. package/dist/{F0Icon-CA8QrO7J.js → F0Icon-CGpfItEb.js} +1 -1
  17. package/dist/{F0Map-CLsg8oOb.js → F0Map-CG_ymj03.js} +12 -12
  18. package/dist/{F0Select-Dj-l2-jG.js → F0Select-lTHjAdPr.js} +8 -8
  19. package/dist/{F0Text-C69-6-hA.js → F0Text-BAjgLVuY.js} +2 -2
  20. package/dist/{F0VideoPlayer-0OwghjNZ.js → F0VideoPlayer-D-Yf7qG7.js} +22 -22
  21. package/dist/F0VideoPlayer-D9BIwS82.js +1 -0
  22. package/dist/{HtmlThumbnail-DOW0qL8W.js → HtmlThumbnail-DjbK49YJ.js} +1 -1
  23. package/dist/{HtmlViewer-0kpL-7SJ.js → HtmlViewer-i_XwrxeS.js} +9 -9
  24. package/dist/{LayoutGroup-DnZBITzE.js → LayoutGroup-QheQS7fV.js} +1 -1
  25. package/dist/{Map-CPqPqujT.js → Map-BkJV5kZU.js} +10 -10
  26. package/dist/{PdfThumbnail-Ct2loeCb.js → PdfThumbnail-pCtE7rde.js} +1 -1
  27. package/dist/{PdfViewer-CLTywOkD.js → PdfViewer-Bnzx2msH.js} +8 -8
  28. package/dist/{SandboxedHtmlFrame-sIha8vuj.js → SandboxedHtmlFrame-ByXnijnz.js} +2 -2
  29. package/dist/{SheetViewer-LWX-ryyE.js → SheetViewer-CN9aouf0.js} +5 -5
  30. package/dist/{TextViewer-Bj1x-gnk.js → TextViewer-C8zuDtWF.js} +4 -4
  31. package/dist/ai.d.ts +3 -3
  32. package/dist/ai.js +4 -4
  33. package/dist/component-status.js +2 -2
  34. package/dist/{dist-R_v43tri.js → dist-BD12P2GA.js} +1 -1
  35. package/dist/{dist-CsLQ4kGY.js → dist-BZ_Y1IQR.js} +1 -1
  36. package/dist/{dist-CrKS7a4M.js → dist-C2r3Y3bk.js} +1 -1
  37. package/dist/{dist-S2UAyvMo.js → dist-CN3PC8Ve.js} +4 -4
  38. package/dist/{dist-DRhAsNk-.js → dist-DQbyEaUi.js} +2 -2
  39. package/dist/experimental.d.ts +86 -23
  40. package/dist/experimental.js +6426 -5877
  41. package/dist/{exports-BLEz8iU-.d.ts → exports-TEMIeBsX.d.ts} +1 -1
  42. package/dist/f0.d.ts +5 -5
  43. package/dist/f0.js +176 -176
  44. package/dist/{highlight-CxAdyK6c.js → highlight-D9VckAgH.js} +1 -1
  45. package/dist/{i18n-provider-CCg0vfdK.js → i18n-provider-Bj_yUCV4.js} +1 -1
  46. package/dist/{i18n-provider-defaults-CXVl-d7E.d.ts → i18n-provider-defaults-Cg_jw8FI.d.ts} +32 -0
  47. package/dist/{i18n-provider-defaults-DdGz6_Og.js → i18n-provider-defaults-H4N1k7Qh.js} +32 -1
  48. package/dist/i18n-provider-defaults.d.ts +1 -1
  49. package/dist/i18n-provider-defaults.js +1 -1
  50. package/dist/{index-rB6-YKod.d.ts → index-CChdz3fl.d.ts} +20 -3
  51. package/dist/{index-DUvBbZtb.d.ts → index-p0sjT_0D.d.ts} +3 -1
  52. package/dist/{maplibre-XmoJ3Ohe.js → maplibre-DF5zdltX.js} +1 -1
  53. package/dist/{pdfWorker-DuRYD5zF.js → pdfWorker-meKcOM10.js} +1 -1
  54. package/dist/{popover-BFt-Tk2I.js → popover-Cye-H1wu.js} +1 -1
  55. package/dist/{skeleton-B05pNPYx.js → skeleton-BlWRZvRy.js} +1 -1
  56. package/dist/{toolbarStyles-Btq_icPl.js → toolbarStyles-CRHL8QLK.js} +1 -1
  57. package/dist/{useData-CzdjLV9a.js → useData-8I_yfx23.js} +6 -6
  58. package/package.json +1 -1
  59. package/dist/F0AudioPlayer-BhcOJYGr.js +0 -2
  60. package/dist/F0VideoPlayer-zVPFkYQE.js +0 -1
@@ -1,17 +1,17 @@
1
- import { a as e, r as t } from "./i18n-provider-CCg0vfdK.js";
2
- import { n, t as r } from "./skeleton-B05pNPYx.js";
1
+ import { a as e, r as t } from "./i18n-provider-Bj_yUCV4.js";
2
+ import { n, t as r } from "./skeleton-BlWRZvRy.js";
3
3
  import { L as i, R as a } from "./tooltip-NXXT56H4.js";
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-C1aRGjA7.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-BO8mckaU.js";
6
- import { o as Jt, t as U } from "./F0Icon-CA8QrO7J.js";
7
- import { t as Yt } from "./i18n-provider-defaults-DdGz6_Og.js";
8
- import { A as Xt, L as Zt, P as W, U as Qt, W as $t, _ as en, g as tn, u as nn, v as rn, w as an, x as on } from "./useData-CzdjLV9a.js";
9
- import { Bn as sn, Bt as cn, Ir as ln, Lr as un, Rr as dn, St as fn, Vr as pn, bn as mn, bt as hn, dt as gn, qt as _n, xt as vn, zn as yn } from "./F0Select-Dj-l2-jG.js";
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-BU859Fsf.js";
5
+ import { $ as v, Al as y, As as b, At as x, B as S, Bl as C, Bn as w, Ca as T, D as E, Di as D, Ds as O, Dt as ee, E as te, Ei as k, En as A, Fn as j, Gt as M, Ht as N, I as ne, J as re, Jn as P, Js as ie, Kn as ae, Ks as oe, Kt as F, L as se, Mn as ce, Mt as le, N as ue, Nn as de, Nt as I, O as L, Ol as fe, Os as pe, Ot as me, P as he, Pn as ge, Pt as _e, Q as ve, R as ye, Rn as R, Ro as be, Sc as xe, Sn as z, St as Se, T as Ce, Ta as we, Tn as Te, Uo as Ee, Us as De, Ut as B, Vn as Oe, Vt as ke, Wt as Ae, X as je, Xt as V, Y as Me, Yi as H, Ys as Ne, Z as Pe, Zn as Fe, _c as Ie, _i as Le, _t as Re, a as ze, aa as Be, al as Ve, at as He, b as Ue, ba as We, bn as Ge, bt as Ke, c as qe, cn as Je, ct as Ye, dn as Xe, dt as Ze, et as Qe, ft as $e, gn as et, gs as tt, gt as nt, hc as rt, hl as it, ht as at, in as ot, kl as st, kn as ct, ks as lt, kt as ut, nt as dt, oa as ft, ol as pt, ot as mt, pc as ht, pi as gt, pn as _t, qn as vt, r as yt, rc as bt, rn as xt, rs as St, s as Ct, sa as wt, si as Tt, sn as Et, tl as Dt, tt as Ot, u as kt, uc as At, un as jt, uo as Mt, ut as Nt, vn as Pt, vt as Ft, w as It, x as Lt, xa as Rt, xn as zt, xt as Bt, y as Vt, yc as Ht, yt as Ut, z as Wt, zl as Gt, zn as Kt, zo as qt } from "./F0CanvasPanel-jhOgcA_m.js";
6
+ import { o as Jt, t as U } from "./F0Icon-CGpfItEb.js";
7
+ import { t as Yt } from "./i18n-provider-defaults-H4N1k7Qh.js";
8
+ import { A as Xt, L as Zt, P as W, U as Qt, W as $t, _ as en, g as tn, u as nn, v as rn, w as an, x as on } from "./useData-8I_yfx23.js";
9
+ import { Bn as sn, Bt as cn, Ir as ln, Lr as un, Rr as dn, St as fn, Vr as pn, bn as mn, bt as hn, dt as gn, qt as _n, xt as vn, zn as yn } from "./F0Select-lTHjAdPr.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
- import { $ as Cn, a as wn, i as Tn, n as En, t as Dn } from "./popover-BFt-Tk2I.js";
14
- import { t as On } from "./F0Text-C69-6-hA.js";
13
+ import { $ as Cn, a as wn, i as Tn, n as En, t as Dn } from "./popover-Cye-H1wu.js";
14
+ import { t as On } from "./F0Text-BAjgLVuY.js";
15
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";
@@ -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: 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) => {
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: O = !1, onStateChange: te, header: k, tray: A, leading: j, toolbarStart: M, toolbarCenter: N, collapsible: ne = !1, collapsed: re = !1, replacement: ie, asForm: ae = !1, className: oe, surfaceRef: F, onSurfaceFocus: se, onSurfaceBlur: ce, handleRef: le, reducedMotion: ue = !1, "data-testid": de }) => {
40
+ let I = Ut(f, S), L = ie != null, { error: fe, show: pe, clear: me } = Ft(), 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 = ie({
47
+ }, R = P({
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 = Ht({
55
+ }), [be, xe] = Y(!1), z = R.status === "recording", Ce = R.status === "transcribing", we = !!S && (!!S.onTranscribe || !!S.onAudio) && R.isSupported, Te = !S?.onAudio && (R.status !== "idle" || be), [Ee, De] = Y(!1), B = Bt({
56
56
  mentions: {
57
57
  enabled: !!b && b.sources.length + +!!b.pinned > 0 && !Ee && !L,
58
58
  sources: b?.sources ?? Yn,
@@ -63,19 +63,19 @@ var Kn = [
63
63
  transformChange: x?.transformChange,
64
64
  onTextChange: C,
65
65
  historySuspended: Te
66
- }), { value: Oe, setValue: Ae, setCursorPosition: je, textareaRef: V, highlightRef: Me, mentions: H, requestSelection: Ne, clearText: Pe, breakHistory: Fe } = B;
66
+ }), { value: ke, setValue: Ae, setCursorPosition: je, textareaRef: V, highlightRef: Me, mentions: H, requestSelection: Ne, clearText: Pe, breakHistory: Fe } = B;
67
67
  he.current = (e) => {
68
68
  Ae(e), je(e.length);
69
69
  };
70
- let Ie = J(Oe);
71
- Ie.current = Oe;
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;
70
+ let Le = J(ke);
71
+ Le.current = ke;
72
+ let ze = J(H.mentions);
73
+ ze.current = H.mentions;
74
+ let Be = (x?.useAutocomplete ?? Xn)(B), Ve = Be?.isOpen ?? !1, He = H.dismissCurrentTrigger;
75
75
  K(() => {
76
76
  De(Ve), Ve && He();
77
77
  }, [Ve, He]);
78
- let { highlightSegments: Ue, hasOverlay: We } = Ce(B, { suppressGhost: Ve }), Ke = G((e) => {
78
+ let { highlightSegments: Ue, hasOverlay: We } = Se(B, { suppressGhost: Ve }), Ge = G((e) => {
79
79
  let t = V.current;
80
80
  if (!t) return;
81
81
  t.focus(e);
@@ -87,30 +87,30 @@ var Kn = [
87
87
  K(() => {
88
88
  L && qe();
89
89
  }, [L, qe]);
90
- let Je = Oe.length === 0;
90
+ let Je = ke.length === 0;
91
91
  K(() => {
92
- ee?.({
92
+ te?.({
93
93
  isEmpty: Je,
94
94
  recorder: R.status
95
95
  });
96
96
  }, [
97
- ee,
97
+ te,
98
98
  Je,
99
99
  R.status
100
100
  ]);
101
- let [Ye, Ze] = Y(!1), Qe = s !== void 0 && Oe.trim().length > s;
101
+ let [Ye, Xe] = Y(!1), Qe = s !== void 0 && ke.trim().length > s;
102
102
  K(() => {
103
- Qe || Ze(!1);
103
+ Qe || Xe(!1);
104
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;
105
+ let et = Ye && Qe ? l ?? null : null, tt = et ?? u ?? fe, [rt, it] = Y(!1), ot = J(!1), st = ke.trim().length > 0 || a, ct = st && !Te && !o && !rt && !L, lt = t && !Ce, ut = G(() => {
106
+ if (!ct || ot.current) return;
107
107
  if (Qe) {
108
- Ze(!0);
108
+ Xe(!0);
109
109
  return;
110
110
  }
111
111
  H.close();
112
- let t = Ie.current, n = (e) => {
113
- !e && Ie.current === t && (Pe(), Fe()), V.current?.focus({ preventScroll: !0 });
112
+ let t = Le.current, n = (e) => {
113
+ !e && Le.current === t && (Pe(), Fe()), V.current?.focus({ preventScroll: !0 });
114
114
  }, r;
115
115
  try {
116
116
  r = e({
@@ -121,23 +121,23 @@ var Kn = [
121
121
  n(!0);
122
122
  return;
123
123
  }
124
- r instanceof Promise ? (st.current = !0, ot(!0), r.then((e) => {
125
- st.current = !1, ot(!1), n(e === !1);
124
+ r instanceof Promise ? (ot.current = !0, it(!0), r.then((e) => {
125
+ ot.current = !1, it(!1), n(e === !1);
126
126
  }, () => {
127
- st.current = !1, ot(!1), n(!0);
127
+ ot.current = !1, it(!1), n(!0);
128
128
  })) : n(r === !1);
129
129
  }, [
130
- lt,
130
+ ct,
131
131
  Qe,
132
132
  H,
133
133
  e,
134
134
  Pe,
135
135
  Fe,
136
136
  V
137
- ]), ft = G(() => {
137
+ ]), dt = G(() => {
138
138
  be || (S?.onPress?.(), me(), xe(!0), (async () => {
139
139
  try {
140
- await R.start(), _e.current = Ie.current;
140
+ await R.start(), _e.current = Le.current;
141
141
  } catch {} finally {
142
142
  xe(!1);
143
143
  }
@@ -147,31 +147,31 @@ var Kn = [
147
147
  S,
148
148
  me,
149
149
  R
150
- ]), pt = R.cancel, mt = G(() => {
151
- pt(), S?.onCancelled?.();
152
- }, [pt, S]), ht = J(!1), gt = S?.onStarted;
150
+ ]), ft = R.cancel, mt = G(() => {
151
+ ft(), S?.onCancelled?.();
152
+ }, [ft, S]), ht = J(!1), gt = S?.onStarted;
153
153
  K(() => {
154
154
  z && !ht.current && gt?.(), ht.current = z;
155
155
  }, [z, gt]), zn(le, () => ({
156
156
  focus: (e) => {
157
- L || Ke(e);
157
+ L || Ge(e);
158
158
  },
159
159
  clear: Pe,
160
160
  loadDraft: B.loadDraft,
161
161
  getDraft: () => ({
162
- text: Ie.current,
163
- mentions: Re.current
162
+ text: Le.current,
163
+ mentions: ze.current
164
164
  }),
165
165
  insertText: (e) => {
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);
166
+ let t = V.current, n = Le.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: pt,
169
+ cancelRecording: ft,
170
170
  breakHistory: Fe,
171
171
  addFiles: () => {}
172
172
  }), [
173
173
  L,
174
- Ke,
174
+ Ge,
175
175
  Pe,
176
176
  B.loadDraft,
177
177
  V,
@@ -179,7 +179,7 @@ var Kn = [
179
179
  je,
180
180
  C,
181
181
  Ne,
182
- pt,
182
+ ft,
183
183
  Fe
184
184
  ]);
185
185
  let { escapeArmed: _t, handleClearKeyDown: vt, handleUndoRedoKeyDown: yt } = B, bt = (e) => {
@@ -187,40 +187,40 @@ var Kn = [
187
187
  if (T?.(e)) return !0;
188
188
  if (z) return e.preventDefault(), mt(), !0;
189
189
  let t = _t;
190
- return vt(e) ? (t && (Ze(!1), w?.()), !0) : !1;
190
+ return vt(e) ? (t && (Xe(!1), w?.()), !0) : !1;
191
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()));
192
+ L || Ke(e) || yt(e) || Be?.handleKeyDown(e) || H.handleKeyDown(e) || bt(e) || (e.key === "ArrowUp" && !e.shiftKey && !e.altKey && !e.metaKey && !e.ctrlKey && ke === "" && R.status === "idle" && !be && !S?.busy && E?.() ? e.preventDefault() : e.key === "Enter" && !e.shiftKey && (e.preventDefault(), t || ut()));
193
193
  }, St = (e) => {
194
- e.preventDefault(), !L && (t && !Te ? (H.close(), n?.(), V.current?.focus()) : dt());
194
+ e.preventDefault(), !L && (t && !Te ? (H.close(), n?.(), V.current?.focus()) : ut());
195
195
  }, Ct = Nt({
196
196
  enabled: !!D && !L,
197
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, {
198
+ preferText: O
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 ? Re(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: tt,
206
- onClick: ft,
205
+ icon: Ie,
206
+ onClick: dt,
207
207
  disabled: S?.disabled,
208
- loading: be || Se || !!S?.busy
209
- }) : null, jt = et({
210
- streaming: ut,
211
- hasDataToSend: ct,
212
- canSend: lt
213
- }), Mt = (e) => /* @__PURE__ */ X(Xe, {
208
+ loading: be || Ce || !!S?.busy
209
+ }) : null, jt = $e({
210
+ streaming: lt,
211
+ hasDataToSend: st,
212
+ canSend: ct
213
+ }), Mt = (e) => /* @__PURE__ */ X(Ze, {
214
214
  action: jt,
215
215
  sendKind: r,
216
216
  size: e,
217
217
  submit: ae,
218
218
  labels: I,
219
- onSend: dt,
219
+ onSend: ut,
220
220
  onStop: () => {
221
221
  n?.(), V.current?.focus();
222
222
  }
223
- }), Pt = { duration: ue ? 0 : .15 }, Ft = typeof M == "function" ? M(R.status) : M, Lt = /* @__PURE__ */ X("div", {
223
+ }), Pt = { duration: ue ? 0 : .15 }, It = 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,
@@ -230,7 +230,7 @@ var Kn = [
230
230
  animate: { opacity: 1 },
231
231
  exit: { opacity: 0 },
232
232
  transition: Pt,
233
- children: [/* @__PURE__ */ X(ke, {
233
+ children: [/* @__PURE__ */ X(Oe, {
234
234
  stream: R.stream,
235
235
  className: "min-w-0 flex-1"
236
236
  }), /* @__PURE__ */ Z("div", {
@@ -241,7 +241,7 @@ var Kn = [
241
241
  size: "md",
242
242
  hideLabel: !0,
243
243
  label: I.cancelRecording,
244
- icon: Be,
244
+ icon: pt,
245
245
  onClick: mt
246
246
  }), /* @__PURE__ */ X(m, {
247
247
  type: "button",
@@ -260,9 +260,9 @@ var Kn = [
260
260
  exit: { opacity: 0 },
261
261
  transition: Pt,
262
262
  children: [
263
- Ft ? /* @__PURE__ */ X("div", {
263
+ It ? /* @__PURE__ */ X("div", {
264
264
  className: i("flex items-center gap-1", N ? "shrink-0" : "min-w-0"),
265
- children: Ft
265
+ children: It
266
266
  }) : null,
267
267
  N ? /* @__PURE__ */ X("div", {
268
268
  className: "min-w-0 flex-1",
@@ -284,9 +284,9 @@ var Kn = [
284
284
  1
285
285
  ]
286
286
  }, zt = /* @__PURE__ */ Z(Hn, { children: [
287
- te,
287
+ k,
288
288
  /* @__PURE__ */ X(at, {
289
- message: nt,
289
+ message: tt,
290
290
  id: Tt,
291
291
  reducedMotion: ue
292
292
  }),
@@ -295,11 +295,11 @@ var Kn = [
295
295
  className: i((j || re) && "flex items-end", re && "pr-3"),
296
296
  children: [
297
297
  j,
298
- /* @__PURE__ */ X(O, {
298
+ /* @__PURE__ */ X(ee, {
299
299
  className: "min-w-0 flex-1",
300
300
  textareaRef: V,
301
301
  highlightRef: Me,
302
- value: Oe,
302
+ value: ke,
303
303
  role: v,
304
304
  name: y,
305
305
  ariaLabel: I.placeholder,
@@ -317,16 +317,16 @@ var Kn = [
317
317
  onChange: B.handleChange,
318
318
  onKeyDown: xt,
319
319
  onPaste: Ct,
320
- onFocus: ze?.handleFocus,
321
- onBlur: ze?.handleBlur,
320
+ onFocus: Be?.handleFocus,
321
+ onBlur: Be?.handleBlur,
322
322
  onCursorUpdate: B.updateCursorPosition,
323
323
  onScroll: B.syncHighlightScroll,
324
324
  highlightSegments: Ue,
325
325
  hasOverlay: We,
326
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,
327
+ autocompleteListboxId: Ve ? Be?.listboxId : Dt ? Et : void 0,
328
+ activeAutocompleteOptionId: (Ve ? Be?.activeDescendantId : void 0) ?? kt,
329
+ isInvalid: et !== null,
330
330
  errorMessageId: Tt
331
331
  }),
332
332
  re ? /* @__PURE__ */ Z("div", {
@@ -356,9 +356,9 @@ var Kn = [
356
356
  children: Lt
357
357
  }, "action-row")
358
358
  }) : Lt
359
- ] }), Bt = /* @__PURE__ */ Z(Hn, { children: [
360
- ze?.popover,
361
- /* @__PURE__ */ X(it, {
359
+ ] }), Vt = /* @__PURE__ */ Z(Hn, { children: [
360
+ Be?.popover,
361
+ /* @__PURE__ */ X(nt, {
362
362
  isOpen: Dt,
363
363
  listboxId: Et,
364
364
  label: I.mentionSuggestions,
@@ -371,7 +371,7 @@ var Kn = [
371
371
  onSelect: H.selectRow,
372
372
  pinnedDescription: I.mentionPinnedDescription
373
373
  }),
374
- P === void 0 ? zt : /* @__PURE__ */ X(d, {
374
+ ie === void 0 ? zt : /* @__PURE__ */ X(d, {
375
375
  initial: !1,
376
376
  children: L ? /* @__PURE__ */ X(c.div, {
377
377
  className: "overflow-hidden",
@@ -405,7 +405,7 @@ var Kn = [
405
405
  1
406
406
  ]
407
407
  },
408
- children: P
408
+ children: ie
409
409
  }, "replacement") : /* @__PURE__ */ X(c.div, {
410
410
  className: "overflow-hidden",
411
411
  initial: {
@@ -441,28 +441,28 @@ var Kn = [
441
441
  children: zt
442
442
  }, "input")
443
443
  })
444
- ] }), Vt = i(Jn, oe);
444
+ ] }), Ht = i(Jn, oe);
445
445
  return ae ? /* @__PURE__ */ X("form", {
446
446
  ref: F,
447
447
  "data-testid": de,
448
448
  "data-f0-chat-composer": "",
449
449
  "aria-busy": t,
450
- className: Vt,
450
+ className: Ht,
451
451
  onClick: () => {
452
452
  L || V.current?.focus();
453
453
  },
454
454
  onFocus: se,
455
455
  onBlur: ce,
456
456
  onSubmit: St,
457
- children: Bt
457
+ children: Vt
458
458
  }) : /* @__PURE__ */ X("div", {
459
459
  ref: F,
460
460
  "data-testid": de,
461
461
  "data-f0-chat-composer": "",
462
- className: Vt,
462
+ className: Ht,
463
463
  onFocus: se,
464
464
  onBlur: ce,
465
- children: Bt
465
+ children: Vt
466
466
  });
467
467
  };
468
468
  //#endregion
@@ -492,19 +492,19 @@ function Qn(e, t, n = .2) {
492
492
  //#endregion
493
493
  //#region src/addons/ai/F0AiChatTextArea/components/AttachedFilesList.tsx
494
494
  var $n = (e) => {
495
- let { provided: t } = qe();
496
- return t ? /* @__PURE__ */ X(er, { ...e }) : /* @__PURE__ */ X(Ot, { children: /* @__PURE__ */ X(er, { ...e }) });
495
+ let { provided: t } = Je();
496
+ return t ? /* @__PURE__ */ X(er, { ...e }) : /* @__PURE__ */ X(Et, { 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 || Vt({
501
+ let n = e.file.name, r = e.file.type || zt({
502
502
  name: n,
503
503
  url: t
504
504
  });
505
505
  return [{
506
506
  att: e,
507
- attachment: Se({
507
+ attachment: z({
508
508
  name: n,
509
509
  url: t,
510
510
  mimeType: r
@@ -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" ? Ye(t, yt(n, t.url)) : null
527
- })), [c]), u = V(l, "composer"), d = c.map(({ att: e, attachment: t }) => ({
526
+ item: e.status === "uploaded" ? Xe(t, _t(n, t.url)) : null
527
+ })), [c]), u = je(l, "composer"), d = c.map(({ att: e, attachment: t }) => ({
528
528
  id: e.id,
529
- content: /* @__PURE__ */ X(ye, {
529
+ content: /* @__PURE__ */ X(ve, {
530
530
  attachment: t,
531
531
  status: e.status === "uploaded" ? "ready" : e.status === "error" ? "error" : "uploading",
532
532
  errorMessage: e.errorMessage,
@@ -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: mt,
569
+ icon: bt,
570
570
  onClick: r,
571
571
  disabled: i,
572
572
  disabledTooltip: a
573
- }, ...e.length > 0 ? [{ type: "separator" }] : []] : [], ...H(e)];
573
+ }, ...e.length > 0 ? [{ type: "separator" }] : []] : [], ...Me(e)];
574
574
  return /* @__PURE__ */ X("div", {
575
575
  onClick: (e) => e.stopPropagation(),
576
- children: /* @__PURE__ */ X(De, {
576
+ children: /* @__PURE__ */ X(Ee, {
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: mt,
609
+ icon: bt,
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(P, {
640
+ return /* @__PURE__ */ X(re, {
641
641
  notice: i,
642
642
  dismissLabel: r.ai.creditWarning.dismiss ?? "",
643
643
  className: "[&_form]:border-f1-border",
@@ -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: B,
837
+ icon: De,
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: Be,
852
+ icon: pt,
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(Ne, {
861
+ children: e.slice(0, 4).map((e) => /* @__PURE__ */ X(H, {
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: 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 }) {
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: S, onProcessFilesRef: C, disclaimer: T, usageLimits: E, footer: D, isWelcomeScreen: O = !1, fullscreen: ee = !1, welcomeScreenSuggestions: te, onSuggestionClick: k, welcomeScreenSuggestionsPlacement: A = "above", welcomeScreenSuggestionsCollapsedByDefault: j = !1, welcomeScreenCards: N, 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,36 +1010,36 @@ 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, fe = J(u), pe = J(m);
1013
+ let L = l != null, fe = J(u), pe = J(m);
1014
1014
  Vn(() => {
1015
1015
  fe.current = u, pe.current = m;
1016
1016
  });
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({
1017
+ let { tracking: he, 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
1018
  searchPersons: x,
1019
- mentionSources: C
1019
+ mentionSources: S
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) ge(null);
1024
+ if (L) ge(null);
1025
1025
  else return ge(() => {
1026
1026
  ae.current?.focus();
1027
1027
  }), () => ge(null);
1028
- }, [I, ge]), K(() => {
1029
- if (w) return w((e) => {
1028
+ }, [L, ge]), K(() => {
1029
+ if (C) return C((e) => {
1030
1030
  z(e);
1031
1031
  }), () => {
1032
- w(null);
1032
+ C(null);
1033
1033
  };
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, V = async ({ text: t, mentions: n }) => {
1034
+ }, [C, 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"), je = !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: L(t, n),
1042
+ text: I(t, n),
1043
1043
  files: i,
1044
1044
  context: o,
1045
1045
  quote: s
@@ -1049,17 +1049,17 @@ function wr({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placehol
1049
1049
  }
1050
1050
  for (let e of r) Ce(e.id);
1051
1051
  return !0;
1052
- }, Me = A === "inside", H = je(), Ne = N({
1053
- onItemClick: te,
1052
+ }, Me = A === "inside", H = Ae(), Ne = M({
1053
+ onItemClick: k,
1054
1054
  inBar: Me
1055
- }), Pe = O && ee && ee.length > 0 && te ? /* @__PURE__ */ X(he, {
1056
- suggestions: ee,
1055
+ }), Pe = O && te && te.length > 0 && k ? /* @__PURE__ */ X(me, {
1056
+ suggestions: te,
1057
1057
  onItemClick: Ne.pick,
1058
1058
  onItemHover: Ne.preview,
1059
1059
  side: Me ? "bottom" : "top",
1060
1060
  reserveTwoRows: !Me,
1061
1061
  overflow: Me ? "scroll" : "wrap"
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 = () => {
1062
+ }) : null, Fe = !j || oe || je || 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);
@@ -1074,16 +1074,16 @@ function wr({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placehol
1074
1074
  .2,
1075
1075
  1
1076
1076
  ]
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);
1077
+ }, Ue = O && ee && !!N && N.length > 0, We = ee && O, Ge = We || !H?.inBar, Ke = We ? null : mr(T, E), qe = L || !!(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
- ...k ? Je : {},
1081
+ ...ee ? Je : {},
1082
1082
  children: [
1083
1083
  /* @__PURE__ */ Z("div", {
1084
1084
  className: i("flex flex-col gap-2", Cr),
1085
1085
  children: [
1086
- D && !k ? D : null,
1086
+ D && !ee ? D : null,
1087
1087
  Pe && !Me ? /* @__PURE__ */ X("div", { children: j ? /* @__PURE__ */ X(d, {
1088
1088
  initial: !1,
1089
1089
  children: Fe ? /* @__PURE__ */ X(c.div, {
@@ -1111,7 +1111,7 @@ function wr({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placehol
1111
1111
  surfaceRef: ue,
1112
1112
  handleRef: ae,
1113
1113
  className: "isolate z-20 items-stretch bg-f1-special-page-surface p-0 hover:cursor-text",
1114
- replacement: I ? l : null,
1114
+ replacement: L ? l : null,
1115
1115
  onSurfaceFocus: () => se(!0),
1116
1116
  onSurfaceBlur: Le,
1117
1117
  onStateChange: le,
@@ -1146,8 +1146,8 @@ function wr({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placehol
1146
1146
  },
1147
1147
  voice: b ? {
1148
1148
  onTranscribe: b,
1149
- onPress: me?.onDictationStart,
1150
- onCancelled: me?.onDictationCancel
1149
+ onPress: he?.onDictationStart,
1150
+ onCancelled: he?.onDictationCancel
1151
1151
  } : void 0,
1152
1152
  onPasteFiles: g?.onUploadFiles ? De : void 0,
1153
1153
  pastePreferText: !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(S, {
1167
+ children: /* @__PURE__ */ X(w, {
1168
1168
  size: "sm",
1169
1169
  spin: r
1170
1170
  })
@@ -1197,7 +1197,7 @@ function wr({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placehol
1197
1197
  children: /* @__PURE__ */ X("div", {
1198
1198
  className: i("flex min-h-0 min-w-0 flex-col items-center", !qe && "overflow-hidden"),
1199
1199
  children: /* @__PURE__ */ X(ut, {
1200
- hint: I ? {
1200
+ hint: L ? {
1201
1201
  navigate: P.ai.clarifyingQuestion.navHint.navigate,
1202
1202
  select: P.ai.clarifyingQuestion.navHint.select,
1203
1203
  cancel: P.ai.clarifyingQuestion.navHint.cancel
@@ -1210,9 +1210,9 @@ function wr({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placehol
1210
1210
  }),
1211
1211
  Ue ? /* @__PURE__ */ X("div", {
1212
1212
  className: i("mt-2 pt-2", Cr),
1213
- children: /* @__PURE__ */ X(gr, { cards: M })
1213
+ children: /* @__PURE__ */ X(gr, { cards: N })
1214
1214
  }) : null,
1215
- D && O && k ? /* @__PURE__ */ X("div", {
1215
+ D && O && ee ? /* @__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
@@ -1226,7 +1226,7 @@ function Tr(e) {
1226
1226
  ...e,
1227
1227
  name: "one-ai-input"
1228
1228
  });
1229
- return Oe() ? t : /* @__PURE__ */ X(ne, { children: t });
1229
+ return B() ? t : /* @__PURE__ */ X(N, { children: t });
1230
1230
  }
1231
1231
  //#endregion
1232
1232
  //#region src/addons/ai/markdown/typography.ts
@@ -1326,7 +1326,7 @@ 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 = le(), c = I(), l = j(e || void 0), [u, d] = Y(!1), [f, p] = Y(!1), m = n || (e ? nt(e) : "") || "image";
1329
+ let o = t(), s = ce(), c = de(), l = j(e || void 0), [u, d] = Y(!1), [f, p] = Y(!1), m = n || (e ? et(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
@@ -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: Ze,
1362
+ icon: Dt,
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 = Ue(), [i, a] = Y();
1471
+ let n = J(null), r = We(), [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) => Gt(Xr(e)))), a = n === "xlsx" ? await x([{
1499
+ let i = (e.length > 0 ? [e, ...t] : t).map((e) => e.map((e) => Wt(Xr(e)))), a = n === "xlsx" ? await S([{
1500
1500
  name: "Data",
1501
1501
  rows: i
1502
1502
  }]) : await se(i);
1503
- R(a, `${r}.${n}`);
1503
+ ye(a, `${r}.${n}`);
1504
1504
  }
1505
1505
  var oi = (e, t, n) => e ? {
1506
1506
  role: "region",
@@ -1508,32 +1508,32 @@ var oi = (e, t, n) => e ? {
1508
1508
  "aria-label": t || n
1509
1509
  } : {};
1510
1510
  function si({ children: e, title: n, ...r }) {
1511
- let o = t(), s = J(null), c = $r(s), l = c.left || c.right, u = p(), d = re(), f = (t) => {
1511
+ let o = t(), s = J(null), c = $r(s), l = c.left || c.right, u = p(), d = ne(), f = (t) => {
1512
1512
  let r = n?.replace(/\s+/g, "_").toLowerCase() || "table";
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(De, {
1516
+ children: [/* @__PURE__ */ X(Ee, {
1517
1517
  items: [{
1518
1518
  label: o.t("ai.dataDownload.download", { format: "Excel" }),
1519
- icon: Ze,
1519
+ icon: Dt,
1520
1520
  onClick: () => f("xlsx")
1521
1521
  }, {
1522
1522
  label: o.t("ai.dataDownload.download", { format: "CSV" }),
1523
- icon: Ze,
1523
+ icon: Dt,
1524
1524
  onClick: () => f("csv")
1525
1525
  }],
1526
1526
  children: /* @__PURE__ */ X(m, {
1527
1527
  variant: "ghost",
1528
1528
  size: "sm",
1529
- icon: Ze,
1529
+ icon: Dt,
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 ? te : pn,
1536
+ icon: c.after > 0 ? fe : 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",
@@ -1564,7 +1564,7 @@ var ci = "border-0 border-b border-solid pr-4 text-left text-sm leading-4.5 @[56
1564
1564
  className: "after:invisible after:block after:h-0 after:w-max after:overflow-hidden after:content-[attr(data-floor)] first:after:max-w-44"
1565
1565
  }), di = "after:max-w-[min(20rem,40cqi)]", fi = i("[--cap:min(20rem,40cqi)]", "after:max-w-[calc(var(--cap)_-_(var(--cap)_-_min(6rem,var(--cap)))_*_max(0,sign(var(--one-line,0px)_-_var(--cap))))]", "before:invisible before:absolute before:end-full before:h-0 before:w-max before:overflow-hidden before:whitespace-nowrap before:content-[attr(data-floor)]");
1566
1566
  function pi({ children: e, ...t }) {
1567
- let { className: n, ...r } = ui(Xr(e)), a = re();
1567
+ let { className: n, ...r } = ui(Xr(e)), a = ne();
1568
1568
  return /* @__PURE__ */ X("th", {
1569
1569
  ...r,
1570
1570
  ...t,
@@ -1573,7 +1573,7 @@ function pi({ children: e, ...t }) {
1573
1573
  });
1574
1574
  }
1575
1575
  function mi({ children: e, ellipsis: t = !1, ...n }) {
1576
- let r = Xr(e), { className: a, ...o } = ui(r), { cell: s, width: c } = ti(r, !t), l = re();
1576
+ let r = Xr(e), { className: a, ...o } = ui(r), { cell: s, width: c } = ti(r, !t), l = ne();
1577
1577
  return /* @__PURE__ */ X("td", {
1578
1578
  ref: s,
1579
1579
  title: t && r || void 0,
@@ -1634,7 +1634,7 @@ function gi({ id: e, trigger: t, resolver: n, contentClassName: r = "w-64", ...a
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(Ne.Skeleton, {}) : /* @__PURE__ */ X(Ne, { ...o.status === "ready" ? a.mapToCard(o.data) : a.fallbackCard })
1637
+ children: a.renderCard ? a.renderCard(o) : o.status === "loading" ? /* @__PURE__ */ X(H.Skeleton, {}) : /* @__PURE__ */ X(H, { ...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: $e
1752
+ icon: ht
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(ge, {
1832
+ if (e.status !== "ready") return /* @__PURE__ */ X(he, {
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(ge, {
1843
+ return /* @__PURE__ */ X(he, {
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 nt(r ?? t) || e || "file";
2098
+ return et(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 || nt(e.path),
2149
+ name: e.displayName || et(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) => Vt(e) ?? "", ea = Mn(!1), ta = () => Ln(ea), na = (e, t) => {
2153
+ }), $i = (e) => zt(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 } = vt(e), a = [];
2463
+ let { days: t, hours: n, minutes: r, seconds: i } = gt(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(fe, {
2582
+ children: /* @__PURE__ */ X(L, {
2583
2583
  details: y.map((e) => ({
2584
2584
  title: e.label,
2585
2585
  content: e.content,
@@ -2615,9 +2615,9 @@ 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 = xe(), 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 = R(), c = ta(), l = e.map((e) => e.file), u = (r, { fallback: a = !0 } = {}) => {
2619
2619
  let o = e[r];
2620
- o && t?.(o.file, "document", { documentKind: o.documentKind }) !== !1 && !i(Ke({
2620
+ o && t?.(o.file, "document", { documentKind: o.documentKind }) !== !1 && !i(qe({
2621
2621
  files: l,
2622
2622
  index: r,
2623
2623
  config: s
@@ -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 = At(r, e.url);
2640
+ let n = kt(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",
@@ -2651,7 +2651,7 @@ var Ua = 625, Wa = /* @__PURE__ */ new Set(), Ga = ({ documents: e, onOpenFile:
2651
2651
  }
2652
2652
  },
2653
2653
  title: e.name,
2654
- description: e.size ? We(e.size) : jt(e.name, $i(e)),
2654
+ description: e.size ? Ge(e.size) : jt(e.name, $i(e)),
2655
2655
  isActive: n,
2656
2656
  action: {
2657
2657
  type: "open",
@@ -2663,8 +2663,8 @@ var Ua = 625, Wa = /* @__PURE__ */ new Set(), Ga = ({ documents: e, onOpenFile:
2663
2663
  })
2664
2664
  });
2665
2665
  }, Ka = "rounded-xl", qa = "ai-chat", Ja = (e) => {
2666
- let { provided: t } = qe();
2667
- return t ? /* @__PURE__ */ X(Za, { ...e }) : /* @__PURE__ */ X(Ot, { children: /* @__PURE__ */ X(Za, { ...e }) });
2666
+ let { provided: t } = Je();
2667
+ return t ? /* @__PURE__ */ X(Za, { ...e }) : /* @__PURE__ */ X(Et, { 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 = Me(), 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 } = Je(), s = V(), 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 = V(f, "transcript");
2679
+ ]), f = q(() => i === "compact" ? d : [...d].sort((e, t) => Ya[e.cls.bucket] - Ya[t.cls.bucket]), [d, i]), p = je(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 = Ft(e), a = !(t || Kt(e.url)) || i.bucket === "file" || i.bucket === "image" && n.has(e.url);
2692
+ let i = Pt(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 : Ye(e, yt(r, e.url))
2697
+ item: a ? null : Xe(e, _t(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,7 +2726,7 @@ 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(Lt, {
2729
+ return r.bucket === "video" ? /* @__PURE__ */ X(It, {
2730
2730
  file: A(n),
2731
2731
  cornerClass: "rounded-xl",
2732
2732
  testIdPrefix: qa,
@@ -2735,7 +2735,7 @@ 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(_t, {
2738
+ return i.bucket === "document" ? /* @__PURE__ */ X(mt, {
2739
2739
  file: A(n),
2740
2740
  kind: i.kind,
2741
2741
  cornerClass: "rounded-xl",
@@ -2748,7 +2748,7 @@ 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(k, {
2751
+ c.map((e, t) => e.cls.bucket === "audio" ? /* @__PURE__ */ X(te, {
2752
2752
  file: A(e.file),
2753
2753
  testIdPrefix: qa,
2754
2754
  onDownloaded: () => s?.(e.file)
@@ -2759,7 +2759,7 @@ 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(_t, {
2762
+ return i.bucket === "document" ? /* @__PURE__ */ X(mt, {
2763
2763
  file: A(n),
2764
2764
  kind: i.kind,
2765
2765
  cornerClass: "rounded-xl",
@@ -2795,11 +2795,11 @@ 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(w, {
2798
+ }, c) : s.bucket === "audio" ? /* @__PURE__ */ X(E, {
2799
2799
  file: A(i),
2800
2800
  testIdPrefix: qa,
2801
2801
  onOpen: () => n(e)
2802
- }, c) : s.bucket === "document" ? /* @__PURE__ */ X(_t, {
2802
+ }, c) : s.bucket === "document" ? /* @__PURE__ */ X(mt, {
2803
2803
  file: A(i),
2804
2804
  kind: s.kind,
2805
2805
  cornerClass: "rounded-xl",
@@ -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 = I(), a = $i(e);
2818
- return /* @__PURE__ */ X(Je, {
2817
+ let r = t(), i = de(), a = $i(e);
2818
+ return /* @__PURE__ */ X(Ye, {
2819
2819
  file: {
2820
2820
  ...e,
2821
2821
  mimeType: a
2822
2822
  },
2823
- icon: a === "application/zip" ? pe : void 0,
2823
+ icon: a === "application/zip" ? y : void 0,
2824
2824
  testId: `${qa}-file-tile`,
2825
2825
  action: {
2826
2826
  label: r.t("chat.downloadNamedFile", { name: e.name }),
2827
- icon: Ze,
2827
+ icon: Dt,
2828
2828
  onClick: () => {
2829
2829
  i(e.url, e.name), n?.(e);
2830
2830
  }
@@ -2832,7 +2832,7 @@ 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 _e(s.status, r), /* @__PURE__ */ X("button", {
2835
+ return ge(s.status, r), /* @__PURE__ */ X("button", {
2836
2836
  type: "button",
2837
2837
  onClick: n,
2838
2838
  draggable: !1,
@@ -2848,7 +2848,7 @@ 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 } = xe(), s = j(e.thumbnailUrl), c = !e.thumbnailUrl && o === null, [l, u] = Y(!1);
2851
+ let r = t(), { urlCache: o } = R(), 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,
@@ -2862,17 +2862,17 @@ var Ua = 625, Wa = /* @__PURE__ */ new Set(), Ga = ({ documents: e, onOpenFile:
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 ? He(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 = Lt(o && s.status === "ready" ? s.url : void 0, o) ?? void 0, l = o ? Ue(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" : Ve, kt, Ka),
2868
+ className: i("grid grid-cols-2 overflow-hidden border border-solid border-f1-border-secondary", l ? "max-w-full" : He, Ot, Ka),
2869
2869
  "data-testid": "ai-chat-image-album",
2870
- children: Ut(c ? [c] : e).map((t, o, s) => {
2870
+ children: Vt(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;
2874
- return /* @__PURE__ */ X(we, {
2875
- image: Ee(c),
2874
+ return /* @__PURE__ */ X(Ce, {
2875
+ image: Te(c),
2876
2876
  aspectRatio: t.aspectRatio,
2877
2877
  spanFull: t.span === 2,
2878
2878
  inset: t.inset,
@@ -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", ht),
2891
+ className: i("absolute inset-0 flex items-center justify-center text-2xl font-semibold text-f1-foreground-inverse", dt),
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: M,
2970
+ icon: oe,
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(T, {
2979
+ var ho = Mn(void 0), go = () => Ln(ho), _o = (e) => /* @__PURE__ */ X(D, {
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(T, {
3041
3041
  return document.addEventListener("keydown", e), () => {
3042
3042
  document.removeEventListener("keydown", e);
3043
3043
  };
3044
- }, [d]), /* @__PURE__ */ X(Ie, {
3044
+ }, [d]), /* @__PURE__ */ X(Le, {
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(T, {
3058
3058
  },
3059
3059
  children: /* @__PURE__ */ X("div", {
3060
3060
  className: "flex flex-col gap-6",
3061
- children: /* @__PURE__ */ X(Dt, {
3061
+ children: /* @__PURE__ */ X(Tt, {
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(T, {
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(ee, {
3077
+ /* @__PURE__ */ X(k, {
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(T, {
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" ? D : me,
3098
+ icon: f === "like" ? O : pe,
3099
3099
  color: "default"
3100
3100
  })
3101
3101
  })
@@ -3113,7 +3113,7 @@ var ho = Mn(void 0), go = () => Ln(ho), _o = (e) => /* @__PURE__ */ X(T, {
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" ? lt : y,
3116
+ icon: f === "dislike" ? lt : b,
3117
3117
  color: "default"
3118
3118
  })
3119
3119
  })
@@ -3130,7 +3130,7 @@ var ho = Mn(void 0), go = () => Ln(ho), _o = (e) => /* @__PURE__ */ X(T, {
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: E,
3133
+ icon: st,
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(ze, {
3194
+ return /* @__PURE__ */ Z(Be, {
3195
3195
  className: "mb-1 w-full",
3196
3196
  open: r,
3197
3197
  onOpenChange: a,
3198
- children: [/* @__PURE__ */ Z(Et, {
3198
+ children: [/* @__PURE__ */ Z(wt, {
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", {
@@ -3212,7 +3212,7 @@ var So = "-ml-1 flex w-5 shrink-0 flex-col items-center", Co = "w-px shrink-0 bg
3212
3212
  })
3213
3213
  })] })
3214
3214
  })]
3215
- }), /* @__PURE__ */ X(gt, {
3215
+ }), /* @__PURE__ */ X(ft, {
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(bt, {
3249
+ children: [n ? /* @__PURE__ */ X(vt, {
3250
3250
  variant: "thinking",
3251
3251
  size: 15
3252
3252
  }) : /* @__PURE__ */ X(U, {
3253
- icon: pt,
3253
+ icon: it,
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(bt, {
3333
+ icon: l ? /* @__PURE__ */ X(vt, {
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(bt, {
3375
+ children: /* @__PURE__ */ X(vt, {
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", oe),
3380
+ className: i("text-pretty leading-5", ae),
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: B })
3427
+ children: /* @__PURE__ */ X(U, { icon: De })
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(T, {
3481
+ var Ho = (e) => /* @__PURE__ */ X(D, {
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(T, {
3496
3496
  target: "_blank",
3497
3497
  children: r
3498
3498
  }), e.slice(n)] }, t);
3499
- }, qo = (e, t) => ve(e).map((e, n) => n % 2 == 1 ? Ko(e, `${t}-${n}`) : e), Jo = (e) => /* @__PURE__ */ X("p", {
3499
+ }, qo = (e, t) => _e(e).map((e, n) => n % 2 == 1 ? Ko(e, `${t}-${n}`) : e), Jo = (e) => /* @__PURE__ */ X("p", {
3500
3500
  className: "m-0",
3501
- children: ue(e).map((e, t) => e.kind === "text" ? qo(e.text, t) : /* @__PURE__ */ X(Fi, {
3501
+ children: le(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") : b(f), { anchor: y, 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") : x(f), { anchor: y, clear: b } = 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(ee, {
3550
+ children: /* @__PURE__ */ X(k, {
3551
3551
  size: "md",
3552
3552
  variant: "ghost",
3553
3553
  valueToCopy: v,
@@ -3560,7 +3560,7 @@ function Xo({ message: e, onReplyQuote: n, onCopy: r, autoScrollIntoView: a = !0
3560
3560
  /* @__PURE__ */ X(mo, {
3561
3561
  anchor: y,
3562
3562
  onReply: (e) => {
3563
- n?.(e), x(), window.getSelection()?.removeAllRanges();
3563
+ n?.(e), b(), window.getSelection()?.removeAllRanges();
3564
3564
  }
3565
3565
  })
3566
3566
  ]
@@ -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(Ae), [t] = Y(() => e?.nextRound ?? 0), n = e?.claimRound;
3589
+ let e = Ln(ke), [t] = Y(() => e?.nextRound ?? 0), n = e?.claimRound;
3590
3590
  return K(function() {
3591
3591
  n?.(t);
3592
3592
  }, [n, t]), t;
@@ -3595,7 +3595,7 @@ var Qo = () => {
3595
3595
  return () => t(null);
3596
3596
  }, [e, t]);
3597
3597
  }, es = ({ onItemClick: e, onItemHover: t }) => {
3598
- let { preview: n, pick: r } = N({ onItemClick: e }), i = _((e) => t?.(e));
3598
+ let { preview: n, pick: r } = M({ onItemClick: e }), i = _((e) => t?.(e));
3599
3599
  return {
3600
3600
  preview: G((e) => {
3601
3601
  n(e), i(e);
@@ -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(Tt, {
3666
+ children: o.map(({ item: e, group: t, onOverflowChange: n }, r) => /* @__PURE__ */ X(Ct, {
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(), 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({
3736
+ let { modal: T, handleSubmit: E, handleClose: D } = Bi(_ ?? ds), O = t(), ee = x ?? vo, te = S ?? Xo, k = a ?? O.ai.defaultInitialMessage, A = !n && e.length === 0 && k !== "", 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,7 +3746,7 @@ 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], 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) => {
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), de = (t, n) => {
3750
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,
@@ -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: k,
3763
- UserMessage: ee,
3762
+ AssistantMessage: ee,
3763
+ UserMessage: te,
3764
3764
  onRegenerate: C,
3765
3765
  onCopy: w,
3766
3766
  rawData: e.rawData || {},
3767
3767
  ...c
3768
3768
  };
3769
- return /* @__PURE__ */ X(ee, { ...r }, `${n}-u-${t}`);
3769
+ return /* @__PURE__ */ X(te, { ...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: k,
3777
- UserMessage: ee,
3776
+ AssistantMessage: ee,
3777
+ UserMessage: te,
3778
3778
  onRegenerate: C,
3779
3779
  onCopy: w,
3780
3780
  rawData: e.rawData || {},
3781
3781
  ...c
3782
3782
  };
3783
- return /* @__PURE__ */ X(k, {
3783
+ return /* @__PURE__ */ X(ee, {
3784
3784
  ...l,
3785
3785
  isGenerating: i && o,
3786
3786
  isLive: i || le(e.id),
@@ -3838,13 +3838,13 @@ function ps({ turns: e, isLoadingThread: n = !1, interrupt: r, initialMessage: a
3838
3838
  children: [
3839
3839
  n ? /* @__PURE__ */ X(xo, {}) : null,
3840
3840
  A ? /* @__PURE__ */ X(us, {
3841
- phrase: te,
3841
+ phrase: k,
3842
3842
  caption: o,
3843
3843
  subtitle: s,
3844
3844
  prompts: u,
3845
3845
  onClick: l
3846
3846
  }) : null,
3847
- n ? null : e.map((e, t) => ue(e, t)),
3847
+ n ? null : e.map((e, t) => de(e, t)),
3848
3848
  r
3849
3849
  ]
3850
3850
  }),
@@ -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(de, {
3878
+ children: /* @__PURE__ */ X(ue, {
3879
3879
  label: O.ai.scrollToBottom,
3880
3880
  onClick: () => ae()
3881
3881
  })
@@ -3893,8 +3893,8 @@ var ms = (e) => !!Zi(e.content) || Xi(e).length > 0;
3893
3893
  //#endregion
3894
3894
  //#region src/addons/ai/F0AiMessagesContainer/F0AiMessagesContainer.tsx
3895
3895
  function hs(e) {
3896
- let t = qe(), n = /* @__PURE__ */ X(Ri, { children: /* @__PURE__ */ X(ps, { ...e }) });
3897
- return e.filePreviews || !t.provided ? /* @__PURE__ */ X(Ot, {
3896
+ let t = Je(), n = /* @__PURE__ */ X(Ri, { children: /* @__PURE__ */ X(ps, { ...e }) });
3897
+ return e.filePreviews || !t.provided ? /* @__PURE__ */ X(Et, {
3898
3898
  filePreviews: e.filePreviews,
3899
3899
  children: n
3900
3900
  }) : n;
@@ -4164,7 +4164,7 @@ var Ds = [
4164
4164
  onClick: c,
4165
4165
  label: l.actions.cancel,
4166
4166
  hideLabel: !0,
4167
- icon: Be
4167
+ icon: pt
4168
4168
  })
4169
4169
  ]
4170
4170
  });
@@ -4172,17 +4172,17 @@ 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", k = s > 1, ee = o === 0, te = o === s - 1, A = k ? 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", ee = s > 1, te = o === 0, k = o === s - 1, A = ee ? r.t("ai.clarifyingQuestion.stepOf", {
4176
4176
  current: String(o + 1),
4177
4177
  total: String(s)
4178
- }) : void 0, j = x.length > 0, M = (T ?? "").trim().length > 0, N = j || E && M || C === !0, ne = n === !0 && te, re = () => {
4178
+ }) : void 0, j = x.length > 0, M = (T ?? "").trim().length > 0, N = j || E && M || C === !0, ne = n === !0 && k, re = () => {
4179
4179
  ne || u();
4180
4180
  }, P = () => {
4181
4181
  ne || f();
4182
4182
  }, ie = (e) => {
4183
4183
  let t = O === "single" && x.includes(e);
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), F = () => {
4184
+ l(e), O === "single" && !k && !t && Promise.resolve().then(u);
4185
+ }, ae = k ? 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
  });
@@ -4217,8 +4217,8 @@ var Ds = [
4217
4217
  children: [/* @__PURE__ */ X(Ns, {
4218
4218
  question: y,
4219
4219
  stepLabel: A,
4220
- isFirstStep: ee,
4221
- isFinalStep: te,
4220
+ isFirstStep: te,
4221
+ isFinalStep: k,
4222
4222
  canProceed: N,
4223
4223
  onBack: h,
4224
4224
  onNext: u,
@@ -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 = be(e), i = J(null);
4578
+ let [t, n] = Y(e), r = C(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 = ce(r, e, t);
4584
+ i.current = Gt(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
- }, 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
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
+ }, te = () => {
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,
@@ -4869,7 +4869,7 @@ function Ac({ fs: e, vs: t = ic, textures: n = [], uniforms: r, clearColor: i =
4869
4869
  -1,
4870
4870
  0
4871
4871
  ]), e.STATIC_DRAW);
4872
- }, te = ({ alpha: e, beta: t, gamma: n }) => {
4872
+ }, k = ({ alpha: e, beta: t, gamma: n }) => {
4873
4873
  E.current.iDeviceOrientation.value = [
4874
4874
  e ?? 0,
4875
4875
  t ?? 0,
@@ -5033,19 +5033,19 @@ function Ac({ fs: e, vs: t = ic, textures: n = [], uniforms: r, clearColor: i =
5033
5033
  v.current = requestAnimationFrame(F);
5034
5034
  }, se = () => {
5035
5035
  let e = { passive: !0 };
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));
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", k, e), p.current && (T.current = new ResizeObserver(N), T.current.observe(p.current), window.addEventListener("resize", N, e));
5037
5037
  }, ce = () => {
5038
5038
  let e = { passive: !0 };
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));
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", k, e), T.current && (T.current.disconnect(), window.removeEventListener("resize", N, e));
5040
5040
  };
5041
5041
  return K(() => {
5042
5042
  D.current = r;
5043
5043
  }, [r]), K(() => {
5044
5044
  let n = C.current;
5045
5045
  function r() {
5046
- k();
5046
+ ee();
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), ee(), requestAnimationFrame(F), se(), 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), te(), requestAnimationFrame(F), se(), N());
5049
5049
  }
5050
5050
  return requestAnimationFrame(r), () => {
5051
5051
  let e = m.current;
@@ -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(Re, {
5195
+ var Ic = ({ text: e, description: t, avatar: n, confirmationText: r, onConfirm: i, cancelText: a, onCancel: o, stackAt: s = "sm" }) => /* @__PURE__ */ X(ze, {
5196
5196
  title: e,
5197
5197
  description: t,
5198
5198
  avatar: n,
@@ -5368,7 +5368,7 @@ var Yc = ({ cx: e, cy: t, index: n, dataLength: r, color: i }) => n !== r - 1 ||
5368
5368
  children: [/* @__PURE__ */ X(Mt, {
5369
5369
  width: "100%",
5370
5370
  height: "100%",
5371
- children: /* @__PURE__ */ Z(zt, {
5371
+ children: /* @__PURE__ */ Z(Rt, {
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(C, {
5396
+ /* @__PURE__ */ X(T, {
5397
5397
  hide: !0,
5398
5398
  domain: ["dataMin - 1", "dataMax + 1"]
5399
5399
  }),
5400
- /* @__PURE__ */ X(Te, {
5400
+ /* @__PURE__ */ X(we, {
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(wt(Qc, () => /* @__PURE__ */ Z("div", {
5487
+ var $c = e(St(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(ze, {
5572
+ return /* @__PURE__ */ Z(Be, {
5573
5573
  className: "mb-1 w-full",
5574
5574
  open: r,
5575
5575
  onOpenChange: i,
5576
- children: [/* @__PURE__ */ Z(Et, {
5576
+ children: [/* @__PURE__ */ Z(wt, {
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", {
@@ -5592,7 +5592,7 @@ var sl = ({ icon: e, title: t, children: n }) => {
5592
5592
  className: "h-4 w-4 transition-transform duration-200"
5593
5593
  })
5594
5594
  ]
5595
- }), /* @__PURE__ */ X(gt, {
5595
+ }), /* @__PURE__ */ X(ft, {
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) => rt[e] ?? Sn, ll = ({ iconName: e }) => e ? /* @__PURE__ */ X("div", {
5619
+ }, cl = (e) => tt[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: Pt
5707
+ icon: Ht
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: dt,
5783
+ icon: At,
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 ? ft : Bt,
5842
+ icon: n ? rt : xe,
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: Be,
5849
+ icon: pt,
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(De, {
5875
+ children: /* @__PURE__ */ X(Ee, {
5876
5876
  items: e,
5877
5877
  children: /* @__PURE__ */ X(m, {
5878
5878
  icon: xn,
@@ -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 = St() === "two-level", _ = q(() => [
5942
+ let p = t(), m = Rn(), g = yt() === "two-level", _ = q(() => [
5943
5943
  {
5944
5944
  label: n ? p.ai.unpinChat : p.ai.pinChat,
5945
- icon: n ? xt : ae,
5945
+ icon: n ? ie : Ne,
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: ot,
5951
+ icon: Ve,
5952
5952
  critical: !0,
5953
5953
  onClick: () => u(e.id)
5954
5954
  }
@@ -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: Be,
6134
+ icon: pt,
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 qt(t) ? "today" : z(t) ? "yesterday" : mn(t, n) ? "thisMonth" : "older";
6162
+ return qt(t) ? "today" : be(t) ? "yesterday" : mn(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: dt,
6217
+ icon: At,
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 = Ct(Hl, []);
6313
+ let e = xt(Hl, []);
6314
6314
  return new Set(Array.isArray(e) ? e : []);
6315
6315
  }
6316
6316
  function Wl(e) {
6317
- st(Hl, [...e]);
6317
+ ot(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(S), Yl = ({ label: e, reduceMotion: t }) => /* @__PURE__ */ Z("div", {
6387
+ var Kl = ["attention"], ql = ["top", "bottom"], Jl = c.create(w), 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",