@factorialco/f0-react 13.2.1 → 13.3.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-BGWiJFfA.js → ArchiveThumbnail-C983HhkS.js} +3 -3
- package/dist/{ArchiveViewer-gaakCGJ3.js → ArchiveViewer-FbFCVvzg.js} +5 -5
- package/dist/{ChatPostComposerDialog-GQrKR74F.js → ChatPostComposerDialog-nCBk-R6w.js} +3 -3
- package/dist/{CoachmarkProvider-Bdo8Y_D0.js → CoachmarkProvider-ClZ21hwe.js} +22569 -22569
- package/dist/{CodeThumbnail-Bm_GaLxm.js → CodeThumbnail-DC6Fapz1.js} +1 -1
- package/dist/{CodeViewer-Ia0NwKX_.js → CodeViewer-BiPZi_1v.js} +6 -6
- package/dist/{DocumentToolbar-D4KElA1V.js → DocumentToolbar-D8UEbOgN.js} +5 -5
- package/dist/{DocxViewer-C6otSnj3.js → DocxViewer-DWcuVQ-p.js} +3 -3
- package/dist/{F0AiProcessingOverlay-DMkI1tRu.js → F0AiProcessingOverlay-DZwUVW9l.js} +79 -79
- package/dist/{F0Alert-D664MgOC.js → F0Alert-B0X1NQZt.js} +13 -13
- package/dist/F0AudioPlayer-Bm0gqQE_.js +2 -0
- package/dist/{F0Button-Bo-Zw0Zx.js → F0Button-D77FmQ8C.js} +3 -3
- package/dist/{F0CanvasPanel-BWbAs38E.js → F0CanvasPanel-CJhaPJQu.js} +8176 -8176
- package/dist/{F0DocumentViewer-D8VcE-pQ.js → F0DocumentViewer-Bh3YTPo0.js} +4 -4
- package/dist/{F0DocumentViewer-DGk2W39u.js → F0DocumentViewer-BxLI6uSI.js} +1 -1
- package/dist/{F0Icon-P9uOVsGz.js → F0Icon-BNbi0D6w.js} +1 -1
- package/dist/{F0Map-C510FLet.js → F0Map-De-tzoLR.js} +45 -45
- package/dist/{F0Select-CzWp91j0.js → F0Select-B7ieIoT3.js} +8 -8
- package/dist/{F0Text-BG36S9Xx.js → F0Text-DviQkBfb.js} +2 -2
- package/dist/{F0VideoPlayer-C_fMkaxj.js → F0VideoPlayer-DUurEQQl.js} +8 -8
- package/dist/F0VideoPlayer-DrXizQ53.js +1 -0
- package/dist/{HtmlThumbnail-BiphE7Y5.js → HtmlThumbnail-CIVF0Blj.js} +1 -1
- package/dist/{HtmlViewer-DZHyuKz5.js → HtmlViewer-BOO3_ZIO.js} +9 -9
- package/dist/{LayoutGroup-DLtALSqH.js → LayoutGroup-tF3JJB3u.js} +1 -1
- package/dist/{Map-YloQD9VT.js → Map-CLpAJaWO.js} +10 -10
- package/dist/{PdfThumbnail-9X44csq5.js → PdfThumbnail-D7uDK81R.js} +1 -1
- package/dist/{PdfViewer-DtdRvpvP.js → PdfViewer-DsgPEXkU.js} +8 -8
- package/dist/{SandboxedHtmlFrame-DeAt348C.js → SandboxedHtmlFrame-B1M4shqP.js} +2 -2
- package/dist/{SheetViewer-_iq4uwXW.js → SheetViewer-CUX493Vk.js} +5 -5
- package/dist/{TextViewer-C7xx-4YQ.js → TextViewer-BmzjNF6r.js} +4 -4
- package/dist/ai.d.ts +3 -3
- package/dist/ai.js +4 -4
- package/dist/component-status.js +1 -1
- package/dist/{dist-C_W2CLtJ.js → dist-Bh73WT95.js} +4 -4
- package/dist/{dist-Ol7JA7z9.js → dist-ChMbkCVF.js} +1 -1
- package/dist/{dist-Do5FlVaY.js → dist-DgXiI4WF.js} +1 -1
- package/dist/experimental.d.ts +200 -7
- package/dist/experimental.js +5628 -4904
- package/dist/{exports-CebiqGLM.d.ts → exports-CcA3MJIQ.d.ts} +1 -1
- package/dist/f0.d.ts +4 -4
- package/dist/f0.js +761 -761
- package/dist/{highlight-izD68Eru.js → highlight-yZiopYgr.js} +1 -1
- package/dist/{i18n-provider-C_PTccYX.js → i18n-provider-DOsrN9vZ.js} +1 -1
- package/dist/{i18n-provider-defaults-JkDaKXzI.js → i18n-provider-defaults-DW-ORCam.js} +28 -0
- package/dist/{i18n-provider-defaults-DD3oVvPp.d.ts → i18n-provider-defaults-TuWORJa7.d.ts} +28 -0
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-CpTdsnxc.d.ts → index-CVwiBJ7Q.d.ts} +1 -1
- package/dist/{maplibre-CHP-aU_V.js → maplibre-AHkgKCQi.js} +1 -1
- package/dist/{pdfWorker-kyGjjW4X.js → pdfWorker-DcPe6nxA.js} +1 -1
- package/dist/{popover-DhWTWc7-.js → popover-CJEgjHEo.js} +1 -1
- package/dist/{scrollarea-pyluD6aV.js → scrollarea-CpmGfD8i.js} +3 -3
- package/dist/{skeleton-CyLv1Ytt.js → skeleton-B89BXlEW.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{toolbarStyles-stzlyka-.js → toolbarStyles-BHbEKlGW.js} +1 -1
- package/dist/{types-ei71RXBT.d.ts → types-DJqxacZz.d.ts} +2 -2
- package/dist/{useData-BmoyjoRL.js → useData-DjfhwI-2.js} +6 -6
- package/package.json +1 -1
- package/dist/F0AudioPlayer-CgoLw3-_.js +0 -2
- package/dist/F0VideoPlayer-BDUW3ILk.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-yZiopYgr.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-DOsrN9vZ.js";
|
|
2
|
+
import { t } from "./skeleton-B89BXlEW.js";
|
|
3
3
|
import { L as n } from "./tooltip-BX4dSfeL.js";
|
|
4
|
-
import {
|
|
5
|
-
import { xt as a } from "./F0Select-
|
|
4
|
+
import { Fc as r, Rr as i } from "./F0CanvasPanel-CJhaPJQu.js";
|
|
5
|
+
import { xt as a } from "./F0Select-B7ieIoT3.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-D8UEbOgN.js";
|
|
8
|
+
import { a as l, i as u, n as d, o as f, r as p, t as m } from "./highlight-yZiopYgr.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 {
|
|
3
|
-
import { z as n } from "./useData-
|
|
4
|
-
import { sr as r, t as i } from "./F0Select-
|
|
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-DOsrN9vZ.js";
|
|
2
|
+
import { oc as t } from "./F0CanvasPanel-CJhaPJQu.js";
|
|
3
|
+
import { z as n } from "./useData-DjfhwI-2.js";
|
|
4
|
+
import { sr as r, t as i } from "./F0Select-B7ieIoT3.js";
|
|
5
|
+
import { a, c as o, n as s, o as c, r as l, s as u, t as d } from "./toolbarStyles-BHbEKlGW.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-DOsrN9vZ.js";
|
|
2
|
+
import { t } from "./skeleton-B89BXlEW.js";
|
|
3
|
+
import { n, t as r } from "./DocumentToolbar-D8UEbOgN.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,15 +1,15 @@
|
|
|
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-DOsrN9vZ.js";
|
|
2
|
+
import { n, t as r } from "./skeleton-B89BXlEW.js";
|
|
3
3
|
import { L as i, R as a } from "./tooltip-BX4dSfeL.js";
|
|
4
|
-
import { R as o, T as s, U as c, h as l, n as u, r as d, t as f, wt as p, y as m } from "./F0Button-
|
|
5
|
-
import { $ as h, $o as g, $t as _, A as v, At as y, B as b, C as x, Ct as S, Ds as C, Fo as w, G as T, Go as E, Gt as D, H as O, Hc as ee, Io as k, K as A, Ka as j, Kt as M, Lt as N, M as P,
|
|
6
|
-
import { o as ht, t as H } from "./F0Icon-
|
|
7
|
-
import { t as gt } from "./i18n-provider-defaults-
|
|
8
|
-
import { C as _t, H as vt, I as yt, N as bt, U as xt, b as St, g as Ct, h as wt, k as Tt, l as Et, m as Dt } from "./useData-
|
|
9
|
-
import { $t as Ot, Er as kt, Mt as At, Sr as jt, Tn as Mt, Tt as Nt, _t as Pt, an as Ft, br as It, ct as Lt, gt as Rt, ht as zt, in as Bt, sn as Vt, wn as Ht, wr as Ut, xr as Wt } from "./F0Select-
|
|
4
|
+
import { R as o, T as s, U as c, h as l, n as u, r as d, t as f, wt as p, y as m } from "./F0Button-D77FmQ8C.js";
|
|
5
|
+
import { $ as h, $o as g, $t as _, A as v, At as y, B as b, C as x, Ct as S, Ds as C, Fo as w, G as T, Go as E, Gt as D, H as O, Hc as ee, Io as k, K as A, Ka as j, Kt as M, Lt as N, M as P, Ms as F, Mt as te, Nc as ne, Ni as re, No as I, Nt as ie, O as L, Ot as R, Po as ae, Pt as oe, Rr as se, Rt as z, S as ce, So as le, St as ue, Tr as de, Tt as fe, U as pe, Uc as me, V as he, Vt as ge, W as _e, Wt as ve, X as ye, Xt as be, Yo as xe, Z as Se, Za as Ce, Zo as we, Zt as Te, _i as Ee, _t as De, a as Oe, b as ke, bs as Ae, bt as je, co as Me, cs as Ne, dc as Pe, es as Fe, g as Ie, gi as Le, gt as Re, h as ze, hi as Be, hs as Ve, in as He, j as Ue, ji as We, k as Ge, ki as Ke, ko as qe, kr as Je, ln as Ye, m as Xe, mi as Ze, nt as Qe, oc as B, q as $e, qa as et, qt as tt, r as nt, rt, si as it, tt as V, uc as at, ut as ot, va as st, vo as ct, vs as lt, x as ut, y as dt, yr as ft, yt as pt, zr as mt } from "./F0CanvasPanel-CJhaPJQu.js";
|
|
6
|
+
import { o as ht, t as H } from "./F0Icon-BNbi0D6w.js";
|
|
7
|
+
import { t as gt } from "./i18n-provider-defaults-DW-ORCam.js";
|
|
8
|
+
import { C as _t, H as vt, I as yt, N as bt, U as xt, b as St, g as Ct, h as wt, k as Tt, l as Et, m as Dt } from "./useData-DjfhwI-2.js";
|
|
9
|
+
import { $t as Ot, Er as kt, Mt as At, Sr as jt, Tn as Mt, Tt as Nt, _t as Pt, an as Ft, br as It, ct as Lt, gt as Rt, ht as zt, in as Bt, sn as Vt, wn as Ht, wr as Ut, xr as Wt } from "./F0Select-B7ieIoT3.js";
|
|
10
10
|
import { t as Gt } from "./Ellipsis-CBouJQYY.js";
|
|
11
11
|
import { t as Kt } from "./ExternalLink-RdKU698E.js";
|
|
12
|
-
import { a as qt, gt as Jt, i as Yt, n as Xt, t as Zt } from "./popover-
|
|
12
|
+
import { a as qt, gt as Jt, i as Yt, n as Xt, t as Zt } from "./popover-CJEgjHEo.js";
|
|
13
13
|
import { a as Qt } from "./dist-Cuwaibqg.js";
|
|
14
14
|
import { createContext as $t, createElement as en, forwardRef as tn, memo as nn, useCallback as U, useContext as rn, useEffect as W, useId as an, useInsertionEffect as on, useLayoutEffect as sn, useMemo as G, useRef as K, useState as q } from "react";
|
|
15
15
|
import { Fragment as cn, jsx as J, jsxs as Y } from "react/jsx-runtime";
|
|
@@ -242,7 +242,7 @@ var xn = 14, Sn = 2.31, Cn = ({ percentage: e, tone: t }) => {
|
|
|
242
242
|
}), [e, s]), l = G(() => c.map(({ att: e, attachment: t }, n) => ({
|
|
243
243
|
file: t,
|
|
244
244
|
item: e.status === "uploaded" ? S(t, fe(n, t.url)) : null
|
|
245
|
-
})), [c]), u =
|
|
245
|
+
})), [c]), u = he(l, "composer"), d = c.map(({ att: e, attachment: t }) => ({
|
|
246
246
|
id: e.id,
|
|
247
247
|
content: /* @__PURE__ */ J(pe, {
|
|
248
248
|
attachment: t,
|
|
@@ -391,7 +391,7 @@ var xn = 14, Sn = 2.31, Cn = ({ percentage: e, tone: t }) => {
|
|
|
391
391
|
label: r.ai.creditWarning.dismiss ?? "",
|
|
392
392
|
size: "sm",
|
|
393
393
|
variant: "ghost",
|
|
394
|
-
icon:
|
|
394
|
+
icon: Pe,
|
|
395
395
|
hideLabel: !0,
|
|
396
396
|
onClick: e.onDismiss
|
|
397
397
|
}) : null]
|
|
@@ -426,7 +426,7 @@ var xn = 14, Sn = 2.31, Cn = ({ percentage: e, tone: t }) => {
|
|
|
426
426
|
variant: "ghost",
|
|
427
427
|
label: r.ai.removeQuote,
|
|
428
428
|
onClick: n,
|
|
429
|
-
icon:
|
|
429
|
+
icon: Pe,
|
|
430
430
|
hideLabel: !0,
|
|
431
431
|
size: "sm"
|
|
432
432
|
})
|
|
@@ -759,7 +759,7 @@ var $n = ({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placeholde
|
|
|
759
759
|
group: t,
|
|
760
760
|
prompt: e.prompt || e.title
|
|
761
761
|
}), M?.(e, t);
|
|
762
|
-
}, [he, M]), { attachedFiles: ve, fileInputRef: ye, onUploadFiles: be, acceptValue: xe, isAtMaxFiles: Se, maxFiles: Ce, processFiles: we, handleFileSelect: Te, handleRemoveFile: Ee, transientError: De, showTransientError: Oe } = Qn(y),
|
|
762
|
+
}, [he, M]), { attachedFiles: ve, fileInputRef: ye, onUploadFiles: be, acceptValue: xe, isAtMaxFiles: Se, maxFiles: Ce, processFiles: we, handleFileSelect: Te, handleRemoveFile: Ee, transientError: De, showTransientError: Oe } = Qn(y), ke = Jn({
|
|
763
763
|
searchPersons: w,
|
|
764
764
|
mentionSources: T
|
|
765
765
|
});
|
|
@@ -777,10 +777,10 @@ var $n = ({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placeholde
|
|
|
777
777
|
E(null);
|
|
778
778
|
};
|
|
779
779
|
}, [E, we]);
|
|
780
|
-
let
|
|
781
|
-
if (
|
|
780
|
+
let Ae = U((e) => void we(e), [we]), je = ve.filter((e) => e.status === "uploaded"), Me = ve.some((e) => e.status === "uploading"), Ne = ve.some((e) => e.status === "error"), Pe = !ce.isEmpty || je.length > 0, Fe = async ({ text: t, mentions: n }) => {
|
|
781
|
+
if (Ne) return Oe(I.ai.fileUploadBlockedSubmit), !1;
|
|
782
782
|
if (a && await a() === !1) return !1;
|
|
783
|
-
let r =
|
|
783
|
+
let r = je, i = r.flatMap((e) => e.uploadedFile ? [e.uploadedFile] : []), o = m, s = g;
|
|
784
784
|
o && h?.(null), s && v?.(null);
|
|
785
785
|
try {
|
|
786
786
|
await e({
|
|
@@ -794,21 +794,21 @@ var $n = ({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placeholde
|
|
|
794
794
|
}
|
|
795
795
|
for (let e of r) Ee(e.id);
|
|
796
796
|
return !0;
|
|
797
|
-
},
|
|
797
|
+
}, Ie = ae ? ae.prompt ?? ae.title : null, Le = Ie ? [Ie] : s ?? [], Re = N === "inside", ze = k && j && j.length > 0 && M ? /* @__PURE__ */ J(Gn, {
|
|
798
798
|
suggestions: j,
|
|
799
799
|
onItemClick: _e,
|
|
800
800
|
onItemHover: oe,
|
|
801
|
-
side:
|
|
802
|
-
reserveTwoRows: !
|
|
803
|
-
overflow:
|
|
804
|
-
}) : null,
|
|
801
|
+
side: Re ? "bottom" : "top",
|
|
802
|
+
reserveTwoRows: !Re,
|
|
803
|
+
overflow: Re ? "scroll" : "wrap"
|
|
804
|
+
}) : null, Be = !P || se || Pe || ce.recorder !== "idle", Ve = (e) => e instanceof Node ? ue.current?.contains(e) ? !0 : e instanceof Element && e.closest("[data-radix-popper-content-wrapper]") !== null : !1, He = () => {
|
|
805
805
|
de.current && clearTimeout(de.current), de.current = setTimeout(() => {
|
|
806
|
-
|
|
806
|
+
Ve(document.activeElement) || z(!1);
|
|
807
807
|
}, 0);
|
|
808
|
-
},
|
|
808
|
+
}, Ue = Re, We = Ue && P, Ge = We && !Be, Ke = Ue && ze ? /* @__PURE__ */ J("div", {
|
|
809
809
|
onClick: (e) => e.stopPropagation(),
|
|
810
|
-
children:
|
|
811
|
-
}) : void 0,
|
|
810
|
+
children: ze
|
|
811
|
+
}) : void 0, qe = {
|
|
812
812
|
duration: L ? 0 : .32,
|
|
813
813
|
ease: [
|
|
814
814
|
.4,
|
|
@@ -816,18 +816,18 @@ var $n = ({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placeholde
|
|
|
816
816
|
.2,
|
|
817
817
|
1
|
|
818
818
|
]
|
|
819
|
-
},
|
|
819
|
+
}, Je = k && A && !!F && F.length > 0, Ye = A && k, { motionProps: Xe } = bn(k, 160, .5);
|
|
820
820
|
return /* @__PURE__ */ Y(c.div, {
|
|
821
821
|
ref: re,
|
|
822
|
-
"data-composer-layout":
|
|
823
|
-
className: i("flex flex-col items-center gap-2", te === "default" && "px-4 pb-3 pt-2",
|
|
824
|
-
...A ?
|
|
822
|
+
"data-composer-layout": Ye ? "welcome" : "docked",
|
|
823
|
+
className: i("flex flex-col items-center gap-2", te === "default" && "px-4 pb-3 pt-2", Ye && "min-h-0 flex-1 justify-start -mt-20"),
|
|
824
|
+
...A ? Xe : {},
|
|
825
825
|
children: [
|
|
826
826
|
/* @__PURE__ */ Y("div", {
|
|
827
827
|
className: "flex w-full max-w-content flex-col gap-2",
|
|
828
|
-
children: [
|
|
828
|
+
children: [ze && !Re ? /* @__PURE__ */ J("div", { children: P ? /* @__PURE__ */ J(p, {
|
|
829
829
|
initial: !1,
|
|
830
|
-
children:
|
|
830
|
+
children: Be ? /* @__PURE__ */ J(c.div, {
|
|
831
831
|
className: "overflow-hidden",
|
|
832
832
|
initial: {
|
|
833
833
|
opacity: 0,
|
|
@@ -841,10 +841,10 @@ var $n = ({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placeholde
|
|
|
841
841
|
opacity: 0,
|
|
842
842
|
height: 0
|
|
843
843
|
},
|
|
844
|
-
transition:
|
|
845
|
-
children:
|
|
844
|
+
transition: qe,
|
|
845
|
+
children: ze
|
|
846
846
|
}, "welcome-suggestions") : null
|
|
847
|
-
}) :
|
|
847
|
+
}) : ze }) : null, /* @__PURE__ */ J(Fn, {
|
|
848
848
|
creditWarning: u,
|
|
849
849
|
children: /* @__PURE__ */ J(Qe, {
|
|
850
850
|
asForm: !0,
|
|
@@ -854,17 +854,17 @@ var $n = ({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placeholde
|
|
|
854
854
|
accent: fe,
|
|
855
855
|
replacement: fe ? f : null,
|
|
856
856
|
onSurfaceFocus: () => z(!0),
|
|
857
|
-
onSurfaceBlur:
|
|
857
|
+
onSurfaceBlur: He,
|
|
858
858
|
onStateChange: le,
|
|
859
|
-
onSend:
|
|
859
|
+
onSend: Fe,
|
|
860
860
|
inProgress: r,
|
|
861
861
|
onStop: n,
|
|
862
|
-
hasAttachments:
|
|
863
|
-
sendBlocked:
|
|
862
|
+
hasAttachments: je.length > 0,
|
|
863
|
+
sendBlocked: Me,
|
|
864
864
|
error: De,
|
|
865
865
|
role: "textbox",
|
|
866
866
|
name: ne,
|
|
867
|
-
placeholders:
|
|
867
|
+
placeholders: Le,
|
|
868
868
|
placeholdersPaused: r,
|
|
869
869
|
labels: {
|
|
870
870
|
placeholder: I.ai.inputPlaceholder,
|
|
@@ -880,15 +880,15 @@ var $n = ({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placeholde
|
|
|
880
880
|
mentionSuggestions: I.ai.mentions.suggestions
|
|
881
881
|
},
|
|
882
882
|
mentions: {
|
|
883
|
-
sources:
|
|
884
|
-
showGroupLabels:
|
|
883
|
+
sources: ke,
|
|
884
|
+
showGroupLabels: ke.length > 1
|
|
885
885
|
},
|
|
886
886
|
voice: C ? {
|
|
887
887
|
onTranscribe: C,
|
|
888
888
|
onPress: he?.onDictationStart,
|
|
889
889
|
onCancelled: he?.onDictationCancel
|
|
890
890
|
} : void 0,
|
|
891
|
-
onPasteFiles: y?.onUploadFiles ?
|
|
891
|
+
onPasteFiles: y?.onUploadFiles ? Ae : void 0,
|
|
892
892
|
pastePreferText: !0,
|
|
893
893
|
header: g ? /* @__PURE__ */ J(In, {
|
|
894
894
|
quote: g,
|
|
@@ -896,12 +896,12 @@ var $n = ({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placeholde
|
|
|
896
896
|
}) : null,
|
|
897
897
|
tray: /* @__PURE__ */ J(On, {
|
|
898
898
|
attachedFiles: ve,
|
|
899
|
-
isUploading:
|
|
899
|
+
isUploading: Me,
|
|
900
900
|
onRemove: Ee,
|
|
901
901
|
removeLabel: I.ai.removeFile,
|
|
902
902
|
reducedMotion: L
|
|
903
903
|
}),
|
|
904
|
-
leading:
|
|
904
|
+
leading: Ue ? /* @__PURE__ */ J("div", {
|
|
905
905
|
className: "flex shrink-0 self-center pl-3",
|
|
906
906
|
children: /* @__PURE__ */ J(_, {
|
|
907
907
|
size: "sm",
|
|
@@ -923,14 +923,14 @@ var $n = ({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placeholde
|
|
|
923
923
|
onClick: (e) => e.stopPropagation(),
|
|
924
924
|
children: b
|
|
925
925
|
}) : null] }) : void 0,
|
|
926
|
-
toolbarCenter:
|
|
927
|
-
collapsible:
|
|
928
|
-
collapsed:
|
|
926
|
+
toolbarCenter: Ke,
|
|
927
|
+
collapsible: We,
|
|
928
|
+
collapsed: Ge,
|
|
929
929
|
reducedMotion: L
|
|
930
930
|
})
|
|
931
931
|
})]
|
|
932
932
|
}),
|
|
933
|
-
|
|
933
|
+
Je ? /* @__PURE__ */ J("div", {
|
|
934
934
|
className: "w-full max-w-content pt-2",
|
|
935
935
|
children: /* @__PURE__ */ J(Ln, { cards: F })
|
|
936
936
|
}) : null,
|
|
@@ -976,7 +976,7 @@ var $n = ({ onSubmit: e, onStop: n, inProgress: r, onBeforeSubmit: a, placeholde
|
|
|
976
976
|
I.ai.clarifyingQuestion.navHint.cancel
|
|
977
977
|
] })
|
|
978
978
|
]
|
|
979
|
-
}, "clarifying-nav-hint") : (D?.text || O) && !
|
|
979
|
+
}, "clarifying-nav-hint") : (D?.text || O) && !Ye && /* @__PURE__ */ Y(c.div, {
|
|
980
980
|
className: i("flex w-full max-w-content flex-row items-center gap-1", O ? "justify-between" : "justify-center"),
|
|
981
981
|
initial: { opacity: 0 },
|
|
982
982
|
animate: { opacity: 1 },
|
|
@@ -1524,10 +1524,10 @@ function kr({ type: e, id: t, children: n }) {
|
|
|
1524
1524
|
//#endregion
|
|
1525
1525
|
//#region src/addons/ai/F0AiChat/components/markdownRenderers/components/Table.tsx
|
|
1526
1526
|
async function Ar(e, t, n) {
|
|
1527
|
-
let r =
|
|
1527
|
+
let r = Ue(e), i = t === "xlsx" ? await P([{
|
|
1528
1528
|
name: "Data",
|
|
1529
1529
|
rows: r
|
|
1530
|
-
}]) : await
|
|
1530
|
+
}]) : await Ge(r);
|
|
1531
1531
|
v(i, `${n}.${t}`);
|
|
1532
1532
|
}
|
|
1533
1533
|
function jr({ children: e, title: n, ...r }) {
|
|
@@ -2083,7 +2083,7 @@ var ji = 625, Mi = /* @__PURE__ */ new Set(), Ni = ({ documents: e, onOpenFile:
|
|
|
2083
2083
|
}
|
|
2084
2084
|
},
|
|
2085
2085
|
title: e.name,
|
|
2086
|
-
description: e.size ?
|
|
2086
|
+
description: e.size ? te(e.size) : ue(e.name, $r(e)),
|
|
2087
2087
|
isActive: n,
|
|
2088
2088
|
action: {
|
|
2089
2089
|
type: "open",
|
|
@@ -2108,7 +2108,7 @@ var ji = 625, Mi = /* @__PURE__ */ new Set(), Ni = ({ documents: e, onOpenFile:
|
|
|
2108
2108
|
e,
|
|
2109
2109
|
o,
|
|
2110
2110
|
l
|
|
2111
|
-
]), f = G(() => i === "compact" ? d : [...d].sort((e, t) => Ii[e.cls.bucket] - Ii[t.cls.bucket]), [d, i]), p =
|
|
2111
|
+
]), f = G(() => i === "compact" ? d : [...d].sort((e, t) => Ii[e.cls.bucket] - Ii[t.cls.bucket]), [d, i]), p = he(f, "transcript");
|
|
2112
2112
|
return e.length === 0 ? null : J(i === "compact" ? Hi : Vi, {
|
|
2113
2113
|
entries: d,
|
|
2114
2114
|
canvas: c,
|
|
@@ -2252,7 +2252,7 @@ var ji = 625, Mi = /* @__PURE__ */ new Set(), Ni = ({ documents: e, onOpenFile:
|
|
|
2252
2252
|
...e,
|
|
2253
2253
|
mimeType: a
|
|
2254
2254
|
},
|
|
2255
|
-
icon: a === "application/zip" ?
|
|
2255
|
+
icon: a === "application/zip" ? ne : void 0,
|
|
2256
2256
|
testId: `${Z}-file-tile`,
|
|
2257
2257
|
action: {
|
|
2258
2258
|
label: r.t("chat.downloadNamedFile", { name: e.name }),
|
|
@@ -2294,7 +2294,7 @@ var ji = 625, Mi = /* @__PURE__ */ new Set(), Ni = ({ documents: e, onOpenFile:
|
|
|
2294
2294
|
}) : null, /* @__PURE__ */ J(_e, {})]
|
|
2295
2295
|
});
|
|
2296
2296
|
}, qi = ({ images: e, onOpen: n, onImageError: r }) => {
|
|
2297
|
-
let a = t(), o = e.length === 1 ? e[0] : void 0, s = tt(o ? o.thumbnailUrl ?? o.url : void 0), c =
|
|
2297
|
+
let a = t(), o = e.length === 1 ? e[0] : void 0, s = tt(o ? o.thumbnailUrl ?? o.url : void 0), c = Ie(o && s.status === "ready" ? s.url : void 0, o) ?? void 0, l = o ? ze(c?.width, c?.height) : null;
|
|
2298
2298
|
return /* @__PURE__ */ J("div", {
|
|
2299
2299
|
style: l ? { width: l.width } : void 0,
|
|
2300
2300
|
className: i("grid grid-cols-2 overflow-hidden border border-solid border-f1-border-secondary", l ? "max-w-full" : ye, A, Pi),
|
|
@@ -2473,7 +2473,7 @@ var ta = $t(void 0), na = () => rn(ta), ra = (e) => /* @__PURE__ */ J(mt, {
|
|
|
2473
2473
|
return document.addEventListener("keydown", e), () => {
|
|
2474
2474
|
document.removeEventListener("keydown", e);
|
|
2475
2475
|
};
|
|
2476
|
-
}, [d]), /* @__PURE__ */ J(
|
|
2476
|
+
}, [d]), /* @__PURE__ */ J(Je, {
|
|
2477
2477
|
position: "center",
|
|
2478
2478
|
isOpen: !0,
|
|
2479
2479
|
onClose: f,
|
|
@@ -2625,7 +2625,7 @@ var ua = ({ content: e, targetMessage: n, onCopy: r }) => {
|
|
|
2625
2625
|
onOpenChange: (e) => {
|
|
2626
2626
|
s || (p || d(e), o?.(e));
|
|
2627
2627
|
},
|
|
2628
|
-
children: [/* @__PURE__ */ Y(
|
|
2628
|
+
children: [/* @__PURE__ */ Y(Le, {
|
|
2629
2629
|
disabled: s,
|
|
2630
2630
|
className: i("gap-1", s ? "flex w-full items-center text-base text-f1-foreground-secondary" : "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"),
|
|
2631
2631
|
children: [
|
|
@@ -2642,7 +2642,7 @@ var ua = ({ content: e, targetMessage: n, onCopy: r }) => {
|
|
|
2642
2642
|
}),
|
|
2643
2643
|
s ? null : /* @__PURE__ */ J(H, { icon: Wt })
|
|
2644
2644
|
]
|
|
2645
|
-
}), /* @__PURE__ */ J(
|
|
2645
|
+
}), /* @__PURE__ */ J(Be, {
|
|
2646
2646
|
forceMount: !0,
|
|
2647
2647
|
className: "data-[state=open]:mt-3",
|
|
2648
2648
|
children: /* @__PURE__ */ J(c.div, {
|
|
@@ -2698,7 +2698,7 @@ var ua = ({ content: e, targetMessage: n, onCopy: r }) => {
|
|
|
2698
2698
|
}, [r, s]);
|
|
2699
2699
|
let u = r ? o.ai.thoughtsGroupTitle : n ?? o.ai.thoughtsGroupTitle, d = e.length - 1, f = (e) => !r || i ? "completed" : e === d ? "executing" : "completed";
|
|
2700
2700
|
return /* @__PURE__ */ J(fa, {
|
|
2701
|
-
icon:
|
|
2701
|
+
icon: F,
|
|
2702
2702
|
title: u,
|
|
2703
2703
|
open: s,
|
|
2704
2704
|
onOpenChange: c,
|
|
@@ -2707,7 +2707,7 @@ var ua = ({ content: e, targetMessage: n, onCopy: r }) => {
|
|
|
2707
2707
|
className: "flex flex-col gap-3 pb-4",
|
|
2708
2708
|
children: e.map((t, n) => /* @__PURE__ */ Y("div", {
|
|
2709
2709
|
className: "relative",
|
|
2710
|
-
children: [/* @__PURE__ */ J(
|
|
2710
|
+
children: [/* @__PURE__ */ J(He, {
|
|
2711
2711
|
title: t,
|
|
2712
2712
|
status: f(n),
|
|
2713
2713
|
suffix: f(n) === "executing" ? /* @__PURE__ */ J(ha, { startedAt: a }) : void 0,
|
|
@@ -2985,13 +2985,13 @@ var ka = {
|
|
|
2985
2985
|
startedAt: r ? ae : null
|
|
2986
2986
|
}) : null,
|
|
2987
2987
|
t.assistantMessages.map((e, t) => s(e, t)),
|
|
2988
|
-
t.endIndicator === "thinking" ? /* @__PURE__ */ J(
|
|
2988
|
+
t.endIndicator === "thinking" ? /* @__PURE__ */ J(He, {
|
|
2989
2989
|
title: k.ai.thinking,
|
|
2990
2990
|
status: "executing",
|
|
2991
2991
|
suffix: /* @__PURE__ */ J(ha, { startedAt: ae })
|
|
2992
2992
|
}) : null,
|
|
2993
|
-
t.endIndicator === "activity" ? /* @__PURE__ */ J(
|
|
2994
|
-
t.endIndicator === "asking" ? /* @__PURE__ */ J(
|
|
2993
|
+
t.endIndicator === "activity" ? /* @__PURE__ */ J(He, { status: "writing" }) : null,
|
|
2994
|
+
t.endIndicator === "asking" ? /* @__PURE__ */ J(He, {
|
|
2995
2995
|
title: k.ai.askingQuestions,
|
|
2996
2996
|
status: "asking"
|
|
2997
2997
|
}) : null,
|
|
@@ -3337,7 +3337,7 @@ var Ga = [
|
|
|
3337
3337
|
onClick: c,
|
|
3338
3338
|
label: l.actions.cancel,
|
|
3339
3339
|
hideLabel: !0,
|
|
3340
|
-
icon:
|
|
3340
|
+
icon: Pe
|
|
3341
3341
|
})
|
|
3342
3342
|
]
|
|
3343
3343
|
});
|
|
@@ -3748,13 +3748,13 @@ var lo = class {
|
|
|
3748
3748
|
repeatType: "mirror"
|
|
3749
3749
|
};
|
|
3750
3750
|
function _o(e) {
|
|
3751
|
-
let [t, n] = q(e), r =
|
|
3751
|
+
let [t, n] = q(e), r = me(e), i = K(null);
|
|
3752
3752
|
return dn(r, "change", (e) => n(e)), {
|
|
3753
3753
|
value: t,
|
|
3754
3754
|
motionValue: r,
|
|
3755
3755
|
controls: i,
|
|
3756
3756
|
animate: U((e, t) => {
|
|
3757
|
-
i.current =
|
|
3757
|
+
i.current = ee(r, e, t);
|
|
3758
3758
|
}, [r])
|
|
3759
3759
|
};
|
|
3760
3760
|
}
|
|
@@ -4540,7 +4540,7 @@ var fs = ({ cx: e, cy: t, index: n, dataLength: r, color: i }) => n !== r - 1 ||
|
|
|
4540
4540
|
children: [/* @__PURE__ */ J(st, {
|
|
4541
4541
|
width: "100%",
|
|
4542
4542
|
height: "100%",
|
|
4543
|
-
children: /* @__PURE__ */ Y(
|
|
4543
|
+
children: /* @__PURE__ */ Y(Ke, {
|
|
4544
4544
|
data: e,
|
|
4545
4545
|
margin: {
|
|
4546
4546
|
top: 4,
|
|
@@ -4565,7 +4565,7 @@ var fs = ({ cx: e, cy: t, index: n, dataLength: r, color: i }) => n !== r - 1 ||
|
|
|
4565
4565
|
stopOpacity: .02
|
|
4566
4566
|
})]
|
|
4567
4567
|
}) }),
|
|
4568
|
-
/* @__PURE__ */ J(
|
|
4568
|
+
/* @__PURE__ */ J(We, {
|
|
4569
4569
|
hide: !0,
|
|
4570
4570
|
domain: ["dataMin - 1", "dataMax + 1"]
|
|
4571
4571
|
}),
|
|
@@ -4745,7 +4745,7 @@ var ws = ({ icon: e, title: t, children: n }) => {
|
|
|
4745
4745
|
className: "mb-1 w-full",
|
|
4746
4746
|
open: r,
|
|
4747
4747
|
onOpenChange: i,
|
|
4748
|
-
children: [/* @__PURE__ */ Y(
|
|
4748
|
+
children: [/* @__PURE__ */ Y(Le, {
|
|
4749
4749
|
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",
|
|
4750
4750
|
children: [
|
|
4751
4751
|
/* @__PURE__ */ J("span", {
|
|
@@ -4764,7 +4764,7 @@ var ws = ({ icon: e, title: t, children: n }) => {
|
|
|
4764
4764
|
className: "h-4 w-4 transition-transform duration-200"
|
|
4765
4765
|
})
|
|
4766
4766
|
]
|
|
4767
|
-
}), /* @__PURE__ */ J(
|
|
4767
|
+
}), /* @__PURE__ */ J(Be, {
|
|
4768
4768
|
forceMount: !0,
|
|
4769
4769
|
className: "data-[state=open]:mt-3",
|
|
4770
4770
|
children: /* @__PURE__ */ J(c.div, {
|
|
@@ -4832,10 +4832,10 @@ Ds.displayName = "F0AiMessageSources";
|
|
|
4832
4832
|
//#endregion
|
|
4833
4833
|
//#region src/addons/ai/F0AiTableCard/F0AiTableCard.tsx
|
|
4834
4834
|
async function Os(e, t, n) {
|
|
4835
|
-
let r =
|
|
4835
|
+
let r = Ue(e), i = t === "xlsx" ? await P([{
|
|
4836
4836
|
name: "Data",
|
|
4837
4837
|
rows: r
|
|
4838
|
-
}]) : await
|
|
4838
|
+
}]) : await Ge(r);
|
|
4839
4839
|
v(i, `${n}.${t}`);
|
|
4840
4840
|
}
|
|
4841
4841
|
function ks({ dataset: e, title: n, filename: r }) {
|
|
@@ -5019,7 +5019,7 @@ function As({ credits: e, trigger: n }) {
|
|
|
5019
5019
|
variant: "outlinePromote",
|
|
5020
5020
|
href: e.upgradePlanUrl,
|
|
5021
5021
|
label: r.t("ai.credits.upgradePlan"),
|
|
5022
|
-
icon:
|
|
5022
|
+
icon: qe
|
|
5023
5023
|
})]
|
|
5024
5024
|
}) : null]
|
|
5025
5025
|
})]
|
|
@@ -5178,7 +5178,7 @@ var Ps = ({ credits: e, employeeCredits: t, trigger: n }) => t ? /* @__PURE__ */
|
|
|
5178
5178
|
variant: "ghost",
|
|
5179
5179
|
hideLabel: !0,
|
|
5180
5180
|
label: x.ai.closeChat,
|
|
5181
|
-
icon:
|
|
5181
|
+
icon: Pe,
|
|
5182
5182
|
onClick: p
|
|
5183
5183
|
}), D = b?.map((e) => /* @__PURE__ */ J(u, {
|
|
5184
5184
|
variant: "ghost",
|
|
@@ -5269,7 +5269,7 @@ var Ps = ({ credits: e, employeeCredits: t, trigger: n }) => t ? /* @__PURE__ */
|
|
|
5269
5269
|
variant: "ghost",
|
|
5270
5270
|
hideLabel: !0,
|
|
5271
5271
|
label: x.ai.startNewChat,
|
|
5272
|
-
icon:
|
|
5272
|
+
icon: Ve,
|
|
5273
5273
|
onClick: m
|
|
5274
5274
|
}) : null,
|
|
5275
5275
|
/* @__PURE__ */ J(Ps, {
|
|
@@ -5319,11 +5319,11 @@ function zs(e) {
|
|
|
5319
5319
|
function Bs({ thread: e, isPinned: n, isActive: r = !1, isPending: o = !1, onSelect: s, onPin: c, onUnpin: l, onDelete: f, className: p }) {
|
|
5320
5320
|
let m = t(), h = Ot(), _ = G(() => [{
|
|
5321
5321
|
label: n ? m.ai.unpinChat : m.ai.pinChat,
|
|
5322
|
-
icon: n ? g :
|
|
5322
|
+
icon: n ? g : Fe,
|
|
5323
5323
|
onClick: () => n ? l(e.id) : c(e.id)
|
|
5324
5324
|
}, {
|
|
5325
5325
|
label: m.ai.deleteChat,
|
|
5326
|
-
icon:
|
|
5326
|
+
icon: at,
|
|
5327
5327
|
critical: !0,
|
|
5328
5328
|
onClick: () => f(e.id)
|
|
5329
5329
|
}], [
|
|
@@ -5527,7 +5527,7 @@ var Ks = ({ onClose: e, onSelectThread: n, onNewChat: r, threads: a, isLoading:
|
|
|
5527
5527
|
children: /* @__PURE__ */ Y("div", {
|
|
5528
5528
|
className: "flex w-full items-center gap-2",
|
|
5529
5529
|
children: [/* @__PURE__ */ J(H, {
|
|
5530
|
-
icon:
|
|
5530
|
+
icon: Ve,
|
|
5531
5531
|
color: "default",
|
|
5532
5532
|
size: "md"
|
|
5533
5533
|
}), /* @__PURE__ */ J(d, {
|
|
@@ -5570,7 +5570,7 @@ var Ks = ({ onClose: e, onSelectThread: n, onNewChat: r, threads: a, isLoading:
|
|
|
5570
5570
|
})] }), document.body);
|
|
5571
5571
|
}, qs = "f0-ai-pinned-threads";
|
|
5572
5572
|
function Js() {
|
|
5573
|
-
let e =
|
|
5573
|
+
let e = Re(qs, []);
|
|
5574
5574
|
return new Set(Array.isArray(e) ? e : []);
|
|
5575
5575
|
}
|
|
5576
5576
|
function Ys(e) {
|
|
@@ -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-DOsrN9vZ.js";
|
|
2
2
|
import { L as n } from "./tooltip-BX4dSfeL.js";
|
|
3
|
-
import { t as r } from "./F0Button-
|
|
4
|
-
import { Xa as i, _i as a,
|
|
5
|
-
import { o as c } from "./F0Icon-
|
|
6
|
-
import { g as l } from "./useData-
|
|
3
|
+
import { t as r } from "./F0Button-D77FmQ8C.js";
|
|
4
|
+
import { Xa as i, _i as a, dc as o, ns as s } from "./F0CanvasPanel-CJhaPJQu.js";
|
|
5
|
+
import { o as c } from "./F0Icon-BNbi0D6w.js";
|
|
6
|
+
import { g as l } from "./useData-DjfhwI-2.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
|
|
@@ -32,7 +32,7 @@ var p = c({
|
|
|
32
32
|
}), h = ({ onClose: e }) => {
|
|
33
33
|
let { actions: n } = t();
|
|
34
34
|
return /* @__PURE__ */ d(r, {
|
|
35
|
-
icon:
|
|
35
|
+
icon: o,
|
|
36
36
|
label: n.close,
|
|
37
37
|
hideLabel: !0,
|
|
38
38
|
variant: "outline",
|
|
@@ -40,7 +40,7 @@ var p = c({
|
|
|
40
40
|
onClick: e,
|
|
41
41
|
type: "button"
|
|
42
42
|
});
|
|
43
|
-
}, g = e(({ title: e, description: t, action:
|
|
43
|
+
}, g = e(({ title: e, description: t, action: o, link: c, icon: g, variant: _ = "neutral", onClose: v }) => {
|
|
44
44
|
let y = u(null);
|
|
45
45
|
return /* @__PURE__ */ d("div", {
|
|
46
46
|
ref: y,
|
|
@@ -57,7 +57,7 @@ var p = c({
|
|
|
57
57
|
children: [/* @__PURE__ */ d("div", {
|
|
58
58
|
className: "h-6 w-6 flex-shrink-0",
|
|
59
59
|
children: _ === "neutral" || _ === "transparent" ? /* @__PURE__ */ d(l, {
|
|
60
|
-
icon: g ||
|
|
60
|
+
icon: g || s,
|
|
61
61
|
size: "sm"
|
|
62
62
|
}) : /* @__PURE__ */ d(i, {
|
|
63
63
|
type: _,
|
|
@@ -73,7 +73,7 @@ var p = c({
|
|
|
73
73
|
children: t
|
|
74
74
|
}) : null]
|
|
75
75
|
})]
|
|
76
|
-
}),
|
|
76
|
+
}), o || c ? /* @__PURE__ */ f("div", {
|
|
77
77
|
className: "flex flex-shrink-0 flex-row items-center gap-3 pl-8 @xs:pl-0",
|
|
78
78
|
children: [c ? /* @__PURE__ */ d(a, {
|
|
79
79
|
href: c.href,
|
|
@@ -81,12 +81,12 @@ var p = c({
|
|
|
81
81
|
variant: "link",
|
|
82
82
|
size: "sm",
|
|
83
83
|
children: c.label
|
|
84
|
-
}) : null,
|
|
85
|
-
label:
|
|
84
|
+
}) : null, o ? /* @__PURE__ */ d(r, {
|
|
85
|
+
label: o.label,
|
|
86
86
|
variant: "outline",
|
|
87
|
-
onClick:
|
|
87
|
+
onClick: o.onClick,
|
|
88
88
|
size: "sm",
|
|
89
|
-
disabled:
|
|
89
|
+
disabled: o.disabled,
|
|
90
90
|
type: "button"
|
|
91
91
|
}) : null]
|
|
92
92
|
}) : null]
|
|
@@ -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-DOsrN9vZ.js";
|
|
3
|
+
import { n as c, t as l } from "./skeleton-B89BXlEW.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-BNbi0D6w.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";
|