@mdspl/mds-shared-ui 0.9.7 → 0.9.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import oe, { useLayoutEffect as Co, useEffect as Y, useRef as G, useMemo as U, useCallback as ee, useState as J, createContext as tt, memo as Do, useReducer as jo, useContext as Be, forwardRef as Rn, createElement as bn } from "react";
2
- import { Menu as Ie, Checkbox as Re, IconButton as Oe, Portal as Ge, Table as ae, HStack as fe, Select as te, Pagination as zt, createListCollection as Tr, Box as De, Text as q, ButtonGroup as Ro, Skeleton as Eo, Spinner as Or, Combobox as Me, useListCollection as _o, Span as To, Popover as Ut, InputGroup as Mr, InputElement as Un, PopoverArrow as Oo, VStack as Ne, Kbd as Gn, Input as En, Field as Ee, Slider as xt, Drawer as Ae, Tabs as Gt, Button as Ue, CloseButton as Xt, Dialog as K, Stack as Pt, Flex as an, PinInput as qt } from "@chakra-ui/react";
1
+ import oe, { useLayoutEffect as Co, useEffect as Y, useRef as X, useMemo as U, useCallback as ee, useState as J, createContext as tt, memo as Do, useReducer as jo, useContext as Be, forwardRef as Rn, createElement as bn } from "react";
2
+ import { Menu as Ie, Checkbox as Re, IconButton as Oe, Portal as Ge, Table as ae, HStack as fe, Select as te, Pagination as zt, createListCollection as Tr, Box as De, Text as G, ButtonGroup as Ro, Skeleton as Eo, Spinner as Or, Combobox as Me, useListCollection as _o, Span as To, Popover as Ut, InputGroup as Mr, InputElement as Un, PopoverArrow as Oo, VStack as Ne, Kbd as Gn, Input as En, Field as Ee, Slider as xt, Drawer as Ae, Tabs as Gt, Button as Ue, CloseButton as Xt, Dialog as K, Stack as Pt, Flex as an, PinInput as qt } from "@chakra-ui/react";
3
3
  import { unstable_batchedUpdates as jt, createPortal as Mo } from "react-dom";
