@alfadocs/ui-kit 1.147.1 → 1.148.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 (108) hide show
  1. package/dist/_chunks/{appointment-details-panel.history-eqPMKmW0.js → appointment-details-panel.history-BxNqcA-r.js} +109 -110
  2. package/dist/_chunks/{appointment-timeline-D5qbZ7in.js → appointment-timeline-CuZW-CGT.js} +2 -2
  3. package/dist/_chunks/{bill-line-table-DnkFqMnM.js → bill-line-table-B8Cc2pTH.js} +2 -2
  4. package/dist/_chunks/button-group-CHQD8GJ0.js +449 -0
  5. package/dist/_chunks/{calendar-appointment-editor-dialog-sY-k0GGW.js → calendar-appointment-editor-dialog-Cz8F2H4M.js} +6 -6
  6. package/dist/_chunks/{calendar-waiting-list-panel-Bm7NAZdk.js → calendar-waiting-list-panel-C4T85b4q.js} +3 -3
  7. package/dist/_chunks/{calendar.sheets-CCvdZF-R.js → calendar.sheets-DsgPdycU.js} +4 -4
  8. package/dist/_chunks/{data-grid-CujX-2tF.js → data-grid-CkzbCZSo.js} +486 -476
  9. package/dist/_chunks/{default-tabs-CqP1uWdx.js → default-tabs-C45FVzsG.js} +3 -3
  10. package/dist/_chunks/editable-description-BsSjLnSx.js +193 -0
  11. package/dist/_chunks/{editable-description.agent-Bm_LBV2j.js → editable-description.agent-zyyR_hxB.js} +2 -2
  12. package/dist/_chunks/{face-scheme-ByYeboH9.js → face-scheme-BC2whb1S.js} +2 -2
  13. package/dist/_chunks/{invoice-upload-list-srvWy5_d.js → invoice-upload-list-BReimsvV.js} +3 -3
  14. package/dist/_chunks/{notes-panel-C9aB1Cma.js → notes-panel-BHMnLbEH.js} +2 -2
  15. package/dist/_chunks/prescription-history-CQuJmd4H.js +1846 -0
  16. package/dist/_chunks/{rich-text-editor-CJXc5GgH.js → rich-text-editor-BAcJq1PO.js} +445 -437
  17. package/dist/_chunks/{tasks-panel-DsjfS_k5.js → tasks-panel-DufAoAxG.js} +2 -2
  18. package/dist/_chunks/{toolbar-z_6tE7zG.js → toolbar-B9oh9XY9.js} +2 -2
  19. package/dist/_chunks/{use-appointment-details-read-Dod21IxM.js → use-appointment-details-read-kYp-gfhb.js} +417 -422
  20. package/dist/agent-catalog.json +2 -2
  21. package/dist/appointment-editor-panel/index.js +1 -1
  22. package/dist/browser-support.js +1 -1
  23. package/dist/calendar-action-buttons/index.js +1 -1
  24. package/dist/components/appointment-details-panel/appointment-details-panel.history.d.ts +4 -6
  25. package/dist/components/appointment-details-panel/index.js +1 -1
  26. package/dist/components/appointment-timeline/index.js +1 -1
  27. package/dist/components/bill-line-table/index.js +1 -1
  28. package/dist/components/bill-table/index.js +1 -1
  29. package/dist/components/button-group/button-group.d.ts +2 -1
  30. package/dist/components/button-group/index.js +1 -1
  31. package/dist/components/data-grid/data-grid.variants.d.ts +7 -1
  32. package/dist/components/data-grid/index.js +2 -2
  33. package/dist/components/editable-description/editable-description.d.ts +2 -1
  34. package/dist/components/editable-description/index.js +2 -2
  35. package/dist/components/face-scheme/index.js +1 -1
  36. package/dist/components/invoice-upload-list/index.js +1 -1
  37. package/dist/components/notes-panel/index.js +1 -1
  38. package/dist/components/rich-text-editor/index.js +1 -1
  39. package/dist/components/tasks-panel/index.js +1 -1
  40. package/dist/core.css +1 -1
  41. package/dist/find-free-slots-panel/index.js +1 -1
  42. package/dist/host-compat.css +7 -1
  43. package/dist/i18n/locales/ar.d.ts +0 -1
  44. package/dist/i18n/locales/ar.js +1 -2
  45. package/dist/i18n/locales/de.d.ts +0 -1
  46. package/dist/i18n/locales/de.js +1 -2
  47. package/dist/i18n/locales/el.d.ts +0 -1
  48. package/dist/i18n/locales/el.js +1 -2
  49. package/dist/i18n/locales/en.d.ts +0 -1
  50. package/dist/i18n/locales/en.js +1 -2
  51. package/dist/i18n/locales/es.d.ts +0 -1
  52. package/dist/i18n/locales/es.js +1 -2
  53. package/dist/i18n/locales/fr.d.ts +0 -1
  54. package/dist/i18n/locales/fr.js +1 -2
  55. package/dist/i18n/locales/hi.d.ts +0 -1
  56. package/dist/i18n/locales/hi.js +1 -2
  57. package/dist/i18n/locales/it.d.ts +0 -1
  58. package/dist/i18n/locales/it.js +1 -2
  59. package/dist/i18n/locales/ja.d.ts +0 -1
  60. package/dist/i18n/locales/ja.js +1 -2
  61. package/dist/i18n/locales/nl.d.ts +0 -1
  62. package/dist/i18n/locales/nl.js +1 -2
  63. package/dist/i18n/locales/pl.d.ts +0 -1
  64. package/dist/i18n/locales/pl.js +1 -2
  65. package/dist/i18n/locales/pt.d.ts +0 -1
  66. package/dist/i18n/locales/pt.js +1 -2
  67. package/dist/i18n/locales/ro.d.ts +0 -1
  68. package/dist/i18n/locales/ro.js +1 -2
  69. package/dist/i18n/locales/ru.d.ts +0 -1
  70. package/dist/i18n/locales/ru.js +1 -2
  71. package/dist/i18n/locales/sq.d.ts +0 -1
  72. package/dist/i18n/locales/sq.js +1 -2
  73. package/dist/i18n/locales/sv.d.ts +0 -1
  74. package/dist/i18n/locales/sv.js +1 -2
  75. package/dist/i18n/locales/tr.d.ts +0 -1
  76. package/dist/i18n/locales/tr.js +1 -2
  77. package/dist/i18n/locales/zh.d.ts +0 -1
  78. package/dist/i18n/locales/zh.js +1 -2
  79. package/dist/index.js +17 -17
  80. package/dist/locales/ar.json +1 -2
  81. package/dist/locales/de.json +1 -2
  82. package/dist/locales/el.json +1 -2
  83. package/dist/locales/en.json +1 -2
  84. package/dist/locales/es.json +1 -2
  85. package/dist/locales/fr.json +1 -2
  86. package/dist/locales/hi.json +1 -2
  87. package/dist/locales/it.json +1 -2
  88. package/dist/locales/ja.json +1 -2
  89. package/dist/locales/nl.json +1 -2
  90. package/dist/locales/pl.json +1 -2
  91. package/dist/locales/pt.json +1 -2
  92. package/dist/locales/ro.json +1 -2
  93. package/dist/locales/ru.json +1 -2
  94. package/dist/locales/sq.json +1 -2
  95. package/dist/locales/sv.json +1 -2
  96. package/dist/locales/tr.json +1 -2
  97. package/dist/locales/zh.json +1 -2
  98. package/dist/online-bookings-panel/index.js +1 -1
  99. package/dist/patterns/calendar/index.js +2 -2
  100. package/dist/patterns/prescription/index.d.ts +1 -1
  101. package/dist/patterns/prescription/index.js +1 -1
  102. package/dist/patterns/prescription/prescription-history.d.ts +28 -0
  103. package/dist/tokens.css +1 -1
  104. package/dist/waiting-list-panel/index.js +2 -2
  105. package/package.json +1 -1
  106. package/dist/_chunks/button-group-N60L3HMa.js +0 -408
  107. package/dist/_chunks/editable-description-BQauSuCG.js +0 -142
  108. package/dist/_chunks/prescription-history-CFs3JMIE.js +0 -1773
@@ -1,5 +1,5 @@
1
- import { jsx as C, Fragment as ve, jsxs as te } from "react/jsx-runtime";
2
- import hn, { useState as oe, useRef as W, useEffect as ue, useCallback as de, useMemo as ne, useLayoutEffect as Ze, useId as ss, Fragment as ci, memo as sa, Suspense as la, lazy as aa, useSyncExternalStore as ca, forwardRef as ua, useImperativeHandle as da } from "react";
1
+ import { jsx as C, Fragment as ve, jsxs as ee } from "react/jsx-runtime";
2
+ import wn, { useState as oe, useRef as W, useEffect as ue, useCallback as de, useMemo as ne, useLayoutEffect as Ze, useId as ss, Fragment as ci, memo as sa, Suspense as la, lazy as aa, useSyncExternalStore as ca, forwardRef as ua, useImperativeHandle as da } from "react";
3
3
  import { flushSync as wr } from "react-dom";
4
4
  import { useTranslation as fe } from "react-i18next";
5
5
  import { u as fa } from "./registry-DvAUVLHh.js";
@@ -14,7 +14,7 @@ import { C as io } from "./checkbox-DV4sNDeB.js";
14
14
  import { V as $t } from "./visually-hidden-BHxEUGyT.js";
15
15
  import { n as fi } from "./normalize-diacritics-DhJjQ3Bp.js";
16
16
  import { j as no, k as ga, b as ma, l as pa, o as ha, p as wa, m as ba, c as Bn, i as Sa, f as ya, q as va, e as Ca, s as Ra } from "./export-files-BByoK9Cg.js";
17
- import { c as Y } from "./index-D2ZczOXr.js";
17
+ import { c as Z } from "./index-D2ZczOXr.js";
18
18
  import { a as cs } from "./compact-editor-fields-cP6yh7xv.js";
19
19
  import { F as _a } from "./form-field-context-DtiROUJV.js";
20
20
  import { N as us } from "./number-input-Bi5Yk6PX.js";
@@ -597,7 +597,7 @@ function uc(e) {
597
597
  return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
598
598
  }
599
599
  function qn(e, t) {
600
- return e == null ? null : ac(e) ? /* @__PURE__ */ hn.createElement(e, t) : e;
600
+ return e == null ? null : ac(e) ? /* @__PURE__ */ wn.createElement(e, t) : e;
601
601
  }
602
602
  function dc(e) {
603
603
  var t, n;
@@ -846,7 +846,7 @@ function bc(e) {
846
846
  };
847
847
  return t(), n;
848
848
  }
849
- function dn(e, t) {
849
+ function fn(e, t) {
850
850
  if (Object.is(e, t)) return !0;
851
851
  if (typeof e != "object" || e === null || typeof t != "object" || t === null) return !1;
852
852
  if (e instanceof Map && t instanceof Map) {
@@ -883,7 +883,7 @@ var Ei;
883
883
  function Sc() {
884
884
  if (Ei) return Qo;
885
885
  Ei = 1;
886
- var e = hn;
886
+ var e = wn;
887
887
  function t(d, g) {
888
888
  return d === g && (d !== 0 || 1 / d === 1 / g) || d !== d && g !== g;
889
889
  }
@@ -979,7 +979,7 @@ function yc() {
979
979
  return p();
980
980
  }
981
981
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
982
- var r = hn, i = typeof Object.is == "function" ? Object.is : e, s = r.useState, l = r.useEffect, a = r.useLayoutEffect, c = r.useDebugValue, u = !1, d = !1, g = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? o : t;
982
+ var r = wn, i = typeof Object.is == "function" ? Object.is : e, s = r.useState, l = r.useEffect, a = r.useLayoutEffect, c = r.useDebugValue, u = !1, d = !1, g = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? o : t;
983
983
  Xo.useSyncExternalStore = r.useSyncExternalStore !== void 0 ? r.useSyncExternalStore : g, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
984
984
  })()), Xo;
985
985
  }
