@starasia/admin 8.0.3 → 8.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -16,7 +16,7 @@ import { Drawer as xr } from "@starasia/drawer";
16
16
  export * from "@starasia/drawer";
17
17
  import { Dropdown as tt } from "@starasia/dropdown";
18
18
  export * from "@starasia/dropdown";
19
- import { useMediaQuery as se, useDebounce as Cr } from "@starasia/hooks";
19
+ import { useMediaQuery as de, useDebounce as Cr } from "@starasia/hooks";
20
20
  export * from "@starasia/hooks";
21
21
  import { searchParamsToObject as rt } from "@starasia/http";
22
22
  export * from "@starasia/http";
@@ -26,7 +26,7 @@ import { Menu as _e, MenuButton as Fe, MenuLists as je, MenuHeading as br, MenuB
26
26
  export * from "@starasia/menu";
27
27
  import { Pagination as rr } from "@starasia/pagination";
28
28
  export * from "@starasia/pagination";
29
- import { storage as st } from "@starasia/storage";
29
+ import { storage as dt } from "@starasia/storage";
30
30
  export * from "@starasia/storage";
31
31
  import { Tr as Te, Td as Se, Table as nr, Thead as vr, Th as Rt, Tbody as Dr } from "@starasia/table";
32
32
  export * from "@starasia/table";
@@ -59,7 +59,7 @@ import { Skeleton as He } from "@starasia/skeleton";
59
59
  export * from "@starasia/skeleton";
60
60
  export * from "@starasia/progress-stepper";
61
61
  import { jsx as e, Fragment as ee, jsxs as u } from "react/jsx-runtime";
62
- import Ye, { createContext as nt, useState as B, useContext as We, useCallback as G, useMemo as de, memo as Ce, useEffect as Z, useRef as ne, useLayoutEffect as xt, forwardRef as kt, isValidElement as Ct, Children as Er, useImperativeHandle as Lr } from "react";
62
+ import Ye, { createContext as nt, useState as B, useContext as We, useCallback as G, useMemo as se, memo as Ce, useEffect as Z, useRef as ne, useLayoutEffect as xt, forwardRef as kt, isValidElement as Ct, Children as Er, useImperativeHandle as Lr } from "react";
63
63
  import { useSearchParams as it, useNavigate as St, useLocation as Ze, Outlet as Tt, Link as Xe, useParams as ir } from "react-router";
64
64
  import Mr, { createPortal as or } from "react-dom";
65
65
  import Br from "react-easy-crop";
@@ -71,7 +71,7 @@ const Wr = {
71
71
  userData: null,
72
72
  setUserData: () => {
73
73
  }
74
- }, lr = nt(Wr), cr = () => We(lr), Ar = (t) => {
74
+ }, lr = nt(Wr), cr = () => We(lr), zr = (t) => {
75
75
  const [r, n] = B(
76
76
  (t == null ? void 0 : t.initialUserData) || null
77
77
  );
@@ -87,7 +87,7 @@ const Wr = {
87
87
  },
88
88
  clearBadge: () => {
89
89
  }
90
- }), zr = ({ children: t }) => {
90
+ }), Ar = ({ children: t }) => {
91
91
  const [r, n] = B({}), o = G(
92
92
  (c) => {
93
93
  n(
@@ -97,23 +97,23 @@ const Wr = {
97
97
  []
98
98
  ), i = G(
99
99
  (c, h) => {
100
- n((s) => {
101
- const m = typeof h == "function" ? h(s[c]) : h;
102
- return { ...s, [c]: m };
100
+ n((d) => {
101
+ const m = typeof h == "function" ? h(d[c]) : h;
102
+ return { ...d, [c]: m };
103
103
  });
104
104
  },
105
105
  []
106
106
  ), l = G((c) => {
107
107
  n((h) => {
108
108
  if (!(c in h)) return h;
109
- const s = { ...h };
110
- return delete s[c], s;
109
+ const d = { ...h };
110
+ return delete d[c], d;
111
111
  });
112
- }, []), d = de(
112
+ }, []), s = se(
113
113
  () => ({ badges: r, setBadge: i, setBadges: o, clearBadge: l }),
114
114
  [r, i, o, l]
115
115
  );
116
- return /* @__PURE__ */ e(ar.Provider, { value: d, children: t });
116
+ return /* @__PURE__ */ e(ar.Provider, { value: s, children: t });
117
117
  }, Ir = () => We(ar), ut = (t, r) => {
118
118
  const n = r !== void 0 ? r : t;
119
119
  return n == null ? null : typeof n == "string" || typeof n == "number" ? { value: n } : n;
@@ -124,9 +124,9 @@ const Wr = {
124
124
  logo: o,
125
125
  appName: i = "Workspace",
126
126
  initialUserData: l,
127
- theme: d
127
+ theme: s
128
128
  }) => {
129
- const c = Ar({ initialUserData: l }), { theme: h } = kr();
129
+ const c = zr({ initialUserData: l }), { theme: h } = kr();
130
130
  return /* @__PURE__ */ e(
131
131
  lr.Provider,
132
132
  {
@@ -138,7 +138,7 @@ const Wr = {
138
138
  setUserData: c.setUserData,
139
139
  menuBottom: n
140
140
  },
141
- children: /* @__PURE__ */ e(zr, { children: d ? /* @__PURE__ */ e(Ht, { value: d, children: t }) : h ? /* @__PURE__ */ e(Ht, { value: h, children: t }) : t })
141
+ children: /* @__PURE__ */ e(Ar, { children: s ? /* @__PURE__ */ e(Ht, { value: s, children: t }) : h ? /* @__PURE__ */ e(Ht, { value: h, children: t }) : t })
142
142
  }
143
143
  );
144
144
  }, oo = Ce(Vr);
@@ -181,7 +181,7 @@ function Rr({
181
181
  }
182
182
  const Ft = nt(null);
183
183
  function Hr({ children: t }) {
184
- const [r, n] = B(null), [o, i] = B(null), [l, d] = B(null), [c, h] = B(0), s = G(() => (h((m) => m + 1), () => h((m) => m - 1)), []);
184
+ const [r, n] = B(null), [o, i] = B(null), [l, s] = B(null), [c, h] = B(0), d = G(() => (h((m) => m + 1), () => h((m) => m - 1)), []);
185
185
  return /* @__PURE__ */ e(
186
186
  Ft.Provider,
187
187
  {
@@ -191,9 +191,9 @@ function Hr({ children: t }) {
191
191
  replaceNode: l,
192
192
  setPrependNode: n,
193
193
  setAppendNode: i,
194
- setReplaceNode: d,
194
+ setReplaceNode: s,
195
195
  replaceCount: c,
196
- registerReplace: s
196
+ registerReplace: d
197
197
  },
198
198
  children: t
199
199
  }
@@ -224,14 +224,14 @@ function lo({
224
224
  }
225
225
  const Et = nt(null);
226
226
  function Nr({ children: t }) {
227
- const [r, n] = B({}), [o, i] = B({}), l = G((h, s) => {
228
- n((m) => m[h] === s ? m : { ...m, [h]: s });
229
- }, []), d = G((h) => (i((s) => ({ ...s, [h]: (s[h] ?? 0) + 1 })), () => i((s) => ({
230
- ...s,
231
- [h]: Math.max(0, (s[h] ?? 0) - 1)
232
- }))), []), c = de(
233
- () => ({ outletNodes: r, setOutletNode: l, slotCounts: o, registerSlot: d }),
234
- [r, l, o, d]
227
+ const [r, n] = B({}), [o, i] = B({}), l = G((h, d) => {
228
+ n((m) => m[h] === d ? m : { ...m, [h]: d });
229
+ }, []), s = G((h) => (i((d) => ({ ...d, [h]: (d[h] ?? 0) + 1 })), () => i((d) => ({
230
+ ...d,
231
+ [h]: Math.max(0, (d[h] ?? 0) - 1)
232
+ }))), []), c = se(
233
+ () => ({ outletNodes: r, setOutletNode: l, slotCounts: o, registerSlot: s }),
234
+ [r, l, o, s]
235
235
  );
236
236
  return /* @__PURE__ */ e(Et.Provider, { value: c, children: t });
237
237
  }
@@ -239,9 +239,9 @@ function Or({ slotKey: t, fallback: r }) {
239
239
  const n = We(Et), o = n ? (n.slotCounts[t] ?? 0) > 0 : !1, i = ne(n == null ? void 0 : n.setOutletNode);
240
240
  i.current = n == null ? void 0 : n.setOutletNode;
241
241
  const l = G(
242
- (d) => {
242
+ (s) => {
243
243
  var c;
244
- return (c = i.current) == null ? void 0 : c.call(i, t, d);
244
+ return (c = i.current) == null ? void 0 : c.call(i, t, s);
245
245
  },
246
246
  [t]
247
247
  // slotKey is a stable string from group config
@@ -268,13 +268,13 @@ function Nt() {
268
268
  const r = Number(t);
269
269
  return Number.isFinite(r) ? r : null;
270
270
  }
271
- function dr(t) {
271
+ function sr(t) {
272
272
  typeof window > "u" || (t === null ? window.localStorage.removeItem(Ke) : window.localStorage.setItem(Ke, String(t)), window.dispatchEvent(new CustomEvent(bt, { detail: t })));
273
273
  }
274
274
  function ao() {
275
- dr(null);
275
+ sr(null);
276
276
  }
277
- function sr() {
277
+ function dr() {
278
278
  const [t, r] = B(
279
279
  () => Nt()
280
280
  );
@@ -288,7 +288,7 @@ function sr() {
288
288
  window.removeEventListener(bt, o), window.removeEventListener("storage", i);
289
289
  };
290
290
  }, []), { selectedGroupId: t, setSelectedGroupId: (o) => {
291
- dr(o), r(o);
291
+ sr(o), r(o);
292
292
  } };
293
293
  }
294
294
  let Ue = 0, ke = !1, Ot = /* @__PURE__ */ new Set();
@@ -333,18 +333,18 @@ function so({
333
333
  isLoadingProfile: o,
334
334
  onLogout: i,
335
335
  isLoggingOut: l,
336
- loadingComponent: d,
336
+ loadingComponent: s,
337
337
  sidebarHeaderContent: c,
338
338
  headerActions: h,
339
- profileRole: s,
339
+ profileRole: d,
340
340
  profileMenuButtons: m,
341
341
  profileMenuItems: g,
342
342
  logoutButton: y
343
343
  }) {
344
344
  var Me, Je;
345
- const [x] = it(), k = x.get("embed") === "true", p = cr(), { badges: E } = Ir(), M = St(), S = Ze(), C = !se("md"), [L, A] = B(!1), [w, $] = B(!1), [K, X] = B(!1), [N, Y] = B(!1), [te, ue] = B(
345
+ const [x] = it(), k = x.get("embed") === "true", p = cr(), { badges: E } = Ir(), M = St(), S = Ze(), C = !de("md"), [L, z] = B(!1), [w, $] = B(!1), [K, X] = B(!1), [N, Y] = B(!1), [te, ue] = B(
346
346
  () => new Set(Ot)
347
- ), [le, ie] = B(null), { selectedGroupId: P, setSelectedGroupId: q } = sr();
347
+ ), [le, ie] = B(null), { selectedGroupId: P, setSelectedGroupId: q } = dr();
348
348
  Z(() => {
349
349
  Ot = te;
350
350
  }, [te]);
@@ -379,7 +379,7 @@ function so({
379
379
  }));
380
380
  }, [p.menus]), Z(() => {
381
381
  ke = !0, ye();
382
- const b = setTimeout(ye, 0), V = setTimeout(ye, 50), R = setTimeout(ye, 100), D = setTimeout(ye, 200), z = setTimeout(() => {
382
+ const b = setTimeout(ye, 0), V = setTimeout(ye, 50), R = setTimeout(ye, 100), D = setTimeout(ye, 200), A = setTimeout(() => {
383
383
  ke = !1;
384
384
  }, 300), W = setTimeout(() => {
385
385
  const I = oe.current, O = I == null ? void 0 : I.querySelector("[data-menu-active='true']");
@@ -389,7 +389,7 @@ function so({
389
389
  }
390
390
  }, 250);
391
391
  return () => {
392
- clearTimeout(b), clearTimeout(V), clearTimeout(R), clearTimeout(D), clearTimeout(z), clearTimeout(W);
392
+ clearTimeout(b), clearTimeout(V), clearTimeout(R), clearTimeout(D), clearTimeout(A), clearTimeout(W);
393
393
  };
394
394
  }, [S.pathname]), Z(() => {
395
395
  ge.current && (ge.current.scrollTop = 0);
@@ -398,29 +398,29 @@ function so({
398
398
  }, [S.pathname, C]), Z(() => {
399
399
  C && $(!0);
400
400
  }, [C]);
401
- const Ae = () => {
402
- A(!0);
401
+ const ze = () => {
402
+ z(!0);
403
403
  }, Pe = () => {
404
- A(!1);
404
+ z(!1);
405
405
  }, ct = () => {
406
- A(!1), i();
406
+ z(!1), i();
407
407
  }, qe = (b) => {
408
408
  const V = [b.to];
409
409
  return b.children && V.push(...b.children.map((R) => R.to)), V;
410
- }, ze = [
410
+ }, Ae = [
411
411
  ...p.menus.flatMap((b) => b.items.flatMap(qe)),
412
412
  ...((Me = p.menuBottom) == null ? void 0 : Me.flatMap(qe)) ?? []
413
413
  ], he = (b) => {
414
414
  if (!S.pathname.startsWith(b)) return !1;
415
- const V = ze.filter((R) => S.pathname.startsWith(R)).sort((R, D) => D.length - R.length)[0];
415
+ const V = Ae.filter((R) => S.pathname.startsWith(R)).sort((R, D) => D.length - R.length)[0];
416
416
  return b === V;
417
417
  };
418
418
  Z(() => {
419
419
  var V;
420
420
  const b = (R) => {
421
421
  var D;
422
- (D = R.children) != null && D.some((z) => S.pathname.startsWith(z.to)) && ue((z) => {
423
- const W = new Set(z);
422
+ (D = R.children) != null && D.some((A) => S.pathname.startsWith(A.to)) && ue((A) => {
423
+ const W = new Set(A);
424
424
  return W.add(R.id), W;
425
425
  });
426
426
  };
@@ -437,7 +437,7 @@ function so({
437
437
  Z(() => {
438
438
  p.menus.length !== 0 && P !== null && !p.menus.some((b) => b.id === P) && q(null);
439
439
  }, [p.menus, P, q]);
440
- const Ie = de(() => {
440
+ const Ie = se(() => {
441
441
  if (P !== null)
442
442
  return p.menus.filter(
443
443
  (R) => R.id === P || R.parentGroupId === P
@@ -451,7 +451,7 @@ function so({
451
451
  if (k)
452
452
  return /* @__PURE__ */ e("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)" }, children: t || /* @__PURE__ */ e(Tt, {}) });
453
453
  const Le = (b) => {
454
- const V = b.children && b.children.length > 0, R = te.has(b.id), D = V ? b.children.some((I) => he(I.to)) : he(b.to), z = ut(b.badge, E[b.id]), W = !!z && w && !C;
454
+ const V = b.children && b.children.length > 0, R = te.has(b.id), D = V ? b.children.some((I) => he(I.to)) : he(b.to), A = ut(b.badge, E[b.id]), W = !!A && w && !C;
455
455
  return /* @__PURE__ */ u("div", { "data-menu-active": D || void 0, children: [
456
456
  /* @__PURE__ */ u(
457
457
  "button",
@@ -542,11 +542,11 @@ function so({
542
542
  children: b.title
543
543
  }
544
544
  ),
545
- z && /* @__PURE__ */ e(
545
+ A && /* @__PURE__ */ e(
546
546
  Ne,
547
547
  {
548
- text: String(z.value),
549
- variant: z.variant ?? "info",
548
+ text: String(A.value),
549
+ variant: A.variant ?? "info",
550
550
  size: "xs",
551
551
  border: !0
552
552
  }
@@ -1200,7 +1200,7 @@ function so({
1200
1200
  children: (n == null ? void 0 : n.email) || "unknown"
1201
1201
  }
1202
1202
  ),
1203
- s && /* @__PURE__ */ e(
1203
+ d && /* @__PURE__ */ e(
1204
1204
  "p",
1205
1205
  {
1206
1206
  style: {
@@ -1212,7 +1212,7 @@ function so({
1212
1212
  overflow: "hidden",
1213
1213
  textOverflow: "ellipsis"
1214
1214
  },
1215
- children: s
1215
+ children: d
1216
1216
  }
1217
1217
  )
1218
1218
  ]
@@ -1243,7 +1243,7 @@ function so({
1243
1243
  "button",
1244
1244
  {
1245
1245
  type: "button",
1246
- onClick: Ae,
1246
+ onClick: ze,
1247
1247
  style: {
1248
1248
  ...jt,
1249
1249
  color: "var(--sa-background-error, #c9184a)",
@@ -1293,7 +1293,7 @@ function so({
1293
1293
  ]
1294
1294
  }
1295
1295
  ),
1296
- l && d && /* @__PURE__ */ e(
1296
+ l && s && /* @__PURE__ */ e(
1297
1297
  "div",
1298
1298
  {
1299
1299
  style: {
@@ -1305,7 +1305,7 @@ function so({
1305
1305
  justifyContent: "center",
1306
1306
  zIndex: 9999
1307
1307
  },
1308
- children: d
1308
+ children: s
1309
1309
  }
1310
1310
  ),
1311
1311
  /* @__PURE__ */ u(vt, { isShow: L, onHide: Pe, children: [
@@ -1449,7 +1449,7 @@ const ot = kt(
1449
1449
  hoverTextColor: i,
1450
1450
  hoverIconColor: l
1451
1451
  }) => {
1452
- const [d, c] = B(!1);
1452
+ const [s, c] = B(!1);
1453
1453
  return /* @__PURE__ */ u(
1454
1454
  f,
1455
1455
  {
@@ -1466,7 +1466,7 @@ const ot = kt(
1466
1466
  name: r || "ChevronLeft",
1467
1467
  size: "xs",
1468
1468
  style: {
1469
- color: d ? l ?? "var(--sa-text-subtle, #8c8f97)" : o ?? "var(--sa-text-subtle, #8c8f97)",
1469
+ color: s ? l ?? "var(--sa-text-subtle, #8c8f97)" : o ?? "var(--sa-text-subtle, #8c8f97)",
1470
1470
  transition: "color 0.15s ease"
1471
1471
  }
1472
1472
  }
@@ -1476,7 +1476,7 @@ const ot = kt(
1476
1476
  {
1477
1477
  variant: "sub-h3",
1478
1478
  style: {
1479
- color: d ? i ?? "var(--sa-text-primary, #292a2e)" : n ?? "var(--sa-text-subtle, #8c8f97)",
1479
+ color: s ? i ?? "var(--sa-text-primary, #292a2e)" : n ?? "var(--sa-text-subtle, #8c8f97)",
1480
1480
  transition: "color 0.15s ease"
1481
1481
  },
1482
1482
  children: t || "Back"
@@ -1492,20 +1492,20 @@ const ot = kt(
1492
1492
  iconColor: o,
1493
1493
  hoverIconColor: i
1494
1494
  }) => {
1495
- const [l, d] = B(!1), c = o ?? "var(--sa-text-subtle, #8c8f97)", h = i ?? "var(--sa-text-subtle, #8c8f97)", s = t.length > 1 ? t[0] : void 0, m = !!(s != null && s.to || s != null && s.onClick), g = /* @__PURE__ */ e(
1495
+ const [l, s] = B(!1), c = o ?? "var(--sa-text-subtle, #8c8f97)", h = i ?? "var(--sa-text-subtle, #8c8f97)", d = t.length > 1 ? t[0] : void 0, m = !!(d != null && d.to || d != null && d.onClick), g = /* @__PURE__ */ e(
1496
1496
  F,
1497
1497
  {
1498
1498
  name: n || "ChevronLeft",
1499
1499
  size: "xs",
1500
- onMouseEnter: m ? () => d(!0) : void 0,
1501
- onMouseLeave: m ? () => d(!1) : void 0,
1500
+ onMouseEnter: m ? () => s(!0) : void 0,
1501
+ onMouseLeave: m ? () => s(!1) : void 0,
1502
1502
  style: {
1503
1503
  color: m && l ? h : c,
1504
1504
  transition: "color 0.15s ease",
1505
1505
  cursor: m ? "pointer" : void 0
1506
1506
  }
1507
1507
  }
1508
- ), y = s != null && s.to ? /* @__PURE__ */ e(Xe, { to: s.to, replace: !0, style: { textDecoration: "none" }, children: g }) : s != null && s.onClick ? /* @__PURE__ */ e(ot, { onClick: s.onClick, children: g }) : g;
1508
+ ), y = d != null && d.to ? /* @__PURE__ */ e(Xe, { to: d.to, replace: !0, style: { textDecoration: "none" }, children: g }) : d != null && d.onClick ? /* @__PURE__ */ e(ot, { onClick: d.onClick, children: g }) : g;
1509
1509
  return /* @__PURE__ */ u(f, { direction: "row", gap: "xs", align: "center", children: [
1510
1510
  y,
1511
1511
  /* @__PURE__ */ e(yr, { separator: r, size: "md", children: t.map((x, k) => {
@@ -1611,8 +1611,8 @@ function jr({
1611
1611
  selectedGroupId: o,
1612
1612
  onSelect: i
1613
1613
  }) {
1614
- const [l, d] = B(void 0), c = (s) => {
1615
- i(s), r();
1614
+ const [l, s] = B(void 0), c = (d) => {
1615
+ i(d), r();
1616
1616
  }, h = ht[0];
1617
1617
  return /* @__PURE__ */ e(
1618
1618
  vt,
@@ -1638,8 +1638,8 @@ function jr({
1638
1638
  "button",
1639
1639
  {
1640
1640
  onClick: () => c(null),
1641
- onMouseEnter: () => d("all"),
1642
- onMouseLeave: () => d(void 0),
1641
+ onMouseEnter: () => s("all"),
1642
+ onMouseLeave: () => s(void 0),
1643
1643
  style: qt,
1644
1644
  children: [
1645
1645
  /* @__PURE__ */ e("div", { style: Zt(o === null, l === "all", h), children: /* @__PURE__ */ e("div", { style: { color: h.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(F, { name: "Grid", size: "lg", style: { width: 32, height: 32 } }) }) }),
@@ -1647,22 +1647,22 @@ function jr({
1647
1647
  ]
1648
1648
  }
1649
1649
  ),
1650
- n.map((s, m) => {
1650
+ n.map((d, m) => {
1651
1651
  var p;
1652
- const g = o === s.id, y = l === s.id, x = ((p = s.items[0]) == null ? void 0 : p.icon) ?? "Grid", k = ht[(m + 1) % ht.length];
1652
+ const g = o === d.id, y = l === d.id, x = ((p = d.items[0]) == null ? void 0 : p.icon) ?? "Grid", k = ht[(m + 1) % ht.length];
1653
1653
  return /* @__PURE__ */ u(
1654
1654
  "button",
1655
1655
  {
1656
- onClick: () => c(s.id),
1657
- onMouseEnter: () => d(s.id),
1658
- onMouseLeave: () => d(void 0),
1656
+ onClick: () => c(d.id),
1657
+ onMouseEnter: () => s(d.id),
1658
+ onMouseLeave: () => s(void 0),
1659
1659
  style: qt,
1660
1660
  children: [
1661
1661
  /* @__PURE__ */ e("div", { style: Zt(g, y, k), children: /* @__PURE__ */ e("div", { style: { color: k.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(F, { name: x, size: "lg", style: { width: 32, height: 32 } }) }) }),
1662
- /* @__PURE__ */ e("span", { style: Pt, children: s.name })
1662
+ /* @__PURE__ */ e("span", { style: Pt, children: d.name })
1663
1663
  ]
1664
1664
  },
1665
- s.id
1665
+ d.id
1666
1666
  );
1667
1667
  })
1668
1668
  ]
@@ -1675,13 +1675,13 @@ function ho({
1675
1675
  onSelect: t,
1676
1676
  "aria-label": r = "Pilih module"
1677
1677
  } = {}) {
1678
- const n = cr(), o = St(), { selectedGroupId: i, setSelectedGroupId: l } = sr(), [d, c] = B(!1), h = (s) => {
1678
+ const n = cr(), o = St(), { selectedGroupId: i, setSelectedGroupId: l } = dr(), [s, c] = B(!1), h = (d) => {
1679
1679
  var m;
1680
- if (l(s), s !== null) {
1681
- const g = n.menus.find((x) => x.id === s), y = (m = g == null ? void 0 : g.items[0]) == null ? void 0 : m.to;
1680
+ if (l(d), d !== null) {
1681
+ const g = n.menus.find((x) => x.id === d), y = (m = g == null ? void 0 : g.items[0]) == null ? void 0 : m.to;
1682
1682
  y && o(y);
1683
1683
  }
1684
- t == null || t(s);
1684
+ t == null || t(d);
1685
1685
  };
1686
1686
  return /* @__PURE__ */ u(ee, { children: [
1687
1687
  /* @__PURE__ */ u("div", { style: { position: "relative" }, children: [
@@ -1702,11 +1702,11 @@ function ho({
1702
1702
  cursor: "pointer"
1703
1703
  },
1704
1704
  "aria-label": r,
1705
- onMouseEnter: (s) => {
1706
- s.currentTarget.style.backgroundColor = "var(--sa-background-primary-inverse, #f8f8f8)";
1705
+ onMouseEnter: (d) => {
1706
+ d.currentTarget.style.backgroundColor = "var(--sa-background-primary-inverse, #f8f8f8)";
1707
1707
  },
1708
- onMouseLeave: (s) => {
1709
- s.currentTarget.style.backgroundColor = "transparent";
1708
+ onMouseLeave: (d) => {
1709
+ d.currentTarget.style.backgroundColor = "transparent";
1710
1710
  },
1711
1711
  children: /* @__PURE__ */ e(F, { name: "GridApplication", size: "sm" })
1712
1712
  }
@@ -1730,9 +1730,9 @@ function ho({
1730
1730
  /* @__PURE__ */ e(
1731
1731
  jr,
1732
1732
  {
1733
- isShow: d,
1733
+ isShow: s,
1734
1734
  onHide: () => c(!1),
1735
- menus: n.menus.filter((s) => s.parentGroupId === void 0),
1735
+ menus: n.menus.filter((d) => d.parentGroupId === void 0),
1736
1736
  selectedGroupId: i,
1737
1737
  onSelect: h
1738
1738
  }
@@ -1757,14 +1757,14 @@ const $r = (t, r) => {
1757
1757
  lastIndex: i,
1758
1758
  labelAlign: l = "top"
1759
1759
  }) => {
1760
- const d = de(
1760
+ const s = se(
1761
1761
  () => ({
1762
1762
  padding: 0,
1763
1763
  paddingBottom: i ? 0 : 12,
1764
1764
  verticalAlign: l
1765
1765
  }),
1766
1766
  [i, l]
1767
- ), c = de(
1767
+ ), c = se(
1768
1768
  () => ({
1769
1769
  padding: 0,
1770
1770
  paddingRight: 12,
@@ -1773,11 +1773,11 @@ const $r = (t, r) => {
1773
1773
  verticalAlign: l
1774
1774
  }),
1775
1775
  [i, l]
1776
- ), h = () => typeof r == "string" ? /* @__PURE__ */ e(v, { fontWeight: "medium", color: "subtlest", children: r }) : r, s = () => typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ e(v, { color: "primary", fontWeight: "medium", children: t }) : t, m = () => typeof n == "string" || typeof n == "number" ? /* @__PURE__ */ e(v, { fontWeight: "medium", color: "subtlest", children: n }) : n;
1776
+ ), h = () => typeof r == "string" ? /* @__PURE__ */ e(v, { fontWeight: "medium", color: "subtlest", children: r }) : r, d = () => typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ e(v, { color: "primary", fontWeight: "medium", children: t }) : t, m = () => typeof n == "string" || typeof n == "number" ? /* @__PURE__ */ e(v, { fontWeight: "medium", color: "subtlest", children: n }) : n;
1777
1777
  return /* @__PURE__ */ u(Te, { children: [
1778
- /* @__PURE__ */ e(Se, { style: d, width: o, children: h() }),
1778
+ /* @__PURE__ */ e(Se, { style: s, width: o, children: h() }),
1779
1779
  n ? /* @__PURE__ */ e(Se, { style: c, width: 24, children: m() }) : null,
1780
- /* @__PURE__ */ e(Se, { style: d, children: s() })
1780
+ /* @__PURE__ */ e(Se, { style: s, children: d() })
1781
1781
  ] });
1782
1782
  }
1783
1783
  ), Pr = Ce(({ fields: t, separator: r, labelWidth: n }) => /* @__PURE__ */ e(nr, { children: t.map((o, i) => /* @__PURE__ */ e(
@@ -1798,10 +1798,10 @@ const $r = (t, r) => {
1798
1798
  labelWidth: i = 150,
1799
1799
  bordered: l = !1
1800
1800
  }) => {
1801
- const d = de(
1801
+ const s = se(
1802
1802
  () => $r(o, t),
1803
1803
  [o, t]
1804
- ), c = d.length > 2, h = () => {
1804
+ ), c = s.length > 2, h = () => {
1805
1805
  switch (r) {
1806
1806
  case 1:
1807
1807
  return "width-full";
@@ -1828,7 +1828,7 @@ const $r = (t, r) => {
1828
1828
  borderWidth: l ? "border" : void 0,
1829
1829
  borderStyle: l ? "border-solid" : void 0,
1830
1830
  borderColor: l ? "border-subtle" : void 0,
1831
- children: d.map((s, m) => /* @__PURE__ */ e(
1831
+ children: s.map((d, m) => /* @__PURE__ */ e(
1832
1832
  f,
1833
1833
  {
1834
1834
  direction: "column",
@@ -1839,7 +1839,7 @@ const $r = (t, r) => {
1839
1839
  Pr,
1840
1840
  {
1841
1841
  labelWidth: i,
1842
- fields: s,
1842
+ fields: d,
1843
1843
  separator: n
1844
1844
  }
1845
1845
  )
@@ -1850,7 +1850,7 @@ const $r = (t, r) => {
1850
1850
  );
1851
1851
  }
1852
1852
  ), qr = ({ backButton: t }) => {
1853
- const [r, n] = B(!1), o = (t == null ? void 0 : t.iconColor) ?? "var(--sa-text-subtle, #8c8f97)", i = (t == null ? void 0 : t.textColor) ?? "var(--sa-text-subtle, #8c8f97)", l = (t == null ? void 0 : t.hoverIconColor) ?? "var(--sa-text-subtle, #8c8f97)", d = (t == null ? void 0 : t.hoverTextColor) ?? "var(--sa-text-primary, #292a2e)";
1853
+ const [r, n] = B(!1), o = (t == null ? void 0 : t.iconColor) ?? "var(--sa-text-subtle, #8c8f97)", i = (t == null ? void 0 : t.textColor) ?? "var(--sa-text-subtle, #8c8f97)", l = (t == null ? void 0 : t.hoverIconColor) ?? "var(--sa-text-subtle, #8c8f97)", s = (t == null ? void 0 : t.hoverTextColor) ?? "var(--sa-text-primary, #292a2e)";
1854
1854
  return /* @__PURE__ */ u(
1855
1855
  f,
1856
1856
  {
@@ -1877,7 +1877,7 @@ const $r = (t, r) => {
1877
1877
  {
1878
1878
  variant: "sub-h3",
1879
1879
  style: {
1880
- color: r ? d : i,
1880
+ color: r ? s : i,
1881
1881
  textDecoration: r ? "underline" : "none",
1882
1882
  transition: "color 0.15s ease"
1883
1883
  },
@@ -1894,14 +1894,14 @@ const $r = (t, r) => {
1894
1894
  titleTag: o,
1895
1895
  children: i,
1896
1896
  header: l = !0,
1897
- headerBorder: d = !1,
1897
+ headerBorder: s = !1,
1898
1898
  subHeaders: c,
1899
1899
  action: h,
1900
- titleTagProps: s,
1900
+ titleTagProps: d,
1901
1901
  containerProps: m,
1902
1902
  headerProps: g
1903
1903
  }) => {
1904
- const y = se("lg"), x = St(), k = Ze(), p = t == null ? void 0 : t.show, E = () => {
1904
+ const y = de("lg"), x = St(), k = Ze(), p = t == null ? void 0 : t.show, E = () => {
1905
1905
  if (typeof (t == null ? void 0 : t.onClick) == "function") {
1906
1906
  t.onClick();
1907
1907
  return;
@@ -1941,7 +1941,7 @@ const $r = (t, r) => {
1941
1941
  paddingInline: (g == null ? void 0 : g.paddingInline) ?? "md",
1942
1942
  ...g,
1943
1943
  style: {
1944
- ...d ? { borderBottom: "1px solid var(--sa-border-subtle, #0b120e24)" } : {},
1944
+ ...s ? { borderBottom: "1px solid var(--sa-border-subtle, #0b120e24)" } : {},
1945
1945
  ...g == null ? void 0 : g.style
1946
1946
  },
1947
1947
  children: [
@@ -1967,7 +1967,7 @@ const $r = (t, r) => {
1967
1967
  }
1968
1968
  )
1969
1969
  ] }),
1970
- o && /* @__PURE__ */ e(gr, { border: !0, size: "lg", text: o, ...s })
1970
+ o && /* @__PURE__ */ e(gr, { border: !0, size: "lg", text: o, ...d })
1971
1971
  ] }) : r : null,
1972
1972
  M()
1973
1973
  ]
@@ -2018,7 +2018,7 @@ const $r = (t, r) => {
2018
2018
  ]
2019
2019
  }
2020
2020
  );
2021
- }, A = () => i;
2021
+ }, z = () => i;
2022
2022
  return /* @__PURE__ */ u(
2023
2023
  f,
2024
2024
  {
@@ -2031,7 +2031,7 @@ const $r = (t, r) => {
2031
2031
  },
2032
2032
  children: [
2033
2033
  L(),
2034
- A()
2034
+ z()
2035
2035
  ]
2036
2036
  },
2037
2037
  k.pathname
@@ -2047,11 +2047,11 @@ const $r = (t, r) => {
2047
2047
  style: o,
2048
2048
  children: i,
2049
2049
  closeButton: l = Jr,
2050
- width: d,
2050
+ width: s,
2051
2051
  minWidth: c = "357px",
2052
2052
  maxWidth: h = "357px"
2053
- }, s) => {
2054
- const m = Gt(d ?? c), g = Gt(d ?? h);
2053
+ }, d) => {
2054
+ const m = Gt(s ?? c), g = Gt(s ?? h);
2055
2055
  return /* @__PURE__ */ e(
2056
2056
  xr,
2057
2057
  {
@@ -2059,7 +2059,7 @@ const $r = (t, r) => {
2059
2059
  isShow: r,
2060
2060
  position: "right",
2061
2061
  onHide: t,
2062
- ref: s,
2062
+ ref: d,
2063
2063
  style: {
2064
2064
  minWidth: m,
2065
2065
  maxWidth: g,
@@ -2096,7 +2096,7 @@ const $r = (t, r) => {
2096
2096
  }
2097
2097
  ), ur = Ce(
2098
2098
  ({ children: t, borderBottom: r = !0, padding: n = !0 }) => {
2099
- const o = se("lg");
2099
+ const o = de("lg");
2100
2100
  return /* @__PURE__ */ e(
2101
2101
  f,
2102
2102
  {
@@ -2113,7 +2113,7 @@ const $r = (t, r) => {
2113
2113
  }
2114
2114
  ), hr = Ce(
2115
2115
  ({ children: t, borderTop: r = !0, padding: n = !0 }) => {
2116
- const o = se("lg");
2116
+ const o = de("lg");
2117
2117
  return /* @__PURE__ */ e(
2118
2118
  f,
2119
2119
  {
@@ -2149,14 +2149,14 @@ const $r = (t, r) => {
2149
2149
  action: o,
2150
2150
  header: i,
2151
2151
  footer: l,
2152
- actionContainer: d,
2152
+ actionContainer: s,
2153
2153
  containerProps: c,
2154
2154
  bodyProps: h,
2155
- headerProps: s = { borderBottom: !0 },
2155
+ headerProps: d = { borderBottom: !0 },
2156
2156
  footerProps: m = { borderTop: !0 },
2157
2157
  variantTag: g = "info"
2158
2158
  }) => {
2159
- const y = se("lg"), x = () => n ? /* @__PURE__ */ u(f, { direction: "row", gap: "sm", align: "center", children: [
2159
+ const y = de("lg"), x = () => n ? /* @__PURE__ */ u(f, { direction: "row", gap: "sm", align: "center", children: [
2160
2160
  /* @__PURE__ */ e(v, { fontWeight: "medium", children: r }),
2161
2161
  /* @__PURE__ */ e(Ne, { border: !0, text: n, variant: g })
2162
2162
  ] }) : /* @__PURE__ */ e(v, { fontWeight: "medium", children: r }), k = () => i || /* @__PURE__ */ u(
@@ -2173,7 +2173,7 @@ const $r = (t, r) => {
2173
2173
  {
2174
2174
  direction: "column",
2175
2175
  style: y ? { width: "100%", maxWidth: "19.313rem" } : { flex: 1 },
2176
- ...d,
2176
+ ...s,
2177
2177
  children: o ?? null
2178
2178
  }
2179
2179
  )
@@ -2196,14 +2196,14 @@ const $r = (t, r) => {
2196
2196
  ...(c == null ? void 0 : c.style) ?? {}
2197
2197
  },
2198
2198
  children: [
2199
- i !== null && p ? /* @__PURE__ */ e(ur, { ...s, children: k() }) : null,
2199
+ i !== null && p ? /* @__PURE__ */ e(ur, { ...d, children: k() }) : null,
2200
2200
  /* @__PURE__ */ e(Yr, { ...h, children: t }),
2201
2201
  l ? /* @__PURE__ */ e(hr, { ...m, children: l }) : null
2202
2202
  ]
2203
2203
  }
2204
2204
  );
2205
2205
  }
2206
- ), Xr = (t) => /* @__PURE__ */ e(v, { variant: "h1", children: t.children, ...t.props }), Kr = (t) => /* @__PURE__ */ e(v, { variant: "h2", children: t.children, ...t.props }), en = (t) => /* @__PURE__ */ e(v, { variant: "h3", children: t.children, ...t.props }), tn = (t) => /* @__PURE__ */ e(v, { variant: "h4", children: t.children, ...t.props }), rn = (t) => /* @__PURE__ */ e(v, { variant: "h5", children: t.children, ...t.props }), nn = (t) => /* @__PURE__ */ e(v, { variant: "h6", children: t.children, ...t.props }), on = (t) => /* @__PURE__ */ e(v, { variant: "sub-h1", children: t.children, ...t.props }), ln = (t) => /* @__PURE__ */ e(v, { variant: "sub-h2", children: t.children, ...t.props }), cn = (t) => /* @__PURE__ */ e(v, { variant: "sub-h3", children: t.children, ...t.props }), an = (t) => /* @__PURE__ */ e(v, { variant: "body-1", children: t.children, ...t.props }), dn = (t) => /* @__PURE__ */ e(v, { variant: "body-2", children: t.children, ...t.props }), sn = (t) => /* @__PURE__ */ e(v, { variant: "body-3", children: t.children, ...t.props }), xe = {
2206
+ ), Xr = (t) => /* @__PURE__ */ e(v, { variant: "h1", children: t.children, ...t.props }), Kr = (t) => /* @__PURE__ */ e(v, { variant: "h2", children: t.children, ...t.props }), en = (t) => /* @__PURE__ */ e(v, { variant: "h3", children: t.children, ...t.props }), tn = (t) => /* @__PURE__ */ e(v, { variant: "h4", children: t.children, ...t.props }), rn = (t) => /* @__PURE__ */ e(v, { variant: "h5", children: t.children, ...t.props }), nn = (t) => /* @__PURE__ */ e(v, { variant: "h6", children: t.children, ...t.props }), on = (t) => /* @__PURE__ */ e(v, { variant: "sub-h1", children: t.children, ...t.props }), ln = (t) => /* @__PURE__ */ e(v, { variant: "sub-h2", children: t.children, ...t.props }), cn = (t) => /* @__PURE__ */ e(v, { variant: "sub-h3", children: t.children, ...t.props }), an = (t) => /* @__PURE__ */ e(v, { variant: "body-1", children: t.children, ...t.props }), sn = (t) => /* @__PURE__ */ e(v, { variant: "body-2", children: t.children, ...t.props }), dn = (t) => /* @__PURE__ */ e(v, { variant: "body-3", children: t.children, ...t.props }), xe = {
2207
2207
  H1: Xr,
2208
2208
  H2: Kr,
2209
2209
  H3: en,
@@ -2214,8 +2214,8 @@ const $r = (t, r) => {
2214
2214
  SubH2: ln,
2215
2215
  SubH3: cn,
2216
2216
  Body1: an,
2217
- Body2: dn,
2218
- Body3: sn
2217
+ Body2: sn,
2218
+ Body3: dn
2219
2219
  }, Ee = () => {
2220
2220
  const [t, r] = it(), n = rt(t.toString()), o = ir(), i = Ze(), l = o.id;
2221
2221
  return {
@@ -2241,42 +2241,42 @@ const $r = (t, r) => {
2241
2241
  withSearchParam: o = !0,
2242
2242
  setSearchParams: i,
2243
2243
  searchQueries: l,
2244
- dropdownSearchKey: d,
2244
+ dropdownSearchKey: s,
2245
2245
  filterKey: c = "filter",
2246
2246
  pageKey: h = "page"
2247
2247
  }) => {
2248
2248
  if (o) {
2249
- let s;
2249
+ let d;
2250
2250
  switch (n) {
2251
2251
  case "search":
2252
- s = gn(t);
2252
+ d = gn(t);
2253
2253
  break;
2254
2254
  case "dropdown":
2255
2255
  case "dropdown-multiple":
2256
- s = un(t);
2256
+ d = un(t);
2257
2257
  break;
2258
2258
  case "radio":
2259
- s = hn(t);
2259
+ d = hn(t);
2260
2260
  break;
2261
2261
  case "date-range":
2262
- s = fn(t);
2262
+ d = fn(t);
2263
2263
  break;
2264
2264
  case "advanced-date-range":
2265
- s = yn(t);
2265
+ d = yn(t);
2266
2266
  break;
2267
2267
  case "date":
2268
- s = mn(t);
2268
+ d = mn(t);
2269
2269
  break;
2270
2270
  default:
2271
- s = t;
2271
+ d = t;
2272
2272
  break;
2273
2273
  }
2274
- if (typeof s < "u") {
2274
+ if (typeof d < "u") {
2275
2275
  const g = {
2276
2276
  ...l[c] && typeof l[c] == "string" ? JSON.parse(l[c]) : void 0,
2277
- [r]: s
2277
+ [r]: d
2278
2278
  }, y = { ...l };
2279
- d && typeof d == "string" && delete y[d], delete y[h];
2279
+ s && typeof s == "string" && delete y[s], delete y[h];
2280
2280
  const x = {
2281
2281
  ...y,
2282
2282
  [c]: JSON.stringify(g)
@@ -2294,24 +2294,24 @@ const $r = (t, r) => {
2294
2294
  searchParams: n,
2295
2295
  get: o
2296
2296
  }) => {
2297
- const i = n.get(r) || void 0, l = i && typeof i == "string" ? JSON.parse(i) : void 0, d = l ? l[t] : void 0;
2298
- return o === "label" && d ? JSON.parse(d)[0].label : o === "value" && d ? JSON.parse(d)[0].value : d;
2297
+ const i = n.get(r) || void 0, l = i && typeof i == "string" ? JSON.parse(i) : void 0, s = l ? l[t] : void 0;
2298
+ return o === "label" && s ? JSON.parse(s)[0].label : o === "value" && s ? JSON.parse(s)[0].value : s;
2299
2299
  }, pn = ({
2300
2300
  name: t,
2301
2301
  filterKey: r = "filter",
2302
2302
  searchParams: n,
2303
2303
  get: o
2304
2304
  }) => {
2305
- const i = n.get(r) || void 0, l = i && typeof i == "string" ? JSON.parse(i) : void 0, d = l ? l[t] : void 0;
2306
- return o === "label" && d ? JSON.parse(d).map((c) => c.label) : o === "value" && d ? JSON.parse(d).map((c) => c.value) : o === "array" && d ? JSON.parse(d) : d;
2305
+ const i = n.get(r) || void 0, l = i && typeof i == "string" ? JSON.parse(i) : void 0, s = l ? l[t] : void 0;
2306
+ return o === "label" && s ? JSON.parse(s).map((c) => c.label) : o === "value" && s ? JSON.parse(s).map((c) => c.value) : o === "array" && s ? JSON.parse(s) : s;
2307
2307
  }, yo = ({
2308
2308
  name: t,
2309
2309
  filterKey: r = "filter",
2310
2310
  searchParams: n,
2311
2311
  get: o
2312
2312
  }) => {
2313
- const i = n.get(r) || void 0, l = i && typeof i == "string" ? JSON.parse(i) : void 0, d = l ? l[t] : void 0;
2314
- return o === "id" && d ? JSON.parse(d).id : o === "label" && d ? JSON.parse(d).label : o === "value" && d ? JSON.parse(d).value : d;
2313
+ const i = n.get(r) || void 0, l = i && typeof i == "string" ? JSON.parse(i) : void 0, s = l ? l[t] : void 0;
2314
+ return o === "id" && s ? JSON.parse(s).id : o === "label" && s ? JSON.parse(s).label : o === "value" && s ? JSON.parse(s).value : s;
2315
2315
  }, fr = (t, r, n) => {
2316
2316
  const o = r.get(n || "filter") || void 0, i = o && typeof o == "string" ? JSON.parse(o) : void 0;
2317
2317
  return i ? i[t] : void 0;
@@ -2337,8 +2337,8 @@ const $r = (t, r) => {
2337
2337
  perPageKey: n = "perPage",
2338
2338
  pageKey: o = "page"
2339
2339
  }) => {
2340
- const i = t.get(r) || void 0, l = t.get(n) || void 0, d = t.get(o) || void 0;
2341
- return !!i || !!l || !!d;
2340
+ const i = t.get(r) || void 0, l = t.get(n) || void 0, s = t.get(o) || void 0;
2341
+ return !!i || !!l || !!s;
2342
2342
  }, bn = ({
2343
2343
  isOpen: t,
2344
2344
  onClose: r,
@@ -2346,8 +2346,8 @@ const $r = (t, r) => {
2346
2346
  pageKey: o,
2347
2347
  filters: i
2348
2348
  }) => {
2349
- const { searchParams: l, setSearchParams: d, searchQueries: c } = Ee(), [h, s] = B({}), m = () => {
2350
- l.delete(n || "filter"), d(l);
2349
+ const { searchParams: l, setSearchParams: s, searchQueries: c } = Ee(), [h, d] = B({}), m = () => {
2350
+ l.delete(n || "filter"), s(l);
2351
2351
  }, g = (y, x) => {
2352
2352
  switch (y.type) {
2353
2353
  case "radio": {
@@ -2392,10 +2392,10 @@ const $r = (t, r) => {
2392
2392
  searchHighlightPlaceholder: o,
2393
2393
  extendedFilter: i,
2394
2394
  showSearchFilter: l = !0,
2395
- showStatusFilter: d = !0,
2395
+ showStatusFilter: s = !0,
2396
2396
  filterKey: c = "filter",
2397
2397
  pageKey: h = "page",
2398
- customWidthSearch: s,
2398
+ customWidthSearch: d,
2399
2399
  handleOnReset: m,
2400
2400
  filterConfigs: g,
2401
2401
  buttonToggleProps: y,
@@ -2403,7 +2403,7 @@ const $r = (t, r) => {
2403
2403
  titleSearchLabel: k = "Work Order",
2404
2404
  withTitleLabels: p = !1
2405
2405
  }) => {
2406
- const M = (y == null ? void 0 : y.isShowLabel) ?? !0, [S, T] = B(!1), [C, L] = B(0), A = () => {
2406
+ const M = (y == null ? void 0 : y.isShowLabel) ?? !0, [S, T] = B(!1), [C, L] = B(0), z = () => {
2407
2407
  L((q) => q + 1);
2408
2408
  }, { searchParams: w, setSearchParams: $, getQueryParam: K } = Ee(), X = rt(w.toString()), N = fr(t, w, c) || "", [Y, te] = B(N), ue = K(c), ie = !!(ue && !(() => {
2409
2409
  if (ue)
@@ -2414,7 +2414,7 @@ const $r = (t, r) => {
2414
2414
  console.error("Filter parameter is not a valid JSON:", q);
2415
2415
  }
2416
2416
  return !1;
2417
- })()), P = se("md");
2417
+ })()), P = de("md");
2418
2418
  return Z(() => {
2419
2419
  te(N);
2420
2420
  }, [N]), Z(() => {
@@ -2456,14 +2456,14 @@ const $r = (t, r) => {
2456
2456
  {
2457
2457
  onClick: () => {
2458
2458
  const q = new URLSearchParams(w);
2459
- q.delete(c), $(q), te(""), A(), m && m();
2459
+ q.delete(c), $(q), te(""), z(), m && m();
2460
2460
  },
2461
2461
  variant: "outline",
2462
2462
  tone: "neutral",
2463
2463
  children: /* @__PURE__ */ e(v, { color: "error", fontWeight: "semibold", children: "Reset" })
2464
2464
  }
2465
2465
  ) }),
2466
- i == null ? void 0 : i.map(({ minWidth: q, content: oe, title: ge, onClickContainer: ye }, Ae) => /* @__PURE__ */ u(
2466
+ i == null ? void 0 : i.map(({ minWidth: q, content: oe, title: ge, onClickContainer: ye }, ze) => /* @__PURE__ */ u(
2467
2467
  f,
2468
2468
  {
2469
2469
  direction: "column",
@@ -2477,7 +2477,7 @@ const $r = (t, r) => {
2477
2477
  oe
2478
2478
  ]
2479
2479
  },
2480
- `extended-filter-${Ae}-${C}`
2480
+ `extended-filter-${ze}-${C}`
2481
2481
  )),
2482
2482
  !!(g != null && g.length) && /* @__PURE__ */ e(
2483
2483
  _,
@@ -2499,7 +2499,7 @@ const $r = (t, r) => {
2499
2499
  children: M ? "Filter" : void 0
2500
2500
  }
2501
2501
  ),
2502
- d && /* @__PURE__ */ u(
2502
+ s && /* @__PURE__ */ u(
2503
2503
  f,
2504
2504
  {
2505
2505
  direction: "column",
@@ -2564,7 +2564,7 @@ const $r = (t, r) => {
2564
2564
  direction: "column",
2565
2565
  gap: "sm",
2566
2566
  style: {
2567
- width: s && P ? s : P ? "310px" : ""
2567
+ width: d && P ? d : P ? "310px" : ""
2568
2568
  },
2569
2569
  children: [
2570
2570
  p && /* @__PURE__ */ u(xe.SubH3, { children: [
@@ -2606,18 +2606,18 @@ function wn({
2606
2606
  pageKey: o = "page",
2607
2607
  searchKey: i = "q"
2608
2608
  }) {
2609
- const { searchParams: l, setSearchParams: d, searchQueries: c } = Ee(), h = de(
2609
+ const { searchParams: l, setSearchParams: s, searchQueries: c } = Ee(), h = se(
2610
2610
  () => Object.fromEntries(t.map((C) => [C.key, C])),
2611
2611
  [t]
2612
- ), s = de(() => {
2613
- const C = (l.get(n) || "").split(",").map((A) => A.trim()).filter(Boolean);
2612
+ ), d = se(() => {
2613
+ const C = (l.get(n) || "").split(",").map((z) => z.trim()).filter(Boolean);
2614
2614
  let L = [];
2615
2615
  try {
2616
- const A = l.get(r);
2617
- A && (L = Object.keys(JSON.parse(A)).filter((w) => w !== i));
2616
+ const z = l.get(r);
2617
+ z && (L = Object.keys(JSON.parse(z)).filter((w) => w !== i));
2618
2618
  } catch {
2619
2619
  }
2620
- return t.map((A) => A.key).filter((A) => C.includes(A) || L.includes(A));
2620
+ return t.map((z) => z.key).filter((z) => C.includes(z) || L.includes(z));
2621
2621
  }, [l, n, r, i, t]), m = G(
2622
2622
  (C) => {
2623
2623
  try {
@@ -2630,33 +2630,33 @@ function wn({
2630
2630
  ), g = G(
2631
2631
  (C) => {
2632
2632
  const L = { ...c };
2633
- C.length ? L[n] = C.join(",") : delete L[n], d(L);
2633
+ C.length ? L[n] = C.join(",") : delete L[n], s(L);
2634
2634
  },
2635
- [c, n, d]
2635
+ [c, n, s]
2636
2636
  ), y = G(
2637
2637
  (C) => {
2638
- s.includes(C) || g([...s, C]);
2638
+ d.includes(C) || g([...d, C]);
2639
2639
  },
2640
- [s, g]
2640
+ [d, g]
2641
2641
  ), x = G(
2642
2642
  (C) => {
2643
- const L = { ...c }, A = s.filter(($) => $ !== C);
2644
- A.length ? L[n] = A.join(",") : delete L[n];
2643
+ const L = { ...c }, z = d.filter(($) => $ !== C);
2644
+ z.length ? L[n] = z.join(",") : delete L[n];
2645
2645
  const w = m(L);
2646
- C in w && (delete w[C], Object.keys(w).length ? L[r] = JSON.stringify(w) : delete L[r]), delete L[o], d(L);
2646
+ C in w && (delete w[C], Object.keys(w).length ? L[r] = JSON.stringify(w) : delete L[r]), delete L[o], s(L);
2647
2647
  },
2648
2648
  [
2649
2649
  c,
2650
- s,
2650
+ d,
2651
2651
  n,
2652
2652
  r,
2653
2653
  o,
2654
2654
  m,
2655
- d
2655
+ s
2656
2656
  ]
2657
2657
  ), k = G(
2658
- (C) => s.includes(C) ? x(C) : y(C),
2659
- [s, y, x]
2658
+ (C) => d.includes(C) ? x(C) : y(C),
2659
+ [d, y, x]
2660
2660
  ), p = G(
2661
2661
  (C) => {
2662
2662
  switch (C.type) {
@@ -2679,12 +2679,12 @@ function wn({
2679
2679
  return L ? new Date(L) : void 0;
2680
2680
  }
2681
2681
  case "date-range": {
2682
- const { start: L, end: A } = xn({
2682
+ const { start: L, end: z } = xn({
2683
2683
  name: C.key,
2684
2684
  searchParams: l,
2685
2685
  filterKey: r
2686
2686
  });
2687
- return L && A ? { from: new Date(L), to: new Date(A) } : void 0;
2687
+ return L && z ? { from: new Date(L), to: new Date(z) } : void 0;
2688
2688
  }
2689
2689
  default:
2690
2690
  return;
@@ -2698,24 +2698,24 @@ function wn({
2698
2698
  name: C.key,
2699
2699
  type: Dn(C.type),
2700
2700
  searchQueries: c,
2701
- setSearchParams: d,
2701
+ setSearchParams: s,
2702
2702
  filterKey: r,
2703
2703
  pageKey: o
2704
2704
  });
2705
2705
  },
2706
- [c, d, r, o]
2706
+ [c, s, r, o]
2707
2707
  ), M = G(
2708
2708
  (C) => {
2709
- const L = { ...c }, A = m(L);
2710
- C in A && (delete A[C], Object.keys(A).length ? L[r] = JSON.stringify(A) : delete L[r]), delete L[o], d(L);
2709
+ const L = { ...c }, z = m(L);
2710
+ C in z && (delete z[C], Object.keys(z).length ? L[r] = JSON.stringify(z) : delete L[r]), delete L[o], s(L);
2711
2711
  },
2712
- [c, r, o, m, d]
2712
+ [c, r, o, m, s]
2713
2713
  ), S = G(() => {
2714
2714
  const C = { ...c };
2715
- delete C[r], delete C[n], delete C[o], d(C);
2716
- }, [c, r, n, o, d]), T = s.length > 0;
2715
+ delete C[r], delete C[n], delete C[o], s(C);
2716
+ }, [c, r, n, o, s]), T = d.length > 0;
2717
2717
  return {
2718
- activeKeys: s,
2718
+ activeKeys: d,
2719
2719
  configByKey: h,
2720
2720
  hasActiveFilter: T,
2721
2721
  addFilter: y,
@@ -2729,13 +2729,13 @@ function wn({
2729
2729
  }
2730
2730
  const kn = {
2731
2731
  get(t) {
2732
- return st.get(t) ?? null;
2732
+ return dt.get(t) ?? null;
2733
2733
  },
2734
2734
  set(t, r) {
2735
- st.save(t, r);
2735
+ dt.save(t, r);
2736
2736
  },
2737
2737
  remove(t) {
2738
- st.delete(t);
2738
+ dt.delete(t);
2739
2739
  }
2740
2740
  }, mr = {
2741
2741
  columns: (t) => `filterbar:colprefs:${t}`,
@@ -2752,10 +2752,10 @@ function Sn({
2752
2752
  storage: n,
2753
2753
  onColumnsChange: o
2754
2754
  }) {
2755
- const i = de(
2755
+ const i = se(
2756
2756
  () => ({ order: t.map((S) => S.key), hidden: [] }),
2757
2757
  [t]
2758
- ), l = r ? mr.columns(r) : void 0, [d, c] = B(() => {
2758
+ ), l = r ? mr.columns(r) : void 0, [s, c] = B(() => {
2759
2759
  if (l) {
2760
2760
  const S = n.get(l);
2761
2761
  if (S && Array.isArray(S.order)) return mt(S, t);
@@ -2763,45 +2763,45 @@ function Sn({
2763
2763
  return i;
2764
2764
  }), h = t.map((S) => S.key).join("|");
2765
2765
  Z(() => c((S) => mt(S, t)), [h]);
2766
- const s = ne(!1);
2766
+ const d = ne(!1);
2767
2767
  Z(() => {
2768
- s.current || (s.current = !0, o == null || o(d));
2768
+ d.current || (d.current = !0, o == null || o(s));
2769
2769
  }, []);
2770
2770
  const m = G(
2771
2771
  (S) => {
2772
2772
  c(S), l && n.set(l, S), o == null || o(S);
2773
2773
  },
2774
2774
  [l, n, o]
2775
- ), g = de(() => {
2775
+ ), g = se(() => {
2776
2776
  const S = new Map(t.map((T) => [T.key, T]));
2777
- return d.order.filter((T) => S.has(T)).map((T) => ({ ...S.get(T), visible: !d.hidden.includes(T) }));
2778
- }, [d, t]), y = G(
2777
+ return s.order.filter((T) => S.has(T)).map((T) => ({ ...S.get(T), visible: !s.hidden.includes(T) }));
2778
+ }, [s, t]), y = G(
2779
2779
  (S) => {
2780
- const T = d.hidden.includes(S) ? d.hidden.filter((C) => C !== S) : [...d.hidden, S];
2781
- m({ ...d, hidden: T });
2780
+ const T = s.hidden.includes(S) ? s.hidden.filter((C) => C !== S) : [...s.hidden, S];
2781
+ m({ ...s, hidden: T });
2782
2782
  },
2783
- [d, m]
2783
+ [s, m]
2784
2784
  ), x = G(
2785
2785
  (S, T) => {
2786
2786
  if (S === T) return;
2787
- const C = [...d.order], [L] = C.splice(S, 1);
2788
- C.splice(T, 0, L), m({ ...d, order: C });
2787
+ const C = [...s.order], [L] = C.splice(S, 1);
2788
+ C.splice(T, 0, L), m({ ...s, order: C });
2789
2789
  },
2790
- [d, m]
2790
+ [s, m]
2791
2791
  ), k = G(
2792
2792
  (S) => {
2793
2793
  m({
2794
- ...d,
2794
+ ...s,
2795
2795
  hidden: S ? t.filter((T) => !T.locked).map((T) => T.key) : []
2796
2796
  });
2797
2797
  },
2798
- [d, t, m]
2798
+ [s, t, m]
2799
2799
  ), p = G(() => m(i), [m, i]), E = G(
2800
2800
  (S) => m(mt(S, t)),
2801
2801
  [m, t]
2802
- ), M = d.hidden.length === 0;
2802
+ ), M = s.hidden.length === 0;
2803
2803
  return {
2804
- state: d,
2804
+ state: s,
2805
2805
  orderedColumns: g,
2806
2806
  allVisible: M,
2807
2807
  toggleVisibility: y,
@@ -2819,7 +2819,7 @@ function Fn({
2819
2819
  getColumns: i,
2820
2820
  applyColumns: l
2821
2821
  }) {
2822
- const { searchParams: d, setSearchParams: c } = Ee(), h = t ? mr.savedViews(t) : void 0, [s, m] = B(
2822
+ const { searchParams: s, setSearchParams: c } = Ee(), h = t ? mr.savedViews(t) : void 0, [d, m] = B(
2823
2823
  () => h ? r.get(h) || [] : []
2824
2824
  ), g = G(
2825
2825
  (p) => {
@@ -2833,7 +2833,7 @@ function Fn({
2833
2833
  if (!E) return;
2834
2834
  const M = {};
2835
2835
  n.forEach((T) => {
2836
- const C = d.get(T);
2836
+ const C = s.get(T);
2837
2837
  C != null && (M[T] = C);
2838
2838
  });
2839
2839
  const S = {
@@ -2843,22 +2843,22 @@ function Fn({
2843
2843
  columns: i == null ? void 0 : i(),
2844
2844
  createdAt: Date.now()
2845
2845
  };
2846
- g([...s, S]);
2846
+ g([...d, S]);
2847
2847
  },
2848
- [n, d, i, g, s]
2848
+ [n, s, i, g, d]
2849
2849
  ), x = G(
2850
- (p) => g(s.filter((E) => E.id !== p)),
2851
- [g, s]
2850
+ (p) => g(d.filter((E) => E.id !== p)),
2851
+ [g, d]
2852
2852
  ), k = G(
2853
2853
  (p) => {
2854
- const E = Object.fromEntries(d.entries());
2854
+ const E = Object.fromEntries(s.entries());
2855
2855
  n.forEach((M) => delete E[M]), Object.assign(E, p.query), delete E[o], c(E), p.columns && (l == null || l(p.columns));
2856
2856
  },
2857
- [d, n, o, c, l]
2857
+ [s, n, o, c, l]
2858
2858
  );
2859
2859
  return {
2860
2860
  enabled: !!h,
2861
- views: s,
2861
+ views: d,
2862
2862
  saveView: y,
2863
2863
  deleteView: x,
2864
2864
  applyView: k
@@ -2943,8 +2943,8 @@ const En = ({
2943
2943
  setValue: o,
2944
2944
  clearValue: i,
2945
2945
  removeFilter: l
2946
- }) => /* @__PURE__ */ e(ee, { children: t.map((d) => {
2947
- const c = r[d];
2946
+ }) => /* @__PURE__ */ e(ee, { children: t.map((s) => {
2947
+ const c = r[s];
2948
2948
  if (!c) return null;
2949
2949
  const h = n(c);
2950
2950
  return /* @__PURE__ */ u(f, { direction: "row", display: "flex", align: "center", gap: "spacing-2", children: [
@@ -2953,15 +2953,15 @@ const En = ({
2953
2953
  {
2954
2954
  field: c,
2955
2955
  value: h,
2956
- onChange: (s) => o(c, s),
2957
- onClear: () => i(d)
2956
+ onChange: (d) => o(c, d),
2957
+ onClear: () => i(s)
2958
2958
  }
2959
2959
  ) : /* @__PURE__ */ e(
2960
2960
  Mn,
2961
2961
  {
2962
2962
  field: c,
2963
2963
  value: h || [],
2964
- onChange: (s) => o(c, s)
2964
+ onChange: (d) => o(c, d)
2965
2965
  }
2966
2966
  ),
2967
2967
  !c.locked && /* @__PURE__ */ e(
@@ -2972,10 +2972,10 @@ const En = ({
2972
2972
  size: "xs",
2973
2973
  iconLeft: /* @__PURE__ */ e(F, { name: "CrossSmall" }),
2974
2974
  "aria-label": `Remove ${c.label} filter`,
2975
- onClick: () => l(d)
2975
+ onClick: () => l(s)
2976
2976
  }
2977
2977
  )
2978
- ] }, d);
2978
+ ] }, s);
2979
2979
  }) }), Jt = (t) => `${t} Rows`, Wn = ({
2980
2980
  pagination: t,
2981
2981
  pageKey: r = "page",
@@ -2983,10 +2983,10 @@ const En = ({
2983
2983
  pageSizeOptions: o = [10, 25, 50, 100],
2984
2984
  defaultPerPage: i = 10,
2985
2985
  showResultCount: l = !0,
2986
- showPagination: d = !0
2986
+ showPagination: s = !0
2987
2987
  }) => {
2988
2988
  var E;
2989
- const { searchQueries: c, setSearchParams: h, searchParams: s } = Ee(), m = s.get(n), g = m ? Number(m) : i, y = (M) => {
2989
+ const { searchQueries: c, setSearchParams: h, searchParams: d } = Ee(), m = d.get(n), g = m ? Number(m) : i, y = (M) => {
2990
2990
  h({ ...c, [r]: String(M) });
2991
2991
  }, x = (M) => {
2992
2992
  h({
@@ -3004,7 +3004,7 @@ const En = ({
3004
3004
  {
3005
3005
  variant: "outline",
3006
3006
  tone: "neutral",
3007
- size: "sm",
3007
+ size: "xs",
3008
3008
  iconRight: /* @__PURE__ */ e(F, { name: "ChevronSmallDown" }),
3009
3009
  "aria-label": "Rows per page",
3010
3010
  children: Jt(g)
@@ -3020,7 +3020,7 @@ const En = ({
3020
3020
  M
3021
3021
  )) }) })
3022
3022
  ] }),
3023
- d && /* @__PURE__ */ e(
3023
+ s && /* @__PURE__ */ e(
3024
3024
  f,
3025
3025
  {
3026
3026
  direction: "column",
@@ -3035,6 +3035,8 @@ const En = ({
3035
3035
  rr,
3036
3036
  {
3037
3037
  size: "sm",
3038
+ variant: "neutral",
3039
+ siblingCount: 0,
3038
3040
  currentPage: t != null && t.currentPage ? Number(t.currentPage) : 1,
3039
3041
  totalCount: t != null && t.totalPage ? Number(t.totalPage) : 1,
3040
3042
  onPageChange: y
@@ -3044,37 +3046,37 @@ const En = ({
3044
3046
  )
3045
3047
  ] });
3046
3048
  };
3047
- function An(t, r, n = !0) {
3049
+ function zn(t, r, n = !0) {
3048
3050
  Z(() => {
3049
3051
  if (!n) return;
3050
3052
  const o = (i) => {
3051
3053
  var c;
3052
3054
  if (i.metaKey || i.ctrlKey || i.altKey || i.key !== t) return;
3053
- const l = i.target, d = (c = l == null ? void 0 : l.tagName) == null ? void 0 : c.toLowerCase();
3054
- d === "input" || d === "textarea" || l != null && l.isContentEditable || (i.preventDefault(), r());
3055
+ const l = i.target, s = (c = l == null ? void 0 : l.tagName) == null ? void 0 : c.toLowerCase();
3056
+ s === "input" || s === "textarea" || l != null && l.isContentEditable || (i.preventDefault(), r());
3055
3057
  };
3056
3058
  return window.addEventListener("keydown", o), () => window.removeEventListener("keydown", o);
3057
3059
  }, [t, r, n]);
3058
3060
  }
3059
- const zn = 240, In = ({
3061
+ const An = 240, In = ({
3060
3062
  searchKey: t = "q",
3061
3063
  filterKey: r = "filter",
3062
3064
  pageKey: n = "page",
3063
3065
  placeholder: o = "Search",
3064
3066
  shortcut: i = "/"
3065
3067
  }) => {
3066
- const { searchParams: l, setSearchParams: d, searchQueries: c } = Ee(), h = fr(t, l, r) || "", [s, m] = B(!!h), [g, y] = B(!h), [x, k] = B(h), p = Cr(x, 350), E = ne(null);
3068
+ const { searchParams: l, setSearchParams: s, searchQueries: c } = Ee(), h = fr(t, l, r) || "", [d, m] = B(!!h), [g, y] = B(!h), [x, k] = B(h), p = Cr(x, 350), E = ne(null);
3067
3069
  Z(() => {
3068
3070
  k(h), h && m(!0);
3069
3071
  }, [h]), Z(() => {
3070
- s && y(!1);
3071
- }, [s]), Z(() => {
3072
+ d && y(!1);
3073
+ }, [d]), Z(() => {
3072
3074
  p !== h && et({
3073
3075
  value: p,
3074
3076
  name: t,
3075
3077
  type: "search",
3076
3078
  searchQueries: c,
3077
- setSearchParams: d,
3079
+ setSearchParams: s,
3078
3080
  filterKey: r,
3079
3081
  pageKey: n
3080
3082
  });
@@ -3085,7 +3087,7 @@ const zn = 240, In = ({
3085
3087
  return (L = E.current) == null ? void 0 : L.focus();
3086
3088
  });
3087
3089
  }, []);
3088
- return An(i, M), // No internal gap: the trigger and the animated input are never visible at
3090
+ return zn(i, M), // No internal gap: the trigger and the animated input are never visible at
3089
3091
  // the same time, so spacing to neighbours is handled by the parent cluster.
3090
3092
  /* @__PURE__ */ u(f, { display: "flex", direction: "row", align: "center", gap: "spacing-0", children: [
3091
3093
  g && /* @__PURE__ */ e(
@@ -3094,7 +3096,7 @@ const zn = 240, In = ({
3094
3096
  variant: "outline",
3095
3097
  tone: "neutral",
3096
3098
  size: "sm",
3097
- iconLeft: /* @__PURE__ */ e(F, { name: "Search" }),
3099
+ iconLeft: /* @__PURE__ */ e(F, { name: "Search", size: "sm" }),
3098
3100
  "aria-label": "Search",
3099
3101
  "aria-expanded": !1,
3100
3102
  onClick: M
@@ -3104,11 +3106,11 @@ const zn = 240, In = ({
3104
3106
  f,
3105
3107
  {
3106
3108
  onTransitionEnd: () => {
3107
- s || y(!0);
3109
+ d || y(!0);
3108
3110
  },
3109
3111
  style: {
3110
3112
  position: "relative",
3111
- width: s ? zn : 0,
3113
+ width: d ? An : 0,
3112
3114
  overflow: "hidden",
3113
3115
  transition: "width 220ms ease"
3114
3116
  },
@@ -3124,16 +3126,16 @@ const zn = 240, In = ({
3124
3126
  leftIcon: /* @__PURE__ */ e(F, { name: "Search", width: 16, height: 16 }),
3125
3127
  onChange: (L) => k(L.target.value),
3126
3128
  onKeyDown: (L) => {
3127
- var A;
3128
- L.key === "Escape" && !x && (m(!1), (A = E.current) == null || A.blur());
3129
+ var z;
3130
+ L.key === "Escape" && !x && (m(!1), (z = E.current) == null || z.blur());
3129
3131
  },
3130
3132
  onBlur: () => {
3131
3133
  x || m(!1);
3132
3134
  },
3133
- tabIndex: s ? 0 : -1
3135
+ tabIndex: d ? 0 : -1
3134
3136
  }
3135
3137
  ),
3136
- s && !x && /* @__PURE__ */ e(
3138
+ d && !x && /* @__PURE__ */ e(
3137
3139
  f,
3138
3140
  {
3139
3141
  align: "center",
@@ -3168,8 +3170,8 @@ const zn = 240, In = ({
3168
3170
  onReorder: o,
3169
3171
  onSetAllHidden: i
3170
3172
  }) => {
3171
- const [l, d] = B(null), [c, h] = B(null), s = () => {
3172
- l !== null && c !== null && l !== c && o(l, c), d(null), h(null);
3173
+ const [l, s] = B(null), [c, h] = B(null), d = () => {
3174
+ l !== null && c !== null && l !== c && o(l, c), s(null), h(null);
3173
3175
  }, m = (g, y) => {
3174
3176
  const x = g + y;
3175
3177
  x < 0 || x >= t.length || o(g, x);
@@ -3181,7 +3183,7 @@ const zn = 240, In = ({
3181
3183
  variant: "outline",
3182
3184
  tone: "neutral",
3183
3185
  size: "sm",
3184
- iconLeft: /* @__PURE__ */ e(F, { name: "Grid" }),
3186
+ iconLeft: /* @__PURE__ */ e(F, { name: "Grid", size: "sm" }),
3185
3187
  "aria-label": "Customize columns"
3186
3188
  }
3187
3189
  ) }),
@@ -3229,12 +3231,12 @@ const zn = 240, In = ({
3229
3231
  gap: "sm",
3230
3232
  paddingBlock: "xs",
3231
3233
  draggable: x,
3232
- onDragStart: () => x && d(y),
3234
+ onDragStart: () => x && s(y),
3233
3235
  onDragOver: (p) => {
3234
3236
  p.preventDefault(), h(y);
3235
3237
  },
3236
- onDrop: s,
3237
- onDragEnd: s,
3238
+ onDrop: d,
3239
+ onDragEnd: d,
3238
3240
  style: {
3239
3241
  minHeight: 32,
3240
3242
  boxShadow: c === y && l !== null && l !== y ? "inset 0 2px 0 0 var(--sa-background-brand, #04254f)" : void 0
@@ -3299,7 +3301,7 @@ const zn = 240, In = ({
3299
3301
  onDelete: n,
3300
3302
  onSave: o
3301
3303
  }) => {
3302
- const [i, l] = B(""), d = () => {
3304
+ const [i, l] = B(""), s = () => {
3303
3305
  const c = i.trim();
3304
3306
  c && (o(c), l(""));
3305
3307
  };
@@ -3307,23 +3309,21 @@ const zn = 240, In = ({
3307
3309
  /* @__PURE__ */ e(Fe, { children: /* @__PURE__ */ e(
3308
3310
  _,
3309
3311
  {
3310
- variant: t.length > 0 ? "primary" : "outline",
3311
- tone: t.length > 0 ? "brand" : "neutral",
3312
+ variant: t.length > 0 ? "secondary" : "outline",
3313
+ tone: (t.length > 0, "neutral"),
3312
3314
  size: "sm",
3313
- iconLeft: /* @__PURE__ */ e(F, { name: "Bookmark" }),
3315
+ iconLeft: /* @__PURE__ */ e(F, { name: "Bookmark", size: "sm" }),
3314
3316
  "aria-label": "Saved views"
3315
3317
  }
3316
3318
  ) }),
3317
- /* @__PURE__ */ u(je, { style: {
3318
- width: "260px"
3319
- }, children: [
3320
- /* @__PURE__ */ e(
3321
- $e,
3322
- {
3323
- style: {
3324
- width: "260px"
3325
- },
3326
- children: /* @__PURE__ */ u(f, { direction: "column", padding: "xs", gap: "sm", children: [
3319
+ /* @__PURE__ */ u(
3320
+ je,
3321
+ {
3322
+ style: {
3323
+ width: "260px"
3324
+ },
3325
+ children: [
3326
+ /* @__PURE__ */ e($e, { children: /* @__PURE__ */ u(f, { direction: "column", padding: "xs", gap: "sm", children: [
3327
3327
  /* @__PURE__ */ e(v, { fontWeight: "semibold", color: "primary", children: "Saved Views" }),
3328
3328
  /* @__PURE__ */ e(
3329
3329
  f,
@@ -3355,44 +3355,41 @@ const zn = 240, In = ({
3355
3355
  ] }, c.id))
3356
3356
  }
3357
3357
  )
3358
- ] })
3359
- }
3360
- ),
3361
- /* @__PURE__ */ e(
3362
- er,
3363
- {
3364
- style: {
3365
- width: "260px"
3366
- },
3367
- children: /* @__PURE__ */ u(f, { direction: "row", gap: "xs", children: [
3368
- /* @__PURE__ */ e(f, { direction: "column", style: { flex: "1 0 0", minWidth: 0 }, children: /* @__PURE__ */ e(
3369
- Oe,
3370
- {
3371
- size: "sm",
3372
- fullWidth: !0,
3373
- placeholder: "Save current view as…",
3374
- value: i,
3375
- onChange: (c) => l(c.target.value),
3376
- onKeyDown: (c) => {
3377
- c.key === "Enter" && d();
3378
- }
3379
- }
3380
- ) }),
3381
- /* @__PURE__ */ e(
3382
- _,
3383
- {
3384
- variant: "primary",
3385
- tone: "brand",
3386
- size: "sm",
3387
- disabled: !i.trim(),
3388
- onClick: d,
3389
- children: "Save"
3390
- }
3391
- )
3392
- ] })
3393
- }
3394
- )
3395
- ] })
3358
+ ] }) }),
3359
+ /* @__PURE__ */ e(
3360
+ er,
3361
+ {
3362
+ children: /* @__PURE__ */ u(f, { direction: "row", gap: "xs", children: [
3363
+ /* @__PURE__ */ e(f, { direction: "column", style: { flex: "1 0 0", minWidth: 0 }, children: /* @__PURE__ */ e(
3364
+ Oe,
3365
+ {
3366
+ size: "sm",
3367
+ fullWidth: !0,
3368
+ placeholder: "Save current view as…",
3369
+ value: i,
3370
+ onChange: (c) => l(c.target.value),
3371
+ onKeyDown: (c) => {
3372
+ c.key === "Enter" && s();
3373
+ }
3374
+ }
3375
+ ) }),
3376
+ /* @__PURE__ */ e(
3377
+ _,
3378
+ {
3379
+ variant: "primary",
3380
+ tone: "brand",
3381
+ size: "sm",
3382
+ disabled: !i.trim(),
3383
+ onClick: s,
3384
+ children: "Save"
3385
+ }
3386
+ )
3387
+ ] })
3388
+ }
3389
+ )
3390
+ ]
3391
+ }
3392
+ )
3396
3393
  ] });
3397
3394
  }, xo = ({
3398
3395
  filterConfigs: t = [],
@@ -3401,10 +3398,10 @@ const zn = 240, In = ({
3401
3398
  pageKey: o = "page",
3402
3399
  perPageKey: i = "perPage",
3403
3400
  pageSizeOptions: l = [10, 25, 50, 100],
3404
- showPagination: d = !0,
3401
+ showPagination: s = !0,
3405
3402
  showResultCount: c = !0,
3406
3403
  searchable: h = !1,
3407
- searchKey: s = "q",
3404
+ searchKey: d = "q",
3408
3405
  searchPlaceholder: m = "Search",
3409
3406
  searchShortcut: g = "/",
3410
3407
  pagination: y,
@@ -3419,7 +3416,7 @@ const zn = 240, In = ({
3419
3416
  configByKey: T,
3420
3417
  hasActiveFilter: C,
3421
3418
  toggleFilter: L,
3422
- removeFilter: A,
3419
+ removeFilter: z,
3423
3420
  getValue: w,
3424
3421
  setValue: $,
3425
3422
  clearValue: K,
@@ -3429,7 +3426,7 @@ const zn = 240, In = ({
3429
3426
  filterKey: r,
3430
3427
  activeFilterKey: n,
3431
3428
  pageKey: o,
3432
- searchKey: s
3429
+ searchKey: d
3433
3430
  }), N = Sn({
3434
3431
  columns: x,
3435
3432
  scopeId: p == null ? void 0 : p.scopeId,
@@ -3486,7 +3483,7 @@ const zn = 240, In = ({
3486
3483
  getValue: w,
3487
3484
  setValue: $,
3488
3485
  clearValue: K,
3489
- removeFilter: A
3486
+ removeFilter: z
3490
3487
  }
3491
3488
  ),
3492
3489
  C && /* @__PURE__ */ e(_, { variant: "link", tone: "error", size: "sm", onClick: () => {
@@ -3503,14 +3500,14 @@ const zn = 240, In = ({
3503
3500
  pageKey: o,
3504
3501
  perPageKey: i,
3505
3502
  pageSizeOptions: l,
3506
- showPagination: d,
3503
+ showPagination: s,
3507
3504
  showResultCount: c
3508
3505
  }
3509
3506
  ),
3510
3507
  h && /* @__PURE__ */ e(
3511
3508
  In,
3512
3509
  {
3513
- searchKey: s,
3510
+ searchKey: d,
3514
3511
  filterKey: r,
3515
3512
  pageKey: o,
3516
3513
  placeholder: m,
@@ -3544,13 +3541,13 @@ const zn = 240, In = ({
3544
3541
  const o = ne(null), [i, l] = B("100vh");
3545
3542
  return Z(() => {
3546
3543
  if (n) return;
3547
- const d = () => {
3544
+ const s = () => {
3548
3545
  if (o.current) {
3549
3546
  const c = o.current.getBoundingClientRect().top;
3550
3547
  l(`calc(100vh - ${c}px)`);
3551
3548
  }
3552
3549
  };
3553
- return d(), window.addEventListener("resize", d), () => window.removeEventListener("resize", d);
3550
+ return s(), window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
3554
3551
  }, [n]), /* @__PURE__ */ e(
3555
3552
  f,
3556
3553
  {
@@ -3576,7 +3573,7 @@ const zn = 240, In = ({
3576
3573
  advanceFilter: i,
3577
3574
  showFilter: l = !0
3578
3575
  }) => {
3579
- const d = se("md"), c = l ? /* @__PURE__ */ e(vn, { ...i }) : null;
3576
+ const s = de("md"), c = l ? /* @__PURE__ */ e(vn, { ...i }) : null;
3580
3577
  return /* @__PURE__ */ e(
3581
3578
  f,
3582
3579
  {
@@ -3593,7 +3590,7 @@ const zn = 240, In = ({
3593
3590
  flexShrink: 0,
3594
3591
  position: "relative",
3595
3592
  zIndex: 10,
3596
- flexDirection: d ? "row" : "column-reverse",
3593
+ flexDirection: s ? "row" : "column-reverse",
3597
3594
  gap: "16px"
3598
3595
  },
3599
3596
  children: o ? o({ filter: c }) : /* @__PURE__ */ u(ee, { children: [
@@ -3608,20 +3605,20 @@ const zn = 240, In = ({
3608
3605
  {
3609
3606
  style: {
3610
3607
  display: "flex",
3611
- flexDirection: d ? "row" : "column",
3608
+ flexDirection: s ? "row" : "column",
3612
3609
  gap: "8px",
3613
- width: d ? "auto" : "100%",
3610
+ width: s ? "auto" : "100%",
3614
3611
  textWrap: "nowrap"
3615
3612
  },
3616
3613
  children: t.map(
3617
- ({ title: s, icon: m, buttonProps: g, onClick: y }, x) => !s && !m ? null : /* @__PURE__ */ e(
3614
+ ({ title: d, icon: m, buttonProps: g, onClick: y }, x) => !d && !m ? null : /* @__PURE__ */ e(
3618
3615
  _,
3619
3616
  {
3620
- fullWidth: !d,
3617
+ fullWidth: !s,
3621
3618
  iconLeft: m ? /* @__PURE__ */ e(F, { name: m }) : void 0,
3622
3619
  onClick: y,
3623
3620
  ...g,
3624
- children: s
3621
+ children: d
3625
3622
  },
3626
3623
  `action-${x}`
3627
3624
  )
@@ -3671,11 +3668,11 @@ const zn = 240, In = ({
3671
3668
  showPagination: i = !0,
3672
3669
  totalData: l
3673
3670
  }) => {
3674
- const { searchQueries: d, setSearchParams: c, searchParams: h } = Ee(), s = h.get(n), m = (k) => {
3675
- c({ ...d, [r]: String(k) });
3671
+ const { searchQueries: s, setSearchParams: c, searchParams: h } = Ee(), d = h.get(n), m = (k) => {
3672
+ c({ ...s, [r]: String(k) });
3676
3673
  }, g = (k) => {
3677
3674
  c({
3678
- ...d,
3675
+ ...s,
3679
3676
  [n]: k,
3680
3677
  [r]: "1"
3681
3678
  });
@@ -3712,8 +3709,8 @@ const zn = 240, In = ({
3712
3709
  onChange: (k) => {
3713
3710
  g(k[0].value);
3714
3711
  },
3715
- value: s ? [{ label: `${s} per row`, value: s }] : [{ label: `${o} per row`, value: `${o}` }],
3716
- defaultValue: s ? [{ label: `${s} per row`, value: s }] : [{ label: `${o} per row`, value: `${o}` }]
3712
+ value: d ? [{ label: `${d} per row`, value: d }] : [{ label: `${o} per row`, value: `${o}` }],
3713
+ defaultValue: d ? [{ label: `${d} per row`, value: d }] : [{ label: `${o} per row`, value: `${o}` }]
3717
3714
  }
3718
3715
  ),
3719
3716
  /* @__PURE__ */ e(v, { children: `${y}-${x} of ${(t == null ? void 0 : t.totalData) || 0}` })
@@ -3737,7 +3734,7 @@ const zn = 240, In = ({
3737
3734
  }
3738
3735
  );
3739
3736
  }, _n = ({ filter: t, columnTitle: r }) => {
3740
- const [n, o] = B(!1), i = ne(null), l = ne(null), d = ne(null), [c, h] = B(""), [s, m] = B({ top: 0, left: 0 }), g = t.selectedValues, y = de(() => c ? t.options.filter(
3737
+ const [n, o] = B(!1), i = ne(null), l = ne(null), s = ne(null), [c, h] = B(""), [d, m] = B({ top: 0, left: 0 }), g = t.selectedValues, y = se(() => c ? t.options.filter(
3741
3738
  (p) => p.label.toLowerCase().includes(c.toLowerCase())
3742
3739
  ) : t.options, [t.options, c]);
3743
3740
  Z(() => {
@@ -3748,9 +3745,9 @@ const zn = 240, In = ({
3748
3745
  t.position === "left" || p.left + E > window.innerWidth ? M.right = window.innerWidth - p.right : M.left = p.left, m(M);
3749
3746
  }
3750
3747
  }, [n, t.position]), Z(() => {
3751
- n && d.current ? setTimeout(() => {
3748
+ n && s.current ? setTimeout(() => {
3752
3749
  var p;
3753
- return (p = d.current) == null ? void 0 : p.focus();
3750
+ return (p = s.current) == null ? void 0 : p.focus();
3754
3751
  }, 50) : h("");
3755
3752
  }, [n]), Z(() => {
3756
3753
  const p = (E) => {
@@ -3795,8 +3792,8 @@ const zn = 240, In = ({
3795
3792
  ref: i,
3796
3793
  style: {
3797
3794
  position: "fixed",
3798
- top: `${s.top}px`,
3799
- ...s.left !== void 0 ? { left: `${s.left}px` } : { right: `${s.right}px` },
3795
+ top: `${d.top}px`,
3796
+ ...d.left !== void 0 ? { left: `${d.left}px` } : { right: `${d.right}px` },
3800
3797
  backgroundColor: "white",
3801
3798
  borderRadius: "4px",
3802
3799
  minWidth: "280px",
@@ -3855,7 +3852,7 @@ const zn = 240, In = ({
3855
3852
  children: /* @__PURE__ */ e(
3856
3853
  Oe,
3857
3854
  {
3858
- ref: d,
3855
+ ref: s,
3859
3856
  placeholder: `Search ${r.toLowerCase()}...`,
3860
3857
  leftIcon: /* @__PURE__ */ e(F, { name: "Search", size: "sm" }),
3861
3858
  value: c,
@@ -4095,10 +4092,10 @@ const zn = 240, In = ({
4095
4092
  handleUpdate: o,
4096
4093
  handleDelete: i,
4097
4094
  isLoading: l,
4098
- visibleHandleDelete: d,
4095
+ visibleHandleDelete: s,
4099
4096
  visibleHandleUpdate: c,
4100
4097
  visibleHandleDetail: h,
4101
- showHeadBorder: s = !1,
4098
+ showHeadBorder: d = !1,
4102
4099
  scrollParentRef: m,
4103
4100
  frozenCount: g = 0,
4104
4101
  onFrozenCountChange: y,
@@ -4111,7 +4108,7 @@ const zn = 240, In = ({
4111
4108
  defaultMinColumnWidth: T = 60,
4112
4109
  sort: C,
4113
4110
  defaultSort: L,
4114
- onSortChange: A,
4111
+ onSortChange: z,
4115
4112
  showActionDivider: w = !1
4116
4113
  }) => {
4117
4114
  const $ = C !== void 0, [K, X] = B(
@@ -4120,51 +4117,51 @@ const zn = 240, In = ({
4120
4117
  if (D.sortKey) return D.sortKey;
4121
4118
  if (typeof D.accessor == "string") return D.accessor;
4122
4119
  }, te = (D) => {
4123
- const z = Y(D);
4124
- if (!z) return;
4120
+ const A = Y(D);
4121
+ if (!A) return;
4125
4122
  let W;
4126
- !N || N.key !== z ? W = { key: z, direction: "asc" } : N.direction === "asc" ? W = { key: z, direction: "desc" } : W = null, $ || X(W), A == null || A(W);
4127
- }, le = [n, o, i].filter((D) => D !== void 0).length, ie = !!x, P = !!n || !!o || !!i || ie, q = "var(--sa-border-subtle, #0b120e24)", oe = `1px solid ${q}`, ge = `inset 1px 0 0 ${q}`, ye = `inset -1px 0 0 ${q}`, Ae = le === 3 ? ie ? "178px" : "140px" : le === 2 ? ie ? "140px" : "102px" : le === 1 ? ie ? "112px" : "74px" : ie ? "74px" : "", Pe = (D, z) => {
4128
- if (!z) return D;
4129
- if (typeof z == "function") return z(D);
4130
- if (typeof z == "string") return D[z];
4123
+ !N || N.key !== A ? W = { key: A, direction: "asc" } : N.direction === "asc" ? W = { key: A, direction: "desc" } : W = null, $ || X(W), z == null || z(W);
4124
+ }, le = [n, o, i].filter((D) => D !== void 0).length, ie = !!x, P = !!n || !!o || !!i || ie, q = "var(--sa-border-subtle, #0b120e24)", oe = `1px solid ${q}`, ge = `inset 1px 0 0 ${q}`, ye = `inset -1px 0 0 ${q}`, ze = le === 3 ? ie ? "178px" : "140px" : le === 2 ? ie ? "140px" : "102px" : le === 1 ? ie ? "112px" : "74px" : ie ? "74px" : "", Pe = (D, A) => {
4125
+ if (!A) return D;
4126
+ if (typeof A == "function") return A(D);
4127
+ if (typeof A == "string") return D[A];
4131
4128
  }, [ct, qe] = B(!1);
4132
4129
  Z(() => {
4133
4130
  if (!(m != null && m.current)) return;
4134
4131
  const D = m.current;
4135
4132
  qe(D.scrollHeight > D.clientHeight);
4136
4133
  }, [r, m]);
4137
- const ze = ne(null), [he, Ge] = B([]), [Ie, Le] = B(
4134
+ const Ae = ne(null), [he, Ge] = B([]), [Ie, Le] = B(
4138
4135
  () => M ?? {}
4139
4136
  ), Me = ne(null);
4140
4137
  xt(() => {
4141
- if (!g || !ze.current) {
4138
+ if (!g || !Ae.current) {
4142
4139
  Ge([]);
4143
4140
  return;
4144
4141
  }
4145
4142
  const D = Array.from(
4146
- ze.current.querySelectorAll("thead tr th")
4147
- ), z = [];
4143
+ Ae.current.querySelectorAll("thead tr th")
4144
+ ), A = [];
4148
4145
  let W = 0;
4149
4146
  D.forEach((I, O) => {
4150
- z[O] = W, O < g && (W += I.offsetWidth);
4151
- }), Ge(z);
4147
+ A[O] = W, O < g && (W += I.offsetWidth);
4148
+ }), Ge(A);
4152
4149
  }, [g, t, r, Ie]);
4153
4150
  const Je = (D) => {
4154
4151
  y && y(D < g ? D : D + 1);
4155
- }, b = (D, z) => {
4152
+ }, b = (D, A) => {
4156
4153
  const W = Ie[D];
4157
4154
  if (W !== void 0) {
4158
4155
  const I = `${W}px`;
4159
4156
  return { width: I, minWidth: I, maxWidth: I };
4160
4157
  }
4161
- return z ? { width: z } : {};
4162
- }, V = (D) => E && (D.resizable ?? !0), R = (D, z) => {
4158
+ return A ? { width: A } : {};
4159
+ }, V = (D) => E && (D.resizable ?? !0), R = (D, A) => {
4163
4160
  D.preventDefault(), D.stopPropagation();
4164
4161
  const W = D.currentTarget.closest("th");
4165
4162
  if (!W) return;
4166
4163
  const I = Math.round(W.getBoundingClientRect().width);
4167
- Me.current = { colIndex: z, startX: D.clientX, startWidth: I };
4164
+ Me.current = { colIndex: A, startX: D.clientX, startWidth: I };
4168
4165
  const O = document.body.style.userSelect, ce = document.body.style.cursor;
4169
4166
  document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
4170
4167
  const fe = (ve) => {
@@ -4180,7 +4177,7 @@ const zn = 240, In = ({
4180
4177
  };
4181
4178
  document.addEventListener("mousemove", fe), document.addEventListener("mouseup", we);
4182
4179
  };
4183
- return /* @__PURE__ */ e("div", { ref: ze, children: /* @__PURE__ */ u(nr, { fullWidth: !0, children: [
4180
+ return /* @__PURE__ */ e("div", { ref: Ae, children: /* @__PURE__ */ u(nr, { fullWidth: !0, children: [
4184
4181
  /* @__PURE__ */ e(
4185
4182
  vr,
4186
4183
  {
@@ -4189,9 +4186,9 @@ const zn = 240, In = ({
4189
4186
  whiteSpace: "nowrap"
4190
4187
  },
4191
4188
  children: /* @__PURE__ */ u(Te, { children: [
4192
- t.map((D, z) => {
4193
- var zt, It;
4194
- const W = g > 0 && z < g, I = he[z] ?? 0, O = V(D), fe = z === t.length - 1 && P && w, we = Y(D), ve = !!D.sortable && !!we, be = ve && (N == null ? void 0 : N.key) === we ? N.direction : null, at = D.title || ((zt = D.accessor) == null ? void 0 : zt.toString()) || "", Ve = (It = D.headerTooltip) != null && It.showIcon ? /* @__PURE__ */ e(
4189
+ t.map((D, A) => {
4190
+ var At, It;
4191
+ const W = g > 0 && A < g, I = he[A] ?? 0, O = V(D), fe = A === t.length - 1 && P && w, we = Y(D), ve = !!D.sortable && !!we, be = ve && (N == null ? void 0 : N.key) === we ? N.direction : null, at = D.title || ((At = D.accessor) == null ? void 0 : At.toString()) || "", Ve = (It = D.headerTooltip) != null && It.showIcon ? /* @__PURE__ */ e(
4195
4192
  F,
4196
4193
  {
4197
4194
  name: "InfoCircle",
@@ -4237,13 +4234,13 @@ const zn = 240, In = ({
4237
4234
  top: 0,
4238
4235
  left: W ? I : void 0,
4239
4236
  zIndex: W ? 4 : 2,
4240
- paddingLeft: z === 0 ? "12px" : "",
4241
- borderRight: s && !fe && !W ? oe : void 0,
4242
- borderBottom: s ? oe : void 0,
4243
- boxShadow: s && W ? ye : void 0,
4237
+ paddingLeft: A === 0 ? "12px" : "",
4238
+ borderRight: d && !fe && !W ? oe : void 0,
4239
+ borderBottom: d ? oe : void 0,
4240
+ boxShadow: d && W ? ye : void 0,
4244
4241
  backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
4245
4242
  textAlign: D.textAlign === "text-right" ? "right" : D.textAlign === "text-center" ? "center" : "left",
4246
- ...b(z, D.width)
4243
+ ...b(A, D.width)
4247
4244
  },
4248
4245
  children: [
4249
4246
  /* @__PURE__ */ u(
@@ -4268,7 +4265,7 @@ const zn = 240, In = ({
4268
4265
  y && /* @__PURE__ */ e(
4269
4266
  "button",
4270
4267
  {
4271
- onClick: () => Je(z),
4268
+ onClick: () => Je(A),
4272
4269
  title: W ? "Unfreeze column" : "Freeze column",
4273
4270
  style: {
4274
4271
  background: "none",
@@ -4291,8 +4288,8 @@ const zn = 240, In = ({
4291
4288
  O && /* @__PURE__ */ e(
4292
4289
  "div",
4293
4290
  {
4294
- onMouseDown: (dt) => R(dt, z),
4295
- onClick: (dt) => dt.stopPropagation(),
4291
+ onMouseDown: (st) => R(st, A),
4292
+ onClick: (st) => st.stopPropagation(),
4296
4293
  role: "separator",
4297
4294
  "aria-orientation": "vertical",
4298
4295
  title: "Drag to resize",
@@ -4311,7 +4308,7 @@ const zn = 240, In = ({
4311
4308
  )
4312
4309
  ]
4313
4310
  },
4314
- `table-head-${z}`
4311
+ `table-head-${A}`
4315
4312
  );
4316
4313
  }),
4317
4314
  P ? /* @__PURE__ */ e(
@@ -4323,8 +4320,8 @@ const zn = 240, In = ({
4323
4320
  top: 0,
4324
4321
  right: 0,
4325
4322
  zIndex: 3,
4326
- borderBottom: s ? oe : void 0,
4327
- boxShadow: s && w ? ge : void 0
4323
+ borderBottom: d ? oe : void 0,
4324
+ boxShadow: d && w ? ge : void 0
4328
4325
  }
4329
4326
  }
4330
4327
  ) : null
@@ -4337,13 +4334,13 @@ const zn = 240, In = ({
4337
4334
  /* @__PURE__ */ e(He, { variant: "list" }),
4338
4335
  /* @__PURE__ */ e(He, { variant: "list" }),
4339
4336
  /* @__PURE__ */ e(He, { variant: "list" })
4340
- ] }) }) }) : !(r != null && r.length) && p ? /* @__PURE__ */ e(Te, { children: /* @__PURE__ */ e(Se, { colSpan: t.length + 1, children: p }) }) : r == null ? void 0 : r.map((D, z) => /* @__PURE__ */ u(
4337
+ ] }) }) }) : !(r != null && r.length) && p ? /* @__PURE__ */ e(Te, { children: /* @__PURE__ */ e(Se, { colSpan: t.length + 1, children: p }) }) : r == null ? void 0 : r.map((D, A) => /* @__PURE__ */ u(
4341
4338
  Te,
4342
4339
  {
4343
4340
  style: {
4344
4341
  transition: "background-color 0.3s ease",
4345
4342
  padding: 0,
4346
- borderBottom: z === r.length - 1 && ct ? void 0 : "1px solid var(--sa-border-subtle, #0b120e24)"
4343
+ borderBottom: A === r.length - 1 && ct ? void 0 : "1px solid var(--sa-border-subtle, #0b120e24)"
4347
4344
  },
4348
4345
  onMouseEnter: (W) => {
4349
4346
  const I = W.currentTarget;
@@ -4359,7 +4356,7 @@ const zn = 240, In = ({
4359
4356
  },
4360
4357
  children: [
4361
4358
  t.map((W, I) => {
4362
- const O = W.render ? W.render(D, z, r) : Pe(D, W.accessor), ce = g > 0 && I < g, fe = he[I] ?? 0, we = Ie[I] !== void 0, ve = ce && I === g - 1;
4359
+ const O = W.render ? W.render(D, A, r) : Pe(D, W.accessor), ce = g > 0 && I < g, fe = he[I] ?? 0, we = Ie[I] !== void 0, ve = ce && I === g - 1;
4363
4360
  return /* @__PURE__ */ e(
4364
4361
  Se,
4365
4362
  {
@@ -4391,11 +4388,11 @@ const zn = 240, In = ({
4391
4388
  }
4392
4389
  ) : O
4393
4390
  },
4394
- `row-${z}-col-${I}`
4391
+ `row-${A}-col-${I}`
4395
4392
  );
4396
4393
  }),
4397
4394
  P ? /* @__PURE__ */ e(Se, { style: {
4398
- width: Ae,
4395
+ width: ze,
4399
4396
  position: "sticky",
4400
4397
  right: 0,
4401
4398
  zIndex: 1,
@@ -4403,7 +4400,7 @@ const zn = 240, In = ({
4403
4400
  boxShadow: w ? ge : void 0,
4404
4401
  transition: "background-color 0.3s ease"
4405
4402
  }, children: /* @__PURE__ */ e(U, { direction: "row", align: "center", justify: "center", gap: "sm", children: k.map((W) => {
4406
- const I = z === r.length - 1 ? "top" : "bottom";
4403
+ const I = A === r.length - 1 ? "top" : "bottom";
4407
4404
  return W === "detail" && n && (h == null ? void 0 : h(D)) !== !1 ? /* @__PURE__ */ e(me, { label: "Detail", position: I, children: /* @__PURE__ */ e(
4408
4405
  _,
4409
4406
  {
@@ -4422,7 +4419,7 @@ const zn = 240, In = ({
4422
4419
  onClick: () => o(D),
4423
4420
  iconLeft: /* @__PURE__ */ e(F, { name: "Edit1", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
4424
4421
  }
4425
- ) }, "update") : W === "delete" && i && (d == null ? void 0 : d(D)) !== !1 ? /* @__PURE__ */ e(me, { label: "Delete", position: I, children: /* @__PURE__ */ e(
4422
+ ) }, "update") : W === "delete" && i && (s == null ? void 0 : s(D)) !== !1 ? /* @__PURE__ */ e(me, { label: "Delete", position: I, children: /* @__PURE__ */ e(
4426
4423
  _,
4427
4424
  {
4428
4425
  size: "xs",
@@ -4435,7 +4432,7 @@ const zn = 240, In = ({
4435
4432
  }) }) }) : null
4436
4433
  ]
4437
4434
  },
4438
- `${D}${z}`
4435
+ `${D}${A}`
4439
4436
  )) })
4440
4437
  ] }) });
4441
4438
  }, Pn = ({
@@ -4445,11 +4442,11 @@ const zn = 240, In = ({
4445
4442
  footerProps: o
4446
4443
  }) => {
4447
4444
  var g;
4448
- const i = ne(null), [l, d] = B(
4445
+ const i = ne(null), [l, s] = B(
4449
4446
  (r == null ? void 0 : r.defaultFrozenCount) ?? 0
4450
- ), c = (n == null ? void 0 : n.show) ?? !0, h = ne(null), s = (g = r == null ? void 0 : r.pagination) == null ? void 0 : g.totalData;
4451
- typeof s == "number" && (h.current = s);
4452
- const m = (o == null ? void 0 : o.showFooter) ?? (s === void 0 ? h.current !== 0 : s !== 0);
4447
+ ), c = (n == null ? void 0 : n.show) ?? !0, h = ne(null), d = (g = r == null ? void 0 : r.pagination) == null ? void 0 : g.totalData;
4448
+ typeof d == "number" && (h.current = d);
4449
+ const m = (o == null ? void 0 : o.showFooter) ?? (d === void 0 ? h.current !== 0 : d !== 0);
4453
4450
  return /* @__PURE__ */ u(Hn, { ...t, children: [
4454
4451
  c && /* @__PURE__ */ e(Tn, { ...n }),
4455
4452
  /* @__PURE__ */ e(
@@ -4468,7 +4465,7 @@ const zn = 240, In = ({
4468
4465
  ...r,
4469
4466
  scrollParentRef: i,
4470
4467
  frozenCount: r != null && r.enableFreezeColumns ? l : 0,
4471
- onFrozenCountChange: r != null && r.enableFreezeColumns ? d : void 0
4468
+ onFrozenCountChange: r != null && r.enableFreezeColumns ? s : void 0
4472
4469
  }
4473
4470
  ) : null
4474
4471
  }
@@ -4517,8 +4514,8 @@ const Co = qn(Pn), Lt = ({
4517
4514
  fullWidth: o = !1,
4518
4515
  ...i
4519
4516
  }) => {
4520
- var c, h, s;
4521
- const l = i.hideMessageError || !1, d = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
4517
+ var c, h, d;
4518
+ const l = i.hideMessageError || !1, s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
4522
4519
  return /* @__PURE__ */ u(
4523
4520
  f,
4524
4521
  {
@@ -4534,7 +4531,7 @@ const Co = qn(Pn), Lt = ({
4534
4531
  f,
4535
4532
  {
4536
4533
  direction: "column",
4537
- customMaxWidth: d,
4534
+ customMaxWidth: s,
4538
4535
  fullWidth: o,
4539
4536
  children: [
4540
4537
  /* @__PURE__ */ e(Q, { children: i.title }),
@@ -4546,7 +4543,7 @@ const Co = qn(Pn), Lt = ({
4546
4543
  f,
4547
4544
  {
4548
4545
  direction: "column",
4549
- customMaxWidth: d,
4546
+ customMaxWidth: s,
4550
4547
  fullWidth: o,
4551
4548
  children: [
4552
4549
  /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
@@ -4556,7 +4553,7 @@ const Co = qn(Pn), Lt = ({
4556
4553
  me,
4557
4554
  {
4558
4555
  label: (h = i.tooltip) == null ? void 0 : h.label,
4559
- arrowPosition: (s = i.tooltip) == null ? void 0 : s.arrowPosition,
4556
+ arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
4560
4557
  ...i.tooltip,
4561
4558
  children: /* @__PURE__ */ e(
4562
4559
  F,
@@ -4602,8 +4599,8 @@ const Co = qn(Pn), Lt = ({
4602
4599
  fullWidth: o = !1,
4603
4600
  ...i
4604
4601
  }) => {
4605
- var c, h, s;
4606
- const l = i.hideMessageError || !1, d = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
4602
+ var c, h, d;
4603
+ const l = i.hideMessageError || !1, s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
4607
4604
  return /* @__PURE__ */ u(
4608
4605
  f,
4609
4606
  {
@@ -4619,7 +4616,7 @@ const Co = qn(Pn), Lt = ({
4619
4616
  f,
4620
4617
  {
4621
4618
  direction: "column",
4622
- customMaxWidth: d,
4619
+ customMaxWidth: s,
4623
4620
  fullWidth: o,
4624
4621
  children: [
4625
4622
  /* @__PURE__ */ e(Q, { children: i.title }),
@@ -4631,7 +4628,7 @@ const Co = qn(Pn), Lt = ({
4631
4628
  f,
4632
4629
  {
4633
4630
  direction: "column",
4634
- customMaxWidth: d,
4631
+ customMaxWidth: s,
4635
4632
  fullWidth: o,
4636
4633
  children: [
4637
4634
  /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
@@ -4641,7 +4638,7 @@ const Co = qn(Pn), Lt = ({
4641
4638
  me,
4642
4639
  {
4643
4640
  label: (h = i.tooltip) == null ? void 0 : h.label,
4644
- arrowPosition: (s = i.tooltip) == null ? void 0 : s.arrowPosition,
4641
+ arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
4645
4642
  ...i.tooltip,
4646
4643
  children: /* @__PURE__ */ e(
4647
4644
  F,
@@ -4695,7 +4692,7 @@ const Co = qn(Pn), Lt = ({
4695
4692
  h.preventDefault(), h.stopPropagation(), h.dataTransfer && t.handleOnFileChange(h.dataTransfer.files.item(0));
4696
4693
  }, l = (h) => {
4697
4694
  h.preventDefault(), n(!0);
4698
- }, d = (h) => {
4695
+ }, s = (h) => {
4699
4696
  h.preventDefault(), n(!1);
4700
4697
  };
4701
4698
  return /* @__PURE__ */ u(
@@ -4710,7 +4707,7 @@ const Co = qn(Pn), Lt = ({
4710
4707
  onDragOver: o,
4711
4708
  onDrop: i,
4712
4709
  onDragEnter: l,
4713
- onDragLeave: d,
4710
+ onDragLeave: s,
4714
4711
  paddingBlock: "md",
4715
4712
  borderRadius: "rounded-md",
4716
4713
  style: {
@@ -4858,7 +4855,7 @@ const Wo = (t) => {
4858
4855
  "Tab"
4859
4856
  ];
4860
4857
  (t.ctrlKey || t.metaKey) && (t.key === "a" || t.key === "c" || t.key === "v") || !r.test(t.key) && !n.includes(t.key) && t.preventDefault();
4861
- }, Ao = (t) => {
4858
+ }, zo = (t) => {
4862
4859
  const r = /^[0-9]$/, n = [
4863
4860
  "ArrowLeft",
4864
4861
  "ArrowRight",
@@ -4870,7 +4867,7 @@ const Wo = (t) => {
4870
4867
  "Tab"
4871
4868
  ];
4872
4869
  (t.ctrlKey || t.metaKey) && t.key === "v" || r.test(t.key) && !n.includes(t.key) && t.preventDefault();
4873
- }, zo = (t) => {
4870
+ }, Ao = (t) => {
4874
4871
  const r = /^[0-9.]$/, n = [
4875
4872
  "ArrowLeft",
4876
4873
  "ArrowRight",
@@ -5013,7 +5010,7 @@ const ii = (t) => {
5013
5010
  return;
5014
5011
  }
5015
5012
  o.current && o.current.click();
5016
- }, l = se("md"), d = t === "error" || typeof n.errorMessage == "string" && !!n.errorMessage, c = n.label ? /* @__PURE__ */ u(U, { direction: "row", align: "center", gap: "xs", children: [
5013
+ }, l = de("md"), s = t === "error" || typeof n.errorMessage == "string" && !!n.errorMessage, c = n.label ? /* @__PURE__ */ u(U, { direction: "row", align: "center", gap: "xs", children: [
5017
5014
  /* @__PURE__ */ e(v, { style: { fontSize: "14px", fontWeight: 500, color: "var(--sa-text-primary)" }, children: n.label }),
5018
5015
  n.optional && /* @__PURE__ */ e("span", { style: {
5019
5016
  background: "var(--sa-background-neutral)",
@@ -5028,7 +5025,7 @@ const ii = (t) => {
5028
5025
  alignItems: "center"
5029
5026
  }, children: "Optional" }),
5030
5027
  n.required && /* @__PURE__ */ e("span", { style: { fontSize: "14px", fontWeight: 500, color: "var(--sa-text-error)" }, children: "*" })
5031
- ] }) : null, h = n.description ? /* @__PURE__ */ e(v, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-subtlest, #6b6e76)", lineHeight: "18px" }, children: n.description }) : null, s = /* @__PURE__ */ u(ee, { children: [
5028
+ ] }) : null, h = n.description ? /* @__PURE__ */ e(v, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-subtlest, #6b6e76)", lineHeight: "18px" }, children: n.description }) : null, d = /* @__PURE__ */ u(ee, { children: [
5032
5029
  n.helperText && /* @__PURE__ */ e(v, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-subtlest, #6b6e76)", lineHeight: "18px" }, children: n.helperText }),
5033
5030
  n.errorText && t === "error" && /* @__PURE__ */ e(v, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-error, #a4133c)", lineHeight: "18px" }, children: n.errorText }),
5034
5031
  n.errorMessage && !n.errorText && /* @__PURE__ */ e(v, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-error, #a4133c)", lineHeight: "18px" }, children: n.errorMessage })
@@ -5073,8 +5070,8 @@ const ii = (t) => {
5073
5070
  {
5074
5071
  fileSupports: n.fileSupportOption,
5075
5072
  isDesktop: l,
5076
- errorMessage: d ? n.errorText || n.errorMessage || " " : void 0,
5077
- status: d ? "error" : "default",
5073
+ errorMessage: s ? n.errorText || n.errorMessage || " " : void 0,
5074
+ status: s ? "error" : "default",
5078
5075
  handleOnClick: i,
5079
5076
  handleOnFileChange: n.handleOnChangeFile
5080
5077
  }
@@ -5089,13 +5086,13 @@ const ii = (t) => {
5089
5086
  ] }),
5090
5087
  /* @__PURE__ */ u(U, { direction: "column", gap: "sm", style: { flex: 1, minWidth: 0 }, children: [
5091
5088
  g,
5092
- s
5089
+ d
5093
5090
  ] })
5094
5091
  ] }) : /* @__PURE__ */ u(U, { direction: "column", gap: "sm", style: { width: "100%" }, children: [
5095
5092
  c,
5096
5093
  h,
5097
5094
  g,
5098
- s
5095
+ d
5099
5096
  ] });
5100
5097
  }, li = ({
5101
5098
  size: t = "md",
@@ -5104,8 +5101,8 @@ const ii = (t) => {
5104
5101
  fullWidth: o = !1,
5105
5102
  ...i
5106
5103
  }) => {
5107
- var c, h, s;
5108
- const l = i.hideMessageError || !1, d = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
5104
+ var c, h, d;
5105
+ const l = i.hideMessageError || !1, s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
5109
5106
  return /* @__PURE__ */ u(
5110
5107
  f,
5111
5108
  {
@@ -5121,7 +5118,7 @@ const ii = (t) => {
5121
5118
  f,
5122
5119
  {
5123
5120
  direction: "column",
5124
- customMaxWidth: d,
5121
+ customMaxWidth: s,
5125
5122
  fullWidth: o,
5126
5123
  children: [
5127
5124
  /* @__PURE__ */ e(Q, { children: i.title }),
@@ -5133,7 +5130,7 @@ const ii = (t) => {
5133
5130
  f,
5134
5131
  {
5135
5132
  direction: "column",
5136
- customMaxWidth: d,
5133
+ customMaxWidth: s,
5137
5134
  fullWidth: o,
5138
5135
  children: [
5139
5136
  /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
@@ -5143,7 +5140,7 @@ const ii = (t) => {
5143
5140
  me,
5144
5141
  {
5145
5142
  label: (h = i.tooltip) == null ? void 0 : h.label,
5146
- arrowPosition: (s = i.tooltip) == null ? void 0 : s.arrowPosition,
5143
+ arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
5147
5144
  ...i.tooltip,
5148
5145
  children: /* @__PURE__ */ e(
5149
5146
  F,
@@ -5186,8 +5183,8 @@ const ii = (t) => {
5186
5183
  required: i = !1,
5187
5184
  ...l
5188
5185
  }) => {
5189
- var h, s, m, g;
5190
- const d = l.hideMessageError || !1, c = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
5186
+ var h, d, m, g;
5187
+ const s = l.hideMessageError || !1, c = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
5191
5188
  return /* @__PURE__ */ u(
5192
5189
  f,
5193
5190
  {
@@ -5224,7 +5221,7 @@ const ii = (t) => {
5224
5221
  /* @__PURE__ */ e(J, { condition: !!((h = l.tooltip) != null && h.label), children: /* @__PURE__ */ e(
5225
5222
  me,
5226
5223
  {
5227
- label: (s = l.tooltip) == null ? void 0 : s.label,
5224
+ label: (d = l.tooltip) == null ? void 0 : d.label,
5228
5225
  arrowPosition: (m = l.tooltip) == null ? void 0 : m.arrowPosition,
5229
5226
  ...l.tooltip,
5230
5227
  children: /* @__PURE__ */ e(
@@ -5297,7 +5294,7 @@ const ii = (t) => {
5297
5294
  )
5298
5295
  }
5299
5296
  ),
5300
- !d && l.errorMessage && /* @__PURE__ */ e(De, { message: l.errorMessage })
5297
+ !s && l.errorMessage && /* @__PURE__ */ e(De, { message: l.errorMessage })
5301
5298
  ]
5302
5299
  }
5303
5300
  );
@@ -5337,18 +5334,18 @@ const ii = (t) => {
5337
5334
  children: /* @__PURE__ */ e(
5338
5335
  Lt,
5339
5336
  {
5340
- of: (l = o.radioList) == null ? void 0 : l.map((d) => ({
5341
- ...d,
5342
- isChecked: o.radioIsChecked === d.id
5337
+ of: (l = o.radioList) == null ? void 0 : l.map((s) => ({
5338
+ ...s,
5339
+ isChecked: o.radioIsChecked === s.id
5343
5340
  })),
5344
- render: ({ value: d, id: c, isChecked: h, subInput: s, label: m, description: g }) => /* @__PURE__ */ u(f, { direction: "column", gap: "xs", customMaxWidth: i, children: [
5341
+ render: ({ value: s, id: c, isChecked: h, subInput: d, label: m, description: g }) => /* @__PURE__ */ u(f, { direction: "column", gap: "xs", customMaxWidth: i, children: [
5345
5342
  /* @__PURE__ */ e(
5346
5343
  Fr,
5347
5344
  {
5348
- id: `${c.toString()}-${d}`,
5345
+ id: `${c.toString()}-${s}`,
5349
5346
  name: o.groupName || m,
5350
5347
  label: m,
5351
- value: d,
5348
+ value: s,
5352
5349
  checked: h,
5353
5350
  onChange: (y) => o.onChecked({
5354
5351
  id: c,
@@ -5369,7 +5366,7 @@ const ii = (t) => {
5369
5366
  children: g
5370
5367
  }
5371
5368
  ),
5372
- s
5369
+ d
5373
5370
  ] })
5374
5371
  }
5375
5372
  )
@@ -5379,15 +5376,15 @@ const ii = (t) => {
5379
5376
  ]
5380
5377
  }
5381
5378
  );
5382
- }, di = ({
5379
+ }, si = ({
5383
5380
  size: t = "md",
5384
5381
  direction: r = "vertical",
5385
5382
  requiredTitle: n = "(Required)",
5386
5383
  fullWidth: o = !1,
5387
5384
  ...i
5388
5385
  }) => {
5389
- var c, h, s;
5390
- const l = i.hideMessageError || !1, d = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
5386
+ var c, h, d;
5387
+ const l = i.hideMessageError || !1, s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
5391
5388
  return /* @__PURE__ */ u(
5392
5389
  f,
5393
5390
  {
@@ -5403,7 +5400,7 @@ const ii = (t) => {
5403
5400
  f,
5404
5401
  {
5405
5402
  direction: "column",
5406
- customMaxWidth: d,
5403
+ customMaxWidth: s,
5407
5404
  fullWidth: o,
5408
5405
  children: [
5409
5406
  /* @__PURE__ */ e(Q, { children: i.title }),
@@ -5415,7 +5412,7 @@ const ii = (t) => {
5415
5412
  f,
5416
5413
  {
5417
5414
  direction: "column",
5418
- customMaxWidth: d,
5415
+ customMaxWidth: s,
5419
5416
  fullWidth: o,
5420
5417
  children: [
5421
5418
  /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
@@ -5425,7 +5422,7 @@ const ii = (t) => {
5425
5422
  me,
5426
5423
  {
5427
5424
  label: (h = i.tooltip) == null ? void 0 : h.label,
5428
- arrowPosition: (s = i.tooltip) == null ? void 0 : s.arrowPosition,
5425
+ arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
5429
5426
  ...i.tooltip,
5430
5427
  children: /* @__PURE__ */ e(
5431
5428
  F,
@@ -5462,7 +5459,7 @@ const ii = (t) => {
5462
5459
  ]
5463
5460
  }
5464
5461
  );
5465
- }, si = ({
5462
+ }, di = ({
5466
5463
  size: t = "md",
5467
5464
  direction: r = "vertical",
5468
5465
  requiredTitle: n = "(Required)",
@@ -5470,8 +5467,8 @@ const ii = (t) => {
5470
5467
  fullWidth: i = !1,
5471
5468
  ...l
5472
5469
  }) => {
5473
- var c, h, s;
5474
- const d = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
5470
+ var c, h, d;
5471
+ const s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
5475
5472
  return /* @__PURE__ */ u(
5476
5473
  f,
5477
5474
  {
@@ -5487,7 +5484,7 @@ const ii = (t) => {
5487
5484
  f,
5488
5485
  {
5489
5486
  direction: "column",
5490
- customMaxWidth: d,
5487
+ customMaxWidth: s,
5491
5488
  fullWidth: i,
5492
5489
  children: [
5493
5490
  /* @__PURE__ */ e(Q, { children: l.title }),
@@ -5499,7 +5496,7 @@ const ii = (t) => {
5499
5496
  f,
5500
5497
  {
5501
5498
  direction: "column",
5502
- customMaxWidth: d,
5499
+ customMaxWidth: s,
5503
5500
  fullWidth: i,
5504
5501
  children: [
5505
5502
  /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
@@ -5509,7 +5506,7 @@ const ii = (t) => {
5509
5506
  me,
5510
5507
  {
5511
5508
  label: (h = l.tooltip) == null ? void 0 : h.label,
5512
- arrowPosition: (s = l.tooltip) == null ? void 0 : s.arrowPosition,
5509
+ arrowPosition: (d = l.tooltip) == null ? void 0 : d.arrowPosition,
5513
5510
  ...l.tooltip,
5514
5511
  children: /* @__PURE__ */ e(
5515
5512
  F,
@@ -5549,26 +5546,26 @@ const ii = (t) => {
5549
5546
  size: r = "md",
5550
5547
  ...n
5551
5548
  }) => {
5552
- const o = Sr(), i = (d) => {
5553
- var h, s, m, g, y, x;
5554
- if (!d) return;
5555
- const c = n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : t === "secondary-danger" ? (s = (h = o == null ? void 0 : o.computed) == null ? void 0 : h.red) == null ? void 0 : s[600] : t === "secondary-primary" ? (g = (m = o == null ? void 0 : o.computed) == null ? void 0 : m.blue) == null ? void 0 : g[700] : (x = (y = o == null ? void 0 : o.computed) == null ? void 0 : y.gray) == null ? void 0 : x[50];
5556
- return /* @__PURE__ */ e(F, { name: d, size: r, style: { color: c } });
5549
+ const o = Sr(), i = (s) => {
5550
+ var h, d, m, g, y, x;
5551
+ if (!s) return;
5552
+ const c = n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : t === "secondary-danger" ? (d = (h = o == null ? void 0 : o.computed) == null ? void 0 : h.red) == null ? void 0 : d[600] : t === "secondary-primary" ? (g = (m = o == null ? void 0 : o.computed) == null ? void 0 : m.blue) == null ? void 0 : g[700] : (x = (y = o == null ? void 0 : o.computed) == null ? void 0 : y.gray) == null ? void 0 : x[50];
5553
+ return /* @__PURE__ */ e(F, { name: s, size: r, style: { color: c } });
5557
5554
  }, l = () => {
5558
- var c, h, s, m;
5555
+ var c, h, d, m;
5559
5556
  if (t !== "secondary-danger" && t !== "secondary-primary")
5560
5557
  return n.title;
5561
- const d = {
5562
- color: n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary-danger" ? (h = (c = o == null ? void 0 : o.computed) == null ? void 0 : c.red) == null ? void 0 : h[600] : (m = (s = o == null ? void 0 : o.computed) == null ? void 0 : s.blue) == null ? void 0 : m[700]
5558
+ const s = {
5559
+ color: n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary-danger" ? (h = (c = o == null ? void 0 : o.computed) == null ? void 0 : c.red) == null ? void 0 : h[600] : (m = (d = o == null ? void 0 : o.computed) == null ? void 0 : d.blue) == null ? void 0 : m[700]
5563
5560
  };
5564
5561
  switch (r) {
5565
5562
  case "xs":
5566
- return /* @__PURE__ */ e(xe.Body2, { props: { style: d }, children: n.title });
5563
+ return /* @__PURE__ */ e(xe.Body2, { props: { style: s }, children: n.title });
5567
5564
  case "sm":
5568
5565
  case "md":
5569
- return /* @__PURE__ */ e(xe.SubH3, { props: { style: d }, children: n.title });
5566
+ return /* @__PURE__ */ e(xe.SubH3, { props: { style: s }, children: n.title });
5570
5567
  case "lg":
5571
- return /* @__PURE__ */ e(xe.SubH2, { props: { style: d }, children: n.title });
5568
+ return /* @__PURE__ */ e(xe.SubH2, { props: { style: s }, children: n.title });
5572
5569
  default:
5573
5570
  return n.title;
5574
5571
  }
@@ -5604,8 +5601,8 @@ const ii = (t) => {
5604
5601
  fullWidth: o = !1,
5605
5602
  ...i
5606
5603
  }) => {
5607
- var c, h, s;
5608
- const l = i.hideMessageError || !1, d = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
5604
+ var c, h, d;
5605
+ const l = i.hideMessageError || !1, s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
5609
5606
  return /* @__PURE__ */ u(
5610
5607
  f,
5611
5608
  {
@@ -5621,7 +5618,7 @@ const ii = (t) => {
5621
5618
  f,
5622
5619
  {
5623
5620
  direction: "column",
5624
- customMaxWidth: d,
5621
+ customMaxWidth: s,
5625
5622
  fullWidth: o,
5626
5623
  children: [
5627
5624
  /* @__PURE__ */ e(Q, { children: i.title }),
@@ -5633,7 +5630,7 @@ const ii = (t) => {
5633
5630
  f,
5634
5631
  {
5635
5632
  direction: "column",
5636
- customMaxWidth: d,
5633
+ customMaxWidth: s,
5637
5634
  fullWidth: o,
5638
5635
  children: [
5639
5636
  /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
@@ -5643,7 +5640,7 @@ const ii = (t) => {
5643
5640
  me,
5644
5641
  {
5645
5642
  label: (h = i.tooltip) == null ? void 0 : h.label,
5646
- arrowPosition: (s = i.tooltip) == null ? void 0 : s.arrowPosition,
5643
+ arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
5647
5644
  ...i.tooltip,
5648
5645
  children: /* @__PURE__ */ e(
5649
5646
  F,
@@ -5691,8 +5688,8 @@ const ii = (t) => {
5691
5688
  };
5692
5689
  async function mi(t, r) {
5693
5690
  const n = new Image();
5694
- n.src = t, await new Promise((l, d) => {
5695
- n.onload = l, n.onerror = d;
5691
+ n.src = t, await new Promise((l, s) => {
5692
+ n.onload = l, n.onerror = s;
5696
5693
  });
5697
5694
  const o = document.createElement("canvas");
5698
5695
  o.width = r.width, o.height = r.height;
@@ -5708,9 +5705,9 @@ async function mi(t, r) {
5708
5705
  0,
5709
5706
  r.width,
5710
5707
  r.height
5711
- ), new Promise((l, d) => {
5708
+ ), new Promise((l, s) => {
5712
5709
  o.toBlob((c) => {
5713
- if (!c) return d("Canvas is empty");
5710
+ if (!c) return s("Canvas is empty");
5714
5711
  const h = new File([c], "cropped.png", { type: "image/png" });
5715
5712
  l(h);
5716
5713
  }, "image/png");
@@ -5733,12 +5730,12 @@ const Qt = {
5733
5730
  croppedImage: o,
5734
5731
  setCroppedImage: i,
5735
5732
  size: l = "96",
5736
- aspect: d = "1:1",
5733
+ aspect: s = "1:1",
5737
5734
  containerProps: c,
5738
5735
  maxFileSize: h = 2,
5739
- onError: s
5736
+ onError: d
5740
5737
  }, m) => {
5741
- const g = se("md"), [y, x] = B(!1), [k, p] = B(null), [E, M] = B(!1), [S, T] = B({ x: 0, y: 0 }), [C, L] = B(1), [A, w] = B(null);
5738
+ const g = de("md"), [y, x] = B(!1), [k, p] = B(null), [E, M] = B(!1), [S, T] = B({ x: 0, y: 0 }), [C, L] = B(1), [z, w] = B(null);
5742
5739
  Z(() => {
5743
5740
  r === null && i(null);
5744
5741
  }, [r]);
@@ -5756,18 +5753,18 @@ const Qt = {
5756
5753
  p(oe.result), M(!0);
5757
5754
  }, oe.readAsDataURL(q);
5758
5755
  }, X = async () => {
5759
- if (!(!k || !A))
5756
+ if (!(!k || !z))
5760
5757
  try {
5761
- const P = await mi(k, A);
5758
+ const P = await mi(k, z);
5762
5759
  if (h && P.size > h * 1024 * 1024) {
5763
- s == null || s(`Ukuran file maksimal ${h}MB`);
5760
+ d == null || d(`Ukuran file maksimal ${h}MB`);
5764
5761
  return;
5765
5762
  }
5766
5763
  t == null || t(P);
5767
5764
  const q = URL.createObjectURL(P);
5768
5765
  i(q, P), M(!1);
5769
5766
  } catch {
5770
- s == null || s("Gagal memproses gambar");
5767
+ d == null || d("Gagal memproses gambar");
5771
5768
  }
5772
5769
  }, N = ne(null), Y = () => {
5773
5770
  N.current && N.current.click();
@@ -5778,7 +5775,7 @@ const Qt = {
5778
5775
  (P = N.current) == null || P.click();
5779
5776
  }
5780
5777
  }));
5781
- const te = parseInt(l, 10), ue = Qt[d];
5778
+ const te = parseInt(l, 10), ue = Qt[s];
5782
5779
  let le, ie;
5783
5780
  return ue >= 1 ? (ie = te, le = te * ue) : (le = te, ie = te / ue), /* @__PURE__ */ u(
5784
5781
  f,
@@ -5935,7 +5932,7 @@ const Qt = {
5935
5932
  borderRadius: "var(--sa-radii-md)",
5936
5933
  boxShadow: "0 20px 60px rgba(0,0,0,0.3)",
5937
5934
  overflow: "hidden",
5938
- width: g ? d === "1:1" ? "min(90vw, 480px)" : `min(90vw, ${le * 2}px)` : "calc(100vw - 2rem)",
5935
+ width: g ? s === "1:1" ? "min(90vw, 480px)" : `min(90vw, ${le * 2}px)` : "calc(100vw - 2rem)",
5939
5936
  display: "flex",
5940
5937
  flexDirection: "column"
5941
5938
  },
@@ -5956,7 +5953,7 @@ const Qt = {
5956
5953
  image: k,
5957
5954
  crop: S,
5958
5955
  zoom: C,
5959
- aspect: d ? Qt[d] : void 0,
5956
+ aspect: s ? Qt[s] : void 0,
5960
5957
  onCropChange: T,
5961
5958
  onZoomChange: L,
5962
5959
  onCropComplete: $,
@@ -6002,8 +5999,8 @@ const Qt = {
6002
5999
  required: i = !1,
6003
6000
  ...l
6004
6001
  }) => {
6005
- var h, s, m;
6006
- const d = l.hideMessageError || !1, c = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
6002
+ var h, d, m;
6003
+ const s = l.hideMessageError || !1, c = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
6007
6004
  return /* @__PURE__ */ u(
6008
6005
  f,
6009
6006
  {
@@ -6040,7 +6037,7 @@ const Qt = {
6040
6037
  /* @__PURE__ */ e(J, { condition: !!((h = l.tooltip) != null && h.label), children: /* @__PURE__ */ e(
6041
6038
  me,
6042
6039
  {
6043
- label: (s = l.tooltip) == null ? void 0 : s.label,
6040
+ label: (d = l.tooltip) == null ? void 0 : d.label,
6044
6041
  arrowPosition: (m = l.tooltip) == null ? void 0 : m.arrowPosition,
6045
6042
  ...l.tooltip,
6046
6043
  children: /* @__PURE__ */ e(
@@ -6065,7 +6062,7 @@ const Qt = {
6065
6062
  ),
6066
6063
  /* @__PURE__ */ u(U, { direction: "column", gap: "xs", children: [
6067
6064
  /* @__PURE__ */ e(gi, { ...l.inputProps }),
6068
- !d && l.errorMessage && /* @__PURE__ */ e(De, { message: l.errorMessage })
6065
+ !s && l.errorMessage && /* @__PURE__ */ e(De, { message: l.errorMessage })
6069
6066
  ] })
6070
6067
  ]
6071
6068
  }
@@ -6077,7 +6074,7 @@ const Qt = {
6077
6074
  fullWidth: o = !1,
6078
6075
  ...i
6079
6076
  }) => {
6080
- var d, c, h;
6077
+ var s, c, h;
6081
6078
  const l = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
6082
6079
  return /* @__PURE__ */ u(
6083
6080
  f,
@@ -6112,7 +6109,7 @@ const Qt = {
6112
6109
  /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
6113
6110
  /* @__PURE__ */ e(Q, { fontSize: t, children: i.title }),
6114
6111
  /* @__PURE__ */ e(Q, { color: "error", fontSize: t, children: n }),
6115
- /* @__PURE__ */ e(J, { condition: !!((d = i.tooltip) != null && d.label), children: /* @__PURE__ */ e(
6112
+ /* @__PURE__ */ e(J, { condition: !!((s = i.tooltip) != null && s.label), children: /* @__PURE__ */ e(
6116
6113
  me,
6117
6114
  {
6118
6115
  label: (c = i.tooltip) == null ? void 0 : c.label,
@@ -6151,11 +6148,11 @@ const Qt = {
6151
6148
  disabled: l = !1
6152
6149
  }) => {
6153
6150
  var m;
6154
- const [d, c] = B([]);
6151
+ const [s, c] = B([]);
6155
6152
  Z(() => {
6156
6153
  t && c([...t.map((g) => ({ id: g.id, isActive: g.isActive }))]);
6157
6154
  }, [t]);
6158
- const h = (m = d.find((g) => g.id === r)) == null ? void 0 : m.isActive, s = G(() => {
6155
+ const h = (m = s.find((g) => g.id === r)) == null ? void 0 : m.isActive, d = G(() => {
6159
6156
  c(
6160
6157
  (g) => g.map((y) => y.id === r ? { ...y, isActive: !y.isActive } : y)
6161
6158
  ), n && n(!h);
@@ -6173,7 +6170,7 @@ const Qt = {
6173
6170
  {
6174
6171
  disabled: l,
6175
6172
  checked: h,
6176
- onChange: s,
6173
+ onChange: d,
6177
6174
  label: h ? "Active" : "Inactive"
6178
6175
  }
6179
6176
  )
@@ -6185,8 +6182,8 @@ const Qt = {
6185
6182
  InputSingleFile: li,
6186
6183
  CheckBoxOptions: ci,
6187
6184
  RadioOptions: ai,
6188
- InputTextArea: di,
6189
- ToggleForm: si,
6185
+ InputTextArea: si,
6186
+ ToggleForm: di,
6190
6187
  ActionButton: ui,
6191
6188
  FormTitle: hi,
6192
6189
  InputDate: fi,
@@ -6245,7 +6242,7 @@ const Qt = {
6245
6242
  }
6246
6243
  );
6247
6244
  }, Oo = ({ pageLayout: t, children: r, wrapperProps: n, containerProps: o }) => {
6248
- const i = se("md"), l = (o == null ? void 0 : o.customWidth) ?? 264;
6245
+ const i = de("md"), l = (o == null ? void 0 : o.customWidth) ?? 264;
6249
6246
  return /* @__PURE__ */ u(
6250
6247
  f,
6251
6248
  {
@@ -6486,10 +6483,10 @@ const $o = ({
6486
6483
  variant: o = "primary",
6487
6484
  variantTitle: i,
6488
6485
  leftIcon: l,
6489
- showButton: d = !0,
6486
+ showButton: s = !0,
6490
6487
  customHeight: c,
6491
6488
  childrenButton: h,
6492
- customIcon: s
6489
+ customIcon: d
6493
6490
  }) => {
6494
6491
  const m = () => {
6495
6492
  switch (o) {
@@ -6524,7 +6521,7 @@ const $o = ({
6524
6521
  marginBlock: "auto",
6525
6522
  customHeight: c,
6526
6523
  children: [
6527
- s || /* @__PURE__ */ e(bi, {}),
6524
+ d || /* @__PURE__ */ e(bi, {}),
6528
6525
  /* @__PURE__ */ e(f, { direction: "column", children: r.map((g, y) => /* @__PURE__ */ e(
6529
6526
  xe.Body1,
6530
6527
  {
@@ -6536,7 +6533,7 @@ const $o = ({
6536
6533
  },
6537
6534
  y
6538
6535
  )) }),
6539
- d ? m() : null
6536
+ s ? m() : null
6540
6537
  ]
6541
6538
  }
6542
6539
  );
@@ -6754,7 +6751,7 @@ function vi({ width: t, height: r }) {
6754
6751
  ) });
6755
6752
  }
6756
6753
  function Zo({ onClick: t }) {
6757
- const r = se("md");
6754
+ const r = de("md");
6758
6755
  return /* @__PURE__ */ u(
6759
6756
  f,
6760
6757
  {
@@ -7027,7 +7024,7 @@ function Di({ width: t, height: r }) {
7027
7024
  ) });
7028
7025
  }
7029
7026
  function Po({ onClick: t }) {
7030
- const r = se("md");
7027
+ const r = de("md");
7031
7028
  return /* @__PURE__ */ u(
7032
7029
  f,
7033
7030
  {
@@ -7736,7 +7733,7 @@ function wi({ width: t, height: r }) {
7736
7733
  ) });
7737
7734
  }
7738
7735
  function qo({ onClick: t }) {
7739
- const r = se("md");
7736
+ const r = de("md");
7740
7737
  return /* @__PURE__ */ u(
7741
7738
  f,
7742
7739
  {
@@ -7774,8 +7771,8 @@ function qo({ onClick: t }) {
7774
7771
  );
7775
7772
  }
7776
7773
  const Go = (t) => {
7777
- var n, o, i, l, d;
7778
- const r = se("md");
7774
+ var n, o, i, l, s;
7775
+ const r = de("md");
7779
7776
  return /* @__PURE__ */ u(
7780
7777
  vt,
7781
7778
  {
@@ -7804,7 +7801,7 @@ const Go = (t) => {
7804
7801
  display: "flex",
7805
7802
  direction: ((i = t.wrapperConfirmBtnProps) == null ? void 0 : i.direction) || "row",
7806
7803
  justify: ((l = t.wrapperConfirmBtnProps) == null ? void 0 : l.justify) || "flex-end",
7807
- gap: ((d = t.wrapperConfirmBtnProps) == null ? void 0 : d.gap) || "sm",
7804
+ gap: ((s = t.wrapperConfirmBtnProps) == null ? void 0 : s.gap) || "sm",
7808
7805
  ...t.wrapperConfirmBtnProps,
7809
7806
  children: [
7810
7807
  t.onCancel && /* @__PURE__ */ e(_, { secondary: !0, onClick: t.onCancel, size: "md", fullWidth: !0, children: t.titleCancelBtn || "Cancel" }),
@@ -7845,10 +7842,10 @@ const Go = (t) => {
7845
7842
  customHeight: o,
7846
7843
  paddingInline: i = "spacing-0",
7847
7844
  paddingBlock: l = "spacing-0",
7848
- header: d,
7845
+ header: s,
7849
7846
  footer: c,
7850
7847
  title: h,
7851
- titleTag: s,
7848
+ titleTag: d,
7852
7849
  action: m,
7853
7850
  actionContainer: g,
7854
7851
  containerProps: y,
@@ -7867,10 +7864,10 @@ const Go = (t) => {
7867
7864
  };
7868
7865
  return w(), window.addEventListener("resize", w), () => window.removeEventListener("resize", w);
7869
7866
  }, []);
7870
- const C = () => s ? /* @__PURE__ */ u(f, { direction: "row", gap: "sm", align: "center", children: [
7867
+ const C = () => d ? /* @__PURE__ */ u(f, { direction: "row", gap: "sm", align: "center", children: [
7871
7868
  /* @__PURE__ */ e(v, { fontWeight: "medium", children: h }),
7872
- /* @__PURE__ */ e(Ne, { border: !0, text: s, variant: E })
7873
- ] }) : /* @__PURE__ */ e(v, { fontWeight: "medium", children: h }), L = () => d || /* @__PURE__ */ u(
7869
+ /* @__PURE__ */ e(Ne, { border: !0, text: d, variant: E })
7870
+ ] }) : /* @__PURE__ */ e(v, { fontWeight: "medium", children: h }), L = () => s || /* @__PURE__ */ u(
7874
7871
  f,
7875
7872
  {
7876
7873
  direction: "row",
@@ -7882,7 +7879,7 @@ const Go = (t) => {
7882
7879
  /* @__PURE__ */ e(f, { direction: "column", ...g, children: m ?? null })
7883
7880
  ]
7884
7881
  }
7885
- ), A = !!(d || h || m);
7882
+ ), z = !!(s || h || m);
7886
7883
  return /* @__PURE__ */ u(
7887
7884
  f,
7888
7885
  {
@@ -7902,7 +7899,7 @@ const Go = (t) => {
7902
7899
  ...(y == null ? void 0 : y.style) ?? {}
7903
7900
  },
7904
7901
  children: [
7905
- d !== null && A ? /* @__PURE__ */ e(ur, { ...k, children: L() }) : null,
7902
+ s !== null && z ? /* @__PURE__ */ e(ur, { ...k, children: L() }) : null,
7906
7903
  /* @__PURE__ */ e(
7907
7904
  f,
7908
7905
  {
@@ -7924,16 +7921,16 @@ const Go = (t) => {
7924
7921
  }
7925
7922
  ), Uo = Ye.memo(
7926
7923
  ({ value: t, options: r = [], onChange: n, multiple: o }) => {
7927
- const i = (t == null ? void 0 : t.map((c) => c.value)) || [], l = (r == null ? void 0 : r.filter((c) => i.includes(c.value))) || [], d = (c) => {
7924
+ const i = (t == null ? void 0 : t.map((c) => c.value)) || [], l = (r == null ? void 0 : r.filter((c) => i.includes(c.value))) || [], s = (c) => {
7928
7925
  const h = [...l];
7929
- let s = [];
7930
- o ? s = i.includes(c.value) ? h.filter((m) => m.value !== c.value) : [...h, c] : s = [c], n == null || n(s);
7926
+ let d = [];
7927
+ o ? d = i.includes(c.value) ? h.filter((m) => m.value !== c.value) : [...h, c] : d = [c], n == null || n(d);
7931
7928
  };
7932
7929
  return /* @__PURE__ */ e(f, { direction: "row", gap: "sm", flexWrap: "wrap", children: r == null ? void 0 : r.map((c, h) => /* @__PURE__ */ e(
7933
7930
  _,
7934
7931
  {
7935
7932
  ...i.includes(c.value) ? { primary: !0 } : { secondary: !0 },
7936
- onClick: () => d(c),
7933
+ onClick: () => s(c),
7937
7934
  children: c.label
7938
7935
  },
7939
7936
  h
@@ -7952,10 +7949,10 @@ function Wt(t) {
7952
7949
  return null;
7953
7950
  }
7954
7951
  Wt.displayName = "LayoutDialog.Aside";
7955
- function At(t) {
7952
+ function zt(t) {
7956
7953
  return null;
7957
7954
  }
7958
- At.displayName = "LayoutDialog.Footer";
7955
+ zt.displayName = "LayoutDialog.Footer";
7959
7956
  const ae = {
7960
7957
  "lyd-root": "_lyd-root_1e92c_1",
7961
7958
  "lyd-backdrop": "_lyd-backdrop_1e92c_28",
@@ -8048,15 +8045,15 @@ function Li(t) {
8048
8045
  viewMode: o,
8049
8046
  defaultViewMode: i = "modal",
8050
8047
  onViewModeChange: l,
8051
- showViewModeToggle: d = !0,
8048
+ showViewModeToggle: s = !0,
8052
8049
  showCloseButton: c = !0,
8053
8050
  size: h,
8054
- asideWidth: s,
8051
+ asideWidth: d,
8055
8052
  disableEscapeClose: m = !1,
8056
8053
  disableBackdropClose: g = !1,
8057
8054
  lockBodyScroll: y = !0,
8058
8055
  children: x
8059
- } = t, [k, p] = B(i), E = o ?? k, S = se("md") ? E : "fullscreen", T = G(
8056
+ } = t, [k, p] = B(i), E = o ?? k, S = de("md") ? E : "fullscreen", T = G(
8060
8057
  (Y) => {
8061
8058
  o === void 0 && p(Y), l == null || l(Y);
8062
8059
  },
@@ -8074,17 +8071,17 @@ function Li(t) {
8074
8071
  };
8075
8072
  return window.addEventListener("keydown", Y), () => window.removeEventListener("keydown", Y);
8076
8073
  }, [r, m, n]);
8077
- const L = de(
8074
+ const L = se(
8078
8075
  () => Qe(x, Mt),
8079
8076
  [x]
8080
- ), A = de(
8077
+ ), z = se(
8081
8078
  () => Qe(x, Bt),
8082
8079
  [x]
8083
- ), w = de(
8080
+ ), w = se(
8084
8081
  () => Qe(x, Wt),
8085
8082
  [x]
8086
- ), $ = de(
8087
- () => Qe(x, At),
8083
+ ), $ = se(
8084
+ () => Qe(x, zt),
8088
8085
  [x]
8089
8086
  );
8090
8087
  if (!r) return null;
@@ -8095,7 +8092,7 @@ function Li(t) {
8095
8092
  S === "sidebar" && ae["lyd-sidebar"]
8096
8093
  ].filter(Boolean).join(" "), X = {
8097
8094
  "--lyd-max-w": Ei(h),
8098
- ...s !== void 0 && { "--lyd-aside-w": s }
8095
+ ...d !== void 0 && { "--lyd-aside-w": d }
8099
8096
  }, N = () => {
8100
8097
  g || n();
8101
8098
  };
@@ -8119,7 +8116,7 @@ function Li(t) {
8119
8116
  /* @__PURE__ */ u("div", { className: ae["lyd-header"], children: [
8120
8117
  /* @__PURE__ */ e("div", { className: ae["lyd-header-content"], children: L }),
8121
8118
  /* @__PURE__ */ u("div", { className: ae["lyd-header-actions"], children: [
8122
- d && /* @__PURE__ */ e(Si, { value: E, onChange: T }),
8119
+ s && /* @__PURE__ */ e(Si, { value: E, onChange: T }),
8123
8120
  c && /* @__PURE__ */ e(
8124
8121
  "button",
8125
8122
  {
@@ -8133,7 +8130,7 @@ function Li(t) {
8133
8130
  ] })
8134
8131
  ] }),
8135
8132
  /* @__PURE__ */ u("div", { className: ae["lyd-main"], children: [
8136
- /* @__PURE__ */ e("div", { className: ae["lyd-body"], children: A }),
8133
+ /* @__PURE__ */ e("div", { className: ae["lyd-body"], children: z }),
8137
8134
  w && /* @__PURE__ */ e("aside", { className: ae["lyd-aside"], children: w })
8138
8135
  ] }),
8139
8136
  $ && /* @__PURE__ */ e("div", { className: ae["lyd-footer"], children: $ })
@@ -8146,7 +8143,7 @@ const lt = Li;
8146
8143
  lt.Header = Mt;
8147
8144
  lt.Body = Bt;
8148
8145
  lt.Aside = Wt;
8149
- lt.Footer = At;
8146
+ lt.Footer = zt;
8150
8147
  function Qo({ url: t, filename: r, onClose: n }) {
8151
8148
  return Z(() => {
8152
8149
  const o = (i) => {
@@ -8267,16 +8264,16 @@ function Xo({
8267
8264
  Z(() => {
8268
8265
  let i = null, l = null;
8269
8266
  for (const h of r) {
8270
- const s = h.items.find((m) => m.to ? m.to === "/" ? o.pathname === "/" : !!(m.to === o.pathname || o.pathname.startsWith(m.to + "/")) : !1);
8271
- if (s) {
8272
- i = s, l = h;
8267
+ const d = h.items.find((m) => m.to ? m.to === "/" ? o.pathname === "/" : !!(m.to === o.pathname || o.pathname.startsWith(m.to + "/")) : !1);
8268
+ if (d) {
8269
+ i = d, l = h;
8273
8270
  break;
8274
8271
  }
8275
8272
  }
8276
- const d = [];
8277
- i != null && i.title && d.push(i.title), l != null && l.name && d.push(l.name.toTitleCase());
8278
- const c = (h, s) => h.length > 0 ? `${h.join(" - ")} | ${s}` : s;
8279
- document.title = (n || c)(d, t);
8273
+ const s = [];
8274
+ i != null && i.title && s.push(i.title), l != null && l.name && s.push(l.name.toTitleCase());
8275
+ const c = (h, d) => h.length > 0 ? `${h.join(" - ")} | ${d}` : d;
8276
+ document.title = (n || c)(s, t);
8280
8277
  }, [o.pathname]);
8281
8278
  }
8282
8279
  const Ko = () => {
@@ -8301,9 +8298,9 @@ const Ko = () => {
8301
8298
  function el(t) {
8302
8299
  var o, i;
8303
8300
  const r = t.decodedAccessToken;
8304
- return de(() => {
8305
- var h, s;
8306
- const l = ((s = (h = r == null ? void 0 : r.access) == null ? void 0 : h.role) == null ? void 0 : s.code) ?? "", d = Object.keys(t.role).reduce(
8301
+ return se(() => {
8302
+ var h, d;
8303
+ const l = ((d = (h = r == null ? void 0 : r.access) == null ? void 0 : h.role) == null ? void 0 : d.code) ?? "", s = Object.keys(t.role).reduce(
8307
8304
  (m, g) => {
8308
8305
  const y = `is${g.toLowerCase().replace(/(^\w|_\w)/g, (x) => x.replace("_", "").toUpperCase())}`;
8309
8306
  return { ...m, [y]: !1 };
@@ -8317,7 +8314,7 @@ function el(t) {
8317
8314
  ...m,
8318
8315
  [y]: l === t.role[g]
8319
8316
  };
8320
- }, d),
8317
+ }, s),
8321
8318
  hasRole: (m) => l === t.role[m],
8322
8319
  getRoleKey: () => l
8323
8320
  };
@@ -8353,7 +8350,7 @@ export {
8353
8350
  lt as LayoutDialog,
8354
8351
  Wt as LayoutDialogAside,
8355
8352
  Bt as LayoutDialogBody,
8356
- At as LayoutDialogFooter,
8353
+ zt as LayoutDialogFooter,
8357
8354
  Mt as LayoutDialogHeader,
8358
8355
  ho as ModuleSwitcher,
8359
8356
  jr as ModuleSwitcherModal,
@@ -8367,7 +8364,7 @@ export {
8367
8364
  ur as SectionHeader,
8368
8365
  Uo as SelectButton,
8369
8366
  qo as ServerErrorPage,
8370
- zr as SidebarBadgesProvider,
8367
+ Ar as SidebarBadgesProvider,
8371
8368
  co as SidebarGroupSlot,
8372
8369
  Or as SidebarGroupSlotOutlet,
8373
8370
  Nr as SidebarGroupSlotProvider,
@@ -8404,9 +8401,9 @@ export {
8404
8401
  Fo as oneDayInMs,
8405
8402
  vo as parseIndonesianDateToDate,
8406
8403
  Ro as preventNonCoordinateInput,
8407
- zo as preventNonNumberAndDecimalInput,
8404
+ Ao as preventNonNumberAndDecimalInput,
8408
8405
  Wo as preventNonNumberInput,
8409
- Ao as preventNumberInput,
8406
+ zo as preventNumberInput,
8410
8407
  fn as resolveDateRangeValueToString,
8411
8408
  mn as resolveDateValueToString,
8412
8409
  un as resolveDropdownValueToString,
@@ -8415,10 +8412,10 @@ export {
8415
8412
  mr as storageKeys,
8416
8413
  Eo as textWidth,
8417
8414
  cr as useApp,
8418
- Ar as useAppState,
8415
+ zr as useAppState,
8419
8416
  el as useAuthRole,
8420
8417
  Xo as useDynamicTitle,
8421
- sr as useModuleSelection,
8418
+ dr as useModuleSelection,
8422
8419
  Ee as useRouteInfo,
8423
8420
  Ko as useRouteParams,
8424
8421
  Ir as useSidebarBadges,