@mdspl/mds-shared-ui 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.cjs +3 -3
  2. package/dist/index.js +1071 -1052
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,40 +1,40 @@
1
- import ne, { useLayoutEffect as go, useEffect as H, useRef as U, useMemo as B, useCallback as le, useState as oe, createContext as vt, memo as po, useReducer as vo, useContext as He, forwardRef as wn, createElement as hn } from "react";
2
- import { Menu as Oe, Checkbox as De, IconButton as _e, Portal as Qe, Table as Ee, HStack as fe, createListCollection as Dr, Select as K, Pagination as Nt, Box as je, Text as q, ButtonGroup as mo, Popover as Wt, InputGroup as Cr, InputElement as Fn, PopoverArrow as bo, VStack as Ie, Kbd as Vn, Input as Sn, Field as We, Slider as mt, Drawer as Me, Tabs as Bt, Button as Ke, CloseButton as Rr, Dialog as Ae, Stack as gn } from "@chakra-ui/react";
3
- import { unstable_batchedUpdates as Ct, createPortal as xo } from "react-dom";
1
+ import ne, { useLayoutEffect as po, useEffect as H, useRef as U, useMemo as B, useCallback as le, useState as oe, createContext as vt, memo as vo, useReducer as mo, useContext as He, forwardRef as wn, createElement as hn } from "react";
2
+ import { Menu as Oe, Checkbox as De, IconButton as _e, Portal as Qe, Table as Ee, HStack as fe, createListCollection as Dr, Select as K, Pagination as Nt, Box as je, Text as q, ButtonGroup as bo, Popover as Wt, InputGroup as Cr, InputElement as Fn, PopoverArrow as xo, VStack as ke, Kbd as Vn, Input as Sn, Field as We, Slider as mt, Drawer as Me, Tabs as Bt, Button as Ke, CloseButton as Rr, Dialog as Ae, Stack as gn } from "@chakra-ui/react";
3
+ import { unstable_batchedUpdates as Ct, createPortal as yo } from "react-dom";
4
4
  function Ut(e) {
5
5
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
6
6
  }
7
7
  var Rt = { exports: {} }, at = {};
8
8
  var Hn;
