@factorialco/f0-react 7.21.2 → 7.22.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,6 +1,6 @@
1
1
  import { jsxs as l, jsx as t, Fragment as M1 } from "react/jsx-runtime";
2
- import { useInsertionEffect as Wr, forwardRef as g, useState as I, useRef as E, useCallback as j, useEffect as W, useLayoutEffect as ae, useMemo as X, useId as U1, createContext as z1, useContext as $1, createElement as qr, memo as Xr } from "react";
3
- import { _ as Yr, $ as Kr, a0 as Qr, a1 as gt, a2 as Jr, a3 as en, a4 as tn, a5 as rn, a6 as nn, a7 as on, a8 as wt, a9 as sn, aa as an, ab as ie, ac as ln, ad as cn, ae as dn, af as un, ag as fn, ah as hn, ai as Cn, aj as pn, ak as mn, A as vt, al as gn, am as wn, an as vn, r as le, ao as xt, ap as I1, q as Lt, aq as xn, ar as Ln, as as bn, at as kn, au as yn, av as Mn, aw as R1, ax as Rn, ay as bt, az as Fn, aA as Nn, aB as Sn, l as y1, aC as Vn, aD as Tn, aE as kt, aF as An, aG as En, aH as Hn, aI as $n, aJ as In, aK as Bn, aL as yt, aM as Pn, aN as Dn, aO as _n, aP as jn, aQ as On, aR as Zn, aS as Un, aT as zn, aU as Gn, aV as Wn, aW as qn, aX as Xn, aY as Yn, aZ as Kn, J as Qn, a_ as Jn, a$ as eo, b0 as to, b1 as ro, b2 as no, b3 as oo, b4 as so, b5 as ao, b6 as io, b7 as lo, b8 as co, b9 as uo, ba as fo, bb as ho, bc as Co, bd as po, be as mo, bf as go, bg as wo, X as Mt, bh as vo, bi as xo, bj as Lo, bk as bo, bl as Rt, bm as ko, W as Ft, bn as yo, i as Mo, bo as Ro, bp as Fo, bq as No, br as So, bs as Vo, bt as Nt, bu as To, bv as Ao, bw as Eo, bx as Ho, by as $o, bz as Io, bA as Bo, j as Po, bB as St, bC as Vt, bD as Do, bE as Tt, bF as _o, bG as ce, s as jo, bH as de, bI as Oo, G as Zo, bJ as Uo, bK as ue, U as zo, V as Go, bL as At, bM as Wo, bN as qo, bO as Xo, bP as Yo, bQ as Ko, bR as Qo, bS as Jo, bT as es, bU as ts, bV as rs, bW as Et, bX as ns, bY as os, bZ as ss, b_ as as, b$ as is, u as z, x as G1, y as fe, z as W1, Y as o1, c0 as s1, c1 as ls, S as u1, c2 as Ht, c3 as cs, o as p1, c4 as ds, c5 as a1, c6 as f1, c7 as w1, c8 as K, c9 as $t, ca as us, b as v1, cb as fs, cc as hs, cd as Cs, d as It, ce as ps, cf as ms, cg as he, ch as gs, ci as ws, cj as vs, ck as $e, cl as xs, cm as Bt, cn as Pt, co as Ls, cp as bs, cq as ks, cr as ys, cs as Ms, ct as Dt, m as Rs, cu as Fs, cv as Ns, cw as H1, cx as _t, cy as jt, cz as Ot, c as ne, cA as Ie, cB as Zt, cC as Ss, cD as Vs, cE as B1, cF as Ts, cG as As, cH as Es, cI as Ce, cJ as Hs, cK as $s, cL as Is, cM as Bs, cN as Ps, cO as Ds, w as _s, v as js, cP as Q1, cQ as Be, cR as Ut, cS as zt, cT as Os, cU as Zs, cV as Us, cW as zs, cX as Gs, cY as Ws } from "./F0CanvasPanel-DVxLdNFT.js";
2
+ import { useInsertionEffect as Wr, forwardRef as g, useState as I, useRef as E, useCallback as j, useEffect as W, useLayoutEffect as ae, useMemo as X, useId as U1, createContext as G1, useContext as $1, createElement as qr, memo as Xr } from "react";
3
+ import { _ as Yr, $ as Kr, a0 as Qr, a1 as gt, a2 as Jr, a3 as en, a4 as tn, a5 as rn, a6 as nn, a7 as on, a8 as wt, a9 as sn, aa as an, ab as ie, ac as ln, ad as cn, ae as dn, af as un, ag as fn, ah as hn, ai as Cn, aj as pn, ak as mn, A as vt, al as gn, am as wn, an as vn, r as le, ao as xt, ap as I1, q as Lt, aq as xn, ar as Ln, as as bn, at as kn, au as yn, av as Mn, aw as R1, ax as Rn, ay as bt, az as Fn, aA as Nn, aB as Sn, l as y1, aC as Vn, aD as Tn, aE as kt, aF as An, aG as En, aH as Hn, aI as $n, aJ as In, aK as Bn, aL as yt, aM as Pn, aN as Dn, aO as _n, aP as jn, aQ as On, aR as Zn, aS as Un, aT as zn, aU as Gn, aV as Wn, aW as qn, aX as Xn, aY as Yn, aZ as Kn, J as Qn, a_ as Jn, a$ as eo, b0 as to, b1 as ro, b2 as no, b3 as oo, b4 as so, b5 as ao, b6 as io, b7 as lo, b8 as co, b9 as uo, ba as fo, bb as ho, bc as Co, bd as po, be as mo, bf as go, bg as wo, X as Mt, bh as vo, bi as xo, bj as Lo, bk as bo, bl as Rt, bm as ko, W as Ft, bn as yo, i as Mo, bo as Ro, bp as Fo, bq as No, br as So, bs as Vo, bt as Nt, bu as To, bv as Ao, bw as Eo, bx as Ho, by as $o, bz as Io, bA as Bo, j as Po, bB as St, bC as Vt, bD as Do, bE as Tt, bF as _o, bG as ce, s as jo, bH as de, bI as Oo, G as Zo, bJ as Uo, bK as ue, U as zo, V as Go, bL as At, bM as Wo, bN as qo, bO as Xo, bP as Yo, bQ as Ko, bR as Qo, bS as Jo, bT as es, bU as ts, bV as rs, bW as Et, bX as ns, bY as os, bZ as ss, b_ as as, b$ as is, u as z, x as W1, y as fe, z as q1, Y as o1, c0 as s1, c1 as ls, S as u1, c2 as Ht, c3 as cs, o as p1, c4 as ds, c5 as a1, c6 as f1, c7 as w1, c8 as K, c9 as $t, ca as us, b as v1, cb as fs, cc as hs, cd as Cs, d as It, ce as ps, cf as ms, cg as gs, ch as ws, ci as vs, cj as $e, ck as xs, cl as Bt, cm as he, cn as Pt, co as Ls, cp as bs, cq as ks, cr as ys, cs as Ms, ct as Dt, m as Rs, cu as Fs, cv as Ns, cw as H1, cx as _t, cy as jt, cz as Ot, c as oe, cA as Ie, cB as Zt, cC as Ss, cD as Vs, cE as B1, cF as Ts, cG as As, cH as Es, cI as Ce, cJ as Hs, cK as $s, cL as Is, cM as Bs, cN as Ps, cO as Ds, w as _s, v as js, cP as J1, cQ as Be, cR as Ut, cS as zt, cT as Os, cU as Zs, cV as Us, cW as zs, cX as Gs, cY as Ws } from "./F0CanvasPanel-A9QPf6uH.js";
4
4
  import { d as b, f as i1, u as qs } from "./tooltip-BElsa4MF.js";
