@midas-ds/components 1.0.2 → 1.0.3

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 (125) hide show
  1. package/Button-B4vMZbC6.js +182 -0
  2. package/CHANGELOG.md +10 -0
  3. package/Checkbox-DnKWanep.js +402 -0
  4. package/{Collection-B3xUVWPF.js → Collection-COLWgm24.js} +179 -152
  5. package/Dialog-Cb6toyXO.js +1951 -0
  6. package/DragAndDrop-B0T3WgjL.js +40 -0
  7. package/FocusScope-C8i7CH6y.js +513 -0
  8. package/Form-BQQs3jUk.js +238 -0
  9. package/Group-CdwXhx8Q.js +42 -0
  10. package/{Hidden-BQWDvze4.js → Hidden-DngIphiL.js} +1 -1
  11. package/Link-iAZLB3RI.js +75 -0
  12. package/ListBox-BKWkIIm6.js +474 -0
  13. package/ListKeyboardDelegate-BH-K5hyq.js +172 -0
  14. package/{PressResponder-DP8ZDNGy.js → PressResponder-Cz-TRBHO.js} +10 -10
  15. package/README.md +21 -3
  16. package/SelectionManager-8o40f7mx.js +1047 -0
  17. package/Separator-BlvmQjwz.js +49 -0
  18. package/Tag--W5TgxmK.js +728 -0
  19. package/Text-CQPW6xs7.js +15 -0
  20. package/TextField-DeK_yiK-.js +225 -0
  21. package/TextField.module-0-u4LVPp.js +143 -0
  22. package/{VisuallyHidden-B_XzVvlX.js → VisuallyHidden-CFx06Bae.js} +1 -1
  23. package/{context-ScOIq_Gu.js → context-Bnqknrce.js} +1 -1
  24. package/index-B-jHjTDC.js +120 -0
  25. package/{index-CorR1LBD.js → index-BPdc9gJ8.js} +3 -3
  26. package/index-DK9ZACEc.js +642 -0
  27. package/{index-Dl1Q-tbj.js → index-KSgQWWiy.js} +5315 -5315
  28. package/index.js +45 -47
  29. package/index15.js +1 -1
  30. package/index16.js +1 -1
  31. package/index25.js +1 -1
  32. package/index26.js +1 -1
  33. package/index3.js +2 -4
  34. package/index31.js +3 -3
  35. package/index32.js +2 -2
  36. package/index33.js +2 -2
  37. package/index34.js +1 -1
  38. package/index35.js +1 -1
  39. package/index36.js +1 -1
  40. package/index37.js +1 -1
  41. package/index38.js +1 -1
  42. package/index39.js +1 -1
  43. package/index40.js +1 -1
  44. package/index41.js +1 -1
  45. package/index42.js +1 -1
  46. package/index43.js +1 -1
  47. package/index45.js +3 -3
  48. package/index5.js +1 -1
  49. package/index50.js +1 -1
  50. package/index52.js +3 -3
  51. package/index53.js +3 -3
  52. package/index54.js +1 -1
  53. package/index55.js +4 -4
  54. package/index56.js +1 -1
  55. package/index57.js +1 -1
  56. package/index58.js +1 -1
  57. package/index59.js +3 -3
  58. package/index60.js +1 -1
  59. package/index61.js +1 -1
  60. package/index62.js +1 -1
  61. package/index63.js +4 -4
  62. package/index64.js +3 -3
  63. package/index65.js +3 -3
  64. package/index66.js +1 -1
  65. package/index67.js +3 -3
  66. package/index68.js +2 -2
  67. package/index69.js +1 -1
  68. package/index71.js +1 -1
  69. package/index76.js +5 -5
  70. package/index77.js +2 -2
  71. package/index78.js +2 -2
  72. package/index79.js +1 -1
  73. package/index80.js +226 -227
  74. package/index81.js +197 -199
  75. package/index82.js +192 -195
  76. package/index83.js +181 -183
  77. package/index84.js +52 -54
  78. package/index85.js +261 -262
  79. package/index86.js +262 -262
  80. package/index87.js +209 -211
  81. package/index88.js +436 -440
  82. package/index89.js +962 -964
  83. package/index90.js +2401 -2399
  84. package/index92.js +5 -5
  85. package/index93.js +1 -1
  86. package/index94.js +1 -1
  87. package/link/Link.d.ts +2 -2
  88. package/link-button/LinkButton.d.ts +1 -1
  89. package/package.json +7 -1
  90. package/{react.esm-D8HpDGKP.js → react.esm-sMU8Z7rL.js} +1872 -1872
  91. package/textfield/index.d.ts +0 -2
  92. package/{useControlledState-S_TYcV_c.js → useControlledState-DrAoodI6.js} +1 -1
  93. package/{useDescription-D4_zk_sA.js → useDescription-BPs7eRff.js} +1 -1
  94. package/useField-Dz62UHCP.js +67 -0
  95. package/{useFilter-BnJDBCkt.js → useFilter-ViwzkzZe.js} +1 -1
  96. package/useFocusRing-BKGhL91C.js +1297 -0
  97. package/{useFocusable-C-N9wcwm.js → useFocusable-CRSmYEQc.js} +11 -8
  98. package/{useGridSelectionCheckbox-i1rsjlC-.js → useGridSelectionCheckbox-CVEvUCJL.js} +3 -3
  99. package/useHasTabbableChild-C8y4fwiY.js +34 -0
  100. package/{useHighlightSelectionDescription-JVx2MW_e.js → useHighlightSelectionDescription-CD74uzLh.js} +19 -19
  101. package/useListState-DKnP5TB5.js +119 -0
  102. package/{useLocalizedStringFormatter-DVCAZqcL.js → useLocalizedStringFormatter-DsZ-ZWSk.js} +29 -29
  103. package/{useSingleSelectListState-CmX9_L5H.js → useSingleSelectListState-BHTLh8Ob.js} +5 -5
  104. package/Button-CCevm2s3.js +0 -183
  105. package/Checkbox-CllWDBxF.js +0 -405
  106. package/Dialog-CLTyYwkS.js +0 -1889
  107. package/DragAndDrop-OTN7La7U.js +0 -42
  108. package/FocusScope-BR0SJ-cZ.js +0 -512
  109. package/Form-DXLoQL91.js +0 -240
  110. package/Group-DPMuN3h8.js +0 -44
  111. package/Label-C18A_4Z5.js +0 -69
  112. package/Link-BU1h3K2a.js +0 -77
  113. package/ListBox-D21tdwTs.js +0 -463
  114. package/ListKeyboardDelegate-DxMjfMsI.js +0 -172
  115. package/SelectionManager-D4WtKtey.js +0 -988
  116. package/Separator-DLUHK9vv.js +0 -48
  117. package/Tag-CEd6WWSc.js +0 -725
  118. package/Text-DGLaY3HR.js +0 -17
  119. package/TextField-C_hq9WeT.js +0 -226
  120. package/TextField.module-Cwq1FAm7.js +0 -141
  121. package/index-CEg5vZQH.js +0 -132
  122. package/index-CgfokhRq.js +0 -674
  123. package/useFocusRing-D97-G3fT.js +0 -1324
  124. package/useHasTabbableChild-DeuCnGGv.js +0 -34
  125. package/useListState-DSOTbsL3.js +0 -119
package/index89.js CHANGED
@@ -1,33 +1,33 @@
1
- import { jsx as z, jsxs as fe, Fragment as Bt } from "react/jsx-runtime";
2
- import { b as At, a as Kt, $ as Pt } from "./Button-CCevm2s3.js";
1
+ import { jsx as z, jsxs as fe, Fragment as An } from "react/jsx-runtime";
2
+ import { b as Kn, a as Pn, $ as Fn } from "./Button-B4vMZbC6.js";
3
3
  import { $ as ze } from "./RSPContexts-EOiWkKOf.js";
4
- import { g as pe, a as K, $ as he, h as Ft, d as X, b as Be, c as Nt, i as Rt, j as xe } from "./Collection-B3xUVWPF.js";
5
- import { k as Ae, n as H, e as A, D as Mt, t as V, E as Ht, m as Vt, Q as De, O as Tt, d as I, b as te, x as le, i as _, c as Q, A as Ce, a as jt, H as It } from "./useFocusRing-D97-G3fT.js";
6
- import { $ as L, c as Ot, a as Wt, b as Ut } from "./DragAndDrop-OTN7La7U.js";
7
- import { j as O, e as w, h as j, k as T, d as Gt, f as Ke, i as U, $ as Pe, b as Lt, a as Yt } from "./SelectionManager-D4WtKtey.js";
8
- import b, { useMemo as M, useCallback as ge, useRef as P, useEffect as oe, useState as qt, useContext as C, createContext as Y, forwardRef as Fe } from "react";
4
+ import { g as pe, b as K, c as he, a as X, $ as Nn, h as Rn, d as Be, i as Mn, j as xe } from "./Collection-COLWgm24.js";
5
+ import { l as Ae, n as H, e as A, G as Hn, t as V, H as Vn, m as Tn, u as De, Q as jn, d as I, a as In, i as _, I as Wn, c as Q, A as ne, b as te, D as Ce } from "./useFocusRing-BKGhL91C.js";
6
+ import { $ as L, c as On, a as Un, b as Gn } from "./DragAndDrop-B0T3WgjL.js";
7
+ import { j as W, f as w, h as j, k as T, e as Ln, d as Ke, i as U, $ as Pe, b as Yn, a as qn } from "./SelectionManager-8o40f7mx.js";
8
+ import m, { useMemo as M, useCallback as ge, useRef as P, useEffect as le, useState as Zn, useContext as C, createContext as Y, forwardRef as Fe } from "react";
9
9
  import "react-dom";
10
- import { $ as ve } from "./VisuallyHidden-B_XzVvlX.js";
11
- import { $ as Zt } from "./useGridSelectionCheckbox-i1rsjlC-.js";
12
- import { $ as be } from "./useLocalizedStringFormatter-DVCAZqcL.js";
13
- import { $ as Ne } from "./useDescription-D4_zk_sA.js";
14
- import { $ as Jt } from "./useFocusable-C-N9wcwm.js";
15
- import { $ as ke, a as Qt } from "./FocusScope-BR0SJ-cZ.js";
16
- import { c as Xt, $ as Re, b as G, a as _t } from "./ListKeyboardDelegate-DxMjfMsI.js";
17
- import { $ as ne } from "./context-ScOIq_Gu.js";
18
- import { a as el, b as tl } from "./useHighlightSelectionDescription-JVx2MW_e.js";
19
- import { $ as ll } from "./useHasTabbableChild-DeuCnGGv.js";
20
- import { $ as ol } from "./useUpdateEffect-Dtz-i14F.js";
21
- import { C as Me } from "./Checkbox-CllWDBxF.js";
10
+ import { $ as be } from "./VisuallyHidden-CFx06Bae.js";
11
+ import { c as Jn, $ as Ne, b as G, a as Qn } from "./ListKeyboardDelegate-BH-K5hyq.js";
12
+ import { a as Xn, b as _n } from "./useHighlightSelectionDescription-CD74uzLh.js";
13
+ import { $ as ue } from "./context-Bnqknrce.js";
14
+ import { $ as et } from "./useHasTabbableChild-C8y4fwiY.js";
15
+ import { $ as nt } from "./useUpdateEffect-Dtz-i14F.js";
16
+ import { $ as Re } from "./useDescription-BPs7eRff.js";
17
+ import { $ as me } from "./useLocalizedStringFormatter-DsZ-ZWSk.js";
18
+ import { $ as ke, a as tt } from "./FocusScope-C8i7CH6y.js";
19
+ import { $ as lt } from "./useGridSelectionCheckbox-CVEvUCJL.js";
20
+ import { $ as ut } from "./useFocusable-CRSmYEQc.js";
21
+ import { C as Me } from "./Checkbox-DnKWanep.js";
22
22
  import { c as He } from "./clsx-OuTLNxxd.js";
23
- import { c as me } from "./createLucideIcon-DeWljiyi.js";
23
+ import { c as ye } from "./createLucideIcon-DeWljiyi.js";
24
24
  import './Table.css';/**
25
25
  * @license lucide-react v0.453.0 - ISC
26
26
  *
27
27
  * This source code is licensed under the ISC license.
28
28
  * See the LICENSE file in the root directory of this source tree.
29
29
  */
