@starasia/admin 12.2.0 → 12.3.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
@@ -3,16 +3,16 @@ import { Badges as St, Badge as xi } from "@starasia/badges";
3
3
  export * from "@starasia/badges";
4
4
  import { Box as f } from "@starasia/box";
5
5
  export * from "@starasia/box";
6
- import { Breadcrumb as vi, BreadcrumbItem as tn, BreadcrumbLink as Ci } from "@starasia/breadcrumb";
6
+ import { Breadcrumb as vi, BreadcrumbItem as rn, BreadcrumbLink as Ci } from "@starasia/breadcrumb";
7
7
  export * from "@starasia/breadcrumb";
8
8
  import { Button as _ } from "@starasia/button";
9
9
  export * from "@starasia/button";
10
10
  export * from "@starasia/card";
11
11
  import { StarasiaDate as Ft } from "@starasia/date";
12
12
  export * from "@starasia/date";
13
- import { Dialog as Fr, DialogTitle as Wn, DialogBody as Er, DialogFooter as Bn } from "@starasia/dialog";
13
+ import { Dialog as Fr, DialogTitle as Bn, DialogBody as Er, DialogFooter as zn } from "@starasia/dialog";
14
14
  export * from "@starasia/dialog";
15
- import { Drawer as zn } from "@starasia/drawer";
15
+ import { Drawer as An } from "@starasia/drawer";
16
16
  export * from "@starasia/drawer";
17
17
  import { Dropdown as _t } from "@starasia/dropdown";
18
18
  export * from "@starasia/dropdown";
@@ -28,12 +28,12 @@ import { Pagination as Mr } from "@starasia/pagination";
28
28
  export * from "@starasia/pagination";
29
29
  import { storage as ar } from "@starasia/storage";
30
30
  export * from "@starasia/storage";
31
- import { Tr as Ne, Td as Me, Table as Tt, Thead as An, Th as ht, Tbody as wr, useColumnWidths as ki, Tfoot as Si } from "@starasia/table";
31
+ import { Tr as Ne, Td as Me, Table as Tt, Thead as Rn, Th as ht, Tbody as wr, useColumnWidths as ki, Tfoot as Si } from "@starasia/table";
32
32
  export * from "@starasia/table";
33
33
  export * from "@starasia/tabs";
34
34
  import { Textarea as Fi } from "@starasia/textarea";
35
35
  export * from "@starasia/textarea";
36
- import { useTheme as Ei, ThemeProvider as rn, useColor as Li } from "@starasia/theme";
36
+ import { useTheme as Ei, ThemeProvider as nn, useColor as Li } from "@starasia/theme";
37
37
  export * from "@starasia/theme";
38
38
  export * from "@starasia/toast";
39
39
  import { Toggle as Zt } from "@starasia/toggle";
@@ -60,7 +60,7 @@ export * from "@starasia/skeleton";
60
60
  export * from "@starasia/progress-stepper";
61
61
  import { jsx as e, Fragment as re, jsxs as d } from "react/jsx-runtime";
62
62
  import st, { createContext as bt, useState as V, useContext as dt, useCallback as q, useMemo as ge, memo as Xe, useEffect as J, useRef as ce, useLayoutEffect as at, forwardRef as Wr, isValidElement as Dr, Children as Wi, useImperativeHandle as Bi } from "react";
63
- import zi, { createPortal as Rn } from "react-dom";
63
+ import zi, { createPortal as Br } from "react-dom";
64
64
  import Ai from "react-easy-crop";
65
65
  const Ri = {
66
66
  menus: [],
@@ -212,7 +212,7 @@ const Ri = {
212
212
  setUserData: a.setUserData,
213
213
  menuBottom: o
214
214
  },
215
- children: /* @__PURE__ */ e(Oi, { children: /* @__PURE__ */ e(Vi, { children: s ? /* @__PURE__ */ e(rn, { value: s, children: t }) : u ? /* @__PURE__ */ e(rn, { value: u, children: t }) : t }) })
215
+ children: /* @__PURE__ */ e(Oi, { children: /* @__PURE__ */ e(Vi, { children: s ? /* @__PURE__ */ e(nn, { value: s, children: t }) : u ? /* @__PURE__ */ e(nn, { value: u, children: t }) : t }) })
216
216
  }
217
217
  ) });
218
218
  }, jc = Xe($i);
@@ -253,11 +253,11 @@ function ji({
253
253
  }
254
254
  );
255
255
  }
