@factorialco/f0-react 16.23.0 → 16.25.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 (62) hide show
  1. package/dist/{ArchiveThumbnail-DVDLD1KO.js → ArchiveThumbnail-BWTI7ezC.js} +3 -3
  2. package/dist/{ArchiveViewer-DE9_XePM.js → ArchiveViewer-BlnfVLsJ.js} +5 -5
  3. package/dist/{ChatPostComposerDialog-CwwUOsKv.js → ChatPostComposerDialog-Ca3fcEzD.js} +3 -3
  4. package/dist/{CoachmarkProvider-DKzIMyWY.js → CoachmarkProvider-Bw3qcSzA.js} +9690 -9690
  5. package/dist/{CodeThumbnail-xdea98O9.js → CodeThumbnail-PtY8O4_C.js} +1 -1
  6. package/dist/{CodeViewer-Btnvqa-X.js → CodeViewer-DWjmRhtn.js} +6 -6
  7. package/dist/{DocumentToolbar-B_sygiWe.js → DocumentToolbar-CKdCMI09.js} +7 -7
  8. package/dist/{DocxViewer-BKEv7ORw.js → DocxViewer-g_DkGE6G.js} +3 -3
  9. package/dist/{F0AiProcessingOverlay-BBvhg8LC.js → F0AiProcessingOverlay-Dh3YEI67.js} +38 -38
  10. package/dist/{F0Alert-DtSyPCxn.js → F0Alert-BkUUU2Es.js} +5 -5
  11. package/dist/F0AudioPlayer-vHt8D_MA.js +2 -0
  12. package/dist/{F0Button-B217B6lh.js → F0Button-C1aRGjA7.js} +3 -3
  13. package/dist/{F0CanvasPanel-CQ7gX7-P.js → F0CanvasPanel-D6eWdQK0.js} +208 -208
  14. package/dist/{F0DocumentViewer-BZsMdNcY.js → F0DocumentViewer-BtD9t71V.js} +1 -1
  15. package/dist/{F0DocumentViewer-DWXuPrOG.js → F0DocumentViewer-DhffyI63.js} +4 -4
  16. package/dist/{F0Icon-CRETnjaC.js → F0Icon-CA8QrO7J.js} +1 -1
  17. package/dist/{F0Map-BuLyNjHC.js → F0Map-ClnO_2tF.js} +15 -15
  18. package/dist/{F0Select-DGvIH_Gp.js → F0Select-h6e4u9ej.js} +2164 -2148
  19. package/dist/{F0Text-DEJMiNLl.js → F0Text-C69-6-hA.js} +2 -2
  20. package/dist/F0VideoPlayer-Bdf6P4CE.js +1 -0
  21. package/dist/{F0VideoPlayer-B4JYaa4U.js → F0VideoPlayer-DaD7MnFA.js} +6 -6
  22. package/dist/{HtmlThumbnail-DLYEHdZx.js → HtmlThumbnail-DOW0qL8W.js} +1 -1
  23. package/dist/{HtmlViewer-OY8T2uX6.js → HtmlViewer-rIlra75S.js} +9 -9
  24. package/dist/{LayoutGroup-DECnUFBB.js → LayoutGroup-DnZBITzE.js} +1 -1
  25. package/dist/{Map-CuunG2oS.js → Map-Cs17xyE6.js} +10 -10
  26. package/dist/{PdfThumbnail-DfwDJHEr.js → PdfThumbnail-CXGUzm25.js} +1 -1
  27. package/dist/{PdfViewer-DzbV7lZw.js → PdfViewer-CTGhvHvW.js} +12 -12
  28. package/dist/{SandboxedHtmlFrame-Ba5FAjt6.js → SandboxedHtmlFrame-sIha8vuj.js} +2 -2
  29. package/dist/{SheetViewer-DGX6KHnL.js → SheetViewer-0KUrMA5z.js} +5 -5
  30. package/dist/{TextViewer-CLqt6uiQ.js → TextViewer-D3xpfBVm.js} +4 -4
  31. package/dist/ai.d.ts +4 -4
  32. package/dist/ai.js +4 -4
  33. package/dist/component-status.js +29 -7
  34. package/dist/{dist-ClS5kbGd.js → dist-CrKS7a4M.js} +1 -1
  35. package/dist/{dist-BAsn0JfF.js → dist-CsLQ4kGY.js} +1 -1
  36. package/dist/{dist-CLXu6f__.js → dist-DRhAsNk-.js} +2 -2
  37. package/dist/{dist-CpxH3Mhm.js → dist-R_v43tri.js} +1 -1
  38. package/dist/{dist-CBsv_N04.js → dist-S2UAyvMo.js} +4 -4
  39. package/dist/experimental.d.ts +12 -3
  40. package/dist/experimental.js +645 -641
  41. package/dist/{exports-BSFis6g6.d.ts → exports-BLEz8iU-.d.ts} +1 -1
  42. package/dist/f0.d.ts +2663 -2611
  43. package/dist/f0.js +2563 -2003
  44. package/dist/{highlight-DpVfX1K9.js → highlight-DeACQIIW.js} +1 -1
  45. package/dist/{i18n-provider-DyI_r6Au.js → i18n-provider-CCg0vfdK.js} +1 -1
  46. package/dist/{i18n-provider-defaults-FGAsdJJR.d.ts → i18n-provider-defaults-CXVl-d7E.d.ts} +8 -0
  47. package/dist/{i18n-provider-defaults-C8fwj3sA.js → i18n-provider-defaults-DdGz6_Og.js} +8 -0
  48. package/dist/i18n-provider-defaults.d.ts +1 -1
  49. package/dist/i18n-provider-defaults.js +1 -1
  50. package/dist/{index-DR7cCKE6.d.ts → index-DUvBbZtb.d.ts} +982 -13
  51. package/dist/{types-ChFboQlr.d.ts → index-w1eJlbAW.d.ts} +3 -818
  52. package/dist/{maplibre-BOwxOCps.js → maplibre-Vwv9Nk1T.js} +1 -1
  53. package/dist/{pdfWorker-DtUZLMfu.js → pdfWorker-D54oefWJ.js} +1 -1
  54. package/dist/{popover-CKVOp9XF.js → popover-BFt-Tk2I.js} +1 -1
  55. package/dist/{skeleton-Dw-7r7zp.js → skeleton-B05pNPYx.js} +1 -1
  56. package/dist/styles.css +1 -1
  57. package/dist/{toolbarStyles-C_OrVxv7.js → toolbarStyles-Btq_icPl.js} +1 -1
  58. package/dist/{useData-QJRr_47g.js → useData-CzdjLV9a.js} +169 -161
  59. package/package.json +1 -1
  60. package/tailwind.config.ts +26 -0
  61. package/dist/F0AudioPlayer-CbwGn5bL.js +0 -2
  62. package/dist/F0VideoPlayer-BYTQqwd2.js +0 -1
@@ -1,11 +1,11 @@
1
1
  import { r as e } from "./rolldown-runtime-BItFwnF5.js";
