@factorialco/f0-react 16.25.3 → 16.26.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.
Files changed (60) hide show
  1. package/dist/{ArchiveThumbnail-DrlQCpa9.js → ArchiveThumbnail-DzIyZ12Q.js} +3 -3
  2. package/dist/{ArchiveViewer-e5gDqbRQ.js → ArchiveViewer-DkRAYkri.js} +5 -5
  3. package/dist/{ChatPostComposerDialog-Raz9aUqE.js → ChatPostComposerDialog-BTKk2cNE.js} +3 -3
  4. package/dist/{CoachmarkProvider-BaG6nTzJ.js → CoachmarkProvider-q-d7Bmxw.js} +16703 -16699
  5. package/dist/{CodeThumbnail-S1Gh7dtQ.js → CodeThumbnail-D8MkUDmG.js} +1 -1
  6. package/dist/{CodeViewer-DTtGdDc2.js → CodeViewer-BYcgGscF.js} +8 -8
  7. package/dist/{DocumentToolbar-3enTl24j.js → DocumentToolbar-CrFdLz-F.js} +5 -5
  8. package/dist/{DocxViewer-DRcX9fii.js → DocxViewer-aD7eH3Uw.js} +3 -3
  9. package/dist/{F0AiProcessingOverlay-DXnk36T0.js → F0AiProcessingOverlay-CcqzRC3c.js} +255 -255
  10. package/dist/{F0Alert-BBfbUoFr.js → F0Alert-BqKPcVKS.js} +7 -7
  11. package/dist/F0AudioPlayer-gWOm4JPQ.js +2 -0
  12. package/dist/{F0Button-C1aRGjA7.js → F0Button-BU859Fsf.js} +3 -3
  13. package/dist/{F0CanvasPanel-BO8mckaU.js → F0CanvasPanel-C_0qA--h.js} +5997 -5967
  14. package/dist/{F0DocumentViewer-B7cAb7L7.js → F0DocumentViewer-CuMNT9nA.js} +4 -4
  15. package/dist/{F0DocumentViewer-DTbfrU29.js → F0DocumentViewer-Dqo7YPPv.js} +1 -1
  16. package/dist/{F0Icon-CA8QrO7J.js → F0Icon-CGpfItEb.js} +1 -1
  17. package/dist/{F0Map-CLsg8oOb.js → F0Map-CfRqEgcP.js} +12 -12
  18. package/dist/{F0Select-Dj-l2-jG.js → F0Select-mZqLRgo0.js} +144 -146
  19. package/dist/{F0Text-C69-6-hA.js → F0Text-BAjgLVuY.js} +2 -2
  20. package/dist/F0VideoPlayer-BJhrt6DN.js +1 -0
  21. package/dist/{F0VideoPlayer-0OwghjNZ.js → F0VideoPlayer-e0h-ZJhe.js} +22 -22
  22. package/dist/{HtmlThumbnail-DOW0qL8W.js → HtmlThumbnail-DjbK49YJ.js} +1 -1
  23. package/dist/{HtmlViewer-0kpL-7SJ.js → HtmlViewer-DZJXxqs3.js} +9 -9
  24. package/dist/{LayoutGroup-DnZBITzE.js → LayoutGroup-QheQS7fV.js} +1 -1
  25. package/dist/{Map-CPqPqujT.js → Map-CbW-QmBm.js} +10 -10
  26. package/dist/{PdfThumbnail-Ct2loeCb.js → PdfThumbnail-DlL7L-b1.js} +1 -1
  27. package/dist/{PdfViewer-CLTywOkD.js → PdfViewer-DnlgiPre.js} +8 -8
  28. package/dist/{SandboxedHtmlFrame-sIha8vuj.js → SandboxedHtmlFrame-ByXnijnz.js} +2 -2
  29. package/dist/{SheetViewer-LWX-ryyE.js → SheetViewer-B4yvkna2.js} +5 -5
  30. package/dist/{TextViewer-Bj1x-gnk.js → TextViewer-DXwPFuMC.js} +4 -4
  31. package/dist/ai.d.ts +3 -3
  32. package/dist/ai.js +4 -4
  33. package/dist/component-status.js +2 -2
  34. package/dist/{dist-R_v43tri.js → dist-BD12P2GA.js} +1 -1
  35. package/dist/{dist-CsLQ4kGY.js → dist-BZ_Y1IQR.js} +1 -1
  36. package/dist/{dist-CrKS7a4M.js → dist-C2r3Y3bk.js} +1 -1
  37. package/dist/{dist-S2UAyvMo.js → dist-CN3PC8Ve.js} +4 -4
  38. package/dist/{dist-DRhAsNk-.js → dist-DQbyEaUi.js} +2 -2
  39. package/dist/experimental.d.ts +86 -23
  40. package/dist/experimental.js +6426 -5877
  41. package/dist/{exports-BLEz8iU-.d.ts → exports-TEMIeBsX.d.ts} +1 -1
  42. package/dist/f0.d.ts +5 -5
  43. package/dist/f0.js +176 -176
  44. package/dist/{highlight-CxAdyK6c.js → highlight-Bhj63_ff.js} +1 -1
  45. package/dist/{i18n-provider-CCg0vfdK.js → i18n-provider-Bj_yUCV4.js} +1 -1
  46. package/dist/{i18n-provider-defaults-CXVl-d7E.d.ts → i18n-provider-defaults-Cg_jw8FI.d.ts} +32 -0
  47. package/dist/{i18n-provider-defaults-DdGz6_Og.js → i18n-provider-defaults-H4N1k7Qh.js} +32 -1
  48. package/dist/i18n-provider-defaults.d.ts +1 -1
  49. package/dist/i18n-provider-defaults.js +1 -1
  50. package/dist/{index-rB6-YKod.d.ts → index-D3U8ONFo.d.ts} +25 -13
  51. package/dist/{index-DUvBbZtb.d.ts → index-p0sjT_0D.d.ts} +3 -1
  52. package/dist/{maplibre-XmoJ3Ohe.js → maplibre-C3jktLEx.js} +1 -1
  53. package/dist/{pdfWorker-DuRYD5zF.js → pdfWorker-BoivA5kI.js} +1 -1
  54. package/dist/{popover-BFt-Tk2I.js → popover-Cye-H1wu.js} +1 -1
  55. package/dist/{skeleton-B05pNPYx.js → skeleton-BlWRZvRy.js} +1 -1
  56. package/dist/{toolbarStyles-Btq_icPl.js → toolbarStyles-CRHL8QLK.js} +1 -1
  57. package/dist/{useData-CzdjLV9a.js → useData-8I_yfx23.js} +6 -6
  58. package/package.json +1 -1
  59. package/dist/F0AudioPlayer-BhcOJYGr.js +0 -2
  60. package/dist/F0VideoPlayer-zVPFkYQE.js +0 -1