4
4
  function Kt(e) {
5
5
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -113,7 +113,7 @@ function Io() {
113
113
  return Error("react-stack-top-frame");
114
114
  }
115
115
  function c(g) {
116
- if (X.call(g, "key")) {
116
+ if (q.call(g, "key")) {
117
117
  var D = Object.getOwnPropertyDescriptor(g, "key").get;
118
118
  if (D && D.isReactWarning) return !1;
119
119
  }
@@ -183,7 +183,7 @@ function Io() {
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(H);
186
- if (X.call(D, "key")) {
186
+ if (q.call(D, "key")) {
187
187
  H = e(g);
188
188
  var ne = Object.keys(D).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 x(g) {
225
225
  return typeof g == "object" && g !== null && g.$$typeof === h;
226
226
  }
227
- var p = oe, h = /* @__PURE__ */ Symbol.for("react.transitional.element"), v = /* @__PURE__ */ Symbol.for("react.portal"), b = /* @__PURE__ */ Symbol.for("react.fragment"), y = /* @__PURE__ */ Symbol.for("react.strict_mode"), T = /* @__PURE__ */ Symbol.for("react.profiler"), j = /* @__PURE__ */ Symbol.for("react.consumer"), O = /* @__PURE__ */ Symbol.for("react.context"), M = /* @__PURE__ */ Symbol.for("react.forward_ref"), _ = /* @__PURE__ */ Symbol.for("react.suspense"), I = /* @__PURE__ */ Symbol.for("react.suspense_list"), A = /* @__PURE__ */ Symbol.for("react.memo"), V = /* @__PURE__ */ Symbol.for("react.lazy"), P = /* @__PURE__ */ Symbol.for("react.activity"), S = /* @__PURE__ */ Symbol.for("react.client.reference"), W = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, X = Object.prototype.hasOwnProperty, $ = Array.isArray, C = console.createTask ? console.createTask : function() {
227
+ var p = oe, h = /* @__PURE__ */ Symbol.for("react.transitional.element"), v = /* @__PURE__ */ Symbol.for("react.portal"), b = /* @__PURE__ */ Symbol.for("react.fragment"), y = /* @__PURE__ */ Symbol.for("react.strict_mode"), T = /* @__PURE__ */ Symbol.for("react.profiler"), j = /* @__PURE__ */ Symbol.for("react.consumer"), O = /* @__PURE__ */ Symbol.for("react.context"), M = /* @__PURE__ */ Symbol.for("react.forward_ref"), _ = /* @__PURE__ */ Symbol.for("react.suspense"), I = /* @__PURE__ */ Symbol.for("react.suspense_list"), A = /* @__PURE__ */ Symbol.for("react.memo"), V = /* @__PURE__ */ Symbol.for("react.lazy"), P = /* @__PURE__ */ Symbol.for("react.activity"), S = /* @__PURE__ */ Symbol.for("react.client.reference"), W = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, q = Object.prototype.hasOwnProperty, $ = Array.isArray, C = console.createTask ? console.createTask : function() {
228
228
  return null;
229
229
  };
230
230
  p = {
@@ -305,7 +305,7 @@ function rt(e) {
305
305
  }
306
306
  const $e = Jt ? Co : Y;
307
307
  function On(e) {
308
- const t = G(e);
308
+ const t = X(e);
309
309
  return $e(() => {
310
310
  t.current = e;
311
311
  }), ee(function() {
@@ -315,7 +315,7 @@ function On(e) {
315
315
  }, []);
316
316
  }
317
317
  function Lo() {
318
- const e = G(null), t = ee((r, o) => {
318
+ const e = X(null), t = ee((r, o) => {
319
319
  e.current = setInterval(r, o);
320
320
  }, []), n = ee(() => {
321
321
  e.current !== null && (clearInterval(e.current), e.current = null);
@@ -324,13 +324,13 @@ function Lo() {
324
324
  }
325
325
  function vt(e, t) {
326
326
  t === void 0 && (t = [e]);
327
- const n = G(e);
327
+ const n = X(e);
328
328
  return $e(() => {
329
329
  n.current !== e && (n.current = e);
330
330
  }, t), n;
331
331
  }
332
332
  function yt(e, t) {
333
- const n = G();
333
+ const n = X();
334
334
  return U(
335
335
  () => {
336
336
  const r = e(n.current);
@@ -341,7 +341,7 @@ function yt(e, t) {
341
341
  );
342
342
  }
343
343
  function Ft(e) {
344
- const t = On(e), n = G(null), r = ee(
344
+ const t = On(e), n = X(null), r = ee(
345
345
  (o) => {
346
346
  o !== n.current && t?.(o, n.current), n.current = o;
347
347
  },
@@ -351,7 +351,7 @@ function Ft(e) {
351
351
  return [n, r];
352
352
  }
353
353
  function yn(e) {
354
- const t = G();
354
+ const t = X();
355
355
  return Y(() => {
356
356
  t.current = e;
357
357
  }, [e]), t.current;
@@ -1535,10 +1535,10 @@ function Rs(e) {
1535
1535
  const p = _s({
1536
1536
  delta: d,
1537
1537
  disabled: !s
1538
- }), [h, v] = Lo(), b = G({
1538
+ }), [h, v] = Lo(), b = X({
1539
1539
  x: 0,
1540
1540
  y: 0
1541
- }), y = G({
1541
+ }), y = X({
1542
1542
  x: 0,
1543
1543
  y: 0
1544
1544
  }), T = U(() => {
@@ -1553,7 +1553,7 @@ function Rs(e) {
1553
1553
  case pt.DraggableRect:
1554
1554
  return o;
1555
1555
  }
1556
- }, [n, o, l]), j = G(null), O = ee(() => {
1556
+ }, [n, o, l]), j = X(null), O = ee(() => {
1557
1557
  const _ = j.current;
1558
1558
  if (!_)
1559
1559
  return;
@@ -1684,9 +1684,9 @@ function Ms(e, t) {
1684
1684
  frequency: a,
1685
1685
  measure: l,
1686
1686
  strategy: u
1687
- } = o, f = G(e), d = b(), x = vt(d), p = ee(function(y) {
1687
+ } = o, f = X(e), d = b(), x = vt(d), p = ee(function(y) {
1688
1688
  y === void 0 && (y = []), !x.current && c((T) => T === null ? y : T.concat(y.filter((j) => !T.includes(j))));
1689
- }, [x]), h = G(null), v = yt((y) => {
1689
+ }, [x]), h = X(null), v = yt((y) => {
1690
1690
  if (d && !n)
1691
1691
  return rr;
1692
1692
  if (!y || y === rr || f.current !== e || s != null) {
@@ -1831,13 +1831,13 @@ function ks(e) {
1831
1831
  }
1832
1832
  const sr = [];
1833
1833
  function Ls(e) {
1834
- const t = G(e), n = yt((r) => e ? r && r !== sr && e && t.current && e.parentNode === t.current.parentNode ? r : $n(e) : sr, [e]);
1834
+ const t = X(e), n = yt((r) => e ? r && r !== sr && e && t.current && e.parentNode === t.current.parentNode ? r : $n(e) : sr, [e]);
1835
1835
  return Y(() => {
1836
1836
  t.current = e;
1837
1837
  }, [e]), n;
1838
1838
  }
1839
1839
  function Ns(e) {
1840
- const [t, n] = J(null), r = G(e), o = ee((s) => {
1840
+ const [t, n] = J(null), r = X(e), o = ee((s) => {
1841
1841
  const c = ln(s.target);
1842
1842
  c && n((a) => a ? (a.set(c, Sn(c)), new Map(a)) : null);
1843
1843
  }, []);
@@ -1866,7 +1866,7 @@ function Ns(e) {
1866
1866
  }
1867
1867
  function ir(e, t) {
1868
1868
  t === void 0 && (t = []);
1869
- const n = G(null);
1869
+ const n = X(null);
1870
1870
  return Y(
1871
1871
  () => {
1872
1872
  n.current = null;
@@ -2235,7 +2235,7 @@ function Zs(e) {
2235
2235
  initialRect: r,
2236
2236
  config: o = !0
2237
2237
  } = e;
2238
- const s = G(!1), {
2238
+ const s = X(!1), {
2239
2239
  x: c,
2240
2240
  y: a
2241
2241
  } = typeof o == "boolean" ? {
@@ -2293,10 +2293,10 @@ const qr = /* @__PURE__ */ Do(function(t) {
2293
2293
  droppable: {
2294
2294
  containers: P
2295
2295
  }
2296
- } = b, S = I != null ? A.get(I) : null, W = G({
2296
+ } = b, S = I != null ? A.get(I) : null, W = X({
2297
2297
  initial: null,
2298
2298
  translated: null
2299
- }), X = U(() => {
2299
+ }), q = U(() => {
2300
2300
  var de;
2301
2301
  return I != null ? {
2302
2302
  id: I,
@@ -2304,7 +2304,7 @@ const qr = /* @__PURE__ */ Do(function(t) {
2304
2304
  data: (de = S?.data) != null ? de : Ws,
2305
2305
  rect: W
2306
2306
  } : null;
2307
- }, [I, S]), $ = G(null), [C, w] = J(null), [R, E] = J(null), k = vt(h, Object.values(h)), N = wt("DndDescribedBy", c), g = U(() => P.getEnabled(), [P]), D = Js(x), {
2307
+ }, [I, S]), $ = X(null), [C, w] = J(null), [R, E] = J(null), k = vt(h, Object.values(h)), N = wt("DndDescribedBy", c), g = U(() => P.getEnabled(), [P]), D = Js(x), {
2308
2308
  droppableRects: L,
2309
2309
  measureDroppableContainers: F,
2310
2310
  measuringScheduled: Z
@@ -2319,7 +2319,7 @@ const qr = /* @__PURE__ */ Do(function(t) {
2319
2319
  initialRect: re,
2320
2320
  measure: D.draggable.measure
2321
2321
  });
2322
- const z = or(Q, D.draggable.measure, re), pe = or(Q ? Q.parentElement : null), ue = G({
2322
+ const z = or(Q, D.draggable.measure, re), pe = or(Q ? Q.parentElement : null), ue = X({
2323
2323
  activatorEvent: null,
2324
2324
  active: null,
2325
2325
  activeNode: Q,
@@ -2343,7 +2343,7 @@ const qr = /* @__PURE__ */ Do(function(t) {
2343
2343
  scaleY: 1
2344
2344
  },
2345
2345
  activatorEvent: R,
2346
- active: X,
2346
+ active: q,
2347
2347
  activeNodeRect: z,
2348
2348
  containerNodeRect: pe,
2349
2349
  draggingNodeRect: qe,
@@ -2352,13 +2352,13 @@ const qr = /* @__PURE__ */ Do(function(t) {
2352
2352
  scrollableAncestors: ze,
2353
2353
  scrollableAncestorRects: Ct,
2354
2354
  windowRect: rn
2355
- }), Fn = H ? Qe(H, V) : null, Yn = Ns(ze), go = ir(Yn), vo = ir(Yn, [z]), Ke = Qe(Dt, go), Je = qe ? ss(qe, Dt) : null, st = X && Je ? d({
2356
- active: X,
2355
+ }), Fn = H ? Qe(H, V) : null, Yn = Ns(ze), go = ir(Yn), vo = ir(Yn, [z]), Ke = Qe(Dt, go), Je = qe ? ss(qe, Dt) : null, st = q && Je ? d({
2356
+ active: q,
2357
2357
  collisionRect: Je,
2358
2358
  droppableRects: L,
2359
2359
  droppableContainers: g,
2360
2360
  pointerCoordinates: Fn
2361
- }) : null, Vn = es(st, "id"), [Pe, Hn] = J(null), mo = zn ? Dt : Qe(Dt, vo), xo = rs(mo, (s = Pe?.rect) != null ? s : null, z), on = G(null), Wn = ee(
2361
+ }) : null, Vn = es(st, "id"), [Pe, Hn] = J(null), mo = zn ? Dt : Qe(Dt, vo), xo = rs(mo, (s = Pe?.rect) != null ? s : null, z), on = X(null), Wn = ee(
2362
2362
  (de, ve) => {
2363
2363
  let {
2364
2364
  sensor: me,
@@ -2572,7 +2572,7 @@ const qr = /* @__PURE__ */ Do(function(t) {
2572
2572
  ), $e(() => {
2573
2573
  ue.current = {
2574
2574
  activatorEvent: R,
2575
- active: X,
2575
+ active: q,
2576
2576
  activeNode: Q,
2577
2577
  collisionRect: Je,
2578
2578
  collisions: st,
@@ -2588,7 +2588,7 @@ const qr = /* @__PURE__ */ Do(function(t) {
2588
2588
  initial: qe,
2589
2589
  translated: Je
2590
2590
  };
2591
- }, [X, Q, st, Je, A, Xe, qe, L, P, Pe, ze, Ke]), Rs({
2591
+ }, [q, Q, st, Je, A, Xe, qe, L, P, Pe, ze, Ke]), Rs({
2592
2592
  ...ne,
2593
2593
  delta: V,
2594
2594
  draggingRect: Je,
@@ -2597,7 +2597,7 @@ const qr = /* @__PURE__ */ Do(function(t) {
2597
2597
  scrollableAncestorRects: Ct
2598
2598
  });
2599
2599
  const yo = U(() => ({
2600
- active: X,
2600
+ active: q,
2601
2601
  activeNode: Q,
2602
2602
  activeNodeRect: z,
2603
2603
  activatorEvent: R,
@@ -2614,10 +2614,10 @@ const qr = /* @__PURE__ */ Do(function(t) {
2614
2614
  measuringConfiguration: D,
2615
2615
  measuringScheduled: Z,
2616
2616
  windowRect: rn
2617
- }), [X, Q, z, R, st, pe, ke, A, P, L, Pe, F, ze, Ct, D, Z, rn]), wo = U(() => ({
2617
+ }), [q, Q, z, R, st, pe, ke, A, P, L, Pe, F, ze, Ct, D, Z, rn]), wo = U(() => ({
2618
2618
  activatorEvent: R,
2619
2619
  activators: Bn,
2620
- active: X,
2620
+ active: q,
2621
2621
  activeNodeRect: z,
2622
2622
  ariaDescribedById: {
2623
2623
  draggable: N
@@ -2626,7 +2626,7 @@ const qr = /* @__PURE__ */ Do(function(t) {
2626
2626
  draggableNodes: A,
2627
2627
  over: Pe,
2628
2628
  measureDroppableContainers: F
2629
- }), [R, Bn, X, z, y, N, A, Pe, F]);
2629
+ }), [R, Bn, q, z, y, N, A, Pe, F]);
2630
2630
  return oe.createElement(Ar.Provider, {
2631
2631
  value: j
2632
2632
  }, oe.createElement(Qt.Provider, {
@@ -2725,9 +2725,9 @@ function si(e) {
2725
2725
  dispatch: a,
2726
2726
  over: l,
2727
2727
  measureDroppableContainers: u
2728
- } = Be(Qt), f = G({
2728
+ } = Be(Qt), f = X({
2729
2729
  disabled: n
2730
- }), d = G(!1), x = G(null), p = G(null), {
2730
+ }), d = X(!1), x = X(null), p = X(null), {
2731
2731
  disabled: h,
2732
2732
  updateMeasurementsFor: v,
2733
2733
  timeout: b
@@ -2943,7 +2943,7 @@ function Qr(e) {
2943
2943
  droppableRects: l,
2944
2944
  over: u,
2945
2945
  measureDroppableContainers: f
2946
- } = ni(), d = wt(Jr, n), x = a.rect !== null, p = U(() => r.map((_) => typeof _ == "object" && "id" in _ ? _.id : _), [r]), h = c != null, v = c ? p.indexOf(c.id) : -1, b = u ? p.indexOf(u.id) : -1, y = G(p), T = !ai(p, y.current), j = b !== -1 && v === -1 || T, O = ci(s);
2946
+ } = ni(), d = wt(Jr, n), x = a.rect !== null, p = U(() => r.map((_) => typeof _ == "object" && "id" in _ ? _.id : _), [r]), h = c != null, v = c ? p.indexOf(c.id) : -1, b = u ? p.indexOf(u.id) : -1, y = X(p), T = !ai(p, y.current), j = b !== -1 && v === -1 || T, O = ci(s);
2947
2947
  $e(() => {
2948
2948
  T && h && f(p);
2949
2949
  }, [T, p, h, f]), Y(() => {
@@ -3006,7 +3006,7 @@ function xi(e) {
3006
3006
  node: r,
3007
3007
  rect: o
3008
3008
  } = e;
3009
- const [s, c] = J(null), a = G(n);
3009
+ const [s, c] = J(null), a = X(n);
3010
3010
  return $e(() => {
3011
3011
  if (!t && n !== a.current && r.current) {
3012
3012
  const l = o.current;
@@ -3072,7 +3072,7 @@ function to(e) {
3072
3072
  }), {
3073
3073
  active: S,
3074
3074
  activatorEvent: W,
3075
- activeNodeRect: X,
3075
+ activeNodeRect: q,
3076
3076
  attributes: $,
3077
3077
  setNodeRef: C,
3078
3078
  listeners: w,
@@ -3090,7 +3090,7 @@ function to(e) {
3090
3090
  disabled: j.draggable
3091
3091
  }), g = ko(P, C), D = !!S, L = D && !h && Et(x) && Et(b), F = !y && R, Z = F && L ? N : null, H = L ? Z ?? (a ?? T)({
3092
3092
  rects: v,
3093
- activeNodeRect: X,
3093
+ activeNodeRect: q,
3094
3094
  activeIndex: x,
3095
3095
  overIndex: b,
3096
3096
  index: O
@@ -3099,7 +3099,7 @@ function to(e) {
3099
3099
  items: f,
3100
3100
  activeIndex: x,
3101
3101
  overIndex: b
3102
- }) : O, re = S?.id, z = G({
3102
+ }) : O, re = S?.id, z = X({
3103
3103
  activeId: re,
3104
3104
  items: f,
3105
3105
  newIndex: ne,
@@ -3896,7 +3896,7 @@ function Fa({
3896
3896
  });
3897
3897
  return /* @__PURE__ */ i.jsx(De, { width: "100%", children: /* @__PURE__ */ i.jsxs(fe, { justify: "space-between", mx: "auto", flexWrap: "wrap", children: [
3898
3898
  /* @__PURE__ */ i.jsxs(fe, { children: [
3899
- /* @__PURE__ */ i.jsx(q, { fontSize: "sm", color: "gray.600", _dark: { color: "gray.400" }, children: "Rows per page:" }),
3899
+ /* @__PURE__ */ i.jsx(G, { fontSize: "sm", color: "gray.600", _dark: { color: "gray.400" }, children: "Rows per page:" }),
3900
3900
  /* @__PURE__ */ i.jsxs(
3901
3901
  te.Root,
3902
3902
  {
@@ -3917,7 +3917,11 @@ function Fa({
3917
3917
  ] }, l.value)) }) }) })
3918
3918
  ]
3919
3919
  }
3920
- )
3920
+ ),
3921
+ /* @__PURE__ */ i.jsxs(G, { fontSize: "sm", color: "gray.600", _dark: { color: "gray.400" }, children: [
3922
+ "of ",
3923
+ e
3924
+ ] })
3921
3925
  ] }),
3922
3926
  /* @__PURE__ */ i.jsx(
3923
3927
  zt.Root,
@@ -3998,7 +4002,7 @@ function Ua({
3998
4002
  }) {
3999
4003
  return /* @__PURE__ */ i.jsx(ae.Body, { children: Array.from({ length: e }).map((n, r) => /* @__PURE__ */ i.jsx(ae.Row, { children: Array.from({ length: t }).map((o, s) => /* @__PURE__ */ i.jsx(ae.Cell, { children: /* @__PURE__ */ i.jsx(Eo, { height: "25px" }) }, s)) }, r)) });
4000
4004
  }
4001
- function fu({
4005
+ function hu({
4002
4006
  tableId: e,
4003
4007
  data: t = [],
4004
4008
  headers: n = [],
@@ -4027,16 +4031,16 @@ function fu({
4027
4031
  const { sortColumn: y, sortDirection: T, data: j, columnOrder: O } = St(be), M = U(() => {
4028
4032
  const S = [...j];
4029
4033
  return y && S.sort(
4030
- (W, X) => T === "asc" ? String(W[y]).localeCompare(String(X[y])) : String(X[y]).localeCompare(String(W[y]))
4034
+ (W, q) => T === "asc" ? String(W[y]).localeCompare(String(q[y])) : String(q[y]).localeCompare(String(W[y]))
4031
4035
  ), S;
4032
4036
  }, [j, y, T, l, u]), _ = U(() => (Math.max(1, l || 1) - 1) * u, [l, u]);
4033
4037
  Y(() => {
4034
4038
  l < 1 && f && f(1);
4035
4039
  }, [l, f]);
4036
4040
  const I = (S) => {
4037
- const { active: W, over: X } = S;
4038
- if (!X || W.id === X.id) return;
4039
- const $ = O.findIndex((R) => R.id === W.id), C = O.findIndex((R) => R.id === X.id), w = en(O, $, C);
4041
+ const { active: W, over: q } = S;
4042
+ if (!q || W.id === q.id) return;
4043
+ const $ = O.findIndex((R) => R.id === W.id), C = O.findIndex((R) => R.id === q.id), w = en(O, $, C);
4040
4044
  ki(w);
4041
4045
  }, A = r && !s, V = s && !r, P = !r && !s && M.length === 0;
4042
4046
  return /* @__PURE__ */ i.jsx(qr, { collisionDetection: kr, onDragEnd: I, children: /* @__PURE__ */ i.jsx(
@@ -4175,13 +4179,13 @@ function ic({
4175
4179
  onValueChange: (S) => {
4176
4180
  const W = S.value?.[0];
4177
4181
  if (!W) return;
4178
- const X = A.items.find(($) => c($) === W);
4179
- X && v?.(X);
4182
+ const q = A.items.find(($) => c($) === W);
4183
+ q && v?.(q);
4180
4184
  },
4181
4185
  positioning: { sameWidth: !1, placement: "bottom-start" },
4182
4186
  ...y,
4183
4187
  children: [
4184
- b && e && /* @__PURE__ */ i.jsx(q, { fontSize: "sm", children: e }),
4188
+ b && e && /* @__PURE__ */ i.jsx(G, { fontSize: "sm", children: e }),
4185
4189
  /* @__PURE__ */ i.jsxs(Qa, { ...j, children: [
4186
4190
  /* @__PURE__ */ i.jsx(ec, { placeholder: x ?? "Type to search", ...T }),
4187
4191
  /* @__PURE__ */ i.jsxs(tc, { children: [
@@ -4193,11 +4197,11 @@ function ic({
4193
4197
  u ? /* @__PURE__ */ i.jsxs(fe, { p: "2", children: [
4194
4198
  /* @__PURE__ */ i.jsx(Or, { size: "xs", borderWidth: "1px" }),
4195
4199
  /* @__PURE__ */ i.jsx(To, { children: "Loading..." })
4196
- ] }) : f ? /* @__PURE__ */ i.jsx(q, { p: "2", color: "red.500", fontSize: "sm", children: d || "Something went wrong" }) : A.items.map((S) => /* @__PURE__ */ i.jsxs(Me.Item, { item: S, ...M, children: [
4200
+ ] }) : f ? /* @__PURE__ */ i.jsx(G, { p: "2", color: "red.500", fontSize: "sm", children: d || "Something went wrong" }) : A.items.map((S) => /* @__PURE__ */ i.jsxs(Me.Item, { item: S, ...M, children: [
4197
4201
  a(S),
4198
4202
  /* @__PURE__ */ i.jsx(Me.ItemIndicator, {})
4199
4203
  ] }, c(S))),
4200
- p && !f && !u && /* @__PURE__ */ i.jsx(q, { p: "2", color: "fg.muted", fontSize: "sm", children: p })
4204
+ p && !f && !u && /* @__PURE__ */ i.jsx(G, { p: "2", color: "fg.muted", fontSize: "sm", children: p })
4201
4205
  ] }) })
4202
4206
  ]
4203
4207
  }
@@ -4273,7 +4277,7 @@ function pc({
4273
4277
  onChange: t,
4274
4278
  disabled: n = !1
4275
4279
  }) {
4276
- const [r = "", o = ""] = e ? e.split("|") : [], [s, c] = J(() => r && o ? `${Ce(r)}${se}${Ce(o)}` : r ? Ce(r) : ""), [a, l] = J(!1), u = G(null);
4280
+ const [r = "", o = ""] = e ? e.split("|") : [], [s, c] = J(() => r && o ? `${Ce(r)}${se}${Ce(o)}` : r ? Ce(r) : ""), [a, l] = J(!1), u = X(null);
4277
4281
  Y(() => {
4278
4282
  const h = (v) => {
4279
4283
  v.ctrlKey && v.key === "d" && !v.shiftKey && !v.metaKey && (v.preventDefault(), u.current?.focus());
@@ -4372,28 +4376,28 @@ function pc({
4372
4376
  /* @__PURE__ */ i.jsxs(Ne, { align: "start", gap: 4, children: [
4373
4377
  /* @__PURE__ */ i.jsxs(fe, { children: [
4374
4378
  /* @__PURE__ */ i.jsx(xr, { size: 16 }),
4375
- /* @__PURE__ */ i.jsx(q, { fontWeight: "semibold", fontSize: "sm", children: "Date Range Filter" })
4379
+ /* @__PURE__ */ i.jsx(G, { fontWeight: "semibold", fontSize: "sm", children: "Date Range Filter" })
4376
4380
  ] }),
4377
4381
  /* @__PURE__ */ i.jsxs(Ne, { align: "start", gap: 1, children: [
4378
- /* @__PURE__ */ i.jsx(q, { fontSize: "sm", fontWeight: "medium", children: "Format:" }),
4379
- /* @__PURE__ */ i.jsxs(q, { fontSize: "xs", color: "gray.600", children: [
4382
+ /* @__PURE__ */ i.jsx(G, { fontSize: "sm", fontWeight: "medium", children: "Format:" }),
4383
+ /* @__PURE__ */ i.jsxs(G, { fontSize: "xs", color: "gray.600", children: [
4380
4384
  "DD-MM-YYYY",
4381
4385
  se,
4382
4386
  "DD-MM-YYYY"
4383
4387
  ] })
4384
4388
  ] }),
4385
4389
  /* @__PURE__ */ i.jsxs(Ne, { align: "start", gap: 1, children: [
4386
- /* @__PURE__ */ i.jsx(q, { fontSize: "sm", fontWeight: "medium", children: "Tips:" }),
4387
- /* @__PURE__ */ i.jsx(q, { fontSize: "xs", children: '• "15 to 20" → assumes current month/year' }),
4388
- /* @__PURE__ */ i.jsx(q, { fontSize: "xs", children: "• Leave end blank → up to today" }),
4389
- /* @__PURE__ */ i.jsx(q, { fontSize: "xs", children: "• Dates auto-swapped if reversed" }),
4390
- /* @__PURE__ */ i.jsx(q, { fontSize: "xs", children: "• Press Enter on empty end → fills today" })
4390
+ /* @__PURE__ */ i.jsx(G, { fontSize: "sm", fontWeight: "medium", children: "Tips:" }),
4391
+ /* @__PURE__ */ i.jsx(G, { fontSize: "xs", children: '• "15 to 20" → assumes current month/year' }),
4392
+ /* @__PURE__ */ i.jsx(G, { fontSize: "xs", children: "• Leave end blank → up to today" }),
4393
+ /* @__PURE__ */ i.jsx(G, { fontSize: "xs", children: "• Dates auto-swapped if reversed" }),
4394
+ /* @__PURE__ */ i.jsx(G, { fontSize: "xs", children: "• Press Enter on empty end → fills today" })
4391
4395
  ] }),
4392
4396
  /* @__PURE__ */ i.jsxs(Ne, { align: "start", gap: 1, children: [
4393
- /* @__PURE__ */ i.jsx(q, { fontSize: "sm", fontWeight: "medium", children: "Shortcut:" }),
4397
+ /* @__PURE__ */ i.jsx(G, { fontSize: "sm", fontWeight: "medium", children: "Shortcut:" }),
4394
4398
  /* @__PURE__ */ i.jsxs(fe, { children: [
4395
4399
  /* @__PURE__ */ i.jsx(Gn, { children: "Ctrl" }),
4396
- /* @__PURE__ */ i.jsx(q, { children: "+" }),
4400
+ /* @__PURE__ */ i.jsx(G, { children: "+" }),
4397
4401
  /* @__PURE__ */ i.jsx(Gn, { children: "D" })
4398
4402
  ] })
4399
4403
  ] })
@@ -4539,7 +4543,7 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
4539
4543
  }, zc = (e, t) => {
4540
4544
  const n = tn(e).filter((r) => r.id !== t);
4541
4545
  Nn(e, n);
4542
- }, hu = (e, t, n) => {
4546
+ }, pu = (e, t, n) => {
4543
4547
  const r = tn(e).map(
4544
4548
  (o) => o.id === t ? n(o) : o
4545
4549
  );
@@ -4566,10 +4570,10 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
4566
4570
  children: [
4567
4571
  /* @__PURE__ */ i.jsxs(fe, { ...r, ...o, cursor: "grab", userSelect: "none", gap: 2, children: [
4568
4572
  /* @__PURE__ */ i.jsx(co, { size: 16 }),
4569
- /* @__PURE__ */ i.jsx(q, { fontWeight: "bold", fontSize: "sm", children: e.label || e.id })
4573
+ /* @__PURE__ */ i.jsx(G, { fontWeight: "bold", fontSize: "sm", children: e.label || e.id })
4570
4574
  ] }),
4571
4575
  /* @__PURE__ */ i.jsxs(fe, { justify: "space-between", children: [
4572
- /* @__PURE__ */ i.jsx(q, { fontSize: "sm", children: "Visible" }),
4576
+ /* @__PURE__ */ i.jsx(G, { fontSize: "sm", children: "Visible" }),
4573
4577
  /* @__PURE__ */ i.jsxs(
4574
4578
  Pc,
4575
4579
  {
@@ -4584,7 +4588,7 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
4584
4588
  )
4585
4589
  ] }),
4586
4590
  /* @__PURE__ */ i.jsxs(Ne, { align: "stretch", gap: 1, children: [
4587
- /* @__PURE__ */ i.jsx(q, { fontSize: "sm", children: "Size" }),
4591
+ /* @__PURE__ */ i.jsx(G, { fontSize: "sm", children: "Size" }),
4588
4592
  /* @__PURE__ */ i.jsx(
4589
4593
  Vc,
4590
4594
  {
@@ -4756,7 +4760,7 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
4756
4760
  }
4757
4761
  ) }),
4758
4762
  /* @__PURE__ */ i.jsx(xn, { value: "presets", children: /* @__PURE__ */ i.jsxs(Ne, { align: "stretch", mb: 3, children: [
4759
- x.length === 0 && /* @__PURE__ */ i.jsx(q, { fontSize: "xs", color: "gray.500", children: "No presets saved yet." }),
4763
+ x.length === 0 && /* @__PURE__ */ i.jsx(G, { fontSize: "xs", color: "gray.500", children: "No presets saved yet." }),
4760
4764
  x.map((h) => /* @__PURE__ */ i.jsxs(
4761
4765
  fe,
4762
4766
  {
@@ -4767,8 +4771,8 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
4767
4771
  p: 2,
4768
4772
  children: [
4769
4773
  /* @__PURE__ */ i.jsxs(Ne, { align: "start", gap: 0, children: [
4770
- /* @__PURE__ */ i.jsx(q, { fontWeight: "bold", fontSize: "sm", children: h.name }),
4771
- /* @__PURE__ */ i.jsx(q, { fontSize: "xs", color: "gray.500", children: new Date(h.date).toLocaleDateString() })
4774
+ /* @__PURE__ */ i.jsx(G, { fontWeight: "bold", fontSize: "sm", children: h.name }),
4775
+ /* @__PURE__ */ i.jsx(G, { fontSize: "xs", color: "gray.500", children: new Date(h.date).toLocaleDateString() })
4772
4776
  ] }),
4773
4777
  /* @__PURE__ */ i.jsxs(fe, { children: [
4774
4778
  /* @__PURE__ */ i.jsx(
@@ -4808,7 +4812,7 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
4808
4812
  ] }) })
4809
4813
  ] })
4810
4814
  ] }) });
4811
- }, pu = ({
4815
+ }, gu = ({
4812
4816
  title: e,
4813
4817
  filters: t,
4814
4818
  onVisibilityChange: n,
@@ -4856,15 +4860,15 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
4856
4860
  )
4857
4861
  ] })
4858
4862
  ] });
4859
- }, gu = (e, t) => {
4863
+ }, vu = (e, t) => {
4860
4864
  localStorage.setItem(`FILTER_ORDER_${e}`, JSON.stringify(t));
4861
- }, vu = (e) => {
4865
+ }, mu = (e) => {
4862
4866
  try {
4863
4867
  return JSON.parse(localStorage.getItem(`FILTER_ORDER_${e}`) || "[]");
4864
4868
  } catch {
4865
4869
  return [];
4866
4870
  }
4867
- }, mu = ({
4871
+ }, xu = ({
4868
4872
  onClick: e,
4869
4873
  size: t = "xs",
4870
4874
  variant: n = "solid",
@@ -4896,7 +4900,7 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
4896
4900
  ] })
4897
4901
  }
4898
4902
  ), al = m(K.Root), cl = m(K.Backdrop), ll = m(K.Positioner), ul = m(K.Content), dl = m(K.Header), fl = m(K.Body), hl = m(K.Footer), pl = m(K.Title), gl = m(K.CloseTrigger);
4899
- function xu({
4903
+ function bu({
4900
4904
  open: e,
4901
4905
  onClose: t,
4902
4906
  onConfirm: n,
@@ -4914,7 +4918,7 @@ function xu({
4914
4918
  /* @__PURE__ */ i.jsx(dl, { borderBottom: "1px solid", borderColor: "gray.200", children: /* @__PURE__ */ i.jsx(pl, { children: r }) }),
4915
4919
  /* @__PURE__ */ i.jsx(fl, { p: 6, children: /* @__PURE__ */ i.jsxs(Pt, { gap: 4, align: "center", textAlign: "center", children: [
4916
4920
  /* @__PURE__ */ i.jsx(De, { color: "orange.500", children: a ?? /* @__PURE__ */ i.jsx(lo, { size: 40 }) }),
4917
- /* @__PURE__ */ i.jsx(q, { fontSize: "sm", color: "gray.600", children: o })
4921
+ /* @__PURE__ */ i.jsx(G, { fontSize: "sm", color: "gray.600", children: o })
4918
4922
  ] }) }),
4919
4923
  /* @__PURE__ */ i.jsxs(
4920
4924
  hl,
@@ -4945,7 +4949,7 @@ function xu({
4945
4949
  ] }) });
4946
4950
  }
4947
4951
  const vl = m(K.Root), ml = m(K.Backdrop), xl = m(K.Positioner), bl = m(K.Content), yl = m(K.Header), wl = m(K.Body), Sl = m(K.Footer), Cl = m(K.Title), Dl = m(K.CloseTrigger);
4948
- function bu({
4952
+ function yu({
4949
4953
  open: e,
4950
4954
  onClose: t,
4951
4955
  onConfirm: n,
@@ -4979,17 +4983,17 @@ function bu({
4979
4983
  /* @__PURE__ */ i.jsx(De, { border: "1px solid", borderColor: "red.200", bg: "red.50", borderRadius: "md", p: 4, children: /* @__PURE__ */ i.jsxs(Pt, { direction: "row", gap: 3, align: "flex-start", children: [
4980
4984
  /* @__PURE__ */ i.jsx(De, { color: "red.600", mt: "2px", children: /* @__PURE__ */ i.jsx(lo, { size: 20 }) }),
4981
4985
  /* @__PURE__ */ i.jsxs(De, { children: [
4982
- /* @__PURE__ */ i.jsx(q, { fontWeight: "semibold", color: "red.700", children: "Are you sure?" }),
4983
- /* @__PURE__ */ i.jsxs(q, { fontSize: "sm", color: "red.600", children: [
4986
+ /* @__PURE__ */ i.jsx(G, { fontWeight: "semibold", color: "red.700", children: "Are you sure?" }),
4987
+ /* @__PURE__ */ i.jsxs(G, { fontSize: "sm", color: "red.600", children: [
4984
4988
  "All the data of ",
4985
4989
  /* @__PURE__ */ i.jsx("b", { children: o }),
4986
4990
  " will permanently be deleted."
4987
4991
  ] })
4988
4992
  ] })
4989
4993
  ] }) }),
4990
- /* @__PURE__ */ i.jsx(q, { fontSize: "sm", color: "gray.600", children: "You can’t undo this action afterwards." }),
4994
+ /* @__PURE__ */ i.jsx(G, { fontSize: "sm", color: "gray.600", children: "You can’t undo this action afterwards." }),
4991
4995
  /* @__PURE__ */ i.jsxs(De, { children: [
4992
- /* @__PURE__ */ i.jsxs(q, { fontSize: "sm", mb: 2, children: [
4996
+ /* @__PURE__ */ i.jsxs(G, { fontSize: "sm", mb: 2, children: [
4993
4997
  "Type ",
4994
4998
  /* @__PURE__ */ i.jsx("b", { children: s }),
4995
4999
  " to continue"
@@ -5048,62 +5052,75 @@ function bu({
5048
5052
  }
5049
5053
  );
5050
5054
  }
5051
- const jl = ({ children: e }) => /* @__PURE__ */ i.jsx(i.Fragment, { children: e }), Rl = ({ children: e }) => /* @__PURE__ */ i.jsx(i.Fragment, { children: e }), yu = Ue, El = m(K.Root), _l = m(K.Backdrop), Tl = m(K.Positioner), Ol = m(K.Content), Ml = m(K.Header), $l = m(K.Body), Il = m(K.Footer), Al = m(K.Title), kl = m(K.CloseTrigger);
5055
+ const jl = ({ children: e }) => /* @__PURE__ */ i.jsx(i.Fragment, { children: e }), Rl = ({ children: e }) => /* @__PURE__ */ i.jsx(i.Fragment, { children: e }), wu = Ue, El = m(K.Root), _l = m(K.Backdrop), Tl = m(K.Positioner), Ol = m(K.Content), Ml = m(K.Header), $l = m(K.Body), Il = m(K.Footer), Al = m(K.Title), kl = m(K.CloseTrigger);
5052
5056
  function Ll(e) {
5053
5057
  let t = null, n = null;
5054
5058
  return oe.Children.forEach(e, (r) => {
5055
5059
  oe.isValidElement(r) && (r.type === jl && (t = r.props.children), r.type === Rl && (n = r.props.children));
5056
5060
  }), { body: t, actions: n };
5057
5061
  }
5058
- const wu = ({
5062
+ const Su = ({
5059
5063
  open: e,
5060
5064
  onClose: t,
5061
5065
  title: n,
5062
5066
  children: r,
5063
5067
  width: o,
5064
- position: s
5068
+ position: s,
5069
+ refetch: c,
5070
+ loading: a = !1
5065
5071
  }) => {
5066
- const { body: c, actions: a } = Ll(r);
5072
+ const { body: l, actions: u } = Ll(r);
5067
5073
  return /* @__PURE__ */ i.jsx(
5068
5074
  El,
5069
5075
  {
5070
5076
  open: e,
5071
- onOpenChange: (l) => !l.open && t(),
5077
+ onOpenChange: (f) => !f.open && t(),
5072
5078
  placement: s ?? "center",
5073
5079
  children: /* @__PURE__ */ i.jsxs(Ge, { children: [
5074
5080
  /* @__PURE__ */ i.jsx(_l, { bg: "blackAlpha.400" }),
5075
- /* @__PURE__ */ i.jsx(Tl, { children: /* @__PURE__ */ i.jsxs(Ol, { w: o ?? "560px", borderRadius: "6px", overflow: "hidden", boxShadow: "lg", children: [
5076
- /* @__PURE__ */ i.jsx(
5077
- Ml,
5078
- {
5079
- px: "20px",
5080
- py: "16px",
5081
- bg: "white",
5082
- borderBottom: "1px solid",
5083
- borderColor: "gray.200",
5084
- children: /* @__PURE__ */ i.jsxs(an, { align: "center", justify: "space-between", children: [
5085
- /* @__PURE__ */ i.jsx(Al, { fontSize: "16px", fontWeight: "600", children: n }),
5086
- /* @__PURE__ */ i.jsx(kl, { asChild: !0, children: /* @__PURE__ */ i.jsx(Xt, { size: "sm" }) })
5087
- ] })
5088
- }
5089
- ),
5090
- c && /* @__PURE__ */ i.jsx($l, { px: "20px", py: "16px", bg: "#F8FAFC", type: "submit", children: /* @__PURE__ */ i.jsx(an, { direction: "column", gap: "16px", children: c }) }),
5091
- a && /* @__PURE__ */ i.jsx(
5092
- Il,
5093
- {
5094
- px: "20px",
5095
- py: "16px",
5096
- bg: "white",
5097
- borderTop: "1px solid",
5098
- borderColor: "gray.200",
5099
- children: /* @__PURE__ */ i.jsx(an, { ml: "auto", gap: "12px", children: a })
5100
- }
5101
- )
5102
- ] }) })
5081
+ /* @__PURE__ */ i.jsx(Tl, { children: /* @__PURE__ */ i.jsxs(
5082
+ Ol,
5083
+ {
5084
+ w: o ?? "560px",
5085
+ maxW: o ?? "560px",
5086
+ borderRadius: "6px",
5087
+ overflow: "hidden",
5088
+ boxShadow: "lg",
5089
+ children: [
5090
+ /* @__PURE__ */ i.jsx(
5091
+ Ml,
5092
+ {
5093
+ px: "20px",
5094
+ py: "16px",
5095
+ bg: "white",
5096
+ borderBottom: "1px solid",
5097
+ borderColor: "gray.200",
5098
+ children: /* @__PURE__ */ i.jsxs(an, { align: "center", justify: "space-between", children: [
5099
+ /* @__PURE__ */ i.jsx(Al, { fontSize: "16px", fontWeight: "600", children: n }),
5100
+ /* @__PURE__ */ i.jsx(kl, { asChild: !0, children: /* @__PURE__ */ i.jsx(Xt, { size: "sm" }) }),
5101
+ c && /* @__PURE__ */ i.jsx(Bl, { label: "Refresh", refetch: c, isLoading: a })
5102
+ ] })
5103
+ }
5104
+ ),
5105
+ l && /* @__PURE__ */ i.jsx($l, { px: "20px", py: "16px", bg: "#F8FAFC", type: "submit", children: /* @__PURE__ */ i.jsx(an, { direction: "column", gap: "16px", children: l }) }),
5106
+ u && /* @__PURE__ */ i.jsx(
5107
+ Il,
5108
+ {
5109
+ px: "20px",
5110
+ py: "16px",
5111
+ bg: "white",
5112
+ borderTop: "1px solid",
5113
+ borderColor: "gray.200",
5114
+ children: /* @__PURE__ */ i.jsx(an, { ml: "auto", gap: "12px", children: u })
5115
+ }
5116
+ )
5117
+ ]
5118
+ }
5119
+ ) })
5103
5120
  ] })
5104
5121
  }
5105
5122
  );
5106
- }, Nl = m(Ee.Root), zl = m(Ee.Label), Pl = m(Ee.HelperText), Fl = m(Ee.ErrorText), Yl = m(qt.Input), Vl = m(qt.Control), Hl = m(qt.HiddenInput), Wl = m(qt.Root), Su = ({
5123
+ }, Nl = m(Ee.Root), zl = m(Ee.Label), Pl = m(Ee.HelperText), Fl = m(Ee.ErrorText), Yl = m(qt.Input), Vl = m(qt.Control), Hl = m(qt.HiddenInput), Wl = m(qt.Root), Cu = ({
5107
5124
  value: e,
5108
5125
  onChange: t,
5109
5126
  length: n = 4,
@@ -5138,7 +5155,7 @@ const wu = ({
5138
5155
  c && !a && /* @__PURE__ */ i.jsx(Pl, { fontSize: "xs", children: c })
5139
5156
  ] });
5140
5157
  };
5141
- function Cu({
5158
+ function Bl({
5142
5159
  refetch: e,
5143
5160
  isLoading: t = !1,
5144
5161
  label: n = "Refresh"
@@ -5172,12 +5189,12 @@ function Cu({
5172
5189
  }
5173
5190
  );
5174
5191
  }
5175
- var At = { exports: {} }, Bl = At.exports, Sr;
5176
- function Ul() {
5192
+ var At = { exports: {} }, Ul = At.exports, Sr;
5193
+ function Gl() {
5177
5194
  return Sr || (Sr = 1, (function(e, t) {
5178
5195
  (function(n, r) {
5179
5196
  e.exports = r();
5180
- })(Bl, (function() {
5197
+ })(Ul, (function() {
5181
5198
  var n = 1e3, r = 6e4, o = 36e5, s = "millisecond", c = "second", a = "minute", l = "hour", u = "day", f = "week", d = "month", x = "quarter", p = "year", h = "date", v = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|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, T = { 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($) {
5182
5199
  var C = ["th", "st", "nd", "rd"], w = $ % 100;
5183
5200
  return "[" + $ + (C[(w - 20) % 10] || C[w] || C[0]) + "]";
@@ -5437,9 +5454,9 @@ function Ul() {
5437
5454
  }, C.toString = function() {
5438
5455
  return this.$d.toUTCString();
5439
5456
  }, $;
5440
- })(), X = W.prototype;
5441
- return P.prototype = X, [["$ms", s], ["$s", c], ["$m", a], ["$H", l], ["$W", u], ["$M", d], ["$y", p], ["$D", h]].forEach((function($) {
5442
- X[$[1]] = function(C) {
5457
+ })(), q = W.prototype;
5458
+ return P.prototype = q, [["$ms", s], ["$s", c], ["$m", a], ["$H", l], ["$W", u], ["$M", d], ["$y", p], ["$D", h]].forEach((function($) {
5459
+ q[$[1]] = function(C) {
5443
5460
  return this.$g(C, $[0], $[1]);
5444
5461
  };
5445
5462
  })), P.extend = function($, C) {
@@ -5450,14 +5467,14 @@ function Ul() {
5450
5467
  }));
5451
5468
  })(At)), At.exports;
5452
5469
  }
5453
- var Gl = Ul();
5454
- const nn = /* @__PURE__ */ Kt(Gl);
5455
- var kt = { exports: {} }, Xl = kt.exports, Cr;
5456
- function ql() {
5470
+ var Xl = Gl();
5471
+ const nn = /* @__PURE__ */ Kt(Xl);
5472
+ var kt = { exports: {} }, ql = kt.exports, Cr;
5473
+ function Kl() {
5457
5474
  return Cr || (Cr = 1, (function(e, t) {
5458
5475
  (function(n, r) {
5459
5476
  e.exports = r();
5460
- })(Xl, (function() {
5477
+ })(ql, (function() {
5461
5478
  return function(n, r, o) {
5462
5479
  n = n || {};
5463
5480
  var s = r.prototype, c = { 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" };
@@ -5496,14 +5513,14 @@ function ql() {
5496
5513
  }));
5497
5514
  })(kt)), kt.exports;
5498
5515
  }
5499
- var Kl = ql();
5500
- const Jl = /* @__PURE__ */ Kt(Kl);
5501
- var Lt = { exports: {} }, Zl = Lt.exports, Dr;
5502
- function Ql() {
5516
+ var Jl = Kl();
5517
+ const Zl = /* @__PURE__ */ Kt(Jl);
5518
+ var Lt = { exports: {} }, Ql = Lt.exports, Dr;
5519
+ function eu() {
5503
5520
  return Dr || (Dr = 1, (function(e, t) {
5504
5521
  (function(n, r) {
5505
5522
  e.exports = r();
5506
- })(Zl, (function() {
5523
+ })(Ql, (function() {
5507
5524
  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" };
5508
5525
  return function(r, o, s) {
5509
5526
  var c = o.prototype, a = c.format;
@@ -5523,14 +5540,14 @@ function Ql() {
5523
5540
  }));
5524
5541
  })(Lt)), Lt.exports;
5525
5542
  }
5526
- var eu = Ql();
5527
- const tu = /* @__PURE__ */ Kt(eu);
5528
- var Nt = { exports: {} }, nu = Nt.exports, jr;
5529
- function ru() {
5543
+ var tu = eu();
5544
+ const nu = /* @__PURE__ */ Kt(tu);
5545
+ var Nt = { exports: {} }, ru = Nt.exports, jr;
5546
+ function ou() {
5530
5547
  return jr || (jr = 1, (function(e, t) {
5531
5548
  (function(n, r) {
5532
5549
  e.exports = r();
5533
- })(nu, (function() {
5550
+ })(ru, (function() {
5534
5551
  return function(n, r) {
5535
5552
  var o = r.prototype, s = o.format;
5536
5553
  o.format = function(c) {
@@ -5575,12 +5592,12 @@ function ru() {
5575
5592
  }));
5576
5593
  })(Nt)), Nt.exports;
5577
5594
  }
5578
- var ou = ru();
5579
- const su = /* @__PURE__ */ Kt(ou);
5580
- nn.extend(Jl);
5581
- nn.extend(tu);
5582
- nn.extend(su);
5583
- const iu = {
5595
+ var su = ou();
5596
+ const iu = /* @__PURE__ */ Kt(su);
5597
+ nn.extend(Zl);
5598
+ nn.extend(nu);
5599
+ nn.extend(iu);
5600
+ const au = {
5584
5601
  date: "DD MMM YYYY",
5585
5602
  time: "hh:mm A",
5586
5603
  dateTime: "DD MMM YYYY, hh:mm A",
@@ -5596,7 +5613,7 @@ function Rr({
5596
5613
  }) {
5597
5614
  if (!e) return r;
5598
5615
  const o = nn(e);
5599
- return o.isValid() ? t === "relative" ? o.fromNow() : o.format(n ?? iu[t]) : r;
5616
+ return o.isValid() ? t === "relative" ? o.fromNow() : o.format(n ?? au[t]) : r;
5600
5617
  }
5601
5618
  function Du({
5602
5619
  value: e,
@@ -5613,19 +5630,19 @@ function Du({
5613
5630
  timeFontWeight: d = "400"
5614
5631
  }) {
5615
5632
  return /* @__PURE__ */ i.jsxs(Pt, { gap: 0.5, align: s, children: [
5616
- /* @__PURE__ */ i.jsx(q, { fontSize: a, fontWeight: l, color: c, children: Rr({
5633
+ /* @__PURE__ */ i.jsx(G, { fontSize: a, fontWeight: l, color: c, children: Rr({
5617
5634
  value: e,
5618
5635
  variant: t,
5619
5636
  format: r
5620
5637
  }) }),
5621
- /* @__PURE__ */ i.jsx(q, { fontSize: f, fontWeight: d, color: u, children: Rr({
5638
+ /* @__PURE__ */ i.jsx(G, { fontSize: f, fontWeight: d, color: u, children: Rr({
5622
5639
  value: e,
5623
5640
  variant: n,
5624
5641
  format: o
5625
5642
  }) })
5626
5643
  ] });
5627
5644
  }
5628
- class au {
5645
+ class cu {
5629
5646
  state = /* @__PURE__ */ new Map();
5630
5647
  listeners = /* @__PURE__ */ new Map();
5631
5648
  get(t) {
@@ -5662,7 +5679,7 @@ class _r {
5662
5679
  constructor(t) {
5663
5680
  this.api = t;
5664
5681
  }
5665
- store = new au();
5682
+ store = new cu();
5666
5683
  inflight = /* @__PURE__ */ new Map();
5667
5684
  getRaw(t) {
5668
5685
  return this.store.get(t);
@@ -5711,7 +5728,7 @@ function ju({
5711
5728
  client: { apiUrl: e },
5712
5729
  children: t
5713
5730
  }) {
5714
- const n = G(new _r(new Er(e)));
5731
+ const n = X(new _r(new Er(e)));
5715
5732
  return n.current || (n.current = new _r(new Er(e))), /* @__PURE__ */ i.jsx(ho.Provider, { value: n.current, children: t });
5716
5733
  }
5717
5734
  function Ru(e) {
@@ -5778,7 +5795,7 @@ function Ou(e = {}) {
5778
5795
  };
5779
5796
  }
5780
5797
  function Mu(e = {}) {
5781
- const { initialValue: t = "", delay: n = 300 } = e, [r, o] = J(t), s = cu(r, n), c = ee((l) => {
5798
+ const { initialValue: t = "", delay: n = 300 } = e, [r, o] = J(t), s = lu(r, n), c = ee((l) => {
5782
5799
  o(l);
5783
5800
  }, []), a = ee(() => {
5784
5801
  o(t);
@@ -5790,7 +5807,7 @@ function Mu(e = {}) {
5790
5807
  reset: a
5791
5808
  };
5792
5809
  }
5793
- function cu(e, t = 300) {
5810
+ function lu(e, t = 300) {
5794
5811
  const [n, r] = J(e);
5795
5812
  return Y(() => {
5796
5813
  const o = setTimeout(() => {
@@ -5800,42 +5817,42 @@ function cu(e, t = 300) {
5800
5817
  }, [e, t]), n;
5801
5818
  }
5802
5819
  export {
5803
- fu as DataTable,
5804
- pu as Filters,
5820
+ hu as DataTable,
5821
+ gu as Filters,
5805
5822
  Er as HttpOptionsApi,
5806
- mu as MDSButton,
5823
+ xu as MDSButton,
5807
5824
  Ja as MDSCheckbox,
5808
5825
  ic as MDSCombobox,
5809
- xu as MDSConfirmActionDialog,
5810
- bu as MDSConfirmDeleteDialog,
5811
- yu as MDSDialogAction,
5826
+ bu as MDSConfirmActionDialog,
5827
+ yu as MDSConfirmDeleteDialog,
5828
+ wu as MDSDialogAction,
5812
5829
  Rl as MDSDialogActions,
5813
5830
  jl as MDSDialogBody,
5814
- wu as MDSDialogWrapper,
5831
+ Su as MDSDialogWrapper,
5815
5832
  wr as MDSInput,
5816
- Su as MDSPinInput,
5817
- Cu as MDSRefreshButton,
5833
+ Cu as MDSPinInput,
5834
+ Bl as MDSRefreshButton,
5818
5835
  Ac as MDSSelectBox,
5819
5836
  _r as OptionsClientImpl,
5820
5837
  ju as OptionsProvider,
5821
- au as OptionsStore,
5822
- Cu as RefreshButton,
5838
+ cu as OptionsStore,
5839
+ Bl as RefreshButton,
5823
5840
  Du as StackedDateTime,
5824
5841
  Nc as addPreset,
5825
5842
  zc as deletePreset,
5826
5843
  Rr as formatDateTime,
5827
5844
  _u as getOption,
5828
5845
  tn as getPresets,
5829
- vu as loadOrder,
5846
+ mu as loadOrder,
5830
5847
  Tu as prefetchOptions,
5831
5848
  Bt as presetStore,
5832
- gu as saveOrder,
5849
+ vu as saveOrder,
5833
5850
  Nn as savePresets,
5834
5851
  Ai as setActionsConfig,
5835
5852
  $i as setData,
5836
5853
  Ii as setTableId,
5837
5854
  be as tableStore,
5838
- hu as updatePreset,
5855
+ pu as updatePreset,
5839
5856
  Mu as useDebouncedSearch,
5840
5857
  Ru as useOption,
5841
5858
  Eu as useOptions,