30
- const nl = me("ArrowDownNarrowWide", [
30
+ const rt = ye("ArrowDownNarrowWide", [
31
31
  ["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
32
32
  ["path", { d: "M7 20V4", key: "1yoxec" }],
33
33
  ["path", { d: "M11 4h4", key: "6d7r33" }],
@@ -40,7 +40,7 @@ const nl = me("ArrowDownNarrowWide", [
40
40
  * This source code is licensed under the ISC license.
41
41
  * See the LICENSE file in the root directory of this source tree.
42
42
  */
43
- const rl = me("ArrowUpWideNarrow", [
43
+ const it = ye("ArrowUpWideNarrow", [
44
44
  ["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
45
45
  ["path", { d: "M7 4v16", key: "1glfcx" }],
46
46
  ["path", { d: "M11 12h10", key: "1438ji" }],
@@ -53,7 +53,7 @@ const rl = me("ArrowUpWideNarrow", [
53
53
  * This source code is licensed under the ISC license.
54
54
  * See the LICENSE file in the root directory of this source tree.
55
55
  */
56
- const il = me("GripVertical", [
56
+ const ot = ye("GripVertical", [
57
57
  ["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
58
58
  ["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
59
59
  ["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
@@ -62,272 +62,272 @@ const il = me("GripVertical", [
62
62
  ["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
63
63
  ]);
64
64
  class Ve {
65
- isCell(t) {
66
- return t.type === "cell";
65
+ isCell(n) {
66
+ return n.type === "cell";
67
67
  }
68
- isRow(t) {
69
- return t.type === "row" || t.type === "item";
68
+ isRow(n) {
69
+ return n.type === "row" || n.type === "item";
70
70
  }
71
- isDisabled(t) {
72
- var l;
73
- return this.disabledBehavior === "all" && (((l = t.props) === null || l === void 0 ? void 0 : l.isDisabled) || this.disabledKeys.has(t.key));
74
- }
75
- findPreviousKey(t, l) {
76
- let o = t != null ? this.collection.getKeyBefore(t) : this.collection.getLastKey();
77
- for (; o != null; ) {
78
- let n = this.collection.getItem(o);
79
- if (!n) return null;
80
- if (!this.isDisabled(n) && (!l || l(n))) return o;
81
- o = this.collection.getKeyBefore(o);
71
+ isDisabled(n) {
72
+ var t;
73
+ return this.disabledBehavior === "all" && (((t = n.props) === null || t === void 0 ? void 0 : t.isDisabled) || this.disabledKeys.has(n.key));
74
+ }
75
+ findPreviousKey(n, t) {
76
+ let l = n != null ? this.collection.getKeyBefore(n) : this.collection.getLastKey();
77
+ for (; l != null; ) {
78
+ let u = this.collection.getItem(l);
79
+ if (!u) return null;
80
+ if (!this.isDisabled(u) && (!t || t(u))) return l;
81
+ l = this.collection.getKeyBefore(l);
82
82
  }
83
83
  return null;
84
84
  }
85
- findNextKey(t, l) {
86
- let o = t != null ? this.collection.getKeyAfter(t) : this.collection.getFirstKey();
87
- for (; o != null; ) {
88
- let n = this.collection.getItem(o);
89
- if (!n) return null;
90
- if (!this.isDisabled(n) && (!l || l(n))) return o;
91
- if (o = this.collection.getKeyAfter(o), o == null) return null;
85
+ findNextKey(n, t) {
86
+ let l = n != null ? this.collection.getKeyAfter(n) : this.collection.getFirstKey();
87
+ for (; l != null; ) {
88
+ let u = this.collection.getItem(l);
89
+ if (!u) return null;
90
+ if (!this.isDisabled(u) && (!t || t(u))) return l;
91
+ if (l = this.collection.getKeyAfter(l), l == null) return null;
92
92
  }
93
93
  return null;
94
94
  }
95
- getKeyBelow(t) {
96
- let l = t, o = this.collection.getItem(l);
97
- if (!o) return null;
98
- var n;
99
- if (this.isCell(o) && (l = (n = o.parentKey) !== null && n !== void 0 ? n : null), l == null) return null;
100
- if (l = this.findNextKey(l, (d) => d.type === "item"), l != null) {
101
- if (this.isCell(o)) {
95
+ getKeyBelow(n) {
96
+ let t = n, l = this.collection.getItem(t);
97
+ if (!l) return null;
98
+ var u;
99
+ if (this.isCell(l) && (t = (u = l.parentKey) !== null && u !== void 0 ? u : null), t == null) return null;
100
+ if (t = this.findNextKey(t, (d) => d.type === "item"), t != null) {
101
+ if (this.isCell(l)) {
102
102
  var r;
103
- let d = this.collection.getItem(l);
103
+ let d = this.collection.getItem(t);
104
104
  if (!d) return null;
105
105
  var i, c;
106
- return (c = (r = O(w(d, this.collection), (i = o.index) !== null && i !== void 0 ? i : 0)) === null || r === void 0 ? void 0 : r.key) !== null && c !== void 0 ? c : null;
106
+ return (c = (r = W(w(d, this.collection), (i = l.index) !== null && i !== void 0 ? i : 0)) === null || r === void 0 ? void 0 : r.key) !== null && c !== void 0 ? c : null;
107
107
  }
108
- if (this.focusMode === "row") return l;
108
+ if (this.focusMode === "row") return t;
109
109
  }
110
110
  return null;
111
111
  }
112
- getKeyAbove(t) {
113
- let l = t, o = this.collection.getItem(l);
114
- if (!o) return null;
115
- var n;
116
- if (this.isCell(o) && (l = (n = o.parentKey) !== null && n !== void 0 ? n : null), l == null) return null;
117
- if (l = this.findPreviousKey(l, (c) => c.type === "item"), l != null) {
118
- if (this.isCell(o)) {
112
+ getKeyAbove(n) {
113
+ let t = n, l = this.collection.getItem(t);
114
+ if (!l) return null;
115
+ var u;
116
+ if (this.isCell(l) && (t = (u = l.parentKey) !== null && u !== void 0 ? u : null), t == null) return null;
117
+ if (t = this.findPreviousKey(t, (c) => c.type === "item"), t != null) {
118
+ if (this.isCell(l)) {
119
119
  var r;
120
- let c = this.collection.getItem(l);
120
+ let c = this.collection.getItem(t);
121
121
  if (!c) return null;
122
122
  var i;
123
- return ((r = O(w(c, this.collection), (i = o.index) !== null && i !== void 0 ? i : 0)) === null || r === void 0 ? void 0 : r.key) || null;
123
+ return ((r = W(w(c, this.collection), (i = l.index) !== null && i !== void 0 ? i : 0)) === null || r === void 0 ? void 0 : r.key) || null;
124
124
  }
125
- if (this.focusMode === "row") return l;
125
+ if (this.focusMode === "row") return t;
126
126
  }
127
127
  return null;
128
128
  }
129
- getKeyRightOf(t) {
130
- let l = this.collection.getItem(t);
131
- if (!l) return null;
132
- if (this.isRow(l)) {
133
- var o, n;
134
- let a = w(l, this.collection);
129
+ getKeyRightOf(n) {
130
+ let t = this.collection.getItem(n);
131
+ if (!t) return null;
132
+ if (this.isRow(t)) {
133
+ var l, u;
134
+ let a = w(t, this.collection);
135
135
  var r;
136
- return (r = this.direction === "rtl" ? (o = j(a)) === null || o === void 0 ? void 0 : o.key : (n = T(a)) === null || n === void 0 ? void 0 : n.key) !== null && r !== void 0 ? r : null;
136
+ return (r = this.direction === "rtl" ? (l = j(a)) === null || l === void 0 ? void 0 : l.key : (u = T(a)) === null || u === void 0 ? void 0 : u.key) !== null && r !== void 0 ? r : null;
137
137
  }
138
- if (this.isCell(l) && l.parentKey != null) {
139
- let a = this.collection.getItem(l.parentKey);
138
+ if (this.isCell(t) && t.parentKey != null) {
139
+ let a = this.collection.getItem(t.parentKey);
140
140
  if (!a) return null;
141
- let u = w(a, this.collection);
141
+ let o = w(a, this.collection);
142
142
  var i;
143
- let s = (i = this.direction === "rtl" ? O(u, l.index - 1) : O(u, l.index + 1)) !== null && i !== void 0 ? i : null;
143
+ let s = (i = this.direction === "rtl" ? W(o, t.index - 1) : W(o, t.index + 1)) !== null && i !== void 0 ? i : null;
144
144
  var c;
145
145
  if (s) return (c = s.key) !== null && c !== void 0 ? c : null;
146
146
  var d;
147
- if (this.focusMode === "row") return (d = l.parentKey) !== null && d !== void 0 ? d : null;
147
+ if (this.focusMode === "row") return (d = t.parentKey) !== null && d !== void 0 ? d : null;
148
148
  var f;
149
- return (f = this.direction === "rtl" ? this.getFirstKey(t) : this.getLastKey(t)) !== null && f !== void 0 ? f : null;
149
+ return (f = this.direction === "rtl" ? this.getFirstKey(n) : this.getLastKey(n)) !== null && f !== void 0 ? f : null;
150
150
  }
151
151
  return null;
152
152
  }
153
- getKeyLeftOf(t) {
154
- let l = this.collection.getItem(t);
155
- if (!l) return null;
156
- if (this.isRow(l)) {
157
- var o, n;
158
- let a = w(l, this.collection);
153
+ getKeyLeftOf(n) {
154
+ let t = this.collection.getItem(n);
155
+ if (!t) return null;
156
+ if (this.isRow(t)) {
157
+ var l, u;
158
+ let a = w(t, this.collection);
159
159
  var r;
160
- return (r = this.direction === "rtl" ? (o = T(a)) === null || o === void 0 ? void 0 : o.key : (n = j(a)) === null || n === void 0 ? void 0 : n.key) !== null && r !== void 0 ? r : null;
160
+ return (r = this.direction === "rtl" ? (l = T(a)) === null || l === void 0 ? void 0 : l.key : (u = j(a)) === null || u === void 0 ? void 0 : u.key) !== null && r !== void 0 ? r : null;
161
161
  }
162
- if (this.isCell(l) && l.parentKey != null) {
163
- let a = this.collection.getItem(l.parentKey);
162
+ if (this.isCell(t) && t.parentKey != null) {
163
+ let a = this.collection.getItem(t.parentKey);
164
164
  if (!a) return null;
165
- let u = w(a, this.collection);
165
+ let o = w(a, this.collection);
166
166
  var i;
167
- let s = (i = this.direction === "rtl" ? O(u, l.index + 1) : O(u, l.index - 1)) !== null && i !== void 0 ? i : null;
167
+ let s = (i = this.direction === "rtl" ? W(o, t.index + 1) : W(o, t.index - 1)) !== null && i !== void 0 ? i : null;
168
168
  var c;
169
169
  if (s) return (c = s.key) !== null && c !== void 0 ? c : null;
170
170
  var d;
171
- if (this.focusMode === "row") return (d = l.parentKey) !== null && d !== void 0 ? d : null;
171
+ if (this.focusMode === "row") return (d = t.parentKey) !== null && d !== void 0 ? d : null;
172
172
  var f;
173
- return (f = this.direction === "rtl" ? this.getLastKey(t) : this.getFirstKey(t)) !== null && f !== void 0 ? f : null;
173
+ return (f = this.direction === "rtl" ? this.getLastKey(n) : this.getFirstKey(n)) !== null && f !== void 0 ? f : null;
174
174
  }
175
175
  return null;
176
176
  }
177
- getFirstKey(t, l) {
178
- let o = t ?? null, n;
179
- if (o != null) {
180
- if (n = this.collection.getItem(o), !n) return null;
181
- if (this.isCell(n) && !l && n.parentKey != null) {
177
+ getFirstKey(n, t) {
178
+ let l = n ?? null, u;
179
+ if (l != null) {
180
+ if (u = this.collection.getItem(l), !u) return null;
181
+ if (this.isCell(u) && !t && u.parentKey != null) {
182
182
  var r;
183
- let f = this.collection.getItem(n.parentKey);
183
+ let f = this.collection.getItem(u.parentKey);
184
184
  if (!f) return null;
185
185
  var i;
186
186
  return (i = (r = T(w(f, this.collection))) === null || r === void 0 ? void 0 : r.key) !== null && i !== void 0 ? i : null;
187
187
  }
188
188
  }
189
- if (o = this.findNextKey(void 0, (f) => f.type === "item"), o != null && (n && this.isCell(n) && l || this.focusMode === "cell")) {
189
+ if (l = this.findNextKey(void 0, (f) => f.type === "item"), l != null && (u && this.isCell(u) && t || this.focusMode === "cell")) {
190
190
  var c;
191
- let f = this.collection.getItem(o);
191
+ let f = this.collection.getItem(l);
192
192
  if (!f) return null;
193
193
  var d;
194
- o = (d = (c = T(w(f, this.collection))) === null || c === void 0 ? void 0 : c.key) !== null && d !== void 0 ? d : null;
194
+ l = (d = (c = T(w(f, this.collection))) === null || c === void 0 ? void 0 : c.key) !== null && d !== void 0 ? d : null;
195
195
  }
196
- return o;
196
+ return l;
197
197
  }
198
- getLastKey(t, l) {
199
- let o = t ?? null, n;
200
- if (o != null) {
201
- if (n = this.collection.getItem(o), !n) return null;
202
- if (this.isCell(n) && !l && n.parentKey != null) {
198
+ getLastKey(n, t) {
199
+ let l = n ?? null, u;
200
+ if (l != null) {
201
+ if (u = this.collection.getItem(l), !u) return null;
202
+ if (this.isCell(u) && !t && u.parentKey != null) {
203
203
  var r;
204
- let f = this.collection.getItem(n.parentKey);
204
+ let f = this.collection.getItem(u.parentKey);
205
205
  if (!f) return null;
206
206
  let a = w(f, this.collection);
207
207
  var i;
208
208
  return (i = (r = j(a)) === null || r === void 0 ? void 0 : r.key) !== null && i !== void 0 ? i : null;
209
209
  }
210
210
  }
211
- if (o = this.findPreviousKey(void 0, (f) => f.type === "item"), o != null && (n && this.isCell(n) && l || this.focusMode === "cell")) {
211
+ if (l = this.findPreviousKey(void 0, (f) => f.type === "item"), l != null && (u && this.isCell(u) && t || this.focusMode === "cell")) {
212
212
  var c;
213
- let f = this.collection.getItem(o);
213
+ let f = this.collection.getItem(l);
214
214
  if (!f) return null;
215
215
  let a = w(f, this.collection);
216
216
  var d;
217
- o = (d = (c = j(a)) === null || c === void 0 ? void 0 : c.key) !== null && d !== void 0 ? d : null;
217
+ l = (d = (c = j(a)) === null || c === void 0 ? void 0 : c.key) !== null && d !== void 0 ? d : null;
218
218
  }
219
- return o;
219
+ return l;
220
220
  }
221
- getKeyPageAbove(t) {
222
- let l = t, o = this.layoutDelegate.getItemRect(l);
223
- if (!o) return null;
224
- let n = Math.max(0, o.y + o.height - this.layoutDelegate.getVisibleRect().height);
225
- for (; o && o.y > n && l != null; ) {
221
+ getKeyPageAbove(n) {
222
+ let t = n, l = this.layoutDelegate.getItemRect(t);
223
+ if (!l) return null;
224
+ let u = Math.max(0, l.y + l.height - this.layoutDelegate.getVisibleRect().height);
225
+ for (; l && l.y > u && t != null; ) {
226
226
  var r;
227
- if (l = (r = this.getKeyAbove(l)) !== null && r !== void 0 ? r : null, l == null) break;
228
- o = this.layoutDelegate.getItemRect(l);
227
+ if (t = (r = this.getKeyAbove(t)) !== null && r !== void 0 ? r : null, t == null) break;
228
+ l = this.layoutDelegate.getItemRect(t);
229
229
  }
230
- return l;
230
+ return t;
231
231
  }
232
- getKeyPageBelow(t) {
233
- let l = t, o = this.layoutDelegate.getItemRect(l);
234
- if (!o) return null;
235
- let n = this.layoutDelegate.getVisibleRect().height, r = Math.min(this.layoutDelegate.getContentSize().height, o.y + n);
236
- for (; o && o.y + o.height < r; ) {
237
- let i = this.getKeyBelow(l);
232
+ getKeyPageBelow(n) {
233
+ let t = n, l = this.layoutDelegate.getItemRect(t);
234
+ if (!l) return null;
235
+ let u = this.layoutDelegate.getVisibleRect().height, r = Math.min(this.layoutDelegate.getContentSize().height, l.y + u);
236
+ for (; l && l.y + l.height < r; ) {
237
+ let i = this.getKeyBelow(t);
238
238
  if (i == null) break;
239
- o = this.layoutDelegate.getItemRect(i), l = i;
239
+ l = this.layoutDelegate.getItemRect(i), t = i;
240
240
  }
241
- return l;
241
+ return t;
242
242
  }
243
- getKeyForSearch(t, l) {
244
- let o = l ?? null;
243
+ getKeyForSearch(n, t) {
244
+ let l = t ?? null;
245
245
  if (!this.collator) return null;
246
- let n = this.collection;
247
- if (o = l ?? this.getFirstKey(), o == null) return null;
248
- let r = n.getItem(o);
246
+ let u = this.collection;
247
+ if (l = t ?? this.getFirstKey(), l == null) return null;
248
+ let r = u.getItem(l);
249
249
  if (!r) return null;
250
250
  var i;
251
- r.type === "cell" && (o = (i = r.parentKey) !== null && i !== void 0 ? i : null);
251
+ r.type === "cell" && (l = (i = r.parentKey) !== null && i !== void 0 ? i : null);
252
252
  let c = !1;
253
- for (; o != null; ) {
254
- let a = n.getItem(o);
253
+ for (; l != null; ) {
254
+ let a = u.getItem(l);
255
255
  if (!a) return null;
256
256
  if (a.textValue) {
257
- let u = a.textValue.slice(0, t.length);
258
- if (this.collator.compare(u, t) === 0) {
257
+ let o = a.textValue.slice(0, n.length);
258
+ if (this.collator.compare(o, n) === 0) {
259
259
  var d, f;
260
260
  return this.isRow(a) && this.focusMode === "cell" ? (f = (d = T(w(a, this.collection))) === null || d === void 0 ? void 0 : d.key) !== null && f !== void 0 ? f : null : a.key;
261
261
  }
262
262
  }
263
- o = this.findNextKey(o, (u) => u.type === "item"), o == null && !c && (o = this.getFirstKey(), c = !0);
263
+ l = this.findNextKey(l, (o) => o.type === "item"), l == null && !c && (l = this.getFirstKey(), c = !0);
264
264
  }
265
265
  return null;
266
266
  }
267
- constructor(t) {
268
- if (this.collection = t.collection, this.disabledKeys = t.disabledKeys, this.disabledBehavior = t.disabledBehavior || "all", this.direction = t.direction, this.collator = t.collator, !t.layout && !t.ref) throw new Error("Either a layout or a ref must be specified.");
269
- this.layoutDelegate = t.layoutDelegate || (t.layout ? new ul(t.layout) : new Xt(t.ref)), this.focusMode = t.focusMode || "row";
267
+ constructor(n) {
268
+ if (this.collection = n.collection, this.disabledKeys = n.disabledKeys, this.disabledBehavior = n.disabledBehavior || "all", this.direction = n.direction, this.collator = n.collator, !n.layout && !n.ref) throw new Error("Either a layout or a ref must be specified.");
269
+ this.layoutDelegate = n.layoutDelegate || (n.layout ? new at(n.layout) : new Jn(n.ref)), this.focusMode = n.focusMode || "row";
270
270
  }
271
271
  }
272
- class ul {
272
+ class at {
273
273
  getContentSize() {
274
274
  return this.layout.getContentSize();
275
275
  }
276
- getItemRect(t) {
277
- var l;
278
- return ((l = this.layout.getLayoutInfo(t)) === null || l === void 0 ? void 0 : l.rect) || null;
276
+ getItemRect(n) {
277
+ var t;
278
+ return ((t = this.layout.getLayoutInfo(n)) === null || t === void 0 ? void 0 : t.rect) || null;
279
279
  }
280
280
  getVisibleRect() {
281
281
  return this.layout.virtualizer.visibleRect;
282
282
  }
283
- constructor(t) {
284
- this.layout = t;
283
+ constructor(n) {
284
+ this.layout = n;
285
285
  }
286
286
  }
287
- const ye = /* @__PURE__ */ new WeakMap();
288
- function al(e, t, l) {
289
- let { isVirtualized: o, keyboardDelegate: n, focusMode: r, scrollRef: i, getRowText: c, onRowAction: d, onCellAction: f } = e, { selectionManager: a } = t;
287
+ const $e = /* @__PURE__ */ new WeakMap();
288
+ function st(e, n, t) {
289
+ let { isVirtualized: l, keyboardDelegate: u, focusMode: r, scrollRef: i, getRowText: c, onRowAction: d, onCellAction: f } = e, { selectionManager: a } = n;
290
290
  !e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
291
- let u = Re({
291
+ let o = Ne({
292
292
  usage: "search",
293
293
  sensitivity: "base"
294
- }), { direction: s } = ne(), p = t.selectionManager.disabledBehavior, h = M(() => n || new Ve({
295
- collection: t.collection,
296
- disabledKeys: t.disabledKeys,
294
+ }), { direction: s } = ue(), p = n.selectionManager.disabledBehavior, h = M(() => u || new Ve({
295
+ collection: n.collection,
296
+ disabledKeys: n.disabledKeys,
297
297
  disabledBehavior: p,
298
- ref: l,
298
+ ref: t,
299
299
  direction: s,
300
- collator: u,
300
+ collator: o,
301
301
  focusMode: r
302
302
  }), [
303
- n,
304
- t.collection,
305
- t.disabledKeys,
303
+ u,
304
+ n.collection,
305
+ n.disabledKeys,
306
306
  p,
307
- l,
307
+ t,
308
308
  s,
309
- u,
309
+ o,
310
310
  r
311
- ]), { collectionProps: g } = Gt({
312
- ref: l,
311
+ ]), { collectionProps: g } = Ln({
312
+ ref: t,
313
313
  selectionManager: a,
314
314
  keyboardDelegate: h,
315
- isVirtualized: o,
315
+ isVirtualized: l,
316
316
  scrollRef: i
317
- }), $ = Ae(e.id);
318
- ye.set(t, {
317
+ }), v = Ae(e.id);
318
+ $e.set(n, {
319
319
  keyboardDelegate: h,
320
320
  actions: {
321
321
  onRowAction: d,
322
322
  onCellAction: f
323
323
  }
324
324
  });
325
- let x = el({
325
+ let x = Xn({
326
326
  selectionManager: a,
327
327
  hasItemActions: !!(d || f)
328
328
  }), D = H(e, {
329
329
  labelable: !0
330
- }), v = ge((S) => {
330
+ }), b = ge((S) => {
331
331
  if (a.isFocused) {
332
332
  S.currentTarget.contains(S.target) || a.setFocused(!1);
333
333
  return;
@@ -335,160 +335,160 @@ function al(e, t, l) {
335
335
  S.currentTarget.contains(S.target) && a.setFocused(!0);
336
336
  }, [
337
337
  a
338
- ]), y = M(() => ({
338
+ ]), $ = M(() => ({
339
339
  onBlur: g.onBlur,
340
- onFocus: v
340
+ onFocus: b
341
341
  }), [
342
- v,
342
+ b,
343
343
  g.onBlur
344
- ]), m = ll(l, {
345
- isDisabled: t.collection.size !== 0
344
+ ]), y = et(t, {
345
+ isDisabled: n.collection.size !== 0
346
346
  }), E = A(
347
347
  D,
348
348
  {
349
349
  role: "grid",
350
- id: $,
350
+ id: v,
351
351
  "aria-multiselectable": a.selectionMode === "multiple" ? "true" : void 0
352
352
  },
353
- t.isKeyboardNavigationDisabled ? y : g,
353
+ n.isKeyboardNavigationDisabled ? $ : g,
354
354
  // If collection is empty, make sure the grid is tabbable unless there is a child tabbable element.
355
- t.collection.size === 0 && {
356
- tabIndex: m ? -1 : 0
355
+ n.collection.size === 0 && {
356
+ tabIndex: y ? -1 : 0
357
357
  } || void 0,
358
358
  x
359
359
  );
360
- return o && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), tl({
360
+ return l && (E["aria-rowcount"] = n.collection.size, E["aria-colcount"] = n.collection.columnCount), _n({
361
361
  getRowText: c
362
- }, t), {
362
+ }, n), {
363
363
  gridProps: E
364
364
  };
365
365
  }
366
- function sl() {
366
+ function dt() {
367
367
  return {
368
368
  rowGroupProps: {
369
369
  role: "rowgroup"
370
370
  }
371
371
  };
372
372
  }
373
- function dl(e, t, l) {
374
- var o, n;
375
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: c, onAction: d } = e, { actions: f } = ye.get(t), a = f.onRowAction ? () => {
373
+ function ct(e, n, t) {
374
+ var l, u;
375
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: c, onAction: d } = e, { actions: f } = $e.get(n), a = f.onRowAction ? () => {
376
376
  var g;
377
377
  return (g = f.onRowAction) === null || g === void 0 ? void 0 : g.call(f, r.key);
378
- } : d, { itemProps: u, ...s } = Ke({
379
- selectionManager: t.selectionManager,
378
+ } : d, { itemProps: o, ...s } = Ke({
379
+ selectionManager: n.selectionManager,
380
380
  key: r.key,
381
- ref: l,
381
+ ref: t,
382
382
  isVirtualized: i,
383
383
  shouldSelectOnPressUp: c,
384
- onAction: a || !(r == null || (o = r.props) === null || o === void 0) && o.onAction ? Mt(r == null || (n = r.props) === null || n === void 0 ? void 0 : n.onAction, a) : void 0,
385
- isDisabled: t.collection.size === 0
386
- }), p = t.selectionManager.isSelected(r.key), h = {
384
+ onAction: a || !(r == null || (l = r.props) === null || l === void 0) && l.onAction ? Hn(r == null || (u = r.props) === null || u === void 0 ? void 0 : u.onAction, a) : void 0,
385
+ isDisabled: n.collection.size === 0
386
+ }), p = n.selectionManager.isSelected(r.key), h = {
387
387
  role: "row",
388
- "aria-selected": t.selectionManager.selectionMode !== "none" ? p : void 0,
388
+ "aria-selected": n.selectionManager.selectionMode !== "none" ? p : void 0,
389
389
  "aria-disabled": s.isDisabled || void 0,
390
- ...u
390
+ ...o
391
391
  };
392
392
  return i && (h["aria-rowindex"] = r.index + 1), {
393
393
  rowProps: h,
394
394
  ...s
395
395
  };
396
396
  }
397
- function Te(e, t, l) {
398
- let { node: o, isVirtualized: n, focusMode: r = "child", shouldSelectOnPressUp: i, onAction: c } = e, { direction: d } = ne(), { keyboardDelegate: f, actions: { onCellAction: a } } = ye.get(t), u = P(null), s = () => {
399
- if (l.current) {
400
- let v = ke(l.current);
397
+ function Te(e, n, t) {
398
+ let { node: l, isVirtualized: u, focusMode: r = "child", shouldSelectOnPressUp: i, onAction: c } = e, { direction: d } = ue(), { keyboardDelegate: f, actions: { onCellAction: a } } = $e.get(n), o = P(null), s = () => {
399
+ if (t.current) {
400
+ let b = ke(t.current);
401
401
  if (r === "child") {
402
- if (l.current.contains(document.activeElement) && l.current !== document.activeElement) return;
403
- let y = t.selectionManager.childFocusStrategy === "last" ? se(v) : v.firstChild();
404
- if (y) {
405
- V(y);
402
+ if (t.current.contains(document.activeElement) && t.current !== document.activeElement) return;
403
+ let $ = n.selectionManager.childFocusStrategy === "last" ? se(b) : b.firstChild();
404
+ if ($) {
405
+ V($);
406
406
  return;
407
407
  }
408
408
  }
409
- (u.current != null && o.key !== u.current || !l.current.contains(document.activeElement)) && V(l.current);
409
+ (o.current != null && l.key !== o.current || !t.current.contains(document.activeElement)) && V(t.current);
410
410
  }
411
411
  }, { itemProps: p, isPressed: h } = Ke({
412
- selectionManager: t.selectionManager,
413
- key: o.key,
414
- ref: l,
415
- isVirtualized: n,
412
+ selectionManager: n.selectionManager,
413
+ key: l.key,
414
+ ref: t,
415
+ isVirtualized: u,
416
416
  focus: s,
417
417
  shouldSelectOnPressUp: i,
418
- onAction: a ? () => a(o.key) : c,
419
- isDisabled: t.collection.size === 0
418
+ onAction: a ? () => a(l.key) : c,
419
+ isDisabled: n.collection.size === 0
420
420
  }), x = A(p, {
421
421
  role: "gridcell",
422
- onKeyDownCapture: (v) => {
423
- if (!v.currentTarget.contains(v.target) || t.isKeyboardNavigationDisabled || !l.current || !document.activeElement) return;
424
- let y = ke(l.current);
425
- switch (y.currentNode = document.activeElement, v.key) {
422
+ onKeyDownCapture: (b) => {
423
+ if (!b.currentTarget.contains(b.target) || n.isKeyboardNavigationDisabled || !t.current || !document.activeElement) return;
424
+ let $ = ke(t.current);
425
+ switch ($.currentNode = document.activeElement, b.key) {
426
426
  case "ArrowLeft": {
427
- let k = d === "rtl" ? y.nextNode() : y.previousNode();
428
- if (r === "child" && k === l.current && (k = null), v.preventDefault(), v.stopPropagation(), k)
427
+ let k = d === "rtl" ? $.nextNode() : $.previousNode();
428
+ if (r === "child" && k === t.current && (k = null), b.preventDefault(), b.stopPropagation(), k)
429
429
  V(k), U(k, {
430
- containingElement: G(l.current)
430
+ containingElement: G(t.current)
431
431
  });
432
432
  else {
433
- var m;
434
- if (((m = f.getKeyLeftOf) === null || m === void 0 ? void 0 : m.call(f, o.key)) !== o.key) {
433
+ var y;
434
+ if (((y = f.getKeyLeftOf) === null || y === void 0 ? void 0 : y.call(f, l.key)) !== l.key) {
435
435
  var E;
436
- (E = l.current.parentElement) === null || E === void 0 || E.dispatchEvent(new KeyboardEvent(v.nativeEvent.type, v.nativeEvent));
436
+ (E = t.current.parentElement) === null || E === void 0 || E.dispatchEvent(new KeyboardEvent(b.nativeEvent.type, b.nativeEvent));
437
437
  break;
438
438
  }
439
- r === "cell" && d === "rtl" ? (V(l.current), U(l.current, {
440
- containingElement: G(l.current)
441
- })) : (y.currentNode = l.current, k = d === "rtl" ? y.firstChild() : se(y), k && (V(k), U(k, {
442
- containingElement: G(l.current)
439
+ r === "cell" && d === "rtl" ? (V(t.current), U(t.current, {
440
+ containingElement: G(t.current)
441
+ })) : ($.currentNode = t.current, k = d === "rtl" ? $.firstChild() : se($), k && (V(k), U(k, {
442
+ containingElement: G(t.current)
443
443
  })));
444
444
  }
445
445
  break;
446
446
  }
447
447
  case "ArrowRight": {
448
- let k = d === "rtl" ? y.previousNode() : y.nextNode();
449
- if (r === "child" && k === l.current && (k = null), v.preventDefault(), v.stopPropagation(), k)
448
+ let k = d === "rtl" ? $.previousNode() : $.nextNode();
449
+ if (r === "child" && k === t.current && (k = null), b.preventDefault(), b.stopPropagation(), k)
450
450
  V(k), U(k, {
451
- containingElement: G(l.current)
451
+ containingElement: G(t.current)
452
452
  });
453
453
  else {
454
454
  var S;
455
- if (((S = f.getKeyRightOf) === null || S === void 0 ? void 0 : S.call(f, o.key)) !== o.key) {
455
+ if (((S = f.getKeyRightOf) === null || S === void 0 ? void 0 : S.call(f, l.key)) !== l.key) {
456
456
  var N;
457
- (N = l.current.parentElement) === null || N === void 0 || N.dispatchEvent(new KeyboardEvent(v.nativeEvent.type, v.nativeEvent));
457
+ (N = t.current.parentElement) === null || N === void 0 || N.dispatchEvent(new KeyboardEvent(b.nativeEvent.type, b.nativeEvent));
458
458
  break;
459
459
  }
460
- r === "cell" && d === "ltr" ? (V(l.current), U(l.current, {
461
- containingElement: G(l.current)
462
- })) : (y.currentNode = l.current, k = d === "rtl" ? se(y) : y.firstChild(), k && (V(k), U(k, {
463
- containingElement: G(l.current)
460
+ r === "cell" && d === "ltr" ? (V(t.current), U(t.current, {
461
+ containingElement: G(t.current)
462
+ })) : ($.currentNode = t.current, k = d === "rtl" ? se($) : $.firstChild(), k && (V(k), U(k, {
463
+ containingElement: G(t.current)
464
464
  })));
465
465
  }
466
466
  break;
467
467
  }
468
468
  case "ArrowUp":
469
469
  case "ArrowDown":
470
- if (!v.altKey && l.current.contains(v.target)) {
470
+ if (!b.altKey && t.current.contains(b.target)) {
471
471
  var R;
472
- v.stopPropagation(), v.preventDefault(), (R = l.current.parentElement) === null || R === void 0 || R.dispatchEvent(new KeyboardEvent(v.nativeEvent.type, v.nativeEvent));
472
+ b.stopPropagation(), b.preventDefault(), (R = t.current.parentElement) === null || R === void 0 || R.dispatchEvent(new KeyboardEvent(b.nativeEvent.type, b.nativeEvent));
473
473
  }
474
474
  break;
475
475
  }
476
476
  },
477
- onFocus: (v) => {
478
- if (u.current = o.key, v.target !== l.current) {
479
- Ht() || t.selectionManager.setFocusedKey(o.key);
477
+ onFocus: (b) => {
478
+ if (o.current = l.key, b.target !== t.current) {
479
+ Vn() || n.selectionManager.setFocusedKey(l.key);
480
480
  return;
481
481
  }
482
482
  requestAnimationFrame(() => {
483
- r === "child" && document.activeElement === l.current && s();
483
+ r === "child" && document.activeElement === t.current && s();
484
484
  });
485
485
  }
486
486
  });
487
487
  var D;
488
- return n && (x["aria-colindex"] = ((D = o.colIndex) !== null && D !== void 0 ? D : o.index) + 1), i && x.tabIndex != null && x.onPointerDown == null && (x.onPointerDown = (v) => {
489
- let y = v.currentTarget, m = y.getAttribute("tabindex");
490
- y.removeAttribute("tabindex"), requestAnimationFrame(() => {
491
- m != null && y.setAttribute("tabindex", m);
488
+ return u && (x["aria-colindex"] = ((D = l.colIndex) !== null && D !== void 0 ? D : l.index) + 1), i && x.tabIndex != null && x.onPointerDown == null && (x.onPointerDown = (b) => {
489
+ let $ = b.currentTarget, y = $.getAttribute("tabindex");
490
+ $.removeAttribute("tabindex"), requestAnimationFrame(() => {
491
+ y != null && $.setAttribute("tabindex", y);
492
492
  });
493
493
  }), {
494
494
  gridCellProps: x,
@@ -496,33 +496,33 @@ function Te(e, t, l) {
496
496
  };
497
497
  }
498
498
  function se(e) {
499
- let t = null, l = null;
499
+ let n = null, t = null;
500
500
  do
501
- l = e.lastChild(), l && (t = l);
502
- while (l);
503
- return t;
501
+ t = e.lastChild(), t && (n = t);
502
+ while (t);
503
+ return n;
504
504
  }
505
- const $e = /* @__PURE__ */ new WeakMap();
505
+ const ve = /* @__PURE__ */ new WeakMap();
506
506
  function de(e) {
507
507
  return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
508
508
  }
509
- function cl(e, t) {
510
- let l = $e.get(e);
511
- if (!l) throw new Error("Unknown grid");
512
- return `${l}-${de(t)}`;
509
+ function ft(e, n) {
510
+ let t = ve.get(e);
511
+ if (!t) throw new Error("Unknown grid");
512
+ return `${t}-${de(n)}`;
513
513
  }
514
- function je(e, t, l) {
515
- let o = $e.get(e);
516
- if (!o) throw new Error("Unknown grid");
517
- return `${o}-${de(t)}-${de(l)}`;
514
+ function je(e, n, t) {
515
+ let l = ve.get(e);
516
+ if (!l) throw new Error("Unknown grid");
517
+ return `${l}-${de(n)}-${de(t)}`;
518
518
  }
519
- function Ie(e, t) {
519
+ function Ie(e, n) {
520
520
  return [
521
521
  ...e.collection.rowHeaderColumnKeys
522
- ].map((l) => je(e, t, l)).join(" ");
522
+ ].map((t) => je(e, n, t)).join(" ");
523
523
  }
524
- var Oe = {};
525
- Oe = {
524
+ var We = {};
525
+ We = {
526
526
  ascending: "تصاعدي",
527
527
  ascendingSort: (e) => `ترتيب حسب العمود ${e.columnName} بترتيب تصاعدي`,
528
528
  columnSize: (e) => `${e.value} بالبكسل`,
@@ -533,8 +533,8 @@ Oe = {
533
533
  selectAll: "تحديد الكل",
534
534
  sortable: "عمود قابل للترتيب"
535
535
  };
536
- var We = {};
537
- We = {
536
+ var Oe = {};
537
+ Oe = {
538
538
  ascending: "възходящ",
539
539
  ascendingSort: (e) => `сортирано по колона ${e.columnName} във възходящ ред`,
540
540
  columnSize: (e) => `${e.value} пиксела`,
@@ -665,8 +665,8 @@ _e = {
665
665
  selectAll: "בחר הכול",
666
666
  sortable: "עמודה שניתן למיין"
667
667
  };
668
- var et = {};
669
- et = {
668
+ var en = {};
669
+ en = {
670
670
  ascending: "rastući",
671
671
  ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastućem redoslijedom`,
672
672
  columnSize: (e) => `${e.value} piksela`,
@@ -677,8 +677,8 @@ et = {
677
677
  selectAll: "Odaberite sve",
678
678
  sortable: "stupac koji se može razvrstati"
679
679
  };
680
- var tt = {};
681
- tt = {
680
+ var nn = {};
681
+ nn = {
682
682
  ascending: "növekvő",
683
683
  ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, növekvő sorrendben`,
684
684
  columnSize: (e) => `${e.value} képpont`,
@@ -689,8 +689,8 @@ tt = {
689
689
  selectAll: "Összes kijelölése",
690
690
  sortable: "rendezendő oszlop"
691
691
  };
692
- var lt = {};
693
- lt = {
692
+ var tn = {};
693
+ tn = {
694
694
  ascending: "crescente",
695
695
  ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
696
696
  columnSize: (e) => `${e.value} pixel`,
@@ -701,8 +701,8 @@ lt = {
701
701
  selectAll: "Seleziona tutto",
702
702
  sortable: "colonna ordinabile"
703
703
  };
704
- var ot = {};
705
- ot = {
704
+ var ln = {};
705
+ ln = {
706
706
  ascending: "昇順",
707
707
  ascendingSort: (e) => `列 ${e.columnName} を昇順で並べ替え`,
708
708
  columnSize: (e) => `${e.value} ピクセル`,
@@ -713,8 +713,8 @@ ot = {
713
713
  selectAll: "すべて選択",
714
714
  sortable: "並べ替え可能な列"
715
715
  };
716
- var nt = {};
717
- nt = {
716
+ var un = {};
717
+ un = {
718
718
  ascending: "오름차순",
719
719
  ascendingSort: (e) => `${e.columnName} 열을 기준으로 오름차순으로 정렬됨`,
720
720
  columnSize: (e) => `${e.value} 픽셀`,
@@ -725,8 +725,8 @@ nt = {
725
725
  selectAll: "모두 선택",
726
726
  sortable: "정렬 가능한 열"
727
727
  };
728
- var rt = {};
729
- rt = {
728
+ var rn = {};
729
+ rn = {
730
730
  ascending: "didėjančia tvarka",
731
731
  ascendingSort: (e) => `surikiuota pagal stulpelį ${e.columnName} didėjančia tvarka`,
732
732
  columnSize: (e) => `${e.value} piks.`,
@@ -737,8 +737,8 @@ rt = {
737
737
  selectAll: "Pasirinkti viską",
738
738
  sortable: "rikiuojamas stulpelis"
739
739
  };
740
- var it = {};
741
- it = {
740
+ var on = {};
741
+ on = {
742
742
  ascending: "augošā secībā",
743
743
  ascendingSort: (e) => `kārtots pēc kolonnas ${e.columnName} augošā secībā`,
744
744
  columnSize: (e) => `${e.value} pikseļi`,
@@ -749,8 +749,8 @@ it = {
749
749
  selectAll: "Atlasīt visu",
750
750
  sortable: "kārtojamā kolonna"
751
751
  };
752
- var ut = {};
753
- ut = {
752
+ var an = {};
753
+ an = {
754
754
  ascending: "stigende",
755
755
  ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkefølge`,
756
756
  columnSize: (e) => `${e.value} piksler`,
@@ -761,8 +761,8 @@ ut = {
761
761
  selectAll: "Velg alle",
762
762
  sortable: "kolonne som kan sorteres"
763
763
  };
764
- var at = {};
765
- at = {
764
+ var sn = {};
765
+ sn = {
766
766
  ascending: "oplopend",
767
767
  ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
768
768
  columnSize: (e) => `${e.value} pixels`,
@@ -773,8 +773,8 @@ at = {
773
773
  selectAll: "Alles selecteren",
774
774
  sortable: "sorteerbare kolom"
775
775
  };
776
- var st = {};
777
- st = {
776
+ var dn = {};
777
+ dn = {
778
778
  ascending: "rosnąco",
779
779
  ascendingSort: (e) => `posortowano według kolumny ${e.columnName} w porządku rosnącym`,
780
780
  columnSize: (e) => `Liczba pikseli: ${e.value}`,
@@ -785,8 +785,8 @@ st = {
785
785
  selectAll: "Zaznacz wszystko",
786
786
  sortable: "kolumna z możliwością sortowania"
787
787
  };
788
- var dt = {};
789
- dt = {
788
+ var cn = {};
789
+ cn = {
790
790
  ascending: "crescente",
791
791
  ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
792
792
  columnSize: (e) => `${e.value} pixels`,
@@ -797,8 +797,8 @@ dt = {
797
797
  selectAll: "Selecionar tudo",
798
798
  sortable: "coluna classificável"
799
799
  };
800
- var ct = {};
801
- ct = {
800
+ var fn = {};
801
+ fn = {
802
802
  ascending: "ascendente",
803
803
  ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
804
804
  columnSize: (e) => `${e.value} pixels`,
@@ -809,8 +809,8 @@ ct = {
809
809
  selectAll: "Selecionar tudo",
810
810
  sortable: "Coluna ordenável"
811
811
  };
812
- var ft = {};
813
- ft = {
812
+ var pn = {};
813
+ pn = {
814
814
  ascending: "crescătoare",
815
815
  ascendingSort: (e) => `sortate după coloana ${e.columnName} în ordine crescătoare`,
816
816
  columnSize: (e) => `${e.value} pixeli`,
@@ -821,8 +821,8 @@ ft = {
821
821
  selectAll: "Selectare totală",
822
822
  sortable: "coloană sortabilă"
823
823
  };
824
- var pt = {};
825
- pt = {
824
+ var hn = {};
825
+ hn = {
826
826
  ascending: "возрастание",
827
827
  ascendingSort: (e) => `сортировать столбец ${e.columnName} в порядке возрастания`,
828
828
  columnSize: (e) => `${e.value} пикс.`,
@@ -833,8 +833,8 @@ pt = {
833
833
  selectAll: "Выбрать все",
834
834
  sortable: "сортируемый столбец"
835
835
  };
836
- var ht = {};
837
- ht = {
836
+ var gn = {};
837
+ gn = {
838
838
  ascending: "vzostupne",
839
839
  ascendingSort: (e) => `zoradené zostupne podľa stĺpca ${e.columnName}`,
840
840
  columnSize: (e) => `Počet pixelov: ${e.value}`,
@@ -845,8 +845,8 @@ ht = {
845
845
  selectAll: "Vybrať všetko",
846
846
  sortable: "zoraditeľný stĺpec"
847
847
  };
848
- var gt = {};
849
- gt = {
848
+ var bn = {};
849
+ bn = {
850
850
  ascending: "naraščajoče",
851
851
  ascendingSort: (e) => `razvrščeno po stolpcu ${e.columnName} v naraščajočem vrstnem redu`,
852
852
  columnSize: (e) => `${e.value} slikovnih pik`,
@@ -857,8 +857,8 @@ gt = {
857
857
  selectAll: "Izberite vse",
858
858
  sortable: "razvrstljivi stolpec"
859
859
  };
860
- var vt = {};
861
- vt = {
860
+ var mn = {};
861
+ mn = {
862
862
  ascending: "rastući",
863
863
  ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastućim redosledom`,
864
864
  columnSize: (e) => `${e.value} piksela`,
@@ -869,8 +869,8 @@ vt = {
869
869
  selectAll: "Izaberite sve",
870
870
  sortable: "kolona koja se može sortirati"
871
871
  };
872
- var bt = {};
873
- bt = {
872
+ var yn = {};
873
+ yn = {
874
874
  ascending: "stigande",
875
875
  ascendingSort: (e) => `sorterat på kolumn ${e.columnName} i stigande ordning`,
876
876
  columnSize: (e) => `${e.value} pixlar`,
@@ -881,8 +881,8 @@ bt = {
881
881
  selectAll: "Markera allt",
882
882
  sortable: "sorterbar kolumn"
883
883
  };
884
- var mt = {};
885
- mt = {
884
+ var $n = {};
885
+ $n = {
886
886
  ascending: "artan sırada",
887
887
  ascendingSort: (e) => `${e.columnName} sütuna göre artan düzende sırala`,
888
888
  columnSize: (e) => `${e.value} piksel`,
@@ -893,8 +893,8 @@ mt = {
893
893
  selectAll: "Tümünü Seç",
894
894
  sortable: "Sıralanabilir sütun"
895
895
  };
896
- var yt = {};
897
- yt = {
896
+ var vn = {};
897
+ vn = {
898
898
  ascending: "висхідний",
899
899
  ascendingSort: (e) => `відсортовано за стовпцем ${e.columnName} у висхідному порядку`,
900
900
  columnSize: (e) => `${e.value} пікс.`,
@@ -905,8 +905,8 @@ yt = {
905
905
  selectAll: "Вибрати все",
906
906
  sortable: "сортувальний стовпець"
907
907
  };
908
- var $t = {};
909
- $t = {
908
+ var xn = {};
909
+ xn = {
910
910
  ascending: "升序",
911
911
  ascendingSort: (e) => `按列 ${e.columnName} 升序排序`,
912
912
  columnSize: (e) => `${e.value} 像素`,
@@ -917,8 +917,8 @@ $t = {
917
917
  selectAll: "全选",
918
918
  sortable: "可排序的列"
919
919
  };
920
- var xt = {};
921
- xt = {
920
+ var Dn = {};
921
+ Dn = {
922
922
  ascending: "遞增",
923
923
  ascendingSort: (e) => `已依據「${e.columnName}」欄遞增排序`,
924
924
  columnSize: (e) => `${e.value} 像素`,
@@ -931,8 +931,8 @@ xt = {
931
931
  };
932
932
  var re = {};
933
933
  re = {
934
- "ar-AE": Oe,
935
- "bg-BG": We,
934
+ "ar-AE": We,
935
+ "bg-BG": Oe,
936
936
  "cs-CZ": Ue,
937
937
  "da-DK": Ge,
938
938
  "de-DE": Le,
@@ -943,166 +943,166 @@ re = {
943
943
  "fi-FI": Qe,
944
944
  "fr-FR": Xe,
945
945
  "he-IL": _e,
946
- "hr-HR": et,
947
- "hu-HU": tt,
948
- "it-IT": lt,
949
- "ja-JP": ot,
950
- "ko-KR": nt,
951
- "lt-LT": rt,
952
- "lv-LV": it,
953
- "nb-NO": ut,
954
- "nl-NL": at,
955
- "pl-PL": st,
956
- "pt-BR": dt,
957
- "pt-PT": ct,
958
- "ro-RO": ft,
959
- "ru-RU": pt,
960
- "sk-SK": ht,
961
- "sl-SI": gt,
962
- "sr-SP": vt,
963
- "sv-SE": bt,
964
- "tr-TR": mt,
965
- "uk-UA": yt,
966
- "zh-CN": $t,
967
- "zh-TW": xt
946
+ "hr-HR": en,
947
+ "hu-HU": nn,
948
+ "it-IT": tn,
949
+ "ja-JP": ln,
950
+ "ko-KR": un,
951
+ "lt-LT": rn,
952
+ "lv-LV": on,
953
+ "nb-NO": an,
954
+ "nl-NL": sn,
955
+ "pl-PL": dn,
956
+ "pt-BR": cn,
957
+ "pt-PT": fn,
958
+ "ro-RO": pn,
959
+ "ru-RU": hn,
960
+ "sk-SK": gn,
961
+ "sl-SI": bn,
962
+ "sr-SP": mn,
963
+ "sv-SE": yn,
964
+ "tr-TR": $n,
965
+ "uk-UA": vn,
966
+ "zh-CN": xn,
967
+ "zh-TW": Dn
968
968
  };
969
- class fl extends Ve {
970
- isCell(t) {
971
- return t.type === "cell" || t.type === "rowheader" || t.type === "column";
972
- }
973
- getKeyBelow(t) {
974
- let l = this.collection.getItem(t);
975
- if (!l) return null;
976
- if (l.type === "column") {
977
- var o;
978
- let r = T(w(l, this.collection));
969
+ class pt extends Ve {
970
+ isCell(n) {
971
+ return n.type === "cell" || n.type === "rowheader" || n.type === "column";
972
+ }
973
+ getKeyBelow(n) {
974
+ let t = this.collection.getItem(n);
975
+ if (!t) return null;
976
+ if (t.type === "column") {
977
+ var l;
978
+ let r = T(w(t, this.collection));
979
979
  if (r) return r.key;
980
980
  let i = this.getFirstKey();
981
981
  if (i == null) return null;
982
982
  let c = this.collection.getItem(i);
983
983
  if (!c) return null;
984
- var n;
985
- return (n = (o = O(w(c, this.collection), l.index)) === null || o === void 0 ? void 0 : o.key) !== null && n !== void 0 ? n : null;
984
+ var u;
985
+ return (u = (l = W(w(c, this.collection), t.index)) === null || l === void 0 ? void 0 : l.key) !== null && u !== void 0 ? u : null;
986
986
  }
987
- return super.getKeyBelow(t);
987
+ return super.getKeyBelow(n);
988
988
  }
989
- getKeyAbove(t) {
990
- let l = this.collection.getItem(t);
991
- if (!l) return null;
992
- if (l.type === "column") {
993
- let r = l.parentKey != null ? this.collection.getItem(l.parentKey) : null;
989
+ getKeyAbove(n) {
990
+ let t = this.collection.getItem(n);
991
+ if (!t) return null;
992
+ if (t.type === "column") {
993
+ let r = t.parentKey != null ? this.collection.getItem(t.parentKey) : null;
994
994
  return r && r.type === "column" ? r.key : null;
995
995
  }
996
- let o = super.getKeyAbove(t), n = o != null ? this.collection.getItem(o) : null;
997
- return n && n.type !== "headerrow" ? o : this.isCell(l) ? this.collection.columns[l.index].key : this.collection.columns[0].key;
998
- }
999
- findNextColumnKey(t) {
1000
- let l = this.findNextKey(t.key, (n) => n.type === "column");
1001
- if (l != null) return l;
1002
- let o = this.collection.headerRows[t.level];
1003
- for (let n of w(o, this.collection))
1004
- if (n.type === "column") return n.key;
996
+ let l = super.getKeyAbove(n), u = l != null ? this.collection.getItem(l) : null;
997
+ return u && u.type !== "headerrow" ? l : this.isCell(t) ? this.collection.columns[t.index].key : this.collection.columns[0].key;
998
+ }
999
+ findNextColumnKey(n) {
1000
+ let t = this.findNextKey(n.key, (u) => u.type === "column");
1001
+ if (t != null) return t;
1002
+ let l = this.collection.headerRows[n.level];
1003
+ for (let u of w(l, this.collection))
1004
+ if (u.type === "column") return u.key;
1005
1005
  return null;
1006
1006
  }
1007
- findPreviousColumnKey(t) {
1008
- let l = this.findPreviousKey(t.key, (r) => r.type === "column");
1009
- if (l != null) return l;
1010
- let o = this.collection.headerRows[t.level], n = [
1011
- ...w(o, this.collection)
1007
+ findPreviousColumnKey(n) {
1008
+ let t = this.findPreviousKey(n.key, (r) => r.type === "column");
1009
+ if (t != null) return t;
1010
+ let l = this.collection.headerRows[n.level], u = [
1011
+ ...w(l, this.collection)
1012
1012
  ];
1013
- for (let r = n.length - 1; r >= 0; r--) {
1014
- let i = n[r];
1013
+ for (let r = u.length - 1; r >= 0; r--) {
1014
+ let i = u[r];
1015
1015
  if (i.type === "column") return i.key;
1016
1016
  }
1017
1017
  return null;
1018
1018
  }
1019
- getKeyRightOf(t) {
1020
- let l = this.collection.getItem(t);
1021
- return l ? l.type === "column" ? this.direction === "rtl" ? this.findPreviousColumnKey(l) : this.findNextColumnKey(l) : super.getKeyRightOf(t) : null;
1019
+ getKeyRightOf(n) {
1020
+ let t = this.collection.getItem(n);
1021
+ return t ? t.type === "column" ? this.direction === "rtl" ? this.findPreviousColumnKey(t) : this.findNextColumnKey(t) : super.getKeyRightOf(n) : null;
1022
1022
  }
1023
- getKeyLeftOf(t) {
1024
- let l = this.collection.getItem(t);
1025
- return l ? l.type === "column" ? this.direction === "rtl" ? this.findNextColumnKey(l) : this.findPreviousColumnKey(l) : super.getKeyLeftOf(t) : null;
1023
+ getKeyLeftOf(n) {
1024
+ let t = this.collection.getItem(n);
1025
+ return t ? t.type === "column" ? this.direction === "rtl" ? this.findNextColumnKey(t) : this.findPreviousColumnKey(t) : super.getKeyLeftOf(n) : null;
1026
1026
  }
1027
- getKeyForSearch(t, l) {
1027
+ getKeyForSearch(n, t) {
1028
1028
  if (!this.collator) return null;
1029
- let o = this.collection, n = l ?? this.getFirstKey();
1030
- if (n == null) return null;
1031
- let r = o.getItem(n);
1029
+ let l = this.collection, u = t ?? this.getFirstKey();
1030
+ if (u == null) return null;
1031
+ let r = l.getItem(u);
1032
1032
  var i;
1033
- (r == null ? void 0 : r.type) === "cell" && (n = (i = r.parentKey) !== null && i !== void 0 ? i : null);
1033
+ (r == null ? void 0 : r.type) === "cell" && (u = (i = r.parentKey) !== null && i !== void 0 ? i : null);
1034
1034
  let c = !1;
1035
- for (; n != null; ) {
1036
- let d = o.getItem(n);
1035
+ for (; u != null; ) {
1036
+ let d = l.getItem(u);
1037
1037
  if (!d) return null;
1038
1038
  for (let f of w(d, this.collection)) {
1039
- let a = o.columns[f.index];
1040
- if (o.rowHeaderColumnKeys.has(a.key) && f.textValue) {
1041
- let u = f.textValue.slice(0, t.length);
1042
- if (this.collator.compare(u, t) === 0) {
1043
- let s = l != null ? o.getItem(l) : r;
1039
+ let a = l.columns[f.index];
1040
+ if (l.rowHeaderColumnKeys.has(a.key) && f.textValue) {
1041
+ let o = f.textValue.slice(0, n.length);
1042
+ if (this.collator.compare(o, n) === 0) {
1043
+ let s = t != null ? l.getItem(t) : r;
1044
1044
  return (s == null ? void 0 : s.type) === "cell" ? f.key : d.key;
1045
1045
  }
1046
1046
  }
1047
1047
  }
1048
- n = this.getKeyBelow(n), n == null && !c && (n = this.getFirstKey(), c = !0);
1048
+ u = this.getKeyBelow(u), u == null && !c && (u = this.getFirstKey(), c = !0);
1049
1049
  }
1050
1050
  return null;
1051
1051
  }
1052
1052
  }
1053
- let pl = !1;
1053
+ let ht = !1;
1054
1054
  function ee() {
1055
- return pl;
1055
+ return ht;
1056
1056
  }
1057
- function hl(e) {
1057
+ function gt(e) {
1058
1058
  return e && e.__esModule ? e.default : e;
1059
1059
  }
1060
- function gl(e, t, l) {
1061
- let { keyboardDelegate: o, isVirtualized: n, layoutDelegate: r, layout: i } = e, c = Re({
1060
+ function bt(e, n, t) {
1061
+ let { keyboardDelegate: l, isVirtualized: u, layoutDelegate: r, layout: i } = e, c = Ne({
1062
1062
  usage: "search",
1063
1063
  sensitivity: "base"
1064
- }), { direction: d } = ne(), f = t.selectionManager.disabledBehavior, a = M(() => o || new fl({
1065
- collection: t.collection,
1066
- disabledKeys: t.disabledKeys,
1064
+ }), { direction: d } = ue(), f = n.selectionManager.disabledBehavior, a = M(() => l || new pt({
1065
+ collection: n.collection,
1066
+ disabledKeys: n.disabledKeys,
1067
1067
  disabledBehavior: f,
1068
- ref: l,
1068
+ ref: t,
1069
1069
  direction: d,
1070
1070
  collator: c,
1071
1071
  layoutDelegate: r,
1072
1072
  layout: i
1073
1073
  }), [
1074
- o,
1075
- t.collection,
1076
- t.disabledKeys,
1077
- f,
1078
1074
  l,
1075
+ n.collection,
1076
+ n.disabledKeys,
1077
+ f,
1078
+ t,
1079
1079
  d,
1080
1080
  c,
1081
1081
  r,
1082
1082
  i
1083
- ]), u = Ae(e.id);
1084
- $e.set(t, u);
1085
- let { gridProps: s } = al({
1083
+ ]), o = Ae(e.id);
1084
+ ve.set(n, o);
1085
+ let { gridProps: s } = st({
1086
1086
  ...e,
1087
- id: u,
1087
+ id: o,
1088
1088
  keyboardDelegate: a
1089
- }, t, l);
1090
- n && (s["aria-rowcount"] = t.collection.size + t.collection.headerRows.length), ee() && "expandedKeys" in t && (s.role = "treegrid");
1091
- let { column: p, direction: h } = t.sortDescriptor || {}, g = be(hl(re), "@react-aria/table"), $ = M(() => {
1092
- var D, v;
1093
- let y = (v = (D = t.collection.columns.find((m) => m.key === p)) === null || D === void 0 ? void 0 : D.textValue) !== null && v !== void 0 ? v : "";
1089
+ }, n, t);
1090
+ u && (s["aria-rowcount"] = n.collection.size + n.collection.headerRows.length), ee() && "expandedKeys" in n && (s.role = "treegrid");
1091
+ let { column: p, direction: h } = n.sortDescriptor || {}, g = me(gt(re), "@react-aria/table"), v = M(() => {
1092
+ var D, b;
1093
+ let $ = (b = (D = n.collection.columns.find((y) => y.key === p)) === null || D === void 0 ? void 0 : D.textValue) !== null && b !== void 0 ? b : "";
1094
1094
  return h && p ? g.format(`${h}Sort`, {
1095
- columnName: y
1095
+ columnName: $
1096
1096
  }) : void 0;
1097
1097
  }, [
1098
1098
  h,
1099
1099
  p,
1100
- t.collection.columns
1101
- ]), x = Ne($);
1102
- return ol(() => {
1103
- $ && At($, "assertive", 500);
1100
+ n.collection.columns
1101
+ ]), x = Re(v);
1102
+ return nt(() => {
1103
+ v && Kn(v, "assertive", 500);
1104
1104
  }, [
1105
- $
1105
+ v
1106
1106
  ]), {
1107
1107
  gridProps: A(s, x, {
1108
1108
  // merge sort description with long press information
@@ -1113,30 +1113,30 @@ function gl(e, t, l) {
1113
1113
  })
1114
1114
  };
1115
1115
  }
1116
- function vl(e) {
1116
+ function mt(e) {
1117
1117
  return e && e.__esModule ? e.default : e;
1118
1118
  }
1119
- function bl(e, t, l) {
1120
- var o, n;
1119
+ function yt(e, n, t) {
1120
+ var l, u;
1121
1121
  let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: c } = Te({
1122
1122
  ...e,
1123
1123
  focusMode: "child"
1124
- }, t, l), d = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: f } = Vt({
1124
+ }, n, t), d = r.props.isSelectionCell && n.selectionManager.selectionMode === "single", { pressProps: f } = Tn({
1125
1125
  isDisabled: !i || d,
1126
1126
  onPress() {
1127
- t.sort(r.key);
1127
+ n.sort(r.key);
1128
1128
  },
1129
- ref: l
1130
- }), { focusableProps: a } = Jt({}, l), u, s = ((o = t.sortDescriptor) === null || o === void 0 ? void 0 : o.column) === r.key, p = (n = t.sortDescriptor) === null || n === void 0 ? void 0 : n.direction;
1131
- r.props.allowsSorting && !De() && (u = s ? p : "none");
1132
- let h = be(vl(re), "@react-aria/table"), g;
1129
+ ref: t
1130
+ }), { focusableProps: a } = ut({}, t), o, s = ((l = n.sortDescriptor) === null || l === void 0 ? void 0 : l.column) === r.key, p = (u = n.sortDescriptor) === null || u === void 0 ? void 0 : u.direction;
1131
+ r.props.allowsSorting && !De() && (o = s ? p : "none");
1132
+ let h = me(mt(re), "@react-aria/table"), g;
1133
1133
  i && (g = `${h.format("sortable")}`, s && p && De() && (g = `${g}, ${h.format(p)}`));
1134
- let $ = Ne(g), x = t.collection.size === 0;
1135
- return oe(() => {
1136
- x && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
1134
+ let v = Re(g), x = n.collection.size === 0;
1135
+ return le(() => {
1136
+ x && n.selectionManager.focusedKey === r.key && n.selectionManager.setFocusedKey(null);
1137
1137
  }, [
1138
1138
  x,
1139
- t.selectionManager,
1139
+ n.selectionManager,
1140
1140
  r.key
1141
1141
  ]), {
1142
1142
  columnHeaderProps: {
@@ -1144,16 +1144,16 @@ function bl(e, t, l) {
1144
1144
  c,
1145
1145
  f,
1146
1146
  a,
1147
- $,
1147
+ v,
1148
1148
  // If the table is empty, make all column headers untabbable
1149
1149
  x ? {
1150
1150
  tabIndex: -1
1151
1151
  } : null
1152
1152
  ),
1153
1153
  role: "columnheader",
1154
- id: cl(t, r.key),
1154
+ id: ft(n, r.key),
1155
1155
  "aria-colspan": r.colspan && r.colspan > 1 ? r.colspan : void 0,
1156
- "aria-sort": u
1156
+ "aria-sort": o
1157
1157
  }
1158
1158
  };
1159
1159
  }
@@ -1167,138 +1167,138 @@ const we = {
1167
1167
  rtl: "ArrowRight"
1168
1168
  }
1169
1169
  };
1170
- function ml(e, t, l) {
1171
- let { node: o, isVirtualized: n } = e, { rowProps: r, ...i } = dl(e, t, l), { direction: c } = ne();
1172
- n && !(ee() && "expandedKeys" in t) ? r["aria-rowindex"] = o.index + 1 + t.collection.headerRows.length : delete r["aria-rowindex"];
1170
+ function $t(e, n, t) {
1171
+ let { node: l, isVirtualized: u } = e, { rowProps: r, ...i } = ct(e, n, t), { direction: c } = ue();
1172
+ u && !(ee() && "expandedKeys" in n) ? r["aria-rowindex"] = l.index + 1 + n.collection.headerRows.length : delete r["aria-rowindex"];
1173
1173
  let d = {};
1174
- if (ee() && "expandedKeys" in t) {
1175
- let m = t.keyMap.get(o.key);
1176
- if (m != null) {
1177
- var f, a, u, s, p, h;
1178
- let E = ((f = m.props) === null || f === void 0 ? void 0 : f.UNSTABLE_childItems) || ((u = m.props) === null || u === void 0 || (a = u.children) === null || a === void 0 ? void 0 : a.length) > t.userColumnCount;
1179
- var g, $, x, D;
1174
+ if (ee() && "expandedKeys" in n) {
1175
+ let y = n.keyMap.get(l.key);
1176
+ if (y != null) {
1177
+ var f, a, o, s, p, h;
1178
+ let E = ((f = y.props) === null || f === void 0 ? void 0 : f.UNSTABLE_childItems) || ((o = y.props) === null || o === void 0 || (a = o.children) === null || a === void 0 ? void 0 : a.length) > n.userColumnCount;
1179
+ var g, v, x, D;
1180
1180
  d = {
1181
1181
  onKeyDown: (S) => {
1182
- (S.key === we.expand[c] && t.selectionManager.focusedKey === m.key && E && t.expandedKeys !== "all" && !t.expandedKeys.has(m.key) || S.key === we.collapse[c] && t.selectionManager.focusedKey === m.key && E && (t.expandedKeys === "all" || t.expandedKeys.has(m.key))) && (t.toggleKey(m.key), S.stopPropagation());
1182
+ (S.key === we.expand[c] && n.selectionManager.focusedKey === y.key && E && n.expandedKeys !== "all" && !n.expandedKeys.has(y.key) || S.key === we.collapse[c] && n.selectionManager.focusedKey === y.key && E && (n.expandedKeys === "all" || n.expandedKeys.has(y.key))) && (n.toggleKey(y.key), S.stopPropagation());
1183
1183
  },
1184
- "aria-expanded": E ? t.expandedKeys === "all" || t.expandedKeys.has(o.key) : void 0,
1185
- "aria-level": m.level,
1186
- "aria-posinset": ((g = m.indexOfType) !== null && g !== void 0 ? g : 0) + 1,
1187
- "aria-setsize": m.level > 1 ? ((x = (s = j(($ = (p = t.keyMap.get(m.parentKey)) === null || p === void 0 ? void 0 : p.childNodes) !== null && $ !== void 0 ? $ : [])) === null || s === void 0 ? void 0 : s.indexOfType) !== null && x !== void 0 ? x : 0) + 1 : ((D = (h = j(t.collection.body.childNodes)) === null || h === void 0 ? void 0 : h.indexOfType) !== null && D !== void 0 ? D : 0) + 1
1184
+ "aria-expanded": E ? n.expandedKeys === "all" || n.expandedKeys.has(l.key) : void 0,
1185
+ "aria-level": y.level,
1186
+ "aria-posinset": ((g = y.indexOfType) !== null && g !== void 0 ? g : 0) + 1,
1187
+ "aria-setsize": y.level > 1 ? ((x = (s = j((v = (p = n.keyMap.get(y.parentKey)) === null || p === void 0 ? void 0 : p.childNodes) !== null && v !== void 0 ? v : [])) === null || s === void 0 ? void 0 : s.indexOfType) !== null && x !== void 0 ? x : 0) + 1 : ((D = (h = j(n.collection.body.childNodes)) === null || h === void 0 ? void 0 : h.indexOfType) !== null && D !== void 0 ? D : 0) + 1
1188
1188
  };
1189
1189
  }
1190
1190
  }
1191
- let v = Tt(o.props), y = i.hasAction ? v : {};
1191
+ let b = jn(l.props), $ = i.hasAction ? b : {};
1192
1192
  return {
1193
1193
  rowProps: {
1194
- ...A(r, d, y),
1195
- "aria-labelledby": Ie(t, o.key)
1194
+ ...A(r, d, $),
1195
+ "aria-labelledby": Ie(n, l.key)
1196
1196
  },
1197
1197
  ...i
1198
1198
  };
1199
1199
  }
1200
- function yl(e, t, l) {
1201
- let { node: o, isVirtualized: n } = e, r = {
1200
+ function vt(e, n, t) {
1201
+ let { node: l, isVirtualized: u } = e, r = {
1202
1202
  role: "row"
1203
1203
  };
1204
- return n && !(ee() && "expandedKeys" in t) && (r["aria-rowindex"] = o.index + 1), {
1204
+ return u && !(ee() && "expandedKeys" in n) && (r["aria-rowindex"] = l.index + 1), {
1205
1205
  rowProps: r
1206
1206
  };
1207
1207
  }
1208
- function $l(e, t, l) {
1209
- var o;
1210
- let { gridCellProps: n, isPressed: r } = Te(e, t, l), i = (o = e.node.column) === null || o === void 0 ? void 0 : o.key;
1211
- return i != null && t.collection.rowHeaderColumnKeys.has(i) && (n.role = "rowheader", n.id = je(t, e.node.parentKey, i)), {
1212
- gridCellProps: n,
1208
+ function xt(e, n, t) {
1209
+ var l;
1210
+ let { gridCellProps: u, isPressed: r } = Te(e, n, t), i = (l = e.node.column) === null || l === void 0 ? void 0 : l.key;
1211
+ return i != null && n.collection.rowHeaderColumnKeys.has(i) && (u.role = "rowheader", u.id = je(n, e.node.parentKey, i)), {
1212
+ gridCellProps: u,
1213
1213
  isPressed: r
1214
1214
  };
1215
1215
  }
1216
- function xl(e) {
1216
+ function Dt(e) {
1217
1217
  return e && e.__esModule ? e.default : e;
1218
1218
  }
1219
- function Dl(e, t) {
1220
- let { key: l } = e;
1221
- const { checkboxProps: o } = Zt(e, t);
1219
+ function Ct(e, n) {
1220
+ let { key: t } = e;
1221
+ const { checkboxProps: l } = lt(e, n);
1222
1222
  return {
1223
1223
  checkboxProps: {
1224
- ...o,
1225
- "aria-labelledby": `${o.id} ${Ie(t, l)}`
1224
+ ...l,
1225
+ "aria-labelledby": `${l.id} ${Ie(n, t)}`
1226
1226
  }
1227
1227
  };
1228
1228
  }
1229
- function Cl(e) {
1230
- let { isEmpty: t, isSelectAll: l, selectionMode: o } = e.selectionManager;
1229
+ function kt(e) {
1230
+ let { isEmpty: n, isSelectAll: t, selectionMode: l } = e.selectionManager;
1231
1231
  return {
1232
1232
  checkboxProps: {
1233
- "aria-label": be(xl(re), "@react-aria/table").format(o === "single" ? "select" : "selectAll"),
1234
- isSelected: l,
1235
- isDisabled: o !== "multiple" || e.collection.size === 0,
1236
- isIndeterminate: !t && !l,
1233
+ "aria-label": me(Dt(re), "@react-aria/table").format(l === "single" ? "select" : "selectAll"),
1234
+ isSelected: t,
1235
+ isDisabled: l !== "multiple" || e.collection.size === 0,
1236
+ isIndeterminate: !n && !t,
1237
1237
  onChange: () => e.selectionManager.toggleSelectAll()
1238
1238
  }
1239
1239
  };
1240
1240
  }
1241
- function Dt() {
1242
- return sl();
1241
+ function Cn() {
1242
+ return dt();
1243
1243
  }
1244
- function kl(e) {
1245
- let { collection: t, focusMode: l } = e, o = e.UNSAFE_selectionState || Pe(e), n = M(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [
1244
+ function wt(e) {
1245
+ let { collection: n, focusMode: t } = e, l = e.UNSAFE_selectionState || Pe(e), u = M(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [
1246
1246
  e.disabledKeys
1247
- ]), r = o.setFocusedKey;
1248
- o.setFocusedKey = (d, f) => {
1249
- if (l === "cell" && d != null) {
1250
- let h = t.getItem(d);
1247
+ ]), r = l.setFocusedKey;
1248
+ l.setFocusedKey = (d, f) => {
1249
+ if (t === "cell" && d != null) {
1250
+ let h = n.getItem(d);
1251
1251
  if ((h == null ? void 0 : h.type) === "item") {
1252
- var a, u;
1253
- let g = w(h, t);
1252
+ var a, o;
1253
+ let g = w(h, n);
1254
1254
  var s, p;
1255
- f === "last" ? d = (s = (a = j(g)) === null || a === void 0 ? void 0 : a.key) !== null && s !== void 0 ? s : null : d = (p = (u = T(g)) === null || u === void 0 ? void 0 : u.key) !== null && p !== void 0 ? p : null;
1255
+ f === "last" ? d = (s = (a = j(g)) === null || a === void 0 ? void 0 : a.key) !== null && s !== void 0 ? s : null : d = (p = (o = T(g)) === null || o === void 0 ? void 0 : o.key) !== null && p !== void 0 ? p : null;
1256
1256
  }
1257
1257
  }
1258
1258
  r(d, f);
1259
1259
  };
1260
- let i = M(() => new Lt(t, o), [
1261
- t,
1262
- o
1260
+ let i = M(() => new Yn(n, l), [
1261
+ n,
1262
+ l
1263
1263
  ]);
1264
1264
  const c = P(null);
1265
- return oe(() => {
1266
- if (o.focusedKey != null && c.current && !t.getItem(o.focusedKey)) {
1267
- const d = c.current.getItem(o.focusedKey), f = (d == null ? void 0 : d.parentKey) != null && (d.type === "cell" || d.type === "rowheader" || d.type === "column") ? c.current.getItem(d.parentKey) : d;
1265
+ return le(() => {
1266
+ if (l.focusedKey != null && c.current && !n.getItem(l.focusedKey)) {
1267
+ const d = c.current.getItem(l.focusedKey), f = (d == null ? void 0 : d.parentKey) != null && (d.type === "cell" || d.type === "rowheader" || d.type === "column") ? c.current.getItem(d.parentKey) : d;
1268
1268
  if (!f) {
1269
- o.setFocusedKey(null);
1269
+ l.setFocusedKey(null);
1270
1270
  return;
1271
1271
  }
1272
- const a = c.current.rows, u = t.rows, s = a.length - u.length;
1273
- let p = Math.min(s > 1 ? Math.max(f.index - s + 1, 0) : f.index, u.length - 1), h = null;
1272
+ const a = c.current.rows, o = n.rows, s = a.length - o.length;
1273
+ let p = Math.min(s > 1 ? Math.max(f.index - s + 1, 0) : f.index, o.length - 1), h = null;
1274
1274
  for (; p >= 0; ) {
1275
- if (!i.isDisabled(u[p].key) && u[p].type !== "headerrow") {
1276
- h = u[p];
1275
+ if (!i.isDisabled(o[p].key) && o[p].type !== "headerrow") {
1276
+ h = o[p];
1277
1277
  break;
1278
1278
  }
1279
- p < u.length - 1 ? p++ : (p > f.index && (p = f.index), p--);
1279
+ p < o.length - 1 ? p++ : (p > f.index && (p = f.index), p--);
1280
1280
  }
1281
1281
  if (h) {
1282
1282
  const g = h.hasChildNodes ? [
1283
- ...w(h, t)
1284
- ] : [], $ = h.hasChildNodes && f !== d && d && d.index < g.length ? g[d.index].key : h.key;
1285
- o.setFocusedKey($);
1286
- } else o.setFocusedKey(null);
1283
+ ...w(h, n)
1284
+ ] : [], v = h.hasChildNodes && f !== d && d && d.index < g.length ? g[d.index].key : h.key;
1285
+ l.setFocusedKey(v);
1286
+ } else l.setFocusedKey(null);
1287
1287
  }
1288
- c.current = t;
1288
+ c.current = n;
1289
1289
  }, [
1290
- t,
1290
+ n,
1291
1291
  i,
1292
- o,
1293
- o.focusedKey
1292
+ l,
1293
+ l.focusedKey
1294
1294
  ]), {
1295
- collection: t,
1296
- disabledKeys: n,
1295
+ collection: n,
1296
+ disabledKeys: u,
1297
1297
  isKeyboardNavigationDisabled: !1,
1298
1298
  selectionManager: i
1299
1299
  };
1300
1300
  }
1301
- class wl {
1301
+ class Et {
1302
1302
  *[Symbol.iterator]() {
1303
1303
  yield* [
1304
1304
  ...this.rows
@@ -1312,63 +1312,63 @@ class wl {
1312
1312
  getKeys() {
1313
1313
  return this.keyMap.keys();
1314
1314
  }
1315
- getKeyBefore(t) {
1316
- let l = this.keyMap.get(t);
1317
- var o;
1318
- return l && (o = l.prevKey) !== null && o !== void 0 ? o : null;
1315
+ getKeyBefore(n) {
1316
+ let t = this.keyMap.get(n);
1317
+ var l;
1318
+ return t && (l = t.prevKey) !== null && l !== void 0 ? l : null;
1319
1319
  }
1320
- getKeyAfter(t) {
1321
- let l = this.keyMap.get(t);
1322
- var o;
1323
- return l && (o = l.nextKey) !== null && o !== void 0 ? o : null;
1320
+ getKeyAfter(n) {
1321
+ let t = this.keyMap.get(n);
1322
+ var l;
1323
+ return t && (l = t.nextKey) !== null && l !== void 0 ? l : null;
1324
1324
  }
1325
1325
  getFirstKey() {
1326
- var t;
1327
- return (t = [
1326
+ var n;
1327
+ return (n = [
1328
1328
  ...this.rows
1329
- ][0]) === null || t === void 0 ? void 0 : t.key;
1329
+ ][0]) === null || n === void 0 ? void 0 : n.key;
1330
1330
  }
1331
1331
  getLastKey() {
1332
- var t;
1333
- let l = [
1332
+ var n;
1333
+ let t = [
1334
1334
  ...this.rows
1335
1335
  ];
1336
- return (t = l[l.length - 1]) === null || t === void 0 ? void 0 : t.key;
1336
+ return (n = t[t.length - 1]) === null || n === void 0 ? void 0 : n.key;
1337
1337
  }
1338
- getItem(t) {
1339
- var l;
1340
- return (l = this.keyMap.get(t)) !== null && l !== void 0 ? l : null;
1338
+ getItem(n) {
1339
+ var t;
1340
+ return (t = this.keyMap.get(n)) !== null && t !== void 0 ? t : null;
1341
1341
  }
1342
- at(t) {
1343
- const l = [
1342
+ at(n) {
1343
+ const t = [
1344
1344
  ...this.getKeys()
1345
1345
  ];
1346
- return this.getItem(l[t]);
1346
+ return this.getItem(t[n]);
1347
1347
  }
1348
- getChildren(t) {
1349
- let l = this.keyMap.get(t);
1350
- return (l == null ? void 0 : l.childNodes) || [];
1348
+ getChildren(n) {
1349
+ let t = this.keyMap.get(n);
1350
+ return (t == null ? void 0 : t.childNodes) || [];
1351
1351
  }
1352
- constructor(t) {
1353
- this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = t == null ? void 0 : t.columnCount, this.rows = [];
1354
- let l = (u) => {
1355
- let s = this.keyMap.get(u.key);
1356
- t.visitNode && (u = t.visitNode(u)), this.keyMap.set(u.key, u);
1352
+ constructor(n) {
1353
+ this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = n == null ? void 0 : n.columnCount, this.rows = [];
1354
+ let t = (o) => {
1355
+ let s = this.keyMap.get(o.key);
1356
+ n.visitNode && (o = n.visitNode(o)), this.keyMap.set(o.key, o);
1357
1357
  let p = /* @__PURE__ */ new Set(), h = null;
1358
- for (let g of u.childNodes)
1359
- g.type === "cell" && g.parentKey == null && (g.parentKey = u.key), p.add(g.key), h ? (h.nextKey = g.key, g.prevKey = h.key) : g.prevKey = null, l(g), h = g;
1358
+ for (let g of o.childNodes)
1359
+ g.type === "cell" && g.parentKey == null && (g.parentKey = o.key), p.add(g.key), h ? (h.nextKey = g.key, g.prevKey = h.key) : g.prevKey = null, t(g), h = g;
1360
1360
  if (h && (h.nextKey = null), s)
1361
- for (let g of s.childNodes) p.has(g.key) || o(g);
1362
- }, o = (u) => {
1363
- this.keyMap.delete(u.key);
1364
- for (let s of u.childNodes) this.keyMap.get(s.key) === s && o(s);
1365
- }, n = null;
1366
- for (let [u, s] of t.items.entries()) {
1361
+ for (let g of s.childNodes) p.has(g.key) || l(g);
1362
+ }, l = (o) => {
1363
+ this.keyMap.delete(o.key);
1364
+ for (let s of o.childNodes) this.keyMap.get(s.key) === s && l(s);
1365
+ }, u = null;
1366
+ for (let [o, s] of n.items.entries()) {
1367
1367
  var r, i, c, d, f, a;
1368
1368
  let p = {
1369
1369
  ...s,
1370
1370
  level: (r = s.level) !== null && r !== void 0 ? r : 0,
1371
- key: (i = s.key) !== null && i !== void 0 ? i : "row-" + u,
1371
+ key: (i = s.key) !== null && i !== void 0 ? i : "row-" + o,
1372
1372
  type: (c = s.type) !== null && c !== void 0 ? c : "row",
1373
1373
  value: (d = s.value) !== null && d !== void 0 ? d : null,
1374
1374
  hasChildNodes: !0,
@@ -1377,51 +1377,51 @@ class wl {
1377
1377
  ],
1378
1378
  rendered: s.rendered,
1379
1379
  textValue: (f = s.textValue) !== null && f !== void 0 ? f : "",
1380
- index: (a = s.index) !== null && a !== void 0 ? a : u
1380
+ index: (a = s.index) !== null && a !== void 0 ? a : o
1381
1381
  };
1382
- n ? (n.nextKey = p.key, p.prevKey = n.key) : p.prevKey = null, this.rows.push(p), l(p), n = p;
1382
+ u ? (u.nextKey = p.key, p.prevKey = u.key) : p.prevKey = null, this.rows.push(p), t(p), u = p;
1383
1383
  }
1384
- n && (n.nextKey = null);
1384
+ u && (u.nextKey = null);
1385
1385
  }
1386
1386
  }
1387
- const Ct = "row-header-column-" + Math.random().toString(36).slice(2);
1387
+ const kn = "row-header-column-" + Math.random().toString(36).slice(2);
1388
1388
  let ce = "row-header-column-" + Math.random().toString(36).slice(2);
1389
- for (; Ct === ce; ) ce = "row-header-column-" + Math.random().toString(36).slice(2);
1390
- function kt(e, t) {
1391
- if (t.length === 0) return [];
1392
- let l = [], o = /* @__PURE__ */ new Map();
1393
- for (let a of t) {
1394
- let u = a.parentKey, s = [
1389
+ for (; kn === ce; ) ce = "row-header-column-" + Math.random().toString(36).slice(2);
1390
+ function wn(e, n) {
1391
+ if (n.length === 0) return [];
1392
+ let t = [], l = /* @__PURE__ */ new Map();
1393
+ for (let a of n) {
1394
+ let o = a.parentKey, s = [
1395
1395
  a
1396
1396
  ];
1397
- for (; u; ) {
1398
- let p = e.get(u);
1397
+ for (; o; ) {
1398
+ let p = e.get(o);
1399
1399
  if (!p) break;
1400
- if (o.has(p)) {
1401
- var n, r;
1402
- (r = (n = p).colspan) !== null && r !== void 0 || (n.colspan = 0), p.colspan++;
1403
- let { column: h, index: g } = o.get(p);
1400
+ if (l.has(p)) {
1401
+ var u, r;
1402
+ (r = (u = p).colspan) !== null && r !== void 0 || (u.colspan = 0), p.colspan++;
1403
+ let { column: h, index: g } = l.get(p);
1404
1404
  if (g > s.length) break;
1405
- for (let $ = g; $ < s.length; $++) h.splice($, 0, null);
1406
- for (let $ = s.length; $ < h.length; $++)
1407
- h[$] && o.has(h[$]) && (o.get(h[$]).index = $);
1405
+ for (let v = g; v < s.length; v++) h.splice(v, 0, null);
1406
+ for (let v = s.length; v < h.length; v++)
1407
+ h[v] && l.has(h[v]) && (l.get(h[v]).index = v);
1408
1408
  } else
1409
- p.colspan = 1, s.push(p), o.set(p, {
1409
+ p.colspan = 1, s.push(p), l.set(p, {
1410
1410
  column: s,
1411
1411
  index: s.length - 1
1412
1412
  });
1413
- u = p.parentKey;
1413
+ o = p.parentKey;
1414
1414
  }
1415
- l.push(s), a.index = l.length - 1;
1415
+ t.push(s), a.index = t.length - 1;
1416
1416
  }
1417
- let i = Math.max(...l.map((a) => a.length)), c = Array(i).fill(0).map(() => []), d = 0;
1418
- for (let a of l) {
1419
- let u = i - 1;
1417
+ let i = Math.max(...t.map((a) => a.length)), c = Array(i).fill(0).map(() => []), d = 0;
1418
+ for (let a of t) {
1419
+ let o = i - 1;
1420
1420
  for (let s of a) {
1421
1421
  if (s) {
1422
- let p = c[u], h = p.reduce((g, $) => {
1422
+ let p = c[o], h = p.reduce((g, v) => {
1423
1423
  var x;
1424
- return g + ((x = $.colspan) !== null && x !== void 0 ? x : 1);
1424
+ return g + ((x = v.colspan) !== null && x !== void 0 ? x : 1);
1425
1425
  }, 0);
1426
1426
  if (h < d) {
1427
1427
  let g = {
@@ -1431,31 +1431,31 @@ function kt(e, t) {
1431
1431
  index: h,
1432
1432
  value: null,
1433
1433
  rendered: null,
1434
- level: u,
1434
+ level: o,
1435
1435
  hasChildNodes: !1,
1436
1436
  childNodes: [],
1437
1437
  textValue: ""
1438
1438
  };
1439
1439
  p.length > 0 && (p[p.length - 1].nextKey = g.key, g.prevKey = p[p.length - 1].key), p.push(g);
1440
1440
  }
1441
- p.length > 0 && (p[p.length - 1].nextKey = s.key, s.prevKey = p[p.length - 1].key), s.level = u, s.colIndex = d, p.push(s);
1441
+ p.length > 0 && (p[p.length - 1].nextKey = s.key, s.prevKey = p[p.length - 1].key), s.level = o, s.colIndex = d, p.push(s);
1442
1442
  }
1443
- u--;
1443
+ o--;
1444
1444
  }
1445
1445
  d++;
1446
1446
  }
1447
1447
  let f = 0;
1448
1448
  for (let a of c) {
1449
- let u = a.reduce((s, p) => {
1449
+ let o = a.reduce((s, p) => {
1450
1450
  var h;
1451
1451
  return s + ((h = p.colspan) !== null && h !== void 0 ? h : 1);
1452
1452
  }, 0);
1453
- if (u < t.length) {
1453
+ if (o < n.length) {
1454
1454
  let s = {
1455
1455
  type: "placeholder",
1456
1456
  key: "placeholder-" + a[a.length - 1].key,
1457
- colspan: t.length - u,
1458
- index: u,
1457
+ colspan: n.length - o,
1458
+ index: o,
1459
1459
  value: null,
1460
1460
  rendered: null,
1461
1461
  level: f,
@@ -1468,10 +1468,10 @@ function kt(e, t) {
1468
1468
  }
1469
1469
  f++;
1470
1470
  }
1471
- return c.map((a, u) => ({
1471
+ return c.map((a, o) => ({
1472
1472
  type: "headerrow",
1473
- key: "headerrow-" + u,
1474
- index: u,
1473
+ key: "headerrow-" + o,
1474
+ index: o,
1475
1475
  value: null,
1476
1476
  rendered: null,
1477
1477
  level: 0,
@@ -1480,7 +1480,7 @@ function kt(e, t) {
1480
1480
  textValue: ""
1481
1481
  }));
1482
1482
  }
1483
- class El extends wl {
1483
+ class St extends Et {
1484
1484
  *[Symbol.iterator]() {
1485
1485
  yield* this.body.childNodes;
1486
1486
  }
@@ -1490,62 +1490,62 @@ class El extends wl {
1490
1490
  getKeys() {
1491
1491
  return this.keyMap.keys();
1492
1492
  }
1493
- getKeyBefore(t) {
1494
- let l = this.keyMap.get(t);
1495
- var o;
1496
- return (o = l == null ? void 0 : l.prevKey) !== null && o !== void 0 ? o : null;
1493
+ getKeyBefore(n) {
1494
+ let t = this.keyMap.get(n);
1495
+ var l;
1496
+ return (l = t == null ? void 0 : t.prevKey) !== null && l !== void 0 ? l : null;
1497
1497
  }
1498
- getKeyAfter(t) {
1499
- let l = this.keyMap.get(t);
1500
- var o;
1501
- return (o = l == null ? void 0 : l.nextKey) !== null && o !== void 0 ? o : null;
1498
+ getKeyAfter(n) {
1499
+ let t = this.keyMap.get(n);
1500
+ var l;
1501
+ return (l = t == null ? void 0 : t.nextKey) !== null && l !== void 0 ? l : null;
1502
1502
  }
1503
1503
  getFirstKey() {
1504
- var t, l;
1505
- return (l = (t = T(this.body.childNodes)) === null || t === void 0 ? void 0 : t.key) !== null && l !== void 0 ? l : null;
1504
+ var n, t;
1505
+ return (t = (n = T(this.body.childNodes)) === null || n === void 0 ? void 0 : n.key) !== null && t !== void 0 ? t : null;
1506
1506
  }
1507
1507
  getLastKey() {
1508
- var t, l;
1509
- return (l = (t = j(this.body.childNodes)) === null || t === void 0 ? void 0 : t.key) !== null && l !== void 0 ? l : null;
1508
+ var n, t;
1509
+ return (t = (n = j(this.body.childNodes)) === null || n === void 0 ? void 0 : n.key) !== null && t !== void 0 ? t : null;
1510
1510
  }
1511
- getItem(t) {
1512
- var l;
1513
- return (l = this.keyMap.get(t)) !== null && l !== void 0 ? l : null;
1511
+ getItem(n) {
1512
+ var t;
1513
+ return (t = this.keyMap.get(n)) !== null && t !== void 0 ? t : null;
1514
1514
  }
1515
- at(t) {
1516
- const l = [
1515
+ at(n) {
1516
+ const t = [
1517
1517
  ...this.getKeys()
1518
1518
  ];
1519
- return this.getItem(l[t]);
1520
- }
1521
- getChildren(t) {
1522
- return t === this.body.key ? this.body.childNodes : super.getChildren(t);
1523
- }
1524
- getTextValue(t) {
1525
- let l = this.getItem(t);
1526
- if (!l) return "";
1527
- if (l.textValue) return l.textValue;
1528
- let o = this.rowHeaderColumnKeys;
1529
- if (o) {
1530
- let n = [];
1531
- for (let r of l.childNodes) {
1519
+ return this.getItem(t[n]);
1520
+ }
1521
+ getChildren(n) {
1522
+ return n === this.body.key ? this.body.childNodes : super.getChildren(n);
1523
+ }
1524
+ getTextValue(n) {
1525
+ let t = this.getItem(n);
1526
+ if (!t) return "";
1527
+ if (t.textValue) return t.textValue;
1528
+ let l = this.rowHeaderColumnKeys;
1529
+ if (l) {
1530
+ let u = [];
1531
+ for (let r of t.childNodes) {
1532
1532
  let i = this.columns[r.index];
1533
- if (o.has(i.key) && r.textValue && n.push(r.textValue), n.length === o.size) break;
1533
+ if (l.has(i.key) && r.textValue && u.push(r.textValue), u.length === l.size) break;
1534
1534
  }
1535
- return n.join(" ");
1535
+ return u.join(" ");
1536
1536
  }
1537
1537
  return "";
1538
1538
  }
1539
- constructor(t, l, o) {
1540
- let n = /* @__PURE__ */ new Set(), r = null, i = [];
1541
- if (o != null && o.showSelectionCheckboxes) {
1542
- let u = {
1539
+ constructor(n, t, l) {
1540
+ let u = /* @__PURE__ */ new Set(), r = null, i = [];
1541
+ if (l != null && l.showSelectionCheckboxes) {
1542
+ let o = {
1543
1543
  type: "column",
1544
- key: Ct,
1544
+ key: kn,
1545
1545
  value: null,
1546
1546
  textValue: "",
1547
1547
  level: 0,
1548
- index: o != null && o.showDragButtons ? 1 : 0,
1548
+ index: l != null && l.showDragButtons ? 1 : 0,
1549
1549
  hasChildNodes: !1,
1550
1550
  rendered: null,
1551
1551
  childNodes: [],
@@ -1553,10 +1553,10 @@ class El extends wl {
1553
1553
  isSelectionCell: !0
1554
1554
  }
1555
1555
  };
1556
- i.unshift(u);
1556
+ i.unshift(o);
1557
1557
  }
1558
- if (o != null && o.showDragButtons) {
1559
- let u = {
1558
+ if (l != null && l.showDragButtons) {
1559
+ let o = {
1560
1560
  type: "column",
1561
1561
  key: ce,
1562
1562
  value: null,
@@ -1570,57 +1570,57 @@ class El extends wl {
1570
1570
  isDragButtonCell: !0
1571
1571
  }
1572
1572
  };
1573
- i.unshift(u);
1573
+ i.unshift(o);
1574
1574
  }
1575
- let c = [], d = /* @__PURE__ */ new Map(), f = (u) => {
1576
- switch (u.type) {
1575
+ let c = [], d = /* @__PURE__ */ new Map(), f = (o) => {
1576
+ switch (o.type) {
1577
1577
  case "body":
1578
- r = u;
1578
+ r = o;
1579
1579
  break;
1580
1580
  case "column":
1581
- d.set(u.key, u), u.hasChildNodes || (i.push(u), u.props.isRowHeader && n.add(u.key));
1581
+ d.set(o.key, o), o.hasChildNodes || (i.push(o), o.props.isRowHeader && u.add(o.key));
1582
1582
  break;
1583
1583
  case "item":
1584
- c.push(u);
1584
+ c.push(o);
1585
1585
  return;
1586
1586
  }
1587
- for (let s of u.childNodes) f(s);
1587
+ for (let s of o.childNodes) f(s);
1588
1588
  };
1589
- for (let u of t) f(u);
1590
- let a = kt(d, i);
1591
- if (a.forEach((u, s) => c.splice(s, 0, u)), super({
1589
+ for (let o of n) f(o);
1590
+ let a = wn(d, i);
1591
+ if (a.forEach((o, s) => c.splice(s, 0, o)), super({
1592
1592
  columnCount: i.length,
1593
1593
  items: c,
1594
- visitNode: (u) => (u.column = i[u.index], u)
1595
- }), this._size = 0, this.columns = i, this.rowHeaderColumnKeys = n, this.body = r, this.headerRows = a, this._size = [
1594
+ visitNode: (o) => (o.column = i[o.index], o)
1595
+ }), this._size = 0, this.columns = i, this.rowHeaderColumnKeys = u, this.body = r, this.headerRows = a, this._size = [
1596
1596
  ...r.childNodes
1597
1597
  ].length, this.rowHeaderColumnKeys.size === 0) {
1598
- let u = this.columns.find((s) => {
1598
+ let o = this.columns.find((s) => {
1599
1599
  var p, h;
1600
1600
  return !(!((p = s.props) === null || p === void 0) && p.isDragButtonCell) && !(!((h = s.props) === null || h === void 0) && h.isSelectionCell);
1601
1601
  });
1602
- u && this.rowHeaderColumnKeys.add(u.key);
1602
+ o && this.rowHeaderColumnKeys.add(o.key);
1603
1603
  }
1604
1604
  }
1605
1605
  }
1606
- const Sl = {
1606
+ const zt = {
1607
1607
  ascending: "descending",
1608
1608
  descending: "ascending"
1609
1609
  };
1610
- function zl(e) {
1611
- let [t, l] = qt(!1), { selectionMode: o = "none", showSelectionCheckboxes: n, showDragButtons: r } = e, i = M(() => ({
1612
- showSelectionCheckboxes: n && o !== "none",
1610
+ function Bt(e) {
1611
+ let [n, t] = Zn(!1), { selectionMode: l = "none", showSelectionCheckboxes: u, showDragButtons: r } = e, i = M(() => ({
1612
+ showSelectionCheckboxes: u && l !== "none",
1613
1613
  showDragButtons: r,
1614
- selectionMode: o,
1614
+ selectionMode: l,
1615
1615
  columns: []
1616
1616
  }), [
1617
1617
  e.children,
1618
- n,
1619
- o,
1618
+ u,
1619
+ l,
1620
1620
  r
1621
- ]), c = Yt(e, ge((u) => new El(u, null, i), [
1621
+ ]), c = qn(e, ge((o) => new St(o, null, i), [
1622
1622
  i
1623
- ]), i), { disabledKeys: d, selectionManager: f } = kl({
1623
+ ]), i), { disabledKeys: d, selectionManager: f } = wt({
1624
1624
  ...e,
1625
1625
  collection: c,
1626
1626
  disabledBehavior: e.disabledBehavior || "selection"
@@ -1632,39 +1632,39 @@ function zl(e) {
1632
1632
  selectionManager: f,
1633
1633
  showSelectionCheckboxes: e.showSelectionCheckboxes || !1,
1634
1634
  sortDescriptor: (a = e.sortDescriptor) !== null && a !== void 0 ? a : null,
1635
- isKeyboardNavigationDisabled: c.size === 0 || t,
1636
- setKeyboardNavigationDisabled: l,
1637
- sort(u, s) {
1635
+ isKeyboardNavigationDisabled: c.size === 0 || n,
1636
+ setKeyboardNavigationDisabled: t,
1637
+ sort(o, s) {
1638
1638
  var p, h;
1639
1639
  (h = e.onSortChange) === null || h === void 0 || h.call(e, {
1640
- column: u,
1641
- direction: s ?? (((p = e.sortDescriptor) === null || p === void 0 ? void 0 : p.column) === u ? Sl[e.sortDescriptor.direction] : "ascending")
1640
+ column: o,
1641
+ direction: s ?? (((p = e.sortDescriptor) === null || p === void 0 ? void 0 : p.column) === o ? zt[e.sortDescriptor.direction] : "ascending")
1642
1642
  });
1643
1643
  }
1644
1644
  };
1645
1645
  }
1646
- class Bl extends Rt {
1647
- addNode(t) {
1648
- super.addNode(t), this.columnsDirty || (this.columnsDirty = t.type === "column"), t.type === "tableheader" && (this.head = t), t.type === "tablebody" && (this.body = t);
1646
+ class At extends Mn {
1647
+ addNode(n) {
1648
+ super.addNode(n), this.columnsDirty || (this.columnsDirty = n.type === "column"), n.type === "tableheader" && (this.head = n), n.type === "tablebody" && (this.body = n);
1649
1649
  }
1650
- commit(t, l, o = !1) {
1651
- this.updateColumns(o), super.commit(t, l, o), this.rows = [
1650
+ commit(n, t, l = !1) {
1651
+ this.updateColumns(l), super.commit(n, t, l), this.rows = [
1652
1652
  ...this.getChildren(this.body.key)
1653
1653
  ];
1654
1654
  }
1655
- updateColumns(t) {
1655
+ updateColumns(n) {
1656
1656
  if (!this.columnsDirty) return;
1657
1657
  this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.columns = [];
1658
- let l = /* @__PURE__ */ new Map(), o = (n) => {
1659
- switch (n.type) {
1658
+ let t = /* @__PURE__ */ new Map(), l = (u) => {
1659
+ switch (u.type) {
1660
1660
  case "column":
1661
- l.set(n.key, n), n.hasChildNodes || (n.index = this.columns.length, this.columns.push(n), n.props.isRowHeader && this.rowHeaderColumnKeys.add(n.key));
1661
+ t.set(u.key, u), u.hasChildNodes || (u.index = this.columns.length, this.columns.push(u), u.props.isRowHeader && this.rowHeaderColumnKeys.add(u.key));
1662
1662
  break;
1663
1663
  }
1664
- for (let r of this.getChildren(n.key)) o(r);
1664
+ for (let r of this.getChildren(u.key)) l(r);
1665
1665
  };
1666
- for (let n of this.getChildren(this.head.key)) o(n);
1667
- if (this.headerRows = kt(l, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !t) throw new Error("A table must have at least one Column with the isRowHeader prop set to true");
1666
+ for (let u of this.getChildren(this.head.key)) l(u);
1667
+ if (this.headerRows = wn(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !n) throw new Error("A table must have at least one Column with the isRowHeader prop set to true");
1668
1668
  }
1669
1669
  get columnCount() {
1670
1670
  return this.columns.length;
@@ -1681,122 +1681,121 @@ class Bl extends Rt {
1681
1681
  getLastKey() {
1682
1682
  return this.body.lastChildKey;
1683
1683
  }
1684
- getKeyAfter(t) {
1685
- let l = this.getItem(t);
1686
- var o;
1687
- return (l == null ? void 0 : l.type) === "column" ? (o = l.nextKey) !== null && o !== void 0 ? o : null : super.getKeyAfter(t);
1688
- }
1689
- getKeyBefore(t) {
1684
+ getKeyAfter(n) {
1685
+ let t = this.getItem(n);
1690
1686
  var l;
1691
- let o = this.getItem(t);
1692
- var n;
1693
- if ((o == null ? void 0 : o.type) === "column") return (n = o.prevKey) !== null && n !== void 0 ? n : null;
1694
- let r = super.getKeyBefore(t);
1695
- return r != null && ((l = this.getItem(r)) === null || l === void 0 ? void 0 : l.type) === "tablebody" ? null : r;
1696
- }
1697
- getChildren(t) {
1698
- if (!this.getItem(t)) {
1699
- for (let l of this.headerRows)
1700
- if (l.key === t) return l.childNodes;
1687
+ return (t == null ? void 0 : t.type) === "column" ? (l = t.nextKey) !== null && l !== void 0 ? l : null : super.getKeyAfter(n);
1688
+ }
1689
+ getKeyBefore(n) {
1690
+ var t;
1691
+ let l = this.getItem(n);
1692
+ var u;
1693
+ if ((l == null ? void 0 : l.type) === "column") return (u = l.prevKey) !== null && u !== void 0 ? u : null;
1694
+ let r = super.getKeyBefore(n);
1695
+ return r != null && ((t = this.getItem(r)) === null || t === void 0 ? void 0 : t.type) === "tablebody" ? null : r;
1696
+ }
1697
+ getChildren(n) {
1698
+ if (!this.getItem(n)) {
1699
+ for (let t of this.headerRows)
1700
+ if (t.key === n) return t.childNodes;
1701
1701
  }
1702
- return super.getChildren(t);
1702
+ return super.getChildren(n);
1703
1703
  }
1704
1704
  clone() {
1705
- let t = super.clone();
1706
- return t.headerRows = this.headerRows, t.columns = this.columns, t.rowHeaderColumnKeys = this.rowHeaderColumnKeys, t.head = this.head, t.body = this.body, t;
1707
- }
1708
- getTextValue(t) {
1709
- let l = this.getItem(t);
1710
- if (!l) return "";
1711
- if (l.textValue) return l.textValue;
1712
- let o = this.rowHeaderColumnKeys, n = [];
1713
- for (let r of this.getChildren(t)) {
1705
+ let n = super.clone();
1706
+ return n.headerRows = this.headerRows, n.columns = this.columns, n.rowHeaderColumnKeys = this.rowHeaderColumnKeys, n.head = this.head, n.body = this.body, n;
1707
+ }
1708
+ getTextValue(n) {
1709
+ let t = this.getItem(n);
1710
+ if (!t) return "";
1711
+ if (t.textValue) return t.textValue;
1712
+ let l = this.rowHeaderColumnKeys, u = [];
1713
+ for (let r of this.getChildren(n)) {
1714
1714
  let i = this.columns[r.index];
1715
- if (o.has(i.key) && r.textValue && n.push(r.textValue), n.length === o.size) break;
1715
+ if (l.has(i.key) && r.textValue && u.push(r.textValue), u.length === l.size) break;
1716
1716
  }
1717
- return n.join(" ");
1717
+ return u.join(" ");
1718
1718
  }
1719
- constructor(...t) {
1720
- super(...t), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new xe("tableheader", -1), this.body = new xe("tablebody", -2), this.columnsDirty = !0;
1719
+ constructor(...n) {
1720
+ super(...n), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new xe("tableheader", -1), this.body = new xe("tablebody", -2), this.columnsDirty = !0;
1721
1721
  }
1722
1722
  }
1723
- const Al = /* @__PURE__ */ Y(null), Kl = /* @__PURE__ */ Y(null), F = /* @__PURE__ */ Y(null), wt = /* @__PURE__ */ Y(null);
1724
- function Pl(e, t) {
1723
+ const Kt = /* @__PURE__ */ Y(null), Pt = /* @__PURE__ */ Y(null), F = /* @__PURE__ */ Y(null), En = /* @__PURE__ */ Y(null), Ft = /* @__PURE__ */ Fe(function(n, t) {
1725
1724
  var l;
1726
- [e, t] = jt(e, t, Kl);
1727
- let o = Pe(e), { selectionBehavior: n, selectionMode: r, disallowEmptySelection: i } = o, c = !!(!((l = e.dragAndDropHooks) === null || l === void 0) && l.useDraggableCollectionState), d = M(() => ({
1728
- selectionBehavior: r === "none" ? null : n,
1729
- selectionMode: r,
1730
- disallowEmptySelection: i,
1731
- allowsDragging: c
1725
+ [n, t] = In(n, t, Pt);
1726
+ let u = Pe(n), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: c } = u, d = !!(!((l = n.dragAndDropHooks) === null || l === void 0) && l.useDraggableCollectionState), f = M(() => ({
1727
+ selectionBehavior: i === "none" ? null : r,
1728
+ selectionMode: i,
1729
+ disallowEmptySelection: c,
1730
+ allowsDragging: d
1732
1731
  }), [
1733
- n,
1734
1732
  r,
1735
1733
  i,
1736
- c
1737
- ]), f = /* @__PURE__ */ b.createElement(Et.Provider, {
1738
- value: d
1739
- }, /* @__PURE__ */ b.createElement(X, e));
1740
- return /* @__PURE__ */ b.createElement(Nt, {
1741
- content: f,
1742
- createCollection: () => new Bl()
1743
- }, (a) => /* @__PURE__ */ b.createElement(Fl, {
1744
- props: e,
1734
+ c,
1735
+ d
1736
+ ]), a = /* @__PURE__ */ m.createElement(Sn.Provider, {
1737
+ value: f
1738
+ }, /* @__PURE__ */ m.createElement(X, n));
1739
+ return /* @__PURE__ */ m.createElement(Nn, {
1740
+ content: a,
1741
+ createCollection: () => new At()
1742
+ }, (o) => /* @__PURE__ */ m.createElement(Nt, {
1743
+ props: n,
1745
1744
  forwardedRef: t,
1746
- selectionState: o,
1747
- collection: a
1745
+ selectionState: u,
1746
+ collection: o
1748
1747
  }));
1749
- }
1750
- function Fl({ props: e, forwardedRef: t, selectionState: l, collection: o }) {
1751
- let n = C(Al);
1752
- t = _(M(() => It(t, n == null ? void 0 : n.tableRef), [
1753
- t,
1754
- n == null ? void 0 : n.tableRef
1748
+ });
1749
+ function Nt({ props: e, forwardedRef: n, selectionState: t, collection: l }) {
1750
+ let u = C(Kt);
1751
+ n = _(M(() => Wn(n, u == null ? void 0 : u.tableRef), [
1752
+ n,
1753
+ u == null ? void 0 : u.tableRef
1755
1754
  ]));
1756
- let r = zl({
1755
+ let r = Bt({
1757
1756
  ...e,
1758
- collection: o,
1757
+ collection: l,
1759
1758
  children: void 0,
1760
- UNSAFE_selectionState: l
1761
- }), { isVirtualized: i, layoutDelegate: c, dropTargetDelegate: d, CollectionRoot: f } = C(K), { dragAndDropHooks: a } = e, { gridProps: u } = gl({
1759
+ UNSAFE_selectionState: t
1760
+ }), { isVirtualized: i, layoutDelegate: c, dropTargetDelegate: d, CollectionRoot: f } = C(K), { dragAndDropHooks: a } = e, { gridProps: o } = bt({
1762
1761
  ...e,
1763
1762
  layoutDelegate: c,
1764
1763
  isVirtualized: i
1765
- }, r, t), s = r.selectionManager, p = !!(a != null && a.useDraggableCollectionState), h = !!(a != null && a.useDroppableCollectionState), g = P(p), $ = P(h);
1766
- oe(() => {
1767
- g.current !== p && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), $.current !== h && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");
1764
+ }, r, n), s = r.selectionManager, p = !!(a != null && a.useDraggableCollectionState), h = !!(a != null && a.useDroppableCollectionState), g = P(p), v = P(h);
1765
+ le(() => {
1766
+ g.current !== p && 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.");
1768
1767
  }, [
1769
1768
  p,
1770
1769
  h
1771
1770
  ]);
1772
- let x, D, v, y = !1, m = null, E = P(null);
1771
+ let x, D, b, $ = !1, y = null, E = P(null);
1773
1772
  if (p && a) {
1774
1773
  x = a.useDraggableCollectionState({
1775
- collection: o,
1774
+ collection: l,
1776
1775
  selectionManager: s,
1777
1776
  preview: a.renderDragPreview ? E : void 0
1778
- }), a.useDraggableCollection({}, x, t);
1777
+ }), a.useDraggableCollection({}, x, n);
1779
1778
  let ae = a.DragPreview;
1780
- m = a.renderDragPreview ? /* @__PURE__ */ b.createElement(ae, {
1779
+ y = a.renderDragPreview ? /* @__PURE__ */ m.createElement(ae, {
1781
1780
  ref: E
1782
1781
  }, a.renderDragPreview) : null;
1783
1782
  }
1784
1783
  if (h && a) {
1785
1784
  D = a.useDroppableCollectionState({
1786
- collection: o,
1785
+ collection: l,
1787
1786
  selectionManager: s
1788
1787
  });
1789
- let ae = new _t({
1790
- collection: o,
1788
+ let ae = new Qn({
1789
+ collection: l,
1791
1790
  disabledKeys: s.disabledKeys,
1792
1791
  disabledBehavior: s.disabledBehavior,
1793
- ref: t,
1792
+ ref: n,
1794
1793
  layoutDelegate: c
1795
- }), zt = a.dropTargetDelegate || d || new a.ListDropTargetDelegate(o.rows, t);
1796
- v = a.useDroppableCollection({
1794
+ }), Bn = a.dropTargetDelegate || d || new a.ListDropTargetDelegate(l.rows, n);
1795
+ b = a.useDroppableCollection({
1797
1796
  keyboardDelegate: ae,
1798
- dropTargetDelegate: zt
1799
- }, D, t), y = D.isDropTarget({
1797
+ dropTargetDelegate: Bn
1798
+ }, D, n), $ = D.isDropTarget({
1800
1799
  type: "root"
1801
1800
  });
1802
1801
  }
@@ -1805,29 +1804,29 @@ function Fl({ props: e, forwardedRef: t, selectionState: l, collection: o }) {
1805
1804
  style: e.style,
1806
1805
  defaultClassName: "react-aria-Table",
1807
1806
  values: {
1808
- isDropTarget: y,
1807
+ isDropTarget: $,
1809
1808
  isFocused: N,
1810
1809
  isFocusVisible: R,
1811
1810
  state: r
1812
1811
  }
1813
1812
  }), q = !!(p && !(x != null && x.isDisabled)), Z = k.style, J = null;
1814
- n && (J = n.useTableColumnResizeState({
1815
- tableWidth: n.tableWidth
1813
+ u && (J = u.useTableColumnResizeState({
1814
+ tableWidth: u.tableWidth
1816
1815
  }, r), i || (Z = {
1817
1816
  ...Z,
1818
1817
  tableLayout: "fixed",
1819
1818
  width: "fit-content"
1820
1819
  }));
1821
1820
  let ie = B("table");
1822
- var ue;
1823
- return /* @__PURE__ */ b.createElement(le, {
1821
+ var oe;
1822
+ return /* @__PURE__ */ m.createElement(ne, {
1824
1823
  values: [
1825
1824
  [
1826
1825
  F,
1827
1826
  r
1828
1827
  ],
1829
1828
  [
1830
- wt,
1829
+ En,
1831
1830
  J
1832
1831
  ],
1833
1832
  [
@@ -1839,53 +1838,52 @@ function Fl({ props: e, forwardedRef: t, selectionState: l, collection: o }) {
1839
1838
  }
1840
1839
  ],
1841
1840
  [
1842
- Wt,
1841
+ Un,
1843
1842
  {
1844
- render: Il
1843
+ render: It
1845
1844
  }
1846
1845
  ]
1847
1846
  ]
1848
- }, /* @__PURE__ */ b.createElement(Qt, null, /* @__PURE__ */ b.createElement(ie, {
1847
+ }, /* @__PURE__ */ m.createElement(tt, null, /* @__PURE__ */ m.createElement(ie, {
1849
1848
  ...H(e),
1850
1849
  ...k,
1851
- ...A(u, S, v == null ? void 0 : v.collectionProps),
1850
+ ...A(o, S, b == null ? void 0 : b.collectionProps),
1852
1851
  style: Z,
1853
- ref: t,
1852
+ ref: n,
1854
1853
  slot: e.slot || void 0,
1855
1854
  onScroll: e.onScroll,
1856
1855
  "data-allows-dragging": q || void 0,
1857
- "data-drop-target": y || void 0,
1856
+ "data-drop-target": $ || void 0,
1858
1857
  "data-focused": N || void 0,
1859
1858
  "data-focus-visible": R || void 0
1860
- }, /* @__PURE__ */ b.createElement(f, {
1861
- collection: o,
1862
- scrollRef: (ue = n == null ? void 0 : n.scrollRef) !== null && ue !== void 0 ? ue : t,
1863
- persistedKeys: Ut(s, a, D)
1864
- }))), m);
1859
+ }, /* @__PURE__ */ m.createElement(f, {
1860
+ collection: l,
1861
+ scrollRef: (oe = u == null ? void 0 : u.scrollRef) !== null && oe !== void 0 ? oe : n,
1862
+ persistedKeys: Gn(s, a, D)
1863
+ }))), y);
1865
1864
  }
1866
- const Nl = /* @__PURE__ */ Fe(Pl);
1867
1865
  function B(e) {
1868
- let { isVirtualized: t } = C(K);
1869
- return t ? "div" : e;
1866
+ let { isVirtualized: n } = C(K);
1867
+ return n ? "div" : e;
1870
1868
  }
1871
- const Et = /* @__PURE__ */ Y(null);
1872
- function St() {
1873
- return C(Et);
1869
+ const Sn = /* @__PURE__ */ Y(null);
1870
+ function zn() {
1871
+ return C(Sn);
1874
1872
  }
1875
- const Rl = /* @__PURE__ */ pe("tableheader", (e, t) => {
1876
- let l = C(F).collection, o = Ft({
1877
- items: l.headerRows,
1873
+ const Rt = /* @__PURE__ */ pe("tableheader", (e, n) => {
1874
+ let t = C(F).collection, l = Rn({
1875
+ items: t.headerRows,
1878
1876
  children: ge((f) => {
1879
1877
  switch (f.type) {
1880
1878
  case "headerrow":
1881
- return /* @__PURE__ */ b.createElement(Ml, {
1879
+ return /* @__PURE__ */ m.createElement(Mt, {
1882
1880
  item: f
1883
1881
  });
1884
1882
  default:
1885
1883
  throw new Error("Unsupported node type in TableHeader: " + f.type);
1886
1884
  }
1887
1885
  }, [])
1888
- }), n = B("thead"), { rowGroupProps: r } = Dt(), { hoverProps: i, isHovered: c } = te({
1886
+ }), u = B("thead"), { rowGroupProps: r } = Cn(), { hoverProps: i, isHovered: c } = te({
1889
1887
  onHoverStart: e.onHoverStart,
1890
1888
  onHoverChange: e.onHoverChange,
1891
1889
  onHoverEnd: e.onHoverEnd
@@ -1897,25 +1895,25 @@ const Rl = /* @__PURE__ */ pe("tableheader", (e, t) => {
1897
1895
  isHovered: c
1898
1896
  }
1899
1897
  });
1900
- return /* @__PURE__ */ b.createElement(n, {
1898
+ return /* @__PURE__ */ m.createElement(u, {
1901
1899
  ...A(H(e), r, i),
1902
1900
  ...d,
1903
- ref: t,
1901
+ ref: n,
1904
1902
  "data-hovered": c || void 0
1905
- }, o);
1906
- }, (e) => /* @__PURE__ */ b.createElement(X, {
1903
+ }, l);
1904
+ }, (e) => /* @__PURE__ */ m.createElement(X, {
1907
1905
  dependencies: e.dependencies,
1908
1906
  items: e.columns
1909
1907
  }, e.children));
1910
- function Ml({ item: e }) {
1911
- let t = P(null), l = C(F), { isVirtualized: o, CollectionBranch: n } = C(K), { rowProps: r } = yl({
1908
+ function Mt({ item: e }) {
1909
+ let n = P(null), t = C(F), { isVirtualized: l, CollectionBranch: u } = C(K), { rowProps: r } = vt({
1912
1910
  node: e,
1913
- isVirtualized: o
1914
- }, l, t), { checkboxProps: i } = Cl(l), c = B("tr");
1915
- return /* @__PURE__ */ b.createElement(c, {
1911
+ isVirtualized: l
1912
+ }, t, n), { checkboxProps: i } = kt(t), c = B("tr");
1913
+ return /* @__PURE__ */ m.createElement(c, {
1916
1914
  ...r,
1917
- ref: t
1918
- }, /* @__PURE__ */ b.createElement(le, {
1915
+ ref: n
1916
+ }, /* @__PURE__ */ m.createElement(ne, {
1919
1917
  values: [
1920
1918
  [
1921
1919
  ze,
@@ -1926,72 +1924,72 @@ function Ml({ item: e }) {
1926
1924
  }
1927
1925
  ]
1928
1926
  ]
1929
- }, /* @__PURE__ */ b.createElement(n, {
1930
- collection: l.collection,
1927
+ }, /* @__PURE__ */ m.createElement(u, {
1928
+ collection: t.collection,
1931
1929
  parent: e
1932
1930
  })));
1933
1931
  }
1934
- const Hl = /* @__PURE__ */ he("column", (e, t, l) => {
1935
- var o, n;
1936
- let r = _(t), i = C(F), { isVirtualized: c } = C(K), { columnHeaderProps: d } = bl({
1937
- node: l,
1932
+ const Ht = /* @__PURE__ */ he("column", (e, n, t) => {
1933
+ var l, u;
1934
+ let r = _(n), i = C(F), { isVirtualized: c } = C(K), { columnHeaderProps: d } = yt({
1935
+ node: t,
1938
1936
  isVirtualized: c
1939
- }, i, r), { isFocused: f, isFocusVisible: a, focusProps: u } = Q(), s = C(wt), p = !1;
1940
- if (s) p = s.resizingColumn === l.key;
1937
+ }, i, r), { isFocused: f, isFocusVisible: a, focusProps: o } = Q(), s = C(En), p = !1;
1938
+ if (s) p = s.resizingColumn === t.key;
1941
1939
  else
1942
- for (let v in [
1940
+ for (let b in [
1943
1941
  "width",
1944
1942
  "defaultWidth",
1945
1943
  "minWidth",
1946
1944
  "maxWidth"
1947
- ]) v in l.props && console.warn(`The ${v} 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.`);
1945
+ ]) b in t.props && console.warn(`The ${b} 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.`);
1948
1946
  let { hoverProps: h, isHovered: g } = te({
1949
1947
  isDisabled: !e.allowsSorting
1950
- }), $ = I({
1948
+ }), v = I({
1951
1949
  ...e,
1952
1950
  id: void 0,
1953
- children: l.rendered,
1951
+ children: t.rendered,
1954
1952
  defaultClassName: "react-aria-Column",
1955
1953
  values: {
1956
1954
  isHovered: g,
1957
1955
  isFocused: f,
1958
1956
  isFocusVisible: a,
1959
- allowsSorting: l.props.allowsSorting,
1960
- sortDirection: ((o = i.sortDescriptor) === null || o === void 0 ? void 0 : o.column) === l.key ? i.sortDescriptor.direction : void 0,
1957
+ allowsSorting: t.props.allowsSorting,
1958
+ sortDirection: ((l = i.sortDescriptor) === null || l === void 0 ? void 0 : l.column) === t.key ? i.sortDescriptor.direction : void 0,
1961
1959
  isResizing: p,
1962
1960
  startResize: () => {
1963
1961
  if (s)
1964
- s.startResize(l.key), i.setKeyboardNavigationDisabled(!0);
1962
+ s.startResize(t.key), i.setKeyboardNavigationDisabled(!0);
1965
1963
  else throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
1966
1964
  },
1967
- sort: (v) => {
1968
- i.sort(l.key, v);
1965
+ sort: (b) => {
1966
+ i.sort(t.key, b);
1969
1967
  }
1970
1968
  }
1971
- }), x = $.style;
1969
+ }), x = v.style;
1972
1970
  s && (x = {
1973
1971
  ...x,
1974
- width: s.getColumnWidth(l.key)
1972
+ width: s.getColumnWidth(t.key)
1975
1973
  });
1976
1974
  let D = B("th");
1977
- return /* @__PURE__ */ b.createElement(D, {
1978
- ...A(H(e), d, u, h),
1979
- ...$,
1975
+ return /* @__PURE__ */ m.createElement(D, {
1976
+ ...A(H(e), d, o, h),
1977
+ ...v,
1980
1978
  style: x,
1981
- colSpan: l.colspan,
1979
+ colSpan: t.colspan,
1982
1980
  ref: r,
1983
1981
  "data-hovered": g || void 0,
1984
1982
  "data-focused": f || void 0,
1985
1983
  "data-focus-visible": a || void 0,
1986
1984
  "data-resizing": p || void 0,
1987
- "data-allows-sorting": l.props.allowsSorting || void 0,
1988
- "data-sort-direction": ((n = i.sortDescriptor) === null || n === void 0 ? void 0 : n.column) === l.key ? i.sortDescriptor.direction : void 0
1989
- }, /* @__PURE__ */ b.createElement(le, {
1985
+ "data-allows-sorting": t.props.allowsSorting || void 0,
1986
+ "data-sort-direction": ((u = i.sortDescriptor) === null || u === void 0 ? void 0 : u.column) === t.key ? i.sortDescriptor.direction : void 0
1987
+ }, /* @__PURE__ */ m.createElement(ne, {
1990
1988
  values: [
1991
1989
  [
1992
- Vl,
1990
+ Vt,
1993
1991
  {
1994
- column: l,
1992
+ column: t,
1995
1993
  triggerRef: r
1996
1994
  }
1997
1995
  ],
@@ -2000,142 +1998,142 @@ const Hl = /* @__PURE__ */ he("column", (e, t, l) => {
2000
1998
  Be
2001
1999
  ]
2002
2000
  ]
2003
- }, $.children));
2004
- }), Vl = /* @__PURE__ */ Y(null), Bo = /* @__PURE__ */ pe("tablebody", (e, t) => {
2005
- let l = C(F), { isVirtualized: o } = C(K), n = l.collection, { CollectionBranch: r } = C(K), { dragAndDropHooks: i, dropState: c } = C(L), d = !!(i != null && i.useDroppableCollectionState) && !(c != null && c.isDisabled);
2001
+ }, v.children));
2002
+ }), Vt = /* @__PURE__ */ Y(null), zl = /* @__PURE__ */ pe("tablebody", (e, n) => {
2003
+ let t = C(F), { isVirtualized: l } = C(K), u = t.collection, { CollectionBranch: r } = C(K), { dragAndDropHooks: i, dropState: c } = C(L), d = !!(i != null && i.useDroppableCollectionState) && !(c != null && c.isDisabled);
2006
2004
  var f;
2007
- let u = {
2005
+ let o = {
2008
2006
  isDropTarget: d && !!c && ((f = c.isDropTarget({
2009
2007
  type: "root"
2010
2008
  })) !== null && f !== void 0 ? f : !1),
2011
- isEmpty: n.size === 0
2009
+ isEmpty: u.size === 0
2012
2010
  }, s = I({
2013
2011
  ...e,
2014
2012
  id: void 0,
2015
2013
  children: void 0,
2016
2014
  defaultClassName: "react-aria-TableBody",
2017
- values: u
2018
- }), p, h = B("tr"), g = B("td"), $ = n.columnCount;
2019
- if (n.size === 0 && e.renderEmptyState && l) {
2020
- let v = {}, y = {}, m = {};
2021
- o ? (v["aria-rowindex"] = n.headerRows.length + 1, y["aria-colspan"] = $, m = {
2015
+ values: o
2016
+ }), p, h = B("tr"), g = B("td"), v = u.columnCount;
2017
+ if (u.size === 0 && e.renderEmptyState && t) {
2018
+ let b = {}, $ = {}, y = {};
2019
+ l ? (b["aria-rowindex"] = u.headerRows.length + 1, $["aria-colspan"] = v, y = {
2022
2020
  display: "contents"
2023
- }) : y.colSpan = $, p = /* @__PURE__ */ b.createElement(h, {
2021
+ }) : $.colSpan = v, p = /* @__PURE__ */ m.createElement(h, {
2024
2022
  role: "row",
2025
- ...v,
2026
- style: m
2027
- }, /* @__PURE__ */ b.createElement(g, {
2023
+ ...b,
2024
+ style: y
2025
+ }, /* @__PURE__ */ m.createElement(g, {
2028
2026
  role: "rowheader",
2029
- ...y,
2030
- style: m
2031
- }, e.renderEmptyState(u)));
2027
+ ...$,
2028
+ style: y
2029
+ }, e.renderEmptyState(o)));
2032
2030
  }
2033
- let { rowGroupProps: x } = Dt(), D = B("tbody");
2034
- return /* @__PURE__ */ b.createElement(D, {
2031
+ let { rowGroupProps: x } = Cn(), D = B("tbody");
2032
+ return /* @__PURE__ */ m.createElement(D, {
2035
2033
  ...A(H(e), x),
2036
2034
  ...s,
2037
- ref: t,
2038
- "data-empty": n.size === 0 || void 0
2039
- }, d && /* @__PURE__ */ b.createElement(Ul, null), /* @__PURE__ */ b.createElement(r, {
2040
- collection: n,
2041
- parent: n.body,
2042
- renderDropIndicator: Ot(i, c)
2035
+ ref: n,
2036
+ "data-empty": u.size === 0 || void 0
2037
+ }, d && /* @__PURE__ */ m.createElement(Ut, null), /* @__PURE__ */ m.createElement(r, {
2038
+ collection: u,
2039
+ parent: u.body,
2040
+ renderDropIndicator: On(i, c)
2043
2041
  }), p);
2044
- }), Tl = /* @__PURE__ */ pe("item", (e, t, l) => {
2045
- let o = _(t), n = C(F), { dragAndDropHooks: r, dragState: i, dropState: c } = C(L), { isVirtualized: d, CollectionBranch: f } = C(K), { rowProps: a, ...u } = ml({
2046
- node: l,
2042
+ }), Tt = /* @__PURE__ */ pe("item", (e, n, t) => {
2043
+ let l = _(n), u = C(F), { dragAndDropHooks: r, dragState: i, dropState: c } = C(L), { isVirtualized: d, CollectionBranch: f } = C(K), { rowProps: a, ...o } = $t({
2044
+ node: t,
2047
2045
  shouldSelectOnPressUp: !!i,
2048
2046
  isVirtualized: d
2049
- }, n, o), { isFocused: s, isFocusVisible: p, focusProps: h } = Q(), { isFocusVisible: g, focusProps: $ } = Q({
2047
+ }, u, l), { isFocused: s, isFocusVisible: p, focusProps: h } = Q(), { isFocusVisible: g, focusProps: v } = Q({
2050
2048
  within: !0
2051
2049
  }), { hoverProps: x, isHovered: D } = te({
2052
- isDisabled: !u.allowsSelection && !u.hasAction,
2050
+ isDisabled: !o.allowsSelection && !o.hasAction,
2053
2051
  onHoverStart: e.onHoverStart,
2054
2052
  onHoverChange: e.onHoverChange,
2055
2053
  onHoverEnd: e.onHoverEnd
2056
- }), { checkboxProps: v } = Dl({
2057
- key: l.key
2058
- }, n), y;
2059
- i && r && (y = r.useDraggableItem({
2060
- key: l.key,
2054
+ }), { checkboxProps: b } = Ct({
2055
+ key: t.key
2056
+ }, u), $;
2057
+ i && r && ($ = r.useDraggableItem({
2058
+ key: t.key,
2061
2059
  hasDragButton: !0
2062
2060
  }, i));
2063
- let m, E = P(null), { visuallyHiddenProps: S } = ve();
2064
- c && r && (m = r.useDropIndicator({
2061
+ let y, E = P(null), { visuallyHiddenProps: S } = be();
2062
+ c && r && (y = r.useDropIndicator({
2065
2063
  target: {
2066
2064
  type: "item",
2067
- key: l.key,
2065
+ key: t.key,
2068
2066
  dropPosition: "on"
2069
2067
  }
2070
2068
  }, c, E));
2071
2069
  let N = P(null);
2072
- oe(() => {
2070
+ le(() => {
2073
2071
  i && !N.current && console.warn('Draggable items in a Table must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.');
2074
2072
  }, []);
2075
- let R = i && i.isDragging(l.key), { children: k, ...q } = e, Z = I({
2073
+ let R = i && i.isDragging(t.key), { children: k, ...q } = e, Z = I({
2076
2074
  ...q,
2077
2075
  id: void 0,
2078
2076
  defaultClassName: "react-aria-Row",
2079
2077
  values: {
2080
- ...u,
2078
+ ...o,
2081
2079
  isHovered: D,
2082
2080
  isFocused: s,
2083
2081
  isFocusVisible: p,
2084
- selectionMode: n.selectionManager.selectionMode,
2085
- selectionBehavior: n.selectionManager.selectionBehavior,
2082
+ selectionMode: u.selectionManager.selectionMode,
2083
+ selectionBehavior: u.selectionManager.selectionBehavior,
2086
2084
  isDragging: R,
2087
- isDropTarget: m == null ? void 0 : m.isDropTarget,
2085
+ isDropTarget: y == null ? void 0 : y.isDropTarget,
2088
2086
  isFocusVisibleWithin: g
2089
2087
  }
2090
2088
  }), J = B("tr"), ie = B("td");
2091
- return /* @__PURE__ */ b.createElement(b.Fragment, null, m && !m.isHidden && /* @__PURE__ */ b.createElement(J, {
2089
+ return /* @__PURE__ */ m.createElement(m.Fragment, null, y && !y.isHidden && /* @__PURE__ */ m.createElement(J, {
2092
2090
  role: "row",
2093
2091
  style: {
2094
2092
  height: 0
2095
2093
  }
2096
- }, /* @__PURE__ */ b.createElement(ie, {
2094
+ }, /* @__PURE__ */ m.createElement(ie, {
2097
2095
  role: "gridcell",
2098
- colSpan: n.collection.columnCount,
2096
+ colSpan: u.collection.columnCount,
2099
2097
  style: {
2100
2098
  padding: 0
2101
2099
  }
2102
- }, /* @__PURE__ */ b.createElement("div", {
2100
+ }, /* @__PURE__ */ m.createElement("div", {
2103
2101
  role: "button",
2104
2102
  ...S,
2105
- ...m.dropIndicatorProps,
2103
+ ...y.dropIndicatorProps,
2106
2104
  ref: E
2107
- }))), /* @__PURE__ */ b.createElement(J, {
2108
- ...A(H(e), a, h, x, y == null ? void 0 : y.dragProps, $),
2105
+ }))), /* @__PURE__ */ m.createElement(J, {
2106
+ ...A(H(e), a, h, x, $ == null ? void 0 : $.dragProps, v),
2109
2107
  ...Z,
2110
- ref: o,
2111
- "data-disabled": u.isDisabled || void 0,
2112
- "data-selected": u.isSelected || void 0,
2108
+ ref: l,
2109
+ "data-disabled": o.isDisabled || void 0,
2110
+ "data-selected": o.isSelected || void 0,
2113
2111
  "data-hovered": D || void 0,
2114
- "data-focused": u.isFocused || void 0,
2112
+ "data-focused": o.isFocused || void 0,
2115
2113
  "data-focus-visible": p || void 0,
2116
- "data-pressed": u.isPressed || void 0,
2114
+ "data-pressed": o.isPressed || void 0,
2117
2115
  "data-dragging": R || void 0,
2118
- "data-drop-target": (m == null ? void 0 : m.isDropTarget) || void 0,
2119
- "data-selection-mode": n.selectionManager.selectionMode === "none" ? void 0 : n.selectionManager.selectionMode,
2116
+ "data-drop-target": (y == null ? void 0 : y.isDropTarget) || void 0,
2117
+ "data-selection-mode": u.selectionManager.selectionMode === "none" ? void 0 : u.selectionManager.selectionMode,
2120
2118
  "data-focus-visible-within": g || void 0
2121
- }, /* @__PURE__ */ b.createElement(le, {
2119
+ }, /* @__PURE__ */ m.createElement(ne, {
2122
2120
  values: [
2123
2121
  [
2124
2122
  ze,
2125
2123
  {
2126
2124
  slots: {
2127
2125
  [Ce]: {},
2128
- selection: v
2126
+ selection: b
2129
2127
  }
2130
2128
  }
2131
2129
  ],
2132
2130
  [
2133
- Kt,
2131
+ Pn,
2134
2132
  {
2135
2133
  slots: {
2136
2134
  [Ce]: {},
2137
2135
  drag: {
2138
- ...y == null ? void 0 : y.dragButtonProps,
2136
+ ...$ == null ? void 0 : $.dragButtonProps,
2139
2137
  ref: N,
2140
2138
  style: {
2141
2139
  pointerEvents: "none"
@@ -2145,28 +2143,28 @@ const Hl = /* @__PURE__ */ he("column", (e, t, l) => {
2145
2143
  }
2146
2144
  ]
2147
2145
  ]
2148
- }, /* @__PURE__ */ b.createElement(f, {
2149
- collection: n.collection,
2150
- parent: l
2146
+ }, /* @__PURE__ */ m.createElement(f, {
2147
+ collection: u.collection,
2148
+ parent: t
2151
2149
  }))));
2152
2150
  }, (e) => {
2153
2151
  if (e.id == null && typeof e.children == "function") throw new Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");
2154
- let t = [
2152
+ let n = [
2155
2153
  e.value
2156
2154
  ].concat(e.dependencies);
2157
- return /* @__PURE__ */ b.createElement(X, {
2158
- dependencies: t,
2155
+ return /* @__PURE__ */ m.createElement(X, {
2156
+ dependencies: n,
2159
2157
  items: e.columns,
2160
2158
  idScope: e.id
2161
2159
  }, e.children);
2162
- }), jl = /* @__PURE__ */ he("cell", (e, t, l) => {
2163
- let o = _(t), n = C(F), { dragState: r } = C(L), { isVirtualized: i } = C(K);
2164
- l.column = n.collection.columns[l.index];
2165
- let { gridCellProps: c, isPressed: d } = $l({
2166
- node: l,
2160
+ }), jt = /* @__PURE__ */ he("cell", (e, n, t) => {
2161
+ let l = _(n), u = C(F), { dragState: r } = C(L), { isVirtualized: i } = C(K);
2162
+ t.column = u.collection.columns[t.index];
2163
+ let { gridCellProps: c, isPressed: d } = xt({
2164
+ node: t,
2167
2165
  shouldSelectOnPressUp: !!r,
2168
2166
  isVirtualized: i
2169
- }, n, o), { isFocused: f, isFocusVisible: a, focusProps: u } = Q(), { hoverProps: s, isHovered: p } = te({}), h = I({
2167
+ }, u, l), { isFocused: f, isFocusVisible: a, focusProps: o } = Q(), { hoverProps: s, isHovered: p } = te({}), h = I({
2170
2168
  ...e,
2171
2169
  id: void 0,
2172
2170
  defaultClassName: "react-aria-Cell",
@@ -2177,195 +2175,195 @@ const Hl = /* @__PURE__ */ he("column", (e, t, l) => {
2177
2175
  isHovered: p
2178
2176
  }
2179
2177
  }), g = B("td");
2180
- return /* @__PURE__ */ b.createElement(g, {
2181
- ...A(H(e), c, u, s),
2178
+ return /* @__PURE__ */ m.createElement(g, {
2179
+ ...A(H(e), c, o, s),
2182
2180
  ...h,
2183
- ref: o,
2181
+ ref: l,
2184
2182
  "data-focused": f || void 0,
2185
2183
  "data-focus-visible": a || void 0,
2186
2184
  "data-pressed": d || void 0
2187
- }, /* @__PURE__ */ b.createElement(K.Provider, {
2185
+ }, /* @__PURE__ */ m.createElement(K.Provider, {
2188
2186
  value: Be
2189
2187
  }, h.children));
2190
2188
  });
2191
- function Il(e, t) {
2192
- t = _(t);
2193
- let { dragAndDropHooks: l, dropState: o } = C(L), n = P(null), { dropIndicatorProps: r, isHidden: i, isDropTarget: c } = l.useDropIndicator(e, o, n);
2194
- return i ? null : /* @__PURE__ */ b.createElement(Wl, {
2189
+ function It(e, n) {
2190
+ n = _(n);
2191
+ let { dragAndDropHooks: t, dropState: l } = C(L), u = P(null), { dropIndicatorProps: r, isHidden: i, isDropTarget: c } = t.useDropIndicator(e, l, u);
2192
+ return i ? null : /* @__PURE__ */ m.createElement(Ot, {
2195
2193
  ...e,
2196
2194
  dropIndicatorProps: r,
2197
2195
  isDropTarget: c,
2198
- buttonRef: n,
2199
- ref: t
2196
+ buttonRef: u,
2197
+ ref: n
2200
2198
  });
2201
2199
  }
2202
- function Ol(e, t) {
2203
- let { dropIndicatorProps: l, isDropTarget: o, buttonRef: n, ...r } = e, i = C(F), { visuallyHiddenProps: c } = ve(), d = I({
2200
+ function Wt(e, n) {
2201
+ let { dropIndicatorProps: t, isDropTarget: l, buttonRef: u, ...r } = e, i = C(F), { visuallyHiddenProps: c } = be(), d = I({
2204
2202
  ...r,
2205
2203
  defaultClassName: "react-aria-DropIndicator",
2206
2204
  values: {
2207
- isDropTarget: o
2205
+ isDropTarget: l
2208
2206
  }
2209
2207
  }), f = B("tr"), a = B("td");
2210
- return /* @__PURE__ */ b.createElement(f, {
2208
+ return /* @__PURE__ */ m.createElement(f, {
2211
2209
  ...H(e),
2212
2210
  ...d,
2213
2211
  role: "row",
2214
- ref: t,
2215
- "data-drop-target": o || void 0
2216
- }, /* @__PURE__ */ b.createElement(a, {
2212
+ ref: n,
2213
+ "data-drop-target": l || void 0
2214
+ }, /* @__PURE__ */ m.createElement(a, {
2217
2215
  role: "gridcell",
2218
2216
  colSpan: i.collection.columnCount,
2219
2217
  style: {
2220
2218
  padding: 0
2221
2219
  }
2222
- }, /* @__PURE__ */ b.createElement("div", {
2220
+ }, /* @__PURE__ */ m.createElement("div", {
2223
2221
  ...c,
2224
2222
  role: "button",
2225
- ...l,
2226
- ref: n
2223
+ ...t,
2224
+ ref: u
2227
2225
  }), d.children));
2228
2226
  }
2229
- const Wl = /* @__PURE__ */ Fe(Ol);
2230
- function Ul() {
2231
- let e = C(F), { dragAndDropHooks: t, dropState: l } = C(L), o = P(null), { dropIndicatorProps: n } = t.useDropIndicator({
2227
+ const Ot = /* @__PURE__ */ Fe(Wt);
2228
+ function Ut() {
2229
+ let e = C(F), { dragAndDropHooks: n, dropState: t } = C(L), l = P(null), { dropIndicatorProps: u } = n.useDropIndicator({
2232
2230
  target: {
2233
2231
  type: "root"
2234
2232
  }
2235
- }, l, o), r = l.isDropTarget({
2233
+ }, t, l), r = t.isDropTarget({
2236
2234
  type: "root"
2237
- }), { visuallyHiddenProps: i } = ve(), c = B("tr"), d = B("td");
2238
- return !r && n["aria-hidden"] ? null : /* @__PURE__ */ b.createElement(c, {
2235
+ }), { visuallyHiddenProps: i } = be(), c = B("tr"), d = B("td");
2236
+ return !r && u["aria-hidden"] ? null : /* @__PURE__ */ m.createElement(c, {
2239
2237
  role: "row",
2240
- "aria-hidden": n["aria-hidden"],
2238
+ "aria-hidden": u["aria-hidden"],
2241
2239
  style: {
2242
2240
  height: 0
2243
2241
  }
2244
- }, /* @__PURE__ */ b.createElement(d, {
2242
+ }, /* @__PURE__ */ m.createElement(d, {
2245
2243
  role: "gridcell",
2246
2244
  colSpan: e.collection.columnCount,
2247
2245
  style: {
2248
2246
  padding: 0
2249
2247
  }
2250
- }, /* @__PURE__ */ b.createElement("div", {
2248
+ }, /* @__PURE__ */ m.createElement("div", {
2251
2249
  role: "button",
2252
2250
  ...i,
2253
- ...n,
2254
- ref: o
2251
+ ...u,
2252
+ ref: l
2255
2253
  })));
2256
2254
  }
2257
- he("loader", function(t, l, o) {
2258
- let n = C(F), { isVirtualized: r } = C(K), i = n.collection.columns.length, c = I({
2259
- ...t,
2255
+ he("loader", function(n, t, l) {
2256
+ let u = C(F), { isVirtualized: r } = C(K), i = u.collection.columns.length, c = I({
2257
+ ...n,
2260
2258
  id: void 0,
2261
- children: o.rendered,
2259
+ children: l.rendered,
2262
2260
  defaultClassName: "react-aria-TableLoadingIndicator",
2263
2261
  values: null
2264
- }), d = B("tr"), f = B("td"), a = {}, u = {}, s = {};
2265
- return r ? (a["aria-rowindex"] = n.collection.headerRows.length + n.collection.size, u["aria-colspan"] = i, s = {
2262
+ }), d = B("tr"), f = B("td"), a = {}, o = {}, s = {};
2263
+ return r ? (a["aria-rowindex"] = u.collection.headerRows.length + u.collection.size, o["aria-colspan"] = i, s = {
2266
2264
  display: "contents"
2267
- }) : u.colSpan = i, /* @__PURE__ */ b.createElement(b.Fragment, null, /* @__PURE__ */ b.createElement(d, {
2265
+ }) : o.colSpan = i, /* @__PURE__ */ m.createElement(m.Fragment, null, /* @__PURE__ */ m.createElement(d, {
2268
2266
  role: "row",
2269
- ref: l,
2270
- ...A(H(t), a),
2267
+ ref: t,
2268
+ ...A(H(n), a),
2271
2269
  ...c
2272
- }, /* @__PURE__ */ b.createElement(f, {
2270
+ }, /* @__PURE__ */ m.createElement(f, {
2273
2271
  role: "rowheader",
2274
- ...u,
2272
+ ...o,
2275
2273
  style: s
2276
2274
  }, c.children)));
2277
2275
  });
2278
- const Gl = '"../theme/tokens.css"', Ll = '"Inter", sans-serif', Yl = "#f2f2f2", ql = "#d9d9d9", Zl = "#cccccc", Jl = "#b3b3b3", Ql = "500", Xl = "_cell_kfz7f_4", _l = "_table_kfz7f_10", eo = "_narrow_kfz7f_14", to = "_striped_kfz7f_29", lo = "_row_kfz7f_29", oo = "_tableHeader_kfz7f_44", no = "_column_kfz7f_48", W = {
2279
- tokens: Gl,
2280
- display: Ll,
2281
- gray10: Yl,
2282
- gray30: ql,
2283
- gray40: Zl,
2284
- gray60: Jl,
2285
- mediumWeight: Ql,
2286
- cell: Xl,
2287
- table: _l,
2288
- narrow: eo,
2289
- striped: to,
2290
- row: lo,
2291
- tableHeader: oo,
2292
- column: no
2293
- }, Ao = ({
2276
+ const Gt = '"../theme/tokens.css"', Lt = '"Inter", sans-serif', Yt = "#f2f2f2", qt = "#d9d9d9", Zt = "#cccccc", Jt = "#b3b3b3", Qt = "500", Xt = "_cell_kfz7f_4", _t = "_table_kfz7f_10", el = "_narrow_kfz7f_14", nl = "_striped_kfz7f_29", tl = "_row_kfz7f_29", ll = "_tableHeader_kfz7f_44", ul = "_column_kfz7f_48", O = {
2277
+ tokens: Gt,
2278
+ display: Lt,
2279
+ gray10: Yt,
2280
+ gray30: qt,
2281
+ gray40: Zt,
2282
+ gray60: Jt,
2283
+ mediumWeight: Qt,
2284
+ cell: Xt,
2285
+ table: _t,
2286
+ narrow: el,
2287
+ striped: nl,
2288
+ row: tl,
2289
+ tableHeader: ll,
2290
+ column: ul
2291
+ }, Bl = ({
2294
2292
  narrow: e,
2295
- striped: t,
2296
- ...l
2293
+ striped: n,
2294
+ ...t
2297
2295
  }) => {
2298
- const o = He(
2299
- W.table,
2300
- e && W.narrow,
2301
- t && W.striped
2296
+ const l = He(
2297
+ O.table,
2298
+ e && O.narrow,
2299
+ n && O.striped
2302
2300
  );
2303
2301
  return /* @__PURE__ */ z(
2304
- Nl,
2302
+ Ft,
2305
2303
  {
2306
- className: o,
2307
- ...l
2304
+ className: l,
2305
+ ...t
2308
2306
  }
2309
2307
  );
2310
- }, Ko = ({
2308
+ }, Al = ({
2311
2309
  columns: e,
2312
- children: t
2310
+ children: n
2313
2311
  }) => {
2314
- const { selectionBehavior: l, selectionMode: o, allowsDragging: n } = St();
2315
- return /* @__PURE__ */ fe(Rl, { className: W.tableHeader, children: [
2316
- n && /* @__PURE__ */ z(Ee, {}),
2317
- l === "toggle" && /* @__PURE__ */ z(Ee, { width: 50, children: o === "multiple" && /* @__PURE__ */ z(Me, { slot: "selection" }) }),
2318
- /* @__PURE__ */ z(X, { items: e, children: t })
2312
+ const { selectionBehavior: t, selectionMode: l, allowsDragging: u } = zn();
2313
+ return /* @__PURE__ */ fe(Rt, { className: O.tableHeader, children: [
2314
+ u && /* @__PURE__ */ z(Ee, {}),
2315
+ t === "toggle" && /* @__PURE__ */ z(Ee, { width: 50, children: l === "multiple" && /* @__PURE__ */ z(Me, { slot: "selection" }) }),
2316
+ /* @__PURE__ */ z(X, { items: e, children: n })
2319
2317
  ] });
2320
- }, Po = ({
2318
+ }, Kl = ({
2321
2319
  id: e,
2322
- columns: t,
2323
- children: l,
2324
- ...o
2320
+ columns: n,
2321
+ children: t,
2322
+ ...l
2325
2323
  }) => {
2326
- const { selectionBehavior: n, allowsDragging: r } = St();
2324
+ const { selectionBehavior: u, allowsDragging: r } = zn();
2327
2325
  return /* @__PURE__ */ fe(
2328
- Tl,
2326
+ Tt,
2329
2327
  {
2330
2328
  id: e,
2331
- className: He(W.row),
2332
- ...o,
2329
+ className: He(O.row),
2330
+ ...l,
2333
2331
  children: [
2334
- r && /* @__PURE__ */ z(Se, { children: /* @__PURE__ */ z(Pt, { slot: "drag", children: /* @__PURE__ */ z(il, { size: 20 }) }) }),
2335
- n === "toggle" && /* @__PURE__ */ z(Se, { children: /* @__PURE__ */ z(Me, { slot: "selection" }) }),
2336
- /* @__PURE__ */ z(X, { items: t, children: l })
2332
+ r && /* @__PURE__ */ z(Se, { children: /* @__PURE__ */ z(Fn, { slot: "drag", children: /* @__PURE__ */ z(ot, { size: 20 }) }) }),
2333
+ u === "toggle" && /* @__PURE__ */ z(Se, { children: /* @__PURE__ */ z(Me, { slot: "selection" }) }),
2334
+ /* @__PURE__ */ z(X, { items: n, children: t })
2337
2335
  ]
2338
2336
  }
2339
2337
  );
2340
- }, Ee = ({ children: e, ...t }) => /* @__PURE__ */ z(
2341
- Hl,
2338
+ }, Ee = ({ children: e, ...n }) => /* @__PURE__ */ z(
2339
+ Ht,
2342
2340
  {
2343
- className: W.column,
2344
- ...t,
2345
- children: ({ allowsSorting: l, sortDirection: o }) => /* @__PURE__ */ fe(Bt, { children: [
2341
+ className: O.column,
2342
+ ...n,
2343
+ children: ({ allowsSorting: t, sortDirection: l }) => /* @__PURE__ */ fe(An, { children: [
2346
2344
  e,
2347
- l && /* @__PURE__ */ z(
2345
+ t && /* @__PURE__ */ z(
2348
2346
  "span",
2349
2347
  {
2350
2348
  "aria-hidden": "true",
2351
2349
  className: "sort-indicator",
2352
- children: o === "ascending" ? /* @__PURE__ */ z(rl, { size: 20 }) : /* @__PURE__ */ z(nl, { size: 20 })
2350
+ children: l === "ascending" ? /* @__PURE__ */ z(it, { size: 20 }) : /* @__PURE__ */ z(rt, { size: 20 })
2353
2351
  }
2354
2352
  )
2355
2353
  ] })
2356
2354
  }
2357
2355
  ), Se = ({ ...e }) => /* @__PURE__ */ z(
2358
- jl,
2356
+ jt,
2359
2357
  {
2360
- className: W.cell,
2358
+ className: O.cell,
2361
2359
  ...e
2362
2360
  }
2363
2361
  );
2364
2362
  export {
2365
2363
  Se as Cell,
2366
2364
  Ee as Column,
2367
- Po as Row,
2368
- Ao as Table,
2369
- Bo as TableBody,
2370
- Ko as TableHeader
2365
+ Kl as Row,
2366
+ Bl as Table,
2367
+ zl as TableBody,
2368
+ Al as TableHeader
2371
2369
  };