256
- const Br = bt(null);
256
+ const zr = bt(null);
257
257
  function _i({ children: t }) {
258
258
  const [r, n] = V(null), [o, i] = V(null), [l, c] = V(null), [s, a] = V(0), u = q(() => (a((m) => m + 1), () => a((m) => m - 1)), []);
259
259
  return /* @__PURE__ */ e(
260
- Br.Provider,
260
+ zr.Provider,
261
261
  {
262
262
  value: {
263
263
  prependNode: r,
@@ -274,7 +274,7 @@ function _i({ children: t }) {
274
274
  );
275
275
  }
276
276
  function Pi({ children: t }) {
277
- const r = dt(Br);
277
+ const r = dt(zr);
278
278
  return r ? /* @__PURE__ */ d(re, { children: [
279
279
  /* @__PURE__ */ e("div", { ref: r.setPrependNode, style: { display: "contents" } }),
280
280
  r.replaceCount > 0 ? /* @__PURE__ */ e("div", { ref: r.setReplaceNode, style: { display: "contents" } }) : t,
@@ -285,7 +285,7 @@ function _c({
285
285
  children: t,
286
286
  mode: r = "append"
287
287
  }) {
288
- const n = dt(Br);
288
+ const n = dt(zr);
289
289
  if (J(() => {
290
290
  if (!(r !== "replace" || !n))
291
291
  return n.registerReplace();
@@ -294,9 +294,9 @@ function _c({
294
294
  "[HeaderLeftSlot] used outside AppLayout — content not rendered"
295
295
  ), null;
296
296
  const o = r === "prepend" ? n.prependNode : r === "replace" ? n.replaceNode : n.appendNode;
297
- return o ? Rn(t, o) : null;
297
+ return o ? Br(t, o) : null;
298
298
  }
299
- const zr = bt(null);
299
+ const Ar = bt(null);
300
300
  function Zi({ children: t }) {
301
301
  const [r, n] = V({}), [o, i] = V({}), l = q((a, u) => {
302
302
  n((m) => m[a] === u ? m : { ...m, [a]: u });
@@ -307,10 +307,10 @@ function Zi({ children: t }) {
307
307
  () => ({ outletNodes: r, setOutletNode: l, slotCounts: o, registerSlot: c }),
308
308
  [r, l, o, c]
309
309
  );
310
- return /* @__PURE__ */ e(zr.Provider, { value: s, children: t });
310
+ return /* @__PURE__ */ e(Ar.Provider, { value: s, children: t });
311
311
  }
312
312
  function Gi({ slotKey: t, fallback: r }) {
313
- const n = dt(zr), o = n ? (n.slotCounts[t] ?? 0) > 0 : !1, i = ce(n == null ? void 0 : n.setOutletNode);
313
+ const n = dt(Ar), o = n ? (n.slotCounts[t] ?? 0) > 0 : !1, i = ce(n == null ? void 0 : n.setOutletNode);
314
314
  i.current = n == null ? void 0 : n.setOutletNode;
315
315
  const l = q(
316
316
  (c) => {
@@ -323,7 +323,7 @@ function Gi({ slotKey: t, fallback: r }) {
323
323
  return /* @__PURE__ */ e(re, { children: o ? /* @__PURE__ */ e("div", { ref: l, style: { display: "contents" } }) : r });
324
324
  }
325
325
  function Pc({ slotKey: t, children: r }) {
326
- const n = dt(zr), o = ce(n == null ? void 0 : n.registerSlot);
326
+ const n = dt(Ar), o = ce(n == null ? void 0 : n.registerSlot);
327
327
  if (o.current = n == null ? void 0 : n.registerSlot, J(() => {
328
328
  var l;
329
329
  return (l = o.current) == null ? void 0 : l.call(o, t);
@@ -332,10 +332,10 @@ function Pc({ slotKey: t, children: r }) {
332
332
  "[SidebarGroupSlot] used outside AppLayout — content not rendered"
333
333
  ), null;
334
334
  const i = n.outletNodes[t];
335
- return i ? Rn(r, i) : null;
335
+ return i ? Br(r, i) : null;
336
336
  }
337
337
  const Nt = "moduleSwitcherGroupId", kr = "sa-module-switcher-change";
338
- function nn() {
338
+ function on() {
339
339
  if (typeof window > "u") return null;
340
340
  const t = window.localStorage.getItem(Nt);
341
341
  if (t === null) return null;
@@ -350,11 +350,11 @@ function Zc() {
350
350
  }
351
351
  function $n() {
352
352
  const [t, r] = V(
353
- () => nn()
353
+ () => on()
354
354
  );
355
355
  return J(() => {
356
356
  const o = () => {
357
- r(nn());
357
+ r(on());
358
358
  }, i = (l) => {
359
359
  l.key === Nt && o();
360
360
  };
@@ -365,8 +365,8 @@ function $n() {
365
365
  Nn(o), r(o);
366
366
  } };
367
367
  }
368
- let zt = 0, ut = !1, on = /* @__PURE__ */ new Set();
369
- const ln = () => /* @__PURE__ */ d(
368
+ let zt = 0, ut = !1, ln = /* @__PURE__ */ new Set();
369
+ const cn = () => /* @__PURE__ */ d(
370
370
  "svg",
371
371
  {
372
372
  width: "100%",
@@ -383,7 +383,7 @@ const ln = () => /* @__PURE__ */ d(
383
383
  /* @__PURE__ */ e("line", { x1: "6", y1: "1.667", x2: "6", y2: "14.333" })
384
384
  ]
385
385
  }
386
- ), cn = {
386
+ ), sn = {
387
387
  width: "100%",
388
388
  display: "flex",
389
389
  alignItems: "center",
@@ -422,10 +422,10 @@ function Gc({
422
422
  mobileOpen: N,
423
423
  setMobileOpen: Y
424
424
  } = Ti(), [ne, $] = V(!1), [T, j] = V(
425
- () => new Set(on)
425
+ () => new Set(ln)
426
426
  ), [oe, ve] = V(null), { selectedGroupId: Ce, setSelectedGroupId: fe } = $n();
427
427
  J(() => {
428
- on = T;
428
+ ln = T;
429
429
  }, [T]);
430
430
  const pe = ce(null), we = ce(null);
431
431
  J(() => {
@@ -909,7 +909,7 @@ function Gc({
909
909
  cursor: "pointer",
910
910
  flexShrink: 0
911
911
  },
912
- children: /* @__PURE__ */ e(ln, {})
912
+ children: /* @__PURE__ */ e(cn, {})
913
913
  }
914
914
  ),
915
915
  w && /* @__PURE__ */ e(
@@ -946,7 +946,7 @@ function Gc({
946
946
  height: "1rem",
947
947
  display: "inline-flex"
948
948
  },
949
- children: /* @__PURE__ */ e(ln, {})
949
+ children: /* @__PURE__ */ e(cn, {})
950
950
  }
951
951
  )
952
952
  }
@@ -1303,7 +1303,7 @@ function Gc({
1303
1303
  {
1304
1304
  type: "button",
1305
1305
  onClick: w.onClick,
1306
- style: cn,
1306
+ style: sn,
1307
1307
  onMouseEnter: (O) => {
1308
1308
  O.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)";
1309
1309
  },
@@ -1324,7 +1324,7 @@ function Gc({
1324
1324
  type: "button",
1325
1325
  onClick: je,
1326
1326
  style: {
1327
- ...cn,
1327
+ ...sn,
1328
1328
  color: "var(--sa-background-error, #c9184a)",
1329
1329
  fontWeight: 500
1330
1330
  },
@@ -1388,9 +1388,9 @@ function Gc({
1388
1388
  }
1389
1389
  ),
1390
1390
  /* @__PURE__ */ d(Fr, { isShow: Z, onHide: Ze, children: [
1391
- /* @__PURE__ */ e(Wn, { children: "Confirmation Logout" }),
1391
+ /* @__PURE__ */ e(Bn, { children: "Confirmation Logout" }),
1392
1392
  /* @__PURE__ */ e(Er, { children: "Are you sure you want to end the session and exit the page?" }),
1393
- /* @__PURE__ */ e(Bn, { children: /* @__PURE__ */ e(f, { direction: "column", display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ d(de, { direction: "row", gap: "sm", align: "center", children: [
1393
+ /* @__PURE__ */ e(zn, { children: /* @__PURE__ */ e(f, { direction: "column", display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ d(de, { direction: "row", gap: "sm", align: "center", children: [
1394
1394
  /* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(_, { secondary: !0, onClick: Ze, children: "Cancel" }) }),
1395
1395
  /* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(_, { primary: !0, onClick: Ge, children: "Yes, Sure" }) })
1396
1396
  ] }) }) })
@@ -1520,7 +1520,7 @@ const Gt = Wr(
1520
1520
  children: t
1521
1521
  }
1522
1522
  )
1523
- ), sn = ({
1523
+ ), an = ({
1524
1524
  title: t,
1525
1525
  iconName: r,
1526
1526
  textColor: n,
@@ -1589,7 +1589,7 @@ const Gt = Wr(
1589
1589
  b,
1590
1590
  /* @__PURE__ */ e(vi, { separator: r, size: "md", children: t.map((k, x) => {
1591
1591
  const M = x === t.length - 1;
1592
- return k.to && !M ? /* @__PURE__ */ e(tn, { children: /* @__PURE__ */ e(l, { to: k.to, children: k.label }) }, x) : /* @__PURE__ */ e(tn, { currentPage: M, children: /* @__PURE__ */ e(Ci, { onClick: M ? void 0 : k.onClick, children: k.label }) }, x);
1592
+ return k.to && !M ? /* @__PURE__ */ e(rn, { children: /* @__PURE__ */ e(l, { to: k.to, children: k.label }) }, x) : /* @__PURE__ */ e(rn, { currentPage: M, children: /* @__PURE__ */ e(Ci, { onClick: M ? void 0 : k.onClick, children: k.label }) }, x);
1593
1593
  }) })
1594
1594
  ] });
1595
1595
  }, qc = (t) => {
@@ -1603,7 +1603,7 @@ const Gt = Wr(
1603
1603
  iconColor: c.iconColor,
1604
1604
  hoverIconColor: c.hoverIconColor
1605
1605
  }
1606
- ) : l ? /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(r, { to: l, replace: !0, style: { textDecoration: "none" }, children: /* @__PURE__ */ e(sn, { ...c }) }) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Gt, { onClick: i, children: /* @__PURE__ */ e(sn, { ...c }) }) });
1606
+ ) : l ? /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(r, { to: l, replace: !0, style: { textDecoration: "none" }, children: /* @__PURE__ */ e(an, { ...c }) }) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Gt, { onClick: i, children: /* @__PURE__ */ e(an, { ...c }) }) });
1607
1607
  }, ur = [
1608
1608
  // brand (blue)
1609
1609
  {
@@ -1648,7 +1648,7 @@ const Gt = Wr(
1648
1648
  activeShadow: "rgba(255, 117, 143, 0.25)"
1649
1649
  }
1650
1650
  ];
1651
- function an(t, r, n) {
1651
+ function dn(t, r, n) {
1652
1652
  return {
1653
1653
  display: "flex",
1654
1654
  alignItems: "center",
@@ -1664,7 +1664,7 @@ function an(t, r, n) {
1664
1664
  transition: "box-shadow 0.2s ease, transform 0.2s ease, background-color 0.15s ease, border-color 0.15s ease"
1665
1665
  };
1666
1666
  }
1667
- const dn = {
1667
+ const un = {
1668
1668
  fontSize: "11px",
1669
1669
  fontWeight: 500,
1670
1670
  textAlign: "center",
@@ -1673,7 +1673,7 @@ const dn = {
1673
1673
  color: "var(--sa-background-primary, #ffffff)",
1674
1674
  lineHeight: "1.3",
1675
1675
  maxWidth: "80px"
1676
- }, un = {
1676
+ }, hn = {
1677
1677
  display: "flex",
1678
1678
  flexDirection: "column",
1679
1679
  alignItems: "center",
@@ -1719,10 +1719,10 @@ function Ui({
1719
1719
  onClick: () => s(null),
1720
1720
  onMouseEnter: () => c("all"),
1721
1721
  onMouseLeave: () => c(void 0),
1722
- style: un,
1722
+ style: hn,
1723
1723
  children: [
1724
- /* @__PURE__ */ e("div", { style: an(o === null, l === "all", a), children: /* @__PURE__ */ e("div", { style: { color: a.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(B, { name: "Grid", size: "lg", style: { width: 32, height: 32 } }) }) }),
1725
- /* @__PURE__ */ e("span", { style: dn, children: "Semua" })
1724
+ /* @__PURE__ */ e("div", { style: dn(o === null, l === "all", a), children: /* @__PURE__ */ e("div", { style: { color: a.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(B, { name: "Grid", size: "lg", style: { width: 32, height: 32 } }) }) }),
1725
+ /* @__PURE__ */ e("span", { style: un, children: "Semua" })
1726
1726
  ]
1727
1727
  }
1728
1728
  ),
@@ -1735,10 +1735,10 @@ function Ui({
1735
1735
  onClick: () => s(u.id),
1736
1736
  onMouseEnter: () => c(u.id),
1737
1737
  onMouseLeave: () => c(void 0),
1738
- style: un,
1738
+ style: hn,
1739
1739
  children: [
1740
- /* @__PURE__ */ e("div", { style: an(p, g, k), children: /* @__PURE__ */ e("div", { style: { color: k.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(B, { name: b, size: "lg", style: { width: 32, height: 32 } }) }) }),
1741
- /* @__PURE__ */ e("span", { style: dn, children: u.name })
1740
+ /* @__PURE__ */ e("div", { style: dn(p, g, k), children: /* @__PURE__ */ e("div", { style: { color: k.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(B, { name: b, size: "lg", style: { width: 32, height: 32 } }) }) }),
1741
+ /* @__PURE__ */ e("span", { style: un, children: u.name })
1742
1742
  ]
1743
1743
  },
1744
1744
  u.id
@@ -2185,7 +2185,7 @@ const Ji = (t, r) => {
2185
2185
  }, Qc = Xe(Ki), eo = {
2186
2186
  icon: "Cross",
2187
2187
  title: ""
2188
- }, to = "calc(100vw - 16px)", hn = (t) => t == null ? void 0 : `min(${typeof t == "number" ? `${t}px` : t}, ${to})`, ro = Wr(
2188
+ }, to = "calc(100vw - 16px)", fn = (t) => t == null ? void 0 : `min(${typeof t == "number" ? `${t}px` : t}, ${to})`, ro = Wr(
2189
2189
  ({
2190
2190
  onHide: t,
2191
2191
  show: r,
@@ -2197,9 +2197,9 @@ const Ji = (t, r) => {
2197
2197
  minWidth: s = "357px",
2198
2198
  maxWidth: a = "357px"
2199
2199
  }, u) => {
2200
- const m = hn(c ?? s), p = hn(c ?? a);
2200
+ const m = fn(c ?? s), p = fn(c ?? a);
2201
2201
  return /* @__PURE__ */ e(
2202
- zn,
2202
+ An,
2203
2203
  {
2204
2204
  blur: n,
2205
2205
  isShow: r,
@@ -2458,7 +2458,7 @@ const Ji = (t, r) => {
2458
2458
  }) => {
2459
2459
  const i = n.get(r) || void 0, l = i && typeof i == "string" ? JSON.parse(i) : void 0, c = l ? l[t] : void 0;
2460
2460
  return o === "id" && c ? JSON.parse(c).id : o === "label" && c ? JSON.parse(c).label : o === "value" && c ? JSON.parse(c).value : c;
2461
- }, Ar = (t, r, n) => {
2461
+ }, Rr = (t, r, n) => {
2462
2462
  const o = r.get(n || "filter") || void 0, i = o && typeof o == "string" ? JSON.parse(o) : void 0;
2463
2463
  return i ? i[t] : void 0;
2464
2464
  }, Kc = ({
@@ -2551,7 +2551,7 @@ const Ji = (t, r) => {
2551
2551
  }) => {
2552
2552
  const S = (g == null ? void 0 : g.isShowLabel) ?? !0, [A, C] = V(!1), [F, I] = V(0), R = () => {
2553
2553
  I((j) => j + 1);
2554
- }, { searchParams: W, setSearchParams: E, getQueryParam: Z } = $e(), Q = Pt(W.toString()), P = Ar(t, W, s) || "", [K, N] = V(P), Y = Z(s), $ = !!(Y && !(() => {
2554
+ }, { searchParams: W, setSearchParams: E, getQueryParam: Z } = $e(), Q = Pt(W.toString()), P = Rr(t, W, s) || "", [K, N] = V(P), Y = Z(s), $ = !!(Y && !(() => {
2555
2555
  if (Y)
2556
2556
  try {
2557
2557
  const j = JSON.parse(Y);
@@ -2745,7 +2745,7 @@ const Ji = (t, r) => {
2745
2745
  }
2746
2746
  );
2747
2747
  }, Eo = (t) => t === "checkbox-multiple" ? "dropdown-multiple" : t === "radio" ? "dropdown" : t === "date-compact" ? "date" : t;
2748
- function Rr({
2748
+ function Ir({
2749
2749
  configs: t,
2750
2750
  filterKey: r = "filter",
2751
2751
  activeFilterKey: n = "filters",
@@ -3041,7 +3041,7 @@ function Wo(t, r) {
3041
3041
  }
3042
3042
  return !n || typeof n != "object" ? t : (delete n[r], Object.keys(n).length > 0 ? JSON.stringify(n) : void 0);
3043
3043
  }
3044
- function fn(t, r, n) {
3044
+ function mn(t, r, n) {
3045
3045
  const o = t[r];
3046
3046
  if (o == null) return;
3047
3047
  const i = Wo(o, n);
@@ -3070,7 +3070,7 @@ function Bo({
3070
3070
  if (n.forEach((k) => {
3071
3071
  const x = s.get(k);
3072
3072
  x != null && (b[k] = x);
3073
- }), c || fn(b, i, l), Object.keys(b).length === 0) {
3073
+ }), c || mn(b, i, l), Object.keys(b).length === 0) {
3074
3074
  m.current && r.remove(a);
3075
3075
  return;
3076
3076
  }
@@ -3087,7 +3087,7 @@ function Bo({
3087
3087
  const p = q(() => {
3088
3088
  if (!a) return null;
3089
3089
  const b = r.get(a);
3090
- return !b || Object.keys(b).length === 0 || !c && (fn(b, i, l), Object.keys(b).length === 0) ? null : b;
3090
+ return !b || Object.keys(b).length === 0 || !c && (mn(b, i, l), Object.keys(b).length === 0) ? null : b;
3091
3091
  }, [a, r, c, i, l]), g = q(() => {
3092
3092
  a && r.remove(a);
3093
3093
  }, [a, r]);
@@ -3263,7 +3263,7 @@ const Io = ({
3263
3263
  ] }), Oo = (t) => {
3264
3264
  const r = new Date(t);
3265
3265
  return r.setHours(0, 0, 0, 0), r;
3266
- }, mn = (t, r, n) => {
3266
+ }, gn = (t, r, n) => {
3267
3267
  const o = new Date(t);
3268
3268
  return n === "day" ? o.setDate(o.getDate() + r) : n === "week" ? o.setDate(o.getDate() + r * 7) : n === "month" ? o.setMonth(o.getMonth() + r) : o.setFullYear(o.getFullYear() + r), o;
3269
3269
  }, Zn = (t) => {
@@ -3273,8 +3273,8 @@ const Io = ({
3273
3273
  return t.period === "week" ? (o.setDate(r.getDate() - r.getDay()), i.setDate(o.getDate() + 6)) : t.period === "month" ? (o.setDate(1), i.setMonth(i.getMonth() + 1, 0)) : t.period === "year" && (o.setMonth(0, 1), i.setMonth(11, 31)), { from: o, to: i };
3274
3274
  }
3275
3275
  const n = t.count ?? 1;
3276
- return t.direction === "past" ? { from: mn(r, -n, t.period), to: r } : { from: r, to: mn(r, n, t.period) };
3277
- }, gn = 24, Gn = (t) => t.length > gn ? `${t.slice(0, gn)}...` : t, Vt = (t) => t.toLocaleDateString(void 0, {
3276
+ return t.direction === "past" ? { from: gn(r, -n, t.period), to: r } : { from: r, to: gn(r, n, t.period) };
3277
+ }, pn = 24, Gn = (t) => t.length > pn ? `${t.slice(0, pn)}...` : t, Vt = (t) => t.toLocaleDateString(void 0, {
3278
3278
  day: "2-digit",
3279
3279
  month: "short",
3280
3280
  year: "numeric"
@@ -3668,7 +3668,7 @@ const Io = ({
3668
3668
  "relative-preview"
3669
3669
  )
3670
3670
  ] });
3671
- }, pn = 18, qo = (t) => t.length > pn ? `${t.slice(0, pn)}...` : t, Uo = ({
3671
+ }, yn = 18, qo = (t) => t.length > yn ? `${t.slice(0, yn)}...` : t, Uo = ({
3672
3672
  field: t,
3673
3673
  value: r,
3674
3674
  onChange: n,
@@ -3771,7 +3771,7 @@ const Io = ({
3771
3771
  }
3772
3772
  ) })
3773
3773
  ] });
3774
- }, yn = 18, Jo = (t) => t.length > yn ? `${t.slice(0, yn)}...` : t, bn = ({ checked: t, indeterminate: r }) => /* @__PURE__ */ e("span", { style: { pointerEvents: "none", display: "inline-flex" }, children: /* @__PURE__ */ e(
3774
+ }, bn = 18, Jo = (t) => t.length > bn ? `${t.slice(0, bn)}...` : t, xn = ({ checked: t, indeterminate: r }) => /* @__PURE__ */ e("span", { style: { pointerEvents: "none", display: "inline-flex" }, children: /* @__PURE__ */ e(
3775
3775
  ct,
3776
3776
  {
3777
3777
  size: "sm",
@@ -3842,7 +3842,7 @@ const Io = ({
3842
3842
  selected: s,
3843
3843
  onClick: m,
3844
3844
  startIcon: /* @__PURE__ */ e(
3845
- bn,
3845
+ xn,
3846
3846
  {
3847
3847
  checked: s || a,
3848
3848
  indeterminate: a
@@ -3857,7 +3857,7 @@ const Io = ({
3857
3857
  closeOnSelect: !1,
3858
3858
  selected: l.has(g.value),
3859
3859
  onClick: () => u(g),
3860
- startIcon: /* @__PURE__ */ e(bn, { checked: l.has(g.value) }),
3860
+ startIcon: /* @__PURE__ */ e(xn, { checked: l.has(g.value) }),
3861
3861
  children: g.label
3862
3862
  },
3863
3863
  g.value
@@ -3908,7 +3908,7 @@ const Io = ({
3908
3908
  },
3909
3909
  c
3910
3910
  );
3911
- }) }), xn = (t) => `${t} Rows`, Yo = ({
3911
+ }) }), vn = (t) => `${t} Rows`, Yo = ({
3912
3912
  pagination: t,
3913
3913
  pageKey: r = "page",
3914
3914
  perPageKey: n = "perPage",
@@ -3940,7 +3940,7 @@ const Io = ({
3940
3940
  size: "sm",
3941
3941
  iconRight: /* @__PURE__ */ e(B, { name: "ChevronSmallDown" }),
3942
3942
  "aria-label": "Rows per page",
3943
- children: xn(g)
3943
+ children: vn(g)
3944
3944
  }
3945
3945
  ) }),
3946
3946
  /* @__PURE__ */ e(He, { children: /* @__PURE__ */ e(Ve, { children: o.map((A) => /* @__PURE__ */ e(
@@ -3948,7 +3948,7 @@ const Io = ({
3948
3948
  {
3949
3949
  selected: A === g,
3950
3950
  onClick: () => k(String(A)),
3951
- children: xn(A)
3951
+ children: vn(A)
3952
3952
  },
3953
3953
  A
3954
3954
  )) }) })
@@ -3999,7 +3999,7 @@ const Ko = 240, Un = ({
3999
3999
  shortcut: i = "/",
4000
4000
  collapsible: l = !0
4001
4001
  }) => {
4002
- const { searchParams: c, setSearchParams: s, searchQueries: a } = $e(), u = Ar(t, c, r) || "", [m, p] = V(!l || !!u), [g, b] = V(l && !u), [k, x] = V(u), M = wi(k, 350), S = ce(null);
4002
+ const { searchParams: c, setSearchParams: s, searchQueries: a } = $e(), u = Rr(t, c, r) || "", [m, p] = V(!l || !!u), [g, b] = V(l && !u), [k, x] = V(u), M = wi(k, 350), S = ce(null);
4003
4003
  J(() => {
4004
4004
  x(u), u && p(!0);
4005
4005
  }, [u]), J(() => {
@@ -4339,7 +4339,7 @@ const Ko = 240, Un = ({
4339
4339
  removeFilter: p
4340
4340
  }) => {
4341
4341
  const g = o.length;
4342
- return /* @__PURE__ */ e(zn, { position: "bottom", isShow: t, onHide: r, children: /* @__PURE__ */ d(
4342
+ return /* @__PURE__ */ e(An, { position: "bottom", isShow: t, onHide: r, children: /* @__PURE__ */ d(
4343
4343
  f,
4344
4344
  {
4345
4345
  direction: "column",
@@ -4776,7 +4776,7 @@ const Ko = 240, Un = ({
4776
4776
  setValue: oe,
4777
4777
  clearValue: ve,
4778
4778
  clearAll: Ce
4779
- } = Rr({
4779
+ } = Ir({
4780
4780
  configs: r,
4781
4781
  filterKey: n,
4782
4782
  activeFilterKey: o,
@@ -5006,7 +5006,7 @@ const Ko = 240, Un = ({
5006
5006
  default:
5007
5007
  return;
5008
5008
  }
5009
- }, vn = (t, r) => {
5009
+ }, Cn = (t, r) => {
5010
5010
  if (t == null || t === "") return r;
5011
5011
  const n = Number(t);
5012
5012
  return Number.isFinite(n) && n > 0 ? n : r;
@@ -5022,7 +5022,7 @@ const Ko = 240, Un = ({
5022
5022
  defaultPerPage: a = 10,
5023
5023
  paramKeys: u,
5024
5024
  serialize: m
5025
- } = t, { activeKeys: p, configByKey: g, hasActiveFilter: b, getValue: k } = Rr({
5025
+ } = t, { activeKeys: p, configByKey: g, hasActiveFilter: b, getValue: k } = Ir({
5026
5026
  configs: r,
5027
5027
  filterKey: n,
5028
5028
  activeFilterKey: o,
@@ -5030,9 +5030,9 @@ const Ko = 240, Un = ({
5030
5030
  searchKey: c
5031
5031
  }), { searchParams: x } = $e(), M = x.toString();
5032
5032
  return ge(() => {
5033
- const A = {}, C = {}, F = vn(x.get(i), s), I = vn(x.get(l), a);
5033
+ const A = {}, C = {}, F = Cn(x.get(i), s), I = Cn(x.get(l), a);
5034
5034
  A[(u == null ? void 0 : u.page) ?? "page"] = F, A[(u == null ? void 0 : u.perPage) ?? "perPage"] = I;
5035
- const R = Ar(c, x, n) || "";
5035
+ const R = Rr(c, x, n) || "";
5036
5036
  R && (A[(u == null ? void 0 : u.search) ?? "search"] = R);
5037
5037
  let W = !1;
5038
5038
  for (const E of p) {
@@ -5077,7 +5077,7 @@ const Ko = 240, Un = ({
5077
5077
  pageKey: o,
5078
5078
  searchKey: i
5079
5079
  }) => {
5080
- const { configByKey: l, getValue: c, setValue: s, removeFilter: a, clearAll: u, hasActiveFilter: m } = Rr({
5080
+ const { configByKey: l, getValue: c, setValue: s, removeFilter: a, clearAll: u, hasActiveFilter: m } = Ir({
5081
5081
  configs: t,
5082
5082
  filterKey: r,
5083
5083
  activeFilterKey: n,
@@ -5692,7 +5692,7 @@ const Ko = 240, Un = ({
5692
5692
  /* @__PURE__ */ e("path", { d: t ? "M7 11V7a5 5 0 0 1 10 0v4" : "M7 11V7a5 5 0 0 1 9.9-1" })
5693
5693
  ]
5694
5694
  }
5695
- ), pr = "var(--sa-background-primary, #ffffff)", Cn = "var(--sa-background-primary-inverse, #f8f8f8)", gl = ({
5695
+ ), pr = "var(--sa-background-primary, #ffffff)", wn = "var(--sa-background-primary-inverse, #f8f8f8)", gl = ({
5696
5696
  columns: t,
5697
5697
  records: r,
5698
5698
  handleDetail: n,
@@ -5786,7 +5786,7 @@ const Ko = 240, Un = ({
5786
5786
  };
5787
5787
  return /* @__PURE__ */ e("div", { ref: je, children: /* @__PURE__ */ d(Tt, { fullWidth: !0, children: [
5788
5788
  /* @__PURE__ */ e(
5789
- An,
5789
+ Rn,
5790
5790
  {
5791
5791
  style: {
5792
5792
  height: "40px",
@@ -5951,8 +5951,8 @@ const Ko = 240, Un = ({
5951
5951
  },
5952
5952
  onMouseEnter: (z) => {
5953
5953
  const O = z.currentTarget;
5954
- O.style.backgroundColor = Cn, Array.from(O.querySelectorAll("td")).forEach((G) => {
5955
- G.style.position === "sticky" && (G.style.backgroundColor = Cn);
5954
+ O.style.backgroundColor = wn, Array.from(O.querySelectorAll("td")).forEach((G) => {
5955
+ G.style.position === "sticky" && (G.style.backgroundColor = wn);
5956
5956
  });
5957
5957
  },
5958
5958
  onMouseLeave: (z) => {
@@ -6095,7 +6095,7 @@ function yl(t) {
6095
6095
  t
6096
6096
  );
6097
6097
  }
6098
- const os = yl(pl), wn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)", bl = ({
6098
+ const os = yl(pl), Dn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)", bl = ({
6099
6099
  sortDir: t,
6100
6100
  frozen: r
6101
6101
  }) => t === "asc" ? /* @__PURE__ */ e(B, { name: "ChevronSmallUp" }) : t === "desc" ? /* @__PURE__ */ e(B, { name: "ChevronSmallDown" }) : r ? /* @__PURE__ */ e(B, { name: "LockOn", size: "xs" }) : /* @__PURE__ */ e(B, { name: "Filter", size: "xs" }), Rt = ({ icon: t, label: r, active: n, danger: o, onClick: i }) => {
@@ -6146,7 +6146,7 @@ const os = yl(pl), wn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)"
6146
6146
  );
6147
6147
  J(() => {
6148
6148
  if (u && p.current) {
6149
- const M = p.current.getBoundingClientRect(), S = M.left + wn > window.innerWidth;
6149
+ const M = p.current.getBoundingClientRect(), S = M.left + Dn > window.innerWidth;
6150
6150
  k({
6151
6151
  top: M.bottom + 6,
6152
6152
  ...S ? { right: window.innerWidth - M.right } : { left: M.left }
@@ -6199,7 +6199,7 @@ const os = yl(pl), wn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)"
6199
6199
  position: "fixed",
6200
6200
  top: `${b.top}px`,
6201
6201
  ...b.left !== void 0 ? { left: `${b.left}px` } : { right: `${b.right}px` },
6202
- minWidth: wn,
6202
+ minWidth: Dn,
6203
6203
  backgroundColor: "var(--sa-background-primary, #ffffff)",
6204
6204
  border: yr,
6205
6205
  borderRadius: "var(--sa-radii-sm, 6px)",
@@ -6253,15 +6253,15 @@ const os = yl(pl), wn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)"
6253
6253
  }
6254
6254
  )
6255
6255
  ] });
6256
- }, wt = "1px solid var(--sa-border-subtle, #0b120e24)", vl = "var(--sa-text-subtle, #8c8f97)", pt = "var(--sa-background-neutral, #f0f1f2)", Dn = "2px 0 4px -2px rgba(0,0,0,0.15)", Dt = 40, br = "var(--sa-background-brand-subtlest)", It = {
6256
+ }, wt = "1px solid var(--sa-border-subtle, #0b120e24)", vl = "var(--sa-text-subtle, #8c8f97)", pt = "var(--sa-background-neutral, #f0f1f2)", kn = "2px 0 4px -2px rgba(0,0,0,0.15)", Dt = 40, br = "var(--sa-background-brand-subtlest)", It = {
6257
6257
  display: "block",
6258
6258
  overflow: "hidden",
6259
6259
  textOverflow: "ellipsis",
6260
6260
  whiteSpace: "nowrap"
6261
- }, kn = "sa-table-layout-styles", Cl = () => {
6262
- if (typeof document > "u" || document.getElementById(kn)) return;
6261
+ }, Sn = "sa-table-layout-styles", Cl = () => {
6262
+ if (typeof document > "u" || document.getElementById(Sn)) return;
6263
6263
  const t = document.createElement("style");
6264
- t.id = kn, t.textContent = `
6264
+ t.id = Sn, t.textContent = `
6265
6265
  .sa-table-layout tbody td {
6266
6266
  transition: background-color 0.15s ease;
6267
6267
  background-color: var(--sa-tl-bg, transparent);
@@ -6426,9 +6426,9 @@ const os = yl(pl), wn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)"
6426
6426
  if ((xe == null ? void 0 : xe[v]) != null) return xe[v];
6427
6427
  if (y.width != null) return y.width;
6428
6428
  if ((Se == null ? void 0 : Se[v]) != null) return Se[v];
6429
- }, xt = (y, v) => typeof y.width == "number" ? y.width : Se == null ? void 0 : Se[v], Jt = we.frozenKey && !Ue && !H ? ke.findIndex((y) => y.key === we.frozenKey) : -1, Nr = (y) => y <= Jt, $r = Z ? Dt : 0, jr = (y) => {
6430
- if (!Se) return $r;
6431
- let v = $r;
6429
+ }, xt = (y, v) => typeof y.width == "number" ? y.width : Se == null ? void 0 : Se[v], Jt = we.frozenKey && !Ue && !H ? ke.findIndex((y) => y.key === we.frozenKey) : -1, $r = (y) => y <= Jt, jr = Z ? Dt : 0, _r = (y) => {
6430
+ if (!Se) return jr;
6431
+ let v = jr;
6432
6432
  for (let L = 0; L < y; L++) v += Se[L] ?? 0;
6433
6433
  return v;
6434
6434
  }, Qt = ce(null), [Xn, Kn] = V("100vh");
@@ -6444,35 +6444,35 @@ const os = yl(pl), wn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)"
6444
6444
  };
6445
6445
  return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
6446
6446
  }, [k]);
6447
- const et = (y, v) => n ? n(y, v) : v, Yt = Q !== void 0, [_r, ei] = V(
6447
+ const et = (y, v) => n ? n(y, v) : v, Yt = Q !== void 0, [Pr, ei] = V(
6448
6448
  () => new Set(P ?? [])
6449
6449
  ), tt = ge(
6450
- () => Yt ? new Set(Q) : _r,
6451
- [Yt, Q, _r]
6450
+ () => Yt ? new Set(Q) : Pr,
6451
+ [Yt, Q, Pr]
6452
6452
  );
6453
6453
  J(() => {
6454
6454
  Z && !n && process.env.NODE_ENV !== "production" && console.warn(
6455
6455
  "[@starasia/admin] TableLayout: `selectable` tanpa `getRowKey` — key default (index) membuat seleksi menempel ke POSISI baris, bukan datanya. Beri `getRowKey` yang stabil (mis. r => r.id)."
6456
6456
  );
6457
6457
  }, [Z, !n]);
6458
- const Pr = (y) => {
6458
+ const Zr = (y) => {
6459
6459
  if (Yt || ei(y), K) {
6460
6460
  const v = G.filter((L, U) => y.has(et(L, U)));
6461
6461
  K(Array.from(y), v);
6462
6462
  }
6463
6463
  }, Xt = (y, v) => Z && (N ? N(y, v) : !0), Kt = (y) => {
6464
6464
  const v = new Set(tt);
6465
- v.has(y) ? v.delete(y) : v.add(y), Pr(v);
6465
+ v.has(y) ? v.delete(y) : v.add(y), Zr(v);
6466
6466
  }, gt = ge(
6467
6467
  () => Z ? G.map((y, v) => ({ row: y, i: v, key: et(y, v) })).filter(
6468
6468
  ({ row: y, i: v }) => N ? N(y, v) : !0
6469
6469
  ).map(({ key: y }) => y) : [],
6470
6470
  // eslint-disable-next-line react-hooks/exhaustive-deps
6471
6471
  [Z, G, N, n]
6472
- ), Zr = gt.filter((y) => tt.has(y)), er = gt.length > 0 && Zr.length === gt.length, Gr = Zr.length > 0 && !er, ti = () => {
6472
+ ), Gr = gt.filter((y) => tt.has(y)), er = gt.length > 0 && Gr.length === gt.length, qr = Gr.length > 0 && !er, ti = () => {
6473
6473
  const y = new Set(tt);
6474
- er ? gt.forEach((v) => y.delete(v)) : gt.forEach((v) => y.add(v)), Pr(y);
6475
- }, tr = (y, v, L) => y.render ? y.render(v, L, G) : Dl(v, y.accessor), rr = ke.length + (Z ? 1 : 0) + ($ ? 1 : 0), qr = ["80%", "55%", "70%", "45%", "90%", "60%"], ri = (y, v) => qr[(y * 7 + v * 3) % qr.length], ni = (y, v) => /* @__PURE__ */ e(Ke, { height: 14, width: ri(y, v), borderRadius: "rounded-sm" }), ii = Array.from({ length: W }, (y, v) => /* @__PURE__ */ d(Ne, { children: [
6474
+ er ? gt.forEach((v) => y.delete(v)) : gt.forEach((v) => y.add(v)), Zr(y);
6475
+ }, tr = (y, v, L) => y.render ? y.render(v, L, G) : Dl(v, y.accessor), rr = ke.length + (Z ? 1 : 0) + ($ ? 1 : 0), Ur = ["80%", "55%", "70%", "45%", "90%", "60%"], ri = (y, v) => Ur[(y * 7 + v * 3) % Ur.length], ni = (y, v) => /* @__PURE__ */ e(Ke, { height: 14, width: ri(y, v), borderRadius: "rounded-sm" }), ii = Array.from({ length: W }, (y, v) => /* @__PURE__ */ d(Ne, { children: [
6476
6476
  Z && /* @__PURE__ */ e(Me, { style: { width: Dt, padding: 0 }, children: /* @__PURE__ */ e("div", { style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(Ke, { height: 14, width: 14, borderRadius: "rounded-sm" }) }) }),
6477
6477
  ke.map(({ col: L, key: U }, te) => /* @__PURE__ */ e(
6478
6478
  Me,
@@ -6494,7 +6494,7 @@ const os = yl(pl), wn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)"
6494
6494
  }), Mt = (y) => (E ?? []).filter((v) => {
6495
6495
  var L;
6496
6496
  return !((L = v.hidden) != null && L.call(v, y));
6497
- }), Ur = {
6497
+ }), Jr = {
6498
6498
  position: "absolute",
6499
6499
  right: 0,
6500
6500
  top: 0,
@@ -6529,7 +6529,7 @@ const os = yl(pl), wn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)"
6529
6529
  "div",
6530
6530
  {
6531
6531
  className: "sa-tl-row-actions",
6532
- style: Ur,
6532
+ style: Jr,
6533
6533
  onClick: (le) => le.stopPropagation(),
6534
6534
  children: /* @__PURE__ */ e(Ie, { label: "Aksi lainnya", position: "top", children: /* @__PURE__ */ e(
6535
6535
  _,
@@ -6550,7 +6550,7 @@ const os = yl(pl), wn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)"
6550
6550
  }
6551
6551
  );
6552
6552
  }
6553
- return /* @__PURE__ */ e("div", { className: "sa-tl-row-actions", style: Ur, children: L.map((te) => /* @__PURE__ */ e(st.Fragment, { children: Wt(te, y, v) }, te.key)) });
6553
+ return /* @__PURE__ */ e("div", { className: "sa-tl-row-actions", style: Jr, children: L.map((te) => /* @__PURE__ */ e(st.Fragment, { children: Wt(te, y, v) }, te.key)) });
6554
6554
  }, si = (y, v) => {
6555
6555
  const L = Mt(y);
6556
6556
  return L.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 6, flexWrap: "wrap", paddingTop: 8, marginTop: 8, borderTop: wt }, children: L.map((U) => /* @__PURE__ */ e(st.Fragment, { children: Wt(U, y, v, { showLabel: !0, size: "sm" }) }, U.key)) }) : null;
@@ -6558,7 +6558,7 @@ const os = yl(pl), wn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)"
6558
6558
  const L = Mt(y);
6559
6559
  return L.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 4, paddingRight: 8, flexShrink: 0 }, children: L.map((U) => /* @__PURE__ */ e(st.Fragment, { children: Wt(U, y, v, { showLabel: !1 }) }, U.key)) }) : null;
6560
6560
  }, nr = (y, v) => {
6561
- const { col: L, key: U } = y, te = ft.get(U) ?? 0, ae = Nr(te), le = ae && te === Jt, ye = (Fe == null ? void 0 : Fe.key) === U ? Fe.direction : null, be = m && !L.disableMenu ? /* @__PURE__ */ e(
6561
+ const { col: L, key: U } = y, te = ft.get(U) ?? 0, ae = $r(te), le = ae && te === Jt, ye = (Fe == null ? void 0 : Fe.key) === U ? Fe.direction : null, be = m && !L.disableMenu ? /* @__PURE__ */ e(
6562
6562
  xl,
6563
6563
  {
6564
6564
  active: !!ye || ae,
@@ -6603,10 +6603,10 @@ const os = yl(pl), wn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)"
6603
6603
  width: mt(L, te),
6604
6604
  position: "sticky",
6605
6605
  top: (v == null ? void 0 : v.top) ?? 0,
6606
- left: ae ? jr(te) : void 0,
6606
+ left: ae ? _r(te) : void 0,
6607
6607
  zIndex: ae ? 3 : 2,
6608
6608
  backgroundColor: pt,
6609
- boxShadow: le ? Dn : void 0
6609
+ boxShadow: le ? kn : void 0
6610
6610
  },
6611
6611
  children: /* @__PURE__ */ e(
6612
6612
  "div",
@@ -6636,7 +6636,7 @@ const os = yl(pl), wn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)"
6636
6636
  y.push(nr(L, te > 1 ? { colSpan: te } : void 0)), v += te;
6637
6637
  }
6638
6638
  return y;
6639
- }, Jr = (y) => /* @__PURE__ */ e(
6639
+ }, Qr = (y) => /* @__PURE__ */ e(
6640
6640
  ht,
6641
6641
  {
6642
6642
  rowSpan: y == null ? void 0 : y.rowSpan,
@@ -6663,8 +6663,8 @@ const os = yl(pl), wn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)"
6663
6663
  ct,
6664
6664
  {
6665
6665
  size: "sm",
6666
- variant: Gr ? "indeterminate" : "select",
6667
- checked: er || Gr,
6666
+ variant: qr ? "indeterminate" : "select",
6667
+ checked: er || qr,
6668
6668
  disabled: gt.length === 0,
6669
6669
  onChange: ti,
6670
6670
  "aria-label": "Pilih semua baris di halaman ini"
@@ -6715,7 +6715,7 @@ const os = yl(pl), wn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)"
6715
6715
  }, ir = ke.filter((y) => !y.col.hideOnMobile), or = ir.find((y) => y.col.primary) ?? ir[0], hi = ir.filter((y) => y !== or), fi = (y) => ve((v) => {
6716
6716
  const L = new Set(v);
6717
6717
  return L.has(y) ? L.delete(y) : L.add(y), L;
6718
- }), Qr = (y, v) => hi.map(({ col: L, key: U }) => {
6718
+ }), Yr = (y, v) => hi.map(({ col: L, key: U }) => {
6719
6719
  const te = tr(L, y, v), ae = typeof te == "string" || typeof te == "number" ? /* @__PURE__ */ e(
6720
6720
  D,
6721
6721
  {
@@ -6790,7 +6790,7 @@ const os = yl(pl), wn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)"
6790
6790
  `sa-tl-sk-card-${v}`
6791
6791
  ))
6792
6792
  }
6793
- ), Yr = /* @__PURE__ */ e(
6793
+ ), Xr = /* @__PURE__ */ e(
6794
6794
  f,
6795
6795
  {
6796
6796
  fullWidth: !0,
@@ -6803,7 +6803,7 @@ const os = yl(pl), wn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)"
6803
6803
  },
6804
6804
  children: I == null ? void 0 : I.content
6805
6805
  }
6806
- ), gi = R ? mi : G.length === 0 ? Yr : x === "expand" ? /* @__PURE__ */ e(f, { style: { display: "flex", flexDirection: "column" }, children: G.map((y, v) => {
6806
+ ), gi = R ? mi : G.length === 0 ? Xr : x === "expand" ? /* @__PURE__ */ e(f, { style: { display: "flex", flexDirection: "column" }, children: G.map((y, v) => {
6807
6807
  const L = et(y, v), U = oe.has(L), ae = Z && tt.has(L) ? br : Ot(o == null ? void 0 : o(y, v));
6808
6808
  return /* @__PURE__ */ d(
6809
6809
  "div",
@@ -6877,7 +6877,7 @@ const os = yl(pl), wn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)"
6877
6877
  flexDirection: "column",
6878
6878
  gap: 6
6879
6879
  },
6880
- children: Qr(y, v)
6880
+ children: Yr(y, v)
6881
6881
  }
6882
6882
  )
6883
6883
  ]
@@ -6918,7 +6918,7 @@ const os = yl(pl), wn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)"
6918
6918
  // Baris non-selectable (atau selectable=false): tanpa checkbox.
6919
6919
  lr(y, v)
6920
6920
  ),
6921
- Qr(y, v),
6921
+ Yr(y, v),
6922
6922
  $ && si(y, v)
6923
6923
  ]
6924
6924
  },
@@ -6926,7 +6926,7 @@ const os = yl(pl), wn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)"
6926
6926
  );
6927
6927
  })
6928
6928
  }
6929
- ), pi = l && ue && Se !== void 0, Xr = c === "fixed" && !l && (ue ? Se !== void 0 : !0), yi = Xr && !ue, Bt = C && C.length > 0 ? C.map((y, v) => /* @__PURE__ */ e(Ne, { children: y.cells.map((L, U) => /* @__PURE__ */ e(
6929
+ ), pi = l && ue && Se !== void 0, Kr = c === "fixed" && !l && (ue ? Se !== void 0 : !0), yi = Kr && !ue, Bt = C && C.length > 0 ? C.map((y, v) => /* @__PURE__ */ e(Ne, { children: y.cells.map((L, U) => /* @__PURE__ */ e(
6930
6930
  Me,
6931
6931
  {
6932
6932
  colSpan: L.colSpan,
@@ -6942,7 +6942,7 @@ const os = yl(pl), wn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)"
6942
6942
  fullWidth: !0,
6943
6943
  size: i,
6944
6944
  resizable: pi,
6945
- style: Xr ? { tableLayout: "fixed" } : void 0,
6945
+ style: Kr ? { tableLayout: "fixed" } : void 0,
6946
6946
  onWidthsChange: ze ? ie : void 0,
6947
6947
  children: [
6948
6948
  yi && /* @__PURE__ */ d("colgroup", { children: [
@@ -6950,9 +6950,9 @@ const os = yl(pl), wn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)"
6950
6950
  ke.map(({ col: y, key: v }, L) => /* @__PURE__ */ e("col", { style: { width: mt(y, L) } }, `col-${v}`)),
6951
6951
  $ && /* @__PURE__ */ e("col", { style: { width: 1 } })
6952
6952
  ] }),
6953
- /* @__PURE__ */ e(An, { ref: Ae, children: Ue ? /* @__PURE__ */ d(re, { children: [
6953
+ /* @__PURE__ */ e(Rn, { ref: Ae, children: Ue ? /* @__PURE__ */ d(re, { children: [
6954
6954
  /* @__PURE__ */ d(Ne, { children: [
6955
- Z && Jr({ rowSpan: 2 }),
6955
+ Z && Qr({ rowSpan: 2 }),
6956
6956
  it.map(
6957
6957
  (y) => y.isGroup ? /* @__PURE__ */ e(
6958
6958
  ht,
@@ -6991,7 +6991,7 @@ const os = yl(pl), wn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)"
6991
6991
  (y) => y.isGroup ? y.leaves.map((v) => nr(v, { top: lt })) : []
6992
6992
  ) })
6993
6993
  ] }) : /* @__PURE__ */ d(Ne, { children: [
6994
- Z && Jr(),
6994
+ Z && Qr(),
6995
6995
  di(),
6996
6996
  $ && /* @__PURE__ */ e(
6997
6997
  ht,
@@ -7009,7 +7009,7 @@ const os = yl(pl), wn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)"
7009
7009
  }
7010
7010
  )
7011
7011
  ] }) }),
7012
- /* @__PURE__ */ e(wr, { children: R ? ii : G.length === 0 ? /* @__PURE__ */ e(Ne, { children: /* @__PURE__ */ e(Me, { colSpan: rr, children: Yr }) }) : /* @__PURE__ */ d(re, { children: [
7012
+ /* @__PURE__ */ e(wr, { children: R ? ii : G.length === 0 ? /* @__PURE__ */ e(Ne, { children: /* @__PURE__ */ e(Me, { colSpan: rr, children: Xr }) }) : /* @__PURE__ */ d(re, { children: [
7013
7013
  G.map((y, v) => {
7014
7014
  const L = S == null ? void 0 : S(
7015
7015
  y,
@@ -7021,10 +7021,10 @@ const os = yl(pl), wn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)"
7021
7021
  /* @__PURE__ */ d(Ne, { children: [
7022
7022
  Z && ui(y, v, te),
7023
7023
  ke.map(({ col: ae, key: le }, ye) => {
7024
- var en;
7025
- const be = (en = ae.cellProps) == null ? void 0 : en.call(ae, y, v, G);
7024
+ var tn;
7025
+ const be = (tn = ae.cellProps) == null ? void 0 : tn.call(ae, y, v, G);
7026
7026
  if (be != null && be.hidden) return null;
7027
- const _e = Nr(ye), vt = _e && ye === Jt, Je = tr(ae, y, v), Ct = typeof ae.bg == "function" ? ae.bg(y, v, G) : ae.bg, Kr = Ot(Ct) ?? te;
7027
+ const _e = $r(ye), vt = _e && ye === Jt, Je = tr(ae, y, v), Ct = typeof ae.bg == "function" ? ae.bg(y, v, G) : ae.bg, en = Ot(Ct) ?? te;
7028
7028
  return /* @__PURE__ */ e(
7029
7029
  Me,
7030
7030
  {
@@ -7036,10 +7036,10 @@ const os = yl(pl), wn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)"
7036
7036
  width: mt(ae, ye),
7037
7037
  minWidth: ae.minWidth,
7038
7038
  position: _e ? "sticky" : void 0,
7039
- left: _e ? jr(ye) : void 0,
7039
+ left: _e ? _r(ye) : void 0,
7040
7040
  zIndex: _e ? 1 : void 0,
7041
- boxShadow: vt ? Dn : void 0,
7042
- ...Kr ? { "--sa-tl-bg": Kr } : {}
7041
+ boxShadow: vt ? kn : void 0,
7042
+ ...en ? { "--sa-tl-bg": en } : {}
7043
7043
  },
7044
7044
  children: typeof Je == "string" ? /* @__PURE__ */ e(
7045
7045
  D,
@@ -7147,7 +7147,7 @@ const os = yl(pl), wn = 200, yr = "1px solid var(--sa-border-subtle, #0b120e24)"
7147
7147
  [m, r, n, o, u]
7148
7148
  );
7149
7149
  return { sort: k, setSort: A, params: S };
7150
- }, Ir = ({
7150
+ }, Or = ({
7151
7151
  of: t,
7152
7152
  render: r
7153
7153
  }) => Wi.toArray(t == null ? void 0 : t.map((n, o, i) => r(n, o, i))), se = ({
@@ -7910,7 +7910,7 @@ const Ol = (t) => {
7910
7910
  direction: r === "horizontal-inline" ? "row" : "column",
7911
7911
  align: "flex-start",
7912
7912
  children: /* @__PURE__ */ e(
7913
- Ir,
7913
+ Or,
7914
7914
  {
7915
7915
  of: (p = l.checkBoxesList) == null ? void 0 : p.map((g) => ({
7916
7916
  ...g,
@@ -7991,7 +7991,7 @@ const Ol = (t) => {
7991
7991
  align: "flex-start",
7992
7992
  flexWrap: "wrap",
7993
7993
  children: /* @__PURE__ */ e(
7994
- Ir,
7994
+ Or,
7995
7995
  {
7996
7996
  of: (l = o.radioList) == null ? void 0 : l.map((c) => ({
7997
7997
  ...c,
@@ -8372,7 +8372,7 @@ async function Gl(t, r) {
8372
8372
  }, "image/png");
8373
8373
  });
8374
8374
  }
8375
- const Sn = {
8375
+ const Fn = {
8376
8376
  "1:1": 1,
8377
8377
  "4:3": 4 / 3,
8378
8378
  "16:9": 16 / 9,
@@ -8434,7 +8434,7 @@ const Sn = {
8434
8434
  (T = P.current) == null || T.click();
8435
8435
  }
8436
8436
  }));
8437
- const N = parseInt(l, 10), Y = Sn[c];
8437
+ const N = parseInt(l, 10), Y = Fn[c];
8438
8438
  let ne, $;
8439
8439
  return Y >= 1 ? ($ = N, ne = N * Y) : (ne = N, $ = N / Y), /* @__PURE__ */ d(
8440
8440
  f,
@@ -8612,7 +8612,7 @@ const Sn = {
8612
8612
  image: k,
8613
8613
  crop: A,
8614
8614
  zoom: F,
8615
- aspect: c ? Sn[c] : void 0,
8615
+ aspect: c ? Fn[c] : void 0,
8616
8616
  onCropChange: C,
8617
8617
  onZoomChange: I,
8618
8618
  onCropComplete: E,
@@ -8900,7 +8900,7 @@ const Sn = {
8900
8900
  )
8901
8901
  }
8902
8902
  );
8903
- }, Te = "sa-sidepanel-item", Fn = "sa-sidepanel-item-styles", Yl = "inset 3.5px 0 0 0 var(--sa-border-focused, #1a4fa0)", Xl = "inset -3.5px 0 0 0 var(--sa-border-focused, #1a4fa0)", Kl = `
8903
+ }, Te = "sa-sidepanel-item", En = "sa-sidepanel-item-styles", Yl = "inset 3.5px 0 0 0 var(--sa-border-focused, #1a4fa0)", Xl = "inset -3.5px 0 0 0 var(--sa-border-focused, #1a4fa0)", Kl = `
8904
8904
  .${Te} {
8905
8905
  display: block;
8906
8906
  box-sizing: border-box;
@@ -8953,9 +8953,9 @@ const Sn = {
8953
8953
  }
8954
8954
  `;
8955
8955
  function ec() {
8956
- if (typeof document > "u" || document.getElementById(Fn)) return;
8956
+ if (typeof document > "u" || document.getElementById(En)) return;
8957
8957
  const t = document.createElement("style");
8958
- t.id = Fn, t.textContent = Kl, document.head.appendChild(t);
8958
+ t.id = En, t.textContent = Kl, document.head.appendChild(t);
8959
8959
  }
8960
8960
  const Ls = ({
8961
8961
  active: t = !1,
@@ -9041,7 +9041,7 @@ const Ls = ({
9041
9041
  }
9042
9042
  )
9043
9043
  }
9044
- )), vr = 18, tc = 40, En = "280ms cubic-bezier(0.4, 0, 0.2, 1)", Yn = "var(--sa-border-subtle, #0b120e24)", rc = `1px solid ${Yn}`, Ln = "var(--sa-background-white, #ffffff)", Ms = ({
9044
+ )), vr = 18, tc = 40, Ln = "280ms cubic-bezier(0.4, 0, 0.2, 1)", Yn = "var(--sa-border-subtle, #0b120e24)", rc = `1px solid ${Yn}`, Mn = "var(--sa-background-white, #ffffff)", Ms = ({
9045
9045
  children: t,
9046
9046
  header: r,
9047
9047
  collapsed: n,
@@ -9072,7 +9072,7 @@ const Ls = ({
9072
9072
  bottom: 0,
9073
9073
  width: l,
9074
9074
  transform: `translateX(${E ? Q ? "-100%" : "100%" : "0"})`,
9075
- transition: `transform ${En}`,
9075
+ transition: `transform ${Ln}`,
9076
9076
  zIndex: 50,
9077
9077
  ...Q ? { left: 0 } : { right: 0 },
9078
9078
  // boxShadow: isLeft
@@ -9086,7 +9086,7 @@ const Ls = ({
9086
9086
  width: E ? 0 : l,
9087
9087
  flexShrink: 0,
9088
9088
  height: K,
9089
- transition: `width ${En}`,
9089
+ transition: `width ${Ln}`,
9090
9090
  ...b
9091
9091
  }, j = /* @__PURE__ */ d(
9092
9092
  f,
@@ -9104,7 +9104,7 @@ const Ls = ({
9104
9104
  overflow: "overflow-hidden",
9105
9105
  borderStyle: E ? void 0 : Q ? "border-solid-r" : "border-solid-l",
9106
9106
  borderWidth: E ? void 0 : Q ? "border-r" : "border-l",
9107
- style: { backgroundColor: Ln, borderColor: Yn },
9107
+ style: { backgroundColor: Mn, borderColor: Yn },
9108
9108
  children: /* @__PURE__ */ d(
9109
9109
  f,
9110
9110
  {
@@ -9145,7 +9145,7 @@ const Ls = ({
9145
9145
  customHeight: tc,
9146
9146
  style: {
9147
9147
  ...Y,
9148
- backgroundColor: Ln,
9148
+ backgroundColor: Mn,
9149
9149
  border: rc,
9150
9150
  zIndex: 5,
9151
9151
  ...Q ? {
@@ -9254,7 +9254,7 @@ const Ls = ({
9254
9254
  ]
9255
9255
  }
9256
9256
  );
9257
- }, Mn = "--sa-floating-footer-height", Bs = ({
9257
+ }, Wn = "--sa-floating-footer-height", Bs = ({
9258
9258
  children: t,
9259
9259
  withScrollToTopButton: r = !1,
9260
9260
  scrollToTopButtonProps: n,
@@ -9265,12 +9265,12 @@ const Ls = ({
9265
9265
  const l = document.documentElement, c = () => {
9266
9266
  var u;
9267
9267
  const a = ((u = i.current) == null ? void 0 : u.getBoundingClientRect().height) ?? 0;
9268
- l.style.setProperty(Mn, `${a}px`);
9268
+ l.style.setProperty(Wn, `${a}px`);
9269
9269
  };
9270
9270
  c();
9271
9271
  const s = new ResizeObserver(c);
9272
9272
  return i.current && s.observe(i.current), () => {
9273
- s.disconnect(), l.style.removeProperty(Mn);
9273
+ s.disconnect(), l.style.removeProperty(Wn);
9274
9274
  };
9275
9275
  }, []), /* @__PURE__ */ e(f, { direction: "column", position: "absolute", width: "width-full", style: { zIndex: "var(--app-footer-zindex, 998)" }, children: /* @__PURE__ */ d(
9276
9276
  f,
@@ -9306,7 +9306,7 @@ const Ls = ({
9306
9306
  }
9307
9307
  ) });
9308
9308
  }, zs = ({ fields: t }) => /* @__PURE__ */ e(f, { display: "flex", direction: "column", gap: "lg", children: /* @__PURE__ */ e(
9309
- Ir,
9309
+ Or,
9310
9310
  {
9311
9311
  of: t,
9312
9312
  render: (r, n) => /* @__PURE__ */ e(nc, { ...r }, n)
@@ -10774,9 +10774,9 @@ const Hs = (t) => {
10774
10774
  }
10775
10775
  },
10776
10776
  children: [
10777
- /* @__PURE__ */ e(Wn, { ...t.dialogTitleProps, children: typeof t.title == "string" ? /* @__PURE__ */ e(D, { fontSize: "lg", fontWeight: "medium", children: t.title }) : t.title }),
10777
+ /* @__PURE__ */ e(Bn, { ...t.dialogTitleProps, children: typeof t.title == "string" ? /* @__PURE__ */ e(D, { fontSize: "lg", fontWeight: "medium", children: t.title }) : t.title }),
10778
10778
  /* @__PURE__ */ e(Er, { children: typeof t.description == "string" ? /* @__PURE__ */ e(D, { fontSize: "md", lineHeight: "leading-6", color: "brand", children: t.description }) : t.description }),
10779
- /* @__PURE__ */ e(Bn, { children: /* @__PURE__ */ e(
10779
+ /* @__PURE__ */ e(zn, { children: /* @__PURE__ */ e(
10780
10780
  f,
10781
10781
  {
10782
10782
  display: "flex",
@@ -10925,39 +10925,39 @@ const Hs = (t) => {
10925
10925
  )) });
10926
10926
  }
10927
10927
  );
10928
- function Or(t) {
10929
- return null;
10930
- }
10931
- Or.displayName = "LayoutDialog.Header";
10932
10928
  function Hr(t) {
10933
10929
  return null;
10934
10930
  }
10935
- Hr.displayName = "LayoutDialog.Body";
10931
+ Hr.displayName = "LayoutDialog.Header";
10936
10932
  function Vr(t) {
10937
10933
  return null;
10938
10934
  }
10939
- Vr.displayName = "LayoutDialog.Aside";
10935
+ Vr.displayName = "LayoutDialog.Body";
10940
10936
  function Tr(t) {
10941
10937
  return null;
10942
10938
  }
10943
- Tr.displayName = "LayoutDialog.Footer";
10939
+ Tr.displayName = "LayoutDialog.Aside";
10940
+ function Nr(t) {
10941
+ return null;
10942
+ }
10943
+ Nr.displayName = "LayoutDialog.Footer";
10944
10944
  const Re = {
10945
- "lyd-root": "_lyd-root_14rlp_1",
10946
- "lyd-backdrop": "_lyd-backdrop_14rlp_34",
10947
- "lyd-panel": "_lyd-panel_14rlp_43",
10948
- "lyd-modal": "_lyd-modal_14rlp_54",
10949
- "lyd-fullscreen": "_lyd-fullscreen_14rlp_64",
10950
- "lyd-sidebar": "_lyd-sidebar_14rlp_72",
10951
- "lyd-header": "_lyd-header_14rlp_100",
10952
- "lyd-header-content": "_lyd-header-content_14rlp_111",
10953
- "lyd-header-actions": "_lyd-header-actions_14rlp_119",
10954
- "lyd-main": "_lyd-main_14rlp_126",
10955
- "lyd-body": "_lyd-body_14rlp_133",
10956
- "lyd-aside": "_lyd-aside_14rlp_139",
10957
- "lyd-footer": "_lyd-footer_14rlp_155",
10958
- "lyd-vm-group": "_lyd-vm-group_14rlp_168",
10959
- "lyd-vm-btn": "_lyd-vm-btn_14rlp_176",
10960
- "lyd-close-btn": "_lyd-close-btn_14rlp_199"
10945
+ "lyd-root": "_lyd-root_1g78i_1",
10946
+ "lyd-backdrop": "_lyd-backdrop_1g78i_38",
10947
+ "lyd-panel": "_lyd-panel_1g78i_47",
10948
+ "lyd-modal": "_lyd-modal_1g78i_58",
10949
+ "lyd-fullscreen": "_lyd-fullscreen_1g78i_72",
10950
+ "lyd-sidebar": "_lyd-sidebar_1g78i_80",
10951
+ "lyd-header": "_lyd-header_1g78i_110",
10952
+ "lyd-header-content": "_lyd-header-content_1g78i_121",
10953
+ "lyd-header-actions": "_lyd-header-actions_1g78i_129",
10954
+ "lyd-main": "_lyd-main_1g78i_136",
10955
+ "lyd-body": "_lyd-body_1g78i_143",
10956
+ "lyd-aside": "_lyd-aside_1g78i_149",
10957
+ "lyd-footer": "_lyd-footer_1g78i_165",
10958
+ "lyd-vm-group": "_lyd-vm-group_1g78i_178",
10959
+ "lyd-vm-btn": "_lyd-vm-btn_1g78i_186",
10960
+ "lyd-close-btn": "_lyd-close-btn_1g78i_209"
10961
10961
  }, sc = [
10962
10962
  {
10963
10963
  mode: "sidebar",
@@ -11060,16 +11060,16 @@ function hc(t) {
11060
11060
  return window.addEventListener("keydown", K), () => window.removeEventListener("keydown", K);
11061
11061
  }, [r, m, n]);
11062
11062
  const I = ge(
11063
- () => Ht(b, Or),
11063
+ () => Ht(b, Hr),
11064
11064
  [b]
11065
11065
  ), R = ge(
11066
- () => Ht(b, Hr),
11066
+ () => Ht(b, Vr),
11067
11067
  [b]
11068
11068
  ), W = ge(
11069
- () => Ht(b, Vr),
11069
+ () => Ht(b, Tr),
11070
11070
  [b]
11071
11071
  ), E = ge(
11072
- () => Ht(b, Tr),
11072
+ () => Ht(b, Nr),
11073
11073
  [b]
11074
11074
  );
11075
11075
  if (!r) return null;
@@ -11084,54 +11084,57 @@ function hc(t) {
11084
11084
  }, P = () => {
11085
11085
  p || n();
11086
11086
  };
11087
- return /* @__PURE__ */ d(
11088
- "div",
11089
- {
11090
- className: Re["lyd-root"],
11091
- style: Q,
11092
- role: "dialog",
11093
- "aria-modal": "true",
11094
- children: [
11095
- /* @__PURE__ */ e(
11096
- "div",
11097
- {
11098
- className: Re["lyd-backdrop"],
11099
- onClick: P,
11100
- "aria-hidden": "true"
11101
- }
11102
- ),
11103
- /* @__PURE__ */ d("div", { className: Z, children: [
11104
- /* @__PURE__ */ d("div", { className: Re["lyd-header"], children: [
11105
- /* @__PURE__ */ e("div", { className: Re["lyd-header-content"], children: I }),
11106
- /* @__PURE__ */ d("div", { className: Re["lyd-header-actions"], children: [
11107
- c && /* @__PURE__ */ e(ac, { value: M, onChange: C }),
11108
- s && /* @__PURE__ */ e(
11109
- "button",
11110
- {
11111
- type: "button",
11112
- className: Re["lyd-close-btn"],
11113
- onClick: n,
11114
- "aria-label": "Close dialog",
11115
- children: /* @__PURE__ */ e(B, { name: "Cross", size: "md" })
11116
- }
11117
- )
11118
- ] })
11119
- ] }),
11120
- /* @__PURE__ */ d("div", { className: Re["lyd-main"], children: [
11121
- /* @__PURE__ */ e("div", { className: Re["lyd-body"], children: R }),
11122
- W && /* @__PURE__ */ e("aside", { className: Re["lyd-aside"], children: W })
11123
- ] }),
11124
- E && /* @__PURE__ */ e("div", { className: Re["lyd-footer"], children: E })
11125
- ] })
11126
- ]
11127
- }
11087
+ return typeof document > "u" ? null : Br(
11088
+ /* @__PURE__ */ d(
11089
+ "div",
11090
+ {
11091
+ className: Re["lyd-root"],
11092
+ style: Q,
11093
+ role: "dialog",
11094
+ "aria-modal": "true",
11095
+ children: [
11096
+ /* @__PURE__ */ e(
11097
+ "div",
11098
+ {
11099
+ className: Re["lyd-backdrop"],
11100
+ onClick: P,
11101
+ "aria-hidden": "true"
11102
+ }
11103
+ ),
11104
+ /* @__PURE__ */ d("div", { className: Z, children: [
11105
+ /* @__PURE__ */ d("div", { className: Re["lyd-header"], children: [
11106
+ /* @__PURE__ */ e("div", { className: Re["lyd-header-content"], children: I }),
11107
+ /* @__PURE__ */ d("div", { className: Re["lyd-header-actions"], children: [
11108
+ c && /* @__PURE__ */ e(ac, { value: M, onChange: C }),
11109
+ s && /* @__PURE__ */ e(
11110
+ "button",
11111
+ {
11112
+ type: "button",
11113
+ className: Re["lyd-close-btn"],
11114
+ onClick: n,
11115
+ "aria-label": "Close dialog",
11116
+ children: /* @__PURE__ */ e(B, { name: "Cross", size: "md" })
11117
+ }
11118
+ )
11119
+ ] })
11120
+ ] }),
11121
+ /* @__PURE__ */ d("div", { className: Re["lyd-main"], children: [
11122
+ /* @__PURE__ */ e("div", { className: Re["lyd-body"], children: R }),
11123
+ W && /* @__PURE__ */ e("aside", { className: Re["lyd-aside"], children: W })
11124
+ ] }),
11125
+ E && /* @__PURE__ */ e("div", { className: Re["lyd-footer"], children: E })
11126
+ ] })
11127
+ ]
11128
+ }
11129
+ ),
11130
+ document.body
11128
11131
  );
11129
11132
  }
11130
11133
  const Ut = hc;
11131
- Ut.Header = Or;
11132
- Ut.Body = Hr;
11133
- Ut.Aside = Vr;
11134
- Ut.Footer = Tr;
11134
+ Ut.Header = Hr;
11135
+ Ut.Body = Vr;
11136
+ Ut.Aside = Tr;
11137
+ Ut.Footer = Nr;
11135
11138
  function Ns({ url: t, filename: r, onClose: n }) {
11136
11139
  return J(() => {
11137
11140
  const o = (i) => {
@@ -11321,9 +11324,9 @@ export {
11321
11324
  Hs as ConfirmationDialog,
11322
11325
  gl as DataTable,
11323
11326
  se as DecisionWrapper,
11324
- Ir as EachUtils,
11327
+ Or as EachUtils,
11325
11328
  As as EmptyStatePage,
11326
- Mn as FLOATING_FOOTER_HEIGHT_VAR,
11329
+ Wn as FLOATING_FOOTER_HEIGHT_VAR,
11327
11330
  ts as FilterBar,
11328
11331
  So as FilterDrawer,
11329
11332
  Bs as FloatingFooter,
@@ -11338,10 +11341,10 @@ export {
11338
11341
  Hl as InputFile,
11339
11342
  ql as InputImage,
11340
11343
  Ut as LayoutDialog,
11341
- Vr as LayoutDialogAside,
11342
- Hr as LayoutDialogBody,
11343
- Tr as LayoutDialogFooter,
11344
- Or as LayoutDialogHeader,
11344
+ Tr as LayoutDialogAside,
11345
+ Vr as LayoutDialogBody,
11346
+ Nr as LayoutDialogFooter,
11347
+ Hr as LayoutDialogHeader,
11345
11348
  Uc as ModuleSwitcher,
11346
11349
  Ui as ModuleSwitcherModal,
11347
11350
  Rs as NotFoundPage,
@@ -11384,7 +11387,7 @@ export {
11384
11387
  us as getInitials,
11385
11388
  Do as getValueDropdownMultipleFilter,
11386
11389
  Xc as getValueRadioFilter,
11387
- Ar as getValueSearch,
11390
+ Rr as getValueSearch,
11388
11391
  hr as getValuesFilter,
11389
11392
  $t as handleChangeFilter,
11390
11393
  Ss as handleOnScroll,