2
- import { a as t, i as n, r } from "./i18n-provider-DyI_r6Au.js";
3
- import { n as i, t as a } from "./skeleton-Dw-7r7zp.js";
2
+ import { a as t, i as n, r } from "./i18n-provider-CCg0vfdK.js";
3
+ import { n as i, t as a } from "./skeleton-B05pNPYx.js";
4
4
  import { L as o, R as s } from "./tooltip-NXXT56H4.js";
5
- import { C as c, I as l, K as u, f as d, t as f, v as p } from "./F0Button-B217B6lh.js";
6
- import { o as m, r as h, t as g } from "./F0Icon-CRETnjaC.js";
7
- import { a as _, d as v, f as y, i as b, m as x, t as S, w as C } from "./popover-CKVOp9XF.js";
8
- import { _ as w, d as T, g as E, i as D, r as ee, v as O } from "./dist-CLXu6f__.js";
5
+ import { C as c, I as l, K as u, f as d, t as f, v as p } from "./F0Button-C1aRGjA7.js";
6
+ import { o as m, r as h, t as g } from "./F0Icon-CA8QrO7J.js";
7
+ import { a as _, d as v, f as y, i as b, m as x, t as S, w as C } from "./popover-BFt-Tk2I.js";
8
+ import { _ as w, d as T, g as E, i as D, r as ee, v as O } from "./dist-DRhAsNk-.js";
9
9
  import { t as te } from "./dist-DMTFO2gF.js";
10
10
  import { t as k } from "./ownValue-D4uSXt0d.js";
11
11
  import * as A from "react";
