@factorialco/f0-react 13.12.1 → 14.1.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.
Files changed (42) hide show
  1. package/dist/{ArchiveThumbnail-DmnSGwhP.js → ArchiveThumbnail-CWbHqWac.js} +1 -1
  2. package/dist/{ArchiveViewer-RNMB3M36.js → ArchiveViewer-BoRgb-kZ.js} +2 -2
  3. package/dist/{ChatPostComposerDialog-Z8gG_J2L.js → ChatPostComposerDialog-tzxJ1Vxy.js} +2 -2
  4. package/dist/{CoachmarkProvider-fehx7Q_o.js → CoachmarkProvider-Bh4LIxUN.js} +115 -108
  5. package/dist/{CodeThumbnail-C6HoRhcZ.js → CodeThumbnail-Bj-Abcwc.js} +1 -1
  6. package/dist/{CodeViewer-BZRBu6at.js → CodeViewer-wZ8404xZ.js} +3 -3
  7. package/dist/{DocumentToolbar-BHrbd-HZ.js → DocumentToolbar-BzEUGQ-2.js} +1 -1
  8. package/dist/{DocxViewer-V8WC-PWo.js → DocxViewer-iewvkeU1.js} +1 -1
  9. package/dist/{F0AiProcessingOverlay-ReygG6pE.js → F0AiProcessingOverlay-BwpYdSpL.js} +1 -1
  10. package/dist/{F0Alert-D4m2sucP.js → F0Alert-B4OGXz1X.js} +1 -1
  11. package/dist/F0AudioPlayer-DcdzvgBI.js +2 -0
  12. package/dist/{F0CanvasPanel-BKvyk32z.js → F0CanvasPanel-D8tYmeE6.js} +4 -4
  13. package/dist/{F0DocumentViewer-B2vIyYsn.js → F0DocumentViewer-BVMBxQHk.js} +2 -2
  14. package/dist/{F0DocumentViewer-CSJh6Ed7.js → F0DocumentViewer-bdMJ__pm.js} +1 -1
  15. package/dist/{F0Map-DClia8fc.js → F0Map-CiJL7uHq.js} +3 -3
  16. package/dist/F0VideoPlayer-BmIMWeWW.js +1 -0
  17. package/dist/{F0VideoPlayer-WyWePBV8.js → F0VideoPlayer-Dlwo-iuI.js} +1 -1
  18. package/dist/{HtmlViewer-BVkwk56S.js → HtmlViewer-Bq-aon1a.js} +3 -3
  19. package/dist/{Map-BDMz636c.js → Map-rOJdvwq8.js} +3 -3
  20. package/dist/{PdfThumbnail-CHPvHqdQ.js → PdfThumbnail-Bb-KOb3F.js} +1 -1
  21. package/dist/{PdfViewer-CBs15JQG.js → PdfViewer-Xiqq3HFU.js} +2 -2
  22. package/dist/{SheetViewer-BaqxWzpW.js → SheetViewer-DH28ndQ_.js} +2 -2
  23. package/dist/{TextViewer-DdEtdDZH.js → TextViewer-DjfPIFEN.js} +1 -1
  24. package/dist/__vite-browser-external-beAkYNVS.js +7 -0
  25. package/dist/ai.d.ts +2 -2
  26. package/dist/ai.js +2 -2
  27. package/dist/component-status.js +1 -1
  28. package/dist/experimental.d.ts +2 -2
  29. package/dist/experimental.js +4 -4
  30. package/dist/{exports-B2pLsxhF.d.ts → exports-CXZ5MFdq.d.ts} +1 -1
  31. package/dist/f0.d.ts +3 -3
  32. package/dist/f0.js +6 -6
  33. package/dist/{highlight-BFih_ytR.js → highlight-zua_Bm-I.js} +1 -1
  34. package/dist/{maplibre-DYSBHNua.js → maplibre-lS7uCTWW.js} +1 -1
  35. package/dist/pdfWorker-CB3PMTjf.js +12788 -0
  36. package/dist/pdfWorker.css +1 -1
  37. package/dist/{types-Dp-ibo8p.d.ts → types-BrYq6URK.d.ts} +8 -1
  38. package/package.json +5 -5
  39. package/dist/F0AudioPlayer-Wj-PKKtF.js +0 -2
  40. package/dist/F0VideoPlayer-CsCI9jzU.js +0 -1
  41. package/dist/pdfWorker-C4oRZ-W-.js +0 -11908
  42. /package/dist/{index-D87y-J1D.d.ts → index-BRJdHLME.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { r as e } from "./i18n-provider-C_jciu_6.js";
2
- import { Wt as t, lc as n, zt as r } from "./F0CanvasPanel-BKvyk32z.js";
2
+ import { Wt as t, lc as n, zt as r } from "./F0CanvasPanel-D8tYmeE6.js";
3
3
  import { t as i } from "./F0Icon-Dw-YD4Mz.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-C_jciu_6.js";
2
2
  import { t } from "./skeleton-BEiQvWC1.js";
3
- import { Wt as n, lc as r } from "./F0CanvasPanel-BKvyk32z.js";
3
+ import { Wt as n, lc as r } from "./F0CanvasPanel-D8tYmeE6.js";
4
4
  import { t as i } from "./F0Icon-Dw-YD4Mz.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-BHrbd-HZ.js";
7
+ import { t as l } from "./DocumentToolbar-BzEUGQ-2.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-fehx7Q_o.js";
1
+ import { j as e } from "./CoachmarkProvider-Bh4LIxUN.js";
2
2
  import { r as t } from "./i18n-provider-C_jciu_6.js";
3
- import { Vr as n } from "./F0CanvasPanel-BKvyk32z.js";
3
+ import { Vr as n } from "./F0CanvasPanel-D8tYmeE6.js";
4
4
  import { a as r, f as i, i as a, u as o } from "./posts-BBvCiBdi.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";
@@ -3,7 +3,7 @@ import { a as r, c as i, i as a, r as o, s } from "./i18n-provider-C_jciu_6.js";
3
3
  import { n as c, t as l } from "./skeleton-BEiQvWC1.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 { $ as _, B as v, Ct as y, Dt as b, E as x, F as S, G as C, J as w, K as T, Mt as E, N as D, Nt as O, O as k, R as A, S as j, T as M, U as N, W as P, b as F, bt as I, ct as L, et as ee, g as te, h as R, ht as ne, jt as re, k as ie, kt as ae, lt as oe, n as z, q as se, r as ce, t as le, tt as ue, ut as de, vt as fe, w as pe, x as me, yt as he } from "./F0Button-DliApWoo.js";
6
- import { $i as ge, $n as _e, $o as ve, $s as ye, Aa as be, An as xe, Ao as Se, Ar as Ce, Ba as we, Bc as Te, Bi as Ee, Bn as De, Bo 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, Hi as Qe, Ho as $e, Hs as et, Ia as tt, In as nt, Ir as rt, Ja as it, Jc as at, Ji as ot, Jn as st, Jr as ct, Ka as lt, Ki as ut, Kn as dt, Kr as ft, Ks as pt, La as mt, Ln as ht, Ma as gt, Mi as _t, Mn as vt, Ms as yt, Na as bt, Nn as xt, No as St, Nr as Ct, Oa as wt, On as Tt, Oo as Et, Pn as Dt, Pr as Ot, Ps as kt, Qc as At, Qi as jt, Qn as Mt, Qs as Nt, Ra as Pt, Rn as Ft, Rr as It, Rs as Lt, Sa as Rt, Sc as zt, Sn as Bt, Sr as Vt, Ta as Ht, Ti as Ut, Tn as Wt, To as Gt, Ua as Kt, Uc as qt, Ui as Jt, Un as Yt, Uo as Xt, Us as Zt, Va as Qt, Vc as $t, Vi as en, Vo as tn, Vr as nn, Wa as rn, Wc as an, Wi as on, Wn as sn, Wr as cn, Xa as ln, Xc as un, Xi as dn, Xn as fn, Ya as pn, Yc as mn, Yi as hn, Yn as gn, Yo as _n, Yr as vn, Ys as yn, Za as bn, Zc as xn, Zi as Sn, Zn as Cn, Zo as eee, Zr as tee, Zs as nee, _a as wn, _i as ree, _o as iee, _r as aee, aa as oee, ar as Tn, ba as see, bi as cee, bo as En, br as Dn, bs as lee, ca as uee, ci as dee, co as On, cr as kn, cs as fee, da as pee, dc as mee, di as hee, do as gee, dr as _ee, ea as An, ei as vee, er as yee, fa as jn, fc as bee, fn as xee, fo as See, fr as Mn, ga as Nn, gc as Cee, gi as Pn, gn as wee, go as Fn, gr as Tee, ha as In, hi as Ln, ho as Eee, hr as Dee, hs as Oee, ia as Rn, ir as kee, is as Aee, jc as jee, jo as Mee, jr as zn, js as Nee, ka as Bn, kc as Pee, 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, nl as Zn, nr as Bee, ns as Vee, oa as Qn, oc as Hee, or as Uee, os as Wee, pa as $n, pc as Gee, pn as Kee, po as qee, pr as Jee, qa as er, qc as Yee, qi as Xee, qn as Zee, qr as Qee, qs as $ee, ra as tr, rr as ete, rs as tte, sa as nr, si as nte, sr as rte, ta as rr, tc as ir, 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 ar, wa as mte, wn as or, wo as hte, ws as gte, xa as _te, xc as vte, xn as yte, xo as bte, xr as xte, yc as sr, yi as cr, yr as Ste, ys as Cte, za as lr, zc as ur, zn as dr, zs as wte } from "./F0CanvasPanel-BKvyk32z.js";
6
+ import { $i as ge, $n as _e, $o as ve, $s as ye, Aa as be, An as xe, Ao as Se, Ar as Ce, Ba as we, Bc as Te, Bi as Ee, Bn as De, Bo 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, Hi as Qe, Ho as $e, Hs as et, Ia as tt, In as nt, Ir as rt, Ja as it, Jc as at, Ji as ot, Jn as st, Jr as ct, Ka as lt, Ki as ut, Kn as dt, Kr as ft, Ks as pt, La as mt, Ln as ht, Ma as gt, Mi as _t, Mn as vt, Ms as yt, Na as bt, Nn as xt, No as St, Nr as Ct, Oa as wt, On as Tt, Oo as Et, Pn as Dt, Pr as Ot, Ps as kt, Qc as At, Qi as jt, Qn as Mt, Qs as Nt, Ra as Pt, Rn as Ft, Rr as It, Rs as Lt, Sa as Rt, Sc as zt, Sn as Bt, Sr as Vt, Ta as Ht, Ti as Ut, Tn as Wt, To as Gt, Ua as Kt, Uc as qt, Ui as Jt, Un as Yt, Uo as Xt, Us as Zt, Va as Qt, Vc as $t, Vi as en, Vo as tn, Vr as nn, Wa as rn, Wc as an, Wi as on, Wn as sn, Wr as cn, Xa as ln, Xc as un, Xi as dn, Xn as fn, Ya as pn, Yc as mn, Yi as hn, Yn as gn, Yo as _n, Yr as vn, Ys as yn, Za as bn, Zc as xn, Zi as Sn, Zn as Cn, Zo as eee, Zr as tee, Zs as nee, _a as wn, _i as ree, _o as iee, _r as aee, aa as oee, ar as Tn, ba as see, bi as cee, bo as En, br as Dn, bs as lee, ca as uee, ci as dee, co as On, cr as kn, cs as fee, da as pee, dc as mee, di as hee, do as gee, dr as _ee, ea as An, ei as vee, er as yee, fa as jn, fc as bee, fn as xee, fo as See, fr as Mn, ga as Nn, gc as Cee, gi as Pn, gn as wee, go as Fn, gr as Tee, ha as In, hi as Ln, ho as Eee, hr as Dee, hs as Oee, ia as Rn, ir as kee, is as Aee, jc as jee, jo as Mee, jr as zn, js as Nee, ka as Bn, kc as Pee, 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, nl as Zn, nr as Bee, ns as Vee, oa as Qn, oc as Hee, or as Uee, os as Wee, pa as $n, pc as Gee, pn as Kee, po as qee, pr as Jee, qa as er, qc as Yee, qi as Xee, qn as Zee, qr as Qee, qs as $ee, ra as tr, rr as ete, rs as tte, sa as nr, si as nte, sr as rte, ta as rr, tc as ir, 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 ar, wa as mte, wn as or, wo as hte, ws as gte, xa as _te, xc as vte, xn as yte, xo as bte, xr as xte, yc as sr, yi as cr, yr as Ste, ys as Cte, za as lr, zc as ur, zn as dr, zs as wte } from "./F0CanvasPanel-D8tYmeE6.js";
7
7
  import { t as Tte } from "./LayoutGroup-gwem4ADm.js";
8
8
  import { n as fr, o as pr, r as mr, t as hr } from "./F0Icon-Dw-YD4Mz.js";
9
9
  import { B as gr, D as _r, F as Ete, H as vr, L as yr, M as br, N as Dte, O as Ote, P as kte, R as xr, V as Sr, _ as Ate, c as jte, f as Cr, g as Mte, h as wr, i as Nte, l as Pte, n as Tr, o as Fte, r as Ite, v as Er, x as Lte, y as Rte, z as zte } from "./useData-CuyhVJ87.js";
@@ -18,7 +18,7 @@ import { c as ure, l as Ei, n as Di, r as dre } from "./scrollarea-B6RGaKme.js";
18
18
  import { t as Oi } from "./F0Text-Cb-FVBzx.js";
19
19
  import { t as ki } from "./dist-Cuwaibqg.js";
20
20
  import { i as fre, r as pre } from "./dist-2k-bLufS.js";
21
- import { t as Ai } from "./F0Alert-D4m2sucP.js";
21
+ import { t as Ai } from "./F0Alert-B4OGXz1X.js";
22
22
  import './RichText.css';import './CoachmarkProvider.css';/* empty css */
23
23
  import { t as mre } from "./dist-Dt-cTb6D.js";
24
24
  import * as ji from "react";
@@ -80382,18 +80382,20 @@ function v7e(e, t, n) {
80382
80382
  c.current = o;
80383
80383
  let [l, u] = G(/* @__PURE__ */ new Set()), d = W(l);
80384
80384
  d.current = l;
80385
- let [f, p] = G(void 0), [m, h] = G(/* @__PURE__ */ new Set()), [g, _] = G(!0), [v, y] = G(null), b = W(/* @__PURE__ */ new Set()), x = V((e) => {
80385
+ let f = V((e) => {
80386
+ u(e), a.current.onExpandedNodesChange?.(e);
80387
+ }, []), [p, m] = G(void 0), [h, g] = G(/* @__PURE__ */ new Set()), [_, v] = G(!0), [y, b] = G(null), x = W(/* @__PURE__ */ new Set()), S = V((e) => {
80386
80388
  let t = i.current;
80387
80389
  return t.getNodeId ? t.getNodeId(e) : String(e.id);
80388
- }, []), S = V((e, t) => ({
80389
- id: x(e),
80390
+ }, []), C = V((e, t) => ({
80391
+ id: S(e),
80390
80392
  parentId: t,
80391
80393
  data: e,
80392
80394
  childrenCount: i.current.getChildrenCount(e),
80393
80395
  childrenLoaded: !1,
80394
80396
  stackNodes: i.current.stackNodes?.(e),
80395
80397
  dataLoaded: !i.current.loadNodeData && void 0
80396
- }), [x]), C = V(async (e) => {
80398
+ }), [S]), w = V(async (e) => {
80397
80399
  let t = r.current, n = t.dataAdapter, i = t.currentSortings ? [{
80398
80400
  field: String(t.currentSortings.field),
80399
80401
  order: t.currentSortings.order
@@ -80421,108 +80423,111 @@ function v7e(e, t, n) {
80421
80423
  ...a,
80422
80424
  pagination: {}
80423
80425
  }));
80424
- }, []), w = V(async (e) => {
80425
- if (b.current.has(e)) return c.current.filter((t) => t.parentId === e);
80426
- b.current.add(e);
80426
+ }, []), T = V(async (e) => {
80427
+ if (x.current.has(e)) return c.current.filter((t) => t.parentId === e);
80428
+ x.current.add(e);
80427
80429
  try {
80428
- let t = (await C(i.current.childrenFilters(e))).map((t) => S(t, e));
80430
+ let t = (await w(i.current.childrenFilters(e))).map((t) => C(t, e));
80429
80431
  return s((n) => f7e(n, t, e)), t;
80430
80432
  } catch (t) {
80431
- b.current.delete(e);
80433
+ x.current.delete(e);
80432
80434
  let n = LJ(t);
80433
- return y(n), a.current.onLoadError(n), [];
80435
+ return b(n), a.current.onLoadError(n), [];
80434
80436
  }
80435
- }, [C, S]), T = V(async (e) => {
80437
+ }, [w, C]), E = V(async (e) => {
80436
80438
  let t = c.current.filter((t) => t.parentId === null && e.has(t.id) && BJ(t)), n = /* @__PURE__ */ new Set();
80437
80439
  for (; t.length > 0;) {
80438
80440
  let r = t.filter((e) => !n.has(e.id));
80439
80441
  if (r.forEach((e) => n.add(e.id)), r.length === 0) break;
80440
- let i = await Promise.all(r.map((e) => w(e.id).then((e) => ({ children: e })))), a = [];
80442
+ let i = await Promise.all(r.map((e) => T(e.id).then((e) => ({ children: e })))), a = [];
80441
80443
  for (let { children: t } of i) for (let n of t) e.has(n.id) && BJ(n) && a.push(n);
80442
80444
  t = a;
80443
80445
  }
80444
- }, [w]), E = V((e) => {
80445
- u(e), T(e);
80446
- }, [T]), D = V(async (e) => {
80446
+ }, [T]), D = V((e) => {
80447
+ f(e), E(e);
80448
+ }, [f, E]), O = V(async (e) => {
80447
80449
  let t = i.current, n = t.loadNodePath ? await t.loadNodePath(e) : [];
80448
80450
  n.length > 0 && s((e) => {
80449
- let r = new Set(e.map((e) => e.id)), i = n.filter((e) => !r.has(x(e))).map((e, r) => {
80450
- let i = t.getParentId ? t.getParentId(e) : r > 0 ? x(n[r - 1]) : null;
80451
- return S(e, i);
80451
+ let r = new Set(e.map((e) => e.id)), i = n.filter((e) => !r.has(S(e))).map((e, r) => {
80452
+ let i = t.getParentId ? t.getParentId(e) : r > 0 ? S(n[r - 1]) : null;
80453
+ return C(e, i);
80452
80454
  });
80453
80455
  return i.length > 0 ? [...e, ...i] : e;
80454
80456
  });
80455
- let r = n.map(x).filter((t) => t !== e);
80456
- return await Promise.all([...r, e].map((e) => w(e))), r;
80457
+ let r = n.map(S).filter((t) => t !== e);
80458
+ return await Promise.all([...r, e].map((e) => T(e))), r;
80457
80459
  }, [
80458
- x,
80459
80460
  S,
80460
- w
80461
- ]), O = V(async (e) => {
80461
+ C,
80462
+ T
80463
+ ]), k = V(async (e) => {
80462
80464
  try {
80463
- let t = await D(e);
80464
- E(/* @__PURE__ */ new Set([...d.current, ...t])), p(e), h(/* @__PURE__ */ new Set([e]));
80465
+ let t = await O(e);
80466
+ D(/* @__PURE__ */ new Set([...d.current, ...t])), m(e), g(/* @__PURE__ */ new Set([e]));
80465
80467
  } catch (e) {
80466
80468
  let t = LJ(e);
80467
- y(t), a.current.onLoadError(t);
80469
+ b(t), a.current.onLoadError(t);
80468
80470
  }
80469
- }, [D, E]), k = V(() => {
80470
- p(void 0), h(/* @__PURE__ */ new Set());
80471
- }, []), A = V((e) => {
80471
+ }, [O, D]), A = V(() => {
80472
+ m(void 0), g(/* @__PURE__ */ new Set());
80473
+ }, []), j = V((e) => {
80472
80474
  let t = i.current.loadNodeData;
80473
80475
  if (!t) return;
80474
80476
  let n = new Map(c.current.map((e) => [e.id, e])), r = e.filter((e) => n.get(e)?.dataLoaded === !1);
80475
80477
  r.length !== 0 && t(r).then((e) => {
80476
- let t = new Map(e.map((e) => [x(e), e]));
80478
+ let t = new Map(e.map((e) => [S(e), e]));
80477
80479
  s((e) => d7e(e, t));
80478
80480
  }).catch((e) => {
80479
80481
  let t = LJ(e);
80480
- y(t), a.current.onLoadError(t);
80482
+ b(t), a.current.onLoadError(t);
80481
80483
  });
80482
- }, [x]), j = V((e, t) => {
80484
+ }, [S]), M = V((e, t) => {
80483
80485
  if (e.length === 0 && t.length === 0) return;
80484
- let n = i.current;
80485
- s((r) => {
80486
+ let n = i.current, r = (r) => {
80486
80487
  let i = new Map(r.map((e) => [e.id, e])), a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), s = (e) => {
80487
80488
  for (let t of m7e(e, i)) {
80488
80489
  let e = i.get(t)?.parentId;
80489
- e != null && o.add(e), i.delete(t), b.current.delete(t), a.add(t);
80490
+ e != null && o.add(e), i.delete(t), x.current.delete(t), a.add(t);
80490
80491
  }
80491
80492
  };
80492
- if (s(t), g7e({
80493
+ s(t), g7e({
80493
80494
  records: e,
80494
80495
  byId: i,
80495
80496
  touchedParents: o,
80496
- getId: x,
80497
+ getId: S,
80497
80498
  getParentId: n.getParentId,
80498
80499
  getChildrenCount: n.getChildrenCount,
80499
80500
  stackNodes: n.stackNodes,
80500
80501
  hydrates: !!n.loadNodeData
80501
- }), s(h7e(i)), _7e(i, o, b.current), a.size > 0) {
80502
- let e = d.current, t = new Set([...e].filter((e) => !a.has(e)));
80503
- t.size !== e.size && u(t);
80504
- }
80505
- let c = r.map((e) => i.get(e.id)).filter((e) => !!e), l = new Set(c.map((e) => e.id)), f = [...i.values()].filter((e) => !l.has(e.id));
80506
- return [...c, ...f];
80507
- });
80508
- }, [x]), M = V(async () => {
80509
- _(!0), y(null), s([]), c.current = [], b.current = /* @__PURE__ */ new Set();
80502
+ }), s(h7e(i)), _7e(i, o, x.current);
80503
+ let c = r.map((e) => i.get(e.id)).filter((e) => !!e), l = new Set(c.map((e) => e.id)), u = [...i.values()].filter((e) => !l.has(e.id));
80504
+ return {
80505
+ nodes: [...c, ...u],
80506
+ removedIds: a
80507
+ };
80508
+ }, a = c.current, o = r(a);
80509
+ if (s((e) => e === a ? o.nodes : r(e).nodes), o.removedIds.size > 0) {
80510
+ let e = d.current, t = new Set([...e].filter((e) => !o.removedIds.has(e)));
80511
+ t.size !== e.size && f(t);
80512
+ }
80513
+ }, [f, S]), N = V(async () => {
80514
+ v(!0), b(null), s([]), c.current = [], x.current = /* @__PURE__ */ new Set();
80510
80515
  try {
80511
- let e = Math.max(0, i.current.defaultExpandDepth ?? 1), t = (await C(i.current.childrenFilters(null))).map((e) => S(e, null));
80516
+ let e = Math.max(0, i.current.defaultExpandDepth ?? 1), t = (await w(i.current.childrenFilters(null))).map((e) => C(e, null));
80512
80517
  s(t), c.current = t;
80513
80518
  let n = /* @__PURE__ */ new Set(), o = t;
80514
80519
  for (let t = 0; t < e && o.length > 0; t++) {
80515
80520
  let e = o.filter(BJ);
80516
80521
  if (e.length === 0) break;
80517
- let t = await Promise.all(e.map((e) => w(e.id)));
80522
+ let t = await Promise.all(e.map((e) => T(e.id)));
80518
80523
  e.forEach((e) => n.add(e.id)), o = e.flatMap((e, n) => t[n]);
80519
80524
  }
80520
80525
  let l = i.current.focusOnEntry;
80521
80526
  if (l && i.current.loadNodePath) try {
80522
- let e = await D(l);
80527
+ let e = await O(l);
80523
80528
  for (let t of e) n.add(t);
80524
80529
  } catch {}
80525
- u(n), a.current.onLoadData({
80530
+ f(n), a.current.onLoadData({
80526
80531
  totalItems: t.length,
80527
80532
  filters: r.current.currentFilters,
80528
80533
  search: r.current.currentSearch,
@@ -80531,44 +80536,45 @@ function v7e(e, t, n) {
80531
80536
  });
80532
80537
  } catch (e) {
80533
80538
  let t = LJ(e);
80534
- y(t), a.current.onLoadError(t);
80539
+ b(t), a.current.onLoadError(t);
80535
80540
  } finally {
80536
- _(!1);
80541
+ v(!1);
80537
80542
  }
80538
80543
  }, [
80539
- C,
80540
- S,
80544
+ f,
80541
80545
  w,
80542
- D
80543
- ]), N = JSON.stringify(e.currentFilters), P = JSON.stringify(e.currentNavigationFilters);
80546
+ C,
80547
+ T,
80548
+ O
80549
+ ]), P = JSON.stringify(e.currentFilters), F = JSON.stringify(e.currentNavigationFilters);
80544
80550
  H(() => {
80545
- M();
80551
+ N();
80546
80552
  }, [
80547
- N,
80548
80553
  P,
80549
- M
80554
+ F,
80555
+ N
80550
80556
  ]);
80551
- let F = t.liveUpdate?.version, I = W(F);
80557
+ let I = t.liveUpdate?.version, L = W(I);
80552
80558
  return H(() => {
80553
80559
  let e = i.current.liveUpdate;
80554
- e && e.version !== I.current && (I.current = e.version, j(e.upsert ?? [], e.remove ?? []));
80555
- }, [F, j]), {
80560
+ e && e.version !== L.current && (L.current = e.version, M(e.upsert ?? [], e.remove ?? []));
80561
+ }, [I, M]), {
80556
80562
  nodes: o,
80557
80563
  expandedNodes: l,
80558
- setExpandedNodes: E,
80559
- focusedNode: f,
80560
- highlightedNodes: m,
80561
- revealNode: O,
80562
- clearFocus: k,
80563
- loadVisibleNodeData: t.loadNodeData ? A : void 0,
80564
- isInitialLoading: g,
80565
- error: v
80564
+ setExpandedNodes: D,
80565
+ focusedNode: p,
80566
+ highlightedNodes: h,
80567
+ revealNode: k,
80568
+ clearFocus: A,
80569
+ loadVisibleNodeData: t.loadNodeData ? j : void 0,
80570
+ isInitialLoading: _,
80571
+ error: y
80566
80572
  };
80567
80573
  }
80568
80574
  //#endregion
80569
80575
  //#region src/addons/data-collection/OneDataCollection/visualizations/collection/Graph/Graph.tsx
80570
- var y7e = ({ source: e, title: t, subtitle: n, avatar: r, tags: i, nodeActions: a, nodeTagTypes: o, defaultVisibleTagTypes: s, pinnedTagTypes: c, lockedTagTypes: l, currentUserNodeId: u, getNodeId: d, getChildrenCount: f, stackNodes: p, stackedTrailing: m, childrenFilters: h, defaultExpandDepth: g, revealNodeId: _, searchSelectionNonce: v, focusOnEntry: y, initialSelectedNodeId: b, loadNodePath: x, getParentId: S, loadNodeData: C, liveUpdate: w, zoomPreset: T, minZoom: E, maxZoom: D, centerOnNodeClick: O, nodeClickZoom: k, viewportInset: A, showControls: j, canvasFooterActions: M, enableNodeWindowing: N, nodeWindowPadding: P, loadVisibleNodeData: F, visibleDataDebounceMs: I, onLoadData: L, onLoadError: ee }) => {
80571
- let { nodes: te, expandedNodes: R, setExpandedNodes: ne, focusedNode: re, highlightedNodes: ie, revealNode: ae, clearFocus: oe, loadVisibleNodeData: z, isInitialLoading: se } = v7e(e, {
80576
+ var y7e = ({ source: e, title: t, subtitle: n, avatar: r, tags: i, nodeActions: a, nodeTagTypes: o, defaultVisibleTagTypes: s, pinnedTagTypes: c, lockedTagTypes: l, currentUserNodeId: u, getNodeId: d, getChildrenCount: f, stackNodes: p, stackedTrailing: m, childrenFilters: h, defaultExpandDepth: g, revealNodeId: _, searchSelectionNonce: v, focusOnEntry: y, initialSelectedNodeId: b, loadNodePath: x, getParentId: S, loadNodeData: C, liveUpdate: w, zoomPreset: T, minZoom: E, maxZoom: D, centerOnNodeClick: O, nodeClickZoom: k, viewportInset: A, showControls: j, canvasFooterActions: M, enableNodeWindowing: N, nodeWindowPadding: P, loadVisibleNodeData: F, visibleDataDebounceMs: I, onLoadData: L, onLoadError: ee, onExpandedNodesChange: te }) => {
80577
+ let { nodes: R, expandedNodes: ne, setExpandedNodes: re, focusedNode: ie, highlightedNodes: ae, revealNode: oe, clearFocus: z, loadVisibleNodeData: se, isInitialLoading: ce } = v7e(e, {
80572
80578
  title: t,
80573
80579
  subtitle: n,
80574
80580
  avatar: r,
@@ -80587,49 +80593,50 @@ var y7e = ({ source: e, title: t, subtitle: n, avatar: r, tags: i, nodeActions:
80587
80593
  showControls: j
80588
80594
  }, {
80589
80595
  onLoadData: L,
80590
- onLoadError: ee
80591
- }), ce = W(null), [le] = G(() => b !== void 0), [ue, de] = G(() => b ? /* @__PURE__ */ new Set([b]) : /* @__PURE__ */ new Set()), fe = W(re);
80596
+ onLoadError: ee,
80597
+ onExpandedNodesChange: te
80598
+ }), le = W(null), [ue] = G(() => b !== void 0), [de, fe] = G(() => b ? /* @__PURE__ */ new Set([b]) : /* @__PURE__ */ new Set()), pe = W(ie);
80592
80599
  H(() => {
80593
- fe.current = re;
80594
- }, [re]);
80595
- let pe = V(async (e) => {
80596
- let t = fe.current === e;
80597
- await ae(e), ce.current?.clearSelection(), t && ce.current?.focusNode(e);
80598
- }, [ae]), me = W(void 0), he = W(void 0), ge = W(!1);
80600
+ pe.current = ie;
80601
+ }, [ie]);
80602
+ let me = V(async (e) => {
80603
+ let t = pe.current === e;
80604
+ await oe(e), le.current?.clearSelection(), t && le.current?.focusNode(e);
80605
+ }, [oe]), he = W(void 0), ge = W(void 0), _e = W(!1);
80599
80606
  H(() => {
80600
- if (se) return;
80607
+ if (ce) return;
80601
80608
  let e = l7e({
80602
- isInitialLoading: se,
80603
- initialConsumed: ge.current,
80609
+ isInitialLoading: ce,
80610
+ initialConsumed: _e.current,
80604
80611
  revealNodeId: _,
80605
- lastRevealed: me.current,
80612
+ lastRevealed: he.current,
80606
80613
  revealNonce: v,
80607
- lastNonce: he.current
80614
+ lastNonce: ge.current
80608
80615
  });
80609
- e.consumeInitial && (ge.current = !0), me.current = e.lastRevealed, he.current = e.lastNonce, e.revealId && pe(e.revealId);
80616
+ e.consumeInitial && (_e.current = !0), he.current = e.lastRevealed, ge.current = e.lastNonce, e.revealId && me(e.revealId);
80610
80617
  }, [
80611
80618
  _,
80612
80619
  v,
80613
- pe,
80614
- se
80620
+ me,
80621
+ ce
80615
80622
  ]);
80616
- let _e = W(e.setCurrentSearch);
80617
- _e.current = e.setCurrentSearch, H(() => (_e.current(void 0), () => _e.current(void 0)), []);
80618
- let { settings: ve } = PH(), ye = ve.visualization.graph, be = o ? [...o] : [], xe = new Set(s ?? be), Se = new Set(c ?? []), Ce = new Set(Object.keys(l ?? {})), we = new Set(ye?.hidden ?? be.filter((e) => !xe.has(e))), Te = ye?.order ?? be, Ee = be.sort((e, t) => (Te.includes(e) ? Te.indexOf(e) : Infinity) - (Te.includes(t) ? Te.indexOf(t) : Infinity)), De = Ee.filter((e) => !Ce.has(e) && (Se.has(e) || !we.has(e))), Oe = i ? (e) => [...i(e)].sort((e, t) => Ee.indexOf(FJ(e)) - Ee.indexOf(FJ(t))) : void 0;
80623
+ let ve = W(e.setCurrentSearch);
80624
+ ve.current = e.setCurrentSearch, H(() => (ve.current(void 0), () => ve.current(void 0)), []);
80625
+ let { settings: ye } = PH(), be = ye.visualization.graph, xe = o ? [...o] : [], Se = new Set(s ?? xe), Ce = new Set(c ?? []), we = new Set(Object.keys(l ?? {})), Te = new Set(be?.hidden ?? xe.filter((e) => !Se.has(e))), Ee = be?.order ?? xe, De = xe.sort((e, t) => (Ee.includes(e) ? Ee.indexOf(e) : Infinity) - (Ee.includes(t) ? Ee.indexOf(t) : Infinity)), Oe = De.filter((e) => !we.has(e) && (Ce.has(e) || !Te.has(e))), ke = i ? (e) => [...i(e)].sort((e, t) => De.indexOf(FJ(e)) - De.indexOf(FJ(t))) : void 0;
80619
80626
  return /* @__PURE__ */ K("div", {
80620
80627
  className: "flex h-full min-h-0 flex-1 flex-col border-0 border-t border-solid border-f1-border-secondary bg-[hsl(var(--neutral-3))]",
80621
- children: se ? /* @__PURE__ */ K(X5e, { showTags: i !== void 0 }) : /* @__PURE__ */ K(AJ, {
80622
- ref: ce,
80623
- nodes: te,
80624
- expandedNodes: R,
80625
- onExpandedNodesChange: ne,
80626
- focusedNode: re,
80628
+ children: ce ? /* @__PURE__ */ K(X5e, { showTags: i !== void 0 }) : /* @__PURE__ */ K(AJ, {
80629
+ ref: le,
80630
+ nodes: R,
80631
+ expandedNodes: ne,
80632
+ onExpandedNodesChange: re,
80633
+ focusedNode: ie,
80627
80634
  initialFocusNodeId: y,
80628
- highlightedNodes: ie,
80635
+ highlightedNodes: ae,
80629
80636
  selectionMode: "single",
80630
- selectedNodes: le ? ue : void 0,
80637
+ selectedNodes: ue ? de : void 0,
80631
80638
  onSelectedNodesChange: (e) => {
80632
- le && de(e), e.size > 0 && oe();
80639
+ ue && fe(e), e.size > 0 && z();
80633
80640
  },
80634
80641
  showControls: j ?? !0,
80635
80642
  canvasFooterActions: M,
@@ -80641,14 +80648,14 @@ var y7e = ({ source: e, title: t, subtitle: n, avatar: r, tags: i, nodeActions:
80641
80648
  viewportInset: A,
80642
80649
  enableNodeWindowing: N,
80643
80650
  nodeWindowPadding: P,
80644
- loadVisibleNodeData: z ?? F,
80651
+ loadVisibleNodeData: se ?? F,
80645
80652
  visibleDataDebounceMs: I,
80646
80653
  reserveTagRow: i !== void 0,
80647
80654
  nodeTagTypes: o,
80648
- visibleTagTypes: De,
80655
+ visibleTagTypes: Oe,
80649
80656
  currentUserNodeId: u,
80650
- onFocusUser: u ? () => pe(u) : void 0,
80651
- onPaneClick: oe,
80657
+ onFocusUser: u ? () => me(u) : void 0,
80658
+ onPaneClick: z,
80652
80659
  renderNode: (i, o) => {
80653
80660
  let s = e.itemOnClick?.(i.data);
80654
80661
  return /* @__PURE__ */ K(c7e, {
@@ -80658,7 +80665,7 @@ var y7e = ({ source: e, title: t, subtitle: n, avatar: r, tags: i, nodeActions:
80658
80665
  title: t(i.data),
80659
80666
  trailing: m?.(i.data),
80660
80667
  subtitle: n?.(i.data),
80661
- tags: Oe?.(i.data),
80668
+ tags: ke?.(i.data),
80662
80669
  actions: a?.(i.data),
80663
80670
  hoverCard: !0,
80664
80671
  onClick: () => {
@@ -82565,7 +82572,7 @@ var XJ = ({ lanes: e, renderCard: t, getKey: n, onCreate: r, onMove: i, idProvid
82565
82572
  })]
82566
82573
  })
82567
82574
  });
82568
- }, h9e = vre(() => import("./Map-BDMz636c.js").then((e) => ({ default: e.MapCollection }))), oY = {
82575
+ }, h9e = vre(() => import("./Map-rOJdvwq8.js").then((e) => ({ default: e.MapCollection }))), oY = {
82569
82576
  table: {
82570
82577
  name: "Table",
82571
82578
  icon: eee,
@@ -1,5 +1,5 @@
1
1
  import { L as e } from "./tooltip-BX4dSfeL.js";
2
- import { i as t, t as n } from "./highlight-BFih_ytR.js";
2
+ import { i as t, t as n } from "./highlight-zua_Bm-I.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-C_jciu_6.js";
2
2
  import { t } from "./skeleton-BEiQvWC1.js";
3
3
  import { L as n } from "./tooltip-BX4dSfeL.js";
4
- import { Jc as r, Xr as i } from "./F0CanvasPanel-BKvyk32z.js";
4
+ import { Jc as r, Xr as i } from "./F0CanvasPanel-D8tYmeE6.js";
5
5
  import { St as a } from "./F0Select-DLK87Tv6.js";
6
6
  import { t as o } from "./purify.es-ZpfdAuNV.js";
7
- import { n as s, t as c } from "./DocumentToolbar-BHrbd-HZ.js";
8
- import { a as l, i as u, n as d, o as f, r as p, t as m } from "./highlight-BFih_ytR.js";
7
+ import { n as s, t as c } from "./DocumentToolbar-BzEUGQ-2.js";
8
+ import { a as l, i as u, n as d, o as f, r as p, t as m } from "./highlight-zua_Bm-I.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-C_jciu_6.js";
2
- import { vc as t } from "./F0CanvasPanel-BKvyk32z.js";
2
+ import { vc as t } from "./F0CanvasPanel-D8tYmeE6.js";
3
3
  import { R as n } from "./useData-CuyhVJ87.js";
4
4
  import { cr as r, t as i } from "./F0Select-DLK87Tv6.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-Bm2pq-KH.js";
@@ -1,6 +1,6 @@
1
1
  import { r as e } from "./i18n-provider-C_jciu_6.js";
2
2
  import { t } from "./skeleton-BEiQvWC1.js";
3
- import { n, t as r } from "./DocumentToolbar-BHrbd-HZ.js";
3
+ import { n, t as r } from "./DocumentToolbar-BzEUGQ-2.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-C_jciu_6.js";
2
2
  import { n, t as r } from "./skeleton-BEiQvWC1.js";
3
3
  import { L as i, R as a } from "./tooltip-BX4dSfeL.js";
4
4
  import { K as o, T as s, U as c, h as l, n as u, r as d, t as f, y as p } from "./F0Button-DliApWoo.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-BKvyk32z.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-D8tYmeE6.js";
6
6
  import { o as Ot, t as G } from "./F0Icon-Dw-YD4Mz.js";
7
7
  import { t as kt } from "./i18n-provider-defaults-zH8WIgXQ.js";
8
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-CuyhVJ87.js";
@@ -1,7 +1,7 @@
1
1
  import { a as e, r as t } from "./i18n-provider-C_jciu_6.js";
2
2
  import { L as n } from "./tooltip-BX4dSfeL.js";
3
3
  import { t as r } from "./F0Button-DliApWoo.js";
4
- import { Cc as i, co as a, ki as o, ms as s } from "./F0CanvasPanel-BKvyk32z.js";
4
+ import { Cc as i, co as a, ki as o, ms as s } from "./F0CanvasPanel-D8tYmeE6.js";
5
5
  import { o as c } from "./F0Icon-Dw-YD4Mz.js";
6
6
  import { g as l } from "./useData-CuyhVJ87.js";
7
7
  import { useRef as u } from "react";
@@ -0,0 +1,2 @@
1
+ export { Ai as F0AudioPlayer } from "./F0CanvasPanel-D8tYmeE6.js";
2
+ import "./f0.js";
@@ -42149,7 +42149,7 @@ var e0 = o("F0FileItem", r($1)), t0 = e0, n0 = 2, r0 = 70, i0 = .08, a0 = 6, o0
42149
42149
  }, f4 = (e) => ({
42150
42150
  url: l4(e),
42151
42151
  name: c4(e)
42152
- }), p4 = () => import("./F0DocumentViewer-CSJh6Ed7.js"), m4 = (e, t) => {
42152
+ }), p4 = () => import("./F0DocumentViewer-bdMJ__pm.js"), m4 = (e, t) => {
42153
42153
  if (e.length < 2) return [];
42154
42154
  let n = n4(t, 1, e.length), r = n4(t, -1, e.length);
42155
42155
  return [.../* @__PURE__ */ new Set([n, r])].filter((e) => e !== t).map((t) => e[t]);
@@ -42188,7 +42188,7 @@ var e0 = o("F0FileItem", r($1)), t0 = e0, n0 = 2, r0 = 70, i0 = .08, a0 = 6, o0
42188
42188
  n,
42189
42189
  r
42190
42190
  ]);
42191
- }, _4 = fi(() => p4().then((e) => ({ default: e.F0DocumentViewer }))), v4 = fi(() => import("./F0VideoPlayer-CsCI9jzU.js").then((e) => ({ default: e.F0VideoPlayer }))), y4 = fi(() => import("./F0AudioPlayer-Wj-PKKtF.js").then((e) => ({ default: e.F0AudioPlayer }))), b4 = 24, x4 = () => {}, S4 = R(({ item: e, reloadKey: t = 0, direction: n, immersive: r = !1, onDownload: i, onSettled: a }, o) => {
42191
+ }, _4 = fi(() => p4().then((e) => ({ default: e.F0DocumentViewer }))), v4 = fi(() => import("./F0VideoPlayer-BmIMWeWW.js").then((e) => ({ default: e.F0VideoPlayer }))), y4 = fi(() => import("./F0AudioPlayer-DcdzvgBI.js").then((e) => ({ default: e.F0AudioPlayer }))), b4 = 24, x4 = () => {}, S4 = R(({ item: e, reloadKey: t = 0, direction: n, immersive: r = !1, onDownload: i, onSettled: a }, o) => {
42192
42192
  let { reducedMotion: s } = x0(), l = e.kind === "document";
42193
42193
  return /* @__PURE__ */ U("div", {
42194
42194
  ref: o,
@@ -44804,7 +44804,7 @@ var v8 = ({ children: e, className: t, lines: n = 1 }) => n > 1 ? /* @__PURE__ *
44804
44804
  }, []),
44805
44805
  shouldMount: e
44806
44806
  };
44807
- }, w8 = () => import("./PdfThumbnail-CHPvHqdQ.js"), T8 = () => import("./SheetThumbnail-HtGezPp4.js"), E8 = () => import("./DocxThumbnail-CK9vFoTB.js"), D8 = () => import("./TextThumbnail-DKNxh344.js"), O8 = () => import("./CodeThumbnail-C6HoRhcZ.js"), k8 = () => import("./HtmlThumbnail-B_9tldlm.js"), A8 = () => import("./ArchiveThumbnail-DmnSGwhP.js"), j8 = fi(w8), M8 = fi(T8), N8 = fi(E8), P8 = fi(D8), F8 = fi(O8), I8 = fi(k8), L8 = fi(A8), R8 = 384, z8 = 160, B8 = ({ kind: e, file: t, url: n, width: r, onError: i, onRendered: a }) => e === "pdf" ? /* @__PURE__ */ U(j8, {
44807
+ }, w8 = () => import("./PdfThumbnail-Bb-KOb3F.js"), T8 = () => import("./SheetThumbnail-HtGezPp4.js"), E8 = () => import("./DocxThumbnail-CK9vFoTB.js"), D8 = () => import("./TextThumbnail-DKNxh344.js"), O8 = () => import("./CodeThumbnail-Bj-Abcwc.js"), k8 = () => import("./HtmlThumbnail-B_9tldlm.js"), A8 = () => import("./ArchiveThumbnail-CWbHqWac.js"), j8 = fi(w8), M8 = fi(T8), N8 = fi(E8), P8 = fi(D8), F8 = fi(O8), I8 = fi(k8), L8 = fi(A8), R8 = 384, z8 = 160, B8 = ({ kind: e, file: t, url: n, width: r, onError: i, onRendered: a }) => e === "pdf" ? /* @__PURE__ */ U(j8, {
44808
44808
  url: n,
44809
44809
  width: r,
44810
44810
  onError: i,
@@ -46897,7 +46897,7 @@ var c9 = o("DataList", s9), l9 = Object.assign(c9, {
46897
46897
  s
46898
46898
  ]
46899
46899
  });
46900
- }, y9 = fi(() => import("./F0VideoPlayer-CsCI9jzU.js").then((e) => ({ default: e.F0VideoPlayer }))), b9 = ({ file: e, cornerClass: t, className: n, surfaceClassName: r, meta: i, onDownloaded: o, testIdPrefix: s = "chat" }) => {
46900
+ }, y9 = fi(() => import("./F0VideoPlayer-BmIMWeWW.js").then((e) => ({ default: e.F0VideoPlayer }))), b9 = ({ file: e, cornerClass: t, className: n, surfaceClassName: r, meta: i, onDownloaded: o, testIdPrefix: s = "chat" }) => {
46901
46901
  let u = a(), { urlCache: d } = x0(), f = F0(), [p, m] = H(!1), [h, g] = H(!1), _ = d !== null && !g0(e.url), [v, y] = H(!1), b = N0(e.url, { enabled: !_ || v }), x = N0(e.thumbnailUrl), S = x.status === "ready" ? x.url : void 0, C = e.size == null ? null : f2(e.size), w = {
46902
46902
  label: u.t("chat.downloadNamedFile", { name: e.name }),
46903
46903
  icon: Eo,
@@ -1,7 +1,7 @@
1
1
  import { a as e, r as t } from "./i18n-provider-C_jciu_6.js";
2
2
  import { n, t as r } from "./skeleton-BEiQvWC1.js";
3
3
  import { L as i } from "./tooltip-BX4dSfeL.js";
4
- import { bo as a } from "./F0CanvasPanel-BKvyk32z.js";
4
+ import { bo as a } from "./F0CanvasPanel-D8tYmeE6.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-CBs15JQG.js")), m = c(() => import("./SheetViewer-BaqxWzpW.js")), h = c(() => import("./DocxViewer-V8WC-PWo.js")), g = c(() => import("./TextViewer-DdEtdDZH.js")), _ = c(() => import("./CodeViewer-BZRBu6at.js")), v = c(() => import("./HtmlViewer-BVkwk56S.js")), y = c(() => import("./ArchiveViewer-RNMB3M36.js")), b = s((e, t) => {
39
+ }, p = c(() => import("./PdfViewer-Xiqq3HFU.js")), m = c(() => import("./SheetViewer-DH28ndQ_.js")), h = c(() => import("./DocxViewer-iewvkeU1.js")), g = c(() => import("./TextViewer-DjfPIFEN.js")), _ = c(() => import("./CodeViewer-wZ8404xZ.js")), v = c(() => import("./HtmlViewer-Bq-aon1a.js")), y = c(() => import("./ArchiveViewer-BoRgb-kZ.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, {}),
@@ -1,3 +1,3 @@
1
- import { n as e, r as t, t as n } from "./F0DocumentViewer-B2vIyYsn.js";
1
+ import { n as e, r as t, t as n } from "./F0DocumentViewer-BVMBxQHk.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,8 +1,8 @@
1
- import { Si as e, a as t, o as n } from "./CoachmarkProvider-fehx7Q_o.js";
1
+ import { Si as e, a as t, o as n } from "./CoachmarkProvider-Bh4LIxUN.js";
2
2
  import { i as r, r as i } from "./i18n-provider-C_jciu_6.js";
3
3
  import { L as a, R as o } from "./tooltip-BX4dSfeL.js";
4
4
  import { H as s, K as c, T as l, U as u, b as d, h as f, t as p } from "./F0Button-DliApWoo.js";
5
- import { Cc as m, Dt as h, Ts as g, Xo as _, l as v, oc as y } from "./F0CanvasPanel-BKvyk32z.js";
5
+ import { Cc as m, Dt as h, Ts as g, Xo as _, l as v, oc as y } from "./F0CanvasPanel-D8tYmeE6.js";
6
6
  import { t as b } from "./F0Icon-Dw-YD4Mz.js";
7
7
  import { H as x, M as S, R as C, f as w, w as T } from "./useData-CuyhVJ87.js";
8
8
  import { n as E, o as D, s as ee, t as O } from "./dist-Cuwaibqg.js";
@@ -1609,7 +1609,7 @@ var Xt = {
1609
1609
  isDark: e
1610
1610
  };
1611
1611
  }, tn = {
1612
- maplibre: async () => (await import("./maplibre-DYSBHNua.js")).createMaplibreAdapter,
1612
+ maplibre: async () => (await import("./maplibre-lS7uCTWW.js")).createMaplibreAdapter,
1613
1613
  google: async (e) => (await import("./google-D1V0swd7.js")).loadGoogleAdapter(e)
1614
1614
  }, nn = /* @__PURE__ */ new Map(), rn = (e, t) => {
1615
1615
  let n = nn.get(e);
@@ -0,0 +1 @@
1
+ export { t as F0VideoPlayer } from "./F0VideoPlayer-Dlwo-iuI.js";
@@ -2,7 +2,7 @@ import { a as e, r as t } from "./i18n-provider-C_jciu_6.js";
2
2
  import { n } from "./skeleton-BEiQvWC1.js";
3
3
  import { L as r, R as i } from "./tooltip-BX4dSfeL.js";
4
4
  import { t as a } from "./F0Button-DliApWoo.js";
5
- import { Fo as o, Io as s, Lo as c, Ms as l, as as u, nc as d, vc as f, zs as p } from "./F0CanvasPanel-BKvyk32z.js";
5
+ import { Fo as o, Io as s, Lo as c, Ms as l, as as u, nc as d, vc as f, zs as p } from "./F0CanvasPanel-D8tYmeE6.js";
6
6
  import { n as m, t as h } from "./F0Icon-Dw-YD4Mz.js";
7
7
  import { t as g } from "./Check-DAp9gCRh.js";
8
8
  import { a as _, i as v, n as y, o as b, r as x, t as S } from "./localized-CnKvEJya.js";
@@ -1,12 +1,12 @@
1
1
  import { r as e } from "./i18n-provider-C_jciu_6.js";
2
2
  import { t } from "./skeleton-BEiQvWC1.js";
3
3
  import { L as n } from "./tooltip-BX4dSfeL.js";
4
- import { Gc as r } from "./F0CanvasPanel-BKvyk32z.js";
4
+ import { Gc as r } from "./F0CanvasPanel-D8tYmeE6.js";
5
5
  import { t as i } from "./F0Icon-Dw-YD4Mz.js";
6
6
  import { ur as a } from "./F0Select-DLK87Tv6.js";
7
- import { t as o } from "./F0Alert-D4m2sucP.js";
7
+ import { t as o } from "./F0Alert-B4OGXz1X.js";
8
8
  import { r as s } from "./toolbarStyles-Bm2pq-KH.js";
9
- import { t as c } from "./DocumentToolbar-BHrbd-HZ.js";
9
+ import { t as c } from "./DocumentToolbar-BzEUGQ-2.js";
10
10
  import { t as l } from "./useFetchedText-BR3_KLXx.js";
11
11
  import { a as u, c as d, i as f, l as p, n as m, o as h, r as g, s as _, t as v, u as y } from "./SandboxedHtmlFrame-CWcJ_fWA.js";
12
12
  import { useEffect as b, useMemo as x, useRef as S, useState as C } from "react";