@starasia/admin 14.3.0 → 14.5.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
@@ -49,7 +49,7 @@ import { Radio as Xi } from "@starasia/radio";
49
49
  export * from "@starasia/radio";
50
50
  import { Text as C } from "@starasia/text";
51
51
  export * from "@starasia/text";
52
- import { Icon as L } from "@starasia/icon";
52
+ import { Icon as M } from "@starasia/icon";
53
53
  export * from "@starasia/icon";
54
54
  import { Flex as fe } from "@starasia/flex";
55
55
  export * from "@starasia/flex";
@@ -61,7 +61,7 @@ export * from "@starasia/story-record";
61
61
  import { Skeleton as mt } from "@starasia/skeleton";
62
62
  export * from "@starasia/skeleton";
63
63
  export * from "@starasia/progress-stepper";
64
- import { jsx as e, Fragment as se, jsxs as d } from "react/jsx-runtime";
64
+ import { jsx as e, Fragment as ae, jsxs as d } from "react/jsx-runtime";
65
65
  import Ct, { createContext as At, useState as H, useContext as wt, useCallback as G, useMemo as ve, memo as ut, useEffect as Y, useRef as oe, useLayoutEffect as at, forwardRef as Pr, isValidElement as Rr, Children as Ki, useImperativeHandle as eo } from "react";
66
66
  import to, { createPortal as jr } from "react-dom";
67
67
  import ro from "react-easy-crop";
