@snowpact/react-tanstack-query-table 1.4.4 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { jsxs as U, jsx as p, Fragment as un } from "react/jsx-runtime";
1
+ import { jsxs as B, jsx as p, Fragment as un } from "react/jsx-runtime";
2
2
  import { useMutation as la, useQuery as Rr, keepPreviousData as ua } from "@tanstack/react-query";
3
3
  import * as f from "react";
4
4
  import Ze, { useState as me, useEffect as Tt, useRef as Hn, useCallback as Re, useMemo as Ae, forwardRef as Ar, useLayoutEffect as da, memo as fa } from "react";
@@ -20,27 +20,27 @@ const ve = ({ children: e, ...t }) => /* @__PURE__ */ p(
20
20
  ...t,
21
21
  children: e
22
22
  }
23
- ), Tr = (e) => /* @__PURE__ */ p(ve, { ...e, children: /* @__PURE__ */ p("path", { d: "M20 6 9 17l-5-5" }) }), co = (e) => /* @__PURE__ */ p(ve, { ...e, children: /* @__PURE__ */ p("path", { d: "m6 9 6 6 6-6" }) }), ya = (e) => /* @__PURE__ */ p(ve, { ...e, children: /* @__PURE__ */ p("path", { d: "m18 15-6-6-6 6" }) }), xa = (e) => /* @__PURE__ */ p(ve, { ...e, children: /* @__PURE__ */ p("path", { d: "m15 18-6-6 6-6" }) }), Ca = (e) => /* @__PURE__ */ p(ve, { ...e, children: /* @__PURE__ */ p("path", { d: "m9 18 6-6-6-6" }) }), Sa = (e) => /* @__PURE__ */ U(ve, { ...e, children: [
23
+ ), Tr = (e) => /* @__PURE__ */ p(ve, { ...e, children: /* @__PURE__ */ p("path", { d: "M20 6 9 17l-5-5" }) }), co = (e) => /* @__PURE__ */ p(ve, { ...e, children: /* @__PURE__ */ p("path", { d: "m6 9 6 6 6-6" }) }), ya = (e) => /* @__PURE__ */ p(ve, { ...e, children: /* @__PURE__ */ p("path", { d: "m18 15-6-6-6 6" }) }), xa = (e) => /* @__PURE__ */ p(ve, { ...e, children: /* @__PURE__ */ p("path", { d: "m15 18-6-6 6-6" }) }), Ca = (e) => /* @__PURE__ */ p(ve, { ...e, children: /* @__PURE__ */ p("path", { d: "m9 18 6-6-6-6" }) }), Sa = (e) => /* @__PURE__ */ B(ve, { ...e, children: [
24
24
  /* @__PURE__ */ p("path", { d: "m11 17-5-5 5-5" }),
25
25
  /* @__PURE__ */ p("path", { d: "m18 17-5-5 5-5" })
26
- ] }), Ea = (e) => /* @__PURE__ */ U(ve, { ...e, children: [
26
+ ] }), Ea = (e) => /* @__PURE__ */ B(ve, { ...e, children: [
27
27
  /* @__PURE__ */ p("path", { d: "m6 17 5-5-5-5" }),
28
28
  /* @__PURE__ */ p("path", { d: "m13 17 5-5-5-5" })
29
- ] }), Ra = (e) => /* @__PURE__ */ U(ve, { ...e, children: [
29
+ ] }), Ra = (e) => /* @__PURE__ */ B(ve, { ...e, children: [
30
30
  /* @__PURE__ */ p("path", { d: "m7 15 5 5 5-5" }),
31
31
  /* @__PURE__ */ p("path", { d: "m7 9 5-5 5 5" })
32
- ] }), Aa = (e) => /* @__PURE__ */ p(ve, { ...e, children: /* @__PURE__ */ p("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }) }), Ta = (e) => /* @__PURE__ */ U(ve, { ...e, children: [
32
+ ] }), Aa = (e) => /* @__PURE__ */ p(ve, { ...e, children: /* @__PURE__ */ p("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }) }), Ta = (e) => /* @__PURE__ */ B(ve, { ...e, children: [
33
33
  /* @__PURE__ */ p("path", { d: "M10 20v-6L3.6 5.2A2 2 0 0 1 5.17 2h13.66a2 2 0 0 1 1.57 3.2L14 12.9" }),
34
34
  /* @__PURE__ */ p("path", { d: "m22 22-4-4" }),
35
35
  /* @__PURE__ */ p("path", { d: "m18 22 4-4" })
36
- ] }), Ia = (e) => /* @__PURE__ */ p(ve, { ...e, children: /* @__PURE__ */ p("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }) }), Pa = (e) => /* @__PURE__ */ U(ve, { ...e, children: [
36
+ ] }), Ia = (e) => /* @__PURE__ */ p(ve, { ...e, children: /* @__PURE__ */ p("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }) }), Pa = (e) => /* @__PURE__ */ B(ve, { ...e, children: [
37
37
  /* @__PURE__ */ p("circle", { cx: "12", cy: "12", r: "1" }),
38
38
  /* @__PURE__ */ p("circle", { cx: "12", cy: "5", r: "1" }),
39
39
  /* @__PURE__ */ p("circle", { cx: "12", cy: "19", r: "1" })
40
- ] }), Ir = (e) => /* @__PURE__ */ U(ve, { ...e, children: [
40
+ ] }), Ir = (e) => /* @__PURE__ */ B(ve, { ...e, children: [
41
41
  /* @__PURE__ */ p("circle", { cx: "11", cy: "11", r: "8" }),
42
42
  /* @__PURE__ */ p("path", { d: "m21 21-4.3-4.3" })
43
- ] }), Wo = (e) => /* @__PURE__ */ U(ve, { ...e, children: [
43
+ ] }), Wo = (e) => /* @__PURE__ */ B(ve, { ...e, children: [
44
44
  /* @__PURE__ */ p("path", { d: "M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" }),
45
45
  /* @__PURE__ */ p("circle", { cx: "12", cy: "12", r: "3" })
46
46
  ] }), Ma = co;
@@ -128,14 +128,14 @@ const Va = (e) => {
128
128
  let jn = !1;
129
129
  const Dm = (e) => {
130
130
  jn || (Va(e.t), Oa(e.LinkComponent), Na(e.confirm), e.styles && $a(e.styles), jn = !0);
131
- }, Lm = () => jn, Ba = (e, t) => {
131
+ }, Lm = () => jn, Ua = (e, t) => {
132
132
  const n = new Array(e.length + t.length);
133
133
  for (let o = 0; o < e.length; o++)
134
134
  n[o] = e[o];
135
135
  for (let o = 0; o < t.length; o++)
136
136
  n[e.length + o] = t[o];
137
137
  return n;
138
- }, Ua = (e, t) => ({
138
+ }, Ba = (e, t) => ({
139
139
  classGroupId: e,
140
140
  validator: t
141
141
  }), kr = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
@@ -157,7 +157,7 @@ const Dm = (e) => {
157
157
  getConflictingClassGroupIds: (i, a) => {
158
158
  if (a) {
159
159
  const c = o[i], l = n[i];
160
- return c ? l ? Ba(l, c) : c : l || Go;
160
+ return c ? l ? Ua(l, c) : c : l || Go;
161
161
  }
162
162
  return n[i] || Go;
163
163
  }
@@ -219,7 +219,7 @@ const Dm = (e) => {
219
219
  lo(e(o), t, n, o);
220
220
  return;
221
221
  }
222
- t.validators === null && (t.validators = []), t.validators.push(Ua(n, e));
222
+ t.validators === null && (t.validators = []), t.validators.push(Ba(n, e));
223
223
  }, qa = (e, t, n, o) => {
224
224
  const r = Object.entries(e), s = r.length;
225
225
  for (let i = 0; i < s; i++) {
@@ -402,18 +402,18 @@ const Dm = (e) => {
402
402
  }, ac = [], se = (e) => {
403
403
  const t = (n) => n[e] || ac;
404
404
  return t.isThemeGetter = !0, t;
405
- }, Lr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Fr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, cc = /^\d+\/\d+$/, lc = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, uc = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, dc = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, fc = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, pc = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ct = (e) => cc.test(e), G = (e) => !!e && !Number.isNaN(Number(e)), Ue = (e) => !!e && Number.isInteger(Number(e)), Mn = (e) => e.endsWith("%") && G(e.slice(0, -1)), $e = (e) => lc.test(e), mc = () => !0, hc = (e) => (
405
+ }, Lr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Fr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, cc = /^\d+\/\d+$/, lc = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, uc = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, dc = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, fc = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, pc = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ct = (e) => cc.test(e), G = (e) => !!e && !Number.isNaN(Number(e)), Be = (e) => !!e && Number.isInteger(Number(e)), Mn = (e) => e.endsWith("%") && G(e.slice(0, -1)), $e = (e) => lc.test(e), mc = () => !0, hc = (e) => (
406
406
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
407
407
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
408
408
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
409
409
  uc.test(e) && !dc.test(e)
410
- ), $r = () => !1, gc = (e) => fc.test(e), vc = (e) => pc.test(e), bc = (e) => !_(e) && !O(e), wc = (e) => gt(e, Ur, $r), _ = (e) => Lr.test(e), Je = (e) => gt(e, zr, hc), Nn = (e) => gt(e, Ec, G), jo = (e) => gt(e, Vr, $r), yc = (e) => gt(e, Br, vc), Bt = (e) => gt(e, Wr, gc), O = (e) => Fr.test(e), Ct = (e) => vt(e, zr), xc = (e) => vt(e, Rc), Yo = (e) => vt(e, Vr), Cc = (e) => vt(e, Ur), Sc = (e) => vt(e, Br), Ut = (e) => vt(e, Wr, !0), gt = (e, t, n) => {
410
+ ), $r = () => !1, gc = (e) => fc.test(e), vc = (e) => pc.test(e), bc = (e) => !_(e) && !O(e), wc = (e) => gt(e, Br, $r), _ = (e) => Lr.test(e), Je = (e) => gt(e, zr, hc), Nn = (e) => gt(e, Ec, G), jo = (e) => gt(e, Vr, $r), yc = (e) => gt(e, Ur, vc), Ut = (e) => gt(e, Wr, gc), O = (e) => Fr.test(e), Ct = (e) => vt(e, zr), xc = (e) => vt(e, Rc), Yo = (e) => vt(e, Vr), Cc = (e) => vt(e, Br), Sc = (e) => vt(e, Ur), Bt = (e) => vt(e, Wr, !0), gt = (e, t, n) => {
411
411
  const o = Lr.exec(e);
412
412
  return o ? o[1] ? t(o[1]) : n(o[2]) : !1;
413
413
  }, vt = (e, t, n = !1) => {
414
414
  const o = Fr.exec(e);
415
415
  return o ? o[1] ? t(o[1]) : n : !1;
416
- }, Vr = (e) => e === "position" || e === "percentage", Br = (e) => e === "image" || e === "url", Ur = (e) => e === "length" || e === "size" || e === "bg-size", zr = (e) => e === "length", Ec = (e) => e === "number", Rc = (e) => e === "family-name", Wr = (e) => e === "shadow", Ac = () => {
416
+ }, Vr = (e) => e === "position" || e === "percentage", Ur = (e) => e === "image" || e === "url", Br = (e) => e === "length" || e === "size" || e === "bg-size", zr = (e) => e === "length", Ec = (e) => e === "number", Rc = (e) => e === "family-name", Wr = (e) => e === "shadow", Ac = () => {
417
417
  const e = se("color"), t = se("font"), n = se("text"), o = se("font-weight"), r = se("tracking"), s = se("leading"), i = se("breakpoint"), a = se("container"), c = se("spacing"), l = se("radius"), d = se("shadow"), u = se("inset-shadow"), g = se("text-shadow"), m = se("drop-shadow"), b = se("blur"), h = se("perspective"), v = se("aspect"), w = se("ease"), y = se("animate"), x = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], S = () => [
418
418
  "center",
419
419
  "top",
@@ -432,9 +432,9 @@ const Dm = (e) => {
432
432
  "bottom-left",
433
433
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
434
434
  "left-bottom"
435
- ], T = () => [...S(), O, _], I = () => ["auto", "hidden", "clip", "visible", "scroll"], A = () => ["auto", "contain", "none"], C = () => [O, _, c], N = () => [ct, "full", "auto", ...C()], k = () => [Ue, "none", "subgrid", O, _], $ = () => ["auto", {
436
- span: ["full", Ue, O, _]
437
- }, Ue, O, _], B = () => [Ue, "auto", O, _], z = () => ["auto", "min", "max", "fr", O, _], V = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], K = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], D = () => ["auto", ...C()], L = () => [ct, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...C()], E = () => [e, O, _], M = () => [...S(), Yo, jo, {
435
+ ], T = () => [...S(), O, _], I = () => ["auto", "hidden", "clip", "visible", "scroll"], A = () => ["auto", "contain", "none"], C = () => [O, _, c], N = () => [ct, "full", "auto", ...C()], k = () => [Be, "none", "subgrid", O, _], $ = () => ["auto", {
436
+ span: ["full", Be, O, _]
437
+ }, Be, O, _], U = () => [Be, "auto", O, _], z = () => ["auto", "min", "max", "fr", O, _], V = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], K = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], D = () => ["auto", ...C()], L = () => [ct, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...C()], E = () => [e, O, _], M = () => [...S(), Yo, jo, {
438
438
  position: [O, _]
439
439
  }], Z = () => ["no-repeat", {
440
440
  repeat: ["", "x", "y", "space", "round"]
@@ -701,7 +701,7 @@ const Dm = (e) => {
701
701
  * @see https://tailwindcss.com/docs/z-index
702
702
  */
703
703
  z: [{
704
- z: [Ue, "auto", O, _]
704
+ z: [Be, "auto", O, _]
705
705
  }],
706
706
  // ------------------------
707
707
  // --- Flexbox and Grid ---
@@ -753,7 +753,7 @@ const Dm = (e) => {
753
753
  * @see https://tailwindcss.com/docs/order
754
754
  */
755
755
  order: [{
756
- order: [Ue, "first", "last", "none", O, _]
756
+ order: [Be, "first", "last", "none", O, _]
757
757
  }],
758
758
  /**
759
759
  * Grid Template Columns
@@ -774,14 +774,14 @@ const Dm = (e) => {
774
774
  * @see https://tailwindcss.com/docs/grid-column
775
775
  */
776
776
  "col-start": [{
777
- "col-start": B()
777
+ "col-start": U()
778
778
  }],
779
779
  /**
780
780
  * Grid Column End
781
781
  * @see https://tailwindcss.com/docs/grid-column
782
782
  */
783
783
  "col-end": [{
784
- "col-end": B()
784
+ "col-end": U()
785
785
  }],
786
786
  /**
787
787
  * Grid Template Rows
@@ -802,14 +802,14 @@ const Dm = (e) => {
802
802
  * @see https://tailwindcss.com/docs/grid-row
803
803
  */
804
804
  "row-start": [{
805
- "row-start": B()
805
+ "row-start": U()
806
806
  }],
807
807
  /**
808
808
  * Grid Row End
809
809
  * @see https://tailwindcss.com/docs/grid-row
810
810
  */
811
811
  "row-end": [{
812
- "row-end": B()
812
+ "row-end": U()
813
813
  }],
814
814
  /**
815
815
  * Grid Auto Flow
@@ -1431,9 +1431,9 @@ const Dm = (e) => {
1431
1431
  bg: ["none", {
1432
1432
  linear: [{
1433
1433
  to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1434
- }, Ue, O, _],
1434
+ }, Be, O, _],
1435
1435
  radial: ["", O, _],
1436
- conic: [Ue, O, _]
1436
+ conic: [Be, O, _]
1437
1437
  }, Sc, yc]
1438
1438
  }],
1439
1439
  /**
@@ -1805,8 +1805,8 @@ const Dm = (e) => {
1805
1805
  "",
1806
1806
  "none",
1807
1807
  d,
1808
- Ut,
1809
- Bt
1808
+ Bt,
1809
+ Ut
1810
1810
  ]
1811
1811
  }],
1812
1812
  /**
@@ -1821,7 +1821,7 @@ const Dm = (e) => {
1821
1821
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
1822
1822
  */
1823
1823
  "inset-shadow": [{
1824
- "inset-shadow": ["none", u, Ut, Bt]
1824
+ "inset-shadow": ["none", u, Bt, Ut]
1825
1825
  }],
1826
1826
  /**
1827
1827
  * Inset Box Shadow Color
@@ -1888,7 +1888,7 @@ const Dm = (e) => {
1888
1888
  * @see https://tailwindcss.com/docs/text-shadow
1889
1889
  */
1890
1890
  "text-shadow": [{
1891
- "text-shadow": ["none", g, Ut, Bt]
1891
+ "text-shadow": ["none", g, Bt, Ut]
1892
1892
  }],
1893
1893
  /**
1894
1894
  * Text Shadow Color
@@ -2161,8 +2161,8 @@ const Dm = (e) => {
2161
2161
  "",
2162
2162
  "none",
2163
2163
  m,
2164
- Ut,
2165
- Bt
2164
+ Bt,
2165
+ Ut
2166
2166
  ]
2167
2167
  }],
2168
2168
  /**
@@ -3549,7 +3549,7 @@ function $c(e, t) {
3549
3549
  function Vc(e, t) {
3550
3550
  const n = [];
3551
3551
  for (let o = 0, r = t.length; o < r; o++) {
3552
- const s = t[o], i = Bc(s), a = $c(e, s);
3552
+ const s = t[o], i = Uc(s), a = $c(e, s);
3553
3553
  for (let c = 0, l = a.length; c < l; c++)
3554
3554
  n.push({
3555
3555
  itemValue: a[c],
@@ -3562,13 +3562,13 @@ const Zo = {
3562
3562
  maxRanking: 1 / 0,
3563
3563
  minRanking: -1 / 0
3564
3564
  };
3565
- function Bc(e) {
3565
+ function Uc(e) {
3566
3566
  return typeof e == "function" ? Zo : {
3567
3567
  ...Zo,
3568
3568
  ...e
3569
3569
  };
3570
3570
  }
3571
- const Uc = (e, t, n, o) => {
3571
+ const Bc = (e, t, n, o) => {
3572
3572
  const r = Dc(e.getValue(t), n);
3573
3573
  return o({
3574
3574
  itemRank: r
@@ -4235,7 +4235,7 @@ function Zn(e, t, n) {
4235
4235
  function Ve(e, t) {
4236
4236
  return typeof e == "function" ? e(t) : e;
4237
4237
  }
4238
- function Be(e) {
4238
+ function Ue(e) {
4239
4239
  return e.split("-")[0];
4240
4240
  }
4241
4241
  function bt(e) {
@@ -4249,7 +4249,7 @@ function ho(e) {
4249
4249
  }
4250
4250
  const Sl = /* @__PURE__ */ new Set(["top", "bottom"]);
4251
4251
  function ke(e) {
4252
- return Sl.has(Be(e)) ? "y" : "x";
4252
+ return Sl.has(Ue(e)) ? "y" : "x";
4253
4253
  }
4254
4254
  function go(e) {
4255
4255
  return mo(ke(e));
@@ -4282,7 +4282,7 @@ function Il(e, t, n) {
4282
4282
  }
4283
4283
  function Pl(e, t, n, o) {
4284
4284
  const r = bt(e);
4285
- let s = Il(Be(e), n === "start", o);
4285
+ let s = Il(Ue(e), n === "start", o);
4286
4286
  return r && (s = s.map((i) => i + "-" + r), t && (s = s.concat(s.map(Jn)))), s;
4287
4287
  }
4288
4288
  function on(e) {
@@ -4328,7 +4328,7 @@ function lr(e, t, n) {
4328
4328
  reference: o,
4329
4329
  floating: r
4330
4330
  } = e;
4331
- const s = ke(t), i = go(t), a = ho(i), c = Be(t), l = s === "y", d = o.x + o.width / 2 - r.width / 2, u = o.y + o.height / 2 - r.height / 2, g = o[a] / 2 - r[a] / 2;
4331
+ const s = ke(t), i = go(t), a = ho(i), c = Ue(t), l = s === "y", d = o.x + o.width / 2 - r.width / 2, u = o.y + o.height / 2 - r.height / 2, g = o[a] / 2 - r[a] / 2;
4332
4332
  let m;
4333
4333
  switch (c) {
4334
4334
  case "top":
@@ -4501,7 +4501,7 @@ const kl = (e) => ({
4501
4501
  }, m = go(r), b = ho(m), h = await i.getDimensions(l), v = m === "y", w = v ? "top" : "left", y = v ? "bottom" : "right", x = v ? "clientHeight" : "clientWidth", S = s.reference[b] + s.reference[m] - g[m] - s.floating[b], T = g[m] - s.reference[m], I = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l));
4502
4502
  let A = I ? I[x] : 0;
4503
4503
  (!A || !await (i.isElement == null ? void 0 : i.isElement(I))) && (A = a.floating[x] || s.floating[b]);
4504
- const C = S / 2 - T / 2, N = A / 2 - h[b] / 2 - 1, k = Ge(u[w], N), $ = Ge(u[y], N), B = k, z = A - h[b] - $, V = A / 2 - h[b] / 2 + C, K = Zn(B, V, z), D = !c.arrow && bt(r) != null && V !== K && s.reference[b] / 2 - (V < B ? k : $) - h[b] / 2 < 0, L = D ? V < B ? V - B : V - z : 0;
4504
+ const C = S / 2 - T / 2, N = A / 2 - h[b] / 2 - 1, k = Ge(u[w], N), $ = Ge(u[y], N), U = k, z = A - h[b] - $, V = A / 2 - h[b] / 2 + C, K = Zn(U, V, z), D = !c.arrow && bt(r) != null && V !== K && s.reference[b] / 2 - (V < U ? k : $) - h[b] / 2 < 0, L = D ? V < U ? V - U : V - z : 0;
4505
4505
  return {
4506
4506
  [m]: g[m] + L,
4507
4507
  data: {
@@ -4538,7 +4538,7 @@ const kl = (e) => ({
4538
4538
  } = Ve(e, t);
4539
4539
  if ((n = s.arrow) != null && n.alignmentOffset)
4540
4540
  return {};
4541
- const w = Be(r), y = ke(a), x = Be(a) === a, S = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), T = g || (x || !h ? [on(a)] : Rl(a)), I = b !== "none";
4541
+ const w = Ue(r), y = ke(a), x = Ue(a) === a, S = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), T = g || (x || !h ? [on(a)] : Rl(a)), I = b !== "none";
4542
4542
  !g && I && T.push(...Pl(a, h, b, S));
4543
4543
  const A = [a, ...T], C = await Mt(t, v), N = [];
4544
4544
  let k = ((o = s.flip) == null ? void 0 : o.overflows) || [];
@@ -4550,7 +4550,7 @@ const kl = (e) => ({
4550
4550
  placement: r,
4551
4551
  overflows: N
4552
4552
  }], !N.every((V) => V <= 0)) {
4553
- var $, B;
4553
+ var $, U;
4554
4554
  const V = ((($ = s.flip) == null ? void 0 : $.index) || 0) + 1, K = A[V];
4555
4555
  if (K && (!(u === "alignment" ? y !== ke(K) : !1) || // We leave the current main axis only if every placement on that axis
4556
4556
  // overflows the main axis.
@@ -4564,7 +4564,7 @@ const kl = (e) => ({
4564
4564
  placement: K
4565
4565
  }
4566
4566
  };
4567
- let D = (B = k.filter((L) => L.overflows[0] <= 0).sort((L, E) => L.overflows[1] - E.overflows[1])[0]) == null ? void 0 : B.placement;
4567
+ let D = (U = k.filter((L) => L.overflows[0] <= 0).sort((L, E) => L.overflows[1] - E.overflows[1])[0]) == null ? void 0 : U.placement;
4568
4568
  if (!D)
4569
4569
  switch (m) {
4570
4570
  case "bestFit": {
@@ -4654,7 +4654,7 @@ async function Dl(e, t) {
4654
4654
  placement: n,
4655
4655
  platform: o,
4656
4656
  elements: r
4657
- } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), i = Be(n), a = bt(n), c = ke(n) === "y", l = es.has(i) ? -1 : 1, d = s && c ? -1 : 1, u = Ve(t, e);
4657
+ } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), i = Ue(n), a = bt(n), c = ke(n) === "y", l = es.has(i) ? -1 : 1, d = s && c ? -1 : 1, u = Ve(t, e);
4658
4658
  let {
4659
4659
  mainAxis: g,
4660
4660
  crossAxis: m,
@@ -4726,7 +4726,7 @@ const Ll = function(e) {
4726
4726
  } = Ve(e, t), l = {
4727
4727
  x: n,
4728
4728
  y: o
4729
- }, d = await Mt(t, c), u = ke(Be(r)), g = mo(u);
4729
+ }, d = await Mt(t, c), u = ke(Ue(r)), g = mo(u);
4730
4730
  let m = l[g], b = l[u];
4731
4731
  if (s) {
4732
4732
  const v = g === "y" ? "top" : "left", w = g === "y" ? "bottom" : "right", y = m + d[v], x = m - d[w];
@@ -4787,7 +4787,7 @@ const Ll = function(e) {
4787
4787
  }
4788
4788
  if (l) {
4789
4789
  var w, y;
4790
- const x = g === "y" ? "width" : "height", S = es.has(Be(r)), T = s.reference[u] - s.floating[x] + (S && ((w = i.offset) == null ? void 0 : w[u]) || 0) + (S ? 0 : v.crossAxis), I = s.reference[u] + s.reference[x] + (S ? 0 : ((y = i.offset) == null ? void 0 : y[u]) || 0) - (S ? v.crossAxis : 0);
4790
+ const x = g === "y" ? "width" : "height", S = es.has(Ue(r)), T = s.reference[u] - s.floating[x] + (S && ((w = i.offset) == null ? void 0 : w[u]) || 0) + (S ? 0 : v.crossAxis), I = s.reference[u] + s.reference[x] + (S ? 0 : ((y = i.offset) == null ? void 0 : y[u]) || 0) - (S ? v.crossAxis : 0);
4791
4791
  b < T ? b = T : b > I && (b = I);
4792
4792
  }
4793
4793
  return {
@@ -4811,7 +4811,7 @@ const Ll = function(e) {
4811
4811
  apply: c = () => {
4812
4812
  },
4813
4813
  ...l
4814
- } = Ve(e, t), d = await Mt(t, l), u = Be(r), g = bt(r), m = ke(r) === "y", {
4814
+ } = Ve(e, t), d = await Mt(t, l), u = Ue(r), g = bt(r), m = ke(r) === "y", {
4815
4815
  width: b,
4816
4816
  height: h
4817
4817
  } = s.floating;
@@ -4820,8 +4820,8 @@ const Ll = function(e) {
4820
4820
  const y = h - d.top - d.bottom, x = b - d.left - d.right, S = Ge(h - d[v], y), T = Ge(b - d[w], x), I = !t.middlewareData.shift;
4821
4821
  let A = S, C = T;
4822
4822
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (C = x), (o = t.middlewareData.shift) != null && o.enabled.y && (A = y), I && !g) {
4823
- const k = be(d.left, 0), $ = be(d.right, 0), B = be(d.top, 0), z = be(d.bottom, 0);
4824
- m ? C = b - 2 * (k !== 0 || $ !== 0 ? k + $ : be(d.left, d.right)) : A = h - 2 * (B !== 0 || z !== 0 ? B + z : be(d.top, d.bottom));
4823
+ const k = be(d.left, 0), $ = be(d.right, 0), U = be(d.top, 0), z = be(d.bottom, 0);
4824
+ m ? C = b - 2 * (k !== 0 || $ !== 0 ? k + $ : be(d.left, d.right)) : A = h - 2 * (U !== 0 || z !== 0 ? U + z : be(d.top, d.bottom));
4825
4825
  }
4826
4826
  await c({
4827
4827
  ...t,
@@ -4863,7 +4863,7 @@ function De(e) {
4863
4863
  function fr(e) {
4864
4864
  return !mn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof we(e).ShadowRoot;
4865
4865
  }
4866
- const Bl = /* @__PURE__ */ new Set(["inline", "contents"]);
4866
+ const Ul = /* @__PURE__ */ new Set(["inline", "contents"]);
4867
4867
  function Ot(e) {
4868
4868
  const {
4869
4869
  overflow: t,
@@ -4871,11 +4871,11 @@ function Ot(e) {
4871
4871
  overflowY: o,
4872
4872
  display: r
4873
4873
  } = Ie(e);
4874
- return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !Bl.has(r);
4874
+ return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !Ul.has(r);
4875
4875
  }
4876
- const Ul = /* @__PURE__ */ new Set(["table", "td", "th"]);
4876
+ const Bl = /* @__PURE__ */ new Set(["table", "td", "th"]);
4877
4877
  function zl(e) {
4878
- return Ul.has(wt(e));
4878
+ return Bl.has(wt(e));
4879
4879
  }
4880
4880
  const Wl = [":popover-open", ":modal"];
4881
4881
  function hn(e) {
@@ -5409,7 +5409,7 @@ function xu(e) {
5409
5409
  E !== I.current && (I.current = E, h(E));
5410
5410
  }, []), x = f.useCallback((E) => {
5411
5411
  E !== A.current && (A.current = E, w(E));
5412
- }, []), S = s || b, T = i || v, I = f.useRef(null), A = f.useRef(null), C = f.useRef(d), N = c != null, k = Fn(c), $ = Fn(r), B = Fn(l), z = f.useCallback(() => {
5412
+ }, []), S = s || b, T = i || v, I = f.useRef(null), A = f.useRef(null), C = f.useRef(d), N = c != null, k = Fn(c), $ = Fn(r), U = Fn(l), z = f.useCallback(() => {
5413
5413
  if (!I.current || !A.current)
5414
5414
  return;
5415
5415
  const E = {
@@ -5424,13 +5424,13 @@ function xu(e) {
5424
5424
  // but still mounted (such as when transitioning out). To ensure
5425
5425
  // `isPositioned` will be `false` initially on the next open, avoid
5426
5426
  // setting it to `true` when `open === false` (must be specified).
5427
- isPositioned: B.current !== !1
5427
+ isPositioned: U.current !== !1
5428
5428
  };
5429
5429
  V.current && !sn(C.current, Z) && (C.current = Z, dn.flushSync(() => {
5430
5430
  u(Z);
5431
5431
  }));
5432
5432
  });
5433
- }, [g, t, n, $, B]);
5433
+ }, [g, t, n, $, U]);
5434
5434
  Jt(() => {
5435
5435
  l === !1 && C.current.isPositioned && (C.current.isPositioned = !1, u((E) => ({
5436
5436
  ...E,
@@ -5599,11 +5599,11 @@ var xo = "PopperContent", [Ou, Du] = ds(xo), gs = f.forwardRef(
5599
5599
  updatePositionStrategy: m = "optimized",
5600
5600
  onPlaced: b,
5601
5601
  ...h
5602
- } = e, v = fs(xo, n), [w, y] = f.useState(null), x = ne(t, (fe) => y(fe)), [S, T] = f.useState(null), I = ku(S), A = (I == null ? void 0 : I.width) ?? 0, C = (I == null ? void 0 : I.height) ?? 0, N = o + (s !== "center" ? "-" + s : ""), k = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, $ = Array.isArray(l) ? l : [l], B = $.length > 0, z = {
5602
+ } = e, v = fs(xo, n), [w, y] = f.useState(null), x = ne(t, (fe) => y(fe)), [S, T] = f.useState(null), I = ku(S), A = (I == null ? void 0 : I.width) ?? 0, C = (I == null ? void 0 : I.height) ?? 0, N = o + (s !== "center" ? "-" + s : ""), k = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, $ = Array.isArray(l) ? l : [l], U = $.length > 0, z = {
5603
5603
  padding: k,
5604
5604
  boundary: $.filter(Fu),
5605
5605
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
5606
- altBoundary: B
5606
+ altBoundary: U
5607
5607
  }, { refs: V, floatingStyles: K, placement: D, isPositioned: L, middlewareData: E } = xu({
5608
5608
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
5609
5609
  strategy: "fixed",
@@ -5772,16 +5772,16 @@ var ys = ps, xs = hs, Cs = gs, Ss = bs, Vu = "Portal", Co = f.forwardRef((e, t)
5772
5772
  return i ? pa.createPortal(/* @__PURE__ */ p(q.div, { ...o, ref: t }), i) : null;
5773
5773
  });
5774
5774
  Co.displayName = Vu;
5775
- function Bu(e, t) {
5775
+ function Uu(e, t) {
5776
5776
  return f.useReducer((n, o) => t[n][o] ?? n, e);
5777
5777
  }
5778
5778
  var yt = (e) => {
5779
- const { present: t, children: n } = e, o = Uu(t), r = typeof n == "function" ? n({ present: o.isPresent }) : f.Children.only(n), s = ne(o.ref, zu(r));
5779
+ const { present: t, children: n } = e, o = Bu(t), r = typeof n == "function" ? n({ present: o.isPresent }) : f.Children.only(n), s = ne(o.ref, zu(r));
5780
5780
  return typeof n == "function" || o.isPresent ? f.cloneElement(r, { ref: s }) : null;
5781
5781
  };
5782
5782
  yt.displayName = "Presence";
5783
- function Uu(e) {
5784
- const [t, n] = f.useState(), o = f.useRef(null), r = f.useRef(e), s = f.useRef("none"), i = e ? "mounted" : "unmounted", [a, c] = Bu(i, {
5783
+ function Bu(e) {
5784
+ const [t, n] = f.useState(), o = f.useRef(null), r = f.useRef(e), s = f.useRef("none"), i = e ? "mounted" : "unmounted", [a, c] = Uu(i, {
5785
5785
  mounted: {
5786
5786
  UNMOUNT: "unmounted",
5787
5787
  ANIMATION_OUT: "unmountSuspended"
@@ -5903,7 +5903,7 @@ var Yu = f.forwardRef((e, t) => {
5903
5903
  if (C.target === C.currentTarget && N && !w) {
5904
5904
  const k = new CustomEvent($n, Wu);
5905
5905
  if (C.currentTarget.dispatchEvent(k), !k.defaultPrevented) {
5906
- const $ = S().filter((D) => D.focusable), B = $.find((D) => D.active), z = $.find((D) => D.id === h), K = [B, z, ...$].filter(
5906
+ const $ = S().filter((D) => D.focusable), U = $.find((D) => D.active), z = $.find((D) => D.id === h), K = [U, z, ...$].filter(
5907
5907
  Boolean
5908
5908
  ).map((D) => D.ref.current);
5909
5909
  Is(K, d);
@@ -6072,7 +6072,7 @@ function nd(e, t, n) {
6072
6072
  return e.concat(s || Array.prototype.slice.call(t));
6073
6073
  }
6074
6074
  var Qt = "right-scroll-bar-position", en = "width-before-scroll-bar", od = "with-scroll-bars-hidden", rd = "--removed-body-scroll-bar-size";
6075
- function Bn(e, t) {
6075
+ function Un(e, t) {
6076
6076
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
6077
6077
  }
6078
6078
  function sd(e, t) {
@@ -6100,7 +6100,7 @@ var id = typeof window < "u" ? f.useLayoutEffect : f.useEffect, br = /* @__PURE_
6100
6100
  function ad(e, t) {
6101
6101
  var n = sd(null, function(o) {
6102
6102
  return e.forEach(function(r) {
6103
- return Bn(r, o);
6103
+ return Un(r, o);
6104
6104
  });
6105
6105
  });
6106
6106
  return id(function() {
@@ -6108,9 +6108,9 @@ function ad(e, t) {
6108
6108
  if (o) {
6109
6109
  var r = new Set(o), s = new Set(e), i = n.current;
6110
6110
  r.forEach(function(a) {
6111
- s.has(a) || Bn(a, null);
6111
+ s.has(a) || Un(a, null);
6112
6112
  }), s.forEach(function(a) {
6113
- r.has(a) || Bn(a, i);
6113
+ r.has(a) || Un(a, i);
6114
6114
  });
6115
6115
  }
6116
6116
  br.set(n, e);
@@ -6192,12 +6192,12 @@ Os.isSideCarExport = !0;
6192
6192
  function dd(e, t) {
6193
6193
  return e.useMedium(t), Os;
6194
6194
  }
6195
- var Ds = ud(), Un = function() {
6195
+ var Ds = ud(), Bn = function() {
6196
6196
  }, yn = f.forwardRef(function(e, t) {
6197
6197
  var n = f.useRef(null), o = f.useState({
6198
- onScrollCapture: Un,
6199
- onWheelCapture: Un,
6200
- onTouchMoveCapture: Un
6198
+ onScrollCapture: Bn,
6199
+ onWheelCapture: Bn,
6200
+ onTouchMoveCapture: Bn
6201
6201
  }), r = o[0], s = o[1], i = e.forwardProps, a = e.children, c = e.className, l = e.removeScrollBar, d = e.enabled, u = e.shards, g = e.sideCar, m = e.noRelative, b = e.noIsolation, h = e.inert, v = e.allowPinchZoom, w = e.as, y = w === void 0 ? "div" : w, x = e.gapMode, S = _s(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), T = g, I = ad([n, t]), A = Pe(Pe({}, S), r);
6202
6202
  return f.createElement(
6203
6203
  f.Fragment,
@@ -6462,8 +6462,8 @@ function Dd(e) {
6462
6462
  return !1;
6463
6463
  if (!o.current && "changedTouches" in h && (x || S) && (o.current = T), !T)
6464
6464
  return !0;
6465
- var B = o.current || T;
6466
- return Nd(B, v, h, B === "h" ? x : S);
6465
+ var U = o.current || T;
6466
+ return Nd(U, v, h, U === "h" ? x : S);
6467
6467
  }, []), c = f.useCallback(function(h) {
6468
6468
  var v = h;
6469
6469
  if (!(!dt.length || dt[dt.length - 1] !== s)) {
@@ -6524,13 +6524,13 @@ var So = f.forwardRef(function(e, t) {
6524
6524
  return f.createElement(yn, Pe({}, e, { ref: t, sideCar: Fd }));
6525
6525
  });
6526
6526
  So.classNames = yn.classNames;
6527
- var no = ["Enter", " "], $d = ["ArrowDown", "PageUp", "Home"], Bs = ["ArrowUp", "PageDown", "End"], Vd = [...$d, ...Bs], Bd = {
6527
+ var no = ["Enter", " "], $d = ["ArrowDown", "PageUp", "Home"], Us = ["ArrowUp", "PageDown", "End"], Vd = [...$d, ...Us], Ud = {
6528
6528
  ltr: [...no, "ArrowRight"],
6529
6529
  rtl: [...no, "ArrowLeft"]
6530
- }, Ud = {
6530
+ }, Bd = {
6531
6531
  ltr: ["ArrowLeft"],
6532
6532
  rtl: ["ArrowRight"]
6533
- }, Lt = "Menu", [kt, zd, Wd] = uo(Lt), [st, Us] = rt(Lt, [
6533
+ }, Lt = "Menu", [kt, zd, Wd] = uo(Lt), [st, Bs] = rt(Lt, [
6534
6534
  Wd,
6535
6535
  bn,
6536
6536
  wn
@@ -6638,7 +6638,7 @@ var Se = "MenuContent", [Yd, Ao] = st(Se), Ks = f.forwardRef(
6638
6638
  onDismiss: m,
6639
6639
  disableOutsideScroll: b,
6640
6640
  ...h
6641
- } = e, v = it(Se, n), w = Ft(Se, n), y = xn(n), x = zs(n), S = zd(n), [T, I] = f.useState(null), A = f.useRef(null), C = ne(t, A, v.onContentChange), N = f.useRef(0), k = f.useRef(""), $ = f.useRef(0), B = f.useRef(null), z = f.useRef("right"), V = f.useRef(0), K = b ? So : f.Fragment, D = b ? { as: Zd, allowPinchZoom: !0 } : void 0, L = (M) => {
6641
+ } = e, v = it(Se, n), w = Ft(Se, n), y = xn(n), x = zs(n), S = zd(n), [T, I] = f.useState(null), A = f.useRef(null), C = ne(t, A, v.onContentChange), N = f.useRef(0), k = f.useRef(""), $ = f.useRef(0), U = f.useRef(null), z = f.useRef("right"), V = f.useRef(0), K = b ? So : f.Fragment, D = b ? { as: Zd, allowPinchZoom: !0 } : void 0, L = (M) => {
6642
6642
  var P, Y;
6643
6643
  const Z = k.current + M, te = S().filter((j) => !j.disabled), re = document.activeElement, Q = (P = te.find((j) => j.ref.current === re)) == null ? void 0 : P.textValue, J = te.map((j) => j.textValue), le = uf(J, Z, Q), ie = (Y = te.find((j) => j.textValue === le)) == null ? void 0 : Y.ref.current;
6644
6644
  (function j(H) {
@@ -6648,7 +6648,7 @@ var Se = "MenuContent", [Yd, Ao] = st(Se), Ks = f.forwardRef(
6648
6648
  f.useEffect(() => () => window.clearTimeout(N.current), []), Zr();
6649
6649
  const E = f.useCallback((M) => {
6650
6650
  var te, re;
6651
- return z.current === ((te = B.current) == null ? void 0 : te.side) && ff(M, (re = B.current) == null ? void 0 : re.area);
6651
+ return z.current === ((te = U.current) == null ? void 0 : te.side) && ff(M, (re = U.current) == null ? void 0 : re.area);
6652
6652
  }, []);
6653
6653
  return /* @__PURE__ */ p(
6654
6654
  Yd,
@@ -6676,7 +6676,7 @@ var Se = "MenuContent", [Yd, Ao] = st(Se), Ks = f.forwardRef(
6676
6676
  ),
6677
6677
  pointerGraceTimerRef: $,
6678
6678
  onPointerGraceIntentChange: f.useCallback((M) => {
6679
- B.current = M;
6679
+ U.current = M;
6680
6680
  }, []),
6681
6681
  children: /* @__PURE__ */ p(K, { ...D, children: /* @__PURE__ */ p(
6682
6682
  po,
@@ -6731,7 +6731,7 @@ var Se = "MenuContent", [Yd, Ao] = st(Se), Ks = f.forwardRef(
6731
6731
  if (M.target !== J || !Vd.includes(M.key)) return;
6732
6732
  M.preventDefault();
6733
6733
  const ie = S().filter((P) => !P.disabled).map((P) => P.ref.current);
6734
- Bs.includes(M.key) && ie.reverse(), cf(ie);
6734
+ Us.includes(M.key) && ie.reverse(), cf(ie);
6735
6735
  }),
6736
6736
  onBlur: F(e.onBlur, (M) => {
6737
6737
  M.currentTarget.contains(M.target) || (window.clearTimeout(N.current), k.current = "");
@@ -7009,7 +7009,7 @@ var af = "MenuSub", [$m, ri] = st(af), Rt = "MenuSubTrigger", si = f.forwardRef(
7009
7009
  onKeyDown: F(e.onKeyDown, (u) => {
7010
7010
  var m;
7011
7011
  const g = s.searchRef.current !== "";
7012
- e.disabled || g && u.key === " " || Bd[o.dir].includes(u.key) && (n.onOpenChange(!0), (m = n.content) == null || m.focus(), u.preventDefault());
7012
+ e.disabled || g && u.key === " " || Ud[o.dir].includes(u.key) && (n.onOpenChange(!0), (m = n.content) == null || m.focus(), u.preventDefault());
7013
7013
  })
7014
7014
  }
7015
7015
  ) });
@@ -7044,7 +7044,7 @@ var ii = "MenuSubContent", ai = f.forwardRef(
7044
7044
  }),
7045
7045
  onKeyDown: F(e.onKeyDown, (d) => {
7046
7046
  var m;
7047
- const u = d.currentTarget.contains(d.target), g = Ud[i.dir].includes(d.key);
7047
+ const u = d.currentTarget.contains(d.target), g = Bd[i.dir].includes(d.key);
7048
7048
  u && g && (s.onOpenChange(!1), (m = a.trigger) == null || m.focus(), d.preventDefault());
7049
7049
  })
7050
7050
  }
@@ -7097,8 +7097,8 @@ function _t(e) {
7097
7097
  }
7098
7098
  var pf = Ws, mf = Eo, hf = Hs, gf = Ks, vf = Io, bf = js, wf = Cn, yf = Xs, xf = Zs, Cf = Qs, Sf = ti, Ef = ni, Rf = oi, Af = si, Tf = ai, Sn = "DropdownMenu", [If] = rt(
7099
7099
  Sn,
7100
- [Us]
7101
- ), he = Us(), [Pf, li] = If(Sn), ui = (e) => {
7100
+ [Bs]
7101
+ ), he = Bs(), [Pf, li] = If(Sn), ui = (e) => {
7102
7102
  const {
7103
7103
  __scopeDropdownMenu: t,
7104
7104
  children: n,
@@ -7224,16 +7224,16 @@ var Ff = "DropdownMenuRadioGroup", $f = f.forwardRef((e, t) => {
7224
7224
  return /* @__PURE__ */ p(xf, { ...r, ...o, ref: t });
7225
7225
  });
7226
7226
  $f.displayName = Ff;
7227
- var Vf = "DropdownMenuRadioItem", Bf = f.forwardRef((e, t) => {
7227
+ var Vf = "DropdownMenuRadioItem", Uf = f.forwardRef((e, t) => {
7228
7228
  const { __scopeDropdownMenu: n, ...o } = e, r = he(n);
7229
7229
  return /* @__PURE__ */ p(Cf, { ...r, ...o, ref: t });
7230
7230
  });
7231
- Bf.displayName = Vf;
7232
- var Uf = "DropdownMenuItemIndicator", bi = f.forwardRef((e, t) => {
7231
+ Uf.displayName = Vf;
7232
+ var Bf = "DropdownMenuItemIndicator", bi = f.forwardRef((e, t) => {
7233
7233
  const { __scopeDropdownMenu: n, ...o } = e, r = he(n);
7234
7234
  return /* @__PURE__ */ p(Sf, { ...r, ...o, ref: t });
7235
7235
  });
7236
- bi.displayName = Uf;
7236
+ bi.displayName = Bf;
7237
7237
  var zf = "DropdownMenuSeparator", wi = f.forwardRef((e, t) => {
7238
7238
  const { __scopeDropdownMenu: n, ...o } = e, r = he(n);
7239
7239
  return /* @__PURE__ */ p(Ef, { ...r, ...o, ref: t });
@@ -7306,7 +7306,7 @@ function up({ onClick: e, disabled: t, className: n, asChild: o, children: r })
7306
7306
  }
7307
7307
  function dp({ checked: e, onCheckedChange: t, className: n, children: o }) {
7308
7308
  const r = de();
7309
- return /* @__PURE__ */ U(
7309
+ return /* @__PURE__ */ B(
7310
7310
  ep,
7311
7311
  {
7312
7312
  checked: e,
@@ -7369,10 +7369,10 @@ function pp({ table: e }) {
7369
7369
  a[c.id] = !l;
7370
7370
  }), Jo(n.current, a);
7371
7371
  };
7372
- return /* @__PURE__ */ U(ce.Root, { children: [
7372
+ return /* @__PURE__ */ B(ce.Root, { children: [
7373
7373
  /* @__PURE__ */ p(ce.Trigger, { asChild: !0, children: /* @__PURE__ */ p(Ne, { children: /* @__PURE__ */ p(Wo, { className: R("h-4 w-4") }) }) }),
7374
- /* @__PURE__ */ U(ce.Content, { align: "end", className: R("w-56"), children: [
7375
- /* @__PURE__ */ U("div", { className: R("flex items-center gap-2 px-2 py-1.5 text-sm font-semibold"), children: [
7374
+ /* @__PURE__ */ B(ce.Content, { align: "end", className: R("w-56"), children: [
7375
+ /* @__PURE__ */ B("div", { className: R("flex items-center gap-2 px-2 py-1.5 text-sm font-semibold"), children: [
7376
7376
  /* @__PURE__ */ p(Wo, { className: R("h-4 w-4") }),
7377
7377
  t("dataTable.columnsConfiguration")
7378
7378
  ] }),
@@ -7458,8 +7458,8 @@ var bp = [" ", "Enter", "ArrowUp", "ArrowDown"], wp = [" ", "Enter"], nt = "Sele
7458
7458
  defaultProp: a,
7459
7459
  onChange: c,
7460
7460
  caller: nt
7461
- }), $ = f.useRef(null), B = v ? b || !!v.closest("form") : !0, [z, V] = f.useState(/* @__PURE__ */ new Set()), K = Array.from(z).map((D) => D.props.value).join(";");
7462
- return /* @__PURE__ */ p(ys, { ...h, children: /* @__PURE__ */ U(
7461
+ }), $ = f.useRef(null), U = v ? b || !!v.closest("form") : !0, [z, V] = f.useState(/* @__PURE__ */ new Set()), K = Array.from(z).map((D) => D.props.value).join(";");
7462
+ return /* @__PURE__ */ p(ys, { ...h, children: /* @__PURE__ */ B(
7463
7463
  xp,
7464
7464
  {
7465
7465
  required: m,
@@ -7495,8 +7495,8 @@ var bp = [" ", "Enter", "ArrowUp", "ArrowDown"], wp = [" ", "Enter"], nt = "Sele
7495
7495
  children: n
7496
7496
  }
7497
7497
  ) }),
7498
- B ? /* @__PURE__ */ U(
7499
- Ui,
7498
+ U ? /* @__PURE__ */ B(
7499
+ Bi,
7500
7500
  {
7501
7501
  "aria-hidden": !0,
7502
7502
  required: m,
@@ -7629,17 +7629,17 @@ var Ee = 10, [Pi, je] = xt(ot), Ap = "SelectContentImpl", Tp = /* @__PURE__ */ P
7629
7629
  ...w
7630
7630
  } = e, y = Ke(ot, n), [x, S] = f.useState(null), [T, I] = f.useState(null), A = ne(t, (P) => S(P)), [C, N] = f.useState(null), [k, $] = f.useState(
7631
7631
  null
7632
- ), B = Rn(n), [z, V] = f.useState(!1), K = f.useRef(!1);
7632
+ ), U = Rn(n), [z, V] = f.useState(!1), K = f.useRef(!1);
7633
7633
  f.useEffect(() => {
7634
7634
  if (x) return ks(x);
7635
7635
  }, [x]), Zr();
7636
7636
  const D = f.useCallback(
7637
7637
  (P) => {
7638
- const [Y, ...j] = B().map((W) => W.ref.current), [H] = j.slice(-1), X = document.activeElement;
7638
+ const [Y, ...j] = U().map((W) => W.ref.current), [H] = j.slice(-1), X = document.activeElement;
7639
7639
  for (const W of P)
7640
7640
  if (W === X || (W == null || W.scrollIntoView({ block: "nearest" }), W === Y && T && (T.scrollTop = 0), W === H && T && (T.scrollTop = T.scrollHeight), W == null || W.focus(), document.activeElement !== X)) return;
7641
7641
  },
7642
- [B, T]
7642
+ [U, T]
7643
7643
  ), L = f.useCallback(
7644
7644
  () => D([C, x]),
7645
7645
  [D, C, x]
@@ -7671,7 +7671,7 @@ var Ee = 10, [Pi, je] = xt(ot), Ap = "SelectContentImpl", Tp = /* @__PURE__ */ P
7671
7671
  };
7672
7672
  }, [E]);
7673
7673
  const [Z, te] = Wi((P) => {
7674
- const Y = B().filter((X) => !X.disabled), j = Y.find((X) => X.ref.current === document.activeElement), H = Gi(Y, P, j);
7674
+ const Y = U().filter((X) => !X.disabled), j = Y.find((X) => X.ref.current === document.activeElement), H = Gi(Y, P, j);
7675
7675
  H && setTimeout(() => H.ref.current.focus());
7676
7676
  }), re = f.useCallback(
7677
7677
  (P, Y, j) => {
@@ -7757,7 +7757,7 @@ var Ee = 10, [Pi, je] = xt(ot), Ap = "SelectContentImpl", Tp = /* @__PURE__ */ P
7757
7757
  onKeyDown: F(w.onKeyDown, (P) => {
7758
7758
  const Y = P.ctrlKey || P.altKey || P.metaKey;
7759
7759
  if (P.key === "Tab" && P.preventDefault(), !Y && P.key.length === 1 && te(P.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(P.key)) {
7760
- let H = B().filter((X) => !X.disabled).map((X) => X.ref.current);
7760
+ let H = U().filter((X) => !X.disabled).map((X) => X.ref.current);
7761
7761
  if (["ArrowUp", "End"].includes(P.key) && (H = H.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(P.key)) {
7762
7762
  const X = P.target, W = H.indexOf(X);
7763
7763
  H = H.slice(W + 1);
@@ -7798,7 +7798,7 @@ var Ip = "SelectItemAlignedPosition", Ni = f.forwardRef((e, t) => {
7798
7798
  ]);
7799
7799
  a.style.minWidth = ye + "px", a.style.right = qe + "px";
7800
7800
  }
7801
- const $ = g(), B = window.innerHeight - Ee * 2, z = h.scrollHeight, V = window.getComputedStyle(l), K = parseInt(V.borderTopWidth, 10), D = parseInt(V.paddingTop, 10), L = parseInt(V.borderBottomWidth, 10), E = parseInt(V.paddingBottom, 10), M = K + D + z + E + L, Z = Math.min(v.offsetHeight * 5, M), te = window.getComputedStyle(h), re = parseInt(te.paddingTop, 10), Q = parseInt(te.paddingBottom, 10), J = A.top + A.height / 2 - Ee, le = B - J, ie = v.offsetHeight / 2, P = v.offsetTop + ie, Y = K + D + P, j = M - Y;
7801
+ const $ = g(), U = window.innerHeight - Ee * 2, z = h.scrollHeight, V = window.getComputedStyle(l), K = parseInt(V.borderTopWidth, 10), D = parseInt(V.paddingTop, 10), L = parseInt(V.borderBottomWidth, 10), E = parseInt(V.paddingBottom, 10), M = K + D + z + E + L, Z = Math.min(v.offsetHeight * 5, M), te = window.getComputedStyle(h), re = parseInt(te.paddingTop, 10), Q = parseInt(te.paddingBottom, 10), J = A.top + A.height / 2 - Ee, le = U - J, ie = v.offsetHeight / 2, P = v.offsetTop + ie, Y = K + D + P, j = M - Y;
7802
7802
  if (Y <= J) {
7803
7803
  const X = $.length > 0 && v === $[$.length - 1].ref.current;
7804
7804
  a.style.bottom = "0px";
@@ -7818,7 +7818,7 @@ var Ip = "SelectItemAlignedPosition", Ni = f.forwardRef((e, t) => {
7818
7818
  ) + j;
7819
7819
  a.style.height = fe + "px", h.scrollTop = Y - J + h.offsetTop;
7820
7820
  }
7821
- a.style.margin = `${Ee}px 0`, a.style.minHeight = Z + "px", a.style.maxHeight = B + "px", o == null || o(), requestAnimationFrame(() => m.current = !0);
7821
+ a.style.margin = `${Ee}px 0`, a.style.minHeight = Z + "px", a.style.maxHeight = U + "px", o == null || o(), requestAnimationFrame(() => m.current = !0);
7822
7822
  }
7823
7823
  }, [
7824
7824
  g,
@@ -7913,7 +7913,7 @@ oo.displayName = Pp;
7913
7913
  var [Mp, No] = xt(ot, {}), ro = "SelectViewport", ki = f.forwardRef(
7914
7914
  (e, t) => {
7915
7915
  const { __scopeSelect: n, nonce: o, ...r } = e, s = je(ro, n), i = No(ro, n), a = ne(t, s.onViewportChange), c = f.useRef(0);
7916
- return /* @__PURE__ */ U(un, { children: [
7916
+ return /* @__PURE__ */ B(un, { children: [
7917
7917
  /* @__PURE__ */ p(
7918
7918
  "style",
7919
7919
  {
@@ -8075,7 +8075,7 @@ var At = "SelectItemText", Fi = f.forwardRef(
8075
8075
  () => /* @__PURE__ */ p("option", { value: c.value, disabled: c.disabled, children: m }, c.value),
8076
8076
  [c.disabled, c.value, m]
8077
8077
  ), { onNativeOptionAdd: h, onNativeOptionRemove: v } = l;
8078
- return ue(() => (h(b), () => v(b)), [h, v, b]), /* @__PURE__ */ U(un, { children: [
8078
+ return ue(() => (h(b), () => v(b)), [h, v, b]), /* @__PURE__ */ B(un, { children: [
8079
8079
  /* @__PURE__ */ p(q.span, { id: c.textId, ...s, ref: g }),
8080
8080
  c.isSelected && i.valueNode && !i.valueNodeHasChildren ? dn.createPortal(s.children, i.valueNode) : null
8081
8081
  ] });
@@ -8101,7 +8101,7 @@ var so = "SelectScrollUpButton", Lp = f.forwardRef((e, t) => {
8101
8101
  return a(), c.addEventListener("scroll", a), () => c.removeEventListener("scroll", a);
8102
8102
  }
8103
8103
  }, [n.viewport, n.isPositioned]), r ? /* @__PURE__ */ p(
8104
- Bi,
8104
+ Ui,
8105
8105
  {
8106
8106
  ...e,
8107
8107
  ref: i,
@@ -8125,7 +8125,7 @@ var io = "SelectScrollDownButton", Fp = f.forwardRef((e, t) => {
8125
8125
  return a(), c.addEventListener("scroll", a), () => c.removeEventListener("scroll", a);
8126
8126
  }
8127
8127
  }, [n.viewport, n.isPositioned]), r ? /* @__PURE__ */ p(
8128
- Bi,
8128
+ Ui,
8129
8129
  {
8130
8130
  ...e,
8131
8131
  ref: i,
@@ -8137,7 +8137,7 @@ var io = "SelectScrollDownButton", Fp = f.forwardRef((e, t) => {
8137
8137
  ) : null;
8138
8138
  });
8139
8139
  Fp.displayName = io;
8140
- var Bi = f.forwardRef((e, t) => {
8140
+ var Ui = f.forwardRef((e, t) => {
8141
8141
  const { __scopeSelect: n, onAutoScroll: o, ...r } = e, s = je("SelectScrollButton", n), i = f.useRef(null), a = Rn(n), c = f.useCallback(() => {
8142
8142
  i.current !== null && (window.clearInterval(i.current), i.current = null);
8143
8143
  }, []);
@@ -8171,14 +8171,14 @@ var Bi = f.forwardRef((e, t) => {
8171
8171
  }
8172
8172
  );
8173
8173
  Vp.displayName = $p;
8174
- var ao = "SelectArrow", Bp = f.forwardRef(
8174
+ var ao = "SelectArrow", Up = f.forwardRef(
8175
8175
  (e, t) => {
8176
8176
  const { __scopeSelect: n, ...o } = e, r = An(n), s = Ke(ao, n), i = je(ao, n);
8177
8177
  return s.open && i.position === "popper" ? /* @__PURE__ */ p(Ss, { ...r, ...o, ref: t }) : null;
8178
8178
  }
8179
8179
  );
8180
- Bp.displayName = ao;
8181
- var Up = "SelectBubbleInput", Ui = f.forwardRef(
8180
+ Up.displayName = ao;
8181
+ var Bp = "SelectBubbleInput", Bi = f.forwardRef(
8182
8182
  ({ __scopeSelect: e, value: t, ...n }, o) => {
8183
8183
  const r = f.useRef(null), s = ne(o, r), i = hp(t);
8184
8184
  return f.useEffect(() => {
@@ -8203,7 +8203,7 @@ var Up = "SelectBubbleInput", Ui = f.forwardRef(
8203
8203
  );
8204
8204
  }
8205
8205
  );
8206
- Ui.displayName = Up;
8206
+ Bi.displayName = Bp;
8207
8207
  function zi(e) {
8208
8208
  return e === "" || e === void 0;
8209
8209
  }
@@ -8240,7 +8240,7 @@ function om({ value: e, onValueChange: t, children: n }) {
8240
8240
  }
8241
8241
  function rm({ className: e, children: t }) {
8242
8242
  const n = de();
8243
- return /* @__PURE__ */ U(Gp, { className: R(Qp, n.select.trigger, e), children: [
8243
+ return /* @__PURE__ */ B(Gp, { className: R(Qp, n.select.trigger, e), children: [
8244
8244
  t,
8245
8245
  /* @__PURE__ */ p(Kp, { asChild: !0, children: /* @__PURE__ */ p(Ma, { className: R("h-4 w-4 opacity-50") }) })
8246
8246
  ] });
@@ -8262,7 +8262,7 @@ function im({ children: e }) {
8262
8262
  }
8263
8263
  function am({ value: e, children: t }) {
8264
8264
  const n = de();
8265
- return /* @__PURE__ */ U(
8265
+ return /* @__PURE__ */ B(
8266
8266
  qp,
8267
8267
  {
8268
8268
  value: e,
@@ -8282,7 +8282,7 @@ const Me = {
8282
8282
  Item: am
8283
8283
  }, Tn = [25, 50, 100];
8284
8284
  function cm({ table: e, isLoading: t }) {
8285
- return /* @__PURE__ */ p("div", { className: R("flex items-center justify-center px-2 py-4"), children: /* @__PURE__ */ U("div", { className: R("flex items-center gap-2"), children: [
8285
+ return /* @__PURE__ */ p("div", { className: R("flex items-center justify-center px-2 py-4"), children: /* @__PURE__ */ B("div", { className: R("flex items-center gap-2"), children: [
8286
8286
  /* @__PURE__ */ p(
8287
8287
  Ne,
8288
8288
  {
@@ -8301,9 +8301,9 @@ function cm({ table: e, isLoading: t }) {
8301
8301
  children: /* @__PURE__ */ p(xa, { className: R("h-4 w-4") })
8302
8302
  }
8303
8303
  ),
8304
- /* @__PURE__ */ U("div", { className: R("flex items-center gap-2 px-4"), children: [
8304
+ /* @__PURE__ */ B("div", { className: R("flex items-center gap-2 px-4"), children: [
8305
8305
  /* @__PURE__ */ p("div", { className: R("flex h-8 w-8 items-center justify-center rounded-md border bg-background"), children: t ? /* @__PURE__ */ p(Ia, { className: R("h-4 w-4 animate-spin") }) : e.getState().pagination.pageIndex + 1 }),
8306
- /* @__PURE__ */ U("span", { className: R("text-sm text-muted-foreground"), children: [
8306
+ /* @__PURE__ */ B("span", { className: R("text-sm text-muted-foreground"), children: [
8307
8307
  "de ",
8308
8308
  e.getPageCount()
8309
8309
  ] })
@@ -8334,9 +8334,9 @@ function lm({
8334
8334
  enableElementLabel: n = !0
8335
8335
  }) {
8336
8336
  const o = ht();
8337
- return /* @__PURE__ */ U("div", { className: R("flex items-center gap-2"), children: [
8337
+ return /* @__PURE__ */ B("div", { className: R("flex items-center gap-2"), children: [
8338
8338
  n && /* @__PURE__ */ p("span", { className: R("text-sm text-muted-foreground"), children: o("dataTable.paginationSize") }),
8339
- /* @__PURE__ */ U(
8339
+ /* @__PURE__ */ B(
8340
8340
  Me.Root,
8341
8341
  {
8342
8342
  value: e.getState().pagination.pageSize.toString(),
@@ -8521,7 +8521,7 @@ const Wn = {
8521
8521
  function xm({ prefilters: e, activePrefilter: t, onPrefilterChange: n }) {
8522
8522
  var c;
8523
8523
  const o = Ic(), r = ht(), s = de(), i = e.find((l) => l.id === t), a = e.length > 0 && t !== ((c = e[0]) == null ? void 0 : c.id);
8524
- return o || e.length > 4 ? /* @__PURE__ */ U(Me.Root, { value: t, onValueChange: n, children: [
8524
+ return o || e.length > 4 ? /* @__PURE__ */ B(Me.Root, { value: t, onValueChange: n, children: [
8525
8525
  /* @__PURE__ */ p(Me.Trigger, { className: `w-fit min-w-32 ${a ? s.state.active : ""}`, children: /* @__PURE__ */ p(Me.Value, { children: (i == null ? void 0 : i.label) || r("dataTable.selectFilter") }) }),
8526
8526
  /* @__PURE__ */ p(Me.Content, { children: e.map((l) => /* @__PURE__ */ p(Me.Item, { value: l.id, children: l.label }, l.id)) })
8527
8527
  ] }) : /* @__PURE__ */ p(Wn.Root, { value: t, onValueChange: n, children: /* @__PURE__ */ p(Wn.List, { className: a ? s.state.active : "", children: e.map((l) => /* @__PURE__ */ p(Wn.Trigger, { value: l.id, children: l.label }, l.id)) }) });
@@ -8557,7 +8557,7 @@ function Em({ value: e = "", onDebouncedChange: t, placeholder: n }) {
8557
8557
  return () => clearTimeout(a);
8558
8558
  }, [r, e, t]);
8559
8559
  const i = r.length > 0;
8560
- return /* @__PURE__ */ p("div", { className: R("relative lg:min-w-[331px] min-w-[220px]"), children: /* @__PURE__ */ U("div", { className: R("flex relative"), children: [
8560
+ return /* @__PURE__ */ p("div", { className: R("relative lg:min-w-[331px] min-w-[220px]"), children: /* @__PURE__ */ B("div", { className: R("flex relative"), children: [
8561
8561
  /* @__PURE__ */ p(
8562
8562
  _o,
8563
8563
  {
@@ -8595,16 +8595,16 @@ function Rm({
8595
8595
  };
8596
8596
  if (e.options.length === 0) return null;
8597
8597
  const g = () => a === 0 ? e.label : a === 1 ? c[0] : a === 2 ? c.join(", ") : `${c.slice(0, 2).join(", ")} +${a - 2}`;
8598
- return /* @__PURE__ */ U(ce.Root, { children: [
8599
- /* @__PURE__ */ p(ce.Trigger, { asChild: !0, children: /* @__PURE__ */ U(Ne, { className: R("gap-1.5 w-full justify-between", a > 0 && r.state.active), children: [
8600
- /* @__PURE__ */ U("div", { className: R("flex items-center gap-1.5 min-w-0"), children: [
8598
+ return /* @__PURE__ */ B(ce.Root, { children: [
8599
+ /* @__PURE__ */ p(ce.Trigger, { asChild: !0, children: /* @__PURE__ */ B(Ne, { className: R("gap-1.5 w-full justify-between", a > 0 && r.state.active), children: [
8600
+ /* @__PURE__ */ B("div", { className: R("flex items-center gap-1.5 min-w-0"), children: [
8601
8601
  /* @__PURE__ */ p(Aa, { className: R("h-4 w-4 shrink-0", a > 0 && r.state.activeText) }),
8602
8602
  /* @__PURE__ */ p("span", { className: R("truncate"), children: g() })
8603
8603
  ] }),
8604
8604
  /* @__PURE__ */ p(co, { className: R("h-3.5 w-3.5 opacity-50 shrink-0") })
8605
8605
  ] }) }),
8606
- /* @__PURE__ */ U(ce.Content, { align: "start", className: R("w-56"), children: [
8607
- /* @__PURE__ */ p("div", { className: R("p-2"), children: /* @__PURE__ */ U("div", { className: R("relative"), children: [
8606
+ /* @__PURE__ */ B(ce.Content, { align: "start", className: R("w-56"), children: [
8607
+ /* @__PURE__ */ p("div", { className: R("p-2"), children: /* @__PURE__ */ B("div", { className: R("relative"), children: [
8608
8608
  /* @__PURE__ */ p(Ir, { className: R("absolute left-2 top-2.5 h-4 w-4 text-muted-foreground") }),
8609
8609
  /* @__PURE__ */ p(
8610
8610
  _o,
@@ -8629,7 +8629,7 @@ function Rm({
8629
8629
  },
8630
8630
  m.value
8631
8631
  )),
8632
- a > 0 && /* @__PURE__ */ U(un, { children: [
8632
+ a > 0 && /* @__PURE__ */ B(un, { children: [
8633
8633
  /* @__PURE__ */ p(ce.Separator, {}),
8634
8634
  /* @__PURE__ */ p(ce.Item, { onClick: u, className: R("text-xs cursor-pointer"), children: o("dataTable.resetFilters") })
8635
8635
  ] })
@@ -8678,7 +8678,7 @@ function ea({
8678
8678
  displayTotalNumber: N = !0,
8679
8679
  enableElementLabel: k = !0,
8680
8680
  enablePagination: $ = !0,
8681
- paginationSizes: B,
8681
+ paginationSizes: U,
8682
8682
  enableResponsive: z = !0,
8683
8683
  texts: V,
8684
8684
  // Reset
@@ -8728,15 +8728,15 @@ function ea({
8728
8728
  filterFns: {
8729
8729
  multiSelect: ra
8730
8730
  },
8731
- globalFilterFn: d ? Uc : void 0
8731
+ globalFilterFn: d ? Bc : void 0
8732
8732
  } : {}
8733
8733
  }), sa = (ee, oe) => {
8734
8734
  const ae = String(ee), Ce = { ...W };
8735
8735
  oe.length === 0 ? delete Ce[ae] : Ce[ae] = oe, fe(Ce);
8736
8736
  }, ia = d || N || u && u.length > 0 || I, aa = Ae(() => xe ? e.length : Fe.getRowModel().rows.length, [xe, e.length, Fe]), ca = Ae(() => xe && a !== void 0 ? a : Fe.getFilteredRowModel().rows.length, [xe, a, Fe, e.length, H, Oo]);
8737
- return /* @__PURE__ */ U("div", { className: R("snow-table-container relative flex flex-col flex-1 text-foreground", L.table.root), "data-testid": "datatable", children: [
8737
+ return /* @__PURE__ */ B("div", { className: R("snow-table-container relative flex flex-col flex-1 text-foreground", L.table.root), "data-testid": "datatable", children: [
8738
8738
  o && !n && /* @__PURE__ */ p("div", { className: R("absolute inset-0 z-10 pointer-events-none", L.table.loadingOverlay) }),
8739
- ia && /* @__PURE__ */ U("div", { className: R("snow-table-top-bar grid grid-cols-1 lg:grid-cols-[auto_1fr_auto] py-4 gap-4 items-center"), children: [
8739
+ ia && /* @__PURE__ */ B("div", { className: R("snow-table-top-bar grid grid-cols-1 lg:grid-cols-[auto_1fr_auto] py-4 gap-4 items-center"), children: [
8740
8740
  /* @__PURE__ */ p("div", { className: R("snow-table-prefilters flex items-center gap-2"), children: b && b.length > 0 && v && /* @__PURE__ */ p(
8741
8741
  xm,
8742
8742
  {
@@ -8753,7 +8753,7 @@ function ea({
8753
8753
  placeholder: (V == null ? void 0 : V.searchPlaceholder) || D("dataTable.search")
8754
8754
  }
8755
8755
  ) }) }),
8756
- /* @__PURE__ */ U("div", { className: R("snow-table-filters grid grid-cols-1 sm:flex sm:flex-row gap-2 items-center"), children: [
8756
+ /* @__PURE__ */ B("div", { className: R("snow-table-filters grid grid-cols-1 sm:flex sm:flex-row gap-2 items-center"), children: [
8757
8757
  u == null ? void 0 : u.map((ee) => /* @__PURE__ */ p(
8758
8758
  Rm,
8759
8759
  {
@@ -8763,7 +8763,7 @@ function ea({
8763
8763
  },
8764
8764
  String(ee.key)
8765
8765
  )),
8766
- /* @__PURE__ */ U("div", { className: R("snow-table-actions flex items-center gap-2 justify-end lg:justify-start"), children: [
8766
+ /* @__PURE__ */ B("div", { className: R("snow-table-actions flex items-center gap-2 justify-end lg:justify-start"), children: [
8767
8767
  I && /* @__PURE__ */ p(pp, { table: Fe }),
8768
8768
  (d || b && b.length > 0 || u && u.length > 0) && K && /* @__PURE__ */ p(
8769
8769
  Ne,
@@ -8785,7 +8785,7 @@ function ea({
8785
8785
  L.table.container,
8786
8786
  z && ze.container.base
8787
8787
  ),
8788
- children: /* @__PURE__ */ U("table", { className: R("w-full text-sm"), "data-testid": "datatable-table", children: [
8788
+ children: /* @__PURE__ */ B("table", { className: R("w-full text-sm"), "data-testid": "datatable-table", children: [
8789
8789
  /* @__PURE__ */ p("thead", { className: R(L.table.header, z && ze.thead.base), children: Fe.getHeaderGroups().map((ee) => /* @__PURE__ */ p("tr", { children: ee.headers.map((oe) => {
8790
8790
  var ae, Ce, $t, Vt;
8791
8791
  return /* @__PURE__ */ p(
@@ -8801,7 +8801,7 @@ function ea({
8801
8801
  width: (Ce = (ae = oe.column.columnDef) == null ? void 0 : ae.meta) == null ? void 0 : Ce.width,
8802
8802
  minWidth: (Vt = ($t = oe.column.columnDef) == null ? void 0 : $t.meta) == null ? void 0 : Vt.minWidth
8803
8803
  },
8804
- children: oe.isPlaceholder ? null : /* @__PURE__ */ U("span", { className: R("flex gap-2 items-center justify-between w-full"), children: [
8804
+ children: oe.isPlaceholder ? null : /* @__PURE__ */ B("span", { className: R("flex gap-2 items-center justify-between w-full"), children: [
8805
8805
  /* @__PURE__ */ p("h3", { children: zo(oe.column.columnDef.header, oe.getContext()) }),
8806
8806
  x && /* @__PURE__ */ p(Am, { column: oe.column })
8807
8807
  ] })
@@ -8831,12 +8831,12 @@ function ea({
8831
8831
  children: ee.getVisibleCells().map((ae, Ce) => {
8832
8832
  var Lo, Fo, $o, Vo;
8833
8833
  const $t = typeof ae.column.columnDef.header == "string" ? ae.column.columnDef.header : ae.column.id, Vt = Ce === ee.getVisibleCells().length - 1;
8834
- return /* @__PURE__ */ U(
8834
+ return /* @__PURE__ */ B(
8835
8835
  "td",
8836
8836
  {
8837
8837
  onClick: () => {
8838
- var Bo, Uo;
8839
- return A && !((Uo = (Bo = ae.column.columnDef) == null ? void 0 : Bo.meta) != null && Uo.disableColumnClick) && A(ee.original);
8838
+ var Uo, Bo;
8839
+ return A && !((Bo = (Uo = ae.column.columnDef) == null ? void 0 : Uo.meta) != null && Bo.disableColumnClick) && A(ee.original);
8840
8840
  },
8841
8841
  className: R(
8842
8842
  A && !((Fo = (Lo = ae.column.columnDef) == null ? void 0 : Lo.meta) != null && Fo.disableColumnClick) && "cursor-pointer",
@@ -8866,20 +8866,20 @@ function ea({
8866
8866
  ] })
8867
8867
  }
8868
8868
  ),
8869
- /* @__PURE__ */ U("div", { className: R("snow-table-bottom-bar grid grid-cols-1 lg:grid-cols-[auto_1fr_auto] gap-4 py-4 items-center"), children: [
8870
- N && /* @__PURE__ */ U("div", { className: R("snow-table-count text-sm order-3 lg:order-1 text-center lg:text-left", L.table.empty), "data-testid": "datatable-count", children: [
8869
+ /* @__PURE__ */ B("div", { className: R("snow-table-bottom-bar grid grid-cols-1 lg:grid-cols-[auto_1fr_auto] gap-4 py-4 items-center"), children: [
8870
+ N && /* @__PURE__ */ B("div", { className: R("snow-table-count text-sm order-3 lg:order-1 text-center lg:text-left", L.table.empty), "data-testid": "datatable-count", children: [
8871
8871
  ca,
8872
8872
  " ",
8873
8873
  D("dataTable.elements")
8874
8874
  ] }),
8875
8875
  /* @__PURE__ */ p("div", { className: R("snow-table-pagination flex justify-center order-1 lg:order-2"), children: $ && oa && /* @__PURE__ */ p(cm, { table: Fe, isLoading: o }) }),
8876
- $ && /* @__PURE__ */ p("div", { className: R("snow-table-pagesize order-2 lg:order-3 flex justify-center lg:justify-end"), children: /* @__PURE__ */ p(lm, { table: Fe, enableElementLabel: k, paginationSizes: B }) })
8876
+ $ && /* @__PURE__ */ p("div", { className: R("snow-table-pagesize order-2 lg:order-3 flex justify-center lg:justify-end"), children: /* @__PURE__ */ p(lm, { table: Fe, enableElementLabel: k, paginationSizes: U }) })
8877
8877
  ] })
8878
8878
  ] });
8879
8879
  }
8880
8880
  function Tm({ label: e, x: t, y: n }) {
8881
8881
  return ma(
8882
- /* @__PURE__ */ U("div", { style: {
8882
+ /* @__PURE__ */ B("div", { style: {
8883
8883
  position: "fixed",
8884
8884
  left: t,
8885
8885
  top: n,
@@ -8913,7 +8913,7 @@ function Im({ item: e, actions: t, onAction: n }) {
8913
8913
  },
8914
8914
  [n, e]
8915
8915
  );
8916
- return /* @__PURE__ */ U("div", { className: R("flex gap-2 justify-end items-center"), children: [
8916
+ return /* @__PURE__ */ B("div", { className: R("flex gap-2 justify-end items-center"), children: [
8917
8917
  r && /* @__PURE__ */ p(Tm, { ...r }),
8918
8918
  c.map((u, g) => {
8919
8919
  const m = typeof u == "function" ? u(e) : u, b = m.icon;
@@ -8924,7 +8924,7 @@ function Im({ item: e, actions: t, onAction: n }) {
8924
8924
  {
8925
8925
  onMouseEnter: (w) => i(m.label, w.currentTarget),
8926
8926
  onMouseLeave: a,
8927
- children: /* @__PURE__ */ U(
8927
+ children: /* @__PURE__ */ B(
8928
8928
  o,
8929
8929
  {
8930
8930
  to: v,
@@ -8942,7 +8942,7 @@ function Im({ item: e, actions: t, onAction: n }) {
8942
8942
  `link-${m.label}-${g}`
8943
8943
  );
8944
8944
  }
8945
- return /* @__PURE__ */ U(
8945
+ return /* @__PURE__ */ B(
8946
8946
  Ne,
8947
8947
  {
8948
8948
  className: R(m.showLabel ? "h-8 px-3" : "h-8 w-8 p-0"),
@@ -8959,7 +8959,7 @@ function Im({ item: e, actions: t, onAction: n }) {
8959
8959
  `button-${m.label}-${g}`
8960
8960
  );
8961
8961
  }),
8962
- l.length > 0 && /* @__PURE__ */ U(ce.Root, { children: [
8962
+ l.length > 0 && /* @__PURE__ */ B(ce.Root, { children: [
8963
8963
  /* @__PURE__ */ p(ce.Trigger, { asChild: !0, children: /* @__PURE__ */ p(Ne, { className: R("h-9 w-9 p-0"), children: /* @__PURE__ */ p(Pa, { className: R("h-4 w-4") }) }) }),
8964
8964
  /* @__PURE__ */ p(ce.Content, { align: "end", children: l.map((u, g) => {
8965
8965
  const m = typeof u == "function" ? u(e) : u, b = m.icon, h = {
@@ -8970,7 +8970,7 @@ function Im({ item: e, actions: t, onAction: n }) {
8970
8970
  }, v = m.variant && h[m.variant] ? h[m.variant] : "";
8971
8971
  if (m.type === "link") {
8972
8972
  const w = m, y = w.href(e);
8973
- return /* @__PURE__ */ p(ce.Item, { asChild: !0, disabled: m.disabled, children: /* @__PURE__ */ U(
8973
+ return /* @__PURE__ */ p(ce.Item, { asChild: !0, disabled: m.disabled, children: /* @__PURE__ */ B(
8974
8974
  o,
8975
8975
  {
8976
8976
  to: y,
@@ -8984,7 +8984,7 @@ function Im({ item: e, actions: t, onAction: n }) {
8984
8984
  }
8985
8985
  ) }, `dropdown-${m.label}-${g}`);
8986
8986
  }
8987
- return /* @__PURE__ */ U(
8987
+ return /* @__PURE__ */ B(
8988
8988
  ce.Item,
8989
8989
  {
8990
8990
  onClick: () => d(m),
@@ -9011,38 +9011,33 @@ const Pm = fa(Im), ta = ({
9011
9011
  mutationFn: async (l) => l.endpoint(l.item)
9012
9012
  }), a = async (l, d) => {
9013
9013
  const u = typeof l == "function" ? l(d) : l;
9014
- if (u.confirm) {
9015
- const g = (b, h) => typeof b == "function" ? b({ close: h }) : b;
9016
- if (!await r({
9017
- title: u.confirm.title,
9018
- content: (b) => g(u.confirm.content, b.close),
9019
- confirmText: u.confirm.confirmText,
9020
- cancelText: u.confirm.cancelText,
9021
- subtitle: u.confirm.subtitle,
9022
- hideButtons: u.confirm.hideButtons
9023
- })) return;
9024
- }
9025
- if (u.type === "endpoint")
9026
- i(
9027
- {
9028
- item: d,
9029
- endpoint: u.endpoint
9030
- },
9031
- {
9032
- onError: (g, m, b) => {
9033
- var h;
9034
- return (h = u.onError) == null ? void 0 : h.call(u, g, m.item, b);
9014
+ if (!(u.confirm && !await r({
9015
+ title: u.confirm.title,
9016
+ subtitle: u.confirm.subtitle,
9017
+ content: u.confirm.content
9018
+ }))) {
9019
+ if (u.type === "endpoint")
9020
+ i(
9021
+ {
9022
+ item: d,
9023
+ endpoint: u.endpoint
9035
9024
  },
9036
- onSuccess: (g, m, b) => {
9037
- var h;
9038
- return (h = u.onSuccess) == null ? void 0 : h.call(u, g, m.item, b);
9025
+ {
9026
+ onError: (g, m, b) => {
9027
+ var h;
9028
+ return (h = u.onError) == null ? void 0 : h.call(u, g, m.item, b);
9029
+ },
9030
+ onSuccess: (g, m, b) => {
9031
+ var h;
9032
+ return (h = u.onSuccess) == null ? void 0 : h.call(u, g, m.item, b);
9033
+ }
9039
9034
  }
9040
- }
9041
- );
9042
- else if (u.type === "click")
9043
- u.onClick(d);
9044
- else if (u.type === "link")
9045
- return;
9035
+ );
9036
+ else if (u.type === "click")
9037
+ u.onClick(d);
9038
+ else if (u.type === "link")
9039
+ return;
9040
+ }
9046
9041
  };
9047
9042
  return {
9048
9043
  columns: Ae(() => {
@@ -9114,7 +9109,7 @@ const Pm = fa(Im), ta = ({
9114
9109
  }), { data: A = [], isLoading: C } = Rr({
9115
9110
  queryKey: e,
9116
9111
  queryFn: d
9117
- }), N = Ae(() => !A || !v || !s ? A : A.filter((B) => s(B, v)), [A, v, s]), { columns: k } = ta({
9112
+ }), N = Ae(() => !A || !v || !s ? A : A.filter((U) => s(U, v)), [A, v, s]), { columns: k } = ta({
9118
9113
  columnConfig: t,
9119
9114
  actions: n,
9120
9115
  filters: o,
@@ -9143,7 +9138,7 @@ const Pm = fa(Im), ta = ({
9143
9138
  ...u
9144
9139
  }
9145
9140
  );
9146
- }, Bm = ({
9141
+ }, Um = ({
9147
9142
  queryKey: e,
9148
9143
  columnConfig: t,
9149
9144
  actions: n,
@@ -9178,7 +9173,7 @@ const Pm = fa(Im), ta = ({
9178
9173
  }), I = Rr({
9179
9174
  queryKey: [...e, "server", u, m, h, w, x],
9180
9175
  queryFn: async () => {
9181
- var $, B;
9176
+ var $, U;
9182
9177
  return l({
9183
9178
  limit: u.pageSize,
9184
9179
  offset: u.pageIndex * u.pageSize,
@@ -9186,7 +9181,7 @@ const Pm = fa(Im), ta = ({
9186
9181
  prefilter: h,
9187
9182
  filters: Object.keys(w).length > 0 ? w : void 0,
9188
9183
  sortBy: ($ = x[0]) == null ? void 0 : $.id,
9189
- sortOrder: (B = x[0]) != null && B.desc ? "DESC" : "ASC"
9184
+ sortOrder: (U = x[0]) != null && U.desc ? "DESC" : "ASC"
9190
9185
  });
9191
9186
  },
9192
9187
  placeholderData: ua
@@ -9234,7 +9229,7 @@ export {
9234
9229
  Em as SearchBar,
9235
9230
  Rm as SingleFilterDropdown,
9236
9231
  Vm as SnowClientDataTable,
9237
- Bm as SnowServerDataTable,
9232
+ Um as SnowServerDataTable,
9238
9233
  Am as SortButton,
9239
9234
  Lm as isSnowTableSetup,
9240
9235
  Fm as redirectToPageWithParam,