@@ -1000,7 +1000,7 @@ var Pi;
1000
1000
  function vc() {
1001
1001
  if (Pi) return Wo;
1002
1002
  Pi = 1;
1003
- var e = hn, t = ws();
1003
+ var e = wn, t = ws();
1004
1004
  function n(c, u) {
1005
1005
  return c === u && (c !== 0 || 1 / c === 1 / u) || c !== c && u !== u;
1006
1006
  }
@@ -1064,7 +1064,7 @@ function Cc() {
1064
1064
  return c === u && (c !== 0 || 1 / c === 1 / u) || c !== c && u !== u;
1065
1065
  }
1066
1066
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1067
- var t = hn, n = ws(), o = typeof Object.is == "function" ? Object.is : e, r = n.useSyncExternalStore, i = t.useRef, s = t.useEffect, l = t.useMemo, a = t.useDebugValue;
1067
+ var t = wn, n = ws(), o = typeof Object.is == "function" ? Object.is : e, r = n.useSyncExternalStore, i = t.useRef, s = t.useEffect, l = t.useMemo, a = t.useDebugValue;
1068
1068
  Zo.useSyncExternalStoreWithSelector = function(c, u, d, g, f) {
1069
1069
  var p = i(null);
1070
1070
  if (p.current === null) {
@@ -1125,7 +1125,7 @@ function bs(e, t = (o) => o, n) {
1125
1125
  return _c.useSyncExternalStoreWithSelector(r, i, i, t, o);
1126
1126
  }
1127
1127
  function Ic(e) {
1128
- const t = bs(e.source, e.selector, { compare: dn });
1128
+ const t = bs(e.source, e.selector, { compare: fn });
1129
1129
  return typeof e.children == "function" ? e.children(t) : e.children;
1130
1130
  }
1131
1131
  function Fc(e) {
@@ -2204,7 +2204,7 @@ function Zu(e) {
2204
2204
  }
2205
2205
  return G;
2206
2206
  }, {
2207
- compare: dn,
2207
+ compare: fn,
2208
2208
  debugName: "table/store"
2209
2209
  }));
2210
2210
  for (let G = 0; G < F.length; G++) {
@@ -2893,7 +2893,7 @@ function Ws() {
2893
2893
  maxSize: Number.MAX_SAFE_INTEGER
2894
2894
  };
2895
2895
  }
2896
- function wn(e) {
2896
+ function bn(e) {
2897
2897
  var r;
2898
2898
  const t = Ws(), n = (r = e.table.atoms.columnSizing) == null ? void 0 : r.get(), o = n && It(n, e.id) ? n[e.id] : void 0;
2899
2899
  return Math.min(Math.max(e.columnDef.minSize ?? t.minSize, o ?? e.columnDef.size ?? t.size), e.columnDef.maxSize ?? t.maxSize);
@@ -2902,7 +2902,7 @@ function Xn(e) {
2902
2902
  const t = H(), n = H(), o = new Array(e.length);
2903
2903
  let r = 0;
2904
2904
  for (let s = 0; s < e.length; s++) {
2905
- const l = e[s], a = j(l, "getSize", wn);
2905
+ const l = e[s], a = j(l, "getSize", bn);
2906
2906
  o[s] = a, t[l.id] = r, r += a;
2907
2907
  }
2908
2908
  let i = 0;
@@ -2941,7 +2941,7 @@ function Ad(e) {
2941
2941
  });
2942
2942
  }
2943
2943
  function Xs(e) {
2944
- if (!e.subHeaders.length) return wn(e.column);
2944
+ if (!e.subHeaders.length) return bn(e.column);
2945
2945
  let t = 0;
2946
2946
  for (let n = 0; n < e.subHeaders.length; n++) t += Xs(e.subHeaders[n]);
2947
2947
  return t;
@@ -2966,7 +2966,7 @@ function zd(e, t) {
2966
2966
  }
2967
2967
  function Pr(e) {
2968
2968
  let t = 0;
2969
- for (let n = 0; n < e.length; n++) t += j(e[n], "getSize", wn);
2969
+ for (let n = 0; n < e.length; n++) t += j(e[n], "getSize", bn);
2970
2970
  return t;
2971
2971
  }
2972
2972
  function Vd(e) {
@@ -3004,11 +3004,11 @@ function Hd(e, t) {
3004
3004
  return (r) => {
3005
3005
  if (!o || Yo(r) && r.touches.length > 1)
3006
3006
  return;
3007
- const i = yo(e), s = e.getLeafHeaders().map((M) => [M.column.id, wn(M.column)]), l = Yo(r) ? Math.round(r.touches[0].clientX) : r.clientX, a = H(), c = (M, D) => {
3007
+ const i = yo(e), s = e.getLeafHeaders().map((M) => [M.column.id, bn(M.column)]), l = Yo(r) ? Math.round(r.touches[0].clientX) : r.clientX, a = H(), c = (M, D) => {
3008
3008
  if (typeof D != "number") return;
3009
3009
  const N = n.table, G = N.options.columnResizeMode === "onChange" || M === "end";
3010
3010
  N._reactivity.batch(() => {
3011
- fn(N, (O) => {
3011
+ gn(N, (O) => {
3012
3012
  const U = N.options.columnResizeDirection === "rtl" ? -1 : 1, $ = (D - (O.startOffset ?? 0)) * U, v = O.startSize ?? 0, S = Math.max(v > 0 ? $ / v : 0, -0.999999);
3013
3013
  if (G) {
3014
3014
  const y = O.columnSizingStart;
@@ -3040,7 +3040,7 @@ function Hd(e, t) {
3040
3040
  c("move", M), u = requestAnimationFrame(f);
3041
3041
  }, m = (M) => {
3042
3042
  u !== null && (cancelAnimationFrame(u), u = null, d = !1), n.table._reactivity.batch(() => {
3043
- c("end", M ?? g), fn(n.table, (D) => ({
3043
+ c("end", M ?? g), gn(n.table, (D) => ({
3044
3044
  ...D,
3045
3045
  isResizingColumn: !1,
3046
3046
  startOffset: null,
@@ -3067,7 +3067,7 @@ function Hd(e, t) {
3067
3067
  }, F = () => {
3068
3068
  h == null || h.removeEventListener("touchmove", w.moveHandler), h == null || h.removeEventListener("touchend", w.upHandler), h == null || h.removeEventListener("touchcancel", w.cancelHandler);
3069
3069
  }, I = $d() ? { passive: !1 } : !1;
3070
- Yo(r) ? (h == null || h.addEventListener("touchmove", w.moveHandler, I), h == null || h.addEventListener("touchend", w.upHandler, I), h == null || h.addEventListener("touchcancel", w.cancelHandler, I)) : (h == null || h.addEventListener("mousemove", _.moveHandler, I), h == null || h.addEventListener("mouseup", _.upHandler, I)), fn(n.table, (M) => ({
3070
+ Yo(r) ? (h == null || h.addEventListener("touchmove", w.moveHandler, I), h == null || h.addEventListener("touchend", w.upHandler, I), h == null || h.addEventListener("touchcancel", w.cancelHandler, I)) : (h == null || h.addEventListener("mousemove", _.moveHandler, I), h == null || h.addEventListener("mouseup", _.upHandler, I)), gn(n.table, (M) => ({
3071
3071
  ...M,
3072
3072
  startOffset: l,
3073
3073
  startSize: i,
@@ -3078,12 +3078,12 @@ function Hd(e, t) {
3078
3078
  }));
3079
3079
  };
3080
3080
  }
3081
- function fn(e, t) {
3081
+ function gn(e, t) {
3082
3082
  var n, o;
3083
3083
  (o = (n = e.options).onColumnResizingChange) == null || o.call(n, t);
3084
3084
  }
3085
3085
  function jd(e, t) {
3086
- fn(e, t ? lr() : be(e.initialState.columnResizing ?? lr()));
3086
+ gn(e, t ? lr() : be(e.initialState.columnResizing ?? lr()));
3087
3087
  }
3088
3088
  let Zn = null;
3089
3089
  function $d() {
@@ -3124,7 +3124,7 @@ const Bd = {
3124
3124
  },
3125
3125
  constructTableAPIs: (e) => {
3126
3126
  pe("columnResizingFeature", e, {
3127
- table_setColumnResizing: { fn: (t) => fn(e, t) },
3127
+ table_setColumnResizing: { fn: (t) => gn(e, t) },
3128
3128
  table_resetHeaderSizeInfo: { fn: (t) => jd(e, t) }
3129
3129
  });
3130
3130
  }
@@ -3138,7 +3138,7 @@ const Bd = {
3138
3138
  assignColumnPrototype: (e, t) => {
3139
3139
  se("columnSizingFeature", e, t, {
3140
3140
  column_getSize: {
3141
- fn: (n) => wn(n),
3141
+ fn: (n) => bn(n),
3142
3142
  memoDeps: (n) => {
3143
3143
  var o, r;
3144
3144
  return [t.options.columns, (r = (o = t.atoms.columnSizing) == null ? void 0 : o.get()) == null ? void 0 : r[n.id]];
@@ -3665,7 +3665,7 @@ function fl(e, t) {
3665
3665
  });
3666
3666
  }
3667
3667
  function vf(e) {
3668
- const t = bn(e);
3668
+ const t = Sn(e);
3669
3669
  let n = [];
3670
3670
  return t && t > 0 && (n = [...new Array(t)].fill(null).map((o, r) => r)), n;
3671
3671
  }
@@ -3675,12 +3675,12 @@ function Cf(e) {
3675
3675
  }
3676
3676
  function Rf(e) {
3677
3677
  var o, r;
3678
- const t = ((r = (o = e.atoms.pagination) == null ? void 0 : o.get()) == null ? void 0 : r.pageIndex) ?? _t, n = bn(e);
3678
+ const t = ((r = (o = e.atoms.pagination) == null ? void 0 : o.get()) == null ? void 0 : r.pageIndex) ?? _t, n = Sn(e);
3679
3679
  return n === -1 ? !0 : n === 0 ? !1 : t < n - 1;
3680
3680
  }
3681
3681
  function _f(e) {
3682
3682
  var o, r;
3683
- const t = ((r = (o = e.atoms.pagination) == null ? void 0 : o.get()) == null ? void 0 : r.pageIndex) ?? _t, n = bn(e);
3683
+ const t = ((r = (o = e.atoms.pagination) == null ? void 0 : o.get()) == null ? void 0 : r.pageIndex) ?? _t, n = Sn(e);
3684
3684
  return Number.isFinite(n) && n > 0 && t < n - 1;
3685
3685
  }
3686
3686
  function xf(e) {
@@ -3693,11 +3693,11 @@ function Ff(e) {
3693
3693
  return Bt(e, 0);
3694
3694
  }
3695
3695
  function Ef(e) {
3696
- const t = bn(e);
3696
+ const t = Sn(e);
3697
3697
  if (!(!Number.isFinite(t) || t <= 0))
3698
3698
  return Bt(e, t - 1);
3699
3699
  }
3700
- function bn(e) {
3700
+ function Sn(e) {
3701
3701
  var r, i;
3702
3702
  const t = e.options.pageCount;
3703
3703
  if (t != null) return t;
@@ -3724,7 +3724,7 @@ const Mf = {
3724
3724
  table_setPageIndex: { fn: (t) => Bt(e, t) },
3725
3725
  table_resetPageIndex: { fn: (t) => dl(e, t) },
3726
3726
  table_setPageSize: { fn: (t) => fl(e, t) },
3727
- table_getPageCount: { fn: () => bn(e) },
3727
+ table_getPageCount: { fn: () => Sn(e) },
3728
3728
  table_resetPageSize: { fn: (t) => yf(e, t) },
3729
3729
  table_getPageOptions: { fn: () => vf(e) },
3730
3730
  table_getCanPreviousPage: { fn: () => Cf(e) },
@@ -3810,7 +3810,7 @@ function wl(e) {
3810
3810
  let o = !!(t.length && Object.keys(n).length);
3811
3811
  if (o) {
3812
3812
  const i = /* @__PURE__ */ new Map();
3813
- t.some((s) => !Sn(s, n) && go(s, i)) && (o = !1);
3813
+ t.some((s) => !yn(s, n) && go(s, i)) && (o = !1);
3814
3814
  }
3815
3815
  return o;
3816
3816
  }
@@ -3820,7 +3820,7 @@ function bl(e) {
3820
3820
  let r = !1;
3821
3821
  for (let s = 0; s < t.length; s++) {
3822
3822
  const l = t[s];
3823
- if (Sn(l, n))
3823
+ if (yn(l, n))
3824
3824
  !r && go(l, o) && (r = !0);
3825
3825
  else if (go(l, o)) return !1;
3826
3826
  }
@@ -3852,7 +3852,7 @@ function Sl(e, t, n) {
3852
3852
  }
3853
3853
  function Dr(e) {
3854
3854
  var t;
3855
- return Sn(e, ((t = e.table.atoms.rowSelection) == null ? void 0 : t.get()) ?? {});
3855
+ return yn(e, ((t = e.table.atoms.rowSelection) == null ? void 0 : t.get()) ?? {});
3856
3856
  }
3857
3857
  function yl(e) {
3858
3858
  return zr(e) === "some";
@@ -3935,7 +3935,7 @@ function vl(e, t) {
3935
3935
  function Cl(e, t, n, o) {
3936
3936
  const r = [];
3937
3937
  for (let i = 0; i < e.length; i++) {
3938
- const s = e[i], l = Sn(s, t);
3938
+ const s = e[i], l = yn(s, t);
3939
3939
  if (l && (n.push(s), o[s.id] = s), s.subRows.length) {
3940
3940
  const a = Cl(s.subRows, t, n, o);
3941
3941
  if (l) {
@@ -3955,7 +3955,7 @@ function Ar(e, t) {
3955
3955
  rowsById: o
3956
3956
  };
3957
3957
  }
3958
- function Sn(e, t) {
3958
+ function yn(e, t) {
3959
3959
  return !!(It(t, e.id) && t[e.id]);
3960
3960
  }
3961
3961
  function zr(e) {
@@ -3966,7 +3966,7 @@ function zr(e) {
3966
3966
  for (let s = 0; s < e.subRows.length; s++) {
3967
3967
  const l = e.subRows[s];
3968
3968
  if (n && !o) break;
3969
- if (Ye(l) && (r = !0, Sn(l, t) ? n = !0 : o = !1), l.subRows.length) {
3969
+ if (Ye(l) && (r = !0, yn(l, t) ? n = !0 : o = !1), l.subRows.length) {
3970
3970
  const a = zr(l);
3971
3971
  a === "all" ? (n = !0, r = !0) : a === "some" ? (n = !0, o = !1, r = !0) : o = !1;
3972
3972
  }
@@ -4601,16 +4601,16 @@ function mg(e, t) {
4601
4601
  source: c.source ?? a.store
4602
4602
  })), a.FlexRender = dc, {
4603
4603
  table: a,
4604
- rootSource: Mc(a.store, dn)
4604
+ rootSource: Mc(a.store, fn)
4605
4605
  };
4606
4606
  }), r = n;
4607
4607
  zs(r, (a) => ({
4608
4608
  ...a,
4609
4609
  ...e
4610
4610
  }), { syncExternalState: !1 });
4611
- const i = r.options.state, s = o.get(), l = bs(o, t, { compare: dn });
4611
+ const i = r.options.state, s = o.get(), l = bs(o, t, { compare: fn });
4612
4612
  return gg(() => {
4613
- o.markCommitted(s), As(r, i ?? null, dn);
4613
+ o.markCommitted(s), As(r, i ?? null, fn);
4614
4614
  }), ne(() => ({
4615
4615
  ...n,
4616
4616
  options: e,
@@ -4771,7 +4771,7 @@ function ke(e) {
4771
4771
  function $e(e) {
4772
4772
  Fe() && console.warn(`[DataGrid] ${e}`);
4773
4773
  }
4774
- function gn(e) {
4774
+ function mn(e) {
4775
4775
  return e.headerLabel !== void 0 && e.headerLabel !== "" ? e.headerLabel : typeof e.header == "string" ? e.header : typeof e.header == "number" ? String(e.header) : e.id;
4776
4776
  }
4777
4777
  function je(e, t) {
@@ -4829,7 +4829,7 @@ function Eg(e) {
4829
4829
  return "kitDateRange";
4830
4830
  }
4831
4831
  }
4832
- function mn(e) {
4832
+ function pn(e) {
4833
4833
  const t = Tl(e.sort);
4834
4834
  return t === null ? !1 : typeof t == "function" || e.value !== void 0;
4835
4835
  }
@@ -4916,7 +4916,7 @@ function Dg(e, t, n, o) {
4916
4916
  id: e.id,
4917
4917
  header: n.label,
4918
4918
  meta: n,
4919
- enableSorting: !r && mn(e),
4919
+ enableSorting: !r && pn(e),
4920
4920
  sortDescFirst: e.sortDescFirst ?? !1,
4921
4921
  enableColumnFilter: !r && ho(e),
4922
4922
  enableGlobalFilter: !r && wo(e),
@@ -5009,7 +5009,7 @@ function kg(e) {
5009
5009
  Pg(h);
5010
5010
  const _ = {
5011
5011
  kind: "data",
5012
- label: gn(h),
5012
+ label: mn(h),
5013
5013
  isRowHeader: h.id === a,
5014
5014
  groupId: r.get(m) ?? null
5015
5015
  };
@@ -5032,10 +5032,10 @@ function kg(e) {
5032
5032
  (I) => r.get(I) === h
5033
5033
  ), F = {
5034
5034
  id: _.id,
5035
- header: gn(_),
5035
+ header: mn(_),
5036
5036
  meta: {
5037
5037
  kind: "group",
5038
- label: gn(_),
5038
+ label: mn(_),
5039
5039
  isRowHeader: !1,
5040
5040
  groupId: null
5041
5041
  },
@@ -5059,7 +5059,15 @@ const Gl = [
5059
5059
  // The same softened line as DataTable: half-strength `--border`, or 35%
5060
5060
  // on the accessible themes, where `--border` is a full-contrast edge.
5061
5061
  "ds:[--data-grid-line:color-mix(in_srgb,var(--border)_var(--data-grid-border-mix,50%),transparent)]"
5062
- ], Ag = Y(
5062
+ ], Ag = Z("ds:flex ds:min-h-0 ds:flex-col", {
5063
+ variants: {
5064
+ height: {
5065
+ auto: "",
5066
+ fill: "ds:flex-1"
5067
+ }
5068
+ },
5069
+ defaultVariants: { height: "auto" }
5070
+ }), zg = Z(
5063
5071
  [...Gl, "ds:flex ds:min-h-0 ds:flex-col"],
5064
5072
  {
5065
5073
  variants: {
@@ -5070,7 +5078,7 @@ const Gl = [
5070
5078
  },
5071
5079
  defaultVariants: { height: "auto" }
5072
5080
  }
5073
- ), Ui = Y(
5081
+ ), Ui = Z(
5074
5082
  [
5075
5083
  // The header and totals are sticky, so keyboard focus must not land
5076
5084
  // under them when the grid scrolls a control into view. Measured when
@@ -5102,7 +5110,7 @@ const Gl = [
5102
5110
  },
5103
5111
  defaultVariants: { chrome: !1, pinned: !1, height: "auto" }
5104
5112
  }
5105
- ), dr = Y("ds:print:hidden", {
5113
+ ), dr = Z("ds:print:hidden", {
5106
5114
  variants: {
5107
5115
  slot: {
5108
5116
  toolbar: "ds:shrink-0 ds:pb-[var(--spacing-sm)]",
@@ -5113,11 +5121,11 @@ const Gl = [
5113
5121
  ]
5114
5122
  }
5115
5123
  }
5116
- }), zg = Y(
5124
+ }), Vg = Z(
5117
5125
  "type-body-sm ds:m-0 ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] ds:text-[color:var(--muted-foreground)] ds:tabular-nums"
5118
- ), Vg = Y(
5126
+ ), Tg = Z(
5119
5127
  "ds:pointer-events-none ds:sticky ds:start-0 ds:top-0 ds:z-[4] ds:flex ds:justify-end ds:p-[var(--spacing-xs)] ds:print:hidden"
5120
- ), Tg = Y(
5128
+ ), Gg = Z(
5121
5129
  [
5122
5130
  "ds:w-full ds:border-separate ds:[border-spacing:0] ds:[&_tbody_tr:last-child>*]:border-b-0",
5123
5131
  // A group's first row: a stronger line drawn inside its cells, so it
@@ -5137,7 +5145,7 @@ const Gl = [
5137
5145
  },
5138
5146
  defaultVariants: { fixed: !1 }
5139
5147
  }
5140
- ), Gg = Y("", {
5148
+ ), Lg = Z("", {
5141
5149
  variants: {
5142
5150
  kind: {
5143
5151
  text: "ds:w-[var(--data-grid-col-size-text)]",
@@ -5153,7 +5161,7 @@ const Gl = [
5153
5161
  }
5154
5162
  },
5155
5163
  defaultVariants: { kind: "text", printable: !0 }
5156
- }), Jo = Y("ds:border-0 ds:p-0", {
5164
+ }), Jo = Z("ds:border-0 ds:p-0", {
5157
5165
  variants: {
5158
5166
  edge: {
5159
5167
  start: "ds:h-[var(--dg-pad-start)]",
@@ -5161,7 +5169,7 @@ const Gl = [
5161
5169
  gap: "ds:h-[var(--dg-gap)]"
5162
5170
  }
5163
5171
  }
5164
- }), Ot = Y(
5172
+ }), Ot = Z(
5165
5173
  "ds:border-[color:var(--data-grid-line)] ds:px-[var(--spacing-md)]",
5166
5174
  {
5167
5175
  variants: {
@@ -5326,9 +5334,9 @@ const Gl = [
5326
5334
  printable: !0
5327
5335
  }
5328
5336
  }
5329
- ), Lg = Y(
5337
+ ), Ng = Z(
5330
5338
  "ds:ps-[calc(var(--spacing-md)+var(--dg-depth)*var(--data-grid-depth-indent))]"
5331
- ), Ng = Y(
5339
+ ), Hg = Z(
5332
5340
  "ds:flex ds:min-w-0 ds:items-center ds:gap-[var(--spacing-2xs)]",
5333
5341
  {
5334
5342
  variants: {
@@ -5343,13 +5351,13 @@ const Gl = [
5343
5351
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)]",
5344
5352
  "ds:focus-visible:outline-offset-[calc(var(--focus-ring-width)*-1)]",
5345
5353
  "ds:forced-colors:focus-visible:outline-[Highlight]"
5346
- ], Hg = Y([
5354
+ ], jg = Z([
5347
5355
  "ds:inline-flex ds:[min-block-size:var(--accessible-target-floor,var(--spacing-lg))] ds:min-w-0 ds:items-center ds:gap-[var(--spacing-2xs)]",
5348
5356
  "ds:m-0 ds:cursor-pointer ds:rounded-[var(--radius-sm)] ds:border-0 ds:bg-transparent ds:p-0",
5349
5357
  "ds:[font:inherit] ds:uppercase ds:[letter-spacing:inherit] ds:text-[color:inherit] ds:text-start",
5350
5358
  "ds:hover:text-[color:var(--foreground)] ds:active:text-[color:var(--foreground)]",
5351
5359
  ...Ll
5352
- ]), jg = Y("ds:size-3.5 ds:shrink-0", {
5360
+ ]), $g = Z("ds:size-3.5 ds:shrink-0", {
5353
5361
  variants: {
5354
5362
  active: {
5355
5363
  true: "ds:text-[color:var(--foreground)]",
@@ -5357,9 +5365,9 @@ const Gl = [
5357
5365
  }
5358
5366
  },
5359
5367
  defaultVariants: { active: !1 }
5360
- }), $g = Y(
5368
+ }), Bg = Z(
5361
5369
  "ds:[font-size:var(--font-size-xs)] ds:tabular-nums ds:text-[color:var(--foreground)]"
5362
- ), Bg = Y(
5370
+ ), Kg = Z(
5363
5371
  [
5364
5372
  "ds:absolute ds:inset-y-0 ds:end-0 ds:z-[1] ds:flex ds:w-[var(--accessible-target-floor,var(--spacing-lg))] ds:justify-center",
5365
5373
  "ds:cursor-col-resize ds:touch-none ds:select-none ds:print:hidden",
@@ -5385,7 +5393,7 @@ const Gl = [
5385
5393
  },
5386
5394
  defaultVariants: { edge: !1 }
5387
5395
  }
5388
- ), Kg = "ds:pe-[var(--accessible-target-floor,var(--spacing-lg))]", qg = Y(
5396
+ ), qg = "ds:pe-[var(--accessible-target-floor,var(--spacing-lg))]", Ug = Z(
5389
5397
  "ds:size-4 ds:motion-safe:transition-transform ds:motion-safe:duration-[var(--animation-duration)]",
5390
5398
  {
5391
5399
  variants: {
@@ -5396,7 +5404,7 @@ const Gl = [
5396
5404
  },
5397
5405
  defaultVariants: { expanded: !1 }
5398
5406
  }
5399
- ), Ug = Y("ds:text-[color:var(--muted-foreground)]"), Wg = Y("ds:sticky ds:start-0 ds:max-w-full"), Qg = Y("ds:block", {
5407
+ ), Wg = Z("ds:text-[color:var(--muted-foreground)]"), Qg = Z("ds:sticky ds:start-0 ds:max-w-full"), Xg = Z("ds:block", {
5400
5408
  variants: {
5401
5409
  width: {
5402
5410
  short: "ds:w-2/5",
@@ -5405,15 +5413,15 @@ const Gl = [
5405
5413
  }
5406
5414
  },
5407
5415
  defaultVariants: { width: "medium" }
5408
- }), Xg = Y(
5416
+ }), Zg = Z(
5409
5417
  "ds:border-0 ds:bg-[color:var(--background)] ds:p-[var(--spacing-md)]"
5410
- ), er = Y("ds:w-full ds:min-w-0"), Zg = Y([
5418
+ ), er = Z("ds:w-full ds:min-w-0"), Yg = Z([
5411
5419
  "ds:w-full ds:min-w-0",
5412
5420
  cs
5413
- ]), Yg = Y(
5421
+ ]), Jg = Z(
5414
5422
  "type-body-sm ds:mt-[var(--spacing-2xs)] ds:block ds:text-[color:var(--destructive)]"
5415
- ), Jg = "ds:inline ds:[font-size:0] ds:leading-none ds:print:hidden", em = Y("ds:text-[color:var(--muted-foreground)]");
5416
- function tm({
5423
+ ), em = "ds:inline ds:[font-size:0] ds:leading-none ds:print:hidden", tm = Z("ds:text-[color:var(--muted-foreground)]");
5424
+ function nm({
5417
5425
  edit: e,
5418
5426
  row: t,
5419
5427
  context: n,
@@ -5422,7 +5430,7 @@ function tm({
5422
5430
  }) {
5423
5431
  const i = n.invalid ? "error" : "default", s = n.invalid || void 0, l = n.errorId ? { "aria-describedby": n.errorId } : {}, a = ss();
5424
5432
  if (e.kind === "custom") return /* @__PURE__ */ C(ve, { children: e.render(t, n) });
5425
- return /* @__PURE__ */ C("div", { className: Zg(), children: c() });
5433
+ return /* @__PURE__ */ C("div", { className: Yg(), children: c() });
5426
5434
  function c() {
5427
5435
  switch (e.kind) {
5428
5436
  case "number": {
@@ -5505,7 +5513,7 @@ function tm({
5505
5513
  }
5506
5514
  }
5507
5515
  const Oo = "data-dg-control";
5508
- function nm(e) {
5516
+ function om(e) {
5509
5517
  return e instanceof Element ? e.closest(
5510
5518
  'input, textarea, select, [contenteditable=""], [contenteditable="true"]'
5511
5519
  ) ? !0 : e.closest(
@@ -5528,7 +5536,7 @@ function Hl() {
5528
5536
  }, []);
5529
5537
  return { onPointerDown: t, onKeyDown: n, take: o };
5530
5538
  }
5531
- function om(e, t, n, o, r, i) {
5539
+ function rm(e, t, n, o, r, i) {
5532
5540
  const s = Ka * (t ? 4 : 1), l = n === "rtl" ? "ArrowLeft" : "ArrowRight", a = n === "rtl" ? "ArrowRight" : "ArrowLeft";
5533
5541
  let c;
5534
5542
  if (e === l) c = o + s;
@@ -5554,7 +5562,7 @@ function $l(e, t) {
5554
5562
  for (; n && n.parentElement !== e; ) n = n.parentElement;
5555
5563
  return n instanceof HTMLElement && n.tagName === "TR" && n.dataset.rowId !== void 0 ? n : null;
5556
5564
  }
5557
- function rm(e, t) {
5565
+ function im(e, t) {
5558
5566
  let n = t;
5559
5567
  for (; n && n.parentElement !== e; ) n = n.parentElement;
5560
5568
  return n;
@@ -5570,7 +5578,7 @@ function Wi(e, t, n) {
5570
5578
  const o = jr(e, t);
5571
5579
  return o ? fr(o, n) : null;
5572
5580
  }
5573
- function im(e, t, n, o) {
5581
+ function sm(e, t, n, o) {
5574
5582
  const r = t.rowIdAt(n);
5575
5583
  if (r === void 0) return;
5576
5584
  const i = Wi(e, r, o);
@@ -5589,8 +5597,8 @@ function im(e, t, n, o) {
5589
5597
  };
5590
5598
  typeof requestAnimationFrame == "function" && requestAnimationFrame(() => s(3));
5591
5599
  }
5592
- function sm(e, t) {
5593
- if (e.defaultPrevented || e.nativeEvent.isComposing || e.altKey || e.ctrlKey || e.metaKey || nm(e.target)) return;
5600
+ function lm(e, t) {
5601
+ if (e.defaultPrevented || e.nativeEvent.isComposing || e.altKey || e.ctrlKey || e.metaKey || om(e.target)) return;
5594
5602
  const n = Nl(e.target);
5595
5603
  if (!n) return;
5596
5604
  const { key: o } = e;
@@ -5612,9 +5620,9 @@ function sm(e, t) {
5612
5620
  a = l[c];
5613
5621
  break;
5614
5622
  }
5615
- e.preventDefault(), !(a === void 0 || a === s) && im(e.currentTarget, t, a, n);
5623
+ e.preventDefault(), !(a === void 0 || a === s) && sm(e.currentTarget, t, a, n);
5616
5624
  }
5617
- function lm({
5625
+ function am({
5618
5626
  bodyRef: e,
5619
5627
  scrollRef: t,
5620
5628
  navigation: n,
@@ -5626,7 +5634,7 @@ function lm({
5626
5634
  const c = e.current;
5627
5635
  if (!c) return;
5628
5636
  const u = (g) => {
5629
- const f = g.target, p = $l(c, f), m = p && f ? rm(p, f) : null;
5637
+ const f = g.target, p = $l(c, f), m = p && f ? im(p, f) : null;
5630
5638
  if (!p || !m || !f || p.dataset.rowId === void 0)
5631
5639
  return;
5632
5640
  const h = Array.prototype.indexOf.call(
@@ -5690,15 +5698,15 @@ function xt(e) {
5690
5698
  var t;
5691
5699
  return ((t = e.columnDef.meta) == null ? void 0 : t.kind) ?? "data";
5692
5700
  }
5693
- function pn(e) {
5701
+ function hn(e) {
5694
5702
  if (e.offset !== null && !(e.pin !== "startOffset" && e.pin !== "endOffset"))
5695
5703
  return { "--dg-pin-offset": `${e.offset}px` };
5696
5704
  }
5697
5705
  function Po(e, t) {
5698
5706
  return e === "select" || e === "expand" ? !1 : (t == null ? void 0 : t.printable) !== !1;
5699
5707
  }
5700
- const am = (e, t, n) => `${e}-n-${t}-${n}`, gr = (e, t) => `${e}-detail-${t}`, mr = (e, t) => `${e}-h-${encodeURIComponent(t)}`;
5701
- function cm({
5708
+ const cm = (e, t, n) => `${e}-n-${t}-${n}`, gr = (e, t) => `${e}-detail-${t}`, mr = (e, t) => `${e}-h-${encodeURIComponent(t)}`;
5709
+ function um({
5702
5710
  model: e,
5703
5711
  row: t,
5704
5712
  labelId: n,
@@ -5709,12 +5717,12 @@ function cm({
5709
5717
  }) {
5710
5718
  const { t: l } = fe("ui"), a = Hl();
5711
5719
  if (i === "none")
5712
- return /* @__PURE__ */ te(ve, { children: [
5713
- /* @__PURE__ */ C("span", { "aria-hidden": "true", className: Ug(), children: "–" }),
5720
+ return /* @__PURE__ */ ee(ve, { children: [
5721
+ /* @__PURE__ */ C("span", { "aria-hidden": "true", className: Wg(), children: "–" }),
5714
5722
  /* @__PURE__ */ C($t, { children: s ?? l("dataGrid.selection.noneReason") })
5715
5723
  ] });
5716
5724
  const c = i === "locked", u = !c && e.readOnlyReason !== null, d = c ? s ?? l("dataGrid.selection.lockedReason") : e.readOnlyReason ?? l("dataGrid.readOnly.reason");
5717
- return /* @__PURE__ */ te(ve, { children: [
5725
+ return /* @__PURE__ */ ee(ve, { children: [
5718
5726
  /* @__PURE__ */ C("span", { hidden: !0, id: n, children: l("dataGrid.selection.selectRow", { row: o }) }),
5719
5727
  /* @__PURE__ */ C(
5720
5728
  io,
@@ -5736,7 +5744,7 @@ function cm({
5736
5744
  )
5737
5745
  ] });
5738
5746
  }
5739
- function um({
5747
+ function dm({
5740
5748
  row: e,
5741
5749
  labelId: t,
5742
5750
  rowLabel: n,
@@ -5745,7 +5753,7 @@ function um({
5745
5753
  expanded: i
5746
5754
  }) {
5747
5755
  const { t: s } = fe("ui");
5748
- return r ? /* @__PURE__ */ te(ve, { children: [
5756
+ return r ? /* @__PURE__ */ ee(ve, { children: [
5749
5757
  /* @__PURE__ */ C("span", { hidden: !0, id: t, children: i ? s("dataGrid.expand.collapse", { row: n }) : s("dataGrid.expand.expand", { row: n }) }),
5750
5758
  /* @__PURE__ */ C(
5751
5759
  as,
@@ -5757,7 +5765,7 @@ function um({
5757
5765
  Ia,
5758
5766
  {
5759
5767
  "aria-hidden": "true",
5760
- className: qg({ expanded: i })
5768
+ className: Ug({ expanded: i })
5761
5769
  }
5762
5770
  ),
5763
5771
  "aria-labelledby": t,
@@ -5769,7 +5777,7 @@ function um({
5769
5777
  )
5770
5778
  ] }) : null;
5771
5779
  }
5772
- function dm({
5780
+ function fm({
5773
5781
  model: e,
5774
5782
  row: t,
5775
5783
  kit: n,
@@ -5805,11 +5813,11 @@ function dm({
5805
5813
  }
5806
5814
  };
5807
5815
  if (f.isMasked(t.id, n.id))
5808
- return /* @__PURE__ */ te(ve, { children: [
5809
- /* @__PURE__ */ C("span", { "aria-hidden": "true", className: em(), children: ls(zl(n, p)) }),
5816
+ return /* @__PURE__ */ ee(ve, { children: [
5817
+ /* @__PURE__ */ C("span", { "aria-hidden": "true", className: tm(), children: ls(zl(n, p)) }),
5810
5818
  /* @__PURE__ */ C($t, { children: d("calendarWorkspace.privacy.hidden") })
5811
5819
  ] });
5812
- const w = n.edit, F = w !== void 0 && !u && (w.isEditable ? w.isEditable(p) : !0), I = !F && (u || w !== void 0), M = a && t.depth > 0 ? /* @__PURE__ */ C("span", { className: Jg, children: d("dataGrid.expand.level", {
5820
+ const w = n.edit, F = w !== void 0 && !u && (w.isEditable ? w.isEditable(p) : !0), I = !F && (u || w !== void 0), M = a && t.depth > 0 ? /* @__PURE__ */ C("span", { className: em, children: d("dataGrid.expand.level", {
5813
5821
  level: Ct(t.depth + 1, g.language)
5814
5822
  }) }) : null;
5815
5823
  if (w && F) {
@@ -5825,11 +5833,11 @@ function dm({
5825
5833
  errorId: y ? s : void 0,
5826
5834
  invalid: !!y
5827
5835
  };
5828
- return /* @__PURE__ */ te(ve, { children: [
5836
+ return /* @__PURE__ */ ee(ve, { children: [
5829
5837
  /* @__PURE__ */ C("span", { hidden: !0, id: i, children: o }),
5830
5838
  E ? /* @__PURE__ */ C("span", { hidden: !0, id: z, children: E }) : null,
5831
5839
  /* @__PURE__ */ C(
5832
- tm,
5840
+ nm,
5833
5841
  {
5834
5842
  edit: w,
5835
5843
  row: p,
@@ -5838,7 +5846,7 @@ function dm({
5838
5846
  onNumberValidityChange: h
5839
5847
  }
5840
5848
  ),
5841
- y ? /* @__PURE__ */ C("span", { id: s, className: Yg(), children: y }) : null,
5849
+ y ? /* @__PURE__ */ C("span", { id: s, className: Jg(), children: y }) : null,
5842
5850
  M
5843
5851
  ] });
5844
5852
  }
@@ -5855,19 +5863,19 @@ function dm({
5855
5863
  return D = !0, `${mr(e.idBase, n.id)} ${i}`;
5856
5864
  }
5857
5865
  }, G = n.cell(p, N);
5858
- return /* @__PURE__ */ te(ve, { children: [
5866
+ return /* @__PURE__ */ ee(ve, { children: [
5859
5867
  D ? /* @__PURE__ */ C("span", { hidden: !0, id: i, children: o }) : null,
5860
5868
  G,
5861
5869
  M
5862
5870
  ] });
5863
5871
  }
5864
- function fm(e, t) {
5872
+ function gm(e, t) {
5865
5873
  return e.kitColumns === t.kitColumns && e.pins === t.pins && e.visibleColumnsKey === t.visibleColumnsKey && e.rowHeaderColumnId === t.rowHeaderColumnId && e.density === t.density && e.privacyMode === t.privacyMode && e.hostTextPrivacySafe === t.hostTextPrivacySafe && e.idBase === t.idBase && e.direction === t.direction && e.dataMode === t.dataMode && e.readOnlyReason === t.readOnlyReason && e.meta.locale === t.meta.locale;
5866
5874
  }
5867
- function gm(e, t) {
5868
- return e.row.id === t.row.id && e.row.original === t.row.original && e.row.depth === t.row.depth && e.itemIndex === t.itemIndex && e.ariaRowIndex === t.ariaRowIndex && e.virtualIndex === t.virtualIndex && e.measureRef === t.measureRef && e.detailMountedId === t.detailMountedId && e.selected === t.selected && e.expanded === t.expanded && e.canExpand === t.canExpand && e.rowReadOnly === t.rowReadOnly && e.groupStart === t.groupStart && e.rowLabel === t.rowLabel && e.selectState === t.selectState && e.selectReason === t.selectReason && e.displayIndex === t.displayIndex && fm(e.model, t.model);
5875
+ function mm(e, t) {
5876
+ return e.row.id === t.row.id && e.row.original === t.row.original && e.row.depth === t.row.depth && e.itemIndex === t.itemIndex && e.ariaRowIndex === t.ariaRowIndex && e.virtualIndex === t.virtualIndex && e.measureRef === t.measureRef && e.detailMountedId === t.detailMountedId && e.selected === t.selected && e.expanded === t.expanded && e.canExpand === t.canExpand && e.rowReadOnly === t.rowReadOnly && e.groupStart === t.groupStart && e.rowLabel === t.rowLabel && e.selectState === t.selectState && e.selectReason === t.selectReason && e.displayIndex === t.displayIndex && gm(e.model, t.model);
5869
5877
  }
5870
- function mm({
5878
+ function pm({
5871
5879
  model: e,
5872
5880
  row: t,
5873
5881
  itemIndex: n,
@@ -5898,7 +5906,7 @@ function mm({
5898
5906
  "aria-rowindex": o,
5899
5907
  children: D.map((N, G) => {
5900
5908
  var ze;
5901
- const O = N.column, U = xt(O), $ = h.get(O.id), v = I.get(O.id) ?? St, S = U === "data" && O.id === M, y = S ? "th" : "td", E = am(_, n, G), z = U === "data" && w.isMasked(t.id, O.id), L = U === "data" && ($ == null ? void 0 : $.edit) !== void 0 && !z && !u && ($.edit.isEditable ? $.edit.isEditable(t.original) : !0), A = S && t.depth > 0, J = [
5909
+ const O = N.column, U = xt(O), $ = h.get(O.id), v = I.get(O.id) ?? St, S = U === "data" && O.id === M, y = S ? "th" : "td", E = cm(_, n, G), z = U === "data" && w.isMasked(t.id, O.id), L = U === "data" && ($ == null ? void 0 : $.edit) !== void 0 && !z && !u && ($.edit.isEditable ? $.edit.isEditable(t.original) : !0), A = S && t.depth > 0, J = [
5902
5910
  Ot({
5903
5911
  section: "body",
5904
5912
  density: F,
@@ -5911,14 +5919,14 @@ function mm({
5911
5919
  wrap: ($ == null ? void 0 : $.wrap) === !0,
5912
5920
  printable: Po(U, $)
5913
5921
  }),
5914
- A ? Lg() : ""
5915
- ].filter(Boolean).join(" "), ge = pn(v) || A ? {
5916
- ...pn(v),
5922
+ A ? Ng() : ""
5923
+ ].filter(Boolean).join(" "), ge = hn(v) || A ? {
5924
+ ...hn(v),
5917
5925
  ...A ? { "--dg-depth": String(t.depth) } : null
5918
5926
  } : void 0;
5919
5927
  let Re = null;
5920
5928
  return U === "select" ? Re = /* @__PURE__ */ C(
5921
- cm,
5929
+ um,
5922
5930
  {
5923
5931
  model: e,
5924
5932
  row: t,
@@ -5929,7 +5937,7 @@ function mm({
5929
5937
  selectReason: p
5930
5938
  }
5931
5939
  ) : U === "expand" ? Re = /* @__PURE__ */ C(
5932
- um,
5940
+ dm,
5933
5941
  {
5934
5942
  row: t,
5935
5943
  labelId: E,
@@ -5939,7 +5947,7 @@ function mm({
5939
5947
  expanded: a
5940
5948
  }
5941
5949
  ) : $ && (Re = /* @__PURE__ */ C(
5942
- dm,
5950
+ fm,
5943
5951
  {
5944
5952
  model: e,
5945
5953
  row: t,
@@ -5968,8 +5976,8 @@ function mm({
5968
5976
  }
5969
5977
  );
5970
5978
  }
5971
- const pm = sa(mm, gm);
5972
- function hm({
5979
+ const hm = sa(pm, mm);
5980
+ function wm({
5973
5981
  model: e,
5974
5982
  row: t,
5975
5983
  itemIndex: n,
@@ -5979,7 +5987,7 @@ function hm({
5979
5987
  measureRef: s
5980
5988
  }) {
5981
5989
  const { t: l } = fe("ui"), { idBase: a, meta: c, renderDetail: u } = e, d = `${gr(a, n)}-n`;
5982
- return /* @__PURE__ */ C("tr", { ref: s, "data-index": i, "aria-rowindex": r, children: /* @__PURE__ */ te(
5990
+ return /* @__PURE__ */ C("tr", { ref: s, "data-index": i, "aria-rowindex": r, children: /* @__PURE__ */ ee(
5983
5991
  "td",
5984
5992
  {
5985
5993
  id: gr(a, n),
@@ -5988,12 +5996,12 @@ function hm({
5988
5996
  className: Ot({ section: "detail" }),
5989
5997
  children: [
5990
5998
  /* @__PURE__ */ C("span", { hidden: !0, id: d, children: l("dataGrid.expand.detail", { row: c.getRowLabel(t.id) }) }),
5991
- /* @__PURE__ */ C("div", { className: Wg(), children: u == null ? void 0 : u(t.original) })
5999
+ /* @__PURE__ */ C("div", { className: Qg(), children: u == null ? void 0 : u(t.original) })
5992
6000
  ]
5993
6001
  }
5994
6002
  ) });
5995
6003
  }
5996
- function wm({
6004
+ function bm({
5997
6005
  model: e,
5998
6006
  bodyRef: t,
5999
6007
  items: n,
@@ -6021,7 +6029,7 @@ function wm({
6021
6029
  ref: t,
6022
6030
  onKeyDown: u,
6023
6031
  style: p,
6024
- children: d ?? /* @__PURE__ */ te(ve, { children: [
6032
+ children: d ?? /* @__PURE__ */ ee(ve, { children: [
6025
6033
  r && i > 0 ? /* @__PURE__ */ C("tr", { "aria-hidden": "true", children: /* @__PURE__ */ C(
6026
6034
  "td",
6027
6035
  {
@@ -6041,10 +6049,10 @@ function wm({
6041
6049
  }
6042
6050
  ) }) : null, F = r ? m : void 0, I = r ? l : void 0;
6043
6051
  if (_.kind === "detail")
6044
- return /* @__PURE__ */ te(ci, { children: [
6052
+ return /* @__PURE__ */ ee(ci, { children: [
6045
6053
  w,
6046
6054
  /* @__PURE__ */ C(
6047
- hm,
6055
+ wm,
6048
6056
  {
6049
6057
  model: e,
6050
6058
  row: _.row,
@@ -6057,10 +6065,10 @@ function wm({
6057
6065
  )
6058
6066
  ] }, _.key);
6059
6067
  const M = n[m + 1], D = (M == null ? void 0 : M.kind) === "detail" && M.row.id === _.row.id && f.has(m + 1) ? gr(e.idBase, m + 1) : void 0, { row: N } = _, G = e.selection.getSelectability(N.id);
6060
- return /* @__PURE__ */ te(ci, { children: [
6068
+ return /* @__PURE__ */ ee(ci, { children: [
6061
6069
  w,
6062
6070
  /* @__PURE__ */ C(
6063
- pm,
6071
+ hm,
6064
6072
  {
6065
6073
  model: e,
6066
6074
  row: N,
@@ -6094,8 +6102,8 @@ function wm({
6094
6102
  )
6095
6103
  );
6096
6104
  }
6097
- const bm = 3, Bl = { masked: !0 };
6098
- function Sm(e) {
6105
+ const Sm = 3, Bl = { masked: !0 };
6106
+ function ym(e) {
6099
6107
  return typeof e == "object" && e !== null && !Array.isArray(e) && Object.keys(e).length === 1 && e.masked === !0;
6100
6108
  }
6101
6109
  function Qi(e) {
@@ -6119,7 +6127,7 @@ function Xi(e, t) {
6119
6127
  function eo(e, t) {
6120
6128
  e.getRowIds().includes(t) || we("UNKNOWN_ROW", `no row "${t}" in the current view.`);
6121
6129
  }
6122
- function ym(e) {
6130
+ function vm(e) {
6123
6131
  var r;
6124
6132
  const t = e.getFilter();
6125
6133
  if (!e.getFeatures().privacyMode)
@@ -6129,11 +6137,11 @@ function ym(e) {
6129
6137
  o[i] = ((r = n.get(i)) == null ? void 0 : r.masked) === !1 ? s : Bl;
6130
6138
  return o;
6131
6139
  }
6132
- function vm(e) {
6140
+ function Cm(e) {
6133
6141
  const t = e.getQuickFilter();
6134
6142
  return t === "" || !e.getFeatures().privacyMode || e.getColumns().every((n) => n.masked === !1) ? t : Bl;
6135
6143
  }
6136
- const Cm = {
6144
+ const Rm = {
6137
6145
  type: "object",
6138
6146
  properties: {
6139
6147
  selection: {
@@ -6148,7 +6156,7 @@ const Cm = {
6148
6156
  }
6149
6157
  },
6150
6158
  required: ["selection", "dropped"]
6151
- }, Rm = {
6159
+ }, _m = {
6152
6160
  id: "data-grid",
6153
6161
  // Column hide, pin and move are claimed under `view_change` (they change
6154
6162
  // how the grid shows the same data); see the ruling in
@@ -6188,13 +6196,13 @@ const Cm = {
6188
6196
  type: "object",
6189
6197
  descriptionKey: "ui.agent.dataGrid.state.filter",
6190
6198
  description: "Filter model: kit filter models keyed by column id, plus host keys. Under privacy mode, host keys and masked columns report { masked: true } instead of the value.",
6191
- read: (e) => ym(e)
6199
+ read: (e) => vm(e)
6192
6200
  },
6193
6201
  quickFilter: {
6194
6202
  type: "string | { masked: true }",
6195
6203
  descriptionKey: "ui.agent.dataGrid.state.quickFilter",
6196
6204
  description: "Quick search text. Under privacy mode it reports { masked: true } while any column is masked.",
6197
- read: (e) => vm(e)
6205
+ read: (e) => Cm(e)
6198
6206
  },
6199
6207
  currentPage: {
6200
6208
  type: "number",
@@ -6262,7 +6270,7 @@ const Cm = {
6262
6270
  required: ["ids"]
6263
6271
  },
6264
6272
  returns: "{ selection: string[], dropped: string[] }",
6265
- returnsSchema: Cm,
6273
+ returnsSchema: Rm,
6266
6274
  idempotent: !0,
6267
6275
  errors: [
6268
6276
  "SELECTION_DISABLED: the grid has no row selection (features.selectionMode is none).",
@@ -6335,7 +6343,7 @@ const Cm = {
6335
6343
  properties: {
6336
6344
  model: {
6337
6345
  type: "array",
6338
- maxItems: bm,
6346
+ maxItems: Sm,
6339
6347
  description: "Sort entries in priority order. An empty list removes the sort.",
6340
6348
  items: {
6341
6349
  type: "object",
@@ -6405,7 +6413,7 @@ const Cm = {
6405
6413
  const n = new Map(e.getColumns().map((i) => [i.id, i])), o = e.getFilter(), r = {};
6406
6414
  for (const i of Object.keys(t.model)) {
6407
6415
  const s = t.model[i];
6408
- if (Sm(s)) {
6416
+ if (ym(s)) {
6409
6417
  i in o && (r[i] = o[i]);
6410
6418
  continue;
6411
6419
  }
@@ -6644,7 +6652,7 @@ const Cm = {
6644
6652
  }
6645
6653
  }
6646
6654
  };
6647
- function _m({
6655
+ function xm({
6648
6656
  model: e,
6649
6657
  footRef: t,
6650
6658
  getFooterContext: n,
@@ -6672,20 +6680,20 @@ function _m({
6672
6680
  utility: a === "select" || a === "expand",
6673
6681
  printable: Po(a, c)
6674
6682
  }),
6675
- style: pn(u),
6683
+ style: hn(u),
6676
6684
  children: f
6677
6685
  },
6678
6686
  l.id
6679
6687
  );
6680
6688
  }) }) });
6681
6689
  }
6682
- const xm = [
6690
+ const Im = [
6683
6691
  "contains",
6684
6692
  "equals",
6685
6693
  "startsWith",
6686
6694
  "endsWith",
6687
6695
  "notContains"
6688
- ], Im = [
6696
+ ], Fm = [
6689
6697
  "equals",
6690
6698
  "notEqual",
6691
6699
  "greaterThan",
@@ -6695,14 +6703,14 @@ const xm = [
6695
6703
  "inRange",
6696
6704
  "blank",
6697
6705
  "notBlank"
6698
- ], Fm = Y([
6706
+ ], Em = Z([
6699
6707
  "ds:flex ds:min-h-0 ds:flex-col ds:gap-[var(--spacing-sm)]",
6700
6708
  cs
6701
- ]), Em = Y(
6709
+ ]), Mm = Z(
6702
6710
  "ds:flex ds:flex-wrap ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)] ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-xs)]"
6703
- ), Mm = Y("ds:flex ds:items-end ds:gap-[var(--spacing-xs)]"), Zi = Y("ds:min-w-0 ds:flex-1"), Om = Y(
6711
+ ), Om = Z("ds:flex ds:items-end ds:gap-[var(--spacing-xs)]"), Zi = Z("ds:min-w-0 ds:flex-1"), Pm = Z(
6704
6712
  "ds:flex ds:min-h-0 ds:flex-col ds:gap-[var(--spacing-xs)] ds:overflow-y-auto"
6705
- ), Pm = Y(
6713
+ ), Dm = Z(
6706
6714
  "ds:py-[var(--spacing-xs)] ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--muted-foreground)]"
6707
6715
  );
6708
6716
  function $r({
@@ -6713,17 +6721,17 @@ function $r({
6713
6721
  applyLabel: r,
6714
6722
  children: i
6715
6723
  }) {
6716
- return /* @__PURE__ */ te(
6724
+ return /* @__PURE__ */ ee(
6717
6725
  "form",
6718
6726
  {
6719
6727
  "data-filter-kind": e,
6720
- className: Fm(),
6728
+ className: Em(),
6721
6729
  onSubmit: (s) => {
6722
6730
  s.preventDefault(), t();
6723
6731
  },
6724
6732
  children: [
6725
6733
  i,
6726
- /* @__PURE__ */ te("div", { className: Em(), children: [
6734
+ /* @__PURE__ */ ee("div", { className: Mm(), children: [
6727
6735
  /* @__PURE__ */ C(
6728
6736
  pi,
6729
6737
  {
@@ -6750,18 +6758,18 @@ function $r({
6750
6758
  }
6751
6759
  );
6752
6760
  }
6753
- function Dm({
6761
+ function km({
6754
6762
  columnLabel: e,
6755
6763
  value: t,
6756
6764
  onApply: n,
6757
6765
  config: o
6758
6766
  }) {
6759
- const { t: r } = fe("ui"), i = t, s = o.operators ?? xm, l = o.defaultOperator ?? s[0] ?? "contains", [a, c] = oe(
6767
+ const { t: r } = fe("ui"), i = t, s = o.operators ?? Im, l = o.defaultOperator ?? s[0] ?? "contains", [a, c] = oe(
6760
6768
  (i == null ? void 0 : i.type) ?? l
6761
6769
  ), [u, d] = oe((i == null ? void 0 : i.filter) ?? ""), g = s.map(
6762
6770
  (f) => ({ value: f, label: r(`dataTable.textFilter.operators.${f}`) })
6763
6771
  );
6764
- return /* @__PURE__ */ te(
6772
+ return /* @__PURE__ */ ee(
6765
6773
  $r,
6766
6774
  {
6767
6775
  kind: "text",
@@ -6802,13 +6810,13 @@ function Dm({
6802
6810
  }
6803
6811
  );
6804
6812
  }
6805
- function km({
6813
+ function Am({
6806
6814
  columnLabel: e,
6807
6815
  value: t,
6808
6816
  onApply: n,
6809
6817
  config: o
6810
6818
  }) {
6811
- const { t: r } = fe("ui"), i = t, s = o.operators ?? Im, l = o.defaultOperator ?? s[0] ?? "equals", [a, c] = oe(
6819
+ const { t: r } = fe("ui"), i = t, s = o.operators ?? Fm, l = o.defaultOperator ?? s[0] ?? "equals", [a, c] = oe(
6812
6820
  (i == null ? void 0 : i.type) ?? l
6813
6821
  ), [u, d] = oe(
6814
6822
  (i == null ? void 0 : i.filter) ?? null
@@ -6850,7 +6858,7 @@ function km({
6850
6858
  "aria-label": N
6851
6859
  }
6852
6860
  ) });
6853
- return /* @__PURE__ */ te(
6861
+ return /* @__PURE__ */ ee(
6854
6862
  $r,
6855
6863
  {
6856
6864
  kind: "number",
@@ -6879,7 +6887,7 @@ function km({
6879
6887
  e,
6880
6888
  r("dataTable.numberFilter.columnFilter", { column: e })
6881
6889
  ) : null,
6882
- m ? /* @__PURE__ */ te("div", { className: Mm(), children: [
6890
+ m ? /* @__PURE__ */ ee("div", { className: Om(), children: [
6883
6891
  F(
6884
6892
  u,
6885
6893
  d,
@@ -6899,7 +6907,7 @@ function km({
6899
6907
  }
6900
6908
  );
6901
6909
  }
6902
- function Am({
6910
+ function zm({
6903
6911
  columnLabel: e,
6904
6912
  value: t,
6905
6913
  options: n,
@@ -6929,7 +6937,7 @@ function Am({
6929
6937
  applyLabel: r("dataTable.selectFilter.apply"),
6930
6938
  onClear: () => o(null),
6931
6939
  onSubmit: g,
6932
- children: n.length === 0 ? /* @__PURE__ */ C("p", { className: Pm(), children: r("dataTable.agGrid.noRowsToShow") }) : /* @__PURE__ */ te(ve, { children: [
6940
+ children: n.length === 0 ? /* @__PURE__ */ C("p", { className: Dm(), children: r("dataTable.agGrid.noRowsToShow") }) : /* @__PURE__ */ ee(ve, { children: [
6933
6941
  /* @__PURE__ */ C(
6934
6942
  io,
6935
6943
  {
@@ -6944,7 +6952,7 @@ function Am({
6944
6952
  {
6945
6953
  role: "group",
6946
6954
  "aria-label": r("dataGrid.filter.button", { column: e }),
6947
- className: Om(),
6955
+ className: Pm(),
6948
6956
  children: n.map((f) => {
6949
6957
  const p = Bn(f.value);
6950
6958
  return /* @__PURE__ */ C(
@@ -6964,16 +6972,16 @@ function Am({
6964
6972
  }
6965
6973
  );
6966
6974
  }
6967
- const zm = aa(
6975
+ const Vm = aa(
6968
6976
  () => import("./date-range-panel-B86RANxB.js").then((e) => ({
6969
6977
  default: e.DateRangeFilterPanel
6970
6978
  }))
6971
- ), Vm = Y("ds:relative ds:inline-flex ds:shrink-0"), Tm = Y(
6979
+ ), Tm = Z("ds:relative ds:inline-flex ds:shrink-0"), Gm = Z(
6972
6980
  "ds:pointer-events-none ds:absolute ds:top-[var(--spacing-2xs)] ds:end-[var(--spacing-2xs)] ds:size-[var(--spacing-xs)] ds:rounded-full ds:bg-[var(--primary)]"
6973
- ), Gm = Y(
6981
+ ), Lm = Z(
6974
6982
  "ds:flex ds:items-center ds:justify-center ds:p-[var(--spacing-sm)]"
6975
6983
  );
6976
- function Lm({
6984
+ function Nm({
6977
6985
  columnId: e,
6978
6986
  columnLabel: t,
6979
6987
  config: n,
@@ -6997,8 +7005,8 @@ function Lm({
6997
7005
  r(p), c(!1);
6998
7006
  }
6999
7007
  };
7000
- return /* @__PURE__ */ te(Kn.Root, { open: a, onOpenChange: c, children: [
7001
- /* @__PURE__ */ te("span", { className: Vm(), children: [
7008
+ return /* @__PURE__ */ ee(Kn.Root, { open: a, onOpenChange: c, children: [
7009
+ /* @__PURE__ */ ee("span", { className: Tm(), children: [
7002
7010
  /* @__PURE__ */ C(Kn.Trigger, { asChild: !0, children: /* @__PURE__ */ C(
7003
7011
  as,
7004
7012
  {
@@ -7011,9 +7019,9 @@ function Lm({
7011
7019
  "aria-haspopup": "dialog"
7012
7020
  }
7013
7021
  ) }),
7014
- u ? /* @__PURE__ */ C("span", { "aria-hidden": "true", className: Tm() }) : null
7022
+ u ? /* @__PURE__ */ C("span", { "aria-hidden": "true", className: Gm() }) : null
7015
7023
  ] }),
7016
- /* @__PURE__ */ te(
7024
+ /* @__PURE__ */ ee(
7017
7025
  Kn.Content,
7018
7026
  {
7019
7027
  size: "sm",
@@ -7021,11 +7029,11 @@ function Lm({
7021
7029
  className: "ds:flex ds:max-h-[var(--radix-popover-content-available-height)] ds:flex-col",
7022
7030
  children: [
7023
7031
  /* @__PURE__ */ C(Kn.Heading, { children: g }),
7024
- n.kind === "text" ? /* @__PURE__ */ C(Dm, { ...f, config: n }) : n.kind === "number" ? /* @__PURE__ */ C(km, { ...f, config: n }) : n.kind === "select" ? /* @__PURE__ */ C(Am, { ...f, config: n }) : /* @__PURE__ */ C(
7032
+ n.kind === "text" ? /* @__PURE__ */ C(km, { ...f, config: n }) : n.kind === "number" ? /* @__PURE__ */ C(Am, { ...f, config: n }) : n.kind === "select" ? /* @__PURE__ */ C(zm, { ...f, config: n }) : /* @__PURE__ */ C(
7025
7033
  la,
7026
7034
  {
7027
- fallback: /* @__PURE__ */ C("div", { className: Gm(), children: /* @__PURE__ */ C(ro, { size: "sm" }) }),
7028
- children: /* @__PURE__ */ C(zm, { ...f, config: n })
7035
+ fallback: /* @__PURE__ */ C("div", { className: Lm(), children: /* @__PURE__ */ C(ro, { size: "sm" }) }),
7036
+ children: /* @__PURE__ */ C(Vm, { ...f, config: n })
7029
7037
  }
7030
7038
  )
7031
7039
  ]
@@ -7033,16 +7041,16 @@ function Lm({
7033
7041
  )
7034
7042
  ] });
7035
7043
  }
7036
- function Nm({
7044
+ function Hm({
7037
7045
  column: e,
7038
7046
  children: t
7039
7047
  }) {
7040
7048
  const { t: n, i18n: o } = fe("ui"), r = Hl(), i = e.getIsSorted(), s = e.getSortIndex(), l = i === "asc" ? ka : i === "desc" ? Aa : za;
7041
- return /* @__PURE__ */ te(
7049
+ return /* @__PURE__ */ ee(
7042
7050
  "button",
7043
7051
  {
7044
7052
  type: "button",
7045
- className: Hg(),
7053
+ className: jg(),
7046
7054
  onPointerDown: r.onPointerDown,
7047
7055
  onKeyDown: r.onKeyDown,
7048
7056
  onClick: (a) => {
@@ -7056,11 +7064,11 @@ function Nm({
7056
7064
  l,
7057
7065
  {
7058
7066
  "aria-hidden": "true",
7059
- className: jg({ active: i !== !1 })
7067
+ className: $g({ active: i !== !1 })
7060
7068
  }
7061
7069
  ),
7062
- i !== !1 && s > 0 ? /* @__PURE__ */ te(ve, { children: [
7063
- /* @__PURE__ */ C("span", { "aria-hidden": "true", className: $g(), children: Ct(s + 1, o.language) }),
7070
+ i !== !1 && s > 0 ? /* @__PURE__ */ ee(ve, { children: [
7071
+ /* @__PURE__ */ C("span", { "aria-hidden": "true", className: Bg(), children: Ct(s + 1, o.language) }),
7064
7072
  /* @__PURE__ */ C($t, { children: n("dataGrid.sort.priority", {
7065
7073
  priority: Ct(s + 1, o.language)
7066
7074
  }) })
@@ -7069,7 +7077,7 @@ function Nm({
7069
7077
  }
7070
7078
  );
7071
7079
  }
7072
- function Hm({
7080
+ function jm({
7073
7081
  model: e,
7074
7082
  header: t,
7075
7083
  label: n,
@@ -7119,12 +7127,12 @@ function Hm({
7119
7127
  "aria-valuetext": r("dataGrid.resize.valueText", { count: m }),
7120
7128
  ref: u,
7121
7129
  "data-resizing": i.getIsResizing() ? "" : void 0,
7122
- className: Bg({ edge: o }),
7130
+ className: Kg({ edge: o }),
7123
7131
  onPointerDown: h,
7124
7132
  onMouseDown: c,
7125
7133
  onTouchStart: c,
7126
7134
  onKeyDown: (w) => {
7127
- const F = om(
7135
+ const F = rm(
7128
7136
  w.key,
7129
7137
  w.shiftKey,
7130
7138
  e.direction,
@@ -7142,7 +7150,7 @@ function Hm({
7142
7150
  )
7143
7151
  );
7144
7152
  }
7145
- function jm({
7153
+ function $m({
7146
7154
  model: e,
7147
7155
  kit: t,
7148
7156
  label: n
@@ -7162,7 +7170,7 @@ function jm({
7162
7170
  if (!o) return null;
7163
7171
  const u = i.get("filters")[t.id];
7164
7172
  return /* @__PURE__ */ C(
7165
- Lm,
7173
+ Nm,
7166
7174
  {
7167
7175
  columnId: t.id,
7168
7176
  columnLabel: n,
@@ -7181,7 +7189,7 @@ function jm({
7181
7189
  }
7182
7190
  );
7183
7191
  }
7184
- function $m(e, t) {
7192
+ function Bm(e, t) {
7185
7193
  return e > 0 && !t ? "below" : "top";
7186
7194
  }
7187
7195
  function Yi({
@@ -7194,13 +7202,13 @@ function Yi({
7194
7202
  var M;
7195
7203
  const { t: i } = fe("ui"), s = t.column, l = xt(s), a = e.kitColumns.get(s.id), c = e.pins.get(s.id) ?? St, u = c.pin !== "none", d = Ot({
7196
7204
  section: "head",
7197
- stick: $m(n, (o ?? 1) > 1),
7205
+ stick: Bm(n, (o ?? 1) > 1),
7198
7206
  align: (a == null ? void 0 : a.align) ?? "start",
7199
7207
  pin: c.pin,
7200
7208
  divider: c.divider,
7201
7209
  utility: l === "select" || l === "expand",
7202
7210
  printable: Po(l, a)
7203
- }), g = u ? (D) => r(s.id, D) : void 0, f = pn(c);
7211
+ }), g = u ? (D) => r(s.id, D) : void 0, f = hn(c);
7204
7212
  if (l === "select") {
7205
7213
  const { selection: D } = e, N = D.mode === "multiple" && D.scope !== "none", G = `${e.idBase}-select-all`;
7206
7214
  return /* @__PURE__ */ C(
@@ -7212,7 +7220,7 @@ function Yi({
7212
7220
  "aria-label": N ? i("dataGrid.selection.columnLabel") : void 0,
7213
7221
  className: d,
7214
7222
  style: f,
7215
- children: N ? /* @__PURE__ */ te(ve, { children: [
7223
+ children: N ? /* @__PURE__ */ ee(ve, { children: [
7216
7224
  /* @__PURE__ */ C($t, { id: G, children: D.scope === "page" ? i("dataGrid.selection.selectAllOnPage") : i("dataGrid.selection.selectAll") }),
7217
7225
  /* @__PURE__ */ C(
7218
7226
  io,
@@ -7243,7 +7251,7 @@ function Yi({
7243
7251
  );
7244
7252
  if (!a) return null;
7245
7253
  const p = ((M = s.columnDef.meta) == null ? void 0 : M.label) ?? a.id, m = s.getCanSort(), h = a.filter !== void 0 && s.getCanFilter(), _ = s.getCanResize(), w = m || h || _ || a.headerTip !== void 0, F = s.getIsSorted(), I = F !== !1 && s.getSortIndex() === 0;
7246
- return /* @__PURE__ */ te(
7254
+ return /* @__PURE__ */ ee(
7247
7255
  "th",
7248
7256
  {
7249
7257
  ref: g,
@@ -7252,16 +7260,16 @@ function Yi({
7252
7260
  rowSpan: o,
7253
7261
  "aria-sort": I ? F === "asc" ? "ascending" : "descending" : void 0,
7254
7262
  "aria-label": w ? p : a.headerLabel,
7255
- className: _ ? `${d} ${Kg}` : d,
7263
+ className: _ ? `${d} ${qg}` : d,
7256
7264
  style: f,
7257
7265
  children: [
7258
- w ? /* @__PURE__ */ te("div", { className: Ng({ align: a.align ?? "start" }), children: [
7259
- m ? /* @__PURE__ */ C(Nm, { column: s, children: a.header }) : a.header,
7266
+ w ? /* @__PURE__ */ ee("div", { className: Hg({ align: a.align ?? "start" }), children: [
7267
+ m ? /* @__PURE__ */ C(Hm, { column: s, children: a.header }) : a.header,
7260
7268
  a.headerTip,
7261
- h ? /* @__PURE__ */ C(jm, { model: e, kit: a, label: p }) : null
7269
+ h ? /* @__PURE__ */ C($m, { model: e, kit: a, label: p }) : null
7262
7270
  ] }) : a.header,
7263
7271
  _ ? /* @__PURE__ */ C(
7264
- Hm,
7272
+ jm,
7265
7273
  {
7266
7274
  model: e,
7267
7275
  header: t,
@@ -7273,7 +7281,7 @@ function Yi({
7273
7281
  }
7274
7282
  );
7275
7283
  }
7276
- function Bm({
7284
+ function Km({
7277
7285
  model: e,
7278
7286
  header: t
7279
7287
  }) {
@@ -7296,12 +7304,12 @@ function Bm({
7296
7304
  divider: s.divider,
7297
7305
  printable: a
7298
7306
  }),
7299
- style: pn(s),
7307
+ style: hn(s),
7300
7308
  children: (n == null ? void 0 : n.header) ?? ((c = l.columnDef.meta) == null ? void 0 : c.label)
7301
7309
  }
7302
7310
  );
7303
7311
  }
7304
- function Km({
7312
+ function qm({
7305
7313
  model: e,
7306
7314
  headRef: t,
7307
7315
  measurePinned: n,
@@ -7329,7 +7337,7 @@ function Km({
7329
7337
  },
7330
7338
  l.id
7331
7339
  ) : a === "group" || l.subHeaders.length > 0 ? /* @__PURE__ */ C(
7332
- Bm,
7340
+ Km,
7333
7341
  {
7334
7342
  model: e,
7335
7343
  header: l
@@ -7348,7 +7356,7 @@ function Km({
7348
7356
  );
7349
7357
  }) }, i.id)) });
7350
7358
  }
7351
- function qm({
7359
+ function Um({
7352
7360
  caption: e,
7353
7361
  pageIndex: t,
7354
7362
  pageSize: n,
@@ -7369,8 +7377,8 @@ function qm({
7369
7377
  to: f(_),
7370
7378
  total: f(r)
7371
7379
  });
7372
- return /* @__PURE__ */ te("div", { className: dr({ slot: "pager" }), children: [
7373
- /* @__PURE__ */ te("p", { className: zg(), children: [
7380
+ return /* @__PURE__ */ ee("div", { className: dr({ slot: "pager" }), children: [
7381
+ /* @__PURE__ */ ee("p", { className: Vg(), children: [
7374
7382
  w,
7375
7383
  a ? /* @__PURE__ */ C(ro, { size: "sm", label: d("dataTable.loading") }) : null
7376
7384
  ] }),
@@ -7400,7 +7408,7 @@ function tr() {
7400
7408
  typeof requestAnimationFrame == "function" ? requestAnimationFrame(() => e()) : setTimeout(e, 0);
7401
7409
  });
7402
7410
  }
7403
- function Um(e) {
7411
+ function Wm(e) {
7404
7412
  const [t, n] = oe(!1), o = W(null), r = W(!1), i = de(() => {
7405
7413
  const a = e.current;
7406
7414
  o.current = a ? { top: a.scrollTop, left: a.scrollLeft } : null, wr(() => n(!0));
@@ -7436,7 +7444,7 @@ function Um(e) {
7436
7444
  return { printing: t, print: l };
7437
7445
  }
7438
7446
  const Ji = ["long", "medium", "short"];
7439
- function Wm({
7447
+ function Qm({
7440
7448
  rowCount: e,
7441
7449
  columnCount: t,
7442
7450
  density: n
@@ -7451,7 +7459,7 @@ function Wm({
7451
7459
  variant: "text",
7452
7460
  size: "sm",
7453
7461
  animate: !0,
7454
- className: Qg({
7462
+ className: Xg({
7455
7463
  width: Ji[(r + s) % Ji.length]
7456
7464
  })
7457
7465
  }
@@ -7502,16 +7510,16 @@ function es({
7502
7510
  headingLevel: (n == null ? void 0 : n.headingLevel) ?? 3,
7503
7511
  primaryAction: n == null ? void 0 : n.action
7504
7512
  }
7505
- ), /* @__PURE__ */ C("tr", { children: /* @__PURE__ */ C("td", { colSpan: Math.max(1, t), className: Xg(), children: s }) });
7513
+ ), /* @__PURE__ */ C("tr", { children: /* @__PURE__ */ C("td", { colSpan: Math.max(1, t), className: Zg(), children: s }) });
7506
7514
  }
7507
- function Qm(e) {
7515
+ function Xm(e) {
7508
7516
  try {
7509
7517
  return new Intl.DateTimeFormat(e, { dateStyle: "short" });
7510
7518
  } catch {
7511
7519
  return new Intl.DateTimeFormat(void 0, { dateStyle: "short" });
7512
7520
  }
7513
7521
  }
7514
- function Xm(e, t) {
7522
+ function Zm(e, t) {
7515
7523
  if (e == null || e === "") return null;
7516
7524
  if (typeof e == "number") return Number.isFinite(e) ? e : null;
7517
7525
  if (e instanceof Date)
@@ -7522,19 +7530,19 @@ function Xm(e, t) {
7522
7530
  }
7523
7531
  return String(e);
7524
7532
  }
7525
- function Zm(e, t) {
7533
+ function Ym(e, t) {
7526
7534
  const n = typeof e.footer == "function" ? e.footer(t) : e.footer;
7527
7535
  return typeof n == "number" ? Number.isFinite(n) ? n : null : typeof n == "string" ? n : null;
7528
7536
  }
7529
- const Ym = (e) => {
7530
- const t = Qm(e.locale), n = (r, i) => {
7537
+ const Jm = (e) => {
7538
+ const t = Xm(e.locale), n = (r, i) => {
7531
7539
  if (e.isMasked(r, i.id)) return e.maskFor(r, i.id);
7532
7540
  const { column: s } = i;
7533
7541
  if (s.exportValue) {
7534
7542
  const l = s.exportValue(r);
7535
7543
  return typeof l == "number" ? Number.isFinite(l) ? l : null : l === "" ? null : l;
7536
7544
  }
7537
- return s.value ? Xm(s.value(r), t) : null;
7545
+ return s.value ? Zm(s.value(r), t) : null;
7538
7546
  }, { footer: o } = e;
7539
7547
  return {
7540
7548
  scope: e.scope,
@@ -7547,10 +7555,10 @@ const Ym = (e) => {
7547
7555
  id: r.id,
7548
7556
  cells: e.columns.map((i) => n(r.original, i))
7549
7557
  })),
7550
- totals: o ? e.columns.map((r) => Zm(r.column, o)) : null
7558
+ totals: o ? e.columns.map((r) => Ym(r.column, o)) : null
7551
7559
  };
7552
7560
  };
7553
- function Jm(e) {
7561
+ function ep(e) {
7554
7562
  return e === void 0 ? { state: "selectable", reason: null } : typeof e == "string" ? { state: e, reason: null } : { state: e.state, reason: e.reason };
7555
7563
  }
7556
7564
  function ts(e) {
@@ -7561,7 +7569,7 @@ function ts(e) {
7561
7569
  ), "page") : t;
7562
7570
  }
7563
7571
  const qt = (e, t) => e.getSelectability(t).state === "selectable";
7564
- function ep(e, t) {
7572
+ function tp(e, t) {
7565
7573
  if (e.mode === "none") return [];
7566
7574
  const n = /* @__PURE__ */ new Set(), o = [];
7567
7575
  for (const r of t)
@@ -7598,7 +7606,7 @@ function ql(e, t, n, o, r) {
7598
7606
  r
7599
7607
  ), !0);
7600
7608
  }
7601
- function tp(e, t, n, o, r, i) {
7609
+ function np(e, t, n, o, r, i) {
7602
7610
  if (e.mode === "none" || !qt(e, n)) return;
7603
7611
  if (e.mode === "single") {
7604
7612
  e.store.write("rowSelection", o ? [n] : [], i), t.current = n;
@@ -7616,14 +7624,14 @@ function tp(e, t, n, o, r, i) {
7616
7624
  i
7617
7625
  ), t.current = n;
7618
7626
  }
7619
- function np(e) {
7627
+ function op(e) {
7620
7628
  if (e.scope === "none") return !1;
7621
7629
  const t = e.getScopeRowIds().filter((r) => qt(e, r));
7622
7630
  if (t.length === 0) return !1;
7623
7631
  const n = new Set(e.store.get("rowSelection")), o = t.filter((r) => n.has(r)).length;
7624
7632
  return o === 0 ? !1 : o === t.length ? !0 : "indeterminate";
7625
7633
  }
7626
- function op(e) {
7634
+ function rp(e) {
7627
7635
  if (e.scope === "none") return null;
7628
7636
  let t;
7629
7637
  for (const n of e.getScopeRowIds()) {
@@ -7633,7 +7641,7 @@ function op(e) {
7633
7641
  }
7634
7642
  return { reason: t ?? null };
7635
7643
  }
7636
- function rp(e, t, n, o) {
7644
+ function ip(e, t, n, o) {
7637
7645
  if (e.scope === "none") return;
7638
7646
  t.current = null;
7639
7647
  const r = e.getScopeRowIds().filter((i) => qt(e, i));
@@ -7650,15 +7658,15 @@ function rp(e, t, n, o) {
7650
7658
  o
7651
7659
  );
7652
7660
  }
7653
- function ip(e, t) {
7661
+ function sp(e, t) {
7654
7662
  const n = new Set(e.store.get("rowSelection"));
7655
7663
  return {
7656
7664
  mode: e.mode,
7657
7665
  scope: e.scope,
7658
- headerState: np(e),
7659
- selectAllBlock: op(e),
7660
- toggleAll: (o) => rp(e, t, o, "user"),
7661
- toggleRow: (o, r, i) => tp(e, t, o, r, i, "user"),
7666
+ headerState: op(e),
7667
+ selectAllBlock: rp(e),
7668
+ toggleAll: (o) => ip(e, t, o, "user"),
7669
+ toggleRow: (o, r, i) => np(e, t, o, r, i, "user"),
7662
7670
  isSelected: (o) => {
7663
7671
  const r = e.getSelectability(o).state;
7664
7672
  return r === "locked" ? !0 : r === "none" ? !1 : n.has(o);
@@ -7679,7 +7687,7 @@ function pr(e, t, n) {
7679
7687
  ...s.map((c) => ({ id: c, pinned: "end" }))
7680
7688
  ];
7681
7689
  }
7682
- function sp(e, t) {
7690
+ function lp(e, t) {
7683
7691
  for (const n of e.kitGroups.keys()) {
7684
7692
  const o = [];
7685
7693
  if (t.forEach((i, s) => {
@@ -7693,7 +7701,7 @@ function sp(e, t) {
7693
7701
  }
7694
7702
  return !0;
7695
7703
  }
7696
- function lp(e, t, n, o, r) {
7704
+ function ap(e, t, n, o, r) {
7697
7705
  const i = t.findIndex((d) => d.id === n), s = e.kitColumns.get(n);
7698
7706
  if (i === -1 || !s)
7699
7707
  return ie(`moveColumn: unknown column "${n}".`), null;
@@ -7709,7 +7717,7 @@ function lp(e, t, n, o, r) {
7709
7717
  if (c !== t[i].pinned && !l.canPin)
7710
7718
  return ie(`moveColumn: column "${n}" cannot change pin side.`), null;
7711
7719
  const u = t.filter((d) => d.id !== n);
7712
- return u.splice(a, 0, { id: n, pinned: c }), sp(e, u) ? {
7720
+ return u.splice(a, 0, { id: n, pinned: c }), lp(e, u) ? {
7713
7721
  order: u.map((d) => d.id),
7714
7722
  pinning: {
7715
7723
  start: u.filter((d) => d.pinned === "start").map((d) => d.id),
@@ -7741,7 +7749,7 @@ function ns(e, t) {
7741
7749
  }
7742
7750
  l.store.write(
7743
7751
  "rowSelection",
7744
- ep(l.selection, s),
7752
+ tp(l.selection, s),
7745
7753
  t
7746
7754
  );
7747
7755
  },
@@ -7772,7 +7780,7 @@ function ns(e, t) {
7772
7780
  const a = /* @__PURE__ */ new Set(), c = [];
7773
7781
  for (const u of s) {
7774
7782
  const d = l.model.kitColumns.get(u.colId);
7775
- if (!d || !mn(d)) {
7783
+ if (!d || !pn(d)) {
7776
7784
  ie(`setSort: column "${u.colId}" is unknown or does not sort.`);
7777
7785
  continue;
7778
7786
  }
@@ -7903,7 +7911,7 @@ function ns(e, t) {
7903
7911
  ), _ = je(m, c), w = s.fixedLayout ? g[f.id] ?? m.size ?? null : null;
7904
7912
  return {
7905
7913
  id: f.id,
7906
- label: gn(m),
7914
+ label: mn(m),
7907
7915
  visible: u[f.id] ?? !0,
7908
7916
  canHide: h.canHide,
7909
7917
  canMove: h.canMove,
@@ -7913,7 +7921,7 @@ function ns(e, t) {
7913
7921
  index: p,
7914
7922
  groupId: l.groupOf.get(f.id) ?? null,
7915
7923
  filterKind: ho(m) ? ((F = m.filter) == null ? void 0 : F.kind) ?? null : null,
7916
- sortable: !_ && mn(m),
7924
+ sortable: !_ && pn(m),
7917
7925
  userTouched: f.id in d,
7918
7926
  masked: _
7919
7927
  };
@@ -7973,7 +7981,7 @@ function ns(e, t) {
7973
7981
  );
7974
7982
  },
7975
7983
  moveColumn(s, l) {
7976
- const a = e(), c = lp(
7984
+ const a = e(), c = ap(
7977
7985
  a.model,
7978
7986
  r(),
7979
7987
  s,
@@ -8053,12 +8061,12 @@ function ns(e, t) {
8053
8061
  subscribe: (s) => e().store.subscribe(s)
8054
8062
  };
8055
8063
  }
8056
- const ap = [
8064
+ const cp = [
8057
8065
  "columnOrder",
8058
8066
  "columnSizing",
8059
8067
  "columnPinning",
8060
8068
  "columnVisibility"
8061
- ], cp = 250;
8069
+ ], up = 250;
8062
8070
  function Br(e) {
8063
8071
  return `${Ba}${e}`;
8064
8072
  }
@@ -8070,12 +8078,12 @@ function Kr() {
8070
8078
  }
8071
8079
  }
8072
8080
  const Do = (e) => e !== null && typeof e == "object" && !Array.isArray(e), hr = (e) => Array.isArray(e) && e.every((t) => typeof t == "string");
8073
- function up(e, t) {
8081
+ function dp(e, t) {
8074
8082
  if (!hr(e)) return;
8075
8083
  const n = /* @__PURE__ */ new Set(), o = e.filter((r) => ke(r) || !t.kitColumns.has(r) || n.has(r) ? !1 : (n.add(r), !0));
8076
8084
  return o.length > 0 ? o : void 0;
8077
8085
  }
8078
- function dp(e, t) {
8086
+ function fp(e, t) {
8079
8087
  if (!Do(e)) return;
8080
8088
  const n = {};
8081
8089
  for (const [o, r] of Object.entries(e)) {
@@ -8086,7 +8094,7 @@ function dp(e, t) {
8086
8094
  }
8087
8095
  return Object.keys(n).length > 0 ? n : void 0;
8088
8096
  }
8089
- function fp(e, t) {
8097
+ function gp(e, t) {
8090
8098
  const n = (a) => {
8091
8099
  const c = t.kitColumns.get(a);
8092
8100
  return !c || ke(a) ? !1 : ut(
@@ -8111,11 +8119,11 @@ function fp(e, t) {
8111
8119
  end: i.filter((a) => !l(a))
8112
8120
  };
8113
8121
  }
8114
- function gp(e, t) {
8122
+ function mp(e, t) {
8115
8123
  if (!(!Do(e) || !hr(e.start) || !hr(e.end)))
8116
- return fp({ start: e.start, end: e.end }, t);
8124
+ return gp({ start: e.start, end: e.end }, t);
8117
8125
  }
8118
- function mp(e, t) {
8126
+ function pp(e, t) {
8119
8127
  if (!Do(e)) return;
8120
8128
  const n = {};
8121
8129
  for (const [o, r] of Object.entries(e)) {
@@ -8131,28 +8139,28 @@ function mp(e, t) {
8131
8139
  }
8132
8140
  return Object.keys(n).length > 0 ? n : void 0;
8133
8141
  }
8134
- function pp(e, t) {
8142
+ function hp(e, t) {
8135
8143
  if (!Do(e) || e.v !== 1) return null;
8136
- const n = {}, o = up(e.order, t);
8144
+ const n = {}, o = dp(e.order, t);
8137
8145
  o && (n.columnOrder = o);
8138
- const r = dp(e.sizing, t);
8146
+ const r = fp(e.sizing, t);
8139
8147
  r && (n.columnSizing = r);
8140
- const i = gp(e.pinning, t);
8148
+ const i = mp(e.pinning, t);
8141
8149
  i && (n.columnPinning = i);
8142
- const s = mp(e.visibility, t);
8150
+ const s = pp(e.visibility, t);
8143
8151
  return s && (n.columnVisibility = s), n;
8144
8152
  }
8145
- function hp(e, t) {
8153
+ function wp(e, t) {
8146
8154
  const n = Kr();
8147
8155
  if (!n) return null;
8148
8156
  try {
8149
8157
  const o = n.getItem(Br(e));
8150
- return o === null ? null : pp(JSON.parse(o), t);
8158
+ return o === null ? null : hp(JSON.parse(o), t);
8151
8159
  } catch {
8152
8160
  return null;
8153
8161
  }
8154
8162
  }
8155
- function wp(e) {
8163
+ function bp(e) {
8156
8164
  const t = { v: 1 }, n = (o) => o.filter((r) => !ke(r));
8157
8165
  if (!e.isControlled("columnOrder")) {
8158
8166
  const o = n(e.get("columnOrder"));
@@ -8180,7 +8188,7 @@ function wp(e) {
8180
8188
  }
8181
8189
  return t;
8182
8190
  }
8183
- function bp(e, t) {
8191
+ function Sp(e, t) {
8184
8192
  const n = Kr();
8185
8193
  if (n)
8186
8194
  try {
@@ -8199,17 +8207,17 @@ function Ul(e) {
8199
8207
  } catch {
8200
8208
  }
8201
8209
  }
8202
- function Sp(e, t) {
8210
+ function yp(e, t) {
8203
8211
  if (!Fe()) return;
8204
- const n = ap.filter(
8212
+ const n = cp.filter(
8205
8213
  (o) => t.isControlled(o)
8206
8214
  );
8207
8215
  n.length > 0 && console.warn(
8208
8216
  `[DataGrid] gridId "${e}" saves column state, but ${n.join(", ")} ${n.length === 1 ? "is" : "are"} controlled; controlled slices are never saved or restored.`
8209
8217
  );
8210
8218
  }
8211
- function yp(e) {
8212
- const { gridId: t, store: n } = e, o = e.debounceMs ?? cp;
8219
+ function vp(e) {
8220
+ const { gridId: t, store: n } = e, o = e.debounceMs ?? up;
8213
8221
  let r = null;
8214
8222
  const i = () => {
8215
8223
  var u;
@@ -8217,7 +8225,7 @@ function yp(e) {
8217
8225
  Ul(t);
8218
8226
  return;
8219
8227
  }
8220
- bp(t, wp(n));
8228
+ Sp(t, bp(n));
8221
8229
  }, s = () => {
8222
8230
  r !== null && clearTimeout(r), r = null;
8223
8231
  }, l = () => {
@@ -8233,28 +8241,28 @@ function yp(e) {
8233
8241
  }
8234
8242
  };
8235
8243
  }
8236
- function vp(e, t) {
8244
+ function Cp(e, t) {
8237
8245
  return e === void 0 || t === null ? !1 : t < $a[e - 1];
8238
8246
  }
8239
- function Cp(e) {
8247
+ function Rp(e) {
8240
8248
  return e.some((t) => t.responsiveTier !== void 0);
8241
8249
  }
8242
- function Rp(e, t) {
8250
+ function _p(e, t) {
8243
8251
  if (Hr(e, t.privacyMode)) return !1;
8244
8252
  const n = ut(
8245
8253
  e,
8246
8254
  t.defaultRowHeaderId,
8247
8255
  t.privacyMode
8248
8256
  );
8249
- return e.id in t.explicit ? n.canHide ? t.explicit[e.id] : !0 : t.responsive && e.id !== t.focusedColumnId && vp(e.responsiveTier, t.containerInlineSize) ? !1 : !e.defaultHidden;
8257
+ return e.id in t.explicit ? n.canHide ? t.explicit[e.id] : !0 : t.responsive && e.id !== t.focusedColumnId && Cp(e.responsiveTier, t.containerInlineSize) ? !1 : !e.defaultHidden;
8250
8258
  }
8251
8259
  function os(e) {
8252
8260
  const t = {};
8253
8261
  for (const n of e.columns)
8254
- t[n.id] = Rp(n, e);
8262
+ t[n.id] = _p(n, e);
8255
8263
  return t;
8256
8264
  }
8257
- function _p(e, t, n, o) {
8265
+ function xp(e, t, n, o) {
8258
8266
  const r = { ...e };
8259
8267
  for (const i of Object.keys(n)) {
8260
8268
  if (!o(i)) continue;
@@ -8263,7 +8271,7 @@ function _p(e, t, n, o) {
8263
8271
  }
8264
8272
  return r;
8265
8273
  }
8266
- const xp = {
8274
+ const Ip = {
8267
8275
  filter: "filter",
8268
8276
  quickFilter: "quickFilter",
8269
8277
  selection: "selection",
@@ -8273,11 +8281,11 @@ const xp = {
8273
8281
  rows: "rows",
8274
8282
  expanded: null
8275
8283
  }, rs = (e) => (e == null ? void 0 : e.masked) === !0, Wl = /* @__PURE__ */ new WeakMap();
8276
- function xh(e) {
8284
+ function Ih(e) {
8277
8285
  var t;
8278
8286
  return (t = Wl.get(e)) == null ? void 0 : t();
8279
8287
  }
8280
- const Ip = (e) => {
8288
+ const Fp = (e) => {
8281
8289
  const { userHandle: t } = e, n = () => t.getFeatures().dataMode === "server", o = (l) => t.getColumns().find((a) => a.id === l), r = (l) => {
8282
8290
  const a = o(l);
8283
8291
  return a ? a.filterKind === "select" && !rs(a) : n();
@@ -8295,7 +8303,7 @@ const Ip = (e) => {
8295
8303
  },
8296
8304
  isReady: () => !0,
8297
8305
  subscribe: (l) => t.subscribe((a) => {
8298
- const c = xp[a.event];
8306
+ const c = Ip[a.event];
8299
8307
  c && l(c);
8300
8308
  }),
8301
8309
  getColumns: () => t.getColumns().map((l) => {
@@ -8365,7 +8373,7 @@ const Ip = (e) => {
8365
8373
  return (l = e.getCaption) == null ? void 0 : l.call(e);
8366
8374
  }), s;
8367
8375
  };
8368
- function Fp(e, t, n) {
8376
+ function Ep(e, t, n) {
8369
8377
  const o = /* @__PURE__ */ new Map(), r = (i, s, l) => {
8370
8378
  for (const a of i) {
8371
8379
  const c = t(a), u = (n == null ? void 0 : n(a)) ?? [];
@@ -8383,16 +8391,16 @@ function Fp(e, t, n) {
8383
8391
  function to(e) {
8384
8392
  Fe() && console.warn(`[DataGrid] ${e}`);
8385
8393
  }
8386
- const Ep = [
8394
+ const Mp = [
8387
8395
  "columnVisibility",
8388
8396
  "columnPinning",
8389
8397
  "columnSizing",
8390
8398
  "columnOrder"
8391
8399
  ];
8392
- function Mp(e) {
8400
+ function Op(e) {
8393
8401
  return e == null ? "" : e instanceof Date ? Number.isNaN(e.getTime()) ? "" : e.toISOString().slice(0, 10) : String(e).trim();
8394
8402
  }
8395
- function Op(e) {
8403
+ function Pp(e) {
8396
8404
  const { t, i18n: n } = fe("ui"), o = n.language ?? "en", {
8397
8405
  columns: r,
8398
8406
  columnGroups: i,
@@ -8404,7 +8412,7 @@ function Op(e) {
8404
8412
  getRowSelectability: d,
8405
8413
  rowCount: g,
8406
8414
  gridId: f
8407
- } = e, p = e.dataMode ?? "client", m = p === "server", h = e.selectionMode ?? "none", _ = !!(a || c), w = e.privacyMode ?? !1, F = e.columnResizing ?? !1, I = !!e.pagination, M = typeof e.pagination == "object" ? e.pagination : void 0, D = e.printing ?? !1, N = e.multiSort ?? !0, G = N ? Math.max(1, e.maxSortLevels ?? ja) : 1, O = e.expandMode ?? "multiple", U = e.rangeSelection ?? h === "multiple", $ = f !== void 0 && f !== "" && e.persistColumnState !== !1, v = e.responsiveColumns ?? Cp(r), S = e.focusedColumnId ?? null, y = ne(
8415
+ } = e, p = e.dataMode ?? "client", m = p === "server", h = e.selectionMode ?? "none", _ = !!(a || c), w = e.privacyMode ?? !1, F = e.columnResizing ?? !1, I = !!e.pagination, M = typeof e.pagination == "object" ? e.pagination : void 0, D = e.printing ?? !1, N = e.multiSort ?? !0, G = N ? Math.max(1, e.maxSortLevels ?? ja) : 1, O = e.expandMode ?? "multiple", U = e.rangeSelection ?? h === "multiple", $ = f !== void 0 && f !== "" && e.persistColumnState !== !1, v = e.responsiveColumns ?? Rp(r), S = e.focusedColumnId ?? null, y = ne(
8408
8416
  () => kg({
8409
8417
  columns: r,
8410
8418
  columnGroups: i,
@@ -8425,7 +8433,7 @@ function Op(e) {
8425
8433
  () => E.filter((b) => je(b, w)).map((b) => b.id),
8426
8434
  [E, w]
8427
8435
  ), L = ne(
8428
- () => Fp(s, l, a),
8436
+ () => Ep(s, l, a),
8429
8437
  // getRowId and getSubRows are usually inline arrows; rows drive it.
8430
8438
  // eslint-disable-next-line react-hooks/exhaustive-deps
8431
8439
  [s]
@@ -8446,7 +8454,7 @@ function Op(e) {
8446
8454
  const R = A.get(b);
8447
8455
  if (R) return R;
8448
8456
  const P = L.get(b);
8449
- let T = Jm(
8457
+ let T = ep(
8450
8458
  P && d ? d(P.original) : void 0
8451
8459
  );
8452
8460
  return w && !e.hostTextPrivacySafe && P && T.reason !== null && E.some(
@@ -8480,9 +8488,9 @@ function Op(e) {
8480
8488
  columnOrder: [...e.defaultColumnOrder ?? []]
8481
8489
  }), Ke = W(e);
8482
8490
  Ke.current = e;
8483
- const yn = W(ge);
8484
- yn.current = ge;
8485
- const vn = {
8491
+ const vn = W(ge);
8492
+ vn.current = ge;
8493
+ const Cn = {
8486
8494
  callbacks: {
8487
8495
  onSortingChange: e.onSortingChange,
8488
8496
  onFiltersChange: e.onFiltersChange,
@@ -8497,10 +8505,10 @@ function Op(e) {
8497
8505
  onQueryChange: e.onQueryChange
8498
8506
  },
8499
8507
  clearSelectionOnFilterChange: e.clearSelectionOnFilterChange ?? !1,
8500
- getLockedRowIds: () => yn.current,
8508
+ getLockedRowIds: () => vn.current,
8501
8509
  getMaskedColumnIds: () => z
8502
8510
  }, Ut = W([]), [V] = oe(() => {
8503
- const b = $ ? hp(f, {
8511
+ const b = $ ? wp(f, {
8504
8512
  kitColumns: y.kitColumns,
8505
8513
  groupOf: y.groupOf,
8506
8514
  defaultRowHeaderId: y.defaultRowHeaderId,
@@ -8522,15 +8530,15 @@ function Op(e) {
8522
8530
  columnPinning: R.columnPinning,
8523
8531
  columnSizing: R.columnSizing,
8524
8532
  columnOrder: R.columnOrder
8525
- }, Z = [];
8526
- e.columnVisibility === void 0 && (b != null && b.columnVisibility) && (q.columnVisibility = b.columnVisibility, Z.push("columnVisibility")), e.columnPinning === void 0 && (b != null && b.columnPinning) && (q.columnPinning = b.columnPinning, Z.push("columnPinning")), e.columnSizing === void 0 && (b != null && b.columnSizing) && (q.columnSizing = b.columnSizing, Z.push("columnSizing")), e.columnOrder === void 0 && (b != null && b.columnOrder) && (q.columnOrder = b.columnOrder, Z.push("columnOrder")), e.columnVisibility && (q.columnVisibility = { ...e.columnVisibility }), e.columnPinning && (q.columnPinning = {
8533
+ }, Y = [];
8534
+ e.columnVisibility === void 0 && (b != null && b.columnVisibility) && (q.columnVisibility = b.columnVisibility, Y.push("columnVisibility")), e.columnPinning === void 0 && (b != null && b.columnPinning) && (q.columnPinning = b.columnPinning, Y.push("columnPinning")), e.columnSizing === void 0 && (b != null && b.columnSizing) && (q.columnSizing = b.columnSizing, Y.push("columnSizing")), e.columnOrder === void 0 && (b != null && b.columnOrder) && (q.columnOrder = b.columnOrder, Y.push("columnOrder")), e.columnVisibility && (q.columnVisibility = { ...e.columnVisibility }), e.columnPinning && (q.columnPinning = {
8527
8535
  start: [...e.columnPinning.start],
8528
8536
  end: [...e.columnPinning.end]
8529
- }), e.columnSizing && (q.columnSizing = { ...e.columnSizing }), e.columnOrder && (q.columnOrder = [...e.columnOrder]), Ut.current = Z;
8537
+ }), e.columnSizing && (q.columnSizing = { ...e.columnSizing }), e.columnOrder && (q.columnOrder = [...e.columnOrder]), Ut.current = Y;
8530
8538
  const Q = [];
8531
- return e.sorting !== void 0 && Q.push("sorting"), e.filters !== void 0 && Q.push("filters"), e.quickFilter !== void 0 && Q.push("quickFilter"), e.page !== void 0 && Q.push("page"), e.rowSelection !== void 0 && Q.push("rowSelection"), e.expanded !== void 0 && Q.push("expanded"), e.columnVisibility !== void 0 && Q.push("columnVisibility"), e.columnPinning !== void 0 && Q.push("columnPinning"), e.columnSizing !== void 0 && Q.push("columnSizing"), e.columnOrder !== void 0 && Q.push("columnOrder"), oc({ initial: q, controlled: Q, context: vn });
8539
+ return e.sorting !== void 0 && Q.push("sorting"), e.filters !== void 0 && Q.push("filters"), e.quickFilter !== void 0 && Q.push("quickFilter"), e.page !== void 0 && Q.push("page"), e.rowSelection !== void 0 && Q.push("rowSelection"), e.expanded !== void 0 && Q.push("expanded"), e.columnVisibility !== void 0 && Q.push("columnVisibility"), e.columnPinning !== void 0 && Q.push("columnPinning"), e.columnSizing !== void 0 && Q.push("columnSizing"), e.columnOrder !== void 0 && Q.push("columnOrder"), oc({ initial: q, controlled: Q, context: Cn });
8532
8540
  });
8533
- V.setContext(vn), V.syncFromProps({
8541
+ V.setContext(Cn), V.syncFromProps({
8534
8542
  ...e.sorting !== void 0 ? { sorting: e.sorting.map((b) => ({ ...b })) } : {},
8535
8543
  ...e.filters !== void 0 ? { filters: { ...e.filters } } : {},
8536
8544
  ...e.quickFilter !== void 0 ? { quickFilter: e.quickFilter } : {},
@@ -8557,7 +8565,7 @@ function Op(e) {
8557
8565
  [V]
8558
8566
  );
8559
8567
  ca(ko, V.getVersion, V.getVersion);
8560
- const Cn = V.get("sorting"), ft = V.get("filters"), Rn = V.get("quickFilter"), Wt = V.get("page"), _n = V.get("rowSelection"), xn = V.get("expanded"), In = V.get("columnVisibility"), Ve = V.get("columnPinning"), Fn = V.get("columnSizing"), En = V.get("columnOrder"), Mn = {
8568
+ const Rn = V.get("sorting"), ft = V.get("filters"), _n = V.get("quickFilter"), Wt = V.get("page"), xn = V.get("rowSelection"), In = V.get("expanded"), Fn = V.get("columnVisibility"), Ve = V.get("columnPinning"), En = V.get("columnSizing"), Mn = V.get("columnOrder"), On = {
8561
8569
  columns: E,
8562
8570
  privacyMode: w,
8563
8571
  responsive: v,
@@ -8566,14 +8574,14 @@ function Op(e) {
8566
8574
  focusedColumnId: S
8567
8575
  }, Te = ne(
8568
8576
  () => os({
8569
- ...Mn,
8570
- explicit: In
8577
+ ...On,
8578
+ explicit: Fn
8571
8579
  }),
8572
8580
  // visibilityInput is rebuilt each render from the listed values.
8573
8581
  // eslint-disable-next-line react-hooks/exhaustive-deps
8574
8582
  [
8575
8583
  E,
8576
- In,
8584
+ Fn,
8577
8585
  w,
8578
8586
  v,
8579
8587
  e.containerInlineSize,
@@ -8582,25 +8590,25 @@ function Op(e) {
8582
8590
  ]
8583
8591
  ), Qt = (b) => {
8584
8592
  const R = y.kitColumns.get(b);
8585
- return R !== void 0 && mn(R) && !je(R, w);
8593
+ return R !== void 0 && pn(R) && !je(R, w);
8586
8594
  }, Xt = (b) => {
8587
8595
  const R = y.kitColumns.get(b);
8588
8596
  return R !== void 0 && ho(R) && !je(R, w);
8589
8597
  }, Ao = ne(
8590
- () => wi(Cn, Qt),
8598
+ () => wi(Rn, Qt),
8591
8599
  // eslint-disable-next-line react-hooks/exhaustive-deps
8592
- [Cn, y, w]
8600
+ [Rn, y, w]
8593
8601
  ), Pt = ne(
8594
8602
  () => bi(ft, Xt),
8595
8603
  // eslint-disable-next-line react-hooks/exhaustive-deps
8596
8604
  [ft, y, w]
8597
- ), On = I && !(D && !m), zo = ne(
8598
- () => On ? { pageIndex: Wt.pageIndex, pageSize: Wt.pageSize } : { pageIndex: 0, pageSize: Number.POSITIVE_INFINITY },
8599
- [On, Wt]
8605
+ ), Pn = I && !(D && !m), zo = ne(
8606
+ () => Pn ? { pageIndex: Wt.pageIndex, pageSize: Wt.pageSize } : { pageIndex: 0, pageSize: Number.POSITIVE_INFINITY },
8607
+ [Pn, Wt]
8600
8608
  ), Zt = ne(
8601
- () => yi(_n),
8602
- [_n]
8603
- ), gt = ne(() => vi(xn), [xn]), et = ne(() => {
8609
+ () => yi(xn),
8610
+ [xn]
8611
+ ), gt = ne(() => vi(In), [In]), et = ne(() => {
8604
8612
  const b = { ...Te };
8605
8613
  for (const R of y.utilityIds) b[R] = !0;
8606
8614
  return b;
@@ -8610,9 +8618,9 @@ function Op(e) {
8610
8618
  ), Yt = ne(
8611
8619
  () => [
8612
8620
  ...y.utilityIds,
8613
- ...ur(En, y.declaredOrder)
8621
+ ...ur(Mn, y.declaredOrder)
8614
8622
  ],
8615
- [En, y]
8623
+ [Mn, y]
8616
8624
  ), me = W({
8617
8625
  isEffectiveSortColumn: Qt,
8618
8626
  isEvaluatedFilterKey: Xt,
@@ -8637,7 +8645,7 @@ function Op(e) {
8637
8645
  getSelectability: J,
8638
8646
  getExpandableIds: () => []
8639
8647
  };
8640
- const [Pn] = oe(() => ({
8648
+ const [Jt] = oe(() => ({
8641
8649
  onSortingChange: (b) => {
8642
8650
  const R = me.current, P = wi(
8643
8651
  V.get("sorting"),
@@ -8679,7 +8687,7 @@ function Op(e) {
8679
8687
  V.write("rowSelection", T, "user");
8680
8688
  },
8681
8689
  onExpandedChange: (b) => {
8682
- var q, Z;
8690
+ var q, Y;
8683
8691
  const R = me.current, P = V.get("expanded"), T = Qa(
8684
8692
  ce(b, vi(P)),
8685
8693
  R.getExpandableIds
@@ -8691,8 +8699,8 @@ function Op(e) {
8691
8699
  const _e = Q[Q.length - 1], Le = /* @__PURE__ */ new Set();
8692
8700
  let xe = ((q = R.rowIndex.get(_e)) == null ? void 0 : q.parentId) ?? null;
8693
8701
  for (; xe !== null; )
8694
- Le.add(xe), xe = ((Z = R.rowIndex.get(xe)) == null ? void 0 : Z.parentId) ?? null;
8695
- K = [...T.filter((rn) => Le.has(rn)), _e];
8702
+ Le.add(xe), xe = ((Y = R.rowIndex.get(xe)) == null ? void 0 : Y.parentId) ?? null;
8703
+ K = [...T.filter((sn) => Le.has(sn)), _e];
8696
8704
  }
8697
8705
  }
8698
8706
  V.write("expanded", K, "user");
@@ -8701,7 +8709,7 @@ function Op(e) {
8701
8709
  const R = me.current, P = R.effectiveVisibility, T = ce(b, { ...P });
8702
8710
  V.write(
8703
8711
  "columnVisibility",
8704
- _p(
8712
+ xp(
8705
8713
  V.get("columnVisibility"),
8706
8714
  P,
8707
8715
  T,
@@ -8723,9 +8731,9 @@ function Op(e) {
8723
8731
  onColumnSizingChange: (b) => {
8724
8732
  const R = me.current, P = ce(b, { ...V.get("columnSizing") }), T = {};
8725
8733
  for (const [K, q] of Object.entries(P)) {
8726
- const Z = R.model.kitColumns.get(K);
8727
- if (!Z) continue;
8728
- const Q = Mo(Z, q);
8734
+ const Y = R.model.kitColumns.get(K);
8735
+ if (!Y) continue;
8736
+ const Q = Mo(Y, q);
8729
8737
  Q !== null && (T[K] = Q);
8730
8738
  }
8731
8739
  V.write("columnSizing", T, "user");
@@ -8744,7 +8752,7 @@ function Op(e) {
8744
8752
  "user"
8745
8753
  );
8746
8754
  }
8747
- })), Jt = W(null), mt = (b) => E.some(
8755
+ })), en = W(null), mt = (b) => E.some(
8748
8756
  (R) => Yn(R, b, w)
8749
8757
  ), Dn = () => pr(
8750
8758
  y,
@@ -8755,7 +8763,7 @@ function Op(e) {
8755
8763
  locale: o,
8756
8764
  getRowLabel: (b) => {
8757
8765
  var _e, Le;
8758
- const R = L.get(b), P = Jt.current;
8766
+ const R = L.get(b), P = en.current;
8759
8767
  let T = R ? R.index + 1 : 1;
8760
8768
  if (P && R)
8761
8769
  try {
@@ -8770,12 +8778,12 @@ function Op(e) {
8770
8778
  return K;
8771
8779
  const q = (_e = e.getRowLabel) == null ? void 0 : _e.call(e, R.original);
8772
8780
  if (q !== void 0 && q.trim() !== "") return q;
8773
- const Z = Mg(
8781
+ const Y = Mg(
8774
8782
  y.kitColumns,
8775
8783
  Dn()
8776
- ), Q = Z ? y.kitColumns.get(Z) : void 0;
8784
+ ), Q = Y ? y.kitColumns.get(Y) : void 0;
8777
8785
  if (Q) {
8778
- const xe = Mp(
8786
+ const xe = Op(
8779
8787
  Q.exportValue ? Q.exportValue(R.original) : (Le = Q.value) == null ? void 0 : Le.call(Q, R.original)
8780
8788
  );
8781
8789
  if (xe !== "") return xe;
@@ -8819,16 +8827,16 @@ function Op(e) {
8819
8827
  state: {
8820
8828
  sorting: Ao,
8821
8829
  columnFilters: Pt,
8822
- globalFilter: Rn,
8830
+ globalFilter: _n,
8823
8831
  pagination: zo,
8824
8832
  rowSelection: Zt,
8825
8833
  expanded: gt,
8826
8834
  columnVisibility: et,
8827
8835
  columnPinning: Vo,
8828
- columnSizing: Fn,
8836
+ columnSizing: En,
8829
8837
  columnOrder: Yt
8830
8838
  },
8831
- ...Pn,
8839
+ ...Jt,
8832
8840
  manualSorting: m,
8833
8841
  manualFiltering: m,
8834
8842
  manualPagination: m,
@@ -8857,8 +8865,8 @@ function Op(e) {
8857
8865
  },
8858
8866
  meta: kn
8859
8867
  });
8860
- Jt.current = re, me.current.getExpandableIds = () => re.getCoreRowModel().flatRows.filter((b) => b.getCanExpand()).map((b) => b.id);
8861
- const en = () => m ? g === -1 ? -1 : g ?? s.length : re.getFilteredRowModel().rows.length, Dt = () => {
8868
+ en.current = re, me.current.getExpandableIds = () => re.getCoreRowModel().flatRows.filter((b) => b.getCanExpand()).map((b) => b.id);
8869
+ const tn = () => m ? g === -1 ? -1 : g ?? s.length : re.getFilteredRowModel().rows.length, Dt = () => {
8862
8870
  if (!I) return 1;
8863
8871
  const b = V.get("page").pageSize;
8864
8872
  if (m) {
@@ -8885,11 +8893,11 @@ function Op(e) {
8885
8893
  getDisplayOrderIds: () => re.getRowsInDisplayOrder().map((b) => b.id),
8886
8894
  getScopeRowIds: () => (qe === "page" ? re.getPaginatedRowModel().rows : re.getFilteredRowModel().rows).map((b) => b.id),
8887
8895
  isKnownRowId: (b) => L.has(b)
8888
- }, nt = ip(pt, kt), ot = {
8896
+ }, nt = sp(pt, kt), ot = {
8889
8897
  dataMode: p,
8890
8898
  selectionMode: h,
8891
8899
  sorting: E.some(
8892
- (b) => mn(b) && !je(b, w)
8900
+ (b) => pn(b) && !je(b, w)
8893
8901
  ),
8894
8902
  filtering: E.some(
8895
8903
  (b) => ho(b) && !je(b, w)
@@ -8901,22 +8909,22 @@ function Op(e) {
8901
8909
  expansion: _,
8902
8910
  columnResizing: F,
8903
8911
  privacyMode: w
8904
- }, tn = re.getRowModel().rows, An = c ? tn.filter((b) => b.getIsExpanded()).length : 0, rt = tn.length + An, nn = !D && (e.virtualization ?? "auto") !== "off" && rt > gs, Go = {
8912
+ }, nn = re.getRowModel().rows, An = c ? nn.filter((b) => b.getIsExpanded()).length : 0, rt = nn.length + An, on = !D && (e.virtualization ?? "auto") !== "off" && rt > gs, Go = {
8905
8913
  dataMode: p,
8906
8914
  status: e.status ?? "ready",
8907
- isEmpty: tn.length === 0,
8915
+ isEmpty: nn.length === 0,
8908
8916
  anyFilterActive: Object.values(ft).some(
8909
8917
  (b) => b != null
8910
- ) || Rn.trim() !== "",
8911
- rowCount: en(),
8918
+ ) || _n.trim() !== "",
8919
+ rowCount: tn(),
8912
8920
  pageCount: Dt(),
8913
8921
  renderedItemCount: rt,
8914
- virtualised: nn,
8922
+ virtualised: on,
8915
8923
  headerRowCount: re.getHeaderGroups().length
8916
8924
  }, zn = (b) => {
8917
8925
  var R;
8918
- return Fn[b] !== void 0 || ((R = y.kitColumns.get(b)) == null ? void 0 : R.size) !== void 0;
8919
- }, At = E.some((b) => b.size !== void 0) || F || nn, Vn = [...y.utilityIds, ...Ve.start].filter(
8926
+ return En[b] !== void 0 || ((R = y.kitColumns.get(b)) == null ? void 0 : R.size) !== void 0;
8927
+ }, At = E.some((b) => b.size !== void 0) || F || on, Vn = [...y.utilityIds, ...Ve.start].filter(
8920
8928
  (b) => et[b] !== !1
8921
8929
  ), Ee = Ve.end.filter(
8922
8930
  (b) => et[b] !== !1
@@ -8939,23 +8947,23 @@ function Op(e) {
8939
8947
  (q) => q.exportable ?? (q.value !== void 0 || q.exportValue !== void 0)
8940
8948
  ).map((q) => ({
8941
8949
  id: q.id,
8942
- label: gn(q),
8950
+ label: mn(q),
8943
8951
  align: q.align ?? "start",
8944
8952
  column: q
8945
8953
  })), P = [], T = /* @__PURE__ */ new Set(), K = (q) => {
8946
- for (const Z of q)
8947
- T.has(Z.id) || (T.add(Z.id), P.push({ id: Z.id, original: Z.original }), Z.subRows.length > 0 && K(Z.subRows));
8954
+ for (const Y of q)
8955
+ T.has(Y.id) || (T.add(Y.id), P.push({ id: Y.id, original: Y.original }), Y.subRows.length > 0 && K(Y.subRows));
8948
8956
  };
8949
- return K(re.getPrePaginatedRowModel().rows), Ym({
8957
+ return K(re.getPrePaginatedRowModel().rows), Jm({
8950
8958
  scope: m ? "current-page" : "all-filtered",
8951
8959
  columns: R,
8952
8960
  rows: P,
8953
- isMasked: (q, Z) => {
8954
- const Q = y.kitColumns.get(Z);
8961
+ isMasked: (q, Y) => {
8962
+ const Q = y.kitColumns.get(Y);
8955
8963
  return Q !== void 0 && Yn(Q, q, w);
8956
8964
  },
8957
- maskFor: (q, Z) => {
8958
- const Q = y.kitColumns.get(Z);
8965
+ maskFor: (q, Y) => {
8966
+ const Q = y.kitColumns.get(Y);
8959
8967
  return ls(
8960
8968
  Q ? zl(Q, q) : void 0
8961
8969
  );
@@ -8966,18 +8974,18 @@ function Op(e) {
8966
8974
  }, Ue = W(
8967
8975
  /* @__PURE__ */ new WeakMap()
8968
8976
  ), Tn = (b) => {
8969
- var Z;
8977
+ var Y;
8970
8978
  const R = y.kitColumns.get(b);
8971
8979
  if (!R) return { hiddenByPrivacy: !1 };
8972
8980
  const P = Hr(R, w);
8973
- if (((Z = R.filter) == null ? void 0 : Z.kind) !== "select" || P)
8981
+ if (((Y = R.filter) == null ? void 0 : Y.kind) !== "select" || P)
8974
8982
  return { hiddenByPrivacy: P };
8975
8983
  const T = re.getCoreRowModel().flatRows;
8976
8984
  let K = Ue.current.get(T);
8977
8985
  K || (K = /* @__PURE__ */ new Map(), Ue.current.set(T, K));
8978
8986
  let q = K.get(b);
8979
8987
  return q || (q = Vl(R, T, p, o), K.set(b, q)), { hiddenByPrivacy: P, filterOptions: q };
8980
- }, Oe = W(null), ht = W(null), on = {
8988
+ }, Oe = W(null), ht = W(null), rn = {
8981
8989
  store: V,
8982
8990
  model: y,
8983
8991
  selection: pt,
@@ -8989,11 +8997,11 @@ function Op(e) {
8989
8997
  expandMode: O,
8990
8998
  fixedLayout: At,
8991
8999
  getEffectiveVisibility: () => os({
8992
- ...Mn,
9000
+ ...On,
8993
9001
  explicit: V.get("columnVisibility")
8994
9002
  }),
8995
9003
  getPageCount: Dt,
8996
- getRowCount: en,
9004
+ getRowCount: tn,
8997
9005
  getRowIds: () => re.getRowsInDisplayOrder().map((b) => b.id),
8998
9006
  canExpand: (b) => {
8999
9007
  const R = L.get(b);
@@ -9016,12 +9024,12 @@ function Op(e) {
9016
9024
  getBindings: () => Oe.current,
9017
9025
  getExportSnapshot: le,
9018
9026
  getColumnToolbarInfo: Tn
9019
- }, We = W(on);
9020
- We.current = on;
9027
+ }, We = W(rn);
9028
+ We.current = rn;
9021
9029
  const [zt] = oe(
9022
9030
  () => ns(() => We.current, "api")
9023
9031
  ), [st] = oe(
9024
- () => Ip({
9032
+ () => Fp({
9025
9033
  userHandle: ns(() => We.current, "user"),
9026
9034
  getExportSnapshot: () => We.current.getExportSnapshot(),
9027
9035
  getFilterLabel: (b) => {
@@ -9047,20 +9055,20 @@ function Op(e) {
9047
9055
  if (!m) {
9048
9056
  const K = re.getFilteredRowModel(), q = Se.current;
9049
9057
  if (K !== q.model) {
9050
- const Z = K.rows.map((Q) => Q.id).join("\0");
9051
- T = q.key !== null && Z !== q.key, Se.current = { model: K, key: Z };
9058
+ const Y = K.rows.map((Q) => Q.id).join("\0");
9059
+ T = q.key !== null && Y !== q.key, Se.current = { model: K, key: Y };
9052
9060
  }
9053
9061
  }
9054
9062
  (P || T) && V.notify({ event: "rows", source: "host" }), Ge.current = { rows: s, rowCount: g, mounted: !0 };
9055
9063
  }), ue(() => {
9056
9064
  if (!$) return;
9057
9065
  const b = f;
9058
- Sp(b, V);
9066
+ yp(b, V);
9059
9067
  const R = Ut.current.filter(
9060
- (T) => Ep.includes(T)
9068
+ (T) => Mp.includes(T)
9061
9069
  );
9062
9070
  Ut.current = [], V.announceSeeded(R, "storage");
9063
- const P = yp({
9071
+ const P = vp({
9064
9072
  gridId: b,
9065
9073
  store: V,
9066
9074
  isDefault: () => {
@@ -9124,8 +9132,8 @@ function Op(e) {
9124
9132
  bindRenderer: Lo
9125
9133
  };
9126
9134
  }
9127
- const Pp = 8, Dp = 44;
9128
- function kp({
9135
+ const Dp = 8, kp = 44;
9136
+ function Ap({
9129
9137
  enabled: e,
9130
9138
  count: t,
9131
9139
  getScrollElement: n,
@@ -9137,11 +9145,11 @@ function kp({
9137
9145
  const l = W(null), a = de((w) => {
9138
9146
  const F = Ga(w), I = l.current;
9139
9147
  return I === null || I >= w.count || F.includes(I) ? F : [...F, I].sort((M, D) => M - D);
9140
- }, []), c = r ?? Dp, u = La({
9148
+ }, []), c = r ?? kp, u = La({
9141
9149
  count: e ? t : 0,
9142
9150
  getScrollElement: n,
9143
9151
  estimateSize: () => c,
9144
- overscan: Pp,
9152
+ overscan: Dp,
9145
9153
  getItemKey: (w) => o(w),
9146
9154
  scrollMargin: i,
9147
9155
  scrollPaddingStart: i,
@@ -9199,7 +9207,7 @@ function is({
9199
9207
  }) {
9200
9208
  return /* @__PURE__ */ C(Ma.Provider, { value: e, children: /* @__PURE__ */ C(Oa.Provider, { value: null, children: t }) });
9201
9209
  }
9202
- function Ap(e, t) {
9210
+ function zp(e, t) {
9203
9211
  const n = [];
9204
9212
  for (const o of e)
9205
9213
  n.push({ kind: "row", key: o.id, row: o }), t && o.getIsExpanded() && n.push({ kind: "detail", key: `${o.id}:detail`, row: o });
@@ -9211,11 +9219,11 @@ function Ql(e, t) {
9211
9219
  for (const o of e.subRows) n += Ql(o, t);
9212
9220
  return n;
9213
9221
  }
9214
- function zp(e, t) {
9222
+ function Vp(e, t) {
9215
9223
  var n, o, r;
9216
9224
  return e === "select" || e === "expand" ? "utility" : t ? ((n = t.filter) == null ? void 0 : n.kind) === "dateRange" || t.sort === "date" ? "date" : ((o = t.filter) == null ? void 0 : o.kind) === "number" || t.sort === "number" || ((r = t.edit) == null ? void 0 : r.kind) === "number" || t.align === "end" ? "number" : "text" : "text";
9217
9225
  }
9218
- function Vp(e) {
9226
+ function Tp(e) {
9219
9227
  Fe() && console.warn(`[DataGrid] ${e}`);
9220
9228
  }
9221
9229
  function nr() {
@@ -9233,7 +9241,7 @@ function nr() {
9233
9241
  i(), typeof ResizeObserver == "function" && (n.current = new ResizeObserver(i), n.current.observe(r));
9234
9242
  }, []), e];
9235
9243
  }
9236
- function Tp(e, t) {
9244
+ function Gp(e, t) {
9237
9245
  const {
9238
9246
  /* today's props */
9239
9247
  columns: n,
@@ -9281,30 +9289,30 @@ function Tp(e, t) {
9281
9289
  columnResizing: Re = !1,
9282
9290
  columnVisibility: ze,
9283
9291
  defaultColumnVisibility: Ke,
9284
- onColumnVisibilityChange: yn,
9285
- columnPinning: vn,
9292
+ onColumnVisibilityChange: vn,
9293
+ columnPinning: Cn,
9286
9294
  defaultColumnPinning: Ut,
9287
9295
  onColumnPinningChange: V,
9288
9296
  columnSizing: ko,
9289
- defaultColumnSizing: Cn,
9297
+ defaultColumnSizing: Rn,
9290
9298
  onColumnSizingChange: ft,
9291
- columnOrder: Rn,
9299
+ columnOrder: _n,
9292
9300
  defaultColumnOrder: Wt,
9293
- onColumnOrderChange: _n,
9294
- responsiveColumns: xn,
9301
+ onColumnOrderChange: xn,
9302
+ responsiveColumns: In,
9295
9303
  /* expanding */
9296
- getSubRows: In,
9304
+ getSubRows: Fn,
9297
9305
  renderDetail: Ve,
9298
- getRowCanExpand: Fn,
9299
- expanded: En,
9300
- defaultExpanded: Mn,
9306
+ getRowCanExpand: En,
9307
+ expanded: Mn,
9308
+ defaultExpanded: On,
9301
9309
  onExpandedChange: Te,
9302
9310
  expandMode: Qt,
9303
9311
  /* editing and names */
9304
9312
  isRowReadOnly: Xt,
9305
9313
  getRowGroupStart: Ao,
9306
9314
  readOnly: Pt = !1,
9307
- getRowLabel: On,
9315
+ getRowLabel: Pn,
9308
9316
  rowLabelPrivacySafe: zo,
9309
9317
  hostTextPrivacySafe: Zt,
9310
9318
  /* states */
@@ -9314,36 +9322,36 @@ function Tp(e, t) {
9314
9322
  /* chrome */
9315
9323
  toolbar: Yt,
9316
9324
  density: me = "default",
9317
- height: Pn = "auto",
9318
- virtualization: Jt = "auto",
9325
+ height: Jt = "auto",
9326
+ virtualization: en = "auto",
9319
9327
  privacyMode: mt = !1,
9320
9328
  /* DOM */
9321
9329
  className: Dn,
9322
9330
  style: To,
9323
9331
  "aria-label": kn,
9324
9332
  "aria-labelledby": re,
9325
- "aria-describedby": en,
9333
+ "aria-describedby": tn,
9326
9334
  ...Dt
9327
- } = e, { t: tt } = fe("ui"), qe = ss(), kt = `${qe}-caption`, pt = W(null), nt = W(null), ot = W(null), tn = ne(
9335
+ } = e, { t: tt } = fe("ui"), qe = ss(), kt = `${qe}-caption`, pt = W(null), nt = W(null), ot = W(null), nn = ne(
9328
9336
  () => ui(pt, nt),
9329
9337
  []
9330
- ), An = Na(pt), { printing: rt, print: nn } = Um(nt), [Go, zn] = oe(null), [At, Vn] = oe(
9338
+ ), An = Na(pt), { printing: rt, print: on } = Wm(nt), [Go, zn] = oe(null), [At, Vn] = oe(
9331
9339
  null
9332
9340
  );
9333
9341
  Ze(() => {
9334
9342
  const x = pt.current;
9335
9343
  if (!x || typeof ResizeObserver != "function") return;
9336
9344
  const k = () => {
9337
- const ee = Math.round(x.getBoundingClientRect().width);
9345
+ const te = Math.round(x.getBoundingClientRect().width);
9338
9346
  Vn(
9339
- (X) => X === ee || ee === 0 ? X : ee
9347
+ (X) => X === te || te === 0 ? X : te
9340
9348
  );
9341
9349
  };
9342
9350
  k();
9343
9351
  const B = new ResizeObserver(k);
9344
9352
  return B.observe(x), () => B.disconnect();
9345
9353
  }, []);
9346
- const Ee = Op({
9354
+ const Ee = Pp({
9347
9355
  columns: n,
9348
9356
  rows: o,
9349
9357
  getRowId: r,
@@ -9380,31 +9388,31 @@ function Tp(e, t) {
9380
9388
  columnResizing: Re,
9381
9389
  columnVisibility: ze,
9382
9390
  defaultColumnVisibility: Ke,
9383
- onColumnVisibilityChange: yn,
9384
- columnPinning: vn,
9391
+ onColumnVisibilityChange: vn,
9392
+ columnPinning: Cn,
9385
9393
  defaultColumnPinning: Ut,
9386
9394
  onColumnPinningChange: V,
9387
9395
  columnSizing: ko,
9388
- defaultColumnSizing: Cn,
9396
+ defaultColumnSizing: Rn,
9389
9397
  onColumnSizingChange: ft,
9390
- columnOrder: Rn,
9398
+ columnOrder: _n,
9391
9399
  defaultColumnOrder: Wt,
9392
- onColumnOrderChange: _n,
9393
- responsiveColumns: xn,
9394
- getSubRows: In,
9400
+ onColumnOrderChange: xn,
9401
+ responsiveColumns: In,
9402
+ getSubRows: Fn,
9395
9403
  renderDetail: Ve,
9396
- getRowCanExpand: Fn,
9397
- expanded: En,
9398
- defaultExpanded: Mn,
9404
+ getRowCanExpand: En,
9405
+ expanded: Mn,
9406
+ defaultExpanded: On,
9399
9407
  onExpandedChange: Te,
9400
9408
  expandMode: Qt,
9401
9409
  isRowReadOnly: Xt,
9402
9410
  getRowGroupStart: Ao,
9403
- getRowLabel: On,
9411
+ getRowLabel: Pn,
9404
9412
  rowLabelPrivacySafe: zo,
9405
9413
  hostTextPrivacySafe: Zt,
9406
9414
  status: gt,
9407
- virtualization: Jt,
9415
+ virtualization: en,
9408
9416
  privacyMode: mt,
9409
9417
  direction: An,
9410
9418
  containerInlineSize: At,
@@ -9413,11 +9421,11 @@ function Tp(e, t) {
9413
9421
  caption: i
9414
9422
  }), { table: Me, store: it, handle: le, toolbarSeam: Ue, selection: Tn, layout: Oe } = Ee, ht = Me.options.meta;
9415
9423
  da(t, () => le, [le]), fa(
9416
- Rm,
9424
+ _m,
9417
9425
  a ? le : null,
9418
9426
  a ? s : void 0
9419
9427
  );
9420
- const on = a ? s : void 0, We = Pt === !1 ? null : typeof Pt == "object" && Pt.reason && (!mt || Zt) ? Pt.reason : tt("dataGrid.readOnly.reason", "Unavailable while the table is busy"), zt = Fa();
9428
+ const rn = a ? s : void 0, We = Pt === !1 ? null : typeof Pt == "object" && Pt.reason && (!mt || Zt) ? Pt.reason : tt("dataGrid.readOnly.reason", "Unavailable while the table is busy"), zt = Fa();
9421
9429
  Ze(() => zt == null ? void 0 : zt.register(le), [zt, le]), ue(
9422
9430
  () => Ea(le, Ue),
9423
9431
  [le, Ue]
@@ -9436,12 +9444,12 @@ function Tp(e, t) {
9436
9444
  });
9437
9445
  }, []), P = W(null), T = de(
9438
9446
  (x, k) => {
9439
- var ee, X;
9447
+ var te, X;
9440
9448
  P.current === null && typeof ResizeObserver == "function" && (P.current = new ResizeObserver(
9441
9449
  () => wr(R)
9442
9450
  ));
9443
9451
  const B = wt.current.get(x);
9444
- B && B !== k && ((ee = P.current) == null || ee.unobserve(B)), k ? (wt.current.set(x, k), (X = P.current) == null || X.observe(k)) : wt.current.delete(x);
9452
+ B && B !== k && ((te = P.current) == null || te.unobserve(B)), k ? (wt.current.set(x, k), (X = P.current) == null || X.observe(k)) : wt.current.delete(x);
9445
9453
  },
9446
9454
  [R]
9447
9455
  );
@@ -9454,23 +9462,23 @@ function Tp(e, t) {
9454
9462
  ), Ze(() => {
9455
9463
  R();
9456
9464
  });
9457
- const K = st.map((x) => x.id).join("|"), q = Ge.map((x) => x.id).join("|"), Z = ne(() => {
9465
+ const K = st.map((x) => x.id).join("|"), q = Ge.map((x) => x.id).join("|"), Y = ne(() => {
9458
9466
  const x = /* @__PURE__ */ new Map();
9459
9467
  let k = 0;
9460
- st.forEach((B, ee) => {
9468
+ st.forEach((B, te) => {
9461
9469
  x.set(B.id, {
9462
- pin: ee === 0 ? "start" : "startOffset",
9463
- divider: ee === st.length - 1 ? "end" : "none",
9464
- offset: ee === 0 ? null : k
9470
+ pin: te === 0 ? "start" : "startOffset",
9471
+ divider: te === st.length - 1 ? "end" : "none",
9472
+ offset: te === 0 ? null : k
9465
9473
  }), k += lt[B.id] ?? 0;
9466
9474
  }), k = 0;
9467
9475
  for (let B = Ge.length - 1; B >= 0; B -= 1) {
9468
- const ee = Ge[B], X = B === Ge.length - 1;
9469
- x.set(ee.id, {
9476
+ const te = Ge[B], X = B === Ge.length - 1;
9477
+ x.set(te.id, {
9470
9478
  pin: X ? "end" : "endOffset",
9471
9479
  divider: B === 0 ? "start" : "none",
9472
9480
  offset: X ? null : k
9473
- }), k += lt[ee.id] ?? 0;
9481
+ }), k += lt[te.id] ?? 0;
9474
9482
  }
9475
9483
  return x;
9476
9484
  }, [K, q, lt]), Q = st.reduce(
@@ -9481,16 +9489,16 @@ function Tp(e, t) {
9481
9489
  0
9482
9490
  ), Le = st.length + Ge.length > 0, xe = ne(() => {
9483
9491
  var k, B;
9484
- const x = Se.filter((ee) => xt(ee) === "data");
9485
- return ((k = x.find((ee) => {
9492
+ const x = Se.filter((te) => xt(te) === "data");
9493
+ return ((k = x.find((te) => {
9486
9494
  var X;
9487
- return (X = ee.columnDef.meta) == null ? void 0 : X.isRowHeader;
9495
+ return (X = te.columnDef.meta) == null ? void 0 : X.isRowHeader;
9488
9496
  })) == null ? void 0 : k.id) ?? ((B = x[0]) == null ? void 0 : B.id) ?? null;
9489
- }, [Se.map((x) => x.id).join("|")]), rn = Ve !== void 0, qr = Me.getRowModel().rows, Ie = Ap(qr, rn), Gn = /* @__PURE__ */ new Map();
9497
+ }, [Se.map((x) => x.id).join("|")]), sn = Ve !== void 0, qr = Me.getRowModel().rows, Ie = zp(qr, sn), Gn = /* @__PURE__ */ new Map();
9490
9498
  Ie.forEach((x, k) => {
9491
9499
  x.kind === "row" && Gn.set(x.row.id, k);
9492
9500
  });
9493
- const at = Jt !== "off" && !rt && Ie.length > gs, Ur = Oe.fixed || at, [Wr, No] = nr(), [Xl, Ho] = nr(), [Zl, Qr] = nr(), Xr = W(null), Yl = ne(
9501
+ const at = en !== "off" && !rt && Ie.length > gs, Ur = Oe.fixed || at, [Wr, No] = nr(), [Xl, Ho] = nr(), [Zl, Qr] = nr(), Xr = W(null), Yl = ne(
9494
9502
  () => ui(Xr, Wr),
9495
9503
  [Wr]
9496
9504
  ), [Zr, Yr] = oe(null);
@@ -9502,7 +9510,7 @@ function Tp(e, t) {
9502
9510
  const x = (B = ot.current) == null ? void 0 : B.querySelector("tr[data-row-id]"), k = x ? Math.round(x.getBoundingClientRect().height) : 0;
9503
9511
  k > 0 && Yr(k);
9504
9512
  });
9505
- const Ne = kp({
9513
+ const Ne = Ap({
9506
9514
  enabled: at,
9507
9515
  count: Ie.length,
9508
9516
  getScrollElement: () => nt.current,
@@ -9520,14 +9528,14 @@ function Tp(e, t) {
9520
9528
  const x = nt.current;
9521
9529
  if (!at || !x || x.clientHeight === 0 || x.scrollHeight <= x.clientHeight + 1) return;
9522
9530
  const k = window.getComputedStyle(x);
9523
- k.maxHeight === "none" && k.height === `${x.scrollHeight}px` && Vp(
9531
+ k.maxHeight === "none" && k.height === `${x.scrollHeight}px` && Tp(
9524
9532
  'virtualising in an unbounded scroller: give the grid a bounded block size (height="fill" in a flex column, or a max-block-size class).'
9525
9533
  );
9526
9534
  }, [at]);
9527
- const Qe = Me.getHeaderGroups().length, sn = !!G && !(rt && c === "client"), Jr = at || c === "server" || sn, jo = Ie.length === 0, Vt = gt !== "error" && !jo, { pageIndex: Ln, pageSize: ln } = it.get("page"), He = ne(() => {
9535
+ const Qe = Me.getHeaderGroups().length, ln = !!G && !(rt && c === "client"), Jr = at || c === "server" || ln, jo = Ie.length === 0, Vt = gt !== "error" && !jo, { pageIndex: Ln, pageSize: an } = it.get("page"), He = ne(() => {
9528
9536
  if (!Jr || !Vt) return null;
9529
9537
  if (c === "server") {
9530
- const X = Ie.filter((Xe) => Xe.kind === "detail").length, ae = le.getRowCount(), he = Qe + Ln * ln;
9538
+ const X = Ie.filter((Xe) => Xe.kind === "detail").length, ae = le.getRowCount(), he = Qe + Ln * an;
9531
9539
  return {
9532
9540
  rowCount: ae < 0 ? -1 : Qe + ae + X + (Oe.hasFooter ? 1 : 0),
9533
9541
  rowIndexOf: (Xe) => he + Xe + 1,
@@ -9536,10 +9544,10 @@ function Tp(e, t) {
9536
9544
  }
9537
9545
  const x = Me.getPrePaginatedRowModel().rows;
9538
9546
  let k = 0, B = 0;
9539
- const ee = sn ? Ln * ln : 0;
9547
+ const te = ln ? Ln * an : 0;
9540
9548
  return x.forEach((X, ae) => {
9541
- const he = Ql(X, rn);
9542
- B += he, ae < ee && (k += he);
9549
+ const he = Ql(X, sn);
9550
+ B += he, ae < te && (k += he);
9543
9551
  }), {
9544
9552
  rowCount: Qe + B + (Oe.hasFooter ? 1 : 0),
9545
9553
  rowIndexOf: (X) => Qe + k + X + 1,
@@ -9552,10 +9560,10 @@ function Tp(e, t) {
9552
9560
  Ie,
9553
9561
  Qe,
9554
9562
  Ln,
9555
- ln,
9563
+ an,
9556
9564
  Oe.hasFooter,
9565
+ ln,
9557
9566
  sn,
9558
- rn,
9559
9567
  u
9560
9568
  ]), Nn = {
9561
9569
  indexesWith: (x) => Ie.flatMap((k, B) => k.kind !== "row" ? [] : x === "select" ? Tn.getSelectability(k.row.id).state !== "none" ? [B] : [] : k.row.getCanExpand() ? [B] : []),
@@ -9567,13 +9575,13 @@ function Tp(e, t) {
9567
9575
  reveal: (x) => {
9568
9576
  Ne.setFocusedIndex(x), Ne.scrollToIndex(x);
9569
9577
  }
9570
- }, an = W([]);
9571
- an.current = Se.map((x) => x.id);
9578
+ }, cn = W([]);
9579
+ cn.current = Se.map((x) => x.id);
9572
9580
  const Jl = de((x) => {
9573
- const k = x === null ? null : an.current[x] ?? null;
9581
+ const k = x === null ? null : cn.current[x] ?? null;
9574
9582
  zn((B) => B === k ? B : k);
9575
9583
  }, []);
9576
- lm({
9584
+ am({
9577
9585
  bodyRef: ot,
9578
9586
  scrollRef: nt,
9579
9587
  navigation: Nn,
@@ -9583,42 +9591,42 @@ function Tp(e, t) {
9583
9591
  const $o = W({
9584
9592
  items: Ie,
9585
9593
  indexById: Gn,
9586
- visibleIds: an,
9594
+ visibleIds: cn,
9587
9595
  virtual: Ne,
9588
9596
  navigation: Nn
9589
9597
  });
9590
9598
  $o.current = {
9591
9599
  items: Ie,
9592
9600
  indexById: Gn,
9593
- visibleIds: an,
9601
+ visibleIds: cn,
9594
9602
  virtual: Ne,
9595
9603
  navigation: Nn
9596
9604
  }, ue(
9597
9605
  () => Ee.bindRenderer({
9598
- print: nn,
9606
+ print: on,
9599
9607
  scrollToRow: (x) => {
9600
9608
  var he;
9601
- const { indexById: k, virtual: B } = $o.current, ee = k.get(x);
9602
- if (ee === void 0) return;
9609
+ const { indexById: k, virtual: B } = $o.current, te = k.get(x);
9610
+ if (te === void 0) return;
9603
9611
  if (B.enabled) {
9604
- B.scrollToIndex(ee);
9612
+ B.scrollToIndex(te);
9605
9613
  return;
9606
9614
  }
9607
9615
  const X = ot.current, ae = X ? jr(X, x) : null;
9608
9616
  (he = ae == null ? void 0 : ae.scrollIntoView) == null || he.call(ae, { block: "nearest", inline: "nearest" });
9609
9617
  },
9610
9618
  focusRow: (x, k) => {
9611
- const B = ot.current, { indexById: ee, navigation: X, visibleIds: ae } = $o.current, he = ee.get(x);
9619
+ const B = ot.current, { indexById: te, navigation: X, visibleIds: ae } = $o.current, he = te.get(x);
9612
9620
  if (!B || he === void 0) return;
9613
9621
  const Xe = () => {
9614
9622
  for (const $n of jl(B)) {
9615
9623
  if ($n.dataset.rowId !== x) continue;
9616
- const ai = k !== void 0 ? ae.current.indexOf(k) : -1, Bo = ai >= 0 ? $n.children[ai] : null, un = (Bo == null ? void 0 : Bo.querySelector(
9624
+ const ai = k !== void 0 ? ae.current.indexOf(k) : -1, Bo = ai >= 0 ? $n.children[ai] : null, dn = (Bo == null ? void 0 : Bo.querySelector(
9617
9625
  'button:not([disabled]), input:not([disabled]), textarea, a[href], [tabindex]:not([tabindex="-1"])'
9618
9626
  )) ?? $n.querySelector(
9619
9627
  '[data-dg-control="select"]:not([disabled])'
9620
9628
  ) ?? $n.querySelector(':scope > th[scope="row"]');
9621
- return un && (un.tagName === "TH" && !un.hasAttribute("tabindex") && un.setAttribute("tabindex", "-1"), un.focus()), !0;
9629
+ return dn && (dn.tagName === "TH" && !dn.hasAttribute("tabindex") && dn.setAttribute("tabindex", "-1"), dn.focus()), !0;
9622
9630
  }
9623
9631
  return !1;
9624
9632
  };
@@ -9627,7 +9635,7 @@ function Tp(e, t) {
9627
9635
  ));
9628
9636
  }
9629
9637
  }),
9630
- [Ee, nn]
9638
+ [Ee, on]
9631
9639
  );
9632
9640
  const Tt = le.getFeatures(), ea = Tt.sorting || Tt.filtering || Tt.quickFilter || Tt.pagination || Tt.expansion || Tt.columnResizing || v !== "none" || e.status !== void 0, ta = sc({
9633
9641
  handle: le,
@@ -9650,9 +9658,9 @@ function Tp(e, t) {
9650
9658
  direction: An,
9651
9659
  privacyMode: mt,
9652
9660
  hostTextPrivacySafe: Zt ?? !1,
9653
- pins: Z,
9661
+ pins: Y,
9654
9662
  visibleColumns: Se,
9655
- visibleColumnsKey: an.current.join("|"),
9663
+ visibleColumnsKey: cn.current.join("|"),
9656
9664
  latest: ei,
9657
9665
  rowHeaderColumnId: xe,
9658
9666
  renderDetail: Ve,
@@ -9661,7 +9669,7 @@ function Tp(e, t) {
9661
9669
  Ze(() => {
9662
9670
  ei.current = Hn;
9663
9671
  });
9664
- const cn = gt === "loading";
9672
+ const un = gt === "loading";
9665
9673
  let jn = null;
9666
9674
  gt === "error" ? jn = /* @__PURE__ */ C(
9667
9675
  es,
@@ -9671,10 +9679,10 @@ function Tp(e, t) {
9671
9679
  error: et,
9672
9680
  onClearFilters: () => Ue.clearAllFilters()
9673
9681
  }
9674
- ) : jo && cn ? jn = /* @__PURE__ */ C(
9675
- Wm,
9682
+ ) : jo && un ? jn = /* @__PURE__ */ C(
9683
+ Qm,
9676
9684
  {
9677
- rowCount: sn ? Math.min(ln, 10) : 5,
9685
+ rowCount: ln ? Math.min(an, 10) : 5,
9678
9686
  columnCount: Se.length,
9679
9687
  density: me
9680
9688
  }
@@ -9694,16 +9702,16 @@ function Tp(e, t) {
9694
9702
  var k;
9695
9703
  const x = [];
9696
9704
  for (const B of Se) {
9697
- const ee = ((k = B.columnDef.meta) == null ? void 0 : k.groupId) ?? null, X = x[x.length - 1];
9698
- X && X.groupId === ee ? X.columns.push(B) : x.push({ groupId: ee, columns: [B] });
9705
+ const te = ((k = B.columnDef.meta) == null ? void 0 : k.groupId) ?? null, X = x[x.length - 1];
9706
+ X && X.groupId === te ? X.columns.push(B) : x.push({ groupId: te, columns: [B] });
9699
9707
  }
9700
- return x.map((B, ee) => /* @__PURE__ */ C("colgroup", { children: B.columns.map((X) => {
9708
+ return x.map((B, te) => /* @__PURE__ */ C("colgroup", { children: B.columns.map((X) => {
9701
9709
  const ae = xt(X), he = Ee.kitColumns.get(X.id), Xe = ae === "data" && ((he == null ? void 0 : he.size) !== void 0 || oa[X.id] !== void 0);
9702
9710
  return /* @__PURE__ */ C(
9703
9711
  "col",
9704
9712
  {
9705
- className: Gg({
9706
- kind: Xe ? "sized" : zp(ae, he)
9713
+ className: Lg({
9714
+ kind: Xe ? "sized" : Vp(ae, he)
9707
9715
  }),
9708
9716
  style: Xe ? {
9709
9717
  "--dg-col-size": `${Math.round(X.getSize())}px`
@@ -9711,24 +9719,24 @@ function Tp(e, t) {
9711
9719
  },
9712
9720
  X.id
9713
9721
  );
9714
- }) }, `${B.groupId ?? "run"}-${ee}`));
9722
+ }) }, `${B.groupId ?? "run"}-${te}`));
9715
9723
  })() : null, oi = W(null);
9716
9724
  Ze(() => {
9717
9725
  const x = Xr.current, k = Qe > 1 ? (x == null ? void 0 : x.querySelector("tr")) ?? null : null;
9718
9726
  k !== oi.current && (oi.current = k, Zl(k));
9719
9727
  });
9720
- const ri = /* @__PURE__ */ te(
9728
+ const ri = /* @__PURE__ */ ee(
9721
9729
  "table",
9722
9730
  {
9723
- className: Tg({ fixed: Ur }),
9724
- "aria-busy": cn || void 0,
9731
+ className: Gg({ fixed: Ur }),
9732
+ "aria-busy": un || void 0,
9725
9733
  "aria-rowcount": He == null ? void 0 : He.rowCount,
9726
9734
  "aria-describedby": na || void 0,
9727
9735
  children: [
9728
9736
  /* @__PURE__ */ C("caption", { id: kt, className: "ds:sr-only", children: i }),
9729
9737
  ra,
9730
9738
  /* @__PURE__ */ C(
9731
- Km,
9739
+ qm,
9732
9740
  {
9733
9741
  model: Hn,
9734
9742
  headRef: Yl,
@@ -9737,7 +9745,7 @@ function Tp(e, t) {
9737
9745
  }
9738
9746
  ),
9739
9747
  /* @__PURE__ */ C(
9740
- wm,
9748
+ bm,
9741
9749
  {
9742
9750
  model: Hn,
9743
9751
  bodyRef: ot,
@@ -9750,13 +9758,13 @@ function Tp(e, t) {
9750
9758
  columnCount: Se.length,
9751
9759
  ariaRowIndexOf: (x) => He == null ? void 0 : He.rowIndexOf(x),
9752
9760
  onKeyDown: (x) => {
9753
- ot.current && sm(x, Nn);
9761
+ ot.current && lm(x, Nn);
9754
9762
  },
9755
9763
  stateRows: jn
9756
9764
  }
9757
9765
  ),
9758
9766
  Oe.hasFooter && Vt ? /* @__PURE__ */ C(
9759
- _m,
9767
+ xm,
9760
9768
  {
9761
9769
  model: Hn,
9762
9770
  footRef: Xl,
@@ -9766,7 +9774,7 @@ function Tp(e, t) {
9766
9774
  ) : null
9767
9775
  ]
9768
9776
  }
9769
- ), ii = /* @__PURE__ */ te(ve, { children: [
9777
+ ), ii = /* @__PURE__ */ ee(ve, { children: [
9770
9778
  ti ? /* @__PURE__ */ C("span", { hidden: !0, id: `${qe}-hint-sort`, children: tt("dataGrid.hint.multiSort") }) : null,
9771
9779
  ni ? /* @__PURE__ */ C("span", { hidden: !0, id: `${qe}-hint-range`, children: tt("dataGrid.hint.rangeSelection") }) : null,
9772
9780
  ea ? /* @__PURE__ */ C(lc, { message: ta }) : null
@@ -9777,94 +9785,96 @@ function Tp(e, t) {
9777
9785
  [le, Ue]
9778
9786
  );
9779
9787
  if (!(Yt !== void 0 || !!G))
9780
- return /* @__PURE__ */ C(is, { value: li, children: /* @__PURE__ */ te(
9788
+ return /* @__PURE__ */ C(is, { value: li, children: /* @__PURE__ */ ee(
9781
9789
  di,
9782
9790
  {
9783
- ref: tn,
9791
+ ref: nn,
9784
9792
  type: "native",
9785
9793
  orientation: "both",
9786
9794
  role: "group",
9787
9795
  "aria-labelledby": re ?? kt,
9788
9796
  "aria-label": kn,
9789
- "aria-describedby": en,
9797
+ "aria-describedby": tn,
9790
9798
  "data-component": "data-grid",
9791
- "data-component-id": on,
9799
+ "data-component-id": rn,
9792
9800
  className: Ui({
9793
9801
  chrome: !1,
9794
9802
  pinned: Le,
9795
- height: Pn,
9803
+ height: Jt,
9796
9804
  className: Dn
9797
9805
  }),
9798
9806
  style: si,
9799
9807
  ...Dt,
9800
9808
  children: [
9801
- cn && Vt ? /* @__PURE__ */ C("div", { className: Vg(), children: /* @__PURE__ */ C(ro, { size: "sm", label: tt("dataTable.loading") }) }) : null,
9809
+ un && Vt ? /* @__PURE__ */ C("div", { className: Tg(), children: /* @__PURE__ */ C(ro, { size: "sm", label: tt("dataTable.loading") }) }) : null,
9802
9810
  ri,
9803
9811
  ii
9804
9812
  ]
9805
9813
  }
9806
9814
  ) });
9807
9815
  const Gt = typeof G == "object" ? G : void 0, ia = qr.filter((x) => x.depth === 0).length;
9808
- return /* @__PURE__ */ C(is, { value: li, children: /* @__PURE__ */ te(
9816
+ return /* @__PURE__ */ C(is, { value: li, children: /* @__PURE__ */ ee(
9809
9817
  "div",
9810
9818
  {
9811
9819
  ref: pt,
9812
9820
  "data-component": "data-grid",
9813
- "data-component-id": on,
9814
- className: Ag({ height: Pn, className: Dn }),
9821
+ "data-component-id": rn,
9822
+ className: Ag({ height: Jt, className: Dn }),
9815
9823
  style: si,
9816
9824
  ...Dt,
9817
9825
  children: [
9818
9826
  Yt !== void 0 ? /* @__PURE__ */ C("div", { className: dr({ slot: "toolbar" }), children: Yt }) : null,
9819
- /* @__PURE__ */ C(
9820
- di,
9821
- {
9822
- ref: nt,
9823
- type: "native",
9824
- orientation: "both",
9825
- role: "group",
9826
- "aria-labelledby": re ?? kt,
9827
- "aria-label": kn,
9828
- "aria-describedby": en,
9829
- className: Ui({ chrome: !0, pinned: Le }),
9830
- children: ri
9831
- }
9832
- ),
9833
- sn ? /* @__PURE__ */ C(
9834
- qm,
9835
- {
9836
- caption: i,
9837
- pageIndex: Ln,
9838
- pageSize: ln,
9839
- pageCount: le.getPageCount(),
9840
- rowCount: le.getRowCount(),
9841
- pageRowCount: ia,
9842
- pageSizeOptions: (Gt == null ? void 0 : Gt.pageSizeOptions) ?? Ha,
9843
- showEndpoints: (Gt == null ? void 0 : Gt.showEndpoints) ?? !1,
9844
- loading: cn && Vt,
9845
- onPageChange: (x) => it.write(
9846
- "page",
9847
- (k) => ({ ...k, pageIndex: x }),
9848
- "user"
9849
- ),
9850
- onPageSizeChange: (x) => it.write("page", { pageIndex: 0, pageSize: x }, "user")
9851
- }
9852
- ) : cn && Vt ? /* @__PURE__ */ C("div", { className: dr({ slot: "pager" }), children: /* @__PURE__ */ C(ro, { size: "sm", label: tt("dataTable.loading") }) }) : null,
9853
- ii
9827
+ /* @__PURE__ */ ee("div", { "data-slot": "data-grid-card", className: zg({ height: Jt }), children: [
9828
+ /* @__PURE__ */ C(
9829
+ di,
9830
+ {
9831
+ ref: nt,
9832
+ type: "native",
9833
+ orientation: "both",
9834
+ role: "group",
9835
+ "aria-labelledby": re ?? kt,
9836
+ "aria-label": kn,
9837
+ "aria-describedby": tn,
9838
+ className: Ui({ chrome: !0, pinned: Le }),
9839
+ children: ri
9840
+ }
9841
+ ),
9842
+ ln ? /* @__PURE__ */ C(
9843
+ Um,
9844
+ {
9845
+ caption: i,
9846
+ pageIndex: Ln,
9847
+ pageSize: an,
9848
+ pageCount: le.getPageCount(),
9849
+ rowCount: le.getRowCount(),
9850
+ pageRowCount: ia,
9851
+ pageSizeOptions: (Gt == null ? void 0 : Gt.pageSizeOptions) ?? Ha,
9852
+ showEndpoints: (Gt == null ? void 0 : Gt.showEndpoints) ?? !1,
9853
+ loading: un && Vt,
9854
+ onPageChange: (x) => it.write(
9855
+ "page",
9856
+ (k) => ({ ...k, pageIndex: x }),
9857
+ "user"
9858
+ ),
9859
+ onPageSizeChange: (x) => it.write("page", { pageIndex: 0, pageSize: x }, "user")
9860
+ }
9861
+ ) : un && Vt ? /* @__PURE__ */ C("div", { className: dr({ slot: "pager" }), children: /* @__PURE__ */ C(ro, { size: "sm", label: tt("dataTable.loading") }) }) : null,
9862
+ ii
9863
+ ] })
9854
9864
  ]
9855
9865
  }
9856
9866
  ) });
9857
9867
  }
9858
- const Gp = ua(Tp);
9859
- Gp.displayName = "DataGrid";
9868
+ const Lp = ua(Gp);
9869
+ Lp.displayName = "DataGrid";
9860
9870
  export {
9861
9871
  hi as D,
9862
9872
  ja as a,
9863
9873
  Ha as b,
9864
9874
  $a as c,
9865
9875
  gs as d,
9866
- Gp as e,
9867
- Rm as f,
9868
- xh as g
9876
+ Lp as e,
9877
+ _m as f,
9878
+ Ih as g
9869
9879
  };
9870
- //# sourceMappingURL=data-grid-CujX-2tF.js.map
9880
+ //# sourceMappingURL=data-grid-CkzbCZSo.js.map