@starasia/admin 8.6.0 → 8.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -5,7 +5,7 @@ import { Box as f } from "@starasia/box";
5
5
  export * from "@starasia/box";
6
6
  import { Breadcrumb as In, BreadcrumbItem as Lr, BreadcrumbLink as Rn } from "@starasia/breadcrumb";
7
7
  export * from "@starasia/breadcrumb";
8
- import { Button as H } from "@starasia/button";
8
+ import { Button as O } from "@starasia/button";
9
9
  export * from "@starasia/button";
10
10
  export * from "@starasia/card";
11
11
  import { StarasiaDate as pt } from "@starasia/date";
@@ -22,13 +22,13 @@ import { searchParamsToObject as Rt } from "@starasia/http";
22
22
  export * from "@starasia/http";
23
23
  import { Input as ht } from "@starasia/input";
24
24
  export * from "@starasia/input";
25
- import { Menu as Be, MenuButton as De, MenuLists as ze, MenuHeading as On, MenuBody as Ae, MenuFooter as ar, MenuItem as Ne } from "@starasia/menu";
25
+ import { Menu as Be, MenuButton as De, MenuLists as ze, MenuHeading as Hn, MenuBody as Ae, MenuFooter as ar, MenuItem as Ne } from "@starasia/menu";
26
26
  export * from "@starasia/menu";
27
27
  import { Pagination as dr } from "@starasia/pagination";
28
28
  export * from "@starasia/pagination";
29
29
  import { storage as qt } from "@starasia/storage";
30
30
  export * from "@starasia/storage";
31
- import { Tr as Te, Td as Re, Table as ur, Thead as tn, Th as ut, Tbody as rn, useColumnWidths as Hn } from "@starasia/table";
31
+ import { Tr as Te, Td as Re, Table as ur, Thead as tn, Th as ut, Tbody as rn, useColumnWidths as On } from "@starasia/table";
32
32
  export * from "@starasia/table";
33
33
  export * from "@starasia/tabs";
34
34
  import { Textarea as Tn } from "@starasia/textarea";
@@ -59,8 +59,8 @@ import { Skeleton as Ye } from "@starasia/skeleton";
59
59
  export * from "@starasia/skeleton";
60
60
  export * from "@starasia/progress-stepper";
61
61
  import { jsx as e, Fragment as ie, jsxs as u } from "react/jsx-runtime";
62
- import Ke, { createContext as Ot, useState as R, useContext as ft, useCallback as Q, useMemo as ge, memo as Je, useEffect as U, useRef as se, useLayoutEffect as lt, forwardRef as hr, isValidElement as ir, Children as _n, useImperativeHandle as Pn } from "react";
63
- import { useSearchParams as Ht, useNavigate as fr, useLocation as yt, Outlet as Wr, Link as Wt, useParams as nn } from "react-router";
62
+ import Ke, { createContext as Ht, useState as R, useContext as ft, useCallback as Y, useMemo as ge, memo as Je, useEffect as J, useRef as se, useLayoutEffect as lt, forwardRef as hr, isValidElement as ir, Children as _n, useImperativeHandle as Pn } from "react";
63
+ import { useSearchParams as Ot, useNavigate as fr, useLocation as yt, Outlet as Wr, Link as Wt, useParams as nn } from "react-router";
64
64
  import Zn, { createPortal as on } from "react-dom";
65
65
  import Gn from "react-easy-crop";
