@starasia/admin 8.0.7 → 8.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from "@starasia/alert";
2
- import { Badges as je, Badge as xr } from "@starasia/badges";
2
+ import { Badges as $e, Badge as xr } from "@starasia/badges";
3
3
  export * from "@starasia/badges";
4
4
  import { Box as f } from "@starasia/box";
5
5
  export * from "@starasia/box";
@@ -22,13 +22,13 @@ import { searchParamsToObject as it } from "@starasia/http";
22
22
  export * from "@starasia/http";
23
23
  import { Input as Ze } from "@starasia/input";
24
24
  export * from "@starasia/input";
25
- import { Menu as Ee, MenuButton as De, MenuLists as Le, MenuHeading as wr, MenuBody as Me, MenuFooter as ir, MenuItem as $e } from "@starasia/menu";
25
+ import { Menu as Ee, MenuButton as De, MenuLists as Le, MenuHeading as wr, MenuBody as Me, MenuFooter as ir, MenuItem as Ie } from "@starasia/menu";
26
26
  export * from "@starasia/menu";
27
27
  import { Pagination as lr } from "@starasia/pagination";
28
28
  export * from "@starasia/pagination";
29
29
  import { storage as ut } from "@starasia/storage";
30
30
  export * from "@starasia/storage";
31
- import { Tr as _e, Td as Fe, Table as or, Thead as kr, Th as Vt, Tbody as Sr } from "@starasia/table";
31
+ import { Tr as je, Td as Fe, Table as or, Thead as kr, Th as Vt, Tbody as Sr } from "@starasia/table";
32
32
  export * from "@starasia/table";
33
33
  export * from "@starasia/tabs";
34
34
  import { Textarea as Fr } from "@starasia/textarea";
@@ -46,7 +46,7 @@ import { Radio as Mr } from "@starasia/radio";
46
46
  export * from "@starasia/radio";
47
47
  import { Text as v } from "@starasia/text";
48
48
  export * from "@starasia/text";
49
- import { Icon as k } from "@starasia/icon";
49
+ import { Icon as S } from "@starasia/icon";
50
50
  export * from "@starasia/icon";
51
51
  import { Flex as U } from "@starasia/flex";
52
52
  export * from "@starasia/flex";
@@ -55,11 +55,11 @@ export * from "@starasia/progress";
55
55
  export * from "@starasia/stepper";
56
56
  export * from "@starasia/accordion";
57
57
  export * from "@starasia/story-record";
58
- import { Skeleton as Ne } from "@starasia/skeleton";
58
+ import { Skeleton as _e } from "@starasia/skeleton";
59
59
  export * from "@starasia/skeleton";
60
60
  export * from "@starasia/progress-stepper";
61
- import { jsx as e, Fragment as ee, jsxs as h } from "react/jsx-runtime";
62
- import Ke, { createContext as lt, useState as W, useContext as Ie, useCallback as G, useMemo as de, memo as Ce, useEffect as Z, useRef as oe, useLayoutEffect as xt, forwardRef as kt, isValidElement as Ct, Children as Wr, useImperativeHandle as Br } from "react";
61
+ import { jsx as e, Fragment as ee, jsxs as u } from "react/jsx-runtime";
62
+ import Ke, { createContext as lt, useState as M, useContext as Re, useCallback as G, useMemo as de, memo as Ce, useEffect as Z, useRef as oe, useLayoutEffect as xt, forwardRef as kt, isValidElement as Ct, Children as Wr, useImperativeHandle as Br } from "react";
63
63
  import { useSearchParams as ot, useNavigate as St, useLocation as Pe, Outlet as Ot, Link as et, useParams as cr } from "react-router";
64
64
  import zr, { createPortal as ar } from "react-dom";
65
65
  import Ar from "react-easy-crop";
