@mdspl/mds-shared-ui 0.2.0 → 0.2.2

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,11 +1,11 @@
1
- import B, { useLayoutEffect as Zr, useEffect as A, useRef as N, useMemo as M, useCallback as K, useState as Q, createContext as ht, memo as Qr, useReducer as eo, useContext as ze, forwardRef as hn, createElement as sn } from "react";
1
+ import H, { useLayoutEffect as Zr, useEffect as A, useRef as M, useMemo as N, useCallback as K, useState as Q, createContext as ht, memo as Qr, useReducer as eo, useContext as ze, forwardRef as hn, createElement as sn } from "react";
2
2
  import { Menu as Se, Checkbox as pe, IconButton as _e, Portal as gt, Table as ye, HStack as de, createListCollection as cr, Select as z, Pagination as It, Box as Ge, Text as U, ButtonGroup as to, Popover as Pt, InputGroup as ur, InputElement as An, PopoverArrow as no, VStack as je, Kbd as kn, Input as dr, Field as Fe, Slider as pt, Drawer as Ce, Tabs as zt, Button as Gt, CloseButton as ro } from "@chakra-ui/react";
3
3
  import { unstable_batchedUpdates as St, createPortal as oo } from "react-dom";
4
4
  var Ct = { exports: {} }, ot = {};
