@snowpact/react-tanstack-query-table 1.10.1 → 1.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsxs as D, jsx as f, Fragment as Zt } from "react/jsx-runtime";
2
2
  import { useMutation as Ts, useQuery as qo, keepPreviousData as Is } from "@tanstack/react-query";
3
3
  import * as d from "react";
4
- import Ke, { useState as ce, useEffect as mt, useRef as Bt, useCallback as Se, useMemo as fe, forwardRef as Jo, useLayoutEffect as Qo, memo as Ms } from "react";
4
+ import Ke, { useState as ce, useEffect as mt, useRef as gt, useCallback as Se, useMemo as fe, forwardRef as Jo, useLayoutEffect as Qo, memo as Ms } from "react";
5
5
  import * as qt from "react-dom";
6
6
  import Ns, { createPortal as _s } from "react-dom";
7
7
  import { useReactTable as Os, getFilteredRowModel as Ds, getPaginationRowModel as ks, getSortedRowModel as Fs, getCoreRowModel as Ls, flexRender as wo } from "@tanstack/react-table";
@@ -77,7 +77,7 @@ function Zs() {
77
77
  return n.addEventListener("change", o), t(window.innerWidth < wn), () => n.removeEventListener("change", o);
78
78
  }, []), !!e;
79
79
  }
