@factorialco/f0-react 13.8.0 → 13.10.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.
- package/dist/{ArchiveThumbnail-BWmaJU-e.js → ArchiveThumbnail-BMp3YbfD.js} +3 -3
- package/dist/{ArchiveViewer-BCS5O2Lm.js → ArchiveViewer-hEye6_DO.js} +5 -5
- package/dist/{ChatPostComposerDialog-B70a2ifd.js → ChatPostComposerDialog-DvK-F_9b.js} +3 -3
- package/dist/{CoachmarkProvider-Yf3g4I7H.js → CoachmarkProvider-CSyq_SH1.js} +22803 -22302
- package/dist/{CodeThumbnail-t7uhUafH.js → CodeThumbnail-BskK4DTN.js} +1 -1
- package/dist/{CodeViewer-CwhnIZQq.js → CodeViewer-CUVpRfFA.js} +6 -6
- package/dist/{DocumentToolbar-BUQCMtP6.js → DocumentToolbar-lIncsF3z.js} +5 -5
- package/dist/{DocxViewer-1lNOLaA3.js → DocxViewer-BAwGUg5D.js} +3 -3
- package/dist/{F0AiProcessingOverlay-DrGj9rE0.js → F0AiProcessingOverlay-hPOUgmJz.js} +45 -45
- package/dist/{F0Alert-13k-qqDG.js → F0Alert-DWpoDmXm.js} +5 -5
- package/dist/F0AudioPlayer-B87gu5ab.js +2 -0
- package/dist/{F0Button-CxSs_bhW.js → F0Button-DJAGcvGQ.js} +4 -4
- package/dist/{F0CanvasPanel-Dh4gV-qY.js → F0CanvasPanel-BqX2Sult.js} +304 -304
- package/dist/{F0DocumentViewer-CViOPGOd.js → F0DocumentViewer-D8n4cD0X.js} +1 -1
- package/dist/{F0DocumentViewer-foMKH9Vp.js → F0DocumentViewer-bO7PViP1.js} +4 -4
- package/dist/{F0Icon-VifF8rpX.js → F0Icon-CqhIsgzq.js} +1 -1
- package/dist/{F0Map-DK-hI3Ok.js → F0Map-WdDErexm.js} +572 -572
- package/dist/{F0Select-BOphvJId.js → F0Select-CLVnq8Oe.js} +5679 -5679
- package/dist/{F0Text-Bpa7KaaM.js → F0Text-sHWQ6Zjr.js} +2 -2
- package/dist/{F0VideoPlayer-DnYPLTim.js → F0VideoPlayer--6DJybCc.js} +6 -6
- package/dist/F0VideoPlayer-ChcyxpNN.js +1 -0
- package/dist/{HtmlThumbnail-Dq-0M596.js → HtmlThumbnail-aIC6kVaS.js} +1 -1
- package/dist/{HtmlViewer-BHPLaNhE.js → HtmlViewer-bxvjs0HU.js} +9 -9
- package/dist/{LayoutGroup-BWnUhPYF.js → LayoutGroup-CmYTzUe-.js} +15 -15
- package/dist/{Map-DMC3i8yl.js → Map-B9SA_hEH.js} +10 -10
- package/dist/{PdfThumbnail-CKueINHk.js → PdfThumbnail---NygeL_.js} +1 -1
- package/dist/{PdfViewer-DooVnDas.js → PdfViewer-Dzj9Ilu-.js} +13 -13
- package/dist/{SandboxedHtmlFrame-DR9md8QY.js → SandboxedHtmlFrame-Dv21SdxM.js} +2 -2
- package/dist/{SheetViewer-BJ8Mvwkc.js → SheetViewer-CyhOFDVZ.js} +5 -5
- package/dist/{TextViewer-pQIs_OJV.js → TextViewer-CKrr0PDH.js} +4 -4
- package/dist/ai.d.ts +3 -3
- package/dist/ai.js +4 -4
- package/dist/component-status.js +15 -15
- package/dist/{dist-Bp4vM3bZ.js → dist-78QS1RpN.js} +4 -4
- package/dist/{dist-DPcRzPjW.js → dist-B0VLslFD.js} +1 -1
- package/dist/{dist-Cfr_PHiv.js → dist-DvI6nhUB.js} +1 -1
- package/dist/experimental.d.ts +7 -2
- package/dist/experimental.js +3806 -3742
- package/dist/{exports-v_F99St1.d.ts → exports-DaVqRnuz.d.ts} +1 -1
- package/dist/f0.d.ts +5 -5
- package/dist/f0.js +1193 -1180
- package/dist/{highlight-BHqxjdF6.js → highlight-DZRNad9z.js} +1 -1
- package/dist/{i18n-provider-BniRK15h.js → i18n-provider-5AmqITig.js} +1 -1
- package/dist/{i18n-provider-defaults-Q9twuwTp.d.ts → i18n-provider-defaults-DztF2sWo.d.ts} +16 -0
- package/dist/{i18n-provider-defaults-BkMw-qG7.js → i18n-provider-defaults-mM2ICqyS.js} +16 -0
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-BOITzsxP.d.ts → index-C0pYJxas.d.ts} +1 -1
- package/dist/{maplibre-C_u6rvlI.js → maplibre-9SjV58q1.js} +1 -1
- package/dist/{pdfWorker-BAWd_kWz.js → pdfWorker-DMcapWPE.js} +1 -1
- package/dist/{popover-CwQ7JDZU.js → popover-Cw4HYjOL.js} +1 -1
- package/dist/{scrollarea-HcC-Gf8H.js → scrollarea-4p-5wD8d.js} +3 -3
- package/dist/{skeleton-DTPG1VHE.js → skeleton-BWzVGMzP.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{toolbarStyles-TdJVpkJ0.js → toolbarStyles-DDsE4J6B.js} +1 -1
- package/dist/{types-NNoGnjGf.d.ts → types-D8tVTeWQ.d.ts} +83 -30
- package/dist/{useData-IY6E4kFy.js → useData-BjMlOMnX.js} +7 -7
- package/package.json +1 -1
- package/dist/F0AudioPlayer-1a2sNIGA.js +0 -2
- package/dist/F0VideoPlayer-CVY4ixC5.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { L as e } from "./tooltip-BX4dSfeL.js";
|
|
2
|
-
import { i as t, t as n } from "./highlight-
|
|
2
|
+
import { i as t, t as n } from "./highlight-DZRNad9z.js";
|
|
3
3
|
import { t as r } from "./useThumbnailText-DwXQvLIe.js";
|
|
4
4
|
import { useEffect as i, useState as a } from "react";
|
|
5
5
|
import { jsx as o } from "react/jsx-runtime";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r as e } from "./i18n-provider-
|
|
2
|
-
import { t } from "./skeleton-
|
|
1
|
+
import { r as e } from "./i18n-provider-5AmqITig.js";
|
|
2
|
+
import { t } from "./skeleton-BWzVGMzP.js";
|
|
3
3
|
import { L as n } from "./tooltip-BX4dSfeL.js";
|
|
4
|
-
import { Jc as r, Xr as i } from "./F0CanvasPanel-
|
|
5
|
-
import {
|
|
4
|
+
import { Jc as r, Xr as i } from "./F0CanvasPanel-BqX2Sult.js";
|
|
5
|
+
import { St as a } from "./F0Select-CLVnq8Oe.js";
|
|
6
6
|
import { t as o } from "./purify.es-ZpfdAuNV.js";
|
|
7
|
-
import { n as s, t as c } from "./DocumentToolbar-
|
|
8
|
-
import { a as l, i as u, n as d, o as f, r as p, t as m } from "./highlight-
|
|
7
|
+
import { n as s, t as c } from "./DocumentToolbar-lIncsF3z.js";
|
|
8
|
+
import { a as l, i as u, n as d, o as f, r as p, t as m } from "./highlight-DZRNad9z.js";
|
|
9
9
|
import { t as h } from "./useFetchedText-BR3_KLXx.js";
|
|
10
10
|
import { useEffect as g, useMemo as _, useState as v } from "react";
|
|
11
11
|
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as e } from "./i18n-provider-
|
|
2
|
-
import { vc as t } from "./F0CanvasPanel-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { a, c as o, n as s, o as c, r as l, s as u, t as d } from "./toolbarStyles-
|
|
1
|
+
import { r as e } from "./i18n-provider-5AmqITig.js";
|
|
2
|
+
import { vc as t } from "./F0CanvasPanel-BqX2Sult.js";
|
|
3
|
+
import { R as n } from "./useData-BjMlOMnX.js";
|
|
4
|
+
import { cr as r, t as i } from "./F0Select-CLVnq8Oe.js";
|
|
5
|
+
import { a, c as o, n as s, o as c, r as l, s as u, t as d } from "./toolbarStyles-DDsE4J6B.js";
|
|
6
6
|
import { useCallback as f, useMemo as p, useState as m } from "react";
|
|
7
7
|
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
8
8
|
//#region src/addons/documents/F0DocumentViewer/components/DocumentToolbar.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as e } from "./i18n-provider-
|
|
2
|
-
import { t } from "./skeleton-
|
|
3
|
-
import { n, t as r } from "./DocumentToolbar-
|
|
1
|
+
import { r as e } from "./i18n-provider-5AmqITig.js";
|
|
2
|
+
import { t } from "./skeleton-BWzVGMzP.js";
|
|
3
|
+
import { n, t as r } from "./DocumentToolbar-lIncsF3z.js";
|
|
4
4
|
import { t as i } from "./renderDocx-BW-uDyaZ.js";
|
|
5
5
|
import { useEffect as a, useRef as o, useState as s } from "react";
|
|
6
6
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { a as e, r as t } from "./i18n-provider-
|
|
2
|
-
import { n, t as r } from "./skeleton-
|
|
1
|
+
import { a as e, r as t } from "./i18n-provider-5AmqITig.js";
|
|
2
|
+
import { n, t as r } from "./skeleton-BWzVGMzP.js";
|
|
3
3
|
import { L as i, R as a } from "./tooltip-BX4dSfeL.js";
|
|
4
|
-
import { T as o, U as s, h as c, n as l, r as u, t as d, wt as f, y as p } from "./F0Button-
|
|
5
|
-
import { $ as m, $t as h, A as g, Aa as _, Ao as v, As as y, B as b, Bt as x, C as S, Cc as C, Di as w, Ds as T, Ei as E, Ft as D, G as O, Gi as ee, Go as k, Gt as A, H as j, Ht as M, J as N, Jo as P, K as F, Kc as I, Ko as L, Kt as te, Lr as ne, Lt as re, M as ie, Ms as ae, Mt as R, O as oe, Oi as z, Ot as B, Po as se, Ps as ce, Pt as le, Q as ue, S as de, Sc as fe, St as pe, U as me, Ui as he, Vi as V, Vo as ge, Vr as _e, W as ve, Ws as ye, Wt as be, Xr as xe, Xt as Se, Y as Ce, Yt as we, Zr as Te, _t as Ee, a as De, an as H, ao as Oe, at as ke, b as U, bo as Ae, bs as je, cn as Me, ct as Ne, dn as Pe, ds as Fe, dt as Ie, en as Le, fn as Re, fs as ze, ft as Be, g as Ve, gn as He, gt as Ue, h as We, in as Ge, io as Ke, it as qe, j as Je, jr as Ye, jt as Xe, k as Ze, ki as Qe, kt as $e, ln as et, lo as tt, ls as nt, lt as rt, m as it, nl as at, nn as ot, ns as st, ot as ct, q as lt, qo as ut, r as dt, rn as ft, rs as pt, rt as W, ss as mt, st as ht, tl as gt, tt as _t, ut as vt, vc as yt, vn as bt, vt as xt, x as St, xn as Ct, y as wt, yi as Tt, yt as Et, zs as Dt } from "./F0CanvasPanel-
|
|
6
|
-
import { o as Ot, t as G } from "./F0Icon-
|
|
7
|
-
import { t as kt } from "./i18n-provider-defaults-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
4
|
+
import { T as o, U as s, h as c, n as l, r as u, t as d, wt as f, y as p } from "./F0Button-DJAGcvGQ.js";
|
|
5
|
+
import { $ as m, $t as h, A as g, Aa as _, Ao as v, As as y, B as b, Bt as x, C as S, Cc as C, Di as w, Ds as T, Ei as E, Ft as D, G as O, Gi as ee, Go as k, Gt as A, H as j, Ht as M, J as N, Jo as P, K as F, Kc as I, Ko as L, Kt as te, Lr as ne, Lt as re, M as ie, Ms as ae, Mt as R, O as oe, Oi as z, Ot as B, Po as se, Ps as ce, Pt as le, Q as ue, S as de, Sc as fe, St as pe, U as me, Ui as he, Vi as V, Vo as ge, Vr as _e, W as ve, Ws as ye, Wt as be, Xr as xe, Xt as Se, Y as Ce, Yt as we, Zr as Te, _t as Ee, a as De, an as H, ao as Oe, at as ke, b as U, bo as Ae, bs as je, cn as Me, ct as Ne, dn as Pe, ds as Fe, dt as Ie, en as Le, fn as Re, fs as ze, ft as Be, g as Ve, gn as He, gt as Ue, h as We, in as Ge, io as Ke, it as qe, j as Je, jr as Ye, jt as Xe, k as Ze, ki as Qe, kt as $e, ln as et, lo as tt, ls as nt, lt as rt, m as it, nl as at, nn as ot, ns as st, ot as ct, q as lt, qo as ut, r as dt, rn as ft, rs as pt, rt as W, ss as mt, st as ht, tl as gt, tt as _t, ut as vt, vc as yt, vn as bt, vt as xt, x as St, xn as Ct, y as wt, yi as Tt, yt as Et, zs as Dt } from "./F0CanvasPanel-BqX2Sult.js";
|
|
6
|
+
import { o as Ot, t as G } from "./F0Icon-CqhIsgzq.js";
|
|
7
|
+
import { t as kt } from "./i18n-provider-defaults-mM2ICqyS.js";
|
|
8
|
+
import { F as At, H as jt, M as Mt, O as Nt, S as Pt, V as Ft, g as It, h as Lt, l as Rt, m as zt, y as Bt } from "./useData-BjMlOMnX.js";
|
|
9
|
+
import { Cr as Vt, Dr as Ht, En as Ut, Et as Wt, Nt as Gt, Sr as Kt, Tn as qt, Tr as Jt, _t as Yt, an as Xt, cn as Zt, en as Qt, gt as $t, lt as en, on as tn, vt as nn, xr as rn } from "./F0Select-CLVnq8Oe.js";
|
|
10
10
|
import { t as an } from "./Check-DAp9gCRh.js";
|
|
11
11
|
import { t as on } from "./Ellipsis-CBouJQYY.js";
|
|
12
12
|
import { t as sn } from "./ExternalLink-RdKU698E.js";
|
|
13
|
-
import { a as cn, gt as ln, i as un, t as dn } from "./popover-
|
|
13
|
+
import { a as cn, gt as ln, i as un, t as dn } from "./popover-Cw4HYjOL.js";
|
|
14
14
|
import { a as fn } from "./dist-Cuwaibqg.js";
|
|
15
15
|
import { createContext as pn, createElement as mn, forwardRef as hn, memo as gn, useCallback as K, useContext as _n, useEffect as q, useId as vn, useImperativeHandle as yn, useInsertionEffect as bn, useLayoutEffect as xn, useMemo as J, useRef as Y, useState as X } from "react";
|
|
16
16
|
import { Fragment as Sn, jsx as Z, jsxs as Q } from "react/jsx-runtime";
|
|
@@ -253,7 +253,7 @@ var Pn = "relative flex flex-col rounded-lg border border-solid border-f1-border
|
|
|
253
253
|
size: e,
|
|
254
254
|
hideLabel: !0,
|
|
255
255
|
label: r === "save" ? z.save : z.send,
|
|
256
|
-
icon: r === "save" ? an :
|
|
256
|
+
icon: r === "save" ? an : Jt,
|
|
257
257
|
onClick: L ? void 0 : lt,
|
|
258
258
|
disabled: !at
|
|
259
259
|
})
|
|
@@ -639,7 +639,7 @@ var zn = (e) => {
|
|
|
639
639
|
label: c.ai.addToConversation,
|
|
640
640
|
hideLabel: !0,
|
|
641
641
|
type: "button",
|
|
642
|
-
icon:
|
|
642
|
+
icon: jt,
|
|
643
643
|
variant: "outline",
|
|
644
644
|
size: "md",
|
|
645
645
|
pressed: u,
|
|
@@ -823,7 +823,7 @@ var zn = (e) => {
|
|
|
823
823
|
className: "min-w-0 flex-1 truncate",
|
|
824
824
|
children: c.t("ai.usageLimits.yourCompany")
|
|
825
825
|
}), /* @__PURE__ */ Z(G, {
|
|
826
|
-
icon:
|
|
826
|
+
icon: Kt,
|
|
827
827
|
size: "md",
|
|
828
828
|
color: "default"
|
|
829
829
|
})]
|
|
@@ -1360,16 +1360,16 @@ function br({ id: e, trigger: t, resolver: n, contentClassName: r = "w-64", ...a
|
|
|
1360
1360
|
s,
|
|
1361
1361
|
l
|
|
1362
1362
|
]), h = d ? null : s;
|
|
1363
|
-
return /* @__PURE__ */ Q(
|
|
1363
|
+
return /* @__PURE__ */ Q($t, {
|
|
1364
1364
|
openDelay: 300,
|
|
1365
1365
|
closeDelay: 100,
|
|
1366
1366
|
onOpenChange: (e) => {
|
|
1367
1367
|
e && m();
|
|
1368
1368
|
},
|
|
1369
|
-
children: [/* @__PURE__ */ Z(
|
|
1369
|
+
children: [/* @__PURE__ */ Z(nn, {
|
|
1370
1370
|
asChild: !0,
|
|
1371
1371
|
children: t
|
|
1372
|
-
}), /* @__PURE__ */ Z(
|
|
1372
|
+
}), /* @__PURE__ */ Z(Yt, {
|
|
1373
1373
|
side: "top",
|
|
1374
1374
|
align: "start",
|
|
1375
1375
|
className: i(r, "rounded-2xl border-none p-0 shadow-md"),
|
|
@@ -1613,7 +1613,7 @@ function Mr({ id: e, label: n }) {
|
|
|
1613
1613
|
label: a.t("ai.entityRef.requisition.status"),
|
|
1614
1614
|
value: /* @__PURE__ */ Z("div", {
|
|
1615
1615
|
className: "flex items-center pt-1",
|
|
1616
|
-
children: /* @__PURE__ */ Z(
|
|
1616
|
+
children: /* @__PURE__ */ Z(qt, {
|
|
1617
1617
|
text: e.status,
|
|
1618
1618
|
variant: e.statusVariant ?? "neutral"
|
|
1619
1619
|
})
|
|
@@ -1931,10 +1931,10 @@ var Xr = {
|
|
|
1931
1931
|
}), li = (e) => A(e) ?? "", ui = pn(!1), di = () => _n(ui), fi = (e, t) => {
|
|
1932
1932
|
let [n, r] = X(() => t ? null : new Set(e));
|
|
1933
1933
|
return t && n !== null ? r(null) : !t && n === null && r(new Set(e)), (e) => e !== void 0 && n !== null && !n.has(e);
|
|
1934
|
-
}, pi = ({ avatar: e }) => e?.type === "module" ? /* @__PURE__ */ Z(
|
|
1934
|
+
}, pi = ({ avatar: e }) => e?.type === "module" ? /* @__PURE__ */ Z(Nt, {
|
|
1935
1935
|
module: e.module,
|
|
1936
1936
|
size: "md"
|
|
1937
|
-
}) : e?.type === "file" ? /* @__PURE__ */ Z(
|
|
1937
|
+
}) : e?.type === "file" ? /* @__PURE__ */ Z(Bt, {
|
|
1938
1938
|
file: e.file,
|
|
1939
1939
|
size: "lg"
|
|
1940
1940
|
}) : e?.type === "icon" ? /* @__PURE__ */ Z(It, {
|
|
@@ -2856,7 +2856,7 @@ var xa = ({ content: e, targetMessage: n, onCopy: r }) => {
|
|
|
2856
2856
|
className: "min-h-6 flex items-center",
|
|
2857
2857
|
children: /* @__PURE__ */ Z("span", { children: t })
|
|
2858
2858
|
}),
|
|
2859
|
-
l ? null : /* @__PURE__ */ Z(G, { icon:
|
|
2859
|
+
l ? null : /* @__PURE__ */ Z(G, { icon: Kt })
|
|
2860
2860
|
]
|
|
2861
2861
|
}), /* @__PURE__ */ Z(w, {
|
|
2862
2862
|
forceMount: !0,
|
|
@@ -3372,7 +3372,7 @@ var Za = ({ canProceed: e, submitDisabled: n, label: r, onConfirm: i, onSkip: a,
|
|
|
3372
3372
|
let t = Math.min(e.scrollHeight, $a);
|
|
3373
3373
|
e.style.height = `${t}px`, e.style.overflowY = e.scrollHeight > $a ? "auto" : "hidden";
|
|
3374
3374
|
}, [a]);
|
|
3375
|
-
let g = e === "single" ? /* @__PURE__ */ Z(Qa, { isSelected: r && !n }) : /* @__PURE__ */ Z(
|
|
3375
|
+
let g = e === "single" ? /* @__PURE__ */ Z(Qa, { isSelected: r && !n }) : /* @__PURE__ */ Z(en, {
|
|
3376
3376
|
checked: o,
|
|
3377
3377
|
onCheckedChange: () => d(!o),
|
|
3378
3378
|
title: p,
|
|
@@ -3411,7 +3411,7 @@ var Za = ({ canProceed: e, submitDisabled: n, label: r, onConfirm: i, onSkip: a,
|
|
|
3411
3411
|
}) : /* @__PURE__ */ Q("div", {
|
|
3412
3412
|
ref: c,
|
|
3413
3413
|
className: i("flex cursor-pointer items-center rounded-md pl-2 transition-[background-color,transform] hover:bg-f1-background-secondary active:scale-[0.99]"),
|
|
3414
|
-
children: [/* @__PURE__ */ Z(
|
|
3414
|
+
children: [/* @__PURE__ */ Z(en, {
|
|
3415
3415
|
checked: t,
|
|
3416
3416
|
onCheckedChange: () => o(e.id),
|
|
3417
3417
|
title: e.label,
|
|
@@ -3532,7 +3532,7 @@ var no = [
|
|
|
3532
3532
|
disabled: r,
|
|
3533
3533
|
label: l.ai.clarifyingQuestion.back,
|
|
3534
3534
|
hideLabel: !0,
|
|
3535
|
-
icon:
|
|
3535
|
+
icon: Vt
|
|
3536
3536
|
}),
|
|
3537
3537
|
/* @__PURE__ */ Z("span", {
|
|
3538
3538
|
className: "translate-y-px text-sm font-semibold text-f1-foreground-tertiary",
|
|
@@ -3546,7 +3546,7 @@ var no = [
|
|
|
3546
3546
|
disabled: i || !a,
|
|
3547
3547
|
label: l.ai.clarifyingQuestion.next,
|
|
3548
3548
|
hideLabel: !0,
|
|
3549
|
-
icon:
|
|
3549
|
+
icon: Kt
|
|
3550
3550
|
})
|
|
3551
3551
|
]
|
|
3552
3552
|
}) : null,
|
|
@@ -4650,7 +4650,7 @@ var fs = ({ text: e, description: t, avatar: n, confirmationText: r, onConfirm:
|
|
|
4650
4650
|
className: i(gs()),
|
|
4651
4651
|
children: e
|
|
4652
4652
|
}) : null]
|
|
4653
|
-
}), bs = ({ balance: e }) => /* @__PURE__ */ Z(
|
|
4653
|
+
}), bs = ({ balance: e }) => /* @__PURE__ */ Z(Gt, {
|
|
4654
4654
|
amount: e.amount,
|
|
4655
4655
|
percentage: e.percentage ?? void 0,
|
|
4656
4656
|
invertStatus: e.invertStatus,
|
|
@@ -4665,26 +4665,26 @@ var fs = ({ text: e, description: t, avatar: n, confirmationText: r, onConfirm:
|
|
|
4665
4665
|
src: e.avatar.src,
|
|
4666
4666
|
size: "xs"
|
|
4667
4667
|
})
|
|
4668
|
-
}) : e.content === "people" ? /* @__PURE__ */ Z(
|
|
4668
|
+
}) : e.content === "people" ? /* @__PURE__ */ Z(Rt, {
|
|
4669
4669
|
type: "person",
|
|
4670
4670
|
avatars: e.avatars,
|
|
4671
4671
|
size: "md",
|
|
4672
4672
|
max: 3
|
|
4673
4673
|
}) : e.content === "team" ? /* @__PURE__ */ Z(ys, {
|
|
4674
4674
|
label: t,
|
|
4675
|
-
children: /* @__PURE__ */ Z(
|
|
4675
|
+
children: /* @__PURE__ */ Z(zt, {
|
|
4676
4676
|
name: e.avatar.name,
|
|
4677
4677
|
src: e.avatar.src,
|
|
4678
4678
|
size: "xs"
|
|
4679
4679
|
})
|
|
4680
4680
|
}) : e.content === "company" ? /* @__PURE__ */ Z(ys, {
|
|
4681
4681
|
label: t,
|
|
4682
|
-
children: /* @__PURE__ */ Z(
|
|
4682
|
+
children: /* @__PURE__ */ Z(Pt, {
|
|
4683
4683
|
name: e.avatar.name,
|
|
4684
4684
|
src: e.avatar.src,
|
|
4685
4685
|
size: "xs"
|
|
4686
4686
|
})
|
|
4687
|
-
}) : e.content === "alert" ? /* @__PURE__ */ Z(
|
|
4687
|
+
}) : e.content === "alert" ? /* @__PURE__ */ Z(Ut, {
|
|
4688
4688
|
text: e.alertLabel,
|
|
4689
4689
|
level: e.level
|
|
4690
4690
|
}) : e.content === "balance" ? /* @__PURE__ */ Z(bs, { balance: e.balance }) : null;
|
|
@@ -4910,7 +4910,7 @@ function Is(e) {
|
|
|
4910
4910
|
children: [
|
|
4911
4911
|
/* @__PURE__ */ Q("div", {
|
|
4912
4912
|
className: "flex items-center gap-3 px-4 py-3",
|
|
4913
|
-
children: [t ? /* @__PURE__ */ Z(
|
|
4913
|
+
children: [t ? /* @__PURE__ */ Z(Nt, {
|
|
4914
4914
|
module: t,
|
|
4915
4915
|
size: "md"
|
|
4916
4916
|
}) : null, /* @__PURE__ */ Q("div", {
|
|
@@ -4980,7 +4980,7 @@ var Ls = ({ icon: e, title: t, children: n }) => {
|
|
|
4980
4980
|
children: t
|
|
4981
4981
|
}),
|
|
4982
4982
|
/* @__PURE__ */ Z(G, {
|
|
4983
|
-
icon:
|
|
4983
|
+
icon: Kt,
|
|
4984
4984
|
className: "h-4 w-4 transition-transform duration-200"
|
|
4985
4985
|
})
|
|
4986
4986
|
]
|
|
@@ -5021,7 +5021,7 @@ function Bs({ sources: e, title: n }) {
|
|
|
5021
5021
|
if (!e || e.length === 0 || !Array.isArray(e)) return null;
|
|
5022
5022
|
let i = n ?? r.ai.resourcesGroupTitle;
|
|
5023
5023
|
return /* @__PURE__ */ Z(Ls, {
|
|
5024
|
-
icon:
|
|
5024
|
+
icon: At,
|
|
5025
5025
|
title: i,
|
|
5026
5026
|
children: /* @__PURE__ */ Z("div", {
|
|
5027
5027
|
className: "flex flex-col gap-1 rounded-lg border border-solid border-f1-border-secondary p-2",
|
|
@@ -5064,14 +5064,14 @@ function Hs({ dataset: e, title: n, filename: r }) {
|
|
|
5064
5064
|
let t = r ?? (s.replace(/\s+/g, "_").toLowerCase() || "table");
|
|
5065
5065
|
Vs(o.current, e, t);
|
|
5066
5066
|
}, [s, r]);
|
|
5067
|
-
return e.columns?.length ? /* @__PURE__ */ Q(
|
|
5067
|
+
return e.columns?.length ? /* @__PURE__ */ Q(Mt, {
|
|
5068
5068
|
display: "flex",
|
|
5069
5069
|
flexDirection: "column",
|
|
5070
5070
|
gap: "md",
|
|
5071
5071
|
borderRadius: "md",
|
|
5072
5072
|
border: "default",
|
|
5073
5073
|
borderColor: "secondary",
|
|
5074
|
-
children: [/* @__PURE__ */ Q(
|
|
5074
|
+
children: [/* @__PURE__ */ Q(Mt, {
|
|
5075
5075
|
display: "flex",
|
|
5076
5076
|
alignItems: "center",
|
|
5077
5077
|
justifyContent: "between",
|
|
@@ -5098,7 +5098,7 @@ function Hs({ dataset: e, title: n, filename: r }) {
|
|
|
5098
5098
|
onClick: () => c("csv")
|
|
5099
5099
|
}]
|
|
5100
5100
|
})]
|
|
5101
|
-
}), /* @__PURE__ */ Z(
|
|
5101
|
+
}), /* @__PURE__ */ Z(Mt, {
|
|
5102
5102
|
overflowX: "auto",
|
|
5103
5103
|
children: /* @__PURE__ */ Q("table", {
|
|
5104
5104
|
ref: o,
|
|
@@ -5153,7 +5153,7 @@ function Us({ credits: e, trigger: n }) {
|
|
|
5153
5153
|
className: "flex w-[324px] flex-col gap-3 rounded-md border border-solid border-f1-border-secondary p-3",
|
|
5154
5154
|
children: [v ? /* @__PURE__ */ Q("div", {
|
|
5155
5155
|
className: "flex min-w-0 max-w-full flex-1 items-center gap-2 overflow-hidden text-left text-lg text-f1-foreground",
|
|
5156
|
-
children: [/* @__PURE__ */ Z(
|
|
5156
|
+
children: [/* @__PURE__ */ Z(Pt, {
|
|
5157
5157
|
name: e.companyName ?? "",
|
|
5158
5158
|
src: e.companyLogoUrl,
|
|
5159
5159
|
size: "lg"
|
|
@@ -5355,7 +5355,7 @@ function Ks({ employeeCredits: e, trigger: n }) {
|
|
|
5355
5355
|
className: "flex w-[324px] flex-col gap-3 rounded-md border border-solid border-f1-border-secondary p-3",
|
|
5356
5356
|
children: [h ? /* @__PURE__ */ Q("div", {
|
|
5357
5357
|
className: "flex min-w-0 max-w-full flex-1 items-center gap-2 overflow-hidden text-left text-lg text-f1-foreground",
|
|
5358
|
-
children: [/* @__PURE__ */ Z(
|
|
5358
|
+
children: [/* @__PURE__ */ Z(Pt, {
|
|
5359
5359
|
name: e.companyName ?? "",
|
|
5360
5360
|
src: e.companyLogoUrl,
|
|
5361
5361
|
size: "lg"
|
|
@@ -5444,7 +5444,7 @@ var qs = ({ credits: e, employeeCredits: t, trigger: n }) => t ? /* @__PURE__ */
|
|
|
5444
5444
|
className: "min-w-0 text-left",
|
|
5445
5445
|
children: r ?? x.ai.newConversation
|
|
5446
5446
|
}), /* @__PURE__ */ Z(G, {
|
|
5447
|
-
icon:
|
|
5447
|
+
icon: Ft,
|
|
5448
5448
|
color: "default",
|
|
5449
5449
|
size: "md"
|
|
5450
5450
|
})]
|
|
@@ -5507,14 +5507,14 @@ var qs = ({ credits: e, employeeCredits: t, trigger: n }) => t ? /* @__PURE__ */
|
|
|
5507
5507
|
//#region src/addons/ai/F0AiChatHistory/utils.ts
|
|
5508
5508
|
function Xs(e) {
|
|
5509
5509
|
let t = new Date(e), n = /* @__PURE__ */ new Date();
|
|
5510
|
-
return Oe(t) ? "today" : Ke(t) ? "yesterday" :
|
|
5510
|
+
return Oe(t) ? "today" : Ke(t) ? "yesterday" : tn(t, n) ? "thisMonth" : "older";
|
|
5511
5511
|
}
|
|
5512
5512
|
function Zs(e, t, n) {
|
|
5513
|
-
let r = new Date(e), i =
|
|
5513
|
+
let r = new Date(e), i = Zt(r, "p", { locale: n });
|
|
5514
5514
|
if (Oe(r)) return `${t.today}, ${i}`;
|
|
5515
5515
|
if (Ke(r)) return `${t.yesterday}, ${i}`;
|
|
5516
|
-
let a =
|
|
5517
|
-
return `${
|
|
5516
|
+
let a = !Xt(r, /* @__PURE__ */ new Date());
|
|
5517
|
+
return `${Zt(r, a ? "MMM d yyyy" : "MMM d", { locale: n })}, ${i}`;
|
|
5518
5518
|
}
|
|
5519
5519
|
function Qs(e) {
|
|
5520
5520
|
let t = {
|
|
@@ -5537,7 +5537,7 @@ function Qs(e) {
|
|
|
5537
5537
|
//#endregion
|
|
5538
5538
|
//#region src/addons/ai/F0AiChatHistory/components/ThreadItem.tsx
|
|
5539
5539
|
function $s({ thread: e, isPinned: n, isActive: r = !1, isPending: o = !1, onSelect: s, onPin: c, onUnpin: d, onDelete: f, className: p }) {
|
|
5540
|
-
let m = t(), h =
|
|
5540
|
+
let m = t(), h = Qt(), g = J(() => [{
|
|
5541
5541
|
label: n ? m.ai.unpinChat : m.ai.pinChat,
|
|
5542
5542
|
icon: n ? Fe : ze,
|
|
5543
5543
|
onClick: () => n ? d(e.id) : c(e.id)
|
|
@@ -5598,7 +5598,7 @@ function $s({ thread: e, isPinned: n, isActive: r = !1, isPending: o = !1, onSel
|
|
|
5598
5598
|
o ? /* @__PURE__ */ Z("div", {
|
|
5599
5599
|
className: "flex h-7 w-7 shrink-0 items-center justify-center",
|
|
5600
5600
|
"aria-label": m.ai.threadOptions,
|
|
5601
|
-
children: /* @__PURE__ */ Z(
|
|
5601
|
+
children: /* @__PURE__ */ Z(Wt, { size: "small" })
|
|
5602
5602
|
}) : /* @__PURE__ */ Z("div", {
|
|
5603
5603
|
className: i("hidden items-center", "group-hover:flex group-focus-within:flex", "has-[[aria-expanded=true]]:flex"),
|
|
5604
5604
|
children: /* @__PURE__ */ Z(tt, {
|
|
@@ -5633,7 +5633,7 @@ function ec({ label: e, threads: t, pinnedIds: n, onSelect: r, onPin: o, onUnpin
|
|
|
5633
5633
|
className: "text-sm font-medium capitalize tracking-wide text-f1-foreground-secondary",
|
|
5634
5634
|
children: e
|
|
5635
5635
|
}), /* @__PURE__ */ Z(G, {
|
|
5636
|
-
icon: l ?
|
|
5636
|
+
icon: l ? Ft : rn,
|
|
5637
5637
|
color: "secondary",
|
|
5638
5638
|
size: "xs"
|
|
5639
5639
|
})]
|
|
@@ -5726,7 +5726,7 @@ var ac = ({ onClose: e, onSelectThread: n, onNewChat: r, threads: a, isLoading:
|
|
|
5726
5726
|
children: [/* @__PURE__ */ Q("div", {
|
|
5727
5727
|
className: "flex flex-shrink-0 items-center gap-2 border-0 border-b border-solid border-f1-border-secondary py-2 pl-5 pr-3",
|
|
5728
5728
|
children: [/* @__PURE__ */ Z(G, {
|
|
5729
|
-
icon:
|
|
5729
|
+
icon: At,
|
|
5730
5730
|
color: "secondary",
|
|
5731
5731
|
size: "md"
|
|
5732
5732
|
}), /* @__PURE__ */ Z("input", {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as e, r as t } from "./i18n-provider-
|
|
1
|
+
import { a as e, r as t } from "./i18n-provider-5AmqITig.js";
|
|
2
2
|
import { L as n } from "./tooltip-BX4dSfeL.js";
|
|
3
|
-
import { t as r } from "./F0Button-
|
|
4
|
-
import { Cc as i, co as a, ki as o, ms as s } from "./F0CanvasPanel-
|
|
5
|
-
import { o as c } from "./F0Icon-
|
|
6
|
-
import { g as l } from "./useData-
|
|
3
|
+
import { t as r } from "./F0Button-DJAGcvGQ.js";
|
|
4
|
+
import { Cc as i, co as a, ki as o, ms as s } from "./F0CanvasPanel-BqX2Sult.js";
|
|
5
|
+
import { o as c } from "./F0Icon-CqhIsgzq.js";
|
|
6
|
+
import { g as l } from "./useData-BjMlOMnX.js";
|
|
7
7
|
import { useRef as u } from "react";
|
|
8
8
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
9
9
|
//#region src/elements/F0Alert/F0Alert.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as e, n as t, o as n, r, t as i } from "./rolldown-runtime-BItFwnF5.js";
|
|
2
|
-
import { a, r as o, u as s } from "./i18n-provider-
|
|
3
|
-
import { n as c, t as l } from "./skeleton-
|
|
2
|
+
import { a, r as o, u as s } from "./i18n-provider-5AmqITig.js";
|
|
3
|
+
import { n as c, t as l } from "./skeleton-BWzVGMzP.js";
|
|
4
4
|
import { L as u, R as d, i as f, n as p, r as m, t as h } from "./tooltip-BX4dSfeL.js";
|
|
5
|
-
import { o as g, t as _ } from "./F0Icon-
|
|
5
|
+
import { o as g, t as _ } from "./F0Icon-CqhIsgzq.js";
|
|
6
6
|
import { t as v } from "./purify.es-ZpfdAuNV.js";
|
|
7
7
|
import * as y from "react";
|
|
8
8
|
import b, { Children as x, Component as S, Fragment as C, cloneElement as w, createContext as T, createElement as E, forwardRef as D, isValidElement as O, useCallback as k, useContext as A, useEffect as j, useId as M, useInsertionEffect as N, useLayoutEffect as ee, useMemo as P, useRef as F, useState as I } from "react";
|
|
@@ -13888,4 +13888,4 @@ var Qx = g({
|
|
|
13888
13888
|
nS.displayName = "F0Button";
|
|
13889
13889
|
var rS = a(nS);
|
|
13890
13890
|
//#endregion
|
|
13891
|
-
export { vc as $, Vu as A, yu as B, sd as C, we as Ct, Xu as D,
|
|
13891
|
+
export { vc as $, Vu as A, re as At, yu as B, sd as C, we as Ct, Xu as D, se as Dt, Yu as E, ce as Et, zu as F, uu as G, wu as H, Nu as I, Nl as J, Ql as K, Du as L, Uu as M, Bu as N, Gu as O, oe as Ot, Iu as P, yc as Q, Tu as R, wd as S, R as St, nd as T, ge as Tt, hu as U, vu as V, pu as W, jl as X, Ml as Y, nl as Z, yd as _, V as _t, Kx as a, mi as at, gd as b, Ue as bt, Qy as c, ui as ct, Fd as d, H as dt, Bs as et, kd as f, Zn as ft, vd as g, Dn as gt, Ed as h, On as ht, Gx as i, wi as it, Hu as j, Ku as k, ie as kt, ly as l, ci as lt, Md as m, Fn as mt, tS as n, Ya as nt, Mx as o, pi as ot, jd as p, Nn as pt, Pl as q, Zx as r, Aa as rt, ix as s, fi as st, rS as t, W as tt, zp as u, Xr as ut, bd as v, gt as vt, ad as w, be as wt, Sd as x, Oe as xt, pd as y, Ke as yt, _u as z };
|