@commercetools/nimbus 0.0.0-canary-20250826164027 → 0.0.0-canary-20250827101922

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.
@@ -1,50 +1,50 @@
1
- import { jsx as D, jsxs as ie, Fragment as yl } from "react/jsx-runtime";
2
- import k, { useRef as M, useMemo as N, useCallback as V, useEffect as se, useState as Z, forwardRef as X, createContext as de, useContext as R, Fragment as $l } from "react";
3
- import { $ as ct } from "./Button-C-yUWwZg.es.js";
4
- import { $ as ft } from "./RSPContexts-B4yvXuBR.es.js";
5
- import { m as I, w as oe, x as ne, y as ze, z as xl, l as wl, $ as pt, a as ht, c as Dl, b as Cl, e as We, d as mt, g as De, f as Sl, A as kl, h as Q, u as gt, B as El, C as tt, i as zl } from "./Collection-DFZhstai.es.js";
6
- import { $ as Rl, a as re, d as Ae, g as lt, f as Al } from "./utils-BkdW_cdL.es.js";
7
- import { $ as ge, a as Bl, b as Pl, c as Kl, d as No, e as To } from "./DragAndDrop-ChYb3tCX.es.js";
8
- import { $ as Ml } from "./intlStrings-Cd44R5hT.es.js";
9
- import { d as xe, a as Be, $ as H, e as Nl, c as nt } from "./mergeProps-B_9syxhT.es.js";
1
+ import { jsx as D, jsxs as oe, Fragment as $l } from "react/jsx-runtime";
2
+ import k, { useRef as M, useMemo as N, useCallback as j, useEffect as ue, useState as Z, forwardRef as X, createContext as se, useContext as A, Fragment as xl } from "react";
3
+ import { $ as ft } from "./Button-C-yUWwZg.es.js";
4
+ import { $ as pt } from "./RSPContexts-B4yvXuBR.es.js";
5
+ import { m as W, w as ne, x as le, y as ze, z as wl, l as Dl, $ as ht, a as mt, c as Cl, b as Sl, e as We, d as gt, g as De, f as kl, A as El, h as Q, u as bt, B as zl, C as lt, i as Rl } from "./Collection-DFZhstai.es.js";
6
+ import { $ as Al, a as ie, d as Ae, g as nt, f as Bl } from "./utils-BkdW_cdL.es.js";
7
+ import { $ as me, a as Pl, b as Kl, c as Ml, d as To, e as Fo } from "./DragAndDrop-ChYb3tCX.es.js";
8
+ import { $ as Nl } from "./intlStrings-Cd44R5hT.es.js";
9
+ import { d as xe, a as Be, $ as H, e as Tl, c as ot } from "./mergeProps-B_9syxhT.es.js";
10
10
  import { $ as J } from "./filterDOMProps-BSVCO5jK.es.js";
11
- import { $ as ce } from "./useObjectRef-CaJ5pgjX.es.js";
12
- import { a as Tl } from "./OverlayArrow-ERS8ZqL3.es.js";
13
- import { c as fe, $ as pe, a as He, d as Fl } from "./scrollIntoView-BYF_8_6g.es.js";
14
- import Il from "react-dom";
11
+ import { $ as de } from "./useObjectRef-CaJ5pgjX.es.js";
12
+ import { a as Fl } from "./OverlayArrow-ERS8ZqL3.es.js";
13
+ import { c as ce, $ as fe, a as He, d as Il } from "./scrollIntoView-BYF_8_6g.es.js";
14
+ import Wl from "react-dom";
15
15
  import { $ as Ce } from "./useHover-cJOf02TT.es.js";
16
- import { d as ot } from "./platform-Z5fvtFmM.es.js";
17
- import { a as Wl, b as Hl, $ as bt } from "./usePress-BquTSwUd.es.js";
18
- import { $ as Vl, c as jl } from "./useFocusable-BghVNiQU.es.js";
19
- import { $ as Ol, f as Ll } from "./useFocusVisible-C5ivHvqm.es.js";
16
+ import { d as it } from "./platform-Z5fvtFmM.es.js";
17
+ import { a as Hl, b as Vl, $ as vt } from "./usePress-BquTSwUd.es.js";
18
+ import { $ as jl, c as Ol } from "./useFocusable-BghVNiQU.es.js";
19
+ import { $ as Ll, f as Ul } from "./useFocusVisible-C5ivHvqm.es.js";
20
20
  import { $ as q } from "./focusSafely-Di2ArC9L.es.js";
21
- import { b as it, a as Ul } from "./FocusScope-C1Aw7j9H.es.js";
22
- import { $ as be } from "./context-Pt-0ojuK.es.js";
23
- import { $ as ve } from "./useLocalizedStringFormatter-CvzOUusg.es.js";
24
- import { $ as me } from "./useFocusRing-D8cwV0EM.es.js";
25
- import { $ as Yl } from "./useGlobalListeners-BOOfV5Wh.es.js";
26
- import { a as Pe, $ as rt } from "./VisuallyHidden-C38kRNm0.es.js";
27
- import { e as Xl } from "./openLink-Ctl0AdAy.es.js";
21
+ import { b as rt, a as Yl } from "./FocusScope-C1Aw7j9H.es.js";
22
+ import { $ as ge } from "./context-Pt-0ojuK.es.js";
23
+ import { $ as be } from "./useLocalizedStringFormatter-CvzOUusg.es.js";
24
+ import { $ as he } from "./useFocusRing-D8cwV0EM.es.js";
25
+ import { $ as Xl } from "./useGlobalListeners-BOOfV5Wh.es.js";
26
+ import { a as Pe, $ as at } from "./VisuallyHidden-C38kRNm0.es.js";
27
+ import { e as Gl } from "./openLink-Ctl0AdAy.es.js";
28
28
  import { m as Re } from "./utils-Gg3iiYhl.es.js";
29
- import { $ as Gl, a as ql, b as Zl, c as Ql } from "./useHighlightSelectionDescription-DAR8wV79.es.js";
30
- import { $ as Jl } from "./LiveAnnouncer-CsPyaceH.es.js";
31
- import { $ as vt } from "./useCollator-BvjDbml1.es.js";
32
- import { $ as _l } from "./useUpdateEffect-CCDx8D4X.es.js";
29
+ import { $ as ql, a as Zl, b as Ql, c as Jl } from "./useHighlightSelectionDescription-DAR8wV79.es.js";
30
+ import { $ as _l } from "./LiveAnnouncer-CsPyaceH.es.js";
31
+ import { $ as yt } from "./useCollator-BvjDbml1.es.js";
32
+ import { $ as en } from "./useUpdateEffect-CCDx8D4X.es.js";
33
33
  import { B as we } from "./box-C8731OYq.es.js";
