@starasia/admin 1.2.8 → 1.2.9

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,7 +1431,7 @@ 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: [
1434
+ ] }) }) }), h = () => /* @__PURE__ */ g(a, { gap: "sm", ...s, children: [
1432
1435
  w && j(),
1433
1436
  /* @__PURE__ */ g(
1434
1437
  a,
@@ -1439,17 +1442,17 @@ const Ht = _(
1439
1442
  align: "center",
1440
1443
  children: [
1441
1444
  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 }),
1445
+ /* @__PURE__ */ A(Q, { variant: "h2", fontWeight: "semibold", fontFamily: "Poppins", children: i }),
1443
1446
  r && /* @__PURE__ */ A(XA, { border: !0, size: "lg", text: r, ...l })
1444
1447
  ] }) : i,
1445
1448
  u()
1446
1449
  ]
1447
1450
  }
1448
1451
  )
1449
- ] }), O = () => o;
1452
+ ] }), Y = () => o;
1450
1453
  return /* @__PURE__ */ g(a, { gap: "lg", variant: "main", ...c, children: [
1451
- t && D(),
1452
- O()
1454
+ t && h(),
1455
+ Y()
1453
1456
  ] });
1454
1457
  }, Tt = _(Ke), Ze = {
1455
1458
  icon: "Cross",
@@ -1502,7 +1505,7 @@ const Ht = _(
1502
1505
  }
1503
1506
  ),
1504
1507
  /* @__PURE__ */ A(
1505
- d,
1508
+ Q,
1506
1509
  {
1507
1510
  fontFamily: "Poppins",
1508
1511
  fontSize: "md",
@@ -1560,31 +1563,31 @@ const Ht = _(
1560
1563
  onSearchChange: c,
1561
1564
  searchKey: s = "q",
1562
1565
  searchPlaceholder: C = "CTRL + K to search query",
1563
- searchHighlightPlaceholder: Q = "CTRL + K",
1566
+ searchHighlightPlaceholder: d = "CTRL + K",
1564
1567
  filterContainer: w,
1565
1568
  actionContainer: B,
1566
1569
  headerProps: u = { borderBottom: !0 },
1567
1570
  variantTag: j = "info"
1568
1571
  }) => {
1569
- const D = V("lg"), [O, Y] = uA(), F = O.get(s), U = DA(O.toString()), p = JA(
1572
+ const h = V("lg"), [Y, p] = uA(), N = Y.get(s), U = DA(Y.toString()), L = JA(
1570
1573
  ({ target: { value: P } }) => {
1571
- c && c(P), s && Y({ ...U, [s]: P });
1574
+ c && c(P), s && p({ ...U, [s]: P });
1572
1575
  },
1573
- [s, c, Y, U]
1576
+ [s, c, p, U]
1574
1577
  ), k = () => /* @__PURE__ */ A(
1575
1578
  IA,
1576
1579
  {
1577
1580
  placeholder: C,
1578
- highlightPlaceholder: Q,
1581
+ highlightPlaceholder: d,
1579
1582
  leftIcon: /* @__PURE__ */ A(m, { name: "Search", width: 20, height: 20 }),
1580
- onChange: p,
1583
+ onChange: L,
1581
1584
  style: { width: "100%" },
1582
- value: F || ""
1585
+ value: N || ""
1583
1586
  }
1584
1587
  ), Z = () => r ? /* @__PURE__ */ g(a, { direction: "row", gap: "sm", align: "center", children: [
1585
- /* @__PURE__ */ A(d, { fontWeight: "medium", children: i }),
1588
+ /* @__PURE__ */ A(Q, { fontWeight: "medium", children: i }),
1586
1589
  /* @__PURE__ */ A(XA, { border: !0, text: r, variant: j })
1587
- ] }) : /* @__PURE__ */ A(d, { fontWeight: "medium", children: i });
1590
+ ] }) : /* @__PURE__ */ A(Q, { fontWeight: "medium", children: i });
1588
1591
  return /* @__PURE__ */ g(
1589
1592
  a,
1590
1593
  {
@@ -1604,7 +1607,7 @@ const Ht = _(
1604
1607
  /* @__PURE__ */ A(
1605
1608
  a,
1606
1609
  {
1607
- style: D ? { width: "100%", maxWidth: "19.313rem" } : { flex: 1 },
1610
+ style: h ? { width: "100%", maxWidth: "19.313rem" } : { flex: 1 },
1608
1611
  ...B,
1609
1612
  children: o || (n ? k() : null)
1610
1613
  }
@@ -1618,7 +1621,7 @@ const Ht = _(
1618
1621
  );
1619
1622
  }
1620
1623
  ), qe = "#E6E9FB", Te = ({ children: e, onClick: i }) => {
1621
- const [r, o] = b("");
1624
+ const [r, o] = G("");
1622
1625
  return /* @__PURE__ */ A(
1623
1626
  aA,
1624
1627
  {
@@ -1659,31 +1662,31 @@ const Ht = _(
1659
1662
  [t]
1660
1663
  );
1661
1664
  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,
1665
+ /* @__PURE__ */ A(Be, { style: o, children: /* @__PURE__ */ A(b, { size: "sm", secondary: !0, ...l, children: /* @__PURE__ */ A(m, { name: e, ...c }) }) }),
1666
+ /* @__PURE__ */ A(we, { style: C, children: i.map((d, w) => s === "outline-button" ? /* @__PURE__ */ A(de, { children: /* @__PURE__ */ g(
1667
+ b,
1665
1668
  {
1666
1669
  size: "sm",
1667
1670
  secondary: !0,
1668
1671
  fullWidth: !0,
1669
- onClick: Q.onClick,
1670
- ...Q.buttonProps,
1672
+ onClick: d.onClick,
1673
+ ...d.buttonProps,
1671
1674
  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 })
1675
+ /* @__PURE__ */ A(m, { name: d.icon, size: "md", ...d.iconProps }),
1676
+ /* @__PURE__ */ A(Q, { fontSize: "sm", color: "text", ...d.textProps, children: d.label })
1674
1677
  ]
1675
1678
  }
1676
- ) }, Q.id || w) : /* @__PURE__ */ g(
1679
+ ) }, d.id || w) : /* @__PURE__ */ g(
1677
1680
  Ue,
1678
1681
  {
1679
- onClick: Q.onClick,
1680
- ...Q.buttonProps,
1682
+ onClick: d.onClick,
1683
+ ...d.buttonProps,
1681
1684
  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 })
1685
+ /* @__PURE__ */ A(m, { name: d.icon, size: "md", ...d.iconProps }),
1686
+ /* @__PURE__ */ A(Q, { fontSize: "sm", color: "text", ...d.textProps, children: d.label })
1684
1687
  ]
1685
1688
  },
1686
- Q.id || w
1689
+ d.id || w
1687
1690
  )) })
1688
1691
  ] });
