@starasia/admin 14.8.0 → 14.9.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
@@ -119,13 +119,13 @@ const no = {
119
119
  }, lo = () => wt(ti), br = (t, r) => {
120
120
  const n = r !== void 0 ? r : t;
121
121
  return n == null ? null : typeof n == "string" || typeof n == "number" ? { value: n } : n;
122
- }, ri = 240, ni = 200, ii = 480, co = "sa-sidebar-width", Br = (t, r, n) => Math.min(Math.max(t, r), n), so = (t, r, n, o) => {
122
+ }, ri = 240, ni = 200, ii = 480, co = "sa-sidebar-width", Ir = (t, r, n) => Math.min(Math.max(t, r), n), so = (t, r, n, o) => {
123
123
  if (typeof window > "u") return r;
124
124
  try {
125
125
  const i = window.localStorage.getItem(t);
126
126
  if (!i) return r;
127
127
  const l = parseInt(i, 10);
128
- return Number.isFinite(l) ? Br(l, n, o) : r;
128
+ return Number.isFinite(l) ? Ir(l, n, o) : r;
129
129
  } catch {
130
130
  return r;
131
131
  }
@@ -181,13 +181,13 @@ const no = {
181
181
  ), b = G(() => s((w) => !w), []), S = G(() => s(!0), []), v = G(() => s(!1), []), W = G(
182
182
  (w) => {
183
183
  p((R) => {
184
- const z = typeof w == "function" ? w(R) : w, U = Br(Math.round(z), o, i);
184
+ const z = typeof w == "function" ? w(R) : w, U = Ir(Math.round(z), o, i);
185
185
  return pn(l, U), U;
186
186
  });
187
187
  },
188
188
  [o, i, l]
189
189
  ), F = G(() => {
190
- const w = Br(n, o, i);
190
+ const w = Ir(n, o, i);
191
191
  pn(l, w), p(w);
192
192
  }, [n, o, i, l]), A = G(
193
193
  (w) => {
@@ -196,7 +196,7 @@ const no = {
196
196
  );
197
197
  },
198
198
  []
199
- ), D = G(() => u(!0), []), k = G(() => u(!1), []), I = G(() => u((w) => !w), []), B = ve(
199
+ ), D = G(() => u(!0), []), k = G(() => u(!1), []), B = G(() => u((w) => !w), []), I = ve(
200
200
  () => ({
201
201
  collapsed: c,
202
202
  setCollapsed: g,
@@ -212,7 +212,7 @@ const no = {
212
212
  setMobileOpen: A,
213
213
  openMobile: D,
214
214
  closeMobile: k,
215
- toggleMobile: I
215
+ toggleMobile: B
216
216
  }),
217
217
  [
218
218
  c,
@@ -229,10 +229,10 @@ const no = {
229
229
  A,
230
230
  D,
231
231
  k,
232
- I
232
+ B
233
233
  ]
234
234
  );
235
- return /* @__PURE__ */ e(oi.Provider, { value: B, children: t });
235
+ return /* @__PURE__ */ e(oi.Provider, { value: I, children: t });
236
236
  }, uo = () => wt(oi), li = At(null), ho = ({
237
237
  adapter: t,
238
238
  children: r
@@ -389,7 +389,7 @@ function Ls({ slotKey: t, children: r }) {
389
389
  const i = n.outletNodes[t];
390
390
  return i ? jr(r, i) : null;
391
391
  }
392
- const Yt = "moduleSwitcherGroupId", Ir = "sa-module-switcher-change";
392
+ const Yt = "moduleSwitcherGroupId", Br = "sa-module-switcher-change";
393
393
  function yn() {
394
394
  if (typeof window > "u") return null;
395
395
  const t = window.localStorage.getItem(Yt);
@@ -398,7 +398,7 @@ function yn() {
398
398
  return Number.isFinite(r) ? r : null;
399
399
  }
400
400
  function ci(t) {
401
- typeof window > "u" || (t === null ? window.localStorage.removeItem(Yt) : window.localStorage.setItem(Yt, String(t)), window.dispatchEvent(new CustomEvent(Ir, { detail: t })));
401
+ typeof window > "u" || (t === null ? window.localStorage.removeItem(Yt) : window.localStorage.setItem(Yt, String(t)), window.dispatchEvent(new CustomEvent(Br, { detail: t })));
402
402
  }
403
403
  function Ms() {
404
404
  ci(null);
@@ -413,8 +413,8 @@ function si() {
413
413
  }, i = (l) => {
414
414
  l.key === Yt && o();
415
415
  };
416
- return window.addEventListener(Ir, o), window.addEventListener("storage", i), () => {
417
- window.removeEventListener(Ir, o), window.removeEventListener("storage", i);
416
+ return window.addEventListener(Br, o), window.addEventListener("storage", i), () => {
417
+ window.removeEventListener(Br, o), window.removeEventListener("storage", i);
418
418
  };
419
419
  }, []), { selectedGroupId: t, setSelectedGroupId: (o) => {
420
420
  ci(o), r(o);
@@ -481,7 +481,7 @@ function As({
481
481
  resizableSidebar: b = !0
482
482
  }) {
483
483
  var xt, Et;
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), {
484
+ const { useSearchParams: S, useNavigate: v, useLocation: W, Outlet: F } = pt(), [A] = S(), D = A.get("embed") === "true", k = ei(), { badges: B } = lo(), I = v(), w = W(), z = !We("md"), [U, Q] = H(!1), {
485
485
  collapsed: _,
486
486
  setCollapsed: P,
487
487
  width: X,
@@ -503,13 +503,13 @@ function As({
503
503
  E.preventDefault();
504
504
  const j = E.clientX, ee = ((Fe = Je.current) == null ? void 0 : Fe.getBoundingClientRect().width) ?? X;
505
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;
506
+ let Se = 0, Ie = ee;
507
507
  const it = (Wt) => {
508
- Be = ee + (Wt.clientX - j), Se || (Se = requestAnimationFrame(() => {
509
- Se = 0, O(q(Be));
508
+ Ie = ee + (Wt.clientX - j), Se || (Se = requestAnimationFrame(() => {
509
+ Se = 0, O(q(Ie));
510
510
  }));
511
511
  }, Te = () => {
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));
512
+ Se && cancelAnimationFrame(Se), window.removeEventListener("pointermove", it), window.removeEventListener("pointerup", Te), document.body.style.userSelect = "", document.body.style.cursor = "", O(null), Ye(!1), Ie < vo ? P(!0) : re(q(Ie));
513
513
  };
514
514
  window.addEventListener("pointermove", it), window.addEventListener("pointerup", Te);
515
515
  }, Me = (E) => {
@@ -545,7 +545,7 @@ function As({
545
545
  }));
546
546
  }, [k.menus]), Y(() => {
547
547
  kt = !0, Oe();
548
- const E = setTimeout(Oe, 0), j = setTimeout(Oe, 50), ee = setTimeout(Oe, 100), Se = setTimeout(Oe, 200), Be = setTimeout(() => {
548
+ const E = setTimeout(Oe, 0), j = setTimeout(Oe, 50), ee = setTimeout(Oe, 100), Se = setTimeout(Oe, 200), Ie = setTimeout(() => {
549
549
  kt = !1;
550
550
  }, 300), it = setTimeout(() => {
551
551
  const Te = pe.current, Fe = Te == null ? void 0 : Te.querySelector("[data-menu-active='true']");
@@ -555,7 +555,7 @@ function As({
555
555
  }
556
556
  }, 250);
557
557
  return () => {
558
- clearTimeout(E), clearTimeout(j), clearTimeout(ee), clearTimeout(Se), clearTimeout(Be), clearTimeout(it);
558
+ clearTimeout(E), clearTimeout(j), clearTimeout(ee), clearTimeout(Se), clearTimeout(Ie), clearTimeout(it);
559
559
  };
560
560
  }, [w.pathname]), Y(() => {
561
561
  He.current && (He.current.scrollTop = 0);
@@ -590,8 +590,8 @@ function As({
590
590
  var j;
591
591
  const E = (ee) => {
592
592
  var Se;
593
- (Se = ee.children) != null && Se.some((Be) => w.pathname.startsWith(Be.to)) && De((Be) => {
594
- const it = new Set(Be);
593
+ (Se = ee.children) != null && Se.some((Ie) => w.pathname.startsWith(Ie.to)) && De((Ie) => {
594
+ const it = new Set(Ie);
595
595
  return it.add(ee.id), it;
596
596
  });
597
597
  };
@@ -631,7 +631,7 @@ function As({
631
631
  }
632
632
  );
633
633
  const bt = (E) => {
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;
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), Ie = br(E.badge, B[E.id]), it = !!Ie && _ && !z;
635
635
  return /* @__PURE__ */ d(
636
636
  h,
637
637
  {
@@ -654,7 +654,7 @@ function As({
654
654
  } else
655
655
  ft(E.id);
656
656
  else
657
- B(E.to);
657
+ I(E.to);
658
658
  },
659
659
  fullWidth: !0,
660
660
  direction: "row",
@@ -725,11 +725,11 @@ function As({
725
725
  textStyle: { transition: "opacity 0.3s" }
726
726
  }
727
727
  ),
728
- Be && /* @__PURE__ */ e(
728
+ Ie && /* @__PURE__ */ e(
729
729
  Qt,
730
730
  {
731
- text: String(Be.value),
732
- variant: Be.variant ?? "info",
731
+ text: String(Ie.value),
732
+ variant: Ie.variant ?? "info",
733
733
  size: "xs",
734
734
  border: !0
735
735
  }
@@ -805,13 +805,13 @@ function As({
805
805
  E.children.map((Fe) => {
806
806
  const Ae = br(
807
807
  Fe.badge,
808
- I[Fe.id]
808
+ B[Fe.id]
809
809
  ), _e = Ke(Fe.to);
810
810
  return /* @__PURE__ */ d(
811
811
  h,
812
812
  {
813
813
  as: "button",
814
- onClick: () => B(Fe.to),
814
+ onClick: () => I(Fe.to),
815
815
  fullWidth: !0,
816
816
  direction: "row",
817
817
  align: "center",
@@ -1236,7 +1236,7 @@ function As({
1236
1236
  gap: "sm",
1237
1237
  cursor: "pointer",
1238
1238
  children: [
1239
- /* @__PURE__ */ d(
1239
+ !z && /* @__PURE__ */ d(
1240
1240
  h,
1241
1241
  {
1242
1242
  display: "block",
@@ -1468,14 +1468,14 @@ function As({
1468
1468
  (Et = ke.item.children) == null ? void 0 : Et.map((E) => {
1469
1469
  const j = Ke(E.to), ee = br(
1470
1470
  E.badge,
1471
- I[E.id]
1471
+ B[E.id]
1472
1472
  );
1473
1473
  return /* @__PURE__ */ d(
1474
1474
  h,
1475
1475
  {
1476
1476
  as: "button",
1477
1477
  onClick: () => {
1478
- B(E.to), $e(null);
1478
+ I(E.to), $e(null);
1479
1479
  },
1480
1480
  fullWidth: !0,
1481
1481
  direction: "row",
@@ -2010,7 +2010,7 @@ const Do = (t, r) => {
2010
2010
  containerProps: b,
2011
2011
  headerProps: S
2012
2012
  }) => {
2013
- const v = We("md"), { Link: W, useNavigate: F, useLocation: A } = pt(), D = F(), k = A(), I = t == null ? void 0 : t.show, B = () => {
2013
+ const v = We("md"), { Link: W, useNavigate: F, useLocation: A } = pt(), D = F(), k = A(), B = t == null ? void 0 : t.show, I = () => {
2014
2014
  if (typeof (t == null ? void 0 : t.onClick) == "function") {
2015
2015
  t.onClick();
2016
2016
  return;
@@ -2071,10 +2071,10 @@ const Do = (t, r) => {
2071
2071
  style: { textDecoration: "none" },
2072
2072
  children: P
2073
2073
  }
2074
- ) }) : /* @__PURE__ */ e(h, { direction: "row", children: /* @__PURE__ */ e(nr, { onClick: B, children: P }) });
2074
+ ) }) : /* @__PURE__ */ e(h, { direction: "row", children: /* @__PURE__ */ e(nr, { onClick: I, children: P }) });
2075
2075
  }, z = () => {
2076
2076
  const P = !!r, X = Array.isArray(p) && p.length > 0, re = Rr(p) ? !0 : X;
2077
- if (!P && !re && !I) return null;
2077
+ if (!P && !re && !B) return null;
2078
2078
  const T = v || !v && X;
2079
2079
  return /* @__PURE__ */ d(
2080
2080
  h,
@@ -2096,7 +2096,7 @@ const Do = (t, r) => {
2096
2096
  ...S == null ? void 0 : S.style
2097
2097
  },
2098
2098
  children: [
2099
- I && R(),
2099
+ B && R(),
2100
2100
  (P || re) && /* @__PURE__ */ d(
2101
2101
  h,
2102
2102
  {
@@ -2208,7 +2208,7 @@ const Do = (t, r) => {
2208
2208
  },
2209
2209
  k.pathname
2210
2210
  );
2211
- }, Bs = ut(Fo), Lo = {
2211
+ }, Is = ut(Fo), Lo = {
2212
2212
  icon: "Cross",
2213
2213
  title: ""
2214
2214
  }, Mo = 320, En = 16, Fn = 4, Ao = 8, Wo = Pr(
@@ -2233,12 +2233,12 @@ const Do = (t, r) => {
2233
2233
  resizeMax: F,
2234
2234
  onWidthChange: A
2235
2235
  }, D) => {
2236
- const I = !We("md"), B = s ?? u ?? a ?? "357px", w = S ?? [], R = w.length > 1, [z, U] = H(() => {
2237
- const J = w.indexOf(B);
2236
+ const B = !We("md"), I = s ?? u ?? a ?? "357px", w = S ?? [], R = w.length > 1, [z, U] = H(() => {
2237
+ const J = w.indexOf(I);
2238
2238
  return J >= 0 ? J : 0;
2239
2239
  }), [Q, _] = H(null), [P, X] = H(!1), [re, $] = H(!1), T = oe(null), V = (J) => {
2240
2240
  T.current = J, typeof D == "function" ? D(J) : D && (D.current = J);
2241
- }, ce = R ? w[z] : B, Ce = Q != null ? `${Q}px` : ce, Le = v && !I, ge = z === w.length - 1, we = () => {
2241
+ }, ce = R ? w[z] : I, Ce = Q != null ? `${Q}px` : ce, Le = v && !B, ge = z === w.length - 1, we = () => {
2242
2242
  const J = (z + 1) % w.length;
2243
2243
  _(null), U(J), A == null || A(w[J]);
2244
2244
  }, De = G(
@@ -2438,7 +2438,7 @@ const Do = (t, r) => {
2438
2438
  children: t
2439
2439
  }
2440
2440
  )
2441
- ), Is = ut(
2441
+ ), Bs = ut(
2442
2442
  ({
2443
2443
  children: t,
2444
2444
  title: r,
@@ -2500,10 +2500,10 @@ const Do = (t, r) => {
2500
2500
  }
2501
2501
  );
2502
2502
  }
2503
- ), Ro = (t) => /* @__PURE__ */ e(C, { variant: "h1", children: t.children, ...t.props }), Bo = (t) => /* @__PURE__ */ e(C, { variant: "h2", children: t.children, ...t.props }), Io = (t) => /* @__PURE__ */ e(C, { variant: "h3", children: t.children, ...t.props }), Ho = (t) => /* @__PURE__ */ e(C, { variant: "h4", children: t.children, ...t.props }), Oo = (t) => /* @__PURE__ */ e(C, { variant: "h5", children: t.children, ...t.props }), To = (t) => /* @__PURE__ */ e(C, { variant: "h6", children: t.children, ...t.props }), Vo = (t) => /* @__PURE__ */ e(C, { variant: "sub-h1", children: t.children, ...t.props }), No = (t) => /* @__PURE__ */ e(C, { variant: "sub-h2", children: t.children, ...t.props }), $o = (t) => /* @__PURE__ */ e(C, { variant: "sub-h3", children: t.children, ...t.props }), _o = (t) => /* @__PURE__ */ e(C, { variant: "body-1", children: t.children, ...t.props }), Po = (t) => /* @__PURE__ */ e(C, { variant: "body-2", children: t.children, ...t.props }), jo = (t) => /* @__PURE__ */ e(C, { variant: "body-3", children: t.children, ...t.props }), dt = {
2503
+ ), Ro = (t) => /* @__PURE__ */ e(C, { variant: "h1", children: t.children, ...t.props }), Io = (t) => /* @__PURE__ */ e(C, { variant: "h2", children: t.children, ...t.props }), Bo = (t) => /* @__PURE__ */ e(C, { variant: "h3", children: t.children, ...t.props }), Ho = (t) => /* @__PURE__ */ e(C, { variant: "h4", children: t.children, ...t.props }), Oo = (t) => /* @__PURE__ */ e(C, { variant: "h5", children: t.children, ...t.props }), To = (t) => /* @__PURE__ */ e(C, { variant: "h6", children: t.children, ...t.props }), Vo = (t) => /* @__PURE__ */ e(C, { variant: "sub-h1", children: t.children, ...t.props }), No = (t) => /* @__PURE__ */ e(C, { variant: "sub-h2", children: t.children, ...t.props }), $o = (t) => /* @__PURE__ */ e(C, { variant: "sub-h3", children: t.children, ...t.props }), _o = (t) => /* @__PURE__ */ e(C, { variant: "body-1", children: t.children, ...t.props }), Po = (t) => /* @__PURE__ */ e(C, { variant: "body-2", children: t.children, ...t.props }), jo = (t) => /* @__PURE__ */ e(C, { variant: "body-3", children: t.children, ...t.props }), dt = {
2504
2504
  H1: Ro,
2505
- H2: Bo,
2506
- H3: Io,
2505
+ H2: Io,
2506
+ H3: Bo,
2507
2507
  H4: Ho,
2508
2508
  H5: Oo,
2509
2509
  H6: To,
@@ -2708,8 +2708,8 @@ const Do = (t, r) => {
2708
2708
  titleSearchLabel: S = "Work Order",
2709
2709
  withTitleLabels: v = !1
2710
2710
  }) => {
2711
- const F = (g == null ? void 0 : g.isShowLabel) ?? !0, [A, D] = H(!1), [k, I] = H(0), B = () => {
2712
- I((V) => V + 1);
2711
+ const F = (g == null ? void 0 : g.isShowLabel) ?? !0, [A, D] = H(!1), [k, B] = H(0), I = () => {
2712
+ B((V) => V + 1);
2713
2713
  }, { searchParams: w, setSearchParams: R, getQueryParam: z } = rt(), U = tr(w.toString()), Q = qr(t, w, s) || "", [_, P] = H(Q), X = z(s), $ = !!(X && !(() => {
2714
2714
  if (X)
2715
2715
  try {
@@ -2761,7 +2761,7 @@ const Do = (t, r) => {
2761
2761
  {
2762
2762
  onClick: () => {
2763
2763
  const V = new URLSearchParams(w);
2764
- V.delete(s), R(V), P(""), B(), m && m();
2764
+ V.delete(s), R(V), P(""), I(), m && m();
2765
2765
  },
2766
2766
  variant: "outline",
2767
2767
  tone: "neutral",
@@ -2915,20 +2915,20 @@ function Ur({
2915
2915
  () => Object.fromEntries(t.map((k) => [k.key, k])),
2916
2916
  [t]
2917
2917
  ), u = ve(() => {
2918
- const k = (l.get(n) || "").split(",").map((B) => B.trim()).filter(Boolean), I = Object.keys(
2918
+ const k = (l.get(n) || "").split(",").map((I) => I.trim()).filter(Boolean), B = Object.keys(
2919
2919
  Tt(l.get(r))
2920
- ).filter((B) => B !== i);
2921
- return t.map((B) => B.key).filter((B) => {
2922
- const w = a[B];
2923
- return (w == null ? void 0 : w.locked) || k.includes(B) || I.includes(B);
2920
+ ).filter((I) => I !== i);
2921
+ return t.map((I) => I.key).filter((I) => {
2922
+ const w = a[I];
2923
+ return (w == null ? void 0 : w.locked) || k.includes(I) || B.includes(I);
2924
2924
  });
2925
2925
  }, [l, n, r, i, t, a]), m = G(
2926
2926
  (k) => Tt(k[r]),
2927
2927
  [r]
2928
2928
  ), p = G(
2929
2929
  (k) => {
2930
- const I = { ...s };
2931
- k.length ? I[n] = k.join(",") : delete I[n], c(I);
2930
+ const B = { ...s };
2931
+ k.length ? B[n] = k.join(",") : delete B[n], c(B);
2932
2932
  },
2933
2933
  [s, n, c]
2934
2934
  ), g = G(
@@ -2940,10 +2940,10 @@ function Ur({
2940
2940
  (k) => {
2941
2941
  var R;
2942
2942
  if ((R = a[k]) != null && R.locked) return;
2943
- const I = { ...s }, B = u.filter((z) => z !== k);
2944
- B.length ? I[n] = B.join(",") : delete I[n];
2945
- const w = m(I);
2946
- k in w && (delete w[k], Object.keys(w).length ? I[r] = JSON.stringify(w) : delete I[r]), delete I[o], c(I);
2943
+ const B = { ...s }, I = u.filter((z) => z !== k);
2944
+ I.length ? B[n] = I.join(",") : delete B[n];
2945
+ const w = m(B);
2946
+ k in w && (delete w[k], Object.keys(w).length ? B[r] = JSON.stringify(w) : delete B[r]), delete B[o], c(B);
2947
2947
  },
2948
2948
  [
2949
2949
  s,
@@ -2972,16 +2972,16 @@ function Ur({
2972
2972
  filterKey: r
2973
2973
  }) || [];
2974
2974
  case "date": {
2975
- const I = Xo({
2975
+ const B = Xo({
2976
2976
  name: k.key,
2977
2977
  searchParams: l,
2978
2978
  filterKey: r
2979
2979
  });
2980
- return I ? new Date(I) : void 0;
2980
+ return B ? new Date(B) : void 0;
2981
2981
  }
2982
2982
  case "date-compact": {
2983
- const B = m(Object.fromEntries(l.entries()))[k.key];
2984
- return B && typeof B == "object" ? B : void 0;
2983
+ const I = m(Object.fromEntries(l.entries()))[k.key];
2984
+ return I && typeof I == "object" ? I : void 0;
2985
2985
  }
2986
2986
  default:
2987
2987
  return;
@@ -2989,14 +2989,14 @@ function Ur({
2989
2989
  },
2990
2990
  [l, r, m]
2991
2991
  ), W = G(
2992
- (k, I) => {
2992
+ (k, B) => {
2993
2993
  if (k.type === "date-compact") {
2994
- const B = { ...s }, w = m(B);
2995
- I == null ? delete w[k.key] : w[k.key] = I, Object.keys(w).length ? B[r] = JSON.stringify(w) : delete B[r], delete B[o], c(B);
2994
+ const I = { ...s }, w = m(I);
2995
+ B == null ? delete w[k.key] : w[k.key] = B, Object.keys(w).length ? I[r] = JSON.stringify(w) : delete I[r], delete I[o], c(I);
2996
2996
  return;
2997
2997
  }
2998
2998
  Xt({
2999
- value: I,
2999
+ value: B,
3000
3000
  name: k.key,
3001
3001
  type: tl(k.type),
3002
3002
  searchQueries: s,
@@ -3008,8 +3008,8 @@ function Ur({
3008
3008
  [s, c, r, o, m]
3009
3009
  ), F = G(
3010
3010
  (k) => {
3011
- const I = { ...s }, B = m(I);
3012
- k in B && (delete B[k], Object.keys(B).length ? I[r] = JSON.stringify(B) : delete I[r]), delete I[o], c(I);
3011
+ const B = { ...s }, I = m(B);
3012
+ k in I && (delete I[k], Object.keys(I).length ? B[r] = JSON.stringify(I) : delete B[r]), delete B[o], c(B);
3013
3013
  },
3014
3014
  [s, r, o, m, c]
3015
3015
  ), A = G(() => {
@@ -3113,19 +3113,19 @@ function rl({
3113
3113
  });
3114
3114
  },
3115
3115
  [a, t, v]
3116
- ), k = G(() => v(l), [v, l]), I = G(
3116
+ ), k = G(() => v(l), [v, l]), B = G(
3117
3117
  (w) => v(jt(w, t)),
3118
3118
  [v, t]
3119
- ), B = a.hidden.length === 0;
3119
+ ), I = a.hidden.length === 0;
3120
3120
  return {
3121
3121
  state: a,
3122
3122
  orderedColumns: W,
3123
- allVisible: B,
3123
+ allVisible: I,
3124
3124
  toggleVisibility: F,
3125
3125
  reorder: A,
3126
3126
  setAllHidden: D,
3127
3127
  reset: k,
3128
- applyState: I
3128
+ applyState: B
3129
3129
  };
3130
3130
  }
3131
3131
  function nl({
@@ -4059,7 +4059,7 @@ const al = ({
4059
4059
  },
4060
4060
  c
4061
4061
  );
4062
- }) }), Bn = (t) => `${t} Rows`, Sl = ({
4062
+ }) }), In = (t) => `${t} Rows`, Sl = ({
4063
4063
  pagination: t,
4064
4064
  pageKey: r = "page",
4065
4065
  perPageKey: n = "perPage",
@@ -4091,7 +4091,7 @@ const al = ({
4091
4091
  size: "sm",
4092
4092
  iconRight: /* @__PURE__ */ e(M, { name: "ChevronSmallDown" }),
4093
4093
  "aria-label": "Rows per page",
4094
- children: Bn(g)
4094
+ children: In(g)
4095
4095
  }
4096
4096
  ) }),
4097
4097
  /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ e(qe, { children: o.map((A) => /* @__PURE__ */ e(
@@ -4099,7 +4099,7 @@ const al = ({
4099
4099
  {
4100
4100
  selected: A === g,
4101
4101
  onClick: () => S(String(A)),
4102
- children: Bn(A)
4102
+ children: In(A)
4103
4103
  },
4104
4104
  A
4105
4105
  )) }) })
@@ -4168,8 +4168,8 @@ const Fl = 240, pi = ({
4168
4168
  }, [W]);
4169
4169
  const A = G(() => {
4170
4170
  p(!0), requestAnimationFrame(() => {
4171
- var B;
4172
- return (B = F.current) == null ? void 0 : B.focus();
4171
+ var I;
4172
+ return (I = F.current) == null ? void 0 : I.focus();
4173
4173
  });
4174
4174
  }, []);
4175
4175
  return El(i, A), // No internal gap: the trigger and the animated input are never visible at
@@ -4209,10 +4209,10 @@ const Fl = 240, pi = ({
4209
4209
  value: S,
4210
4210
  placeholder: o,
4211
4211
  leftIcon: /* @__PURE__ */ e(M, { name: "Search", width: 16, height: 16 }),
4212
- onChange: (B) => v(B.target.value),
4213
- onKeyDown: (B) => {
4212
+ onChange: (I) => v(I.target.value),
4213
+ onKeyDown: (I) => {
4214
4214
  var w;
4215
- l && B.key === "Escape" && !S && (p(!1), (w = F.current) == null || w.blur());
4215
+ l && I.key === "Escape" && !S && (p(!1), (w = F.current) == null || w.blur());
4216
4216
  },
4217
4217
  onBlur: () => {
4218
4218
  l && !S && p(!1);
@@ -4728,8 +4728,8 @@ const Fl = 240, pi = ({
4728
4728
  searchCollapsible: A,
4729
4729
  pagination: D,
4730
4730
  perPageKey: k,
4731
- pageSizeOptions: I,
4732
- defaultPerPage: B,
4731
+ pageSizeOptions: B,
4732
+ defaultPerPage: I,
4733
4733
  showPagination: w,
4734
4734
  showResultCount: R,
4735
4735
  showPageSize: z,
@@ -4831,8 +4831,8 @@ const Fl = 240, pi = ({
4831
4831
  {
4832
4832
  perPageKey: k,
4833
4833
  pageKey: v,
4834
- pageSizeOptions: I,
4835
- defaultPerPage: B,
4834
+ pageSizeOptions: B,
4835
+ defaultPerPage: I,
4836
4836
  showPageSize: z
4837
4837
  }
4838
4838
  )
@@ -4909,15 +4909,15 @@ const Fl = 240, pi = ({
4909
4909
  columns: A = [],
4910
4910
  onColumnsChange: D,
4911
4911
  columnsState: k,
4912
- scopeId: I,
4913
- savedViews: B,
4912
+ scopeId: B,
4913
+ savedViews: I,
4914
4914
  persistLastState: w = !0,
4915
4915
  persistSearch: R = !0,
4916
4916
  storage: z = ui,
4917
4917
  onReset: U,
4918
4918
  leadingActions: Q
4919
4919
  }) => {
4920
- const _ = I ?? (B == null ? void 0 : B.scopeId), {
4920
+ const _ = B ?? (I == null ? void 0 : I.scopeId), {
4921
4921
  activeKeys: P,
4922
4922
  configByKey: X,
4923
4923
  hasActiveFilter: re,
@@ -4968,7 +4968,7 @@ const Fl = 240, pi = ({
4968
4968
  readSnapshot: De.read,
4969
4969
  readPerPage: ke.read
4970
4970
  });
4971
- const $e = s ?? c[0] ?? 25, ze = !!(B != null && B.enabled) && we.enabled, Qe = () => {
4971
+ const $e = s ?? c[0] ?? 25, ze = !!(I != null && I.enabled) && we.enabled, Qe = () => {
4972
4972
  Le(), De.clear(), U == null || U();
4973
4973
  }, J = We("md"), pe = p ? /* @__PURE__ */ e(
4974
4974
  pi,
@@ -5142,7 +5142,7 @@ const Fl = 240, pi = ({
5142
5142
  if (!Array.isArray(t) || t.length === 0) return;
5143
5143
  const r = t.map((n) => (n == null ? void 0 : n.value) != null ? String(n.value) : null).filter((n) => n != null);
5144
5144
  return r.length ? r : void 0;
5145
- }, Bl = (t, r) => {
5145
+ }, Il = (t, r) => {
5146
5146
  switch (t.type) {
5147
5147
  case "dropdown":
5148
5148
  case "radio":
@@ -5157,7 +5157,7 @@ const Fl = 240, pi = ({
5157
5157
  default:
5158
5158
  return;
5159
5159
  }
5160
- }, In = (t, r) => {
5160
+ }, Bn = (t, r) => {
5161
5161
  if (t == null || t === "") return r;
5162
5162
  const n = Number(t);
5163
5163
  return Number.isFinite(n) && n > 0 ? n : r;
@@ -5181,17 +5181,17 @@ const Fl = 240, pi = ({
5181
5181
  searchKey: c
5182
5182
  }), { searchParams: v } = rt(), W = v.toString();
5183
5183
  return ve(() => {
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;
5186
- const B = qr(c, v, n) || "";
5187
- B && (A[(u == null ? void 0 : u.search) ?? "search"] = B);
5184
+ const A = {}, D = {}, k = Bn(v.get(i), s), B = Bn(v.get(l), a);
5185
+ A[(u == null ? void 0 : u.page) ?? "page"] = k, A[(u == null ? void 0 : u.perPage) ?? "perPage"] = B;
5186
+ const I = qr(c, v, n) || "";
5187
+ I && (A[(u == null ? void 0 : u.search) ?? "search"] = I);
5188
5188
  let w = !1;
5189
5189
  for (const R of p) {
5190
5190
  const z = g[R];
5191
5191
  if (!z) continue;
5192
5192
  const U = S(z);
5193
5193
  D[R] = U;
5194
- const Q = m == null ? void 0 : m[R], _ = Q ? Q(U) : Bl(z, U);
5194
+ const Q = m == null ? void 0 : m[R], _ = Q ? Q(U) : Il(z, U);
5195
5195
  if (_ == null || Array.isArray(_) && _.length === 0)
5196
5196
  continue;
5197
5197
  const P = (u == null ? void 0 : u[R]) ?? R;
@@ -5200,7 +5200,7 @@ const Fl = 240, pi = ({
5200
5200
  return {
5201
5201
  params: A,
5202
5202
  raw: D,
5203
- hasActiveFilter: b || !!B || w
5203
+ hasActiveFilter: b || !!I || w
5204
5204
  };
5205
5205
  }, [
5206
5206
  W,
@@ -5216,7 +5216,7 @@ const Fl = 240, pi = ({
5216
5216
  m,
5217
5217
  g
5218
5218
  ]);
5219
- }, Il = [
5219
+ }, Bl = [
5220
5220
  "dropdown",
5221
5221
  "dropdown-multiple",
5222
5222
  "checkbox-multiple",
@@ -5237,7 +5237,7 @@ const Fl = 240, pi = ({
5237
5237
  }), p = (F, A) => {
5238
5238
  var k;
5239
5239
  const D = F.options;
5240
- return ((k = D == null ? void 0 : D.find((I) => I.value === A)) == null ? void 0 : k.label) ?? A;
5240
+ return ((k = D == null ? void 0 : D.find((B) => B.value === A)) == null ? void 0 : k.label) ?? A;
5241
5241
  }, g = G(
5242
5242
  (F) => {
5243
5243
  const A = l[F];
@@ -5249,7 +5249,7 @@ const Fl = 240, pi = ({
5249
5249
  ), b = G(
5250
5250
  (F, A) => {
5251
5251
  const D = l[F];
5252
- if (!D || !Il.includes(D.type)) return;
5252
+ if (!D || !Bl.includes(D.type)) return;
5253
5253
  const k = Array.isArray(A) ? A : [A];
5254
5254
  if (k.length === 0) {
5255
5255
  a(F);
@@ -5257,7 +5257,7 @@ const Fl = 240, pi = ({
5257
5257
  }
5258
5258
  s(
5259
5259
  D,
5260
- k.map((I) => ({ label: p(D, I), value: I }))
5260
+ k.map((B) => ({ label: p(D, B), value: B }))
5261
5261
  );
5262
5262
  },
5263
5263
  [l, s, a]
@@ -5865,12 +5865,12 @@ const Fl = 240, pi = ({
5865
5865
  onColumnWidthsChange: A,
5866
5866
  defaultMinColumnWidth: D = 60,
5867
5867
  sort: k,
5868
- defaultSort: I,
5869
- onSortChange: B,
5868
+ defaultSort: B,
5869
+ onSortChange: I,
5870
5870
  showActionDivider: w = !1
5871
5871
  }) => {
5872
5872
  const R = k !== void 0, [z, U] = H(
5873
- I ?? null
5873
+ B ?? null
5874
5874
  ), Q = R ? k ?? null : z, _ = (O) => {
5875
5875
  if (O.sortKey) return O.sortKey;
5876
5876
  if (typeof O.accessor == "string") return O.accessor;
@@ -5878,7 +5878,7 @@ const Fl = 240, pi = ({
5878
5878
  const K = _(O);
5879
5879
  if (!K) return;
5880
5880
  let q;
5881
- !Q || Q.key !== K ? q = { key: K, direction: "asc" } : Q.direction === "asc" ? q = { key: K, direction: "desc" } : q = null, R || U(q), B == null || B(q);
5881
+ !Q || Q.key !== K ? q = { key: K, direction: "asc" } : Q.direction === "asc" ? q = { key: K, direction: "desc" } : q = null, R || U(q), I == null || I(q);
5882
5882
  }, re = [n, o, i].filter((O) => O !== void 0).length, $ = !!b, T = !!n || !!o || !!i || $, V = "var(--sa-border-subtle, #0b120e24)", ce = `1px solid ${V}`, Ce = `inset 1px 0 0 ${V}`, Le = `inset -1px 0 0 ${V}`, ge = re === 3 ? $ ? "178px" : "140px" : re === 2 ? $ ? "140px" : "102px" : re === 1 ? $ ? "112px" : "74px" : $ ? "74px" : "", we = (O, K) => {
5883
5883
  if (!K) return O;
5884
5884
  if (typeof K == "function") return K(O);
@@ -6409,7 +6409,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6409
6409
  }
6410
6410
  )
6411
6411
  ] });
6412
- }, Bt = "1px solid var(--sa-border-subtle, #0b120e24)", Ul = "var(--sa-text-subtle, #8c8f97)", Lt = "var(--sa-background-neutral, #f0f1f2)", Vn = "2px 0 4px -2px var(--sa-border-subtle, #0b120e24)", It = 40, Lr = "var(--sa-background-brand-subtlest)", Gt = {
6412
+ }, It = "1px solid var(--sa-border-subtle, #0b120e24)", Ul = "var(--sa-text-subtle, #8c8f97)", Lt = "var(--sa-background-neutral, #f0f1f2)", Vn = "2px 0 4px -2px var(--sa-border-subtle, #0b120e24)", Bt = 40, Lr = "var(--sa-background-brand-subtlest)", Gt = {
6413
6413
  display: "block",
6414
6414
  overflow: "hidden",
6415
6415
  textOverflow: "ellipsis",
@@ -6499,8 +6499,8 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6499
6499
  summary: A,
6500
6500
  footer: D,
6501
6501
  stickyFooter: k = !1,
6502
- emptyState: I,
6503
- loading: B = !1,
6502
+ emptyState: B,
6503
+ loading: I = !1,
6504
6504
  loadingRows: w = 8,
6505
6505
  rowActions: R,
6506
6506
  selectable: z = !1,
@@ -6582,7 +6582,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6582
6582
  if ((Re == null ? void 0 : Re[x]) != null) return Re[x];
6583
6583
  if (y.width != null) return y.width;
6584
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) => {
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 ? Bt : 0, Ie = (y) => {
6586
6586
  const x = ft ?? Ee;
6587
6587
  if (!x) return Se;
6588
6588
  let L = Se;
@@ -6653,7 +6653,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6653
6653
  const y = new Set(gt);
6654
6654
  sr ? Ft.forEach((x) => y.delete(x)) : Ft.forEach((x) => y.add(x)), tn(y);
6655
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: [
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" }) }) }),
6656
+ z && /* @__PURE__ */ e(Ve, { style: { width: Bt, padding: 0 }, children: /* @__PURE__ */ e("div", { style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(mt, { height: 14, width: 14, borderRadius: "rounded-sm" }) }) }),
6657
6657
  ue.map(({ col: L, key: Z }, ie) => /* @__PURE__ */ e(
6658
6658
  Ve,
6659
6659
  {
@@ -6733,7 +6733,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6733
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)) });
6734
6734
  }, Mi = (y, x) => {
6735
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;
6736
+ return L.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 6, flexWrap: "wrap", paddingTop: 8, marginTop: 8, borderTop: It }, children: L.map((Z) => /* @__PURE__ */ e(Ct.Fragment, { children: $t(Z, y, x, { showLabel: !0, size: "sm" }) }, Z.key)) }) : null;
6737
6737
  }, Ai = (y, x) => {
6738
6738
  const L = Nt(y);
6739
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;
@@ -6784,7 +6784,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6784
6784
  width: Et(L, ie),
6785
6785
  position: "sticky",
6786
6786
  top: (x == null ? void 0 : x.top) ?? 0,
6787
- left: se ? Be(ie) : void 0,
6787
+ left: se ? Ie(ie) : void 0,
6788
6788
  zIndex: se ? 3 : 2,
6789
6789
  backgroundColor: Lt,
6790
6790
  boxShadow: ne ? Vn : void 0
@@ -6822,7 +6822,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6822
6822
  {
6823
6823
  rowSpan: y == null ? void 0 : y.rowSpan,
6824
6824
  style: {
6825
- width: It,
6825
+ width: Bt,
6826
6826
  position: "sticky",
6827
6827
  top: 0,
6828
6828
  left: 0,
@@ -6862,7 +6862,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6862
6862
  {
6863
6863
  className: "sa-tl-frozen",
6864
6864
  style: {
6865
- width: It,
6865
+ width: Bt,
6866
6866
  padding: 0,
6867
6867
  position: "sticky",
6868
6868
  left: 0,
@@ -6893,7 +6893,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6893
6893
  },
6894
6894
  `tl-select-${x}`
6895
6895
  );
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) => {
6896
+ }, hr = ue.filter((y) => !y.col.hideOnMobile), fr = hr.find((y) => y.col.primary) ?? hr[0], Ri = hr.filter((y) => y !== fr), Ii = (y) => Ce((x) => {
6897
6897
  const L = new Set(x);
6898
6898
  return L.has(y) ? L.delete(y) : L.add(y), L;
6899
6899
  }), sn = (y, x) => Ri.map(({ col: L, key: Z }) => {
@@ -6931,7 +6931,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6931
6931
  }), mr = (y, x) => {
6932
6932
  const L = fr ? ar(fr.col, y, x) : null;
6933
6933
  return typeof L == "string" || typeof L == "number" ? /* @__PURE__ */ e(C, { as: "span", style: Gt, children: L }) : /* @__PURE__ */ e("span", { style: Gt, children: L });
6934
- }, Ii = /* @__PURE__ */ e(
6934
+ }, Bi = /* @__PURE__ */ e(
6935
6935
  h,
6936
6936
  {
6937
6937
  style: { display: "flex", flexDirection: "column", gap: 8, padding: 8 },
@@ -6939,7 +6939,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6939
6939
  h,
6940
6940
  {
6941
6941
  style: {
6942
- border: Bt,
6942
+ border: It,
6943
6943
  borderRadius: "var(--sa-radii-sm, 6px)",
6944
6944
  padding: 12,
6945
6945
  display: "flex",
@@ -6960,20 +6960,20 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
6960
6960
  {
6961
6961
  fullWidth: !0,
6962
6962
  style: {
6963
- minHeight: (I == null ? void 0 : I.minHeight) ?? 320,
6963
+ minHeight: (B == null ? void 0 : B.minHeight) ?? 320,
6964
6964
  display: "flex",
6965
6965
  alignItems: "center",
6966
6966
  justifyContent: "center",
6967
6967
  padding: 16
6968
6968
  },
6969
- children: I == null ? void 0 : I.content
6969
+ children: B == null ? void 0 : B.content
6970
6970
  }
6971
- ), Hi = B ? Ii : de.length === 0 ? an : v === "expand" ? /* @__PURE__ */ e(h, { style: { display: "flex", flexDirection: "column" }, children: de.map((y, x) => {
6971
+ ), Hi = I ? Bi : de.length === 0 ? an : v === "expand" ? /* @__PURE__ */ e(h, { style: { display: "flex", flexDirection: "column" }, children: de.map((y, x) => {
6972
6972
  const L = Ae(y, x), Z = ce.has(L), se = z && gt.has(L) ? Lr : qt(o == null ? void 0 : o(y, x));
6973
6973
  return /* @__PURE__ */ d(
6974
6974
  "div",
6975
6975
  {
6976
- style: { borderBottom: Bt, backgroundColor: se },
6976
+ style: { borderBottom: It, backgroundColor: se },
6977
6977
  children: [
6978
6978
  /* @__PURE__ */ d("div", { style: { display: "flex", alignItems: "center" }, children: [
6979
6979
  lr(y, x) && // Sibling dari tombol expand — tap checkbox tidak memuai baris.
@@ -7002,7 +7002,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
7002
7002
  "button",
7003
7003
  {
7004
7004
  type: "button",
7005
- onClick: () => Bi(L),
7005
+ onClick: () => Ii(L),
7006
7006
  style: {
7007
7007
  flex: 1,
7008
7008
  minWidth: 0,
@@ -7059,7 +7059,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
7059
7059
  h,
7060
7060
  {
7061
7061
  style: {
7062
- border: Bt,
7062
+ border: It,
7063
7063
  borderRadius: "var(--sa-radii-sm, 6px)",
7064
7064
  padding: 12,
7065
7065
  display: "flex",
@@ -7112,7 +7112,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
7112
7112
  onWidthsChange: Oe ? Xe : void 0,
7113
7113
  children: [
7114
7114
  Ti && /* @__PURE__ */ d("colgroup", { children: [
7115
- z && /* @__PURE__ */ e("col", { style: { width: It } }),
7115
+ z && /* @__PURE__ */ e("col", { style: { width: Bt } }),
7116
7116
  ue.map(({ col: y, key: x }, L) => /* @__PURE__ */ e("col", { style: { width: Et(y, L) } }, `col-${x}`)),
7117
7117
  $ && /* @__PURE__ */ e("col", { style: { width: 1 } })
7118
7118
  ] }),
@@ -7175,7 +7175,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
7175
7175
  }
7176
7176
  )
7177
7177
  ] }) }),
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: [
7178
+ /* @__PURE__ */ e(zr, { children: I ? Si : de.length === 0 ? /* @__PURE__ */ e(tt, { children: /* @__PURE__ */ e(Ve, { colSpan: dr, children: an }) }) : /* @__PURE__ */ d(ae, { children: [
7179
7179
  de.map((y, x) => {
7180
7180
  const L = F == null ? void 0 : F(
7181
7181
  y,
@@ -7203,7 +7203,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
7203
7203
  width: Et(se, be),
7204
7204
  minWidth: se.minWidth,
7205
7205
  position: ot ? "sticky" : void 0,
7206
- left: ot ? Be(be) : void 0,
7206
+ left: ot ? Ie(be) : void 0,
7207
7207
  zIndex: ot ? 1 : void 0,
7208
7208
  boxShadow: zt ? Vn : void 0,
7209
7209
  ...un ? { "--sa-tl-bg": un } : {}
@@ -7260,7 +7260,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
7260
7260
  },
7261
7261
  children: re ? /* @__PURE__ */ d(ae, { children: [
7262
7262
  Hi,
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 }) }) })
7263
+ _t && !I && de.length > 0 && /* @__PURE__ */ e(h, { style: { borderTop: It }, children: /* @__PURE__ */ e(Jt, { fullWidth: !0, size: i, className: "sa-table-layout", children: /* @__PURE__ */ e(zr, { children: _t }) }) })
7264
7264
  ] }) : Vi
7265
7265
  }
7266
7266
  ),
@@ -8570,7 +8570,7 @@ const $n = {
8570
8570
  maxFileSize: a = 2,
8571
8571
  onError: u
8572
8572
  }, m) => {
8573
- 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);
8573
+ const p = We("md"), [g, b] = H(!1), [S, v] = H(null), [W, F] = H(!1), [A, D] = H({ x: 0, y: 0 }), [k, B] = H(1), [I, w] = H(null);
8574
8574
  Y(() => {
8575
8575
  r === null && i(null);
8576
8576
  }, [r]);
@@ -8588,9 +8588,9 @@ const $n = {
8588
8588
  v(ce.result), F(!0);
8589
8589
  }, ce.readAsDataURL(V);
8590
8590
  }, U = async () => {
8591
- if (!(!S || !B))
8591
+ if (!(!S || !I))
8592
8592
  try {
8593
- const T = await vc(S, B);
8593
+ const T = await vc(S, I);
8594
8594
  if (a && T.size > a * 1024 * 1024) {
8595
8595
  u == null || u(`Ukuran file maksimal ${a}MB`);
8596
8596
  return;
@@ -8790,7 +8790,7 @@ const $n = {
8790
8790
  zoom: k,
8791
8791
  aspect: c ? $n[c] : void 0,
8792
8792
  onCropChange: D,
8793
- onZoomChange: I,
8793
+ onZoomChange: B,
8794
8794
  onCropComplete: R,
8795
8795
  objectFit: "contain",
8796
8796
  minZoom: 0.5,
@@ -9241,9 +9241,9 @@ const ha = ({
9241
9241
  wrapperProps: A,
9242
9242
  contentProps: D
9243
9243
  }) => {
9244
- const k = We("md"), I = n !== void 0, [B, w] = H(o), R = I ? n : B, z = () => {
9244
+ const k = We("md"), B = n !== void 0, [I, w] = H(o), R = B ? n : I, z = () => {
9245
9245
  const ce = !R;
9246
- I || w(ce), i == null || i(ce);
9246
+ B || w(ce), i == null || i(ce);
9247
9247
  }, U = c === "left", Q = typeof s == "number" ? `${s}px` : s, _ = a !== void 0 ? typeof a == "number" ? `${a}px` : a : `calc(100vh - ${Q})`, P = g ?? { collapse: "Collapse panel", expand: "Expand panel" }, X = m === "center" ? { top: "50%", transform: "translateY(-50%)" } : m === "bottom" ? { bottom: p } : { top: p }, re = R ? U ? "ChevronRight" : "ChevronLeft" : U ? "ChevronLeft" : "ChevronRight", $ = W !== void 0 && (F === "mobile" ? !k : F), T = $ ? {
9248
9248
  position: "absolute",
9249
9249
  top: 0,
@@ -9503,11 +9503,11 @@ const ha = ({
9503
9503
  /* @__PURE__ */ e(C, { color: "gray-500", variant: "sub-h3", children: t })
9504
9504
  ] }) : /* @__PURE__ */ e(C, { color: "gray-500", variant: "sub-h3", children: t }),
9505
9505
  typeof r == "string" ? /* @__PURE__ */ e(C, { variant: "sub-h3", children: r }) : r
9506
- ] }), Ie = {
9506
+ ] }), Be = {
9507
9507
  silhouette: "#A7B0AC",
9508
9508
  accent: "#78867F"
9509
9509
  };
9510
- function Bc({ width: t, height: r }) {
9510
+ function Ic({ width: t, height: r }) {
9511
9511
  return /* @__PURE__ */ e(ae, { children: /* @__PURE__ */ d(
9512
9512
  "svg",
9513
9513
  {
@@ -9521,112 +9521,112 @@ function Bc({ width: t, height: r }) {
9521
9521
  "path",
9522
9522
  {
9523
9523
  d: "M51.0002 16.8145C36.0811 16.8145 24.8296 21.3801 24.8296 27.4328V76.5344C24.8296 82.573 36.0799 87.127 51.0002 87.127C65.9204 87.127 77.1707 82.573 77.1707 76.5344V27.4328C77.1707 21.3801 65.9204 16.8145 51.0002 16.8145ZM51.0002 19.1582C65.0602 19.1582 74.8582 23.5187 74.8582 27.4328C74.8582 30.1363 70.1615 32.9664 63.1708 34.4746C55.861 36.0543 46.1416 36.0543 38.8318 34.4746C31.8399 32.9664 27.1432 30.1363 27.1432 27.4328C27.1432 23.5187 36.9402 19.1582 51.0002 19.1582ZM74.8582 31.9199V43.784C74.8582 46.532 70.3142 49.2941 63.2737 50.8328C63.2391 50.8375 63.2032 50.8434 63.1697 50.8504C57.6867 52.0352 50.8498 52.3305 44.6893 51.7387C42.6358 51.5418 40.6575 51.2453 38.8306 50.8504C38.8029 50.8445 38.7682 50.8387 38.7347 50.8352C32.5707 49.4898 28.318 47.2047 27.3514 44.8141C27.2138 44.4719 27.1421 44.1285 27.1421 43.7852V31.9199C27.1999 31.9715 27.2693 32.0207 27.3294 32.0723C27.5052 32.2246 27.6902 32.3758 27.8844 32.5234C27.9954 32.609 28.1064 32.6934 28.2232 32.7766C28.4371 32.9301 28.6637 33.0801 28.8973 33.2289C29.0083 33.2992 29.1135 33.3719 29.2291 33.441C29.5702 33.6473 29.9275 33.8488 30.3044 34.0434C30.3195 34.0516 30.3333 34.0598 30.3484 34.068C30.7427 34.2707 31.1601 34.4652 31.5925 34.6551C31.7301 34.716 31.8758 34.7734 32.0168 34.832C32.3221 34.9598 32.6331 35.0852 32.9557 35.207C33.1303 35.2727 33.3095 35.3359 33.4887 35.4004C33.8032 35.5117 34.1247 35.6207 34.4542 35.7273C34.6404 35.7871 34.8254 35.8469 35.015 35.9043C35.3734 36.0133 35.7434 36.1164 36.1181 36.2184C36.2915 36.2652 36.4603 36.3145 36.6361 36.3602C37.1911 36.5031 37.7588 36.6402 38.3485 36.7668C42.1595 37.5906 46.5336 38.0254 50.999 38.0254C55.4644 38.0254 59.8397 37.5906 63.6495 36.768C64.2404 36.6402 64.8092 36.5031 65.3666 36.3602C65.5377 36.3156 65.7007 36.2688 65.8684 36.223C66.2499 36.1199 66.6246 36.0145 66.9888 35.9031C67.1749 35.8469 67.3553 35.7883 67.5368 35.7309C67.8745 35.623 68.2028 35.5105 68.5243 35.3969C68.6966 35.3359 68.8677 35.275 69.0353 35.2117C69.3672 35.0863 69.6852 34.9574 69.9985 34.8262C70.1326 34.7699 70.2725 34.7148 70.4032 34.6574C70.8379 34.4664 71.2576 34.2707 71.6542 34.0668C71.66 34.0633 71.6658 34.0609 71.6716 34.0574C72.0589 33.8582 72.4243 33.6508 72.7735 33.441C72.8868 33.3719 72.9909 33.3016 73.1007 33.2313C73.3354 33.0813 73.5632 32.9312 73.7794 32.7766C73.8951 32.6934 74.0049 32.609 74.1159 32.5258C74.3102 32.377 74.4963 32.2258 74.6732 32.0723C74.7322 32.0207 74.8027 31.9727 74.8594 31.9211L74.8582 31.9199ZM74.8582 48.2887V60.1598C74.8582 62.8773 70.3396 65.6359 63.335 67.2004C63.2737 67.2051 63.2136 67.2156 63.1547 67.2285C59.5021 68.016 55.2482 68.4109 50.9955 68.4098C48.8692 68.4098 46.7428 68.3113 44.6917 68.1145C42.6405 67.9176 40.6656 67.6211 38.8399 67.2273C38.7832 67.2133 38.7266 67.2051 38.6699 67.2004C31.663 65.6359 27.1432 62.8785 27.1432 60.1598V48.2887C27.2022 48.3426 27.2739 48.393 27.3352 48.4457C27.5075 48.5945 27.6878 48.7422 27.8763 48.8875C27.9908 48.9754 28.1052 49.0633 28.2255 49.15C28.4348 49.3 28.6568 49.4477 28.8834 49.593C28.999 49.6668 29.1089 49.7418 29.228 49.8145C29.5633 50.0172 29.9136 50.2152 30.2825 50.4074C30.3114 50.4227 30.338 50.4379 30.3669 50.452C30.7507 50.6488 31.1566 50.8398 31.5775 51.0262C31.722 51.0895 31.8746 51.1504 32.0226 51.2125C32.3198 51.3379 32.6227 51.4609 32.9372 51.5793C33.1164 51.6473 33.2991 51.7129 33.4841 51.7785C33.7917 51.8887 34.1073 51.9953 34.4299 52.0996C34.6196 52.1605 34.8092 52.2227 35.0046 52.2812C35.3584 52.3891 35.7238 52.4922 36.0938 52.593C36.2684 52.641 36.4395 52.6902 36.6176 52.7359C37.1714 52.8789 37.738 53.016 38.3253 53.1426C38.3554 53.1496 38.3889 53.1555 38.4236 53.159C42.2161 53.9723 46.5636 54.4023 51.0013 54.4023C55.439 54.4023 59.7784 53.9734 63.5697 53.1613C63.6056 53.1566 63.6414 53.1508 63.6773 53.1426C64.2647 53.0148 64.8312 52.8789 65.3851 52.7359C65.5643 52.6902 65.7342 52.6398 65.9088 52.593C66.2788 52.4922 66.6442 52.3891 66.998 52.2812C67.1934 52.2215 67.3831 52.1605 67.5727 52.0996C67.8953 51.9953 68.2109 51.8887 68.5185 51.7785C68.7023 51.7129 68.8862 51.6473 69.0654 51.5793C69.3799 51.4598 69.6817 51.3367 69.98 51.2125C70.128 51.1504 70.2806 51.0895 70.4252 51.0262C70.846 50.841 71.2507 50.65 71.6357 50.452C71.6646 50.4367 71.6912 50.4215 71.7201 50.4074C72.0901 50.2152 72.4405 50.0172 72.7747 49.8145C72.8949 49.7418 73.0036 49.6668 73.1192 49.593C73.347 49.4477 73.5678 49.3 73.7771 49.15C73.8974 49.0633 74.0118 48.9766 74.1263 48.8875C74.3148 48.7422 74.4952 48.5945 74.6674 48.4457C74.7287 48.393 74.7992 48.3426 74.8582 48.2887ZM74.8582 76.5355C74.8582 80.4367 65.0602 84.7844 51.0002 84.7844C36.9402 84.7844 27.1421 80.4367 27.1421 76.5355V64.6469C27.1987 64.6984 27.2693 64.7477 27.3282 64.7992C27.5028 64.9504 27.6844 65.0992 27.8763 65.2469C27.9873 65.3324 28.0995 65.418 28.2162 65.5023C28.4302 65.6559 28.6568 65.807 28.8892 65.9559C28.9979 66.0262 29.1019 66.0977 29.2152 66.1656C29.5691 66.3801 29.9367 66.591 30.3299 66.7937C30.331 66.7937 30.3322 66.7938 30.3333 66.7961C30.7253 66.9988 31.1404 67.1945 31.5694 67.3855C31.7058 67.4465 31.8515 67.5039 31.9914 67.5637C32.2955 67.6926 32.6054 67.8191 32.928 67.9422C33.1002 68.0078 33.2772 68.0711 33.4541 68.1355C33.7674 68.248 34.0888 68.3582 34.4184 68.466C34.6034 68.5258 34.7872 68.5867 34.9768 68.6453C35.3341 68.7555 35.703 68.8609 36.0764 68.9641C36.2476 69.0109 36.4141 69.0602 36.5887 69.1059C37.1413 69.2512 37.7079 69.3895 38.2941 69.5195C38.3462 69.5312 38.3993 69.5383 38.4514 69.543C42.2369 70.3516 46.5717 70.7793 50.999 70.7793C55.4263 70.7793 59.7599 70.3527 63.5478 69.543C63.5998 69.5383 63.653 69.5312 63.705 69.5195C64.2912 69.3906 64.8578 69.2512 65.4105 69.1059C65.5839 69.0602 65.7493 69.0121 65.9192 68.9652C66.295 68.8621 66.665 68.7555 67.0246 68.6453C67.2131 68.5879 67.3958 68.5281 67.5785 68.4684C67.9092 68.3605 68.2329 68.2492 68.5486 68.1355C68.7231 68.0723 68.8977 68.009 69.0689 67.9445C69.3938 67.8203 69.7071 67.6926 70.0135 67.5625C70.1511 67.5039 70.2933 67.4477 70.4275 67.3879C71.29 67.0047 72.0774 66.5969 72.7851 66.1668C72.8972 66.0988 73.0001 66.0273 73.1088 65.9582C73.3424 65.8082 73.5702 65.657 73.7852 65.5023C73.9008 65.4191 74.0118 65.3336 74.1217 65.2492C74.3148 65.1016 74.4975 64.9516 74.6732 64.7992C74.7322 64.7488 74.8016 64.6996 74.8582 64.648V76.5355Z",
9524
- fill: Ie.silhouette
9524
+ fill: Be.silhouette
9525
9525
  }
9526
9526
  ),
9527
9527
  /* @__PURE__ */ e(
9528
9528
  "path",
9529
9529
  {
9530
9530
  d: "M33.2089 38.8535C31.3993 38.8535 29.9263 40.3453 29.9263 42.1805C29.9263 44.0156 31.3982 45.5062 33.2089 45.5062C35.0196 45.5062 36.4903 44.0145 36.4903 42.1805C36.4903 40.3465 35.0184 38.8535 33.2089 38.8535ZM33.2089 43.1625C32.6735 43.1625 32.2388 42.7219 32.2388 42.1805C32.2388 41.6391 32.6735 41.1973 33.2089 41.1973C33.7442 41.1973 34.1778 41.6379 34.1778 42.1805C34.1778 42.723 33.7431 43.1625 33.2089 43.1625Z",
9531
- fill: Ie.silhouette
9531
+ fill: Be.silhouette
9532
9532
  }
9533
9533
  ),
9534
9534
  /* @__PURE__ */ e(
9535
9535
  "path",
9536
9536
  {
9537
9537
  d: "M33.2089 54.6777C31.3993 54.6777 29.9263 56.1695 29.9263 58.0047C29.9263 59.8398 31.3982 61.3316 33.2089 61.3316C35.0196 61.3316 36.4903 59.8398 36.4903 58.0047C36.4903 56.1695 35.0184 54.6777 33.2089 54.6777ZM33.2089 58.9879C32.6735 58.9879 32.2388 58.5473 32.2388 58.0047C32.2388 57.4621 32.6735 57.0215 33.2089 57.0215C33.7442 57.0215 34.1778 57.4621 34.1778 58.0047C34.1778 58.5473 33.7431 58.9879 33.2089 58.9879Z",
9538
- fill: Ie.silhouette
9538
+ fill: Be.silhouette
9539
9539
  }
9540
9540
  ),
9541
9541
  /* @__PURE__ */ e(
9542
9542
  "path",
9543
9543
  {
9544
9544
  d: "M33.2089 70.5C31.3993 70.5 29.9263 71.9918 29.9263 73.827C29.9263 75.6621 31.3982 77.1539 33.2089 77.1539C35.0196 77.1539 36.4903 75.6621 36.4903 73.827C36.4903 71.9918 35.0184 70.5 33.2089 70.5ZM33.2089 74.8102C32.6735 74.8102 32.2388 74.3695 32.2388 73.827C32.2388 73.2844 32.6735 72.8438 33.2089 72.8438C33.7442 72.8438 34.1778 73.2844 34.1778 73.827C34.1778 74.3695 33.7431 74.8102 33.2089 74.8102Z",
9545
- fill: Ie.silhouette
9545
+ fill: Be.silhouette
9546
9546
  }
9547
9547
  ),
9548
9548
  /* @__PURE__ */ e(
9549
9549
  "path",
9550
9550
  {
9551
9551
  d: "M70.0215 38.2852C69.3821 38.2852 68.8652 38.809 68.8652 39.457V44.3332C68.8652 44.9812 69.3821 45.5051 70.0215 45.5051C70.6609 45.5051 71.1777 44.9812 71.1777 44.3332V39.457C71.1777 38.809 70.6609 38.2852 70.0215 38.2852Z",
9552
- fill: Ie.silhouette
9552
+ fill: Be.silhouette
9553
9553
  }
9554
9554
  ),
9555
9555
  /* @__PURE__ */ e(
9556
9556
  "path",
9557
9557
  {
9558
9558
  d: "M70.0215 54.3926C69.3821 54.3926 68.8652 54.9164 68.8652 55.5645V60.4406C68.8652 61.0887 69.3821 61.6125 70.0215 61.6125C70.6609 61.6125 71.1777 61.0887 71.1777 60.4406V55.5645C71.1777 54.9164 70.6609 54.3926 70.0215 54.3926Z",
9559
- fill: Ie.silhouette
9559
+ fill: Be.silhouette
9560
9560
  }
9561
9561
  ),
9562
9562
  /* @__PURE__ */ e(
9563
9563
  "path",
9564
9564
  {
9565
9565
  d: "M70.0215 70.5C69.3821 70.5 68.8652 71.0238 68.8652 71.6719V76.5492C68.8652 77.1973 69.3821 77.7211 70.0215 77.7211C70.6609 77.7211 71.1777 77.1973 71.1777 76.5492V71.6719C71.1777 71.0238 70.6609 70.5 70.0215 70.5Z",
9566
- fill: Ie.silhouette
9566
+ fill: Be.silhouette
9567
9567
  }
9568
9568
  ),
9569
9569
  /* @__PURE__ */ e(
9570
9570
  "path",
9571
9571
  {
9572
9572
  d: "M65.77 39.7617C65.1306 39.7617 64.6138 40.2855 64.6138 40.9336V45.8098C64.6138 46.4578 65.1306 46.9816 65.77 46.9816C66.4094 46.9816 66.9263 46.4578 66.9263 45.8098V40.9336C66.9263 40.2855 66.4094 39.7617 65.77 39.7617Z",
9573
- fill: Ie.silhouette
9573
+ fill: Be.silhouette
9574
9574
  }
9575
9575
  ),
9576
9576
  /* @__PURE__ */ e(
9577
9577
  "path",
9578
9578
  {
9579
9579
  d: "M65.77 55.8691C65.1306 55.8691 64.6138 56.393 64.6138 57.041V61.9172C64.6138 62.5652 65.1306 63.0891 65.77 63.0891C66.4094 63.0891 66.9263 62.5652 66.9263 61.9172V57.041C66.9263 56.393 66.4094 55.8691 65.77 55.8691Z",
9580
- fill: Ie.silhouette
9580
+ fill: Be.silhouette
9581
9581
  }
9582
9582
  ),
9583
9583
  /* @__PURE__ */ e(
9584
9584
  "path",
9585
9585
  {
9586
9586
  d: "M65.77 71.9766C65.1306 71.9766 64.6138 72.5004 64.6138 73.1484V78.0246C64.6138 78.6727 65.1306 79.1965 65.77 79.1965C66.4094 79.1965 66.9263 78.6727 66.9263 78.0246V73.1484C66.9263 72.5004 66.4094 71.9766 65.77 71.9766Z",
9587
- fill: Ie.silhouette
9587
+ fill: Be.silhouette
9588
9588
  }
9589
9589
  ),
9590
9590
  /* @__PURE__ */ e(
9591
9591
  "path",
9592
9592
  {
9593
9593
  d: "M61.2939 40.7246C60.6545 40.7246 60.1377 41.2484 60.1377 41.8965V46.7727C60.1377 47.4207 60.6545 47.9445 61.2939 47.9445C61.9334 47.9445 62.4502 47.4207 62.4502 46.7727V41.8965C62.4502 41.2484 61.9334 40.7246 61.2939 40.7246Z",
9594
- fill: Ie.silhouette
9594
+ fill: Be.silhouette
9595
9595
  }
9596
9596
  ),
9597
9597
  /* @__PURE__ */ e(
9598
9598
  "path",
9599
9599
  {
9600
9600
  d: "M61.2939 56.832C60.6545 56.832 60.1377 57.3559 60.1377 58.0039V62.8801C60.1377 63.5281 60.6545 64.052 61.2939 64.052C61.9334 64.052 62.4502 63.5281 62.4502 62.8801V58.0039C62.4502 57.3559 61.9334 56.832 61.2939 56.832Z",
9601
- fill: Ie.silhouette
9601
+ fill: Be.silhouette
9602
9602
  }
9603
9603
  ),
9604
9604
  /* @__PURE__ */ e(
9605
9605
  "path",
9606
9606
  {
9607
9607
  d: "M61.2939 72.9395C60.6545 72.9395 60.1377 73.4633 60.1377 74.1113V78.9875C60.1377 79.6355 60.6545 80.1594 61.2939 80.1594C61.9334 80.1594 62.4502 79.6355 62.4502 78.9875V74.1113C62.4502 73.4633 61.9334 72.9395 61.2939 72.9395Z",
9608
- fill: Ie.silhouette
9608
+ fill: Be.silhouette
9609
9609
  }
9610
9610
  ),
9611
9611
  /* @__PURE__ */ e(
9612
9612
  "path",
9613
9613
  {
9614
9614
  d: "M39.0489 24.4037C39.131 24.4037 39.2154 24.3944 39.2986 24.3768C42.7316 23.6127 46.6755 23.185 51.0207 23.11C51.659 23.0983 52.1677 22.5651 52.1561 21.917C52.1446 21.2701 51.652 20.7451 50.9791 20.7662C46.4813 20.8448 42.3835 21.2889 38.8015 22.0881C38.1782 22.2264 37.7828 22.8522 37.9204 23.4838C38.0395 24.0311 38.5182 24.4037 39.0489 24.4037Z",
9615
- fill: Ie.silhouette
9615
+ fill: Be.silhouette
9616
9616
  }
9617
9617
  ),
9618
9618
  /* @__PURE__ */ e(
9619
9619
  "path",
9620
9620
  {
9621
9621
  d: "M32.5406 26.6215C32.7407 26.6215 32.9442 26.57 33.128 26.4586C33.1315 26.4563 33.5096 26.2336 34.2889 25.9055C34.8786 25.6582 35.1584 24.9727 34.9144 24.3739C34.6704 23.775 33.9917 23.4926 33.4032 23.7399C32.4632 24.1348 31.9926 24.4149 31.9417 24.4465C31.396 24.7782 31.219 25.4942 31.544 26.0485C31.7613 26.4164 32.1452 26.6204 32.5395 26.6204L32.5406 26.6215Z",
9622
- fill: Ie.silhouette
9622
+ fill: Be.silhouette
9623
9623
  }
9624
9624
  ),
9625
9625
  /* @__PURE__ */ e(
9626
9626
  "path",
9627
9627
  {
9628
9628
  d: "M92.7251 26.7272L82.3845 29.3124C81.6929 29.4856 80.9911 29.0642 80.8179 28.3727C80.6447 27.6799 81.066 26.978 81.7576 26.8048L92.0982 24.2196C92.791 24.0464 93.4929 24.4678 93.6661 25.1593C93.8393 25.8521 93.4179 26.554 92.7251 26.7272Z",
9629
- fill: Ie.accent,
9629
+ fill: Be.accent,
9630
9630
  fillOpacity: "0.65"
9631
9631
  }
9632
9632
  ),
@@ -9634,7 +9634,7 @@ function Bc({ width: t, height: r }) {
9634
9634
  "path",
9635
9635
  {
9636
9636
  d: "M94.4649 11.0082L80.2465 21.3488C79.6701 21.7676 78.8609 21.6409 78.4408 21.0632C78.022 20.4867 78.1487 19.6775 78.7265 19.2574L92.9448 8.91682C93.5213 8.49803 94.3305 8.6247 94.7505 9.20248C95.1693 9.77897 95.0414 10.5881 94.4649 11.0082Z",
9637
- fill: Ie.accent,
9637
+ fill: Be.accent,
9638
9638
  fillOpacity: "0.65"
9639
9639
  }
9640
9640
  ),
@@ -9642,7 +9642,7 @@ function Bc({ width: t, height: r }) {
9642
9642
  "path",
9643
9643
  {
9644
9644
  d: "M78.0091 10.6269L74.1314 17.0898C73.7643 17.7025 72.9706 17.9002 72.358 17.5331C71.7466 17.1673 71.5475 16.3724 71.9146 15.7597L75.7923 9.29684C76.1594 8.68545 76.9544 8.48769 77.5657 8.85349C78.1784 9.22058 78.3762 10.0155 78.0091 10.6269Z",
9645
- fill: Ie.accent,
9645
+ fill: Be.accent,
9646
9646
  fillOpacity: "0.65"
9647
9647
  }
9648
9648
  )
@@ -9694,7 +9694,7 @@ const ya = ({
9694
9694
  marginBlock: "auto",
9695
9695
  customHeight: s,
9696
9696
  children: [
9697
- u || /* @__PURE__ */ e(Bc, {}),
9697
+ u || /* @__PURE__ */ e(Ic, {}),
9698
9698
  /* @__PURE__ */ e(h, { direction: "column", children: r.map((p, g) => /* @__PURE__ */ e(
9699
9699
  dt.Body1,
9700
9700
  {
@@ -9720,7 +9720,7 @@ const ya = ({
9720
9720
  c000000: "#000000",
9721
9721
  cFFFFFF: "#FFFFFF"
9722
9722
  };
9723
- function Ic({ width: t, height: r }) {
9723
+ function Bc({ width: t, height: r }) {
9724
9724
  return /* @__PURE__ */ e(ae, { children: /* @__PURE__ */ d(
9725
9725
  "svg",
9726
9726
  {
@@ -9936,7 +9936,7 @@ function ba({ onClick: t }) {
9936
9936
  justify: "center",
9937
9937
  gap: "md",
9938
9938
  children: [
9939
- /* @__PURE__ */ e(Ic, { width: r ? 600 : 300 }),
9939
+ /* @__PURE__ */ e(Bc, { width: r ? 600 : 300 }),
9940
9940
  /* @__PURE__ */ e(
9941
9941
  C,
9942
9942
  {
@@ -11040,7 +11040,7 @@ const Ca = (t) => {
11040
11040
  const k = () => u ? /* @__PURE__ */ d(h, { direction: "row", gap: "sm", align: "center", children: [
11041
11041
  /* @__PURE__ */ e(C, { fontWeight: "medium", children: a }),
11042
11042
  /* @__PURE__ */ e(qn, { border: !0, text: u, variant: W })
11043
- ] }) : /* @__PURE__ */ e(C, { fontWeight: "medium", children: a }), I = () => c || /* @__PURE__ */ d(
11043
+ ] }) : /* @__PURE__ */ e(C, { fontWeight: "medium", children: a }), B = () => c || /* @__PURE__ */ d(
11044
11044
  h,
11045
11045
  {
11046
11046
  direction: "row",
@@ -11052,7 +11052,7 @@ const Ca = (t) => {
11052
11052
  /* @__PURE__ */ e(h, { direction: "column", ...p, children: m ?? null })
11053
11053
  ]
11054
11054
  }
11055
- ), B = !!(c || a || m);
11055
+ ), I = !!(c || a || m);
11056
11056
  return /* @__PURE__ */ d(
11057
11057
  h,
11058
11058
  {
@@ -11072,7 +11072,7 @@ const Ca = (t) => {
11072
11072
  ...(g == null ? void 0 : g.style) ?? {}
11073
11073
  },
11074
11074
  children: [
11075
- c !== null && B ? /* @__PURE__ */ e(ai, { ...S, children: I() }) : null,
11075
+ c !== null && I ? /* @__PURE__ */ e(ai, { ...S, children: B() }) : null,
11076
11076
  /* @__PURE__ */ e(
11077
11077
  h,
11078
11078
  {
@@ -11147,17 +11147,17 @@ const Pe = {
11147
11147
  {
11148
11148
  mode: "sidebar",
11149
11149
  label: "Sidebar",
11150
- icon: /* @__PURE__ */ e(Nc, {})
11150
+ renderIcon: () => /* @__PURE__ */ e(Nc, {})
11151
11151
  },
11152
11152
  {
11153
11153
  mode: "modal",
11154
11154
  label: "Modal",
11155
- icon: /* @__PURE__ */ e(M, { name: "Newscreen", size: "sm" })
11155
+ renderIcon: () => /* @__PURE__ */ e(M, { name: "Newscreen", size: "sm" })
11156
11156
  },
11157
11157
  {
11158
11158
  mode: "fullscreen",
11159
11159
  label: "Fullscreen",
11160
- icon: /* @__PURE__ */ e(M, { name: "Fullscreen", size: "sm" })
11160
+ renderIcon: () => /* @__PURE__ */ e(M, { name: "Fullscreen", size: "sm" })
11161
11161
  }
11162
11162
  ];
11163
11163
  function Vc({ value: t, onChange: r }) {
@@ -11170,7 +11170,7 @@ function Vc({ value: t, onChange: r }) {
11170
11170
  "aria-label": `Switch to ${n.label} view`,
11171
11171
  "aria-pressed": t === n.mode,
11172
11172
  onClick: () => r(n.mode),
11173
- children: n.icon
11173
+ children: n.renderIcon()
11174
11174
  },
11175
11175
  n.mode
11176
11176
  )) });
@@ -11238,14 +11238,14 @@ function _c(t) {
11238
11238
  document.body.style.overflow = k.current ?? "";
11239
11239
  };
11240
11240
  }, [r, g]);
11241
- const I = oe(n);
11242
- I.current = n, Y(() => {
11241
+ const B = oe(n);
11242
+ B.current = n, Y(() => {
11243
11243
  if (r)
11244
11244
  return Jn({
11245
- onEscape: m ? void 0 : () => I.current()
11245
+ onEscape: m ? void 0 : () => B.current()
11246
11246
  });
11247
11247
  }, [r, m]);
11248
- const B = ve(
11248
+ const I = ve(
11249
11249
  () => Ut(b, Jr),
11250
11250
  [b]
11251
11251
  ), w = ve(
@@ -11289,7 +11289,7 @@ function _c(t) {
11289
11289
  ),
11290
11290
  /* @__PURE__ */ d("div", { className: U, children: [
11291
11291
  /* @__PURE__ */ d("div", { className: Pe["lyd-header"], children: [
11292
- /* @__PURE__ */ e("div", { className: Pe["lyd-header-content"], children: B }),
11292
+ /* @__PURE__ */ e("div", { className: Pe["lyd-header-content"], children: I }),
11293
11293
  /* @__PURE__ */ d("div", { className: Pe["lyd-header-actions"], children: [
11294
11294
  c && /* @__PURE__ */ e(Vc, { value: W, onChange: D }),
11295
11295
  s && /* @__PURE__ */ e(
@@ -11726,14 +11726,14 @@ export {
11726
11726
  zs as ModuleSwitcher,
11727
11727
  wo as ModuleSwitcherModal,
11728
11728
  ba as NotFoundPage,
11729
- Bs as PageLayout,
11729
+ Is as PageLayout,
11730
11730
  nr as Pressable,
11731
11731
  Wo as RightDrawer,
11732
11732
  ri as SIDEBAR_DEFAULT_WIDTH,
11733
11733
  ii as SIDEBAR_MAX_WIDTH,
11734
11734
  ni as SIDEBAR_MIN_WIDTH,
11735
11735
  kc as ScrollToTopButton,
11736
- Is as Section,
11736
+ Bs as Section,
11737
11737
  di as SectionFooter,
11738
11738
  ai as SectionHeader,
11739
11739
  Da as SelectButton,