@commercetools/nimbus 0.0.0-canary-20250826065101 → 0.0.0-canary-20250826133439

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 (89) hide show
  1. package/dist/chunks/DatePicker-5cKqpUC9.cjs.js +2 -0
  2. package/dist/chunks/{DatePicker-BQ6EfAU2.cjs.js.map → DatePicker-5cKqpUC9.cjs.js.map} +1 -1
  3. package/dist/chunks/{DatePicker-ByWwypbW.es.js → DatePicker-8Z6Kf838.es.js} +17 -18
  4. package/dist/chunks/{DatePicker-ByWwypbW.es.js.map → DatePicker-8Z6Kf838.es.js.map} +1 -1
  5. package/dist/chunks/{Dialog-DNPIKkGE.es.js → Dialog-C7IjW1jR.es.js} +24 -25
  6. package/dist/chunks/{Dialog-DNPIKkGE.es.js.map → Dialog-C7IjW1jR.es.js.map} +1 -1
  7. package/dist/chunks/Dialog-Cbq66gyc.cjs.js +2 -0
  8. package/dist/chunks/{Dialog-B4OIDU7t.cjs.js.map → Dialog-Cbq66gyc.cjs.js.map} +1 -1
  9. package/dist/chunks/OverlayArrow-C5Ymp9MC.cjs.js +2 -0
  10. package/dist/chunks/OverlayArrow-C5Ymp9MC.cjs.js.map +1 -0
  11. package/dist/chunks/OverlayArrow-ERS8ZqL3.es.js +479 -0
  12. package/dist/chunks/OverlayArrow-ERS8ZqL3.es.js.map +1 -0
  13. package/dist/chunks/combobox-CFH0OaAM.cjs.js +2 -0
  14. package/dist/chunks/{combobox-BYyNTj5m.cjs.js.map → combobox-CFH0OaAM.cjs.js.map} +1 -1
  15. package/dist/chunks/{combobox-qA8TjWPw.es.js → combobox-CkVqkKdA.es.js} +14 -15
  16. package/dist/chunks/{combobox-qA8TjWPw.es.js.map → combobox-CkVqkKdA.es.js.map} +1 -1
  17. package/dist/chunks/data-table-DIXPr3ke.cjs.js +2 -0
  18. package/dist/chunks/{data-table-D6qEg2qp.cjs.js.map → data-table-DIXPr3ke.cjs.js.map} +1 -1
  19. package/dist/chunks/{data-table-D7Gq4ZYT.es.js → data-table-cBq9JXG7.es.js} +1606 -1476
  20. package/dist/chunks/{data-table-D7Gq4ZYT.es.js.map → data-table-cBq9JXG7.es.js.map} +1 -1
  21. package/dist/chunks/{date-picker-COI-tlHx.es.js → date-picker-Bx2J-sPg.es.js} +3 -3
  22. package/dist/chunks/{date-picker-COI-tlHx.es.js.map → date-picker-Bx2J-sPg.es.js.map} +1 -1
  23. package/dist/chunks/{date-picker-RC0pSYZe.cjs.js → date-picker-UEQeFHA8.cjs.js} +2 -2
  24. package/dist/chunks/{date-picker-RC0pSYZe.cjs.js.map → date-picker-UEQeFHA8.cjs.js.map} +1 -1
  25. package/dist/chunks/{date-range-picker-BnI3m8z-.es.js → date-range-picker-DvaRIy3T.es.js} +3 -3
  26. package/dist/chunks/{date-range-picker-BnI3m8z-.es.js.map → date-range-picker-DvaRIy3T.es.js.map} +1 -1
  27. package/dist/chunks/{date-range-picker-BMAaQ7cS.cjs.js → date-range-picker-Dx1nE1Br.cjs.js} +2 -2
  28. package/dist/chunks/{date-range-picker-BMAaQ7cS.cjs.js.map → date-range-picker-Dx1nE1Br.cjs.js.map} +1 -1
  29. package/dist/chunks/{form-field-B6lCvcf4.cjs.js → form-field-DiW_0hSy.cjs.js} +2 -2
  30. package/dist/chunks/{form-field-B6lCvcf4.cjs.js.map → form-field-DiW_0hSy.cjs.js.map} +1 -1
  31. package/dist/chunks/{form-field-BgKHtyTH.es.js → form-field-Do0NhI0D.es.js} +2 -2
  32. package/dist/chunks/{form-field-BgKHtyTH.es.js.map → form-field-Do0NhI0D.es.js.map} +1 -1
  33. package/dist/chunks/{password-input-XSc2MhLG.es.js → password-input-BT594v5p.es.js} +2 -2
  34. package/dist/chunks/{password-input-XSc2MhLG.es.js.map → password-input-BT594v5p.es.js.map} +1 -1
  35. package/dist/chunks/{password-input--fYkZAW3.cjs.js → password-input-D1LSzb9p.cjs.js} +2 -2
  36. package/dist/chunks/{password-input--fYkZAW3.cjs.js.map → password-input-D1LSzb9p.cjs.js.map} +1 -1
  37. package/dist/chunks/select-BnN5zaBu.cjs.js +2 -0
  38. package/dist/chunks/{select-CxIiux8H.cjs.js.map → select-BnN5zaBu.cjs.js.map} +1 -1
  39. package/dist/chunks/{select-CMZAeYTf.es.js → select-Cr0CSahh.es.js} +12 -13
  40. package/dist/chunks/{select-CMZAeYTf.es.js.map → select-Cr0CSahh.es.js.map} +1 -1
  41. package/dist/chunks/{split-button-BZHi7r1E.es.js → split-button-DhYWuU3x.es.js} +2 -2
  42. package/dist/chunks/{split-button-BZHi7r1E.es.js.map → split-button-DhYWuU3x.es.js.map} +1 -1
  43. package/dist/chunks/{split-button-hRYYvfbx.cjs.js → split-button-DrujRAqS.cjs.js} +2 -2
  44. package/dist/chunks/{split-button-hRYYvfbx.cjs.js.map → split-button-DrujRAqS.cjs.js.map} +1 -1
  45. package/dist/chunks/{tooltip-BLyAAnK-.es.js → tooltip-BOK0Uejw.es.js} +2 -2
  46. package/dist/chunks/{tooltip-BLyAAnK-.es.js.map → tooltip-BOK0Uejw.es.js.map} +1 -1
  47. package/dist/chunks/{tooltip-tZKuAv4E.cjs.js → tooltip-DjUjwciC.cjs.js} +2 -2
  48. package/dist/chunks/{tooltip-tZKuAv4E.cjs.js.map → tooltip-DjUjwciC.cjs.js.map} +1 -1
  49. package/dist/components/combobox.cjs +1 -1
  50. package/dist/components/combobox.es.js +1 -1
  51. package/dist/components/components.cjs +1 -1
  52. package/dist/components/components.es.js +9 -9
  53. package/dist/components/data-table.cjs +1 -1
  54. package/dist/components/data-table.es.js +1 -1
  55. package/dist/components/date-picker.cjs +1 -1
  56. package/dist/components/date-picker.es.js +1 -1
  57. package/dist/components/date-range-picker.cjs +1 -1
  58. package/dist/components/date-range-picker.es.js +1 -1
  59. package/dist/components/form-field.cjs +1 -1
  60. package/dist/components/form-field.es.js +1 -1
  61. package/dist/components/password-input.cjs +1 -1
  62. package/dist/components/password-input.es.js +1 -1
  63. package/dist/components/popover.cjs +1 -1
  64. package/dist/components/popover.es.js +1 -1
  65. package/dist/components/select.cjs +1 -1
  66. package/dist/components/select.es.js +1 -1
  67. package/dist/components/split-button.cjs +1 -1
  68. package/dist/components/split-button.es.js +1 -1
  69. package/dist/components/tooltip.cjs +1 -1
  70. package/dist/components/tooltip.es.js +1 -1
  71. package/dist/components.d.ts +6 -0
  72. package/dist/data-table.d.ts +6 -0
  73. package/dist/index.cjs +1 -1
  74. package/dist/index.d.ts +6 -0
  75. package/dist/index.es.js +9 -9
  76. package/package.json +5 -5
  77. package/dist/chunks/DatePicker-BQ6EfAU2.cjs.js +0 -2
  78. package/dist/chunks/Dialog-B4OIDU7t.cjs.js +0 -2
  79. package/dist/chunks/OverlayArrow-BD-oGsXg.es.js +0 -452
  80. package/dist/chunks/OverlayArrow-BD-oGsXg.es.js.map +0 -1
  81. package/dist/chunks/OverlayArrow-aq8OInch.cjs.js +0 -2
  82. package/dist/chunks/OverlayArrow-aq8OInch.cjs.js.map +0 -1
  83. package/dist/chunks/combobox-BYyNTj5m.cjs.js +0 -2
  84. package/dist/chunks/data-table-D6qEg2qp.cjs.js +0 -2
  85. package/dist/chunks/select-CxIiux8H.cjs.js +0 -2
  86. package/dist/chunks/useResizeObserver-Dx-vDLiW.cjs.js +0 -2
  87. package/dist/chunks/useResizeObserver-Dx-vDLiW.cjs.js.map +0 -1
  88. package/dist/chunks/useResizeObserver-FIPBIG5S.es.js +0 -32
  89. package/dist/chunks/useResizeObserver-FIPBIG5S.es.js.map +0 -1