1689
1692
  }, Wt = _(We), ne = cA.memo(({ text: e, onClose: i }) => {
@@ -1705,7 +1708,7 @@ const Ht = _(
1705
1708
  align: "center",
1706
1709
  display: "flex",
1707
1710
  children: [
1708
- /* @__PURE__ */ A(a, { paddingLeft: "sm", flex: "1", children: /* @__PURE__ */ A(d, { children: e }) }),
1711
+ /* @__PURE__ */ A(a, { paddingLeft: "sm", flex: "1", children: /* @__PURE__ */ A(Q, { children: e }) }),
1709
1712
  /* @__PURE__ */ A(
1710
1713
  aA,
1711
1714
  {
@@ -1758,17 +1761,17 @@ const Ht = _(
1758
1761
  let r = new Date(e);
1759
1762
  return r = typeof e != "object" ? void 0 : r, r;
1760
1763
  }, 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" }) }) })
1764
+ /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(Q, { fontWeight: "bold", children: e }) }),
1765
+ /* @__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
1766
  ] })), Xe = cA.memo(
1764
1767
  ({ value: e, options: i = [], onChange: r, multiple: o }) => {
1765
1768
  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
1769
  const s = [...n];
1767
1770
  let C = [];
1768
- o ? C = t.includes(c.value) ? s.filter((Q) => Q.value !== c.value) : [...s, c] : C = [c], r == null || r(C);
1771
+ o ? C = t.includes(c.value) ? s.filter((d) => d.value !== c.value) : [...s, c] : C = [c], r == null || r(C);
1769
1772
  };
1770
1773
  return /* @__PURE__ */ A(a, { direction: "row", gap: "sm", flexWrap: "wrap", children: i == null ? void 0 : i.map((c, s) => /* @__PURE__ */ A(
1771
- L,
1774
+ b,
1772
1775
  {
1773
1776
  ...t.includes(c.value) ? { primary: !0 } : { secondary: !0 },
1774
1777
  onClick: () => l(c),
@@ -1790,18 +1793,18 @@ const Ht = _(
1790
1793
  name: c,
1791
1794
  multiple: s,
1792
1795
  searchable: C,
1793
- onSearch: Q,
1796
+ onSearch: d,
1794
1797
  value: w,
1795
1798
  dateFilter: B,
1796
1799
  enableInputDate: u,
1797
1800
  withSearchParam: j,
1798
1801
  // disabled,
1799
- rangedDate: D,
1800
- disabled: O,
1801
- inputTextType: Y = "text",
1802
- min: F,
1802
+ rangedDate: h,
1803
+ disabled: Y,
1804
+ inputTextType: p = "text",
1805
+ min: N,
1803
1806
  max: U
1804
- }, p) => {
1807
+ }, L) => {
1805
1808
  const k = t == null ? void 0 : t.length;
1806
1809
  let Z;
1807
1810
  const H = () => {
@@ -1810,7 +1813,7 @@ const Ht = _(
1810
1813
  return /* @__PURE__ */ A(
1811
1814
  fA,
1812
1815
  {
1813
- onSearch: Q,
1816
+ onSearch: d,
1814
1817
  multiSelect: s,
1815
1818
  searchAble: C,
1816
1819
  placeholder: n,
@@ -1825,10 +1828,10 @@ const Ht = _(
1825
1828
  {
1826
1829
  input: u,
1827
1830
  filter: B,
1828
- value: Pe(w || Z, D),
1831
+ value: Pe(w || Z, h),
1829
1832
  onChange: (q) => o == null ? void 0 : o({ value: q, name: c, type: i }),
1830
- rangedDate: D,
1831
- ref: p
1833
+ rangedDate: h,
1834
+ ref: L
1832
1835
  }
1833
1836
  );
1834
1837
  case "select-button":
@@ -1848,12 +1851,12 @@ const Ht = _(
1848
1851
  onChange: ({ target: { value: q } }) => o == null ? void 0 : o({ value: q, name: c, type: i }),
1849
1852
  value: w || Z,
1850
1853
  placeholder: n,
1851
- disabled: O,
1852
- type: Y,
1854
+ disabled: Y,
1855
+ type: p,
1853
1856
  name: c,
1854
- ...Y === "number" && { min: F, max: U },
1855
- ...(!Y || Y === "text") && {
1856
- minLength: F,
1857
+ ...p === "number" && { min: N, max: U },
1858
+ ...(!p || p === "text") && {
1859
+ minLength: N,
1857
1860
  maxLength: U
1858
1861
  }
1859
1862
  }
@@ -1865,15 +1868,15 @@ const Ht = _(
1865
1868
  return k ? /* @__PURE__ */ A(a, { marginBottom: "lg", children: t == null ? void 0 : t.map((q, E) => /* @__PURE__ */ A(
1866
1869
  le,
1867
1870
  {
1868
- ref: p,
1871
+ ref: L,
1869
1872
  onChange: o,
1870
1873
  ...q,
1871
1874
  withSearchParam: j
1872
1875
  },
1873
1876
  E
1874
1877
  )) }) : /* @__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,
1878
+ l ? /* @__PURE__ */ A(Q, { color: "text-muted", marginBottom: "sm", fontWeight: "medium", children: l }) : null,
1879
+ e ? /* @__PURE__ */ A(Q, { marginBottom: "sm", fontWeight: "medium", children: e }) : null,
1877
1880
  /* @__PURE__ */ A(a, { children: H() })
1878
1881
  ] });
1879
1882
  }
@@ -1888,7 +1891,7 @@ const Ht = _(
1888
1891
  onHide: n,
1889
1892
  resetting: l
1890
1893
  }) => {
1891
- const [c, s] = b(!1), C = AA(null), Q = ({ value: B, name: u, type: j }) => {
1894
+ const [c, s] = G(!1), C = AA(null), d = ({ value: B, name: u, type: j }) => {
1892
1895
  if (o)
1893
1896
  switch (j) {
1894
1897
  case "date":
@@ -1921,7 +1924,7 @@ const Ht = _(
1921
1924
  le,
1922
1925
  {
1923
1926
  borderBottom: u !== r.length - 1,
1924
- onChange: Q,
1927
+ onChange: d,
1925
1928
  withSearchParam: o,
1926
1929
  ...B,
1927
1930
  ref: C
@@ -2143,74 +2146,74 @@ const gr = (e) => {
2143
2146
  }), r;
2144
2147
  }, ar = (e) => {
2145
2148
  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 = () => {
2149
+ 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
2150
  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) => {
2151
+ }, w = (L) => {
2152
+ o(L);
2153
+ }, 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
2154
  var q, E, f;
2152
- const k = KA(p, i.fields), Z = [];
2155
+ const k = KA(L, i.fields), Z = [];
2153
2156
  let H = "";
2154
2157
  const P = (q = k == null ? void 0 : k.childrenKey) == null ? void 0 : q.length, X = k == null ? void 0 : k.parentKey;
2155
2158
  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]
2159
+ const D = KA(M, i.fields);
2160
+ D && Z.push({
2161
+ name: D == null ? void 0 : D.name,
2162
+ label: D == null ? void 0 : D.label,
2163
+ value: B[D == null ? void 0 : D.name]
2161
2164
  });
2162
2165
  })), k == null ? void 0 : k.type) {
2163
2166
  case "dropdown":
2164
2167
  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}`;
2168
+ 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];
2169
+ H = `${k == null ? void 0 : k.label}: ${D}`;
2167
2170
  break;
2168
2171
  case "date":
2169
2172
  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;
2173
+ 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
2174
  H = `${k == null ? void 0 : k.label}: ${T || ""} ~ ${tA || ""}`;
2172
2175
  break;
2173
2176
  }
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 || ""}`;
2177
+ const F = (k == null ? void 0 : k.dateValueFormatText) === "indonesian" ? yA(new Date(B[L])) : B[L];
2178
+ H = `${k == null ? void 0 : k.label}: ${F || ""}`;
2176
2179
  break;
2177
2180
  default:
2178
- H = `${k == null ? void 0 : k.label}: ${B[p]}`;
2181
+ H = `${k == null ? void 0 : k.label}: ${B[L]}`;
2179
2182
  break;
2180
2183
  }
2181
2184
  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;
2185
+ let M = Z.map((D) => {
2186
+ var F, x;
2187
+ 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
2188
  });
2186
2189
  M = M.filter(
2187
- (h) => typeof h < "u" && h !== "" && h !== null
2190
+ (D) => typeof D < "u" && D !== "" && D !== null
2188
2191
  ), M && M.length > 0 && (H = `${H} ${k.relationLabelChip || "by"} ${M}`);
2189
2192
  }
2190
2193
  return X && (H = ""), {
2191
2194
  name: k == null ? void 0 : k.name,
2192
2195
  label: k == null ? void 0 : k.label,
2193
- value: B[p],
2196
+ value: B[L],
2194
2197
  valueText: H,
2195
2198
  children: Z
2196
2199
  };
2197
- }) : [], D = (p) => {
2198
- p != null && p.name && o(!0);
2199
- }, O = j();
2200
+ }) : [], h = (L) => {
2201
+ L != null && L.name && o(!0);
2202
+ }, Y = j();
2200
2203
  return {
2201
2204
  value: B,
2202
2205
  open: c,
2203
2206
  close: s,
2204
2207
  toggle: C,
2205
- reset: Q,
2206
- chips: O,
2208
+ reset: d,
2209
+ chips: Y,
2207
2210
  toggleConfig: {
2208
2211
  active: u,
2209
2212
  onClick: C
2210
2213
  },
2211
2214
  chipsConfig: {
2212
- items: O,
2213
- onClose: D
2215
+ items: Y,
2216
+ onClose: h
2214
2217
  },
2215
2218
  config: {
2216
2219
  ...i,
@@ -2225,7 +2228,7 @@ const gr = (e) => {
2225
2228
  Toggle: _e,
2226
2229
  Chips: Re,
2227
2230
  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 = {
2231
+ }, 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
2232
  H1: ni,
2230
2233
  H2: li,
2231
2234
  H3: ci,
@@ -2235,8 +2238,8 @@ const gr = (e) => {
2235
2238
  SubH1: Ci,
2236
2239
  SubH2: Bi,
2237
2240
  SubH3: wi,
2238
- Body1: Qi,
2239
- Body2: di,
2241
+ Body1: di,
2242
+ Body2: Qi,
2240
2243
  Body3: hi
2241
2244
  }, qA = () => {
2242
2245
  const [e, i] = uA(), r = DA(e.toString()), o = re(), t = SA(), n = o.id;
@@ -2245,10 +2248,10 @@ const gr = (e) => {
2245
2248
  setSearchParams: i,
2246
2249
  searchParams: e,
2247
2250
  searchQueries: r,
2248
- isHasQuery: (Q, w) => e.has(Q) && e.get(Q) === w,
2249
- getQueryParam: (Q) => e.get(Q),
2251
+ isHasQuery: (d, w) => e.has(d) && e.get(d) === w,
2252
+ getQueryParam: (d) => e.get(d),
2250
2253
  // route params
2251
- getRouteParam: (Q) => o[Q],
2254
+ getRouteParam: (d) => o[d],
2252
2255
  params: o,
2253
2256
  // location info
2254
2257
  location: t,
@@ -2333,7 +2336,7 @@ const gr = (e) => {
2333
2336
  }, mi = (e, i, r) => {
2334
2337
  const o = i.get(r || "filter") || void 0, t = o && typeof o == "string" ? JSON.parse(o) : void 0;
2335
2338
  return t ? t[e] : void 0;
2336
- }, Qr = ({
2339
+ }, dr = ({
2337
2340
  name: e,
2338
2341
  filterKey: i = "filter",
2339
2342
  searchParams: r
@@ -2343,7 +2346,7 @@ const gr = (e) => {
2343
2346
  start: n ? JSON.parse(n).from : void 0,
2344
2347
  end: n ? JSON.parse(n).to : void 0
2345
2348
  };
2346
- }, dr = ({
2349
+ }, Qr = ({
2347
2350
  name: e,
2348
2351
  filterKey: i = "filter",
2349
2352
  searchParams: r
@@ -2364,7 +2367,7 @@ const gr = (e) => {
2364
2367
  pageKey: o,
2365
2368
  filters: t
2366
2369
  }) => {
2367
- const { searchParams: n, setSearchParams: l, searchQueries: c } = qA(), [s, C] = b({}), Q = () => {
2370
+ const { searchParams: n, setSearchParams: l, searchQueries: c } = qA(), [s, C] = G({}), d = () => {
2368
2371
  n.delete(r || "filter"), l(n);
2369
2372
  }, w = (B, u) => {
2370
2373
  switch (B.type) {
@@ -2395,7 +2398,7 @@ const gr = (e) => {
2395
2398
  a,
2396
2399
  {
2397
2400
  style: { cursor: "pointer" },
2398
- onClick: Q,
2401
+ onClick: d,
2399
2402
  children: "Reset"
2400
2403
  }
2401
2404
  )
@@ -2413,22 +2416,22 @@ const gr = (e) => {
2413
2416
  filterKey: c = "filter",
2414
2417
  pageKey: s = "page",
2415
2418
  customWidthSearch: C,
2416
- handleOnReset: Q,
2419
+ handleOnReset: d,
2417
2420
  filterConfigs: w,
2418
2421
  buttonToggleProps: B,
2419
2422
  position: u = "right",
2420
2423
  titleSearchLabel: j = "Work Order",
2421
- withTitleLabels: D = !1
2424
+ withTitleLabels: h = !1
2422
2425
  }) => {
2423
- const O = (B == null ? void 0 : B.isShowLabel) ?? !0, [Y, F] = b(!1), [U, p] = b(0), k = () => {
2424
- p(U + 1);
2426
+ const Y = (B == null ? void 0 : B.isShowLabel) ?? !0, [p, N] = G(!1), [U, L] = G(0), k = () => {
2427
+ L(U + 1);
2425
2428
  }, { searchParams: Z, setSearchParams: H, getQueryParam: P } = qA(), X = DA(Z.toString()), q = P(c), f = !!(q && !(() => {
2426
2429
  if (q)
2427
2430
  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);
2431
+ const D = JSON.parse(q);
2432
+ return Object.keys(D).length === 1 && D[e] === "";
2433
+ } catch (D) {
2434
+ console.error("Filter parameter is not a valid JSON:", D);
2432
2435
  }
2433
2436
  return !1;
2434
2437
  })()), M = V("md");
@@ -2442,17 +2445,17 @@ const gr = (e) => {
2442
2445
  align: "flex-end",
2443
2446
  children: [
2444
2447
  f && /* @__PURE__ */ A(a, { justify: "flex-end", children: /* @__PURE__ */ A(
2445
- L,
2448
+ b,
2446
2449
  {
2447
2450
  onClick: () => {
2448
- Z.delete(c), H(Z), k(), Q && Q();
2451
+ Z.delete(c), H(Z), k(), d && d();
2449
2452
  },
2450
2453
  secondary: !0,
2451
- children: /* @__PURE__ */ A(d, { color: "error", fontWeight: "semibold", children: "Reset" })
2454
+ children: /* @__PURE__ */ A(Q, { color: "error", fontWeight: "semibold", children: "Reset" })
2452
2455
  }
2453
2456
  ) }),
2454
2457
  !!(w != null && w.length) && /* @__PURE__ */ A(
2455
- L,
2458
+ b,
2456
2459
  {
2457
2460
  primary: f,
2458
2461
  secondary: !f,
@@ -2467,8 +2470,8 @@ const gr = (e) => {
2467
2470
  }
2468
2471
  ),
2469
2472
  fullWidth: !M,
2470
- onClick: () => F(!0),
2471
- children: O ? "Filter" : void 0
2473
+ onClick: () => N(!0),
2474
+ children: Y ? "Filter" : void 0
2472
2475
  }
2473
2476
  ),
2474
2477
  l && /* @__PURE__ */ g(
@@ -2479,7 +2482,7 @@ const gr = (e) => {
2479
2482
  minWidth: "126px"
2480
2483
  },
2481
2484
  children: [
2482
- D && /* @__PURE__ */ A(K.SubH3, { children: "Status" }),
2485
+ h && /* @__PURE__ */ A(K.SubH3, { children: "Status" }),
2483
2486
  /* @__PURE__ */ A(
2484
2487
  fA,
2485
2488
  {
@@ -2514,15 +2517,15 @@ const gr = (e) => {
2514
2517
  })
2515
2518
  }
2516
2519
  ] : [],
2517
- onChange: (h) => PA({
2518
- value: h,
2520
+ onChange: (D) => PA({
2521
+ value: D,
2519
2522
  name: i,
2520
2523
  type: "dropdown",
2521
2524
  searchQueries: X,
2522
2525
  setSearchParams: H,
2523
2526
  filterKey: c
2524
2527
  }),
2525
- placeholder: D ? "All" : "All Status"
2528
+ placeholder: h ? "All" : "All Status"
2526
2529
  },
2527
2530
  U
2528
2531
  )
@@ -2537,7 +2540,7 @@ const gr = (e) => {
2537
2540
  width: C && M ? C : M ? "310px" : ""
2538
2541
  },
2539
2542
  children: [
2540
- D && /* @__PURE__ */ g(K.SubH3, { children: [
2543
+ h && /* @__PURE__ */ g(K.SubH3, { children: [
2541
2544
  "Search for ",
2542
2545
  j
2543
2546
  ] }),
@@ -2546,8 +2549,8 @@ const gr = (e) => {
2546
2549
  {
2547
2550
  placeholder: r,
2548
2551
  leftIcon: /* @__PURE__ */ A(m, { name: "Search", width: 20, height: 20 }),
2549
- onChange: (h) => PA({
2550
- value: h.target.value,
2552
+ onChange: (D) => PA({
2553
+ value: D.target.value,
2551
2554
  name: e,
2552
2555
  type: "search",
2553
2556
  searchQueries: X,
@@ -2563,17 +2566,17 @@ const gr = (e) => {
2563
2566
  ]
2564
2567
  }
2565
2568
  ),
2566
- t == null ? void 0 : t.map(({ minWidth: h, content: N, title: x, onClickContainer: T }) => /* @__PURE__ */ g(
2569
+ t == null ? void 0 : t.map(({ minWidth: D, content: F, title: x, onClickContainer: T }) => /* @__PURE__ */ g(
2567
2570
  a,
2568
2571
  {
2569
2572
  gap: "sm",
2570
2573
  onClick: T,
2571
2574
  style: {
2572
- minWidth: h
2575
+ minWidth: D
2573
2576
  },
2574
2577
  children: [
2575
2578
  /* @__PURE__ */ A(K.SubH3, { children: x }),
2576
- N
2579
+ F
2577
2580
  ]
2578
2581
  },
2579
2582
  x + U
@@ -2581,8 +2584,8 @@ const gr = (e) => {
2581
2584
  /* @__PURE__ */ A(
2582
2585
  yi,
2583
2586
  {
2584
- isOpen: Y,
2585
- onClose: () => F(!1),
2587
+ isOpen: p,
2588
+ onClose: () => N(!1),
2586
2589
  filterKey: c,
2587
2590
  filters: w,
2588
2591
  pageKey: s
@@ -2592,7 +2595,7 @@ const gr = (e) => {
2592
2595
  }
2593
2596
  );
2594
2597
  }, fi = ({ children: e, borderRadius: i }) => {
2595
- const r = AA(null), [o, t] = b("100vh");
2598
+ const r = AA(null), [o, t] = G("100vh");
2596
2599
  return R(() => {
2597
2600
  const n = () => {
2598
2601
  if (r.current) {
@@ -2635,7 +2638,7 @@ const gr = (e) => {
2635
2638
  },
2636
2639
  children: e.map(
2637
2640
  ({ title: n, icon: l, buttonProps: c, onClick: s }, C) => !n && !l ? null : /* @__PURE__ */ A(
2638
- L,
2641
+ b,
2639
2642
  {
2640
2643
  fullWidth: !o,
2641
2644
  iconLeft: l ? /* @__PURE__ */ A(m, { name: l, size: "md" }) : void 0,
@@ -2712,7 +2715,7 @@ const gr = (e) => {
2712
2715
  showPagination: t = !0,
2713
2716
  totalData: n
2714
2717
  }) => {
2715
- const { searchQueries: l, setSearchParams: c, searchParams: s } = qA(), C = s.get(r), Q = (j) => {
2718
+ const { searchQueries: l, setSearchParams: c, searchParams: s } = qA(), C = s.get(r), d = (j) => {
2716
2719
  c({ ...l, [i]: String(j) });
2717
2720
  }, w = (j) => {
2718
2721
  c({
@@ -2739,7 +2742,7 @@ const gr = (e) => {
2739
2742
  },
2740
2743
  children: t ? /* @__PURE__ */ g(W, { children: [
2741
2744
  /* @__PURE__ */ g(a, { style: { display: "flex", flexDirection: "row", gap: "8px", alignItems: "center" }, children: [
2742
- /* @__PURE__ */ A(d, { children: "Rows Per Page: " }),
2745
+ /* @__PURE__ */ A(Q, { children: "Rows Per Page: " }),
2743
2746
  /* @__PURE__ */ A(
2744
2747
  fA,
2745
2748
  {
@@ -2756,14 +2759,14 @@ const gr = (e) => {
2756
2759
  defaultValue: C ? [{ label: `${C} per row`, value: C }] : [{ label: `${o} per row`, value: `${o}` }]
2757
2760
  }
2758
2761
  ),
2759
- /* @__PURE__ */ A(d, { children: `${B}-${u} of ${(e == null ? void 0 : e.totalData) || 0}` })
2762
+ /* @__PURE__ */ A(Q, { children: `${B}-${u} of ${(e == null ? void 0 : e.totalData) || 0}` })
2760
2763
  ] }),
2761
2764
  /* @__PURE__ */ A(
2762
- de,
2765
+ Qe,
2763
2766
  {
2764
2767
  currentPage: e != null && e.currentPage ? Number(e == null ? void 0 : e.currentPage) : 1,
2765
2768
  totalCount: e != null && e.totalPage ? Number(e == null ? void 0 : e.totalPage) : 1,
2766
- onPageChange: Q
2769
+ onPageChange: d
2767
2770
  }
2768
2771
  )
2769
2772
  ] }) : /* @__PURE__ */ A(
@@ -2777,30 +2780,30 @@ const gr = (e) => {
2777
2780
  }
2778
2781
  );
2779
2782
  }, 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())
2783
+ 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(
2784
+ (h) => h.label.toLowerCase().includes(c.toLowerCase())
2782
2785
  ) : e.options, [e.options, c]);
2783
2786
  R(() => {
2784
2787
  if (r && n.current) {
2785
- const D = n.current.getBoundingClientRect(), O = 280, Y = {
2786
- top: D.bottom + 8
2788
+ const h = n.current.getBoundingClientRect(), Y = 280, p = {
2789
+ top: h.bottom + 8
2787
2790
  };
2788
- e.position === "left" || D.left + O > window.innerWidth ? Y.right = window.innerWidth - D.right : Y.left = D.left, Q(Y);
2791
+ e.position === "left" || h.left + Y > window.innerWidth ? p.right = window.innerWidth - h.right : p.left = h.left, d(p);
2789
2792
  }
2790
2793
  }, [r, e.position]), R(() => {
2791
2794
  r && l.current ? setTimeout(() => {
2792
- var D;
2793
- return (D = l.current) == null ? void 0 : D.focus();
2795
+ var h;
2796
+ return (h = l.current) == null ? void 0 : h.focus();
2794
2797
  }, 50) : s("");
2795
2798
  }, [r]), R(() => {
2796
- const D = (O) => {
2797
- t.current && !t.current.contains(O.target) && n.current && !n.current.contains(O.target) && o(!1);
2799
+ const h = (Y) => {
2800
+ t.current && !t.current.contains(Y.target) && n.current && !n.current.contains(Y.target) && o(!1);
2798
2801
  };
2799
- return r && document.addEventListener("mousedown", D), () => document.removeEventListener("mousedown", D);
2802
+ return r && document.addEventListener("mousedown", h), () => document.removeEventListener("mousedown", h);
2800
2803
  }, [r]);
2801
- const u = (D) => {
2802
- const O = w.includes(D) ? w.filter((Y) => Y !== D) : [...w, D];
2803
- e.onFilterChange(O);
2804
+ const u = (h) => {
2805
+ const Y = w.includes(h) ? w.filter((p) => p !== h) : [...w, h];
2806
+ e.onFilterChange(Y);
2804
2807
  }, j = () => e.onFilterChange([]);
2805
2808
  return /* @__PURE__ */ g(a, { style: { position: "relative" }, children: [
2806
2809
  /* @__PURE__ */ A(
@@ -2813,9 +2816,9 @@ const gr = (e) => {
2813
2816
  alignItems: "center",
2814
2817
  cursor: "pointer"
2815
2818
  },
2816
- onClick: (D) => {
2817
- var O;
2818
- D.stopPropagation(), r || (O = e.onOpen) == null || O.call(e), o((Y) => !Y);
2819
+ onClick: (h) => {
2820
+ var Y;
2821
+ h.stopPropagation(), r || (Y = e.onOpen) == null || Y.call(e), o((p) => !p);
2819
2822
  },
2820
2823
  children: /* @__PURE__ */ A(
2821
2824
  m,
@@ -2863,18 +2866,18 @@ const gr = (e) => {
2863
2866
  borderBottom: "1px solid rgb(var(--starasia-ui-raw-color-gray-100))"
2864
2867
  },
2865
2868
  children: [
2866
- /* @__PURE__ */ g(d, { fontSize: "sm", fontWeight: "semibold", color: "gray-700", children: [
2869
+ /* @__PURE__ */ g(Q, { fontSize: "sm", fontWeight: "semibold", color: "gray-700", children: [
2867
2870
  "Filter ",
2868
2871
  i
2869
2872
  ] }),
2870
2873
  w.length > 0 && /* @__PURE__ */ A(a, { style: { cursor: "pointer" }, children: /* @__PURE__ */ A(
2871
- d,
2874
+ Q,
2872
2875
  {
2873
2876
  fontSize: "xs",
2874
2877
  color: "primary",
2875
2878
  fontWeight: "semibold",
2876
- onClick: (D) => {
2877
- D.stopPropagation(), j();
2879
+ onClick: (h) => {
2880
+ h.stopPropagation(), j();
2878
2881
  },
2879
2882
  children: "CLEAR"
2880
2883
  }
@@ -2898,7 +2901,7 @@ const gr = (e) => {
2898
2901
  placeholder: `Search ${i.toLowerCase()}...`,
2899
2902
  leftIcon: /* @__PURE__ */ A(m, { name: "Search", size: "sm" }),
2900
2903
  value: c,
2901
- onChange: (D) => s(D.target.value),
2904
+ onChange: (h) => s(h.target.value),
2902
2905
  style: { fontSize: "14px" }
2903
2906
  }
2904
2907
  )
@@ -2938,7 +2941,7 @@ const gr = (e) => {
2938
2941
  }
2939
2942
  ),
2940
2943
  /* @__PURE__ */ A(
2941
- d,
2944
+ Q,
2942
2945
  {
2943
2946
  fontSize: "sm",
2944
2947
  color: "gray-500",
@@ -2948,7 +2951,7 @@ const gr = (e) => {
2948
2951
  )
2949
2952
  ]
2950
2953
  }
2951
- ) : B.length > 0 ? /* @__PURE__ */ A(a, { style: { gap: "2px", paddingTop: "4px", paddingBottom: "4px" }, children: B.map((D) => /* @__PURE__ */ g(
2954
+ ) : B.length > 0 ? /* @__PURE__ */ A(a, { style: { gap: "2px", paddingTop: "4px", paddingBottom: "4px" }, children: B.map((h) => /* @__PURE__ */ g(
2952
2955
  a,
2953
2956
  {
2954
2957
  style: {
@@ -2963,38 +2966,38 @@ const gr = (e) => {
2963
2966
  cursor: "pointer",
2964
2967
  borderRadius: "8px",
2965
2968
  transition: "all 0.2s ease",
2966
- backgroundColor: w.includes(D.value) ? "rgb(var(--starasia-ui-raw-color-blue-50))" : "transparent"
2969
+ backgroundColor: w.includes(h.value) ? "rgb(var(--starasia-ui-raw-color-blue-50))" : "transparent"
2967
2970
  },
2968
- onClick: (O) => {
2969
- O.stopPropagation(), u(D.value);
2971
+ onClick: (Y) => {
2972
+ Y.stopPropagation(), u(h.value);
2970
2973
  },
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)";
2974
+ onMouseEnter: (Y) => {
2975
+ w.includes(h.value) || (Y.currentTarget.style.backgroundColor = "rgb(var(--starasia-ui-raw-color-gray-50))"), Y.currentTarget.style.transform = "translateX(2px)";
2973
2976
  },
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)";
2977
+ onMouseLeave: (Y) => {
2978
+ Y.currentTarget.style.backgroundColor = w.includes(h.value) ? "rgb(var(--starasia-ui-raw-color-blue-50))" : "transparent", Y.currentTarget.style.transform = "translateX(0)";
2976
2979
  },
2977
2980
  children: [
2978
2981
  /* @__PURE__ */ A(
2979
2982
  FA,
2980
2983
  {
2981
- checked: w.includes(D.value),
2984
+ checked: w.includes(h.value),
2982
2985
  onChange: () => {
2983
2986
  }
2984
2987
  }
2985
2988
  ),
2986
2989
  /* @__PURE__ */ A(
2987
- d,
2990
+ Q,
2988
2991
  {
2989
2992
  fontSize: "sm",
2990
- fontWeight: w.includes(D.value) ? "medium" : "normal",
2991
- color: w.includes(D.value) ? "primary" : "gray-700",
2992
- children: D.label
2993
+ fontWeight: w.includes(h.value) ? "medium" : "normal",
2994
+ color: w.includes(h.value) ? "primary" : "gray-700",
2995
+ children: h.label
2993
2996
  }
2994
2997
  )
2995
2998
  ]
2996
2999
  },
2997
- D.value
3000
+ h.value
2998
3001
  )) }) : /* @__PURE__ */ g(
2999
3002
  a,
3000
3003
  {
@@ -3016,7 +3019,7 @@ const gr = (e) => {
3016
3019
  }
3017
3020
  ),
3018
3021
  /* @__PURE__ */ A(
3019
- d,
3022
+ Q,
3020
3023
  {
3021
3024
  fontSize: "sm",
3022
3025
  color: "gray-500",
@@ -3056,7 +3059,7 @@ const gr = (e) => {
3056
3059
  children: w.length
3057
3060
  }
3058
3061
  ),
3059
- /* @__PURE__ */ g(d, { fontSize: "xs", color: "primary", fontWeight: "medium", children: [
3062
+ /* @__PURE__ */ g(Q, { fontSize: "xs", color: "primary", fontWeight: "medium", children: [
3060
3063
  "item",
3061
3064
  w.length > 1 ? "s" : "",
3062
3065
  " selected"
@@ -3095,24 +3098,24 @@ const gr = (e) => {
3095
3098
  visibleHandleUpdate: c,
3096
3099
  visibleHandleDetail: s,
3097
3100
  showHeadBorder: C = !0,
3098
- scrollParentRef: Q,
3101
+ scrollParentRef: d,
3099
3102
  frozenCount: w = 0,
3100
3103
  onFrozenCountChange: B,
3101
3104
  customActions: u,
3102
3105
  actionsOrder: j = ["detail", "update", "delete", "custom"],
3103
- customEmptyState: D
3106
+ customEmptyState: h
3104
3107
  }) => {
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) => {
3108
+ 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
3109
  if (!f) return E;
3107
3110
  if (typeof f == "function") return f(E);
3108
3111
  if (typeof f == "string") return E[f];
3109
- }, [k, Z] = b(!1);
3112
+ }, [k, Z] = G(!1);
3110
3113
  R(() => {
3111
- if (!(Q != null && Q.current)) return;
3112
- const E = Q.current;
3114
+ if (!(d != null && d.current)) return;
3115
+ const E = d.current;
3113
3116
  Z(E.scrollHeight > E.clientHeight);
3114
- }, [i, Q]);
3115
- const H = AA(null), [P, X] = b([]);
3117
+ }, [i, d]);
3118
+ const H = AA(null), [P, X] = G([]);
3116
3119
  zA(() => {
3117
3120
  if (!w || !H.current) {
3118
3121
  X([]);
@@ -3122,8 +3125,8 @@ const gr = (e) => {
3122
3125
  H.current.querySelectorAll("thead tr th")
3123
3126
  ), f = [];
3124
3127
  let M = 0;
3125
- E.forEach((h, N) => {
3126
- f[N] = M, N < w && (M += h.offsetWidth);
3128
+ E.forEach((D, F) => {
3129
+ f[F] = M, F < w && (M += D.offsetWidth);
3127
3130
  }), X(f);
3128
3131
  }, [w, e, i]);
3129
3132
  const q = (E) => {
@@ -3137,17 +3140,17 @@ const gr = (e) => {
3137
3140
  height: "40px",
3138
3141
  whiteSpace: "nowrap"
3139
3142
  },
3140
- children: /* @__PURE__ */ g(QA, { children: [
3143
+ children: /* @__PURE__ */ g(dA, { children: [
3141
3144
  e.map((E, f) => {
3142
- var N;
3143
- const M = w > 0 && f < w, h = P[f] ?? 0;
3145
+ var F;
3146
+ const M = w > 0 && f < w, D = P[f] ?? 0;
3144
3147
  return /* @__PURE__ */ A(
3145
3148
  TA,
3146
3149
  {
3147
3150
  style: {
3148
3151
  position: "sticky",
3149
3152
  top: 0,
3150
- left: M ? h : void 0,
3153
+ left: M ? D : void 0,
3151
3154
  zIndex: M ? 4 : 2,
3152
3155
  paddingLeft: f === 0 ? "12px" : "",
3153
3156
  borderRight: C ? "1px solid var(--starasia-ui-utility-fill-default)" : void 0,
@@ -3167,7 +3170,7 @@ const gr = (e) => {
3167
3170
  minWidth: 0
3168
3171
  },
3169
3172
  children: [
3170
- /* @__PURE__ */ A("span", { style: { flex: 1, minWidth: 0 }, children: E.title || ((N = E.accessor) == null ? void 0 : N.toString()) }),
3173
+ /* @__PURE__ */ A("span", { style: { flex: 1, minWidth: 0 }, children: E.title || ((F = E.accessor) == null ? void 0 : F.toString()) }),
3171
3174
  E.filter && /* @__PURE__ */ A(
3172
3175
  Gi,
3173
3176
  {
@@ -3218,14 +3221,14 @@ const gr = (e) => {
3218
3221
  ] })
3219
3222
  }
3220
3223
  ),
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: [
3224
+ /* @__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
3225
  /* @__PURE__ */ A(lA, { variant: "list" }),
3223
3226
  /* @__PURE__ */ A(lA, { variant: "list" }),
3224
3227
  /* @__PURE__ */ A(lA, { variant: "list" }),
3225
3228
  /* @__PURE__ */ A(lA, { variant: "list" }),
3226
3229
  /* @__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,
3230
+ ] }) }) }) : !(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(
3231
+ dA,
3229
3232
  {
3230
3233
  style: {
3231
3234
  transition: "background-color 0.3s ease",
@@ -3233,24 +3236,24 @@ const gr = (e) => {
3233
3236
  borderBottom: f === i.length - 1 && k ? void 0 : "1px solid var(--starasia-ui-utility-fill-default)"
3234
3237
  },
3235
3238
  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) => {
3239
+ const D = M.currentTarget;
3240
+ 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
3241
  x.style.backgroundColor = pA;
3239
3242
  });
3240
- const N = Array.from(h.querySelectorAll("td")).at(-1);
3241
- N && N.style.position === "sticky" && (N.style.backgroundColor = pA);
3243
+ const F = Array.from(D.querySelectorAll("td")).at(-1);
3244
+ F && F.style.position === "sticky" && (F.style.backgroundColor = pA);
3242
3245
  },
3243
3246
  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) => {
3247
+ const D = M.currentTarget;
3248
+ D.style.backgroundColor = "", D.style.position = "", D.style.zIndex = "", w > 0 && Array.from(D.querySelectorAll("td")).slice(0, w).forEach((x) => {
3246
3249
  x.style.backgroundColor = mA;
3247
3250
  });
3248
- const N = Array.from(h.querySelectorAll("td")).at(-1);
3249
- N && N.style.position === "sticky" && (N.style.backgroundColor = mA);
3251
+ const F = Array.from(D.querySelectorAll("td")).at(-1);
3252
+ F && F.style.position === "sticky" && (F.style.backgroundColor = mA);
3250
3253
  },
3251
3254
  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;
3255
+ e.map((M, D) => {
3256
+ const F = M.render ? M.render(E, f, i) : L(E, M.accessor), x = w > 0 && D < w, T = P[D] ?? 0;
3254
3257
  return /* @__PURE__ */ A(
3255
3258
  sA,
3256
3259
  {
@@ -3259,14 +3262,14 @@ const gr = (e) => {
3259
3262
  left: x ? T : void 0,
3260
3263
  zIndex: x ? 1 : void 0,
3261
3264
  backgroundColor: x ? mA : void 0,
3262
- paddingLeft: h === 0 ? "12px" : "",
3265
+ paddingLeft: D === 0 ? "12px" : "",
3263
3266
  whiteSpace: "nowrap",
3264
3267
  borderLeft: M.showBorderLeft ? "1px solid var(--starasia-ui-utility-fill-default)" : void 0,
3265
3268
  borderRight: M.showBorderRight ? "1px solid var(--starasia-ui-utility-fill-default)" : void 0,
3266
3269
  textAlign: M.textAlign === "text-right" ? "right" : M.textAlign === "text-center" ? "center" : "left"
3267
3270
  },
3268
- children: typeof N == "string" ? /* @__PURE__ */ A(
3269
- d,
3271
+ children: typeof F == "string" ? /* @__PURE__ */ A(
3272
+ Q,
3270
3273
  {
3271
3274
  style: {
3272
3275
  whiteSpace: "nowrap",
@@ -3274,11 +3277,11 @@ const gr = (e) => {
3274
3277
  textOverflow: "ellipsis",
3275
3278
  textAlign: M.textAlign === "text-right" ? "right" : M.textAlign === "text-center" ? "center" : "left"
3276
3279
  },
3277
- children: N
3280
+ children: F
3278
3281
  }
3279
- ) : N
3282
+ ) : F
3280
3283
  },
3281
- `row-${f}-col-${h}`
3284
+ `row-${f}-col-${D}`
3282
3285
  );
3283
3286
  }),
3284
3287
  r || o || t || u ? /* @__PURE__ */ A(sA, { style: {
@@ -3288,25 +3291,25 @@ const gr = (e) => {
3288
3291
  zIndex: 1,
3289
3292
  backgroundColor: mA
3290
3293
  }, 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,
3294
+ const D = f === i.length - 1 ? "top" : "bottom";
3295
+ return M === "detail" && r && (s == null ? void 0 : s(E)) !== !1 ? /* @__PURE__ */ A(iA, { label: "Detail", position: D, children: /* @__PURE__ */ A(
3296
+ b,
3294
3297
  {
3295
3298
  size: "xs",
3296
3299
  secondary: !0,
3297
3300
  onClick: () => r(E.id, E),
3298
3301
  iconLeft: /* @__PURE__ */ A(m, { name: "DocumentClean", size: "sm", style: { color: "rgb(var(--starasia-ui-raw-color-gray-600))" } })
3299
3302
  }
3300
- ) }, "detail") : M === "update" && o && (c == null ? void 0 : c(E)) !== !1 ? /* @__PURE__ */ A(iA, { label: "Update", position: h, children: /* @__PURE__ */ A(
3301
- L,
3303
+ ) }, "detail") : M === "update" && o && (c == null ? void 0 : c(E)) !== !1 ? /* @__PURE__ */ A(iA, { label: "Update", position: D, children: /* @__PURE__ */ A(
3304
+ b,
3302
3305
  {
3303
3306
  size: "xs",
3304
3307
  secondary: !0,
3305
3308
  onClick: () => o(E),
3306
3309
  iconLeft: /* @__PURE__ */ A(m, { name: "Edit1", size: "sm", style: { color: "rgb(var(--starasia-ui-raw-color-gray-600))" } })
3307
3310
  }
3308
- ) }, "update") : M === "delete" && t && (l == null ? void 0 : l(E)) !== !1 ? /* @__PURE__ */ A(iA, { label: "Delete", position: h, children: /* @__PURE__ */ A(
3309
- L,
3311
+ ) }, "update") : M === "delete" && t && (l == null ? void 0 : l(E)) !== !1 ? /* @__PURE__ */ A(iA, { label: "Delete", position: D, children: /* @__PURE__ */ A(
3312
+ b,
3310
3313
  {
3311
3314
  size: "xs",
3312
3315
  secondary: !0,
@@ -3327,11 +3330,11 @@ const gr = (e) => {
3327
3330
  footerProps: o
3328
3331
  }) => {
3329
3332
  var w;
3330
- const t = AA(null), [n, l] = b(
3333
+ const t = AA(null), [n, l] = G(
3331
3334
  (i == null ? void 0 : i.defaultFrozenCount) ?? 0
3332
3335
  ), 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
3336
  typeof C == "number" && (s.current = C);
3334
- const Q = (o == null ? void 0 : o.showFooter) ?? (C === void 0 ? s.current !== 0 : C !== 0);
3337
+ const d = (o == null ? void 0 : o.showFooter) ?? (C === void 0 ? s.current !== 0 : C !== 0);
3335
3338
  return /* @__PURE__ */ g(fi, { ...e, children: [
3336
3339
  c && /* @__PURE__ */ A(Si, { ...r }),
3337
3340
  /* @__PURE__ */ A(
@@ -3354,7 +3357,7 @@ const gr = (e) => {
3354
3357
  ) : null
3355
3358
  }
3356
3359
  ),
3357
- Q && /* @__PURE__ */ A(
3360
+ d && /* @__PURE__ */ A(
3358
3361
  bi,
3359
3362
  {
3360
3363
  pagination: i == null ? void 0 : i.pagination,
@@ -3375,7 +3378,7 @@ function ji(e) {
3375
3378
  const Dr = ji(pi), kA = ({
3376
3379
  of: e,
3377
3380
  render: i
3378
- }) => ye.toArray(e == null ? void 0 : e.map((r, o, t) => i(r, o, t))), G = ({
3381
+ }) => ye.toArray(e == null ? void 0 : e.map((r, o, t) => i(r, o, t))), O = ({
3379
3382
  condition: e,
3380
3383
  fallback: i,
3381
3384
  children: r,
@@ -3427,7 +3430,7 @@ const Dr = ji(pi), kA = ({
3427
3430
  ),
3428
3431
  children: [
3429
3432
  /* @__PURE__ */ A(
3430
- G,
3433
+ O,
3431
3434
  {
3432
3435
  condition: !!e.role && !e.isTenant || t,
3433
3436
  fallback: /* @__PURE__ */ A(K.Body1, { children: e.name }),
@@ -3445,7 +3448,7 @@ const Dr = ji(pi), kA = ({
3445
3448
  ] })
3446
3449
  }
3447
3450
  ),
3448
- /* @__PURE__ */ A(G, { condition: e.isTenant && o, children: /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(m, { name: "ChevronRight", size: "md" }) }) })
3451
+ /* @__PURE__ */ A(O, { condition: e.isTenant && o, children: /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(m, { name: "ChevronRight", size: "md" }) }) })
3449
3452
  ]
3450
3453
  }
3451
3454
  );
@@ -3490,7 +3493,7 @@ const Dr = ji(pi), kA = ({
3490
3493
  isLoadingOrgList: c,
3491
3494
  setSelectedApp: s
3492
3495
  }) => {
3493
- var Q;
3496
+ var d;
3494
3497
  const C = _A();
3495
3498
  return /* @__PURE__ */ g(LA, { onHide: e, show: i, closeButton: !1, children: [
3496
3499
  /* @__PURE__ */ g(
@@ -3515,7 +3518,7 @@ const Dr = ji(pi), kA = ({
3515
3518
  }
3516
3519
  ),
3517
3520
  C.show ? /* @__PURE__ */ g(W, { children: [
3518
- /* @__PURE__ */ A(K.H4, { children: (Q = C.data) == null ? void 0 : Q.name }),
3521
+ /* @__PURE__ */ A(K.H4, { children: (d = C.data) == null ? void 0 : d.name }),
3519
3522
  /* @__PURE__ */ A(
3520
3523
  K.SubH3,
3521
3524
  {
@@ -3526,7 +3529,7 @@ const Dr = ji(pi), kA = ({
3526
3529
  }
3527
3530
  ),
3528
3531
  /* @__PURE__ */ A(
3529
- G,
3532
+ O,
3530
3533
  {
3531
3534
  condition: !!(o != null && o.length),
3532
3535
  isLoading: c,
@@ -3635,7 +3638,7 @@ const Dr = ji(pi), kA = ({
3635
3638
  totalData: t,
3636
3639
  setSelectedApp: n
3637
3640
  }) => {
3638
- var c, s, C, Q, w;
3641
+ var c, s, C, d, w;
3639
3642
  const l = _A();
3640
3643
  return /* @__PURE__ */ g(LA, { onHide: e, show: i, closeButton: !1, children: [
3641
3644
  /* @__PURE__ */ g(
@@ -3671,13 +3674,13 @@ const Dr = ji(pi), kA = ({
3671
3674
  }
3672
3675
  ),
3673
3676
  /* @__PURE__ */ A(
3674
- G,
3677
+ O,
3675
3678
  {
3676
3679
  condition: !!((C = (s = l.data) == null ? void 0 : s.organizations) != null && C.length),
3677
3680
  children: /* @__PURE__ */ A(
3678
3681
  NA,
3679
3682
  {
3680
- dataApps: (w = (Q = l.data) == null ? void 0 : Q.organizations) == null ? void 0 : w.map((B) => {
3683
+ dataApps: (w = (d = l.data) == null ? void 0 : d.organizations) == null ? void 0 : w.map((B) => {
3681
3684
  var u;
3682
3685
  return {
3683
3686
  ...B,
@@ -3746,7 +3749,7 @@ const Dr = ji(pi), kA = ({
3746
3749
  variant: l = "single-api",
3747
3750
  isLoading: c
3748
3751
  }) => {
3749
- const [s, C] = b(!1), [Q, w] = b("");
3752
+ const [s, C] = G(!1), [d, w] = G("");
3750
3753
  return /* @__PURE__ */ g(W, { children: [
3751
3754
  /* @__PURE__ */ g(
3752
3755
  a,
@@ -3796,7 +3799,7 @@ const Dr = ji(pi), kA = ({
3796
3799
  }
3797
3800
  ),
3798
3801
  /* @__PURE__ */ A(
3799
- G,
3802
+ O,
3800
3803
  {
3801
3804
  condition: l === "single-api",
3802
3805
  fallback: /* @__PURE__ */ A(
@@ -3852,7 +3855,7 @@ const Dr = ji(pi), kA = ({
3852
3855
  children: [
3853
3856
  /* @__PURE__ */ A("img", { style: { width: "180px" }, src: zi }),
3854
3857
  /* @__PURE__ */ g(
3855
- d,
3858
+ Q,
3856
3859
  {
3857
3860
  fontWeight: "black",
3858
3861
  fontSize: "2xl",
@@ -3865,7 +3868,7 @@ const Dr = ji(pi), kA = ({
3865
3868
  "Get ready to switch to",
3866
3869
  /* @__PURE__ */ A("br", {}),
3867
3870
  " the ",
3868
- Q || "another",
3871
+ d || "another",
3869
3872
  " app!"
3870
3873
  ]
3871
3874
  }
@@ -3877,7 +3880,7 @@ const Dr = ji(pi), kA = ({
3877
3880
  )
3878
3881
  ] });
3879
3882
  }, z = (e) => /* @__PURE__ */ A(
3880
- d,
3883
+ Q,
3881
3884
  {
3882
3885
  ...e,
3883
3886
  fontFamily: "Poppins",
@@ -3886,7 +3889,7 @@ const Dr = ji(pi), kA = ({
3886
3889
  color: e.color || "gray-700",
3887
3890
  children: e.children
3888
3891
  }
3889
- ), nA = (e) => /* @__PURE__ */ A(d, { color: "red-600", fontSize: "sm", children: e.message }), Ki = ({
3892
+ ), nA = (e) => /* @__PURE__ */ A(Q, { color: "red-600", fontSize: "sm", children: e.message }), Ki = ({
3890
3893
  size: e = "md",
3891
3894
  direction: i = "vertical",
3892
3895
  requiredTitle: r = "(Required)",
@@ -3903,7 +3906,7 @@ const Dr = ji(pi), kA = ({
3903
3906
  ...t.containerProps,
3904
3907
  children: [
3905
3908
  t.title && /* @__PURE__ */ A(
3906
- G,
3909
+ O,
3907
3910
  {
3908
3911
  condition: !!t.inputProps.required,
3909
3912
  fallback: /* @__PURE__ */ g(
@@ -3914,7 +3917,7 @@ const Dr = ji(pi), kA = ({
3914
3917
  fullWidth: o,
3915
3918
  children: [
3916
3919
  /* @__PURE__ */ A(z, { children: t.title }),
3917
- /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: t.description })
3920
+ /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description })
3918
3921
  ]
3919
3922
  }
3920
3923
  ),
@@ -3928,7 +3931,7 @@ const Dr = ji(pi), kA = ({
3928
3931
  /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
3929
3932
  /* @__PURE__ */ A(z, { fontSize: e, children: t.title }),
3930
3933
  /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
3931
- /* @__PURE__ */ A(G, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
3934
+ /* @__PURE__ */ A(O, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
3932
3935
  iA,
3933
3936
  {
3934
3937
  label: (s = t.tooltip) == null ? void 0 : s.label,
@@ -3948,7 +3951,7 @@ const Dr = ji(pi), kA = ({
3948
3951
  }
3949
3952
  ) })
3950
3953
  ] }),
3951
- /* @__PURE__ */ A(G, { condition: !!t.description, children: /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: t.description }) })
3954
+ /* @__PURE__ */ A(O, { condition: !!t.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description }) })
3952
3955
  ]
3953
3956
  }
3954
3957
  )
@@ -3988,7 +3991,7 @@ const Dr = ji(pi), kA = ({
3988
3991
  onClick: t.onClickContainer,
3989
3992
  children: [
3990
3993
  t.title && /* @__PURE__ */ A(
3991
- G,
3994
+ O,
3992
3995
  {
3993
3996
  condition: !!t.inputProps.required,
3994
3997
  fallback: /* @__PURE__ */ g(
@@ -3999,7 +4002,7 @@ const Dr = ji(pi), kA = ({
3999
4002
  fullWidth: o,
4000
4003
  children: [
4001
4004
  /* @__PURE__ */ A(z, { children: t.title }),
4002
- /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: t.description })
4005
+ /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description })
4003
4006
  ]
4004
4007
  }
4005
4008
  ),
@@ -4013,7 +4016,7 @@ const Dr = ji(pi), kA = ({
4013
4016
  /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4014
4017
  /* @__PURE__ */ A(z, { fontSize: e, children: t.title }),
4015
4018
  /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
4016
- /* @__PURE__ */ A(G, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4019
+ /* @__PURE__ */ A(O, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4017
4020
  iA,
4018
4021
  {
4019
4022
  label: (s = t.tooltip) == null ? void 0 : s.label,
@@ -4033,7 +4036,7 @@ const Dr = ji(pi), kA = ({
4033
4036
  }
4034
4037
  ) })
4035
4038
  ] }),
4036
- /* @__PURE__ */ A(G, { condition: !!t.description, children: /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: t.description }) })
4039
+ /* @__PURE__ */ A(O, { condition: !!t.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description }) })
4037
4040
  ]
4038
4041
  }
4039
4042
  )
@@ -4064,7 +4067,7 @@ const Dr = ji(pi), kA = ({
4064
4067
  );
4065
4068
  }, Hi = (e, i) => typeof e == "string" && e || i === "error" ? "var(--starasia-ui-color-error)" : "var(--starasia-ui-text-disable)", Ji = (e) => {
4066
4069
  var c;
4067
- const [i, r] = b(!1), o = (s) => {
4070
+ const [i, r] = G(!1), o = (s) => {
4068
4071
  s.preventDefault(), s.stopPropagation();
4069
4072
  }, t = (s) => {
4070
4073
  s.preventDefault(), s.stopPropagation(), s.dataTransfer && e.handleOnFileChange(s.dataTransfer.files.item(0));
@@ -4106,7 +4109,7 @@ const Dr = ji(pi), kA = ({
4106
4109
  /* @__PURE__ */ g(J, { gap: "xs", children: [
4107
4110
  /* @__PURE__ */ g(J, { direction: "row", gap: "xs", children: [
4108
4111
  /* @__PURE__ */ A(
4109
- d,
4112
+ Q,
4110
4113
  {
4111
4114
  fontWeight: "medium",
4112
4115
  color: "gray-500",
@@ -4116,7 +4119,7 @@ const Dr = ji(pi), kA = ({
4116
4119
  }
4117
4120
  ),
4118
4121
  /* @__PURE__ */ A(
4119
- d,
4122
+ Q,
4120
4123
  {
4121
4124
  fontWeight: "medium",
4122
4125
  style: { textWrap: "nowrap" },
@@ -4125,7 +4128,7 @@ const Dr = ji(pi), kA = ({
4125
4128
  }
4126
4129
  )
4127
4130
  ] }),
4128
- /* @__PURE__ */ A(d, { fontSize: "sm", color: "gray-500", children: (c = e.fileSupports) == null ? void 0 : c.map((s) => s.toLocaleUpperCase()).join(", ") })
4131
+ /* @__PURE__ */ A(Q, { fontSize: "sm", color: "gray-500", children: (c = e.fileSupports) == null ? void 0 : c.map((s) => s.toLocaleUpperCase()).join(", ") })
4129
4132
  ] })
4130
4133
  ]
4131
4134
  }
@@ -4180,7 +4183,7 @@ const Ui = (e) => {
4180
4183
  ),
4181
4184
  /* @__PURE__ */ g(J, { children: [
4182
4185
  /* @__PURE__ */ A(
4183
- d,
4186
+ Q,
4184
4187
  {
4185
4188
  fontWeight: "bold",
4186
4189
  style: {
@@ -4193,12 +4196,12 @@ const Ui = (e) => {
4193
4196
  }
4194
4197
  ),
4195
4198
  !e.defaultUrl && /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4196
- /* @__PURE__ */ A(d, { fontSize: "sm", fontWeight: "medium", children: `${qi(
4199
+ /* @__PURE__ */ A(Q, { fontSize: "sm", fontWeight: "medium", children: `${qi(
4197
4200
  ((r = e.fileSelected) == null ? void 0 : r.size.toString()) || "100000"
4198
4201
  )}` }),
4199
4202
  /* @__PURE__ */ A(m, { name: "Dot", size: "xs" }),
4200
4203
  /* @__PURE__ */ A(
4201
- d,
4204
+ Q,
4202
4205
  {
4203
4206
  fontSize: "sm",
4204
4207
  fontWeight: "medium",
@@ -4212,7 +4215,7 @@ const Ui = (e) => {
4212
4215
  ] })
4213
4216
  ] }),
4214
4217
  /* @__PURE__ */ A(
4215
- L,
4218
+ b,
4216
4219
  {
4217
4220
  size: "xs",
4218
4221
  secondary: !0,
@@ -4294,7 +4297,7 @@ const Ui = (e) => {
4294
4297
  ]
4295
4298
  }
4296
4299
  ),
4297
- typeof i.errorMessage == "string" && i.errorMessage && /* @__PURE__ */ A(d, { color: "error", fontSize: "xs", children: i.errorMessage })
4300
+ typeof i.errorMessage == "string" && i.errorMessage && /* @__PURE__ */ A(Q, { color: "error", fontSize: "xs", children: i.errorMessage })
4298
4301
  ] });
4299
4302
  }, Ri = ({
4300
4303
  size: e = "md",
@@ -4313,7 +4316,7 @@ const Ui = (e) => {
4313
4316
  ...t.containerProps,
4314
4317
  children: [
4315
4318
  t.title && /* @__PURE__ */ A(
4316
- G,
4319
+ O,
4317
4320
  {
4318
4321
  condition: !!t.inputProps.required,
4319
4322
  fallback: /* @__PURE__ */ g(
@@ -4324,7 +4327,7 @@ const Ui = (e) => {
4324
4327
  fullWidth: o,
4325
4328
  children: [
4326
4329
  /* @__PURE__ */ A(z, { children: t.title }),
4327
- /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: t.description })
4330
+ /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description })
4328
4331
  ]
4329
4332
  }
4330
4333
  ),
@@ -4338,7 +4341,7 @@ const Ui = (e) => {
4338
4341
  /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4339
4342
  /* @__PURE__ */ A(z, { fontSize: e, children: t.title }),
4340
4343
  /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
4341
- /* @__PURE__ */ A(G, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4344
+ /* @__PURE__ */ A(O, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4342
4345
  iA,
4343
4346
  {
4344
4347
  label: (s = t.tooltip) == null ? void 0 : s.label,
@@ -4358,7 +4361,7 @@ const Ui = (e) => {
4358
4361
  }
4359
4362
  ) })
4360
4363
  ] }),
4361
- /* @__PURE__ */ A(G, { condition: !!t.description, children: /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: t.description }) })
4364
+ /* @__PURE__ */ A(O, { condition: !!t.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description }) })
4362
4365
  ]
4363
4366
  }
4364
4367
  )
@@ -4385,7 +4388,7 @@ const Ui = (e) => {
4385
4388
  required: t = !1,
4386
4389
  ...n
4387
4390
  }) => {
4388
- var s, C, Q, w;
4391
+ var s, C, d, w;
4389
4392
  const l = n.hideMessageError || !1, c = i === "horizontal" ? e === "sm" ? 342 : e === "lg" ? 400 : 342 : void 0;
4390
4393
  return /* @__PURE__ */ g(
4391
4394
  a,
@@ -4395,7 +4398,7 @@ const Ui = (e) => {
4395
4398
  ...n.containerProps,
4396
4399
  children: [
4397
4400
  n.title && /* @__PURE__ */ A(
4398
- G,
4401
+ O,
4399
4402
  {
4400
4403
  condition: !!t,
4401
4404
  fallback: /* @__PURE__ */ g(
@@ -4420,11 +4423,11 @@ const Ui = (e) => {
4420
4423
  /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4421
4424
  /* @__PURE__ */ A(z, { fontSize: e, children: n.title }),
4422
4425
  /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
4423
- /* @__PURE__ */ A(G, { condition: !!((s = n.tooltip) != null && s.label), children: /* @__PURE__ */ A(
4426
+ /* @__PURE__ */ A(O, { condition: !!((s = n.tooltip) != null && s.label), children: /* @__PURE__ */ A(
4424
4427
  iA,
4425
4428
  {
4426
4429
  label: (C = n.tooltip) == null ? void 0 : C.label,
4427
- arrowPosition: (Q = n.tooltip) == null ? void 0 : Q.arrowPosition,
4430
+ arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
4428
4431
  ...n.tooltip,
4429
4432
  children: /* @__PURE__ */ A(
4430
4433
  m,
@@ -4440,7 +4443,7 @@ const Ui = (e) => {
4440
4443
  }
4441
4444
  ) })
4442
4445
  ] }),
4443
- /* @__PURE__ */ A(G, { condition: !!n.description, children: /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: n.description }) })
4446
+ /* @__PURE__ */ A(O, { condition: !!n.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: n.description }) })
4444
4447
  ]
4445
4448
  }
4446
4449
  )
@@ -4514,7 +4517,7 @@ const Ui = (e) => {
4514
4517
  gap: e === "horizontal-inline" || e === "horizontal-block" ? "spacing-96" : "sm",
4515
4518
  direction: e === "horizontal-inline" || e === "horizontal-block" ? "row" : "column",
4516
4519
  children: [
4517
- /* @__PURE__ */ A(G, { condition: !!o.description || !!o.title, children: /* @__PURE__ */ g(
4520
+ /* @__PURE__ */ A(O, { condition: !!o.description || !!o.title, children: /* @__PURE__ */ g(
4518
4521
  a,
4519
4522
  {
4520
4523
  direction: "column",
@@ -4522,7 +4525,7 @@ const Ui = (e) => {
4522
4525
  fullWidth: r,
4523
4526
  children: [
4524
4527
  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 }) })
4528
+ /* @__PURE__ */ A(O, { condition: !!o.description, children: /* @__PURE__ */ A(Q, { color: "gray-500", children: o.description }) })
4526
4529
  ]
4527
4530
  }
4528
4531
  ) }),
@@ -4540,13 +4543,13 @@ const Ui = (e) => {
4540
4543
  ...l,
4541
4544
  isChecked: o.radioIsChecked === l.id
4542
4545
  })),
4543
- render: ({ value: l, id: c, isChecked: s, subInput: C, label: Q, description: w }) => /* @__PURE__ */ g(a, { gap: "xs", customMaxWidth: t, children: [
4546
+ render: ({ value: l, id: c, isChecked: s, subInput: C, label: d, description: w }) => /* @__PURE__ */ g(a, { gap: "xs", customMaxWidth: t, children: [
4544
4547
  /* @__PURE__ */ A(
4545
4548
  Me,
4546
4549
  {
4547
4550
  id: `${c.toString()}-${l}`,
4548
- name: o.groupName || Q,
4549
- label: Q,
4551
+ name: o.groupName || d,
4552
+ label: d,
4550
4553
  value: l,
4551
4554
  checked: s,
4552
4555
  onChange: (B) => o.onChecked({
@@ -4559,7 +4562,7 @@ const Ui = (e) => {
4559
4562
  c
4560
4563
  ),
4561
4564
  w && /* @__PURE__ */ A(
4562
- d,
4565
+ Q,
4563
4566
  {
4564
4567
  color: "gray-500",
4565
4568
  style: {
@@ -4595,7 +4598,7 @@ const Ui = (e) => {
4595
4598
  ...t.containerProps,
4596
4599
  children: [
4597
4600
  t.title && /* @__PURE__ */ A(
4598
- G,
4601
+ O,
4599
4602
  {
4600
4603
  condition: !!t.inputProps.required,
4601
4604
  fallback: /* @__PURE__ */ g(
@@ -4606,7 +4609,7 @@ const Ui = (e) => {
4606
4609
  fullWidth: o,
4607
4610
  children: [
4608
4611
  /* @__PURE__ */ A(z, { children: t.title }),
4609
- /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: t.description })
4612
+ /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description })
4610
4613
  ]
4611
4614
  }
4612
4615
  ),
@@ -4620,7 +4623,7 @@ const Ui = (e) => {
4620
4623
  /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4621
4624
  /* @__PURE__ */ A(z, { fontSize: e, children: t.title }),
4622
4625
  /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
4623
- /* @__PURE__ */ A(G, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4626
+ /* @__PURE__ */ A(O, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4624
4627
  iA,
4625
4628
  {
4626
4629
  label: (s = t.tooltip) == null ? void 0 : s.label,
@@ -4640,7 +4643,7 @@ const Ui = (e) => {
4640
4643
  }
4641
4644
  ) })
4642
4645
  ] }),
4643
- /* @__PURE__ */ A(G, { condition: !!t.description, children: /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: t.description }) })
4646
+ /* @__PURE__ */ A(O, { condition: !!t.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description }) })
4644
4647
  ]
4645
4648
  }
4646
4649
  )
@@ -4679,7 +4682,7 @@ const Ui = (e) => {
4679
4682
  ...n.containerProps,
4680
4683
  children: [
4681
4684
  n.title && /* @__PURE__ */ A(
4682
- G,
4685
+ O,
4683
4686
  {
4684
4687
  condition: o,
4685
4688
  fallback: /* @__PURE__ */ g(
@@ -4690,7 +4693,7 @@ const Ui = (e) => {
4690
4693
  fullWidth: t,
4691
4694
  children: [
4692
4695
  /* @__PURE__ */ A(z, { children: n.title }),
4693
- /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: n.titleDescription })
4696
+ /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: n.titleDescription })
4694
4697
  ]
4695
4698
  }
4696
4699
  ),
@@ -4704,7 +4707,7 @@ const Ui = (e) => {
4704
4707
  /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4705
4708
  /* @__PURE__ */ A(z, { fontSize: e, children: n.title }),
4706
4709
  /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
4707
- /* @__PURE__ */ A(G, { condition: !!((c = n.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4710
+ /* @__PURE__ */ A(O, { condition: !!((c = n.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4708
4711
  iA,
4709
4712
  {
4710
4713
  label: (s = n.tooltip) == null ? void 0 : s.label,
@@ -4724,7 +4727,7 @@ const Ui = (e) => {
4724
4727
  }
4725
4728
  ) })
4726
4729
  ] }),
4727
- /* @__PURE__ */ A(G, { condition: !!n.titleDescription, children: /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: n.titleDescription }) })
4730
+ /* @__PURE__ */ A(O, { condition: !!n.titleDescription, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: n.titleDescription }) })
4728
4731
  ]
4729
4732
  }
4730
4733
  )
@@ -4749,16 +4752,16 @@ const Ui = (e) => {
4749
4752
  ...r
4750
4753
  }) => {
4751
4754
  const o = ZA(), t = (l) => {
4752
- var s, C, Q, w, B, u;
4755
+ var s, C, d, w, B, u;
4753
4756
  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];
4757
+ 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
4758
  return /* @__PURE__ */ A(m, { name: l, size: i, style: { color: c } });
4756
4759
  }, n = () => {
4757
- var c, s, C, Q;
4760
+ var c, s, C, d;
4758
4761
  if (e !== "secondary-danger" && e !== "secondary-primary")
4759
4762
  return r.title;
4760
4763
  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]
4764
+ 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
4765
  };
4763
4766
  switch (i) {
4764
4767
  case "xs":
@@ -4773,7 +4776,7 @@ const Ui = (e) => {
4773
4776
  }
4774
4777
  };
4775
4778
  return /* @__PURE__ */ A(
4776
- L,
4779
+ b,
4777
4780
  {
4778
4781
  fullWidth: !0,
4779
4782
  disabled: r.disabled,
@@ -4813,7 +4816,7 @@ const Ui = (e) => {
4813
4816
  onClick: t.onClickContainer,
4814
4817
  children: [
4815
4818
  t.title && /* @__PURE__ */ A(
4816
- G,
4819
+ O,
4817
4820
  {
4818
4821
  condition: !!t.inputProps.required,
4819
4822
  fallback: /* @__PURE__ */ g(
@@ -4824,7 +4827,7 @@ const Ui = (e) => {
4824
4827
  fullWidth: o,
4825
4828
  children: [
4826
4829
  /* @__PURE__ */ A(z, { children: t.title }),
4827
- /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: t.description })
4830
+ /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description })
4828
4831
  ]
4829
4832
  }
4830
4833
  ),
@@ -4838,7 +4841,7 @@ const Ui = (e) => {
4838
4841
  /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4839
4842
  /* @__PURE__ */ A(z, { fontSize: e, children: t.title }),
4840
4843
  /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
4841
- /* @__PURE__ */ A(G, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4844
+ /* @__PURE__ */ A(O, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4842
4845
  iA,
4843
4846
  {
4844
4847
  label: (s = t.tooltip) == null ? void 0 : s.label,
@@ -4858,7 +4861,7 @@ const Ui = (e) => {
4858
4861
  }
4859
4862
  ) })
4860
4863
  ] }),
4861
- /* @__PURE__ */ A(G, { condition: !!t.description, children: /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: t.description }) })
4864
+ /* @__PURE__ */ A(O, { condition: !!t.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description }) })
4862
4865
  ]
4863
4866
  }
4864
4867
  )
@@ -4935,8 +4938,8 @@ const VA = {
4935
4938
  containerProps: c,
4936
4939
  maxFileSize: s = 2,
4937
4940
  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);
4941
+ }, d) => {
4942
+ 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
4943
  R(() => {
4941
4944
  i === null && t(null);
4942
4945
  }, [i]);
@@ -4951,7 +4954,7 @@ const VA = {
4951
4954
  if (!tA) return;
4952
4955
  const wA = new FileReader();
4953
4956
  wA.onload = () => {
4954
- D(wA.result), Y(!0);
4957
+ h(wA.result), p(!0);
4955
4958
  }, wA.readAsDataURL(tA);
4956
4959
  }, q = async () => {
4957
4960
  if (!(!j || !Z))
@@ -4963,22 +4966,22 @@ const VA = {
4963
4966
  }
4964
4967
  e == null || e(T);
4965
4968
  const tA = URL.createObjectURL(T);
4966
- t(tA, T), Y(!1);
4969
+ t(tA, T), p(!1);
4967
4970
  } catch {
4968
4971
  C == null || C("Gagal memproses gambar");
4969
4972
  }
4970
4973
  }, E = AA(null), f = () => {
4971
4974
  E.current && E.current.click();
4972
4975
  };
4973
- xe(Q, () => ({
4976
+ xe(d, () => ({
4974
4977
  openFileDialog: () => {
4975
4978
  var T;
4976
4979
  (T = E.current) == null || T.click();
4977
4980
  }
4978
4981
  }));
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(
4982
+ const M = parseInt(n, 10), D = VA[l];
4983
+ let F, x;
4984
+ return D >= 1 ? (x = M, F = M * D) : (F = M, x = M / D), /* @__PURE__ */ g(
4982
4985
  a,
4983
4986
  {
4984
4987
  display: "flex",
@@ -4992,9 +4995,9 @@ const VA = {
4992
4995
  align: "center",
4993
4996
  justify: "center",
4994
4997
  style: {
4995
- width: c != null && c.fullWidth ? "100%" : `${N}px`,
4998
+ width: c != null && c.fullWidth ? "100%" : `${F}px`,
4996
4999
  height: c != null && c.fullWidth ? "auto" : `${x}px`,
4997
- aspectRatio: h,
5000
+ aspectRatio: D,
4998
5001
  flexShrink: 0
4999
5002
  },
5000
5003
  onMouseEnter: () => u(!0),
@@ -5067,8 +5070,8 @@ const VA = {
5067
5070
  style: { color: "var(--starasia-ui-color-gray-50)" }
5068
5071
  }
5069
5072
  ),
5070
- /* @__PURE__ */ A(G, { condition: n.toNumber() > 80, children: /* @__PURE__ */ A(
5071
- d,
5073
+ /* @__PURE__ */ A(O, { condition: n.toNumber() > 80, children: /* @__PURE__ */ A(
5074
+ Q,
5072
5075
  {
5073
5076
  color: "gray-50",
5074
5077
  fontSize: n.toNumber() > 80 ? "sm" : "md",
@@ -5108,12 +5111,12 @@ const VA = {
5108
5111
  }
5109
5112
  ),
5110
5113
  /* @__PURE__ */ g(
5111
- dA,
5114
+ QA,
5112
5115
  {
5113
- isShow: O,
5114
- onHide: () => Y(!1),
5116
+ isShow: Y,
5117
+ onHide: () => p(!1),
5115
5118
  style: {
5116
- minWidth: w ? l === "1:1" ? "20rem" : N * 2 : "100%"
5119
+ minWidth: w ? l === "1:1" ? "20rem" : F * 2 : "100%"
5117
5120
  },
5118
5121
  children: [
5119
5122
  /* @__PURE__ */ A(hA, { children: /* @__PURE__ */ A(
@@ -5129,8 +5132,8 @@ const VA = {
5129
5132
  Se,
5130
5133
  {
5131
5134
  image: j,
5132
- crop: F,
5133
- zoom: p,
5135
+ crop: N,
5136
+ zoom: L,
5134
5137
  aspect: l ? VA[l] : void 0,
5135
5138
  onCropChange: U,
5136
5139
  onZoomChange: k,
@@ -5143,8 +5146,8 @@ const VA = {
5143
5146
  }
5144
5147
  ) }),
5145
5148
  /* @__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" })
5149
+ /* @__PURE__ */ A(b, { size: "xs", secondary: !0, onClick: () => p(!1), children: "Cancel" }),
5150
+ /* @__PURE__ */ A(b, { size: "xs", primary: !0, onClick: q, children: "Crop" })
5148
5151
  ] }) })
5149
5152
  ]
5150
5153
  }
@@ -5161,7 +5164,7 @@ const VA = {
5161
5164
  required: t = !1,
5162
5165
  ...n
5163
5166
  }) => {
5164
- var s, C, Q;
5167
+ var s, C, d;
5165
5168
  const l = n.hideMessageError || !1, c = i === "horizontal" ? e === "sm" ? 342 : e === "lg" ? 400 : 342 : void 0;
5166
5169
  return /* @__PURE__ */ g(
5167
5170
  a,
@@ -5171,7 +5174,7 @@ const VA = {
5171
5174
  ...n.containerProps,
5172
5175
  children: [
5173
5176
  n.title && /* @__PURE__ */ A(
5174
- G,
5177
+ O,
5175
5178
  {
5176
5179
  condition: !!t,
5177
5180
  fallback: /* @__PURE__ */ g(
@@ -5182,7 +5185,7 @@ const VA = {
5182
5185
  fullWidth: o,
5183
5186
  children: [
5184
5187
  /* @__PURE__ */ A(z, { children: n.title }),
5185
- /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: n.description })
5188
+ /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: n.description })
5186
5189
  ]
5187
5190
  }
5188
5191
  ),
@@ -5196,11 +5199,11 @@ const VA = {
5196
5199
  /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
5197
5200
  /* @__PURE__ */ A(z, { fontSize: e, children: n.title }),
5198
5201
  /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
5199
- /* @__PURE__ */ A(G, { condition: !!((s = n.tooltip) != null && s.label), children: /* @__PURE__ */ A(
5202
+ /* @__PURE__ */ A(O, { condition: !!((s = n.tooltip) != null && s.label), children: /* @__PURE__ */ A(
5200
5203
  iA,
5201
5204
  {
5202
5205
  label: (C = n.tooltip) == null ? void 0 : C.label,
5203
- arrowPosition: (Q = n.tooltip) == null ? void 0 : Q.arrowPosition,
5206
+ arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
5204
5207
  ...n.tooltip,
5205
5208
  children: /* @__PURE__ */ A(
5206
5209
  m,
@@ -5216,7 +5219,7 @@ const VA = {
5216
5219
  }
5217
5220
  ) })
5218
5221
  ] }),
5219
- /* @__PURE__ */ A(G, { condition: !!n.description, children: /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: n.description }) })
5222
+ /* @__PURE__ */ A(O, { condition: !!n.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: n.description }) })
5220
5223
  ]
5221
5224
  }
5222
5225
  )
@@ -5246,7 +5249,7 @@ const VA = {
5246
5249
  ...t.containerProps,
5247
5250
  children: [
5248
5251
  t.title && /* @__PURE__ */ A(
5249
- G,
5252
+ O,
5250
5253
  {
5251
5254
  condition: !!t.inputProps.required,
5252
5255
  fallback: /* @__PURE__ */ g(
@@ -5257,7 +5260,7 @@ const VA = {
5257
5260
  fullWidth: o,
5258
5261
  children: [
5259
5262
  /* @__PURE__ */ A(z, { children: t.title }),
5260
- /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: t.description })
5263
+ /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description })
5261
5264
  ]
5262
5265
  }
5263
5266
  ),
@@ -5271,7 +5274,7 @@ const VA = {
5271
5274
  /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
5272
5275
  /* @__PURE__ */ A(z, { fontSize: e, children: t.title }),
5273
5276
  /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
5274
- /* @__PURE__ */ A(G, { condition: !!((l = t.tooltip) != null && l.label), children: /* @__PURE__ */ A(
5277
+ /* @__PURE__ */ A(O, { condition: !!((l = t.tooltip) != null && l.label), children: /* @__PURE__ */ A(
5275
5278
  iA,
5276
5279
  {
5277
5280
  label: (c = t.tooltip) == null ? void 0 : c.label,
@@ -5291,7 +5294,7 @@ const VA = {
5291
5294
  }
5292
5295
  ) })
5293
5296
  ] }),
5294
- /* @__PURE__ */ A(G, { condition: !!t.description, children: /* @__PURE__ */ A(d, { fontSize: e, color: "gray-500", children: t.description }) })
5297
+ /* @__PURE__ */ A(O, { condition: !!t.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description }) })
5295
5298
  ]
5296
5299
  }
5297
5300
  )
@@ -5309,12 +5312,12 @@ const VA = {
5309
5312
  toggleShow: t = !0,
5310
5313
  disabled: n = !1
5311
5314
  }) => {
5312
- var Q;
5313
- const [l, c] = b([]);
5315
+ var d;
5316
+ const [l, c] = G([]);
5314
5317
  R(() => {
5315
5318
  e && c([...e.map((w) => ({ id: w.id, isActive: w.isActive }))]);
5316
5319
  }, [e]);
5317
- const s = (Q = l.find((w) => w.id === i)) == null ? void 0 : Q.isActive, C = JA(() => {
5320
+ const s = (d = l.find((w) => w.id === i)) == null ? void 0 : d.isActive, C = JA(() => {
5318
5321
  c(
5319
5322
  (w) => w.map((B) => B.id === i ? { ...B, isActive: !B.isActive } : B)
5320
5323
  ), r && r(!s);
@@ -5352,7 +5355,7 @@ const VA = {
5352
5355
  InputImgFile: tt,
5353
5356
  Custom: rt
5354
5357
  }, ot = ({ customBottom: e }) => {
5355
- const [i, r] = b(!1), o = () => {
5358
+ const [i, r] = G(!1), o = () => {
5356
5359
  window.scrollY > window.screenY ? r(!0) : r(!1);
5357
5360
  }, t = () => {
5358
5361
  window.scrollTo({ top: 0, behavior: "smooth" });
@@ -5378,7 +5381,7 @@ const VA = {
5378
5381
  transition: "transform 0.2s ease-in-out"
5379
5382
  },
5380
5383
  children: /* @__PURE__ */ A(
5381
- L,
5384
+ b,
5382
5385
  {
5383
5386
  secondary: !0,
5384
5387
  size: "xs",
@@ -5445,7 +5448,7 @@ const VA = {
5445
5448
  withScrollToTopButton: i = !1,
5446
5449
  scrollToTopButtonProps: r,
5447
5450
  containerProps: o
5448
- }) => /* @__PURE__ */ A(a, { position: "absolute", width: "width-full", style: { zIndex: "999" }, children: /* @__PURE__ */ g(
5451
+ }) => /* @__PURE__ */ A(a, { position: "absolute", width: "width-full", style: { zIndex: "var(--app-footer-zindex, 999)" }, children: /* @__PURE__ */ g(
5449
5452
  a,
5450
5453
  {
5451
5454
  position: "fixed",
@@ -5458,8 +5461,8 @@ const VA = {
5458
5461
  align: "center",
5459
5462
  display: "flex",
5460
5463
  style: {
5461
- width: "100%",
5462
- transition: "width 0.3s ease-in-out",
5464
+ left: "var(--app-sidebar-width, 0px)",
5465
+ transition: "left 0.3s ease-in-out",
5463
5466
  borderColor: "var(--starasia-ui-border-color-secondary)"
5464
5467
  },
5465
5468
  justify: (o == null ? void 0 : o.justify) || "flex-end",
@@ -5485,9 +5488,9 @@ const VA = {
5485
5488
  ) }), nt = ({ title: e, value: i, icon: r }) => /* @__PURE__ */ g(a, { display: "flex", direction: "column", gap: "sm", children: [
5486
5489
  r ? /* @__PURE__ */ g(a, { display: "flex", direction: "row", align: "center", gap: "xs", children: [
5487
5490
  /* @__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
5491
+ /* @__PURE__ */ A(Q, { color: "gray-500", variant: "sub-h3", children: e })
5492
+ ] }) : /* @__PURE__ */ A(Q, { color: "gray-500", variant: "sub-h3", children: e }),
5493
+ typeof i == "string" ? /* @__PURE__ */ A(Q, { variant: "sub-h3", children: i }) : i
5491
5494
  ] });
5492
5495
  function lt({ width: e, height: i }) {
5493
5496
  return /* @__PURE__ */ A(W, { children: /* @__PURE__ */ g(
@@ -5644,13 +5647,13 @@ const yr = ({
5644
5647
  childrenButton: s,
5645
5648
  customIcon: C
5646
5649
  }) => {
5647
- const Q = () => {
5650
+ const d = () => {
5648
5651
  switch (o) {
5649
5652
  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 }) });
5653
+ 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
5654
  case "secondary":
5652
- return /* @__PURE__ */ A(W, { children: n ? /* @__PURE__ */ A(L, { secondary: !0, iconLeft: n, onClick: r, children: t ? /* @__PURE__ */ A(
5653
- d,
5655
+ return /* @__PURE__ */ A(W, { children: n ? /* @__PURE__ */ A(b, { secondary: !0, iconLeft: n, onClick: r, children: t ? /* @__PURE__ */ A(
5656
+ Q,
5654
5657
  {
5655
5658
  fontFamily: "Poppins",
5656
5659
  fontSize: "md",
@@ -5658,11 +5661,11 @@ const yr = ({
5658
5661
  style: { color: "var(--starasia-ui-utility-success-default)" },
5659
5662
  children: s || e
5660
5663
  }
5661
- ) : e }) : /* @__PURE__ */ A(L, { secondary: !0, onClick: r, children: s || e }) });
5664
+ ) : e }) : /* @__PURE__ */ A(b, { secondary: !0, onClick: r, children: s || e }) });
5662
5665
  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 }) });
5666
+ 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
5667
  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 }) });
5668
+ 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
5669
  }
5667
5670
  };
5668
5671
  return /* @__PURE__ */ g(
@@ -5689,7 +5692,7 @@ const yr = ({
5689
5692
  },
5690
5693
  B
5691
5694
  )) }),
5692
- l ? Q() : null
5695
+ l ? d() : null
5693
5696
  ]
5694
5697
  }
5695
5698
  );
@@ -5911,7 +5914,7 @@ function xr({ onClick: e }) {
5911
5914
  children: [
5912
5915
  /* @__PURE__ */ A(ct, { width: i ? 600 : 300 }),
5913
5916
  /* @__PURE__ */ A(
5914
- d,
5917
+ Q,
5915
5918
  {
5916
5919
  fontWeight: "bold",
5917
5920
  fontSize: i ? "3xl" : "2xl",
@@ -5920,7 +5923,7 @@ function xr({ onClick: e }) {
5920
5923
  }
5921
5924
  ),
5922
5925
  /* @__PURE__ */ A(
5923
- d,
5926
+ Q,
5924
5927
  {
5925
5928
  fontWeight: "semibold",
5926
5929
  fontSize: i ? "lg" : "md",
@@ -5928,7 +5931,7 @@ function xr({ onClick: e }) {
5928
5931
  children: "Sorry, we couldn't find the page you are looking for"
5929
5932
  }
5930
5933
  ),
5931
- e && /* @__PURE__ */ A(L, { size: i ? "md" : "xs", onClick: e, children: "Go Back" })
5934
+ e && /* @__PURE__ */ A(b, { size: i ? "md" : "xs", onClick: e, children: "Go Back" })
5932
5935
  ]
5933
5936
  }
5934
5937
  );
@@ -6161,8 +6164,8 @@ function fr({ onClick: e }) {
6161
6164
  gap: "md",
6162
6165
  children: [
6163
6166
  /* @__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" })
6167
+ /* @__PURE__ */ A(Q, { fontWeight: "bold", fontSize: i ? "3xl" : "2xl", children: "We Are Sorry ..." }),
6168
+ e && /* @__PURE__ */ A(b, { size: i ? "md" : "xs", onClick: e, children: "Go Back" })
6166
6169
  ]
6167
6170
  }
6168
6171
  );
@@ -6854,7 +6857,7 @@ function Sr({ onClick: e }) {
6854
6857
  children: [
6855
6858
  /* @__PURE__ */ A(st, { width: i ? 600 : 300 }),
6856
6859
  /* @__PURE__ */ A(
6857
- d,
6860
+ Q,
6858
6861
  {
6859
6862
  fontWeight: "bold",
6860
6863
  fontSize: i ? "3xl" : "2xl",
@@ -6863,7 +6866,7 @@ function Sr({ onClick: e }) {
6863
6866
  }
6864
6867
  ),
6865
6868
  /* @__PURE__ */ A(
6866
- d,
6869
+ Q,
6867
6870
  {
6868
6871
  fontWeight: "semibold",
6869
6872
  fontSize: i ? "lg" : "md",
@@ -6871,7 +6874,7 @@ function Sr({ onClick: e }) {
6871
6874
  children: "we are trying to fix the problem"
6872
6875
  }
6873
6876
  ),
6874
- e && /* @__PURE__ */ A(L, { size: i ? "md" : "xs", onClick: e, children: "Go Back" })
6877
+ e && /* @__PURE__ */ A(b, { size: i ? "md" : "xs", onClick: e, children: "Go Back" })
6875
6878
  ]
6876
6879
  }
6877
6880
  );
@@ -6880,7 +6883,7 @@ const Lr = (e) => {
6880
6883
  var r, o, t, n, l;
6881
6884
  const i = V("md");
6882
6885
  return /* @__PURE__ */ g(
6883
- dA,
6886
+ QA,
6884
6887
  {
6885
6888
  isShow: e.isShow,
6886
6889
  onHide: e.onHide,
@@ -6892,8 +6895,8 @@ const Lr = (e) => {
6892
6895
  }
6893
6896
  },
6894
6897
  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 }),
6898
+ /* @__PURE__ */ A(BA, { ...e.dialogTitleProps, children: typeof e.title == "string" ? /* @__PURE__ */ A(Q, { fontSize: "lg", fontWeight: "medium", children: e.title }) : e.title }),
6899
+ /* @__PURE__ */ A(hA, { children: typeof e.description == "string" ? /* @__PURE__ */ A(Q, { fontSize: "md", lineHeight: "leading-6", color: "tertiary", children: e.description }) : e.description }),
6897
6900
  /* @__PURE__ */ A(xA, { children: /* @__PURE__ */ A(
6898
6901
  a,
6899
6902
  {
@@ -6910,7 +6913,7 @@ const Lr = (e) => {
6910
6913
  gap: ((l = e.wrapperConfirmBtnProps) == null ? void 0 : l.gap) || "sm",
6911
6914
  ...e.wrapperConfirmBtnProps,
6912
6915
  children: [
6913
- e.onCancel && /* @__PURE__ */ A(L, { secondary: !0, onClick: e.onCancel, size: "md", fullWidth: !0, children: e.titleCancelBtn || "Cancel" }),
6916
+ e.onCancel && /* @__PURE__ */ A(b, { secondary: !0, onClick: e.onCancel, size: "md", fullWidth: !0, children: e.titleCancelBtn || "Cancel" }),
6914
6917
  /* @__PURE__ */ A(
6915
6918
  a,
6916
6919
  {
@@ -6919,7 +6922,7 @@ const Lr = (e) => {
6919
6922
  textWrap: "nowrap"
6920
6923
  },
6921
6924
  children: /* @__PURE__ */ A(
6922
- L,
6925
+ b,
6923
6926
  {
6924
6927
  ...e.buttonConfirmProps,
6925
6928
  onClick: e.onConfirm,
@@ -6947,7 +6950,7 @@ const Lr = (e) => {
6947
6950
  customHeight: o,
6948
6951
  paddingInline: t = "spacing-24"
6949
6952
  }) => {
6950
- const n = AA(null), [l, c] = b("100vh");
6953
+ const n = AA(null), [l, c] = G("100vh");
6951
6954
  return R(() => {
6952
6955
  const s = () => {
6953
6956
  if (n.current) {
@@ -6965,8 +6968,8 @@ const Lr = (e) => {
6965
6968
  customHeight: o,
6966
6969
  paddingBlock: "xl",
6967
6970
  paddingInline: t,
6971
+ bg: "gray-50",
6968
6972
  style: {
6969
- backgroundColor: "var(--hsd-ui-color-gray-50)",
6970
6973
  height: l
6971
6974
  },
6972
6975
  children: e
@@ -6995,7 +6998,7 @@ function Or({
6995
6998
  R(() => {
6996
6999
  let t = null, n = null;
6997
7000
  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);
7001
+ const C = s.items.find((d) => d.to ? d.to === "/" ? o.pathname === "/" : !!(d.to === o.pathname || o.pathname.startsWith(d.to + "/")) : !1);
6999
7002
  if (C) {
7000
7003
  t = C, n = s;
7001
7004
  break;
@@ -7014,10 +7017,10 @@ const Yr = () => {
7014
7017
  setSearchParams: i,
7015
7018
  searchParams: e,
7016
7019
  searchQueries: r,
7017
- isHasQuery: (Q, w) => e.has(Q) && e.get(Q) === w,
7018
- getQueryParam: (Q) => e.get(Q),
7020
+ isHasQuery: (d, w) => e.has(d) && e.get(d) === w,
7021
+ getQueryParam: (d) => e.get(d),
7019
7022
  // route params
7020
- getRouteParam: (Q) => o[Q],
7023
+ getRouteParam: (d) => o[d],
7021
7024
  params: o,
7022
7025
  // location info
7023
7026
  location: t,
@@ -7032,21 +7035,21 @@ function pr(e) {
7032
7035
  return oA(() => {
7033
7036
  var s, C;
7034
7037
  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) => {
7038
+ (d, w) => {
7036
7039
  const B = `is${w.toLowerCase().replace(/(^\w|_\w)/g, (u) => u.replace("_", "").toUpperCase())}`;
7037
- return { ...Q, [B]: !1 };
7040
+ return { ...d, [B]: !1 };
7038
7041
  },
7039
7042
  {}
7040
7043
  );
7041
7044
  return {
7042
- ...Object.keys(e.role).reduce((Q, w) => {
7045
+ ...Object.keys(e.role).reduce((d, w) => {
7043
7046
  const B = `is${w.toLowerCase().replace(/(^\w|_\w)/g, (u) => u.replace("_", "").toUpperCase())}`;
7044
7047
  return {
7045
- ...Q,
7048
+ ...d,
7046
7049
  [B]: n === e.role[w]
7047
7050
  };
7048
7051
  }, l),
7049
- hasRole: (Q) => n === e.role[Q],
7052
+ hasRole: (d) => n === e.role[d],
7050
7053
  getRoleKey: () => n
7051
7054
  };
7052
7055
  }, [(t = (o = i == null ? void 0 : i.access) == null ? void 0 : o.role) == null ? void 0 : t.code, e]);
@@ -7064,7 +7067,7 @@ export {
7064
7067
  Gi as ColumnFilterDropdown,
7065
7068
  Lr as ConfirmationDialog,
7066
7069
  Yi as DataTable,
7067
- G as DecisionWrapper,
7070
+ O as DecisionWrapper,
7068
7071
  kA as EachUtils,
7069
7072
  yr as EmptyStatePage,
7070
7073
  yi as FilterDrawer,
@@ -7099,8 +7102,8 @@ export {
7099
7102
  Xt as formatDate,
7100
7103
  yA as formatDateToIndonesian,
7101
7104
  Pt as formatRupiah,
7102
- dr as getDateFilterValue,
7103
- Qr as getDateRangeFilterValue,
7105
+ Qr as getDateFilterValue,
7106
+ dr as getDateRangeFilterValue,
7104
7107
  Vt as getInitials,
7105
7108
  Br as getValueDropdownMultipleFilter,
7106
7109
  wr as getValueRadioFilter,