@@ -189,7 +189,7 @@ const no = {
189
189
  ), F = G(() => {
190
190
  const w = Br(n, o, i);
191
191
  pn(l, w), p(w);
192
- }, [n, o, i, l]), M = G(
192
+ }, [n, o, i, l]), A = G(
193
193
  (w) => {
194
194
  u(
195
195
  (R) => typeof w == "function" ? w(R) : w
@@ -209,7 +209,7 @@ const no = {
209
209
  minWidth: o,
210
210
  maxWidth: i,
211
211
  mobileOpen: a,
212
- setMobileOpen: M,
212
+ setMobileOpen: A,
213
213
  openMobile: D,
214
214
  closeMobile: k,
215
215
  toggleMobile: I
@@ -226,7 +226,7 @@ const no = {
226
226
  o,
227
227
  i,
228
228
  a,
229
- M,
229
+ A,
230
230
  D,
231
231
  k,
232
232
  I
@@ -330,11 +330,11 @@ function go({ children: t }) {
330
330
  }
331
331
  function po({ children: t }) {
332
332
  const r = wt(Zr);
333
- return r ? /* @__PURE__ */ d(se, { children: [
333
+ return r ? /* @__PURE__ */ d(ae, { children: [
334
334
  /* @__PURE__ */ e("div", { ref: r.setPrependNode, style: { display: "contents" } }),
335
335
  r.replaceCount > 0 ? /* @__PURE__ */ e("div", { ref: r.setReplaceNode, style: { display: "contents" } }) : t,
336
336
  /* @__PURE__ */ e("div", { ref: r.setAppendNode, style: { display: "contents" } })
337
- ] }) : /* @__PURE__ */ e(se, { children: t });
337
+ ] }) : /* @__PURE__ */ e(ae, { children: t });
338
338
  }
339
339
  function Fs({
340
340
  children: t,
@@ -375,7 +375,7 @@ function bo({ slotKey: t, fallback: r }) {
375
375
  [t]
376
376
  // slotKey is a stable string from group config
377
377
  );
378
- return /* @__PURE__ */ e(se, { children: o ? /* @__PURE__ */ e("div", { ref: l, style: { display: "contents" } }) : r });
378
+ return /* @__PURE__ */ e(ae, { children: o ? /* @__PURE__ */ e("div", { ref: l, style: { display: "contents" } }) : r });
379
379
  }
380
380
  function Ls({ slotKey: t, children: r }) {
381
381
  const n = wt(Gr), o = oe(n == null ? void 0 : n.registerSlot);
@@ -421,43 +421,47 @@ function si() {
421
421
  } };
422
422
  }
423
423
  let Pt = 0, kt = !1, bn = /* @__PURE__ */ new Set();
424
- function xo(t) {
425
- const [r, n] = H(!1), o = oe(null), i = oe(null);
424
+ function xo(t, r) {
425
+ const [n, o] = H(!1), i = oe(null), l = oe(null);
426
426
  return at(() => {
427
- const l = o.current;
428
- if (!l) return;
429
- let c = 0;
430
- const s = () => {
431
- c = 0;
432
- const u = i.current;
433
- if (!u) return;
434
- const m = u.scrollWidth > l.clientWidth;
435
- n((p) => p === m ? p : m);
436
- }, a = new ResizeObserver(() => {
437
- c || (c = requestAnimationFrame(s));
427
+ const c = i.current;
428
+ if (!c) return;
429
+ let s = 0;
430
+ const a = () => {
431
+ s = 0;
432
+ const m = l.current;
433
+ if (!m) return;
434
+ const p = m.scrollWidth > c.clientWidth;
435
+ o((g) => g === p ? g : p);
436
+ }, u = new ResizeObserver(() => {
437
+ s || (s = requestAnimationFrame(a));
438
438
  });
439
- return a.observe(l), s(), () => {
440
- c && cancelAnimationFrame(c), a.disconnect();
439
+ return u.observe(c), a(), () => {
440
+ s && cancelAnimationFrame(s), u.disconnect();
441
441
  };
442
- }, [t]), { containerRef: o, textRef: i, truncated: r };
442
+ }, [t, r]), { containerRef: i, textRef: l, truncated: n };
443
443
  }
444
444
  function xn({
445
445
  text: t,
446
- textStyle: r
446
+ textStyle: r,
447
+ active: n = !1
447
448
  }) {
448
- const { containerRef: n, textRef: o, truncated: i } = xo(t), l = /* @__PURE__ */ e(
449
+ const { containerRef: o, textRef: i, truncated: l } = xo(
450
+ t,
451
+ n
452
+ ), c = /* @__PURE__ */ e(
449
453
  C,
450
454
  {
451
- ref: o,
455
+ ref: i,
452
456
  as: "span",
453
457
  fontSize: "md",
454
- fontWeight: "medium",
458
+ fontWeight: n ? "medium" : "normal",
455
459
  truncate: !0,
456
460
  style: { display: "block", ...r },
457
461
  children: t
458
462
  }
459
463
  );
460
- return /* @__PURE__ */ e(h, { ref: n, display: "block", style: { flex: 1, minWidth: 0 }, children: i ? /* @__PURE__ */ e(Ne, { fluid: !0, label: t, position: "top", children: l }) : l });
464
+ return /* @__PURE__ */ e(h, { ref: o, display: "block", style: { flex: 1, minWidth: 0 }, children: l ? /* @__PURE__ */ e(Ne, { fluid: !0, label: t, position: "top", children: c }) : c });
461
465
  }
462
466
  const vo = 200, Hr = "var(--app-header-height, 4rem)", vn = "44px", xr = `calc((${Hr} - 2rem) / 2)`, Cn = 16;
463
467
  function As({
@@ -477,7 +481,7 @@ function As({
477
481
  resizableSidebar: b = !0
478
482
  }) {
479
483
  var xt, Et;
480
- const { useSearchParams: S, useNavigate: v, useLocation: W, Outlet: F } = pt(), [M] = S(), D = M.get("embed") === "true", k = ei(), { badges: I } = lo(), B = v(), w = W(), z = !We("md"), [U, Q] = H(!1), {
484
+ const { useSearchParams: S, useNavigate: v, useLocation: W, Outlet: F } = pt(), [A] = S(), D = A.get("embed") === "true", k = ei(), { badges: I } = lo(), B = v(), w = W(), z = !We("md"), [U, Q] = H(!1), {
481
485
  collapsed: _,
482
486
  setCollapsed: P,
483
487
  width: X,
@@ -493,19 +497,19 @@ function As({
493
497
  Y(() => {
494
498
  bn = we;
495
499
  }, [we]);
496
- const pe = oe(null), He = oe(null), Je = oe(null), [ue, Ye] = H(!1), [ht, O] = H(null), K = b && !z && !_, q = (E) => Math.min(Math.max(E, T), V), he = ht ?? X, ae = (E) => {
497
- var Fe, Ae, Pe;
500
+ const pe = oe(null), He = oe(null), Je = oe(null), [ue, Ye] = H(!1), [ht, O] = H(null), K = b && !z && !_, q = (E) => Math.min(Math.max(E, T), V), he = ht ?? X, de = (E) => {
501
+ var Fe, Ae, _e;
498
502
  if (!K) return;
499
503
  E.preventDefault();
500
504
  const j = E.clientX, ee = ((Fe = Je.current) == null ? void 0 : Fe.getBoundingClientRect().width) ?? X;
501
- (Pe = (Ae = E.currentTarget).setPointerCapture) == null || Pe.call(Ae, E.pointerId), Ye(!0), document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
502
- let Ee = 0, Be = ee;
505
+ (_e = (Ae = E.currentTarget).setPointerCapture) == null || _e.call(Ae, E.pointerId), Ye(!0), document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
506
+ let Se = 0, Be = ee;
503
507
  const it = (Wt) => {
504
- Be = ee + (Wt.clientX - j), Ee || (Ee = requestAnimationFrame(() => {
505
- Ee = 0, O(q(Be));
508
+ Be = ee + (Wt.clientX - j), Se || (Se = requestAnimationFrame(() => {
509
+ Se = 0, O(q(Be));
506
510
  }));
507
511
  }, Te = () => {
508
- Ee && cancelAnimationFrame(Ee), window.removeEventListener("pointermove", it), window.removeEventListener("pointerup", Te), document.body.style.userSelect = "", document.body.style.cursor = "", O(null), Ye(!1), Be < vo ? P(!0) : re(q(Be));
512
+ Se && cancelAnimationFrame(Se), window.removeEventListener("pointermove", it), window.removeEventListener("pointerup", Te), document.body.style.userSelect = "", document.body.style.cursor = "", O(null), Ye(!1), Be < vo ? P(!0) : re(q(Be));
509
513
  };
510
514
  window.addEventListener("pointermove", it), window.addEventListener("pointerup", Te);
511
515
  }, Me = (E) => {
@@ -541,17 +545,17 @@ function As({
541
545
  }));
542
546
  }, [k.menus]), Y(() => {
543
547
  kt = !0, Oe();
544
- const E = setTimeout(Oe, 0), j = setTimeout(Oe, 50), ee = setTimeout(Oe, 100), Ee = setTimeout(Oe, 200), Be = setTimeout(() => {
548
+ const E = setTimeout(Oe, 0), j = setTimeout(Oe, 50), ee = setTimeout(Oe, 100), Se = setTimeout(Oe, 200), Be = setTimeout(() => {
545
549
  kt = !1;
546
550
  }, 300), it = setTimeout(() => {
547
551
  const Te = pe.current, Fe = Te == null ? void 0 : Te.querySelector("[data-menu-active='true']");
548
552
  if (Te && Fe) {
549
- const Ae = Te.getBoundingClientRect(), Pe = Fe.getBoundingClientRect();
550
- Pe.top >= Ae.top && Pe.bottom <= Ae.bottom || Fe.scrollIntoView({ block: "center", behavior: "smooth" });
553
+ const Ae = Te.getBoundingClientRect(), _e = Fe.getBoundingClientRect();
554
+ _e.top >= Ae.top && _e.bottom <= Ae.bottom || Fe.scrollIntoView({ block: "center", behavior: "smooth" });
551
555
  }
552
556
  }, 250);
553
557
  return () => {
554
- clearTimeout(E), clearTimeout(j), clearTimeout(ee), clearTimeout(Ee), clearTimeout(Be), clearTimeout(it);
558
+ clearTimeout(E), clearTimeout(j), clearTimeout(ee), clearTimeout(Se), clearTimeout(Be), clearTimeout(it);
555
559
  };
556
560
  }, [w.pathname]), Y(() => {
557
561
  He.current && (He.current.scrollTop = 0);
@@ -574,19 +578,19 @@ function As({
574
578
  }, nt = (E) => {
575
579
  const j = [E.to];
576
580
  return E.children && j.push(...E.children.map((ee) => ee.to)), j;
577
- }, Se = [
581
+ }, Ee = [
578
582
  ...k.menus.flatMap((E) => E.items.flatMap(nt)),
579
583
  ...((xt = k.menuBottom) == null ? void 0 : xt.flatMap(nt)) ?? []
580
584
  ], Ke = (E) => {
581
585
  if (!w.pathname.startsWith(E)) return !1;
582
- const j = Se.filter((ee) => w.pathname.startsWith(ee)).sort((ee, Ee) => Ee.length - ee.length)[0];
586
+ const j = Ee.filter((ee) => w.pathname.startsWith(ee)).sort((ee, Se) => Se.length - ee.length)[0];
583
587
  return E === j;
584
588
  };
585
589
  Y(() => {
586
590
  var j;
587
591
  const E = (ee) => {
588
- var Ee;
589
- (Ee = ee.children) != null && Ee.some((Be) => w.pathname.startsWith(Be.to)) && De((Be) => {
592
+ var Se;
593
+ (Se = ee.children) != null && Se.some((Be) => w.pathname.startsWith(Be.to)) && De((Be) => {
590
594
  const it = new Set(Be);
591
595
  return it.add(ee.id), it;
592
596
  });
@@ -627,12 +631,12 @@ function As({
627
631
  }
628
632
  );
629
633
  const bt = (E) => {
630
- const j = E.children && E.children.length > 0, ee = we.has(E.id), Ee = j ? E.children.some((Te) => Ke(Te.to)) : Ke(E.to), Be = br(E.badge, I[E.id]), it = !!Be && _ && !z;
634
+ const j = E.children && E.children.length > 0, ee = we.has(E.id), Se = j ? E.children.some((Te) => Ke(Te.to)) : Ke(E.to), Be = br(E.badge, I[E.id]), it = !!Be && _ && !z;
631
635
  return /* @__PURE__ */ d(
632
636
  h,
633
637
  {
634
638
  display: "block",
635
- "data-menu-active": Ee || void 0,
639
+ "data-menu-active": Se || void 0,
636
640
  children: [
637
641
  /* @__PURE__ */ d(
638
642
  h,
@@ -660,22 +664,27 @@ function As({
660
664
  paddingInline: _ && !z ? void 0 : "sm",
661
665
  paddingBlock: "xs",
662
666
  height: "height-32",
663
- borderRadius: Ee ? "rounded-sm" : "rounded-md",
667
+ borderRadius: Se ? "rounded-sm" : "rounded-md",
664
668
  borderWidth: "border",
665
669
  borderStyle: "border-solid",
666
- bg: Ee ? "white" : void 0,
667
- hover: Ee ? void 0 : { bg: "neutral" },
670
+ bg: Se ? "white" : void 0,
671
+ hover: Se ? void 0 : { bg: "neutral" },
668
672
  title: _ && !z ? E.title : void 0,
669
673
  style: {
670
674
  textAlign: "left",
671
- color: "var(--sa-text-primary, #292a2e)",
675
+ // Non-aktif sengaja diturunkan ke `text-subtle` — sidebar itu
676
+ // permukaan yang di-scan, bukan dibaca. Ikon mewarisi lewat
677
+ // `currentColor`, jadi teks + ikon selalu sewarna. Pola ini sudah
678
+ // dipakai child item; induk sebelumnya selalu `text-primary`,
679
+ // yang membuat seluruh kolom nav tampil sama tebal & sama gelap.
680
+ color: Se ? "var(--sa-text-primary, #292a2e)" : "var(--sa-text-subtle, #505258)",
672
681
  // Border tetap 1px walau tidak aktif supaya baris tidak bergeser
673
682
  // saat jadi aktif. `borderColor` SELALU ditulis di sini — bukan
674
683
  // separuh lewat prop, separuh lewat style — karena kalau properti
675
684
  // ini hilang-muncul antar render, React memperingatkan "Removing a
676
685
  // style property during rerender (borderColor) when a conflicting
677
686
  // property is set (border)".
678
- borderColor: Ee ? "var(--sa-border-subtle, #0b120e24)" : "transparent"
687
+ borderColor: Se ? "var(--sa-border-subtle, #0b120e24)" : "transparent"
679
688
  },
680
689
  children: [
681
690
  /* @__PURE__ */ d(
@@ -686,7 +695,7 @@ function As({
686
695
  flexShrink: "0",
687
696
  style: { alignItems: "center" },
688
697
  children: [
689
- /* @__PURE__ */ e(L, { name: E.icon, size: "sm", style: { flexShrink: 0 } }),
698
+ /* @__PURE__ */ e(M, { name: E.icon, size: "sm", style: { flexShrink: 0 } }),
690
699
  it && /* @__PURE__ */ e(
691
700
  h,
692
701
  {
@@ -707,11 +716,12 @@ function As({
707
716
  ]
708
717
  }
709
718
  ),
710
- (!_ || z) && /* @__PURE__ */ d(se, { children: [
719
+ (!_ || z) && /* @__PURE__ */ d(ae, { children: [
711
720
  /* @__PURE__ */ e(
712
721
  xn,
713
722
  {
714
723
  text: E.title,
724
+ active: Se,
715
725
  textStyle: { transition: "opacity 0.3s" }
716
726
  }
717
727
  ),
@@ -725,7 +735,7 @@ function As({
725
735
  }
726
736
  ),
727
737
  j && /* @__PURE__ */ e(
728
- L,
738
+ M,
729
739
  {
730
740
  name: "ChevronDown",
731
741
  size: "sm",
@@ -796,7 +806,7 @@ function As({
796
806
  const Ae = br(
797
807
  Fe.badge,
798
808
  I[Fe.id]
799
- ), Pe = Ke(Fe.to);
809
+ ), _e = Ke(Fe.to);
800
810
  return /* @__PURE__ */ d(
801
811
  h,
802
812
  {
@@ -810,27 +820,33 @@ function As({
810
820
  paddingRight: "sm",
811
821
  paddingBlock: "xs",
812
822
  height: "height-32",
813
- borderRadius: Pe ? "rounded-sm" : "rounded-md",
823
+ borderRadius: _e ? "rounded-sm" : "rounded-md",
814
824
  borderWidth: "border",
815
825
  borderStyle: "border-solid",
816
- bg: Pe ? "white" : void 0,
817
- hover: Pe ? void 0 : { bg: "neutral" },
826
+ bg: _e ? "white" : void 0,
827
+ hover: _e ? void 0 : { bg: "neutral" },
818
828
  style: {
819
829
  textAlign: "left",
820
- color: Pe ? "var(--sa-text-primary, #292a2e)" : "var(--sa-text-subtle, #505258)",
830
+ color: _e ? "var(--sa-text-primary, #292a2e)" : "var(--sa-text-subtle, #505258)",
821
831
  // Selalu ditulis — lihat catatan di baris menu induk.
822
- borderColor: Pe ? "var(--sa-border-subtle, #0b120e24)" : "transparent"
832
+ borderColor: _e ? "var(--sa-border-subtle, #0b120e24)" : "transparent"
823
833
  },
824
834
  children: [
825
835
  /* @__PURE__ */ e(
826
- L,
836
+ M,
827
837
  {
828
838
  name: Fe.icon,
829
839
  size: "sm",
830
840
  style: { flexShrink: 0 }
831
841
  }
832
842
  ),
833
- /* @__PURE__ */ e(xn, { text: Fe.title }),
843
+ /* @__PURE__ */ e(
844
+ xn,
845
+ {
846
+ text: Fe.title,
847
+ active: _e
848
+ }
849
+ ),
834
850
  Ae && /* @__PURE__ */ e(
835
851
  Qt,
836
852
  {
@@ -928,7 +944,7 @@ function As({
928
944
  },
929
945
  children: (() => {
930
946
  const E = !z && _ && !ce, j = E && Le;
931
- return /* @__PURE__ */ d(se, { children: [
947
+ return /* @__PURE__ */ d(ae, { children: [
932
948
  /* @__PURE__ */ d(
933
949
  h,
934
950
  {
@@ -981,7 +997,7 @@ function As({
981
997
  justify: "center",
982
998
  flexShrink: "0",
983
999
  style: { color: "var(--sa-text-subtle, #8c8f97)" },
984
- children: /* @__PURE__ */ e(L, { name: "LayoutLeft", size: "sm" })
1000
+ children: /* @__PURE__ */ e(M, { name: "LayoutLeft", size: "sm" })
985
1001
  }
986
1002
  ),
987
1003
  E && /* @__PURE__ */ e(
@@ -1010,7 +1026,7 @@ function As({
1010
1026
  pointerEvents: j ? "auto" : "none",
1011
1027
  transition: "opacity 0.2s"
1012
1028
  },
1013
- children: /* @__PURE__ */ e(L, { name: "LayoutLeft", size: "sm" })
1029
+ children: /* @__PURE__ */ e(M, { name: "LayoutLeft", size: "sm" })
1014
1030
  }
1015
1031
  ),
1016
1032
  z && /* @__PURE__ */ e(
@@ -1026,7 +1042,7 @@ function As({
1026
1042
  padding: "0.375rem",
1027
1043
  color: "var(--sa-text-subtle, #8c8f97)"
1028
1044
  },
1029
- children: /* @__PURE__ */ e(L, { name: "Cross", size: "md" })
1045
+ children: /* @__PURE__ */ e(M, { name: "Cross", size: "md" })
1030
1046
  }
1031
1047
  )
1032
1048
  ] });
@@ -1139,7 +1155,7 @@ function As({
1139
1155
  "aria-valuemin": T,
1140
1156
  "aria-valuemax": V,
1141
1157
  tabIndex: 0,
1142
- onPointerDown: ae,
1158
+ onPointerDown: de,
1143
1159
  onKeyDown: Me,
1144
1160
  onDoubleClick: $,
1145
1161
  title: "Drag to resize · double-click to reset",
@@ -1202,7 +1218,7 @@ function As({
1202
1218
  padding: "0.375rem",
1203
1219
  color: "var(--sa-text-subtle, #8c8f97)"
1204
1220
  },
1205
- children: /* @__PURE__ */ e(L, { name: "MenuBurger", size: "lg" })
1221
+ children: /* @__PURE__ */ e(M, { name: "MenuBurger", size: "lg" })
1206
1222
  }
1207
1223
  ),
1208
1224
  /* @__PURE__ */ e(po, { children: r })
@@ -1262,7 +1278,7 @@ function As({
1262
1278
  }
1263
1279
  ),
1264
1280
  /* @__PURE__ */ e(
1265
- L,
1281
+ M,
1266
1282
  {
1267
1283
  name: "ChevronDown",
1268
1284
  size: "xs",
@@ -1347,7 +1363,7 @@ function As({
1347
1363
  Ue,
1348
1364
  {
1349
1365
  onClick: E.onClick,
1350
- startIcon: /* @__PURE__ */ e(L, { name: E.icon, size: "md" }),
1366
+ startIcon: /* @__PURE__ */ e(M, { name: E.icon, size: "md" }),
1351
1367
  children: E.label
1352
1368
  },
1353
1369
  `${E.label}-${j}`
@@ -1359,7 +1375,7 @@ function As({
1359
1375
  {
1360
1376
  intent: "danger",
1361
1377
  onClick: lt,
1362
- startIcon: /* @__PURE__ */ e(L, { name: "Logout", size: "md" }),
1378
+ startIcon: /* @__PURE__ */ e(M, { name: "Logout", size: "md" }),
1363
1379
  children: "Logout"
1364
1380
  }
1365
1381
  ) })
@@ -1404,7 +1420,7 @@ function As({
1404
1420
  /* @__PURE__ */ e(h, { direction: "column", children: /* @__PURE__ */ e(N, { primary: !0, onClick: Re, children: "Yes, Sure" }) })
1405
1421
  ] }) }) })
1406
1422
  ] }),
1407
- ke && /* @__PURE__ */ d(se, { children: [
1423
+ ke && /* @__PURE__ */ d(ae, { children: [
1408
1424
  /* @__PURE__ */ e(
1409
1425
  h,
1410
1426
  {
@@ -1475,11 +1491,11 @@ function As({
1475
1491
  style: {
1476
1492
  textAlign: "left",
1477
1493
  borderColor: "transparent",
1478
- color: j ? "var(--sa-text-primary, #292a2e)" : "var(--sa-color-gray-800, #505258)"
1494
+ color: j ? "var(--sa-text-primary, #292a2e)" : "var(--sa-text-subtle, #505258)"
1479
1495
  },
1480
1496
  children: [
1481
1497
  E.icon && /* @__PURE__ */ e(
1482
- L,
1498
+ M,
1483
1499
  {
1484
1500
  name: E.icon,
1485
1501
  size: "sm",
@@ -1491,7 +1507,7 @@ function As({
1491
1507
  {
1492
1508
  as: "span",
1493
1509
  fontSize: "md",
1494
- fontWeight: "medium",
1510
+ fontWeight: j ? "medium" : "normal",
1495
1511
  whiteSpace: "nowrap",
1496
1512
  style: { flex: 1 },
1497
1513
  children: E.title
@@ -1551,7 +1567,7 @@ const nr = Pr(
1551
1567
  style: { cursor: "pointer" },
1552
1568
  children: [
1553
1569
  /* @__PURE__ */ e(
1554
- L,
1570
+ M,
1555
1571
  {
1556
1572
  name: r || "ChevronLeft",
1557
1573
  size: "xs",
@@ -1583,7 +1599,7 @@ const nr = Pr(
1583
1599
  hoverIconColor: i
1584
1600
  }) => {
1585
1601
  const { Link: l } = pt(), [c, s] = H(!1), a = o ?? "var(--sa-text-subtle, #8c8f97)", u = i ?? "var(--sa-text-subtle, #8c8f97)", m = t.length > 1 ? t[0] : void 0, p = !!(m != null && m.to || m != null && m.onClick), g = /* @__PURE__ */ e(
1586
- L,
1602
+ M,
1587
1603
  {
1588
1604
  name: n || "ChevronLeft",
1589
1605
  size: "xs",
@@ -1732,7 +1748,7 @@ function wo({
1732
1748
  onMouseLeave: () => c(void 0),
1733
1749
  style: Sn,
1734
1750
  children: [
1735
- /* @__PURE__ */ e("div", { style: Dn(o === null, l === "all", a), children: /* @__PURE__ */ e("div", { style: { color: a.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(L, { name: "Grid", size: "lg", style: { width: 32, height: 32 } }) }) }),
1751
+ /* @__PURE__ */ e("div", { style: Dn(o === null, l === "all", a), children: /* @__PURE__ */ e("div", { style: { color: a.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(M, { name: "Grid", size: "lg", style: { width: 32, height: 32 } }) }) }),
1736
1752
  /* @__PURE__ */ e("span", { style: kn, children: "Semua" })
1737
1753
  ]
1738
1754
  }
@@ -1748,7 +1764,7 @@ function wo({
1748
1764
  onMouseLeave: () => c(void 0),
1749
1765
  style: Sn,
1750
1766
  children: [
1751
- /* @__PURE__ */ e("div", { style: Dn(p, g, S), children: /* @__PURE__ */ e("div", { style: { color: S.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(L, { name: b, size: "lg", style: { width: 32, height: 32 } }) }) }),
1767
+ /* @__PURE__ */ e("div", { style: Dn(p, g, S), children: /* @__PURE__ */ e("div", { style: { color: S.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(M, { name: b, size: "lg", style: { width: 32, height: 32 } }) }) }),
1752
1768
  /* @__PURE__ */ e("span", { style: kn, children: u.name })
1753
1769
  ]
1754
1770
  },
@@ -1773,7 +1789,7 @@ function zs({
1773
1789
  }
1774
1790
  t == null || t(m);
1775
1791
  };
1776
- return /* @__PURE__ */ d(se, { children: [
1792
+ return /* @__PURE__ */ d(ae, { children: [
1777
1793
  /* @__PURE__ */ d("div", { style: { position: "relative" }, children: [
1778
1794
  /* @__PURE__ */ e(
1779
1795
  "button",
@@ -1798,7 +1814,7 @@ function zs({
1798
1814
  onMouseLeave: (m) => {
1799
1815
  m.currentTarget.style.backgroundColor = "transparent";
1800
1816
  },
1801
- children: /* @__PURE__ */ e(L, { name: "GridApplication", size: "sm" })
1817
+ children: /* @__PURE__ */ e(M, { name: "GridApplication", size: "sm" })
1802
1818
  }
1803
1819
  ),
1804
1820
  l !== null && /* @__PURE__ */ e(
@@ -1952,7 +1968,7 @@ const Do = (t, r) => {
1952
1968
  style: { cursor: "pointer" },
1953
1969
  children: [
1954
1970
  /* @__PURE__ */ e(
1955
- L,
1971
+ M,
1956
1972
  {
1957
1973
  name: (t == null ? void 0 : t.iconName) || "ChevronLeft",
1958
1974
  size: "xs",
@@ -1994,7 +2010,7 @@ const Do = (t, r) => {
1994
2010
  containerProps: b,
1995
2011
  headerProps: S
1996
2012
  }) => {
1997
- const v = We("md"), { Link: W, useNavigate: F, useLocation: M } = pt(), D = F(), k = M(), I = t == null ? void 0 : t.show, B = () => {
2013
+ const v = We("md"), { Link: W, useNavigate: F, useLocation: A } = pt(), D = F(), k = A(), I = t == null ? void 0 : t.show, B = () => {
1998
2014
  if (typeof (t == null ? void 0 : t.onClick) == "function") {
1999
2015
  t.onClick();
2000
2016
  return;
@@ -2009,7 +2025,7 @@ const Do = (t, r) => {
2009
2025
  return P.length === 0 ? null : v ? /* @__PURE__ */ e(h, { direction: "row", gap: "md", children: P.map(({ title: X, icon: re, buttonProps: $, onClick: T }, V) => /* @__PURE__ */ e(
2010
2026
  N,
2011
2027
  {
2012
- iconLeft: re ? /* @__PURE__ */ e(L, { name: re, size: "md" }) : void 0,
2028
+ iconLeft: re ? /* @__PURE__ */ e(M, { name: re, size: "md" }) : void 0,
2013
2029
  onClick: T,
2014
2030
  ...$,
2015
2031
  children: X
@@ -2022,7 +2038,7 @@ const Do = (t, r) => {
2022
2038
  variant: "tertiary",
2023
2039
  size: "sm",
2024
2040
  iconLeft: /* @__PURE__ */ e(
2025
- L,
2041
+ M,
2026
2042
  {
2027
2043
  name: "MenuBurger"
2028
2044
  }
@@ -2037,7 +2053,7 @@ const Do = (t, r) => {
2037
2053
  {
2038
2054
  intent: ce ? "danger" : void 0,
2039
2055
  disabled: $ == null ? void 0 : $.disabled,
2040
- startIcon: re ? /* @__PURE__ */ e(L, { name: re }) : void 0,
2056
+ startIcon: re ? /* @__PURE__ */ e(M, { name: re }) : void 0,
2041
2057
  onClick: T,
2042
2058
  children: X
2043
2059
  },
@@ -2091,7 +2107,7 @@ const Do = (t, r) => {
2091
2107
  children: [
2092
2108
  P ? typeof r == "string" ? /* @__PURE__ */ d(h, { direction: "row", gap: "lg", align: "center", children: [
2093
2109
  /* @__PURE__ */ d(h, { direction: "row", gap: "sm", align: "center", children: [
2094
- n && /* @__PURE__ */ e(L, { name: n, size: "md", color: "primary" }),
2110
+ n && /* @__PURE__ */ e(M, { name: n, size: "md", color: "primary" }),
2095
2111
  /* @__PURE__ */ e(
2096
2112
  C,
2097
2113
  {
@@ -2215,7 +2231,7 @@ const Do = (t, r) => {
2215
2231
  resizable: v = !0,
2216
2232
  resizeMin: W = Mo,
2217
2233
  resizeMax: F,
2218
- onWidthChange: M
2234
+ onWidthChange: A
2219
2235
  }, D) => {
2220
2236
  const I = !We("md"), B = s ?? u ?? a ?? "357px", w = S ?? [], R = w.length > 1, [z, U] = H(() => {
2221
2237
  const J = w.indexOf(B);
@@ -2224,7 +2240,7 @@ const Do = (t, r) => {
2224
2240
  T.current = J, typeof D == "function" ? D(J) : D && (D.current = J);
2225
2241
  }, ce = R ? w[z] : B, Ce = Q != null ? `${Q}px` : ce, Le = v && !I, ge = z === w.length - 1, we = () => {
2226
2242
  const J = (z + 1) % w.length;
2227
- _(null), U(J), M == null || M(w[J]);
2243
+ _(null), U(J), A == null || A(w[J]);
2228
2244
  }, De = G(
2229
2245
  (J) => {
2230
2246
  const pe = F ?? window.innerWidth;
@@ -2267,7 +2283,7 @@ const Do = (t, r) => {
2267
2283
  ue = null, ke.current != null && _(ke.current);
2268
2284
  }));
2269
2285
  }, ht = (O) => {
2270
- ue != null && window.cancelAnimationFrame(ue), ke.current != null && _(ke.current), pe.releasePointerCapture(O.pointerId), pe.removeEventListener("pointermove", Ye), pe.removeEventListener("pointerup", ht), pe.removeEventListener("pointercancel", ht), document.body.style.cursor = He, document.body.style.userSelect = Je, X(!1), ke.current != null && (M == null || M(`${ke.current}px`));
2286
+ ue != null && window.cancelAnimationFrame(ue), ke.current != null && _(ke.current), pe.releasePointerCapture(O.pointerId), pe.removeEventListener("pointermove", Ye), pe.removeEventListener("pointerup", ht), pe.removeEventListener("pointercancel", ht), document.body.style.cursor = He, document.body.style.userSelect = Je, X(!1), ke.current != null && (A == null || A(`${ke.current}px`));
2271
2287
  };
2272
2288
  pe.addEventListener("pointermove", Ye), pe.addEventListener("pointerup", ht), pe.addEventListener("pointercancel", ht);
2273
2289
  },
@@ -2276,10 +2292,10 @@ const Do = (t, r) => {
2276
2292
  if (!Le || J.key !== "ArrowLeft" && J.key !== "ArrowRight") return;
2277
2293
  J.preventDefault();
2278
2294
  const pe = J.key === "ArrowLeft" ? En : -En, He = Q ?? ((ue = T.current) == null ? void 0 : ue.offsetWidth) ?? W, Je = De(He + pe);
2279
- _(Je), M == null || M(`${Je}px`);
2295
+ _(Je), A == null || A(`${Je}px`);
2280
2296
  },
2281
2297
  onDoubleClick: () => {
2282
- Le && (_(null), M == null || M(ce));
2298
+ Le && (_(null), A == null || A(ce));
2283
2299
  },
2284
2300
  title: "Tarik untuk mengubah lebar — klik dua kali untuk reset",
2285
2301
  onPointerEnter: () => $(!0),
@@ -2337,7 +2353,7 @@ const Do = (t, r) => {
2337
2353
  onClick: we,
2338
2354
  "aria-label": ge ? "Kecilkan panel" : "Lebarkan panel",
2339
2355
  iconRight: /* @__PURE__ */ e(
2340
- L,
2356
+ M,
2341
2357
  {
2342
2358
  name: ge ? "ChevronRight" : "ChevronLeft"
2343
2359
  }
@@ -2352,7 +2368,7 @@ const Do = (t, r) => {
2352
2368
  size: "xs",
2353
2369
  onClick: t,
2354
2370
  "aria-label": l.title || "Tutup",
2355
- iconRight: /* @__PURE__ */ e(L, { name: l.icon }),
2371
+ iconRight: /* @__PURE__ */ e(M, { name: l.icon }),
2356
2372
  children: l.title || void 0
2357
2373
  }
2358
2374
  ) : null
@@ -2692,7 +2708,7 @@ const Do = (t, r) => {
2692
2708
  titleSearchLabel: S = "Work Order",
2693
2709
  withTitleLabels: v = !1
2694
2710
  }) => {
2695
- const F = (g == null ? void 0 : g.isShowLabel) ?? !0, [M, D] = H(!1), [k, I] = H(0), B = () => {
2711
+ const F = (g == null ? void 0 : g.isShowLabel) ?? !0, [A, D] = H(!1), [k, I] = H(0), B = () => {
2696
2712
  I((V) => V + 1);
2697
2713
  }, { searchParams: w, setSearchParams: R, getQueryParam: z } = rt(), U = tr(w.toString()), Q = qr(t, w, s) || "", [_, P] = H(Q), X = z(s), $ = !!(X && !(() => {
2698
2714
  if (X)
@@ -2774,7 +2790,7 @@ const Do = (t, r) => {
2774
2790
  primary: $,
2775
2791
  secondary: !$,
2776
2792
  iconLeft: /* @__PURE__ */ e(
2777
- L,
2793
+ M,
2778
2794
  {
2779
2795
  size: "sm",
2780
2796
  name: (g == null ? void 0 : g.icon) || "FilterHorizontal",
@@ -2864,7 +2880,7 @@ const Do = (t, r) => {
2864
2880
  Mt,
2865
2881
  {
2866
2882
  placeholder: n,
2867
- leftIcon: /* @__PURE__ */ e(L, { name: "Search", width: 20, height: 20 }),
2883
+ leftIcon: /* @__PURE__ */ e(M, { name: "Search", width: 20, height: 20 }),
2868
2884
  onChange: (V) => P(V.target.value),
2869
2885
  value: _,
2870
2886
  fullWidth: !0
@@ -2877,7 +2893,7 @@ const Do = (t, r) => {
2877
2893
  /* @__PURE__ */ e(
2878
2894
  Ko,
2879
2895
  {
2880
- isOpen: M,
2896
+ isOpen: A,
2881
2897
  onClose: () => D(!1),
2882
2898
  filterKey: s,
2883
2899
  filters: p,
@@ -2996,7 +3012,7 @@ function Ur({
2996
3012
  k in B && (delete B[k], Object.keys(B).length ? I[r] = JSON.stringify(B) : delete I[r]), delete I[o], c(I);
2997
3013
  },
2998
3014
  [s, r, o, m, c]
2999
- ), M = G(() => {
3015
+ ), A = G(() => {
3000
3016
  const k = { ...s };
3001
3017
  delete k[r], delete k[n], delete k[o], c(k);
3002
3018
  }, [s, r, n, o, c]), D = u.length > 0;
@@ -3010,7 +3026,7 @@ function Ur({
3010
3026
  getValue: v,
3011
3027
  setValue: W,
3012
3028
  clearValue: F,
3013
- clearAll: M
3029
+ clearAll: A
3014
3030
  };
3015
3031
  }
3016
3032
  const ui = {
@@ -3082,7 +3098,7 @@ function rl({
3082
3098
  v({ ...a, hidden: R });
3083
3099
  },
3084
3100
  [a, v]
3085
- ), M = G(
3101
+ ), A = G(
3086
3102
  (w, R) => {
3087
3103
  if (w === R) return;
3088
3104
  const z = [...a.order], [U] = z.splice(w, 1);
@@ -3106,7 +3122,7 @@ function rl({
3106
3122
  orderedColumns: W,
3107
3123
  allVisible: B,
3108
3124
  toggleVisibility: F,
3109
- reorder: M,
3125
+ reorder: A,
3110
3126
  setAllHidden: D,
3111
3127
  reset: k,
3112
3128
  applyState: I
@@ -3137,14 +3153,14 @@ function nl({
3137
3153
  const k = c.get(D);
3138
3154
  k != null && (F[D] = k);
3139
3155
  });
3140
- const M = {
3156
+ const A = {
3141
3157
  id: `${Date.now()}`,
3142
3158
  name: W,
3143
3159
  query: F,
3144
3160
  columns: i == null ? void 0 : i(),
3145
3161
  createdAt: Date.now()
3146
3162
  };
3147
- p([...u, M]);
3163
+ p([...u, A]);
3148
3164
  },
3149
3165
  [n, c, i, p, u]
3150
3166
  ), b = G(
@@ -3313,7 +3329,7 @@ const al = ({
3313
3329
  variant: o ? "secondary" : "outline",
3314
3330
  tone: "neutral",
3315
3331
  size: "sm",
3316
- iconLeft: /* @__PURE__ */ e(L, { name: "FilterHorizontal" }),
3332
+ iconLeft: /* @__PURE__ */ e(M, { name: "FilterHorizontal" }),
3317
3333
  "aria-label": "Add filter"
3318
3334
  }
3319
3335
  ) }),
@@ -3370,7 +3386,7 @@ const al = ({
3370
3386
  variant: "link",
3371
3387
  tone: "neutral",
3372
3388
  size: "xs",
3373
- iconLeft: /* @__PURE__ */ e(L, { name: "MenuHorizontal" }),
3389
+ iconLeft: /* @__PURE__ */ e(M, { name: "MenuHorizontal" }),
3374
3390
  "aria-label": "Filter actions"
3375
3391
  }
3376
3392
  ) }),
@@ -3378,7 +3394,7 @@ const al = ({
3378
3394
  /* @__PURE__ */ e(
3379
3395
  Ue,
3380
3396
  {
3381
- startIcon: /* @__PURE__ */ e(L, { name: "CrossCircle" }),
3397
+ startIcon: /* @__PURE__ */ e(M, { name: "CrossCircle" }),
3382
3398
  onClick: t,
3383
3399
  children: "Clear value"
3384
3400
  }
@@ -3387,7 +3403,7 @@ const al = ({
3387
3403
  Ue,
3388
3404
  {
3389
3405
  intent: "danger",
3390
- startIcon: /* @__PURE__ */ e(L, { name: "Trash1" }),
3406
+ startIcon: /* @__PURE__ */ e(M, { name: "Trash1" }),
3391
3407
  onClick: r,
3392
3408
  children: "Remove filter"
3393
3409
  }
@@ -3460,7 +3476,7 @@ const al = ({
3460
3476
  onClear: o,
3461
3477
  onRemove: i
3462
3478
  }) => {
3463
- const l = r ? mi(new Date(r)) : null, c = !!l, s = c ? /* @__PURE__ */ d(se, { children: [
3479
+ const l = r ? mi(new Date(r)) : null, c = !!l, s = c ? /* @__PURE__ */ d(ae, { children: [
3464
3480
  /* @__PURE__ */ d("span", { style: { fontWeight: 500 }, children: [
3465
3481
  t.label,
3466
3482
  ":"
@@ -3475,8 +3491,8 @@ const al = ({
3475
3491
  variant: c ? "secondary" : "outline",
3476
3492
  tone: "neutral",
3477
3493
  size: "sm",
3478
- iconLeft: c ? /* @__PURE__ */ e(L, { name: "Calendar", size: "sm" }) : void 0,
3479
- iconRight: /* @__PURE__ */ e(L, { name: "ChevronSmallDown" }),
3494
+ iconLeft: c ? /* @__PURE__ */ e(M, { name: "Calendar", size: "sm" }) : void 0,
3495
+ iconRight: /* @__PURE__ */ e(M, { name: "ChevronSmallDown" }),
3480
3496
  children: s
3481
3497
  }
3482
3498
  ) }),
@@ -3543,7 +3559,7 @@ const al = ({
3543
3559
  onClear: o,
3544
3560
  onRemove: i
3545
3561
  }) => {
3546
- const l = t.ops && t.ops.length > 0 ? t.ops : ul, c = t.defaultOp && l.includes(t.defaultOp) ? t.defaultOp : l[0], s = t.mode ?? "days", a = (r == null ? void 0 : r.op) ?? c, u = r ? pl(r, s) : null, m = !!u, p = m ? /* @__PURE__ */ d(se, { children: [
3562
+ const l = t.ops && t.ops.length > 0 ? t.ops : ul, c = t.defaultOp && l.includes(t.defaultOp) ? t.defaultOp : l[0], s = t.mode ?? "days", a = (r == null ? void 0 : r.op) ?? c, u = r ? pl(r, s) : null, m = !!u, p = m ? /* @__PURE__ */ d(ae, { children: [
3547
3563
  /* @__PURE__ */ d("span", { style: { fontWeight: 500 }, children: [
3548
3564
  t.label,
3549
3565
  ":"
@@ -3581,8 +3597,8 @@ const al = ({
3581
3597
  variant: m ? "secondary" : "outline",
3582
3598
  tone: "neutral",
3583
3599
  size: "sm",
3584
- iconLeft: m ? /* @__PURE__ */ e(L, { name: "Calendar", size: "sm" }) : void 0,
3585
- iconRight: /* @__PURE__ */ e(L, { name: "ChevronSmallDown" }),
3600
+ iconLeft: m ? /* @__PURE__ */ e(M, { name: "Calendar", size: "sm" }) : void 0,
3601
+ iconRight: /* @__PURE__ */ e(M, { name: "ChevronSmallDown" }),
3586
3602
  children: p
3587
3603
  }
3588
3604
  ) }),
@@ -3632,7 +3648,7 @@ const al = ({
3632
3648
  variant: "link",
3633
3649
  tone: "neutral",
3634
3650
  size: "xs",
3635
- iconRight: /* @__PURE__ */ e(L, { name: "ChevronSmallDown" }),
3651
+ iconRight: /* @__PURE__ */ e(M, { name: "ChevronSmallDown" }),
3636
3652
  children: Kt[t]
3637
3653
  }
3638
3654
  ) }),
@@ -3641,7 +3657,7 @@ const al = ({
3641
3657
  {
3642
3658
  selected: t === o,
3643
3659
  onClick: () => n(o),
3644
- endIcon: t === o ? /* @__PURE__ */ e(L, { name: "Check" }) : void 0,
3660
+ endIcon: t === o ? /* @__PURE__ */ e(M, { name: "Check" }) : void 0,
3645
3661
  children: Kt[o]
3646
3662
  },
3647
3663
  o
@@ -3727,7 +3743,7 @@ const al = ({
3727
3743
  variant: "outline",
3728
3744
  tone: "neutral",
3729
3745
  size: "sm",
3730
- iconRight: /* @__PURE__ */ e(L, { name: "ChevronSmallDown" }),
3746
+ iconRight: /* @__PURE__ */ e(M, { name: "ChevronSmallDown" }),
3731
3747
  children: Or[n]
3732
3748
  }
3733
3749
  ) }),
@@ -3735,7 +3751,7 @@ const al = ({
3735
3751
  Ue,
3736
3752
  {
3737
3753
  selected: n === s,
3738
- endIcon: n === s ? /* @__PURE__ */ e(L, { name: "Check" }) : void 0,
3754
+ endIcon: n === s ? /* @__PURE__ */ e(M, { name: "Check" }) : void 0,
3739
3755
  onClick: () => r(
3740
3756
  s === "this" ? { direction: s, period: i } : { direction: s, count: o, period: i }
3741
3757
  ),
@@ -3770,7 +3786,7 @@ const al = ({
3770
3786
  variant: "outline",
3771
3787
  tone: "neutral",
3772
3788
  size: "sm",
3773
- iconRight: /* @__PURE__ */ e(L, { name: "ChevronSmallDown" }),
3789
+ iconRight: /* @__PURE__ */ e(M, { name: "ChevronSmallDown" }),
3774
3790
  children: i
3775
3791
  }
3776
3792
  ) }),
@@ -3778,7 +3794,7 @@ const al = ({
3778
3794
  Ue,
3779
3795
  {
3780
3796
  selected: i === s,
3781
- endIcon: i === s ? /* @__PURE__ */ e(L, { name: "Check" }) : void 0,
3797
+ endIcon: i === s ? /* @__PURE__ */ e(M, { name: "Check" }) : void 0,
3782
3798
  onClick: () => r(
3783
3799
  n === "this" ? { direction: n, period: s } : { direction: n, count: o, period: s }
3784
3800
  ),
@@ -3813,19 +3829,19 @@ const al = ({
3813
3829
  const l = t.type === "dropdown-multiple", c = r.length, s = t.searchable !== !1, [a, u] = H(""), m = t.options, p = typeof t.onSearch == "function", g = (() => {
3814
3830
  if (p) return m;
3815
3831
  const F = a.trim().toLowerCase();
3816
- return F ? m.filter((M) => M.label.toLowerCase().includes(F)) : m;
3817
- })(), b = (F) => r.some((M) => M.value === F.value), S = (F) => {
3832
+ return F ? m.filter((A) => A.label.toLowerCase().includes(F)) : m;
3833
+ })(), b = (F) => r.some((A) => A.value === F.value), S = (F) => {
3818
3834
  if (!l) {
3819
3835
  n([{ label: F.label, value: F.value }]), u("");
3820
3836
  return;
3821
3837
  }
3822
3838
  n(
3823
- b(F) ? r.filter((M) => M.value !== F.value) : [...r, { label: F.label, value: F.value }]
3839
+ b(F) ? r.filter((A) => A.value !== F.value) : [...r, { label: F.label, value: F.value }]
3824
3840
  );
3825
3841
  }, v = (F) => {
3826
- var M;
3827
- u(F), (M = t.onSearch) == null || M.call(t, F);
3828
- }, W = c === 0 ? t.label : /* @__PURE__ */ d(se, { children: [
3842
+ var A;
3843
+ u(F), (A = t.onSearch) == null || A.call(t, F);
3844
+ }, W = c === 0 ? t.label : /* @__PURE__ */ d(ae, { children: [
3829
3845
  /* @__PURE__ */ d("span", { style: { fontWeight: 500 }, children: [
3830
3846
  t.label,
3831
3847
  ":"
@@ -3840,8 +3856,8 @@ const al = ({
3840
3856
  variant: c > 0 ? "secondary" : "outline",
3841
3857
  tone: "neutral",
3842
3858
  size: "sm",
3843
- iconLeft: c > 0 ? /* @__PURE__ */ e(L, { name: "Tag", size: "sm" }) : void 0,
3844
- iconRight: /* @__PURE__ */ e(L, { name: "ChevronSmallDown" }),
3859
+ iconLeft: c > 0 ? /* @__PURE__ */ e(M, { name: "Tag", size: "sm" }) : void 0,
3860
+ iconRight: /* @__PURE__ */ e(M, { name: "ChevronSmallDown" }),
3845
3861
  children: W
3846
3862
  }
3847
3863
  ) }),
@@ -3893,7 +3909,7 @@ const al = ({
3893
3909
  closeOnSelect: !l,
3894
3910
  selected: b(F),
3895
3911
  startIcon: F.avatar,
3896
- endIcon: b(F) ? /* @__PURE__ */ e(L, { name: "Check" }) : void 0,
3912
+ endIcon: b(F) ? /* @__PURE__ */ e(M, { name: "Check" }) : void 0,
3897
3913
  description: F.description,
3898
3914
  onClick: () => S(F),
3899
3915
  children: F.label
@@ -3931,7 +3947,7 @@ const al = ({
3931
3947
  n(
3932
3948
  s ? [] : t.options.map((g) => ({ label: g.label, value: g.value }))
3933
3949
  );
3934
- }, p = c === 0 ? t.label : /* @__PURE__ */ d(se, { children: [
3950
+ }, p = c === 0 ? t.label : /* @__PURE__ */ d(ae, { children: [
3935
3951
  /* @__PURE__ */ d(C, { as: "span", fontWeight: "semibold", children: [
3936
3952
  t.label,
3937
3953
  ":"
@@ -3946,8 +3962,8 @@ const al = ({
3946
3962
  variant: c > 0 ? "secondary" : "outline",
3947
3963
  tone: "neutral",
3948
3964
  size: "sm",
3949
- iconLeft: c > 0 ? /* @__PURE__ */ e(L, { name: "Tag", size: "sm" }) : void 0,
3950
- iconRight: /* @__PURE__ */ e(L, { name: "ChevronSmallDown" }),
3965
+ iconLeft: c > 0 ? /* @__PURE__ */ e(M, { name: "Tag", size: "sm" }) : void 0,
3966
+ iconRight: /* @__PURE__ */ e(M, { name: "ChevronSmallDown" }),
3951
3967
  children: p
3952
3968
  }
3953
3969
  ) }),
@@ -4008,7 +4024,7 @@ const al = ({
4008
4024
  setValue: o,
4009
4025
  clearValue: i,
4010
4026
  removeFilter: l
4011
- }) => /* @__PURE__ */ e(se, { children: t.map((c) => {
4027
+ }) => /* @__PURE__ */ e(ae, { children: t.map((c) => {
4012
4028
  const s = r[c];
4013
4029
  if (!s) return null;
4014
4030
  const a = n(s), u = s.locked ? void 0 : () => l(c);
@@ -4054,17 +4070,17 @@ const al = ({
4054
4070
  showPagination: s = !0
4055
4071
  }) => {
4056
4072
  var F;
4057
- const { searchQueries: a, setSearchParams: u, searchParams: m } = rt(), p = m.get(n), g = p ? Number(p) : i, b = (M) => {
4058
- u({ ...a, [r]: String(M) });
4059
- }, S = (M) => {
4073
+ const { searchQueries: a, setSearchParams: u, searchParams: m } = rt(), p = m.get(n), g = p ? Number(p) : i, b = (A) => {
4074
+ u({ ...a, [r]: String(A) });
4075
+ }, S = (A) => {
4060
4076
  u({
4061
4077
  ...a,
4062
- [n]: M,
4078
+ [n]: A,
4063
4079
  [r]: "1"
4064
4080
  // reset to first page when page size changes
4065
4081
  });
4066
4082
  }, v = (t == null ? void 0 : t.rangeStart) ?? (((t == null ? void 0 : t.currentPage) || 0) > 1 ? (((t == null ? void 0 : t.currentPage) || 0) - 1) * ((t == null ? void 0 : t.perPage) || 0) + 1 : 0), W = (t == null ? void 0 : t.rangeEnd) ?? ((t == null ? void 0 : t.totalCurrentPage) !== (t == null ? void 0 : t.perPage) ? t == null ? void 0 : t.totalData : ((t == null ? void 0 : t.currentPage) || 1) * ((t == null ? void 0 : t.totalCurrentPage) || 0));
4067
- return /* @__PURE__ */ d(se, { children: [
4083
+ return /* @__PURE__ */ d(ae, { children: [
4068
4084
  l && /* @__PURE__ */ e(C, { fontSize: "sm", fontWeight: "medium", color: "primary", truncate: !0, children: `${v}-${W} of ${((F = t == null ? void 0 : t.totalData) == null ? void 0 : F.toLocaleString()) || 0}` }),
4069
4085
  c && /* @__PURE__ */ d(je, { position: "bottom-left", children: [
4070
4086
  /* @__PURE__ */ e(Ze, { children: /* @__PURE__ */ e(
@@ -4073,19 +4089,19 @@ const al = ({
4073
4089
  variant: "outline",
4074
4090
  tone: "neutral",
4075
4091
  size: "sm",
4076
- iconRight: /* @__PURE__ */ e(L, { name: "ChevronSmallDown" }),
4092
+ iconRight: /* @__PURE__ */ e(M, { name: "ChevronSmallDown" }),
4077
4093
  "aria-label": "Rows per page",
4078
4094
  children: Bn(g)
4079
4095
  }
4080
4096
  ) }),
4081
- /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ e(qe, { children: o.map((M) => /* @__PURE__ */ e(
4097
+ /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ e(qe, { children: o.map((A) => /* @__PURE__ */ e(
4082
4098
  Ue,
4083
4099
  {
4084
- selected: M === g,
4085
- onClick: () => S(String(M)),
4086
- children: Bn(M)
4100
+ selected: A === g,
4101
+ onClick: () => S(String(A)),
4102
+ children: Bn(A)
4087
4103
  },
4088
- M
4104
+ A
4089
4105
  )) }) })
4090
4106
  ] }),
4091
4107
  s && ((t == null ? void 0 : t.totalPage) ?? 0) > 1 && /* @__PURE__ */ e(
@@ -4150,13 +4166,13 @@ const Fl = 240, pi = ({
4150
4166
  pageKey: n
4151
4167
  });
4152
4168
  }, [W]);
4153
- const M = G(() => {
4169
+ const A = G(() => {
4154
4170
  p(!0), requestAnimationFrame(() => {
4155
4171
  var B;
4156
4172
  return (B = F.current) == null ? void 0 : B.focus();
4157
4173
  });
4158
4174
  }, []);
4159
- return El(i, M), // No internal gap: the trigger and the animated input are never visible at
4175
+ return El(i, A), // No internal gap: the trigger and the animated input are never visible at
4160
4176
  // the same time, so spacing to neighbours is handled by the parent cluster.
4161
4177
  /* @__PURE__ */ d(h, { display: "flex", direction: "row", align: "center", gap: "spacing-0", children: [
4162
4178
  g && /* @__PURE__ */ e(
@@ -4165,10 +4181,10 @@ const Fl = 240, pi = ({
4165
4181
  variant: "outline",
4166
4182
  tone: "neutral",
4167
4183
  size: "sm",
4168
- iconLeft: /* @__PURE__ */ e(L, { name: "Search", size: "sm" }),
4184
+ iconLeft: /* @__PURE__ */ e(M, { name: "Search", size: "sm" }),
4169
4185
  "aria-label": "Search",
4170
4186
  "aria-expanded": !1,
4171
- onClick: M
4187
+ onClick: A
4172
4188
  }
4173
4189
  ),
4174
4190
  /* @__PURE__ */ d(
@@ -4192,7 +4208,7 @@ const Fl = 240, pi = ({
4192
4208
  fullWidth: !0,
4193
4209
  value: S,
4194
4210
  placeholder: o,
4195
- leftIcon: /* @__PURE__ */ e(L, { name: "Search", width: 16, height: 16 }),
4211
+ leftIcon: /* @__PURE__ */ e(M, { name: "Search", width: 16, height: 16 }),
4196
4212
  onChange: (B) => v(B.target.value),
4197
4213
  onKeyDown: (B) => {
4198
4214
  var w;
@@ -4252,7 +4268,7 @@ const Fl = 240, pi = ({
4252
4268
  variant: r ? "outline" : "secondary",
4253
4269
  tone: "neutral",
4254
4270
  size: "sm",
4255
- iconLeft: /* @__PURE__ */ e(L, { name: "Grid", size: "sm" }),
4271
+ iconLeft: /* @__PURE__ */ e(M, { name: "Grid", size: "sm" }),
4256
4272
  "aria-label": "Customize columns"
4257
4273
  }
4258
4274
  ) }),
@@ -4331,7 +4347,7 @@ const Fl = 240, pi = ({
4331
4347
  cursor: b ? "grab" : "default",
4332
4348
  opacity: b ? 1 : 0.4
4333
4349
  },
4334
- children: /* @__PURE__ */ e(L, { name: "DragVertical", width: 16, height: 16 })
4350
+ children: /* @__PURE__ */ e(M, { name: "DragVertical", width: 16, height: 16 })
4335
4351
  }
4336
4352
  ),
4337
4353
  p.icon && /* @__PURE__ */ e(h, { direction: "column", align: "center", color: "icon-subtle", style: { display: "inline-flex" }, children: p.icon }),
@@ -4381,7 +4397,7 @@ const Fl = 240, pi = ({
4381
4397
  variant: t.length > 0 ? "secondary" : "outline",
4382
4398
  tone: (t.length > 0, "neutral"),
4383
4399
  size: "sm",
4384
- iconLeft: /* @__PURE__ */ e(L, { name: "Bookmark", size: "sm" }),
4400
+ iconLeft: /* @__PURE__ */ e(M, { name: "Bookmark", size: "sm" }),
4385
4401
  "aria-label": "Saved views"
4386
4402
  }
4387
4403
  ) }),
@@ -4402,7 +4418,7 @@ const Fl = 240, pi = ({
4402
4418
  children: t.length === 0 ? /* @__PURE__ */ e(h, { direction: "column", paddingBlock: "sm", children: /* @__PURE__ */ e(C, { fontSize: "sm", color: "subtlest", children: "No saved views yet" }) }) : t.map((s) => /* @__PURE__ */ e(
4403
4419
  Ue,
4404
4420
  {
4405
- startIcon: /* @__PURE__ */ e(L, { name: "Bookmark" }),
4421
+ startIcon: /* @__PURE__ */ e(M, { name: "Bookmark" }),
4406
4422
  onClick: () => r(s),
4407
4423
  endIcon: /* @__PURE__ */ e(
4408
4424
  N,
@@ -4410,7 +4426,7 @@ const Fl = 240, pi = ({
4410
4426
  variant: "link",
4411
4427
  tone: "error",
4412
4428
  size: "sm",
4413
- iconLeft: /* @__PURE__ */ e(L, { name: "Trash2" }),
4429
+ iconLeft: /* @__PURE__ */ e(M, { name: "Trash2" }),
4414
4430
  "aria-label": `Delete ${s.name}`,
4415
4431
  onClick: (a) => {
4416
4432
  a.stopPropagation(), n(s.id);
@@ -4508,7 +4524,7 @@ const Fl = 240, pi = ({
4508
4524
  variant: "link",
4509
4525
  tone: "neutral",
4510
4526
  size: "sm",
4511
- iconLeft: /* @__PURE__ */ e(L, { name: "Cross" }),
4527
+ iconLeft: /* @__PURE__ */ e(M, { name: "Cross" }),
4512
4528
  "aria-label": "Close filter",
4513
4529
  onClick: r
4514
4530
  }
@@ -4671,7 +4687,7 @@ const Fl = 240, pi = ({
4671
4687
  variant: "outline",
4672
4688
  tone: "neutral",
4673
4689
  size: "sm",
4674
- iconLeft: /* @__PURE__ */ e(L, { name: "MenuVertical", size: "sm" }),
4690
+ iconLeft: /* @__PURE__ */ e(M, { name: "MenuVertical", size: "sm" }),
4675
4691
  "aria-label": "More options"
4676
4692
  }
4677
4693
  ) }),
@@ -4681,7 +4697,7 @@ const Fl = 240, pi = ({
4681
4697
  Ue,
4682
4698
  {
4683
4699
  selected: p === u,
4684
- endIcon: p === u ? /* @__PURE__ */ e(L, { name: "Check" }) : void 0,
4700
+ endIcon: p === u ? /* @__PURE__ */ e(M, { name: "Check" }) : void 0,
4685
4701
  onClick: () => m(String(p)),
4686
4702
  children: Ml(p)
4687
4703
  },
@@ -4709,7 +4725,7 @@ const Fl = 240, pi = ({
4709
4725
  pageKey: v,
4710
4726
  searchPlaceholder: W,
4711
4727
  searchShortcut: F,
4712
- searchCollapsible: M,
4728
+ searchCollapsible: A,
4713
4729
  pagination: D,
4714
4730
  perPageKey: k,
4715
4731
  pageSizeOptions: I,
@@ -4766,7 +4782,7 @@ const Fl = 240, pi = ({
4766
4782
  pageKey: v,
4767
4783
  placeholder: W,
4768
4784
  shortcut: F,
4769
- collapsible: M
4785
+ collapsible: A
4770
4786
  }
4771
4787
  ),
4772
4788
  /* @__PURE__ */ e(
@@ -4775,7 +4791,7 @@ const Fl = 240, pi = ({
4775
4791
  variant: l ? "secondary" : "outline",
4776
4792
  tone: "neutral",
4777
4793
  size: "sm",
4778
- iconLeft: /* @__PURE__ */ e(L, { name: "FilterHorizontal" }),
4794
+ iconLeft: /* @__PURE__ */ e(M, { name: "FilterHorizontal" }),
4779
4795
  onClick: () => we(!0),
4780
4796
  "aria-label": "Open filters",
4781
4797
  children: l ? `Filter: ${o.length}` : null
@@ -4890,7 +4906,7 @@ const Fl = 240, pi = ({
4890
4906
  searchPosition: v = "right",
4891
4907
  searchCollapsible: W = !0,
4892
4908
  pagination: F,
4893
- columns: M = [],
4909
+ columns: A = [],
4894
4910
  onColumnsChange: D,
4895
4911
  columnsState: k,
4896
4912
  scopeId: I,
@@ -4918,7 +4934,7 @@ const Fl = 240, pi = ({
4918
4934
  pageKey: i,
4919
4935
  searchKey: g
4920
4936
  }), ge = rl({
4921
- columns: M,
4937
+ columns: A,
4922
4938
  scopeId: _,
4923
4939
  storage: z,
4924
4940
  onColumnsChange: D,
@@ -5063,7 +5079,7 @@ const Fl = 240, pi = ({
5063
5079
  onSave: we.saveView
5064
5080
  }
5065
5081
  ),
5066
- M.length > 0 && /* @__PURE__ */ e(
5082
+ A.length > 0 && /* @__PURE__ */ e(
5067
5083
  yi,
5068
5084
  {
5069
5085
  columns: ge.orderedColumns,
@@ -5104,7 +5120,7 @@ const Fl = 240, pi = ({
5104
5120
  showPagination: a,
5105
5121
  showResultCount: u,
5106
5122
  showPageSize: m,
5107
- hasColumns: M.length > 0,
5123
+ hasColumns: A.length > 0,
5108
5124
  orderedColumns: ge.orderedColumns,
5109
5125
  allVisible: ge.allVisible,
5110
5126
  onToggleVisibility: ge.toggleVisibility,
@@ -5165,10 +5181,10 @@ const Fl = 240, pi = ({
5165
5181
  searchKey: c
5166
5182
  }), { searchParams: v } = rt(), W = v.toString();
5167
5183
  return ve(() => {
5168
- const M = {}, D = {}, k = In(v.get(i), s), I = In(v.get(l), a);
5169
- M[(u == null ? void 0 : u.page) ?? "page"] = k, M[(u == null ? void 0 : u.perPage) ?? "perPage"] = I;
5184
+ const A = {}, D = {}, k = In(v.get(i), s), I = In(v.get(l), a);
5185
+ A[(u == null ? void 0 : u.page) ?? "page"] = k, A[(u == null ? void 0 : u.perPage) ?? "perPage"] = I;
5170
5186
  const B = qr(c, v, n) || "";
5171
- B && (M[(u == null ? void 0 : u.search) ?? "search"] = B);
5187
+ B && (A[(u == null ? void 0 : u.search) ?? "search"] = B);
5172
5188
  let w = !1;
5173
5189
  for (const R of p) {
5174
5190
  const z = g[R];
@@ -5179,10 +5195,10 @@ const Fl = 240, pi = ({
5179
5195
  if (_ == null || Array.isArray(_) && _.length === 0)
5180
5196
  continue;
5181
5197
  const P = (u == null ? void 0 : u[R]) ?? R;
5182
- M[P] = _, w = !0;
5198
+ A[P] = _, w = !0;
5183
5199
  }
5184
5200
  return {
5185
- params: M,
5201
+ params: A,
5186
5202
  raw: D,
5187
5203
  hasActiveFilter: b || !!B || w
5188
5204
  };
@@ -5218,23 +5234,23 @@ const Fl = 240, pi = ({
5218
5234
  activeFilterKey: n,
5219
5235
  pageKey: o,
5220
5236
  searchKey: i
5221
- }), p = (F, M) => {
5237
+ }), p = (F, A) => {
5222
5238
  var k;
5223
5239
  const D = F.options;
5224
- return ((k = D == null ? void 0 : D.find((I) => I.value === M)) == null ? void 0 : k.label) ?? M;
5240
+ return ((k = D == null ? void 0 : D.find((I) => I.value === A)) == null ? void 0 : k.label) ?? A;
5225
5241
  }, g = G(
5226
5242
  (F) => {
5227
- const M = l[F];
5228
- if (!M) return [];
5229
- const D = c(M);
5243
+ const A = l[F];
5244
+ if (!A) return [];
5245
+ const D = c(A);
5230
5246
  return Array.isArray(D) ? D.map((k) => String(k.value)) : [];
5231
5247
  },
5232
5248
  [l, c]
5233
5249
  ), b = G(
5234
- (F, M) => {
5250
+ (F, A) => {
5235
5251
  const D = l[F];
5236
5252
  if (!D || !Il.includes(D.type)) return;
5237
- const k = Array.isArray(M) ? M : [M];
5253
+ const k = Array.isArray(A) ? A : [A];
5238
5254
  if (k.length === 0) {
5239
5255
  a(F);
5240
5256
  return;
@@ -5246,13 +5262,13 @@ const Fl = 240, pi = ({
5246
5262
  },
5247
5263
  [l, s, a]
5248
5264
  ), S = G(
5249
- (F, M) => {
5265
+ (F, A) => {
5250
5266
  const D = g(F);
5251
- b(F, D.includes(M) ? D.filter((k) => k !== M) : [...D, M]);
5267
+ b(F, D.includes(A) ? D.filter((k) => k !== A) : [...D, A]);
5252
5268
  },
5253
5269
  [g, b]
5254
5270
  ), v = G(
5255
- (F, M) => g(F).includes(M),
5271
+ (F, A) => g(F).includes(A),
5256
5272
  [g]
5257
5273
  ), W = G((F) => a(F), [a]);
5258
5274
  return { set: b, toggle: S, clear: W, clearAll: u, isActive: v, values: g, hasActiveFilter: m };
@@ -5335,7 +5351,7 @@ const Fl = 240, pi = ({
5335
5351
  flexDirection: c ? "row" : "column-reverse",
5336
5352
  gap: "16px"
5337
5353
  },
5338
- children: o ? o({ filter: s }) : /* @__PURE__ */ d(se, { children: [
5354
+ children: o ? o({ filter: s }) : /* @__PURE__ */ d(ae, { children: [
5339
5355
  /* @__PURE__ */ d(h, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flex: 1, minWidth: 0 }, children: [
5340
5356
  s,
5341
5357
  n
@@ -5357,7 +5373,7 @@ const Fl = 240, pi = ({
5357
5373
  N,
5358
5374
  {
5359
5375
  fullWidth: !c,
5360
- iconLeft: m ? /* @__PURE__ */ e(L, { name: m }) : void 0,
5376
+ iconLeft: m ? /* @__PURE__ */ e(M, { name: m }) : void 0,
5361
5377
  onClick: g,
5362
5378
  ...p,
5363
5379
  children: u
@@ -5435,7 +5451,7 @@ const Fl = 240, pi = ({
5435
5451
  borderTop: "1px solid var(--sa-border-subtle, #0b120e24)",
5436
5452
  flexShrink: 0
5437
5453
  },
5438
- children: i ? /* @__PURE__ */ d(se, { children: [
5454
+ children: i ? /* @__PURE__ */ d(ae, { children: [
5439
5455
  /* @__PURE__ */ d(h, { style: { display: "flex", flexDirection: "row", gap: "8px", alignItems: "center", textWrap: "nowrap" }, children: [
5440
5456
  /* @__PURE__ */ e(C, { children: "Rows Per Page: " }),
5441
5457
  /* @__PURE__ */ e(
@@ -5517,7 +5533,7 @@ const Fl = 240, pi = ({
5517
5533
  v.stopPropagation(), n || (W = t.onOpen) == null || W.call(t), o((F) => !F);
5518
5534
  },
5519
5535
  children: /* @__PURE__ */ e(
5520
- L,
5536
+ M,
5521
5537
  {
5522
5538
  name: n ? "ChevronUp" : "ChevronDown",
5523
5539
  size: "sm",
@@ -5596,7 +5612,7 @@ const Fl = 240, pi = ({
5596
5612
  {
5597
5613
  ref: c,
5598
5614
  placeholder: `Search ${r.toLowerCase()}...`,
5599
- leftIcon: /* @__PURE__ */ e(L, { name: "Search", size: "sm" }),
5615
+ leftIcon: /* @__PURE__ */ e(M, { name: "Search", size: "sm" }),
5600
5616
  value: s,
5601
5617
  onChange: (v) => a(v.target.value),
5602
5618
  style: { fontSize: "14px" }
@@ -5628,7 +5644,7 @@ const Fl = 240, pi = ({
5628
5644
  },
5629
5645
  children: [
5630
5646
  /* @__PURE__ */ e(
5631
- L,
5647
+ M,
5632
5648
  {
5633
5649
  name: "Loading",
5634
5650
  size: "lg",
@@ -5709,7 +5725,7 @@ const Fl = 240, pi = ({
5709
5725
  },
5710
5726
  children: [
5711
5727
  /* @__PURE__ */ e(
5712
- L,
5728
+ M,
5713
5729
  {
5714
5730
  name: "Search",
5715
5731
  size: "lg",
@@ -5846,7 +5862,7 @@ const Fl = 240, pi = ({
5846
5862
  customEmptyState: v,
5847
5863
  enableColumnResize: W = !1,
5848
5864
  defaultColumnWidths: F,
5849
- onColumnWidthsChange: M,
5865
+ onColumnWidthsChange: A,
5850
5866
  defaultMinColumnWidth: D = 60,
5851
5867
  sort: k,
5852
5868
  defaultSort: I,
@@ -5885,8 +5901,8 @@ const Fl = 240, pi = ({
5885
5901
  $e.current.querySelectorAll("thead tr th")
5886
5902
  ), K = [];
5887
5903
  let q = 0;
5888
- O.forEach((he, ae) => {
5889
- K[ae] = q, ae < p && (q += he.offsetWidth);
5904
+ O.forEach((he, de) => {
5905
+ K[de] = q, de < p && (q += he.offsetWidth);
5890
5906
  }), Qe(K);
5891
5907
  }, [p, t, r, J]);
5892
5908
  const Je = (O) => {
@@ -5904,18 +5920,18 @@ const Fl = 240, pi = ({
5904
5920
  if (!q) return;
5905
5921
  const he = Math.round(q.getBoundingClientRect().width);
5906
5922
  He.current = { colIndex: K, startX: O.clientX, startWidth: he };
5907
- const ae = document.body.style.userSelect, Me = document.body.style.cursor;
5923
+ const de = document.body.style.userSelect, Me = document.body.style.cursor;
5908
5924
  document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
5909
5925
  const Oe = (Xe) => {
5910
5926
  var Ke;
5911
5927
  const Re = He.current;
5912
5928
  if (!Re) return;
5913
- const nt = ((Ke = t[Re.colIndex]) == null ? void 0 : Ke.minWidth) ?? D, Se = Math.max(nt, Re.startWidth + (Xe.clientX - Re.startX));
5929
+ const nt = ((Ke = t[Re.colIndex]) == null ? void 0 : Ke.minWidth) ?? D, Ee = Math.max(nt, Re.startWidth + (Xe.clientX - Re.startX));
5914
5930
  pe(
5915
- (ft) => ft[Re.colIndex] === Se ? ft : { ...ft, [Re.colIndex]: Se }
5931
+ (ft) => ft[Re.colIndex] === Ee ? ft : { ...ft, [Re.colIndex]: Ee }
5916
5932
  );
5917
5933
  }, lt = () => {
5918
- document.removeEventListener("mousemove", Oe), document.removeEventListener("mouseup", lt), document.body.style.userSelect = ae, document.body.style.cursor = Me, He.current = null, M && pe((Xe) => (M(Xe), Xe));
5934
+ document.removeEventListener("mousemove", Oe), document.removeEventListener("mouseup", lt), document.body.style.userSelect = de, document.body.style.cursor = Me, He.current = null, A && pe((Xe) => (A(Xe), Xe));
5919
5935
  };
5920
5936
  document.addEventListener("mousemove", Oe), document.addEventListener("mouseup", lt);
5921
5937
  };
@@ -5930,8 +5946,8 @@ const Fl = 240, pi = ({
5930
5946
  children: /* @__PURE__ */ d(tt, { children: [
5931
5947
  t.map((O, K) => {
5932
5948
  var Dt, bt;
5933
- const q = p > 0 && K < p, he = ze[K] ?? 0, ae = Ye(O), Oe = K === t.length - 1 && T && w, lt = _(O), Xe = !!O.sortable && !!lt, Re = Xe && (Q == null ? void 0 : Q.key) === lt ? Q.direction : null, nt = O.title || ((Dt = O.accessor) == null ? void 0 : Dt.toString()) || "", Se = (bt = O.headerTooltip) != null && bt.showIcon ? /* @__PURE__ */ e(
5934
- L,
5949
+ const q = p > 0 && K < p, he = ze[K] ?? 0, de = Ye(O), Oe = K === t.length - 1 && T && w, lt = _(O), Xe = !!O.sortable && !!lt, Re = Xe && (Q == null ? void 0 : Q.key) === lt ? Q.direction : null, nt = O.title || ((Dt = O.accessor) == null ? void 0 : Dt.toString()) || "", Ee = (bt = O.headerTooltip) != null && bt.showIcon ? /* @__PURE__ */ e(
5950
+ M,
5935
5951
  {
5936
5952
  name: "InfoCircle",
5937
5953
  size: "xs",
@@ -5960,13 +5976,13 @@ const Fl = 240, pi = ({
5960
5976
  },
5961
5977
  children: [
5962
5978
  Ke,
5963
- Se,
5979
+ Ee,
5964
5980
  /* @__PURE__ */ e($l, { direction: Re })
5965
5981
  ]
5966
5982
  }
5967
5983
  ) : /* @__PURE__ */ d("span", { style: { flex: 1, minWidth: 0, display: "flex", alignItems: "center", gap: 4 }, children: [
5968
5984
  Ke,
5969
- Se
5985
+ Ee
5970
5986
  ] });
5971
5987
  return /* @__PURE__ */ d(
5972
5988
  St,
@@ -6027,7 +6043,7 @@ const Fl = 240, pi = ({
6027
6043
  ]
6028
6044
  }
6029
6045
  ),
6030
- ae && /* @__PURE__ */ e(
6046
+ de && /* @__PURE__ */ e(
6031
6047
  "div",
6032
6048
  {
6033
6049
  onMouseDown: (xt) => ht(xt, K),
@@ -6086,19 +6102,19 @@ const Fl = 240, pi = ({
6086
6102
  },
6087
6103
  onMouseEnter: (q) => {
6088
6104
  const he = q.currentTarget;
6089
- he.style.backgroundColor = Hn, Array.from(he.querySelectorAll("td")).forEach((ae) => {
6090
- ae.style.position === "sticky" && (ae.style.backgroundColor = Hn);
6105
+ he.style.backgroundColor = Hn, Array.from(he.querySelectorAll("td")).forEach((de) => {
6106
+ de.style.position === "sticky" && (de.style.backgroundColor = Hn);
6091
6107
  });
6092
6108
  },
6093
6109
  onMouseLeave: (q) => {
6094
6110
  const he = q.currentTarget;
6095
- he.style.backgroundColor = "", Array.from(he.querySelectorAll("td")).forEach((ae) => {
6096
- ae.style.position === "sticky" && (ae.style.backgroundColor = Er);
6111
+ he.style.backgroundColor = "", Array.from(he.querySelectorAll("td")).forEach((de) => {
6112
+ de.style.position === "sticky" && (de.style.backgroundColor = Er);
6097
6113
  });
6098
6114
  },
6099
6115
  children: [
6100
6116
  t.map((q, he) => {
6101
- const ae = q.render ? q.render(O, K, r) : we(O, q.accessor), Me = p > 0 && he < p, Oe = ze[he] ?? 0, lt = J[he] !== void 0, Xe = Me && he === p - 1;
6117
+ const de = q.render ? q.render(O, K, r) : we(O, q.accessor), Me = p > 0 && he < p, Oe = ze[he] ?? 0, lt = J[he] !== void 0, Xe = Me && he === p - 1;
6102
6118
  return /* @__PURE__ */ e(
6103
6119
  Ve,
6104
6120
  {
@@ -6117,7 +6133,7 @@ const Fl = 240, pi = ({
6117
6133
  textAlign: q.textAlign === "text-right" ? "right" : q.textAlign === "text-center" ? "center" : "left",
6118
6134
  ...ue(he, q.width)
6119
6135
  },
6120
- children: typeof ae == "string" ? /* @__PURE__ */ e(
6136
+ children: typeof de == "string" ? /* @__PURE__ */ e(
6121
6137
  C,
6122
6138
  {
6123
6139
  style: {
@@ -6126,9 +6142,9 @@ const Fl = 240, pi = ({
6126
6142
  textOverflow: "ellipsis",
6127
6143
  textAlign: q.textAlign === "text-right" ? "right" : q.textAlign === "text-center" ? "center" : "left"
6128
6144
  },
6129
- children: ae
6145
+ children: de
6130
6146
  }
6131
- ) : ae
6147
+ ) : de
6132
6148
  },
6133
6149
  `row-${K}-col-${he}`
6134
6150
  );
@@ -6150,7 +6166,7 @@ const Fl = 240, pi = ({
6150
6166
  variant: "outline",
6151
6167
  tone: "neutral",
6152
6168
  onClick: () => n(O.id, O),
6153
- iconLeft: /* @__PURE__ */ e(L, { name: "DocumentClean", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
6169
+ iconLeft: /* @__PURE__ */ e(M, { name: "DocumentClean", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
6154
6170
  }
6155
6171
  ) }, "detail") : q === "update" && o && (s == null ? void 0 : s(O)) !== !1 ? /* @__PURE__ */ e(Ne, { label: "Update", position: he, children: /* @__PURE__ */ e(
6156
6172
  N,
@@ -6159,7 +6175,7 @@ const Fl = 240, pi = ({
6159
6175
  variant: "outline",
6160
6176
  tone: "neutral",
6161
6177
  onClick: () => o(O),
6162
- iconLeft: /* @__PURE__ */ e(L, { name: "Edit1", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
6178
+ iconLeft: /* @__PURE__ */ e(M, { name: "Edit1", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
6163
6179
  }
6164
6180
  ) }, "update") : q === "delete" && i && (c == null ? void 0 : c(O)) !== !1 ? /* @__PURE__ */ e(Ne, { label: "Delete", position: he, children: /* @__PURE__ */ e(
6165
6181
  N,
@@ -6168,7 +6184,7 @@ const Fl = 240, pi = ({
6168
6184
  variant: "outline",
6169
6185
  tone: "neutral",
6170
6186
  onClick: () => i(O.id, O),
6171
- iconLeft: /* @__PURE__ */ e(L, { name: "Trash1", size: "sm", style: { color: "var(--sa-color-error-600, #c9184a)" } })
6187
+ iconLeft: /* @__PURE__ */ e(M, { name: "Trash1", size: "sm", style: { color: "var(--sa-color-error-600, #c9184a)" } })
6172
6188
  }
6173
6189
  ) }, "delete") : q === "custom" ? /* @__PURE__ */ e(Ct.Fragment, { children: b == null ? void 0 : b(O) }, "custom") : null;
6174
6190
  }) }) }) : null
@@ -6238,7 +6254,7 @@ function Zl(t) {
6238
6254
  const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)", Gl = ({
6239
6255
  sortDir: t,
6240
6256
  frozen: r
6241
- }) => t === "asc" ? /* @__PURE__ */ e(L, { name: "ChevronSmallUp" }) : t === "desc" ? /* @__PURE__ */ e(L, { name: "ChevronSmallDown" }) : r ? /* @__PURE__ */ e(L, { name: "LockOn", size: "xs" }) : /* @__PURE__ */ e(L, { name: "Filter", size: "xs" }), Zt = ({ icon: t, label: r, active: n, danger: o, onClick: i }) => {
6257
+ }) => t === "asc" ? /* @__PURE__ */ e(M, { name: "ChevronSmallUp" }) : t === "desc" ? /* @__PURE__ */ e(M, { name: "ChevronSmallDown" }) : r ? /* @__PURE__ */ e(M, { name: "LockOn", size: "xs" }) : /* @__PURE__ */ e(M, { name: "Filter", size: "xs" }), Zt = ({ icon: t, label: r, active: n, danger: o, onClick: i }) => {
6242
6258
  const l = o ? "var(--sa-text-error, #a4133c)" : "var(--sa-text-primary, #292a2e)";
6243
6259
  return /* @__PURE__ */ d(
6244
6260
  "button",
@@ -6265,7 +6281,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6265
6281
  c.currentTarget.style.background = n ? "var(--sa-background-brand-subtlest, #e6edf6)" : "none";
6266
6282
  },
6267
6283
  children: [
6268
- /* @__PURE__ */ e(L, { name: t, size: "sm", style: { color: l, flexShrink: 0 } }),
6284
+ /* @__PURE__ */ e(M, { name: t, size: "sm", style: { color: l, flexShrink: 0 } }),
6269
6285
  /* @__PURE__ */ e(C, { as: "span", style: { color: l }, children: r })
6270
6286
  ]
6271
6287
  }
@@ -6302,7 +6318,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6302
6318
  const v = (W) => {
6303
6319
  W(), m(!1);
6304
6320
  };
6305
- return /* @__PURE__ */ d(se, { children: [
6321
+ return /* @__PURE__ */ d(ae, { children: [
6306
6322
  /* @__PURE__ */ e(
6307
6323
  "button",
6308
6324
  {
@@ -6350,7 +6366,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6350
6366
  flexDirection: "column"
6351
6367
  },
6352
6368
  children: [
6353
- r && /* @__PURE__ */ d(se, { children: [
6369
+ r && /* @__PURE__ */ d(ae, { children: [
6354
6370
  /* @__PURE__ */ e(
6355
6371
  Zt,
6356
6372
  {
@@ -6480,7 +6496,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6480
6496
  mobileLayout: v = "cards",
6481
6497
  mobileBreakpoint: W = "md",
6482
6498
  groupSeparator: F,
6483
- summary: M,
6499
+ summary: A,
6484
6500
  footer: D,
6485
6501
  stickyFooter: k = !1,
6486
6502
  emptyState: I,
@@ -6511,51 +6527,51 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6511
6527
  ), J = $e ? p ?? null : ze, pe = !b, He = (y) => {
6512
6528
  b == null || b(y), $e || Qe(y);
6513
6529
  }, { headerGroups: Je, leafColumns: ue, hasGroups: Ye } = ve(() => {
6514
- var de;
6515
- const y = new Set(De.hidden ?? []), x = (ie, be) => ie.key ?? (typeof ie.accessor == "string" ? ie.accessor : `col-${be}`), A = t.map((ie, be) => {
6530
+ var se;
6531
+ const y = new Set(De.hidden ?? []), x = (ne, be) => ne.key ?? (typeof ne.accessor == "string" ? ne.accessor : `col-${be}`), L = t.map((ne, be) => {
6516
6532
  var ot;
6517
- if ((ot = ie.children) != null && ot.length) {
6518
- const zt = ie.children.map((ct, Rt) => ({ col: ct, key: x(ct, `${be}-${Rt}`) })).filter((ct) => !y.has(ct.key));
6519
- return { col: ie, key: ie.key ?? `group-${be}`, isGroup: !0, leaves: zt };
6533
+ if ((ot = ne.children) != null && ot.length) {
6534
+ const zt = ne.children.map((ct, Rt) => ({ col: ct, key: x(ct, `${be}-${Rt}`) })).filter((ct) => !y.has(ct.key));
6535
+ return { col: ne, key: ne.key ?? `group-${be}`, isGroup: !0, leaves: zt };
6520
6536
  }
6521
- const xe = { col: ie, key: x(ie, `${be}`) };
6537
+ const xe = { col: ne, key: x(ne, `${be}`) };
6522
6538
  return {
6523
- col: ie,
6539
+ col: ne,
6524
6540
  key: xe.key,
6525
6541
  isGroup: !1,
6526
6542
  leaves: y.has(xe.key) ? [] : [xe]
6527
6543
  };
6528
- }).filter((ie) => ie.leaves.length > 0), Z = A.some((ie) => ie.isGroup);
6529
- let ne = A.flatMap((ie) => ie.leaves);
6530
- if (!Z && ((de = De.order) != null && de.length)) {
6531
- const ie = new Map(De.order.map((be, xe) => [be, xe]));
6532
- ne = [...ne].sort(
6533
- (be, xe) => (ie.get(be.key) ?? 1 / 0) - (ie.get(xe.key) ?? 1 / 0)
6544
+ }).filter((ne) => ne.leaves.length > 0), Z = L.some((ne) => ne.isGroup);
6545
+ let ie = L.flatMap((ne) => ne.leaves);
6546
+ if (!Z && ((se = De.order) != null && se.length)) {
6547
+ const ne = new Map(De.order.map((be, xe) => [be, xe]));
6548
+ ie = [...ie].sort(
6549
+ (be, xe) => (ne.get(be.key) ?? 1 / 0) - (ne.get(xe.key) ?? 1 / 0)
6534
6550
  );
6535
6551
  }
6536
- return { headerGroups: A, leafColumns: ne, hasGroups: Z };
6552
+ return { headerGroups: L, leafColumns: ie, hasGroups: Z };
6537
6553
  }, [t, De]), ht = ve(
6538
6554
  () => new Map(ue.map((y, x) => [y.key, x])),
6539
6555
  [ue]
6540
6556
  ), O = !Ye && ue.some((y) => (y.col.headerColSpan ?? 1) > 1), K = ue.map((y) => y.key).join("|"), q = (y, x) => {
6541
- const A = y.sortKey ?? (typeof y.accessor == "string" ? y.accessor : void 0);
6542
- return A ? x[A] : void 0;
6543
- }, he = (y) => y.sortable ?? (!!y.sortKey || typeof y.accessor == "string"), ae = ve(() => {
6557
+ const L = y.sortKey ?? (typeof y.accessor == "string" ? y.accessor : void 0);
6558
+ return L ? x[L] : void 0;
6559
+ }, he = (y) => y.sortable ?? (!!y.sortKey || typeof y.accessor == "string"), de = ve(() => {
6544
6560
  if (!pe || !J) return r;
6545
- const y = ue.find((A) => A.key === J.key);
6561
+ const y = ue.find((L) => L.key === J.key);
6546
6562
  if (!y) return r;
6547
6563
  const x = J.direction === "asc" ? 1 : -1;
6548
6564
  return [...r].sort(
6549
- (A, Z) => Xl(q(y.col, A), q(y.col, Z)) * x
6565
+ (L, Z) => Xl(q(y.col, L), q(y.col, Z)) * x
6550
6566
  );
6551
- }, [r, pe, J, ue]), Me = !Ye && !O, Oe = !!s && Me, [lt, Xe] = qi(s ?? ""), Re = Oe ? lt : void 0, nt = oe(null), [Se, Ke] = H();
6567
+ }, [r, pe, J, ue]), Me = !Ye && !O, Oe = !!s && Me, [lt, Xe] = qi(s ?? ""), Re = Oe ? lt : void 0, nt = oe(null), [Ee, Ke] = H();
6552
6568
  at(() => {
6553
6569
  Ke(void 0);
6554
6570
  }, [K]), at(() => {
6555
- if (!Me || Se || !nt.current) return;
6571
+ if (!Me || Ee || !nt.current) return;
6556
6572
  const y = nt.current.querySelectorAll("th.sa-tl-leaf");
6557
6573
  Ke(Array.from(y).map((x) => x.offsetWidth));
6558
- }, [Se, Me]);
6574
+ }, [Ee, Me]);
6559
6575
  const [ft, Dt] = H(), [bt, xt] = H(0);
6560
6576
  at(() => {
6561
6577
  if (!Ye || !nt.current) return;
@@ -6565,13 +6581,13 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6565
6581
  const Et = (y, x) => {
6566
6582
  if ((Re == null ? void 0 : Re[x]) != null) return Re[x];
6567
6583
  if (y.width != null) return y.width;
6568
- if ((Se == null ? void 0 : Se[x]) != null) return Se[x];
6569
- }, E = (y, x) => typeof y.width == "number" ? y.width : Se == null ? void 0 : Se[x], j = De.frozenKey && !Ye && !O ? ue.findIndex((y) => y.key === De.frozenKey) : -1, ee = (y) => y <= j, Ee = z ? It : 0, Be = (y) => {
6570
- const x = ft ?? Se;
6571
- if (!x) return Ee;
6572
- let A = Ee;
6573
- for (let Z = 0; Z < y; Z++) A += x[Z] ?? 0;
6574
- return A;
6584
+ if ((Ee == null ? void 0 : Ee[x]) != null) return Ee[x];
6585
+ }, E = (y, x) => typeof y.width == "number" ? y.width : Ee == null ? void 0 : Ee[x], j = De.frozenKey && !Ye && !O ? ue.findIndex((y) => y.key === De.frozenKey) : -1, ee = (y) => y <= j, Se = z ? It : 0, Be = (y) => {
6586
+ const x = ft ?? Ee;
6587
+ if (!x) return Se;
6588
+ let L = Se;
6589
+ for (let Z = 0; Z < y; Z++) L += x[Z] ?? 0;
6590
+ return L;
6575
6591
  };
6576
6592
  at(() => {
6577
6593
  const y = nt.current;
@@ -6580,21 +6596,21 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6580
6596
  return;
6581
6597
  }
6582
6598
  let x = 0;
6583
- const A = () => {
6599
+ const L = () => {
6584
6600
  x = 0;
6585
- const ne = y.querySelectorAll("th.sa-tl-leaf"), de = Array.from(ne).map(
6586
- (ie) => ie.getBoundingClientRect().width
6601
+ const ie = y.querySelectorAll("th.sa-tl-leaf"), se = Array.from(ie).map(
6602
+ (ne) => ne.getBoundingClientRect().width
6587
6603
  );
6588
6604
  Dt(
6589
- (ie) => ie && ie.length === de.length && ie.every((be, xe) => Math.abs(be - de[xe]) < 0.5) ? ie : de
6605
+ (ne) => ne && ne.length === se.length && ne.every((be, xe) => Math.abs(be - se[xe]) < 0.5) ? ne : se
6590
6606
  );
6591
6607
  }, Z = new ResizeObserver(() => {
6592
- x || (x = requestAnimationFrame(A));
6608
+ x || (x = requestAnimationFrame(L));
6593
6609
  });
6594
- return Z.observe(y), y.querySelectorAll("th.sa-tl-leaf").forEach((ne) => Z.observe(ne)), A(), () => {
6610
+ return Z.observe(y), y.querySelectorAll("th.sa-tl-leaf").forEach((ie) => Z.observe(ie)), L(), () => {
6595
6611
  x && cancelAnimationFrame(x), Z.disconnect();
6596
6612
  };
6597
- }, [K, j, z, Se, Re]);
6613
+ }, [K, j, z, Ee, Re]);
6598
6614
  const it = oe(null), [Te, Fe] = H("100vh");
6599
6615
  at(() => {
6600
6616
  if (S !== void 0) return;
@@ -6608,11 +6624,11 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6608
6624
  };
6609
6625
  return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
6610
6626
  }, [S]);
6611
- const Ae = (y, x) => n ? n(y, x) : x, Pe = U !== void 0, [Wt, Ci] = H(
6627
+ const Ae = (y, x) => n ? n(y, x) : x, _e = U !== void 0, [Wt, Ci] = H(
6612
6628
  () => new Set(Q ?? [])
6613
6629
  ), gt = ve(
6614
- () => Pe ? new Set(U) : Wt,
6615
- [Pe, U, Wt]
6630
+ () => _e ? new Set(U) : Wt,
6631
+ [_e, U, Wt]
6616
6632
  );
6617
6633
  Y(() => {
6618
6634
  z && !n && process.env.NODE_ENV !== "production" && console.warn(
@@ -6620,29 +6636,29 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6620
6636
  );
6621
6637
  }, [z, !n]);
6622
6638
  const tn = (y) => {
6623
- if (Pe || Ci(y), _) {
6624
- const x = ae.filter((A, Z) => y.has(Ae(A, Z)));
6639
+ if (_e || Ci(y), _) {
6640
+ const x = de.filter((L, Z) => y.has(Ae(L, Z)));
6625
6641
  _(Array.from(y), x);
6626
6642
  }
6627
6643
  }, lr = (y, x) => z && (P ? P(y, x) : !0), cr = (y) => {
6628
6644
  const x = new Set(gt);
6629
6645
  x.has(y) ? x.delete(y) : x.add(y), tn(x);
6630
6646
  }, Ft = ve(
6631
- () => z ? ae.map((y, x) => ({ row: y, i: x, key: Ae(y, x) })).filter(
6647
+ () => z ? de.map((y, x) => ({ row: y, i: x, key: Ae(y, x) })).filter(
6632
6648
  ({ row: y, i: x }) => P ? P(y, x) : !0
6633
6649
  ).map(({ key: y }) => y) : [],
6634
6650
  // eslint-disable-next-line react-hooks/exhaustive-deps
6635
- [z, ae, P, n]
6651
+ [z, de, P, n]
6636
6652
  ), rn = Ft.filter((y) => gt.has(y)), sr = Ft.length > 0 && rn.length === Ft.length, nn = rn.length > 0 && !sr, wi = () => {
6637
6653
  const y = new Set(gt);
6638
6654
  sr ? Ft.forEach((x) => y.delete(x)) : Ft.forEach((x) => y.add(x)), tn(y);
6639
- }, ar = (y, x, A) => y.render ? y.render(x, A, ae) : Yl(x, y.accessor), dr = ue.length + (z ? 1 : 0) + ($ ? 1 : 0), on = ["80%", "55%", "70%", "45%", "90%", "60%"], Di = (y, x) => on[(y * 7 + x * 3) % on.length], ki = (y, x) => /* @__PURE__ */ e(mt, { height: 14, width: Di(y, x), borderRadius: "rounded-sm" }), Si = Array.from({ length: w }, (y, x) => /* @__PURE__ */ d(tt, { children: [
6655
+ }, ar = (y, x, L) => y.render ? y.render(x, L, de) : Yl(x, y.accessor), dr = ue.length + (z ? 1 : 0) + ($ ? 1 : 0), on = ["80%", "55%", "70%", "45%", "90%", "60%"], Di = (y, x) => on[(y * 7 + x * 3) % on.length], ki = (y, x) => /* @__PURE__ */ e(mt, { height: 14, width: Di(y, x), borderRadius: "rounded-sm" }), Si = Array.from({ length: w }, (y, x) => /* @__PURE__ */ d(tt, { children: [
6640
6656
  z && /* @__PURE__ */ e(Ve, { style: { width: It, padding: 0 }, children: /* @__PURE__ */ e("div", { style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(mt, { height: 14, width: 14, borderRadius: "rounded-sm" }) }) }),
6641
- ue.map(({ col: A, key: Z }, ne) => /* @__PURE__ */ e(
6657
+ ue.map(({ col: L, key: Z }, ie) => /* @__PURE__ */ e(
6642
6658
  Ve,
6643
6659
  {
6644
- style: { textAlign: Ht(A.align) },
6645
- children: ki(x, ne)
6660
+ style: { textAlign: Ht(L.align) },
6661
+ children: ki(x, ie)
6646
6662
  },
6647
6663
  `sa-tl-sk-${x}-${Z}`
6648
6664
  )),
@@ -6656,8 +6672,8 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6656
6672
  ...De,
6657
6673
  frozenKey: De.frozenKey === y ? void 0 : y
6658
6674
  }), Nt = (y) => (R ?? []).filter((x) => {
6659
- var A;
6660
- return !((A = x.hidden) != null && A.call(x, y));
6675
+ var L;
6676
+ return !((L = x.hidden) != null && L.call(x, y));
6661
6677
  }), ln = {
6662
6678
  position: "absolute",
6663
6679
  right: 0,
@@ -6669,73 +6685,73 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6669
6685
  paddingRight: 16,
6670
6686
  paddingLeft: 40,
6671
6687
  background: "linear-gradient(to right, transparent, var(--sa-background-primary-inverse, #f8f8f8) 40px)"
6672
- }, $t = (y, x, A, Z) => {
6688
+ }, $t = (y, x, L, Z) => {
6673
6689
  var ot;
6674
- const ne = (ot = y.disabled) == null ? void 0 : ot.call(y, x), de = (Z == null ? void 0 : Z.showLabel) ?? y.showLabel, ie = (Z == null ? void 0 : Z.size) ?? "xs", be = /* @__PURE__ */ e(
6690
+ const ie = (ot = y.disabled) == null ? void 0 : ot.call(y, x), se = (Z == null ? void 0 : Z.showLabel) ?? y.showLabel, ne = (Z == null ? void 0 : Z.size) ?? "xs", be = /* @__PURE__ */ e(
6675
6691
  N,
6676
6692
  {
6677
- size: ie,
6693
+ size: ne,
6678
6694
  variant: y.variant ?? "tertiary",
6679
6695
  tone: y.tone ?? "neutral",
6680
- disabled: ne,
6681
- onClick: () => y.onClick(x, A),
6682
- iconLeft: y.icon ? /* @__PURE__ */ e(L, { name: y.icon, size: "sm" }) : void 0,
6683
- children: de && y.label
6696
+ disabled: ie,
6697
+ onClick: () => y.onClick(x, L),
6698
+ iconLeft: y.icon ? /* @__PURE__ */ e(M, { name: y.icon, size: "sm" }) : void 0,
6699
+ children: se && y.label
6684
6700
  }
6685
6701
  ), xe = y.tooltip;
6686
6702
  return xe ? /* @__PURE__ */ e(Ne, { label: xe, position: "top-end", children: be }) : be;
6687
6703
  }, Li = (y, x) => {
6688
- const A = Nt(y);
6689
- if (!A.length) return null;
6690
- if (A.length > 5) {
6691
- const ne = Ae(y, x), de = (T == null ? void 0 : T.rowKey) === ne;
6704
+ const L = Nt(y);
6705
+ if (!L.length) return null;
6706
+ if (L.length > 5) {
6707
+ const ie = Ae(y, x), se = (T == null ? void 0 : T.rowKey) === ie;
6692
6708
  return /* @__PURE__ */ e(
6693
6709
  "div",
6694
6710
  {
6695
6711
  className: "sa-tl-row-actions",
6696
6712
  style: ln,
6697
- onClick: (ie) => ie.stopPropagation(),
6713
+ onClick: (ne) => ne.stopPropagation(),
6698
6714
  children: /* @__PURE__ */ e(Ne, { label: "Aksi lainnya", position: "top", children: /* @__PURE__ */ e(
6699
6715
  N,
6700
6716
  {
6701
6717
  size: "xs",
6702
6718
  variant: "tertiary",
6703
- onClick: (ie) => {
6704
- const be = ie.currentTarget.getBoundingClientRect();
6705
- V(de ? null : {
6706
- rowKey: ne,
6719
+ onClick: (ne) => {
6720
+ const be = ne.currentTarget.getBoundingClientRect();
6721
+ V(se ? null : {
6722
+ rowKey: ie,
6707
6723
  top: be.bottom + 4,
6708
6724
  right: window.innerWidth - be.right
6709
6725
  });
6710
6726
  },
6711
- children: /* @__PURE__ */ e(L, { name: "MenuVertical", size: "sm" })
6727
+ children: /* @__PURE__ */ e(M, { name: "MenuVertical", size: "sm" })
6712
6728
  }
6713
6729
  ) })
6714
6730
  }
6715
6731
  );
6716
6732
  }
6717
- return /* @__PURE__ */ e("div", { className: "sa-tl-row-actions", style: ln, children: A.map((ne) => /* @__PURE__ */ e(Ct.Fragment, { children: $t(ne, y, x) }, ne.key)) });
6733
+ return /* @__PURE__ */ e("div", { className: "sa-tl-row-actions", style: ln, children: L.map((ie) => /* @__PURE__ */ e(Ct.Fragment, { children: $t(ie, y, x) }, ie.key)) });
6718
6734
  }, Mi = (y, x) => {
6719
- const A = Nt(y);
6720
- return A.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 6, flexWrap: "wrap", paddingTop: 8, marginTop: 8, borderTop: Bt }, children: A.map((Z) => /* @__PURE__ */ e(Ct.Fragment, { children: $t(Z, y, x, { showLabel: !0, size: "sm" }) }, Z.key)) }) : null;
6735
+ const L = Nt(y);
6736
+ return L.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 6, flexWrap: "wrap", paddingTop: 8, marginTop: 8, borderTop: Bt }, children: L.map((Z) => /* @__PURE__ */ e(Ct.Fragment, { children: $t(Z, y, x, { showLabel: !0, size: "sm" }) }, Z.key)) }) : null;
6721
6737
  }, Ai = (y, x) => {
6722
- const A = Nt(y);
6723
- return A.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 4, paddingRight: 8, flexShrink: 0 }, children: A.map((Z) => /* @__PURE__ */ e(Ct.Fragment, { children: $t(Z, y, x, { showLabel: !1 }) }, Z.key)) }) : null;
6738
+ const L = Nt(y);
6739
+ return L.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 4, paddingRight: 8, flexShrink: 0 }, children: L.map((Z) => /* @__PURE__ */ e(Ct.Fragment, { children: $t(Z, y, x, { showLabel: !1 }) }, Z.key)) }) : null;
6724
6740
  }, ur = (y, x) => {
6725
- const { col: A, key: Z } = y, ne = ht.get(Z) ?? 0, de = ee(ne), ie = de && ne === j, be = (J == null ? void 0 : J.key) === Z ? J.direction : null, xe = m && !A.disableMenu ? /* @__PURE__ */ e(
6741
+ const { col: L, key: Z } = y, ie = ht.get(Z) ?? 0, se = ee(ie), ne = se && ie === j, be = (J == null ? void 0 : J.key) === Z ? J.direction : null, xe = m && !L.disableMenu ? /* @__PURE__ */ e(
6726
6742
  ql,
6727
6743
  {
6728
- active: !!be || de,
6729
- canSort: he(A),
6730
- canHide: !A.locked,
6744
+ active: !!be || se,
6745
+ canSort: he(L),
6746
+ canHide: !L.locked,
6731
6747
  sortDir: be,
6732
- frozen: de,
6748
+ frozen: se,
6733
6749
  onSort: (Rt) => He({ key: Z, direction: Rt }),
6734
6750
  onClearSort: () => He(null),
6735
6751
  onToggleFreeze: () => Fi(Z),
6736
- onHide: () => Ei(Z, A.locked)
6752
+ onHide: () => Ei(Z, L.locked)
6737
6753
  }
6738
- ) : null, ot = A.align === "right", zt = A.align === "right" ? "flex-end" : A.align === "center" ? "center" : "flex-start", ct = /* @__PURE__ */ d(
6754
+ ) : null, ot = L.align === "right", zt = L.align === "right" ? "flex-end" : L.align === "center" ? "center" : "flex-start", ct = /* @__PURE__ */ d(
6739
6755
  "span",
6740
6756
  {
6741
6757
  style: {
@@ -6748,29 +6764,30 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6748
6764
  overflow: "hidden"
6749
6765
  },
6750
6766
  children: [
6751
- A.icon && /* @__PURE__ */ e(L, { name: A.icon, size: "sm", style: { flexShrink: 0 } }),
6752
- /* @__PURE__ */ e("span", { style: Gt, children: A.title })
6767
+ L.icon && /* @__PURE__ */ e(M, { name: L.icon, size: "sm", style: { flexShrink: 0 } }),
6768
+ /* @__PURE__ */ e("span", { style: Gt, children: L.title })
6753
6769
  ]
6754
6770
  }
6755
6771
  );
6756
6772
  return /* @__PURE__ */ e(
6757
6773
  St,
6758
6774
  {
6759
- className: `sa-tl-leaf${de ? " sa-tl-frozen" : ""}`,
6775
+ className: `sa-tl-leaf${se ? " sa-tl-frozen" : ""}`,
6760
6776
  rowSpan: x == null ? void 0 : x.rowSpan,
6761
6777
  colSpan: x == null ? void 0 : x.colSpan,
6762
- minWidth: A.minWidth,
6763
- resizable: Me ? A.resizable : !1,
6764
- defaultWidth: E(A, ne),
6778
+ minWidth: L.minWidth,
6779
+ numeric: L.numeric,
6780
+ resizable: Me ? L.resizable : !1,
6781
+ defaultWidth: E(L, ie),
6765
6782
  style: {
6766
- textAlign: Ht(A.align),
6767
- width: Et(A, ne),
6783
+ textAlign: Ht(L.align),
6784
+ width: Et(L, ie),
6768
6785
  position: "sticky",
6769
6786
  top: (x == null ? void 0 : x.top) ?? 0,
6770
- left: de ? Be(ne) : void 0,
6771
- zIndex: de ? 3 : 2,
6787
+ left: se ? Be(ie) : void 0,
6788
+ zIndex: se ? 3 : 2,
6772
6789
  backgroundColor: Lt,
6773
- boxShadow: ie ? Vn : void 0
6790
+ boxShadow: ne ? Vn : void 0
6774
6791
  },
6775
6792
  children: /* @__PURE__ */ e(
6776
6793
  "div",
@@ -6781,10 +6798,10 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6781
6798
  gap: 6,
6782
6799
  width: "100%"
6783
6800
  },
6784
- children: ot ? /* @__PURE__ */ d(se, { children: [
6801
+ children: ot ? /* @__PURE__ */ d(ae, { children: [
6785
6802
  xe,
6786
6803
  ct
6787
- ] }) : /* @__PURE__ */ d(se, { children: [
6804
+ ] }) : /* @__PURE__ */ d(ae, { children: [
6788
6805
  ct,
6789
6806
  xe
6790
6807
  ] })
@@ -6796,8 +6813,8 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6796
6813
  }, Wi = () => {
6797
6814
  const y = [];
6798
6815
  for (let x = 0; x < ue.length; ) {
6799
- const A = ue[x], Z = A.col.headerColSpan ?? 1, ne = Math.max(1, Math.min(Z, ue.length - x));
6800
- y.push(ur(A, ne > 1 ? { colSpan: ne } : void 0)), x += ne;
6816
+ const L = ue[x], Z = L.col.headerColSpan ?? 1, ie = Math.max(1, Math.min(Z, ue.length - x));
6817
+ y.push(ur(L, ie > 1 ? { colSpan: ie } : void 0)), x += ie;
6801
6818
  }
6802
6819
  return y;
6803
6820
  }, cn = (y) => /* @__PURE__ */ e(
@@ -6838,7 +6855,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6838
6855
  )
6839
6856
  },
6840
6857
  "th-select"
6841
- ), zi = (y, x, A) => {
6858
+ ), zi = (y, x, L) => {
6842
6859
  const Z = Ae(y, x);
6843
6860
  return /* @__PURE__ */ e(
6844
6861
  Ve,
@@ -6851,7 +6868,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6851
6868
  left: 0,
6852
6869
  zIndex: 2,
6853
6870
  // di atas frozen body cells (1)
6854
- ...A ? { "--sa-tl-bg": A } : {}
6871
+ ...L ? { "--sa-tl-bg": L } : {}
6855
6872
  },
6856
6873
  children: lr(y, x) && /* @__PURE__ */ e(
6857
6874
  "div",
@@ -6861,7 +6878,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6861
6878
  alignItems: "center",
6862
6879
  justifyContent: "center"
6863
6880
  },
6864
- onClick: (ne) => ne.stopPropagation(),
6881
+ onClick: (ie) => ie.stopPropagation(),
6865
6882
  children: /* @__PURE__ */ e(
6866
6883
  vt,
6867
6884
  {
@@ -6877,32 +6894,16 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6877
6894
  `tl-select-${x}`
6878
6895
  );
6879
6896
  }, hr = ue.filter((y) => !y.col.hideOnMobile), fr = hr.find((y) => y.col.primary) ?? hr[0], Ri = hr.filter((y) => y !== fr), Bi = (y) => Ce((x) => {
6880
- const A = new Set(x);
6881
- return A.has(y) ? A.delete(y) : A.add(y), A;
6882
- }), sn = (y, x) => Ri.map(({ col: A, key: Z }) => {
6883
- const ne = ar(A, y, x), de = typeof ne == "string" || typeof ne == "number" ? /* @__PURE__ */ e(
6884
- C,
6885
- {
6886
- style: {
6887
- minWidth: 0,
6888
- overflow: "hidden",
6889
- textOverflow: "ellipsis",
6890
- textAlign: "right"
6891
- },
6892
- children: ne
6893
- }
6894
- ) : /* @__PURE__ */ e(
6895
- "div",
6896
- {
6897
- style: {
6898
- minWidth: 0,
6899
- overflow: "hidden",
6900
- textOverflow: "ellipsis",
6901
- textAlign: "right"
6902
- },
6903
- children: ne
6904
- }
6905
- );
6897
+ const L = new Set(x);
6898
+ return L.has(y) ? L.delete(y) : L.add(y), L;
6899
+ }), sn = (y, x) => Ri.map(({ col: L, key: Z }) => {
6900
+ const ie = ar(L, y, x), se = {
6901
+ minWidth: 0,
6902
+ overflow: "hidden",
6903
+ textOverflow: "ellipsis",
6904
+ textAlign: "right",
6905
+ ...L.numeric ? { fontVariantNumeric: "tabular-nums" } : {}
6906
+ }, ne = typeof ie == "string" || typeof ie == "number" ? /* @__PURE__ */ e(C, { style: se, children: ie }) : /* @__PURE__ */ e("div", { style: se, children: ie });
6906
6907
  return /* @__PURE__ */ d(
6907
6908
  "div",
6908
6909
  {
@@ -6913,23 +6914,23 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6913
6914
  alignItems: "baseline"
6914
6915
  },
6915
6916
  children: [
6916
- typeof A.title == "string" ? /* @__PURE__ */ e(
6917
+ typeof L.title == "string" ? /* @__PURE__ */ e(
6917
6918
  C,
6918
6919
  {
6919
6920
  color: "subtle",
6920
6921
  fontWeight: "medium",
6921
6922
  style: { color: Ul, flexShrink: 0 },
6922
- children: A.title
6923
+ children: L.title
6923
6924
  }
6924
- ) : /* @__PURE__ */ e("div", { style: { flexShrink: 0 }, children: A.title }),
6925
- de
6925
+ ) : /* @__PURE__ */ e("div", { style: { flexShrink: 0 }, children: L.title }),
6926
+ ne
6926
6927
  ]
6927
6928
  },
6928
6929
  Z
6929
6930
  );
6930
6931
  }), mr = (y, x) => {
6931
- const A = fr ? ar(fr.col, y, x) : null;
6932
- return typeof A == "string" || typeof A == "number" ? /* @__PURE__ */ e(C, { as: "span", style: Gt, children: A }) : /* @__PURE__ */ e("span", { style: Gt, children: A });
6932
+ const L = fr ? ar(fr.col, y, x) : null;
6933
+ return typeof L == "string" || typeof L == "number" ? /* @__PURE__ */ e(C, { as: "span", style: Gt, children: L }) : /* @__PURE__ */ e("span", { style: Gt, children: L });
6933
6934
  }, Ii = /* @__PURE__ */ e(
6934
6935
  h,
6935
6936
  {
@@ -6967,12 +6968,12 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6967
6968
  },
6968
6969
  children: I == null ? void 0 : I.content
6969
6970
  }
6970
- ), Hi = B ? Ii : ae.length === 0 ? an : v === "expand" ? /* @__PURE__ */ e(h, { style: { display: "flex", flexDirection: "column" }, children: ae.map((y, x) => {
6971
- const A = Ae(y, x), Z = ce.has(A), de = z && gt.has(A) ? Lr : qt(o == null ? void 0 : o(y, x));
6971
+ ), Hi = B ? Ii : de.length === 0 ? an : v === "expand" ? /* @__PURE__ */ e(h, { style: { display: "flex", flexDirection: "column" }, children: de.map((y, x) => {
6972
+ const L = Ae(y, x), Z = ce.has(L), se = z && gt.has(L) ? Lr : qt(o == null ? void 0 : o(y, x));
6972
6973
  return /* @__PURE__ */ d(
6973
6974
  "div",
6974
6975
  {
6975
- style: { borderBottom: Bt, backgroundColor: de },
6976
+ style: { borderBottom: Bt, backgroundColor: se },
6976
6977
  children: [
6977
6978
  /* @__PURE__ */ d("div", { style: { display: "flex", alignItems: "center" }, children: [
6978
6979
  lr(y, x) && // Sibling dari tombol expand — tap checkbox tidak memuai baris.
@@ -6990,8 +6991,8 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6990
6991
  vt,
6991
6992
  {
6992
6993
  size: "sm",
6993
- checked: gt.has(A),
6994
- onChange: () => cr(A),
6994
+ checked: gt.has(L),
6995
+ onChange: () => cr(L),
6995
6996
  "aria-label": "Pilih baris"
6996
6997
  }
6997
6998
  )
@@ -7001,7 +7002,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
7001
7002
  "button",
7002
7003
  {
7003
7004
  type: "button",
7004
- onClick: () => Bi(A),
7005
+ onClick: () => Bi(L),
7005
7006
  style: {
7006
7007
  flex: 1,
7007
7008
  minWidth: 0,
@@ -7020,7 +7021,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
7020
7021
  children: [
7021
7022
  mr(y, x),
7022
7023
  /* @__PURE__ */ e(
7023
- L,
7024
+ M,
7024
7025
  {
7025
7026
  name: Z ? "ChevronUp" : "ChevronDown",
7026
7027
  size: "sm",
@@ -7046,14 +7047,14 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
7046
7047
  )
7047
7048
  ]
7048
7049
  },
7049
- A
7050
+ L
7050
7051
  );
7051
7052
  }) }) : /* @__PURE__ */ e(
7052
7053
  h,
7053
7054
  {
7054
7055
  style: { display: "flex", flexDirection: "column", gap: 8, padding: 8 },
7055
- children: ae.map((y, x) => {
7056
- const A = Ae(y, x), Z = z && gt.has(A);
7056
+ children: de.map((y, x) => {
7057
+ const L = Ae(y, x), Z = z && gt.has(L);
7057
7058
  return /* @__PURE__ */ d(
7058
7059
  h,
7059
7060
  {
@@ -7072,8 +7073,8 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
7072
7073
  vt,
7073
7074
  {
7074
7075
  size: "sm",
7075
- checked: gt.has(A),
7076
- onChange: () => cr(A),
7076
+ checked: gt.has(L),
7077
+ onChange: () => cr(L),
7077
7078
  "aria-label": "Pilih baris"
7078
7079
  }
7079
7080
  ),
@@ -7086,17 +7087,18 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
7086
7087
  $ && Mi(y, x)
7087
7088
  ]
7088
7089
  },
7089
- A
7090
+ L
7090
7091
  );
7091
7092
  })
7092
7093
  }
7093
- ), Oi = l && Me && Se !== void 0, dn = c === "fixed" && !l && (Me ? Se !== void 0 : !0), Ti = dn && !Me, _t = D && D.length > 0 ? D.map((y, x) => /* @__PURE__ */ e(tt, { children: y.cells.map((A, Z) => /* @__PURE__ */ e(
7094
+ ), Oi = l && Me && Ee !== void 0, dn = c === "fixed" && !l && (Me ? Ee !== void 0 : !0), Ti = dn && !Me, _t = D && D.length > 0 ? D.map((y, x) => /* @__PURE__ */ e(tt, { children: y.cells.map((L, Z) => /* @__PURE__ */ e(
7094
7095
  Ve,
7095
7096
  {
7096
- colSpan: A.colSpan,
7097
- rowSpan: A.rowSpan,
7098
- style: { textAlign: Ht(A.align) },
7099
- children: A.content
7097
+ colSpan: L.colSpan,
7098
+ rowSpan: L.rowSpan,
7099
+ numeric: L.numeric,
7100
+ style: { textAlign: Ht(L.align) },
7101
+ children: L.content
7100
7102
  },
7101
7103
  `tl-foot-${x}-${Z}`
7102
7104
  )) }, `tl-foot-${x}`)) : null, Vi = /* @__PURE__ */ d(
@@ -7111,10 +7113,10 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
7111
7113
  children: [
7112
7114
  Ti && /* @__PURE__ */ d("colgroup", { children: [
7113
7115
  z && /* @__PURE__ */ e("col", { style: { width: It } }),
7114
- ue.map(({ col: y, key: x }, A) => /* @__PURE__ */ e("col", { style: { width: Et(y, A) } }, `col-${x}`)),
7116
+ ue.map(({ col: y, key: x }, L) => /* @__PURE__ */ e("col", { style: { width: Et(y, L) } }, `col-${x}`)),
7115
7117
  $ && /* @__PURE__ */ e("col", { style: { width: 1 } })
7116
7118
  ] }),
7117
- /* @__PURE__ */ e(Xn, { ref: nt, children: Ye ? /* @__PURE__ */ d(se, { children: [
7119
+ /* @__PURE__ */ e(Xn, { ref: nt, children: Ye ? /* @__PURE__ */ d(ae, { children: [
7118
7120
  /* @__PURE__ */ d(tt, { children: [
7119
7121
  z && cn({ rowSpan: 2 }),
7120
7122
  Je.map(
@@ -7173,32 +7175,33 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
7173
7175
  }
7174
7176
  )
7175
7177
  ] }) }),
7176
- /* @__PURE__ */ e(zr, { children: B ? Si : ae.length === 0 ? /* @__PURE__ */ e(tt, { children: /* @__PURE__ */ e(Ve, { colSpan: dr, children: an }) }) : /* @__PURE__ */ d(se, { children: [
7177
- ae.map((y, x) => {
7178
- const A = F == null ? void 0 : F(
7178
+ /* @__PURE__ */ e(zr, { children: B ? Si : de.length === 0 ? /* @__PURE__ */ e(tt, { children: /* @__PURE__ */ e(Ve, { colSpan: dr, children: an }) }) : /* @__PURE__ */ d(ae, { children: [
7179
+ de.map((y, x) => {
7180
+ const L = F == null ? void 0 : F(
7179
7181
  y,
7180
7182
  x,
7181
- x > 0 ? ae[x - 1] : void 0
7182
- ), ne = z && gt.has(Ae(y, x)) ? Lr : qt(o == null ? void 0 : o(y, x));
7183
+ x > 0 ? de[x - 1] : void 0
7184
+ ), ie = z && gt.has(Ae(y, x)) ? Lr : qt(o == null ? void 0 : o(y, x));
7183
7185
  return /* @__PURE__ */ d(Ct.Fragment, { children: [
7184
- A != null && A !== !1 && /* @__PURE__ */ e(tt, { children: /* @__PURE__ */ e(Ve, { colSpan: dr, style: { backgroundColor: Lt }, children: A }) }),
7186
+ L != null && L !== !1 && /* @__PURE__ */ e(tt, { children: /* @__PURE__ */ e(Ve, { colSpan: dr, style: { backgroundColor: Lt }, children: L }) }),
7185
7187
  /* @__PURE__ */ d(tt, { children: [
7186
- z && zi(y, x, ne),
7187
- ue.map(({ col: de, key: ie }, be) => {
7188
+ z && zi(y, x, ie),
7189
+ ue.map(({ col: se, key: ne }, be) => {
7188
7190
  var hn;
7189
- const xe = (hn = de.cellProps) == null ? void 0 : hn.call(de, y, x, ae);
7191
+ const xe = (hn = se.cellProps) == null ? void 0 : hn.call(se, y, x, de);
7190
7192
  if (xe != null && xe.hidden) return null;
7191
- const ot = ee(be), zt = ot && be === j, ct = ar(de, y, x), Rt = typeof de.bg == "function" ? de.bg(y, x, ae) : de.bg, un = qt(Rt) ?? ne;
7193
+ const ot = ee(be), zt = ot && be === j, ct = ar(se, y, x), Rt = typeof se.bg == "function" ? se.bg(y, x, de) : se.bg, un = qt(Rt) ?? ie;
7192
7194
  return /* @__PURE__ */ e(
7193
7195
  Ve,
7194
7196
  {
7195
7197
  className: ot ? "sa-tl-frozen" : void 0,
7196
7198
  colSpan: xe == null ? void 0 : xe.colSpan,
7197
7199
  rowSpan: xe == null ? void 0 : xe.rowSpan,
7200
+ numeric: se.numeric,
7198
7201
  style: {
7199
- textAlign: Ht(de.align),
7200
- width: Et(de, be),
7201
- minWidth: de.minWidth,
7202
+ textAlign: Ht(se.align),
7203
+ width: Et(se, be),
7204
+ minWidth: se.minWidth,
7202
7205
  position: ot ? "sticky" : void 0,
7203
7206
  left: ot ? Be(be) : void 0,
7204
7207
  zIndex: ot ? 1 : void 0,
@@ -7212,13 +7215,13 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
7212
7215
  whiteSpace: "nowrap",
7213
7216
  overflow: "hidden",
7214
7217
  textOverflow: "ellipsis",
7215
- textAlign: Ht(de.align)
7218
+ textAlign: Ht(se.align)
7216
7219
  },
7217
7220
  children: ct
7218
7221
  }
7219
7222
  ) : ct
7220
7223
  },
7221
- `tl-cell-${x}-${ie}`
7224
+ `tl-cell-${x}-${ne}`
7222
7225
  );
7223
7226
  }),
7224
7227
  $ && /* @__PURE__ */ e(
@@ -7239,13 +7242,13 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
7239
7242
  ] })
7240
7243
  ] }, Ae(y, x));
7241
7244
  }),
7242
- M != null && /* @__PURE__ */ e(tt, { children: /* @__PURE__ */ e(Ve, { colSpan: dr, children: M }) })
7245
+ A != null && /* @__PURE__ */ e(tt, { children: /* @__PURE__ */ e(Ve, { colSpan: dr, children: A }) })
7243
7246
  ] }) }),
7244
7247
  _t && /* @__PURE__ */ e(Ui, { className: k ? "sa-tl-sticky-foot" : void 0, children: _t })
7245
7248
  ]
7246
7249
  }
7247
- ), gr = T ? ae.findIndex((y, x) => Ae(y, x) === T.rowKey) : -1, pr = gr >= 0 ? ae[gr] : null;
7248
- return /* @__PURE__ */ d(se, { children: [
7250
+ ), gr = T ? de.findIndex((y, x) => Ae(y, x) === T.rowKey) : -1, pr = gr >= 0 ? de[gr] : null;
7251
+ return /* @__PURE__ */ d(ae, { children: [
7249
7252
  /* @__PURE__ */ e(
7250
7253
  h,
7251
7254
  {
@@ -7255,9 +7258,9 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
7255
7258
  overflow: "auto",
7256
7259
  height: S ?? Te
7257
7260
  },
7258
- children: re ? /* @__PURE__ */ d(se, { children: [
7261
+ children: re ? /* @__PURE__ */ d(ae, { children: [
7259
7262
  Hi,
7260
- _t && !B && ae.length > 0 && /* @__PURE__ */ e(h, { style: { borderTop: Bt }, children: /* @__PURE__ */ e(Jt, { fullWidth: !0, size: i, className: "sa-table-layout", children: /* @__PURE__ */ e(zr, { children: _t }) }) })
7263
+ _t && !B && de.length > 0 && /* @__PURE__ */ e(h, { style: { borderTop: Bt }, children: /* @__PURE__ */ e(Jt, { fullWidth: !0, size: i, className: "sa-table-layout", children: /* @__PURE__ */ e(zr, { children: _t }) }) })
7261
7264
  ] }) : Vi
7262
7265
  }
7263
7266
  ),
@@ -7306,14 +7309,14 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
7306
7309
  const v = (l == null ? void 0 : l.sortBy) ?? "sortBy", W = (l == null ? void 0 : l.sortOrder) ?? "sortOrder", F = ve(() => S ? {
7307
7310
  [v]: S.key,
7308
7311
  [W]: S.direction
7309
- } : {}, [S, v, W]), M = G(
7312
+ } : {}, [S, v, W]), A = G(
7310
7313
  (D) => {
7311
7314
  const k = { ...m };
7312
7315
  D ? (k[r] = D.key, k[n] = D.direction) : (delete k[r], delete k[n]), delete k[o], u(k);
7313
7316
  },
7314
7317
  [m, r, n, o, u]
7315
7318
  );
7316
- return { sort: S, setSort: M, params: F };
7319
+ return { sort: S, setSort: A, params: F };
7317
7320
  }, Qr = ({
7318
7321
  of: t,
7319
7322
  render: r
@@ -7323,7 +7326,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
7323
7326
  children: n,
7324
7327
  loading: o,
7325
7328
  isLoading: i
7326
- }) => /* @__PURE__ */ e(se, { children: i ? o : t ? n : r }), ye = (t) => /* @__PURE__ */ e(
7329
+ }) => /* @__PURE__ */ e(ae, { children: i ? o : t ? n : r }), ye = (t) => /* @__PURE__ */ e(
7327
7330
  C,
7328
7331
  {
7329
7332
  ...t,
@@ -7381,7 +7384,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
7381
7384
  arrowPosition: (u = i.tooltip) == null ? void 0 : u.arrowPosition,
7382
7385
  ...i.tooltip,
7383
7386
  children: /* @__PURE__ */ e(
7384
- L,
7387
+ M,
7385
7388
  {
7386
7389
  name: "InfoCircle",
7387
7390
  size: t === "lg" ? "sm" : "xs",
@@ -7466,7 +7469,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
7466
7469
  arrowPosition: (u = i.tooltip) == null ? void 0 : u.arrowPosition,
7467
7470
  ...i.tooltip,
7468
7471
  children: /* @__PURE__ */ e(
7469
- L,
7472
+ M,
7470
7473
  {
7471
7474
  name: "InfoCircle",
7472
7475
  size: t === "lg" ? "sm" : "xs",
@@ -7540,7 +7543,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
7540
7543
  },
7541
7544
  children: [
7542
7545
  /* @__PURE__ */ e(
7543
- L,
7546
+ M,
7544
7547
  {
7545
7548
  name: "Upload",
7546
7549
  size: "lg",
@@ -7771,7 +7774,7 @@ const dc = (t) => {
7771
7774
  children: [
7772
7775
  /* @__PURE__ */ d(fe, { direction: "row", align: "center", gap: "sm", style: { flex: 1, minWidth: 0 }, children: [
7773
7776
  /* @__PURE__ */ e(
7774
- L,
7777
+ M,
7775
7778
  {
7776
7779
  name: "DocumentFilled",
7777
7780
  size: "lg",
@@ -7798,11 +7801,11 @@ const dc = (t) => {
7798
7801
  ),
7799
7802
  t.defaultFile ? (t.defaultFile.size || t.defaultFile.date) && /* @__PURE__ */ d(fe, { direction: "row", gap: "xs", align: "center", children: [
7800
7803
  t.defaultFile.size && /* @__PURE__ */ e(C, { fontSize: "sm", fontWeight: "medium", children: t.defaultFile.size }),
7801
- t.defaultFile.size && t.defaultFile.date && /* @__PURE__ */ e(L, { name: "Dot", size: "xs" }),
7804
+ t.defaultFile.size && t.defaultFile.date && /* @__PURE__ */ e(M, { name: "Dot", size: "xs" }),
7802
7805
  t.defaultFile.date && /* @__PURE__ */ e(C, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children: t.defaultFile.date })
7803
7806
  ] }) : /* @__PURE__ */ d(fe, { direction: "row", gap: "xs", align: "center", children: [
7804
7807
  /* @__PURE__ */ e(C, { fontSize: "sm", fontWeight: "medium", children: sc(((n = t.fileSelected) == null ? void 0 : n.size.toString()) || "100000") }),
7805
- /* @__PURE__ */ e(L, { name: "Dot", size: "xs" }),
7808
+ /* @__PURE__ */ e(M, { name: "Dot", size: "xs" }),
7806
7809
  /* @__PURE__ */ e(C, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children: nc(/* @__PURE__ */ new Date()) })
7807
7810
  ] })
7808
7811
  ] })
@@ -7817,7 +7820,7 @@ const dc = (t) => {
7817
7820
  onClick: (o) => {
7818
7821
  o.stopPropagation(), t.handleOnDeleteFile();
7819
7822
  },
7820
- iconLeft: /* @__PURE__ */ e(L, { name: "Trash1" })
7823
+ iconLeft: /* @__PURE__ */ e(M, { name: "Trash1" })
7821
7824
  }
7822
7825
  )
7823
7826
  ]
@@ -7850,7 +7853,7 @@ const dc = (t) => {
7850
7853
  alignItems: "center"
7851
7854
  }, children: "Optional" }),
7852
7855
  n.required && /* @__PURE__ */ e("span", { style: { fontSize: "14px", fontWeight: 500, color: "var(--sa-text-error)" }, children: "*" })
7853
- ] }) : null, a = n.description ? /* @__PURE__ */ e(C, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-subtlest, #6b6e76)", lineHeight: "18px" }, children: n.description }) : null, u = /* @__PURE__ */ d(se, { children: [
7856
+ ] }) : null, a = n.description ? /* @__PURE__ */ e(C, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-subtlest, #6b6e76)", lineHeight: "18px" }, children: n.description }) : null, u = /* @__PURE__ */ d(ae, { children: [
7854
7857
  n.helperText && /* @__PURE__ */ e(C, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-subtlest, #6b6e76)", lineHeight: "18px" }, children: n.helperText }),
7855
7858
  n.errorText && t === "error" && /* @__PURE__ */ e(C, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-error, #a4133c)", lineHeight: "18px" }, children: n.errorText }),
7856
7859
  n.errorMessage && !n.errorText && /* @__PURE__ */ e(C, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-error, #a4133c)", lineHeight: "18px" }, children: n.errorMessage })
@@ -7968,7 +7971,7 @@ const dc = (t) => {
7968
7971
  arrowPosition: (u = i.tooltip) == null ? void 0 : u.arrowPosition,
7969
7972
  ...i.tooltip,
7970
7973
  children: /* @__PURE__ */ e(
7971
- L,
7974
+ M,
7972
7975
  {
7973
7976
  name: "InfoCircle",
7974
7977
  size: t === "lg" ? "sm" : "xs",
@@ -8050,7 +8053,7 @@ const dc = (t) => {
8050
8053
  arrowPosition: (m = l.tooltip) == null ? void 0 : m.arrowPosition,
8051
8054
  ...l.tooltip,
8052
8055
  children: /* @__PURE__ */ e(
8053
- L,
8056
+ M,
8054
8057
  {
8055
8058
  name: "InfoCircle",
8056
8059
  size: t === "lg" ? "sm" : "xs",
@@ -8250,7 +8253,7 @@ const dc = (t) => {
8250
8253
  arrowPosition: (u = i.tooltip) == null ? void 0 : u.arrowPosition,
8251
8254
  ...i.tooltip,
8252
8255
  children: /* @__PURE__ */ e(
8253
- L,
8256
+ M,
8254
8257
  {
8255
8258
  name: "InfoCircle",
8256
8259
  size: t === "lg" ? "sm" : "xs",
@@ -8334,7 +8337,7 @@ const dc = (t) => {
8334
8337
  arrowPosition: (u = l.tooltip) == null ? void 0 : u.arrowPosition,
8335
8338
  ...l.tooltip,
8336
8339
  children: /* @__PURE__ */ e(
8337
- L,
8340
+ M,
8338
8341
  {
8339
8342
  name: "InfoCircle",
8340
8343
  size: t === "lg" ? "sm" : "xs",
@@ -8375,7 +8378,7 @@ const dc = (t) => {
8375
8378
  var a, u, m, p, g, b;
8376
8379
  if (!c) return;
8377
8380
  const s = n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : t === "secondary-danger" ? (u = (a = o == null ? void 0 : o.computed) == null ? void 0 : a.red) == null ? void 0 : u[600] : t === "secondary-primary" ? (p = (m = o == null ? void 0 : o.computed) == null ? void 0 : m.blue) == null ? void 0 : p[700] : (b = (g = o == null ? void 0 : o.computed) == null ? void 0 : g.gray) == null ? void 0 : b[50];
8378
- return /* @__PURE__ */ e(L, { name: c, size: r, style: { color: s } });
8381
+ return /* @__PURE__ */ e(M, { name: c, size: r, style: { color: s } });
8379
8382
  }, l = () => {
8380
8383
  var s, a, u, m;
8381
8384
  if (t !== "secondary-danger" && t !== "secondary-primary")
@@ -8468,7 +8471,7 @@ const dc = (t) => {
8468
8471
  arrowPosition: (u = i.tooltip) == null ? void 0 : u.arrowPosition,
8469
8472
  ...i.tooltip,
8470
8473
  children: /* @__PURE__ */ e(
8471
- L,
8474
+ M,
8472
8475
  {
8473
8476
  name: "InfoCircle",
8474
8477
  size: t === "lg" ? "sm" : "xs",
@@ -8560,7 +8563,7 @@ const $n = {
8560
8563
  maxFileSize: a = 2,
8561
8564
  onError: u
8562
8565
  }, m) => {
8563
- const p = We("md"), [g, b] = H(!1), [S, v] = H(null), [W, F] = H(!1), [M, D] = H({ x: 0, y: 0 }), [k, I] = H(1), [B, w] = H(null);
8566
+ const p = We("md"), [g, b] = H(!1), [S, v] = H(null), [W, F] = H(!1), [A, D] = H({ x: 0, y: 0 }), [k, I] = H(1), [B, w] = H(null);
8564
8567
  Y(() => {
8565
8568
  r === null && i(null);
8566
8569
  }, [r]);
@@ -8645,7 +8648,7 @@ const $n = {
8645
8648
  justify: "center",
8646
8649
  padding: "spacing-4",
8647
8650
  children: /* @__PURE__ */ e(
8648
- L,
8651
+ M,
8649
8652
  {
8650
8653
  name: "Image",
8651
8654
  style: {
@@ -8687,7 +8690,7 @@ const $n = {
8687
8690
  ),
8688
8691
  /* @__PURE__ */ d(h, { display: "flex", align: "center", gap: "spacing-2", direction: "row", children: [
8689
8692
  /* @__PURE__ */ e(
8690
- L,
8693
+ M,
8691
8694
  {
8692
8695
  name: "Edit3",
8693
8696
  style: { color: "var(--sa-background-primary, #ffffff)" }
@@ -8776,7 +8779,7 @@ const $n = {
8776
8779
  ro,
8777
8780
  {
8778
8781
  image: S,
8779
- crop: M,
8782
+ crop: A,
8780
8783
  zoom: k,
8781
8784
  aspect: c ? $n[c] : void 0,
8782
8785
  onCropChange: D,
@@ -8866,7 +8869,7 @@ const $n = {
8866
8869
  arrowPosition: (m = l.tooltip) == null ? void 0 : m.arrowPosition,
8867
8870
  ...l.tooltip,
8868
8871
  children: /* @__PURE__ */ e(
8869
- L,
8872
+ M,
8870
8873
  {
8871
8874
  name: "InfoCircle",
8872
8875
  size: t === "lg" ? "sm" : "xs",
@@ -8941,7 +8944,7 @@ const $n = {
8941
8944
  arrowPosition: (a = i.tooltip) == null ? void 0 : a.arrowPosition,
8942
8945
  ...i.tooltip,
8943
8946
  children: /* @__PURE__ */ e(
8944
- L,
8947
+ M,
8945
8948
  {
8946
8949
  name: "InfoCircle",
8947
8950
  size: t === "lg" ? "sm" : "xs",
@@ -9050,7 +9053,7 @@ const $n = {
9050
9053
  onClick: i,
9051
9054
  type: "button",
9052
9055
  iconLeft: /* @__PURE__ */ e(
9053
- L,
9056
+ M,
9054
9057
  {
9055
9058
  width: 16,
9056
9059
  size: "xs",
@@ -9226,7 +9229,7 @@ const ha = ({
9226
9229
  className: v,
9227
9230
  pageLayout: W,
9228
9231
  overlay: F = "mobile",
9229
- wrapperProps: M,
9232
+ wrapperProps: A,
9230
9233
  contentProps: D
9231
9234
  }) => {
9232
9235
  const k = We("md"), I = n !== void 0, [B, w] = H(o), R = I ? n : B, z = () => {
@@ -9326,7 +9329,7 @@ const ha = ({
9326
9329
  // boxShadow: "-2px 0 6px rgba(0, 0, 0, 0.04)",
9327
9330
  }
9328
9331
  },
9329
- children: /* @__PURE__ */ e(L, { name: re, size: "sm" })
9332
+ children: /* @__PURE__ */ e(M, { name: re, size: "sm" })
9330
9333
  }
9331
9334
  )
9332
9335
  ]
@@ -9337,11 +9340,11 @@ const ha = ({
9337
9340
  {
9338
9341
  direction: "row",
9339
9342
  position: "relative",
9340
- ...M,
9343
+ ...A,
9341
9344
  style: {
9342
9345
  height: `calc(100vh - ${Q})`,
9343
9346
  overflow: "hidden",
9344
- ...(M == null ? void 0 : M.style) ?? {}
9347
+ ...(A == null ? void 0 : A.style) ?? {}
9345
9348
  },
9346
9349
  children: [
9347
9350
  !$ && U ? V : null,
@@ -9361,7 +9364,7 @@ const ha = ({
9361
9364
  }
9362
9365
  ),
9363
9366
  !$ && !U ? V : null,
9364
- $ && /* @__PURE__ */ d(se, { children: [
9367
+ $ && /* @__PURE__ */ d(ae, { children: [
9365
9368
  !R && /* @__PURE__ */ e(
9366
9369
  "div",
9367
9370
  {
@@ -9487,7 +9490,7 @@ const ha = ({
9487
9490
  }
9488
9491
  ) }), Rc = ({ title: t, value: r, icon: n }) => /* @__PURE__ */ d(h, { display: "flex", direction: "column", gap: "sm", children: [
9489
9492
  n ? /* @__PURE__ */ d(h, { display: "flex", direction: "row", align: "center", gap: "xs", children: [
9490
- /* @__PURE__ */ e(L, { name: n, color: "subtle" }),
9493
+ /* @__PURE__ */ e(M, { name: n, color: "subtle" }),
9491
9494
  /* @__PURE__ */ e(C, { color: "gray-500", variant: "sub-h3", children: t })
9492
9495
  ] }) : /* @__PURE__ */ e(C, { color: "gray-500", variant: "sub-h3", children: t }),
9493
9496
  typeof r == "string" ? /* @__PURE__ */ e(C, { variant: "sub-h3", children: r }) : r
@@ -9496,7 +9499,7 @@ const ha = ({
9496
9499
  accent: "#78867F"
9497
9500
  };
9498
9501
  function Bc({ width: t, height: r }) {
9499
- return /* @__PURE__ */ e(se, { children: /* @__PURE__ */ d(
9502
+ return /* @__PURE__ */ e(ae, { children: /* @__PURE__ */ d(
9500
9503
  "svg",
9501
9504
  {
9502
9505
  width: t || "100",
@@ -9653,9 +9656,9 @@ const ya = ({
9653
9656
  const m = () => {
9654
9657
  switch (o) {
9655
9658
  case "primary":
9656
- return /* @__PURE__ */ e(se, { children: l ? /* @__PURE__ */ e(N, { primary: !0, iconLeft: l, onClick: n, children: a || t }) : /* @__PURE__ */ e(N, { primary: !0, onClick: n, children: a || t }) });
9659
+ return /* @__PURE__ */ e(ae, { children: l ? /* @__PURE__ */ e(N, { primary: !0, iconLeft: l, onClick: n, children: a || t }) : /* @__PURE__ */ e(N, { primary: !0, onClick: n, children: a || t }) });
9657
9660
  case "secondary":
9658
- return /* @__PURE__ */ e(se, { children: l ? /* @__PURE__ */ e(N, { secondary: !0, iconLeft: l, onClick: n, children: i ? /* @__PURE__ */ e(
9661
+ return /* @__PURE__ */ e(ae, { children: l ? /* @__PURE__ */ e(N, { secondary: !0, iconLeft: l, onClick: n, children: i ? /* @__PURE__ */ e(
9659
9662
  C,
9660
9663
  {
9661
9664
  fontSize: "md",
@@ -9665,9 +9668,9 @@ const ya = ({
9665
9668
  }
9666
9669
  ) : t }) : /* @__PURE__ */ e(N, { secondary: !0, onClick: n, children: a || t }) });
9667
9670
  case "success":
9668
- return /* @__PURE__ */ e(se, { children: l ? /* @__PURE__ */ e(N, { success: !0, iconLeft: l, onClick: n, children: a || t }) : /* @__PURE__ */ e(N, { success: !0, onClick: n, children: a || t }) });
9671
+ return /* @__PURE__ */ e(ae, { children: l ? /* @__PURE__ */ e(N, { success: !0, iconLeft: l, onClick: n, children: a || t }) : /* @__PURE__ */ e(N, { success: !0, onClick: n, children: a || t }) });
9669
9672
  default:
9670
- return /* @__PURE__ */ e(se, { children: l ? /* @__PURE__ */ e(N, { primary: !0, iconLeft: l, onClick: n, children: a || t }) : /* @__PURE__ */ e(N, { primary: !0, onClick: n, children: a || t }) });
9673
+ return /* @__PURE__ */ e(ae, { children: l ? /* @__PURE__ */ e(N, { primary: !0, iconLeft: l, onClick: n, children: a || t }) : /* @__PURE__ */ e(N, { primary: !0, onClick: n, children: a || t }) });
9671
9674
  }
9672
9675
  };
9673
9676
  return /* @__PURE__ */ d(
@@ -9709,7 +9712,7 @@ const ya = ({
9709
9712
  cFFFFFF: "#FFFFFF"
9710
9713
  };
9711
9714
  function Ic({ width: t, height: r }) {
9712
- return /* @__PURE__ */ e(se, { children: /* @__PURE__ */ d(
9715
+ return /* @__PURE__ */ e(ae, { children: /* @__PURE__ */ d(
9713
9716
  "svg",
9714
9717
  {
9715
9718
  width: t,
@@ -9970,7 +9973,7 @@ const le = {
9970
9973
  cFFFFFF: "#FFFFFF"
9971
9974
  };
9972
9975
  function Hc({ width: t, height: r }) {
9973
- return /* @__PURE__ */ e(se, { children: /* @__PURE__ */ d(
9976
+ return /* @__PURE__ */ e(ae, { children: /* @__PURE__ */ d(
9974
9977
  "svg",
9975
9978
  {
9976
9979
  width: t,
@@ -10222,7 +10225,7 @@ const f = {
10222
10225
  cFFFFFF: "#FFFFFF"
10223
10226
  };
10224
10227
  function Oc({ width: t, height: r }) {
10225
- return /* @__PURE__ */ e(se, { children: /* @__PURE__ */ d(
10228
+ return /* @__PURE__ */ e(ae, { children: /* @__PURE__ */ d(
10226
10229
  "svg",
10227
10230
  {
10228
10231
  width: t,
@@ -11015,7 +11018,7 @@ const Ca = (t) => {
11015
11018
  footerProps: v = { borderTop: !0 },
11016
11019
  variantTag: W = "info"
11017
11020
  }) => {
11018
- const F = oe(null), [M, D] = H("100vh");
11021
+ const F = oe(null), [A, D] = H("100vh");
11019
11022
  Y(() => {
11020
11023
  const w = () => {
11021
11024
  if (F.current) {
@@ -11056,7 +11059,7 @@ const Ca = (t) => {
11056
11059
  style: {
11057
11060
  backgroundColor: "var(--sa-background-primary, #ffffff)",
11058
11061
  display: "flex",
11059
- minHeight: M,
11062
+ minHeight: A,
11060
11063
  ...(g == null ? void 0 : g.style) ?? {}
11061
11064
  },
11062
11065
  children: [
@@ -11114,7 +11117,7 @@ function Kr(t) {
11114
11117
  return null;
11115
11118
  }
11116
11119
  Kr.displayName = "LayoutDialog.Footer";
11117
- const _e = {
11120
+ const Pe = {
11118
11121
  "lyd-root": "_lyd-root_1g78i_1",
11119
11122
  "lyd-backdrop": "_lyd-backdrop_1g78i_38",
11120
11123
  "lyd-panel": "_lyd-panel_1g78i_47",
@@ -11140,20 +11143,20 @@ const _e = {
11140
11143
  {
11141
11144
  mode: "modal",
11142
11145
  label: "Modal",
11143
- icon: /* @__PURE__ */ e(L, { name: "Newscreen", size: "sm" })
11146
+ icon: /* @__PURE__ */ e(M, { name: "Newscreen", size: "sm" })
11144
11147
  },
11145
11148
  {
11146
11149
  mode: "fullscreen",
11147
11150
  label: "Fullscreen",
11148
- icon: /* @__PURE__ */ e(L, { name: "Fullscreen", size: "sm" })
11151
+ icon: /* @__PURE__ */ e(M, { name: "Fullscreen", size: "sm" })
11149
11152
  }
11150
11153
  ];
11151
11154
  function Vc({ value: t, onChange: r }) {
11152
- return /* @__PURE__ */ e("div", { className: _e["lyd-vm-group"], role: "group", "aria-label": "View mode", children: Tc.map((n) => /* @__PURE__ */ e(
11155
+ return /* @__PURE__ */ e("div", { className: Pe["lyd-vm-group"], role: "group", "aria-label": "View mode", children: Tc.map((n) => /* @__PURE__ */ e(
11153
11156
  "button",
11154
11157
  {
11155
11158
  type: "button",
11156
- className: _e["lyd-vm-btn"],
11159
+ className: Pe["lyd-vm-btn"],
11157
11160
  "data-active": t === n.mode,
11158
11161
  "aria-label": `Switch to ${n.label} view`,
11159
11162
  "aria-pressed": t === n.mode,
@@ -11214,7 +11217,7 @@ function _c(t) {
11214
11217
  disableBackdropClose: p = !1,
11215
11218
  lockBodyScroll: g = !0,
11216
11219
  children: b
11217
- } = t, [S, v] = H(i), W = o ?? S, M = We("md") ? W : "fullscreen", D = G(
11220
+ } = t, [S, v] = H(i), W = o ?? S, A = We("md") ? W : "fullscreen", D = G(
11218
11221
  (P) => {
11219
11222
  o === void 0 && v(P), l == null || l(P);
11220
11223
  },
@@ -11248,10 +11251,10 @@ function _c(t) {
11248
11251
  );
11249
11252
  if (!r) return null;
11250
11253
  const U = [
11251
- _e["lyd-panel"],
11252
- M === "modal" && _e["lyd-modal"],
11253
- M === "fullscreen" && _e["lyd-fullscreen"],
11254
- M === "sidebar" && _e["lyd-sidebar"]
11254
+ Pe["lyd-panel"],
11255
+ A === "modal" && Pe["lyd-modal"],
11256
+ A === "fullscreen" && Pe["lyd-fullscreen"],
11257
+ A === "sidebar" && Pe["lyd-sidebar"]
11255
11258
  ].filter(Boolean).join(" "), Q = {
11256
11259
  "--lyd-max-w": $c(a),
11257
11260
  ...u !== void 0 && { "--lyd-aside-w": u }
@@ -11262,7 +11265,7 @@ function _c(t) {
11262
11265
  /* @__PURE__ */ d(
11263
11266
  "div",
11264
11267
  {
11265
- className: _e["lyd-root"],
11268
+ className: Pe["lyd-root"],
11266
11269
  style: Q,
11267
11270
  role: "dialog",
11268
11271
  "aria-modal": "true",
@@ -11270,33 +11273,33 @@ function _c(t) {
11270
11273
  /* @__PURE__ */ e(
11271
11274
  "div",
11272
11275
  {
11273
- className: _e["lyd-backdrop"],
11276
+ className: Pe["lyd-backdrop"],
11274
11277
  onClick: _,
11275
11278
  "aria-hidden": "true"
11276
11279
  }
11277
11280
  ),
11278
11281
  /* @__PURE__ */ d("div", { className: U, children: [
11279
- /* @__PURE__ */ d("div", { className: _e["lyd-header"], children: [
11280
- /* @__PURE__ */ e("div", { className: _e["lyd-header-content"], children: B }),
11281
- /* @__PURE__ */ d("div", { className: _e["lyd-header-actions"], children: [
11282
+ /* @__PURE__ */ d("div", { className: Pe["lyd-header"], children: [
11283
+ /* @__PURE__ */ e("div", { className: Pe["lyd-header-content"], children: B }),
11284
+ /* @__PURE__ */ d("div", { className: Pe["lyd-header-actions"], children: [
11282
11285
  c && /* @__PURE__ */ e(Vc, { value: W, onChange: D }),
11283
11286
  s && /* @__PURE__ */ e(
11284
11287
  "button",
11285
11288
  {
11286
11289
  type: "button",
11287
- className: _e["lyd-close-btn"],
11290
+ className: Pe["lyd-close-btn"],
11288
11291
  onClick: n,
11289
11292
  "aria-label": "Close dialog",
11290
- children: /* @__PURE__ */ e(L, { name: "Cross", size: "md" })
11293
+ children: /* @__PURE__ */ e(M, { name: "Cross", size: "md" })
11291
11294
  }
11292
11295
  )
11293
11296
  ] })
11294
11297
  ] }),
11295
- /* @__PURE__ */ d("div", { className: _e["lyd-main"], children: [
11296
- /* @__PURE__ */ e("div", { className: _e["lyd-body"], children: w }),
11297
- R && /* @__PURE__ */ e("aside", { className: _e["lyd-aside"], children: R })
11298
+ /* @__PURE__ */ d("div", { className: Pe["lyd-main"], children: [
11299
+ /* @__PURE__ */ e("div", { className: Pe["lyd-body"], children: w }),
11300
+ R && /* @__PURE__ */ e("aside", { className: Pe["lyd-aside"], children: R })
11298
11301
  ] }),
11299
- z && /* @__PURE__ */ e("div", { className: _e["lyd-footer"], children: z })
11302
+ z && /* @__PURE__ */ e("div", { className: Pe["lyd-footer"], children: z })
11300
11303
  ] })
11301
11304
  ]
11302
11305
  }
@@ -11465,7 +11468,7 @@ function jc({
11465
11468
  ),
11466
11469
  /* @__PURE__ */ e(Tr, {}),
11467
11470
  r,
11468
- o && /* @__PURE__ */ d(se, { children: [
11471
+ o && /* @__PURE__ */ d(ae, { children: [
11469
11472
  /* @__PURE__ */ e(Tr, {}),
11470
11473
  /* @__PURE__ */ e(Ne, { label: i, position: "top", children: /* @__PURE__ */ e(
11471
11474
  N,
@@ -11473,7 +11476,7 @@ function jc({
11473
11476
  variant: "tertiary",
11474
11477
  tone: "neutral",
11475
11478
  size: "sm",
11476
- iconLeft: /* @__PURE__ */ e(L, { name: "Cross", size: "xs" }),
11479
+ iconLeft: /* @__PURE__ */ e(M, { name: "Cross", size: "xs" }),
11477
11480
  "aria-label": i,
11478
11481
  onClick: o,
11479
11482
  disabled: l