@factorialco/f0-react 5.0.0 → 6.0.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.
@@ -1,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { D as l, P as d, e as s } from "./pdfWorker-DyYHHcd2.js";
2
+ import { D as l, P as d, e as s } from "./pdfWorker-Dvf-df0z.js";
3
3
  s();
4
4
  const f = ({
5
5
  url: n,
@@ -1,7 +1,7 @@
1
1
  import { jsxs as i, jsx as l } from "react/jsx-runtime";
2
2
  import { useState as u, useCallback as m, useMemo as p } from "react";
3
- import { u as x, i as w, j as k, k as S, l as C } from "./F0CanvasPanel-B1J2Xyge.js";
4
- import { n as g, a as h, f as v, T as r, d as F } from "./index-B0Ommog8.js";
3
+ import { u as x, i as w, j as k, k as S, l as C } from "./F0CanvasPanel-W66eCV0Y.js";
4
+ import { n as g, a as h, f as v, T as r, d as F } from "./index-DzNPlwUX.js";
5
5
  const D = () => {
6
6
  const [t, a] = u(1), n = m(
7
7
  () => a((e) => g(e) ?? e),
@@ -1,8 +1,8 @@
1
1
  import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
2
  import { useRef as g, useState as h, useEffect as b } from "react";
3
3
  import { r as p } from "./docx-preview-BaRDMyPN.js";
4
- import { u as v, S as w } from "./F0CanvasPanel-B1J2Xyge.js";
5
- import { u as x, D as y } from "./DocumentToolbar-BJme6_ff.js";
4
+ import { u as v, S as w } from "./F0CanvasPanel-W66eCV0Y.js";
5
+ import { u as x, D as y } from "./DocumentToolbar-DfMuLukk.js";
6
6
  const V = ({
7
7
  url: o,
8
8
  filename: d,
@@ -1,6 +1,6 @@
1
1
  import { jsxs as a, jsx as t, Fragment as R1 } from "react/jsx-runtime";
2
2
  import { useInsertionEffect as Ar, forwardRef as m, useRef as $, useEffect as W, useLayoutEffect as ie, useState as D, useId as G1, useMemo as K, useCallback as O, createContext as W1, useContext as I1, createElement as Er, memo as $r } from "react";
3
- import { dd as Br, aJ as Ir, de as Pr, am as nt, ce as Dr, df as jr, dg as _r, dh as Zr, di as Or, cf as Ur, ck as st, cd as zr, dj as Gr, av as ae, dk as Wr, b7 as qr, dl as Xr, dm as Yr, dn as Kr, aP as Qr, dp as Jr, cK as eo, y as it, aC as to, dq as ro, o as le, aq as at, ah as q1, n as lt, bE as oo, ci as no, dr as so, br as io, cJ as ao, ao as F1, a_ as lo, bI as ct, ds as co, cH as uo, l as y1, cF as fo, dt as ho, c9 as dt, bq as po, du as mo, dv as Co, dw as go, dx as wo, dy as vo, dz as ut, cy as xo, cz as bo, dA as Lo, dB as ko, dC as yo, dD as Mo, dE as Ro, bT as Fo, ch as No, dF as Vo, dG as So, dH as To, dI as Ho, dJ as Ao, dK as Eo, dL as $o, dM as Bo, bS as Io, cI as Po, aA as Do, cu as jo, dN as _o, dO as Zo, dP as Oo, dQ as Uo, dR as zo, dS as Go, dT as Wo, aW as qo, bU as Xo, R as ft, dU as Yo, ag as Ko, ap as Qo, bV as ht, c8 as Jo, Q as pt, dV as en, i as tn, bH as rn, bG as on, dW as nn, dX as sn, bW as mt, bX as an, bY as ln, bp as cn, b0 as dn, dY as un, j as fn, bC as Ct, bB as gt, bw as hn, dZ as wt, az as pn, cg as ce, q as mn, bz as de, d_ as Cn, d$ as gn, e0 as ue, N as wn, O as vn, cG as vt, e1 as xn, ae as bn, ad as Ln, e2 as kn, e3 as yn, e4 as Mn, e5 as Rn, c6 as Fn, e6 as xt, e7 as Nn, aI as Vn, aB as Sn, e8 as Tn, af as i1, a6 as H1, cp as Hn, u as G, c5 as An, S as h1, bR as bt, U as a1, ar as En, m as w1, e9 as $n, aD as l1, aK as v1, ac as M1, a5 as Q, cP as Lt, t as fe, ea as Bn, x as he, b as k1, c3 as In, eb as Pn, c4 as Dn, ai as jn, bo as _n, au as pe, bZ as Zn, b_ as On, b$ as Un, c0 as Me, as as zn, aR as kt, be as yt, bQ as Gn, ay as Wn, cV as qn, ec as Xn, ed as Yn, bk as Mt, ee as Kn, cR as Qn, ef as Jn, bg as B1, bx as Rt, eg as Ft, by as Nt, c as oe, cj as Re, eh as Vt, ei as es, ej as ts, aH as rs, ek as os, bD as me, cv as ns, el as ss, em as is, en as as, eo as ls, ep as cs, w as ds, s as us, v as St, aa as fs, ab as hs, aE as Fe, eq as Tt, er as Ht, es as ps, et as ms, aF as Cs, aw as gs, eu as ws, ev as vs, d as xs } from "./F0CanvasPanel-B1J2Xyge.js";
3
+ import { dc as Br, aI as Ir, dd as Pr, am as nt, cd as Dr, de as jr, df as _r, dg as Zr, dh as Or, ce as Ur, cj as st, cc as zr, di as Gr, av as ae, dj as Wr, b6 as qr, dk as Xr, dl as Yr, dm as Kr, aP as Qr, dn as Jr, cJ as eo, y as it, aC as to, dp as ro, o as le, aq as at, ah as q1, n as lt, bD as oo, ch as no, dq as so, bq as io, cI as ao, ao as F1, aZ as lo, bH as ct, dr as co, cG as uo, l as y1, cE as fo, ds as ho, c8 as dt, bp as po, dt as mo, du as Co, dv as go, dw as wo, dx as vo, dy as ut, cx as xo, cy as bo, dz as Lo, dA as ko, dB as yo, dC as Mo, dD as Ro, bS as Fo, cg as No, dE as Vo, dF as So, dG as To, dH as Ho, dI as Ao, dJ as Eo, dK as $o, dL as Bo, bR as Io, cH as Po, aA as Do, ct as jo, dM as _o, dN as Zo, dO as Oo, dP as Uo, dQ as zo, dR as Go, dS as Wo, aV as qo, bT as Xo, R as ft, dT as Yo, ag as Ko, ap as Qo, bU as ht, c7 as Jo, Q as pt, dU as en, i as tn, bG as rn, bF as on, dV as nn, dW as sn, bV as mt, bW as an, bX as ln, bo as cn, a$ as dn, dX as un, j as fn, bB as Ct, bA as gt, bv as hn, dY as wt, az as pn, cf as ce, q as mn, by as de, dZ as Cn, d_ as gn, d$ as ue, N as wn, O as vn, cF as vt, e0 as xn, ae as bn, ad as Ln, e1 as kn, e2 as yn, e3 as Mn, e4 as Rn, c5 as Fn, e5 as xt, e6 as Nn, aH as Vn, aB as Sn, e7 as Tn, af as i1, a6 as H1, co as Hn, u as G, c4 as An, S as h1, bQ as bt, U as a1, ar as En, m as w1, e8 as $n, aD as l1, aJ as v1, ac as M1, a5 as Q, cO as Lt, t as fe, e9 as Bn, x as he, b as k1, c2 as In, ea as Pn, c3 as Dn, ai as jn, bn as _n, au as pe, bY as Zn, bZ as On, b_ as Un, b$ as Me, as as zn, aQ as kt, bd as yt, bP as Gn, ay as Wn, cU as qn, eb as Xn, ec as Yn, bj as Mt, ed as Kn, cQ as Qn, ee as Jn, bf as B1, bw as Rt, ef as Ft, bx as Nt, c as oe, ci as Re, eg as Vt, eh as es, ei as ts, aG as rs, ej as os, bC as me, cu as ns, ek as ss, el as is, em as as, en as ls, eo as cs, w as ds, s as us, v as St, aa as fs, ab as hs, aE as Fe, ep as Tt, eq as Ht, er as ps, es as ms, aM as Cs, aw as gs, et as ws, eu as vs, d as xs } from "./F0CanvasPanel-W66eCV0Y.js";
4
4
  import { d as k, f as p1, g as bs } from "./tooltip-Cik7KBQT.js";
5
5
  import { createPortal as At } from "react-dom";
6
6
  import { defaultTranslations as Ls } from "./i18n-provider-defaults.js";
@@ -5256,7 +5256,7 @@ const te = Hn(
5256
5256
  type: "layout"
5257
5257
  },
5258
5258
  er
5259
- ), j4 = ["xs", "sm", "md", "lg"], _4 = [
5259
+ ), D4 = ["xs", "sm", "md", "lg"], j4 = [
5260
5260
  "inProgress",
5261
5261
  "executing",
5262
5262
  "writing",
@@ -6298,7 +6298,7 @@ function il({
6298
6298
  close: F
6299
6299
  };
6300
6300
  }
6301
- const al = /[\\`*_{}[\]()#+\-.!|~>]/g, ll = (e) => e.split(/(<entity-ref\b[^>]*>[\s\S]*?<\/entity-ref>)/g).map((r, o) => o % 2 === 1 ? r : r.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(al, "\\$&")).join(""), Z4 = ({
6301
+ const al = /[\\`*_{}[\]()#+\-.!|~>]/g, ll = (e) => e.split(/(<entity-ref\b[^>]*>[\s\S]*?<\/entity-ref>)/g).map((r, o) => o % 2 === 1 ? r : r.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(al, "\\$&")).join(""), _4 = ({
6302
6302
  onSubmit: e,
6303
6303
  onStop: r,
6304
6304
  inProgress: o,
@@ -7502,7 +7502,7 @@ function Il({
7502
7502
  const n = ne(o), s = Bl(e);
7503
7503
  return s ? /* @__PURE__ */ t(s, { id: r, label: n }) : /* @__PURE__ */ t("span", { children: o });
7504
7504
  }
7505
- const O4 = {
7505
+ const Z4 = {
7506
7506
  p: Ll,
7507
7507
  h1: kl,
7508
7508
  h2: yl,
@@ -7578,7 +7578,7 @@ function ar({
7578
7578
  }
7579
7579
  ar.displayName = "F0CanvasCard";
7580
7580
  const ge = W1(null);
7581
- function U4({
7581
+ function O4({
7582
7582
  children: e
7583
7583
  }) {
7584
7584
  const [r, o] = D(0), n = $([]), s = O(
@@ -7613,7 +7613,7 @@ function Pl(e) {
7613
7613
  return c.format(s, { key: n, ...i });
7614
7614
  }, [o, e]);
7615
7615
  }
7616
- function z4() {
7616
+ function U4() {
7617
7617
  const e = I1(ge);
7618
7618
  if (!e)
7619
7619
  throw new Error(
@@ -7854,7 +7854,7 @@ function ur({ anchor: e, onReply: r }) {
7854
7854
  document.body
7855
7855
  );
7856
7856
  }
7857
- const fr = W1(void 0), G4 = () => I1(fr), Gl = (e) => /* @__PURE__ */ t(Mt, { content: e, format: "markdown" }), Wl = ({
7857
+ const fr = W1(void 0), z4 = () => I1(fr), Gl = (e) => /* @__PURE__ */ t(Mt, { content: e, format: "markdown" }), Wl = ({
7858
7858
  isGenerating: e,
7859
7859
  isLoading: r,
7860
7860
  message: o,
@@ -8326,7 +8326,7 @@ const u6 = {
8326
8326
  },
8327
8327
  onThumbsDown: () => {
8328
8328
  }
8329
- }, W4 = (e) => /* @__PURE__ */ t(Xl, { children: /* @__PURE__ */ t(f6, { ...e }) }), f6 = ({
8329
+ }, G4 = (e) => /* @__PURE__ */ t(Xl, { children: /* @__PURE__ */ t(f6, { ...e }) }), f6 = ({
8330
8330
  turns: e,
8331
8331
  isLoadingThread: r = !1,
8332
8332
  interrupt: o,
@@ -8545,16 +8545,16 @@ const u6 = {
8545
8545
  /* @__PURE__ */ t(h1, { className: "mt-6 h-5 w-full rounded-md" }),
8546
8546
  /* @__PURE__ */ t(h1, { className: "h-5 w-2/5 rounded-md" }),
8547
8547
  /* @__PURE__ */ t(h1, { className: "h-5 w-4/5 rounded-md" })
8548
- ] }) }), q4 = {
8548
+ ] }) }), W4 = {
8549
8549
  ai: Ls.ai
8550
8550
  }, Cr = W1(null);
8551
- function X4({
8551
+ function q4({
8552
8552
  children: e,
8553
8553
  translations: r
8554
8554
  }) {
8555
8555
  return /* @__PURE__ */ t(Cr.Provider, { value: r, children: e });
8556
8556
  }
8557
- function Y4() {
8557
+ function X4() {
8558
8558
  const e = I1(Cr);
8559
8559
  if (e === null)
8560
8560
  throw new Error(
@@ -8566,7 +8566,7 @@ function p6() {
8566
8566
  const { canvasEntities: e } = k1();
8567
8567
  return e;
8568
8568
  }
8569
- function K4(e) {
8569
+ function Y4(e) {
8570
8570
  const r = p6();
8571
8571
  if (!(!e || !r))
8572
8572
  return r[e];
@@ -8886,7 +8886,7 @@ const g6 = ({
8886
8886
  }
8887
8887
  )
8888
8888
  ] });
8889
- }, v6 = "easeOut", x6 = 0.3, Q4 = ({
8889
+ }, v6 = "easeOut", x6 = 0.3, K4 = ({
8890
8890
  clarifyingQuestion: e,
8891
8891
  isSubmitDisabled: r
8892
8892
  }) => /* @__PURE__ */ t(
@@ -9359,7 +9359,7 @@ function R6(e) {
9359
9359
  const [, o, n, s] = r;
9360
9360
  return [parseInt(o) / 255, parseInt(n) / 255, parseInt(s) / 255];
9361
9361
  }
9362
- class J4 {
9362
+ class Q4 {
9363
9363
  element;
9364
9364
  canvas;
9365
9365
  options;
@@ -10492,7 +10492,7 @@ function vr({
10492
10492
  ) });
10493
10493
  }
10494
10494
  vr.displayName = "AuraShader";
10495
- function e3({
10495
+ function J4({
10496
10496
  size: e = "lg",
10497
10497
  state: r,
10498
10498
  color: o,
@@ -10526,7 +10526,7 @@ function e3({
10526
10526
  }
10527
10527
  );
10528
10528
  }
10529
- const t3 = ({
10529
+ const e3 = ({
10530
10530
  text: e,
10531
10531
  description: r,
10532
10532
  avatar: o,
@@ -10934,9 +10934,9 @@ const s4 = () => /* @__PURE__ */ a(
10934
10934
  ] })
10935
10935
  ]
10936
10936
  }
10937
- ), r3 = ds(
10937
+ ), t3 = ds(
10938
10938
  us(kr, s4)
10939
- ), o3 = [
10939
+ ), r3 = [
10940
10940
  "text",
10941
10941
  "person",
10942
10942
  "people",
@@ -11467,7 +11467,7 @@ const se = ({
11467
11467
  employeeCredits: r,
11468
11468
  trigger: o
11469
11469
  }
11470
- ) : e ? /* @__PURE__ */ t(g4, { credits: e, trigger: o }) : null, n3 = se, s3 = ({
11470
+ ) : e ? /* @__PURE__ */ t(g4, { credits: e, trigger: o }) : null, o3 = se, n3 = ({
11471
11471
  historyEnabled: e = !1,
11472
11472
  title: r,
11473
11473
  currentThreadTitle: o,
@@ -11631,24 +11631,20 @@ const se = ({
11631
11631
  )
11632
11632
  ] });
11633
11633
  };
11634
- function x4() {
11635
- if (!(typeof navigator > "u"))
11636
- return Cs(navigator.language);
11637
- }
11638
- function b4(e) {
11634
+ function x4(e) {
11639
11635
  const r = new Date(e), o = /* @__PURE__ */ new Date();
11640
11636
  return Tt(r) ? "today" : Ht(r) ? "yesterday" : ms(r, o) ? "thisMonth" : "older";
11641
11637
  }
11642
- function L4(e, r) {
11643
- const o = new Date(e), n = x4(), s = Fe(o, "p", { locale: n });
11644
- if (Tt(o)) return `${r.today}, ${s}`;
11645
- if (Ht(o)) return `${r.yesterday}, ${s}`;
11646
- const i = !ps(o, /* @__PURE__ */ new Date());
11647
- return `${Fe(o, i ? "MMM d yyyy" : "MMM d", {
11648
- locale: n
11638
+ function b4(e, r, o) {
11639
+ const n = new Date(e), s = Fe(n, "p", { locale: o });
11640
+ if (Tt(n)) return `${r.today}, ${s}`;
11641
+ if (Ht(n)) return `${r.yesterday}, ${s}`;
11642
+ const i = !ps(n, /* @__PURE__ */ new Date());
11643
+ return `${Fe(n, i ? "MMM d yyyy" : "MMM d", {
11644
+ locale: o
11649
11645
  })}, ${s}`;
11650
11646
  }
11651
- function k4(e) {
11647
+ function L4(e) {
11652
11648
  const r = {
11653
11649
  today: [],
11654
11650
  yesterday: [],
@@ -11656,12 +11652,12 @@ function k4(e) {
11656
11652
  older: []
11657
11653
  };
11658
11654
  for (const n of e) {
11659
- const s = b4(n.updatedAt);
11655
+ const s = x4(n.updatedAt);
11660
11656
  r[s].push(n);
11661
11657
  }
11662
11658
  return ["today", "yesterday", "thisMonth", "older"].filter((n) => r[n].length > 0).map((n) => ({ key: n, threads: r[n] }));
11663
11659
  }
11664
- function y4({
11660
+ function k4({
11665
11661
  thread: e,
11666
11662
  isPinned: r,
11667
11663
  isActive: o = !1,
@@ -11672,7 +11668,7 @@ function y4({
11672
11668
  onDelete: u,
11673
11669
  className: l
11674
11670
  }) {
11675
- const f = G(), d = K(
11671
+ const f = G(), d = Cs(), p = K(
11676
11672
  () => [
11677
11673
  {
11678
11674
  label: r ? f.ai.unpinChat : f.ai.pinChat,
@@ -11687,12 +11683,16 @@ function y4({
11687
11683
  }
11688
11684
  ],
11689
11685
  [r, e.id, i, c, u]
11690
- ), p = K(
11691
- () => L4(e.updatedAt, {
11692
- today: f.ai.today,
11693
- yesterday: f.ai.yesterday
11694
- }),
11695
- [e.updatedAt, f.ai.today, f.ai.yesterday]
11686
+ ), C = K(
11687
+ () => b4(
11688
+ e.updatedAt,
11689
+ {
11690
+ today: f.ai.today,
11691
+ yesterday: f.ai.yesterday
11692
+ },
11693
+ d
11694
+ ),
11695
+ [e.updatedAt, f.ai.today, f.ai.yesterday, d]
11696
11696
  );
11697
11697
  return /* @__PURE__ */ a(
11698
11698
  "div",
@@ -11707,8 +11707,8 @@ function y4({
11707
11707
  role: "button",
11708
11708
  tabIndex: 0,
11709
11709
  "aria-current": o ? "true" : void 0,
11710
- onKeyDown: (C) => {
11711
- (C.key === "Enter" || C.key === " ") && (C.preventDefault(), s(e.id, e.title));
11710
+ onKeyDown: (h) => {
11711
+ (h.key === "Enter" || h.key === " ") && (h.preventDefault(), s(e.id, e.title));
11712
11712
  },
11713
11713
  children: [
11714
11714
  /* @__PURE__ */ a(
@@ -11727,7 +11727,7 @@ function y4({
11727
11727
  }
11728
11728
  ),
11729
11729
  /* @__PURE__ */ t(l1, { lines: 1, className: "py-0.5 text-left font-medium", children: e.title }),
11730
- /* @__PURE__ */ t("span", { className: "hidden shrink-0 text-sm font-medium text-f1-foreground-tertiary group-focus-within:inline group-hover:inline", children: p })
11730
+ /* @__PURE__ */ t("span", { className: "hidden shrink-0 text-sm font-medium text-f1-foreground-tertiary group-focus-within:inline group-hover:inline", children: C })
11731
11731
  ]
11732
11732
  }
11733
11733
  ),
@@ -11754,7 +11754,7 @@ function y4({
11754
11754
  "group-hover:flex group-focus-within:flex",
11755
11755
  "has-[[aria-expanded=true]]:flex"
11756
11756
  ),
11757
- children: /* @__PURE__ */ t(pe, { items: d, children: /* @__PURE__ */ t(
11757
+ children: /* @__PURE__ */ t(pe, { items: p, children: /* @__PURE__ */ t(
11758
11758
  i1,
11759
11759
  {
11760
11760
  icon: dt,
@@ -11813,7 +11813,7 @@ function et({
11813
11813
  }
11814
11814
  ),
11815
11815
  u && /* @__PURE__ */ t("div", { className: "flex flex-col", children: r.map((p) => /* @__PURE__ */ t(
11816
- y4,
11816
+ k4,
11817
11817
  {
11818
11818
  thread: p,
11819
11819
  isPinned: o.has(p.id),
@@ -11826,20 +11826,20 @@ function et({
11826
11826
  )) })
11827
11827
  ] });
11828
11828
  }
11829
- const tt = ["w-3/5", "w-4/5", "w-2/5", "w-3/4", "w-1/2", "w-2/3"], M4 = ({ width: e }) => /* @__PURE__ */ t("div", { className: "flex items-center py-1.5 pl-1.5 pr-2", children: /* @__PURE__ */ t(h1, { className: k("h-4 rounded", e) }) }), rt = ({
11829
+ const tt = ["w-3/5", "w-4/5", "w-2/5", "w-3/4", "w-1/2", "w-2/3"], y4 = ({ width: e }) => /* @__PURE__ */ t("div", { className: "flex items-center py-1.5 pl-1.5 pr-2", children: /* @__PURE__ */ t(h1, { className: k("h-4 rounded", e) }) }), rt = ({
11830
11830
  titleWidth: e,
11831
11831
  rows: r
11832
11832
  }) => /* @__PURE__ */ a("div", { className: "flex flex-col gap-0.5", children: [
11833
11833
  /* @__PURE__ */ t("div", { className: "flex items-center p-1.5", children: /* @__PURE__ */ t(h1, { className: k("h-3 rounded", e) }) }),
11834
- r.map((o, n) => /* @__PURE__ */ t(M4, { width: o }, n))
11834
+ r.map((o, n) => /* @__PURE__ */ t(y4, { width: o }, n))
11835
11835
  ] });
11836
- function R4() {
11836
+ function M4() {
11837
11837
  return /* @__PURE__ */ a("div", { "aria-hidden": "true", className: "flex flex-col gap-4", children: [
11838
11838
  /* @__PURE__ */ t(rt, { titleWidth: "w-12", rows: tt.slice(0, 2) }),
11839
11839
  /* @__PURE__ */ t(rt, { titleWidth: "w-24", rows: tt })
11840
11840
  ] });
11841
11841
  }
11842
- const i3 = ({
11842
+ const s3 = ({
11843
11843
  onClose: e,
11844
11844
  onSelectThread: r,
11845
11845
  onNewChat: o,
@@ -11882,7 +11882,7 @@ const i3 = ({
11882
11882
  () => g.filter((x) => !c.has(x.id)),
11883
11883
  [g, c]
11884
11884
  ), b = K(
11885
- () => k4(w),
11885
+ () => L4(w),
11886
11886
  [w]
11887
11887
  ), H = O(
11888
11888
  (x, S) => {
@@ -11959,7 +11959,7 @@ const i3 = ({
11959
11959
  ] })
11960
11960
  }
11961
11961
  ),
11962
- s && /* @__PURE__ */ t(R4, {}),
11962
+ s && /* @__PURE__ */ t(M4, {}),
11963
11963
  !s && i && /* @__PURE__ */ t("p", { className: "py-8 text-center text-base text-f1-foreground-tertiary", children: i }),
11964
11964
  !s && !i && !F && /* @__PURE__ */ t("p", { className: "py-8 text-center text-base text-f1-foreground-tertiary", children: d.ai.noPreviousChats }),
11965
11965
  !s && !i && v.length > 0 && /* @__PURE__ */ t(
@@ -11997,21 +11997,21 @@ const i3 = ({
11997
11997
  document.body
11998
11998
  );
11999
11999
  }, Mr = "f0-ai-pinned-threads";
12000
- function F4() {
12000
+ function R4() {
12001
12001
  const e = ws(Mr, []);
12002
12002
  return new Set(Array.isArray(e) ? e : []);
12003
12003
  }
12004
12004
  function ot(e) {
12005
12005
  vs(Mr, [...e]);
12006
12006
  }
12007
- function a3({
12007
+ function i3({
12008
12008
  enabled: e = !1,
12009
12009
  fetchThreads: r,
12010
12010
  deleteThread: o,
12011
12011
  pinThread: n,
12012
12012
  unpinThread: s
12013
12013
  }) {
12014
- const [i, c] = D([]), [u, l] = D(!1), [f, d] = D(null), [p, C] = D(F4), [h, g] = D(() => /* @__PURE__ */ new Set()), v = O(async () => {
12014
+ const [i, c] = D([]), [u, l] = D(!1), [f, d] = D(null), [p, C] = D(R4), [h, g] = D(() => /* @__PURE__ */ new Set()), v = O(async () => {
12015
12015
  l(!0), d(null);
12016
12016
  try {
12017
12017
  const x = await r();
@@ -12076,7 +12076,7 @@ function a3({
12076
12076
  deleteThread: F
12077
12077
  };
12078
12078
  }
12079
- const N4 = Q.create(xs), V4 = ({
12079
+ const F4 = Q.create(xs), N4 = ({
12080
12080
  label: e,
12081
12081
  reduceMotion: r
12082
12082
  }) => (
@@ -12089,7 +12089,7 @@ const N4 = Q.create(xs), V4 = ({
12089
12089
  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",
12090
12090
  children: [
12091
12091
  /* @__PURE__ */ t(
12092
- N4,
12092
+ F4,
12093
12093
  {
12094
12094
  size: "xs",
12095
12095
  animate: r ? void 0 : {
@@ -12125,7 +12125,7 @@ const N4 = Q.create(xs), V4 = ({
12125
12125
  ]
12126
12126
  }
12127
12127
  )
12128
- ), l3 = $r(function({
12128
+ ), a3 = $r(function({
12129
12129
  active: r,
12130
12130
  label: o,
12131
12131
  className: n,
@@ -12149,7 +12149,7 @@ const N4 = Q.create(xs), V4 = ({
12149
12149
  animate: { opacity: 1, scale: 1 },
12150
12150
  exit: { opacity: 0, scale: c ? 1 : 0.95 },
12151
12151
  children: /* @__PURE__ */ t("div", { className: "mt-[40vh]", children: /* @__PURE__ */ t(
12152
- V4,
12152
+ N4,
12153
12153
  {
12154
12154
  label: u,
12155
12155
  reduceMotion: c
@@ -12170,12 +12170,12 @@ const N4 = Q.create(xs), V4 = ({
12170
12170
  ] });
12171
12171
  });
12172
12172
  export {
12173
- X4 as A,
12174
- l3 as B,
12173
+ q4 as A,
12174
+ a3 as B,
12175
12175
  et as C,
12176
12176
  _t as D,
12177
12177
  g2 as E,
12178
- U4 as F,
12178
+ O4 as F,
12179
12179
  _5 as G,
12180
12180
  $5 as H,
12181
12181
  Hs as I,
@@ -12187,31 +12187,31 @@ export {
12187
12187
  Ci as O,
12188
12188
  fi as P,
12189
12189
  wi as Q,
12190
- y4 as T,
12191
- q4 as a,
12192
- Y4 as b,
12190
+ k4 as T,
12191
+ W4 as a,
12192
+ X4 as b,
12193
12193
  Pl as c,
12194
- z4 as d,
12194
+ U4 as d,
12195
12195
  ar as e,
12196
- K4 as f,
12197
- Q4 as g,
12198
- _4 as h,
12199
- J4 as i,
12200
- e3 as j,
12201
- t3 as k,
12202
- r3 as l,
12203
- O4 as m,
12204
- o3 as n,
12205
- j4 as o,
12196
+ Y4 as f,
12197
+ K4 as g,
12198
+ j4 as h,
12199
+ Q4 as i,
12200
+ J4 as j,
12201
+ e3 as k,
12202
+ t3 as l,
12203
+ Z4 as m,
12204
+ r3 as n,
12205
+ D4 as o,
12206
12206
  d4 as p,
12207
12207
  p4 as q,
12208
12208
  C4 as r,
12209
- s3 as s,
12210
- n3 as t,
12211
- G4 as u,
12212
- i3 as v,
12213
- R4 as w,
12214
- a3 as x,
12215
- Z4 as y,
12216
- W4 as z
12209
+ n3 as s,
12210
+ o3 as t,
12211
+ z4 as u,
12212
+ s3 as v,
12213
+ M4 as w,
12214
+ i3 as x,
12215
+ _4 as y,
12216
+ G4 as z
12217
12217
  };