@@ -1,7 +1,7 @@
1
- import { a as e, r as t } from "./i18n-provider-CCg0vfdK.js";
2
- import { n, t as r } from "./skeleton-B05pNPYx.js";
1
+ import { a as e, r as t } from "./i18n-provider-Bj_yUCV4.js";
2
+ import { n, t as r } from "./skeleton-BlWRZvRy.js";
3
3
  import { L as i } from "./tooltip-NXXT56H4.js";
4
- import { rs as a } from "./F0CanvasPanel-BO8mckaU.js";
4
+ import { rs as a } from "./F0CanvasPanel-C_0qA--h.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-CLTywOkD.js")), m = c(() => import("./SheetViewer-LWX-ryyE.js")), h = c(() => import("./DocxViewer-DRcX9fii.js")), g = c(() => import("./TextViewer-Bj1x-gnk.js")), _ = c(() => import("./CodeViewer-DTtGdDc2.js")), v = c(() => import("./HtmlViewer-0kpL-7SJ.js")), y = c(() => import("./ArchiveViewer-e5gDqbRQ.js")), b = s((e, t) => {
39
+ }, p = c(() => import("./PdfViewer-DnlgiPre.js")), m = c(() => import("./SheetViewer-B4yvkna2.js")), h = c(() => import("./DocxViewer-aD7eH3Uw.js")), g = c(() => import("./TextViewer-DXwPFuMC.js")), _ = c(() => import("./CodeViewer-BYcgGscF.js")), v = c(() => import("./HtmlViewer-DZJXxqs3.js")), y = c(() => import("./ArchiveViewer-DkRAYkri.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-B7cAb7L7.js";
1
+ import { n as e, r as t, t as n } from "./F0DocumentViewer-CuMNT9nA.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,4 +1,4 @@
1
- import { a as e } from "./i18n-provider-CCg0vfdK.js";
1
+ import { a as e } from "./i18n-provider-Bj_yUCV4.js";
2
2
  import { L as t, z as n } from "./tooltip-NXXT56H4.js";
3
3
  import * as r from "react";
4
4
  import { createContext as i, forwardRef as a, useCallback as o, useContext as s, useEffect as c, useImperativeHandle as l, useRef as u, useState as d } from "react";
@@ -1,10 +1,10 @@
1
- import { Ci as e, a as t, o as n } from "./CoachmarkProvider-BaG6nTzJ.js";
2
- import { i as r, r as i } from "./i18n-provider-CCg0vfdK.js";
1
+ import { Ci as e, a as t, o as n } from "./CoachmarkProvider-q-d7Bmxw.js";
2
+ import { i as r, r as i } from "./i18n-provider-Bj_yUCV4.js";
3
3
  import { L as a, R as o } from "./tooltip-NXXT56H4.js";
4
- import { D as s, G as c, K as l, Y as u, h as d, t as f, x as p } from "./F0Button-C1aRGjA7.js";
5
- import { Ms as m, Vc as h, al as g, m as _, nn as v, r as y, sc as b } from "./F0CanvasPanel-BO8mckaU.js";
6
- import { t as x } from "./F0Icon-CA8QrO7J.js";
7
- import { B as S, E as C, P as w, W as T, m as E } from "./useData-CzdjLV9a.js";
4
+ import { D as s, G as c, K as l, Y as u, h as d, t as f, x as p } from "./F0Button-BU859Fsf.js";
5
+ import { Hc as m, Ms as h, cc as g, m as _, nn as v, ol as y, r as b } from "./F0CanvasPanel-C_0qA--h.js";
6
+ import { t as x } from "./F0Icon-CGpfItEb.js";
7
+ import { B as S, E as C, P as w, W as T, m as E } from "./useData-8I_yfx23.js";
8
8
  import { n as D, o as ee, s as O, t as k } from "./dist-DMTFO2gF.js";
9
9
  import { createContext as A, forwardRef as j, useCallback as M, useContext as te, useEffect as N, useId as ne, useImperativeHandle as re, useLayoutEffect as ie, useMemo as P, useRef as F, useState as I } from "react";
10
10
  import { Fragment as ae, jsx as L, jsxs as R } from "react/jsx-runtime";
@@ -408,14 +408,14 @@ var W = Ce, we = (e, t) => `hsl(${ye(e, t).replace(/ /g, ", ")})`, Te = (e, t) =
408
408
  variant: "ghost",
409
409
  size: "md",
410
410
  label: o?.fit ?? l.map.controls.fit,
411
- icon: h,
411
+ icon: m,
412
412
  hideLabel: !0,
413
413
  onClick: n
414
414
  }) : null, a ? /* @__PURE__ */ L(f, {
415
415
  variant: "ghost",
416
416
  size: "md",
417
417
  label: o?.locate ?? l.map.controls.locate,
418
- icon: m,
418
+ icon: h,
419
419
  hideLabel: !0,
420
420
  onClick: a
421
421
  }) : null] })) : null, d ? p(/* @__PURE__ */ R(ae, { children: [e ? /* @__PURE__ */ L(f, {
@@ -734,7 +734,7 @@ var Fe = ({ adapter: e, points: t, enabled: n, radius: r = 12, clusterRadius: i
734
734
  case "workplace": return {
735
735
  variant: {
736
736
  variant: "icon",
737
- icon: b
737
+ icon: g
738
738
  },
739
739
  color: qe
740
740
  };
@@ -1380,7 +1380,7 @@ function Lt({ isExpanded: e, isHovered: t = !1 }) {
1380
1380
  });
1381
1381
  }
1382
1382
  function Rt() {
1383
- let { prevSidebarState: e, sidebarState: t, toggleSidebar: n } = At(), r = F(null), [a, o] = I(!1), c = y() === "two-level";
1383
+ let { prevSidebarState: e, sidebarState: t, toggleSidebar: n } = At(), r = F(null), [a, o] = I(!1), c = b() === "two-level";
1384
1384
  N(function() {
1385
1385
  c && e === "hidden" && t !== "hidden" && r.current?.focus();
1386
1386
  }, [
@@ -1463,7 +1463,7 @@ function Bt() {
1463
1463
  }), /* @__PURE__ */ L("div", {
1464
1464
  className: a("hidden", { flex: r }),
1465
1465
  children: /* @__PURE__ */ L(x, {
1466
- icon: g,
1466
+ icon: y,
1467
1467
  size: "md"
1468
1468
  })
1469
1469
  })]
@@ -1614,7 +1614,7 @@ var Yt = {
1614
1614
  isDark: e
1615
1615
  };
1616
1616
  }, en = {
1617
- maplibre: async () => (await import("./maplibre-XmoJ3Ohe.js")).createMaplibreAdapter,
1617
+ maplibre: async () => (await import("./maplibre-C3jktLEx.js")).createMaplibreAdapter,
1618
1618
  google: async (e) => (await import("./google-DDQ7XfPD.js")).loadGoogleAdapter(e)
1619
1619
  }, tn = /* @__PURE__ */ new Map(), nn = (e, t) => {
1620
1620
  let n = tn.get(e);
@@ -1,17 +1,17 @@
1
1
  import { o as e, r as t, t as n } from "./rolldown-runtime-BItFwnF5.js";
2
- import { a as r, i, r as a } from "./i18n-provider-CCg0vfdK.js";
3
- import { n as o, t as s } from "./skeleton-B05pNPYx.js";
2
+ import { a as r, i, r as a } from "./i18n-provider-Bj_yUCV4.js";
3
+ import { n as o, t as s } from "./skeleton-BlWRZvRy.js";
4
4
  import { L as c, R as l, d as u, i as d, n as f, r as p, t as m } from "./tooltip-NXXT56H4.js";
5
- import { E as h, I as g, K as _, O as v, R as y, Y as b, d as x, h as S, k as C, n as w, r as T, t as E } from "./F0Button-C1aRGjA7.js";
6
- import { n as D, o as O, t as k } from "./F0Icon-CA8QrO7J.js";
7
- import { B as A, F as j, H as ee, L as te, P as ne, U as re, W as ie, a as ae, f as oe, h as se, i as ce, m as M, o as N, u as le, x as ue, y as de, z as fe } from "./useData-CzdjLV9a.js";
5
+ import { E as h, I as g, K as _, O as v, R as y, Y as b, d as x, h as S, k as C, n as w, r as T, t as E } from "./F0Button-BU859Fsf.js";
6
+ import { n as D, o as O, t as k } from "./F0Icon-CGpfItEb.js";
7
+ import { B as A, F as j, H as ee, L as te, P as ne, U as re, W as ie, a as ae, f as oe, h as se, i as ce, m as M, o as N, u as le, x as ue, y as de, z as fe } from "./useData-8I_yfx23.js";
8
8
  import { t as pe } from "./Check-DAp9gCRh.js";
9
- import { a as me, i as he, r as ge, t as _e } from "./dist-R_v43tri.js";
9
+ import { a as me, i as he, r as ge, t as _e } from "./dist-BD12P2GA.js";
10
10
  import { t as ve } from "./ExternalLink-RdKU698E.js";
11
11
  import { n as ye, t as be } from "./LockLocked-gdodYvT_.js";
12
12
  import "./purify.es-CJ7gZxxn.js";
13
- import { $ as xe, A as Se, B as Ce, D as we, E as Te, F as Ee, G as P, H as De, I as Oe, J as ke, L as Ae, M as je, N as Me, O as Ne, P as Pe, Q as Fe, R as Ie, U as Le, V as Re, W as ze, Y as Be, Z as Ve, a as He, i as Ue, j as We, k as Ge, q as Ke, t as qe, z as Je } from "./popover-BFt-Tk2I.js";
14
- import { b as Ye, c as Xe, d as Ze, g as Qe, h as $e, n as et, r as tt, t as nt, u as rt, v as it, y as at } from "./dist-DRhAsNk-.js";
13
+ import { $ as xe, A as Se, B as Ce, D as we, E as Te, F as Ee, G as P, H as De, I as Oe, J as ke, L as Ae, M as je, N as Me, O as Ne, P as Pe, Q as Fe, R as Ie, U as Le, V as Re, W as ze, Y as Be, Z as Ve, a as He, i as Ue, j as We, k as Ge, q as Ke, t as qe, z as Je } from "./popover-Cye-H1wu.js";
14
+ import { b as Ye, c as Xe, d as Ze, g as Qe, h as $e, n as et, r as tt, t as nt, u as rt, v as it, y as at } from "./dist-DQbyEaUi.js";
15
15
  import { t as ot } from "./dist-DMTFO2gF.js";
16
16
  import * as F from "react";
17
17
  import st, { Component as ct, Fragment as lt, cloneElement as ut, createContext as I, forwardRef as L, useCallback as R, useContext as dt, useEffect as z, useId as ft, useImperativeHandle as pt, useLayoutEffect as mt, useMemo as B, useReducer as ht, useRef as V, useState as H } from "react";
@@ -54013,8 +54013,8 @@ var sN = (e) => e.flatMap((e) => [e, ...sN(e.subGroups ?? [])]), cN = (e, t) =>
54013
54013
  }), pN = (e) => typeof e == "object" && !!e && !Array.isArray(e) && "key" in e && "records" in e, mN = (e, t) => Array.isArray(e) && t && e.some((e) => typeof e == "object" && !!e), hN = (e, t) => typeof e == "object" && !!e && !Array.isArray(e) && t;
54014
54014
  //#endregion
54015
54015
  //#region src/blocks/datasource/useSelectable/useSelectable.ts
54016
- function gN({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi", selectedState: i, onSelectItems: a, disableSelectAll: o, isSearchActive: s = !1, allPagesSelection: c, resetOnPageChange: l = !0, preserveSelectionOnDatasetChange: u = !1, getRenderedSelectableEntries: d, getRowsBelow: f, renderedSelectableCount: p = 0 }) {
54017
- let m = e.type === "grouped", h = r === "multi", g = n.selectable, _ = R((e) => n.selectionDisabled?.(e) === !0, [n]), v = o ?? n.disableSelectAll ?? !1, y = !(c ?? n.allPagesSelection ?? !1), [b, x] = H(fN(i)), [S, C] = H(/* @__PURE__ */ new Map()), [w, T] = H(!1), [E, D] = H(null), O = V(!1), k = V(""), A = V(!1), j = V(!0), ee = V(n.currentFilters), te = V(n.currentSortings), ne = n.debouncedCurrentSearch, re = V(ne), ie = V(""), ae = V(""), oe = V(!1), se = V(!1), M = V(void 0), le = B(() => {
54016
+ function gN({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi", selectedState: i, onSelectItems: a, disableSelectAll: o, isSearchActive: s = !1, allPagesSelection: c, navigationFilters: l, preserveSelectionOnDatasetChange: u = !1, getRenderedSelectableEntries: d, getRowsBelow: f, renderedSelectableCount: p = 0 }) {
54017
+ let m = e.type === "grouped", h = r === "multi", g = n.selectable, _ = R((e) => n.selectionDisabled?.(e) === !0, [n]), v = o ?? n.disableSelectAll ?? !1, y = !(c ?? n.allPagesSelection ?? !1), [b, x] = H(fN(i)), [S, C] = H(/* @__PURE__ */ new Map()), [w, T] = H(!1), [E, D] = H(null), O = V(!1), k = V(""), A = V(!1), j = V(!0), ee = V(n.currentFilters), te = V(n.currentSortings), ne = n.debouncedCurrentSearch, re = V(ne), ie = V(l), ae = V(""), oe = V(""), se = V(!1), M = V(!1), le = V(void 0), ue = B(() => {
54018
54018
  if (y) return e.records?.length || 0;
54019
54019
  let n = t ? ce(t).records ?? 0 : e.records?.length ?? 0;
54020
54020
  return Math.max(n, p);
@@ -54023,26 +54023,26 @@ function gN({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
54023
54023
  e.records?.length,
54024
54024
  y,
54025
54025
  p
54026
- ]), ue = B(() => t ? "type" in t && t.type === "pages" ? t.currentPage : "cursor" in t ? t.cursor : null : null, [t]), [de, fe] = B(() => {
54026
+ ]), de = B(() => t ? "type" in t && t.type === "pages" ? t.currentPage : "cursor" in t ? t.cursor : null : null, [t]), [fe, pe] = B(() => {
54027
54027
  let e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
54028
54028
  for (let [n, r] of b.items?.entries() || []) r.checked ? e.set(n, r.item) : t.set(n, r.item);
54029
54029
  return [e, t];
54030
- }, [b.items]), pe = de.size, me = fe.size, he = B(() => pe === le && le > 0, [le, pe]), ge = B(() => v ? !1 : s ? w && pe > 0 : (w || he) && pe > 0, [
54030
+ }, [b.items]), me = fe.size, he = pe.size, ge = B(() => me === ue && ue > 0, [ue, me]), _e = B(() => v ? !1 : s ? w && me > 0 : (w || ge) && me > 0, [
54031
54031
  v,
54032
54032
  w,
54033
- he,
54034
- pe,
54033
+ ge,
54034
+ me,
54035
54035
  s
54036
- ]), _e = B(() => v || s && !O.current || !w ? !1 : me === 0 || "indeterminate", [
54036
+ ]), ve = B(() => v || s && !O.current || !w ? !1 : he === 0 || "indeterminate", [
54037
54037
  v,
54038
54038
  w,
54039
- me,
54039
+ he,
54040
54040
  s
54041
- ]), ve = _e === "indeterminate", ye = B(() => {
54041
+ ]), ye = ve === "indeterminate", be = B(() => {
54042
54042
  let e = /* @__PURE__ */ new Map();
54043
54043
  for (let [t, n] of S.entries()) n.checked && e.set(t, n.group);
54044
54044
  return e;
54045
- }, [S]), be = B(() => {
54045
+ }, [S]), xe = B(() => {
54046
54046
  if (!m || e.type !== "grouped") return {};
54047
54047
  let t = {};
54048
54048
  for (let n of e.groups) {
@@ -54062,15 +54062,13 @@ function gN({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
54062
54062
  e,
54063
54063
  b.items,
54064
54064
  g
54065
- ]), xe = B(() => m ? Object.values(be).reduce((e, t) => e + (t.selectedCount || 0), 0) : w && E !== null ? Math.max(0, Math.max(E, p) - me) : pe, [
54066
- be,
54065
+ ]), Se = B(() => w && E !== null ? Math.max(0, Math.max(E, p) - he) : me, [
54067
54066
  E,
54067
+ he,
54068
54068
  me,
54069
- pe,
54070
- m,
54071
54069
  w,
54072
54070
  p
54073
- ]), { itemsStatus: Se, selectedIds: Ce } = B(() => {
54071
+ ]), { itemsStatus: Ce, selectedIds: we } = B(() => {
54074
54072
  let t = b.items || /* @__PURE__ */ new Map(), r = n.fetchChildren !== void 0, i = y && !r ? new Set(e.records.map((e) => g?.(e)).filter((e) => e !== void 0)) : null;
54075
54073
  return {
54076
54074
  itemsStatus: Array.from(t.values()).filter((e) => e.item === void 0 ? !1 : y && i ? i.has(e.id) : !0).map(({ item: e, checked: t }) => ({
@@ -54085,43 +54083,43 @@ function gN({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
54085
54083
  e.records,
54086
54084
  g,
54087
54085
  n.fetchChildren
54088
- ]), we = B(() => Object.fromEntries(Array.from(S.values()).map(({ group: e, checked: t }) => [e.key, !!t])), [S]), Te = B(() => ({
54089
- allChecked: _e,
54090
- itemsStatus: Se,
54091
- selectedIds: Ce,
54092
- checkedItems: Array.from(de.values()),
54093
- uncheckedItems: Array.from(fe.values()),
54094
- groupsStatus: we,
54086
+ ]), Te = B(() => Object.fromEntries(Array.from(S.values()).map(({ group: e, checked: t }) => [e.key, !!t])), [S]), Ee = B(() => ({
54087
+ allChecked: ve,
54088
+ itemsStatus: Ce,
54089
+ selectedIds: we,
54090
+ checkedItems: Array.from(fe.values()),
54091
+ uncheckedItems: Array.from(pe.values()),
54092
+ groupsStatus: Te,
54095
54093
  filters: n.currentFilters || {},
54096
- selectedCount: xe,
54097
- totalKnownItemsCount: le
54094
+ selectedCount: Se,
54095
+ totalKnownItemsCount: ue
54098
54096
  }), [
54099
- _e,
54100
- Se,
54097
+ ve,
54101
54098
  Ce,
54102
- de,
54103
- fe,
54104
54099
  we,
54100
+ fe,
54101
+ pe,
54102
+ Te,
54105
54103
  n.currentFilters,
54106
- xe,
54107
- le
54108
- ]), Ee = {
54109
- checked: w || ve,
54110
- indeterminate: ve,
54111
- selectedCount: xe,
54112
- unselectedCount: me
54113
- }, P = R((t) => b.items?.get(t)?.item ?? e.records.find((e) => {
54104
+ Se,
54105
+ ue
54106
+ ]), P = {
54107
+ checked: w || ye,
54108
+ indeterminate: ye,
54109
+ selectedCount: Se,
54110
+ unselectedCount: he
54111
+ }, De = R((t) => b.items?.get(t)?.item ?? e.records.find((e) => {
54114
54112
  let n = g?.(e);
54115
54113
  return n !== void 0 && n === t;
54116
54114
  }), [
54117
54115
  b.items,
54118
54116
  e.records,
54119
54117
  g
54120
- ]), De = R(() => e.type === "grouped" ? e.groups.flatMap((e) => e.records) : e.records, [e]), Oe = R((e) => {
54118
+ ]), Oe = R(() => e.type === "grouped" ? e.groups.flatMap((e) => e.records) : e.records, [e]), ke = R((e) => {
54121
54119
  if (!e) return "";
54122
54120
  let t = Array.from(e.items?.entries() || []).map(([e, t]) => `${e}:${t.checked}`).sort().join(","), n = Array.from(e.groups?.entries() || []).map(([e, t]) => `${e}:${t.checked}`).sort().join(",");
54123
54121
  return `${e.allSelected}|${t}|${n}`;
54124
- }, []), ke = R((t) => {
54122
+ }, []), Ae = R((t) => {
54125
54123
  let n = fN(t);
54126
54124
  x((t) => {
54127
54125
  let r = /* @__PURE__ */ new Map(), i = new Set(n.items?.keys() || []);
@@ -54130,7 +54128,7 @@ function gN({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
54130
54128
  checked: !1
54131
54129
  }) : r.set(e, n);
54132
54130
  for (let [e, t] of n.items?.entries() || []) {
54133
- let n = r.get(e), i = P(e);
54131
+ let n = r.get(e), i = De(e);
54134
54132
  if (!n) r.set(e, {
54135
54133
  id: e,
54136
54134
  checked: t.checked,
@@ -54168,9 +54166,9 @@ function gN({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
54168
54166
  e.records,
54169
54167
  g,
54170
54168
  w,
54171
- P,
54169
+ De,
54172
54170
  h
54173
- ]), Ae = R((t, n, r = !1, i) => {
54171
+ ]), je = R((t, n, r = !1, i) => {
54174
54172
  let a = (Array.isArray(t) ? t : [t]).slice(0, h ? void 0 : 1), o = Array.isArray(i) ? i : i === void 0 ? [] : [i];
54175
54173
  x((t) => {
54176
54174
  let i = !h && n ? /* @__PURE__ */ new Map() : new Map(t.items), s = 0;
@@ -54199,12 +54197,12 @@ function gN({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
54199
54197
  h,
54200
54198
  e.records,
54201
54199
  g
54202
- ]), je = R((t, n) => {
54200
+ ]), Me = R((t, n) => {
54203
54201
  if (!m || e.type !== "grouped") return;
54204
54202
  let r = pN(t) ? [t.key] : Array.isArray(t) ? [...t] : [t], i = e.groups.filter((e) => r.includes(e.key));
54205
54203
  if (i.length === 0) return;
54206
54204
  let a = i.flatMap((e) => e.records.map((e) => g?.(e)).filter((e) => e !== void 0));
54207
- a.length > 0 && Ae(a, n), C((e) => {
54205
+ a.length > 0 && je(a, n), C((e) => {
54208
54206
  let t = new Map(e);
54209
54207
  for (let e of i) t.set(e.key, {
54210
54208
  group: e,
@@ -54216,55 +54214,55 @@ function gN({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
54216
54214
  m,
54217
54215
  e,
54218
54216
  g,
54219
- Ae
54220
- ]), Me = R((e) => e.flatMap((e) => {
54217
+ je
54218
+ ]), Ne = R((e) => e.flatMap((e) => {
54221
54219
  let t = g?.(e);
54222
54220
  return t === void 0 || _(e) ? [] : [[t, e]];
54223
- }), [g, _]), Ne = R((e) => {
54221
+ }), [g, _]), Pe = R((e) => {
54224
54222
  if (!f || e.length === 0) return e;
54225
- let t = Me(e.flatMap(([e]) => f(e)));
54223
+ let t = Ne(e.flatMap(([e]) => f(e)));
54226
54224
  return [...new Map([...e, ...t]).entries()];
54227
- }, [f, Me]), Pe = R(() => {
54225
+ }, [f, Ne]), Fe = R(() => {
54228
54226
  let t = d?.() ?? [];
54229
- return t.length > 0 ? Ne(t.filter(([, e]) => !_(e))) : Ne(Me(e.records));
54227
+ return t.length > 0 ? Pe(t.filter(([, e]) => !_(e))) : Pe(Ne(e.records));
54230
54228
  }, [
54231
54229
  d,
54232
54230
  e.records,
54233
54231
  _,
54234
- Me,
54235
- Ne
54236
- ]), Fe = R((e, t) => {
54232
+ Ne,
54233
+ Pe
54234
+ ]), Ie = R((e, t) => {
54237
54235
  let n = g !== void 0, r = mN(e, n) ? e : hN(e, n) ? [e] : void 0;
54238
54236
  if (!r) {
54239
- let n = Array.isArray(e) ? e : [e], r = Me(n.flatMap((e) => f?.(e) ?? []));
54240
- Ae([.../* @__PURE__ */ new Set([...n, ...r.map(([e]) => e)])], t, !1, r.map(([, e]) => e));
54237
+ let n = Array.isArray(e) ? e : [e], r = Ne(n.flatMap((e) => f?.(e) ?? []));
54238
+ je([.../* @__PURE__ */ new Set([...n, ...r.map(([e]) => e)])], t, !1, r.map(([, e]) => e));
54241
54239
  return;
54242
54240
  }
54243
- let i = Ne(Me(r));
54244
- i.length > 0 && Ae(i.map(([e]) => e), t, !1, i.map(([, e]) => e));
54241
+ let i = Pe(Ne(r));
54242
+ i.length > 0 && je(i.map(([e]) => e), t, !1, i.map(([, e]) => e));
54245
54243
  }, [
54246
54244
  g,
54247
54245
  f,
54248
- Me,
54249
54246
  Ne,
54250
- Ae
54251
- ]), Ie = R((t) => {
54247
+ Pe,
54248
+ je
54249
+ ]), Le = R((t) => {
54252
54250
  if (!h) return;
54253
54251
  if (!t && w) {
54254
- T(!1), O.current = !1, D(null), C(/* @__PURE__ */ new Map()), oe.current = !1, x(() => ({
54252
+ T(!1), O.current = !1, D(null), C(/* @__PURE__ */ new Map()), se.current = !1, x(() => ({
54255
54253
  allSelected: !1,
54256
54254
  items: /* @__PURE__ */ new Map(),
54257
54255
  groups: /* @__PURE__ */ new Map()
54258
54256
  }));
54259
54257
  return;
54260
54258
  }
54261
- let n = m && e.type === "grouped" ? [] : Pe(), r = n.length || e.records?.length || 0;
54259
+ let n = m && e.type === "grouped" ? [] : Fe(), r = n.length || e.records?.length || 0;
54262
54260
  if (t && D((e) => e === null ? r : e), m && e.type === "grouped") {
54263
54261
  let n = e.groups.map((e) => e.key);
54264
- n.length > 0 && je(n, t);
54262
+ n.length > 0 && Me(n, t);
54265
54263
  } else {
54266
54264
  let e = n.map(([e]) => e), r = n.map(([, e]) => e);
54267
- e.length > 0 && Ae(e, t, !1, r);
54265
+ e.length > 0 && je(e, t, !1, r);
54268
54266
  }
54269
54267
  t || (T(!1), O.current = !1, D(null));
54270
54268
  }, [
@@ -54272,16 +54270,16 @@ function gN({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
54272
54270
  w,
54273
54271
  m,
54274
54272
  e,
54275
- Pe,
54276
- je,
54277
- Ae
54278
- ]), Le = R((t) => {
54273
+ Fe,
54274
+ Me,
54275
+ je
54276
+ ]), Re = R((t) => {
54279
54277
  if (h) {
54280
- if (T(t), O.current = t, D(t ? le : null), m && e.type === "grouped") {
54278
+ if (T(t), O.current = t, D(t ? ue : null), m && e.type === "grouped") {
54281
54279
  let n = e.groups.map((e) => e.key);
54282
- n.length > 0 && je(n, t);
54280
+ n.length > 0 && Me(n, t);
54283
54281
  } else if (t) {
54284
- let e = Pe();
54282
+ let e = Fe();
54285
54283
  x((t) => {
54286
54284
  let n = /* @__PURE__ */ new Map();
54287
54285
  for (let [t, r] of e) n.set(t, {
@@ -54296,8 +54294,8 @@ function gN({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
54296
54294
  };
54297
54295
  });
54298
54296
  } else {
54299
- let e = Pe().map(([e]) => e);
54300
- e.length > 0 && Ae(e, !1), x((e) => {
54297
+ let e = Fe().map(([e]) => e);
54298
+ e.length > 0 && je(e, !1), x((e) => {
54301
54299
  let t = new Map(e.items), n = !1;
54302
54300
  for (let [e, r] of t.entries()) r.checked !== !1 && (t.set(e, {
54303
54301
  ...r,
@@ -54313,14 +54311,14 @@ function gN({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
54313
54311
  }
54314
54312
  }, [
54315
54313
  h,
54316
- le,
54314
+ ue,
54317
54315
  m,
54318
54316
  e,
54319
- Pe,
54320
- je,
54321
- Ae
54322
- ]), Re = R(() => {
54323
- T(!1), O.current = !1, D(null), C(/* @__PURE__ */ new Map()), oe.current = !1, x(() => ({
54317
+ Fe,
54318
+ Me,
54319
+ je
54320
+ ]), ze = R(() => {
54321
+ T(!1), O.current = !1, D(null), C(/* @__PURE__ */ new Map()), se.current = !1, x(() => ({
54324
54322
  allSelected: !1,
54325
54323
  items: /* @__PURE__ */ new Map(),
54326
54324
  groups: /* @__PURE__ */ new Map()
@@ -54329,64 +54327,65 @@ function gN({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
54329
54327
  z(() => {
54330
54328
  x((e) => ({
54331
54329
  ...e,
54332
- allSelected: _e
54330
+ allSelected: ve
54333
54331
  }));
54334
- }, [_e]), z(() => {
54335
- let e = Oe(i);
54336
- A.current ? e !== k.current && (k.current = e, ke(i)) : (A.current = !0, k.current = e);
54332
+ }, [ve]), z(() => {
54333
+ let e = ke(i);
54334
+ A.current ? e !== k.current && (k.current = e, Ae(i)) : (A.current = !0, k.current = e);
54337
54335
  }, [
54338
54336
  i,
54339
- Oe,
54340
- ke
54337
+ ke,
54338
+ Ae
54341
54339
  ]), z(() => {
54342
54340
  if (j.current) {
54343
- j.current = !1, ee.current = n.currentFilters, te.current = n.currentSortings, re.current = ne;
54341
+ j.current = !1, ee.current = n.currentFilters, te.current = n.currentSortings, re.current = ne, ie.current = l;
54344
54342
  return;
54345
54343
  }
54346
- let e = JSON.stringify(n.currentFilters) !== JSON.stringify(ee.current), t = JSON.stringify(n.currentSortings) !== JSON.stringify(te.current), r = ne !== re.current;
54347
- (e || t || r) && (!v && (!u || w) && (se.current = !0, Re()), ee.current = n.currentFilters, te.current = n.currentSortings, re.current = ne);
54344
+ let e = JSON.stringify(n.currentFilters) !== JSON.stringify(ee.current), t = JSON.stringify(n.currentSortings) !== JSON.stringify(te.current), r = ne !== re.current, i = JSON.stringify(l) !== JSON.stringify(ie.current);
54345
+ (e || t || r || i) && (!v && (!u || w) && (M.current = !0, ze()), ee.current = n.currentFilters, te.current = n.currentSortings, re.current = ne, ie.current = l);
54348
54346
  }, [
54349
54347
  n.currentFilters,
54350
54348
  n.currentSortings,
54351
54349
  ne,
54352
- Re,
54350
+ l,
54351
+ ze,
54353
54352
  v,
54354
54353
  u,
54355
54354
  w
54356
54355
  ]), z(() => {
54357
- if (!l) return;
54356
+ if (!y) return;
54358
54357
  if (t?.type === "infinite-scroll") {
54359
- M.current = ue;
54358
+ le.current = de;
54360
54359
  return;
54361
54360
  }
54362
- let e = M.current;
54363
- e === void 0 || ue !== e && (w || Re()), M.current = ue;
54361
+ let e = le.current;
54362
+ e === void 0 || de !== e && (w || ze()), le.current = de;
54364
54363
  }, [
54365
- ue,
54364
+ de,
54366
54365
  w,
54367
- Re,
54368
- l,
54366
+ ze,
54367
+ y,
54369
54368
  t?.type
54370
54369
  ]), z(() => {
54371
- oe.current = ge;
54372
- }, [ge]);
54373
- let ze = R((e) => {
54370
+ se.current = _e;
54371
+ }, [_e]);
54372
+ let Be = R((e) => {
54374
54373
  for (let t of e) {
54375
54374
  let e = g?.(t);
54376
54375
  if (e === void 0) continue;
54377
54376
  let n = t[N];
54378
- n && S.get(n)?.checked && Ae(e, !0, !0);
54377
+ n && S.get(n)?.checked && je(e, !0, !0);
54379
54378
  }
54380
54379
  }, [
54381
54380
  g,
54382
54381
  S,
54383
- Ae
54382
+ je
54384
54383
  ]);
54385
54384
  return z(() => {
54386
- let e = De();
54385
+ let e = Oe();
54387
54386
  if (e.length === 0) return;
54388
54387
  let t = e.map((e) => g?.(e)).filter((e) => e !== void 0), n = t.join(",");
54389
- n !== ie.current && (ie.current = n, se.current ? se.current = !1 : (m ? ze(e) : h && !y && Ae(t, oe.current, !0), x((t) => {
54388
+ n !== ae.current && (ae.current = n, M.current ? M.current = !1 : (m ? Be(e) : h && !y && je(t, se.current, !0), x((t) => {
54390
54389
  let n = !1, r = new Map(t.items);
54391
54390
  for (let [t, i] of r.entries()) if (i.item === void 0) {
54392
54391
  let a = e.find((e) => {
@@ -54407,57 +54406,57 @@ function gN({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
54407
54406
  e.records,
54408
54407
  e.groups,
54409
54408
  g,
54410
- De,
54409
+ Oe,
54411
54410
  m,
54412
54411
  h,
54413
- Ae,
54412
+ je,
54414
54413
  y,
54415
- ze
54414
+ Be
54416
54415
  ]), z(() => {
54417
- pe === 0 && (T(!1), O.current = !1);
54418
- }, [pe]), z(() => {
54416
+ me === 0 && (T(!1), O.current = !1);
54417
+ }, [me]), z(() => {
54419
54418
  let e = JSON.stringify({
54420
54419
  allSelectedCheck: w,
54421
- allSelectedState: _e,
54420
+ allSelectedState: ve,
54422
54421
  itemsCount: b.items?.size ?? 0,
54423
- checkedCount: pe,
54424
- resolvedItems: Se.map(({ item: e, checked: t }) => [g?.(e), t])
54422
+ checkedCount: me,
54423
+ resolvedItems: Ce.map(({ item: e, checked: t }) => [g?.(e), t])
54425
54424
  });
54426
- e !== ae.current && (ae.current = e, a?.({
54427
- allSelected: _e,
54428
- itemsStatus: Se,
54429
- selectedIds: Ce,
54430
- groupsStatus: we,
54425
+ e !== oe.current && (oe.current = e, a?.({
54426
+ allSelected: ve,
54427
+ itemsStatus: Ce,
54428
+ selectedIds: we,
54429
+ groupsStatus: Te,
54431
54430
  filters: n.currentFilters || {},
54432
- selectedCount: xe
54433
- }, Re, Le));
54431
+ selectedCount: Se
54432
+ }, ze, Re));
54434
54433
  }, [
54435
54434
  w,
54436
- _e,
54437
- Se,
54435
+ ve,
54438
54436
  Ce,
54439
54437
  we,
54440
- xe,
54441
- pe
54438
+ Te,
54439
+ Se,
54440
+ me
54442
54441
  ]), {
54443
- isAllSelected: ge,
54444
- isPartiallySelected: ve,
54445
- selectedItems: de,
54446
- selectedGroups: ye,
54447
- allSelectedStatus: Ee,
54448
- clearSelection: Re,
54449
- handleSelectItemChange: Fe,
54450
- handleSelectAll: Ie,
54451
- handleSelectAllItems: Le,
54452
- handleSelectGroupChange: je,
54442
+ isAllSelected: _e,
54443
+ isPartiallySelected: ye,
54444
+ selectedItems: fe,
54445
+ selectedGroups: be,
54446
+ allSelectedStatus: P,
54447
+ clearSelection: ze,
54448
+ handleSelectItemChange: Ie,
54449
+ handleSelectAll: Le,
54450
+ handleSelectAllItems: Re,
54451
+ handleSelectGroupChange: Me,
54453
54452
  selectionMeta: {
54454
- selectedItemsCount: xe,
54455
- totalKnownItemsCount: le,
54456
- checkedItems: Array.from(de.values()),
54457
- uncheckedItems: Array.from(fe.values())
54453
+ selectedItemsCount: Se,
54454
+ totalKnownItemsCount: ue,
54455
+ checkedItems: Array.from(fe.values()),
54456
+ uncheckedItems: Array.from(pe.values())
54458
54457
  },
54459
- groupAllSelectedStatus: be,
54460
- selectionStatus: Te,
54458
+ groupAllSelectedStatus: xe,
54459
+ selectionStatus: Ee,
54461
54460
  selectedState: b
54462
54461
  };
54463
54462
  }
@@ -59983,7 +59982,6 @@ var yR = L(function({ variant: e = "field", placeholder: t, onChange: n, withApp
59983
59982
  disableSelectAll: Ee,
59984
59983
  isSearchActive: !!et,
59985
59984
  allPagesSelection: !0,
59986
- resetOnPageChange: !1,
59987
59985
  preserveSelectionOnDatasetChange: pe
59988
59986
  }), I = R((e) => ({
59989
59987
  allSelected: e.allSelected,
@@ -1,5 +1,5 @@
1
- import { a as e } from "./i18n-provider-CCg0vfdK.js";
2
- import { y as t } from "./dist-DRhAsNk-.js";
1
+ import { a as e } from "./i18n-provider-Bj_yUCV4.js";
2
+ import { y as t } from "./dist-DQbyEaUi.js";
3
3
  import { forwardRef as n } from "react";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
5
  //#region src/elements/F0Text/F0Text.tsx
@@ -0,0 +1 @@
1
+ export { t as F0VideoPlayer } from "./F0VideoPlayer-e0h-ZJhe.js";