@@ -71,8 +71,8 @@ const Ir = {
71
71
  userData: null,
72
72
  setUserData: () => {
73
73
  }
74
- }, sr = lt(Ir), dr = () => Ie(sr), Rr = (t) => {
75
- const [r, n] = W(
74
+ }, sr = lt(Ir), dr = () => Re(sr), Rr = (t) => {
75
+ const [r, n] = M(
76
76
  (t == null ? void 0 : t.initialUserData) || null
77
77
  );
78
78
  return {
@@ -88,25 +88,25 @@ const Ir = {
88
88
  clearBadge: () => {
89
89
  }
90
90
  }), Hr = ({ children: t }) => {
91
- const [r, n] = W({}), l = G(
91
+ const [r, n] = M({}), l = G(
92
92
  (c) => {
93
93
  n(
94
- (u) => typeof c == "function" ? c(u) : c
94
+ (h) => typeof c == "function" ? c(h) : c
95
95
  );
96
96
  },
97
97
  []
98
98
  ), i = G(
99
- (c, u) => {
99
+ (c, h) => {
100
100
  n((d) => {
101
- const m = typeof u == "function" ? u(d[c]) : u;
101
+ const m = typeof h == "function" ? h(d[c]) : h;
102
102
  return { ...d, [c]: m };
103
103
  });
104
104
  },
105
105
  []
106
106
  ), o = G((c) => {
107
- n((u) => {
108
- if (!(c in u)) return u;
109
- const d = { ...u };
107
+ n((h) => {
108
+ if (!(c in h)) return h;
109
+ const d = { ...h };
110
110
  return delete d[c], d;
111
111
  });
112
112
  }, []), a = de(
@@ -114,7 +114,7 @@ const Ir = {
114
114
  [r, i, l, o]
115
115
  );
116
116
  return /* @__PURE__ */ e(ur.Provider, { value: a, children: t });
117
- }, Vr = () => Ie(ur), ht = (t, r) => {
117
+ }, Vr = () => Re(ur), ht = (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;
120
120
  }, Tr = ({
@@ -126,7 +126,7 @@ const Ir = {
126
126
  initialUserData: o,
127
127
  theme: a
128
128
  }) => {
129
- const c = Rr({ initialUserData: o }), { theme: u } = Er();
129
+ const c = Rr({ initialUserData: o }), { theme: h } = Er();
130
130
  return /* @__PURE__ */ e(
131
131
  sr.Provider,
132
132
  {
@@ -138,7 +138,7 @@ const Ir = {
138
138
  setUserData: c.setUserData,
139
139
  menuBottom: n
140
140
  },
141
- children: /* @__PURE__ */ e(Hr, { children: a ? /* @__PURE__ */ e(Tt, { value: a, children: t }) : u ? /* @__PURE__ */ e(Tt, { value: u, children: t }) : t })
141
+ children: /* @__PURE__ */ e(Hr, { children: a ? /* @__PURE__ */ e(Tt, { value: a, children: t }) : h ? /* @__PURE__ */ e(Tt, { value: h, children: t }) : t })
142
142
  }
143
143
  );
144
144
  }, ul = Ce(Tr);
@@ -181,7 +181,7 @@ function Or({
181
181
  }
182
182
  const Ft = lt(null);
183
183
  function Nr({ children: t }) {
184
- const [r, n] = W(null), [l, i] = W(null), [o, a] = W(null), [c, u] = W(0), d = G(() => (u((m) => m + 1), () => u((m) => m - 1)), []);
184
+ const [r, n] = M(null), [l, i] = M(null), [o, a] = M(null), [c, h] = M(0), d = G(() => (h((m) => m + 1), () => h((m) => m - 1)), []);
185
185
  return /* @__PURE__ */ e(
186
186
  Ft.Provider,
187
187
  {
@@ -200,8 +200,8 @@ function Nr({ children: t }) {
200
200
  );
201
201
  }
202
202
  function _r({ children: t }) {
203
- const r = Ie(Ft);
204
- return r ? /* @__PURE__ */ h(ee, { children: [
203
+ const r = Re(Ft);
204
+ return r ? /* @__PURE__ */ u(ee, { children: [
205
205
  /* @__PURE__ */ e("div", { ref: r.setPrependNode, style: { display: "contents" } }),
206
206
  r.replaceCount > 0 ? /* @__PURE__ */ e("div", { ref: r.setReplaceNode, style: { display: "contents" } }) : t,
207
207
  /* @__PURE__ */ e("div", { ref: r.setAppendNode, style: { display: "contents" } })
@@ -211,7 +211,7 @@ function hl({
211
211
  children: t,
212
212
  mode: r = "append"
213
213
  }) {
214
- const n = Ie(Ft);
214
+ const n = Re(Ft);
215
215
  if (Z(() => {
216
216
  if (!(r !== "replace" || !n))
217
217
  return n.registerReplace();
@@ -224,11 +224,11 @@ function hl({
224
224
  }
225
225
  const Et = lt(null);
226
226
  function jr({ children: t }) {
227
- const [r, n] = W({}), [l, i] = W({}), o = G((u, d) => {
228
- n((m) => m[u] === d ? m : { ...m, [u]: d });
229
- }, []), a = G((u) => (i((d) => ({ ...d, [u]: (d[u] ?? 0) + 1 })), () => i((d) => ({
227
+ const [r, n] = M({}), [l, i] = M({}), o = G((h, d) => {
228
+ n((m) => m[h] === d ? m : { ...m, [h]: d });
229
+ }, []), a = G((h) => (i((d) => ({ ...d, [h]: (d[h] ?? 0) + 1 })), () => i((d) => ({
230
230
  ...d,
231
- [u]: Math.max(0, (d[u] ?? 0) - 1)
231
+ [h]: Math.max(0, (d[h] ?? 0) - 1)
232
232
  }))), []), c = de(
233
233
  () => ({ outletNodes: r, setOutletNode: o, slotCounts: l, registerSlot: a }),
234
234
  [r, o, l, a]
@@ -236,7 +236,7 @@ function jr({ children: t }) {
236
236
  return /* @__PURE__ */ e(Et.Provider, { value: c, children: t });
237
237
  }
238
238
  function $r({ slotKey: t, fallback: r }) {
239
- const n = Ie(Et), l = n ? (n.slotCounts[t] ?? 0) > 0 : !1, i = oe(n == null ? void 0 : n.setOutletNode);
239
+ const n = Re(Et), l = n ? (n.slotCounts[t] ?? 0) > 0 : !1, i = oe(n == null ? void 0 : n.setOutletNode);
240
240
  i.current = n == null ? void 0 : n.setOutletNode;
241
241
  const o = G(
242
242
  (a) => {
@@ -249,7 +249,7 @@ function $r({ slotKey: t, fallback: r }) {
249
249
  return /* @__PURE__ */ e(ee, { children: l ? /* @__PURE__ */ e("div", { ref: o, style: { display: "contents" } }) : r });
250
250
  }
251
251
  function fl({ slotKey: t, children: r }) {
252
- const n = Ie(Et), l = oe(n == null ? void 0 : n.registerSlot);
252
+ const n = Re(Et), l = oe(n == null ? void 0 : n.registerSlot);
253
253
  if (l.current = n == null ? void 0 : n.registerSlot, Z(() => {
254
254
  var o;
255
255
  return (o = l.current) == null ? void 0 : o.call(l, t);
@@ -275,7 +275,7 @@ function ml() {
275
275
  hr(null);
276
276
  }
277
277
  function fr() {
278
- const [t, r] = W(
278
+ const [t, r] = M(
279
279
  () => Nt()
280
280
  );
281
281
  return Z(() => {
@@ -292,7 +292,7 @@ function fr() {
292
292
  } };
293
293
  }
294
294
  let Qe = 0, Se = !1, _t = /* @__PURE__ */ new Set();
295
- const jt = () => /* @__PURE__ */ h(
295
+ const jt = () => /* @__PURE__ */ u(
296
296
  "svg",
297
297
  {
298
298
  width: "100%",
@@ -335,16 +335,16 @@ function gl({
335
335
  isLoggingOut: o,
336
336
  loadingComponent: a,
337
337
  sidebarHeaderContent: c,
338
- headerActions: u,
338
+ headerActions: h,
339
339
  profileRole: d,
340
340
  profileMenuButtons: m,
341
341
  profileMenuItems: g,
342
342
  logoutButton: y
343
343
  }) {
344
344
  var ze, Ue;
345
- const [x] = ot(), F = x.get("embed") === "true", p = dr(), { badges: E } = Vr(), M = St(), w = Pe(), C = !he("md"), [L, z] = W(!1), [S, j] = W(!1), [te, X] = W(!1), [$, K] = W(!1), [Y, re] = W(
345
+ const [x] = ot(), D = x.get("embed") === "true", p = dr(), { badges: E } = Vr(), W = St(), k = Pe(), C = !he("md"), [L, z] = M(!1), [F, j] = M(!1), [te, X] = M(!1), [$, K] = M(!1), [Y, re] = M(
346
346
  () => new Set(_t)
347
- ), [ne, ie] = W(null), { selectedGroupId: P, setSelectedGroupId: q } = fr();
347
+ ), [ne, ie] = M(null), { selectedGroupId: P, setSelectedGroupId: q } = fr();
348
348
  Z(() => {
349
349
  _t = Y;
350
350
  }, [Y]);
@@ -379,7 +379,7 @@ function gl({
379
379
  }));
380
380
  }, [p.menus]), Z(() => {
381
381
  Se = !0, ye();
382
- const b = setTimeout(ye, 0), R = setTimeout(ye, 50), V = setTimeout(ye, 100), D = setTimeout(ye, 200), A = setTimeout(() => {
382
+ const b = setTimeout(ye, 0), R = setTimeout(ye, 50), V = setTimeout(ye, 100), w = setTimeout(ye, 200), A = setTimeout(() => {
383
383
  Se = !1;
384
384
  }, 300), B = setTimeout(() => {
385
385
  const I = ce.current, N = I == null ? void 0 : I.querySelector("[data-menu-active='true']");
@@ -389,16 +389,16 @@ function gl({
389
389
  }
390
390
  }, 250);
391
391
  return () => {
392
- clearTimeout(b), clearTimeout(R), clearTimeout(V), clearTimeout(D), clearTimeout(A), clearTimeout(B);
392
+ clearTimeout(b), clearTimeout(R), clearTimeout(V), clearTimeout(w), clearTimeout(A), clearTimeout(B);
393
393
  };
394
- }, [w.pathname]), Z(() => {
394
+ }, [k.pathname]), Z(() => {
395
395
  ge.current && (ge.current.scrollTop = 0);
396
- }, [w.pathname]), Z(() => {
396
+ }, [k.pathname]), Z(() => {
397
397
  C && X(!1);
398
- }, [w.pathname, C]), Z(() => {
398
+ }, [k.pathname, C]), Z(() => {
399
399
  C && j(!0);
400
400
  }, [C]);
401
- const Re = () => {
401
+ const He = () => {
402
402
  z(!0);
403
403
  }, qe = () => {
404
404
  z(!1);
@@ -407,19 +407,19 @@ function gl({
407
407
  }, Ge = (b) => {
408
408
  const R = [b.to];
409
409
  return b.children && R.push(...b.children.map((V) => V.to)), R;
410
- }, He = [
410
+ }, Ve = [
411
411
  ...p.menus.flatMap((b) => b.items.flatMap(Ge)),
412
412
  ...((ze = p.menuBottom) == null ? void 0 : ze.flatMap(Ge)) ?? []
413
413
  ], fe = (b) => {
414
- if (!w.pathname.startsWith(b)) return !1;
415
- const R = He.filter((V) => w.pathname.startsWith(V)).sort((V, D) => D.length - V.length)[0];
414
+ if (!k.pathname.startsWith(b)) return !1;
415
+ const R = Ve.filter((V) => k.pathname.startsWith(V)).sort((V, w) => w.length - V.length)[0];
416
416
  return b === R;
417
417
  };
418
418
  Z(() => {
419
419
  var R;
420
420
  const b = (V) => {
421
- var D;
422
- (D = V.children) != null && D.some((A) => w.pathname.startsWith(A.to)) && re((A) => {
421
+ var w;
422
+ (w = V.children) != null && w.some((A) => k.pathname.startsWith(A.to)) && re((A) => {
423
423
  const B = new Set(A);
424
424
  return B.add(V.id), B;
425
425
  });
@@ -427,7 +427,7 @@ function gl({
427
427
  p.menus.forEach((V) => {
428
428
  V.items.forEach(b);
429
429
  }), (R = p.menuBottom) == null || R.forEach(b);
430
- }, [w.pathname, p.menus, p.menuBottom]);
430
+ }, [k.pathname, p.menus, p.menuBottom]);
431
431
  const Je = (b) => {
432
432
  re((R) => {
433
433
  const V = new Set(R);
@@ -437,7 +437,7 @@ function gl({
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 Ve = de(() => {
440
+ const Te = de(() => {
441
441
  if (P !== null)
442
442
  return p.menus.filter(
443
443
  (V) => V.id === P || V.parentGroupId === P
@@ -448,17 +448,17 @@ function gl({
448
448
  { id: 18, name: "Pengaturan", items: R, parentGroupId: void 0 }
449
449
  ];
450
450
  }, [p.menus, P]);
451
- if (F)
451
+ if (D)
452
452
  return /* @__PURE__ */ e("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)" }, children: t || /* @__PURE__ */ e(Ot, {}) });
453
453
  const Be = (b) => {
454
- const R = b.children && b.children.length > 0, V = Y.has(b.id), D = R ? b.children.some((I) => fe(I.to)) : fe(b.to), A = ht(b.badge, E[b.id]), B = !!A && S && !C;
455
- return /* @__PURE__ */ h("div", { "data-menu-active": D || void 0, children: [
456
- /* @__PURE__ */ h(
454
+ const R = b.children && b.children.length > 0, V = Y.has(b.id), w = R ? b.children.some((I) => fe(I.to)) : fe(b.to), A = ht(b.badge, E[b.id]), B = !!A && F && !C;
455
+ return /* @__PURE__ */ u("div", { "data-menu-active": w || void 0, children: [
456
+ /* @__PURE__ */ u(
457
457
  "button",
458
458
  {
459
459
  onClick: (I) => {
460
460
  if (R)
461
- if (S && !C) {
461
+ if (F && !C) {
462
462
  const N = I.currentTarget.getBoundingClientRect();
463
463
  ie({
464
464
  item: b,
@@ -468,35 +468,35 @@ function gl({
468
468
  } else
469
469
  Je(b.id);
470
470
  else
471
- M(b.to);
471
+ W(b.to);
472
472
  },
473
473
  style: {
474
474
  width: "100%",
475
475
  display: "flex",
476
476
  alignItems: "center",
477
- justifyContent: S && !C ? "center" : void 0,
477
+ justifyContent: F && !C ? "center" : void 0,
478
478
  gap: "0.5rem",
479
- paddingLeft: S && !C ? "0" : "0.5rem",
480
- paddingRight: S && !C ? "0" : "0.5rem",
479
+ paddingLeft: F && !C ? "0" : "0.5rem",
480
+ paddingRight: F && !C ? "0" : "0.5rem",
481
481
  paddingTop: "0.25rem",
482
482
  paddingBottom: "0.25rem",
483
483
  height: "2rem",
484
- borderRadius: D ? "var(--sa-radii-sm, 0.375rem)" : "var(--sa-radii-md, 0.5rem)",
484
+ borderRadius: w ? "var(--sa-radii-sm, 0.375rem)" : "var(--sa-radii-md, 0.5rem)",
485
485
  textAlign: "left",
486
- border: D ? "1px solid var(--sa-border-subtle, #0b120e24)" : "1px solid transparent",
487
- backgroundColor: D ? "var(--sa-background-primary, #ffffff)" : "transparent",
486
+ border: w ? "1px solid var(--sa-border-subtle, #0b120e24)" : "1px solid transparent",
487
+ backgroundColor: w ? "var(--sa-background-primary, #ffffff)" : "transparent",
488
488
  color: "var(--sa-text-primary, #292a2e)",
489
489
  cursor: "pointer"
490
490
  },
491
- title: S && !C ? b.title : void 0,
491
+ title: F && !C ? b.title : void 0,
492
492
  onMouseEnter: (I) => {
493
- D || (I.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)");
493
+ w || (I.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)");
494
494
  },
495
495
  onMouseLeave: (I) => {
496
- D || (I.currentTarget.style.backgroundColor = "transparent");
496
+ w || (I.currentTarget.style.backgroundColor = "transparent");
497
497
  },
498
498
  children: [
499
- /* @__PURE__ */ h(
499
+ /* @__PURE__ */ u(
500
500
  "span",
501
501
  {
502
502
  style: {
@@ -505,7 +505,7 @@ function gl({
505
505
  flexShrink: 0
506
506
  },
507
507
  children: [
508
- /* @__PURE__ */ e(k, { name: b.icon, size: "sm", style: { flexShrink: 0 } }),
508
+ /* @__PURE__ */ e(S, { name: b.icon, size: "sm", style: { flexShrink: 0 } }),
509
509
  B && /* @__PURE__ */ e(
510
510
  "span",
511
511
  {
@@ -525,7 +525,7 @@ function gl({
525
525
  ]
526
526
  }
527
527
  ),
528
- (!S || C) && /* @__PURE__ */ h(ee, { children: [
528
+ (!F || C) && /* @__PURE__ */ u(ee, { children: [
529
529
  /* @__PURE__ */ e(
530
530
  "span",
531
531
  {
@@ -543,7 +543,7 @@ function gl({
543
543
  }
544
544
  ),
545
545
  A && /* @__PURE__ */ e(
546
- je,
546
+ $e,
547
547
  {
548
548
  text: String(A.value),
549
549
  variant: A.variant ?? "info",
@@ -579,11 +579,11 @@ function gl({
579
579
  ]
580
580
  }
581
581
  ),
582
- R && (!S || C) && (() => {
582
+ R && (!F || C) && (() => {
583
583
  const I = b.children.findIndex(
584
584
  (N) => fe(N.to)
585
585
  );
586
- return /* @__PURE__ */ h(
586
+ return /* @__PURE__ */ u(
587
587
  "div",
588
588
  {
589
589
  style: {
@@ -634,10 +634,10 @@ function gl({
634
634
  N.badge,
635
635
  E[N.id]
636
636
  );
637
- return /* @__PURE__ */ h(
637
+ return /* @__PURE__ */ u(
638
638
  "button",
639
639
  {
640
- onClick: () => M(N.to),
640
+ onClick: () => W(N.to),
641
641
  style: {
642
642
  width: "100%",
643
643
  display: "flex",
@@ -663,7 +663,7 @@ function gl({
663
663
  },
664
664
  children: [
665
665
  /* @__PURE__ */ e(
666
- k,
666
+ S,
667
667
  {
668
668
  name: N.icon,
669
669
  size: "sm",
@@ -686,7 +686,7 @@ function gl({
686
686
  }
687
687
  ),
688
688
  ae && /* @__PURE__ */ e(
689
- je,
689
+ $e,
690
690
  {
691
691
  text: String(ae.value),
692
692
  variant: ae.variant ?? "info",
@@ -705,8 +705,8 @@ function gl({
705
705
  })()
706
706
  ] }, b.id);
707
707
  };
708
- return /* @__PURE__ */ e(jr, { children: /* @__PURE__ */ h(Nr, { children: [
709
- /* @__PURE__ */ h(
708
+ return /* @__PURE__ */ e(jr, { children: /* @__PURE__ */ u(Nr, { children: [
709
+ /* @__PURE__ */ u(
710
710
  "div",
711
711
  {
712
712
  style: {
@@ -714,7 +714,7 @@ function gl({
714
714
  height: "100vh",
715
715
  // backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
716
716
  position: "relative",
717
- "--app-sidebar-width": C ? "0px" : S ? "4.375rem" : "16.375rem",
717
+ "--app-sidebar-width": C ? "0px" : F ? "4.375rem" : "16.375rem",
718
718
  "--app-footer-zindex": C && te ? "40" : "999"
719
719
  },
720
720
  children: [
@@ -733,11 +733,11 @@ function gl({
733
733
  onClick: () => X(!1)
734
734
  }
735
735
  ),
736
- /* @__PURE__ */ h(
736
+ /* @__PURE__ */ u(
737
737
  "aside",
738
738
  {
739
739
  style: {
740
- width: C ? "16.375rem" : S ? "4.375rem" : "16.375rem",
740
+ width: C ? "16.375rem" : F ? "4.375rem" : "16.375rem",
741
741
  position: C ? "fixed" : "relative",
742
742
  ...C && {
743
743
  inset: 0,
@@ -768,9 +768,9 @@ function gl({
768
768
  position: "relative"
769
769
  },
770
770
  children: (() => {
771
- const b = !C && S && !te, R = b && $;
772
- return /* @__PURE__ */ h(ee, { children: [
773
- /* @__PURE__ */ h(
771
+ const b = !C && F && !te, R = b && $;
772
+ return /* @__PURE__ */ u(ee, { children: [
773
+ /* @__PURE__ */ u(
774
774
  "div",
775
775
  {
776
776
  style: {
@@ -796,7 +796,7 @@ function gl({
796
796
  }
797
797
  }
798
798
  ),
799
- (!S || te) && /* @__PURE__ */ e(
799
+ (!F || te) && /* @__PURE__ */ e(
800
800
  "span",
801
801
  {
802
802
  style: {
@@ -811,7 +811,7 @@ function gl({
811
811
  ]
812
812
  }
813
813
  ),
814
- !C && !S && /* @__PURE__ */ e(
814
+ !C && !F && /* @__PURE__ */ e(
815
815
  "button",
816
816
  {
817
817
  type: "button",
@@ -912,7 +912,7 @@ function gl({
912
912
  c && /* @__PURE__ */ e(
913
913
  Or,
914
914
  {
915
- collapsed: C ? !1 : S,
915
+ collapsed: C ? !1 : F,
916
916
  children: c
917
917
  }
918
918
  ),
@@ -926,8 +926,8 @@ function gl({
926
926
  paddingTop: "1rem",
927
927
  paddingBottom: "1rem"
928
928
  },
929
- children: Ve.map((b) => /* @__PURE__ */ h("div", { style: { marginBottom: "1rem" }, children: [
930
- !S || C ? b.name && /* @__PURE__ */ e(
929
+ children: Te.map((b) => /* @__PURE__ */ u("div", { style: { marginBottom: "1rem" }, children: [
930
+ !F || C ? b.name && /* @__PURE__ */ e(
931
931
  "div",
932
932
  {
933
933
  style: {
@@ -1001,8 +1001,8 @@ function gl({
1001
1001
  ]
1002
1002
  }
1003
1003
  ),
1004
- /* @__PURE__ */ h("div", { style: { flex: 1, display: "flex", flexDirection: "column", overflow: "hidden" }, children: [
1005
- /* @__PURE__ */ h(
1004
+ /* @__PURE__ */ u("div", { style: { flex: 1, display: "flex", flexDirection: "column", overflow: "hidden" }, children: [
1005
+ /* @__PURE__ */ u(
1006
1006
  "header",
1007
1007
  {
1008
1008
  style: {
@@ -1017,7 +1017,7 @@ function gl({
1017
1017
  flexShrink: 0
1018
1018
  },
1019
1019
  children: [
1020
- /* @__PURE__ */ h("div", { style: { display: "flex", alignItems: "center", gap: "1rem" }, children: [
1020
+ /* @__PURE__ */ u("div", { style: { display: "flex", alignItems: "center", gap: "1rem" }, children: [
1021
1021
  C && /* @__PURE__ */ e(
1022
1022
  "button",
1023
1023
  {
@@ -1052,10 +1052,10 @@ function gl({
1052
1052
  ),
1053
1053
  /* @__PURE__ */ e(_r, { children: r })
1054
1054
  ] }),
1055
- /* @__PURE__ */ h("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem" }, children: [
1056
- u,
1057
- /* @__PURE__ */ h(Ee, { position: "bottom-right", children: [
1058
- /* @__PURE__ */ e(De, { children: /* @__PURE__ */ h(
1055
+ /* @__PURE__ */ u("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem" }, children: [
1056
+ h,
1057
+ /* @__PURE__ */ u(Ee, { position: "bottom-right", children: [
1058
+ /* @__PURE__ */ e(De, { children: /* @__PURE__ */ u(
1059
1059
  "div",
1060
1060
  {
1061
1061
  style: {
@@ -1065,7 +1065,7 @@ function gl({
1065
1065
  cursor: "pointer"
1066
1066
  },
1067
1067
  children: [
1068
- /* @__PURE__ */ h("div", { style: { textAlign: "right", maxWidth: "12.5rem" }, children: [
1068
+ /* @__PURE__ */ u("div", { style: { textAlign: "right", maxWidth: "12.5rem" }, children: [
1069
1069
  /* @__PURE__ */ e(
1070
1070
  "p",
1071
1071
  {
@@ -1117,7 +1117,7 @@ function gl({
1117
1117
  }
1118
1118
  ),
1119
1119
  /* @__PURE__ */ e(
1120
- k,
1120
+ S,
1121
1121
  {
1122
1122
  name: "ChevronDown",
1123
1123
  size: "sm",
@@ -1127,7 +1127,7 @@ function gl({
1127
1127
  ]
1128
1128
  }
1129
1129
  ) }),
1130
- /* @__PURE__ */ h(
1130
+ /* @__PURE__ */ u(
1131
1131
  Le,
1132
1132
  {
1133
1133
  style: {
@@ -1138,7 +1138,7 @@ function gl({
1138
1138
  marginTop: "16px"
1139
1139
  },
1140
1140
  children: [
1141
- /* @__PURE__ */ e(wr, { children: /* @__PURE__ */ h(
1141
+ /* @__PURE__ */ e(wr, { children: /* @__PURE__ */ u(
1142
1142
  "div",
1143
1143
  {
1144
1144
  style: {
@@ -1218,8 +1218,8 @@ function gl({
1218
1218
  ]
1219
1219
  }
1220
1220
  ) }),
1221
- (m && m.length > 0 || g) && /* @__PURE__ */ h(Me, { children: [
1222
- m == null ? void 0 : m.map((b, R) => /* @__PURE__ */ e(De, { children: /* @__PURE__ */ h(
1221
+ (m && m.length > 0 || g) && /* @__PURE__ */ u(Me, { children: [
1222
+ m == null ? void 0 : m.map((b, R) => /* @__PURE__ */ e(De, { children: /* @__PURE__ */ u(
1223
1223
  "button",
1224
1224
  {
1225
1225
  type: "button",
@@ -1232,18 +1232,18 @@ function gl({
1232
1232
  V.currentTarget.style.backgroundColor = "transparent";
1233
1233
  },
1234
1234
  children: [
1235
- /* @__PURE__ */ e(k, { name: b.icon, size: "md" }),
1235
+ /* @__PURE__ */ e(S, { name: b.icon, size: "md" }),
1236
1236
  /* @__PURE__ */ e("span", { children: b.label })
1237
1237
  ]
1238
1238
  }
1239
1239
  ) }, `${b.label}-${R}`)),
1240
1240
  g
1241
1241
  ] }),
1242
- y ?? /* @__PURE__ */ e(ir, { children: /* @__PURE__ */ e(De, { children: /* @__PURE__ */ h(
1242
+ y ?? /* @__PURE__ */ e(ir, { children: /* @__PURE__ */ e(De, { children: /* @__PURE__ */ u(
1243
1243
  "button",
1244
1244
  {
1245
1245
  type: "button",
1246
- onClick: Re,
1246
+ onClick: He,
1247
1247
  style: {
1248
1248
  ...$t,
1249
1249
  color: "var(--sa-background-error, #c9184a)",
@@ -1257,7 +1257,7 @@ function gl({
1257
1257
  },
1258
1258
  children: [
1259
1259
  /* @__PURE__ */ e(
1260
- k,
1260
+ S,
1261
1261
  {
1262
1262
  name: "Logout",
1263
1263
  size: "md",
@@ -1308,15 +1308,15 @@ function gl({
1308
1308
  children: a
1309
1309
  }
1310
1310
  ),
1311
- /* @__PURE__ */ h(vt, { isShow: L, onHide: qe, children: [
1311
+ /* @__PURE__ */ u(vt, { isShow: L, onHide: qe, children: [
1312
1312
  /* @__PURE__ */ e(rr, { children: "Confirmation Logout" }),
1313
1313
  /* @__PURE__ */ e(Dt, { children: "Are you sure you want to end the session and exit the page?" }),
1314
- /* @__PURE__ */ e(nr, { children: /* @__PURE__ */ e(f, { direction: "column", display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ h(U, { direction: "row", gap: "sm", align: "center", children: [
1314
+ /* @__PURE__ */ e(nr, { children: /* @__PURE__ */ e(f, { direction: "column", display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ u(U, { direction: "row", gap: "sm", align: "center", children: [
1315
1315
  /* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(H, { secondary: !0, onClick: qe, children: "Cancel" }) }),
1316
1316
  /* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(H, { primary: !0, onClick: at, children: "Yes, Sure" }) })
1317
1317
  ] }) }) })
1318
1318
  ] }),
1319
- ne && /* @__PURE__ */ h(ee, { children: [
1319
+ ne && /* @__PURE__ */ u(ee, { children: [
1320
1320
  /* @__PURE__ */ e(
1321
1321
  "div",
1322
1322
  {
@@ -1329,7 +1329,7 @@ function gl({
1329
1329
  }
1330
1330
  }
1331
1331
  ),
1332
- /* @__PURE__ */ h(
1332
+ /* @__PURE__ */ u(
1333
1333
  "div",
1334
1334
  {
1335
1335
  role: "dialog",
@@ -1370,11 +1370,11 @@ function gl({
1370
1370
  b.badge,
1371
1371
  E[b.id]
1372
1372
  );
1373
- return /* @__PURE__ */ h(
1373
+ return /* @__PURE__ */ u(
1374
1374
  "button",
1375
1375
  {
1376
1376
  onClick: () => {
1377
- M(b.to), ie(null);
1377
+ W(b.to), ie(null);
1378
1378
  },
1379
1379
  style: {
1380
1380
  width: "100%",
@@ -1391,15 +1391,15 @@ function gl({
1391
1391
  fontSize: "0.875rem",
1392
1392
  fontWeight: 500
1393
1393
  },
1394
- onMouseEnter: (D) => {
1395
- R || (D.currentTarget.style.backgroundColor = "var(--sa-color-gray-100, #f8f8f8)");
1394
+ onMouseEnter: (w) => {
1395
+ R || (w.currentTarget.style.backgroundColor = "var(--sa-color-gray-100, #f8f8f8)");
1396
1396
  },
1397
- onMouseLeave: (D) => {
1398
- R || (D.currentTarget.style.backgroundColor = "transparent");
1397
+ onMouseLeave: (w) => {
1398
+ R || (w.currentTarget.style.backgroundColor = "transparent");
1399
1399
  },
1400
1400
  children: [
1401
1401
  b.icon && /* @__PURE__ */ e(
1402
- k,
1402
+ S,
1403
1403
  {
1404
1404
  name: b.icon,
1405
1405
  size: "sm",
@@ -1408,7 +1408,7 @@ function gl({
1408
1408
  ),
1409
1409
  /* @__PURE__ */ e("span", { style: { flex: 1, whiteSpace: "nowrap" }, children: b.title }),
1410
1410
  V && /* @__PURE__ */ e(
1411
- je,
1411
+ $e,
1412
1412
  {
1413
1413
  text: String(V.value),
1414
1414
  variant: V.variant ?? "info",
@@ -1449,8 +1449,8 @@ const Lt = kt(
1449
1449
  hoverTextColor: i,
1450
1450
  hoverIconColor: o
1451
1451
  }) => {
1452
- const [a, c] = W(!1);
1453
- return /* @__PURE__ */ h(
1452
+ const [a, c] = M(!1);
1453
+ return /* @__PURE__ */ u(
1454
1454
  f,
1455
1455
  {
1456
1456
  direction: "row",
@@ -1461,7 +1461,7 @@ const Lt = kt(
1461
1461
  style: { cursor: "pointer" },
1462
1462
  children: [
1463
1463
  /* @__PURE__ */ e(
1464
- k,
1464
+ S,
1465
1465
  {
1466
1466
  name: r || "ChevronLeft",
1467
1467
  size: "xs",
@@ -1492,25 +1492,25 @@ const Lt = kt(
1492
1492
  iconColor: l,
1493
1493
  hoverIconColor: i
1494
1494
  }) => {
1495
- const [o, a] = W(!1), c = l ?? "var(--sa-text-subtle, #8c8f97)", u = 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
- k,
1495
+ const [o, a] = M(!1), c = l ?? "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
+ S,
1497
1497
  {
1498
1498
  name: n || "ChevronLeft",
1499
1499
  size: "xs",
1500
1500
  onMouseEnter: m ? () => a(!0) : void 0,
1501
1501
  onMouseLeave: m ? () => a(!1) : void 0,
1502
1502
  style: {
1503
- color: m && o ? u : c,
1503
+ color: m && o ? h : c,
1504
1504
  transition: "color 0.15s ease",
1505
1505
  cursor: m ? "pointer" : void 0
1506
1506
  }
1507
1507
  }
1508
1508
  ), y = d != null && d.to ? /* @__PURE__ */ e(et, { to: d.to, replace: !0, style: { textDecoration: "none" }, children: g }) : d != null && d.onClick ? /* @__PURE__ */ e(Lt, { onClick: d.onClick, children: g }) : g;
1509
- return /* @__PURE__ */ h(f, { direction: "row", gap: "xs", align: "center", children: [
1509
+ return /* @__PURE__ */ u(f, { direction: "row", gap: "xs", align: "center", children: [
1510
1510
  y,
1511
- /* @__PURE__ */ e(Cr, { separator: r, size: "md", children: t.map((x, F) => {
1512
- const p = F === t.length - 1;
1513
- return x.to && !p ? /* @__PURE__ */ e(Ht, { children: /* @__PURE__ */ e(et, { to: x.to, children: x.label }) }, F) : /* @__PURE__ */ e(Ht, { currentPage: p, children: /* @__PURE__ */ e(br, { onClick: p ? void 0 : x.onClick, children: x.label }) }, F);
1511
+ /* @__PURE__ */ e(Cr, { separator: r, size: "md", children: t.map((x, D) => {
1512
+ const p = D === t.length - 1;
1513
+ return x.to && !p ? /* @__PURE__ */ e(Ht, { children: /* @__PURE__ */ e(et, { to: x.to, children: x.label }) }, D) : /* @__PURE__ */ e(Ht, { currentPage: p, children: /* @__PURE__ */ e(br, { onClick: p ? void 0 : x.onClick, children: x.label }) }, D);
1514
1514
  }) })
1515
1515
  ] });
1516
1516
  }, yl = (t) => {
@@ -1611,9 +1611,9 @@ function Pr({
1611
1611
  selectedGroupId: l,
1612
1612
  onSelect: i
1613
1613
  }) {
1614
- const [o, a] = W(void 0), c = (d) => {
1614
+ const [o, a] = M(void 0), c = (d) => {
1615
1615
  i(d), r();
1616
- }, u = ft[0];
1616
+ }, h = ft[0];
1617
1617
  return /* @__PURE__ */ e(
1618
1618
  vt,
1619
1619
  {
@@ -1625,7 +1625,7 @@ function Pr({
1625
1625
  boxShadow: "none",
1626
1626
  border: "none"
1627
1627
  },
1628
- children: /* @__PURE__ */ e(Dt, { children: /* @__PURE__ */ h(
1628
+ children: /* @__PURE__ */ e(Dt, { children: /* @__PURE__ */ u(
1629
1629
  "div",
1630
1630
  {
1631
1631
  style: {
@@ -1634,7 +1634,7 @@ function Pr({
1634
1634
  gap: "16px"
1635
1635
  },
1636
1636
  children: [
1637
- /* @__PURE__ */ h(
1637
+ /* @__PURE__ */ u(
1638
1638
  "button",
1639
1639
  {
1640
1640
  onClick: () => c(null),
@@ -1642,15 +1642,15 @@ function Pr({
1642
1642
  onMouseLeave: () => a(void 0),
1643
1643
  style: Gt,
1644
1644
  children: [
1645
- /* @__PURE__ */ e("div", { style: Pt(l === null, o === "all", u), children: /* @__PURE__ */ e("div", { style: { color: u.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(k, { name: "Grid", size: "lg", style: { width: 32, height: 32 } }) }) }),
1645
+ /* @__PURE__ */ e("div", { style: Pt(l === null, o === "all", h), children: /* @__PURE__ */ e("div", { style: { color: h.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(S, { name: "Grid", size: "lg", style: { width: 32, height: 32 } }) }) }),
1646
1646
  /* @__PURE__ */ e("span", { style: qt, children: "Semua" })
1647
1647
  ]
1648
1648
  }
1649
1649
  ),
1650
1650
  n.map((d, m) => {
1651
1651
  var p;
1652
- const g = l === d.id, y = o === d.id, x = ((p = d.items[0]) == null ? void 0 : p.icon) ?? "Grid", F = ft[(m + 1) % ft.length];
1653
- return /* @__PURE__ */ h(
1652
+ const g = l === d.id, y = o === d.id, x = ((p = d.items[0]) == null ? void 0 : p.icon) ?? "Grid", D = ft[(m + 1) % ft.length];
1653
+ return /* @__PURE__ */ u(
1654
1654
  "button",
1655
1655
  {
1656
1656
  onClick: () => c(d.id),
@@ -1658,7 +1658,7 @@ function Pr({
1658
1658
  onMouseLeave: () => a(void 0),
1659
1659
  style: Gt,
1660
1660
  children: [
1661
- /* @__PURE__ */ e("div", { style: Pt(g, y, F), children: /* @__PURE__ */ e("div", { style: { color: F.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(k, { name: x, size: "lg", style: { width: 32, height: 32 } }) }) }),
1661
+ /* @__PURE__ */ e("div", { style: Pt(g, y, D), children: /* @__PURE__ */ e("div", { style: { color: D.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(S, { name: x, size: "lg", style: { width: 32, height: 32 } }) }) }),
1662
1662
  /* @__PURE__ */ e("span", { style: qt, children: d.name })
1663
1663
  ]
1664
1664
  },
@@ -1675,7 +1675,7 @@ function pl({
1675
1675
  onSelect: t,
1676
1676
  "aria-label": r = "Pilih module"
1677
1677
  } = {}) {
1678
- const n = dr(), l = St(), { selectedGroupId: i, setSelectedGroupId: o } = fr(), [a, c] = W(!1), u = (d) => {
1678
+ const n = dr(), l = St(), { selectedGroupId: i, setSelectedGroupId: o } = fr(), [a, c] = M(!1), h = (d) => {
1679
1679
  var m;
1680
1680
  if (o(d), d !== null) {
1681
1681
  const g = n.menus.find((x) => x.id === d), y = (m = g == null ? void 0 : g.items[0]) == null ? void 0 : m.to;
@@ -1683,8 +1683,8 @@ function pl({
1683
1683
  }
1684
1684
  t == null || t(d);
1685
1685
  };
1686
- return /* @__PURE__ */ h(ee, { children: [
1687
- /* @__PURE__ */ h("div", { style: { position: "relative" }, children: [
1686
+ return /* @__PURE__ */ u(ee, { children: [
1687
+ /* @__PURE__ */ u("div", { style: { position: "relative" }, children: [
1688
1688
  /* @__PURE__ */ e(
1689
1689
  "button",
1690
1690
  {
@@ -1708,7 +1708,7 @@ function pl({
1708
1708
  onMouseLeave: (d) => {
1709
1709
  d.currentTarget.style.backgroundColor = "transparent";
1710
1710
  },
1711
- children: /* @__PURE__ */ e(k, { name: "GridApplication", size: "sm" })
1711
+ children: /* @__PURE__ */ e(S, { name: "GridApplication", size: "sm" })
1712
1712
  }
1713
1713
  ),
1714
1714
  i !== null && /* @__PURE__ */ e(
@@ -1734,7 +1734,7 @@ function pl({
1734
1734
  onHide: () => c(!1),
1735
1735
  menus: n.menus.filter((d) => d.parentGroupId === void 0),
1736
1736
  selectedGroupId: i,
1737
- onSelect: u
1737
+ onSelect: h
1738
1738
  }
1739
1739
  )
1740
1740
  ] });
@@ -1773,9 +1773,9 @@ const qr = (t, r) => {
1773
1773
  verticalAlign: o
1774
1774
  }),
1775
1775
  [i, o]
1776
- ), u = () => 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
- return /* @__PURE__ */ h(_e, { children: [
1778
- /* @__PURE__ */ e(Fe, { style: a, width: l, children: u() }),
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
+ return /* @__PURE__ */ u(je, { children: [
1778
+ /* @__PURE__ */ e(Fe, { style: a, width: l, children: h() }),
1779
1779
  n ? /* @__PURE__ */ e(Fe, { style: c, width: 24, children: m() }) : null,
1780
1780
  /* @__PURE__ */ e(Fe, { style: a, children: d() })
1781
1781
  ] });
@@ -1801,7 +1801,7 @@ const qr = (t, r) => {
1801
1801
  const a = de(
1802
1802
  () => qr(l, t),
1803
1803
  [l, t]
1804
- ), c = a.length > 2, u = () => {
1804
+ ), c = a.length > 2, h = () => {
1805
1805
  switch (r) {
1806
1806
  case 1:
1807
1807
  return "width-full";
@@ -1833,7 +1833,7 @@ const qr = (t, r) => {
1833
1833
  {
1834
1834
  direction: "column",
1835
1835
  flex: c ? void 0 : "1",
1836
- width: c ? u() : void 0,
1836
+ width: c ? h() : void 0,
1837
1837
  marginBottom: c ? "lg" : void 0,
1838
1838
  children: /* @__PURE__ */ e(
1839
1839
  Jr,
@@ -1850,8 +1850,8 @@ const qr = (t, r) => {
1850
1850
  );
1851
1851
  }
1852
1852
  ), Ur = ({ backButton: t }) => {
1853
- const [r, n] = W(!1), l = (t == null ? void 0 : t.iconColor) ?? "var(--sa-text-subtle, #8c8f97)", i = (t == null ? void 0 : t.textColor) ?? "var(--sa-text-subtle, #8c8f97)", o = (t == null ? void 0 : t.hoverIconColor) ?? "var(--sa-text-subtle, #8c8f97)", a = (t == null ? void 0 : t.hoverTextColor) ?? "var(--sa-text-primary, #292a2e)";
1854
- return /* @__PURE__ */ h(
1853
+ const [r, n] = M(!1), l = (t == null ? void 0 : t.iconColor) ?? "var(--sa-text-subtle, #8c8f97)", i = (t == null ? void 0 : t.textColor) ?? "var(--sa-text-subtle, #8c8f97)", o = (t == null ? void 0 : t.hoverIconColor) ?? "var(--sa-text-subtle, #8c8f97)", a = (t == null ? void 0 : t.hoverTextColor) ?? "var(--sa-text-primary, #292a2e)";
1854
+ return /* @__PURE__ */ u(
1855
1855
  f,
1856
1856
  {
1857
1857
  direction: "row",
@@ -1862,7 +1862,7 @@ const qr = (t, r) => {
1862
1862
  style: { cursor: "pointer" },
1863
1863
  children: [
1864
1864
  /* @__PURE__ */ e(
1865
- k,
1865
+ S,
1866
1866
  {
1867
1867
  name: (t == null ? void 0 : t.iconName) || "ChevronLeft",
1868
1868
  size: "xs",
@@ -1896,43 +1896,43 @@ const qr = (t, r) => {
1896
1896
  header: o = !0,
1897
1897
  headerBorder: a = !1,
1898
1898
  subHeaders: c,
1899
- action: u,
1899
+ action: h,
1900
1900
  titleTagProps: d,
1901
1901
  containerProps: m,
1902
1902
  headerProps: g
1903
1903
  }) => {
1904
- const y = he("lg"), x = St(), F = Pe(), p = t == null ? void 0 : t.show, E = () => {
1904
+ const y = he("lg"), x = St(), D = Pe(), 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;
1908
1908
  }
1909
1909
  x(-1, { replace: !0 });
1910
- }, M = () => u ? Ct(u) ? u : /* @__PURE__ */ e(f, { direction: "row", gap: "lg", children: u.map(
1911
- ({ title: S, icon: j, buttonProps: te, onClick: X }, $) => !S && !j ? null : /* @__PURE__ */ e(
1910
+ }, W = () => h ? Ct(h) ? h : /* @__PURE__ */ e(f, { direction: "row", gap: "lg", children: h.map(
1911
+ ({ title: F, icon: j, buttonProps: te, onClick: X }, $) => !F && !j ? null : /* @__PURE__ */ e(
1912
1912
  H,
1913
1913
  {
1914
1914
  fullWidth: !y,
1915
- iconLeft: j ? /* @__PURE__ */ e(k, { name: j, size: "md" }) : void 0,
1915
+ iconLeft: j ? /* @__PURE__ */ e(S, { name: j, size: "md" }) : void 0,
1916
1916
  onClick: X,
1917
1917
  ...te,
1918
- children: S
1918
+ children: F
1919
1919
  },
1920
1920
  `action-${$}`
1921
1921
  )
1922
- ) }) : null, w = () => {
1923
- const S = /* @__PURE__ */ e(Ur, { backButton: t });
1922
+ ) }) : null, k = () => {
1923
+ const F = /* @__PURE__ */ e(Ur, { backButton: t });
1924
1924
  return t != null && t.navigateTo ? /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(
1925
1925
  et,
1926
1926
  {
1927
1927
  to: t.navigateTo,
1928
1928
  replace: !0,
1929
1929
  style: { textDecoration: "none" },
1930
- children: S
1930
+ children: F
1931
1931
  }
1932
- ) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Lt, { onClick: E, children: S }) });
1932
+ ) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Lt, { onClick: E, children: F }) });
1933
1933
  }, O = () => {
1934
- const S = !!r, j = Ct(u) ? !0 : Array.isArray(u) && u.length > 0;
1935
- return !S && !j && !p ? null : /* @__PURE__ */ h(
1934
+ const F = !!r, j = Ct(h) ? !0 : Array.isArray(h) && h.length > 0;
1935
+ return !F && !j && !p ? null : /* @__PURE__ */ u(
1936
1936
  f,
1937
1937
  {
1938
1938
  direction: "column",
@@ -1945,8 +1945,8 @@ const qr = (t, r) => {
1945
1945
  ...g == null ? void 0 : g.style
1946
1946
  },
1947
1947
  children: [
1948
- p && w(),
1949
- (S || j) && /* @__PURE__ */ h(
1948
+ p && k(),
1949
+ (F || j) && /* @__PURE__ */ u(
1950
1950
  f,
1951
1951
  {
1952
1952
  direction: y ? "row" : "column",
@@ -1954,9 +1954,9 @@ const qr = (t, r) => {
1954
1954
  justify: "space-between",
1955
1955
  align: "center",
1956
1956
  children: [
1957
- S ? typeof r == "string" ? /* @__PURE__ */ h(f, { direction: "row", gap: "lg", align: "center", children: [
1958
- /* @__PURE__ */ h(f, { direction: "row", gap: "sm", align: "center", children: [
1959
- n && /* @__PURE__ */ e(k, { name: n, size: "md", color: "primary" }),
1957
+ F ? typeof r == "string" ? /* @__PURE__ */ u(f, { direction: "row", gap: "lg", align: "center", children: [
1958
+ /* @__PURE__ */ u(f, { direction: "row", gap: "sm", align: "center", children: [
1959
+ n && /* @__PURE__ */ e(S, { name: n, size: "md", color: "primary" }),
1960
1960
  /* @__PURE__ */ e(
1961
1961
  v,
1962
1962
  {
@@ -1969,7 +1969,7 @@ const qr = (t, r) => {
1969
1969
  ] }),
1970
1970
  l && /* @__PURE__ */ e(xr, { border: !0, size: "lg", text: l, ...d })
1971
1971
  ] }) : r : null,
1972
- M()
1972
+ W()
1973
1973
  ]
1974
1974
  }
1975
1975
  )
@@ -1978,16 +1978,16 @@ const qr = (t, r) => {
1978
1978
  );
1979
1979
  }, C = () => {
1980
1980
  if (!c || c.length === 0) return null;
1981
- let S = 0, j = -1 / 0;
1981
+ let F = 0, j = -1 / 0;
1982
1982
  return c.forEach((te, X) => {
1983
1983
  const $ = te.order ?? 0;
1984
- $ >= j && (j = $, S = X);
1984
+ $ >= j && (j = $, F = X);
1985
1985
  }), c.map(({ content: te, order: X, borderBottom: $ = !0 }, K) => /* @__PURE__ */ e(
1986
1986
  f,
1987
1987
  {
1988
1988
  direction: "column",
1989
1989
  paddingTop: "sm",
1990
- paddingBottom: $ || K === S ? "sm" : "spacing-0",
1990
+ paddingBottom: $ || K === F ? "sm" : "spacing-0",
1991
1991
  paddingInline: "md",
1992
1992
  style: {
1993
1993
  ...$ ? {
@@ -2000,8 +2000,8 @@ const qr = (t, r) => {
2000
2000
  `sub-header-${K}`
2001
2001
  ));
2002
2002
  }, L = () => {
2003
- const S = o ? O() : null, j = C();
2004
- return !S && !j ? null : /* @__PURE__ */ h(
2003
+ const F = o ? O() : null, j = C();
2004
+ return !F && !j ? null : /* @__PURE__ */ u(
2005
2005
  f,
2006
2006
  {
2007
2007
  direction: "column",
@@ -2013,13 +2013,13 @@ const qr = (t, r) => {
2013
2013
  marginBottom: c && c.length > 0 ? "var(--sa-spacing-0)" : "var(--sa-spacing-md)"
2014
2014
  },
2015
2015
  children: [
2016
- S,
2016
+ F,
2017
2017
  j
2018
2018
  ]
2019
2019
  }
2020
2020
  );
2021
2021
  }, z = () => i;
2022
- return /* @__PURE__ */ h(
2022
+ return /* @__PURE__ */ u(
2023
2023
  f,
2024
2024
  {
2025
2025
  direction: "column",
@@ -2034,7 +2034,7 @@ const qr = (t, r) => {
2034
2034
  z()
2035
2035
  ]
2036
2036
  },
2037
- F.pathname
2037
+ D.pathname
2038
2038
  );
2039
2039
  }, Cl = Ce(Qr), Yr = {
2040
2040
  icon: "Cross",
@@ -2049,9 +2049,9 @@ const qr = (t, r) => {
2049
2049
  closeButton: o = Yr,
2050
2050
  width: a,
2051
2051
  minWidth: c = "357px",
2052
- maxWidth: u = "357px"
2052
+ maxWidth: h = "357px"
2053
2053
  }, d) => {
2054
- const m = Jt(a ?? c), g = Jt(a ?? u);
2054
+ const m = Jt(a ?? c), g = Jt(a ?? h);
2055
2055
  return /* @__PURE__ */ e(
2056
2056
  vr,
2057
2057
  {
@@ -2065,8 +2065,8 @@ const qr = (t, r) => {
2065
2065
  maxWidth: g,
2066
2066
  ...l
2067
2067
  },
2068
- children: /* @__PURE__ */ h(f, { direction: "column", padding: "lg", children: [
2069
- o ? /* @__PURE__ */ h(
2068
+ children: /* @__PURE__ */ u(f, { direction: "column", padding: "lg", children: [
2069
+ o ? /* @__PURE__ */ u(
2070
2070
  f,
2071
2071
  {
2072
2072
  direction: "row",
@@ -2077,7 +2077,7 @@ const qr = (t, r) => {
2077
2077
  cursor: "pointer",
2078
2078
  children: [
2079
2079
  /* @__PURE__ */ e(
2080
- k,
2080
+ S,
2081
2081
  {
2082
2082
  name: o.icon,
2083
2083
  size: "md",
@@ -2151,15 +2151,15 @@ const qr = (t, r) => {
2151
2151
  footer: o,
2152
2152
  actionContainer: a,
2153
2153
  containerProps: c,
2154
- bodyProps: u,
2154
+ bodyProps: h,
2155
2155
  headerProps: d = { borderBottom: !0 },
2156
2156
  footerProps: m = { borderTop: !0 },
2157
2157
  variantTag: g = "info"
2158
2158
  }) => {
2159
- const y = he("lg"), x = () => n ? /* @__PURE__ */ h(f, { direction: "row", gap: "sm", align: "center", children: [
2159
+ const y = he("lg"), x = () => n ? /* @__PURE__ */ u(f, { direction: "row", gap: "sm", align: "center", children: [
2160
2160
  /* @__PURE__ */ e(v, { fontWeight: "medium", children: r }),
2161
- /* @__PURE__ */ e(je, { border: !0, text: n, variant: g })
2162
- ] }) : /* @__PURE__ */ e(v, { fontWeight: "medium", children: r }), F = () => i || /* @__PURE__ */ h(
2161
+ /* @__PURE__ */ e($e, { border: !0, text: n, variant: g })
2162
+ ] }) : /* @__PURE__ */ e(v, { fontWeight: "medium", children: r }), D = () => i || /* @__PURE__ */ u(
2163
2163
  f,
2164
2164
  {
2165
2165
  direction: "row",
@@ -2180,7 +2180,7 @@ const qr = (t, r) => {
2180
2180
  ]
2181
2181
  }
2182
2182
  ), p = !!(i || r || l);
2183
- return /* @__PURE__ */ h(
2183
+ return /* @__PURE__ */ u(
2184
2184
  f,
2185
2185
  {
2186
2186
  direction: "column",
@@ -2196,8 +2196,8 @@ const qr = (t, r) => {
2196
2196
  ...(c == null ? void 0 : c.style) ?? {}
2197
2197
  },
2198
2198
  children: [
2199
- i !== null && p ? /* @__PURE__ */ e(mr, { ...d, children: F() }) : null,
2200
- /* @__PURE__ */ e(en, { ...u, children: t }),
2199
+ i !== null && p ? /* @__PURE__ */ e(mr, { ...d, children: D() }) : null,
2200
+ /* @__PURE__ */ e(en, { ...h, children: t }),
2201
2201
  o ? /* @__PURE__ */ e(gr, { ...m, children: o }) : null
2202
2202
  ]
2203
2203
  }
@@ -2243,7 +2243,7 @@ const qr = (t, r) => {
2243
2243
  searchQueries: o,
2244
2244
  dropdownSearchKey: a,
2245
2245
  filterKey: c = "filter",
2246
- pageKey: u = "page"
2246
+ pageKey: h = "page"
2247
2247
  }) => {
2248
2248
  if (l) {
2249
2249
  let d;
@@ -2276,14 +2276,14 @@ const qr = (t, r) => {
2276
2276
  ...o[c] && typeof o[c] == "string" ? JSON.parse(o[c]) : void 0,
2277
2277
  [r]: d
2278
2278
  }, y = { ...o };
2279
- a && typeof a == "string" && delete y[a], delete y[u];
2279
+ a && typeof a == "string" && delete y[a], delete y[h];
2280
2280
  const x = {
2281
2281
  ...y,
2282
2282
  [c]: JSON.stringify(g)
2283
- }, F = new URLSearchParams(o).toString(), p = new URLSearchParams(
2283
+ }, D = new URLSearchParams(o).toString(), p = new URLSearchParams(
2284
2284
  x
2285
2285
  ).toString();
2286
- if (F === p)
2286
+ if (D === p)
2287
2287
  return;
2288
2288
  i(x);
2289
2289
  }
@@ -2346,32 +2346,32 @@ const qr = (t, r) => {
2346
2346
  pageKey: l,
2347
2347
  filters: i
2348
2348
  }) => {
2349
- const { searchParams: o, setSearchParams: a, searchQueries: c } = We(), [u, d] = W({}), m = () => {
2349
+ const { searchParams: o, setSearchParams: a, searchQueries: c } = We(), [h, d] = M({}), m = () => {
2350
2350
  o.delete(n || "filter"), a(o);
2351
2351
  }, g = (y, x) => {
2352
2352
  switch (y.type) {
2353
2353
  case "radio": {
2354
- const { show: F = !0 } = y;
2355
- return F && /* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(f, { direction: "column", children: y.title }) }, x);
2354
+ const { show: D = !0 } = y;
2355
+ return D && /* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(f, { direction: "column", children: y.title }) }, x);
2356
2356
  }
2357
2357
  case "dropdown": {
2358
- const { show: F = !0 } = y;
2359
- return F && /* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(f, { direction: "column", children: y.title }) }, x);
2358
+ const { show: D = !0 } = y;
2359
+ return D && /* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(f, { direction: "column", children: y.title }) }, x);
2360
2360
  }
2361
2361
  case "date-range":
2362
2362
  return /* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(f, { direction: "column", children: y.title }) }, x);
2363
2363
  case "date":
2364
2364
  return /* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(f, { direction: "column", children: y.title }) }, x);
2365
2365
  case "dropdown-multiple": {
2366
- const { show: F = !0 } = y;
2367
- return F && /* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(f, { direction: "column", children: y.title }) }, x);
2366
+ const { show: D = !0 } = y;
2367
+ return D && /* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(f, { direction: "column", children: y.title }) }, x);
2368
2368
  }
2369
2369
  default:
2370
2370
  return null;
2371
2371
  }
2372
2372
  };
2373
- return /* @__PURE__ */ e(Kr, { onHide: r, show: t || !1, children: /* @__PURE__ */ h(f, { direction: "column", gap: "md", children: [
2374
- /* @__PURE__ */ h(U, { direction: "row", justify: "space-between", align: "center", children: [
2373
+ return /* @__PURE__ */ e(Kr, { onHide: r, show: t || !1, children: /* @__PURE__ */ u(f, { direction: "column", gap: "md", children: [
2374
+ /* @__PURE__ */ u(U, { direction: "row", justify: "space-between", align: "center", children: [
2375
2375
  /* @__PURE__ */ e(f, { direction: "column", children: "Filter" }),
2376
2376
  /* @__PURE__ */ e(
2377
2377
  f,
@@ -2394,18 +2394,18 @@ const qr = (t, r) => {
2394
2394
  showSearchFilter: o = !0,
2395
2395
  showStatusFilter: a = !0,
2396
2396
  filterKey: c = "filter",
2397
- pageKey: u = "page",
2397
+ pageKey: h = "page",
2398
2398
  customWidthSearch: d,
2399
2399
  handleOnReset: m,
2400
2400
  filterConfigs: g,
2401
2401
  buttonToggleProps: y,
2402
2402
  position: x = "right",
2403
- titleSearchLabel: F = "Work Order",
2403
+ titleSearchLabel: D = "Work Order",
2404
2404
  withTitleLabels: p = !1
2405
2405
  }) => {
2406
- const M = (y == null ? void 0 : y.isShowLabel) ?? !0, [w, O] = W(!1), [C, L] = W(0), z = () => {
2406
+ const W = (y == null ? void 0 : y.isShowLabel) ?? !0, [k, O] = M(!1), [C, L] = M(0), z = () => {
2407
2407
  L((q) => q + 1);
2408
- }, { searchParams: S, setSearchParams: j, getQueryParam: te } = We(), X = it(S.toString()), $ = yr(t, S, c) || "", [K, Y] = W($), re = te(c), ie = !!(re && !(() => {
2408
+ }, { searchParams: F, setSearchParams: j, getQueryParam: te } = We(), X = it(F.toString()), $ = yr(t, F, c) || "", [K, Y] = M($), re = te(c), ie = !!(re && !(() => {
2409
2409
  if (re)
2410
2410
  try {
2411
2411
  const q = JSON.parse(re);
@@ -2428,7 +2428,7 @@ const qr = (t, r) => {
2428
2428
  searchQueries: X,
2429
2429
  setSearchParams: j,
2430
2430
  filterKey: c,
2431
- pageKey: u
2431
+ pageKey: h
2432
2432
  });
2433
2433
  }, 350);
2434
2434
  return () => {
@@ -2441,8 +2441,8 @@ const qr = (t, r) => {
2441
2441
  X,
2442
2442
  j,
2443
2443
  c,
2444
- u
2445
- ]), /* @__PURE__ */ h(
2444
+ h
2445
+ ]), /* @__PURE__ */ u(
2446
2446
  U,
2447
2447
  {
2448
2448
  gap: "md",
@@ -2455,7 +2455,7 @@ const qr = (t, r) => {
2455
2455
  H,
2456
2456
  {
2457
2457
  onClick: () => {
2458
- const q = new URLSearchParams(S);
2458
+ const q = new URLSearchParams(F);
2459
2459
  q.delete(c), j(q), Y(""), z(), m && m();
2460
2460
  },
2461
2461
  variant: "outline",
@@ -2463,7 +2463,7 @@ const qr = (t, r) => {
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: ce, title: ge, onClickContainer: ye }, Re) => /* @__PURE__ */ h(
2466
+ i == null ? void 0 : i.map(({ minWidth: q, content: ce, title: ge, onClickContainer: ye }, He) => /* @__PURE__ */ u(
2467
2467
  f,
2468
2468
  {
2469
2469
  direction: "column",
@@ -2477,7 +2477,7 @@ const qr = (t, r) => {
2477
2477
  ce
2478
2478
  ]
2479
2479
  },
2480
- `extended-filter-${Re}-${C}`
2480
+ `extended-filter-${He}-${C}`
2481
2481
  )),
2482
2482
  !!(g != null && g.length) && /* @__PURE__ */ e(
2483
2483
  H,
@@ -2485,7 +2485,7 @@ const qr = (t, r) => {
2485
2485
  primary: ie,
2486
2486
  secondary: !ie,
2487
2487
  iconLeft: /* @__PURE__ */ e(
2488
- k,
2488
+ S,
2489
2489
  {
2490
2490
  size: "sm",
2491
2491
  name: (y == null ? void 0 : y.icon) || "FilterHorizontal",
@@ -2496,10 +2496,10 @@ const qr = (t, r) => {
2496
2496
  ),
2497
2497
  fullWidth: !P,
2498
2498
  onClick: () => O(!0),
2499
- children: M ? "Filter" : void 0
2499
+ children: W ? "Filter" : void 0
2500
2500
  }
2501
2501
  ),
2502
- a && /* @__PURE__ */ h(
2502
+ a && /* @__PURE__ */ u(
2503
2503
  f,
2504
2504
  {
2505
2505
  direction: "column",
@@ -2525,20 +2525,20 @@ const qr = (t, r) => {
2525
2525
  defaultValue: mt({
2526
2526
  get: "value",
2527
2527
  name: r,
2528
- searchParams: S,
2528
+ searchParams: F,
2529
2529
  filterKey: c
2530
2530
  }) ? [
2531
2531
  {
2532
2532
  label: mt({
2533
2533
  get: "value",
2534
2534
  name: r,
2535
- searchParams: S,
2535
+ searchParams: F,
2536
2536
  filterKey: c
2537
2537
  }) === "active" ? "Active" : "InActive",
2538
2538
  value: mt({
2539
2539
  get: "value",
2540
2540
  name: r,
2541
- searchParams: S,
2541
+ searchParams: F,
2542
2542
  filterKey: c
2543
2543
  })
2544
2544
  }
@@ -2558,7 +2558,7 @@ const qr = (t, r) => {
2558
2558
  ]
2559
2559
  }
2560
2560
  ),
2561
- o && /* @__PURE__ */ h(
2561
+ o && /* @__PURE__ */ u(
2562
2562
  f,
2563
2563
  {
2564
2564
  direction: "column",
@@ -2567,15 +2567,15 @@ const qr = (t, r) => {
2567
2567
  width: d && P ? d : P ? "310px" : ""
2568
2568
  },
2569
2569
  children: [
2570
- p && /* @__PURE__ */ h(xe.SubH3, { children: [
2570
+ p && /* @__PURE__ */ u(xe.SubH3, { children: [
2571
2571
  "Search for ",
2572
- F
2572
+ D
2573
2573
  ] }),
2574
2574
  /* @__PURE__ */ e(
2575
2575
  Ze,
2576
2576
  {
2577
2577
  placeholder: n,
2578
- leftIcon: /* @__PURE__ */ e(k, { name: "Search", width: 20, height: 20 }),
2578
+ leftIcon: /* @__PURE__ */ e(S, { name: "Search", width: 20, height: 20 }),
2579
2579
  onChange: (q) => Y(q.target.value),
2580
2580
  value: K,
2581
2581
  fullWidth: !0
@@ -2588,11 +2588,11 @@ const qr = (t, r) => {
2588
2588
  /* @__PURE__ */ e(
2589
2589
  wn,
2590
2590
  {
2591
- isOpen: w,
2591
+ isOpen: k,
2592
2592
  onClose: () => O(!1),
2593
2593
  filterKey: c,
2594
2594
  filters: g,
2595
- pageKey: u
2595
+ pageKey: h
2596
2596
  }
2597
2597
  )
2598
2598
  ]
@@ -2606,7 +2606,7 @@ function Fn({
2606
2606
  pageKey: l = "page",
2607
2607
  searchKey: i = "q"
2608
2608
  }) {
2609
- const { searchParams: o, setSearchParams: a, searchQueries: c } = We(), u = de(
2609
+ const { searchParams: o, setSearchParams: a, searchQueries: c } = We(), h = de(
2610
2610
  () => Object.fromEntries(t.map((C) => [C.key, C])),
2611
2611
  [t]
2612
2612
  ), d = de(() => {
@@ -2614,7 +2614,7 @@ function Fn({
2614
2614
  let L = [];
2615
2615
  try {
2616
2616
  const z = o.get(r);
2617
- z && (L = Object.keys(JSON.parse(z)).filter((S) => S !== i));
2617
+ z && (L = Object.keys(JSON.parse(z)).filter((F) => F !== i));
2618
2618
  } catch {
2619
2619
  }
2620
2620
  return t.map((z) => z.key).filter((z) => C.includes(z) || L.includes(z));
@@ -2642,8 +2642,8 @@ function Fn({
2642
2642
  (C) => {
2643
2643
  const L = { ...c }, z = d.filter((j) => j !== C);
2644
2644
  z.length ? L[n] = z.join(",") : delete L[n];
2645
- const S = m(L);
2646
- C in S && (delete S[C], Object.keys(S).length ? L[r] = JSON.stringify(S) : delete L[r]), delete L[l], a(L);
2645
+ const F = m(L);
2646
+ C in F && (delete F[C], Object.keys(F).length ? L[r] = JSON.stringify(F) : delete L[r]), delete L[l], a(L);
2647
2647
  },
2648
2648
  [
2649
2649
  c,
@@ -2654,7 +2654,7 @@ function Fn({
2654
2654
  m,
2655
2655
  a
2656
2656
  ]
2657
- ), F = G(
2657
+ ), D = G(
2658
2658
  (C) => d.includes(C) ? x(C) : y(C),
2659
2659
  [d, y, x]
2660
2660
  ), p = G(
@@ -2705,27 +2705,27 @@ function Fn({
2705
2705
  });
2706
2706
  },
2707
2707
  [c, a, r, l]
2708
- ), M = G(
2708
+ ), W = G(
2709
2709
  (C) => {
2710
2710
  const L = { ...c }, z = m(L);
2711
2711
  C in z && (delete z[C], Object.keys(z).length ? L[r] = JSON.stringify(z) : delete L[r]), delete L[l], a(L);
2712
2712
  },
2713
2713
  [c, r, l, m, a]
2714
- ), w = G(() => {
2714
+ ), k = G(() => {
2715
2715
  const C = { ...c };
2716
2716
  delete C[r], delete C[n], delete C[l], a(C);
2717
2717
  }, [c, r, n, l, a]), O = d.length > 0;
2718
2718
  return {
2719
2719
  activeKeys: d,
2720
- configByKey: u,
2720
+ configByKey: h,
2721
2721
  hasActiveFilter: O,
2722
2722
  addFilter: y,
2723
2723
  removeFilter: x,
2724
- toggleFilter: F,
2724
+ toggleFilter: D,
2725
2725
  getValue: p,
2726
2726
  setValue: E,
2727
- clearValue: M,
2728
- clearAll: w
2727
+ clearValue: W,
2728
+ clearAll: k
2729
2729
  };
2730
2730
  }
2731
2731
  const En = {
@@ -2754,60 +2754,60 @@ function Ln({
2754
2754
  onColumnsChange: l
2755
2755
  }) {
2756
2756
  const i = de(
2757
- () => ({ order: t.map((w) => w.key), hidden: [] }),
2757
+ () => ({ order: t.map((k) => k.key), hidden: [] }),
2758
2758
  [t]
2759
- ), o = r ? pr.columns(r) : void 0, [a, c] = W(() => {
2759
+ ), o = r ? pr.columns(r) : void 0, [a, c] = M(() => {
2760
2760
  if (o) {
2761
- const w = n.get(o);
2762
- if (w && Array.isArray(w.order)) return gt(w, t);
2761
+ const k = n.get(o);
2762
+ if (k && Array.isArray(k.order)) return gt(k, t);
2763
2763
  }
2764
2764
  return i;
2765
- }), u = t.map((w) => w.key).join("|");
2766
- Z(() => c((w) => gt(w, t)), [u]);
2765
+ }), h = t.map((k) => k.key).join("|");
2766
+ Z(() => c((k) => gt(k, t)), [h]);
2767
2767
  const d = oe(!1);
2768
2768
  Z(() => {
2769
2769
  d.current || (d.current = !0, l == null || l(a));
2770
2770
  }, []);
2771
2771
  const m = G(
2772
- (w) => {
2773
- c(w), o && n.set(o, w), l == null || l(w);
2772
+ (k) => {
2773
+ c(k), o && n.set(o, k), l == null || l(k);
2774
2774
  },
2775
2775
  [o, n, l]
2776
2776
  ), g = de(() => {
2777
- const w = new Map(t.map((O) => [O.key, O]));
2778
- return a.order.filter((O) => w.has(O)).map((O) => ({ ...w.get(O), visible: !a.hidden.includes(O) }));
2777
+ const k = new Map(t.map((O) => [O.key, O]));
2778
+ return a.order.filter((O) => k.has(O)).map((O) => ({ ...k.get(O), visible: !a.hidden.includes(O) }));
2779
2779
  }, [a, t]), y = G(
2780
- (w) => {
2781
- const O = a.hidden.includes(w) ? a.hidden.filter((C) => C !== w) : [...a.hidden, w];
2780
+ (k) => {
2781
+ const O = a.hidden.includes(k) ? a.hidden.filter((C) => C !== k) : [...a.hidden, k];
2782
2782
  m({ ...a, hidden: O });
2783
2783
  },
2784
2784
  [a, m]
2785
2785
  ), x = G(
2786
- (w, O) => {
2787
- if (w === O) return;
2788
- const C = [...a.order], [L] = C.splice(w, 1);
2786
+ (k, O) => {
2787
+ if (k === O) return;
2788
+ const C = [...a.order], [L] = C.splice(k, 1);
2789
2789
  C.splice(O, 0, L), m({ ...a, order: C });
2790
2790
  },
2791
2791
  [a, m]
2792
- ), F = G(
2793
- (w) => {
2792
+ ), D = G(
2793
+ (k) => {
2794
2794
  m({
2795
2795
  ...a,
2796
- hidden: w ? t.filter((O) => !O.locked).map((O) => O.key) : []
2796
+ hidden: k ? t.filter((O) => !O.locked).map((O) => O.key) : []
2797
2797
  });
2798
2798
  },
2799
2799
  [a, t, m]
2800
2800
  ), p = G(() => m(i), [m, i]), E = G(
2801
- (w) => m(gt(w, t)),
2801
+ (k) => m(gt(k, t)),
2802
2802
  [m, t]
2803
- ), M = a.hidden.length === 0;
2803
+ ), W = a.hidden.length === 0;
2804
2804
  return {
2805
2805
  state: a,
2806
2806
  orderedColumns: g,
2807
- allVisible: M,
2807
+ allVisible: W,
2808
2808
  toggleVisibility: y,
2809
2809
  reorder: x,
2810
- setAllHidden: F,
2810
+ setAllHidden: D,
2811
2811
  reset: p,
2812
2812
  applyState: E
2813
2813
  };
@@ -2820,49 +2820,49 @@ function Mn({
2820
2820
  getColumns: i,
2821
2821
  applyColumns: o
2822
2822
  }) {
2823
- const { searchParams: a, setSearchParams: c } = We(), u = t ? pr.savedViews(t) : void 0, [d, m] = W(
2824
- () => u ? r.get(u) || [] : []
2823
+ const { searchParams: a, setSearchParams: c } = We(), h = t ? pr.savedViews(t) : void 0, [d, m] = M(
2824
+ () => h ? r.get(h) || [] : []
2825
2825
  ), g = G(
2826
2826
  (p) => {
2827
- m(p), u && r.set(u, p);
2827
+ m(p), h && r.set(h, p);
2828
2828
  },
2829
- [u]
2829
+ [h]
2830
2830
  // storage identity is stable (module singleton / caller-provided)
2831
2831
  ), y = G(
2832
2832
  (p) => {
2833
2833
  const E = p.trim();
2834
2834
  if (!E) return;
2835
- const M = {};
2835
+ const W = {};
2836
2836
  n.forEach((O) => {
2837
2837
  const C = a.get(O);
2838
- C != null && (M[O] = C);
2838
+ C != null && (W[O] = C);
2839
2839
  });
2840
- const w = {
2840
+ const k = {
2841
2841
  id: `${Date.now()}`,
2842
2842
  name: E,
2843
- query: M,
2843
+ query: W,
2844
2844
  columns: i == null ? void 0 : i(),
2845
2845
  createdAt: Date.now()
2846
2846
  };
2847
- g([...d, w]);
2847
+ g([...d, k]);
2848
2848
  },
2849
2849
  [n, a, i, g, d]
2850
2850
  ), x = G(
2851
2851
  (p) => g(d.filter((E) => E.id !== p)),
2852
2852
  [g, d]
2853
- ), F = G(
2853
+ ), D = G(
2854
2854
  (p) => {
2855
2855
  const E = Object.fromEntries(a.entries());
2856
- n.forEach((M) => delete E[M]), Object.assign(E, p.query), delete E[l], c(E), p.columns && (o == null || o(p.columns));
2856
+ n.forEach((W) => delete E[W]), Object.assign(E, p.query), delete E[l], c(E), p.columns && (o == null || o(p.columns));
2857
2857
  },
2858
2858
  [a, n, l, c, o]
2859
2859
  );
2860
2860
  return {
2861
- enabled: !!u,
2861
+ enabled: !!h,
2862
2862
  views: d,
2863
2863
  saveView: y,
2864
2864
  deleteView: x,
2865
- applyView: F
2865
+ applyView: D
2866
2866
  };
2867
2867
  }
2868
2868
  const Wn = ({
@@ -2870,19 +2870,19 @@ const Wn = ({
2870
2870
  activeKeys: r,
2871
2871
  onToggle: n,
2872
2872
  hasActiveFilter: l
2873
- }) => t.length ? /* @__PURE__ */ h(Ee, { position: "bottom-left", children: [
2873
+ }) => t.length ? /* @__PURE__ */ u(Ee, { position: "bottom-left", children: [
2874
2874
  /* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
2875
2875
  H,
2876
2876
  {
2877
2877
  variant: l ? "secondary" : "outline",
2878
2878
  tone: "neutral",
2879
2879
  size: "sm",
2880
- iconLeft: /* @__PURE__ */ e(k, { name: "FilterHorizontal" }),
2880
+ iconLeft: /* @__PURE__ */ e(S, { name: "FilterHorizontal" }),
2881
2881
  "aria-label": "Add filter"
2882
2882
  }
2883
2883
  ) }),
2884
2884
  /* @__PURE__ */ e(Le, { children: /* @__PURE__ */ e(Me, { title: "Add Filter", children: t.map((i) => /* @__PURE__ */ e(
2885
- $e,
2885
+ Ie,
2886
2886
  {
2887
2887
  selected: r.includes(i.key),
2888
2888
  closeOnSelect: !1,
@@ -2918,35 +2918,45 @@ const Wn = ({
2918
2918
  onChange: n,
2919
2919
  onRemove: l
2920
2920
  }) => {
2921
- const i = t.type === "dropdown-multiple" || t.type === "person", o = r.length, a = t.options.map((u) => ({
2922
- label: u.label,
2923
- value: u.value,
2924
- ..."description" in u && u.description ? { description: u.description } : {}
2925
- })), c = o === 0 ? t.label : /* @__PURE__ */ h(ee, { children: [
2926
- /* @__PURE__ */ h("span", { style: { fontWeight: 500 }, children: [
2921
+ const i = t.type === "dropdown-multiple" || t.type === "person", o = r.length, [a, c] = M(""), h = t.options, d = (() => {
2922
+ const D = a.trim().toLowerCase();
2923
+ return D ? h.filter((p) => p.label.toLowerCase().includes(D)) : h;
2924
+ })(), m = (D) => r.some((p) => p.value === D.value), g = (D) => {
2925
+ if (!i) {
2926
+ n([{ label: D.label, value: D.value }]), c("");
2927
+ return;
2928
+ }
2929
+ n(
2930
+ m(D) ? r.filter((p) => p.value !== D.value) : [...r, { label: D.label, value: D.value }]
2931
+ );
2932
+ }, y = (D) => {
2933
+ var p;
2934
+ c(D), (p = t.onSearch) == null || p.call(t, D);
2935
+ }, x = o === 0 ? t.label : /* @__PURE__ */ u(ee, { children: [
2936
+ /* @__PURE__ */ u("span", { style: { fontWeight: 500 }, children: [
2927
2937
  t.label,
2928
2938
  ":"
2929
2939
  ] }),
2930
2940
  " ",
2931
2941
  /* @__PURE__ */ e("span", { style: { fontWeight: 400 }, children: o === 1 ? zn(r[0].label) : `${o} Selected` })
2932
2942
  ] });
2933
- return /* @__PURE__ */ h(Ee, { position: "bottom-left", children: [
2943
+ return /* @__PURE__ */ u(Ee, { position: "bottom-left", children: [
2934
2944
  /* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
2935
2945
  H,
2936
2946
  {
2937
2947
  variant: o > 0 ? "secondary" : "outline",
2938
2948
  tone: "neutral",
2939
2949
  size: "sm",
2940
- iconLeft: o > 0 ? /* @__PURE__ */ e(k, { name: "Tag", size: "sm" }) : void 0,
2941
- iconRight: /* @__PURE__ */ e(k, { name: "ChevronSmallDown" }),
2942
- children: c
2950
+ iconLeft: o > 0 ? /* @__PURE__ */ e(S, { name: "Tag", size: "sm" }) : void 0,
2951
+ iconRight: /* @__PURE__ */ e(S, { name: "ChevronSmallDown" }),
2952
+ children: x
2943
2953
  }
2944
2954
  ) }),
2945
2955
  /* @__PURE__ */ e(Le, { children: /* @__PURE__ */ e(
2946
2956
  Me,
2947
2957
  {
2948
2958
  style: { width: 260 },
2949
- title: /* @__PURE__ */ h(
2959
+ title: /* @__PURE__ */ u(
2950
2960
  f,
2951
2961
  {
2952
2962
  display: "flex",
@@ -2962,7 +2972,7 @@ const Wn = ({
2962
2972
  variant: "link",
2963
2973
  tone: "error",
2964
2974
  size: "xs",
2965
- iconLeft: /* @__PURE__ */ e(k, { name: "Trash1" }),
2975
+ iconLeft: /* @__PURE__ */ e(S, { name: "Trash1" }),
2966
2976
  "aria-label": "Remove filter",
2967
2977
  onClick: l
2968
2978
  }
@@ -2970,22 +2980,45 @@ const Wn = ({
2970
2980
  ]
2971
2981
  }
2972
2982
  ),
2973
- children: /* @__PURE__ */ e(
2974
- nt,
2975
- {
2976
- size: "sm",
2977
- triggerInput: !0,
2978
- fullWidth: !0,
2979
- multiSelect: i,
2980
- searchAble: t.searchable,
2981
- onSearch: t.onSearch,
2982
- dropdownLists: a,
2983
- value: r,
2984
- defaultValue: r,
2985
- onChange: n,
2986
- placeholder: `Search ${t.label.toLowerCase()}…`
2987
- }
2988
- )
2983
+ children: /* @__PURE__ */ u(f, { direction: "column", gap: "sm", children: [
2984
+ /* @__PURE__ */ e(
2985
+ nt,
2986
+ {
2987
+ size: "sm",
2988
+ triggerInput: !0,
2989
+ fullWidth: !0,
2990
+ hideChevronIcon: !0,
2991
+ multiSelect: i,
2992
+ searchAble: !0,
2993
+ searchValue: a,
2994
+ onSearch: y,
2995
+ value: r,
2996
+ onChange: n,
2997
+ placeholder: `Search ${t.label.toLowerCase()}…`
2998
+ }
2999
+ ),
3000
+ /* @__PURE__ */ e(
3001
+ f,
3002
+ {
3003
+ direction: "column",
3004
+ overflow: "overflow-y-auto",
3005
+ customMaxHeight: "240px",
3006
+ children: d.length === 0 ? /* @__PURE__ */ e(f, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(v, { fontSize: "xs", color: "subtlest", children: "No results" }) }) : d.map((D) => /* @__PURE__ */ e(
3007
+ Ie,
3008
+ {
3009
+ closeOnSelect: !i,
3010
+ selected: m(D),
3011
+ startIcon: D.avatar,
3012
+ endIcon: m(D) ? /* @__PURE__ */ e(S, { name: "Check" }) : void 0,
3013
+ description: D.description,
3014
+ onClick: () => g(D),
3015
+ children: D.label
3016
+ },
3017
+ D.value
3018
+ ))
3019
+ }
3020
+ )
3021
+ ] })
2989
3022
  }
2990
3023
  ) })
2991
3024
  ] });
@@ -3005,7 +3038,7 @@ const Wn = ({
3005
3038
  onChange: n,
3006
3039
  onRemove: l
3007
3040
  }) => {
3008
- const i = new Set(r.map((g) => g.value)), o = r.length, a = t.options.length > 0 && t.options.every((g) => i.has(g.value)), c = o > 0 && !a, u = (g) => {
3041
+ const i = new Set(r.map((g) => g.value)), o = r.length, a = t.options.length > 0 && t.options.every((g) => i.has(g.value)), c = o > 0 && !a, h = (g) => {
3009
3042
  n(
3010
3043
  i.has(g.value) ? r.filter((y) => y.value !== g.value) : [...r, { label: g.label, value: g.value }]
3011
3044
  );
@@ -3013,31 +3046,31 @@ const Wn = ({
3013
3046
  n(
3014
3047
  a ? [] : t.options.map((g) => ({ label: g.label, value: g.value }))
3015
3048
  );
3016
- }, m = o === 0 ? t.label : /* @__PURE__ */ h(ee, { children: [
3017
- /* @__PURE__ */ h(v, { as: "span", fontWeight: "semibold", children: [
3049
+ }, m = o === 0 ? t.label : /* @__PURE__ */ u(ee, { children: [
3050
+ /* @__PURE__ */ u(v, { as: "span", fontWeight: "semibold", children: [
3018
3051
  t.label,
3019
3052
  ":"
3020
3053
  ] }),
3021
3054
  " ",
3022
3055
  /* @__PURE__ */ e(v, { as: "span", children: o === 1 ? In(r[0].label) : `${o} Selected` })
3023
3056
  ] });
3024
- return /* @__PURE__ */ h(Ee, { position: "bottom-left", children: [
3057
+ return /* @__PURE__ */ u(Ee, { position: "bottom-left", children: [
3025
3058
  /* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
3026
3059
  H,
3027
3060
  {
3028
3061
  variant: o > 0 ? "secondary" : "outline",
3029
3062
  tone: "neutral",
3030
3063
  size: "sm",
3031
- iconLeft: o > 0 ? /* @__PURE__ */ e(k, { name: "Tag", size: "sm" }) : void 0,
3032
- iconRight: /* @__PURE__ */ e(k, { name: "ChevronSmallDown" }),
3064
+ iconLeft: o > 0 ? /* @__PURE__ */ e(S, { name: "Tag", size: "sm" }) : void 0,
3065
+ iconRight: /* @__PURE__ */ e(S, { name: "ChevronSmallDown" }),
3033
3066
  children: m
3034
3067
  }
3035
3068
  ) }),
3036
- /* @__PURE__ */ e(Le, { children: /* @__PURE__ */ h(
3069
+ /* @__PURE__ */ e(Le, { children: /* @__PURE__ */ u(
3037
3070
  Me,
3038
3071
  {
3039
3072
  style: { width: 240 },
3040
- title: /* @__PURE__ */ h(
3073
+ title: /* @__PURE__ */ u(
3041
3074
  f,
3042
3075
  {
3043
3076
  display: "flex",
@@ -3053,7 +3086,7 @@ const Wn = ({
3053
3086
  variant: "link",
3054
3087
  tone: "error",
3055
3088
  size: "xs",
3056
- iconLeft: /* @__PURE__ */ e(k, { name: "Trash1" }),
3089
+ iconLeft: /* @__PURE__ */ e(S, { name: "Trash1" }),
3057
3090
  "aria-label": "Remove filter",
3058
3091
  onClick: l
3059
3092
  }
@@ -3063,7 +3096,7 @@ const Wn = ({
3063
3096
  ),
3064
3097
  children: [
3065
3098
  /* @__PURE__ */ e(
3066
- $e,
3099
+ Ie,
3067
3100
  {
3068
3101
  closeOnSelect: !1,
3069
3102
  selected: a,
@@ -3079,11 +3112,11 @@ const Wn = ({
3079
3112
  }
3080
3113
  ),
3081
3114
  t.options.map((g) => /* @__PURE__ */ e(
3082
- $e,
3115
+ Ie,
3083
3116
  {
3084
3117
  closeOnSelect: !1,
3085
3118
  selected: i.has(g.value),
3086
- onClick: () => u(g),
3119
+ onClick: () => h(g),
3087
3120
  startIcon: /* @__PURE__ */ e(Yt, { checked: i.has(g.value) }),
3088
3121
  children: g.label
3089
3122
  },
@@ -3103,8 +3136,8 @@ const Wn = ({
3103
3136
  }) => /* @__PURE__ */ e(ee, { children: t.map((a) => {
3104
3137
  const c = r[a];
3105
3138
  if (!c) return null;
3106
- const u = n(c), d = !c.locked && (c.type === "date" || c.type === "date-range");
3107
- return /* @__PURE__ */ h(
3139
+ const h = n(c), d = !c.locked && (c.type === "date" || c.type === "date-range");
3140
+ return /* @__PURE__ */ u(
3108
3141
  f,
3109
3142
  {
3110
3143
  direction: "row",
@@ -3116,7 +3149,7 @@ const Wn = ({
3116
3149
  Bn,
3117
3150
  {
3118
3151
  field: c,
3119
- value: u,
3152
+ value: h,
3120
3153
  onChange: (m) => l(c, m),
3121
3154
  onClear: () => i(a)
3122
3155
  }
@@ -3124,7 +3157,7 @@ const Wn = ({
3124
3157
  Rn,
3125
3158
  {
3126
3159
  field: c,
3127
- value: u || [],
3160
+ value: h || [],
3128
3161
  onChange: (m) => l(c, m),
3129
3162
  onRemove: () => o(a)
3130
3163
  }
@@ -3132,7 +3165,7 @@ const Wn = ({
3132
3165
  An,
3133
3166
  {
3134
3167
  field: c,
3135
- value: u || [],
3168
+ value: h || [],
3136
3169
  onChange: (m) => l(c, m),
3137
3170
  onRemove: () => o(a)
3138
3171
  }
@@ -3143,7 +3176,7 @@ const Wn = ({
3143
3176
  variant: "link",
3144
3177
  tone: "neutral",
3145
3178
  size: "xs",
3146
- iconLeft: /* @__PURE__ */ e(k, { name: "CrossSmall" }),
3179
+ iconLeft: /* @__PURE__ */ e(S, { name: "CrossSmall" }),
3147
3180
  "aria-label": `Remove ${c.label} filter`,
3148
3181
  onClick: () => o(a)
3149
3182
  }
@@ -3162,39 +3195,39 @@ const Wn = ({
3162
3195
  showPageSize: a = !0,
3163
3196
  showPagination: c = !0
3164
3197
  }) => {
3165
- var M;
3166
- const { searchQueries: u, setSearchParams: d, searchParams: m } = We(), g = m.get(n), y = g ? Number(g) : i, x = (w) => {
3167
- d({ ...u, [r]: String(w) });
3168
- }, F = (w) => {
3198
+ var W;
3199
+ const { searchQueries: h, setSearchParams: d, searchParams: m } = We(), g = m.get(n), y = g ? Number(g) : i, x = (k) => {
3200
+ d({ ...h, [r]: String(k) });
3201
+ }, D = (k) => {
3169
3202
  d({
3170
- ...u,
3171
- [n]: w,
3203
+ ...h,
3204
+ [n]: k,
3172
3205
  [r]: "1"
3173
3206
  // reset to first page when page size changes
3174
3207
  });
3175
3208
  }, p = (t == null ? void 0 : t.rangeStart) ?? (((t == null ? void 0 : t.currentPage) || 0) > 1 ? (((t == null ? void 0 : t.currentPage) || 0) - 1) * ((t == null ? void 0 : t.perPage) || 0) + 1 : 1), E = (t == null ? void 0 : t.rangeEnd) ?? ((t == null ? void 0 : t.totalCurrentPage) !== (t == null ? void 0 : t.perPage) ? t == null ? void 0 : t.totalData : ((t == null ? void 0 : t.currentPage) || 1) * ((t == null ? void 0 : t.totalCurrentPage) || 0));
3176
- return /* @__PURE__ */ h(ee, { children: [
3177
- o && /* @__PURE__ */ e(v, { fontSize: "sm", fontWeight: "medium", color: "primary", truncate: !0, children: `${p}-${E} of ${((M = t == null ? void 0 : t.totalData) == null ? void 0 : M.toLocaleString()) || 0}` }),
3178
- a && /* @__PURE__ */ h(Ee, { position: "bottom-left", children: [
3209
+ return /* @__PURE__ */ u(ee, { children: [
3210
+ o && /* @__PURE__ */ e(v, { fontSize: "sm", fontWeight: "medium", color: "primary", truncate: !0, children: `${p}-${E} of ${((W = t == null ? void 0 : t.totalData) == null ? void 0 : W.toLocaleString()) || 0}` }),
3211
+ a && /* @__PURE__ */ u(Ee, { position: "bottom-left", children: [
3179
3212
  /* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
3180
3213
  H,
3181
3214
  {
3182
3215
  variant: "outline",
3183
3216
  tone: "neutral",
3184
3217
  size: "xs",
3185
- iconRight: /* @__PURE__ */ e(k, { name: "ChevronSmallDown" }),
3218
+ iconRight: /* @__PURE__ */ e(S, { name: "ChevronSmallDown" }),
3186
3219
  "aria-label": "Rows per page",
3187
3220
  children: Xt(y)
3188
3221
  }
3189
3222
  ) }),
3190
- /* @__PURE__ */ e(Le, { children: /* @__PURE__ */ e(Me, { children: l.map((w) => /* @__PURE__ */ e(
3191
- $e,
3223
+ /* @__PURE__ */ e(Le, { children: /* @__PURE__ */ e(Me, { children: l.map((k) => /* @__PURE__ */ e(
3224
+ Ie,
3192
3225
  {
3193
- selected: w === y,
3194
- onClick: () => F(String(w)),
3195
- children: Xt(w)
3226
+ selected: k === y,
3227
+ onClick: () => D(String(k)),
3228
+ children: Xt(k)
3196
3229
  },
3197
- w
3230
+ k
3198
3231
  )) }) })
3199
3232
  ] }),
3200
3233
  c && !!(t != null && t.totalPage) && /* @__PURE__ */ e(
@@ -3242,13 +3275,13 @@ const On = 240, Nn = ({
3242
3275
  placeholder: l = "Search",
3243
3276
  shortcut: i = "/"
3244
3277
  }) => {
3245
- const { searchParams: o, setSearchParams: a, searchQueries: c } = We(), u = yr(t, o, r) || "", [d, m] = W(!!u), [g, y] = W(!u), [x, F] = W(u), p = Dr(x, 350), E = oe(null);
3278
+ const { searchParams: o, setSearchParams: a, searchQueries: c } = We(), h = yr(t, o, r) || "", [d, m] = M(!!h), [g, y] = M(!h), [x, D] = M(h), p = Dr(x, 350), E = oe(null);
3246
3279
  Z(() => {
3247
- F(u), u && m(!0);
3248
- }, [u]), Z(() => {
3280
+ D(h), h && m(!0);
3281
+ }, [h]), Z(() => {
3249
3282
  d && y(!1);
3250
3283
  }, [d]), Z(() => {
3251
- p !== u && rt({
3284
+ p !== h && rt({
3252
3285
  value: p,
3253
3286
  name: t,
3254
3287
  type: "search",
@@ -3258,28 +3291,28 @@ const On = 240, Nn = ({
3258
3291
  pageKey: n
3259
3292
  });
3260
3293
  }, [p]);
3261
- const M = G(() => {
3294
+ const W = G(() => {
3262
3295
  m(!0), requestAnimationFrame(() => {
3263
3296
  var L;
3264
3297
  return (L = E.current) == null ? void 0 : L.focus();
3265
3298
  });
3266
3299
  }, []);
3267
- return Tn(i, M), // No internal gap: the trigger and the animated input are never visible at
3300
+ return Tn(i, W), // No internal gap: the trigger and the animated input are never visible at
3268
3301
  // the same time, so spacing to neighbours is handled by the parent cluster.
3269
- /* @__PURE__ */ h(f, { display: "flex", direction: "row", align: "center", gap: "spacing-0", children: [
3302
+ /* @__PURE__ */ u(f, { display: "flex", direction: "row", align: "center", gap: "spacing-0", children: [
3270
3303
  g && /* @__PURE__ */ e(
3271
3304
  H,
3272
3305
  {
3273
3306
  variant: "outline",
3274
3307
  tone: "neutral",
3275
3308
  size: "sm",
3276
- iconLeft: /* @__PURE__ */ e(k, { name: "Search", size: "sm" }),
3309
+ iconLeft: /* @__PURE__ */ e(S, { name: "Search", size: "sm" }),
3277
3310
  "aria-label": "Search",
3278
3311
  "aria-expanded": !1,
3279
- onClick: M
3312
+ onClick: W
3280
3313
  }
3281
3314
  ),
3282
- /* @__PURE__ */ h(
3315
+ /* @__PURE__ */ u(
3283
3316
  f,
3284
3317
  {
3285
3318
  onTransitionEnd: () => {
@@ -3300,8 +3333,8 @@ const On = 240, Nn = ({
3300
3333
  fullWidth: !0,
3301
3334
  value: x,
3302
3335
  placeholder: l,
3303
- leftIcon: /* @__PURE__ */ e(k, { name: "Search", width: 16, height: 16 }),
3304
- onChange: (L) => F(L.target.value),
3336
+ leftIcon: /* @__PURE__ */ e(S, { name: "Search", width: 16, height: 16 }),
3337
+ onChange: (L) => D(L.target.value),
3305
3338
  onKeyDown: (L) => {
3306
3339
  var z;
3307
3340
  L.key === "Escape" && !x && (m(!1), (z = E.current) == null || z.blur());
@@ -3347,24 +3380,24 @@ const On = 240, Nn = ({
3347
3380
  onReorder: l,
3348
3381
  onSetAllHidden: i
3349
3382
  }) => {
3350
- const [o, a] = W(null), [c, u] = W(null), d = () => {
3351
- o !== null && c !== null && o !== c && l(o, c), a(null), u(null);
3383
+ const [o, a] = M(null), [c, h] = M(null), d = () => {
3384
+ o !== null && c !== null && o !== c && l(o, c), a(null), h(null);
3352
3385
  }, m = (g, y) => {
3353
3386
  const x = g + y;
3354
3387
  x < 0 || x >= t.length || l(g, x);
3355
3388
  };
3356
- return /* @__PURE__ */ h(Ee, { position: "bottom-right", children: [
3389
+ return /* @__PURE__ */ u(Ee, { position: "bottom-right", children: [
3357
3390
  /* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
3358
3391
  H,
3359
3392
  {
3360
3393
  variant: r ? "outline" : "secondary",
3361
3394
  tone: "neutral",
3362
3395
  size: "sm",
3363
- iconLeft: /* @__PURE__ */ e(k, { name: "Grid", size: "sm" }),
3396
+ iconLeft: /* @__PURE__ */ e(S, { name: "Grid", size: "sm" }),
3364
3397
  "aria-label": "Customize columns"
3365
3398
  }
3366
3399
  ) }),
3367
- /* @__PURE__ */ e(Le, { children: /* @__PURE__ */ e(Me, { children: /* @__PURE__ */ h(
3400
+ /* @__PURE__ */ e(Le, { children: /* @__PURE__ */ e(Me, { children: /* @__PURE__ */ u(
3368
3401
  f,
3369
3402
  {
3370
3403
  padding: "sm",
@@ -3374,7 +3407,7 @@ const On = 240, Nn = ({
3374
3407
  overflow: "overflow-hidden",
3375
3408
  children: [
3376
3409
  /* @__PURE__ */ e(v, { fontWeight: "semibold", color: "primary", children: "Customize Column Table" }),
3377
- /* @__PURE__ */ h(
3410
+ /* @__PURE__ */ u(
3378
3411
  f,
3379
3412
  {
3380
3413
  direction: "row",
@@ -3399,7 +3432,7 @@ const On = 240, Nn = ({
3399
3432
  ),
3400
3433
  /* @__PURE__ */ e(f, { direction: "column", overflow: "overflow-y-auto", children: t.map((g, y) => {
3401
3434
  const x = !g.locked;
3402
- return /* @__PURE__ */ h(
3435
+ return /* @__PURE__ */ u(
3403
3436
  f,
3404
3437
  {
3405
3438
  direction: "row",
@@ -3410,7 +3443,7 @@ const On = 240, Nn = ({
3410
3443
  draggable: x,
3411
3444
  onDragStart: () => x && a(y),
3412
3445
  onDragOver: (p) => {
3413
- p.preventDefault(), u(y);
3446
+ p.preventDefault(), h(y);
3414
3447
  },
3415
3448
  onDrop: d,
3416
3449
  onDragEnd: d,
@@ -3439,7 +3472,7 @@ const On = 240, Nn = ({
3439
3472
  cursor: x ? "grab" : "default",
3440
3473
  opacity: x ? 1 : 0.4
3441
3474
  },
3442
- children: /* @__PURE__ */ e(k, { name: "DragVertical", width: 16, height: 16 })
3475
+ children: /* @__PURE__ */ e(S, { name: "DragVertical", width: 16, height: 16 })
3443
3476
  }
3444
3477
  ),
3445
3478
  g.icon && /* @__PURE__ */ e(f, { direction: "column", align: "center", color: "icon-subtle", style: { display: "inline-flex" }, children: g.icon }),
@@ -3478,29 +3511,29 @@ const On = 240, Nn = ({
3478
3511
  onDelete: n,
3479
3512
  onSave: l
3480
3513
  }) => {
3481
- const [i, o] = W(""), a = () => {
3514
+ const [i, o] = M(""), a = () => {
3482
3515
  const c = i.trim();
3483
3516
  c && (l(c), o(""));
3484
3517
  };
3485
- return /* @__PURE__ */ h(Ee, { position: "bottom-right", children: [
3518
+ return /* @__PURE__ */ u(Ee, { position: "bottom-right", children: [
3486
3519
  /* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
3487
3520
  H,
3488
3521
  {
3489
3522
  variant: t.length > 0 ? "secondary" : "outline",
3490
3523
  tone: (t.length > 0, "neutral"),
3491
3524
  size: "sm",
3492
- iconLeft: /* @__PURE__ */ e(k, { name: "Bookmark", size: "sm" }),
3525
+ iconLeft: /* @__PURE__ */ e(S, { name: "Bookmark", size: "sm" }),
3493
3526
  "aria-label": "Saved views"
3494
3527
  }
3495
3528
  ) }),
3496
- /* @__PURE__ */ h(
3529
+ /* @__PURE__ */ u(
3497
3530
  Le,
3498
3531
  {
3499
3532
  style: {
3500
3533
  width: "260px"
3501
3534
  },
3502
3535
  children: [
3503
- /* @__PURE__ */ e(Me, { children: /* @__PURE__ */ h(f, { direction: "column", padding: "xs", gap: "sm", children: [
3536
+ /* @__PURE__ */ e(Me, { children: /* @__PURE__ */ u(f, { direction: "column", padding: "xs", gap: "sm", children: [
3504
3537
  /* @__PURE__ */ e(v, { fontWeight: "semibold", color: "primary", children: "Saved Views" }),
3505
3538
  /* @__PURE__ */ e(
3506
3539
  f,
@@ -3508,9 +3541,9 @@ const On = 240, Nn = ({
3508
3541
  direction: "column",
3509
3542
  overflow: "overflow-y-auto",
3510
3543
  children: t.length === 0 ? /* @__PURE__ */ e(f, { direction: "column", paddingBlock: "sm", children: /* @__PURE__ */ e(v, { fontSize: "sm", color: "subtlest", children: "No saved views yet" }) }) : t.map((c) => /* @__PURE__ */ e(
3511
- $e,
3544
+ Ie,
3512
3545
  {
3513
- startIcon: /* @__PURE__ */ e(k, { name: "Bookmark" }),
3546
+ startIcon: /* @__PURE__ */ e(S, { name: "Bookmark" }),
3514
3547
  onClick: () => r(c),
3515
3548
  endIcon: /* @__PURE__ */ e(
3516
3549
  H,
@@ -3518,10 +3551,10 @@ const On = 240, Nn = ({
3518
3551
  variant: "link",
3519
3552
  tone: "error",
3520
3553
  size: "sm",
3521
- iconLeft: /* @__PURE__ */ e(k, { name: "Trash2" }),
3554
+ iconLeft: /* @__PURE__ */ e(S, { name: "Trash2" }),
3522
3555
  "aria-label": `Delete ${c.name}`,
3523
- onClick: (u) => {
3524
- u.stopPropagation(), n(c.id);
3556
+ onClick: (h) => {
3557
+ h.stopPropagation(), n(c.id);
3525
3558
  }
3526
3559
  }
3527
3560
  ),
@@ -3535,7 +3568,7 @@ const On = 240, Nn = ({
3535
3568
  /* @__PURE__ */ e(
3536
3569
  ir,
3537
3570
  {
3538
- children: /* @__PURE__ */ h(f, { direction: "row", gap: "xs", children: [
3571
+ children: /* @__PURE__ */ u(f, { direction: "row", gap: "xs", children: [
3539
3572
  /* @__PURE__ */ e(f, { direction: "column", style: { flex: "1 0 0", minWidth: 0 }, children: /* @__PURE__ */ e(
3540
3573
  Ze,
3541
3574
  {
@@ -3576,24 +3609,24 @@ const On = 240, Nn = ({
3576
3609
  perPageKey: o = "perPage",
3577
3610
  pageSizeOptions: a = [10, 25, 50, 100],
3578
3611
  showPagination: c = !0,
3579
- showResultCount: u = !0,
3612
+ showResultCount: h = !0,
3580
3613
  showPageSize: d = !0,
3581
3614
  searchable: m = !1,
3582
3615
  searchKey: g = "q",
3583
3616
  searchPlaceholder: y = "Search",
3584
3617
  searchShortcut: x = "/",
3585
- pagination: F,
3618
+ pagination: D,
3586
3619
  columns: p = [],
3587
3620
  onColumnsChange: E,
3588
- savedViews: M,
3589
- storage: w = En,
3621
+ savedViews: W,
3622
+ storage: k = En,
3590
3623
  onReset: O
3591
3624
  }) => {
3592
3625
  const {
3593
3626
  activeKeys: C,
3594
3627
  configByKey: L,
3595
3628
  hasActiveFilter: z,
3596
- toggleFilter: S,
3629
+ toggleFilter: F,
3597
3630
  removeFilter: j,
3598
3631
  getValue: te,
3599
3632
  setValue: X,
@@ -3607,18 +3640,18 @@ const On = 240, Nn = ({
3607
3640
  searchKey: g
3608
3641
  }), Y = Ln({
3609
3642
  columns: p,
3610
- scopeId: M == null ? void 0 : M.scopeId,
3611
- storage: w,
3643
+ scopeId: W == null ? void 0 : W.scopeId,
3644
+ storage: k,
3612
3645
  onColumnsChange: E
3613
3646
  }), re = Mn({
3614
- scopeId: M == null ? void 0 : M.scopeId,
3615
- storage: w,
3647
+ scopeId: W == null ? void 0 : W.scopeId,
3648
+ storage: k,
3616
3649
  snapshotKeys: [l, n, o],
3617
3650
  pageKey: i,
3618
3651
  getColumns: () => Y.state,
3619
3652
  applyColumns: Y.applyState
3620
- }), ne = !!(M != null && M.enabled) && re.enabled;
3621
- return /* @__PURE__ */ h(
3653
+ }), ne = !!(W != null && W.enabled) && re.enabled;
3654
+ return /* @__PURE__ */ u(
3622
3655
  f,
3623
3656
  {
3624
3657
  display: "flex",
@@ -3634,7 +3667,7 @@ const On = 240, Nn = ({
3634
3667
  role: "toolbar",
3635
3668
  "aria-label": "Filter bar",
3636
3669
  children: [
3637
- /* @__PURE__ */ h(
3670
+ /* @__PURE__ */ u(
3638
3671
  f,
3639
3672
  {
3640
3673
  direction: "row",
@@ -3649,7 +3682,7 @@ const On = 240, Nn = ({
3649
3682
  {
3650
3683
  configs: r,
3651
3684
  activeKeys: C,
3652
- onToggle: S,
3685
+ onToggle: F,
3653
3686
  hasActiveFilter: z
3654
3687
  }
3655
3688
  ),
@@ -3670,16 +3703,16 @@ const On = 240, Nn = ({
3670
3703
  ]
3671
3704
  }
3672
3705
  ),
3673
- /* @__PURE__ */ h(f, { direction: "row", display: "flex", align: "center", gap: "sm", children: [
3706
+ /* @__PURE__ */ u(f, { direction: "row", display: "flex", align: "center", gap: "sm", children: [
3674
3707
  /* @__PURE__ */ e(
3675
3708
  Vn,
3676
3709
  {
3677
- pagination: F,
3710
+ pagination: D,
3678
3711
  pageKey: i,
3679
3712
  perPageKey: o,
3680
3713
  pageSizeOptions: a,
3681
3714
  showPagination: c,
3682
- showResultCount: u,
3715
+ showResultCount: h,
3683
3716
  showPageSize: d
3684
3717
  }
3685
3718
  ),
@@ -3717,7 +3750,7 @@ const On = 240, Nn = ({
3717
3750
  }
3718
3751
  );
3719
3752
  }, $n = ({ children: t, borderRadius: r, height: n }) => {
3720
- const l = oe(null), [i, o] = W("100vh");
3753
+ const l = oe(null), [i, o] = M("100vh");
3721
3754
  return Z(() => {
3722
3755
  if (n) return;
3723
3756
  const a = () => {
@@ -3772,12 +3805,12 @@ const On = 240, Nn = ({
3772
3805
  flexDirection: a ? "row" : "column-reverse",
3773
3806
  gap: "16px"
3774
3807
  },
3775
- children: l ? l({ filter: c }) : /* @__PURE__ */ h(ee, { children: [
3776
- /* @__PURE__ */ h(f, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flex: 1, minWidth: 0 }, children: [
3808
+ children: l ? l({ filter: c }) : /* @__PURE__ */ u(ee, { children: [
3809
+ /* @__PURE__ */ u(f, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flex: 1, minWidth: 0 }, children: [
3777
3810
  c,
3778
3811
  n
3779
3812
  ] }),
3780
- /* @__PURE__ */ h(f, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flexShrink: 0 }, children: [
3813
+ /* @__PURE__ */ u(f, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flexShrink: 0 }, children: [
3781
3814
  r,
3782
3815
  t ? Ct(t) ? t : /* @__PURE__ */ e(
3783
3816
  f,
@@ -3794,7 +3827,7 @@ const On = 240, Nn = ({
3794
3827
  H,
3795
3828
  {
3796
3829
  fullWidth: !a,
3797
- iconLeft: m ? /* @__PURE__ */ e(k, { name: m }) : void 0,
3830
+ iconLeft: m ? /* @__PURE__ */ e(S, { name: m }) : void 0,
3798
3831
  onClick: y,
3799
3832
  ...g,
3800
3833
  children: d
@@ -3812,7 +3845,7 @@ const On = 240, Nn = ({
3812
3845
  totalData: t,
3813
3846
  withMarginBottom: r = !0,
3814
3847
  withMarginTop: n = !0
3815
- }) => /* @__PURE__ */ h(
3848
+ }) => /* @__PURE__ */ u(
3816
3849
  f,
3817
3850
  {
3818
3851
  style: {
@@ -3824,7 +3857,7 @@ const On = 240, Nn = ({
3824
3857
  marginTop: n ? "16px" : void 0
3825
3858
  },
3826
3859
  children: [
3827
- /* @__PURE__ */ h(
3860
+ /* @__PURE__ */ u(
3828
3861
  xe.Body1,
3829
3862
  {
3830
3863
  props: {
@@ -3847,12 +3880,12 @@ const On = 240, Nn = ({
3847
3880
  showPagination: i = !0,
3848
3881
  totalData: o
3849
3882
  }) => {
3850
- const { searchQueries: a, setSearchParams: c, searchParams: u } = We(), d = u.get(n), m = (F) => {
3851
- c({ ...a, [r]: String(F) });
3852
- }, g = (F) => {
3883
+ const { searchQueries: a, setSearchParams: c, searchParams: h } = We(), d = h.get(n), m = (D) => {
3884
+ c({ ...a, [r]: String(D) });
3885
+ }, g = (D) => {
3853
3886
  c({
3854
3887
  ...a,
3855
- [n]: F,
3888
+ [n]: D,
3856
3889
  [r]: "1"
3857
3890
  });
3858
3891
  }, y = (t == null ? void 0 : t.rangeStart) ?? (((t == null ? void 0 : t.currentPage) || 0) > 1 ? (((t == null ? void 0 : t.currentPage) || 0) - 1) * ((t == null ? void 0 : t.perPage) || 0) + 1 : 1), x = (t == null ? void 0 : t.rangeEnd) ?? ((t == null ? void 0 : t.totalCurrentPage) !== (t == null ? void 0 : t.perPage) ? t == null ? void 0 : t.totalData : ((t == null ? void 0 : t.currentPage) || 1) * ((t == null ? void 0 : t.totalCurrentPage) || 0));
@@ -3872,8 +3905,8 @@ const On = 240, Nn = ({
3872
3905
  borderTop: "1px solid var(--sa-border-subtle, #0b120e24)",
3873
3906
  flexShrink: 0
3874
3907
  },
3875
- children: i ? /* @__PURE__ */ h(ee, { children: [
3876
- /* @__PURE__ */ h(f, { style: { display: "flex", flexDirection: "row", gap: "8px", alignItems: "center", textWrap: "nowrap" }, children: [
3908
+ children: i ? /* @__PURE__ */ u(ee, { children: [
3909
+ /* @__PURE__ */ u(f, { style: { display: "flex", flexDirection: "row", gap: "8px", alignItems: "center", textWrap: "nowrap" }, children: [
3877
3910
  /* @__PURE__ */ e(v, { children: "Rows Per Page: " }),
3878
3911
  /* @__PURE__ */ e(
3879
3912
  nt,
@@ -3885,8 +3918,8 @@ const On = 240, Nn = ({
3885
3918
  { label: "50", value: "50" },
3886
3919
  { label: "100", value: "100" }
3887
3920
  ],
3888
- onChange: (F) => {
3889
- g(F[0].value);
3921
+ onChange: (D) => {
3922
+ g(D[0].value);
3890
3923
  },
3891
3924
  value: d ? [{ label: `${d} per row`, value: d }] : [{ label: `${l} per row`, value: `${l}` }],
3892
3925
  defaultValue: d ? [{ label: `${d} per row`, value: d }] : [{ label: `${l} per row`, value: `${l}` }]
@@ -3913,21 +3946,21 @@ const On = 240, Nn = ({
3913
3946
  }
3914
3947
  );
3915
3948
  }, Gn = ({ filter: t, columnTitle: r }) => {
3916
- const [n, l] = W(!1), i = oe(null), o = oe(null), a = oe(null), [c, u] = W(""), [d, m] = W({ top: 0, left: 0 }), g = t.selectedValues, y = de(() => c ? t.options.filter(
3949
+ const [n, l] = M(!1), i = oe(null), o = oe(null), a = oe(null), [c, h] = M(""), [d, m] = M({ top: 0, left: 0 }), g = t.selectedValues, y = de(() => c ? t.options.filter(
3917
3950
  (p) => p.label.toLowerCase().includes(c.toLowerCase())
3918
3951
  ) : t.options, [t.options, c]);
3919
3952
  Z(() => {
3920
3953
  if (n && o.current) {
3921
- const p = o.current.getBoundingClientRect(), E = 280, M = {
3954
+ const p = o.current.getBoundingClientRect(), E = 280, W = {
3922
3955
  top: p.bottom + 8
3923
3956
  };
3924
- t.position === "left" || p.left + E > window.innerWidth ? M.right = window.innerWidth - p.right : M.left = p.left, m(M);
3957
+ t.position === "left" || p.left + E > window.innerWidth ? W.right = window.innerWidth - p.right : W.left = p.left, m(W);
3925
3958
  }
3926
3959
  }, [n, t.position]), Z(() => {
3927
3960
  n && a.current ? setTimeout(() => {
3928
3961
  var p;
3929
3962
  return (p = a.current) == null ? void 0 : p.focus();
3930
- }, 50) : u("");
3963
+ }, 50) : h("");
3931
3964
  }, [n]), Z(() => {
3932
3965
  const p = (E) => {
3933
3966
  i.current && !i.current.contains(E.target) && o.current && !o.current.contains(E.target) && l(!1);
@@ -3935,10 +3968,10 @@ const On = 240, Nn = ({
3935
3968
  return n && document.addEventListener("mousedown", p), () => document.removeEventListener("mousedown", p);
3936
3969
  }, [n]);
3937
3970
  const x = (p) => {
3938
- const E = g.includes(p) ? g.filter((M) => M !== p) : [...g, p];
3971
+ const E = g.includes(p) ? g.filter((W) => W !== p) : [...g, p];
3939
3972
  t.onFilterChange(E);
3940
- }, F = () => t.onFilterChange([]);
3941
- return /* @__PURE__ */ h(f, { direction: "column", style: { position: "relative" }, children: [
3973
+ }, D = () => t.onFilterChange([]);
3974
+ return /* @__PURE__ */ u(f, { direction: "column", style: { position: "relative" }, children: [
3942
3975
  /* @__PURE__ */ e(
3943
3976
  f,
3944
3977
  {
@@ -3951,10 +3984,10 @@ const On = 240, Nn = ({
3951
3984
  },
3952
3985
  onClick: (p) => {
3953
3986
  var E;
3954
- p.stopPropagation(), n || (E = t.onOpen) == null || E.call(t), l((M) => !M);
3987
+ p.stopPropagation(), n || (E = t.onOpen) == null || E.call(t), l((W) => !W);
3955
3988
  },
3956
3989
  children: /* @__PURE__ */ e(
3957
- k,
3990
+ S,
3958
3991
  {
3959
3992
  name: n ? "ChevronUp" : "ChevronDown",
3960
3993
  size: "sm",
@@ -3965,7 +3998,7 @@ const On = 240, Nn = ({
3965
3998
  )
3966
3999
  }
3967
4000
  ),
3968
- n && /* @__PURE__ */ h(
4001
+ n && /* @__PURE__ */ u(
3969
4002
  f,
3970
4003
  {
3971
4004
  ref: i,
@@ -3984,7 +4017,7 @@ const On = 240, Nn = ({
3984
4017
  border: "1px solid var(--sa-border-subtle, #0b120e24)"
3985
4018
  },
3986
4019
  children: [
3987
- /* @__PURE__ */ h(
4020
+ /* @__PURE__ */ u(
3988
4021
  f,
3989
4022
  {
3990
4023
  style: {
@@ -3999,7 +4032,7 @@ const On = 240, Nn = ({
3999
4032
  borderBottom: "1px solid var(--sa-border-subtle, #0b120e24)"
4000
4033
  },
4001
4034
  children: [
4002
- /* @__PURE__ */ h(v, { fontSize: "sm", fontWeight: "semibold", color: "gray-700", children: [
4035
+ /* @__PURE__ */ u(v, { fontSize: "sm", fontWeight: "semibold", color: "gray-700", children: [
4003
4036
  "Filter ",
4004
4037
  r
4005
4038
  ] }),
@@ -4010,7 +4043,7 @@ const On = 240, Nn = ({
4010
4043
  color: "primary",
4011
4044
  fontWeight: "semibold",
4012
4045
  onClick: (p) => {
4013
- p.stopPropagation(), F();
4046
+ p.stopPropagation(), D();
4014
4047
  },
4015
4048
  children: "CLEAR"
4016
4049
  }
@@ -4033,9 +4066,9 @@ const On = 240, Nn = ({
4033
4066
  {
4034
4067
  ref: a,
4035
4068
  placeholder: `Search ${r.toLowerCase()}...`,
4036
- leftIcon: /* @__PURE__ */ e(k, { name: "Search", size: "sm" }),
4069
+ leftIcon: /* @__PURE__ */ e(S, { name: "Search", size: "sm" }),
4037
4070
  value: c,
4038
- onChange: (p) => u(p.target.value),
4071
+ onChange: (p) => h(p.target.value),
4039
4072
  style: { fontSize: "14px" }
4040
4073
  }
4041
4074
  )
@@ -4052,7 +4085,7 @@ const On = 240, Nn = ({
4052
4085
  paddingLeft: "8px",
4053
4086
  paddingRight: "8px"
4054
4087
  },
4055
- children: t.isLoadingOptions ? /* @__PURE__ */ h(
4088
+ children: t.isLoadingOptions ? /* @__PURE__ */ u(
4056
4089
  f,
4057
4090
  {
4058
4091
  style: {
@@ -4065,7 +4098,7 @@ const On = 240, Nn = ({
4065
4098
  },
4066
4099
  children: [
4067
4100
  /* @__PURE__ */ e(
4068
- k,
4101
+ S,
4069
4102
  {
4070
4103
  name: "Loading",
4071
4104
  size: "lg",
@@ -4086,7 +4119,7 @@ const On = 240, Nn = ({
4086
4119
  )
4087
4120
  ]
4088
4121
  }
4089
- ) : y.length > 0 ? /* @__PURE__ */ e(f, { direction: "column", style: { gap: "2px", paddingTop: "4px", paddingBottom: "4px" }, children: y.map((p) => /* @__PURE__ */ h(
4122
+ ) : y.length > 0 ? /* @__PURE__ */ e(f, { direction: "column", style: { gap: "2px", paddingTop: "4px", paddingBottom: "4px" }, children: y.map((p) => /* @__PURE__ */ u(
4090
4123
  f,
4091
4124
  {
4092
4125
  style: {
@@ -4133,7 +4166,7 @@ const On = 240, Nn = ({
4133
4166
  ]
4134
4167
  },
4135
4168
  p.value
4136
- )) }) : /* @__PURE__ */ h(
4169
+ )) }) : /* @__PURE__ */ u(
4137
4170
  f,
4138
4171
  {
4139
4172
  style: {
@@ -4146,7 +4179,7 @@ const On = 240, Nn = ({
4146
4179
  },
4147
4180
  children: [
4148
4181
  /* @__PURE__ */ e(
4149
- k,
4182
+ S,
4150
4183
  {
4151
4184
  name: "Search",
4152
4185
  size: "lg",
@@ -4180,7 +4213,7 @@ const On = 240, Nn = ({
4180
4213
  backgroundColor: "var(--sa-color-brand-50, #e6edf6)",
4181
4214
  marginTop: "auto"
4182
4215
  },
4183
- children: /* @__PURE__ */ h(f, { style: { display: "flex", flexDirection: "row", alignItems: "center", gap: "4px" }, children: [
4216
+ children: /* @__PURE__ */ u(f, { style: { display: "flex", flexDirection: "row", alignItems: "center", gap: "4px" }, children: [
4184
4217
  /* @__PURE__ */ e(
4185
4218
  f,
4186
4219
  {
@@ -4196,7 +4229,7 @@ const On = 240, Nn = ({
4196
4229
  children: g.length
4197
4230
  }
4198
4231
  ),
4199
- /* @__PURE__ */ h(v, { fontSize: "xs", color: "primary", fontWeight: "medium", children: [
4232
+ /* @__PURE__ */ u(v, { fontSize: "xs", color: "primary", fontWeight: "medium", children: [
4200
4233
  "item",
4201
4234
  g.length > 1 ? "s" : "",
4202
4235
  " selected"
@@ -4212,7 +4245,7 @@ const On = 240, Nn = ({
4212
4245
  direction: t
4213
4246
  }) => {
4214
4247
  const r = "var(--sa-text-primary, #292a2e)", n = "var(--sa-text-subtle, #8c8f97)";
4215
- return /* @__PURE__ */ h(
4248
+ return /* @__PURE__ */ u(
4216
4249
  "span",
4217
4250
  {
4218
4251
  style: {
@@ -4248,7 +4281,7 @@ const On = 240, Nn = ({
4248
4281
  ]
4249
4282
  }
4250
4283
  );
4251
- }, Un = ({ frozen: t }) => /* @__PURE__ */ h(
4284
+ }, Un = ({ frozen: t }) => /* @__PURE__ */ u(
4252
4285
  "svg",
4253
4286
  {
4254
4287
  width: "11",
@@ -4273,90 +4306,90 @@ const On = 240, Nn = ({
4273
4306
  isLoading: o,
4274
4307
  visibleHandleDelete: a,
4275
4308
  visibleHandleUpdate: c,
4276
- visibleHandleDetail: u,
4309
+ visibleHandleDetail: h,
4277
4310
  showHeadBorder: d = !1,
4278
4311
  scrollParentRef: m,
4279
4312
  frozenCount: g = 0,
4280
4313
  onFrozenCountChange: y,
4281
4314
  customActions: x,
4282
- actionsOrder: F = ["detail", "update", "delete", "custom"],
4315
+ actionsOrder: D = ["detail", "update", "delete", "custom"],
4283
4316
  customEmptyState: p,
4284
4317
  enableColumnResize: E = !1,
4285
- defaultColumnWidths: M,
4286
- onColumnWidthsChange: w,
4318
+ defaultColumnWidths: W,
4319
+ onColumnWidthsChange: k,
4287
4320
  defaultMinColumnWidth: O = 60,
4288
4321
  sort: C,
4289
4322
  defaultSort: L,
4290
4323
  onSortChange: z,
4291
- showActionDivider: S = !1
4324
+ showActionDivider: F = !1
4292
4325
  }) => {
4293
- const j = C !== void 0, [te, X] = W(
4326
+ const j = C !== void 0, [te, X] = M(
4294
4327
  L ?? null
4295
- ), $ = j ? C ?? null : te, K = (D) => {
4296
- if (D.sortKey) return D.sortKey;
4297
- if (typeof D.accessor == "string") return D.accessor;
4298
- }, Y = (D) => {
4299
- const A = K(D);
4328
+ ), $ = j ? C ?? null : te, K = (w) => {
4329
+ if (w.sortKey) return w.sortKey;
4330
+ if (typeof w.accessor == "string") return w.accessor;
4331
+ }, Y = (w) => {
4332
+ const A = K(w);
4300
4333
  if (!A) return;
4301
4334
  let B;
4302
4335
  !$ || $.key !== A ? B = { key: A, direction: "asc" } : $.direction === "asc" ? B = { key: A, direction: "desc" } : B = null, j || X(B), z == null || z(B);
4303
- }, ne = [n, l, i].filter((D) => D !== void 0).length, ie = !!x, P = !!n || !!l || !!i || ie, q = "var(--sa-border-subtle, #0b120e24)", ce = `1px solid ${q}`, ge = `inset 1px 0 0 ${q}`, ye = `inset -1px 0 0 ${q}`, Re = ne === 3 ? ie ? "178px" : "140px" : ne === 2 ? ie ? "140px" : "102px" : ne === 1 ? ie ? "112px" : "74px" : ie ? "74px" : "", qe = (D, A) => {
4304
- if (!A) return D;
4305
- if (typeof A == "function") return A(D);
4306
- if (typeof A == "string") return D[A];
4307
- }, [at, Ge] = W(!1);
4336
+ }, ne = [n, l, i].filter((w) => w !== void 0).length, ie = !!x, P = !!n || !!l || !!i || ie, q = "var(--sa-border-subtle, #0b120e24)", ce = `1px solid ${q}`, ge = `inset 1px 0 0 ${q}`, ye = `inset -1px 0 0 ${q}`, He = ne === 3 ? ie ? "178px" : "140px" : ne === 2 ? ie ? "140px" : "102px" : ne === 1 ? ie ? "112px" : "74px" : ie ? "74px" : "", qe = (w, A) => {
4337
+ if (!A) return w;
4338
+ if (typeof A == "function") return A(w);
4339
+ if (typeof A == "string") return w[A];
4340
+ }, [at, Ge] = M(!1);
4308
4341
  Z(() => {
4309
4342
  if (!(m != null && m.current)) return;
4310
- const D = m.current;
4311
- Ge(D.scrollHeight > D.clientHeight);
4343
+ const w = m.current;
4344
+ Ge(w.scrollHeight > w.clientHeight);
4312
4345
  }, [r, m]);
4313
- const He = oe(null), [fe, Je] = W([]), [Ve, Be] = W(
4314
- () => M ?? {}
4346
+ const Ve = oe(null), [fe, Je] = M([]), [Te, Be] = M(
4347
+ () => W ?? {}
4315
4348
  ), ze = oe(null);
4316
4349
  xt(() => {
4317
- if (!g || !He.current) {
4350
+ if (!g || !Ve.current) {
4318
4351
  Je([]);
4319
4352
  return;
4320
4353
  }
4321
- const D = Array.from(
4322
- He.current.querySelectorAll("thead tr th")
4354
+ const w = Array.from(
4355
+ Ve.current.querySelectorAll("thead tr th")
4323
4356
  ), A = [];
4324
4357
  let B = 0;
4325
- D.forEach((I, N) => {
4358
+ w.forEach((I, N) => {
4326
4359
  A[N] = B, N < g && (B += I.offsetWidth);
4327
4360
  }), Je(A);
4328
- }, [g, t, r, Ve]);
4329
- const Ue = (D) => {
4330
- y && y(D < g ? D : D + 1);
4331
- }, b = (D, A) => {
4332
- const B = Ve[D];
4361
+ }, [g, t, r, Te]);
4362
+ const Ue = (w) => {
4363
+ y && y(w < g ? w : w + 1);
4364
+ }, b = (w, A) => {
4365
+ const B = Te[w];
4333
4366
  if (B !== void 0) {
4334
4367
  const I = `${B}px`;
4335
4368
  return { width: I, minWidth: I, maxWidth: I };
4336
4369
  }
4337
4370
  return A ? { width: A } : {};
4338
- }, R = (D) => E && (D.resizable ?? !0), V = (D, A) => {
4339
- D.preventDefault(), D.stopPropagation();
4340
- const B = D.currentTarget.closest("th");
4371
+ }, R = (w) => E && (w.resizable ?? !0), V = (w, A) => {
4372
+ w.preventDefault(), w.stopPropagation();
4373
+ const B = w.currentTarget.closest("th");
4341
4374
  if (!B) return;
4342
4375
  const I = Math.round(B.getBoundingClientRect().width);
4343
- ze.current = { colIndex: A, startX: D.clientX, startWidth: I };
4376
+ ze.current = { colIndex: A, startX: w.clientX, startWidth: I };
4344
4377
  const N = document.body.style.userSelect, ae = document.body.style.cursor;
4345
4378
  document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
4346
4379
  const me = (ve) => {
4347
- var Oe;
4380
+ var Ne;
4348
4381
  const be = ze.current;
4349
4382
  if (!be) return;
4350
- const st = ((Oe = t[be.colIndex]) == null ? void 0 : Oe.minWidth) ?? O, Te = Math.max(st, be.startWidth + (ve.clientX - be.startX));
4383
+ const st = ((Ne = t[be.colIndex]) == null ? void 0 : Ne.minWidth) ?? O, Oe = Math.max(st, be.startWidth + (ve.clientX - be.startX));
4351
4384
  Be(
4352
- (Ae) => Ae[be.colIndex] === Te ? Ae : { ...Ae, [be.colIndex]: Te }
4385
+ (Ae) => Ae[be.colIndex] === Oe ? Ae : { ...Ae, [be.colIndex]: Oe }
4353
4386
  );
4354
4387
  }, ke = () => {
4355
- document.removeEventListener("mousemove", me), document.removeEventListener("mouseup", ke), document.body.style.userSelect = N, document.body.style.cursor = ae, ze.current = null, w && Be((ve) => (w(ve), ve));
4388
+ document.removeEventListener("mousemove", me), document.removeEventListener("mouseup", ke), document.body.style.userSelect = N, document.body.style.cursor = ae, ze.current = null, k && Be((ve) => (k(ve), ve));
4356
4389
  };
4357
4390
  document.addEventListener("mousemove", me), document.addEventListener("mouseup", ke);
4358
4391
  };
4359
- return /* @__PURE__ */ e("div", { ref: He, children: /* @__PURE__ */ h(or, { fullWidth: !0, children: [
4392
+ return /* @__PURE__ */ e("div", { ref: Ve, children: /* @__PURE__ */ u(or, { fullWidth: !0, children: [
4360
4393
  /* @__PURE__ */ e(
4361
4394
  kr,
4362
4395
  {
@@ -4364,21 +4397,21 @@ const On = 240, Nn = ({
4364
4397
  height: "40px",
4365
4398
  whiteSpace: "nowrap"
4366
4399
  },
4367
- children: /* @__PURE__ */ h(_e, { children: [
4368
- t.map((D, A) => {
4400
+ children: /* @__PURE__ */ u(je, { children: [
4401
+ t.map((w, A) => {
4369
4402
  var It, Rt;
4370
- const B = g > 0 && A < g, I = fe[A] ?? 0, N = R(D), me = A === t.length - 1 && P && S, ke = K(D), ve = !!D.sortable && !!ke, be = ve && ($ == null ? void 0 : $.key) === ke ? $.direction : null, st = D.title || ((It = D.accessor) == null ? void 0 : It.toString()) || "", Te = (Rt = D.headerTooltip) != null && Rt.showIcon ? /* @__PURE__ */ e(
4371
- k,
4403
+ const B = g > 0 && A < g, I = fe[A] ?? 0, N = R(w), me = A === t.length - 1 && P && F, ke = K(w), ve = !!w.sortable && !!ke, be = ve && ($ == null ? void 0 : $.key) === ke ? $.direction : null, st = w.title || ((It = w.accessor) == null ? void 0 : It.toString()) || "", Oe = (Rt = w.headerTooltip) != null && Rt.showIcon ? /* @__PURE__ */ e(
4404
+ S,
4372
4405
  {
4373
4406
  name: "InfoCircle",
4374
4407
  size: "xs",
4375
4408
  style: { flexShrink: 0, color: "var(--sa-icon-subtle, #8c8f97)", opacity: 0.75 }
4376
4409
  }
4377
- ) : null, Oe = /* @__PURE__ */ e("span", { style: { flex: 1, minWidth: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: st }), Ae = ve ? /* @__PURE__ */ h(
4410
+ ) : null, Ne = /* @__PURE__ */ e("span", { style: { flex: 1, minWidth: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: st }), Ae = ve ? /* @__PURE__ */ u(
4378
4411
  "button",
4379
4412
  {
4380
4413
  type: "button",
4381
- onClick: () => Y(D),
4414
+ onClick: () => Y(w),
4382
4415
  title: be === "asc" ? "Sorted ascending — click to sort descending" : be === "desc" ? "Sorted descending — click to clear" : "Click to sort ascending",
4383
4416
  style: {
4384
4417
  flex: 1,
@@ -4393,19 +4426,19 @@ const On = 240, Nn = ({
4393
4426
  font: "inherit",
4394
4427
  color: "inherit",
4395
4428
  cursor: "pointer",
4396
- textAlign: D.textAlign === "text-right" ? "right" : D.textAlign === "text-center" ? "center" : "left"
4429
+ textAlign: w.textAlign === "text-right" ? "right" : w.textAlign === "text-center" ? "center" : "left"
4397
4430
  },
4398
4431
  children: [
4432
+ Ne,
4399
4433
  Oe,
4400
- Te,
4401
4434
  /* @__PURE__ */ e(Jn, { direction: be })
4402
4435
  ]
4403
4436
  }
4404
- ) : /* @__PURE__ */ h("span", { style: { flex: 1, minWidth: 0, display: "flex", alignItems: "center", gap: 4 }, children: [
4405
- Oe,
4406
- Te
4437
+ ) : /* @__PURE__ */ u("span", { style: { flex: 1, minWidth: 0, display: "flex", alignItems: "center", gap: 4 }, children: [
4438
+ Ne,
4439
+ Oe
4407
4440
  ] });
4408
- return /* @__PURE__ */ h(
4441
+ return /* @__PURE__ */ u(
4409
4442
  Vt,
4410
4443
  {
4411
4444
  style: {
@@ -4418,11 +4451,11 @@ const On = 240, Nn = ({
4418
4451
  borderBottom: d ? ce : void 0,
4419
4452
  boxShadow: d && B ? ye : void 0,
4420
4453
  backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
4421
- textAlign: D.textAlign === "text-right" ? "right" : D.textAlign === "text-center" ? "center" : "left",
4422
- ...b(A, D.width)
4454
+ textAlign: w.textAlign === "text-right" ? "right" : w.textAlign === "text-center" ? "center" : "left",
4455
+ ...b(A, w.width)
4423
4456
  },
4424
4457
  children: [
4425
- /* @__PURE__ */ h(
4458
+ /* @__PURE__ */ u(
4426
4459
  "div",
4427
4460
  {
4428
4461
  style: {
@@ -4433,12 +4466,12 @@ const On = 240, Nn = ({
4433
4466
  minWidth: 0
4434
4467
  },
4435
4468
  children: [
4436
- D.headerTooltip ? /* @__PURE__ */ e(ue, { label: D.headerTooltip.content, position: "bottom", children: Ae }) : Ae,
4437
- D.filter && /* @__PURE__ */ e(
4469
+ w.headerTooltip ? /* @__PURE__ */ e(ue, { label: w.headerTooltip.content, position: "bottom", children: Ae }) : Ae,
4470
+ w.filter && /* @__PURE__ */ e(
4438
4471
  Gn,
4439
4472
  {
4440
- filter: D.filter,
4441
- columnTitle: D.title
4473
+ filter: w.filter,
4474
+ columnTitle: w.title
4442
4475
  }
4443
4476
  ),
4444
4477
  y && /* @__PURE__ */ e(
@@ -4500,21 +4533,21 @@ const On = 240, Nn = ({
4500
4533
  right: 0,
4501
4534
  zIndex: 3,
4502
4535
  borderBottom: d ? ce : void 0,
4503
- boxShadow: d && S ? ge : void 0
4536
+ boxShadow: d && F ? ge : void 0
4504
4537
  }
4505
4538
  }
4506
4539
  ) : null
4507
4540
  ] })
4508
4541
  }
4509
4542
  ),
4510
- /* @__PURE__ */ e(Sr, { children: o ? /* @__PURE__ */ e(_e, { children: /* @__PURE__ */ e(Fe, { colSpan: t.length + 1, children: /* @__PURE__ */ h(f, { direction: "column", style: { gap: "16px" }, children: [
4511
- /* @__PURE__ */ e(Ne, { variant: "list" }),
4512
- /* @__PURE__ */ e(Ne, { variant: "list" }),
4513
- /* @__PURE__ */ e(Ne, { variant: "list" }),
4514
- /* @__PURE__ */ e(Ne, { variant: "list" }),
4515
- /* @__PURE__ */ e(Ne, { variant: "list" })
4516
- ] }) }) }) : !(r != null && r.length) && p ? /* @__PURE__ */ e(_e, { children: /* @__PURE__ */ e(Fe, { colSpan: t.length + 1, children: p }) }) : r == null ? void 0 : r.map((D, A) => /* @__PURE__ */ h(
4517
- _e,
4543
+ /* @__PURE__ */ e(Sr, { children: o ? /* @__PURE__ */ e(je, { children: /* @__PURE__ */ e(Fe, { colSpan: t.length + 1, children: /* @__PURE__ */ u(f, { direction: "column", style: { gap: "16px" }, children: [
4544
+ /* @__PURE__ */ e(_e, { variant: "list" }),
4545
+ /* @__PURE__ */ e(_e, { variant: "list" }),
4546
+ /* @__PURE__ */ e(_e, { variant: "list" }),
4547
+ /* @__PURE__ */ e(_e, { variant: "list" }),
4548
+ /* @__PURE__ */ e(_e, { variant: "list" })
4549
+ ] }) }) }) : !(r != null && r.length) && p ? /* @__PURE__ */ e(je, { children: /* @__PURE__ */ e(Fe, { colSpan: t.length + 1, children: p }) }) : r == null ? void 0 : r.map((w, A) => /* @__PURE__ */ u(
4550
+ je,
4518
4551
  {
4519
4552
  style: {
4520
4553
  transition: "background-color 0.3s ease",
@@ -4535,7 +4568,7 @@ const On = 240, Nn = ({
4535
4568
  },
4536
4569
  children: [
4537
4570
  t.map((B, I) => {
4538
- const N = B.render ? B.render(D, A, r) : qe(D, B.accessor), ae = g > 0 && I < g, me = fe[I] ?? 0, ke = Ve[I] !== void 0, ve = ae && I === g - 1;
4571
+ const N = B.render ? B.render(w, A, r) : qe(w, B.accessor), ae = g > 0 && I < g, me = fe[I] ?? 0, ke = Te[I] !== void 0, ve = ae && I === g - 1;
4539
4572
  return /* @__PURE__ */ e(
4540
4573
  Fe,
4541
4574
  {
@@ -4571,47 +4604,47 @@ const On = 240, Nn = ({
4571
4604
  );
4572
4605
  }),
4573
4606
  P ? /* @__PURE__ */ e(Fe, { style: {
4574
- width: Re,
4607
+ width: He,
4575
4608
  position: "sticky",
4576
4609
  right: 0,
4577
4610
  zIndex: 1,
4578
4611
  backgroundColor: yt,
4579
- boxShadow: S ? ge : void 0,
4612
+ boxShadow: F ? ge : void 0,
4580
4613
  transition: "background-color 0.3s ease"
4581
- }, children: /* @__PURE__ */ e(U, { direction: "row", align: "center", justify: "center", gap: "sm", children: F.map((B) => {
4614
+ }, children: /* @__PURE__ */ e(U, { direction: "row", align: "center", justify: "center", gap: "sm", children: D.map((B) => {
4582
4615
  const I = A === r.length - 1 ? "top" : "bottom";
4583
- return B === "detail" && n && (u == null ? void 0 : u(D)) !== !1 ? /* @__PURE__ */ e(ue, { label: "Detail", position: I, children: /* @__PURE__ */ e(
4616
+ return B === "detail" && n && (h == null ? void 0 : h(w)) !== !1 ? /* @__PURE__ */ e(ue, { label: "Detail", position: I, children: /* @__PURE__ */ e(
4584
4617
  H,
4585
4618
  {
4586
4619
  size: "xs",
4587
4620
  variant: "outline",
4588
4621
  tone: "neutral",
4589
- onClick: () => n(D.id, D),
4590
- iconLeft: /* @__PURE__ */ e(k, { name: "DocumentClean", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
4622
+ onClick: () => n(w.id, w),
4623
+ iconLeft: /* @__PURE__ */ e(S, { name: "DocumentClean", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
4591
4624
  }
4592
- ) }, "detail") : B === "update" && l && (c == null ? void 0 : c(D)) !== !1 ? /* @__PURE__ */ e(ue, { label: "Update", position: I, children: /* @__PURE__ */ e(
4625
+ ) }, "detail") : B === "update" && l && (c == null ? void 0 : c(w)) !== !1 ? /* @__PURE__ */ e(ue, { label: "Update", position: I, children: /* @__PURE__ */ e(
4593
4626
  H,
4594
4627
  {
4595
4628
  size: "xs",
4596
4629
  variant: "outline",
4597
4630
  tone: "neutral",
4598
- onClick: () => l(D),
4599
- iconLeft: /* @__PURE__ */ e(k, { name: "Edit1", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
4631
+ onClick: () => l(w),
4632
+ iconLeft: /* @__PURE__ */ e(S, { name: "Edit1", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
4600
4633
  }
4601
- ) }, "update") : B === "delete" && i && (a == null ? void 0 : a(D)) !== !1 ? /* @__PURE__ */ e(ue, { label: "Delete", position: I, children: /* @__PURE__ */ e(
4634
+ ) }, "update") : B === "delete" && i && (a == null ? void 0 : a(w)) !== !1 ? /* @__PURE__ */ e(ue, { label: "Delete", position: I, children: /* @__PURE__ */ e(
4602
4635
  H,
4603
4636
  {
4604
4637
  size: "xs",
4605
4638
  variant: "outline",
4606
4639
  tone: "neutral",
4607
- onClick: () => i(D.id, D),
4608
- iconLeft: /* @__PURE__ */ e(k, { name: "Trash1", size: "sm", style: { color: "var(--sa-color-error-600, #c9184a)" } })
4640
+ onClick: () => i(w.id, w),
4641
+ iconLeft: /* @__PURE__ */ e(S, { name: "Trash1", size: "sm", style: { color: "var(--sa-color-error-600, #c9184a)" } })
4609
4642
  }
4610
- ) }, "delete") : B === "custom" ? /* @__PURE__ */ e(Ke.Fragment, { children: x == null ? void 0 : x(D) }, "custom") : null;
4643
+ ) }, "delete") : B === "custom" ? /* @__PURE__ */ e(Ke.Fragment, { children: x == null ? void 0 : x(w) }, "custom") : null;
4611
4644
  }) }) }) : null
4612
4645
  ]
4613
4646
  },
4614
- `${D}${A}`
4647
+ `${w}${A}`
4615
4648
  )) })
4616
4649
  ] }) });
4617
4650
  }, Yn = ({
@@ -4621,12 +4654,12 @@ const On = 240, Nn = ({
4621
4654
  footerProps: l
4622
4655
  }) => {
4623
4656
  var g;
4624
- const i = oe(null), [o, a] = W(
4657
+ const i = oe(null), [o, a] = M(
4625
4658
  (r == null ? void 0 : r.defaultFrozenCount) ?? 0
4626
- ), c = (n == null ? void 0 : n.show) ?? !0, u = oe(null), d = (g = r == null ? void 0 : r.pagination) == null ? void 0 : g.totalData;
4627
- typeof d == "number" && (u.current = d);
4628
- const m = (l == null ? void 0 : l.showFooter) ?? (d === void 0 ? u.current !== 0 : d !== 0);
4629
- return /* @__PURE__ */ h($n, { ...t, children: [
4659
+ ), c = (n == null ? void 0 : n.show) ?? !0, h = oe(null), d = (g = r == null ? void 0 : r.pagination) == null ? void 0 : g.totalData;
4660
+ typeof d == "number" && (h.current = d);
4661
+ const m = (l == null ? void 0 : l.showFooter) ?? (d === void 0 ? h.current !== 0 : d !== 0);
4662
+ return /* @__PURE__ */ u($n, { ...t, children: [
4630
4663
  c && /* @__PURE__ */ e(Zn, { ...n }),
4631
4664
  /* @__PURE__ */ e(
4632
4665
  f,
@@ -4693,9 +4726,9 @@ const kl = Xn(Yn), Mt = ({
4693
4726
  fullWidth: l = !1,
4694
4727
  ...i
4695
4728
  }) => {
4696
- var c, u, d;
4729
+ var c, h, d;
4697
4730
  const o = i.hideMessageError || !1, a = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
4698
- return /* @__PURE__ */ h(
4731
+ return /* @__PURE__ */ u(
4699
4732
  f,
4700
4733
  {
4701
4734
  gap: r === "horizontal" ? "spacing-96" : "sm",
@@ -4706,7 +4739,7 @@ const kl = Xn(Yn), Mt = ({
4706
4739
  J,
4707
4740
  {
4708
4741
  condition: !!i.inputProps.required,
4709
- fallback: /* @__PURE__ */ h(
4742
+ fallback: /* @__PURE__ */ u(
4710
4743
  f,
4711
4744
  {
4712
4745
  direction: "column",
@@ -4718,24 +4751,24 @@ const kl = Xn(Yn), Mt = ({
4718
4751
  ]
4719
4752
  }
4720
4753
  ),
4721
- children: /* @__PURE__ */ h(
4754
+ children: /* @__PURE__ */ u(
4722
4755
  f,
4723
4756
  {
4724
4757
  direction: "column",
4725
4758
  customMaxWidth: a,
4726
4759
  fullWidth: l,
4727
4760
  children: [
4728
- /* @__PURE__ */ h(U, { direction: "row", gap: "xs", align: "center", children: [
4761
+ /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
4729
4762
  /* @__PURE__ */ e(Q, { fontSize: t, children: i.title }),
4730
4763
  /* @__PURE__ */ e(Q, { color: "error", fontSize: t, children: n }),
4731
4764
  /* @__PURE__ */ e(J, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
4732
4765
  ue,
4733
4766
  {
4734
- label: (u = i.tooltip) == null ? void 0 : u.label,
4767
+ label: (h = i.tooltip) == null ? void 0 : h.label,
4735
4768
  arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
4736
4769
  ...i.tooltip,
4737
4770
  children: /* @__PURE__ */ e(
4738
- k,
4771
+ S,
4739
4772
  {
4740
4773
  name: "InfoCircle",
4741
4774
  size: t === "lg" ? "sm" : "xs",
@@ -4754,7 +4787,7 @@ const kl = Xn(Yn), Mt = ({
4754
4787
  )
4755
4788
  }
4756
4789
  ),
4757
- /* @__PURE__ */ h(f, { direction: "column", gap: "xs", fullWidth: i.inputProps.fullWidth || !1, children: [
4790
+ /* @__PURE__ */ u(f, { direction: "column", gap: "xs", fullWidth: i.inputProps.fullWidth || !1, children: [
4758
4791
  /* @__PURE__ */ e(
4759
4792
  Ze,
4760
4793
  {
@@ -4778,9 +4811,9 @@ const kl = Xn(Yn), Mt = ({
4778
4811
  fullWidth: l = !1,
4779
4812
  ...i
4780
4813
  }) => {
4781
- var c, u, d;
4814
+ var c, h, d;
4782
4815
  const o = i.hideMessageError || !1, a = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
4783
- return /* @__PURE__ */ h(
4816
+ return /* @__PURE__ */ u(
4784
4817
  f,
4785
4818
  {
4786
4819
  gap: r === "horizontal" ? "spacing-96" : "sm",
@@ -4791,7 +4824,7 @@ const kl = Xn(Yn), Mt = ({
4791
4824
  J,
4792
4825
  {
4793
4826
  condition: !!i.inputProps.required,
4794
- fallback: /* @__PURE__ */ h(
4827
+ fallback: /* @__PURE__ */ u(
4795
4828
  f,
4796
4829
  {
4797
4830
  direction: "column",
@@ -4803,24 +4836,24 @@ const kl = Xn(Yn), Mt = ({
4803
4836
  ]
4804
4837
  }
4805
4838
  ),
4806
- children: /* @__PURE__ */ h(
4839
+ children: /* @__PURE__ */ u(
4807
4840
  f,
4808
4841
  {
4809
4842
  direction: "column",
4810
4843
  customMaxWidth: a,
4811
4844
  fullWidth: l,
4812
4845
  children: [
4813
- /* @__PURE__ */ h(U, { direction: "row", gap: "xs", align: "center", children: [
4846
+ /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
4814
4847
  /* @__PURE__ */ e(Q, { fontSize: t, children: i.title }),
4815
4848
  /* @__PURE__ */ e(Q, { color: "error", fontSize: t, children: n }),
4816
4849
  /* @__PURE__ */ e(J, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
4817
4850
  ue,
4818
4851
  {
4819
- label: (u = i.tooltip) == null ? void 0 : u.label,
4852
+ label: (h = i.tooltip) == null ? void 0 : h.label,
4820
4853
  arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
4821
4854
  ...i.tooltip,
4822
4855
  children: /* @__PURE__ */ e(
4823
- k,
4856
+ S,
4824
4857
  {
4825
4858
  name: "InfoCircle",
4826
4859
  size: t === "lg" ? "sm" : "xs",
@@ -4839,7 +4872,7 @@ const kl = Xn(Yn), Mt = ({
4839
4872
  )
4840
4873
  }
4841
4874
  ),
4842
- /* @__PURE__ */ h(f, { direction: "column", gap: "xs", fullWidth: i.inputProps.fullWidth || !1, children: [
4875
+ /* @__PURE__ */ u(f, { direction: "column", gap: "xs", fullWidth: i.inputProps.fullWidth || !1, children: [
4843
4876
  /* @__PURE__ */ e(
4844
4877
  f,
4845
4878
  {
@@ -4865,16 +4898,16 @@ const kl = Xn(Yn), Mt = ({
4865
4898
  );
4866
4899
  }, ti = (t, r) => typeof t == "string" && t || r === "error" ? "var(--sa-border-danger)" : "var(--sa-border-subtle)", ri = (t) => {
4867
4900
  var c;
4868
- const [r, n] = W(!1), l = (u) => {
4869
- u.preventDefault(), u.stopPropagation();
4870
- }, i = (u) => {
4871
- u.preventDefault(), u.stopPropagation(), u.dataTransfer && t.handleOnFileChange(u.dataTransfer.files.item(0));
4872
- }, o = (u) => {
4873
- u.preventDefault(), n(!0);
4874
- }, a = (u) => {
4875
- u.preventDefault(), n(!1);
4901
+ const [r, n] = M(!1), l = (h) => {
4902
+ h.preventDefault(), h.stopPropagation();
4903
+ }, i = (h) => {
4904
+ h.preventDefault(), h.stopPropagation(), h.dataTransfer && t.handleOnFileChange(h.dataTransfer.files.item(0));
4905
+ }, o = (h) => {
4906
+ h.preventDefault(), n(!0);
4907
+ }, a = (h) => {
4908
+ h.preventDefault(), n(!1);
4876
4909
  };
4877
- return /* @__PURE__ */ h(
4910
+ return /* @__PURE__ */ u(
4878
4911
  f,
4879
4912
  {
4880
4913
  width: "width-full",
@@ -4894,7 +4927,7 @@ const kl = Xn(Yn), Mt = ({
4894
4927
  },
4895
4928
  children: [
4896
4929
  /* @__PURE__ */ e(
4897
- k,
4930
+ S,
4898
4931
  {
4899
4932
  name: "Upload",
4900
4933
  size: "lg",
@@ -4904,8 +4937,8 @@ const kl = Xn(Yn), Mt = ({
4904
4937
  }
4905
4938
  }
4906
4939
  ),
4907
- /* @__PURE__ */ h(U, { direction: "column", gap: "xs", children: [
4908
- /* @__PURE__ */ h(U, { direction: "row", gap: "xs", children: [
4940
+ /* @__PURE__ */ u(U, { direction: "column", gap: "xs", children: [
4941
+ /* @__PURE__ */ u(U, { direction: "row", gap: "xs", children: [
4909
4942
  /* @__PURE__ */ e(
4910
4943
  v,
4911
4944
  {
@@ -4926,7 +4959,7 @@ const kl = Xn(Yn), Mt = ({
4926
4959
  }
4927
4960
  )
4928
4961
  ] }),
4929
- /* @__PURE__ */ e(v, { fontSize: "sm", color: "gray-500", children: (c = t.fileSupports) == null ? void 0 : c.map((u) => u.toLocaleUpperCase()).join(", ") })
4962
+ /* @__PURE__ */ e(v, { fontSize: "sm", color: "gray-500", children: (c = t.fileSupports) == null ? void 0 : c.map((h) => h.toLocaleUpperCase()).join(", ") })
4930
4963
  ] })
4931
4964
  ]
4932
4965
  }
@@ -5104,7 +5137,7 @@ function si(t) {
5104
5137
  }
5105
5138
  const di = (t) => {
5106
5139
  var r, n;
5107
- return /* @__PURE__ */ h(
5140
+ return /* @__PURE__ */ u(
5108
5141
  f,
5109
5142
  {
5110
5143
  width: "width-full",
@@ -5123,9 +5156,9 @@ const di = (t) => {
5123
5156
  cursor: "pointer"
5124
5157
  },
5125
5158
  children: [
5126
- /* @__PURE__ */ h(U, { direction: "row", align: "center", gap: "sm", style: { flex: 1, minWidth: 0 }, children: [
5159
+ /* @__PURE__ */ u(U, { direction: "row", align: "center", gap: "sm", style: { flex: 1, minWidth: 0 }, children: [
5127
5160
  /* @__PURE__ */ e(
5128
- k,
5161
+ S,
5129
5162
  {
5130
5163
  name: "DocumentFilled",
5131
5164
  size: "lg",
@@ -5137,7 +5170,7 @@ const di = (t) => {
5137
5170
  }
5138
5171
  }
5139
5172
  ),
5140
- /* @__PURE__ */ h(U, { direction: "column", style: { minWidth: 0, flex: 1 }, children: [
5173
+ /* @__PURE__ */ u(U, { direction: "column", style: { minWidth: 0, flex: 1 }, children: [
5141
5174
  /* @__PURE__ */ e(
5142
5175
  v,
5143
5176
  {
@@ -5150,13 +5183,13 @@ const di = (t) => {
5150
5183
  children: t.defaultFile ? si(t.defaultFile.url) : (r = t.fileSelected) == null ? void 0 : r.name
5151
5184
  }
5152
5185
  ),
5153
- t.defaultFile ? (t.defaultFile.size || t.defaultFile.date) && /* @__PURE__ */ h(U, { direction: "row", gap: "xs", align: "center", children: [
5186
+ t.defaultFile ? (t.defaultFile.size || t.defaultFile.date) && /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
5154
5187
  t.defaultFile.size && /* @__PURE__ */ e(v, { fontSize: "sm", fontWeight: "medium", children: t.defaultFile.size }),
5155
- t.defaultFile.size && t.defaultFile.date && /* @__PURE__ */ e(k, { name: "Dot", size: "xs" }),
5188
+ t.defaultFile.size && t.defaultFile.date && /* @__PURE__ */ e(S, { name: "Dot", size: "xs" }),
5156
5189
  t.defaultFile.date && /* @__PURE__ */ e(v, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children: t.defaultFile.date })
5157
- ] }) : /* @__PURE__ */ h(U, { direction: "row", gap: "xs", align: "center", children: [
5190
+ ] }) : /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
5158
5191
  /* @__PURE__ */ e(v, { fontSize: "sm", fontWeight: "medium", children: ai(((n = t.fileSelected) == null ? void 0 : n.size.toString()) || "100000") }),
5159
- /* @__PURE__ */ e(k, { name: "Dot", size: "xs" }),
5192
+ /* @__PURE__ */ e(S, { name: "Dot", size: "xs" }),
5160
5193
  /* @__PURE__ */ e(v, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children: ni(/* @__PURE__ */ new Date()) })
5161
5194
  ] })
5162
5195
  ] })
@@ -5171,7 +5204,7 @@ const di = (t) => {
5171
5204
  onClick: (l) => {
5172
5205
  l.stopPropagation(), t.handleOnDeleteFile();
5173
5206
  },
5174
- iconLeft: /* @__PURE__ */ e(k, { name: "Trash1" })
5207
+ iconLeft: /* @__PURE__ */ e(S, { name: "Trash1" })
5175
5208
  }
5176
5209
  )
5177
5210
  ]
@@ -5189,7 +5222,7 @@ const di = (t) => {
5189
5222
  return;
5190
5223
  }
5191
5224
  l.current && l.current.click();
5192
- }, o = he("md"), a = t === "error" || typeof n.errorMessage == "string" && !!n.errorMessage, c = n.label ? /* @__PURE__ */ h(U, { direction: "row", align: "center", gap: "xs", children: [
5225
+ }, o = he("md"), a = t === "error" || typeof n.errorMessage == "string" && !!n.errorMessage, c = n.label ? /* @__PURE__ */ u(U, { direction: "row", align: "center", gap: "xs", children: [
5193
5226
  /* @__PURE__ */ e(v, { style: { fontSize: "14px", fontWeight: 500, color: "var(--sa-text-primary)" }, children: n.label }),
5194
5227
  n.optional && /* @__PURE__ */ e("span", { style: {
5195
5228
  background: "var(--sa-background-neutral)",
@@ -5204,7 +5237,7 @@ const di = (t) => {
5204
5237
  alignItems: "center"
5205
5238
  }, children: "Optional" }),
5206
5239
  n.required && /* @__PURE__ */ e("span", { style: { fontSize: "14px", fontWeight: 500, color: "var(--sa-text-error)" }, children: "*" })
5207
- ] }) : null, u = n.description ? /* @__PURE__ */ e(v, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-subtlest, #6b6e76)", lineHeight: "18px" }, children: n.description }) : null, d = /* @__PURE__ */ h(ee, { children: [
5240
+ ] }) : 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: [
5208
5241
  n.helperText && /* @__PURE__ */ e(v, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-subtlest, #6b6e76)", lineHeight: "18px" }, children: n.helperText }),
5209
5242
  n.errorText && t === "error" && /* @__PURE__ */ e(v, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-error, #a4133c)", lineHeight: "18px" }, children: n.errorText }),
5210
5243
  n.errorMessage && !n.errorText && /* @__PURE__ */ e(v, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-error, #a4133c)", lineHeight: "18px" }, children: n.errorMessage })
@@ -5215,12 +5248,12 @@ const di = (t) => {
5215
5248
  style: { display: "none" },
5216
5249
  ref: l,
5217
5250
  onChange: (x) => {
5218
- var F;
5219
- return n.handleOnChangeFile(((F = x.target.files) == null ? void 0 : F.item(0)) || null);
5251
+ var D;
5252
+ return n.handleOnChangeFile(((D = x.target.files) == null ? void 0 : D.item(0)) || null);
5220
5253
  },
5221
5254
  accept: (y = n.fileSupportOption) == null ? void 0 : y.map((x) => "." + (x == null ? void 0 : x.toLowerCase())).join(", ")
5222
5255
  }
5223
- ), g = /* @__PURE__ */ h(
5256
+ ), g = /* @__PURE__ */ u(
5224
5257
  f,
5225
5258
  {
5226
5259
  direction: "column",
@@ -5258,18 +5291,18 @@ const di = (t) => {
5258
5291
  ]
5259
5292
  }
5260
5293
  );
5261
- return r === "outside-left" ? /* @__PURE__ */ h(U, { direction: "row", align: "flex-start", gap: "sm", style: { width: "100%" }, children: [
5262
- /* @__PURE__ */ h(U, { direction: "column", gap: "xs", style: { width: "40%", minWidth: "120px", paddingTop: "10px" }, children: [
5294
+ return r === "outside-left" ? /* @__PURE__ */ u(U, { direction: "row", align: "flex-start", gap: "sm", style: { width: "100%" }, children: [
5295
+ /* @__PURE__ */ u(U, { direction: "column", gap: "xs", style: { width: "40%", minWidth: "120px", paddingTop: "10px" }, children: [
5263
5296
  c,
5264
- u
5297
+ h
5265
5298
  ] }),
5266
- /* @__PURE__ */ h(U, { direction: "column", gap: "sm", style: { flex: 1, minWidth: 0 }, children: [
5299
+ /* @__PURE__ */ u(U, { direction: "column", gap: "sm", style: { flex: 1, minWidth: 0 }, children: [
5267
5300
  g,
5268
5301
  d
5269
5302
  ] })
5270
- ] }) : /* @__PURE__ */ h(U, { direction: "column", gap: "sm", style: { width: "100%" }, children: [
5303
+ ] }) : /* @__PURE__ */ u(U, { direction: "column", gap: "sm", style: { width: "100%" }, children: [
5271
5304
  c,
5272
- u,
5305
+ h,
5273
5306
  g,
5274
5307
  d
5275
5308
  ] });
@@ -5280,9 +5313,9 @@ const di = (t) => {
5280
5313
  fullWidth: l = !1,
5281
5314
  ...i
5282
5315
  }) => {
5283
- var c, u, d;
5316
+ var c, h, d;
5284
5317
  const o = i.hideMessageError || !1, a = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
5285
- return /* @__PURE__ */ h(
5318
+ return /* @__PURE__ */ u(
5286
5319
  f,
5287
5320
  {
5288
5321
  gap: r === "horizontal" ? "spacing-96" : "sm",
@@ -5293,7 +5326,7 @@ const di = (t) => {
5293
5326
  J,
5294
5327
  {
5295
5328
  condition: !!i.inputProps.required,
5296
- fallback: /* @__PURE__ */ h(
5329
+ fallback: /* @__PURE__ */ u(
5297
5330
  f,
5298
5331
  {
5299
5332
  direction: "column",
@@ -5305,24 +5338,24 @@ const di = (t) => {
5305
5338
  ]
5306
5339
  }
5307
5340
  ),
5308
- children: /* @__PURE__ */ h(
5341
+ children: /* @__PURE__ */ u(
5309
5342
  f,
5310
5343
  {
5311
5344
  direction: "column",
5312
5345
  customMaxWidth: a,
5313
5346
  fullWidth: l,
5314
5347
  children: [
5315
- /* @__PURE__ */ h(U, { direction: "row", gap: "xs", align: "center", children: [
5348
+ /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
5316
5349
  /* @__PURE__ */ e(Q, { fontSize: t, children: i.title }),
5317
5350
  /* @__PURE__ */ e(Q, { color: "error", fontSize: t, children: n }),
5318
5351
  /* @__PURE__ */ e(J, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
5319
5352
  ue,
5320
5353
  {
5321
- label: (u = i.tooltip) == null ? void 0 : u.label,
5354
+ label: (h = i.tooltip) == null ? void 0 : h.label,
5322
5355
  arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
5323
5356
  ...i.tooltip,
5324
5357
  children: /* @__PURE__ */ e(
5325
- k,
5358
+ S,
5326
5359
  {
5327
5360
  name: "InfoCircle",
5328
5361
  size: t === "lg" ? "sm" : "xs",
@@ -5341,7 +5374,7 @@ const di = (t) => {
5341
5374
  )
5342
5375
  }
5343
5376
  ),
5344
- /* @__PURE__ */ h(U, { direction: "column", gap: "xs", children: [
5377
+ /* @__PURE__ */ u(U, { direction: "column", gap: "xs", children: [
5345
5378
  /* @__PURE__ */ e(
5346
5379
  ui,
5347
5380
  {
@@ -5362,9 +5395,9 @@ const di = (t) => {
5362
5395
  required: i = !1,
5363
5396
  ...o
5364
5397
  }) => {
5365
- var u, d, m, g;
5398
+ var h, d, m, g;
5366
5399
  const a = o.hideMessageError || !1, c = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
5367
- return /* @__PURE__ */ h(
5400
+ return /* @__PURE__ */ u(
5368
5401
  f,
5369
5402
  {
5370
5403
  gap: r === "horizontal" || r === "horizontal-inline" ? "spacing-96" : "sm",
@@ -5375,7 +5408,7 @@ const di = (t) => {
5375
5408
  J,
5376
5409
  {
5377
5410
  condition: !!i,
5378
- fallback: /* @__PURE__ */ h(
5411
+ fallback: /* @__PURE__ */ u(
5379
5412
  f,
5380
5413
  {
5381
5414
  direction: "column",
@@ -5387,24 +5420,24 @@ const di = (t) => {
5387
5420
  ]
5388
5421
  }
5389
5422
  ),
5390
- children: /* @__PURE__ */ h(
5423
+ children: /* @__PURE__ */ u(
5391
5424
  f,
5392
5425
  {
5393
5426
  direction: "column",
5394
5427
  customMaxWidth: c,
5395
5428
  fullWidth: l,
5396
5429
  children: [
5397
- /* @__PURE__ */ h(U, { direction: "row", gap: "xs", align: "center", children: [
5430
+ /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
5398
5431
  /* @__PURE__ */ e(Q, { fontSize: t, children: o.title }),
5399
5432
  /* @__PURE__ */ e(Q, { color: "error", fontSize: t, children: n }),
5400
- /* @__PURE__ */ e(J, { condition: !!((u = o.tooltip) != null && u.label), children: /* @__PURE__ */ e(
5433
+ /* @__PURE__ */ e(J, { condition: !!((h = o.tooltip) != null && h.label), children: /* @__PURE__ */ e(
5401
5434
  ue,
5402
5435
  {
5403
5436
  label: (d = o.tooltip) == null ? void 0 : d.label,
5404
5437
  arrowPosition: (m = o.tooltip) == null ? void 0 : m.arrowPosition,
5405
5438
  ...o.tooltip,
5406
5439
  children: /* @__PURE__ */ e(
5407
- k,
5440
+ S,
5408
5441
  {
5409
5442
  name: "InfoCircle",
5410
5443
  size: t === "lg" ? "sm" : "xs",
@@ -5436,7 +5469,7 @@ const di = (t) => {
5436
5469
  ...y,
5437
5470
  isChecked: o.checkBoxesAreChecked.includes(y.id)
5438
5471
  })),
5439
- render: (y) => y.renderBadge ? /* @__PURE__ */ h(
5472
+ render: (y) => y.renderBadge ? /* @__PURE__ */ u(
5440
5473
  f,
5441
5474
  {
5442
5475
  direction: "row",
@@ -5485,13 +5518,13 @@ const di = (t) => {
5485
5518
  }) => {
5486
5519
  var o;
5487
5520
  const i = t === "horizontal-inline" || t === "horizontal-block" ? r === "sm" ? 342 : r === "lg" ? 400 : 342 : void 0;
5488
- return /* @__PURE__ */ h(
5521
+ return /* @__PURE__ */ u(
5489
5522
  f,
5490
5523
  {
5491
5524
  gap: t === "horizontal-inline" || t === "horizontal-block" ? "spacing-96" : "sm",
5492
5525
  direction: t === "horizontal-inline" || t === "horizontal-block" ? "row" : "column",
5493
5526
  children: [
5494
- /* @__PURE__ */ e(J, { condition: !!l.description || !!l.title, children: /* @__PURE__ */ h(
5527
+ /* @__PURE__ */ e(J, { condition: !!l.description || !!l.title, children: /* @__PURE__ */ u(
5495
5528
  f,
5496
5529
  {
5497
5530
  direction: "column",
@@ -5517,7 +5550,7 @@ const di = (t) => {
5517
5550
  ...a,
5518
5551
  isChecked: l.radioIsChecked === a.id
5519
5552
  })),
5520
- render: ({ value: a, id: c, isChecked: u, subInput: d, label: m, description: g }) => /* @__PURE__ */ h(f, { direction: "column", gap: "xs", customMaxWidth: i, children: [
5553
+ render: ({ value: a, id: c, isChecked: h, subInput: d, label: m, description: g }) => /* @__PURE__ */ u(f, { direction: "column", gap: "xs", customMaxWidth: i, children: [
5521
5554
  /* @__PURE__ */ e(
5522
5555
  Mr,
5523
5556
  {
@@ -5525,7 +5558,7 @@ const di = (t) => {
5525
5558
  name: l.groupName || m,
5526
5559
  label: m,
5527
5560
  value: a,
5528
- checked: u,
5561
+ checked: h,
5529
5562
  onChange: (y) => l.onChecked({
5530
5563
  id: c,
5531
5564
  label: y.target.name,
@@ -5562,9 +5595,9 @@ const di = (t) => {
5562
5595
  fullWidth: l = !1,
5563
5596
  ...i
5564
5597
  }) => {
5565
- var c, u, d;
5598
+ var c, h, d;
5566
5599
  const o = i.hideMessageError || !1, a = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
5567
- return /* @__PURE__ */ h(
5600
+ return /* @__PURE__ */ u(
5568
5601
  f,
5569
5602
  {
5570
5603
  gap: r === "horizontal" ? "spacing-96" : "sm",
@@ -5575,7 +5608,7 @@ const di = (t) => {
5575
5608
  J,
5576
5609
  {
5577
5610
  condition: !!i.inputProps.required,
5578
- fallback: /* @__PURE__ */ h(
5611
+ fallback: /* @__PURE__ */ u(
5579
5612
  f,
5580
5613
  {
5581
5614
  direction: "column",
@@ -5587,24 +5620,24 @@ const di = (t) => {
5587
5620
  ]
5588
5621
  }
5589
5622
  ),
5590
- children: /* @__PURE__ */ h(
5623
+ children: /* @__PURE__ */ u(
5591
5624
  f,
5592
5625
  {
5593
5626
  direction: "column",
5594
5627
  customMaxWidth: a,
5595
5628
  fullWidth: l,
5596
5629
  children: [
5597
- /* @__PURE__ */ h(U, { direction: "row", gap: "xs", align: "center", children: [
5630
+ /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
5598
5631
  /* @__PURE__ */ e(Q, { fontSize: t, children: i.title }),
5599
5632
  /* @__PURE__ */ e(Q, { color: "error", fontSize: t, children: n }),
5600
5633
  /* @__PURE__ */ e(J, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
5601
5634
  ue,
5602
5635
  {
5603
- label: (u = i.tooltip) == null ? void 0 : u.label,
5636
+ label: (h = i.tooltip) == null ? void 0 : h.label,
5604
5637
  arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
5605
5638
  ...i.tooltip,
5606
5639
  children: /* @__PURE__ */ e(
5607
- k,
5640
+ S,
5608
5641
  {
5609
5642
  name: "InfoCircle",
5610
5643
  size: t === "lg" ? "sm" : "xs",
@@ -5623,7 +5656,7 @@ const di = (t) => {
5623
5656
  )
5624
5657
  }
5625
5658
  ),
5626
- /* @__PURE__ */ h(U, { direction: "column", gap: "xs", children: [
5659
+ /* @__PURE__ */ u(U, { direction: "column", gap: "xs", children: [
5627
5660
  /* @__PURE__ */ e(
5628
5661
  Fr,
5629
5662
  {
@@ -5646,9 +5679,9 @@ const di = (t) => {
5646
5679
  fullWidth: i = !1,
5647
5680
  ...o
5648
5681
  }) => {
5649
- var c, u, d;
5682
+ var c, h, d;
5650
5683
  const a = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
5651
- return /* @__PURE__ */ h(
5684
+ return /* @__PURE__ */ u(
5652
5685
  f,
5653
5686
  {
5654
5687
  gap: r === "horizontal" ? "spacing-96" : "sm",
@@ -5659,7 +5692,7 @@ const di = (t) => {
5659
5692
  J,
5660
5693
  {
5661
5694
  condition: l,
5662
- fallback: /* @__PURE__ */ h(
5695
+ fallback: /* @__PURE__ */ u(
5663
5696
  f,
5664
5697
  {
5665
5698
  direction: "column",
@@ -5671,24 +5704,24 @@ const di = (t) => {
5671
5704
  ]
5672
5705
  }
5673
5706
  ),
5674
- children: /* @__PURE__ */ h(
5707
+ children: /* @__PURE__ */ u(
5675
5708
  f,
5676
5709
  {
5677
5710
  direction: "column",
5678
5711
  customMaxWidth: a,
5679
5712
  fullWidth: i,
5680
5713
  children: [
5681
- /* @__PURE__ */ h(U, { direction: "row", gap: "xs", align: "center", children: [
5714
+ /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
5682
5715
  /* @__PURE__ */ e(Q, { fontSize: t, children: o.title }),
5683
5716
  /* @__PURE__ */ e(Q, { color: "error", fontSize: t, children: n }),
5684
5717
  /* @__PURE__ */ e(J, { condition: !!((c = o.tooltip) != null && c.label), children: /* @__PURE__ */ e(
5685
5718
  ue,
5686
5719
  {
5687
- label: (u = o.tooltip) == null ? void 0 : u.label,
5720
+ label: (h = o.tooltip) == null ? void 0 : h.label,
5688
5721
  arrowPosition: (d = o.tooltip) == null ? void 0 : d.arrowPosition,
5689
5722
  ...o.tooltip,
5690
5723
  children: /* @__PURE__ */ e(
5691
- k,
5724
+ S,
5692
5725
  {
5693
5726
  name: "InfoCircle",
5694
5727
  size: t === "lg" ? "sm" : "xs",
@@ -5726,16 +5759,16 @@ const di = (t) => {
5726
5759
  ...n
5727
5760
  }) => {
5728
5761
  const l = Lr(), i = (a) => {
5729
- var u, d, m, g, y, x;
5762
+ var h, d, m, g, y, x;
5730
5763
  if (!a) return;
5731
- const c = n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : t === "secondary-danger" ? (d = (u = l == null ? void 0 : l.computed) == null ? void 0 : u.red) == null ? void 0 : d[600] : t === "secondary-primary" ? (g = (m = l == null ? void 0 : l.computed) == null ? void 0 : m.blue) == null ? void 0 : g[700] : (x = (y = l == null ? void 0 : l.computed) == null ? void 0 : y.gray) == null ? void 0 : x[50];
5732
- return /* @__PURE__ */ e(k, { name: a, size: r, style: { color: c } });
5764
+ const c = n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : t === "secondary-danger" ? (d = (h = l == null ? void 0 : l.computed) == null ? void 0 : h.red) == null ? void 0 : d[600] : t === "secondary-primary" ? (g = (m = l == null ? void 0 : l.computed) == null ? void 0 : m.blue) == null ? void 0 : g[700] : (x = (y = l == null ? void 0 : l.computed) == null ? void 0 : y.gray) == null ? void 0 : x[50];
5765
+ return /* @__PURE__ */ e(S, { name: a, size: r, style: { color: c } });
5733
5766
  }, o = () => {
5734
- var c, u, d, m;
5767
+ var c, h, d, m;
5735
5768
  if (t !== "secondary-danger" && t !== "secondary-primary")
5736
5769
  return n.title;
5737
5770
  const a = {
5738
- color: n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary-danger" ? (u = (c = l == null ? void 0 : l.computed) == null ? void 0 : c.red) == null ? void 0 : u[600] : (m = (d = l == null ? void 0 : l.computed) == null ? void 0 : d.blue) == null ? void 0 : m[700]
5771
+ color: n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary-danger" ? (h = (c = l == null ? void 0 : l.computed) == null ? void 0 : c.red) == null ? void 0 : h[600] : (m = (d = l == null ? void 0 : l.computed) == null ? void 0 : d.blue) == null ? void 0 : m[700]
5739
5772
  };
5740
5773
  switch (r) {
5741
5774
  case "xs":
@@ -5780,9 +5813,9 @@ const di = (t) => {
5780
5813
  fullWidth: l = !1,
5781
5814
  ...i
5782
5815
  }) => {
5783
- var c, u, d;
5816
+ var c, h, d;
5784
5817
  const o = i.hideMessageError || !1, a = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
5785
- return /* @__PURE__ */ h(
5818
+ return /* @__PURE__ */ u(
5786
5819
  f,
5787
5820
  {
5788
5821
  gap: r === "horizontal" ? "spacing-96" : "sm",
@@ -5793,7 +5826,7 @@ const di = (t) => {
5793
5826
  J,
5794
5827
  {
5795
5828
  condition: !!i.inputProps.required,
5796
- fallback: /* @__PURE__ */ h(
5829
+ fallback: /* @__PURE__ */ u(
5797
5830
  f,
5798
5831
  {
5799
5832
  direction: "column",
@@ -5805,24 +5838,24 @@ const di = (t) => {
5805
5838
  ]
5806
5839
  }
5807
5840
  ),
5808
- children: /* @__PURE__ */ h(
5841
+ children: /* @__PURE__ */ u(
5809
5842
  f,
5810
5843
  {
5811
5844
  direction: "column",
5812
5845
  customMaxWidth: a,
5813
5846
  fullWidth: l,
5814
5847
  children: [
5815
- /* @__PURE__ */ h(U, { direction: "row", gap: "xs", align: "center", children: [
5848
+ /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
5816
5849
  /* @__PURE__ */ e(Q, { fontSize: t, children: i.title }),
5817
5850
  /* @__PURE__ */ e(Q, { color: "error", fontSize: t, children: n }),
5818
5851
  /* @__PURE__ */ e(J, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
5819
5852
  ue,
5820
5853
  {
5821
- label: (u = i.tooltip) == null ? void 0 : u.label,
5854
+ label: (h = i.tooltip) == null ? void 0 : h.label,
5822
5855
  arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
5823
5856
  ...i.tooltip,
5824
5857
  children: /* @__PURE__ */ e(
5825
- k,
5858
+ S,
5826
5859
  {
5827
5860
  name: "InfoCircle",
5828
5861
  size: t === "lg" ? "sm" : "xs",
@@ -5841,7 +5874,7 @@ const di = (t) => {
5841
5874
  )
5842
5875
  }
5843
5876
  ),
5844
- /* @__PURE__ */ h(U, { direction: "column", gap: "xs", children: [
5877
+ /* @__PURE__ */ u(U, { direction: "column", gap: "xs", children: [
5845
5878
  /* @__PURE__ */ e(
5846
5879
  f,
5847
5880
  {
@@ -5887,8 +5920,8 @@ async function bi(t, r) {
5887
5920
  ), new Promise((o, a) => {
5888
5921
  l.toBlob((c) => {
5889
5922
  if (!c) return a("Canvas is empty");
5890
- const u = new File([c], "cropped.png", { type: "image/png" });
5891
- o(u);
5923
+ const h = new File([c], "cropped.png", { type: "image/png" });
5924
+ o(h);
5892
5925
  }, "image/png");
5893
5926
  });
5894
5927
  }
@@ -5911,16 +5944,16 @@ const er = {
5911
5944
  size: o = "96",
5912
5945
  aspect: a = "1:1",
5913
5946
  containerProps: c,
5914
- maxFileSize: u = 2,
5947
+ maxFileSize: h = 2,
5915
5948
  onError: d
5916
5949
  }, m) => {
5917
- const g = he("md"), [y, x] = W(!1), [F, p] = W(null), [E, M] = W(!1), [w, O] = W({ x: 0, y: 0 }), [C, L] = W(1), [z, S] = W(null);
5950
+ const g = he("md"), [y, x] = M(!1), [D, p] = M(null), [E, W] = M(!1), [k, O] = M({ x: 0, y: 0 }), [C, L] = M(1), [z, F] = M(null);
5918
5951
  Z(() => {
5919
5952
  r === null && i(null);
5920
5953
  }, [r]);
5921
5954
  const j = G(
5922
5955
  (P, q) => {
5923
- S(q);
5956
+ F(q);
5924
5957
  },
5925
5958
  []
5926
5959
  ), te = (P) => {
@@ -5929,19 +5962,19 @@ const er = {
5929
5962
  if (!q) return;
5930
5963
  const ce = new FileReader();
5931
5964
  ce.onload = () => {
5932
- p(ce.result), M(!0);
5965
+ p(ce.result), W(!0);
5933
5966
  }, ce.readAsDataURL(q);
5934
5967
  }, X = async () => {
5935
- if (!(!F || !z))
5968
+ if (!(!D || !z))
5936
5969
  try {
5937
- const P = await bi(F, z);
5938
- if (u && P.size > u * 1024 * 1024) {
5939
- d == null || d(`Ukuran file maksimal ${u}MB`);
5970
+ const P = await bi(D, z);
5971
+ if (h && P.size > h * 1024 * 1024) {
5972
+ d == null || d(`Ukuran file maksimal ${h}MB`);
5940
5973
  return;
5941
5974
  }
5942
5975
  t == null || t(P);
5943
5976
  const q = URL.createObjectURL(P);
5944
- i(q, P), M(!1);
5977
+ i(q, P), W(!1);
5945
5978
  } catch {
5946
5979
  d == null || d("Gagal memproses gambar");
5947
5980
  }
@@ -5956,7 +5989,7 @@ const er = {
5956
5989
  }));
5957
5990
  const Y = parseInt(o, 10), re = er[a];
5958
5991
  let ne, ie;
5959
- return re >= 1 ? (ie = Y, ne = Y * re) : (ne = Y, ie = Y / re), /* @__PURE__ */ h(
5992
+ return re >= 1 ? (ie = Y, ne = Y * re) : (ne = Y, ie = Y / re), /* @__PURE__ */ u(
5960
5993
  f,
5961
5994
  {
5962
5995
  direction: "column",
@@ -5999,7 +6032,7 @@ const er = {
5999
6032
  justify: "center",
6000
6033
  padding: "spacing-4",
6001
6034
  children: /* @__PURE__ */ e(
6002
- k,
6035
+ S,
6003
6036
  {
6004
6037
  name: "Image",
6005
6038
  style: {
@@ -6011,7 +6044,7 @@ const er = {
6011
6044
  )
6012
6045
  }
6013
6046
  ),
6014
- /* @__PURE__ */ h(
6047
+ /* @__PURE__ */ u(
6015
6048
  f,
6016
6049
  {
6017
6050
  direction: "column",
@@ -6039,9 +6072,9 @@ const er = {
6039
6072
  style: { display: "none" }
6040
6073
  }
6041
6074
  ),
6042
- /* @__PURE__ */ h(f, { display: "flex", align: "center", gap: "spacing-2", direction: "row", children: [
6075
+ /* @__PURE__ */ u(f, { display: "flex", align: "center", gap: "spacing-2", direction: "row", children: [
6043
6076
  /* @__PURE__ */ e(
6044
- k,
6077
+ S,
6045
6078
  {
6046
6079
  name: "Edit3",
6047
6080
  style: { color: "var(--sa-background-primary, #ffffff)" }
@@ -6102,8 +6135,8 @@ const er = {
6102
6135
  justifyContent: "center",
6103
6136
  backgroundColor: "rgba(0,0,0,0.6)"
6104
6137
  },
6105
- onClick: () => M(!1),
6106
- children: /* @__PURE__ */ h(
6138
+ onClick: () => W(!1),
6139
+ children: /* @__PURE__ */ u(
6107
6140
  "div",
6108
6141
  {
6109
6142
  style: {
@@ -6126,11 +6159,11 @@ const er = {
6126
6159
  height: "20rem",
6127
6160
  backgroundColor: "var(--sa-color-gray-100)"
6128
6161
  },
6129
- children: F && /* @__PURE__ */ e(
6162
+ children: D && /* @__PURE__ */ e(
6130
6163
  Ar,
6131
6164
  {
6132
- image: F,
6133
- crop: w,
6165
+ image: D,
6166
+ crop: k,
6134
6167
  zoom: C,
6135
6168
  aspect: a ? er[a] : void 0,
6136
6169
  onCropChange: O,
@@ -6143,7 +6176,7 @@ const er = {
6143
6176
  )
6144
6177
  }
6145
6178
  ),
6146
- /* @__PURE__ */ h(
6179
+ /* @__PURE__ */ u(
6147
6180
  "div",
6148
6181
  {
6149
6182
  style: {
@@ -6154,7 +6187,7 @@ const er = {
6154
6187
  borderTop: "1px solid var(--sa-border-subtle)"
6155
6188
  },
6156
6189
  children: [
6157
- /* @__PURE__ */ e(H, { size: "sm", secondary: !0, onClick: () => M(!1), children: "Cancel" }),
6190
+ /* @__PURE__ */ e(H, { size: "sm", secondary: !0, onClick: () => W(!1), children: "Cancel" }),
6158
6191
  /* @__PURE__ */ e(H, { size: "sm", primary: !0, onClick: X, children: "Crop" })
6159
6192
  ]
6160
6193
  }
@@ -6178,9 +6211,9 @@ const er = {
6178
6211
  required: i = !1,
6179
6212
  ...o
6180
6213
  }) => {
6181
- var u, d, m;
6214
+ var h, d, m;
6182
6215
  const a = o.hideMessageError || !1, c = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
6183
- return /* @__PURE__ */ h(
6216
+ return /* @__PURE__ */ u(
6184
6217
  f,
6185
6218
  {
6186
6219
  gap: r === "horizontal" ? "spacing-96" : "sm",
@@ -6191,7 +6224,7 @@ const er = {
6191
6224
  J,
6192
6225
  {
6193
6226
  condition: !!i,
6194
- fallback: /* @__PURE__ */ h(
6227
+ fallback: /* @__PURE__ */ u(
6195
6228
  f,
6196
6229
  {
6197
6230
  direction: "column",
@@ -6203,24 +6236,24 @@ const er = {
6203
6236
  ]
6204
6237
  }
6205
6238
  ),
6206
- children: /* @__PURE__ */ h(
6239
+ children: /* @__PURE__ */ u(
6207
6240
  f,
6208
6241
  {
6209
6242
  direction: "column",
6210
6243
  customMaxWidth: c,
6211
6244
  fullWidth: l,
6212
6245
  children: [
6213
- /* @__PURE__ */ h(U, { direction: "row", gap: "xs", align: "center", children: [
6246
+ /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
6214
6247
  /* @__PURE__ */ e(Q, { fontSize: t, children: o.title }),
6215
6248
  /* @__PURE__ */ e(Q, { color: "error", fontSize: t, children: n }),
6216
- /* @__PURE__ */ e(J, { condition: !!((u = o.tooltip) != null && u.label), children: /* @__PURE__ */ e(
6249
+ /* @__PURE__ */ e(J, { condition: !!((h = o.tooltip) != null && h.label), children: /* @__PURE__ */ e(
6217
6250
  ue,
6218
6251
  {
6219
6252
  label: (d = o.tooltip) == null ? void 0 : d.label,
6220
6253
  arrowPosition: (m = o.tooltip) == null ? void 0 : m.arrowPosition,
6221
6254
  ...o.tooltip,
6222
6255
  children: /* @__PURE__ */ e(
6223
- k,
6256
+ S,
6224
6257
  {
6225
6258
  name: "InfoCircle",
6226
6259
  size: t === "lg" ? "sm" : "xs",
@@ -6239,7 +6272,7 @@ const er = {
6239
6272
  )
6240
6273
  }
6241
6274
  ),
6242
- /* @__PURE__ */ h(U, { direction: "column", gap: "xs", children: [
6275
+ /* @__PURE__ */ u(U, { direction: "column", gap: "xs", children: [
6243
6276
  /* @__PURE__ */ e(vi, { ...o.inputProps }),
6244
6277
  !a && o.errorMessage && /* @__PURE__ */ e(we, { message: o.errorMessage })
6245
6278
  ] })
@@ -6253,9 +6286,9 @@ const er = {
6253
6286
  fullWidth: l = !1,
6254
6287
  ...i
6255
6288
  }) => {
6256
- var a, c, u;
6289
+ var a, c, h;
6257
6290
  const o = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
6258
- return /* @__PURE__ */ h(
6291
+ return /* @__PURE__ */ u(
6259
6292
  f,
6260
6293
  {
6261
6294
  gap: r === "horizontal" ? "spacing-96" : "sm",
@@ -6266,7 +6299,7 @@ const er = {
6266
6299
  J,
6267
6300
  {
6268
6301
  condition: !!i.inputProps.required,
6269
- fallback: /* @__PURE__ */ h(
6302
+ fallback: /* @__PURE__ */ u(
6270
6303
  f,
6271
6304
  {
6272
6305
  direction: "column",
@@ -6278,24 +6311,24 @@ const er = {
6278
6311
  ]
6279
6312
  }
6280
6313
  ),
6281
- children: /* @__PURE__ */ h(
6314
+ children: /* @__PURE__ */ u(
6282
6315
  f,
6283
6316
  {
6284
6317
  direction: "column",
6285
6318
  customMaxWidth: o,
6286
6319
  fullWidth: l,
6287
6320
  children: [
6288
- /* @__PURE__ */ h(U, { direction: "row", gap: "xs", align: "center", children: [
6321
+ /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
6289
6322
  /* @__PURE__ */ e(Q, { fontSize: t, children: i.title }),
6290
6323
  /* @__PURE__ */ e(Q, { color: "error", fontSize: t, children: n }),
6291
6324
  /* @__PURE__ */ e(J, { condition: !!((a = i.tooltip) != null && a.label), children: /* @__PURE__ */ e(
6292
6325
  ue,
6293
6326
  {
6294
6327
  label: (c = i.tooltip) == null ? void 0 : c.label,
6295
- arrowPosition: (u = i.tooltip) == null ? void 0 : u.arrowPosition,
6328
+ arrowPosition: (h = i.tooltip) == null ? void 0 : h.arrowPosition,
6296
6329
  ...i.tooltip,
6297
6330
  children: /* @__PURE__ */ e(
6298
- k,
6331
+ S,
6299
6332
  {
6300
6333
  name: "InfoCircle",
6301
6334
  size: t === "lg" ? "sm" : "xs",
@@ -6327,15 +6360,15 @@ const er = {
6327
6360
  disabled: o = !1
6328
6361
  }) => {
6329
6362
  var m;
6330
- const [a, c] = W([]);
6363
+ const [a, c] = M([]);
6331
6364
  Z(() => {
6332
6365
  t && c([...t.map((g) => ({ id: g.id, isActive: g.isActive }))]);
6333
6366
  }, [t]);
6334
- const u = (m = a.find((g) => g.id === r)) == null ? void 0 : m.isActive, d = G(() => {
6367
+ const h = (m = a.find((g) => g.id === r)) == null ? void 0 : m.isActive, d = G(() => {
6335
6368
  c(
6336
6369
  (g) => g.map((y) => y.id === r ? { ...y, isActive: !y.isActive } : y)
6337
- ), n && n(!u);
6338
- }, [r, n, u]);
6370
+ ), n && n(!h);
6371
+ }, [r, n, h]);
6339
6372
  return /* @__PURE__ */ e(
6340
6373
  f,
6341
6374
  {
@@ -6348,9 +6381,9 @@ const er = {
6348
6381
  wt,
6349
6382
  {
6350
6383
  disabled: o,
6351
- checked: u,
6384
+ checked: h,
6352
6385
  onChange: d,
6353
- label: u ? "Active" : "Inactive"
6386
+ label: h ? "Active" : "Inactive"
6354
6387
  }
6355
6388
  )
6356
6389
  }
@@ -6369,7 +6402,7 @@ const er = {
6369
6402
  InputImgFile: Di,
6370
6403
  Custom: wi
6371
6404
  }, ki = ({ customBottom: t }) => {
6372
- const [r, n] = W(!1), l = () => {
6405
+ const [r, n] = M(!1), l = () => {
6373
6406
  window.scrollY > window.screenY ? n(!0) : n(!1);
6374
6407
  }, i = () => {
6375
6408
  window.scrollTo({ top: 0, behavior: "smooth" });
@@ -6404,7 +6437,7 @@ const er = {
6404
6437
  onClick: i,
6405
6438
  type: "button",
6406
6439
  iconLeft: /* @__PURE__ */ e(
6407
- k,
6440
+ S,
6408
6441
  {
6409
6442
  width: 16,
6410
6443
  size: "xs",
@@ -6422,7 +6455,7 @@ const er = {
6422
6455
  );
6423
6456
  }, Pl = ({ pageLayout: t, children: r, wrapperProps: n, containerProps: l }) => {
6424
6457
  const i = he("md"), o = (l == null ? void 0 : l.customWidth) ?? 264;
6425
- return /* @__PURE__ */ h(
6458
+ return /* @__PURE__ */ u(
6426
6459
  f,
6427
6460
  {
6428
6461
  display: "block",
@@ -6465,7 +6498,7 @@ const er = {
6465
6498
  withScrollToTopButton: r = !1,
6466
6499
  scrollToTopButtonProps: n,
6467
6500
  containerProps: l
6468
- }) => /* @__PURE__ */ e(f, { direction: "column", position: "absolute", width: "width-full", style: { zIndex: "var(--app-footer-zindex, 999)" }, children: /* @__PURE__ */ h(
6501
+ }) => /* @__PURE__ */ e(f, { direction: "column", position: "absolute", width: "width-full", style: { zIndex: "var(--app-footer-zindex, 999)" }, children: /* @__PURE__ */ u(
6469
6502
  f,
6470
6503
  {
6471
6504
  position: "fixed",
@@ -6502,9 +6535,9 @@ const er = {
6502
6535
  of: t,
6503
6536
  render: (r, n) => /* @__PURE__ */ e(Si, { ...r }, n)
6504
6537
  }
6505
- ) }), Si = ({ title: t, value: r, icon: n }) => /* @__PURE__ */ h(f, { display: "flex", direction: "column", gap: "sm", children: [
6506
- n ? /* @__PURE__ */ h(f, { display: "flex", direction: "row", align: "center", gap: "xs", children: [
6507
- /* @__PURE__ */ e(k, { name: n, color: "subtle" }),
6538
+ ) }), Si = ({ title: t, value: r, icon: n }) => /* @__PURE__ */ u(f, { display: "flex", direction: "column", gap: "sm", children: [
6539
+ n ? /* @__PURE__ */ u(f, { display: "flex", direction: "row", align: "center", gap: "xs", children: [
6540
+ /* @__PURE__ */ e(S, { name: n, color: "subtle" }),
6508
6541
  /* @__PURE__ */ e(v, { color: "gray-500", variant: "sub-h3", children: t })
6509
6542
  ] }) : /* @__PURE__ */ e(v, { color: "gray-500", variant: "sub-h3", children: t }),
6510
6543
  typeof r == "string" ? /* @__PURE__ */ e(v, { variant: "sub-h3", children: r }) : r
@@ -6513,7 +6546,7 @@ const er = {
6513
6546
  accent: "#78867F"
6514
6547
  };
6515
6548
  function Fi({ width: t, height: r }) {
6516
- return /* @__PURE__ */ e(ee, { children: /* @__PURE__ */ h(
6549
+ return /* @__PURE__ */ e(ee, { children: /* @__PURE__ */ u(
6517
6550
  "svg",
6518
6551
  {
6519
6552
  width: t || "100",
@@ -6664,13 +6697,13 @@ const Jl = ({
6664
6697
  leftIcon: o,
6665
6698
  showButton: a = !0,
6666
6699
  customHeight: c,
6667
- childrenButton: u,
6700
+ childrenButton: h,
6668
6701
  customIcon: d
6669
6702
  }) => {
6670
6703
  const m = () => {
6671
6704
  switch (l) {
6672
6705
  case "primary":
6673
- return /* @__PURE__ */ e(ee, { children: o ? /* @__PURE__ */ e(H, { primary: !0, iconLeft: o, onClick: n, children: u || t }) : /* @__PURE__ */ e(H, { primary: !0, onClick: n, children: u || t }) });
6706
+ return /* @__PURE__ */ e(ee, { children: o ? /* @__PURE__ */ e(H, { primary: !0, iconLeft: o, onClick: n, children: h || t }) : /* @__PURE__ */ e(H, { primary: !0, onClick: n, children: h || t }) });
6674
6707
  case "secondary":
6675
6708
  return /* @__PURE__ */ e(ee, { children: o ? /* @__PURE__ */ e(H, { secondary: !0, iconLeft: o, onClick: n, children: i ? /* @__PURE__ */ e(
6676
6709
  v,
@@ -6679,16 +6712,16 @@ const Jl = ({
6679
6712
  fontSize: "md",
6680
6713
  fontWeight: "medium",
6681
6714
  style: { color: "var(--sa-background-success, #28ac6e)" },
6682
- children: u || t
6715
+ children: h || t
6683
6716
  }
6684
- ) : t }) : /* @__PURE__ */ e(H, { secondary: !0, onClick: n, children: u || t }) });
6717
+ ) : t }) : /* @__PURE__ */ e(H, { secondary: !0, onClick: n, children: h || t }) });
6685
6718
  case "success":
6686
- return /* @__PURE__ */ e(ee, { children: o ? /* @__PURE__ */ e(H, { success: !0, iconLeft: o, onClick: n, children: u || t }) : /* @__PURE__ */ e(H, { success: !0, onClick: n, children: u || t }) });
6719
+ return /* @__PURE__ */ e(ee, { children: o ? /* @__PURE__ */ e(H, { success: !0, iconLeft: o, onClick: n, children: h || t }) : /* @__PURE__ */ e(H, { success: !0, onClick: n, children: h || t }) });
6687
6720
  default:
6688
- return /* @__PURE__ */ e(ee, { children: o ? /* @__PURE__ */ e(H, { primary: !0, iconLeft: o, onClick: n, children: u || t }) : /* @__PURE__ */ e(H, { primary: !0, onClick: n, children: u || t }) });
6721
+ return /* @__PURE__ */ e(ee, { children: o ? /* @__PURE__ */ e(H, { primary: !0, iconLeft: o, onClick: n, children: h || t }) : /* @__PURE__ */ e(H, { primary: !0, onClick: n, children: h || t }) });
6689
6722
  }
6690
6723
  };
6691
- return /* @__PURE__ */ h(
6724
+ return /* @__PURE__ */ u(
6692
6725
  f,
6693
6726
  {
6694
6727
  height: "height-full",
@@ -6727,7 +6760,7 @@ const Jl = ({
6727
6760
  cFFFFFF: "#FFFFFF"
6728
6761
  };
6729
6762
  function Ei({ width: t, height: r }) {
6730
- return /* @__PURE__ */ e(ee, { children: /* @__PURE__ */ h(
6763
+ return /* @__PURE__ */ e(ee, { children: /* @__PURE__ */ u(
6731
6764
  "svg",
6732
6765
  {
6733
6766
  width: t,
@@ -6931,7 +6964,7 @@ function Ei({ width: t, height: r }) {
6931
6964
  }
6932
6965
  function Ul({ onClick: t }) {
6933
6966
  const r = he("md");
6934
- return /* @__PURE__ */ h(
6967
+ return /* @__PURE__ */ u(
6935
6968
  f,
6936
6969
  {
6937
6970
  direction: "column",
@@ -6988,7 +7021,7 @@ const _ = {
6988
7021
  cFFFFFF: "#FFFFFF"
6989
7022
  };
6990
7023
  function Li({ width: t, height: r }) {
6991
- return /* @__PURE__ */ e(ee, { children: /* @__PURE__ */ h(
7024
+ return /* @__PURE__ */ e(ee, { children: /* @__PURE__ */ u(
6992
7025
  "svg",
6993
7026
  {
6994
7027
  width: t,
@@ -7008,7 +7041,7 @@ function Li({ width: t, height: r }) {
7008
7041
  fillOpacity: "0.6"
7009
7042
  }
7010
7043
  ),
7011
- /* @__PURE__ */ h("g", { clipPath: "url(#clip0_2949_9690)", children: [
7044
+ /* @__PURE__ */ u("g", { clipPath: "url(#clip0_2949_9690)", children: [
7012
7045
  /* @__PURE__ */ e(
7013
7046
  "path",
7014
7047
  {
@@ -7105,7 +7138,7 @@ function Li({ width: t, height: r }) {
7105
7138
  )
7106
7139
  }
7107
7140
  ),
7108
- /* @__PURE__ */ h("g", { mask: "url(#mask0_2949_9690)", children: [
7141
+ /* @__PURE__ */ u("g", { mask: "url(#mask0_2949_9690)", children: [
7109
7142
  /* @__PURE__ */ e(
7110
7143
  "path",
7111
7144
  {
@@ -7204,7 +7237,7 @@ function Li({ width: t, height: r }) {
7204
7237
  }
7205
7238
  function Ql({ onClick: t }) {
7206
7239
  const r = he("md");
7207
- return /* @__PURE__ */ h(
7240
+ return /* @__PURE__ */ u(
7208
7241
  f,
7209
7242
  {
7210
7243
  direction: "column",
@@ -7240,7 +7273,7 @@ const s = {
7240
7273
  cFFFFFF: "#FFFFFF"
7241
7274
  };
7242
7275
  function Mi({ width: t, height: r }) {
7243
- return /* @__PURE__ */ e(ee, { children: /* @__PURE__ */ h(
7276
+ return /* @__PURE__ */ e(ee, { children: /* @__PURE__ */ u(
7244
7277
  "svg",
7245
7278
  {
7246
7279
  width: t,
@@ -7913,7 +7946,7 @@ function Mi({ width: t, height: r }) {
7913
7946
  }
7914
7947
  function Yl({ onClick: t }) {
7915
7948
  const r = he("md");
7916
- return /* @__PURE__ */ h(
7949
+ return /* @__PURE__ */ u(
7917
7950
  f,
7918
7951
  {
7919
7952
  direction: "column",
@@ -7952,7 +7985,7 @@ function Yl({ onClick: t }) {
7952
7985
  const Xl = (t) => {
7953
7986
  var n, l, i, o, a;
7954
7987
  const r = he("md");
7955
- return /* @__PURE__ */ h(
7988
+ return /* @__PURE__ */ u(
7956
7989
  vt,
7957
7990
  {
7958
7991
  isShow: t.isShow,
@@ -7974,7 +8007,7 @@ const Xl = (t) => {
7974
8007
  direction: ((n = t.containerConfirmBtnProps) == null ? void 0 : n.direction) || "row",
7975
8008
  justify: ((l = t.containerConfirmBtnProps) == null ? void 0 : l.justify) || "flex-end",
7976
8009
  ...t.containerConfirmBtnProps,
7977
- children: /* @__PURE__ */ h(
8010
+ children: /* @__PURE__ */ u(
7978
8011
  f,
7979
8012
  {
7980
8013
  display: "flex",
@@ -8023,30 +8056,30 @@ const Xl = (t) => {
8023
8056
  paddingBlock: o = "spacing-0",
8024
8057
  header: a,
8025
8058
  footer: c,
8026
- title: u,
8059
+ title: h,
8027
8060
  titleTag: d,
8028
8061
  action: m,
8029
8062
  actionContainer: g,
8030
8063
  containerProps: y,
8031
8064
  bodyProps: x,
8032
- headerProps: F = { borderBottom: !0 },
8065
+ headerProps: D = { borderBottom: !0 },
8033
8066
  footerProps: p = { borderTop: !0 },
8034
8067
  variantTag: E = "info"
8035
8068
  }) => {
8036
- const M = oe(null), [w, O] = W("100vh");
8069
+ const W = oe(null), [k, O] = M("100vh");
8037
8070
  Z(() => {
8038
- const S = () => {
8039
- if (M.current) {
8040
- const j = M.current.getBoundingClientRect().top;
8071
+ const F = () => {
8072
+ if (W.current) {
8073
+ const j = W.current.getBoundingClientRect().top;
8041
8074
  O(`calc(100vh - ${j}px)`);
8042
8075
  }
8043
8076
  };
8044
- return S(), window.addEventListener("resize", S), () => window.removeEventListener("resize", S);
8077
+ return F(), window.addEventListener("resize", F), () => window.removeEventListener("resize", F);
8045
8078
  }, []);
8046
- const C = () => d ? /* @__PURE__ */ h(f, { direction: "row", gap: "sm", align: "center", children: [
8047
- /* @__PURE__ */ e(v, { fontWeight: "medium", children: u }),
8048
- /* @__PURE__ */ e(je, { border: !0, text: d, variant: E })
8049
- ] }) : /* @__PURE__ */ e(v, { fontWeight: "medium", children: u }), L = () => a || /* @__PURE__ */ h(
8079
+ const C = () => d ? /* @__PURE__ */ u(f, { direction: "row", gap: "sm", align: "center", children: [
8080
+ /* @__PURE__ */ e(v, { fontWeight: "medium", children: h }),
8081
+ /* @__PURE__ */ e($e, { border: !0, text: d, variant: E })
8082
+ ] }) : /* @__PURE__ */ e(v, { fontWeight: "medium", children: h }), L = () => a || /* @__PURE__ */ u(
8050
8083
  f,
8051
8084
  {
8052
8085
  direction: "row",
@@ -8054,15 +8087,15 @@ const Xl = (t) => {
8054
8087
  align: "flex-start",
8055
8088
  gap: "md",
8056
8089
  children: [
8057
- /* @__PURE__ */ e(f, { direction: "column", children: u ? C() : null }),
8090
+ /* @__PURE__ */ e(f, { direction: "column", children: h ? C() : null }),
8058
8091
  /* @__PURE__ */ e(f, { direction: "column", ...g, children: m ?? null })
8059
8092
  ]
8060
8093
  }
8061
- ), z = !!(a || u || m);
8062
- return /* @__PURE__ */ h(
8094
+ ), z = !!(a || h || m);
8095
+ return /* @__PURE__ */ u(
8063
8096
  f,
8064
8097
  {
8065
- ref: M,
8098
+ ref: W,
8066
8099
  height: r,
8067
8100
  customMinHeight: n,
8068
8101
  customHeight: l,
@@ -8074,11 +8107,11 @@ const Xl = (t) => {
8074
8107
  style: {
8075
8108
  backgroundColor: "var(--sa-background-primary, #ffffff)",
8076
8109
  display: "flex",
8077
- minHeight: w,
8110
+ minHeight: k,
8078
8111
  ...(y == null ? void 0 : y.style) ?? {}
8079
8112
  },
8080
8113
  children: [
8081
- a !== null && z ? /* @__PURE__ */ e(mr, { ...F, children: L() }) : null,
8114
+ a !== null && z ? /* @__PURE__ */ e(mr, { ...D, children: L() }) : null,
8082
8115
  /* @__PURE__ */ e(
8083
8116
  f,
8084
8117
  {
@@ -8101,18 +8134,18 @@ const Xl = (t) => {
8101
8134
  ), eo = Ke.memo(
8102
8135
  ({ value: t, options: r = [], onChange: n, multiple: l }) => {
8103
8136
  const i = (t == null ? void 0 : t.map((c) => c.value)) || [], o = (r == null ? void 0 : r.filter((c) => i.includes(c.value))) || [], a = (c) => {
8104
- const u = [...o];
8137
+ const h = [...o];
8105
8138
  let d = [];
8106
- l ? d = i.includes(c.value) ? u.filter((m) => m.value !== c.value) : [...u, c] : d = [c], n == null || n(d);
8139
+ l ? d = i.includes(c.value) ? h.filter((m) => m.value !== c.value) : [...h, c] : d = [c], n == null || n(d);
8107
8140
  };
8108
- return /* @__PURE__ */ e(f, { direction: "row", gap: "sm", flexWrap: "wrap", children: r == null ? void 0 : r.map((c, u) => /* @__PURE__ */ e(
8141
+ return /* @__PURE__ */ e(f, { direction: "row", gap: "sm", flexWrap: "wrap", children: r == null ? void 0 : r.map((c, h) => /* @__PURE__ */ e(
8109
8142
  H,
8110
8143
  {
8111
8144
  ...i.includes(c.value) ? { primary: !0 } : { secondary: !0 },
8112
8145
  onClick: () => a(c),
8113
8146
  children: c.label
8114
8147
  },
8115
- u
8148
+ h
8116
8149
  )) });
8117
8150
  }
8118
8151
  );
@@ -8158,12 +8191,12 @@ const se = {
8158
8191
  {
8159
8192
  mode: "modal",
8160
8193
  label: "Modal",
8161
- icon: /* @__PURE__ */ e(k, { name: "Newscreen", size: "sm" })
8194
+ icon: /* @__PURE__ */ e(S, { name: "Newscreen", size: "sm" })
8162
8195
  },
8163
8196
  {
8164
8197
  mode: "fullscreen",
8165
8198
  label: "Fullscreen",
8166
- icon: /* @__PURE__ */ e(k, { name: "Fullscreen", size: "sm" })
8199
+ icon: /* @__PURE__ */ e(S, { name: "Fullscreen", size: "sm" })
8167
8200
  }
8168
8201
  ];
8169
8202
  function Bi({ value: t, onChange: r }) {
@@ -8182,7 +8215,7 @@ function Bi({ value: t, onChange: r }) {
8182
8215
  )) });
8183
8216
  }
8184
8217
  function zi() {
8185
- return /* @__PURE__ */ h(
8218
+ return /* @__PURE__ */ u(
8186
8219
  "svg",
8187
8220
  {
8188
8221
  xmlns: "http://www.w3.org/2000/svg",
@@ -8226,13 +8259,13 @@ function Ii(t) {
8226
8259
  onViewModeChange: o,
8227
8260
  showViewModeToggle: a = !0,
8228
8261
  showCloseButton: c = !0,
8229
- size: u,
8262
+ size: h,
8230
8263
  asideWidth: d,
8231
8264
  disableEscapeClose: m = !1,
8232
8265
  disableBackdropClose: g = !1,
8233
8266
  lockBodyScroll: y = !0,
8234
8267
  children: x
8235
- } = t, [F, p] = W(i), E = l ?? F, w = he("md") ? E : "fullscreen", O = G(
8268
+ } = t, [D, p] = M(i), E = l ?? D, k = he("md") ? E : "fullscreen", O = G(
8236
8269
  (K) => {
8237
8270
  l === void 0 && p(K), o == null || o(K);
8238
8271
  },
@@ -8256,7 +8289,7 @@ function Ii(t) {
8256
8289
  ), z = de(
8257
8290
  () => Ye(x, Bt),
8258
8291
  [x]
8259
- ), S = de(
8292
+ ), F = de(
8260
8293
  () => Ye(x, zt),
8261
8294
  [x]
8262
8295
  ), j = de(
@@ -8266,16 +8299,16 @@ function Ii(t) {
8266
8299
  if (!r) return null;
8267
8300
  const te = [
8268
8301
  se["lyd-panel"],
8269
- w === "modal" && se["lyd-modal"],
8270
- w === "fullscreen" && se["lyd-fullscreen"],
8271
- w === "sidebar" && se["lyd-sidebar"]
8302
+ k === "modal" && se["lyd-modal"],
8303
+ k === "fullscreen" && se["lyd-fullscreen"],
8304
+ k === "sidebar" && se["lyd-sidebar"]
8272
8305
  ].filter(Boolean).join(" "), X = {
8273
- "--lyd-max-w": Ai(u),
8306
+ "--lyd-max-w": Ai(h),
8274
8307
  ...d !== void 0 && { "--lyd-aside-w": d }
8275
8308
  }, $ = () => {
8276
8309
  g || n();
8277
8310
  };
8278
- return /* @__PURE__ */ h(
8311
+ return /* @__PURE__ */ u(
8279
8312
  "div",
8280
8313
  {
8281
8314
  className: se["lyd-root"],
@@ -8291,10 +8324,10 @@ function Ii(t) {
8291
8324
  "aria-hidden": "true"
8292
8325
  }
8293
8326
  ),
8294
- /* @__PURE__ */ h("div", { className: te, children: [
8295
- /* @__PURE__ */ h("div", { className: se["lyd-header"], children: [
8327
+ /* @__PURE__ */ u("div", { className: te, children: [
8328
+ /* @__PURE__ */ u("div", { className: se["lyd-header"], children: [
8296
8329
  /* @__PURE__ */ e("div", { className: se["lyd-header-content"], children: L }),
8297
- /* @__PURE__ */ h("div", { className: se["lyd-header-actions"], children: [
8330
+ /* @__PURE__ */ u("div", { className: se["lyd-header-actions"], children: [
8298
8331
  a && /* @__PURE__ */ e(Bi, { value: E, onChange: O }),
8299
8332
  c && /* @__PURE__ */ e(
8300
8333
  "button",
@@ -8303,14 +8336,14 @@ function Ii(t) {
8303
8336
  className: se["lyd-close-btn"],
8304
8337
  onClick: n,
8305
8338
  "aria-label": "Close dialog",
8306
- children: /* @__PURE__ */ e(k, { name: "Cross", size: "md" })
8339
+ children: /* @__PURE__ */ e(S, { name: "Cross", size: "md" })
8307
8340
  }
8308
8341
  )
8309
8342
  ] })
8310
8343
  ] }),
8311
- /* @__PURE__ */ h("div", { className: se["lyd-main"], children: [
8344
+ /* @__PURE__ */ u("div", { className: se["lyd-main"], children: [
8312
8345
  /* @__PURE__ */ e("div", { className: se["lyd-body"], children: z }),
8313
- S && /* @__PURE__ */ e("aside", { className: se["lyd-aside"], children: S })
8346
+ F && /* @__PURE__ */ e("aside", { className: se["lyd-aside"], children: F })
8314
8347
  ] }),
8315
8348
  j && /* @__PURE__ */ e("div", { className: se["lyd-footer"], children: j })
8316
8349
  ] })
@@ -8329,7 +8362,7 @@ function to({ url: t, filename: r, onClose: n }) {
8329
8362
  i.key === "Escape" && n();
8330
8363
  };
8331
8364
  return window.addEventListener("keydown", l), () => window.removeEventListener("keydown", l);
8332
- }, [n]), /* @__PURE__ */ h(
8365
+ }, [n]), /* @__PURE__ */ u(
8333
8366
  "div",
8334
8367
  {
8335
8368
  onClick: n,
@@ -8345,7 +8378,7 @@ function to({ url: t, filename: r, onClose: n }) {
8345
8378
  gap: "12px"
8346
8379
  },
8347
8380
  children: [
8348
- /* @__PURE__ */ h(
8381
+ /* @__PURE__ */ u(
8349
8382
  "div",
8350
8383
  {
8351
8384
  onClick: (l) => l.stopPropagation(),
@@ -8425,10 +8458,10 @@ const ro = (t) => {
8425
8458
  const { defaultTab: r = 0, paramKey: n = "tab" } = t || {}, [l, i] = ot(), o = it(l.toString());
8426
8459
  return {
8427
8460
  activeTab: o[n] ? parseInt(o[n]) : r,
8428
- handleTabChange: (u) => {
8461
+ handleTabChange: (h) => {
8429
8462
  i({
8430
8463
  ...o,
8431
- [n]: u.toString()
8464
+ [n]: h.toString()
8432
8465
  });
8433
8466
  },
8434
8467
  searchQueries: o
@@ -8442,16 +8475,16 @@ function no({
8442
8475
  const l = Pe();
8443
8476
  Z(() => {
8444
8477
  let i = null, o = null;
8445
- for (const u of r) {
8446
- const d = u.items.find((m) => m.to ? m.to === "/" ? l.pathname === "/" : !!(m.to === l.pathname || l.pathname.startsWith(m.to + "/")) : !1);
8478
+ for (const h of r) {
8479
+ const d = h.items.find((m) => m.to ? m.to === "/" ? l.pathname === "/" : !!(m.to === l.pathname || l.pathname.startsWith(m.to + "/")) : !1);
8447
8480
  if (d) {
8448
- i = d, o = u;
8481
+ i = d, o = h;
8449
8482
  break;
8450
8483
  }
8451
8484
  }
8452
8485
  const a = [];
8453
8486
  i != null && i.title && a.push(i.title), o != null && o.name && a.push(o.name.toTitleCase());
8454
- const c = (u, d) => u.length > 0 ? `${u.join(" - ")} | ${d}` : d;
8487
+ const c = (h, d) => h.length > 0 ? `${h.join(" - ")} | ${d}` : d;
8455
8488
  document.title = (n || c)(a, t);
8456
8489
  }, [l.pathname]);
8457
8490
  }
@@ -8478,8 +8511,8 @@ function lo(t) {
8478
8511
  var l, i;
8479
8512
  const r = t.decodedAccessToken;
8480
8513
  return de(() => {
8481
- var u, d;
8482
- const o = ((d = (u = r == null ? void 0 : r.access) == null ? void 0 : u.role) == null ? void 0 : d.code) ?? "", a = Object.keys(t.role).reduce(
8514
+ var h, d;
8515
+ const o = ((d = (h = r == null ? void 0 : r.access) == null ? void 0 : h.role) == null ? void 0 : d.code) ?? "", a = Object.keys(t.role).reduce(
8483
8516
  (m, g) => {
8484
8517
  const y = `is${g.toLowerCase().replace(/(^\w|_\w)/g, (x) => x.replace("_", "").toUpperCase())}`;
8485
8518
  return { ...m, [y]: !1 };