9
- function yo() {
9
+ function wo() {
10
10
  if (Hn) return at;
11
11
  Hn = 1;
12
12
  var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
13
- function n(r, o, s) {
13
+ function n(r, o, i) {
14
14
  var a = null;
15
- if (s !== void 0 && (a = "" + s), o.key !== void 0 && (a = "" + o.key), "key" in o) {
16
- s = {};
15
+ if (i !== void 0 && (a = "" + i), o.key !== void 0 && (a = "" + o.key), "key" in o) {
16
+ i = {};
17
17
  for (var c in o)
18
- c !== "key" && (s[c] = o[c]);
19
- } else s = o;
20
- return o = s.ref, {
18
+ c !== "key" && (i[c] = o[c]);
19
+ } else i = o;
20
+ return o = i.ref, {
21
21
  $$typeof: e,
22
22
  type: r,
23
23
  key: a,
24
24
  ref: o !== void 0 ? o : null,
25
- props: s
25
+ props: i
26
26
  };
27
27
  }
28
28
  return at.Fragment = t, at.jsx = n, at.jsxs = n, at;
29
29
  }
30
30
  var ct = {};
31
31
  var Wn;
32
- function wo() {
32
+ function So() {
33
33
  return Wn || (Wn = 1, process.env.NODE_ENV !== "production" && (function() {
34
34
  function e(g) {
35
35
  if (g == null) return null;
36
36
  if (typeof g == "function")
37
- return g.$$typeof === k ? null : g.displayName || g.name || null;
37
+ return g.$$typeof === I ? null : g.displayName || g.name || null;
38
38
  if (typeof g == "string") return g;
39
39
  switch (g) {
40
40
  case b:
@@ -109,11 +109,11 @@ function wo() {
109
109
  var g = Q.A;
110
110
  return g === null ? null : g.getOwner();
111
111
  }
112
- function s() {
112
+ function i() {
113
113
  return Error("react-stack-top-frame");
114
114
  }
115
115
  function a(g) {
116
- if (se.call(g, "key")) {
116
+ if (ie.call(g, "key")) {
117
117
  var S = Object.getOwnPropertyDescriptor(g, "key").get;
118
118
  if (S && S.isReactWarning) return !1;
119
119
  }
@@ -183,7 +183,7 @@ function wo() {
183
183
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
184
184
  );
185
185
  else d(F);
186
- if (se.call(S, "key")) {
186
+ if (ie.call(S, "key")) {
187
187
  F = e(g);
188
188
  var J = Object.keys(S).filter(function(z) {
189
189
  return z !== "key";
@@ -224,7 +224,7 @@ React keys must be passed directly to JSX without using spread:
224
224
  function m(g) {
225
225
  return typeof g == "object" && g !== null && g.$$typeof === v;
226
226
  }
227
- var p = ne, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), h = /* @__PURE__ */ Symbol.for("react.portal"), b = /* @__PURE__ */ Symbol.for("react.fragment"), w = /* @__PURE__ */ Symbol.for("react.strict_mode"), R = /* @__PURE__ */ Symbol.for("react.profiler"), E = /* @__PURE__ */ Symbol.for("react.consumer"), _ = /* @__PURE__ */ Symbol.for("react.context"), O = /* @__PURE__ */ Symbol.for("react.forward_ref"), T = /* @__PURE__ */ Symbol.for("react.suspense"), $ = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), W = /* @__PURE__ */ Symbol.for("react.lazy"), Y = /* @__PURE__ */ Symbol.for("react.activity"), k = /* @__PURE__ */ Symbol.for("react.client.reference"), Q = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, se = Object.prototype.hasOwnProperty, M = Array.isArray, D = console.createTask ? console.createTask : function() {
227
+ var p = ne, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), h = /* @__PURE__ */ Symbol.for("react.portal"), b = /* @__PURE__ */ Symbol.for("react.fragment"), w = /* @__PURE__ */ Symbol.for("react.strict_mode"), R = /* @__PURE__ */ Symbol.for("react.profiler"), E = /* @__PURE__ */ Symbol.for("react.consumer"), _ = /* @__PURE__ */ Symbol.for("react.context"), O = /* @__PURE__ */ Symbol.for("react.forward_ref"), T = /* @__PURE__ */ Symbol.for("react.suspense"), $ = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), W = /* @__PURE__ */ Symbol.for("react.lazy"), Y = /* @__PURE__ */ Symbol.for("react.activity"), I = /* @__PURE__ */ Symbol.for("react.client.reference"), Q = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ie = Object.prototype.hasOwnProperty, M = Array.isArray, D = console.createTask ? console.createTask : function() {
228
228
  return null;
229
229
  };
230
230
  p = {
@@ -234,8 +234,8 @@ React keys must be passed directly to JSX without using spread:
234
234
  };
235
235
  var y, j = {}, C = p.react_stack_bottom_frame.bind(
236
236
  p,
237
- s
238
- )(), I = D(r(s)), L = {};
237
+ i
238
+ )(), k = D(r(i)), L = {};
239
239
  ct.Fragment = b, ct.jsx = function(g, S, A) {
240
240
  var P = 1e4 > Q.recentlyCreatedOwnerStacks++;
241
241
  return f(
@@ -244,7 +244,7 @@ React keys must be passed directly to JSX without using spread:
244
244
  A,
245
245
  !1,
246
246
  P ? Error("react-stack-top-frame") : C,
247
- P ? D(r(g)) : I
247
+ P ? D(r(g)) : k
248
248
  );
249
249
  }, ct.jsxs = function(g, S, A) {
250
250
  var P = 1e4 > Q.recentlyCreatedOwnerStacks++;
@@ -254,28 +254,28 @@ React keys must be passed directly to JSX without using spread:
254
254
  A,
255
255
  !0,
256
256
  P ? Error("react-stack-top-frame") : C,
257
- P ? D(r(g)) : I
257
+ P ? D(r(g)) : k
258
258
  );
259
259
  };
260
260
  })()), ct;
261
261
  }
262
262
  var Bn;
263
- function So() {
264
- return Bn || (Bn = 1, process.env.NODE_ENV === "production" ? Rt.exports = yo() : Rt.exports = wo()), Rt.exports;
263
+ function Do() {
264
+ return Bn || (Bn = 1, process.env.NODE_ENV === "production" ? Rt.exports = wo() : Rt.exports = So()), Rt.exports;
265
265
  }
266
- var i = So(), jt = { exports: {} }, tn = {}, Et = { exports: {} }, nn = {};
266
+ var s = Do(), jt = { exports: {} }, tn = {}, Et = { exports: {} }, nn = {};
267
267
  var Un;
268
- function Do() {
268
+ function Co() {
269
269
  if (Un) return nn;
270
270
  Un = 1;
271
271
  var e = ne;
272
272
  function t(d, m) {
273
273
  return d === m && (d !== 0 || 1 / d === 1 / m) || d !== d && m !== m;
274
274
  }
275
- var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, s = e.useLayoutEffect, a = e.useDebugValue;
275
+ var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, i = e.useLayoutEffect, a = e.useDebugValue;
276
276
  function c(d, m) {
277
277
  var p = m(), v = r({ inst: { value: p, getSnapshot: m } }), h = v[0].inst, b = v[1];
278
- return s(
278
+ return i(
279
279
  function() {
280
280
  h.value = p, h.getSnapshot = m, l(h) && b({ inst: h });
281
281
  },
@@ -307,7 +307,7 @@ function Do() {
307
307
  }
308
308
  var rn = {};
309
309
  var Gn;
310
- function Co() {
310
+ function Ro() {
311
311
  return Gn || (Gn = 1, process.env.NODE_ENV !== "production" && (function() {
312
312
  function e(p, v) {
313
313
  return p === v && (p !== 0 || 1 / p === 1 / v) || p !== p && v !== v;
@@ -319,7 +319,7 @@ function Co() {
319
319
  var h = v();
320
320
  if (!d) {
321
321
  var b = v();
322
- s(h, b) || (console.error(
322
+ i(h, b) || (console.error(
323
323
  "The result of getSnapshot should be cached to avoid an infinite loop"
324
324
  ), d = !0);
325
325
  }
@@ -346,7 +346,7 @@ function Co() {
346
346
  p = p.value;
347
347
  try {
348
348
  var h = v();
349
- return !s(p, h);
349
+ return !i(p, h);
350
350
  } catch {
351
351
  return !0;
352
352
  }
@@ -355,25 +355,25 @@ function Co() {
355
355
  return v();
356
356
  }
357
357
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
358
- var o = ne, s = typeof Object.is == "function" ? Object.is : e, a = o.useState, c = o.useEffect, l = o.useLayoutEffect, u = o.useDebugValue, f = !1, d = !1, m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
358
+ var o = ne, i = typeof Object.is == "function" ? Object.is : e, a = o.useState, c = o.useEffect, l = o.useLayoutEffect, u = o.useDebugValue, f = !1, d = !1, m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
359
359
  rn.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : m, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
360
360
  })()), rn;
361
361
  }
362
362
  var Xn;
363
363
  function jr() {
364
- return Xn || (Xn = 1, process.env.NODE_ENV === "production" ? Et.exports = Do() : Et.exports = Co()), Et.exports;
364
+ return Xn || (Xn = 1, process.env.NODE_ENV === "production" ? Et.exports = Co() : Et.exports = Ro()), Et.exports;
365
365
  }
366
366
  var qn;
367
- function Ro() {
367
+ function jo() {
368
368
  if (qn) return tn;
369
369
  qn = 1;
370
370
  var e = ne, t = jr();
371
371
  function n(u, f) {
372
372
  return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
373
373
  }
374
- var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, s = e.useRef, a = e.useEffect, c = e.useMemo, l = e.useDebugValue;
374
+ var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, i = e.useRef, a = e.useEffect, c = e.useMemo, l = e.useDebugValue;
375
375
  return tn.useSyncExternalStoreWithSelector = function(u, f, d, m, p) {
376
- var v = s(null);
376
+ var v = i(null);
377
377
  if (v.current === null) {
378
378
  var h = { hasValue: !1, value: null };
379
379
  v.current = h;
@@ -416,15 +416,15 @@ function Ro() {
416
416
  }
417
417
  var on = {};
418
418
  var Kn;
419
- function jo() {
419
+ function Eo() {
420
420
  return Kn || (Kn = 1, process.env.NODE_ENV !== "production" && (function() {
421
421
  function e(u, f) {
422
422
  return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
423
423
  }
424
424
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
425
- var t = ne, n = jr(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, s = t.useRef, a = t.useEffect, c = t.useMemo, l = t.useDebugValue;
425
+ var t = ne, n = jr(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, i = t.useRef, a = t.useEffect, c = t.useMemo, l = t.useDebugValue;
426
426
  on.useSyncExternalStoreWithSelector = function(u, f, d, m, p) {
427
- var v = s(null);
427
+ var v = i(null);
428
428
  if (v.current === null) {
429
429
  var h = { hasValue: !1, value: null };
430
430
  v.current = h;
@@ -468,11 +468,11 @@ function jo() {
468
468
  })()), on;
469
469
  }
470
470
  var Jn;
471
- function Eo() {
472
- return Jn || (Jn = 1, process.env.NODE_ENV === "production" ? jt.exports = Ro() : jt.exports = jo()), jt.exports;
471
+ function _o() {
472
+ return Jn || (Jn = 1, process.env.NODE_ENV === "production" ? jt.exports = jo() : jt.exports = Eo()), jt.exports;
473
473
  }
474
- var _o = Eo();
475
- const pn = /* @__PURE__ */ new WeakMap(), To = /* @__PURE__ */ new WeakMap(), zt = {
474
+ var To = _o();
475
+ const pn = /* @__PURE__ */ new WeakMap(), Oo = /* @__PURE__ */ new WeakMap(), zt = {
476
476
  current: []
477
477
  };
478
478
  let sn = !1;
@@ -482,7 +482,7 @@ function Er(e) {
482
482
  if (zt.current.includes(t))
483
483
  continue;
484
484
  zt.current.push(t), t.recompute();
485
- const n = To.get(t);
485
+ const n = Oo.get(t);
486
486
  if (n)
487
487
  for (const r of n) {
488
488
  const o = pn.get(r);
@@ -490,7 +490,7 @@ function Er(e) {
490
490
  }
491
491
  }
492
492
  }
493
- function Oo(e) {
493
+ function Mo(e) {
494
494
  const t = {
495
495
  prevVal: e.prevState,
496
496
  currentVal: e.state
@@ -498,7 +498,7 @@ function Oo(e) {
498
498
  for (const n of e.listeners)
499
499
  n(t);
500
500
  }
501
- function Mo(e) {
501
+ function $o(e) {
502
502
  const t = {
503
503
  prevVal: e.prevState,
504
504
  currentVal: e.state
@@ -506,7 +506,7 @@ function Mo(e) {
506
506
  for (const n of e.listeners)
507
507
  n(t);
508
508
  }
509
- function $o(e) {
509
+ function Io(e) {
510
510
  if (_t.add(e), !sn)
511
511
  try {
512
512
  for (sn = !0; _t.size > 0; ) {
@@ -514,7 +514,7 @@ function $o(e) {
514
514
  _t.clear();
515
515
  for (const n of t) {
516
516
  const r = Zn.get(n) ?? n.prevState;
517
- n.prevState = r, Oo(n);
517
+ n.prevState = r, Mo(n);
518
518
  }
519
519
  for (const n of t) {
520
520
  const r = pn.get(n);
@@ -524,7 +524,7 @@ function $o(e) {
524
524
  const r = pn.get(n);
525
525
  if (r)
526
526
  for (const o of r)
527
- Mo(o);
527
+ $o(o);
528
528
  }
529
529
  }
530
530
  } finally {
@@ -537,9 +537,9 @@ function ko(e) {
537
537
  class _r {
538
538
  constructor(t, n) {
539
539
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = (r) => {
540
- var o, s;
540
+ var o, i;
541
541
  this.listeners.add(r);
542
- const a = (s = (o = this.options) == null ? void 0 : o.onSubscribe) == null ? void 0 : s.call(o, r, this);
542
+ const a = (i = (o = this.options) == null ? void 0 : o.onSubscribe) == null ? void 0 : i.call(o, r, this);
543
543
  return () => {
544
544
  this.listeners.delete(r), a?.();
545
545
  };
@@ -547,12 +547,12 @@ class _r {
547
547
  }
548
548
  setState(t) {
549
549
  var n, r, o;
550
- this.prevState = this.state, (n = this.options) != null && n.updateFn ? this.state = this.options.updateFn(this.prevState)(t) : ko(t) ? this.state = t(this.prevState) : this.state = t, (o = (r = this.options) == null ? void 0 : r.onUpdate) == null || o.call(r), $o(this);
550
+ this.prevState = this.state, (n = this.options) != null && n.updateFn ? this.state = this.options.updateFn(this.prevState)(t) : ko(t) ? this.state = t(this.prevState) : this.state = t, (o = (r = this.options) == null ? void 0 : r.onUpdate) == null || o.call(r), Io(this);
551
551
  }
552
552
  }
553
553
  function bt(e, t = (r) => r, n = {}) {
554
- const r = n.equal ?? Io;
555
- return _o.useSyncExternalStoreWithSelector(
554
+ const r = n.equal ?? Ao;
555
+ return To.useSyncExternalStoreWithSelector(
556
556
  e.subscribe,
557
557
  () => e.state,
558
558
  () => e.state,
@@ -560,7 +560,7 @@ function bt(e, t = (r) => r, n = {}) {
560
560
  r
561
561
  );
562
562
  }
563
- function Io(e, t) {
563
+ function Ao(e, t) {
564
564
  if (Object.is(e, t))
565
565
  return !0;
566
566
  if (typeof e != "object" || e === null || typeof t != "object" || t === null)
@@ -592,7 +592,97 @@ function Qn(e) {
592
592
  Object.getOwnPropertySymbols(e)
593
593
  );
594
594
  }
595
- function Ao() {
595
+ const he = new _r({
596
+ tableId: "",
597
+ sortColumn: null,
598
+ sortDirection: "asc",
599
+ visibility: {},
600
+ columnOrder: [],
601
+ data: [],
602
+ sortableColumns: [],
603
+ // ← FIXED
604
+ actionsConfig: {
605
+ showActionColumn: !0,
606
+ showColumnVisibilityMenu: !0,
607
+ children: "Actions",
608
+ width: "100px"
609
+ }
610
+ });
611
+ function Lo(e, t) {
612
+ const n = e[0] ?? {}, o = (t && t.length ? t : Object.keys(n).map((f) => ({ id: f, label: f }))).filter(
613
+ (f) => Object.prototype.hasOwnProperty.call(n, f.id)
614
+ ), { tableId: i, visibility: a } = he.state, c = JSON.parse(
615
+ localStorage.getItem(Tr(i)) || "[]"
616
+ ), l = [
617
+ ...c.map((f) => o.find((d) => d.id === f)).filter(Boolean),
618
+ ...o.filter((f) => !c.includes(f.id))
619
+ ], u = l.reduce((f, d) => (f[d.id] = a[d.id] ?? !0, f), {});
620
+ he.setState((f) => ({
621
+ ...f,
622
+ data: e,
623
+ columnOrder: l,
624
+ visibility: u,
625
+ sortableColumns: l.map((d) => ({
626
+ id: d.id,
627
+ label: d.label,
628
+ sortable: !0,
629
+ backgroundColor: d.backgroundColor
630
+ }))
631
+ }));
632
+ }
633
+ function No(e) {
634
+ he.setState((t) => ({
635
+ ...t,
636
+ tableId: e
637
+ }));
638
+ }
639
+ const zo = (e) => {
640
+ he.setState((t) => ({
641
+ ...t,
642
+ actionsConfig: e
643
+ }));
644
+ }, Tr = (e) => `table_column_order_v1:${e}`, Or = (e) => `table_column_visibility_v1:${e}`, Po = (e) => {
645
+ const { tableId: t } = he.state;
646
+ localStorage.setItem(Tr(t), JSON.stringify(e.map((n) => n.id))), he.setState((n) => ({
647
+ ...n,
648
+ columnOrder: e
649
+ })), he.setState((n) => ({ ...n, columnOrder: e }));
650
+ };
651
+ function Yo(e) {
652
+ he.setState((t) => t.sortColumn === e ? {
653
+ ...t,
654
+ sortDirection: t.sortDirection === "asc" ? "desc" : "asc"
655
+ } : {
656
+ ...t,
657
+ sortColumn: e,
658
+ sortDirection: "asc"
659
+ });
660
+ }
661
+ const Fo = (e) => {
662
+ he.setState((t) => {
663
+ const n = {
664
+ ...t.visibility,
665
+ [e]: !t.visibility[e]
666
+ };
667
+ return t.tableId && localStorage.setItem(Or(t.tableId), JSON.stringify(n)), {
668
+ ...t,
669
+ visibility: n
670
+ };
671
+ });
672
+ }, Vo = (e) => {
673
+ if (!e) return;
674
+ const t = localStorage.getItem(Or(e));
675
+ if (t)
676
+ try {
677
+ const n = JSON.parse(t);
678
+ he.setState((r) => ({
679
+ ...r,
680
+ visibility: n
681
+ }));
682
+ } catch {
683
+ }
684
+ };
685
+ function Ho() {
596
686
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
597
687
  t[n] = arguments[n];
598
688
  return B(
@@ -612,26 +702,26 @@ function et(e) {
612
702
  function Dn(e) {
613
703
  return "nodeType" in e;
614
704
  }
615
- function he(e) {
705
+ function ge(e) {
616
706
  var t, n;
617
707
  return e ? et(e) ? e : Dn(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
618
708
  }
619
709
  function Cn(e) {
620
710
  const {
621
711
  Document: t
622
- } = he(e);
712
+ } = ge(e);
623
713
  return e instanceof t;
624
714
  }
625
715
  function xt(e) {
626
- return et(e) ? !1 : e instanceof he(e).HTMLElement;
716
+ return et(e) ? !1 : e instanceof ge(e).HTMLElement;
627
717
  }
628
- function Tr(e) {
629
- return e instanceof he(e).SVGElement;
718
+ function Mr(e) {
719
+ return e instanceof ge(e).SVGElement;
630
720
  }
631
721
  function tt(e) {
632
- return e ? et(e) ? e.document : Dn(e) ? Cn(e) ? e : xt(e) || Tr(e) ? e.ownerDocument : document : document : document;
722
+ return e ? et(e) ? e.document : Dn(e) ? Cn(e) ? e : xt(e) || Mr(e) ? e.ownerDocument : document : document : document;
633
723
  }
634
- const Te = Gt ? go : H;
724
+ const Te = Gt ? po : H;
635
725
  function Rn(e) {
636
726
  const t = U(e);
637
727
  return Te(() => {
@@ -642,7 +732,7 @@ function Rn(e) {
642
732
  return t.current == null ? void 0 : t.current(...r);
643
733
  }, []);
644
734
  }
645
- function Lo() {
735
+ function Wo() {
646
736
  const e = U(null), t = le((r, o) => {
647
737
  e.current = setInterval(r, o);
648
738
  }, []), n = le(() => {
@@ -693,24 +783,24 @@ function wt(e, t) {
693
783
  return an[e] = n, e + "-" + n;
694
784
  }, [e, t]);
695
785
  }
696
- function Or(e) {
786
+ function $r(e) {
697
787
  return function(t) {
698
788
  for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
699
789
  r[o - 1] = arguments[o];
700
- return r.reduce((s, a) => {
790
+ return r.reduce((i, a) => {
701
791
  const c = Object.entries(a);
702
792
  for (const [l, u] of c) {
703
- const f = s[l];
704
- f != null && (s[l] = f + e * u);
793
+ const f = i[l];
794
+ f != null && (i[l] = f + e * u);
705
795
  }
706
- return s;
796
+ return i;
707
797
  }, {
708
798
  ...t
709
799
  });
710
800
  };
711
801
  }
712
- const Je = /* @__PURE__ */ Or(1), Yt = /* @__PURE__ */ Or(-1);
713
- function No(e) {
802
+ const Je = /* @__PURE__ */ $r(1), Yt = /* @__PURE__ */ $r(-1);
803
+ function Bo(e) {
714
804
  return "clientX" in e && "clientY" in e;
715
805
  }
716
806
  function jn(e) {
@@ -718,19 +808,19 @@ function jn(e) {
718
808
  return !1;
719
809
  const {
720
810
  KeyboardEvent: t
721
- } = he(e.target);
811
+ } = ge(e.target);
722
812
  return t && e instanceof t;
723
813
  }
724
- function zo(e) {
814
+ function Uo(e) {
725
815
  if (!e)
726
816
  return !1;
727
817
  const {
728
818
  TouchEvent: t
729
- } = he(e.target);
819
+ } = ge(e.target);
730
820
  return t && e instanceof t;
731
821
  }
732
822
  function mn(e) {
733
- if (zo(e)) {
823
+ if (Uo(e)) {
734
824
  if (e.touches && e.touches.length) {
735
825
  const {
736
826
  clientX: t,
@@ -751,7 +841,7 @@ function mn(e) {
751
841
  };
752
842
  }
753
843
  }
754
- return No(e) ? {
844
+ return Bo(e) ? {
755
845
  x: e.clientX,
756
846
  y: e.clientY
757
847
  } : null;
@@ -796,23 +886,23 @@ const Ze = /* @__PURE__ */ Object.freeze({
796
886
  }
797
887
  }
798
888
  }), er = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
799
- function Po(e) {
889
+ function Go(e) {
800
890
  return e.matches(er) ? e : e.querySelector(er);
801
891
  }
802
- const Yo = {
892
+ const Xo = {
803
893
  display: "none"
804
894
  };
805
- function Fo(e) {
895
+ function qo(e) {
806
896
  let {
807
897
  id: t,
808
898
  value: n
809
899
  } = e;
810
900
  return ne.createElement("div", {
811
901
  id: t,
812
- style: Yo
902
+ style: Xo
813
903
  }, n);
814
904
  }
815
- function Vo(e) {
905
+ function Ko(e) {
816
906
  let {
817
907
  id: t,
818
908
  announcement: n,
@@ -840,7 +930,7 @@ function Vo(e) {
840
930
  "aria-atomic": !0
841
931
  }, n);
842
932
  }
843
- function Ho() {
933
+ function Jo() {
844
934
  const [e, t] = oe("");
845
935
  return {
846
936
  announce: le((r) => {
@@ -849,35 +939,35 @@ function Ho() {
849
939
  announcement: e
850
940
  };
851
941
  }
852
- const Mr = /* @__PURE__ */ vt(null);
853
- function Wo(e) {
854
- const t = He(Mr);
942
+ const Ir = /* @__PURE__ */ vt(null);
943
+ function Zo(e) {
944
+ const t = He(Ir);
855
945
  H(() => {
856
946
  if (!t)
857
947
  throw new Error("useDndMonitor must be used within a children of <DndContext>");
858
948
  return t(e);
859
949
  }, [e, t]);
860
950
  }
861
- function Bo() {
951
+ function Qo() {
862
952
  const [e] = oe(() => /* @__PURE__ */ new Set()), t = le((r) => (e.add(r), () => e.delete(r)), [e]);
863
953
  return [le((r) => {
864
954
  let {
865
955
  type: o,
866
- event: s
956
+ event: i
867
957
  } = r;
868
958
  e.forEach((a) => {
869
959
  var c;
870
- return (c = a[o]) == null ? void 0 : c.call(a, s);
960
+ return (c = a[o]) == null ? void 0 : c.call(a, i);
871
961
  });
872
962
  }, [e]), t];
873
963
  }
874
- const Uo = {
964
+ const ei = {
875
965
  draggable: `
876
966
  To pick up a draggable item, press the space bar.
877
967
  While dragging, use the arrow keys to move the item.
878
968
  Press space again to drop the item in its new position, or press escape to cancel.
879
969
  `
880
- }, Go = {
970
+ }, ti = {
881
971
  onDragStart(e) {
882
972
  let {
883
973
  active: t
@@ -905,25 +995,25 @@ const Uo = {
905
995
  return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
906
996
  }
907
997
  };
908
- function Xo(e) {
998
+ function ni(e) {
909
999
  let {
910
- announcements: t = Go,
1000
+ announcements: t = ti,
911
1001
  container: n,
912
1002
  hiddenTextDescribedById: r,
913
- screenReaderInstructions: o = Uo
1003
+ screenReaderInstructions: o = ei
914
1004
  } = e;
915
1005
  const {
916
- announce: s,
1006
+ announce: i,
917
1007
  announcement: a
918
- } = Ho(), c = wt("DndLiveRegion"), [l, u] = oe(!1);
1008
+ } = Jo(), c = wt("DndLiveRegion"), [l, u] = oe(!1);
919
1009
  if (H(() => {
920
1010
  u(!0);
921
- }, []), Wo(B(() => ({
1011
+ }, []), Zo(B(() => ({
922
1012
  onDragStart(d) {
923
1013
  let {
924
1014
  active: m
925
1015
  } = d;
926
- s(t.onDragStart({
1016
+ i(t.onDragStart({
927
1017
  active: m
928
1018
  }));
929
1019
  },
@@ -932,7 +1022,7 @@ function Xo(e) {
932
1022
  active: m,
933
1023
  over: p
934
1024
  } = d;
935
- t.onDragMove && s(t.onDragMove({
1025
+ t.onDragMove && i(t.onDragMove({
936
1026
  active: m,
937
1027
  over: p
938
1028
  }));
@@ -942,7 +1032,7 @@ function Xo(e) {
942
1032
  active: m,
943
1033
  over: p
944
1034
  } = d;
945
- s(t.onDragOver({
1035
+ i(t.onDragOver({
946
1036
  active: m,
947
1037
  over: p
948
1038
  }));
@@ -952,7 +1042,7 @@ function Xo(e) {
952
1042
  active: m,
953
1043
  over: p
954
1044
  } = d;
955
- s(t.onDragEnd({
1045
+ i(t.onDragEnd({
956
1046
  active: m,
957
1047
  over: p
958
1048
  }));
@@ -962,21 +1052,21 @@ function Xo(e) {
962
1052
  active: m,
963
1053
  over: p
964
1054
  } = d;
965
- s(t.onDragCancel({
1055
+ i(t.onDragCancel({
966
1056
  active: m,
967
1057
  over: p
968
1058
  }));
969
1059
  }
970
- }), [s, t])), !l)
1060
+ }), [i, t])), !l)
971
1061
  return null;
972
- const f = ne.createElement(ne.Fragment, null, ne.createElement(Fo, {
1062
+ const f = ne.createElement(ne.Fragment, null, ne.createElement(qo, {
973
1063
  id: r,
974
1064
  value: o.draggable
975
- }), ne.createElement(Vo, {
1065
+ }), ne.createElement(Ko, {
976
1066
  id: c,
977
1067
  announcement: a
978
1068
  }));
979
- return n ? xo(f, n) : f;
1069
+ return n ? yo(f, n) : f;
980
1070
  }
981
1071
  var te;
982
1072
  (function(e) {
@@ -984,7 +1074,7 @@ var te;
984
1074
  })(te || (te = {}));
985
1075
  function Ft() {
986
1076
  }
987
- function qo(e, t) {
1077
+ function ri(e, t) {
988
1078
  return B(
989
1079
  () => ({
990
1080
  sensor: e,
@@ -994,7 +1084,7 @@ function qo(e, t) {
994
1084
  [e, t]
995
1085
  );
996
1086
  }
997
- function Ko() {
1087
+ function oi() {
998
1088
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
999
1089
  t[n] = arguments[n];
1000
1090
  return B(
@@ -1007,10 +1097,10 @@ const Se = /* @__PURE__ */ Object.freeze({
1007
1097
  x: 0,
1008
1098
  y: 0
1009
1099
  });
1010
- function Jo(e, t) {
1100
+ function ii(e, t) {
1011
1101
  return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
1012
1102
  }
1013
- function Zo(e, t) {
1103
+ function si(e, t) {
1014
1104
  let {
1015
1105
  data: {
1016
1106
  value: n
@@ -1022,7 +1112,7 @@ function Zo(e, t) {
1022
1112
  } = t;
1023
1113
  return n - r;
1024
1114
  }
1025
- function Qo(e, t) {
1115
+ function ai(e, t) {
1026
1116
  let {
1027
1117
  data: {
1028
1118
  value: n
@@ -1034,7 +1124,7 @@ function Qo(e, t) {
1034
1124
  } = t;
1035
1125
  return r - n;
1036
1126
  }
1037
- function es(e, t) {
1127
+ function ci(e, t) {
1038
1128
  if (!e || e.length === 0)
1039
1129
  return null;
1040
1130
  const [n] = e;
@@ -1046,20 +1136,20 @@ function tr(e, t, n) {
1046
1136
  y: n + e.height * 0.5
1047
1137
  };
1048
1138
  }
1049
- const $r = (e) => {
1139
+ const kr = (e) => {
1050
1140
  let {
1051
1141
  collisionRect: t,
1052
1142
  droppableRects: n,
1053
1143
  droppableContainers: r
1054
1144
  } = e;
1055
- const o = tr(t, t.left, t.top), s = [];
1145
+ const o = tr(t, t.left, t.top), i = [];
1056
1146
  for (const a of r) {
1057
1147
  const {
1058
1148
  id: c
1059
1149
  } = a, l = n.get(c);
1060
1150
  if (l) {
1061
- const u = Jo(tr(l), o);
1062
- s.push({
1151
+ const u = ii(tr(l), o);
1152
+ i.push({
1063
1153
  id: c,
1064
1154
  data: {
1065
1155
  droppableContainer: a,
@@ -1068,57 +1158,57 @@ const $r = (e) => {
1068
1158
  });
1069
1159
  }
1070
1160
  }
1071
- return s.sort(Zo);
1161
+ return i.sort(si);
1072
1162
  };
1073
- function ts(e, t) {
1074
- const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), o = Math.min(t.left + t.width, e.left + e.width), s = Math.min(t.top + t.height, e.top + e.height), a = o - r, c = s - n;
1075
- if (r < o && n < s) {
1163
+ function li(e, t) {
1164
+ const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), o = Math.min(t.left + t.width, e.left + e.width), i = Math.min(t.top + t.height, e.top + e.height), a = o - r, c = i - n;
1165
+ if (r < o && n < i) {
1076
1166
  const l = t.width * t.height, u = e.width * e.height, f = a * c, d = f / (l + u - f);
1077
1167
  return Number(d.toFixed(4));
1078
1168
  }
1079
1169
  return 0;
1080
1170
  }
1081
- const ns = (e) => {
1171
+ const ui = (e) => {
1082
1172
  let {
1083
1173
  collisionRect: t,
1084
1174
  droppableRects: n,
1085
1175
  droppableContainers: r
1086
1176
  } = e;
1087
1177
  const o = [];
1088
- for (const s of r) {
1178
+ for (const i of r) {
1089
1179
  const {
1090
1180
  id: a
1091
- } = s, c = n.get(a);
1181
+ } = i, c = n.get(a);
1092
1182
  if (c) {
1093
- const l = ts(c, t);
1183
+ const l = li(c, t);
1094
1184
  l > 0 && o.push({
1095
1185
  id: a,
1096
1186
  data: {
1097
- droppableContainer: s,
1187
+ droppableContainer: i,
1098
1188
  value: l
1099
1189
  }
1100
1190
  });
1101
1191
  }
1102
1192
  }
1103
- return o.sort(Qo);
1193
+ return o.sort(ai);
1104
1194
  };
1105
- function rs(e, t, n) {
1195
+ function di(e, t, n) {
1106
1196
  return {
1107
1197
  ...e,
1108
1198
  scaleX: t && n ? t.width / n.width : 1,
1109
1199
  scaleY: t && n ? t.height / n.height : 1
1110
1200
  };
1111
1201
  }
1112
- function kr(e, t) {
1202
+ function Ar(e, t) {
1113
1203
  return e && t ? {
1114
1204
  x: e.left - t.left,
1115
1205
  y: e.top - t.top
1116
1206
  } : Se;
1117
1207
  }
1118
- function os(e) {
1208
+ function fi(e) {
1119
1209
  return function(n) {
1120
- for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
1121
- o[s - 1] = arguments[s];
1210
+ for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
1211
+ o[i - 1] = arguments[i];
1122
1212
  return o.reduce((a, c) => ({
1123
1213
  ...a,
1124
1214
  top: a.top + e * c.y,
@@ -1130,8 +1220,8 @@ function os(e) {
1130
1220
  });
1131
1221
  };
1132
1222
  }
1133
- const ss = /* @__PURE__ */ os(1);
1134
- function is(e) {
1223
+ const hi = /* @__PURE__ */ fi(1);
1224
+ function gi(e) {
1135
1225
  if (e.startsWith("matrix3d(")) {
1136
1226
  const t = e.slice(9, -1).split(/, /);
1137
1227
  return {
@@ -1151,16 +1241,16 @@ function is(e) {
1151
1241
  }
1152
1242
  return null;
1153
1243
  }
1154
- function as(e, t, n) {
1155
- const r = is(t);
1244
+ function pi(e, t, n) {
1245
+ const r = gi(t);
1156
1246
  if (!r)
1157
1247
  return e;
1158
1248
  const {
1159
1249
  scaleX: o,
1160
- scaleY: s,
1250
+ scaleY: i,
1161
1251
  x: a,
1162
1252
  y: c
1163
- } = r, l = e.left - a - (1 - o) * parseFloat(n), u = e.top - c - (1 - s) * parseFloat(n.slice(n.indexOf(" ") + 1)), f = o ? e.width / o : e.width, d = s ? e.height / s : e.height;
1253
+ } = r, l = e.left - a - (1 - o) * parseFloat(n), u = e.top - c - (1 - i) * parseFloat(n.slice(n.indexOf(" ") + 1)), f = o ? e.width / o : e.width, d = i ? e.height / i : e.height;
1164
1254
  return {
1165
1255
  width: f,
1166
1256
  height: d,
@@ -1170,23 +1260,23 @@ function as(e, t, n) {
1170
1260
  left: l
1171
1261
  };
1172
1262
  }
1173
- const cs = {
1263
+ const vi = {
1174
1264
  ignoreTransform: !1
1175
1265
  };
1176
1266
  function nt(e, t) {
1177
- t === void 0 && (t = cs);
1267
+ t === void 0 && (t = vi);
1178
1268
  let n = e.getBoundingClientRect();
1179
1269
  if (t.ignoreTransform) {
1180
1270
  const {
1181
1271
  transform: u,
1182
1272
  transformOrigin: f
1183
- } = he(e).getComputedStyle(e);
1184
- u && (n = as(n, u, f));
1273
+ } = ge(e).getComputedStyle(e);
1274
+ u && (n = pi(n, u, f));
1185
1275
  }
1186
1276
  const {
1187
1277
  top: r,
1188
1278
  left: o,
1189
- width: s,
1279
+ width: i,
1190
1280
  height: a,
1191
1281
  bottom: c,
1192
1282
  right: l
@@ -1194,7 +1284,7 @@ function nt(e, t) {
1194
1284
  return {
1195
1285
  top: r,
1196
1286
  left: o,
1197
- width: s,
1287
+ width: i,
1198
1288
  height: a,
1199
1289
  bottom: c,
1200
1290
  right: l
@@ -1205,7 +1295,7 @@ function nr(e) {
1205
1295
  ignoreTransform: !0
1206
1296
  });
1207
1297
  }
1208
- function ls(e) {
1298
+ function mi(e) {
1209
1299
  const t = e.innerWidth, n = e.innerHeight;
1210
1300
  return {
1211
1301
  top: 0,
@@ -1216,15 +1306,15 @@ function ls(e) {
1216
1306
  height: n
1217
1307
  };
1218
1308
  }
1219
- function us(e, t) {
1220
- return t === void 0 && (t = he(e).getComputedStyle(e)), t.position === "fixed";
1309
+ function bi(e, t) {
1310
+ return t === void 0 && (t = ge(e).getComputedStyle(e)), t.position === "fixed";
1221
1311
  }
1222
- function ds(e, t) {
1223
- t === void 0 && (t = he(e).getComputedStyle(e));
1312
+ function xi(e, t) {
1313
+ t === void 0 && (t = ge(e).getComputedStyle(e));
1224
1314
  const n = /(auto|scroll|overlay)/;
1225
1315
  return ["overflow", "overflowX", "overflowY"].some((o) => {
1226
- const s = t[o];
1227
- return typeof s == "string" ? n.test(s) : !1;
1316
+ const i = t[o];
1317
+ return typeof i == "string" ? n.test(i) : !1;
1228
1318
  });
1229
1319
  }
1230
1320
  function En(e, t) {
@@ -1234,44 +1324,44 @@ function En(e, t) {
1234
1324
  return n;
1235
1325
  if (Cn(o) && o.scrollingElement != null && !n.includes(o.scrollingElement))
1236
1326
  return n.push(o.scrollingElement), n;
1237
- if (!xt(o) || Tr(o) || n.includes(o))
1327
+ if (!xt(o) || Mr(o) || n.includes(o))
1238
1328
  return n;
1239
- const s = he(e).getComputedStyle(o);
1240
- return o !== e && ds(o, s) && n.push(o), us(o, s) ? n : r(o.parentNode);
1329
+ const i = ge(e).getComputedStyle(o);
1330
+ return o !== e && xi(o, i) && n.push(o), bi(o, i) ? n : r(o.parentNode);
1241
1331
  }
1242
1332
  return e ? r(e) : n;
1243
1333
  }
1244
- function Ir(e) {
1334
+ function Lr(e) {
1245
1335
  const [t] = En(e, 1);
1246
1336
  return t ?? null;
1247
1337
  }
1248
1338
  function cn(e) {
1249
1339
  return !Gt || !e ? null : et(e) ? e : Dn(e) ? Cn(e) || e === tt(e).scrollingElement ? window : xt(e) ? e : null : null;
1250
1340
  }
1251
- function Ar(e) {
1341
+ function Nr(e) {
1252
1342
  return et(e) ? e.scrollX : e.scrollLeft;
1253
1343
  }
1254
- function Lr(e) {
1344
+ function zr(e) {
1255
1345
  return et(e) ? e.scrollY : e.scrollTop;
1256
1346
  }
1257
1347
  function bn(e) {
1258
1348
  return {
1259
- x: Ar(e),
1260
- y: Lr(e)
1349
+ x: Nr(e),
1350
+ y: zr(e)
1261
1351
  };
1262
1352
  }
1263
1353
  var re;
1264
1354
  (function(e) {
1265
1355
  e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
1266
1356
  })(re || (re = {}));
1267
- function Nr(e) {
1357
+ function Pr(e) {
1268
1358
  return !Gt || !e ? !1 : e === document.scrollingElement;
1269
1359
  }
1270
- function zr(e) {
1360
+ function Yr(e) {
1271
1361
  const t = {
1272
1362
  x: 0,
1273
1363
  y: 0
1274
- }, n = Nr(e) ? {
1364
+ }, n = Pr(e) ? {
1275
1365
  height: window.innerHeight,
1276
1366
  width: window.innerWidth
1277
1367
  } : {
@@ -1280,34 +1370,34 @@ function zr(e) {
1280
1370
  }, r = {
1281
1371
  x: e.scrollWidth - n.width,
1282
1372
  y: e.scrollHeight - n.height
1283
- }, o = e.scrollTop <= t.y, s = e.scrollLeft <= t.x, a = e.scrollTop >= r.y, c = e.scrollLeft >= r.x;
1373
+ }, o = e.scrollTop <= t.y, i = e.scrollLeft <= t.x, a = e.scrollTop >= r.y, c = e.scrollLeft >= r.x;
1284
1374
  return {
1285
1375
  isTop: o,
1286
- isLeft: s,
1376
+ isLeft: i,
1287
1377
  isBottom: a,
1288
1378
  isRight: c,
1289
1379
  maxScroll: r,
1290
1380
  minScroll: t
1291
1381
  };
1292
1382
  }
1293
- const fs = {
1383
+ const yi = {
1294
1384
  x: 0.2,
1295
1385
  y: 0.2
1296
1386
  };
1297
- function hs(e, t, n, r, o) {
1387
+ function wi(e, t, n, r, o) {
1298
1388
  let {
1299
- top: s,
1389
+ top: i,
1300
1390
  left: a,
1301
1391
  right: c,
1302
1392
  bottom: l
1303
1393
  } = n;
1304
- r === void 0 && (r = 10), o === void 0 && (o = fs);
1394
+ r === void 0 && (r = 10), o === void 0 && (o = yi);
1305
1395
  const {
1306
1396
  isTop: u,
1307
1397
  isBottom: f,
1308
1398
  isLeft: d,
1309
1399
  isRight: m
1310
- } = zr(e), p = {
1400
+ } = Yr(e), p = {
1311
1401
  x: 0,
1312
1402
  y: 0
1313
1403
  }, v = {
@@ -1317,23 +1407,23 @@ function hs(e, t, n, r, o) {
1317
1407
  height: t.height * o.y,
1318
1408
  width: t.width * o.x
1319
1409
  };
1320
- return !u && s <= t.top + h.height ? (p.y = re.Backward, v.y = r * Math.abs((t.top + h.height - s) / h.height)) : !f && l >= t.bottom - h.height && (p.y = re.Forward, v.y = r * Math.abs((t.bottom - h.height - l) / h.height)), !m && c >= t.right - h.width ? (p.x = re.Forward, v.x = r * Math.abs((t.right - h.width - c) / h.width)) : !d && a <= t.left + h.width && (p.x = re.Backward, v.x = r * Math.abs((t.left + h.width - a) / h.width)), {
1410
+ return !u && i <= t.top + h.height ? (p.y = re.Backward, v.y = r * Math.abs((t.top + h.height - i) / h.height)) : !f && l >= t.bottom - h.height && (p.y = re.Forward, v.y = r * Math.abs((t.bottom - h.height - l) / h.height)), !m && c >= t.right - h.width ? (p.x = re.Forward, v.x = r * Math.abs((t.right - h.width - c) / h.width)) : !d && a <= t.left + h.width && (p.x = re.Backward, v.x = r * Math.abs((t.left + h.width - a) / h.width)), {
1321
1411
  direction: p,
1322
1412
  speed: v
1323
1413
  };
1324
1414
  }
1325
- function gs(e) {
1415
+ function Si(e) {
1326
1416
  if (e === document.scrollingElement) {
1327
1417
  const {
1328
- innerWidth: s,
1418
+ innerWidth: i,
1329
1419
  innerHeight: a
1330
1420
  } = window;
1331
1421
  return {
1332
1422
  top: 0,
1333
1423
  left: 0,
1334
- right: s,
1424
+ right: i,
1335
1425
  bottom: a,
1336
- width: s,
1426
+ width: i,
1337
1427
  height: a
1338
1428
  };
1339
1429
  }
@@ -1352,42 +1442,42 @@ function gs(e) {
1352
1442
  height: e.clientHeight
1353
1443
  };
1354
1444
  }
1355
- function Pr(e) {
1445
+ function Fr(e) {
1356
1446
  return e.reduce((t, n) => Je(t, bn(n)), Se);
1357
1447
  }
1358
- function ps(e) {
1359
- return e.reduce((t, n) => t + Ar(n), 0);
1448
+ function Di(e) {
1449
+ return e.reduce((t, n) => t + Nr(n), 0);
1360
1450
  }
1361
- function vs(e) {
1362
- return e.reduce((t, n) => t + Lr(n), 0);
1451
+ function Ci(e) {
1452
+ return e.reduce((t, n) => t + zr(n), 0);
1363
1453
  }
1364
- function ms(e, t) {
1454
+ function Ri(e, t) {
1365
1455
  if (t === void 0 && (t = nt), !e)
1366
1456
  return;
1367
1457
  const {
1368
1458
  top: n,
1369
1459
  left: r,
1370
1460
  bottom: o,
1371
- right: s
1461
+ right: i
1372
1462
  } = t(e);
1373
- Ir(e) && (o <= 0 || s <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
1463
+ Lr(e) && (o <= 0 || i <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
1374
1464
  block: "center",
1375
1465
  inline: "center"
1376
1466
  });
1377
1467
  }
1378
- const bs = [["x", ["left", "right"], ps], ["y", ["top", "bottom"], vs]];
1468
+ const ji = [["x", ["left", "right"], Di], ["y", ["top", "bottom"], Ci]];
1379
1469
  class _n {
1380
1470
  constructor(t, n) {
1381
1471
  this.rect = void 0, this.width = void 0, this.height = void 0, this.top = void 0, this.bottom = void 0, this.right = void 0, this.left = void 0;
1382
- const r = En(n), o = Pr(r);
1472
+ const r = En(n), o = Fr(r);
1383
1473
  this.rect = {
1384
1474
  ...t
1385
1475
  }, this.width = t.width, this.height = t.height;
1386
- for (const [s, a, c] of bs)
1476
+ for (const [i, a, c] of ji)
1387
1477
  for (const l of a)
1388
1478
  Object.defineProperty(this, l, {
1389
1479
  get: () => {
1390
- const u = c(r), f = o[s] - u;
1480
+ const u = c(r), f = o[i] - u;
1391
1481
  return this.rect[l] + f;
1392
1482
  },
1393
1483
  enumerable: !0
@@ -1411,10 +1501,10 @@ class dt {
1411
1501
  (o = this.target) == null || o.addEventListener(t, n, r), this.listeners.push([t, n, r]);
1412
1502
  }
1413
1503
  }
1414
- function xs(e) {
1504
+ function Ei(e) {
1415
1505
  const {
1416
1506
  EventTarget: t
1417
- } = he(e);
1507
+ } = ge(e);
1418
1508
  return e instanceof t ? e : tt(e);
1419
1509
  }
1420
1510
  function ln(e, t) {
@@ -1428,18 +1518,18 @@ var xe;
1428
1518
  function rr(e) {
1429
1519
  e.preventDefault();
1430
1520
  }
1431
- function ys(e) {
1521
+ function _i(e) {
1432
1522
  e.stopPropagation();
1433
1523
  }
1434
1524
  var V;
1435
1525
  (function(e) {
1436
1526
  e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter", e.Tab = "Tab";
1437
1527
  })(V || (V = {}));
1438
- const Yr = {
1528
+ const Vr = {
1439
1529
  start: [V.Space, V.Enter],
1440
1530
  cancel: [V.Esc],
1441
1531
  end: [V.Space, V.Enter, V.Tab]
1442
- }, ws = (e, t) => {
1532
+ }, Ti = (e, t) => {
1443
1533
  let {
1444
1534
  currentCoordinates: n
1445
1535
  } = t;
@@ -1466,7 +1556,7 @@ const Yr = {
1466
1556
  };
1467
1557
  }
1468
1558
  };
1469
- class Fr {
1559
+ class Hr {
1470
1560
  constructor(t) {
1471
1561
  this.props = void 0, this.autoScrollEnabled = !1, this.referenceCoordinates = void 0, this.listeners = void 0, this.windowListeners = void 0, this.props = t;
1472
1562
  const {
@@ -1474,7 +1564,7 @@ class Fr {
1474
1564
  target: n
1475
1565
  }
1476
1566
  } = t;
1477
- this.props = t, this.listeners = new dt(tt(n)), this.windowListeners = new dt(he(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
1567
+ this.props = t, this.listeners = new dt(tt(n)), this.windowListeners = new dt(ge(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
1478
1568
  }
1479
1569
  attach() {
1480
1570
  this.handleStart(), this.windowListeners.add(xe.Resize, this.handleCancel), this.windowListeners.add(xe.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(xe.Keydown, this.handleKeyDown));
@@ -1484,7 +1574,7 @@ class Fr {
1484
1574
  activeNode: t,
1485
1575
  onStart: n
1486
1576
  } = this.props, r = t.node.current;
1487
- r && ms(r), n(Se);
1577
+ r && Ri(r), n(Se);
1488
1578
  }
1489
1579
  handleKeyDown(t) {
1490
1580
  if (jn(t)) {
@@ -1493,17 +1583,17 @@ class Fr {
1493
1583
  context: r,
1494
1584
  options: o
1495
1585
  } = this.props, {
1496
- keyboardCodes: s = Yr,
1497
- coordinateGetter: a = ws,
1586
+ keyboardCodes: i = Vr,
1587
+ coordinateGetter: a = Ti,
1498
1588
  scrollBehavior: c = "smooth"
1499
1589
  } = o, {
1500
1590
  code: l
1501
1591
  } = t;
1502
- if (s.end.includes(l)) {
1592
+ if (i.end.includes(l)) {
1503
1593
  this.handleEnd(t);
1504
1594
  return;
1505
1595
  }
1506
- if (s.cancel.includes(l)) {
1596
+ if (i.cancel.includes(l)) {
1507
1597
  this.handleCancel(t);
1508
1598
  return;
1509
1599
  }
@@ -1534,34 +1624,34 @@ class Fr {
1534
1624
  isBottom: _,
1535
1625
  maxScroll: O,
1536
1626
  minScroll: T
1537
- } = zr(h), $ = gs(h), N = {
1627
+ } = Yr(h), $ = Si(h), N = {
1538
1628
  x: Math.min(b === V.Right ? $.right - $.width / 2 : $.right, Math.max(b === V.Right ? $.left : $.left + $.width / 2, d.x)),
1539
1629
  y: Math.min(b === V.Down ? $.bottom - $.height / 2 : $.bottom, Math.max(b === V.Down ? $.top : $.top + $.height / 2, d.y))
1540
1630
  }, W = b === V.Right && !R || b === V.Left && !E, Y = b === V.Down && !_ || b === V.Up && !w;
1541
1631
  if (W && N.x !== d.x) {
1542
- const k = h.scrollLeft + m.x, Q = b === V.Right && k <= O.x || b === V.Left && k >= T.x;
1632
+ const I = h.scrollLeft + m.x, Q = b === V.Right && I <= O.x || b === V.Left && I >= T.x;
1543
1633
  if (Q && !m.y) {
1544
1634
  h.scrollTo({
1545
- left: k,
1635
+ left: I,
1546
1636
  behavior: c
1547
1637
  });
1548
1638
  return;
1549
1639
  }
1550
- Q ? p.x = h.scrollLeft - k : p.x = b === V.Right ? h.scrollLeft - O.x : h.scrollLeft - T.x, p.x && h.scrollBy({
1640
+ Q ? p.x = h.scrollLeft - I : p.x = b === V.Right ? h.scrollLeft - O.x : h.scrollLeft - T.x, p.x && h.scrollBy({
1551
1641
  left: -p.x,
1552
1642
  behavior: c
1553
1643
  });
1554
1644
  break;
1555
1645
  } else if (Y && N.y !== d.y) {
1556
- const k = h.scrollTop + m.y, Q = b === V.Down && k <= O.y || b === V.Up && k >= T.y;
1646
+ const I = h.scrollTop + m.y, Q = b === V.Down && I <= O.y || b === V.Up && I >= T.y;
1557
1647
  if (Q && !m.x) {
1558
1648
  h.scrollTo({
1559
- top: k,
1649
+ top: I,
1560
1650
  behavior: c
1561
1651
  });
1562
1652
  return;
1563
1653
  }
1564
- Q ? p.y = h.scrollTop - k : p.y = b === V.Down ? h.scrollTop - O.y : h.scrollTop - T.y, p.y && h.scrollBy({
1654
+ Q ? p.y = h.scrollTop - I : p.y = b === V.Down ? h.scrollTop - O.y : h.scrollTop - T.y, p.y && h.scrollBy({
1565
1655
  top: -p.y,
1566
1656
  behavior: c
1567
1657
  });
@@ -1594,20 +1684,20 @@ class Fr {
1594
1684
  this.listeners.removeAll(), this.windowListeners.removeAll();
1595
1685
  }
1596
1686
  }
1597
- Fr.activators = [{
1687
+ Hr.activators = [{
1598
1688
  eventName: "onKeyDown",
1599
1689
  handler: (e, t, n) => {
1600
1690
  let {
1601
- keyboardCodes: r = Yr,
1691
+ keyboardCodes: r = Vr,
1602
1692
  onActivation: o
1603
1693
  } = t, {
1604
- active: s
1694
+ active: i
1605
1695
  } = n;
1606
1696
  const {
1607
1697
  code: a
1608
1698
  } = e.nativeEvent;
1609
1699
  if (r.start.includes(a)) {
1610
- const c = s.activatorNode.current;
1700
+ const c = i.activatorNode.current;
1611
1701
  return c && e.target !== c ? !1 : (e.preventDefault(), o?.({
1612
1702
  event: e.nativeEvent
1613
1703
  }), !0);
@@ -1618,19 +1708,19 @@ Fr.activators = [{
1618
1708
  function or(e) {
1619
1709
  return !!(e && "distance" in e);
1620
1710
  }
1621
- function sr(e) {
1711
+ function ir(e) {
1622
1712
  return !!(e && "delay" in e);
1623
1713
  }
1624
1714
  class Tn {
1625
1715
  constructor(t, n, r) {
1626
1716
  var o;
1627
- r === void 0 && (r = xs(t.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = t, this.events = n;
1717
+ r === void 0 && (r = Ei(t.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = t, this.events = n;
1628
1718
  const {
1629
- event: s
1719
+ event: i
1630
1720
  } = t, {
1631
1721
  target: a
1632
- } = s;
1633
- this.props = t, this.events = n, this.document = tt(a), this.documentListeners = new dt(this.document), this.listeners = new dt(r), this.windowListeners = new dt(he(a)), this.initialCoordinates = (o = mn(s)) != null ? o : Se, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
1722
+ } = i;
1723
+ this.props = t, this.events = n, this.document = tt(a), this.documentListeners = new dt(this.document), this.listeners = new dt(r), this.windowListeners = new dt(ge(a)), this.initialCoordinates = (o = mn(i)) != null ? o : Se, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
1634
1724
  }
1635
1725
  attach() {
1636
1726
  const {
@@ -1651,7 +1741,7 @@ class Tn {
1651
1741
  options: this.props.options
1652
1742
  }))
1653
1743
  return this.handleStart();
1654
- if (sr(n)) {
1744
+ if (ir(n)) {
1655
1745
  this.timeoutId = setTimeout(this.handleStart, n.delay), this.handlePending(n);
1656
1746
  return;
1657
1747
  }
@@ -1678,7 +1768,7 @@ class Tn {
1678
1768
  } = this, {
1679
1769
  onStart: n
1680
1770
  } = this.props;
1681
- t && (this.activated = !0, this.documentListeners.add(xe.Click, ys, {
1771
+ t && (this.activated = !0, this.documentListeners.add(xe.Click, _i, {
1682
1772
  capture: !0
1683
1773
  }), this.removeTextSelection(), this.documentListeners.add(xe.SelectionChange, this.removeTextSelection), n(t));
1684
1774
  }
@@ -1687,13 +1777,13 @@ class Tn {
1687
1777
  const {
1688
1778
  activated: r,
1689
1779
  initialCoordinates: o,
1690
- props: s
1780
+ props: i
1691
1781
  } = this, {
1692
1782
  onMove: a,
1693
1783
  options: {
1694
1784
  activationConstraint: c
1695
1785
  }
1696
- } = s;
1786
+ } = i;
1697
1787
  if (!o)
1698
1788
  return;
1699
1789
  const l = (n = mn(t)) != null ? n : Se, u = Yt(o, l);
@@ -1704,7 +1794,7 @@ class Tn {
1704
1794
  if (ln(u, c.distance))
1705
1795
  return this.handleStart();
1706
1796
  }
1707
- if (sr(c) && ln(u, c.tolerance))
1797
+ if (ir(c) && ln(u, c.tolerance))
1708
1798
  return this.handleCancel();
1709
1799
  this.handlePending(c, u);
1710
1800
  return;
@@ -1733,7 +1823,7 @@ class Tn {
1733
1823
  (t = this.document.getSelection()) == null || t.removeAllRanges();
1734
1824
  }
1735
1825
  }
1736
- const Ss = {
1826
+ const Oi = {
1737
1827
  cancel: {
1738
1828
  name: "pointercancel"
1739
1829
  },
@@ -1749,7 +1839,7 @@ class On extends Tn {
1749
1839
  const {
1750
1840
  event: n
1751
1841
  } = t, r = tt(n.target);
1752
- super(t, Ss, r);
1842
+ super(t, Oi, r);
1753
1843
  }
1754
1844
  }
1755
1845
  On.activators = [{
@@ -1765,7 +1855,7 @@ On.activators = [{
1765
1855
  }), !0);
1766
1856
  }
1767
1857
  }];
1768
- const Ds = {
1858
+ const Mi = {
1769
1859
  move: {
1770
1860
  name: "mousemove"
1771
1861
  },
@@ -1777,12 +1867,12 @@ var xn;
1777
1867
  (function(e) {
1778
1868
  e[e.RightClick = 2] = "RightClick";
1779
1869
  })(xn || (xn = {}));
1780
- class Cs extends Tn {
1870
+ class $i extends Tn {
1781
1871
  constructor(t) {
1782
- super(t, Ds, tt(t.event.target));
1872
+ super(t, Mi, tt(t.event.target));
1783
1873
  }
1784
1874
  }
1785
- Cs.activators = [{
1875
+ $i.activators = [{
1786
1876
  eventName: "onMouseDown",
1787
1877
  handler: (e, t) => {
1788
1878
  let {
@@ -1806,7 +1896,7 @@ const un = {
1806
1896
  name: "touchend"
1807
1897
  }
1808
1898
  };
1809
- class Rs extends Tn {
1899
+ class Ii extends Tn {
1810
1900
  constructor(t) {
1811
1901
  super(t, un);
1812
1902
  }
@@ -1821,7 +1911,7 @@ class Rs extends Tn {
1821
1911
  }
1822
1912
  }
1823
1913
  }
1824
- Rs.activators = [{
1914
+ Ii.activators = [{
1825
1915
  eventName: "onTouchStart",
1826
1916
  handler: (e, t) => {
1827
1917
  let {
@@ -1845,13 +1935,13 @@ var Vt;
1845
1935
  (function(e) {
1846
1936
  e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
1847
1937
  })(Vt || (Vt = {}));
1848
- function js(e) {
1938
+ function ki(e) {
1849
1939
  let {
1850
1940
  acceleration: t,
1851
1941
  activator: n = ft.Pointer,
1852
1942
  canScroll: r,
1853
1943
  draggingRect: o,
1854
- enabled: s,
1944
+ enabled: i,
1855
1945
  interval: a = 5,
1856
1946
  order: c = Vt.TreeOrder,
1857
1947
  pointerCoordinates: l,
@@ -1860,10 +1950,10 @@ function js(e) {
1860
1950
  delta: d,
1861
1951
  threshold: m
1862
1952
  } = e;
1863
- const p = _s({
1953
+ const p = Li({
1864
1954
  delta: d,
1865
- disabled: !s
1866
- }), [v, h] = Lo(), b = U({
1955
+ disabled: !i
1956
+ }), [v, h] = Wo(), b = U({
1867
1957
  x: 0,
1868
1958
  y: 0
1869
1959
  }), w = U({
@@ -1890,7 +1980,7 @@ function js(e) {
1890
1980
  }, []), O = B(() => c === Vt.TreeOrder ? [...u].reverse() : u, [c, u]);
1891
1981
  H(
1892
1982
  () => {
1893
- if (!s || !u.length || !R) {
1983
+ if (!i || !u.length || !R) {
1894
1984
  h();
1895
1985
  return;
1896
1986
  }
@@ -1903,9 +1993,9 @@ function js(e) {
1903
1993
  const {
1904
1994
  direction: W,
1905
1995
  speed: Y
1906
- } = hs(T, N, R, t, m);
1907
- for (const k of ["x", "y"])
1908
- p[k][W[k]] || (Y[k] = 0, W[k] = 0);
1996
+ } = wi(T, N, R, t, m);
1997
+ for (const I of ["x", "y"])
1998
+ p[I][W[I]] || (Y[I] = 0, W[I] = 0);
1909
1999
  if (Y.x > 0 || Y.y > 0) {
1910
2000
  h(), E.current = T, v(_, a), b.current = Y, w.current = W;
1911
2001
  return;
@@ -1925,7 +2015,7 @@ function js(e) {
1925
2015
  _,
1926
2016
  r,
1927
2017
  h,
1928
- s,
2018
+ i,
1929
2019
  a,
1930
2020
  // eslint-disable-next-line react-hooks/exhaustive-deps
1931
2021
  JSON.stringify(R),
@@ -1940,7 +2030,7 @@ function js(e) {
1940
2030
  ]
1941
2031
  );
1942
2032
  }
1943
- const Es = {
2033
+ const Ai = {
1944
2034
  x: {
1945
2035
  [re.Backward]: !1,
1946
2036
  [re.Forward]: !1
@@ -1950,7 +2040,7 @@ const Es = {
1950
2040
  [re.Forward]: !1
1951
2041
  }
1952
2042
  };
1953
- function _s(e) {
2043
+ function Li(e) {
1954
2044
  let {
1955
2045
  delta: t,
1956
2046
  disabled: n
@@ -1958,39 +2048,39 @@ function _s(e) {
1958
2048
  const r = vn(t);
1959
2049
  return yt((o) => {
1960
2050
  if (n || !r || !o)
1961
- return Es;
1962
- const s = {
2051
+ return Ai;
2052
+ const i = {
1963
2053
  x: Math.sign(t.x - r.x),
1964
2054
  y: Math.sign(t.y - r.y)
1965
2055
  };
1966
2056
  return {
1967
2057
  x: {
1968
- [re.Backward]: o.x[re.Backward] || s.x === -1,
1969
- [re.Forward]: o.x[re.Forward] || s.x === 1
2058
+ [re.Backward]: o.x[re.Backward] || i.x === -1,
2059
+ [re.Forward]: o.x[re.Forward] || i.x === 1
1970
2060
  },
1971
2061
  y: {
1972
- [re.Backward]: o.y[re.Backward] || s.y === -1,
1973
- [re.Forward]: o.y[re.Forward] || s.y === 1
2062
+ [re.Backward]: o.y[re.Backward] || i.y === -1,
2063
+ [re.Forward]: o.y[re.Forward] || i.y === 1
1974
2064
  }
1975
2065
  };
1976
2066
  }, [n, t, r]);
1977
2067
  }
1978
- function Ts(e, t) {
2068
+ function Ni(e, t) {
1979
2069
  const n = t != null ? e.get(t) : void 0, r = n ? n.node.current : null;
1980
2070
  return yt((o) => {
1981
- var s;
1982
- return t == null ? null : (s = r ?? o) != null ? s : null;
2071
+ var i;
2072
+ return t == null ? null : (i = r ?? o) != null ? i : null;
1983
2073
  }, [r, t]);
1984
2074
  }
1985
- function Os(e, t) {
2075
+ function zi(e, t) {
1986
2076
  return B(() => e.reduce((n, r) => {
1987
2077
  const {
1988
2078
  sensor: o
1989
- } = r, s = o.activators.map((a) => ({
2079
+ } = r, i = o.activators.map((a) => ({
1990
2080
  eventName: a.eventName,
1991
2081
  handler: t(a.handler, r)
1992
2082
  }));
1993
- return [...n, ...s];
2083
+ return [...n, ...i];
1994
2084
  }, []), [e, t]);
1995
2085
  }
1996
2086
  var pt;
@@ -2001,14 +2091,14 @@ var yn;
2001
2091
  (function(e) {
2002
2092
  e.Optimized = "optimized";
2003
2093
  })(yn || (yn = {}));
2004
- const ir = /* @__PURE__ */ new Map();
2005
- function Ms(e, t) {
2094
+ const sr = /* @__PURE__ */ new Map();
2095
+ function Pi(e, t) {
2006
2096
  let {
2007
2097
  dragging: n,
2008
2098
  dependencies: r,
2009
2099
  config: o
2010
2100
  } = t;
2011
- const [s, a] = oe(null), {
2101
+ const [i, a] = oe(null), {
2012
2102
  frequency: c,
2013
2103
  measure: l,
2014
2104
  strategy: u
@@ -2016,13 +2106,13 @@ function Ms(e, t) {
2016
2106
  w === void 0 && (w = []), !m.current && a((R) => R === null ? w : R.concat(w.filter((E) => !R.includes(E))));
2017
2107
  }, [m]), v = U(null), h = yt((w) => {
2018
2108
  if (d && !n)
2019
- return ir;
2020
- if (!w || w === ir || f.current !== e || s != null) {
2109
+ return sr;
2110
+ if (!w || w === sr || f.current !== e || i != null) {
2021
2111
  const R = /* @__PURE__ */ new Map();
2022
2112
  for (let E of e) {
2023
2113
  if (!E)
2024
2114
  continue;
2025
- if (s && s.length > 0 && !s.includes(E.id) && E.rect.current) {
2115
+ if (i && i.length > 0 && !i.includes(E.id) && E.rect.current) {
2026
2116
  R.set(E.id, E.rect.current);
2027
2117
  continue;
2028
2118
  }
@@ -2032,7 +2122,7 @@ function Ms(e, t) {
2032
2122
  return R;
2033
2123
  }
2034
2124
  return w;
2035
- }, [e, s, n, d, l]);
2125
+ }, [e, i, n, d, l]);
2036
2126
  return H(() => {
2037
2127
  f.current = e;
2038
2128
  }, [e]), H(
@@ -2043,10 +2133,10 @@ function Ms(e, t) {
2043
2133
  [n, d]
2044
2134
  ), H(
2045
2135
  () => {
2046
- s && s.length > 0 && a(null);
2136
+ i && i.length > 0 && a(null);
2047
2137
  },
2048
2138
  //eslint-disable-next-line react-hooks/exhaustive-deps
2049
- [JSON.stringify(s)]
2139
+ [JSON.stringify(i)]
2050
2140
  ), H(
2051
2141
  () => {
2052
2142
  d || typeof c != "number" || v.current !== null || (v.current = setTimeout(() => {
@@ -2058,7 +2148,7 @@ function Ms(e, t) {
2058
2148
  ), {
2059
2149
  droppableRects: h,
2060
2150
  measureDroppableContainers: p,
2061
- measuringScheduled: s != null
2151
+ measuringScheduled: i != null
2062
2152
  };
2063
2153
  function b() {
2064
2154
  switch (u) {
@@ -2071,13 +2161,13 @@ function Ms(e, t) {
2071
2161
  }
2072
2162
  }
2073
2163
  }
2074
- function Vr(e, t) {
2164
+ function Wr(e, t) {
2075
2165
  return yt((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
2076
2166
  }
2077
- function $s(e, t) {
2078
- return Vr(e, t);
2167
+ function Yi(e, t) {
2168
+ return Wr(e, t);
2079
2169
  }
2080
- function ks(e) {
2170
+ function Fi(e) {
2081
2171
  let {
2082
2172
  callback: t,
2083
2173
  disabled: n
@@ -2086,9 +2176,9 @@ function ks(e) {
2086
2176
  if (n || typeof window > "u" || typeof window.MutationObserver > "u")
2087
2177
  return;
2088
2178
  const {
2089
- MutationObserver: s
2179
+ MutationObserver: i
2090
2180
  } = window;
2091
- return new s(r);
2181
+ return new i(r);
2092
2182
  }, [r, n]);
2093
2183
  return H(() => () => o?.disconnect(), [o]), o;
2094
2184
  }
@@ -2102,22 +2192,22 @@ function Xt(e) {
2102
2192
  if (n || typeof window > "u" || typeof window.ResizeObserver > "u")
2103
2193
  return;
2104
2194
  const {
2105
- ResizeObserver: s
2195
+ ResizeObserver: i
2106
2196
  } = window;
2107
- return new s(r);
2197
+ return new i(r);
2108
2198
  },
2109
2199
  // eslint-disable-next-line react-hooks/exhaustive-deps
2110
2200
  [n]
2111
2201
  );
2112
2202
  return H(() => () => o?.disconnect(), [o]), o;
2113
2203
  }
2114
- function Is(e) {
2204
+ function Vi(e) {
2115
2205
  return new _n(nt(e), e);
2116
2206
  }
2117
2207
  function ar(e, t, n) {
2118
- t === void 0 && (t = Is);
2208
+ t === void 0 && (t = Vi);
2119
2209
  const [r, o] = oe(null);
2120
- function s() {
2210
+ function i() {
2121
2211
  o((l) => {
2122
2212
  if (!e)
2123
2213
  return null;
@@ -2129,7 +2219,7 @@ function ar(e, t, n) {
2129
2219
  return JSON.stringify(l) === JSON.stringify(f) ? l : f;
2130
2220
  });
2131
2221
  }
2132
- const a = ks({
2222
+ const a = Fi({
2133
2223
  callback(l) {
2134
2224
  if (e)
2135
2225
  for (const u of l) {
@@ -2138,41 +2228,41 @@ function ar(e, t, n) {
2138
2228
  target: d
2139
2229
  } = u;
2140
2230
  if (f === "childList" && d instanceof HTMLElement && d.contains(e)) {
2141
- s();
2231
+ i();
2142
2232
  break;
2143
2233
  }
2144
2234
  }
2145
2235
  }
2146
2236
  }), c = Xt({
2147
- callback: s
2237
+ callback: i
2148
2238
  });
2149
2239
  return Te(() => {
2150
- s(), e ? (c?.observe(e), a?.observe(document.body, {
2240
+ i(), e ? (c?.observe(e), a?.observe(document.body, {
2151
2241
  childList: !0,
2152
2242
  subtree: !0
2153
2243
  })) : (c?.disconnect(), a?.disconnect());
2154
2244
  }, [e]), r;
2155
2245
  }
2156
- function As(e) {
2157
- const t = Vr(e);
2158
- return kr(e, t);
2246
+ function Hi(e) {
2247
+ const t = Wr(e);
2248
+ return Ar(e, t);
2159
2249
  }
2160
2250
  const cr = [];
2161
- function Ls(e) {
2251
+ function Wi(e) {
2162
2252
  const t = U(e), n = yt((r) => e ? r && r !== cr && e && t.current && e.parentNode === t.current.parentNode ? r : En(e) : cr, [e]);
2163
2253
  return H(() => {
2164
2254
  t.current = e;
2165
2255
  }, [e]), n;
2166
2256
  }
2167
- function Ns(e) {
2168
- const [t, n] = oe(null), r = U(e), o = le((s) => {
2169
- const a = cn(s.target);
2257
+ function Bi(e) {
2258
+ const [t, n] = oe(null), r = U(e), o = le((i) => {
2259
+ const a = cn(i.target);
2170
2260
  a && n((c) => c ? (c.set(a, bn(a)), new Map(c)) : null);
2171
2261
  }, []);
2172
2262
  return H(() => {
2173
- const s = r.current;
2174
- if (e !== s) {
2175
- a(s);
2263
+ const i = r.current;
2264
+ if (e !== i) {
2265
+ a(i);
2176
2266
  const c = e.map((l) => {
2177
2267
  const u = cn(l);
2178
2268
  return u ? (u.addEventListener("scroll", o, {
@@ -2182,7 +2272,7 @@ function Ns(e) {
2182
2272
  n(c.length ? new Map(c) : null), r.current = e;
2183
2273
  }
2184
2274
  return () => {
2185
- a(e), a(s);
2275
+ a(e), a(i);
2186
2276
  };
2187
2277
  function a(c) {
2188
2278
  c.forEach((l) => {
@@ -2190,7 +2280,7 @@ function Ns(e) {
2190
2280
  u?.removeEventListener("scroll", o);
2191
2281
  });
2192
2282
  }
2193
- }, [o, e]), B(() => e.length ? t ? Array.from(t.values()).reduce((s, a) => Je(s, a), Se) : Pr(e) : Se, [e, t]);
2283
+ }, [o, e]), B(() => e.length ? t ? Array.from(t.values()).reduce((i, a) => Je(i, a), Se) : Fr(e) : Se, [e, t]);
2194
2284
  }
2195
2285
  function lr(e, t) {
2196
2286
  t === void 0 && (t = []);
@@ -2206,7 +2296,7 @@ function lr(e, t) {
2206
2296
  r && !n.current && (n.current = e), !r && n.current && (n.current = null);
2207
2297
  }, [e]), n.current ? Yt(e, n.current) : Se;
2208
2298
  }
2209
- function zs(e) {
2299
+ function Ui(e) {
2210
2300
  H(
2211
2301
  () => {
2212
2302
  if (!Gt)
@@ -2232,26 +2322,26 @@ function zs(e) {
2232
2322
  })
2233
2323
  );
2234
2324
  }
2235
- function Ps(e, t) {
2325
+ function Gi(e, t) {
2236
2326
  return B(() => e.reduce((n, r) => {
2237
2327
  let {
2238
2328
  eventName: o,
2239
- handler: s
2329
+ handler: i
2240
2330
  } = r;
2241
2331
  return n[o] = (a) => {
2242
- s(a, t);
2332
+ i(a, t);
2243
2333
  }, n;
2244
2334
  }, {}), [e, t]);
2245
2335
  }
2246
- function Hr(e) {
2247
- return B(() => e ? ls(e) : null, [e]);
2336
+ function Br(e) {
2337
+ return B(() => e ? mi(e) : null, [e]);
2248
2338
  }
2249
2339
  const ur = [];
2250
- function Ys(e, t) {
2340
+ function Xi(e, t) {
2251
2341
  t === void 0 && (t = nt);
2252
- const [n] = e, r = Hr(n ? he(n) : null), [o, s] = oe(ur);
2342
+ const [n] = e, r = Br(n ? ge(n) : null), [o, i] = oe(ur);
2253
2343
  function a() {
2254
- s(() => e.length ? e.map((l) => Nr(l) ? r : new _n(t(l), l)) : ur);
2344
+ i(() => e.length ? e.map((l) => Pr(l) ? r : new _n(t(l), l)) : ur);
2255
2345
  }
2256
2346
  const c = Xt({
2257
2347
  callback: a
@@ -2260,7 +2350,7 @@ function Ys(e, t) {
2260
2350
  c?.disconnect(), a(), e.forEach((l) => c?.observe(l));
2261
2351
  }, [e]), o;
2262
2352
  }
2263
- function Fs(e) {
2353
+ function qi(e) {
2264
2354
  if (!e)
2265
2355
  return null;
2266
2356
  if (e.children.length > 1)
@@ -2268,7 +2358,7 @@ function Fs(e) {
2268
2358
  const t = e.children[0];
2269
2359
  return xt(t) ? t : e;
2270
2360
  }
2271
- function Vs(e) {
2361
+ function Ki(e) {
2272
2362
  let {
2273
2363
  measure: t
2274
2364
  } = e;
@@ -2287,25 +2377,25 @@ function Vs(e) {
2287
2377
  });
2288
2378
  break;
2289
2379
  }
2290
- }, [t]), s = Xt({
2380
+ }, [t]), i = Xt({
2291
2381
  callback: o
2292
2382
  }), a = le((u) => {
2293
- const f = Fs(u);
2294
- s?.disconnect(), f && s?.observe(f), r(f ? t(f) : null);
2295
- }, [t, s]), [c, l] = Pt(a);
2383
+ const f = qi(u);
2384
+ i?.disconnect(), f && i?.observe(f), r(f ? t(f) : null);
2385
+ }, [t, i]), [c, l] = Pt(a);
2296
2386
  return B(() => ({
2297
2387
  nodeRef: c,
2298
2388
  rect: n,
2299
2389
  setRef: l
2300
2390
  }), [n, c, l]);
2301
2391
  }
2302
- const Hs = [{
2392
+ const Ji = [{
2303
2393
  sensor: On,
2304
2394
  options: {}
2305
2395
  }, {
2306
- sensor: Fr,
2396
+ sensor: Hr,
2307
2397
  options: {}
2308
- }], Ws = {
2398
+ }], Zi = {
2309
2399
  current: {}
2310
2400
  }, $t = {
2311
2401
  draggable: {
@@ -2341,7 +2431,7 @@ class ht extends Map {
2341
2431
  return (n = (r = this.get(t)) == null ? void 0 : r.node.current) != null ? n : void 0;
2342
2432
  }
2343
2433
  }
2344
- const Bs = {
2434
+ const Qi = {
2345
2435
  activatorEvent: null,
2346
2436
  active: null,
2347
2437
  activeNode: null,
@@ -2365,7 +2455,7 @@ const Bs = {
2365
2455
  measureDroppableContainers: Ft,
2366
2456
  windowRect: null,
2367
2457
  measuringScheduled: !1
2368
- }, Us = {
2458
+ }, es = {
2369
2459
  activatorEvent: null,
2370
2460
  activators: [],
2371
2461
  active: null,
@@ -2377,8 +2467,8 @@ const Bs = {
2377
2467
  draggableNodes: /* @__PURE__ */ new Map(),
2378
2468
  over: null,
2379
2469
  measureDroppableContainers: Ft
2380
- }, qt = /* @__PURE__ */ vt(Us), Wr = /* @__PURE__ */ vt(Bs);
2381
- function Gs() {
2470
+ }, qt = /* @__PURE__ */ vt(es), Ur = /* @__PURE__ */ vt(Qi);
2471
+ function ts() {
2382
2472
  return {
2383
2473
  draggable: {
2384
2474
  active: null,
@@ -2397,7 +2487,7 @@ function Gs() {
2397
2487
  }
2398
2488
  };
2399
2489
  }
2400
- function Xs(e, t) {
2490
+ function ns(e, t) {
2401
2491
  switch (t.type) {
2402
2492
  case te.DragStart:
2403
2493
  return {
@@ -2455,12 +2545,12 @@ function Xs(e, t) {
2455
2545
  id: n,
2456
2546
  key: r,
2457
2547
  disabled: o
2458
- } = t, s = e.droppable.containers.get(n);
2459
- if (!s || r !== s.key)
2548
+ } = t, i = e.droppable.containers.get(n);
2549
+ if (!i || r !== i.key)
2460
2550
  return e;
2461
2551
  const a = new ht(e.droppable.containers);
2462
2552
  return a.set(n, {
2463
- ...s,
2553
+ ...i,
2464
2554
  disabled: o
2465
2555
  }), {
2466
2556
  ...e,
@@ -2477,12 +2567,12 @@ function Xs(e, t) {
2477
2567
  } = t, o = e.droppable.containers.get(n);
2478
2568
  if (!o || r !== o.key)
2479
2569
  return e;
2480
- const s = new ht(e.droppable.containers);
2481
- return s.delete(n), {
2570
+ const i = new ht(e.droppable.containers);
2571
+ return i.delete(n), {
2482
2572
  ...e,
2483
2573
  droppable: {
2484
2574
  ...e.droppable,
2485
- containers: s
2575
+ containers: i
2486
2576
  }
2487
2577
  };
2488
2578
  }
@@ -2490,7 +2580,7 @@ function Xs(e, t) {
2490
2580
  return e;
2491
2581
  }
2492
2582
  }
2493
- function qs(e) {
2583
+ function rs(e) {
2494
2584
  let {
2495
2585
  disabled: t
2496
2586
  } = e;
@@ -2498,10 +2588,10 @@ function qs(e) {
2498
2588
  active: n,
2499
2589
  activatorEvent: r,
2500
2590
  draggableNodes: o
2501
- } = He(qt), s = vn(r), a = vn(n?.id);
2591
+ } = He(qt), i = vn(r), a = vn(n?.id);
2502
2592
  return H(() => {
2503
- if (!t && !r && s && a != null) {
2504
- if (!jn(s) || document.activeElement === s.target)
2593
+ if (!t && !r && i && a != null) {
2594
+ if (!jn(i) || document.activeElement === i.target)
2505
2595
  return;
2506
2596
  const c = o.get(a);
2507
2597
  if (!c)
@@ -2516,7 +2606,7 @@ function qs(e) {
2516
2606
  for (const f of [l.current, u.current]) {
2517
2607
  if (!f)
2518
2608
  continue;
2519
- const d = Po(f);
2609
+ const d = Go(f);
2520
2610
  if (d) {
2521
2611
  d.focus();
2522
2612
  break;
@@ -2524,19 +2614,19 @@ function qs(e) {
2524
2614
  }
2525
2615
  });
2526
2616
  }
2527
- }, [r, t, o, a, s]), null;
2617
+ }, [r, t, o, a, i]), null;
2528
2618
  }
2529
- function Ks(e, t) {
2619
+ function os(e, t) {
2530
2620
  let {
2531
2621
  transform: n,
2532
2622
  ...r
2533
2623
  } = t;
2534
- return e != null && e.length ? e.reduce((o, s) => s({
2624
+ return e != null && e.length ? e.reduce((o, i) => i({
2535
2625
  transform: o,
2536
2626
  ...r
2537
2627
  }), n) : n;
2538
2628
  }
2539
- function Js(e) {
2629
+ function is(e) {
2540
2630
  return B(
2541
2631
  () => ({
2542
2632
  draggable: {
@@ -2556,14 +2646,14 @@ function Js(e) {
2556
2646
  [e?.draggable, e?.droppable, e?.dragOverlay]
2557
2647
  );
2558
2648
  }
2559
- function Zs(e) {
2649
+ function ss(e) {
2560
2650
  let {
2561
2651
  activeNode: t,
2562
2652
  measure: n,
2563
2653
  initialRect: r,
2564
2654
  config: o = !0
2565
2655
  } = e;
2566
- const s = U(!1), {
2656
+ const i = U(!1), {
2567
2657
  x: a,
2568
2658
  y: c
2569
2659
  } = typeof o == "boolean" ? {
@@ -2572,17 +2662,17 @@ function Zs(e) {
2572
2662
  } : o;
2573
2663
  Te(() => {
2574
2664
  if (!a && !c || !t) {
2575
- s.current = !1;
2665
+ i.current = !1;
2576
2666
  return;
2577
2667
  }
2578
- if (s.current || !r)
2668
+ if (i.current || !r)
2579
2669
  return;
2580
2670
  const u = t?.node.current;
2581
2671
  if (!u || u.isConnected === !1)
2582
2672
  return;
2583
- const f = n(u), d = kr(f, r);
2584
- if (a || (d.x = 0), c || (d.y = 0), s.current = !0, Math.abs(d.x) > 0 || Math.abs(d.y) > 0) {
2585
- const m = Ir(u);
2673
+ const f = n(u), d = Ar(f, r);
2674
+ if (a || (d.x = 0), c || (d.y = 0), i.current = !0, Math.abs(d.x) > 0 || Math.abs(d.y) > 0) {
2675
+ const m = Lr(u);
2586
2676
  m && m.scrollBy({
2587
2677
  top: d.y,
2588
2678
  left: d.x
@@ -2590,7 +2680,7 @@ function Zs(e) {
2590
2680
  }
2591
2681
  }, [t, a, c, r, n]);
2592
2682
  }
2593
- const Br = /* @__PURE__ */ vt({
2683
+ const Gr = /* @__PURE__ */ vt({
2594
2684
  ...Se,
2595
2685
  scaleX: 1,
2596
2686
  scaleY: 1
@@ -2599,20 +2689,20 @@ var Fe;
2599
2689
  (function(e) {
2600
2690
  e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
2601
2691
  })(Fe || (Fe = {}));
2602
- const Ur = /* @__PURE__ */ po(function(t) {
2603
- var n, r, o, s;
2692
+ const Xr = /* @__PURE__ */ vo(function(t) {
2693
+ var n, r, o, i;
2604
2694
  let {
2605
2695
  id: a,
2606
2696
  accessibility: c,
2607
2697
  autoScroll: l = !0,
2608
2698
  children: u,
2609
- sensors: f = Hs,
2610
- collisionDetection: d = ns,
2699
+ sensors: f = Ji,
2700
+ collisionDetection: d = ui,
2611
2701
  measuring: m,
2612
2702
  modifiers: p,
2613
2703
  ...v
2614
2704
  } = t;
2615
- const h = vo(Xs, void 0, Gs), [b, w] = h, [R, E] = Bo(), [_, O] = oe(Fe.Uninitialized), T = _ === Fe.Initialized, {
2705
+ const h = mo(ns, void 0, ts), [b, w] = h, [R, E] = Qo(), [_, O] = oe(Fe.Uninitialized), T = _ === Fe.Initialized, {
2616
2706
  draggable: {
2617
2707
  active: $,
2618
2708
  nodes: N,
@@ -2621,27 +2711,27 @@ const Ur = /* @__PURE__ */ po(function(t) {
2621
2711
  droppable: {
2622
2712
  containers: Y
2623
2713
  }
2624
- } = b, k = $ != null ? N.get($) : null, Q = U({
2714
+ } = b, I = $ != null ? N.get($) : null, Q = U({
2625
2715
  initial: null,
2626
2716
  translated: null
2627
- }), se = B(() => {
2717
+ }), ie = B(() => {
2628
2718
  var ce;
2629
2719
  return $ != null ? {
2630
2720
  id: $,
2631
2721
  // It's possible for the active node to unmount while dragging
2632
- data: (ce = k?.data) != null ? ce : Ws,
2722
+ data: (ce = I?.data) != null ? ce : Zi,
2633
2723
  rect: Q
2634
2724
  } : null;
2635
- }, [$, k]), M = U(null), [D, y] = oe(null), [j, C] = oe(null), I = gt(v, Object.values(v)), L = wt("DndDescribedBy", a), g = B(() => Y.getEnabled(), [Y]), S = Js(m), {
2725
+ }, [$, I]), M = U(null), [D, y] = oe(null), [j, C] = oe(null), k = gt(v, Object.values(v)), L = wt("DndDescribedBy", a), g = B(() => Y.getEnabled(), [Y]), S = is(m), {
2636
2726
  droppableRects: A,
2637
2727
  measureDroppableContainers: P,
2638
2728
  measuringScheduled: G
2639
- } = Ms(g, {
2729
+ } = Pi(g, {
2640
2730
  dragging: T,
2641
2731
  dependencies: [W.x, W.y],
2642
2732
  config: S.droppable
2643
- }), X = Ts(N, $), F = B(() => j ? mn(j) : null, [j]), J = ho(), Z = $s(X, S.draggable.measure);
2644
- Zs({
2733
+ }), X = Ni(N, $), F = B(() => j ? mn(j) : null, [j]), J = go(), Z = Yi(X, S.draggable.measure);
2734
+ ss({
2645
2735
  activeNode: $ != null ? N.get($) : null,
2646
2736
  config: J.layoutShiftCompensation,
2647
2737
  initialRect: Z,
@@ -2661,17 +2751,17 @@ const Ur = /* @__PURE__ */ po(function(t) {
2661
2751
  over: null,
2662
2752
  scrollableAncestors: [],
2663
2753
  scrollAdjustedTranslate: null
2664
- }), ye = Y.getNodeFor((n = ae.current.over) == null ? void 0 : n.id), $e = Vs({
2754
+ }), ye = Y.getNodeFor((n = ae.current.over) == null ? void 0 : n.id), $e = Ki({
2665
2755
  measure: S.dragOverlay.measure
2666
- }), Be = (r = $e.nodeRef.current) != null ? r : X, Ue = T ? (o = $e.rect) != null ? o : z : null, kn = !!($e.nodeRef.current && $e.rect), In = As(kn ? null : z), Zt = Hr(Be ? he(Be) : null), Le = Ls(T ? ye ?? X : null), St = Ys(Le), Dt = Ks(p, {
2756
+ }), Be = (r = $e.nodeRef.current) != null ? r : X, Ue = T ? (o = $e.rect) != null ? o : z : null, In = !!($e.nodeRef.current && $e.rect), kn = Hi(In ? null : z), Zt = Br(Be ? ge(Be) : null), Le = Wi(T ? ye ?? X : null), St = Xi(Le), Dt = os(p, {
2667
2757
  transform: {
2668
- x: W.x - In.x,
2669
- y: W.y - In.y,
2758
+ x: W.x - kn.x,
2759
+ y: W.y - kn.y,
2670
2760
  scaleX: 1,
2671
2761
  scaleY: 1
2672
2762
  },
2673
2763
  activatorEvent: j,
2674
- active: se,
2764
+ active: ie,
2675
2765
  activeNodeRect: z,
2676
2766
  containerNodeRect: de,
2677
2767
  draggingNodeRect: Ue,
@@ -2680,61 +2770,61 @@ const Ur = /* @__PURE__ */ po(function(t) {
2680
2770
  scrollableAncestors: Le,
2681
2771
  scrollableAncestorRects: St,
2682
2772
  windowRect: Zt
2683
- }), An = F ? Je(F, W) : null, Ln = Ns(Le), so = lr(Ln), io = lr(Ln, [z]), Ge = Je(Dt, so), Xe = Ue ? ss(Ue, Dt) : null, rt = se && Xe ? d({
2684
- active: se,
2773
+ }), An = F ? Je(F, W) : null, Ln = Bi(Le), so = lr(Ln), ao = lr(Ln, [z]), Ge = Je(Dt, so), Xe = Ue ? hi(Ue, Dt) : null, rt = ie && Xe ? d({
2774
+ active: ie,
2685
2775
  collisionRect: Xe,
2686
2776
  droppableRects: A,
2687
2777
  droppableContainers: g,
2688
2778
  pointerCoordinates: An
2689
- }) : null, Nn = es(rt, "id"), [Ne, zn] = oe(null), ao = kn ? Dt : Je(Dt, io), co = rs(ao, (s = Ne?.rect) != null ? s : null, z), Qt = U(null), Pn = le(
2690
- (ce, ge) => {
2779
+ }) : null, Nn = ci(rt, "id"), [Ne, zn] = oe(null), co = In ? Dt : Je(Dt, ao), lo = di(co, (i = Ne?.rect) != null ? i : null, z), Qt = U(null), Pn = le(
2780
+ (ce, pe) => {
2691
2781
  let {
2692
- sensor: pe,
2782
+ sensor: ve,
2693
2783
  options: ze
2694
- } = ge;
2784
+ } = pe;
2695
2785
  if (M.current == null)
2696
2786
  return;
2697
2787
  const be = N.get(M.current);
2698
2788
  if (!be)
2699
2789
  return;
2700
- const ve = ce.nativeEvent, Ce = new pe({
2790
+ const me = ce.nativeEvent, Ce = new ve({
2701
2791
  active: M.current,
2702
2792
  activeNode: be,
2703
- event: ve,
2793
+ event: me,
2704
2794
  options: ze,
2705
2795
  // Sensors need to be instantiated with refs for arguments that change over time
2706
2796
  // otherwise they are frozen in time with the stale arguments
2707
2797
  context: ae,
2708
- onAbort(ie) {
2709
- if (!N.get(ie))
2798
+ onAbort(se) {
2799
+ if (!N.get(se))
2710
2800
  return;
2711
2801
  const {
2712
2802
  onDragAbort: Re
2713
- } = I.current, ke = {
2714
- id: ie
2803
+ } = k.current, Ie = {
2804
+ id: se
2715
2805
  };
2716
- Re?.(ke), R({
2806
+ Re?.(Ie), R({
2717
2807
  type: "onDragAbort",
2718
- event: ke
2808
+ event: Ie
2719
2809
  });
2720
2810
  },
2721
- onPending(ie, Pe, Re, ke) {
2722
- if (!N.get(ie))
2811
+ onPending(se, Pe, Re, Ie) {
2812
+ if (!N.get(se))
2723
2813
  return;
2724
2814
  const {
2725
- onDragPending: st
2726
- } = I.current, Ye = {
2727
- id: ie,
2815
+ onDragPending: it
2816
+ } = k.current, Ye = {
2817
+ id: se,
2728
2818
  constraint: Pe,
2729
2819
  initialCoordinates: Re,
2730
- offset: ke
2820
+ offset: Ie
2731
2821
  };
2732
- st?.(Ye), R({
2822
+ it?.(Ye), R({
2733
2823
  type: "onDragPending",
2734
2824
  event: Ye
2735
2825
  });
2736
2826
  },
2737
- onStart(ie) {
2827
+ onStart(se) {
2738
2828
  const Pe = M.current;
2739
2829
  if (Pe == null)
2740
2830
  return;
@@ -2742,9 +2832,9 @@ const Ur = /* @__PURE__ */ po(function(t) {
2742
2832
  if (!Re)
2743
2833
  return;
2744
2834
  const {
2745
- onDragStart: ke
2746
- } = I.current, ot = {
2747
- activatorEvent: ve,
2835
+ onDragStart: Ie
2836
+ } = k.current, ot = {
2837
+ activatorEvent: me,
2748
2838
  active: {
2749
2839
  id: Pe,
2750
2840
  data: Re.data,
@@ -2752,56 +2842,56 @@ const Ur = /* @__PURE__ */ po(function(t) {
2752
2842
  }
2753
2843
  };
2754
2844
  Ct(() => {
2755
- ke?.(ot), O(Fe.Initializing), w({
2845
+ Ie?.(ot), O(Fe.Initializing), w({
2756
2846
  type: te.DragStart,
2757
- initialCoordinates: ie,
2847
+ initialCoordinates: se,
2758
2848
  active: Pe
2759
2849
  }), R({
2760
2850
  type: "onDragStart",
2761
2851
  event: ot
2762
- }), y(Qt.current), C(ve);
2852
+ }), y(Qt.current), C(me);
2763
2853
  });
2764
2854
  },
2765
- onMove(ie) {
2855
+ onMove(se) {
2766
2856
  w({
2767
2857
  type: te.DragMove,
2768
- coordinates: ie
2858
+ coordinates: se
2769
2859
  });
2770
2860
  },
2771
2861
  onEnd: qe(te.DragEnd),
2772
2862
  onCancel: qe(te.DragCancel)
2773
2863
  });
2774
2864
  Qt.current = Ce;
2775
- function qe(ie) {
2865
+ function qe(se) {
2776
2866
  return async function() {
2777
2867
  const {
2778
2868
  active: Re,
2779
- collisions: ke,
2869
+ collisions: Ie,
2780
2870
  over: ot,
2781
- scrollAdjustedTranslate: st
2871
+ scrollAdjustedTranslate: it
2782
2872
  } = ae.current;
2783
2873
  let Ye = null;
2784
- if (Re && st) {
2874
+ if (Re && it) {
2785
2875
  const {
2786
- cancelDrop: it
2787
- } = I.current;
2876
+ cancelDrop: st
2877
+ } = k.current;
2788
2878
  Ye = {
2789
- activatorEvent: ve,
2879
+ activatorEvent: me,
2790
2880
  active: Re,
2791
- collisions: ke,
2792
- delta: st,
2881
+ collisions: Ie,
2882
+ delta: it,
2793
2883
  over: ot
2794
- }, ie === te.DragEnd && typeof it == "function" && await Promise.resolve(it(Ye)) && (ie = te.DragCancel);
2884
+ }, se === te.DragEnd && typeof st == "function" && await Promise.resolve(st(Ye)) && (se = te.DragCancel);
2795
2885
  }
2796
2886
  M.current = null, Ct(() => {
2797
2887
  w({
2798
- type: ie
2888
+ type: se
2799
2889
  }), O(Fe.Uninitialized), zn(null), y(null), C(null), Qt.current = null;
2800
- const it = ie === te.DragEnd ? "onDragEnd" : "onDragCancel";
2890
+ const st = se === te.DragEnd ? "onDragEnd" : "onDragCancel";
2801
2891
  if (Ye) {
2802
- const en = I.current[it];
2892
+ const en = k.current[st];
2803
2893
  en?.(Ye), R({
2804
- type: it,
2894
+ type: st,
2805
2895
  event: Ye
2806
2896
  });
2807
2897
  }
@@ -2811,39 +2901,39 @@ const Ur = /* @__PURE__ */ po(function(t) {
2811
2901
  },
2812
2902
  // eslint-disable-next-line react-hooks/exhaustive-deps
2813
2903
  [N]
2814
- ), lo = le((ce, ge) => (pe, ze) => {
2815
- const be = pe.nativeEvent, ve = N.get(ze);
2904
+ ), uo = le((ce, pe) => (ve, ze) => {
2905
+ const be = ve.nativeEvent, me = N.get(ze);
2816
2906
  if (
2817
2907
  // Another sensor is already instantiating
2818
2908
  M.current !== null || // No active draggable
2819
- !ve || // Event has already been captured
2909
+ !me || // Event has already been captured
2820
2910
  be.dndKit || be.defaultPrevented
2821
2911
  )
2822
2912
  return;
2823
2913
  const Ce = {
2824
- active: ve
2914
+ active: me
2825
2915
  };
2826
- ce(pe, ge.options, Ce) === !0 && (be.dndKit = {
2827
- capturedBy: ge.sensor
2828
- }, M.current = ze, Pn(pe, ge));
2829
- }, [N, Pn]), Yn = Os(f, lo);
2830
- zs(f), Te(() => {
2916
+ ce(ve, pe.options, Ce) === !0 && (be.dndKit = {
2917
+ capturedBy: pe.sensor
2918
+ }, M.current = ze, Pn(ve, pe));
2919
+ }, [N, Pn]), Yn = zi(f, uo);
2920
+ Ui(f), Te(() => {
2831
2921
  z && _ === Fe.Initializing && O(Fe.Initialized);
2832
2922
  }, [z, _]), H(
2833
2923
  () => {
2834
2924
  const {
2835
2925
  onDragMove: ce
2836
- } = I.current, {
2837
- active: ge,
2838
- activatorEvent: pe,
2926
+ } = k.current, {
2927
+ active: pe,
2928
+ activatorEvent: ve,
2839
2929
  collisions: ze,
2840
2930
  over: be
2841
2931
  } = ae.current;
2842
- if (!ge || !pe)
2932
+ if (!pe || !ve)
2843
2933
  return;
2844
- const ve = {
2845
- active: ge,
2846
- activatorEvent: pe,
2934
+ const me = {
2935
+ active: pe,
2936
+ activatorEvent: ve,
2847
2937
  collisions: ze,
2848
2938
  delta: {
2849
2939
  x: Ge.x,
@@ -2852,9 +2942,9 @@ const Ur = /* @__PURE__ */ po(function(t) {
2852
2942
  over: be
2853
2943
  };
2854
2944
  Ct(() => {
2855
- ce?.(ve), R({
2945
+ ce?.(me), R({
2856
2946
  type: "onDragMove",
2857
- event: ve
2947
+ event: me
2858
2948
  });
2859
2949
  });
2860
2950
  },
@@ -2864,24 +2954,24 @@ const Ur = /* @__PURE__ */ po(function(t) {
2864
2954
  () => {
2865
2955
  const {
2866
2956
  active: ce,
2867
- activatorEvent: ge,
2868
- collisions: pe,
2957
+ activatorEvent: pe,
2958
+ collisions: ve,
2869
2959
  droppableContainers: ze,
2870
2960
  scrollAdjustedTranslate: be
2871
2961
  } = ae.current;
2872
- if (!ce || M.current == null || !ge || !be)
2962
+ if (!ce || M.current == null || !pe || !be)
2873
2963
  return;
2874
2964
  const {
2875
- onDragOver: ve
2876
- } = I.current, Ce = ze.get(Nn), qe = Ce && Ce.rect.current ? {
2965
+ onDragOver: me
2966
+ } = k.current, Ce = ze.get(Nn), qe = Ce && Ce.rect.current ? {
2877
2967
  id: Ce.id,
2878
2968
  rect: Ce.rect.current,
2879
2969
  data: Ce.data,
2880
2970
  disabled: Ce.disabled
2881
- } : null, ie = {
2971
+ } : null, se = {
2882
2972
  active: ce,
2883
- activatorEvent: ge,
2884
- collisions: pe,
2973
+ activatorEvent: pe,
2974
+ collisions: ve,
2885
2975
  delta: {
2886
2976
  x: be.x,
2887
2977
  y: be.y
@@ -2889,9 +2979,9 @@ const Ur = /* @__PURE__ */ po(function(t) {
2889
2979
  over: qe
2890
2980
  };
2891
2981
  Ct(() => {
2892
- zn(qe), ve?.(ie), R({
2982
+ zn(qe), me?.(se), R({
2893
2983
  type: "onDragOver",
2894
- event: ie
2984
+ event: se
2895
2985
  });
2896
2986
  });
2897
2987
  },
@@ -2900,7 +2990,7 @@ const Ur = /* @__PURE__ */ po(function(t) {
2900
2990
  ), Te(() => {
2901
2991
  ae.current = {
2902
2992
  activatorEvent: j,
2903
- active: se,
2993
+ active: ie,
2904
2994
  activeNode: X,
2905
2995
  collisionRect: Xe,
2906
2996
  collisions: rt,
@@ -2916,7 +3006,7 @@ const Ur = /* @__PURE__ */ po(function(t) {
2916
3006
  initial: Ue,
2917
3007
  translated: Xe
2918
3008
  };
2919
- }, [se, X, rt, Xe, N, Be, Ue, A, Y, Ne, Le, Ge]), js({
3009
+ }, [ie, X, rt, Xe, N, Be, Ue, A, Y, Ne, Le, Ge]), ki({
2920
3010
  ...J,
2921
3011
  delta: W,
2922
3012
  draggingRect: Xe,
@@ -2924,8 +3014,8 @@ const Ur = /* @__PURE__ */ po(function(t) {
2924
3014
  scrollableAncestors: Le,
2925
3015
  scrollableAncestorRects: St
2926
3016
  });
2927
- const uo = B(() => ({
2928
- active: se,
3017
+ const fo = B(() => ({
3018
+ active: ie,
2929
3019
  activeNode: X,
2930
3020
  activeNodeRect: z,
2931
3021
  activatorEvent: j,
@@ -2942,10 +3032,10 @@ const Ur = /* @__PURE__ */ po(function(t) {
2942
3032
  measuringConfiguration: S,
2943
3033
  measuringScheduled: G,
2944
3034
  windowRect: Zt
2945
- }), [se, X, z, j, rt, de, $e, N, Y, A, Ne, P, Le, St, S, G, Zt]), fo = B(() => ({
3035
+ }), [ie, X, z, j, rt, de, $e, N, Y, A, Ne, P, Le, St, S, G, Zt]), ho = B(() => ({
2946
3036
  activatorEvent: j,
2947
3037
  activators: Yn,
2948
- active: se,
3038
+ active: ie,
2949
3039
  activeNodeRect: z,
2950
3040
  ariaDescribedById: {
2951
3041
  draggable: L
@@ -2954,39 +3044,39 @@ const Ur = /* @__PURE__ */ po(function(t) {
2954
3044
  draggableNodes: N,
2955
3045
  over: Ne,
2956
3046
  measureDroppableContainers: P
2957
- }), [j, Yn, se, z, w, L, N, Ne, P]);
2958
- return ne.createElement(Mr.Provider, {
3047
+ }), [j, Yn, ie, z, w, L, N, Ne, P]);
3048
+ return ne.createElement(Ir.Provider, {
2959
3049
  value: E
2960
3050
  }, ne.createElement(qt.Provider, {
3051
+ value: ho
3052
+ }, ne.createElement(Ur.Provider, {
2961
3053
  value: fo
2962
- }, ne.createElement(Wr.Provider, {
2963
- value: uo
2964
- }, ne.createElement(Br.Provider, {
2965
- value: co
2966
- }, u)), ne.createElement(qs, {
3054
+ }, ne.createElement(Gr.Provider, {
3055
+ value: lo
3056
+ }, u)), ne.createElement(rs, {
2967
3057
  disabled: c?.restoreFocus === !1
2968
- })), ne.createElement(Xo, {
3058
+ })), ne.createElement(ni, {
2969
3059
  ...c,
2970
3060
  hiddenTextDescribedById: L
2971
3061
  }));
2972
- function ho() {
2973
- const ce = D?.autoScrollEnabled === !1, ge = typeof l == "object" ? l.enabled === !1 : l === !1, pe = T && !ce && !ge;
3062
+ function go() {
3063
+ const ce = D?.autoScrollEnabled === !1, pe = typeof l == "object" ? l.enabled === !1 : l === !1, ve = T && !ce && !pe;
2974
3064
  return typeof l == "object" ? {
2975
3065
  ...l,
2976
- enabled: pe
3066
+ enabled: ve
2977
3067
  } : {
2978
- enabled: pe
3068
+ enabled: ve
2979
3069
  };
2980
3070
  }
2981
- }), Qs = /* @__PURE__ */ vt(null), dr = "button", ei = "Draggable";
2982
- function ti(e) {
3071
+ }), as = /* @__PURE__ */ vt(null), dr = "button", cs = "Draggable";
3072
+ function ls(e) {
2983
3073
  let {
2984
3074
  id: t,
2985
3075
  data: n,
2986
3076
  disabled: r = !1,
2987
3077
  attributes: o
2988
3078
  } = e;
2989
- const s = wt(ei), {
3079
+ const i = wt(cs), {
2990
3080
  activators: a,
2991
3081
  activatorEvent: c,
2992
3082
  active: l,
@@ -2998,17 +3088,17 @@ function ti(e) {
2998
3088
  role: p = dr,
2999
3089
  roleDescription: v = "draggable",
3000
3090
  tabIndex: h = 0
3001
- } = o ?? {}, b = l?.id === t, w = He(b ? Br : Qs), [R, E] = Pt(), [_, O] = Pt(), T = Ps(a, t), $ = gt(n);
3091
+ } = o ?? {}, b = l?.id === t, w = He(b ? Gr : as), [R, E] = Pt(), [_, O] = Pt(), T = Gi(a, t), $ = gt(n);
3002
3092
  Te(
3003
3093
  () => (d.set(t, {
3004
3094
  id: t,
3005
- key: s,
3095
+ key: i,
3006
3096
  node: R,
3007
3097
  activatorNode: _,
3008
3098
  data: $
3009
3099
  }), () => {
3010
3100
  const W = d.get(t);
3011
- W && W.key === s && d.delete(t);
3101
+ W && W.key === i && d.delete(t);
3012
3102
  }),
3013
3103
  // eslint-disable-next-line react-hooks/exhaustive-deps
3014
3104
  [d, t]
@@ -3035,20 +3125,20 @@ function ti(e) {
3035
3125
  transform: w
3036
3126
  };
3037
3127
  }
3038
- function ni() {
3039
- return He(Wr);
3128
+ function us() {
3129
+ return He(Ur);
3040
3130
  }
3041
- const ri = "Droppable", oi = {
3131
+ const ds = "Droppable", fs = {
3042
3132
  timeout: 25
3043
3133
  };
3044
- function si(e) {
3134
+ function hs(e) {
3045
3135
  let {
3046
3136
  data: t,
3047
3137
  disabled: n = !1,
3048
3138
  id: r,
3049
3139
  resizeObserverConfig: o
3050
3140
  } = e;
3051
- const s = wt(ri), {
3141
+ const i = wt(ds), {
3052
3142
  active: a,
3053
3143
  dispatch: c,
3054
3144
  over: l,
@@ -3060,7 +3150,7 @@ function si(e) {
3060
3150
  updateMeasurementsFor: h,
3061
3151
  timeout: b
3062
3152
  } = {
3063
- ...oi,
3153
+ ...fs,
3064
3154
  ...o
3065
3155
  }, w = gt(h ?? r), R = le(
3066
3156
  () => {
@@ -3087,7 +3177,7 @@ function si(e) {
3087
3177
  type: te.RegisterDroppable,
3088
3178
  element: {
3089
3179
  id: r,
3090
- key: s,
3180
+ key: i,
3091
3181
  disabled: n,
3092
3182
  node: O,
3093
3183
  rect: m,
@@ -3095,7 +3185,7 @@ function si(e) {
3095
3185
  }
3096
3186
  }), () => c({
3097
3187
  type: te.UnregisterDroppable,
3098
- key: s,
3188
+ key: i,
3099
3189
  id: r
3100
3190
  })),
3101
3191
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -3104,10 +3194,10 @@ function si(e) {
3104
3194
  n !== f.current.disabled && (c({
3105
3195
  type: te.SetDroppableDisabled,
3106
3196
  id: r,
3107
- key: s,
3197
+ key: i,
3108
3198
  disabled: n
3109
3199
  }), f.current.disabled = n);
3110
- }, [r, s, n, c]), {
3200
+ }, [r, i, n, c]), {
3111
3201
  active: a,
3112
3202
  rect: m,
3113
3203
  isOver: l?.id === r,
@@ -3120,16 +3210,16 @@ function Kt(e, t, n) {
3120
3210
  const r = e.slice();
3121
3211
  return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
3122
3212
  }
3123
- function ii(e, t) {
3213
+ function gs(e, t) {
3124
3214
  return e.reduce((n, r, o) => {
3125
- const s = t.get(r);
3126
- return s && (n[o] = s), n;
3215
+ const i = t.get(r);
3216
+ return i && (n[o] = i), n;
3127
3217
  }, Array(e.length));
3128
3218
  }
3129
3219
  function Tt(e) {
3130
3220
  return e !== null && e >= 0;
3131
3221
  }
3132
- function ai(e, t) {
3222
+ function ps(e, t) {
3133
3223
  if (e === t)
3134
3224
  return !0;
3135
3225
  if (e.length !== t.length)
@@ -3139,7 +3229,7 @@ function ai(e, t) {
3139
3229
  return !1;
3140
3230
  return !0;
3141
3231
  }
3142
- function ci(e) {
3232
+ function vs(e) {
3143
3233
  return typeof e == "boolean" ? {
3144
3234
  draggable: e,
3145
3235
  droppable: e
@@ -3148,32 +3238,32 @@ function ci(e) {
3148
3238
  const Ot = {
3149
3239
  scaleX: 1,
3150
3240
  scaleY: 1
3151
- }, li = (e) => {
3241
+ }, ms = (e) => {
3152
3242
  var t;
3153
3243
  let {
3154
3244
  rects: n,
3155
3245
  activeNodeRect: r,
3156
3246
  activeIndex: o,
3157
- overIndex: s,
3247
+ overIndex: i,
3158
3248
  index: a
3159
3249
  } = e;
3160
3250
  const c = (t = n[o]) != null ? t : r;
3161
3251
  if (!c)
3162
3252
  return null;
3163
- const l = ui(n, a, o);
3253
+ const l = bs(n, a, o);
3164
3254
  if (a === o) {
3165
- const u = n[s];
3255
+ const u = n[i];
3166
3256
  return u ? {
3167
- x: o < s ? u.left + u.width - (c.left + c.width) : u.left - c.left,
3257
+ x: o < i ? u.left + u.width - (c.left + c.width) : u.left - c.left,
3168
3258
  y: 0,
3169
3259
  ...Ot
3170
3260
  } : null;
3171
3261
  }
3172
- return a > o && a <= s ? {
3262
+ return a > o && a <= i ? {
3173
3263
  x: -c.width - l,
3174
3264
  y: 0,
3175
3265
  ...Ot
3176
- } : a < o && a >= s ? {
3266
+ } : a < o && a >= i ? {
3177
3267
  x: c.width + l,
3178
3268
  y: 0,
3179
3269
  ...Ot
@@ -3183,18 +3273,18 @@ const Ot = {
3183
3273
  ...Ot
3184
3274
  };
3185
3275
  };
3186
- function ui(e, t, n) {
3187
- const r = e[t], o = e[t - 1], s = e[t + 1];
3188
- return !r || !o && !s ? 0 : n < t ? o ? r.left - (o.left + o.width) : s.left - (r.left + r.width) : s ? s.left - (r.left + r.width) : r.left - (o.left + o.width);
3276
+ function bs(e, t, n) {
3277
+ const r = e[t], o = e[t - 1], i = e[t + 1];
3278
+ return !r || !o && !i ? 0 : n < t ? o ? r.left - (o.left + o.width) : i.left - (r.left + r.width) : i ? i.left - (r.left + r.width) : r.left - (o.left + o.width);
3189
3279
  }
3190
- const Gr = (e) => {
3280
+ const qr = (e) => {
3191
3281
  let {
3192
3282
  rects: t,
3193
3283
  activeIndex: n,
3194
3284
  overIndex: r,
3195
3285
  index: o
3196
3286
  } = e;
3197
- const s = Kt(t, r, n), a = t[o], c = s[o];
3287
+ const i = Kt(t, r, n), a = t[o], c = i[o];
3198
3288
  return !c || !a ? null : {
3199
3289
  x: c.left - a.left,
3200
3290
  y: c.top - a.top,
@@ -3204,27 +3294,27 @@ const Gr = (e) => {
3204
3294
  }, Mt = {
3205
3295
  scaleX: 1,
3206
3296
  scaleY: 1
3207
- }, di = (e) => {
3297
+ }, xs = (e) => {
3208
3298
  var t;
3209
3299
  let {
3210
3300
  activeIndex: n,
3211
3301
  activeNodeRect: r,
3212
3302
  index: o,
3213
- rects: s,
3303
+ rects: i,
3214
3304
  overIndex: a
3215
3305
  } = e;
3216
- const c = (t = s[n]) != null ? t : r;
3306
+ const c = (t = i[n]) != null ? t : r;
3217
3307
  if (!c)
3218
3308
  return null;
3219
3309
  if (o === n) {
3220
- const u = s[a];
3310
+ const u = i[a];
3221
3311
  return u ? {
3222
3312
  x: 0,
3223
3313
  y: n < a ? u.top + u.height - (c.top + c.height) : u.top - c.top,
3224
3314
  ...Mt
3225
3315
  } : null;
3226
3316
  }
3227
- const l = fi(s, o, n);
3317
+ const l = ys(i, o, n);
3228
3318
  return o > n && o <= a ? {
3229
3319
  x: 0,
3230
3320
  y: -c.height - l,
@@ -3239,31 +3329,31 @@ const Gr = (e) => {
3239
3329
  ...Mt
3240
3330
  };
3241
3331
  };
3242
- function fi(e, t, n) {
3243
- const r = e[t], o = e[t - 1], s = e[t + 1];
3244
- 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;
3332
+ function ys(e, t, n) {
3333
+ const r = e[t], o = e[t - 1], i = e[t + 1];
3334
+ return r ? n < t ? o ? r.top - (o.top + o.height) : i ? i.top - (r.top + r.height) : 0 : i ? i.top - (r.top + r.height) : o ? r.top - (o.top + o.height) : 0 : 0;
3245
3335
  }
3246
- const Xr = "Sortable", qr = /* @__PURE__ */ ne.createContext({
3336
+ const Kr = "Sortable", Jr = /* @__PURE__ */ ne.createContext({
3247
3337
  activeIndex: -1,
3248
- containerId: Xr,
3338
+ containerId: Kr,
3249
3339
  disableTransforms: !1,
3250
3340
  items: [],
3251
3341
  overIndex: -1,
3252
3342
  useDragOverlay: !1,
3253
3343
  sortedRects: [],
3254
- strategy: Gr,
3344
+ strategy: qr,
3255
3345
  disabled: {
3256
3346
  draggable: !1,
3257
3347
  droppable: !1
3258
3348
  }
3259
3349
  });
3260
- function Kr(e) {
3350
+ function Zr(e) {
3261
3351
  let {
3262
3352
  children: t,
3263
3353
  id: n,
3264
3354
  items: r,
3265
- strategy: o = Gr,
3266
- disabled: s = !1
3355
+ strategy: o = qr,
3356
+ disabled: i = !1
3267
3357
  } = e;
3268
3358
  const {
3269
3359
  active: a,
@@ -3271,7 +3361,7 @@ function Kr(e) {
3271
3361
  droppableRects: l,
3272
3362
  over: u,
3273
3363
  measureDroppableContainers: f
3274
- } = ni(), d = wt(Xr, n), m = c.rect !== null, p = B(() => r.map((T) => typeof T == "object" && "id" in T ? T.id : T), [r]), v = a != null, h = a ? p.indexOf(a.id) : -1, b = u ? p.indexOf(u.id) : -1, w = U(p), R = !ai(p, w.current), E = b !== -1 && h === -1 || R, _ = ci(s);
3364
+ } = us(), d = wt(Kr, n), m = c.rect !== null, p = B(() => r.map((T) => typeof T == "object" && "id" in T ? T.id : T), [r]), v = a != null, h = a ? p.indexOf(a.id) : -1, b = u ? p.indexOf(u.id) : -1, w = U(p), R = !ps(p, w.current), E = b !== -1 && h === -1 || R, _ = vs(i);
3275
3365
  Te(() => {
3276
3366
  R && v && f(p);
3277
3367
  }, [R, p, v, f]), H(() => {
@@ -3286,17 +3376,17 @@ function Kr(e) {
3286
3376
  items: p,
3287
3377
  overIndex: b,
3288
3378
  useDragOverlay: m,
3289
- sortedRects: ii(p, l),
3379
+ sortedRects: gs(p, l),
3290
3380
  strategy: o
3291
3381
  }),
3292
3382
  // eslint-disable-next-line react-hooks/exhaustive-deps
3293
3383
  [h, d, _.draggable, _.droppable, E, p, b, l, m, o]
3294
3384
  );
3295
- return ne.createElement(qr.Provider, {
3385
+ return ne.createElement(Jr.Provider, {
3296
3386
  value: O
3297
3387
  }, t);
3298
3388
  }
3299
- const hi = (e) => {
3389
+ const ws = (e) => {
3300
3390
  let {
3301
3391
  id: t,
3302
3392
  items: n,
@@ -3304,37 +3394,37 @@ const hi = (e) => {
3304
3394
  overIndex: o
3305
3395
  } = e;
3306
3396
  return Kt(n, r, o).indexOf(t);
3307
- }, gi = (e) => {
3397
+ }, Ss = (e) => {
3308
3398
  let {
3309
3399
  containerId: t,
3310
3400
  isSorting: n,
3311
3401
  wasDragging: r,
3312
3402
  index: o,
3313
- items: s,
3403
+ items: i,
3314
3404
  newIndex: a,
3315
3405
  previousItems: c,
3316
3406
  previousContainerId: l,
3317
3407
  transition: u
3318
3408
  } = e;
3319
- return !u || !r || c !== s && o === a ? !1 : n ? !0 : a !== o && t === l;
3320
- }, pi = {
3409
+ return !u || !r || c !== i && o === a ? !1 : n ? !0 : a !== o && t === l;
3410
+ }, Ds = {
3321
3411
  duration: 200,
3322
3412
  easing: "ease"
3323
- }, Jr = "transform", vi = /* @__PURE__ */ Ze.Transition.toString({
3324
- property: Jr,
3413
+ }, Qr = "transform", Cs = /* @__PURE__ */ Ze.Transition.toString({
3414
+ property: Qr,
3325
3415
  duration: 0,
3326
3416
  easing: "linear"
3327
- }), mi = {
3417
+ }), Rs = {
3328
3418
  roleDescription: "sortable"
3329
3419
  };
3330
- function bi(e) {
3420
+ function js(e) {
3331
3421
  let {
3332
3422
  disabled: t,
3333
3423
  index: n,
3334
3424
  node: r,
3335
3425
  rect: o
3336
3426
  } = e;
3337
- const [s, a] = oe(null), c = U(n);
3427
+ const [i, a] = oe(null), c = U(n);
3338
3428
  return Te(() => {
3339
3429
  if (!t && n !== c.current && r.current) {
3340
3430
  const l = o.current;
@@ -3352,20 +3442,20 @@ function bi(e) {
3352
3442
  }
3353
3443
  n !== c.current && (c.current = n);
3354
3444
  }, [t, n, r, o]), H(() => {
3355
- s && a(null);
3356
- }, [s]), s;
3445
+ i && a(null);
3446
+ }, [i]), i;
3357
3447
  }
3358
- function Zr(e) {
3448
+ function eo(e) {
3359
3449
  let {
3360
- animateLayoutChanges: t = gi,
3450
+ animateLayoutChanges: t = Ss,
3361
3451
  attributes: n,
3362
3452
  disabled: r,
3363
3453
  data: o,
3364
- getNewIndex: s = hi,
3454
+ getNewIndex: i = ws,
3365
3455
  id: a,
3366
3456
  strategy: c,
3367
3457
  resizeObserverConfig: l,
3368
- transition: u = pi
3458
+ transition: u = Ds
3369
3459
  } = e;
3370
3460
  const {
3371
3461
  items: f,
@@ -3377,7 +3467,7 @@ function Zr(e) {
3377
3467
  overIndex: b,
3378
3468
  useDragOverlay: w,
3379
3469
  strategy: R
3380
- } = He(qr), E = xi(r, p), _ = f.indexOf(a), O = B(() => ({
3470
+ } = He(Jr), E = Es(r, p), _ = f.indexOf(a), O = B(() => ({
3381
3471
  sortable: {
3382
3472
  containerId: d,
3383
3473
  index: _,
@@ -3389,7 +3479,7 @@ function Zr(e) {
3389
3479
  node: N,
3390
3480
  isOver: W,
3391
3481
  setNodeRef: Y
3392
- } = si({
3482
+ } = hs({
3393
3483
  id: a,
3394
3484
  data: O,
3395
3485
  disabled: E.droppable,
@@ -3398,42 +3488,42 @@ function Zr(e) {
3398
3488
  ...l
3399
3489
  }
3400
3490
  }), {
3401
- active: k,
3491
+ active: I,
3402
3492
  activatorEvent: Q,
3403
- activeNodeRect: se,
3493
+ activeNodeRect: ie,
3404
3494
  attributes: M,
3405
3495
  setNodeRef: D,
3406
3496
  listeners: y,
3407
3497
  isDragging: j,
3408
3498
  over: C,
3409
- setActivatorNodeRef: I,
3499
+ setActivatorNodeRef: k,
3410
3500
  transform: L
3411
- } = ti({
3501
+ } = ls({
3412
3502
  id: a,
3413
3503
  data: O,
3414
3504
  attributes: {
3415
- ...mi,
3505
+ ...Rs,
3416
3506
  ...n
3417
3507
  },
3418
3508
  disabled: E.draggable
3419
- }), g = Ao(Y, D), S = !!k, A = S && !v && Tt(m) && Tt(b), P = !w && j, G = P && A ? L : null, F = A ? G ?? (c ?? R)({
3509
+ }), g = Ho(Y, D), S = !!I, A = S && !v && Tt(m) && Tt(b), P = !w && j, G = P && A ? L : null, F = A ? G ?? (c ?? R)({
3420
3510
  rects: h,
3421
- activeNodeRect: se,
3511
+ activeNodeRect: ie,
3422
3512
  activeIndex: m,
3423
3513
  overIndex: b,
3424
3514
  index: _
3425
- }) : null, J = Tt(m) && Tt(b) ? s({
3515
+ }) : null, J = Tt(m) && Tt(b) ? i({
3426
3516
  id: a,
3427
3517
  items: f,
3428
3518
  activeIndex: m,
3429
3519
  overIndex: b
3430
- }) : _, Z = k?.id, z = U({
3520
+ }) : _, Z = I?.id, z = U({
3431
3521
  activeId: Z,
3432
3522
  items: f,
3433
3523
  newIndex: J,
3434
3524
  containerId: d
3435
3525
  }), de = f !== z.current.items, ae = t({
3436
- active: k,
3526
+ active: I,
3437
3527
  containerId: d,
3438
3528
  isDragging: j,
3439
3529
  isSorting: S,
@@ -3445,7 +3535,7 @@ function Zr(e) {
3445
3535
  previousContainerId: z.current.containerId,
3446
3536
  transition: u,
3447
3537
  wasDragging: z.current.activeId != null
3448
- }), ye = bi({
3538
+ }), ye = js({
3449
3539
  disabled: !ae,
3450
3540
  index: _,
3451
3541
  node: N,
@@ -3465,7 +3555,7 @@ function Zr(e) {
3465
3555
  }, 50);
3466
3556
  return () => clearTimeout(Be);
3467
3557
  }, [Z]), {
3468
- active: k,
3558
+ active: I,
3469
3559
  activeIndex: m,
3470
3560
  attributes: M,
3471
3561
  data: O,
@@ -3481,7 +3571,7 @@ function Zr(e) {
3481
3571
  overIndex: b,
3482
3572
  over: C,
3483
3573
  setNodeRef: g,
3484
- setActivatorNodeRef: I,
3574
+ setActivatorNodeRef: k,
3485
3575
  setDroppableNodeRef: Y,
3486
3576
  setDraggableNodeRef: D,
3487
3577
  transform: ye ?? F,
@@ -3493,15 +3583,15 @@ function Zr(e) {
3493
3583
  ye || // Or to prevent items jumping to back to their "new" position when items change
3494
3584
  de && z.current.newIndex === _
3495
3585
  )
3496
- return vi;
3586
+ return Cs;
3497
3587
  if (!(P && !jn(Q) || !u) && (S || ae))
3498
3588
  return Ze.Transition.toString({
3499
3589
  ...u,
3500
- property: Jr
3590
+ property: Qr
3501
3591
  });
3502
3592
  }
3503
3593
  }
3504
- function xi(e, t) {
3594
+ function Es(e, t) {
3505
3595
  var n, r;
3506
3596
  return typeof e == "boolean" ? {
3507
3597
  draggable: e,
@@ -3513,18 +3603,18 @@ function xi(e, t) {
3513
3603
  };
3514
3604
  }
3515
3605
  V.Down, V.Right, V.Up, V.Left;
3516
- const yi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), wi = (e) => e.replace(
3606
+ const _s = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ts = (e) => e.replace(
3517
3607
  /^([A-Z])|[\s-_]+(\w)/g,
3518
3608
  (t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
3519
3609
  ), fr = (e) => {
3520
- const t = wi(e);
3610
+ const t = Ts(e);
3521
3611
  return t.charAt(0).toUpperCase() + t.slice(1);
3522
- }, Qr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), Si = (e) => {
3612
+ }, to = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), Os = (e) => {
3523
3613
  for (const t in e)
3524
3614
  if (t.startsWith("aria-") || t === "role" || t === "title")
3525
3615
  return !0;
3526
3616
  };
3527
- var Di = {
3617
+ var Ms = {
3528
3618
  xmlns: "http://www.w3.org/2000/svg",
3529
3619
  width: 24,
3530
3620
  height: 24,
@@ -3535,42 +3625,42 @@ var Di = {
3535
3625
  strokeLinecap: "round",
3536
3626
  strokeLinejoin: "round"
3537
3627
  };
3538
- const Ci = wn(
3628
+ const $s = wn(
3539
3629
  ({
3540
3630
  color: e = "currentColor",
3541
3631
  size: t = 24,
3542
3632
  strokeWidth: n = 2,
3543
3633
  absoluteStrokeWidth: r,
3544
3634
  className: o = "",
3545
- children: s,
3635
+ children: i,
3546
3636
  iconNode: a,
3547
3637
  ...c
3548
3638
  }, l) => hn(
3549
3639
  "svg",
3550
3640
  {
3551
3641
  ref: l,
3552
- ...Di,
3642
+ ...Ms,
3553
3643
  width: t,
3554
3644
  height: t,
3555
3645
  stroke: e,
3556
3646
  strokeWidth: r ? Number(n) * 24 / Number(t) : n,
3557
- className: Qr("lucide", o),
3558
- ...!s && !Si(c) && { "aria-hidden": "true" },
3647
+ className: to("lucide", o),
3648
+ ...!i && !Os(c) && { "aria-hidden": "true" },
3559
3649
  ...c
3560
3650
  },
3561
3651
  [
3562
3652
  ...a.map(([u, f]) => hn(u, f)),
3563
- ...Array.isArray(s) ? s : [s]
3653
+ ...Array.isArray(i) ? i : [i]
3564
3654
  ]
3565
3655
  )
3566
3656
  );
3567
3657
  const ue = (e, t) => {
3568
3658
  const n = wn(
3569
- ({ className: r, ...o }, s) => hn(Ci, {
3570
- ref: s,
3659
+ ({ className: r, ...o }, i) => hn($s, {
3660
+ ref: i,
3571
3661
  iconNode: t,
3572
- className: Qr(
3573
- `lucide-${yi(fr(e))}`,
3662
+ className: to(
3663
+ `lucide-${_s(fr(e))}`,
3574
3664
  `lucide-${e}`,
3575
3665
  r
3576
3666
  ),
@@ -3579,36 +3669,36 @@ const ue = (e, t) => {
3579
3669
  );
3580
3670
  return n.displayName = fr(e), n;
3581
3671
  };
3582
- const Ri = [
3672
+ const Is = [
3583
3673
  ["path", { d: "M12 5v14", key: "s699le" }],
3584
3674
  ["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
3585
- ], ji = ue("arrow-down", Ri);
3586
- const Ei = [
3675
+ ], ks = ue("arrow-down", Is);
3676
+ const As = [
3587
3677
  ["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }],
3588
3678
  ["path", { d: "M17 20V4", key: "1ejh1v" }],
3589
3679
  ["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
3590
3680
  ["path", { d: "M7 4v16", key: "1glfcx" }]
3591
- ], _i = ue("arrow-up-down", Ei);
3592
- const Ti = [
3681
+ ], Ls = ue("arrow-up-down", As);
3682
+ const Ns = [
3593
3683
  ["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
3594
3684
  ["path", { d: "M12 19V5", key: "x0mq9r" }]
3595
- ], Oi = ue("arrow-up", Ti);
3596
- const Mi = [
3685
+ ], zs = ue("arrow-up", Ns);
3686
+ const Ps = [
3597
3687
  ["path", { d: "m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z", key: "1fy3hk" }]
3598
- ], $i = ue("bookmark", Mi);
3599
- const ki = [
3688
+ ], Ys = ue("bookmark", Ps);
3689
+ const Fs = [
3600
3690
  ["path", { d: "M8 2v4", key: "1cmpym" }],
3601
3691
  ["path", { d: "M16 2v4", key: "4m81vk" }],
3602
3692
  ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
3603
3693
  ["path", { d: "M3 10h18", key: "8toen8" }]
3604
- ], hr = ue("calendar", ki);
3605
- const Ii = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Ai = ue("chevron-left", Ii);
3606
- const Li = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Ni = ue("chevron-right", Li);
3607
- const zi = [
3694
+ ], hr = ue("calendar", Fs);
3695
+ const Vs = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Hs = ue("chevron-left", Vs);
3696
+ const Ws = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Bs = ue("chevron-right", Ws);
3697
+ const Us = [
3608
3698
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
3609
3699
  ["path", { d: "M12 3v18", key: "108xh3" }]
3610
- ], Pi = ue("columns-2", zi);
3611
- const Yi = [
3700
+ ], Gs = ue("columns-2", Us);
3701
+ const Xs = [
3612
3702
  [
3613
3703
  "path",
3614
3704
  {
@@ -3618,13 +3708,13 @@ const Yi = [
3618
3708
  ],
3619
3709
  ["path", { d: "m12 9 6 6", key: "anjzzh" }],
3620
3710
  ["path", { d: "m18 9-6 6", key: "1fp51s" }]
3621
- ], Fi = ue("delete", Yi);
3622
- const Vi = [
3711
+ ], qs = ue("delete", Xs);
3712
+ const Ks = [
3623
3713
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
3624
3714
  ["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
3625
3715
  ["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
3626
- ], Hi = ue("ellipsis", Vi);
3627
- const Wi = [
3716
+ ], Js = ue("ellipsis", Ks);
3717
+ const Zs = [
3628
3718
  [
3629
3719
  "path",
3630
3720
  {
@@ -3632,16 +3722,16 @@ const Wi = [
3632
3722
  key: "sc7q7i"
3633
3723
  }
3634
3724
  ]
3635
- ], Bi = ue("funnel", Wi);
3636
- const Ui = [
3725
+ ], Qs = ue("funnel", Zs);
3726
+ const ea = [
3637
3727
  ["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
3638
3728
  ["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
3639
3729
  ["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
3640
3730
  ["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
3641
3731
  ["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
3642
3732
  ["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
3643
- ], eo = ue("grip-vertical", Ui);
3644
- const Gi = [
3733
+ ], no = ue("grip-vertical", ea);
3734
+ const ta = [
3645
3735
  [
3646
3736
  "path",
3647
3737
  {
@@ -3649,14 +3739,14 @@ const Gi = [
3649
3739
  key: "1a8usu"
3650
3740
  }
3651
3741
  ]
3652
- ], Xi = ue("pen", Gi);
3653
- const qi = [
3742
+ ], na = ue("pen", ta);
3743
+ const ra = [
3654
3744
  ["path", { d: "M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "14sxne" }],
3655
3745
  ["path", { d: "M3 3v5h5", key: "1xhq8a" }],
3656
3746
  ["path", { d: "M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16", key: "1hlbsb" }],
3657
3747
  ["path", { d: "M16 16h5v5", key: "ccwih5" }]
3658
- ], Ki = ue("refresh-ccw", qi);
3659
- const Ji = [
3748
+ ], oa = ue("refresh-ccw", ra);
3749
+ const ia = [
3660
3750
  [
3661
3751
  "path",
3662
3752
  {
@@ -3665,8 +3755,8 @@ const Ji = [
3665
3755
  }
3666
3756
  ],
3667
3757
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
3668
- ], Zi = ue("settings", Ji);
3669
- const Qi = [
3758
+ ], sa = ue("settings", ia);
3759
+ const aa = [
3670
3760
  [
3671
3761
  "path",
3672
3762
  {
@@ -3676,113 +3766,42 @@ const Qi = [
3676
3766
  ],
3677
3767
  ["path", { d: "M12 9v4", key: "juzpu7" }],
3678
3768
  ["path", { d: "M12 17h.01", key: "p32p05" }]
3679
- ], ea = ue("triangle-alert", Qi);
3769
+ ], ca = ue("triangle-alert", aa);
3680
3770
  function x(e) {
3681
3771
  return wn((t, n) => {
3682
3772
  const { children: r, ...o } = t;
3683
3773
  return (
3684
3774
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3685
- /* @__PURE__ */ i.jsx(e, { ref: n, ...o, children: r })
3775
+ /* @__PURE__ */ s.jsx(e, { ref: n, ...o, children: r })
3686
3776
  );
3687
3777
  });
3688
3778
  }
3689
- const to = (e) => `table_column_order_v1:${e}`, ta = (e) => {
3690
- const { tableId: t } = me.state;
3691
- localStorage.setItem(to(t), JSON.stringify(e.map((n) => n.id))), me.setState((n) => ({
3692
- ...n,
3693
- columnOrder: e
3694
- })), me.setState((n) => ({ ...n, columnOrder: e }));
3695
- }, na = (e) => {
3696
- me.setState((t) => ({
3697
- ...t,
3698
- visibility: { ...t.visibility, [e]: !t.visibility[e] }
3699
- }));
3700
- };
3701
- function ra(e) {
3702
- me.setState((t) => t.sortColumn === e ? {
3703
- ...t,
3704
- sortDirection: t.sortDirection === "asc" ? "desc" : "asc"
3705
- } : {
3706
- ...t,
3707
- sortColumn: e,
3708
- sortDirection: "asc"
3709
- });
3710
- }
3711
- const me = new _r({
3712
- tableId: "",
3713
- sortColumn: null,
3714
- sortDirection: "asc",
3715
- visibility: {},
3716
- columnOrder: [],
3717
- data: [],
3718
- sortableColumns: [],
3719
- // ← FIXED
3720
- actionsConfig: {
3721
- showActionColumn: !0,
3722
- showColumnVisibilityMenu: !0,
3723
- children: "Actions",
3724
- width: "100px"
3725
- }
3726
- });
3727
- function oa(e, t) {
3728
- const n = e[0] ?? {}, o = (t && t.length ? t : Object.keys(n).map((l) => ({ id: l, label: l }))).filter(
3729
- (l) => Object.prototype.hasOwnProperty.call(n, l.id)
3730
- ), { tableId: s } = me.state, a = JSON.parse(
3731
- localStorage.getItem(to(s)) || "[]"
3732
- ), c = [
3733
- ...a.map((l) => o.find((u) => u.id === l)).filter(Boolean),
3734
- ...o.filter((l) => !a.includes(l.id))
3735
- ];
3736
- me.setState((l) => ({
3737
- ...l,
3738
- data: e,
3739
- columnOrder: c,
3740
- visibility: c.reduce((u, f) => (u[f.id] = !0, u), {}),
3741
- sortableColumns: c.map((u) => ({
3742
- id: u.id,
3743
- label: u.label,
3744
- sortable: !0,
3745
- backgroundColor: u.backgroundColor
3746
- }))
3747
- }));
3748
- }
3749
- function sa(e) {
3750
- me.setState((t) => ({
3751
- ...t,
3752
- tableId: e
3753
- }));
3754
- }
3755
- const ia = (e) => {
3756
- me.setState((t) => ({
3757
- ...t,
3758
- actionsConfig: e
3759
- }));
3760
- }, aa = x(Oe.Trigger), ca = x(Oe.Positioner), la = x(Oe.Content), ua = x(Oe.Item), da = x(De.Label), fa = x(De.HiddenInput), ha = x(De.Control);
3761
- function ga({ visibility: e, onToggle: t }) {
3762
- const { sortableColumns: n } = bt(me);
3763
- return /* @__PURE__ */ i.jsxs(Oe.Root, { closeOnSelect: !1, children: [
3764
- /* @__PURE__ */ i.jsx(aa, { asChild: !0, children: /* @__PURE__ */ i.jsx(_e, { "aria-label": "Toggle columns", variant: "ghost", ml: "1", size: "xs", children: /* @__PURE__ */ i.jsx(Pi, { size: 18 }) }) }),
3765
- /* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(ca, { children: /* @__PURE__ */ i.jsx(la, { minW: "220px", children: n.map((r) => {
3779
+ const la = x(Oe.Trigger), ua = x(Oe.Positioner), da = x(Oe.Content), fa = x(Oe.Item), ha = x(De.Label), ga = x(De.HiddenInput), pa = x(De.Control);
3780
+ function va({ visibility: e, onToggle: t }) {
3781
+ const { sortableColumns: n } = bt(he);
3782
+ return /* @__PURE__ */ s.jsxs(Oe.Root, { closeOnSelect: !1, children: [
3783
+ /* @__PURE__ */ s.jsx(la, { asChild: !0, children: /* @__PURE__ */ s.jsx(_e, { "aria-label": "Toggle columns", variant: "ghost", ml: "1", size: "xs", children: /* @__PURE__ */ s.jsx(Gs, { size: 18 }) }) }),
3784
+ /* @__PURE__ */ s.jsx(Qe, { children: /* @__PURE__ */ s.jsx(ua, { children: /* @__PURE__ */ s.jsx(da, { minW: "220px", children: n.map((r) => {
3766
3785
  const o = !!e[r.id];
3767
- return /* @__PURE__ */ i.jsx(ua, { value: r.id, closeOnSelect: !1, children: /* @__PURE__ */ i.jsxs(De.Root, { checked: o, onCheckedChange: () => t(r.id), children: [
3768
- /* @__PURE__ */ i.jsx(fa, {}),
3769
- /* @__PURE__ */ i.jsx(ha, {}),
3770
- /* @__PURE__ */ i.jsx(da, { children: r.label })
3786
+ return /* @__PURE__ */ s.jsx(fa, { value: r.id, closeOnSelect: !1, children: /* @__PURE__ */ s.jsxs(De.Root, { checked: o, onCheckedChange: () => t(r.id), children: [
3787
+ /* @__PURE__ */ s.jsx(ga, {}),
3788
+ /* @__PURE__ */ s.jsx(pa, {}),
3789
+ /* @__PURE__ */ s.jsx(ha, { children: r.label })
3771
3790
  ] }) }, r.id);
3772
3791
  }) }) }) })
3773
3792
  ] });
3774
3793
  }
3775
- function pa({
3794
+ function ma({
3776
3795
  id: e,
3777
3796
  children: t,
3778
3797
  onClick: n,
3779
3798
  cursor: r,
3780
3799
  borderRight: o,
3781
- borderRightColor: s,
3800
+ borderRightColor: i,
3782
3801
  backgroundColor: a
3783
3802
  }) {
3784
- const { setNodeRef: c, attributes: l, listeners: u, transform: f, transition: d } = Zr({ id: e });
3785
- return /* @__PURE__ */ i.jsx(
3803
+ const { setNodeRef: c, attributes: l, listeners: u, transform: f, transition: d } = eo({ id: e });
3804
+ return /* @__PURE__ */ s.jsx(
3786
3805
  Ee.ColumnHeader,
3787
3806
  {
3788
3807
  ref: c,
@@ -3794,40 +3813,40 @@ function pa({
3794
3813
  transition: d,
3795
3814
  cursor: r,
3796
3815
  borderRight: o,
3797
- borderRightColor: s
3816
+ borderRightColor: i
3798
3817
  },
3799
3818
  ...l,
3800
- children: /* @__PURE__ */ i.jsxs(fe, { justify: "space-between", children: [
3819
+ children: /* @__PURE__ */ s.jsxs(fe, { justify: "space-between", children: [
3801
3820
  t,
3802
- /* @__PURE__ */ i.jsx("span", { ...u, children: /* @__PURE__ */ i.jsx(eo, { size: 12 }) })
3821
+ /* @__PURE__ */ s.jsx("span", { ...u, children: /* @__PURE__ */ s.jsx(no, { size: 12 }) })
3803
3822
  ] })
3804
3823
  }
3805
3824
  );
3806
3825
  }
3807
- function va() {
3808
- const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o, actionsConfig: s } = bt(me), a = e.map((l) => o.find((u) => u.id === l.id)).filter((l) => l !== void 0).filter((l) => t[l.id]), c = (l) => {
3826
+ function ba() {
3827
+ const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o, actionsConfig: i } = bt(he), a = e.map((l) => o.find((u) => u.id === l.id)).filter((l) => l !== void 0).filter((l) => t[l.id]), c = (l) => {
3809
3828
  const { active: u, over: f } = l;
3810
3829
  if (!f || u.id === f.id) return;
3811
3830
  const d = e.findIndex((v) => v.id === u.id), m = e.findIndex((v) => v.id === f.id), p = Kt(e, d, m);
3812
- ta(p);
3831
+ Po(p);
3813
3832
  };
3814
- return /* @__PURE__ */ i.jsx(Ee.Header, { background: "blue.200", position: "sticky", top: 0, p: "0", children: /* @__PURE__ */ i.jsx(Ur, { collisionDetection: $r, onDragEnd: c, children: /* @__PURE__ */ i.jsx(
3815
- Kr,
3833
+ return /* @__PURE__ */ s.jsx(Ee.Header, { background: "blue.200", position: "sticky", top: 0, p: "0", children: /* @__PURE__ */ s.jsx(Xr, { collisionDetection: kr, onDragEnd: c, children: /* @__PURE__ */ s.jsx(
3834
+ Zr,
3816
3835
  {
3817
3836
  items: e.map((l) => l.id),
3818
- strategy: li,
3819
- children: /* @__PURE__ */ i.jsxs(Ee.Row, { height: "28px", children: [
3837
+ strategy: ms,
3838
+ children: /* @__PURE__ */ s.jsxs(Ee.Row, { height: "28px", children: [
3820
3839
  a.map((l) => {
3821
3840
  const u = n === l?.id;
3822
- return /* @__PURE__ */ i.jsx(
3823
- pa,
3841
+ return /* @__PURE__ */ s.jsx(
3842
+ ma,
3824
3843
  {
3825
3844
  id: l?.id,
3826
- onClick: () => l?.sortable && ra(l?.id),
3845
+ onClick: () => l?.sortable && Yo(l?.id),
3827
3846
  cursor: l?.sortable ? "pointer" : "default",
3828
3847
  borderRight: "2px solid #dcdcdc",
3829
3848
  backgroundColor: l?.backgroundColor,
3830
- children: /* @__PURE__ */ i.jsxs(
3849
+ children: /* @__PURE__ */ s.jsxs(
3831
3850
  "span",
3832
3851
  {
3833
3852
  style: {
@@ -3838,7 +3857,7 @@ function va() {
3838
3857
  },
3839
3858
  children: [
3840
3859
  l?.label,
3841
- l?.sortable && (u ? r === "asc" ? /* @__PURE__ */ i.jsx(Oi, { size: 14 }) : /* @__PURE__ */ i.jsx(ji, { size: 14 }) : /* @__PURE__ */ i.jsx(_i, { size: 14, opacity: 0.4 }))
3860
+ l?.sortable && (u ? r === "asc" ? /* @__PURE__ */ s.jsx(zs, { size: 14 }) : /* @__PURE__ */ s.jsx(ks, { size: 14 }) : /* @__PURE__ */ s.jsx(Ls, { size: 14, opacity: 0.4 }))
3842
3861
  ]
3843
3862
  }
3844
3863
  )
@@ -3846,21 +3865,21 @@ function va() {
3846
3865
  l?.id
3847
3866
  );
3848
3867
  }),
3849
- s?.showActionColumn && /* @__PURE__ */ i.jsx(
3868
+ i?.showActionColumn && /* @__PURE__ */ s.jsx(
3850
3869
  Ee.ColumnHeader,
3851
3870
  {
3852
- width: s.width,
3853
- backgroundColor: s.backgroundColor,
3871
+ width: i.width,
3872
+ backgroundColor: i.backgroundColor,
3854
3873
  borderRight: "2px solid #dcdcdc",
3855
- children: s.children
3874
+ children: i.children
3856
3875
  }
3857
3876
  ),
3858
- s?.showColumnVisibilityMenu && /* @__PURE__ */ i.jsx(
3877
+ i?.showColumnVisibilityMenu && /* @__PURE__ */ s.jsx(
3859
3878
  Ee.ColumnHeader,
3860
3879
  {
3861
3880
  boxSize: "0.5",
3862
- backgroundColor: s.backgroundColorColumnVisibilityMenu,
3863
- children: /* @__PURE__ */ i.jsx(ga, { visibility: t, onToggle: na })
3881
+ backgroundColor: i.backgroundColorColumnVisibilityMenu,
3882
+ children: /* @__PURE__ */ s.jsx(va, { visibility: t, onToggle: Fo })
3864
3883
  }
3865
3884
  )
3866
3885
  ] })
@@ -3874,19 +3893,19 @@ const gr = Dr({
3874
3893
  { label: "50", value: "50" },
3875
3894
  { label: "100", value: "100" }
3876
3895
  ]
3877
- }), ma = x(K.Positioner), ba = x(K.Content), xa = x(K.Item), ya = x(Nt.PrevTrigger), wa = x(Nt.NextTrigger), Sa = x(K.HiddenSelect), Da = x(K.Control), Ca = x(K.Trigger), Ra = x(K.ValueText), ja = x(K.IndicatorGroup), Ea = x(K.Indicator);
3878
- function _a({
3896
+ }), xa = x(K.Positioner), ya = x(K.Content), wa = x(K.Item), Sa = x(Nt.PrevTrigger), Da = x(Nt.NextTrigger), Ca = x(K.HiddenSelect), Ra = x(K.Control), ja = x(K.Trigger), Ea = x(K.ValueText), _a = x(K.IndicatorGroup), Ta = x(K.Indicator);
3897
+ function Oa({
3879
3898
  totalCount: e,
3880
3899
  pageSize: t,
3881
3900
  currentPage: n,
3882
3901
  onPageChange: r,
3883
3902
  onPageSizeChange: o,
3884
- siblingCount: s = 2
3903
+ siblingCount: i = 2
3885
3904
  }) {
3886
- return /* @__PURE__ */ i.jsx(je, { width: "100%", children: /* @__PURE__ */ i.jsxs(fe, { justify: "space-between", mx: "auto", flexWrap: "wrap", children: [
3887
- /* @__PURE__ */ i.jsxs(fe, { children: [
3888
- /* @__PURE__ */ i.jsx(q, { fontSize: "sm", color: "gray.600", _dark: { color: "gray.400" }, children: "Rows per page:" }),
3889
- /* @__PURE__ */ i.jsxs(
3905
+ return /* @__PURE__ */ s.jsx(je, { width: "100%", children: /* @__PURE__ */ s.jsxs(fe, { justify: "space-between", mx: "auto", flexWrap: "wrap", children: [
3906
+ /* @__PURE__ */ s.jsxs(fe, { children: [
3907
+ /* @__PURE__ */ s.jsx(q, { fontSize: "sm", color: "gray.600", _dark: { color: "gray.400" }, children: "Rows per page:" }),
3908
+ /* @__PURE__ */ s.jsxs(
3890
3909
  K.Root,
3891
3910
  {
3892
3911
  collection: gr,
@@ -3895,33 +3914,33 @@ function _a({
3895
3914
  onValueChange: (a) => o && o(Number(a.items[0].value)),
3896
3915
  value: [String(t)],
3897
3916
  children: [
3898
- /* @__PURE__ */ i.jsx(Sa, {}),
3899
- /* @__PURE__ */ i.jsxs(Da, { children: [
3900
- /* @__PURE__ */ i.jsx(Ca, { children: /* @__PURE__ */ i.jsx(Ra, { placeholder: "" }) }),
3901
- /* @__PURE__ */ i.jsx(ja, { children: /* @__PURE__ */ i.jsx(Ea, {}) })
3917
+ /* @__PURE__ */ s.jsx(Ca, {}),
3918
+ /* @__PURE__ */ s.jsxs(Ra, { children: [
3919
+ /* @__PURE__ */ s.jsx(ja, { children: /* @__PURE__ */ s.jsx(Ea, { placeholder: "" }) }),
3920
+ /* @__PURE__ */ s.jsx(_a, { children: /* @__PURE__ */ s.jsx(Ta, {}) })
3902
3921
  ] }),
3903
- /* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(ma, { children: /* @__PURE__ */ i.jsx(ba, { children: gr.items.map((a) => /* @__PURE__ */ i.jsxs(xa, { item: a.value, children: [
3922
+ /* @__PURE__ */ s.jsx(Qe, { children: /* @__PURE__ */ s.jsx(xa, { children: /* @__PURE__ */ s.jsx(ya, { children: gr.items.map((a) => /* @__PURE__ */ s.jsxs(wa, { item: a.value, children: [
3904
3923
  a.label,
3905
- /* @__PURE__ */ i.jsx(K.ItemIndicator, {})
3924
+ /* @__PURE__ */ s.jsx(K.ItemIndicator, {})
3906
3925
  ] }, a.value)) }) }) })
3907
3926
  ]
3908
3927
  }
3909
3928
  )
3910
3929
  ] }),
3911
- /* @__PURE__ */ i.jsx(
3930
+ /* @__PURE__ */ s.jsx(
3912
3931
  Nt.Root,
3913
3932
  {
3914
3933
  count: e,
3915
3934
  pageSize: t,
3916
3935
  page: n,
3917
- siblingCount: s,
3936
+ siblingCount: i,
3918
3937
  onPageChange: (a) => r && r(a.page),
3919
- children: /* @__PURE__ */ i.jsxs(mo, { size: "sm", variant: "ghost", children: [
3920
- /* @__PURE__ */ i.jsx(ya, { asChild: !0, children: /* @__PURE__ */ i.jsx(_e, { "aria-label": "Previous page", children: /* @__PURE__ */ i.jsx(Ai, { size: 18 }) }) }),
3921
- /* @__PURE__ */ i.jsx(
3938
+ children: /* @__PURE__ */ s.jsxs(bo, { size: "sm", variant: "ghost", children: [
3939
+ /* @__PURE__ */ s.jsx(Sa, { asChild: !0, children: /* @__PURE__ */ s.jsx(_e, { "aria-label": "Previous page", children: /* @__PURE__ */ s.jsx(Hs, { size: 18 }) }) }),
3940
+ /* @__PURE__ */ s.jsx(
3922
3941
  Nt.Items,
3923
3942
  {
3924
- render: (a) => /* @__PURE__ */ i.jsx(
3943
+ render: (a) => /* @__PURE__ */ s.jsx(
3925
3944
  _e,
3926
3945
  {
3927
3946
  variant: a.type === "page" && a.value === n ? "outline" : "ghost",
@@ -3932,45 +3951,45 @@ function _a({
3932
3951
  )
3933
3952
  }
3934
3953
  ),
3935
- /* @__PURE__ */ i.jsx(wa, { asChild: !0, children: /* @__PURE__ */ i.jsx(_e, { "aria-label": "Next page", children: /* @__PURE__ */ i.jsx(Ni, { size: 18 }) }) })
3954
+ /* @__PURE__ */ s.jsx(Da, { asChild: !0, children: /* @__PURE__ */ s.jsx(_e, { "aria-label": "Next page", children: /* @__PURE__ */ s.jsx(Bs, { size: 18 }) }) })
3936
3955
  ] })
3937
3956
  }
3938
3957
  )
3939
3958
  ] }) });
3940
3959
  }
3941
- const Ta = x(Oe.Item), Oa = x(Oe.Content), Ma = x(Oe.Positioner), $a = x(Oe.Trigger);
3942
- function ka({
3960
+ const Ma = x(Oe.Item), $a = x(Oe.Content), Ia = x(Oe.Positioner), ka = x(Oe.Trigger);
3961
+ function Aa({
3943
3962
  data: e = [],
3944
3963
  actions: t = []
3945
3964
  }) {
3946
- const { columnOrder: n, visibility: r } = bt(me);
3947
- return /* @__PURE__ */ i.jsx(Ee.Body, { children: e.map((o) => /* @__PURE__ */ i.jsxs(Ee.Row, { children: [
3948
- n.filter((s) => r[s.id]).map((s) => /* @__PURE__ */ i.jsx(Ee.Cell, { children: o[s.id] }, s.id)),
3949
- /* @__PURE__ */ i.jsx(Ee.Cell, { textAlign: "center", display: "flex", gap: 2, children: /* @__PURE__ */ i.jsxs(Oe.Root, { children: [
3950
- /* @__PURE__ */ i.jsx($a, { asChild: !0, children: /* @__PURE__ */ i.jsx(_e, { "aria-label": "Open", variant: "ghost", size: "sm", children: /* @__PURE__ */ i.jsx(Hi, { size: 16 }) }) }),
3951
- /* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(Ma, { children: /* @__PURE__ */ i.jsx(Oa, { children: t.map((s) => /* @__PURE__ */ i.jsxs(
3952
- Ta,
3965
+ const { columnOrder: n, visibility: r } = bt(he);
3966
+ return /* @__PURE__ */ s.jsx(Ee.Body, { children: e.map((o) => /* @__PURE__ */ s.jsxs(Ee.Row, { children: [
3967
+ n.filter((i) => r[i.id]).map((i) => /* @__PURE__ */ s.jsx(Ee.Cell, { children: o[i.id] }, i.id)),
3968
+ /* @__PURE__ */ s.jsx(Ee.Cell, { textAlign: "center", display: "flex", gap: 2, children: /* @__PURE__ */ s.jsxs(Oe.Root, { children: [
3969
+ /* @__PURE__ */ s.jsx(ka, { asChild: !0, children: /* @__PURE__ */ s.jsx(_e, { "aria-label": "Open", variant: "ghost", size: "sm", children: /* @__PURE__ */ s.jsx(Js, { size: 16 }) }) }),
3970
+ /* @__PURE__ */ s.jsx(Qe, { children: /* @__PURE__ */ s.jsx(Ia, { children: /* @__PURE__ */ s.jsx($a, { children: t.map((i) => /* @__PURE__ */ s.jsxs(
3971
+ Ma,
3953
3972
  {
3954
- onClick: () => s.onClick(o),
3955
- colorScheme: s.colorScheme,
3956
- value: s.label,
3973
+ onClick: () => i.onClick(o),
3974
+ colorScheme: i.colorScheme,
3975
+ value: i.label,
3957
3976
  children: [
3958
- s.icon,
3959
- s.label
3977
+ i.icon,
3978
+ i.label
3960
3979
  ]
3961
3980
  },
3962
- s.label
3981
+ i.label
3963
3982
  )) }) }) })
3964
3983
  ] }) })
3965
3984
  ] }, o.id)) });
3966
3985
  }
3967
- function fl({
3986
+ function gl({
3968
3987
  tableId: e,
3969
3988
  data: t = [],
3970
3989
  headers: n = [],
3971
3990
  loading: r = !1,
3972
3991
  emptyMessage: o = "No data",
3973
- actions: s,
3992
+ actions: i,
3974
3993
  page: a = 1,
3975
3994
  pageSize: c = 10,
3976
3995
  onPageChange: l,
@@ -3981,13 +4000,13 @@ function fl({
3981
4000
  actionConfig: p
3982
4001
  }) {
3983
4002
  H(() => {
3984
- sa(e);
4003
+ No(e), Vo(e);
3985
4004
  }, [e]), H(() => {
3986
- oa(t, n);
4005
+ Lo(t, n);
3987
4006
  }, [t, n]), H(() => {
3988
- p && ia(p);
4007
+ p && zo(p);
3989
4008
  }, [p]);
3990
- const { sortColumn: v, sortDirection: h, data: b } = bt(me), w = B(() => {
4009
+ const { sortColumn: v, sortDirection: h, data: b } = bt(he), w = B(() => {
3991
4010
  const R = [...b], E = Math.max(1, a || 1);
3992
4011
  if (v && R.sort(
3993
4012
  (_, O) => h === "asc" ? String(_[v]).localeCompare(String(O[v])) : String(O[v]).localeCompare(String(_[v]))
@@ -3999,13 +4018,13 @@ function fl({
3999
4018
  }, [b, v, h, a, c, m]);
4000
4019
  return H(() => {
4001
4020
  a < 1 && l && l(1);
4002
- }, [a, l]), /* @__PURE__ */ i.jsxs(je, { h: "100%", display: "flex", flexDirection: "column", p: 2, pt: 2, minHeight: 0, children: [
4003
- /* @__PURE__ */ i.jsx(je, { flex: "1", minHeight: 0, overflow: "auto", children: r ? /* @__PURE__ */ i.jsx(je, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: "Loading..." }) : w.length === 0 ? /* @__PURE__ */ i.jsx(je, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: o }) : /* @__PURE__ */ i.jsxs(Ee.Root, { variant: "outline", w: "100%", size: f, children: [
4004
- /* @__PURE__ */ i.jsx(va, {}),
4005
- /* @__PURE__ */ i.jsx(ka, { data: w, actions: s })
4021
+ }, [a, l]), /* @__PURE__ */ s.jsxs(je, { h: "100%", display: "flex", flexDirection: "column", p: 2, pt: 2, minHeight: 0, children: [
4022
+ /* @__PURE__ */ s.jsx(je, { flex: "1", minHeight: 0, overflow: "auto", children: r ? /* @__PURE__ */ s.jsx(je, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: "Loading..." }) : w.length === 0 ? /* @__PURE__ */ s.jsx(je, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: o }) : /* @__PURE__ */ s.jsxs(Ee.Root, { variant: "outline", w: "100%", size: f, children: [
4023
+ /* @__PURE__ */ s.jsx(ba, {}),
4024
+ /* @__PURE__ */ s.jsx(Aa, { data: w, actions: i })
4006
4025
  ] }) }),
4007
- /* @__PURE__ */ i.jsx(je, { mt: 0.5, children: /* @__PURE__ */ i.jsx(
4008
- _a,
4026
+ /* @__PURE__ */ s.jsx(je, { mt: 0.5, children: /* @__PURE__ */ s.jsx(
4027
+ Oa,
4009
4028
  {
4010
4029
  totalCount: d,
4011
4030
  pageSize: c,
@@ -4018,27 +4037,27 @@ function fl({
4018
4037
  ) })
4019
4038
  ] });
4020
4039
  }
4021
- const Ia = x(De.Root), Aa = x(De.HiddenInput), La = x(De.Control), Na = x(De.Label), za = ({
4040
+ const La = x(De.Root), Na = x(De.HiddenInput), za = x(De.Control), Pa = x(De.Label), Ya = ({
4022
4041
  value: e,
4023
4042
  onChange: t,
4024
4043
  size: n = "sm",
4025
4044
  label: r,
4026
4045
  helperText: o,
4027
- isDisabled: s,
4046
+ isDisabled: i,
4028
4047
  required: a,
4029
4048
  errorText: c
4030
- }) => /* @__PURE__ */ i.jsxs(Ia, { value: e, onChange: t, size: n, children: [
4031
- /* @__PURE__ */ i.jsx(Aa, {}),
4032
- /* @__PURE__ */ i.jsx(
4033
- La,
4049
+ }) => /* @__PURE__ */ s.jsxs(La, { value: e, onChange: t, size: n, children: [
4050
+ /* @__PURE__ */ s.jsx(Na, {}),
4051
+ /* @__PURE__ */ s.jsx(
4052
+ za,
4034
4053
  {
4035
- disabled: s,
4054
+ disabled: i,
4036
4055
  required: a,
4037
4056
  errorText: c,
4038
4057
  helperText: o
4039
4058
  }
4040
4059
  ),
4041
- r && /* @__PURE__ */ i.jsx(Na, { children: r })
4060
+ r && /* @__PURE__ */ s.jsx(Pa, { children: r })
4042
4061
  ] }), ee = " to ", pr = 10, Ve = {
4043
4062
  DAY_MAX: 31,
4044
4063
  MONTH_MAX: 12,
@@ -4054,16 +4073,16 @@ const Ia = x(De.Root), Aa = x(De.HiddenInput), La = x(De.Control), Na = x(De.Lab
4054
4073
  }, vr = () => {
4055
4074
  const { year: e, month: t, day: n } = Mn();
4056
4075
  return `${String(n).padStart(2, "0")}-${String(t).padStart(2, "0")}-${e}`;
4057
- }, Pa = () => {
4076
+ }, Fa = () => {
4058
4077
  const { year: e, month: t, day: n } = Mn();
4059
4078
  return `${e}-${String(t).padStart(2, "0")}-${String(n).padStart(2, "0")}`;
4060
- }, Ya = (e, t) => {
4079
+ }, Va = (e, t) => {
4061
4080
  const n = e.length, r = parseInt(e);
4062
4081
  if (!e || isNaN(r)) return t;
4063
4082
  if (n === 4)
4064
4083
  return r >= Ve.YEAR_MIN && r <= Ve.YEAR_MAX ? r : t;
4065
4084
  if (n > 0 && n < 4) {
4066
- const o = t.toString(), s = 4 - n, a = o.substring(0, s);
4085
+ const o = t.toString(), i = 4 - n, a = o.substring(0, i);
4067
4086
  return parseInt(a + e);
4068
4087
  }
4069
4088
  return t;
@@ -4071,14 +4090,14 @@ const Ia = x(De.Root), Aa = x(De.HiddenInput), La = x(De.Control), Na = x(De.Lab
4071
4090
  if (!e?.trim()) return null;
4072
4091
  const n = e.replace(/[^\d-]/g, "").split("-").filter((u) => u !== "");
4073
4092
  if (n.length === 0) return null;
4074
- const { year: r, month: o, day: s } = Mn();
4093
+ const { year: r, month: o, day: i } = Mn();
4075
4094
  let a, c, l;
4076
- return n.length === 1 ? (a = parseInt(n[0]) || s, c = o, l = r) : n.length === 2 ? (a = parseInt(n[0]) || s, c = parseInt(n[1]) || o, l = r) : (a = parseInt(n[0]) || s, c = parseInt(n[1]) || o, l = Ya(n[2], r)), c = Math.max(1, Math.min(Ve.MONTH_MAX, c)), a = Math.max(1, Math.min(Ve.DAY_MAX, a)), `${l}-${String(c).padStart(2, "0")}-${String(a).padStart(2, "0")}`;
4095
+ return n.length === 1 ? (a = parseInt(n[0]) || i, c = o, l = r) : n.length === 2 ? (a = parseInt(n[0]) || i, c = parseInt(n[1]) || o, l = r) : (a = parseInt(n[0]) || i, c = parseInt(n[1]) || o, l = Va(n[2], r)), c = Math.max(1, Math.min(Ve.MONTH_MAX, c)), a = Math.max(1, Math.min(Ve.DAY_MAX, a)), `${l}-${String(c).padStart(2, "0")}-${String(a).padStart(2, "0")}`;
4077
4096
  }, we = (e) => {
4078
4097
  if (!e) return "";
4079
4098
  const [t, n, r] = e.split("-");
4080
4099
  return `${r}-${n}-${t}`;
4081
- }, Fa = (e, t) => {
4100
+ }, Ha = (e, t) => {
4082
4101
  if (e[0]?.length > 0) {
4083
4102
  const n = parseInt(e[0]);
4084
4103
  if (isNaN(n) || n === 0 || e[0].length === 2 && n > Ve.DAY_MAX)
@@ -4102,14 +4121,14 @@ const Ia = x(De.Root), Aa = x(De.HiddenInput), La = x(De.Control), Na = x(De.Lab
4102
4121
  o.length >= 2 && (t = `${o[0]}-${o[1].substring(0, 2)}-${o[1].substring(2)}${o[2] || ""}`);
4103
4122
  }
4104
4123
  const n = t.split("-");
4105
- 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, pr), Fa(n, e) || t;
4106
- }, Va = x(Wt.Root), Ha = x(Wt.Trigger), Wa = x(Wt.Content), Ba = x(Wt.Positioner);
4107
- function Ua({
4124
+ 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, pr), Ha(n, e) || t;
4125
+ }, Wa = x(Wt.Root), Ba = x(Wt.Trigger), Ua = x(Wt.Content), Ga = x(Wt.Positioner);
4126
+ function Xa({
4108
4127
  value: e,
4109
4128
  onChange: t,
4110
4129
  disabled: n = !1
4111
4130
  }) {
4112
- const [r = "", o = ""] = e ? e.split("|") : [], [s, a] = oe(() => r && o ? `${we(r)}${ee}${we(o)}` : r ? we(r) : ""), [c, l] = oe(!1), u = U(null);
4131
+ const [r = "", o = ""] = e ? e.split("|") : [], [i, a] = oe(() => r && o ? `${we(r)}${ee}${we(o)}` : r ? we(r) : ""), [c, l] = oe(!1), u = U(null);
4113
4132
  H(() => {
4114
4133
  const v = (h) => {
4115
4134
  h.ctrlKey && h.key === "d" && !h.shiftKey && !h.metaKey && (h.preventDefault(), u.current?.focus());
@@ -4130,7 +4149,7 @@ function Ua({
4130
4149
  h = ut(h);
4131
4150
  a(h);
4132
4151
  }, d = () => {
4133
- const v = s.trim();
4152
+ const v = i.trim();
4134
4153
  if (!v) {
4135
4154
  t(void 0);
4136
4155
  return;
@@ -4145,7 +4164,7 @@ function Ua({
4145
4164
  } else if (w && !b)
4146
4165
  a(`${we(w)}${ee}`), t(void 0);
4147
4166
  else if (w && b) {
4148
- const E = Pa(), [_, O] = E < w ? [E, w] : [w, E], T = `${we(_)}${ee}${we(
4167
+ const E = Fa(), [_, O] = E < w ? [E, w] : [w, E], T = `${we(_)}${ee}${we(
4149
4168
  O
4150
4169
  )}`;
4151
4170
  a(T), t(`${_}|${O}`);
@@ -4158,25 +4177,25 @@ function Ua({
4158
4177
  }, m = (v) => {
4159
4178
  if (v.key !== "Enter") return;
4160
4179
  v.preventDefault();
4161
- const h = u.current?.selectionStart || 0, b = s.indexOf(ee);
4162
- if (!s.trim()) {
4180
+ const h = u.current?.selectionStart || 0, b = i.indexOf(ee);
4181
+ if (!i.trim()) {
4163
4182
  a(`${vr()}${ee}`);
4164
4183
  return;
4165
4184
  }
4166
4185
  if (b === -1) {
4167
- const R = lt(s.trim());
4186
+ const R = lt(i.trim());
4168
4187
  R && a(`${we(R)}${ee}`);
4169
4188
  return;
4170
4189
  }
4171
4190
  if (h <= b + ee.length) {
4172
- const R = s.substring(0, b).trim(), E = s.substring(b + ee.length), _ = lt(R);
4191
+ const R = i.substring(0, b).trim(), E = i.substring(b + ee.length), _ = lt(R);
4173
4192
  _ && a(`${we(_)}${ee}${E}`);
4174
4193
  return;
4175
4194
  }
4176
- if (s.substring(b + ee.length).trim())
4195
+ if (i.substring(b + ee.length).trim())
4177
4196
  d(), u.current?.blur();
4178
4197
  else {
4179
- const R = s.substring(0, b + ee.length) + vr();
4198
+ const R = i.substring(0, b + ee.length) + vr();
4180
4199
  a(R), setTimeout(() => {
4181
4200
  d(), u.current?.blur();
4182
4201
  }, 0);
@@ -4184,53 +4203,53 @@ function Ua({
4184
4203
  }, p = () => {
4185
4204
  a(""), t(void 0);
4186
4205
  };
4187
- return /* @__PURE__ */ i.jsx(Cr, { children: /* @__PURE__ */ i.jsx(i.Fragment, { children: /* @__PURE__ */ i.jsxs(Fn, { position: "revert", children: [
4188
- /* @__PURE__ */ i.jsxs(
4189
- Va,
4206
+ return /* @__PURE__ */ s.jsx(Cr, { children: /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(Fn, { position: "revert", children: [
4207
+ /* @__PURE__ */ s.jsxs(
4208
+ Wa,
4190
4209
  {
4191
4210
  open: c,
4192
4211
  onEscapeKeyDown: () => {
4193
4212
  l(!1);
4194
4213
  },
4195
4214
  children: [
4196
- /* @__PURE__ */ i.jsx(Ha, { asChild: !0, children: /* @__PURE__ */ i.jsx(
4215
+ /* @__PURE__ */ s.jsx(Ba, { asChild: !0, children: /* @__PURE__ */ s.jsx(
4197
4216
  _e,
4198
4217
  {
4199
4218
  size: "sm",
4200
4219
  variant: "ghost",
4201
4220
  "aria-label": "Date range help",
4202
4221
  onClick: () => l((v) => !v),
4203
- children: /* @__PURE__ */ i.jsx(hr, { size: 16 })
4222
+ children: /* @__PURE__ */ s.jsx(hr, { size: 16 })
4204
4223
  }
4205
4224
  ) }),
4206
- /* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(Ba, { children: /* @__PURE__ */ i.jsxs(Wa, { p: 4, children: [
4207
- /* @__PURE__ */ i.jsx(bo, {}),
4208
- /* @__PURE__ */ i.jsxs(Ie, { align: "start", gap: 4, children: [
4209
- /* @__PURE__ */ i.jsxs(fe, { children: [
4210
- /* @__PURE__ */ i.jsx(hr, { size: 16 }),
4211
- /* @__PURE__ */ i.jsx(q, { fontWeight: "semibold", fontSize: "sm", children: "Date Range Filter" })
4225
+ /* @__PURE__ */ s.jsx(Qe, { children: /* @__PURE__ */ s.jsx(Ga, { children: /* @__PURE__ */ s.jsxs(Ua, { p: 4, children: [
4226
+ /* @__PURE__ */ s.jsx(xo, {}),
4227
+ /* @__PURE__ */ s.jsxs(ke, { align: "start", gap: 4, children: [
4228
+ /* @__PURE__ */ s.jsxs(fe, { children: [
4229
+ /* @__PURE__ */ s.jsx(hr, { size: 16 }),
4230
+ /* @__PURE__ */ s.jsx(q, { fontWeight: "semibold", fontSize: "sm", children: "Date Range Filter" })
4212
4231
  ] }),
4213
- /* @__PURE__ */ i.jsxs(Ie, { align: "start", gap: 1, children: [
4214
- /* @__PURE__ */ i.jsx(q, { fontSize: "sm", fontWeight: "medium", children: "Format:" }),
4215
- /* @__PURE__ */ i.jsxs(q, { fontSize: "xs", color: "gray.600", children: [
4232
+ /* @__PURE__ */ s.jsxs(ke, { align: "start", gap: 1, children: [
4233
+ /* @__PURE__ */ s.jsx(q, { fontSize: "sm", fontWeight: "medium", children: "Format:" }),
4234
+ /* @__PURE__ */ s.jsxs(q, { fontSize: "xs", color: "gray.600", children: [
4216
4235
  "DD-MM-YYYY",
4217
4236
  ee,
4218
4237
  "DD-MM-YYYY"
4219
4238
  ] })
4220
4239
  ] }),
4221
- /* @__PURE__ */ i.jsxs(Ie, { align: "start", gap: 1, children: [
4222
- /* @__PURE__ */ i.jsx(q, { fontSize: "sm", fontWeight: "medium", children: "Tips:" }),
4223
- /* @__PURE__ */ i.jsx(q, { fontSize: "xs", children: '• "15 to 20" → assumes current month/year' }),
4224
- /* @__PURE__ */ i.jsx(q, { fontSize: "xs", children: "• Leave end blank → up to today" }),
4225
- /* @__PURE__ */ i.jsx(q, { fontSize: "xs", children: "• Dates auto-swapped if reversed" }),
4226
- /* @__PURE__ */ i.jsx(q, { fontSize: "xs", children: "• Press Enter on empty end → fills today" })
4240
+ /* @__PURE__ */ s.jsxs(ke, { align: "start", gap: 1, children: [
4241
+ /* @__PURE__ */ s.jsx(q, { fontSize: "sm", fontWeight: "medium", children: "Tips:" }),
4242
+ /* @__PURE__ */ s.jsx(q, { fontSize: "xs", children: '• "15 to 20" → assumes current month/year' }),
4243
+ /* @__PURE__ */ s.jsx(q, { fontSize: "xs", children: "• Leave end blank → up to today" }),
4244
+ /* @__PURE__ */ s.jsx(q, { fontSize: "xs", children: "• Dates auto-swapped if reversed" }),
4245
+ /* @__PURE__ */ s.jsx(q, { fontSize: "xs", children: "• Press Enter on empty end → fills today" })
4227
4246
  ] }),
4228
- /* @__PURE__ */ i.jsxs(Ie, { align: "start", gap: 1, children: [
4229
- /* @__PURE__ */ i.jsx(q, { fontSize: "sm", fontWeight: "medium", children: "Shortcut:" }),
4230
- /* @__PURE__ */ i.jsxs(fe, { children: [
4231
- /* @__PURE__ */ i.jsx(Vn, { children: "Ctrl" }),
4232
- /* @__PURE__ */ i.jsx(q, { children: "+" }),
4233
- /* @__PURE__ */ i.jsx(Vn, { children: "D" })
4247
+ /* @__PURE__ */ s.jsxs(ke, { align: "start", gap: 1, children: [
4248
+ /* @__PURE__ */ s.jsx(q, { fontSize: "sm", fontWeight: "medium", children: "Shortcut:" }),
4249
+ /* @__PURE__ */ s.jsxs(fe, { children: [
4250
+ /* @__PURE__ */ s.jsx(Vn, { children: "Ctrl" }),
4251
+ /* @__PURE__ */ s.jsx(q, { children: "+" }),
4252
+ /* @__PURE__ */ s.jsx(Vn, { children: "D" })
4234
4253
  ] })
4235
4254
  ] })
4236
4255
  ] })
@@ -4238,22 +4257,22 @@ function Ua({
4238
4257
  ]
4239
4258
  }
4240
4259
  ),
4241
- /* @__PURE__ */ i.jsx(
4260
+ /* @__PURE__ */ s.jsx(
4242
4261
  Sn,
4243
4262
  {
4244
4263
  ref: u,
4245
4264
  placeholder: "15-06-2025 to 20-06-2025",
4246
- value: s,
4265
+ value: i,
4247
4266
  size: "sm",
4248
4267
  disabled: n,
4249
4268
  onChange: (v) => f(v.target.value),
4250
4269
  onBlur: d,
4251
4270
  onKeyDown: m,
4252
- pr: s ? "10" : void 0,
4271
+ pr: i ? "10" : void 0,
4253
4272
  w: "100%"
4254
4273
  }
4255
4274
  ),
4256
- s && /* @__PURE__ */ i.jsx(Fn, { children: /* @__PURE__ */ i.jsx(
4275
+ i && /* @__PURE__ */ s.jsx(Fn, { children: /* @__PURE__ */ s.jsx(
4257
4276
  _e,
4258
4277
  {
4259
4278
  size: "sm",
@@ -4265,13 +4284,13 @@ function Ua({
4265
4284
  ) })
4266
4285
  ] }) }) });
4267
4286
  }
4268
- const Ga = x(We.Root), Xa = x(We.Label), qa = x(We.HelperText), Ka = x(We.ErrorText), mr = ({
4287
+ const qa = x(We.Root), Ka = x(We.Label), Ja = x(We.HelperText), Za = x(We.ErrorText), mr = ({
4269
4288
  icon: e,
4270
4289
  value: t,
4271
4290
  onChange: n,
4272
4291
  placeholder: r,
4273
4292
  size: o = "xs",
4274
- variant: s = "outline",
4293
+ variant: i = "outline",
4275
4294
  width: a = "100%",
4276
4295
  label: c,
4277
4296
  helperText: l,
@@ -4279,29 +4298,29 @@ const Ga = x(We.Root), Xa = x(We.Label), qa = x(We.HelperText), Ka = x(We.ErrorT
4279
4298
  required: f = !1,
4280
4299
  errorText: d,
4281
4300
  visible: m
4282
- }) => /* @__PURE__ */ i.jsxs(Ga, { width: a, children: [
4283
- m && /* @__PURE__ */ i.jsx(Xa, { children: c }),
4284
- /* @__PURE__ */ i.jsx(Cr, { startElement: e, children: /* @__PURE__ */ i.jsx(
4301
+ }) => /* @__PURE__ */ s.jsxs(qa, { width: a, children: [
4302
+ m && /* @__PURE__ */ s.jsx(Ka, { children: c }),
4303
+ /* @__PURE__ */ s.jsx(Cr, { startElement: e, children: /* @__PURE__ */ s.jsx(
4285
4304
  Sn,
4286
4305
  {
4287
4306
  value: t,
4288
4307
  onChange: (p) => n?.(p.target.value),
4289
4308
  placeholder: r,
4290
4309
  size: o,
4291
- variant: s,
4310
+ variant: i,
4292
4311
  disabled: u,
4293
4312
  required: f
4294
4313
  }
4295
4314
  ) }),
4296
- d && /* @__PURE__ */ i.jsx(Ka, { fontSize: "xs", children: d }),
4297
- l && /* @__PURE__ */ i.jsx(qa, { fontSize: "xs", children: l })
4298
- ] }), Ja = x(We.Root), Za = x(We.HelperText), Qa = x(We.ErrorText), ec = x(K.Root), tc = x(K.Label), nc = x(K.Control), rc = x(K.Trigger), oc = x(K.ValueText), sc = x(K.IndicatorGroup), ic = x(K.Indicator), ac = x(K.Content), cc = x(K.Item), lc = x(K.ItemIndicator), uc = x(K.HiddenSelect), dc = x(K.Positioner), fc = ({
4315
+ d && /* @__PURE__ */ s.jsx(Za, { fontSize: "xs", children: d }),
4316
+ l && /* @__PURE__ */ s.jsx(Ja, { fontSize: "xs", children: l })
4317
+ ] }), Qa = x(We.Root), ec = x(We.HelperText), tc = x(We.ErrorText), nc = x(K.Root), rc = x(K.Label), oc = x(K.Control), ic = x(K.Trigger), sc = x(K.ValueText), ac = x(K.IndicatorGroup), cc = x(K.Indicator), lc = x(K.Content), uc = x(K.Item), dc = x(K.ItemIndicator), fc = x(K.HiddenSelect), hc = x(K.Positioner), gc = ({
4299
4318
  options: e = [],
4300
4319
  label: t,
4301
4320
  value: n,
4302
4321
  onChange: r,
4303
4322
  placeholder: o,
4304
- size: s = "xs",
4323
+ size: i = "xs",
4305
4324
  width: a = "100%",
4306
4325
  variant: c = "outline",
4307
4326
  helperText: l,
@@ -4313,37 +4332,37 @@ const Ga = x(We.Root), Xa = x(We.Label), qa = x(We.HelperText), Ka = x(We.ErrorT
4313
4332
  const p = Dr({
4314
4333
  items: e
4315
4334
  });
4316
- return /* @__PURE__ */ i.jsxs(Ja, { disabled: u, required: f, children: [
4317
- /* @__PURE__ */ i.jsxs(
4318
- ec,
4335
+ return /* @__PURE__ */ s.jsxs(Qa, { disabled: u, required: f, children: [
4336
+ /* @__PURE__ */ s.jsxs(
4337
+ nc,
4319
4338
  {
4320
4339
  collection: p,
4321
4340
  variant: c,
4322
- size: s,
4341
+ size: i,
4323
4342
  width: a,
4324
4343
  value: n ? [n] : [],
4325
4344
  onValueChange: (v) => r?.(v.value[0]),
4326
4345
  children: [
4327
- /* @__PURE__ */ i.jsx(uc, {}),
4328
- m && /* @__PURE__ */ i.jsx(tc, { children: t }),
4329
- /* @__PURE__ */ i.jsxs(nc, { children: [
4330
- /* @__PURE__ */ i.jsx(rc, { children: /* @__PURE__ */ i.jsx(oc, { placeholder: o }) }),
4331
- /* @__PURE__ */ i.jsx(sc, { children: /* @__PURE__ */ i.jsx(ic, {}) })
4346
+ /* @__PURE__ */ s.jsx(fc, {}),
4347
+ m && /* @__PURE__ */ s.jsx(rc, { children: t }),
4348
+ /* @__PURE__ */ s.jsxs(oc, { children: [
4349
+ /* @__PURE__ */ s.jsx(ic, { children: /* @__PURE__ */ s.jsx(sc, { placeholder: o }) }),
4350
+ /* @__PURE__ */ s.jsx(ac, { children: /* @__PURE__ */ s.jsx(cc, {}) })
4332
4351
  ] }),
4333
- /* @__PURE__ */ i.jsx(dc, { children: /* @__PURE__ */ i.jsx(ac, { children: p.items.map((v) => /* @__PURE__ */ i.jsxs(cc, { item: v, children: [
4352
+ /* @__PURE__ */ s.jsx(hc, { children: /* @__PURE__ */ s.jsx(lc, { children: p.items.map((v) => /* @__PURE__ */ s.jsxs(uc, { item: v, children: [
4334
4353
  v.label,
4335
- /* @__PURE__ */ i.jsx(lc, {})
4354
+ /* @__PURE__ */ s.jsx(dc, {})
4336
4355
  ] }, v.value)) }) })
4337
4356
  ]
4338
4357
  }
4339
4358
  ),
4340
- l && /* @__PURE__ */ i.jsx(Za, { children: l }),
4341
- d && /* @__PURE__ */ i.jsx(Qa, { children: d })
4359
+ l && /* @__PURE__ */ s.jsx(ec, { children: l }),
4360
+ d && /* @__PURE__ */ s.jsx(tc, { children: d })
4342
4361
  ] });
4343
- }, no = (e) => `FILTER_PRESETS_${e ?? "default"}`;
4344
- function hc(e) {
4362
+ }, ro = (e) => `FILTER_PRESETS_${e ?? "default"}`;
4363
+ function pc(e) {
4345
4364
  try {
4346
- return JSON.parse(localStorage.getItem(no(e)) || "[]");
4365
+ return JSON.parse(localStorage.getItem(ro(e)) || "[]");
4347
4366
  } catch {
4348
4367
  return [];
4349
4368
  }
@@ -4351,33 +4370,33 @@ function hc(e) {
4351
4370
  const Ht = new _r({}), $n = (e) => {
4352
4371
  const t = Ht.state[e];
4353
4372
  if (t) return t;
4354
- const n = hc(e);
4373
+ const n = pc(e);
4355
4374
  return Ht.setState((r) => ({
4356
4375
  ...r,
4357
4376
  [e]: n
4358
4377
  })), n;
4359
- }, ro = (e, t) => {
4378
+ }, oo = (e, t) => {
4360
4379
  Ht.setState((n) => ({
4361
4380
  ...n,
4362
4381
  [e]: t
4363
- })), localStorage.setItem(no(e), JSON.stringify(t));
4364
- }, gc = (e, t) => {
4382
+ })), localStorage.setItem(ro(e), JSON.stringify(t));
4383
+ }, vc = (e, t) => {
4365
4384
  const n = $n(e).filter((r) => r.id !== t);
4366
- ro(e, n);
4367
- }, pc = (e, t) => {
4385
+ oo(e, n);
4386
+ }, mc = (e, t) => {
4368
4387
  const n = [t, ...$n(e)];
4369
- ro(e, n);
4370
- }, vc = x(De.Root), mc = x(De.HiddenInput), bc = x(De.Control), xc = x(mt.Root), yc = x(mt.Track), wc = x(mt.Range), Sc = x(mt.Thumbs), Dc = x(mt.Control), Cc = ({ filter: e, onVisibilityChange: t, onSizeChange: n }) => {
4371
- const { attributes: r, listeners: o, setNodeRef: s, transform: a, transition: c } = Zr({
4388
+ oo(e, n);
4389
+ }, bc = x(De.Root), xc = x(De.HiddenInput), yc = x(De.Control), wc = x(mt.Root), Sc = x(mt.Track), Dc = x(mt.Range), Cc = x(mt.Thumbs), Rc = x(mt.Control), jc = ({ filter: e, onVisibilityChange: t, onSizeChange: n }) => {
4390
+ const { attributes: r, listeners: o, setNodeRef: i, transform: a, transition: c } = eo({
4372
4391
  id: e.id
4373
4392
  }), l = {
4374
4393
  transform: Ze.Transform.toString(a),
4375
4394
  transition: c
4376
4395
  };
4377
- return /* @__PURE__ */ i.jsxs(
4378
- Ie,
4396
+ return /* @__PURE__ */ s.jsxs(
4397
+ ke,
4379
4398
  {
4380
- ref: s,
4399
+ ref: i,
4381
4400
  style: l,
4382
4401
  align: "stretch",
4383
4402
  border: "1px solid",
@@ -4387,38 +4406,38 @@ const Ht = new _r({}), $n = (e) => {
4387
4406
  mb: 3,
4388
4407
  bg: "white",
4389
4408
  children: [
4390
- /* @__PURE__ */ i.jsxs(fe, { ...r, ...o, cursor: "grab", userSelect: "none", gap: 2, children: [
4391
- /* @__PURE__ */ i.jsx(eo, { size: 16 }),
4392
- /* @__PURE__ */ i.jsx(q, { fontWeight: "bold", fontSize: "sm", children: e.label || e.id })
4409
+ /* @__PURE__ */ s.jsxs(fe, { ...r, ...o, cursor: "grab", userSelect: "none", gap: 2, children: [
4410
+ /* @__PURE__ */ s.jsx(no, { size: 16 }),
4411
+ /* @__PURE__ */ s.jsx(q, { fontWeight: "bold", fontSize: "sm", children: e.label || e.id })
4393
4412
  ] }),
4394
- /* @__PURE__ */ i.jsxs(fe, { justify: "space-between", children: [
4395
- /* @__PURE__ */ i.jsx(q, { fontSize: "sm", children: "Visible" }),
4396
- /* @__PURE__ */ i.jsxs(
4397
- vc,
4413
+ /* @__PURE__ */ s.jsxs(fe, { justify: "space-between", children: [
4414
+ /* @__PURE__ */ s.jsx(q, { fontSize: "sm", children: "Visible" }),
4415
+ /* @__PURE__ */ s.jsxs(
4416
+ bc,
4398
4417
  {
4399
4418
  checked: e.visible,
4400
4419
  size: "sm",
4401
4420
  onCheckedChange: (u) => t?.(e.id, !!u.checked),
4402
4421
  children: [
4403
- /* @__PURE__ */ i.jsx(mc, {}),
4404
- /* @__PURE__ */ i.jsx(bc, {})
4422
+ /* @__PURE__ */ s.jsx(xc, {}),
4423
+ /* @__PURE__ */ s.jsx(yc, {})
4405
4424
  ]
4406
4425
  }
4407
4426
  )
4408
4427
  ] }),
4409
- /* @__PURE__ */ i.jsxs(Ie, { align: "stretch", gap: 1, children: [
4410
- /* @__PURE__ */ i.jsx(q, { fontSize: "sm", children: "Size" }),
4411
- /* @__PURE__ */ i.jsx(
4412
- xc,
4428
+ /* @__PURE__ */ s.jsxs(ke, { align: "stretch", gap: 1, children: [
4429
+ /* @__PURE__ */ s.jsx(q, { fontSize: "sm", children: "Size" }),
4430
+ /* @__PURE__ */ s.jsx(
4431
+ wc,
4413
4432
  {
4414
4433
  min: 1,
4415
4434
  max: 5,
4416
4435
  step: 0.5,
4417
4436
  value: [e.size ?? 1],
4418
4437
  onValueChange: (u) => n?.(e.id, u.value[0]),
4419
- children: /* @__PURE__ */ i.jsxs(Dc, { children: [
4420
- /* @__PURE__ */ i.jsx(yc, { children: /* @__PURE__ */ i.jsx(wc, {}) }),
4421
- /* @__PURE__ */ i.jsx(Sc, {})
4438
+ children: /* @__PURE__ */ s.jsxs(Rc, { children: [
4439
+ /* @__PURE__ */ s.jsx(Sc, { children: /* @__PURE__ */ s.jsx(Dc, {}) }),
4440
+ /* @__PURE__ */ s.jsx(Cc, {})
4422
4441
  ] })
4423
4442
  }
4424
4443
  )
@@ -4426,12 +4445,12 @@ const Ht = new _r({}), $n = (e) => {
4426
4445
  ]
4427
4446
  }
4428
4447
  );
4429
- }, Rc = x(Me.Root), jc = x(Me.Trigger), Ec = x(Me.Backdrop), _c = x(Me.Positioner), Tc = x(Me.Content), Oc = x(Me.Header), Mc = x(Me.Title), $c = x(Me.Body), kc = x(Me.Footer), Ic = x(Me.CloseTrigger), Ac = x(Bt.Root), Lc = x(Bt.List), dn = x(Bt.Trigger), fn = x(Bt.Content), oo = (e, t) => {
4448
+ }, Ec = x(Me.Root), _c = x(Me.Trigger), Tc = x(Me.Backdrop), Oc = x(Me.Positioner), Mc = x(Me.Content), $c = x(Me.Header), Ic = x(Me.Title), kc = x(Me.Body), Ac = x(Me.Footer), Lc = x(Me.CloseTrigger), Nc = x(Bt.Root), zc = x(Bt.List), dn = x(Bt.Trigger), fn = x(Bt.Content), io = (e, t) => {
4430
4449
  if (e.customComponent)
4431
4450
  return e.customComponent;
4432
4451
  switch (e.type) {
4433
4452
  case "text":
4434
- return /* @__PURE__ */ i.jsx(
4453
+ return /* @__PURE__ */ s.jsx(
4435
4454
  mr,
4436
4455
  {
4437
4456
  placeholder: e.label,
@@ -4442,10 +4461,10 @@ const Ht = new _r({}), $n = (e) => {
4442
4461
  }
4443
4462
  );
4444
4463
  case "number":
4445
- return /* @__PURE__ */ i.jsx(mr, { label: e.label, value: e.value, onChange: e.onChange });
4464
+ return /* @__PURE__ */ s.jsx(mr, { label: e.label, value: e.value, onChange: e.onChange });
4446
4465
  case "checkbox":
4447
- return /* @__PURE__ */ i.jsx(
4448
- za,
4466
+ return /* @__PURE__ */ s.jsx(
4467
+ Ya,
4449
4468
  {
4450
4469
  label: e.label,
4451
4470
  value: e.value,
@@ -4453,8 +4472,8 @@ const Ht = new _r({}), $n = (e) => {
4453
4472
  }
4454
4473
  );
4455
4474
  case "select":
4456
- return /* @__PURE__ */ i.jsx(
4457
- fc,
4475
+ return /* @__PURE__ */ s.jsx(
4476
+ gc,
4458
4477
  {
4459
4478
  label: e.label,
4460
4479
  value: e.value,
@@ -4464,8 +4483,8 @@ const Ht = new _r({}), $n = (e) => {
4464
4483
  }
4465
4484
  );
4466
4485
  case "date":
4467
- return /* @__PURE__ */ i.jsx(
4468
- Ua,
4486
+ return /* @__PURE__ */ s.jsx(
4487
+ Xa,
4469
4488
  {
4470
4489
  value: e.value,
4471
4490
  onChange: e.onChange
@@ -4474,13 +4493,13 @@ const Ht = new _r({}), $n = (e) => {
4474
4493
  default:
4475
4494
  return null;
4476
4495
  }
4477
- }, Nc = ({
4496
+ }, Pc = ({
4478
4497
  filterDrawerSize: e = "sm",
4479
4498
  onVisibilityChange: t,
4480
4499
  onSizeChange: n,
4481
4500
  onClear: r,
4482
4501
  filters: o,
4483
- pageKey: s = "default",
4502
+ pageKey: i = "default",
4484
4503
  currentFilters: a = {},
4485
4504
  onLoadPreset: c,
4486
4505
  activePresetName: l,
@@ -4488,41 +4507,41 @@ const Ht = new _r({}), $n = (e) => {
4488
4507
  open: f,
4489
4508
  onOpenChange: d
4490
4509
  }) => {
4491
- const p = bt(Ht)[s] ?? $n(s), v = () => {
4510
+ const p = bt(Ht)[i] ?? $n(i), v = () => {
4492
4511
  const h = prompt("Preset name?");
4493
- h && pc(s, {
4512
+ h && mc(i, {
4494
4513
  id: crypto.randomUUID(),
4495
4514
  name: h,
4496
4515
  date: (/* @__PURE__ */ new Date()).toISOString(),
4497
4516
  filters: a
4498
4517
  });
4499
4518
  };
4500
- return /* @__PURE__ */ i.jsx(fe, { wrap: "wrap", children: /* @__PURE__ */ i.jsxs(Rc, { size: e, open: f, onOpenChange: d, children: [
4501
- /* @__PURE__ */ i.jsx(jc, { asChild: !0, children: /* @__PURE__ */ i.jsxs(_e, { "aria-label": "Open filters", variant: "outline", size: "xs", ml: 2, p: 2, children: [
4502
- /* @__PURE__ */ i.jsx(Bi, { size: 16 }),
4519
+ return /* @__PURE__ */ s.jsx(fe, { wrap: "wrap", children: /* @__PURE__ */ s.jsxs(Ec, { size: e, open: f, onOpenChange: d, children: [
4520
+ /* @__PURE__ */ s.jsx(_c, { asChild: !0, children: /* @__PURE__ */ s.jsxs(_e, { "aria-label": "Open filters", variant: "outline", size: "xs", ml: 2, p: 2, children: [
4521
+ /* @__PURE__ */ s.jsx(Qs, { size: 16 }),
4503
4522
  "Filters"
4504
4523
  ] }) }),
4505
- /* @__PURE__ */ i.jsxs(Qe, { children: [
4506
- /* @__PURE__ */ i.jsx(Ec, {}),
4507
- /* @__PURE__ */ i.jsx(_c, { children: /* @__PURE__ */ i.jsxs(Tc, { children: [
4508
- /* @__PURE__ */ i.jsx(Oc, { children: /* @__PURE__ */ i.jsx(Mc, { children: "Filters" }) }),
4509
- /* @__PURE__ */ i.jsx($c, { overflowY: "auto", pt: 1, children: /* @__PURE__ */ i.jsxs(Ac, { defaultValue: "view", children: [
4510
- /* @__PURE__ */ i.jsxs(Lc, { mb: 4, children: [
4511
- /* @__PURE__ */ i.jsxs(dn, { value: "view", children: [
4512
- /* @__PURE__ */ i.jsx(Xi, { size: 16 }),
4524
+ /* @__PURE__ */ s.jsxs(Qe, { children: [
4525
+ /* @__PURE__ */ s.jsx(Tc, {}),
4526
+ /* @__PURE__ */ s.jsx(Oc, { children: /* @__PURE__ */ s.jsxs(Mc, { children: [
4527
+ /* @__PURE__ */ s.jsx($c, { children: /* @__PURE__ */ s.jsx(Ic, { children: "Filters" }) }),
4528
+ /* @__PURE__ */ s.jsx(kc, { overflowY: "auto", pt: 1, children: /* @__PURE__ */ s.jsxs(Nc, { defaultValue: "view", children: [
4529
+ /* @__PURE__ */ s.jsxs(zc, { mb: 4, children: [
4530
+ /* @__PURE__ */ s.jsxs(dn, { value: "view", children: [
4531
+ /* @__PURE__ */ s.jsx(na, { size: 16 }),
4513
4532
  "Edit"
4514
4533
  ] }),
4515
- /* @__PURE__ */ i.jsxs(dn, { value: "settings", children: [
4516
- /* @__PURE__ */ i.jsx(Zi, { size: 16 }),
4534
+ /* @__PURE__ */ s.jsxs(dn, { value: "settings", children: [
4535
+ /* @__PURE__ */ s.jsx(sa, { size: 16 }),
4517
4536
  "Settings"
4518
4537
  ] }),
4519
- /* @__PURE__ */ i.jsxs(dn, { value: "presets", children: [
4520
- /* @__PURE__ */ i.jsx($i, { size: 16 }),
4538
+ /* @__PURE__ */ s.jsxs(dn, { value: "presets", children: [
4539
+ /* @__PURE__ */ s.jsx(Ys, { size: 16 }),
4521
4540
  "Presets"
4522
4541
  ] })
4523
4542
  ] }),
4524
- /* @__PURE__ */ i.jsx(fn, { value: "view", children: o.filter((h) => h.visible).map((h) => /* @__PURE__ */ i.jsx(
4525
- Ie,
4543
+ /* @__PURE__ */ s.jsx(fn, { value: "view", children: o.filter((h) => h.visible).map((h) => /* @__PURE__ */ s.jsx(
4544
+ ke,
4526
4545
  {
4527
4546
  align: "stretch",
4528
4547
  border: "1px solid",
@@ -4532,27 +4551,27 @@ const Ht = new _r({}), $n = (e) => {
4532
4551
  rounded: "md",
4533
4552
  p: 3,
4534
4553
  mb: 3,
4535
- children: oo(h, f)
4554
+ children: io(h, f)
4536
4555
  },
4537
4556
  h.id
4538
4557
  )) }),
4539
- /* @__PURE__ */ i.jsx(fn, { value: "settings", children: /* @__PURE__ */ i.jsx(
4540
- Ur,
4558
+ /* @__PURE__ */ s.jsx(fn, { value: "settings", children: /* @__PURE__ */ s.jsx(
4559
+ Xr,
4541
4560
  {
4542
- sensors: Ko(qo(On)),
4543
- collisionDetection: $r,
4561
+ sensors: oi(ri(On)),
4562
+ collisionDetection: kr,
4544
4563
  onDragEnd: ({ active: h, over: b }) => {
4545
4564
  if (!b || h.id === b.id) return;
4546
4565
  const w = o.findIndex((_) => _.id === h.id), R = o.findIndex((_) => _.id === b.id), E = Kt(o, w, R);
4547
4566
  u?.(E);
4548
4567
  },
4549
- children: /* @__PURE__ */ i.jsx(
4550
- Kr,
4568
+ children: /* @__PURE__ */ s.jsx(
4569
+ Zr,
4551
4570
  {
4552
4571
  items: o.map((h) => h.id),
4553
- strategy: di,
4554
- children: o.map((h) => /* @__PURE__ */ i.jsx(
4555
- Cc,
4572
+ strategy: xs,
4573
+ children: o.map((h) => /* @__PURE__ */ s.jsx(
4574
+ jc,
4556
4575
  {
4557
4576
  filter: h,
4558
4577
  onVisibilityChange: t,
@@ -4564,10 +4583,10 @@ const Ht = new _r({}), $n = (e) => {
4564
4583
  )
4565
4584
  }
4566
4585
  ) }),
4567
- /* @__PURE__ */ i.jsx(fn, { value: "presets", children: /* @__PURE__ */ i.jsxs(Ie, { align: "stretch", mb: 3, children: [
4568
- /* @__PURE__ */ i.jsx(Ke, { size: "sm", colorScheme: "blue", onClick: v, children: "Save Current Filters" }),
4569
- p.length === 0 && /* @__PURE__ */ i.jsx(q, { fontSize: "xs", color: "gray.500", children: "No presets saved yet." }),
4570
- p.map((h) => /* @__PURE__ */ i.jsxs(
4586
+ /* @__PURE__ */ s.jsx(fn, { value: "presets", children: /* @__PURE__ */ s.jsxs(ke, { align: "stretch", mb: 3, children: [
4587
+ /* @__PURE__ */ s.jsx(Ke, { size: "sm", colorScheme: "blue", onClick: v, children: "Save Current Filters" }),
4588
+ p.length === 0 && /* @__PURE__ */ s.jsx(q, { fontSize: "xs", color: "gray.500", children: "No presets saved yet." }),
4589
+ p.map((h) => /* @__PURE__ */ s.jsxs(
4571
4590
  fe,
4572
4591
  {
4573
4592
  justify: "space-between",
@@ -4576,12 +4595,12 @@ const Ht = new _r({}), $n = (e) => {
4576
4595
  rounded: "md",
4577
4596
  p: 2,
4578
4597
  children: [
4579
- /* @__PURE__ */ i.jsxs(Ie, { align: "start", gap: 0, children: [
4580
- /* @__PURE__ */ i.jsx(q, { fontWeight: "bold", fontSize: "sm", children: h.name }),
4581
- /* @__PURE__ */ i.jsx(q, { fontSize: "xs", color: "gray.500", children: new Date(h.date).toLocaleDateString() })
4598
+ /* @__PURE__ */ s.jsxs(ke, { align: "start", gap: 0, children: [
4599
+ /* @__PURE__ */ s.jsx(q, { fontWeight: "bold", fontSize: "sm", children: h.name }),
4600
+ /* @__PURE__ */ s.jsx(q, { fontSize: "xs", color: "gray.500", children: new Date(h.date).toLocaleDateString() })
4582
4601
  ] }),
4583
- /* @__PURE__ */ i.jsxs(fe, { children: [
4584
- /* @__PURE__ */ i.jsx(
4602
+ /* @__PURE__ */ s.jsxs(fe, { children: [
4603
+ /* @__PURE__ */ s.jsx(
4585
4604
  Ke,
4586
4605
  {
4587
4606
  size: "xs",
@@ -4590,14 +4609,14 @@ const Ht = new _r({}), $n = (e) => {
4590
4609
  children: "Load"
4591
4610
  }
4592
4611
  ),
4593
- /* @__PURE__ */ i.jsx(
4612
+ /* @__PURE__ */ s.jsx(
4594
4613
  _e,
4595
4614
  {
4596
4615
  size: "xs",
4597
4616
  "aria-label": "Delete preset",
4598
4617
  variant: "ghost",
4599
- onClick: () => gc(s, h.id),
4600
- children: /* @__PURE__ */ i.jsx(Fi, { size: 14 })
4618
+ onClick: () => vc(i, h.id),
4619
+ children: /* @__PURE__ */ s.jsx(qs, { size: 14 })
4601
4620
  }
4602
4621
  )
4603
4622
  ] })
@@ -4607,8 +4626,8 @@ const Ht = new _r({}), $n = (e) => {
4607
4626
  ))
4608
4627
  ] }) })
4609
4628
  ] }) }),
4610
- /* @__PURE__ */ i.jsxs(kc, { justify: "space-between", children: [
4611
- /* @__PURE__ */ i.jsx(
4629
+ /* @__PURE__ */ s.jsxs(Ac, { justify: "space-between", children: [
4630
+ /* @__PURE__ */ s.jsx(
4612
4631
  Ke,
4613
4632
  {
4614
4633
  size: "sm",
@@ -4618,18 +4637,18 @@ const Ht = new _r({}), $n = (e) => {
4618
4637
  children: "Clear All"
4619
4638
  }
4620
4639
  ),
4621
- /* @__PURE__ */ i.jsx(Ic, { asChild: !0, children: /* @__PURE__ */ i.jsx(Rr, {}) })
4640
+ /* @__PURE__ */ s.jsx(Lc, { asChild: !0, children: /* @__PURE__ */ s.jsx(Rr, {}) })
4622
4641
  ] })
4623
4642
  ] }) })
4624
4643
  ] })
4625
4644
  ] }) });
4626
- }, hl = ({
4645
+ }, pl = ({
4627
4646
  title: e,
4628
4647
  filters: t,
4629
4648
  onVisibilityChange: n,
4630
4649
  onReorder: r,
4631
4650
  onSizeChange: o,
4632
- onClear: s,
4651
+ onClear: i,
4633
4652
  maxToolbarUnits: a,
4634
4653
  pageKey: c,
4635
4654
  currentFilters: l,
@@ -4638,27 +4657,27 @@ const Ht = new _r({}), $n = (e) => {
4638
4657
  filterDrawerSize: d = "sm"
4639
4658
  }) => {
4640
4659
  const [m, p] = oe(!1);
4641
- return /* @__PURE__ */ i.jsxs(fe, { wrap: "wrap", pl: 2, pr: 2, width: "100%", justify: "space-between", children: [
4660
+ return /* @__PURE__ */ s.jsxs(fe, { wrap: "wrap", pl: 2, pr: 2, width: "100%", justify: "space-between", children: [
4642
4661
  e,
4643
- /* @__PURE__ */ i.jsxs(fe, { gapX: 1, children: [
4644
- t.filter((v) => v.visible !== !1).map((v) => /* @__PURE__ */ i.jsx(
4662
+ /* @__PURE__ */ s.jsxs(fe, { gapX: 1, children: [
4663
+ t.filter((v) => v.visible !== !1).map((v) => /* @__PURE__ */ s.jsx(
4645
4664
  fe,
4646
4665
  {
4647
4666
  flex: v.size ?? 1,
4648
4667
  minW: `${(v.size ?? 1) * 100}px`,
4649
4668
  alignItems: "center",
4650
- children: oo(v)
4669
+ children: io(v)
4651
4670
  },
4652
4671
  v.id
4653
4672
  )),
4654
- /* @__PURE__ */ i.jsx(
4655
- Nc,
4673
+ /* @__PURE__ */ s.jsx(
4674
+ Pc,
4656
4675
  {
4657
4676
  filterDrawerSize: d,
4658
4677
  onVisibilityChange: n,
4659
4678
  onReorder: r,
4660
4679
  onSizeChange: o,
4661
- onClear: s,
4680
+ onClear: i,
4662
4681
  maxToolbarUnits: a,
4663
4682
  pageKey: c,
4664
4683
  filters: t,
@@ -4673,28 +4692,28 @@ const Ht = new _r({}), $n = (e) => {
4673
4692
  )
4674
4693
  ] })
4675
4694
  ] });
4676
- }, gl = (e, t) => {
4695
+ }, vl = (e, t) => {
4677
4696
  localStorage.setItem(`FILTER_ORDER_${e}`, JSON.stringify(t));
4678
- }, pl = (e) => {
4697
+ }, ml = (e) => {
4679
4698
  try {
4680
4699
  return JSON.parse(localStorage.getItem(`FILTER_ORDER_${e}`) || "[]");
4681
4700
  } catch {
4682
4701
  return [];
4683
4702
  }
4684
- }, vl = ({
4703
+ }, bl = ({
4685
4704
  onClick: e,
4686
4705
  size: t = "xs",
4687
4706
  variant: n = "solid",
4688
4707
  label: r,
4689
4708
  leftIcon: o,
4690
- rightIcon: s,
4709
+ rightIcon: i,
4691
4710
  isDisabled: a,
4692
4711
  colorScheme: c,
4693
4712
  loading: l,
4694
4713
  loadingText: u,
4695
4714
  rounded: f,
4696
4715
  type: d = "button"
4697
- }) => /* @__PURE__ */ i.jsx(
4716
+ }) => /* @__PURE__ */ s.jsx(
4698
4717
  Ke,
4699
4718
  {
4700
4719
  onClick: e,
@@ -4706,51 +4725,51 @@ const Ht = new _r({}), $n = (e) => {
4706
4725
  loadingText: u,
4707
4726
  rounded: f,
4708
4727
  type: d,
4709
- children: /* @__PURE__ */ i.jsxs(fe, { gap: 1, children: [
4728
+ children: /* @__PURE__ */ s.jsxs(fe, { gap: 1, children: [
4710
4729
  o,
4711
4730
  r,
4712
- s
4731
+ i
4713
4732
  ] })
4714
4733
  }
4715
- ), zc = x(Ae.Root), Pc = x(Ae.Backdrop), Yc = x(Ae.Positioner), Fc = x(Ae.Content), Vc = x(Ae.Header), Hc = x(Ae.Body), Wc = x(Ae.Footer), Bc = x(Ae.Title), Uc = x(Ae.CloseTrigger);
4716
- function ml({
4734
+ ), Yc = x(Ae.Root), Fc = x(Ae.Backdrop), Vc = x(Ae.Positioner), Hc = x(Ae.Content), Wc = x(Ae.Header), Bc = x(Ae.Body), Uc = x(Ae.Footer), Gc = x(Ae.Title), Xc = x(Ae.CloseTrigger);
4735
+ function xl({
4717
4736
  open: e,
4718
4737
  onClose: t,
4719
4738
  onConfirm: n,
4720
4739
  title: r = "Delete Company",
4721
4740
  entityName: o,
4722
- confirmText: s = "DELETE",
4741
+ confirmText: i = "DELETE",
4723
4742
  confirmLabel: a = "Delete",
4724
4743
  isLoading: c = !1
4725
4744
  }) {
4726
4745
  const [l, u] = oe("");
4727
- return /* @__PURE__ */ i.jsx(zc, { open: e, placement: "center", onOpenChange: (f) => !f.open && t(), children: /* @__PURE__ */ i.jsxs(Qe, { children: [
4728
- /* @__PURE__ */ i.jsx(Pc, {}),
4729
- /* @__PURE__ */ i.jsx(Yc, { children: /* @__PURE__ */ i.jsxs(Fc, { maxW: "520px", children: [
4730
- /* @__PURE__ */ i.jsx(Vc, { borderBottom: "1px solid", borderColor: "red.200", boxShadow: "sm", children: /* @__PURE__ */ i.jsx(Bc, { color: "red.600", children: r }) }),
4731
- /* @__PURE__ */ i.jsx(Hc, { children: /* @__PURE__ */ i.jsxs(gn, { gap: 4, boxShadow: "lg", border: "1px solid gray.200", borderRadius: "md", p: 4, children: [
4732
- /* @__PURE__ */ i.jsx(je, { border: "1px solid", borderColor: "red.200", bg: "red.50", borderRadius: "md", p: 4, children: /* @__PURE__ */ i.jsxs(gn, { direction: "row", gap: 3, align: "flex-start", children: [
4733
- /* @__PURE__ */ i.jsx(je, { color: "red.600", mt: "2px", children: /* @__PURE__ */ i.jsx(ea, { size: 20 }) }),
4734
- /* @__PURE__ */ i.jsxs(je, { children: [
4735
- /* @__PURE__ */ i.jsx(q, { fontWeight: "semibold", color: "red.700", children: "Are you sure?" }),
4736
- /* @__PURE__ */ i.jsxs(q, { fontSize: "sm", color: "red.600", children: [
4746
+ return /* @__PURE__ */ s.jsx(Yc, { open: e, placement: "center", onOpenChange: (f) => !f.open && t(), children: /* @__PURE__ */ s.jsxs(Qe, { children: [
4747
+ /* @__PURE__ */ s.jsx(Fc, {}),
4748
+ /* @__PURE__ */ s.jsx(Vc, { children: /* @__PURE__ */ s.jsxs(Hc, { maxW: "520px", children: [
4749
+ /* @__PURE__ */ s.jsx(Wc, { borderBottom: "1px solid", borderColor: "red.200", boxShadow: "sm", children: /* @__PURE__ */ s.jsx(Gc, { color: "red.600", children: r }) }),
4750
+ /* @__PURE__ */ s.jsx(Bc, { children: /* @__PURE__ */ s.jsxs(gn, { gap: 4, boxShadow: "lg", border: "1px solid gray.200", borderRadius: "md", p: 4, children: [
4751
+ /* @__PURE__ */ s.jsx(je, { border: "1px solid", borderColor: "red.200", bg: "red.50", borderRadius: "md", p: 4, children: /* @__PURE__ */ s.jsxs(gn, { direction: "row", gap: 3, align: "flex-start", children: [
4752
+ /* @__PURE__ */ s.jsx(je, { color: "red.600", mt: "2px", children: /* @__PURE__ */ s.jsx(ca, { size: 20 }) }),
4753
+ /* @__PURE__ */ s.jsxs(je, { children: [
4754
+ /* @__PURE__ */ s.jsx(q, { fontWeight: "semibold", color: "red.700", children: "Are you sure?" }),
4755
+ /* @__PURE__ */ s.jsxs(q, { fontSize: "sm", color: "red.600", children: [
4737
4756
  "All the data of ",
4738
- /* @__PURE__ */ i.jsx("b", { children: o }),
4757
+ /* @__PURE__ */ s.jsx("b", { children: o }),
4739
4758
  " will permanently be deleted."
4740
4759
  ] })
4741
4760
  ] })
4742
4761
  ] }) }),
4743
- /* @__PURE__ */ i.jsx(q, { fontSize: "sm", color: "gray.600", children: "You can’t undo this action afterwards." }),
4744
- /* @__PURE__ */ i.jsxs(je, { children: [
4745
- /* @__PURE__ */ i.jsxs(q, { fontSize: "sm", mb: 1, children: [
4762
+ /* @__PURE__ */ s.jsx(q, { fontSize: "sm", color: "gray.600", children: "You can’t undo this action afterwards." }),
4763
+ /* @__PURE__ */ s.jsxs(je, { children: [
4764
+ /* @__PURE__ */ s.jsxs(q, { fontSize: "sm", mb: 1, children: [
4746
4765
  "Type ",
4747
- /* @__PURE__ */ i.jsx("b", { children: s }),
4766
+ /* @__PURE__ */ s.jsx("b", { children: i }),
4748
4767
  " to continue"
4749
4768
  ] }),
4750
- /* @__PURE__ */ i.jsx(
4769
+ /* @__PURE__ */ s.jsx(
4751
4770
  Sn,
4752
4771
  {
4753
- placeholder: `Type ${s} here`,
4772
+ placeholder: `Type ${i} here`,
4754
4773
  value: l,
4755
4774
  onChange: (f) => u(f.target.value),
4756
4775
  size: "xs"
@@ -4758,8 +4777,8 @@ function ml({
4758
4777
  )
4759
4778
  ] })
4760
4779
  ] }) }),
4761
- /* @__PURE__ */ i.jsxs(
4762
- Wc,
4780
+ /* @__PURE__ */ s.jsxs(
4781
+ Uc,
4763
4782
  {
4764
4783
  justifyContent: "flex-end",
4765
4784
  gap: 3,
@@ -4767,8 +4786,8 @@ function ml({
4767
4786
  borderColor: "red.200",
4768
4787
  boxShadow: "lg",
4769
4788
  children: [
4770
- /* @__PURE__ */ i.jsx(Ke, { variant: "outline", size: "sm", onClick: t, children: "Cancel" }),
4771
- /* @__PURE__ */ i.jsx(
4789
+ /* @__PURE__ */ s.jsx(Ke, { variant: "outline", size: "sm", onClick: t, children: "Cancel" }),
4790
+ /* @__PURE__ */ s.jsx(
4772
4791
  Ke,
4773
4792
  {
4774
4793
  size: "sm",
@@ -4783,16 +4802,16 @@ function ml({
4783
4802
  ]
4784
4803
  }
4785
4804
  ),
4786
- /* @__PURE__ */ i.jsx(Uc, { asChild: !0, children: /* @__PURE__ */ i.jsx(Rr, { size: "sm" }) })
4805
+ /* @__PURE__ */ s.jsx(Xc, { asChild: !0, children: /* @__PURE__ */ s.jsx(Rr, { size: "sm" }) })
4787
4806
  ] }) })
4788
4807
  ] }) });
4789
4808
  }
4790
- function bl({
4809
+ function yl({
4791
4810
  refetch: e,
4792
4811
  isLoading: t = !1,
4793
4812
  label: n = "Refresh"
4794
4813
  }) {
4795
- const [r, o] = oe(!1), s = async () => {
4814
+ const [r, o] = oe(!1), i = async () => {
4796
4815
  o(!0);
4797
4816
  try {
4798
4817
  await e();
@@ -4800,17 +4819,17 @@ function bl({
4800
4819
  setTimeout(() => o(!1), 300);
4801
4820
  }
4802
4821
  };
4803
- return /* @__PURE__ */ i.jsx(
4822
+ return /* @__PURE__ */ s.jsx(
4804
4823
  _e,
4805
4824
  {
4806
4825
  "aria-label": n,
4807
4826
  size: "xs",
4808
4827
  variant: "outline",
4809
4828
  disabled: t || r,
4810
- onClick: s,
4829
+ onClick: i,
4811
4830
  ml: 2,
4812
- children: /* @__PURE__ */ i.jsx(
4813
- Ki,
4831
+ children: /* @__PURE__ */ s.jsx(
4832
+ oa,
4814
4833
  {
4815
4834
  size: 14,
4816
4835
  style: {
@@ -4821,13 +4840,13 @@ function bl({
4821
4840
  }
4822
4841
  );
4823
4842
  }
4824
- var kt = { exports: {} }, Gc = kt.exports, br;
4825
- function Xc() {
4843
+ var It = { exports: {} }, qc = It.exports, br;
4844
+ function Kc() {
4826
4845
  return br || (br = 1, (function(e, t) {
4827
4846
  (function(n, r) {
4828
4847
  e.exports = r();
4829
- })(Gc, (function() {
4830
- var n = 1e3, r = 6e4, o = 36e5, s = "millisecond", a = "second", c = "minute", l = "hour", u = "day", f = "week", d = "month", m = "quarter", p = "year", v = "date", h = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, w = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, R = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(M) {
4848
+ })(qc, (function() {
4849
+ var n = 1e3, r = 6e4, o = 36e5, i = "millisecond", a = "second", c = "minute", l = "hour", u = "day", f = "week", d = "month", m = "quarter", p = "year", v = "date", h = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, w = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, R = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(M) {
4831
4850
  var D = ["th", "st", "nd", "rd"], y = M % 100;
4832
4851
  return "[" + M + (D[(y - 20) % 10] || D[y] || D[0]) + "]";
4833
4852
  } }, E = function(M, D, y) {
@@ -4838,12 +4857,12 @@ function Xc() {
4838
4857
  return (D <= 0 ? "+" : "-") + E(j, 2, "0") + ":" + E(C, 2, "0");
4839
4858
  }, m: function M(D, y) {
4840
4859
  if (D.date() < y.date()) return -M(y, D);
4841
- var j = 12 * (y.year() - D.year()) + (y.month() - D.month()), C = D.clone().add(j, d), I = y - C < 0, L = D.clone().add(j + (I ? -1 : 1), d);
4842
- return +(-(j + (y - C) / (I ? C - L : L - C)) || 0);
4860
+ var j = 12 * (y.year() - D.year()) + (y.month() - D.month()), C = D.clone().add(j, d), k = y - C < 0, L = D.clone().add(j + (k ? -1 : 1), d);
4861
+ return +(-(j + (y - C) / (k ? C - L : L - C)) || 0);
4843
4862
  }, a: function(M) {
4844
4863
  return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
4845
4864
  }, p: function(M) {
4846
- return { M: d, y: p, w: f, d: u, D: v, h: l, m: c, s: a, ms: s, Q: m }[M] || String(M || "").toLowerCase().replace(/s$/, "");
4865
+ return { M: d, y: p, w: f, d: u, D: v, h: l, m: c, s: a, ms: i, Q: m }[M] || String(M || "").toLowerCase().replace(/s$/, "");
4847
4866
  }, u: function(M) {
4848
4867
  return M === void 0;
4849
4868
  } }, O = "en", T = {};
@@ -4854,8 +4873,8 @@ function Xc() {
4854
4873
  var C;
4855
4874
  if (!D) return O;
4856
4875
  if (typeof D == "string") {
4857
- var I = D.toLowerCase();
4858
- T[I] && (C = I), y && (T[I] = y, C = I);
4876
+ var k = D.toLowerCase();
4877
+ T[k] && (C = k), y && (T[k] = y, C = k);
4859
4878
  var L = D.split("-");
4860
4879
  if (!C && L.length > 1) return M(L[0]);
4861
4880
  } else {
@@ -4867,8 +4886,8 @@ function Xc() {
4867
4886
  if (N(M)) return M.clone();
4868
4887
  var y = typeof D == "object" ? D : {};
4869
4888
  return y.date = M, y.args = arguments, new Q(y);
4870
- }, k = _;
4871
- k.l = W, k.i = N, k.w = function(M, D) {
4889
+ }, I = _;
4890
+ I.l = W, I.i = N, I.w = function(M, D) {
4872
4891
  return Y(M, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
4873
4892
  };
4874
4893
  var Q = (function() {
@@ -4878,15 +4897,15 @@ function Xc() {
4878
4897
  var D = M.prototype;
4879
4898
  return D.parse = function(y) {
4880
4899
  this.$d = (function(j) {
4881
- var C = j.date, I = j.utc;
4900
+ var C = j.date, k = j.utc;
4882
4901
  if (C === null) return /* @__PURE__ */ new Date(NaN);
4883
- if (k.u(C)) return /* @__PURE__ */ new Date();
4902
+ if (I.u(C)) return /* @__PURE__ */ new Date();
4884
4903
  if (C instanceof Date) return new Date(C);
4885
4904
  if (typeof C == "string" && !/Z$/i.test(C)) {
4886
4905
  var L = C.match(b);
4887
4906
  if (L) {
4888
4907
  var g = L[2] - 1 || 0, S = (L[7] || "0").substring(0, 3);
4889
- return I ? new Date(Date.UTC(L[1], g, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, S)) : new Date(L[1], g, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, S);
4908
+ return k ? new Date(Date.UTC(L[1], g, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, S)) : new Date(L[1], g, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, S);
4890
4909
  }
4891
4910
  }
4892
4911
  return new Date(C);
@@ -4895,7 +4914,7 @@ function Xc() {
4895
4914
  var y = this.$d;
4896
4915
  this.$y = y.getFullYear(), this.$M = y.getMonth(), this.$D = y.getDate(), this.$W = y.getDay(), this.$H = y.getHours(), this.$m = y.getMinutes(), this.$s = y.getSeconds(), this.$ms = y.getMilliseconds();
4897
4916
  }, D.$utils = function() {
4898
- return k;
4917
+ return I;
4899
4918
  }, D.isValid = function() {
4900
4919
  return this.$d.toString() !== h;
4901
4920
  }, D.isSame = function(y, j) {
@@ -4906,26 +4925,26 @@ function Xc() {
4906
4925
  }, D.isBefore = function(y, j) {
4907
4926
  return this.endOf(j) < Y(y);
4908
4927
  }, D.$g = function(y, j, C) {
4909
- return k.u(y) ? this[j] : this.set(C, y);
4928
+ return I.u(y) ? this[j] : this.set(C, y);
4910
4929
  }, D.unix = function() {
4911
4930
  return Math.floor(this.valueOf() / 1e3);
4912
4931
  }, D.valueOf = function() {
4913
4932
  return this.$d.getTime();
4914
4933
  }, D.startOf = function(y, j) {
4915
- var C = this, I = !!k.u(j) || j, L = k.p(y), g = function(Z, z) {
4916
- var de = k.w(C.$u ? Date.UTC(C.$y, z, Z) : new Date(C.$y, z, Z), C);
4917
- return I ? de : de.endOf(u);
4934
+ var C = this, k = !!I.u(j) || j, L = I.p(y), g = function(Z, z) {
4935
+ var de = I.w(C.$u ? Date.UTC(C.$y, z, Z) : new Date(C.$y, z, Z), C);
4936
+ return k ? de : de.endOf(u);
4918
4937
  }, S = function(Z, z) {
4919
- return k.w(C.toDate()[Z].apply(C.toDate("s"), (I ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(z)), C);
4938
+ return I.w(C.toDate()[Z].apply(C.toDate("s"), (k ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(z)), C);
4920
4939
  }, A = this.$W, P = this.$M, G = this.$D, X = "set" + (this.$u ? "UTC" : "");
4921
4940
  switch (L) {
4922
4941
  case p:
4923
- return I ? g(1, 0) : g(31, 11);
4942
+ return k ? g(1, 0) : g(31, 11);
4924
4943
  case d:
4925
- return I ? g(1, P) : g(0, P + 1);
4944
+ return k ? g(1, P) : g(0, P + 1);
4926
4945
  case f:
4927
4946
  var F = this.$locale().weekStart || 0, J = (A < F ? A + 7 : A) - F;
4928
- return g(I ? G - J : G + (6 - J), P);
4947
+ return g(k ? G - J : G + (6 - J), P);
4929
4948
  case u:
4930
4949
  case v:
4931
4950
  return S(X + "Hours", 0);
@@ -4941,8 +4960,8 @@ function Xc() {
4941
4960
  }, D.endOf = function(y) {
4942
4961
  return this.startOf(y, !1);
4943
4962
  }, D.$set = function(y, j) {
4944
- var C, I = k.p(y), L = "set" + (this.$u ? "UTC" : ""), g = (C = {}, C[u] = L + "Date", C[v] = L + "Date", C[d] = L + "Month", C[p] = L + "FullYear", C[l] = L + "Hours", C[c] = L + "Minutes", C[a] = L + "Seconds", C[s] = L + "Milliseconds", C)[I], S = I === u ? this.$D + (j - this.$W) : j;
4945
- if (I === d || I === p) {
4963
+ var C, k = I.p(y), L = "set" + (this.$u ? "UTC" : ""), g = (C = {}, C[u] = L + "Date", C[v] = L + "Date", C[d] = L + "Month", C[p] = L + "FullYear", C[l] = L + "Hours", C[c] = L + "Minutes", C[a] = L + "Seconds", C[i] = L + "Milliseconds", C)[k], S = k === u ? this.$D + (j - this.$W) : j;
4964
+ if (k === d || k === p) {
4946
4965
  var A = this.clone().set(v, 1);
4947
4966
  A.$d[g](S), A.init(), this.$d = A.set(v, Math.min(this.$D, A.daysInMonth())).$d;
4948
4967
  } else g && this.$d[g](S);
@@ -4950,44 +4969,44 @@ function Xc() {
4950
4969
  }, D.set = function(y, j) {
4951
4970
  return this.clone().$set(y, j);
4952
4971
  }, D.get = function(y) {
4953
- return this[k.p(y)]();
4972
+ return this[I.p(y)]();
4954
4973
  }, D.add = function(y, j) {
4955
- var C, I = this;
4974
+ var C, k = this;
4956
4975
  y = Number(y);
4957
- var L = k.p(j), g = function(P) {
4958
- var G = Y(I);
4959
- return k.w(G.date(G.date() + Math.round(P * y)), I);
4976
+ var L = I.p(j), g = function(P) {
4977
+ var G = Y(k);
4978
+ return I.w(G.date(G.date() + Math.round(P * y)), k);
4960
4979
  };
4961
4980
  if (L === d) return this.set(d, this.$M + y);
4962
4981
  if (L === p) return this.set(p, this.$y + y);
4963
4982
  if (L === u) return g(1);
4964
4983
  if (L === f) return g(7);
4965
4984
  var S = (C = {}, C[c] = r, C[l] = o, C[a] = n, C)[L] || 1, A = this.$d.getTime() + y * S;
4966
- return k.w(A, this);
4985
+ return I.w(A, this);
4967
4986
  }, D.subtract = function(y, j) {
4968
4987
  return this.add(-1 * y, j);
4969
4988
  }, D.format = function(y) {
4970
4989
  var j = this, C = this.$locale();
4971
4990
  if (!this.isValid()) return C.invalidDate || h;
4972
- var I = y || "YYYY-MM-DDTHH:mm:ssZ", L = k.z(this), g = this.$H, S = this.$m, A = this.$M, P = C.weekdays, G = C.months, X = C.meridiem, F = function(z, de, ae, ye) {
4973
- return z && (z[de] || z(j, I)) || ae[de].slice(0, ye);
4991
+ var k = y || "YYYY-MM-DDTHH:mm:ssZ", L = I.z(this), g = this.$H, S = this.$m, A = this.$M, P = C.weekdays, G = C.months, X = C.meridiem, F = function(z, de, ae, ye) {
4992
+ return z && (z[de] || z(j, k)) || ae[de].slice(0, ye);
4974
4993
  }, J = function(z) {
4975
- return k.s(g % 12 || 12, z, "0");
4994
+ return I.s(g % 12 || 12, z, "0");
4976
4995
  }, Z = X || function(z, de, ae) {
4977
4996
  var ye = z < 12 ? "AM" : "PM";
4978
4997
  return ae ? ye.toLowerCase() : ye;
4979
4998
  };
4980
- return I.replace(w, (function(z, de) {
4999
+ return k.replace(w, (function(z, de) {
4981
5000
  return de || (function(ae) {
4982
5001
  switch (ae) {
4983
5002
  case "YY":
4984
5003
  return String(j.$y).slice(-2);
4985
5004
  case "YYYY":
4986
- return k.s(j.$y, 4, "0");
5005
+ return I.s(j.$y, 4, "0");
4987
5006
  case "M":
4988
5007
  return A + 1;
4989
5008
  case "MM":
4990
- return k.s(A + 1, 2, "0");
5009
+ return I.s(A + 1, 2, "0");
4991
5010
  case "MMM":
4992
5011
  return F(C.monthsShort, A, G, 3);
4993
5012
  case "MMMM":
@@ -4995,7 +5014,7 @@ function Xc() {
4995
5014
  case "D":
4996
5015
  return j.$D;
4997
5016
  case "DD":
4998
- return k.s(j.$D, 2, "0");
5017
+ return I.s(j.$D, 2, "0");
4999
5018
  case "d":
5000
5019
  return String(j.$W);
5001
5020
  case "dd":
@@ -5007,7 +5026,7 @@ function Xc() {
5007
5026
  case "H":
5008
5027
  return String(g);
5009
5028
  case "HH":
5010
- return k.s(g, 2, "0");
5029
+ return I.s(g, 2, "0");
5011
5030
  case "h":
5012
5031
  return J(1);
5013
5032
  case "hh":
@@ -5019,13 +5038,13 @@ function Xc() {
5019
5038
  case "m":
5020
5039
  return String(S);
5021
5040
  case "mm":
5022
- return k.s(S, 2, "0");
5041
+ return I.s(S, 2, "0");
5023
5042
  case "s":
5024
5043
  return String(j.$s);
5025
5044
  case "ss":
5026
- return k.s(j.$s, 2, "0");
5045
+ return I.s(j.$s, 2, "0");
5027
5046
  case "SSS":
5028
- return k.s(j.$ms, 3, "0");
5047
+ return I.s(j.$ms, 3, "0");
5029
5048
  case "Z":
5030
5049
  return L;
5031
5050
  }
@@ -5035,48 +5054,48 @@ function Xc() {
5035
5054
  }, D.utcOffset = function() {
5036
5055
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
5037
5056
  }, D.diff = function(y, j, C) {
5038
- var I, L = this, g = k.p(j), S = Y(y), A = (S.utcOffset() - this.utcOffset()) * r, P = this - S, G = function() {
5039
- return k.m(L, S);
5057
+ var k, L = this, g = I.p(j), S = Y(y), A = (S.utcOffset() - this.utcOffset()) * r, P = this - S, G = function() {
5058
+ return I.m(L, S);
5040
5059
  };
5041
5060
  switch (g) {
5042
5061
  case p:
5043
- I = G() / 12;
5062
+ k = G() / 12;
5044
5063
  break;
5045
5064
  case d:
5046
- I = G();
5065
+ k = G();
5047
5066
  break;
5048
5067
  case m:
5049
- I = G() / 3;
5068
+ k = G() / 3;
5050
5069
  break;
5051
5070
  case f:
5052
- I = (P - A) / 6048e5;
5071
+ k = (P - A) / 6048e5;
5053
5072
  break;
5054
5073
  case u:
5055
- I = (P - A) / 864e5;
5074
+ k = (P - A) / 864e5;
5056
5075
  break;
5057
5076
  case l:
5058
- I = P / o;
5077
+ k = P / o;
5059
5078
  break;
5060
5079
  case c:
5061
- I = P / r;
5080
+ k = P / r;
5062
5081
  break;
5063
5082
  case a:
5064
- I = P / n;
5083
+ k = P / n;
5065
5084
  break;
5066
5085
  default:
5067
- I = P;
5086
+ k = P;
5068
5087
  }
5069
- return C ? I : k.a(I);
5088
+ return C ? k : I.a(k);
5070
5089
  }, D.daysInMonth = function() {
5071
5090
  return this.endOf(d).$D;
5072
5091
  }, D.$locale = function() {
5073
5092
  return T[this.$L];
5074
5093
  }, D.locale = function(y, j) {
5075
5094
  if (!y) return this.$L;
5076
- var C = this.clone(), I = W(y, j, !0);
5077
- return I && (C.$L = I), C;
5095
+ var C = this.clone(), k = W(y, j, !0);
5096
+ return k && (C.$L = k), C;
5078
5097
  }, D.clone = function() {
5079
- return k.w(this.$d, this);
5098
+ return I.w(this.$d, this);
5080
5099
  }, D.toDate = function() {
5081
5100
  return new Date(this.valueOf());
5082
5101
  }, D.toJSON = function() {
@@ -5086,9 +5105,9 @@ function Xc() {
5086
5105
  }, D.toString = function() {
5087
5106
  return this.$d.toUTCString();
5088
5107
  }, M;
5089
- })(), se = Q.prototype;
5090
- return Y.prototype = se, [["$ms", s], ["$s", a], ["$m", c], ["$H", l], ["$W", u], ["$M", d], ["$y", p], ["$D", v]].forEach((function(M) {
5091
- se[M[1]] = function(D) {
5108
+ })(), ie = Q.prototype;
5109
+ return Y.prototype = ie, [["$ms", i], ["$s", a], ["$m", c], ["$H", l], ["$W", u], ["$M", d], ["$y", p], ["$D", v]].forEach((function(M) {
5110
+ ie[M[1]] = function(D) {
5092
5111
  return this.$g(D, M[0], M[1]);
5093
5112
  };
5094
5113
  })), Y.extend = function(M, D) {
@@ -5097,23 +5116,23 @@ function Xc() {
5097
5116
  return Y(1e3 * M);
5098
5117
  }, Y.en = T[O], Y.Ls = T, Y.p = {}, Y;
5099
5118
  }));
5100
- })(kt)), kt.exports;
5119
+ })(It)), It.exports;
5101
5120
  }
5102
- var qc = Xc();
5103
- const Jt = /* @__PURE__ */ Ut(qc);
5104
- var It = { exports: {} }, Kc = It.exports, xr;
5105
- function Jc() {
5121
+ var Jc = Kc();
5122
+ const Jt = /* @__PURE__ */ Ut(Jc);
5123
+ var kt = { exports: {} }, Zc = kt.exports, xr;
5124
+ function Qc() {
5106
5125
  return xr || (xr = 1, (function(e, t) {
5107
5126
  (function(n, r) {
5108
5127
  e.exports = r();
5109
- })(Kc, (function() {
5128
+ })(Zc, (function() {
5110
5129
  return function(n, r, o) {
5111
5130
  n = n || {};
5112
- var s = r.prototype, a = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
5131
+ var i = r.prototype, a = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
5113
5132
  function c(u, f, d, m) {
5114
- return s.fromToBase(u, f, d, m);
5133
+ return i.fromToBase(u, f, d, m);
5115
5134
  }
5116
- o.en.relativeTime = a, s.fromToBase = function(u, f, d, m, p) {
5135
+ o.en.relativeTime = a, i.fromToBase = function(u, f, d, m, p) {
5117
5136
  for (var v, h, b, w = d.$locale().relativeTime || a, R = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], E = R.length, _ = 0; _ < E; _ += 1) {
5118
5137
  var O = R[_];
5119
5138
  O.d && (v = m ? o(u).diff(d, O.d, !0) : d.diff(u, O.d, !0));
@@ -5128,35 +5147,35 @@ function Jc() {
5128
5147
  if (f) return h;
5129
5148
  var N = b ? w.future : w.past;
5130
5149
  return typeof N == "function" ? N(h) : N.replace("%s", h);
5131
- }, s.to = function(u, f) {
5150
+ }, i.to = function(u, f) {
5132
5151
  return c(u, f, this, !0);
5133
- }, s.from = function(u, f) {
5152
+ }, i.from = function(u, f) {
5134
5153
  return c(u, f, this);
5135
5154
  };
5136
5155
  var l = function(u) {
5137
5156
  return u.$u ? o.utc() : o();
5138
5157
  };
5139
- s.toNow = function(u) {
5158
+ i.toNow = function(u) {
5140
5159
  return this.to(l(this), u);
5141
- }, s.fromNow = function(u) {
5160
+ }, i.fromNow = function(u) {
5142
5161
  return this.from(l(this), u);
5143
5162
  };
5144
5163
  };
5145
5164
  }));
5146
- })(It)), It.exports;
5165
+ })(kt)), kt.exports;
5147
5166
  }
5148
- var Zc = Jc();
5149
- const Qc = /* @__PURE__ */ Ut(Zc);
5150
- var At = { exports: {} }, el = At.exports, yr;
5151
- function tl() {
5167
+ var el = Qc();
5168
+ const tl = /* @__PURE__ */ Ut(el);
5169
+ var At = { exports: {} }, nl = At.exports, yr;
5170
+ function rl() {
5152
5171
  return yr || (yr = 1, (function(e, t) {
5153
5172
  (function(n, r) {
5154
5173
  e.exports = r();
5155
- })(el, (function() {
5174
+ })(nl, (function() {
5156
5175
  var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
5157
- return function(r, o, s) {
5176
+ return function(r, o, i) {
5158
5177
  var a = o.prototype, c = a.format;
5159
- s.en.formats = n, a.format = function(l) {
5178
+ i.en.formats = n, a.format = function(l) {
5160
5179
  l === void 0 && (l = "YYYY-MM-DDTHH:mm:ssZ");
5161
5180
  var u = this.$locale().formats, f = (function(d, m) {
5162
5181
  return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(p, v, h) {
@@ -5172,19 +5191,19 @@ function tl() {
5172
5191
  }));
5173
5192
  })(At)), At.exports;
5174
5193
  }
5175
- var nl = tl();
5176
- const rl = /* @__PURE__ */ Ut(nl);
5177
- var Lt = { exports: {} }, ol = Lt.exports, wr;
5178
- function sl() {
5194
+ var ol = rl();
5195
+ const il = /* @__PURE__ */ Ut(ol);
5196
+ var Lt = { exports: {} }, sl = Lt.exports, wr;
5197
+ function al() {
5179
5198
  return wr || (wr = 1, (function(e, t) {
5180
5199
  (function(n, r) {
5181
5200
  e.exports = r();
5182
- })(ol, (function() {
5201
+ })(sl, (function() {
5183
5202
  return function(n, r) {
5184
- var o = r.prototype, s = o.format;
5203
+ var o = r.prototype, i = o.format;
5185
5204
  o.format = function(a) {
5186
5205
  var c = this, l = this.$locale();
5187
- if (!this.isValid()) return s.bind(this)(a);
5206
+ if (!this.isValid()) return i.bind(this)(a);
5188
5207
  var u = this.$utils(), f = (a || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, (function(d) {
5189
5208
  switch (d) {
5190
5209
  case "Q":
@@ -5218,18 +5237,18 @@ function sl() {
5218
5237
  return d;
5219
5238
  }
5220
5239
  }));
5221
- return s.bind(this)(f);
5240
+ return i.bind(this)(f);
5222
5241
  };
5223
5242
  };
5224
5243
  }));
5225
5244
  })(Lt)), Lt.exports;
5226
5245
  }
5227
- var il = sl();
5228
- const al = /* @__PURE__ */ Ut(il);
5229
- Jt.extend(Qc);
5230
- Jt.extend(rl);
5231
- Jt.extend(al);
5232
- const cl = {
5246
+ var cl = al();
5247
+ const ll = /* @__PURE__ */ Ut(cl);
5248
+ Jt.extend(tl);
5249
+ Jt.extend(il);
5250
+ Jt.extend(ll);
5251
+ const ul = {
5233
5252
  date: "DD MMM YYYY",
5234
5253
  time: "hh:mm A",
5235
5254
  dateTime: "DD MMM YYYY, hh:mm A",
@@ -5245,23 +5264,23 @@ function Sr({
5245
5264
  }) {
5246
5265
  if (!e) return r;
5247
5266
  const o = Jt(e);
5248
- return o.isValid() ? t === "relative" ? o.fromNow() : o.format(n ?? cl[t]) : r;
5267
+ return o.isValid() ? t === "relative" ? o.fromNow() : o.format(n ?? ul[t]) : r;
5249
5268
  }
5250
- function xl({
5269
+ function wl({
5251
5270
  value: e,
5252
5271
  dateVariant: t = "date",
5253
5272
  timeVariant: n = "time",
5254
5273
  dateFormat: r,
5255
5274
  timeFormat: o,
5256
- align: s = "start"
5275
+ align: i = "start"
5257
5276
  }) {
5258
- return /* @__PURE__ */ i.jsxs(gn, { gap: 0.5, align: s, children: [
5259
- /* @__PURE__ */ i.jsx(q, { fontSize: "sm", fontWeight: "500", children: Sr({
5277
+ return /* @__PURE__ */ s.jsxs(gn, { gap: 0.5, align: i, children: [
5278
+ /* @__PURE__ */ s.jsx(q, { fontSize: "sm", fontWeight: "500", children: Sr({
5260
5279
  value: e,
5261
5280
  variant: t,
5262
5281
  format: r
5263
5282
  }) }),
5264
- /* @__PURE__ */ i.jsx(q, { fontSize: "xs", color: "gray.500", children: Sr({
5283
+ /* @__PURE__ */ s.jsx(q, { fontSize: "xs", color: "gray.500", children: Sr({
5265
5284
  value: e,
5266
5285
  variant: n,
5267
5286
  format: o
@@ -5269,27 +5288,27 @@ function xl({
5269
5288
  ] });
5270
5289
  }
5271
5290
  export {
5272
- fl as DataTable,
5273
- hl as Filters,
5274
- vl as MDSButton,
5275
- za as MDSCheckbox,
5276
- ml as MDSConfirmDeleteDialog,
5291
+ gl as DataTable,
5292
+ pl as Filters,
5293
+ bl as MDSButton,
5294
+ Ya as MDSCheckbox,
5295
+ xl as MDSConfirmDeleteDialog,
5277
5296
  mr as MDSInput,
5278
- bl as MDSRefreshButton,
5279
- fc as MDSSelectBox,
5280
- bl as RefreshButton,
5281
- xl as StackedDateTime,
5282
- pc as addPreset,
5283
- gc as deletePreset,
5297
+ yl as MDSRefreshButton,
5298
+ gc as MDSSelectBox,
5299
+ yl as RefreshButton,
5300
+ wl as StackedDateTime,
5301
+ mc as addPreset,
5302
+ vc as deletePreset,
5284
5303
  Sr as formatDateTime,
5285
5304
  $n as getPresets,
5286
- pl as loadOrder,
5305
+ ml as loadOrder,
5287
5306
  Ht as presetStore,
5288
- gl as saveOrder,
5289
- ro as savePresets,
5290
- ia as setActionsConfig,
5291
- oa as setData,
5292
- sa as setTableId,
5293
- me as tableStore,
5307
+ vl as saveOrder,
5308
+ oo as savePresets,
5309
+ zo as setActionsConfig,
5310
+ Lo as setData,
5311
+ No as setTableId,
5312
+ he as tableStore,
5294
5313
  x as withChildren
5295
5314
  };