66
66
  const qn = {
@@ -71,7 +71,7 @@ const qn = {
71
71
  userData: null,
72
72
  setUserData: () => {
73
73
  }
74
- }, ln = Ot(qn), cn = () => ft(ln), Un = (t) => {
74
+ }, ln = Ht(qn), cn = () => ft(ln), Un = (t) => {
75
75
  const [r, n] = R(
76
76
  (t == null ? void 0 : t.initialUserData) || null
77
77
  );
@@ -79,7 +79,7 @@ const qn = {
79
79
  userData: r,
80
80
  setUserData: n
81
81
  };
82
- }, sn = Ot({
82
+ }, sn = Ht({
83
83
  badges: {},
84
84
  setBadge: () => {
85
85
  },
@@ -88,14 +88,14 @@ const qn = {
88
88
  clearBadge: () => {
89
89
  }
90
90
  }), Jn = ({ children: t }) => {
91
- const [r, n] = R({}), o = Q(
91
+ const [r, n] = R({}), o = Y(
92
92
  (c) => {
93
93
  n(
94
94
  (d) => typeof c == "function" ? c(d) : c
95
95
  );
96
96
  },
97
97
  []
98
- ), i = Q(
98
+ ), i = Y(
99
99
  (c, d) => {
100
100
  n((a) => {
101
101
  const m = typeof d == "function" ? d(a[c]) : d;
@@ -103,7 +103,7 @@ const qn = {
103
103
  });
104
104
  },
105
105
  []
106
- ), l = Q((c) => {
106
+ ), l = Y((c) => {
107
107
  n((d) => {
108
108
  if (!(c in d)) return d;
109
109
  const a = { ...d };
@@ -179,9 +179,9 @@ function Xn({
179
179
  }
180
180
  );
181
181
  }
182
- const mr = Ot(null);
182
+ const mr = Ht(null);
183
183
  function Kn({ children: t }) {
184
- const [r, n] = R(null), [o, i] = R(null), [l, s] = R(null), [c, d] = R(0), a = Q(() => (d((m) => m + 1), () => d((m) => m - 1)), []);
184
+ const [r, n] = R(null), [o, i] = R(null), [l, s] = R(null), [c, d] = R(0), a = Y(() => (d((m) => m + 1), () => d((m) => m - 1)), []);
185
185
  return /* @__PURE__ */ e(
186
186
  mr.Provider,
187
187
  {
@@ -212,7 +212,7 @@ function ql({
212
212
  mode: r = "append"
213
213
  }) {
214
214
  const n = ft(mr);
215
- if (U(() => {
215
+ if (J(() => {
216
216
  if (!(r !== "replace" || !n))
217
217
  return n.registerReplace();
218
218
  }, [r, n]), !n)
@@ -222,11 +222,11 @@ function ql({
222
222
  const o = r === "prepend" ? n.prependNode : r === "replace" ? n.replaceNode : n.appendNode;
223
223
  return o ? on(t, o) : null;
224
224
  }
225
- const gr = Ot(null);
225
+ const gr = Ht(null);
226
226
  function ti({ children: t }) {
227
- const [r, n] = R({}), [o, i] = R({}), l = Q((d, a) => {
227
+ const [r, n] = R({}), [o, i] = R({}), l = Y((d, a) => {
228
228
  n((m) => m[d] === a ? m : { ...m, [d]: a });
229
- }, []), s = Q((d) => (i((a) => ({ ...a, [d]: (a[d] ?? 0) + 1 })), () => i((a) => ({
229
+ }, []), s = Y((d) => (i((a) => ({ ...a, [d]: (a[d] ?? 0) + 1 })), () => i((a) => ({
230
230
  ...a,
231
231
  [d]: Math.max(0, (a[d] ?? 0) - 1)
232
232
  }))), []), c = ge(
@@ -238,7 +238,7 @@ function ti({ children: t }) {
238
238
  function ri({ slotKey: t, fallback: r }) {
239
239
  const n = ft(gr), o = n ? (n.slotCounts[t] ?? 0) > 0 : !1, i = se(n == null ? void 0 : n.setOutletNode);
240
240
  i.current = n == null ? void 0 : n.setOutletNode;
241
- const l = Q(
241
+ const l = Y(
242
242
  (s) => {
243
243
  var c;
244
244
  return (c = i.current) == null ? void 0 : c.call(i, t, s);
@@ -250,7 +250,7 @@ function ri({ slotKey: t, fallback: r }) {
250
250
  }
251
251
  function Ul({ slotKey: t, children: r }) {
252
252
  const n = ft(gr), o = se(n == null ? void 0 : n.registerSlot);
253
- if (o.current = n == null ? void 0 : n.registerSlot, U(() => {
253
+ if (o.current = n == null ? void 0 : n.registerSlot, J(() => {
254
254
  var l;
255
255
  return (l = o.current) == null ? void 0 : l.call(o, t);
256
256
  }, [t]), !n)
@@ -278,7 +278,7 @@ function dn() {
278
278
  const [t, r] = R(
279
279
  () => Br()
280
280
  );
281
- return U(() => {
281
+ return J(() => {
282
282
  const o = () => {
283
283
  r(Br());
284
284
  }, i = (l) => {
@@ -342,14 +342,14 @@ function Ql({
342
342
  logoutButton: g
343
343
  }) {
344
344
  var Ie, et;
345
- const [b] = Ht(), B = b.get("embed") === "true", y = cn(), { badges: k } = Qn(), L = fr(), z = yt(), C = !ke("md"), [V, I] = R(!1), [v, M] = R(!1), [N, $] = R(!1), [j, X] = R(!1), [le, pe] = R(
345
+ const [b] = Ot(), B = b.get("embed") === "true", y = cn(), { badges: k } = Qn(), L = fr(), z = yt(), C = !ke("md"), [V, I] = R(!1), [v, M] = R(!1), [$, N] = R(!1), [P, G] = R(!1), [oe, pe] = R(
346
346
  () => new Set(zr)
347
- ), [ne, he] = R(null), { selectedGroupId: Y, setSelectedGroupId: K } = dn();
348
- U(() => {
349
- zr = le;
350
- }, [le]);
347
+ ), [ne, he] = R(null), { selectedGroupId: X, setSelectedGroupId: K } = dn();
348
+ J(() => {
349
+ zr = oe;
350
+ }, [oe]);
351
351
  const me = se(null), te = se(null);
352
- U(() => {
352
+ J(() => {
353
353
  const S = me.current;
354
354
  if (!S) return;
355
355
  const Z = () => {
@@ -377,25 +377,25 @@ function Ql({
377
377
  );
378
378
  S && S.scrollIntoView({ block: "center", behavior: "instant" });
379
379
  }));
380
- }, [y.menus]), U(() => {
380
+ }, [y.menus]), J(() => {
381
381
  ot = !0, de();
382
- const S = setTimeout(de, 0), Z = setTimeout(de, 50), _ = setTimeout(de, 100), W = setTimeout(de, 200), O = setTimeout(() => {
382
+ const S = setTimeout(de, 0), Z = setTimeout(de, 50), j = setTimeout(de, 100), W = setTimeout(de, 200), H = setTimeout(() => {
383
383
  ot = !1;
384
384
  }, 300), T = setTimeout(() => {
385
- const P = me.current, J = P == null ? void 0 : P.querySelector("[data-menu-active='true']");
386
- if (P && J) {
387
- const Ce = P.getBoundingClientRect(), Le = J.getBoundingClientRect();
388
- Le.top >= Ce.top && Le.bottom <= Ce.bottom || J.scrollIntoView({ block: "center", behavior: "smooth" });
385
+ const _ = me.current, Q = _ == null ? void 0 : _.querySelector("[data-menu-active='true']");
386
+ if (_ && Q) {
387
+ const Ce = _.getBoundingClientRect(), Le = Q.getBoundingClientRect();
388
+ Le.top >= Ce.top && Le.bottom <= Ce.bottom || Q.scrollIntoView({ block: "center", behavior: "smooth" });
389
389
  }
390
390
  }, 250);
391
391
  return () => {
392
- clearTimeout(S), clearTimeout(Z), clearTimeout(_), clearTimeout(W), clearTimeout(O), clearTimeout(T);
392
+ clearTimeout(S), clearTimeout(Z), clearTimeout(j), clearTimeout(W), clearTimeout(H), clearTimeout(T);
393
393
  };
394
- }, [z.pathname]), U(() => {
394
+ }, [z.pathname]), J(() => {
395
395
  te.current && (te.current.scrollTop = 0);
396
- }, [z.pathname]), U(() => {
397
- C && $(!1);
398
- }, [z.pathname, C]), U(() => {
396
+ }, [z.pathname]), J(() => {
397
+ C && N(!1);
398
+ }, [z.pathname, C]), J(() => {
399
399
  C && M(!0);
400
400
  }, [C]);
401
401
  const Fe = () => {
@@ -406,64 +406,64 @@ function Ql({
406
406
  I(!1), i();
407
407
  }, Ee = (S) => {
408
408
  const Z = [S.to];
409
- return S.children && Z.push(...S.children.map((_) => _.to)), Z;
410
- }, Oe = [
409
+ return S.children && Z.push(...S.children.map((j) => j.to)), Z;
410
+ }, He = [
411
411
  ...y.menus.flatMap((S) => S.items.flatMap(Ee)),
412
412
  ...((Ie = y.menuBottom) == null ? void 0 : Ie.flatMap(Ee)) ?? []
413
413
  ], xe = (S) => {
414
414
  if (!z.pathname.startsWith(S)) return !1;
415
- const Z = Oe.filter((_) => z.pathname.startsWith(_)).sort((_, W) => W.length - _.length)[0];
415
+ const Z = He.filter((j) => z.pathname.startsWith(j)).sort((j, W) => W.length - j.length)[0];
416
416
  return S === Z;
417
417
  };
418
- U(() => {
418
+ J(() => {
419
419
  var Z;
420
- const S = (_) => {
420
+ const S = (j) => {
421
421
  var W;
422
- (W = _.children) != null && W.some((O) => z.pathname.startsWith(O.to)) && pe((O) => {
423
- const T = new Set(O);
424
- return T.add(_.id), T;
422
+ (W = j.children) != null && W.some((H) => z.pathname.startsWith(H.to)) && pe((H) => {
423
+ const T = new Set(H);
424
+ return T.add(j.id), T;
425
425
  });
426
426
  };
427
- y.menus.forEach((_) => {
428
- _.items.forEach(S);
427
+ y.menus.forEach((j) => {
428
+ j.items.forEach(S);
429
429
  }), (Z = y.menuBottom) == null || Z.forEach(S);
430
430
  }, [z.pathname, y.menus, y.menuBottom]);
431
431
  const $e = (S) => {
432
432
  pe((Z) => {
433
- const _ = new Set(Z);
434
- return _.has(S) ? _.delete(S) : _.add(S), _;
433
+ const j = new Set(Z);
434
+ return j.has(S) ? j.delete(S) : j.add(S), j;
435
435
  });
436
436
  };
437
- U(() => {
438
- y.menus.length !== 0 && Y !== null && !y.menus.some((S) => S.id === Y) && K(null);
439
- }, [y.menus, Y, K]);
437
+ J(() => {
438
+ y.menus.length !== 0 && X !== null && !y.menus.some((S) => S.id === X) && K(null);
439
+ }, [y.menus, X, K]);
440
440
  const Qe = ge(() => {
441
- if (Y !== null)
441
+ if (X !== null)
442
442
  return y.menus.filter(
443
- (_) => _.id === Y || _.parentGroupId === Y
443
+ (j) => j.id === X || j.parentGroupId === X
444
444
  );
445
- const S = y.menus.filter((_) => _.parentGroupId === void 0), Z = y.menus.filter((_) => _.parentGroupId !== void 0).flatMap((_) => _.items);
445
+ const S = y.menus.filter((j) => j.parentGroupId === void 0), Z = y.menus.filter((j) => j.parentGroupId !== void 0).flatMap((j) => j.items);
446
446
  return Z.length === 0 ? S : [
447
447
  ...S,
448
448
  { id: 18, name: "Pengaturan", items: Z, parentGroupId: void 0 }
449
449
  ];
450
- }, [y.menus, Y]);
450
+ }, [y.menus, X]);
451
451
  if (B)
452
452
  return /* @__PURE__ */ e("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)" }, children: t || /* @__PURE__ */ e(Wr, {}) });
453
453
  const be = (S) => {
454
- const Z = S.children && S.children.length > 0, _ = le.has(S.id), W = Z ? S.children.some((P) => xe(P.to)) : xe(S.to), O = Ut(S.badge, k[S.id]), T = !!O && v && !C;
454
+ const Z = S.children && S.children.length > 0, j = oe.has(S.id), W = Z ? S.children.some((_) => xe(_.to)) : xe(S.to), H = Ut(S.badge, k[S.id]), T = !!H && v && !C;
455
455
  return /* @__PURE__ */ u("div", { "data-menu-active": W || void 0, children: [
456
456
  /* @__PURE__ */ u(
457
457
  "button",
458
458
  {
459
- onClick: (P) => {
459
+ onClick: (_) => {
460
460
  if (Z)
461
461
  if (v && !C) {
462
- const J = P.currentTarget.getBoundingClientRect();
462
+ const Q = _.currentTarget.getBoundingClientRect();
463
463
  he({
464
464
  item: S,
465
- top: J.top,
466
- left: J.right + 8
465
+ top: Q.top,
466
+ left: Q.right + 8
467
467
  });
468
468
  } else
469
469
  $e(S.id);
@@ -489,11 +489,11 @@ function Ql({
489
489
  cursor: "pointer"
490
490
  },
491
491
  title: v && !C ? S.title : void 0,
492
- onMouseEnter: (P) => {
493
- W || (P.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)");
492
+ onMouseEnter: (_) => {
493
+ W || (_.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)");
494
494
  },
495
- onMouseLeave: (P) => {
496
- W || (P.currentTarget.style.backgroundColor = "transparent");
495
+ onMouseLeave: (_) => {
496
+ W || (_.currentTarget.style.backgroundColor = "transparent");
497
497
  },
498
498
  children: [
499
499
  /* @__PURE__ */ u(
@@ -542,11 +542,11 @@ function Ql({
542
542
  children: S.title
543
543
  }
544
544
  ),
545
- O && /* @__PURE__ */ e(
545
+ H && /* @__PURE__ */ e(
546
546
  gt,
547
547
  {
548
- text: String(O.value),
549
- variant: O.variant ?? "info",
548
+ text: String(H.value),
549
+ variant: H.variant ?? "info",
550
550
  size: "xs",
551
551
  border: !0
552
552
  }
@@ -559,7 +559,7 @@ function Ql({
559
559
  height: "1rem",
560
560
  flexShrink: 0,
561
561
  transition: "transform 0.2s",
562
- transform: _ ? "rotate(180deg)" : "rotate(0deg)"
562
+ transform: j ? "rotate(180deg)" : "rotate(0deg)"
563
563
  },
564
564
  fill: "none",
565
565
  stroke: "currentColor",
@@ -580,8 +580,8 @@ function Ql({
580
580
  }
581
581
  ),
582
582
  Z && (!v || C) && (() => {
583
- const P = S.children.findIndex(
584
- (J) => xe(J.to)
583
+ const _ = S.children.findIndex(
584
+ (Q) => xe(Q.to)
585
585
  );
586
586
  return /* @__PURE__ */ u(
587
587
  "div",
@@ -592,9 +592,9 @@ function Ql({
592
592
  paddingLeft: "1.125rem",
593
593
  overflow: "hidden",
594
594
  transition: "all 0.3s ease-in-out",
595
- maxHeight: _ ? `${S.children.length * 36}px` : "0px",
596
- opacity: _ ? 1 : 0,
597
- marginTop: _ ? "0.25rem" : "0px"
595
+ maxHeight: j ? `${S.children.length * 36}px` : "0px",
596
+ opacity: j ? 1 : 0,
597
+ marginTop: j ? "0.25rem" : "0px"
598
598
  },
599
599
  children: [
600
600
  /* @__PURE__ */ e(
@@ -612,14 +612,14 @@ function Ql({
612
612
  }
613
613
  }
614
614
  ),
615
- P >= 0 && /* @__PURE__ */ e(
615
+ _ >= 0 && /* @__PURE__ */ e(
616
616
  "span",
617
617
  {
618
618
  "aria-hidden": "true",
619
619
  style: {
620
620
  position: "absolute",
621
621
  left: 0,
622
- top: `${P * 32}px`,
622
+ top: `${_ * 32}px`,
623
623
  width: "1.5px",
624
624
  height: "32px",
625
625
  backgroundColor: "var(--sa-text-primary, #292a2e)",
@@ -629,15 +629,15 @@ function Ql({
629
629
  }
630
630
  }
631
631
  ),
632
- S.children.map((J) => {
632
+ S.children.map((Q) => {
633
633
  const Ce = Ut(
634
- J.badge,
635
- k[J.id]
634
+ Q.badge,
635
+ k[Q.id]
636
636
  );
637
637
  return /* @__PURE__ */ u(
638
638
  "button",
639
639
  {
640
- onClick: () => L(J.to),
640
+ onClick: () => L(Q.to),
641
641
  style: {
642
642
  width: "100%",
643
643
  display: "flex",
@@ -648,24 +648,24 @@ function Ql({
648
648
  paddingTop: "0.25rem",
649
649
  paddingBottom: "0.25rem",
650
650
  height: "2rem",
651
- borderRadius: xe(J.to) ? "var(--sa-radii-sm, 0.375rem)" : "var(--sa-radii-md, 0.5rem)",
651
+ borderRadius: xe(Q.to) ? "var(--sa-radii-sm, 0.375rem)" : "var(--sa-radii-md, 0.5rem)",
652
652
  textAlign: "left",
653
- backgroundColor: xe(J.to) ? "var(--sa-background-primary, #ffffff)" : "transparent",
654
- color: xe(J.to) ? "var(--sa-text-primary, #292a2e)" : "var(--sa-text-subtle, #505258)",
653
+ backgroundColor: xe(Q.to) ? "var(--sa-background-primary, #ffffff)" : "transparent",
654
+ color: xe(Q.to) ? "var(--sa-text-primary, #292a2e)" : "var(--sa-text-subtle, #505258)",
655
655
  cursor: "pointer",
656
- border: xe(J.to) ? "1px solid var(--sa-border-subtle, #0b120e24)" : "1px solid transparent"
656
+ border: xe(Q.to) ? "1px solid var(--sa-border-subtle, #0b120e24)" : "1px solid transparent"
657
657
  },
658
658
  onMouseEnter: (Le) => {
659
- xe(J.to) || (Le.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)");
659
+ xe(Q.to) || (Le.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)");
660
660
  },
661
661
  onMouseLeave: (Le) => {
662
- xe(J.to) || (Le.currentTarget.style.backgroundColor = "transparent");
662
+ xe(Q.to) || (Le.currentTarget.style.backgroundColor = "transparent");
663
663
  },
664
664
  children: [
665
665
  /* @__PURE__ */ e(
666
666
  E,
667
667
  {
668
- name: J.icon,
668
+ name: Q.icon,
669
669
  size: "sm",
670
670
  style: { flexShrink: 0 }
671
671
  }
@@ -682,7 +682,7 @@ function Ql({
682
682
  overflow: "hidden",
683
683
  textOverflow: "ellipsis"
684
684
  },
685
- children: J.title
685
+ children: Q.title
686
686
  }
687
687
  ),
688
688
  Ce && /* @__PURE__ */ e(
@@ -696,7 +696,7 @@ function Ql({
696
696
  )
697
697
  ]
698
698
  },
699
- J.id
699
+ Q.id
700
700
  );
701
701
  })
702
702
  ]
@@ -715,7 +715,7 @@ function Ql({
715
715
  // backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
716
716
  position: "relative",
717
717
  "--app-sidebar-width": C ? "0px" : v ? "4.375rem" : "16.375rem",
718
- "--app-footer-zindex": C && N ? "40" : "999"
718
+ "--app-footer-zindex": C && $ ? "40" : "999"
719
719
  },
720
720
  children: [
721
721
  C && /* @__PURE__ */ e(
@@ -726,11 +726,11 @@ function Ql({
726
726
  inset: 0,
727
727
  backgroundColor: "var(--sa-color-black-alpha-a50, #181a198f)",
728
728
  zIndex: 40,
729
- opacity: N ? 0.5 : 0,
730
- pointerEvents: N ? "auto" : "none",
729
+ opacity: $ ? 0.5 : 0,
730
+ pointerEvents: $ ? "auto" : "none",
731
731
  transition: "opacity 0.3s"
732
732
  },
733
- onClick: () => $(!1)
733
+ onClick: () => N(!1)
734
734
  }
735
735
  ),
736
736
  /* @__PURE__ */ u(
@@ -742,7 +742,7 @@ function Ql({
742
742
  ...C && {
743
743
  inset: 0,
744
744
  zIndex: 50,
745
- transform: N ? "translateX(0)" : "translateX(-100%)"
745
+ transform: $ ? "translateX(0)" : "translateX(-100%)"
746
746
  },
747
747
  backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
748
748
  borderRight: "1px solid var(--sa-border-subtle, #0b120e24)",
@@ -755,8 +755,8 @@ function Ql({
755
755
  /* @__PURE__ */ e(
756
756
  "div",
757
757
  {
758
- onMouseEnter: () => X(!0),
759
- onMouseLeave: () => X(!1),
758
+ onMouseEnter: () => G(!0),
759
+ onMouseLeave: () => G(!1),
760
760
  style: {
761
761
  height: "4rem",
762
762
  display: "flex",
@@ -768,7 +768,7 @@ function Ql({
768
768
  position: "relative"
769
769
  },
770
770
  children: (() => {
771
- const S = !C && v && !N, Z = S && j;
771
+ const S = !C && v && !$, Z = S && P;
772
772
  return /* @__PURE__ */ u(ie, { children: [
773
773
  /* @__PURE__ */ u(
774
774
  "div",
@@ -796,7 +796,7 @@ function Ql({
796
796
  }
797
797
  }
798
798
  ),
799
- (!v || N) && /* @__PURE__ */ e(
799
+ (!v || $) && /* @__PURE__ */ e(
800
800
  "span",
801
801
  {
802
802
  style: {
@@ -875,7 +875,7 @@ function Ql({
875
875
  C && /* @__PURE__ */ e(
876
876
  "button",
877
877
  {
878
- onClick: () => $(!1),
878
+ onClick: () => N(!1),
879
879
  "aria-label": "Close menu",
880
880
  style: {
881
881
  padding: "0.375rem",
@@ -1021,7 +1021,7 @@ function Ql({
1021
1021
  C && /* @__PURE__ */ e(
1022
1022
  "button",
1023
1023
  {
1024
- onClick: () => $(!0),
1024
+ onClick: () => N(!0),
1025
1025
  style: {
1026
1026
  padding: "0.375rem",
1027
1027
  borderRadius: "0.5rem",
@@ -1138,7 +1138,7 @@ function Ql({
1138
1138
  marginTop: "16px"
1139
1139
  },
1140
1140
  children: [
1141
- /* @__PURE__ */ e(On, { children: /* @__PURE__ */ u(
1141
+ /* @__PURE__ */ e(Hn, { children: /* @__PURE__ */ u(
1142
1142
  "div",
1143
1143
  {
1144
1144
  style: {
@@ -1225,11 +1225,11 @@ function Ql({
1225
1225
  type: "button",
1226
1226
  onClick: S.onClick,
1227
1227
  style: Ir,
1228
- onMouseEnter: (_) => {
1229
- _.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)";
1228
+ onMouseEnter: (j) => {
1229
+ j.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)";
1230
1230
  },
1231
- onMouseLeave: (_) => {
1232
- _.currentTarget.style.backgroundColor = "transparent";
1231
+ onMouseLeave: (j) => {
1232
+ j.currentTarget.style.backgroundColor = "transparent";
1233
1233
  },
1234
1234
  children: [
1235
1235
  /* @__PURE__ */ e(E, { name: S.icon, size: "md" }),
@@ -1312,8 +1312,8 @@ function Ql({
1312
1312
  /* @__PURE__ */ e(Xr, { children: "Confirmation Logout" }),
1313
1313
  /* @__PURE__ */ e(sr, { children: "Are you sure you want to end the session and exit the page?" }),
1314
1314
  /* @__PURE__ */ e(Kr, { children: /* @__PURE__ */ e(f, { direction: "column", display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ u(ce, { direction: "row", gap: "sm", align: "center", children: [
1315
- /* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(H, { secondary: !0, onClick: Ze, children: "Cancel" }) }),
1316
- /* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(H, { primary: !0, onClick: ye, children: "Yes, Sure" }) })
1315
+ /* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(O, { secondary: !0, onClick: Ze, children: "Cancel" }) }),
1316
+ /* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(O, { primary: !0, onClick: ye, children: "Yes, Sure" }) })
1317
1317
  ] }) }) })
1318
1318
  ] }),
1319
1319
  ne && /* @__PURE__ */ u(ie, { children: [
@@ -1366,7 +1366,7 @@ function Ql({
1366
1366
  }
1367
1367
  ),
1368
1368
  (et = ne.item.children) == null ? void 0 : et.map((S) => {
1369
- const Z = xe(S.to), _ = Ut(
1369
+ const Z = xe(S.to), j = Ut(
1370
1370
  S.badge,
1371
1371
  k[S.id]
1372
1372
  );
@@ -1407,11 +1407,11 @@ function Ql({
1407
1407
  }
1408
1408
  ),
1409
1409
  /* @__PURE__ */ e("span", { style: { flex: 1, whiteSpace: "nowrap" }, children: S.title }),
1410
- _ && /* @__PURE__ */ e(
1410
+ j && /* @__PURE__ */ e(
1411
1411
  gt,
1412
1412
  {
1413
- text: String(_.value),
1414
- variant: _.variant ?? "info",
1413
+ text: String(j.value),
1414
+ variant: j.variant ?? "info",
1415
1415
  size: "xs",
1416
1416
  border: !0
1417
1417
  }
@@ -1585,7 +1585,7 @@ function Vr(t, r, n) {
1585
1585
  transition: "box-shadow 0.2s ease, transform 0.2s ease, background-color 0.15s ease, border-color 0.15s ease"
1586
1586
  };
1587
1587
  }
1588
- const Or = {
1588
+ const Hr = {
1589
1589
  fontSize: "11px",
1590
1590
  fontWeight: 500,
1591
1591
  textAlign: "center",
@@ -1594,7 +1594,7 @@ const Or = {
1594
1594
  color: "var(--sa-background-primary, #ffffff)",
1595
1595
  lineHeight: "1.3",
1596
1596
  maxWidth: "80px"
1597
- }, Hr = {
1597
+ }, Or = {
1598
1598
  display: "flex",
1599
1599
  flexDirection: "column",
1600
1600
  alignItems: "center",
@@ -1640,10 +1640,10 @@ function ii({
1640
1640
  onClick: () => c(null),
1641
1641
  onMouseEnter: () => s("all"),
1642
1642
  onMouseLeave: () => s(void 0),
1643
- style: Hr,
1643
+ style: Or,
1644
1644
  children: [
1645
1645
  /* @__PURE__ */ e("div", { style: Vr(o === null, l === "all", d), children: /* @__PURE__ */ e("div", { style: { color: d.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(E, { name: "Grid", size: "lg", style: { width: 32, height: 32 } }) }) }),
1646
- /* @__PURE__ */ e("span", { style: Or, children: "Semua" })
1646
+ /* @__PURE__ */ e("span", { style: Hr, children: "Semua" })
1647
1647
  ]
1648
1648
  }
1649
1649
  ),
@@ -1656,10 +1656,10 @@ function ii({
1656
1656
  onClick: () => c(a.id),
1657
1657
  onMouseEnter: () => s(a.id),
1658
1658
  onMouseLeave: () => s(void 0),
1659
- style: Hr,
1659
+ style: Or,
1660
1660
  children: [
1661
1661
  /* @__PURE__ */ e("div", { style: Vr(p, g, B), children: /* @__PURE__ */ e("div", { style: { color: B.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(E, { name: b, size: "lg", style: { width: 32, height: 32 } }) }) }),
1662
- /* @__PURE__ */ e("span", { style: Or, children: a.name })
1662
+ /* @__PURE__ */ e("span", { style: Hr, children: a.name })
1663
1663
  ]
1664
1664
  },
1665
1665
  a.id
@@ -1913,18 +1913,18 @@ const oi = (t, r) => {
1913
1913
  const v = d.filter(
1914
1914
  (M) => M && (M.title || M.icon)
1915
1915
  );
1916
- return v.length === 0 ? null : g ? /* @__PURE__ */ e(f, { direction: "row", gap: "md", children: v.map(({ title: M, icon: N, buttonProps: $, onClick: j }, X) => /* @__PURE__ */ e(
1917
- H,
1916
+ return v.length === 0 ? null : g ? /* @__PURE__ */ e(f, { direction: "row", gap: "md", children: v.map(({ title: M, icon: $, buttonProps: N, onClick: P }, G) => /* @__PURE__ */ e(
1917
+ O,
1918
1918
  {
1919
- iconLeft: N ? /* @__PURE__ */ e(E, { name: N, size: "md" }) : void 0,
1920
- onClick: j,
1921
- ...$,
1919
+ iconLeft: $ ? /* @__PURE__ */ e(E, { name: $, size: "md" }) : void 0,
1920
+ onClick: P,
1921
+ ...N,
1922
1922
  children: M
1923
1923
  },
1924
- `action-${X}`
1924
+ `action-${G}`
1925
1925
  )) }) : /* @__PURE__ */ u(Be, { position: "bottom-right", children: [
1926
1926
  /* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
1927
- H,
1927
+ O,
1928
1928
  {
1929
1929
  variant: "tertiary",
1930
1930
  size: "sm",
@@ -1937,18 +1937,18 @@ const oi = (t, r) => {
1937
1937
  "aria-label": "Actions"
1938
1938
  }
1939
1939
  ) }),
1940
- /* @__PURE__ */ e(ze, { children: /* @__PURE__ */ e(Ae, { style: { minWidth: 200 }, children: v.map(({ title: M, icon: N, buttonProps: $, onClick: j }, X) => {
1941
- const le = ($ == null ? void 0 : $.tone) === "error" || ($ == null ? void 0 : $.danger) === !0;
1940
+ /* @__PURE__ */ e(ze, { children: /* @__PURE__ */ e(Ae, { style: { minWidth: 200 }, children: v.map(({ title: M, icon: $, buttonProps: N, onClick: P }, G) => {
1941
+ const oe = (N == null ? void 0 : N.tone) === "error" || (N == null ? void 0 : N.danger) === !0;
1942
1942
  return /* @__PURE__ */ e(
1943
1943
  Ne,
1944
1944
  {
1945
- intent: le ? "danger" : void 0,
1946
- disabled: $ == null ? void 0 : $.disabled,
1947
- startIcon: N ? /* @__PURE__ */ e(E, { name: N }) : void 0,
1948
- onClick: j,
1945
+ intent: oe ? "danger" : void 0,
1946
+ disabled: N == null ? void 0 : N.disabled,
1947
+ startIcon: $ ? /* @__PURE__ */ e(E, { name: $ }) : void 0,
1948
+ onClick: P,
1949
1949
  children: M
1950
1950
  },
1951
- `action-${X}`
1951
+ `action-${G}`
1952
1952
  );
1953
1953
  }) }) })
1954
1954
  ] });
@@ -1964,9 +1964,9 @@ const oi = (t, r) => {
1964
1964
  }
1965
1965
  ) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(pr, { onClick: k, children: v }) });
1966
1966
  }, D = () => {
1967
- const v = !!r, M = Array.isArray(d) && d.length > 0, N = ir(d) ? !0 : M;
1968
- if (!v && !N && !y) return null;
1969
- const j = g || !g && M;
1967
+ const v = !!r, M = Array.isArray(d) && d.length > 0, $ = ir(d) ? !0 : M;
1968
+ if (!v && !$ && !y) return null;
1969
+ const P = g || !g && M;
1970
1970
  return /* @__PURE__ */ u(
1971
1971
  f,
1972
1972
  {
@@ -1981,13 +1981,13 @@ const oi = (t, r) => {
1981
1981
  },
1982
1982
  children: [
1983
1983
  y && z(),
1984
- (v || N) && /* @__PURE__ */ u(
1984
+ (v || $) && /* @__PURE__ */ u(
1985
1985
  f,
1986
1986
  {
1987
- direction: j ? "row" : "column",
1987
+ direction: P ? "row" : "column",
1988
1988
  gap: "sm",
1989
1989
  justify: "space-between",
1990
- align: j ? "center" : "flex-start",
1990
+ align: P ? "center" : "flex-start",
1991
1991
  children: [
1992
1992
  v ? typeof r == "string" ? /* @__PURE__ */ u(f, { direction: "row", gap: "lg", align: "center", children: [
1993
1993
  /* @__PURE__ */ u(f, { direction: "row", gap: "sm", align: "center", children: [
@@ -2013,26 +2013,28 @@ const oi = (t, r) => {
2013
2013
  );
2014
2014
  }, C = () => {
2015
2015
  if (!c || c.length === 0) return null;
2016
- let v = 0, M = -1 / 0;
2017
- return c.forEach((N, $) => {
2018
- const j = N.order ?? 0;
2019
- j >= M && (M = j, v = $);
2020
- }), c.map(({ content: N, order: $, borderBottom: j = !0 }, X) => /* @__PURE__ */ e(
2016
+ const v = c.filter((N) => N.show !== !1);
2017
+ if (v.length === 0) return null;
2018
+ let M = 0, $ = -1 / 0;
2019
+ return v.forEach((N, P) => {
2020
+ const G = N.order ?? 0;
2021
+ G >= $ && ($ = G, M = P);
2022
+ }), v.map(({ content: N, order: P, borderBottom: G = !0 }, oe) => /* @__PURE__ */ e(
2021
2023
  f,
2022
2024
  {
2023
2025
  direction: "column",
2024
2026
  paddingTop: "sm",
2025
- paddingBottom: j || X === v ? "sm" : "spacing-0",
2027
+ paddingBottom: G || oe === M ? "sm" : "spacing-0",
2026
2028
  paddingInline: "md",
2027
2029
  style: {
2028
- ...j ? {
2030
+ ...G ? {
2029
2031
  borderBottom: "1px solid var(--sa-border-subtle, #0b120e24)"
2030
2032
  } : {},
2031
- ...$ !== void 0 ? { order: $ } : {}
2033
+ ...P !== void 0 ? { order: P } : {}
2032
2034
  },
2033
2035
  children: N
2034
2036
  },
2035
- `sub-header-${X}`
2037
+ `sub-header-${oe}`
2036
2038
  ));
2037
2039
  }, V = () => {
2038
2040
  const v = l ? D() : null, M = C();
@@ -2041,11 +2043,11 @@ const oi = (t, r) => {
2041
2043
  {
2042
2044
  direction: "column",
2043
2045
  style: {
2044
- // With subHeaders, the gap to the body comes entirely from the
2046
+ // With visible subHeaders, the gap to the body comes entirely from the
2045
2047
  // bottom-most row's own paddingBottom (forced to sm in renderSubHeaders),
2046
2048
  // so the last row is sm from the body whether or not it has a border.
2047
- // Without subHeaders the header keeps its usual md gap to the body.
2048
- marginBottom: c && c.length > 0 ? "var(--sa-spacing-0)" : "var(--sa-spacing-md)"
2049
+ // Without any visible subHeaders the header keeps its usual md gap.
2050
+ marginBottom: M ? "var(--sa-spacing-0)" : "var(--sa-spacing-md)"
2049
2051
  },
2050
2052
  children: [
2051
2053
  v,
@@ -2252,7 +2254,7 @@ const oi = (t, r) => {
2252
2254
  Body2: ki,
2253
2255
  Body3: Si
2254
2256
  }, Ve = () => {
2255
- const [t, r] = Ht(), n = Rt(t.toString()), o = nn(), i = yt(), l = o.id;
2257
+ const [t, r] = Ot(), n = Rt(t.toString()), o = nn(), i = yt(), l = o.id;
2256
2258
  return {
2257
2259
  // query params
2258
2260
  setSearchParams: r,
@@ -2440,7 +2442,7 @@ const oi = (t, r) => {
2440
2442
  }) => {
2441
2443
  const L = (g == null ? void 0 : g.isShowLabel) ?? !0, [z, D] = R(!1), [C, V] = R(0), I = () => {
2442
2444
  V((K) => K + 1);
2443
- }, { searchParams: v, setSearchParams: M, getQueryParam: N } = Ve(), $ = Rt(v.toString()), j = yr(t, v, c) || "", [X, le] = R(j), pe = N(c), he = !!(pe && !(() => {
2445
+ }, { searchParams: v, setSearchParams: M, getQueryParam: $ } = Ve(), N = Rt(v.toString()), P = yr(t, v, c) || "", [G, oe] = R(P), pe = $(c), he = !!(pe && !(() => {
2444
2446
  if (pe)
2445
2447
  try {
2446
2448
  const K = JSON.parse(pe);
@@ -2449,18 +2451,18 @@ const oi = (t, r) => {
2449
2451
  console.error("Filter parameter is not a valid JSON:", K);
2450
2452
  }
2451
2453
  return !1;
2452
- })()), Y = ke("md");
2453
- return U(() => {
2454
- le(j);
2455
- }, [j]), U(() => {
2456
- if (X === j)
2454
+ })()), X = ke("md");
2455
+ return J(() => {
2456
+ oe(P);
2457
+ }, [P]), J(() => {
2458
+ if (G === P)
2457
2459
  return;
2458
2460
  const K = window.setTimeout(() => {
2459
2461
  zt({
2460
- value: X,
2462
+ value: G,
2461
2463
  name: t,
2462
2464
  type: "search",
2463
- searchQueries: $,
2465
+ searchQueries: N,
2464
2466
  setSearchParams: M,
2465
2467
  filterKey: c,
2466
2468
  pageKey: d
@@ -2470,10 +2472,10 @@ const oi = (t, r) => {
2470
2472
  window.clearTimeout(K);
2471
2473
  };
2472
2474
  }, [
2473
- X,
2474
- j,
2475
+ G,
2476
+ P,
2475
2477
  t,
2476
- $,
2478
+ N,
2477
2479
  M,
2478
2480
  c,
2479
2481
  d
@@ -2482,16 +2484,16 @@ const oi = (t, r) => {
2482
2484
  {
2483
2485
  gap: "md",
2484
2486
  style: {
2485
- flexDirection: Y && b === "left" ? "row" : Y && b === "right" ? "row-reverse" : "column"
2487
+ flexDirection: X && b === "left" ? "row" : X && b === "right" ? "row-reverse" : "column"
2486
2488
  },
2487
2489
  align: "flex-end",
2488
2490
  children: [
2489
2491
  he && /* @__PURE__ */ e(f, { direction: "column", justify: "flex-end", children: /* @__PURE__ */ e(
2490
- H,
2492
+ O,
2491
2493
  {
2492
2494
  onClick: () => {
2493
2495
  const K = new URLSearchParams(v);
2494
- K.delete(c), M(K), le(""), I(), m && m();
2496
+ K.delete(c), M(K), oe(""), I(), m && m();
2495
2497
  },
2496
2498
  variant: "outline",
2497
2499
  tone: "neutral",
@@ -2515,7 +2517,7 @@ const oi = (t, r) => {
2515
2517
  `extended-filter-${Fe}-${C}`
2516
2518
  )),
2517
2519
  !!(p != null && p.length) && /* @__PURE__ */ e(
2518
- H,
2520
+ O,
2519
2521
  {
2520
2522
  primary: he,
2521
2523
  secondary: !he,
@@ -2529,7 +2531,7 @@ const oi = (t, r) => {
2529
2531
  }
2530
2532
  }
2531
2533
  ),
2532
- fullWidth: !Y,
2534
+ fullWidth: !X,
2533
2535
  onClick: () => D(!0),
2534
2536
  children: L ? "Filter" : void 0
2535
2537
  }
@@ -2582,7 +2584,7 @@ const oi = (t, r) => {
2582
2584
  value: K,
2583
2585
  name: r,
2584
2586
  type: "dropdown",
2585
- searchQueries: $,
2587
+ searchQueries: N,
2586
2588
  setSearchParams: M,
2587
2589
  filterKey: c
2588
2590
  }),
@@ -2599,7 +2601,7 @@ const oi = (t, r) => {
2599
2601
  direction: "column",
2600
2602
  gap: "sm",
2601
2603
  style: {
2602
- width: a && Y ? a : Y ? "310px" : ""
2604
+ width: a && X ? a : X ? "310px" : ""
2603
2605
  },
2604
2606
  children: [
2605
2607
  y && /* @__PURE__ */ u(Ue.SubH3, { children: [
@@ -2611,8 +2613,8 @@ const oi = (t, r) => {
2611
2613
  {
2612
2614
  placeholder: n,
2613
2615
  leftIcon: /* @__PURE__ */ e(E, { name: "Search", width: 20, height: 20 }),
2614
- onChange: (K) => le(K.target.value),
2615
- value: X,
2616
+ onChange: (K) => oe(K.target.value),
2617
+ value: G,
2616
2618
  fullWidth: !0
2617
2619
  },
2618
2620
  C + 1 + c
@@ -2656,7 +2658,7 @@ function xr({
2656
2658
  const v = d[I];
2657
2659
  return (v == null ? void 0 : v.locked) || C.includes(I) || V.includes(I);
2658
2660
  });
2659
- }, [l, n, r, i, t, d]), m = Q(
2661
+ }, [l, n, r, i, t, d]), m = Y(
2660
2662
  (C) => {
2661
2663
  try {
2662
2664
  return C[r] ? JSON.parse(C[r]) : {};
@@ -2665,22 +2667,22 @@ function xr({
2665
2667
  }
2666
2668
  },
2667
2669
  [r]
2668
- ), p = Q(
2670
+ ), p = Y(
2669
2671
  (C) => {
2670
2672
  const V = { ...c };
2671
2673
  C.length ? V[n] = C.join(",") : delete V[n], s(V);
2672
2674
  },
2673
2675
  [c, n, s]
2674
- ), g = Q(
2676
+ ), g = Y(
2675
2677
  (C) => {
2676
2678
  a.includes(C) || p([...a, C]);
2677
2679
  },
2678
2680
  [a, p]
2679
- ), b = Q(
2681
+ ), b = Y(
2680
2682
  (C) => {
2681
2683
  var M;
2682
2684
  if ((M = d[C]) != null && M.locked) return;
2683
- const V = { ...c }, I = a.filter((N) => N !== C);
2685
+ const V = { ...c }, I = a.filter(($) => $ !== C);
2684
2686
  I.length ? V[n] = I.join(",") : delete V[n];
2685
2687
  const v = m(V);
2686
2688
  C in v && (delete v[C], Object.keys(v).length ? V[r] = JSON.stringify(v) : delete V[r]), delete V[o], s(V);
@@ -2695,10 +2697,10 @@ function xr({
2695
2697
  s,
2696
2698
  d
2697
2699
  ]
2698
- ), B = Q(
2700
+ ), B = Y(
2699
2701
  (C) => a.includes(C) ? b(C) : g(C),
2700
2702
  [a, g, b]
2701
- ), y = Q(
2703
+ ), y = Y(
2702
2704
  (C) => {
2703
2705
  switch (C.type) {
2704
2706
  case "dropdown":
@@ -2728,7 +2730,7 @@ function xr({
2728
2730
  }
2729
2731
  },
2730
2732
  [l, r, m]
2731
- ), k = Q(
2733
+ ), k = Y(
2732
2734
  (C, V) => {
2733
2735
  if (C.type === "date-compact") {
2734
2736
  const I = { ...c }, v = m(I);
@@ -2746,13 +2748,13 @@ function xr({
2746
2748
  });
2747
2749
  },
2748
2750
  [c, s, r, o, m]
2749
- ), L = Q(
2751
+ ), L = Y(
2750
2752
  (C) => {
2751
2753
  const V = { ...c }, I = m(V);
2752
2754
  C in I && (delete I[C], Object.keys(I).length ? V[r] = JSON.stringify(I) : delete V[r]), delete V[o], s(V);
2753
2755
  },
2754
2756
  [c, r, o, m, s]
2755
- ), z = Q(() => {
2757
+ ), z = Y(() => {
2756
2758
  const C = { ...c };
2757
2759
  delete C[r], delete C[n], delete C[o], s(C);
2758
2760
  }, [c, r, n, o, s]), D = a.length > 0;
@@ -2791,7 +2793,7 @@ const fn = {
2791
2793
  const i = t.hidden.filter((l) => n.has(l));
2792
2794
  return { order: o, hidden: i };
2793
2795
  };
2794
- function Oi({
2796
+ function Hi({
2795
2797
  columns: t,
2796
2798
  scopeId: r,
2797
2799
  storage: n,
@@ -2810,21 +2812,21 @@ function Oi({
2810
2812
  }
2811
2813
  return l;
2812
2814
  }), m = t.map((v) => v.key).join("|");
2813
- U(() => a((v) => wt(v, t)), [m]);
2815
+ J(() => a((v) => wt(v, t)), [m]);
2814
2816
  const p = se(d);
2815
2817
  p.current = d;
2816
2818
  const g = i ? `${(i.order ?? []).join("|")}~${(i.hidden ?? []).join("|")}` : null, b = se(g);
2817
- U(() => {
2819
+ J(() => {
2818
2820
  if (g == null || b.current === g) return;
2819
2821
  b.current = g;
2820
2822
  const v = p.current, M = c(i, v.order);
2821
2823
  M.order.join("|") === v.order.join("|") && M.hidden.join("|") === v.hidden.join("|") || (a(M), s && n.set(s, M));
2822
2824
  }, [g, m]);
2823
2825
  const B = se(!1);
2824
- U(() => {
2826
+ J(() => {
2825
2827
  B.current || (B.current = !0, o == null || o(d));
2826
2828
  }, []);
2827
- const y = Q(
2829
+ const y = Y(
2828
2830
  (v) => {
2829
2831
  a(v), s && n.set(s, v), o == null || o(v);
2830
2832
  },
@@ -2832,20 +2834,20 @@ function Oi({
2832
2834
  ), k = ge(() => {
2833
2835
  const v = new Map(t.map((M) => [M.key, M]));
2834
2836
  return d.order.filter((M) => v.has(M)).map((M) => ({ ...v.get(M), visible: !d.hidden.includes(M) }));
2835
- }, [d, t]), L = Q(
2837
+ }, [d, t]), L = Y(
2836
2838
  (v) => {
2837
- const M = d.hidden.includes(v) ? d.hidden.filter((N) => N !== v) : [...d.hidden, v];
2839
+ const M = d.hidden.includes(v) ? d.hidden.filter(($) => $ !== v) : [...d.hidden, v];
2838
2840
  y({ ...d, hidden: M });
2839
2841
  },
2840
2842
  [d, y]
2841
- ), z = Q(
2843
+ ), z = Y(
2842
2844
  (v, M) => {
2843
2845
  if (v === M) return;
2844
- const N = [...d.order], [$] = N.splice(v, 1);
2845
- N.splice(M, 0, $), y({ ...d, order: N });
2846
+ const $ = [...d.order], [N] = $.splice(v, 1);
2847
+ $.splice(M, 0, N), y({ ...d, order: $ });
2846
2848
  },
2847
2849
  [d, y]
2848
- ), D = Q(
2850
+ ), D = Y(
2849
2851
  (v) => {
2850
2852
  y({
2851
2853
  ...d,
@@ -2853,7 +2855,7 @@ function Oi({
2853
2855
  });
2854
2856
  },
2855
2857
  [d, t, y]
2856
- ), C = Q(() => y(l), [y, l]), V = Q(
2858
+ ), C = Y(() => y(l), [y, l]), V = Y(
2857
2859
  (v) => y(wt(v, t)),
2858
2860
  [y, t]
2859
2861
  ), I = d.hidden.length === 0;
@@ -2868,7 +2870,7 @@ function Oi({
2868
2870
  applyState: V
2869
2871
  };
2870
2872
  }
2871
- function Hi({
2873
+ function Oi({
2872
2874
  scopeId: t,
2873
2875
  storage: r,
2874
2876
  snapshotKeys: n,
@@ -2878,13 +2880,13 @@ function Hi({
2878
2880
  }) {
2879
2881
  const { searchParams: s, setSearchParams: c } = Ve(), d = t ? xt.savedViews(t) : void 0, [a, m] = R(
2880
2882
  () => d ? r.get(d) || [] : []
2881
- ), p = Q(
2883
+ ), p = Y(
2882
2884
  (y) => {
2883
2885
  m(y), d && r.set(d, y);
2884
2886
  },
2885
2887
  [d]
2886
2888
  // storage identity is stable (module singleton / caller-provided)
2887
- ), g = Q(
2889
+ ), g = Y(
2888
2890
  (y) => {
2889
2891
  const k = y.trim();
2890
2892
  if (!k) return;
@@ -2903,10 +2905,10 @@ function Hi({
2903
2905
  p([...a, z]);
2904
2906
  },
2905
2907
  [n, s, i, p, a]
2906
- ), b = Q(
2908
+ ), b = Y(
2907
2909
  (y) => p(a.filter((k) => k.id !== y)),
2908
2910
  [p, a]
2909
- ), B = Q(
2911
+ ), B = Y(
2910
2912
  (y) => {
2911
2913
  const k = Object.fromEntries(s.entries());
2912
2914
  n.forEach((L) => delete k[L]), Object.assign(k, y.query), delete k[o], c(k), y.columns && (l == null || l(y.columns));
@@ -2928,7 +2930,7 @@ function Ti({
2928
2930
  enabled: o = !0
2929
2931
  }) {
2930
2932
  const { searchParams: i } = Ve(), l = t && o ? xt.lastState(t) : void 0, s = se(l);
2931
- U(() => {
2933
+ J(() => {
2932
2934
  if (!l) {
2933
2935
  s.current = l;
2934
2936
  return;
@@ -2943,11 +2945,11 @@ function Ti({
2943
2945
  p != null && (a[m] = p);
2944
2946
  }), Object.keys(a).length !== 0 && r.set(l, a);
2945
2947
  }, [i, l, n, r]);
2946
- const c = Q(() => {
2948
+ const c = Y(() => {
2947
2949
  if (!l) return null;
2948
2950
  const a = r.get(l);
2949
2951
  return a && Object.keys(a).length > 0 ? a : null;
2950
- }, [l, r]), d = Q(() => {
2952
+ }, [l, r]), d = Y(() => {
2951
2953
  l && r.remove(l);
2952
2954
  }, [l, r]);
2953
2955
  return {
@@ -2964,7 +2966,7 @@ function Ni({
2964
2966
  enabled: i = !0
2965
2967
  }) {
2966
2968
  const { searchParams: l } = Ve(), s = t && i ? xt.perPage(t) : void 0, c = l.toString(), d = se(s);
2967
- U(() => {
2969
+ J(() => {
2968
2970
  if (!s) {
2969
2971
  d.current = s;
2970
2972
  return;
@@ -2978,13 +2980,13 @@ function Ni({
2978
2980
  const g = Number(p);
2979
2981
  !Number.isFinite(g) || g <= 0 || r.set(s, g);
2980
2982
  }, [c, s, n, r]);
2981
- const a = Q(() => {
2983
+ const a = Y(() => {
2982
2984
  if (!s) return null;
2983
2985
  const p = r.get(s);
2984
2986
  if (p == null) return null;
2985
2987
  const g = Number(p);
2986
2988
  return !Number.isFinite(g) || g <= 0 || o && !o.includes(g) ? null : String(g);
2987
- }, [s, r, o]), m = Q(() => {
2989
+ }, [s, r, o]), m = Y(() => {
2988
2990
  s && r.remove(s);
2989
2991
  }, [s, r]);
2990
2992
  return {
@@ -3011,7 +3013,7 @@ function ji({
3011
3013
  readPerPage: i
3012
3014
  }) {
3013
3015
  const { searchParams: l, setSearchParams: s, location: c } = Ve(), d = se(null);
3014
- U(() => {
3016
+ J(() => {
3015
3017
  if (!t || d.current === c.pathname) return;
3016
3018
  d.current = c.pathname;
3017
3019
  const a = {};
@@ -3034,7 +3036,7 @@ const _i = ({
3034
3036
  onReset: i
3035
3037
  }) => t.length ? /* @__PURE__ */ u(Be, { position: "bottom-left", children: [
3036
3038
  /* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
3037
- H,
3039
+ O,
3038
3040
  {
3039
3041
  variant: o ? "secondary" : "outline",
3040
3042
  tone: "neutral",
@@ -3058,7 +3060,7 @@ const _i = ({
3058
3060
  children: [
3059
3061
  /* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", color: "subtlest", children: "Add Filter" }),
3060
3062
  o && i && /* @__PURE__ */ e(
3061
- H,
3063
+ O,
3062
3064
  {
3063
3065
  variant: "link",
3064
3066
  tone: "brand",
@@ -3091,7 +3093,7 @@ const _i = ({
3091
3093
  onRemove: r
3092
3094
  }) => /* @__PURE__ */ u(Be, { position: "bottom-right", children: [
3093
3095
  /* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
3094
- H,
3096
+ O,
3095
3097
  {
3096
3098
  variant: "link",
3097
3099
  tone: "neutral",
@@ -3196,7 +3198,7 @@ const _i = ({
3196
3198
  ] }) : t.label;
3197
3199
  return /* @__PURE__ */ u(Be, { position: "bottom-left", children: [
3198
3200
  /* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
3199
- H,
3201
+ O,
3200
3202
  {
3201
3203
  variant: s ? "secondary" : "outline",
3202
3204
  tone: "neutral",
@@ -3302,7 +3304,7 @@ const _i = ({
3302
3304
  };
3303
3305
  return /* @__PURE__ */ u(Be, { position: "bottom-left", children: [
3304
3306
  /* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
3305
- H,
3307
+ O,
3306
3308
  {
3307
3309
  variant: c ? "secondary" : "outline",
3308
3310
  tone: "neutral",
@@ -3353,7 +3355,7 @@ const _i = ({
3353
3355
  ] });
3354
3356
  }, Xi = ({ op: t, onChange: r }) => /* @__PURE__ */ u(Be, { position: "bottom-left", children: [
3355
3357
  /* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
3356
- H,
3358
+ O,
3357
3359
  {
3358
3360
  variant: "link",
3359
3361
  tone: "neutral",
@@ -3446,7 +3448,7 @@ const _i = ({
3446
3448
  /* @__PURE__ */ u(f, { direction: "row", display: "flex", align: "center", gap: "xs", children: [
3447
3449
  /* @__PURE__ */ u(Be, { position: "bottom-left", children: [
3448
3450
  /* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
3449
- H,
3451
+ O,
3450
3452
  {
3451
3453
  variant: "outline",
3452
3454
  tone: "neutral",
@@ -3489,7 +3491,7 @@ const _i = ({
3489
3491
  ),
3490
3492
  /* @__PURE__ */ u(Be, { position: "bottom-left", children: [
3491
3493
  /* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
3492
- H,
3494
+ O,
3493
3495
  {
3494
3496
  variant: "outline",
3495
3497
  tone: "neutral",
@@ -3559,7 +3561,7 @@ const _i = ({
3559
3561
  ] });
3560
3562
  return /* @__PURE__ */ u(Be, { position: "bottom-left", children: [
3561
3563
  /* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
3562
- H,
3564
+ O,
3563
3565
  {
3564
3566
  variant: s > 0 ? "secondary" : "outline",
3565
3567
  tone: "neutral",
@@ -3665,7 +3667,7 @@ const _i = ({
3665
3667
  ] });
3666
3668
  return /* @__PURE__ */ u(Be, { position: "bottom-left", children: [
3667
3669
  /* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
3668
- H,
3670
+ O,
3669
3671
  {
3670
3672
  variant: s > 0 ? "secondary" : "outline",
3671
3673
  tone: "neutral",
@@ -3792,7 +3794,7 @@ const _i = ({
3792
3794
  l && /* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", color: "primary", truncate: !0, children: `${y}-${k} of ${((L = t == null ? void 0 : t.totalData) == null ? void 0 : L.toLocaleString()) || 0}` }),
3793
3795
  s && /* @__PURE__ */ u(Be, { position: "bottom-left", children: [
3794
3796
  /* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
3795
- H,
3797
+ O,
3796
3798
  {
3797
3799
  variant: "outline",
3798
3800
  tone: "neutral",
@@ -3839,7 +3841,7 @@ const _i = ({
3839
3841
  ] });
3840
3842
  };
3841
3843
  function lo(t, r, n = !0) {
3842
- U(() => {
3844
+ J(() => {
3843
3845
  if (!n) return;
3844
3846
  const o = (i) => {
3845
3847
  var c;
@@ -3859,11 +3861,11 @@ const co = 240, yn = ({
3859
3861
  collapsible: l = !0
3860
3862
  }) => {
3861
3863
  const { searchParams: s, setSearchParams: c, searchQueries: d } = Ve(), a = yr(t, s, r) || "", [m, p] = R(!l || !!a), [g, b] = R(l && !a), [B, y] = R(a), k = Vn(B, 350), L = se(null);
3862
- U(() => {
3864
+ J(() => {
3863
3865
  y(a), a && p(!0);
3864
- }, [a]), U(() => {
3866
+ }, [a]), J(() => {
3865
3867
  m && b(!1);
3866
- }, [m]), U(() => {
3868
+ }, [m]), J(() => {
3867
3869
  k !== a && zt({
3868
3870
  value: k,
3869
3871
  name: t,
@@ -3874,7 +3876,7 @@ const co = 240, yn = ({
3874
3876
  pageKey: n
3875
3877
  });
3876
3878
  }, [k]);
3877
- const z = Q(() => {
3879
+ const z = Y(() => {
3878
3880
  p(!0), requestAnimationFrame(() => {
3879
3881
  var I;
3880
3882
  return (I = L.current) == null ? void 0 : I.focus();
@@ -3884,7 +3886,7 @@ const co = 240, yn = ({
3884
3886
  // the same time, so spacing to neighbours is handled by the parent cluster.
3885
3887
  /* @__PURE__ */ u(f, { display: "flex", direction: "row", align: "center", gap: "spacing-0", children: [
3886
3888
  g && /* @__PURE__ */ e(
3887
- H,
3889
+ O,
3888
3890
  {
3889
3891
  variant: "outline",
3890
3892
  tone: "neutral",
@@ -3971,7 +3973,7 @@ const co = 240, yn = ({
3971
3973
  };
3972
3974
  return /* @__PURE__ */ u(Be, { position: "bottom-right", children: [
3973
3975
  /* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
3974
- H,
3976
+ O,
3975
3977
  {
3976
3978
  variant: r ? "outline" : "secondary",
3977
3979
  tone: "neutral",
@@ -4001,7 +4003,7 @@ const co = 240, yn = ({
4001
4003
  children: [
4002
4004
  /* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", color: "subtle", children: "Show in table" }),
4003
4005
  /* @__PURE__ */ e(
4004
- H,
4006
+ O,
4005
4007
  {
4006
4008
  variant: "link",
4007
4009
  tone: "info",
@@ -4100,7 +4102,7 @@ const co = 240, yn = ({
4100
4102
  };
4101
4103
  return /* @__PURE__ */ u(Be, { position: "bottom-right", children: [
4102
4104
  /* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
4103
- H,
4105
+ O,
4104
4106
  {
4105
4107
  variant: t.length > 0 ? "secondary" : "outline",
4106
4108
  tone: (t.length > 0, "neutral"),
@@ -4129,7 +4131,7 @@ const co = 240, yn = ({
4129
4131
  startIcon: /* @__PURE__ */ e(E, { name: "Bookmark" }),
4130
4132
  onClick: () => r(c),
4131
4133
  endIcon: /* @__PURE__ */ e(
4132
- H,
4134
+ O,
4133
4135
  {
4134
4136
  variant: "link",
4135
4137
  tone: "error",
@@ -4166,7 +4168,7 @@ const co = 240, yn = ({
4166
4168
  }
4167
4169
  ) }),
4168
4170
  /* @__PURE__ */ e(
4169
- H,
4171
+ O,
4170
4172
  {
4171
4173
  variant: "primary",
4172
4174
  tone: "brand",
@@ -4227,7 +4229,7 @@ const co = 240, yn = ({
4227
4229
  ] })
4228
4230
  ] }),
4229
4231
  /* @__PURE__ */ e(
4230
- H,
4232
+ O,
4231
4233
  {
4232
4234
  variant: "link",
4233
4235
  tone: "neutral",
@@ -4346,7 +4348,7 @@ const co = 240, yn = ({
4346
4348
  },
4347
4349
  children: [
4348
4350
  /* @__PURE__ */ e(f, { direction: "column", style: { flex: "1 1 0" }, children: /* @__PURE__ */ e(
4349
- H,
4351
+ O,
4350
4352
  {
4351
4353
  variant: "outline",
4352
4354
  tone: "neutral",
@@ -4358,7 +4360,7 @@ const co = 240, yn = ({
4358
4360
  }
4359
4361
  ) }),
4360
4362
  /* @__PURE__ */ e(f, { direction: "column", style: { flex: "1 1 0" }, children: /* @__PURE__ */ e(
4361
- H,
4363
+ O,
4362
4364
  {
4363
4365
  variant: "primary",
4364
4366
  tone: "brand",
@@ -4390,7 +4392,7 @@ const co = 240, yn = ({
4390
4392
  };
4391
4393
  return i ? /* @__PURE__ */ u(Be, { position: "bottom-right", children: [
4392
4394
  /* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
4393
- H,
4395
+ O,
4394
4396
  {
4395
4397
  variant: "outline",
4396
4398
  tone: "neutral",
@@ -4440,19 +4442,19 @@ const co = 240, yn = ({
4440
4442
  defaultPerPage: I,
4441
4443
  showPagination: v,
4442
4444
  showResultCount: M,
4443
- showPageSize: N,
4444
- hasColumns: $,
4445
- orderedColumns: j,
4446
- allVisible: X,
4447
- onToggleVisibility: le,
4445
+ showPageSize: $,
4446
+ hasColumns: N,
4447
+ orderedColumns: P,
4448
+ allVisible: G,
4449
+ onToggleVisibility: oe,
4448
4450
  onReorder: pe,
4449
4451
  onSetAllHidden: ne,
4450
4452
  showSavedViews: he,
4451
- savedViews: Y,
4453
+ savedViews: X,
4452
4454
  onApplyView: K,
4453
4455
  onDeleteView: me,
4454
4456
  onSaveView: te
4455
- } = t, [de, Fe] = R(!1), { searchQueries: Ze, setSearchParams: ye } = Ve(), Ee = (D == null ? void 0 : D.rangeStart) ?? (((D == null ? void 0 : D.currentPage) || 0) > 1 ? (((D == null ? void 0 : D.currentPage) || 0) - 1) * ((D == null ? void 0 : D.perPage) || 0) + 1 : 1), Oe = (D == null ? void 0 : D.rangeEnd) ?? ((D == null ? void 0 : D.totalCurrentPage) !== (D == null ? void 0 : D.perPage) ? D == null ? void 0 : D.totalData : ((D == null ? void 0 : D.currentPage) || 1) * ((D == null ? void 0 : D.totalCurrentPage) || 0)), xe = (Ie) => {
4457
+ } = t, [de, Fe] = R(!1), { searchQueries: Ze, setSearchParams: ye } = Ve(), Ee = (D == null ? void 0 : D.rangeStart) ?? (((D == null ? void 0 : D.currentPage) || 0) > 1 ? (((D == null ? void 0 : D.currentPage) || 0) - 1) * ((D == null ? void 0 : D.perPage) || 0) + 1 : 1), He = (D == null ? void 0 : D.rangeEnd) ?? ((D == null ? void 0 : D.totalCurrentPage) !== (D == null ? void 0 : D.perPage) ? D == null ? void 0 : D.totalData : ((D == null ? void 0 : D.currentPage) || 1) * ((D == null ? void 0 : D.totalCurrentPage) || 0)), xe = (Ie) => {
4456
4458
  ye({ ...Ze, [y]: String(Ie) });
4457
4459
  }, $e = M || v && !!(D != null && D.totalPage), Qe = () => {
4458
4460
  p(), Fe(!1);
@@ -4493,7 +4495,7 @@ const co = 240, yn = ({
4493
4495
  }
4494
4496
  ),
4495
4497
  /* @__PURE__ */ e(
4496
- H,
4498
+ O,
4497
4499
  {
4498
4500
  variant: l ? "secondary" : "outline",
4499
4501
  tone: "neutral",
@@ -4516,18 +4518,18 @@ const co = 240, yn = ({
4516
4518
  he && /* @__PURE__ */ e(
4517
4519
  bn,
4518
4520
  {
4519
- views: Y,
4521
+ views: X,
4520
4522
  onApply: K,
4521
4523
  onDelete: me,
4522
4524
  onSave: te
4523
4525
  }
4524
4526
  ),
4525
- $ && /* @__PURE__ */ e(
4527
+ N && /* @__PURE__ */ e(
4526
4528
  xn,
4527
4529
  {
4528
- columns: j,
4529
- allVisible: X,
4530
- onToggle: le,
4530
+ columns: P,
4531
+ allVisible: G,
4532
+ onToggle: oe,
4531
4533
  onReorder: pe,
4532
4534
  onSetAllHidden: ne
4533
4535
  }
@@ -4539,7 +4541,7 @@ const co = 240, yn = ({
4539
4541
  pageKey: y,
4540
4542
  pageSizeOptions: V,
4541
4543
  defaultPerPage: I,
4542
- showPageSize: N
4544
+ showPageSize: $
4543
4545
  }
4544
4546
  )
4545
4547
  ]
@@ -4558,7 +4560,7 @@ const co = 240, yn = ({
4558
4560
  gap: "sm",
4559
4561
  fullWidth: !0,
4560
4562
  children: [
4561
- M ? /* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", color: "primary", truncate: !0, children: `${Ee}-${Oe} of ${((be = D == null ? void 0 : D.totalData) == null ? void 0 : be.toLocaleString()) || 0}` }) : /* @__PURE__ */ e(f, { direction: "column" }),
4563
+ M ? /* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", color: "primary", truncate: !0, children: `${Ee}-${He} of ${((be = D == null ? void 0 : D.totalData) == null ? void 0 : be.toLocaleString()) || 0}` }) : /* @__PURE__ */ e(f, { direction: "column" }),
4562
4564
  v && !!(D != null && D.totalPage) && /* @__PURE__ */ e(
4563
4565
  dr,
4564
4566
  {
@@ -4619,16 +4621,16 @@ const co = 240, yn = ({
4619
4621
  savedViews: I,
4620
4622
  persistLastState: v = !0,
4621
4623
  storage: M = fn,
4622
- onReset: N
4624
+ onReset: $
4623
4625
  }) => {
4624
- const $ = V ?? (I == null ? void 0 : I.scopeId), {
4625
- activeKeys: j,
4626
- configByKey: X,
4627
- hasActiveFilter: le,
4626
+ const N = V ?? (I == null ? void 0 : I.scopeId), {
4627
+ activeKeys: P,
4628
+ configByKey: G,
4629
+ hasActiveFilter: oe,
4628
4630
  toggleFilter: pe,
4629
4631
  removeFilter: ne,
4630
4632
  getValue: he,
4631
- setValue: Y,
4633
+ setValue: X,
4632
4634
  clearValue: K,
4633
4635
  clearAll: me
4634
4636
  } = xr({
@@ -4637,40 +4639,40 @@ const co = 240, yn = ({
4637
4639
  activeFilterKey: o,
4638
4640
  pageKey: i,
4639
4641
  searchKey: g
4640
- }), te = Oi({
4642
+ }), te = Hi({
4641
4643
  columns: z,
4642
- scopeId: $,
4644
+ scopeId: N,
4643
4645
  storage: M,
4644
4646
  onColumnsChange: D,
4645
4647
  value: C
4646
- }), de = Hi({
4647
- scopeId: $,
4648
+ }), de = Oi({
4649
+ scopeId: N,
4648
4650
  storage: M,
4649
4651
  snapshotKeys: [o, n, l],
4650
4652
  pageKey: i,
4651
4653
  getColumns: () => te.state,
4652
4654
  applyColumns: te.applyState
4653
4655
  }), Fe = Ti({
4654
- scopeId: $,
4656
+ scopeId: N,
4655
4657
  storage: M,
4656
4658
  snapshotKeys: [o, n, i],
4657
4659
  enabled: v
4658
4660
  }), Ze = Ni({
4659
- scopeId: $,
4661
+ scopeId: N,
4660
4662
  storage: M,
4661
4663
  perPageKey: l,
4662
4664
  pageSizeOptions: s,
4663
4665
  enabled: v
4664
4666
  });
4665
4667
  ji({
4666
- enabled: v && !!$,
4668
+ enabled: v && !!N,
4667
4669
  snapshotKeys: [o, n, i],
4668
4670
  perPageKey: l,
4669
4671
  readSnapshot: Fe.read,
4670
4672
  readPerPage: Ze.read
4671
4673
  });
4672
- const ye = c ?? s[0] ?? 25, Ee = !!(I != null && I.enabled) && de.enabled, Oe = () => {
4673
- me(), Fe.clear(), N == null || N();
4674
+ const ye = c ?? s[0] ?? 25, Ee = !!(I != null && I.enabled) && de.enabled, He = () => {
4675
+ me(), Fe.clear(), $ == null || $();
4674
4676
  }, xe = ke("md"), $e = p ? /* @__PURE__ */ e(
4675
4677
  yn,
4676
4678
  {
@@ -4711,10 +4713,10 @@ const co = 240, yn = ({
4711
4713
  _i,
4712
4714
  {
4713
4715
  configs: r,
4714
- activeKeys: j,
4716
+ activeKeys: P,
4715
4717
  onToggle: pe,
4716
- hasActiveFilter: le,
4717
- onReset: Oe
4718
+ hasActiveFilter: oe,
4719
+ onReset: He
4718
4720
  }
4719
4721
  ),
4720
4722
  y === "left" && $e,
@@ -4731,21 +4733,21 @@ const co = 240, yn = ({
4731
4733
  /* @__PURE__ */ e(
4732
4734
  pn,
4733
4735
  {
4734
- activeKeys: j,
4735
- configByKey: X,
4736
+ activeKeys: P,
4737
+ configByKey: G,
4736
4738
  getValue: he,
4737
- setValue: Y,
4739
+ setValue: X,
4738
4740
  clearValue: K,
4739
4741
  removeFilter: ne
4740
4742
  }
4741
4743
  ),
4742
- le && /* @__PURE__ */ e(
4743
- H,
4744
+ oe && /* @__PURE__ */ e(
4745
+ O,
4744
4746
  {
4745
4747
  variant: "link",
4746
4748
  tone: "brand",
4747
4749
  size: "sm",
4748
- onClick: Oe,
4750
+ onClick: He,
4749
4751
  children: "Reset"
4750
4752
  }
4751
4753
  )
@@ -4797,15 +4799,15 @@ const co = 240, yn = ({
4797
4799
  {
4798
4800
  withPadding: t,
4799
4801
  configs: r,
4800
- activeKeys: j,
4801
- configByKey: X,
4802
- hasActiveFilter: le,
4802
+ activeKeys: P,
4803
+ configByKey: G,
4804
+ hasActiveFilter: oe,
4803
4805
  toggleFilter: pe,
4804
4806
  removeFilter: ne,
4805
4807
  getValue: he,
4806
- setValue: Y,
4808
+ setValue: X,
4807
4809
  clearValue: K,
4808
- onReset: Oe,
4810
+ onReset: He,
4809
4811
  searchable: p,
4810
4812
  searchKey: g,
4811
4813
  filterKey: n,
@@ -4886,15 +4888,15 @@ const co = 240, yn = ({
4886
4888
  I && (z[(a == null ? void 0 : a.search) ?? "search"] = I);
4887
4889
  let v = !1;
4888
4890
  for (const M of p) {
4889
- const N = g[M];
4890
- if (!N) continue;
4891
- const $ = B(N);
4892
- D[M] = $;
4893
- const j = m == null ? void 0 : m[M], X = j ? j($) : go(N, $);
4894
- if (X == null || Array.isArray(X) && X.length === 0)
4891
+ const $ = g[M];
4892
+ if (!$) continue;
4893
+ const N = B($);
4894
+ D[M] = N;
4895
+ const P = m == null ? void 0 : m[M], G = P ? P(N) : go($, N);
4896
+ if (G == null || Array.isArray(G) && G.length === 0)
4895
4897
  continue;
4896
- const le = (a == null ? void 0 : a[M]) ?? M;
4897
- z[le] = X, v = !0;
4898
+ const oe = (a == null ? void 0 : a[M]) ?? M;
4899
+ z[oe] = G, v = !0;
4898
4900
  }
4899
4901
  return {
4900
4902
  params: z,
@@ -4937,7 +4939,7 @@ const co = 240, yn = ({
4937
4939
  var C;
4938
4940
  const D = L.options;
4939
4941
  return ((C = D == null ? void 0 : D.find((V) => V.value === z)) == null ? void 0 : C.label) ?? z;
4940
- }, g = Q(
4942
+ }, g = Y(
4941
4943
  (L) => {
4942
4944
  const z = l[L];
4943
4945
  if (!z) return [];
@@ -4945,7 +4947,7 @@ const co = 240, yn = ({
4945
4947
  return Array.isArray(D) ? D.map((C) => String(C.value)) : [];
4946
4948
  },
4947
4949
  [l, s]
4948
- ), b = Q(
4950
+ ), b = Y(
4949
4951
  (L, z) => {
4950
4952
  const D = l[L];
4951
4953
  if (!D || !po.includes(D.type)) return;
@@ -4960,16 +4962,16 @@ const co = 240, yn = ({
4960
4962
  );
4961
4963
  },
4962
4964
  [l, c, d]
4963
- ), B = Q(
4965
+ ), B = Y(
4964
4966
  (L, z) => {
4965
4967
  const D = g(L);
4966
4968
  b(L, D.includes(z) ? D.filter((C) => C !== z) : [...D, z]);
4967
4969
  },
4968
4970
  [g, b]
4969
- ), y = Q(
4971
+ ), y = Y(
4970
4972
  (L, z) => g(L).includes(z),
4971
4973
  [g]
4972
- ), k = Q((L) => d(L), [d]);
4974
+ ), k = Y((L) => d(L), [d]);
4973
4975
  return { set: b, toggle: B, clear: k, clearAll: a, isActive: y, values: g, hasActiveFilter: m };
4974
4976
  }, sc = (t, r) => {
4975
4977
  if (!t) return {};
@@ -4996,7 +4998,7 @@ const co = 240, yn = ({
4996
4998
  }
4997
4999
  }, yo = ({ children: t, borderRadius: r, height: n }) => {
4998
5000
  const o = se(null), [i, l] = R("100vh");
4999
- return U(() => {
5001
+ return J(() => {
5000
5002
  if (n) return;
5001
5003
  const s = () => {
5002
5004
  if (o.current) {
@@ -5069,7 +5071,7 @@ const co = 240, yn = ({
5069
5071
  },
5070
5072
  children: t.map(
5071
5073
  ({ title: a, icon: m, buttonProps: p, onClick: g }, b) => !a && !m ? null : /* @__PURE__ */ e(
5072
- H,
5074
+ O,
5073
5075
  {
5074
5076
  fullWidth: !s,
5075
5077
  iconLeft: m ? /* @__PURE__ */ e(E, { name: m }) : void 0,
@@ -5194,19 +5196,19 @@ const co = 240, yn = ({
5194
5196
  const [n, o] = R(!1), i = se(null), l = se(null), s = se(null), [c, d] = R(""), [a, m] = R({ top: 0, left: 0 }), p = t.selectedValues, g = ge(() => c ? t.options.filter(
5195
5197
  (y) => y.label.toLowerCase().includes(c.toLowerCase())
5196
5198
  ) : t.options, [t.options, c]);
5197
- U(() => {
5199
+ J(() => {
5198
5200
  if (n && l.current) {
5199
5201
  const y = l.current.getBoundingClientRect(), k = 280, L = {
5200
5202
  top: y.bottom + 8
5201
5203
  };
5202
5204
  t.position === "left" || y.left + k > window.innerWidth ? L.right = window.innerWidth - y.right : L.left = y.left, m(L);
5203
5205
  }
5204
- }, [n, t.position]), U(() => {
5206
+ }, [n, t.position]), J(() => {
5205
5207
  n && s.current ? setTimeout(() => {
5206
5208
  var y;
5207
5209
  return (y = s.current) == null ? void 0 : y.focus();
5208
5210
  }, 50) : d("");
5209
- }, [n]), U(() => {
5211
+ }, [n]), J(() => {
5210
5212
  const y = (k) => {
5211
5213
  i.current && !i.current.contains(k.target) && l.current && !l.current.contains(k.target) && o(!1);
5212
5214
  };
@@ -5568,73 +5570,73 @@ const co = 240, yn = ({
5568
5570
  onSortChange: I,
5569
5571
  showActionDivider: v = !1
5570
5572
  }) => {
5571
- const M = C !== void 0, [N, $] = R(
5573
+ const M = C !== void 0, [$, N] = R(
5572
5574
  V ?? null
5573
- ), j = M ? C ?? null : N, X = (W) => {
5575
+ ), P = M ? C ?? null : $, G = (W) => {
5574
5576
  if (W.sortKey) return W.sortKey;
5575
5577
  if (typeof W.accessor == "string") return W.accessor;
5576
- }, le = (W) => {
5577
- const O = X(W);
5578
- if (!O) return;
5578
+ }, oe = (W) => {
5579
+ const H = G(W);
5580
+ if (!H) return;
5579
5581
  let T;
5580
- !j || j.key !== O ? T = { key: O, direction: "asc" } : j.direction === "asc" ? T = { key: O, direction: "desc" } : T = null, M || $(T), I == null || I(T);
5581
- }, ne = [n, o, i].filter((W) => W !== void 0).length, he = !!b, Y = !!n || !!o || !!i || he, K = "var(--sa-border-subtle, #0b120e24)", me = `1px solid ${K}`, te = `inset 1px 0 0 ${K}`, de = `inset -1px 0 0 ${K}`, Fe = ne === 3 ? he ? "178px" : "140px" : ne === 2 ? he ? "140px" : "102px" : ne === 1 ? he ? "112px" : "74px" : he ? "74px" : "", Ze = (W, O) => {
5582
- if (!O) return W;
5583
- if (typeof O == "function") return O(W);
5584
- if (typeof O == "string") return W[O];
5582
+ !P || P.key !== H ? T = { key: H, direction: "asc" } : P.direction === "asc" ? T = { key: H, direction: "desc" } : T = null, M || N(T), I == null || I(T);
5583
+ }, ne = [n, o, i].filter((W) => W !== void 0).length, he = !!b, X = !!n || !!o || !!i || he, K = "var(--sa-border-subtle, #0b120e24)", me = `1px solid ${K}`, te = `inset 1px 0 0 ${K}`, de = `inset -1px 0 0 ${K}`, Fe = ne === 3 ? he ? "178px" : "140px" : ne === 2 ? he ? "140px" : "102px" : ne === 1 ? he ? "112px" : "74px" : he ? "74px" : "", Ze = (W, H) => {
5584
+ if (!H) return W;
5585
+ if (typeof H == "function") return H(W);
5586
+ if (typeof H == "string") return W[H];
5585
5587
  }, [ye, Ee] = R(!1);
5586
- U(() => {
5588
+ J(() => {
5587
5589
  if (!(m != null && m.current)) return;
5588
5590
  const W = m.current;
5589
5591
  Ee(W.scrollHeight > W.clientHeight);
5590
5592
  }, [r, m]);
5591
- const Oe = se(null), [xe, $e] = R([]), [Qe, be] = R(
5593
+ const He = se(null), [xe, $e] = R([]), [Qe, be] = R(
5592
5594
  () => L ?? {}
5593
5595
  ), Ie = se(null);
5594
5596
  lt(() => {
5595
- if (!p || !Oe.current) {
5597
+ if (!p || !He.current) {
5596
5598
  $e([]);
5597
5599
  return;
5598
5600
  }
5599
5601
  const W = Array.from(
5600
- Oe.current.querySelectorAll("thead tr th")
5601
- ), O = [];
5602
+ He.current.querySelectorAll("thead tr th")
5603
+ ), H = [];
5602
5604
  let T = 0;
5603
- W.forEach((P, J) => {
5604
- O[J] = T, J < p && (T += P.offsetWidth);
5605
- }), $e(O);
5605
+ W.forEach((_, Q) => {
5606
+ H[Q] = T, Q < p && (T += _.offsetWidth);
5607
+ }), $e(H);
5606
5608
  }, [p, t, r, Qe]);
5607
5609
  const et = (W) => {
5608
5610
  g && g(W < p ? W : W + 1);
5609
- }, S = (W, O) => {
5611
+ }, S = (W, H) => {
5610
5612
  const T = Qe[W];
5611
5613
  if (T !== void 0) {
5612
- const P = `${T}px`;
5613
- return { width: P, minWidth: P, maxWidth: P };
5614
+ const _ = `${T}px`;
5615
+ return { width: _, minWidth: _, maxWidth: _ };
5614
5616
  }
5615
- return O ? { width: O } : {};
5616
- }, Z = (W) => k && (W.resizable ?? !0), _ = (W, O) => {
5617
+ return H ? { width: H } : {};
5618
+ }, Z = (W) => k && (W.resizable ?? !0), j = (W, H) => {
5617
5619
  W.preventDefault(), W.stopPropagation();
5618
5620
  const T = W.currentTarget.closest("th");
5619
5621
  if (!T) return;
5620
- const P = Math.round(T.getBoundingClientRect().width);
5621
- Ie.current = { colIndex: O, startX: W.clientX, startWidth: P };
5622
- const J = document.body.style.userSelect, Ce = document.body.style.cursor;
5622
+ const _ = Math.round(T.getBoundingClientRect().width);
5623
+ Ie.current = { colIndex: H, startX: W.clientX, startWidth: _ };
5624
+ const Q = document.body.style.userSelect, Ce = document.body.style.cursor;
5623
5625
  document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
5624
5626
  const Le = (_e) => {
5625
5627
  var nt;
5626
- const He = Ie.current;
5627
- if (!He) return;
5628
- const tt = ((nt = t[He.colIndex]) == null ? void 0 : nt.minWidth) ?? D, rt = Math.max(tt, He.startWidth + (_e.clientX - He.startX));
5628
+ const Oe = Ie.current;
5629
+ if (!Oe) return;
5630
+ const tt = ((nt = t[Oe.colIndex]) == null ? void 0 : nt.minWidth) ?? D, rt = Math.max(tt, Oe.startWidth + (_e.clientX - Oe.startX));
5629
5631
  be(
5630
- (Pe) => Pe[He.colIndex] === rt ? Pe : { ...Pe, [He.colIndex]: rt }
5632
+ (Pe) => Pe[Oe.colIndex] === rt ? Pe : { ...Pe, [Oe.colIndex]: rt }
5631
5633
  );
5632
5634
  }, je = () => {
5633
- document.removeEventListener("mousemove", Le), document.removeEventListener("mouseup", je), document.body.style.userSelect = J, document.body.style.cursor = Ce, Ie.current = null, z && be((_e) => (z(_e), _e));
5635
+ document.removeEventListener("mousemove", Le), document.removeEventListener("mouseup", je), document.body.style.userSelect = Q, document.body.style.cursor = Ce, Ie.current = null, z && be((_e) => (z(_e), _e));
5634
5636
  };
5635
5637
  document.addEventListener("mousemove", Le), document.addEventListener("mouseup", je);
5636
5638
  };
5637
- return /* @__PURE__ */ e("div", { ref: Oe, children: /* @__PURE__ */ u(ur, { fullWidth: !0, children: [
5639
+ return /* @__PURE__ */ e("div", { ref: He, children: /* @__PURE__ */ u(ur, { fullWidth: !0, children: [
5638
5640
  /* @__PURE__ */ e(
5639
5641
  tn,
5640
5642
  {
@@ -5643,9 +5645,9 @@ const co = 240, yn = ({
5643
5645
  whiteSpace: "nowrap"
5644
5646
  },
5645
5647
  children: /* @__PURE__ */ u(Te, { children: [
5646
- t.map((W, O) => {
5648
+ t.map((W, H) => {
5647
5649
  var ct, st;
5648
- const T = p > 0 && O < p, P = xe[O] ?? 0, J = Z(W), Le = O === t.length - 1 && Y && v, je = X(W), _e = !!W.sortable && !!je, He = _e && (j == null ? void 0 : j.key) === je ? j.direction : null, tt = W.title || ((ct = W.accessor) == null ? void 0 : ct.toString()) || "", rt = (st = W.headerTooltip) != null && st.showIcon ? /* @__PURE__ */ e(
5650
+ const T = p > 0 && H < p, _ = xe[H] ?? 0, Q = Z(W), Le = H === t.length - 1 && X && v, je = G(W), _e = !!W.sortable && !!je, Oe = _e && (P == null ? void 0 : P.key) === je ? P.direction : null, tt = W.title || ((ct = W.accessor) == null ? void 0 : ct.toString()) || "", rt = (st = W.headerTooltip) != null && st.showIcon ? /* @__PURE__ */ e(
5649
5651
  E,
5650
5652
  {
5651
5653
  name: "InfoCircle",
@@ -5656,8 +5658,8 @@ const co = 240, yn = ({
5656
5658
  "button",
5657
5659
  {
5658
5660
  type: "button",
5659
- onClick: () => le(W),
5660
- title: He === "asc" ? "Sorted ascending — click to sort descending" : He === "desc" ? "Sorted descending — click to clear" : "Click to sort ascending",
5661
+ onClick: () => oe(W),
5662
+ title: Oe === "asc" ? "Sorted ascending — click to sort descending" : Oe === "desc" ? "Sorted descending — click to clear" : "Click to sort ascending",
5661
5663
  style: {
5662
5664
  flex: 1,
5663
5665
  minWidth: 0,
@@ -5676,7 +5678,7 @@ const co = 240, yn = ({
5676
5678
  children: [
5677
5679
  nt,
5678
5680
  rt,
5679
- /* @__PURE__ */ e(wo, { direction: He })
5681
+ /* @__PURE__ */ e(wo, { direction: Oe })
5680
5682
  ]
5681
5683
  }
5682
5684
  ) : /* @__PURE__ */ u("span", { style: { flex: 1, minWidth: 0, display: "flex", alignItems: "center", gap: 4 }, children: [
@@ -5689,15 +5691,15 @@ const co = 240, yn = ({
5689
5691
  style: {
5690
5692
  position: "sticky",
5691
5693
  top: 0,
5692
- left: T ? P : void 0,
5694
+ left: T ? _ : void 0,
5693
5695
  zIndex: T ? 4 : 2,
5694
- paddingLeft: O === 0 ? "12px" : "",
5696
+ paddingLeft: H === 0 ? "12px" : "",
5695
5697
  borderRight: a && !Le && !T ? me : void 0,
5696
5698
  borderBottom: a ? me : void 0,
5697
5699
  boxShadow: a && T ? de : void 0,
5698
5700
  backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
5699
5701
  textAlign: W.textAlign === "text-right" ? "right" : W.textAlign === "text-center" ? "center" : "left",
5700
- ...S(O, W.width)
5702
+ ...S(H, W.width)
5701
5703
  },
5702
5704
  children: [
5703
5705
  /* @__PURE__ */ u(
@@ -5722,7 +5724,7 @@ const co = 240, yn = ({
5722
5724
  g && /* @__PURE__ */ e(
5723
5725
  "button",
5724
5726
  {
5725
- onClick: () => et(O),
5727
+ onClick: () => et(H),
5726
5728
  title: T ? "Unfreeze column" : "Freeze column",
5727
5729
  style: {
5728
5730
  background: "none",
@@ -5742,10 +5744,10 @@ const co = 240, yn = ({
5742
5744
  ]
5743
5745
  }
5744
5746
  ),
5745
- J && /* @__PURE__ */ e(
5747
+ Q && /* @__PURE__ */ e(
5746
5748
  "div",
5747
5749
  {
5748
- onMouseDown: (at) => _(at, O),
5750
+ onMouseDown: (at) => j(at, H),
5749
5751
  onClick: (at) => at.stopPropagation(),
5750
5752
  role: "separator",
5751
5753
  "aria-orientation": "vertical",
@@ -5765,10 +5767,10 @@ const co = 240, yn = ({
5765
5767
  )
5766
5768
  ]
5767
5769
  },
5768
- `table-head-${O}`
5770
+ `table-head-${H}`
5769
5771
  );
5770
5772
  }),
5771
- Y ? /* @__PURE__ */ e(
5773
+ X ? /* @__PURE__ */ e(
5772
5774
  ut,
5773
5775
  {
5774
5776
  style: {
@@ -5791,29 +5793,29 @@ const co = 240, yn = ({
5791
5793
  /* @__PURE__ */ e(Ye, { variant: "list" }),
5792
5794
  /* @__PURE__ */ e(Ye, { variant: "list" }),
5793
5795
  /* @__PURE__ */ e(Ye, { variant: "list" })
5794
- ] }) }) }) : !(r != null && r.length) && y ? /* @__PURE__ */ e(Te, { children: /* @__PURE__ */ e(Re, { colSpan: t.length + 1, children: y }) }) : r == null ? void 0 : r.map((W, O) => /* @__PURE__ */ u(
5796
+ ] }) }) }) : !(r != null && r.length) && y ? /* @__PURE__ */ e(Te, { children: /* @__PURE__ */ e(Re, { colSpan: t.length + 1, children: y }) }) : r == null ? void 0 : r.map((W, H) => /* @__PURE__ */ u(
5795
5797
  Te,
5796
5798
  {
5797
5799
  style: {
5798
5800
  transition: "background-color 0.3s ease",
5799
5801
  padding: 0,
5800
- borderBottom: O === r.length - 1 && ye ? void 0 : "1px solid var(--sa-border-subtle, #0b120e24)"
5802
+ borderBottom: H === r.length - 1 && ye ? void 0 : "1px solid var(--sa-border-subtle, #0b120e24)"
5801
5803
  },
5802
5804
  onMouseEnter: (T) => {
5803
- const P = T.currentTarget;
5804
- P.style.backgroundColor = qr, Array.from(P.querySelectorAll("td")).forEach((J) => {
5805
- J.style.position === "sticky" && (J.style.backgroundColor = qr);
5805
+ const _ = T.currentTarget;
5806
+ _.style.backgroundColor = qr, Array.from(_.querySelectorAll("td")).forEach((Q) => {
5807
+ Q.style.position === "sticky" && (Q.style.backgroundColor = qr);
5806
5808
  });
5807
5809
  },
5808
5810
  onMouseLeave: (T) => {
5809
- const P = T.currentTarget;
5810
- P.style.backgroundColor = "", Array.from(P.querySelectorAll("td")).forEach((J) => {
5811
- J.style.position === "sticky" && (J.style.backgroundColor = er);
5811
+ const _ = T.currentTarget;
5812
+ _.style.backgroundColor = "", Array.from(_.querySelectorAll("td")).forEach((Q) => {
5813
+ Q.style.position === "sticky" && (Q.style.backgroundColor = er);
5812
5814
  });
5813
5815
  },
5814
5816
  children: [
5815
- t.map((T, P) => {
5816
- const J = T.render ? T.render(W, O, r) : Ze(W, T.accessor), Ce = p > 0 && P < p, Le = xe[P] ?? 0, je = Qe[P] !== void 0, _e = Ce && P === p - 1;
5817
+ t.map((T, _) => {
5818
+ const Q = T.render ? T.render(W, H, r) : Ze(W, T.accessor), Ce = p > 0 && _ < p, Le = xe[_] ?? 0, je = Qe[_] !== void 0, _e = Ce && _ === p - 1;
5817
5819
  return /* @__PURE__ */ e(
5818
5820
  Re,
5819
5821
  {
@@ -5823,16 +5825,16 @@ const co = 240, yn = ({
5823
5825
  zIndex: Ce ? 1 : void 0,
5824
5826
  backgroundColor: Ce ? er : void 0,
5825
5827
  transition: Ce ? "background-color 0.3s ease" : void 0,
5826
- paddingLeft: P === 0 ? "12px" : "",
5828
+ paddingLeft: _ === 0 ? "12px" : "",
5827
5829
  whiteSpace: "nowrap",
5828
5830
  overflow: je ? "hidden" : void 0,
5829
5831
  borderLeft: T.showBorderLeft ? me : void 0,
5830
5832
  borderRight: T.showBorderRight ? me : void 0,
5831
5833
  boxShadow: _e ? de : void 0,
5832
5834
  textAlign: T.textAlign === "text-right" ? "right" : T.textAlign === "text-center" ? "center" : "left",
5833
- ...S(P, T.width)
5835
+ ...S(_, T.width)
5834
5836
  },
5835
- children: typeof J == "string" ? /* @__PURE__ */ e(
5837
+ children: typeof Q == "string" ? /* @__PURE__ */ e(
5836
5838
  w,
5837
5839
  {
5838
5840
  style: {
@@ -5841,14 +5843,14 @@ const co = 240, yn = ({
5841
5843
  textOverflow: "ellipsis",
5842
5844
  textAlign: T.textAlign === "text-right" ? "right" : T.textAlign === "text-center" ? "center" : "left"
5843
5845
  },
5844
- children: J
5846
+ children: Q
5845
5847
  }
5846
- ) : J
5848
+ ) : Q
5847
5849
  },
5848
- `row-${O}-col-${P}`
5850
+ `row-${H}-col-${_}`
5849
5851
  );
5850
5852
  }),
5851
- Y ? /* @__PURE__ */ e(Re, { style: {
5853
+ X ? /* @__PURE__ */ e(Re, { style: {
5852
5854
  width: Fe,
5853
5855
  position: "sticky",
5854
5856
  right: 0,
@@ -5857,9 +5859,9 @@ const co = 240, yn = ({
5857
5859
  boxShadow: v ? te : void 0,
5858
5860
  transition: "background-color 0.3s ease"
5859
5861
  }, children: /* @__PURE__ */ e(ce, { direction: "row", align: "center", justify: "center", gap: "sm", children: B.map((T) => {
5860
- const P = O === r.length - 1 ? "top" : "bottom";
5861
- return T === "detail" && n && (d == null ? void 0 : d(W)) !== !1 ? /* @__PURE__ */ e(We, { label: "Detail", position: P, children: /* @__PURE__ */ e(
5862
- H,
5862
+ const _ = H === r.length - 1 ? "top" : "bottom";
5863
+ return T === "detail" && n && (d == null ? void 0 : d(W)) !== !1 ? /* @__PURE__ */ e(We, { label: "Detail", position: _, children: /* @__PURE__ */ e(
5864
+ O,
5863
5865
  {
5864
5866
  size: "xs",
5865
5867
  variant: "outline",
@@ -5867,8 +5869,8 @@ const co = 240, yn = ({
5867
5869
  onClick: () => n(W.id, W),
5868
5870
  iconLeft: /* @__PURE__ */ e(E, { name: "DocumentClean", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
5869
5871
  }
5870
- ) }, "detail") : T === "update" && o && (c == null ? void 0 : c(W)) !== !1 ? /* @__PURE__ */ e(We, { label: "Update", position: P, children: /* @__PURE__ */ e(
5871
- H,
5872
+ ) }, "detail") : T === "update" && o && (c == null ? void 0 : c(W)) !== !1 ? /* @__PURE__ */ e(We, { label: "Update", position: _, children: /* @__PURE__ */ e(
5873
+ O,
5872
5874
  {
5873
5875
  size: "xs",
5874
5876
  variant: "outline",
@@ -5876,8 +5878,8 @@ const co = 240, yn = ({
5876
5878
  onClick: () => o(W),
5877
5879
  iconLeft: /* @__PURE__ */ e(E, { name: "Edit1", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
5878
5880
  }
5879
- ) }, "update") : T === "delete" && i && (s == null ? void 0 : s(W)) !== !1 ? /* @__PURE__ */ e(We, { label: "Delete", position: P, children: /* @__PURE__ */ e(
5880
- H,
5881
+ ) }, "update") : T === "delete" && i && (s == null ? void 0 : s(W)) !== !1 ? /* @__PURE__ */ e(We, { label: "Delete", position: _, children: /* @__PURE__ */ e(
5882
+ O,
5881
5883
  {
5882
5884
  size: "xs",
5883
5885
  variant: "outline",
@@ -5889,7 +5891,7 @@ const co = 240, yn = ({
5889
5891
  }) }) }) : null
5890
5892
  ]
5891
5893
  },
5892
- `${W}${O}`
5894
+ `${W}${H}`
5893
5895
  )) })
5894
5896
  ] }) });
5895
5897
  }, So = ({
@@ -5994,7 +5996,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
5994
5996
  const [a, m] = R(!1), p = se(null), g = se(null), [b, B] = R(
5995
5997
  { top: 0, left: 0 }
5996
5998
  );
5997
- U(() => {
5999
+ J(() => {
5998
6000
  if (a && p.current) {
5999
6001
  const k = p.current.getBoundingClientRect(), L = k.left + Ur > window.innerWidth;
6000
6002
  B({
@@ -6002,7 +6004,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6002
6004
  ...L ? { right: window.innerWidth - k.right } : { left: k.left }
6003
6005
  });
6004
6006
  }
6005
- }, [a]), U(() => {
6007
+ }, [a]), J(() => {
6006
6008
  if (!a) return;
6007
6009
  const k = (L) => {
6008
6010
  g.current && !g.current.contains(L.target) && p.current && !p.current.contains(L.target) && m(!1);
@@ -6181,22 +6183,22 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6181
6183
  rowActions: C
6182
6184
  }) => {
6183
6185
  Wo();
6184
- const I = !ke(B) && b !== "scroll", v = !!(C != null && C.length), [M, N] = R(null);
6185
- U(() => {
6186
+ const I = !ke(B) && b !== "scroll", v = !!(C != null && C.length), [M, $] = R(null);
6187
+ J(() => {
6186
6188
  if (!M) return;
6187
- const x = () => N(null), F = setTimeout(() => document.addEventListener("click", x), 0);
6189
+ const x = () => $(null), F = setTimeout(() => document.addEventListener("click", x), 0);
6188
6190
  return () => {
6189
6191
  clearTimeout(F), document.removeEventListener("click", x);
6190
6192
  };
6191
6193
  }, [M]);
6192
- const [$, j] = R(
6194
+ const [N, P] = R(
6193
6195
  () => /* @__PURE__ */ new Set()
6194
- ), X = s !== void 0, [le, pe] = R({}), ne = s ?? le, he = (x) => {
6195
- c == null || c(x), X || pe(x);
6196
- }, Y = a !== void 0, [K, me] = R(
6196
+ ), G = s !== void 0, [oe, pe] = R({}), ne = s ?? oe, he = (x) => {
6197
+ c == null || c(x), G || pe(x);
6198
+ }, X = a !== void 0, [K, me] = R(
6197
6199
  m ?? null
6198
- ), te = Y ? a ?? null : K, de = !p, Fe = (x) => {
6199
- p == null || p(x), Y || me(x);
6200
+ ), te = X ? a ?? null : K, de = !p, Fe = (x) => {
6201
+ p == null || p(x), X || me(x);
6200
6202
  }, { headerGroups: Ze, leafColumns: ye, hasGroups: Ee } = ge(() => {
6201
6203
  var ve;
6202
6204
  const x = new Set(ne.hidden ?? []), F = (ee, fe) => ee.key ?? (typeof ee.accessor == "string" ? ee.accessor : `col-${fe}`), A = t.map((ee, fe) => {
@@ -6212,16 +6214,16 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6212
6214
  isGroup: !1,
6213
6215
  leaves: x.has(Me.key) ? [] : [Me]
6214
6216
  };
6215
- }).filter((ee) => ee.leaves.length > 0), G = A.some((ee) => ee.isGroup);
6217
+ }).filter((ee) => ee.leaves.length > 0), q = A.some((ee) => ee.isGroup);
6216
6218
  let ue = A.flatMap((ee) => ee.leaves);
6217
- if (!G && ((ve = ne.order) != null && ve.length)) {
6219
+ if (!q && ((ve = ne.order) != null && ve.length)) {
6218
6220
  const ee = new Map(ne.order.map((fe, Me) => [fe, Me]));
6219
6221
  ue = [...ue].sort(
6220
6222
  (fe, Me) => (ee.get(fe.key) ?? 1 / 0) - (ee.get(Me.key) ?? 1 / 0)
6221
6223
  );
6222
6224
  }
6223
- return { headerGroups: A, leafColumns: ue, hasGroups: G };
6224
- }, [t, ne]), Oe = ge(
6225
+ return { headerGroups: A, leafColumns: ue, hasGroups: q };
6226
+ }, [t, ne]), He = ge(
6225
6227
  () => new Map(ye.map((x, F) => [x.key, F])),
6226
6228
  [ye]
6227
6229
  ), xe = ye.map((x) => x.key).join("|"), $e = (x, F) => {
@@ -6233,30 +6235,30 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6233
6235
  if (!x) return r;
6234
6236
  const F = te.direction === "asc" ? 1 : -1;
6235
6237
  return [...r].sort(
6236
- (A, G) => zo($e(x.col, A), $e(x.col, G)) * F
6238
+ (A, q) => zo($e(x.col, A), $e(x.col, q)) * F
6237
6239
  );
6238
- }, [r, de, te, ye]), Ie = !Ee, et = !!l && Ie, [S, Z] = Hn(l ?? ""), _ = et ? S : void 0, W = se(null), [O, T] = R();
6240
+ }, [r, de, te, ye]), Ie = !Ee, et = !!l && Ie, [S, Z] = On(l ?? ""), j = et ? S : void 0, W = se(null), [H, T] = R();
6239
6241
  lt(() => {
6240
6242
  T(void 0);
6241
6243
  }, [xe]), lt(() => {
6242
- if (!Ie || O || !W.current) return;
6244
+ if (!Ie || H || !W.current) return;
6243
6245
  const x = W.current.querySelectorAll("th.sa-tl-leaf");
6244
6246
  T(Array.from(x).map((F) => F.offsetWidth));
6245
- }, [O, Ie]);
6246
- const [P, J] = R(0);
6247
+ }, [H, Ie]);
6248
+ const [_, Q] = R(0);
6247
6249
  lt(() => {
6248
6250
  if (!Ee || !W.current) return;
6249
6251
  const x = W.current.querySelector(":scope > tr");
6250
- x && J(x.offsetHeight);
6252
+ x && Q(x.offsetHeight);
6251
6253
  }, [Ee, xe]);
6252
6254
  const Ce = (x, F) => {
6253
- if ((_ == null ? void 0 : _[F]) != null) return _[F];
6255
+ if ((j == null ? void 0 : j[F]) != null) return j[F];
6254
6256
  if (x.width != null) return x.width;
6255
- if ((O == null ? void 0 : O[F]) != null) return O[F];
6256
- }, Le = (x, F) => typeof x.width == "number" ? x.width : O == null ? void 0 : O[F], je = ne.frozenKey && !Ee ? ye.findIndex((x) => x.key === ne.frozenKey) : -1, _e = (x) => x <= je, He = (x) => {
6257
- if (!O) return 0;
6257
+ if ((H == null ? void 0 : H[F]) != null) return H[F];
6258
+ }, Le = (x, F) => typeof x.width == "number" ? x.width : H == null ? void 0 : H[F], je = ne.frozenKey && !Ee ? ye.findIndex((x) => x.key === ne.frozenKey) : -1, _e = (x) => x <= je, Oe = (x) => {
6259
+ if (!H) return 0;
6258
6260
  let F = 0;
6259
- for (let A = 0; A < x; A++) F += O[A] ?? 0;
6261
+ for (let A = 0; A < x; A++) F += H[A] ?? 0;
6260
6262
  return F;
6261
6263
  }, tt = se(null), [rt, nt] = R("100vh");
6262
6264
  lt(() => {
@@ -6270,13 +6272,13 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6270
6272
  return x(), window.addEventListener("resize", x), () => window.removeEventListener("resize", x);
6271
6273
  }, [g]);
6272
6274
  const Pe = (x, F) => n ? n(x, F) : F, ct = (x, F, A) => x.render ? x.render(F, A, be) : Bo(F, x.accessor), st = ye.length + (v ? 1 : 0), at = ["80%", "55%", "70%", "45%", "90%", "60%"], vn = (x, F) => at[(x * 7 + F * 3) % at.length], Cn = (x, F) => /* @__PURE__ */ e(Ye, { height: 14, width: vn(x, F), borderRadius: "rounded-sm" }), wn = Array.from({ length: D }, (x, F) => /* @__PURE__ */ u(Te, { children: [
6273
- ye.map(({ col: A, key: G }, ue) => /* @__PURE__ */ e(
6275
+ ye.map(({ col: A, key: q }, ue) => /* @__PURE__ */ e(
6274
6276
  Re,
6275
6277
  {
6276
6278
  style: { textAlign: Ft(A.align) },
6277
6279
  children: Cn(F, ue)
6278
6280
  },
6279
- `sa-tl-sk-${F}-${G}`
6281
+ `sa-tl-sk-${F}-${q}`
6280
6282
  )),
6281
6283
  v && /* @__PURE__ */ e(Re, { style: { width: 1, padding: 0, border: "none" } })
6282
6284
  ] }, `sa-tl-sk-${F}`)), Dn = (x, F) => {
@@ -6301,10 +6303,10 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6301
6303
  paddingRight: 16,
6302
6304
  paddingLeft: 40,
6303
6305
  background: "linear-gradient(to right, transparent, var(--sa-background-primary-inverse, #f8f8f8) 40px)"
6304
- }, vt = (x, F, A, G) => {
6306
+ }, vt = (x, F, A, q) => {
6305
6307
  var Ge;
6306
- const ue = (Ge = x.disabled) == null ? void 0 : Ge.call(x, F), ve = (G == null ? void 0 : G.showLabel) ?? x.showLabel, ee = (G == null ? void 0 : G.size) ?? "xs", fe = /* @__PURE__ */ e(
6307
- H,
6308
+ const ue = (Ge = x.disabled) == null ? void 0 : Ge.call(x, F), ve = (q == null ? void 0 : q.showLabel) ?? x.showLabel, ee = (q == null ? void 0 : q.size) ?? "xs", fe = /* @__PURE__ */ e(
6309
+ O,
6308
6310
  {
6309
6311
  size: ee,
6310
6312
  variant: x.variant ?? "tertiary",
@@ -6328,13 +6330,13 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6328
6330
  style: kr,
6329
6331
  onClick: (ee) => ee.stopPropagation(),
6330
6332
  children: /* @__PURE__ */ e(We, { label: "Aksi lainnya", position: "top", children: /* @__PURE__ */ e(
6331
- H,
6333
+ O,
6332
6334
  {
6333
6335
  size: "xs",
6334
6336
  variant: "tertiary",
6335
6337
  onClick: (ee) => {
6336
6338
  const fe = ee.currentTarget.getBoundingClientRect();
6337
- N(ve ? null : {
6339
+ $(ve ? null : {
6338
6340
  rowKey: ue,
6339
6341
  top: fe.bottom + 4,
6340
6342
  right: window.innerWidth - fe.right
@@ -6349,12 +6351,12 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6349
6351
  return /* @__PURE__ */ e("div", { className: "sa-tl-row-actions", style: kr, children: A.map((ue) => /* @__PURE__ */ e(Ke.Fragment, { children: vt(ue, x, F) }, ue.key)) });
6350
6352
  }, Fn = (x, F) => {
6351
6353
  const A = bt(x);
6352
- return A.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 6, flexWrap: "wrap", paddingTop: 8, marginTop: 8, borderTop: kt }, children: A.map((G) => /* @__PURE__ */ e(Ke.Fragment, { children: vt(G, x, F, { showLabel: !0, size: "sm" }) }, G.key)) }) : null;
6354
+ return A.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 6, flexWrap: "wrap", paddingTop: 8, marginTop: 8, borderTop: kt }, children: A.map((q) => /* @__PURE__ */ e(Ke.Fragment, { children: vt(q, x, F, { showLabel: !0, size: "sm" }) }, q.key)) }) : null;
6353
6355
  }, En = (x, F) => {
6354
6356
  const A = bt(x);
6355
- return A.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 4, paddingRight: 8, flexShrink: 0 }, children: A.map((G) => /* @__PURE__ */ e(Ke.Fragment, { children: vt(G, x, F, { showLabel: !1 }) }, G.key)) }) : null;
6357
+ return A.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 4, paddingRight: 8, flexShrink: 0 }, children: A.map((q) => /* @__PURE__ */ e(Ke.Fragment, { children: vt(q, x, F, { showLabel: !1 }) }, q.key)) }) : null;
6356
6358
  }, $t = (x, F) => {
6357
- const { col: A, key: G } = x, ue = Oe.get(G) ?? 0, ve = _e(ue), ee = ve && ue === je, fe = (te == null ? void 0 : te.key) === G ? te.direction : null, Me = d && !A.disableMenu ? /* @__PURE__ */ e(
6359
+ const { col: A, key: q } = x, ue = He.get(q) ?? 0, ve = _e(ue), ee = ve && ue === je, fe = (te == null ? void 0 : te.key) === q ? te.direction : null, Me = d && !A.disableMenu ? /* @__PURE__ */ e(
6358
6360
  Lo,
6359
6361
  {
6360
6362
  active: !!fe || ve,
@@ -6362,10 +6364,10 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6362
6364
  canHide: !A.locked,
6363
6365
  sortDir: fe,
6364
6366
  frozen: ve,
6365
- onSort: (Gt) => Fe({ key: G, direction: Gt }),
6367
+ onSort: (Gt) => Fe({ key: q, direction: Gt }),
6366
6368
  onClearSort: () => Fe(null),
6367
- onToggleFreeze: () => kn(G),
6368
- onHide: () => Dn(G, A.locked)
6369
+ onToggleFreeze: () => kn(q),
6370
+ onHide: () => Dn(q, A.locked)
6369
6371
  }
6370
6372
  ) : null, Ge = A.align === "right", dt = A.align === "right" ? "flex-end" : A.align === "center" ? "center" : "flex-start", it = /* @__PURE__ */ u(
6371
6373
  "span",
@@ -6398,7 +6400,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6398
6400
  width: Ce(A, ue),
6399
6401
  position: "sticky",
6400
6402
  top: (F == null ? void 0 : F.top) ?? 0,
6401
- left: ve ? He(ue) : void 0,
6403
+ left: ve ? Oe(ue) : void 0,
6402
6404
  zIndex: ve ? 3 : 2,
6403
6405
  backgroundColor: mt,
6404
6406
  boxShadow: ee ? Jr : void 0
@@ -6422,12 +6424,12 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6422
6424
  }
6423
6425
  )
6424
6426
  },
6425
- `th-${G}`
6427
+ `th-${q}`
6426
6428
  );
6427
- }, jt = ye.filter((x) => !x.col.hideOnMobile), _t = jt.find((x) => x.col.primary) ?? jt[0], Ln = jt.filter((x) => x !== _t), Mn = (x) => j((F) => {
6429
+ }, jt = ye.filter((x) => !x.col.hideOnMobile), _t = jt.find((x) => x.col.primary) ?? jt[0], Ln = jt.filter((x) => x !== _t), Mn = (x) => P((F) => {
6428
6430
  const A = new Set(F);
6429
6431
  return A.has(x) ? A.delete(x) : A.add(x), A;
6430
- }), Sr = (x, F) => Ln.map(({ col: A, key: G }) => {
6432
+ }), Sr = (x, F) => Ln.map(({ col: A, key: q }) => {
6431
6433
  const ue = ct(A, x, F), ve = typeof ue == "string" || typeof ue == "number" ? /* @__PURE__ */ e(
6432
6434
  w,
6433
6435
  {
@@ -6473,7 +6475,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6473
6475
  ve
6474
6476
  ]
6475
6477
  },
6476
- G
6478
+ q
6477
6479
  );
6478
6480
  }), Fr = (x, F) => {
6479
6481
  const A = _t ? ct(_t.col, x, F) : null;
@@ -6516,7 +6518,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6516
6518
  children: L == null ? void 0 : L.content
6517
6519
  }
6518
6520
  ), Bn = z ? Wn : be.length === 0 ? Er : b === "expand" ? /* @__PURE__ */ e(f, { style: { display: "flex", flexDirection: "column" }, children: be.map((x, F) => {
6519
- const A = Pe(x, F), G = $.has(A);
6521
+ const A = Pe(x, F), q = N.has(A);
6520
6522
  return /* @__PURE__ */ u("div", { style: { borderBottom: kt }, children: [
6521
6523
  /* @__PURE__ */ u("div", { style: { display: "flex", alignItems: "center" }, children: [
6522
6524
  /* @__PURE__ */ u(
@@ -6544,7 +6546,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6544
6546
  /* @__PURE__ */ e(
6545
6547
  E,
6546
6548
  {
6547
- name: G ? "ChevronUp" : "ChevronDown",
6549
+ name: q ? "ChevronUp" : "ChevronDown",
6548
6550
  size: "sm",
6549
6551
  style: { flexShrink: 0 }
6550
6552
  }
@@ -6554,7 +6556,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6554
6556
  ),
6555
6557
  v && En(x, F)
6556
6558
  ] }),
6557
- G && /* @__PURE__ */ e(
6559
+ q && /* @__PURE__ */ e(
6558
6560
  "div",
6559
6561
  {
6560
6562
  style: {
@@ -6597,7 +6599,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6597
6599
  className: "sa-table-layout",
6598
6600
  fullWidth: !0,
6599
6601
  size: o,
6600
- resizable: i && Ie && O !== void 0,
6602
+ resizable: i && Ie && H !== void 0,
6601
6603
  onWidthsChange: et ? Z : void 0,
6602
6604
  children: [
6603
6605
  /* @__PURE__ */ e(tn, { ref: W, children: Ee ? /* @__PURE__ */ u(ie, { children: [
@@ -6637,7 +6639,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6637
6639
  )
6638
6640
  ] }),
6639
6641
  /* @__PURE__ */ e(Te, { children: Ze.flatMap(
6640
- (x) => x.isGroup ? x.leaves.map((F) => $t(F, { top: P })) : []
6642
+ (x) => x.isGroup ? x.leaves.map((F) => $t(F, { top: _ })) : []
6641
6643
  ) })
6642
6644
  ] }) : /* @__PURE__ */ u(Te, { children: [
6643
6645
  ye.map((x) => $t(x)),
@@ -6667,11 +6669,11 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6667
6669
  return /* @__PURE__ */ u(Ke.Fragment, { children: [
6668
6670
  A != null && A !== !1 && /* @__PURE__ */ e(Te, { children: /* @__PURE__ */ e(Re, { colSpan: st, style: { backgroundColor: mt }, children: A }) }),
6669
6671
  /* @__PURE__ */ u(Te, { children: [
6670
- ye.map(({ col: G, key: ue }, ve) => {
6672
+ ye.map(({ col: q, key: ue }, ve) => {
6671
6673
  var dt;
6672
- const ee = (dt = G.cellProps) == null ? void 0 : dt.call(G, x, F, be);
6674
+ const ee = (dt = q.cellProps) == null ? void 0 : dt.call(q, x, F, be);
6673
6675
  if (ee != null && ee.hidden) return null;
6674
- const fe = _e(ve), Me = fe && ve === je, Ge = ct(G, x, F);
6676
+ const fe = _e(ve), Me = fe && ve === je, Ge = ct(q, x, F);
6675
6677
  return /* @__PURE__ */ e(
6676
6678
  Re,
6677
6679
  {
@@ -6679,11 +6681,11 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6679
6681
  colSpan: ee == null ? void 0 : ee.colSpan,
6680
6682
  rowSpan: ee == null ? void 0 : ee.rowSpan,
6681
6683
  style: {
6682
- textAlign: Ft(G.align),
6683
- width: Ce(G, ve),
6684
- minWidth: G.minWidth,
6684
+ textAlign: Ft(q.align),
6685
+ width: Ce(q, ve),
6686
+ minWidth: q.minWidth,
6685
6687
  position: fe ? "sticky" : void 0,
6686
- left: fe ? He(ve) : void 0,
6688
+ left: fe ? Oe(ve) : void 0,
6687
6689
  zIndex: fe ? 1 : void 0,
6688
6690
  boxShadow: Me ? Jr : void 0
6689
6691
  },
@@ -6694,7 +6696,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6694
6696
  whiteSpace: "nowrap",
6695
6697
  overflow: "hidden",
6696
6698
  textOverflow: "ellipsis",
6697
- textAlign: Ft(G.align)
6699
+ textAlign: Ft(q.align)
6698
6700
  },
6699
6701
  children: Ge
6700
6702
  }
@@ -6759,7 +6761,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6759
6761
  scopeId: s,
6760
6762
  storage: c = fn
6761
6763
  } = t, { searchParams: d, setSearchParams: a, searchQueries: m } = Ve(), p = d.toString(), g = s ? xt.tableSort(s) : void 0, b = se(!1);
6762
- U(() => {
6764
+ J(() => {
6763
6765
  if (b.current || (b.current = !0, !g) || d.has(r) || d.has(n))
6764
6766
  return;
6765
6767
  const D = c.get(g);
@@ -6773,7 +6775,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6773
6775
  const D = d.get(r), C = d.get(n);
6774
6776
  return D && rr(C) ? { key: D, direction: C } : i;
6775
6777
  }, [p, r, n, i]);
6776
- U(() => {
6778
+ J(() => {
6777
6779
  if (!g) return;
6778
6780
  const D = d.get(r), C = d.get(n);
6779
6781
  D && rr(C) ? c.set(g, { key: D, direction: C }) : c.remove(g);
@@ -6781,7 +6783,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6781
6783
  const y = (l == null ? void 0 : l.sortBy) ?? "sortBy", k = (l == null ? void 0 : l.sortOrder) ?? "sortOrder", L = ge(() => B ? {
6782
6784
  [y]: B.key,
6783
6785
  [k]: B.direction
6784
- } : {}, [B, y, k]), z = Q(
6786
+ } : {}, [B, y, k]), z = Y(
6785
6787
  (D) => {
6786
6788
  const C = { ...m };
6787
6789
  D ? (C[r] = D.key, C[n] = D.direction) : (delete C[r], delete C[n]), delete C[o], a(C);
@@ -6792,7 +6794,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6792
6794
  }, br = ({
6793
6795
  of: t,
6794
6796
  render: r
6795
- }) => _n.toArray(t == null ? void 0 : t.map((n, o, i) => r(n, o, i))), oe = ({
6797
+ }) => _n.toArray(t == null ? void 0 : t.map((n, o, i) => r(n, o, i))), le = ({
6796
6798
  condition: t,
6797
6799
  fallback: r,
6798
6800
  children: n,
@@ -6825,7 +6827,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6825
6827
  ...i.containerProps,
6826
6828
  children: [
6827
6829
  i.title && /* @__PURE__ */ e(
6828
- oe,
6830
+ le,
6829
6831
  {
6830
6832
  condition: !!i.inputProps.required,
6831
6833
  fallback: /* @__PURE__ */ u(
@@ -6850,7 +6852,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6850
6852
  /* @__PURE__ */ u(ce, { direction: "row", gap: "xs", align: "center", children: [
6851
6853
  /* @__PURE__ */ e(ae, { fontSize: t, children: i.title }),
6852
6854
  /* @__PURE__ */ e(ae, { color: "error", fontSize: t, children: n }),
6853
- /* @__PURE__ */ e(oe, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
6855
+ /* @__PURE__ */ e(le, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
6854
6856
  We,
6855
6857
  {
6856
6858
  label: (d = i.tooltip) == null ? void 0 : d.label,
@@ -6870,7 +6872,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6870
6872
  }
6871
6873
  ) })
6872
6874
  ] }),
6873
- /* @__PURE__ */ e(oe, { condition: !!i.description, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: i.description }) })
6875
+ /* @__PURE__ */ e(le, { condition: !!i.description, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: i.description }) })
6874
6876
  ]
6875
6877
  }
6876
6878
  )
@@ -6910,7 +6912,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6910
6912
  onClick: i.onClickContainer,
6911
6913
  children: [
6912
6914
  i.title && /* @__PURE__ */ e(
6913
- oe,
6915
+ le,
6914
6916
  {
6915
6917
  condition: !!i.inputProps.required,
6916
6918
  fallback: /* @__PURE__ */ u(
@@ -6935,7 +6937,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6935
6937
  /* @__PURE__ */ u(ce, { direction: "row", gap: "xs", align: "center", children: [
6936
6938
  /* @__PURE__ */ e(ae, { fontSize: t, children: i.title }),
6937
6939
  /* @__PURE__ */ e(ae, { color: "error", fontSize: t, children: n }),
6938
- /* @__PURE__ */ e(oe, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
6940
+ /* @__PURE__ */ e(le, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
6939
6941
  We,
6940
6942
  {
6941
6943
  label: (d = i.tooltip) == null ? void 0 : d.label,
@@ -6955,7 +6957,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
6955
6957
  }
6956
6958
  ) })
6957
6959
  ] }),
6958
- /* @__PURE__ */ e(oe, { condition: !!i.description, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: i.description }) })
6960
+ /* @__PURE__ */ e(le, { condition: !!i.description, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: i.description }) })
6959
6961
  ]
6960
6962
  }
6961
6963
  )
@@ -7057,7 +7059,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
7057
7059
  function hc(t) {
7058
7060
  return t.split(" ").map((r) => r[0]).join("").slice(0, 2).toUpperCase();
7059
7061
  }
7060
- const Oo = (t) => {
7062
+ const Ho = (t) => {
7061
7063
  const r = {
7062
7064
  day: "2-digit",
7063
7065
  month: "short",
@@ -7111,7 +7113,7 @@ function pc(t) {
7111
7113
  const n = r.getFullYear(), o = String(r.getMonth() + 1).padStart(2, "0"), i = String(r.getDate()).padStart(2, "0");
7112
7114
  return `${n}-${o}-${i}`;
7113
7115
  }
7114
- const Ho = "sa-admin", qe = (t) => `var(--${Ho}-${t})`, yc = {
7116
+ const Oo = "sa-admin", qe = (t) => `var(--${Oo}-${t})`, yc = {
7115
7117
  base: {
7116
7118
  borderColor: qe("base-border-color"),
7117
7119
  textColor: qe("base-text-color"),
@@ -7279,12 +7281,12 @@ const Po = (t) => {
7279
7281
  ] }) : /* @__PURE__ */ u(ce, { direction: "row", gap: "xs", align: "center", children: [
7280
7282
  /* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", children: jo(((n = t.fileSelected) == null ? void 0 : n.size.toString()) || "100000") }),
7281
7283
  /* @__PURE__ */ e(E, { name: "Dot", size: "xs" }),
7282
- /* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children: Oo(/* @__PURE__ */ new Date()) })
7284
+ /* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children: Ho(/* @__PURE__ */ new Date()) })
7283
7285
  ] })
7284
7286
  ] })
7285
7287
  ] }),
7286
7288
  /* @__PURE__ */ e(
7287
- H,
7289
+ O,
7288
7290
  {
7289
7291
  size: "xs",
7290
7292
  variant: "tertiary",
@@ -7412,7 +7414,7 @@ const Po = (t) => {
7412
7414
  ...i.containerProps,
7413
7415
  children: [
7414
7416
  i.title && /* @__PURE__ */ e(
7415
- oe,
7417
+ le,
7416
7418
  {
7417
7419
  condition: !!i.inputProps.required,
7418
7420
  fallback: /* @__PURE__ */ u(
@@ -7437,7 +7439,7 @@ const Po = (t) => {
7437
7439
  /* @__PURE__ */ u(ce, { direction: "row", gap: "xs", align: "center", children: [
7438
7440
  /* @__PURE__ */ e(ae, { fontSize: t, children: i.title }),
7439
7441
  /* @__PURE__ */ e(ae, { color: "error", fontSize: t, children: n }),
7440
- /* @__PURE__ */ e(oe, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
7442
+ /* @__PURE__ */ e(le, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
7441
7443
  We,
7442
7444
  {
7443
7445
  label: (d = i.tooltip) == null ? void 0 : d.label,
@@ -7457,7 +7459,7 @@ const Po = (t) => {
7457
7459
  }
7458
7460
  ) })
7459
7461
  ] }),
7460
- /* @__PURE__ */ e(oe, { condition: !!i.description, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: i.description }) })
7462
+ /* @__PURE__ */ e(le, { condition: !!i.description, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: i.description }) })
7461
7463
  ]
7462
7464
  }
7463
7465
  )
@@ -7494,7 +7496,7 @@ const Po = (t) => {
7494
7496
  ...l.containerProps,
7495
7497
  children: [
7496
7498
  l.title && /* @__PURE__ */ e(
7497
- oe,
7499
+ le,
7498
7500
  {
7499
7501
  condition: !!i,
7500
7502
  fallback: /* @__PURE__ */ u(
@@ -7519,7 +7521,7 @@ const Po = (t) => {
7519
7521
  /* @__PURE__ */ u(ce, { direction: "row", gap: "xs", align: "center", children: [
7520
7522
  /* @__PURE__ */ e(ae, { fontSize: t, children: l.title }),
7521
7523
  /* @__PURE__ */ e(ae, { color: "error", fontSize: t, children: n }),
7522
- /* @__PURE__ */ e(oe, { condition: !!((d = l.tooltip) != null && d.label), children: /* @__PURE__ */ e(
7524
+ /* @__PURE__ */ e(le, { condition: !!((d = l.tooltip) != null && d.label), children: /* @__PURE__ */ e(
7523
7525
  We,
7524
7526
  {
7525
7527
  label: (a = l.tooltip) == null ? void 0 : a.label,
@@ -7539,7 +7541,7 @@ const Po = (t) => {
7539
7541
  }
7540
7542
  ) })
7541
7543
  ] }),
7542
- /* @__PURE__ */ e(oe, { condition: !!l.description, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: l.description }) })
7544
+ /* @__PURE__ */ e(le, { condition: !!l.description, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: l.description }) })
7543
7545
  ]
7544
7546
  }
7545
7547
  )
@@ -7613,7 +7615,7 @@ const Po = (t) => {
7613
7615
  gap: t === "horizontal-inline" || t === "horizontal-block" ? "spacing-96" : "sm",
7614
7616
  direction: t === "horizontal-inline" || t === "horizontal-block" ? "row" : "column",
7615
7617
  children: [
7616
- /* @__PURE__ */ e(oe, { condition: !!o.description || !!o.title, children: /* @__PURE__ */ u(
7618
+ /* @__PURE__ */ e(le, { condition: !!o.description || !!o.title, children: /* @__PURE__ */ u(
7617
7619
  f,
7618
7620
  {
7619
7621
  direction: "column",
@@ -7621,7 +7623,7 @@ const Po = (t) => {
7621
7623
  fullWidth: n,
7622
7624
  children: [
7623
7625
  o.title && /* @__PURE__ */ e(ae, { children: o.title }),
7624
- /* @__PURE__ */ e(oe, { condition: !!o.description, children: /* @__PURE__ */ e(w, { color: "gray-500", children: o.description }) })
7626
+ /* @__PURE__ */ e(le, { condition: !!o.description, children: /* @__PURE__ */ e(w, { color: "gray-500", children: o.description }) })
7625
7627
  ]
7626
7628
  }
7627
7629
  ) }),
@@ -7694,7 +7696,7 @@ const Po = (t) => {
7694
7696
  ...i.containerProps,
7695
7697
  children: [
7696
7698
  i.title && /* @__PURE__ */ e(
7697
- oe,
7699
+ le,
7698
7700
  {
7699
7701
  condition: !!i.inputProps.required,
7700
7702
  fallback: /* @__PURE__ */ u(
@@ -7719,7 +7721,7 @@ const Po = (t) => {
7719
7721
  /* @__PURE__ */ u(ce, { direction: "row", gap: "xs", align: "center", children: [
7720
7722
  /* @__PURE__ */ e(ae, { fontSize: t, children: i.title }),
7721
7723
  /* @__PURE__ */ e(ae, { color: "error", fontSize: t, children: n }),
7722
- /* @__PURE__ */ e(oe, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
7724
+ /* @__PURE__ */ e(le, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
7723
7725
  We,
7724
7726
  {
7725
7727
  label: (d = i.tooltip) == null ? void 0 : d.label,
@@ -7739,7 +7741,7 @@ const Po = (t) => {
7739
7741
  }
7740
7742
  ) })
7741
7743
  ] }),
7742
- /* @__PURE__ */ e(oe, { condition: !!i.description, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: i.description }) })
7744
+ /* @__PURE__ */ e(le, { condition: !!i.description, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: i.description }) })
7743
7745
  ]
7744
7746
  }
7745
7747
  )
@@ -7778,7 +7780,7 @@ const Po = (t) => {
7778
7780
  ...l.containerProps,
7779
7781
  children: [
7780
7782
  l.title && /* @__PURE__ */ e(
7781
- oe,
7783
+ le,
7782
7784
  {
7783
7785
  condition: o,
7784
7786
  fallback: /* @__PURE__ */ u(
@@ -7803,7 +7805,7 @@ const Po = (t) => {
7803
7805
  /* @__PURE__ */ u(ce, { direction: "row", gap: "xs", align: "center", children: [
7804
7806
  /* @__PURE__ */ e(ae, { fontSize: t, children: l.title }),
7805
7807
  /* @__PURE__ */ e(ae, { color: "error", fontSize: t, children: n }),
7806
- /* @__PURE__ */ e(oe, { condition: !!((c = l.tooltip) != null && c.label), children: /* @__PURE__ */ e(
7808
+ /* @__PURE__ */ e(le, { condition: !!((c = l.tooltip) != null && c.label), children: /* @__PURE__ */ e(
7807
7809
  We,
7808
7810
  {
7809
7811
  label: (d = l.tooltip) == null ? void 0 : d.label,
@@ -7823,7 +7825,7 @@ const Po = (t) => {
7823
7825
  }
7824
7826
  ) })
7825
7827
  ] }),
7826
- /* @__PURE__ */ e(oe, { condition: !!l.titleDescription, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: l.titleDescription }) })
7828
+ /* @__PURE__ */ e(le, { condition: !!l.titleDescription, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: l.titleDescription }) })
7827
7829
  ]
7828
7830
  }
7829
7831
  )
@@ -7872,7 +7874,7 @@ const Po = (t) => {
7872
7874
  }
7873
7875
  };
7874
7876
  return /* @__PURE__ */ e(
7875
- H,
7877
+ O,
7876
7878
  {
7877
7879
  fullWidth: !0,
7878
7880
  disabled: n.disabled,
@@ -7912,7 +7914,7 @@ const Po = (t) => {
7912
7914
  onClick: i.onClickContainer,
7913
7915
  children: [
7914
7916
  i.title && /* @__PURE__ */ e(
7915
- oe,
7917
+ le,
7916
7918
  {
7917
7919
  condition: !!i.inputProps.required,
7918
7920
  fallback: /* @__PURE__ */ u(
@@ -7937,7 +7939,7 @@ const Po = (t) => {
7937
7939
  /* @__PURE__ */ u(ce, { direction: "row", gap: "xs", align: "center", children: [
7938
7940
  /* @__PURE__ */ e(ae, { fontSize: t, children: i.title }),
7939
7941
  /* @__PURE__ */ e(ae, { color: "error", fontSize: t, children: n }),
7940
- /* @__PURE__ */ e(oe, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
7942
+ /* @__PURE__ */ e(le, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
7941
7943
  We,
7942
7944
  {
7943
7945
  label: (d = i.tooltip) == null ? void 0 : d.label,
@@ -7957,7 +7959,7 @@ const Po = (t) => {
7957
7959
  }
7958
7960
  ) })
7959
7961
  ] }),
7960
- /* @__PURE__ */ e(oe, { condition: !!i.description, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: i.description }) })
7962
+ /* @__PURE__ */ e(le, { condition: !!i.description, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: i.description }) })
7961
7963
  ]
7962
7964
  }
7963
7965
  )
@@ -8037,48 +8039,48 @@ const Yr = {
8037
8039
  onError: a
8038
8040
  }, m) => {
8039
8041
  const p = ke("md"), [g, b] = R(!1), [B, y] = R(null), [k, L] = R(!1), [z, D] = R({ x: 0, y: 0 }), [C, V] = R(1), [I, v] = R(null);
8040
- U(() => {
8042
+ J(() => {
8041
8043
  r === null && i(null);
8042
8044
  }, [r]);
8043
- const M = Q(
8044
- (Y, K) => {
8045
+ const M = Y(
8046
+ (X, K) => {
8045
8047
  v(K);
8046
8048
  },
8047
8049
  []
8048
- ), N = (Y) => {
8050
+ ), $ = (X) => {
8049
8051
  var te;
8050
- const K = (te = Y.target.files) == null ? void 0 : te[0];
8052
+ const K = (te = X.target.files) == null ? void 0 : te[0];
8051
8053
  if (!K) return;
8052
8054
  const me = new FileReader();
8053
8055
  me.onload = () => {
8054
8056
  y(me.result), L(!0);
8055
8057
  }, me.readAsDataURL(K);
8056
- }, $ = async () => {
8058
+ }, N = async () => {
8057
8059
  if (!(!B || !I))
8058
8060
  try {
8059
- const Y = await el(B, I);
8060
- if (d && Y.size > d * 1024 * 1024) {
8061
+ const X = await el(B, I);
8062
+ if (d && X.size > d * 1024 * 1024) {
8061
8063
  a == null || a(`Ukuran file maksimal ${d}MB`);
8062
8064
  return;
8063
8065
  }
8064
- t == null || t(Y);
8065
- const K = URL.createObjectURL(Y);
8066
- i(K, Y), L(!1);
8066
+ t == null || t(X);
8067
+ const K = URL.createObjectURL(X);
8068
+ i(K, X), L(!1);
8067
8069
  } catch {
8068
8070
  a == null || a("Gagal memproses gambar");
8069
8071
  }
8070
- }, j = se(null), X = () => {
8071
- j.current && j.current.click();
8072
+ }, P = se(null), G = () => {
8073
+ P.current && P.current.click();
8072
8074
  };
8073
8075
  Pn(m, () => ({
8074
8076
  openFileDialog: () => {
8075
- var Y;
8076
- (Y = j.current) == null || Y.click();
8077
+ var X;
8078
+ (X = P.current) == null || X.click();
8077
8079
  }
8078
8080
  }));
8079
- const le = parseInt(l, 10), pe = Yr[s];
8081
+ const oe = parseInt(l, 10), pe = Yr[s];
8080
8082
  let ne, he;
8081
- return pe >= 1 ? (he = le, ne = le * pe) : (ne = le, he = le / pe), /* @__PURE__ */ u(
8083
+ return pe >= 1 ? (he = oe, ne = oe * pe) : (ne = oe, he = oe / pe), /* @__PURE__ */ u(
8082
8084
  f,
8083
8085
  {
8084
8086
  direction: "column",
@@ -8148,15 +8150,15 @@ const Yr = {
8148
8150
  opacity: g ? 1 : 0,
8149
8151
  transition: "opacity 0.3s ease-in-out"
8150
8152
  },
8151
- onClick: X,
8153
+ onClick: G,
8152
8154
  children: [
8153
8155
  /* @__PURE__ */ e(
8154
8156
  "input",
8155
8157
  {
8156
- ref: j,
8158
+ ref: P,
8157
8159
  type: "file",
8158
8160
  accept: "image/*",
8159
- onChange: N,
8161
+ onChange: $,
8160
8162
  disabled: n,
8161
8163
  style: { display: "none" }
8162
8164
  }
@@ -8169,7 +8171,7 @@ const Yr = {
8169
8171
  style: { color: "var(--sa-background-primary, #ffffff)" }
8170
8172
  }
8171
8173
  ),
8172
- /* @__PURE__ */ e(oe, { condition: l.toNumber() > 80, children: /* @__PURE__ */ e(
8174
+ /* @__PURE__ */ e(le, { condition: l.toNumber() > 80, children: /* @__PURE__ */ e(
8173
8175
  w,
8174
8176
  {
8175
8177
  color: "gray-50",
@@ -8237,7 +8239,7 @@ const Yr = {
8237
8239
  display: "flex",
8238
8240
  flexDirection: "column"
8239
8241
  },
8240
- onClick: (Y) => Y.stopPropagation(),
8242
+ onClick: (X) => X.stopPropagation(),
8241
8243
  children: [
8242
8244
  /* @__PURE__ */ e(
8243
8245
  "div",
@@ -8276,8 +8278,8 @@ const Yr = {
8276
8278
  borderTop: "1px solid var(--sa-border-subtle)"
8277
8279
  },
8278
8280
  children: [
8279
- /* @__PURE__ */ e(H, { size: "sm", secondary: !0, onClick: () => L(!1), children: "Cancel" }),
8280
- /* @__PURE__ */ e(H, { size: "sm", primary: !0, onClick: $, children: "Crop" })
8281
+ /* @__PURE__ */ e(O, { size: "sm", secondary: !0, onClick: () => L(!1), children: "Cancel" }),
8282
+ /* @__PURE__ */ e(O, { size: "sm", primary: !0, onClick: N, children: "Crop" })
8281
8283
  ]
8282
8284
  }
8283
8285
  )
@@ -8310,7 +8312,7 @@ const Yr = {
8310
8312
  ...l.containerProps,
8311
8313
  children: [
8312
8314
  l.title && /* @__PURE__ */ e(
8313
- oe,
8315
+ le,
8314
8316
  {
8315
8317
  condition: !!i,
8316
8318
  fallback: /* @__PURE__ */ u(
@@ -8335,7 +8337,7 @@ const Yr = {
8335
8337
  /* @__PURE__ */ u(ce, { direction: "row", gap: "xs", align: "center", children: [
8336
8338
  /* @__PURE__ */ e(ae, { fontSize: t, children: l.title }),
8337
8339
  /* @__PURE__ */ e(ae, { color: "error", fontSize: t, children: n }),
8338
- /* @__PURE__ */ e(oe, { condition: !!((d = l.tooltip) != null && d.label), children: /* @__PURE__ */ e(
8340
+ /* @__PURE__ */ e(le, { condition: !!((d = l.tooltip) != null && d.label), children: /* @__PURE__ */ e(
8339
8341
  We,
8340
8342
  {
8341
8343
  label: (a = l.tooltip) == null ? void 0 : a.label,
@@ -8355,7 +8357,7 @@ const Yr = {
8355
8357
  }
8356
8358
  ) })
8357
8359
  ] }),
8358
- /* @__PURE__ */ e(oe, { condition: !!l.description, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: l.description }) })
8360
+ /* @__PURE__ */ e(le, { condition: !!l.description, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: l.description }) })
8359
8361
  ]
8360
8362
  }
8361
8363
  )
@@ -8385,7 +8387,7 @@ const Yr = {
8385
8387
  ...i.containerProps,
8386
8388
  children: [
8387
8389
  i.title && /* @__PURE__ */ e(
8388
- oe,
8390
+ le,
8389
8391
  {
8390
8392
  condition: !!i.inputProps.required,
8391
8393
  fallback: /* @__PURE__ */ u(
@@ -8410,7 +8412,7 @@ const Yr = {
8410
8412
  /* @__PURE__ */ u(ce, { direction: "row", gap: "xs", align: "center", children: [
8411
8413
  /* @__PURE__ */ e(ae, { fontSize: t, children: i.title }),
8412
8414
  /* @__PURE__ */ e(ae, { color: "error", fontSize: t, children: n }),
8413
- /* @__PURE__ */ e(oe, { condition: !!((s = i.tooltip) != null && s.label), children: /* @__PURE__ */ e(
8415
+ /* @__PURE__ */ e(le, { condition: !!((s = i.tooltip) != null && s.label), children: /* @__PURE__ */ e(
8414
8416
  We,
8415
8417
  {
8416
8418
  label: (c = i.tooltip) == null ? void 0 : c.label,
@@ -8430,7 +8432,7 @@ const Yr = {
8430
8432
  }
8431
8433
  ) })
8432
8434
  ] }),
8433
- /* @__PURE__ */ e(oe, { condition: !!i.description, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: i.description }) })
8435
+ /* @__PURE__ */ e(le, { condition: !!i.description, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: i.description }) })
8434
8436
  ]
8435
8437
  }
8436
8438
  )
@@ -8450,10 +8452,10 @@ const Yr = {
8450
8452
  }) => {
8451
8453
  var m;
8452
8454
  const [s, c] = R([]);
8453
- U(() => {
8455
+ J(() => {
8454
8456
  t && c([...t.map((p) => ({ id: p.id, isActive: p.isActive }))]);
8455
8457
  }, [t]);
8456
- const d = (m = s.find((p) => p.id === r)) == null ? void 0 : m.isActive, a = Q(() => {
8458
+ const d = (m = s.find((p) => p.id === r)) == null ? void 0 : m.isActive, a = Y(() => {
8457
8459
  c(
8458
8460
  (p) => p.map((g) => g.id === r ? { ...g, isActive: !g.isActive } : g)
8459
8461
  ), n && n(!d);
@@ -8496,7 +8498,7 @@ const Yr = {
8496
8498
  }, i = () => {
8497
8499
  window.scrollTo({ top: 0, behavior: "smooth" });
8498
8500
  };
8499
- return U(() => (window.addEventListener("scroll", o), () => {
8501
+ return J(() => (window.addEventListener("scroll", o), () => {
8500
8502
  window.removeEventListener("scroll", o);
8501
8503
  }), []), /* @__PURE__ */ e(
8502
8504
  f,
@@ -8519,7 +8521,7 @@ const Yr = {
8519
8521
  transition: "transform 0.2s ease-in-out"
8520
8522
  },
8521
8523
  children: /* @__PURE__ */ e(
8522
- H,
8524
+ O,
8523
8525
  {
8524
8526
  secondary: !0,
8525
8527
  size: "xs",
@@ -8792,9 +8794,9 @@ const Rc = ({
8792
8794
  const m = () => {
8793
8795
  switch (o) {
8794
8796
  case "primary":
8795
- return /* @__PURE__ */ e(ie, { children: l ? /* @__PURE__ */ e(H, { primary: !0, iconLeft: l, onClick: n, children: d || t }) : /* @__PURE__ */ e(H, { primary: !0, onClick: n, children: d || t }) });
8797
+ return /* @__PURE__ */ e(ie, { children: l ? /* @__PURE__ */ e(O, { primary: !0, iconLeft: l, onClick: n, children: d || t }) : /* @__PURE__ */ e(O, { primary: !0, onClick: n, children: d || t }) });
8796
8798
  case "secondary":
8797
- return /* @__PURE__ */ e(ie, { children: l ? /* @__PURE__ */ e(H, { secondary: !0, iconLeft: l, onClick: n, children: i ? /* @__PURE__ */ e(
8799
+ return /* @__PURE__ */ e(ie, { children: l ? /* @__PURE__ */ e(O, { secondary: !0, iconLeft: l, onClick: n, children: i ? /* @__PURE__ */ e(
8798
8800
  w,
8799
8801
  {
8800
8802
  fontFamily: "Poppins",
@@ -8803,11 +8805,11 @@ const Rc = ({
8803
8805
  style: { color: "var(--sa-background-success, #28ac6e)" },
8804
8806
  children: d || t
8805
8807
  }
8806
- ) : t }) : /* @__PURE__ */ e(H, { secondary: !0, onClick: n, children: d || t }) });
8808
+ ) : t }) : /* @__PURE__ */ e(O, { secondary: !0, onClick: n, children: d || t }) });
8807
8809
  case "success":
8808
- return /* @__PURE__ */ e(ie, { children: l ? /* @__PURE__ */ e(H, { success: !0, iconLeft: l, onClick: n, children: d || t }) : /* @__PURE__ */ e(H, { success: !0, onClick: n, children: d || t }) });
8810
+ return /* @__PURE__ */ e(ie, { children: l ? /* @__PURE__ */ e(O, { success: !0, iconLeft: l, onClick: n, children: d || t }) : /* @__PURE__ */ e(O, { success: !0, onClick: n, children: d || t }) });
8809
8811
  default:
8810
- return /* @__PURE__ */ e(ie, { children: l ? /* @__PURE__ */ e(H, { primary: !0, iconLeft: l, onClick: n, children: d || t }) : /* @__PURE__ */ e(H, { primary: !0, onClick: n, children: d || t }) });
8812
+ return /* @__PURE__ */ e(ie, { children: l ? /* @__PURE__ */ e(O, { primary: !0, iconLeft: l, onClick: n, children: d || t }) : /* @__PURE__ */ e(O, { primary: !0, onClick: n, children: d || t }) });
8811
8813
  }
8812
8814
  };
8813
8815
  return /* @__PURE__ */ u(
@@ -8838,7 +8840,7 @@ const Rc = ({
8838
8840
  ]
8839
8841
  }
8840
8842
  );
8841
- }, q = {
8843
+ }, U = {
8842
8844
  c001A72: "#001A72",
8843
8845
  c64B5F6: "#64B5F6",
8844
8846
  c98B4CB: "#98B4CB",
@@ -8862,23 +8864,23 @@ function cl({ width: t, height: r }) {
8862
8864
  "path",
8863
8865
  {
8864
8866
  d: "M32.4375 254.5H612.437",
8865
- stroke: q.c64B5F6,
8867
+ stroke: U.c64B5F6,
8866
8868
  strokeWidth: "5",
8867
8869
  strokeLinecap: "round"
8868
8870
  }
8869
8871
  ),
8870
- /* @__PURE__ */ e("rect", { x: "216.562", y: "45.5605", width: "55", height: "20", fill: q.cD6EBFD }),
8871
- /* @__PURE__ */ e("rect", { x: "14.4375", y: "89.7803", width: "46", height: "20", fill: q.cD6EBFD }),
8872
- /* @__PURE__ */ e("rect", { x: "0.4375", y: "111.78", width: "46", height: "20", fill: q.cD6EBFD }),
8873
- /* @__PURE__ */ e("rect", { x: "0.4375", y: "67.7803", width: "46", height: "20", fill: q.cD6EBFD }),
8874
- /* @__PURE__ */ e("rect", { x: "344.312", y: "0.5", width: "55", height: "20", fill: q.cD6EBFD }),
8875
- /* @__PURE__ */ e("rect", { x: "549.562", y: "86.7803", width: "55", height: "20", fill: q.cD6EBFD }),
8876
- /* @__PURE__ */ e("rect", { x: "566.562", y: "64.7803", width: "55", height: "20", fill: q.cD6EBFD }),
8872
+ /* @__PURE__ */ e("rect", { x: "216.562", y: "45.5605", width: "55", height: "20", fill: U.cD6EBFD }),
8873
+ /* @__PURE__ */ e("rect", { x: "14.4375", y: "89.7803", width: "46", height: "20", fill: U.cD6EBFD }),
8874
+ /* @__PURE__ */ e("rect", { x: "0.4375", y: "111.78", width: "46", height: "20", fill: U.cD6EBFD }),
8875
+ /* @__PURE__ */ e("rect", { x: "0.4375", y: "67.7803", width: "46", height: "20", fill: U.cD6EBFD }),
8876
+ /* @__PURE__ */ e("rect", { x: "344.312", y: "0.5", width: "55", height: "20", fill: U.cD6EBFD }),
8877
+ /* @__PURE__ */ e("rect", { x: "549.562", y: "86.7803", width: "55", height: "20", fill: U.cD6EBFD }),
8878
+ /* @__PURE__ */ e("rect", { x: "566.562", y: "64.7803", width: "55", height: "20", fill: U.cD6EBFD }),
8877
8879
  /* @__PURE__ */ e(
8878
8880
  "path",
8879
8881
  {
8880
8882
  d: "M233.438 165.217C233.438 132.764 239.035 107.198 250.231 88.5189C261.596 69.8396 279.832 60.5 304.938 60.5C330.043 60.5 348.194 69.8396 359.389 88.5189C370.755 107.198 376.438 132.764 376.438 165.217C376.438 198.047 370.755 223.802 359.389 242.481C348.194 261.16 330.043 270.5 304.938 270.5C279.832 270.5 261.596 261.16 250.231 242.481C239.035 223.802 233.438 198.047 233.438 165.217ZM333.69 165.217C333.69 146.16 331.824 131.538 328.092 121.349C324.36 110.972 316.642 105.783 304.938 105.783C293.233 105.783 285.515 110.972 281.783 121.349C278.051 131.538 276.185 146.16 276.185 165.217C276.185 178.047 276.863 188.708 278.22 197.198C279.577 205.5 282.292 212.292 286.363 217.575C290.604 222.67 296.795 225.217 304.938 225.217C313.08 225.217 319.187 222.67 323.258 217.575C327.499 212.292 330.298 205.5 331.655 197.198C333.012 188.708 333.69 178.047 333.69 165.217Z",
8881
- fill: q.cD0E5F7
8883
+ fill: U.cD0E5F7
8882
8884
  }
8883
8885
  ),
8884
8886
  /* @__PURE__ */ e(
@@ -8887,7 +8889,7 @@ function cl({ width: t, height: r }) {
8887
8889
  fillRule: "evenodd",
8888
8890
  clipRule: "evenodd",
8889
8891
  d: "M50.4375 235.124V194.28L138.96 60.5H192.466V191.32H215.438V235.124H192.466V249.5H144.563V235.124H50.4375ZM100.862 191.32L147.925 116.143V191.32H100.862Z",
8890
- fill: q.cBBDEFB,
8892
+ fill: U.cBBDEFB,
8891
8893
  fillOpacity: "0.6"
8892
8894
  }
8893
8895
  ),
@@ -8897,41 +8899,41 @@ function cl({ width: t, height: r }) {
8897
8899
  fillRule: "evenodd",
8898
8900
  clipRule: "evenodd",
8899
8901
  d: "M394.438 235.124V194.28L482.96 60.5H536.466V191.32H559.438V235.124H536.466V249.5H488.563V235.124H394.438ZM444.862 191.32L491.925 116.143V191.32H444.862Z",
8900
- fill: q.cBBDEFB,
8902
+ fill: U.cBBDEFB,
8901
8903
  fillOpacity: "0.6"
8902
8904
  }
8903
8905
  ),
8904
- /* @__PURE__ */ e("path", { d: "M349.472 171.5H261.64V186.396H349.472V171.5Z", fill: q.c98B4CB }),
8905
- /* @__PURE__ */ e("path", { d: "M261.64 171.5L244.719 186.396H261.64V171.5Z", fill: q.c98B4CB }),
8906
+ /* @__PURE__ */ e("path", { d: "M349.472 171.5H261.64V186.396H349.472V171.5Z", fill: U.c98B4CB }),
8907
+ /* @__PURE__ */ e("path", { d: "M261.64 171.5L244.719 186.396H261.64V171.5Z", fill: U.c98B4CB }),
8906
8908
  /* @__PURE__ */ e(
8907
8909
  "path",
8908
8910
  {
8909
8911
  d: "M363.574 186.396L349.472 171.5V186.396H363.574Z",
8910
- fill: q.c98B4CB
8912
+ fill: U.c98B4CB
8911
8913
  }
8912
8914
  ),
8913
8915
  /* @__PURE__ */ e(
8914
8916
  "path",
8915
8917
  {
8916
8918
  d: "M244.719 200.89V264.5H363.574V200.89M244.719 200.89H233.438L244.719 186.396M244.719 200.89H363.574M363.574 200.89H372.437L363.574 186.396M244.719 186.396L261.64 171.5M244.719 186.396H261.64M363.574 186.396L349.472 171.5M363.574 186.396H349.472M261.64 171.5H349.472M261.64 171.5V186.396M349.472 171.5V186.396M349.472 186.396H261.64",
8917
- stroke: q.c000000,
8919
+ stroke: U.c000000,
8918
8920
  strokeWidth: "2"
8919
8921
  }
8920
8922
  ),
8921
- /* @__PURE__ */ e("rect", { x: "246.438", y: "202.5", width: "116", height: "60", fill: q.cFFFFFF }),
8923
+ /* @__PURE__ */ e("rect", { x: "246.438", y: "202.5", width: "116", height: "60", fill: U.cFFFFFF }),
8922
8924
  /* @__PURE__ */ e(
8923
8925
  "path",
8924
8926
  {
8925
8927
  d: "M245.536 187.5H362.959L369.438 198.5H237.438L245.536 187.5Z",
8926
- fill: q.cFFFFFF
8928
+ fill: U.cFFFFFF
8927
8929
  }
8928
8930
  ),
8929
8931
  /* @__PURE__ */ e(
8930
8932
  "path",
8931
8933
  {
8932
8934
  d: "M332.438 129.846C332.438 141.175 329.183 152.403 323.949 160.772C318.699 169.168 311.592 174.5 303.938 174.5C296.283 174.5 289.176 169.168 283.926 160.772C278.692 152.403 275.438 141.175 275.438 129.846C275.438 118.458 277.838 109.628 282.543 103.663C287.216 97.7387 294.274 94.5 303.938 94.5C313.601 94.5 320.659 97.7387 325.332 103.663C330.037 109.628 332.438 118.458 332.438 129.846Z",
8933
- fill: q.cFFFFFF,
8934
- stroke: q.c000000,
8935
+ fill: U.cFFFFFF,
8936
+ stroke: U.c000000,
8935
8937
  strokeWidth: "2"
8936
8938
  }
8937
8939
  ),
@@ -8939,7 +8941,7 @@ function cl({ width: t, height: r }) {
8939
8941
  "path",
8940
8942
  {
8941
8943
  d: "M281.438 145.5C284.032 154.136 285.762 158.682 290.951 164.591M292.681 166.409C293.624 167.647 295.708 169.591 297.438 170.5",
8942
- stroke: q.c000000,
8944
+ stroke: U.c000000,
8943
8945
  strokeWidth: "2",
8944
8946
  strokeLinecap: "round",
8945
8947
  strokeLinejoin: "round"
@@ -8949,7 +8951,7 @@ function cl({ width: t, height: r }) {
8949
8951
  "path",
8950
8952
  {
8951
8953
  d: "M304.438 175C299.54 176.339 297.208 177.876 293.938 182.5M304.438 175C301.183 178.041 299.537 178.883 299.438 182.5M304.438 175C308.173 177.107 309.635 178.834 311.438 182.5",
8952
- stroke: q.c000000,
8954
+ stroke: U.c000000,
8953
8955
  strokeWidth: "2",
8954
8956
  strokeLinecap: "round",
8955
8957
  strokeLinejoin: "round"
@@ -8959,7 +8961,7 @@ function cl({ width: t, height: r }) {
8959
8961
  "path",
8960
8962
  {
8961
8963
  d: "M304.936 175.5C303.438 180 302.529 181.628 304.936 186.5",
8962
- stroke: q.c000000,
8964
+ stroke: U.c000000,
8963
8965
  strokeWidth: "2",
8964
8966
  strokeLinecap: "round",
8965
8967
  strokeLinejoin: "round"
@@ -8969,30 +8971,30 @@ function cl({ width: t, height: r }) {
8969
8971
  "path",
8970
8972
  {
8971
8973
  d: "M288.178 120.981C289.969 120.93 290.921 121.313 292.167 122.754",
8972
- stroke: q.c000000,
8974
+ stroke: U.c000000,
8973
8975
  strokeWidth: "2",
8974
8976
  strokeLinecap: "round",
8975
8977
  strokeLinejoin: "round"
8976
8978
  }
8977
8979
  ),
8978
- /* @__PURE__ */ e("circle", { cx: "291.724", cy: "118.765", r: "3.1027", fill: q.c000000 }),
8980
+ /* @__PURE__ */ e("circle", { cx: "291.724", cy: "118.765", r: "3.1027", fill: U.c000000 }),
8979
8981
  /* @__PURE__ */ e(
8980
8982
  "path",
8981
8983
  {
8982
8984
  d: "M308.128 122.463C309.123 120.973 309.987 120.418 311.883 120.237",
8983
- stroke: q.c000000,
8985
+ stroke: U.c000000,
8984
8986
  strokeWidth: "2",
8985
8987
  strokeLinecap: "round",
8986
8988
  strokeLinejoin: "round"
8987
8989
  }
8988
8990
  ),
8989
- /* @__PURE__ */ e("circle", { cx: "307.681", cy: "118.765", r: "3.1027", fill: q.c000000 }),
8990
- /* @__PURE__ */ e("ellipse", { cx: "297.938", cy: "134.5", rx: "2.5", ry: "2", fill: q.c000000 }),
8991
+ /* @__PURE__ */ e("circle", { cx: "307.681", cy: "118.765", r: "3.1027", fill: U.c000000 }),
8992
+ /* @__PURE__ */ e("ellipse", { cx: "297.938", cy: "134.5", rx: "2.5", ry: "2", fill: U.c000000 }),
8991
8993
  /* @__PURE__ */ e(
8992
8994
  "path",
8993
8995
  {
8994
8996
  d: "M340.437 97.5L333.438 104.5M333.438 97.5L340.438 104.5",
8995
- stroke: q.c001A72,
8997
+ stroke: U.c001A72,
8996
8998
  strokeWidth: "2",
8997
8999
  strokeLinecap: "round",
8998
9000
  strokeLinejoin: "round"
@@ -9002,7 +9004,7 @@ function cl({ width: t, height: r }) {
9002
9004
  "path",
9003
9005
  {
9004
9006
  d: "M265.437 115.5L260.438 120.5M260.438 115.5L265.438 120.5",
9005
- stroke: q.c001A72,
9007
+ stroke: U.c001A72,
9006
9008
  strokeWidth: "1.2",
9007
9009
  strokeLinecap: "round",
9008
9010
  strokeLinejoin: "round"
@@ -9012,7 +9014,7 @@ function cl({ width: t, height: r }) {
9012
9014
  "path",
9013
9015
  {
9014
9016
  d: "M288.437 87.5L283.438 92.5M283.438 87.5L288.438 92.5",
9015
- stroke: q.c001A72,
9017
+ stroke: U.c001A72,
9016
9018
  strokeWidth: "1.2",
9017
9019
  strokeLinecap: "round",
9018
9020
  strokeLinejoin: "round"
@@ -9022,7 +9024,7 @@ function cl({ width: t, height: r }) {
9022
9024
  "path",
9023
9025
  {
9024
9026
  d: "M305.437 83.5L298.438 90.5M298.438 83.5L305.438 90.5",
9025
- stroke: q.c001A72,
9027
+ stroke: U.c001A72,
9026
9028
  strokeWidth: "1.5",
9027
9029
  strokeLinecap: "round",
9028
9030
  strokeLinejoin: "round"
@@ -9032,21 +9034,21 @@ function cl({ width: t, height: r }) {
9032
9034
  "path",
9033
9035
  {
9034
9036
  d: "M342.437 145.5L337.438 150.5M337.438 145.5L342.438 150.5",
9035
- stroke: q.c001A72,
9037
+ stroke: U.c001A72,
9036
9038
  strokeWidth: "1.2",
9037
9039
  strokeLinecap: "round",
9038
9040
  strokeLinejoin: "round"
9039
9041
  }
9040
9042
  ),
9041
- /* @__PURE__ */ e("circle", { cx: "339.938", cy: "111", r: "2.5", fill: q.c001A72 }),
9042
- /* @__PURE__ */ e("circle", { cx: "336.438", cy: "94.5", r: "1", fill: q.c001A72 }),
9043
- /* @__PURE__ */ e("circle", { cx: "347.438", cy: "99.5", r: "1", fill: q.c001A72 }),
9044
- /* @__PURE__ */ e("circle", { cx: "267.438", cy: "109.5", r: "2", fill: q.c001A72 }),
9045
- /* @__PURE__ */ e("circle", { cx: "293.438", cy: "85.5", r: "2", fill: q.c001A72 }),
9046
- /* @__PURE__ */ e("circle", { cx: "339.438", cy: "138.5", r: "2", fill: q.c001A72 }),
9047
- /* @__PURE__ */ e("circle", { cx: "267.438", cy: "150.5", r: "2", fill: q.c001A72 }),
9048
- /* @__PURE__ */ e("circle", { cx: "268.438", cy: "118.5", r: "1", fill: q.c001A72 }),
9049
- /* @__PURE__ */ e("circle", { cx: "260.438", cy: "124.5", r: "1", fill: q.c001A72 })
9043
+ /* @__PURE__ */ e("circle", { cx: "339.938", cy: "111", r: "2.5", fill: U.c001A72 }),
9044
+ /* @__PURE__ */ e("circle", { cx: "336.438", cy: "94.5", r: "1", fill: U.c001A72 }),
9045
+ /* @__PURE__ */ e("circle", { cx: "347.438", cy: "99.5", r: "1", fill: U.c001A72 }),
9046
+ /* @__PURE__ */ e("circle", { cx: "267.438", cy: "109.5", r: "2", fill: U.c001A72 }),
9047
+ /* @__PURE__ */ e("circle", { cx: "293.438", cy: "85.5", r: "2", fill: U.c001A72 }),
9048
+ /* @__PURE__ */ e("circle", { cx: "339.438", cy: "138.5", r: "2", fill: U.c001A72 }),
9049
+ /* @__PURE__ */ e("circle", { cx: "267.438", cy: "150.5", r: "2", fill: U.c001A72 }),
9050
+ /* @__PURE__ */ e("circle", { cx: "268.438", cy: "118.5", r: "1", fill: U.c001A72 }),
9051
+ /* @__PURE__ */ e("circle", { cx: "260.438", cy: "124.5", r: "1", fill: U.c001A72 })
9050
9052
  ]
9051
9053
  }
9052
9054
  ) });
@@ -9083,7 +9085,7 @@ function Vc({ onClick: t }) {
9083
9085
  children: "Sorry, we couldn't find the page you are looking for"
9084
9086
  }
9085
9087
  ),
9086
- t && /* @__PURE__ */ e(H, { size: r ? "md" : "xs", onClick: t, children: "Go Back" })
9088
+ t && /* @__PURE__ */ e(O, { size: r ? "md" : "xs", onClick: t, children: "Go Back" })
9087
9089
  ]
9088
9090
  }
9089
9091
  );
@@ -9324,7 +9326,7 @@ function sl({ width: t, height: r }) {
9324
9326
  }
9325
9327
  ) });
9326
9328
  }
9327
- function Oc({ onClick: t }) {
9329
+ function Hc({ onClick: t }) {
9328
9330
  const r = ke("md");
9329
9331
  return /* @__PURE__ */ u(
9330
9332
  f,
@@ -9339,7 +9341,7 @@ function Oc({ onClick: t }) {
9339
9341
  children: [
9340
9342
  /* @__PURE__ */ e(sl, { width: r ? 600 : 300 }),
9341
9343
  /* @__PURE__ */ e(w, { fontWeight: "bold", fontSize: r ? "3xl" : "2xl", children: "We Are Sorry ..." }),
9342
- t && /* @__PURE__ */ e(H, { size: r ? "md" : "xs", onClick: t, children: "Go Back" })
9344
+ t && /* @__PURE__ */ e(O, { size: r ? "md" : "xs", onClick: t, children: "Go Back" })
9343
9345
  ]
9344
9346
  }
9345
9347
  );
@@ -10033,7 +10035,7 @@ function al({ width: t, height: r }) {
10033
10035
  }
10034
10036
  ) });
10035
10037
  }
10036
- function Hc({ onClick: t }) {
10038
+ function Oc({ onClick: t }) {
10037
10039
  const r = ke("md");
10038
10040
  return /* @__PURE__ */ u(
10039
10041
  f,
@@ -10066,7 +10068,7 @@ function Hc({ onClick: t }) {
10066
10068
  children: "we are trying to fix the problem"
10067
10069
  }
10068
10070
  ),
10069
- t && /* @__PURE__ */ e(H, { size: r ? "md" : "xs", onClick: t, children: "Go Back" })
10071
+ t && /* @__PURE__ */ e(O, { size: r ? "md" : "xs", onClick: t, children: "Go Back" })
10070
10072
  ]
10071
10073
  }
10072
10074
  );
@@ -10105,7 +10107,7 @@ const Tc = (t) => {
10105
10107
  gap: ((s = t.wrapperConfirmBtnProps) == null ? void 0 : s.gap) || "sm",
10106
10108
  ...t.wrapperConfirmBtnProps,
10107
10109
  children: [
10108
- t.onCancel && /* @__PURE__ */ e(H, { secondary: !0, onClick: t.onCancel, size: "md", fullWidth: !0, children: t.titleCancelBtn || "Cancel" }),
10110
+ t.onCancel && /* @__PURE__ */ e(O, { secondary: !0, onClick: t.onCancel, size: "md", fullWidth: !0, children: t.titleCancelBtn || "Cancel" }),
10109
10111
  /* @__PURE__ */ e(
10110
10112
  f,
10111
10113
  {
@@ -10115,7 +10117,7 @@ const Tc = (t) => {
10115
10117
  textWrap: "nowrap"
10116
10118
  },
10117
10119
  children: /* @__PURE__ */ e(
10118
- H,
10120
+ O,
10119
10121
  {
10120
10122
  ...t.buttonConfirmProps,
10121
10123
  onClick: t.onConfirm,
@@ -10156,7 +10158,7 @@ const Tc = (t) => {
10156
10158
  variantTag: k = "info"
10157
10159
  }) => {
10158
10160
  const L = se(null), [z, D] = R("100vh");
10159
- U(() => {
10161
+ J(() => {
10160
10162
  const v = () => {
10161
10163
  if (L.current) {
10162
10164
  const M = L.current.getBoundingClientRect().top;
@@ -10228,7 +10230,7 @@ const Tc = (t) => {
10228
10230
  o ? a = i.includes(c.value) ? d.filter((m) => m.value !== c.value) : [...d, c] : a = [c], n == null || n(a);
10229
10231
  };
10230
10232
  return /* @__PURE__ */ e(f, { direction: "row", gap: "sm", flexWrap: "wrap", children: r == null ? void 0 : r.map((c, d) => /* @__PURE__ */ e(
10231
- H,
10233
+ O,
10232
10234
  {
10233
10235
  ...i.includes(c.value) ? { primary: !0 } : { secondary: !0 },
10234
10236
  onClick: () => s(c),
@@ -10354,23 +10356,23 @@ function ml(t) {
10354
10356
  disableBackdropClose: p = !1,
10355
10357
  lockBodyScroll: g = !0,
10356
10358
  children: b
10357
- } = t, [B, y] = R(i), k = o ?? B, z = ke("md") ? k : "fullscreen", D = Q(
10358
- (X) => {
10359
- o === void 0 && y(X), l == null || l(X);
10359
+ } = t, [B, y] = R(i), k = o ?? B, z = ke("md") ? k : "fullscreen", D = Y(
10360
+ (G) => {
10361
+ o === void 0 && y(G), l == null || l(G);
10360
10362
  },
10361
10363
  [o, l]
10362
10364
  ), C = se(null);
10363
- U(() => {
10365
+ J(() => {
10364
10366
  if (!(!r || !g))
10365
10367
  return C.current = document.body.style.overflow, document.body.style.overflow = "hidden", () => {
10366
10368
  document.body.style.overflow = C.current ?? "";
10367
10369
  };
10368
- }, [r, g]), U(() => {
10370
+ }, [r, g]), J(() => {
10369
10371
  if (!r || m) return;
10370
- const X = (le) => {
10371
- le.key === "Escape" && n();
10372
+ const G = (oe) => {
10373
+ oe.key === "Escape" && n();
10372
10374
  };
10373
- return window.addEventListener("keydown", X), () => window.removeEventListener("keydown", X);
10375
+ return window.addEventListener("keydown", G), () => window.removeEventListener("keydown", G);
10374
10376
  }, [r, m, n]);
10375
10377
  const V = ge(
10376
10378
  () => Et(b, vr),
@@ -10386,22 +10388,22 @@ function ml(t) {
10386
10388
  [b]
10387
10389
  );
10388
10390
  if (!r) return null;
10389
- const N = [
10391
+ const $ = [
10390
10392
  Se["lyd-panel"],
10391
10393
  z === "modal" && Se["lyd-modal"],
10392
10394
  z === "fullscreen" && Se["lyd-fullscreen"],
10393
10395
  z === "sidebar" && Se["lyd-sidebar"]
10394
- ].filter(Boolean).join(" "), $ = {
10396
+ ].filter(Boolean).join(" "), N = {
10395
10397
  "--lyd-max-w": fl(d),
10396
10398
  ...a !== void 0 && { "--lyd-aside-w": a }
10397
- }, j = () => {
10399
+ }, P = () => {
10398
10400
  p || n();
10399
10401
  };
10400
10402
  return /* @__PURE__ */ u(
10401
10403
  "div",
10402
10404
  {
10403
10405
  className: Se["lyd-root"],
10404
- style: $,
10406
+ style: N,
10405
10407
  role: "dialog",
10406
10408
  "aria-modal": "true",
10407
10409
  children: [
@@ -10409,11 +10411,11 @@ function ml(t) {
10409
10411
  "div",
10410
10412
  {
10411
10413
  className: Se["lyd-backdrop"],
10412
- onClick: j,
10414
+ onClick: P,
10413
10415
  "aria-hidden": "true"
10414
10416
  }
10415
10417
  ),
10416
- /* @__PURE__ */ u("div", { className: N, children: [
10418
+ /* @__PURE__ */ u("div", { className: $, children: [
10417
10419
  /* @__PURE__ */ u("div", { className: Se["lyd-header"], children: [
10418
10420
  /* @__PURE__ */ e("div", { className: Se["lyd-header-content"], children: V }),
10419
10421
  /* @__PURE__ */ u("div", { className: Se["lyd-header-actions"], children: [
@@ -10446,7 +10448,7 @@ Nt.Body = Cr;
10446
10448
  Nt.Aside = wr;
10447
10449
  Nt.Footer = Dr;
10448
10450
  function jc({ url: t, filename: r, onClose: n }) {
10449
- return U(() => {
10451
+ return J(() => {
10450
10452
  const o = (i) => {
10451
10453
  i.key === "Escape" && n();
10452
10454
  };
@@ -10544,7 +10546,7 @@ function jc({ url: t, filename: r, onClose: n }) {
10544
10546
  );
10545
10547
  }
10546
10548
  const _c = (t) => {
10547
- const { defaultTab: r = 0, paramKey: n = "tab" } = t || {}, [o, i] = Ht(), l = Rt(o.toString());
10549
+ const { defaultTab: r = 0, paramKey: n = "tab" } = t || {}, [o, i] = Ot(), l = Rt(o.toString());
10548
10550
  return {
10549
10551
  activeTab: l[n] ? parseInt(l[n]) : r,
10550
10552
  handleTabChange: (d) => {
@@ -10562,7 +10564,7 @@ function Pc({
10562
10564
  formatTitle: n
10563
10565
  }) {
10564
10566
  const o = yt();
10565
- U(() => {
10567
+ J(() => {
10566
10568
  let i = null, l = null;
10567
10569
  for (const d of r) {
10568
10570
  const a = d.items.find((m) => m.to ? m.to === "/" ? o.pathname === "/" : !!(m.to === o.pathname || o.pathname.startsWith(m.to + "/")) : !1);
@@ -10578,7 +10580,7 @@ function Pc({
10578
10580
  }, [o.pathname]);
10579
10581
  }
10580
10582
  const Zc = () => {
10581
- const [t, r] = Ht(), n = Rt(t.toString()), o = nn(), i = yt(), l = o.id;
10583
+ const [t, r] = Ot(), n = Rt(t.toString()), o = nn(), i = yt(), l = o.id;
10582
10584
  return {
10583
10585
  // query params
10584
10586
  setSearchParams: r,
@@ -10633,13 +10635,13 @@ export {
10633
10635
  Lo as ColumnMenu,
10634
10636
  Tc as ConfirmationDialog,
10635
10637
  ko as DataTable,
10636
- oe as DecisionWrapper,
10638
+ le as DecisionWrapper,
10637
10639
  br as EachUtils,
10638
10640
  Rc as EmptyStatePage,
10639
10641
  oc as FilterBar,
10640
10642
  Ii as FilterDrawer,
10641
10643
  Ac as FloatingFooter,
10642
- Oc as ForbiddenPage,
10644
+ Hc as ForbiddenPage,
10643
10645
  Bc as Form,
10644
10646
  Nc as FullSection,
10645
10647
  ql as HeaderLeftSlot,
@@ -10665,7 +10667,7 @@ export {
10665
10667
  hn as SectionFooter,
10666
10668
  un as SectionHeader,
10667
10669
  $c as SelectButton,
10668
- Hc as ServerErrorPage,
10670
+ Oc as ServerErrorPage,
10669
10671
  Jn as SidebarBadgesProvider,
10670
10672
  Ul as SidebarGroupSlot,
10671
10673
  ri as SidebarGroupSlotOutlet,
@@ -10685,7 +10687,7 @@ export {
10685
10687
  sc as expandDateCompact,
10686
10688
  vc as formHasChanged,
10687
10689
  pc as formatDate,
10688
- Oo as formatDateToIndonesian,
10690
+ Ho as formatDateToIndonesian,
10689
10691
  mc as formatRupiah,
10690
10692
  Ai as getDateFilterValue,
10691
10693
  nc as getDateRangeFilterValue,