@starasia/admin 8.23.0 → 8.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export * from "@starasia/alert";
2
2
  import { Badges as Dt, Badge as Ci } from "@starasia/badges";
3
3
  export * from "@starasia/badges";
4
- import { Box as m } from "@starasia/box";
4
+ import { Box as f } from "@starasia/box";
5
5
  export * from "@starasia/box";
6
6
  import { Breadcrumb as wi, BreadcrumbItem as on, BreadcrumbLink as Di } from "@starasia/breadcrumb";
7
7
  export * from "@starasia/breadcrumb";
@@ -98,8 +98,8 @@ const Oi = {
98
98
  ), i = K(
99
99
  (c, a) => {
100
100
  n((d) => {
101
- const f = typeof a == "function" ? a(d[c]) : a;
102
- return { ...d, [c]: f };
101
+ const m = typeof a == "function" ? a(d[c]) : a;
102
+ return { ...d, [c]: m };
103
103
  });
104
104
  },
105
105
  []
@@ -181,7 +181,7 @@ function $i({
181
181
  }
182
182
  const Rr = Gt(null);
183
183
  function ji({ children: t }) {
184
- const [r, n] = O(null), [o, i] = O(null), [l, s] = O(null), [c, a] = O(0), d = K(() => (a((f) => f + 1), () => a((f) => f - 1)), []);
184
+ const [r, n] = O(null), [o, i] = O(null), [l, s] = O(null), [c, a] = O(0), d = K(() => (a((m) => m + 1), () => a((m) => m - 1)), []);
185
185
  return /* @__PURE__ */ e(
186
186
  Rr.Provider,
187
187
  {
@@ -225,7 +225,7 @@ function jc({
225
225
  const Ir = Gt(null);
226
226
  function Pi({ children: t }) {
227
227
  const [r, n] = O({}), [o, i] = O({}), l = K((a, d) => {
228
- n((f) => f[a] === d ? f : { ...f, [a]: d });
228
+ n((m) => m[a] === d ? m : { ...m, [a]: d });
229
229
  }, []), s = K((a) => (i((d) => ({ ...d, [a]: (d[a] ?? 0) + 1 })), () => i((d) => ({
230
230
  ...d,
231
231
  [a]: Math.max(0, (d[a] ?? 0) - 1)
@@ -337,7 +337,7 @@ function Zc({
337
337
  sidebarHeaderContent: c,
338
338
  headerActions: a,
339
339
  profileRole: d,
340
- profileMenuButtons: f,
340
+ profileMenuButtons: m,
341
341
  profileMenuItems: p,
342
342
  logoutButton: g
343
343
  }) {
@@ -1218,8 +1218,8 @@ function Zc({
1218
1218
  ]
1219
1219
  }
1220
1220
  ) }),
1221
- (f && f.length > 0 || p) && /* @__PURE__ */ u(Ie, { children: [
1222
- f == null ? void 0 : f.map((S, _) => /* @__PURE__ */ e(Le, { children: /* @__PURE__ */ u(
1221
+ (m && m.length > 0 || p) && /* @__PURE__ */ u(Ie, { children: [
1222
+ m == null ? void 0 : m.map((S, _) => /* @__PURE__ */ e(Le, { children: /* @__PURE__ */ u(
1223
1223
  "button",
1224
1224
  {
1225
1225
  type: "button",
@@ -1311,9 +1311,9 @@ function Zc({
1311
1311
  /* @__PURE__ */ u(Lr, { isShow: I, onHide: Te, children: [
1312
1312
  /* @__PURE__ */ e(An, { children: "Confirmation Logout" }),
1313
1313
  /* @__PURE__ */ e(Mr, { children: "Are you sure you want to end the session and exit the page?" }),
1314
- /* @__PURE__ */ e(Rn, { children: /* @__PURE__ */ e(m, { direction: "column", display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ u(de, { direction: "row", gap: "sm", align: "center", children: [
1315
- /* @__PURE__ */ e(m, { direction: "column", children: /* @__PURE__ */ e(N, { secondary: !0, onClick: Te, children: "Cancel" }) }),
1316
- /* @__PURE__ */ e(m, { direction: "column", children: /* @__PURE__ */ e(N, { primary: !0, onClick: ke, children: "Yes, Sure" }) })
1314
+ /* @__PURE__ */ e(Rn, { children: /* @__PURE__ */ e(f, { direction: "column", display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ u(de, { direction: "row", gap: "sm", align: "center", children: [
1315
+ /* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(N, { secondary: !0, onClick: Te, children: "Cancel" }) }),
1316
+ /* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(N, { primary: !0, onClick: ke, children: "Yes, Sure" }) })
1317
1317
  ] }) }) })
1318
1318
  ] }),
1319
1319
  me && /* @__PURE__ */ u(ie, { children: [
@@ -1429,7 +1429,7 @@ function Zc({
1429
1429
  }
1430
1430
  const Ut = zr(
1431
1431
  ({ children: t, ...r }, n) => /* @__PURE__ */ e(
1432
- m,
1432
+ f,
1433
1433
  {
1434
1434
  ref: n,
1435
1435
  role: "button",
@@ -1451,7 +1451,7 @@ const Ut = zr(
1451
1451
  }) => {
1452
1452
  const [s, c] = O(!1);
1453
1453
  return /* @__PURE__ */ u(
1454
- m,
1454
+ f,
1455
1455
  {
1456
1456
  direction: "row",
1457
1457
  gap: "xs",
@@ -1492,21 +1492,21 @@ const Ut = zr(
1492
1492
  iconColor: o,
1493
1493
  hoverIconColor: i
1494
1494
  }) => {
1495
- const [l, s] = O(!1), c = o ?? "var(--sa-text-subtle, #8c8f97)", a = i ?? "var(--sa-text-subtle, #8c8f97)", d = t.length > 1 ? t[0] : void 0, f = !!(d != null && d.to || d != null && d.onClick), p = /* @__PURE__ */ e(
1495
+ const [l, s] = O(!1), c = o ?? "var(--sa-text-subtle, #8c8f97)", a = i ?? "var(--sa-text-subtle, #8c8f97)", d = t.length > 1 ? t[0] : void 0, m = !!(d != null && d.to || d != null && d.onClick), p = /* @__PURE__ */ e(
1496
1496
  M,
1497
1497
  {
1498
1498
  name: n || "ChevronLeft",
1499
1499
  size: "xs",
1500
- onMouseEnter: f ? () => s(!0) : void 0,
1501
- onMouseLeave: f ? () => s(!1) : void 0,
1500
+ onMouseEnter: m ? () => s(!0) : void 0,
1501
+ onMouseLeave: m ? () => s(!1) : void 0,
1502
1502
  style: {
1503
- color: f && l ? a : c,
1503
+ color: m && l ? a : c,
1504
1504
  transition: "color 0.15s ease",
1505
- cursor: f ? "pointer" : void 0
1505
+ cursor: m ? "pointer" : void 0
1506
1506
  }
1507
1507
  }
1508
1508
  ), g = d != null && d.to ? /* @__PURE__ */ e(Tt, { to: d.to, replace: !0, style: { textDecoration: "none" }, children: p }) : d != null && d.onClick ? /* @__PURE__ */ e(Ut, { onClick: d.onClick, children: p }) : p;
1509
- return /* @__PURE__ */ u(m, { direction: "row", gap: "xs", align: "center", children: [
1509
+ return /* @__PURE__ */ u(f, { direction: "row", gap: "xs", align: "center", children: [
1510
1510
  g,
1511
1511
  /* @__PURE__ */ e(wi, { separator: r, size: "md", children: t.map((x, W) => {
1512
1512
  const b = W === t.length - 1;
@@ -1524,7 +1524,7 @@ const Ut = zr(
1524
1524
  iconColor: l.iconColor,
1525
1525
  hoverIconColor: l.hoverIconColor
1526
1526
  }
1527
- ) : i ? /* @__PURE__ */ e(m, { direction: "row", children: /* @__PURE__ */ e(Tt, { to: i, replace: !0, style: { textDecoration: "none" }, children: /* @__PURE__ */ e(hn, { ...l }) }) }) : /* @__PURE__ */ e(m, { direction: "row", children: /* @__PURE__ */ e(Ut, { onClick: o, children: /* @__PURE__ */ e(hn, { ...l }) }) });
1527
+ ) : i ? /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Tt, { to: i, replace: !0, style: { textDecoration: "none" }, children: /* @__PURE__ */ e(hn, { ...l }) }) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Ut, { onClick: o, children: /* @__PURE__ */ e(hn, { ...l }) }) });
1528
1528
  }, fr = [
1529
1529
  // brand (blue)
1530
1530
  {
@@ -1647,9 +1647,9 @@ function qi({
1647
1647
  ]
1648
1648
  }
1649
1649
  ),
1650
- n.map((d, f) => {
1650
+ n.map((d, m) => {
1651
1651
  var b;
1652
- const p = o === d.id, g = l === d.id, x = ((b = d.items[0]) == null ? void 0 : b.icon) ?? "Grid", W = fr[(f + 1) % fr.length];
1652
+ const p = o === d.id, g = l === d.id, x = ((b = d.items[0]) == null ? void 0 : b.icon) ?? "Grid", W = fr[(m + 1) % fr.length];
1653
1653
  return /* @__PURE__ */ u(
1654
1654
  "button",
1655
1655
  {
@@ -1676,9 +1676,9 @@ function qc({
1676
1676
  "aria-label": r = "Pilih module"
1677
1677
  } = {}) {
1678
1678
  const n = Nn(), o = Ar(), { selectedGroupId: i, setSelectedGroupId: l } = _n(), [s, c] = O(!1), a = (d) => {
1679
- var f;
1679
+ var m;
1680
1680
  if (l(d), d !== null) {
1681
- const p = n.menus.find((x) => x.id === d), g = (f = p == null ? void 0 : p.items[0]) == null ? void 0 : f.to;
1681
+ const p = n.menus.find((x) => x.id === d), g = (m = p == null ? void 0 : p.items[0]) == null ? void 0 : m.to;
1682
1682
  g && o(g);
1683
1683
  }
1684
1684
  t == null || t(d);
@@ -1773,10 +1773,10 @@ const Ui = (t, r) => {
1773
1773
  verticalAlign: l
1774
1774
  }),
1775
1775
  [i, l]
1776
- ), a = () => typeof r == "string" ? /* @__PURE__ */ e(k, { fontWeight: "medium", color: "subtlest", children: r }) : r, d = () => typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ e(k, { color: "primary", fontWeight: "medium", children: t }) : t, f = () => typeof n == "string" || typeof n == "number" ? /* @__PURE__ */ e(k, { fontWeight: "medium", color: "subtlest", children: n }) : n;
1776
+ ), a = () => typeof r == "string" ? /* @__PURE__ */ e(k, { fontWeight: "medium", color: "subtlest", children: r }) : r, d = () => typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ e(k, { color: "primary", fontWeight: "medium", children: t }) : t, m = () => typeof n == "string" || typeof n == "number" ? /* @__PURE__ */ e(k, { fontWeight: "medium", color: "subtlest", children: n }) : n;
1777
1777
  return /* @__PURE__ */ u(He, { children: [
1778
1778
  /* @__PURE__ */ e(Ee, { style: s, width: o, children: a() }),
1779
- n ? /* @__PURE__ */ e(Ee, { style: c, width: 24, children: f() }) : null,
1779
+ n ? /* @__PURE__ */ e(Ee, { style: c, width: 24, children: m() }) : null,
1780
1780
  /* @__PURE__ */ e(Ee, { style: s, children: d() })
1781
1781
  ] });
1782
1782
  }
@@ -1816,7 +1816,7 @@ const Ui = (t, r) => {
1816
1816
  }
1817
1817
  };
1818
1818
  return /* @__PURE__ */ e(
1819
- m,
1819
+ f,
1820
1820
  {
1821
1821
  gap: c ? void 0 : "lg",
1822
1822
  direction: "row",
@@ -1828,8 +1828,8 @@ const Ui = (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: s.map((d, f) => /* @__PURE__ */ e(
1832
- m,
1831
+ children: s.map((d, m) => /* @__PURE__ */ e(
1832
+ f,
1833
1833
  {
1834
1834
  direction: "column",
1835
1835
  flex: c ? void 0 : "1",
@@ -1844,7 +1844,7 @@ const Ui = (t, r) => {
1844
1844
  }
1845
1845
  )
1846
1846
  },
1847
- f
1847
+ m
1848
1848
  ))
1849
1849
  }
1850
1850
  );
@@ -1852,7 +1852,7 @@ const Ui = (t, r) => {
1852
1852
  ), Yi = ({ backButton: t }) => {
1853
1853
  const [r, n] = O(!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
- m,
1855
+ f,
1856
1856
  {
1857
1857
  direction: "row",
1858
1858
  gap: "xs",
@@ -1898,7 +1898,7 @@ const Ui = (t, r) => {
1898
1898
  subHeaders: c,
1899
1899
  action: a,
1900
1900
  titleTagProps: d,
1901
- containerProps: f,
1901
+ containerProps: m,
1902
1902
  headerProps: p
1903
1903
  }) => {
1904
1904
  const g = Fe("md"), x = Ar(), W = St(), b = t == null ? void 0 : t.show, B = () => {
@@ -1913,7 +1913,7 @@ const Ui = (t, r) => {
1913
1913
  const C = a.filter(
1914
1914
  (L) => L && (L.title || L.icon)
1915
1915
  );
1916
- return C.length === 0 ? null : g ? /* @__PURE__ */ e(m, { direction: "row", gap: "md", children: C.map(({ title: L, icon: H, buttonProps: V, onClick: j }, q) => /* @__PURE__ */ e(
1916
+ return C.length === 0 ? null : g ? /* @__PURE__ */ e(f, { direction: "row", gap: "md", children: C.map(({ title: L, icon: H, buttonProps: V, onClick: j }, q) => /* @__PURE__ */ e(
1917
1917
  N,
1918
1918
  {
1919
1919
  iconLeft: H ? /* @__PURE__ */ e(M, { name: H, size: "md" }) : void 0,
@@ -1954,7 +1954,7 @@ const Ui = (t, r) => {
1954
1954
  ] });
1955
1955
  }, z = () => {
1956
1956
  const C = /* @__PURE__ */ e(Yi, { backButton: t });
1957
- return t != null && t.navigateTo ? /* @__PURE__ */ e(m, { direction: "row", children: /* @__PURE__ */ e(
1957
+ return t != null && t.navigateTo ? /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(
1958
1958
  Tt,
1959
1959
  {
1960
1960
  to: t.navigateTo,
@@ -1962,13 +1962,13 @@ const Ui = (t, r) => {
1962
1962
  style: { textDecoration: "none" },
1963
1963
  children: C
1964
1964
  }
1965
- ) }) : /* @__PURE__ */ e(m, { direction: "row", children: /* @__PURE__ */ e(Ut, { onClick: B, children: C }) });
1965
+ ) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Ut, { onClick: B, children: C }) });
1966
1966
  }, D = () => {
1967
1967
  const C = !!r, L = Array.isArray(a) && a.length > 0, H = Sr(a) ? !0 : L;
1968
1968
  if (!C && !H && !b) return null;
1969
1969
  const j = g || !g && L;
1970
1970
  return /* @__PURE__ */ u(
1971
- m,
1971
+ f,
1972
1972
  {
1973
1973
  direction: "column",
1974
1974
  gap: "xs",
@@ -1989,15 +1989,15 @@ const Ui = (t, r) => {
1989
1989
  children: [
1990
1990
  b && z(),
1991
1991
  (C || H) && /* @__PURE__ */ u(
1992
- m,
1992
+ f,
1993
1993
  {
1994
1994
  direction: j ? "row" : "column",
1995
1995
  gap: "sm",
1996
1996
  justify: "space-between",
1997
1997
  align: j ? "center" : "flex-start",
1998
1998
  children: [
1999
- C ? typeof r == "string" ? /* @__PURE__ */ u(m, { direction: "row", gap: "lg", align: "center", children: [
2000
- /* @__PURE__ */ u(m, { direction: "row", gap: "sm", align: "center", children: [
1999
+ C ? typeof r == "string" ? /* @__PURE__ */ u(f, { direction: "row", gap: "lg", align: "center", children: [
2000
+ /* @__PURE__ */ u(f, { direction: "row", gap: "sm", align: "center", children: [
2001
2001
  n && /* @__PURE__ */ e(M, { name: n, size: "md", color: "primary" }),
2002
2002
  /* @__PURE__ */ e(
2003
2003
  k,
@@ -2027,7 +2027,7 @@ const Ui = (t, r) => {
2027
2027
  const q = V.order ?? 0;
2028
2028
  q >= H && (H = q, L = j);
2029
2029
  }), C.map(({ content: V, order: j, borderBottom: q = !0, keepBottomPadding: ee = !1 }, fe) => /* @__PURE__ */ e(
2030
- m,
2030
+ f,
2031
2031
  {
2032
2032
  direction: "column",
2033
2033
  paddingTop: "sm",
@@ -2049,7 +2049,7 @@ const Ui = (t, r) => {
2049
2049
  }, I = () => {
2050
2050
  const C = l ? D() : null, L = w();
2051
2051
  return !C && !L ? null : /* @__PURE__ */ u(
2052
- m,
2052
+ f,
2053
2053
  {
2054
2054
  direction: "column",
2055
2055
  style: {
@@ -2067,13 +2067,13 @@ const Ui = (t, r) => {
2067
2067
  );
2068
2068
  }, R = () => i;
2069
2069
  return /* @__PURE__ */ u(
2070
- m,
2070
+ f,
2071
2071
  {
2072
2072
  direction: "column",
2073
2073
  as: "main",
2074
- ...f,
2074
+ ...m,
2075
2075
  style: {
2076
- ...(f == null ? void 0 : f.style) ?? {},
2076
+ ...(m == null ? void 0 : m.style) ?? {},
2077
2077
  animation: "pageLayoutEnter 320ms cubic-bezier(0.16, 1, 0.3, 1) backwards"
2078
2078
  },
2079
2079
  children: [
@@ -2098,7 +2098,7 @@ const Ui = (t, r) => {
2098
2098
  minWidth: c = "357px",
2099
2099
  maxWidth: a = "357px"
2100
2100
  }, d) => {
2101
- const f = pn(s ?? c), p = pn(s ?? a);
2101
+ const m = pn(s ?? c), p = pn(s ?? a);
2102
2102
  return /* @__PURE__ */ e(
2103
2103
  In,
2104
2104
  {
@@ -2108,13 +2108,13 @@ const Ui = (t, r) => {
2108
2108
  onHide: t,
2109
2109
  ref: d,
2110
2110
  style: {
2111
- minWidth: f,
2111
+ minWidth: m,
2112
2112
  maxWidth: p,
2113
2113
  ...o
2114
2114
  },
2115
- children: /* @__PURE__ */ u(m, { direction: "column", padding: "lg", children: [
2115
+ children: /* @__PURE__ */ u(f, { direction: "column", padding: "lg", children: [
2116
2116
  l ? /* @__PURE__ */ u(
2117
- m,
2117
+ f,
2118
2118
  {
2119
2119
  direction: "row",
2120
2120
  align: "center",
@@ -2145,7 +2145,7 @@ const Ui = (t, r) => {
2145
2145
  ({ children: t, borderBottom: r = !0, padding: n = !0 }) => {
2146
2146
  const o = Fe("lg");
2147
2147
  return /* @__PURE__ */ e(
2148
- m,
2148
+ f,
2149
2149
  {
2150
2150
  direction: "column",
2151
2151
  padding: n ? "md" : "spacing-0",
@@ -2162,7 +2162,7 @@ const Ui = (t, r) => {
2162
2162
  ({ children: t, borderTop: r = !0, padding: n = !0 }) => {
2163
2163
  const o = Fe("lg");
2164
2164
  return /* @__PURE__ */ e(
2165
- m,
2165
+ f,
2166
2166
  {
2167
2167
  direction: "column",
2168
2168
  padding: n ? "md" : "spacing-0",
@@ -2177,7 +2177,7 @@ const Ui = (t, r) => {
2177
2177
  }
2178
2178
  ), ro = Qe(
2179
2179
  ({ children: t, ...r }) => /* @__PURE__ */ e(
2180
- m,
2180
+ f,
2181
2181
  {
2182
2182
  direction: "column",
2183
2183
  padding: "md",
@@ -2200,23 +2200,23 @@ const Ui = (t, r) => {
2200
2200
  containerProps: c,
2201
2201
  bodyProps: a,
2202
2202
  headerProps: d = { borderBottom: !0 },
2203
- footerProps: f = { borderTop: !0 },
2203
+ footerProps: m = { borderTop: !0 },
2204
2204
  variantTag: p = "info"
2205
2205
  }) => {
2206
- const g = Fe("lg"), x = () => n ? /* @__PURE__ */ u(m, { direction: "row", gap: "sm", align: "center", children: [
2206
+ const g = Fe("lg"), x = () => n ? /* @__PURE__ */ u(f, { direction: "row", gap: "sm", align: "center", children: [
2207
2207
  /* @__PURE__ */ e(k, { fontWeight: "medium", children: r }),
2208
2208
  /* @__PURE__ */ e(Dt, { border: !0, text: n, variant: p })
2209
2209
  ] }) : /* @__PURE__ */ e(k, { fontWeight: "medium", children: r }), W = () => i || /* @__PURE__ */ u(
2210
- m,
2210
+ f,
2211
2211
  {
2212
2212
  direction: "row",
2213
2213
  justify: "space-between",
2214
2214
  align: "flex-start",
2215
2215
  gap: "md",
2216
2216
  children: [
2217
- /* @__PURE__ */ e(m, { direction: "column", children: r ? x() : null }),
2217
+ /* @__PURE__ */ e(f, { direction: "column", children: r ? x() : null }),
2218
2218
  /* @__PURE__ */ e(
2219
- m,
2219
+ f,
2220
2220
  {
2221
2221
  direction: "column",
2222
2222
  style: g ? { width: "100%", maxWidth: "19.313rem" } : { flex: 1 },
@@ -2228,7 +2228,7 @@ const Ui = (t, r) => {
2228
2228
  }
2229
2229
  ), b = !!(i || r || o);
2230
2230
  return /* @__PURE__ */ u(
2231
- m,
2231
+ f,
2232
2232
  {
2233
2233
  direction: "column",
2234
2234
  bg: "white",
@@ -2245,7 +2245,7 @@ const Ui = (t, r) => {
2245
2245
  children: [
2246
2246
  i !== null && b ? /* @__PURE__ */ e(Pn, { ...d, children: W() }) : null,
2247
2247
  /* @__PURE__ */ e(ro, { ...a, children: t }),
2248
- l ? /* @__PURE__ */ e(Zn, { ...f, children: l }) : null
2248
+ l ? /* @__PURE__ */ e(Zn, { ...m, children: l }) : null
2249
2249
  ]
2250
2250
  }
2251
2251
  );
@@ -2270,10 +2270,10 @@ const Ui = (t, r) => {
2270
2270
  setSearchParams: r,
2271
2271
  searchParams: t,
2272
2272
  searchQueries: n,
2273
- isHasQuery: (f, p) => t.has(f) && t.get(f) === p,
2274
- getQueryParam: (f) => t.get(f),
2273
+ isHasQuery: (m, p) => t.has(m) && t.get(m) === p,
2274
+ getQueryParam: (m) => t.get(m),
2275
2275
  // route params
2276
- getRouteParam: (f) => o[f],
2276
+ getRouteParam: (m) => o[m],
2277
2277
  params: o,
2278
2278
  // location info
2279
2279
  location: i,
@@ -2393,39 +2393,39 @@ const Ui = (t, r) => {
2393
2393
  pageKey: o,
2394
2394
  filters: i
2395
2395
  }) => {
2396
- const { searchParams: l, setSearchParams: s, searchQueries: c } = Ve(), [a, d] = O({}), f = () => {
2396
+ const { searchParams: l, setSearchParams: s, searchQueries: c } = Ve(), [a, d] = O({}), m = () => {
2397
2397
  l.delete(n || "filter"), s(l);
2398
2398
  }, p = (g, x) => {
2399
2399
  switch (g.type) {
2400
2400
  case "radio": {
2401
2401
  const { show: W = !0 } = g;
2402
- return W && /* @__PURE__ */ e(m, { direction: "column", children: /* @__PURE__ */ e(m, { direction: "column", children: g.title }) }, x);
2402
+ return W && /* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(f, { direction: "column", children: g.title }) }, x);
2403
2403
  }
2404
2404
  case "dropdown": {
2405
2405
  const { show: W = !0 } = g;
2406
- return W && /* @__PURE__ */ e(m, { direction: "column", children: /* @__PURE__ */ e(m, { direction: "column", children: g.title }) }, x);
2406
+ return W && /* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(f, { direction: "column", children: g.title }) }, x);
2407
2407
  }
2408
2408
  case "date-range":
2409
- return /* @__PURE__ */ e(m, { direction: "column", children: /* @__PURE__ */ e(m, { direction: "column", children: g.title }) }, x);
2409
+ return /* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(f, { direction: "column", children: g.title }) }, x);
2410
2410
  case "date":
2411
- return /* @__PURE__ */ e(m, { direction: "column", children: /* @__PURE__ */ e(m, { direction: "column", children: g.title }) }, x);
2411
+ return /* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(f, { direction: "column", children: g.title }) }, x);
2412
2412
  case "dropdown-multiple": {
2413
2413
  const { show: W = !0 } = g;
2414
- return W && /* @__PURE__ */ e(m, { direction: "column", children: /* @__PURE__ */ e(m, { direction: "column", children: g.title }) }, x);
2414
+ return W && /* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(f, { direction: "column", children: g.title }) }, x);
2415
2415
  }
2416
2416
  default:
2417
2417
  return null;
2418
2418
  }
2419
2419
  };
2420
- return /* @__PURE__ */ e(to, { onHide: r, show: t || !1, children: /* @__PURE__ */ u(m, { direction: "column", gap: "md", children: [
2420
+ return /* @__PURE__ */ e(to, { onHide: r, show: t || !1, children: /* @__PURE__ */ u(f, { direction: "column", gap: "md", children: [
2421
2421
  /* @__PURE__ */ u(de, { direction: "row", justify: "space-between", align: "center", children: [
2422
- /* @__PURE__ */ e(m, { direction: "column", children: "Filter" }),
2422
+ /* @__PURE__ */ e(f, { direction: "column", children: "Filter" }),
2423
2423
  /* @__PURE__ */ e(
2424
- m,
2424
+ f,
2425
2425
  {
2426
2426
  direction: "column",
2427
2427
  style: { cursor: "pointer" },
2428
- onClick: f,
2428
+ onClick: m,
2429
2429
  children: "Reset"
2430
2430
  }
2431
2431
  )
@@ -2443,7 +2443,7 @@ const Ui = (t, r) => {
2443
2443
  filterKey: c = "filter",
2444
2444
  pageKey: a = "page",
2445
2445
  customWidthSearch: d,
2446
- handleOnReset: f,
2446
+ handleOnReset: m,
2447
2447
  filterConfigs: p,
2448
2448
  buttonToggleProps: g,
2449
2449
  position: x = "right",
@@ -2498,12 +2498,12 @@ const Ui = (t, r) => {
2498
2498
  },
2499
2499
  align: "flex-end",
2500
2500
  children: [
2501
- te && /* @__PURE__ */ e(m, { direction: "column", justify: "flex-end", children: /* @__PURE__ */ e(
2501
+ te && /* @__PURE__ */ e(f, { direction: "column", justify: "flex-end", children: /* @__PURE__ */ e(
2502
2502
  N,
2503
2503
  {
2504
2504
  onClick: () => {
2505
2505
  const U = new URLSearchParams(C);
2506
- U.delete(c), L(U), ee(""), R(), f && f();
2506
+ U.delete(c), L(U), ee(""), R(), m && m();
2507
2507
  },
2508
2508
  variant: "outline",
2509
2509
  tone: "neutral",
@@ -2511,7 +2511,7 @@ const Ui = (t, r) => {
2511
2511
  }
2512
2512
  ) }),
2513
2513
  i == null ? void 0 : i.map(({ minWidth: U, content: he, title: De, onClickContainer: se }, ve) => /* @__PURE__ */ u(
2514
- m,
2514
+ f,
2515
2515
  {
2516
2516
  direction: "column",
2517
2517
  gap: "sm",
@@ -2547,7 +2547,7 @@ const Ui = (t, r) => {
2547
2547
  }
2548
2548
  ),
2549
2549
  s && /* @__PURE__ */ u(
2550
- m,
2550
+ f,
2551
2551
  {
2552
2552
  direction: "column",
2553
2553
  gap: "sm",
@@ -2606,7 +2606,7 @@ const Ui = (t, r) => {
2606
2606
  }
2607
2607
  ),
2608
2608
  l && /* @__PURE__ */ u(
2609
- m,
2609
+ f,
2610
2610
  {
2611
2611
  direction: "column",
2612
2612
  gap: "sm",
@@ -2668,7 +2668,7 @@ function Hr({
2668
2668
  const C = a[R];
2669
2669
  return (C == null ? void 0 : C.locked) || w.includes(R) || I.includes(R);
2670
2670
  });
2671
- }, [l, n, r, i, t, a]), f = K(
2671
+ }, [l, n, r, i, t, a]), m = K(
2672
2672
  (w) => {
2673
2673
  try {
2674
2674
  return w[r] ? JSON.parse(w[r]) : {};
@@ -2694,7 +2694,7 @@ function Hr({
2694
2694
  if ((L = a[w]) != null && L.locked) return;
2695
2695
  const I = { ...c }, R = d.filter((H) => H !== w);
2696
2696
  R.length ? I[n] = R.join(",") : delete I[n];
2697
- const C = f(I);
2697
+ const C = m(I);
2698
2698
  w in C && (delete C[w], Object.keys(C).length ? I[r] = JSON.stringify(C) : delete I[r]), delete I[o], s(I);
2699
2699
  },
2700
2700
  [
@@ -2703,7 +2703,7 @@ function Hr({
2703
2703
  n,
2704
2704
  r,
2705
2705
  o,
2706
- f,
2706
+ m,
2707
2707
  s,
2708
2708
  a
2709
2709
  ]
@@ -2732,18 +2732,18 @@ function Hr({
2732
2732
  return I ? new Date(I) : void 0;
2733
2733
  }
2734
2734
  case "date-compact": {
2735
- const R = f(Object.fromEntries(l.entries()))[w.key];
2735
+ const R = m(Object.fromEntries(l.entries()))[w.key];
2736
2736
  return R && typeof R == "object" ? R : void 0;
2737
2737
  }
2738
2738
  default:
2739
2739
  return;
2740
2740
  }
2741
2741
  },
2742
- [l, r, f]
2742
+ [l, r, m]
2743
2743
  ), B = K(
2744
2744
  (w, I) => {
2745
2745
  if (w.type === "date-compact") {
2746
- const R = { ...c }, C = f(R);
2746
+ const R = { ...c }, C = m(R);
2747
2747
  I == null ? delete C[w.key] : C[w.key] = I, Object.keys(C).length ? R[r] = JSON.stringify(C) : delete R[r], delete R[o], s(R);
2748
2748
  return;
2749
2749
  }
@@ -2757,13 +2757,13 @@ function Hr({
2757
2757
  pageKey: o
2758
2758
  });
2759
2759
  },
2760
- [c, s, r, o, f]
2760
+ [c, s, r, o, m]
2761
2761
  ), F = K(
2762
2762
  (w) => {
2763
- const I = { ...c }, R = f(I);
2763
+ const I = { ...c }, R = m(I);
2764
2764
  w in R && (delete R[w], Object.keys(R).length ? I[r] = JSON.stringify(R) : delete I[r]), delete I[o], s(I);
2765
2765
  },
2766
- [c, r, o, f, s]
2766
+ [c, r, o, m, s]
2767
2767
  ), z = K(() => {
2768
2768
  const w = { ...c };
2769
2769
  delete w[r], delete w[n], delete w[o], s(w);
@@ -2821,8 +2821,8 @@ function Eo({
2821
2821
  if (C && Array.isArray(C.order)) return zt(C, t);
2822
2822
  }
2823
2823
  return l;
2824
- }), f = t.map((C) => C.key).join("|");
2825
- Y(() => d((C) => zt(C, t)), [f]);
2824
+ }), m = t.map((C) => C.key).join("|");
2825
+ Y(() => d((C) => zt(C, t)), [m]);
2826
2826
  const p = le(a);
2827
2827
  p.current = a;
2828
2828
  const g = i ? `${(i.order ?? []).join("|")}~${(i.hidden ?? []).join("|")}` : null, x = le(g);
@@ -2831,7 +2831,7 @@ function Eo({
2831
2831
  x.current = g;
2832
2832
  const C = p.current, L = c(i, C.order);
2833
2833
  L.order.join("|") === C.order.join("|") && L.hidden.join("|") === C.hidden.join("|") || (d(L), s && n.set(s, L));
2834
- }, [g, f]);
2834
+ }, [g, m]);
2835
2835
  const W = le(!1);
2836
2836
  Y(() => {
2837
2837
  W.current || (W.current = !0, o == null || o(a));
@@ -2888,11 +2888,11 @@ function Lo({
2888
2888
  getColumns: i,
2889
2889
  applyColumns: l
2890
2890
  }) {
2891
- const { searchParams: s, setSearchParams: c } = Ve(), a = t ? Ft.savedViews(t) : void 0, [d, f] = O(
2891
+ const { searchParams: s, setSearchParams: c } = Ve(), a = t ? Ft.savedViews(t) : void 0, [d, m] = O(
2892
2892
  () => a ? r.get(a) || [] : []
2893
2893
  ), p = K(
2894
2894
  (b) => {
2895
- f(b), a && r.set(a, b);
2895
+ m(b), a && r.set(a, b);
2896
2896
  },
2897
2897
  [a]
2898
2898
  // storage identity is stable (module singleton / caller-provided)
@@ -2949,20 +2949,20 @@ function Mo({
2949
2949
  s.current = l, c.current = !1;
2950
2950
  return;
2951
2951
  }
2952
- const f = {};
2952
+ const m = {};
2953
2953
  if (n.forEach((p) => {
2954
2954
  const g = i.get(p);
2955
- g != null && (f[p] = g);
2956
- }), Object.keys(f).length === 0) {
2955
+ g != null && (m[p] = g);
2956
+ }), Object.keys(m).length === 0) {
2957
2957
  c.current && r.remove(l);
2958
2958
  return;
2959
2959
  }
2960
- c.current = !0, r.set(l, f);
2960
+ c.current = !0, r.set(l, m);
2961
2961
  }, [i, l, n, r]);
2962
2962
  const a = K(() => {
2963
2963
  if (!l) return null;
2964
- const f = r.get(l);
2965
- return f && Object.keys(f).length > 0 ? f : null;
2964
+ const m = r.get(l);
2965
+ return m && Object.keys(m).length > 0 ? m : null;
2966
2966
  }, [l, r]), d = K(() => {
2967
2967
  l && r.remove(l);
2968
2968
  }, [l, r]);
@@ -3000,13 +3000,13 @@ function Wo({
3000
3000
  if (p == null) return null;
3001
3001
  const g = Number(p);
3002
3002
  return !Number.isFinite(g) || g <= 0 || o && !o.includes(g) ? null : String(g);
3003
- }, [s, r, o]), f = K(() => {
3003
+ }, [s, r, o]), m = K(() => {
3004
3004
  s && r.remove(s);
3005
3005
  }, [s, r]);
3006
3006
  return {
3007
3007
  enabled: !!s,
3008
3008
  read: d,
3009
- clear: f
3009
+ clear: m
3010
3010
  };
3011
3011
  }
3012
3012
  let gr = {}, pr = !1, yr = null;
@@ -3032,12 +3032,12 @@ function zo({
3032
3032
  a.current = c.pathname;
3033
3033
  const d = {};
3034
3034
  if (!l.has(n)) {
3035
- const f = i();
3036
- f && (d[n] = f);
3035
+ const m = i();
3036
+ m && (d[n] = m);
3037
3037
  }
3038
- if (!r.some((f) => l.has(f))) {
3039
- const f = o();
3040
- f && Object.assign(d, f);
3038
+ if (!r.some((m) => l.has(m))) {
3039
+ const m = o();
3040
+ m && Object.assign(d, m);
3041
3041
  }
3042
3042
  Object.keys(d).length !== 0 && Bo(d, s);
3043
3043
  }, [c.pathname, t]);
@@ -3064,7 +3064,7 @@ const Ao = ({
3064
3064
  {
3065
3065
  style: { minWidth: 260 },
3066
3066
  title: /* @__PURE__ */ u(
3067
- m,
3067
+ f,
3068
3068
  {
3069
3069
  display: "flex",
3070
3070
  direction: "row",
@@ -3227,7 +3227,7 @@ const Ao = ({
3227
3227
  {
3228
3228
  style: { width: 260 },
3229
3229
  title: /* @__PURE__ */ u(
3230
- m,
3230
+ f,
3231
3231
  {
3232
3232
  display: "flex",
3233
3233
  direction: "row",
@@ -3285,22 +3285,22 @@ const Ao = ({
3285
3285
  onClear: o,
3286
3286
  onRemove: i
3287
3287
  }) => {
3288
- const l = (r == null ? void 0 : r.op) ?? "is", s = r ? No(r) : null, c = !!s, a = c ? /* @__PURE__ */ u(ie, { children: [
3288
+ const l = t.ops && t.ops.length > 0 ? t.ops : Io, s = t.defaultOp && l.includes(t.defaultOp) ? t.defaultOp : l[0], c = (r == null ? void 0 : r.op) ?? s, a = r ? No(r) : null, d = !!a, m = d ? /* @__PURE__ */ u(ie, { children: [
3289
3289
  /* @__PURE__ */ u("span", { style: { fontWeight: 500 }, children: [
3290
3290
  t.label,
3291
3291
  ":"
3292
3292
  ] }),
3293
3293
  " ",
3294
- /* @__PURE__ */ e("span", { style: { fontWeight: 400 }, children: Un(s) })
3295
- ] }) : t.label, d = (f) => {
3296
- if (f !== l) {
3297
- if (f === "is-empty" || f === "is-not-empty") {
3298
- n({ op: f });
3294
+ /* @__PURE__ */ e("span", { style: { fontWeight: 400 }, children: Un(a) })
3295
+ ] }) : t.label, p = (g) => {
3296
+ if (g !== c) {
3297
+ if (g === "is-empty" || g === "is-not-empty") {
3298
+ n({ op: g });
3299
3299
  return;
3300
3300
  }
3301
- if (f === "is-relative-to-today") {
3301
+ if (g === "is-relative-to-today") {
3302
3302
  n({
3303
- op: f,
3303
+ op: g,
3304
3304
  relative: (r == null ? void 0 : r.relative) ?? {
3305
3305
  direction: "past",
3306
3306
  count: 1,
@@ -3309,23 +3309,23 @@ const Ao = ({
3309
3309
  });
3310
3310
  return;
3311
3311
  }
3312
- if (f === "is-between") {
3313
- n({ op: f, from: r == null ? void 0 : r.from, to: r == null ? void 0 : r.to });
3312
+ if (g === "is-between") {
3313
+ n({ op: g, from: r == null ? void 0 : r.from, to: r == null ? void 0 : r.to });
3314
3314
  return;
3315
3315
  }
3316
- n({ op: f, date: r == null ? void 0 : r.date });
3316
+ n({ op: g, date: r == null ? void 0 : r.date });
3317
3317
  }
3318
3318
  };
3319
3319
  return /* @__PURE__ */ u(Ae, { position: "bottom-left", children: [
3320
3320
  /* @__PURE__ */ e(Le, { children: /* @__PURE__ */ e(
3321
3321
  N,
3322
3322
  {
3323
- variant: c ? "secondary" : "outline",
3323
+ variant: d ? "secondary" : "outline",
3324
3324
  tone: "neutral",
3325
3325
  size: "sm",
3326
- iconLeft: c ? /* @__PURE__ */ e(M, { name: "Calendar", size: "sm" }) : void 0,
3326
+ iconLeft: d ? /* @__PURE__ */ e(M, { name: "Calendar", size: "sm" }) : void 0,
3327
3327
  iconRight: /* @__PURE__ */ e(M, { name: "ChevronSmallDown" }),
3328
- children: a
3328
+ children: m
3329
3329
  }
3330
3330
  ) }),
3331
3331
  /* @__PURE__ */ u(Re, { children: [
@@ -3334,7 +3334,7 @@ const Ao = ({
3334
3334
  {
3335
3335
  style: { width: 320 },
3336
3336
  title: /* @__PURE__ */ u(
3337
- m,
3337
+ f,
3338
3338
  {
3339
3339
  display: "flex",
3340
3340
  direction: "row",
@@ -3344,7 +3344,7 @@ const Ao = ({
3344
3344
  fullWidth: !0,
3345
3345
  children: [
3346
3346
  /* @__PURE__ */ u(
3347
- m,
3347
+ f,
3348
3348
  {
3349
3349
  display: "flex",
3350
3350
  direction: "row",
@@ -3353,7 +3353,7 @@ const Ao = ({
3353
3353
  style: { minWidth: 0 },
3354
3354
  children: [
3355
3355
  /* @__PURE__ */ e(k, { fontSize: "sm", fontWeight: "medium", color: "subtlest", children: t.label }),
3356
- /* @__PURE__ */ e(jo, { op: l, onChange: d })
3356
+ /* @__PURE__ */ e(jo, { op: c, ops: l, onChange: p })
3357
3357
  ]
3358
3358
  }
3359
3359
  ),
@@ -3361,13 +3361,13 @@ const Ao = ({
3361
3361
  ]
3362
3362
  }
3363
3363
  ),
3364
- children: /* @__PURE__ */ e(_o, { value: r, op: l, onChange: n })
3364
+ children: /* @__PURE__ */ e(_o, { value: r, op: c, onChange: n })
3365
3365
  }
3366
3366
  ),
3367
- l === "is-relative-to-today" && /* @__PURE__ */ e(Wr, { children: /* @__PURE__ */ e(k, { fontSize: "xs", color: "subtlest", children: "Filter will update with the current date" }) })
3367
+ c === "is-relative-to-today" && /* @__PURE__ */ e(Wr, { children: /* @__PURE__ */ e(k, { fontSize: "xs", color: "subtlest", children: "Filter will update with the current date" }) })
3368
3368
  ] })
3369
3369
  ] });
3370
- }, jo = ({ op: t, onChange: r }) => /* @__PURE__ */ u(Ae, { position: "bottom-left", children: [
3370
+ }, jo = ({ op: t, ops: r, onChange: n }) => /* @__PURE__ */ u(Ae, { position: "bottom-left", children: [
3371
3371
  /* @__PURE__ */ e(Le, { children: /* @__PURE__ */ e(
3372
3372
  N,
3373
3373
  {
@@ -3378,19 +3378,19 @@ const Ao = ({
3378
3378
  children: jt[t]
3379
3379
  }
3380
3380
  ) }),
3381
- /* @__PURE__ */ e(Re, { children: /* @__PURE__ */ e(Ie, { style: { width: 200 }, children: Io.map((n) => /* @__PURE__ */ e(
3381
+ /* @__PURE__ */ e(Re, { children: /* @__PURE__ */ e(Ie, { style: { width: 200 }, children: r.map((o) => /* @__PURE__ */ e(
3382
3382
  je,
3383
3383
  {
3384
- selected: t === n,
3385
- onClick: () => r(n),
3386
- endIcon: t === n ? /* @__PURE__ */ e(M, { name: "Check" }) : void 0,
3387
- children: jt[n]
3384
+ selected: t === o,
3385
+ onClick: () => n(o),
3386
+ endIcon: t === o ? /* @__PURE__ */ e(M, { name: "Check" }) : void 0,
3387
+ children: jt[o]
3388
3388
  },
3389
- n
3389
+ o
3390
3390
  )) }) })
3391
3391
  ] }), _o = ({ value: t, op: r, onChange: n }) => {
3392
3392
  if (r === "is-empty" || r === "is-not-empty")
3393
- return /* @__PURE__ */ e(m, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(k, { fontSize: "xs", color: "subtlest", children: "No further input required." }) });
3393
+ return /* @__PURE__ */ e(f, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(k, { fontSize: "xs", color: "subtlest", children: "No further input required." }) });
3394
3394
  if (r === "is-between") {
3395
3395
  const o = t != null && t.from || t != null && t.to ? {
3396
3396
  from: t != null && t.from ? new Date(t.from) : null,
@@ -3458,8 +3458,8 @@ const Ao = ({
3458
3458
  );
3459
3459
  }, Po = ({ value: t, onChange: r }) => {
3460
3460
  const n = (t == null ? void 0 : t.direction) ?? "past", o = (t == null ? void 0 : t.count) ?? 1, i = (t == null ? void 0 : t.period) ?? "week", l = n !== "this", s = qn({ direction: n, count: o, period: i });
3461
- return /* @__PURE__ */ u(m, { direction: "column", display: "flex", gap: "sm", children: [
3462
- /* @__PURE__ */ u(m, { direction: "row", display: "flex", align: "center", gap: "xs", children: [
3461
+ return /* @__PURE__ */ u(f, { direction: "column", display: "flex", gap: "sm", children: [
3462
+ /* @__PURE__ */ u(f, { direction: "row", display: "flex", align: "center", gap: "xs", children: [
3463
3463
  /* @__PURE__ */ u(Ae, { position: "bottom-left", children: [
3464
3464
  /* @__PURE__ */ e(Le, { children: /* @__PURE__ */ e(
3465
3465
  N,
@@ -3550,10 +3550,10 @@ const Ao = ({
3550
3550
  onClear: o,
3551
3551
  onRemove: i
3552
3552
  }) => {
3553
- const l = t.type === "dropdown-multiple", s = r.length, c = t.searchable !== !1, [a, d] = O(""), f = t.options, p = typeof t.onSearch == "function", g = (() => {
3554
- if (p) return f;
3553
+ const l = t.type === "dropdown-multiple", s = r.length, c = t.searchable !== !1, [a, d] = O(""), m = t.options, p = typeof t.onSearch == "function", g = (() => {
3554
+ if (p) return m;
3555
3555
  const F = a.trim().toLowerCase();
3556
- return F ? f.filter((z) => z.label.toLowerCase().includes(F)) : f;
3556
+ return F ? m.filter((z) => z.label.toLowerCase().includes(F)) : m;
3557
3557
  })(), x = (F) => r.some((z) => z.value === F.value), W = (F) => {
3558
3558
  if (!l) {
3559
3559
  n([{ label: F.label, value: F.value }]), d("");
@@ -3590,7 +3590,7 @@ const Ao = ({
3590
3590
  {
3591
3591
  style: { width: 260 },
3592
3592
  title: /* @__PURE__ */ u(
3593
- m,
3593
+ f,
3594
3594
  {
3595
3595
  display: "flex",
3596
3596
  direction: "row",
@@ -3603,7 +3603,7 @@ const Ao = ({
3603
3603
  ]
3604
3604
  }
3605
3605
  ),
3606
- children: /* @__PURE__ */ u(m, { direction: "column", gap: "sm", children: [
3606
+ children: /* @__PURE__ */ u(f, { direction: "column", gap: "sm", children: [
3607
3607
  c && /* @__PURE__ */ e(
3608
3608
  _t,
3609
3609
  {
@@ -3622,12 +3622,12 @@ const Ao = ({
3622
3622
  }
3623
3623
  ),
3624
3624
  /* @__PURE__ */ e(
3625
- m,
3625
+ f,
3626
3626
  {
3627
3627
  direction: "column",
3628
3628
  overflow: "overflow-y-auto",
3629
3629
  customMaxHeight: "240px",
3630
- children: t.isLoading ? /* @__PURE__ */ e(m, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(k, { fontSize: "xs", color: "subtlest", children: "Loading…" }) }) : g.length === 0 ? /* @__PURE__ */ e(m, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(k, { fontSize: "xs", color: "subtlest", children: "No results" }) }) : g.map((F) => /* @__PURE__ */ e(
3630
+ children: t.isLoading ? /* @__PURE__ */ e(f, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(k, { fontSize: "xs", color: "subtlest", children: "Loading…" }) }) : g.length === 0 ? /* @__PURE__ */ e(f, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(k, { fontSize: "xs", color: "subtlest", children: "No results" }) }) : g.map((F) => /* @__PURE__ */ e(
3631
3631
  je,
3632
3632
  {
3633
3633
  closeOnSelect: !l,
@@ -3667,7 +3667,7 @@ const Ao = ({
3667
3667
  n(
3668
3668
  l.has(g.value) ? r.filter((x) => x.value !== g.value) : [...r, { label: g.label, value: g.value }]
3669
3669
  );
3670
- }, f = () => {
3670
+ }, m = () => {
3671
3671
  n(
3672
3672
  c ? [] : t.options.map((g) => ({ label: g.label, value: g.value }))
3673
3673
  );
@@ -3696,7 +3696,7 @@ const Ao = ({
3696
3696
  {
3697
3697
  style: { width: 240 },
3698
3698
  title: /* @__PURE__ */ u(
3699
- m,
3699
+ f,
3700
3700
  {
3701
3701
  display: "flex",
3702
3702
  direction: "row",
@@ -3715,7 +3715,7 @@ const Ao = ({
3715
3715
  {
3716
3716
  closeOnSelect: !1,
3717
3717
  selected: c,
3718
- onClick: f,
3718
+ onClick: m,
3719
3719
  startIcon: /* @__PURE__ */ e(
3720
3720
  Cn,
3721
3721
  {
@@ -3757,7 +3757,7 @@ const Ao = ({
3757
3757
  {
3758
3758
  field: c,
3759
3759
  value: a,
3760
- onChange: (f) => o(c, f),
3760
+ onChange: (m) => o(c, m),
3761
3761
  onClear: () => i(s),
3762
3762
  onRemove: d
3763
3763
  },
@@ -3767,7 +3767,7 @@ const Ao = ({
3767
3767
  {
3768
3768
  field: c,
3769
3769
  value: a || [],
3770
- onChange: (f) => o(c, f),
3770
+ onChange: (m) => o(c, m),
3771
3771
  onClear: () => i(s),
3772
3772
  onRemove: d
3773
3773
  },
@@ -3777,7 +3777,7 @@ const Ao = ({
3777
3777
  {
3778
3778
  field: c,
3779
3779
  value: a || [],
3780
- onChange: (f) => o(c, f),
3780
+ onChange: (m) => o(c, m),
3781
3781
  onClear: () => i(s),
3782
3782
  onRemove: d
3783
3783
  },
@@ -3794,7 +3794,7 @@ const Ao = ({
3794
3794
  showPagination: c = !0
3795
3795
  }) => {
3796
3796
  var F;
3797
- const { searchQueries: a, setSearchParams: d, searchParams: f } = Ve(), p = f.get(n), g = p ? Number(p) : i, x = (z) => {
3797
+ const { searchQueries: a, setSearchParams: d, searchParams: m } = Ve(), p = m.get(n), g = p ? Number(p) : i, x = (z) => {
3798
3798
  d({ ...a, [r]: String(z) });
3799
3799
  }, W = (z) => {
3800
3800
  d({
@@ -3829,7 +3829,7 @@ const Ao = ({
3829
3829
  )) }) })
3830
3830
  ] }),
3831
3831
  c && ((t == null ? void 0 : t.totalPage) ?? 0) > 1 && /* @__PURE__ */ e(
3832
- m,
3832
+ f,
3833
3833
  {
3834
3834
  direction: "column",
3835
3835
  display: "flex",
@@ -3874,12 +3874,12 @@ const Yo = 240, Qn = ({
3874
3874
  shortcut: i = "/",
3875
3875
  collapsible: l = !0
3876
3876
  }) => {
3877
- const { searchParams: s, setSearchParams: c, searchQueries: a } = Ve(), d = Or(t, s, r) || "", [f, p] = O(!l || !!d), [g, x] = O(l && !d), [W, b] = O(d), B = ki(W, 350), F = le(null);
3877
+ const { searchParams: s, setSearchParams: c, searchQueries: a } = Ve(), d = Or(t, s, r) || "", [m, p] = O(!l || !!d), [g, x] = O(l && !d), [W, b] = O(d), B = ki(W, 350), F = le(null);
3878
3878
  Y(() => {
3879
3879
  b(d), d && p(!0);
3880
3880
  }, [d]), Y(() => {
3881
- f && x(!1);
3882
- }, [f]), Y(() => {
3881
+ m && x(!1);
3882
+ }, [m]), Y(() => {
3883
3883
  B !== d && $t({
3884
3884
  value: B,
3885
3885
  name: t,
@@ -3898,7 +3898,7 @@ const Yo = 240, Qn = ({
3898
3898
  }, []);
3899
3899
  return Qo(i, z), // No internal gap: the trigger and the animated input are never visible at
3900
3900
  // the same time, so spacing to neighbours is handled by the parent cluster.
3901
- /* @__PURE__ */ u(m, { display: "flex", direction: "row", align: "center", gap: "spacing-0", children: [
3901
+ /* @__PURE__ */ u(f, { display: "flex", direction: "row", align: "center", gap: "spacing-0", children: [
3902
3902
  g && /* @__PURE__ */ e(
3903
3903
  N,
3904
3904
  {
@@ -3912,14 +3912,14 @@ const Yo = 240, Qn = ({
3912
3912
  }
3913
3913
  ),
3914
3914
  /* @__PURE__ */ u(
3915
- m,
3915
+ f,
3916
3916
  {
3917
3917
  onTransitionEnd: () => {
3918
- f || x(!0);
3918
+ m || x(!0);
3919
3919
  },
3920
3920
  style: {
3921
3921
  position: "relative",
3922
- width: f ? Yo : 0,
3922
+ width: m ? Yo : 0,
3923
3923
  overflow: "hidden",
3924
3924
  transition: "width 220ms ease"
3925
3925
  },
@@ -3941,11 +3941,11 @@ const Yo = 240, Qn = ({
3941
3941
  onBlur: () => {
3942
3942
  l && !W && p(!1);
3943
3943
  },
3944
- tabIndex: f ? 0 : -1
3944
+ tabIndex: m ? 0 : -1
3945
3945
  }
3946
3946
  ),
3947
- f && !W && /* @__PURE__ */ e(
3948
- m,
3947
+ m && !W && /* @__PURE__ */ e(
3948
+ f,
3949
3949
  {
3950
3950
  align: "center",
3951
3951
  justify: "center",
@@ -3981,7 +3981,7 @@ const Yo = 240, Qn = ({
3981
3981
  }) => {
3982
3982
  const [l, s] = O(null), [c, a] = O(null), d = () => {
3983
3983
  l !== null && c !== null && l !== c && o(l, c), s(null), a(null);
3984
- }, f = (p, g) => {
3984
+ }, m = (p, g) => {
3985
3985
  const x = p + g;
3986
3986
  x < 0 || x >= t.length || o(p, x);
3987
3987
  };
@@ -3997,7 +3997,7 @@ const Yo = 240, Qn = ({
3997
3997
  }
3998
3998
  ) }),
3999
3999
  /* @__PURE__ */ e(Re, { children: /* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ u(
4000
- m,
4000
+ f,
4001
4001
  {
4002
4002
  padding: "sm",
4003
4003
  direction: "column",
@@ -4007,7 +4007,7 @@ const Yo = 240, Qn = ({
4007
4007
  children: [
4008
4008
  /* @__PURE__ */ e(k, { fontWeight: "semibold", color: "primary", children: "Customize Column Table" }),
4009
4009
  /* @__PURE__ */ u(
4010
- m,
4010
+ f,
4011
4011
  {
4012
4012
  direction: "row",
4013
4013
  display: "flex",
@@ -4029,10 +4029,10 @@ const Yo = 240, Qn = ({
4029
4029
  ]
4030
4030
  }
4031
4031
  ),
4032
- /* @__PURE__ */ e(m, { direction: "column", overflow: "overflow-y-auto", children: t.map((p, g) => {
4032
+ /* @__PURE__ */ e(f, { direction: "column", overflow: "overflow-y-auto", children: t.map((p, g) => {
4033
4033
  const x = !p.locked;
4034
4034
  return /* @__PURE__ */ u(
4035
- m,
4035
+ f,
4036
4036
  {
4037
4037
  direction: "row",
4038
4038
  display: "flex",
@@ -4052,7 +4052,7 @@ const Yo = 240, Qn = ({
4052
4052
  },
4053
4053
  children: [
4054
4054
  /* @__PURE__ */ e(
4055
- m,
4055
+ f,
4056
4056
  {
4057
4057
  direction: "column",
4058
4058
  as: "div",
@@ -4064,7 +4064,7 @@ const Yo = 240, Qn = ({
4064
4064
  "aria-disabled": !x || void 0,
4065
4065
  color: "icon-subtlest",
4066
4066
  onKeyDown: (b) => {
4067
- x && (b.key === "ArrowUp" ? (b.preventDefault(), f(g, -1)) : b.key === "ArrowDown" && (b.preventDefault(), f(g, 1)));
4067
+ x && (b.key === "ArrowUp" ? (b.preventDefault(), m(g, -1)) : b.key === "ArrowDown" && (b.preventDefault(), m(g, 1)));
4068
4068
  },
4069
4069
  style: {
4070
4070
  display: "inline-flex",
@@ -4074,7 +4074,7 @@ const Yo = 240, Qn = ({
4074
4074
  children: /* @__PURE__ */ e(M, { name: "DragVertical", width: 16, height: 16 })
4075
4075
  }
4076
4076
  ),
4077
- p.icon && /* @__PURE__ */ e(m, { direction: "column", align: "center", color: "icon-subtle", style: { display: "inline-flex" }, children: p.icon }),
4077
+ p.icon && /* @__PURE__ */ e(f, { direction: "column", align: "center", color: "icon-subtle", style: { display: "inline-flex" }, children: p.icon }),
4078
4078
  /* @__PURE__ */ e(
4079
4079
  k,
4080
4080
  {
@@ -4085,7 +4085,7 @@ const Yo = 240, Qn = ({
4085
4085
  children: p.title
4086
4086
  }
4087
4087
  ),
4088
- /* @__PURE__ */ e(m, { direction: "column", style: { marginLeft: "auto" }, children: /* @__PURE__ */ e(
4088
+ /* @__PURE__ */ e(f, { direction: "column", style: { marginLeft: "auto" }, children: /* @__PURE__ */ e(
4089
4089
  Zt,
4090
4090
  {
4091
4091
  size: "sm",
@@ -4132,14 +4132,14 @@ const Yo = 240, Qn = ({
4132
4132
  width: "260px"
4133
4133
  },
4134
4134
  children: [
4135
- /* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ u(m, { direction: "column", padding: "xs", gap: "sm", children: [
4135
+ /* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ u(f, { direction: "column", padding: "xs", gap: "sm", children: [
4136
4136
  /* @__PURE__ */ e(k, { fontWeight: "semibold", color: "primary", children: "Saved Views" }),
4137
4137
  /* @__PURE__ */ e(
4138
- m,
4138
+ f,
4139
4139
  {
4140
4140
  direction: "column",
4141
4141
  overflow: "overflow-y-auto",
4142
- children: t.length === 0 ? /* @__PURE__ */ e(m, { direction: "column", paddingBlock: "sm", children: /* @__PURE__ */ e(k, { fontSize: "sm", color: "subtlest", children: "No saved views yet" }) }) : t.map((c) => /* @__PURE__ */ e(
4142
+ children: t.length === 0 ? /* @__PURE__ */ e(f, { direction: "column", paddingBlock: "sm", children: /* @__PURE__ */ e(k, { fontSize: "sm", color: "subtlest", children: "No saved views yet" }) }) : t.map((c) => /* @__PURE__ */ e(
4143
4143
  je,
4144
4144
  {
4145
4145
  startIcon: /* @__PURE__ */ e(M, { name: "Bookmark" }),
@@ -4167,8 +4167,8 @@ const Yo = 240, Qn = ({
4167
4167
  /* @__PURE__ */ e(
4168
4168
  Wr,
4169
4169
  {
4170
- children: /* @__PURE__ */ u(m, { direction: "row", gap: "xs", children: [
4171
- /* @__PURE__ */ e(m, { direction: "column", style: { flex: "1 0 0", minWidth: 0 }, children: /* @__PURE__ */ e(
4170
+ children: /* @__PURE__ */ u(f, { direction: "row", gap: "xs", children: [
4171
+ /* @__PURE__ */ e(f, { direction: "column", style: { flex: "1 0 0", minWidth: 0 }, children: /* @__PURE__ */ e(
4172
4172
  gt,
4173
4173
  {
4174
4174
  size: "sm",
@@ -4210,19 +4210,19 @@ const Yo = 240, Qn = ({
4210
4210
  onReset: c,
4211
4211
  getValue: a,
4212
4212
  setValue: d,
4213
- clearValue: f,
4213
+ clearValue: m,
4214
4214
  removeFilter: p
4215
4215
  }) => {
4216
4216
  const g = o.length;
4217
4217
  return /* @__PURE__ */ e(In, { position: "bottom", isShow: t, onHide: r, children: /* @__PURE__ */ u(
4218
- m,
4218
+ f,
4219
4219
  {
4220
4220
  direction: "column",
4221
4221
  customMaxHeight: "85vh",
4222
4222
  style: { minHeight: 280 },
4223
4223
  children: [
4224
4224
  /* @__PURE__ */ u(
4225
- m,
4225
+ f,
4226
4226
  {
4227
4227
  direction: "row",
4228
4228
  display: "flex",
@@ -4234,7 +4234,7 @@ const Yo = 240, Qn = ({
4234
4234
  borderBottom: "1px solid var(--sa-border-subtle, rgba(11, 18, 14, 0.14))"
4235
4235
  },
4236
4236
  children: [
4237
- /* @__PURE__ */ u(m, { direction: "row", display: "flex", align: "center", gap: "xs", children: [
4237
+ /* @__PURE__ */ u(f, { direction: "row", display: "flex", align: "center", gap: "xs", children: [
4238
4238
  /* @__PURE__ */ e(k, { fontWeight: "semibold", color: "primary", children: "Filter" }),
4239
4239
  g > 0 && /* @__PURE__ */ u(k, { fontSize: "sm", color: "subtle", children: [
4240
4240
  "(",
@@ -4257,7 +4257,7 @@ const Yo = 240, Qn = ({
4257
4257
  }
4258
4258
  ),
4259
4259
  /* @__PURE__ */ u(
4260
- m,
4260
+ f,
4261
4261
  {
4262
4262
  direction: "column",
4263
4263
  gap: "lg",
@@ -4265,10 +4265,10 @@ const Yo = 240, Qn = ({
4265
4265
  overflow: "overflow-y-auto",
4266
4266
  style: { flex: "1 1 auto", minHeight: 0 },
4267
4267
  children: [
4268
- g > 0 && /* @__PURE__ */ u(m, { direction: "column", gap: "sm", children: [
4268
+ g > 0 && /* @__PURE__ */ u(f, { direction: "column", gap: "sm", children: [
4269
4269
  /* @__PURE__ */ e(k, { fontSize: "xs", fontWeight: "medium", color: "subtlest", children: "Filter aktif" }),
4270
4270
  /* @__PURE__ */ e(
4271
- m,
4271
+ f,
4272
4272
  {
4273
4273
  direction: "row",
4274
4274
  display: "flex",
@@ -4282,19 +4282,19 @@ const Yo = 240, Qn = ({
4282
4282
  configByKey: i,
4283
4283
  getValue: a,
4284
4284
  setValue: d,
4285
- clearValue: f,
4285
+ clearValue: m,
4286
4286
  removeFilter: p
4287
4287
  }
4288
4288
  )
4289
4289
  }
4290
4290
  )
4291
4291
  ] }),
4292
- n.length > 0 && /* @__PURE__ */ u(m, { direction: "column", gap: "sm", children: [
4292
+ n.length > 0 && /* @__PURE__ */ u(f, { direction: "column", gap: "sm", children: [
4293
4293
  /* @__PURE__ */ e(k, { fontSize: "xs", fontWeight: "medium", color: "subtlest", children: "Tambah filter" }),
4294
- /* @__PURE__ */ e(m, { direction: "column", children: n.map((x) => {
4294
+ /* @__PURE__ */ e(f, { direction: "column", children: n.map((x) => {
4295
4295
  const W = o.includes(x.key), b = !!x.locked;
4296
4296
  return /* @__PURE__ */ u(
4297
- m,
4297
+ f,
4298
4298
  {
4299
4299
  direction: "row",
4300
4300
  display: "flex",
@@ -4308,7 +4308,7 @@ const Yo = 240, Qn = ({
4308
4308
  },
4309
4309
  children: [
4310
4310
  /* @__PURE__ */ u(
4311
- m,
4311
+ f,
4312
4312
  {
4313
4313
  direction: "row",
4314
4314
  display: "flex",
@@ -4317,7 +4317,7 @@ const Yo = 240, Qn = ({
4317
4317
  style: { minWidth: 0 },
4318
4318
  children: [
4319
4319
  x.icon && /* @__PURE__ */ e(
4320
- m,
4320
+ f,
4321
4321
  {
4322
4322
  direction: "column",
4323
4323
  align: "center",
@@ -4350,7 +4350,7 @@ const Yo = 240, Qn = ({
4350
4350
  }
4351
4351
  ),
4352
4352
  /* @__PURE__ */ u(
4353
- m,
4353
+ f,
4354
4354
  {
4355
4355
  direction: "row",
4356
4356
  display: "flex",
@@ -4361,7 +4361,7 @@ const Yo = 240, Qn = ({
4361
4361
  borderTop: "1px solid var(--sa-border-subtle, rgba(11, 18, 14, 0.14))"
4362
4362
  },
4363
4363
  children: [
4364
- /* @__PURE__ */ e(m, { direction: "column", style: { flex: "1 1 0" }, children: /* @__PURE__ */ e(
4364
+ /* @__PURE__ */ e(f, { direction: "column", style: { flex: "1 1 0" }, children: /* @__PURE__ */ e(
4365
4365
  N,
4366
4366
  {
4367
4367
  variant: "outline",
@@ -4373,7 +4373,7 @@ const Yo = 240, Qn = ({
4373
4373
  children: "Reset"
4374
4374
  }
4375
4375
  ) }),
4376
- /* @__PURE__ */ e(m, { direction: "column", style: { flex: "1 1 0" }, children: /* @__PURE__ */ e(
4376
+ /* @__PURE__ */ e(f, { direction: "column", style: { flex: "1 1 0" }, children: /* @__PURE__ */ e(
4377
4377
  N,
4378
4378
  {
4379
4379
  variant: "primary",
@@ -4397,7 +4397,7 @@ const Yo = 240, Qn = ({
4397
4397
  defaultPerPage: o = 10,
4398
4398
  showPageSize: i
4399
4399
  }) => {
4400
- const { searchQueries: l, setSearchParams: s, searchParams: c } = Ve(), a = c.get(t), d = a ? Number(a) : o, f = (p) => {
4400
+ const { searchQueries: l, setSearchParams: s, searchParams: c } = Ve(), a = c.get(t), d = a ? Number(a) : o, m = (p) => {
4401
4401
  s({
4402
4402
  ...l,
4403
4403
  [t]: p,
@@ -4416,13 +4416,13 @@ const Yo = 240, Qn = ({
4416
4416
  }
4417
4417
  ) }),
4418
4418
  /* @__PURE__ */ e(Re, { children: /* @__PURE__ */ u(Ie, { style: { minWidth: 200 }, children: [
4419
- /* @__PURE__ */ e(m, { paddingInline: "sm", paddingBlock: "xs", children: /* @__PURE__ */ e(k, { fontSize: "xs", fontWeight: "medium", color: "subtlest", children: "Rows per page" }) }),
4419
+ /* @__PURE__ */ e(f, { paddingInline: "sm", paddingBlock: "xs", children: /* @__PURE__ */ e(k, { fontSize: "xs", fontWeight: "medium", color: "subtlest", children: "Rows per page" }) }),
4420
4420
  n.map((p) => /* @__PURE__ */ e(
4421
4421
  je,
4422
4422
  {
4423
4423
  selected: p === d,
4424
4424
  endIcon: p === d ? /* @__PURE__ */ e(M, { name: "Check" }) : void 0,
4425
- onClick: () => f(String(p)),
4425
+ onClick: () => m(String(p)),
4426
4426
  children: Ko(p)
4427
4427
  },
4428
4428
  p
@@ -4441,7 +4441,7 @@ const Yo = 240, Qn = ({
4441
4441
  removeFilter: c,
4442
4442
  getValue: a,
4443
4443
  setValue: d,
4444
- clearValue: f,
4444
+ clearValue: m,
4445
4445
  onReset: p,
4446
4446
  searchable: g,
4447
4447
  searchKey: x,
@@ -4475,7 +4475,7 @@ const Yo = 240, Qn = ({
4475
4475
  p(), Te(!1);
4476
4476
  };
4477
4477
  return /* @__PURE__ */ u(
4478
- m,
4478
+ f,
4479
4479
  {
4480
4480
  direction: "column",
4481
4481
  gap: "sm",
@@ -4488,7 +4488,7 @@ const Yo = 240, Qn = ({
4488
4488
  "aria-label": "Filter bar",
4489
4489
  children: [
4490
4490
  /* @__PURE__ */ u(
4491
- m,
4491
+ f,
4492
4492
  {
4493
4493
  direction: "row",
4494
4494
  display: "flex",
@@ -4522,7 +4522,7 @@ const Yo = 240, Qn = ({
4522
4522
  }
4523
4523
  ),
4524
4524
  /* @__PURE__ */ u(
4525
- m,
4525
+ f,
4526
4526
  {
4527
4527
  direction: "row",
4528
4528
  display: "flex",
@@ -4567,7 +4567,7 @@ const Yo = 240, Qn = ({
4567
4567
  }
4568
4568
  ),
4569
4569
  Ce && /* @__PURE__ */ u(
4570
- m,
4570
+ f,
4571
4571
  {
4572
4572
  direction: "row",
4573
4573
  display: "flex",
@@ -4576,7 +4576,7 @@ const Yo = 240, Qn = ({
4576
4576
  gap: "sm",
4577
4577
  fullWidth: !0,
4578
4578
  children: [
4579
- L ? /* @__PURE__ */ e(k, { fontSize: "sm", fontWeight: "medium", color: "primary", truncate: !0, children: `${Ne}-${xe} of ${((Pe = D == null ? void 0 : D.totalData) == null ? void 0 : Pe.toLocaleString()) || 0}` }) : /* @__PURE__ */ e(m, { direction: "column" }),
4579
+ L ? /* @__PURE__ */ e(k, { fontSize: "sm", fontWeight: "medium", color: "primary", truncate: !0, children: `${Ne}-${xe} of ${((Pe = D == null ? void 0 : D.totalData) == null ? void 0 : Pe.toLocaleString()) || 0}` }) : /* @__PURE__ */ e(f, { direction: "column" }),
4580
4580
  C && !!(D != null && D.totalPage) && /* @__PURE__ */ e(
4581
4581
  Br,
4582
4582
  {
@@ -4604,7 +4604,7 @@ const Yo = 240, Qn = ({
4604
4604
  onReset: Ze,
4605
4605
  getValue: a,
4606
4606
  setValue: d,
4607
- clearValue: f,
4607
+ clearValue: m,
4608
4608
  removeFilter: c
4609
4609
  }
4610
4610
  )
@@ -4622,7 +4622,7 @@ const Yo = 240, Qn = ({
4622
4622
  defaultPerPage: c,
4623
4623
  showPagination: a = !0,
4624
4624
  showResultCount: d = !0,
4625
- showPageSize: f = !0,
4625
+ showPageSize: m = !0,
4626
4626
  searchable: p = !1,
4627
4627
  searchKey: g = "q",
4628
4628
  searchPlaceholder: x = "Search",
@@ -4702,7 +4702,7 @@ const Yo = 240, Qn = ({
4702
4702
  }
4703
4703
  ) : null;
4704
4704
  return Ye ? /* @__PURE__ */ u(
4705
- m,
4705
+ f,
4706
4706
  {
4707
4707
  display: "flex",
4708
4708
  direction: "row",
@@ -4718,7 +4718,7 @@ const Yo = 240, Qn = ({
4718
4718
  "aria-label": "Filter bar",
4719
4719
  children: [
4720
4720
  /* @__PURE__ */ u(
4721
- m,
4721
+ f,
4722
4722
  {
4723
4723
  direction: "row",
4724
4724
  display: "flex",
@@ -4738,7 +4738,7 @@ const Yo = 240, Qn = ({
4738
4738
  ),
4739
4739
  b === "left" && Ce,
4740
4740
  /* @__PURE__ */ u(
4741
- m,
4741
+ f,
4742
4742
  {
4743
4743
  direction: "row",
4744
4744
  display: "flex",
@@ -4774,7 +4774,7 @@ const Yo = 240, Qn = ({
4774
4774
  ]
4775
4775
  }
4776
4776
  ),
4777
- /* @__PURE__ */ u(m, { direction: "row", display: "flex", align: "center", gap: "sm", children: [
4777
+ /* @__PURE__ */ u(f, { direction: "row", display: "flex", align: "center", gap: "sm", children: [
4778
4778
  V,
4779
4779
  /* @__PURE__ */ e(
4780
4780
  Jo,
@@ -4786,7 +4786,7 @@ const Yo = 240, Qn = ({
4786
4786
  defaultPerPage: _e,
4787
4787
  showPagination: a,
4788
4788
  showResultCount: d,
4789
- showPageSize: f
4789
+ showPageSize: m
4790
4790
  }
4791
4791
  ),
4792
4792
  b === "right" && Ce,
@@ -4839,7 +4839,7 @@ const Yo = 240, Qn = ({
4839
4839
  defaultPerPage: _e,
4840
4840
  showPagination: a,
4841
4841
  showResultCount: d,
4842
- showPageSize: f,
4842
+ showPageSize: m,
4843
4843
  hasColumns: z.length > 0,
4844
4844
  orderedColumns: se.orderedColumns,
4845
4845
  allVisible: se.allVisible,
@@ -4892,7 +4892,7 @@ const Yo = 240, Qn = ({
4892
4892
  defaultPage: c = 1,
4893
4893
  defaultPerPage: a = 10,
4894
4894
  paramKeys: d,
4895
- serialize: f
4895
+ serialize: m
4896
4896
  } = t, { activeKeys: p, configByKey: g, hasActiveFilter: x, getValue: W } = Hr({
4897
4897
  configs: r,
4898
4898
  filterKey: n,
@@ -4911,7 +4911,7 @@ const Yo = 240, Qn = ({
4911
4911
  if (!H) continue;
4912
4912
  const V = W(H);
4913
4913
  D[L] = V;
4914
- const j = f == null ? void 0 : f[L], q = j ? j(V) : il(H, V);
4914
+ const j = m == null ? void 0 : m[L], q = j ? j(V) : il(H, V);
4915
4915
  if (q == null || Array.isArray(q) && q.length === 0)
4916
4916
  continue;
4917
4917
  const ee = (d == null ? void 0 : d[L]) ?? L;
@@ -4933,7 +4933,7 @@ const Yo = 240, Qn = ({
4933
4933
  c,
4934
4934
  a,
4935
4935
  d,
4936
- f,
4936
+ m,
4937
4937
  g
4938
4938
  ]);
4939
4939
  }, ol = [
@@ -4948,7 +4948,7 @@ const Yo = 240, Qn = ({
4948
4948
  pageKey: o,
4949
4949
  searchKey: i
4950
4950
  }) => {
4951
- const { configByKey: l, getValue: s, setValue: c, removeFilter: a, clearAll: d, hasActiveFilter: f } = Hr({
4951
+ const { configByKey: l, getValue: s, setValue: c, removeFilter: a, clearAll: d, hasActiveFilter: m } = Hr({
4952
4952
  configs: t,
4953
4953
  filterKey: r,
4954
4954
  activeFilterKey: n,
@@ -4991,7 +4991,7 @@ const Yo = 240, Qn = ({
4991
4991
  (F, z) => g(F).includes(z),
4992
4992
  [g]
4993
4993
  ), B = K((F) => a(F), [a]);
4994
- return { set: x, toggle: W, clear: B, clearAll: d, isActive: b, values: g, hasActiveFilter: f };
4994
+ return { set: x, toggle: W, clear: B, clearAll: d, isActive: b, values: g, hasActiveFilter: m };
4995
4995
  }, ns = (t, r) => {
4996
4996
  if (!t) return {};
4997
4997
  const { fromKey: n, toKey: o, opKey: i } = r, l = {};
@@ -5027,7 +5027,7 @@ const Yo = 240, Qn = ({
5027
5027
  };
5028
5028
  return s(), window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
5029
5029
  }, [n]), /* @__PURE__ */ e(
5030
- m,
5030
+ f,
5031
5031
  {
5032
5032
  ref: o,
5033
5033
  fullWidth: !0,
@@ -5053,7 +5053,7 @@ const Yo = 240, Qn = ({
5053
5053
  }) => {
5054
5054
  const s = Fe("md"), c = l ? /* @__PURE__ */ e(So, { ...i }) : null;
5055
5055
  return /* @__PURE__ */ e(
5056
- m,
5056
+ f,
5057
5057
  {
5058
5058
  style: {
5059
5059
  display: "flex",
@@ -5072,14 +5072,14 @@ const Yo = 240, Qn = ({
5072
5072
  gap: "16px"
5073
5073
  },
5074
5074
  children: o ? o({ filter: c }) : /* @__PURE__ */ u(ie, { children: [
5075
- /* @__PURE__ */ u(m, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flex: 1, minWidth: 0 }, children: [
5075
+ /* @__PURE__ */ u(f, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flex: 1, minWidth: 0 }, children: [
5076
5076
  c,
5077
5077
  n
5078
5078
  ] }),
5079
- /* @__PURE__ */ u(m, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flexShrink: 0 }, children: [
5079
+ /* @__PURE__ */ u(f, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flexShrink: 0 }, children: [
5080
5080
  r,
5081
5081
  t ? Sr(t) ? t : /* @__PURE__ */ e(
5082
- m,
5082
+ f,
5083
5083
  {
5084
5084
  style: {
5085
5085
  display: "flex",
@@ -5089,11 +5089,11 @@ const Yo = 240, Qn = ({
5089
5089
  textWrap: "nowrap"
5090
5090
  },
5091
5091
  children: t.map(
5092
- ({ title: d, icon: f, buttonProps: p, onClick: g }, x) => !d && !f ? null : /* @__PURE__ */ e(
5092
+ ({ title: d, icon: m, buttonProps: p, onClick: g }, x) => !d && !m ? null : /* @__PURE__ */ e(
5093
5093
  N,
5094
5094
  {
5095
5095
  fullWidth: !s,
5096
- iconLeft: f ? /* @__PURE__ */ e(M, { name: f }) : void 0,
5096
+ iconLeft: m ? /* @__PURE__ */ e(M, { name: m }) : void 0,
5097
5097
  onClick: g,
5098
5098
  ...p,
5099
5099
  children: d
@@ -5112,7 +5112,7 @@ const Yo = 240, Qn = ({
5112
5112
  withMarginBottom: r = !0,
5113
5113
  withMarginTop: n = !0
5114
5114
  }) => /* @__PURE__ */ u(
5115
- m,
5115
+ f,
5116
5116
  {
5117
5117
  style: {
5118
5118
  display: "flex",
@@ -5146,7 +5146,7 @@ const Yo = 240, Qn = ({
5146
5146
  showPagination: i = !0,
5147
5147
  totalData: l
5148
5148
  }) => {
5149
- const { searchQueries: s, setSearchParams: c, searchParams: a } = Ve(), d = a.get(n), f = (W) => {
5149
+ const { searchQueries: s, setSearchParams: c, searchParams: a } = Ve(), d = a.get(n), m = (W) => {
5150
5150
  c({ ...s, [r]: String(W) });
5151
5151
  }, p = (W) => {
5152
5152
  c({
@@ -5156,7 +5156,7 @@ const Yo = 240, Qn = ({
5156
5156
  });
5157
5157
  }, g = (t == null ? void 0 : t.rangeStart) ?? (((t == null ? void 0 : t.currentPage) || 0) > 1 ? (((t == null ? void 0 : t.currentPage) || 0) - 1) * ((t == null ? void 0 : t.perPage) || 0) + 1 : 1), x = (t == null ? void 0 : t.rangeEnd) ?? ((t == null ? void 0 : t.totalCurrentPage) !== (t == null ? void 0 : t.perPage) ? t == null ? void 0 : t.totalData : ((t == null ? void 0 : t.currentPage) || 1) * ((t == null ? void 0 : t.totalCurrentPage) || 0));
5158
5158
  return /* @__PURE__ */ e(
5159
- m,
5159
+ f,
5160
5160
  {
5161
5161
  style: {
5162
5162
  display: "flex",
@@ -5172,7 +5172,7 @@ const Yo = 240, Qn = ({
5172
5172
  flexShrink: 0
5173
5173
  },
5174
5174
  children: i ? /* @__PURE__ */ u(ie, { children: [
5175
- /* @__PURE__ */ u(m, { style: { display: "flex", flexDirection: "row", gap: "8px", alignItems: "center", textWrap: "nowrap" }, children: [
5175
+ /* @__PURE__ */ u(f, { style: { display: "flex", flexDirection: "row", gap: "8px", alignItems: "center", textWrap: "nowrap" }, children: [
5176
5176
  /* @__PURE__ */ e(k, { children: "Rows Per Page: " }),
5177
5177
  /* @__PURE__ */ e(
5178
5178
  _t,
@@ -5198,7 +5198,7 @@ const Yo = 240, Qn = ({
5198
5198
  {
5199
5199
  currentPage: t != null && t.currentPage ? Number(t == null ? void 0 : t.currentPage) : 1,
5200
5200
  totalPages: t != null && t.totalPage ? Number(t == null ? void 0 : t.totalPage) : 1,
5201
- onPageChange: f
5201
+ onPageChange: m
5202
5202
  }
5203
5203
  )
5204
5204
  ] }) : /* @__PURE__ */ e(
@@ -5212,7 +5212,7 @@ const Yo = 240, Qn = ({
5212
5212
  }
5213
5213
  );
5214
5214
  }, dl = ({ filter: t, columnTitle: r }) => {
5215
- const [n, o] = O(!1), i = le(null), l = le(null), s = le(null), [c, a] = O(""), [d, f] = O({ top: 0, left: 0 }), p = t.selectedValues, g = pe(() => c ? t.options.filter(
5215
+ const [n, o] = O(!1), i = le(null), l = le(null), s = le(null), [c, a] = O(""), [d, m] = O({ top: 0, left: 0 }), p = t.selectedValues, g = pe(() => c ? t.options.filter(
5216
5216
  (b) => b.label.toLowerCase().includes(c.toLowerCase())
5217
5217
  ) : t.options, [t.options, c]);
5218
5218
  Y(() => {
@@ -5220,7 +5220,7 @@ const Yo = 240, Qn = ({
5220
5220
  const b = l.current.getBoundingClientRect(), B = 280, F = {
5221
5221
  top: b.bottom + 8
5222
5222
  };
5223
- t.position === "left" || b.left + B > window.innerWidth ? F.right = window.innerWidth - b.right : F.left = b.left, f(F);
5223
+ t.position === "left" || b.left + B > window.innerWidth ? F.right = window.innerWidth - b.right : F.left = b.left, m(F);
5224
5224
  }
5225
5225
  }, [n, t.position]), Y(() => {
5226
5226
  n && s.current ? setTimeout(() => {
@@ -5237,9 +5237,9 @@ const Yo = 240, Qn = ({
5237
5237
  const B = p.includes(b) ? p.filter((F) => F !== b) : [...p, b];
5238
5238
  t.onFilterChange(B);
5239
5239
  }, W = () => t.onFilterChange([]);
5240
- return /* @__PURE__ */ u(m, { direction: "column", style: { position: "relative" }, children: [
5240
+ return /* @__PURE__ */ u(f, { direction: "column", style: { position: "relative" }, children: [
5241
5241
  /* @__PURE__ */ e(
5242
- m,
5242
+ f,
5243
5243
  {
5244
5244
  ref: l,
5245
5245
  style: {
@@ -5265,7 +5265,7 @@ const Yo = 240, Qn = ({
5265
5265
  }
5266
5266
  ),
5267
5267
  n && /* @__PURE__ */ u(
5268
- m,
5268
+ f,
5269
5269
  {
5270
5270
  ref: i,
5271
5271
  style: {
@@ -5284,7 +5284,7 @@ const Yo = 240, Qn = ({
5284
5284
  },
5285
5285
  children: [
5286
5286
  /* @__PURE__ */ u(
5287
- m,
5287
+ f,
5288
5288
  {
5289
5289
  style: {
5290
5290
  display: "flex",
@@ -5302,7 +5302,7 @@ const Yo = 240, Qn = ({
5302
5302
  "Filter ",
5303
5303
  r
5304
5304
  ] }),
5305
- p.length > 0 && /* @__PURE__ */ e(m, { direction: "column", style: { cursor: "pointer" }, children: /* @__PURE__ */ e(
5305
+ p.length > 0 && /* @__PURE__ */ e(f, { direction: "column", style: { cursor: "pointer" }, children: /* @__PURE__ */ e(
5306
5306
  k,
5307
5307
  {
5308
5308
  fontSize: "xs",
@@ -5318,7 +5318,7 @@ const Yo = 240, Qn = ({
5318
5318
  }
5319
5319
  ),
5320
5320
  !t.hideSearch && /* @__PURE__ */ e(
5321
- m,
5321
+ f,
5322
5322
  {
5323
5323
  direction: "column",
5324
5324
  style: {
@@ -5341,7 +5341,7 @@ const Yo = 240, Qn = ({
5341
5341
  }
5342
5342
  ),
5343
5343
  /* @__PURE__ */ e(
5344
- m,
5344
+ f,
5345
5345
  {
5346
5346
  direction: "column",
5347
5347
  className: "ts-filter-dropdown-options",
@@ -5352,7 +5352,7 @@ const Yo = 240, Qn = ({
5352
5352
  paddingRight: "8px"
5353
5353
  },
5354
5354
  children: t.isLoadingOptions ? /* @__PURE__ */ u(
5355
- m,
5355
+ f,
5356
5356
  {
5357
5357
  style: {
5358
5358
  paddingTop: "40px",
@@ -5385,8 +5385,8 @@ const Yo = 240, Qn = ({
5385
5385
  )
5386
5386
  ]
5387
5387
  }
5388
- ) : g.length > 0 ? /* @__PURE__ */ e(m, { direction: "column", style: { gap: "2px", paddingTop: "4px", paddingBottom: "4px" }, children: g.map((b) => /* @__PURE__ */ u(
5389
- m,
5388
+ ) : g.length > 0 ? /* @__PURE__ */ e(f, { direction: "column", style: { gap: "2px", paddingTop: "4px", paddingBottom: "4px" }, children: g.map((b) => /* @__PURE__ */ u(
5389
+ f,
5390
5390
  {
5391
5391
  style: {
5392
5392
  display: "flex",
@@ -5433,7 +5433,7 @@ const Yo = 240, Qn = ({
5433
5433
  },
5434
5434
  b.value
5435
5435
  )) }) : /* @__PURE__ */ u(
5436
- m,
5436
+ f,
5437
5437
  {
5438
5438
  style: {
5439
5439
  paddingTop: "40px",
@@ -5467,7 +5467,7 @@ const Yo = 240, Qn = ({
5467
5467
  }
5468
5468
  ),
5469
5469
  p.length > 0 && /* @__PURE__ */ e(
5470
- m,
5470
+ f,
5471
5471
  {
5472
5472
  direction: "column",
5473
5473
  style: {
@@ -5479,9 +5479,9 @@ const Yo = 240, Qn = ({
5479
5479
  backgroundColor: "var(--sa-color-brand-50, #e6edf6)",
5480
5480
  marginTop: "auto"
5481
5481
  },
5482
- children: /* @__PURE__ */ u(m, { style: { display: "flex", flexDirection: "row", alignItems: "center", gap: "4px" }, children: [
5482
+ children: /* @__PURE__ */ u(f, { style: { display: "flex", flexDirection: "row", alignItems: "center", gap: "4px" }, children: [
5483
5483
  /* @__PURE__ */ e(
5484
- m,
5484
+ f,
5485
5485
  {
5486
5486
  direction: "column",
5487
5487
  style: {
@@ -5574,7 +5574,7 @@ const Yo = 240, Qn = ({
5574
5574
  visibleHandleUpdate: c,
5575
5575
  visibleHandleDetail: a,
5576
5576
  showHeadBorder: d = !1,
5577
- scrollParentRef: f,
5577
+ scrollParentRef: m,
5578
5578
  frozenCount: p = 0,
5579
5579
  onFrozenCountChange: g,
5580
5580
  customActions: x,
@@ -5605,10 +5605,10 @@ const Yo = 240, Qn = ({
5605
5605
  if (typeof Z == "string") return A[Z];
5606
5606
  }, [ke, _e] = O(!1);
5607
5607
  Y(() => {
5608
- if (!(f != null && f.current)) return;
5609
- const A = f.current;
5608
+ if (!(m != null && m.current)) return;
5609
+ const A = m.current;
5610
5610
  _e(A.scrollHeight > A.clientHeight);
5611
- }, [r, f]);
5611
+ }, [r, m]);
5612
5612
  const Ne = le(null), [xe, Ye] = O([]), [Ce, Ze] = O(
5613
5613
  () => F ?? {}
5614
5614
  ), Pe = le(null);
@@ -5806,7 +5806,7 @@ const Yo = 240, Qn = ({
5806
5806
  ] })
5807
5807
  }
5808
5808
  ),
5809
- /* @__PURE__ */ e(kr, { children: l ? /* @__PURE__ */ e(He, { children: /* @__PURE__ */ e(Ee, { colSpan: t.length + 1, children: /* @__PURE__ */ u(m, { direction: "column", style: { gap: "16px" }, children: [
5809
+ /* @__PURE__ */ e(kr, { children: l ? /* @__PURE__ */ e(He, { children: /* @__PURE__ */ e(Ee, { colSpan: t.length + 1, children: /* @__PURE__ */ u(f, { direction: "column", style: { gap: "16px" }, children: [
5810
5810
  /* @__PURE__ */ e(Ke, { variant: "list" }),
5811
5811
  /* @__PURE__ */ e(Ke, { variant: "list" }),
5812
5812
  /* @__PURE__ */ e(Ke, { variant: "list" }),
@@ -5924,11 +5924,11 @@ const Yo = 240, Qn = ({
5924
5924
  (r == null ? void 0 : r.defaultFrozenCount) ?? 0
5925
5925
  ), c = (n == null ? void 0 : n.show) ?? !0, a = le(null), d = (p = r == null ? void 0 : r.pagination) == null ? void 0 : p.totalData;
5926
5926
  typeof d == "number" && (a.current = d);
5927
- const f = (o == null ? void 0 : o.showFooter) ?? (d === void 0 ? a.current !== 0 : d !== 0);
5927
+ const m = (o == null ? void 0 : o.showFooter) ?? (d === void 0 ? a.current !== 0 : d !== 0);
5928
5928
  return /* @__PURE__ */ u(ll, { ...t, children: [
5929
5929
  c && /* @__PURE__ */ e(cl, { ...n }),
5930
5930
  /* @__PURE__ */ e(
5931
- m,
5931
+ f,
5932
5932
  {
5933
5933
  direction: "column",
5934
5934
  ref: i,
@@ -5948,7 +5948,7 @@ const Yo = 240, Qn = ({
5948
5948
  ) : null
5949
5949
  }
5950
5950
  ),
5951
- f && /* @__PURE__ */ e(
5951
+ m && /* @__PURE__ */ e(
5952
5952
  al,
5953
5953
  {
5954
5954
  pagination: r == null ? void 0 : r.pagination,
@@ -6012,7 +6012,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
6012
6012
  onToggleFreeze: c,
6013
6013
  onHide: a
6014
6014
  }) => {
6015
- const [d, f] = O(!1), p = le(null), g = le(null), [x, W] = O(
6015
+ const [d, m] = O(!1), p = le(null), g = le(null), [x, W] = O(
6016
6016
  { top: 0, left: 0 }
6017
6017
  );
6018
6018
  Y(() => {
@@ -6026,12 +6026,12 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
6026
6026
  }, [d]), Y(() => {
6027
6027
  if (!d) return;
6028
6028
  const B = (F) => {
6029
- g.current && !g.current.contains(F.target) && p.current && !p.current.contains(F.target) && f(!1);
6029
+ g.current && !g.current.contains(F.target) && p.current && !p.current.contains(F.target) && m(!1);
6030
6030
  };
6031
6031
  return document.addEventListener("mousedown", B), () => document.removeEventListener("mousedown", B);
6032
6032
  }, [d]);
6033
6033
  const b = (B) => {
6034
- B(), f(!1);
6034
+ B(), m(!1);
6035
6035
  };
6036
6036
  return /* @__PURE__ */ u(ie, { children: [
6037
6037
  /* @__PURE__ */ e(
@@ -6042,7 +6042,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
6042
6042
  className: "sa-tl-menu-trigger",
6043
6043
  "data-active": t || d ? "true" : "false",
6044
6044
  onClick: (B) => {
6045
- B.stopPropagation(), f((F) => !F);
6045
+ B.stopPropagation(), m((F) => !F);
6046
6046
  },
6047
6047
  title: "Column options",
6048
6048
  style: {
@@ -6062,7 +6062,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
6062
6062
  }
6063
6063
  ),
6064
6064
  d && /* @__PURE__ */ u(
6065
- m,
6065
+ f,
6066
6066
  {
6067
6067
  ref: g,
6068
6068
  onClick: (B) => B.stopPropagation(),
@@ -6203,7 +6203,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
6203
6203
  widthStorageKey: c,
6204
6204
  columnState: a,
6205
6205
  onColumnStateChange: d,
6206
- columnMenu: f = !1,
6206
+ columnMenu: m = !1,
6207
6207
  sort: p,
6208
6208
  defaultSort: g,
6209
6209
  onSortChange: x,
@@ -6429,7 +6429,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
6429
6429
  const E = Lt(y);
6430
6430
  return E.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 4, paddingRight: 8, flexShrink: 0 }, children: E.map((J) => /* @__PURE__ */ e(st.Fragment, { children: Mt(J, y, v, { showLabel: !1 }) }, J.key)) }) : null;
6431
6431
  }, or = (y, v) => {
6432
- const { col: E, key: J } = y, ne = Q.get(J) ?? 0, ae = _r(ne), oe = ae && ne === Yt, ye = (Ce == null ? void 0 : Ce.key) === J ? Ce.direction : null, be = f && !E.disableMenu ? /* @__PURE__ */ e(
6432
+ const { col: E, key: J } = y, ne = Q.get(J) ?? 0, ae = _r(ne), oe = ae && ne === Yt, ye = (Ce == null ? void 0 : Ce.key) === J ? Ce.direction : null, be = m && !E.disableMenu ? /* @__PURE__ */ e(
6433
6433
  yl,
6434
6434
  {
6435
6435
  active: !!ye || ae,
@@ -6638,11 +6638,11 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
6638
6638
  const E = cr ? nr(cr.col, y, v) : null;
6639
6639
  return typeof E == "string" || typeof E == "number" ? /* @__PURE__ */ e(k, { as: "span", style: Rt, children: E }) : /* @__PURE__ */ e("span", { style: Rt, children: E });
6640
6640
  }, pi = /* @__PURE__ */ e(
6641
- m,
6641
+ f,
6642
6642
  {
6643
6643
  style: { display: "flex", flexDirection: "column", gap: 8, padding: 8 },
6644
6644
  children: Array.from({ length: C }, (y, v) => /* @__PURE__ */ u(
6645
- m,
6645
+ f,
6646
6646
  {
6647
6647
  style: {
6648
6648
  border: vt,
@@ -6662,7 +6662,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
6662
6662
  ))
6663
6663
  }
6664
6664
  ), en = /* @__PURE__ */ e(
6665
- m,
6665
+ f,
6666
6666
  {
6667
6667
  fullWidth: !0,
6668
6668
  style: {
@@ -6674,7 +6674,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
6674
6674
  },
6675
6675
  children: I == null ? void 0 : I.content
6676
6676
  }
6677
- ), yi = R ? pi : T.length === 0 ? en : b === "expand" ? /* @__PURE__ */ e(m, { style: { display: "flex", flexDirection: "column" }, children: T.map((y, v) => {
6677
+ ), yi = R ? pi : T.length === 0 ? en : b === "expand" ? /* @__PURE__ */ e(f, { style: { display: "flex", flexDirection: "column" }, children: T.map((y, v) => {
6678
6678
  const E = rt(y, v), J = he.has(E), ae = H && nt.has(E) ? vr : It(o == null ? void 0 : o(y, v));
6679
6679
  return /* @__PURE__ */ u(
6680
6680
  "div",
@@ -6756,13 +6756,13 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
6756
6756
  E
6757
6757
  );
6758
6758
  }) }) : /* @__PURE__ */ e(
6759
- m,
6759
+ f,
6760
6760
  {
6761
6761
  style: { display: "flex", flexDirection: "column", gap: 8, padding: 8 },
6762
6762
  children: T.map((y, v) => {
6763
6763
  const E = rt(y, v), J = H && nt.has(E);
6764
6764
  return /* @__PURE__ */ u(
6765
- m,
6765
+ f,
6766
6766
  {
6767
6767
  style: {
6768
6768
  border: vt,
@@ -6954,7 +6954,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
6954
6954
  ), ar = P ? T.findIndex((y, v) => rt(y, v) === P.rowKey) : -1, dr = ar >= 0 ? T[ar] : null;
6955
6955
  return /* @__PURE__ */ u(ie, { children: [
6956
6956
  /* @__PURE__ */ e(
6957
- m,
6957
+ f,
6958
6958
  {
6959
6959
  ref: Xt,
6960
6960
  fullWidth: !0,
@@ -6964,7 +6964,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
6964
6964
  },
6965
6965
  children: me ? /* @__PURE__ */ u(ie, { children: [
6966
6966
  yi,
6967
- Wt && !R && T.length > 0 && /* @__PURE__ */ e(m, { style: { borderTop: vt }, children: /* @__PURE__ */ e(Vt, { fullWidth: !0, size: i, className: "sa-table-layout", children: /* @__PURE__ */ e(kr, { children: Wt }) }) })
6967
+ Wt && !R && T.length > 0 && /* @__PURE__ */ e(f, { style: { borderTop: vt }, children: /* @__PURE__ */ e(Vt, { fullWidth: !0, size: i, className: "sa-table-layout", children: /* @__PURE__ */ e(kr, { children: Wt }) }) })
6968
6968
  ] }) : vi
6969
6969
  }
6970
6970
  ),
@@ -6987,7 +6987,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
6987
6987
  paramKeys: l,
6988
6988
  scopeId: s,
6989
6989
  storage: c = Gn
6990
- } = t, { searchParams: a, setSearchParams: d, searchQueries: f } = Ve(), p = a.toString(), g = s ? Ft.tableSort(s) : void 0, x = le(!1);
6990
+ } = t, { searchParams: a, setSearchParams: d, searchQueries: m } = Ve(), p = a.toString(), g = s ? Ft.tableSort(s) : void 0, x = le(!1);
6991
6991
  Y(() => {
6992
6992
  if (x.current || (x.current = !0, !g) || a.has(r) || a.has(n))
6993
6993
  return;
@@ -7012,10 +7012,10 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
7012
7012
  [B]: W.direction
7013
7013
  } : {}, [W, b, B]), z = K(
7014
7014
  (D) => {
7015
- const w = { ...f };
7015
+ const w = { ...m };
7016
7016
  D ? (w[r] = D.key, w[n] = D.direction) : (delete w[r], delete w[n]), delete w[o], d(w);
7017
7017
  },
7018
- [f, r, n, o, d]
7018
+ [m, r, n, o, d]
7019
7019
  );
7020
7020
  return { sort: W, setSort: z, params: F };
7021
7021
  }, Vr = ({
@@ -7047,7 +7047,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
7047
7047
  var c, a, d;
7048
7048
  const l = i.hideMessageError || !1, s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
7049
7049
  return /* @__PURE__ */ u(
7050
- m,
7050
+ f,
7051
7051
  {
7052
7052
  gap: r === "horizontal" ? "spacing-96" : "sm",
7053
7053
  direction: r === "horizontal" ? "row" : "column",
@@ -7058,7 +7058,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
7058
7058
  {
7059
7059
  condition: !!i.inputProps.required,
7060
7060
  fallback: /* @__PURE__ */ u(
7061
- m,
7061
+ f,
7062
7062
  {
7063
7063
  direction: "column",
7064
7064
  customMaxWidth: s,
@@ -7070,7 +7070,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
7070
7070
  }
7071
7071
  ),
7072
7072
  children: /* @__PURE__ */ u(
7073
- m,
7073
+ f,
7074
7074
  {
7075
7075
  direction: "column",
7076
7076
  customMaxWidth: s,
@@ -7105,7 +7105,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
7105
7105
  )
7106
7106
  }
7107
7107
  ),
7108
- /* @__PURE__ */ u(m, { direction: "column", gap: "xs", fullWidth: i.inputProps.fullWidth || !1, children: [
7108
+ /* @__PURE__ */ u(f, { direction: "column", gap: "xs", fullWidth: i.inputProps.fullWidth || !1, children: [
7109
7109
  /* @__PURE__ */ e(
7110
7110
  gt,
7111
7111
  {
@@ -7132,7 +7132,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
7132
7132
  var c, a, d;
7133
7133
  const l = i.hideMessageError || !1, s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
7134
7134
  return /* @__PURE__ */ u(
7135
- m,
7135
+ f,
7136
7136
  {
7137
7137
  gap: r === "horizontal" ? "spacing-96" : "sm",
7138
7138
  direction: r === "horizontal" ? "row" : "column",
@@ -7143,7 +7143,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
7143
7143
  {
7144
7144
  condition: !!i.inputProps.required,
7145
7145
  fallback: /* @__PURE__ */ u(
7146
- m,
7146
+ f,
7147
7147
  {
7148
7148
  direction: "column",
7149
7149
  customMaxWidth: s,
@@ -7155,7 +7155,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
7155
7155
  }
7156
7156
  ),
7157
7157
  children: /* @__PURE__ */ u(
7158
- m,
7158
+ f,
7159
7159
  {
7160
7160
  direction: "column",
7161
7161
  customMaxWidth: s,
@@ -7190,9 +7190,9 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
7190
7190
  )
7191
7191
  }
7192
7192
  ),
7193
- /* @__PURE__ */ u(m, { direction: "column", gap: "xs", fullWidth: i.inputProps.fullWidth || !1, children: [
7193
+ /* @__PURE__ */ u(f, { direction: "column", gap: "xs", fullWidth: i.inputProps.fullWidth || !1, children: [
7194
7194
  /* @__PURE__ */ e(
7195
- m,
7195
+ f,
7196
7196
  {
7197
7197
  direction: "column",
7198
7198
  style: {
@@ -7226,7 +7226,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
7226
7226
  a.preventDefault(), n(!1);
7227
7227
  };
7228
7228
  return /* @__PURE__ */ u(
7229
- m,
7229
+ f,
7230
7230
  {
7231
7231
  width: "width-full",
7232
7232
  paddingInline: "md",
@@ -7456,7 +7456,7 @@ function Al(t) {
7456
7456
  const Rl = (t) => {
7457
7457
  var r, n;
7458
7458
  return /* @__PURE__ */ u(
7459
- m,
7459
+ f,
7460
7460
  {
7461
7461
  width: "width-full",
7462
7462
  paddingInline: "md",
@@ -7559,7 +7559,7 @@ const Rl = (t) => {
7559
7559
  n.helperText && /* @__PURE__ */ e(k, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-subtlest, #6b6e76)", lineHeight: "18px" }, children: n.helperText }),
7560
7560
  n.errorText && t === "error" && /* @__PURE__ */ e(k, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-error, #a4133c)", lineHeight: "18px" }, children: n.errorText }),
7561
7561
  n.errorMessage && !n.errorText && /* @__PURE__ */ e(k, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-error, #a4133c)", lineHeight: "18px" }, children: n.errorMessage })
7562
- ] }), f = /* @__PURE__ */ e(
7562
+ ] }), m = /* @__PURE__ */ e(
7563
7563
  "input",
7564
7564
  {
7565
7565
  type: "file",
@@ -7572,7 +7572,7 @@ const Rl = (t) => {
7572
7572
  accept: (g = n.fileSupportOption) == null ? void 0 : g.map((x) => "." + (x == null ? void 0 : x.toLowerCase())).join(", ")
7573
7573
  }
7574
7574
  ), p = /* @__PURE__ */ u(
7575
- m,
7575
+ f,
7576
7576
  {
7577
7577
  direction: "column",
7578
7578
  fullWidth: !0,
@@ -7585,7 +7585,7 @@ const Rl = (t) => {
7585
7585
  gap: "md",
7586
7586
  ...n.containerProps,
7587
7587
  children: [
7588
- f,
7588
+ m,
7589
7589
  (n.fileSelected || n.defaultFile) && /* @__PURE__ */ e(
7590
7590
  Rl,
7591
7591
  {
@@ -7634,7 +7634,7 @@ const Rl = (t) => {
7634
7634
  var c, a, d;
7635
7635
  const l = i.hideMessageError || !1, s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
7636
7636
  return /* @__PURE__ */ u(
7637
- m,
7637
+ f,
7638
7638
  {
7639
7639
  gap: r === "horizontal" ? "spacing-96" : "sm",
7640
7640
  direction: r === "horizontal" ? "row" : "column",
@@ -7645,7 +7645,7 @@ const Rl = (t) => {
7645
7645
  {
7646
7646
  condition: !!i.inputProps.required,
7647
7647
  fallback: /* @__PURE__ */ u(
7648
- m,
7648
+ f,
7649
7649
  {
7650
7650
  direction: "column",
7651
7651
  customMaxWidth: s,
@@ -7657,7 +7657,7 @@ const Rl = (t) => {
7657
7657
  }
7658
7658
  ),
7659
7659
  children: /* @__PURE__ */ u(
7660
- m,
7660
+ f,
7661
7661
  {
7662
7662
  direction: "column",
7663
7663
  customMaxWidth: s,
@@ -7713,10 +7713,10 @@ const Rl = (t) => {
7713
7713
  required: i = !1,
7714
7714
  ...l
7715
7715
  }) => {
7716
- var a, d, f, p;
7716
+ var a, d, m, p;
7717
7717
  const s = l.hideMessageError || !1, c = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
7718
7718
  return /* @__PURE__ */ u(
7719
- m,
7719
+ f,
7720
7720
  {
7721
7721
  gap: r === "horizontal" || r === "horizontal-inline" ? "spacing-96" : "sm",
7722
7722
  direction: r === "horizontal" || r === "horizontal-inline" ? "row" : "column",
@@ -7727,7 +7727,7 @@ const Rl = (t) => {
7727
7727
  {
7728
7728
  condition: !!i,
7729
7729
  fallback: /* @__PURE__ */ u(
7730
- m,
7730
+ f,
7731
7731
  {
7732
7732
  direction: "column",
7733
7733
  customMaxWidth: c,
@@ -7739,7 +7739,7 @@ const Rl = (t) => {
7739
7739
  }
7740
7740
  ),
7741
7741
  children: /* @__PURE__ */ u(
7742
- m,
7742
+ f,
7743
7743
  {
7744
7744
  direction: "column",
7745
7745
  customMaxWidth: c,
@@ -7752,7 +7752,7 @@ const Rl = (t) => {
7752
7752
  ze,
7753
7753
  {
7754
7754
  label: (d = l.tooltip) == null ? void 0 : d.label,
7755
- arrowPosition: (f = l.tooltip) == null ? void 0 : f.arrowPosition,
7755
+ arrowPosition: (m = l.tooltip) == null ? void 0 : m.arrowPosition,
7756
7756
  ...l.tooltip,
7757
7757
  children: /* @__PURE__ */ e(
7758
7758
  M,
@@ -7775,7 +7775,7 @@ const Rl = (t) => {
7775
7775
  }
7776
7776
  ),
7777
7777
  /* @__PURE__ */ e(
7778
- m,
7778
+ f,
7779
7779
  {
7780
7780
  gap: r === "horizontal-inline" ? "xl" : "md",
7781
7781
  direction: r === "horizontal-inline" ? "row" : "column",
@@ -7788,7 +7788,7 @@ const Rl = (t) => {
7788
7788
  isChecked: l.checkBoxesAreChecked.includes(g.id)
7789
7789
  })),
7790
7790
  render: (g) => g.renderBadge ? /* @__PURE__ */ u(
7791
- m,
7791
+ f,
7792
7792
  {
7793
7793
  direction: "row",
7794
7794
  justify: "space-between",
@@ -7837,13 +7837,13 @@ const Rl = (t) => {
7837
7837
  var l;
7838
7838
  const i = t === "horizontal-inline" || t === "horizontal-block" ? r === "sm" ? 342 : r === "lg" ? 400 : 342 : void 0;
7839
7839
  return /* @__PURE__ */ u(
7840
- m,
7840
+ f,
7841
7841
  {
7842
7842
  gap: t === "horizontal-inline" || t === "horizontal-block" ? "spacing-96" : "sm",
7843
7843
  direction: t === "horizontal-inline" || t === "horizontal-block" ? "row" : "column",
7844
7844
  children: [
7845
7845
  /* @__PURE__ */ e(ce, { condition: !!o.description || !!o.title, children: /* @__PURE__ */ u(
7846
- m,
7846
+ f,
7847
7847
  {
7848
7848
  direction: "column",
7849
7849
  customMaxWidth: i,
@@ -7855,7 +7855,7 @@ const Rl = (t) => {
7855
7855
  }
7856
7856
  ) }),
7857
7857
  /* @__PURE__ */ e(
7858
- m,
7858
+ f,
7859
7859
  {
7860
7860
  gap: "sm",
7861
7861
  direction: t === "horizontal" || t === "horizontal-inline" ? "row" : "column",
@@ -7868,13 +7868,13 @@ const Rl = (t) => {
7868
7868
  ...s,
7869
7869
  isChecked: o.radioIsChecked === s.id
7870
7870
  })),
7871
- render: ({ value: s, id: c, isChecked: a, subInput: d, label: f, description: p }) => /* @__PURE__ */ u(m, { direction: "column", gap: "xs", customMaxWidth: i, children: [
7871
+ render: ({ value: s, id: c, isChecked: a, subInput: d, label: m, description: p }) => /* @__PURE__ */ u(f, { direction: "column", gap: "xs", customMaxWidth: i, children: [
7872
7872
  /* @__PURE__ */ e(
7873
7873
  Bi,
7874
7874
  {
7875
7875
  id: `${c.toString()}-${s}`,
7876
- name: o.groupName || f,
7877
- label: f,
7876
+ name: o.groupName || m,
7877
+ label: m,
7878
7878
  value: s,
7879
7879
  checked: a,
7880
7880
  onChange: (g) => o.onChecked({
@@ -7916,7 +7916,7 @@ const Rl = (t) => {
7916
7916
  var c, a, d;
7917
7917
  const l = i.hideMessageError || !1, s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
7918
7918
  return /* @__PURE__ */ u(
7919
- m,
7919
+ f,
7920
7920
  {
7921
7921
  gap: r === "horizontal" ? "spacing-96" : "sm",
7922
7922
  direction: r === "horizontal" ? "row" : "column",
@@ -7927,7 +7927,7 @@ const Rl = (t) => {
7927
7927
  {
7928
7928
  condition: !!i.inputProps.required,
7929
7929
  fallback: /* @__PURE__ */ u(
7930
- m,
7930
+ f,
7931
7931
  {
7932
7932
  direction: "column",
7933
7933
  customMaxWidth: s,
@@ -7939,7 +7939,7 @@ const Rl = (t) => {
7939
7939
  }
7940
7940
  ),
7941
7941
  children: /* @__PURE__ */ u(
7942
- m,
7942
+ f,
7943
7943
  {
7944
7944
  direction: "column",
7945
7945
  customMaxWidth: s,
@@ -8000,7 +8000,7 @@ const Rl = (t) => {
8000
8000
  var c, a, d;
8001
8001
  const s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
8002
8002
  return /* @__PURE__ */ u(
8003
- m,
8003
+ f,
8004
8004
  {
8005
8005
  gap: r === "horizontal" ? "spacing-96" : "sm",
8006
8006
  direction: r === "horizontal" ? "row" : "column",
@@ -8011,7 +8011,7 @@ const Rl = (t) => {
8011
8011
  {
8012
8012
  condition: o,
8013
8013
  fallback: /* @__PURE__ */ u(
8014
- m,
8014
+ f,
8015
8015
  {
8016
8016
  direction: "column",
8017
8017
  customMaxWidth: s,
@@ -8023,7 +8023,7 @@ const Rl = (t) => {
8023
8023
  }
8024
8024
  ),
8025
8025
  children: /* @__PURE__ */ u(
8026
- m,
8026
+ f,
8027
8027
  {
8028
8028
  direction: "column",
8029
8029
  customMaxWidth: s,
@@ -8077,16 +8077,16 @@ const Rl = (t) => {
8077
8077
  ...n
8078
8078
  }) => {
8079
8079
  const o = Wi(), i = (s) => {
8080
- var a, d, f, p, g, x;
8080
+ var a, d, m, p, g, x;
8081
8081
  if (!s) return;
8082
- const c = n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : t === "secondary-danger" ? (d = (a = o == null ? void 0 : o.computed) == null ? void 0 : a.red) == null ? void 0 : d[600] : t === "secondary-primary" ? (p = (f = o == null ? void 0 : o.computed) == null ? void 0 : f.blue) == null ? void 0 : p[700] : (x = (g = o == null ? void 0 : o.computed) == null ? void 0 : g.gray) == null ? void 0 : x[50];
8082
+ const c = n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : t === "secondary-danger" ? (d = (a = o == null ? void 0 : o.computed) == null ? void 0 : a.red) == null ? void 0 : d[600] : t === "secondary-primary" ? (p = (m = o == null ? void 0 : o.computed) == null ? void 0 : m.blue) == null ? void 0 : p[700] : (x = (g = o == null ? void 0 : o.computed) == null ? void 0 : g.gray) == null ? void 0 : x[50];
8083
8083
  return /* @__PURE__ */ e(M, { name: s, size: r, style: { color: c } });
8084
8084
  }, l = () => {
8085
- var c, a, d, f;
8085
+ var c, a, d, m;
8086
8086
  if (t !== "secondary-danger" && t !== "secondary-primary")
8087
8087
  return n.title;
8088
8088
  const s = {
8089
- color: n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary-danger" ? (a = (c = o == null ? void 0 : o.computed) == null ? void 0 : c.red) == null ? void 0 : a[600] : (f = (d = o == null ? void 0 : o.computed) == null ? void 0 : d.blue) == null ? void 0 : f[700]
8089
+ color: n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary-danger" ? (a = (c = o == null ? void 0 : o.computed) == null ? void 0 : c.red) == null ? void 0 : a[600] : (m = (d = o == null ? void 0 : o.computed) == null ? void 0 : d.blue) == null ? void 0 : m[700]
8090
8090
  };
8091
8091
  switch (r) {
8092
8092
  case "xs":
@@ -8134,7 +8134,7 @@ const Rl = (t) => {
8134
8134
  var c, a, d;
8135
8135
  const l = i.hideMessageError || !1, s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
8136
8136
  return /* @__PURE__ */ u(
8137
- m,
8137
+ f,
8138
8138
  {
8139
8139
  gap: r === "horizontal" ? "spacing-96" : "sm",
8140
8140
  direction: r === "horizontal" ? "row" : "column",
@@ -8145,7 +8145,7 @@ const Rl = (t) => {
8145
8145
  {
8146
8146
  condition: !!i.inputProps.required,
8147
8147
  fallback: /* @__PURE__ */ u(
8148
- m,
8148
+ f,
8149
8149
  {
8150
8150
  direction: "column",
8151
8151
  customMaxWidth: s,
@@ -8157,7 +8157,7 @@ const Rl = (t) => {
8157
8157
  }
8158
8158
  ),
8159
8159
  children: /* @__PURE__ */ u(
8160
- m,
8160
+ f,
8161
8161
  {
8162
8162
  direction: "column",
8163
8163
  customMaxWidth: s,
@@ -8194,7 +8194,7 @@ const Rl = (t) => {
8194
8194
  ),
8195
8195
  /* @__PURE__ */ u(de, { direction: "column", gap: "xs", children: [
8196
8196
  /* @__PURE__ */ e(
8197
- m,
8197
+ f,
8198
8198
  {
8199
8199
  direction: "column",
8200
8200
  style: {
@@ -8264,7 +8264,7 @@ const Ln = {
8264
8264
  containerProps: c,
8265
8265
  maxFileSize: a = 2,
8266
8266
  onError: d
8267
- }, f) => {
8267
+ }, m) => {
8268
8268
  const p = Fe("md"), [g, x] = O(!1), [W, b] = O(null), [B, F] = O(!1), [z, D] = O({ x: 0, y: 0 }), [w, I] = O(1), [R, C] = O(null);
8269
8269
  Y(() => {
8270
8270
  r === null && i(null);
@@ -8299,7 +8299,7 @@ const Ln = {
8299
8299
  }, j = le(null), q = () => {
8300
8300
  j.current && j.current.click();
8301
8301
  };
8302
- Ai(f, () => ({
8302
+ Ai(m, () => ({
8303
8303
  openFileDialog: () => {
8304
8304
  var P;
8305
8305
  (P = j.current) == null || P.click();
@@ -8308,7 +8308,7 @@ const Ln = {
8308
8308
  const ee = parseInt(l, 10), fe = Ln[s];
8309
8309
  let me, te;
8310
8310
  return fe >= 1 ? (te = ee, me = ee * fe) : (me = ee, te = ee / fe), /* @__PURE__ */ u(
8311
- m,
8311
+ f,
8312
8312
  {
8313
8313
  direction: "column",
8314
8314
  display: "flex",
@@ -8342,7 +8342,7 @@ const Ln = {
8342
8342
  }
8343
8343
  }
8344
8344
  ) : /* @__PURE__ */ e(
8345
- m,
8345
+ f,
8346
8346
  {
8347
8347
  display: "flex",
8348
8348
  direction: "column",
@@ -8363,7 +8363,7 @@ const Ln = {
8363
8363
  }
8364
8364
  ),
8365
8365
  /* @__PURE__ */ u(
8366
- m,
8366
+ f,
8367
8367
  {
8368
8368
  direction: "column",
8369
8369
  position: "absolute",
@@ -8390,7 +8390,7 @@ const Ln = {
8390
8390
  style: { display: "none" }
8391
8391
  }
8392
8392
  ),
8393
- /* @__PURE__ */ u(m, { display: "flex", align: "center", gap: "spacing-2", direction: "row", children: [
8393
+ /* @__PURE__ */ u(f, { display: "flex", align: "center", gap: "spacing-2", direction: "row", children: [
8394
8394
  /* @__PURE__ */ e(
8395
8395
  M,
8396
8396
  {
@@ -8412,7 +8412,7 @@ const Ln = {
8412
8412
  }
8413
8413
  ),
8414
8414
  n && /* @__PURE__ */ e(
8415
- m,
8415
+ f,
8416
8416
  {
8417
8417
  direction: "column",
8418
8418
  position: "absolute",
@@ -8425,7 +8425,7 @@ const Ln = {
8425
8425
  backgroundColor: "var(--sa-color-white-alpha-a80, #e5e9f640)"
8426
8426
  },
8427
8427
  children: /* @__PURE__ */ e(
8428
- m,
8428
+ f,
8429
8429
  {
8430
8430
  direction: "column",
8431
8431
  borderRadius: "rounded-full",
@@ -8529,10 +8529,10 @@ const Ln = {
8529
8529
  required: i = !1,
8530
8530
  ...l
8531
8531
  }) => {
8532
- var a, d, f;
8532
+ var a, d, m;
8533
8533
  const s = l.hideMessageError || !1, c = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
8534
8534
  return /* @__PURE__ */ u(
8535
- m,
8535
+ f,
8536
8536
  {
8537
8537
  gap: r === "horizontal" ? "spacing-96" : "sm",
8538
8538
  direction: r === "horizontal" ? "row" : "column",
@@ -8543,7 +8543,7 @@ const Ln = {
8543
8543
  {
8544
8544
  condition: !!i,
8545
8545
  fallback: /* @__PURE__ */ u(
8546
- m,
8546
+ f,
8547
8547
  {
8548
8548
  direction: "column",
8549
8549
  customMaxWidth: c,
@@ -8555,7 +8555,7 @@ const Ln = {
8555
8555
  }
8556
8556
  ),
8557
8557
  children: /* @__PURE__ */ u(
8558
- m,
8558
+ f,
8559
8559
  {
8560
8560
  direction: "column",
8561
8561
  customMaxWidth: c,
@@ -8568,7 +8568,7 @@ const Ln = {
8568
8568
  ze,
8569
8569
  {
8570
8570
  label: (d = l.tooltip) == null ? void 0 : d.label,
8571
- arrowPosition: (f = l.tooltip) == null ? void 0 : f.arrowPosition,
8571
+ arrowPosition: (m = l.tooltip) == null ? void 0 : m.arrowPosition,
8572
8572
  ...l.tooltip,
8573
8573
  children: /* @__PURE__ */ e(
8574
8574
  M,
@@ -8607,7 +8607,7 @@ const Ln = {
8607
8607
  var s, c, a;
8608
8608
  const l = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
8609
8609
  return /* @__PURE__ */ u(
8610
- m,
8610
+ f,
8611
8611
  {
8612
8612
  gap: r === "horizontal" ? "spacing-96" : "sm",
8613
8613
  direction: r === "horizontal" ? "row" : "column",
@@ -8618,7 +8618,7 @@ const Ln = {
8618
8618
  {
8619
8619
  condition: !!i.inputProps.required,
8620
8620
  fallback: /* @__PURE__ */ u(
8621
- m,
8621
+ f,
8622
8622
  {
8623
8623
  direction: "column",
8624
8624
  customMaxWidth: l,
@@ -8630,7 +8630,7 @@ const Ln = {
8630
8630
  }
8631
8631
  ),
8632
8632
  children: /* @__PURE__ */ u(
8633
- m,
8633
+ f,
8634
8634
  {
8635
8635
  direction: "column",
8636
8636
  customMaxWidth: l,
@@ -8677,18 +8677,18 @@ const Ln = {
8677
8677
  toggleShow: i = !0,
8678
8678
  disabled: l = !1
8679
8679
  }) => {
8680
- var f;
8680
+ var m;
8681
8681
  const [s, c] = O([]);
8682
8682
  Y(() => {
8683
8683
  t && c([...t.map((p) => ({ id: p.id, isActive: p.isActive }))]);
8684
8684
  }, [t]);
8685
- const a = (f = s.find((p) => p.id === r)) == null ? void 0 : f.isActive, d = K(() => {
8685
+ const a = (m = s.find((p) => p.id === r)) == null ? void 0 : m.isActive, d = K(() => {
8686
8686
  c(
8687
8687
  (p) => p.map((g) => g.id === r ? { ...g, isActive: !g.isActive } : g)
8688
8688
  ), n && n(!a);
8689
8689
  }, [r, n, a]);
8690
8690
  return /* @__PURE__ */ e(
8691
- m,
8691
+ f,
8692
8692
  {
8693
8693
  direction: "row",
8694
8694
  gap: "md",
@@ -8728,7 +8728,7 @@ const Ln = {
8728
8728
  return Y(() => (window.addEventListener("scroll", o), () => {
8729
8729
  window.removeEventListener("scroll", o);
8730
8730
  }), []), /* @__PURE__ */ e(
8731
- m,
8731
+ f,
8732
8732
  {
8733
8733
  direction: "column",
8734
8734
  style: {
@@ -8737,7 +8737,7 @@ const Ln = {
8737
8737
  right: 0
8738
8738
  },
8739
8739
  children: /* @__PURE__ */ e(
8740
- m,
8740
+ f,
8741
8741
  {
8742
8742
  direction: "column",
8743
8743
  position: "absolute",
@@ -8839,14 +8839,14 @@ const Es = ({
8839
8839
  children: c,
8840
8840
  divider: a = !0,
8841
8841
  disabled: d,
8842
- className: f,
8842
+ className: m,
8843
8843
  style: p,
8844
8844
  "aria-label": g
8845
8845
  }) => (Y(Xl, []), /* @__PURE__ */ e(
8846
8846
  "button",
8847
8847
  {
8848
8848
  type: "button",
8849
- className: [Oe, f].filter(Boolean).join(" "),
8849
+ className: [Oe, m].filter(Boolean).join(" "),
8850
8850
  "data-active": t ? "true" : "false",
8851
8851
  "data-accent": r,
8852
8852
  "data-divider": a ? "true" : "false",
@@ -8856,7 +8856,7 @@ const Es = ({
8856
8856
  onClick: n,
8857
8857
  style: p,
8858
8858
  children: c ?? /* @__PURE__ */ u(
8859
- m,
8859
+ f,
8860
8860
  {
8861
8861
  display: "flex",
8862
8862
  direction: "column",
@@ -8887,7 +8887,7 @@ const Es = ({
8887
8887
  children: o
8888
8888
  }
8889
8889
  ) : /* @__PURE__ */ e("span", {}),
8890
- i ? /* @__PURE__ */ e(m, { style: { flexShrink: 0 }, children: i }) : null
8890
+ i ? /* @__PURE__ */ e(f, { style: { flexShrink: 0 }, children: i }) : null
8891
8891
  ]
8892
8892
  }
8893
8893
  ),
@@ -8923,7 +8923,7 @@ const Es = ({
8923
8923
  offsetTop: c = "4rem",
8924
8924
  height: a,
8925
8925
  showToggle: d = !0,
8926
- togglePosition: f = "top",
8926
+ togglePosition: m = "top",
8927
8927
  toggleOffset: p = 40,
8928
8928
  toggleLabel: g,
8929
8929
  style: x,
@@ -8937,7 +8937,7 @@ const Es = ({
8937
8937
  const w = Fe("md"), I = n !== void 0, [R, C] = O(o), L = I ? n : R, H = () => {
8938
8938
  const he = !L;
8939
8939
  I || C(he), i == null || i(he);
8940
- }, V = s === "left", j = typeof c == "number" ? `${c}px` : c, q = a !== void 0 ? typeof a == "number" ? `${a}px` : a : `calc(100vh - ${j})`, ee = g ?? { collapse: "Collapse panel", expand: "Expand panel" }, fe = f === "center" ? { top: "50%", transform: "translateY(-50%)" } : f === "bottom" ? { bottom: p } : { top: p }, me = L ? V ? "ChevronRight" : "ChevronLeft" : V ? "ChevronLeft" : "ChevronRight", te = B !== void 0 && (F === "mobile" ? !w : F), P = te ? {
8940
+ }, V = s === "left", j = typeof c == "number" ? `${c}px` : c, q = a !== void 0 ? typeof a == "number" ? `${a}px` : a : `calc(100vh - ${j})`, ee = g ?? { collapse: "Collapse panel", expand: "Expand panel" }, fe = m === "center" ? { top: "50%", transform: "translateY(-50%)" } : m === "bottom" ? { bottom: p } : { top: p }, me = L ? V ? "ChevronRight" : "ChevronLeft" : V ? "ChevronLeft" : "ChevronRight", te = B !== void 0 && (F === "mobile" ? !w : F), P = te ? {
8941
8941
  position: "absolute",
8942
8942
  top: 0,
8943
8943
  bottom: 0,
@@ -8960,13 +8960,13 @@ const Es = ({
8960
8960
  transition: `width ${Wn}`,
8961
8961
  ...x
8962
8962
  }, U = /* @__PURE__ */ u(
8963
- m,
8963
+ f,
8964
8964
  {
8965
8965
  className: b,
8966
8966
  style: P,
8967
8967
  children: [
8968
8968
  /* @__PURE__ */ e(
8969
- m,
8969
+ f,
8970
8970
  {
8971
8971
  fullWidth: !0,
8972
8972
  fullHeight: !0,
@@ -8977,7 +8977,7 @@ const Es = ({
8977
8977
  borderWidth: L ? void 0 : V ? "border-r" : "border-l",
8978
8978
  style: { backgroundColor: Bn, borderColor: Kn },
8979
8979
  children: /* @__PURE__ */ u(
8980
- m,
8980
+ f,
8981
8981
  {
8982
8982
  fullHeight: !0,
8983
8983
  display: "flex",
@@ -8986,9 +8986,9 @@ const Es = ({
8986
8986
  customMinWidth: l,
8987
8987
  style: V ? void 0 : { marginLeft: "auto" },
8988
8988
  children: [
8989
- r ? /* @__PURE__ */ e(m, { padding: "md", style: { flexShrink: 0 }, children: r }) : null,
8989
+ r ? /* @__PURE__ */ e(f, { padding: "md", style: { flexShrink: 0 }, children: r }) : null,
8990
8990
  /* @__PURE__ */ e(
8991
- m,
8991
+ f,
8992
8992
  {
8993
8993
  display: "block",
8994
8994
  overflow: "overflow-y-auto",
@@ -9038,7 +9038,7 @@ const Es = ({
9038
9038
  }
9039
9039
  );
9040
9040
  return B === void 0 ? U : /* @__PURE__ */ u(
9041
- m,
9041
+ f,
9042
9042
  {
9043
9043
  direction: "row",
9044
9044
  position: "relative",
@@ -9051,7 +9051,7 @@ const Es = ({
9051
9051
  children: [
9052
9052
  !te && V ? U : null,
9053
9053
  /* @__PURE__ */ e(
9054
- m,
9054
+ f,
9055
9055
  {
9056
9056
  display: "block",
9057
9057
  ...D,
@@ -9088,7 +9088,7 @@ const Es = ({
9088
9088
  }, Ms = ({ pageLayout: t, children: r, wrapperProps: n, containerProps: o }) => {
9089
9089
  const i = Fe("md"), l = (o == null ? void 0 : o.customWidth) ?? 264;
9090
9090
  return /* @__PURE__ */ u(
9091
- m,
9091
+ f,
9092
9092
  {
9093
9093
  display: "block",
9094
9094
  direction: "row",
@@ -9100,7 +9100,7 @@ const Es = ({
9100
9100
  children: [
9101
9101
  t,
9102
9102
  /* @__PURE__ */ e(
9103
- m,
9103
+ f,
9104
9104
  {
9105
9105
  direction: "column",
9106
9106
  show: "desktop",
@@ -9143,8 +9143,8 @@ const Es = ({
9143
9143
  return i.current && c.observe(i.current), () => {
9144
9144
  c.disconnect(), l.style.removeProperty(zn);
9145
9145
  };
9146
- }, []), /* @__PURE__ */ e(m, { direction: "column", position: "absolute", width: "width-full", style: { zIndex: "var(--app-footer-zindex, 998)" }, children: /* @__PURE__ */ u(
9147
- m,
9146
+ }, []), /* @__PURE__ */ e(f, { direction: "column", position: "absolute", width: "width-full", style: { zIndex: "var(--app-footer-zindex, 998)" }, children: /* @__PURE__ */ u(
9147
+ f,
9148
9148
  {
9149
9149
  ref: i,
9150
9150
  position: "fixed",
@@ -9176,14 +9176,14 @@ const Es = ({
9176
9176
  ]
9177
9177
  }
9178
9178
  ) });
9179
- }, Bs = ({ fields: t }) => /* @__PURE__ */ e(m, { display: "flex", direction: "column", gap: "lg", children: /* @__PURE__ */ e(
9179
+ }, Bs = ({ fields: t }) => /* @__PURE__ */ e(f, { display: "flex", direction: "column", gap: "lg", children: /* @__PURE__ */ e(
9180
9180
  Vr,
9181
9181
  {
9182
9182
  of: t,
9183
9183
  render: (r, n) => /* @__PURE__ */ e(tc, { ...r }, n)
9184
9184
  }
9185
- ) }), tc = ({ title: t, value: r, icon: n }) => /* @__PURE__ */ u(m, { display: "flex", direction: "column", gap: "sm", children: [
9186
- n ? /* @__PURE__ */ u(m, { display: "flex", direction: "row", align: "center", gap: "xs", children: [
9185
+ ) }), tc = ({ title: t, value: r, icon: n }) => /* @__PURE__ */ u(f, { display: "flex", direction: "column", gap: "sm", children: [
9186
+ n ? /* @__PURE__ */ u(f, { display: "flex", direction: "row", align: "center", gap: "xs", children: [
9187
9187
  /* @__PURE__ */ e(M, { name: n, color: "subtle" }),
9188
9188
  /* @__PURE__ */ e(k, { color: "gray-500", variant: "sub-h3", children: t })
9189
9189
  ] }) : /* @__PURE__ */ e(k, { color: "gray-500", variant: "sub-h3", children: t }),
@@ -9347,7 +9347,7 @@ const zs = ({
9347
9347
  childrenButton: a,
9348
9348
  customIcon: d
9349
9349
  }) => {
9350
- const f = () => {
9350
+ const m = () => {
9351
9351
  switch (o) {
9352
9352
  case "primary":
9353
9353
  return /* @__PURE__ */ e(ie, { children: l ? /* @__PURE__ */ e(N, { primary: !0, iconLeft: l, onClick: n, children: a || t }) : /* @__PURE__ */ e(N, { primary: !0, onClick: n, children: a || t }) });
@@ -9369,7 +9369,7 @@ const zs = ({
9369
9369
  }
9370
9370
  };
9371
9371
  return /* @__PURE__ */ u(
9372
- m,
9372
+ f,
9373
9373
  {
9374
9374
  height: "height-full",
9375
9375
  display: "flex",
@@ -9381,7 +9381,7 @@ const zs = ({
9381
9381
  customHeight: c,
9382
9382
  children: [
9383
9383
  d || /* @__PURE__ */ e(rc, {}),
9384
- /* @__PURE__ */ e(m, { direction: "column", children: r.map((p, g) => /* @__PURE__ */ e(
9384
+ /* @__PURE__ */ e(f, { direction: "column", children: r.map((p, g) => /* @__PURE__ */ e(
9385
9385
  Je.Body1,
9386
9386
  {
9387
9387
  props: {
@@ -9392,7 +9392,7 @@ const zs = ({
9392
9392
  },
9393
9393
  g
9394
9394
  )) }),
9395
- s ? f() : null
9395
+ s ? m() : null
9396
9396
  ]
9397
9397
  }
9398
9398
  );
@@ -9612,7 +9612,7 @@ function nc({ width: t, height: r }) {
9612
9612
  function As({ onClick: t }) {
9613
9613
  const r = Fe("md");
9614
9614
  return /* @__PURE__ */ u(
9615
- m,
9615
+ f,
9616
9616
  {
9617
9617
  direction: "column",
9618
9618
  height: "height-screen",
@@ -9885,7 +9885,7 @@ function ic({ width: t, height: r }) {
9885
9885
  function Rs({ onClick: t }) {
9886
9886
  const r = Fe("md");
9887
9887
  return /* @__PURE__ */ u(
9888
- m,
9888
+ f,
9889
9889
  {
9890
9890
  direction: "column",
9891
9891
  height: "height-screen",
@@ -10594,7 +10594,7 @@ function oc({ width: t, height: r }) {
10594
10594
  function Is({ onClick: t }) {
10595
10595
  const r = Fe("md");
10596
10596
  return /* @__PURE__ */ u(
10597
- m,
10597
+ f,
10598
10598
  {
10599
10599
  direction: "column",
10600
10600
  height: "height-screen",
@@ -10648,14 +10648,14 @@ const Os = (t) => {
10648
10648
  /* @__PURE__ */ e(An, { ...t.dialogTitleProps, children: typeof t.title == "string" ? /* @__PURE__ */ e(k, { fontSize: "lg", fontWeight: "medium", children: t.title }) : t.title }),
10649
10649
  /* @__PURE__ */ e(Mr, { children: typeof t.description == "string" ? /* @__PURE__ */ e(k, { fontSize: "md", lineHeight: "leading-6", color: "brand", children: t.description }) : t.description }),
10650
10650
  /* @__PURE__ */ e(Rn, { children: /* @__PURE__ */ e(
10651
- m,
10651
+ f,
10652
10652
  {
10653
10653
  display: "flex",
10654
10654
  direction: ((n = t.containerConfirmBtnProps) == null ? void 0 : n.direction) || "row",
10655
10655
  justify: ((o = t.containerConfirmBtnProps) == null ? void 0 : o.justify) || "flex-end",
10656
10656
  ...t.containerConfirmBtnProps,
10657
10657
  children: /* @__PURE__ */ u(
10658
- m,
10658
+ f,
10659
10659
  {
10660
10660
  display: "flex",
10661
10661
  direction: ((i = t.wrapperConfirmBtnProps) == null ? void 0 : i.direction) || "row",
@@ -10665,7 +10665,7 @@ const Os = (t) => {
10665
10665
  children: [
10666
10666
  t.onCancel && /* @__PURE__ */ e(N, { secondary: !0, onClick: t.onCancel, size: "md", fullWidth: !0, children: t.titleCancelBtn || "Cancel" }),
10667
10667
  /* @__PURE__ */ e(
10668
- m,
10668
+ f,
10669
10669
  {
10670
10670
  direction: "column",
10671
10671
  fullWidth: !0,
@@ -10705,7 +10705,7 @@ const Os = (t) => {
10705
10705
  footer: c,
10706
10706
  title: a,
10707
10707
  titleTag: d,
10708
- action: f,
10708
+ action: m,
10709
10709
  actionContainer: p,
10710
10710
  containerProps: g,
10711
10711
  bodyProps: x,
@@ -10723,24 +10723,24 @@ const Os = (t) => {
10723
10723
  };
10724
10724
  return C(), window.addEventListener("resize", C), () => window.removeEventListener("resize", C);
10725
10725
  }, []);
10726
- const w = () => d ? /* @__PURE__ */ u(m, { direction: "row", gap: "sm", align: "center", children: [
10726
+ const w = () => d ? /* @__PURE__ */ u(f, { direction: "row", gap: "sm", align: "center", children: [
10727
10727
  /* @__PURE__ */ e(k, { fontWeight: "medium", children: a }),
10728
10728
  /* @__PURE__ */ e(Dt, { border: !0, text: d, variant: B })
10729
10729
  ] }) : /* @__PURE__ */ e(k, { fontWeight: "medium", children: a }), I = () => s || /* @__PURE__ */ u(
10730
- m,
10730
+ f,
10731
10731
  {
10732
10732
  direction: "row",
10733
10733
  justify: "space-between",
10734
10734
  align: "flex-start",
10735
10735
  gap: "md",
10736
10736
  children: [
10737
- /* @__PURE__ */ e(m, { direction: "column", children: a ? w() : null }),
10738
- /* @__PURE__ */ e(m, { direction: "column", ...p, children: f ?? null })
10737
+ /* @__PURE__ */ e(f, { direction: "column", children: a ? w() : null }),
10738
+ /* @__PURE__ */ e(f, { direction: "column", ...p, children: m ?? null })
10739
10739
  ]
10740
10740
  }
10741
- ), R = !!(s || a || f);
10741
+ ), R = !!(s || a || m);
10742
10742
  return /* @__PURE__ */ u(
10743
- m,
10743
+ f,
10744
10744
  {
10745
10745
  ref: F,
10746
10746
  height: r,
@@ -10760,7 +10760,7 @@ const Os = (t) => {
10760
10760
  children: [
10761
10761
  s !== null && R ? /* @__PURE__ */ e(Pn, { ...W, children: I() }) : null,
10762
10762
  /* @__PURE__ */ e(
10763
- m,
10763
+ f,
10764
10764
  {
10765
10765
  direction: "column",
10766
10766
  padding: "spacing-0",
@@ -10783,9 +10783,9 @@ const Os = (t) => {
10783
10783
  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) => {
10784
10784
  const a = [...l];
10785
10785
  let d = [];
10786
- o ? d = i.includes(c.value) ? a.filter((f) => f.value !== c.value) : [...a, c] : d = [c], n == null || n(d);
10786
+ o ? d = i.includes(c.value) ? a.filter((m) => m.value !== c.value) : [...a, c] : d = [c], n == null || n(d);
10787
10787
  };
10788
- return /* @__PURE__ */ e(m, { direction: "row", gap: "sm", flexWrap: "wrap", children: r == null ? void 0 : r.map((c, a) => /* @__PURE__ */ e(
10788
+ return /* @__PURE__ */ e(f, { direction: "row", gap: "sm", flexWrap: "wrap", children: r == null ? void 0 : r.map((c, a) => /* @__PURE__ */ e(
10789
10789
  N,
10790
10790
  {
10791
10791
  ...i.includes(c.value) ? { primary: !0 } : { secondary: !0 },
@@ -10908,7 +10908,7 @@ function dc(t) {
10908
10908
  showCloseButton: c = !0,
10909
10909
  size: a,
10910
10910
  asideWidth: d,
10911
- disableEscapeClose: f = !1,
10911
+ disableEscapeClose: m = !1,
10912
10912
  disableBackdropClose: p = !1,
10913
10913
  lockBodyScroll: g = !0,
10914
10914
  children: x
@@ -10924,12 +10924,12 @@ function dc(t) {
10924
10924
  document.body.style.overflow = w.current ?? "";
10925
10925
  };
10926
10926
  }, [r, g]), Y(() => {
10927
- if (!r || f) return;
10927
+ if (!r || m) return;
10928
10928
  const q = (ee) => {
10929
10929
  ee.key === "Escape" && n();
10930
10930
  };
10931
10931
  return window.addEventListener("keydown", q), () => window.removeEventListener("keydown", q);
10932
- }, [r, f, n]);
10932
+ }, [r, m, n]);
10933
10933
  const I = pe(
10934
10934
  () => Ot(x, Tr),
10935
10935
  [x]
@@ -11123,7 +11123,7 @@ function $s({
11123
11123
  Y(() => {
11124
11124
  let i = null, l = null;
11125
11125
  for (const a of r) {
11126
- const d = a.items.find((f) => f.to ? f.to === "/" ? o.pathname === "/" : !!(f.to === o.pathname || o.pathname.startsWith(f.to + "/")) : !1);
11126
+ const d = a.items.find((m) => m.to ? m.to === "/" ? o.pathname === "/" : !!(m.to === o.pathname || o.pathname.startsWith(m.to + "/")) : !1);
11127
11127
  if (d) {
11128
11128
  i = d, l = a;
11129
11129
  break;
@@ -11142,10 +11142,10 @@ const js = () => {
11142
11142
  setSearchParams: r,
11143
11143
  searchParams: t,
11144
11144
  searchQueries: n,
11145
- isHasQuery: (f, p) => t.has(f) && t.get(f) === p,
11146
- getQueryParam: (f) => t.get(f),
11145
+ isHasQuery: (m, p) => t.has(m) && t.get(m) === p,
11146
+ getQueryParam: (m) => t.get(m),
11147
11147
  // route params
11148
- getRouteParam: (f) => o[f],
11148
+ getRouteParam: (m) => o[m],
11149
11149
  params: o,
11150
11150
  // location info
11151
11151
  location: i,
@@ -11160,21 +11160,21 @@ function _s(t) {
11160
11160
  return pe(() => {
11161
11161
  var a, d;
11162
11162
  const l = ((d = (a = r == null ? void 0 : r.access) == null ? void 0 : a.role) == null ? void 0 : d.code) ?? "", s = Object.keys(t.role).reduce(
11163
- (f, p) => {
11163
+ (m, p) => {
11164
11164
  const g = `is${p.toLowerCase().replace(/(^\w|_\w)/g, (x) => x.replace("_", "").toUpperCase())}`;
11165
- return { ...f, [g]: !1 };
11165
+ return { ...m, [g]: !1 };
11166
11166
  },
11167
11167
  {}
11168
11168
  );
11169
11169
  return {
11170
- ...Object.keys(t.role).reduce((f, p) => {
11170
+ ...Object.keys(t.role).reduce((m, p) => {
11171
11171
  const g = `is${p.toLowerCase().replace(/(^\w|_\w)/g, (x) => x.replace("_", "").toUpperCase())}`;
11172
11172
  return {
11173
- ...f,
11173
+ ...m,
11174
11174
  [g]: l === t.role[p]
11175
11175
  };
11176
11176
  }, s),
11177
- hasRole: (f) => l === t.role[f],
11177
+ hasRole: (m) => l === t.role[m],
11178
11178
  getRoleKey: () => l
11179
11179
  };
11180
11180
  }, [(i = (o = r == null ? void 0 : r.access) == null ? void 0 : o.role) == null ? void 0 : i.code, t]);