@starasia/admin 1.2.8 → 1.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -3,12 +3,12 @@ import { Badges as XA } from "@starasia/badges";
3
3
  export * from "@starasia/badges";
4
4
  import { Box as a } from "@starasia/box";
5
5
  export * from "@starasia/box";
6
- import { Button as L } from "@starasia/button";
6
+ import { Button as b } from "@starasia/button";
7
7
  export * from "@starasia/button";
8
8
  export * from "@starasia/card";
9
9
  import { StarasiaDate as $A } from "@starasia/date";
10
10
  export * from "@starasia/date";
11
- import { Dialog as dA, DialogBody as hA, DialogTitle as BA, DialogFooter as xA } from "@starasia/dialog";
11
+ import { Dialog as QA, DialogBody as hA, DialogTitle as BA, DialogFooter as xA } from "@starasia/dialog";
12
12
  export * from "@starasia/dialog";
13
13
  import { Drawer as ae } from "@starasia/drawer";
14
14
  export * from "@starasia/drawer";
@@ -20,12 +20,12 @@ import { searchParamsToObject as DA } from "@starasia/http";
20
20
  export * from "@starasia/http";
21
21
  import { Input as IA } from "@starasia/input";
22
22
  export * from "@starasia/input";
23
- import { Menu as Ce, MenuButton as Be, MenuLists as we, MenuBody as Qe } from "@starasia/menu";
23
+ import { Menu as Ce, MenuButton as Be, MenuLists as we, MenuBody as de } from "@starasia/menu";
24
24
  export * from "@starasia/menu";
25
- import { Pagination as de } from "@starasia/pagination";
25
+ import { Pagination as Qe } from "@starasia/pagination";
26
26
  export * from "@starasia/pagination";
27
27
  export * from "@starasia/storage";
28
- import { Tr as QA, Td as sA, Table as Ae, Thead as he, Th as TA, Tbody as De } from "@starasia/table";
28
+ import { Tr as dA, Td as sA, Table as Ae, Thead as he, Th as TA, Tbody as De } from "@starasia/table";
29
29
  export * from "@starasia/table";
30
30
  export * from "@starasia/tabs";
31
31
  import { Textarea as Ie } from "@starasia/textarea";
@@ -41,7 +41,7 @@ import { Checkbox as FA } from "@starasia/checkbox";
41
41
  export * from "@starasia/checkbox";
42
42
  import { Radio as Me } from "@starasia/radio";
43
43
  export * from "@starasia/radio";
44
- import { Text as d } from "@starasia/text";
44
+ import { Text as Q } from "@starasia/text";
45
45
  export * from "@starasia/text";
46
46
  import { Icon as m } from "@starasia/icon";
47
47
  export * from "@starasia/icon";
@@ -54,7 +54,7 @@ export * from "@starasia/story-record";
54
54
  import { Skeleton as lA } from "@starasia/skeleton";
55
55
  export * from "@starasia/skeleton";
56
56
  import { jsx as A, jsxs as g, Fragment as W } from "react/jsx-runtime";
57
- import cA, { createContext as Ee, useState as b, useContext as me, memo as _, useRef as AA, useEffect as R, useLayoutEffect as zA, useMemo as oA, isValidElement as ie, forwardRef as HA, useCallback as JA, Children as ye, useImperativeHandle as xe } from "react";
57
+ import cA, { createContext as Ee, useState as G, useContext as me, memo as _, useRef as AA, useEffect as R, useLayoutEffect as zA, useMemo as oA, isValidElement as ie, forwardRef as HA, useCallback as JA, Children as ye, useImperativeHandle as xe } from "react";
58
58
  import "@starasia/css/dist/style.css";
59
59
  import { useSearchParams as uA, useNavigate as te, useLocation as SA, Outlet as WA, Link as fe, useParams as re } from "react-router";
60
60
  import Se from "react-easy-crop";