5
5
  import { createPortal as Gt } from "react-dom";
6
6
  import { defaultTranslations as Xs } from "./i18n-provider-defaults.js";
@@ -3779,12 +3779,12 @@ const U0 = (e, r) => /* @__PURE__ */ l(
3779
3779
  "executing",
3780
3780
  "writing",
3781
3781
  "completed"
3782
- ], X4 = ["xs", "sm", "md", "lg"], J1 = 14, ee = 2.31, k2 = ({ percentage: e, tone: r }) => {
3783
- const n = J1 / 2, o = n - ee / 2, s = 2 * Math.PI * o, i = (100 - (r === "unlimited" ? 100 : e)) / 100 * s;
3782
+ ], X4 = ["xs", "sm", "md", "lg"], ee = 14, te = 2.31, k2 = ({ percentage: e, tone: r }) => {
3783
+ const n = ee / 2, o = n - te / 2, s = 2 * Math.PI * o, i = (100 - (r === "unlimited" ? 100 : e)) / 100 * s;
3784
3784
  return /* @__PURE__ */ l(
3785
3785
  "svg",
3786
3786
  {
3787
- viewBox: `0 0 ${J1} ${J1}`,
3787
+ viewBox: `0 0 ${ee} ${ee}`,
3788
3788
  className: "h-3.5 w-3.5 -rotate-90",
3789
3789
  "aria-hidden": "true",
3790
3790
  focusable: "false",
@@ -3796,7 +3796,7 @@ const U0 = (e, r) => /* @__PURE__ */ l(
3796
3796
  cy: n,
3797
3797
  r: o,
3798
3798
  fill: "none",
3799
- strokeWidth: ee,
3799
+ strokeWidth: te,
3800
3800
  className: "stroke-f1-border-secondary"
3801
3801
  }
3802
3802
  ),
@@ -3807,7 +3807,7 @@ const U0 = (e, r) => /* @__PURE__ */ l(
3807
3807
  cy: n,
3808
3808
  r: o,
3809
3809
  fill: "none",
3810
- strokeWidth: ee,
3810
+ strokeWidth: te,
3811
3811
  strokeDasharray: s,
3812
3812
  strokeDashoffset: i,
3813
3813
  strokeLinecap: "round",
@@ -3883,7 +3883,7 @@ const U0 = (e, r) => /* @__PURE__ */ l(
3883
3883
  },
3884
3884
  [n]
3885
3885
  ), u = e ? De(e.usedPercentage) : 0, C = e?.unlimited ?? !1, m = C ? "unlimited" : u >= 100 ? "exhausted" : "default", h = e?.sections ?? [], w = !!e?.onSeeCompany || h.length > 0, v = a.t("ai.usageLimits.title"), p = C ? a.t("ai.usageLimits.unlimited") : a.t("ai.usageLimits.used", { percentage: u }), L = e ? `${v}: ${p}` : v;
3886
- return /* @__PURE__ */ l(G1, { open: i, onOpenChange: f, children: [
3886
+ return /* @__PURE__ */ l(W1, { open: i, onOpenChange: f, children: [
3887
3887
  /* @__PURE__ */ t(fe, { asChild: !0, children: o ?? /* @__PURE__ */ l(
3888
3888
  "button",
3889
3889
  {
@@ -3903,7 +3903,7 @@ const U0 = (e, r) => /* @__PURE__ */ l(
3903
3903
  }
3904
3904
  ) }),
3905
3905
  /* @__PURE__ */ l(
3906
- W1,
3906
+ q1,
3907
3907
  {
3908
3908
  ref: c,
3909
3909
  side: s,
@@ -4648,7 +4648,7 @@ const z2 = ({
4648
4648
  }) => {
4649
4649
  const [i, d] = I(null), c = E(null), f = a === "scroll", u = P2(), C = E(null), m = E(!1), h = U1(), w = U1(), v = i !== null ? e[i] : null;
4650
4650
  return e.length === 0 ? null : /* @__PURE__ */ l(
4651
- G1,
4651
+ W1,
4652
4652
  {
4653
4653
  open: v !== null,
4654
4654
  onOpenChange: (p) => {
@@ -4706,7 +4706,7 @@ const z2 = ({
4706
4706
  }
4707
4707
  ),
4708
4708
  v ? /* @__PURE__ */ l(
4709
- W1,
4709
+ q1,
4710
4710
  {
4711
4711
  side: o,
4712
4712
  align: "start",
@@ -5229,13 +5229,13 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5229
5229
  onUploadFiles: x1,
5230
5230
  acceptValue: N1,
5231
5231
  isAtMaxFiles: V1,
5232
- maxFiles: q1,
5232
+ maxFiles: X1,
5233
5233
  processFiles: P1,
5234
5234
  handleFileSelect: Sr,
5235
5235
  handleRemoveFile: Vr,
5236
5236
  clearFiles: Tr,
5237
5237
  transientError: ge,
5238
- showTransientError: X1
5238
+ showTransientError: Y1
5239
5239
  } = K2(C), d1 = rl({
5240
5240
  inputValue: O,
5241
5241
  setInputValue: q,
@@ -5243,7 +5243,7 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5243
5243
  searchPersons: w,
5244
5244
  textareaRef: J
5245
5245
  }), we = E(""), ve = j((G) => {
5246
- const g1 = we.current, K1 = g1 && !/\s$/.test(g1) ? " " : "", O1 = `${g1}${K1}${G}`;
5246
+ const g1 = we.current, Q1 = g1 && !/\s$/.test(g1) ? " " : "", O1 = `${g1}${Q1}${G}`;
5247
5247
  q(O1), t1(O1.length);
5248
5248
  }, []), Ar = {
5249
5249
  "permission-denied": H.ai.micPermissionDenied,
@@ -5255,7 +5255,7 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5255
5255
  onFinal: (G) => {
5256
5256
  ve(G), J.current?.focus();
5257
5257
  },
5258
- onError: (G) => X1(Ar[G])
5258
+ onError: (G) => Y1(Ar[G])
5259
5259
  }), xe = !!h && C1.isSupported, Le = j(() => {
5260
5260
  M?.onDictationStart?.(), we.current = O, C1.start();
5261
5261
  }, [O, C1, M]), Er = j(() => {
@@ -5283,7 +5283,7 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5283
5283
  W(() => {
5284
5284
  if (!(!r1 || D1)) {
5285
5285
  if (m1(!1), ye) {
5286
- X1(H.ai.fileUploadBlockedSubmit);
5286
+ Y1(H.ai.fileUploadBlockedSubmit);
5287
5287
  return;
5288
5288
  }
5289
5289
  U.current?.requestSubmit();
@@ -5292,7 +5292,7 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5292
5292
  r1,
5293
5293
  D1,
5294
5294
  ye,
5295
- X1,
5295
+ Y1,
5296
5296
  H.ai.fileUploadBlockedSubmit
5297
5297
  ]);
5298
5298
  const $r = async (G) => {
@@ -5315,11 +5315,11 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5315
5315
  Q(!1);
5316
5316
  }
5317
5317
  }
5318
- const g1 = d1.transformMentions(O.trim()), K1 = ol(g1), O1 = ke.flatMap(
5318
+ const g1 = d1.transformMentions(O.trim()), Q1 = ol(g1), O1 = ke.flatMap(
5319
5319
  (He) => He.uploadedFile ? [He.uploadedFile] : []
5320
5320
  ), Ae = d, Ee = f;
5321
5321
  Ae && c?.(null), Ee && u?.(null), await e({
5322
- text: K1,
5322
+ text: Q1,
5323
5323
  files: O1,
5324
5324
  context: Ae,
5325
5325
  quote: Ee
@@ -5350,7 +5350,7 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5350
5350
  k.current && clearTimeout(k.current), k.current = setTimeout(() => {
5351
5351
  Or(document.activeElement) || k1(!1);
5352
5352
  }, 0);
5353
- }, j1 = T1, Ne = j1 && N, Y1 = Ne && !Fe, Ur = j1 && A1 ? (
5353
+ }, j1 = T1, Ne = j1 && N, K1 = Ne && !Fe, Ur = j1 && A1 ? (
5354
5354
  // Clicks are STOPPED here rather than bubbling to the form, whose onClick
5355
5355
  // focuses the textarea — the same guard `toolbarStart` takes. Without it,
5356
5356
  // pressing a chip would pull focus off the trigger and break the popover's
@@ -5366,7 +5366,7 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5366
5366
  toolbarStart: m,
5367
5367
  center: Ur,
5368
5368
  isAtMaxFiles: V1,
5369
- maxFiles: q1,
5369
+ maxFiles: X1,
5370
5370
  acceptValue: N1,
5371
5371
  fileInputRef: c1,
5372
5372
  handleFileSelect: Sr,
@@ -5553,7 +5553,7 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5553
5553
  {
5554
5554
  className: b(
5555
5555
  j1 && "flex items-end",
5556
- Y1 && "pr-3"
5556
+ K1 && "pr-3"
5557
5557
  ),
5558
5558
  children: [
5559
5559
  j1 ? /* @__PURE__ */ t("div", { className: "flex shrink-0 self-center pl-3", children: /* @__PURE__ */ t(It, { size: "sm", spin: n }) }) : null,
@@ -5577,7 +5577,7 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5577
5577
  inProgress: n
5578
5578
  }
5579
5579
  ),
5580
- Y1 ? (
5580
+ K1 ? (
5581
5581
  // `preventDefault` ON MOUSEDOWN IS LOAD-BEARING, and the
5582
5582
  // bug it fixes is worth spelling out: taking focus is the
5583
5583
  // browser's DEFAULT ACTION for mousedown, focus is what
@@ -5624,7 +5624,7 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5624
5624
  ]
5625
5625
  }
5626
5626
  ),
5627
- Ne ? /* @__PURE__ */ t(w1, { initial: !1, children: Y1 ? null : /* @__PURE__ */ t(
5627
+ Ne ? /* @__PURE__ */ t(w1, { initial: !1, children: K1 ? null : /* @__PURE__ */ t(
5628
5628
  K.div,
5629
5629
  {
5630
5630
  className: "overflow-hidden",
@@ -5870,170 +5870,6 @@ function hl({
5870
5870
  }) {
5871
5871
  return /* @__PURE__ */ t("li", { ...r, className: b("mb-2", r.className), children: e });
5872
5872
  }
5873
- async function Cl(e, r, n) {
5874
- const o = await import("./xlsx-CzlURDDb.js"), s = o.utils.table_to_book(e, { sheet: "Data" });
5875
- o.writeFile(s, `${n}.${r}`);
5876
- }
5877
- function pl({
5878
- children: e,
5879
- title: r,
5880
- ...n
5881
- }) {
5882
- const o = z(), s = E(null), a = j(
5883
- (i) => {
5884
- if (!s.current)
5885
- return;
5886
- const d = r?.replace(/\s+/g, "_").toLowerCase() || "table";
5887
- Cl(s.current, i, d);
5888
- },
5889
- [r]
5890
- );
5891
- return /* @__PURE__ */ l("div", { className: "group/table relative flex flex-col gap-2 rounded-md border border-solid border-f1-border-secondary", children: [
5892
- /* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-3 border-0 border-b border-solid border-f1-border-secondary px-3 py-2", children: [
5893
- /* @__PURE__ */ t(
5894
- a1,
5895
- {
5896
- tag: "h2",
5897
- className: "text-base font-medium capitalize text-f1-foreground",
5898
- children: r ?? o.ai.reportCard.tableLabel
5899
- }
5900
- ),
5901
- /* @__PURE__ */ t(
5902
- he,
5903
- {
5904
- icon: y1,
5905
- size: "md",
5906
- items: [
5907
- {
5908
- label: o.t("ai.dataDownload.download", {
5909
- format: "Excel"
5910
- }),
5911
- icon: y1,
5912
- onClick: () => a("xlsx")
5913
- },
5914
- {
5915
- label: o.t("ai.dataDownload.download", {
5916
- format: "CSV"
5917
- }),
5918
- icon: y1,
5919
- onClick: () => a("csv")
5920
- }
5921
- ]
5922
- }
5923
- )
5924
- ] }),
5925
- /* @__PURE__ */ t("div", { className: "scrollbar-macos overflow-x-auto", children: /* @__PURE__ */ t(
5926
- "table",
5927
- {
5928
- ref: s,
5929
- ...n,
5930
- className: b(
5931
- "w-full border-separate border-spacing-0 [&_tbody_tr:last-child_td]:border-b-0",
5932
- n.className
5933
- ),
5934
- children: e
5935
- }
5936
- ) })
5937
- ] });
5938
- }
5939
- function ml({
5940
- children: e,
5941
- ...r
5942
- }) {
5943
- return /* @__PURE__ */ t(
5944
- "th",
5945
- {
5946
- ...r,
5947
- className: b(
5948
- "sticky top-0 z-10 whitespace-nowrap border-0 border-b border-solid border-f1-border-secondary bg-f1-background px-3 py-2 text-left font-medium text-f1-foreground-secondary",
5949
- r.className
5950
- ),
5951
- children: e
5952
- }
5953
- );
5954
- }
5955
- function gl({
5956
- children: e,
5957
- ...r
5958
- }) {
5959
- return /* @__PURE__ */ t(
5960
- "td",
5961
- {
5962
- ...r,
5963
- className: b(
5964
- "max-w-80 truncate border-0 border-b border-solid border-f1-border-secondary px-3 py-2",
5965
- r.className
5966
- ),
5967
- children: e
5968
- }
5969
- );
5970
- }
5971
- function wl({
5972
- children: e,
5973
- ...r
5974
- }) {
5975
- return /* @__PURE__ */ t("p", { ...r, className: b("text-base font-normal", r.className), children: e });
5976
- }
5977
- function vl({
5978
- children: e,
5979
- ...r
5980
- }) {
5981
- return /* @__PURE__ */ t(
5982
- "h1",
5983
- {
5984
- ...r,
5985
- className: b(
5986
- "mb-2.5 mt-4 text-2xl font-medium first:mt-0 last:mb-0",
5987
- r.className
5988
- ),
5989
- children: e
5990
- }
5991
- );
5992
- }
5993
- function xl({
5994
- children: e,
5995
- ...r
5996
- }) {
5997
- return /* @__PURE__ */ t(
5998
- "h2",
5999
- {
6000
- ...r,
6001
- className: b(
6002
- "mb-2.5 mt-4 text-lg font-medium leading-6 first:mt-0 last:mb-0",
6003
- r.className
6004
- ),
6005
- children: e
6006
- }
6007
- );
6008
- }
6009
- function Ll({
6010
- children: e,
6011
- ...r
6012
- }) {
6013
- return /* @__PURE__ */ t(
6014
- "h3",
6015
- {
6016
- ...r,
6017
- className: b(
6018
- "mb-2 mt-3.5 text-base font-semibold first:mt-0 last:mb-0",
6019
- r.className
6020
- ),
6021
- children: e
6022
- }
6023
- );
6024
- }
6025
- function bl({
6026
- children: e,
6027
- ...r
6028
- }) {
6029
- return /* @__PURE__ */ t("strong", { ...r, className: b("font-semibold", r.className), children: e });
6030
- }
6031
- function kl({
6032
- children: e,
6033
- ...r
6034
- }) {
6035
- return /* @__PURE__ */ t("em", { ...r, className: b("italic", r.className), children: e });
6036
- }
6037
5873
  function S1({
6038
5874
  id: e,
6039
5875
  trigger: r,
@@ -6102,7 +5938,7 @@ const rr = g(
6102
5938
  )
6103
5939
  );
6104
5940
  rr.displayName = "CandidateTrigger";
6105
- function yl({
5941
+ function Cl({
6106
5942
  id: e,
6107
5943
  label: r
6108
5944
  }) {
@@ -6177,7 +6013,7 @@ const nr = g(
6177
6013
  )
6178
6014
  );
6179
6015
  nr.displayName = "ExpenseTrigger";
6180
- function Ml({ id: e, label: r }) {
6016
+ function pl({ id: e, label: r }) {
6181
6017
  const { entityRefs: n } = v1(), o = n?.resolvers?.expense, s = z(), a = n?.urls?.expense?.(e), i = X(
6182
6018
  () => (c) => ({
6183
6019
  avatar: {
@@ -6233,7 +6069,7 @@ const or = g(
6233
6069
  )
6234
6070
  );
6235
6071
  or.displayName = "JobPostingTrigger";
6236
- function Rl({
6072
+ function ml({
6237
6073
  id: e,
6238
6074
  label: r
6239
6075
  }) {
@@ -6291,7 +6127,7 @@ const sr = g(
6291
6127
  )
6292
6128
  );
6293
6129
  sr.displayName = "PersonTrigger";
6294
- function Fl({ id: e, label: r }) {
6130
+ function gl({ id: e, label: r }) {
6295
6131
  const { entityRefs: n } = v1(), o = n?.resolvers?.person, s = z(), a = n?.urls?.person?.(e), i = X(
6296
6132
  () => (c) => ({
6297
6133
  avatar: {
@@ -6333,7 +6169,7 @@ function Fl({ id: e, label: r }) {
6333
6169
  }
6334
6170
  ) : /* @__PURE__ */ t("span", { children: r });
6335
6171
  }
6336
- function Nl({ rows: e }) {
6172
+ function wl({ rows: e }) {
6337
6173
  return e.length === 0 ? null : /* @__PURE__ */ t("div", { className: "flex flex-col gap-2", children: e.map((r, n) => /* @__PURE__ */ l("div", { className: "flex flex-col", children: [
6338
6174
  r.label ? /* @__PURE__ */ t("p", { className: "text-f1-foreground-secondary", children: r.label }) : null,
6339
6175
  /* @__PURE__ */ t("div", { className: "flex items-center gap-1.5 font-medium text-f1-foreground", children: r.value })
@@ -6355,7 +6191,7 @@ const ar = g(
6355
6191
  )
6356
6192
  );
6357
6193
  ar.displayName = "RequisitionTrigger";
6358
- function Sl({
6194
+ function vl({
6359
6195
  id: e,
6360
6196
  label: r
6361
6197
  }) {
@@ -6398,7 +6234,7 @@ function Sl({
6398
6234
  title: c.title,
6399
6235
  ...c.location && { description: c.location },
6400
6236
  ...C.length > 0 && {
6401
- children: /* @__PURE__ */ t(Nl, { rows: C })
6237
+ children: /* @__PURE__ */ t(wl, { rows: C })
6402
6238
  },
6403
6239
  ...a && {
6404
6240
  secondaryActions: {
@@ -6448,7 +6284,7 @@ const ir = g(
6448
6284
  )
6449
6285
  );
6450
6286
  ir.displayName = "VacancyTrigger";
6451
- function Vl({ id: e, label: r }) {
6287
+ function xl({ id: e, label: r }) {
6452
6288
  const { entityRefs: n } = v1(), o = n?.resolvers?.vacancy, s = z(), a = n?.urls?.vacancy?.(e), i = X(
6453
6289
  () => (c) => ({
6454
6290
  title: c.name,
@@ -6484,38 +6320,204 @@ function Vl({ id: e, label: r }) {
6484
6320
  }
6485
6321
  ) : /* @__PURE__ */ t("span", { children: r });
6486
6322
  }
6487
- const Tl = {
6488
- person: Fl,
6489
- candidate: yl,
6490
- expense: Ml,
6491
- "job-posting": Rl,
6492
- requisition: Sl,
6493
- vacancy: Vl
6323
+ const Ll = {
6324
+ person: gl,
6325
+ candidate: Cl,
6326
+ expense: pl,
6327
+ "job-posting": ml,
6328
+ requisition: vl,
6329
+ vacancy: xl
6494
6330
  };
6495
- function Al(e) {
6496
- return Tl[e];
6331
+ function bl(e) {
6332
+ return Ll[e];
6497
6333
  }
6498
- function oe(e) {
6499
- return typeof e == "string" ? e : typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(oe).join("") : e && typeof e == "object" && "props" in e ? oe(e.props.children) : "";
6334
+ function z1(e) {
6335
+ return typeof e == "string" ? e : typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(z1).join("") : e && typeof e == "object" && "props" in e ? z1(e.props.children) : "";
6500
6336
  }
6501
- function El({
6337
+ function kl({
6502
6338
  type: e,
6503
6339
  id: r,
6504
6340
  children: n
6505
6341
  }) {
6506
6342
  if (!r || !e)
6507
6343
  return /* @__PURE__ */ t("span", { children: n });
6508
- const o = oe(n), s = Al(e);
6344
+ const o = z1(n), s = bl(e);
6509
6345
  return s ? /* @__PURE__ */ t(s, { id: r, label: o }) : /* @__PURE__ */ t("span", { children: n });
6510
6346
  }
6347
+ async function yl(e, r, n) {
6348
+ const o = await import("./xlsx-CzlURDDb.js"), s = o.utils.table_to_book(e, { sheet: "Data" });
6349
+ o.writeFile(s, `${n}.${r}`);
6350
+ }
6351
+ function Ml({
6352
+ children: e,
6353
+ title: r,
6354
+ ...n
6355
+ }) {
6356
+ const o = z(), s = E(null), a = j(
6357
+ (i) => {
6358
+ if (!s.current)
6359
+ return;
6360
+ const d = r?.replace(/\s+/g, "_").toLowerCase() || "table";
6361
+ yl(s.current, i, d);
6362
+ },
6363
+ [r]
6364
+ );
6365
+ return /* @__PURE__ */ l("div", { className: "group/table relative flex flex-col gap-2 rounded-md border border-solid border-f1-border-secondary", children: [
6366
+ /* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-3 border-0 border-b border-solid border-f1-border-secondary px-3 py-2", children: [
6367
+ /* @__PURE__ */ t(
6368
+ a1,
6369
+ {
6370
+ tag: "h2",
6371
+ className: "text-base font-medium capitalize text-f1-foreground",
6372
+ children: r ?? o.ai.reportCard.tableLabel
6373
+ }
6374
+ ),
6375
+ /* @__PURE__ */ t(
6376
+ he,
6377
+ {
6378
+ icon: y1,
6379
+ size: "md",
6380
+ items: [
6381
+ {
6382
+ label: o.t("ai.dataDownload.download", {
6383
+ format: "Excel"
6384
+ }),
6385
+ icon: y1,
6386
+ onClick: () => a("xlsx")
6387
+ },
6388
+ {
6389
+ label: o.t("ai.dataDownload.download", {
6390
+ format: "CSV"
6391
+ }),
6392
+ icon: y1,
6393
+ onClick: () => a("csv")
6394
+ }
6395
+ ]
6396
+ }
6397
+ )
6398
+ ] }),
6399
+ /* @__PURE__ */ t("div", { className: "scrollbar-macos overflow-x-auto", children: /* @__PURE__ */ t(
6400
+ "table",
6401
+ {
6402
+ ref: s,
6403
+ ...n,
6404
+ className: b(
6405
+ "w-full border-separate border-spacing-0 [&_tbody_tr:last-child_td]:border-b-0",
6406
+ n.className
6407
+ ),
6408
+ children: e
6409
+ }
6410
+ ) })
6411
+ ] });
6412
+ }
6413
+ function Rl({
6414
+ children: e,
6415
+ ...r
6416
+ }) {
6417
+ return /* @__PURE__ */ t(
6418
+ "th",
6419
+ {
6420
+ ...r,
6421
+ className: b(
6422
+ "sticky top-0 z-10 whitespace-nowrap border-0 border-b border-solid border-f1-border-secondary bg-f1-background px-3 py-2 text-left font-medium text-f1-foreground-secondary",
6423
+ r.className
6424
+ ),
6425
+ children: e
6426
+ }
6427
+ );
6428
+ }
6429
+ function Fl({
6430
+ children: e,
6431
+ ...r
6432
+ }) {
6433
+ const n = z1(e);
6434
+ return /* @__PURE__ */ t(
6435
+ "td",
6436
+ {
6437
+ title: n || void 0,
6438
+ ...r,
6439
+ className: b(
6440
+ "max-w-80 truncate border-0 border-b border-solid border-f1-border-secondary px-3 py-2",
6441
+ r.className
6442
+ ),
6443
+ children: e
6444
+ }
6445
+ );
6446
+ }
6447
+ function Nl({
6448
+ children: e,
6449
+ ...r
6450
+ }) {
6451
+ return /* @__PURE__ */ t("p", { ...r, className: b("text-base font-normal", r.className), children: e });
6452
+ }
6453
+ function Sl({
6454
+ children: e,
6455
+ ...r
6456
+ }) {
6457
+ return /* @__PURE__ */ t(
6458
+ "h1",
6459
+ {
6460
+ ...r,
6461
+ className: b(
6462
+ "mb-2.5 mt-4 text-2xl font-medium first:mt-0 last:mb-0",
6463
+ r.className
6464
+ ),
6465
+ children: e
6466
+ }
6467
+ );
6468
+ }
6469
+ function Vl({
6470
+ children: e,
6471
+ ...r
6472
+ }) {
6473
+ return /* @__PURE__ */ t(
6474
+ "h2",
6475
+ {
6476
+ ...r,
6477
+ className: b(
6478
+ "mb-2.5 mt-4 text-lg font-medium leading-6 first:mt-0 last:mb-0",
6479
+ r.className
6480
+ ),
6481
+ children: e
6482
+ }
6483
+ );
6484
+ }
6485
+ function Tl({
6486
+ children: e,
6487
+ ...r
6488
+ }) {
6489
+ return /* @__PURE__ */ t(
6490
+ "h3",
6491
+ {
6492
+ ...r,
6493
+ className: b(
6494
+ "mb-2 mt-3.5 text-base font-semibold first:mt-0 last:mb-0",
6495
+ r.className
6496
+ ),
6497
+ children: e
6498
+ }
6499
+ );
6500
+ }
6501
+ function Al({
6502
+ children: e,
6503
+ ...r
6504
+ }) {
6505
+ return /* @__PURE__ */ t("strong", { ...r, className: b("font-semibold", r.className), children: e });
6506
+ }
6507
+ function El({
6508
+ children: e,
6509
+ ...r
6510
+ }) {
6511
+ return /* @__PURE__ */ t("em", { ...r, className: b("italic", r.className), children: e });
6512
+ }
6511
6513
  const Q4 = {
6512
- p: wl,
6513
- h1: vl,
6514
- h2: xl,
6515
- h3: Ll,
6514
+ p: Nl,
6515
+ h1: Sl,
6516
+ h2: Vl,
6517
+ h3: Tl,
6516
6518
  a: dl,
6517
- strong: bl,
6518
- em: kl,
6519
+ strong: Al,
6520
+ em: El,
6519
6521
  li: hl,
6520
6522
  pre: sl,
6521
6523
  code: al,
@@ -6523,11 +6525,11 @@ const Q4 = {
6523
6525
  hr: ll,
6524
6526
  ul,
6525
6527
  ol: fl,
6526
- table: pl,
6527
- th: ml,
6528
- td: gl,
6528
+ table: Ml,
6529
+ th: Rl,
6530
+ td: Fl,
6529
6531
  img: cl,
6530
- "entity-ref": El
6532
+ "entity-ref": kl
6531
6533
  }, Hl = ({ avatar: e }) => e?.type === "module" ? /* @__PURE__ */ t(Pt, { module: e.module, size: "md" }) : e?.type === "file" ? /* @__PURE__ */ t(Ls, { file: e.file, size: "lg" }) : e?.type === "icon" ? /* @__PURE__ */ t(bs, { icon: e.icon, size: "md" }) : null, $l = ({
6532
6534
  action: e,
6533
6535
  isActive: r
@@ -6586,7 +6588,7 @@ function lr({
6586
6588
  );
6587
6589
  }
6588
6590
  lr.displayName = "F0CanvasCard";
6589
- const me = z1(null);
6591
+ const me = G1(null);
6590
6592
  function J4({
6591
6593
  children: e
6592
6594
  }) {
@@ -6875,7 +6877,7 @@ function fr({ anchor: e, onReply: r }) {
6875
6877
  document.body
6876
6878
  );
6877
6879
  }
6878
- const hr = z1(void 0), t9 = () => $1(hr), Ul = (e) => /* @__PURE__ */ t(Dt, { content: e, format: "markdown" }), zl = ({
6880
+ const hr = G1(void 0), t9 = () => $1(hr), Ul = (e) => /* @__PURE__ */ t(Dt, { content: e, format: "markdown" }), zl = ({
6879
6881
  isGenerating: e,
6880
6882
  isLoading: r,
6881
6883
  message: n,
@@ -6959,7 +6961,7 @@ const hr = z1(void 0), t9 = () => $1(hr), Ul = (e) => /* @__PURE__ */ t(Dt, { co
6959
6961
  ) })
6960
6962
  }
6961
6963
  );
6962
- }, Cr = z1(null), Wl = ({ children: e }) => {
6964
+ }, Cr = G1(null), Wl = ({ children: e }) => {
6963
6965
  const [r, n] = I(null), o = r ? {
6964
6966
  isOpen: !0,
6965
6967
  currentReaction: r.action,
@@ -7150,7 +7152,7 @@ const Xl = ({
7150
7152
  lockOpen: n,
7151
7153
  children: /* @__PURE__ */ t("div", { className: "flex flex-col gap-3 pb-4", children: e.map((m, h) => /* @__PURE__ */ l("div", { className: "relative", children: [
7152
7154
  /* @__PURE__ */ t(
7153
- ne,
7155
+ oe,
7154
7156
  {
7155
7157
  title: m,
7156
7158
  status: C(h),
@@ -7532,14 +7534,14 @@ const h6 = {
7532
7534
  (B, V) => M(B, V)
7533
7535
  ),
7534
7536
  U.endIndicator === "thinking" ? /* @__PURE__ */ t(
7535
- ne,
7537
+ oe,
7536
7538
  {
7537
7539
  title: D.ai.thinking,
7538
7540
  status: "executing",
7539
7541
  suffix: /* @__PURE__ */ t(mr, { startedAt: b1 })
7540
7542
  }
7541
7543
  ) : null,
7542
- U.endIndicator === "activity" ? /* @__PURE__ */ t(ne, { status: "writing" }) : null,
7544
+ U.endIndicator === "activity" ? /* @__PURE__ */ t(oe, { status: "writing" }) : null,
7543
7545
  U.feedback ? /* @__PURE__ */ t(
7544
7546
  Xl,
7545
7547
  {
@@ -7648,7 +7650,7 @@ const h6 = {
7648
7650
  /* @__PURE__ */ t(u1, { className: "h-5 w-4/5 rounded-md" })
7649
7651
  ] }) }), n9 = {
7650
7652
  ai: Xs.ai
7651
- }, wr = z1(null);
7653
+ }, wr = G1(null);
7652
7654
  function o9({
7653
7655
  children: e,
7654
7656
  translations: r
@@ -8868,7 +8870,7 @@ const G6 = (e, r, n, o) => {
8868
8870
  )
8869
8871
  );
8870
8872
  }
8871
- }, te = 9729, lt = 9728, q6 = 9987, ct = 33071, dt = 10497;
8873
+ }, re = 9729, lt = 9728, q6 = 9987, ct = 33071, dt = 10497;
8872
8874
  class X6 {
8873
8875
  gl;
8874
8876
  url;
@@ -8983,14 +8985,14 @@ class X6 {
8983
8985
  });
8984
8986
  }
8985
8987
  let F = await T(), x = (F.width & F.width - 1) === 0 && (F.height & F.height - 1) === 0;
8986
- return (r.wrapS !== ct || r.wrapT !== ct || r.minFilter !== lt && r.minFilter !== te) && !x && (F = this.makePowerOf2(F), x = !0), n.bindTexture(n.TEXTURE_2D, $), n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL, c), n.texImage2D(
8988
+ return (r.wrapS !== ct || r.wrapT !== ct || r.minFilter !== lt && r.minFilter !== re) && !x && (F = this.makePowerOf2(F), x = !0), n.bindTexture(n.TEXTURE_2D, $), n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL, c), n.texImage2D(
8987
8989
  n.TEXTURE_2D,
8988
8990
  C,
8989
8991
  m,
8990
8992
  p,
8991
8993
  L,
8992
8994
  F
8993
- ), x && r.minFilter !== lt && r.minFilter !== te && n.generateMipmap(n.TEXTURE_2D), n.texParameteri(
8995
+ ), x && r.minFilter !== lt && r.minFilter !== re && n.generateMipmap(n.TEXTURE_2D), n.texParameteri(
8994
8996
  n.TEXTURE_2D,
8995
8997
  n.TEXTURE_WRAP_S,
8996
8998
  this.wrapS || dt
@@ -9005,7 +9007,7 @@ class X6 {
9005
9007
  ), n.texParameteri(
9006
9008
  n.TEXTURE_2D,
9007
9009
  n.TEXTURE_MAG_FILTER,
9008
- this.magFilter || te
9010
+ this.magFilter || re
9009
9011
  ), this._webglTexture = $, this.source = F, this.isVideo = !1, this.isLoaded = !0, this.width = F.width || 0, this.height = F.height || 0, this;
9010
9012
  };
9011
9013
  }
@@ -9302,8 +9304,8 @@ ${y}`));
9302
9304
  const _ = P.current[V];
9303
9305
  if (!_)
9304
9306
  return;
9305
- const { isVideo: c1, _webglTexture: x1, source: N1, flipY: V1, isLoaded: q1 } = _;
9306
- if (!q1 || !x1 || !N1)
9307
+ const { isVideo: c1, _webglTexture: x1, source: N1, flipY: V1, isLoaded: X1 } = _;
9308
+ if (!X1 || !x1 || !N1)
9307
9309
  return;
9308
9310
  if (R.current[`iChannel${V}`]?.isNeeded) {
9309
9311
  if (!p.current)
@@ -9752,7 +9754,7 @@ const d9 = ({
9752
9754
  "company",
9753
9755
  "alert",
9754
9756
  "balance"
9755
- ]), re = ({
9757
+ ]), ne = ({
9756
9758
  label: e,
9757
9759
  children: r
9758
9760
  }) => /* @__PURE__ */ l("div", { className: "flex items-center gap-1", children: [
@@ -9768,7 +9770,7 @@ const d9 = ({
9768
9770
  }
9769
9771
  ), a4 = (e) => {
9770
9772
  const { label: r } = e;
9771
- return e.content === "person" ? /* @__PURE__ */ t(re, { label: r, children: /* @__PURE__ */ t(
9773
+ return e.content === "person" ? /* @__PURE__ */ t(ne, { label: r, children: /* @__PURE__ */ t(
9772
9774
  Bt,
9773
9775
  {
9774
9776
  firstName: e.avatar.firstName,
@@ -9776,14 +9778,14 @@ const d9 = ({
9776
9778
  src: e.avatar.src,
9777
9779
  size: "xs"
9778
9780
  }
9779
- ) }) : e.content === "people" ? /* @__PURE__ */ t(As, { type: "person", avatars: e.avatars, size: "md", max: 3 }) : e.content === "team" ? /* @__PURE__ */ t(re, { label: r, children: /* @__PURE__ */ t(
9781
+ ) }) : e.content === "people" ? /* @__PURE__ */ t(As, { type: "person", avatars: e.avatars, size: "md", max: 3 }) : e.content === "team" ? /* @__PURE__ */ t(ne, { label: r, children: /* @__PURE__ */ t(
9780
9782
  Es,
9781
9783
  {
9782
9784
  name: e.avatar.name,
9783
9785
  src: e.avatar.src,
9784
9786
  size: "xs"
9785
9787
  }
9786
- ) }) : e.content === "company" ? /* @__PURE__ */ t(re, { label: r, children: /* @__PURE__ */ t(
9788
+ ) }) : e.content === "company" ? /* @__PURE__ */ t(ne, { label: r, children: /* @__PURE__ */ t(
9787
9789
  Ce,
9788
9790
  {
9789
9791
  name: e.avatar.name,
@@ -10252,7 +10254,7 @@ function y4({
10252
10254
  [a, n]
10253
10255
  );
10254
10256
  return e.columns?.length ? /* @__PURE__ */ l(
10255
- Q1,
10257
+ J1,
10256
10258
  {
10257
10259
  display: "flex",
10258
10260
  flexDirection: "column",
@@ -10262,7 +10264,7 @@ function y4({
10262
10264
  borderColor: "secondary",
10263
10265
  children: [
10264
10266
  /* @__PURE__ */ l(
10265
- Q1,
10267
+ J1,
10266
10268
  {
10267
10269
  display: "flex",
10268
10270
  alignItems: "center",
@@ -10304,7 +10306,7 @@ function y4({
10304
10306
  ]
10305
10307
  }
10306
10308
  ),
10307
- /* @__PURE__ */ t(Q1, { overflowX: "auto", children: /* @__PURE__ */ l(
10309
+ /* @__PURE__ */ t(J1, { overflowX: "auto", children: /* @__PURE__ */ l(
10308
10310
  "table",
10309
10311
  {
10310
10312
  ref: s,
@@ -10356,7 +10358,7 @@ function M4({ credits: e, trigger: r }) {
10356
10358
  if (!e)
10357
10359
  return null;
10358
10360
  const m = f ? Math.min(100, Math.round(f.used / f.total * 100)) : 0, h = e.companyName;
10359
- return /* @__PURE__ */ l(G1, { open: o, onOpenChange: C, children: [
10361
+ return /* @__PURE__ */ l(W1, { open: o, onOpenChange: C, children: [
10360
10362
  /* @__PURE__ */ t(fe, { asChild: !0, children: r ?? /* @__PURE__ */ t(
10361
10363
  s1,
10362
10364
  {
@@ -10368,7 +10370,7 @@ function M4({ credits: e, trigger: r }) {
10368
10370
  }
10369
10371
  ) }),
10370
10372
  /* @__PURE__ */ l(
10371
- W1,
10373
+ q1,
10372
10374
  {
10373
10375
  side: "bottom",
10374
10376
  align: "end",
@@ -10544,7 +10546,7 @@ function N4({
10544
10546
  if (!e)
10545
10547
  return null;
10546
10548
  const m = !!e.companyName;
10547
- return /* @__PURE__ */ l(G1, { open: o, onOpenChange: C, children: [
10549
+ return /* @__PURE__ */ l(W1, { open: o, onOpenChange: C, children: [
10548
10550
  /* @__PURE__ */ t(fe, { asChild: !0, children: r ?? /* @__PURE__ */ t(
10549
10551
  s1,
10550
10552
  {
@@ -10556,7 +10558,7 @@ function N4({
10556
10558
  }
10557
10559
  ) }),
10558
10560
  /* @__PURE__ */ l(
10559
- W1,
10561
+ q1,
10560
10562
  {
10561
10563
  side: "bottom",
10562
10564
  align: "end",