@factorialco/f0-react 13.6.0 → 13.7.1
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-BI7pgnAC.js → ArchiveThumbnail-BP0t4Rfi.js} +1 -1
- package/dist/{ArchiveViewer-mhv-yGtw.js → ArchiveViewer-CU9adsgr.js} +2 -2
- package/dist/{ChatPostComposerDialog-DeP9Phs8.js → ChatPostComposerDialog-o1a3GnnA.js} +2 -2
- package/dist/{CoachmarkProvider-CuUjs6QC.js → CoachmarkProvider-BlsZ4V3B.js} +142 -83
- package/dist/{CodeThumbnail-BTH-wEBR.js → CodeThumbnail-ZwkABs75.js} +1 -1
- package/dist/{CodeViewer-B-WvPLtI.js → CodeViewer-BrmnIt6k.js} +3 -3
- package/dist/{DocumentToolbar-DS3PyBTl.js → DocumentToolbar-D_afy-RH.js} +1 -1
- package/dist/{DocxViewer-DXlgCicZ.js → DocxViewer-BptrjRiz.js} +1 -1
- package/dist/{F0AiProcessingOverlay-CJvxxlsA.js → F0AiProcessingOverlay-DwjvXNhv.js} +1 -1
- package/dist/{F0Alert-PwH28ciS.js → F0Alert-D5av-4_1.js} +1 -1
- package/dist/F0AudioPlayer-BINo7ymK.js +2 -0
- package/dist/{F0CanvasPanel-DxGAla5J.js → F0CanvasPanel-Dj85hg3n.js} +8 -12
- package/dist/{F0DocumentViewer-xr-beeYT.js → F0DocumentViewer-BfZZ_Nj4.js} +1 -1
- package/dist/{F0DocumentViewer-CnkhmQ7D.js → F0DocumentViewer-BtB3wnNC.js} +2 -2
- package/dist/{F0Map-tFtFJtP4.js → F0Map-DWnyL4oO.js} +3 -3
- package/dist/{F0VideoPlayer-DU_Cro6a.js → F0VideoPlayer-B7YJAF5w.js} +1 -1
- package/dist/F0VideoPlayer-yNQxunbp.js +1 -0
- package/dist/{HtmlViewer-D3wKqOzs.js → HtmlViewer-BZu6alyR.js} +3 -3
- package/dist/{Map-B8TeG7oj.js → Map-CVG9kKlw.js} +3 -3
- package/dist/{PdfThumbnail-kBD_x9E3.js → PdfThumbnail-DopWiXV1.js} +1 -1
- package/dist/{PdfViewer-CsIZKhkG.js → PdfViewer-CPWR6tv7.js} +2 -2
- package/dist/{SheetViewer-BjMKD7JX.js → SheetViewer-Dwu1GbVa.js} +2 -2
- package/dist/{TextViewer-DQWC74l9.js → TextViewer-DXd78D8P.js} +1 -1
- package/dist/ai.d.ts +2 -2
- package/dist/ai.js +2 -2
- package/dist/component-status.js +2 -2
- package/dist/experimental.d.ts +9 -4
- package/dist/experimental.js +4 -4
- package/dist/{exports-DBaGx_h5.d.ts → exports-DqmLMJgR.d.ts} +1 -1
- package/dist/f0.d.ts +3 -3
- package/dist/f0.js +6 -6
- package/dist/{highlight-D78L3lJD.js → highlight-CE5OJwQE.js} +1 -1
- package/dist/{index-BHnszH8I.d.ts → index-CMtDE2kR.d.ts} +2 -0
- package/dist/{maplibre-BkIfNzww.js → maplibre-B0ReOfxN.js} +1 -1
- package/dist/{pdfWorker-Bx_18LOR.js → pdfWorker-Q-062J_A.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{types-BYO_PD6I.d.ts → types-DNh-Ul2e.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/F0AudioPlayer-BFx1oHaA.js +0 -2
- package/dist/F0VideoPlayer-BFFYbcYS.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as e } from "./i18n-provider-aZCxX7lT.js";
|
|
2
|
-
import { Wt as t, lc as n, zt as r } from "./F0CanvasPanel-
|
|
2
|
+
import { Wt as t, lc as n, zt as r } from "./F0CanvasPanel-Dj85hg3n.js";
|
|
3
3
|
import { t as i } from "./F0Icon-Dr2xuQq2.js";
|
|
4
4
|
import { n as a, t as o } from "./LockLocked-gdodYvT_.js";
|
|
5
5
|
import { n as s, t as c } from "./zipTree-B2zUYl6b.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as e } from "./i18n-provider-aZCxX7lT.js";
|
|
2
2
|
import { t } from "./skeleton-C5JQM5pK.js";
|
|
3
|
-
import { Wt as n, lc as r } from "./F0CanvasPanel-
|
|
3
|
+
import { Wt as n, lc as r } from "./F0CanvasPanel-Dj85hg3n.js";
|
|
4
4
|
import { t as i } from "./F0Icon-Dr2xuQq2.js";
|
|
5
5
|
import { n as a, t as o } from "./LockLocked-gdodYvT_.js";
|
|
6
6
|
import { n as s, t as c } from "./zipTree-B2zUYl6b.js";
|
|
7
|
-
import { t as l } from "./DocumentToolbar-
|
|
7
|
+
import { t as l } from "./DocumentToolbar-D_afy-RH.js";
|
|
8
8
|
import { useEffect as u, useMemo as d, useState as f } from "react";
|
|
9
9
|
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
10
10
|
//#region src/addons/documents/F0DocumentViewer/components/ArchiveViewer.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as e } from "./CoachmarkProvider-
|
|
1
|
+
import { j as e } from "./CoachmarkProvider-BlsZ4V3B.js";
|
|
2
2
|
import { r as t } from "./i18n-provider-aZCxX7lT.js";
|
|
3
|
-
import { Vr as n } from "./F0CanvasPanel-
|
|
3
|
+
import { Vr as n } from "./F0CanvasPanel-Dj85hg3n.js";
|
|
4
4
|
import { a as r, f as i, i as a, u as o } from "./posts-i2uZfohA.js";
|
|
5
5
|
import { useCallback as s, useRef as c, useState as l } from "react";
|
|
6
6
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
@@ -4,7 +4,7 @@ import { n as c, t as l } from "./skeleton-C5JQM5pK.js";
|
|
|
4
4
|
import { L as u, R as d, i as f, r as p, t as m, u as h, z as g } from "./tooltip-BX4dSfeL.js";
|
|
5
5
|
import { B as _, Dt as v, E as y, Et as b, F as x, J as S, N as C, O as w, Ot as T, R as E, S as D, St as O, T as k, Tt as A, U as j, X as M, Y as N, _t as P, b as F, bt as I, dt as ee, g as te, h as L, ht as ne, k as re, n as ie, pt as ae, r as R, st as oe, t as z, vt as se, w as ce, wt as le, x as ue, xt as de, yt as fe } from "./F0Button-xbk-nrvL.js";
|
|
6
6
|
import { t as pe } from "./LayoutGroup-CXsoUZn_.js";
|
|
7
|
-
import { $i as me, $n as he, $o as ge, $s as _e, Aa as ve, Ac as ye, An as be, Ao as xe, Ar as Se, Ba as Ce, Bc as we, Bi as Te, Bn as Ee, Bo as De, Bs as Oe, Ca as ke, Cc as Ae, Cn as je, Co as Me, Cs as Ne, Da as Pe, Di as Fe, Dn as Ie, Do as Le, Dr as Re, Ea as ze, Ec as Be, Ei as Ve, En as He, Eo as Ue, Fa as We, Fn as Ge, Fr as Ke, Ga as qe, Gi as Je, Gn as Ye, Gs as Xe, Ha as Ze, Hc as Qe, Hi as $e, Ho as et, Hs as tt, Ia as nt, In as rt, Ir as it, Ja as at, Jc as ot, Ji as st, Jn as ct, Jr as lt, Ka as ut, Kc as dt, Ki as ft, Kn as pt, Kr as mt, Ks as ht, La as gt, Ln as _t, Ma as vt, Mi as yt, Mn as bt, Ms as xt, Na as St, Nn as Ct, No as wt, Nr as Tt, Oa as Et, Oc as Dt, On as Ot, Oo as kt, Pn as At, Pr as jt, Ps as Mt, Qi as Nt, Qn as Pt, Qs as Ft, Ra as It, Rc as Lt, Rn as Rt, Rr as zt, Rs as Bt, Sa as Vt, Sc as Ht, Sn as Ut, Sr as Wt, Ta as Gt, Ti as Kt, Tn as qt, To as Jt, Ua as Yt, Uc as Xt, Ui as Zt, Un as Qt, Uo as $t, Us as en, Va as tn, Vi as nn, Vo as rn, Vr as an, Wa as on, Wi as sn, Wn as cn, Wr as ln, Xa as un, Xc as dn, Xi as fn, Xn as pn, Ya as mn, Yc as hn, Yi as gn, Yn as _n, Yo as eee, Yr as vn, Ys as yn, Za as bn, Zc as xn, Zi as Sn, Zn as Cn, Zo as tee, Zr as nee, Zs as wn, _a as Tn, _i as ree, _o as iee, _r as aee, aa as oee, ar as En, ba as see, bi as cee, bo as Dn, br as On, bs as lee, ca as uee, ci as dee, co as kn, cr as An, cs as fee, da as pee, dc as mee, di as hee, do as gee, dr as _ee, ea as jn, ei as vee, el as yee, er as bee, fa as Mn, fc as xee, fn as See, fo as Cee, fr as Nn, ga as Pn, gc as wee, gi as Fn, gn as Tee, go as In, gr as Eee, ha as Dee, hi as Ln, ho as Oee, hr as kee, hs as Aee, ia as Rn, ir as jee, is as Mee, jo as Nee, jr as zn, js as Pee, ka as Bn, ki as Vn, kn as Hn, ko as Un, la as Wn, lo as Gn, lr as Kn, ls as qn, ma as Jn, mc as Fee, mi as Yn, mo as Iee, mr as Lee, ms as Ree, na as Xn, nc as zee, nr as Bee, ns as Vee, oa as Zn, oc as Hee, or as Uee, os as Wee, pa as Qn, pc as Gee, pn as Kee, po as qee, pr as Jee, qa as $n, qc as Yee, qi as Xee, qn as Zee, qr as Qee, qs as $ee, ra as er, rr as ete, rs as tte, sa as tr, si as nte, sr as rte, ta as nr, tc as rr, tl as ite, tr as ate, ua as ote, uc as ste, uo as cte, ur as lte, va as ute, vc as dte, vn as fte, vo as pte, vr as ir, wa as mte, wn as ar, wo as hte, ws as gte, xa as _te, xc as vte, xn as yte, xo as bte, xr as xte, yc as or, yi as sr, yr as Ste, ys as Cte, za as cr, zc as wte, zn as lr, zs as Tte } from "./F0CanvasPanel-
|
|
7
|
+
import { $i as me, $n as he, $o as ge, $s as _e, Aa as ve, Ac as ye, An as be, Ao as xe, Ar as Se, Ba as Ce, Bc as we, Bi as Te, Bn as Ee, Bo as De, Bs as Oe, Ca as ke, Cc as Ae, Cn as je, Co as Me, Cs as Ne, Da as Pe, Di as Fe, Dn as Ie, Do as Le, Dr as Re, Ea as ze, Ec as Be, Ei as Ve, En as He, Eo as Ue, Fa as We, Fn as Ge, Fr as Ke, Ga as qe, Gi as Je, Gn as Ye, Gs as Xe, Ha as Ze, Hc as Qe, Hi as $e, Ho as et, Hs as tt, Ia as nt, In as rt, Ir as it, Ja as at, Jc as ot, Ji as st, Jn as ct, Jr as lt, Ka as ut, Kc as dt, Ki as ft, Kn as pt, Kr as mt, Ks as ht, La as gt, Ln as _t, Ma as vt, Mi as yt, Mn as bt, Ms as xt, Na as St, Nn as Ct, No as wt, Nr as Tt, Oa as Et, Oc as Dt, On as Ot, Oo as kt, Pn as At, Pr as jt, Ps as Mt, Qi as Nt, Qn as Pt, Qs as Ft, Ra as It, Rc as Lt, Rn as Rt, Rr as zt, Rs as Bt, Sa as Vt, Sc as Ht, Sn as Ut, Sr as Wt, Ta as Gt, Ti as Kt, Tn as qt, To as Jt, Ua as Yt, Uc as Xt, Ui as Zt, Un as Qt, Uo as $t, Us as en, Va as tn, Vi as nn, Vo as rn, Vr as an, Wa as on, Wi as sn, Wn as cn, Wr as ln, Xa as un, Xc as dn, Xi as fn, Xn as pn, Ya as mn, Yc as hn, Yi as gn, Yn as _n, Yo as eee, Yr as vn, Ys as yn, Za as bn, Zc as xn, Zi as Sn, Zn as Cn, Zo as tee, Zr as nee, Zs as wn, _a as Tn, _i as ree, _o as iee, _r as aee, aa as oee, ar as En, ba as see, bi as cee, bo as Dn, br as On, bs as lee, ca as uee, ci as dee, co as kn, cr as An, cs as fee, da as pee, dc as mee, di as hee, do as gee, dr as _ee, ea as jn, ei as vee, el as yee, er as bee, fa as Mn, fc as xee, fn as See, fo as Cee, fr as Nn, ga as Pn, gc as wee, gi as Fn, gn as Tee, go as In, gr as Eee, ha as Dee, hi as Ln, ho as Oee, hr as kee, hs as Aee, ia as Rn, ir as jee, is as Mee, jo as Nee, jr as zn, js as Pee, ka as Bn, ki as Vn, kn as Hn, ko as Un, la as Wn, lo as Gn, lr as Kn, ls as qn, ma as Jn, mc as Fee, mi as Yn, mo as Iee, mr as Lee, ms as Ree, na as Xn, nc as zee, nr as Bee, ns as Vee, oa as Zn, oc as Hee, or as Uee, os as Wee, pa as Qn, pc as Gee, pn as Kee, po as qee, pr as Jee, qa as $n, qc as Yee, qi as Xee, qn as Zee, qr as Qee, qs as $ee, ra as er, rr as ete, rs as tte, sa as tr, si as nte, sr as rte, ta as nr, tc as rr, tl as ite, tr as ate, ua as ote, uc as ste, uo as cte, ur as lte, va as ute, vc as dte, vn as fte, vo as pte, vr as ir, wa as mte, wn as ar, wo as hte, ws as gte, xa as _te, xc as vte, xn as yte, xo as bte, xr as xte, yc as or, yi as sr, yr as Ste, ys as Cte, za as cr, zc as wte, zn as lr, zs as Tte } from "./F0CanvasPanel-Dj85hg3n.js";
|
|
8
8
|
import { n as ur, o as dr, r as fr, t as pr } from "./F0Icon-Dr2xuQq2.js";
|
|
9
9
|
import { B as Ete, F as Dte, H as mr, I as Ote, O as hr, P as gr, R as _r, S as kte, U as vr, V as yr, _ as br, b as Ate, c as jte, f as xr, g as Mte, h as Nte, i as Pte, k as Fte, n as Sr, o as Ite, r as Lte, v as Rte, y as Cr, z as wr } from "./useData-Af3QuQSP.js";
|
|
10
10
|
import { $ as Tr, $n as zte, $t as Bte, A as Vte, At as Hte, B as Ute, Bt as Wte, D as Gte, Dr as Er, Dt as Dr, E as Or, Er as kr, F as Ar, G as jr, Gt as Kte, Ht as Mr, I as Nr, It as qte, J as Jte, Jt as Yte, Kt as Pr, L as Fr, Mn as Xte, Nn as Zte, O as Qte, On as $te, Q as ene, Qt as Ir, Rt as Lr, S as tne, Sr as Rr, St as nne, T as rne, Tn as ine, Tr as ane, Tt as zr, Ut as Br, V as Vr, Vt as Hr, W as Ur, Wt as Wr, X as Gr, Xt as one, Y as Kr, Yt as sne, Z as qr, Zt as Jr, _t as cne, ar as Yr, at as lne, b as une, bn as dne, br as Xr, bt as fne, ct as Zr, d as pne, dt as mne, et as Qr, f as hne, fn as gne, g as _ne, gn as vne, gt as yne, hn as bne, ht as xne, it as Sne, j as Cne, l as wne, lr as $r, lt as Tne, m as Ene, mr as Dne, n as One, nn as kne, nt as Ane, on as jne, ot as Mne, p as ei, pr as Nne, qt as Pne, r as Fne, rn as ti, rt as Ine, sn as ni, sr as ri, t as ii, tn as ai, tt as oi, un as si, w as Lne, wn as ci, wr as Rne, x as zne, xr as li, xt as ui, y as Bne, z as di, zt as Vne } from "./F0Select-DD_AdtqV.js";
|
|
@@ -18,7 +18,7 @@ import { c as nre, l as Ai, n as ji, r as rre } from "./scrollarea-iuapGs70.js";
|
|
|
18
18
|
import { t as Mi } from "./F0Text-DzVOqGyO.js";
|
|
19
19
|
import { t as Ni } from "./dist-Cuwaibqg.js";
|
|
20
20
|
import { i as ire, r as are } from "./dist-Bvf79ox7.js";
|
|
21
|
-
import { t as Pi } from "./F0Alert-
|
|
21
|
+
import { t as Pi } from "./F0Alert-D5av-4_1.js";
|
|
22
22
|
import './RichText.css';import './CoachmarkProvider.css';/* empty css */
|
|
23
23
|
import { t as ore } from "./dist-Dt-cTb6D.js";
|
|
24
24
|
import * as Fi from "react";
|
|
@@ -82453,7 +82453,7 @@ var dY = ({ lanes: e, renderCard: t, getKey: n, onCreate: r, onMove: i, idProvid
|
|
|
82453
82453
|
})]
|
|
82454
82454
|
})
|
|
82455
82455
|
});
|
|
82456
|
-
}, z7e = dre(() => import("./Map-
|
|
82456
|
+
}, z7e = dre(() => import("./Map-CVG9kKlw.js").then((e) => ({ default: e.MapCollection }))), xY = {
|
|
82457
82457
|
table: {
|
|
82458
82458
|
name: "Table",
|
|
82459
82459
|
icon: tee,
|
|
@@ -119904,8 +119904,8 @@ var _At = (e, t) => (t === 1 ? e.one : e.other).replace("{{count}}", String(t)),
|
|
|
119904
119904
|
let n = setTimeout(() => r(!1), RAt);
|
|
119905
119905
|
return () => clearTimeout(n);
|
|
119906
119906
|
}, [e, t]), n;
|
|
119907
|
-
}, BAt = ({ target: e, container: t, onOutsideInteraction: n }) => {
|
|
119908
|
-
let
|
|
119907
|
+
}, BAt = ({ target: e, container: t, onOutsideInteraction: n, suspended: r = !1 }) => {
|
|
119908
|
+
let i = IAt(e), a = LAt(e), o = zAt(e, !L());
|
|
119909
119909
|
return H(() => {
|
|
119910
119910
|
if (typeof e.scrollIntoView != "function") return;
|
|
119911
119911
|
let t = () => e.scrollIntoView({
|
|
@@ -119918,27 +119918,43 @@ var _At = (e, t) => (t === 1 ? e.one : e.other).replace("{{count}}", String(t)),
|
|
|
119918
119918
|
}, [e]), typeof document > "u" ? null : qi(/* @__PURE__ */ K("div", {
|
|
119919
119919
|
"aria-hidden": !0,
|
|
119920
119920
|
"data-f0-coachmark-blocker": !0,
|
|
119921
|
-
className: "fixed inset-0 z-[
|
|
119921
|
+
className: u("fixed inset-0 z-[1239] cursor-default", r && "invisible"),
|
|
119922
119922
|
onPointerDown: (e) => {
|
|
119923
119923
|
e.preventDefault(), n();
|
|
119924
119924
|
},
|
|
119925
119925
|
onMouseDown: (e) => e.preventDefault(),
|
|
119926
119926
|
children: /* @__PURE__ */ K("div", {
|
|
119927
|
-
className: u("absolute", "shadow-[0_0_0_200vmax_hsl(var(--shadow)/0.5)]", "dark:shadow-[0_0_0_200vmax_hsl(var(--shadow)/0.85)]",
|
|
119927
|
+
className: u("absolute", "shadow-[0_0_0_200vmax_hsl(var(--shadow)/0.5)]", "dark:shadow-[0_0_0_200vmax_hsl(var(--shadow)/0.85)]", o && "transition-[top,left,width,height] duration-300 ease-out"),
|
|
119928
119928
|
style: {
|
|
119929
|
-
...
|
|
119930
|
-
borderRadius:
|
|
119929
|
+
...i,
|
|
119930
|
+
borderRadius: a
|
|
119931
119931
|
}
|
|
119932
119932
|
})
|
|
119933
119933
|
}), t ?? document.body);
|
|
119934
|
-
},
|
|
119934
|
+
}, VAt = "[role=\"dialog\"], [role=\"alertdialog\"]", HAt = (e) => e.dataset.state !== "closed" && !e.closest("[data-radix-popper-content-wrapper]"), UAt = () => [...document.querySelectorAll(VAt)].some(HAt), WAt = () => {
|
|
119935
|
+
let [e, t] = G(() => typeof document < "u" && UAt());
|
|
119936
|
+
return H(() => {
|
|
119937
|
+
if (typeof MutationObserver != "function") return;
|
|
119938
|
+
let e = () => t(UAt());
|
|
119939
|
+
e();
|
|
119940
|
+
let n = new MutationObserver(e);
|
|
119941
|
+
return n.observe(document.body, {
|
|
119942
|
+
childList: !0,
|
|
119943
|
+
subtree: !0,
|
|
119944
|
+
attributes: !0,
|
|
119945
|
+
attributeFilter: ["data-state"]
|
|
119946
|
+
}), () => n.disconnect();
|
|
119947
|
+
}, []), e;
|
|
119948
|
+
}, U9 = 12, W9 = 6, GAt = [
|
|
119935
119949
|
"0px",
|
|
119936
119950
|
"-6px",
|
|
119937
119951
|
"6px",
|
|
119938
119952
|
"-4px",
|
|
119939
119953
|
"4px",
|
|
119940
119954
|
"0px"
|
|
119941
|
-
],
|
|
119955
|
+
], KAt = 320, qAt = "textarea, input:not([type='hidden']), [contenteditable='true']", JAt = `${qAt}, select, button, a[href], [tabindex]:not([tabindex='-1'])`, YAt = (e) => e.matches(JAt) ? e : e.querySelector(qAt) ?? e.querySelector(JAt), XAt = (e) => {
|
|
119956
|
+
e && e !== document.body && document.contains(e) && e.focus();
|
|
119957
|
+
}, ZAt = (e, t, n) => {
|
|
119942
119958
|
let [r, i] = G(!1), a = W(!1);
|
|
119943
119959
|
return H(() => {
|
|
119944
119960
|
a.current = !1, i(!1);
|
|
@@ -119959,100 +119975,137 @@ var _At = (e, t) => (t === 1 ? e.one : e.other).replace("{{count}}", String(t)),
|
|
|
119959
119975
|
t,
|
|
119960
119976
|
n
|
|
119961
119977
|
]), r;
|
|
119962
|
-
},
|
|
119978
|
+
}, QAt = () => U(() => ({ current: { getBoundingClientRect: () => new DOMRect(window.innerWidth / 2, window.innerHeight / 2, 0, 0) } }), []), $At = (e) => {
|
|
119963
119979
|
let t = L();
|
|
119964
119980
|
return V(() => {
|
|
119965
119981
|
let n = e.current;
|
|
119966
|
-
n && !t && typeof n.animate == "function" && n.animate(
|
|
119967
|
-
duration:
|
|
119982
|
+
n && !t && typeof n.animate == "function" && n.animate(GAt.map((e) => ({ translate: e })), {
|
|
119983
|
+
duration: KAt,
|
|
119968
119984
|
easing: "ease-in-out"
|
|
119969
119985
|
});
|
|
119970
119986
|
}, [e, t]);
|
|
119971
|
-
},
|
|
119972
|
-
|
|
119973
|
-
|
|
119974
|
-
|
|
119987
|
+
}, ejt = ({ step: e }) => /* @__PURE__ */ q("div", {
|
|
119988
|
+
className: "flex flex-row items-center gap-1.5",
|
|
119989
|
+
children: [/* @__PURE__ */ q("span", {
|
|
119990
|
+
className: "sr-only",
|
|
119991
|
+
children: [
|
|
119992
|
+
e.current,
|
|
119993
|
+
"/",
|
|
119994
|
+
e.total
|
|
119995
|
+
]
|
|
119996
|
+
}), Array.from({ length: e.total }, (t, n) => /* @__PURE__ */ K("span", {
|
|
119997
|
+
"aria-hidden": !0,
|
|
119998
|
+
className: u("size-1.5 rounded-full bg-current transition-colors", n + 1 === e.current ? "text-f1-foreground-inverse" : "text-f1-foreground-inverse-secondary opacity-40")
|
|
119999
|
+
}, n))]
|
|
120000
|
+
}), tjt = ({ onBack: e, step: t, label: n, actionIcon: r, onAction: i }) => {
|
|
120001
|
+
let a = o();
|
|
120002
|
+
return /* @__PURE__ */ q("div", {
|
|
120003
|
+
className: "grid grid-cols-[1fr_auto_1fr] items-center gap-3",
|
|
120004
|
+
children: [
|
|
120005
|
+
/* @__PURE__ */ K("div", {
|
|
120006
|
+
className: "flex min-w-0 justify-start",
|
|
120007
|
+
children: e ? /* @__PURE__ */ K(ie, {
|
|
120008
|
+
variant: "outline",
|
|
120009
|
+
label: a.actions.back,
|
|
120010
|
+
onClick: e
|
|
120011
|
+
}) : null
|
|
120012
|
+
}),
|
|
120013
|
+
/* @__PURE__ */ K("div", {
|
|
120014
|
+
className: "flex justify-center",
|
|
120015
|
+
children: t ? /* @__PURE__ */ K(ejt, { step: t }) : null
|
|
120016
|
+
}),
|
|
120017
|
+
/* @__PURE__ */ K("div", {
|
|
120018
|
+
className: "flex min-w-0 justify-end",
|
|
120019
|
+
children: /* @__PURE__ */ K(ie, {
|
|
120020
|
+
variant: "outline",
|
|
120021
|
+
label: n,
|
|
120022
|
+
icon: r,
|
|
120023
|
+
onClick: i
|
|
120024
|
+
})
|
|
120025
|
+
})
|
|
120026
|
+
]
|
|
120027
|
+
});
|
|
120028
|
+
}, njt = ({ target: e, title: t, description: n, actionLabel: r, actionIcon: i, onAction: a, onBack: s, onClose: c, step: l, arrow: d = !0, side: f = "bottom", align: p = "center", sideOffset: m = d ? 8 : 4, container: h, overlay: g = !1, onOutsideInteraction: _, leaving: v = !1, focusTarget: y = !1 }) => {
|
|
120029
|
+
let b = o(), x = W(null), S = W(null), C = $At(x), w = ZAt(x, l?.current, e), T = QAt(), E = WAt(), D = () => {
|
|
120030
|
+
E || ((y ? YAt(e) : null) ?? x.current)?.focus();
|
|
120031
|
+
}, O = Ui(), k = `${O}-title`, A = `${O}-description`, j = U(() => ({ current: e }), [e]), M = W(l?.current);
|
|
119975
120032
|
H(() => {
|
|
119976
|
-
|
|
119977
|
-
}, [
|
|
119978
|
-
let
|
|
120033
|
+
M.current !== l?.current && (M.current = l?.current, D());
|
|
120034
|
+
}, [l?.current]);
|
|
120035
|
+
let N = W(E);
|
|
120036
|
+
H(() => {
|
|
120037
|
+
N.current !== E && (N.current = E, E || D());
|
|
120038
|
+
}, [E]);
|
|
120039
|
+
let P = !l || l.current >= l.total, F = r ?? (P ? b.coachmark.done : b.coachmark.next);
|
|
119979
120040
|
return /* @__PURE__ */ q(Di, {
|
|
119980
120041
|
open: !0,
|
|
119981
120042
|
onOpenChange: (e) => {
|
|
119982
|
-
e ||
|
|
120043
|
+
e || c();
|
|
119983
120044
|
},
|
|
119984
120045
|
children: [
|
|
119985
|
-
/* @__PURE__ */ K(Qne, { virtualRef:
|
|
119986
|
-
|
|
120046
|
+
/* @__PURE__ */ K(Qne, { virtualRef: w ? T : j }),
|
|
120047
|
+
g ? /* @__PURE__ */ K(BAt, {
|
|
119987
120048
|
target: e,
|
|
119988
|
-
container:
|
|
120049
|
+
container: h,
|
|
120050
|
+
suspended: E,
|
|
119989
120051
|
onOutsideInteraction: () => {
|
|
119990
|
-
|
|
120052
|
+
C(), _?.();
|
|
119991
120053
|
}
|
|
119992
120054
|
}) : null,
|
|
119993
120055
|
/* @__PURE__ */ q(Si, {
|
|
119994
|
-
ref:
|
|
119995
|
-
container:
|
|
119996
|
-
side:
|
|
119997
|
-
align:
|
|
119998
|
-
sideOffset:
|
|
120056
|
+
ref: x,
|
|
120057
|
+
container: h,
|
|
120058
|
+
side: w ? "bottom" : f,
|
|
120059
|
+
align: w ? "center" : p,
|
|
120060
|
+
sideOffset: w ? 0 : m,
|
|
119999
120061
|
collisionPadding: 8,
|
|
120000
|
-
"data-coachmark-centred":
|
|
120062
|
+
"data-coachmark-centred": w || void 0,
|
|
120001
120063
|
tabIndex: -1,
|
|
120002
|
-
"aria-labelledby":
|
|
120003
|
-
"aria-describedby": n ?
|
|
120064
|
+
"aria-labelledby": k,
|
|
120065
|
+
"aria-describedby": n ? A : void 0,
|
|
120004
120066
|
onOpenAutoFocus: (e) => {
|
|
120005
|
-
e.preventDefault(),
|
|
120067
|
+
e.preventDefault(), S.current = document.activeElement, D();
|
|
120006
120068
|
},
|
|
120007
120069
|
onCloseAutoFocus: (e) => {
|
|
120008
120070
|
e.preventDefault();
|
|
120009
|
-
let t =
|
|
120010
|
-
|
|
120071
|
+
let t = S.current;
|
|
120072
|
+
S.current = null, XAt(t);
|
|
120011
120073
|
},
|
|
120012
120074
|
onInteractOutside: (e) => e.preventDefault(),
|
|
120013
|
-
className: u("w-72 overflow-visible rounded-lg border-none p-4", "flex flex-col", "shadow-lg backdrop-blur-sm", "bg-f1-background-inverse text-f1-foreground-inverse", "dark:bg-f1-background-tertiary",
|
|
120075
|
+
className: u("z-[1240] w-72 overflow-visible rounded-lg border-none p-4", "flex flex-col", "shadow-lg backdrop-blur-sm", "bg-f1-background-inverse text-f1-foreground-inverse", "dark:bg-f1-background-tertiary", g && "dark:bg-f1-background-secondary", "transition-opacity", v ? "opacity-0 duration-150" : "opacity-100 duration-200", E && "invisible"),
|
|
120014
120076
|
children: [/* @__PURE__ */ q("div", {
|
|
120015
120077
|
"data-coachmark-body": !0,
|
|
120016
|
-
className: "dark flex min-h-0 flex-col gap-
|
|
120078
|
+
className: "dark flex min-h-0 flex-col gap-6 overflow-y-auto",
|
|
120017
120079
|
children: [/* @__PURE__ */ q("div", {
|
|
120018
|
-
className: "flex flex-col gap-
|
|
120080
|
+
className: "flex flex-col gap-0.5",
|
|
120019
120081
|
children: [/* @__PURE__ */ q("div", {
|
|
120020
120082
|
className: "flex flex-row items-start justify-between gap-2",
|
|
120021
120083
|
children: [/* @__PURE__ */ K("p", {
|
|
120022
|
-
id:
|
|
120084
|
+
id: k,
|
|
120023
120085
|
className: "font-semibold",
|
|
120024
120086
|
children: t
|
|
120025
120087
|
}), /* @__PURE__ */ K(ie, {
|
|
120026
|
-
variant: "
|
|
120088
|
+
variant: "ghost",
|
|
120027
120089
|
icon: Ae,
|
|
120028
120090
|
size: "sm",
|
|
120029
120091
|
hideLabel: !0,
|
|
120030
|
-
onClick:
|
|
120031
|
-
label:
|
|
120092
|
+
onClick: c,
|
|
120093
|
+
label: b.actions.close,
|
|
120032
120094
|
className: "flex-shrink-0"
|
|
120033
120095
|
})]
|
|
120034
120096
|
}), n ? /* @__PURE__ */ K("p", {
|
|
120035
|
-
id:
|
|
120097
|
+
id: A,
|
|
120036
120098
|
className: "font-normal text-f1-foreground-inverse-secondary",
|
|
120037
120099
|
children: n
|
|
120038
120100
|
}) : null]
|
|
120039
|
-
}), /* @__PURE__ */
|
|
120040
|
-
|
|
120041
|
-
|
|
120042
|
-
|
|
120043
|
-
|
|
120044
|
-
|
|
120045
|
-
"/",
|
|
120046
|
-
s.total
|
|
120047
|
-
]
|
|
120048
|
-
}) : null, /* @__PURE__ */ K(ie, {
|
|
120049
|
-
variant: "outline",
|
|
120050
|
-
label: j,
|
|
120051
|
-
onClick: i,
|
|
120052
|
-
className: "ml-auto"
|
|
120053
|
-
})]
|
|
120101
|
+
}), /* @__PURE__ */ K(tjt, {
|
|
120102
|
+
onBack: s,
|
|
120103
|
+
step: l,
|
|
120104
|
+
label: F,
|
|
120105
|
+
actionIcon: i,
|
|
120106
|
+
onAction: a
|
|
120054
120107
|
})]
|
|
120055
|
-
}),
|
|
120108
|
+
}), d && !w ? /* @__PURE__ */ K($ne, {
|
|
120056
120109
|
asChild: !0,
|
|
120057
120110
|
width: U9,
|
|
120058
120111
|
height: W9,
|
|
@@ -120068,10 +120121,10 @@ var _At = (e, t) => (t === 1 ? e.one : e.other).replace("{{count}}", String(t)),
|
|
|
120068
120121
|
]
|
|
120069
120122
|
});
|
|
120070
120123
|
};
|
|
120071
|
-
|
|
120072
|
-
var
|
|
120124
|
+
njt.displayName = "F0Coachmark";
|
|
120125
|
+
var rjt = c("F0Coachmark", njt), G9 = [], K9 = G9, q9 = /* @__PURE__ */ new Set(), ijt = 0, J9 = /* @__PURE__ */ new Set(), Y9 = /* @__PURE__ */ new Set(), X9 = () => {
|
|
120073
120126
|
for (let e of q9) e();
|
|
120074
|
-
},
|
|
120127
|
+
}, ajt = () => {
|
|
120075
120128
|
for (let e of Y9) e();
|
|
120076
120129
|
}, Z9 = {
|
|
120077
120130
|
subscribe(e) {
|
|
@@ -120100,12 +120153,12 @@ var XAt = c("F0Coachmark", YAt), G9 = [], K9 = G9, q9 = /* @__PURE__ */ new Set(
|
|
|
120100
120153
|
K9.length !== 0 && (K9 = G9, X9());
|
|
120101
120154
|
},
|
|
120102
120155
|
acquireRenderer() {
|
|
120103
|
-
|
|
120104
|
-
let e =
|
|
120105
|
-
return J9.add(e),
|
|
120156
|
+
ijt += 1;
|
|
120157
|
+
let e = ijt;
|
|
120158
|
+
return J9.add(e), ajt(), {
|
|
120106
120159
|
id: e,
|
|
120107
120160
|
release() {
|
|
120108
|
-
J9.delete(e),
|
|
120161
|
+
J9.delete(e), ajt();
|
|
120109
120162
|
}
|
|
120110
120163
|
};
|
|
120111
120164
|
},
|
|
@@ -120122,7 +120175,7 @@ var XAt = c("F0Coachmark", YAt), G9 = [], K9 = G9, q9 = /* @__PURE__ */ new Set(
|
|
|
120122
120175
|
hasProvider() {
|
|
120123
120176
|
return J9.size > 0;
|
|
120124
120177
|
}
|
|
120125
|
-
},
|
|
120178
|
+
}, ojt = process.env.NODE_ENV !== "production", Q9 = (e) => typeof e.checkVisibility != "function" || e.checkVisibility(), $9 = (e) => typeof e == "string" ? [...document.querySelectorAll(e)].find(Q9) ?? null : e.isConnected && Q9(e) ? e : null, sjt = (e) => typeof e == "string" ? [...document.querySelectorAll(e)].filter(Q9).length : 1, cjt = (e) => {
|
|
120126
120179
|
let [t, n] = G(null), r = W(null);
|
|
120127
120180
|
return H(() => {
|
|
120128
120181
|
let t = (e) => {
|
|
@@ -120132,9 +120185,9 @@ var XAt = c("F0Coachmark", YAt), G9 = [], K9 = G9, q9 = /* @__PURE__ */ new Set(
|
|
|
120132
120185
|
t(null);
|
|
120133
120186
|
return;
|
|
120134
120187
|
}
|
|
120135
|
-
if (t($9(e)),
|
|
120188
|
+
if (t($9(e)), ojt) {
|
|
120136
120189
|
r.current === null && typeof e == "string" && console.warn(`[f0] coachmarks: no element matches the selector "${e}" yet. The coachmark will show as soon as one does.`);
|
|
120137
|
-
let t =
|
|
120190
|
+
let t = sjt(e);
|
|
120138
120191
|
t > 1 && console.warn(`[f0] coachmarks: the selector "${String(e)}" matched ${t} elements. Anchoring to the first one — use a selector that matches exactly one.`);
|
|
120139
120192
|
}
|
|
120140
120193
|
let i = new MutationObserver(() => t($9(e)));
|
|
@@ -120145,27 +120198,32 @@ var XAt = c("F0Coachmark", YAt), G9 = [], K9 = G9, q9 = /* @__PURE__ */ new Set(
|
|
|
120145
120198
|
attributeFilter: ["hidden"]
|
|
120146
120199
|
}), () => i.disconnect();
|
|
120147
120200
|
}, [e]), t;
|
|
120148
|
-
},
|
|
120201
|
+
}, ljt = 5, ujt = 150, djt = ({ item: e, container: t }) => {
|
|
120149
120202
|
let [n, r] = G(0), [i, a] = G(!1), o = W(), s = L(), c = Math.min(n, e.steps.length - 1), l = e.steps[c], u = c === e.steps.length - 1;
|
|
120150
120203
|
H(() => () => clearTimeout(o.current), []);
|
|
120151
120204
|
let d = (e) => {
|
|
120152
|
-
s ? r(e) : (a(!0), o.current = setTimeout(() => {
|
|
120205
|
+
clearTimeout(o.current), s ? r(e) : (a(!0), o.current = setTimeout(() => {
|
|
120153
120206
|
r(e), a(!1);
|
|
120154
|
-
},
|
|
120155
|
-
}, f =
|
|
120207
|
+
}, ujt));
|
|
120208
|
+
}, f = cjt(l.targetElement), p = W(0), m = W(/* @__PURE__ */ new Set());
|
|
120209
|
+
H(() => {
|
|
120210
|
+
m.current = /* @__PURE__ */ new Set();
|
|
120211
|
+
}, [e.steps]);
|
|
120212
|
+
let h = e.skipAfterOutsideClicks ?? ljt, g = () => Z9.removeItem(e.id), _ = (t) => {
|
|
120156
120213
|
e.onEnd?.({
|
|
120157
120214
|
reason: t,
|
|
120158
120215
|
step: c + 1,
|
|
120159
120216
|
totalSteps: e.steps.length,
|
|
120160
120217
|
outsidePresses: p.current
|
|
120161
|
-
}),
|
|
120218
|
+
}), g();
|
|
120162
120219
|
};
|
|
120163
|
-
return f ? /* @__PURE__ */ K(
|
|
120220
|
+
return f ? /* @__PURE__ */ K(rjt, {
|
|
120164
120221
|
target: f,
|
|
120165
120222
|
container: t,
|
|
120166
120223
|
title: l.title,
|
|
120167
120224
|
description: l.description,
|
|
120168
120225
|
actionLabel: l.action?.label,
|
|
120226
|
+
actionIcon: l.action?.icon,
|
|
120169
120227
|
arrow: l.arrow,
|
|
120170
120228
|
side: l.side,
|
|
120171
120229
|
align: l.align,
|
|
@@ -120175,19 +120233,20 @@ var XAt = c("F0Coachmark", YAt), G9 = [], K9 = G9, q9 = /* @__PURE__ */ new Set(
|
|
|
120175
120233
|
total: e.steps.length
|
|
120176
120234
|
} : void 0,
|
|
120177
120235
|
onAction: () => {
|
|
120178
|
-
l.action?.onClick?.(), u ? (e.onComplete?.(),
|
|
120236
|
+
m.current.has(c) || (m.current.add(c), l.action?.onClick?.()), u ? (e.onComplete?.(), _("completed")) : d(c + 1);
|
|
120179
120237
|
},
|
|
120238
|
+
onBack: c > 0 ? () => d(c - 1) : void 0,
|
|
120180
120239
|
onClose: () => {
|
|
120181
|
-
e.onDismiss?.(),
|
|
120240
|
+
e.onDismiss?.(), _("dismissed");
|
|
120182
120241
|
},
|
|
120183
120242
|
overlay: e.overlay,
|
|
120184
120243
|
leaving: i,
|
|
120185
120244
|
focusTarget: l.focusTarget,
|
|
120186
120245
|
onOutsideInteraction: () => {
|
|
120187
|
-
p.current += 1, !(
|
|
120246
|
+
p.current += 1, !(h <= 0 || p.current < h) && (e.onDismiss?.(), _("skipped"));
|
|
120188
120247
|
}
|
|
120189
120248
|
}) : null;
|
|
120190
|
-
},
|
|
120249
|
+
}, fjt = ({ children: e, portalTarget: t = "#f0-overlay-root" }) => {
|
|
120191
120250
|
let n = mre(Z9.subscribe, Z9.getSnapshot, Z9.getServerSnapshot), r = W(null), i = mre(Z9.subscribeRenderer, Z9.getActiveRendererId, () => null);
|
|
120192
120251
|
H(() => {
|
|
120193
120252
|
let { id: e, release: t } = Z9.acquireRenderer();
|
|
@@ -120198,10 +120257,10 @@ var XAt = c("F0Coachmark", YAt), G9 = [], K9 = G9, q9 = /* @__PURE__ */ new Set(
|
|
|
120198
120257
|
typeof document < "u" && s(document.querySelector(t));
|
|
120199
120258
|
}, [t]);
|
|
120200
120259
|
let c = n[0];
|
|
120201
|
-
return /* @__PURE__ */ q(Ki, { children: [a && c ? /* @__PURE__ */ K(
|
|
120260
|
+
return /* @__PURE__ */ q(Ki, { children: [a && c ? /* @__PURE__ */ K(djt, {
|
|
120202
120261
|
item: c,
|
|
120203
120262
|
container: o
|
|
120204
120263
|
}, c.id) : null, e] });
|
|
120205
120264
|
};
|
|
120206
120265
|
//#endregion
|
|
120207
|
-
export { E2 as $, YF as $n, Uo as $r, FB as $t, XSt as A, CL as An, Rue as Ar, rY as At, $6 as B, AI as Bn, Sl as Br, vH as Bt, Wwt as C, Pa as Ci, PL as Cn, Xue as Cr, W7e as Ct, zCt as D, jL as Dn, Iue as Dr, E7e as Dt, V8 as E, OL as En, Fue as Er, pY as Et, f8 as F, PI as Fn, Dl as Fr, DH as Ft, xbt as G, gI as Gn, vs as Gr, dH as Gt, Pbt as H, SI as Hn, nl as Hr, hH as Ht, p8 as I, Aqe as In, El as Ir, wH as It, Fyt as J, pI as Jn, gs as Jr, _Qe as Jt, ibt as K, _I as Kn, fs as Kr, nH as Kt, qxt as L, MI as Ln, Tl as Lr, CH as Lt, VSt as M, _L as Mn, Hue as Mr, VH as Mt, h8 as N, II as Nn, zue as Nr, NH as Nt, xCt as O, AL as On, Vue as Or, fY as Ot, g8 as P, FI as Pn, kl as Pr, kH as Pt, S2 as Q, oqe as Qn, rse as Qr, TV as Qt, a8 as R, jI as Rn, wl as Rr, SH as Rt, nAt as S, Ia as Si, JR as Sn, $ue as Sr, _9e as St, Ewt as T, ML as Tn, Pue as Tr, K7e as Tt, Lbt as U, xI as Un, fc as Ur, pH as Ut, Rbt as V, OI as Vn, xl as Vr, _H as Vt, Sbt as W, bI as Wn, Cs as Wr, mH as Wt, Zmt as X, cI as Xn, ls as Xr, LV as Xt, nht as Y, _qe as Yn, ms as Yr, qV as Yt, mpt as Z, sqe as Zn, zoe as Zr, IV as Zt, aAt as _, Ja as _i, Mz as _n, Zue as _r, i9e as _t, jAt as a, Gie as ai, $z as an, tqe as ar, SX as at, N9 as b, za as bi, fz as bn, Jue as br, HY as bt, SAt as c, Rie as ci, Jz as cn, GF as cr, ZY as ct, _At as d, Pie as di, Wz as dn, zKe as dr, YY as dt, Go as ei, OB as en, aqe as er, q1 as et, hAt as f, to as fi, Hz as fn, gF as fr, qY as ft, cAt as g, Qa as gi, Lz as gn, Gue as gr, r9e as gt, dAt as h, qa as hi, Iz as hn, Bl as hr, kY as ht, AAt as i, Oo as ii, dB as in, nqe as ir, zZ as it, v8 as j, SL as jn, Bue as jr, XH as jt, x8 as k, wL as kn, Lue as kr, iY as kt, F9 as l, ro as li, Yz as ln, HF as lr, XY as lt, fAt as m, Ka as mi, Rz as mn, Kxe as mr, KY as mt, $9 as n, jo as ni, gB as nn, iqe as nr, KQ as nt, MAt as o, zie as oi, Qz as on, $Ke as or, lX as ot, pAt as p, Nie as pi, Uz as pn, qxe as pr, JY as pt, B6 as q, vI as qn, as as qr, tH as qt, Z9 as r, uae as ri, pB as rn, KF as rr, JQ as rt, kAt as s, io as si, Xz as sn, eqe as sr, tX as st,
|
|
120266
|
+
export { E2 as $, YF as $n, Uo as $r, FB as $t, XSt as A, CL as An, Rue as Ar, rY as At, $6 as B, AI as Bn, Sl as Br, vH as Bt, Wwt as C, Pa as Ci, PL as Cn, Xue as Cr, W7e as Ct, zCt as D, jL as Dn, Iue as Dr, E7e as Dt, V8 as E, OL as En, Fue as Er, pY as Et, f8 as F, PI as Fn, Dl as Fr, DH as Ft, xbt as G, gI as Gn, vs as Gr, dH as Gt, Pbt as H, SI as Hn, nl as Hr, hH as Ht, p8 as I, Aqe as In, El as Ir, wH as It, Fyt as J, pI as Jn, gs as Jr, _Qe as Jt, ibt as K, _I as Kn, fs as Kr, nH as Kt, qxt as L, MI as Ln, Tl as Lr, CH as Lt, VSt as M, _L as Mn, Hue as Mr, VH as Mt, h8 as N, II as Nn, zue as Nr, NH as Nt, xCt as O, AL as On, Vue as Or, fY as Ot, g8 as P, FI as Pn, kl as Pr, kH as Pt, S2 as Q, oqe as Qn, rse as Qr, TV as Qt, a8 as R, jI as Rn, wl as Rr, SH as Rt, nAt as S, Ia as Si, JR as Sn, $ue as Sr, _9e as St, Ewt as T, ML as Tn, Pue as Tr, K7e as Tt, Lbt as U, xI as Un, fc as Ur, pH as Ut, Rbt as V, OI as Vn, xl as Vr, _H as Vt, Sbt as W, bI as Wn, Cs as Wr, mH as Wt, Zmt as X, cI as Xn, ls as Xr, LV as Xt, nht as Y, _qe as Yn, ms as Yr, qV as Yt, mpt as Z, sqe as Zn, zoe as Zr, IV as Zt, aAt as _, Ja as _i, Mz as _n, Zue as _r, i9e as _t, jAt as a, Gie as ai, $z as an, tqe as ar, SX as at, N9 as b, za as bi, fz as bn, Jue as br, HY as bt, SAt as c, Rie as ci, Jz as cn, GF as cr, ZY as ct, _At as d, Pie as di, Wz as dn, zKe as dr, YY as dt, Go as ei, OB as en, aqe as er, q1 as et, hAt as f, to as fi, Hz as fn, gF as fr, qY as ft, cAt as g, Qa as gi, Lz as gn, Gue as gr, r9e as gt, dAt as h, qa as hi, Iz as hn, Bl as hr, kY as ht, AAt as i, Oo as ii, dB as in, nqe as ir, zZ as it, v8 as j, SL as jn, Bue as jr, XH as jt, x8 as k, wL as kn, Lue as kr, iY as kt, F9 as l, ro as li, Yz as ln, HF as lr, XY as lt, fAt as m, Ka as mi, Rz as mn, Kxe as mr, KY as mt, $9 as n, jo as ni, gB as nn, iqe as nr, KQ as nt, MAt as o, zie as oi, Qz as on, $Ke as or, lX as ot, pAt as p, Nie as pi, Uz as pn, qxe as pr, JY as pt, B6 as q, vI as qn, as as qr, tH as qt, Z9 as r, uae as ri, pB as rn, KF as rr, JQ as rt, kAt as s, io as si, Xz as sn, eqe as sr, tX as st, fjt as t, vae as ti, TB as tn, JF as tr, y0 as tt, I9 as u, no as ui, qz as un, KKe as ur, GY as ut, iAt as v, Ga as vi, Cz as vn, ede as vr, g9e as vt, Owt as w, Ma as wi, NL as wn, Al as wr, G7e as wt, tAt as x, La as xi, iz as xn, Que as xr, UY as xt, eAt as y, Va as yi, pz as yn, tde as yr, zY as yt, nxt as z, kqe as zn, Cl as zr, yH as zt };
|
|
@@ -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-CE5OJwQE.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
1
|
import { r as e } from "./i18n-provider-aZCxX7lT.js";
|
|
2
2
|
import { t } from "./skeleton-C5JQM5pK.js";
|
|
3
3
|
import { L as n } from "./tooltip-BX4dSfeL.js";
|
|
4
|
-
import { Xr as r, qc as i } from "./F0CanvasPanel-
|
|
4
|
+
import { Xr as r, qc as i } from "./F0CanvasPanel-Dj85hg3n.js";
|
|
5
5
|
import { xt as a } from "./F0Select-DD_AdtqV.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-D_afy-RH.js";
|
|
8
|
+
import { a as l, i as u, n as d, o as f, r as p, t as m } from "./highlight-CE5OJwQE.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,5 +1,5 @@
|
|
|
1
1
|
import { r as e } from "./i18n-provider-aZCxX7lT.js";
|
|
2
|
-
import { vc as t } from "./F0CanvasPanel-
|
|
2
|
+
import { vc as t } from "./F0CanvasPanel-Dj85hg3n.js";
|
|
3
3
|
import { z as n } from "./useData-Af3QuQSP.js";
|
|
4
4
|
import { sr as r, t as i } from "./F0Select-DD_AdtqV.js";
|
|
5
5
|
import { a, c as o, n as s, o as c, r as l, s as u, t as d } from "./toolbarStyles-DblQOIMP.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as e } from "./i18n-provider-aZCxX7lT.js";
|
|
2
2
|
import { t } from "./skeleton-C5JQM5pK.js";
|
|
3
|
-
import { n, t as r } from "./DocumentToolbar-
|
|
3
|
+
import { n, t as r } from "./DocumentToolbar-D_afy-RH.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";
|
|
@@ -2,7 +2,7 @@ import { a as e, r as t } from "./i18n-provider-aZCxX7lT.js";
|
|
|
2
2
|
import { n, t as r } from "./skeleton-C5JQM5pK.js";
|
|
3
3
|
import { L as i, R as a } from "./tooltip-BX4dSfeL.js";
|
|
4
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-xbk-nrvL.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, Gc as ee, Gi as k, Go as A, Gt as j, H as M, Ht as N, J as P, Jo as F, K 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, el as Le, en as Re, fn as ze, fs as Be, ft as Ve, g as He, gn as Ue, gt as We, h as Ge, in as Ke, io as qe, it as Je, j as Ye, jr as Xe, jt as Ze, k as Qe, ki as $e, kt as et, ln as tt, lo as nt, ls as rt, lt as it, m 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-
|
|
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, Gc as ee, Gi as k, Go as A, Gt as j, H as M, Ht as N, J as P, Jo as F, K 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, el as Le, en as Re, fn as ze, fs as Be, ft as Ve, g as He, gn as Ue, gt as We, h as Ge, in as Ke, io as qe, it as Je, j as Ye, jr as Xe, jt as Ze, k as Qe, ki as $e, kt as et, ln as tt, lo as nt, ls as rt, lt as it, m 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-Dj85hg3n.js";
|
|
6
6
|
import { o as Ot, t as G } from "./F0Icon-Dr2xuQq2.js";
|
|
7
7
|
import { t as kt } from "./i18n-provider-defaults-BpglikGz.js";
|
|
8
8
|
import { C as At, H as jt, I as Mt, N as Nt, U as Pt, b as Ft, g as It, h as Lt, k as Rt, l as zt, m as Bt } from "./useData-Af3QuQSP.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e, r as t } from "./i18n-provider-aZCxX7lT.js";
|
|
2
2
|
import { L as n } from "./tooltip-BX4dSfeL.js";
|
|
3
3
|
import { t as r } from "./F0Button-xbk-nrvL.js";
|
|
4
|
-
import { Cc as i, co as a, ki as o, ms as s } from "./F0CanvasPanel-
|
|
4
|
+
import { Cc as i, co as a, ki as o, ms as s } from "./F0CanvasPanel-Dj85hg3n.js";
|
|
5
5
|
import { o as c } from "./F0Icon-Dr2xuQq2.js";
|
|
6
6
|
import { g as l } from "./useData-Af3QuQSP.js";
|
|
7
7
|
import { useRef as u } from "react";
|
|
@@ -24212,14 +24212,12 @@ function qH({ primaryAction: e, secondaryActions: t, compact: n = !1 }) {
|
|
|
24212
24212
|
className: c("flex-col gap-2 sm:flex-row sm:justify-between [&>div]:z-[1]", "relative z-[2] -mx-4 -mb-4 mt-4 cursor-auto border-0 border-t border-solid border-t-f1-border-secondary px-4 pb-4 pt-4", n && "-mb-3 pb-3 pt-3"),
|
|
24213
24213
|
onClick: (e) => e.stopPropagation(),
|
|
24214
24214
|
children: [t ? /* @__PURE__ */ W("div", {
|
|
24215
|
-
className: "flex w-full flex-col gap-md sm:flex-row [&_a]:justify-center sm:[&_a]:justify-start [&_button]:w-full sm:[&_button]:w-fit [&
|
|
24215
|
+
className: "flex w-full flex-col gap-md sm:flex-row [&_a]:justify-center sm:[&_a]:justify-start [&_button]:w-full sm:[&_button]:w-fit [&_.main]:w-full [&_.main]:justify-center sm:[&_.main]:w-fit",
|
|
24216
24216
|
children: Array.isArray(t) ? t.map((e, t) => /* @__PURE__ */ W(Se, {
|
|
24217
24217
|
label: e.label,
|
|
24218
24218
|
icon: e.icon,
|
|
24219
24219
|
variant: "outline",
|
|
24220
|
-
onClick: (t) =>
|
|
24221
|
-
t.stopPropagation(), e.onClick();
|
|
24222
|
-
},
|
|
24220
|
+
onClick: (t) => (t.stopPropagation(), e.onClick()),
|
|
24223
24221
|
hideLabel: r && t > 0,
|
|
24224
24222
|
size: r ? n ? "sm" : "md" : "lg"
|
|
24225
24223
|
}, t)) : /* @__PURE__ */ W(MH, {
|
|
@@ -24231,14 +24229,12 @@ function qH({ primaryAction: e, secondaryActions: t, compact: n = !1 }) {
|
|
|
24231
24229
|
children: t.label
|
|
24232
24230
|
})
|
|
24233
24231
|
}) : null, e ? /* @__PURE__ */ W("div", {
|
|
24234
|
-
className: "w-full sm:w-fit [&_button]:w-full sm:[&_button]:w-fit [&
|
|
24232
|
+
className: "w-full sm:w-fit [&_button]:w-full sm:[&_button]:w-fit [&_.main]:w-full [&_.main]:justify-center",
|
|
24235
24233
|
children: /* @__PURE__ */ W(Se, {
|
|
24236
24234
|
label: e.label,
|
|
24237
24235
|
icon: e.icon,
|
|
24238
24236
|
variant: e.variant,
|
|
24239
|
-
onClick: (t) =>
|
|
24240
|
-
t.stopPropagation(), e.onClick();
|
|
24241
|
-
},
|
|
24237
|
+
onClick: (t) => (t.stopPropagation(), e.onClick()),
|
|
24242
24238
|
size: r ? n ? "sm" : "md" : "lg",
|
|
24243
24239
|
"data-testid": "primary-button"
|
|
24244
24240
|
})
|
|
@@ -42101,7 +42097,7 @@ var Z1 = o("F0FileItem", r(X1)), Q1 = Z1, $1 = 2, e0 = 70, t0 = .08, n0 = 6, r0
|
|
|
42101
42097
|
}, l4 = (e) => ({
|
|
42102
42098
|
url: o4(e),
|
|
42103
42099
|
name: a4(e)
|
|
42104
|
-
}), u4 = () => import("./F0DocumentViewer-
|
|
42100
|
+
}), u4 = () => import("./F0DocumentViewer-BfZZ_Nj4.js"), d4 = (e, t) => {
|
|
42105
42101
|
if (e.length < 2) return [];
|
|
42106
42102
|
let n = $2(t, 1, e.length), r = $2(t, -1, e.length);
|
|
42107
42103
|
return [.../* @__PURE__ */ new Set([n, r])].filter((e) => e !== t).map((t) => e[t]);
|
|
@@ -42140,7 +42136,7 @@ var Z1 = o("F0FileItem", r(X1)), Q1 = Z1, $1 = 2, e0 = 70, t0 = .08, n0 = 6, r0
|
|
|
42140
42136
|
n,
|
|
42141
42137
|
r
|
|
42142
42138
|
]);
|
|
42143
|
-
}, m4 = ui(() => u4().then((e) => ({ default: e.F0DocumentViewer }))), h4 = ui(() => import("./F0VideoPlayer-
|
|
42139
|
+
}, m4 = ui(() => u4().then((e) => ({ default: e.F0DocumentViewer }))), h4 = ui(() => import("./F0VideoPlayer-yNQxunbp.js").then((e) => ({ default: e.F0VideoPlayer }))), g4 = ui(() => import("./F0AudioPlayer-BINo7ymK.js").then((e) => ({ default: e.F0AudioPlayer }))), _4 = 24, v4 = () => {}, y4 = R(({ item: e, reloadKey: t = 0, direction: n, immersive: r = !1, onDownload: i, onSettled: a }, o) => {
|
|
42144
42140
|
let { reducedMotion: s } = v0(), l = e.kind === "document";
|
|
42145
42141
|
return /* @__PURE__ */ W("div", {
|
|
42146
42142
|
ref: o,
|
|
@@ -44756,7 +44752,7 @@ var h8 = ({ children: e, className: t, lines: n = 1 }) => n > 1 ? /* @__PURE__ *
|
|
|
44756
44752
|
}, []),
|
|
44757
44753
|
shouldMount: e
|
|
44758
44754
|
};
|
|
44759
|
-
}, x8 = () => import("./PdfThumbnail-
|
|
44755
|
+
}, x8 = () => import("./PdfThumbnail-DopWiXV1.js"), S8 = () => import("./SheetThumbnail-HtGezPp4.js"), C8 = () => import("./DocxThumbnail-CK9vFoTB.js"), w8 = () => import("./TextThumbnail-DKNxh344.js"), T8 = () => import("./CodeThumbnail-ZwkABs75.js"), E8 = () => import("./HtmlThumbnail-BNAinxys.js"), D8 = () => import("./ArchiveThumbnail-BP0t4Rfi.js"), O8 = ui(x8), k8 = ui(S8), A8 = ui(C8), j8 = ui(w8), M8 = ui(T8), N8 = ui(E8), P8 = ui(D8), F8 = 384, I8 = 160, L8 = ({ kind: e, file: t, url: n, width: r, onError: i, onRendered: a }) => e === "pdf" ? /* @__PURE__ */ W(O8, {
|
|
44760
44756
|
url: n,
|
|
44761
44757
|
width: r,
|
|
44762
44758
|
onError: i,
|
|
@@ -46849,7 +46845,7 @@ var a9 = o("DataList", i9), o9 = Object.assign(a9, {
|
|
|
46849
46845
|
s
|
|
46850
46846
|
]
|
|
46851
46847
|
});
|
|
46852
|
-
}, g9 = ui(() => import("./F0VideoPlayer-
|
|
46848
|
+
}, g9 = ui(() => import("./F0VideoPlayer-yNQxunbp.js").then((e) => ({ default: e.F0VideoPlayer }))), _9 = ({ file: e, cornerClass: t, className: n, surfaceClassName: r, meta: i, onDownloaded: o, testIdPrefix: s = "chat" }) => {
|
|
46853
46849
|
let u = a(), { urlCache: d } = v0(), f = M0(), [p, m] = U(!1), [h, g] = U(!1), _ = d !== null && !p0(e.url), [v, y] = U(!1), b = A0(e.url, { enabled: !_ || v }), x = A0(e.thumbnailUrl), S = x.status === "ready" ? x.url : void 0, C = e.size == null ? null : l2(e.size), w = {
|
|
46854
46850
|
label: u.t("chat.downloadNamedFile", { name: e.name }),
|
|
46855
46851
|
icon: So,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./F0DocumentViewer-
|
|
1
|
+
import { n as e, r as t, t as n } from "./F0DocumentViewer-BtB3wnNC.js";
|
|
2
2
|
import { t as r } from "./pdfWorkerConfig-BwllKt1K.js";
|
|
3
3
|
export { n as F0DocumentViewer, e as F0PdfViewer, r as configurePdfWorker, t as pdfScales };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e, r as t } from "./i18n-provider-aZCxX7lT.js";
|
|
2
2
|
import { n, t as r } from "./skeleton-C5JQM5pK.js";
|
|
3
3
|
import { L as i } from "./tooltip-BX4dSfeL.js";
|
|
4
|
-
import { bo as a } from "./F0CanvasPanel-
|
|
4
|
+
import { bo as a } from "./F0CanvasPanel-Dj85hg3n.js";
|
|
5
5
|
import { Suspense as o, forwardRef as s, lazy as c } from "react";
|
|
6
6
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
7
|
import './F0DocumentViewer.css';//#region src/addons/documents/F0DocumentViewer/types.ts
|
|
@@ -36,7 +36,7 @@ var d = [
|
|
|
36
36
|
children: /* @__PURE__ */ l(r, { className: "h-full w-full max-w-[600px] rounded-md" })
|
|
37
37
|
})]
|
|
38
38
|
});
|
|
39
|
-
}, p = c(() => import("./PdfViewer-
|
|
39
|
+
}, p = c(() => import("./PdfViewer-CPWR6tv7.js")), m = c(() => import("./SheetViewer-Dwu1GbVa.js")), h = c(() => import("./DocxViewer-BptrjRiz.js")), g = c(() => import("./TextViewer-DXd78D8P.js")), _ = c(() => import("./CodeViewer-BrmnIt6k.js")), v = c(() => import("./HtmlViewer-BZu6alyR.js")), y = c(() => import("./ArchiveViewer-CU9adsgr.js")), b = s((e, t) => {
|
|
40
40
|
let { kind: n = "pdf", mimeType: i, language: a, htmlExecution: s = "auto", htmlSandbox: c, sender: d, toolbar: b = "top", hideDownload: x = !1, ...S } = e;
|
|
41
41
|
if (n === "pdf") return /* @__PURE__ */ l(o, {
|
|
42
42
|
fallback: /* @__PURE__ */ l(f, {}),
|