@@ -67,7 +67,7 @@ const Le = {
67
67
  setUserData: () => {
68
68
  }
69
69
  }, oe = Ee(Le), be = () => me(oe), Ge = (e) => {
70
- const [i, r] = b(
70
+ const [i, r] = G(
71
71
  (e == null ? void 0 : e.initialUserData) || null
72
72
  );
73
73
  return {
@@ -142,7 +142,7 @@ function pe({
142
142
  t(l), i();
143
143
  };
144
144
  return /* @__PURE__ */ A(
145
- dA,
145
+ QA,
146
146
  {
147
147
  isShow: e,
148
148
  onHide: i,
@@ -186,8 +186,8 @@ function pe({
186
186
  width: "64px",
187
187
  height: "64px",
188
188
  borderRadius: "12px",
189
- border: o === null ? "2px solid var(--hsd-ui-brand-primary-default, #3b82f6)" : "1px solid #e5e7eb",
190
- backgroundColor: o === null ? "var(--hsd-ui-brand-primary-light, #eff6ff)" : "rgba(255,255,255,0.85)",
189
+ border: o === null ? "2px solid var(--starasia-ui-brand-primary-default, #3b82f6)" : "1px solid #e5e7eb",
190
+ backgroundColor: o === null ? "var(--starasia-ui-brand-primary-light, #eff6ff)" : "rgba(255,255,255,0.85)",
191
191
  transition: "all 0.15s",
192
192
  backdropFilter: "blur(4px)"
193
193
  },
@@ -241,8 +241,8 @@ function pe({
241
241
  width: "64px",
242
242
  height: "64px",
243
243
  borderRadius: "12px",
244
- border: c ? "2px solid var(--hsd-ui-brand-primary-default, #3b82f6)" : "1px solid #e5e7eb",
245
- backgroundColor: c ? "var(--hsd-ui-brand-primary-light, #eff6ff)" : "rgba(255,255,255,0.85)",
244
+ border: c ? "2px solid var(--starasia-ui-brand-primary-default, #3b82f6)" : "1px solid #e5e7eb",
245
+ backgroundColor: c ? "var(--starasia-ui-brand-primary-light, #eff6ff)" : "rgba(255,255,255,0.85)",
246
246
  transition: "all 0.15s",
247
247
  backdropFilter: "blur(4px)"
248
248
  },
@@ -288,9 +288,9 @@ function Zt({
288
288
  sidebarHeaderContent: c,
289
289
  showModuleSwitcher: s = !0
290
290
  }) {
291
- const [C] = uA(), Q = C.get("embed") === "true", w = be(), B = te(), u = SA(), D = !V("md"), [O, Y] = b(!1), [F, U] = b(!1), [p, k] = b(!1), [Z, H] = b(/* @__PURE__ */ new Set()), [P, X] = b(!1), [q, E] = b(!1), [f, M] = b(null), h = AA(null), N = AA(null);
291
+ const [C] = uA(), d = C.get("embed") === "true", w = be(), B = te(), u = SA(), h = !V("md"), [Y, p] = G(!1), [N, U] = G(!1), [L, k] = G(!1), [Z, H] = G(/* @__PURE__ */ new Set()), [P, X] = G(!1), [q, E] = G(!1), [f, M] = G(null), D = AA(null), F = AA(null);
292
292
  R(() => {
293
- const I = h.current;
293
+ const I = D.current;
294
294
  if (!I) return;
295
295
  const y = () => {
296
296
  gA || (EA = I.scrollTop);
@@ -298,7 +298,7 @@ function Zt({
298
298
  return I.addEventListener("scroll", y), () => I.removeEventListener("scroll", y);
299
299
  }, []);
300
300
  const x = () => {
301
- const I = h.current;
301
+ const I = D.current;
302
302
  I && EA > 0 && (gA = !0, I.scrollTop = EA, requestAnimationFrame(() => {
303
303
  gA = !1;
304
304
  }));
@@ -312,7 +312,7 @@ function Zt({
312
312
  }, []), zA(() => {
313
313
  w.menus.length > 0 && (EA > 0 ? x() : requestAnimationFrame(() => {
314
314
  var y;
315
- const I = (y = h.current) == null ? void 0 : y.querySelector(
315
+ const I = (y = D.current) == null ? void 0 : y.querySelector(
316
316
  "[data-menu-active='true']"
317
317
  );
318
318
  I && I.scrollIntoView({ block: "center", behavior: "instant" });
@@ -326,18 +326,18 @@ function Zt({
326
326
  clearTimeout(I), clearTimeout(y), clearTimeout(S), clearTimeout(v), clearTimeout(eA);
327
327
  };
328
328
  }, [u.pathname]), R(() => {
329
- N.current && (N.current.scrollTop = 0);
329
+ F.current && (F.current.scrollTop = 0);
330
330
  }, [u.pathname]), R(() => {
331
- D && k(!1);
332
- }, [u.pathname, D]), R(() => {
333
- D && U(!0);
334
- }, [D]);
331
+ h && k(!1);
332
+ }, [u.pathname, h]), R(() => {
333
+ h && U(!0);
334
+ }, [h]);
335
335
  const T = () => {
336
- Y(!0);
336
+ p(!0);
337
337
  }, tA = () => {
338
- Y(!1);
338
+ p(!1);
339
339
  }, wA = () => {
340
- Y(!1), t();
340
+ p(!1), t();
341
341
  }, MA = w.menus.flatMap(
342
342
  (I) => I.items.flatMap((y) => {
343
343
  const S = [y.to];
@@ -400,18 +400,20 @@ function Zt({
400
400
  X(!1);
401
401
  }, [u.pathname]), R(() => {
402
402
  s || E(!1);
403
- }, [s]), Q ? /* @__PURE__ */ A("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "#f9fafb" }, children: e || /* @__PURE__ */ A(WA, {}) }) : /* @__PURE__ */ g(W, { children: [
403
+ }, [s]), d ? /* @__PURE__ */ A("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "#f9fafb" }, children: e || /* @__PURE__ */ A(WA, {}) }) : /* @__PURE__ */ g(W, { children: [
404
404
  /* @__PURE__ */ g(
405
405
  "div",
406
406
  {
407
407
  style: {
408
408
  display: "flex",
409
409
  height: "100vh",
410
- backgroundColor: "#f9fafb",
411
- position: "relative"
410
+ // backgroundColor: "#f9fafb",
411
+ position: "relative",
412
+ "--app-sidebar-width": h ? "0px" : N ? "4rem" : "16rem",
413
+ "--app-footer-zindex": h && L ? "40" : "999"
412
414
  },
413
415
  children: [
414
- D && /* @__PURE__ */ A(
416
+ h && /* @__PURE__ */ A(
415
417
  "div",
416
418
  {
417
419
  style: {
@@ -419,8 +421,8 @@ function Zt({
419
421
  inset: 0,
420
422
  backgroundColor: "rgba(0, 0, 0, 0.5)",
421
423
  zIndex: 40,
422
- opacity: p ? 0.5 : 0,
423
- pointerEvents: p ? "auto" : "none",
424
+ opacity: L ? 0.5 : 0,
425
+ pointerEvents: L ? "auto" : "none",
424
426
  transition: "opacity 0.3s"
425
427
  },
426
428
  onClick: () => k(!1)
@@ -430,19 +432,19 @@ function Zt({
430
432
  "aside",
431
433
  {
432
434
  style: {
433
- width: D ? "16rem" : F ? "4rem" : "16rem",
434
- position: D ? "fixed" : "relative",
435
- ...D && {
435
+ width: h ? "16rem" : N ? "4rem" : "16rem",
436
+ position: h ? "fixed" : "relative",
437
+ ...h && {
436
438
  inset: 0,
437
439
  zIndex: 50,
438
- transform: p ? "translateX(0)" : "translateX(-100%)"
440
+ transform: L ? "translateX(0)" : "translateX(-100%)"
439
441
  },
440
442
  backgroundColor: "white",
441
443
  borderRight: "1px solid #e5e7eb",
442
444
  display: "flex",
443
445
  flexDirection: "column",
444
446
  transition: "all 0.3s ease-in-out",
445
- flexShrink: D ? void 0 : 0
447
+ flexShrink: h ? void 0 : 0
446
448
  },
447
449
  children: [
448
450
  /* @__PURE__ */ g(
@@ -479,7 +481,7 @@ function Zt({
479
481
  }
480
482
  }
481
483
  ),
482
- (!F || p) && /* @__PURE__ */ A(
484
+ (!N || L) && /* @__PURE__ */ A(
483
485
  "span",
484
486
  {
485
487
  style: {
@@ -494,7 +496,7 @@ function Zt({
494
496
  ]
495
497
  }
496
498
  ),
497
- D && /* @__PURE__ */ A(
499
+ h && /* @__PURE__ */ A(
498
500
  "button",
499
501
  {
500
502
  onClick: () => k(!1),
@@ -530,10 +532,10 @@ function Zt({
530
532
  ]
531
533
  }
532
534
  ),
533
- !D && /* @__PURE__ */ A(
535
+ !h && /* @__PURE__ */ A(
534
536
  "button",
535
537
  {
536
- onClick: () => U(!F),
538
+ onClick: () => U(!N),
537
539
  style: {
538
540
  position: "absolute",
539
541
  top: "1.5rem",
@@ -544,7 +546,7 @@ function Zt({
544
546
  display: "flex",
545
547
  alignItems: "center",
546
548
  justifyContent: "center",
547
- borderRadius: "0.5rem",
549
+ borderRadius: "var(--starasia-ui-radii-md)",
548
550
  backgroundColor: "white",
549
551
  border: "1px solid #d1d5db",
550
552
  boxShadow: "0 4px 6px rgba(0, 0, 0, 0.1)",
@@ -563,7 +565,7 @@ function Zt({
563
565
  stroke: "currentColor",
564
566
  viewBox: "0 0 24 24",
565
567
  strokeWidth: "2",
566
- children: F ? (
568
+ children: N ? (
567
569
  // Icon when collapsed (closed) - sidebar with arrow right
568
570
  /* @__PURE__ */ g(W, { children: [
569
571
  /* @__PURE__ */ A(
@@ -611,14 +613,14 @@ function Zt({
611
613
  c && /* @__PURE__ */ A(
612
614
  Ye,
613
615
  {
614
- collapsed: D ? !1 : F,
616
+ collapsed: h ? !1 : N,
615
617
  children: c
616
618
  }
617
619
  ),
618
620
  /* @__PURE__ */ A(
619
621
  "div",
620
622
  {
621
- ref: h,
623
+ ref: D,
622
624
  style: {
623
625
  flex: 1,
624
626
  overflowY: "auto",
@@ -626,7 +628,7 @@ function Zt({
626
628
  paddingBottom: "0.5rem"
627
629
  },
628
630
  children: bA.map((I) => /* @__PURE__ */ g("div", { style: { marginBottom: "1rem" }, children: [
629
- (!F || D) && /* @__PURE__ */ A(
631
+ (!N || h) && /* @__PURE__ */ A(
630
632
  "div",
631
633
  {
632
634
  style: {
@@ -644,7 +646,7 @@ function Zt({
644
646
  children: I.name
645
647
  }
646
648
  ),
647
- /* @__PURE__ */ A("div", { style: { paddingLeft: "0.5rem", paddingRight: "0.5rem" }, children: I.items.map((y) => {
649
+ /* @__PURE__ */ A("div", { style: { paddingLeft: "0.5rem", paddingRight: "0.5rem", display: "flex", flexDirection: "column", gap: "var(--starasia-ui-spacing-xs)" }, children: I.items.map((y) => {
648
650
  const S = y.children && y.children.length > 0, v = Z.has(y.id), eA = S ? y.children.some(($) => CA($.to)) : CA(y.to);
649
651
  return /* @__PURE__ */ g("div", { "data-menu-active": eA || void 0, children: [
650
652
  /* @__PURE__ */ g(
@@ -657,20 +659,21 @@ function Zt({
657
659
  width: "100%",
658
660
  display: "flex",
659
661
  alignItems: "center",
662
+ justifyContent: N && !h ? "center" : void 0,
660
663
  gap: "0.75rem",
661
- paddingLeft: "0.75rem",
662
- paddingRight: "0.75rem",
664
+ paddingLeft: N && !h ? "0" : "0.75rem",
665
+ paddingRight: N && !h ? "0" : "0.75rem",
663
666
  paddingTop: "0.5rem",
664
667
  paddingBottom: "0.5rem",
665
- borderRadius: "0.5rem",
668
+ borderRadius: "var(--starasia-ui-radii-md)",
666
669
  textAlign: "left",
667
670
  border: "none",
668
- backgroundColor: eA ? "#dbeafe" : "transparent",
669
- color: eA ? "#1e40af" : "#374151",
671
+ backgroundColor: eA ? "var(--starasia-ui-brand-primary-tertiary)" : "transparent",
672
+ color: eA ? "var(--starasia-ui-brand-primary-default)" : "#374151",
670
673
  transition: "all 0.2s",
671
674
  cursor: "pointer"
672
675
  },
673
- title: F && !D ? y.title : void 0,
676
+ title: N && !h ? y.title : void 0,
674
677
  onMouseEnter: ($) => {
675
678
  eA || ($.currentTarget.style.backgroundColor = "#f3f4f6");
676
679
  },
@@ -679,7 +682,7 @@ function Zt({
679
682
  },
680
683
  children: [
681
684
  /* @__PURE__ */ A(m, { name: y.icon, size: "sm", style: { flexShrink: 0 } }),
682
- (!F || D) && /* @__PURE__ */ g(W, { children: [
685
+ (!N || h) && /* @__PURE__ */ g(W, { children: [
683
686
  /* @__PURE__ */ A(
684
687
  "span",
685
688
  {
@@ -721,7 +724,7 @@ function Zt({
721
724
  ]
722
725
  }
723
726
  ),
724
- S && (!F || D) && /* @__PURE__ */ A(
727
+ S && (!N || h) && /* @__PURE__ */ A(
725
728
  "div",
726
729
  {
727
730
  style: {
@@ -747,11 +750,11 @@ function Zt({
747
750
  paddingRight: "0.75rem",
748
751
  paddingTop: "0.5rem",
749
752
  paddingBottom: "0.5rem",
750
- borderRadius: "0.5rem",
753
+ borderRadius: "var(--starasia-ui-radii-md)",
751
754
  textAlign: "left",
752
755
  border: "none",
753
- backgroundColor: CA($.to) ? "#dbeafe" : "transparent",
754
- color: CA($.to) ? "#1e40af" : "#4b5563",
756
+ backgroundColor: CA($.to) ? "var(--starasia-ui-brand-primary-tertiary)" : "transparent",
757
+ color: CA($.to) ? "var(--starasia-ui-brand-primary-default)" : "#4b5563",
755
758
  transition: "all 0.2s",
756
759
  cursor: "pointer"
757
760
  },
@@ -812,7 +815,7 @@ function Zt({
812
815
  },
813
816
  children: [
814
817
  /* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center", gap: "1rem" }, children: [
815
- D && /* @__PURE__ */ A(
818
+ h && /* @__PURE__ */ A(
816
819
  "button",
817
820
  {
818
821
  onClick: () => k(!0),
@@ -858,7 +861,7 @@ function Zt({
858
861
  justifyContent: "center",
859
862
  width: "2.25rem",
860
863
  height: "2.25rem",
861
- borderRadius: "0.5rem",
864
+ borderRadius: "var(--starasia-ui-radii-md)",
862
865
  border: "1px solid #e5e7eb",
863
866
  color: "#374151",
864
867
  backgroundColor: "transparent",
@@ -901,7 +904,7 @@ function Zt({
901
904
  justifyContent: "center",
902
905
  width: "2.25rem",
903
906
  height: "2.25rem",
904
- borderRadius: "0.5rem",
907
+ borderRadius: "var(--starasia-ui-radii-md)",
905
908
  border: "1px solid #e5e7eb",
906
909
  color: "#374151",
907
910
  backgroundColor: "transparent",
@@ -1037,7 +1040,7 @@ function Zt({
1037
1040
  fontSize: "0.875rem",
1038
1041
  boxShadow: "0 1px 2px rgba(0, 0, 0, 0.05)",
1039
1042
  flexShrink: 0,
1040
- backgroundColor: "var(--hsd-ui-brand-primary-default, #3b82f6)"
1043
+ backgroundColor: "var(--starasia-ui-brand-primary-default)"
1041
1044
  },
1042
1045
  children: ((r == null ? void 0 : r.name) || "U")[0].toUpperCase()
1043
1046
  }
@@ -1052,7 +1055,7 @@ function Zt({
1052
1055
  /* @__PURE__ */ A(
1053
1056
  "main",
1054
1057
  {
1055
- ref: N,
1058
+ ref: F,
1056
1059
  style: {
1057
1060
  flex: 1,
1058
1061
  overflowY: "auto"
@@ -1089,12 +1092,12 @@ function Zt({
1089
1092
  onSelect: se
1090
1093
  }
1091
1094
  ),
1092
- /* @__PURE__ */ g(dA, { isShow: O, onHide: tA, children: [
1095
+ /* @__PURE__ */ g(QA, { isShow: Y, onHide: tA, children: [
1093
1096
  /* @__PURE__ */ A(BA, { children: "Confirmation Logout" }),
1094
1097
  /* @__PURE__ */ A(hA, { children: "Are you sure you want to end the session and exit the page?" }),
1095
1098
  /* @__PURE__ */ A(xA, { children: /* @__PURE__ */ A(a, { display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ g(J, { direction: "row", gap: "sm", align: "center", children: [
1096
- /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(L, { secondary: !0, onClick: tA, children: "Cancel" }) }),
1097
- /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(L, { primary: !0, onClick: wA, children: "Yes, Sure" }) })
1099
+ /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(b, { secondary: !0, onClick: tA, children: "Cancel" }) }),
1100
+ /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(b, { primary: !0, onClick: wA, children: "Yes, Sure" }) })
1098
1101
  ] }) }) })
1099
1102
  ] })
1100
1103
  ] });
@@ -1221,10 +1224,10 @@ const Ht = _(
1221
1224
  verticalAlign: n
1222
1225
  }),
1223
1226
  [t]
1224
- ), s = () => typeof i == "string" ? /* @__PURE__ */ A(d, { fontWeight: "medium", color: "gray-500", children: i }) : i, C = () => typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ A(d, { color: "text", fontWeight: "medium", children: e }) : e;
1225
- return /* @__PURE__ */ g(QA, { children: [
1227
+ ), s = () => typeof i == "string" ? /* @__PURE__ */ A(Q, { fontWeight: "medium", color: "gray-500", children: i }) : i, C = () => typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ A(Q, { color: "text", fontWeight: "medium", children: e }) : e;
1228
+ return /* @__PURE__ */ g(dA, { children: [
1226
1229
  /* @__PURE__ */ A(sA, { style: l, width: o, children: s() }),
1227
- r ? /* @__PURE__ */ A(sA, { style: c, width: 24, children: /* @__PURE__ */ A(d, { fontWeight: "medium", color: "gray-500", children: ":" }) }) : null,
1230
+ r ? /* @__PURE__ */ A(sA, { style: c, width: 24, children: /* @__PURE__ */ A(Q, { fontWeight: "medium", color: "gray-500", children: ":" }) }) : null,
1228
1231
  /* @__PURE__ */ A(sA, { style: l, children: C() })
1229
1232
  ] });
1230
1233
  }
@@ -1317,20 +1320,20 @@ const Ht = _(
1317
1320
  }, s = () => {
1318
1321
  switch (l) {
1319
1322
  case "info":
1320
- return /* @__PURE__ */ A(L, { primary: !0, onClick: o, children: n });
1323
+ return /* @__PURE__ */ A(b, { primary: !0, onClick: o, children: n });
1321
1324
  case "danger":
1322
- return /* @__PURE__ */ A(L, { danger: !0, onClick: o, children: n });
1325
+ return /* @__PURE__ */ A(b, { danger: !0, onClick: o, children: n });
1323
1326
  case "success":
1324
- return /* @__PURE__ */ A(L, { success: !0, onClick: o, children: n });
1327
+ return /* @__PURE__ */ A(b, { success: !0, onClick: o, children: n });
1325
1328
  default:
1326
- return /* @__PURE__ */ A(L, { primary: !0, onClick: o, children: n });
1329
+ return /* @__PURE__ */ A(b, { primary: !0, onClick: o, children: n });
1327
1330
  }
1328
1331
  };
1329
- return /* @__PURE__ */ g(dA, { isShow: t, onHide: r, children: [
1332
+ return /* @__PURE__ */ g(QA, { isShow: t, onHide: r, children: [
1330
1333
  c(),
1331
- /* @__PURE__ */ A(hA, { children: /* @__PURE__ */ A(d, { children: i }) }),
1334
+ /* @__PURE__ */ A(hA, { children: /* @__PURE__ */ A(Q, { children: i }) }),
1332
1335
  /* @__PURE__ */ A(xA, { children: /* @__PURE__ */ g(a, { justify: "flex-end", direction: "row", gap: "sm", children: [
1333
- /* @__PURE__ */ A(L, { secondary: !0, onClick: r, children: "Cancel" }),
1336
+ /* @__PURE__ */ A(b, { secondary: !0, onClick: r, children: "Cancel" }),
1334
1337
  s()
1335
1338
  ] }) })
1336
1339
  ] });
@@ -1356,21 +1359,21 @@ const Ht = _(
1356
1359
  containerProps: c,
1357
1360
  headerProps: s
1358
1361
  }) => {
1359
- const C = V("lg"), Q = te(), w = e == null ? void 0 : e.show, B = () => {
1362
+ const C = V("lg"), d = te(), w = e == null ? void 0 : e.show, B = () => {
1360
1363
  if (typeof (e == null ? void 0 : e.onClick) == "function") {
1361
1364
  e.onClick();
1362
1365
  return;
1363
1366
  }
1364
- Q(-1, { replace: !0 });
1367
+ d(-1, { replace: !0 });
1365
1368
  }, u = () => n ? ie(n) ? n : /* @__PURE__ */ A(a, { direction: "row", gap: "lg", children: n.map(
1366
- ({ title: Y, icon: F, buttonProps: U, onClick: p }, k) => !Y && !F ? null : /* @__PURE__ */ A(
1367
- L,
1369
+ ({ title: p, icon: N, buttonProps: U, onClick: L }, k) => !p && !N ? null : /* @__PURE__ */ A(
1370
+ b,
1368
1371
  {
1369
1372
  fullWidth: !C,
1370
- iconLeft: F ? /* @__PURE__ */ A(m, { name: F, size: "md" }) : void 0,
1371
- onClick: p,
1373
+ iconLeft: N ? /* @__PURE__ */ A(m, { name: N, size: "md" }) : void 0,
1374
+ onClick: L,
1372
1375
  ...U,
1373
- children: Y
1376
+ children: p
1374
1377
  },
1375
1378
  `action-${k}`
1376
1379
  )
@@ -1392,7 +1395,7 @@ const Ht = _(
1392
1395
  }
1393
1396
  ),
1394
1397
  /* @__PURE__ */ A(
1395
- d,
1398
+ Q,
1396
1399
  {
1397
1400
  color: "gray-500",
1398
1401
  fontWeight: "normal",
@@ -1417,7 +1420,7 @@ const Ht = _(
1417
1420
  }
1418
1421
  ),
1419
1422
  /* @__PURE__ */ A(
1420
- d,
1423
+ Q,
1421
1424
  {
1422
1425
  color: "gray-500",
1423
1426
  fontWeight: "normal",
@@ -1428,28 +1431,37 @@ const Ht = _(
1428
1431
  children: (e == null ? void 0 : e.title) || "Back"
1429
1432
  }
1430
1433
  )
1431
- ] }) }) }), D = () => /* @__PURE__ */ g(a, { gap: "sm", ...s, children: [
1432
- w && j(),
1433
- /* @__PURE__ */ g(
1434
- a,
1435
- {
1436
- direction: C ? "row" : "column",
1437
- gap: "lg",
1438
- justify: "space-between",
1439
- align: "center",
1440
- children: [
1441
- typeof i == "string" ? /* @__PURE__ */ g(a, { direction: "row", gap: "lg", align: "center", children: [
1442
- /* @__PURE__ */ A(d, { variant: "h2", fontWeight: "semibold", fontFamily: "Poppins", children: i }),
1443
- r && /* @__PURE__ */ A(XA, { border: !0, size: "lg", text: r, ...l })
1444
- ] }) : i,
1445
- u()
1446
- ]
1447
- }
1448
- )
1449
- ] }), O = () => o;
1434
+ ] }) }) }), h = () => /* @__PURE__ */ g(
1435
+ a,
1436
+ {
1437
+ gap: "sm",
1438
+ paddingTop: (s == null ? void 0 : s.paddingTop) || "lg",
1439
+ paddingInline: (s == null ? void 0 : s.paddingInline) || "xl",
1440
+ ...s,
1441
+ children: [
1442
+ w && j(),
1443
+ /* @__PURE__ */ g(
1444
+ a,
1445
+ {
1446
+ direction: C ? "row" : "column",
1447
+ gap: "lg",
1448
+ justify: "space-between",
1449
+ align: "center",
1450
+ children: [
1451
+ typeof i == "string" ? /* @__PURE__ */ g(a, { direction: "row", gap: "lg", align: "center", children: [
1452
+ /* @__PURE__ */ A(Q, { variant: "h2", fontWeight: "semibold", fontFamily: "Poppins", children: i }),
1453
+ r && /* @__PURE__ */ A(XA, { border: !0, size: "lg", text: r, ...l })
1454
+ ] }) : i,
1455
+ u()
1456
+ ]
1457
+ }
1458
+ )
1459
+ ]
1460
+ }
1461
+ ), Y = () => o;
1450
1462
  return /* @__PURE__ */ g(a, { gap: "lg", variant: "main", ...c, children: [
1451
- t && D(),
1452
- O()
1463
+ t && h(),
1464
+ Y()
1453
1465
  ] });
1454
1466
  }, Tt = _(Ke), Ze = {
1455
1467
  icon: "Cross",
@@ -1502,7 +1514,7 @@ const Ht = _(
1502
1514
  }
1503
1515
  ),
1504
1516
  /* @__PURE__ */ A(
1505
- d,
1517
+ Q,
1506
1518
  {
1507
1519
  fontFamily: "Poppins",
1508
1520
  fontSize: "md",
@@ -1560,31 +1572,31 @@ const Ht = _(
1560
1572
  onSearchChange: c,
1561
1573
  searchKey: s = "q",
1562
1574
  searchPlaceholder: C = "CTRL + K to search query",
1563
- searchHighlightPlaceholder: Q = "CTRL + K",
1575
+ searchHighlightPlaceholder: d = "CTRL + K",
1564
1576
  filterContainer: w,
1565
1577
  actionContainer: B,
1566
1578
  headerProps: u = { borderBottom: !0 },
1567
1579
  variantTag: j = "info"
1568
1580
  }) => {
1569
- const D = V("lg"), [O, Y] = uA(), F = O.get(s), U = DA(O.toString()), p = JA(
1581
+ const h = V("lg"), [Y, p] = uA(), N = Y.get(s), U = DA(Y.toString()), L = JA(
1570
1582
  ({ target: { value: P } }) => {
1571
- c && c(P), s && Y({ ...U, [s]: P });
1583
+ c && c(P), s && p({ ...U, [s]: P });
1572
1584
  },
1573
- [s, c, Y, U]
1585
+ [s, c, p, U]
1574
1586
  ), k = () => /* @__PURE__ */ A(
1575
1587
  IA,
1576
1588
  {
1577
1589
  placeholder: C,
1578
- highlightPlaceholder: Q,
1590
+ highlightPlaceholder: d,
1579
1591
  leftIcon: /* @__PURE__ */ A(m, { name: "Search", width: 20, height: 20 }),
1580
- onChange: p,
1592
+ onChange: L,
1581
1593
  style: { width: "100%" },
1582
- value: F || ""
1594
+ value: N || ""
1583
1595
  }
1584
1596
  ), Z = () => r ? /* @__PURE__ */ g(a, { direction: "row", gap: "sm", align: "center", children: [
1585
- /* @__PURE__ */ A(d, { fontWeight: "medium", children: i }),
1597
+ /* @__PURE__ */ A(Q, { fontWeight: "medium", children: i }),
1586
1598
  /* @__PURE__ */ A(XA, { border: !0, text: r, variant: j })
1587
- ] }) : /* @__PURE__ */ A(d, { fontWeight: "medium", children: i });
1599
+ ] }) : /* @__PURE__ */ A(Q, { fontWeight: "medium", children: i });
1588
1600
  return /* @__PURE__ */ g(
1589
1601
  a,
1590
1602
  {
@@ -1604,7 +1616,7 @@ const Ht = _(
1604
1616
  /* @__PURE__ */ A(
1605
1617
  a,
1606
1618
  {
1607
- style: D ? { width: "100%", maxWidth: "19.313rem" } : { flex: 1 },
1619
+ style: h ? { width: "100%", maxWidth: "19.313rem" } : { flex: 1 },
1608
1620
  ...B,
1609
1621
  children: o || (n ? k() : null)
1610
1622
  }
@@ -1618,7 +1630,7 @@ const Ht = _(
1618
1630
  );
1619
1631
  }
1620
1632
  ), qe = "#E6E9FB", Te = ({ children: e, onClick: i }) => {
1621
- const [r, o] = b("");
1633
+ const [r, o] = G("");
1622
1634
  return /* @__PURE__ */ A(
1623
1635
  aA,
1624
1636
  {
@@ -1659,31 +1671,31 @@ const Ht = _(
1659
1671
  [t]
1660
1672
  );
1661
1673
  return /* @__PURE__ */ g(Ce, { position: n, style: r, children: [
1662
- /* @__PURE__ */ A(Be, { style: o, children: /* @__PURE__ */ A(L, { size: "sm", secondary: !0, ...l, children: /* @__PURE__ */ A(m, { name: e, ...c }) }) }),
1663
- /* @__PURE__ */ A(we, { style: C, children: i.map((Q, w) => s === "outline-button" ? /* @__PURE__ */ A(Qe, { children: /* @__PURE__ */ g(
1664
- L,
1674
+ /* @__PURE__ */ A(Be, { style: o, children: /* @__PURE__ */ A(b, { size: "sm", secondary: !0, ...l, children: /* @__PURE__ */ A(m, { name: e, ...c }) }) }),
1675
+ /* @__PURE__ */ A(we, { style: C, children: i.map((d, w) => s === "outline-button" ? /* @__PURE__ */ A(de, { children: /* @__PURE__ */ g(
1676
+ b,
1665
1677
  {
1666
1678
  size: "sm",
1667
1679
  secondary: !0,
1668
1680
  fullWidth: !0,
1669
- onClick: Q.onClick,
1670
- ...Q.buttonProps,
1681
+ onClick: d.onClick,
1682
+ ...d.buttonProps,
1671
1683
  children: [
1672
- /* @__PURE__ */ A(m, { name: Q.icon, size: "md", ...Q.iconProps }),
1673
- /* @__PURE__ */ A(d, { fontSize: "sm", color: "text", ...Q.textProps, children: Q.label })
1684
+ /* @__PURE__ */ A(m, { name: d.icon, size: "md", ...d.iconProps }),
1685
+ /* @__PURE__ */ A(Q, { fontSize: "sm", color: "text", ...d.textProps, children: d.label })
1674
1686
  ]
1675
1687
  }
1676
- ) }, Q.id || w) : /* @__PURE__ */ g(
1688
+ ) }, d.id || w) : /* @__PURE__ */ g(
1677
1689
  Ue,
1678
1690
  {
1679
- onClick: Q.onClick,
1680
- ...Q.buttonProps,
1691
+ onClick: d.onClick,
1692
+ ...d.buttonProps,
1681
1693
  children: [
1682
- /* @__PURE__ */ A(m, { name: Q.icon, size: "md", ...Q.iconProps }),
1683
- /* @__PURE__ */ A(d, { fontSize: "sm", color: "text", ...Q.textProps, children: Q.label })
1694
+ /* @__PURE__ */ A(m, { name: d.icon, size: "md", ...d.iconProps }),
1695
+ /* @__PURE__ */ A(Q, { fontSize: "sm", color: "text", ...d.textProps, children: d.label })
1684
1696
  ]
1685
1697
  },
1686
- Q.id || w
1698
+ d.id || w
1687
1699
  )) })
1688
1700
  ] });
1689
1701
  }, Wt = _(We), ne = cA.memo(({ text: e, onClose: i }) => {
@@ -1705,7 +1717,7 @@ const Ht = _(
1705
1717
  align: "center",
1706
1718
  display: "flex",
1707
1719
  children: [
1708
- /* @__PURE__ */ A(a, { paddingLeft: "sm", flex: "1", children: /* @__PURE__ */ A(d, { children: e }) }),
1720
+ /* @__PURE__ */ A(a, { paddingLeft: "sm", flex: "1", children: /* @__PURE__ */ A(Q, { children: e }) }),
1709
1721
  /* @__PURE__ */ A(
1710
1722
  aA,
1711
1723
  {
@@ -1758,17 +1770,17 @@ const Ht = _(
1758
1770
  let r = new Date(e);
1759
1771
  return r = typeof e != "object" ? void 0 : r, r;
1760
1772
  }, Ve = cA.memo(({ title: e, resetButton: i }) => /* @__PURE__ */ g(a, { direction: "row", justify: "space-between", marginBottom: "md", children: [
1761
- /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(d, { fontWeight: "bold", children: e }) }),
1762
- /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(aA, { onClick: i == null ? void 0 : i.onClick, children: /* @__PURE__ */ A(d, { fontWeight: "bold", color: "error", children: (i == null ? void 0 : i.label) || "Reset" }) }) })
1773
+ /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(Q, { fontWeight: "bold", children: e }) }),
1774
+ /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(aA, { onClick: i == null ? void 0 : i.onClick, children: /* @__PURE__ */ A(Q, { fontWeight: "bold", color: "error", children: (i == null ? void 0 : i.label) || "Reset" }) }) })
1763
1775
  ] })), Xe = cA.memo(
1764
1776
  ({ value: e, options: i = [], onChange: r, multiple: o }) => {
1765
1777
  const t = (e == null ? void 0 : e.map((c) => c.value)) || [], n = (i == null ? void 0 : i.filter((c) => t.includes(c.value))) || [], l = (c) => {
1766
1778
  const s = [...n];
1767
1779
  let C = [];
1768
- o ? C = t.includes(c.value) ? s.filter((Q) => Q.value !== c.value) : [...s, c] : C = [c], r == null || r(C);
1780
+ o ? C = t.includes(c.value) ? s.filter((d) => d.value !== c.value) : [...s, c] : C = [c], r == null || r(C);
1769
1781
  };
1770
1782
  return /* @__PURE__ */ A(a, { direction: "row", gap: "sm", flexWrap: "wrap", children: i == null ? void 0 : i.map((c, s) => /* @__PURE__ */ A(
1771
- L,
1783
+ b,
1772
1784
  {
1773
1785
  ...t.includes(c.value) ? { primary: !0 } : { secondary: !0 },
1774
1786
  onClick: () => l(c),
@@ -1790,18 +1802,18 @@ const Ht = _(
1790
1802
  name: c,
1791
1803
  multiple: s,
1792
1804
  searchable: C,
1793
- onSearch: Q,
1805
+ onSearch: d,
1794
1806
  value: w,
1795
1807
  dateFilter: B,
1796
1808
  enableInputDate: u,
1797
1809
  withSearchParam: j,
1798
1810
  // disabled,
1799
- rangedDate: D,
1800
- disabled: O,
1801
- inputTextType: Y = "text",
1802
- min: F,
1811
+ rangedDate: h,
1812
+ disabled: Y,
1813
+ inputTextType: p = "text",
1814
+ min: N,
1803
1815
  max: U
1804
- }, p) => {
1816
+ }, L) => {
1805
1817
  const k = t == null ? void 0 : t.length;
1806
1818
  let Z;
1807
1819
  const H = () => {
@@ -1810,7 +1822,7 @@ const Ht = _(
1810
1822
  return /* @__PURE__ */ A(
1811
1823
  fA,
1812
1824
  {
1813
- onSearch: Q,
1825
+ onSearch: d,
1814
1826
  multiSelect: s,
1815
1827
  searchAble: C,
1816
1828
  placeholder: n,
@@ -1825,10 +1837,10 @@ const Ht = _(
1825
1837
  {
1826
1838
  input: u,
1827
1839
  filter: B,
1828
- value: Pe(w || Z, D),
1840
+ value: Pe(w || Z, h),
1829
1841
  onChange: (q) => o == null ? void 0 : o({ value: q, name: c, type: i }),
1830
- rangedDate: D,
1831
- ref: p
1842
+ rangedDate: h,
1843
+ ref: L
1832
1844
  }
1833
1845
  );
1834
1846
  case "select-button":
@@ -1848,12 +1860,12 @@ const Ht = _(
1848
1860
  onChange: ({ target: { value: q } }) => o == null ? void 0 : o({ value: q, name: c, type: i }),
1849
1861
  value: w || Z,
1850
1862
  placeholder: n,
1851
- disabled: O,
1852
- type: Y,
1863
+ disabled: Y,
1864
+ type: p,
1853
1865
  name: c,
1854
- ...Y === "number" && { min: F, max: U },
1855
- ...(!Y || Y === "text") && {
1856
- minLength: F,
1866
+ ...p === "number" && { min: N, max: U },
1867
+ ...(!p || p === "text") && {
1868
+ minLength: N,
1857
1869
  maxLength: U
1858
1870
  }
1859
1871
  }
@@ -1865,15 +1877,15 @@ const Ht = _(
1865
1877
  return k ? /* @__PURE__ */ A(a, { marginBottom: "lg", children: t == null ? void 0 : t.map((q, E) => /* @__PURE__ */ A(
1866
1878
  le,
1867
1879
  {
1868
- ref: p,
1880
+ ref: L,
1869
1881
  onChange: o,
1870
1882
  ...q,
1871
1883
  withSearchParam: j
1872
1884
  },
1873
1885
  E
1874
1886
  )) }) : /* @__PURE__ */ g(a, { marginBottom: "sm", children: [
1875
- l ? /* @__PURE__ */ A(d, { color: "text-muted", marginBottom: "sm", fontWeight: "medium", children: l }) : null,
1876
- e ? /* @__PURE__ */ A(d, { marginBottom: "sm", fontWeight: "medium", children: e }) : null,
1887
+ l ? /* @__PURE__ */ A(Q, { color: "text-muted", marginBottom: "sm", fontWeight: "medium", children: l }) : null,
1888
+ e ? /* @__PURE__ */ A(Q, { marginBottom: "sm", fontWeight: "medium", children: e }) : null,
1877
1889
  /* @__PURE__ */ A(a, { children: H() })
1878
1890
  ] });
1879
1891
  }
@@ -1888,7 +1900,7 @@ const Ht = _(
1888
1900
  onHide: n,
1889
1901
  resetting: l
1890
1902
  }) => {
1891
- const [c, s] = b(!1), C = AA(null), Q = ({ value: B, name: u, type: j }) => {
1903
+ const [c, s] = G(!1), C = AA(null), d = ({ value: B, name: u, type: j }) => {
1892
1904
  if (o)
1893
1905
  switch (j) {
1894
1906
  case "date":
@@ -1921,7 +1933,7 @@ const Ht = _(
1921
1933
  le,
1922
1934
  {
1923
1935
  borderBottom: u !== r.length - 1,
1924
- onChange: Q,
1936
+ onChange: d,
1925
1937
  withSearchParam: o,
1926
1938
  ...B,
1927
1939
  ref: C
@@ -2143,74 +2155,74 @@ const gr = (e) => {
2143
2155
  }), r;
2144
2156
  }, ar = (e) => {
2145
2157
  var U;
2146
- const i = oA(() => ({ ...ri, ...e }), [e]), [r, o] = b(!1), [t, n] = b(!1), [l] = b(void 0), c = () => n(!0), s = () => n(!1), C = t ? s : c, Q = () => {
2158
+ const i = oA(() => ({ ...ri, ...e }), [e]), [r, o] = G(!1), [t, n] = G(!1), [l] = G(void 0), c = () => n(!0), s = () => n(!1), C = t ? s : c, d = () => {
2147
2159
  o(!0);
2148
- }, w = (p) => {
2149
- o(p);
2150
- }, B = l ? oi(l) : void 0, u = !!(B && ((U = Object.values(B)) == null ? void 0 : U.length) > 0), j = () => B ? Object.keys(B).map((p) => {
2160
+ }, w = (L) => {
2161
+ o(L);
2162
+ }, B = l ? oi(l) : void 0, u = !!(B && ((U = Object.values(B)) == null ? void 0 : U.length) > 0), j = () => B ? Object.keys(B).map((L) => {
2151
2163
  var q, E, f;
2152
- const k = KA(p, i.fields), Z = [];
2164
+ const k = KA(L, i.fields), Z = [];
2153
2165
  let H = "";
2154
2166
  const P = (q = k == null ? void 0 : k.childrenKey) == null ? void 0 : q.length, X = k == null ? void 0 : k.parentKey;
2155
2167
  switch (P && ((E = k == null ? void 0 : k.childrenKey) == null || E.forEach((M) => {
2156
- const h = KA(M, i.fields);
2157
- h && Z.push({
2158
- name: h == null ? void 0 : h.name,
2159
- label: h == null ? void 0 : h.label,
2160
- value: B[h == null ? void 0 : h.name]
2168
+ const D = KA(M, i.fields);
2169
+ D && Z.push({
2170
+ name: D == null ? void 0 : D.name,
2171
+ label: D == null ? void 0 : D.label,
2172
+ value: B[D == null ? void 0 : D.name]
2161
2173
  });
2162
2174
  })), k == null ? void 0 : k.type) {
2163
2175
  case "dropdown":
2164
2176
  case "select-button":
2165
- const M = B[p] && typeof B[p] != "string" ? B[p] : [], h = (M == null ? void 0 : M.length) > 0 ? (f = M.map((x) => x.label)) == null ? void 0 : f.join(",") : B[p];
2166
- H = `${k == null ? void 0 : k.label}: ${h}`;
2177
+ const M = B[L] && typeof B[L] != "string" ? B[L] : [], D = (M == null ? void 0 : M.length) > 0 ? (f = M.map((x) => x.label)) == null ? void 0 : f.join(",") : B[L];
2178
+ H = `${k == null ? void 0 : k.label}: ${D}`;
2167
2179
  break;
2168
2180
  case "date":
2169
2181
  if (k.rangedDate) {
2170
- const x = B[p], T = (k == null ? void 0 : k.dateValueFormatText) === "indonesian" ? yA(new Date(x == null ? void 0 : x.from)) : x == null ? void 0 : x.from, tA = (k == null ? void 0 : k.dateValueFormatText) === "indonesian" ? yA(new Date(x == null ? void 0 : x.to)) : x == null ? void 0 : x.to;
2182
+ const x = B[L], T = (k == null ? void 0 : k.dateValueFormatText) === "indonesian" ? yA(new Date(x == null ? void 0 : x.from)) : x == null ? void 0 : x.from, tA = (k == null ? void 0 : k.dateValueFormatText) === "indonesian" ? yA(new Date(x == null ? void 0 : x.to)) : x == null ? void 0 : x.to;
2171
2183
  H = `${k == null ? void 0 : k.label}: ${T || ""} ~ ${tA || ""}`;
2172
2184
  break;
2173
2185
  }
2174
- const N = (k == null ? void 0 : k.dateValueFormatText) === "indonesian" ? yA(new Date(B[p])) : B[p];
2175
- H = `${k == null ? void 0 : k.label}: ${N || ""}`;
2186
+ const F = (k == null ? void 0 : k.dateValueFormatText) === "indonesian" ? yA(new Date(B[L])) : B[L];
2187
+ H = `${k == null ? void 0 : k.label}: ${F || ""}`;
2176
2188
  break;
2177
2189
  default:
2178
- H = `${k == null ? void 0 : k.label}: ${B[p]}`;
2190
+ H = `${k == null ? void 0 : k.label}: ${B[L]}`;
2179
2191
  break;
2180
2192
  }
2181
2193
  if (P && Z.length > 0) {
2182
- let M = Z.map((h) => {
2183
- var N, x;
2184
- return h != null && h.value && typeof h.value != "string" ? (x = (N = h == null ? void 0 : h.value) == null ? void 0 : N.map((T) => T == null ? void 0 : T.label)) == null ? void 0 : x.join(",") : h.value;
2194
+ let M = Z.map((D) => {
2195
+ var F, x;
2196
+ return D != null && D.value && typeof D.value != "string" ? (x = (F = D == null ? void 0 : D.value) == null ? void 0 : F.map((T) => T == null ? void 0 : T.label)) == null ? void 0 : x.join(",") : D.value;
2185
2197
  });
2186
2198
  M = M.filter(
2187
- (h) => typeof h < "u" && h !== "" && h !== null
2199
+ (D) => typeof D < "u" && D !== "" && D !== null
2188
2200
  ), M && M.length > 0 && (H = `${H} ${k.relationLabelChip || "by"} ${M}`);
2189
2201
  }
2190
2202
  return X && (H = ""), {
2191
2203
  name: k == null ? void 0 : k.name,
2192
2204
  label: k == null ? void 0 : k.label,
2193
- value: B[p],
2205
+ value: B[L],
2194
2206
  valueText: H,
2195
2207
  children: Z
2196
2208
  };
2197
- }) : [], D = (p) => {
2198
- p != null && p.name && o(!0);
2199
- }, O = j();
2209
+ }) : [], h = (L) => {
2210
+ L != null && L.name && o(!0);
2211
+ }, Y = j();
2200
2212
  return {
2201
2213
  value: B,
2202
2214
  open: c,
2203
2215
  close: s,
2204
2216
  toggle: C,
2205
- reset: Q,
2206
- chips: O,
2217
+ reset: d,
2218
+ chips: Y,
2207
2219
  toggleConfig: {
2208
2220
  active: u,
2209
2221
  onClick: C
2210
2222
  },
2211
2223
  chipsConfig: {
2212
- items: O,
2213
- onClose: D
2224
+ items: Y,
2225
+ onClose: h
2214
2226
  },
2215
2227
  config: {
2216
2228
  ...i,
@@ -2225,7 +2237,7 @@ const gr = (e) => {
2225
2237
  Toggle: _e,
2226
2238
  Chips: Re,
2227
2239
  Chip: ne
2228
- }, ni = (e) => /* @__PURE__ */ A(d, { variant: "h1", children: e.children, ...e.props }), li = (e) => /* @__PURE__ */ A(d, { variant: "h2", children: e.children, ...e.props }), ci = (e) => /* @__PURE__ */ A(d, { variant: "h3", children: e.children, ...e.props }), gi = (e) => /* @__PURE__ */ A(d, { variant: "h4", children: e.children, ...e.props }), si = (e) => /* @__PURE__ */ A(d, { variant: "h5", children: e.children, ...e.props }), ai = (e) => /* @__PURE__ */ A(d, { variant: "h6", children: e.children, ...e.props }), Ci = (e) => /* @__PURE__ */ A(d, { variant: "sub-h1", children: e.children, ...e.props }), Bi = (e) => /* @__PURE__ */ A(d, { variant: "sub-h2", children: e.children, ...e.props }), wi = (e) => /* @__PURE__ */ A(d, { variant: "sub-h3", children: e.children, ...e.props }), Qi = (e) => /* @__PURE__ */ A(d, { variant: "body-1", children: e.children, ...e.props }), di = (e) => /* @__PURE__ */ A(d, { variant: "body-2", children: e.children, ...e.props }), hi = (e) => /* @__PURE__ */ A(d, { variant: "body-3", children: e.children, ...e.props }), K = {
2240
+ }, ni = (e) => /* @__PURE__ */ A(Q, { variant: "h1", children: e.children, ...e.props }), li = (e) => /* @__PURE__ */ A(Q, { variant: "h2", children: e.children, ...e.props }), ci = (e) => /* @__PURE__ */ A(Q, { variant: "h3", children: e.children, ...e.props }), gi = (e) => /* @__PURE__ */ A(Q, { variant: "h4", children: e.children, ...e.props }), si = (e) => /* @__PURE__ */ A(Q, { variant: "h5", children: e.children, ...e.props }), ai = (e) => /* @__PURE__ */ A(Q, { variant: "h6", children: e.children, ...e.props }), Ci = (e) => /* @__PURE__ */ A(Q, { variant: "sub-h1", children: e.children, ...e.props }), Bi = (e) => /* @__PURE__ */ A(Q, { variant: "sub-h2", children: e.children, ...e.props }), wi = (e) => /* @__PURE__ */ A(Q, { variant: "sub-h3", children: e.children, ...e.props }), di = (e) => /* @__PURE__ */ A(Q, { variant: "body-1", children: e.children, ...e.props }), Qi = (e) => /* @__PURE__ */ A(Q, { variant: "body-2", children: e.children, ...e.props }), hi = (e) => /* @__PURE__ */ A(Q, { variant: "body-3", children: e.children, ...e.props }), K = {
2229
2241
  H1: ni,
2230
2242
  H2: li,
2231
2243
  H3: ci,
@@ -2235,8 +2247,8 @@ const gr = (e) => {
2235
2247
  SubH1: Ci,
2236
2248
  SubH2: Bi,
2237
2249
  SubH3: wi,
2238
- Body1: Qi,
2239
- Body2: di,
2250
+ Body1: di,
2251
+ Body2: Qi,
2240
2252
  Body3: hi
2241
2253
  }, qA = () => {
2242
2254
  const [e, i] = uA(), r = DA(e.toString()), o = re(), t = SA(), n = o.id;
@@ -2245,10 +2257,10 @@ const gr = (e) => {
2245
2257
  setSearchParams: i,
2246
2258
  searchParams: e,
2247
2259
  searchQueries: r,
2248
- isHasQuery: (Q, w) => e.has(Q) && e.get(Q) === w,
2249
- getQueryParam: (Q) => e.get(Q),
2260
+ isHasQuery: (d, w) => e.has(d) && e.get(d) === w,
2261
+ getQueryParam: (d) => e.get(d),
2250
2262
  // route params
2251
- getRouteParam: (Q) => o[Q],
2263
+ getRouteParam: (d) => o[d],
2252
2264
  params: o,
2253
2265
  // location info
2254
2266
  location: t,
@@ -2333,7 +2345,7 @@ const gr = (e) => {
2333
2345
  }, mi = (e, i, r) => {
2334
2346
  const o = i.get(r || "filter") || void 0, t = o && typeof o == "string" ? JSON.parse(o) : void 0;
2335
2347
  return t ? t[e] : void 0;
2336
- }, Qr = ({
2348
+ }, dr = ({
2337
2349
  name: e,
2338
2350
  filterKey: i = "filter",
2339
2351
  searchParams: r
@@ -2343,7 +2355,7 @@ const gr = (e) => {
2343
2355
  start: n ? JSON.parse(n).from : void 0,
2344
2356
  end: n ? JSON.parse(n).to : void 0
2345
2357
  };
2346
- }, dr = ({
2358
+ }, Qr = ({
2347
2359
  name: e,
2348
2360
  filterKey: i = "filter",
2349
2361
  searchParams: r
@@ -2364,7 +2376,7 @@ const gr = (e) => {
2364
2376
  pageKey: o,
2365
2377
  filters: t
2366
2378
  }) => {
2367
- const { searchParams: n, setSearchParams: l, searchQueries: c } = qA(), [s, C] = b({}), Q = () => {
2379
+ const { searchParams: n, setSearchParams: l, searchQueries: c } = qA(), [s, C] = G({}), d = () => {
2368
2380
  n.delete(r || "filter"), l(n);
2369
2381
  }, w = (B, u) => {
2370
2382
  switch (B.type) {
@@ -2395,7 +2407,7 @@ const gr = (e) => {
2395
2407
  a,
2396
2408
  {
2397
2409
  style: { cursor: "pointer" },
2398
- onClick: Q,
2410
+ onClick: d,
2399
2411
  children: "Reset"
2400
2412
  }
2401
2413
  )
@@ -2413,22 +2425,22 @@ const gr = (e) => {
2413
2425
  filterKey: c = "filter",
2414
2426
  pageKey: s = "page",
2415
2427
  customWidthSearch: C,
2416
- handleOnReset: Q,
2428
+ handleOnReset: d,
2417
2429
  filterConfigs: w,
2418
2430
  buttonToggleProps: B,
2419
2431
  position: u = "right",
2420
2432
  titleSearchLabel: j = "Work Order",
2421
- withTitleLabels: D = !1
2433
+ withTitleLabels: h = !1
2422
2434
  }) => {
2423
- const O = (B == null ? void 0 : B.isShowLabel) ?? !0, [Y, F] = b(!1), [U, p] = b(0), k = () => {
2424
- p(U + 1);
2435
+ const Y = (B == null ? void 0 : B.isShowLabel) ?? !0, [p, N] = G(!1), [U, L] = G(0), k = () => {
2436
+ L(U + 1);
2425
2437
  }, { searchParams: Z, setSearchParams: H, getQueryParam: P } = qA(), X = DA(Z.toString()), q = P(c), f = !!(q && !(() => {
2426
2438
  if (q)
2427
2439
  try {
2428
- const h = JSON.parse(q);
2429
- return Object.keys(h).length === 1 && h[e] === "";
2430
- } catch (h) {
2431
- console.error("Filter parameter is not a valid JSON:", h);
2440
+ const D = JSON.parse(q);
2441
+ return Object.keys(D).length === 1 && D[e] === "";
2442
+ } catch (D) {
2443
+ console.error("Filter parameter is not a valid JSON:", D);
2432
2444
  }
2433
2445
  return !1;
2434
2446
  })()), M = V("md");
@@ -2442,17 +2454,17 @@ const gr = (e) => {
2442
2454
  align: "flex-end",
2443
2455
  children: [
2444
2456
  f && /* @__PURE__ */ A(a, { justify: "flex-end", children: /* @__PURE__ */ A(
2445
- L,
2457
+ b,
2446
2458
  {
2447
2459
  onClick: () => {
2448
- Z.delete(c), H(Z), k(), Q && Q();
2460
+ Z.delete(c), H(Z), k(), d && d();
2449
2461
  },
2450
2462
  secondary: !0,
2451
- children: /* @__PURE__ */ A(d, { color: "error", fontWeight: "semibold", children: "Reset" })
2463
+ children: /* @__PURE__ */ A(Q, { color: "error", fontWeight: "semibold", children: "Reset" })
2452
2464
  }
2453
2465
  ) }),
2454
2466
  !!(w != null && w.length) && /* @__PURE__ */ A(
2455
- L,
2467
+ b,
2456
2468
  {
2457
2469
  primary: f,
2458
2470
  secondary: !f,
@@ -2467,8 +2479,8 @@ const gr = (e) => {
2467
2479
  }
2468
2480
  ),
2469
2481
  fullWidth: !M,
2470
- onClick: () => F(!0),
2471
- children: O ? "Filter" : void 0
2482
+ onClick: () => N(!0),
2483
+ children: Y ? "Filter" : void 0
2472
2484
  }
2473
2485
  ),
2474
2486
  l && /* @__PURE__ */ g(
@@ -2479,7 +2491,7 @@ const gr = (e) => {
2479
2491
  minWidth: "126px"
2480
2492
  },
2481
2493
  children: [
2482
- D && /* @__PURE__ */ A(K.SubH3, { children: "Status" }),
2494
+ h && /* @__PURE__ */ A(K.SubH3, { children: "Status" }),
2483
2495
  /* @__PURE__ */ A(
2484
2496
  fA,
2485
2497
  {
@@ -2514,15 +2526,15 @@ const gr = (e) => {
2514
2526
  })
2515
2527
  }
2516
2528
  ] : [],
2517
- onChange: (h) => PA({
2518
- value: h,
2529
+ onChange: (D) => PA({
2530
+ value: D,
2519
2531
  name: i,
2520
2532
  type: "dropdown",
2521
2533
  searchQueries: X,
2522
2534
  setSearchParams: H,
2523
2535
  filterKey: c
2524
2536
  }),
2525
- placeholder: D ? "All" : "All Status"
2537
+ placeholder: h ? "All" : "All Status"
2526
2538
  },
2527
2539
  U
2528
2540
  )
@@ -2537,7 +2549,7 @@ const gr = (e) => {
2537
2549
  width: C && M ? C : M ? "310px" : ""
2538
2550
  },
2539
2551
  children: [
2540
- D && /* @__PURE__ */ g(K.SubH3, { children: [
2552
+ h && /* @__PURE__ */ g(K.SubH3, { children: [
2541
2553
  "Search for ",
2542
2554
  j
2543
2555
  ] }),
@@ -2546,8 +2558,8 @@ const gr = (e) => {
2546
2558
  {
2547
2559
  placeholder: r,
2548
2560
  leftIcon: /* @__PURE__ */ A(m, { name: "Search", width: 20, height: 20 }),
2549
- onChange: (h) => PA({
2550
- value: h.target.value,
2561
+ onChange: (D) => PA({
2562
+ value: D.target.value,
2551
2563
  name: e,
2552
2564
  type: "search",
2553
2565
  searchQueries: X,
@@ -2563,17 +2575,17 @@ const gr = (e) => {
2563
2575
  ]
2564
2576
  }
2565
2577
  ),
2566
- t == null ? void 0 : t.map(({ minWidth: h, content: N, title: x, onClickContainer: T }) => /* @__PURE__ */ g(
2578
+ t == null ? void 0 : t.map(({ minWidth: D, content: F, title: x, onClickContainer: T }) => /* @__PURE__ */ g(
2567
2579
  a,
2568
2580
  {
2569
2581
  gap: "sm",
2570
2582
  onClick: T,
2571
2583
  style: {
2572
- minWidth: h
2584
+ minWidth: D
2573
2585
  },
2574
2586
  children: [
2575
2587
  /* @__PURE__ */ A(K.SubH3, { children: x }),
2576
- N
2588
+ F
2577
2589
  ]
2578
2590
  },
2579
2591
  x + U
@@ -2581,8 +2593,8 @@ const gr = (e) => {
2581
2593
  /* @__PURE__ */ A(
2582
2594
  yi,
2583
2595
  {
2584
- isOpen: Y,
2585
- onClose: () => F(!1),
2596
+ isOpen: p,
2597
+ onClose: () => N(!1),
2586
2598
  filterKey: c,
2587
2599
  filters: w,
2588
2600
  pageKey: s
@@ -2592,7 +2604,7 @@ const gr = (e) => {
2592
2604
  }
2593
2605
  );
2594
2606
  }, fi = ({ children: e, borderRadius: i }) => {
2595
- const r = AA(null), [o, t] = b("100vh");
2607
+ const r = AA(null), [o, t] = G("100vh");
2596
2608
  return R(() => {
2597
2609
  const n = () => {
2598
2610
  if (r.current) {
@@ -2635,7 +2647,7 @@ const gr = (e) => {
2635
2647
  },
2636
2648
  children: e.map(
2637
2649
  ({ title: n, icon: l, buttonProps: c, onClick: s }, C) => !n && !l ? null : /* @__PURE__ */ A(
2638
- L,
2650
+ b,
2639
2651
  {
2640
2652
  fullWidth: !o,
2641
2653
  iconLeft: l ? /* @__PURE__ */ A(m, { name: l, size: "md" }) : void 0,
@@ -2712,7 +2724,7 @@ const gr = (e) => {
2712
2724
  showPagination: t = !0,
2713
2725
  totalData: n
2714
2726
  }) => {
2715
- const { searchQueries: l, setSearchParams: c, searchParams: s } = qA(), C = s.get(r), Q = (j) => {
2727
+ const { searchQueries: l, setSearchParams: c, searchParams: s } = qA(), C = s.get(r), d = (j) => {
2716
2728
  c({ ...l, [i]: String(j) });
2717
2729
  }, w = (j) => {
2718
2730
  c({
@@ -2739,7 +2751,7 @@ const gr = (e) => {
2739
2751
  },
2740
2752
  children: t ? /* @__PURE__ */ g(W, { children: [
2741
2753
  /* @__PURE__ */ g(a, { style: { display: "flex", flexDirection: "row", gap: "8px", alignItems: "center" }, children: [
2742
- /* @__PURE__ */ A(d, { children: "Rows Per Page: " }),
2754
+ /* @__PURE__ */ A(Q, { children: "Rows Per Page: " }),
2743
2755
  /* @__PURE__ */ A(
2744
2756
  fA,
2745
2757
  {
@@ -2756,14 +2768,14 @@ const gr = (e) => {
2756
2768
  defaultValue: C ? [{ label: `${C} per row`, value: C }] : [{ label: `${o} per row`, value: `${o}` }]
2757
2769
  }
2758
2770
  ),
2759
- /* @__PURE__ */ A(d, { children: `${B}-${u} of ${(e == null ? void 0 : e.totalData) || 0}` })
2771
+ /* @__PURE__ */ A(Q, { children: `${B}-${u} of ${(e == null ? void 0 : e.totalData) || 0}` })
2760
2772
  ] }),
2761
2773
  /* @__PURE__ */ A(
2762
- de,
2774
+ Qe,
2763
2775
  {
2764
2776
  currentPage: e != null && e.currentPage ? Number(e == null ? void 0 : e.currentPage) : 1,
2765
2777
  totalCount: e != null && e.totalPage ? Number(e == null ? void 0 : e.totalPage) : 1,
2766
- onPageChange: Q
2778
+ onPageChange: d
2767
2779
  }
2768
2780
  )
2769
2781
  ] }) : /* @__PURE__ */ A(
@@ -2777,30 +2789,30 @@ const gr = (e) => {
2777
2789
  }
2778
2790
  );
2779
2791
  }, Gi = ({ filter: e, columnTitle: i }) => {
2780
- const [r, o] = b(!1), t = AA(null), n = AA(null), l = AA(null), [c, s] = b(""), [C, Q] = b({ top: 0, left: 0 }), w = e.selectedValues, B = oA(() => c ? e.options.filter(
2781
- (D) => D.label.toLowerCase().includes(c.toLowerCase())
2792
+ const [r, o] = G(!1), t = AA(null), n = AA(null), l = AA(null), [c, s] = G(""), [C, d] = G({ top: 0, left: 0 }), w = e.selectedValues, B = oA(() => c ? e.options.filter(
2793
+ (h) => h.label.toLowerCase().includes(c.toLowerCase())
2782
2794
  ) : e.options, [e.options, c]);
2783
2795
  R(() => {
2784
2796
  if (r && n.current) {
2785
- const D = n.current.getBoundingClientRect(), O = 280, Y = {
2786
- top: D.bottom + 8
2797
+ const h = n.current.getBoundingClientRect(), Y = 280, p = {
2798
+ top: h.bottom + 8
2787
2799
  };
2788
- e.position === "left" || D.left + O > window.innerWidth ? Y.right = window.innerWidth - D.right : Y.left = D.left, Q(Y);
2800
+ e.position === "left" || h.left + Y > window.innerWidth ? p.right = window.innerWidth - h.right : p.left = h.left, d(p);
2789
2801
  }
2790
2802
  }, [r, e.position]), R(() => {
2791
2803
  r && l.current ? setTimeout(() => {
2792
- var D;
2793
- return (D = l.current) == null ? void 0 : D.focus();
2804
+ var h;
2805
+ return (h = l.current) == null ? void 0 : h.focus();
2794
2806
  }, 50) : s("");
2795
2807
  }, [r]), R(() => {
2796
- const D = (O) => {
2797
- t.current && !t.current.contains(O.target) && n.current && !n.current.contains(O.target) && o(!1);
2808
+ const h = (Y) => {
2809
+ t.current && !t.current.contains(Y.target) && n.current && !n.current.contains(Y.target) && o(!1);
2798
2810
  };
2799
- return r && document.addEventListener("mousedown", D), () => document.removeEventListener("mousedown", D);
2811
+ return r && document.addEventListener("mousedown", h), () => document.removeEventListener("mousedown", h);
2800
2812
  }, [r]);
2801
- const u = (D) => {
2802
- const O = w.includes(D) ? w.filter((Y) => Y !== D) : [...w, D];
2803
- e.onFilterChange(O);
2813
+ const u = (h) => {
2814
+ const Y = w.includes(h) ? w.filter((p) => p !== h) : [...w, h];
2815
+ e.onFilterChange(Y);
2804
2816
  }, j = () => e.onFilterChange([]);
2805
2817
  return /* @__PURE__ */ g(a, { style: { position: "relative" }, children: [
2806
2818
  /* @__PURE__ */ A(
@@ -2813,9 +2825,9 @@ const gr = (e) => {
2813
2825
  alignItems: "center",
2814
2826
  cursor: "pointer"
2815
2827
  },
2816
- onClick: (D) => {
2817
- var O;
2818
- D.stopPropagation(), r || (O = e.onOpen) == null || O.call(e), o((Y) => !Y);
2828
+ onClick: (h) => {
2829
+ var Y;
2830
+ h.stopPropagation(), r || (Y = e.onOpen) == null || Y.call(e), o((p) => !p);
2819
2831
  },
2820
2832
  children: /* @__PURE__ */ A(
2821
2833
  m,
@@ -2863,18 +2875,18 @@ const gr = (e) => {
2863
2875
  borderBottom: "1px solid rgb(var(--starasia-ui-raw-color-gray-100))"
2864
2876
  },
2865
2877
  children: [
2866
- /* @__PURE__ */ g(d, { fontSize: "sm", fontWeight: "semibold", color: "gray-700", children: [
2878
+ /* @__PURE__ */ g(Q, { fontSize: "sm", fontWeight: "semibold", color: "gray-700", children: [
2867
2879
  "Filter ",
2868
2880
  i
2869
2881
  ] }),
2870
2882
  w.length > 0 && /* @__PURE__ */ A(a, { style: { cursor: "pointer" }, children: /* @__PURE__ */ A(
2871
- d,
2883
+ Q,
2872
2884
  {
2873
2885
  fontSize: "xs",
2874
2886
  color: "primary",
2875
2887
  fontWeight: "semibold",
2876
- onClick: (D) => {
2877
- D.stopPropagation(), j();
2888
+ onClick: (h) => {
2889
+ h.stopPropagation(), j();
2878
2890
  },
2879
2891
  children: "CLEAR"
2880
2892
  }
@@ -2898,7 +2910,7 @@ const gr = (e) => {
2898
2910
  placeholder: `Search ${i.toLowerCase()}...`,
2899
2911
  leftIcon: /* @__PURE__ */ A(m, { name: "Search", size: "sm" }),
2900
2912
  value: c,
2901
- onChange: (D) => s(D.target.value),
2913
+ onChange: (h) => s(h.target.value),
2902
2914
  style: { fontSize: "14px" }
2903
2915
  }
2904
2916
  )
@@ -2938,7 +2950,7 @@ const gr = (e) => {
2938
2950
  }
2939
2951
  ),
2940
2952
  /* @__PURE__ */ A(
2941
- d,
2953
+ Q,
2942
2954
  {
2943
2955
  fontSize: "sm",
2944
2956
  color: "gray-500",
@@ -2948,7 +2960,7 @@ const gr = (e) => {
2948
2960
  )
2949
2961
  ]
2950
2962
  }
2951
- ) : B.length > 0 ? /* @__PURE__ */ A(a, { style: { gap: "2px", paddingTop: "4px", paddingBottom: "4px" }, children: B.map((D) => /* @__PURE__ */ g(
2963
+ ) : B.length > 0 ? /* @__PURE__ */ A(a, { style: { gap: "2px", paddingTop: "4px", paddingBottom: "4px" }, children: B.map((h) => /* @__PURE__ */ g(
2952
2964
  a,
2953
2965
  {
2954
2966
  style: {
@@ -2963,38 +2975,38 @@ const gr = (e) => {
2963
2975
  cursor: "pointer",
2964
2976
  borderRadius: "8px",
2965
2977
  transition: "all 0.2s ease",
2966
- backgroundColor: w.includes(D.value) ? "rgb(var(--starasia-ui-raw-color-blue-50))" : "transparent"
2978
+ backgroundColor: w.includes(h.value) ? "rgb(var(--starasia-ui-raw-color-blue-50))" : "transparent"
2967
2979
  },
2968
- onClick: (O) => {
2969
- O.stopPropagation(), u(D.value);
2980
+ onClick: (Y) => {
2981
+ Y.stopPropagation(), u(h.value);
2970
2982
  },
2971
- onMouseEnter: (O) => {
2972
- w.includes(D.value) || (O.currentTarget.style.backgroundColor = "rgb(var(--starasia-ui-raw-color-gray-50))"), O.currentTarget.style.transform = "translateX(2px)";
2983
+ onMouseEnter: (Y) => {
2984
+ w.includes(h.value) || (Y.currentTarget.style.backgroundColor = "rgb(var(--starasia-ui-raw-color-gray-50))"), Y.currentTarget.style.transform = "translateX(2px)";
2973
2985
  },
2974
- onMouseLeave: (O) => {
2975
- O.currentTarget.style.backgroundColor = w.includes(D.value) ? "rgb(var(--starasia-ui-raw-color-blue-50))" : "transparent", O.currentTarget.style.transform = "translateX(0)";
2986
+ onMouseLeave: (Y) => {
2987
+ Y.currentTarget.style.backgroundColor = w.includes(h.value) ? "rgb(var(--starasia-ui-raw-color-blue-50))" : "transparent", Y.currentTarget.style.transform = "translateX(0)";
2976
2988
  },
2977
2989
  children: [
2978
2990
  /* @__PURE__ */ A(
2979
2991
  FA,
2980
2992
  {
2981
- checked: w.includes(D.value),
2993
+ checked: w.includes(h.value),
2982
2994
  onChange: () => {
2983
2995
  }
2984
2996
  }
2985
2997
  ),
2986
2998
  /* @__PURE__ */ A(
2987
- d,
2999
+ Q,
2988
3000
  {
2989
3001
  fontSize: "sm",
2990
- fontWeight: w.includes(D.value) ? "medium" : "normal",
2991
- color: w.includes(D.value) ? "primary" : "gray-700",
2992
- children: D.label
3002
+ fontWeight: w.includes(h.value) ? "medium" : "normal",
3003
+ color: w.includes(h.value) ? "primary" : "gray-700",
3004
+ children: h.label
2993
3005
  }
2994
3006
  )
2995
3007
  ]
2996
3008
  },
2997
- D.value
3009
+ h.value
2998
3010
  )) }) : /* @__PURE__ */ g(
2999
3011
  a,
3000
3012
  {
@@ -3016,7 +3028,7 @@ const gr = (e) => {
3016
3028
  }
3017
3029
  ),
3018
3030
  /* @__PURE__ */ A(
3019
- d,
3031
+ Q,
3020
3032
  {
3021
3033
  fontSize: "sm",
3022
3034
  color: "gray-500",
@@ -3056,7 +3068,7 @@ const gr = (e) => {
3056
3068
  children: w.length
3057
3069
  }
3058
3070
  ),
3059
- /* @__PURE__ */ g(d, { fontSize: "xs", color: "primary", fontWeight: "medium", children: [
3071
+ /* @__PURE__ */ g(Q, { fontSize: "xs", color: "primary", fontWeight: "medium", children: [
3060
3072
  "item",
3061
3073
  w.length > 1 ? "s" : "",
3062
3074
  " selected"
@@ -3095,24 +3107,24 @@ const gr = (e) => {
3095
3107
  visibleHandleUpdate: c,
3096
3108
  visibleHandleDetail: s,
3097
3109
  showHeadBorder: C = !0,
3098
- scrollParentRef: Q,
3110
+ scrollParentRef: d,
3099
3111
  frozenCount: w = 0,
3100
3112
  onFrozenCountChange: B,
3101
3113
  customActions: u,
3102
3114
  actionsOrder: j = ["detail", "update", "delete", "custom"],
3103
- customEmptyState: D
3115
+ customEmptyState: h
3104
3116
  }) => {
3105
- const Y = [r, o, t].filter((E) => E !== void 0).length, F = !!u, U = Y === 3 ? F ? "178px" : "140px" : Y === 2 ? F ? "140px" : "102px" : Y === 1 ? F ? "112px" : "74px" : F ? "74px" : "", p = (E, f) => {
3117
+ const p = [r, o, t].filter((E) => E !== void 0).length, N = !!u, U = p === 3 ? N ? "178px" : "140px" : p === 2 ? N ? "140px" : "102px" : p === 1 ? N ? "112px" : "74px" : N ? "74px" : "", L = (E, f) => {
3106
3118
  if (!f) return E;
3107
3119
  if (typeof f == "function") return f(E);
3108
3120
  if (typeof f == "string") return E[f];
3109
- }, [k, Z] = b(!1);
3121
+ }, [k, Z] = G(!1);
3110
3122
  R(() => {
3111
- if (!(Q != null && Q.current)) return;
3112
- const E = Q.current;
3123
+ if (!(d != null && d.current)) return;
3124
+ const E = d.current;
3113
3125
  Z(E.scrollHeight > E.clientHeight);
3114
- }, [i, Q]);
3115
- const H = AA(null), [P, X] = b([]);
3126
+ }, [i, d]);
3127
+ const H = AA(null), [P, X] = G([]);
3116
3128
  zA(() => {
3117
3129
  if (!w || !H.current) {
3118
3130
  X([]);
@@ -3122,8 +3134,8 @@ const gr = (e) => {
3122
3134
  H.current.querySelectorAll("thead tr th")
3123
3135
  ), f = [];
3124
3136
  let M = 0;
3125
- E.forEach((h, N) => {
3126
- f[N] = M, N < w && (M += h.offsetWidth);
3137
+ E.forEach((D, F) => {
3138
+ f[F] = M, F < w && (M += D.offsetWidth);
3127
3139
  }), X(f);
3128
3140
  }, [w, e, i]);
3129
3141
  const q = (E) => {
@@ -3137,17 +3149,17 @@ const gr = (e) => {
3137
3149
  height: "40px",
3138
3150
  whiteSpace: "nowrap"
3139
3151
  },
3140
- children: /* @__PURE__ */ g(QA, { children: [
3152
+ children: /* @__PURE__ */ g(dA, { children: [
3141
3153
  e.map((E, f) => {
3142
- var N;
3143
- const M = w > 0 && f < w, h = P[f] ?? 0;
3154
+ var F;
3155
+ const M = w > 0 && f < w, D = P[f] ?? 0;
3144
3156
  return /* @__PURE__ */ A(
3145
3157
  TA,
3146
3158
  {
3147
3159
  style: {
3148
3160
  position: "sticky",
3149
3161
  top: 0,
3150
- left: M ? h : void 0,
3162
+ left: M ? D : void 0,
3151
3163
  zIndex: M ? 4 : 2,
3152
3164
  paddingLeft: f === 0 ? "12px" : "",
3153
3165
  borderRight: C ? "1px solid var(--starasia-ui-utility-fill-default)" : void 0,
@@ -3167,7 +3179,7 @@ const gr = (e) => {
3167
3179
  minWidth: 0
3168
3180
  },
3169
3181
  children: [
3170
- /* @__PURE__ */ A("span", { style: { flex: 1, minWidth: 0 }, children: E.title || ((N = E.accessor) == null ? void 0 : N.toString()) }),
3182
+ /* @__PURE__ */ A("span", { style: { flex: 1, minWidth: 0 }, children: E.title || ((F = E.accessor) == null ? void 0 : F.toString()) }),
3171
3183
  E.filter && /* @__PURE__ */ A(
3172
3184
  Gi,
3173
3185
  {
@@ -3218,14 +3230,14 @@ const gr = (e) => {
3218
3230
  ] })
3219
3231
  }
3220
3232
  ),
3221
- /* @__PURE__ */ A(De, { children: n ? /* @__PURE__ */ A(QA, { children: /* @__PURE__ */ A(sA, { colSpan: e.length + 1, children: /* @__PURE__ */ g(a, { style: { gap: "16px" }, children: [
3233
+ /* @__PURE__ */ A(De, { children: n ? /* @__PURE__ */ A(dA, { children: /* @__PURE__ */ A(sA, { colSpan: e.length + 1, children: /* @__PURE__ */ g(a, { style: { gap: "16px" }, children: [
3222
3234
  /* @__PURE__ */ A(lA, { variant: "list" }),
3223
3235
  /* @__PURE__ */ A(lA, { variant: "list" }),
3224
3236
  /* @__PURE__ */ A(lA, { variant: "list" }),
3225
3237
  /* @__PURE__ */ A(lA, { variant: "list" }),
3226
3238
  /* @__PURE__ */ A(lA, { variant: "list" })
3227
- ] }) }) }) : !(i != null && i.length) && D ? /* @__PURE__ */ A(QA, { children: /* @__PURE__ */ A(sA, { colSpan: e.length + 1, children: D }) }) : i == null ? void 0 : i.map((E, f) => /* @__PURE__ */ g(
3228
- QA,
3239
+ ] }) }) }) : !(i != null && i.length) && h ? /* @__PURE__ */ A(dA, { children: /* @__PURE__ */ A(sA, { colSpan: e.length + 1, children: h }) }) : i == null ? void 0 : i.map((E, f) => /* @__PURE__ */ g(
3240
+ dA,
3229
3241
  {
3230
3242
  style: {
3231
3243
  transition: "background-color 0.3s ease",
@@ -3233,24 +3245,24 @@ const gr = (e) => {
3233
3245
  borderBottom: f === i.length - 1 && k ? void 0 : "1px solid var(--starasia-ui-utility-fill-default)"
3234
3246
  },
3235
3247
  onMouseOver: (M) => {
3236
- const h = M.currentTarget;
3237
- h.style.backgroundColor = pA, h.style.position = "relative", h.style.zIndex = "2", w > 0 && Array.from(h.querySelectorAll("td")).slice(0, w).forEach((x) => {
3248
+ const D = M.currentTarget;
3249
+ D.style.backgroundColor = pA, D.style.position = "relative", D.style.zIndex = "2", w > 0 && Array.from(D.querySelectorAll("td")).slice(0, w).forEach((x) => {
3238
3250
  x.style.backgroundColor = pA;
3239
3251
  });
3240
- const N = Array.from(h.querySelectorAll("td")).at(-1);
3241
- N && N.style.position === "sticky" && (N.style.backgroundColor = pA);
3252
+ const F = Array.from(D.querySelectorAll("td")).at(-1);
3253
+ F && F.style.position === "sticky" && (F.style.backgroundColor = pA);
3242
3254
  },
3243
3255
  onMouseOut: (M) => {
3244
- const h = M.currentTarget;
3245
- h.style.backgroundColor = "", h.style.position = "", h.style.zIndex = "", w > 0 && Array.from(h.querySelectorAll("td")).slice(0, w).forEach((x) => {
3256
+ const D = M.currentTarget;
3257
+ D.style.backgroundColor = "", D.style.position = "", D.style.zIndex = "", w > 0 && Array.from(D.querySelectorAll("td")).slice(0, w).forEach((x) => {
3246
3258
  x.style.backgroundColor = mA;
3247
3259
  });
3248
- const N = Array.from(h.querySelectorAll("td")).at(-1);
3249
- N && N.style.position === "sticky" && (N.style.backgroundColor = mA);
3260
+ const F = Array.from(D.querySelectorAll("td")).at(-1);
3261
+ F && F.style.position === "sticky" && (F.style.backgroundColor = mA);
3250
3262
  },
3251
3263
  children: [
3252
- e.map((M, h) => {
3253
- const N = M.render ? M.render(E, f, i) : p(E, M.accessor), x = w > 0 && h < w, T = P[h] ?? 0;
3264
+ e.map((M, D) => {
3265
+ const F = M.render ? M.render(E, f, i) : L(E, M.accessor), x = w > 0 && D < w, T = P[D] ?? 0;
3254
3266
  return /* @__PURE__ */ A(
3255
3267
  sA,
3256
3268
  {
@@ -3259,14 +3271,14 @@ const gr = (e) => {
3259
3271
  left: x ? T : void 0,
3260
3272
  zIndex: x ? 1 : void 0,
3261
3273
  backgroundColor: x ? mA : void 0,
3262
- paddingLeft: h === 0 ? "12px" : "",
3274
+ paddingLeft: D === 0 ? "12px" : "",
3263
3275
  whiteSpace: "nowrap",
3264
3276
  borderLeft: M.showBorderLeft ? "1px solid var(--starasia-ui-utility-fill-default)" : void 0,
3265
3277
  borderRight: M.showBorderRight ? "1px solid var(--starasia-ui-utility-fill-default)" : void 0,
3266
3278
  textAlign: M.textAlign === "text-right" ? "right" : M.textAlign === "text-center" ? "center" : "left"
3267
3279
  },
3268
- children: typeof N == "string" ? /* @__PURE__ */ A(
3269
- d,
3280
+ children: typeof F == "string" ? /* @__PURE__ */ A(
3281
+ Q,
3270
3282
  {
3271
3283
  style: {
3272
3284
  whiteSpace: "nowrap",
@@ -3274,11 +3286,11 @@ const gr = (e) => {
3274
3286
  textOverflow: "ellipsis",
3275
3287
  textAlign: M.textAlign === "text-right" ? "right" : M.textAlign === "text-center" ? "center" : "left"
3276
3288
  },
3277
- children: N
3289
+ children: F
3278
3290
  }
3279
- ) : N
3291
+ ) : F
3280
3292
  },
3281
- `row-${f}-col-${h}`
3293
+ `row-${f}-col-${D}`
3282
3294
  );
3283
3295
  }),
3284
3296
  r || o || t || u ? /* @__PURE__ */ A(sA, { style: {
@@ -3288,25 +3300,25 @@ const gr = (e) => {
3288
3300
  zIndex: 1,
3289
3301
  backgroundColor: mA
3290
3302
  }, children: /* @__PURE__ */ A(J, { direction: "row", align: "center", justify: "center", gap: "sm", children: j.map((M) => {
3291
- const h = f === i.length - 1 ? "top" : "bottom";
3292
- return M === "detail" && r && (s == null ? void 0 : s(E)) !== !1 ? /* @__PURE__ */ A(iA, { label: "Detail", position: h, children: /* @__PURE__ */ A(
3293
- L,
3303
+ const D = f === i.length - 1 ? "top" : "bottom";
3304
+ return M === "detail" && r && (s == null ? void 0 : s(E)) !== !1 ? /* @__PURE__ */ A(iA, { label: "Detail", position: D, children: /* @__PURE__ */ A(
3305
+ b,
3294
3306
  {
3295
3307
  size: "xs",
3296
3308
  secondary: !0,
3297
3309
  onClick: () => r(E.id, E),
3298
3310
  iconLeft: /* @__PURE__ */ A(m, { name: "DocumentClean", size: "sm", style: { color: "rgb(var(--starasia-ui-raw-color-gray-600))" } })
3299
3311
  }
3300
- ) }, "detail") : M === "update" && o && (c == null ? void 0 : c(E)) !== !1 ? /* @__PURE__ */ A(iA, { label: "Update", position: h, children: /* @__PURE__ */ A(
3301
- L,
3312
+ ) }, "detail") : M === "update" && o && (c == null ? void 0 : c(E)) !== !1 ? /* @__PURE__ */ A(iA, { label: "Update", position: D, children: /* @__PURE__ */ A(
3313
+ b,
3302
3314
  {
3303
3315
  size: "xs",
3304
3316
  secondary: !0,
3305
3317
  onClick: () => o(E),
3306
3318
  iconLeft: /* @__PURE__ */ A(m, { name: "Edit1", size: "sm", style: { color: "rgb(var(--starasia-ui-raw-color-gray-600))" } })
3307
3319
  }
3308
- ) }, "update") : M === "delete" && t && (l == null ? void 0 : l(E)) !== !1 ? /* @__PURE__ */ A(iA, { label: "Delete", position: h, children: /* @__PURE__ */ A(
3309
- L,
3320
+ ) }, "update") : M === "delete" && t && (l == null ? void 0 : l(E)) !== !1 ? /* @__PURE__ */ A(iA, { label: "Delete", position: D, children: /* @__PURE__ */ A(
3321
+ b,
3310
3322
  {
3311
3323
  size: "xs",
3312
3324
  secondary: !0,
@@ -3327,11 +3339,11 @@ const gr = (e) => {
3327
3339
  footerProps: o
3328
3340
  }) => {
3329
3341
  var w;
3330
- const t = AA(null), [n, l] = b(
3342
+ const t = AA(null), [n, l] = G(
3331
3343
  (i == null ? void 0 : i.defaultFrozenCount) ?? 0
3332
3344
  ), c = (r == null ? void 0 : r.show) ?? !0, s = AA(null), C = (w = i == null ? void 0 : i.pagination) == null ? void 0 : w.totalData;
3333
3345
  typeof C == "number" && (s.current = C);
3334
- const Q = (o == null ? void 0 : o.showFooter) ?? (C === void 0 ? s.current !== 0 : C !== 0);
3346
+ const d = (o == null ? void 0 : o.showFooter) ?? (C === void 0 ? s.current !== 0 : C !== 0);
3335
3347
  return /* @__PURE__ */ g(fi, { ...e, children: [
3336
3348
  c && /* @__PURE__ */ A(Si, { ...r }),
3337
3349
  /* @__PURE__ */ A(
@@ -3354,7 +3366,7 @@ const gr = (e) => {
3354
3366
  ) : null
3355
3367
  }
3356
3368
  ),
3357
- Q && /* @__PURE__ */ A(
3369
+ d && /* @__PURE__ */ A(
3358
3370
  bi,
3359
3371
  {
3360
3372
  pagination: i == null ? void 0 : i.pagination,
@@ -3375,7 +3387,7 @@ function ji(e) {
3375
3387
  const Dr = ji(pi), kA = ({
3376
3388
  of: e,
3377
3389
  render: i
3378
- }) => ye.toArray(e == null ? void 0 : e.map((r, o, t) => i(r, o, t))), G = ({
3390
+ }) => ye.toArray(e == null ? void 0 : e.map((r, o, t) => i(r, o, t))), O = ({
3379
3391
  condition: e,
3380
3392
  fallback: i,
3381
3393
  children: r,
@@ -3427,7 +3439,7 @@ const Dr = ji(pi), kA = ({
3427
3439
  ),
3428
3440
  children: [
3429
3441
  /* @__PURE__ */ A(
3430
- G,
3442
+ O,
3431
3443
  {
3432
3444
  condition: !!e.role && !e.isTenant || t,
3433
3445
  fallback: /* @__PURE__ */ A(K.Body1, { children: e.name }),
@@ -3445,7 +3457,7 @@ const Dr = ji(pi), kA = ({
3445
3457
  ] })
3446
3458
  }
3447
3459
  ),
3448
- /* @__PURE__ */ A(G, { condition: e.isTenant && o, children: /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(m, { name: "ChevronRight", size: "md" }) }) })
3460
+ /* @__PURE__ */ A(O, { condition: e.isTenant && o, children: /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(m, { name: "ChevronRight", size: "md" }) }) })
3449
3461
  ]
3450
3462
  }
3451
3463
  );
@@ -3490,7 +3502,7 @@ const Dr = ji(pi), kA = ({
3490
3502
  isLoadingOrgList: c,
3491
3503
  setSelectedApp: s
3492
3504
  }) => {
3493
- var Q;
3505
+ var d;
3494
3506
  const C = _A();
3495
3507
  return /* @__PURE__ */ g(LA, { onHide: e, show: i, closeButton: !1, children: [
3496
3508
  /* @__PURE__ */ g(
@@ -3515,7 +3527,7 @@ const Dr = ji(pi), kA = ({
3515
3527
  }
3516
3528
  ),
3517
3529
  C.show ? /* @__PURE__ */ g(W, { children: [
3518
- /* @__PURE__ */ A(K.H4, { children: (Q = C.data) == null ? void 0 : Q.name }),
3530
+ /* @__PURE__ */ A(K.H4, { children: (d = C.data) == null ? void 0 : d.name }),
3519
3531
  /* @__PURE__ */ A(
3520
3532
  K.SubH3,
3521
3533
  {
@@ -3526,7 +3538,7 @@ const Dr = ji(pi), kA = ({
3526
3538
  }
3527
3539
  ),
3528
3540
  /* @__PURE__ */ A(
3529
- G,
3541
+ O,
3530
3542
  {
3531
3543
  condition: !!(o != null && o.length),
3532
3544
  isLoading: c,
@@ -3635,7 +3647,7 @@ const Dr = ji(pi), kA = ({
3635
3647
  totalData: t,
3636
3648
  setSelectedApp: n
3637
3649
  }) => {
3638
- var c, s, C, Q, w;
3650
+ var c, s, C, d, w;
3639
3651
  const l = _A();
3640
3652
  return /* @__PURE__ */ g(LA, { onHide: e, show: i, closeButton: !1, children: [
3641
3653
  /* @__PURE__ */ g(
@@ -3671,13 +3683,13 @@ const Dr = ji(pi), kA = ({
3671
3683
  }
3672
3684
  ),
3673
3685
  /* @__PURE__ */ A(
3674
- G,
3686
+ O,
3675
3687
  {
3676
3688
  condition: !!((C = (s = l.data) == null ? void 0 : s.organizations) != null && C.length),
3677
3689
  children: /* @__PURE__ */ A(
3678
3690
  NA,
3679
3691
  {
3680
- dataApps: (w = (Q = l.data) == null ? void 0 : Q.organizations) == null ? void 0 : w.map((B) => {
3692
+ dataApps: (w = (d = l.data) == null ? void 0 : d.organizations) == null ? void 0 : w.map((B) => {
3681
3693
  var u;
3682
3694
  return {
3683
3695
  ...B,
@@ -3746,7 +3758,7 @@ const Dr = ji(pi), kA = ({
3746
3758
  variant: l = "single-api",
3747
3759
  isLoading: c
3748
3760
  }) => {
3749
- const [s, C] = b(!1), [Q, w] = b("");
3761
+ const [s, C] = G(!1), [d, w] = G("");
3750
3762
  return /* @__PURE__ */ g(W, { children: [
3751
3763
  /* @__PURE__ */ g(
3752
3764
  a,
@@ -3796,7 +3808,7 @@ const Dr = ji(pi), kA = ({
3796
3808
  }
3797
3809
  ),
3798
3810
  /* @__PURE__ */ A(
3799
- G,
3811
+ O,
3800
3812
  {
3801
3813
  condition: l === "single-api",
3802
3814
  fallback: /* @__PURE__ */ A(
@@ -3852,7 +3864,7 @@ const Dr = ji(pi), kA = ({
3852
3864
  children: [
3853
3865
  /* @__PURE__ */ A("img", { style: { width: "180px" }, src: zi }),
3854
3866
  /* @__PURE__ */ g(
3855
- d,
3867
+ Q,
3856
3868
  {
3857
3869
  fontWeight: "black",
3858
3870
  fontSize: "2xl",
@@ -3865,7 +3877,7 @@ const Dr = ji(pi), kA = ({
3865
3877
  "Get ready to switch to",
3866
3878
  /* @__PURE__ */ A("br", {}),
3867
3879
  " the ",
3868
- Q || "another",
3880
+ d || "another",
3869
3881
  " app!"
3870
3882
  ]
3871
3883
  }
@@ -3877,7 +3889,7 @@ const Dr = ji(pi), kA = ({
3877
3889
  )
3878
3890
  ] });
3879
3891
  }, z = (e) => /* @__PURE__ */ A(
3880
- d,
3892
+ Q,
3881
3893
  {
3882
3894
  ...e,
3883
3895
  fontFamily: "Poppins",
@@ -3886,7 +3898,7 @@ const Dr = ji(pi), kA = ({
3886
3898
  color: e.color || "gray-700",
3887
3899
  children: e.children
3888
3900
  }
3889
- ), nA = (e) => /* @__PURE__ */ A(d, { color: "red-600", fontSize: "sm", children: e.message }), Ki = ({
3901
+ ), nA = (e) => /* @__PURE__ */ A(Q, { color: "red-600", fontSize: "sm", children: e.message }), Ki = ({
3890
3902
  size: e = "md",
3891
3903
  direction: i = "vertical",
3892
3904
  requiredTitle: r = "(Required)",
@@ -3903,7 +3915,7 @@ const Dr = ji(pi), kA = ({
3903
3915
  ...t.containerProps,
3904
3916
  children: [
3905
3917
  t.title && /* @__PURE__ */ A(
3906
- G,
3918
+ O,
3907
3919
  {
3908
3920
  condition: !!t.inputProps.required,
3909
3921
  fallback: /* @__PURE__ */ g(
@@ -3914,7 +3926,7 @@ const Dr = ji(pi), kA = ({
3914
3926
  fullWidth: o,
3915
3927
  children: [
3916
3928
  /* @__PURE__ */ A(z, { children: t.title }),
3917
- /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: t.description })
3929
+ /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description })
3918
3930
  ]
3919
3931
  }
3920
3932
  ),
@@ -3928,7 +3940,7 @@ const Dr = ji(pi), kA = ({
3928
3940
  /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
3929
3941
  /* @__PURE__ */ A(z, { fontSize: e, children: t.title }),
3930
3942
  /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
3931
- /* @__PURE__ */ A(G, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
3943
+ /* @__PURE__ */ A(O, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
3932
3944
  iA,
3933
3945
  {
3934
3946
  label: (s = t.tooltip) == null ? void 0 : s.label,
@@ -3948,7 +3960,7 @@ const Dr = ji(pi), kA = ({
3948
3960
  }
3949
3961
  ) })
3950
3962
  ] }),
3951
- /* @__PURE__ */ A(G, { condition: !!t.description, children: /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: t.description }) })
3963
+ /* @__PURE__ */ A(O, { condition: !!t.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description }) })
3952
3964
  ]
3953
3965
  }
3954
3966
  )
@@ -3988,7 +4000,7 @@ const Dr = ji(pi), kA = ({
3988
4000
  onClick: t.onClickContainer,
3989
4001
  children: [
3990
4002
  t.title && /* @__PURE__ */ A(
3991
- G,
4003
+ O,
3992
4004
  {
3993
4005
  condition: !!t.inputProps.required,
3994
4006
  fallback: /* @__PURE__ */ g(
@@ -3999,7 +4011,7 @@ const Dr = ji(pi), kA = ({
3999
4011
  fullWidth: o,
4000
4012
  children: [
4001
4013
  /* @__PURE__ */ A(z, { children: t.title }),
4002
- /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: t.description })
4014
+ /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description })
4003
4015
  ]
4004
4016
  }
4005
4017
  ),
@@ -4013,7 +4025,7 @@ const Dr = ji(pi), kA = ({
4013
4025
  /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4014
4026
  /* @__PURE__ */ A(z, { fontSize: e, children: t.title }),
4015
4027
  /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
4016
- /* @__PURE__ */ A(G, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4028
+ /* @__PURE__ */ A(O, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4017
4029
  iA,
4018
4030
  {
4019
4031
  label: (s = t.tooltip) == null ? void 0 : s.label,
@@ -4033,7 +4045,7 @@ const Dr = ji(pi), kA = ({
4033
4045
  }
4034
4046
  ) })
4035
4047
  ] }),
4036
- /* @__PURE__ */ A(G, { condition: !!t.description, children: /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: t.description }) })
4048
+ /* @__PURE__ */ A(O, { condition: !!t.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description }) })
4037
4049
  ]
4038
4050
  }
4039
4051
  )
@@ -4064,7 +4076,7 @@ const Dr = ji(pi), kA = ({
4064
4076
  );
4065
4077
  }, Hi = (e, i) => typeof e == "string" && e || i === "error" ? "var(--starasia-ui-color-error)" : "var(--starasia-ui-text-disable)", Ji = (e) => {
4066
4078
  var c;
4067
- const [i, r] = b(!1), o = (s) => {
4079
+ const [i, r] = G(!1), o = (s) => {
4068
4080
  s.preventDefault(), s.stopPropagation();
4069
4081
  }, t = (s) => {
4070
4082
  s.preventDefault(), s.stopPropagation(), s.dataTransfer && e.handleOnFileChange(s.dataTransfer.files.item(0));
@@ -4106,7 +4118,7 @@ const Dr = ji(pi), kA = ({
4106
4118
  /* @__PURE__ */ g(J, { gap: "xs", children: [
4107
4119
  /* @__PURE__ */ g(J, { direction: "row", gap: "xs", children: [
4108
4120
  /* @__PURE__ */ A(
4109
- d,
4121
+ Q,
4110
4122
  {
4111
4123
  fontWeight: "medium",
4112
4124
  color: "gray-500",
@@ -4116,7 +4128,7 @@ const Dr = ji(pi), kA = ({
4116
4128
  }
4117
4129
  ),
4118
4130
  /* @__PURE__ */ A(
4119
- d,
4131
+ Q,
4120
4132
  {
4121
4133
  fontWeight: "medium",
4122
4134
  style: { textWrap: "nowrap" },
@@ -4125,7 +4137,7 @@ const Dr = ji(pi), kA = ({
4125
4137
  }
4126
4138
  )
4127
4139
  ] }),
4128
- /* @__PURE__ */ A(d, { fontSize: "sm", color: "gray-500", children: (c = e.fileSupports) == null ? void 0 : c.map((s) => s.toLocaleUpperCase()).join(", ") })
4140
+ /* @__PURE__ */ A(Q, { fontSize: "sm", color: "gray-500", children: (c = e.fileSupports) == null ? void 0 : c.map((s) => s.toLocaleUpperCase()).join(", ") })
4129
4141
  ] })
4130
4142
  ]
4131
4143
  }
@@ -4180,7 +4192,7 @@ const Ui = (e) => {
4180
4192
  ),
4181
4193
  /* @__PURE__ */ g(J, { children: [
4182
4194
  /* @__PURE__ */ A(
4183
- d,
4195
+ Q,
4184
4196
  {
4185
4197
  fontWeight: "bold",
4186
4198
  style: {
@@ -4193,12 +4205,12 @@ const Ui = (e) => {
4193
4205
  }
4194
4206
  ),
4195
4207
  !e.defaultUrl && /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4196
- /* @__PURE__ */ A(d, { fontSize: "sm", fontWeight: "medium", children: `${qi(
4208
+ /* @__PURE__ */ A(Q, { fontSize: "sm", fontWeight: "medium", children: `${qi(
4197
4209
  ((r = e.fileSelected) == null ? void 0 : r.size.toString()) || "100000"
4198
4210
  )}` }),
4199
4211
  /* @__PURE__ */ A(m, { name: "Dot", size: "xs" }),
4200
4212
  /* @__PURE__ */ A(
4201
- d,
4213
+ Q,
4202
4214
  {
4203
4215
  fontSize: "sm",
4204
4216
  fontWeight: "medium",
@@ -4212,7 +4224,7 @@ const Ui = (e) => {
4212
4224
  ] })
4213
4225
  ] }),
4214
4226
  /* @__PURE__ */ A(
4215
- L,
4227
+ b,
4216
4228
  {
4217
4229
  size: "xs",
4218
4230
  secondary: !0,
@@ -4294,7 +4306,7 @@ const Ui = (e) => {
4294
4306
  ]
4295
4307
  }
4296
4308
  ),
4297
- typeof i.errorMessage == "string" && i.errorMessage && /* @__PURE__ */ A(d, { color: "error", fontSize: "xs", children: i.errorMessage })
4309
+ typeof i.errorMessage == "string" && i.errorMessage && /* @__PURE__ */ A(Q, { color: "error", fontSize: "xs", children: i.errorMessage })
4298
4310
  ] });
4299
4311
  }, Ri = ({
4300
4312
  size: e = "md",
@@ -4313,7 +4325,7 @@ const Ui = (e) => {
4313
4325
  ...t.containerProps,
4314
4326
  children: [
4315
4327
  t.title && /* @__PURE__ */ A(
4316
- G,
4328
+ O,
4317
4329
  {
4318
4330
  condition: !!t.inputProps.required,
4319
4331
  fallback: /* @__PURE__ */ g(
@@ -4324,7 +4336,7 @@ const Ui = (e) => {
4324
4336
  fullWidth: o,
4325
4337
  children: [
4326
4338
  /* @__PURE__ */ A(z, { children: t.title }),
4327
- /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: t.description })
4339
+ /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description })
4328
4340
  ]
4329
4341
  }
4330
4342
  ),
@@ -4338,7 +4350,7 @@ const Ui = (e) => {
4338
4350
  /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4339
4351
  /* @__PURE__ */ A(z, { fontSize: e, children: t.title }),
4340
4352
  /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
4341
- /* @__PURE__ */ A(G, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4353
+ /* @__PURE__ */ A(O, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4342
4354
  iA,
4343
4355
  {
4344
4356
  label: (s = t.tooltip) == null ? void 0 : s.label,
@@ -4358,7 +4370,7 @@ const Ui = (e) => {
4358
4370
  }
4359
4371
  ) })
4360
4372
  ] }),
4361
- /* @__PURE__ */ A(G, { condition: !!t.description, children: /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: t.description }) })
4373
+ /* @__PURE__ */ A(O, { condition: !!t.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description }) })
4362
4374
  ]
4363
4375
  }
4364
4376
  )
@@ -4385,7 +4397,7 @@ const Ui = (e) => {
4385
4397
  required: t = !1,
4386
4398
  ...n
4387
4399
  }) => {
4388
- var s, C, Q, w;
4400
+ var s, C, d, w;
4389
4401
  const l = n.hideMessageError || !1, c = i === "horizontal" ? e === "sm" ? 342 : e === "lg" ? 400 : 342 : void 0;
4390
4402
  return /* @__PURE__ */ g(
4391
4403
  a,
@@ -4395,7 +4407,7 @@ const Ui = (e) => {
4395
4407
  ...n.containerProps,
4396
4408
  children: [
4397
4409
  n.title && /* @__PURE__ */ A(
4398
- G,
4410
+ O,
4399
4411
  {
4400
4412
  condition: !!t,
4401
4413
  fallback: /* @__PURE__ */ g(
@@ -4420,11 +4432,11 @@ const Ui = (e) => {
4420
4432
  /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4421
4433
  /* @__PURE__ */ A(z, { fontSize: e, children: n.title }),
4422
4434
  /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
4423
- /* @__PURE__ */ A(G, { condition: !!((s = n.tooltip) != null && s.label), children: /* @__PURE__ */ A(
4435
+ /* @__PURE__ */ A(O, { condition: !!((s = n.tooltip) != null && s.label), children: /* @__PURE__ */ A(
4424
4436
  iA,
4425
4437
  {
4426
4438
  label: (C = n.tooltip) == null ? void 0 : C.label,
4427
- arrowPosition: (Q = n.tooltip) == null ? void 0 : Q.arrowPosition,
4439
+ arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
4428
4440
  ...n.tooltip,
4429
4441
  children: /* @__PURE__ */ A(
4430
4442
  m,
@@ -4440,7 +4452,7 @@ const Ui = (e) => {
4440
4452
  }
4441
4453
  ) })
4442
4454
  ] }),
4443
- /* @__PURE__ */ A(G, { condition: !!n.description, children: /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: n.description }) })
4455
+ /* @__PURE__ */ A(O, { condition: !!n.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: n.description }) })
4444
4456
  ]
4445
4457
  }
4446
4458
  )
@@ -4514,7 +4526,7 @@ const Ui = (e) => {
4514
4526
  gap: e === "horizontal-inline" || e === "horizontal-block" ? "spacing-96" : "sm",
4515
4527
  direction: e === "horizontal-inline" || e === "horizontal-block" ? "row" : "column",
4516
4528
  children: [
4517
- /* @__PURE__ */ A(G, { condition: !!o.description || !!o.title, children: /* @__PURE__ */ g(
4529
+ /* @__PURE__ */ A(O, { condition: !!o.description || !!o.title, children: /* @__PURE__ */ g(
4518
4530
  a,
4519
4531
  {
4520
4532
  direction: "column",
@@ -4522,7 +4534,7 @@ const Ui = (e) => {
4522
4534
  fullWidth: r,
4523
4535
  children: [
4524
4536
  o.title && /* @__PURE__ */ A(z, { children: o.title }),
4525
- /* @__PURE__ */ A(G, { condition: !!o.description, children: /* @__PURE__ */ A(d, { color: "gray-500", children: o.description }) })
4537
+ /* @__PURE__ */ A(O, { condition: !!o.description, children: /* @__PURE__ */ A(Q, { color: "gray-500", children: o.description }) })
4526
4538
  ]
4527
4539
  }
4528
4540
  ) }),
@@ -4540,13 +4552,13 @@ const Ui = (e) => {
4540
4552
  ...l,
4541
4553
  isChecked: o.radioIsChecked === l.id
4542
4554
  })),
4543
- render: ({ value: l, id: c, isChecked: s, subInput: C, label: Q, description: w }) => /* @__PURE__ */ g(a, { gap: "xs", customMaxWidth: t, children: [
4555
+ render: ({ value: l, id: c, isChecked: s, subInput: C, label: d, description: w }) => /* @__PURE__ */ g(a, { gap: "xs", customMaxWidth: t, children: [
4544
4556
  /* @__PURE__ */ A(
4545
4557
  Me,
4546
4558
  {
4547
4559
  id: `${c.toString()}-${l}`,
4548
- name: o.groupName || Q,
4549
- label: Q,
4560
+ name: o.groupName || d,
4561
+ label: d,
4550
4562
  value: l,
4551
4563
  checked: s,
4552
4564
  onChange: (B) => o.onChecked({
@@ -4559,7 +4571,7 @@ const Ui = (e) => {
4559
4571
  c
4560
4572
  ),
4561
4573
  w && /* @__PURE__ */ A(
4562
- d,
4574
+ Q,
4563
4575
  {
4564
4576
  color: "gray-500",
4565
4577
  style: {
@@ -4595,7 +4607,7 @@ const Ui = (e) => {
4595
4607
  ...t.containerProps,
4596
4608
  children: [
4597
4609
  t.title && /* @__PURE__ */ A(
4598
- G,
4610
+ O,
4599
4611
  {
4600
4612
  condition: !!t.inputProps.required,
4601
4613
  fallback: /* @__PURE__ */ g(
@@ -4606,7 +4618,7 @@ const Ui = (e) => {
4606
4618
  fullWidth: o,
4607
4619
  children: [
4608
4620
  /* @__PURE__ */ A(z, { children: t.title }),
4609
- /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: t.description })
4621
+ /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description })
4610
4622
  ]
4611
4623
  }
4612
4624
  ),
@@ -4620,7 +4632,7 @@ const Ui = (e) => {
4620
4632
  /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4621
4633
  /* @__PURE__ */ A(z, { fontSize: e, children: t.title }),
4622
4634
  /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
4623
- /* @__PURE__ */ A(G, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4635
+ /* @__PURE__ */ A(O, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4624
4636
  iA,
4625
4637
  {
4626
4638
  label: (s = t.tooltip) == null ? void 0 : s.label,
@@ -4640,7 +4652,7 @@ const Ui = (e) => {
4640
4652
  }
4641
4653
  ) })
4642
4654
  ] }),
4643
- /* @__PURE__ */ A(G, { condition: !!t.description, children: /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: t.description }) })
4655
+ /* @__PURE__ */ A(O, { condition: !!t.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description }) })
4644
4656
  ]
4645
4657
  }
4646
4658
  )
@@ -4679,7 +4691,7 @@ const Ui = (e) => {
4679
4691
  ...n.containerProps,
4680
4692
  children: [
4681
4693
  n.title && /* @__PURE__ */ A(
4682
- G,
4694
+ O,
4683
4695
  {
4684
4696
  condition: o,
4685
4697
  fallback: /* @__PURE__ */ g(
@@ -4690,7 +4702,7 @@ const Ui = (e) => {
4690
4702
  fullWidth: t,
4691
4703
  children: [
4692
4704
  /* @__PURE__ */ A(z, { children: n.title }),
4693
- /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: n.titleDescription })
4705
+ /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: n.titleDescription })
4694
4706
  ]
4695
4707
  }
4696
4708
  ),
@@ -4704,7 +4716,7 @@ const Ui = (e) => {
4704
4716
  /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4705
4717
  /* @__PURE__ */ A(z, { fontSize: e, children: n.title }),
4706
4718
  /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
4707
- /* @__PURE__ */ A(G, { condition: !!((c = n.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4719
+ /* @__PURE__ */ A(O, { condition: !!((c = n.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4708
4720
  iA,
4709
4721
  {
4710
4722
  label: (s = n.tooltip) == null ? void 0 : s.label,
@@ -4724,7 +4736,7 @@ const Ui = (e) => {
4724
4736
  }
4725
4737
  ) })
4726
4738
  ] }),
4727
- /* @__PURE__ */ A(G, { condition: !!n.titleDescription, children: /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: n.titleDescription }) })
4739
+ /* @__PURE__ */ A(O, { condition: !!n.titleDescription, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: n.titleDescription }) })
4728
4740
  ]
4729
4741
  }
4730
4742
  )
@@ -4749,16 +4761,16 @@ const Ui = (e) => {
4749
4761
  ...r
4750
4762
  }) => {
4751
4763
  const o = ZA(), t = (l) => {
4752
- var s, C, Q, w, B, u;
4764
+ var s, C, d, w, B, u;
4753
4765
  if (!l) return;
4754
- const c = r.disabled ? "var(--starasia-ui-text-color-primary-disable)" : e === "secondary" ? "var(--starasia-ui-text-color-secondary)" : e === "secondary-danger" ? (C = (s = o == null ? void 0 : o.computed) == null ? void 0 : s.red) == null ? void 0 : C[600] : e === "secondary-primary" ? (w = (Q = o == null ? void 0 : o.computed) == null ? void 0 : Q.blue) == null ? void 0 : w[700] : (u = (B = o == null ? void 0 : o.computed) == null ? void 0 : B.gray) == null ? void 0 : u[50];
4766
+ const c = r.disabled ? "var(--starasia-ui-text-color-primary-disable)" : e === "secondary" ? "var(--starasia-ui-text-color-secondary)" : e === "secondary-danger" ? (C = (s = o == null ? void 0 : o.computed) == null ? void 0 : s.red) == null ? void 0 : C[600] : e === "secondary-primary" ? (w = (d = o == null ? void 0 : o.computed) == null ? void 0 : d.blue) == null ? void 0 : w[700] : (u = (B = o == null ? void 0 : o.computed) == null ? void 0 : B.gray) == null ? void 0 : u[50];
4755
4767
  return /* @__PURE__ */ A(m, { name: l, size: i, style: { color: c } });
4756
4768
  }, n = () => {
4757
- var c, s, C, Q;
4769
+ var c, s, C, d;
4758
4770
  if (e !== "secondary-danger" && e !== "secondary-primary")
4759
4771
  return r.title;
4760
4772
  const l = {
4761
- color: r.disabled ? "var(--starasia-ui-text-color-primary-disable)" : e === "secondary-danger" ? (s = (c = o == null ? void 0 : o.computed) == null ? void 0 : c.red) == null ? void 0 : s[600] : (Q = (C = o == null ? void 0 : o.computed) == null ? void 0 : C.blue) == null ? void 0 : Q[700]
4773
+ color: r.disabled ? "var(--starasia-ui-text-color-primary-disable)" : e === "secondary-danger" ? (s = (c = o == null ? void 0 : o.computed) == null ? void 0 : c.red) == null ? void 0 : s[600] : (d = (C = o == null ? void 0 : o.computed) == null ? void 0 : C.blue) == null ? void 0 : d[700]
4762
4774
  };
4763
4775
  switch (i) {
4764
4776
  case "xs":
@@ -4773,7 +4785,7 @@ const Ui = (e) => {
4773
4785
  }
4774
4786
  };
4775
4787
  return /* @__PURE__ */ A(
4776
- L,
4788
+ b,
4777
4789
  {
4778
4790
  fullWidth: !0,
4779
4791
  disabled: r.disabled,
@@ -4813,7 +4825,7 @@ const Ui = (e) => {
4813
4825
  onClick: t.onClickContainer,
4814
4826
  children: [
4815
4827
  t.title && /* @__PURE__ */ A(
4816
- G,
4828
+ O,
4817
4829
  {
4818
4830
  condition: !!t.inputProps.required,
4819
4831
  fallback: /* @__PURE__ */ g(
@@ -4824,7 +4836,7 @@ const Ui = (e) => {
4824
4836
  fullWidth: o,
4825
4837
  children: [
4826
4838
  /* @__PURE__ */ A(z, { children: t.title }),
4827
- /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: t.description })
4839
+ /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description })
4828
4840
  ]
4829
4841
  }
4830
4842
  ),
@@ -4838,7 +4850,7 @@ const Ui = (e) => {
4838
4850
  /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4839
4851
  /* @__PURE__ */ A(z, { fontSize: e, children: t.title }),
4840
4852
  /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
4841
- /* @__PURE__ */ A(G, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4853
+ /* @__PURE__ */ A(O, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4842
4854
  iA,
4843
4855
  {
4844
4856
  label: (s = t.tooltip) == null ? void 0 : s.label,
@@ -4858,7 +4870,7 @@ const Ui = (e) => {
4858
4870
  }
4859
4871
  ) })
4860
4872
  ] }),
4861
- /* @__PURE__ */ A(G, { condition: !!t.description, children: /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: t.description }) })
4873
+ /* @__PURE__ */ A(O, { condition: !!t.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description }) })
4862
4874
  ]
4863
4875
  }
4864
4876
  )
@@ -4935,8 +4947,8 @@ const VA = {
4935
4947
  containerProps: c,
4936
4948
  maxFileSize: s = 2,
4937
4949
  onError: C
4938
- }, Q) => {
4939
- const w = V("md"), [B, u] = b(!1), [j, D] = b(null), [O, Y] = b(!1), [F, U] = b({ x: 0, y: 0 }), [p, k] = b(1), [Z, H] = b(null);
4950
+ }, d) => {
4951
+ const w = V("md"), [B, u] = G(!1), [j, h] = G(null), [Y, p] = G(!1), [N, U] = G({ x: 0, y: 0 }), [L, k] = G(1), [Z, H] = G(null);
4940
4952
  R(() => {
4941
4953
  i === null && t(null);
4942
4954
  }, [i]);
@@ -4951,7 +4963,7 @@ const VA = {
4951
4963
  if (!tA) return;
4952
4964
  const wA = new FileReader();
4953
4965
  wA.onload = () => {
4954
- D(wA.result), Y(!0);
4966
+ h(wA.result), p(!0);
4955
4967
  }, wA.readAsDataURL(tA);
4956
4968
  }, q = async () => {
4957
4969
  if (!(!j || !Z))
@@ -4963,22 +4975,22 @@ const VA = {
4963
4975
  }
4964
4976
  e == null || e(T);
4965
4977
  const tA = URL.createObjectURL(T);
4966
- t(tA, T), Y(!1);
4978
+ t(tA, T), p(!1);
4967
4979
  } catch {
4968
4980
  C == null || C("Gagal memproses gambar");
4969
4981
  }
4970
4982
  }, E = AA(null), f = () => {
4971
4983
  E.current && E.current.click();
4972
4984
  };
4973
- xe(Q, () => ({
4985
+ xe(d, () => ({
4974
4986
  openFileDialog: () => {
4975
4987
  var T;
4976
4988
  (T = E.current) == null || T.click();
4977
4989
  }
4978
4990
  }));
4979
- const M = parseInt(n, 10), h = VA[l];
4980
- let N, x;
4981
- return h >= 1 ? (x = M, N = M * h) : (N = M, x = M / h), /* @__PURE__ */ g(
4991
+ const M = parseInt(n, 10), D = VA[l];
4992
+ let F, x;
4993
+ return D >= 1 ? (x = M, F = M * D) : (F = M, x = M / D), /* @__PURE__ */ g(
4982
4994
  a,
4983
4995
  {
4984
4996
  display: "flex",
@@ -4992,9 +5004,9 @@ const VA = {
4992
5004
  align: "center",
4993
5005
  justify: "center",
4994
5006
  style: {
4995
- width: c != null && c.fullWidth ? "100%" : `${N}px`,
5007
+ width: c != null && c.fullWidth ? "100%" : `${F}px`,
4996
5008
  height: c != null && c.fullWidth ? "auto" : `${x}px`,
4997
- aspectRatio: h,
5009
+ aspectRatio: D,
4998
5010
  flexShrink: 0
4999
5011
  },
5000
5012
  onMouseEnter: () => u(!0),
@@ -5067,8 +5079,8 @@ const VA = {
5067
5079
  style: { color: "var(--starasia-ui-color-gray-50)" }
5068
5080
  }
5069
5081
  ),
5070
- /* @__PURE__ */ A(G, { condition: n.toNumber() > 80, children: /* @__PURE__ */ A(
5071
- d,
5082
+ /* @__PURE__ */ A(O, { condition: n.toNumber() > 80, children: /* @__PURE__ */ A(
5083
+ Q,
5072
5084
  {
5073
5085
  color: "gray-50",
5074
5086
  fontSize: n.toNumber() > 80 ? "sm" : "md",
@@ -5108,12 +5120,12 @@ const VA = {
5108
5120
  }
5109
5121
  ),
5110
5122
  /* @__PURE__ */ g(
5111
- dA,
5123
+ QA,
5112
5124
  {
5113
- isShow: O,
5114
- onHide: () => Y(!1),
5125
+ isShow: Y,
5126
+ onHide: () => p(!1),
5115
5127
  style: {
5116
- minWidth: w ? l === "1:1" ? "20rem" : N * 2 : "100%"
5128
+ minWidth: w ? l === "1:1" ? "20rem" : F * 2 : "100%"
5117
5129
  },
5118
5130
  children: [
5119
5131
  /* @__PURE__ */ A(hA, { children: /* @__PURE__ */ A(
@@ -5129,8 +5141,8 @@ const VA = {
5129
5141
  Se,
5130
5142
  {
5131
5143
  image: j,
5132
- crop: F,
5133
- zoom: p,
5144
+ crop: N,
5145
+ zoom: L,
5134
5146
  aspect: l ? VA[l] : void 0,
5135
5147
  onCropChange: U,
5136
5148
  onZoomChange: k,
@@ -5143,8 +5155,8 @@ const VA = {
5143
5155
  }
5144
5156
  ) }),
5145
5157
  /* @__PURE__ */ A(xA, { children: /* @__PURE__ */ g(a, { justify: "flex-end", direction: "row", gap: "sm", children: [
5146
- /* @__PURE__ */ A(L, { size: "xs", secondary: !0, onClick: () => Y(!1), children: "Cancel" }),
5147
- /* @__PURE__ */ A(L, { size: "xs", primary: !0, onClick: q, children: "Crop" })
5158
+ /* @__PURE__ */ A(b, { size: "xs", secondary: !0, onClick: () => p(!1), children: "Cancel" }),
5159
+ /* @__PURE__ */ A(b, { size: "xs", primary: !0, onClick: q, children: "Crop" })
5148
5160
  ] }) })
5149
5161
  ]
5150
5162
  }
@@ -5161,7 +5173,7 @@ const VA = {
5161
5173
  required: t = !1,
5162
5174
  ...n
5163
5175
  }) => {
5164
- var s, C, Q;
5176
+ var s, C, d;
5165
5177
  const l = n.hideMessageError || !1, c = i === "horizontal" ? e === "sm" ? 342 : e === "lg" ? 400 : 342 : void 0;
5166
5178
  return /* @__PURE__ */ g(
5167
5179
  a,
@@ -5171,7 +5183,7 @@ const VA = {
5171
5183
  ...n.containerProps,
5172
5184
  children: [
5173
5185
  n.title && /* @__PURE__ */ A(
5174
- G,
5186
+ O,
5175
5187
  {
5176
5188
  condition: !!t,
5177
5189
  fallback: /* @__PURE__ */ g(
@@ -5182,7 +5194,7 @@ const VA = {
5182
5194
  fullWidth: o,
5183
5195
  children: [
5184
5196
  /* @__PURE__ */ A(z, { children: n.title }),
5185
- /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: n.description })
5197
+ /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: n.description })
5186
5198
  ]
5187
5199
  }
5188
5200
  ),
@@ -5196,11 +5208,11 @@ const VA = {
5196
5208
  /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
5197
5209
  /* @__PURE__ */ A(z, { fontSize: e, children: n.title }),
5198
5210
  /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
5199
- /* @__PURE__ */ A(G, { condition: !!((s = n.tooltip) != null && s.label), children: /* @__PURE__ */ A(
5211
+ /* @__PURE__ */ A(O, { condition: !!((s = n.tooltip) != null && s.label), children: /* @__PURE__ */ A(
5200
5212
  iA,
5201
5213
  {
5202
5214
  label: (C = n.tooltip) == null ? void 0 : C.label,
5203
- arrowPosition: (Q = n.tooltip) == null ? void 0 : Q.arrowPosition,
5215
+ arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
5204
5216
  ...n.tooltip,
5205
5217
  children: /* @__PURE__ */ A(
5206
5218
  m,
@@ -5216,7 +5228,7 @@ const VA = {
5216
5228
  }
5217
5229
  ) })
5218
5230
  ] }),
5219
- /* @__PURE__ */ A(G, { condition: !!n.description, children: /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: n.description }) })
5231
+ /* @__PURE__ */ A(O, { condition: !!n.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: n.description }) })
5220
5232
  ]
5221
5233
  }
5222
5234
  )
@@ -5246,7 +5258,7 @@ const VA = {
5246
5258
  ...t.containerProps,
5247
5259
  children: [
5248
5260
  t.title && /* @__PURE__ */ A(
5249
- G,
5261
+ O,
5250
5262
  {
5251
5263
  condition: !!t.inputProps.required,
5252
5264
  fallback: /* @__PURE__ */ g(
@@ -5257,7 +5269,7 @@ const VA = {
5257
5269
  fullWidth: o,
5258
5270
  children: [
5259
5271
  /* @__PURE__ */ A(z, { children: t.title }),
5260
- /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: t.description })
5272
+ /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description })
5261
5273
  ]
5262
5274
  }
5263
5275
  ),
@@ -5271,7 +5283,7 @@ const VA = {
5271
5283
  /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
5272
5284
  /* @__PURE__ */ A(z, { fontSize: e, children: t.title }),
5273
5285
  /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
5274
- /* @__PURE__ */ A(G, { condition: !!((l = t.tooltip) != null && l.label), children: /* @__PURE__ */ A(
5286
+ /* @__PURE__ */ A(O, { condition: !!((l = t.tooltip) != null && l.label), children: /* @__PURE__ */ A(
5275
5287
  iA,
5276
5288
  {
5277
5289
  label: (c = t.tooltip) == null ? void 0 : c.label,
@@ -5291,7 +5303,7 @@ const VA = {
5291
5303
  }
5292
5304
  ) })
5293
5305
  ] }),
5294
- /* @__PURE__ */ A(G, { condition: !!t.description, children: /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: t.description }) })
5306
+ /* @__PURE__ */ A(O, { condition: !!t.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description }) })
5295
5307
  ]
5296
5308
  }
5297
5309
  )
@@ -5309,12 +5321,12 @@ const VA = {
5309
5321
  toggleShow: t = !0,
5310
5322
  disabled: n = !1
5311
5323
  }) => {
5312
- var Q;
5313
- const [l, c] = b([]);
5324
+ var d;
5325
+ const [l, c] = G([]);
5314
5326
  R(() => {
5315
5327
  e && c([...e.map((w) => ({ id: w.id, isActive: w.isActive }))]);
5316
5328
  }, [e]);
5317
- const s = (Q = l.find((w) => w.id === i)) == null ? void 0 : Q.isActive, C = JA(() => {
5329
+ const s = (d = l.find((w) => w.id === i)) == null ? void 0 : d.isActive, C = JA(() => {
5318
5330
  c(
5319
5331
  (w) => w.map((B) => B.id === i ? { ...B, isActive: !B.isActive } : B)
5320
5332
  ), r && r(!s);
@@ -5352,7 +5364,7 @@ const VA = {
5352
5364
  InputImgFile: tt,
5353
5365
  Custom: rt
5354
5366
  }, ot = ({ customBottom: e }) => {
5355
- const [i, r] = b(!1), o = () => {
5367
+ const [i, r] = G(!1), o = () => {
5356
5368
  window.scrollY > window.screenY ? r(!0) : r(!1);
5357
5369
  }, t = () => {
5358
5370
  window.scrollTo({ top: 0, behavior: "smooth" });
@@ -5378,7 +5390,7 @@ const VA = {
5378
5390
  transition: "transform 0.2s ease-in-out"
5379
5391
  },
5380
5392
  children: /* @__PURE__ */ A(
5381
- L,
5393
+ b,
5382
5394
  {
5383
5395
  secondary: !0,
5384
5396
  size: "xs",
@@ -5445,7 +5457,7 @@ const VA = {
5445
5457
  withScrollToTopButton: i = !1,
5446
5458
  scrollToTopButtonProps: r,
5447
5459
  containerProps: o
5448
- }) => /* @__PURE__ */ A(a, { position: "absolute", width: "width-full", style: { zIndex: "999" }, children: /* @__PURE__ */ g(
5460
+ }) => /* @__PURE__ */ A(a, { position: "absolute", width: "width-full", style: { zIndex: "var(--app-footer-zindex, 999)" }, children: /* @__PURE__ */ g(
5449
5461
  a,
5450
5462
  {
5451
5463
  position: "fixed",
@@ -5458,8 +5470,8 @@ const VA = {
5458
5470
  align: "center",
5459
5471
  display: "flex",
5460
5472
  style: {
5461
- width: "100%",
5462
- transition: "width 0.3s ease-in-out",
5473
+ left: "var(--app-sidebar-width, 0px)",
5474
+ transition: "left 0.3s ease-in-out",
5463
5475
  borderColor: "var(--starasia-ui-border-color-secondary)"
5464
5476
  },
5465
5477
  justify: (o == null ? void 0 : o.justify) || "flex-end",
@@ -5485,9 +5497,9 @@ const VA = {
5485
5497
  ) }), nt = ({ title: e, value: i, icon: r }) => /* @__PURE__ */ g(a, { display: "flex", direction: "column", gap: "sm", children: [
5486
5498
  r ? /* @__PURE__ */ g(a, { display: "flex", direction: "row", align: "center", gap: "xs", children: [
5487
5499
  /* @__PURE__ */ A(m, { name: r, color: "var(--starasia-ui-color-gray-300)" }),
5488
- /* @__PURE__ */ A(d, { color: "gray-500", variant: "sub-h3", children: e })
5489
- ] }) : /* @__PURE__ */ A(d, { color: "gray-500", variant: "sub-h3", children: e }),
5490
- typeof i == "string" ? /* @__PURE__ */ A(d, { variant: "sub-h3", children: i }) : i
5500
+ /* @__PURE__ */ A(Q, { color: "gray-500", variant: "sub-h3", children: e })
5501
+ ] }) : /* @__PURE__ */ A(Q, { color: "gray-500", variant: "sub-h3", children: e }),
5502
+ typeof i == "string" ? /* @__PURE__ */ A(Q, { variant: "sub-h3", children: i }) : i
5491
5503
  ] });
5492
5504
  function lt({ width: e, height: i }) {
5493
5505
  return /* @__PURE__ */ A(W, { children: /* @__PURE__ */ g(
@@ -5644,13 +5656,13 @@ const yr = ({
5644
5656
  childrenButton: s,
5645
5657
  customIcon: C
5646
5658
  }) => {
5647
- const Q = () => {
5659
+ const d = () => {
5648
5660
  switch (o) {
5649
5661
  case "primary":
5650
- return /* @__PURE__ */ A(W, { children: n ? /* @__PURE__ */ A(L, { primary: !0, iconLeft: n, onClick: r, children: s || e }) : /* @__PURE__ */ A(L, { primary: !0, onClick: r, children: s || e }) });
5662
+ return /* @__PURE__ */ A(W, { children: n ? /* @__PURE__ */ A(b, { primary: !0, iconLeft: n, onClick: r, children: s || e }) : /* @__PURE__ */ A(b, { primary: !0, onClick: r, children: s || e }) });
5651
5663
  case "secondary":
5652
- return /* @__PURE__ */ A(W, { children: n ? /* @__PURE__ */ A(L, { secondary: !0, iconLeft: n, onClick: r, children: t ? /* @__PURE__ */ A(
5653
- d,
5664
+ return /* @__PURE__ */ A(W, { children: n ? /* @__PURE__ */ A(b, { secondary: !0, iconLeft: n, onClick: r, children: t ? /* @__PURE__ */ A(
5665
+ Q,
5654
5666
  {
5655
5667
  fontFamily: "Poppins",
5656
5668
  fontSize: "md",
@@ -5658,11 +5670,11 @@ const yr = ({
5658
5670
  style: { color: "var(--starasia-ui-utility-success-default)" },
5659
5671
  children: s || e
5660
5672
  }
5661
- ) : e }) : /* @__PURE__ */ A(L, { secondary: !0, onClick: r, children: s || e }) });
5673
+ ) : e }) : /* @__PURE__ */ A(b, { secondary: !0, onClick: r, children: s || e }) });
5662
5674
  case "success":
5663
- return /* @__PURE__ */ A(W, { children: n ? /* @__PURE__ */ A(L, { success: !0, iconLeft: n, onClick: r, children: s || e }) : /* @__PURE__ */ A(L, { success: !0, onClick: r, children: s || e }) });
5675
+ return /* @__PURE__ */ A(W, { children: n ? /* @__PURE__ */ A(b, { success: !0, iconLeft: n, onClick: r, children: s || e }) : /* @__PURE__ */ A(b, { success: !0, onClick: r, children: s || e }) });
5664
5676
  default:
5665
- return /* @__PURE__ */ A(W, { children: n ? /* @__PURE__ */ A(L, { primary: !0, iconLeft: n, onClick: r, children: s || e }) : /* @__PURE__ */ A(L, { primary: !0, onClick: r, children: s || e }) });
5677
+ return /* @__PURE__ */ A(W, { children: n ? /* @__PURE__ */ A(b, { primary: !0, iconLeft: n, onClick: r, children: s || e }) : /* @__PURE__ */ A(b, { primary: !0, onClick: r, children: s || e }) });
5666
5678
  }
5667
5679
  };
5668
5680
  return /* @__PURE__ */ g(
@@ -5689,7 +5701,7 @@ const yr = ({
5689
5701
  },
5690
5702
  B
5691
5703
  )) }),
5692
- l ? Q() : null
5704
+ l ? d() : null
5693
5705
  ]
5694
5706
  }
5695
5707
  );
@@ -5911,7 +5923,7 @@ function xr({ onClick: e }) {
5911
5923
  children: [
5912
5924
  /* @__PURE__ */ A(ct, { width: i ? 600 : 300 }),
5913
5925
  /* @__PURE__ */ A(
5914
- d,
5926
+ Q,
5915
5927
  {
5916
5928
  fontWeight: "bold",
5917
5929
  fontSize: i ? "3xl" : "2xl",
@@ -5920,7 +5932,7 @@ function xr({ onClick: e }) {
5920
5932
  }
5921
5933
  ),
5922
5934
  /* @__PURE__ */ A(
5923
- d,
5935
+ Q,
5924
5936
  {
5925
5937
  fontWeight: "semibold",
5926
5938
  fontSize: i ? "lg" : "md",
@@ -5928,7 +5940,7 @@ function xr({ onClick: e }) {
5928
5940
  children: "Sorry, we couldn't find the page you are looking for"
5929
5941
  }
5930
5942
  ),
5931
- e && /* @__PURE__ */ A(L, { size: i ? "md" : "xs", onClick: e, children: "Go Back" })
5943
+ e && /* @__PURE__ */ A(b, { size: i ? "md" : "xs", onClick: e, children: "Go Back" })
5932
5944
  ]
5933
5945
  }
5934
5946
  );
@@ -6161,8 +6173,8 @@ function fr({ onClick: e }) {
6161
6173
  gap: "md",
6162
6174
  children: [
6163
6175
  /* @__PURE__ */ A(gt, { width: i ? 600 : 300 }),
6164
- /* @__PURE__ */ A(d, { fontWeight: "bold", fontSize: i ? "3xl" : "2xl", children: "We Are Sorry ..." }),
6165
- e && /* @__PURE__ */ A(L, { size: i ? "md" : "xs", onClick: e, children: "Go Back" })
6176
+ /* @__PURE__ */ A(Q, { fontWeight: "bold", fontSize: i ? "3xl" : "2xl", children: "We Are Sorry ..." }),
6177
+ e && /* @__PURE__ */ A(b, { size: i ? "md" : "xs", onClick: e, children: "Go Back" })
6166
6178
  ]
6167
6179
  }
6168
6180
  );
@@ -6854,7 +6866,7 @@ function Sr({ onClick: e }) {
6854
6866
  children: [
6855
6867
  /* @__PURE__ */ A(st, { width: i ? 600 : 300 }),
6856
6868
  /* @__PURE__ */ A(
6857
- d,
6869
+ Q,
6858
6870
  {
6859
6871
  fontWeight: "bold",
6860
6872
  fontSize: i ? "3xl" : "2xl",
@@ -6863,7 +6875,7 @@ function Sr({ onClick: e }) {
6863
6875
  }
6864
6876
  ),
6865
6877
  /* @__PURE__ */ A(
6866
- d,
6878
+ Q,
6867
6879
  {
6868
6880
  fontWeight: "semibold",
6869
6881
  fontSize: i ? "lg" : "md",
@@ -6871,7 +6883,7 @@ function Sr({ onClick: e }) {
6871
6883
  children: "we are trying to fix the problem"
6872
6884
  }
6873
6885
  ),
6874
- e && /* @__PURE__ */ A(L, { size: i ? "md" : "xs", onClick: e, children: "Go Back" })
6886
+ e && /* @__PURE__ */ A(b, { size: i ? "md" : "xs", onClick: e, children: "Go Back" })
6875
6887
  ]
6876
6888
  }
6877
6889
  );
@@ -6880,7 +6892,7 @@ const Lr = (e) => {
6880
6892
  var r, o, t, n, l;
6881
6893
  const i = V("md");
6882
6894
  return /* @__PURE__ */ g(
6883
- dA,
6895
+ QA,
6884
6896
  {
6885
6897
  isShow: e.isShow,
6886
6898
  onHide: e.onHide,
@@ -6892,8 +6904,8 @@ const Lr = (e) => {
6892
6904
  }
6893
6905
  },
6894
6906
  children: [
6895
- /* @__PURE__ */ A(BA, { ...e.dialogTitleProps, children: typeof e.title == "string" ? /* @__PURE__ */ A(d, { fontSize: "lg", fontWeight: "medium", children: e.title }) : e.title }),
6896
- /* @__PURE__ */ A(hA, { children: typeof e.description == "string" ? /* @__PURE__ */ A(d, { fontSize: "md", lineHeight: "leading-6", color: "tertiary", children: e.description }) : e.description }),
6907
+ /* @__PURE__ */ A(BA, { ...e.dialogTitleProps, children: typeof e.title == "string" ? /* @__PURE__ */ A(Q, { fontSize: "lg", fontWeight: "medium", children: e.title }) : e.title }),
6908
+ /* @__PURE__ */ A(hA, { children: typeof e.description == "string" ? /* @__PURE__ */ A(Q, { fontSize: "md", lineHeight: "leading-6", color: "tertiary", children: e.description }) : e.description }),
6897
6909
  /* @__PURE__ */ A(xA, { children: /* @__PURE__ */ A(
6898
6910
  a,
6899
6911
  {
@@ -6910,7 +6922,7 @@ const Lr = (e) => {
6910
6922
  gap: ((l = e.wrapperConfirmBtnProps) == null ? void 0 : l.gap) || "sm",
6911
6923
  ...e.wrapperConfirmBtnProps,
6912
6924
  children: [
6913
- e.onCancel && /* @__PURE__ */ A(L, { secondary: !0, onClick: e.onCancel, size: "md", fullWidth: !0, children: e.titleCancelBtn || "Cancel" }),
6925
+ e.onCancel && /* @__PURE__ */ A(b, { secondary: !0, onClick: e.onCancel, size: "md", fullWidth: !0, children: e.titleCancelBtn || "Cancel" }),
6914
6926
  /* @__PURE__ */ A(
6915
6927
  a,
6916
6928
  {
@@ -6919,7 +6931,7 @@ const Lr = (e) => {
6919
6931
  textWrap: "nowrap"
6920
6932
  },
6921
6933
  children: /* @__PURE__ */ A(
6922
- L,
6934
+ b,
6923
6935
  {
6924
6936
  ...e.buttonConfirmProps,
6925
6937
  onClick: e.onConfirm,
@@ -6947,12 +6959,12 @@ const Lr = (e) => {
6947
6959
  customHeight: o,
6948
6960
  paddingInline: t = "spacing-24"
6949
6961
  }) => {
6950
- const n = AA(null), [l, c] = b("100vh");
6962
+ const n = AA(null), [l, c] = G("100vh");
6951
6963
  return R(() => {
6952
6964
  const s = () => {
6953
6965
  if (n.current) {
6954
6966
  const C = n.current.getBoundingClientRect().top;
6955
- c(`calc(100vh - ${C + 16}px)`);
6967
+ c(`calc(100vh - ${C}px)`);
6956
6968
  }
6957
6969
  };
6958
6970
  return s(), window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
@@ -6965,9 +6977,9 @@ const Lr = (e) => {
6965
6977
  customHeight: o,
6966
6978
  paddingBlock: "xl",
6967
6979
  paddingInline: t,
6980
+ bg: "gray-50",
6968
6981
  style: {
6969
- backgroundColor: "var(--hsd-ui-color-gray-50)",
6970
- height: l
6982
+ minHeight: l
6971
6983
  },
6972
6984
  children: e
6973
6985
  }
@@ -6995,7 +7007,7 @@ function Or({
6995
7007
  R(() => {
6996
7008
  let t = null, n = null;
6997
7009
  for (const s of i) {
6998
- const C = s.items.find((Q) => Q.to ? Q.to === "/" ? o.pathname === "/" : !!(Q.to === o.pathname || o.pathname.startsWith(Q.to + "/")) : !1);
7010
+ const C = s.items.find((d) => d.to ? d.to === "/" ? o.pathname === "/" : !!(d.to === o.pathname || o.pathname.startsWith(d.to + "/")) : !1);
6999
7011
  if (C) {
7000
7012
  t = C, n = s;
7001
7013
  break;
@@ -7014,10 +7026,10 @@ const Yr = () => {
7014
7026
  setSearchParams: i,
7015
7027
  searchParams: e,
7016
7028
  searchQueries: r,
7017
- isHasQuery: (Q, w) => e.has(Q) && e.get(Q) === w,
7018
- getQueryParam: (Q) => e.get(Q),
7029
+ isHasQuery: (d, w) => e.has(d) && e.get(d) === w,
7030
+ getQueryParam: (d) => e.get(d),
7019
7031
  // route params
7020
- getRouteParam: (Q) => o[Q],
7032
+ getRouteParam: (d) => o[d],
7021
7033
  params: o,
7022
7034
  // location info
7023
7035
  location: t,
@@ -7032,21 +7044,21 @@ function pr(e) {
7032
7044
  return oA(() => {
7033
7045
  var s, C;
7034
7046
  const n = ((C = (s = i == null ? void 0 : i.access) == null ? void 0 : s.role) == null ? void 0 : C.code) ?? "", l = Object.keys(e.role).reduce(
7035
- (Q, w) => {
7047
+ (d, w) => {
7036
7048
  const B = `is${w.toLowerCase().replace(/(^\w|_\w)/g, (u) => u.replace("_", "").toUpperCase())}`;
7037
- return { ...Q, [B]: !1 };
7049
+ return { ...d, [B]: !1 };
7038
7050
  },
7039
7051
  {}
7040
7052
  );
7041
7053
  return {
7042
- ...Object.keys(e.role).reduce((Q, w) => {
7054
+ ...Object.keys(e.role).reduce((d, w) => {
7043
7055
  const B = `is${w.toLowerCase().replace(/(^\w|_\w)/g, (u) => u.replace("_", "").toUpperCase())}`;
7044
7056
  return {
7045
- ...Q,
7057
+ ...d,
7046
7058
  [B]: n === e.role[w]
7047
7059
  };
7048
7060
  }, l),
7049
- hasRole: (Q) => n === e.role[Q],
7061
+ hasRole: (d) => n === e.role[d],
7050
7062
  getRoleKey: () => n
7051
7063
  };
7052
7064
  }, [(t = (o = i == null ? void 0 : i.access) == null ? void 0 : o.role) == null ? void 0 : t.code, e]);
@@ -7064,7 +7076,7 @@ export {
7064
7076
  Gi as ColumnFilterDropdown,
7065
7077
  Lr as ConfirmationDialog,
7066
7078
  Yi as DataTable,
7067
- G as DecisionWrapper,
7079
+ O as DecisionWrapper,
7068
7080
  kA as EachUtils,
7069
7081
  yr as EmptyStatePage,
7070
7082
  yi as FilterDrawer,
@@ -7099,8 +7111,8 @@ export {
7099
7111
  Xt as formatDate,
7100
7112
  yA as formatDateToIndonesian,
7101
7113
  Pt as formatRupiah,
7102
- dr as getDateFilterValue,
7103
- Qr as getDateRangeFilterValue,
7114
+ Qr as getDateFilterValue,
7115
+ dr as getDateRangeFilterValue,
7104
7116
  Vt as getInitials,
7105
7117
  Br as getValueDropdownMultipleFilter,
7106
7118
  wr as getValueRadioFilter,