34
- import { defineSlotRecipe as en, createSlotRecipeContext as tn, mergeRefs as ln } from "@chakra-ui/react";
35
- import { I as nn } from "./icon-button-O_dSWgZr.es.js";
36
- import { b as at } from "./tooltip-BOK0Uejw.es.js";
37
- import { C as yt } from "./checkbox-VN2y-Prn.es.js";
38
- import { KeyboardArrowDown as on, KeyboardArrowRight as rn, PushPin as an, ArrowDownward as un } from "@commercetools/nimbus-icons";
39
- import { c as sn } from "./create-recipe-context-i2odau3L.es.js";
40
- import { D as dn } from "./divider-CpctZ_-U.es.js";
41
- import { F as cn } from "./flex-B81RbgfK.es.js";
42
- function fn(t) {
34
+ import { defineSlotRecipe as tn, createSlotRecipeContext as ln, mergeRefs as nn } from "@chakra-ui/react";
35
+ import { I as on } from "./icon-button-O_dSWgZr.es.js";
36
+ import { b as ut } from "./tooltip-BOK0Uejw.es.js";
37
+ import { C as $t } from "./checkbox-VN2y-Prn.es.js";
38
+ import { KeyboardArrowDown as rn, KeyboardArrowRight as an, PushPin as un, ArrowDownward as sn } from "@commercetools/nimbus-icons";
39
+ import { c as dn } from "./create-recipe-context-i2odau3L.es.js";
40
+ import { D as cn } from "./divider-CpctZ_-U.es.js";
41
+ import { F as fn } from "./flex-B81RbgfK.es.js";
42
+ function pn(t) {
43
43
  let { onMoveStart: e, onMove: l, onMoveEnd: n } = t, o = M({
44
44
  didMove: !1,
45
45
  lastPosition: null,
46
46
  id: null
47
- }), { addGlobalListener: i, removeGlobalListener: r } = Yl(), u = xe((d, s, p, f) => {
47
+ }), { addGlobalListener: i, removeGlobalListener: r } = Xl(), u = xe((d, s, p, f) => {
48
48
  p === 0 && f === 0 || (o.current.didMove || (o.current.didMove = !0, e?.({
49
49
  type: "movestart",
50
50
  pointerType: s,
@@ -63,7 +63,7 @@ function fn(t) {
63
63
  altKey: d.altKey
64
64
  }));
65
65
  }), c = xe((d, s) => {
66
- Wl(), o.current.didMove && n?.({
66
+ Hl(), o.current.didMove && n?.({
67
67
  type: "moveend",
68
68
  pointerType: s,
69
69
  shiftKey: d.shiftKey,
@@ -75,7 +75,7 @@ function fn(t) {
75
75
  return {
76
76
  moveProps: N(() => {
77
77
  let d = {}, s = () => {
78
- Hl(), o.current.didMove = !1;
78
+ Vl(), o.current.didMove = !1;
79
79
  };
80
80
  if (typeof PointerEvent > "u" && process.env.NODE_ENV === "test") {
81
81
  let f = (v) => {
@@ -98,13 +98,13 @@ function fn(t) {
98
98
  let g = (v) => {
99
99
  let x = [
100
100
  ...v.changedTouches
101
- ].findIndex(({ identifier: C }) => C === o.current.id);
101
+ ].findIndex(({ identifier: S }) => S === o.current.id);
102
102
  if (x >= 0) {
103
103
  var m, $;
104
- let { pageX: C, pageY: B } = v.changedTouches[x];
104
+ let { pageX: S, pageY: B } = v.changedTouches[x];
105
105
  var b, w;
106
- u(v, "touch", C - ((b = (m = o.current.lastPosition) === null || m === void 0 ? void 0 : m.pageX) !== null && b !== void 0 ? b : 0), B - ((w = ($ = o.current.lastPosition) === null || $ === void 0 ? void 0 : $.pageY) !== null && w !== void 0 ? w : 0)), o.current.lastPosition = {
107
- pageX: C,
106
+ u(v, "touch", S - ((b = (m = o.current.lastPosition) === null || m === void 0 ? void 0 : m.pageX) !== null && b !== void 0 ? b : 0), B - ((w = ($ = o.current.lastPosition) === null || $ === void 0 ? void 0 : $.pageY) !== null && w !== void 0 ? w : 0)), o.current.lastPosition = {
107
+ pageX: S,
108
108
  pageY: B
109
109
  };
110
110
  }
@@ -177,7 +177,7 @@ function fn(t) {
177
177
  ])
178
178
  };
179
179
  }
180
- class $t {
180
+ class xt {
181
181
  isCell(e) {
182
182
  return e.type === "cell";
183
183
  }
@@ -213,7 +213,7 @@ class $t {
213
213
  let n = this.collection.getItem(e);
214
214
  if (!n) return null;
215
215
  let o = 0;
216
- for (let u of I(n, this.collection)) {
216
+ for (let u of W(n, this.collection)) {
217
217
  var i;
218
218
  if (u.colSpan && u.colSpan + o > l) return (i = u.key) !== null && i !== void 0 ? i : null;
219
219
  u.colSpan && (o = o + u.colSpan - 1);
@@ -256,14 +256,14 @@ class $t {
256
256
  if (!l) return null;
257
257
  if (this.isRow(l)) {
258
258
  var n, o;
259
- let d = I(l, this.collection);
259
+ let d = W(l, this.collection);
260
260
  var i;
261
- return (i = this.direction === "rtl" ? (n = oe(d)) === null || n === void 0 ? void 0 : n.key : (o = ne(d)) === null || o === void 0 ? void 0 : o.key) !== null && i !== void 0 ? i : null;
261
+ return (i = this.direction === "rtl" ? (n = ne(d)) === null || n === void 0 ? void 0 : n.key : (o = le(d)) === null || o === void 0 ? void 0 : o.key) !== null && i !== void 0 ? i : null;
262
262
  }
263
263
  if (this.isCell(l) && l.parentKey != null) {
264
264
  let d = this.collection.getItem(l.parentKey);
265
265
  if (!d) return null;
266
- let s = I(d, this.collection);
266
+ let s = W(d, this.collection);
267
267
  var r;
268
268
  let p = (r = this.direction === "rtl" ? ze(s, l.index - 1) : ze(s, l.index + 1)) !== null && r !== void 0 ? r : null;
269
269
  var u;
@@ -280,14 +280,14 @@ class $t {
280
280
  if (!l) return null;
281
281
  if (this.isRow(l)) {
282
282
  var n, o;
283
- let d = I(l, this.collection);
283
+ let d = W(l, this.collection);
284
284
  var i;
285
- return (i = this.direction === "rtl" ? (n = ne(d)) === null || n === void 0 ? void 0 : n.key : (o = oe(d)) === null || o === void 0 ? void 0 : o.key) !== null && i !== void 0 ? i : null;
285
+ return (i = this.direction === "rtl" ? (n = le(d)) === null || n === void 0 ? void 0 : n.key : (o = ne(d)) === null || o === void 0 ? void 0 : o.key) !== null && i !== void 0 ? i : null;
286
286
  }
287
287
  if (this.isCell(l) && l.parentKey != null) {
288
288
  let d = this.collection.getItem(l.parentKey);
289
289
  if (!d) return null;
290
- let s = I(d, this.collection);
290
+ let s = W(d, this.collection);
291
291
  var r;
292
292
  let p = (r = this.direction === "rtl" ? ze(s, l.index + 1) : ze(s, l.index - 1)) !== null && r !== void 0 ? r : null;
293
293
  var u;
@@ -308,7 +308,7 @@ class $t {
308
308
  let a = this.collection.getItem(o.parentKey);
309
309
  if (!a) return null;
310
310
  var r;
311
- return (r = (i = ne(I(a, this.collection))) === null || i === void 0 ? void 0 : i.key) !== null && r !== void 0 ? r : null;
311
+ return (r = (i = le(W(a, this.collection))) === null || i === void 0 ? void 0 : i.key) !== null && r !== void 0 ? r : null;
312
312
  }
313
313
  }
314
314
  if (n = this.findNextKey(void 0, (a) => a.type === "item"), n != null && (o && this.isCell(o) && l || this.focusMode === "cell")) {
@@ -316,7 +316,7 @@ class $t {
316
316
  let a = this.collection.getItem(n);
317
317
  if (!a) return null;
318
318
  var c;
319
- n = (c = (u = ne(I(a, this.collection))) === null || u === void 0 ? void 0 : u.key) !== null && c !== void 0 ? c : null;
319
+ n = (c = (u = le(W(a, this.collection))) === null || u === void 0 ? void 0 : u.key) !== null && c !== void 0 ? c : null;
320
320
  }
321
321
  return n;
322
322
  }
@@ -328,18 +328,18 @@ class $t {
328
328
  var i;
329
329
  let a = this.collection.getItem(o.parentKey);
330
330
  if (!a) return null;
331
- let d = I(a, this.collection);
331
+ let d = W(a, this.collection);
332
332
  var r;
333
- return (r = (i = oe(d)) === null || i === void 0 ? void 0 : i.key) !== null && r !== void 0 ? r : null;
333
+ return (r = (i = ne(d)) === null || i === void 0 ? void 0 : i.key) !== null && r !== void 0 ? r : null;
334
334
  }
335
335
  }
336
336
  if (n = this.findPreviousKey(void 0, (a) => a.type === "item"), n != null && (o && this.isCell(o) && l || this.focusMode === "cell")) {
337
337
  var u;
338
338
  let a = this.collection.getItem(n);
339
339
  if (!a) return null;
340
- let d = I(a, this.collection);
340
+ let d = W(a, this.collection);
341
341
  var c;
342
- n = (c = (u = oe(d)) === null || u === void 0 ? void 0 : u.key) !== null && c !== void 0 ? c : null;
342
+ n = (c = (u = ne(d)) === null || u === void 0 ? void 0 : u.key) !== null && c !== void 0 ? c : null;
343
343
  }
344
344
  return n;
345
345
  }
@@ -382,7 +382,7 @@ class $t {
382
382
  let s = d.textValue.slice(0, e.length);
383
383
  if (this.collator.compare(s, e) === 0) {
384
384
  var c, a;
385
- return this.isRow(d) && this.focusMode === "cell" ? (a = (c = ne(I(d, this.collection))) === null || c === void 0 ? void 0 : c.key) !== null && a !== void 0 ? a : null : d.key;
385
+ return this.isRow(d) && this.focusMode === "cell" ? (a = (c = le(W(d, this.collection))) === null || c === void 0 ? void 0 : c.key) !== null && a !== void 0 ? a : null : d.key;
386
386
  }
387
387
  }
388
388
  n = this.findNextKey(n, (s) => s.type === "item"), n == null && !u && (n = this.getFirstKey(), u = !0);
@@ -391,12 +391,12 @@ class $t {
391
391
  }
392
392
  constructor(e) {
393
393
  if (this.collection = e.collection, this.disabledKeys = e.disabledKeys, this.disabledBehavior = e.disabledBehavior || "all", this.direction = e.direction, this.collator = e.collator, !e.layout && !e.ref) throw new Error("Either a layout or a ref must be specified.");
394
- this.layoutDelegate = e.layoutDelegate || (e.layout ? new pn(e.layout) : new xl(e.ref));
394
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new hn(e.layout) : new wl(e.ref));
395
395
  var l;
396
396
  this.focusMode = (l = e.focusMode) !== null && l !== void 0 ? l : "row";
397
397
  }
398
398
  }
399
- class pn {
399
+ class hn {
400
400
  getContentSize() {
401
401
  return this.layout.getContentSize();
402
402
  }
@@ -412,13 +412,13 @@ class pn {
412
412
  }
413
413
  }
414
414
  const Ve = /* @__PURE__ */ new WeakMap();
415
- function hn(t, e, l) {
415
+ function mn(t, e, l) {
416
416
  let { isVirtualized: n, disallowTypeAhead: o, keyboardDelegate: i, focusMode: r, scrollRef: u, getRowText: c, onRowAction: a, onCellAction: d, escapeKeyBehavior: s = "clearSelection", shouldSelectOnPressUp: p } = t, { selectionManager: f } = e;
417
417
  !t["aria-label"] && !t["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
418
- let h = vt({
418
+ let h = yt({
419
419
  usage: "search",
420
420
  sensitivity: "base"
421
- }), { direction: g } = be(), y = e.selectionManager.disabledBehavior, v = N(() => i || new $t({
421
+ }), { direction: g } = ge(), y = e.selectionManager.disabledBehavior, v = N(() => i || new xt({
422
422
  collection: e.collection,
423
423
  disabledKeys: e.disabledKeys,
424
424
  disabledBehavior: y,
@@ -435,7 +435,7 @@ function hn(t, e, l) {
435
435
  g,
436
436
  h,
437
437
  r
438
- ]), { collectionProps: x } = wl({
438
+ ]), { collectionProps: x } = Dl({
439
439
  ref: l,
440
440
  selectionManager: f,
441
441
  keyboardDelegate: v,
@@ -452,12 +452,12 @@ function hn(t, e, l) {
452
452
  },
453
453
  shouldSelectOnPressUp: p
454
454
  });
455
- let $ = Gl({
455
+ let $ = ql({
456
456
  selectionManager: f,
457
457
  hasItemActions: !!(a || d)
458
458
  }), b = J(t, {
459
459
  labelable: !0
460
- }), w = V((E) => {
460
+ }), w = j((E) => {
461
461
  if (f.isFocused) {
462
462
  E.currentTarget.contains(E.target) || f.setFocused(!1);
463
463
  return;
@@ -465,13 +465,13 @@ function hn(t, e, l) {
465
465
  E.currentTarget.contains(E.target) && f.setFocused(!0);
466
466
  }, [
467
467
  f
468
- ]), C = N(() => ({
468
+ ]), S = N(() => ({
469
469
  onBlur: x.onBlur,
470
470
  onFocus: w
471
471
  }), [
472
472
  w,
473
473
  x.onBlur
474
- ]), B = ql(l, {
474
+ ]), B = Zl(l, {
475
475
  isDisabled: e.collection.size !== 0
476
476
  }), P = H(
477
477
  b,
@@ -480,38 +480,38 @@ function hn(t, e, l) {
480
480
  id: m,
481
481
  "aria-multiselectable": f.selectionMode === "multiple" ? "true" : void 0
482
482
  },
483
- e.isKeyboardNavigationDisabled ? C : x,
483
+ e.isKeyboardNavigationDisabled ? S : x,
484
484
  // If collection is empty, make sure the grid is tabbable unless there is a child tabbable element.
485
485
  e.collection.size === 0 && {
486
486
  tabIndex: B ? -1 : 0
487
487
  } || void 0,
488
488
  $
489
489
  );
490
- return n && (P["aria-rowcount"] = e.collection.size, P["aria-colcount"] = e.collection.columnCount), Zl({
490
+ return n && (P["aria-rowcount"] = e.collection.size, P["aria-colcount"] = e.collection.columnCount), Ql({
491
491
  getRowText: c
492
492
  }, e), {
493
493
  gridProps: P
494
494
  };
495
495
  }
496
- function mn() {
496
+ function gn() {
497
497
  return {
498
498
  rowGroupProps: {
499
499
  role: "rowgroup"
500
500
  }
501
501
  };
502
502
  }
503
- function gn(t, e, l) {
503
+ function bn(t, e, l) {
504
504
  var n, o;
505
505
  let { node: i, isVirtualized: r, shouldSelectOnPressUp: u, onAction: c } = t, { actions: a, shouldSelectOnPressUp: d } = Ve.get(e), s = a.onRowAction ? () => {
506
506
  var y;
507
507
  return (y = a.onRowAction) === null || y === void 0 ? void 0 : y.call(a, i.key);
508
- } : c, { itemProps: p, ...f } = pt({
508
+ } : c, { itemProps: p, ...f } = ht({
509
509
  selectionManager: e.selectionManager,
510
510
  key: i.key,
511
511
  ref: l,
512
512
  isVirtualized: r,
513
513
  shouldSelectOnPressUp: d || u,
514
- onAction: s || !(i == null || (n = i.props) === null || n === void 0) && n.onAction ? Nl(i == null || (o = i.props) === null || o === void 0 ? void 0 : o.onAction, s) : void 0,
514
+ onAction: s || !(i == null || (n = i.props) === null || n === void 0) && n.onAction ? Tl(i == null || (o = i.props) === null || o === void 0 ? void 0 : o.onAction, s) : void 0,
515
515
  isDisabled: e.collection.size === 0
516
516
  }), h = e.selectionManager.isSelected(i.key), g = {
517
517
  role: "row",
@@ -524,10 +524,10 @@ function gn(t, e, l) {
524
524
  ...f
525
525
  };
526
526
  }
527
- function xt(t, e, l) {
528
- let { node: n, isVirtualized: o, focusMode: i = "child", shouldSelectOnPressUp: r, onAction: u } = t, { direction: c } = be(), { keyboardDelegate: a, actions: { onCellAction: d } } = Ve.get(e), s = M(null), p = () => {
527
+ function wt(t, e, l) {
528
+ let { node: n, isVirtualized: o, focusMode: i = "child", shouldSelectOnPressUp: r, onAction: u } = t, { direction: c } = ge(), { keyboardDelegate: a, actions: { onCellAction: d } } = Ve.get(e), s = M(null), p = () => {
529
529
  if (l.current) {
530
- let m = it(l.current);
530
+ let m = rt(l.current);
531
531
  if (i === "child") {
532
532
  if (l.current.contains(document.activeElement) && l.current !== document.activeElement) return;
533
533
  let $ = e.selectionManager.childFocusStrategy === "last" ? Me(m) : m.firstChild();
@@ -538,7 +538,7 @@ function xt(t, e, l) {
538
538
  }
539
539
  (s.current != null && n.key !== s.current || !l.current.contains(document.activeElement)) && q(l.current);
540
540
  }
541
- }, { itemProps: f, isPressed: h } = pt({
541
+ }, { itemProps: f, isPressed: h } = ht({
542
542
  selectionManager: e.selectionManager,
543
543
  key: n.key,
544
544
  ref: l,
@@ -549,13 +549,13 @@ function xt(t, e, l) {
549
549
  isDisabled: e.collection.size === 0
550
550
  }), g = (m) => {
551
551
  if (!m.currentTarget.contains(m.target) || e.isKeyboardNavigationDisabled || !l.current || !document.activeElement) return;
552
- let $ = it(l.current);
552
+ let $ = rt(l.current);
553
553
  switch ($.currentNode = document.activeElement, m.key) {
554
554
  case "ArrowLeft": {
555
555
  let E = c === "rtl" ? $.nextNode() : $.previousNode();
556
556
  if (i === "child" && E === l.current && (E = null), m.preventDefault(), m.stopPropagation(), E)
557
- q(E), fe(E, {
558
- containingElement: pe(l.current)
557
+ q(E), ce(E, {
558
+ containingElement: fe(l.current)
559
559
  });
560
560
  else {
561
561
  var b;
@@ -564,10 +564,10 @@ function xt(t, e, l) {
564
564
  (w = l.current.parentElement) === null || w === void 0 || w.dispatchEvent(new KeyboardEvent(m.nativeEvent.type, m.nativeEvent));
565
565
  break;
566
566
  }
567
- i === "cell" && c === "rtl" ? (q(l.current), fe(l.current, {
568
- containingElement: pe(l.current)
569
- })) : ($.currentNode = l.current, E = c === "rtl" ? $.firstChild() : Me($), E && (q(E), fe(E, {
570
- containingElement: pe(l.current)
567
+ i === "cell" && c === "rtl" ? (q(l.current), ce(l.current, {
568
+ containingElement: fe(l.current)
569
+ })) : ($.currentNode = l.current, E = c === "rtl" ? $.firstChild() : Me($), E && (q(E), ce(E, {
570
+ containingElement: fe(l.current)
571
571
  })));
572
572
  }
573
573
  break;
@@ -575,20 +575,20 @@ function xt(t, e, l) {
575
575
  case "ArrowRight": {
576
576
  let E = c === "rtl" ? $.previousNode() : $.nextNode();
577
577
  if (i === "child" && E === l.current && (E = null), m.preventDefault(), m.stopPropagation(), E)
578
- q(E), fe(E, {
579
- containingElement: pe(l.current)
578
+ q(E), ce(E, {
579
+ containingElement: fe(l.current)
580
580
  });
581
581
  else {
582
- var C;
583
- if (((C = a.getKeyRightOf) === null || C === void 0 ? void 0 : C.call(a, n.key)) !== n.key) {
582
+ var S;
583
+ if (((S = a.getKeyRightOf) === null || S === void 0 ? void 0 : S.call(a, n.key)) !== n.key) {
584
584
  var B;
585
585
  (B = l.current.parentElement) === null || B === void 0 || B.dispatchEvent(new KeyboardEvent(m.nativeEvent.type, m.nativeEvent));
586
586
  break;
587
587
  }
588
- i === "cell" && c === "ltr" ? (q(l.current), fe(l.current, {
589
- containingElement: pe(l.current)
590
- })) : ($.currentNode = l.current, E = c === "rtl" ? Me($) : $.firstChild(), E && (q(E), fe(E, {
591
- containingElement: pe(l.current)
588
+ i === "cell" && c === "ltr" ? (q(l.current), ce(l.current, {
589
+ containingElement: fe(l.current)
590
+ })) : ($.currentNode = l.current, E = c === "rtl" ? Me($) : $.firstChild(), E && (q(E), ce(E, {
591
+ containingElement: fe(l.current)
592
592
  })));
593
593
  }
594
594
  break;
@@ -603,7 +603,7 @@ function xt(t, e, l) {
603
603
  }
604
604
  }, y = (m) => {
605
605
  if (s.current = n.key, m.target !== l.current) {
606
- Ol() || e.selectionManager.setFocusedKey(n.key);
606
+ Ll() || e.selectionManager.setFocusedKey(n.key);
607
607
  return;
608
608
  }
609
609
  requestAnimationFrame(() => {
@@ -635,12 +635,12 @@ function Me(t) {
635
635
  while (l);
636
636
  return e;
637
637
  }
638
- function bn(t) {
638
+ function vn(t) {
639
639
  return t && t.__esModule ? t.default : t;
640
640
  }
641
- function vn(t, e) {
641
+ function yn(t, e) {
642
642
  let { key: l } = t, n = e.selectionManager, o = Be(), i = !e.selectionManager.canSelectItem(l), r = e.selectionManager.isSelected(l), u = () => n.toggleSelection(l);
643
- const c = ve(bn(Ql), "@react-aria/grid");
643
+ const c = be(vn(Jl), "@react-aria/grid");
644
644
  return {
645
645
  checkboxProps: {
646
646
  id: o,
@@ -655,23 +655,23 @@ const je = /* @__PURE__ */ new WeakMap();
655
655
  function Ne(t) {
656
656
  return typeof t == "string" ? t.replace(/\s*/g, "") : "" + t;
657
657
  }
658
- function wt(t, e) {
658
+ function Dt(t, e) {
659
659
  let l = je.get(t);
660
660
  if (!l) throw new Error("Unknown grid");
661
661
  return `${l}-${Ne(e)}`;
662
662
  }
663
- function Dt(t, e, l) {
663
+ function Ct(t, e, l) {
664
664
  let n = je.get(t);
665
665
  if (!n) throw new Error("Unknown grid");
666
666
  return `${n}-${Ne(e)}-${Ne(l)}`;
667
667
  }
668
- function Ct(t, e) {
668
+ function St(t, e) {
669
669
  return [
670
670
  ...t.collection.rowHeaderColumnKeys
671
- ].map((l) => Dt(t, e, l)).join(" ");
671
+ ].map((l) => Ct(t, e, l)).join(" ");
672
672
  }
673
- var St = {};
674
- St = {
673
+ var kt = {};
674
+ kt = {
675
675
  ascending: "تصاعدي",
676
676
  ascendingSort: (t) => `ترتيب حسب العمود ${t.columnName} بترتيب تصاعدي`,
677
677
  columnSize: (t) => `${t.value} بالبكسل`,
@@ -682,8 +682,8 @@ St = {
682
682
  selectAll: "تحديد الكل",
683
683
  sortable: "عمود قابل للترتيب"
684
684
  };
685
- var kt = {};
686
- kt = {
685
+ var Et = {};
686
+ Et = {
687
687
  ascending: "възходящ",
688
688
  ascendingSort: (t) => `сортирано по колона ${t.columnName} във възходящ ред`,
689
689
  columnSize: (t) => `${t.value} пиксела`,
@@ -694,8 +694,8 @@ kt = {
694
694
  selectAll: "Изберете всичко",
695
695
  sortable: "сортираща колона"
696
696
  };
697
- var Et = {};
698
- Et = {
697
+ var zt = {};
698
+ zt = {
699
699
  ascending: "vzestupně",
700
700
  ascendingSort: (t) => `řazeno vzestupně podle sloupce ${t.columnName}`,
701
701
  columnSize: (t) => `${t.value} pixelů`,
@@ -706,8 +706,8 @@ Et = {
706
706
  selectAll: "Vybrat vše",
707
707
  sortable: "sloupec s možností řazení"
708
708
  };
709
- var zt = {};
710
- zt = {
709
+ var Rt = {};
710
+ Rt = {
711
711
  ascending: "stigende",
712
712
  ascendingSort: (t) => `sorteret efter kolonne ${t.columnName} i stigende rækkefølge`,
713
713
  columnSize: (t) => `${t.value} pixels`,
@@ -718,8 +718,8 @@ zt = {
718
718
  selectAll: "Vælg alle",
719
719
  sortable: "sorterbar kolonne"
720
720
  };
721
- var Rt = {};
722
- Rt = {
721
+ var At = {};
722
+ At = {
723
723
  ascending: "aufsteigend",
724
724
  ascendingSort: (t) => `sortiert nach Spalte ${t.columnName} in aufsteigender Reihenfolge`,
725
725
  columnSize: (t) => `${t.value} Pixel`,
@@ -730,8 +730,8 @@ Rt = {
730
730
  selectAll: "Alles auswählen",
731
731
  sortable: "sortierbare Spalte"
732
732
  };
733
- var At = {};
734
- At = {
733
+ var Bt = {};
734
+ Bt = {
735
735
  ascending: "αύξουσα",
736
736
  ascendingSort: (t) => `διαλογή ανά στήλη ${t.columnName} σε αύξουσα σειρά`,
737
737
  columnSize: (t) => `${t.value} pixel`,
@@ -742,8 +742,8 @@ At = {
742
742
  selectAll: "Επιλογή όλων",
743
743
  sortable: "Στήλη διαλογής"
744
744
  };
745
- var Bt = {};
746
- Bt = {
745
+ var Pt = {};
746
+ Pt = {
747
747
  select: "Select",
748
748
  selectAll: "Select All",
749
749
  sortable: "sortable column",
@@ -754,8 +754,8 @@ Bt = {
754
754
  columnSize: (t) => `${t.value} pixels`,
755
755
  resizerDescription: "Press Enter to start resizing"
756
756
  };
757
- var Pt = {};
758
- Pt = {
757
+ var Kt = {};
758
+ Kt = {
759
759
  ascending: "ascendente",
760
760
  ascendingSort: (t) => `ordenado por columna ${t.columnName} en sentido ascendente`,
761
761
  columnSize: (t) => `${t.value} píxeles`,
@@ -766,8 +766,8 @@ Pt = {
766
766
  selectAll: "Seleccionar todos",
767
767
  sortable: "columna ordenable"
768
768
  };
769
- var Kt = {};
770
- Kt = {
769
+ var Mt = {};
770
+ Mt = {
771
771
  ascending: "tõusev järjestus",
772
772
  ascendingSort: (t) => `sorditud veeru järgi ${t.columnName} tõusvas järjestuses`,
773
773
  columnSize: (t) => `${t.value} pikslit`,
@@ -778,8 +778,8 @@ Kt = {
778
778
  selectAll: "Vali kõik",
779
779
  sortable: "sorditav veerg"
780
780
  };
781
- var Mt = {};
782
- Mt = {
781
+ var Nt = {};
782
+ Nt = {
783
783
  ascending: "nouseva",
784
784
  ascendingSort: (t) => `lajiteltu sarakkeen ${t.columnName} mukaan nousevassa järjestyksessä`,
785
785
  columnSize: (t) => `${t.value} pikseliä`,
@@ -790,8 +790,8 @@ Mt = {
790
790
  selectAll: "Valitse kaikki",
791
791
  sortable: "lajiteltava sarake"
792
792
  };
793
- var Nt = {};
794
- Nt = {
793
+ var Tt = {};
794
+ Tt = {
795
795
  ascending: "croissant",
796
796
  ascendingSort: (t) => `trié en fonction de la colonne ${t.columnName} par ordre croissant`,
797
797
  columnSize: (t) => `${t.value} pixels`,
@@ -802,8 +802,8 @@ Nt = {
802
802
  selectAll: "Sélectionner tout",
803
803
  sortable: "colonne triable"
804
804
  };
805
- var Tt = {};
806
- Tt = {
805
+ var Ft = {};
806
+ Ft = {
807
807
  ascending: "עולה",
808
808
  ascendingSort: (t) => `מוין לפי עמודה ${t.columnName} בסדר עולה`,
809
809
  columnSize: (t) => `${t.value} פיקסלים`,
@@ -814,8 +814,8 @@ Tt = {
814
814
  selectAll: "בחר הכול",
815
815
  sortable: "עמודה שניתן למיין"
816
816
  };
817
- var Ft = {};
818
- Ft = {
817
+ var It = {};
818
+ It = {
819
819
  ascending: "rastući",
820
820
  ascendingSort: (t) => `razvrstano po stupcima ${t.columnName} rastućem redoslijedom`,
821
821
  columnSize: (t) => `${t.value} piksela`,
@@ -826,8 +826,8 @@ Ft = {
826
826
  selectAll: "Odaberite sve",
827
827
  sortable: "stupac koji se može razvrstati"
828
828
  };
829
- var It = {};
830
- It = {
829
+ var Wt = {};
830
+ Wt = {
831
831
  ascending: "növekvő",
832
832
  ascendingSort: (t) => `rendezve a(z) ${t.columnName} oszlop szerint, növekvő sorrendben`,
833
833
  columnSize: (t) => `${t.value} képpont`,
@@ -838,8 +838,8 @@ It = {
838
838
  selectAll: "Összes kijelölése",
839
839
  sortable: "rendezendő oszlop"
840
840
  };
841
- var Wt = {};
842
- Wt = {
841
+ var Ht = {};
842
+ Ht = {
843
843
  ascending: "crescente",
844
844
  ascendingSort: (t) => `in ordine crescente in base alla colonna ${t.columnName}`,
845
845
  columnSize: (t) => `${t.value} pixel`,
@@ -850,8 +850,8 @@ Wt = {
850
850
  selectAll: "Seleziona tutto",
851
851
  sortable: "colonna ordinabile"
852
852
  };
853
- var Ht = {};
854
- Ht = {
853
+ var Vt = {};
854
+ Vt = {
855
855
  ascending: "昇順",
856
856
  ascendingSort: (t) => `列 ${t.columnName} を昇順で並べ替え`,
857
857
  columnSize: (t) => `${t.value} ピクセル`,
@@ -862,8 +862,8 @@ Ht = {
862
862
  selectAll: "すべて選択",
863
863
  sortable: "並べ替え可能な列"
864
864
  };
865
- var Vt = {};
866
- Vt = {
865
+ var jt = {};
866
+ jt = {
867
867
  ascending: "오름차순",
868
868
  ascendingSort: (t) => `${t.columnName} 열을 기준으로 오름차순으로 정렬됨`,
869
869
  columnSize: (t) => `${t.value} 픽셀`,
@@ -874,8 +874,8 @@ Vt = {
874
874
  selectAll: "모두 선택",
875
875
  sortable: "정렬 가능한 열"
876
876
  };
877
- var jt = {};
878
- jt = {
877
+ var Ot = {};
878
+ Ot = {
879
879
  ascending: "didėjančia tvarka",
880
880
  ascendingSort: (t) => `surikiuota pagal stulpelį ${t.columnName} didėjančia tvarka`,
881
881
  columnSize: (t) => `${t.value} piks.`,
@@ -886,8 +886,8 @@ jt = {
886
886
  selectAll: "Pasirinkti viską",
887
887
  sortable: "rikiuojamas stulpelis"
888
888
  };
889
- var Ot = {};
890
- Ot = {
889
+ var Lt = {};
890
+ Lt = {
891
891
  ascending: "augošā secībā",
892
892
  ascendingSort: (t) => `kārtots pēc kolonnas ${t.columnName} augošā secībā`,
893
893
  columnSize: (t) => `${t.value} pikseļi`,
@@ -898,8 +898,8 @@ Ot = {
898
898
  selectAll: "Atlasīt visu",
899
899
  sortable: "kārtojamā kolonna"
900
900
  };
901
- var Lt = {};
902
- Lt = {
901
+ var Ut = {};
902
+ Ut = {
903
903
  ascending: "stigende",
904
904
  ascendingSort: (t) => `sortert etter kolonne ${t.columnName} i stigende rekkefølge`,
905
905
  columnSize: (t) => `${t.value} piksler`,
@@ -910,8 +910,8 @@ Lt = {
910
910
  selectAll: "Velg alle",
911
911
  sortable: "kolonne som kan sorteres"
912
912
  };
913
- var Ut = {};
914
- Ut = {
913
+ var Yt = {};
914
+ Yt = {
915
915
  ascending: "oplopend",
916
916
  ascendingSort: (t) => `gesorteerd in oplopende volgorde in kolom ${t.columnName}`,
917
917
  columnSize: (t) => `${t.value} pixels`,
@@ -922,8 +922,8 @@ Ut = {
922
922
  selectAll: "Alles selecteren",
923
923
  sortable: "sorteerbare kolom"
924
924
  };
925
- var Yt = {};
926
- Yt = {
925
+ var Xt = {};
926
+ Xt = {
927
927
  ascending: "rosnąco",
928
928
  ascendingSort: (t) => `posortowano według kolumny ${t.columnName} w porządku rosnącym`,
929
929
  columnSize: (t) => `Liczba pikseli: ${t.value}`,
@@ -934,8 +934,8 @@ Yt = {
934
934
  selectAll: "Zaznacz wszystko",
935
935
  sortable: "kolumna z możliwością sortowania"
936
936
  };
937
- var Xt = {};
938
- Xt = {
937
+ var Gt = {};
938
+ Gt = {
939
939
  ascending: "crescente",
940
940
  ascendingSort: (t) => `classificado pela coluna ${t.columnName} em ordem crescente`,
941
941
  columnSize: (t) => `${t.value} pixels`,
@@ -946,8 +946,8 @@ Xt = {
946
946
  selectAll: "Selecionar tudo",
947
947
  sortable: "coluna classificável"
948
948
  };
949
- var Gt = {};
950
- Gt = {
949
+ var qt = {};
950
+ qt = {
951
951
  ascending: "ascendente",
952
952
  ascendingSort: (t) => `Ordenar por coluna ${t.columnName} em ordem ascendente`,
953
953
  columnSize: (t) => `${t.value} pixels`,
@@ -958,8 +958,8 @@ Gt = {
958
958
  selectAll: "Selecionar tudo",
959
959
  sortable: "Coluna ordenável"
960
960
  };
961
- var qt = {};
962
- qt = {
961
+ var Zt = {};
962
+ Zt = {
963
963
  ascending: "crescătoare",
964
964
  ascendingSort: (t) => `sortate după coloana ${t.columnName} în ordine crescătoare`,
965
965
  columnSize: (t) => `${t.value} pixeli`,
@@ -970,8 +970,8 @@ qt = {
970
970
  selectAll: "Selectare totală",
971
971
  sortable: "coloană sortabilă"
972
972
  };
973
- var Zt = {};
974
- Zt = {
973
+ var Qt = {};
974
+ Qt = {
975
975
  ascending: "возрастание",
976
976
  ascendingSort: (t) => `сортировать столбец ${t.columnName} в порядке возрастания`,
977
977
  columnSize: (t) => `${t.value} пикс.`,
@@ -982,8 +982,8 @@ Zt = {
982
982
  selectAll: "Выбрать все",
983
983
  sortable: "сортируемый столбец"
984
984
  };
985
- var Qt = {};
986
- Qt = {
985
+ var Jt = {};
986
+ Jt = {
987
987
  ascending: "vzostupne",
988
988
  ascendingSort: (t) => `zoradené zostupne podľa stĺpca ${t.columnName}`,
989
989
  columnSize: (t) => `Počet pixelov: ${t.value}`,
@@ -994,8 +994,8 @@ Qt = {
994
994
  selectAll: "Vybrať všetko",
995
995
  sortable: "zoraditeľný stĺpec"
996
996
  };
997
- var Jt = {};
998
- Jt = {
997
+ var _t = {};
998
+ _t = {
999
999
  ascending: "naraščajoče",
1000
1000
  ascendingSort: (t) => `razvrščeno po stolpcu ${t.columnName} v naraščajočem vrstnem redu`,
1001
1001
  columnSize: (t) => `${t.value} slikovnih pik`,
@@ -1006,8 +1006,8 @@ Jt = {
1006
1006
  selectAll: "Izberite vse",
1007
1007
  sortable: "razvrstljivi stolpec"
1008
1008
  };
1009
- var _t = {};
1010
- _t = {
1009
+ var el = {};
1010
+ el = {
1011
1011
  ascending: "rastući",
1012
1012
  ascendingSort: (t) => `sortirano po kolonama ${t.columnName} rastućim redosledom`,
1013
1013
  columnSize: (t) => `${t.value} piksela`,
@@ -1018,8 +1018,8 @@ _t = {
1018
1018
  selectAll: "Izaberite sve",
1019
1019
  sortable: "kolona koja se može sortirati"
1020
1020
  };
1021
- var el = {};
1022
- el = {
1021
+ var tl = {};
1022
+ tl = {
1023
1023
  ascending: "stigande",
1024
1024
  ascendingSort: (t) => `sorterat på kolumn ${t.columnName} i stigande ordning`,
1025
1025
  columnSize: (t) => `${t.value} pixlar`,
@@ -1030,8 +1030,8 @@ el = {
1030
1030
  selectAll: "Markera allt",
1031
1031
  sortable: "sorterbar kolumn"
1032
1032
  };
1033
- var tl = {};
1034
- tl = {
1033
+ var ll = {};
1034
+ ll = {
1035
1035
  ascending: "artan sırada",
1036
1036
  ascendingSort: (t) => `${t.columnName} sütuna göre artan düzende sırala`,
1037
1037
  columnSize: (t) => `${t.value} piksel`,
@@ -1042,8 +1042,8 @@ tl = {
1042
1042
  selectAll: "Tümünü Seç",
1043
1043
  sortable: "Sıralanabilir sütun"
1044
1044
  };
1045
- var ll = {};
1046
- ll = {
1045
+ var nl = {};
1046
+ nl = {
1047
1047
  ascending: "висхідний",
1048
1048
  ascendingSort: (t) => `відсортовано за стовпцем ${t.columnName} у висхідному порядку`,
1049
1049
  columnSize: (t) => `${t.value} пікс.`,
@@ -1054,8 +1054,8 @@ ll = {
1054
1054
  selectAll: "Вибрати все",
1055
1055
  sortable: "сортувальний стовпець"
1056
1056
  };
1057
- var nl = {};
1058
- nl = {
1057
+ var ol = {};
1058
+ ol = {
1059
1059
  ascending: "升序",
1060
1060
  ascendingSort: (t) => `按列 ${t.columnName} 升序排序`,
1061
1061
  columnSize: (t) => `${t.value} 像素`,
@@ -1066,8 +1066,8 @@ nl = {
1066
1066
  selectAll: "全选",
1067
1067
  sortable: "可排序的列"
1068
1068
  };
1069
- var ol = {};
1070
- ol = {
1069
+ var il = {};
1070
+ il = {
1071
1071
  ascending: "遞增",
1072
1072
  ascendingSort: (t) => `已依據「${t.columnName}」欄遞增排序`,
1073
1073
  columnSize: (t) => `${t.value} 像素`,
@@ -1080,42 +1080,42 @@ ol = {
1080
1080
  };
1081
1081
  var Se = {};
1082
1082
  Se = {
1083
- "ar-AE": St,
1084
- "bg-BG": kt,
1085
- "cs-CZ": Et,
1086
- "da-DK": zt,
1087
- "de-DE": Rt,
1088
- "el-GR": At,
1089
- "en-US": Bt,
1090
- "es-ES": Pt,
1091
- "et-EE": Kt,
1092
- "fi-FI": Mt,
1093
- "fr-FR": Nt,
1094
- "he-IL": Tt,
1095
- "hr-HR": Ft,
1096
- "hu-HU": It,
1097
- "it-IT": Wt,
1098
- "ja-JP": Ht,
1099
- "ko-KR": Vt,
1100
- "lt-LT": jt,
1101
- "lv-LV": Ot,
1102
- "nb-NO": Lt,
1103
- "nl-NL": Ut,
1104
- "pl-PL": Yt,
1105
- "pt-BR": Xt,
1106
- "pt-PT": Gt,
1107
- "ro-RO": qt,
1108
- "ru-RU": Zt,
1109
- "sk-SK": Qt,
1110
- "sl-SI": Jt,
1111
- "sr-SP": _t,
1112
- "sv-SE": el,
1113
- "tr-TR": tl,
1114
- "uk-UA": ll,
1115
- "zh-CN": nl,
1116
- "zh-TW": ol
1083
+ "ar-AE": kt,
1084
+ "bg-BG": Et,
1085
+ "cs-CZ": zt,
1086
+ "da-DK": Rt,
1087
+ "de-DE": At,
1088
+ "el-GR": Bt,
1089
+ "en-US": Pt,
1090
+ "es-ES": Kt,
1091
+ "et-EE": Mt,
1092
+ "fi-FI": Nt,
1093
+ "fr-FR": Tt,
1094
+ "he-IL": Ft,
1095
+ "hr-HR": It,
1096
+ "hu-HU": Wt,
1097
+ "it-IT": Ht,
1098
+ "ja-JP": Vt,
1099
+ "ko-KR": jt,
1100
+ "lt-LT": Ot,
1101
+ "lv-LV": Lt,
1102
+ "nb-NO": Ut,
1103
+ "nl-NL": Yt,
1104
+ "pl-PL": Xt,
1105
+ "pt-BR": Gt,
1106
+ "pt-PT": qt,
1107
+ "ro-RO": Zt,
1108
+ "ru-RU": Qt,
1109
+ "sk-SK": Jt,
1110
+ "sl-SI": _t,
1111
+ "sr-SP": el,
1112
+ "sv-SE": tl,
1113
+ "tr-TR": ll,
1114
+ "uk-UA": nl,
1115
+ "zh-CN": ol,
1116
+ "zh-TW": il
1117
1117
  };
1118
- class yn extends $t {
1118
+ class $n extends xt {
1119
1119
  isCell(e) {
1120
1120
  return e.type === "cell" || e.type === "rowheader" || e.type === "column";
1121
1121
  }
@@ -1123,7 +1123,7 @@ class yn extends $t {
1123
1123
  let l = this.collection.getItem(e);
1124
1124
  if (!l) return null;
1125
1125
  if (l.type === "column") {
1126
- let n = ne(I(l, this.collection));
1126
+ let n = le(W(l, this.collection));
1127
1127
  if (n) return n.key;
1128
1128
  let o = this.getFirstKey();
1129
1129
  return o == null || !this.collection.getItem(o) ? null : super.getKeyForItemInRowByIndex(o, l.index);
@@ -1144,7 +1144,7 @@ class yn extends $t {
1144
1144
  let l = this.findNextKey(e.key, (o) => o.type === "column");
1145
1145
  if (l != null) return l;
1146
1146
  let n = this.collection.headerRows[e.level];
1147
- for (let o of I(n, this.collection))
1147
+ for (let o of W(n, this.collection))
1148
1148
  if (o.type === "column") return o.key;
1149
1149
  return null;
1150
1150
  }
@@ -1152,7 +1152,7 @@ class yn extends $t {
1152
1152
  let l = this.findPreviousKey(e.key, (i) => i.type === "column");
1153
1153
  if (l != null) return l;
1154
1154
  let n = this.collection.headerRows[e.level], o = [
1155
- ...I(n, this.collection)
1155
+ ...W(n, this.collection)
1156
1156
  ];
1157
1157
  for (let i = o.length - 1; i >= 0; i--) {
1158
1158
  let r = o[i];
@@ -1183,7 +1183,7 @@ class yn extends $t {
1183
1183
  let a = c.textValue.slice(0, e.length);
1184
1184
  if (this.collator.compare(a, e) === 0) return c.key;
1185
1185
  }
1186
- for (let a of I(c, this.collection)) {
1186
+ for (let a of W(c, this.collection)) {
1187
1187
  let d = n.columns[a.index];
1188
1188
  if (n.rowHeaderColumnKeys.has(d.key) && a.textValue) {
1189
1189
  let s = a.textValue.slice(0, e.length);
@@ -1198,14 +1198,14 @@ class yn extends $t {
1198
1198
  return null;
1199
1199
  }
1200
1200
  }
1201
- function $n(t) {
1201
+ function xn(t) {
1202
1202
  return t && t.__esModule ? t.default : t;
1203
1203
  }
1204
- function xn(t, e, l) {
1205
- let { keyboardDelegate: n, isVirtualized: o, layoutDelegate: i, layout: r } = t, u = vt({
1204
+ function wn(t, e, l) {
1205
+ let { keyboardDelegate: n, isVirtualized: o, layoutDelegate: i, layout: r } = t, u = yt({
1206
1206
  usage: "search",
1207
1207
  sensitivity: "base"
1208
- }), { direction: c } = be(), a = e.selectionManager.disabledBehavior, d = N(() => n || new yn({
1208
+ }), { direction: c } = ge(), a = e.selectionManager.disabledBehavior, d = N(() => n || new $n({
1209
1209
  collection: e.collection,
1210
1210
  disabledKeys: e.disabledKeys,
1211
1211
  disabledBehavior: a,
@@ -1226,13 +1226,13 @@ function xn(t, e, l) {
1226
1226
  r
1227
1227
  ]), s = Be(t.id);
1228
1228
  je.set(e, s);
1229
- let { gridProps: p } = hn({
1229
+ let { gridProps: p } = mn({
1230
1230
  ...t,
1231
1231
  id: s,
1232
1232
  keyboardDelegate: d
1233
1233
  }, e, l);
1234
1234
  o && (p["aria-rowcount"] = e.collection.size + e.collection.headerRows.length), Re() && "expandedKeys" in e && (p.role = "treegrid");
1235
- let { column: f, direction: h } = e.sortDescriptor || {}, g = ve($n(Se), "@react-aria/table"), y = N(() => {
1235
+ let { column: f, direction: h } = e.sortDescriptor || {}, g = be(xn(Se), "@react-aria/table"), y = N(() => {
1236
1236
  var x, m;
1237
1237
  let $ = (m = (x = e.collection.columns.find((b) => b.key === f)) === null || x === void 0 ? void 0 : x.textValue) !== null && m !== void 0 ? m : "";
1238
1238
  return h && f ? g.format(`${h}Sort`, {
@@ -1243,8 +1243,8 @@ function xn(t, e, l) {
1243
1243
  f,
1244
1244
  e.collection.columns
1245
1245
  ]), v = He(y);
1246
- return _l(() => {
1247
- y && Jl(y, "assertive", 500);
1246
+ return en(() => {
1247
+ y && _l(y, "assertive", 500);
1248
1248
  }, [
1249
1249
  y
1250
1250
  ]), {
@@ -1257,26 +1257,26 @@ function xn(t, e, l) {
1257
1257
  })
1258
1258
  };
1259
1259
  }
1260
- function wn(t) {
1260
+ function Dn(t) {
1261
1261
  return t && t.__esModule ? t.default : t;
1262
1262
  }
1263
- function Dn(t, e, l) {
1263
+ function Cn(t, e, l) {
1264
1264
  var n, o;
1265
- let { node: i } = t, r = i.props.allowsSorting, { gridCellProps: u } = xt({
1265
+ let { node: i } = t, r = i.props.allowsSorting, { gridCellProps: u } = wt({
1266
1266
  ...t,
1267
1267
  focusMode: "child"
1268
- }, e, l), c = i.props.isSelectionCell && e.selectionManager.selectionMode === "single", { pressProps: a } = bt({
1268
+ }, e, l), c = i.props.isSelectionCell && e.selectionManager.selectionMode === "single", { pressProps: a } = vt({
1269
1269
  isDisabled: !r || c,
1270
1270
  onPress() {
1271
1271
  e.sort(i.key);
1272
1272
  },
1273
1273
  ref: l
1274
- }), { focusableProps: d } = Vl({}, l), s, p = ((n = e.sortDescriptor) === null || n === void 0 ? void 0 : n.column) === i.key, f = (o = e.sortDescriptor) === null || o === void 0 ? void 0 : o.direction;
1275
- i.props.allowsSorting && !ot() && (s = p ? f : "none");
1276
- let h = ve(wn(Se), "@react-aria/table"), g;
1277
- r && (g = `${h.format("sortable")}`, p && f && ot() && (g = `${g}, ${h.format(f)}`));
1274
+ }), { focusableProps: d } = jl({}, l), s, p = ((n = e.sortDescriptor) === null || n === void 0 ? void 0 : n.column) === i.key, f = (o = e.sortDescriptor) === null || o === void 0 ? void 0 : o.direction;
1275
+ i.props.allowsSorting && !it() && (s = p ? f : "none");
1276
+ let h = be(Dn(Se), "@react-aria/table"), g;
1277
+ r && (g = `${h.format("sortable")}`, p && f && it() && (g = `${g}, ${h.format(f)}`));
1278
1278
  let y = He(g), v = e.collection.size === 0;
1279
- return se(() => {
1279
+ return ue(() => {
1280
1280
  v && e.selectionManager.focusedKey === i.key && e.selectionManager.setFocusedKey(null);
1281
1281
  }, [
1282
1282
  v,
@@ -1295,13 +1295,13 @@ function Dn(t, e, l) {
1295
1295
  } : null
1296
1296
  ),
1297
1297
  role: "columnheader",
1298
- id: wt(e, i.key),
1298
+ id: Dt(e, i.key),
1299
1299
  "aria-colspan": i.colSpan && i.colSpan > 1 ? i.colSpan : void 0,
1300
1300
  "aria-sort": s
1301
1301
  }
1302
1302
  };
1303
1303
  }
1304
- const ut = {
1304
+ const st = {
1305
1305
  expand: {
1306
1306
  ltr: "ArrowRight",
1307
1307
  rtl: "ArrowLeft"
@@ -1311,8 +1311,8 @@ const ut = {
1311
1311
  rtl: "ArrowRight"
1312
1312
  }
1313
1313
  };
1314
- function Cn(t, e, l) {
1315
- let { node: n, isVirtualized: o } = t, { rowProps: i, ...r } = gn(t, e, l), { direction: u } = be();
1314
+ function Sn(t, e, l) {
1315
+ let { node: n, isVirtualized: o } = t, { rowProps: i, ...r } = bn(t, e, l), { direction: u } = ge();
1316
1316
  o && !(Re() && "expandedKeys" in e) ? i["aria-rowindex"] = n.index + 1 + e.collection.headerRows.length : delete i["aria-rowindex"];
1317
1317
  let c = {};
1318
1318
  if (Re() && "expandedKeys" in e) {
@@ -1322,26 +1322,26 @@ function Cn(t, e, l) {
1322
1322
  let w = ((a = b.props) === null || a === void 0 ? void 0 : a.UNSTABLE_childItems) || ((s = b.props) === null || s === void 0 || (d = s.children) === null || d === void 0 ? void 0 : d.length) > e.userColumnCount;
1323
1323
  var g, y, v, x;
1324
1324
  c = {
1325
- onKeyDown: (C) => {
1326
- (C.key === ut.expand[u] && e.selectionManager.focusedKey === b.key && w && e.expandedKeys !== "all" && !e.expandedKeys.has(b.key) || C.key === ut.collapse[u] && e.selectionManager.focusedKey === b.key && w && (e.expandedKeys === "all" || e.expandedKeys.has(b.key))) && (e.toggleKey(b.key), C.stopPropagation());
1325
+ onKeyDown: (S) => {
1326
+ (S.key === st.expand[u] && e.selectionManager.focusedKey === b.key && w && e.expandedKeys !== "all" && !e.expandedKeys.has(b.key) || S.key === st.collapse[u] && e.selectionManager.focusedKey === b.key && w && (e.expandedKeys === "all" || e.expandedKeys.has(b.key))) && (e.toggleKey(b.key), S.stopPropagation());
1327
1327
  },
1328
1328
  "aria-expanded": w ? e.expandedKeys === "all" || e.expandedKeys.has(n.key) : void 0,
1329
1329
  "aria-level": b.level,
1330
1330
  "aria-posinset": ((g = b.indexOfType) !== null && g !== void 0 ? g : 0) + 1,
1331
- "aria-setsize": b.level > 1 ? ((v = (p = oe((y = (f = e.keyMap.get(b.parentKey)) === null || f === void 0 ? void 0 : f.childNodes) !== null && y !== void 0 ? y : [])) === null || p === void 0 ? void 0 : p.indexOfType) !== null && v !== void 0 ? v : 0) + 1 : ((x = (h = oe(e.collection.body.childNodes)) === null || h === void 0 ? void 0 : h.indexOfType) !== null && x !== void 0 ? x : 0) + 1
1331
+ "aria-setsize": b.level > 1 ? ((v = (p = ne((y = (f = e.keyMap.get(b.parentKey)) === null || f === void 0 ? void 0 : f.childNodes) !== null && y !== void 0 ? y : [])) === null || p === void 0 ? void 0 : p.indexOfType) !== null && v !== void 0 ? v : 0) + 1 : ((x = (h = ne(e.collection.body.childNodes)) === null || h === void 0 ? void 0 : h.indexOfType) !== null && x !== void 0 ? x : 0) + 1
1332
1332
  };
1333
1333
  }
1334
1334
  }
1335
- let m = Xl(n.props), $ = r.hasAction ? m : {};
1335
+ let m = Gl(n.props), $ = r.hasAction ? m : {};
1336
1336
  return {
1337
1337
  rowProps: {
1338
1338
  ...H(i, c, $),
1339
- "aria-labelledby": Ct(e, n.key)
1339
+ "aria-labelledby": St(e, n.key)
1340
1340
  },
1341
1341
  ...r
1342
1342
  };
1343
1343
  }
1344
- function Sn(t, e, l) {
1344
+ function kn(t, e, l) {
1345
1345
  let { node: n, isVirtualized: o } = t, i = {
1346
1346
  role: "row"
1347
1347
  };
@@ -1349,32 +1349,32 @@ function Sn(t, e, l) {
1349
1349
  rowProps: i
1350
1350
  };
1351
1351
  }
1352
- function kn(t, e, l) {
1352
+ function En(t, e, l) {
1353
1353
  var n;
1354
- let { gridCellProps: o, isPressed: i } = xt(t, e, l), r = (n = t.node.column) === null || n === void 0 ? void 0 : n.key;
1355
- return r != null && e.collection.rowHeaderColumnKeys.has(r) && (o.role = "rowheader", o.id = Dt(e, t.node.parentKey, r)), {
1354
+ let { gridCellProps: o, isPressed: i } = wt(t, e, l), r = (n = t.node.column) === null || n === void 0 ? void 0 : n.key;
1355
+ return r != null && e.collection.rowHeaderColumnKeys.has(r) && (o.role = "rowheader", o.id = Ct(e, t.node.parentKey, r)), {
1356
1356
  gridCellProps: o,
1357
1357
  isPressed: i
1358
1358
  };
1359
1359
  }
1360
- function En(t) {
1360
+ function zn(t) {
1361
1361
  return t && t.__esModule ? t.default : t;
1362
1362
  }
1363
- function zn(t, e) {
1363
+ function Rn(t, e) {
1364
1364
  let { key: l } = t;
1365
- const { checkboxProps: n } = vn(t, e);
1365
+ const { checkboxProps: n } = yn(t, e);
1366
1366
  return {
1367
1367
  checkboxProps: {
1368
1368
  ...n,
1369
- "aria-labelledby": `${n.id} ${Ct(e, l)}`
1369
+ "aria-labelledby": `${n.id} ${St(e, l)}`
1370
1370
  }
1371
1371
  };
1372
1372
  }
1373
- function Rn(t) {
1373
+ function An(t) {
1374
1374
  let { isEmpty: e, isSelectAll: l, selectionMode: n } = t.selectionManager;
1375
1375
  return {
1376
1376
  checkboxProps: {
1377
- "aria-label": ve(En(Se), "@react-aria/table").format(n === "single" ? "select" : "selectAll"),
1377
+ "aria-label": be(zn(Se), "@react-aria/table").format(n === "single" ? "select" : "selectAll"),
1378
1378
  isSelected: l,
1379
1379
  isDisabled: n !== "multiple" || t.collection.size === 0 || t.collection.rows.length === 1 && t.collection.rows[0].type === "loader",
1380
1380
  isIndeterminate: !e && !l,
@@ -1382,103 +1382,103 @@ function Rn(t) {
1382
1382
  }
1383
1383
  };
1384
1384
  }
1385
- function An(t) {
1385
+ function Bn(t) {
1386
1386
  return t && t.__esModule ? t.default : t;
1387
1387
  }
1388
- function Bn(t, e, l) {
1388
+ function Pn(t, e, l) {
1389
1389
  let { column: n, triggerRef: o, isDisabled: i, onResizeStart: r, onResize: u, onResizeEnd: c, "aria-label": a } = t;
1390
- const d = ve(An(Se), "@react-aria/table");
1391
- let s = Be(), p = e.resizingColumn === n.key, f = M(p), h = M(null), g = M(!1), y = e.tableState.isKeyboardNavigationDisabled, { direction: v } = be(), { keyboardProps: x } = jl({
1392
- onKeyDown: (S) => {
1393
- y ? (S.key === "Escape" || S.key === "Enter" || S.key === " " || S.key === "Tab") && (S.preventDefault(), b(n)) : (S.continuePropagation(), S.key === "Enter" && m(n));
1394
- }
1395
- }), m = xe((S) => {
1396
- f.current || (h.current = e.updateResizedColumns(S.key, e.getColumnWidth(S.key)), e.startResize(S.key), e.tableState.setKeyboardNavigationDisabled(!0), r?.(h.current)), f.current = !0;
1397
- }), $ = xe((S, A) => {
1398
- let U = e.updateResizedColumns(S.key, A);
1399
- u?.(U), h.current = U;
1400
- }), b = xe((S) => {
1401
- f.current && (h.current == null && (h.current = e.updateResizedColumns(S.key, e.getColumnWidth(S.key))), e.endResize(), e.tableState.setKeyboardNavigationDisabled(!1), c?.(h.current), f.current = !1, o?.current && !g.current && q(o.current)), h.current = null;
1390
+ const d = be(Bn(Se), "@react-aria/table");
1391
+ let s = Be(), p = e.resizingColumn === n.key, f = M(p), h = M(null), g = M(!1), y = e.tableState.isKeyboardNavigationDisabled, { direction: v } = ge(), { keyboardProps: x } = Ol({
1392
+ onKeyDown: (C) => {
1393
+ y ? (C.key === "Escape" || C.key === "Enter" || C.key === " " || C.key === "Tab") && (C.preventDefault(), b(n)) : (C.continuePropagation(), C.key === "Enter" && m(n));
1394
+ }
1395
+ }), m = xe((C) => {
1396
+ f.current || (h.current = e.updateResizedColumns(C.key, e.getColumnWidth(C.key)), e.startResize(C.key), e.tableState.setKeyboardNavigationDisabled(!0), r?.(h.current)), f.current = !0;
1397
+ }), $ = xe((C, R) => {
1398
+ let V = e.updateResizedColumns(C.key, R);
1399
+ u?.(V), h.current = V;
1400
+ }), b = xe((C) => {
1401
+ f.current && (h.current == null && (h.current = e.updateResizedColumns(C.key, e.getColumnWidth(C.key))), e.endResize(), e.tableState.setKeyboardNavigationDisabled(!1), c?.(h.current), f.current = !1, o?.current && !g.current && q(o.current)), h.current = null;
1402
1402
  });
1403
- const w = M(0), { moveProps: C } = fn({
1403
+ const w = M(0), { moveProps: S } = pn({
1404
1404
  onMoveStart() {
1405
1405
  w.current = e.getColumnWidth(n.key), m(n);
1406
1406
  },
1407
- onMove(S) {
1408
- let { deltaX: A, deltaY: U, pointerType: ke } = S;
1409
- v === "rtl" && (A *= -1), ke === "keyboard" && (U !== 0 && A === 0 && (A = U * -1), A *= 10), A !== 0 && (w.current += A, $(n, w.current));
1407
+ onMove(C) {
1408
+ let { deltaX: R, deltaY: V, pointerType: ke } = C;
1409
+ v === "rtl" && (R *= -1), ke === "keyboard" && (V !== 0 && R === 0 && (R = V * -1), R *= 10), R !== 0 && (w.current += R, $(n, w.current));
1410
1410
  },
1411
- onMoveEnd(S) {
1412
- let { pointerType: A } = S;
1413
- w.current = 0, (A === "mouse" || A === "touch" && g.current) && b(n);
1411
+ onMoveEnd(C) {
1412
+ let { pointerType: R } = C;
1413
+ w.current = 0, (R === "mouse" || R === "touch" && g.current) && b(n);
1414
1414
  }
1415
1415
  });
1416
- let B = V((S) => {
1417
- var A;
1418
- y && ((A = C.onKeyDown) === null || A === void 0 || A.call(C, S));
1416
+ let B = j((C) => {
1417
+ var R;
1418
+ y && ((R = S.onKeyDown) === null || R === void 0 || R.call(S, C));
1419
1419
  }, [
1420
1420
  y,
1421
- C
1421
+ S
1422
1422
  ]), P = Math.floor(e.getColumnMinWidth(n.key)), E = Math.floor(e.getColumnMaxWidth(n.key));
1423
1423
  E === 1 / 0 && (E = Number.MAX_SAFE_INTEGER);
1424
- let W = Math.floor(e.getColumnWidth(n.key)), K = Ll();
1424
+ let T = Math.floor(e.getColumnWidth(n.key)), K = Ul();
1425
1425
  K === "virtual" && typeof window < "u" && "ontouchstart" in window && (K = "touch");
1426
- let T = o?.current == null && (K === "keyboard" || K === "virtual") && !p ? d.format("resizerDescription") : void 0, O = He(T), F = {
1426
+ let F = o?.current == null && (K === "keyboard" || K === "virtual") && !p ? d.format("resizerDescription") : void 0, L = He(F), I = {
1427
1427
  "aria-label": a,
1428
1428
  "aria-orientation": "horizontal",
1429
- "aria-labelledby": `${s} ${wt(e.tableState, n.key)}`,
1429
+ "aria-labelledby": `${s} ${Dt(e.tableState, n.key)}`,
1430
1430
  "aria-valuetext": d.format("columnSize", {
1431
- value: W
1431
+ value: T
1432
1432
  }),
1433
1433
  type: "range",
1434
1434
  min: P,
1435
1435
  max: E,
1436
- value: W,
1437
- ...O
1436
+ value: T,
1437
+ ...L
1438
1438
  };
1439
- const Y = V(() => {
1439
+ const U = j(() => {
1440
1440
  l.current && q(l.current);
1441
1441
  }, [
1442
1442
  l
1443
1443
  ]);
1444
- let L = e.resizingColumn, te = M(null);
1445
- se(() => {
1446
- if (te.current !== L && L != null && L === n.key) {
1444
+ let Y = e.resizingColumn, te = M(null);
1445
+ ue(() => {
1446
+ if (te.current !== Y && Y != null && Y === n.key) {
1447
1447
  g.current = document.activeElement === l.current, m(n);
1448
- let S = setTimeout(() => Y(), 0), A = setTimeout(Y, 400);
1448
+ let C = setTimeout(() => U(), 0), R = setTimeout(U, 400);
1449
1449
  return () => {
1450
- clearTimeout(S), clearTimeout(A);
1450
+ clearTimeout(C), clearTimeout(R);
1451
1451
  };
1452
1452
  }
1453
- te.current = L;
1453
+ te.current = Y;
1454
1454
  }, [
1455
- L,
1456
- n,
1457
1455
  Y,
1456
+ n,
1457
+ U,
1458
1458
  l,
1459
1459
  m
1460
1460
  ]);
1461
- let le = (S) => {
1462
- let A = e.getColumnWidth(n.key), U = parseFloat(S.target.value);
1463
- U > A ? U = A + 10 : U = A - 10, $(n, U);
1464
- }, { pressProps: _ } = bt({
1461
+ let ye = (C) => {
1462
+ let R = e.getColumnWidth(n.key), V = parseFloat(C.target.value);
1463
+ V > R ? V = R + 10 : V = R - 10, $(n, V);
1464
+ }, { pressProps: _ } = vt({
1465
1465
  preventFocusOnPress: !0,
1466
- onPressStart: (S) => {
1467
- if (!(S.ctrlKey || S.altKey || S.metaKey || S.shiftKey || S.pointerType === "keyboard")) {
1468
- if (S.pointerType === "virtual" && e.resizingColumn != null) {
1466
+ onPressStart: (C) => {
1467
+ if (!(C.ctrlKey || C.altKey || C.metaKey || C.shiftKey || C.pointerType === "keyboard")) {
1468
+ if (C.pointerType === "virtual" && e.resizingColumn != null) {
1469
1469
  b(n);
1470
1470
  return;
1471
1471
  }
1472
- Y(), S.pointerType !== "virtual" && m(n);
1472
+ U(), C.pointerType !== "virtual" && m(n);
1473
1473
  }
1474
1474
  },
1475
- onPress: (S) => {
1476
- (S.pointerType === "touch" && g.current || S.pointerType === "mouse") && e.resizingColumn != null && b(n);
1475
+ onPress: (C) => {
1476
+ (C.pointerType === "touch" && g.current || C.pointerType === "mouse") && e.resizingColumn != null && b(n);
1477
1477
  }
1478
1478
  }), { visuallyHiddenProps: z } = Pe();
1479
1479
  return {
1480
1480
  resizerProps: H(x, {
1481
- ...C,
1481
+ ...S,
1482
1482
  onKeyDown: B
1483
1483
  }, _, {
1484
1484
  style: {
@@ -1490,19 +1490,19 @@ function Bn(t, e, l) {
1490
1490
  onBlur: () => {
1491
1491
  b(n);
1492
1492
  },
1493
- onChange: le,
1493
+ onChange: ye,
1494
1494
  disabled: i
1495
- }, F),
1495
+ }, I),
1496
1496
  isResizing: p
1497
1497
  };
1498
1498
  }
1499
- function il() {
1500
- return mn();
1499
+ function rl() {
1500
+ return gn();
1501
1501
  }
1502
- function Pn(t) {
1502
+ function Kn(t) {
1503
1503
  return t != null && (!isNaN(t) || String(t).match(/^(\d+)(?=%$)/) !== null);
1504
1504
  }
1505
- function Kn(t) {
1505
+ function Mn(t) {
1506
1506
  if (!t || typeof t == "number") return 1;
1507
1507
  let e = t.match(/^(.+)(?=fr$)/);
1508
1508
  return e ? parseFloat(e[0]) : (process.env.NODE_ENV !== "production" && console.warn(`width: ${t} is not a supported format, width should be a number (ex. 150), percentage (ex. '50%') or fr unit (ex. '2fr')`, "defaulting to '1fr'"), 1);
@@ -1515,19 +1515,19 @@ function Oe(t, e) {
1515
1515
  }
1516
1516
  return t;
1517
1517
  }
1518
- function rl(t, e) {
1518
+ function al(t, e) {
1519
1519
  return t != null ? Oe(t, e) : Number.MAX_SAFE_INTEGER;
1520
1520
  }
1521
- function al(t, e) {
1521
+ function ul(t, e) {
1522
1522
  return t != null ? Oe(t, e) : 0;
1523
1523
  }
1524
- function Mn(t, e, l, n, o) {
1524
+ function Nn(t, e, l, n, o) {
1525
1525
  let i = !1, r = e.map((u, c) => {
1526
1526
  var a, d, s, p;
1527
1527
  let f = l.get(u.key) != null ? (a = l.get(u.key)) !== null && a !== void 0 ? a : "1fr" : (p = (s = (d = u.width) !== null && d !== void 0 ? d : u.defaultWidth) !== null && s !== void 0 ? s : n?.(c)) !== null && p !== void 0 ? p : "1fr", h = !1, g = 0, y = 0, v = 0;
1528
- Pn(f) ? (g = Oe(f, t), h = !0) : (y = Kn(f), y <= 0 && (h = !0));
1528
+ Kn(f) ? (g = Oe(f, t), h = !0) : (y = Mn(f), y <= 0 && (h = !0));
1529
1529
  var x, m;
1530
- let $ = al((m = (x = u.minWidth) !== null && x !== void 0 ? x : o?.(c)) !== null && m !== void 0 ? m : 0, t), b = rl(u.maxWidth, t), w = Math.max($, Math.min(g, b));
1530
+ let $ = ul((m = (x = u.minWidth) !== null && x !== void 0 ? x : o?.(c)) !== null && m !== void 0 ? m : 0, t), b = al(u.maxWidth, t), w = Math.max($, Math.min(g, b));
1531
1531
  return h ? v = w : g > w && (h = !0, v = w), h || (i = !0), {
1532
1532
  frozen: h,
1533
1533
  baseSize: g,
@@ -1561,16 +1561,16 @@ function Mn(t, e, l, n, o) {
1561
1561
  d === 0 || Math.sign(d) === Math.sign(s.violation) ? s.frozen = !0 : s.frozen || (i = !0);
1562
1562
  });
1563
1563
  }
1564
- return Nn(r);
1564
+ return Tn(r);
1565
1565
  }
1566
- function Nn(t) {
1566
+ function Tn(t) {
1567
1567
  let e = 0, l = 0, n = [];
1568
1568
  return t.forEach(function(o) {
1569
1569
  let i = o.targetMainSize, r = Math.round(i + e) - l;
1570
1570
  e += i, l += r, n.push(r);
1571
1571
  }), n;
1572
1572
  }
1573
- class Tn {
1573
+ class Fn {
1574
1574
  /** Takes an array of columns and splits it into 2 maps of columns with controlled and columns with uncontrolled widths. */
1575
1575
  splitColumnsIntoControlledAndUncontrolled(e) {
1576
1576
  return e.reduce((l, n) => (n.props.width != null ? l[0].set(n.key, n) : l[1].set(n.key, n), l), [
@@ -1618,14 +1618,14 @@ class Tn {
1618
1618
  }), u;
1619
1619
  }
1620
1620
  buildColumnWidths(e, l, n) {
1621
- return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), Mn(e, l.columns.map((i) => ({
1621
+ return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), Nn(e, l.columns.map((i) => ({
1622
1622
  ...i.props,
1623
1623
  key: i.key
1624
1624
  })), n, (i) => this.getDefaultWidth(l.columns[i]), (i) => this.getDefaultMinWidth(l.columns[i])).forEach((i, r) => {
1625
1625
  let u = l.columns[r].key, c = l.columns[r];
1626
1626
  this.columnWidths.set(u, i);
1627
1627
  var a;
1628
- this.columnMinWidths.set(u, al((a = c.props.minWidth) !== null && a !== void 0 ? a : this.getDefaultMinWidth(c), e)), this.columnMaxWidths.set(u, rl(c.props.maxWidth, e));
1628
+ this.columnMinWidths.set(u, ul((a = c.props.minWidth) !== null && a !== void 0 ? a : this.getDefaultMinWidth(c), e)), this.columnMaxWidths.set(u, al(c.props.maxWidth, e));
1629
1629
  }), this.columnWidths;
1630
1630
  }
1631
1631
  constructor(e) {
@@ -1636,8 +1636,8 @@ class Tn {
1636
1636
  this.getDefaultMinWidth = (n = e?.getDefaultMinWidth) !== null && n !== void 0 ? n : () => 75;
1637
1637
  }
1638
1638
  }
1639
- function Fn(t, e) {
1640
- let { getDefaultWidth: l, getDefaultMinWidth: n, tableWidth: o = 0 } = t, [i, r] = Z(null), u = N(() => new Tn({
1639
+ function In(t, e) {
1640
+ let { getDefaultWidth: l, getDefaultMinWidth: n, tableWidth: o = 0 } = t, [i, r] = Z(null), u = N(() => new Fn({
1641
1641
  getDefaultWidth: l,
1642
1642
  getDefaultMinWidth: n
1643
1643
  }), [
@@ -1660,14 +1660,14 @@ function Fn(t, e) {
1660
1660
  a,
1661
1661
  c,
1662
1662
  u
1663
- ]), g = V((m) => {
1663
+ ]), g = j((m) => {
1664
1664
  r(m);
1665
1665
  }, [
1666
1666
  r
1667
- ]), y = V((m, $) => {
1668
- let b = u.resizeColumnWidth(e.collection, d, m, $), w = new Map(Array.from(a).map(([C]) => [
1669
- C,
1670
- b.get(C)
1667
+ ]), y = j((m, $) => {
1668
+ let b = u.resizeColumnWidth(e.collection, d, m, $), w = new Map(Array.from(a).map(([S]) => [
1669
+ S,
1670
+ b.get(S)
1671
1671
  ]));
1672
1672
  return w.set(m, $), s(w), b;
1673
1673
  }, [
@@ -1676,7 +1676,7 @@ function Fn(t, e) {
1676
1676
  u,
1677
1677
  e.collection,
1678
1678
  d
1679
- ]), v = V(() => {
1679
+ ]), v = j(() => {
1680
1680
  r(null);
1681
1681
  }, [
1682
1682
  r
@@ -1706,8 +1706,8 @@ function Fn(t, e) {
1706
1706
  e
1707
1707
  ]);
1708
1708
  }
1709
- function In(t) {
1710
- let { collection: e, focusMode: l } = t, n = t.UNSAFE_selectionState || ht(t), o = N(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
1709
+ function Wn(t) {
1710
+ let { collection: e, focusMode: l } = t, n = t.UNSAFE_selectionState || mt(t), o = N(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
1711
1711
  t.disabledKeys
1712
1712
  ]), i = n.setFocusedKey;
1713
1713
  n.setFocusedKey = (c, a) => {
@@ -1715,19 +1715,19 @@ function In(t) {
1715
1715
  let h = e.getItem(c);
1716
1716
  if (h?.type === "item") {
1717
1717
  var d, s;
1718
- let g = I(h, e);
1718
+ let g = W(h, e);
1719
1719
  var p, f;
1720
- a === "last" ? c = (p = (d = oe(g)) === null || d === void 0 ? void 0 : d.key) !== null && p !== void 0 ? p : null : c = (f = (s = ne(g)) === null || s === void 0 ? void 0 : s.key) !== null && f !== void 0 ? f : null;
1720
+ a === "last" ? c = (p = (d = ne(g)) === null || d === void 0 ? void 0 : d.key) !== null && p !== void 0 ? p : null : c = (f = (s = le(g)) === null || s === void 0 ? void 0 : s.key) !== null && f !== void 0 ? f : null;
1721
1721
  }
1722
1722
  }
1723
1723
  i(c, a);
1724
1724
  };
1725
- let r = N(() => new Dl(e, n), [
1725
+ let r = N(() => new Cl(e, n), [
1726
1726
  e,
1727
1727
  n
1728
1728
  ]);
1729
1729
  const u = M(null);
1730
- return se(() => {
1730
+ return ue(() => {
1731
1731
  if (n.focusedKey != null && u.current && !e.getItem(n.focusedKey)) {
1732
1732
  const c = u.current.getItem(n.focusedKey), a = c?.parentKey != null && (c.type === "cell" || c.type === "rowheader" || c.type === "column") ? u.current.getItem(c.parentKey) : c;
1733
1733
  if (!a) {
@@ -1745,7 +1745,7 @@ function In(t) {
1745
1745
  }
1746
1746
  if (h) {
1747
1747
  const g = h.hasChildNodes ? [
1748
- ...I(h, e)
1748
+ ...W(h, e)
1749
1749
  ] : [], y = h.hasChildNodes && a !== c && c && c.index < g.length ? g[c.index].key : h.key;
1750
1750
  n.setFocusedKey(y);
1751
1751
  } else n.setFocusedKey(null);
@@ -1763,7 +1763,7 @@ function In(t) {
1763
1763
  selectionManager: r
1764
1764
  };
1765
1765
  }
1766
- class Wn {
1766
+ class Hn {
1767
1767
  *[Symbol.iterator]() {
1768
1768
  yield* [
1769
1769
  ...this.rows
@@ -1863,10 +1863,10 @@ class Wn {
1863
1863
  o && (o.nextKey = null);
1864
1864
  }
1865
1865
  }
1866
- const ul = "row-header-column-" + /* @__PURE__ */ Math.random().toString(36).slice(2);
1866
+ const sl = "row-header-column-" + /* @__PURE__ */ Math.random().toString(36).slice(2);
1867
1867
  let Te = "row-header-column-" + /* @__PURE__ */ Math.random().toString(36).slice(2);
1868
- for (; ul === Te; ) Te = "row-header-column-" + Math.random().toString(36).slice(2);
1869
- function sl(t, e) {
1868
+ for (; sl === Te; ) Te = "row-header-column-" + Math.random().toString(36).slice(2);
1869
+ function dl(t, e) {
1870
1870
  if (e.length === 0) return [];
1871
1871
  let l = [], n = /* @__PURE__ */ new Map();
1872
1872
  for (let d of e) {
@@ -1961,7 +1961,7 @@ function sl(t, e) {
1961
1961
  textValue: ""
1962
1962
  }));
1963
1963
  }
1964
- class Hn extends Wn {
1964
+ class Vn extends Hn {
1965
1965
  *[Symbol.iterator]() {
1966
1966
  yield* this.body.childNodes;
1967
1967
  }
@@ -1983,11 +1983,11 @@ class Hn extends Wn {
1983
1983
  }
1984
1984
  getFirstKey() {
1985
1985
  var e, l;
1986
- return (l = (e = ne(this.body.childNodes)) === null || e === void 0 ? void 0 : e.key) !== null && l !== void 0 ? l : null;
1986
+ return (l = (e = le(this.body.childNodes)) === null || e === void 0 ? void 0 : e.key) !== null && l !== void 0 ? l : null;
1987
1987
  }
1988
1988
  getLastKey() {
1989
1989
  var e, l;
1990
- return (l = (e = oe(this.body.childNodes)) === null || e === void 0 ? void 0 : e.key) !== null && l !== void 0 ? l : null;
1990
+ return (l = (e = ne(this.body.childNodes)) === null || e === void 0 ? void 0 : e.key) !== null && l !== void 0 ? l : null;
1991
1991
  }
1992
1992
  getItem(e) {
1993
1993
  var l;
@@ -2022,7 +2022,7 @@ class Hn extends Wn {
2022
2022
  if (n?.showSelectionCheckboxes) {
2023
2023
  let s = {
2024
2024
  type: "column",
2025
- key: ul,
2025
+ key: sl,
2026
2026
  value: null,
2027
2027
  textValue: "",
2028
2028
  level: 0,
@@ -2068,7 +2068,7 @@ class Hn extends Wn {
2068
2068
  for (let p of s.childNodes) a(p);
2069
2069
  };
2070
2070
  for (let s of e) a(s);
2071
- let d = sl(c, r);
2071
+ let d = dl(c, r);
2072
2072
  if (d.forEach((s, p) => u.splice(p, 0, s)), super({
2073
2073
  columnCount: r.length,
2074
2074
  items: u,
@@ -2084,11 +2084,11 @@ class Hn extends Wn {
2084
2084
  }
2085
2085
  }
2086
2086
  }
2087
- const Vn = {
2087
+ const jn = {
2088
2088
  ascending: "descending",
2089
2089
  descending: "ascending"
2090
2090
  };
2091
- function jn(t) {
2091
+ function On(t) {
2092
2092
  let [e, l] = Z(!1), { selectionMode: n = "none", showSelectionCheckboxes: o, showDragButtons: i } = t, r = N(() => ({
2093
2093
  showSelectionCheckboxes: o && n !== "none",
2094
2094
  showDragButtons: i,
@@ -2099,9 +2099,9 @@ function jn(t) {
2099
2099
  o,
2100
2100
  n,
2101
2101
  i
2102
- ]), u = Cl(t, V((s) => new Hn(s, null, r), [
2102
+ ]), u = Sl(t, j((s) => new Vn(s, null, r), [
2103
2103
  r
2104
- ]), r), { disabledKeys: c, selectionManager: a } = In({
2104
+ ]), r), { disabledKeys: c, selectionManager: a } = Wn({
2105
2105
  ...t,
2106
2106
  collection: u,
2107
2107
  disabledBehavior: t.disabledBehavior || "selection"
@@ -2119,15 +2119,15 @@ function jn(t) {
2119
2119
  var f, h;
2120
2120
  (h = t.onSortChange) === null || h === void 0 || h.call(t, {
2121
2121
  column: s,
2122
- direction: p ?? (((f = t.sortDescriptor) === null || f === void 0 ? void 0 : f.column) === s ? Vn[t.sortDescriptor.direction] : "ascending")
2122
+ direction: p ?? (((f = t.sortDescriptor) === null || f === void 0 ? void 0 : f.column) === s ? jn[t.sortDescriptor.direction] : "ascending")
2123
2123
  });
2124
2124
  }
2125
2125
  };
2126
2126
  }
2127
- function On(t) {
2127
+ function Ln(t) {
2128
2128
  return t && t.__esModule ? t.default : t;
2129
2129
  }
2130
- class Ln extends El {
2130
+ class Un extends zl {
2131
2131
  addNode(e) {
2132
2132
  super.addNode(e), this.columnsDirty || (this.columnsDirty = e.type === "column"), e.type === "tableheader" && (this.head = e), e.type === "tablebody" && (this.body = e);
2133
2133
  }
@@ -2157,7 +2157,7 @@ class Ln extends El {
2157
2157
  for (let i of this.getChildren(o.key)) n(i);
2158
2158
  };
2159
2159
  for (let o of this.getChildren(this.head.key)) n(o);
2160
- if (this.headerRows = sl(l, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw new Error("A table must have at least one Column with the isRowHeader prop set to true");
2160
+ if (this.headerRows = dl(l, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw new Error("A table must have at least one Column with the isRowHeader prop set to true");
2161
2161
  }
2162
2162
  get columnCount() {
2163
2163
  return this.columns.length;
@@ -2207,25 +2207,25 @@ class Ln extends El {
2207
2207
  return o.join(" ");
2208
2208
  }
2209
2209
  constructor(...e) {
2210
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new tt("tableheader", -1), this.body = new tt("tablebody", -2), this.columnsDirty = !0;
2210
+ super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new lt("tableheader", -1), this.body = new lt("tablebody", -2), this.columnsDirty = !0;
2211
2211
  }
2212
2212
  }
2213
- const Le = /* @__PURE__ */ de(null), Un = /* @__PURE__ */ X(function(e, l) {
2214
- let n = ce(l), o = M(null), i = M(null), [r, u] = Z(0);
2215
- nt(() => {
2213
+ const Le = /* @__PURE__ */ se(null), Yn = /* @__PURE__ */ X(function(e, l) {
2214
+ let n = de(l), o = M(null), i = M(null), [r, u] = Z(0);
2215
+ ot(() => {
2216
2216
  let a = o.current;
2217
- for (; a && a !== n.current && !Fl(a); ) a = a.parentElement;
2217
+ for (; a && a !== n.current && !Il(a); ) a = a.parentElement;
2218
2218
  i.current = a;
2219
2219
  }, [
2220
2220
  n
2221
- ]), Tl({
2221
+ ]), Fl({
2222
2222
  ref: i,
2223
2223
  box: "border-box",
2224
2224
  onResize() {
2225
2225
  var a, d;
2226
2226
  u((d = (a = i.current) === null || a === void 0 ? void 0 : a.clientWidth) !== null && d !== void 0 ? d : 0);
2227
2227
  }
2228
- }), nt(() => {
2228
+ }), ot(() => {
2229
2229
  var a, d;
2230
2230
  u((d = (a = i.current) === null || a === void 0 ? void 0 : a.clientWidth) !== null && d !== void 0 ? d : 0);
2231
2231
  }, []);
@@ -2233,7 +2233,7 @@ const Le = /* @__PURE__ */ de(null), Un = /* @__PURE__ */ X(function(e, l) {
2233
2233
  tableRef: o,
2234
2234
  scrollRef: i,
2235
2235
  tableWidth: r,
2236
- useTableColumnResizeState: Fn,
2236
+ useTableColumnResizeState: In,
2237
2237
  onResizeStart: e.onResizeStart,
2238
2238
  onResize: e.onResize,
2239
2239
  onResizeEnd: e.onResizeEnd
@@ -2255,10 +2255,10 @@ const Le = /* @__PURE__ */ de(null), Un = /* @__PURE__ */ X(function(e, l) {
2255
2255
  }, /* @__PURE__ */ k.createElement(Le.Provider, {
2256
2256
  value: c
2257
2257
  }, e.children));
2258
- }), Yn = /* @__PURE__ */ de(null), ee = /* @__PURE__ */ de(null), Ue = /* @__PURE__ */ de(null), Xn = /* @__PURE__ */ X(function(e, l) {
2258
+ }), Xn = /* @__PURE__ */ se(null), ee = /* @__PURE__ */ se(null), Ue = /* @__PURE__ */ se(null), Gn = /* @__PURE__ */ X(function(e, l) {
2259
2259
  var n;
2260
- [e, l] = Rl(e, l, Yn);
2261
- let o = ht(e), { selectionBehavior: i, selectionMode: r, disallowEmptySelection: u } = o, c = !!(!((n = e.dragAndDropHooks) === null || n === void 0) && n.useDraggableCollectionState), a = N(() => ({
2260
+ [e, l] = Al(e, l, Xn);
2261
+ let o = mt(e), { selectionBehavior: i, selectionMode: r, disallowEmptySelection: u } = o, c = !!(!((n = e.dragAndDropHooks) === null || n === void 0) && n.useDraggableCollectionState), a = N(() => ({
2262
2262
  selectionBehavior: r === "none" ? null : i,
2263
2263
  selectionMode: r,
2264
2264
  disallowEmptySelection: u,
@@ -2268,36 +2268,36 @@ const Le = /* @__PURE__ */ de(null), Un = /* @__PURE__ */ X(function(e, l) {
2268
2268
  r,
2269
2269
  u,
2270
2270
  c
2271
- ]), d = /* @__PURE__ */ k.createElement(dl.Provider, {
2271
+ ]), d = /* @__PURE__ */ k.createElement(cl.Provider, {
2272
2272
  value: a
2273
2273
  }, /* @__PURE__ */ k.createElement(De, e));
2274
- return /* @__PURE__ */ k.createElement(Sl, {
2274
+ return /* @__PURE__ */ k.createElement(kl, {
2275
2275
  content: d,
2276
- createCollection: () => new Ln()
2277
- }, (s) => /* @__PURE__ */ k.createElement(Gn, {
2276
+ createCollection: () => new Un()
2277
+ }, (s) => /* @__PURE__ */ k.createElement(qn, {
2278
2278
  props: e,
2279
2279
  forwardedRef: l,
2280
2280
  selectionState: o,
2281
2281
  collection: s
2282
2282
  }));
2283
2283
  });
2284
- function Gn({ props: t, forwardedRef: e, selectionState: l, collection: n }) {
2285
- let o = R(Le);
2286
- e = ce(N(() => Al(e, o?.tableRef), [
2284
+ function qn({ props: t, forwardedRef: e, selectionState: l, collection: n }) {
2285
+ let o = A(Le);
2286
+ e = de(N(() => Bl(e, o?.tableRef), [
2287
2287
  e,
2288
2288
  o?.tableRef
2289
2289
  ]));
2290
- let i = jn({
2290
+ let i = On({
2291
2291
  ...t,
2292
2292
  collection: n,
2293
2293
  children: void 0,
2294
2294
  UNSAFE_selectionState: l
2295
- }), { isVirtualized: r, layoutDelegate: u, dropTargetDelegate: c, CollectionRoot: a } = R(Q), { dragAndDropHooks: d } = t, { gridProps: s } = xn({
2295
+ }), { isVirtualized: r, layoutDelegate: u, dropTargetDelegate: c, CollectionRoot: a } = A(Q), { dragAndDropHooks: d } = t, { gridProps: s } = wn({
2296
2296
  ...t,
2297
2297
  layoutDelegate: u,
2298
2298
  isVirtualized: r
2299
2299
  }, i, e), p = i.selectionManager, f = !!d?.useDraggableCollectionState, h = !!d?.useDroppableCollectionState, g = M(f), y = M(h);
2300
- se(() => {
2300
+ ue(() => {
2301
2301
  process.env.NODE_ENV !== "production" && (g.current !== f && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), y.current !== h && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));
2302
2302
  }, [
2303
2303
  f,
@@ -2310,8 +2310,8 @@ function Gn({ props: t, forwardedRef: e, selectionState: l, collection: n }) {
2310
2310
  selectionManager: p,
2311
2311
  preview: d.renderDragPreview ? w : void 0
2312
2312
  }), d.useDraggableCollection({}, v, e);
2313
- let L = d.DragPreview;
2314
- b = d.renderDragPreview ? /* @__PURE__ */ k.createElement(L, {
2313
+ let Y = d.DragPreview;
2314
+ b = d.renderDragPreview ? /* @__PURE__ */ k.createElement(Y, {
2315
2315
  ref: w
2316
2316
  }, d.renderDragPreview) : null;
2317
2317
  }
@@ -2320,7 +2320,7 @@ function Gn({ props: t, forwardedRef: e, selectionState: l, collection: n }) {
2320
2320
  collection: n,
2321
2321
  selectionManager: p
2322
2322
  });
2323
- let L = new zl({
2323
+ let Y = new Rl({
2324
2324
  collection: n,
2325
2325
  disabledKeys: p.disabledKeys,
2326
2326
  disabledBehavior: p.disabledBehavior,
@@ -2328,13 +2328,13 @@ function Gn({ props: t, forwardedRef: e, selectionState: l, collection: n }) {
2328
2328
  layoutDelegate: u
2329
2329
  }), te = d.dropTargetDelegate || c || new d.ListDropTargetDelegate(n.rows, e);
2330
2330
  m = d.useDroppableCollection({
2331
- keyboardDelegate: L,
2331
+ keyboardDelegate: Y,
2332
2332
  dropTargetDelegate: te
2333
2333
  }, x, e), $ = x.isDropTarget({
2334
2334
  type: "root"
2335
2335
  });
2336
2336
  }
2337
- let { focusProps: C, isFocused: B, isFocusVisible: P } = me(), E = re({
2337
+ let { focusProps: S, isFocused: B, isFocusVisible: P } = he(), E = ie({
2338
2338
  className: t.className,
2339
2339
  style: t.style,
2340
2340
  defaultClassName: "react-aria-Table",
@@ -2344,18 +2344,18 @@ function Gn({ props: t, forwardedRef: e, selectionState: l, collection: n }) {
2344
2344
  isFocusVisible: P,
2345
2345
  state: i
2346
2346
  }
2347
- }), W = !!(f && !v?.isDisabled), K = E.style, T = null;
2348
- o && (T = o.useTableColumnResizeState({
2347
+ }), T = !!(f && !v?.isDisabled), K = E.style, F = null;
2348
+ o && (F = o.useTableColumnResizeState({
2349
2349
  tableWidth: o.tableWidth
2350
2350
  }, i), r || (K = {
2351
2351
  ...K,
2352
2352
  tableLayout: "fixed",
2353
2353
  width: "fit-content"
2354
2354
  }));
2355
- let O = j("table"), F = J(t, {
2355
+ let L = O("table"), I = J(t, {
2356
2356
  global: !0
2357
2357
  });
2358
- var Y;
2358
+ var U;
2359
2359
  return /* @__PURE__ */ k.createElement(Ae, {
2360
2360
  values: [
2361
2361
  [
@@ -2364,10 +2364,10 @@ function Gn({ props: t, forwardedRef: e, selectionState: l, collection: n }) {
2364
2364
  ],
2365
2365
  [
2366
2366
  Ue,
2367
- T
2367
+ F
2368
2368
  ],
2369
2369
  [
2370
- ge,
2370
+ me,
2371
2371
  {
2372
2372
  dragAndDropHooks: d,
2373
2373
  dragState: v,
@@ -2375,54 +2375,54 @@ function Gn({ props: t, forwardedRef: e, selectionState: l, collection: n }) {
2375
2375
  }
2376
2376
  ],
2377
2377
  [
2378
- Pl,
2378
+ Kl,
2379
2379
  {
2380
- render: to
2380
+ render: lo
2381
2381
  }
2382
2382
  ]
2383
2383
  ]
2384
- }, /* @__PURE__ */ k.createElement(Ul, null, /* @__PURE__ */ k.createElement(O, {
2385
- ...H(F, E, s, C, m?.collectionProps),
2384
+ }, /* @__PURE__ */ k.createElement(Yl, null, /* @__PURE__ */ k.createElement(L, {
2385
+ ...H(I, E, s, S, m?.collectionProps),
2386
2386
  style: K,
2387
2387
  ref: e,
2388
2388
  slot: t.slot || void 0,
2389
2389
  onScroll: t.onScroll,
2390
- "data-allows-dragging": W || void 0,
2390
+ "data-allows-dragging": T || void 0,
2391
2391
  "data-drop-target": $ || void 0,
2392
2392
  "data-focused": B || void 0,
2393
2393
  "data-focus-visible": P || void 0
2394
2394
  }, /* @__PURE__ */ k.createElement(a, {
2395
2395
  collection: n,
2396
- scrollRef: (Y = o?.scrollRef) !== null && Y !== void 0 ? Y : e,
2397
- persistedKeys: Kl(p, d, x)
2396
+ scrollRef: (U = o?.scrollRef) !== null && U !== void 0 ? U : e,
2397
+ persistedKeys: Ml(p, d, x)
2398
2398
  }))), b);
2399
2399
  }
2400
- function j(t) {
2401
- let { isVirtualized: e } = R(Q);
2400
+ function O(t) {
2401
+ let { isVirtualized: e } = A(Q);
2402
2402
  return e ? "div" : t;
2403
2403
  }
2404
- const dl = /* @__PURE__ */ de(null);
2405
- function cl() {
2406
- return R(dl);
2404
+ const cl = /* @__PURE__ */ se(null);
2405
+ function fl() {
2406
+ return A(cl);
2407
2407
  }
2408
- const qn = /* @__PURE__ */ We("tableheader", (t, e) => {
2409
- let l = R(ee).collection, n = kl({
2408
+ const Zn = /* @__PURE__ */ We("tableheader", (t, e) => {
2409
+ let l = A(ee).collection, n = El({
2410
2410
  items: l.headerRows,
2411
- children: V((a) => {
2411
+ children: j((a) => {
2412
2412
  switch (a.type) {
2413
2413
  case "headerrow":
2414
- return /* @__PURE__ */ k.createElement(Zn, {
2414
+ return /* @__PURE__ */ k.createElement(Qn, {
2415
2415
  item: a
2416
2416
  });
2417
2417
  default:
2418
2418
  throw new Error("Unsupported node type in TableHeader: " + a.type);
2419
2419
  }
2420
2420
  }, [])
2421
- }), o = j("thead"), { rowGroupProps: i } = il(), { hoverProps: r, isHovered: u } = Ce({
2421
+ }), o = O("thead"), { rowGroupProps: i } = rl(), { hoverProps: r, isHovered: u } = Ce({
2422
2422
  onHoverStart: t.onHoverStart,
2423
2423
  onHoverChange: t.onHoverChange,
2424
2424
  onHoverEnd: t.onHoverEnd
2425
- }), c = re({
2425
+ }), c = ie({
2426
2426
  className: t.className,
2427
2427
  style: t.style,
2428
2428
  defaultClassName: "react-aria-TableHeader",
@@ -2442,18 +2442,18 @@ const qn = /* @__PURE__ */ We("tableheader", (t, e) => {
2442
2442
  dependencies: t.dependencies,
2443
2443
  items: t.columns
2444
2444
  }, t.children));
2445
- function Zn({ item: t }) {
2446
- let e = M(null), l = R(ee), { isVirtualized: n, CollectionBranch: o } = R(Q), { rowProps: i } = Sn({
2445
+ function Qn({ item: t }) {
2446
+ let e = M(null), l = A(ee), { isVirtualized: n, CollectionBranch: o } = A(Q), { rowProps: i } = kn({
2447
2447
  node: t,
2448
2448
  isVirtualized: n
2449
- }, l, e), { checkboxProps: r } = Rn(l), u = j("tr");
2449
+ }, l, e), { checkboxProps: r } = An(l), u = O("tr");
2450
2450
  return /* @__PURE__ */ k.createElement(u, {
2451
2451
  ...i,
2452
2452
  ref: e
2453
2453
  }, /* @__PURE__ */ k.createElement(Ae, {
2454
2454
  values: [
2455
2455
  [
2456
- ft,
2456
+ pt,
2457
2457
  {
2458
2458
  slots: {
2459
2459
  selection: r
@@ -2466,12 +2466,12 @@ function Zn({ item: t }) {
2466
2466
  parent: t
2467
2467
  })));
2468
2468
  }
2469
- const Qn = /* @__PURE__ */ mt("column", (t, e, l) => {
2469
+ const Jn = /* @__PURE__ */ gt("column", (t, e, l) => {
2470
2470
  var n, o;
2471
- let i = ce(e), r = R(ee), { isVirtualized: u } = R(Q), { columnHeaderProps: c } = Dn({
2471
+ let i = de(e), r = A(ee), { isVirtualized: u } = A(Q), { columnHeaderProps: c } = Cn({
2472
2472
  node: l,
2473
2473
  isVirtualized: u
2474
- }, r, i), { isFocused: a, isFocusVisible: d, focusProps: s } = me(), p = R(Ue), f = !1;
2474
+ }, r, i), { isFocused: a, isFocusVisible: d, focusProps: s } = he(), p = A(Ue), f = !1;
2475
2475
  if (p) f = p.resizingColumn === l.key;
2476
2476
  else if (process.env.NODE_ENV !== "production")
2477
2477
  for (let $ in [
@@ -2482,7 +2482,7 @@ const Qn = /* @__PURE__ */ mt("column", (t, e, l) => {
2482
2482
  ]) $ in l.props && console.warn(`The ${$} prop on a <Column> only applies when a <Table> is wrapped in a <ResizableTableContainer>. If you aren't using column resizing, you can set the width of a column with CSS.`);
2483
2483
  let { hoverProps: h, isHovered: g } = Ce({
2484
2484
  isDisabled: !t.allowsSorting
2485
- }), y = re({
2485
+ }), y = ie({
2486
2486
  ...t,
2487
2487
  id: void 0,
2488
2488
  children: l.rendered,
@@ -2508,7 +2508,7 @@ const Qn = /* @__PURE__ */ mt("column", (t, e, l) => {
2508
2508
  ...v,
2509
2509
  width: p.getColumnWidth(l.key)
2510
2510
  });
2511
- let x = j("th"), m = J(t, {
2511
+ let x = O("th"), m = J(t, {
2512
2512
  global: !0
2513
2513
  });
2514
2514
  return delete m.id, /* @__PURE__ */ k.createElement(x, {
@@ -2525,7 +2525,7 @@ const Qn = /* @__PURE__ */ mt("column", (t, e, l) => {
2525
2525
  }, /* @__PURE__ */ k.createElement(Ae, {
2526
2526
  values: [
2527
2527
  [
2528
- fl,
2528
+ pl,
2529
2529
  {
2530
2530
  column: l,
2531
2531
  triggerRef: i
@@ -2533,32 +2533,32 @@ const Qn = /* @__PURE__ */ mt("column", (t, e, l) => {
2533
2533
  ],
2534
2534
  [
2535
2535
  Q,
2536
- gt
2536
+ bt
2537
2537
  ]
2538
2538
  ]
2539
2539
  }, y.children));
2540
- }), fl = /* @__PURE__ */ de(null), Jn = /* @__PURE__ */ X(function(e, l) {
2541
- let n = R(Ue);
2540
+ }), pl = /* @__PURE__ */ se(null), _n = /* @__PURE__ */ X(function(e, l) {
2541
+ let n = A(Ue);
2542
2542
  if (!n) throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
2543
- let o = ve(On(Ml), "react-aria-components"), { onResizeStart: i, onResize: r, onResizeEnd: u } = R(Le), { column: c, triggerRef: a } = R(fl), d = M(null), { resizerProps: s, inputProps: p, isResizing: f } = Bn({
2543
+ let o = be(Ln(Nl), "react-aria-components"), { onResizeStart: i, onResize: r, onResizeEnd: u } = A(Le), { column: c, triggerRef: a } = A(pl), d = M(null), { resizerProps: s, inputProps: p, isResizing: f } = Pn({
2544
2544
  column: c,
2545
2545
  "aria-label": e["aria-label"] || o.format("tableResizer"),
2546
2546
  onResizeStart: i,
2547
2547
  onResize: r,
2548
2548
  onResizeEnd: u,
2549
2549
  triggerRef: a
2550
- }, n, d), { focusProps: h, isFocused: g, isFocusVisible: y } = me(), { hoverProps: v, isHovered: x } = Ce(e), m = n.getColumnMinWidth(c.key) >= n.getColumnWidth(c.key), $ = n.getColumnMaxWidth(c.key) <= n.getColumnWidth(c.key), { direction: b } = be(), w = "both";
2550
+ }, n, d), { focusProps: h, isFocused: g, isFocusVisible: y } = he(), { hoverProps: v, isHovered: x } = Ce(e), m = n.getColumnMinWidth(c.key) >= n.getColumnWidth(c.key), $ = n.getColumnMaxWidth(c.key) <= n.getColumnWidth(c.key), { direction: b } = ge(), w = "both";
2551
2551
  m ? w = b === "rtl" ? "right" : "left" : $ ? w = b === "rtl" ? "left" : "right" : w = "both";
2552
- let C = ce(l), [B, P] = Z("");
2553
- se(() => {
2554
- if (!C.current) return;
2555
- let F = window.getComputedStyle(C.current);
2556
- P(F.cursor);
2552
+ let S = de(l), [B, P] = Z("");
2553
+ ue(() => {
2554
+ if (!S.current) return;
2555
+ let I = window.getComputedStyle(S.current);
2556
+ P(I.cursor);
2557
2557
  }, [
2558
- C,
2558
+ S,
2559
2559
  w
2560
2560
  ]);
2561
- let E = re({
2561
+ let E = ie({
2562
2562
  ...e,
2563
2563
  defaultClassName: "react-aria-ColumnResizer",
2564
2564
  values: {
@@ -2568,18 +2568,18 @@ const Qn = /* @__PURE__ */ mt("column", (t, e, l) => {
2568
2568
  isHovered: x,
2569
2569
  resizableDirection: w
2570
2570
  }
2571
- }), [W, K] = Z(!1), T = (F) => {
2572
- F.pointerType === "mouse" && K(!0);
2571
+ }), [T, K] = Z(!1), F = (I) => {
2572
+ I.pointerType === "mouse" && K(!0);
2573
2573
  };
2574
- !f && W && K(!1);
2575
- let O = J(e, {
2574
+ !f && T && K(!1);
2575
+ let L = J(e, {
2576
2576
  global: !0
2577
2577
  });
2578
2578
  return /* @__PURE__ */ k.createElement("div", {
2579
- ref: C,
2579
+ ref: S,
2580
2580
  role: "presentation",
2581
- ...H(O, E, s, {
2582
- onPointerDown: T
2581
+ ...H(L, E, s, {
2582
+ onPointerDown: F
2583
2583
  }, v),
2584
2584
  "data-hovered": x || void 0,
2585
2585
  "data-focused": g || void 0,
@@ -2589,7 +2589,7 @@ const Qn = /* @__PURE__ */ mt("column", (t, e, l) => {
2589
2589
  }, E.children, /* @__PURE__ */ k.createElement("input", {
2590
2590
  ref: d,
2591
2591
  ...H(p, h)
2592
- }), f && W && /* @__PURE__ */ Il.createPortal(/* @__PURE__ */ k.createElement("div", {
2592
+ }), f && T && /* @__PURE__ */ Wl.createPortal(/* @__PURE__ */ k.createElement("div", {
2593
2593
  style: {
2594
2594
  position: "fixed",
2595
2595
  top: 0,
@@ -2599,67 +2599,67 @@ const Qn = /* @__PURE__ */ mt("column", (t, e, l) => {
2599
2599
  cursor: B
2600
2600
  }
2601
2601
  }), document.body));
2602
- }), _n = /* @__PURE__ */ We("tablebody", (t, e) => {
2603
- let l = R(ee), { isVirtualized: n } = R(Q), o = l.collection, { CollectionBranch: i } = R(Q), { dragAndDropHooks: r, dropState: u } = R(ge), c = !!r?.useDroppableCollectionState && !u?.isDisabled;
2602
+ }), eo = /* @__PURE__ */ We("tablebody", (t, e) => {
2603
+ let l = A(ee), { isVirtualized: n } = A(Q), o = l.collection, { CollectionBranch: i } = A(Q), { dragAndDropHooks: r, dropState: u } = A(me), c = !!r?.useDroppableCollectionState && !u?.isDisabled;
2604
2604
  var a;
2605
2605
  let d = c && !!u && ((a = u.isDropTarget({
2606
2606
  type: "root"
2607
2607
  })) !== null && a !== void 0 ? a : !1), s = o.size === 0, p = {
2608
2608
  isDropTarget: d,
2609
2609
  isEmpty: s
2610
- }, f = re({
2610
+ }, f = ie({
2611
2611
  ...t,
2612
2612
  id: void 0,
2613
2613
  children: void 0,
2614
2614
  defaultClassName: "react-aria-TableBody",
2615
2615
  values: p
2616
- }), h, g = j("tr"), y = j("td"), v = o.columnCount;
2616
+ }), h, g = O("tr"), y = O("td"), v = o.columnCount;
2617
2617
  if (s && t.renderEmptyState && l) {
2618
- let b = {}, w = {}, C = {};
2619
- n ? (w["aria-colspan"] = v, C = {
2618
+ let b = {}, w = {}, S = {};
2619
+ n ? (w["aria-colspan"] = v, S = {
2620
2620
  display: "contents"
2621
2621
  }) : w.colSpan = v, h = /* @__PURE__ */ k.createElement(g, {
2622
2622
  role: "row",
2623
2623
  ...b,
2624
- style: C
2624
+ style: S
2625
2625
  }, /* @__PURE__ */ k.createElement(y, {
2626
2626
  role: "rowheader",
2627
2627
  ...w,
2628
- style: C
2628
+ style: S
2629
2629
  }, t.renderEmptyState(p)));
2630
2630
  }
2631
- let { rowGroupProps: x } = il(), m = j("tbody"), $ = J(t, {
2631
+ let { rowGroupProps: x } = rl(), m = O("tbody"), $ = J(t, {
2632
2632
  global: !0
2633
2633
  });
2634
2634
  return /* @__PURE__ */ k.createElement(m, {
2635
2635
  ...H($, f, x),
2636
2636
  ref: e,
2637
2637
  "data-empty": s || void 0
2638
- }, c && /* @__PURE__ */ k.createElement(oo, null), /* @__PURE__ */ k.createElement(i, {
2638
+ }, c && /* @__PURE__ */ k.createElement(io, null), /* @__PURE__ */ k.createElement(i, {
2639
2639
  collection: o,
2640
2640
  parent: o.body,
2641
- renderDropIndicator: Bl(r, u)
2641
+ renderDropIndicator: Pl(r, u)
2642
2642
  }), h);
2643
- }), st = /* @__PURE__ */ We("item", (t, e, l) => {
2644
- let n = ce(e), o = R(ee), { dragAndDropHooks: i, dragState: r, dropState: u } = R(ge), { isVirtualized: c, CollectionBranch: a } = R(Q), { rowProps: d, ...s } = Cn({
2643
+ }), dt = /* @__PURE__ */ We("item", (t, e, l) => {
2644
+ let n = de(e), o = A(ee), { dragAndDropHooks: i, dragState: r, dropState: u } = A(me), { isVirtualized: c, CollectionBranch: a } = A(Q), { rowProps: d, ...s } = Sn({
2645
2645
  node: l,
2646
2646
  shouldSelectOnPressUp: !!r,
2647
2647
  isVirtualized: c
2648
- }, o, n), { isFocused: p, isFocusVisible: f, focusProps: h } = me(), { isFocusVisible: g, focusProps: y } = me({
2648
+ }, o, n), { isFocused: p, isFocusVisible: f, focusProps: h } = he(), { isFocusVisible: g, focusProps: y } = he({
2649
2649
  within: !0
2650
2650
  }), { hoverProps: v, isHovered: x } = Ce({
2651
2651
  isDisabled: !s.allowsSelection && !s.hasAction,
2652
2652
  onHoverStart: t.onHoverStart,
2653
2653
  onHoverChange: t.onHoverChange,
2654
2654
  onHoverEnd: t.onHoverEnd
2655
- }), { checkboxProps: m } = zn({
2655
+ }), { checkboxProps: m } = Rn({
2656
2656
  key: l.key
2657
2657
  }, o), $;
2658
2658
  r && i && ($ = i.useDraggableItem({
2659
2659
  key: l.key,
2660
2660
  hasDragButton: !0
2661
2661
  }, r));
2662
- let b, w = M(null), { visuallyHiddenProps: C } = Pe();
2662
+ let b, w = M(null), { visuallyHiddenProps: S } = Pe();
2663
2663
  u && i && (b = i.useDropIndicator({
2664
2664
  target: {
2665
2665
  type: "item",
@@ -2668,11 +2668,11 @@ const Qn = /* @__PURE__ */ mt("column", (t, e, l) => {
2668
2668
  }
2669
2669
  }, u, w));
2670
2670
  let B = M(null);
2671
- se(() => {
2671
+ ue(() => {
2672
2672
  r && !B.current && process.env.NODE_ENV !== "production" && console.warn('Draggable items in a Table must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.');
2673
2673
  }, []);
2674
- let P = r && r.isDragging(l.key), { children: E, ...W } = t, K = re({
2675
- ...W,
2674
+ let P = r && r.isDragging(l.key), { children: E, ...T } = t, K = ie({
2675
+ ...T,
2676
2676
  id: void 0,
2677
2677
  defaultClassName: "react-aria-Row",
2678
2678
  values: {
@@ -2687,15 +2687,15 @@ const Qn = /* @__PURE__ */ mt("column", (t, e, l) => {
2687
2687
  isFocusVisibleWithin: g,
2688
2688
  id: l.key
2689
2689
  }
2690
- }), T = j("tr"), O = j("td"), F = J(t, {
2690
+ }), F = O("tr"), L = O("td"), I = J(t, {
2691
2691
  global: !0
2692
2692
  });
2693
- return delete F.id, delete F.onClick, /* @__PURE__ */ k.createElement(k.Fragment, null, b && !b.isHidden && /* @__PURE__ */ k.createElement(T, {
2693
+ return delete I.id, delete I.onClick, /* @__PURE__ */ k.createElement(k.Fragment, null, b && !b.isHidden && /* @__PURE__ */ k.createElement(F, {
2694
2694
  role: "row",
2695
2695
  style: {
2696
2696
  height: 0
2697
2697
  }
2698
- }, /* @__PURE__ */ k.createElement(O, {
2698
+ }, /* @__PURE__ */ k.createElement(L, {
2699
2699
  role: "gridcell",
2700
2700
  colSpan: o.collection.columnCount,
2701
2701
  style: {
@@ -2703,11 +2703,11 @@ const Qn = /* @__PURE__ */ mt("column", (t, e, l) => {
2703
2703
  }
2704
2704
  }, /* @__PURE__ */ k.createElement("div", {
2705
2705
  role: "button",
2706
- ...C,
2706
+ ...S,
2707
2707
  ...b.dropIndicatorProps,
2708
2708
  ref: w
2709
- }))), /* @__PURE__ */ k.createElement(T, {
2710
- ...H(F, K, d, h, v, $?.dragProps, y),
2709
+ }))), /* @__PURE__ */ k.createElement(F, {
2710
+ ...H(I, K, d, h, v, $?.dragProps, y),
2711
2711
  ref: n,
2712
2712
  "data-disabled": s.isDisabled || void 0,
2713
2713
  "data-selected": s.isSelected || void 0,
@@ -2722,19 +2722,19 @@ const Qn = /* @__PURE__ */ mt("column", (t, e, l) => {
2722
2722
  }, /* @__PURE__ */ k.createElement(Ae, {
2723
2723
  values: [
2724
2724
  [
2725
- ft,
2725
+ pt,
2726
2726
  {
2727
2727
  slots: {
2728
- [lt]: {},
2728
+ [nt]: {},
2729
2729
  selection: m
2730
2730
  }
2731
2731
  }
2732
2732
  ],
2733
2733
  [
2734
- ct,
2734
+ ft,
2735
2735
  {
2736
2736
  slots: {
2737
- [lt]: {},
2737
+ [nt]: {},
2738
2738
  drag: {
2739
2739
  ...$?.dragButtonProps,
2740
2740
  ref: B,
@@ -2760,14 +2760,14 @@ const Qn = /* @__PURE__ */ mt("column", (t, e, l) => {
2760
2760
  items: t.columns,
2761
2761
  idScope: t.id
2762
2762
  }, t.children);
2763
- }), eo = /* @__PURE__ */ mt("cell", (t, e, l) => {
2764
- let n = ce(e), o = R(ee), { dragState: i } = R(ge), { isVirtualized: r } = R(Q);
2763
+ }), to = /* @__PURE__ */ gt("cell", (t, e, l) => {
2764
+ let n = de(e), o = A(ee), { dragState: i } = A(me), { isVirtualized: r } = A(Q);
2765
2765
  l.column = o.collection.columns[l.index];
2766
- let { gridCellProps: u, isPressed: c } = kn({
2766
+ let { gridCellProps: u, isPressed: c } = En({
2767
2767
  node: l,
2768
2768
  shouldSelectOnPressUp: !!i,
2769
2769
  isVirtualized: r
2770
- }, o, n), { isFocused: a, isFocusVisible: d, focusProps: s } = me(), { hoverProps: p, isHovered: f } = Ce({}), h = re({
2770
+ }, o, n), { isFocused: a, isFocusVisible: d, focusProps: s } = he(), { hoverProps: p, isHovered: f } = Ce({}), h = ie({
2771
2771
  ...t,
2772
2772
  id: void 0,
2773
2773
  defaultClassName: "react-aria-Cell",
@@ -2778,7 +2778,7 @@ const Qn = /* @__PURE__ */ mt("column", (t, e, l) => {
2778
2778
  isHovered: f,
2779
2779
  id: l.key
2780
2780
  }
2781
- }), g = j("td"), y = J(t, {
2781
+ }), g = O("td"), y = J(t, {
2782
2782
  global: !0
2783
2783
  });
2784
2784
  return delete y.id, /* @__PURE__ */ k.createElement(g, {
@@ -2788,13 +2788,13 @@ const Qn = /* @__PURE__ */ mt("column", (t, e, l) => {
2788
2788
  "data-focus-visible": d || void 0,
2789
2789
  "data-pressed": c || void 0
2790
2790
  }, /* @__PURE__ */ k.createElement(Q.Provider, {
2791
- value: gt
2791
+ value: bt
2792
2792
  }, h.children));
2793
2793
  });
2794
- function to(t, e) {
2795
- e = ce(e);
2796
- let { dragAndDropHooks: l, dropState: n } = R(ge), o = M(null), { dropIndicatorProps: i, isHidden: r, isDropTarget: u } = l.useDropIndicator(t, n, o);
2797
- return r ? null : /* @__PURE__ */ k.createElement(no, {
2794
+ function lo(t, e) {
2795
+ e = de(e);
2796
+ let { dragAndDropHooks: l, dropState: n } = A(me), o = M(null), { dropIndicatorProps: i, isHidden: r, isDropTarget: u } = l.useDropIndicator(t, n, o);
2797
+ return r ? null : /* @__PURE__ */ k.createElement(oo, {
2798
2798
  ...t,
2799
2799
  dropIndicatorProps: i,
2800
2800
  isDropTarget: u,
@@ -2802,14 +2802,14 @@ function to(t, e) {
2802
2802
  ref: e
2803
2803
  });
2804
2804
  }
2805
- function lo(t, e) {
2806
- let { dropIndicatorProps: l, isDropTarget: n, buttonRef: o, ...i } = t, r = R(ee), { visuallyHiddenProps: u } = Pe(), c = re({
2805
+ function no(t, e) {
2806
+ let { dropIndicatorProps: l, isDropTarget: n, buttonRef: o, ...i } = t, r = A(ee), { visuallyHiddenProps: u } = Pe(), c = ie({
2807
2807
  ...i,
2808
2808
  defaultClassName: "react-aria-DropIndicator",
2809
2809
  values: {
2810
2810
  isDropTarget: n
2811
2811
  }
2812
- }), a = j("tr"), d = j("td");
2812
+ }), a = O("tr"), d = O("td");
2813
2813
  return /* @__PURE__ */ k.createElement(a, {
2814
2814
  ...J(t, {
2815
2815
  global: !0
@@ -2831,15 +2831,15 @@ function lo(t, e) {
2831
2831
  ref: o
2832
2832
  }), c.children));
2833
2833
  }
2834
- const no = /* @__PURE__ */ X(lo);
2835
- function oo() {
2836
- let t = R(ee), { dragAndDropHooks: e, dropState: l } = R(ge), n = M(null), { dropIndicatorProps: o } = e.useDropIndicator({
2834
+ const oo = /* @__PURE__ */ X(no);
2835
+ function io() {
2836
+ let t = A(ee), { dragAndDropHooks: e, dropState: l } = A(me), n = M(null), { dropIndicatorProps: o } = e.useDropIndicator({
2837
2837
  target: {
2838
2838
  type: "root"
2839
2839
  }
2840
2840
  }, l, n), i = l.isDropTarget({
2841
2841
  type: "root"
2842
- }), { visuallyHiddenProps: r } = Pe(), u = j("tr"), c = j("td");
2842
+ }), { visuallyHiddenProps: r } = Pe(), u = O("tr"), c = O("td");
2843
2843
  return !i && o["aria-hidden"] ? null : /* @__PURE__ */ k.createElement(u, {
2844
2844
  role: "row",
2845
2845
  "aria-hidden": o["aria-hidden"],
@@ -2859,10 +2859,10 @@ function oo() {
2859
2859
  ref: n
2860
2860
  })));
2861
2861
  }
2862
- const Ke = /* @__PURE__ */ de(null);
2862
+ const Ke = /* @__PURE__ */ se(null);
2863
2863
  Ke.displayName = "DataTableContext";
2864
- const ye = () => {
2865
- const t = R(
2864
+ const ve = () => {
2865
+ const t = A(
2866
2866
  Ke
2867
2867
  );
2868
2868
  if (!t)
@@ -2882,11 +2882,11 @@ var Fe = (t, e) => {
2882
2882
  n(o, e, !1);
2883
2883
  }
2884
2884
  return l;
2885
- }, pl = (t) => t.replace(/[|\\{}()[\]^$+*?.-]/g, (e) => `\\${e}`);
2886
- function io(t) {
2885
+ }, hl = (t) => t.replace(/[|\\{}()[\]^$+*?.-]/g, (e) => `\\${e}`);
2886
+ function ro(t) {
2887
2887
  const { text: e, query: l, ignoreCase: n, exactMatch: o } = t;
2888
2888
  if (o) {
2889
- const d = pl(l), s = new RegExp(`\\b(${d})\\b`, n ? "i" : ""), p = e.match(s);
2889
+ const d = hl(l), s = new RegExp(`\\b(${d})\\b`, n ? "i" : ""), p = e.match(s);
2890
2890
  if (!p || p.index === void 0)
2891
2891
  return [{ text: e, match: !1 }];
2892
2892
  const f = p.index, h = f + p[0].length;
@@ -2904,15 +2904,15 @@ function io(t) {
2904
2904
  match: !!d.match
2905
2905
  }));
2906
2906
  }
2907
- var ro = (t, e, l) => {
2908
- const n = t.filter(Boolean).map((i) => pl(i)), o = l ? `\\b(${n.join("|")})\\b` : `(${n.join("|")})`;
2907
+ var ao = (t, e, l) => {
2908
+ const n = t.filter(Boolean).map((i) => hl(i)), o = l ? `\\b(${n.join("|")})\\b` : `(${n.join("|")})`;
2909
2909
  return new RegExp(o, e);
2910
- }, ao = (t, e = !0) => `${t ? "i" : ""}${e ? "g" : ""}`;
2911
- function uo(t) {
2910
+ }, uo = (t, e = !0) => `${t ? "i" : ""}${e ? "g" : ""}`;
2911
+ function so(t) {
2912
2912
  const { text: e, query: l, ignoreCase: n, matchAll: o, exactMatch: i } = t;
2913
2913
  if (l.length === 0)
2914
2914
  return [{ text: e, match: !1 }];
2915
- const r = ao(n, o), u = ro(Array.isArray(l) ? l : [l], r, i), c = [...e.matchAll(u)].map((a) => ({
2915
+ const r = uo(n, o), u = ao(Array.isArray(l) ? l : [l], r, i), c = [...e.matchAll(u)].map((a) => ({
2916
2916
  start: a.index || 0,
2917
2917
  end: (a.index || 0) + a[0].length
2918
2918
  }));
@@ -2921,33 +2921,33 @@ function uo(t) {
2921
2921
  match: !!a.match
2922
2922
  }));
2923
2923
  }
2924
- var so = (t) => {
2924
+ var co = (t) => {
2925
2925
  if (t.matchAll == null && (t.matchAll = Array.isArray(t.query)), !t.matchAll && Array.isArray(t.query))
2926
2926
  throw new Error("matchAll must be true when using multiple queries");
2927
- return t.matchAll ? uo(t) : io(t);
2927
+ return t.matchAll ? so(t) : ro(t);
2928
2928
  };
2929
- const co = (t) => N(() => so(t), [t]), { withContext: fo } = /* @__PURE__ */ sn({
2929
+ const fo = (t) => N(() => co(t), [t]), { withContext: po } = /* @__PURE__ */ dn({
2930
2930
  key: "mark"
2931
- }), po = /* @__PURE__ */ fo("mark");
2932
- function ho(t) {
2931
+ }), ho = /* @__PURE__ */ po("mark");
2932
+ function mo(t) {
2933
2933
  const { each: e, fallback: l, children: n } = t;
2934
2934
  return e?.length === 0 ? l || null : e?.map(n);
2935
2935
  }
2936
- function mo(t) {
2936
+ function go(t) {
2937
2937
  const { children: e, query: l, ignoreCase: n, matchAll: o, styles: i } = t;
2938
2938
  if (typeof e != "string")
2939
2939
  throw new Error("The children prop of Highlight must be a string");
2940
- const r = co({
2940
+ const r = fo({
2941
2941
  query: l,
2942
2942
  text: e,
2943
2943
  matchAll: o,
2944
2944
  ignoreCase: n
2945
2945
  });
2946
- return /* @__PURE__ */ D(ho, { each: r, children: (u, c) => u.match ? /* @__PURE__ */ D(po, { css: i, children: u.text }, c) : /* @__PURE__ */ D($l, { children: u.text }, c) });
2946
+ return /* @__PURE__ */ D(mo, { each: r, children: (u, c) => u.match ? /* @__PURE__ */ D(ho, { css: i, children: u.text }, c) : /* @__PURE__ */ D(xl, { children: u.text }, c) });
2947
2947
  }
2948
- const he = /* @__PURE__ */ X(function({ children: e, isDisabled: l, ...n }, o) {
2949
- return /* @__PURE__ */ D(eo, { ref: o, ...n, children: (i) => /* @__PURE__ */ D(ct.Provider, { value: { isDisabled: l }, children: typeof e == "function" ? e(i) : e }) });
2950
- }), go = /* @__PURE__ */ en({
2948
+ const pe = /* @__PURE__ */ X(function({ children: e, isDisabled: l, ...n }, o) {
2949
+ return /* @__PURE__ */ D(to, { ref: o, ...n, children: (i) => /* @__PURE__ */ D(ft.Provider, { value: { isDisabled: l }, children: typeof e == "function" ? e(i) : e }) });
2950
+ }), bo = /* @__PURE__ */ tn({
2951
2951
  // Available slots for the DataTable component
2952
2952
  slots: [
2953
2953
  "root",
@@ -3223,25 +3223,25 @@ const he = /* @__PURE__ */ X(function({ children: e, isDisabled: l, ...n }, o) {
3223
3223
  }
3224
3224
  }
3225
3225
  }
3226
- }), { withProvider: bo, withContext: ae } = /* @__PURE__ */ tn({
3226
+ }), { withProvider: vo, withContext: re } = /* @__PURE__ */ ln({
3227
3227
  key: "data-table",
3228
- recipe: go
3229
- }), vo = /* @__PURE__ */ bo(
3228
+ recipe: bo
3229
+ }), yo = /* @__PURE__ */ vo(
3230
3230
  "div",
3231
3231
  "root"
3232
- ), yo = /* @__PURE__ */ ae("table", "table"), $o = /* @__PURE__ */ ae("th", "column"), xo = /* @__PURE__ */ ae("footer", "footer"), wo = /* @__PURE__ */ ae("td", "selectionCell"), hl = /* @__PURE__ */ ae("button", "expandButton"), Do = /* @__PURE__ */ ae("span", "nestedIcon"), Co = /* @__PURE__ */ ae("span", "headerSortIcon"), So = /* @__PURE__ */ ae("div", "columnResizer");
3232
+ ), $o = /* @__PURE__ */ re("table", "table"), xo = /* @__PURE__ */ re("th", "column"), wo = /* @__PURE__ */ re("footer", "footer"), Do = /* @__PURE__ */ re("td", "selectionCell"), ml = /* @__PURE__ */ re("button", "expandButton"), Co = /* @__PURE__ */ re("span", "nestedIcon"), So = /* @__PURE__ */ re("span", "headerSortIcon"), ko = /* @__PURE__ */ re("div", "columnResizer");
3233
3233
  function Ie(t) {
3234
3234
  return t.target?.closest(
3235
3235
  'button, input, [role="button"], [role="checkbox"], [slot="selection"], [data-slot="selection"]'
3236
3236
  );
3237
3237
  }
3238
- function ko(t) {
3238
+ function Eo(t) {
3239
3239
  return t.target?.closest(
3240
3240
  '[slot="selection"], [data-slot="selection"], [role="checkbox"]'
3241
3241
  );
3242
3242
  }
3243
- function dt(t) {
3244
- const e = Ie(t), l = ko(t);
3243
+ function ct(t) {
3244
+ const e = Ie(t), l = Eo(t);
3245
3245
  (!e || e && !l) && t.stopPropagation();
3246
3246
  }
3247
3247
  const Ye = /* @__PURE__ */ X(function({ row: e, depth: l = 0 }, n) {
@@ -3260,26 +3260,26 @@ const Ye = /* @__PURE__ */ X(function({ row: e, depth: l = 0 }, n) {
3260
3260
  pinnedRows: g,
3261
3261
  togglePin: y,
3262
3262
  sortedRows: v
3263
- } = ye(), m = ((z) => a ? a === "all" || e.isDisabled ? !0 : a.has(z) : !1)(e.id), $ = M(null), b = V(
3263
+ } = ve(), m = ((z) => a ? a === "all" || e.isDisabled ? !0 : a.has(z) : !1)(e.id), $ = M(null), b = j(
3264
3264
  (z) => {
3265
3265
  if (!f) return;
3266
- const S = Ie(z), A = window.getSelection()?.toString() !== void 0 && window.getSelection().toString().length > 0;
3267
- !S && !A && ($.current && window.clearTimeout($.current), $.current = window.setTimeout(() => {
3266
+ const C = Ie(z), R = window.getSelection()?.toString() !== void 0 && window.getSelection().toString().length > 0;
3267
+ !C && !R && ($.current && window.clearTimeout($.current), $.current = window.setTimeout(() => {
3268
3268
  m ? h && h(e, "click") : f(e), $.current = null;
3269
3269
  }, 300));
3270
3270
  },
3271
3271
  [f, h, e, m]
3272
- ), w = V((z) => {
3272
+ ), w = j((z) => {
3273
3273
  Ie(z) || $.current && (window.clearTimeout($.current), $.current = null);
3274
- }, []), C = M({
3274
+ }, []), S = M({
3275
3275
  count: 0,
3276
3276
  node: void 0
3277
- }), B = V(
3277
+ }), B = j(
3278
3278
  (z) => {
3279
- C.current.count += 1, C.current.count === 1 && z && (C.current.node = z, z.addEventListener(
3279
+ S.current.count += 1, S.current.count === 1 && z && (S.current.node = z, z.addEventListener(
3280
3280
  // Use pointerdown event in order to capture event before it bubbles to react-aria's onPress handler
3281
3281
  "pointerdown",
3282
- dt,
3282
+ ct,
3283
3283
  {
3284
3284
  capture: !0
3285
3285
  }
@@ -3289,25 +3289,25 @@ const Ye = /* @__PURE__ */ X(function({ row: e, depth: l = 0 }, n) {
3289
3289
  },
3290
3290
  [b, w]
3291
3291
  );
3292
- se(() => () => {
3293
- $.current && (window.clearTimeout($.current), $.current = null), C.current.count >= 1 && C.current.node && (C.current.node.removeEventListener(
3292
+ ue(() => () => {
3293
+ $.current && (window.clearTimeout($.current), $.current = null), S.current.count >= 1 && S.current.node && (S.current.node.removeEventListener(
3294
3294
  "pointerdown",
3295
- dt
3296
- ), C.current.node.removeEventListener("mouseup", b), C.current.node.removeEventListener(
3295
+ ct
3296
+ ), S.current.node.removeEventListener("mouseup", b), S.current.node.removeEventListener(
3297
3297
  "dblclick",
3298
3298
  w
3299
3299
  ));
3300
3300
  }, [b, w]);
3301
- const P = ln(n, B), { selectionBehavior: E } = cl(), W = c && e[c] && (Array.isArray(e[c]) ? e[c].length > 0 : !0), K = r[e.id], T = g.has(e.id), O = v.filter((z) => g.has(z.id)).map((z) => z.id), F = T ? O.indexOf(e.id) : -1, Y = F === 0, L = F === O.length - 1, te = O.length === 1 && T, le = () => T ? te ? "data-table-row-pinned-single" : Y ? "data-table-row-pinned-first" : L ? "data-table-row-pinned-last" : "" : "", _ = (z) => i && typeof z == "string" ? /* @__PURE__ */ D(mo, { query: i, ignoreCase: !0, matchAll: !0, children: z }) : z;
3302
- return /* @__PURE__ */ ie(yl, { children: [
3303
- /* @__PURE__ */ ie(
3304
- st,
3301
+ const P = nn(n, B), { selectionBehavior: E } = fl(), T = c && e[c] && (Array.isArray(e[c]) ? e[c].length > 0 : !0), K = r[e.id], F = g.has(e.id), L = v.filter((z) => g.has(z.id)).map((z) => z.id), I = F ? L.indexOf(e.id) : -1, U = I === 0, Y = I === L.length - 1, te = L.length === 1 && F, ye = () => F ? te ? "data-table-row-pinned-single" : U ? "data-table-row-pinned-first" : Y ? "data-table-row-pinned-last" : "" : "", _ = (z) => i && typeof z == "string" ? /* @__PURE__ */ D(go, { query: i, ignoreCase: !0, matchAll: !0, children: z }) : z;
3302
+ return /* @__PURE__ */ oe($l, { children: [
3303
+ /* @__PURE__ */ oe(
3304
+ dt,
3305
3305
  {
3306
3306
  isDisabled: m,
3307
3307
  columns: o,
3308
3308
  ref: P,
3309
3309
  id: e.id,
3310
- className: `data-table-row ${m ? "data-table-row-disabled" : ""} ${T ? `data-table-row-pinned ${le()}` : ""}`,
3310
+ className: `data-table-row ${m ? "data-table-row-disabled" : ""} ${F ? `data-table-row-pinned ${ye()}` : ""}`,
3311
3311
  style: {
3312
3312
  cursor: m ? "not-allowed" : f ? "pointer" : void 0,
3313
3313
  position: "relative",
@@ -3318,7 +3318,7 @@ const Ye = /* @__PURE__ */ X(function({ row: e, depth: l = 0 }, n) {
3318
3318
  },
3319
3319
  dependencies: [K, i, p],
3320
3320
  children: [
3321
- E === "toggle" && /* @__PURE__ */ D(he, { "data-slot": "selection", isDisabled: m, children: /* @__PURE__ */ D(
3321
+ E === "toggle" && /* @__PURE__ */ D(pe, { "data-slot": "selection", isDisabled: m, children: /* @__PURE__ */ D(
3322
3322
  we,
3323
3323
  {
3324
3324
  display: "flex",
@@ -3327,7 +3327,7 @@ const Ye = /* @__PURE__ */ X(function({ row: e, depth: l = 0 }, n) {
3327
3327
  w: "100%",
3328
3328
  h: "100%",
3329
3329
  children: /* @__PURE__ */ D(
3330
- yt,
3330
+ $t,
3331
3331
  {
3332
3332
  name: "select-row",
3333
3333
  slot: "selection",
@@ -3336,8 +3336,8 @@ const Ye = /* @__PURE__ */ X(function({ row: e, depth: l = 0 }, n) {
3336
3336
  )
3337
3337
  }
3338
3338
  ) }),
3339
- d && /* @__PURE__ */ D(he, { "data-slot": "expand", isDisabled: m, children: W ? /* @__PURE__ */ D(
3340
- hl,
3339
+ d && /* @__PURE__ */ D(pe, { "data-slot": "expand", isDisabled: m, children: T ? /* @__PURE__ */ D(
3340
+ ml,
3341
3341
  {
3342
3342
  w: "100%",
3343
3343
  h: "100%",
@@ -3346,12 +3346,12 @@ const Ye = /* @__PURE__ */ X(function({ row: e, depth: l = 0 }, n) {
3346
3346
  onClick: (z) => {
3347
3347
  z.stopPropagation(), u(e.id);
3348
3348
  },
3349
- children: K ? /* @__PURE__ */ D(on, {}) : /* @__PURE__ */ D(rn, {})
3349
+ children: K ? /* @__PURE__ */ D(rn, {}) : /* @__PURE__ */ D(an, {})
3350
3350
  }
3351
3351
  ) : null }),
3352
3352
  /* @__PURE__ */ D(De, { items: o, children: (z) => {
3353
- const S = z.accessor(e);
3354
- return /* @__PURE__ */ D(he, { isDisabled: m, children: /* @__PURE__ */ D(
3353
+ const C = z.accessor(e);
3354
+ return /* @__PURE__ */ D(pe, { isDisabled: m, children: /* @__PURE__ */ D(
3355
3355
  we,
3356
3356
  {
3357
3357
  className: p ? "truncated-cell" : "",
@@ -3363,14 +3363,14 @@ const Ye = /* @__PURE__ */ X(function({ row: e, depth: l = 0 }, n) {
3363
3363
  overflow: "hidden",
3364
3364
  cursor: m ? "not-allowed" : "text",
3365
3365
  children: z.render ? z.render({
3366
- value: _(S),
3366
+ value: _(C),
3367
3367
  row: e,
3368
3368
  column: z
3369
- }) : _(S)
3369
+ }) : _(C)
3370
3370
  }
3371
3371
  ) }, z.id);
3372
3372
  } }),
3373
- /* @__PURE__ */ D(he, { "data-slot": "pin-row-cell", isDisabled: m, children: /* @__PURE__ */ D(
3373
+ /* @__PURE__ */ D(pe, { "data-slot": "pin-row-cell", isDisabled: m, children: /* @__PURE__ */ D(
3374
3374
  we,
3375
3375
  {
3376
3376
  display: "flex",
@@ -3378,31 +3378,31 @@ const Ye = /* @__PURE__ */ X(function({ row: e, depth: l = 0 }, n) {
3378
3378
  justifyContent: "center",
3379
3379
  w: "100%",
3380
3380
  h: "100%",
3381
- children: /* @__PURE__ */ ie(at.Root, { children: [
3381
+ children: /* @__PURE__ */ oe(ut.Root, { children: [
3382
3382
  /* @__PURE__ */ D(
3383
- nn,
3383
+ on,
3384
3384
  {
3385
3385
  size: "2xs",
3386
3386
  variant: "ghost",
3387
- "aria-label": T ? "Unpin row" : "Pin row",
3387
+ "aria-label": F ? "Unpin row" : "Pin row",
3388
3388
  colorPalette: "primary",
3389
- className: `nimbus-table-cell-pin-button ${T ? "nimbus-table-cell-pin-button-pinned" : ""}`,
3389
+ className: `nimbus-table-cell-pin-button ${F ? "nimbus-table-cell-pin-button-pinned" : ""}`,
3390
3390
  onClick: (z) => {
3391
3391
  z.stopPropagation(), y(e.id);
3392
3392
  },
3393
- children: /* @__PURE__ */ D(an, {})
3393
+ children: /* @__PURE__ */ D(un, {})
3394
3394
  },
3395
3395
  "pin-btn"
3396
3396
  ),
3397
- /* @__PURE__ */ D(at.Content, { placement: "top", children: T ? "Unpin row" : "Pin row" })
3397
+ /* @__PURE__ */ D(ut.Content, { placement: "top", children: F ? "Unpin row" : "Pin row" })
3398
3398
  ] })
3399
3399
  }
3400
3400
  ) })
3401
3401
  ]
3402
3402
  }
3403
3403
  ),
3404
- d && /* @__PURE__ */ D(st, { style: { display: K ? void 0 : "none" }, children: /* @__PURE__ */ D(
3405
- he,
3404
+ d && /* @__PURE__ */ D(dt, { style: { display: K ? void 0 : "none" }, children: /* @__PURE__ */ D(
3405
+ pe,
3406
3406
  {
3407
3407
  isDisabled: m,
3408
3408
  colSpan: o.length + (d ? 1 : 0) + (s ? 1 : 0) + 1,
@@ -3416,9 +3416,9 @@ const Ye = /* @__PURE__ */ X(function({ row: e, depth: l = 0 }, n) {
3416
3416
  });
3417
3417
  Ye.displayName = "DataTable.Row";
3418
3418
  const Xe = /* @__PURE__ */ X(function(e, l) {
3419
- const { sortedRows: n, activeColumns: o } = ye();
3419
+ const { sortedRows: n, activeColumns: o } = ve();
3420
3420
  return /* @__PURE__ */ D(
3421
- _n,
3421
+ eo,
3422
3422
  {
3423
3423
  ref: l,
3424
3424
  items: n,
@@ -3439,12 +3439,12 @@ const $e = ({
3439
3439
  tabIndex: i,
3440
3440
  ...r
3441
3441
  }) => {
3442
- const { sortDescriptor: u, isResizable: c } = ye(), a = u?.column === l?.id, d = l?.isResizable !== void 0 ? l?.isResizable : c;
3443
- return /* @__PURE__ */ D($o, { unstyled: n, tabIndex: i, asChild: !0, children: /* @__PURE__ */ D(Qn, { ref: e, ...r, children: (s) => {
3442
+ const { sortDescriptor: u, isResizable: c } = ve(), a = u?.column === l?.id, d = l?.isResizable !== void 0 ? l?.isResizable : c;
3443
+ return /* @__PURE__ */ D(xo, { unstyled: n, tabIndex: i, asChild: !0, children: /* @__PURE__ */ D(Jn, { ref: e, ...r, children: (s) => {
3444
3444
  const { allowsSorting: p } = s;
3445
- return o ? typeof t == "function" ? t(s) : t : /* @__PURE__ */ ie(cn, { tabIndex: l?.isResizable ? 0 : -1, focusRing: "outside", children: [
3445
+ return o ? typeof t == "function" ? t(s) : t : /* @__PURE__ */ oe(fn, { tabIndex: l?.isResizable ? 0 : -1, focusRing: "outside", children: [
3446
3446
  /* @__PURE__ */ D(
3447
- dn,
3447
+ cn,
3448
3448
  {
3449
3449
  orientation: "vertical",
3450
3450
  className: "data-table-column-divider"
@@ -3452,15 +3452,15 @@ const $e = ({
3452
3452
  ),
3453
3453
  typeof t == "function" ? t(s) : t,
3454
3454
  p && /* @__PURE__ */ D(
3455
- Co,
3455
+ So,
3456
3456
  {
3457
3457
  "aria-hidden": "true",
3458
3458
  color: a ? "neutral.11" : "neutral.10",
3459
- children: /* @__PURE__ */ D(un, {})
3459
+ children: /* @__PURE__ */ D(sn, {})
3460
3460
  }
3461
3461
  ),
3462
- d && /* @__PURE__ */ D(Jn, { "aria-label": "Resize column", children: ({ isResizing: f, isFocused: h }) => /* @__PURE__ */ D(
3463
- So,
3462
+ d && /* @__PURE__ */ D(_n, { "aria-label": "Resize column", children: ({ isResizing: f, isFocused: h }) => /* @__PURE__ */ D(
3463
+ ko,
3464
3464
  {
3465
3465
  "data-resizing": f,
3466
3466
  "data-focused": h
@@ -3470,14 +3470,14 @@ const $e = ({
3470
3470
  } }) });
3471
3471
  }, Ge = /* @__PURE__ */ X(
3472
3472
  function({ children: e, ...l }, n) {
3473
- return /* @__PURE__ */ D(xo, { ref: n, ...l, children: e });
3473
+ return /* @__PURE__ */ D(wo, { ref: n, ...l, children: e });
3474
3474
  }
3475
3475
  );
3476
3476
  Ge.displayName = "DataTable.Footer";
3477
3477
  const qe = /* @__PURE__ */ X(function(e, l) {
3478
- const { activeColumns: n, allowsSorting: o, maxHeight: i, showExpandColumn: r } = ye(), { selectionBehavior: u, selectionMode: c } = cl();
3479
- return /* @__PURE__ */ ie(
3480
- qn,
3478
+ const { activeColumns: n, allowsSorting: o, maxHeight: i, showExpandColumn: r } = ve(), { selectionBehavior: u, selectionMode: c } = fl();
3479
+ return /* @__PURE__ */ oe(
3480
+ Zn,
3481
3481
  {
3482
3482
  ref: l,
3483
3483
  className: "data-table-header",
@@ -3500,7 +3500,7 @@ const qe = /* @__PURE__ */ X(function(e, l) {
3500
3500
  minWidth: 72,
3501
3501
  allowsSorting: !1,
3502
3502
  isInternalColumn: !0,
3503
- children: c === "multiple" && /* @__PURE__ */ D(yt, { slot: "selection" })
3503
+ children: c === "multiple" && /* @__PURE__ */ D($t, { slot: "selection" })
3504
3504
  }
3505
3505
  ),
3506
3506
  r && /* @__PURE__ */ D(
@@ -3512,10 +3512,10 @@ const qe = /* @__PURE__ */ X(function(e, l) {
3512
3512
  allowsSorting: !1,
3513
3513
  "aria-label": "Expand rows",
3514
3514
  isInternalColumn: !0,
3515
- children: /* @__PURE__ */ D(rt, { children: "Expand rows" })
3515
+ children: /* @__PURE__ */ D(at, { children: "Expand rows" })
3516
3516
  }
3517
3517
  ),
3518
- /* @__PURE__ */ D(De, { items: n, children: (a) => /* @__PURE__ */ ie(
3518
+ /* @__PURE__ */ D(De, { items: n, children: (a) => /* @__PURE__ */ oe(
3519
3519
  $e,
3520
3520
  {
3521
3521
  allowsSorting: (
@@ -3544,7 +3544,7 @@ const qe = /* @__PURE__ */ X(function(e, l) {
3544
3544
  allowsSorting: !1,
3545
3545
  isInternalColumn: !0,
3546
3546
  "aria-label": "Pin rows",
3547
- children: /* @__PURE__ */ D(rt, { children: "Pin rows" })
3547
+ children: /* @__PURE__ */ D(at, { children: "Pin rows" })
3548
3548
  }
3549
3549
  )
3550
3550
  ]
@@ -3552,7 +3552,7 @@ const qe = /* @__PURE__ */ X(function(e, l) {
3552
3552
  );
3553
3553
  });
3554
3554
  qe.displayName = "DataTable.Header";
3555
- function ml(t, e, l, n) {
3555
+ function gl(t, e, l, n) {
3556
3556
  if (!e) return t;
3557
3557
  const o = e.toLowerCase();
3558
3558
  return t.map((i) => {
@@ -3563,7 +3563,7 @@ function ml(t, e, l, n) {
3563
3563
  if (n && i[n]) {
3564
3564
  let u = i[n];
3565
3565
  if (Array.isArray(i[n])) {
3566
- if (u = ml(
3566
+ if (u = gl(
3567
3567
  i[n],
3568
3568
  e,
3569
3569
  l,
@@ -3577,7 +3577,7 @@ function ml(t, e, l, n) {
3577
3577
  return r ? i : null;
3578
3578
  }).filter(Boolean);
3579
3579
  }
3580
- function gl(t, e, l, n, o) {
3580
+ function bl(t, e, l, n, o) {
3581
3581
  const i = [], r = [];
3582
3582
  t.forEach((a) => {
3583
3583
  o?.has(a.id) ? i.push(a) : r.push(a);
@@ -3596,7 +3596,7 @@ function gl(t, e, l, n, o) {
3596
3596
  }
3597
3597
  return [...i, ...u].map((a) => !n || !a[n] ? a : {
3598
3598
  ...a,
3599
- [n]: Array.isArray(a[n]) ? gl(
3599
+ [n]: Array.isArray(a[n]) ? bl(
3600
3600
  a[n],
3601
3601
  e,
3602
3602
  l,
@@ -3605,9 +3605,9 @@ function gl(t, e, l, n, o) {
3605
3605
  ) : a[n]
3606
3606
  });
3607
3607
  }
3608
- function bl(t, e) {
3608
+ function vl(t, e) {
3609
3609
  return e ? t.some(
3610
- (l) => l[e] && (Array.isArray(l[e]) ? l[e].length > 0 : !0) || Array.isArray(l[e]) && bl(l[e], e)
3610
+ (l) => l[e] && (Array.isArray(l[e]) ? l[e].length > 0 : !0) || Array.isArray(l[e]) && vl(l[e], e)
3611
3611
  ) : !1;
3612
3612
  }
3613
3613
  const Ze = /* @__PURE__ */ X(
@@ -3618,146 +3618,147 @@ const Ze = /* @__PURE__ */ X(
3618
3618
  visibleColumns: i,
3619
3619
  search: r,
3620
3620
  sortDescriptor: u,
3621
- onSortChange: c,
3622
- selectedKeys: a,
3623
- defaultSelectedKeys: d,
3624
- onSelectionChange: s,
3625
- selectionMode: p = "none",
3626
- disallowEmptySelection: f = !1,
3627
- allowsSorting: h = !1,
3628
- maxHeight: g,
3629
- isTruncated: y = !1,
3630
- density: v = "default",
3631
- nestedKey: x,
3632
- onRowClick: m,
3633
- onDetailsClick: $,
3634
- disabledKeys: b,
3635
- onRowAction: w,
3636
- isResizable: C,
3637
- pinnedRows: B,
3638
- defaultPinnedRows: P,
3639
- onPinToggle: E,
3640
- children: W,
3641
- ...K
3642
- } = e, [T, O] = Z(), [F, Y] = Z({}), [L, te] = Z(
3643
- () => P || /* @__PURE__ */ new Set()
3644
- ), le = u ?? T, _ = B ?? L, z = N(() => n.filter(
3645
- (ue) => (i ? i.includes(ue.id) : !0) && ue.isVisible !== !1
3646
- ), [n, i]), S = N(
3647
- () => r ? ml(o, r, z, x) : o,
3648
- [o, r, z, x]
3649
- ), A = N(
3650
- () => gl(
3651
- S,
3652
- le,
3653
- z,
3654
- x,
3655
- _
3621
+ defaultSortDescriptor: c,
3622
+ onSortChange: a,
3623
+ selectedKeys: d,
3624
+ defaultSelectedKeys: s,
3625
+ onSelectionChange: p,
3626
+ selectionMode: f = "none",
3627
+ disallowEmptySelection: h = !1,
3628
+ allowsSorting: g = !1,
3629
+ maxHeight: y,
3630
+ isTruncated: v = !1,
3631
+ density: x = "default",
3632
+ nestedKey: m,
3633
+ onRowClick: $,
3634
+ onDetailsClick: b,
3635
+ disabledKeys: w,
3636
+ onRowAction: S,
3637
+ isResizable: B,
3638
+ pinnedRows: P,
3639
+ defaultPinnedRows: E,
3640
+ onPinToggle: T,
3641
+ children: K,
3642
+ ...F
3643
+ } = e, [L, I] = Z(c), [U, Y] = Z({}), [te, ye] = Z(
3644
+ () => E || /* @__PURE__ */ new Set()
3645
+ ), _ = u ?? L, z = P ?? te, C = N(() => n.filter(
3646
+ (ae) => (i ? i.includes(ae.id) : !0) && ae.isVisible !== !1
3647
+ ), [n, i]), R = N(
3648
+ () => r ? gl(o, r, C, m) : o,
3649
+ [o, r, C, m]
3650
+ ), V = N(
3651
+ () => bl(
3652
+ R,
3653
+ _,
3654
+ C,
3655
+ m,
3656
+ z
3656
3657
  ),
3657
- [S, le, z, x, _]
3658
- ), U = bl(A, x), ke = p !== "none", Je = V(
3659
- (G) => Y((ue) => ({ ...ue, [G]: !ue[G] })),
3658
+ [R, _, C, m, z]
3659
+ ), ke = vl(V, m), Je = f !== "none", _e = j(
3660
+ (G) => Y((ae) => ({ ...ae, [G]: !ae[G] })),
3660
3661
  []
3661
- ), _e = V(
3662
+ ), et = j(
3662
3663
  (G) => {
3663
- E ? E(G) : te((ue) => {
3664
- const Ee = new Set(ue);
3664
+ T ? T(G) : ye((ae) => {
3665
+ const Ee = new Set(ae);
3665
3666
  return Ee.has(G) ? Ee.delete(G) : Ee.add(G), Ee;
3666
3667
  });
3667
3668
  },
3668
- [E]
3669
- ), et = V(
3669
+ [T]
3670
+ ), tt = j(
3670
3671
  (G) => {
3671
- c ? c(G) : O(G);
3672
+ a ? a(G) : I(G);
3672
3673
  },
3673
- [c]
3674
- ), vl = N(
3674
+ [a]
3675
+ ), yl = N(
3675
3676
  () => ({
3676
3677
  columns: n,
3677
3678
  data: o,
3678
3679
  visibleColumns: i,
3679
3680
  search: r,
3680
- sortDescriptor: le,
3681
- selectedKeys: a,
3682
- defaultSelectedKeys: d,
3683
- expanded: F,
3684
- allowsSorting: h,
3685
- selectionMode: p,
3686
- disallowEmptySelection: f,
3687
- maxHeight: g,
3688
- isTruncated: y,
3689
- density: v,
3690
- nestedKey: x,
3691
- onSortChange: et,
3692
- onSelectionChange: s,
3693
- onRowClick: m,
3694
- onDetailsClick: $,
3695
- toggleExpand: Je,
3696
- activeColumns: z,
3697
- filteredRows: S,
3698
- sortedRows: A,
3699
- showExpandColumn: U,
3700
- showSelectionColumn: ke,
3701
- isResizable: C,
3702
- disabledKeys: b,
3703
- onRowAction: w,
3704
- pinnedRows: _,
3705
- onPinToggle: E,
3706
- togglePin: _e
3681
+ sortDescriptor: _,
3682
+ selectedKeys: d,
3683
+ defaultSelectedKeys: s,
3684
+ expanded: U,
3685
+ allowsSorting: g,
3686
+ selectionMode: f,
3687
+ disallowEmptySelection: h,
3688
+ maxHeight: y,
3689
+ isTruncated: v,
3690
+ density: x,
3691
+ nestedKey: m,
3692
+ onSortChange: tt,
3693
+ onSelectionChange: p,
3694
+ onRowClick: $,
3695
+ onDetailsClick: b,
3696
+ toggleExpand: _e,
3697
+ activeColumns: C,
3698
+ filteredRows: R,
3699
+ sortedRows: V,
3700
+ showExpandColumn: ke,
3701
+ showSelectionColumn: Je,
3702
+ isResizable: B,
3703
+ disabledKeys: w,
3704
+ onRowAction: S,
3705
+ pinnedRows: z,
3706
+ onPinToggle: T,
3707
+ togglePin: et
3707
3708
  }),
3708
3709
  [
3709
3710
  n,
3710
3711
  o,
3711
3712
  i,
3712
3713
  r,
3713
- le,
3714
- a,
3714
+ _,
3715
3715
  d,
3716
- F,
3717
- h,
3718
- p,
3719
- f,
3716
+ s,
3717
+ U,
3720
3718
  g,
3719
+ f,
3720
+ h,
3721
3721
  y,
3722
3722
  v,
3723
3723
  x,
3724
- et,
3725
- s,
3726
3724
  m,
3725
+ tt,
3726
+ p,
3727
3727
  $,
3728
- Je,
3729
- z,
3730
- S,
3731
- A,
3732
- U,
3733
- ke,
3734
- C,
3735
3728
  b,
3729
+ _e,
3730
+ C,
3731
+ R,
3732
+ V,
3733
+ ke,
3734
+ Je,
3735
+ B,
3736
3736
  w,
3737
- _,
3738
- E,
3739
- _e
3737
+ S,
3738
+ z,
3739
+ T,
3740
+ et
3740
3741
  ]
3741
3742
  );
3742
3743
  return /* @__PURE__ */ D(
3743
- vo,
3744
+ yo,
3744
3745
  {
3745
3746
  ref: l,
3746
- truncated: y,
3747
- density: v,
3747
+ truncated: v,
3748
+ density: x,
3748
3749
  style: {
3749
- ...g && {
3750
- maxHeight: g,
3750
+ ...y && {
3751
+ maxHeight: y,
3751
3752
  overflowY: "auto"
3752
3753
  }
3753
3754
  },
3754
- ...K,
3755
+ ...F,
3755
3756
  asChild: !0,
3756
- children: /* @__PURE__ */ D(Un, { children: /* @__PURE__ */ D(
3757
+ children: /* @__PURE__ */ D(Yn, { children: /* @__PURE__ */ D(
3757
3758
  Ke.Provider,
3758
3759
  {
3759
- value: vl,
3760
- children: W
3760
+ value: yl,
3761
+ children: K
3761
3762
  }
3762
3763
  ) })
3763
3764
  }
@@ -3775,12 +3776,12 @@ const Qe = /* @__PURE__ */ X(function({ children: e, ...l }, n) {
3775
3776
  defaultSelectedKeys: a,
3776
3777
  disallowEmptySelection: d,
3777
3778
  disabledKeys: s
3778
- } = ye(), p = o ? {
3779
+ } = ve(), p = o ? {
3779
3780
  column: o.column,
3780
3781
  direction: o.direction
3781
3782
  } : void 0;
3782
- return /* @__PURE__ */ D(yo, { ...l, asChild: !0, children: /* @__PURE__ */ D(
3783
- Xn,
3783
+ return /* @__PURE__ */ D($o, { ...l, asChild: !0, children: /* @__PURE__ */ D(
3784
+ Gn,
3784
3785
  {
3785
3786
  ref: n,
3786
3787
  sortDescriptor: p,
@@ -3803,41 +3804,41 @@ const Qe = /* @__PURE__ */ X(function({ children: e, ...l }, n) {
3803
3804
  ) });
3804
3805
  });
3805
3806
  Qe.displayName = "DataTable.Table";
3806
- const Eo = /* @__PURE__ */ X(function({ footer: e, ...l }, n) {
3807
- return /* @__PURE__ */ ie(Ze, { ref: n, ...l, children: [
3808
- /* @__PURE__ */ ie(Qe, { "aria-label": "Data Table", children: [
3807
+ const zo = /* @__PURE__ */ X(function({ footer: e, ...l }, n) {
3808
+ return /* @__PURE__ */ oe(Ze, { ref: n, ...l, children: [
3809
+ /* @__PURE__ */ oe(Qe, { "aria-label": "Data Table", children: [
3809
3810
  /* @__PURE__ */ D(qe, { "aria-label": "Data Table Header" }),
3810
3811
  /* @__PURE__ */ D(Xe, { "aria-label": "Data Table Body" })
3811
3812
  ] }),
3812
3813
  e && /* @__PURE__ */ D(Ge, { children: e })
3813
3814
  ] });
3814
- }), bi = /* @__PURE__ */ Object.assign(Eo, {
3815
+ }), vi = /* @__PURE__ */ Object.assign(zo, {
3815
3816
  Root: Ze,
3816
3817
  Table: Qe,
3817
3818
  Header: qe,
3818
3819
  Column: $e,
3819
3820
  Body: Xe,
3820
3821
  Row: Ye,
3821
- Cell: he,
3822
+ Cell: pe,
3822
3823
  Footer: Ge,
3823
- ExpandButton: hl,
3824
- NestedIcon: Do,
3825
- SelectionCell: wo,
3824
+ ExpandButton: ml,
3825
+ NestedIcon: Co,
3826
+ SelectionCell: Do,
3826
3827
  Context: Ke,
3827
- useDataTableContext: ye
3828
+ useDataTableContext: ve
3828
3829
  });
3829
3830
  export {
3830
- bi as D,
3831
+ vi as D,
3831
3832
  Ze as a,
3832
3833
  Qe as b,
3833
3834
  qe as c,
3834
3835
  $e as d,
3835
3836
  Xe as e,
3836
3837
  Ye as f,
3837
- he as g,
3838
+ pe as g,
3838
3839
  Ge as h,
3839
- hl as i,
3840
- Do as j,
3841
- wo as k
3840
+ ml as i,
3841
+ Co as j,
3842
+ Do as k
3842
3843
  };
3843
- //# sourceMappingURL=data-table-BVhKXSXO.es.js.map
3844
+ //# sourceMappingURL=data-table-DbhVtDHQ.es.js.map