@@ -1,152 +1,154 @@
1
- import { jsx as w, jsxs as ne, Fragment as dl } from "react/jsx-runtime";
2
- import C, { useRef as M, useMemo as N, useCallback as L, useEffect as oe, useState as Z, forwardRef as Y, createContext as re, useContext as B, Fragment as cl } from "react";
3
- import { $ as lt } from "./Button-C-yUWwZg.es.js";
4
- import { $ as nt } from "./RSPContexts-B4yvXuBR.es.js";
5
- import { m as I, w as _, x as J, y as De, z as fl, l as pl, $ as ot, a as rt, c as hl, b as ml, e as Ne, d as it, g as ge, f as gl, A as bl, h as G, u as at, B as vl, C as Ge, i as yl } from "./Collection-DFZhstai.es.js";
6
- import { $ as $l, a as ee, d as Se, g as qe, f as xl } from "./utils-BkdW_cdL.es.js";
7
- import { $ as de, a as Dl, b as Cl, c as wl, d as ko, e as So } from "./DragAndDrop-ChYb3tCX.es.js";
8
- import { $ as kl } from "./intlStrings-Cd44R5hT.es.js";
9
- import { d as me, a as Ee, $ as W, e as Sl, c as Ze } from "./mergeProps-B_9syxhT.es.js";
10
- import { $ as q } from "./filterDOMProps-BSVCO5jK.es.js";
11
- import { $ as ie } from "./useObjectRef-CaJ5pgjX.es.js";
12
- import { $ as El } from "./useResizeObserver-FIPBIG5S.es.js";
13
- import { c as ae, $ as ue, a as Te, d as zl } from "./scrollIntoView-BYF_8_6g.es.js";
14
- import Al from "react-dom";
15
- import { $ as be } from "./useHover-cJOf02TT.es.js";
16
- import { d as Qe } from "./platform-Z5fvtFmM.es.js";
17
- import { a as Bl, b as Rl, $ as ut } from "./usePress-BquTSwUd.es.js";
18
- import { $ as Kl, c as Pl } from "./useFocusable-BghVNiQU.es.js";
19
- import { $ as Ml, f as Nl } from "./useFocusVisible-C5ivHvqm.es.js";
20
- import { $ as X } from "./focusSafely-Di2ArC9L.es.js";
21
- import { b as Je, a as Tl } from "./FocusScope-C1Aw7j9H.es.js";
22
- import { $ as ce } from "./context-Pt-0ojuK.es.js";
23
- import { $ as fe } from "./useLocalizedStringFormatter-CvzOUusg.es.js";
24
- import { $ as se } from "./useFocusRing-D8cwV0EM.es.js";
25
- import { $ as Fl } from "./useGlobalListeners-BOOfV5Wh.es.js";
26
- import { a as ze, $ as Il } from "./VisuallyHidden-C38kRNm0.es.js";
27
- import { e as Wl } from "./openLink-Ctl0AdAy.es.js";
28
- import { m as we } from "./utils-Gg3iiYhl.es.js";
29
- import { $ as Hl, a as Vl, b as jl, c as Ol } from "./useHighlightSelectionDescription-DAR8wV79.es.js";
30
- import { $ as Ll } from "./LiveAnnouncer-CsPyaceH.es.js";
31
- import { $ as st } from "./useCollator-BvjDbml1.es.js";
32
- import { $ as Ul } from "./useUpdateEffect-CCDx8D4X.es.js";
33
- import { B as ke } from "./box-C8731OYq.es.js";
34
- import { defineSlotRecipe as Yl, createSlotRecipeContext as Xl, mergeRefs as Gl } from "@chakra-ui/react";
35
- import { C as dt } from "./checkbox-B2yJgtOJ.es.js";
36
- import { KeyboardArrowDown as ql, KeyboardArrowRight as Zl, ArrowDownward as Ql } from "@commercetools/nimbus-icons";
37
- import { c as Jl } from "./create-recipe-context-i2odau3L.es.js";
38
- import { D as _l } from "./divider-CpctZ_-U.es.js";
39
- import { F as en } from "./flex-B81RbgfK.es.js";
40
- function tn(t) {
1
+ import { jsx as D, jsxs as ie, Fragment as yl } from "react/jsx-runtime";
2
+ import k, { useRef as M, useMemo as N, useCallback as V, useEffect as se, useState as Z, forwardRef as X, createContext as de, useContext as R, Fragment as $l } from "react";
3
+ import { $ as ct } from "./Button-C-yUWwZg.es.js";
4
+ import { $ as ft } from "./RSPContexts-B4yvXuBR.es.js";
5
+ import { m as I, w as oe, x as ne, y as ze, z as xl, l as wl, $ as pt, a as ht, c as Dl, b as Cl, e as We, d as mt, g as De, f as Sl, A as kl, h as Q, u as gt, B as El, C as tt, i as zl } from "./Collection-DFZhstai.es.js";
6
+ import { $ as Rl, a as re, d as Ae, g as lt, f as Al } from "./utils-BkdW_cdL.es.js";
7
+ import { $ as ge, a as Bl, b as Pl, c as Kl, d as No, e as To } from "./DragAndDrop-ChYb3tCX.es.js";
8
+ import { $ as Ml } from "./intlStrings-Cd44R5hT.es.js";
9
+ import { d as xe, a as Be, $ as H, e as Nl, c as nt } from "./mergeProps-B_9syxhT.es.js";
10
+ import { $ as J } from "./filterDOMProps-BSVCO5jK.es.js";
11
+ import { $ as ce } from "./useObjectRef-CaJ5pgjX.es.js";
12
+ import { a as Tl } from "./OverlayArrow-ERS8ZqL3.es.js";
13
+ import { c as fe, $ as pe, a as He, d as Fl } from "./scrollIntoView-BYF_8_6g.es.js";
14
+ import Il from "react-dom";
15
+ import { $ as Ce } from "./useHover-cJOf02TT.es.js";
16
+ import { d as ot } from "./platform-Z5fvtFmM.es.js";
17
+ import { a as Wl, b as Hl, $ as bt } from "./usePress-BquTSwUd.es.js";
18
+ import { $ as Vl, c as jl } from "./useFocusable-BghVNiQU.es.js";
19
+ import { $ as Ol, f as Ll } from "./useFocusVisible-C5ivHvqm.es.js";
20
+ import { $ as q } from "./focusSafely-Di2ArC9L.es.js";
21
+ import { b as it, a as Ul } from "./FocusScope-C1Aw7j9H.es.js";
22
+ import { $ as be } from "./context-Pt-0ojuK.es.js";
23
+ import { $ as ve } from "./useLocalizedStringFormatter-CvzOUusg.es.js";
24
+ import { $ as me } from "./useFocusRing-D8cwV0EM.es.js";
25
+ import { $ as Yl } from "./useGlobalListeners-BOOfV5Wh.es.js";
26
+ import { a as Pe, $ as rt } from "./VisuallyHidden-C38kRNm0.es.js";
27
+ import { e as Xl } from "./openLink-Ctl0AdAy.es.js";
28
+ import { m as Re } from "./utils-Gg3iiYhl.es.js";
29
+ import { $ as Gl, a as ql, b as Zl, c as Ql } from "./useHighlightSelectionDescription-DAR8wV79.es.js";
30
+ import { $ as Jl } from "./LiveAnnouncer-CsPyaceH.es.js";
31
+ import { $ as vt } from "./useCollator-BvjDbml1.es.js";
32
+ import { $ as _l } from "./useUpdateEffect-CCDx8D4X.es.js";
33
+ import { B as we } from "./box-C8731OYq.es.js";
34
+ import { defineSlotRecipe as en, createSlotRecipeContext as tn, mergeRefs as ln } from "@chakra-ui/react";
35
+ import { I as nn } from "./icon-button-D2qU4Eun.es.js";
36
+ import { b as at } from "./tooltip-BOK0Uejw.es.js";
37
+ import { C as yt } from "./checkbox-B2yJgtOJ.es.js";
38
+ import { KeyboardArrowDown as on, KeyboardArrowRight as rn, PushPin as an, ArrowDownward as un } from "@commercetools/nimbus-icons";
39
+ import { c as sn } from "./create-recipe-context-i2odau3L.es.js";
40
+ import { D as dn } from "./divider-CpctZ_-U.es.js";
41
+ import { F as cn } from "./flex-B81RbgfK.es.js";
42
+ function fn(t) {
41
43
  let { onMoveStart: e, onMove: l, onMoveEnd: n } = t, o = M({
42
44
  didMove: !1,
43
45
  lastPosition: null,
44
46
  id: null
45
- }), { addGlobalListener: r, removeGlobalListener: i } = Fl(), u = me((c, a, p, f) => {
47
+ }), { addGlobalListener: i, removeGlobalListener: r } = Yl(), u = xe((d, s, p, f) => {
46
48
  p === 0 && f === 0 || (o.current.didMove || (o.current.didMove = !0, e?.({
47
49
  type: "movestart",
48
- pointerType: a,
49
- shiftKey: c.shiftKey,
50
- metaKey: c.metaKey,
51
- ctrlKey: c.ctrlKey,
52
- altKey: c.altKey
50
+ pointerType: s,
51
+ shiftKey: d.shiftKey,
52
+ metaKey: d.metaKey,
53
+ ctrlKey: d.ctrlKey,
54
+ altKey: d.altKey
53
55
  })), l?.({
54
56
  type: "move",
55
- pointerType: a,
57
+ pointerType: s,
56
58
  deltaX: p,
57
59
  deltaY: f,
58
- shiftKey: c.shiftKey,
59
- metaKey: c.metaKey,
60
- ctrlKey: c.ctrlKey,
61
- altKey: c.altKey
60
+ shiftKey: d.shiftKey,
61
+ metaKey: d.metaKey,
62
+ ctrlKey: d.ctrlKey,
63
+ altKey: d.altKey
62
64
  }));
63
- }), s = me((c, a) => {
64
- Bl(), o.current.didMove && n?.({
65
+ }), c = xe((d, s) => {
66
+ Wl(), o.current.didMove && n?.({
65
67
  type: "moveend",
66
- pointerType: a,
67
- shiftKey: c.shiftKey,
68
- metaKey: c.metaKey,
69
- ctrlKey: c.ctrlKey,
70
- altKey: c.altKey
68
+ pointerType: s,
69
+ shiftKey: d.shiftKey,
70
+ metaKey: d.metaKey,
71
+ ctrlKey: d.ctrlKey,
72
+ altKey: d.altKey
71
73
  });
72
74
  });
73
75
  return {
74
76
  moveProps: N(() => {
75
- let c = {}, a = () => {
76
- Rl(), o.current.didMove = !1;
77
+ let d = {}, s = () => {
78
+ Hl(), o.current.didMove = !1;
77
79
  };
78
80
  if (typeof PointerEvent > "u" && process.env.NODE_ENV === "test") {
79
- let f = (m) => {
80
- if (m.button === 0) {
81
- var x, g, $, y;
82
- u(m, "mouse", m.pageX - (($ = (x = o.current.lastPosition) === null || x === void 0 ? void 0 : x.pageX) !== null && $ !== void 0 ? $ : 0), m.pageY - ((y = (g = o.current.lastPosition) === null || g === void 0 ? void 0 : g.pageY) !== null && y !== void 0 ? y : 0)), o.current.lastPosition = {
83
- pageX: m.pageX,
84
- pageY: m.pageY
81
+ let f = (v) => {
82
+ if (v.button === 0) {
83
+ var x, m, $, b;
84
+ u(v, "mouse", v.pageX - (($ = (x = o.current.lastPosition) === null || x === void 0 ? void 0 : x.pageX) !== null && $ !== void 0 ? $ : 0), v.pageY - ((b = (m = o.current.lastPosition) === null || m === void 0 ? void 0 : m.pageY) !== null && b !== void 0 ? b : 0)), o.current.lastPosition = {
85
+ pageX: v.pageX,
86
+ pageY: v.pageY
85
87
  };
86
88
  }
87
- }, h = (m) => {
88
- m.button === 0 && (s(m, "mouse"), i(window, "mousemove", f, !1), i(window, "mouseup", h, !1));
89
+ }, h = (v) => {
90
+ v.button === 0 && (c(v, "mouse"), r(window, "mousemove", f, !1), r(window, "mouseup", h, !1));
89
91
  };
90
- c.onMouseDown = (m) => {
91
- m.button === 0 && (a(), m.stopPropagation(), m.preventDefault(), o.current.lastPosition = {
92
- pageX: m.pageX,
93
- pageY: m.pageY
94
- }, r(window, "mousemove", f, !1), r(window, "mouseup", h, !1));
92
+ d.onMouseDown = (v) => {
93
+ v.button === 0 && (s(), v.stopPropagation(), v.preventDefault(), o.current.lastPosition = {
94
+ pageX: v.pageX,
95
+ pageY: v.pageY
96
+ }, i(window, "mousemove", f, !1), i(window, "mouseup", h, !1));
95
97
  };
96
- let b = (m) => {
98
+ let g = (v) => {
97
99
  let x = [
98
- ...m.changedTouches
99
- ].findIndex(({ identifier: k }) => k === o.current.id);
100
+ ...v.changedTouches
101
+ ].findIndex(({ identifier: C }) => C === o.current.id);
100
102
  if (x >= 0) {
101
- var g, $;
102
- let { pageX: k, pageY: K } = m.changedTouches[x];
103
- var y, D;
104
- u(m, "touch", k - ((y = (g = o.current.lastPosition) === null || g === void 0 ? void 0 : g.pageX) !== null && y !== void 0 ? y : 0), K - ((D = ($ = o.current.lastPosition) === null || $ === void 0 ? void 0 : $.pageY) !== null && D !== void 0 ? D : 0)), o.current.lastPosition = {
105
- pageX: k,
106
- pageY: K
103
+ var m, $;
104
+ let { pageX: C, pageY: B } = v.changedTouches[x];
105
+ var b, w;
106
+ u(v, "touch", C - ((b = (m = o.current.lastPosition) === null || m === void 0 ? void 0 : m.pageX) !== null && b !== void 0 ? b : 0), B - ((w = ($ = o.current.lastPosition) === null || $ === void 0 ? void 0 : $.pageY) !== null && w !== void 0 ? w : 0)), o.current.lastPosition = {
107
+ pageX: C,
108
+ pageY: B
107
109
  };
108
110
  }
109
- }, v = (m) => {
111
+ }, y = (v) => {
110
112
  [
111
- ...m.changedTouches
112
- ].findIndex(({ identifier: g }) => g === o.current.id) >= 0 && (s(m, "touch"), o.current.id = null, i(window, "touchmove", b), i(window, "touchend", v), i(window, "touchcancel", v));
113
+ ...v.changedTouches
114
+ ].findIndex(({ identifier: m }) => m === o.current.id) >= 0 && (c(v, "touch"), o.current.id = null, r(window, "touchmove", g), r(window, "touchend", y), r(window, "touchcancel", y));
113
115
  };
114
- c.onTouchStart = (m) => {
115
- if (m.changedTouches.length === 0 || o.current.id != null) return;
116
- let { pageX: x, pageY: g, identifier: $ } = m.changedTouches[0];
117
- a(), m.stopPropagation(), m.preventDefault(), o.current.lastPosition = {
116
+ d.onTouchStart = (v) => {
117
+ if (v.changedTouches.length === 0 || o.current.id != null) return;
118
+ let { pageX: x, pageY: m, identifier: $ } = v.changedTouches[0];
119
+ s(), v.stopPropagation(), v.preventDefault(), o.current.lastPosition = {
118
120
  pageX: x,
119
- pageY: g
120
- }, o.current.id = $, r(window, "touchmove", b, !1), r(window, "touchend", v, !1), r(window, "touchcancel", v, !1);
121
+ pageY: m
122
+ }, o.current.id = $, i(window, "touchmove", g, !1), i(window, "touchend", y, !1), i(window, "touchcancel", y, !1);
121
123
  };
122
124
  } else {
123
- let f = (b) => {
124
- if (b.pointerId === o.current.id) {
125
- var v, m;
126
- let $ = b.pointerType || "mouse";
127
- var x, g;
128
- u(b, $, b.pageX - ((x = (v = o.current.lastPosition) === null || v === void 0 ? void 0 : v.pageX) !== null && x !== void 0 ? x : 0), b.pageY - ((g = (m = o.current.lastPosition) === null || m === void 0 ? void 0 : m.pageY) !== null && g !== void 0 ? g : 0)), o.current.lastPosition = {
129
- pageX: b.pageX,
130
- pageY: b.pageY
125
+ let f = (g) => {
126
+ if (g.pointerId === o.current.id) {
127
+ var y, v;
128
+ let $ = g.pointerType || "mouse";
129
+ var x, m;
130
+ u(g, $, g.pageX - ((x = (y = o.current.lastPosition) === null || y === void 0 ? void 0 : y.pageX) !== null && x !== void 0 ? x : 0), g.pageY - ((m = (v = o.current.lastPosition) === null || v === void 0 ? void 0 : v.pageY) !== null && m !== void 0 ? m : 0)), o.current.lastPosition = {
131
+ pageX: g.pageX,
132
+ pageY: g.pageY
131
133
  };
132
134
  }
133
- }, h = (b) => {
134
- if (b.pointerId === o.current.id) {
135
- let v = b.pointerType || "mouse";
136
- s(b, v), o.current.id = null, i(window, "pointermove", f, !1), i(window, "pointerup", h, !1), i(window, "pointercancel", h, !1);
135
+ }, h = (g) => {
136
+ if (g.pointerId === o.current.id) {
137
+ let y = g.pointerType || "mouse";
138
+ c(g, y), o.current.id = null, r(window, "pointermove", f, !1), r(window, "pointerup", h, !1), r(window, "pointercancel", h, !1);
137
139
  }
138
140
  };
139
- c.onPointerDown = (b) => {
140
- b.button === 0 && o.current.id == null && (a(), b.stopPropagation(), b.preventDefault(), o.current.lastPosition = {
141
- pageX: b.pageX,
142
- pageY: b.pageY
143
- }, o.current.id = b.pointerId, r(window, "pointermove", f, !1), r(window, "pointerup", h, !1), r(window, "pointercancel", h, !1));
141
+ d.onPointerDown = (g) => {
142
+ g.button === 0 && o.current.id == null && (s(), g.stopPropagation(), g.preventDefault(), o.current.lastPosition = {
143
+ pageX: g.pageX,
144
+ pageY: g.pageY
145
+ }, o.current.id = g.pointerId, i(window, "pointermove", f, !1), i(window, "pointerup", h, !1), i(window, "pointercancel", h, !1));
144
146
  };
145
147
  }
146
- let p = (f, h, b) => {
147
- a(), u(f, "keyboard", h, b), s(f, "keyboard");
148
+ let p = (f, h, g) => {
149
+ s(), u(f, "keyboard", h, g), c(f, "keyboard");
148
150
  };
149
- return c.onKeyDown = (f) => {
151
+ return d.onKeyDown = (f) => {
150
152
  switch (f.key) {
151
153
  case "Left":
152
154
  case "ArrowLeft":
@@ -165,17 +167,17 @@ function tn(t) {
165
167
  f.preventDefault(), f.stopPropagation(), p(f, 0, 1);
166
168
  break;
167
169
  }
168
- }, c;
170
+ }, d;
169
171
  }, [
170
172
  o,
171
- r,
172
173
  i,
174
+ r,
173
175
  u,
174
- s
176
+ c
175
177
  ])
176
178
  };
177
179
  }
178
- class ct {
180
+ class $t {
179
181
  isCell(e) {
180
182
  return e.type === "cell";
181
183
  }
@@ -212,11 +214,11 @@ class ct {
212
214
  if (!n) return null;
213
215
  let o = 0;
214
216
  for (let u of I(n, this.collection)) {
215
- var r;
216
- if (u.colSpan && u.colSpan + o > l) return (r = u.key) !== null && r !== void 0 ? r : null;
217
- u.colSpan && (o = o + u.colSpan - 1);
218
217
  var i;
219
- if (o === l) return (i = u.key) !== null && i !== void 0 ? i : null;
218
+ if (u.colSpan && u.colSpan + o > l) return (i = u.key) !== null && i !== void 0 ? i : null;
219
+ u.colSpan && (o = o + u.colSpan - 1);
220
+ var r;
221
+ if (o === l) return (r = u.key) !== null && r !== void 0 ? r : null;
220
222
  o++;
221
223
  }
222
224
  return null;
@@ -226,10 +228,10 @@ class ct {
226
228
  if (!n) return null;
227
229
  var o;
228
230
  if (this.isCell(n) && (l = (o = n.parentKey) !== null && o !== void 0 ? o : null), l == null) return null;
229
- if (l = this.findNextKey(l, (r) => r.type === "item"), l != null) {
231
+ if (l = this.findNextKey(l, (i) => i.type === "item"), l != null) {
230
232
  if (this.isCell(n)) {
231
- let r = n.colIndex ? n.colIndex : n.index;
232
- return this.getKeyForItemInRowByIndex(l, r);
233
+ let i = n.colIndex ? n.colIndex : n.index;
234
+ return this.getKeyForItemInRowByIndex(l, i);
233
235
  }
234
236
  if (this.focusMode === "row") return l;
235
237
  }
@@ -240,10 +242,10 @@ class ct {
240
242
  if (!n) return null;
241
243
  var o;
242
244
  if (this.isCell(n) && (l = (o = n.parentKey) !== null && o !== void 0 ? o : null), l == null) return null;
243
- if (l = this.findPreviousKey(l, (r) => r.type === "item"), l != null) {
245
+ if (l = this.findPreviousKey(l, (i) => i.type === "item"), l != null) {
244
246
  if (this.isCell(n)) {
245
- let r = n.colIndex ? n.colIndex : n.index;
246
- return this.getKeyForItemInRowByIndex(l, r);
247
+ let i = n.colIndex ? n.colIndex : n.index;
248
+ return this.getKeyForItemInRowByIndex(l, i);
247
249
  }
248
250
  if (this.focusMode === "row") return l;
249
251
  }
@@ -254,22 +256,22 @@ class ct {
254
256
  if (!l) return null;
255
257
  if (this.isRow(l)) {
256
258
  var n, o;
257
- let c = I(l, this.collection);
258
- var r;
259
- return (r = this.direction === "rtl" ? (n = _(c)) === null || n === void 0 ? void 0 : n.key : (o = J(c)) === null || o === void 0 ? void 0 : o.key) !== null && r !== void 0 ? r : null;
259
+ let d = I(l, this.collection);
260
+ var i;
261
+ return (i = this.direction === "rtl" ? (n = oe(d)) === null || n === void 0 ? void 0 : n.key : (o = ne(d)) === null || o === void 0 ? void 0 : o.key) !== null && i !== void 0 ? i : null;
260
262
  }
261
263
  if (this.isCell(l) && l.parentKey != null) {
262
- let c = this.collection.getItem(l.parentKey);
263
- if (!c) return null;
264
- let a = I(c, this.collection);
265
- var i;
266
- let p = (i = this.direction === "rtl" ? De(a, l.index - 1) : De(a, l.index + 1)) !== null && i !== void 0 ? i : null;
264
+ let d = this.collection.getItem(l.parentKey);
265
+ if (!d) return null;
266
+ let s = I(d, this.collection);
267
+ var r;
268
+ let p = (r = this.direction === "rtl" ? ze(s, l.index - 1) : ze(s, l.index + 1)) !== null && r !== void 0 ? r : null;
267
269
  var u;
268
270
  if (p) return (u = p.key) !== null && u !== void 0 ? u : null;
269
- var s;
270
- if (this.focusMode === "row") return (s = l.parentKey) !== null && s !== void 0 ? s : null;
271
- var d;
272
- return (d = this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e)) !== null && d !== void 0 ? d : null;
271
+ var c;
272
+ if (this.focusMode === "row") return (c = l.parentKey) !== null && c !== void 0 ? c : null;
273
+ var a;
274
+ return (a = this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e)) !== null && a !== void 0 ? a : null;
273
275
  }
274
276
  return null;
275
277
  }
@@ -278,22 +280,22 @@ class ct {
278
280
  if (!l) return null;
279
281
  if (this.isRow(l)) {
280
282
  var n, o;
281
- let c = I(l, this.collection);
282
- var r;
283
- return (r = this.direction === "rtl" ? (n = J(c)) === null || n === void 0 ? void 0 : n.key : (o = _(c)) === null || o === void 0 ? void 0 : o.key) !== null && r !== void 0 ? r : null;
283
+ let d = I(l, this.collection);
284
+ var i;
285
+ return (i = this.direction === "rtl" ? (n = ne(d)) === null || n === void 0 ? void 0 : n.key : (o = oe(d)) === null || o === void 0 ? void 0 : o.key) !== null && i !== void 0 ? i : null;
284
286
  }
285
287
  if (this.isCell(l) && l.parentKey != null) {
286
- let c = this.collection.getItem(l.parentKey);
287
- if (!c) return null;
288
- let a = I(c, this.collection);
289
- var i;
290
- let p = (i = this.direction === "rtl" ? De(a, l.index + 1) : De(a, l.index - 1)) !== null && i !== void 0 ? i : null;
288
+ let d = this.collection.getItem(l.parentKey);
289
+ if (!d) return null;
290
+ let s = I(d, this.collection);
291
+ var r;
292
+ let p = (r = this.direction === "rtl" ? ze(s, l.index + 1) : ze(s, l.index - 1)) !== null && r !== void 0 ? r : null;
291
293
  var u;
292
294
  if (p) return (u = p.key) !== null && u !== void 0 ? u : null;
293
- var s;
294
- if (this.focusMode === "row") return (s = l.parentKey) !== null && s !== void 0 ? s : null;
295
- var d;
296
- return (d = this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e)) !== null && d !== void 0 ? d : null;
295
+ var c;
296
+ if (this.focusMode === "row") return (c = l.parentKey) !== null && c !== void 0 ? c : null;
297
+ var a;
298
+ return (a = this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e)) !== null && a !== void 0 ? a : null;
297
299
  }
298
300
  return null;
299
301
  }
@@ -302,19 +304,19 @@ class ct {
302
304
  if (n != null) {
303
305
  if (o = this.collection.getItem(n), !o) return null;
304
306
  if (this.isCell(o) && !l && o.parentKey != null) {
305
- var r;
306
- let d = this.collection.getItem(o.parentKey);
307
- if (!d) return null;
308
307
  var i;
309
- return (i = (r = J(I(d, this.collection))) === null || r === void 0 ? void 0 : r.key) !== null && i !== void 0 ? i : null;
308
+ let a = this.collection.getItem(o.parentKey);
309
+ if (!a) return null;
310
+ var r;
311
+ return (r = (i = ne(I(a, this.collection))) === null || i === void 0 ? void 0 : i.key) !== null && r !== void 0 ? r : null;
310
312
  }
311
313
  }
312
- if (n = this.findNextKey(void 0, (d) => d.type === "item"), n != null && (o && this.isCell(o) && l || this.focusMode === "cell")) {
314
+ if (n = this.findNextKey(void 0, (a) => a.type === "item"), n != null && (o && this.isCell(o) && l || this.focusMode === "cell")) {
313
315
  var u;
314
- let d = this.collection.getItem(n);
315
- if (!d) return null;
316
- var s;
317
- n = (s = (u = J(I(d, this.collection))) === null || u === void 0 ? void 0 : u.key) !== null && s !== void 0 ? s : null;
316
+ let a = this.collection.getItem(n);
317
+ if (!a) return null;
318
+ var c;
319
+ n = (c = (u = ne(I(a, this.collection))) === null || u === void 0 ? void 0 : u.key) !== null && c !== void 0 ? c : null;
318
320
  }
319
321
  return n;
320
322
  }
@@ -323,21 +325,21 @@ class ct {
323
325
  if (n != null) {
324
326
  if (o = this.collection.getItem(n), !o) return null;
325
327
  if (this.isCell(o) && !l && o.parentKey != null) {
326
- var r;
327
- let d = this.collection.getItem(o.parentKey);
328
- if (!d) return null;
329
- let c = I(d, this.collection);
330
328
  var i;
331
- return (i = (r = _(c)) === null || r === void 0 ? void 0 : r.key) !== null && i !== void 0 ? i : null;
329
+ let a = this.collection.getItem(o.parentKey);
330
+ if (!a) return null;
331
+ let d = I(a, this.collection);
332
+ var r;
333
+ return (r = (i = oe(d)) === null || i === void 0 ? void 0 : i.key) !== null && r !== void 0 ? r : null;
332
334
  }
333
335
  }
334
- if (n = this.findPreviousKey(void 0, (d) => d.type === "item"), n != null && (o && this.isCell(o) && l || this.focusMode === "cell")) {
336
+ if (n = this.findPreviousKey(void 0, (a) => a.type === "item"), n != null && (o && this.isCell(o) && l || this.focusMode === "cell")) {
335
337
  var u;
336
- let d = this.collection.getItem(n);
337
- if (!d) return null;
338
- let c = I(d, this.collection);
339
- var s;
340
- n = (s = (u = _(c)) === null || u === void 0 ? void 0 : u.key) !== null && s !== void 0 ? s : null;
338
+ let a = this.collection.getItem(n);
339
+ if (!a) return null;
340
+ let d = I(a, this.collection);
341
+ var c;
342
+ n = (c = (u = oe(d)) === null || u === void 0 ? void 0 : u.key) !== null && c !== void 0 ? c : null;
341
343
  }
342
344
  return n;
343
345
  }
@@ -346,8 +348,8 @@ class ct {
346
348
  if (!n) return null;
347
349
  let o = Math.max(0, n.y + n.height - this.layoutDelegate.getVisibleRect().height);
348
350
  for (; n && n.y > o && l != null; ) {
349
- var r;
350
- if (l = (r = this.getKeyAbove(l)) !== null && r !== void 0 ? r : null, l == null) break;
351
+ var i;
352
+ if (l = (i = this.getKeyAbove(l)) !== null && i !== void 0 ? i : null, l == null) break;
351
353
  n = this.layoutDelegate.getItemRect(l);
352
354
  }
353
355
  return l;
@@ -355,11 +357,11 @@ class ct {
355
357
  getKeyPageBelow(e) {
356
358
  let l = e, n = this.layoutDelegate.getItemRect(l);
357
359
  if (!n) return null;
358
- let o = this.layoutDelegate.getVisibleRect().height, r = Math.min(this.layoutDelegate.getContentSize().height, n.y + o);
359
- for (; n && n.y + n.height < r; ) {
360
- let i = this.getKeyBelow(l);
361
- if (i == null) break;
362
- n = this.layoutDelegate.getItemRect(i), l = i;
360
+ let o = this.layoutDelegate.getVisibleRect().height, i = Math.min(this.layoutDelegate.getContentSize().height, n.y + o);
361
+ for (; n && n.y + n.height < i; ) {
362
+ let r = this.getKeyBelow(l);
363
+ if (r == null) break;
364
+ n = this.layoutDelegate.getItemRect(r), l = r;
363
365
  }
364
366
  return l;
365
367
  }
@@ -368,33 +370,33 @@ class ct {
368
370
  if (!this.collator) return null;
369
371
  let o = this.collection;
370
372
  if (n = l ?? this.getFirstKey(), n == null) return null;
371
- let r = o.getItem(n);
372
- if (!r) return null;
373
- var i;
374
- r.type === "cell" && (n = (i = r.parentKey) !== null && i !== void 0 ? i : null);
373
+ let i = o.getItem(n);
374
+ if (!i) return null;
375
+ var r;
376
+ i.type === "cell" && (n = (r = i.parentKey) !== null && r !== void 0 ? r : null);
375
377
  let u = !1;
376
378
  for (; n != null; ) {
377
- let c = o.getItem(n);
378
- if (!c) return null;
379
- if (c.textValue) {
380
- let a = c.textValue.slice(0, e.length);
381
- if (this.collator.compare(a, e) === 0) {
382
- var s, d;
383
- return this.isRow(c) && this.focusMode === "cell" ? (d = (s = J(I(c, this.collection))) === null || s === void 0 ? void 0 : s.key) !== null && d !== void 0 ? d : null : c.key;
379
+ let d = o.getItem(n);
380
+ if (!d) return null;
381
+ if (d.textValue) {
382
+ let s = d.textValue.slice(0, e.length);
383
+ if (this.collator.compare(s, e) === 0) {
384
+ var c, a;
385
+ return this.isRow(d) && this.focusMode === "cell" ? (a = (c = ne(I(d, this.collection))) === null || c === void 0 ? void 0 : c.key) !== null && a !== void 0 ? a : null : d.key;
384
386
  }
385
387
  }
386
- n = this.findNextKey(n, (a) => a.type === "item"), n == null && !u && (n = this.getFirstKey(), u = !0);
388
+ n = this.findNextKey(n, (s) => s.type === "item"), n == null && !u && (n = this.getFirstKey(), u = !0);
387
389
  }
388
390
  return null;
389
391
  }
390
392
  constructor(e) {
391
393
  if (this.collection = e.collection, this.disabledKeys = e.disabledKeys, this.disabledBehavior = e.disabledBehavior || "all", this.direction = e.direction, this.collator = e.collator, !e.layout && !e.ref) throw new Error("Either a layout or a ref must be specified.");
392
- this.layoutDelegate = e.layoutDelegate || (e.layout ? new ln(e.layout) : new fl(e.ref));
394
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new pn(e.layout) : new xl(e.ref));
393
395
  var l;
394
396
  this.focusMode = (l = e.focusMode) !== null && l !== void 0 ? l : "row";
395
397
  }
396
398
  }
397
- class ln {
399
+ class pn {
398
400
  getContentSize() {
399
401
  return this.layout.getContentSize();
400
402
  }
@@ -409,267 +411,267 @@ class ln {
409
411
  this.layout = e;
410
412
  }
411
413
  }
412
- const Fe = /* @__PURE__ */ new WeakMap();
413
- function nn(t, e, l) {
414
- let { isVirtualized: n, disallowTypeAhead: o, keyboardDelegate: r, focusMode: i, scrollRef: u, getRowText: s, onRowAction: d, onCellAction: c, escapeKeyBehavior: a = "clearSelection", shouldSelectOnPressUp: p } = t, { selectionManager: f } = e;
414
+ const Ve = /* @__PURE__ */ new WeakMap();
415
+ function hn(t, e, l) {
416
+ let { isVirtualized: n, disallowTypeAhead: o, keyboardDelegate: i, focusMode: r, scrollRef: u, getRowText: c, onRowAction: a, onCellAction: d, escapeKeyBehavior: s = "clearSelection", shouldSelectOnPressUp: p } = t, { selectionManager: f } = e;
415
417
  !t["aria-label"] && !t["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
416
- let h = st({
418
+ let h = vt({
417
419
  usage: "search",
418
420
  sensitivity: "base"
419
- }), { direction: b } = ce(), v = e.selectionManager.disabledBehavior, m = N(() => r || new ct({
421
+ }), { direction: g } = be(), y = e.selectionManager.disabledBehavior, v = N(() => i || new $t({
420
422
  collection: e.collection,
421
423
  disabledKeys: e.disabledKeys,
422
- disabledBehavior: v,
424
+ disabledBehavior: y,
423
425
  ref: l,
424
- direction: b,
426
+ direction: g,
425
427
  collator: h,
426
- focusMode: i
428
+ focusMode: r
427
429
  }), [
428
- r,
430
+ i,
429
431
  e.collection,
430
432
  e.disabledKeys,
431
- v,
433
+ y,
432
434
  l,
433
- b,
435
+ g,
434
436
  h,
435
- i
436
- ]), { collectionProps: x } = pl({
437
+ r
438
+ ]), { collectionProps: x } = wl({
437
439
  ref: l,
438
440
  selectionManager: f,
439
- keyboardDelegate: m,
441
+ keyboardDelegate: v,
440
442
  isVirtualized: n,
441
443
  scrollRef: u,
442
444
  disallowTypeAhead: o,
443
- escapeKeyBehavior: a
444
- }), g = Ee(t.id);
445
- Fe.set(e, {
446
- keyboardDelegate: m,
445
+ escapeKeyBehavior: s
446
+ }), m = Be(t.id);
447
+ Ve.set(e, {
448
+ keyboardDelegate: v,
447
449
  actions: {
448
- onRowAction: d,
449
- onCellAction: c
450
+ onRowAction: a,
451
+ onCellAction: d
450
452
  },
451
453
  shouldSelectOnPressUp: p
452
454
  });
453
- let $ = Hl({
455
+ let $ = Gl({
454
456
  selectionManager: f,
455
- hasItemActions: !!(d || c)
456
- }), y = q(t, {
457
+ hasItemActions: !!(a || d)
458
+ }), b = J(t, {
457
459
  labelable: !0
458
- }), D = L((S) => {
460
+ }), w = V((E) => {
459
461
  if (f.isFocused) {
460
- S.currentTarget.contains(S.target) || f.setFocused(!1);
462
+ E.currentTarget.contains(E.target) || f.setFocused(!1);
461
463
  return;
462
464
  }
463
- S.currentTarget.contains(S.target) && f.setFocused(!0);
465
+ E.currentTarget.contains(E.target) && f.setFocused(!0);
464
466
  }, [
465
467
  f
466
- ]), k = N(() => ({
468
+ ]), C = N(() => ({
467
469
  onBlur: x.onBlur,
468
- onFocus: D
470
+ onFocus: w
469
471
  }), [
470
- D,
472
+ w,
471
473
  x.onBlur
472
- ]), K = Vl(l, {
474
+ ]), B = ql(l, {
473
475
  isDisabled: e.collection.size !== 0
474
- }), R = W(
475
- y,
476
+ }), P = H(
477
+ b,
476
478
  {
477
479
  role: "grid",
478
- id: g,
480
+ id: m,
479
481
  "aria-multiselectable": f.selectionMode === "multiple" ? "true" : void 0
480
482
  },
481
- e.isKeyboardNavigationDisabled ? k : x,
483
+ e.isKeyboardNavigationDisabled ? C : x,
482
484
  // If collection is empty, make sure the grid is tabbable unless there is a child tabbable element.
483
485
  e.collection.size === 0 && {
484
- tabIndex: K ? -1 : 0
486
+ tabIndex: B ? -1 : 0
485
487
  } || void 0,
486
488
  $
487
489
  );
488
- return n && (R["aria-rowcount"] = e.collection.size, R["aria-colcount"] = e.collection.columnCount), jl({
489
- getRowText: s
490
+ return n && (P["aria-rowcount"] = e.collection.size, P["aria-colcount"] = e.collection.columnCount), Zl({
491
+ getRowText: c
490
492
  }, e), {
491
- gridProps: R
493
+ gridProps: P
492
494
  };
493
495
  }
494
- function on() {
496
+ function mn() {
495
497
  return {
496
498
  rowGroupProps: {
497
499
  role: "rowgroup"
498
500
  }
499
501
  };
500
502
  }
501
- function rn(t, e, l) {
503
+ function gn(t, e, l) {
502
504
  var n, o;
503
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: u, onAction: s } = t, { actions: d, shouldSelectOnPressUp: c } = Fe.get(e), a = d.onRowAction ? () => {
504
- var v;
505
- return (v = d.onRowAction) === null || v === void 0 ? void 0 : v.call(d, r.key);
506
- } : s, { itemProps: p, ...f } = ot({
505
+ let { node: i, isVirtualized: r, shouldSelectOnPressUp: u, onAction: c } = t, { actions: a, shouldSelectOnPressUp: d } = Ve.get(e), s = a.onRowAction ? () => {
506
+ var y;
507
+ return (y = a.onRowAction) === null || y === void 0 ? void 0 : y.call(a, i.key);
508
+ } : c, { itemProps: p, ...f } = pt({
507
509
  selectionManager: e.selectionManager,
508
- key: r.key,
510
+ key: i.key,
509
511
  ref: l,
510
- isVirtualized: i,
511
- shouldSelectOnPressUp: c || u,
512
- onAction: a || !(r == null || (n = r.props) === null || n === void 0) && n.onAction ? Sl(r == null || (o = r.props) === null || o === void 0 ? void 0 : o.onAction, a) : void 0,
512
+ isVirtualized: r,
513
+ shouldSelectOnPressUp: d || u,
514
+ onAction: s || !(i == null || (n = i.props) === null || n === void 0) && n.onAction ? Nl(i == null || (o = i.props) === null || o === void 0 ? void 0 : o.onAction, s) : void 0,
513
515
  isDisabled: e.collection.size === 0
514
- }), h = e.selectionManager.isSelected(r.key), b = {
516
+ }), h = e.selectionManager.isSelected(i.key), g = {
515
517
  role: "row",
516
518
  "aria-selected": e.selectionManager.selectionMode !== "none" ? h : void 0,
517
519
  "aria-disabled": f.isDisabled || void 0,
518
520
  ...p
519
521
  };
520
- return i && (b["aria-rowindex"] = r.index + 1), {
521
- rowProps: b,
522
+ return r && (g["aria-rowindex"] = i.index + 1), {
523
+ rowProps: g,
522
524
  ...f
523
525
  };
524
526
  }
525
- function ft(t, e, l) {
526
- let { node: n, isVirtualized: o, focusMode: r = "child", shouldSelectOnPressUp: i, onAction: u } = t, { direction: s } = ce(), { keyboardDelegate: d, actions: { onCellAction: c } } = Fe.get(e), a = M(null), p = () => {
527
+ function xt(t, e, l) {
528
+ let { node: n, isVirtualized: o, focusMode: i = "child", shouldSelectOnPressUp: r, onAction: u } = t, { direction: c } = be(), { keyboardDelegate: a, actions: { onCellAction: d } } = Ve.get(e), s = M(null), p = () => {
527
529
  if (l.current) {
528
- let g = Je(l.current);
529
- if (r === "child") {
530
+ let m = it(l.current);
531
+ if (i === "child") {
530
532
  if (l.current.contains(document.activeElement) && l.current !== document.activeElement) return;
531
- let $ = e.selectionManager.childFocusStrategy === "last" ? Be(g) : g.firstChild();
533
+ let $ = e.selectionManager.childFocusStrategy === "last" ? Me(m) : m.firstChild();
532
534
  if ($) {
533
- X($);
535
+ q($);
534
536
  return;
535
537
  }
536
538
  }
537
- (a.current != null && n.key !== a.current || !l.current.contains(document.activeElement)) && X(l.current);
539
+ (s.current != null && n.key !== s.current || !l.current.contains(document.activeElement)) && q(l.current);
538
540
  }
539
- }, { itemProps: f, isPressed: h } = ot({
541
+ }, { itemProps: f, isPressed: h } = pt({
540
542
  selectionManager: e.selectionManager,
541
543
  key: n.key,
542
544
  ref: l,
543
545
  isVirtualized: o,
544
546
  focus: p,
545
- shouldSelectOnPressUp: i,
546
- onAction: c ? () => c(n.key) : u,
547
+ shouldSelectOnPressUp: r,
548
+ onAction: d ? () => d(n.key) : u,
547
549
  isDisabled: e.collection.size === 0
548
- }), b = (g) => {
549
- if (!g.currentTarget.contains(g.target) || e.isKeyboardNavigationDisabled || !l.current || !document.activeElement) return;
550
- let $ = Je(l.current);
551
- switch ($.currentNode = document.activeElement, g.key) {
550
+ }), g = (m) => {
551
+ if (!m.currentTarget.contains(m.target) || e.isKeyboardNavigationDisabled || !l.current || !document.activeElement) return;
552
+ let $ = it(l.current);
553
+ switch ($.currentNode = document.activeElement, m.key) {
552
554
  case "ArrowLeft": {
553
- let S = s === "rtl" ? $.nextNode() : $.previousNode();
554
- if (r === "child" && S === l.current && (S = null), g.preventDefault(), g.stopPropagation(), S)
555
- X(S), ae(S, {
556
- containingElement: ue(l.current)
555
+ let E = c === "rtl" ? $.nextNode() : $.previousNode();
556
+ if (i === "child" && E === l.current && (E = null), m.preventDefault(), m.stopPropagation(), E)
557
+ q(E), fe(E, {
558
+ containingElement: pe(l.current)
557
559
  });
558
560
  else {
559
- var y;
560
- if (((y = d.getKeyLeftOf) === null || y === void 0 ? void 0 : y.call(d, n.key)) !== n.key) {
561
- var D;
562
- (D = l.current.parentElement) === null || D === void 0 || D.dispatchEvent(new KeyboardEvent(g.nativeEvent.type, g.nativeEvent));
561
+ var b;
562
+ if (((b = a.getKeyLeftOf) === null || b === void 0 ? void 0 : b.call(a, n.key)) !== n.key) {
563
+ var w;
564
+ (w = l.current.parentElement) === null || w === void 0 || w.dispatchEvent(new KeyboardEvent(m.nativeEvent.type, m.nativeEvent));
563
565
  break;
564
566
  }
565
- r === "cell" && s === "rtl" ? (X(l.current), ae(l.current, {
566
- containingElement: ue(l.current)
567
- })) : ($.currentNode = l.current, S = s === "rtl" ? $.firstChild() : Be($), S && (X(S), ae(S, {
568
- containingElement: ue(l.current)
567
+ i === "cell" && c === "rtl" ? (q(l.current), fe(l.current, {
568
+ containingElement: pe(l.current)
569
+ })) : ($.currentNode = l.current, E = c === "rtl" ? $.firstChild() : Me($), E && (q(E), fe(E, {
570
+ containingElement: pe(l.current)
569
571
  })));
570
572
  }
571
573
  break;
572
574
  }
573
575
  case "ArrowRight": {
574
- let S = s === "rtl" ? $.previousNode() : $.nextNode();
575
- if (r === "child" && S === l.current && (S = null), g.preventDefault(), g.stopPropagation(), S)
576
- X(S), ae(S, {
577
- containingElement: ue(l.current)
576
+ let E = c === "rtl" ? $.previousNode() : $.nextNode();
577
+ if (i === "child" && E === l.current && (E = null), m.preventDefault(), m.stopPropagation(), E)
578
+ q(E), fe(E, {
579
+ containingElement: pe(l.current)
578
580
  });
579
581
  else {
580
- var k;
581
- if (((k = d.getKeyRightOf) === null || k === void 0 ? void 0 : k.call(d, n.key)) !== n.key) {
582
- var K;
583
- (K = l.current.parentElement) === null || K === void 0 || K.dispatchEvent(new KeyboardEvent(g.nativeEvent.type, g.nativeEvent));
582
+ var C;
583
+ if (((C = a.getKeyRightOf) === null || C === void 0 ? void 0 : C.call(a, n.key)) !== n.key) {
584
+ var B;
585
+ (B = l.current.parentElement) === null || B === void 0 || B.dispatchEvent(new KeyboardEvent(m.nativeEvent.type, m.nativeEvent));
584
586
  break;
585
587
  }
586
- r === "cell" && s === "ltr" ? (X(l.current), ae(l.current, {
587
- containingElement: ue(l.current)
588
- })) : ($.currentNode = l.current, S = s === "rtl" ? Be($) : $.firstChild(), S && (X(S), ae(S, {
589
- containingElement: ue(l.current)
588
+ i === "cell" && c === "ltr" ? (q(l.current), fe(l.current, {
589
+ containingElement: pe(l.current)
590
+ })) : ($.currentNode = l.current, E = c === "rtl" ? Me($) : $.firstChild(), E && (q(E), fe(E, {
591
+ containingElement: pe(l.current)
590
592
  })));
591
593
  }
592
594
  break;
593
595
  }
594
596
  case "ArrowUp":
595
597
  case "ArrowDown":
596
- if (!g.altKey && l.current.contains(g.target)) {
597
- var R;
598
- g.stopPropagation(), g.preventDefault(), (R = l.current.parentElement) === null || R === void 0 || R.dispatchEvent(new KeyboardEvent(g.nativeEvent.type, g.nativeEvent));
598
+ if (!m.altKey && l.current.contains(m.target)) {
599
+ var P;
600
+ m.stopPropagation(), m.preventDefault(), (P = l.current.parentElement) === null || P === void 0 || P.dispatchEvent(new KeyboardEvent(m.nativeEvent.type, m.nativeEvent));
599
601
  }
600
602
  break;
601
603
  }
602
- }, v = (g) => {
603
- if (a.current = n.key, g.target !== l.current) {
604
- Ml() || e.selectionManager.setFocusedKey(n.key);
604
+ }, y = (m) => {
605
+ if (s.current = n.key, m.target !== l.current) {
606
+ Ol() || e.selectionManager.setFocusedKey(n.key);
605
607
  return;
606
608
  }
607
609
  requestAnimationFrame(() => {
608
- r === "child" && document.activeElement === l.current && p();
610
+ i === "child" && document.activeElement === l.current && p();
609
611
  });
610
- }, m = W(f, {
612
+ }, v = H(f, {
611
613
  role: "gridcell",
612
- onKeyDownCapture: b,
614
+ onKeyDownCapture: g,
613
615
  "aria-colspan": n.colSpan,
614
616
  "aria-colindex": n.colIndex != null ? n.colIndex + 1 : void 0,
615
617
  colSpan: o ? void 0 : n.colSpan,
616
- onFocus: v
618
+ onFocus: y
617
619
  });
618
620
  var x;
619
- return o && (m["aria-colindex"] = ((x = n.colIndex) !== null && x !== void 0 ? x : n.index) + 1), i && m.tabIndex != null && m.onPointerDown == null && (m.onPointerDown = (g) => {
620
- let $ = g.currentTarget, y = $.getAttribute("tabindex");
621
+ return o && (v["aria-colindex"] = ((x = n.colIndex) !== null && x !== void 0 ? x : n.index) + 1), r && v.tabIndex != null && v.onPointerDown == null && (v.onPointerDown = (m) => {
622
+ let $ = m.currentTarget, b = $.getAttribute("tabindex");
621
623
  $.removeAttribute("tabindex"), requestAnimationFrame(() => {
622
- y != null && $.setAttribute("tabindex", y);
624
+ b != null && $.setAttribute("tabindex", b);
623
625
  });
624
626
  }), {
625
- gridCellProps: m,
627
+ gridCellProps: v,
626
628
  isPressed: h
627
629
  };
628
630
  }
629
- function Be(t) {
631
+ function Me(t) {
630
632
  let e = null, l = null;
631
633
  do
632
634
  l = t.lastChild(), l && (e = l);
633
635
  while (l);
634
636
  return e;
635
637
  }
636
- function an(t) {
638
+ function bn(t) {
637
639
  return t && t.__esModule ? t.default : t;
638
640
  }
639
- function un(t, e) {
640
- let { key: l } = t, n = e.selectionManager, o = Ee(), r = !e.selectionManager.canSelectItem(l), i = e.selectionManager.isSelected(l), u = () => n.toggleSelection(l);
641
- const s = fe(an(Ol), "@react-aria/grid");
641
+ function vn(t, e) {
642
+ let { key: l } = t, n = e.selectionManager, o = Be(), i = !e.selectionManager.canSelectItem(l), r = e.selectionManager.isSelected(l), u = () => n.toggleSelection(l);
643
+ const c = ve(bn(Ql), "@react-aria/grid");
642
644
  return {
643
645
  checkboxProps: {
644
646
  id: o,
645
- "aria-label": s.format("select"),
646
- isSelected: i,
647
- isDisabled: r,
647
+ "aria-label": c.format("select"),
648
+ isSelected: r,
649
+ isDisabled: i,
648
650
  onChange: u
649
651
  }
650
652
  };
651
653
  }
652
- const Ie = /* @__PURE__ */ new WeakMap();
653
- function Re(t) {
654
+ const je = /* @__PURE__ */ new WeakMap();
655
+ function Ne(t) {
654
656
  return typeof t == "string" ? t.replace(/\s*/g, "") : "" + t;
655
657
  }
656
- function pt(t, e) {
657
- let l = Ie.get(t);
658
+ function wt(t, e) {
659
+ let l = je.get(t);
658
660
  if (!l) throw new Error("Unknown grid");
659
- return `${l}-${Re(e)}`;
661
+ return `${l}-${Ne(e)}`;
660
662
  }
661
- function ht(t, e, l) {
662
- let n = Ie.get(t);
663
+ function Dt(t, e, l) {
664
+ let n = je.get(t);
663
665
  if (!n) throw new Error("Unknown grid");
664
- return `${n}-${Re(e)}-${Re(l)}`;
666
+ return `${n}-${Ne(e)}-${Ne(l)}`;
665
667
  }
666
- function mt(t, e) {
668
+ function Ct(t, e) {
667
669
  return [
668
670
  ...t.collection.rowHeaderColumnKeys
669
- ].map((l) => ht(t, e, l)).join(" ");
671
+ ].map((l) => Dt(t, e, l)).join(" ");
670
672
  }
671
- var gt = {};
672
- gt = {
673
+ var St = {};
674
+ St = {
673
675
  ascending: "تصاعدي",
674
676
  ascendingSort: (t) => `ترتيب حسب العمود ${t.columnName} بترتيب تصاعدي`,
675
677
  columnSize: (t) => `${t.value} بالبكسل`,
@@ -680,8 +682,8 @@ gt = {
680
682
  selectAll: "تحديد الكل",
681
683
  sortable: "عمود قابل للترتيب"
682
684
  };
683
- var bt = {};
684
- bt = {
685
+ var kt = {};
686
+ kt = {
685
687
  ascending: "възходящ",
686
688
  ascendingSort: (t) => `сортирано по колона ${t.columnName} във възходящ ред`,
687
689
  columnSize: (t) => `${t.value} пиксела`,
@@ -692,8 +694,8 @@ bt = {
692
694
  selectAll: "Изберете всичко",
693
695
  sortable: "сортираща колона"
694
696
  };
695
- var vt = {};
696
- vt = {
697
+ var Et = {};
698
+ Et = {
697
699
  ascending: "vzestupně",
698
700
  ascendingSort: (t) => `řazeno vzestupně podle sloupce ${t.columnName}`,
699
701
  columnSize: (t) => `${t.value} pixelů`,
@@ -704,8 +706,8 @@ vt = {
704
706
  selectAll: "Vybrat vše",
705
707
  sortable: "sloupec s možností řazení"
706
708
  };
707
- var yt = {};
708
- yt = {
709
+ var zt = {};
710
+ zt = {
709
711
  ascending: "stigende",
710
712
  ascendingSort: (t) => `sorteret efter kolonne ${t.columnName} i stigende rækkefølge`,
711
713
  columnSize: (t) => `${t.value} pixels`,
@@ -716,8 +718,8 @@ yt = {
716
718
  selectAll: "Vælg alle",
717
719
  sortable: "sorterbar kolonne"
718
720
  };
719
- var $t = {};
720
- $t = {
721
+ var Rt = {};
722
+ Rt = {
721
723
  ascending: "aufsteigend",
722
724
  ascendingSort: (t) => `sortiert nach Spalte ${t.columnName} in aufsteigender Reihenfolge`,
723
725
  columnSize: (t) => `${t.value} Pixel`,
@@ -728,8 +730,8 @@ $t = {
728
730
  selectAll: "Alles auswählen",
729
731
  sortable: "sortierbare Spalte"
730
732
  };
731
- var xt = {};
732
- xt = {
733
+ var At = {};
734
+ At = {
733
735
  ascending: "αύξουσα",
734
736
  ascendingSort: (t) => `διαλογή ανά στήλη ${t.columnName} σε αύξουσα σειρά`,
735
737
  columnSize: (t) => `${t.value} pixel`,
@@ -740,8 +742,8 @@ xt = {
740
742
  selectAll: "Επιλογή όλων",
741
743
  sortable: "Στήλη διαλογής"
742
744
  };
743
- var Dt = {};
744
- Dt = {
745
+ var Bt = {};
746
+ Bt = {
745
747
  select: "Select",
746
748
  selectAll: "Select All",
747
749
  sortable: "sortable column",
@@ -752,8 +754,8 @@ Dt = {
752
754
  columnSize: (t) => `${t.value} pixels`,
753
755
  resizerDescription: "Press Enter to start resizing"
754
756
  };
755
- var Ct = {};
756
- Ct = {
757
+ var Pt = {};
758
+ Pt = {
757
759
  ascending: "ascendente",
758
760
  ascendingSort: (t) => `ordenado por columna ${t.columnName} en sentido ascendente`,
759
761
  columnSize: (t) => `${t.value} píxeles`,
@@ -764,8 +766,8 @@ Ct = {
764
766
  selectAll: "Seleccionar todos",
765
767
  sortable: "columna ordenable"
766
768
  };
767
- var wt = {};
768
- wt = {
769
+ var Kt = {};
770
+ Kt = {
769
771
  ascending: "tõusev järjestus",
770
772
  ascendingSort: (t) => `sorditud veeru järgi ${t.columnName} tõusvas järjestuses`,
771
773
  columnSize: (t) => `${t.value} pikslit`,
@@ -776,8 +778,8 @@ wt = {
776
778
  selectAll: "Vali kõik",
777
779
  sortable: "sorditav veerg"
778
780
  };
779
- var kt = {};
780
- kt = {
781
+ var Mt = {};
782
+ Mt = {
781
783
  ascending: "nouseva",
782
784
  ascendingSort: (t) => `lajiteltu sarakkeen ${t.columnName} mukaan nousevassa järjestyksessä`,
783
785
  columnSize: (t) => `${t.value} pikseliä`,
@@ -788,8 +790,8 @@ kt = {
788
790
  selectAll: "Valitse kaikki",
789
791
  sortable: "lajiteltava sarake"
790
792
  };
791
- var St = {};
792
- St = {
793
+ var Nt = {};
794
+ Nt = {
793
795
  ascending: "croissant",
794
796
  ascendingSort: (t) => `trié en fonction de la colonne ${t.columnName} par ordre croissant`,
795
797
  columnSize: (t) => `${t.value} pixels`,
@@ -800,8 +802,8 @@ St = {
800
802
  selectAll: "Sélectionner tout",
801
803
  sortable: "colonne triable"
802
804
  };
803
- var Et = {};
804
- Et = {
805
+ var Tt = {};
806
+ Tt = {
805
807
  ascending: "עולה",
806
808
  ascendingSort: (t) => `מוין לפי עמודה ${t.columnName} בסדר עולה`,
807
809
  columnSize: (t) => `${t.value} פיקסלים`,
@@ -812,8 +814,8 @@ Et = {
812
814
  selectAll: "בחר הכול",
813
815
  sortable: "עמודה שניתן למיין"
814
816
  };
815
- var zt = {};
816
- zt = {
817
+ var Ft = {};
818
+ Ft = {
817
819
  ascending: "rastući",
818
820
  ascendingSort: (t) => `razvrstano po stupcima ${t.columnName} rastućem redoslijedom`,
819
821
  columnSize: (t) => `${t.value} piksela`,
@@ -824,8 +826,8 @@ zt = {
824
826
  selectAll: "Odaberite sve",
825
827
  sortable: "stupac koji se može razvrstati"
826
828
  };
827
- var At = {};
828
- At = {
829
+ var It = {};
830
+ It = {
829
831
  ascending: "növekvő",
830
832
  ascendingSort: (t) => `rendezve a(z) ${t.columnName} oszlop szerint, növekvő sorrendben`,
831
833
  columnSize: (t) => `${t.value} képpont`,
@@ -836,8 +838,8 @@ At = {
836
838
  selectAll: "Összes kijelölése",
837
839
  sortable: "rendezendő oszlop"
838
840
  };
839
- var Bt = {};
840
- Bt = {
841
+ var Wt = {};
842
+ Wt = {
841
843
  ascending: "crescente",
842
844
  ascendingSort: (t) => `in ordine crescente in base alla colonna ${t.columnName}`,
843
845
  columnSize: (t) => `${t.value} pixel`,
@@ -848,8 +850,8 @@ Bt = {
848
850
  selectAll: "Seleziona tutto",
849
851
  sortable: "colonna ordinabile"
850
852
  };
851
- var Rt = {};
852
- Rt = {
853
+ var Ht = {};
854
+ Ht = {
853
855
  ascending: "昇順",
854
856
  ascendingSort: (t) => `列 ${t.columnName} を昇順で並べ替え`,
855
857
  columnSize: (t) => `${t.value} ピクセル`,
@@ -860,8 +862,8 @@ Rt = {
860
862
  selectAll: "すべて選択",
861
863
  sortable: "並べ替え可能な列"
862
864
  };
863
- var Kt = {};
864
- Kt = {
865
+ var Vt = {};
866
+ Vt = {
865
867
  ascending: "오름차순",
866
868
  ascendingSort: (t) => `${t.columnName} 열을 기준으로 오름차순으로 정렬됨`,
867
869
  columnSize: (t) => `${t.value} 픽셀`,
@@ -872,8 +874,8 @@ Kt = {
872
874
  selectAll: "모두 선택",
873
875
  sortable: "정렬 가능한 열"
874
876
  };
875
- var Pt = {};
876
- Pt = {
877
+ var jt = {};
878
+ jt = {
877
879
  ascending: "didėjančia tvarka",
878
880
  ascendingSort: (t) => `surikiuota pagal stulpelį ${t.columnName} didėjančia tvarka`,
879
881
  columnSize: (t) => `${t.value} piks.`,
@@ -884,8 +886,8 @@ Pt = {
884
886
  selectAll: "Pasirinkti viską",
885
887
  sortable: "rikiuojamas stulpelis"
886
888
  };
887
- var Mt = {};
888
- Mt = {
889
+ var Ot = {};
890
+ Ot = {
889
891
  ascending: "augošā secībā",
890
892
  ascendingSort: (t) => `kārtots pēc kolonnas ${t.columnName} augošā secībā`,
891
893
  columnSize: (t) => `${t.value} pikseļi`,
@@ -896,8 +898,8 @@ Mt = {
896
898
  selectAll: "Atlasīt visu",
897
899
  sortable: "kārtojamā kolonna"
898
900
  };
899
- var Nt = {};
900
- Nt = {
901
+ var Lt = {};
902
+ Lt = {
901
903
  ascending: "stigende",
902
904
  ascendingSort: (t) => `sortert etter kolonne ${t.columnName} i stigende rekkefølge`,
903
905
  columnSize: (t) => `${t.value} piksler`,
@@ -908,8 +910,8 @@ Nt = {
908
910
  selectAll: "Velg alle",
909
911
  sortable: "kolonne som kan sorteres"
910
912
  };
911
- var Tt = {};
912
- Tt = {
913
+ var Ut = {};
914
+ Ut = {
913
915
  ascending: "oplopend",
914
916
  ascendingSort: (t) => `gesorteerd in oplopende volgorde in kolom ${t.columnName}`,
915
917
  columnSize: (t) => `${t.value} pixels`,
@@ -920,8 +922,8 @@ Tt = {
920
922
  selectAll: "Alles selecteren",
921
923
  sortable: "sorteerbare kolom"
922
924
  };
923
- var Ft = {};
924
- Ft = {
925
+ var Yt = {};
926
+ Yt = {
925
927
  ascending: "rosnąco",
926
928
  ascendingSort: (t) => `posortowano według kolumny ${t.columnName} w porządku rosnącym`,
927
929
  columnSize: (t) => `Liczba pikseli: ${t.value}`,
@@ -932,8 +934,8 @@ Ft = {
932
934
  selectAll: "Zaznacz wszystko",
933
935
  sortable: "kolumna z możliwością sortowania"
934
936
  };
935
- var It = {};
936
- It = {
937
+ var Xt = {};
938
+ Xt = {
937
939
  ascending: "crescente",
938
940
  ascendingSort: (t) => `classificado pela coluna ${t.columnName} em ordem crescente`,
939
941
  columnSize: (t) => `${t.value} pixels`,
@@ -944,8 +946,8 @@ It = {
944
946
  selectAll: "Selecionar tudo",
945
947
  sortable: "coluna classificável"
946
948
  };
947
- var Wt = {};
948
- Wt = {
949
+ var Gt = {};
950
+ Gt = {
949
951
  ascending: "ascendente",
950
952
  ascendingSort: (t) => `Ordenar por coluna ${t.columnName} em ordem ascendente`,
951
953
  columnSize: (t) => `${t.value} pixels`,
@@ -956,8 +958,8 @@ Wt = {
956
958
  selectAll: "Selecionar tudo",
957
959
  sortable: "Coluna ordenável"
958
960
  };
959
- var Ht = {};
960
- Ht = {
961
+ var qt = {};
962
+ qt = {
961
963
  ascending: "crescătoare",
962
964
  ascendingSort: (t) => `sortate după coloana ${t.columnName} în ordine crescătoare`,
963
965
  columnSize: (t) => `${t.value} pixeli`,
@@ -968,8 +970,8 @@ Ht = {
968
970
  selectAll: "Selectare totală",
969
971
  sortable: "coloană sortabilă"
970
972
  };
971
- var Vt = {};
972
- Vt = {
973
+ var Zt = {};
974
+ Zt = {
973
975
  ascending: "возрастание",
974
976
  ascendingSort: (t) => `сортировать столбец ${t.columnName} в порядке возрастания`,
975
977
  columnSize: (t) => `${t.value} пикс.`,
@@ -980,8 +982,8 @@ Vt = {
980
982
  selectAll: "Выбрать все",
981
983
  sortable: "сортируемый столбец"
982
984
  };
983
- var jt = {};
984
- jt = {
985
+ var Qt = {};
986
+ Qt = {
985
987
  ascending: "vzostupne",
986
988
  ascendingSort: (t) => `zoradené zostupne podľa stĺpca ${t.columnName}`,
987
989
  columnSize: (t) => `Počet pixelov: ${t.value}`,
@@ -992,8 +994,8 @@ jt = {
992
994
  selectAll: "Vybrať všetko",
993
995
  sortable: "zoraditeľný stĺpec"
994
996
  };
995
- var Ot = {};
996
- Ot = {
997
+ var Jt = {};
998
+ Jt = {
997
999
  ascending: "naraščajoče",
998
1000
  ascendingSort: (t) => `razvrščeno po stolpcu ${t.columnName} v naraščajočem vrstnem redu`,
999
1001
  columnSize: (t) => `${t.value} slikovnih pik`,
@@ -1004,8 +1006,8 @@ Ot = {
1004
1006
  selectAll: "Izberite vse",
1005
1007
  sortable: "razvrstljivi stolpec"
1006
1008
  };
1007
- var Lt = {};
1008
- Lt = {
1009
+ var _t = {};
1010
+ _t = {
1009
1011
  ascending: "rastući",
1010
1012
  ascendingSort: (t) => `sortirano po kolonama ${t.columnName} rastućim redosledom`,
1011
1013
  columnSize: (t) => `${t.value} piksela`,
@@ -1016,8 +1018,8 @@ Lt = {
1016
1018
  selectAll: "Izaberite sve",
1017
1019
  sortable: "kolona koja se može sortirati"
1018
1020
  };
1019
- var Ut = {};
1020
- Ut = {
1021
+ var el = {};
1022
+ el = {
1021
1023
  ascending: "stigande",
1022
1024
  ascendingSort: (t) => `sorterat på kolumn ${t.columnName} i stigande ordning`,
1023
1025
  columnSize: (t) => `${t.value} pixlar`,
@@ -1028,8 +1030,8 @@ Ut = {
1028
1030
  selectAll: "Markera allt",
1029
1031
  sortable: "sorterbar kolumn"
1030
1032
  };
1031
- var Yt = {};
1032
- Yt = {
1033
+ var tl = {};
1034
+ tl = {
1033
1035
  ascending: "artan sırada",
1034
1036
  ascendingSort: (t) => `${t.columnName} sütuna göre artan düzende sırala`,
1035
1037
  columnSize: (t) => `${t.value} piksel`,
@@ -1040,8 +1042,8 @@ Yt = {
1040
1042
  selectAll: "Tümünü Seç",
1041
1043
  sortable: "Sıralanabilir sütun"
1042
1044
  };
1043
- var Xt = {};
1044
- Xt = {
1045
+ var ll = {};
1046
+ ll = {
1045
1047
  ascending: "висхідний",
1046
1048
  ascendingSort: (t) => `відсортовано за стовпцем ${t.columnName} у висхідному порядку`,
1047
1049
  columnSize: (t) => `${t.value} пікс.`,
@@ -1052,8 +1054,8 @@ Xt = {
1052
1054
  selectAll: "Вибрати все",
1053
1055
  sortable: "сортувальний стовпець"
1054
1056
  };
1055
- var Gt = {};
1056
- Gt = {
1057
+ var nl = {};
1058
+ nl = {
1057
1059
  ascending: "升序",
1058
1060
  ascendingSort: (t) => `按列 ${t.columnName} 升序排序`,
1059
1061
  columnSize: (t) => `${t.value} 像素`,
@@ -1064,8 +1066,8 @@ Gt = {
1064
1066
  selectAll: "全选",
1065
1067
  sortable: "可排序的列"
1066
1068
  };
1067
- var qt = {};
1068
- qt = {
1069
+ var ol = {};
1070
+ ol = {
1069
1071
  ascending: "遞增",
1070
1072
  ascendingSort: (t) => `已依據「${t.columnName}」欄遞增排序`,
1071
1073
  columnSize: (t) => `${t.value} 像素`,
@@ -1076,44 +1078,44 @@ qt = {
1076
1078
  selectAll: "全選",
1077
1079
  sortable: "可排序的欄"
1078
1080
  };
1079
- var ve = {};
1080
- ve = {
1081
- "ar-AE": gt,
1082
- "bg-BG": bt,
1083
- "cs-CZ": vt,
1084
- "da-DK": yt,
1085
- "de-DE": $t,
1086
- "el-GR": xt,
1087
- "en-US": Dt,
1088
- "es-ES": Ct,
1089
- "et-EE": wt,
1090
- "fi-FI": kt,
1091
- "fr-FR": St,
1092
- "he-IL": Et,
1093
- "hr-HR": zt,
1094
- "hu-HU": At,
1095
- "it-IT": Bt,
1096
- "ja-JP": Rt,
1097
- "ko-KR": Kt,
1098
- "lt-LT": Pt,
1099
- "lv-LV": Mt,
1100
- "nb-NO": Nt,
1101
- "nl-NL": Tt,
1102
- "pl-PL": Ft,
1103
- "pt-BR": It,
1104
- "pt-PT": Wt,
1105
- "ro-RO": Ht,
1106
- "ru-RU": Vt,
1107
- "sk-SK": jt,
1108
- "sl-SI": Ot,
1109
- "sr-SP": Lt,
1110
- "sv-SE": Ut,
1111
- "tr-TR": Yt,
1112
- "uk-UA": Xt,
1113
- "zh-CN": Gt,
1114
- "zh-TW": qt
1081
+ var Se = {};
1082
+ Se = {
1083
+ "ar-AE": St,
1084
+ "bg-BG": kt,
1085
+ "cs-CZ": Et,
1086
+ "da-DK": zt,
1087
+ "de-DE": Rt,
1088
+ "el-GR": At,
1089
+ "en-US": Bt,
1090
+ "es-ES": Pt,
1091
+ "et-EE": Kt,
1092
+ "fi-FI": Mt,
1093
+ "fr-FR": Nt,
1094
+ "he-IL": Tt,
1095
+ "hr-HR": Ft,
1096
+ "hu-HU": It,
1097
+ "it-IT": Wt,
1098
+ "ja-JP": Ht,
1099
+ "ko-KR": Vt,
1100
+ "lt-LT": jt,
1101
+ "lv-LV": Ot,
1102
+ "nb-NO": Lt,
1103
+ "nl-NL": Ut,
1104
+ "pl-PL": Yt,
1105
+ "pt-BR": Xt,
1106
+ "pt-PT": Gt,
1107
+ "ro-RO": qt,
1108
+ "ru-RU": Zt,
1109
+ "sk-SK": Qt,
1110
+ "sl-SI": Jt,
1111
+ "sr-SP": _t,
1112
+ "sv-SE": el,
1113
+ "tr-TR": tl,
1114
+ "uk-UA": ll,
1115
+ "zh-CN": nl,
1116
+ "zh-TW": ol
1115
1117
  };
1116
- class sn extends ct {
1118
+ class yn extends $t {
1117
1119
  isCell(e) {
1118
1120
  return e.type === "cell" || e.type === "rowheader" || e.type === "column";
1119
1121
  }
@@ -1121,7 +1123,7 @@ class sn extends ct {
1121
1123
  let l = this.collection.getItem(e);
1122
1124
  if (!l) return null;
1123
1125
  if (l.type === "column") {
1124
- let n = J(I(l, this.collection));
1126
+ let n = ne(I(l, this.collection));
1125
1127
  if (n) return n.key;
1126
1128
  let o = this.getFirstKey();
1127
1129
  return o == null || !this.collection.getItem(o) ? null : super.getKeyForItemInRowByIndex(o, l.index);
@@ -1132,8 +1134,8 @@ class sn extends ct {
1132
1134
  let l = this.collection.getItem(e);
1133
1135
  if (!l) return null;
1134
1136
  if (l.type === "column") {
1135
- let r = l.parentKey != null ? this.collection.getItem(l.parentKey) : null;
1136
- return r && r.type === "column" ? r.key : null;
1137
+ let i = l.parentKey != null ? this.collection.getItem(l.parentKey) : null;
1138
+ return i && i.type === "column" ? i.key : null;
1137
1139
  }
1138
1140
  let n = super.getKeyAbove(e), o = n != null ? this.collection.getItem(n) : null;
1139
1141
  return o && o.type !== "headerrow" ? n : this.isCell(l) ? this.collection.columns[l.index].key : this.collection.columns[0].key;
@@ -1147,14 +1149,14 @@ class sn extends ct {
1147
1149
  return null;
1148
1150
  }
1149
1151
  findPreviousColumnKey(e) {
1150
- let l = this.findPreviousKey(e.key, (r) => r.type === "column");
1152
+ let l = this.findPreviousKey(e.key, (i) => i.type === "column");
1151
1153
  if (l != null) return l;
1152
1154
  let n = this.collection.headerRows[e.level], o = [
1153
1155
  ...I(n, this.collection)
1154
1156
  ];
1155
- for (let r = o.length - 1; r >= 0; r--) {
1156
- let i = o[r];
1157
- if (i.type === "column") return i.key;
1157
+ for (let i = o.length - 1; i >= 0; i--) {
1158
+ let r = o[i];
1159
+ if (r.type === "column") return r.key;
1158
1160
  }
1159
1161
  return null;
1160
1162
  }
@@ -1170,24 +1172,24 @@ class sn extends ct {
1170
1172
  if (!this.collator) return null;
1171
1173
  let n = this.collection, o = l ?? this.getFirstKey();
1172
1174
  if (o == null) return null;
1173
- let r = n.getItem(o);
1174
- var i;
1175
- r?.type === "cell" && (o = (i = r.parentKey) !== null && i !== void 0 ? i : null);
1175
+ let i = n.getItem(o);
1176
+ var r;
1177
+ i?.type === "cell" && (o = (r = i.parentKey) !== null && r !== void 0 ? r : null);
1176
1178
  let u = !1;
1177
1179
  for (; o != null; ) {
1178
- let s = n.getItem(o);
1179
- if (!s) return null;
1180
- if (s.textValue) {
1181
- let d = s.textValue.slice(0, e.length);
1182
- if (this.collator.compare(d, e) === 0) return s.key;
1180
+ let c = n.getItem(o);
1181
+ if (!c) return null;
1182
+ if (c.textValue) {
1183
+ let a = c.textValue.slice(0, e.length);
1184
+ if (this.collator.compare(a, e) === 0) return c.key;
1183
1185
  }
1184
- for (let d of I(s, this.collection)) {
1185
- let c = n.columns[d.index];
1186
- if (n.rowHeaderColumnKeys.has(c.key) && d.textValue) {
1187
- let a = d.textValue.slice(0, e.length);
1188
- if (this.collator.compare(a, e) === 0) {
1189
- let p = l != null ? n.getItem(l) : r;
1190
- return p?.type === "cell" ? d.key : s.key;
1186
+ for (let a of I(c, this.collection)) {
1187
+ let d = n.columns[a.index];
1188
+ if (n.rowHeaderColumnKeys.has(d.key) && a.textValue) {
1189
+ let s = a.textValue.slice(0, e.length);
1190
+ if (this.collator.compare(s, e) === 0) {
1191
+ let p = l != null ? n.getItem(l) : i;
1192
+ return p?.type === "cell" ? a.key : c.key;
1191
1193
  }
1192
1194
  }
1193
1195
  }
@@ -1196,110 +1198,110 @@ class sn extends ct {
1196
1198
  return null;
1197
1199
  }
1198
1200
  }
1199
- function dn(t) {
1201
+ function $n(t) {
1200
1202
  return t && t.__esModule ? t.default : t;
1201
1203
  }
1202
- function cn(t, e, l) {
1203
- let { keyboardDelegate: n, isVirtualized: o, layoutDelegate: r, layout: i } = t, u = st({
1204
+ function xn(t, e, l) {
1205
+ let { keyboardDelegate: n, isVirtualized: o, layoutDelegate: i, layout: r } = t, u = vt({
1204
1206
  usage: "search",
1205
1207
  sensitivity: "base"
1206
- }), { direction: s } = ce(), d = e.selectionManager.disabledBehavior, c = N(() => n || new sn({
1208
+ }), { direction: c } = be(), a = e.selectionManager.disabledBehavior, d = N(() => n || new yn({
1207
1209
  collection: e.collection,
1208
1210
  disabledKeys: e.disabledKeys,
1209
- disabledBehavior: d,
1211
+ disabledBehavior: a,
1210
1212
  ref: l,
1211
- direction: s,
1213
+ direction: c,
1212
1214
  collator: u,
1213
- layoutDelegate: r,
1214
- layout: i
1215
+ layoutDelegate: i,
1216
+ layout: r
1215
1217
  }), [
1216
1218
  n,
1217
1219
  e.collection,
1218
1220
  e.disabledKeys,
1219
- d,
1221
+ a,
1220
1222
  l,
1221
- s,
1223
+ c,
1222
1224
  u,
1223
- r,
1224
- i
1225
- ]), a = Ee(t.id);
1226
- Ie.set(e, a);
1227
- let { gridProps: p } = nn({
1225
+ i,
1226
+ r
1227
+ ]), s = Be(t.id);
1228
+ je.set(e, s);
1229
+ let { gridProps: p } = hn({
1228
1230
  ...t,
1229
- id: a,
1230
- keyboardDelegate: c
1231
+ id: s,
1232
+ keyboardDelegate: d
1231
1233
  }, e, l);
1232
- o && (p["aria-rowcount"] = e.collection.size + e.collection.headerRows.length), we() && "expandedKeys" in e && (p.role = "treegrid");
1233
- let { column: f, direction: h } = e.sortDescriptor || {}, b = fe(dn(ve), "@react-aria/table"), v = N(() => {
1234
- var x, g;
1235
- let $ = (g = (x = e.collection.columns.find((y) => y.key === f)) === null || x === void 0 ? void 0 : x.textValue) !== null && g !== void 0 ? g : "";
1236
- return h && f ? b.format(`${h}Sort`, {
1234
+ o && (p["aria-rowcount"] = e.collection.size + e.collection.headerRows.length), Re() && "expandedKeys" in e && (p.role = "treegrid");
1235
+ let { column: f, direction: h } = e.sortDescriptor || {}, g = ve($n(Se), "@react-aria/table"), y = N(() => {
1236
+ var x, m;
1237
+ let $ = (m = (x = e.collection.columns.find((b) => b.key === f)) === null || x === void 0 ? void 0 : x.textValue) !== null && m !== void 0 ? m : "";
1238
+ return h && f ? g.format(`${h}Sort`, {
1237
1239
  columnName: $
1238
1240
  }) : void 0;
1239
1241
  }, [
1240
1242
  h,
1241
1243
  f,
1242
1244
  e.collection.columns
1243
- ]), m = Te(v);
1244
- return Ul(() => {
1245
- v && Ll(v, "assertive", 500);
1245
+ ]), v = He(y);
1246
+ return _l(() => {
1247
+ y && Jl(y, "assertive", 500);
1246
1248
  }, [
1247
- v
1249
+ y
1248
1250
  ]), {
1249
- gridProps: W(p, m, {
1251
+ gridProps: H(p, v, {
1250
1252
  // merge sort description with long press information
1251
1253
  "aria-describedby": [
1252
- m["aria-describedby"],
1254
+ v["aria-describedby"],
1253
1255
  p["aria-describedby"]
1254
1256
  ].filter(Boolean).join(" ")
1255
1257
  })
1256
1258
  };
1257
1259
  }
1258
- function fn(t) {
1260
+ function wn(t) {
1259
1261
  return t && t.__esModule ? t.default : t;
1260
1262
  }
1261
- function pn(t, e, l) {
1263
+ function Dn(t, e, l) {
1262
1264
  var n, o;
1263
- let { node: r } = t, i = r.props.allowsSorting, { gridCellProps: u } = ft({
1265
+ let { node: i } = t, r = i.props.allowsSorting, { gridCellProps: u } = xt({
1264
1266
  ...t,
1265
1267
  focusMode: "child"
1266
- }, e, l), s = r.props.isSelectionCell && e.selectionManager.selectionMode === "single", { pressProps: d } = ut({
1267
- isDisabled: !i || s,
1268
+ }, e, l), c = i.props.isSelectionCell && e.selectionManager.selectionMode === "single", { pressProps: a } = bt({
1269
+ isDisabled: !r || c,
1268
1270
  onPress() {
1269
- e.sort(r.key);
1271
+ e.sort(i.key);
1270
1272
  },
1271
1273
  ref: l
1272
- }), { focusableProps: c } = Kl({}, l), a, p = ((n = e.sortDescriptor) === null || n === void 0 ? void 0 : n.column) === r.key, f = (o = e.sortDescriptor) === null || o === void 0 ? void 0 : o.direction;
1273
- r.props.allowsSorting && !Qe() && (a = p ? f : "none");
1274
- let h = fe(fn(ve), "@react-aria/table"), b;
1275
- i && (b = `${h.format("sortable")}`, p && f && Qe() && (b = `${b}, ${h.format(f)}`));
1276
- let v = Te(b), m = e.collection.size === 0;
1277
- return oe(() => {
1278
- m && e.selectionManager.focusedKey === r.key && e.selectionManager.setFocusedKey(null);
1274
+ }), { focusableProps: d } = Vl({}, l), s, p = ((n = e.sortDescriptor) === null || n === void 0 ? void 0 : n.column) === i.key, f = (o = e.sortDescriptor) === null || o === void 0 ? void 0 : o.direction;
1275
+ i.props.allowsSorting && !ot() && (s = p ? f : "none");
1276
+ let h = ve(wn(Se), "@react-aria/table"), g;
1277
+ r && (g = `${h.format("sortable")}`, p && f && ot() && (g = `${g}, ${h.format(f)}`));
1278
+ let y = He(g), v = e.collection.size === 0;
1279
+ return se(() => {
1280
+ v && e.selectionManager.focusedKey === i.key && e.selectionManager.setFocusedKey(null);
1279
1281
  }, [
1280
- m,
1282
+ v,
1281
1283
  e.selectionManager,
1282
- r.key
1284
+ i.key
1283
1285
  ]), {
1284
1286
  columnHeaderProps: {
1285
- ...W(
1286
- c,
1287
- u,
1287
+ ...H(
1288
1288
  d,
1289
- v,
1289
+ u,
1290
+ a,
1291
+ y,
1290
1292
  // If the table is empty, make all column headers untabbable
1291
- m ? {
1293
+ v ? {
1292
1294
  tabIndex: -1
1293
1295
  } : null
1294
1296
  ),
1295
1297
  role: "columnheader",
1296
- id: pt(e, r.key),
1297
- "aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
1298
- "aria-sort": a
1298
+ id: wt(e, i.key),
1299
+ "aria-colspan": i.colSpan && i.colSpan > 1 ? i.colSpan : void 0,
1300
+ "aria-sort": s
1299
1301
  }
1300
1302
  };
1301
1303
  }
1302
- const _e = {
1304
+ const ut = {
1303
1305
  expand: {
1304
1306
  ltr: "ArrowRight",
1305
1307
  rtl: "ArrowLeft"
@@ -1309,70 +1311,70 @@ const _e = {
1309
1311
  rtl: "ArrowRight"
1310
1312
  }
1311
1313
  };
1312
- function hn(t, e, l) {
1313
- let { node: n, isVirtualized: o } = t, { rowProps: r, ...i } = rn(t, e, l), { direction: u } = ce();
1314
- o && !(we() && "expandedKeys" in e) ? r["aria-rowindex"] = n.index + 1 + e.collection.headerRows.length : delete r["aria-rowindex"];
1315
- let s = {};
1316
- if (we() && "expandedKeys" in e) {
1317
- let y = e.keyMap.get(n.key);
1318
- if (y != null) {
1319
- var d, c, a, p, f, h;
1320
- let D = ((d = y.props) === null || d === void 0 ? void 0 : d.UNSTABLE_childItems) || ((a = y.props) === null || a === void 0 || (c = a.children) === null || c === void 0 ? void 0 : c.length) > e.userColumnCount;
1321
- var b, v, m, x;
1322
- s = {
1323
- onKeyDown: (k) => {
1324
- (k.key === _e.expand[u] && e.selectionManager.focusedKey === y.key && D && e.expandedKeys !== "all" && !e.expandedKeys.has(y.key) || k.key === _e.collapse[u] && e.selectionManager.focusedKey === y.key && D && (e.expandedKeys === "all" || e.expandedKeys.has(y.key))) && (e.toggleKey(y.key), k.stopPropagation());
1314
+ function Cn(t, e, l) {
1315
+ let { node: n, isVirtualized: o } = t, { rowProps: i, ...r } = gn(t, e, l), { direction: u } = be();
1316
+ o && !(Re() && "expandedKeys" in e) ? i["aria-rowindex"] = n.index + 1 + e.collection.headerRows.length : delete i["aria-rowindex"];
1317
+ let c = {};
1318
+ if (Re() && "expandedKeys" in e) {
1319
+ let b = e.keyMap.get(n.key);
1320
+ if (b != null) {
1321
+ var a, d, s, p, f, h;
1322
+ let w = ((a = b.props) === null || a === void 0 ? void 0 : a.UNSTABLE_childItems) || ((s = b.props) === null || s === void 0 || (d = s.children) === null || d === void 0 ? void 0 : d.length) > e.userColumnCount;
1323
+ var g, y, v, x;
1324
+ c = {
1325
+ onKeyDown: (C) => {
1326
+ (C.key === ut.expand[u] && e.selectionManager.focusedKey === b.key && w && e.expandedKeys !== "all" && !e.expandedKeys.has(b.key) || C.key === ut.collapse[u] && e.selectionManager.focusedKey === b.key && w && (e.expandedKeys === "all" || e.expandedKeys.has(b.key))) && (e.toggleKey(b.key), C.stopPropagation());
1325
1327
  },
1326
- "aria-expanded": D ? e.expandedKeys === "all" || e.expandedKeys.has(n.key) : void 0,
1327
- "aria-level": y.level,
1328
- "aria-posinset": ((b = y.indexOfType) !== null && b !== void 0 ? b : 0) + 1,
1329
- "aria-setsize": y.level > 1 ? ((m = (p = _((v = (f = e.keyMap.get(y.parentKey)) === null || f === void 0 ? void 0 : f.childNodes) !== null && v !== void 0 ? v : [])) === null || p === void 0 ? void 0 : p.indexOfType) !== null && m !== void 0 ? m : 0) + 1 : ((x = (h = _(e.collection.body.childNodes)) === null || h === void 0 ? void 0 : h.indexOfType) !== null && x !== void 0 ? x : 0) + 1
1328
+ "aria-expanded": w ? e.expandedKeys === "all" || e.expandedKeys.has(n.key) : void 0,
1329
+ "aria-level": b.level,
1330
+ "aria-posinset": ((g = b.indexOfType) !== null && g !== void 0 ? g : 0) + 1,
1331
+ "aria-setsize": b.level > 1 ? ((v = (p = oe((y = (f = e.keyMap.get(b.parentKey)) === null || f === void 0 ? void 0 : f.childNodes) !== null && y !== void 0 ? y : [])) === null || p === void 0 ? void 0 : p.indexOfType) !== null && v !== void 0 ? v : 0) + 1 : ((x = (h = oe(e.collection.body.childNodes)) === null || h === void 0 ? void 0 : h.indexOfType) !== null && x !== void 0 ? x : 0) + 1
1330
1332
  };
1331
1333
  }
1332
1334
  }
1333
- let g = Wl(n.props), $ = i.hasAction ? g : {};
1335
+ let m = Xl(n.props), $ = r.hasAction ? m : {};
1334
1336
  return {
1335
1337
  rowProps: {
1336
- ...W(r, s, $),
1337
- "aria-labelledby": mt(e, n.key)
1338
+ ...H(i, c, $),
1339
+ "aria-labelledby": Ct(e, n.key)
1338
1340
  },
1339
- ...i
1341
+ ...r
1340
1342
  };
1341
1343
  }
1342
- function mn(t, e, l) {
1343
- let { node: n, isVirtualized: o } = t, r = {
1344
+ function Sn(t, e, l) {
1345
+ let { node: n, isVirtualized: o } = t, i = {
1344
1346
  role: "row"
1345
1347
  };
1346
- return o && !(we() && "expandedKeys" in e) && (r["aria-rowindex"] = n.index + 1), {
1347
- rowProps: r
1348
+ return o && !(Re() && "expandedKeys" in e) && (i["aria-rowindex"] = n.index + 1), {
1349
+ rowProps: i
1348
1350
  };
1349
1351
  }
1350
- function gn(t, e, l) {
1352
+ function kn(t, e, l) {
1351
1353
  var n;
1352
- let { gridCellProps: o, isPressed: r } = ft(t, e, l), i = (n = t.node.column) === null || n === void 0 ? void 0 : n.key;
1353
- return i != null && e.collection.rowHeaderColumnKeys.has(i) && (o.role = "rowheader", o.id = ht(e, t.node.parentKey, i)), {
1354
+ let { gridCellProps: o, isPressed: i } = xt(t, e, l), r = (n = t.node.column) === null || n === void 0 ? void 0 : n.key;
1355
+ return r != null && e.collection.rowHeaderColumnKeys.has(r) && (o.role = "rowheader", o.id = Dt(e, t.node.parentKey, r)), {
1354
1356
  gridCellProps: o,
1355
- isPressed: r
1357
+ isPressed: i
1356
1358
  };
1357
1359
  }
1358
- function bn(t) {
1360
+ function En(t) {
1359
1361
  return t && t.__esModule ? t.default : t;
1360
1362
  }
1361
- function vn(t, e) {
1363
+ function zn(t, e) {
1362
1364
  let { key: l } = t;
1363
- const { checkboxProps: n } = un(t, e);
1365
+ const { checkboxProps: n } = vn(t, e);
1364
1366
  return {
1365
1367
  checkboxProps: {
1366
1368
  ...n,
1367
- "aria-labelledby": `${n.id} ${mt(e, l)}`
1369
+ "aria-labelledby": `${n.id} ${Ct(e, l)}`
1368
1370
  }
1369
1371
  };
1370
1372
  }
1371
- function yn(t) {
1373
+ function Rn(t) {
1372
1374
  let { isEmpty: e, isSelectAll: l, selectionMode: n } = t.selectionManager;
1373
1375
  return {
1374
1376
  checkboxProps: {
1375
- "aria-label": fe(bn(ve), "@react-aria/table").format(n === "single" ? "select" : "selectAll"),
1377
+ "aria-label": ve(En(Se), "@react-aria/table").format(n === "single" ? "select" : "selectAll"),
1376
1378
  isSelected: l,
1377
1379
  isDisabled: n !== "multiple" || t.collection.size === 0 || t.collection.rows.length === 1 && t.collection.rows[0].type === "loader",
1378
1380
  isIndeterminate: !e && !l,
@@ -1380,132 +1382,132 @@ function yn(t) {
1380
1382
  }
1381
1383
  };
1382
1384
  }
1383
- function $n(t) {
1385
+ function An(t) {
1384
1386
  return t && t.__esModule ? t.default : t;
1385
1387
  }
1386
- function xn(t, e, l) {
1387
- let { column: n, triggerRef: o, isDisabled: r, onResizeStart: i, onResize: u, onResizeEnd: s, "aria-label": d } = t;
1388
- const c = fe($n(ve), "@react-aria/table");
1389
- let a = Ee(), p = e.resizingColumn === n.key, f = M(p), h = M(null), b = M(!1), v = e.tableState.isKeyboardNavigationDisabled, { direction: m } = ce(), { keyboardProps: x } = Pl({
1390
- onKeyDown: (E) => {
1391
- v ? (E.key === "Escape" || E.key === "Enter" || E.key === " " || E.key === "Tab") && (E.preventDefault(), y(n)) : (E.continuePropagation(), E.key === "Enter" && g(n));
1392
- }
1393
- }), g = me((E) => {
1394
- f.current || (h.current = e.updateResizedColumns(E.key, e.getColumnWidth(E.key)), e.startResize(E.key), e.tableState.setKeyboardNavigationDisabled(!0), i?.(h.current)), f.current = !0;
1395
- }), $ = me((E, A) => {
1396
- let F = e.updateResizedColumns(E.key, A);
1397
- u?.(F), h.current = F;
1398
- }), y = me((E) => {
1399
- f.current && (h.current == null && (h.current = e.updateResizedColumns(E.key, e.getColumnWidth(E.key))), e.endResize(), e.tableState.setKeyboardNavigationDisabled(!1), s?.(h.current), f.current = !1, o?.current && !b.current && X(o.current)), h.current = null;
1388
+ function Bn(t, e, l) {
1389
+ let { column: n, triggerRef: o, isDisabled: i, onResizeStart: r, onResize: u, onResizeEnd: c, "aria-label": a } = t;
1390
+ const d = ve(An(Se), "@react-aria/table");
1391
+ let s = Be(), p = e.resizingColumn === n.key, f = M(p), h = M(null), g = M(!1), y = e.tableState.isKeyboardNavigationDisabled, { direction: v } = be(), { keyboardProps: x } = jl({
1392
+ onKeyDown: (S) => {
1393
+ y ? (S.key === "Escape" || S.key === "Enter" || S.key === " " || S.key === "Tab") && (S.preventDefault(), b(n)) : (S.continuePropagation(), S.key === "Enter" && m(n));
1394
+ }
1395
+ }), m = xe((S) => {
1396
+ f.current || (h.current = e.updateResizedColumns(S.key, e.getColumnWidth(S.key)), e.startResize(S.key), e.tableState.setKeyboardNavigationDisabled(!0), r?.(h.current)), f.current = !0;
1397
+ }), $ = xe((S, A) => {
1398
+ let U = e.updateResizedColumns(S.key, A);
1399
+ u?.(U), h.current = U;
1400
+ }), b = xe((S) => {
1401
+ f.current && (h.current == null && (h.current = e.updateResizedColumns(S.key, e.getColumnWidth(S.key))), e.endResize(), e.tableState.setKeyboardNavigationDisabled(!1), c?.(h.current), f.current = !1, o?.current && !g.current && q(o.current)), h.current = null;
1400
1402
  });
1401
- const D = M(0), { moveProps: k } = tn({
1403
+ const w = M(0), { moveProps: C } = fn({
1402
1404
  onMoveStart() {
1403
- D.current = e.getColumnWidth(n.key), g(n);
1405
+ w.current = e.getColumnWidth(n.key), m(n);
1404
1406
  },
1405
- onMove(E) {
1406
- let { deltaX: A, deltaY: F, pointerType: sl } = E;
1407
- m === "rtl" && (A *= -1), sl === "keyboard" && (F !== 0 && A === 0 && (A = F * -1), A *= 10), A !== 0 && (D.current += A, $(n, D.current));
1407
+ onMove(S) {
1408
+ let { deltaX: A, deltaY: U, pointerType: ke } = S;
1409
+ v === "rtl" && (A *= -1), ke === "keyboard" && (U !== 0 && A === 0 && (A = U * -1), A *= 10), A !== 0 && (w.current += A, $(n, w.current));
1408
1410
  },
1409
- onMoveEnd(E) {
1410
- let { pointerType: A } = E;
1411
- D.current = 0, (A === "mouse" || A === "touch" && b.current) && y(n);
1411
+ onMoveEnd(S) {
1412
+ let { pointerType: A } = S;
1413
+ w.current = 0, (A === "mouse" || A === "touch" && g.current) && b(n);
1412
1414
  }
1413
1415
  });
1414
- let K = L((E) => {
1416
+ let B = V((S) => {
1415
1417
  var A;
1416
- v && ((A = k.onKeyDown) === null || A === void 0 || A.call(k, E));
1418
+ y && ((A = C.onKeyDown) === null || A === void 0 || A.call(C, S));
1417
1419
  }, [
1418
- v,
1419
- k
1420
- ]), R = Math.floor(e.getColumnMinWidth(n.key)), S = Math.floor(e.getColumnMaxWidth(n.key));
1421
- S === 1 / 0 && (S = Number.MAX_SAFE_INTEGER);
1422
- let z = Math.floor(e.getColumnWidth(n.key)), P = Nl();
1423
- P === "virtual" && typeof window < "u" && "ontouchstart" in window && (P = "touch");
1424
- let V = o?.current == null && (P === "keyboard" || P === "virtual") && !p ? c.format("resizerDescription") : void 0, U = Te(V), T = {
1425
- "aria-label": d,
1420
+ y,
1421
+ C
1422
+ ]), P = Math.floor(e.getColumnMinWidth(n.key)), E = Math.floor(e.getColumnMaxWidth(n.key));
1423
+ E === 1 / 0 && (E = Number.MAX_SAFE_INTEGER);
1424
+ let W = Math.floor(e.getColumnWidth(n.key)), K = Ll();
1425
+ K === "virtual" && typeof window < "u" && "ontouchstart" in window && (K = "touch");
1426
+ let T = o?.current == null && (K === "keyboard" || K === "virtual") && !p ? d.format("resizerDescription") : void 0, O = He(T), F = {
1427
+ "aria-label": a,
1426
1428
  "aria-orientation": "horizontal",
1427
- "aria-labelledby": `${a} ${pt(e.tableState, n.key)}`,
1428
- "aria-valuetext": c.format("columnSize", {
1429
- value: z
1429
+ "aria-labelledby": `${s} ${wt(e.tableState, n.key)}`,
1430
+ "aria-valuetext": d.format("columnSize", {
1431
+ value: W
1430
1432
  }),
1431
1433
  type: "range",
1432
- min: R,
1433
- max: S,
1434
- value: z,
1435
- ...U
1434
+ min: P,
1435
+ max: E,
1436
+ value: W,
1437
+ ...O
1436
1438
  };
1437
- const j = L(() => {
1438
- l.current && X(l.current);
1439
+ const Y = V(() => {
1440
+ l.current && q(l.current);
1439
1441
  }, [
1440
1442
  l
1441
1443
  ]);
1442
- let O = e.resizingColumn, le = M(null);
1443
- oe(() => {
1444
- if (le.current !== O && O != null && O === n.key) {
1445
- b.current = document.activeElement === l.current, g(n);
1446
- let E = setTimeout(() => j(), 0), A = setTimeout(j, 400);
1444
+ let L = e.resizingColumn, te = M(null);
1445
+ se(() => {
1446
+ if (te.current !== L && L != null && L === n.key) {
1447
+ g.current = document.activeElement === l.current, m(n);
1448
+ let S = setTimeout(() => Y(), 0), A = setTimeout(Y, 400);
1447
1449
  return () => {
1448
- clearTimeout(E), clearTimeout(A);
1450
+ clearTimeout(S), clearTimeout(A);
1449
1451
  };
1450
1452
  }
1451
- le.current = O;
1453
+ te.current = L;
1452
1454
  }, [
1453
- O,
1455
+ L,
1454
1456
  n,
1455
- j,
1457
+ Y,
1456
1458
  l,
1457
- g
1459
+ m
1458
1460
  ]);
1459
- let ye = (E) => {
1460
- let A = e.getColumnWidth(n.key), F = parseFloat(E.target.value);
1461
- F > A ? F = A + 10 : F = A - 10, $(n, F);
1462
- }, { pressProps: $e } = ut({
1461
+ let le = (S) => {
1462
+ let A = e.getColumnWidth(n.key), U = parseFloat(S.target.value);
1463
+ U > A ? U = A + 10 : U = A - 10, $(n, U);
1464
+ }, { pressProps: _ } = bt({
1463
1465
  preventFocusOnPress: !0,
1464
- onPressStart: (E) => {
1465
- if (!(E.ctrlKey || E.altKey || E.metaKey || E.shiftKey || E.pointerType === "keyboard")) {
1466
- if (E.pointerType === "virtual" && e.resizingColumn != null) {
1467
- y(n);
1466
+ onPressStart: (S) => {
1467
+ if (!(S.ctrlKey || S.altKey || S.metaKey || S.shiftKey || S.pointerType === "keyboard")) {
1468
+ if (S.pointerType === "virtual" && e.resizingColumn != null) {
1469
+ b(n);
1468
1470
  return;
1469
1471
  }
1470
- j(), E.pointerType !== "virtual" && g(n);
1472
+ Y(), S.pointerType !== "virtual" && m(n);
1471
1473
  }
1472
1474
  },
1473
- onPress: (E) => {
1474
- (E.pointerType === "touch" && b.current || E.pointerType === "mouse") && e.resizingColumn != null && y(n);
1475
+ onPress: (S) => {
1476
+ (S.pointerType === "touch" && g.current || S.pointerType === "mouse") && e.resizingColumn != null && b(n);
1475
1477
  }
1476
- }), { visuallyHiddenProps: xe } = ze();
1478
+ }), { visuallyHiddenProps: z } = Pe();
1477
1479
  return {
1478
- resizerProps: W(x, {
1479
- ...k,
1480
- onKeyDown: K
1481
- }, $e, {
1480
+ resizerProps: H(x, {
1481
+ ...C,
1482
+ onKeyDown: B
1483
+ }, _, {
1482
1484
  style: {
1483
1485
  touchAction: "none"
1484
1486
  }
1485
1487
  }),
1486
- inputProps: W(xe, {
1487
- id: a,
1488
+ inputProps: H(z, {
1489
+ id: s,
1488
1490
  onBlur: () => {
1489
- y(n);
1491
+ b(n);
1490
1492
  },
1491
- onChange: ye,
1492
- disabled: r
1493
- }, T),
1493
+ onChange: le,
1494
+ disabled: i
1495
+ }, F),
1494
1496
  isResizing: p
1495
1497
  };
1496
1498
  }
1497
- function Zt() {
1498
- return on();
1499
+ function il() {
1500
+ return mn();
1499
1501
  }
1500
- function Dn(t) {
1502
+ function Pn(t) {
1501
1503
  return t != null && (!isNaN(t) || String(t).match(/^(\d+)(?=%$)/) !== null);
1502
1504
  }
1503
- function Cn(t) {
1505
+ function Kn(t) {
1504
1506
  if (!t || typeof t == "number") return 1;
1505
1507
  let e = t.match(/^(.+)(?=fr$)/);
1506
1508
  return e ? parseFloat(e[0]) : (process.env.NODE_ENV !== "production" && console.warn(`width: ${t} is not a supported format, width should be a number (ex. 150), percentage (ex. '50%') or fr unit (ex. '2fr')`, "defaulting to '1fr'"), 1);
1507
1509
  }
1508
- function We(t, e) {
1510
+ function Oe(t, e) {
1509
1511
  if (typeof t == "string") {
1510
1512
  let l = t.match(/^(\d+)(?=%$)/);
1511
1513
  if (!l) throw new Error("Only percentages or numbers are supported for static column widths");
@@ -1513,62 +1515,62 @@ function We(t, e) {
1513
1515
  }
1514
1516
  return t;
1515
1517
  }
1516
- function Qt(t, e) {
1517
- return t != null ? We(t, e) : Number.MAX_SAFE_INTEGER;
1518
+ function rl(t, e) {
1519
+ return t != null ? Oe(t, e) : Number.MAX_SAFE_INTEGER;
1518
1520
  }
1519
- function Jt(t, e) {
1520
- return t != null ? We(t, e) : 0;
1521
+ function al(t, e) {
1522
+ return t != null ? Oe(t, e) : 0;
1521
1523
  }
1522
- function wn(t, e, l, n, o) {
1523
- let r = !1, i = e.map((u, s) => {
1524
- var d, c, a, p;
1525
- let f = l.get(u.key) != null ? (d = l.get(u.key)) !== null && d !== void 0 ? d : "1fr" : (p = (a = (c = u.width) !== null && c !== void 0 ? c : u.defaultWidth) !== null && a !== void 0 ? a : n?.(s)) !== null && p !== void 0 ? p : "1fr", h = !1, b = 0, v = 0, m = 0;
1526
- Dn(f) ? (b = We(f, t), h = !0) : (v = Cn(f), v <= 0 && (h = !0));
1527
- var x, g;
1528
- let $ = Jt((g = (x = u.minWidth) !== null && x !== void 0 ? x : o?.(s)) !== null && g !== void 0 ? g : 0, t), y = Qt(u.maxWidth, t), D = Math.max($, Math.min(b, y));
1529
- return h ? m = D : b > D && (h = !0, m = D), h || (r = !0), {
1524
+ function Mn(t, e, l, n, o) {
1525
+ let i = !1, r = e.map((u, c) => {
1526
+ var a, d, s, p;
1527
+ let f = l.get(u.key) != null ? (a = l.get(u.key)) !== null && a !== void 0 ? a : "1fr" : (p = (s = (d = u.width) !== null && d !== void 0 ? d : u.defaultWidth) !== null && s !== void 0 ? s : n?.(c)) !== null && p !== void 0 ? p : "1fr", h = !1, g = 0, y = 0, v = 0;
1528
+ Pn(f) ? (g = Oe(f, t), h = !0) : (y = Kn(f), y <= 0 && (h = !0));
1529
+ var x, m;
1530
+ let $ = al((m = (x = u.minWidth) !== null && x !== void 0 ? x : o?.(c)) !== null && m !== void 0 ? m : 0, t), b = rl(u.maxWidth, t), w = Math.max($, Math.min(g, b));
1531
+ return h ? v = w : g > w && (h = !0, v = w), h || (i = !0), {
1530
1532
  frozen: h,
1531
- baseSize: b,
1532
- hypotheticalMainSize: D,
1533
+ baseSize: g,
1534
+ hypotheticalMainSize: w,
1533
1535
  min: $,
1534
- max: y,
1535
- flex: v,
1536
- targetMainSize: m,
1536
+ max: b,
1537
+ flex: y,
1538
+ targetMainSize: v,
1537
1539
  violation: 0
1538
1540
  };
1539
1541
  });
1540
- for (; r; ) {
1541
- let u = 0, s = 0;
1542
- i.forEach((a) => {
1543
- a.frozen ? u += a.targetMainSize : (u += a.baseSize, s += a.flex);
1542
+ for (; i; ) {
1543
+ let u = 0, c = 0;
1544
+ r.forEach((s) => {
1545
+ s.frozen ? u += s.targetMainSize : (u += s.baseSize, c += s.flex);
1544
1546
  });
1545
- let d = t - u;
1546
- d > 0 && i.forEach((a) => {
1547
- if (!a.frozen) {
1548
- let p = a.flex / s;
1549
- a.targetMainSize = a.baseSize + p * d;
1547
+ let a = t - u;
1548
+ a > 0 && r.forEach((s) => {
1549
+ if (!s.frozen) {
1550
+ let p = s.flex / c;
1551
+ s.targetMainSize = s.baseSize + p * a;
1550
1552
  }
1551
1553
  });
1552
- let c = 0;
1553
- i.forEach((a) => {
1554
- if (a.violation = 0, !a.frozen) {
1555
- let { min: p, max: f, targetMainSize: h } = a;
1556
- a.targetMainSize = Math.max(p, Math.min(h, f)), a.violation = a.targetMainSize - h, c += a.violation;
1554
+ let d = 0;
1555
+ r.forEach((s) => {
1556
+ if (s.violation = 0, !s.frozen) {
1557
+ let { min: p, max: f, targetMainSize: h } = s;
1558
+ s.targetMainSize = Math.max(p, Math.min(h, f)), s.violation = s.targetMainSize - h, d += s.violation;
1557
1559
  }
1558
- }), r = !1, i.forEach((a) => {
1559
- c === 0 || Math.sign(c) === Math.sign(a.violation) ? a.frozen = !0 : a.frozen || (r = !0);
1560
+ }), i = !1, r.forEach((s) => {
1561
+ d === 0 || Math.sign(d) === Math.sign(s.violation) ? s.frozen = !0 : s.frozen || (i = !0);
1560
1562
  });
1561
1563
  }
1562
- return kn(i);
1564
+ return Nn(r);
1563
1565
  }
1564
- function kn(t) {
1566
+ function Nn(t) {
1565
1567
  let e = 0, l = 0, n = [];
1566
1568
  return t.forEach(function(o) {
1567
- let r = o.targetMainSize, i = Math.round(r + e) - l;
1568
- e += r, l += i, n.push(i);
1569
+ let i = o.targetMainSize, r = Math.round(i + e) - l;
1570
+ e += i, l += r, n.push(r);
1569
1571
  }), n;
1570
1572
  }
1571
- class Sn {
1573
+ class Tn {
1572
1574
  /** Takes an array of columns and splits it into 2 maps of columns with controlled and columns with uncontrolled widths. */
1573
1575
  splitColumnsIntoControlledAndUncontrolled(e) {
1574
1576
  return e.reduce((l, n) => (n.props.width != null ? l[0].set(n.key, n) : l[1].set(n.key, n), l), [
@@ -1578,21 +1580,21 @@ class Sn {
1578
1580
  }
1579
1581
  /** Takes uncontrolled and controlled widths and joins them into a single Map. */
1580
1582
  recombineColumns(e, l, n, o) {
1581
- return new Map(e.map((r) => n.has(r.key) ? [
1582
- r.key,
1583
- l.get(r.key)
1583
+ return new Map(e.map((i) => n.has(i.key) ? [
1584
+ i.key,
1585
+ l.get(i.key)
1584
1586
  ] : [
1585
- r.key,
1586
- o.get(r.key).props.width
1587
+ i.key,
1588
+ o.get(i.key).props.width
1587
1589
  ]));
1588
1590
  }
1589
1591
  /** Used to make an initial Map of the uncontrolled widths based on default widths. */
1590
1592
  getInitialUncontrolledWidths(e) {
1591
1593
  return new Map(Array.from(e).map(([l, n]) => {
1592
- var o, r, i, u;
1594
+ var o, i, r, u;
1593
1595
  return [
1594
1596
  l,
1595
- (u = (i = n.props.defaultWidth) !== null && i !== void 0 ? i : (o = (r = this).getDefaultWidth) === null || o === void 0 ? void 0 : o.call(r, n)) !== null && u !== void 0 ? u : "1fr"
1597
+ (u = (r = n.props.defaultWidth) !== null && r !== void 0 ? r : (o = (i = this).getDefaultWidth) === null || o === void 0 ? void 0 : o.call(i, n)) !== null && u !== void 0 ? u : "1fr"
1596
1598
  ];
1597
1599
  }));
1598
1600
  }
@@ -1609,21 +1611,21 @@ class Sn {
1609
1611
  return (l = this.columnMaxWidths.get(e)) !== null && l !== void 0 ? l : 0;
1610
1612
  }
1611
1613
  resizeColumnWidth(e, l, n, o) {
1612
- let r = this.columnWidths, i = !0, u = /* @__PURE__ */ new Map();
1613
- return o = Math.max(this.getColumnMinWidth(n), Math.min(this.getColumnMaxWidth(n), Math.floor(o))), e.columns.forEach((s) => {
1614
- var d, c;
1615
- s.key === n ? (u.set(s.key, o), i = !1) : i ? u.set(s.key, (d = r.get(s.key)) !== null && d !== void 0 ? d : 0) : u.set(s.key, (c = s.props.width) !== null && c !== void 0 ? c : l.get(s.key));
1614
+ let i = this.columnWidths, r = !0, u = /* @__PURE__ */ new Map();
1615
+ return o = Math.max(this.getColumnMinWidth(n), Math.min(this.getColumnMaxWidth(n), Math.floor(o))), e.columns.forEach((c) => {
1616
+ var a, d;
1617
+ c.key === n ? (u.set(c.key, o), r = !1) : r ? u.set(c.key, (a = i.get(c.key)) !== null && a !== void 0 ? a : 0) : u.set(c.key, (d = c.props.width) !== null && d !== void 0 ? d : l.get(c.key));
1616
1618
  }), u;
1617
1619
  }
1618
1620
  buildColumnWidths(e, l, n) {
1619
- return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), wn(e, l.columns.map((r) => ({
1620
- ...r.props,
1621
- key: r.key
1622
- })), n, (r) => this.getDefaultWidth(l.columns[r]), (r) => this.getDefaultMinWidth(l.columns[r])).forEach((r, i) => {
1623
- let u = l.columns[i].key, s = l.columns[i];
1624
- this.columnWidths.set(u, r);
1625
- var d;
1626
- this.columnMinWidths.set(u, Jt((d = s.props.minWidth) !== null && d !== void 0 ? d : this.getDefaultMinWidth(s), e)), this.columnMaxWidths.set(u, Qt(s.props.maxWidth, e));
1621
+ return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), Mn(e, l.columns.map((i) => ({
1622
+ ...i.props,
1623
+ key: i.key
1624
+ })), n, (i) => this.getDefaultWidth(l.columns[i]), (i) => this.getDefaultMinWidth(l.columns[i])).forEach((i, r) => {
1625
+ let u = l.columns[r].key, c = l.columns[r];
1626
+ this.columnWidths.set(u, i);
1627
+ var a;
1628
+ this.columnMinWidths.set(u, al((a = c.props.minWidth) !== null && a !== void 0 ? a : this.getDefaultMinWidth(c), e)), this.columnMaxWidths.set(u, rl(c.props.maxWidth, e));
1627
1629
  }), this.columnWidths;
1628
1630
  }
1629
1631
  constructor(e) {
@@ -1634,50 +1636,50 @@ class Sn {
1634
1636
  this.getDefaultMinWidth = (n = e?.getDefaultMinWidth) !== null && n !== void 0 ? n : () => 75;
1635
1637
  }
1636
1638
  }
1637
- function En(t, e) {
1638
- let { getDefaultWidth: l, getDefaultMinWidth: n, tableWidth: o = 0 } = t, [r, i] = Z(null), u = N(() => new Sn({
1639
+ function Fn(t, e) {
1640
+ let { getDefaultWidth: l, getDefaultMinWidth: n, tableWidth: o = 0 } = t, [i, r] = Z(null), u = N(() => new Tn({
1639
1641
  getDefaultWidth: l,
1640
1642
  getDefaultMinWidth: n
1641
1643
  }), [
1642
1644
  l,
1643
1645
  n
1644
- ]), [s, d] = N(() => u.splitColumnsIntoControlledAndUncontrolled(e.collection.columns), [
1646
+ ]), [c, a] = N(() => u.splitColumnsIntoControlledAndUncontrolled(e.collection.columns), [
1645
1647
  e.collection.columns,
1646
1648
  u
1647
- ]), [c, a] = Z(() => u.getInitialUncontrolledWidths(d)), [p, f] = Z(e.collection.columns);
1649
+ ]), [d, s] = Z(() => u.getInitialUncontrolledWidths(a)), [p, f] = Z(e.collection.columns);
1648
1650
  if (e.collection.columns !== p) {
1649
- if (e.collection.columns.length !== p.length || e.collection.columns.some((g, $) => g.key !== p[$].key)) {
1650
- let g = u.getInitialUncontrolledWidths(d);
1651
- a(g);
1651
+ if (e.collection.columns.length !== p.length || e.collection.columns.some((m, $) => m.key !== p[$].key)) {
1652
+ let m = u.getInitialUncontrolledWidths(a);
1653
+ s(m);
1652
1654
  }
1653
1655
  f(e.collection.columns);
1654
1656
  }
1655
- let h = N(() => u.recombineColumns(e.collection.columns, c, d, s), [
1657
+ let h = N(() => u.recombineColumns(e.collection.columns, d, a, c), [
1656
1658
  e.collection.columns,
1657
- c,
1658
1659
  d,
1659
- s,
1660
+ a,
1661
+ c,
1660
1662
  u
1661
- ]), b = L((g) => {
1662
- i(g);
1663
+ ]), g = V((m) => {
1664
+ r(m);
1663
1665
  }, [
1664
- i
1665
- ]), v = L((g, $) => {
1666
- let y = u.resizeColumnWidth(e.collection, c, g, $), D = new Map(Array.from(d).map(([k]) => [
1667
- k,
1668
- y.get(k)
1666
+ r
1667
+ ]), y = V((m, $) => {
1668
+ let b = u.resizeColumnWidth(e.collection, d, m, $), w = new Map(Array.from(a).map(([C]) => [
1669
+ C,
1670
+ b.get(C)
1669
1671
  ]));
1670
- return D.set(g, $), a(D), y;
1672
+ return w.set(m, $), s(w), b;
1671
1673
  }, [
1672
- d,
1673
1674
  a,
1675
+ s,
1674
1676
  u,
1675
1677
  e.collection,
1676
- c
1677
- ]), m = L(() => {
1678
- i(null);
1678
+ d
1679
+ ]), v = V(() => {
1680
+ r(null);
1679
1681
  }, [
1680
- i
1682
+ r
1681
1683
  ]), x = N(() => u.buildColumnWidths(o, e.collection, h), [
1682
1684
  o,
1683
1685
  e.collection,
@@ -1685,83 +1687,83 @@ function En(t, e) {
1685
1687
  u
1686
1688
  ]);
1687
1689
  return N(() => ({
1688
- resizingColumn: r,
1689
- updateResizedColumns: v,
1690
- startResize: b,
1691
- endResize: m,
1692
- getColumnWidth: (g) => u.getColumnWidth(g),
1693
- getColumnMinWidth: (g) => u.getColumnMinWidth(g),
1694
- getColumnMaxWidth: (g) => u.getColumnMaxWidth(g),
1690
+ resizingColumn: i,
1691
+ updateResizedColumns: y,
1692
+ startResize: g,
1693
+ endResize: v,
1694
+ getColumnWidth: (m) => u.getColumnWidth(m),
1695
+ getColumnMinWidth: (m) => u.getColumnMinWidth(m),
1696
+ getColumnMaxWidth: (m) => u.getColumnMaxWidth(m),
1695
1697
  tableState: e,
1696
1698
  columnWidths: x
1697
1699
  }), [
1698
1700
  u,
1699
1701
  x,
1700
- r,
1702
+ i,
1703
+ y,
1704
+ g,
1701
1705
  v,
1702
- b,
1703
- m,
1704
1706
  e
1705
1707
  ]);
1706
1708
  }
1707
- function zn(t) {
1708
- let { collection: e, focusMode: l } = t, n = t.UNSAFE_selectionState || rt(t), o = N(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
1709
+ function In(t) {
1710
+ let { collection: e, focusMode: l } = t, n = t.UNSAFE_selectionState || ht(t), o = N(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
1709
1711
  t.disabledKeys
1710
- ]), r = n.setFocusedKey;
1711
- n.setFocusedKey = (s, d) => {
1712
- if (l === "cell" && s != null) {
1713
- let h = e.getItem(s);
1712
+ ]), i = n.setFocusedKey;
1713
+ n.setFocusedKey = (c, a) => {
1714
+ if (l === "cell" && c != null) {
1715
+ let h = e.getItem(c);
1714
1716
  if (h?.type === "item") {
1715
- var c, a;
1716
- let b = I(h, e);
1717
+ var d, s;
1718
+ let g = I(h, e);
1717
1719
  var p, f;
1718
- d === "last" ? s = (p = (c = _(b)) === null || c === void 0 ? void 0 : c.key) !== null && p !== void 0 ? p : null : s = (f = (a = J(b)) === null || a === void 0 ? void 0 : a.key) !== null && f !== void 0 ? f : null;
1720
+ a === "last" ? c = (p = (d = oe(g)) === null || d === void 0 ? void 0 : d.key) !== null && p !== void 0 ? p : null : c = (f = (s = ne(g)) === null || s === void 0 ? void 0 : s.key) !== null && f !== void 0 ? f : null;
1719
1721
  }
1720
1722
  }
1721
- r(s, d);
1723
+ i(c, a);
1722
1724
  };
1723
- let i = N(() => new hl(e, n), [
1725
+ let r = N(() => new Dl(e, n), [
1724
1726
  e,
1725
1727
  n
1726
1728
  ]);
1727
1729
  const u = M(null);
1728
- return oe(() => {
1730
+ return se(() => {
1729
1731
  if (n.focusedKey != null && u.current && !e.getItem(n.focusedKey)) {
1730
- const s = u.current.getItem(n.focusedKey), d = s?.parentKey != null && (s.type === "cell" || s.type === "rowheader" || s.type === "column") ? u.current.getItem(s.parentKey) : s;
1731
- if (!d) {
1732
+ const c = u.current.getItem(n.focusedKey), a = c?.parentKey != null && (c.type === "cell" || c.type === "rowheader" || c.type === "column") ? u.current.getItem(c.parentKey) : c;
1733
+ if (!a) {
1732
1734
  n.setFocusedKey(null);
1733
1735
  return;
1734
1736
  }
1735
- const c = u.current.rows, a = e.rows, p = c.length - a.length;
1736
- let f = Math.min(p > 1 ? Math.max(d.index - p + 1, 0) : d.index, a.length - 1), h = null;
1737
+ const d = u.current.rows, s = e.rows, p = d.length - s.length;
1738
+ let f = Math.min(p > 1 ? Math.max(a.index - p + 1, 0) : a.index, s.length - 1), h = null;
1737
1739
  for (; f >= 0; ) {
1738
- if (!i.isDisabled(a[f].key) && a[f].type !== "headerrow") {
1739
- h = a[f];
1740
+ if (!r.isDisabled(s[f].key) && s[f].type !== "headerrow") {
1741
+ h = s[f];
1740
1742
  break;
1741
1743
  }
1742
- f < a.length - 1 ? f++ : (f > d.index && (f = d.index), f--);
1744
+ f < s.length - 1 ? f++ : (f > a.index && (f = a.index), f--);
1743
1745
  }
1744
1746
  if (h) {
1745
- const b = h.hasChildNodes ? [
1747
+ const g = h.hasChildNodes ? [
1746
1748
  ...I(h, e)
1747
- ] : [], v = h.hasChildNodes && d !== s && s && s.index < b.length ? b[s.index].key : h.key;
1748
- n.setFocusedKey(v);
1749
+ ] : [], y = h.hasChildNodes && a !== c && c && c.index < g.length ? g[c.index].key : h.key;
1750
+ n.setFocusedKey(y);
1749
1751
  } else n.setFocusedKey(null);
1750
1752
  }
1751
1753
  u.current = e;
1752
1754
  }, [
1753
1755
  e,
1754
- i,
1756
+ r,
1755
1757
  n,
1756
1758
  n.focusedKey
1757
1759
  ]), {
1758
1760
  collection: e,
1759
1761
  disabledKeys: o,
1760
1762
  isKeyboardNavigationDisabled: !1,
1761
- selectionManager: i
1763
+ selectionManager: r
1762
1764
  };
1763
1765
  }
1764
- class An {
1766
+ class Wn {
1765
1767
  *[Symbol.iterator]() {
1766
1768
  yield* [
1767
1769
  ...this.rows
@@ -1814,152 +1816,152 @@ class An {
1814
1816
  }
1815
1817
  constructor(e) {
1816
1818
  this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
1817
- let l = (a) => {
1818
- let p = this.keyMap.get(a.key);
1819
- e.visitNode && (a = e.visitNode(a)), this.keyMap.set(a.key, a);
1820
- let f = /* @__PURE__ */ new Set(), h = null, b = !1;
1821
- if (a.type === "item") {
1822
- var v;
1823
- for (let y of a.childNodes) if (((v = y.props) === null || v === void 0 ? void 0 : v.colSpan) !== void 0) {
1824
- b = !0;
1819
+ let l = (s) => {
1820
+ let p = this.keyMap.get(s.key);
1821
+ e.visitNode && (s = e.visitNode(s)), this.keyMap.set(s.key, s);
1822
+ let f = /* @__PURE__ */ new Set(), h = null, g = !1;
1823
+ if (s.type === "item") {
1824
+ var y;
1825
+ for (let b of s.childNodes) if (((y = b.props) === null || y === void 0 ? void 0 : y.colSpan) !== void 0) {
1826
+ g = !0;
1825
1827
  break;
1826
1828
  }
1827
1829
  }
1828
- for (let y of a.childNodes) {
1829
- if (y.type === "cell" && b) {
1830
- var m, x;
1831
- y.colspan = (m = y.props) === null || m === void 0 ? void 0 : m.colSpan, y.colSpan = (x = y.props) === null || x === void 0 ? void 0 : x.colSpan;
1832
- var g, $;
1833
- y.colIndex = h ? ((g = h.colIndex) !== null && g !== void 0 ? g : h.index) + (($ = h.colSpan) !== null && $ !== void 0 ? $ : 1) : y.index;
1830
+ for (let b of s.childNodes) {
1831
+ if (b.type === "cell" && g) {
1832
+ var v, x;
1833
+ b.colspan = (v = b.props) === null || v === void 0 ? void 0 : v.colSpan, b.colSpan = (x = b.props) === null || x === void 0 ? void 0 : x.colSpan;
1834
+ var m, $;
1835
+ b.colIndex = h ? ((m = h.colIndex) !== null && m !== void 0 ? m : h.index) + (($ = h.colSpan) !== null && $ !== void 0 ? $ : 1) : b.index;
1834
1836
  }
1835
- y.type === "cell" && y.parentKey == null && (y.parentKey = a.key), f.add(y.key), h ? (h.nextKey = y.key, y.prevKey = h.key) : y.prevKey = null, l(y), h = y;
1837
+ b.type === "cell" && b.parentKey == null && (b.parentKey = s.key), f.add(b.key), h ? (h.nextKey = b.key, b.prevKey = h.key) : b.prevKey = null, l(b), h = b;
1836
1838
  }
1837
1839
  if (h && (h.nextKey = null), p)
1838
- for (let y of p.childNodes) f.has(y.key) || n(y);
1839
- }, n = (a) => {
1840
- this.keyMap.delete(a.key);
1841
- for (let p of a.childNodes) this.keyMap.get(p.key) === p && n(p);
1840
+ for (let b of p.childNodes) f.has(b.key) || n(b);
1841
+ }, n = (s) => {
1842
+ this.keyMap.delete(s.key);
1843
+ for (let p of s.childNodes) this.keyMap.get(p.key) === p && n(p);
1842
1844
  }, o = null;
1843
- for (let [a, p] of e.items.entries()) {
1844
- var r, i, u, s, d, c;
1845
+ for (let [s, p] of e.items.entries()) {
1846
+ var i, r, u, c, a, d;
1845
1847
  let f = {
1846
1848
  ...p,
1847
- level: (r = p.level) !== null && r !== void 0 ? r : 0,
1848
- key: (i = p.key) !== null && i !== void 0 ? i : "row-" + a,
1849
+ level: (i = p.level) !== null && i !== void 0 ? i : 0,
1850
+ key: (r = p.key) !== null && r !== void 0 ? r : "row-" + s,
1849
1851
  type: (u = p.type) !== null && u !== void 0 ? u : "row",
1850
- value: (s = p.value) !== null && s !== void 0 ? s : null,
1852
+ value: (c = p.value) !== null && c !== void 0 ? c : null,
1851
1853
  hasChildNodes: !0,
1852
1854
  childNodes: [
1853
1855
  ...p.childNodes
1854
1856
  ],
1855
1857
  rendered: p.rendered,
1856
- textValue: (d = p.textValue) !== null && d !== void 0 ? d : "",
1857
- index: (c = p.index) !== null && c !== void 0 ? c : a
1858
+ textValue: (a = p.textValue) !== null && a !== void 0 ? a : "",
1859
+ index: (d = p.index) !== null && d !== void 0 ? d : s
1858
1860
  };
1859
1861
  o ? (o.nextKey = f.key, f.prevKey = o.key) : f.prevKey = null, this.rows.push(f), l(f), o = f;
1860
1862
  }
1861
1863
  o && (o.nextKey = null);
1862
1864
  }
1863
1865
  }
1864
- const _t = "row-header-column-" + /* @__PURE__ */ Math.random().toString(36).slice(2);
1865
- let Ke = "row-header-column-" + /* @__PURE__ */ Math.random().toString(36).slice(2);
1866
- for (; _t === Ke; ) Ke = "row-header-column-" + Math.random().toString(36).slice(2);
1867
- function el(t, e) {
1866
+ const ul = "row-header-column-" + /* @__PURE__ */ Math.random().toString(36).slice(2);
1867
+ let Te = "row-header-column-" + /* @__PURE__ */ Math.random().toString(36).slice(2);
1868
+ for (; ul === Te; ) Te = "row-header-column-" + Math.random().toString(36).slice(2);
1869
+ function sl(t, e) {
1868
1870
  if (e.length === 0) return [];
1869
1871
  let l = [], n = /* @__PURE__ */ new Map();
1870
- for (let c of e) {
1871
- let a = c.parentKey, p = [
1872
- c
1872
+ for (let d of e) {
1873
+ let s = d.parentKey, p = [
1874
+ d
1873
1875
  ];
1874
- for (; a; ) {
1875
- let f = t.get(a);
1876
+ for (; s; ) {
1877
+ let f = t.get(s);
1876
1878
  if (!f) break;
1877
1879
  if (n.has(f)) {
1878
- var o, r;
1879
- (r = (o = f).colSpan) !== null && r !== void 0 || (o.colSpan = 0), f.colSpan++, f.colspan = f.colSpan;
1880
- let { column: h, index: b } = n.get(f);
1881
- if (b > p.length) break;
1882
- for (let v = b; v < p.length; v++) h.splice(v, 0, null);
1883
- for (let v = p.length; v < h.length; v++)
1884
- h[v] && n.has(h[v]) && (n.get(h[v]).index = v);
1880
+ var o, i;
1881
+ (i = (o = f).colSpan) !== null && i !== void 0 || (o.colSpan = 0), f.colSpan++, f.colspan = f.colSpan;
1882
+ let { column: h, index: g } = n.get(f);
1883
+ if (g > p.length) break;
1884
+ for (let y = g; y < p.length; y++) h.splice(y, 0, null);
1885
+ for (let y = p.length; y < h.length; y++)
1886
+ h[y] && n.has(h[y]) && (n.get(h[y]).index = y);
1885
1887
  } else
1886
1888
  f.colSpan = 1, f.colspan = 1, p.push(f), n.set(f, {
1887
1889
  column: p,
1888
1890
  index: p.length - 1
1889
1891
  });
1890
- a = f.parentKey;
1892
+ s = f.parentKey;
1891
1893
  }
1892
- l.push(p), c.index = l.length - 1;
1894
+ l.push(p), d.index = l.length - 1;
1893
1895
  }
1894
- let i = Math.max(...l.map((c) => c.length)), u = Array(i).fill(0).map(() => []), s = 0;
1895
- for (let c of l) {
1896
- let a = i - 1;
1897
- for (let p of c) {
1896
+ let r = Math.max(...l.map((d) => d.length)), u = Array(r).fill(0).map(() => []), c = 0;
1897
+ for (let d of l) {
1898
+ let s = r - 1;
1899
+ for (let p of d) {
1898
1900
  if (p) {
1899
- let f = u[a], h = f.reduce((b, v) => {
1900
- var m;
1901
- return b + ((m = v.colSpan) !== null && m !== void 0 ? m : 1);
1901
+ let f = u[s], h = f.reduce((g, y) => {
1902
+ var v;
1903
+ return g + ((v = y.colSpan) !== null && v !== void 0 ? v : 1);
1902
1904
  }, 0);
1903
- if (h < s) {
1904
- let b = {
1905
+ if (h < c) {
1906
+ let g = {
1905
1907
  type: "placeholder",
1906
1908
  key: "placeholder-" + p.key,
1907
- colspan: s - h,
1908
- colSpan: s - h,
1909
+ colspan: c - h,
1910
+ colSpan: c - h,
1909
1911
  index: h,
1910
1912
  value: null,
1911
1913
  rendered: null,
1912
- level: a,
1914
+ level: s,
1913
1915
  hasChildNodes: !1,
1914
1916
  childNodes: [],
1915
1917
  textValue: ""
1916
1918
  };
1917
- f.length > 0 && (f[f.length - 1].nextKey = b.key, b.prevKey = f[f.length - 1].key), f.push(b);
1919
+ f.length > 0 && (f[f.length - 1].nextKey = g.key, g.prevKey = f[f.length - 1].key), f.push(g);
1918
1920
  }
1919
- f.length > 0 && (f[f.length - 1].nextKey = p.key, p.prevKey = f[f.length - 1].key), p.level = a, p.colIndex = s, f.push(p);
1921
+ f.length > 0 && (f[f.length - 1].nextKey = p.key, p.prevKey = f[f.length - 1].key), p.level = s, p.colIndex = c, f.push(p);
1920
1922
  }
1921
- a--;
1923
+ s--;
1922
1924
  }
1923
- s++;
1925
+ c++;
1924
1926
  }
1925
- let d = 0;
1926
- for (let c of u) {
1927
- let a = c.reduce((p, f) => {
1927
+ let a = 0;
1928
+ for (let d of u) {
1929
+ let s = d.reduce((p, f) => {
1928
1930
  var h;
1929
1931
  return p + ((h = f.colSpan) !== null && h !== void 0 ? h : 1);
1930
1932
  }, 0);
1931
- if (a < e.length) {
1933
+ if (s < e.length) {
1932
1934
  let p = {
1933
1935
  type: "placeholder",
1934
- key: "placeholder-" + c[c.length - 1].key,
1935
- colSpan: e.length - a,
1936
- colspan: e.length - a,
1937
- index: a,
1936
+ key: "placeholder-" + d[d.length - 1].key,
1937
+ colSpan: e.length - s,
1938
+ colspan: e.length - s,
1939
+ index: s,
1938
1940
  value: null,
1939
1941
  rendered: null,
1940
- level: d,
1942
+ level: a,
1941
1943
  hasChildNodes: !1,
1942
1944
  childNodes: [],
1943
1945
  textValue: "",
1944
- prevKey: c[c.length - 1].key
1946
+ prevKey: d[d.length - 1].key
1945
1947
  };
1946
- c.push(p);
1948
+ d.push(p);
1947
1949
  }
1948
- d++;
1950
+ a++;
1949
1951
  }
1950
- return u.map((c, a) => ({
1952
+ return u.map((d, s) => ({
1951
1953
  type: "headerrow",
1952
- key: "headerrow-" + a,
1953
- index: a,
1954
+ key: "headerrow-" + s,
1955
+ index: s,
1954
1956
  value: null,
1955
1957
  rendered: null,
1956
1958
  level: 0,
1957
1959
  hasChildNodes: !0,
1958
- childNodes: c,
1960
+ childNodes: d,
1959
1961
  textValue: ""
1960
1962
  }));
1961
1963
  }
1962
- class Bn extends An {
1964
+ class Hn extends Wn {
1963
1965
  *[Symbol.iterator]() {
1964
1966
  yield* this.body.childNodes;
1965
1967
  }
@@ -1981,11 +1983,11 @@ class Bn extends An {
1981
1983
  }
1982
1984
  getFirstKey() {
1983
1985
  var e, l;
1984
- return (l = (e = J(this.body.childNodes)) === null || e === void 0 ? void 0 : e.key) !== null && l !== void 0 ? l : null;
1986
+ return (l = (e = ne(this.body.childNodes)) === null || e === void 0 ? void 0 : e.key) !== null && l !== void 0 ? l : null;
1985
1987
  }
1986
1988
  getLastKey() {
1987
1989
  var e, l;
1988
- return (l = (e = _(this.body.childNodes)) === null || e === void 0 ? void 0 : e.key) !== null && l !== void 0 ? l : null;
1990
+ return (l = (e = oe(this.body.childNodes)) === null || e === void 0 ? void 0 : e.key) !== null && l !== void 0 ? l : null;
1989
1991
  }
1990
1992
  getItem(e) {
1991
1993
  var l;
@@ -2007,20 +2009,20 @@ class Bn extends An {
2007
2009
  let n = this.rowHeaderColumnKeys;
2008
2010
  if (n) {
2009
2011
  let o = [];
2010
- for (let r of l.childNodes) {
2011
- let i = this.columns[r.index];
2012
- if (n.has(i.key) && r.textValue && o.push(r.textValue), o.length === n.size) break;
2012
+ for (let i of l.childNodes) {
2013
+ let r = this.columns[i.index];
2014
+ if (n.has(r.key) && i.textValue && o.push(i.textValue), o.length === n.size) break;
2013
2015
  }
2014
2016
  return o.join(" ");
2015
2017
  }
2016
2018
  return "";
2017
2019
  }
2018
2020
  constructor(e, l, n) {
2019
- let o = /* @__PURE__ */ new Set(), r = null, i = [];
2021
+ let o = /* @__PURE__ */ new Set(), i = null, r = [];
2020
2022
  if (n?.showSelectionCheckboxes) {
2021
- let a = {
2023
+ let s = {
2022
2024
  type: "column",
2023
- key: _t,
2025
+ key: ul,
2024
2026
  value: null,
2025
2027
  textValue: "",
2026
2028
  level: 0,
@@ -2032,12 +2034,12 @@ class Bn extends An {
2032
2034
  isSelectionCell: !0
2033
2035
  }
2034
2036
  };
2035
- i.unshift(a);
2037
+ r.unshift(s);
2036
2038
  }
2037
2039
  if (n?.showDragButtons) {
2038
- let a = {
2040
+ let s = {
2039
2041
  type: "column",
2040
- key: Ke,
2042
+ key: Te,
2041
2043
  value: null,
2042
2044
  textValue: "",
2043
2045
  level: 0,
@@ -2049,97 +2051,97 @@ class Bn extends An {
2049
2051
  isDragButtonCell: !0
2050
2052
  }
2051
2053
  };
2052
- i.unshift(a);
2054
+ r.unshift(s);
2053
2055
  }
2054
- let u = [], s = /* @__PURE__ */ new Map(), d = (a) => {
2055
- switch (a.type) {
2056
+ let u = [], c = /* @__PURE__ */ new Map(), a = (s) => {
2057
+ switch (s.type) {
2056
2058
  case "body":
2057
- r = a;
2059
+ i = s;
2058
2060
  break;
2059
2061
  case "column":
2060
- s.set(a.key, a), a.hasChildNodes || (i.push(a), a.props.isRowHeader && o.add(a.key));
2062
+ c.set(s.key, s), s.hasChildNodes || (r.push(s), s.props.isRowHeader && o.add(s.key));
2061
2063
  break;
2062
2064
  case "item":
2063
- u.push(a);
2065
+ u.push(s);
2064
2066
  return;
2065
2067
  }
2066
- for (let p of a.childNodes) d(p);
2068
+ for (let p of s.childNodes) a(p);
2067
2069
  };
2068
- for (let a of e) d(a);
2069
- let c = el(s, i);
2070
- if (c.forEach((a, p) => u.splice(p, 0, a)), super({
2071
- columnCount: i.length,
2070
+ for (let s of e) a(s);
2071
+ let d = sl(c, r);
2072
+ if (d.forEach((s, p) => u.splice(p, 0, s)), super({
2073
+ columnCount: r.length,
2072
2074
  items: u,
2073
- visitNode: (a) => (a.column = i[a.index], a)
2074
- }), this._size = 0, this.columns = i, this.rowHeaderColumnKeys = o, this.body = r, this.headerRows = c, this._size = [
2075
- ...r.childNodes
2075
+ visitNode: (s) => (s.column = r[s.index], s)
2076
+ }), this._size = 0, this.columns = r, this.rowHeaderColumnKeys = o, this.body = i, this.headerRows = d, this._size = [
2077
+ ...i.childNodes
2076
2078
  ].length, this.rowHeaderColumnKeys.size === 0) {
2077
- let a = this.columns.find((p) => {
2079
+ let s = this.columns.find((p) => {
2078
2080
  var f, h;
2079
2081
  return !(!((f = p.props) === null || f === void 0) && f.isDragButtonCell) && !(!((h = p.props) === null || h === void 0) && h.isSelectionCell);
2080
2082
  });
2081
- a && this.rowHeaderColumnKeys.add(a.key);
2083
+ s && this.rowHeaderColumnKeys.add(s.key);
2082
2084
  }
2083
2085
  }
2084
2086
  }
2085
- const Rn = {
2087
+ const Vn = {
2086
2088
  ascending: "descending",
2087
2089
  descending: "ascending"
2088
2090
  };
2089
- function Kn(t) {
2090
- let [e, l] = Z(!1), { selectionMode: n = "none", showSelectionCheckboxes: o, showDragButtons: r } = t, i = N(() => ({
2091
+ function jn(t) {
2092
+ let [e, l] = Z(!1), { selectionMode: n = "none", showSelectionCheckboxes: o, showDragButtons: i } = t, r = N(() => ({
2091
2093
  showSelectionCheckboxes: o && n !== "none",
2092
- showDragButtons: r,
2094
+ showDragButtons: i,
2093
2095
  selectionMode: n,
2094
2096
  columns: []
2095
2097
  }), [
2096
2098
  t.children,
2097
2099
  o,
2098
2100
  n,
2099
- r
2100
- ]), u = ml(t, L((a) => new Bn(a, null, i), [
2101
2101
  i
2102
- ]), i), { disabledKeys: s, selectionManager: d } = zn({
2102
+ ]), u = Cl(t, V((s) => new Hn(s, null, r), [
2103
+ r
2104
+ ]), r), { disabledKeys: c, selectionManager: a } = In({
2103
2105
  ...t,
2104
2106
  collection: u,
2105
2107
  disabledBehavior: t.disabledBehavior || "selection"
2106
2108
  });
2107
- var c;
2109
+ var d;
2108
2110
  return {
2109
2111
  collection: u,
2110
- disabledKeys: s,
2111
- selectionManager: d,
2112
+ disabledKeys: c,
2113
+ selectionManager: a,
2112
2114
  showSelectionCheckboxes: t.showSelectionCheckboxes || !1,
2113
- sortDescriptor: (c = t.sortDescriptor) !== null && c !== void 0 ? c : null,
2115
+ sortDescriptor: (d = t.sortDescriptor) !== null && d !== void 0 ? d : null,
2114
2116
  isKeyboardNavigationDisabled: u.size === 0 || e,
2115
2117
  setKeyboardNavigationDisabled: l,
2116
- sort(a, p) {
2118
+ sort(s, p) {
2117
2119
  var f, h;
2118
2120
  (h = t.onSortChange) === null || h === void 0 || h.call(t, {
2119
- column: a,
2120
- direction: p ?? (((f = t.sortDescriptor) === null || f === void 0 ? void 0 : f.column) === a ? Rn[t.sortDescriptor.direction] : "ascending")
2121
+ column: s,
2122
+ direction: p ?? (((f = t.sortDescriptor) === null || f === void 0 ? void 0 : f.column) === s ? Vn[t.sortDescriptor.direction] : "ascending")
2121
2123
  });
2122
2124
  }
2123
2125
  };
2124
2126
  }
2125
- function Pn(t) {
2127
+ function On(t) {
2126
2128
  return t && t.__esModule ? t.default : t;
2127
2129
  }
2128
- class Mn extends vl {
2130
+ class Ln extends El {
2129
2131
  addNode(e) {
2130
2132
  super.addNode(e), this.columnsDirty || (this.columnsDirty = e.type === "column"), e.type === "tableheader" && (this.head = e), e.type === "tablebody" && (this.body = e);
2131
2133
  }
2132
2134
  commit(e, l, n = !1) {
2133
2135
  this.updateColumns(n), this.rows = [];
2134
- for (let i of this.getChildren(this.body.key)) {
2135
- let u = i.lastChildKey;
2136
+ for (let r of this.getChildren(this.body.key)) {
2137
+ let u = r.lastChildKey;
2136
2138
  if (u != null) {
2137
- let s = this.getItem(u);
2138
- var o, r;
2139
- let d = ((o = s.colIndex) !== null && o !== void 0 ? o : s.index) + ((r = s.colSpan) !== null && r !== void 0 ? r : 1);
2140
- if (d !== this.columns.length && !n) throw new Error(`Cell count must match column count. Found ${d} cells and ${this.columns.length} columns.`);
2139
+ let c = this.getItem(u);
2140
+ var o, i;
2141
+ let a = ((o = c.colIndex) !== null && o !== void 0 ? o : c.index) + ((i = c.colSpan) !== null && i !== void 0 ? i : 1);
2142
+ if (a !== this.columns.length && !n) throw new Error(`Cell count must match column count. Found ${a} cells and ${this.columns.length} columns.`);
2141
2143
  }
2142
- this.rows.push(i);
2144
+ this.rows.push(r);
2143
2145
  }
2144
2146
  super.commit(e, l, n);
2145
2147
  }
@@ -2152,10 +2154,10 @@ class Mn extends vl {
2152
2154
  l.set(o.key, o), o.hasChildNodes || (o.index = this.columns.length, this.columns.push(o), o.props.isRowHeader && this.rowHeaderColumnKeys.add(o.key));
2153
2155
  break;
2154
2156
  }
2155
- for (let r of this.getChildren(o.key)) n(r);
2157
+ for (let i of this.getChildren(o.key)) n(i);
2156
2158
  };
2157
2159
  for (let o of this.getChildren(this.head.key)) n(o);
2158
- if (this.headerRows = el(l, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw new Error("A table must have at least one Column with the isRowHeader prop set to true");
2160
+ if (this.headerRows = sl(l, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw new Error("A table must have at least one Column with the isRowHeader prop set to true");
2159
2161
  }
2160
2162
  get columnCount() {
2161
2163
  return this.columns.length;
@@ -2179,8 +2181,8 @@ class Mn extends vl {
2179
2181
  let n = this.getItem(e);
2180
2182
  var o;
2181
2183
  if (n?.type === "column") return (o = n.prevKey) !== null && o !== void 0 ? o : null;
2182
- let r = super.getKeyBefore(e);
2183
- return r != null && ((l = this.getItem(r)) === null || l === void 0 ? void 0 : l.type) === "tablebody" ? null : r;
2184
+ let i = super.getKeyBefore(e);
2185
+ return i != null && ((l = this.getItem(i)) === null || l === void 0 ? void 0 : l.type) === "tablebody" ? null : i;
2184
2186
  }
2185
2187
  getChildren(e) {
2186
2188
  if (!this.getItem(e)) {
@@ -2198,229 +2200,229 @@ class Mn extends vl {
2198
2200
  if (!l) return "";
2199
2201
  if (l.textValue) return l.textValue;
2200
2202
  let n = this.rowHeaderColumnKeys, o = [];
2201
- for (let r of this.getChildren(e)) {
2202
- let i = this.columns[r.index];
2203
- if (n.has(i.key) && r.textValue && o.push(r.textValue), o.length === n.size) break;
2203
+ for (let i of this.getChildren(e)) {
2204
+ let r = this.columns[i.index];
2205
+ if (n.has(r.key) && i.textValue && o.push(i.textValue), o.length === n.size) break;
2204
2206
  }
2205
2207
  return o.join(" ");
2206
2208
  }
2207
2209
  constructor(...e) {
2208
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Ge("tableheader", -1), this.body = new Ge("tablebody", -2), this.columnsDirty = !0;
2210
+ super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new tt("tableheader", -1), this.body = new tt("tablebody", -2), this.columnsDirty = !0;
2209
2211
  }
2210
2212
  }
2211
- const He = /* @__PURE__ */ re(null), Nn = /* @__PURE__ */ Y(function(e, l) {
2212
- let n = ie(l), o = M(null), r = M(null), [i, u] = Z(0);
2213
- Ze(() => {
2214
- let d = o.current;
2215
- for (; d && d !== n.current && !zl(d); ) d = d.parentElement;
2216
- r.current = d;
2213
+ const Le = /* @__PURE__ */ de(null), Un = /* @__PURE__ */ X(function(e, l) {
2214
+ let n = ce(l), o = M(null), i = M(null), [r, u] = Z(0);
2215
+ nt(() => {
2216
+ let a = o.current;
2217
+ for (; a && a !== n.current && !Fl(a); ) a = a.parentElement;
2218
+ i.current = a;
2217
2219
  }, [
2218
2220
  n
2219
- ]), El({
2220
- ref: r,
2221
+ ]), Tl({
2222
+ ref: i,
2221
2223
  box: "border-box",
2222
2224
  onResize() {
2223
- var d, c;
2224
- u((c = (d = r.current) === null || d === void 0 ? void 0 : d.clientWidth) !== null && c !== void 0 ? c : 0);
2225
+ var a, d;
2226
+ u((d = (a = i.current) === null || a === void 0 ? void 0 : a.clientWidth) !== null && d !== void 0 ? d : 0);
2225
2227
  }
2226
- }), Ze(() => {
2227
- var d, c;
2228
- u((c = (d = r.current) === null || d === void 0 ? void 0 : d.clientWidth) !== null && c !== void 0 ? c : 0);
2228
+ }), nt(() => {
2229
+ var a, d;
2230
+ u((d = (a = i.current) === null || a === void 0 ? void 0 : a.clientWidth) !== null && d !== void 0 ? d : 0);
2229
2231
  }, []);
2230
- let s = N(() => ({
2232
+ let c = N(() => ({
2231
2233
  tableRef: o,
2232
- scrollRef: r,
2233
- tableWidth: i,
2234
- useTableColumnResizeState: En,
2234
+ scrollRef: i,
2235
+ tableWidth: r,
2236
+ useTableColumnResizeState: Fn,
2235
2237
  onResizeStart: e.onResizeStart,
2236
2238
  onResize: e.onResize,
2237
2239
  onResizeEnd: e.onResizeEnd
2238
2240
  }), [
2239
2241
  o,
2240
- i,
2242
+ r,
2241
2243
  e.onResizeStart,
2242
2244
  e.onResize,
2243
2245
  e.onResizeEnd
2244
2246
  ]);
2245
- return /* @__PURE__ */ C.createElement("div", {
2246
- ...q(e, {
2247
+ return /* @__PURE__ */ k.createElement("div", {
2248
+ ...J(e, {
2247
2249
  global: !0
2248
2250
  }),
2249
2251
  ref: n,
2250
2252
  className: e.className || "react-aria-ResizableTableContainer",
2251
2253
  style: e.style,
2252
2254
  onScroll: e.onScroll
2253
- }, /* @__PURE__ */ C.createElement(He.Provider, {
2254
- value: s
2255
+ }, /* @__PURE__ */ k.createElement(Le.Provider, {
2256
+ value: c
2255
2257
  }, e.children));
2256
- }), Tn = /* @__PURE__ */ re(null), Q = /* @__PURE__ */ re(null), Ve = /* @__PURE__ */ re(null), Fn = /* @__PURE__ */ Y(function(e, l) {
2258
+ }), Yn = /* @__PURE__ */ de(null), ee = /* @__PURE__ */ de(null), Ue = /* @__PURE__ */ de(null), Xn = /* @__PURE__ */ X(function(e, l) {
2257
2259
  var n;
2258
- [e, l] = $l(e, l, Tn);
2259
- let o = rt(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: u } = o, s = !!(!((n = e.dragAndDropHooks) === null || n === void 0) && n.useDraggableCollectionState), d = N(() => ({
2260
- selectionBehavior: i === "none" ? null : r,
2261
- selectionMode: i,
2260
+ [e, l] = Rl(e, l, Yn);
2261
+ let o = ht(e), { selectionBehavior: i, selectionMode: r, disallowEmptySelection: u } = o, c = !!(!((n = e.dragAndDropHooks) === null || n === void 0) && n.useDraggableCollectionState), a = N(() => ({
2262
+ selectionBehavior: r === "none" ? null : i,
2263
+ selectionMode: r,
2262
2264
  disallowEmptySelection: u,
2263
- allowsDragging: s
2265
+ allowsDragging: c
2264
2266
  }), [
2265
- r,
2266
2267
  i,
2268
+ r,
2267
2269
  u,
2268
- s
2269
- ]), c = /* @__PURE__ */ C.createElement(tl.Provider, {
2270
- value: d
2271
- }, /* @__PURE__ */ C.createElement(ge, e));
2272
- return /* @__PURE__ */ C.createElement(gl, {
2273
- content: c,
2274
- createCollection: () => new Mn()
2275
- }, (a) => /* @__PURE__ */ C.createElement(In, {
2270
+ c
2271
+ ]), d = /* @__PURE__ */ k.createElement(dl.Provider, {
2272
+ value: a
2273
+ }, /* @__PURE__ */ k.createElement(De, e));
2274
+ return /* @__PURE__ */ k.createElement(Sl, {
2275
+ content: d,
2276
+ createCollection: () => new Ln()
2277
+ }, (s) => /* @__PURE__ */ k.createElement(Gn, {
2276
2278
  props: e,
2277
2279
  forwardedRef: l,
2278
2280
  selectionState: o,
2279
- collection: a
2281
+ collection: s
2280
2282
  }));
2281
2283
  });
2282
- function In({ props: t, forwardedRef: e, selectionState: l, collection: n }) {
2283
- let o = B(He);
2284
- e = ie(N(() => xl(e, o?.tableRef), [
2284
+ function Gn({ props: t, forwardedRef: e, selectionState: l, collection: n }) {
2285
+ let o = R(Le);
2286
+ e = ce(N(() => Al(e, o?.tableRef), [
2285
2287
  e,
2286
2288
  o?.tableRef
2287
2289
  ]));
2288
- let r = Kn({
2290
+ let i = jn({
2289
2291
  ...t,
2290
2292
  collection: n,
2291
2293
  children: void 0,
2292
2294
  UNSAFE_selectionState: l
2293
- }), { isVirtualized: i, layoutDelegate: u, dropTargetDelegate: s, CollectionRoot: d } = B(G), { dragAndDropHooks: c } = t, { gridProps: a } = cn({
2295
+ }), { isVirtualized: r, layoutDelegate: u, dropTargetDelegate: c, CollectionRoot: a } = R(Q), { dragAndDropHooks: d } = t, { gridProps: s } = xn({
2294
2296
  ...t,
2295
2297
  layoutDelegate: u,
2296
- isVirtualized: i
2297
- }, r, e), p = r.selectionManager, f = !!c?.useDraggableCollectionState, h = !!c?.useDroppableCollectionState, b = M(f), v = M(h);
2298
- oe(() => {
2299
- process.env.NODE_ENV !== "production" && (b.current !== f && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), v.current !== h && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));
2298
+ isVirtualized: r
2299
+ }, i, e), p = i.selectionManager, f = !!d?.useDraggableCollectionState, h = !!d?.useDroppableCollectionState, g = M(f), y = M(h);
2300
+ se(() => {
2301
+ process.env.NODE_ENV !== "production" && (g.current !== f && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), y.current !== h && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));
2300
2302
  }, [
2301
2303
  f,
2302
2304
  h
2303
2305
  ]);
2304
- let m, x, g, $ = !1, y = null, D = M(null);
2305
- if (f && c) {
2306
- m = c.useDraggableCollectionState({
2306
+ let v, x, m, $ = !1, b = null, w = M(null);
2307
+ if (f && d) {
2308
+ v = d.useDraggableCollectionState({
2307
2309
  collection: n,
2308
2310
  selectionManager: p,
2309
- preview: c.renderDragPreview ? D : void 0
2310
- }), c.useDraggableCollection({}, m, e);
2311
- let O = c.DragPreview;
2312
- y = c.renderDragPreview ? /* @__PURE__ */ C.createElement(O, {
2313
- ref: D
2314
- }, c.renderDragPreview) : null;
2315
- }
2316
- if (h && c) {
2317
- x = c.useDroppableCollectionState({
2311
+ preview: d.renderDragPreview ? w : void 0
2312
+ }), d.useDraggableCollection({}, v, e);
2313
+ let L = d.DragPreview;
2314
+ b = d.renderDragPreview ? /* @__PURE__ */ k.createElement(L, {
2315
+ ref: w
2316
+ }, d.renderDragPreview) : null;
2317
+ }
2318
+ if (h && d) {
2319
+ x = d.useDroppableCollectionState({
2318
2320
  collection: n,
2319
2321
  selectionManager: p
2320
2322
  });
2321
- let O = new yl({
2323
+ let L = new zl({
2322
2324
  collection: n,
2323
2325
  disabledKeys: p.disabledKeys,
2324
2326
  disabledBehavior: p.disabledBehavior,
2325
2327
  ref: e,
2326
2328
  layoutDelegate: u
2327
- }), le = c.dropTargetDelegate || s || new c.ListDropTargetDelegate(n.rows, e);
2328
- g = c.useDroppableCollection({
2329
- keyboardDelegate: O,
2330
- dropTargetDelegate: le
2329
+ }), te = d.dropTargetDelegate || c || new d.ListDropTargetDelegate(n.rows, e);
2330
+ m = d.useDroppableCollection({
2331
+ keyboardDelegate: L,
2332
+ dropTargetDelegate: te
2331
2333
  }, x, e), $ = x.isDropTarget({
2332
2334
  type: "root"
2333
2335
  });
2334
2336
  }
2335
- let { focusProps: k, isFocused: K, isFocusVisible: R } = se(), S = ee({
2337
+ let { focusProps: C, isFocused: B, isFocusVisible: P } = me(), E = re({
2336
2338
  className: t.className,
2337
2339
  style: t.style,
2338
2340
  defaultClassName: "react-aria-Table",
2339
2341
  values: {
2340
2342
  isDropTarget: $,
2341
- isFocused: K,
2342
- isFocusVisible: R,
2343
- state: r
2343
+ isFocused: B,
2344
+ isFocusVisible: P,
2345
+ state: i
2344
2346
  }
2345
- }), z = !!(f && !m?.isDisabled), P = S.style, V = null;
2346
- o && (V = o.useTableColumnResizeState({
2347
+ }), W = !!(f && !v?.isDisabled), K = E.style, T = null;
2348
+ o && (T = o.useTableColumnResizeState({
2347
2349
  tableWidth: o.tableWidth
2348
- }, r), i || (P = {
2349
- ...P,
2350
+ }, i), r || (K = {
2351
+ ...K,
2350
2352
  tableLayout: "fixed",
2351
2353
  width: "fit-content"
2352
2354
  }));
2353
- let U = H("table"), T = q(t, {
2355
+ let O = j("table"), F = J(t, {
2354
2356
  global: !0
2355
2357
  });
2356
- var j;
2357
- return /* @__PURE__ */ C.createElement(Se, {
2358
+ var Y;
2359
+ return /* @__PURE__ */ k.createElement(Ae, {
2358
2360
  values: [
2359
2361
  [
2360
- Q,
2361
- r
2362
+ ee,
2363
+ i
2362
2364
  ],
2363
2365
  [
2364
- Ve,
2365
- V
2366
+ Ue,
2367
+ T
2366
2368
  ],
2367
2369
  [
2368
- de,
2370
+ ge,
2369
2371
  {
2370
- dragAndDropHooks: c,
2371
- dragState: m,
2372
+ dragAndDropHooks: d,
2373
+ dragState: v,
2372
2374
  dropState: x
2373
2375
  }
2374
2376
  ],
2375
2377
  [
2376
- Cl,
2378
+ Pl,
2377
2379
  {
2378
- render: Un
2380
+ render: to
2379
2381
  }
2380
2382
  ]
2381
2383
  ]
2382
- }, /* @__PURE__ */ C.createElement(Tl, null, /* @__PURE__ */ C.createElement(U, {
2383
- ...W(T, S, a, k, g?.collectionProps),
2384
- style: P,
2384
+ }, /* @__PURE__ */ k.createElement(Ul, null, /* @__PURE__ */ k.createElement(O, {
2385
+ ...H(F, E, s, C, m?.collectionProps),
2386
+ style: K,
2385
2387
  ref: e,
2386
2388
  slot: t.slot || void 0,
2387
2389
  onScroll: t.onScroll,
2388
- "data-allows-dragging": z || void 0,
2390
+ "data-allows-dragging": W || void 0,
2389
2391
  "data-drop-target": $ || void 0,
2390
- "data-focused": K || void 0,
2391
- "data-focus-visible": R || void 0
2392
- }, /* @__PURE__ */ C.createElement(d, {
2392
+ "data-focused": B || void 0,
2393
+ "data-focus-visible": P || void 0
2394
+ }, /* @__PURE__ */ k.createElement(a, {
2393
2395
  collection: n,
2394
- scrollRef: (j = o?.scrollRef) !== null && j !== void 0 ? j : e,
2395
- persistedKeys: wl(p, c, x)
2396
- }))), y);
2396
+ scrollRef: (Y = o?.scrollRef) !== null && Y !== void 0 ? Y : e,
2397
+ persistedKeys: Kl(p, d, x)
2398
+ }))), b);
2397
2399
  }
2398
- function H(t) {
2399
- let { isVirtualized: e } = B(G);
2400
+ function j(t) {
2401
+ let { isVirtualized: e } = R(Q);
2400
2402
  return e ? "div" : t;
2401
2403
  }
2402
- const tl = /* @__PURE__ */ re(null);
2403
- function ll() {
2404
- return B(tl);
2404
+ const dl = /* @__PURE__ */ de(null);
2405
+ function cl() {
2406
+ return R(dl);
2405
2407
  }
2406
- const Wn = /* @__PURE__ */ Ne("tableheader", (t, e) => {
2407
- let l = B(Q).collection, n = bl({
2408
+ const qn = /* @__PURE__ */ We("tableheader", (t, e) => {
2409
+ let l = R(ee).collection, n = kl({
2408
2410
  items: l.headerRows,
2409
- children: L((d) => {
2410
- switch (d.type) {
2411
+ children: V((a) => {
2412
+ switch (a.type) {
2411
2413
  case "headerrow":
2412
- return /* @__PURE__ */ C.createElement(Hn, {
2413
- item: d
2414
+ return /* @__PURE__ */ k.createElement(Zn, {
2415
+ item: a
2414
2416
  });
2415
2417
  default:
2416
- throw new Error("Unsupported node type in TableHeader: " + d.type);
2418
+ throw new Error("Unsupported node type in TableHeader: " + a.type);
2417
2419
  }
2418
2420
  }, [])
2419
- }), o = H("thead"), { rowGroupProps: r } = Zt(), { hoverProps: i, isHovered: u } = be({
2421
+ }), o = j("thead"), { rowGroupProps: i } = il(), { hoverProps: r, isHovered: u } = Ce({
2420
2422
  onHoverStart: t.onHoverStart,
2421
2423
  onHoverChange: t.onHoverChange,
2422
2424
  onHoverEnd: t.onHoverEnd
2423
- }), s = ee({
2425
+ }), c = re({
2424
2426
  className: t.className,
2425
2427
  style: t.style,
2426
2428
  defaultClassName: "react-aria-TableHeader",
@@ -2428,48 +2430,48 @@ const Wn = /* @__PURE__ */ Ne("tableheader", (t, e) => {
2428
2430
  isHovered: u
2429
2431
  }
2430
2432
  });
2431
- return /* @__PURE__ */ C.createElement(o, {
2432
- ...W(q(t, {
2433
+ return /* @__PURE__ */ k.createElement(o, {
2434
+ ...H(J(t, {
2433
2435
  global: !0
2434
- }), r, i),
2435
- ...s,
2436
+ }), i, r),
2437
+ ...c,
2436
2438
  ref: e,
2437
2439
  "data-hovered": u || void 0
2438
2440
  }, n);
2439
- }, (t) => /* @__PURE__ */ C.createElement(ge, {
2441
+ }, (t) => /* @__PURE__ */ k.createElement(De, {
2440
2442
  dependencies: t.dependencies,
2441
2443
  items: t.columns
2442
2444
  }, t.children));
2443
- function Hn({ item: t }) {
2444
- let e = M(null), l = B(Q), { isVirtualized: n, CollectionBranch: o } = B(G), { rowProps: r } = mn({
2445
+ function Zn({ item: t }) {
2446
+ let e = M(null), l = R(ee), { isVirtualized: n, CollectionBranch: o } = R(Q), { rowProps: i } = Sn({
2445
2447
  node: t,
2446
2448
  isVirtualized: n
2447
- }, l, e), { checkboxProps: i } = yn(l), u = H("tr");
2448
- return /* @__PURE__ */ C.createElement(u, {
2449
- ...r,
2449
+ }, l, e), { checkboxProps: r } = Rn(l), u = j("tr");
2450
+ return /* @__PURE__ */ k.createElement(u, {
2451
+ ...i,
2450
2452
  ref: e
2451
- }, /* @__PURE__ */ C.createElement(Se, {
2453
+ }, /* @__PURE__ */ k.createElement(Ae, {
2452
2454
  values: [
2453
2455
  [
2454
- nt,
2456
+ ft,
2455
2457
  {
2456
2458
  slots: {
2457
- selection: i
2459
+ selection: r
2458
2460
  }
2459
2461
  }
2460
2462
  ]
2461
2463
  ]
2462
- }, /* @__PURE__ */ C.createElement(o, {
2464
+ }, /* @__PURE__ */ k.createElement(o, {
2463
2465
  collection: l.collection,
2464
2466
  parent: t
2465
2467
  })));
2466
2468
  }
2467
- const Vn = /* @__PURE__ */ it("column", (t, e, l) => {
2469
+ const Qn = /* @__PURE__ */ mt("column", (t, e, l) => {
2468
2470
  var n, o;
2469
- let r = ie(e), i = B(Q), { isVirtualized: u } = B(G), { columnHeaderProps: s } = pn({
2471
+ let i = ce(e), r = R(ee), { isVirtualized: u } = R(Q), { columnHeaderProps: c } = Dn({
2470
2472
  node: l,
2471
2473
  isVirtualized: u
2472
- }, i, r), { isFocused: d, isFocusVisible: c, focusProps: a } = se(), p = B(Ve), f = !1;
2474
+ }, r, i), { isFocused: a, isFocusVisible: d, focusProps: s } = me(), p = R(Ue), f = !1;
2473
2475
  if (p) f = p.resizingColumn === l.key;
2474
2476
  else if (process.env.NODE_ENV !== "production")
2475
2477
  for (let $ in [
@@ -2478,264 +2480,264 @@ const Vn = /* @__PURE__ */ it("column", (t, e, l) => {
2478
2480
  "minWidth",
2479
2481
  "maxWidth"
2480
2482
  ]) $ in l.props && console.warn(`The ${$} prop on a <Column> only applies when a <Table> is wrapped in a <ResizableTableContainer>. If you aren't using column resizing, you can set the width of a column with CSS.`);
2481
- let { hoverProps: h, isHovered: b } = be({
2483
+ let { hoverProps: h, isHovered: g } = Ce({
2482
2484
  isDisabled: !t.allowsSorting
2483
- }), v = ee({
2485
+ }), y = re({
2484
2486
  ...t,
2485
2487
  id: void 0,
2486
2488
  children: l.rendered,
2487
2489
  defaultClassName: "react-aria-Column",
2488
2490
  values: {
2489
- isHovered: b,
2490
- isFocused: d,
2491
- isFocusVisible: c,
2491
+ isHovered: g,
2492
+ isFocused: a,
2493
+ isFocusVisible: d,
2492
2494
  allowsSorting: l.props.allowsSorting,
2493
- sortDirection: ((n = i.sortDescriptor) === null || n === void 0 ? void 0 : n.column) === l.key ? i.sortDescriptor.direction : void 0,
2495
+ sortDirection: ((n = r.sortDescriptor) === null || n === void 0 ? void 0 : n.column) === l.key ? r.sortDescriptor.direction : void 0,
2494
2496
  isResizing: f,
2495
2497
  startResize: () => {
2496
2498
  if (p)
2497
- p.startResize(l.key), i.setKeyboardNavigationDisabled(!0);
2499
+ p.startResize(l.key), r.setKeyboardNavigationDisabled(!0);
2498
2500
  else throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
2499
2501
  },
2500
2502
  sort: ($) => {
2501
- i.sort(l.key, $);
2503
+ r.sort(l.key, $);
2502
2504
  }
2503
2505
  }
2504
- }), m = v.style;
2505
- p && (m = {
2506
- ...m,
2506
+ }), v = y.style;
2507
+ p && (v = {
2508
+ ...v,
2507
2509
  width: p.getColumnWidth(l.key)
2508
2510
  });
2509
- let x = H("th"), g = q(t, {
2511
+ let x = j("th"), m = J(t, {
2510
2512
  global: !0
2511
2513
  });
2512
- return delete g.id, /* @__PURE__ */ C.createElement(x, {
2513
- ...W(g, s, a, h),
2514
- ...v,
2515
- style: m,
2516
- ref: r,
2517
- "data-hovered": b || void 0,
2518
- "data-focused": d || void 0,
2519
- "data-focus-visible": c || void 0,
2514
+ return delete m.id, /* @__PURE__ */ k.createElement(x, {
2515
+ ...H(m, c, s, h),
2516
+ ...y,
2517
+ style: v,
2518
+ ref: i,
2519
+ "data-hovered": g || void 0,
2520
+ "data-focused": a || void 0,
2521
+ "data-focus-visible": d || void 0,
2520
2522
  "data-resizing": f || void 0,
2521
2523
  "data-allows-sorting": l.props.allowsSorting || void 0,
2522
- "data-sort-direction": ((o = i.sortDescriptor) === null || o === void 0 ? void 0 : o.column) === l.key ? i.sortDescriptor.direction : void 0
2523
- }, /* @__PURE__ */ C.createElement(Se, {
2524
+ "data-sort-direction": ((o = r.sortDescriptor) === null || o === void 0 ? void 0 : o.column) === l.key ? r.sortDescriptor.direction : void 0
2525
+ }, /* @__PURE__ */ k.createElement(Ae, {
2524
2526
  values: [
2525
2527
  [
2526
- nl,
2528
+ fl,
2527
2529
  {
2528
2530
  column: l,
2529
- triggerRef: r
2531
+ triggerRef: i
2530
2532
  }
2531
2533
  ],
2532
2534
  [
2533
- G,
2534
- at
2535
+ Q,
2536
+ gt
2535
2537
  ]
2536
2538
  ]
2537
- }, v.children));
2538
- }), nl = /* @__PURE__ */ re(null), jn = /* @__PURE__ */ Y(function(e, l) {
2539
- let n = B(Ve);
2539
+ }, y.children));
2540
+ }), fl = /* @__PURE__ */ de(null), Jn = /* @__PURE__ */ X(function(e, l) {
2541
+ let n = R(Ue);
2540
2542
  if (!n) throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
2541
- let o = fe(Pn(kl), "react-aria-components"), { onResizeStart: r, onResize: i, onResizeEnd: u } = B(He), { column: s, triggerRef: d } = B(nl), c = M(null), { resizerProps: a, inputProps: p, isResizing: f } = xn({
2542
- column: s,
2543
+ let o = ve(On(Ml), "react-aria-components"), { onResizeStart: i, onResize: r, onResizeEnd: u } = R(Le), { column: c, triggerRef: a } = R(fl), d = M(null), { resizerProps: s, inputProps: p, isResizing: f } = Bn({
2544
+ column: c,
2543
2545
  "aria-label": e["aria-label"] || o.format("tableResizer"),
2544
- onResizeStart: r,
2545
- onResize: i,
2546
+ onResizeStart: i,
2547
+ onResize: r,
2546
2548
  onResizeEnd: u,
2547
- triggerRef: d
2548
- }, n, c), { focusProps: h, isFocused: b, isFocusVisible: v } = se(), { hoverProps: m, isHovered: x } = be(e), g = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), $ = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: y } = ce(), D = "both";
2549
- g ? D = y === "rtl" ? "right" : "left" : $ ? D = y === "rtl" ? "left" : "right" : D = "both";
2550
- let k = ie(l), [K, R] = Z("");
2551
- oe(() => {
2552
- if (!k.current) return;
2553
- let T = window.getComputedStyle(k.current);
2554
- R(T.cursor);
2549
+ triggerRef: a
2550
+ }, n, d), { focusProps: h, isFocused: g, isFocusVisible: y } = me(), { hoverProps: v, isHovered: x } = Ce(e), m = n.getColumnMinWidth(c.key) >= n.getColumnWidth(c.key), $ = n.getColumnMaxWidth(c.key) <= n.getColumnWidth(c.key), { direction: b } = be(), w = "both";
2551
+ m ? w = b === "rtl" ? "right" : "left" : $ ? w = b === "rtl" ? "left" : "right" : w = "both";
2552
+ let C = ce(l), [B, P] = Z("");
2553
+ se(() => {
2554
+ if (!C.current) return;
2555
+ let F = window.getComputedStyle(C.current);
2556
+ P(F.cursor);
2555
2557
  }, [
2556
- k,
2557
- D
2558
+ C,
2559
+ w
2558
2560
  ]);
2559
- let S = ee({
2561
+ let E = re({
2560
2562
  ...e,
2561
2563
  defaultClassName: "react-aria-ColumnResizer",
2562
2564
  values: {
2563
- isFocused: b,
2564
- isFocusVisible: v,
2565
+ isFocused: g,
2566
+ isFocusVisible: y,
2565
2567
  isResizing: f,
2566
2568
  isHovered: x,
2567
- resizableDirection: D
2569
+ resizableDirection: w
2568
2570
  }
2569
- }), [z, P] = Z(!1), V = (T) => {
2570
- T.pointerType === "mouse" && P(!0);
2571
+ }), [W, K] = Z(!1), T = (F) => {
2572
+ F.pointerType === "mouse" && K(!0);
2571
2573
  };
2572
- !f && z && P(!1);
2573
- let U = q(e, {
2574
+ !f && W && K(!1);
2575
+ let O = J(e, {
2574
2576
  global: !0
2575
2577
  });
2576
- return /* @__PURE__ */ C.createElement("div", {
2577
- ref: k,
2578
+ return /* @__PURE__ */ k.createElement("div", {
2579
+ ref: C,
2578
2580
  role: "presentation",
2579
- ...W(U, S, a, {
2580
- onPointerDown: V
2581
- }, m),
2581
+ ...H(O, E, s, {
2582
+ onPointerDown: T
2583
+ }, v),
2582
2584
  "data-hovered": x || void 0,
2583
- "data-focused": b || void 0,
2584
- "data-focus-visible": v || void 0,
2585
+ "data-focused": g || void 0,
2586
+ "data-focus-visible": y || void 0,
2585
2587
  "data-resizing": f || void 0,
2586
- "data-resizable-direction": D
2587
- }, S.children, /* @__PURE__ */ C.createElement("input", {
2588
- ref: c,
2589
- ...W(p, h)
2590
- }), f && z && /* @__PURE__ */ Al.createPortal(/* @__PURE__ */ C.createElement("div", {
2588
+ "data-resizable-direction": w
2589
+ }, E.children, /* @__PURE__ */ k.createElement("input", {
2590
+ ref: d,
2591
+ ...H(p, h)
2592
+ }), f && W && /* @__PURE__ */ Il.createPortal(/* @__PURE__ */ k.createElement("div", {
2591
2593
  style: {
2592
2594
  position: "fixed",
2593
2595
  top: 0,
2594
2596
  left: 0,
2595
2597
  bottom: 0,
2596
2598
  right: 0,
2597
- cursor: K
2599
+ cursor: B
2598
2600
  }
2599
2601
  }), document.body));
2600
- }), On = /* @__PURE__ */ Ne("tablebody", (t, e) => {
2601
- let l = B(Q), { isVirtualized: n } = B(G), o = l.collection, { CollectionBranch: r } = B(G), { dragAndDropHooks: i, dropState: u } = B(de), s = !!i?.useDroppableCollectionState && !u?.isDisabled;
2602
- var d;
2603
- let c = s && !!u && ((d = u.isDropTarget({
2602
+ }), _n = /* @__PURE__ */ We("tablebody", (t, e) => {
2603
+ let l = R(ee), { isVirtualized: n } = R(Q), o = l.collection, { CollectionBranch: i } = R(Q), { dragAndDropHooks: r, dropState: u } = R(ge), c = !!r?.useDroppableCollectionState && !u?.isDisabled;
2604
+ var a;
2605
+ let d = c && !!u && ((a = u.isDropTarget({
2604
2606
  type: "root"
2605
- })) !== null && d !== void 0 ? d : !1), a = o.size === 0, p = {
2606
- isDropTarget: c,
2607
- isEmpty: a
2608
- }, f = ee({
2607
+ })) !== null && a !== void 0 ? a : !1), s = o.size === 0, p = {
2608
+ isDropTarget: d,
2609
+ isEmpty: s
2610
+ }, f = re({
2609
2611
  ...t,
2610
2612
  id: void 0,
2611
2613
  children: void 0,
2612
2614
  defaultClassName: "react-aria-TableBody",
2613
2615
  values: p
2614
- }), h, b = H("tr"), v = H("td"), m = o.columnCount;
2615
- if (a && t.renderEmptyState && l) {
2616
- let y = {}, D = {}, k = {};
2617
- n ? (D["aria-colspan"] = m, k = {
2616
+ }), h, g = j("tr"), y = j("td"), v = o.columnCount;
2617
+ if (s && t.renderEmptyState && l) {
2618
+ let b = {}, w = {}, C = {};
2619
+ n ? (w["aria-colspan"] = v, C = {
2618
2620
  display: "contents"
2619
- }) : D.colSpan = m, h = /* @__PURE__ */ C.createElement(b, {
2621
+ }) : w.colSpan = v, h = /* @__PURE__ */ k.createElement(g, {
2620
2622
  role: "row",
2621
- ...y,
2622
- style: k
2623
- }, /* @__PURE__ */ C.createElement(v, {
2623
+ ...b,
2624
+ style: C
2625
+ }, /* @__PURE__ */ k.createElement(y, {
2624
2626
  role: "rowheader",
2625
- ...D,
2626
- style: k
2627
+ ...w,
2628
+ style: C
2627
2629
  }, t.renderEmptyState(p)));
2628
2630
  }
2629
- let { rowGroupProps: x } = Zt(), g = H("tbody"), $ = q(t, {
2631
+ let { rowGroupProps: x } = il(), m = j("tbody"), $ = J(t, {
2630
2632
  global: !0
2631
2633
  });
2632
- return /* @__PURE__ */ C.createElement(g, {
2633
- ...W($, f, x),
2634
+ return /* @__PURE__ */ k.createElement(m, {
2635
+ ...H($, f, x),
2634
2636
  ref: e,
2635
- "data-empty": a || void 0
2636
- }, s && /* @__PURE__ */ C.createElement(Gn, null), /* @__PURE__ */ C.createElement(r, {
2637
+ "data-empty": s || void 0
2638
+ }, c && /* @__PURE__ */ k.createElement(oo, null), /* @__PURE__ */ k.createElement(i, {
2637
2639
  collection: o,
2638
2640
  parent: o.body,
2639
- renderDropIndicator: Dl(i, u)
2641
+ renderDropIndicator: Bl(r, u)
2640
2642
  }), h);
2641
- }), et = /* @__PURE__ */ Ne("item", (t, e, l) => {
2642
- let n = ie(e), o = B(Q), { dragAndDropHooks: r, dragState: i, dropState: u } = B(de), { isVirtualized: s, CollectionBranch: d } = B(G), { rowProps: c, ...a } = hn({
2643
+ }), st = /* @__PURE__ */ We("item", (t, e, l) => {
2644
+ let n = ce(e), o = R(ee), { dragAndDropHooks: i, dragState: r, dropState: u } = R(ge), { isVirtualized: c, CollectionBranch: a } = R(Q), { rowProps: d, ...s } = Cn({
2643
2645
  node: l,
2644
- shouldSelectOnPressUp: !!i,
2645
- isVirtualized: s
2646
- }, o, n), { isFocused: p, isFocusVisible: f, focusProps: h } = se(), { isFocusVisible: b, focusProps: v } = se({
2646
+ shouldSelectOnPressUp: !!r,
2647
+ isVirtualized: c
2648
+ }, o, n), { isFocused: p, isFocusVisible: f, focusProps: h } = me(), { isFocusVisible: g, focusProps: y } = me({
2647
2649
  within: !0
2648
- }), { hoverProps: m, isHovered: x } = be({
2649
- isDisabled: !a.allowsSelection && !a.hasAction,
2650
+ }), { hoverProps: v, isHovered: x } = Ce({
2651
+ isDisabled: !s.allowsSelection && !s.hasAction,
2650
2652
  onHoverStart: t.onHoverStart,
2651
2653
  onHoverChange: t.onHoverChange,
2652
2654
  onHoverEnd: t.onHoverEnd
2653
- }), { checkboxProps: g } = vn({
2655
+ }), { checkboxProps: m } = zn({
2654
2656
  key: l.key
2655
2657
  }, o), $;
2656
- i && r && ($ = r.useDraggableItem({
2658
+ r && i && ($ = i.useDraggableItem({
2657
2659
  key: l.key,
2658
2660
  hasDragButton: !0
2659
- }, i));
2660
- let y, D = M(null), { visuallyHiddenProps: k } = ze();
2661
- u && r && (y = r.useDropIndicator({
2661
+ }, r));
2662
+ let b, w = M(null), { visuallyHiddenProps: C } = Pe();
2663
+ u && i && (b = i.useDropIndicator({
2662
2664
  target: {
2663
2665
  type: "item",
2664
2666
  key: l.key,
2665
2667
  dropPosition: "on"
2666
2668
  }
2667
- }, u, D));
2668
- let K = M(null);
2669
- oe(() => {
2670
- i && !K.current && process.env.NODE_ENV !== "production" && console.warn('Draggable items in a Table must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.');
2669
+ }, u, w));
2670
+ let B = M(null);
2671
+ se(() => {
2672
+ r && !B.current && process.env.NODE_ENV !== "production" && console.warn('Draggable items in a Table must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.');
2671
2673
  }, []);
2672
- let R = i && i.isDragging(l.key), { children: S, ...z } = t, P = ee({
2673
- ...z,
2674
+ let P = r && r.isDragging(l.key), { children: E, ...W } = t, K = re({
2675
+ ...W,
2674
2676
  id: void 0,
2675
2677
  defaultClassName: "react-aria-Row",
2676
2678
  values: {
2677
- ...a,
2679
+ ...s,
2678
2680
  isHovered: x,
2679
2681
  isFocused: p,
2680
2682
  isFocusVisible: f,
2681
2683
  selectionMode: o.selectionManager.selectionMode,
2682
2684
  selectionBehavior: o.selectionManager.selectionBehavior,
2683
- isDragging: R,
2684
- isDropTarget: y?.isDropTarget,
2685
- isFocusVisibleWithin: b,
2685
+ isDragging: P,
2686
+ isDropTarget: b?.isDropTarget,
2687
+ isFocusVisibleWithin: g,
2686
2688
  id: l.key
2687
2689
  }
2688
- }), V = H("tr"), U = H("td"), T = q(t, {
2690
+ }), T = j("tr"), O = j("td"), F = J(t, {
2689
2691
  global: !0
2690
2692
  });
2691
- return delete T.id, delete T.onClick, /* @__PURE__ */ C.createElement(C.Fragment, null, y && !y.isHidden && /* @__PURE__ */ C.createElement(V, {
2693
+ return delete F.id, delete F.onClick, /* @__PURE__ */ k.createElement(k.Fragment, null, b && !b.isHidden && /* @__PURE__ */ k.createElement(T, {
2692
2694
  role: "row",
2693
2695
  style: {
2694
2696
  height: 0
2695
2697
  }
2696
- }, /* @__PURE__ */ C.createElement(U, {
2698
+ }, /* @__PURE__ */ k.createElement(O, {
2697
2699
  role: "gridcell",
2698
2700
  colSpan: o.collection.columnCount,
2699
2701
  style: {
2700
2702
  padding: 0
2701
2703
  }
2702
- }, /* @__PURE__ */ C.createElement("div", {
2704
+ }, /* @__PURE__ */ k.createElement("div", {
2703
2705
  role: "button",
2704
- ...k,
2705
- ...y.dropIndicatorProps,
2706
- ref: D
2707
- }))), /* @__PURE__ */ C.createElement(V, {
2708
- ...W(T, P, c, h, m, $?.dragProps, v),
2706
+ ...C,
2707
+ ...b.dropIndicatorProps,
2708
+ ref: w
2709
+ }))), /* @__PURE__ */ k.createElement(T, {
2710
+ ...H(F, K, d, h, v, $?.dragProps, y),
2709
2711
  ref: n,
2710
- "data-disabled": a.isDisabled || void 0,
2711
- "data-selected": a.isSelected || void 0,
2712
+ "data-disabled": s.isDisabled || void 0,
2713
+ "data-selected": s.isSelected || void 0,
2712
2714
  "data-hovered": x || void 0,
2713
- "data-focused": a.isFocused || void 0,
2715
+ "data-focused": s.isFocused || void 0,
2714
2716
  "data-focus-visible": f || void 0,
2715
- "data-pressed": a.isPressed || void 0,
2716
- "data-dragging": R || void 0,
2717
- "data-drop-target": y?.isDropTarget || void 0,
2717
+ "data-pressed": s.isPressed || void 0,
2718
+ "data-dragging": P || void 0,
2719
+ "data-drop-target": b?.isDropTarget || void 0,
2718
2720
  "data-selection-mode": o.selectionManager.selectionMode === "none" ? void 0 : o.selectionManager.selectionMode,
2719
- "data-focus-visible-within": b || void 0
2720
- }, /* @__PURE__ */ C.createElement(Se, {
2721
+ "data-focus-visible-within": g || void 0
2722
+ }, /* @__PURE__ */ k.createElement(Ae, {
2721
2723
  values: [
2722
2724
  [
2723
- nt,
2725
+ ft,
2724
2726
  {
2725
2727
  slots: {
2726
- [qe]: {},
2727
- selection: g
2728
+ [lt]: {},
2729
+ selection: m
2728
2730
  }
2729
2731
  }
2730
2732
  ],
2731
2733
  [
2732
- lt,
2734
+ ct,
2733
2735
  {
2734
2736
  slots: {
2735
- [qe]: {},
2737
+ [lt]: {},
2736
2738
  drag: {
2737
2739
  ...$?.dragButtonProps,
2738
- ref: K,
2740
+ ref: B,
2739
2741
  style: {
2740
2742
  pointerEvents: "none"
2741
2743
  }
@@ -2744,7 +2746,7 @@ const Vn = /* @__PURE__ */ it("column", (t, e, l) => {
2744
2746
  }
2745
2747
  ]
2746
2748
  ]
2747
- }, /* @__PURE__ */ C.createElement(d, {
2749
+ }, /* @__PURE__ */ k.createElement(a, {
2748
2750
  collection: o.collection,
2749
2751
  parent: l
2750
2752
  }))));
@@ -2753,199 +2755,199 @@ const Vn = /* @__PURE__ */ it("column", (t, e, l) => {
2753
2755
  let e = [
2754
2756
  t.value
2755
2757
  ].concat(t.dependencies);
2756
- return /* @__PURE__ */ C.createElement(ge, {
2758
+ return /* @__PURE__ */ k.createElement(De, {
2757
2759
  dependencies: e,
2758
2760
  items: t.columns,
2759
2761
  idScope: t.id
2760
2762
  }, t.children);
2761
- }), Ln = /* @__PURE__ */ it("cell", (t, e, l) => {
2762
- let n = ie(e), o = B(Q), { dragState: r } = B(de), { isVirtualized: i } = B(G);
2763
+ }), eo = /* @__PURE__ */ mt("cell", (t, e, l) => {
2764
+ let n = ce(e), o = R(ee), { dragState: i } = R(ge), { isVirtualized: r } = R(Q);
2763
2765
  l.column = o.collection.columns[l.index];
2764
- let { gridCellProps: u, isPressed: s } = gn({
2766
+ let { gridCellProps: u, isPressed: c } = kn({
2765
2767
  node: l,
2766
- shouldSelectOnPressUp: !!r,
2767
- isVirtualized: i
2768
- }, o, n), { isFocused: d, isFocusVisible: c, focusProps: a } = se(), { hoverProps: p, isHovered: f } = be({}), h = ee({
2768
+ shouldSelectOnPressUp: !!i,
2769
+ isVirtualized: r
2770
+ }, o, n), { isFocused: a, isFocusVisible: d, focusProps: s } = me(), { hoverProps: p, isHovered: f } = Ce({}), h = re({
2769
2771
  ...t,
2770
2772
  id: void 0,
2771
2773
  defaultClassName: "react-aria-Cell",
2772
2774
  values: {
2773
- isFocused: d,
2774
- isFocusVisible: c,
2775
- isPressed: s,
2775
+ isFocused: a,
2776
+ isFocusVisible: d,
2777
+ isPressed: c,
2776
2778
  isHovered: f,
2777
2779
  id: l.key
2778
2780
  }
2779
- }), b = H("td"), v = q(t, {
2781
+ }), g = j("td"), y = J(t, {
2780
2782
  global: !0
2781
2783
  });
2782
- return delete v.id, /* @__PURE__ */ C.createElement(b, {
2783
- ...W(v, h, u, a, p),
2784
+ return delete y.id, /* @__PURE__ */ k.createElement(g, {
2785
+ ...H(y, h, u, s, p),
2784
2786
  ref: n,
2785
- "data-focused": d || void 0,
2786
- "data-focus-visible": c || void 0,
2787
- "data-pressed": s || void 0
2788
- }, /* @__PURE__ */ C.createElement(G.Provider, {
2789
- value: at
2787
+ "data-focused": a || void 0,
2788
+ "data-focus-visible": d || void 0,
2789
+ "data-pressed": c || void 0
2790
+ }, /* @__PURE__ */ k.createElement(Q.Provider, {
2791
+ value: gt
2790
2792
  }, h.children));
2791
2793
  });
2792
- function Un(t, e) {
2793
- e = ie(e);
2794
- let { dragAndDropHooks: l, dropState: n } = B(de), o = M(null), { dropIndicatorProps: r, isHidden: i, isDropTarget: u } = l.useDropIndicator(t, n, o);
2795
- return i ? null : /* @__PURE__ */ C.createElement(Xn, {
2794
+ function to(t, e) {
2795
+ e = ce(e);
2796
+ let { dragAndDropHooks: l, dropState: n } = R(ge), o = M(null), { dropIndicatorProps: i, isHidden: r, isDropTarget: u } = l.useDropIndicator(t, n, o);
2797
+ return r ? null : /* @__PURE__ */ k.createElement(no, {
2796
2798
  ...t,
2797
- dropIndicatorProps: r,
2799
+ dropIndicatorProps: i,
2798
2800
  isDropTarget: u,
2799
2801
  buttonRef: o,
2800
2802
  ref: e
2801
2803
  });
2802
2804
  }
2803
- function Yn(t, e) {
2804
- let { dropIndicatorProps: l, isDropTarget: n, buttonRef: o, ...r } = t, i = B(Q), { visuallyHiddenProps: u } = ze(), s = ee({
2805
- ...r,
2805
+ function lo(t, e) {
2806
+ let { dropIndicatorProps: l, isDropTarget: n, buttonRef: o, ...i } = t, r = R(ee), { visuallyHiddenProps: u } = Pe(), c = re({
2807
+ ...i,
2806
2808
  defaultClassName: "react-aria-DropIndicator",
2807
2809
  values: {
2808
2810
  isDropTarget: n
2809
2811
  }
2810
- }), d = H("tr"), c = H("td");
2811
- return /* @__PURE__ */ C.createElement(d, {
2812
- ...q(t, {
2812
+ }), a = j("tr"), d = j("td");
2813
+ return /* @__PURE__ */ k.createElement(a, {
2814
+ ...J(t, {
2813
2815
  global: !0
2814
2816
  }),
2815
- ...s,
2817
+ ...c,
2816
2818
  role: "row",
2817
2819
  ref: e,
2818
2820
  "data-drop-target": n || void 0
2819
- }, /* @__PURE__ */ C.createElement(c, {
2821
+ }, /* @__PURE__ */ k.createElement(d, {
2820
2822
  role: "gridcell",
2821
- colSpan: i.collection.columnCount,
2823
+ colSpan: r.collection.columnCount,
2822
2824
  style: {
2823
2825
  padding: 0
2824
2826
  }
2825
- }, /* @__PURE__ */ C.createElement("div", {
2827
+ }, /* @__PURE__ */ k.createElement("div", {
2826
2828
  ...u,
2827
2829
  role: "button",
2828
2830
  ...l,
2829
2831
  ref: o
2830
- }), s.children));
2832
+ }), c.children));
2831
2833
  }
2832
- const Xn = /* @__PURE__ */ Y(Yn);
2833
- function Gn() {
2834
- let t = B(Q), { dragAndDropHooks: e, dropState: l } = B(de), n = M(null), { dropIndicatorProps: o } = e.useDropIndicator({
2834
+ const no = /* @__PURE__ */ X(lo);
2835
+ function oo() {
2836
+ let t = R(ee), { dragAndDropHooks: e, dropState: l } = R(ge), n = M(null), { dropIndicatorProps: o } = e.useDropIndicator({
2835
2837
  target: {
2836
2838
  type: "root"
2837
2839
  }
2838
- }, l, n), r = l.isDropTarget({
2840
+ }, l, n), i = l.isDropTarget({
2839
2841
  type: "root"
2840
- }), { visuallyHiddenProps: i } = ze(), u = H("tr"), s = H("td");
2841
- return !r && o["aria-hidden"] ? null : /* @__PURE__ */ C.createElement(u, {
2842
+ }), { visuallyHiddenProps: r } = Pe(), u = j("tr"), c = j("td");
2843
+ return !i && o["aria-hidden"] ? null : /* @__PURE__ */ k.createElement(u, {
2842
2844
  role: "row",
2843
2845
  "aria-hidden": o["aria-hidden"],
2844
2846
  style: {
2845
2847
  height: 0
2846
2848
  }
2847
- }, /* @__PURE__ */ C.createElement(s, {
2849
+ }, /* @__PURE__ */ k.createElement(c, {
2848
2850
  role: "gridcell",
2849
2851
  colSpan: t.collection.columnCount,
2850
2852
  style: {
2851
2853
  padding: 0
2852
2854
  }
2853
- }, /* @__PURE__ */ C.createElement("div", {
2855
+ }, /* @__PURE__ */ k.createElement("div", {
2854
2856
  role: "button",
2855
- ...i,
2857
+ ...r,
2856
2858
  ...o,
2857
2859
  ref: n
2858
2860
  })));
2859
2861
  }
2860
- const Ae = /* @__PURE__ */ re(null);
2861
- Ae.displayName = "DataTableContext";
2862
- const pe = () => {
2863
- const t = B(
2864
- Ae
2862
+ const Ke = /* @__PURE__ */ de(null);
2863
+ Ke.displayName = "DataTableContext";
2864
+ const ye = () => {
2865
+ const t = R(
2866
+ Ke
2865
2867
  );
2866
2868
  if (!t)
2867
2869
  throw new Error("DataTable components must be used within DataTable.Root");
2868
2870
  return t;
2869
2871
  };
2870
- var Pe = (t, e) => {
2871
- const l = [], n = (o, r, i) => {
2872
- r - o > 0 && l.push({ start: o, end: r, match: i });
2872
+ var Fe = (t, e) => {
2873
+ const l = [], n = (o, i, r) => {
2874
+ i - o > 0 && l.push({ start: o, end: i, match: r });
2873
2875
  };
2874
2876
  if (t.length === 0)
2875
2877
  n(0, e, !1);
2876
2878
  else {
2877
2879
  let o = 0;
2878
- for (const r of t)
2879
- n(o, r.start, !1), n(r.start, r.end, !0), o = r.end;
2880
+ for (const i of t)
2881
+ n(o, i.start, !1), n(i.start, i.end, !0), o = i.end;
2880
2882
  n(o, e, !1);
2881
2883
  }
2882
2884
  return l;
2883
- }, ol = (t) => t.replace(/[|\\{}()[\]^$+*?.-]/g, (e) => `\\${e}`);
2884
- function qn(t) {
2885
+ }, pl = (t) => t.replace(/[|\\{}()[\]^$+*?.-]/g, (e) => `\\${e}`);
2886
+ function io(t) {
2885
2887
  const { text: e, query: l, ignoreCase: n, exactMatch: o } = t;
2886
2888
  if (o) {
2887
- const c = ol(l), a = new RegExp(`\\b(${c})\\b`, n ? "i" : ""), p = e.match(a);
2889
+ const d = pl(l), s = new RegExp(`\\b(${d})\\b`, n ? "i" : ""), p = e.match(s);
2888
2890
  if (!p || p.index === void 0)
2889
2891
  return [{ text: e, match: !1 }];
2890
2892
  const f = p.index, h = f + p[0].length;
2891
- return Pe([{ start: f, end: h }], e.length).map((v) => ({
2892
- text: e.slice(v.start, v.end),
2893
- match: !!v.match
2893
+ return Fe([{ start: f, end: h }], e.length).map((y) => ({
2894
+ text: e.slice(y.start, y.end),
2895
+ match: !!y.match
2894
2896
  }));
2895
2897
  }
2896
- const r = n ? e.toLowerCase() : e, i = n && typeof l == "string" ? l.toLowerCase() : l, u = typeof r == "string" ? r.indexOf(i) : -1;
2898
+ const i = n ? e.toLowerCase() : e, r = n && typeof l == "string" ? l.toLowerCase() : l, u = typeof i == "string" ? i.indexOf(r) : -1;
2897
2899
  if (u === -1)
2898
2900
  return [{ text: e, match: !1 }];
2899
- const s = u + i.length;
2900
- return Pe([{ start: u, end: s }], e.length).map((c) => ({
2901
- text: e.slice(c.start, c.end),
2902
- match: !!c.match
2901
+ const c = u + r.length;
2902
+ return Fe([{ start: u, end: c }], e.length).map((d) => ({
2903
+ text: e.slice(d.start, d.end),
2904
+ match: !!d.match
2903
2905
  }));
2904
2906
  }
2905
- var Zn = (t, e, l) => {
2906
- const n = t.filter(Boolean).map((r) => ol(r)), o = l ? `\\b(${n.join("|")})\\b` : `(${n.join("|")})`;
2907
+ var ro = (t, e, l) => {
2908
+ const n = t.filter(Boolean).map((i) => pl(i)), o = l ? `\\b(${n.join("|")})\\b` : `(${n.join("|")})`;
2907
2909
  return new RegExp(o, e);
2908
- }, Qn = (t, e = !0) => `${t ? "i" : ""}${e ? "g" : ""}`;
2909
- function Jn(t) {
2910
- const { text: e, query: l, ignoreCase: n, matchAll: o, exactMatch: r } = t;
2910
+ }, ao = (t, e = !0) => `${t ? "i" : ""}${e ? "g" : ""}`;
2911
+ function uo(t) {
2912
+ const { text: e, query: l, ignoreCase: n, matchAll: o, exactMatch: i } = t;
2911
2913
  if (l.length === 0)
2912
2914
  return [{ text: e, match: !1 }];
2913
- const i = Qn(n, o), u = Zn(Array.isArray(l) ? l : [l], i, r), s = [...e.matchAll(u)].map((d) => ({
2914
- start: d.index || 0,
2915
- end: (d.index || 0) + d[0].length
2915
+ const r = ao(n, o), u = ro(Array.isArray(l) ? l : [l], r, i), c = [...e.matchAll(u)].map((a) => ({
2916
+ start: a.index || 0,
2917
+ end: (a.index || 0) + a[0].length
2916
2918
  }));
2917
- return Pe(s, t.text.length).map((d) => ({
2918
- text: t.text.slice(d.start, d.end),
2919
- match: !!d.match
2919
+ return Fe(c, t.text.length).map((a) => ({
2920
+ text: t.text.slice(a.start, a.end),
2921
+ match: !!a.match
2920
2922
  }));
2921
2923
  }
2922
- var _n = (t) => {
2924
+ var so = (t) => {
2923
2925
  if (t.matchAll == null && (t.matchAll = Array.isArray(t.query)), !t.matchAll && Array.isArray(t.query))
2924
2926
  throw new Error("matchAll must be true when using multiple queries");
2925
- return t.matchAll ? Jn(t) : qn(t);
2927
+ return t.matchAll ? uo(t) : io(t);
2926
2928
  };
2927
- const eo = (t) => N(() => _n(t), [t]), { withContext: to } = /* @__PURE__ */ Jl({
2929
+ const co = (t) => N(() => so(t), [t]), { withContext: fo } = /* @__PURE__ */ sn({
2928
2930
  key: "mark"
2929
- }), lo = /* @__PURE__ */ to("mark");
2930
- function no(t) {
2931
+ }), po = /* @__PURE__ */ fo("mark");
2932
+ function ho(t) {
2931
2933
  const { each: e, fallback: l, children: n } = t;
2932
2934
  return e?.length === 0 ? l || null : e?.map(n);
2933
2935
  }
2934
- function oo(t) {
2935
- const { children: e, query: l, ignoreCase: n, matchAll: o, styles: r } = t;
2936
+ function mo(t) {
2937
+ const { children: e, query: l, ignoreCase: n, matchAll: o, styles: i } = t;
2936
2938
  if (typeof e != "string")
2937
2939
  throw new Error("The children prop of Highlight must be a string");
2938
- const i = eo({
2940
+ const r = co({
2939
2941
  query: l,
2940
2942
  text: e,
2941
2943
  matchAll: o,
2942
2944
  ignoreCase: n
2943
2945
  });
2944
- return /* @__PURE__ */ w(no, { each: i, children: (u, s) => u.match ? /* @__PURE__ */ w(lo, { css: r, children: u.text }, s) : /* @__PURE__ */ w(cl, { children: u.text }, s) });
2946
+ return /* @__PURE__ */ D(ho, { each: r, children: (u, c) => u.match ? /* @__PURE__ */ D(po, { css: i, children: u.text }, c) : /* @__PURE__ */ D($l, { children: u.text }, c) });
2945
2947
  }
2946
- const he = /* @__PURE__ */ Y(function({ children: e, isDisabled: l, ...n }, o) {
2947
- return /* @__PURE__ */ w(Ln, { ref: o, ...n, children: (r) => /* @__PURE__ */ w(lt.Provider, { value: { isDisabled: l }, children: typeof e == "function" ? e(r) : e }) });
2948
- }), ro = /* @__PURE__ */ Yl({
2948
+ const he = /* @__PURE__ */ X(function({ children: e, isDisabled: l, ...n }, o) {
2949
+ return /* @__PURE__ */ D(eo, { ref: o, ...n, children: (i) => /* @__PURE__ */ D(ct.Provider, { value: { isDisabled: l }, children: typeof e == "function" ? e(i) : e }) });
2950
+ }), go = /* @__PURE__ */ en({
2949
2951
  // Available slots for the DataTable component
2950
2952
  slots: [
2951
2953
  "root",
@@ -2969,6 +2971,12 @@ const he = /* @__PURE__ */ Y(function({ children: e, isDisabled: l, ...n }, o) {
2969
2971
  boxShadow: "1",
2970
2972
  overflow: "auto",
2971
2973
  contain: "layout style",
2974
+ width: "100%",
2975
+ // CSS custom properties for pinned row shadows
2976
+ "--pinned-shadow-left": "inset 2px 0 0 {colors.neutral.7}",
2977
+ "--pinned-shadow-right": "inset -2px 0 0 {colors.neutral.7}",
2978
+ "--pinned-shadow-top": "inset 0 2px 0 {colors.neutral.7}",
2979
+ "--pinned-shadow-bottom": "inset 0 -2px 0 {colors.neutral.7}",
2972
2980
  "& .react-aria-Cell": {
2973
2981
  paddingTop: "400",
2974
2982
  paddingBottom: "400",
@@ -2979,6 +2987,19 @@ const he = /* @__PURE__ */ Y(function({ children: e, isDisabled: l, ...n }, o) {
2979
2987
  hyphens: "auto",
2980
2988
  "&[data-slot='expand']": {
2981
2989
  padding: 0
2990
+ },
2991
+ "&[data-slot='pin-row-cell']": {
2992
+ alignItems: "center",
2993
+ justifyContent: "center"
2994
+ },
2995
+ "& .nimbus-table-cell-copy-button": {
2996
+ display: "none"
2997
+ },
2998
+ "& .nimbus-table-cell-pin-button": {
2999
+ display: "none"
3000
+ },
3001
+ "& .nimbus-table-cell-pin-button-pinned": {
3002
+ display: "inherit"
2982
3003
  }
2983
3004
  },
2984
3005
  "& .data-table-row": {
@@ -2993,7 +3014,22 @@ const he = /* @__PURE__ */ Y(function({ children: e, isDisabled: l, ...n }, o) {
2993
3014
  _hover: {
2994
3015
  backgroundColor: "{colors.primary.3}",
2995
3016
  transition: "background-color 100ms ease",
2996
- transform: "translate3d(0, 0, 0)"
3017
+ transform: "translate3d(0, 0, 0)",
3018
+ "& .data-table-row-details-button": {
3019
+ opacity: 1
3020
+ },
3021
+ "& .nimbus-table-cell-copy-button": {
3022
+ display: "inherit"
3023
+ },
3024
+ "& .nimbus-table-cell-pin-button": {
3025
+ display: "inherit"
3026
+ }
3027
+ },
3028
+ "& .data-table-row-details-button": {
3029
+ opacity: 0
3030
+ },
3031
+ "& .data-table-row-details-button:focus": {
3032
+ opacity: 1
2997
3033
  }
2998
3034
  },
2999
3035
  "& .data-table-row[data-selected='true']": {
@@ -3004,6 +3040,18 @@ const he = /* @__PURE__ */ Y(function({ children: e, isDisabled: l, ...n }, o) {
3004
3040
  opacity: 0.8,
3005
3041
  cursor: "not-allowed"
3006
3042
  },
3043
+ "& .data-table-row-pinned": {
3044
+ boxShadow: "var(--pinned-shadow-left), var(--pinned-shadow-right)",
3045
+ "&.data-table-row-pinned-first": {
3046
+ boxShadow: "var(--pinned-shadow-left), var(--pinned-shadow-right), var(--pinned-shadow-top)"
3047
+ },
3048
+ "&.data-table-row-pinned-last": {
3049
+ boxShadow: "var(--pinned-shadow-left), var(--pinned-shadow-right), var(--pinned-shadow-bottom)"
3050
+ },
3051
+ "&.data-table-row-pinned-single": {
3052
+ boxShadow: "var(--pinned-shadow-left), var(--pinned-shadow-right), var(--pinned-shadow-top), var(--pinned-shadow-bottom)"
3053
+ }
3054
+ },
3007
3055
  "& .data-table-header": {
3008
3056
  background: "colorPalette.2",
3009
3057
  color: "colorPalette.11",
@@ -3175,108 +3223,111 @@ const he = /* @__PURE__ */ Y(function({ children: e, isDisabled: l, ...n }, o) {
3175
3223
  }
3176
3224
  }
3177
3225
  }
3178
- }), { withProvider: io, withContext: te } = /* @__PURE__ */ Xl({
3226
+ }), { withProvider: bo, withContext: ae } = /* @__PURE__ */ tn({
3179
3227
  key: "data-table",
3180
- recipe: ro
3181
- }), ao = /* @__PURE__ */ io(
3228
+ recipe: go
3229
+ }), vo = /* @__PURE__ */ bo(
3182
3230
  "div",
3183
3231
  "root"
3184
- ), uo = /* @__PURE__ */ te("table", "table"), so = /* @__PURE__ */ te("th", "column"), co = /* @__PURE__ */ te("footer", "footer"), fo = /* @__PURE__ */ te("td", "selectionCell"), rl = /* @__PURE__ */ te("button", "expandButton"), po = /* @__PURE__ */ te("span", "nestedIcon"), ho = /* @__PURE__ */ te("span", "headerSortIcon"), mo = /* @__PURE__ */ te("div", "columnResizer");
3185
- function Me(t) {
3232
+ ), yo = /* @__PURE__ */ ae("table", "table"), $o = /* @__PURE__ */ ae("th", "column"), xo = /* @__PURE__ */ ae("footer", "footer"), wo = /* @__PURE__ */ ae("td", "selectionCell"), hl = /* @__PURE__ */ ae("button", "expandButton"), Do = /* @__PURE__ */ ae("span", "nestedIcon"), Co = /* @__PURE__ */ ae("span", "headerSortIcon"), So = /* @__PURE__ */ ae("div", "columnResizer");
3233
+ function Ie(t) {
3186
3234
  return t.target?.closest(
3187
3235
  'button, input, [role="button"], [role="checkbox"], [slot="selection"], [data-slot="selection"]'
3188
3236
  );
3189
3237
  }
3190
- function go(t) {
3238
+ function ko(t) {
3191
3239
  return t.target?.closest(
3192
3240
  '[slot="selection"], [data-slot="selection"], [role="checkbox"]'
3193
3241
  );
3194
3242
  }
3195
- function tt(t) {
3196
- const e = Me(t), l = go(t);
3243
+ function dt(t) {
3244
+ const e = Ie(t), l = ko(t);
3197
3245
  (!e || e && !l) && t.stopPropagation();
3198
3246
  }
3199
- const je = /* @__PURE__ */ Y(function({ row: e, depth: l = 0 }, n) {
3247
+ const Ye = /* @__PURE__ */ X(function({ row: e, depth: l = 0 }, n) {
3200
3248
  const {
3201
3249
  activeColumns: o,
3202
- search: r,
3203
- expanded: i,
3250
+ search: i,
3251
+ expanded: r,
3204
3252
  toggleExpand: u,
3205
- nestedKey: s,
3206
- disabledKeys: d,
3207
- showExpandColumn: c,
3208
- showSelectionColumn: a,
3253
+ nestedKey: c,
3254
+ disabledKeys: a,
3255
+ showExpandColumn: d,
3256
+ showSelectionColumn: s,
3209
3257
  isTruncated: p,
3210
3258
  onRowClick: f,
3211
- onRowAction: h
3212
- } = pe(), v = ((z) => d ? d === "all" || e.isDisabled ? !0 : d.has(z) : !1)(e.id), m = M(null), x = L(
3259
+ onRowAction: h,
3260
+ pinnedRows: g,
3261
+ togglePin: y,
3262
+ sortedRows: v
3263
+ } = ye(), m = ((z) => a ? a === "all" || e.isDisabled ? !0 : a.has(z) : !1)(e.id), $ = M(null), b = V(
3213
3264
  (z) => {
3214
3265
  if (!f) return;
3215
- const P = Me(z), V = window.getSelection()?.toString() !== void 0 && window.getSelection().toString().length > 0;
3216
- !P && !V && (m.current && window.clearTimeout(m.current), m.current = window.setTimeout(() => {
3217
- v ? h && h(e, "click") : f(e), m.current = null;
3266
+ const S = Ie(z), A = window.getSelection()?.toString() !== void 0 && window.getSelection().toString().length > 0;
3267
+ !S && !A && ($.current && window.clearTimeout($.current), $.current = window.setTimeout(() => {
3268
+ m ? h && h(e, "click") : f(e), $.current = null;
3218
3269
  }, 300));
3219
3270
  },
3220
- [f, h, e, v]
3221
- ), g = L((z) => {
3222
- Me(z) || m.current && (window.clearTimeout(m.current), m.current = null);
3223
- }, []), $ = M({
3271
+ [f, h, e, m]
3272
+ ), w = V((z) => {
3273
+ Ie(z) || $.current && (window.clearTimeout($.current), $.current = null);
3274
+ }, []), C = M({
3224
3275
  count: 0,
3225
3276
  node: void 0
3226
- }), y = L(
3277
+ }), B = V(
3227
3278
  (z) => {
3228
- $.current.count += 1, $.current.count === 1 && z && ($.current.node = z, z.addEventListener(
3279
+ C.current.count += 1, C.current.count === 1 && z && (C.current.node = z, z.addEventListener(
3229
3280
  // Use pointerdown event in order to capture event before it bubbles to react-aria's onPress handler
3230
3281
  "pointerdown",
3231
- tt,
3282
+ dt,
3232
3283
  {
3233
3284
  capture: !0
3234
3285
  }
3235
- ), z.addEventListener("mouseup", x, { capture: !0 }), z.addEventListener("dblclick", g, {
3286
+ ), z.addEventListener("mouseup", b, { capture: !0 }), z.addEventListener("dblclick", w, {
3236
3287
  capture: !0
3237
3288
  }));
3238
3289
  },
3239
- [x, g]
3290
+ [b, w]
3240
3291
  );
3241
- oe(() => () => {
3242
- m.current && (window.clearTimeout(m.current), m.current = null), $.current.count >= 1 && $.current.node && ($.current.node.removeEventListener(
3292
+ se(() => () => {
3293
+ $.current && (window.clearTimeout($.current), $.current = null), C.current.count >= 1 && C.current.node && (C.current.node.removeEventListener(
3243
3294
  "pointerdown",
3244
- tt
3245
- ), $.current.node.removeEventListener("mouseup", x), $.current.node.removeEventListener(
3295
+ dt
3296
+ ), C.current.node.removeEventListener("mouseup", b), C.current.node.removeEventListener(
3246
3297
  "dblclick",
3247
- g
3298
+ w
3248
3299
  ));
3249
- }, [x, g]);
3250
- const D = Gl(n, y), { selectionBehavior: k } = ll(), K = s && e[s] && (Array.isArray(e[s]) ? e[s].length > 0 : !0), R = i[e.id], S = (z) => r && typeof z == "string" ? /* @__PURE__ */ w(oo, { query: r, ignoreCase: !0, matchAll: !0, children: z }) : z;
3251
- return /* @__PURE__ */ ne(dl, { children: [
3252
- /* @__PURE__ */ ne(
3253
- et,
3300
+ }, [b, w]);
3301
+ const P = ln(n, B), { selectionBehavior: E } = cl(), W = c && e[c] && (Array.isArray(e[c]) ? e[c].length > 0 : !0), K = r[e.id], T = g.has(e.id), O = v.filter((z) => g.has(z.id)).map((z) => z.id), F = T ? O.indexOf(e.id) : -1, Y = F === 0, L = F === O.length - 1, te = O.length === 1 && T, le = () => T ? te ? "data-table-row-pinned-single" : Y ? "data-table-row-pinned-first" : L ? "data-table-row-pinned-last" : "" : "", _ = (z) => i && typeof z == "string" ? /* @__PURE__ */ D(mo, { query: i, ignoreCase: !0, matchAll: !0, children: z }) : z;
3302
+ return /* @__PURE__ */ ie(yl, { children: [
3303
+ /* @__PURE__ */ ie(
3304
+ st,
3254
3305
  {
3255
- isDisabled: v,
3306
+ isDisabled: m,
3256
3307
  columns: o,
3257
- ref: D,
3308
+ ref: P,
3258
3309
  id: e.id,
3259
- className: `data-table-row ${v ? "data-table-row-disabled" : ""}`,
3310
+ className: `data-table-row ${m ? "data-table-row-disabled" : ""} ${T ? `data-table-row-pinned ${le()}` : ""}`,
3260
3311
  style: {
3261
- cursor: v ? "not-allowed" : f ? "pointer" : void 0,
3312
+ cursor: m ? "not-allowed" : f ? "pointer" : void 0,
3262
3313
  position: "relative",
3263
3314
  ...l > 0 && {
3264
3315
  borderLeft: "2px solid var(--colors-primary-6)",
3265
3316
  backgroundColor: "var(--colors-slate-2)"
3266
3317
  }
3267
3318
  },
3268
- dependencies: [R, r, p],
3319
+ dependencies: [K, i, p],
3269
3320
  children: [
3270
- k === "toggle" && /* @__PURE__ */ w(he, { "data-slot": "selection", isDisabled: v, children: /* @__PURE__ */ w(
3271
- ke,
3321
+ E === "toggle" && /* @__PURE__ */ D(he, { "data-slot": "selection", isDisabled: m, children: /* @__PURE__ */ D(
3322
+ we,
3272
3323
  {
3273
3324
  display: "flex",
3274
3325
  alignItems: "center",
3275
3326
  justifyContent: "center",
3276
3327
  w: "100%",
3277
3328
  h: "100%",
3278
- children: /* @__PURE__ */ w(
3279
- dt,
3329
+ children: /* @__PURE__ */ D(
3330
+ yt,
3280
3331
  {
3281
3332
  name: "select-row",
3282
3333
  slot: "selection",
@@ -3285,23 +3336,23 @@ const je = /* @__PURE__ */ Y(function({ row: e, depth: l = 0 }, n) {
3285
3336
  )
3286
3337
  }
3287
3338
  ) }),
3288
- c && /* @__PURE__ */ w(he, { "data-slot": "expand", isDisabled: v, children: K ? /* @__PURE__ */ w(
3289
- rl,
3339
+ d && /* @__PURE__ */ D(he, { "data-slot": "expand", isDisabled: m, children: W ? /* @__PURE__ */ D(
3340
+ hl,
3290
3341
  {
3291
3342
  w: "100%",
3292
3343
  h: "100%",
3293
3344
  cursor: "pointer",
3294
- "aria-label": R ? "Collapse" : "Expand",
3345
+ "aria-label": K ? "Collapse" : "Expand",
3295
3346
  onClick: (z) => {
3296
3347
  z.stopPropagation(), u(e.id);
3297
3348
  },
3298
- children: R ? /* @__PURE__ */ w(ql, {}) : /* @__PURE__ */ w(Zl, {})
3349
+ children: K ? /* @__PURE__ */ D(on, {}) : /* @__PURE__ */ D(rn, {})
3299
3350
  }
3300
3351
  ) : null }),
3301
- /* @__PURE__ */ w(ge, { items: o, children: (z) => {
3302
- const P = z.accessor(e);
3303
- return /* @__PURE__ */ w(he, { isDisabled: v, children: /* @__PURE__ */ w(
3304
- ke,
3352
+ /* @__PURE__ */ D(De, { items: o, children: (z) => {
3353
+ const S = z.accessor(e);
3354
+ return /* @__PURE__ */ D(he, { isDisabled: m, children: /* @__PURE__ */ D(
3355
+ we,
3305
3356
  {
3306
3357
  className: p ? "truncated-cell" : "",
3307
3358
  display: "inline-block",
@@ -3310,78 +3361,106 @@ const je = /* @__PURE__ */ Y(function({ row: e, depth: l = 0 }, n) {
3310
3361
  maxW: "100%",
3311
3362
  position: "relative",
3312
3363
  overflow: "hidden",
3313
- cursor: v ? "not-allowed" : "text",
3364
+ cursor: m ? "not-allowed" : "text",
3314
3365
  children: z.render ? z.render({
3315
- value: S(P),
3366
+ value: _(S),
3316
3367
  row: e,
3317
3368
  column: z
3318
- }) : S(P)
3369
+ }) : _(S)
3319
3370
  }
3320
3371
  ) }, z.id);
3321
- } })
3372
+ } }),
3373
+ /* @__PURE__ */ D(he, { "data-slot": "pin-row-cell", isDisabled: m, children: /* @__PURE__ */ D(
3374
+ we,
3375
+ {
3376
+ display: "flex",
3377
+ alignItems: "center",
3378
+ justifyContent: "center",
3379
+ w: "100%",
3380
+ h: "100%",
3381
+ children: /* @__PURE__ */ ie(at.Root, { children: [
3382
+ /* @__PURE__ */ D(
3383
+ nn,
3384
+ {
3385
+ size: "2xs",
3386
+ variant: "ghost",
3387
+ "aria-label": T ? "Unpin row" : "Pin row",
3388
+ colorPalette: "primary",
3389
+ className: `nimbus-table-cell-pin-button ${T ? "nimbus-table-cell-pin-button-pinned" : ""}`,
3390
+ onClick: (z) => {
3391
+ z.stopPropagation(), y(e.id);
3392
+ },
3393
+ children: /* @__PURE__ */ D(an, {})
3394
+ },
3395
+ "pin-btn"
3396
+ ),
3397
+ /* @__PURE__ */ D(at.Content, { placement: "top", children: T ? "Unpin row" : "Pin row" })
3398
+ ] })
3399
+ }
3400
+ ) })
3322
3401
  ]
3323
3402
  }
3324
3403
  ),
3325
- c && /* @__PURE__ */ w(et, { style: { display: R ? void 0 : "none" }, children: /* @__PURE__ */ w(
3404
+ d && /* @__PURE__ */ D(st, { style: { display: K ? void 0 : "none" }, children: /* @__PURE__ */ D(
3326
3405
  he,
3327
3406
  {
3328
- isDisabled: v,
3329
- colSpan: o.length + (c ? 1 : 0) + (a ? 1 : 0),
3407
+ isDisabled: m,
3408
+ colSpan: o.length + (d ? 1 : 0) + (s ? 1 : 0) + 1,
3330
3409
  style: {
3331
3410
  borderLeft: "2px solid blue"
3332
3411
  },
3333
- children: R ? s && Array.isArray(e[s]) ? `${e[s].length} nested items` : s && e[s] : null
3412
+ children: K ? c && Array.isArray(e[c]) ? `${e[c].length} nested items` : c && e[c] : null
3334
3413
  }
3335
3414
  ) })
3336
3415
  ] });
3337
3416
  });
3338
- je.displayName = "DataTable.Row";
3339
- const Oe = /* @__PURE__ */ Y(function(e, l) {
3340
- const { sortedRows: n, activeColumns: o } = pe();
3341
- return /* @__PURE__ */ w(
3342
- On,
3417
+ Ye.displayName = "DataTable.Row";
3418
+ const Xe = /* @__PURE__ */ X(function(e, l) {
3419
+ const { sortedRows: n, activeColumns: o } = ye();
3420
+ return /* @__PURE__ */ D(
3421
+ _n,
3343
3422
  {
3344
3423
  ref: l,
3345
3424
  items: n,
3346
3425
  dependencies: [o],
3347
- renderEmptyState: () => /* @__PURE__ */ w(ke, { w: "100%", p: "200", children: "No Data" }),
3426
+ renderEmptyState: () => /* @__PURE__ */ D(we, { w: "100%", p: "200", children: "No Data" }),
3348
3427
  ...e,
3349
- children: (r) => /* @__PURE__ */ w(je, { row: r }, r.id)
3428
+ children: (i) => /* @__PURE__ */ D(Ye, { row: i }, i.id)
3350
3429
  }
3351
3430
  );
3352
3431
  });
3353
- Oe.displayName = "DataTable.Body";
3354
- const Ce = ({
3432
+ Xe.displayName = "DataTable.Body";
3433
+ const $e = ({
3355
3434
  children: t,
3356
3435
  ref: e,
3357
3436
  column: l,
3358
3437
  unstyled: n,
3359
3438
  isInternalColumn: o,
3360
- tabIndex: r,
3361
- ...i
3439
+ tabIndex: i,
3440
+ ...r
3362
3441
  }) => {
3363
- const { sortDescriptor: u, isResizable: s } = pe(), d = u?.column === l?.id, c = l?.isResizable !== void 0 ? l?.isResizable : s;
3364
- return /* @__PURE__ */ w(so, { unstyled: n, tabIndex: r, asChild: !0, children: /* @__PURE__ */ w(Vn, { ref: e, ...i, children: (a) => {
3365
- const { allowsSorting: p } = a;
3366
- return o ? typeof t == "function" ? t(a) : t : /* @__PURE__ */ ne(en, { tabIndex: l?.isResizable ? 0 : -1, focusRing: "outside", children: [
3367
- /* @__PURE__ */ w(
3368
- _l,
3442
+ const { sortDescriptor: u, isResizable: c } = ye(), a = u?.column === l?.id, d = l?.isResizable !== void 0 ? l?.isResizable : c;
3443
+ return /* @__PURE__ */ D($o, { unstyled: n, tabIndex: i, asChild: !0, children: /* @__PURE__ */ D(Qn, { ref: e, ...r, children: (s) => {
3444
+ const { allowsSorting: p } = s;
3445
+ return o ? typeof t == "function" ? t(s) : t : /* @__PURE__ */ ie(cn, { tabIndex: l?.isResizable ? 0 : -1, focusRing: "outside", children: [
3446
+ /* @__PURE__ */ D(
3447
+ dn,
3369
3448
  {
3370
3449
  orientation: "vertical",
3371
3450
  className: "data-table-column-divider"
3372
3451
  }
3373
3452
  ),
3374
- typeof t == "function" ? t(a) : t,
3375
- p && /* @__PURE__ */ w(
3376
- ho,
3453
+ typeof t == "function" ? t(s) : t,
3454
+ p && /* @__PURE__ */ D(
3455
+ Co,
3377
3456
  {
3378
3457
  "aria-hidden": "true",
3379
- color: d ? "neutral.11" : "neutral.10",
3380
- children: /* @__PURE__ */ w(Ql, {})
3458
+ color: a ? "neutral.11" : "neutral.10",
3459
+ children: /* @__PURE__ */ D(un, {})
3381
3460
  }
3382
3461
  ),
3383
- c && /* @__PURE__ */ w(jn, { "aria-label": "Resize column", children: ({ isResizing: f, isFocused: h }) => /* @__PURE__ */ w(
3384
- mo,
3462
+ d && /* @__PURE__ */ D(Jn, { "aria-label": "Resize column", children: ({ isResizing: f, isFocused: h }) => /* @__PURE__ */ D(
3463
+ So,
3385
3464
  {
3386
3465
  "data-resizing": f,
3387
3466
  "data-focused": h
@@ -3389,21 +3468,21 @@ const Ce = ({
3389
3468
  ) })
3390
3469
  ] });
3391
3470
  } }) });
3392
- }, Le = /* @__PURE__ */ Y(
3471
+ }, Ge = /* @__PURE__ */ X(
3393
3472
  function({ children: e, ...l }, n) {
3394
- return /* @__PURE__ */ w(co, { ref: n, ...l, children: e });
3473
+ return /* @__PURE__ */ D(xo, { ref: n, ...l, children: e });
3395
3474
  }
3396
3475
  );
3397
- Le.displayName = "DataTable.Footer";
3398
- const Ue = /* @__PURE__ */ Y(function(e, l) {
3399
- const { activeColumns: n, allowsSorting: o, maxHeight: r, showExpandColumn: i } = pe(), { selectionBehavior: u, selectionMode: s } = ll();
3400
- return /* @__PURE__ */ ne(
3401
- Wn,
3476
+ Ge.displayName = "DataTable.Footer";
3477
+ const qe = /* @__PURE__ */ X(function(e, l) {
3478
+ const { activeColumns: n, allowsSorting: o, maxHeight: i, showExpandColumn: r } = ye(), { selectionBehavior: u, selectionMode: c } = cl();
3479
+ return /* @__PURE__ */ ie(
3480
+ qn,
3402
3481
  {
3403
3482
  ref: l,
3404
3483
  className: "data-table-header",
3405
3484
  style: {
3406
- ...r && {
3485
+ ...i && {
3407
3486
  position: "sticky",
3408
3487
  top: 0,
3409
3488
  zIndex: 10
@@ -3412,8 +3491,8 @@ const Ue = /* @__PURE__ */ Y(function(e, l) {
3412
3491
  columns: n,
3413
3492
  ...e,
3414
3493
  children: [
3415
- u === "toggle" && /* @__PURE__ */ w(
3416
- Ce,
3494
+ u === "toggle" && /* @__PURE__ */ D(
3495
+ $e,
3417
3496
  {
3418
3497
  id: "selection",
3419
3498
  className: "selection-column-header",
@@ -3421,11 +3500,11 @@ const Ue = /* @__PURE__ */ Y(function(e, l) {
3421
3500
  minWidth: 72,
3422
3501
  allowsSorting: !1,
3423
3502
  isInternalColumn: !0,
3424
- children: s === "multiple" && /* @__PURE__ */ w(dt, { slot: "selection" })
3503
+ children: c === "multiple" && /* @__PURE__ */ D(yt, { slot: "selection" })
3425
3504
  }
3426
3505
  ),
3427
- i && /* @__PURE__ */ w(
3428
- Ce,
3506
+ r && /* @__PURE__ */ D(
3507
+ $e,
3429
3508
  {
3430
3509
  className: "expand-column-header",
3431
3510
  maxWidth: 24,
@@ -3433,281 +3512,332 @@ const Ue = /* @__PURE__ */ Y(function(e, l) {
3433
3512
  allowsSorting: !1,
3434
3513
  "aria-label": "Expand rows",
3435
3514
  isInternalColumn: !0,
3436
- children: /* @__PURE__ */ w(Il, { children: "Expand rows" })
3515
+ children: /* @__PURE__ */ D(rt, { children: "Expand rows" })
3437
3516
  }
3438
3517
  ),
3439
- /* @__PURE__ */ w(ge, { items: n, children: (d) => /* @__PURE__ */ ne(
3440
- Ce,
3518
+ /* @__PURE__ */ D(De, { items: n, children: (a) => /* @__PURE__ */ ie(
3519
+ $e,
3441
3520
  {
3442
3521
  allowsSorting: (
3443
3522
  // use column.isSortable if defined, and fallback to allowsSorting if not
3444
- d.isSortable !== void 0 ? d.isSortable : o
3523
+ a.isSortable !== void 0 ? a.isSortable : o
3445
3524
  ),
3446
3525
  isRowHeader: !0,
3447
- width: d.width,
3448
- defaultWidth: d.defaultWidth,
3449
- minWidth: d.minWidth ?? 150,
3450
- maxWidth: d.maxWidth,
3451
- column: d,
3526
+ width: a.width,
3527
+ defaultWidth: a.defaultWidth,
3528
+ minWidth: a.minWidth ?? 150,
3529
+ maxWidth: a.maxWidth,
3530
+ column: a,
3452
3531
  children: [
3453
- /* @__PURE__ */ w("span", { "data-multiline-header": !0, children: d.header }),
3454
- d.headerIcon && /* @__PURE__ */ w(ke, { as: "span", ml: "200", children: d.headerIcon })
3532
+ /* @__PURE__ */ D("span", { "data-multiline-header": !0, children: a.header }),
3533
+ a.headerIcon && /* @__PURE__ */ D(we, { as: "span", ml: "200", children: a.headerIcon })
3455
3534
  ]
3456
3535
  }
3457
- ) })
3536
+ ) }),
3537
+ /* @__PURE__ */ D(
3538
+ $e,
3539
+ {
3540
+ className: "pin-rows-column-header",
3541
+ id: "pin-rows",
3542
+ maxWidth: 72,
3543
+ minWidth: 72,
3544
+ allowsSorting: !1,
3545
+ isInternalColumn: !0,
3546
+ "aria-label": "Pin rows",
3547
+ children: /* @__PURE__ */ D(rt, { children: "Pin rows" })
3548
+ }
3549
+ )
3458
3550
  ]
3459
3551
  }
3460
3552
  );
3461
3553
  });
3462
- Ue.displayName = "DataTable.Header";
3463
- function il(t, e, l, n) {
3554
+ qe.displayName = "DataTable.Header";
3555
+ function ml(t, e, l, n) {
3464
3556
  if (!e) return t;
3465
3557
  const o = e.toLowerCase();
3466
- return t.map((r) => {
3467
- const i = l.some((u) => {
3468
- const s = u.accessor(r);
3469
- return typeof s == "string" && s.toLowerCase().includes(o);
3558
+ return t.map((i) => {
3559
+ const r = l.some((u) => {
3560
+ const c = u.accessor(i);
3561
+ return typeof c == "string" && c.toLowerCase().includes(o);
3470
3562
  });
3471
- if (n && r[n]) {
3472
- let u = r[n];
3473
- if (Array.isArray(r[n])) {
3474
- if (u = il(
3475
- r[n],
3563
+ if (n && i[n]) {
3564
+ let u = i[n];
3565
+ if (Array.isArray(i[n])) {
3566
+ if (u = ml(
3567
+ i[n],
3476
3568
  e,
3477
3569
  l,
3478
3570
  n
3479
- ), i || u && Array.isArray(u) && u.length > 0)
3480
- return { ...r, [n]: u };
3481
- } else if (i)
3482
- return { ...r, [n]: u };
3571
+ ), r || u && Array.isArray(u) && u.length > 0)
3572
+ return { ...i, [n]: u };
3573
+ } else if (r)
3574
+ return { ...i, [n]: u };
3483
3575
  return null;
3484
3576
  } else
3485
- return i ? r : null;
3577
+ return r ? i : null;
3486
3578
  }).filter(Boolean);
3487
3579
  }
3488
- function al(t, e, l, n) {
3489
- if (!e) return t;
3490
- const o = l.find((i) => i.id === e.column);
3491
- return o ? [...t].sort((i, u) => {
3492
- const s = o.accessor(i), d = o.accessor(u);
3493
- if (s == null && d == null) return 0;
3494
- if (s == null) return 1;
3495
- if (d == null) return -1;
3496
- let c = s, a = d;
3497
- return typeof s == "number" && typeof d == "number" ? (c = s, a = d) : (c = String(s).toLowerCase(), a = String(d).toLowerCase()), c < a ? e.direction === "ascending" ? -1 : 1 : c > a ? e.direction === "ascending" ? 1 : -1 : 0;
3498
- }).map((i) => !n || !i[n] ? i : {
3499
- ...i,
3500
- [n]: Array.isArray(i[n]) ? al(i[n], e, l, n) : i[n]
3501
- }) : t;
3580
+ function gl(t, e, l, n, o) {
3581
+ const i = [], r = [];
3582
+ t.forEach((a) => {
3583
+ o?.has(a.id) ? i.push(a) : r.push(a);
3584
+ });
3585
+ let u = r;
3586
+ if (e) {
3587
+ const a = l.find((d) => d.id === e.column);
3588
+ a && (u = [...r].sort((d, s) => {
3589
+ const p = a.accessor(d), f = a.accessor(s);
3590
+ if (p == null && f == null) return 0;
3591
+ if (p == null) return 1;
3592
+ if (f == null) return -1;
3593
+ let h = p, g = f;
3594
+ return typeof p == "number" && typeof f == "number" ? (h = p, g = f) : (h = String(p).toLowerCase(), g = String(f).toLowerCase()), h < g ? e.direction === "ascending" ? -1 : 1 : h > g ? e.direction === "ascending" ? 1 : -1 : 0;
3595
+ }));
3596
+ }
3597
+ return [...i, ...u].map((a) => !n || !a[n] ? a : {
3598
+ ...a,
3599
+ [n]: Array.isArray(a[n]) ? gl(
3600
+ a[n],
3601
+ e,
3602
+ l,
3603
+ n,
3604
+ o
3605
+ ) : a[n]
3606
+ });
3502
3607
  }
3503
- function ul(t, e) {
3608
+ function bl(t, e) {
3504
3609
  return e ? t.some(
3505
- (l) => l[e] && (Array.isArray(l[e]) ? l[e].length > 0 : !0) || Array.isArray(l[e]) && ul(l[e], e)
3610
+ (l) => l[e] && (Array.isArray(l[e]) ? l[e].length > 0 : !0) || Array.isArray(l[e]) && bl(l[e], e)
3506
3611
  ) : !1;
3507
3612
  }
3508
- const Ye = /* @__PURE__ */ Y(
3613
+ const Ze = /* @__PURE__ */ X(
3509
3614
  function(e, l) {
3510
3615
  const {
3511
3616
  columns: n = [],
3512
3617
  data: o = [],
3513
- visibleColumns: r,
3514
- search: i,
3618
+ visibleColumns: i,
3619
+ search: r,
3515
3620
  sortDescriptor: u,
3516
- onSortChange: s,
3517
- selectedKeys: d,
3518
- defaultSelectedKeys: c,
3519
- onSelectionChange: a,
3621
+ onSortChange: c,
3622
+ selectedKeys: a,
3623
+ defaultSelectedKeys: d,
3624
+ onSelectionChange: s,
3520
3625
  selectionMode: p = "none",
3521
3626
  disallowEmptySelection: f = !1,
3522
3627
  allowsSorting: h = !1,
3523
- maxHeight: b,
3524
- isTruncated: v = !1,
3525
- density: m = "default",
3628
+ maxHeight: g,
3629
+ isTruncated: y = !1,
3630
+ density: v = "default",
3526
3631
  nestedKey: x,
3527
- onRowClick: g,
3632
+ onRowClick: m,
3528
3633
  onDetailsClick: $,
3529
- disabledKeys: y,
3530
- onRowAction: D,
3531
- isResizable: k,
3532
- children: K,
3533
- ...R
3534
- } = e, [S, z] = Z(), [P, V] = Z({}), U = u ?? S, T = N(() => n.filter(
3535
- (F) => (r ? r.includes(F.id) : !0) && F.isVisible !== !1
3536
- ), [n, r]), j = N(
3537
- () => i ? il(o, i, T, x) : o,
3538
- [o, i, T, x]
3539
- ), O = N(
3540
- () => al(j, U, T, x),
3541
- [j, U, T, x]
3542
- ), le = ul(O, x), ye = p !== "none", $e = L(
3543
- (A) => V((F) => ({ ...F, [A]: !F[A] })),
3634
+ disabledKeys: b,
3635
+ onRowAction: w,
3636
+ isResizable: C,
3637
+ pinnedRows: B,
3638
+ defaultPinnedRows: P,
3639
+ onPinToggle: E,
3640
+ children: W,
3641
+ ...K
3642
+ } = e, [T, O] = Z(), [F, Y] = Z({}), [L, te] = Z(
3643
+ () => P || /* @__PURE__ */ new Set()
3644
+ ), le = u ?? T, _ = B ?? L, z = N(() => n.filter(
3645
+ (ue) => (i ? i.includes(ue.id) : !0) && ue.isVisible !== !1
3646
+ ), [n, i]), S = N(
3647
+ () => r ? ml(o, r, z, x) : o,
3648
+ [o, r, z, x]
3649
+ ), A = N(
3650
+ () => gl(
3651
+ S,
3652
+ le,
3653
+ z,
3654
+ x,
3655
+ _
3656
+ ),
3657
+ [S, le, z, x, _]
3658
+ ), U = bl(A, x), ke = p !== "none", Je = V(
3659
+ (G) => Y((ue) => ({ ...ue, [G]: !ue[G] })),
3544
3660
  []
3545
- ), xe = L(
3546
- (A) => {
3547
- s ? s(A) : z(A);
3661
+ ), _e = V(
3662
+ (G) => {
3663
+ E ? E(G) : te((ue) => {
3664
+ const Ee = new Set(ue);
3665
+ return Ee.has(G) ? Ee.delete(G) : Ee.add(G), Ee;
3666
+ });
3667
+ },
3668
+ [E]
3669
+ ), et = V(
3670
+ (G) => {
3671
+ c ? c(G) : O(G);
3548
3672
  },
3549
- [s]
3550
- ), E = N(
3673
+ [c]
3674
+ ), vl = N(
3551
3675
  () => ({
3552
3676
  columns: n,
3553
3677
  data: o,
3554
- visibleColumns: r,
3555
- search: i,
3556
- sortDescriptor: U,
3557
- selectedKeys: d,
3558
- defaultSelectedKeys: c,
3559
- expanded: P,
3678
+ visibleColumns: i,
3679
+ search: r,
3680
+ sortDescriptor: le,
3681
+ selectedKeys: a,
3682
+ defaultSelectedKeys: d,
3683
+ expanded: F,
3560
3684
  allowsSorting: h,
3561
3685
  selectionMode: p,
3562
3686
  disallowEmptySelection: f,
3563
- maxHeight: b,
3564
- isTruncated: v,
3565
- density: m,
3687
+ maxHeight: g,
3688
+ isTruncated: y,
3689
+ density: v,
3566
3690
  nestedKey: x,
3567
- onSortChange: xe,
3568
- onSelectionChange: a,
3569
- onRowClick: g,
3691
+ onSortChange: et,
3692
+ onSelectionChange: s,
3693
+ onRowClick: m,
3570
3694
  onDetailsClick: $,
3571
- toggleExpand: $e,
3572
- activeColumns: T,
3573
- filteredRows: j,
3574
- sortedRows: O,
3575
- showExpandColumn: le,
3576
- showSelectionColumn: ye,
3577
- isResizable: k,
3578
- disabledKeys: y,
3579
- onRowAction: D
3695
+ toggleExpand: Je,
3696
+ activeColumns: z,
3697
+ filteredRows: S,
3698
+ sortedRows: A,
3699
+ showExpandColumn: U,
3700
+ showSelectionColumn: ke,
3701
+ isResizable: C,
3702
+ disabledKeys: b,
3703
+ onRowAction: w,
3704
+ pinnedRows: _,
3705
+ onPinToggle: E,
3706
+ togglePin: _e
3580
3707
  }),
3581
3708
  [
3582
3709
  n,
3583
3710
  o,
3584
- r,
3585
3711
  i,
3586
- U,
3712
+ r,
3713
+ le,
3714
+ a,
3587
3715
  d,
3588
- c,
3589
- P,
3716
+ F,
3590
3717
  h,
3591
3718
  p,
3592
3719
  f,
3593
- b,
3720
+ g,
3721
+ y,
3594
3722
  v,
3595
- m,
3596
3723
  x,
3597
- xe,
3598
- a,
3599
- g,
3724
+ et,
3725
+ s,
3726
+ m,
3600
3727
  $,
3601
- $e,
3602
- T,
3603
- j,
3604
- O,
3605
- le,
3606
- ye,
3607
- k,
3608
- y,
3609
- D
3728
+ Je,
3729
+ z,
3730
+ S,
3731
+ A,
3732
+ U,
3733
+ ke,
3734
+ C,
3735
+ b,
3736
+ w,
3737
+ _,
3738
+ E,
3739
+ _e
3610
3740
  ]
3611
3741
  );
3612
- return /* @__PURE__ */ w(
3613
- ao,
3742
+ return /* @__PURE__ */ D(
3743
+ vo,
3614
3744
  {
3615
3745
  ref: l,
3616
- truncated: v,
3617
- density: m,
3746
+ truncated: y,
3747
+ density: v,
3618
3748
  style: {
3619
- ...b && {
3620
- maxHeight: b,
3749
+ ...g && {
3750
+ maxHeight: g,
3621
3751
  overflowY: "auto"
3622
3752
  }
3623
3753
  },
3624
- ...R,
3754
+ ...K,
3625
3755
  asChild: !0,
3626
- children: /* @__PURE__ */ w(Nn, { children: /* @__PURE__ */ w(
3627
- Ae.Provider,
3756
+ children: /* @__PURE__ */ D(Un, { children: /* @__PURE__ */ D(
3757
+ Ke.Provider,
3628
3758
  {
3629
- value: E,
3630
- children: K
3759
+ value: vl,
3760
+ children: W
3631
3761
  }
3632
3762
  ) })
3633
3763
  }
3634
3764
  );
3635
3765
  }
3636
3766
  );
3637
- Ye.displayName = "DataTableRoot";
3638
- const Xe = /* @__PURE__ */ Y(function({ children: e, ...l }, n) {
3767
+ Ze.displayName = "DataTableRoot";
3768
+ const Qe = /* @__PURE__ */ X(function({ children: e, ...l }, n) {
3639
3769
  const {
3640
3770
  sortDescriptor: o,
3641
- onSortChange: r,
3642
- selectionMode: i,
3771
+ onSortChange: i,
3772
+ selectionMode: r,
3643
3773
  onSelectionChange: u,
3644
- selectedKeys: s,
3645
- defaultSelectedKeys: d,
3646
- disallowEmptySelection: c,
3647
- disabledKeys: a
3648
- } = pe(), p = o ? {
3774
+ selectedKeys: c,
3775
+ defaultSelectedKeys: a,
3776
+ disallowEmptySelection: d,
3777
+ disabledKeys: s
3778
+ } = ye(), p = o ? {
3649
3779
  column: o.column,
3650
3780
  direction: o.direction
3651
3781
  } : void 0;
3652
- return /* @__PURE__ */ w(uo, { ...l, asChild: !0, children: /* @__PURE__ */ w(
3653
- Fn,
3782
+ return /* @__PURE__ */ D(yo, { ...l, asChild: !0, children: /* @__PURE__ */ D(
3783
+ Xn,
3654
3784
  {
3655
3785
  ref: n,
3656
3786
  sortDescriptor: p,
3657
3787
  onSortChange: (h) => {
3658
- h && r && r({
3788
+ h && i && i({
3659
3789
  column: String(h.column),
3660
3790
  direction: h.direction
3661
3791
  });
3662
3792
  },
3663
- selectedKeys: s,
3664
- defaultSelectedKeys: d,
3793
+ selectedKeys: c,
3794
+ defaultSelectedKeys: a,
3665
3795
  onSelectionChange: u,
3666
- selectionMode: i,
3667
- disallowEmptySelection: c,
3668
- disabledKeys: a,
3796
+ selectionMode: r,
3797
+ disallowEmptySelection: d,
3798
+ disabledKeys: s,
3669
3799
  disabledBehavior: "all",
3670
3800
  ...l,
3671
3801
  children: e
3672
3802
  }
3673
3803
  ) });
3674
3804
  });
3675
- Xe.displayName = "DataTable.Table";
3676
- const bo = /* @__PURE__ */ Y(function({ footer: e, ...l }, n) {
3677
- return /* @__PURE__ */ ne(Ye, { ref: n, ...l, children: [
3678
- /* @__PURE__ */ ne(Xe, { "aria-label": "Data Table", children: [
3679
- /* @__PURE__ */ w(Ue, { "aria-label": "Data Table Header" }),
3680
- /* @__PURE__ */ w(Oe, { "aria-label": "Data Table Body" })
3805
+ Qe.displayName = "DataTable.Table";
3806
+ const Eo = /* @__PURE__ */ X(function({ footer: e, ...l }, n) {
3807
+ return /* @__PURE__ */ ie(Ze, { ref: n, ...l, children: [
3808
+ /* @__PURE__ */ ie(Qe, { "aria-label": "Data Table", children: [
3809
+ /* @__PURE__ */ D(qe, { "aria-label": "Data Table Header" }),
3810
+ /* @__PURE__ */ D(Xe, { "aria-label": "Data Table Body" })
3681
3811
  ] }),
3682
- e && /* @__PURE__ */ w(Le, { children: e })
3812
+ e && /* @__PURE__ */ D(Ge, { children: e })
3683
3813
  ] });
3684
- }), rr = /* @__PURE__ */ Object.assign(bo, {
3685
- Root: Ye,
3686
- Table: Xe,
3687
- Header: Ue,
3688
- Column: Ce,
3689
- Body: Oe,
3690
- Row: je,
3814
+ }), bi = /* @__PURE__ */ Object.assign(Eo, {
3815
+ Root: Ze,
3816
+ Table: Qe,
3817
+ Header: qe,
3818
+ Column: $e,
3819
+ Body: Xe,
3820
+ Row: Ye,
3691
3821
  Cell: he,
3692
- Footer: Le,
3693
- ExpandButton: rl,
3694
- NestedIcon: po,
3695
- SelectionCell: fo,
3696
- Context: Ae,
3697
- useDataTableContext: pe
3822
+ Footer: Ge,
3823
+ ExpandButton: hl,
3824
+ NestedIcon: Do,
3825
+ SelectionCell: wo,
3826
+ Context: Ke,
3827
+ useDataTableContext: ye
3698
3828
  });
3699
3829
  export {
3700
- rr as D,
3701
- Ye as a,
3702
- Xe as b,
3703
- Ue as c,
3704
- Ce as d,
3705
- Oe as e,
3706
- je as f,
3830
+ bi as D,
3831
+ Ze as a,
3832
+ Qe as b,
3833
+ qe as c,
3834
+ $e as d,
3835
+ Xe as e,
3836
+ Ye as f,
3707
3837
  he as g,
3708
- Le as h,
3709
- rl as i,
3710
- po as j,
3711
- fo as k
3838
+ Ge as h,
3839
+ hl as i,
3840
+ Do as j,
3841
+ wo as k
3712
3842
  };
3713
- //# sourceMappingURL=data-table-D7Gq4ZYT.es.js.map
3843
+ //# sourceMappingURL=data-table-cBq9JXG7.es.js.map