@starasia/admin 8.0.3 → 8.0.4

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
@@ -16,7 +16,7 @@ import { Drawer as xr } from "@starasia/drawer";
16
16
  export * from "@starasia/drawer";
17
17
  import { Dropdown as tt } from "@starasia/dropdown";
18
18
  export * from "@starasia/dropdown";
19
- import { useMediaQuery as se, useDebounce as Cr } from "@starasia/hooks";
19
+ import { useMediaQuery as de, useDebounce as Cr } from "@starasia/hooks";
20
20
  export * from "@starasia/hooks";
21
21
  import { searchParamsToObject as rt } from "@starasia/http";
22
22
  export * from "@starasia/http";
@@ -26,7 +26,7 @@ import { Menu as _e, MenuButton as Fe, MenuLists as je, MenuHeading as br, MenuB
26
26
  export * from "@starasia/menu";
27
27
  import { Pagination as rr } from "@starasia/pagination";
28
28
  export * from "@starasia/pagination";
29
- import { storage as st } from "@starasia/storage";
29
+ import { storage as dt } from "@starasia/storage";
30
30
  export * from "@starasia/storage";
31
31
  import { Tr as Te, Td as Se, Table as nr, Thead as vr, Th as Rt, Tbody as Dr } from "@starasia/table";
32
32
  export * from "@starasia/table";
@@ -59,7 +59,7 @@ import { Skeleton as He } from "@starasia/skeleton";
59
59
  export * from "@starasia/skeleton";
60
60
  export * from "@starasia/progress-stepper";
61
61
  import { jsx as e, Fragment as ee, jsxs as u } from "react/jsx-runtime";
62
- import Ye, { createContext as nt, useState as B, useContext as We, useCallback as G, useMemo as de, memo as Ce, useEffect as Z, useRef as ne, useLayoutEffect as xt, forwardRef as kt, isValidElement as Ct, Children as Er, useImperativeHandle as Lr } from "react";
62
+ import Ye, { createContext as nt, useState as B, useContext as We, useCallback as G, useMemo as se, memo as Ce, useEffect as Z, useRef as ne, useLayoutEffect as xt, forwardRef as kt, isValidElement as Ct, Children as Er, useImperativeHandle as Lr } from "react";
63
63
  import { useSearchParams as it, useNavigate as St, useLocation as Ze, Outlet as Tt, Link as Xe, useParams as ir } from "react-router";
64
64
  import Mr, { createPortal as or } from "react-dom";
65
65
  import Br from "react-easy-crop";
@@ -97,23 +97,23 @@ const Wr = {
97
97
  []
98
98
  ), i = G(
99
99
  (c, h) => {
100
- n((s) => {
101
- const m = typeof h == "function" ? h(s[c]) : h;
102
- return { ...s, [c]: m };
100
+ n((d) => {
101
+ const m = typeof h == "function" ? h(d[c]) : h;
102
+ return { ...d, [c]: m };
103
103
  });
104
104
  },
105
105
  []
106
106
  ), l = G((c) => {
107
107
  n((h) => {
108
108
  if (!(c in h)) return h;
109
- const s = { ...h };
110
- return delete s[c], s;
109
+ const d = { ...h };
110
+ return delete d[c], d;
111
111
  });
112
- }, []), d = de(
112
+ }, []), s = se(
113
113
  () => ({ badges: r, setBadge: i, setBadges: o, clearBadge: l }),
114
114
  [r, i, o, l]
115
115
  );
116
- return /* @__PURE__ */ e(ar.Provider, { value: d, children: t });
116
+ return /* @__PURE__ */ e(ar.Provider, { value: s, children: t });
117
117
  }, Ir = () => We(ar), ut = (t, r) => {
118
118
  const n = r !== void 0 ? r : t;
119
119
  return n == null ? null : typeof n == "string" || typeof n == "number" ? { value: n } : n;
@@ -124,7 +124,7 @@ const Wr = {
124
124
  logo: o,
125
125
  appName: i = "Workspace",
126
126
  initialUserData: l,
127
- theme: d
127
+ theme: s
128
128
  }) => {
129
129
  const c = Ar({ initialUserData: l }), { theme: h } = kr();
130
130
  return /* @__PURE__ */ e(
@@ -138,7 +138,7 @@ const Wr = {
138
138
  setUserData: c.setUserData,
139
139
  menuBottom: n
140
140
  },
141
- children: /* @__PURE__ */ e(zr, { children: d ? /* @__PURE__ */ e(Ht, { value: d, children: t }) : h ? /* @__PURE__ */ e(Ht, { value: h, children: t }) : t })
141
+ children: /* @__PURE__ */ e(zr, { children: s ? /* @__PURE__ */ e(Ht, { value: s, children: t }) : h ? /* @__PURE__ */ e(Ht, { value: h, children: t }) : t })
142
142
  }
143
143
  );
144
144
  }, oo = Ce(Vr);
