@starasia/admin 14.50.1 → 14.51.1

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
@@ -62,7 +62,7 @@ import { Skeleton as Ct } from "@starasia/skeleton";
62
62
  export * from "@starasia/skeleton";
63
63
  export * from "@starasia/progress-stepper";
64
64
  import { jsx as e, Fragment as ne, jsxs as u } from "react/jsx-runtime";
65
- import Dt, { createContext as _t, useState as B, useContext as At, useCallback as P, useMemo as Fe, memo as bt, useEffect as Q, useRef as le, useLayoutEffect as mt, forwardRef as an, isValidElement as Jr, useSyncExternalStore as Eo, Children as Fo, useImperativeHandle as Lo } from "react";
65
+ import Dt, { createContext as _t, useState as B, useContext as At, useCallback as j, useMemo as Fe, memo as bt, useEffect as Q, useRef as le, useLayoutEffect as mt, forwardRef as an, isValidElement as Jr, useSyncExternalStore as Eo, Children as Fo, useImperativeHandle as Lo } from "react";
66
66
  import Wo, { createPortal as dn } from "react-dom";
67
67
  import Ro from "react-easy-crop";
68
68
  const Mo = {
@@ -90,14 +90,14 @@ const Mo = {
90
90
  clearBadge: () => {
91
91
  }
92
92
  }), zo = ({ children: t }) => {
93
- const [r, n] = B({}), o = P(
93
+ const [r, n] = B({}), o = j(
94
94
  (s) => {
95
95
  n(
96
96
  (a) => typeof s == "function" ? s(a) : s
97
97
  );
98
98
  },
99
99
  []
100
- ), i = P(
100
+ ), i = j(
101
101
  (s, a) => {
102
102
  n((d) => {
103
103
  const f = typeof a == "function" ? a(d[s]) : a;
@@ -105,7 +105,7 @@ const Mo = {
105
105
  });
106
106
  },
107
107
  []
108
- ), l = P((s) => {
108
+ ), l = j((s) => {
109
109
  n((a) => {
110
110
  if (!(s in a)) return a;
111
111
  const d = { ...a };
@@ -171,14 +171,14 @@ const Mo = {
171
171
  }) => {
172
172
  const [c, s] = B(r), [a, d] = B(!1), [f, p] = B(
173
173
  () => Ho(l, n, o, i)
174
- ), g = P(
174
+ ), g = j(
175
175
  (k) => {
176
176
  s(
177
177
  (M) => typeof k == "function" ? k(M) : k
178
178
  );
179
179
  },
180
180
  []
181
- ), b = P(() => s((k) => !k), []), D = P(() => s(!0), []), C = P(() => s(!1), []), I = P(
181
+ ), b = j(() => s((k) => !k), []), D = j(() => s(!0), []), C = j(() => s(!1), []), I = j(
182
182
  (k) => {
183
183
  p((M) => {
184
184
  const G = typeof k == "function" ? k(M) : k, O = Kr(Math.round(G), o, i);
@@ -186,17 +186,17 @@ const Mo = {
186
186
  });
187
187
  },
188
188
  [o, i, l]
189
- ), z = P(() => {
189
+ ), z = j(() => {
190
190
  const k = Kr(n, o, i);
191
191
  In(l, k), p(k);
192
- }, [n, o, i, l]), A = P(
192
+ }, [n, o, i, l]), A = j(
193
193
  (k) => {
194
194
  d(
195
195
  (M) => typeof k == "function" ? k(M) : k
196
196
  );
197
197
  },
198
198
  []
199
- ), x = P(() => d(!0), []), S = P(() => d(!1), []), L = P(() => d((k) => !k), []), R = Fe(
199
+ ), x = j(() => d(!0), []), S = j(() => d(!1), []), L = j(() => d((k) => !k), []), R = Fe(
200
200
  () => ({
201
201
  collapsed: c,
202
202
  setCollapsed: g,
@@ -310,7 +310,7 @@ function $o({
310
310
  }
311
311
  const un = _t(null);
312
312
  function _o({ children: t }) {
313
- const [r, n] = B(null), [o, i] = B(null), [l, c] = B(null), [s, a] = B(0), d = P(() => (a((f) => f + 1), () => a((f) => f - 1)), []);
313
+ const [r, n] = B(null), [o, i] = B(null), [l, c] = B(null), [s, a] = B(0), d = j(() => (a((f) => f + 1), () => a((f) => f - 1)), []);
314
314
  return /* @__PURE__ */ e(
315
315
  un.Provider,
316
316
  {
@@ -328,7 +328,7 @@ function _o({ children: t }) {
328
328
  }
329
329
  );
330
330
  }
331
- function Po({ children: t }) {
331
+ function jo({ children: t }) {
332
332
  const r = At(un);
333
333
  return r ? /* @__PURE__ */ u(ne, { children: [
334
334
  /* @__PURE__ */ e("div", { ref: r.setPrependNode, style: { display: "contents" } }),
@@ -352,10 +352,10 @@ function Ea({
352
352
  return o ? dn(t, o) : null;
353
353
  }
354
354
  const hn = _t(null);
355
- function jo({ children: t }) {
356
- const [r, n] = B({}), [o, i] = B({}), l = P((a, d) => {
355
+ function Po({ children: t }) {
356
+ const [r, n] = B({}), [o, i] = B({}), l = j((a, d) => {
357
357
  n((f) => f[a] === d ? f : { ...f, [a]: d });
358
- }, []), c = P((a) => (i((d) => ({ ...d, [a]: (d[a] ?? 0) + 1 })), () => i((d) => ({
358
+ }, []), c = j((a) => (i((d) => ({ ...d, [a]: (d[a] ?? 0) + 1 })), () => i((d) => ({
359
359
  ...d,
360
360
  [a]: Math.max(0, (d[a] ?? 0) - 1)
361
361
  }))), []), s = Fe(
@@ -367,7 +367,7 @@ function jo({ children: t }) {
367
367
  function Bn({ slotKey: t, fallback: r }) {
368
368
  const n = At(hn), o = n ? (n.slotCounts[t] ?? 0) > 0 : !1, i = le(n == null ? void 0 : n.setOutletNode);
369
369
  i.current = n == null ? void 0 : n.setOutletNode;
370
- const l = P(
370
+ const l = j(
371
371
  (c) => {
372
372
  var s;
373
373
  return (s = i.current) == null ? void 0 : s.call(i, t, c);
@@ -785,7 +785,7 @@ function Wa({
785
785
  width: re,
786
786
  setWidth: J,
787
787
  resetWidth: me,
788
- minWidth: j,
788
+ minWidth: P,
789
789
  maxWidth: K,
790
790
  mobileOpen: se,
791
791
  setMobileOpen: ke
@@ -795,12 +795,12 @@ function Wa({
795
795
  Q(() => {
796
796
  On = xe;
797
797
  }, [xe]);
798
- const Me = le(null), st = le(null), at = le(null), [T, X] = B(!1), [q, fe] = B(null), We = b && !O && !Z, Ce = (E) => Math.min(Math.max(E, j), K), Ne = q ?? re, dt = (E) => {
799
- var tt, je, ot;
798
+ const Me = le(null), st = le(null), at = le(null), [T, X] = B(!1), [q, fe] = B(null), We = b && !O && !Z, Ce = (E) => Math.min(Math.max(E, P), K), Ne = q ?? re, dt = (E) => {
799
+ var tt, Pe, ot;
800
800
  if (!We) return;
801
801
  E.preventDefault();
802
802
  const _ = E.clientX, U = ((tt = at.current) == null ? void 0 : tt.getBoundingClientRect().width) ?? re;
803
- (ot = (je = E.currentTarget).setPointerCapture) == null || ot.call(je, E.pointerId), X(!0), document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
803
+ (ot = (Pe = E.currentTarget).setPointerCapture) == null || ot.call(Pe, E.pointerId), X(!0), document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
804
804
  let ce = 0, ge = U;
805
805
  const ze = (Xe) => {
806
806
  ge = U + (Xe.clientX - _), ce || (ce = requestAnimationFrame(() => {
@@ -811,7 +811,7 @@ function Wa({
811
811
  };
812
812
  window.addEventListener("pointermove", ze), window.addEventListener("pointerup", ue);
813
813
  }, et = (E) => {
814
- We && (E.key === "ArrowLeft" ? (E.preventDefault(), J((_) => _ - _n)) : E.key === "ArrowRight" ? (E.preventDefault(), J((_) => _ + _n)) : E.key === "Home" ? (E.preventDefault(), J(j)) : E.key === "End" && (E.preventDefault(), J(K)));
814
+ We && (E.key === "ArrowLeft" ? (E.preventDefault(), J((_) => _ - _n)) : E.key === "ArrowRight" ? (E.preventDefault(), J((_) => _ + _n)) : E.key === "Home" ? (E.preventDefault(), J(P)) : E.key === "End" && (E.preventDefault(), J(K)));
815
815
  };
816
816
  Q(() => {
817
817
  const E = Me.current;
@@ -848,8 +848,8 @@ function Wa({
848
848
  }, 300), ze = setTimeout(() => {
849
849
  const ue = Me.current, tt = ue == null ? void 0 : ue.querySelector("[data-menu-active='true']");
850
850
  if (ue && tt) {
851
- const je = ue.getBoundingClientRect(), ot = tt.getBoundingClientRect();
852
- ot.top >= je.top && ot.bottom <= je.bottom || tt.scrollIntoView({ block: "center", behavior: "smooth" });
851
+ const Pe = ue.getBoundingClientRect(), ot = tt.getBoundingClientRect();
852
+ ot.top >= Pe.top && ot.bottom <= Pe.bottom || tt.scrollIntoView({ block: "center", behavior: "smooth" });
853
853
  }
854
854
  }, 250);
855
855
  return () => {
@@ -895,14 +895,14 @@ function Wa({
895
895
  if (ce && Br(ce, ge)) return ce.key;
896
896
  const ze = _.items.find((ue) => ue.groupIds && Br(ue, ge)) ?? _.items.find((ue) => !ue.groupIds);
897
897
  return (ze == null ? void 0 : ze.key) ?? (ce == null ? void 0 : ce.key) ?? U;
898
- }, [Lt, Pe] = B(
898
+ }, [Lt, je] = B(
899
899
  () => Ft(null)
900
900
  );
901
901
  Q(() => {
902
- Pe((E) => Ft(E));
902
+ je((E) => Ft(E));
903
903
  }, [M.pathname, L.menus]);
904
904
  const Ye = he ? D.items.find((E) => E.key === Lt) ?? D.items[0] : void 0, Yt = (E) => {
905
- Pe(E), De && Y(!1);
905
+ je(E), De && Y(!1);
906
906
  }, Xt = (E) => {
907
907
  E.onClick ? E.onClick() : E.to && k(E.to);
908
908
  };
@@ -955,7 +955,7 @@ function Wa({
955
955
  }
956
956
  );
957
957
  const It = (E) => {
958
- const _ = E.children && E.children.length > 0, U = !!E.slotKey, ce = _ || U, ge = xe.has(E.id), ze = _ ? E.children.some((je) => ut(je.to)) : U ? !1 : ut(E.to), ue = Ir(E.badge, R[E.id]), tt = !!ue && ye;
958
+ const _ = E.children && E.children.length > 0, U = !!E.slotKey, ce = _ || U, ge = xe.has(E.id), ze = _ ? E.children.some((Pe) => ut(Pe.to)) : U ? !1 : ut(E.to), ue = Ir(E.badge, R[E.id]), tt = !!ue && ye;
959
959
  return /* @__PURE__ */ u(
960
960
  h,
961
961
  {
@@ -966,12 +966,12 @@ function Wa({
966
966
  h,
967
967
  {
968
968
  as: "button",
969
- onClick: (je) => {
969
+ onClick: (Pe) => {
970
970
  if (U && ye)
971
971
  k(E.to);
972
972
  else if (ce)
973
973
  if (ye) {
974
- const ot = je.currentTarget.getBoundingClientRect();
974
+ const ot = Pe.currentTarget.getBoundingClientRect();
975
975
  Ke({
976
976
  item: E,
977
977
  top: ot.top,
@@ -1077,7 +1077,7 @@ function Wa({
1077
1077
  }
1078
1078
  ),
1079
1079
  ce && !ye && (() => {
1080
- const je = E.children ?? [], ot = U ? -1 : je.findIndex((ct) => ut(ct.to)), Xe = je.map((ct) => {
1080
+ const Pe = E.children ?? [], ot = U ? -1 : Pe.findIndex((ct) => ut(ct.to)), Xe = Pe.map((ct) => {
1081
1081
  const Bt = Ir(
1082
1082
  ct.badge,
1083
1083
  R[ct.id]
@@ -1148,7 +1148,7 @@ function Wa({
1148
1148
  paddingLeft: "0.75rem",
1149
1149
  transition: "all 0.3s ease-in-out",
1150
1150
  // Konten slot panjangnya dinamis → tanpa batas tinggi saat terbuka.
1151
- maxHeight: ge ? U ? "none" : `${je.length * 36}px` : "0px",
1151
+ maxHeight: ge ? U ? "none" : `${Pe.length * 36}px` : "0px",
1152
1152
  opacity: ge ? 1 : 0,
1153
1153
  marginTop: ge ? "0.25rem" : "0px"
1154
1154
  },
@@ -1201,7 +1201,7 @@ function Wa({
1201
1201
  E.id
1202
1202
  );
1203
1203
  };
1204
- return /* @__PURE__ */ e(jo, { children: /* @__PURE__ */ u(_o, { children: [
1204
+ return /* @__PURE__ */ e(Po, { children: /* @__PURE__ */ u(_o, { children: [
1205
1205
  /* @__PURE__ */ u(
1206
1206
  h,
1207
1207
  {
@@ -1516,7 +1516,7 @@ function Wa({
1516
1516
  "aria-orientation": "vertical",
1517
1517
  "aria-label": "Resize sidebar",
1518
1518
  "aria-valuenow": re,
1519
- "aria-valuemin": j,
1519
+ "aria-valuemin": P,
1520
1520
  "aria-valuemax": K,
1521
1521
  tabIndex: 0,
1522
1522
  onPointerDown: dt,
@@ -1585,7 +1585,7 @@ function Wa({
1585
1585
  children: /* @__PURE__ */ e(F, { name: "MenuBurger", size: "lg" })
1586
1586
  }
1587
1587
  ),
1588
- /* @__PURE__ */ e(Po, { children: r })
1588
+ /* @__PURE__ */ e(jo, { children: r })
1589
1589
  ]
1590
1590
  }
1591
1591
  ),
@@ -1915,7 +1915,7 @@ const vr = an(
1915
1915
  children: t
1916
1916
  }
1917
1917
  )
1918
- ), Pn = ({
1918
+ ), jn = ({
1919
1919
  title: t,
1920
1920
  iconName: r,
1921
1921
  textColor: n,
@@ -1998,7 +1998,7 @@ const vr = an(
1998
1998
  iconColor: c.iconColor,
1999
1999
  hoverIconColor: c.hoverIconColor
2000
2000
  }
2001
- ) : l ? /* @__PURE__ */ e(h, { direction: "row", children: /* @__PURE__ */ e(r, { to: l, replace: !0, style: { textDecoration: "none" }, children: /* @__PURE__ */ e(Pn, { ...c }) }) }) : /* @__PURE__ */ e(h, { direction: "row", children: /* @__PURE__ */ e(vr, { onClick: i, children: /* @__PURE__ */ e(Pn, { ...c }) }) });
2001
+ ) : l ? /* @__PURE__ */ e(h, { direction: "row", children: /* @__PURE__ */ e(r, { to: l, replace: !0, style: { textDecoration: "none" }, children: /* @__PURE__ */ e(jn, { ...c }) }) }) : /* @__PURE__ */ e(h, { direction: "row", children: /* @__PURE__ */ e(vr, { onClick: i, children: /* @__PURE__ */ e(jn, { ...c }) }) });
2002
2002
  }, Tr = [
2003
2003
  // brand (blue)
2004
2004
  {
@@ -2043,7 +2043,7 @@ const vr = an(
2043
2043
  activeShadow: "rgba(255, 117, 143, 0.25)"
2044
2044
  }
2045
2045
  ];
2046
- function jn(t, r, n) {
2046
+ function Pn(t, r, n) {
2047
2047
  return {
2048
2048
  display: "flex",
2049
2049
  alignItems: "center",
@@ -2116,7 +2116,7 @@ function Jo({
2116
2116
  onMouseLeave: () => c(void 0),
2117
2117
  style: Gn,
2118
2118
  children: [
2119
- /* @__PURE__ */ e("div", { style: jn(o === null, l === "all", a), children: /* @__PURE__ */ e("div", { style: { color: a.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(F, { name: "Grid", size: "lg", style: { width: 32, height: 32 } }) }) }),
2119
+ /* @__PURE__ */ e("div", { style: Pn(o === null, l === "all", a), children: /* @__PURE__ */ e("div", { style: { color: a.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(F, { name: "Grid", size: "lg", style: { width: 32, height: 32 } }) }) }),
2120
2120
  /* @__PURE__ */ e("span", { style: Zn, children: "Semua" })
2121
2121
  ]
2122
2122
  }
@@ -2132,7 +2132,7 @@ function Jo({
2132
2132
  onMouseLeave: () => c(void 0),
2133
2133
  style: Gn,
2134
2134
  children: [
2135
- /* @__PURE__ */ e("div", { style: jn(p, g, D), children: /* @__PURE__ */ e("div", { style: { color: D.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(F, { name: b, size: "lg", style: { width: 32, height: 32 } }) }) }),
2135
+ /* @__PURE__ */ e("div", { style: Pn(p, g, D), children: /* @__PURE__ */ e("div", { style: { color: D.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(F, { name: b, size: "lg", style: { width: 32, height: 32 } }) }) }),
2136
2136
  /* @__PURE__ */ e("span", { style: Zn, children: d.name })
2137
2137
  ]
2138
2138
  },
@@ -2502,13 +2502,13 @@ const Ko = (t, r) => {
2502
2502
  return H.forEach((Y, re) => {
2503
2503
  const J = Y.order ?? 0;
2504
2504
  J >= Z && (Z = J, N = re);
2505
- }), H.map(({ content: Y, order: re, borderBottom: J = !0, keepBottomPadding: me = !1, paddingInline: j = !0, paddingBlock: K = !0 }, se) => /* @__PURE__ */ e(
2505
+ }), H.map(({ content: Y, order: re, borderBottom: J = !0, keepBottomPadding: me = !1, paddingInline: P = !0, paddingBlock: K = !0 }, se) => /* @__PURE__ */ e(
2506
2506
  h,
2507
2507
  {
2508
2508
  direction: "column",
2509
2509
  paddingTop: K ? "sm" : "spacing-0",
2510
2510
  paddingBottom: K && (J || me || se === N) ? "sm" : "spacing-0",
2511
- paddingInline: j ? "md" : "spacing-0",
2511
+ paddingInline: P ? "md" : "spacing-0",
2512
2512
  style: {
2513
2513
  // Inset box-shadow (not a real border) so the divider line doesn't
2514
2514
  // add 1px to the row height — keeps the sub-header stack from shifting
@@ -2606,12 +2606,12 @@ const Ko = (t, r) => {
2606
2606
  const L = !Ie("md"), R = s ?? d ?? a ?? "357px", k = D ?? [], M = k.length > 1, [G, O] = B(() => {
2607
2607
  const de = k.indexOf(R);
2608
2608
  return de >= 0 ? de : 0;
2609
- }), [H, N] = B(null), [Z, Y] = B(!1), [re, J] = B(!1), me = le(null), j = (de) => {
2609
+ }), [H, N] = B(null), [Z, Y] = B(!1), [re, J] = B(!1), me = le(null), P = (de) => {
2610
2610
  me.current = de, typeof x == "function" ? x(de) : x && (x.current = de);
2611
2611
  }, K = M ? k[G] : R, se = H != null ? `${H}px` : K, ke = C && !L, Be = G === k.length - 1, Le = () => {
2612
2612
  const de = (G + 1) % k.length;
2613
2613
  N(null), O(de), A == null || A(k[de]);
2614
- }, xe = P(
2614
+ }, xe = j(
2615
2615
  (de) => {
2616
2616
  const he = z ?? window.innerWidth;
2617
2617
  return Math.min(Math.max(de, I), he);
@@ -2625,7 +2625,7 @@ const Ko = (t, r) => {
2625
2625
  isShow: r,
2626
2626
  position: "right",
2627
2627
  onHide: t,
2628
- ref: j,
2628
+ ref: P,
2629
2629
  size: se,
2630
2630
  style: o,
2631
2631
  flush: !0,
@@ -3090,14 +3090,14 @@ const Ko = (t, r) => {
3090
3090
  withTitleLabels: C = !1
3091
3091
  }) => {
3092
3092
  const z = (g == null ? void 0 : g.isShowLabel) ?? !0, [A, x] = B(!1), [S, L] = B(0), R = () => {
3093
- L((j) => j + 1);
3093
+ L((P) => P + 1);
3094
3094
  }, { searchParams: k, setSearchParams: M, getQueryParam: G } = it(), O = br(k.toString()), H = fn(t, k, s) || "", [N, Z] = B(H), Y = G(s), J = !!(Y && !(() => {
3095
3095
  if (Y)
3096
3096
  try {
3097
- const j = JSON.parse(Y);
3098
- return Object.keys(j).length === 1 && j[t] === "";
3099
- } catch (j) {
3100
- console.error("Filter parameter is not a valid JSON:", j);
3097
+ const P = JSON.parse(Y);
3098
+ return Object.keys(P).length === 1 && P[t] === "";
3099
+ } catch (P) {
3100
+ console.error("Filter parameter is not a valid JSON:", P);
3101
3101
  }
3102
3102
  return !1;
3103
3103
  })()), me = Ie("md");
@@ -3106,7 +3106,7 @@ const Ko = (t, r) => {
3106
3106
  }, [H]), Q(() => {
3107
3107
  if (N === H)
3108
3108
  return;
3109
- const j = window.setTimeout(() => {
3109
+ const P = window.setTimeout(() => {
3110
3110
  fr({
3111
3111
  value: N,
3112
3112
  name: t,
@@ -3118,7 +3118,7 @@ const Ko = (t, r) => {
3118
3118
  });
3119
3119
  }, 350);
3120
3120
  return () => {
3121
- window.clearTimeout(j);
3121
+ window.clearTimeout(P);
3122
3122
  };
3123
3123
  }, [
3124
3124
  N,
@@ -3141,22 +3141,22 @@ const Ko = (t, r) => {
3141
3141
  V,
3142
3142
  {
3143
3143
  onClick: () => {
3144
- const j = new URLSearchParams(k);
3145
- j.delete(s), M(j), Z(""), R(), f && f();
3144
+ const P = new URLSearchParams(k);
3145
+ P.delete(s), M(P), Z(""), R(), f && f();
3146
3146
  },
3147
3147
  variant: "outline",
3148
3148
  tone: "neutral",
3149
3149
  children: /* @__PURE__ */ e(w, { color: "error", fontWeight: "semibold", children: "Reset" })
3150
3150
  }
3151
3151
  ) }),
3152
- i == null ? void 0 : i.map(({ minWidth: j, content: K, title: se, onClickContainer: ke }, Be) => /* @__PURE__ */ u(
3152
+ i == null ? void 0 : i.map(({ minWidth: P, content: K, title: se, onClickContainer: ke }, Be) => /* @__PURE__ */ u(
3153
3153
  h,
3154
3154
  {
3155
3155
  direction: "column",
3156
3156
  gap: "sm",
3157
3157
  onClick: ke,
3158
3158
  style: {
3159
- minWidth: j
3159
+ minWidth: P
3160
3160
  },
3161
3161
  children: [
3162
3162
  se && /* @__PURE__ */ e(gt.SubH3, { children: se }),
@@ -3229,8 +3229,8 @@ const Ko = (t, r) => {
3229
3229
  })
3230
3230
  }
3231
3231
  ] : [],
3232
- onChange: (j) => fr({
3233
- value: j,
3232
+ onChange: (P) => fr({
3233
+ value: P,
3234
3234
  name: r,
3235
3235
  type: "dropdown",
3236
3236
  searchQueries: O,
@@ -3262,7 +3262,7 @@ const Ko = (t, r) => {
3262
3262
  {
3263
3263
  placeholder: n,
3264
3264
  leftIcon: /* @__PURE__ */ e(F, { name: "Search", width: 20, height: 20 }),
3265
- onChange: (j) => Z(j.target.value),
3265
+ onChange: (P) => Z(P.target.value),
3266
3266
  value: N,
3267
3267
  fullWidth: !0
3268
3268
  },
@@ -3303,21 +3303,21 @@ function mn({
3303
3303
  const k = a[R];
3304
3304
  return (k == null ? void 0 : k.locked) || S.includes(R) || L.includes(R);
3305
3305
  });
3306
- }, [l, n, r, i, t, a]), f = P(
3306
+ }, [l, n, r, i, t, a]), f = j(
3307
3307
  (S) => yt(S[r]),
3308
3308
  [r]
3309
- ), p = P(
3309
+ ), p = j(
3310
3310
  (S) => {
3311
3311
  const L = { ...s };
3312
3312
  S.length ? L[n] = S.join(",") : delete L[n], c(L);
3313
3313
  },
3314
3314
  [s, n, c]
3315
- ), g = P(
3315
+ ), g = j(
3316
3316
  (S) => {
3317
3317
  d.includes(S) || p([...d, S]);
3318
3318
  },
3319
3319
  [d, p]
3320
- ), b = P(
3320
+ ), b = j(
3321
3321
  (S) => {
3322
3322
  var M;
3323
3323
  if ((M = a[S]) != null && M.locked) return;
@@ -3336,10 +3336,10 @@ function mn({
3336
3336
  c,
3337
3337
  a
3338
3338
  ]
3339
- ), D = P(
3339
+ ), D = j(
3340
3340
  (S) => d.includes(S) ? b(S) : g(S),
3341
3341
  [d, g, b]
3342
- ), C = P(
3342
+ ), C = j(
3343
3343
  (S) => {
3344
3344
  switch (S.type) {
3345
3345
  case "dropdown":
@@ -3373,7 +3373,7 @@ function mn({
3373
3373
  }
3374
3374
  },
3375
3375
  [l, r, f]
3376
- ), I = P(
3376
+ ), I = j(
3377
3377
  (S, L) => {
3378
3378
  if (S.type === "date-compact" || S.type === "text") {
3379
3379
  const R = { ...s }, k = f(R);
@@ -3391,13 +3391,13 @@ function mn({
3391
3391
  });
3392
3392
  },
3393
3393
  [s, c, r, o, f]
3394
- ), z = P(
3394
+ ), z = j(
3395
3395
  (S) => {
3396
3396
  const L = { ...s }, R = f(L);
3397
3397
  S in R && (delete R[S], Object.keys(R).length ? L[r] = JSON.stringify(R) : delete L[r]), delete L[o], c(L);
3398
3398
  },
3399
3399
  [s, r, o, f, c]
3400
- ), A = P(() => {
3400
+ ), A = j(() => {
3401
3401
  const S = { ...s };
3402
3402
  delete S[r], delete S[n], delete S[o], c(S);
3403
3403
  }, [s, r, n, o, c]), x = d.length > 0;
@@ -3469,7 +3469,7 @@ function zl({
3469
3469
  Q(() => {
3470
3470
  D.current || (D.current = !0, o == null || o(a));
3471
3471
  }, []);
3472
- const C = P(
3472
+ const C = j(
3473
3473
  (k) => {
3474
3474
  d(k), c && n.set(c, k), o == null || o(k);
3475
3475
  },
@@ -3477,20 +3477,20 @@ function zl({
3477
3477
  ), I = Fe(() => {
3478
3478
  const k = new Map(t.map((M) => [M.key, M]));
3479
3479
  return a.order.filter((M) => k.has(M)).map((M) => ({ ...k.get(M), visible: !a.hidden.includes(M) }));
3480
- }, [a, t]), z = P(
3480
+ }, [a, t]), z = j(
3481
3481
  (k) => {
3482
3482
  const M = a.hidden.includes(k) ? a.hidden.filter((G) => G !== k) : [...a.hidden, k];
3483
3483
  C({ ...a, hidden: M });
3484
3484
  },
3485
3485
  [a, C]
3486
- ), A = P(
3486
+ ), A = j(
3487
3487
  (k, M) => {
3488
3488
  if (k === M) return;
3489
3489
  const G = [...a.order], [O] = G.splice(k, 1);
3490
3490
  G.splice(M, 0, O), C({ ...a, order: G });
3491
3491
  },
3492
3492
  [a, C]
3493
- ), x = P(
3493
+ ), x = j(
3494
3494
  (k) => {
3495
3495
  C({
3496
3496
  ...a,
@@ -3498,7 +3498,7 @@ function zl({
3498
3498
  });
3499
3499
  },
3500
3500
  [a, t, C]
3501
- ), S = P(() => C(l), [C, l]), L = P(
3501
+ ), S = j(() => C(l), [C, l]), L = j(
3502
3502
  (k) => C(ir(k, t)),
3503
3503
  [C, t]
3504
3504
  ), R = a.hidden.length === 0;
@@ -3523,13 +3523,13 @@ function Il({
3523
3523
  }) {
3524
3524
  const { searchParams: c, setSearchParams: s } = it(), a = t ? Ut.savedViews(t) : void 0, [d, f] = B(
3525
3525
  () => a ? r.get(a) || [] : []
3526
- ), p = P(
3526
+ ), p = j(
3527
3527
  (C) => {
3528
3528
  f(C), a && r.set(a, C);
3529
3529
  },
3530
3530
  [a]
3531
3531
  // storage identity is stable (module singleton / caller-provided)
3532
- ), g = P(
3532
+ ), g = j(
3533
3533
  (C) => {
3534
3534
  const I = C.trim();
3535
3535
  if (!I) return;
@@ -3548,10 +3548,10 @@ function Il({
3548
3548
  p([...d, A]);
3549
3549
  },
3550
3550
  [n, c, i, p, d]
3551
- ), b = P(
3551
+ ), b = j(
3552
3552
  (C) => p(d.filter((I) => I.id !== C)),
3553
3553
  [p, d]
3554
- ), D = P(
3554
+ ), D = j(
3555
3555
  (C) => {
3556
3556
  const I = Object.fromEntries(c.entries());
3557
3557
  n.forEach((z) => delete I[z]), Object.assign(I, C.query), delete I[o], s(I), C.columns && (l == null || l(C.columns));
@@ -3613,13 +3613,13 @@ function Hl({
3613
3613
  i,
3614
3614
  l
3615
3615
  ]);
3616
- const p = P(() => {
3616
+ const p = j(() => {
3617
3617
  if (!a) return null;
3618
3618
  const b = r.get(a);
3619
3619
  if (!b || typeof b != "object" || Array.isArray(b) || Object.keys(b).length === 0) return null;
3620
3620
  const D = b[i];
3621
3621
  return D != null && Object.keys(yt(D)).length === 0 && delete b[i], c || Qn(b, i, l), Object.keys(b).length > 0 ? b : null;
3622
- }, [a, r, c, i, l]), g = P(() => {
3622
+ }, [a, r, c, i, l]), g = j(() => {
3623
3623
  a && r.remove(a);
3624
3624
  }, [a, r]);
3625
3625
  return {
@@ -3650,13 +3650,13 @@ function Tl({
3650
3650
  const g = Number(p);
3651
3651
  !Number.isFinite(g) || g <= 0 || r.set(c, g);
3652
3652
  }, [s, c, n, r]);
3653
- const d = P(() => {
3653
+ const d = j(() => {
3654
3654
  if (!c) return null;
3655
3655
  const p = r.get(c);
3656
3656
  if (p == null) return null;
3657
3657
  const g = Number(p);
3658
3658
  return !Number.isFinite(g) || g <= 0 || o && !o.includes(g) ? null : String(g);
3659
- }, [c, r, o]), f = P(() => {
3659
+ }, [c, r, o]), f = j(() => {
3660
3660
  c && r.remove(c);
3661
3661
  }, [c, r]);
3662
3662
  return {
@@ -3836,7 +3836,7 @@ const Nl = ({
3836
3836
  past: "Past",
3837
3837
  next: "Next",
3838
3838
  this: "This"
3839
- }, _l = ["day", "week", "month", "year"], Pl = ["past", "next", "this"], jl = (t) => t.field.type === "date-compact" ? /* @__PURE__ */ e(
3839
+ }, _l = ["day", "week", "month", "year"], jl = ["past", "next", "this"], Pl = (t) => t.field.type === "date-compact" ? /* @__PURE__ */ e(
3840
3840
  ql,
3841
3841
  {
3842
3842
  field: t.field,
@@ -4132,7 +4132,7 @@ const Nl = ({
4132
4132
  children: rn[n]
4133
4133
  }
4134
4134
  ) }),
4135
- /* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ e(Qe, { style: { width: 140 }, children: Pl.map((s) => /* @__PURE__ */ e(
4135
+ /* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ e(Qe, { style: { width: 140 }, children: jl.map((s) => /* @__PURE__ */ e(
4136
4136
  Je,
4137
4137
  {
4138
4138
  selected: n === s,
@@ -4467,7 +4467,7 @@ const Nl = ({
4467
4467
  }
4468
4468
  ) })
4469
4469
  ] });
4470
- }, Pi = ({
4470
+ }, ji = ({
4471
4471
  activeKeys: t,
4472
4472
  configByKey: r,
4473
4473
  getValue: n,
@@ -4479,7 +4479,7 @@ const Nl = ({
4479
4479
  if (!s) return null;
4480
4480
  const a = n(s), d = s.locked ? void 0 : () => l(c);
4481
4481
  return s.type === "date" || s.type === "date-compact" ? /* @__PURE__ */ e(
4482
- jl,
4482
+ Pl,
4483
4483
  {
4484
4484
  field: s,
4485
4485
  value: a,
@@ -4602,7 +4602,7 @@ function rc(t, r, n = !0) {
4602
4602
  return window.addEventListener("keydown", o), () => window.removeEventListener("keydown", o);
4603
4603
  }, [t, r, n]);
4604
4604
  }
4605
- const nc = 240, ji = ({
4605
+ const nc = 240, Pi = ({
4606
4606
  searchKey: t = "q",
4607
4607
  filterKey: r = "filter",
4608
4608
  pageKey: n = "page",
@@ -4626,7 +4626,7 @@ const nc = 240, ji = ({
4626
4626
  pageKey: n
4627
4627
  });
4628
4628
  }, [I]);
4629
- const A = P(() => {
4629
+ const A = j(() => {
4630
4630
  p(!0), requestAnimationFrame(() => {
4631
4631
  var R;
4632
4632
  return (R = z.current) == null ? void 0 : R.focus();
@@ -5012,7 +5012,7 @@ const nc = 240, ji = ({
5012
5012
  gap: "sm",
5013
5013
  align: "center",
5014
5014
  children: /* @__PURE__ */ e(
5015
- Pi,
5015
+ ji,
5016
5016
  {
5017
5017
  activeKeys: o,
5018
5018
  configByKey: i,
@@ -5201,7 +5201,7 @@ const nc = 240, ji = ({
5201
5201
  onSetAllHidden: re,
5202
5202
  showSavedViews: J,
5203
5203
  savedViews: me,
5204
- onApplyView: j,
5204
+ onApplyView: P,
5205
5205
  onDeleteView: K,
5206
5206
  onSaveView: se,
5207
5207
  leadingActions: ke,
@@ -5236,7 +5236,7 @@ const nc = 240, ji = ({
5236
5236
  overflow: "overflow-auto",
5237
5237
  children: [
5238
5238
  g && /* @__PURE__ */ e(
5239
- ji,
5239
+ Pi,
5240
5240
  {
5241
5241
  searchKey: b,
5242
5242
  filterKey: D,
@@ -5272,7 +5272,7 @@ const nc = 240, ji = ({
5272
5272
  Gi,
5273
5273
  {
5274
5274
  views: me,
5275
- onApply: j,
5275
+ onApply: P,
5276
5276
  onDelete: K,
5277
5277
  onSave: se
5278
5278
  }
@@ -5385,7 +5385,7 @@ const nc = 240, ji = ({
5385
5385
  configByKey: re,
5386
5386
  hasActiveFilter: J,
5387
5387
  toggleFilter: me,
5388
- removeFilter: j,
5388
+ removeFilter: P,
5389
5389
  getValue: K,
5390
5390
  setValue: se,
5391
5391
  clearValue: ke,
@@ -5434,7 +5434,7 @@ const nc = 240, ji = ({
5434
5434
  const Ke = s ?? c[0] ?? 25, _e = !!(R != null && R.enabled) && xe.enabled, de = () => {
5435
5435
  Be(), ve.clear(), O == null || O();
5436
5436
  }, he = Ie("md"), ye = p ? /* @__PURE__ */ e(
5437
- ji,
5437
+ Pi,
5438
5438
  {
5439
5439
  searchKey: g,
5440
5440
  filterKey: n,
@@ -5491,14 +5491,14 @@ const nc = 240, ji = ({
5491
5491
  style: { flex: "1 1 0", minWidth: 0 },
5492
5492
  children: [
5493
5493
  /* @__PURE__ */ e(
5494
- Pi,
5494
+ ji,
5495
5495
  {
5496
5496
  activeKeys: Y,
5497
5497
  configByKey: re,
5498
5498
  getValue: K,
5499
5499
  setValue: se,
5500
5500
  clearValue: ke,
5501
- removeFilter: j
5501
+ removeFilter: P
5502
5502
  }
5503
5503
  ),
5504
5504
  J && /* @__PURE__ */ e(
@@ -5565,7 +5565,7 @@ const nc = 240, ji = ({
5565
5565
  configByKey: re,
5566
5566
  hasActiveFilter: J,
5567
5567
  toggleFilter: me,
5568
- removeFilter: j,
5568
+ removeFilter: P,
5569
5569
  getValue: K,
5570
5570
  setValue: se,
5571
5571
  clearValue: ke,
@@ -5705,7 +5705,7 @@ const nc = 240, ji = ({
5705
5705
  var R;
5706
5706
  const L = x.options;
5707
5707
  return ((R = L == null ? void 0 : L.find((k) => k.value === S)) == null ? void 0 : R.label) ?? S;
5708
- }, g = P(
5708
+ }, g = j(
5709
5709
  (x) => {
5710
5710
  const S = l[x];
5711
5711
  if (!S) return [];
@@ -5713,7 +5713,7 @@ const nc = 240, ji = ({
5713
5713
  return Array.isArray(L) ? L.map((R) => String(R.value)) : [];
5714
5714
  },
5715
5715
  [l, c]
5716
- ), b = P(
5716
+ ), b = j(
5717
5717
  (x, S) => {
5718
5718
  const L = l[x];
5719
5719
  if (!L || !uc.includes(L.type)) return;
@@ -5728,22 +5728,22 @@ const nc = 240, ji = ({
5728
5728
  );
5729
5729
  },
5730
5730
  [l, s, a]
5731
- ), D = P(
5731
+ ), D = j(
5732
5732
  (x, S) => {
5733
5733
  const L = g(x);
5734
5734
  b(x, L.includes(S) ? L.filter((R) => R !== S) : [...L, S]);
5735
5735
  },
5736
5736
  [g, b]
5737
- ), C = P(
5737
+ ), C = j(
5738
5738
  (x, S) => g(x).includes(S),
5739
5739
  [g]
5740
- ), I = P((x) => a(x), [a]), z = P(
5740
+ ), I = j((x) => a(x), [a]), z = j(
5741
5741
  (x) => {
5742
5742
  const S = l[x];
5743
5743
  return S ? c(S) : void 0;
5744
5744
  },
5745
5745
  [l, c]
5746
- ), A = P(
5746
+ ), A = j(
5747
5747
  (x, S) => {
5748
5748
  const L = l[x];
5749
5749
  if (L) {
@@ -5767,7 +5767,7 @@ const nc = 240, ji = ({
5767
5767
  setRaw: A,
5768
5768
  hasActiveFilter: f
5769
5769
  };
5770
- }, Pr = "var(--sa-background-brand, #04254f)", hc = "var(--sa-text-brand, #031f43)", fc = {
5770
+ }, jr = "var(--sa-background-brand, #04254f)", hc = "var(--sa-text-brand, #031f43)", fc = {
5771
5771
  padding: "6px 8px",
5772
5772
  border: "1px solid var(--sa-border-subtle, #0b120e24)",
5773
5773
  borderRadius: "var(--sa-radii-xs, 4px)",
@@ -5857,13 +5857,13 @@ const nc = 240, ji = ({
5857
5857
  display: "inline-flex",
5858
5858
  alignItems: "center",
5859
5859
  justifyContent: "center",
5860
- border: `1px solid ${f ? Pr : "var(--sa-border-subtle, #0b120e24)"}`,
5861
- background: f && !i ? Pr : "transparent"
5860
+ border: `1px solid ${f ? jr : "var(--sa-border-subtle, #0b120e24)"}`,
5861
+ background: f && !i ? jr : "transparent"
5862
5862
  },
5863
5863
  children: f && (i ? /* @__PURE__ */ e(
5864
5864
  "span",
5865
5865
  {
5866
- style: { width: 8, height: 8, borderRadius: "50%", background: Pr }
5866
+ style: { width: 8, height: 8, borderRadius: "50%", background: jr }
5867
5867
  }
5868
5868
  ) : /* @__PURE__ */ e(F, { name: "Check", size: "xs", style: { color: "#fff" } }))
5869
5869
  }
@@ -6530,7 +6530,7 @@ const nc = 240, ji = ({
6530
6530
  /* @__PURE__ */ e("path", { d: t ? "M7 11V7a5 5 0 0 1 10 0v4" : "M7 11V7a5 5 0 0 1 9.9-1" })
6531
6531
  ]
6532
6532
  }
6533
- ), jr = "var(--sa-background-primary, #ffffff)", ii = "var(--sa-background-primary-inverse, #f8f8f8)", Ec = ({
6533
+ ), Pr = "var(--sa-background-primary, #ffffff)", ii = "var(--sa-background-primary-inverse, #f8f8f8)", Ec = ({
6534
6534
  columns: t,
6535
6535
  records: r,
6536
6536
  handleDetail: n,
@@ -6566,7 +6566,7 @@ const nc = 240, ji = ({
6566
6566
  if (!X) return;
6567
6567
  let q;
6568
6568
  !H || H.key !== X ? q = { key: X, direction: "asc" } : H.direction === "asc" ? q = { key: X, direction: "desc" } : q = null, M || O(q), R == null || R(q);
6569
- }, re = [n, o, i].filter((T) => T !== void 0).length, J = !!b, me = !!n || !!o || !!i || J, j = "var(--sa-border-subtle, #0b120e24)", K = `1px solid ${j}`, se = `inset 1px 0 0 ${j}`, ke = `inset -1px 0 0 ${j}`, Be = re === 3 ? J ? "178px" : "140px" : re === 2 ? J ? "140px" : "102px" : re === 1 ? J ? "112px" : "74px" : J ? "74px" : "", Le = (T, X) => {
6569
+ }, re = [n, o, i].filter((T) => T !== void 0).length, J = !!b, me = !!n || !!o || !!i || J, P = "var(--sa-border-subtle, #0b120e24)", K = `1px solid ${P}`, se = `inset 1px 0 0 ${P}`, ke = `inset -1px 0 0 ${P}`, Be = re === 3 ? J ? "178px" : "140px" : re === 2 ? J ? "140px" : "102px" : re === 1 ? J ? "112px" : "74px" : J ? "74px" : "", Le = (T, X) => {
6570
6570
  if (!X) return T;
6571
6571
  if (typeof X == "function") return X(T);
6572
6572
  if (typeof X == "string") return T[X];
@@ -6796,7 +6796,7 @@ const nc = 240, ji = ({
6796
6796
  onMouseLeave: (q) => {
6797
6797
  const fe = q.currentTarget;
6798
6798
  fe.style.backgroundColor = "", Array.from(fe.querySelectorAll("td")).forEach((We) => {
6799
- We.style.position === "sticky" && (We.style.backgroundColor = jr);
6799
+ We.style.position === "sticky" && (We.style.backgroundColor = Pr);
6800
6800
  });
6801
6801
  },
6802
6802
  children: [
@@ -6809,7 +6809,7 @@ const nc = 240, ji = ({
6809
6809
  position: Ce ? "sticky" : void 0,
6810
6810
  left: Ce ? Ne : void 0,
6811
6811
  zIndex: Ce ? 1 : void 0,
6812
- backgroundColor: Ce ? jr : void 0,
6812
+ backgroundColor: Ce ? Pr : void 0,
6813
6813
  transition: Ce ? "background-color 0.3s ease" : void 0,
6814
6814
  paddingLeft: fe === 0 ? "12px" : "",
6815
6815
  whiteSpace: "nowrap",
@@ -6841,7 +6841,7 @@ const nc = 240, ji = ({
6841
6841
  position: "sticky",
6842
6842
  right: 0,
6843
6843
  zIndex: 1,
6844
- backgroundColor: jr,
6844
+ backgroundColor: Pr,
6845
6845
  boxShadow: k ? se : void 0,
6846
6846
  transition: "background-color 0.3s ease"
6847
6847
  }, children: /* @__PURE__ */ e(pe, { direction: "row", align: "center", justify: "center", gap: "sm", children: D.map((q) => {
@@ -6938,7 +6938,7 @@ function Lc(t) {
6938
6938
  t
6939
6939
  );
6940
6940
  }
6941
- const Pa = Lc(Fc), qi = "(any-pointer: coarse)", Wc = (t) => {
6941
+ const ja = Lc(Fc), qi = "(any-pointer: coarse)", Wc = (t) => {
6942
6942
  if (typeof window > "u" || !window.matchMedia) return () => {
6943
6943
  };
6944
6944
  const r = window.matchMedia(qi);
@@ -7014,7 +7014,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7014
7014
  }) => {
7015
7015
  const [p, g] = B(!1), b = le(null), D = le(null), [C, I] = B(
7016
7016
  { top: 0, left: 0 }
7017
- ), z = P(() => {
7017
+ ), z = j(() => {
7018
7018
  var H;
7019
7019
  const x = b.current;
7020
7020
  if (!x) return;
@@ -7164,7 +7164,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7164
7164
  return /* @__PURE__ */ e(ne, { children: s.map(
7165
7165
  (a, d) => a && l.has(a.toLowerCase()) ? /* @__PURE__ */ e("mark", { style: { ...Tc, ...n }, children: a }, d) : /* @__PURE__ */ e(Dt.Fragment, { children: a }, d)
7166
7166
  ) });
7167
- }, jt = "1px solid var(--sa-border-subtle, #0b120e24)", Vc = "var(--sa-text-subtle, #8c8f97)", Nt = "var(--sa-background-neutral, #f0f1f2)", ci = "2px 0 4px -2px var(--sa-border-subtle, #0b120e24)", Zt = 40, Zr = 5, Nc = 28, Gr = 4, cr = 16, qr = "var(--sa-background-brand-subtlest)", sr = {
7167
+ }, Pt = "1px solid var(--sa-border-subtle, #0b120e24)", Vc = "var(--sa-text-subtle, #8c8f97)", Nt = "var(--sa-background-neutral, #f0f1f2)", ci = "2px 0 4px -2px var(--sa-border-subtle, #0b120e24)", Zt = 40, Zr = 5, Nc = 28, Gr = 4, cr = 16, qr = "var(--sa-background-brand-subtlest)", sr = {
7168
7168
  display: "block",
7169
7169
  overflow: "hidden",
7170
7170
  textOverflow: "ellipsis",
@@ -7172,7 +7172,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7172
7172
  }, si = "sa-table-layout-styles", $c = () => {
7173
7173
  if (typeof document > "u" || document.getElementById(si)) return;
7174
7174
  const t = document.createElement("style");
7175
- t.id = si, t.textContent = `
7175
+ t.id = si, t.textContent = `@layer starasia.components {
7176
7176
  .sa-table-layout tbody td {
7177
7177
  transition: background-color 0.15s ease;
7178
7178
  background-color: var(--sa-tl-bg, transparent);
@@ -7223,11 +7223,11 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7223
7223
  .sa-table-layout tfoot.sa-tl-sticky-foot > tr:first-child > th {
7224
7224
  box-shadow: 0 -2px 4px -2px var(--sa-border-subtle, #0b120e24);
7225
7225
  }
7226
- `, document.head.appendChild(t);
7227
- }, Gt = (t) => t === "right" ? "right" : t === "center" ? "center" : "left", _c = /^(#|rgb|hsl|var\()/, ar = (t) => t ? _c.test(t) ? t : `var(--sa-background-${t})` : void 0, Pc = (t, r) => {
7226
+ }`, document.head.appendChild(t);
7227
+ }, Gt = (t) => t === "right" ? "right" : t === "center" ? "center" : "left", _c = /^(#|rgb|hsl|var\()/, ar = (t) => t ? _c.test(t) ? t : `var(--sa-background-${t})` : void 0, jc = (t, r) => {
7228
7228
  if (r)
7229
7229
  return t[r];
7230
- }, jc = (t, r) => t == null && r == null ? 0 : t == null ? -1 : r == null ? 1 : typeof t == "number" && typeof r == "number" ? t - r : String(t).localeCompare(String(r)), ja = ({
7230
+ }, Pc = (t, r) => t == null && r == null ? 0 : t == null ? -1 : r == null ? 1 : typeof t == "number" && typeof r == "number" ? t - r : String(t).localeCompare(String(r)), Pa = ({
7231
7231
  columns: t,
7232
7232
  data: r,
7233
7233
  getRowKey: n,
@@ -7262,7 +7262,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7262
7262
  isRowSelectable: re
7263
7263
  }) => {
7264
7264
  $c();
7265
- const me = !Ie(z) && I !== "scroll", j = !!(G != null && G.length), K = Ac(), se = j && (O === "column" || O === "auto" && K), ke = Math.min((G == null ? void 0 : G.length) ?? 0, Zr + 1), Be = ke > Zr ? 1 : ke, Le = cr * 2 + Be * Nc + Math.max(0, Be - 1) * Gr, xe = se ? Le : 1, [ve, He] = B(null);
7265
+ const me = !Ie(z) && I !== "scroll", P = !!(G != null && G.length), K = Ac(), se = P && (O === "column" || O === "auto" && K), ke = Math.min((G == null ? void 0 : G.length) ?? 0, Zr + 1), Be = ke > Zr ? 1 : ke, Le = cr * 2 + Be * Nc + Math.max(0, Be - 1) * Gr, xe = se ? Le : 1, [ve, He] = B(null);
7266
7266
  Q(() => {
7267
7267
  if (!ve) return;
7268
7268
  const y = () => He(null), v = setTimeout(() => document.addEventListener("click", y), 0);
@@ -7283,8 +7283,8 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7283
7283
  const y = new Set(De.hidden ?? []), v = (ie, Se) => ie.key ?? (typeof ie.accessor == "string" ? ie.accessor : `col-${Se}`), W = t.map((ie, Se) => {
7284
7284
  var lt;
7285
7285
  if ((lt = ie.children) != null && lt.length) {
7286
- const Pt = ie.children.map((ht, Vt) => ({ col: ht, key: v(ht, `${Se}-${Vt}`) })).filter((ht) => !y.has(ht.key));
7287
- return { col: ie, key: ie.key ?? `group-${Se}`, isGroup: !0, leaves: Pt };
7286
+ const jt = ie.children.map((ht, Vt) => ({ col: ht, key: v(ht, `${Se}-${Vt}`) })).filter((ht) => !y.has(ht.key));
7287
+ return { col: ie, key: ie.key ?? `group-${Se}`, isGroup: !0, leaves: jt };
7288
7288
  }
7289
7289
  const Ee = { col: ie, key: v(ie, `${Se}`) };
7290
7290
  return {
@@ -7314,16 +7314,16 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7314
7314
  if (!y) return r;
7315
7315
  const v = X.direction === "asc" ? 1 : -1;
7316
7316
  return [...r].sort(
7317
- (W, $) => jc(St(y.col, W), St(y.col, $)) * v
7317
+ (W, $) => Pc(St(y.col, W), St(y.col, $)) * v
7318
7318
  );
7319
- }, [r, q, X, Ce]), Te = !Ne && !et, zt = !!s && Te, [ut, Et] = vo(s ?? ""), Ft = zt ? ut : void 0, Lt = le(null), [Pe, Ye] = B();
7319
+ }, [r, q, X, Ce]), Te = !Ne && !et, zt = !!s && Te, [ut, Et] = vo(s ?? ""), Ft = zt ? ut : void 0, Lt = le(null), [je, Ye] = B();
7320
7320
  mt(() => {
7321
7321
  Ye(void 0);
7322
7322
  }, [Ae]), mt(() => {
7323
- if (!Te || Pe || !Lt.current) return;
7323
+ if (!Te || je || !Lt.current) return;
7324
7324
  const y = Lt.current.querySelectorAll("th.sa-tl-leaf");
7325
7325
  Ye(Array.from(y).map((v) => v.offsetWidth));
7326
- }, [Pe, Te]);
7326
+ }, [je, Te]);
7327
7327
  const [Yt, Xt] = B(), [wr, Dr] = B(0);
7328
7328
  mt(() => {
7329
7329
  if (!Ne || !Lt.current) return;
@@ -7333,9 +7333,9 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7333
7333
  const It = (y, v) => {
7334
7334
  if ((Ft == null ? void 0 : Ft[v]) != null) return Ft[v];
7335
7335
  if (y.width != null) return y.width;
7336
- if ((Pe == null ? void 0 : Pe[v]) != null) return Pe[v];
7337
- }, Jt = (y, v) => typeof y.width == "number" ? y.width : Pe == null ? void 0 : Pe[v], Wt = De.frozenKey && !Ne && !et ? Ce.findIndex((y) => y.key === De.frozenKey) : -1, E = (y) => y <= Wt, _ = H ? Zt : 0, U = (y) => {
7338
- const v = Yt ?? Pe;
7336
+ if ((je == null ? void 0 : je[v]) != null) return je[v];
7337
+ }, Jt = (y, v) => typeof y.width == "number" ? y.width : je == null ? void 0 : je[v], Wt = De.frozenKey && !Ne && !et ? Ce.findIndex((y) => y.key === De.frozenKey) : -1, E = (y) => y <= Wt, _ = H ? Zt : 0, U = (y) => {
7338
+ const v = Yt ?? je;
7339
7339
  if (!v) return _;
7340
7340
  let W = _;
7341
7341
  for (let $ = 0; $ < y; $++) W += v[$] ?? 0;
@@ -7362,7 +7362,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7362
7362
  return $.observe(y), y.querySelectorAll("th.sa-tl-leaf").forEach((ee) => $.observe(ee)), W(), () => {
7363
7363
  v && cancelAnimationFrame(v), $.disconnect();
7364
7364
  };
7365
- }, [Ae, Wt, H, Pe, Ft]);
7365
+ }, [Ae, Wt, H, je, Ft]);
7366
7366
  const ce = le(null), [ge, ze] = B("100vh");
7367
7367
  mt(() => {
7368
7368
  if (C !== void 0) return;
@@ -7376,11 +7376,11 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7376
7376
  };
7377
7377
  return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
7378
7378
  }, [C]);
7379
- const ue = (y, v) => n ? n(y, v) : v, tt = N !== void 0, [je, ot] = B(
7379
+ const ue = (y, v) => n ? n(y, v) : v, tt = N !== void 0, [Pe, ot] = B(
7380
7380
  () => new Set(Z ?? [])
7381
7381
  ), Xe = Fe(
7382
- () => tt ? new Set(N) : je,
7383
- [tt, N, je]
7382
+ () => tt ? new Set(N) : Pe,
7383
+ [tt, N, Pe]
7384
7384
  );
7385
7385
  Q(() => {
7386
7386
  H && !n && process.env.NODE_ENV !== "production" && console.warn(
@@ -7405,13 +7405,13 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7405
7405
  const y = new Set(Xe);
7406
7406
  kr ? Ot.forEach((v) => y.delete(v)) : Ot.forEach((v) => y.add(v)), ct(y);
7407
7407
  }, Sr = (y, v, W) => {
7408
- const $ = y.render ? y.render(v, W, Re) : Pc(v, y.accessor);
7408
+ const $ = y.render ? y.render(v, W, Re) : jc(v, y.accessor);
7409
7409
  if (p && !y.render && typeof $ == "string") {
7410
7410
  const ee = y.key ?? (typeof y.accessor == "string" ? y.accessor : void 0), oe = ee ? p[ee] : void 0;
7411
7411
  if (oe) return /* @__PURE__ */ e(Oc, { text: $, query: oe });
7412
7412
  }
7413
7413
  return $;
7414
- }, Er = Ce.length + (H ? 1 : 0) + (j ? 1 : 0), kn = ["80%", "55%", "70%", "45%", "90%", "60%"], Xi = (y, v) => kn[(y * 7 + v * 3) % kn.length], Ji = (y, v) => /* @__PURE__ */ e(Ct, { height: 14, width: Xi(y, v), borderRadius: "rounded-sm" }), Ki = Array.from({ length: M }, (y, v) => /* @__PURE__ */ u(nt, { children: [
7414
+ }, Er = Ce.length + (H ? 1 : 0) + (P ? 1 : 0), kn = ["80%", "55%", "70%", "45%", "90%", "60%"], Xi = (y, v) => kn[(y * 7 + v * 3) % kn.length], Ji = (y, v) => /* @__PURE__ */ e(Ct, { height: 14, width: Xi(y, v), borderRadius: "rounded-sm" }), Ki = Array.from({ length: M }, (y, v) => /* @__PURE__ */ u(nt, { children: [
7415
7415
  H && /* @__PURE__ */ e($e, { style: { width: Zt, padding: 0 }, children: /* @__PURE__ */ e("div", { style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(Ct, { height: 14, width: 14, borderRadius: "rounded-sm" }) }) }),
7416
7416
  Ce.map(({ col: W, key: $ }, ee) => /* @__PURE__ */ e(
7417
7417
  $e,
@@ -7421,7 +7421,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7421
7421
  },
7422
7422
  `sa-tl-sk-${v}-${$}`
7423
7423
  )),
7424
- j && /* @__PURE__ */ e($e, { style: { width: xe, padding: 0, border: "none" } })
7424
+ P && /* @__PURE__ */ e($e, { style: { width: xe, padding: 0, border: "none" } })
7425
7425
  ] }, `sa-tl-sk-${v}`)), eo = (y, v) => {
7426
7426
  v || Me({
7427
7427
  ...De,
@@ -7509,7 +7509,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7509
7509
  );
7510
7510
  }, no = (y, v) => {
7511
7511
  const W = Kt(y);
7512
- return W.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 6, flexWrap: "wrap", paddingTop: 8, marginTop: 8, borderTop: jt }, children: W.map(($) => /* @__PURE__ */ e(Dt.Fragment, { children: er($, y, v, { showLabel: !0, size: "sm" }) }, $.key)) }) : null;
7512
+ return W.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 6, flexWrap: "wrap", paddingTop: 8, marginTop: 8, borderTop: Pt }, children: W.map(($) => /* @__PURE__ */ e(Dt.Fragment, { children: er($, y, v, { showLabel: !0, size: "sm" }) }, $.key)) }) : null;
7513
7513
  }, io = (y, v) => {
7514
7514
  const W = Kt(y);
7515
7515
  return W.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 4, paddingRight: 8, flexShrink: 0 }, children: W.map(($) => /* @__PURE__ */ e(Dt.Fragment, { children: er($, y, v, { showLabel: !1 }) }, $.key)) }) : null;
@@ -7530,7 +7530,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7530
7530
  filterSlot: (Vt = W.renderFilter) == null ? void 0 : Vt.call(W),
7531
7531
  filterActive: W.filterActive
7532
7532
  }
7533
- ) : null, lt = W.align === "right", Pt = W.align === "right" ? "flex-end" : W.align === "center" ? "center" : "flex-start", ht = /* @__PURE__ */ u(
7533
+ ) : null, lt = W.align === "right", jt = W.align === "right" ? "flex-end" : W.align === "center" ? "center" : "flex-start", ht = /* @__PURE__ */ u(
7534
7534
  "span",
7535
7535
  {
7536
7536
  style: {
@@ -7539,7 +7539,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7539
7539
  display: "flex",
7540
7540
  alignItems: "center",
7541
7541
  gap: 6,
7542
- justifyContent: Pt,
7542
+ justifyContent: jt,
7543
7543
  overflow: "hidden"
7544
7544
  },
7545
7545
  children: [
@@ -7718,7 +7718,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7718
7718
  h,
7719
7719
  {
7720
7720
  style: {
7721
- border: jt,
7721
+ border: Pt,
7722
7722
  borderRadius: "var(--sa-radii-sm, 6px)",
7723
7723
  padding: 12,
7724
7724
  display: "flex",
@@ -7752,7 +7752,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7752
7752
  return /* @__PURE__ */ u(
7753
7753
  "div",
7754
7754
  {
7755
- style: { borderBottom: jt, backgroundColor: oe },
7755
+ style: { borderBottom: Pt, backgroundColor: oe },
7756
7756
  children: [
7757
7757
  /* @__PURE__ */ u("div", { style: { display: "flex", alignItems: "center" }, children: [
7758
7758
  Bt(y, v) && // Sibling dari tombol expand — tap checkbox tidak memuai baris.
@@ -7810,7 +7810,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7810
7810
  ]
7811
7811
  }
7812
7812
  ),
7813
- j && io(y, v)
7813
+ P && io(y, v)
7814
7814
  ] }),
7815
7815
  $ && /* @__PURE__ */ e(
7816
7816
  "div",
@@ -7838,7 +7838,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7838
7838
  h,
7839
7839
  {
7840
7840
  style: {
7841
- border: jt,
7841
+ border: Pt,
7842
7842
  borderRadius: "var(--sa-radii-sm, 6px)",
7843
7843
  padding: 12,
7844
7844
  display: "flex",
@@ -7863,14 +7863,14 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7863
7863
  Rr(y, v)
7864
7864
  ),
7865
7865
  Fn(y, v),
7866
- j && no(y, v)
7866
+ P && no(y, v)
7867
7867
  ]
7868
7868
  },
7869
7869
  W
7870
7870
  );
7871
7871
  })
7872
7872
  }
7873
- ), ho = l && Te && Pe !== void 0, Wn = c === "fixed" && !l && (Te ? Pe !== void 0 : !0), fo = Wn && !Te, tr = S && S.length > 0 ? S.map((y, v) => /* @__PURE__ */ e(nt, { children: y.cells.map((W, $) => /* @__PURE__ */ e(
7873
+ ), ho = l && Te && je !== void 0, Wn = c === "fixed" && !l && (Te ? je !== void 0 : !0), fo = Wn && !Te, tr = S && S.length > 0 ? S.map((y, v) => /* @__PURE__ */ e(nt, { children: y.cells.map((W, $) => /* @__PURE__ */ e(
7874
7874
  $e,
7875
7875
  {
7876
7876
  colSpan: W.colSpan,
@@ -7893,7 +7893,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7893
7893
  fo && /* @__PURE__ */ u("colgroup", { children: [
7894
7894
  H && /* @__PURE__ */ e("col", { style: { width: Zt } }),
7895
7895
  Ce.map(({ col: y, key: v }, W) => /* @__PURE__ */ e("col", { style: { width: It(y, W) } }, `col-${v}`)),
7896
- j && /* @__PURE__ */ e("col", { style: { width: xe } })
7896
+ P && /* @__PURE__ */ e("col", { style: { width: xe } })
7897
7897
  ] }),
7898
7898
  /* @__PURE__ */ e(Ci, { ref: Lt, children: Ne ? /* @__PURE__ */ u(ne, { children: [
7899
7899
  /* @__PURE__ */ u(nt, { children: [
@@ -7915,7 +7915,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7915
7915
  `grp-${y.key}`
7916
7916
  ) : Fr(y.leaves[0], { rowSpan: 2 })
7917
7917
  ),
7918
- j && /* @__PURE__ */ e(
7918
+ P && /* @__PURE__ */ e(
7919
7919
  Tt,
7920
7920
  {
7921
7921
  rowSpan: 2,
@@ -7938,7 +7938,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7938
7938
  ] }) : /* @__PURE__ */ u(nt, { children: [
7939
7939
  H && En(),
7940
7940
  oo(),
7941
- j && /* @__PURE__ */ e(
7941
+ P && /* @__PURE__ */ e(
7942
7942
  Tt,
7943
7943
  {
7944
7944
  style: {
@@ -7969,7 +7969,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7969
7969
  var Rn;
7970
7970
  const Ee = (Rn = oe.cellProps) == null ? void 0 : Rn.call(oe, y, v, Re);
7971
7971
  if (Ee != null && Ee.hidden) return null;
7972
- const lt = E(Se), Pt = lt && Se === Wt, ht = Sr(oe, y, v), Vt = typeof oe.bg == "function" ? oe.bg(y, v, Re) : oe.bg, rr = ar(Vt) ?? ee;
7972
+ const lt = E(Se), jt = lt && Se === Wt, ht = Sr(oe, y, v), Vt = typeof oe.bg == "function" ? oe.bg(y, v, Re) : oe.bg, rr = ar(Vt) ?? ee;
7973
7973
  return /* @__PURE__ */ e(
7974
7974
  $e,
7975
7975
  {
@@ -7984,7 +7984,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7984
7984
  position: lt ? "sticky" : void 0,
7985
7985
  left: lt ? U(Se) : void 0,
7986
7986
  zIndex: lt ? 1 : void 0,
7987
- boxShadow: Pt ? ci : void 0,
7987
+ boxShadow: jt ? ci : void 0,
7988
7988
  ...rr ? { "--sa-tl-bg": rr } : {}
7989
7989
  },
7990
7990
  children: typeof ht == "string" ? /* @__PURE__ */ e(
@@ -8003,7 +8003,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
8003
8003
  `tl-cell-${v}-${ie}`
8004
8004
  );
8005
8005
  }),
8006
- j && /* @__PURE__ */ e(
8006
+ P && /* @__PURE__ */ e(
8007
8007
  $e,
8008
8008
  {
8009
8009
  className: se ? "sa-tl-frozen" : void 0,
@@ -8043,7 +8043,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
8043
8043
  },
8044
8044
  children: me ? /* @__PURE__ */ u(ne, { children: [
8045
8045
  uo,
8046
- tr && !k && Re.length > 0 && /* @__PURE__ */ e(h, { style: { borderTop: jt }, children: /* @__PURE__ */ e(ur, { fullWidth: !0, size: i, className: "sa-table-layout", children: /* @__PURE__ */ e(Xr, { children: tr }) }) })
8046
+ tr && !k && Re.length > 0 && /* @__PURE__ */ e(h, { style: { borderTop: Pt }, children: /* @__PURE__ */ e(ur, { fullWidth: !0, size: i, className: "sa-table-layout", children: /* @__PURE__ */ e(Xr, { children: tr }) }) })
8047
8047
  ] }) : mo
8048
8048
  }
8049
8049
  ),
@@ -8092,7 +8092,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
8092
8092
  const C = (l == null ? void 0 : l.sortBy) ?? "sortBy", I = (l == null ? void 0 : l.sortOrder) ?? "sortOrder", z = Fe(() => D ? {
8093
8093
  [C]: D.key,
8094
8094
  [I]: D.direction
8095
- } : {}, [D, C, I]), A = P(
8095
+ } : {}, [D, C, I]), A = j(
8096
8096
  (x) => {
8097
8097
  const S = { ...f };
8098
8098
  x ? (S[r] = x.key, S[n] = x.direction) : (delete S[r], delete S[n]), delete S[o], d(S);
@@ -9357,7 +9357,7 @@ const ai = {
9357
9357
  Q(() => {
9358
9358
  r === null && i(null);
9359
9359
  }, [r]);
9360
- const O = P(
9360
+ const O = j(
9361
9361
  (K, se) => {
9362
9362
  k(se);
9363
9363
  },
@@ -9398,8 +9398,8 @@ const ai = {
9398
9398
  }
9399
9399
  }));
9400
9400
  const re = parseInt(l, 10), J = ai[c];
9401
- let me, j;
9402
- return J >= 1 ? (j = re, me = re * J) : (me = re, j = re / J), /* @__PURE__ */ u(
9401
+ let me, P;
9402
+ return J >= 1 ? (P = re, me = re * J) : (me = re, P = re / J), /* @__PURE__ */ u(
9403
9403
  h,
9404
9404
  {
9405
9405
  direction: "column",
@@ -9415,7 +9415,7 @@ const ai = {
9415
9415
  justify: "center",
9416
9416
  style: {
9417
9417
  width: s != null && s.fullWidth ? "100%" : `${me}px`,
9418
- height: s != null && s.fullWidth ? "auto" : `${j}px`,
9418
+ height: s != null && s.fullWidth ? "auto" : `${P}px`,
9419
9419
  aspectRatio: J,
9420
9420
  flexShrink: 0
9421
9421
  },
@@ -9796,7 +9796,7 @@ const ai = {
9796
9796
  Q(() => {
9797
9797
  t && s([...t.map((p) => ({ id: p.id, isActive: p.isActive }))]);
9798
9798
  }, [t]);
9799
- const a = (f = c.find((p) => p.id === r)) == null ? void 0 : f.isActive, d = P(() => {
9799
+ const a = (f = c.find((p) => p.id === r)) == null ? void 0 : f.isActive, d = j(() => {
9800
9800
  s(
9801
9801
  (p) => p.map((g) => g.id === r ? { ...g, isActive: !g.isActive } : g)
9802
9802
  ), n && n(!a);
@@ -9885,7 +9885,7 @@ const ai = {
9885
9885
  )
9886
9886
  }
9887
9887
  );
9888
- }, rt = "sa-sidepanel-item", di = "sa-sidepanel-item-styles", ys = "inset 3.5px 0 0 0 var(--sa-border-focused, #1a4fa0)", bs = "inset -3.5px 0 0 0 var(--sa-border-focused, #1a4fa0)", xs = `
9888
+ }, rt = "sa-sidepanel-item", di = "sa-sidepanel-item-styles", ys = "inset 3.5px 0 0 0 var(--sa-border-focused, #1a4fa0)", bs = "inset -3.5px 0 0 0 var(--sa-border-focused, #1a4fa0)", xs = `@layer starasia.components {
9889
9889
  .${rt} {
9890
9890
  display: block;
9891
9891
  box-sizing: border-box;
@@ -9936,7 +9936,7 @@ const ai = {
9936
9936
  cursor: not-allowed;
9937
9937
  opacity: 0.55;
9938
9938
  }
9939
- `;
9939
+ }`;
9940
9940
  function vs() {
9941
9941
  if (typeof document > "u" || document.getElementById(di)) return;
9942
9942
  const t = document.createElement("style");
@@ -10073,7 +10073,7 @@ const hd = ({
10073
10073
  height: N,
10074
10074
  transition: `width ${ui}`,
10075
10075
  ...b
10076
- }, j = /* @__PURE__ */ u(
10076
+ }, P = /* @__PURE__ */ u(
10077
10077
  h,
10078
10078
  {
10079
10079
  className: C,
@@ -10151,7 +10151,7 @@ const hd = ({
10151
10151
  ]
10152
10152
  }
10153
10153
  );
10154
- return I === void 0 ? j : /* @__PURE__ */ u(
10154
+ return I === void 0 ? P : /* @__PURE__ */ u(
10155
10155
  h,
10156
10156
  {
10157
10157
  direction: "row",
@@ -10163,7 +10163,7 @@ const hd = ({
10163
10163
  ...(A == null ? void 0 : A.style) ?? {}
10164
10164
  },
10165
10165
  children: [
10166
- !J && O ? j : null,
10166
+ !J && O ? P : null,
10167
10167
  /* @__PURE__ */ e(
10168
10168
  h,
10169
10169
  {
@@ -10179,7 +10179,7 @@ const hd = ({
10179
10179
  children: I
10180
10180
  }
10181
10181
  ),
10182
- !J && !O ? j : null,
10182
+ !J && !O ? P : null,
10183
10183
  J && /* @__PURE__ */ u(ne, { children: [
10184
10184
  !M && /* @__PURE__ */ e(
10185
10185
  "div",
@@ -10194,7 +10194,7 @@ const hd = ({
10194
10194
  }
10195
10195
  }
10196
10196
  ),
10197
- j
10197
+ P
10198
10198
  ] })
10199
10199
  ]
10200
10200
  }
@@ -11934,22 +11934,22 @@ function vn(t) {
11934
11934
  }
11935
11935
  vn.displayName = "LayoutDialog.Footer";
11936
11936
  const Ze = {
11937
- "lyd-root": "_lyd-root_8mm4b_1",
11938
- "lyd-backdrop": "_lyd-backdrop_8mm4b_38",
11939
- "lyd-panel": "_lyd-panel_8mm4b_47",
11940
- "lyd-modal": "_lyd-modal_8mm4b_58",
11941
- "lyd-fullscreen": "_lyd-fullscreen_8mm4b_72",
11942
- "lyd-sidebar": "_lyd-sidebar_8mm4b_80",
11943
- "lyd-header": "_lyd-header_8mm4b_110",
11944
- "lyd-header-content": "_lyd-header-content_8mm4b_121",
11945
- "lyd-header-actions": "_lyd-header-actions_8mm4b_129",
11946
- "lyd-main": "_lyd-main_8mm4b_136",
11947
- "lyd-body": "_lyd-body_8mm4b_143",
11948
- "lyd-aside": "_lyd-aside_8mm4b_149",
11949
- "lyd-footer": "_lyd-footer_8mm4b_165",
11950
- "lyd-vm-group": "_lyd-vm-group_8mm4b_178",
11951
- "lyd-vm-btn": "_lyd-vm-btn_8mm4b_186",
11952
- "lyd-close-btn": "_lyd-close-btn_8mm4b_209"
11937
+ "lyd-root": "_lyd-root_jyp0m_6",
11938
+ "lyd-backdrop": "_lyd-backdrop_jyp0m_43",
11939
+ "lyd-panel": "_lyd-panel_jyp0m_52",
11940
+ "lyd-modal": "_lyd-modal_jyp0m_63",
11941
+ "lyd-fullscreen": "_lyd-fullscreen_jyp0m_77",
11942
+ "lyd-sidebar": "_lyd-sidebar_jyp0m_85",
11943
+ "lyd-header": "_lyd-header_jyp0m_115",
11944
+ "lyd-header-content": "_lyd-header-content_jyp0m_126",
11945
+ "lyd-header-actions": "_lyd-header-actions_jyp0m_134",
11946
+ "lyd-main": "_lyd-main_jyp0m_141",
11947
+ "lyd-body": "_lyd-body_jyp0m_148",
11948
+ "lyd-aside": "_lyd-aside_jyp0m_154",
11949
+ "lyd-footer": "_lyd-footer_jyp0m_170",
11950
+ "lyd-vm-group": "_lyd-vm-group_jyp0m_183",
11951
+ "lyd-vm-btn": "_lyd-vm-btn_jyp0m_191",
11952
+ "lyd-close-btn": "_lyd-close-btn_jyp0m_214"
11953
11953
  }, Rs = [
11954
11954
  {
11955
11955
  mode: "sidebar",
@@ -12033,7 +12033,7 @@ function Is(t) {
12033
12033
  disableBackdropClose: p = !1,
12034
12034
  lockBodyScroll: g = !0,
12035
12035
  children: b
12036
- } = t, [D, C] = B(i), I = o ?? D, A = Ie("md") ? I : "fullscreen", x = P(
12036
+ } = t, [D, C] = B(i), I = o ?? D, A = Ie("md") ? I : "fullscreen", x = j(
12037
12037
  (Z) => {
12038
12038
  o === void 0 && C(Z), l == null || l(Z);
12039
12039
  },
@@ -12354,7 +12354,7 @@ const Sd = ({
12354
12354
  ) })
12355
12355
  ] });
12356
12356
  }, Qi = "var(--sa-border-subtle, #e5e7eb)", nn = () => /* @__PURE__ */ e(h, { style: { width: 1, height: 22, backgroundColor: Qi } }), _s = (t) => typeof t == "number" ? `${t}px` : t;
12357
- function Ps({
12357
+ function js({
12358
12358
  count: t,
12359
12359
  children: r,
12360
12360
  label: n,
@@ -12437,7 +12437,7 @@ function Ps({
12437
12437
  )
12438
12438
  );
12439
12439
  }
12440
- Ps.Divider = nn;
12440
+ js.Divider = nn;
12441
12441
  const Cn = (t) => {
12442
12442
  const { variant: r = "outlined", overflow: n = "hidden", style: o, children: i, ...l } = t;
12443
12443
  return /* @__PURE__ */ e(
@@ -12450,7 +12450,7 @@ const Cn = (t) => {
12450
12450
  children: i
12451
12451
  }
12452
12452
  );
12453
- }, js = (t) => t == null ? void 0 : typeof t == "number" ? `${t}px` : t, Zs = ({
12453
+ }, Ps = (t) => t == null ? void 0 : typeof t == "number" ? `${t}px` : t, Zs = ({
12454
12454
  src: t,
12455
12455
  alt: r = "",
12456
12456
  height: n = 140,
@@ -12470,7 +12470,7 @@ const Cn = (t) => {
12470
12470
  h,
12471
12471
  {
12472
12472
  style: {
12473
- height: js(n),
12473
+ height: Ps(n),
12474
12474
  background: t ? void 0 : o,
12475
12475
  overflow: "hidden"
12476
12476
  },
@@ -12652,7 +12652,7 @@ export {
12652
12652
  ud as Form,
12653
12653
  wd as FullSection,
12654
12654
  Ea as HeaderLeftSlot,
12655
- Po as HeaderLeftSlotOutlet,
12655
+ jo as HeaderLeftSlotOutlet,
12656
12656
  _o as HeaderLeftSlotProvider,
12657
12657
  Oc as Highlight,
12658
12658
  Aa as HorizontalField,
@@ -12678,7 +12678,7 @@ export {
12678
12678
  Bi as SectionFooter,
12679
12679
  Ii as SectionHeader,
12680
12680
  Dd as SelectButton,
12681
- Ps as SelectionActionBar,
12681
+ js as SelectionActionBar,
12682
12682
  nn as SelectionActionBarDivider,
12683
12683
  vd as ServerErrorPage,
12684
12684
  fd as SidePanel,
@@ -12686,14 +12686,14 @@ export {
12686
12686
  zo as SidebarBadgesProvider,
12687
12687
  Fa as SidebarGroupSlot,
12688
12688
  Bn as SidebarGroupSlotOutlet,
12689
- jo as SidebarGroupSlotProvider,
12689
+ Po as SidebarGroupSlotProvider,
12690
12690
  $o as SidebarHeaderSlot,
12691
12691
  To as SidebarProvider,
12692
12692
  Vo as StarasiaRouterProvider,
12693
12693
  wc as TableFooter,
12694
12694
  vc as TableHeader,
12695
- ja as TableLayout,
12696
- Pa as TableSection,
12695
+ Pa as TableLayout,
12696
+ ja as TableSection,
12697
12697
  xc as TableWrapper,
12698
12698
  dd as ToggleStatus,
12699
12699
  gt as Typography,