5
- var Mn;
5
+ var Nn;
6
6
  function so() {
7
- if (Mn) return ot;
8
- Mn = 1;
7
+ if (Nn) return ot;
8
+ Nn = 1;
9
9
  var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
10
10
  function n(r, o, s) {
11
11
  var i = null;
@@ -25,9 +25,9 @@ function so() {
25
25
  return ot.Fragment = t, ot.jsx = n, ot.jsxs = n, ot;
26
26
  }
27
27
  var st = {};
28
- var Nn;
28
+ var Mn;
29
29
  function io() {
30
- return Nn || (Nn = 1, process.env.NODE_ENV !== "production" && (function() {
30
+ return Mn || (Mn = 1, process.env.NODE_ENV !== "production" && (function() {
31
31
  function e(p) {
32
32
  if (p == null) return null;
33
33
  if (typeof p == "function")
@@ -221,7 +221,7 @@ React keys must be passed directly to JSX without using spread:
221
221
  function v(p) {
222
222
  return typeof p == "object" && p !== null && p.$$typeof === b;
223
223
  }
224
- var d = B, b = /* @__PURE__ */ Symbol.for("react.transitional.element"), g = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), x = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), S = /* @__PURE__ */ Symbol.for("react.consumer"), D = /* @__PURE__ */ Symbol.for("react.context"), j = /* @__PURE__ */ Symbol.for("react.forward_ref"), R = /* @__PURE__ */ Symbol.for("react.suspense"), E = /* @__PURE__ */ Symbol.for("react.suspense_list"), _ = /* @__PURE__ */ Symbol.for("react.memo"), $ = /* @__PURE__ */ Symbol.for("react.lazy"), F = /* @__PURE__ */ Symbol.for("react.activity"), L = /* @__PURE__ */ Symbol.for("react.client.reference"), J = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ee = Object.prototype.hasOwnProperty, ae = Array.isArray, Re = console.createTask ? console.createTask : function() {
224
+ var d = H, b = /* @__PURE__ */ Symbol.for("react.transitional.element"), g = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), x = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), S = /* @__PURE__ */ Symbol.for("react.consumer"), D = /* @__PURE__ */ Symbol.for("react.context"), j = /* @__PURE__ */ Symbol.for("react.forward_ref"), R = /* @__PURE__ */ Symbol.for("react.suspense"), E = /* @__PURE__ */ Symbol.for("react.suspense_list"), _ = /* @__PURE__ */ Symbol.for("react.memo"), $ = /* @__PURE__ */ Symbol.for("react.lazy"), F = /* @__PURE__ */ Symbol.for("react.activity"), L = /* @__PURE__ */ Symbol.for("react.client.reference"), J = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ee = Object.prototype.hasOwnProperty, ae = Array.isArray, Re = console.createTask ? console.createTask : function() {
225
225
  return null;
226
226
  };
227
227
  d = {
@@ -265,7 +265,7 @@ var $n;
265
265
  function lo() {
266
266
  if ($n) return qt;
267
267
  $n = 1;
268
- var e = B;
268
+ var e = H;
269
269
  function t(f, v) {
270
270
  return f === v && (f !== 0 || 1 / f === 1 / v) || f !== f && v !== v;
271
271
  }
@@ -352,7 +352,7 @@ function co() {
352
352
  return b();
353
353
  }
354
354
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
355
- var o = B, s = typeof Object.is == "function" ? Object.is : e, i = o.useState, l = o.useEffect, c = o.useLayoutEffect, u = o.useDebugValue, h = !1, f = !1, v = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
355
+ var o = H, s = typeof Object.is == "function" ? Object.is : e, i = o.useState, l = o.useEffect, c = o.useLayoutEffect, u = o.useDebugValue, h = !1, f = !1, v = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
356
356
  Kt.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : v, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
357
357
  })()), Kt;
358
358
  }
@@ -364,7 +364,7 @@ var Fn;
364
364
  function uo() {
365
365
  if (Fn) return Xt;
366
366
  Fn = 1;
367
- var e = B, t = fr();
367
+ var e = H, t = fr();
368
368
  function n(u, h) {
369
369
  return u === h && (u !== 0 || 1 / u === 1 / h) || u !== u && h !== h;
370
370
  }
@@ -419,7 +419,7 @@ function fo() {
419
419
  return u === h && (u !== 0 || 1 / u === 1 / h) || u !== u && h !== h;
420
420
  }
421
421
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
422
- var t = B, n = fr(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, s = t.useRef, i = t.useEffect, l = t.useMemo, c = t.useDebugValue;
422
+ var t = H, n = fr(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, s = t.useRef, i = t.useEffect, l = t.useMemo, c = t.useDebugValue;
423
423
  Jt.useSyncExternalStoreWithSelector = function(u, h, f, v, d) {
424
424
  var b = s(null);
425
425
  if (b.current === null) {
@@ -473,7 +473,7 @@ const an = /* @__PURE__ */ new WeakMap(), po = /* @__PURE__ */ new WeakMap(), At
473
473
  current: []
474
474
  };
475
475
  let Zt = !1;
476
- const Et = /* @__PURE__ */ new Set(), Bn = /* @__PURE__ */ new Map();
476
+ const Et = /* @__PURE__ */ new Set(), Hn = /* @__PURE__ */ new Map();
477
477
  function hr(e) {
478
478
  for (const t of e) {
479
479
  if (At.current.includes(t))
@@ -510,7 +510,7 @@ function mo(e) {
510
510
  const t = Array.from(Et);
511
511
  Et.clear();
512
512
  for (const n of t) {
513
- const r = Bn.get(n) ?? n.prevState;
513
+ const r = Hn.get(n) ?? n.prevState;
514
514
  n.prevState = r, vo(n);
515
515
  }
516
516
  for (const n of t) {
@@ -525,7 +525,7 @@ function mo(e) {
525
525
  }
526
526
  }
527
527
  } finally {
528
- Zt = !1, At.current = [], Bn.clear();
528
+ Zt = !1, At.current = [], Hn.clear();
529
529
  }
530
530
  }
531
531
  function xo(e) {
@@ -576,15 +576,15 @@ function yo(e, t) {
576
576
  }
577
577
  if (e instanceof Date && t instanceof Date)
578
578
  return e.getTime() === t.getTime();
579
- const n = Hn(e);
580
- if (n.length !== Hn(t).length)
579
+ const n = Bn(e);
580
+ if (n.length !== Bn(t).length)
581
581
  return !1;
582
582
  for (let r = 0; r < n.length; r++)
583
583
  if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !Object.is(e[n[r]], t[n[r]]))
584
584
  return !1;
585
585
  return !0;
586
586
  }
587
- function Hn(e) {
587
+ function Bn(e) {
588
588
  return Object.keys(e).concat(
589
589
  Object.getOwnPropertySymbols(e)
590
590
  );
@@ -592,7 +592,7 @@ function Hn(e) {
592
592
  function wo() {
593
593
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
594
594
  t[n] = arguments[n];
595
- return M(
595
+ return N(
596
596
  () => (r) => {
597
597
  t.forEach((o) => o(r));
598
598
  },
@@ -630,7 +630,7 @@ function Je(e) {
630
630
  }
631
631
  const we = Ft ? Zr : A;
632
632
  function vn(e) {
633
- const t = N(e);
633
+ const t = M(e);
634
634
  return we(() => {
635
635
  t.current = e;
636
636
  }), K(function() {
@@ -640,7 +640,7 @@ function vn(e) {
640
640
  }, []);
641
641
  }
642
642
  function So() {
643
- const e = N(null), t = K((r, o) => {
643
+ const e = M(null), t = K((r, o) => {
644
644
  e.current = setInterval(r, o);
645
645
  }, []), n = K(() => {
646
646
  e.current !== null && (clearInterval(e.current), e.current = null);
@@ -649,14 +649,14 @@ function So() {
649
649
  }
650
650
  function dt(e, t) {
651
651
  t === void 0 && (t = [e]);
652
- const n = N(e);
652
+ const n = M(e);
653
653
  return we(() => {
654
654
  n.current !== e && (n.current = e);
655
655
  }, t), n;
656
656
  }
657
657
  function mt(e, t) {
658
- const n = N();
659
- return M(
658
+ const n = M();
659
+ return N(
660
660
  () => {
661
661
  const r = e(n.current);
662
662
  return n.current = r, r;
@@ -666,7 +666,7 @@ function mt(e, t) {
666
666
  );
667
667
  }
668
668
  function kt(e) {
669
- const t = vn(e), n = N(null), r = K(
669
+ const t = vn(e), n = M(null), r = K(
670
670
  (o) => {
671
671
  o !== n.current && t?.(o, n.current), n.current = o;
672
672
  },
@@ -676,14 +676,14 @@ function kt(e) {
676
676
  return [n, r];
677
677
  }
678
678
  function ln(e) {
679
- const t = N();
679
+ const t = M();
680
680
  return A(() => {
681
681
  t.current = e;
682
682
  }, [e]), t.current;
683
683
  }
684
684
  let Qt = {};
685
685
  function xt(e, t) {
686
- return M(() => {
686
+ return N(() => {
687
687
  if (t)
688
688
  return t;
689
689
  const n = Qt[e] == null ? 0 : Qt[e] + 1;
@@ -706,7 +706,7 @@ function vr(e) {
706
706
  });
707
707
  };
708
708
  }
709
- const Xe = /* @__PURE__ */ vr(1), Mt = /* @__PURE__ */ vr(-1);
709
+ const Xe = /* @__PURE__ */ vr(1), Nt = /* @__PURE__ */ vr(-1);
710
710
  function Co(e) {
711
711
  return "clientX" in e && "clientY" in e;
712
712
  }
@@ -804,7 +804,7 @@ function jo(e) {
804
804
  id: t,
805
805
  value: n
806
806
  } = e;
807
- return B.createElement("div", {
807
+ return H.createElement("div", {
808
808
  id: t,
809
809
  style: Eo
810
810
  }, n);
@@ -829,7 +829,7 @@ function _o(e) {
829
829
  clipPath: "inset(100%)",
830
830
  whiteSpace: "nowrap"
831
831
  };
832
- return B.createElement("div", {
832
+ return H.createElement("div", {
833
833
  id: t,
834
834
  style: o,
835
835
  role: "status",
@@ -902,7 +902,7 @@ const Ao = {
902
902
  return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
903
903
  }
904
904
  };
905
- function Mo(e) {
905
+ function No(e) {
906
906
  let {
907
907
  announcements: t = ko,
908
908
  container: n,
@@ -915,7 +915,7 @@ function Mo(e) {
915
915
  } = Oo(), l = xt("DndLiveRegion"), [c, u] = Q(!1);
916
916
  if (A(() => {
917
917
  u(!0);
918
- }, []), To(M(() => ({
918
+ }, []), To(N(() => ({
919
919
  onDragStart(f) {
920
920
  let {
921
921
  active: v
@@ -966,10 +966,10 @@ function Mo(e) {
966
966
  }
967
967
  }), [s, t])), !c)
968
968
  return null;
969
- const h = B.createElement(B.Fragment, null, B.createElement(jo, {
969
+ const h = H.createElement(H.Fragment, null, H.createElement(jo, {
970
970
  id: r,
971
971
  value: o.draggable
972
- }), B.createElement(_o, {
972
+ }), H.createElement(_o, {
973
973
  id: l,
974
974
  announcement: i
975
975
  }));
@@ -979,10 +979,10 @@ var Y;
979
979
  (function(e) {
980
980
  e.DragStart = "dragStart", e.DragMove = "dragMove", e.DragEnd = "dragEnd", e.DragCancel = "dragCancel", e.DragOver = "dragOver", e.RegisterDroppable = "registerDroppable", e.SetDroppableDisabled = "setDroppableDisabled", e.UnregisterDroppable = "unregisterDroppable";
981
981
  })(Y || (Y = {}));
982
- function Nt() {
982
+ function Mt() {
983
983
  }
984
- function No(e, t) {
985
- return M(
984
+ function Mo(e, t) {
985
+ return N(
986
986
  () => ({
987
987
  sensor: e,
988
988
  options: {}
@@ -994,7 +994,7 @@ function No(e, t) {
994
994
  function Lo() {
995
995
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
996
996
  t[n] = arguments[n];
997
- return M(
997
+ return N(
998
998
  () => [...t].filter((r) => r != null),
999
999
  // eslint-disable-next-line react-hooks/exhaustive-deps
1000
1000
  [...t]
@@ -1099,7 +1099,7 @@ const Yo = (e) => {
1099
1099
  }
1100
1100
  return o.sort(zo);
1101
1101
  };
1102
- function Bo(e, t, n) {
1102
+ function Ho(e, t, n) {
1103
1103
  return {
1104
1104
  ...e,
1105
1105
  scaleX: t && n ? t.width / n.width : 1,
@@ -1112,7 +1112,7 @@ function xr(e, t) {
1112
1112
  y: e.top - t.top
1113
1113
  } : ge;
1114
1114
  }
1115
- function Ho(e) {
1115
+ function Bo(e) {
1116
1116
  return function(n) {
1117
1117
  for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
1118
1118
  o[s - 1] = arguments[s];
@@ -1127,7 +1127,7 @@ function Ho(e) {
1127
1127
  });
1128
1128
  };
1129
1129
  }
1130
- const Wo = /* @__PURE__ */ Ho(1);
1130
+ const Wo = /* @__PURE__ */ Bo(1);
1131
1131
  function Uo(e) {
1132
1132
  if (e.startsWith("matrix3d(")) {
1133
1133
  const t = e.slice(9, -1).split(/, /);
@@ -1257,10 +1257,10 @@ function un(e) {
1257
1257
  y: Sr(e)
1258
1258
  };
1259
1259
  }
1260
- var H;
1260
+ var B;
1261
1261
  (function(e) {
1262
1262
  e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
1263
- })(H || (H = {}));
1263
+ })(B || (B = {}));
1264
1264
  function Cr(e) {
1265
1265
  return !Ft || !e ? !1 : e === document.scrollingElement;
1266
1266
  }
@@ -1314,7 +1314,7 @@ function Qo(e, t, n, r, o) {
1314
1314
  height: t.height * o.y,
1315
1315
  width: t.width * o.x
1316
1316
  };
1317
- return !u && s <= t.top + g.height ? (d.y = H.Backward, b.y = r * Math.abs((t.top + g.height - s) / g.height)) : !h && c >= t.bottom - g.height && (d.y = H.Forward, b.y = r * Math.abs((t.bottom - g.height - c) / g.height)), !v && l >= t.right - g.width ? (d.x = H.Forward, b.x = r * Math.abs((t.right - g.width - l) / g.width)) : !f && i <= t.left + g.width && (d.x = H.Backward, b.x = r * Math.abs((t.left + g.width - i) / g.width)), {
1317
+ return !u && s <= t.top + g.height ? (d.y = B.Backward, b.y = r * Math.abs((t.top + g.height - s) / g.height)) : !h && c >= t.bottom - g.height && (d.y = B.Forward, b.y = r * Math.abs((t.bottom - g.height - c) / g.height)), !v && l >= t.right - g.width ? (d.x = B.Forward, b.x = r * Math.abs((t.right - g.width - l) / g.width)) : !f && i <= t.left + g.width && (d.x = B.Backward, b.x = r * Math.abs((t.left + g.width - i) / g.width)), {
1318
1318
  direction: d,
1319
1319
  speed: b
1320
1320
  };
@@ -1517,7 +1517,7 @@ class jr {
1517
1517
  currentCoordinates: h
1518
1518
  });
1519
1519
  if (f) {
1520
- const v = Mt(f, h), d = {
1520
+ const v = Nt(f, h), d = {
1521
1521
  x: 0,
1522
1522
  y: 0
1523
1523
  }, {
@@ -1565,7 +1565,7 @@ class jr {
1565
1565
  break;
1566
1566
  }
1567
1567
  }
1568
- this.handleMove(t, Xe(Mt(f, this.referenceCoordinates), d));
1568
+ this.handleMove(t, Xe(Nt(f, this.referenceCoordinates), d));
1569
1569
  }
1570
1570
  }
1571
1571
  }
@@ -1693,7 +1693,7 @@ class yn {
1693
1693
  } = s;
1694
1694
  if (!o)
1695
1695
  return;
1696
- const c = (n = cn(t)) != null ? n : ge, u = Mt(o, c);
1696
+ const c = (n = cn(t)) != null ? n : ge, u = Nt(o, c);
1697
1697
  if (!r && l) {
1698
1698
  if (qn(l)) {
1699
1699
  if (l.tolerance != null && tn(u, l.tolerance))
@@ -1860,13 +1860,13 @@ function fs(e) {
1860
1860
  const d = gs({
1861
1861
  delta: f,
1862
1862
  disabled: !s
1863
- }), [b, g] = So(), m = N({
1863
+ }), [b, g] = So(), m = M({
1864
1864
  x: 0,
1865
1865
  y: 0
1866
- }), x = N({
1866
+ }), x = M({
1867
1867
  x: 0,
1868
1868
  y: 0
1869
- }), w = M(() => {
1869
+ }), w = N(() => {
1870
1870
  switch (n) {
1871
1871
  case ct.Pointer:
1872
1872
  return c ? {
@@ -1878,13 +1878,13 @@ function fs(e) {
1878
1878
  case ct.DraggableRect:
1879
1879
  return o;
1880
1880
  }
1881
- }, [n, o, c]), S = N(null), D = K(() => {
1881
+ }, [n, o, c]), S = M(null), D = K(() => {
1882
1882
  const R = S.current;
1883
1883
  if (!R)
1884
1884
  return;
1885
1885
  const E = m.current.x * x.current.x, _ = m.current.y * x.current.y;
1886
1886
  R.scrollBy(E, _);
1887
- }, []), j = M(() => l === Lt.TreeOrder ? [...u].reverse() : u, [l, u]);
1887
+ }, []), j = N(() => l === Lt.TreeOrder ? [...u].reverse() : u, [l, u]);
1888
1888
  A(
1889
1889
  () => {
1890
1890
  if (!s || !u.length || !w) {
@@ -1939,12 +1939,12 @@ function fs(e) {
1939
1939
  }
1940
1940
  const hs = {
1941
1941
  x: {
1942
- [H.Backward]: !1,
1943
- [H.Forward]: !1
1942
+ [B.Backward]: !1,
1943
+ [B.Forward]: !1
1944
1944
  },
1945
1945
  y: {
1946
- [H.Backward]: !1,
1947
- [H.Forward]: !1
1946
+ [B.Backward]: !1,
1947
+ [B.Forward]: !1
1948
1948
  }
1949
1949
  };
1950
1950
  function gs(e) {
@@ -1962,12 +1962,12 @@ function gs(e) {
1962
1962
  };
1963
1963
  return {
1964
1964
  x: {
1965
- [H.Backward]: o.x[H.Backward] || s.x === -1,
1966
- [H.Forward]: o.x[H.Forward] || s.x === 1
1965
+ [B.Backward]: o.x[B.Backward] || s.x === -1,
1966
+ [B.Forward]: o.x[B.Forward] || s.x === 1
1967
1967
  },
1968
1968
  y: {
1969
- [H.Backward]: o.y[H.Backward] || s.y === -1,
1970
- [H.Forward]: o.y[H.Forward] || s.y === 1
1969
+ [B.Backward]: o.y[B.Backward] || s.y === -1,
1970
+ [B.Forward]: o.y[B.Forward] || s.y === 1
1971
1971
  }
1972
1972
  };
1973
1973
  }, [n, t, r]);
@@ -1980,7 +1980,7 @@ function ps(e, t) {
1980
1980
  }, [r, t]);
1981
1981
  }
1982
1982
  function vs(e, t) {
1983
- return M(() => e.reduce((n, r) => {
1983
+ return N(() => e.reduce((n, r) => {
1984
1984
  const {
1985
1985
  sensor: o
1986
1986
  } = r, s = o.activators.map((i) => ({
@@ -2009,9 +2009,9 @@ function bs(e, t) {
2009
2009
  frequency: l,
2010
2010
  measure: c,
2011
2011
  strategy: u
2012
- } = o, h = N(e), f = m(), v = dt(f), d = K(function(x) {
2012
+ } = o, h = M(e), f = m(), v = dt(f), d = K(function(x) {
2013
2013
  x === void 0 && (x = []), !v.current && i((w) => w === null ? x : w.concat(x.filter((S) => !w.includes(S))));
2014
- }, [v]), b = N(null), g = mt((x) => {
2014
+ }, [v]), b = M(null), g = mt((x) => {
2015
2015
  if (f && !n)
2016
2016
  return Jn;
2017
2017
  if (!x || x === Jn || h.current !== e || s != null) {
@@ -2079,7 +2079,7 @@ function xs(e) {
2079
2079
  callback: t,
2080
2080
  disabled: n
2081
2081
  } = e;
2082
- const r = vn(t), o = M(() => {
2082
+ const r = vn(t), o = N(() => {
2083
2083
  if (n || typeof window > "u" || typeof window.MutationObserver > "u")
2084
2084
  return;
2085
2085
  const {
@@ -2094,7 +2094,7 @@ function Vt(e) {
2094
2094
  callback: t,
2095
2095
  disabled: n
2096
2096
  } = e;
2097
- const r = vn(t), o = M(
2097
+ const r = vn(t), o = N(
2098
2098
  () => {
2099
2099
  if (n || typeof window > "u" || typeof window.ResizeObserver > "u")
2100
2100
  return;
@@ -2156,13 +2156,13 @@ function ws(e) {
2156
2156
  }
2157
2157
  const Qn = [];
2158
2158
  function Ss(e) {
2159
- const t = N(e), n = mt((r) => e ? r && r !== Qn && e && t.current && e.parentNode === t.current.parentNode ? r : mn(e) : Qn, [e]);
2159
+ const t = M(e), n = mt((r) => e ? r && r !== Qn && e && t.current && e.parentNode === t.current.parentNode ? r : mn(e) : Qn, [e]);
2160
2160
  return A(() => {
2161
2161
  t.current = e;
2162
2162
  }, [e]), n;
2163
2163
  }
2164
2164
  function Cs(e) {
2165
- const [t, n] = Q(null), r = N(e), o = K((s) => {
2165
+ const [t, n] = Q(null), r = M(e), o = K((s) => {
2166
2166
  const i = en(s.target);
2167
2167
  i && n((l) => l ? (l.set(i, un(i)), new Map(l)) : null);
2168
2168
  }, []);
@@ -2187,11 +2187,11 @@ function Cs(e) {
2187
2187
  u?.removeEventListener("scroll", o);
2188
2188
  });
2189
2189
  }
2190
- }, [o, e]), M(() => e.length ? t ? Array.from(t.values()).reduce((s, i) => Xe(s, i), ge) : Dr(e) : ge, [e, t]);
2190
+ }, [o, e]), N(() => e.length ? t ? Array.from(t.values()).reduce((s, i) => Xe(s, i), ge) : Dr(e) : ge, [e, t]);
2191
2191
  }
2192
2192
  function er(e, t) {
2193
2193
  t === void 0 && (t = []);
2194
- const n = N(null);
2194
+ const n = M(null);
2195
2195
  return A(
2196
2196
  () => {
2197
2197
  n.current = null;
@@ -2201,7 +2201,7 @@ function er(e, t) {
2201
2201
  ), A(() => {
2202
2202
  const r = e !== ge;
2203
2203
  r && !n.current && (n.current = e), !r && n.current && (n.current = null);
2204
- }, [e]), n.current ? Mt(e, n.current) : ge;
2204
+ }, [e]), n.current ? Nt(e, n.current) : ge;
2205
2205
  }
2206
2206
  function Rs(e) {
2207
2207
  A(
@@ -2230,7 +2230,7 @@ function Rs(e) {
2230
2230
  );
2231
2231
  }
2232
2232
  function Ds(e, t) {
2233
- return M(() => e.reduce((n, r) => {
2233
+ return N(() => e.reduce((n, r) => {
2234
2234
  let {
2235
2235
  eventName: o,
2236
2236
  handler: s
@@ -2241,7 +2241,7 @@ function Ds(e, t) {
2241
2241
  }, {}), [e, t]);
2242
2242
  }
2243
2243
  function Or(e) {
2244
- return M(() => e ? qo(e) : null, [e]);
2244
+ return N(() => e ? qo(e) : null, [e]);
2245
2245
  }
2246
2246
  const tr = [];
2247
2247
  function Es(e, t) {
@@ -2290,7 +2290,7 @@ function _s(e) {
2290
2290
  const h = js(u);
2291
2291
  s?.disconnect(), h && s?.observe(h), r(h ? t(h) : null);
2292
2292
  }, [t, s]), [l, c] = kt(i);
2293
- return M(() => ({
2293
+ return N(() => ({
2294
2294
  nodeRef: l,
2295
2295
  rect: n,
2296
2296
  setRef: c
@@ -2354,12 +2354,12 @@ const Is = {
2354
2354
  current: null
2355
2355
  },
2356
2356
  rect: null,
2357
- setRef: Nt
2357
+ setRef: Mt
2358
2358
  },
2359
2359
  scrollableAncestors: [],
2360
2360
  scrollableAncestorRects: [],
2361
2361
  measuringConfiguration: Tt,
2362
- measureDroppableContainers: Nt,
2362
+ measureDroppableContainers: Mt,
2363
2363
  windowRect: null,
2364
2364
  measuringScheduled: !1
2365
2365
  }, As = {
@@ -2370,10 +2370,10 @@ const Is = {
2370
2370
  ariaDescribedById: {
2371
2371
  draggable: ""
2372
2372
  },
2373
- dispatch: Nt,
2373
+ dispatch: Mt,
2374
2374
  draggableNodes: /* @__PURE__ */ new Map(),
2375
2375
  over: null,
2376
- measureDroppableContainers: Nt
2376
+ measureDroppableContainers: Mt
2377
2377
  }, Yt = /* @__PURE__ */ ht(As), Tr = /* @__PURE__ */ ht(Is);
2378
2378
  function ks() {
2379
2379
  return {
@@ -2394,7 +2394,7 @@ function ks() {
2394
2394
  }
2395
2395
  };
2396
2396
  }
2397
- function Ms(e, t) {
2397
+ function Ns(e, t) {
2398
2398
  switch (t.type) {
2399
2399
  case Y.DragStart:
2400
2400
  return {
@@ -2487,7 +2487,7 @@ function Ms(e, t) {
2487
2487
  return e;
2488
2488
  }
2489
2489
  }
2490
- function Ns(e) {
2490
+ function Ms(e) {
2491
2491
  let {
2492
2492
  disabled: t
2493
2493
  } = e;
@@ -2534,7 +2534,7 @@ function Ls(e, t) {
2534
2534
  }), n) : n;
2535
2535
  }
2536
2536
  function $s(e) {
2537
- return M(
2537
+ return N(
2538
2538
  () => ({
2539
2539
  draggable: {
2540
2540
  ...Tt.draggable,
@@ -2560,7 +2560,7 @@ function Ps(e) {
2560
2560
  initialRect: r,
2561
2561
  config: o = !0
2562
2562
  } = e;
2563
- const s = N(!1), {
2563
+ const s = M(!1), {
2564
2564
  x: i,
2565
2565
  y: l
2566
2566
  } = typeof o == "boolean" ? {
@@ -2592,10 +2592,10 @@ const Ir = /* @__PURE__ */ ht({
2592
2592
  scaleX: 1,
2593
2593
  scaleY: 1
2594
2594
  });
2595
- var Ne;
2595
+ var Me;
2596
2596
  (function(e) {
2597
2597
  e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
2598
- })(Ne || (Ne = {}));
2598
+ })(Me || (Me = {}));
2599
2599
  const Ar = /* @__PURE__ */ Qr(function(t) {
2600
2600
  var n, r, o, s;
2601
2601
  let {
@@ -2609,7 +2609,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2609
2609
  modifiers: d,
2610
2610
  ...b
2611
2611
  } = t;
2612
- const g = eo(Ms, void 0, ks), [m, x] = g, [w, S] = Io(), [D, j] = Q(Ne.Uninitialized), R = D === Ne.Initialized, {
2612
+ const g = eo(Ns, void 0, ks), [m, x] = g, [w, S] = Io(), [D, j] = Q(Me.Uninitialized), R = D === Me.Initialized, {
2613
2613
  draggable: {
2614
2614
  active: E,
2615
2615
  nodes: _,
@@ -2618,10 +2618,10 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2618
2618
  droppable: {
2619
2619
  containers: F
2620
2620
  }
2621
- } = m, L = E != null ? _.get(E) : null, J = N({
2621
+ } = m, L = E != null ? _.get(E) : null, J = M({
2622
2622
  initial: null,
2623
2623
  translated: null
2624
- }), ee = M(() => {
2624
+ }), ee = N(() => {
2625
2625
  var q;
2626
2626
  return E != null ? {
2627
2627
  id: E,
@@ -2629,7 +2629,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2629
2629
  data: (q = L?.data) != null ? q : Ts,
2630
2630
  rect: J
2631
2631
  } : null;
2632
- }, [E, L]), ae = N(null), [Re, $e] = Q(null), [G, Pe] = Q(null), le = dt(b, Object.values(b)), Oe = xt("DndDescribedBy", i), p = M(() => F.getEnabled(), [F]), C = $s(v), {
2632
+ }, [E, L]), ae = M(null), [Re, $e] = Q(null), [G, Pe] = Q(null), le = dt(b, Object.values(b)), Oe = xt("DndDescribedBy", i), p = N(() => F.getEnabled(), [F]), C = $s(v), {
2633
2633
  droppableRects: O,
2634
2634
  measureDroppableContainers: k,
2635
2635
  measuringScheduled: ve
@@ -2637,14 +2637,14 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2637
2637
  dragging: R,
2638
2638
  dependencies: [$.x, $.y],
2639
2639
  config: C.droppable
2640
- }), X = ps(_, E), P = M(() => G ? cn(G) : null, [G]), Z = Jr(), re = ms(X, C.draggable.measure);
2640
+ }), X = ps(_, E), P = N(() => G ? cn(G) : null, [G]), Z = Jr(), re = ms(X, C.draggable.measure);
2641
2641
  Ps({
2642
2642
  activeNode: E != null ? _.get(E) : null,
2643
2643
  config: Z.layoutShiftCompensation,
2644
2644
  initialRect: re,
2645
2645
  measure: C.draggable.measure
2646
2646
  });
2647
- const I = Zn(X, C.draggable.measure, re), Qe = Zn(X ? X.parentElement : null), be = N({
2647
+ const I = Zn(X, C.draggable.measure, re), Qe = Zn(X ? X.parentElement : null), be = M({
2648
2648
  activatorEvent: null,
2649
2649
  active: null,
2650
2650
  activeNode: X,
@@ -2660,7 +2660,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2660
2660
  scrollAdjustedTranslate: null
2661
2661
  }), Ve = F.getNodeFor((n = be.current.over) == null ? void 0 : n.id), De = _s({
2662
2662
  measure: C.dragOverlay.measure
2663
- }), Ye = (r = De.nodeRef.current) != null ? r : X, Be = R ? (o = De.rect) != null ? o : I : null, Rn = !!(De.nodeRef.current && De.rect), Dn = ws(Rn ? null : I), Ht = Or(Ye ? te(Ye) : null), Te = Ss(R ? Ve ?? X : null), yt = Es(Te), wt = Ls(d, {
2663
+ }), Ye = (r = De.nodeRef.current) != null ? r : X, He = R ? (o = De.rect) != null ? o : I : null, Rn = !!(De.nodeRef.current && De.rect), Dn = ws(Rn ? null : I), Bt = Or(Ye ? te(Ye) : null), Te = Ss(R ? Ve ?? X : null), yt = Es(Te), wt = Ls(d, {
2664
2664
  transform: {
2665
2665
  x: $.x - Dn.x,
2666
2666
  y: $.y - Dn.y,
@@ -2671,19 +2671,19 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2671
2671
  active: ee,
2672
2672
  activeNodeRect: I,
2673
2673
  containerNodeRect: Qe,
2674
- draggingNodeRect: Be,
2674
+ draggingNodeRect: He,
2675
2675
  over: be.current.over,
2676
2676
  overlayNodeRect: De.rect,
2677
2677
  scrollableAncestors: Te,
2678
2678
  scrollableAncestorRects: yt,
2679
- windowRect: Ht
2680
- }), En = P ? Xe(P, $) : null, jn = Cs(Te), Hr = er(jn), Wr = er(jn, [I]), He = Xe(wt, Hr), We = Be ? Wo(Be, wt) : null, et = ee && We ? f({
2679
+ windowRect: Bt
2680
+ }), En = P ? Xe(P, $) : null, jn = Cs(Te), Br = er(jn), Wr = er(jn, [I]), Be = Xe(wt, Br), We = He ? Wo(He, wt) : null, et = ee && We ? f({
2681
2681
  active: ee,
2682
2682
  collisionRect: We,
2683
2683
  droppableRects: O,
2684
2684
  droppableContainers: p,
2685
2685
  pointerCoordinates: En
2686
- }) : null, _n = Fo(et, "id"), [Ie, On] = Q(null), Ur = Rn ? wt : Xe(wt, Wr), Gr = Bo(Ur, (s = Ie?.rect) != null ? s : null, I), Wt = N(null), Tn = K(
2686
+ }) : null, _n = Fo(et, "id"), [Ie, On] = Q(null), Ur = Rn ? wt : Xe(wt, Wr), Gr = Ho(Ur, (s = Ie?.rect) != null ? s : null, I), Wt = M(null), Tn = K(
2687
2687
  (q, oe) => {
2688
2688
  let {
2689
2689
  sensor: se,
@@ -2720,15 +2720,15 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2720
2720
  return;
2721
2721
  const {
2722
2722
  onDragPending: nt
2723
- } = le.current, Me = {
2723
+ } = le.current, Ne = {
2724
2724
  id: W,
2725
2725
  constraint: ke,
2726
2726
  initialCoordinates: xe,
2727
2727
  offset: Ee
2728
2728
  };
2729
- nt?.(Me), w({
2729
+ nt?.(Ne), w({
2730
2730
  type: "onDragPending",
2731
- event: Me
2731
+ event: Ne
2732
2732
  });
2733
2733
  },
2734
2734
  onStart(W) {
@@ -2749,7 +2749,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2749
2749
  }
2750
2750
  };
2751
2751
  St(() => {
2752
- Ee?.(tt), j(Ne.Initializing), x({
2752
+ Ee?.(tt), j(Me.Initializing), x({
2753
2753
  type: Y.DragStart,
2754
2754
  initialCoordinates: W,
2755
2755
  active: ke
@@ -2777,29 +2777,29 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2777
2777
  over: tt,
2778
2778
  scrollAdjustedTranslate: nt
2779
2779
  } = be.current;
2780
- let Me = null;
2780
+ let Ne = null;
2781
2781
  if (xe && nt) {
2782
2782
  const {
2783
2783
  cancelDrop: rt
2784
2784
  } = le.current;
2785
- Me = {
2785
+ Ne = {
2786
2786
  activatorEvent: ie,
2787
2787
  active: xe,
2788
2788
  collisions: Ee,
2789
2789
  delta: nt,
2790
2790
  over: tt
2791
- }, W === Y.DragEnd && typeof rt == "function" && await Promise.resolve(rt(Me)) && (W = Y.DragCancel);
2791
+ }, W === Y.DragEnd && typeof rt == "function" && await Promise.resolve(rt(Ne)) && (W = Y.DragCancel);
2792
2792
  }
2793
2793
  ae.current = null, St(() => {
2794
2794
  x({
2795
2795
  type: W
2796
- }), j(Ne.Uninitialized), On(null), $e(null), Pe(null), Wt.current = null;
2796
+ }), j(Me.Uninitialized), On(null), $e(null), Pe(null), Wt.current = null;
2797
2797
  const rt = W === Y.DragEnd ? "onDragEnd" : "onDragCancel";
2798
- if (Me) {
2798
+ if (Ne) {
2799
2799
  const Ut = le.current[rt];
2800
- Ut?.(Me), w({
2800
+ Ut?.(Ne), w({
2801
2801
  type: rt,
2802
- event: Me
2802
+ event: Ne
2803
2803
  });
2804
2804
  }
2805
2805
  });
@@ -2825,7 +2825,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2825
2825
  }, ae.current = Ae, Tn(se, oe));
2826
2826
  }, [_, Tn]), In = vs(h, Xr);
2827
2827
  Rs(h), we(() => {
2828
- I && D === Ne.Initializing && j(Ne.Initialized);
2828
+ I && D === Me.Initializing && j(Me.Initialized);
2829
2829
  }, [I, D]), A(
2830
2830
  () => {
2831
2831
  const {
@@ -2843,8 +2843,8 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2843
2843
  activatorEvent: se,
2844
2844
  collisions: Ae,
2845
2845
  delta: {
2846
- x: He.x,
2847
- y: He.y
2846
+ x: Be.x,
2847
+ y: Be.y
2848
2848
  },
2849
2849
  over: ce
2850
2850
  };
@@ -2856,7 +2856,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2856
2856
  });
2857
2857
  },
2858
2858
  // eslint-disable-next-line react-hooks/exhaustive-deps
2859
- [He.x, He.y]
2859
+ [Be.x, Be.y]
2860
2860
  ), A(
2861
2861
  () => {
2862
2862
  const {
@@ -2904,16 +2904,16 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2904
2904
  droppableRects: O,
2905
2905
  draggableNodes: _,
2906
2906
  draggingNode: Ye,
2907
- draggingNodeRect: Be,
2907
+ draggingNodeRect: He,
2908
2908
  droppableContainers: F,
2909
2909
  over: Ie,
2910
2910
  scrollableAncestors: Te,
2911
- scrollAdjustedTranslate: He
2911
+ scrollAdjustedTranslate: Be
2912
2912
  }, J.current = {
2913
- initial: Be,
2913
+ initial: He,
2914
2914
  translated: We
2915
2915
  };
2916
- }, [ee, X, et, We, _, Ye, Be, O, F, Ie, Te, He]), fs({
2916
+ }, [ee, X, et, We, _, Ye, He, O, F, Ie, Te, Be]), fs({
2917
2917
  ...Z,
2918
2918
  delta: $,
2919
2919
  draggingRect: We,
@@ -2921,7 +2921,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2921
2921
  scrollableAncestors: Te,
2922
2922
  scrollableAncestorRects: yt
2923
2923
  });
2924
- const qr = M(() => ({
2924
+ const qr = N(() => ({
2925
2925
  active: ee,
2926
2926
  activeNode: X,
2927
2927
  activeNodeRect: I,
@@ -2938,8 +2938,8 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2938
2938
  scrollableAncestorRects: yt,
2939
2939
  measuringConfiguration: C,
2940
2940
  measuringScheduled: ve,
2941
- windowRect: Ht
2942
- }), [ee, X, I, G, et, Qe, De, _, F, O, Ie, k, Te, yt, C, ve, Ht]), Kr = M(() => ({
2941
+ windowRect: Bt
2942
+ }), [ee, X, I, G, et, Qe, De, _, F, O, Ie, k, Te, yt, C, ve, Bt]), Kr = N(() => ({
2943
2943
  activatorEvent: G,
2944
2944
  activators: In,
2945
2945
  active: ee,
@@ -2952,17 +2952,17 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2952
2952
  over: Ie,
2953
2953
  measureDroppableContainers: k
2954
2954
  }), [G, In, ee, I, x, Oe, _, Ie, k]);
2955
- return B.createElement(br.Provider, {
2955
+ return H.createElement(br.Provider, {
2956
2956
  value: S
2957
- }, B.createElement(Yt.Provider, {
2957
+ }, H.createElement(Yt.Provider, {
2958
2958
  value: Kr
2959
- }, B.createElement(Tr.Provider, {
2959
+ }, H.createElement(Tr.Provider, {
2960
2960
  value: qr
2961
- }, B.createElement(Ir.Provider, {
2961
+ }, H.createElement(Ir.Provider, {
2962
2962
  value: Gr
2963
- }, u)), B.createElement(Ns, {
2963
+ }, u)), H.createElement(Ms, {
2964
2964
  disabled: l?.restoreFocus === !1
2965
- })), B.createElement(Mo, {
2965
+ })), H.createElement(No, {
2966
2966
  ...l,
2967
2967
  hiddenTextDescribedById: Oe
2968
2968
  }));
@@ -3010,7 +3010,7 @@ function Vs(e) {
3010
3010
  // eslint-disable-next-line react-hooks/exhaustive-deps
3011
3011
  [f, t]
3012
3012
  );
3013
- const _ = M(() => ({
3013
+ const _ = N(() => ({
3014
3014
  role: d,
3015
3015
  tabIndex: g,
3016
3016
  "aria-disabled": r,
@@ -3035,7 +3035,7 @@ function Vs(e) {
3035
3035
  function Ys() {
3036
3036
  return ze(Tr);
3037
3037
  }
3038
- const Bs = "Droppable", Hs = {
3038
+ const Hs = "Droppable", Bs = {
3039
3039
  timeout: 25
3040
3040
  };
3041
3041
  function Ws(e) {
@@ -3045,19 +3045,19 @@ function Ws(e) {
3045
3045
  id: r,
3046
3046
  resizeObserverConfig: o
3047
3047
  } = e;
3048
- const s = xt(Bs), {
3048
+ const s = xt(Hs), {
3049
3049
  active: i,
3050
3050
  dispatch: l,
3051
3051
  over: c,
3052
3052
  measureDroppableContainers: u
3053
- } = ze(Yt), h = N({
3053
+ } = ze(Yt), h = M({
3054
3054
  disabled: n
3055
- }), f = N(!1), v = N(null), d = N(null), {
3055
+ }), f = M(!1), v = M(null), d = M(null), {
3056
3056
  disabled: b,
3057
3057
  updateMeasurementsFor: g,
3058
3058
  timeout: m
3059
3059
  } = {
3060
- ...Hs,
3060
+ ...Bs,
3061
3061
  ...o
3062
3062
  }, x = dt(g ?? r), w = K(
3063
3063
  () => {
@@ -3113,7 +3113,7 @@ function Ws(e) {
3113
3113
  setNodeRef: R
3114
3114
  };
3115
3115
  }
3116
- function Bt(e, t, n) {
3116
+ function Ht(e, t, n) {
3117
3117
  const r = e.slice();
3118
3118
  return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
3119
3119
  }
@@ -3191,7 +3191,7 @@ const kr = (e) => {
3191
3191
  overIndex: r,
3192
3192
  index: o
3193
3193
  } = e;
3194
- const s = Bt(t, r, n), i = t[o], l = s[o];
3194
+ const s = Ht(t, r, n), i = t[o], l = s[o];
3195
3195
  return !l || !i ? null : {
3196
3196
  x: l.left - i.left,
3197
3197
  y: l.top - i.top,
@@ -3240,9 +3240,9 @@ function Zs(e, t, n) {
3240
3240
  const r = e[t], o = e[t - 1], s = e[t + 1];
3241
3241
  return r ? n < t ? o ? r.top - (o.top + o.height) : s ? s.top - (r.top + r.height) : 0 : s ? s.top - (r.top + r.height) : o ? r.top - (o.top + o.height) : 0 : 0;
3242
3242
  }
3243
- const Mr = "Sortable", Nr = /* @__PURE__ */ B.createContext({
3243
+ const Nr = "Sortable", Mr = /* @__PURE__ */ H.createContext({
3244
3244
  activeIndex: -1,
3245
- containerId: Mr,
3245
+ containerId: Nr,
3246
3246
  disableTransforms: !1,
3247
3247
  items: [],
3248
3248
  overIndex: -1,
@@ -3268,13 +3268,13 @@ function Lr(e) {
3268
3268
  droppableRects: c,
3269
3269
  over: u,
3270
3270
  measureDroppableContainers: h
3271
- } = Ys(), f = xt(Mr, n), v = l.rect !== null, d = M(() => r.map((R) => typeof R == "object" && "id" in R ? R.id : R), [r]), b = i != null, g = i ? d.indexOf(i.id) : -1, m = u ? d.indexOf(u.id) : -1, x = N(d), w = !Gs(d, x.current), S = m !== -1 && g === -1 || w, D = Xs(s);
3271
+ } = Ys(), f = xt(Nr, n), v = l.rect !== null, d = N(() => r.map((R) => typeof R == "object" && "id" in R ? R.id : R), [r]), b = i != null, g = i ? d.indexOf(i.id) : -1, m = u ? d.indexOf(u.id) : -1, x = M(d), w = !Gs(d, x.current), S = m !== -1 && g === -1 || w, D = Xs(s);
3272
3272
  we(() => {
3273
3273
  w && b && h(d);
3274
3274
  }, [w, d, b, h]), A(() => {
3275
3275
  x.current = d;
3276
3276
  }, [d]);
3277
- const j = M(
3277
+ const j = N(
3278
3278
  () => ({
3279
3279
  activeIndex: g,
3280
3280
  containerId: f,
@@ -3289,7 +3289,7 @@ function Lr(e) {
3289
3289
  // eslint-disable-next-line react-hooks/exhaustive-deps
3290
3290
  [g, f, D.draggable, D.droppable, S, d, m, c, v, o]
3291
3291
  );
3292
- return B.createElement(Nr.Provider, {
3292
+ return H.createElement(Mr.Provider, {
3293
3293
  value: j
3294
3294
  }, t);
3295
3295
  }
@@ -3300,7 +3300,7 @@ const Qs = (e) => {
3300
3300
  activeIndex: r,
3301
3301
  overIndex: o
3302
3302
  } = e;
3303
- return Bt(n, r, o).indexOf(t);
3303
+ return Ht(n, r, o).indexOf(t);
3304
3304
  }, ei = (e) => {
3305
3305
  let {
3306
3306
  containerId: t,
@@ -3331,7 +3331,7 @@ function oi(e) {
3331
3331
  node: r,
3332
3332
  rect: o
3333
3333
  } = e;
3334
- const [s, i] = Q(null), l = N(n);
3334
+ const [s, i] = Q(null), l = M(n);
3335
3335
  return we(() => {
3336
3336
  if (!t && n !== l.current && r.current) {
3337
3337
  const c = o.current;
@@ -3374,14 +3374,14 @@ function Pr(e) {
3374
3374
  overIndex: m,
3375
3375
  useDragOverlay: x,
3376
3376
  strategy: w
3377
- } = ze(Nr), S = si(r, d), D = h.indexOf(i), j = M(() => ({
3377
+ } = ze(Mr), S = si(r, d), D = h.indexOf(i), j = N(() => ({
3378
3378
  sortable: {
3379
3379
  containerId: f,
3380
3380
  index: D,
3381
3381
  items: h
3382
3382
  },
3383
3383
  ...o
3384
- }), [f, o, D, h]), R = M(() => h.slice(h.indexOf(i)), [h, i]), {
3384
+ }), [f, o, D, h]), R = N(() => h.slice(h.indexOf(i)), [h, i]), {
3385
3385
  rect: E,
3386
3386
  node: _,
3387
3387
  isOver: $,
@@ -3424,7 +3424,7 @@ function Pr(e) {
3424
3424
  items: h,
3425
3425
  activeIndex: v,
3426
3426
  overIndex: m
3427
- }) : D, re = L?.id, I = N({
3427
+ }) : D, re = L?.id, I = M({
3428
3428
  activeId: re,
3429
3429
  items: h,
3430
3430
  newIndex: Z,
@@ -3638,7 +3638,7 @@ const Ai = [
3638
3638
  ["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
3639
3639
  ["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
3640
3640
  ], ki = ne("grip-vertical", Ai);
3641
- const Mi = [
3641
+ const Ni = [
3642
3642
  [
3643
3643
  "path",
3644
3644
  {
@@ -3646,7 +3646,7 @@ const Mi = [
3646
3646
  key: "1a8usu"
3647
3647
  }
3648
3648
  ]
3649
- ], Ni = ne("pen", Mi);
3649
+ ], Mi = ne("pen", Ni);
3650
3650
  const Li = [
3651
3651
  [
3652
3652
  "path",
@@ -3666,10 +3666,7 @@ function y(e) {
3666
3666
  );
3667
3667
  });
3668
3668
  }
3669
- const Dl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3670
- __proto__: null,
3671
- withChildren: y
3672
- }, Symbol.toStringTag, { value: "Module" })), Fr = (e) => `table_column_order_v1:${e}`, Pi = (e) => {
3669
+ const Fr = (e) => `table_column_order_v1:${e}`, Pi = (e) => {
3673
3670
  const { tableId: t } = fe.state;
3674
3671
  localStorage.setItem(Fr(t), JSON.stringify(e.map((n) => n.id))), fe.setState((n) => ({
3675
3672
  ...n,
@@ -3728,12 +3725,12 @@ function Yi(e) {
3728
3725
  tableId: e
3729
3726
  }));
3730
3727
  }
3731
- const Bi = y(Se.Trigger), Hi = y(Se.Positioner), Wi = y(Se.Content), Ui = y(Se.Item), Gi = y(pe.Label), Xi = y(pe.HiddenInput), qi = y(pe.Control);
3728
+ const Hi = y(Se.Trigger), Bi = y(Se.Positioner), Wi = y(Se.Content), Ui = y(Se.Item), Gi = y(pe.Label), Xi = y(pe.HiddenInput), qi = y(pe.Control);
3732
3729
  function Ki({ visibility: e, onToggle: t }) {
3733
3730
  const { sortableColumns: n } = vt(fe);
3734
3731
  return /* @__PURE__ */ a.jsxs(Se.Root, { closeOnSelect: !1, children: [
3735
- /* @__PURE__ */ a.jsx(Bi, { asChild: !0, children: /* @__PURE__ */ a.jsx(_e, { "aria-label": "Toggle columns", variant: "outline", size: "sm", ml: "1", children: /* @__PURE__ */ a.jsx(Di, { size: 18 }) }) }),
3736
- /* @__PURE__ */ a.jsx(gt, { children: /* @__PURE__ */ a.jsx(Hi, { children: /* @__PURE__ */ a.jsx(Wi, { minW: "220px", children: n.map((r) => {
3732
+ /* @__PURE__ */ a.jsx(Hi, { asChild: !0, children: /* @__PURE__ */ a.jsx(_e, { "aria-label": "Toggle columns", variant: "outline", size: "sm", ml: "1", children: /* @__PURE__ */ a.jsx(Di, { size: 18 }) }) }),
3733
+ /* @__PURE__ */ a.jsx(gt, { children: /* @__PURE__ */ a.jsx(Bi, { children: /* @__PURE__ */ a.jsx(Wi, { minW: "220px", children: n.map((r) => {
3737
3734
  const o = !!e[r.id];
3738
3735
  return /* @__PURE__ */ a.jsx(Ui, { value: r.id, closeOnSelect: !1, children: /* @__PURE__ */ a.jsxs(pe.Root, { checked: o, onCheckedChange: () => t(r.id), children: [
3739
3736
  /* @__PURE__ */ a.jsx(Xi, {}),
@@ -3777,7 +3774,7 @@ function Zi() {
3777
3774
  const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o } = vt(fe), s = e.map((l) => o.find((c) => c.id === l.id)).filter((l) => l !== void 0).filter((l) => t[l.id]), i = (l) => {
3778
3775
  const { active: c, over: u } = l;
3779
3776
  if (!u || c.id === u.id) return;
3780
- const h = e.findIndex((d) => d.id === c.id), f = e.findIndex((d) => d.id === u.id), v = Bt(e, h, f);
3777
+ const h = e.findIndex((d) => d.id === c.id), f = e.findIndex((d) => d.id === u.id), v = Ht(e, h, f);
3781
3778
  Pi(v);
3782
3779
  };
3783
3780
  return /* @__PURE__ */ a.jsx(ye.Header, { background: "gray.100", position: "sticky", top: 0, p: "0", children: /* @__PURE__ */ a.jsx(Ar, { collisionDetection: mr, onDragEnd: i, children: /* @__PURE__ */ a.jsx(
@@ -3917,7 +3914,7 @@ function pa({
3917
3914
  ] }) })
3918
3915
  ] }, o.id)) });
3919
3916
  }
3920
- function va({
3917
+ function Cl({
3921
3918
  tableId: e,
3922
3919
  data: t = [],
3923
3920
  headers: n = [],
@@ -3937,7 +3934,7 @@ function va({
3937
3934
  }, [e]), A(() => {
3938
3935
  Vi(t, n);
3939
3936
  }, [t, n]);
3940
- const { sortColumn: d, sortDirection: b, data: g } = vt(fe), m = M(() => {
3937
+ const { sortColumn: d, sortDirection: b, data: g } = vt(fe), m = N(() => {
3941
3938
  const x = [...g];
3942
3939
  if (d && x.sort(
3943
3940
  (w, S) => b === "asc" ? String(w[d]).localeCompare(String(S[d])) : String(S[d]).localeCompare(String(w[d]))
@@ -3966,10 +3963,7 @@ function va({
3966
3963
  ) })
3967
3964
  ] });
3968
3965
  }
3969
- const El = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3970
- __proto__: null,
3971
- DataTable: va
3972
- }, Symbol.toStringTag, { value: "Module" })), ba = y(pe.Root), ma = y(pe.HiddenInput), xa = y(pe.Control), ya = y(pe.Label), wa = ({
3966
+ const va = y(pe.Root), ba = y(pe.HiddenInput), ma = y(pe.Control), xa = y(pe.Label), ya = ({
3973
3967
  value: e,
3974
3968
  onChange: t,
3975
3969
  size: n = "sm",
@@ -3978,10 +3972,10 @@ const El = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3978
3972
  isDisabled: s,
3979
3973
  required: i,
3980
3974
  errorText: l
3981
- }) => /* @__PURE__ */ a.jsxs(ba, { value: e, onChange: t, size: n, children: [
3982
- /* @__PURE__ */ a.jsx(ma, {}),
3975
+ }) => /* @__PURE__ */ a.jsxs(va, { value: e, onChange: t, size: n, children: [
3976
+ /* @__PURE__ */ a.jsx(ba, {}),
3983
3977
  /* @__PURE__ */ a.jsx(
3984
- xa,
3978
+ ma,
3985
3979
  {
3986
3980
  disabled: s,
3987
3981
  required: i,
@@ -3989,7 +3983,7 @@ const El = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3989
3983
  helperText: o
3990
3984
  }
3991
3985
  ),
3992
- r && /* @__PURE__ */ a.jsx(ya, { children: r })
3986
+ r && /* @__PURE__ */ a.jsx(xa, { children: r })
3993
3987
  ] }), V = " to ", ir = 10, Le = {
3994
3988
  DAY_MAX: 31,
3995
3989
  MONTH_MAX: 12,
@@ -4005,10 +3999,10 @@ const El = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4005
3999
  }, ar = () => {
4006
4000
  const { year: e, month: t, day: n } = Sn();
4007
4001
  return `${String(n).padStart(2, "0")}-${String(t).padStart(2, "0")}-${e}`;
4008
- }, Sa = () => {
4002
+ }, wa = () => {
4009
4003
  const { year: e, month: t, day: n } = Sn();
4010
4004
  return `${e}-${String(t).padStart(2, "0")}-${String(n).padStart(2, "0")}`;
4011
- }, Ca = (e, t) => {
4005
+ }, Sa = (e, t) => {
4012
4006
  const n = e.length, r = parseInt(e);
4013
4007
  if (!e || isNaN(r)) return t;
4014
4008
  if (n === 4)
@@ -4024,12 +4018,12 @@ const El = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4024
4018
  if (n.length === 0) return null;
4025
4019
  const { year: r, month: o, day: s } = Sn();
4026
4020
  let i, l, c;
4027
- return n.length === 1 ? (i = parseInt(n[0]) || s, l = o, c = r) : n.length === 2 ? (i = parseInt(n[0]) || s, l = parseInt(n[1]) || o, c = r) : (i = parseInt(n[0]) || s, l = parseInt(n[1]) || o, c = Ca(n[2], r)), l = Math.max(1, Math.min(Le.MONTH_MAX, l)), i = Math.max(1, Math.min(Le.DAY_MAX, i)), `${c}-${String(l).padStart(2, "0")}-${String(i).padStart(2, "0")}`;
4021
+ return n.length === 1 ? (i = parseInt(n[0]) || s, l = o, c = r) : n.length === 2 ? (i = parseInt(n[0]) || s, l = parseInt(n[1]) || o, c = r) : (i = parseInt(n[0]) || s, l = parseInt(n[1]) || o, c = Sa(n[2], r)), l = Math.max(1, Math.min(Le.MONTH_MAX, l)), i = Math.max(1, Math.min(Le.DAY_MAX, i)), `${c}-${String(l).padStart(2, "0")}-${String(i).padStart(2, "0")}`;
4028
4022
  }, he = (e) => {
4029
4023
  if (!e) return "";
4030
4024
  const [t, n, r] = e.split("-");
4031
4025
  return `${r}-${n}-${t}`;
4032
- }, Ra = (e, t) => {
4026
+ }, Ca = (e, t) => {
4033
4027
  if (e[0]?.length > 0) {
4034
4028
  const n = parseInt(e[0]);
4035
4029
  if (isNaN(n) || n === 0 || e[0].length === 2 && n > Le.DAY_MAX)
@@ -4053,14 +4047,14 @@ const El = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4053
4047
  o.length >= 2 && (t = `${o[0]}-${o[1].substring(0, 2)}-${o[1].substring(2)}${o[2] || ""}`);
4054
4048
  }
4055
4049
  const n = t.split("-");
4056
- return n[0] = n[0]?.substring(0, 2) || "", n[1] = n[1]?.substring(0, 2) || "", n[2] = n[2]?.substring(0, 4) || "", t = n.filter((o) => o !== "").join("-"), t = t.substring(0, ir), Ra(n, e) || t;
4057
- }, Da = y(Pt.Root), Ea = y(Pt.Trigger), ja = y(Pt.Content), _a = y(Pt.Positioner);
4058
- function Oa({
4050
+ return n[0] = n[0]?.substring(0, 2) || "", n[1] = n[1]?.substring(0, 2) || "", n[2] = n[2]?.substring(0, 4) || "", t = n.filter((o) => o !== "").join("-"), t = t.substring(0, ir), Ca(n, e) || t;
4051
+ }, Ra = y(Pt.Root), Da = y(Pt.Trigger), Ea = y(Pt.Content), ja = y(Pt.Positioner);
4052
+ function _a({
4059
4053
  value: e,
4060
4054
  onChange: t,
4061
4055
  disabled: n = !1
4062
4056
  }) {
4063
- const [r = "", o = ""] = e ? e.split("|") : [], [s, i] = Q(() => r && o ? `${he(r)}${V}${he(o)}` : r ? he(r) : ""), [l, c] = Q(!1), u = N(null);
4057
+ const [r = "", o = ""] = e ? e.split("|") : [], [s, i] = Q(() => r && o ? `${he(r)}${V}${he(o)}` : r ? he(r) : ""), [l, c] = Q(!1), u = M(null);
4064
4058
  A(() => {
4065
4059
  const b = (g) => {
4066
4060
  g.ctrlKey && g.key === "d" && !g.shiftKey && !g.metaKey && (g.preventDefault(), u.current?.focus());
@@ -4096,7 +4090,7 @@ function Oa({
4096
4090
  } else if (x && !m)
4097
4091
  i(`${he(x)}${V}`), t(void 0);
4098
4092
  else if (x && m) {
4099
- const S = Sa(), [D, j] = S < x ? [S, x] : [x, S], R = `${he(D)}${V}${he(
4093
+ const S = wa(), [D, j] = S < x ? [S, x] : [x, S], R = `${he(D)}${V}${he(
4100
4094
  j
4101
4095
  )}`;
4102
4096
  i(R), t(`${D}|${j}`);
@@ -4137,14 +4131,14 @@ function Oa({
4137
4131
  };
4138
4132
  return /* @__PURE__ */ a.jsx(ur, { children: /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs(An, { position: "revert", children: [
4139
4133
  /* @__PURE__ */ a.jsxs(
4140
- Da,
4134
+ Ra,
4141
4135
  {
4142
4136
  open: l,
4143
4137
  onEscapeKeyDown: () => {
4144
4138
  c(!1);
4145
4139
  },
4146
4140
  children: [
4147
- /* @__PURE__ */ a.jsx(Ea, { asChild: !0, children: /* @__PURE__ */ a.jsx(
4141
+ /* @__PURE__ */ a.jsx(Da, { asChild: !0, children: /* @__PURE__ */ a.jsx(
4148
4142
  _e,
4149
4143
  {
4150
4144
  size: "sm",
@@ -4154,7 +4148,7 @@ function Oa({
4154
4148
  children: /* @__PURE__ */ a.jsx(or, { size: 16 })
4155
4149
  }
4156
4150
  ) }),
4157
- /* @__PURE__ */ a.jsx(gt, { children: /* @__PURE__ */ a.jsx(_a, { children: /* @__PURE__ */ a.jsxs(ja, { p: 4, children: [
4151
+ /* @__PURE__ */ a.jsx(gt, { children: /* @__PURE__ */ a.jsx(ja, { children: /* @__PURE__ */ a.jsxs(Ea, { p: 4, children: [
4158
4152
  /* @__PURE__ */ a.jsx(no, {}),
4159
4153
  /* @__PURE__ */ a.jsxs(je, { align: "start", gap: 4, children: [
4160
4154
  /* @__PURE__ */ a.jsxs(de, { children: [
@@ -4216,7 +4210,7 @@ function Oa({
4216
4210
  ) })
4217
4211
  ] }) }) });
4218
4212
  }
4219
- const Ta = y(Fe.Root), Ia = y(Fe.Label), Aa = y(Fe.HelperText), ka = y(Fe.ErrorText), lr = ({
4213
+ const Oa = y(Fe.Root), Ta = y(Fe.Label), Ia = y(Fe.HelperText), Aa = y(Fe.ErrorText), lr = ({
4220
4214
  icon: e,
4221
4215
  value: t,
4222
4216
  onChange: n,
@@ -4229,8 +4223,8 @@ const Ta = y(Fe.Root), Ia = y(Fe.Label), Aa = y(Fe.HelperText), ka = y(Fe.ErrorT
4229
4223
  isDisabled: u = !1,
4230
4224
  required: h = !1,
4231
4225
  errorText: f
4232
- }) => /* @__PURE__ */ a.jsxs(Ta, { children: [
4233
- l && /* @__PURE__ */ a.jsx(Ia, { children: l }),
4226
+ }) => /* @__PURE__ */ a.jsxs(Oa, { children: [
4227
+ l && /* @__PURE__ */ a.jsx(Ta, { children: l }),
4234
4228
  /* @__PURE__ */ a.jsx(ur, { startElement: e, children: /* @__PURE__ */ a.jsx(
4235
4229
  dr,
4236
4230
  {
@@ -4244,9 +4238,9 @@ const Ta = y(Fe.Root), Ia = y(Fe.Label), Aa = y(Fe.HelperText), ka = y(Fe.ErrorT
4244
4238
  required: h
4245
4239
  }
4246
4240
  ) }),
4247
- /* @__PURE__ */ a.jsx(Aa, { children: c }),
4248
- f && /* @__PURE__ */ a.jsx(ka, { children: f })
4249
- ] }), Ma = y(Fe.Root), Na = y(Fe.HelperText), La = y(Fe.ErrorText), $a = y(z.Root), Pa = y(z.Label), za = y(z.Control), Fa = y(z.Trigger), Va = y(z.ValueText), Ya = y(z.IndicatorGroup), Ba = y(z.Indicator), Ha = y(z.Content), Wa = y(z.Item), Ua = y(z.ItemIndicator), Ga = y(z.HiddenSelect), Xa = y(z.Positioner), qa = ({
4241
+ /* @__PURE__ */ a.jsx(Ia, { children: c }),
4242
+ f && /* @__PURE__ */ a.jsx(Aa, { children: f })
4243
+ ] }), ka = y(Fe.Root), Na = y(Fe.HelperText), Ma = y(Fe.ErrorText), La = y(z.Root), $a = y(z.Label), Pa = y(z.Control), za = y(z.Trigger), Fa = y(z.ValueText), Va = y(z.IndicatorGroup), Ya = y(z.Indicator), Ha = y(z.Content), Ba = y(z.Item), Wa = y(z.ItemIndicator), Ua = y(z.HiddenSelect), Ga = y(z.Positioner), Xa = ({
4250
4244
  options: e = [],
4251
4245
  label: t,
4252
4246
  value: n,
@@ -4263,9 +4257,9 @@ const Ta = y(Fe.Root), Ia = y(Fe.Label), Aa = y(Fe.HelperText), ka = y(Fe.ErrorT
4263
4257
  const v = cr({
4264
4258
  items: e
4265
4259
  });
4266
- return /* @__PURE__ */ a.jsxs(Ma, { disabled: u, required: h, children: [
4260
+ return /* @__PURE__ */ a.jsxs(ka, { disabled: u, required: h, children: [
4267
4261
  /* @__PURE__ */ a.jsxs(
4268
- $a,
4262
+ La,
4269
4263
  {
4270
4264
  collection: v,
4271
4265
  variant: l,
@@ -4274,24 +4268,24 @@ const Ta = y(Fe.Root), Ia = y(Fe.Label), Aa = y(Fe.HelperText), ka = y(Fe.ErrorT
4274
4268
  value: n ? [n] : [],
4275
4269
  onValueChange: (d) => r?.(d.value[0]),
4276
4270
  children: [
4277
- /* @__PURE__ */ a.jsx(Ga, {}),
4278
- t && /* @__PURE__ */ a.jsx(Pa, { children: t }),
4279
- /* @__PURE__ */ a.jsxs(za, { children: [
4280
- /* @__PURE__ */ a.jsx(Fa, { children: /* @__PURE__ */ a.jsx(Va, { placeholder: o }) }),
4281
- /* @__PURE__ */ a.jsx(Ya, { children: /* @__PURE__ */ a.jsx(Ba, {}) })
4271
+ /* @__PURE__ */ a.jsx(Ua, {}),
4272
+ t && /* @__PURE__ */ a.jsx($a, { children: t }),
4273
+ /* @__PURE__ */ a.jsxs(Pa, { children: [
4274
+ /* @__PURE__ */ a.jsx(za, { children: /* @__PURE__ */ a.jsx(Fa, { placeholder: o }) }),
4275
+ /* @__PURE__ */ a.jsx(Va, { children: /* @__PURE__ */ a.jsx(Ya, {}) })
4282
4276
  ] }),
4283
- /* @__PURE__ */ a.jsx(Xa, { children: /* @__PURE__ */ a.jsx(Ha, { children: v.items.map((d) => /* @__PURE__ */ a.jsxs(Wa, { item: d, children: [
4277
+ /* @__PURE__ */ a.jsx(Ga, { children: /* @__PURE__ */ a.jsx(Ha, { children: v.items.map((d) => /* @__PURE__ */ a.jsxs(Ba, { item: d, children: [
4284
4278
  d.label,
4285
- /* @__PURE__ */ a.jsx(Ua, {})
4279
+ /* @__PURE__ */ a.jsx(Wa, {})
4286
4280
  ] }, d.value)) }) })
4287
4281
  ]
4288
4282
  }
4289
4283
  ),
4290
4284
  c && /* @__PURE__ */ a.jsx(Na, { children: c }),
4291
- f && /* @__PURE__ */ a.jsx(La, { children: f })
4285
+ f && /* @__PURE__ */ a.jsx(Ma, { children: f })
4292
4286
  ] });
4293
4287
  }, Vr = (e) => `FILTER_PRESETS_${e ?? "default"}`;
4294
- function Ka(e) {
4288
+ function qa(e) {
4295
4289
  try {
4296
4290
  return JSON.parse(localStorage.getItem(Vr(e)) || "[]");
4297
4291
  } catch {
@@ -4301,7 +4295,7 @@ function Ka(e) {
4301
4295
  const $t = new gr({}), Cn = (e) => {
4302
4296
  const t = $t.state[e];
4303
4297
  if (t) return t;
4304
- const n = Ka(e);
4298
+ const n = qa(e);
4305
4299
  return $t.setState((r) => ({
4306
4300
  ...r,
4307
4301
  [e]: n
@@ -4311,13 +4305,13 @@ const $t = new gr({}), Cn = (e) => {
4311
4305
  ...n,
4312
4306
  [e]: t
4313
4307
  })), localStorage.setItem(Vr(e), JSON.stringify(t));
4314
- }, Ja = (e, t) => {
4308
+ }, Ka = (e, t) => {
4315
4309
  const n = Cn(e).filter((r) => r.id !== t);
4316
4310
  Yr(e, n);
4317
- }, Za = (e, t) => {
4311
+ }, Ja = (e, t) => {
4318
4312
  const n = [t, ...Cn(e)];
4319
4313
  Yr(e, n);
4320
- }, Qa = y(pe.Root), el = y(pe.HiddenInput), tl = y(pe.Control), nl = y(pt.Root), rl = y(pt.Track), ol = y(pt.Range), sl = y(pt.Thumbs), il = y(pt.Control), al = ({ filter: e, onVisibilityChange: t, onSizeChange: n }) => {
4314
+ }, Za = y(pe.Root), Qa = y(pe.HiddenInput), el = y(pe.Control), tl = y(pt.Root), nl = y(pt.Track), rl = y(pt.Range), ol = y(pt.Thumbs), sl = y(pt.Control), il = ({ filter: e, onVisibilityChange: t, onSizeChange: n }) => {
4321
4315
  const { attributes: r, listeners: o, setNodeRef: s, transform: i, transition: l } = Pr({
4322
4316
  id: e.id
4323
4317
  }), c = {
@@ -4343,14 +4337,14 @@ const $t = new gr({}), Cn = (e) => {
4343
4337
  /* @__PURE__ */ a.jsxs(de, { justify: "space-between", children: [
4344
4338
  /* @__PURE__ */ a.jsx(U, { fontSize: "sm", children: "Visible" }),
4345
4339
  /* @__PURE__ */ a.jsxs(
4346
- Qa,
4340
+ Za,
4347
4341
  {
4348
4342
  checked: e.visible,
4349
4343
  onCheckedChange: (u) => t && t(e.id, !!u),
4350
4344
  size: "sm",
4351
4345
  children: [
4352
- /* @__PURE__ */ a.jsx(el, {}),
4353
- /* @__PURE__ */ a.jsx(tl, {})
4346
+ /* @__PURE__ */ a.jsx(Qa, {}),
4347
+ /* @__PURE__ */ a.jsx(el, {})
4354
4348
  ]
4355
4349
  }
4356
4350
  )
@@ -4358,7 +4352,7 @@ const $t = new gr({}), Cn = (e) => {
4358
4352
  /* @__PURE__ */ a.jsxs(je, { align: "stretch", gap: 1, children: [
4359
4353
  /* @__PURE__ */ a.jsx(U, { fontSize: "sm", children: "Size" }),
4360
4354
  /* @__PURE__ */ a.jsx(
4361
- nl,
4355
+ tl,
4362
4356
  {
4363
4357
  width: "200px",
4364
4358
  min: 1,
@@ -4366,9 +4360,9 @@ const $t = new gr({}), Cn = (e) => {
4366
4360
  step: 0.5,
4367
4361
  value: [e.size ?? 1],
4368
4362
  onChange: (u) => n && n(e.id, u[0]),
4369
- children: /* @__PURE__ */ a.jsxs(il, { children: [
4370
- /* @__PURE__ */ a.jsx(rl, { children: /* @__PURE__ */ a.jsx(ol, {}) }),
4371
- /* @__PURE__ */ a.jsx(sl, {})
4363
+ children: /* @__PURE__ */ a.jsxs(sl, { children: [
4364
+ /* @__PURE__ */ a.jsx(nl, { children: /* @__PURE__ */ a.jsx(rl, {}) }),
4365
+ /* @__PURE__ */ a.jsx(ol, {})
4372
4366
  ] })
4373
4367
  }
4374
4368
  )
@@ -4376,7 +4370,7 @@ const $t = new gr({}), Cn = (e) => {
4376
4370
  ]
4377
4371
  }
4378
4372
  );
4379
- }, ll = y(Ce.Root), cl = y(Ce.Trigger), ul = y(Ce.Backdrop), dl = y(Ce.Positioner), fl = y(Ce.Content), hl = y(Ce.Header), gl = y(Ce.Title), pl = y(Ce.Body), vl = y(Ce.Footer), bl = y(Ce.CloseTrigger), ml = y(zt.Root), xl = y(zt.List), rn = y(zt.Trigger), on = y(zt.Content), Br = (e) => {
4373
+ }, al = y(Ce.Root), ll = y(Ce.Trigger), cl = y(Ce.Backdrop), ul = y(Ce.Positioner), dl = y(Ce.Content), fl = y(Ce.Header), hl = y(Ce.Title), gl = y(Ce.Body), pl = y(Ce.Footer), vl = y(Ce.CloseTrigger), bl = y(zt.Root), ml = y(zt.List), rn = y(zt.Trigger), on = y(zt.Content), Hr = (e) => {
4380
4374
  if (console.log(e), e.customComponent)
4381
4375
  return e.customComponent;
4382
4376
  switch (e.type) {
@@ -4394,7 +4388,7 @@ const $t = new gr({}), Cn = (e) => {
4394
4388
  return /* @__PURE__ */ a.jsx(lr, { label: e.label, value: e.value, onChange: e.onChange });
4395
4389
  case "checkbox":
4396
4390
  return /* @__PURE__ */ a.jsx(
4397
- wa,
4391
+ ya,
4398
4392
  {
4399
4393
  label: e.label,
4400
4394
  value: e.value,
@@ -4403,7 +4397,7 @@ const $t = new gr({}), Cn = (e) => {
4403
4397
  );
4404
4398
  case "select":
4405
4399
  return /* @__PURE__ */ a.jsx(
4406
- qa,
4400
+ Xa,
4407
4401
  {
4408
4402
  label: e.label,
4409
4403
  value: e.value,
@@ -4413,7 +4407,7 @@ const $t = new gr({}), Cn = (e) => {
4413
4407
  );
4414
4408
  case "date":
4415
4409
  return /* @__PURE__ */ a.jsx(
4416
- Oa,
4410
+ _a,
4417
4411
  {
4418
4412
  value: e.value,
4419
4413
  onChange: e.onChange
@@ -4422,7 +4416,7 @@ const $t = new gr({}), Cn = (e) => {
4422
4416
  default:
4423
4417
  return null;
4424
4418
  }
4425
- }, yl = ({
4419
+ }, xl = ({
4426
4420
  filterDrawerSize: e = "sm",
4427
4421
  onVisibilityChange: t,
4428
4422
  onSizeChange: n,
@@ -4436,26 +4430,26 @@ const $t = new gr({}), Cn = (e) => {
4436
4430
  }) => {
4437
4431
  const f = vt($t)[s] ?? Cn(s), v = () => {
4438
4432
  const d = prompt("Preset name?");
4439
- d && Za(s, {
4433
+ d && Ja(s, {
4440
4434
  id: crypto.randomUUID(),
4441
4435
  name: d,
4442
4436
  date: (/* @__PURE__ */ new Date()).toISOString(),
4443
4437
  filters: i
4444
4438
  });
4445
4439
  };
4446
- return /* @__PURE__ */ a.jsx(de, { wrap: "wrap", children: /* @__PURE__ */ a.jsxs(ll, { size: e, children: [
4447
- /* @__PURE__ */ a.jsx(cl, { asChild: !0, children: /* @__PURE__ */ a.jsxs(_e, { "aria-label": "Open filters", variant: "outline", size: "xs", ml: 2, p: 2, children: [
4440
+ return /* @__PURE__ */ a.jsx(de, { wrap: "wrap", children: /* @__PURE__ */ a.jsxs(al, { size: e, children: [
4441
+ /* @__PURE__ */ a.jsx(ll, { asChild: !0, children: /* @__PURE__ */ a.jsxs(_e, { "aria-label": "Open filters", variant: "outline", size: "xs", ml: 2, p: 2, children: [
4448
4442
  /* @__PURE__ */ a.jsx(Ii, { size: 16 }),
4449
4443
  "Filters"
4450
4444
  ] }) }),
4451
4445
  /* @__PURE__ */ a.jsxs(gt, { children: [
4452
- /* @__PURE__ */ a.jsx(ul, {}),
4453
- /* @__PURE__ */ a.jsx(dl, { children: /* @__PURE__ */ a.jsxs(fl, { children: [
4454
- /* @__PURE__ */ a.jsx(hl, { children: /* @__PURE__ */ a.jsx(gl, { children: "Filters" }) }),
4455
- /* @__PURE__ */ a.jsx(pl, { overflowY: "auto", pt: 1, children: /* @__PURE__ */ a.jsxs(ml, { defaultValue: "view", children: [
4456
- /* @__PURE__ */ a.jsxs(xl, { mb: 4, children: [
4446
+ /* @__PURE__ */ a.jsx(cl, {}),
4447
+ /* @__PURE__ */ a.jsx(ul, { children: /* @__PURE__ */ a.jsxs(dl, { children: [
4448
+ /* @__PURE__ */ a.jsx(fl, { children: /* @__PURE__ */ a.jsx(hl, { children: "Filters" }) }),
4449
+ /* @__PURE__ */ a.jsx(gl, { overflowY: "auto", pt: 1, children: /* @__PURE__ */ a.jsxs(bl, { defaultValue: "view", children: [
4450
+ /* @__PURE__ */ a.jsxs(ml, { mb: 4, children: [
4457
4451
  /* @__PURE__ */ a.jsxs(rn, { value: "view", children: [
4458
- /* @__PURE__ */ a.jsx(Ni, { size: 16 }),
4452
+ /* @__PURE__ */ a.jsx(Mi, { size: 16 }),
4459
4453
  "Edit"
4460
4454
  ] }),
4461
4455
  /* @__PURE__ */ a.jsxs(rn, { value: "settings", children: [
@@ -4478,18 +4472,18 @@ const $t = new gr({}), Cn = (e) => {
4478
4472
  rounded: "md",
4479
4473
  p: 3,
4480
4474
  mb: 3,
4481
- children: Br(d)
4475
+ children: Hr(d)
4482
4476
  },
4483
4477
  d.id
4484
4478
  )) }),
4485
4479
  /* @__PURE__ */ a.jsx(on, { value: "settings", children: /* @__PURE__ */ a.jsx(
4486
4480
  Ar,
4487
4481
  {
4488
- sensors: Lo(No(wn)),
4482
+ sensors: Lo(Mo(wn)),
4489
4483
  collisionDetection: mr,
4490
4484
  onDragEnd: ({ active: d, over: b }) => {
4491
4485
  if (!b || d.id === b.id) return;
4492
- const g = o.findIndex((w) => w.id === d.id), m = o.findIndex((w) => w.id === b.id), x = Bt(o, g, m);
4486
+ const g = o.findIndex((w) => w.id === d.id), m = o.findIndex((w) => w.id === b.id), x = Ht(o, g, m);
4493
4487
  u?.(x);
4494
4488
  },
4495
4489
  children: /* @__PURE__ */ a.jsx(
@@ -4498,7 +4492,7 @@ const $t = new gr({}), Cn = (e) => {
4498
4492
  items: o.map((d) => d.id),
4499
4493
  strategy: Js,
4500
4494
  children: o.map((d) => /* @__PURE__ */ a.jsx(
4501
- al,
4495
+ il,
4502
4496
  {
4503
4497
  filter: d,
4504
4498
  onVisibilityChange: t,
@@ -4542,7 +4536,7 @@ const $t = new gr({}), Cn = (e) => {
4542
4536
  size: "xs",
4543
4537
  "aria-label": "Delete preset",
4544
4538
  variant: "ghost",
4545
- onClick: () => Ja(s, d.id),
4539
+ onClick: () => Ka(s, d.id),
4546
4540
  children: /* @__PURE__ */ a.jsx(ji, { size: 14 })
4547
4541
  }
4548
4542
  )
@@ -4553,7 +4547,7 @@ const $t = new gr({}), Cn = (e) => {
4553
4547
  ))
4554
4548
  ] }) })
4555
4549
  ] }) }),
4556
- /* @__PURE__ */ a.jsxs(vl, { justify: "space-between", children: [
4550
+ /* @__PURE__ */ a.jsxs(pl, { justify: "space-between", children: [
4557
4551
  /* @__PURE__ */ a.jsx(
4558
4552
  Gt,
4559
4553
  {
@@ -4564,12 +4558,12 @@ const $t = new gr({}), Cn = (e) => {
4564
4558
  children: "Clear All"
4565
4559
  }
4566
4560
  ),
4567
- /* @__PURE__ */ a.jsx(bl, { asChild: !0, children: /* @__PURE__ */ a.jsx(ro, {}) })
4561
+ /* @__PURE__ */ a.jsx(vl, { asChild: !0, children: /* @__PURE__ */ a.jsx(ro, {}) })
4568
4562
  ] })
4569
4563
  ] }) })
4570
4564
  ] })
4571
4565
  ] }) });
4572
- }, wl = ({
4566
+ }, Rl = ({
4573
4567
  title: e,
4574
4568
  filters: t,
4575
4569
  onVisibilityChange: n,
@@ -4585,9 +4579,9 @@ const $t = new gr({}), Cn = (e) => {
4585
4579
  }) => /* @__PURE__ */ a.jsxs(de, { wrap: "wrap", pl: 2, pr: 2, width: "100%", justify: "space-between", children: [
4586
4580
  e,
4587
4581
  /* @__PURE__ */ a.jsxs(de, { gap: 2, children: [
4588
- t.filter((v) => v.visible !== !1).map((v) => /* @__PURE__ */ a.jsx(de, { flex: v.size ?? 1, minW: `${(v.size ?? 1) * 100}px`, children: Br(v) }, v.id)),
4582
+ t.filter((v) => v.visible !== !1).map((v) => /* @__PURE__ */ a.jsx(de, { flex: v.size ?? 1, minW: `${(v.size ?? 1) * 100}px`, children: Hr(v) }, v.id)),
4589
4583
  /* @__PURE__ */ a.jsx(
4590
- yl,
4584
+ xl,
4591
4585
  {
4592
4586
  filterDrawerSize: f,
4593
4587
  onVisibilityChange: n,
@@ -4603,15 +4597,30 @@ const $t = new gr({}), Cn = (e) => {
4603
4597
  }
4604
4598
  )
4605
4599
  ] })
4606
- ] }), jl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4607
- __proto__: null,
4608
- FilterToolBar: wl
4609
- }, Symbol.toStringTag, { value: "Module" })), _l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4600
+ ] }), Dl = (e, t) => {
4601
+ localStorage.setItem(`FILTER_ORDER_${e}`, JSON.stringify(t));
4602
+ }, El = (e) => {
4603
+ try {
4604
+ return JSON.parse(localStorage.getItem(`FILTER_ORDER_${e}`) || "[]");
4605
+ } catch {
4606
+ return [];
4607
+ }
4608
+ }, jl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4610
4609
  __proto__: null
4611
4610
  }, Symbol.toStringTag, { value: "Module" }));
4612
4611
  export {
4613
- Dl as ChakraSlot,
4614
- El as DataTable,
4615
- jl as Filters,
4616
- _l as MdsSharedUi
4612
+ Cl as DataTable,
4613
+ Rl as Filters,
4614
+ jl as MdsSharedUi,
4615
+ Ja as addPreset,
4616
+ Ka as deletePreset,
4617
+ Cn as getPresets,
4618
+ El as loadOrder,
4619
+ $t as presetStore,
4620
+ Dl as saveOrder,
4621
+ Yr as savePresets,
4622
+ Vi as setData,
4623
+ Yi as setTableId,
4624
+ fe as tableStore,
4625
+ y as withChildren
4617
4626
  };