@@ -17782,7 +17782,7 @@ function gs(e, t) {
17782
17782
  //#endregion
17783
17783
  //#region src/elements/avatars/F0AvatarList/components/MaxCounter.tsx
17784
17784
  var _s = m({
17785
- base: "flex shrink-0 items-center justify-center bg-f1-background-secondary font-medium text-f1-foreground-secondary",
17785
+ base: "flex shrink-0 items-center justify-center bg-f1-background-secondary font-medium",
17786
17786
  variants: {
17787
17787
  size: {
17788
17788
  xs: "h-5 w-5 rounded-xs text-sm",
@@ -17792,6 +17792,10 @@ var _s = m({
17792
17792
  type: {
17793
17793
  base: "",
17794
17794
  rounded: "!rounded-full"
17795
+ },
17796
+ color: {
17797
+ secondary: "text-f1-foreground-secondary",
17798
+ inherit: "text-inherit"
17795
17799
  }
17796
17800
  },
17797
17801
  compoundVariants: [{
@@ -17805,16 +17809,17 @@ var _s = m({
17805
17809
  }],
17806
17810
  defaultVariants: {
17807
17811
  size: "md",
17808
- type: "base"
17812
+ type: "base",
17813
+ color: "secondary"
17809
17814
  }
17810
- }), vs = ({ count: e, size: t = "md", type: n, list: r, avatarType: i = "person" }) => {
17811
- let [a, c] = z(!1), l = R(!1), u = R(null), d = R(void 0);
17812
- F(() => () => clearTimeout(d.current), []);
17813
- let f = () => clearTimeout(d.current), p = () => {
17814
- f(), l.current = !0, c(!0);
17815
- }, m = () => {
17816
- f(), d.current = setTimeout(() => c(!1), 150);
17817
- }, h = t === "xs" ? /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V(g, {
17815
+ }), vs = ({ count: e, size: t = "md", type: n, list: r, avatarType: i = "person", color: a = "secondary" }) => {
17816
+ let [c, l] = z(!1), u = R(!1), d = R(null), f = R(void 0);
17817
+ F(() => () => clearTimeout(f.current), []);
17818
+ let p = () => clearTimeout(f.current), m = () => {
17819
+ p(), u.current = !0, l(!0);
17820
+ }, h = () => {
17821
+ p(), f.current = setTimeout(() => l(!1), 150);
17822
+ }, v = t === "xs" ? /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V(g, {
17818
17823
  icon: U,
17819
17824
  size: "xs"
17820
17825
  }), /* @__PURE__ */ H("span", {
@@ -17824,11 +17829,12 @@ var _s = m({
17824
17829
  if (!r?.length) return /* @__PURE__ */ V("div", {
17825
17830
  className: o("cursor-default font-medium transition", _s({
17826
17831
  size: t,
17827
- type: n
17832
+ type: n,
17833
+ color: a
17828
17834
  })),
17829
- children: h
17835
+ children: v
17830
17836
  });
17831
- let v = r.map((e, t) => {
17837
+ let y = r.map((e, t) => {
17832
17838
  let n = e.tooltipDescription;
17833
17839
  return /* @__PURE__ */ H("div", {
17834
17840
  className: "flex w-[180px] min-w-0 items-center gap-1.5 px-2 py-1 [&:first-child]:pt-2 [&:last-child]:pb-2",
@@ -17854,38 +17860,39 @@ var _s = m({
17854
17860
  }, t);
17855
17861
  });
17856
17862
  return /* @__PURE__ */ H(S, {
17857
- open: a,
17858
- onOpenChange: c,
17863
+ open: c,
17864
+ onOpenChange: l,
17859
17865
  children: [/* @__PURE__ */ V(_, {
17860
17866
  asChild: !0,
17861
17867
  children: /* @__PURE__ */ V("button", {
17862
17868
  type: "button",
17863
- onPointerEnter: p,
17864
- onPointerLeave: m,
17869
+ onPointerEnter: m,
17870
+ onPointerLeave: h,
17865
17871
  onClick: (e) => {
17866
- l.current = !1, a && (e.preventDefault(), u.current?.focus());
17872
+ u.current = !1, c && (e.preventDefault(), d.current?.focus());
17867
17873
  },
17868
17874
  className: o("cursor-pointer font-medium transition hover:bg-f1-background-secondary-hover", _s({
17869
17875
  size: t,
17870
- type: n
17876
+ type: n,
17877
+ color: a
17871
17878
  }), s()),
17872
- children: h
17879
+ children: v
17873
17880
  })
17874
17881
  }), /* @__PURE__ */ V(b, {
17875
- ref: u,
17882
+ ref: d,
17876
17883
  side: "top",
17877
17884
  className: "w-[200px] overflow-hidden rounded border-0 bg-f1-background-inverse p-0 font-medium text-f1-foreground-inverse shadow-none dark:border dark:border-solid dark:border-f1-border-secondary dark:bg-f1-background",
17878
- onPointerEnter: f,
17879
- onPointerLeave: m,
17885
+ onPointerEnter: p,
17886
+ onPointerLeave: h,
17880
17887
  onOpenAutoFocus: (e) => {
17881
- l.current && e.preventDefault();
17888
+ u.current && e.preventDefault();
17882
17889
  },
17883
17890
  onCloseAutoFocus: (e) => {
17884
- l.current && e.preventDefault();
17891
+ u.current && e.preventDefault();
17885
17892
  },
17886
17893
  children: /* @__PURE__ */ H(ee, {
17887
17894
  className: "[*[data-state=visible]_div]:bg-f1-foreground-inverse flex max-h-[172px] flex-col",
17888
- children: [v, /* @__PURE__ */ V(D, {
17895
+ children: [y, /* @__PURE__ */ V(D, {
17889
17896
  orientation: "vertical",
17890
17897
  className: "[&_div]:bg-f1-foreground-inverse"
17891
17898
  })]
@@ -17897,6 +17904,10 @@ var _s = m({
17897
17904
  "sm",
17898
17905
  "md"
17899
17906
  ], bs = {
17907
+ xs: 20,
17908
+ sm: 24,
17909
+ md: 32
17910
+ }, xs = {
17900
17911
  base: {
17901
17912
  md: "path('M1.08993 5.46009C0 7.59921 0 10.3995 0 16C0 21.6005 0 24.4008 1.08993 26.5399C2.04867 28.4215 3.57847 29.9513 5.46009 30.9101C7.59921 32 10.3995 32 16 32C21.6005 32 24.4008 32 26.5399 30.9101C27.4506 30.446 28.279 29.8482 29 29.1414C28.2314 28.388 27.5846 27.5108 27.0899 26.5399C26 24.4008 26 21.6005 26 16C26 10.3995 26 7.59921 27.0899 5.46009C27.5846 4.48921 28.2314 3.612 29 2.85857C28.279 2.15181 27.4506 1.55398 26.5399 1.08993C24.4008 0 21.6005 0 16 0C10.3995 0 7.59921 0 5.46009 1.08993C3.57847 2.04867 2.04867 3.57847 1.08993 5.46009Z')",
17902
17913
  sm: "path('M0.608964 4.93853C0 6.4087 0 8.27247 0 12C0 15.7275 0 17.5913 0.608964 19.0615C1.42092 21.0217 2.97831 22.5791 4.93853 23.391C6.4087 24 8.27247 24 12 24C15.7275 24 17.5913 24 19.0615 23.391C19.9729 23.0135 20.7972 22.4749 21.5 21.8095C20.6912 21.0438 20.0434 20.1103 19.609 19.0615C19 17.5913 19 15.7275 19 12C19 8.27247 19 6.4087 19.609 4.93853C20.0434 3.88971 20.6912 2.95622 21.5 2.19052C20.7972 1.52515 19.9729 0.986481 19.0615 0.608964C17.5913 0 15.7275 0 12 0C8.27247 0 6.4087 0 4.93853 0.608964C2.97831 1.42092 1.42092 2.97831 0.608964 4.93853Z')",
@@ -17907,7 +17918,7 @@ var _s = m({
17907
17918
  sm: "path('M21.3746 4.50813C19.1755 1.76008 15.7933 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24C15.7933 24 19.1755 22.2399 21.3746 19.4919C19.8788 17.3743 19 14.7898 19 12C19 9.21023 19.8788 6.62571 21.3746 4.50813Z')",
17908
17919
  xs: "path('M18 4.19899C16.7442 5.95406 16 8.13577 16 10.5C16 12.8642 16.7442 15.0459 18 16.801C16.1755 19.3508 13.2712 21 10 21C4.47716 21 0 16.299 0 10.5C0 4.70102 4.47716 0 10 0C13.2712 0 16.1755 1.64923 18 4.19899Z')"
17909
17920
  }
17910
- }, xs = ({ avatars: e, size: t = "md", type: n, noTooltip: r = !1, remainingCount: i, max: a, tooltipScroll: o, layout: s }) => {
17921
+ }, Ss = ({ avatars: e, size: t = "md", type: n, noTooltip: r = !1, remainingCount: i, max: a, counterColor: o = "secondary", tooltipScroll: s, layout: c }) => {
17911
17922
  if (t && !ys.includes(t)) {
17912
17923
  let e = {
17913
17924
  small: "sm",
@@ -17916,15 +17927,11 @@ var _s = m({
17916
17927
  };
17917
17928
  console.warn(`The avatar list size: ${t} is deprecated. Use ${e[t]} instead.`), t = e[t] ?? "md";
17918
17929
  }
17919
- let c = {
17930
+ let u = {
17920
17931
  xs: -2,
17921
17932
  sm: -3,
17922
17933
  md: -4
17923
- }[t] ?? 0, u = L(() => ({
17924
- xs: 20,
17925
- sm: 24,
17926
- md: 32
17927
- })[t], [t]);
17934
+ }[t] ?? 0, d = bs[t];
17928
17935
  return /* @__PURE__ */ V(hs, {
17929
17936
  max: a,
17930
17937
  min: a,
@@ -17932,13 +17939,13 @@ var _s = m({
17932
17939
  type: n,
17933
17940
  ...e
17934
17941
  })),
17935
- gap: c,
17936
- itemsWidth: u,
17942
+ gap: u,
17943
+ itemsWidth: d,
17937
17944
  className: "flex items-center",
17938
17945
  renderListItem: (a, o) => {
17939
17946
  let s = gs(n, a), c = a.tooltipDescription, u = !!a.badge, d = o === e.length - 1, f = /* @__PURE__ */ V("div", {
17940
17947
  className: "flex h-fit w-fit shrink-0 items-center justify-center",
17941
- style: (!d || d && i !== void 0) && !u ? { clipPath: bs[n === "person" ? "rounded" : "base"][t] } : void 0,
17948
+ style: (!d || d && i !== void 0) && !u ? { clipPath: xs[n === "person" ? "rounded" : "base"][t] } : void 0,
17942
17949
  children: /* @__PURE__ */ V(us, {
17943
17950
  avatar: {
17944
17951
  ...a,
@@ -17957,26 +17964,27 @@ var _s = m({
17957
17964
  forceShowingOverflowIndicator: i !== void 0,
17958
17965
  renderOverflowIndicator: (r) => /* @__PURE__ */ V("div", {
17959
17966
  className: "flex h-fit w-fit items-center",
17960
- style: { marginLeft: c },
17967
+ style: { marginLeft: u },
17961
17968
  children: /* @__PURE__ */ V(vs, {
17962
17969
  count: (i ?? 0) + r,
17963
17970
  size: t,
17964
17971
  type: n === "person" ? "rounded" : "base",
17965
17972
  avatarType: n,
17973
+ color: o,
17966
17974
  list: i ? void 0 : e.slice(e.length - r)
17967
17975
  })
17968
17976
  }),
17969
17977
  overflowIndicatorWithPopover: !1
17970
17978
  });
17971
17979
  };
17972
- xs.displayName = "AvatarList";
17973
- var Ss = t(xs);
17980
+ Ss.displayName = "AvatarList";
17981
+ var Cs = t(Ss);
17974
17982
  //#endregion
17975
17983
  //#region ../../node_modules/.bun/zen-observable-ts@1.1.0/node_modules/zen-observable-ts/module.js
17976
- function Cs(e, t) {
17984
+ function ws(e, t) {
17977
17985
  var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
17978
17986
  if (n) return (n = n.call(e)).next.bind(n);
17979
- if (Array.isArray(e) || (n = ws(e)) || t && e && typeof e.length == "number") {
17987
+ if (Array.isArray(e) || (n = Ts(e)) || t && e && typeof e.length == "number") {
17980
17988
  n && (e = n);
17981
17989
  var r = 0;
17982
17990
  return function() {
@@ -17988,122 +17996,122 @@ function Cs(e, t) {
17988
17996
  }
17989
17997
  throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
17990
17998
  }
17991
- function ws(e, t) {
17999
+ function Ts(e, t) {
17992
18000
  if (e) {
17993
- if (typeof e == "string") return Ts(e, t);
18001
+ if (typeof e == "string") return Es(e, t);
17994
18002
  var n = Object.prototype.toString.call(e).slice(8, -1);
17995
18003
  if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
17996
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Ts(e, t);
18004
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Es(e, t);
17997
18005
  }
17998
18006
  }
17999
- function Ts(e, t) {
18007
+ function Es(e, t) {
18000
18008
  (t == null || t > e.length) && (t = e.length);
18001
18009
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
18002
18010
  return r;
18003
18011
  }
18004
- function Es(e, t) {
18012
+ function Ds(e, t) {
18005
18013
  for (var n = 0; n < t.length; n++) {
18006
18014
  var r = t[n];
18007
18015
  r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
18008
18016
  }
18009
18017
  }
18010
- function Ds(e, t, n) {
18011
- return t && Es(e.prototype, t), n && Es(e, n), e;
18018
+ function Os(e, t, n) {
18019
+ return t && Ds(e.prototype, t), n && Ds(e, n), e;
18012
18020
  }
18013
- var Os = function() {
18021
+ var ks = function() {
18014
18022
  return typeof Symbol == "function";
18015
- }, ks = function(e) {
18016
- return Os() && !!Symbol[e];
18017
18023
  }, As = function(e) {
18018
- return ks(e) ? Symbol[e] : "@@" + e;
18024
+ return ks() && !!Symbol[e];
18025
+ }, js = function(e) {
18026
+ return As(e) ? Symbol[e] : "@@" + e;
18019
18027
  };
18020
- Os() && !ks("observable") && (Symbol.observable = Symbol("observable"));
18021
- var js = As("iterator"), Ms = As("observable"), Ns = As("species");
18022
- function Ps(e, t) {
18028
+ ks() && !As("observable") && (Symbol.observable = Symbol("observable"));
18029
+ var Ms = js("iterator"), Ns = js("observable"), Ps = js("species");
18030
+ function Fs(e, t) {
18023
18031
  var n = e[t];
18024
18032
  if (n != null) {
18025
18033
  if (typeof n != "function") throw TypeError(n + " is not a function");
18026
18034
  return n;
18027
18035
  }
18028
18036
  }
18029
- function Fs(e) {
18030
- var t = e.constructor;
18031
- return t !== void 0 && (t = t[Ns], t === null && (t = void 0)), t === void 0 ? Ks : t;
18032
- }
18033
18037
  function Is(e) {
18034
- return e instanceof Ks;
18038
+ var t = e.constructor;
18039
+ return t !== void 0 && (t = t[Ps], t === null && (t = void 0)), t === void 0 ? qs : t;
18035
18040
  }
18036
18041
  function Ls(e) {
18037
- Ls.log ? Ls.log(e) : setTimeout(function() {
18042
+ return e instanceof qs;
18043
+ }
18044
+ function Rs(e) {
18045
+ Rs.log ? Rs.log(e) : setTimeout(function() {
18038
18046
  throw e;
18039
18047
  });
18040
18048
  }
18041
- function Rs(e) {
18049
+ function zs(e) {
18042
18050
  Promise.resolve().then(function() {
18043
18051
  try {
18044
18052
  e();
18045
18053
  } catch (e) {
18046
- Ls(e);
18054
+ Rs(e);
18047
18055
  }
18048
18056
  });
18049
18057
  }
18050
- function zs(e) {
18058
+ function Bs(e) {
18051
18059
  var t = e._cleanup;
18052
18060
  if (t !== void 0 && (e._cleanup = void 0, t)) try {
18053
18061
  if (typeof t == "function") t();
18054
18062
  else {
18055
- var n = Ps(t, "unsubscribe");
18063
+ var n = Fs(t, "unsubscribe");
18056
18064
  n && n.call(t);
18057
18065
  }
18058
18066
  } catch (e) {
18059
- Ls(e);
18067
+ Rs(e);
18060
18068
  }
18061
18069
  }
18062
- function Bs(e) {
18070
+ function Vs(e) {
18063
18071
  e._observer = void 0, e._queue = void 0, e._state = "closed";
18064
18072
  }
18065
- function Vs(e) {
18073
+ function Hs(e) {
18066
18074
  var t = e._queue;
18067
18075
  if (t) {
18068
18076
  e._queue = void 0, e._state = "ready";
18069
- for (var n = 0; n < t.length && (Hs(e, t[n].type, t[n].value), e._state !== "closed"); ++n);
18077
+ for (var n = 0; n < t.length && (Us(e, t[n].type, t[n].value), e._state !== "closed"); ++n);
18070
18078
  }
18071
18079
  }
18072
- function Hs(e, t, n) {
18080
+ function Us(e, t, n) {
18073
18081
  e._state = "running";
18074
18082
  var r = e._observer;
18075
18083
  try {
18076
- var i = Ps(r, t);
18084
+ var i = Fs(r, t);
18077
18085
  switch (t) {
18078
18086
  case "next":
18079
18087
  i && i.call(r, n);
18080
18088
  break;
18081
18089
  case "error":
18082
- if (Bs(e), i) i.call(r, n);
18090
+ if (Vs(e), i) i.call(r, n);
18083
18091
  else throw n;
18084
18092
  break;
18085
- case "complete": Bs(e), i && i.call(r);
18093
+ case "complete": Vs(e), i && i.call(r);
18086
18094
  }
18087
18095
  } catch (e) {
18088
- Ls(e);
18096
+ Rs(e);
18089
18097
  }
18090
- e._state === "closed" ? zs(e) : e._state === "running" && (e._state = "ready");
18098
+ e._state === "closed" ? Bs(e) : e._state === "running" && (e._state = "ready");
18091
18099
  }
18092
- function Us(e, t, n) {
18100
+ function Ws(e, t, n) {
18093
18101
  e._state !== "closed" && (e._state === "buffering" ? e._queue.push({
18094
18102
  type: t,
18095
18103
  value: n
18096
- }) : e._state === "ready" ? Hs(e, t, n) : (e._state = "buffering", e._queue = [{
18104
+ }) : e._state === "ready" ? Us(e, t, n) : (e._state = "buffering", e._queue = [{
18097
18105
  type: t,
18098
18106
  value: n
18099
- }], Rs(function() {
18100
- return Vs(e);
18107
+ }], zs(function() {
18108
+ return Hs(e);
18101
18109
  })));
18102
18110
  }
18103
- var Ws = /*#__PURE__*/ function() {
18111
+ var Gs = /*#__PURE__*/ function() {
18104
18112
  function e(e, t) {
18105
18113
  this._cleanup = void 0, this._observer = e, this._queue = void 0, this._state = "initializing";
18106
- var n = new Gs(this);
18114
+ var n = new Ks(this);
18107
18115
  try {
18108
18116
  this._cleanup = t.call(void 0, n);
18109
18117
  } catch (e) {
@@ -18113,31 +18121,31 @@ var Ws = /*#__PURE__*/ function() {
18113
18121
  }
18114
18122
  var t = e.prototype;
18115
18123
  return t.unsubscribe = function() {
18116
- this._state !== "closed" && (Bs(this), zs(this));
18117
- }, Ds(e, [{
18124
+ this._state !== "closed" && (Vs(this), Bs(this));
18125
+ }, Os(e, [{
18118
18126
  key: "closed",
18119
18127
  get: function() {
18120
18128
  return this._state === "closed";
18121
18129
  }
18122
18130
  }]), e;
18123
- }(), Gs = /*#__PURE__*/ function() {
18131
+ }(), Ks = /*#__PURE__*/ function() {
18124
18132
  function e(e) {
18125
18133
  this._subscription = e;
18126
18134
  }
18127
18135
  var t = e.prototype;
18128
18136
  return t.next = function(e) {
18129
- Us(this._subscription, "next", e);
18137
+ Ws(this._subscription, "next", e);
18130
18138
  }, t.error = function(e) {
18131
- Us(this._subscription, "error", e);
18139
+ Ws(this._subscription, "error", e);
18132
18140
  }, t.complete = function() {
18133
- Us(this._subscription, "complete");
18134
- }, Ds(e, [{
18141
+ Ws(this._subscription, "complete");
18142
+ }, Os(e, [{
18135
18143
  key: "closed",
18136
18144
  get: function() {
18137
18145
  return this._subscription._state === "closed";
18138
18146
  }
18139
18147
  }]), e;
18140
- }(), Ks = /*#__PURE__*/ function() {
18148
+ }(), qs = /*#__PURE__*/ function() {
18141
18149
  function e(t) {
18142
18150
  if (!(this instanceof e)) throw TypeError("Observable cannot be called as a function");
18143
18151
  if (typeof t != "function") throw TypeError("Observable initializer must be a function");
@@ -18149,7 +18157,7 @@ var Ws = /*#__PURE__*/ function() {
18149
18157
  next: e,
18150
18158
  error: arguments[1],
18151
18159
  complete: arguments[2]
18152
- }), new Ws(e, this._subscriber);
18160
+ }), new Gs(e, this._subscriber);
18153
18161
  }, t.forEach = function(e) {
18154
18162
  var t = this;
18155
18163
  return new Promise(function(n, r) {
@@ -18175,7 +18183,7 @@ var Ws = /*#__PURE__*/ function() {
18175
18183
  }, t.map = function(e) {
18176
18184
  var t = this;
18177
18185
  if (typeof e != "function") throw TypeError(e + " is not a function");
18178
- return new (Fs(this))(function(n) {
18186
+ return new (Is(this))(function(n) {
18179
18187
  return t.subscribe({
18180
18188
  next: function(t) {
18181
18189
  try {
@@ -18196,7 +18204,7 @@ var Ws = /*#__PURE__*/ function() {
18196
18204
  }, t.filter = function(e) {
18197
18205
  var t = this;
18198
18206
  if (typeof e != "function") throw TypeError(e + " is not a function");
18199
- return new (Fs(this))(function(n) {
18207
+ return new (Is(this))(function(n) {
18200
18208
  return t.subscribe({
18201
18209
  next: function(t) {
18202
18210
  try {
@@ -18217,7 +18225,7 @@ var Ws = /*#__PURE__*/ function() {
18217
18225
  }, t.reduce = function(e) {
18218
18226
  var t = this;
18219
18227
  if (typeof e != "function") throw TypeError(e + " is not a function");
18220
- var n = Fs(this), r = arguments.length > 1, i = !1, a = arguments[1];
18228
+ var n = Is(this), r = arguments.length > 1, i = !1, a = arguments[1];
18221
18229
  return new n(function(n) {
18222
18230
  return t.subscribe({
18223
18231
  next: function(t) {
@@ -18239,7 +18247,7 @@ var Ws = /*#__PURE__*/ function() {
18239
18247
  });
18240
18248
  });
18241
18249
  }, t.concat = function() {
18242
- var e = this, t = [...arguments], n = Fs(this);
18250
+ var e = this, t = [...arguments], n = Is(this);
18243
18251
  return new n(function(r) {
18244
18252
  var i, a = 0;
18245
18253
  function o(e) {
@@ -18262,7 +18270,7 @@ var Ws = /*#__PURE__*/ function() {
18262
18270
  }, t.flatMap = function(e) {
18263
18271
  var t = this;
18264
18272
  if (typeof e != "function") throw TypeError(e + " is not a function");
18265
- var n = Fs(this);
18273
+ var n = Is(this);
18266
18274
  return new n(function(r) {
18267
18275
  var i = [], a = t.subscribe({
18268
18276
  next: function(t) {
@@ -18301,23 +18309,23 @@ var Ws = /*#__PURE__*/ function() {
18301
18309
  }), a.unsubscribe();
18302
18310
  };
18303
18311
  });
18304
- }, t[Ms] = function() {
18312
+ }, t[Ns] = function() {
18305
18313
  return this;
18306
18314
  }, e.from = function(t) {
18307
18315
  var n = typeof this == "function" ? this : e;
18308
18316
  if (t == null) throw TypeError(t + " is not an object");
18309
- var r = Ps(t, Ms);
18317
+ var r = Fs(t, Ns);
18310
18318
  if (r) {
18311
18319
  var i = r.call(t);
18312
18320
  if (Object(i) !== i) throw TypeError(i + " is not an object");
18313
- return Is(i) && i.constructor === n ? i : new n(function(e) {
18321
+ return Ls(i) && i.constructor === n ? i : new n(function(e) {
18314
18322
  return i.subscribe(e);
18315
18323
  });
18316
18324
  }
18317
- if (ks("iterator") && (r = Ps(t, js), r)) return new n(function(e) {
18318
- Rs(function() {
18325
+ if (As("iterator") && (r = Fs(t, Ms), r)) return new n(function(e) {
18326
+ zs(function() {
18319
18327
  if (!e.closed) {
18320
- for (var n = Cs(r.call(t)), i; !(i = n()).done;) {
18328
+ for (var n = ws(r.call(t)), i; !(i = n()).done;) {
18321
18329
  var a = i.value;
18322
18330
  if (e.next(a), e.closed) return;
18323
18331
  }
@@ -18326,7 +18334,7 @@ var Ws = /*#__PURE__*/ function() {
18326
18334
  });
18327
18335
  });
18328
18336
  if (Array.isArray(t)) return new n(function(e) {
18329
- Rs(function() {
18337
+ zs(function() {
18330
18338
  if (!e.closed) {
18331
18339
  for (var n = 0; n < t.length; ++n) if (e.next(t[n]), e.closed) return;
18332
18340
  e.complete();
@@ -18337,37 +18345,37 @@ var Ws = /*#__PURE__*/ function() {
18337
18345
  }, e.of = function() {
18338
18346
  var t = [...arguments];
18339
18347
  return new (typeof this == "function" ? this : e)(function(e) {
18340
- Rs(function() {
18348
+ zs(function() {
18341
18349
  if (!e.closed) {
18342
18350
  for (var n = 0; n < t.length; ++n) if (e.next(t[n]), e.closed) return;
18343
18351
  e.complete();
18344
18352
  }
18345
18353
  });
18346
18354
  });
18347
- }, Ds(e, null, [{
18348
- key: Ns,
18355
+ }, Os(e, null, [{
18356
+ key: Ps,
18349
18357
  get: function() {
18350
18358
  return this;
18351
18359
  }
18352
18360
  }]), e;
18353
18361
  }();
18354
- Os() && Object.defineProperty(Ks, Symbol("extensions"), {
18362
+ ks() && Object.defineProperty(qs, Symbol("extensions"), {
18355
18363
  value: {
18356
- symbol: Ms,
18357
- hostReportError: Ls
18364
+ symbol: Ns,
18365
+ hostReportError: Rs
18358
18366
  },
18359
18367
  configurable: !0
18360
18368
  });
18361
18369
  //#endregion
18362
18370
  //#region src/elements/lib/promise-to-observable.ts
18363
- function qs(e) {
18371
+ function Js(e) {
18364
18372
  return typeof e == "object" && !!e && "subscribe" in e;
18365
18373
  }
18366
- function Js(e) {
18374
+ function Ys(e) {
18367
18375
  return typeof e == "object" && !!e && "then" in e;
18368
18376
  }
18369
- function Ys(e) {
18370
- return new Ks((t) => (t.next({
18377
+ function Xs(e) {
18378
+ return new qs((t) => (t.next({
18371
18379
  loading: !0,
18372
18380
  error: null,
18373
18381
  data: null
@@ -18387,7 +18395,7 @@ function Ys(e) {
18387
18395
  }
18388
18396
  //#endregion
18389
18397
  //#region src/elements/lib/objectPaths.ts
18390
- function Xs(e, t) {
18398
+ function Zs(e, t) {
18391
18399
  if (!e || typeof e != "object") return;
18392
18400
  let n = t.split("."), r = e;
18393
18401
  for (let e of n) if (r && typeof r == "object" && e in r) r = r[e];
@@ -18396,16 +18404,16 @@ function Xs(e, t) {
18396
18404
  }
18397
18405
  //#endregion
18398
18406
  //#region src/blocks/datasource/groupValue.ts
18399
- var Zs = (e, t) => {
18400
- let n = Xs(e, t);
18407
+ var Qs = (e, t) => {
18408
+ let n = Zs(e, t);
18401
18409
  return n === null || n === "" ? void 0 : n;
18402
- }, Qs = Symbol("groupId"), $s = (e, t) => ({
18410
+ }, $s = Symbol("groupId"), ec = (e, t) => ({
18403
18411
  generation: e,
18404
18412
  field: t,
18405
18413
  byGroup: /* @__PURE__ */ new Map()
18406
- }), ec = (e) => e.slices.flatMap((e) => e.records);
18407
- function tc({ rawData: e, groupingField: t, listedGroupKeys: n, idProvider: r }) {
18408
- let [i, a] = z(() => $s(0, void 0)), o = R(/* @__PURE__ */ new Set()), s = R(/* @__PURE__ */ new Set()), c = N(() => {
18414
+ }), tc = (e) => e.slices.flatMap((e) => e.records);
18415
+ function nc({ rawData: e, groupingField: t, listedGroupKeys: n, idProvider: r }) {
18416
+ let [i, a] = z(() => ec(0, void 0)), o = R(/* @__PURE__ */ new Set()), s = R(/* @__PURE__ */ new Set()), c = N(() => {
18409
18417
  for (let e of o.current) e();
18410
18418
  o.current.clear();
18411
18419
  }, []);
@@ -18413,7 +18421,7 @@ function tc({ rawData: e, groupingField: t, listedGroupKeys: n, idProvider: r })
18413
18421
  return c;
18414
18422
  }, [c]);
18415
18423
  let l = N(() => {
18416
- c(), s.current.clear(), a((e) => e.byGroup.size ? $s(e.generation + 1, e.field) : e);
18424
+ c(), s.current.clear(), a((e) => e.byGroup.size ? ec(e.generation + 1, e.field) : e);
18417
18425
  }, [c]), u = i.field === t ? i.byGroup : void 0, d = p((e) => e === t), f = p(({ groupKey: e, groupValue: n, fetchMore: r, request: c, mode: l, cursor: u, total: f }) => {
18418
18426
  let { generation: p } = i, m = t, h = `${p}:${e}`;
18419
18427
  if (s.current.has(h)) return;
@@ -18421,7 +18429,7 @@ function tc({ rawData: e, groupingField: t, listedGroupKeys: n, idProvider: r })
18421
18429
  let g = i.field === m ? i.byGroup.get(e)?.slices.length ?? 0 : 0, _ = (t) => {
18422
18430
  d(m) && a((n) => {
18423
18431
  if (n.generation !== p) return n;
18424
- let r = n.field === m ? n : $s(p, m), i = new Map(r.byGroup);
18432
+ let r = n.field === m ? n : ec(p, m), i = new Map(r.byGroup);
18425
18433
  return i.set(e, t(r.byGroup.get(e))), {
18426
18434
  ...r,
18427
18435
  byGroup: i
@@ -18456,7 +18464,7 @@ function tc({ rawData: e, groupingField: t, listedGroupKeys: n, idProvider: r })
18456
18464
  C();
18457
18465
  return;
18458
18466
  }
18459
- let T = qs(w) ? w : Ys(w);
18467
+ let T = Js(w) ? w : Xs(w);
18460
18468
  try {
18461
18469
  x = T.subscribe({
18462
18470
  next: (t) => {
@@ -18466,7 +18474,7 @@ function tc({ rawData: e, groupingField: t, listedGroupKeys: n, idProvider: r })
18466
18474
  }
18467
18475
  if (!t.data) return;
18468
18476
  let { cursor: n = null, total: r } = t.data, i = t.data.records.filter((t) => {
18469
- let n = m === void 0 ? void 0 : Zs(t, m);
18477
+ let n = m === void 0 ? void 0 : Qs(t, m);
18470
18478
  return n !== void 0 && String(n) === e;
18471
18479
  }), a = !v;
18472
18480
  b(), _((e) => {
@@ -18497,7 +18505,7 @@ function tc({ rawData: e, groupingField: t, listedGroupKeys: n, idProvider: r })
18497
18505
  return {
18498
18506
  groupedRawData: L(() => {
18499
18507
  if (!u) return e;
18500
- let t = Array.from(u).flatMap(([e, t]) => n?.has(e) ? ec(t) : []);
18508
+ let t = Array.from(u).flatMap(([e, t]) => n?.has(e) ? tc(t) : []);
18501
18509
  if (!t.length) return e;
18502
18510
  let i = new Set(e.map((e, t) => r(e, t))), a = t.filter((t, n) => {
18503
18511
  let a = r(t, e.length + n);
@@ -18542,7 +18550,7 @@ function tc({ rawData: e, groupingField: t, listedGroupKeys: n, idProvider: r })
18542
18550
  }
18543
18551
  //#endregion
18544
18552
  //#region src/blocks/datasource/utils.ts
18545
- var nc = (e, t) => {
18553
+ var rc = (e, t) => {
18546
18554
  let n = /* @__PURE__ */ new Map();
18547
18555
  for (let r of e) {
18548
18556
  let e = String(r[t]);
@@ -18552,13 +18560,13 @@ var nc = (e, t) => {
18552
18560
  };
18553
18561
  //#endregion
18554
18562
  //#region src/blocks/datasource/useData.ts
18555
- function rc(e, t) {
18563
+ function ic(e, t) {
18556
18564
  return e === t ? void 0 : e?.page;
18557
18565
  }
18558
- function ic({ paginationType: e, sameQuery: t, perPage: n, previousPerPage: r, currentPage: i }) {
18566
+ function ac({ paginationType: e, sameQuery: t, perPage: n, previousPerPage: r, currentPage: i }) {
18559
18567
  return e === "pages" && t && n !== r ? i : void 0;
18560
18568
  }
18561
- var ac = (e, t, n, r) => {
18569
+ var oc = (e, t, n, r) => {
18562
18570
  let i = t;
18563
18571
  return {
18564
18572
  label: e.label(i, r),
@@ -18568,21 +18576,21 @@ var ac = (e, t, n, r) => {
18568
18576
  description: e.description?.(i, r),
18569
18577
  actions: e.actions?.(i, r)
18570
18578
  };
18571
- }, oc = (e, t, n) => {
18579
+ }, sc = (e, t, n) => {
18572
18580
  let r = n.current;
18573
18581
  return r.field !== t && (r.field = t, r.entries = /* @__PURE__ */ new WeakMap()), e.map((e) => {
18574
18582
  let n = r.entries.get(e);
18575
18583
  if (n) return n;
18576
18584
  let i = {
18577
18585
  ...e,
18578
- [Qs]: Zs(e, t)
18586
+ [$s]: Qs(e, t)
18579
18587
  };
18580
18588
  return r.entries.set(e, i), i;
18581
18589
  });
18582
- }, sc = "", cc = ({ records: e, parentKey: t, fields: n, groupByConfig: r, filters: i }) => {
18590
+ }, cc = "", lc = ({ records: e, parentKey: t, fields: n, groupByConfig: r, filters: i }) => {
18583
18591
  let [a, ...o] = n, s = r[a], c = [], l = /* @__PURE__ */ new Map();
18584
18592
  for (let t of e) {
18585
- let e = Zs(t, a);
18593
+ let e = Qs(t, a);
18586
18594
  if (e === void 0) {
18587
18595
  c.push(t);
18588
18596
  continue;
@@ -18592,7 +18600,7 @@ var ac = (e, t, n, r) => {
18592
18600
  }
18593
18601
  return {
18594
18602
  groups: Array.from(l.entries()).map(([e, n]) => {
18595
- let a = `${t}${e}`, c = o.length > 0 ? cc({
18603
+ let a = `${t}${e}`, c = o.length > 0 ? lc({
18596
18604
  records: n,
18597
18605
  parentKey: a,
18598
18606
  fields: o,
@@ -18613,7 +18621,7 @@ var ac = (e, t, n, r) => {
18613
18621
  own: c
18614
18622
  };
18615
18623
  };
18616
- function lc() {
18624
+ function uc() {
18617
18625
  let [e, t] = z(!0), [n, r] = z([]), [i, a] = z(null);
18618
18626
  return {
18619
18627
  isInitialLoading: e,
@@ -18624,16 +18632,16 @@ function lc() {
18624
18632
  setError: a
18625
18633
  };
18626
18634
  }
18627
- function uc() {
18635
+ function dc() {
18628
18636
  let [e, t] = z(null);
18629
18637
  return {
18630
18638
  paginationInfo: e,
18631
18639
  setPaginationInfo: t
18632
18640
  };
18633
18641
  }
18634
- var dc = (e) => e, fc = (e, t) => "id" in e ? `${e.id}` : t || JSON.stringify(e);
18635
- function pc(e, { filters: t, enabled: n = !0, pageRequest: r, onPageRequested: i, onError: a, fetchParamsProvider: o = dc, onResponse: s } = {}, c = []) {
18636
- let { dataAdapter: l, currentFilters: u, currentSortings: d, search: f, currentSearch: p, setCurrentSearch: m, isLoading: h, setIsLoading: g, currentGrouping: _, grouping: v, idProvider: y = fc, itemPreFilter: b, currentPage: x, onPaginationChange: S } = e, C = R(), { isInitialLoading: w, setIsInitialLoading: T, data: E, setData: D, error: ee, setError: O } = lc(), [te, k] = z(0), { paginationInfo: A, setPaginationInfo: j } = uc();
18642
+ var fc = (e) => e, pc = (e, t) => "id" in e ? `${e.id}` : t || JSON.stringify(e);
18643
+ function mc(e, { filters: t, enabled: n = !0, pageRequest: r, onPageRequested: i, onError: a, fetchParamsProvider: o = fc, onResponse: s } = {}, c = []) {
18644
+ let { dataAdapter: l, currentFilters: u, currentSortings: d, search: f, currentSearch: p, setCurrentSearch: m, isLoading: h, setIsLoading: g, currentGrouping: _, grouping: v, idProvider: y = pc, itemPreFilter: b, currentPage: x, onPaginationChange: S } = e, C = R(), { isInitialLoading: w, setIsInitialLoading: T, data: E, setData: D, error: ee, setError: O } = uc(), [te, k] = z(0), { paginationInfo: A, setPaginationInfo: j } = dc();
18637
18645
  F(() => {
18638
18646
  b && D((e) => {
18639
18647
  let t = e.length, n = e.filter(b), r = t - n.length;
@@ -18669,7 +18677,7 @@ function pc(e, { filters: t, enabled: n = !0, pageRequest: r, onPageRequested: i
18669
18677
  }
18670
18678
  return Array.from(r.values());
18671
18679
  }
18672
- }, [Y, ue] = z(void 0), X = _?.field, { groupedRawData: de, pagingFor: fe, resetGroupPages: Z } = tc({
18680
+ }, [Y, ue] = z(void 0), X = _?.field, { groupedRawData: de, pagingFor: fe, resetGroupPages: Z } = nc({
18673
18681
  rawData: E,
18674
18682
  groupingField: X,
18675
18683
  listedGroupKeys: L(() => Y?.request.grouping?.field === X ? new Set(Y?.groups.map((e) => String(e.key))) : void 0, [Y, X]),
@@ -18726,10 +18734,10 @@ function pc(e, { filters: t, enabled: n = !0, pageRequest: r, onPageRequested: i
18726
18734
  if (!X || !t) return e;
18727
18735
  let n = Y?.request.grouping?.field === X ? Y.groups : [], r = new Map(n.map((e) => [String(e.key), e.total]));
18728
18736
  for (let e of E) {
18729
- let t = Zs(e, X);
18737
+ let t = Qs(e, X);
18730
18738
  t !== void 0 && !r.has(String(t)) && r.set(String(t), void 0);
18731
18739
  }
18732
- for (let [n, i] of r) e.set(n, ac(t, n, i, q));
18740
+ for (let [n, i] of r) e.set(n, oc(t, n, i, q));
18733
18741
  return e;
18734
18742
  }, [
18735
18743
  E,
@@ -18743,9 +18751,9 @@ function pc(e, { filters: t, enabled: n = !0, pageRequest: r, onPageRequested: i
18743
18751
  }), he = L(() => {
18744
18752
  let e = v?.groupBy;
18745
18753
  if (X && e && e[X]) {
18746
- let t = oc(de, X, me), n = t.filter((e) => e[Qs] === void 0), r = nc(t.filter((e) => e[Qs] !== void 0), Qs), i = e[X], { fetchMore: a } = i, o = Y?.request.grouping?.field === X ? Y : void 0, s = new Map(o?.groups.map((e) => [String(e.key), e])), c = /* @__PURE__ */ new Map();
18754
+ let t = sc(de, X, me), n = t.filter((e) => e[$s] === void 0), r = rc(t.filter((e) => e[$s] !== void 0), $s), i = e[X], { fetchMore: a } = i, o = Y?.request.grouping?.field === X ? Y : void 0, s = new Map(o?.groups.map((e) => [String(e.key), e])), c = /* @__PURE__ */ new Map();
18747
18755
  for (let e of t.slice(0, E.length)) {
18748
- let t = e[Qs];
18756
+ let t = e[$s];
18749
18757
  if (t !== void 0) {
18750
18758
  let e = String(t);
18751
18759
  c.set(e, (c.get(e) ?? 0) + 1);
@@ -18769,14 +18777,14 @@ function pc(e, { filters: t, enabled: n = !0, pageRequest: r, onPageRequested: i
18769
18777
  let { total: r, ...a } = u(t);
18770
18778
  return {
18771
18779
  key: t,
18772
- ...pe.get(t) ?? ac(i, t, void 0, q),
18780
+ ...pe.get(t) ?? oc(i, t, void 0, q),
18773
18781
  ...r !== void 0 && { itemCount: r },
18774
18782
  onClick: i.onClick ? () => i.onClick?.(t, q) : void 0,
18775
18783
  records: n,
18776
18784
  ...a,
18777
18785
  ...(() => {
18778
18786
  if (!d.length) return {};
18779
- let r = cc({
18787
+ let r = lc({
18780
18788
  records: n,
18781
18789
  parentKey: t,
18782
18790
  fields: d,
@@ -18875,7 +18883,7 @@ function pc(e, { filters: t, enabled: n = !0, pageRequest: r, onPageRequested: i
18875
18883
  });
18876
18884
  return;
18877
18885
  }
18878
- let p = "subscribe" in f ? f : Ys(f), m = !1, h = p.subscribe({
18886
+ let p = "subscribe" in f ? f : Xs(f), m = !1, h = p.subscribe({
18879
18887
  next: (e) => {
18880
18888
  e.data ? (!r && !m && Z(), m = !0, Q(e.data, r, e.loading, {
18881
18889
  query: c,
@@ -18901,7 +18909,7 @@ function pc(e, { filters: t, enabled: n = !0, pageRequest: r, onPageRequested: i
18901
18909
  g,
18902
18910
  ...c
18903
18911
  ]), _e = N((e) => {
18904
- hc(A) && (K.current?.(e, "navigation"), g(!0), $({
18912
+ gc(A) && (K.current?.(e, "navigation"), g(!0), $({
18905
18913
  filters: q,
18906
18914
  currentPage: e,
18907
18915
  search: J
@@ -18916,7 +18924,7 @@ function pc(e, { filters: t, enabled: n = !0, pageRequest: r, onPageRequested: i
18916
18924
  ]), ve = N(() => {
18917
18925
  let e = M.current;
18918
18926
  if (!(!e || h || B)) {
18919
- if (!gc(e)) console.warn("loadMore is only applicable for infinite-scroll pagination type");
18927
+ if (!_c(e)) console.warn("loadMore is only applicable for infinite-scroll pagination type");
18920
18928
  else if (e.hasMore) {
18921
18929
  let t = e.cursor;
18922
18930
  V(!0), g(!0), $({
@@ -18945,8 +18953,8 @@ function pc(e, { filters: t, enabled: n = !0, pageRequest: r, onPageRequested: i
18945
18953
  grouping: _,
18946
18954
  search: J,
18947
18955
  paginationType: l.paginationType
18948
- }), a = i === ae.current && c.length === oe.current.length && c.every((e, t) => Object.is(e, oe.current[t])), o = rc(r, se.current);
18949
- if (!h && W.current === 1 && o === void 0 && l.paginationType === "pages" && e !== void 0 && a && U.current !== void 0 && e < U.current && hc(t) && !t.groupsPaged && t.currentPage === 1 && ie.current.length >= e) {
18956
+ }), a = i === ae.current && c.length === oe.current.length && c.every((e, t) => Object.is(e, oe.current[t])), o = ic(r, se.current);
18957
+ if (!h && W.current === 1 && o === void 0 && l.paginationType === "pages" && e !== void 0 && a && U.current !== void 0 && e < U.current && gc(t) && !t.groupsPaged && t.currentPage === 1 && ie.current.length >= e) {
18950
18958
  U.current = e, D((t) => t.slice(0, e)), Z(), j((t) => t && t.type === "pages" ? {
18951
18959
  ...t,
18952
18960
  perPage: e,
@@ -18954,7 +18962,7 @@ function pc(e, { filters: t, enabled: n = !0, pageRequest: r, onPageRequested: i
18954
18962
  } : t);
18955
18963
  return;
18956
18964
  }
18957
- let s = ic({
18965
+ let s = ac({
18958
18966
  paginationType: l.paginationType,
18959
18967
  sameQuery: a,
18960
18968
  perPage: e,
@@ -18999,17 +19007,17 @@ function pc(e, { filters: t, enabled: n = !0, pageRequest: r, onPageRequested: i
18999
19007
  committedQuery: H
19000
19008
  };
19001
19009
  }
19002
- function mc(e) {
19010
+ function hc(e) {
19003
19011
  return e?.type === "pages" && e.groupsPaged ? {
19004
19012
  records: e.recordsTotal,
19005
19013
  groups: e.total
19006
19014
  } : { records: e?.total };
19007
19015
  }
19008
- function hc(e) {
19016
+ function gc(e) {
19009
19017
  return e !== null && e.type === "pages";
19010
19018
  }
19011
- function gc(e) {
19019
+ function _c(e) {
19012
19020
  return e !== null && e.type === "infinite-scroll";
19013
19021
  }
19014
19022
  //#endregion
19015
- export { Et as A, U as B, yn as C, Xt as D, Qt as E, K as F, ie as H, se as I, G as L, Ae as M, Ee as N, Pt as O, q as P, W as R, wn as S, cn as T, re as U, ae as V, Qo as _, pc as a, Pn as b, Js as c, hs as d, ms as f, es as g, ns as h, mc as i, Ne as j, jt as k, Ys as l, ls as m, gc as n, Qs as o, us as p, hc as r, qs as s, sc as t, Ss as u, Jo as v, _n as w, kn as x, Go as y, oe as z };
19023
+ export { jt as A, oe as B, wn as C, Qt as D, cn as E, q as F, ae as H, K as I, se as L, Ne as M, Ae as N, Xt as O, Ee as P, G as R, kn as S, _n as T, ie as U, U as V, re as W, es as _, mc as a, Go as b, Ys as c, bs as d, hs as f, ns as g, ls as h, hc as i, Et as j, Pt as k, Xs as l, us as m, _c as n, $s as o, ms as p, gc as r, Js as s, cc as t, Cs as u, Qo as v, yn as w, Pn as x, Jo as y, W as z };