80
- const qs = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || e === void 0, Js = (e) => qs(e) ? String(e) : JSON.stringify(e, null, 2), Ot = "dt_prefilter", Dt = "dt_search", kt = "dt_page", Mn = "dt_pageSize", Ft = "dt_filters", dt = "dt_sortBy", ft = "dt_sortDesc", Ge = (e) => {
80
+ const qs = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || e === void 0, Js = (e) => qs(e) ? String(e) : JSON.stringify(e, null, 2), Dt = "dt_prefilter", kt = "dt_search", Ft = "dt_page", Mn = "dt_pageSize", Lt = "dt_filters", dt = "dt_sortBy", ft = "dt_sortDesc", Ge = (e) => {
81
81
  if (typeof window > "u") return null;
82
82
  try {
83
83
  return new URL(window.location.href).searchParams.get(e);
@@ -95,19 +95,19 @@ const qs = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
95
95
  defaultSortBy: o,
96
96
  defaultSortOrder: r = "asc"
97
97
  }) => {
98
- const i = Bt(e), s = Bt(n), [a, c] = ce(() => {
98
+ const i = gt(e), s = gt(n), [a, c] = ce(() => {
99
99
  if (e) {
100
- const x = Ge(Ot);
100
+ const x = Ge(Dt);
101
101
  if (x) return x;
102
102
  }
103
103
  return t;
104
104
  }), u = Se((x) => {
105
- c(x), i.current && se(Ot, x ?? null);
106
- }, []), [l, p] = ce(() => e ? Ge(Dt) ?? "" : ""), h = Se((x) => {
107
- p(x), i.current && se(Dt, x || null);
105
+ c(x), i.current && se(Dt, x ?? null);
106
+ }, []), [l, p] = ce(() => e ? Ge(kt) ?? "" : ""), h = Se((x) => {
107
+ p(x), i.current && se(kt, x || null);
108
108
  }, []), [g, w] = ce(() => {
109
109
  if (e) {
110
- const x = Ge(kt), I = Ge(Mn);
110
+ const x = Ge(Ft), I = Ge(Mn);
111
111
  return {
112
112
  pageIndex: x ? parseInt(x, 10) - 1 : 0,
113
113
  pageSize: I ? parseInt(I, 10) : n
@@ -117,14 +117,14 @@ const qs = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
117
117
  }), m = Se((x) => {
118
118
  w((I) => {
119
119
  const T = typeof x == "function" ? x(I) : x;
120
- return i.current && (I.pageIndex !== T.pageIndex || I.pageSize !== T.pageSize) && (se(kt, T.pageIndex > 0 ? String(T.pageIndex + 1) : null), se(
120
+ return i.current && (I.pageIndex !== T.pageIndex || I.pageSize !== T.pageSize) && (se(Ft, T.pageIndex > 0 ? String(T.pageIndex + 1) : null), se(
121
121
  Mn,
122
122
  T.pageSize !== s.current ? String(T.pageSize) : null
123
123
  )), T;
124
124
  });
125
125
  }, []), [v, b] = ce(() => {
126
126
  if (e) {
127
- const x = Ge(Ft);
127
+ const x = Ge(Lt);
128
128
  if (x)
129
129
  return Qs(x);
130
130
  }
@@ -132,7 +132,7 @@ const qs = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
132
132
  }), C = Se((x) => {
133
133
  if (b(x), i.current) {
134
134
  const T = Object.keys(x).length > 0 ? or(x) : null;
135
- se(Ft, T);
135
+ se(Lt, T);
136
136
  }
137
137
  }, []), [y, S] = ce(() => {
138
138
  if (e) {
@@ -150,7 +150,7 @@ const qs = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
150
150
  const x = o ? [{ id: o, desc: r === "desc" }] : [];
151
151
  return l !== "" || a !== t || Object.keys(v).length > 0 || y.length !== x.length || y.length > 0 && x.length > 0 && (y[0].id !== x[0].id || y[0].desc !== x[0].desc);
152
152
  }, [l, a, t, v, y, o, r]), E = Se(() => {
153
- i.current && (se(Ot, null), se(Dt, null), se(kt, null), se(Ft, null), se(dt, null), se(ft, null)), c(t), p(""), w((x) => ({ pageIndex: 0, pageSize: x.pageSize })), b({}), S(o ? [{ id: o, desc: r === "desc" }] : []);
153
+ i.current && (se(Dt, null), se(kt, null), se(Ft, null), se(Lt, null), se(dt, null), se(ft, null)), c(t), p(""), w((x) => ({ pageIndex: 0, pageSize: x.pageSize })), b({}), S(o ? [{ id: o, desc: r === "desc" }] : []);
154
154
  }, [t, o, r]);
155
155
  return {
156
156
  activePrefilter: a,
@@ -186,13 +186,13 @@ const qs = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
186
186
  }, np = (e, t) => {
187
187
  const n = new URL(e, typeof window < "u" ? window.location.origin : "http://localhost");
188
188
  if (t) {
189
- if (t.prefilter && n.searchParams.set(Ot, t.prefilter), t.search && n.searchParams.set(Dt, t.search), t.pagination) {
189
+ if (t.prefilter && n.searchParams.set(Dt, t.prefilter), t.search && n.searchParams.set(kt, t.search), t.pagination) {
190
190
  const { pageIndex: o, pageSize: r } = t.pagination;
191
- o > 0 && n.searchParams.set(kt, String(o + 1)), r && n.searchParams.set(Mn, String(r));
191
+ o > 0 && n.searchParams.set(Ft, String(o + 1)), r && n.searchParams.set(Mn, String(r));
192
192
  }
193
193
  if (t.filters && Object.keys(t.filters).length > 0) {
194
194
  const o = or(t.filters);
195
- n.searchParams.set(Ft, o);
195
+ n.searchParams.set(Lt, o);
196
196
  }
197
197
  if (t.sorting && t.sorting.length > 0) {
198
198
  const o = t.sorting[0];
@@ -890,7 +890,7 @@ function pa(...e) {
890
890
  }
891
891
  var re = globalThis != null && globalThis.document ? d.useLayoutEffect : () => {
892
892
  }, ha = d[" useInsertionEffect ".trim().toString()] || re;
893
- function gt({
893
+ function vt({
894
894
  prop: e,
895
895
  defaultProp: t,
896
896
  onChange: n = () => {
@@ -939,7 +939,7 @@ function ga(e) {
939
939
  return typeof e == "function";
940
940
  }
941
941
  // @__NO_SIDE_EFFECTS__
942
- function vt(e) {
942
+ function wt(e) {
943
943
  const t = /* @__PURE__ */ va(e), n = d.forwardRef((o, r) => {
944
944
  const { children: i, ...s } = o, a = d.Children.toArray(i), c = a.find(ya);
945
945
  if (c) {
@@ -1001,7 +1001,7 @@ var Sa = [
1001
1001
  "svg",
1002
1002
  "ul"
1003
1003
  ], K = Sa.reduce((e, t) => {
1004
- const n = /* @__PURE__ */ vt(`Primitive.${t}`), o = d.forwardRef((r, i) => {
1004
+ const n = /* @__PURE__ */ wt(`Primitive.${t}`), o = d.forwardRef((r, i) => {
1005
1005
  const { asChild: s, ...a } = r, c = s ? n : t;
1006
1006
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ f(c, { ...a, ref: i });
1007
1007
  });
@@ -1019,14 +1019,14 @@ function Kn(e) {
1019
1019
  return /* @__PURE__ */ f(r, { scope: v, itemMap: y, collectionRef: C, children: b });
1020
1020
  };
1021
1021
  s.displayName = t;
1022
- const a = e + "CollectionSlot", c = /* @__PURE__ */ vt(a), u = Ke.forwardRef(
1022
+ const a = e + "CollectionSlot", c = /* @__PURE__ */ wt(a), u = Ke.forwardRef(
1023
1023
  (m, v) => {
1024
1024
  const { scope: b, children: C } = m, y = i(a, b), S = J(v, y.collectionRef);
1025
1025
  return /* @__PURE__ */ f(c, { ref: S, children: C });
1026
1026
  }
1027
1027
  );
1028
1028
  u.displayName = a;
1029
- const l = e + "CollectionItemSlot", p = "data-radix-collection-item", h = /* @__PURE__ */ vt(l), g = Ke.forwardRef(
1029
+ const l = e + "CollectionItemSlot", p = "data-radix-collection-item", h = /* @__PURE__ */ wt(l), g = Ke.forwardRef(
1030
1030
  (m, v) => {
1031
1031
  const { scope: b, children: C, ...y } = m, S = Ke.useRef(null), R = J(v, S), P = i(l, b);
1032
1032
  return Ke.useEffect(() => (P.itemMap.set(S, { ref: S, ...y }), () => void P.itemMap.delete(S))), /* @__PURE__ */ f(h, { [p]: "", ref: R, children: C });
@@ -1339,7 +1339,7 @@ function ze(e) {
1339
1339
  n((o) => o ?? String(Ba++));
1340
1340
  }, [e]), e || (t ? `radix-${t}` : "");
1341
1341
  }
1342
- const Wa = ["top", "right", "bottom", "left"], $e = Math.min, pe = Math.max, Wt = Math.round, Pt = Math.floor, Ie = (e) => ({
1342
+ const Wa = ["top", "right", "bottom", "left"], $e = Math.min, pe = Math.max, Wt = Math.round, Tt = Math.floor, Ie = (e) => ({
1343
1343
  x: e,
1344
1344
  y: e
1345
1345
  }), Ua = {
@@ -1554,7 +1554,7 @@ const Ja = async (e, t, n) => {
1554
1554
  middlewareData: g
1555
1555
  };
1556
1556
  };
1557
- async function wt(e, t) {
1557
+ async function yt(e, t) {
1558
1558
  var n;
1559
1559
  t === void 0 && (t = {});
1560
1560
  const {
@@ -1662,7 +1662,7 @@ const Qa = (e) => ({
1662
1662
  return {};
1663
1663
  const b = ke(r), C = Te(a), y = ke(a) === a, S = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), R = h || (y || !m ? [Ut(a)] : za(a)), P = w !== "none";
1664
1664
  !h && P && R.push(...Za(a, m, w, S));
1665
- const E = [a, ...R], x = await wt(t, v), I = [];
1665
+ const E = [a, ...R], x = await yt(t, v), I = [];
1666
1666
  let T = ((o = i.flip) == null ? void 0 : o.overflows) || [];
1667
1667
  if (l && I.push(x[b]), p) {
1668
1668
  const F = Ga(r, s, S);
@@ -1742,7 +1742,7 @@ const tc = function(e) {
1742
1742
  } = De(e, t);
1743
1743
  switch (o) {
1744
1744
  case "referenceHidden": {
1745
- const i = await wt(t, {
1745
+ const i = await yt(t, {
1746
1746
  ...r,
1747
1747
  elementContext: "reference"
1748
1748
  }), s = ko(i, n.reference);
@@ -1754,7 +1754,7 @@ const tc = function(e) {
1754
1754
  };
1755
1755
  }
1756
1756
  case "escaped": {
1757
- const i = await wt(t, {
1757
+ const i = await yt(t, {
1758
1758
  ...r,
1759
1759
  altBoundary: !0
1760
1760
  }), s = ko(i, n.floating);
@@ -1848,7 +1848,7 @@ const oc = function(e) {
1848
1848
  } = De(e, t), u = {
1849
1849
  x: n,
1850
1850
  y: o
1851
- }, l = await wt(t, c), p = Te(ke(r)), h = jn(p);
1851
+ }, l = await yt(t, c), p = Te(ke(r)), h = jn(p);
1852
1852
  let g = u[h], w = u[p];
1853
1853
  if (i) {
1854
1854
  const v = h === "y" ? "top" : "left", b = h === "y" ? "bottom" : "right", C = g + l[v], y = g - l[b];
@@ -1933,7 +1933,7 @@ const oc = function(e) {
1933
1933
  apply: c = () => {
1934
1934
  },
1935
1935
  ...u
1936
- } = De(e, t), l = await wt(t, u), p = ke(r), h = st(r), g = Te(r) === "y", {
1936
+ } = De(e, t), l = await yt(t, u), p = ke(r), h = st(r), g = Te(r) === "y", {
1937
1937
  width: w,
1938
1938
  height: m
1939
1939
  } = i.floating;
@@ -1986,7 +1986,7 @@ function Lo(e) {
1986
1986
  return !en() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof he(e).ShadowRoot;
1987
1987
  }
1988
1988
  const ac = /* @__PURE__ */ new Set(["inline", "contents"]);
1989
- function St(e) {
1989
+ function xt(e) {
1990
1990
  const {
1991
1991
  overflow: t,
1992
1992
  overflowX: n,
@@ -2058,17 +2058,17 @@ function Ve(e) {
2058
2058
  }
2059
2059
  function mr(e) {
2060
2060
  const t = Ve(e);
2061
- return it(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ne(t) && St(t) ? t : mr(t);
2061
+ return it(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ne(t) && xt(t) ? t : mr(t);
2062
2062
  }
2063
- function yt(e, t, n) {
2063
+ function bt(e, t, n) {
2064
2064
  var o;
2065
2065
  t === void 0 && (t = []), n === void 0 && (n = !0);
2066
2066
  const r = mr(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), s = he(r);
2067
2067
  if (i) {
2068
2068
  const a = Dn(s);
2069
- return t.concat(s, s.visualViewport || [], St(r) ? r : [], a && n ? yt(a) : []);
2069
+ return t.concat(s, s.visualViewport || [], xt(r) ? r : [], a && n ? bt(a) : []);
2070
2070
  }
2071
- return t.concat(r, yt(r, [], n));
2071
+ return t.concat(r, bt(r, [], n));
2072
2072
  }
2073
2073
  function Dn(e) {
2074
2074
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
@@ -2160,7 +2160,7 @@ function wc(e) {
2160
2160
  scrollTop: 0
2161
2161
  }, u = Ie(1);
2162
2162
  const l = Ie(0), p = Ne(o);
2163
- if ((p || !p && !i) && ((at(o) !== "body" || St(s)) && (c = nn(o)), Ne(o))) {
2163
+ if ((p || !p && !i) && ((at(o) !== "body" || xt(s)) && (c = nn(o)), Ne(o))) {
2164
2164
  const g = je(o);
2165
2165
  u = ot(o), l.x = g.x + o.clientLeft, l.y = g.y + o.clientTop;
2166
2166
  }
@@ -2244,12 +2244,12 @@ function Ec(e, t) {
2244
2244
  const n = t.get(e);
2245
2245
  if (n)
2246
2246
  return n;
2247
- let o = yt(e, [], !1).filter((a) => xe(a) && at(a) !== "body"), r = null;
2247
+ let o = bt(e, [], !1).filter((a) => xe(a) && at(a) !== "body"), r = null;
2248
2248
  const i = Ee(e).position === "fixed";
2249
2249
  let s = i ? Ve(e) : e;
2250
2250
  for (; xe(s) && !it(s); ) {
2251
2251
  const a = Ee(s), c = Zn(s);
2252
- !c && a.position === "fixed" && (r = null), (i ? !c && !r : !c && a.position === "static" && !!r && Sc.has(r.position) || St(s) && !c && yr(e, s)) ? o = o.filter((l) => l !== s) : r = a, s = Ve(s);
2252
+ !c && a.position === "fixed" && (r = null), (i ? !c && !r : !c && a.position === "static" && !!r && Sc.has(r.position) || xt(s) && !c && yr(e, s)) ? o = o.filter((l) => l !== s) : r = a, s = Ve(s);
2253
2253
  }
2254
2254
  return t.set(e, o), o;
2255
2255
  }
@@ -2292,7 +2292,7 @@ function Pc(e, t, n) {
2292
2292
  c.x = on(r);
2293
2293
  }
2294
2294
  if (o || !o && !i)
2295
- if ((at(t) !== "body" || St(r)) && (a = nn(t)), o) {
2295
+ if ((at(t) !== "body" || xt(r)) && (a = nn(t)), o) {
2296
2296
  const g = je(t, !0, i, t);
2297
2297
  c.x = g.x + t.clientLeft, c.y = g.y + t.clientTop;
2298
2298
  } else r && u();
@@ -2381,7 +2381,7 @@ function Nc(e, t) {
2381
2381
  } = u;
2382
2382
  if (a || t(), !h || !g)
2383
2383
  return;
2384
- const w = Pt(p), m = Pt(r.clientWidth - (l + h)), v = Pt(r.clientHeight - (p + g)), b = Pt(l), y = {
2384
+ const w = Tt(p), m = Tt(r.clientWidth - (l + h)), v = Tt(r.clientHeight - (p + g)), b = Tt(l), y = {
2385
2385
  rootMargin: -w + "px " + -m + "px " + -v + "px " + -b + "px",
2386
2386
  threshold: pe(0, $e(1, c)) || 1
2387
2387
  };
@@ -2418,7 +2418,7 @@ function _c(e, t, n, o) {
2418
2418
  elementResize: s = typeof ResizeObserver == "function",
2419
2419
  layoutShift: a = typeof IntersectionObserver == "function",
2420
2420
  animationFrame: c = !1
2421
- } = o, u = Jn(e), l = r || i ? [...u ? yt(u) : [], ...yt(t)] : [];
2421
+ } = o, u = Jn(e), l = r || i ? [...u ? bt(u) : [], ...bt(t)] : [];
2422
2422
  l.forEach((b) => {
2423
2423
  r && b.addEventListener("scroll", n, {
2424
2424
  passive: !0
@@ -2460,7 +2460,7 @@ const Oc = oc, Dc = rc, kc = ec, Fc = sc, Lc = tc, Wo = Qa, $c = ic, Vc = (e, t,
2460
2460
  });
2461
2461
  };
2462
2462
  var Bc = typeof document < "u", Wc = function() {
2463
- }, Lt = Bc ? Qo : Wc;
2463
+ }, $t = Bc ? Qo : Wc;
2464
2464
  function Kt(e, t) {
2465
2465
  if (e === t)
2466
2466
  return !0;
@@ -2500,7 +2500,7 @@ function Uo(e, t) {
2500
2500
  }
2501
2501
  function xn(e) {
2502
2502
  const t = d.useRef(e);
2503
- return Lt(() => {
2503
+ return $t(() => {
2504
2504
  t.current = e;
2505
2505
  }), t;
2506
2506
  }
@@ -2553,16 +2553,16 @@ function Uc(e) {
2553
2553
  }));
2554
2554
  });
2555
2555
  }, [h, t, n, k, L]);
2556
- Lt(() => {
2556
+ $t(() => {
2557
2557
  u === !1 && x.current.isPositioned && (x.current.isPositioned = !1, p((M) => ({
2558
2558
  ...M,
2559
2559
  isPositioned: !1
2560
2560
  })));
2561
2561
  }, [u]);
2562
2562
  const F = d.useRef(!1);
2563
- Lt(() => (F.current = !0, () => {
2563
+ $t(() => (F.current = !0, () => {
2564
2564
  F.current = !1;
2565
- }), []), Lt(() => {
2565
+ }), []), $t(() => {
2566
2566
  if (S && (P.current = S), R && (E.current = R), S && R) {
2567
2567
  if (T.current)
2568
2568
  return T.current(S, R, $);
@@ -2917,19 +2917,19 @@ function cl(e) {
2917
2917
  }
2918
2918
  });
2919
2919
  return d.useEffect(() => {
2920
- const u = Tt(o.current);
2920
+ const u = It(o.current);
2921
2921
  i.current = a === "mounted" ? u : "none";
2922
2922
  }, [a]), re(() => {
2923
2923
  const u = o.current, l = r.current;
2924
2924
  if (l !== e) {
2925
- const h = i.current, g = Tt(u);
2925
+ const h = i.current, g = It(u);
2926
2926
  e ? c("MOUNT") : g === "none" || (u == null ? void 0 : u.display) === "none" ? c("UNMOUNT") : c(l && h !== g ? "ANIMATION_OUT" : "UNMOUNT"), r.current = e;
2927
2927
  }
2928
2928
  }, [e, c]), re(() => {
2929
2929
  if (t) {
2930
2930
  let u;
2931
2931
  const l = t.ownerDocument.defaultView ?? window, p = (g) => {
2932
- const m = Tt(o.current).includes(CSS.escape(g.animationName));
2932
+ const m = It(o.current).includes(CSS.escape(g.animationName));
2933
2933
  if (g.target === t && m && (c("ANIMATION_END"), !r.current)) {
2934
2934
  const v = t.style.animationFillMode;
2935
2935
  t.style.animationFillMode = "forwards", u = l.setTimeout(() => {
@@ -2937,7 +2937,7 @@ function cl(e) {
2937
2937
  });
2938
2938
  }
2939
2939
  }, h = (g) => {
2940
- g.target === t && (i.current = Tt(o.current));
2940
+ g.target === t && (i.current = It(o.current));
2941
2941
  };
2942
2942
  return t.addEventListener("animationstart", h), t.addEventListener("animationcancel", p), t.addEventListener("animationend", p), () => {
2943
2943
  l.clearTimeout(u), t.removeEventListener("animationstart", h), t.removeEventListener("animationcancel", p), t.removeEventListener("animationend", p);
@@ -2951,7 +2951,7 @@ function cl(e) {
2951
2951
  }, [])
2952
2952
  };
2953
2953
  }
2954
- function Tt(e) {
2954
+ function It(e) {
2955
2955
  return (e == null ? void 0 : e.animationName) || "none";
2956
2956
  }
2957
2957
  function ll(e) {
@@ -2959,13 +2959,13 @@ function ll(e) {
2959
2959
  let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning;
2960
2960
  return n ? e.ref : (t = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
2961
2961
  }
2962
- var En = "rovingFocusGroup.onEntryFocus", ul = { bubbles: !1, cancelable: !0 }, xt = "RovingFocusGroup", [kn, Lr, dl] = Kn(xt), [fl, sn] = Ze(
2963
- xt,
2962
+ var En = "rovingFocusGroup.onEntryFocus", ul = { bubbles: !1, cancelable: !0 }, Et = "RovingFocusGroup", [kn, Lr, dl] = Kn(Et), [fl, sn] = Ze(
2963
+ Et,
2964
2964
  [dl]
2965
- ), [pl, hl] = fl(xt), $r = d.forwardRef(
2965
+ ), [pl, hl] = fl(Et), $r = d.forwardRef(
2966
2966
  (e, t) => /* @__PURE__ */ f(kn.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ f(kn.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ f(ml, { ...e, ref: t }) }) })
2967
2967
  );
2968
- $r.displayName = xt;
2968
+ $r.displayName = Et;
2969
2969
  var ml = d.forwardRef((e, t) => {
2970
2970
  const {
2971
2971
  __scopeRovingFocusGroup: n,
@@ -2978,11 +2978,11 @@ var ml = d.forwardRef((e, t) => {
2978
2978
  onEntryFocus: u,
2979
2979
  preventScrollOnEntryFocus: l = !1,
2980
2980
  ...p
2981
- } = e, h = d.useRef(null), g = J(t, h), w = Qt(i), [m, v] = gt({
2981
+ } = e, h = d.useRef(null), g = J(t, h), w = Qt(i), [m, v] = vt({
2982
2982
  prop: s,
2983
2983
  defaultProp: a ?? null,
2984
2984
  onChange: c,
2985
- caller: xt
2985
+ caller: Et
2986
2986
  }), [b, C] = d.useState(!1), y = Me(u), S = Lr(n), R = d.useRef(!1), [P, E] = d.useState(0);
2987
2987
  return d.useEffect(() => {
2988
2988
  const x = h.current;
@@ -3128,7 +3128,7 @@ var Ur = $r, Hr = Br, bl = function(e) {
3128
3128
  return null;
3129
3129
  var t = Array.isArray(e) ? e[0] : e;
3130
3130
  return t.ownerDocument.body;
3131
- }, et = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), Mt = {}, Rn = 0, Kr = function(e) {
3131
+ }, et = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), Nt = {}, Rn = 0, Kr = function(e) {
3132
3132
  return e && (e.host || Kr(e.parentNode));
3133
3133
  }, Cl = function(e, t) {
3134
3134
  return t.map(function(n) {
@@ -3141,8 +3141,8 @@ var Ur = $r, Hr = Br, bl = function(e) {
3141
3141
  });
3142
3142
  }, Sl = function(e, t, n, o) {
3143
3143
  var r = Cl(t, Array.isArray(e) ? e : [e]);
3144
- Mt[n] || (Mt[n] = /* @__PURE__ */ new WeakMap());
3145
- var i = Mt[n], s = [], a = /* @__PURE__ */ new Set(), c = new Set(r), u = function(p) {
3144
+ Nt[n] || (Nt[n] = /* @__PURE__ */ new WeakMap());
3145
+ var i = Nt[n], s = [], a = /* @__PURE__ */ new Set(), c = new Set(r), u = function(p) {
3146
3146
  !p || a.has(p) || (a.add(p), u(p.parentNode));
3147
3147
  };
3148
3148
  r.forEach(u);
@@ -3153,7 +3153,7 @@ var Ur = $r, Hr = Br, bl = function(e) {
3153
3153
  else
3154
3154
  try {
3155
3155
  var g = h.getAttribute(o), w = g !== null && g !== "false", m = (et.get(h) || 0) + 1, v = (i.get(h) || 0) + 1;
3156
- et.set(h, m), i.set(h, v), s.push(h), m === 1 && w && It.set(h, !0), v === 1 && h.setAttribute(n, "true"), w || h.setAttribute(o, "true");
3156
+ et.set(h, m), i.set(h, v), s.push(h), m === 1 && w && Mt.set(h, !0), v === 1 && h.setAttribute(n, "true"), w || h.setAttribute(o, "true");
3157
3157
  } catch (b) {
3158
3158
  console.error("aria-hidden: cannot operate on ", h, b);
3159
3159
  }
@@ -3162,8 +3162,8 @@ var Ur = $r, Hr = Br, bl = function(e) {
3162
3162
  return l(t), a.clear(), Rn++, function() {
3163
3163
  s.forEach(function(p) {
3164
3164
  var h = et.get(p) - 1, g = i.get(p) - 1;
3165
- et.set(p, h), i.set(p, g), h || (It.has(p) || p.removeAttribute(o), It.delete(p)), g || p.removeAttribute(n);
3166
- }), Rn--, Rn || (et = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), Mt = {});
3165
+ et.set(p, h), i.set(p, g), h || (Mt.has(p) || p.removeAttribute(o), Mt.delete(p)), g || p.removeAttribute(n);
3166
+ }), Rn--, Rn || (et = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), Nt = {});
3167
3167
  };
3168
3168
  }, Gr = function(e, t, n) {
3169
3169
  n === void 0 && (n = "data-aria-hidden");
@@ -3193,7 +3193,7 @@ function xl(e, t, n) {
3193
3193
  (i || !(o in t)) && (i || (i = Array.prototype.slice.call(t, 0, o)), i[o] = t[o]);
3194
3194
  return e.concat(i || Array.prototype.slice.call(t));
3195
3195
  }
3196
- var $t = "right-scroll-bar-position", Vt = "width-before-scroll-bar", El = "with-scroll-bars-hidden", Rl = "--removed-body-scroll-bar-size";
3196
+ var Vt = "right-scroll-bar-position", Bt = "width-before-scroll-bar", El = "with-scroll-bars-hidden", Rl = "--removed-body-scroll-bar-size";
3197
3197
  function An(e, t) {
3198
3198
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
3199
3199
  }
@@ -3334,8 +3334,8 @@ an.defaultProps = {
3334
3334
  inert: !1
3335
3335
  };
3336
3336
  an.classNames = {
3337
- fullWidth: Vt,
3338
- zeroRight: $t
3337
+ fullWidth: Bt,
3338
+ zeroRight: Vt
3339
3339
  };
3340
3340
  var Ol = function() {
3341
3341
  if (typeof __webpack_nonce__ < "u")
@@ -3425,19 +3425,19 @@ var Ll = function() {
3425
3425
  ].filter(Boolean).join(""), `
3426
3426
  }
3427
3427
 
3428
- .`).concat($t, ` {
3428
+ .`).concat(Vt, ` {
3429
3429
  right: `).concat(a, "px ").concat(o, `;
3430
3430
  }
3431
3431
 
3432
- .`).concat(Vt, ` {
3432
+ .`).concat(Bt, ` {
3433
3433
  margin-right: `).concat(a, "px ").concat(o, `;
3434
3434
  }
3435
3435
 
3436
- .`).concat($t, " .").concat($t, ` {
3436
+ .`).concat(Vt, " .").concat(Vt, ` {
3437
3437
  right: 0 `).concat(o, `;
3438
3438
  }
3439
3439
 
3440
- .`).concat(Vt, " .").concat(Vt, ` {
3440
+ .`).concat(Bt, " .").concat(Bt, ` {
3441
3441
  margin-right: 0 `).concat(o, `;
3442
3442
  }
3443
3443
 
@@ -3465,12 +3465,12 @@ var Ll = function() {
3465
3465
  }, Fn = !1;
3466
3466
  if (typeof window < "u")
3467
3467
  try {
3468
- var Nt = Object.defineProperty({}, "passive", {
3468
+ var _t = Object.defineProperty({}, "passive", {
3469
3469
  get: function() {
3470
3470
  return Fn = !0, !0;
3471
3471
  }
3472
3472
  });
3473
- window.addEventListener("test", Nt, Nt), window.removeEventListener("test", Nt, Nt);
3473
+ window.addEventListener("test", _t, _t), window.removeEventListener("test", _t, _t);
3474
3474
  } catch {
3475
3475
  Fn = !1;
3476
3476
  }
@@ -3537,7 +3537,7 @@ var tt = Fn ? { passive: !1 } : !1, zl = function(e) {
3537
3537
  c && (t.contains(a) || t === a)
3538
3538
  );
3539
3539
  return (l && Math.abs(p) < 1 || !l && Math.abs(h) < 1) && (u = !0), u;
3540
- }, _t = function(e) {
3540
+ }, Ot = function(e) {
3541
3541
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
3542
3542
  }, zo = function(e) {
3543
3543
  return [e.deltaX, e.deltaY];
@@ -3571,7 +3571,7 @@ function nu(e) {
3571
3571
  var a = d.useCallback(function(m, v) {
3572
3572
  if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
3573
3573
  return !s.current.allowPinchZoom;
3574
- var b = _t(m), C = n.current, y = "deltaX" in m ? m.deltaX : C[0] - b[0], S = "deltaY" in m ? m.deltaY : C[1] - b[1], R, P = m.target, E = Math.abs(y) > Math.abs(S) ? "h" : "v";
3574
+ var b = Ot(m), C = n.current, y = "deltaX" in m ? m.deltaX : C[0] - b[0], S = "deltaY" in m ? m.deltaY : C[1] - b[1], R, P = m.target, E = Math.abs(y) > Math.abs(S) ? "h" : "v";
3575
3575
  if ("touches" in m && E === "h" && P.type === "range")
3576
3576
  return !1;
3577
3577
  var x = window.getSelection(), I = x && x.anchorNode, T = I ? I === P || I.contains(P) : !1;
@@ -3589,7 +3589,7 @@ function nu(e) {
3589
3589
  }, []), c = d.useCallback(function(m) {
3590
3590
  var v = m;
3591
3591
  if (!(!nt.length || nt[nt.length - 1] !== i)) {
3592
- var b = "deltaY" in v ? zo(v) : _t(v), C = t.current.filter(function(R) {
3592
+ var b = "deltaY" in v ? zo(v) : Ot(v), C = t.current.filter(function(R) {
3593
3593
  return R.name === v.type && (R.target === v.target || v.target === R.shadowParent) && Ql(R.delta, b);
3594
3594
  })[0];
3595
3595
  if (C && C.should) {
@@ -3611,11 +3611,11 @@ function nu(e) {
3611
3611
  });
3612
3612
  }, 1);
3613
3613
  }, []), l = d.useCallback(function(m) {
3614
- n.current = _t(m), o.current = void 0;
3614
+ n.current = Ot(m), o.current = void 0;
3615
3615
  }, []), p = d.useCallback(function(m) {
3616
3616
  u(m.type, zo(m), m.target, a(m, e.lockRef.current));
3617
3617
  }, []), h = d.useCallback(function(m) {
3618
- u(m.type, _t(m), m.target, a(m, e.lockRef.current));
3618
+ u(m.type, Ot(m), m.target, a(m, e.lockRef.current));
3619
3619
  }, []);
3620
3620
  d.useEffect(function() {
3621
3621
  return nt.push(i), e.setCallbacks({
@@ -3652,11 +3652,11 @@ var Ln = ["Enter", " "], iu = ["ArrowDown", "PageUp", "Home"], Qr = ["ArrowUp",
3652
3652
  }, cu = {
3653
3653
  ltr: ["ArrowLeft"],
3654
3654
  rtl: ["ArrowRight"]
3655
- }, Et = "Menu", [bt, lu, uu] = Kn(Et), [qe, ei] = Ze(Et, [
3655
+ }, Rt = "Menu", [Ct, lu, uu] = Kn(Rt), [qe, ei] = Ze(Rt, [
3656
3656
  uu,
3657
3657
  rn,
3658
3658
  sn
3659
- ]), cn = rn(), ti = sn(), [du, Je] = qe(Et), [fu, Rt] = qe(Et), ni = (e) => {
3659
+ ]), cn = rn(), ti = sn(), [du, Je] = qe(Rt), [fu, At] = qe(Rt), ni = (e) => {
3660
3660
  const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: i, modal: s = !0 } = e, a = cn(t), [c, u] = d.useState(null), l = d.useRef(!1), p = Me(i), h = Qt(r);
3661
3661
  return d.useEffect(() => {
3662
3662
  const g = () => {
@@ -3687,7 +3687,7 @@ var Ln = ["Enter", " "], iu = ["ArrowDown", "PageUp", "Home"], Qr = ["ArrowUp",
3687
3687
  }
3688
3688
  ) });
3689
3689
  };
3690
- ni.displayName = Et;
3690
+ ni.displayName = Rt;
3691
3691
  var pu = "MenuAnchor", oo = d.forwardRef(
3692
3692
  (e, t) => {
3693
3693
  const { __scopeMenu: n, ...o } = e, r = cn(n);
@@ -3704,8 +3704,8 @@ var ro = "MenuPortal", [hu, oi] = qe(ro, {
3704
3704
  ri.displayName = ro;
3705
3705
  var we = "MenuContent", [mu, io] = qe(we), ii = d.forwardRef(
3706
3706
  (e, t) => {
3707
- const n = oi(we, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = Je(we, e.__scopeMenu), s = Rt(we, e.__scopeMenu);
3708
- return /* @__PURE__ */ f(bt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ f(ct, { present: o || i.open, children: /* @__PURE__ */ f(bt.Slot, { scope: e.__scopeMenu, children: s.modal ? /* @__PURE__ */ f(gu, { ...r, ref: t }) : /* @__PURE__ */ f(vu, { ...r, ref: t }) }) }) });
3707
+ const n = oi(we, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = Je(we, e.__scopeMenu), s = At(we, e.__scopeMenu);
3708
+ return /* @__PURE__ */ f(Ct.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ f(ct, { present: o || i.open, children: /* @__PURE__ */ f(Ct.Slot, { scope: e.__scopeMenu, children: s.modal ? /* @__PURE__ */ f(gu, { ...r, ref: t }) : /* @__PURE__ */ f(vu, { ...r, ref: t }) }) }) });
3709
3709
  }
3710
3710
  ), gu = d.forwardRef(
3711
3711
  (e, t) => {
@@ -3743,7 +3743,7 @@ var we = "MenuContent", [mu, io] = qe(we), ii = d.forwardRef(
3743
3743
  onDismiss: () => n.onOpenChange(!1)
3744
3744
  }
3745
3745
  );
3746
- }), wu = /* @__PURE__ */ vt("MenuContent.ScrollLock"), so = d.forwardRef(
3746
+ }), wu = /* @__PURE__ */ wt("MenuContent.ScrollLock"), so = d.forwardRef(
3747
3747
  (e, t) => {
3748
3748
  const {
3749
3749
  __scopeMenu: n,
@@ -3760,7 +3760,7 @@ var we = "MenuContent", [mu, io] = qe(we), ii = d.forwardRef(
3760
3760
  onDismiss: g,
3761
3761
  disableOutsideScroll: w,
3762
3762
  ...m
3763
- } = e, v = Je(we, n), b = Rt(we, n), C = cn(n), y = ti(n), S = lu(n), [R, P] = d.useState(null), E = d.useRef(null), x = J(t, E, v.onContentChange), I = d.useRef(0), T = d.useRef(""), k = d.useRef(0), L = d.useRef(null), $ = d.useRef("right"), F = d.useRef(0), B = w ? no : d.Fragment, O = w ? { as: wu, allowPinchZoom: !0 } : void 0, W = (A) => {
3763
+ } = e, v = Je(we, n), b = At(we, n), C = cn(n), y = ti(n), S = lu(n), [R, P] = d.useState(null), E = d.useRef(null), x = J(t, E, v.onContentChange), I = d.useRef(0), T = d.useRef(""), k = d.useRef(0), L = d.useRef(null), $ = d.useRef("right"), F = d.useRef(0), B = w ? no : d.Fragment, O = w ? { as: wu, allowPinchZoom: !0 } : void 0, W = (A) => {
3764
3764
  var _, j;
3765
3765
  const Y = T.current + A, Q = S().filter((G) => !G.disabled), oe = document.activeElement, ye = (_ = Q.find((G) => G.ref.current === oe)) == null ? void 0 : _.textValue, de = Q.map((G) => G.textValue), be = Mu(de, Y, ye), ie = (j = Q.find((G) => G.textValue === be)) == null ? void 0 : j.ref.current;
3766
3766
  (function G(V) {
@@ -3860,7 +3860,7 @@ var we = "MenuContent", [mu, io] = qe(we), ii = d.forwardRef(
3860
3860
  }),
3861
3861
  onPointerMove: N(
3862
3862
  e.onPointerMove,
3863
- Ct((A) => {
3863
+ St((A) => {
3864
3864
  const Y = A.target, Q = F.current !== A.clientX;
3865
3865
  if (A.currentTarget.contains(Y) && Q) {
3866
3866
  const oe = A.clientX > F.current ? "right" : "left";
@@ -3897,7 +3897,7 @@ var bu = "MenuLabel", si = d.forwardRef(
3897
3897
  si.displayName = bu;
3898
3898
  var Gt = "MenuItem", Yo = "menu.itemSelect", ln = d.forwardRef(
3899
3899
  (e, t) => {
3900
- const { disabled: n = !1, onSelect: o, ...r } = e, i = d.useRef(null), s = Rt(Gt, e.__scopeMenu), a = io(Gt, e.__scopeMenu), c = J(t, i), u = d.useRef(!1), l = () => {
3900
+ const { disabled: n = !1, onSelect: o, ...r } = e, i = d.useRef(null), s = At(Gt, e.__scopeMenu), a = io(Gt, e.__scopeMenu), c = J(t, i), u = d.useRef(!1), l = () => {
3901
3901
  const p = i.current;
3902
3902
  if (!n && p) {
3903
3903
  const h = new CustomEvent(Yo, { bubbles: !0, cancelable: !0 });
@@ -3935,7 +3935,7 @@ var ai = d.forwardRef(
3935
3935
  const w = c.current;
3936
3936
  w && g((w.textContent ?? "").trim());
3937
3937
  }, [i.children]), /* @__PURE__ */ f(
3938
- bt.ItemSlot,
3938
+ Ct.ItemSlot,
3939
3939
  {
3940
3940
  scope: n,
3941
3941
  disabled: o,
@@ -3951,13 +3951,13 @@ var ai = d.forwardRef(
3951
3951
  ref: u,
3952
3952
  onPointerMove: N(
3953
3953
  e.onPointerMove,
3954
- Ct((w) => {
3954
+ St((w) => {
3955
3955
  o ? s.onItemLeave(w) : (s.onItemEnter(w), w.defaultPrevented || w.currentTarget.focus({ preventScroll: !0 }));
3956
3956
  })
3957
3957
  ),
3958
3958
  onPointerLeave: N(
3959
3959
  e.onPointerLeave,
3960
- Ct((w) => s.onItemLeave(w))
3960
+ St((w) => s.onItemLeave(w))
3961
3961
  ),
3962
3962
  onFocus: N(e.onFocus, () => p(!0)),
3963
3963
  onBlur: N(e.onBlur, () => p(!1))
@@ -4069,7 +4069,7 @@ var Au = "MenuArrow", gi = d.forwardRef(
4069
4069
  gi.displayName = Au;
4070
4070
  var Pu = "MenuSub", [op, vi] = qe(Pu), pt = "MenuSubTrigger", wi = d.forwardRef(
4071
4071
  (e, t) => {
4072
- const n = Je(pt, e.__scopeMenu), o = Rt(pt, e.__scopeMenu), r = vi(pt, e.__scopeMenu), i = io(pt, e.__scopeMenu), s = d.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: c } = i, u = { __scopeMenu: e.__scopeMenu }, l = d.useCallback(() => {
4072
+ const n = Je(pt, e.__scopeMenu), o = At(pt, e.__scopeMenu), r = vi(pt, e.__scopeMenu), i = io(pt, e.__scopeMenu), s = d.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: c } = i, u = { __scopeMenu: e.__scopeMenu }, l = d.useCallback(() => {
4073
4073
  s.current && window.clearTimeout(s.current), s.current = null;
4074
4074
  }, []);
4075
4075
  return d.useEffect(() => l, [l]), d.useEffect(() => {
@@ -4093,7 +4093,7 @@ var Pu = "MenuSub", [op, vi] = qe(Pu), pt = "MenuSubTrigger", wi = d.forwardRef(
4093
4093
  },
4094
4094
  onPointerMove: N(
4095
4095
  e.onPointerMove,
4096
- Ct((p) => {
4096
+ St((p) => {
4097
4097
  i.onItemEnter(p), !p.defaultPrevented && !e.disabled && !n.open && !s.current && (i.onPointerGraceIntentChange(null), s.current = window.setTimeout(() => {
4098
4098
  n.onOpenChange(!0), l();
4099
4099
  }, 100));
@@ -4101,7 +4101,7 @@ var Pu = "MenuSub", [op, vi] = qe(Pu), pt = "MenuSubTrigger", wi = d.forwardRef(
4101
4101
  ),
4102
4102
  onPointerLeave: N(
4103
4103
  e.onPointerLeave,
4104
- Ct((p) => {
4104
+ St((p) => {
4105
4105
  var g, w;
4106
4106
  l();
4107
4107
  const h = (g = n.content) == null ? void 0 : g.getBoundingClientRect();
@@ -4140,8 +4140,8 @@ var Pu = "MenuSub", [op, vi] = qe(Pu), pt = "MenuSubTrigger", wi = d.forwardRef(
4140
4140
  wi.displayName = pt;
4141
4141
  var yi = "MenuSubContent", bi = d.forwardRef(
4142
4142
  (e, t) => {
4143
- const n = oi(we, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = Je(we, e.__scopeMenu), s = Rt(we, e.__scopeMenu), a = vi(yi, e.__scopeMenu), c = d.useRef(null), u = J(t, c);
4144
- return /* @__PURE__ */ f(bt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ f(ct, { present: o || i.open, children: /* @__PURE__ */ f(bt.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ f(
4143
+ const n = oi(we, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = Je(we, e.__scopeMenu), s = At(we, e.__scopeMenu), a = vi(yi, e.__scopeMenu), c = d.useRef(null), u = J(t, c);
4144
+ return /* @__PURE__ */ f(Ct.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ f(ct, { present: o || i.open, children: /* @__PURE__ */ f(Ct.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ f(
4145
4145
  so,
4146
4146
  {
4147
4147
  id: a.contentId,
@@ -4214,7 +4214,7 @@ function _u(e, t) {
4214
4214
  const n = { x: e.clientX, y: e.clientY };
4215
4215
  return Nu(n, t);
4216
4216
  }
4217
- function Ct(e) {
4217
+ function St(e) {
4218
4218
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
4219
4219
  }
4220
4220
  var Ou = ni, Du = oo, ku = ri, Fu = ii, Lu = ao, $u = si, Vu = ln, Bu = ci, Wu = ui, Uu = fi, Hu = hi, Ku = mi, Gu = gi, zu = wi, ju = bi, un = "DropdownMenu", [Yu] = Ze(
@@ -4229,7 +4229,7 @@ var Ou = ni, Du = oo, ku = ri, Fu = ii, Lu = ao, $u = si, Vu = ln, Bu = ci, Wu =
4229
4229
  defaultOpen: i,
4230
4230
  onOpenChange: s,
4231
4231
  modal: a = !0
4232
- } = e, c = ue(t), u = d.useRef(null), [l, p] = gt({
4232
+ } = e, c = ue(t), u = d.useRef(null), [l, p] = vt({
4233
4233
  prop: r,
4234
4234
  defaultProp: i ?? !1,
4235
4235
  onChange: s,
@@ -4503,7 +4503,7 @@ const rp = (e) => {
4503
4503
  Yt = !1, Ld(), Nd(), Dd();
4504
4504
  }, sp = () => Yt;
4505
4505
  function Vd({ table: e }) {
4506
- const t = lt(), n = Bt(fa()), o = fe(() => e.getAllColumns().filter((a) => {
4506
+ const t = lt(), n = gt(fa()), o = fe(() => e.getAllColumns().filter((a) => {
4507
4507
  const c = a.columnDef.header;
4508
4508
  return !(!c || typeof c == "string" && c.trim() === "" || a.columnDef.enableHiding === !1);
4509
4509
  }), [e]), r = () => {
@@ -4618,12 +4618,12 @@ var Kd = [" ", "Enter", "ArrowUp", "ArrowDown"], Gd = [" ", "Enter"], Ye = "Sele
4618
4618
  disabled: h,
4619
4619
  required: g,
4620
4620
  form: w
4621
- } = e, m = pn(t), [v, b] = d.useState(null), [C, y] = d.useState(null), [S, R] = d.useState(!1), P = Qt(u), [E, x] = gt({
4621
+ } = e, m = pn(t), [v, b] = d.useState(null), [C, y] = d.useState(null), [S, R] = d.useState(!1), P = Qt(u), [E, x] = vt({
4622
4622
  prop: o,
4623
4623
  defaultProp: r ?? !1,
4624
4624
  onChange: i,
4625
4625
  caller: Ye
4626
- }), [I, T] = gt({
4626
+ }), [I, T] = vt({
4627
4627
  prop: s,
4628
4628
  defaultProp: a,
4629
4629
  onChange: c,
@@ -4775,7 +4775,7 @@ var Xe = "SelectContent", Hi = d.forwardRef(
4775
4775
  }
4776
4776
  );
4777
4777
  Hi.displayName = Xe;
4778
- var Ce = 10, [Ki, We] = ut(Xe), Jd = "SelectContentImpl", Qd = /* @__PURE__ */ vt("SelectContent.RemoveScroll"), Gi = d.forwardRef(
4778
+ var Ce = 10, [Ki, We] = ut(Xe), Jd = "SelectContentImpl", Qd = /* @__PURE__ */ wt("SelectContent.RemoveScroll"), Gi = d.forwardRef(
4779
4779
  (e, t) => {
4780
4780
  const {
4781
4781
  __scopeSelect: n,
@@ -5523,7 +5523,7 @@ var mn = "Tabs", [Of] = Ze(mn, [
5523
5523
  dir: a,
5524
5524
  activationMode: c = "automatic",
5525
5525
  ...u
5526
- } = e, l = Qt(a), [p, h] = gt({
5526
+ } = e, l = Qt(a), [p, h] = vt({
5527
5527
  prop: o,
5528
5528
  onChange: r,
5529
5529
  defaultProp: i ?? "",
@@ -5846,14 +5846,14 @@ function ms({
5846
5846
  mt(() => {
5847
5847
  V((U) => U.pageIndex === 0 ? U : { ...U, pageIndex: 0 });
5848
5848
  }, [v, vs, V]);
5849
- const ge = r === "server", ws = a !== void 0 ? Math.ceil(a / G.pageSize) : void 0, ys = !ge || a !== void 0, At = fe(() => {
5849
+ const ge = r === "server", ws = a !== void 0 ? Math.ceil(a / G.pageSize) : void 0, ys = !ge || a !== void 0, Pt = fe(() => {
5850
5850
  const U = /* @__PURE__ */ new Set();
5851
5851
  for (const Z of t) {
5852
5852
  const X = Z.accessorKey ?? Z.id;
5853
5853
  typeof X == "string" && U.add(X);
5854
5854
  }
5855
5855
  return U;
5856
- }, [t]), bs = fe(() => Fe.filter((U) => At.has(U.id)), [Fe, At]), vn = fe(() => Object.entries(te).filter(([U]) => At.has(U)).map(([U, Z]) => ({ id: U, value: Z })), [te, At]), Cs = Se((U, Z, X) => {
5856
+ }, [t]), bs = fe(() => Fe.filter((U) => Pt.has(U.id)), [Fe, Pt]), vn = fe(() => Object.entries(te).filter(([U]) => Pt.has(U)).map(([U, Z]) => ({ id: U, value: Z })), [te, Pt]), Cs = Se((U, Z, X) => {
5857
5857
  const ve = U.getValue(Z);
5858
5858
  return X.includes(String(ve));
5859
5859
  }, []), Oe = Os({
@@ -6024,13 +6024,17 @@ function ms({
6024
6024
  }
6025
6025
  const Zo = 8;
6026
6026
  function jf({ label: e, x: t, y: n }) {
6027
- const o = Bt(null);
6027
+ const o = gt(null), r = gt(null);
6028
6028
  return Qo(() => {
6029
- const i = o.current;
6030
- if (!i) return;
6031
- const s = i.offsetWidth, a = window.innerWidth - Zo, c = Zo;
6032
- let u = t;
6033
- t + s / 2 > a && (u = a - s / 2), t - s / 2 < c && (u = c + s / 2), u !== t && (i.style.left = `${u}px`);
6029
+ const s = o.current, a = r.current;
6030
+ if (!s || !a) return;
6031
+ const c = s.offsetWidth, u = window.innerWidth - Zo, l = Zo;
6032
+ let p = t;
6033
+ if (t + c / 2 > u && (p = u - c / 2), t - c / 2 < l && (p = l + c / 2), p !== t) {
6034
+ s.style.left = `${p}px`;
6035
+ const h = (t - p) / c * 100;
6036
+ a.style.left = `calc(50% + ${h}%)`;
6037
+ }
6034
6038
  }, [t, e]), _s(
6035
6039
  /* @__PURE__ */ D("div", { ref: o, style: {
6036
6040
  position: "fixed",
@@ -6041,7 +6045,7 @@ function jf({ label: e, x: t, y: n }) {
6041
6045
  pointerEvents: "none"
6042
6046
  }, className: "snow-action-tooltip", children: [
6043
6047
  /* @__PURE__ */ f("div", { className: "snow-tooltip-content", children: e }),
6044
- /* @__PURE__ */ f("div", { className: "snow-tooltip-arrow" })
6048
+ /* @__PURE__ */ f("div", { ref: r, className: "snow-tooltip-arrow" })
6045
6049
  ] }),
6046
6050
  document.body
6047
6051
  );