@@ -181,7 +181,7 @@ function Rr({
181
181
  }
182
182
  const Ft = nt(null);
183
183
  function Hr({ children: t }) {
184
- const [r, n] = B(null), [o, i] = B(null), [l, d] = B(null), [c, h] = B(0), s = G(() => (h((m) => m + 1), () => h((m) => m - 1)), []);
184
+ const [r, n] = B(null), [o, i] = B(null), [l, s] = B(null), [c, h] = B(0), d = G(() => (h((m) => m + 1), () => h((m) => m - 1)), []);
185
185
  return /* @__PURE__ */ e(
186
186
  Ft.Provider,
187
187
  {
@@ -191,9 +191,9 @@ function Hr({ children: t }) {
191
191
  replaceNode: l,
192
192
  setPrependNode: n,
193
193
  setAppendNode: i,
194
- setReplaceNode: d,
194
+ setReplaceNode: s,
195
195
  replaceCount: c,
196
- registerReplace: s
196
+ registerReplace: d
197
197
  },
198
198
  children: t
199
199
  }
@@ -224,14 +224,14 @@ function lo({
224
224
  }
225
225
  const Et = nt(null);
226
226
  function Nr({ children: t }) {
227
- const [r, n] = B({}), [o, i] = B({}), l = G((h, s) => {
228
- n((m) => m[h] === s ? m : { ...m, [h]: s });
229
- }, []), d = G((h) => (i((s) => ({ ...s, [h]: (s[h] ?? 0) + 1 })), () => i((s) => ({
230
- ...s,
231
- [h]: Math.max(0, (s[h] ?? 0) - 1)
232
- }))), []), c = de(
233
- () => ({ outletNodes: r, setOutletNode: l, slotCounts: o, registerSlot: d }),
234
- [r, l, o, d]
227
+ const [r, n] = B({}), [o, i] = B({}), l = G((h, d) => {
228
+ n((m) => m[h] === d ? m : { ...m, [h]: d });
229
+ }, []), s = G((h) => (i((d) => ({ ...d, [h]: (d[h] ?? 0) + 1 })), () => i((d) => ({
230
+ ...d,
231
+ [h]: Math.max(0, (d[h] ?? 0) - 1)
232
+ }))), []), c = se(
233
+ () => ({ outletNodes: r, setOutletNode: l, slotCounts: o, registerSlot: s }),
234
+ [r, l, o, s]
235
235
  );
236
236
  return /* @__PURE__ */ e(Et.Provider, { value: c, children: t });
237
237
  }
@@ -239,9 +239,9 @@ function Or({ slotKey: t, fallback: r }) {
239
239
  const n = We(Et), o = n ? (n.slotCounts[t] ?? 0) > 0 : !1, i = ne(n == null ? void 0 : n.setOutletNode);
240
240
  i.current = n == null ? void 0 : n.setOutletNode;
241
241
  const l = G(
242
- (d) => {
242
+ (s) => {
243
243
  var c;
244
- return (c = i.current) == null ? void 0 : c.call(i, t, d);
244
+ return (c = i.current) == null ? void 0 : c.call(i, t, s);
245
245
  },
246
246
  [t]
247
247
  // slotKey is a stable string from group config
@@ -268,13 +268,13 @@ function Nt() {
268
268
  const r = Number(t);
269
269
  return Number.isFinite(r) ? r : null;
270
270
  }
271
- function dr(t) {
271
+ function sr(t) {
272
272
  typeof window > "u" || (t === null ? window.localStorage.removeItem(Ke) : window.localStorage.setItem(Ke, String(t)), window.dispatchEvent(new CustomEvent(bt, { detail: t })));
273
273
  }
274
274
  function ao() {
275
- dr(null);
275
+ sr(null);
276
276
  }
277
- function sr() {
277
+ function dr() {
278
278
  const [t, r] = B(
279
279
  () => Nt()
280
280
  );
@@ -288,7 +288,7 @@ function sr() {
288
288
  window.removeEventListener(bt, o), window.removeEventListener("storage", i);
289
289
  };
290
290
  }, []), { selectedGroupId: t, setSelectedGroupId: (o) => {
291
- dr(o), r(o);
291
+ sr(o), r(o);
292
292
  } };
293
293
  }
294
294
  let Ue = 0, ke = !1, Ot = /* @__PURE__ */ new Set();
@@ -333,18 +333,18 @@ function so({
333
333
  isLoadingProfile: o,
334
334
  onLogout: i,
335
335
  isLoggingOut: l,
336
- loadingComponent: d,
336
+ loadingComponent: s,
337
337
  sidebarHeaderContent: c,
338
338
  headerActions: h,
339
- profileRole: s,
339
+ profileRole: d,
340
340
  profileMenuButtons: m,
341
341
  profileMenuItems: g,
342
342
  logoutButton: y
343
343
  }) {
344
344
  var Me, Je;
345
- const [x] = it(), k = x.get("embed") === "true", p = cr(), { badges: E } = Ir(), M = St(), S = Ze(), C = !se("md"), [L, A] = B(!1), [w, $] = B(!1), [K, X] = B(!1), [N, Y] = B(!1), [te, ue] = B(
345
+ const [x] = it(), k = x.get("embed") === "true", p = cr(), { badges: E } = Ir(), M = St(), S = Ze(), C = !de("md"), [L, A] = B(!1), [w, $] = B(!1), [K, X] = B(!1), [N, Y] = B(!1), [te, ue] = B(
346
346
  () => new Set(Ot)
347
- ), [le, ie] = B(null), { selectedGroupId: P, setSelectedGroupId: q } = sr();
347
+ ), [le, ie] = B(null), { selectedGroupId: P, setSelectedGroupId: q } = dr();
348
348
  Z(() => {
349
349
  Ot = te;
350
350
  }, [te]);
@@ -437,7 +437,7 @@ function so({
437
437
  Z(() => {
438
438
  p.menus.length !== 0 && P !== null && !p.menus.some((b) => b.id === P) && q(null);
439
439
  }, [p.menus, P, q]);
440
- const Ie = de(() => {
440
+ const Ie = se(() => {
441
441
  if (P !== null)
442
442
  return p.menus.filter(
443
443
  (R) => R.id === P || R.parentGroupId === P
@@ -1200,7 +1200,7 @@ function so({
1200
1200
  children: (n == null ? void 0 : n.email) || "unknown"
1201
1201
  }
1202
1202
  ),
1203
- s && /* @__PURE__ */ e(
1203
+ d && /* @__PURE__ */ e(
1204
1204
  "p",
1205
1205
  {
1206
1206
  style: {
@@ -1212,7 +1212,7 @@ function so({
1212
1212
  overflow: "hidden",
1213
1213
  textOverflow: "ellipsis"
1214
1214
  },
1215
- children: s
1215
+ children: d
1216
1216
  }
1217
1217
  )
1218
1218
  ]
@@ -1293,7 +1293,7 @@ function so({
1293
1293
  ]
1294
1294
  }
1295
1295
  ),
1296
- l && d && /* @__PURE__ */ e(
1296
+ l && s && /* @__PURE__ */ e(
1297
1297
  "div",
1298
1298
  {
1299
1299
  style: {
@@ -1305,7 +1305,7 @@ function so({
1305
1305
  justifyContent: "center",
1306
1306
  zIndex: 9999
1307
1307
  },
1308
- children: d
1308
+ children: s
1309
1309
  }
1310
1310
  ),
1311
1311
  /* @__PURE__ */ u(vt, { isShow: L, onHide: Pe, children: [
@@ -1449,7 +1449,7 @@ const ot = kt(
1449
1449
  hoverTextColor: i,
1450
1450
  hoverIconColor: l
1451
1451
  }) => {
1452
- const [d, c] = B(!1);
1452
+ const [s, c] = B(!1);
1453
1453
  return /* @__PURE__ */ u(
1454
1454
  f,
1455
1455
  {
@@ -1466,7 +1466,7 @@ const ot = kt(
1466
1466
  name: r || "ChevronLeft",
1467
1467
  size: "xs",
1468
1468
  style: {
1469
- color: d ? l ?? "var(--sa-text-subtle, #8c8f97)" : o ?? "var(--sa-text-subtle, #8c8f97)",
1469
+ color: s ? l ?? "var(--sa-text-subtle, #8c8f97)" : o ?? "var(--sa-text-subtle, #8c8f97)",
1470
1470
  transition: "color 0.15s ease"
1471
1471
  }
1472
1472
  }
@@ -1476,7 +1476,7 @@ const ot = kt(
1476
1476
  {
1477
1477
  variant: "sub-h3",
1478
1478
  style: {
1479
- color: d ? i ?? "var(--sa-text-primary, #292a2e)" : n ?? "var(--sa-text-subtle, #8c8f97)",
1479
+ color: s ? i ?? "var(--sa-text-primary, #292a2e)" : n ?? "var(--sa-text-subtle, #8c8f97)",
1480
1480
  transition: "color 0.15s ease"
1481
1481
  },
1482
1482
  children: t || "Back"
@@ -1492,20 +1492,20 @@ const ot = kt(
1492
1492
  iconColor: o,
1493
1493
  hoverIconColor: i
1494
1494
  }) => {
1495
- const [l, d] = B(!1), c = o ?? "var(--sa-text-subtle, #8c8f97)", h = i ?? "var(--sa-text-subtle, #8c8f97)", s = t.length > 1 ? t[0] : void 0, m = !!(s != null && s.to || s != null && s.onClick), g = /* @__PURE__ */ e(
1495
+ const [l, s] = B(!1), c = o ?? "var(--sa-text-subtle, #8c8f97)", h = i ?? "var(--sa-text-subtle, #8c8f97)", d = t.length > 1 ? t[0] : void 0, m = !!(d != null && d.to || d != null && d.onClick), g = /* @__PURE__ */ e(
1496
1496
  F,
1497
1497
  {
1498
1498
  name: n || "ChevronLeft",
1499
1499
  size: "xs",
1500
- onMouseEnter: m ? () => d(!0) : void 0,
1501
- onMouseLeave: m ? () => d(!1) : void 0,
1500
+ onMouseEnter: m ? () => s(!0) : void 0,
1501
+ onMouseLeave: m ? () => s(!1) : void 0,
1502
1502
  style: {
1503
1503
  color: m && l ? h : c,
1504
1504
  transition: "color 0.15s ease",
1505
1505
  cursor: m ? "pointer" : void 0
1506
1506
  }
1507
1507
  }
1508
- ), y = s != null && s.to ? /* @__PURE__ */ e(Xe, { to: s.to, replace: !0, style: { textDecoration: "none" }, children: g }) : s != null && s.onClick ? /* @__PURE__ */ e(ot, { onClick: s.onClick, children: g }) : g;
1508
+ ), y = d != null && d.to ? /* @__PURE__ */ e(Xe, { to: d.to, replace: !0, style: { textDecoration: "none" }, children: g }) : d != null && d.onClick ? /* @__PURE__ */ e(ot, { onClick: d.onClick, children: g }) : g;
1509
1509
  return /* @__PURE__ */ u(f, { direction: "row", gap: "xs", align: "center", children: [
1510
1510
  y,
1511
1511
  /* @__PURE__ */ e(yr, { separator: r, size: "md", children: t.map((x, k) => {
@@ -1611,8 +1611,8 @@ function jr({
1611
1611
  selectedGroupId: o,
1612
1612
  onSelect: i
1613
1613
  }) {
1614
- const [l, d] = B(void 0), c = (s) => {
1615
- i(s), r();
1614
+ const [l, s] = B(void 0), c = (d) => {
1615
+ i(d), r();
1616
1616
  }, h = ht[0];
1617
1617
  return /* @__PURE__ */ e(
1618
1618
  vt,
@@ -1638,8 +1638,8 @@ function jr({
1638
1638
  "button",
1639
1639
  {
1640
1640
  onClick: () => c(null),
1641
- onMouseEnter: () => d("all"),
1642
- onMouseLeave: () => d(void 0),
1641
+ onMouseEnter: () => s("all"),
1642
+ onMouseLeave: () => s(void 0),
1643
1643
  style: qt,
1644
1644
  children: [
1645
1645
  /* @__PURE__ */ e("div", { style: Zt(o === null, l === "all", h), children: /* @__PURE__ */ e("div", { style: { color: h.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(F, { name: "Grid", size: "lg", style: { width: 32, height: 32 } }) }) }),
@@ -1647,22 +1647,22 @@ function jr({
1647
1647
  ]
1648
1648
  }
1649
1649
  ),
1650
- n.map((s, m) => {
1650
+ n.map((d, m) => {
1651
1651
  var p;
1652
- const g = o === s.id, y = l === s.id, x = ((p = s.items[0]) == null ? void 0 : p.icon) ?? "Grid", k = ht[(m + 1) % ht.length];
1652
+ const g = o === d.id, y = l === d.id, x = ((p = d.items[0]) == null ? void 0 : p.icon) ?? "Grid", k = ht[(m + 1) % ht.length];
1653
1653
  return /* @__PURE__ */ u(
1654
1654
  "button",
1655
1655
  {
1656
- onClick: () => c(s.id),
1657
- onMouseEnter: () => d(s.id),
1658
- onMouseLeave: () => d(void 0),
1656
+ onClick: () => c(d.id),
1657
+ onMouseEnter: () => s(d.id),
1658
+ onMouseLeave: () => s(void 0),
1659
1659
  style: qt,
1660
1660
  children: [
1661
1661
  /* @__PURE__ */ e("div", { style: Zt(g, y, k), children: /* @__PURE__ */ e("div", { style: { color: k.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(F, { name: x, size: "lg", style: { width: 32, height: 32 } }) }) }),
1662
- /* @__PURE__ */ e("span", { style: Pt, children: s.name })
1662
+ /* @__PURE__ */ e("span", { style: Pt, children: d.name })
1663
1663
  ]
1664
1664
  },
1665
- s.id
1665
+ d.id
1666
1666
  );
1667
1667
  })
1668
1668
  ]
@@ -1675,13 +1675,13 @@ function ho({
1675
1675
  onSelect: t,
1676
1676
  "aria-label": r = "Pilih module"
1677
1677
  } = {}) {
1678
- const n = cr(), o = St(), { selectedGroupId: i, setSelectedGroupId: l } = sr(), [d, c] = B(!1), h = (s) => {
1678
+ const n = cr(), o = St(), { selectedGroupId: i, setSelectedGroupId: l } = dr(), [s, c] = B(!1), h = (d) => {
1679
1679
  var m;
1680
- if (l(s), s !== null) {
1681
- const g = n.menus.find((x) => x.id === s), y = (m = g == null ? void 0 : g.items[0]) == null ? void 0 : m.to;
1680
+ if (l(d), d !== null) {
1681
+ const g = n.menus.find((x) => x.id === d), y = (m = g == null ? void 0 : g.items[0]) == null ? void 0 : m.to;
1682
1682
  y && o(y);
1683
1683
  }
1684
- t == null || t(s);
1684
+ t == null || t(d);
1685
1685
  };
1686
1686
  return /* @__PURE__ */ u(ee, { children: [
1687
1687
  /* @__PURE__ */ u("div", { style: { position: "relative" }, children: [
@@ -1702,11 +1702,11 @@ function ho({
1702
1702
  cursor: "pointer"
1703
1703
  },
1704
1704
  "aria-label": r,
1705
- onMouseEnter: (s) => {
1706
- s.currentTarget.style.backgroundColor = "var(--sa-background-primary-inverse, #f8f8f8)";
1705
+ onMouseEnter: (d) => {
1706
+ d.currentTarget.style.backgroundColor = "var(--sa-background-primary-inverse, #f8f8f8)";
1707
1707
  },
1708
- onMouseLeave: (s) => {
1709
- s.currentTarget.style.backgroundColor = "transparent";
1708
+ onMouseLeave: (d) => {
1709
+ d.currentTarget.style.backgroundColor = "transparent";
1710
1710
  },
1711
1711
  children: /* @__PURE__ */ e(F, { name: "GridApplication", size: "sm" })
1712
1712
  }
@@ -1730,9 +1730,9 @@ function ho({
1730
1730
  /* @__PURE__ */ e(
1731
1731
  jr,
1732
1732
  {
1733
- isShow: d,
1733
+ isShow: s,
1734
1734
  onHide: () => c(!1),
1735
- menus: n.menus.filter((s) => s.parentGroupId === void 0),
1735
+ menus: n.menus.filter((d) => d.parentGroupId === void 0),
1736
1736
  selectedGroupId: i,
1737
1737
  onSelect: h
1738
1738
  }
@@ -1757,14 +1757,14 @@ const $r = (t, r) => {
1757
1757
  lastIndex: i,
1758
1758
  labelAlign: l = "top"
1759
1759
  }) => {
1760
- const d = de(
1760
+ const s = se(
1761
1761
  () => ({
1762
1762
  padding: 0,
1763
1763
  paddingBottom: i ? 0 : 12,
1764
1764
  verticalAlign: l
1765
1765
  }),
1766
1766
  [i, l]
1767
- ), c = de(
1767
+ ), c = se(
1768
1768
  () => ({
1769
1769
  padding: 0,
1770
1770
  paddingRight: 12,
@@ -1773,11 +1773,11 @@ const $r = (t, r) => {
1773
1773
  verticalAlign: l
1774
1774
  }),
1775
1775
  [i, l]
1776
- ), h = () => typeof r == "string" ? /* @__PURE__ */ e(v, { fontWeight: "medium", color: "subtlest", children: r }) : r, s = () => typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ e(v, { color: "primary", fontWeight: "medium", children: t }) : t, m = () => typeof n == "string" || typeof n == "number" ? /* @__PURE__ */ e(v, { fontWeight: "medium", color: "subtlest", children: n }) : n;
1776
+ ), h = () => typeof r == "string" ? /* @__PURE__ */ e(v, { fontWeight: "medium", color: "subtlest", children: r }) : r, d = () => typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ e(v, { color: "primary", fontWeight: "medium", children: t }) : t, m = () => typeof n == "string" || typeof n == "number" ? /* @__PURE__ */ e(v, { fontWeight: "medium", color: "subtlest", children: n }) : n;
1777
1777
  return /* @__PURE__ */ u(Te, { children: [
1778
- /* @__PURE__ */ e(Se, { style: d, width: o, children: h() }),
1778
+ /* @__PURE__ */ e(Se, { style: s, width: o, children: h() }),
1779
1779
  n ? /* @__PURE__ */ e(Se, { style: c, width: 24, children: m() }) : null,
1780
- /* @__PURE__ */ e(Se, { style: d, children: s() })
1780
+ /* @__PURE__ */ e(Se, { style: s, children: d() })
1781
1781
  ] });
1782
1782
  }
1783
1783
  ), Pr = Ce(({ fields: t, separator: r, labelWidth: n }) => /* @__PURE__ */ e(nr, { children: t.map((o, i) => /* @__PURE__ */ e(
@@ -1798,10 +1798,10 @@ const $r = (t, r) => {
1798
1798
  labelWidth: i = 150,
1799
1799
  bordered: l = !1
1800
1800
  }) => {
1801
- const d = de(
1801
+ const s = se(
1802
1802
  () => $r(o, t),
1803
1803
  [o, t]
1804
- ), c = d.length > 2, h = () => {
1804
+ ), c = s.length > 2, h = () => {
1805
1805
  switch (r) {
1806
1806
  case 1:
1807
1807
  return "width-full";
@@ -1828,7 +1828,7 @@ const $r = (t, r) => {
1828
1828
  borderWidth: l ? "border" : void 0,
1829
1829
  borderStyle: l ? "border-solid" : void 0,
1830
1830
  borderColor: l ? "border-subtle" : void 0,
1831
- children: d.map((s, m) => /* @__PURE__ */ e(
1831
+ children: s.map((d, m) => /* @__PURE__ */ e(
1832
1832
  f,
1833
1833
  {
1834
1834
  direction: "column",
@@ -1839,7 +1839,7 @@ const $r = (t, r) => {
1839
1839
  Pr,
1840
1840
  {
1841
1841
  labelWidth: i,
1842
- fields: s,
1842
+ fields: d,
1843
1843
  separator: n
1844
1844
  }
1845
1845
  )
@@ -1850,7 +1850,7 @@ const $r = (t, r) => {
1850
1850
  );
1851
1851
  }
1852
1852
  ), qr = ({ backButton: t }) => {
1853
- const [r, n] = B(!1), o = (t == null ? void 0 : t.iconColor) ?? "var(--sa-text-subtle, #8c8f97)", i = (t == null ? void 0 : t.textColor) ?? "var(--sa-text-subtle, #8c8f97)", l = (t == null ? void 0 : t.hoverIconColor) ?? "var(--sa-text-subtle, #8c8f97)", d = (t == null ? void 0 : t.hoverTextColor) ?? "var(--sa-text-primary, #292a2e)";
1853
+ const [r, n] = B(!1), o = (t == null ? void 0 : t.iconColor) ?? "var(--sa-text-subtle, #8c8f97)", i = (t == null ? void 0 : t.textColor) ?? "var(--sa-text-subtle, #8c8f97)", l = (t == null ? void 0 : t.hoverIconColor) ?? "var(--sa-text-subtle, #8c8f97)", s = (t == null ? void 0 : t.hoverTextColor) ?? "var(--sa-text-primary, #292a2e)";
1854
1854
  return /* @__PURE__ */ u(
1855
1855
  f,
1856
1856
  {
@@ -1877,7 +1877,7 @@ const $r = (t, r) => {
1877
1877
  {
1878
1878
  variant: "sub-h3",
1879
1879
  style: {
1880
- color: r ? d : i,
1880
+ color: r ? s : i,
1881
1881
  textDecoration: r ? "underline" : "none",
1882
1882
  transition: "color 0.15s ease"
1883
1883
  },
@@ -1894,14 +1894,14 @@ const $r = (t, r) => {
1894
1894
  titleTag: o,
1895
1895
  children: i,
1896
1896
  header: l = !0,
1897
- headerBorder: d = !1,
1897
+ headerBorder: s = !1,
1898
1898
  subHeaders: c,
1899
1899
  action: h,
1900
- titleTagProps: s,
1900
+ titleTagProps: d,
1901
1901
  containerProps: m,
1902
1902
  headerProps: g
1903
1903
  }) => {
1904
- const y = se("lg"), x = St(), k = Ze(), p = t == null ? void 0 : t.show, E = () => {
1904
+ const y = de("lg"), x = St(), k = Ze(), p = t == null ? void 0 : t.show, E = () => {
1905
1905
  if (typeof (t == null ? void 0 : t.onClick) == "function") {
1906
1906
  t.onClick();
1907
1907
  return;
@@ -1941,7 +1941,7 @@ const $r = (t, r) => {
1941
1941
  paddingInline: (g == null ? void 0 : g.paddingInline) ?? "md",
1942
1942
  ...g,
1943
1943
  style: {
1944
- ...d ? { borderBottom: "1px solid var(--sa-border-subtle, #0b120e24)" } : {},
1944
+ ...s ? { borderBottom: "1px solid var(--sa-border-subtle, #0b120e24)" } : {},
1945
1945
  ...g == null ? void 0 : g.style
1946
1946
  },
1947
1947
  children: [
@@ -1967,7 +1967,7 @@ const $r = (t, r) => {
1967
1967
  }
1968
1968
  )
1969
1969
  ] }),
1970
- o && /* @__PURE__ */ e(gr, { border: !0, size: "lg", text: o, ...s })
1970
+ o && /* @__PURE__ */ e(gr, { border: !0, size: "lg", text: o, ...d })
1971
1971
  ] }) : r : null,
1972
1972
  M()
1973
1973
  ]
@@ -2047,11 +2047,11 @@ const $r = (t, r) => {
2047
2047
  style: o,
2048
2048
  children: i,
2049
2049
  closeButton: l = Jr,
2050
- width: d,
2050
+ width: s,
2051
2051
  minWidth: c = "357px",
2052
2052
  maxWidth: h = "357px"
2053
- }, s) => {
2054
- const m = Gt(d ?? c), g = Gt(d ?? h);
2053
+ }, d) => {
2054
+ const m = Gt(s ?? c), g = Gt(s ?? h);
2055
2055
  return /* @__PURE__ */ e(
2056
2056
  xr,
2057
2057
  {
@@ -2059,7 +2059,7 @@ const $r = (t, r) => {
2059
2059
  isShow: r,
2060
2060
  position: "right",
2061
2061
  onHide: t,
2062
- ref: s,
2062
+ ref: d,
2063
2063
  style: {
2064
2064
  minWidth: m,
2065
2065
  maxWidth: g,
@@ -2096,7 +2096,7 @@ const $r = (t, r) => {
2096
2096
  }
2097
2097
  ), ur = Ce(
2098
2098
  ({ children: t, borderBottom: r = !0, padding: n = !0 }) => {
2099
- const o = se("lg");
2099
+ const o = de("lg");
2100
2100
  return /* @__PURE__ */ e(
2101
2101
  f,
2102
2102
  {
@@ -2113,7 +2113,7 @@ const $r = (t, r) => {
2113
2113
  }
2114
2114
  ), hr = Ce(
2115
2115
  ({ children: t, borderTop: r = !0, padding: n = !0 }) => {
2116
- const o = se("lg");
2116
+ const o = de("lg");
2117
2117
  return /* @__PURE__ */ e(
2118
2118
  f,
2119
2119
  {
@@ -2149,14 +2149,14 @@ const $r = (t, r) => {
2149
2149
  action: o,
2150
2150
  header: i,
2151
2151
  footer: l,
2152
- actionContainer: d,
2152
+ actionContainer: s,
2153
2153
  containerProps: c,
2154
2154
  bodyProps: h,
2155
- headerProps: s = { borderBottom: !0 },
2155
+ headerProps: d = { borderBottom: !0 },
2156
2156
  footerProps: m = { borderTop: !0 },
2157
2157
  variantTag: g = "info"
2158
2158
  }) => {
2159
- const y = se("lg"), x = () => n ? /* @__PURE__ */ u(f, { direction: "row", gap: "sm", align: "center", children: [
2159
+ const y = de("lg"), x = () => n ? /* @__PURE__ */ u(f, { direction: "row", gap: "sm", align: "center", children: [
2160
2160
  /* @__PURE__ */ e(v, { fontWeight: "medium", children: r }),
2161
2161
  /* @__PURE__ */ e(Ne, { border: !0, text: n, variant: g })
2162
2162
  ] }) : /* @__PURE__ */ e(v, { fontWeight: "medium", children: r }), k = () => i || /* @__PURE__ */ u(
@@ -2173,7 +2173,7 @@ const $r = (t, r) => {
2173
2173
  {
2174
2174
  direction: "column",
2175
2175
  style: y ? { width: "100%", maxWidth: "19.313rem" } : { flex: 1 },
2176
- ...d,
2176
+ ...s,
2177
2177
  children: o ?? null
2178
2178
  }
2179
2179
  )
@@ -2196,14 +2196,14 @@ const $r = (t, r) => {
2196
2196
  ...(c == null ? void 0 : c.style) ?? {}
2197
2197
  },
2198
2198
  children: [
2199
- i !== null && p ? /* @__PURE__ */ e(ur, { ...s, children: k() }) : null,
2199
+ i !== null && p ? /* @__PURE__ */ e(ur, { ...d, children: k() }) : null,
2200
2200
  /* @__PURE__ */ e(Yr, { ...h, children: t }),
2201
2201
  l ? /* @__PURE__ */ e(hr, { ...m, children: l }) : null
2202
2202
  ]
2203
2203
  }
2204
2204
  );
2205
2205
  }
2206
- ), Xr = (t) => /* @__PURE__ */ e(v, { variant: "h1", children: t.children, ...t.props }), Kr = (t) => /* @__PURE__ */ e(v, { variant: "h2", children: t.children, ...t.props }), en = (t) => /* @__PURE__ */ e(v, { variant: "h3", children: t.children, ...t.props }), tn = (t) => /* @__PURE__ */ e(v, { variant: "h4", children: t.children, ...t.props }), rn = (t) => /* @__PURE__ */ e(v, { variant: "h5", children: t.children, ...t.props }), nn = (t) => /* @__PURE__ */ e(v, { variant: "h6", children: t.children, ...t.props }), on = (t) => /* @__PURE__ */ e(v, { variant: "sub-h1", children: t.children, ...t.props }), ln = (t) => /* @__PURE__ */ e(v, { variant: "sub-h2", children: t.children, ...t.props }), cn = (t) => /* @__PURE__ */ e(v, { variant: "sub-h3", children: t.children, ...t.props }), an = (t) => /* @__PURE__ */ e(v, { variant: "body-1", children: t.children, ...t.props }), dn = (t) => /* @__PURE__ */ e(v, { variant: "body-2", children: t.children, ...t.props }), sn = (t) => /* @__PURE__ */ e(v, { variant: "body-3", children: t.children, ...t.props }), xe = {
2206
+ ), Xr = (t) => /* @__PURE__ */ e(v, { variant: "h1", children: t.children, ...t.props }), Kr = (t) => /* @__PURE__ */ e(v, { variant: "h2", children: t.children, ...t.props }), en = (t) => /* @__PURE__ */ e(v, { variant: "h3", children: t.children, ...t.props }), tn = (t) => /* @__PURE__ */ e(v, { variant: "h4", children: t.children, ...t.props }), rn = (t) => /* @__PURE__ */ e(v, { variant: "h5", children: t.children, ...t.props }), nn = (t) => /* @__PURE__ */ e(v, { variant: "h6", children: t.children, ...t.props }), on = (t) => /* @__PURE__ */ e(v, { variant: "sub-h1", children: t.children, ...t.props }), ln = (t) => /* @__PURE__ */ e(v, { variant: "sub-h2", children: t.children, ...t.props }), cn = (t) => /* @__PURE__ */ e(v, { variant: "sub-h3", children: t.children, ...t.props }), an = (t) => /* @__PURE__ */ e(v, { variant: "body-1", children: t.children, ...t.props }), sn = (t) => /* @__PURE__ */ e(v, { variant: "body-2", children: t.children, ...t.props }), dn = (t) => /* @__PURE__ */ e(v, { variant: "body-3", children: t.children, ...t.props }), xe = {
2207
2207
  H1: Xr,
2208
2208
  H2: Kr,
2209
2209
  H3: en,
@@ -2214,8 +2214,8 @@ const $r = (t, r) => {
2214
2214
  SubH2: ln,
2215
2215
  SubH3: cn,
2216
2216
  Body1: an,
2217
- Body2: dn,
2218
- Body3: sn
2217
+ Body2: sn,
2218
+ Body3: dn
2219
2219
  }, Ee = () => {
2220
2220
  const [t, r] = it(), n = rt(t.toString()), o = ir(), i = Ze(), l = o.id;
2221
2221
  return {
@@ -2241,42 +2241,42 @@ const $r = (t, r) => {
2241
2241
  withSearchParam: o = !0,
2242
2242
  setSearchParams: i,
2243
2243
  searchQueries: l,
2244
- dropdownSearchKey: d,
2244
+ dropdownSearchKey: s,
2245
2245
  filterKey: c = "filter",
2246
2246
  pageKey: h = "page"
2247
2247
  }) => {
2248
2248
  if (o) {
2249
- let s;
2249
+ let d;
2250
2250
  switch (n) {
2251
2251
  case "search":
2252
- s = gn(t);
2252
+ d = gn(t);
2253
2253
  break;
2254
2254
  case "dropdown":
2255
2255
  case "dropdown-multiple":
2256
- s = un(t);
2256
+ d = un(t);
2257
2257
  break;
2258
2258
  case "radio":
2259
- s = hn(t);
2259
+ d = hn(t);
2260
2260
  break;
2261
2261
  case "date-range":
2262
- s = fn(t);
2262
+ d = fn(t);
2263
2263
  break;
2264
2264
  case "advanced-date-range":
2265
- s = yn(t);
2265
+ d = yn(t);
2266
2266
  break;
2267
2267
  case "date":
2268
- s = mn(t);
2268
+ d = mn(t);
2269
2269
  break;
2270
2270
  default:
2271
- s = t;
2271
+ d = t;
2272
2272
  break;
2273
2273
  }
2274
- if (typeof s < "u") {
2274
+ if (typeof d < "u") {
2275
2275
  const g = {
2276
2276
  ...l[c] && typeof l[c] == "string" ? JSON.parse(l[c]) : void 0,
2277
- [r]: s
2277
+ [r]: d
2278
2278
  }, y = { ...l };
2279
- d && typeof d == "string" && delete y[d], delete y[h];
2279
+ s && typeof s == "string" && delete y[s], delete y[h];
2280
2280
  const x = {
2281
2281
  ...y,
2282
2282
  [c]: JSON.stringify(g)
@@ -2294,24 +2294,24 @@ const $r = (t, r) => {
2294
2294
  searchParams: n,
2295
2295
  get: o
2296
2296
  }) => {
2297
- const i = n.get(r) || void 0, l = i && typeof i == "string" ? JSON.parse(i) : void 0, d = l ? l[t] : void 0;
2298
- return o === "label" && d ? JSON.parse(d)[0].label : o === "value" && d ? JSON.parse(d)[0].value : d;
2297
+ const i = n.get(r) || void 0, l = i && typeof i == "string" ? JSON.parse(i) : void 0, s = l ? l[t] : void 0;
2298
+ return o === "label" && s ? JSON.parse(s)[0].label : o === "value" && s ? JSON.parse(s)[0].value : s;
2299
2299
  }, pn = ({
2300
2300
  name: t,
2301
2301
  filterKey: r = "filter",
2302
2302
  searchParams: n,
2303
2303
  get: o
2304
2304
  }) => {
2305
- const i = n.get(r) || void 0, l = i && typeof i == "string" ? JSON.parse(i) : void 0, d = l ? l[t] : void 0;
2306
- return o === "label" && d ? JSON.parse(d).map((c) => c.label) : o === "value" && d ? JSON.parse(d).map((c) => c.value) : o === "array" && d ? JSON.parse(d) : d;
2305
+ const i = n.get(r) || void 0, l = i && typeof i == "string" ? JSON.parse(i) : void 0, s = l ? l[t] : void 0;
2306
+ return o === "label" && s ? JSON.parse(s).map((c) => c.label) : o === "value" && s ? JSON.parse(s).map((c) => c.value) : o === "array" && s ? JSON.parse(s) : s;
2307
2307
  }, yo = ({
2308
2308
  name: t,
2309
2309
  filterKey: r = "filter",
2310
2310
  searchParams: n,
2311
2311
  get: o
2312
2312
  }) => {
2313
- const i = n.get(r) || void 0, l = i && typeof i == "string" ? JSON.parse(i) : void 0, d = l ? l[t] : void 0;
2314
- return o === "id" && d ? JSON.parse(d).id : o === "label" && d ? JSON.parse(d).label : o === "value" && d ? JSON.parse(d).value : d;
2313
+ const i = n.get(r) || void 0, l = i && typeof i == "string" ? JSON.parse(i) : void 0, s = l ? l[t] : void 0;
2314
+ return o === "id" && s ? JSON.parse(s).id : o === "label" && s ? JSON.parse(s).label : o === "value" && s ? JSON.parse(s).value : s;
2315
2315
  }, fr = (t, r, n) => {
2316
2316
  const o = r.get(n || "filter") || void 0, i = o && typeof o == "string" ? JSON.parse(o) : void 0;
2317
2317
  return i ? i[t] : void 0;
@@ -2337,8 +2337,8 @@ const $r = (t, r) => {
2337
2337
  perPageKey: n = "perPage",
2338
2338
  pageKey: o = "page"
2339
2339
  }) => {
2340
- const i = t.get(r) || void 0, l = t.get(n) || void 0, d = t.get(o) || void 0;
2341
- return !!i || !!l || !!d;
2340
+ const i = t.get(r) || void 0, l = t.get(n) || void 0, s = t.get(o) || void 0;
2341
+ return !!i || !!l || !!s;
2342
2342
  }, bn = ({
2343
2343
  isOpen: t,
2344
2344
  onClose: r,
@@ -2346,8 +2346,8 @@ const $r = (t, r) => {
2346
2346
  pageKey: o,
2347
2347
  filters: i
2348
2348
  }) => {
2349
- const { searchParams: l, setSearchParams: d, searchQueries: c } = Ee(), [h, s] = B({}), m = () => {
2350
- l.delete(n || "filter"), d(l);
2349
+ const { searchParams: l, setSearchParams: s, searchQueries: c } = Ee(), [h, d] = B({}), m = () => {
2350
+ l.delete(n || "filter"), s(l);
2351
2351
  }, g = (y, x) => {
2352
2352
  switch (y.type) {
2353
2353
  case "radio": {
@@ -2392,10 +2392,10 @@ const $r = (t, r) => {
2392
2392
  searchHighlightPlaceholder: o,
2393
2393
  extendedFilter: i,
2394
2394
  showSearchFilter: l = !0,
2395
- showStatusFilter: d = !0,
2395
+ showStatusFilter: s = !0,
2396
2396
  filterKey: c = "filter",
2397
2397
  pageKey: h = "page",
2398
- customWidthSearch: s,
2398
+ customWidthSearch: d,
2399
2399
  handleOnReset: m,
2400
2400
  filterConfigs: g,
2401
2401
  buttonToggleProps: y,
@@ -2414,7 +2414,7 @@ const $r = (t, r) => {
2414
2414
  console.error("Filter parameter is not a valid JSON:", q);
2415
2415
  }
2416
2416
  return !1;
2417
- })()), P = se("md");
2417
+ })()), P = de("md");
2418
2418
  return Z(() => {
2419
2419
  te(N);
2420
2420
  }, [N]), Z(() => {
@@ -2499,7 +2499,7 @@ const $r = (t, r) => {
2499
2499
  children: M ? "Filter" : void 0
2500
2500
  }
2501
2501
  ),
2502
- d && /* @__PURE__ */ u(
2502
+ s && /* @__PURE__ */ u(
2503
2503
  f,
2504
2504
  {
2505
2505
  direction: "column",
@@ -2564,7 +2564,7 @@ const $r = (t, r) => {
2564
2564
  direction: "column",
2565
2565
  gap: "sm",
2566
2566
  style: {
2567
- width: s && P ? s : P ? "310px" : ""
2567
+ width: d && P ? d : P ? "310px" : ""
2568
2568
  },
2569
2569
  children: [
2570
2570
  p && /* @__PURE__ */ u(xe.SubH3, { children: [
@@ -2606,10 +2606,10 @@ function wn({
2606
2606
  pageKey: o = "page",
2607
2607
  searchKey: i = "q"
2608
2608
  }) {
2609
- const { searchParams: l, setSearchParams: d, searchQueries: c } = Ee(), h = de(
2609
+ const { searchParams: l, setSearchParams: s, searchQueries: c } = Ee(), h = se(
2610
2610
  () => Object.fromEntries(t.map((C) => [C.key, C])),
2611
2611
  [t]
2612
- ), s = de(() => {
2612
+ ), d = se(() => {
2613
2613
  const C = (l.get(n) || "").split(",").map((A) => A.trim()).filter(Boolean);
2614
2614
  let L = [];
2615
2615
  try {
@@ -2630,33 +2630,33 @@ function wn({
2630
2630
  ), g = G(
2631
2631
  (C) => {
2632
2632
  const L = { ...c };
2633
- C.length ? L[n] = C.join(",") : delete L[n], d(L);
2633
+ C.length ? L[n] = C.join(",") : delete L[n], s(L);
2634
2634
  },
2635
- [c, n, d]
2635
+ [c, n, s]
2636
2636
  ), y = G(
2637
2637
  (C) => {
2638
- s.includes(C) || g([...s, C]);
2638
+ d.includes(C) || g([...d, C]);
2639
2639
  },
2640
- [s, g]
2640
+ [d, g]
2641
2641
  ), x = G(
2642
2642
  (C) => {
2643
- const L = { ...c }, A = s.filter(($) => $ !== C);
2643
+ const L = { ...c }, A = d.filter(($) => $ !== C);
2644
2644
  A.length ? L[n] = A.join(",") : delete L[n];
2645
2645
  const w = m(L);
2646
- C in w && (delete w[C], Object.keys(w).length ? L[r] = JSON.stringify(w) : delete L[r]), delete L[o], d(L);
2646
+ C in w && (delete w[C], Object.keys(w).length ? L[r] = JSON.stringify(w) : delete L[r]), delete L[o], s(L);
2647
2647
  },
2648
2648
  [
2649
2649
  c,
2650
- s,
2650
+ d,
2651
2651
  n,
2652
2652
  r,
2653
2653
  o,
2654
2654
  m,
2655
- d
2655
+ s
2656
2656
  ]
2657
2657
  ), k = G(
2658
- (C) => s.includes(C) ? x(C) : y(C),
2659
- [s, y, x]
2658
+ (C) => d.includes(C) ? x(C) : y(C),
2659
+ [d, y, x]
2660
2660
  ), p = G(
2661
2661
  (C) => {
2662
2662
  switch (C.type) {
@@ -2698,24 +2698,24 @@ function wn({
2698
2698
  name: C.key,
2699
2699
  type: Dn(C.type),
2700
2700
  searchQueries: c,
2701
- setSearchParams: d,
2701
+ setSearchParams: s,
2702
2702
  filterKey: r,
2703
2703
  pageKey: o
2704
2704
  });
2705
2705
  },
2706
- [c, d, r, o]
2706
+ [c, s, r, o]
2707
2707
  ), M = G(
2708
2708
  (C) => {
2709
2709
  const L = { ...c }, A = m(L);
2710
- C in A && (delete A[C], Object.keys(A).length ? L[r] = JSON.stringify(A) : delete L[r]), delete L[o], d(L);
2710
+ C in A && (delete A[C], Object.keys(A).length ? L[r] = JSON.stringify(A) : delete L[r]), delete L[o], s(L);
2711
2711
  },
2712
- [c, r, o, m, d]
2712
+ [c, r, o, m, s]
2713
2713
  ), S = G(() => {
2714
2714
  const C = { ...c };
2715
- delete C[r], delete C[n], delete C[o], d(C);
2716
- }, [c, r, n, o, d]), T = s.length > 0;
2715
+ delete C[r], delete C[n], delete C[o], s(C);
2716
+ }, [c, r, n, o, s]), T = d.length > 0;
2717
2717
  return {
2718
- activeKeys: s,
2718
+ activeKeys: d,
2719
2719
  configByKey: h,
2720
2720
  hasActiveFilter: T,
2721
2721
  addFilter: y,
@@ -2729,13 +2729,13 @@ function wn({
2729
2729
  }
2730
2730
  const kn = {
2731
2731
  get(t) {
2732
- return st.get(t) ?? null;
2732
+ return dt.get(t) ?? null;
2733
2733
  },
2734
2734
  set(t, r) {
2735
- st.save(t, r);
2735
+ dt.save(t, r);
2736
2736
  },
2737
2737
  remove(t) {
2738
- st.delete(t);
2738
+ dt.delete(t);
2739
2739
  }
2740
2740
  }, mr = {
2741
2741
  columns: (t) => `filterbar:colprefs:${t}`,
@@ -2752,10 +2752,10 @@ function Sn({
2752
2752
  storage: n,
2753
2753
  onColumnsChange: o
2754
2754
  }) {
2755
- const i = de(
2755
+ const i = se(
2756
2756
  () => ({ order: t.map((S) => S.key), hidden: [] }),
2757
2757
  [t]
2758
- ), l = r ? mr.columns(r) : void 0, [d, c] = B(() => {
2758
+ ), l = r ? mr.columns(r) : void 0, [s, c] = B(() => {
2759
2759
  if (l) {
2760
2760
  const S = n.get(l);
2761
2761
  if (S && Array.isArray(S.order)) return mt(S, t);
@@ -2763,45 +2763,45 @@ function Sn({
2763
2763
  return i;
2764
2764
  }), h = t.map((S) => S.key).join("|");
2765
2765
  Z(() => c((S) => mt(S, t)), [h]);
2766
- const s = ne(!1);
2766
+ const d = ne(!1);
2767
2767
  Z(() => {
2768
- s.current || (s.current = !0, o == null || o(d));
2768
+ d.current || (d.current = !0, o == null || o(s));
2769
2769
  }, []);
2770
2770
  const m = G(
2771
2771
  (S) => {
2772
2772
  c(S), l && n.set(l, S), o == null || o(S);
2773
2773
  },
2774
2774
  [l, n, o]
2775
- ), g = de(() => {
2775
+ ), g = se(() => {
2776
2776
  const S = new Map(t.map((T) => [T.key, T]));
2777
- return d.order.filter((T) => S.has(T)).map((T) => ({ ...S.get(T), visible: !d.hidden.includes(T) }));
2778
- }, [d, t]), y = G(
2777
+ return s.order.filter((T) => S.has(T)).map((T) => ({ ...S.get(T), visible: !s.hidden.includes(T) }));
2778
+ }, [s, t]), y = G(
2779
2779
  (S) => {
2780
- const T = d.hidden.includes(S) ? d.hidden.filter((C) => C !== S) : [...d.hidden, S];
2781
- m({ ...d, hidden: T });
2780
+ const T = s.hidden.includes(S) ? s.hidden.filter((C) => C !== S) : [...s.hidden, S];
2781
+ m({ ...s, hidden: T });
2782
2782
  },
2783
- [d, m]
2783
+ [s, m]
2784
2784
  ), x = G(
2785
2785
  (S, T) => {
2786
2786
  if (S === T) return;
2787
- const C = [...d.order], [L] = C.splice(S, 1);
2788
- C.splice(T, 0, L), m({ ...d, order: C });
2787
+ const C = [...s.order], [L] = C.splice(S, 1);
2788
+ C.splice(T, 0, L), m({ ...s, order: C });
2789
2789
  },
2790
- [d, m]
2790
+ [s, m]
2791
2791
  ), k = G(
2792
2792
  (S) => {
2793
2793
  m({
2794
- ...d,
2794
+ ...s,
2795
2795
  hidden: S ? t.filter((T) => !T.locked).map((T) => T.key) : []
2796
2796
  });
2797
2797
  },
2798
- [d, t, m]
2798
+ [s, t, m]
2799
2799
  ), p = G(() => m(i), [m, i]), E = G(
2800
2800
  (S) => m(mt(S, t)),
2801
2801
  [m, t]
2802
- ), M = d.hidden.length === 0;
2802
+ ), M = s.hidden.length === 0;
2803
2803
  return {
2804
- state: d,
2804
+ state: s,
2805
2805
  orderedColumns: g,
2806
2806
  allVisible: M,
2807
2807
  toggleVisibility: y,
@@ -2819,7 +2819,7 @@ function Fn({
2819
2819
  getColumns: i,
2820
2820
  applyColumns: l
2821
2821
  }) {
2822
- const { searchParams: d, setSearchParams: c } = Ee(), h = t ? mr.savedViews(t) : void 0, [s, m] = B(
2822
+ const { searchParams: s, setSearchParams: c } = Ee(), h = t ? mr.savedViews(t) : void 0, [d, m] = B(
2823
2823
  () => h ? r.get(h) || [] : []
2824
2824
  ), g = G(
2825
2825
  (p) => {
@@ -2833,7 +2833,7 @@ function Fn({
2833
2833
  if (!E) return;
2834
2834
  const M = {};
2835
2835
  n.forEach((T) => {
2836
- const C = d.get(T);
2836
+ const C = s.get(T);
2837
2837
  C != null && (M[T] = C);
2838
2838
  });
2839
2839
  const S = {
@@ -2843,22 +2843,22 @@ function Fn({
2843
2843
  columns: i == null ? void 0 : i(),
2844
2844
  createdAt: Date.now()
2845
2845
  };
2846
- g([...s, S]);
2846
+ g([...d, S]);
2847
2847
  },
2848
- [n, d, i, g, s]
2848
+ [n, s, i, g, d]
2849
2849
  ), x = G(
2850
- (p) => g(s.filter((E) => E.id !== p)),
2851
- [g, s]
2850
+ (p) => g(d.filter((E) => E.id !== p)),
2851
+ [g, d]
2852
2852
  ), k = G(
2853
2853
  (p) => {
2854
- const E = Object.fromEntries(d.entries());
2854
+ const E = Object.fromEntries(s.entries());
2855
2855
  n.forEach((M) => delete E[M]), Object.assign(E, p.query), delete E[o], c(E), p.columns && (l == null || l(p.columns));
2856
2856
  },
2857
- [d, n, o, c, l]
2857
+ [s, n, o, c, l]
2858
2858
  );
2859
2859
  return {
2860
2860
  enabled: !!h,
2861
- views: s,
2861
+ views: d,
2862
2862
  saveView: y,
2863
2863
  deleteView: x,
2864
2864
  applyView: k
@@ -2943,8 +2943,8 @@ const En = ({
2943
2943
  setValue: o,
2944
2944
  clearValue: i,
2945
2945
  removeFilter: l
2946
- }) => /* @__PURE__ */ e(ee, { children: t.map((d) => {
2947
- const c = r[d];
2946
+ }) => /* @__PURE__ */ e(ee, { children: t.map((s) => {
2947
+ const c = r[s];
2948
2948
  if (!c) return null;
2949
2949
  const h = n(c);
2950
2950
  return /* @__PURE__ */ u(f, { direction: "row", display: "flex", align: "center", gap: "spacing-2", children: [
@@ -2953,15 +2953,15 @@ const En = ({
2953
2953
  {
2954
2954
  field: c,
2955
2955
  value: h,
2956
- onChange: (s) => o(c, s),
2957
- onClear: () => i(d)
2956
+ onChange: (d) => o(c, d),
2957
+ onClear: () => i(s)
2958
2958
  }
2959
2959
  ) : /* @__PURE__ */ e(
2960
2960
  Mn,
2961
2961
  {
2962
2962
  field: c,
2963
2963
  value: h || [],
2964
- onChange: (s) => o(c, s)
2964
+ onChange: (d) => o(c, d)
2965
2965
  }
2966
2966
  ),
2967
2967
  !c.locked && /* @__PURE__ */ e(
@@ -2972,10 +2972,10 @@ const En = ({
2972
2972
  size: "xs",
2973
2973
  iconLeft: /* @__PURE__ */ e(F, { name: "CrossSmall" }),
2974
2974
  "aria-label": `Remove ${c.label} filter`,
2975
- onClick: () => l(d)
2975
+ onClick: () => l(s)
2976
2976
  }
2977
2977
  )
2978
- ] }, d);
2978
+ ] }, s);
2979
2979
  }) }), Jt = (t) => `${t} Rows`, Wn = ({
2980
2980
  pagination: t,
2981
2981
  pageKey: r = "page",
@@ -2983,10 +2983,10 @@ const En = ({
2983
2983
  pageSizeOptions: o = [10, 25, 50, 100],
2984
2984
  defaultPerPage: i = 10,
2985
2985
  showResultCount: l = !0,
2986
- showPagination: d = !0
2986
+ showPagination: s = !0
2987
2987
  }) => {
2988
2988
  var E;
2989
- const { searchQueries: c, setSearchParams: h, searchParams: s } = Ee(), m = s.get(n), g = m ? Number(m) : i, y = (M) => {
2989
+ const { searchQueries: c, setSearchParams: h, searchParams: d } = Ee(), m = d.get(n), g = m ? Number(m) : i, y = (M) => {
2990
2990
  h({ ...c, [r]: String(M) });
2991
2991
  }, x = (M) => {
2992
2992
  h({
@@ -3020,7 +3020,7 @@ const En = ({
3020
3020
  M
3021
3021
  )) }) })
3022
3022
  ] }),
3023
- d && /* @__PURE__ */ e(
3023
+ s && /* @__PURE__ */ e(
3024
3024
  f,
3025
3025
  {
3026
3026
  direction: "column",
@@ -3035,6 +3035,7 @@ const En = ({
3035
3035
  rr,
3036
3036
  {
3037
3037
  size: "sm",
3038
+ variant: "subtle",
3038
3039
  currentPage: t != null && t.currentPage ? Number(t.currentPage) : 1,
3039
3040
  totalCount: t != null && t.totalPage ? Number(t.totalPage) : 1,
3040
3041
  onPageChange: y
@@ -3050,8 +3051,8 @@ function An(t, r, n = !0) {
3050
3051
  const o = (i) => {
3051
3052
  var c;
3052
3053
  if (i.metaKey || i.ctrlKey || i.altKey || i.key !== t) return;
3053
- const l = i.target, d = (c = l == null ? void 0 : l.tagName) == null ? void 0 : c.toLowerCase();
3054
- d === "input" || d === "textarea" || l != null && l.isContentEditable || (i.preventDefault(), r());
3054
+ const l = i.target, s = (c = l == null ? void 0 : l.tagName) == null ? void 0 : c.toLowerCase();
3055
+ s === "input" || s === "textarea" || l != null && l.isContentEditable || (i.preventDefault(), r());
3055
3056
  };
3056
3057
  return window.addEventListener("keydown", o), () => window.removeEventListener("keydown", o);
3057
3058
  }, [t, r, n]);
@@ -3063,18 +3064,18 @@ const zn = 240, In = ({
3063
3064
  placeholder: o = "Search",
3064
3065
  shortcut: i = "/"
3065
3066
  }) => {
3066
- const { searchParams: l, setSearchParams: d, searchQueries: c } = Ee(), h = fr(t, l, r) || "", [s, m] = B(!!h), [g, y] = B(!h), [x, k] = B(h), p = Cr(x, 350), E = ne(null);
3067
+ const { searchParams: l, setSearchParams: s, searchQueries: c } = Ee(), h = fr(t, l, r) || "", [d, m] = B(!!h), [g, y] = B(!h), [x, k] = B(h), p = Cr(x, 350), E = ne(null);
3067
3068
  Z(() => {
3068
3069
  k(h), h && m(!0);
3069
3070
  }, [h]), Z(() => {
3070
- s && y(!1);
3071
- }, [s]), Z(() => {
3071
+ d && y(!1);
3072
+ }, [d]), Z(() => {
3072
3073
  p !== h && et({
3073
3074
  value: p,
3074
3075
  name: t,
3075
3076
  type: "search",
3076
3077
  searchQueries: c,
3077
- setSearchParams: d,
3078
+ setSearchParams: s,
3078
3079
  filterKey: r,
3079
3080
  pageKey: n
3080
3081
  });
@@ -3104,11 +3105,11 @@ const zn = 240, In = ({
3104
3105
  f,
3105
3106
  {
3106
3107
  onTransitionEnd: () => {
3107
- s || y(!0);
3108
+ d || y(!0);
3108
3109
  },
3109
3110
  style: {
3110
3111
  position: "relative",
3111
- width: s ? zn : 0,
3112
+ width: d ? zn : 0,
3112
3113
  overflow: "hidden",
3113
3114
  transition: "width 220ms ease"
3114
3115
  },
@@ -3130,10 +3131,10 @@ const zn = 240, In = ({
3130
3131
  onBlur: () => {
3131
3132
  x || m(!1);
3132
3133
  },
3133
- tabIndex: s ? 0 : -1
3134
+ tabIndex: d ? 0 : -1
3134
3135
  }
3135
3136
  ),
3136
- s && !x && /* @__PURE__ */ e(
3137
+ d && !x && /* @__PURE__ */ e(
3137
3138
  f,
3138
3139
  {
3139
3140
  align: "center",
@@ -3168,8 +3169,8 @@ const zn = 240, In = ({
3168
3169
  onReorder: o,
3169
3170
  onSetAllHidden: i
3170
3171
  }) => {
3171
- const [l, d] = B(null), [c, h] = B(null), s = () => {
3172
- l !== null && c !== null && l !== c && o(l, c), d(null), h(null);
3172
+ const [l, s] = B(null), [c, h] = B(null), d = () => {
3173
+ l !== null && c !== null && l !== c && o(l, c), s(null), h(null);
3173
3174
  }, m = (g, y) => {
3174
3175
  const x = g + y;
3175
3176
  x < 0 || x >= t.length || o(g, x);
@@ -3229,12 +3230,12 @@ const zn = 240, In = ({
3229
3230
  gap: "sm",
3230
3231
  paddingBlock: "xs",
3231
3232
  draggable: x,
3232
- onDragStart: () => x && d(y),
3233
+ onDragStart: () => x && s(y),
3233
3234
  onDragOver: (p) => {
3234
3235
  p.preventDefault(), h(y);
3235
3236
  },
3236
- onDrop: s,
3237
- onDragEnd: s,
3237
+ onDrop: d,
3238
+ onDragEnd: d,
3238
3239
  style: {
3239
3240
  minHeight: 32,
3240
3241
  boxShadow: c === y && l !== null && l !== y ? "inset 0 2px 0 0 var(--sa-background-brand, #04254f)" : void 0
@@ -3299,7 +3300,7 @@ const zn = 240, In = ({
3299
3300
  onDelete: n,
3300
3301
  onSave: o
3301
3302
  }) => {
3302
- const [i, l] = B(""), d = () => {
3303
+ const [i, l] = B(""), s = () => {
3303
3304
  const c = i.trim();
3304
3305
  c && (o(c), l(""));
3305
3306
  };
@@ -3307,23 +3308,21 @@ const zn = 240, In = ({
3307
3308
  /* @__PURE__ */ e(Fe, { children: /* @__PURE__ */ e(
3308
3309
  _,
3309
3310
  {
3310
- variant: t.length > 0 ? "primary" : "outline",
3311
- tone: t.length > 0 ? "brand" : "neutral",
3311
+ variant: t.length > 0 ? "secondary" : "outline",
3312
+ tone: (t.length > 0, "neutral"),
3312
3313
  size: "sm",
3313
3314
  iconLeft: /* @__PURE__ */ e(F, { name: "Bookmark" }),
3314
3315
  "aria-label": "Saved views"
3315
3316
  }
3316
3317
  ) }),
3317
- /* @__PURE__ */ u(je, { style: {
3318
- width: "260px"
3319
- }, children: [
3320
- /* @__PURE__ */ e(
3321
- $e,
3322
- {
3323
- style: {
3324
- width: "260px"
3325
- },
3326
- children: /* @__PURE__ */ u(f, { direction: "column", padding: "xs", gap: "sm", children: [
3318
+ /* @__PURE__ */ u(
3319
+ je,
3320
+ {
3321
+ style: {
3322
+ width: "260px"
3323
+ },
3324
+ children: [
3325
+ /* @__PURE__ */ e($e, { children: /* @__PURE__ */ u(f, { direction: "column", padding: "xs", gap: "sm", children: [
3327
3326
  /* @__PURE__ */ e(v, { fontWeight: "semibold", color: "primary", children: "Saved Views" }),
3328
3327
  /* @__PURE__ */ e(
3329
3328
  f,
@@ -3355,44 +3354,41 @@ const zn = 240, In = ({
3355
3354
  ] }, c.id))
3356
3355
  }
3357
3356
  )
3358
- ] })
3359
- }
3360
- ),
3361
- /* @__PURE__ */ e(
3362
- er,
3363
- {
3364
- style: {
3365
- width: "260px"
3366
- },
3367
- children: /* @__PURE__ */ u(f, { direction: "row", gap: "xs", children: [
3368
- /* @__PURE__ */ e(f, { direction: "column", style: { flex: "1 0 0", minWidth: 0 }, children: /* @__PURE__ */ e(
3369
- Oe,
3370
- {
3371
- size: "sm",
3372
- fullWidth: !0,
3373
- placeholder: "Save current view as…",
3374
- value: i,
3375
- onChange: (c) => l(c.target.value),
3376
- onKeyDown: (c) => {
3377
- c.key === "Enter" && d();
3378
- }
3379
- }
3380
- ) }),
3381
- /* @__PURE__ */ e(
3382
- _,
3383
- {
3384
- variant: "primary",
3385
- tone: "brand",
3386
- size: "sm",
3387
- disabled: !i.trim(),
3388
- onClick: d,
3389
- children: "Save"
3390
- }
3391
- )
3392
- ] })
3393
- }
3394
- )
3395
- ] })
3357
+ ] }) }),
3358
+ /* @__PURE__ */ e(
3359
+ er,
3360
+ {
3361
+ children: /* @__PURE__ */ u(f, { direction: "row", gap: "xs", children: [
3362
+ /* @__PURE__ */ e(f, { direction: "column", style: { flex: "1 0 0", minWidth: 0 }, children: /* @__PURE__ */ e(
3363
+ Oe,
3364
+ {
3365
+ size: "sm",
3366
+ fullWidth: !0,
3367
+ placeholder: "Save current view as…",
3368
+ value: i,
3369
+ onChange: (c) => l(c.target.value),
3370
+ onKeyDown: (c) => {
3371
+ c.key === "Enter" && s();
3372
+ }
3373
+ }
3374
+ ) }),
3375
+ /* @__PURE__ */ e(
3376
+ _,
3377
+ {
3378
+ variant: "primary",
3379
+ tone: "brand",
3380
+ size: "sm",
3381
+ disabled: !i.trim(),
3382
+ onClick: s,
3383
+ children: "Save"
3384
+ }
3385
+ )
3386
+ ] })
3387
+ }
3388
+ )
3389
+ ]
3390
+ }
3391
+ )
3396
3392
  ] });
3397
3393
  }, xo = ({
3398
3394
  filterConfigs: t = [],
@@ -3401,10 +3397,10 @@ const zn = 240, In = ({
3401
3397
  pageKey: o = "page",
3402
3398
  perPageKey: i = "perPage",
3403
3399
  pageSizeOptions: l = [10, 25, 50, 100],
3404
- showPagination: d = !0,
3400
+ showPagination: s = !0,
3405
3401
  showResultCount: c = !0,
3406
3402
  searchable: h = !1,
3407
- searchKey: s = "q",
3403
+ searchKey: d = "q",
3408
3404
  searchPlaceholder: m = "Search",
3409
3405
  searchShortcut: g = "/",
3410
3406
  pagination: y,
@@ -3429,7 +3425,7 @@ const zn = 240, In = ({
3429
3425
  filterKey: r,
3430
3426
  activeFilterKey: n,
3431
3427
  pageKey: o,
3432
- searchKey: s
3428
+ searchKey: d
3433
3429
  }), N = Sn({
3434
3430
  columns: x,
3435
3431
  scopeId: p == null ? void 0 : p.scopeId,
@@ -3503,14 +3499,14 @@ const zn = 240, In = ({
3503
3499
  pageKey: o,
3504
3500
  perPageKey: i,
3505
3501
  pageSizeOptions: l,
3506
- showPagination: d,
3502
+ showPagination: s,
3507
3503
  showResultCount: c
3508
3504
  }
3509
3505
  ),
3510
3506
  h && /* @__PURE__ */ e(
3511
3507
  In,
3512
3508
  {
3513
- searchKey: s,
3509
+ searchKey: d,
3514
3510
  filterKey: r,
3515
3511
  pageKey: o,
3516
3512
  placeholder: m,
@@ -3544,13 +3540,13 @@ const zn = 240, In = ({
3544
3540
  const o = ne(null), [i, l] = B("100vh");
3545
3541
  return Z(() => {
3546
3542
  if (n) return;
3547
- const d = () => {
3543
+ const s = () => {
3548
3544
  if (o.current) {
3549
3545
  const c = o.current.getBoundingClientRect().top;
3550
3546
  l(`calc(100vh - ${c}px)`);
3551
3547
  }
3552
3548
  };
3553
- return d(), window.addEventListener("resize", d), () => window.removeEventListener("resize", d);
3549
+ return s(), window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
3554
3550
  }, [n]), /* @__PURE__ */ e(
3555
3551
  f,
3556
3552
  {
@@ -3576,7 +3572,7 @@ const zn = 240, In = ({
3576
3572
  advanceFilter: i,
3577
3573
  showFilter: l = !0
3578
3574
  }) => {
3579
- const d = se("md"), c = l ? /* @__PURE__ */ e(vn, { ...i }) : null;
3575
+ const s = de("md"), c = l ? /* @__PURE__ */ e(vn, { ...i }) : null;
3580
3576
  return /* @__PURE__ */ e(
3581
3577
  f,
3582
3578
  {
@@ -3593,7 +3589,7 @@ const zn = 240, In = ({
3593
3589
  flexShrink: 0,
3594
3590
  position: "relative",
3595
3591
  zIndex: 10,
3596
- flexDirection: d ? "row" : "column-reverse",
3592
+ flexDirection: s ? "row" : "column-reverse",
3597
3593
  gap: "16px"
3598
3594
  },
3599
3595
  children: o ? o({ filter: c }) : /* @__PURE__ */ u(ee, { children: [
@@ -3608,20 +3604,20 @@ const zn = 240, In = ({
3608
3604
  {
3609
3605
  style: {
3610
3606
  display: "flex",
3611
- flexDirection: d ? "row" : "column",
3607
+ flexDirection: s ? "row" : "column",
3612
3608
  gap: "8px",
3613
- width: d ? "auto" : "100%",
3609
+ width: s ? "auto" : "100%",
3614
3610
  textWrap: "nowrap"
3615
3611
  },
3616
3612
  children: t.map(
3617
- ({ title: s, icon: m, buttonProps: g, onClick: y }, x) => !s && !m ? null : /* @__PURE__ */ e(
3613
+ ({ title: d, icon: m, buttonProps: g, onClick: y }, x) => !d && !m ? null : /* @__PURE__ */ e(
3618
3614
  _,
3619
3615
  {
3620
- fullWidth: !d,
3616
+ fullWidth: !s,
3621
3617
  iconLeft: m ? /* @__PURE__ */ e(F, { name: m }) : void 0,
3622
3618
  onClick: y,
3623
3619
  ...g,
3624
- children: s
3620
+ children: d
3625
3621
  },
3626
3622
  `action-${x}`
3627
3623
  )
@@ -3671,11 +3667,11 @@ const zn = 240, In = ({
3671
3667
  showPagination: i = !0,
3672
3668
  totalData: l
3673
3669
  }) => {
3674
- const { searchQueries: d, setSearchParams: c, searchParams: h } = Ee(), s = h.get(n), m = (k) => {
3675
- c({ ...d, [r]: String(k) });
3670
+ const { searchQueries: s, setSearchParams: c, searchParams: h } = Ee(), d = h.get(n), m = (k) => {
3671
+ c({ ...s, [r]: String(k) });
3676
3672
  }, g = (k) => {
3677
3673
  c({
3678
- ...d,
3674
+ ...s,
3679
3675
  [n]: k,
3680
3676
  [r]: "1"
3681
3677
  });
@@ -3712,8 +3708,8 @@ const zn = 240, In = ({
3712
3708
  onChange: (k) => {
3713
3709
  g(k[0].value);
3714
3710
  },
3715
- value: s ? [{ label: `${s} per row`, value: s }] : [{ label: `${o} per row`, value: `${o}` }],
3716
- defaultValue: s ? [{ label: `${s} per row`, value: s }] : [{ label: `${o} per row`, value: `${o}` }]
3711
+ value: d ? [{ label: `${d} per row`, value: d }] : [{ label: `${o} per row`, value: `${o}` }],
3712
+ defaultValue: d ? [{ label: `${d} per row`, value: d }] : [{ label: `${o} per row`, value: `${o}` }]
3717
3713
  }
3718
3714
  ),
3719
3715
  /* @__PURE__ */ e(v, { children: `${y}-${x} of ${(t == null ? void 0 : t.totalData) || 0}` })
@@ -3737,7 +3733,7 @@ const zn = 240, In = ({
3737
3733
  }
3738
3734
  );
3739
3735
  }, _n = ({ filter: t, columnTitle: r }) => {
3740
- const [n, o] = B(!1), i = ne(null), l = ne(null), d = ne(null), [c, h] = B(""), [s, m] = B({ top: 0, left: 0 }), g = t.selectedValues, y = de(() => c ? t.options.filter(
3736
+ const [n, o] = B(!1), i = ne(null), l = ne(null), s = ne(null), [c, h] = B(""), [d, m] = B({ top: 0, left: 0 }), g = t.selectedValues, y = se(() => c ? t.options.filter(
3741
3737
  (p) => p.label.toLowerCase().includes(c.toLowerCase())
3742
3738
  ) : t.options, [t.options, c]);
3743
3739
  Z(() => {
@@ -3748,9 +3744,9 @@ const zn = 240, In = ({
3748
3744
  t.position === "left" || p.left + E > window.innerWidth ? M.right = window.innerWidth - p.right : M.left = p.left, m(M);
3749
3745
  }
3750
3746
  }, [n, t.position]), Z(() => {
3751
- n && d.current ? setTimeout(() => {
3747
+ n && s.current ? setTimeout(() => {
3752
3748
  var p;
3753
- return (p = d.current) == null ? void 0 : p.focus();
3749
+ return (p = s.current) == null ? void 0 : p.focus();
3754
3750
  }, 50) : h("");
3755
3751
  }, [n]), Z(() => {
3756
3752
  const p = (E) => {
@@ -3795,8 +3791,8 @@ const zn = 240, In = ({
3795
3791
  ref: i,
3796
3792
  style: {
3797
3793
  position: "fixed",
3798
- top: `${s.top}px`,
3799
- ...s.left !== void 0 ? { left: `${s.left}px` } : { right: `${s.right}px` },
3794
+ top: `${d.top}px`,
3795
+ ...d.left !== void 0 ? { left: `${d.left}px` } : { right: `${d.right}px` },
3800
3796
  backgroundColor: "white",
3801
3797
  borderRadius: "4px",
3802
3798
  minWidth: "280px",
@@ -3855,7 +3851,7 @@ const zn = 240, In = ({
3855
3851
  children: /* @__PURE__ */ e(
3856
3852
  Oe,
3857
3853
  {
3858
- ref: d,
3854
+ ref: s,
3859
3855
  placeholder: `Search ${r.toLowerCase()}...`,
3860
3856
  leftIcon: /* @__PURE__ */ e(F, { name: "Search", size: "sm" }),
3861
3857
  value: c,
@@ -4095,10 +4091,10 @@ const zn = 240, In = ({
4095
4091
  handleUpdate: o,
4096
4092
  handleDelete: i,
4097
4093
  isLoading: l,
4098
- visibleHandleDelete: d,
4094
+ visibleHandleDelete: s,
4099
4095
  visibleHandleUpdate: c,
4100
4096
  visibleHandleDetail: h,
4101
- showHeadBorder: s = !1,
4097
+ showHeadBorder: d = !1,
4102
4098
  scrollParentRef: m,
4103
4099
  frozenCount: g = 0,
4104
4100
  onFrozenCountChange: y,
@@ -4238,9 +4234,9 @@ const zn = 240, In = ({
4238
4234
  left: W ? I : void 0,
4239
4235
  zIndex: W ? 4 : 2,
4240
4236
  paddingLeft: z === 0 ? "12px" : "",
4241
- borderRight: s && !fe && !W ? oe : void 0,
4242
- borderBottom: s ? oe : void 0,
4243
- boxShadow: s && W ? ye : void 0,
4237
+ borderRight: d && !fe && !W ? oe : void 0,
4238
+ borderBottom: d ? oe : void 0,
4239
+ boxShadow: d && W ? ye : void 0,
4244
4240
  backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
4245
4241
  textAlign: D.textAlign === "text-right" ? "right" : D.textAlign === "text-center" ? "center" : "left",
4246
4242
  ...b(z, D.width)
@@ -4291,8 +4287,8 @@ const zn = 240, In = ({
4291
4287
  O && /* @__PURE__ */ e(
4292
4288
  "div",
4293
4289
  {
4294
- onMouseDown: (dt) => R(dt, z),
4295
- onClick: (dt) => dt.stopPropagation(),
4290
+ onMouseDown: (st) => R(st, z),
4291
+ onClick: (st) => st.stopPropagation(),
4296
4292
  role: "separator",
4297
4293
  "aria-orientation": "vertical",
4298
4294
  title: "Drag to resize",
@@ -4323,8 +4319,8 @@ const zn = 240, In = ({
4323
4319
  top: 0,
4324
4320
  right: 0,
4325
4321
  zIndex: 3,
4326
- borderBottom: s ? oe : void 0,
4327
- boxShadow: s && w ? ge : void 0
4322
+ borderBottom: d ? oe : void 0,
4323
+ boxShadow: d && w ? ge : void 0
4328
4324
  }
4329
4325
  }
4330
4326
  ) : null
@@ -4422,7 +4418,7 @@ const zn = 240, In = ({
4422
4418
  onClick: () => o(D),
4423
4419
  iconLeft: /* @__PURE__ */ e(F, { name: "Edit1", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
4424
4420
  }
4425
- ) }, "update") : W === "delete" && i && (d == null ? void 0 : d(D)) !== !1 ? /* @__PURE__ */ e(me, { label: "Delete", position: I, children: /* @__PURE__ */ e(
4421
+ ) }, "update") : W === "delete" && i && (s == null ? void 0 : s(D)) !== !1 ? /* @__PURE__ */ e(me, { label: "Delete", position: I, children: /* @__PURE__ */ e(
4426
4422
  _,
4427
4423
  {
4428
4424
  size: "xs",
@@ -4445,11 +4441,11 @@ const zn = 240, In = ({
4445
4441
  footerProps: o
4446
4442
  }) => {
4447
4443
  var g;
4448
- const i = ne(null), [l, d] = B(
4444
+ const i = ne(null), [l, s] = B(
4449
4445
  (r == null ? void 0 : r.defaultFrozenCount) ?? 0
4450
- ), c = (n == null ? void 0 : n.show) ?? !0, h = ne(null), s = (g = r == null ? void 0 : r.pagination) == null ? void 0 : g.totalData;
4451
- typeof s == "number" && (h.current = s);
4452
- const m = (o == null ? void 0 : o.showFooter) ?? (s === void 0 ? h.current !== 0 : s !== 0);
4446
+ ), c = (n == null ? void 0 : n.show) ?? !0, h = ne(null), d = (g = r == null ? void 0 : r.pagination) == null ? void 0 : g.totalData;
4447
+ typeof d == "number" && (h.current = d);
4448
+ const m = (o == null ? void 0 : o.showFooter) ?? (d === void 0 ? h.current !== 0 : d !== 0);
4453
4449
  return /* @__PURE__ */ u(Hn, { ...t, children: [
4454
4450
  c && /* @__PURE__ */ e(Tn, { ...n }),
4455
4451
  /* @__PURE__ */ e(
@@ -4468,7 +4464,7 @@ const zn = 240, In = ({
4468
4464
  ...r,
4469
4465
  scrollParentRef: i,
4470
4466
  frozenCount: r != null && r.enableFreezeColumns ? l : 0,
4471
- onFrozenCountChange: r != null && r.enableFreezeColumns ? d : void 0
4467
+ onFrozenCountChange: r != null && r.enableFreezeColumns ? s : void 0
4472
4468
  }
4473
4469
  ) : null
4474
4470
  }
@@ -4517,8 +4513,8 @@ const Co = qn(Pn), Lt = ({
4517
4513
  fullWidth: o = !1,
4518
4514
  ...i
4519
4515
  }) => {
4520
- var c, h, s;
4521
- const l = i.hideMessageError || !1, d = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
4516
+ var c, h, d;
4517
+ const l = i.hideMessageError || !1, s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
4522
4518
  return /* @__PURE__ */ u(
4523
4519
  f,
4524
4520
  {
@@ -4534,7 +4530,7 @@ const Co = qn(Pn), Lt = ({
4534
4530
  f,
4535
4531
  {
4536
4532
  direction: "column",
4537
- customMaxWidth: d,
4533
+ customMaxWidth: s,
4538
4534
  fullWidth: o,
4539
4535
  children: [
4540
4536
  /* @__PURE__ */ e(Q, { children: i.title }),
@@ -4546,7 +4542,7 @@ const Co = qn(Pn), Lt = ({
4546
4542
  f,
4547
4543
  {
4548
4544
  direction: "column",
4549
- customMaxWidth: d,
4545
+ customMaxWidth: s,
4550
4546
  fullWidth: o,
4551
4547
  children: [
4552
4548
  /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
@@ -4556,7 +4552,7 @@ const Co = qn(Pn), Lt = ({
4556
4552
  me,
4557
4553
  {
4558
4554
  label: (h = i.tooltip) == null ? void 0 : h.label,
4559
- arrowPosition: (s = i.tooltip) == null ? void 0 : s.arrowPosition,
4555
+ arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
4560
4556
  ...i.tooltip,
4561
4557
  children: /* @__PURE__ */ e(
4562
4558
  F,
@@ -4602,8 +4598,8 @@ const Co = qn(Pn), Lt = ({
4602
4598
  fullWidth: o = !1,
4603
4599
  ...i
4604
4600
  }) => {
4605
- var c, h, s;
4606
- const l = i.hideMessageError || !1, d = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
4601
+ var c, h, d;
4602
+ const l = i.hideMessageError || !1, s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
4607
4603
  return /* @__PURE__ */ u(
4608
4604
  f,
4609
4605
  {
@@ -4619,7 +4615,7 @@ const Co = qn(Pn), Lt = ({
4619
4615
  f,
4620
4616
  {
4621
4617
  direction: "column",
4622
- customMaxWidth: d,
4618
+ customMaxWidth: s,
4623
4619
  fullWidth: o,
4624
4620
  children: [
4625
4621
  /* @__PURE__ */ e(Q, { children: i.title }),
@@ -4631,7 +4627,7 @@ const Co = qn(Pn), Lt = ({
4631
4627
  f,
4632
4628
  {
4633
4629
  direction: "column",
4634
- customMaxWidth: d,
4630
+ customMaxWidth: s,
4635
4631
  fullWidth: o,
4636
4632
  children: [
4637
4633
  /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
@@ -4641,7 +4637,7 @@ const Co = qn(Pn), Lt = ({
4641
4637
  me,
4642
4638
  {
4643
4639
  label: (h = i.tooltip) == null ? void 0 : h.label,
4644
- arrowPosition: (s = i.tooltip) == null ? void 0 : s.arrowPosition,
4640
+ arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
4645
4641
  ...i.tooltip,
4646
4642
  children: /* @__PURE__ */ e(
4647
4643
  F,
@@ -4695,7 +4691,7 @@ const Co = qn(Pn), Lt = ({
4695
4691
  h.preventDefault(), h.stopPropagation(), h.dataTransfer && t.handleOnFileChange(h.dataTransfer.files.item(0));
4696
4692
  }, l = (h) => {
4697
4693
  h.preventDefault(), n(!0);
4698
- }, d = (h) => {
4694
+ }, s = (h) => {
4699
4695
  h.preventDefault(), n(!1);
4700
4696
  };
4701
4697
  return /* @__PURE__ */ u(
@@ -4710,7 +4706,7 @@ const Co = qn(Pn), Lt = ({
4710
4706
  onDragOver: o,
4711
4707
  onDrop: i,
4712
4708
  onDragEnter: l,
4713
- onDragLeave: d,
4709
+ onDragLeave: s,
4714
4710
  paddingBlock: "md",
4715
4711
  borderRadius: "rounded-md",
4716
4712
  style: {
@@ -5013,7 +5009,7 @@ const ii = (t) => {
5013
5009
  return;
5014
5010
  }
5015
5011
  o.current && o.current.click();
5016
- }, l = se("md"), d = t === "error" || typeof n.errorMessage == "string" && !!n.errorMessage, c = n.label ? /* @__PURE__ */ u(U, { direction: "row", align: "center", gap: "xs", children: [
5012
+ }, l = de("md"), s = t === "error" || typeof n.errorMessage == "string" && !!n.errorMessage, c = n.label ? /* @__PURE__ */ u(U, { direction: "row", align: "center", gap: "xs", children: [
5017
5013
  /* @__PURE__ */ e(v, { style: { fontSize: "14px", fontWeight: 500, color: "var(--sa-text-primary)" }, children: n.label }),
5018
5014
  n.optional && /* @__PURE__ */ e("span", { style: {
5019
5015
  background: "var(--sa-background-neutral)",
@@ -5028,7 +5024,7 @@ const ii = (t) => {
5028
5024
  alignItems: "center"
5029
5025
  }, children: "Optional" }),
5030
5026
  n.required && /* @__PURE__ */ e("span", { style: { fontSize: "14px", fontWeight: 500, color: "var(--sa-text-error)" }, children: "*" })
5031
- ] }) : null, h = n.description ? /* @__PURE__ */ e(v, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-subtlest, #6b6e76)", lineHeight: "18px" }, children: n.description }) : null, s = /* @__PURE__ */ u(ee, { children: [
5027
+ ] }) : null, h = n.description ? /* @__PURE__ */ e(v, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-subtlest, #6b6e76)", lineHeight: "18px" }, children: n.description }) : null, d = /* @__PURE__ */ u(ee, { children: [
5032
5028
  n.helperText && /* @__PURE__ */ e(v, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-subtlest, #6b6e76)", lineHeight: "18px" }, children: n.helperText }),
5033
5029
  n.errorText && t === "error" && /* @__PURE__ */ e(v, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-error, #a4133c)", lineHeight: "18px" }, children: n.errorText }),
5034
5030
  n.errorMessage && !n.errorText && /* @__PURE__ */ e(v, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-error, #a4133c)", lineHeight: "18px" }, children: n.errorMessage })
@@ -5073,8 +5069,8 @@ const ii = (t) => {
5073
5069
  {
5074
5070
  fileSupports: n.fileSupportOption,
5075
5071
  isDesktop: l,
5076
- errorMessage: d ? n.errorText || n.errorMessage || " " : void 0,
5077
- status: d ? "error" : "default",
5072
+ errorMessage: s ? n.errorText || n.errorMessage || " " : void 0,
5073
+ status: s ? "error" : "default",
5078
5074
  handleOnClick: i,
5079
5075
  handleOnFileChange: n.handleOnChangeFile
5080
5076
  }
@@ -5089,13 +5085,13 @@ const ii = (t) => {
5089
5085
  ] }),
5090
5086
  /* @__PURE__ */ u(U, { direction: "column", gap: "sm", style: { flex: 1, minWidth: 0 }, children: [
5091
5087
  g,
5092
- s
5088
+ d
5093
5089
  ] })
5094
5090
  ] }) : /* @__PURE__ */ u(U, { direction: "column", gap: "sm", style: { width: "100%" }, children: [
5095
5091
  c,
5096
5092
  h,
5097
5093
  g,
5098
- s
5094
+ d
5099
5095
  ] });
5100
5096
  }, li = ({
5101
5097
  size: t = "md",
@@ -5104,8 +5100,8 @@ const ii = (t) => {
5104
5100
  fullWidth: o = !1,
5105
5101
  ...i
5106
5102
  }) => {
5107
- var c, h, s;
5108
- const l = i.hideMessageError || !1, d = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
5103
+ var c, h, d;
5104
+ const l = i.hideMessageError || !1, s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
5109
5105
  return /* @__PURE__ */ u(
5110
5106
  f,
5111
5107
  {
@@ -5121,7 +5117,7 @@ const ii = (t) => {
5121
5117
  f,
5122
5118
  {
5123
5119
  direction: "column",
5124
- customMaxWidth: d,
5120
+ customMaxWidth: s,
5125
5121
  fullWidth: o,
5126
5122
  children: [
5127
5123
  /* @__PURE__ */ e(Q, { children: i.title }),
@@ -5133,7 +5129,7 @@ const ii = (t) => {
5133
5129
  f,
5134
5130
  {
5135
5131
  direction: "column",
5136
- customMaxWidth: d,
5132
+ customMaxWidth: s,
5137
5133
  fullWidth: o,
5138
5134
  children: [
5139
5135
  /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
@@ -5143,7 +5139,7 @@ const ii = (t) => {
5143
5139
  me,
5144
5140
  {
5145
5141
  label: (h = i.tooltip) == null ? void 0 : h.label,
5146
- arrowPosition: (s = i.tooltip) == null ? void 0 : s.arrowPosition,
5142
+ arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
5147
5143
  ...i.tooltip,
5148
5144
  children: /* @__PURE__ */ e(
5149
5145
  F,
@@ -5186,8 +5182,8 @@ const ii = (t) => {
5186
5182
  required: i = !1,
5187
5183
  ...l
5188
5184
  }) => {
5189
- var h, s, m, g;
5190
- const d = l.hideMessageError || !1, c = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
5185
+ var h, d, m, g;
5186
+ const s = l.hideMessageError || !1, c = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
5191
5187
  return /* @__PURE__ */ u(
5192
5188
  f,
5193
5189
  {
@@ -5224,7 +5220,7 @@ const ii = (t) => {
5224
5220
  /* @__PURE__ */ e(J, { condition: !!((h = l.tooltip) != null && h.label), children: /* @__PURE__ */ e(
5225
5221
  me,
5226
5222
  {
5227
- label: (s = l.tooltip) == null ? void 0 : s.label,
5223
+ label: (d = l.tooltip) == null ? void 0 : d.label,
5228
5224
  arrowPosition: (m = l.tooltip) == null ? void 0 : m.arrowPosition,
5229
5225
  ...l.tooltip,
5230
5226
  children: /* @__PURE__ */ e(
@@ -5297,7 +5293,7 @@ const ii = (t) => {
5297
5293
  )
5298
5294
  }
5299
5295
  ),
5300
- !d && l.errorMessage && /* @__PURE__ */ e(De, { message: l.errorMessage })
5296
+ !s && l.errorMessage && /* @__PURE__ */ e(De, { message: l.errorMessage })
5301
5297
  ]
5302
5298
  }
5303
5299
  );
@@ -5337,18 +5333,18 @@ const ii = (t) => {
5337
5333
  children: /* @__PURE__ */ e(
5338
5334
  Lt,
5339
5335
  {
5340
- of: (l = o.radioList) == null ? void 0 : l.map((d) => ({
5341
- ...d,
5342
- isChecked: o.radioIsChecked === d.id
5336
+ of: (l = o.radioList) == null ? void 0 : l.map((s) => ({
5337
+ ...s,
5338
+ isChecked: o.radioIsChecked === s.id
5343
5339
  })),
5344
- render: ({ value: d, id: c, isChecked: h, subInput: s, label: m, description: g }) => /* @__PURE__ */ u(f, { direction: "column", gap: "xs", customMaxWidth: i, children: [
5340
+ render: ({ value: s, id: c, isChecked: h, subInput: d, label: m, description: g }) => /* @__PURE__ */ u(f, { direction: "column", gap: "xs", customMaxWidth: i, children: [
5345
5341
  /* @__PURE__ */ e(
5346
5342
  Fr,
5347
5343
  {
5348
- id: `${c.toString()}-${d}`,
5344
+ id: `${c.toString()}-${s}`,
5349
5345
  name: o.groupName || m,
5350
5346
  label: m,
5351
- value: d,
5347
+ value: s,
5352
5348
  checked: h,
5353
5349
  onChange: (y) => o.onChecked({
5354
5350
  id: c,
@@ -5369,7 +5365,7 @@ const ii = (t) => {
5369
5365
  children: g
5370
5366
  }
5371
5367
  ),
5372
- s
5368
+ d
5373
5369
  ] })
5374
5370
  }
5375
5371
  )
@@ -5379,15 +5375,15 @@ const ii = (t) => {
5379
5375
  ]
5380
5376
  }
5381
5377
  );
5382
- }, di = ({
5378
+ }, si = ({
5383
5379
  size: t = "md",
5384
5380
  direction: r = "vertical",
5385
5381
  requiredTitle: n = "(Required)",
5386
5382
  fullWidth: o = !1,
5387
5383
  ...i
5388
5384
  }) => {
5389
- var c, h, s;
5390
- const l = i.hideMessageError || !1, d = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
5385
+ var c, h, d;
5386
+ const l = i.hideMessageError || !1, s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
5391
5387
  return /* @__PURE__ */ u(
5392
5388
  f,
5393
5389
  {
@@ -5403,7 +5399,7 @@ const ii = (t) => {
5403
5399
  f,
5404
5400
  {
5405
5401
  direction: "column",
5406
- customMaxWidth: d,
5402
+ customMaxWidth: s,
5407
5403
  fullWidth: o,
5408
5404
  children: [
5409
5405
  /* @__PURE__ */ e(Q, { children: i.title }),
@@ -5415,7 +5411,7 @@ const ii = (t) => {
5415
5411
  f,
5416
5412
  {
5417
5413
  direction: "column",
5418
- customMaxWidth: d,
5414
+ customMaxWidth: s,
5419
5415
  fullWidth: o,
5420
5416
  children: [
5421
5417
  /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
@@ -5425,7 +5421,7 @@ const ii = (t) => {
5425
5421
  me,
5426
5422
  {
5427
5423
  label: (h = i.tooltip) == null ? void 0 : h.label,
5428
- arrowPosition: (s = i.tooltip) == null ? void 0 : s.arrowPosition,
5424
+ arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
5429
5425
  ...i.tooltip,
5430
5426
  children: /* @__PURE__ */ e(
5431
5427
  F,
@@ -5462,7 +5458,7 @@ const ii = (t) => {
5462
5458
  ]
5463
5459
  }
5464
5460
  );
5465
- }, si = ({
5461
+ }, di = ({
5466
5462
  size: t = "md",
5467
5463
  direction: r = "vertical",
5468
5464
  requiredTitle: n = "(Required)",
@@ -5470,8 +5466,8 @@ const ii = (t) => {
5470
5466
  fullWidth: i = !1,
5471
5467
  ...l
5472
5468
  }) => {
5473
- var c, h, s;
5474
- const d = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
5469
+ var c, h, d;
5470
+ const s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
5475
5471
  return /* @__PURE__ */ u(
5476
5472
  f,
5477
5473
  {
@@ -5487,7 +5483,7 @@ const ii = (t) => {
5487
5483
  f,
5488
5484
  {
5489
5485
  direction: "column",
5490
- customMaxWidth: d,
5486
+ customMaxWidth: s,
5491
5487
  fullWidth: i,
5492
5488
  children: [
5493
5489
  /* @__PURE__ */ e(Q, { children: l.title }),
@@ -5499,7 +5495,7 @@ const ii = (t) => {
5499
5495
  f,
5500
5496
  {
5501
5497
  direction: "column",
5502
- customMaxWidth: d,
5498
+ customMaxWidth: s,
5503
5499
  fullWidth: i,
5504
5500
  children: [
5505
5501
  /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
@@ -5509,7 +5505,7 @@ const ii = (t) => {
5509
5505
  me,
5510
5506
  {
5511
5507
  label: (h = l.tooltip) == null ? void 0 : h.label,
5512
- arrowPosition: (s = l.tooltip) == null ? void 0 : s.arrowPosition,
5508
+ arrowPosition: (d = l.tooltip) == null ? void 0 : d.arrowPosition,
5513
5509
  ...l.tooltip,
5514
5510
  children: /* @__PURE__ */ e(
5515
5511
  F,
@@ -5549,26 +5545,26 @@ const ii = (t) => {
5549
5545
  size: r = "md",
5550
5546
  ...n
5551
5547
  }) => {
5552
- const o = Sr(), i = (d) => {
5553
- var h, s, m, g, y, x;
5554
- if (!d) return;
5555
- const c = n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : t === "secondary-danger" ? (s = (h = o == null ? void 0 : o.computed) == null ? void 0 : h.red) == null ? void 0 : s[600] : t === "secondary-primary" ? (g = (m = o == null ? void 0 : o.computed) == null ? void 0 : m.blue) == null ? void 0 : g[700] : (x = (y = o == null ? void 0 : o.computed) == null ? void 0 : y.gray) == null ? void 0 : x[50];
5556
- return /* @__PURE__ */ e(F, { name: d, size: r, style: { color: c } });
5548
+ const o = Sr(), i = (s) => {
5549
+ var h, d, m, g, y, x;
5550
+ if (!s) return;
5551
+ const c = n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : t === "secondary-danger" ? (d = (h = o == null ? void 0 : o.computed) == null ? void 0 : h.red) == null ? void 0 : d[600] : t === "secondary-primary" ? (g = (m = o == null ? void 0 : o.computed) == null ? void 0 : m.blue) == null ? void 0 : g[700] : (x = (y = o == null ? void 0 : o.computed) == null ? void 0 : y.gray) == null ? void 0 : x[50];
5552
+ return /* @__PURE__ */ e(F, { name: s, size: r, style: { color: c } });
5557
5553
  }, l = () => {
5558
- var c, h, s, m;
5554
+ var c, h, d, m;
5559
5555
  if (t !== "secondary-danger" && t !== "secondary-primary")
5560
5556
  return n.title;
5561
- const d = {
5562
- color: n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary-danger" ? (h = (c = o == null ? void 0 : o.computed) == null ? void 0 : c.red) == null ? void 0 : h[600] : (m = (s = o == null ? void 0 : o.computed) == null ? void 0 : s.blue) == null ? void 0 : m[700]
5557
+ const s = {
5558
+ color: n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary-danger" ? (h = (c = o == null ? void 0 : o.computed) == null ? void 0 : c.red) == null ? void 0 : h[600] : (m = (d = o == null ? void 0 : o.computed) == null ? void 0 : d.blue) == null ? void 0 : m[700]
5563
5559
  };
5564
5560
  switch (r) {
5565
5561
  case "xs":
5566
- return /* @__PURE__ */ e(xe.Body2, { props: { style: d }, children: n.title });
5562
+ return /* @__PURE__ */ e(xe.Body2, { props: { style: s }, children: n.title });
5567
5563
  case "sm":
5568
5564
  case "md":
5569
- return /* @__PURE__ */ e(xe.SubH3, { props: { style: d }, children: n.title });
5565
+ return /* @__PURE__ */ e(xe.SubH3, { props: { style: s }, children: n.title });
5570
5566
  case "lg":
5571
- return /* @__PURE__ */ e(xe.SubH2, { props: { style: d }, children: n.title });
5567
+ return /* @__PURE__ */ e(xe.SubH2, { props: { style: s }, children: n.title });
5572
5568
  default:
5573
5569
  return n.title;
5574
5570
  }
@@ -5604,8 +5600,8 @@ const ii = (t) => {
5604
5600
  fullWidth: o = !1,
5605
5601
  ...i
5606
5602
  }) => {
5607
- var c, h, s;
5608
- const l = i.hideMessageError || !1, d = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
5603
+ var c, h, d;
5604
+ const l = i.hideMessageError || !1, s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
5609
5605
  return /* @__PURE__ */ u(
5610
5606
  f,
5611
5607
  {
@@ -5621,7 +5617,7 @@ const ii = (t) => {
5621
5617
  f,
5622
5618
  {
5623
5619
  direction: "column",
5624
- customMaxWidth: d,
5620
+ customMaxWidth: s,
5625
5621
  fullWidth: o,
5626
5622
  children: [
5627
5623
  /* @__PURE__ */ e(Q, { children: i.title }),
@@ -5633,7 +5629,7 @@ const ii = (t) => {
5633
5629
  f,
5634
5630
  {
5635
5631
  direction: "column",
5636
- customMaxWidth: d,
5632
+ customMaxWidth: s,
5637
5633
  fullWidth: o,
5638
5634
  children: [
5639
5635
  /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
@@ -5643,7 +5639,7 @@ const ii = (t) => {
5643
5639
  me,
5644
5640
  {
5645
5641
  label: (h = i.tooltip) == null ? void 0 : h.label,
5646
- arrowPosition: (s = i.tooltip) == null ? void 0 : s.arrowPosition,
5642
+ arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
5647
5643
  ...i.tooltip,
5648
5644
  children: /* @__PURE__ */ e(
5649
5645
  F,
@@ -5691,8 +5687,8 @@ const ii = (t) => {
5691
5687
  };
5692
5688
  async function mi(t, r) {
5693
5689
  const n = new Image();
5694
- n.src = t, await new Promise((l, d) => {
5695
- n.onload = l, n.onerror = d;
5690
+ n.src = t, await new Promise((l, s) => {
5691
+ n.onload = l, n.onerror = s;
5696
5692
  });
5697
5693
  const o = document.createElement("canvas");
5698
5694
  o.width = r.width, o.height = r.height;
@@ -5708,9 +5704,9 @@ async function mi(t, r) {
5708
5704
  0,
5709
5705
  r.width,
5710
5706
  r.height
5711
- ), new Promise((l, d) => {
5707
+ ), new Promise((l, s) => {
5712
5708
  o.toBlob((c) => {
5713
- if (!c) return d("Canvas is empty");
5709
+ if (!c) return s("Canvas is empty");
5714
5710
  const h = new File([c], "cropped.png", { type: "image/png" });
5715
5711
  l(h);
5716
5712
  }, "image/png");
@@ -5733,12 +5729,12 @@ const Qt = {
5733
5729
  croppedImage: o,
5734
5730
  setCroppedImage: i,
5735
5731
  size: l = "96",
5736
- aspect: d = "1:1",
5732
+ aspect: s = "1:1",
5737
5733
  containerProps: c,
5738
5734
  maxFileSize: h = 2,
5739
- onError: s
5735
+ onError: d
5740
5736
  }, m) => {
5741
- const g = se("md"), [y, x] = B(!1), [k, p] = B(null), [E, M] = B(!1), [S, T] = B({ x: 0, y: 0 }), [C, L] = B(1), [A, w] = B(null);
5737
+ const g = de("md"), [y, x] = B(!1), [k, p] = B(null), [E, M] = B(!1), [S, T] = B({ x: 0, y: 0 }), [C, L] = B(1), [A, w] = B(null);
5742
5738
  Z(() => {
5743
5739
  r === null && i(null);
5744
5740
  }, [r]);
@@ -5760,14 +5756,14 @@ const Qt = {
5760
5756
  try {
5761
5757
  const P = await mi(k, A);
5762
5758
  if (h && P.size > h * 1024 * 1024) {
5763
- s == null || s(`Ukuran file maksimal ${h}MB`);
5759
+ d == null || d(`Ukuran file maksimal ${h}MB`);
5764
5760
  return;
5765
5761
  }
5766
5762
  t == null || t(P);
5767
5763
  const q = URL.createObjectURL(P);
5768
5764
  i(q, P), M(!1);
5769
5765
  } catch {
5770
- s == null || s("Gagal memproses gambar");
5766
+ d == null || d("Gagal memproses gambar");
5771
5767
  }
5772
5768
  }, N = ne(null), Y = () => {
5773
5769
  N.current && N.current.click();
@@ -5778,7 +5774,7 @@ const Qt = {
5778
5774
  (P = N.current) == null || P.click();
5779
5775
  }
5780
5776
  }));
5781
- const te = parseInt(l, 10), ue = Qt[d];
5777
+ const te = parseInt(l, 10), ue = Qt[s];
5782
5778
  let le, ie;
5783
5779
  return ue >= 1 ? (ie = te, le = te * ue) : (le = te, ie = te / ue), /* @__PURE__ */ u(
5784
5780
  f,
@@ -5935,7 +5931,7 @@ const Qt = {
5935
5931
  borderRadius: "var(--sa-radii-md)",
5936
5932
  boxShadow: "0 20px 60px rgba(0,0,0,0.3)",
5937
5933
  overflow: "hidden",
5938
- width: g ? d === "1:1" ? "min(90vw, 480px)" : `min(90vw, ${le * 2}px)` : "calc(100vw - 2rem)",
5934
+ width: g ? s === "1:1" ? "min(90vw, 480px)" : `min(90vw, ${le * 2}px)` : "calc(100vw - 2rem)",
5939
5935
  display: "flex",
5940
5936
  flexDirection: "column"
5941
5937
  },
@@ -5956,7 +5952,7 @@ const Qt = {
5956
5952
  image: k,
5957
5953
  crop: S,
5958
5954
  zoom: C,
5959
- aspect: d ? Qt[d] : void 0,
5955
+ aspect: s ? Qt[s] : void 0,
5960
5956
  onCropChange: T,
5961
5957
  onZoomChange: L,
5962
5958
  onCropComplete: $,
@@ -6002,8 +5998,8 @@ const Qt = {
6002
5998
  required: i = !1,
6003
5999
  ...l
6004
6000
  }) => {
6005
- var h, s, m;
6006
- const d = l.hideMessageError || !1, c = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
6001
+ var h, d, m;
6002
+ const s = l.hideMessageError || !1, c = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
6007
6003
  return /* @__PURE__ */ u(
6008
6004
  f,
6009
6005
  {
@@ -6040,7 +6036,7 @@ const Qt = {
6040
6036
  /* @__PURE__ */ e(J, { condition: !!((h = l.tooltip) != null && h.label), children: /* @__PURE__ */ e(
6041
6037
  me,
6042
6038
  {
6043
- label: (s = l.tooltip) == null ? void 0 : s.label,
6039
+ label: (d = l.tooltip) == null ? void 0 : d.label,
6044
6040
  arrowPosition: (m = l.tooltip) == null ? void 0 : m.arrowPosition,
6045
6041
  ...l.tooltip,
6046
6042
  children: /* @__PURE__ */ e(
@@ -6065,7 +6061,7 @@ const Qt = {
6065
6061
  ),
6066
6062
  /* @__PURE__ */ u(U, { direction: "column", gap: "xs", children: [
6067
6063
  /* @__PURE__ */ e(gi, { ...l.inputProps }),
6068
- !d && l.errorMessage && /* @__PURE__ */ e(De, { message: l.errorMessage })
6064
+ !s && l.errorMessage && /* @__PURE__ */ e(De, { message: l.errorMessage })
6069
6065
  ] })
6070
6066
  ]
6071
6067
  }
@@ -6077,7 +6073,7 @@ const Qt = {
6077
6073
  fullWidth: o = !1,
6078
6074
  ...i
6079
6075
  }) => {
6080
- var d, c, h;
6076
+ var s, c, h;
6081
6077
  const l = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
6082
6078
  return /* @__PURE__ */ u(
6083
6079
  f,
@@ -6112,7 +6108,7 @@ const Qt = {
6112
6108
  /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
6113
6109
  /* @__PURE__ */ e(Q, { fontSize: t, children: i.title }),
6114
6110
  /* @__PURE__ */ e(Q, { color: "error", fontSize: t, children: n }),
6115
- /* @__PURE__ */ e(J, { condition: !!((d = i.tooltip) != null && d.label), children: /* @__PURE__ */ e(
6111
+ /* @__PURE__ */ e(J, { condition: !!((s = i.tooltip) != null && s.label), children: /* @__PURE__ */ e(
6116
6112
  me,
6117
6113
  {
6118
6114
  label: (c = i.tooltip) == null ? void 0 : c.label,
@@ -6151,11 +6147,11 @@ const Qt = {
6151
6147
  disabled: l = !1
6152
6148
  }) => {
6153
6149
  var m;
6154
- const [d, c] = B([]);
6150
+ const [s, c] = B([]);
6155
6151
  Z(() => {
6156
6152
  t && c([...t.map((g) => ({ id: g.id, isActive: g.isActive }))]);
6157
6153
  }, [t]);
6158
- const h = (m = d.find((g) => g.id === r)) == null ? void 0 : m.isActive, s = G(() => {
6154
+ const h = (m = s.find((g) => g.id === r)) == null ? void 0 : m.isActive, d = G(() => {
6159
6155
  c(
6160
6156
  (g) => g.map((y) => y.id === r ? { ...y, isActive: !y.isActive } : y)
6161
6157
  ), n && n(!h);
@@ -6173,7 +6169,7 @@ const Qt = {
6173
6169
  {
6174
6170
  disabled: l,
6175
6171
  checked: h,
6176
- onChange: s,
6172
+ onChange: d,
6177
6173
  label: h ? "Active" : "Inactive"
6178
6174
  }
6179
6175
  )
@@ -6185,8 +6181,8 @@ const Qt = {
6185
6181
  InputSingleFile: li,
6186
6182
  CheckBoxOptions: ci,
6187
6183
  RadioOptions: ai,
6188
- InputTextArea: di,
6189
- ToggleForm: si,
6184
+ InputTextArea: si,
6185
+ ToggleForm: di,
6190
6186
  ActionButton: ui,
6191
6187
  FormTitle: hi,
6192
6188
  InputDate: fi,
@@ -6245,7 +6241,7 @@ const Qt = {
6245
6241
  }
6246
6242
  );
6247
6243
  }, Oo = ({ pageLayout: t, children: r, wrapperProps: n, containerProps: o }) => {
6248
- const i = se("md"), l = (o == null ? void 0 : o.customWidth) ?? 264;
6244
+ const i = de("md"), l = (o == null ? void 0 : o.customWidth) ?? 264;
6249
6245
  return /* @__PURE__ */ u(
6250
6246
  f,
6251
6247
  {
@@ -6486,10 +6482,10 @@ const $o = ({
6486
6482
  variant: o = "primary",
6487
6483
  variantTitle: i,
6488
6484
  leftIcon: l,
6489
- showButton: d = !0,
6485
+ showButton: s = !0,
6490
6486
  customHeight: c,
6491
6487
  childrenButton: h,
6492
- customIcon: s
6488
+ customIcon: d
6493
6489
  }) => {
6494
6490
  const m = () => {
6495
6491
  switch (o) {
@@ -6524,7 +6520,7 @@ const $o = ({
6524
6520
  marginBlock: "auto",
6525
6521
  customHeight: c,
6526
6522
  children: [
6527
- s || /* @__PURE__ */ e(bi, {}),
6523
+ d || /* @__PURE__ */ e(bi, {}),
6528
6524
  /* @__PURE__ */ e(f, { direction: "column", children: r.map((g, y) => /* @__PURE__ */ e(
6529
6525
  xe.Body1,
6530
6526
  {
@@ -6536,7 +6532,7 @@ const $o = ({
6536
6532
  },
6537
6533
  y
6538
6534
  )) }),
6539
- d ? m() : null
6535
+ s ? m() : null
6540
6536
  ]
6541
6537
  }
6542
6538
  );
@@ -6754,7 +6750,7 @@ function vi({ width: t, height: r }) {
6754
6750
  ) });
6755
6751
  }
6756
6752
  function Zo({ onClick: t }) {
6757
- const r = se("md");
6753
+ const r = de("md");
6758
6754
  return /* @__PURE__ */ u(
6759
6755
  f,
6760
6756
  {
@@ -7027,7 +7023,7 @@ function Di({ width: t, height: r }) {
7027
7023
  ) });
7028
7024
  }
7029
7025
  function Po({ onClick: t }) {
7030
- const r = se("md");
7026
+ const r = de("md");
7031
7027
  return /* @__PURE__ */ u(
7032
7028
  f,
7033
7029
  {
@@ -7736,7 +7732,7 @@ function wi({ width: t, height: r }) {
7736
7732
  ) });
7737
7733
  }
7738
7734
  function qo({ onClick: t }) {
7739
- const r = se("md");
7735
+ const r = de("md");
7740
7736
  return /* @__PURE__ */ u(
7741
7737
  f,
7742
7738
  {
@@ -7774,8 +7770,8 @@ function qo({ onClick: t }) {
7774
7770
  );
7775
7771
  }
7776
7772
  const Go = (t) => {
7777
- var n, o, i, l, d;
7778
- const r = se("md");
7773
+ var n, o, i, l, s;
7774
+ const r = de("md");
7779
7775
  return /* @__PURE__ */ u(
7780
7776
  vt,
7781
7777
  {
@@ -7804,7 +7800,7 @@ const Go = (t) => {
7804
7800
  display: "flex",
7805
7801
  direction: ((i = t.wrapperConfirmBtnProps) == null ? void 0 : i.direction) || "row",
7806
7802
  justify: ((l = t.wrapperConfirmBtnProps) == null ? void 0 : l.justify) || "flex-end",
7807
- gap: ((d = t.wrapperConfirmBtnProps) == null ? void 0 : d.gap) || "sm",
7803
+ gap: ((s = t.wrapperConfirmBtnProps) == null ? void 0 : s.gap) || "sm",
7808
7804
  ...t.wrapperConfirmBtnProps,
7809
7805
  children: [
7810
7806
  t.onCancel && /* @__PURE__ */ e(_, { secondary: !0, onClick: t.onCancel, size: "md", fullWidth: !0, children: t.titleCancelBtn || "Cancel" }),
@@ -7845,10 +7841,10 @@ const Go = (t) => {
7845
7841
  customHeight: o,
7846
7842
  paddingInline: i = "spacing-0",
7847
7843
  paddingBlock: l = "spacing-0",
7848
- header: d,
7844
+ header: s,
7849
7845
  footer: c,
7850
7846
  title: h,
7851
- titleTag: s,
7847
+ titleTag: d,
7852
7848
  action: m,
7853
7849
  actionContainer: g,
7854
7850
  containerProps: y,
@@ -7867,10 +7863,10 @@ const Go = (t) => {
7867
7863
  };
7868
7864
  return w(), window.addEventListener("resize", w), () => window.removeEventListener("resize", w);
7869
7865
  }, []);
7870
- const C = () => s ? /* @__PURE__ */ u(f, { direction: "row", gap: "sm", align: "center", children: [
7866
+ const C = () => d ? /* @__PURE__ */ u(f, { direction: "row", gap: "sm", align: "center", children: [
7871
7867
  /* @__PURE__ */ e(v, { fontWeight: "medium", children: h }),
7872
- /* @__PURE__ */ e(Ne, { border: !0, text: s, variant: E })
7873
- ] }) : /* @__PURE__ */ e(v, { fontWeight: "medium", children: h }), L = () => d || /* @__PURE__ */ u(
7868
+ /* @__PURE__ */ e(Ne, { border: !0, text: d, variant: E })
7869
+ ] }) : /* @__PURE__ */ e(v, { fontWeight: "medium", children: h }), L = () => s || /* @__PURE__ */ u(
7874
7870
  f,
7875
7871
  {
7876
7872
  direction: "row",
@@ -7882,7 +7878,7 @@ const Go = (t) => {
7882
7878
  /* @__PURE__ */ e(f, { direction: "column", ...g, children: m ?? null })
7883
7879
  ]
7884
7880
  }
7885
- ), A = !!(d || h || m);
7881
+ ), A = !!(s || h || m);
7886
7882
  return /* @__PURE__ */ u(
7887
7883
  f,
7888
7884
  {
@@ -7902,7 +7898,7 @@ const Go = (t) => {
7902
7898
  ...(y == null ? void 0 : y.style) ?? {}
7903
7899
  },
7904
7900
  children: [
7905
- d !== null && A ? /* @__PURE__ */ e(ur, { ...k, children: L() }) : null,
7901
+ s !== null && A ? /* @__PURE__ */ e(ur, { ...k, children: L() }) : null,
7906
7902
  /* @__PURE__ */ e(
7907
7903
  f,
7908
7904
  {
@@ -7924,16 +7920,16 @@ const Go = (t) => {
7924
7920
  }
7925
7921
  ), Uo = Ye.memo(
7926
7922
  ({ value: t, options: r = [], onChange: n, multiple: o }) => {
7927
- const i = (t == null ? void 0 : t.map((c) => c.value)) || [], l = (r == null ? void 0 : r.filter((c) => i.includes(c.value))) || [], d = (c) => {
7923
+ const i = (t == null ? void 0 : t.map((c) => c.value)) || [], l = (r == null ? void 0 : r.filter((c) => i.includes(c.value))) || [], s = (c) => {
7928
7924
  const h = [...l];
7929
- let s = [];
7930
- o ? s = i.includes(c.value) ? h.filter((m) => m.value !== c.value) : [...h, c] : s = [c], n == null || n(s);
7925
+ let d = [];
7926
+ o ? d = i.includes(c.value) ? h.filter((m) => m.value !== c.value) : [...h, c] : d = [c], n == null || n(d);
7931
7927
  };
7932
7928
  return /* @__PURE__ */ e(f, { direction: "row", gap: "sm", flexWrap: "wrap", children: r == null ? void 0 : r.map((c, h) => /* @__PURE__ */ e(
7933
7929
  _,
7934
7930
  {
7935
7931
  ...i.includes(c.value) ? { primary: !0 } : { secondary: !0 },
7936
- onClick: () => d(c),
7932
+ onClick: () => s(c),
7937
7933
  children: c.label
7938
7934
  },
7939
7935
  h
@@ -8048,15 +8044,15 @@ function Li(t) {
8048
8044
  viewMode: o,
8049
8045
  defaultViewMode: i = "modal",
8050
8046
  onViewModeChange: l,
8051
- showViewModeToggle: d = !0,
8047
+ showViewModeToggle: s = !0,
8052
8048
  showCloseButton: c = !0,
8053
8049
  size: h,
8054
- asideWidth: s,
8050
+ asideWidth: d,
8055
8051
  disableEscapeClose: m = !1,
8056
8052
  disableBackdropClose: g = !1,
8057
8053
  lockBodyScroll: y = !0,
8058
8054
  children: x
8059
- } = t, [k, p] = B(i), E = o ?? k, S = se("md") ? E : "fullscreen", T = G(
8055
+ } = t, [k, p] = B(i), E = o ?? k, S = de("md") ? E : "fullscreen", T = G(
8060
8056
  (Y) => {
8061
8057
  o === void 0 && p(Y), l == null || l(Y);
8062
8058
  },
@@ -8074,16 +8070,16 @@ function Li(t) {
8074
8070
  };
8075
8071
  return window.addEventListener("keydown", Y), () => window.removeEventListener("keydown", Y);
8076
8072
  }, [r, m, n]);
8077
- const L = de(
8073
+ const L = se(
8078
8074
  () => Qe(x, Mt),
8079
8075
  [x]
8080
- ), A = de(
8076
+ ), A = se(
8081
8077
  () => Qe(x, Bt),
8082
8078
  [x]
8083
- ), w = de(
8079
+ ), w = se(
8084
8080
  () => Qe(x, Wt),
8085
8081
  [x]
8086
- ), $ = de(
8082
+ ), $ = se(
8087
8083
  () => Qe(x, At),
8088
8084
  [x]
8089
8085
  );
@@ -8095,7 +8091,7 @@ function Li(t) {
8095
8091
  S === "sidebar" && ae["lyd-sidebar"]
8096
8092
  ].filter(Boolean).join(" "), X = {
8097
8093
  "--lyd-max-w": Ei(h),
8098
- ...s !== void 0 && { "--lyd-aside-w": s }
8094
+ ...d !== void 0 && { "--lyd-aside-w": d }
8099
8095
  }, N = () => {
8100
8096
  g || n();
8101
8097
  };
@@ -8119,7 +8115,7 @@ function Li(t) {
8119
8115
  /* @__PURE__ */ u("div", { className: ae["lyd-header"], children: [
8120
8116
  /* @__PURE__ */ e("div", { className: ae["lyd-header-content"], children: L }),
8121
8117
  /* @__PURE__ */ u("div", { className: ae["lyd-header-actions"], children: [
8122
- d && /* @__PURE__ */ e(Si, { value: E, onChange: T }),
8118
+ s && /* @__PURE__ */ e(Si, { value: E, onChange: T }),
8123
8119
  c && /* @__PURE__ */ e(
8124
8120
  "button",
8125
8121
  {
@@ -8267,16 +8263,16 @@ function Xo({
8267
8263
  Z(() => {
8268
8264
  let i = null, l = null;
8269
8265
  for (const h of r) {
8270
- const s = h.items.find((m) => m.to ? m.to === "/" ? o.pathname === "/" : !!(m.to === o.pathname || o.pathname.startsWith(m.to + "/")) : !1);
8271
- if (s) {
8272
- i = s, l = h;
8266
+ const d = h.items.find((m) => m.to ? m.to === "/" ? o.pathname === "/" : !!(m.to === o.pathname || o.pathname.startsWith(m.to + "/")) : !1);
8267
+ if (d) {
8268
+ i = d, l = h;
8273
8269
  break;
8274
8270
  }
8275
8271
  }
8276
- const d = [];
8277
- i != null && i.title && d.push(i.title), l != null && l.name && d.push(l.name.toTitleCase());
8278
- const c = (h, s) => h.length > 0 ? `${h.join(" - ")} | ${s}` : s;
8279
- document.title = (n || c)(d, t);
8272
+ const s = [];
8273
+ i != null && i.title && s.push(i.title), l != null && l.name && s.push(l.name.toTitleCase());
8274
+ const c = (h, d) => h.length > 0 ? `${h.join(" - ")} | ${d}` : d;
8275
+ document.title = (n || c)(s, t);
8280
8276
  }, [o.pathname]);
8281
8277
  }
8282
8278
  const Ko = () => {
@@ -8301,9 +8297,9 @@ const Ko = () => {
8301
8297
  function el(t) {
8302
8298
  var o, i;
8303
8299
  const r = t.decodedAccessToken;
8304
- return de(() => {
8305
- var h, s;
8306
- const l = ((s = (h = r == null ? void 0 : r.access) == null ? void 0 : h.role) == null ? void 0 : s.code) ?? "", d = Object.keys(t.role).reduce(
8300
+ return se(() => {
8301
+ var h, d;
8302
+ const l = ((d = (h = r == null ? void 0 : r.access) == null ? void 0 : h.role) == null ? void 0 : d.code) ?? "", s = Object.keys(t.role).reduce(
8307
8303
  (m, g) => {
8308
8304
  const y = `is${g.toLowerCase().replace(/(^\w|_\w)/g, (x) => x.replace("_", "").toUpperCase())}`;
8309
8305
  return { ...m, [y]: !1 };
@@ -8317,7 +8313,7 @@ function el(t) {
8317
8313
  ...m,
8318
8314
  [y]: l === t.role[g]
8319
8315
  };
8320
- }, d),
8316
+ }, s),
8321
8317
  hasRole: (m) => l === t.role[m],
8322
8318
  getRoleKey: () => l
8323
8319
  };
@@ -8418,7 +8414,7 @@ export {
8418
8414
  Ar as useAppState,
8419
8415
  el as useAuthRole,
8420
8416
  Xo as useDynamicTitle,
8421
- sr as useModuleSelection,
8417
+ dr as useModuleSelection,
8422
8418
  Ee as useRouteInfo,
8423
8419
  Ko as useRouteParams,
8424
8420
  Ir as useSidebarBadges,