@starasia/admin 2.0.3 → 2.0.4

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,24 +3,24 @@ import { Badges as MA } from "@starasia/badges";
3
3
  export * from "@starasia/badges";
4
4
  import { Box as C } from "@starasia/box";
5
5
  export * from "@starasia/box";
6
- import { Button as p } from "@starasia/button";
6
+ import { Button as Y } from "@starasia/button";
7
7
  export * from "@starasia/button";
8
8
  export * from "@starasia/card";
9
9
  import { StarasiaDate as se } from "@starasia/date";
10
10
  export * from "@starasia/date";
11
- import { Dialog as mA, DialogTitle as IA, DialogBody as yA, DialogFooter as pA } from "@starasia/dialog";
11
+ import { Dialog as mA, DialogTitle as uA, DialogBody as yA, DialogFooter as YA } from "@starasia/dialog";
12
12
  export * from "@starasia/dialog";
13
- import { Drawer as Ye } from "@starasia/drawer";
13
+ import { Drawer as pe } from "@starasia/drawer";
14
14
  export * from "@starasia/drawer";
15
15
  import { Dropdown as jA } from "@starasia/dropdown";
16
16
  export * from "@starasia/dropdown";
17
- import { useMediaQuery as eA, useConfirmation as ae } from "@starasia/hooks";
17
+ import { useMediaQuery as tA, useConfirmation as ae } from "@starasia/hooks";
18
18
  export * from "@starasia/hooks";
19
19
  import { searchParamsToObject as NA } from "@starasia/http";
20
20
  export * from "@starasia/http";
21
21
  import { Input as zA } from "@starasia/input";
22
22
  export * from "@starasia/input";
23
- import { Menu as Ce, MenuButton as LA, MenuLists as Be, MenuHeading as pe, MenuBody as de, MenuFooter as je } from "@starasia/menu";
23
+ import { Menu as Ce, MenuButton as LA, MenuLists as Be, MenuHeading as Ye, MenuBody as de, MenuFooter as je } from "@starasia/menu";
24
24
  export * from "@starasia/menu";
25
25
  import { Pagination as Ne } from "@starasia/pagination";
26
26
  export * from "@starasia/pagination";
@@ -54,9 +54,9 @@ export * from "@starasia/story-record";
54
54
  import { Skeleton as dA } from "@starasia/skeleton";
55
55
  export * from "@starasia/skeleton";
56
56
  import { jsx as A, jsxs as s, Fragment as R } from "react/jsx-runtime";
57
- import wA, { createContext as he, useState as G, useContext as De, useCallback as EA, useMemo as CA, memo as iA, useEffect as V, useRef as cA, useLayoutEffect as WA, isValidElement as Ie, forwardRef as XA, Children as Te, useImperativeHandle as Ue } from "react";
57
+ import wA, { createContext as he, useState as G, useContext as De, useCallback as EA, useMemo as CA, memo as iA, useEffect as V, useRef as cA, useLayoutEffect as WA, isValidElement as ue, forwardRef as XA, Children as Te, useImperativeHandle as Ue } from "react";
58
58
  import "@starasia/css/dist/style.css";
59
- import { useSearchParams as KA, useNavigate as $A, useLocation as fA, Outlet as te, Link as ve, useParams as ue } from "react-router";
59
+ import { useSearchParams as KA, useNavigate as $A, useLocation as fA, Outlet as te, Link as ve, useParams as Ie } from "react-router";
60
60
  import We from "react-easy-crop";
61
61
  const Re = {
62
62
  menus: [],
@@ -153,7 +153,7 @@ function _e({
153
153
  position: "sticky",
154
154
  top: "4rem",
155
155
  zIndex: 1,
156
- borderBottom: "1px solid var(--sa-color-gray-300, #dddee1)",
156
+ borderBottom: "1px solid var(--sa-border-subtle, #0b120e24)",
157
157
  paddingLeft: "0.5rem",
158
158
  paddingRight: "0.5rem",
159
159
  paddingTop: "0.5rem",
@@ -174,16 +174,16 @@ function _e({
174
174
  }
175
175
  );
176
176
  }
177
- const YA = "moduleSwitcherGroupId", RA = "starasia-module-switcher-change";
177
+ const pA = "moduleSwitcherGroupId", RA = "starasia-module-switcher-change";
178
178
  function re() {
179
179
  if (typeof window > "u") return null;
180
- const e = window.localStorage.getItem(YA);
180
+ const e = window.localStorage.getItem(pA);
181
181
  if (e === null) return null;
182
182
  const t = Number(e);
183
183
  return Number.isFinite(t) ? t : null;
184
184
  }
185
185
  function me(e) {
186
- typeof window > "u" || (e === null ? window.localStorage.removeItem(YA) : window.localStorage.setItem(YA, String(e)), window.dispatchEvent(new CustomEvent(RA, { detail: e })));
186
+ typeof window > "u" || (e === null ? window.localStorage.removeItem(pA) : window.localStorage.setItem(pA, String(e)), window.dispatchEvent(new CustomEvent(RA, { detail: e })));
187
187
  }
188
188
  function cr() {
189
189
  me(null);
@@ -196,7 +196,7 @@ function ye() {
196
196
  const o = () => {
197
197
  t(re());
198
198
  }, r = (c) => {
199
- c.key === YA && o();
199
+ c.key === pA && o();
200
200
  };
201
201
  return window.addEventListener(RA, o), window.addEventListener("storage", r), () => {
202
202
  window.removeEventListener(RA, o), window.removeEventListener("storage", r);
@@ -216,7 +216,7 @@ const oe = {
216
216
  paddingTop: "0.5rem",
217
217
  paddingBottom: "0.5rem",
218
218
  fontSize: "0.875rem",
219
- color: "var(--sa-color-gray-700, #6b6e76)",
219
+ color: "var(--sa-text-subtle, #8c8f97)",
220
220
  background: "transparent",
221
221
  border: "none",
222
222
  borderRadius: "0.375rem",
@@ -238,7 +238,7 @@ function nr({
238
238
  profileMenuItems: w,
239
239
  logoutButton: d
240
240
  }) {
241
- const [u] = KA(), L = u.get("embed") === "true", D = Ee(), { badges: K } = Xe(), Z = $A(), q = fA(), M = !eA("md"), [k, P] = G(!1), [x, $] = G(!1), [tA, J] = G(!1), [m, Y] = G(/* @__PURE__ */ new Set()), { selectedGroupId: E, setSelectedGroupId: I } = ye(), N = cA(null), v = cA(null);
241
+ const [I] = KA(), L = I.get("embed") === "true", D = Ee(), { badges: K } = Xe(), Z = $A(), q = fA(), M = !tA("md"), [k, P] = G(!1), [x, $] = G(!1), [eA, J] = G(!1), [m, p] = G(/* @__PURE__ */ new Set()), { selectedGroupId: E, setSelectedGroupId: u } = ye(), N = cA(null), v = cA(null);
242
242
  V(() => {
243
243
  const S = N.current;
244
244
  if (!S) return;
@@ -288,21 +288,21 @@ function nr({
288
288
  P(!1);
289
289
  }, nA = () => {
290
290
  P(!1), r();
291
- }, uA = D.menus.flatMap(
291
+ }, IA = D.menus.flatMap(
292
292
  (S) => S.items.flatMap((F) => {
293
293
  const z = [F.to];
294
294
  return F.children && z.push(...F.children.map((rA) => rA.to)), z;
295
295
  })
296
296
  ), aA = (S) => {
297
297
  if (!q.pathname.startsWith(S)) return !1;
298
- const F = uA.filter((z) => q.pathname.startsWith(z)).sort((z, rA) => rA.length - z.length)[0];
298
+ const F = IA.filter((z) => q.pathname.startsWith(z)).sort((z, rA) => rA.length - z.length)[0];
299
299
  return S === F;
300
300
  };
301
301
  V(() => {
302
302
  D.menus.forEach((S) => {
303
303
  S.items.forEach((F) => {
304
304
  var z;
305
- (z = F.children) != null && z.some((rA) => q.pathname.startsWith(rA.to)) && Y((rA) => {
305
+ (z = F.children) != null && z.some((rA) => q.pathname.startsWith(rA.to)) && p((rA) => {
306
306
  const gA = new Set(rA);
307
307
  return gA.add(F.id), gA;
308
308
  });
@@ -310,14 +310,14 @@ function nr({
310
310
  });
311
311
  }, [q.pathname, D.menus]);
312
312
  const Le = (S) => {
313
- Y((F) => {
313
+ p((F) => {
314
314
  const z = new Set(F);
315
315
  return z.has(S) ? z.delete(S) : z.add(S), z;
316
316
  });
317
317
  };
318
318
  V(() => {
319
- D.menus.length !== 0 && E !== null && !D.menus.some((S) => S.id === E) && I(null);
320
- }, [D.menus, E, I]);
319
+ D.menus.length !== 0 && E !== null && !D.menus.some((S) => S.id === E) && u(null);
320
+ }, [D.menus, E, u]);
321
321
  const Ge = CA(() => {
322
322
  if (E !== null)
323
323
  return D.menus.filter(
@@ -329,17 +329,17 @@ function nr({
329
329
  { id: 18, name: "Pengaturan", items: F, parentGroupId: void 0 }
330
330
  ];
331
331
  }, [D.menus, E]);
332
- return L ? /* @__PURE__ */ A("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "var(--sa-color-gray-100, #f8f8f8)" }, children: e || /* @__PURE__ */ A(te, {}) }) : /* @__PURE__ */ s(R, { children: [
332
+ return L ? /* @__PURE__ */ A("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)" }, children: e || /* @__PURE__ */ A(te, {}) }) : /* @__PURE__ */ s(R, { children: [
333
333
  /* @__PURE__ */ s(
334
334
  "div",
335
335
  {
336
336
  style: {
337
337
  display: "flex",
338
338
  height: "100vh",
339
- // backgroundColor: "var(--sa-color-gray-100, #f8f8f8)",
339
+ // backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
340
340
  position: "relative",
341
341
  "--app-sidebar-width": M ? "0px" : x ? "4rem" : "16rem",
342
- "--app-footer-zindex": M && tA ? "40" : "999"
342
+ "--app-footer-zindex": M && eA ? "40" : "999"
343
343
  },
344
344
  children: [
345
345
  M && /* @__PURE__ */ A(
@@ -350,8 +350,8 @@ function nr({
350
350
  inset: 0,
351
351
  backgroundColor: "var(--sa-color-black-alpha-a50, #181a198f)",
352
352
  zIndex: 40,
353
- opacity: tA ? 0.5 : 0,
354
- pointerEvents: tA ? "auto" : "none",
353
+ opacity: eA ? 0.5 : 0,
354
+ pointerEvents: eA ? "auto" : "none",
355
355
  transition: "opacity 0.3s"
356
356
  },
357
357
  onClick: () => J(!1)
@@ -366,10 +366,10 @@ function nr({
366
366
  ...M && {
367
367
  inset: 0,
368
368
  zIndex: 50,
369
- transform: tA ? "translateX(0)" : "translateX(-100%)"
369
+ transform: eA ? "translateX(0)" : "translateX(-100%)"
370
370
  },
371
- backgroundColor: "var(--sa-color-gray-100, #f8f8f8)",
372
- borderRight: "1px solid var(--sa-color-gray-300, #dddee1)",
371
+ backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
372
+ borderRight: "1px solid var(--sa-border-subtle, #0b120e24)",
373
373
  display: "flex",
374
374
  flexDirection: "column",
375
375
  transition: "all 0.3s ease-in-out",
@@ -385,7 +385,7 @@ function nr({
385
385
  alignItems: "center",
386
386
  paddingLeft: "1rem",
387
387
  paddingRight: "1rem",
388
- borderBottom: "1px solid var(--sa-color-gray-300, #dddee1)"
388
+ borderBottom: "1px solid var(--sa-border-subtle, #0b120e24)"
389
389
  },
390
390
  children: [
391
391
  /* @__PURE__ */ s(
@@ -410,12 +410,12 @@ function nr({
410
410
  }
411
411
  }
412
412
  ),
413
- (!x || tA) && /* @__PURE__ */ A(
413
+ (!x || eA) && /* @__PURE__ */ A(
414
414
  "span",
415
415
  {
416
416
  style: {
417
417
  fontWeight: "600",
418
- color: "var(--sa-color-gray-1100, #1e1f21)",
418
+ color: "var(--sa-text-primary, #292a2e)",
419
419
  whiteSpace: "nowrap",
420
420
  transition: "opacity 0.3s"
421
421
  },
@@ -434,7 +434,7 @@ function nr({
434
434
  borderRadius: "0.5rem",
435
435
  backgroundColor: "transparent",
436
436
  border: "none",
437
- color: "var(--sa-color-gray-500, #8c8f97)",
437
+ color: "var(--sa-text-subtle, #8c8f97)",
438
438
  marginLeft: "auto",
439
439
  cursor: "pointer"
440
440
  },
@@ -477,9 +477,9 @@ function nr({
477
477
  justifyContent: "center",
478
478
  borderRadius: "var(--sa-radii-md, 0.5rem)",
479
479
  backgroundColor: "var(--sa-background-primary, #ffffff)",
480
- border: "1px solid var(--sa-color-gray-300, #dddee1)",
480
+ border: "1px solid var(--sa-border-subtle, #0b120e24)",
481
481
  cursor: "pointer",
482
- color: "var(--sa-color-gray-700, #6b6e76)",
482
+ color: "var(--sa-text-subtle, #8c8f97)",
483
483
  transition: "background-color 0.2s"
484
484
  },
485
485
  children: /* @__PURE__ */ A(
@@ -566,7 +566,7 @@ function nr({
566
566
  paddingBottom: "0.5rem",
567
567
  fontSize: "0.75rem",
568
568
  fontWeight: "600",
569
- color: "var(--sa-color-gray-500, #8c8f97)",
569
+ color: "var(--sa-text-subtle, #8c8f97)",
570
570
  textTransform: "uppercase",
571
571
  letterSpacing: "0.05em",
572
572
  transition: "opacity 0.3s"
@@ -600,13 +600,13 @@ function nr({
600
600
  textAlign: "left",
601
601
  border: gA ? "1px solid var(--sa-border-brand, #031f43)" : "1px solid transparent",
602
602
  backgroundColor: gA ? "var(--sa-background-brand-subtlest, #e6edf6)" : "transparent",
603
- color: gA ? "var(--sa-text-brand, #031f43)" : "var(--sa-color-gray-800, #505258)",
603
+ color: gA ? "var(--sa-text-brand, #031f43)" : "var(--sa-text-primary, #292a2e)",
604
604
  // transition: "all 0.2s",
605
605
  cursor: "pointer"
606
606
  },
607
607
  title: x && !M ? F.title : void 0,
608
608
  onMouseEnter: (AA) => {
609
- gA || (AA.currentTarget.style.backgroundColor = "var(--sa-color-gray-200, #f0f1f2)");
609
+ gA || (AA.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)");
610
610
  },
611
611
  onMouseLeave: (AA) => {
612
612
  gA || (AA.currentTarget.style.backgroundColor = "transparent");
@@ -698,7 +698,7 @@ function nr({
698
698
  style: {
699
699
  marginLeft: "1.5rem",
700
700
  paddingLeft: "0.75rem",
701
- borderLeft: "1px solid var(--sa-color-gray-300, #dddee1)",
701
+ borderLeft: "1px solid var(--sa-border-subtle, #0b120e24)",
702
702
  overflow: "hidden",
703
703
  transition: "all 0.3s ease-in-out",
704
704
  maxHeight: rA ? `${F.children.length * 44}px` : "0px",
@@ -726,13 +726,13 @@ function nr({
726
726
  borderRadius: "var(--sa-radii-md, 0.5rem)",
727
727
  textAlign: "left",
728
728
  backgroundColor: aA(AA.to) ? "var(--sa-background-brand-subtlest, #e6edf6)" : "transparent",
729
- color: aA(AA.to) ? "var(--sa-text-brand, #031f43)" : "var(--sa-color-gray-800, #505258)",
729
+ color: aA(AA.to) ? "var(--sa-text-brand, #031f43)" : "var(--sa-text-primary, #292a2e)",
730
730
  // transition: "all 0.2s",
731
731
  cursor: "pointer",
732
732
  border: aA(AA.to) ? "1px solid var(--sa-border-brand, #031f43)" : "1px solid transparent"
733
733
  },
734
734
  onMouseEnter: (JA) => {
735
- aA(AA.to) || (JA.currentTarget.style.backgroundColor = "var(--sa-color-gray-200, #f0f1f2)");
735
+ aA(AA.to) || (JA.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)");
736
736
  },
737
737
  onMouseLeave: (JA) => {
738
738
  aA(AA.to) || (JA.currentTarget.style.backgroundColor = "transparent");
@@ -789,7 +789,7 @@ function nr({
789
789
  style: {
790
790
  height: "4rem",
791
791
  backgroundColor: "var(--sa-background-primary, #ffffff)",
792
- borderBottom: "1px solid var(--sa-color-gray-300, #dddee1)",
792
+ borderBottom: "1px solid var(--sa-border-subtle, #0b120e24)",
793
793
  display: "flex",
794
794
  alignItems: "center",
795
795
  justifyContent: "space-between",
@@ -808,7 +808,7 @@ function nr({
808
808
  borderRadius: "0.5rem",
809
809
  backgroundColor: "transparent",
810
810
  border: "none",
811
- color: "var(--sa-color-gray-700, #6b6e76)",
811
+ color: "var(--sa-text-subtle, #8c8f97)",
812
812
  cursor: "pointer"
813
813
  },
814
814
  children: /* @__PURE__ */ A(
@@ -854,7 +854,7 @@ function nr({
854
854
  margin: 0,
855
855
  fontSize: "0.875rem",
856
856
  fontWeight: 500,
857
- color: "var(--sa-color-gray-700, #6b6e76)",
857
+ color: "var(--sa-text-subtle, #8c8f97)",
858
858
  whiteSpace: "nowrap",
859
859
  overflow: "hidden",
860
860
  textOverflow: "ellipsis"
@@ -868,7 +868,7 @@ function nr({
868
868
  style: {
869
869
  margin: 0,
870
870
  fontSize: "0.75rem",
871
- color: "var(--sa-color-gray-500, #8c8f97)",
871
+ color: "var(--sa-text-subtle, #8c8f97)",
872
872
  whiteSpace: "nowrap",
873
873
  overflow: "hidden",
874
874
  textOverflow: "ellipsis"
@@ -902,7 +902,7 @@ function nr({
902
902
  {
903
903
  name: "ChevronDown",
904
904
  size: "sm",
905
- style: { color: "var(--sa-color-gray-500, #8c8f97)" }
905
+ style: { color: "var(--sa-text-subtle, #8c8f97)" }
906
906
  }
907
907
  )
908
908
  ]
@@ -919,7 +919,7 @@ function nr({
919
919
  marginTop: "16px"
920
920
  },
921
921
  children: [
922
- /* @__PURE__ */ A(pe, { children: /* @__PURE__ */ s(
922
+ /* @__PURE__ */ A(Ye, { children: /* @__PURE__ */ s(
923
923
  "div",
924
924
  {
925
925
  style: {
@@ -957,7 +957,7 @@ function nr({
957
957
  margin: 0,
958
958
  fontSize: "0.875rem",
959
959
  fontWeight: 600,
960
- color: "var(--sa-color-gray-1100, #1e1f21)",
960
+ color: "var(--sa-text-primary, #292a2e)",
961
961
  maxWidth: "100%",
962
962
  whiteSpace: "nowrap",
963
963
  overflow: "hidden",
@@ -972,7 +972,7 @@ function nr({
972
972
  style: {
973
973
  margin: 0,
974
974
  fontSize: "0.75rem",
975
- color: "var(--sa-color-gray-600, #7d818a)",
975
+ color: "var(--sa-text-subtle, #8c8f97)",
976
976
  maxWidth: "100%",
977
977
  whiteSpace: "nowrap",
978
978
  overflow: "hidden",
@@ -987,7 +987,7 @@ function nr({
987
987
  style: {
988
988
  margin: 0,
989
989
  fontSize: "0.75rem",
990
- color: "var(--sa-color-gray-600, #7d818a)",
990
+ color: "var(--sa-text-subtle, #8c8f97)",
991
991
  maxWidth: "100%",
992
992
  whiteSpace: "nowrap",
993
993
  overflow: "hidden",
@@ -1007,7 +1007,7 @@ function nr({
1007
1007
  onClick: S.onClick,
1008
1008
  style: oe,
1009
1009
  onMouseEnter: (z) => {
1010
- z.currentTarget.style.backgroundColor = "var(--sa-color-gray-200, #f0f1f2)";
1010
+ z.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)";
1011
1011
  },
1012
1012
  onMouseLeave: (z) => {
1013
1013
  z.currentTarget.style.backgroundColor = "transparent";
@@ -1090,11 +1090,11 @@ function nr({
1090
1090
  }
1091
1091
  ),
1092
1092
  /* @__PURE__ */ s(mA, { isShow: k, onHide: oA, children: [
1093
- /* @__PURE__ */ A(IA, { children: "Confirmation Logout" }),
1093
+ /* @__PURE__ */ A(uA, { children: "Confirmation Logout" }),
1094
1094
  /* @__PURE__ */ A(yA, { children: "Are you sure you want to end the session and exit the page?" }),
1095
- /* @__PURE__ */ A(pA, { children: /* @__PURE__ */ A(C, { display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ s(W, { direction: "row", gap: "sm", align: "center", children: [
1096
- /* @__PURE__ */ A(C, { children: /* @__PURE__ */ A(p, { secondary: !0, onClick: oA, children: "Cancel" }) }),
1097
- /* @__PURE__ */ A(C, { children: /* @__PURE__ */ A(p, { primary: !0, onClick: nA, children: "Yes, Sure" }) })
1095
+ /* @__PURE__ */ A(YA, { children: /* @__PURE__ */ A(C, { display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ s(W, { direction: "row", gap: "sm", align: "center", children: [
1096
+ /* @__PURE__ */ A(C, { children: /* @__PURE__ */ A(Y, { secondary: !0, onClick: oA, children: "Cancel" }) }),
1097
+ /* @__PURE__ */ A(C, { children: /* @__PURE__ */ A(Y, { primary: !0, onClick: nA, children: "Yes, Sure" }) })
1098
1098
  ] }) }) })
1099
1099
  ] })
1100
1100
  ] });
@@ -1154,7 +1154,7 @@ function At({
1154
1154
  width: "64px",
1155
1155
  height: "64px",
1156
1156
  borderRadius: "12px",
1157
- border: o === null ? "2px solid var(--sa-background-brand, #04254f)" : "1px solid var(--sa-color-gray-300, #dddee1)",
1157
+ border: o === null ? "2px solid var(--sa-background-brand, #04254f)" : "1px solid var(--sa-border-subtle, #0b120e24)",
1158
1158
  backgroundColor: o === null ? "var(--sa-color-brand-50, #e6edf6)" : "var(--sa-color-white-alpha-a90, #e5e9f66b)",
1159
1159
  transition: "all 0.15s",
1160
1160
  backdropFilter: "blur(4px)"
@@ -1209,7 +1209,7 @@ function At({
1209
1209
  width: "64px",
1210
1210
  height: "64px",
1211
1211
  borderRadius: "12px",
1212
- border: g ? "2px solid var(--sa-background-brand, #04254f)" : "1px solid var(--sa-color-gray-300, #dddee1)",
1212
+ border: g ? "2px solid var(--sa-background-brand, #04254f)" : "1px solid var(--sa-border-subtle, #0b120e24)",
1213
1213
  backgroundColor: g ? "var(--sa-color-brand-50, #e6edf6)" : "var(--sa-color-white-alpha-a90, #e5e9f66b)",
1214
1214
  transition: "all 0.15s",
1215
1215
  backdropFilter: "blur(4px)"
@@ -1251,7 +1251,7 @@ function lr({
1251
1251
  const i = Ee(), o = $A(), { selectedGroupId: r, setSelectedGroupId: c } = ye(), [l, g] = G(!1), a = (B) => {
1252
1252
  var Q;
1253
1253
  if (c(B), B !== null) {
1254
- const w = i.menus.find((u) => u.id === B), d = (Q = w == null ? void 0 : w.items[0]) == null ? void 0 : Q.to;
1254
+ const w = i.menus.find((I) => I.id === B), d = (Q = w == null ? void 0 : w.items[0]) == null ? void 0 : Q.to;
1255
1255
  d && o(d);
1256
1256
  }
1257
1257
  e == null || e(B);
@@ -1269,14 +1269,14 @@ function lr({
1269
1269
  width: "2.25rem",
1270
1270
  height: "2.25rem",
1271
1271
  borderRadius: "var(--sa-radii-md, 0.5rem)",
1272
- border: "1px solid var(--sa-color-gray-300, #dddee1)",
1273
- color: "var(--sa-color-gray-700, #6b6e76)",
1272
+ border: "1px solid var(--sa-border-subtle, #0b120e24)",
1273
+ color: "var(--sa-text-subtle, #8c8f97)",
1274
1274
  backgroundColor: "transparent",
1275
1275
  cursor: "pointer"
1276
1276
  },
1277
1277
  "aria-label": t,
1278
1278
  onMouseEnter: (B) => {
1279
- B.currentTarget.style.backgroundColor = "var(--sa-color-gray-100, #f8f8f8)";
1279
+ B.currentTarget.style.backgroundColor = "var(--sa-background-primary-inverse, #f8f8f8)";
1280
1280
  },
1281
1281
  onMouseLeave: (B) => {
1282
1282
  B.currentTarget.style.backgroundColor = "transparent";
@@ -1314,7 +1314,7 @@ function lr({
1314
1314
  }
1315
1315
  const gr = iA(
1316
1316
  ({ children: e, coverImage: t, logo: i }) => {
1317
- const o = eA("md"), r = Je();
1317
+ const o = tA("md"), r = Je();
1318
1318
  return /* @__PURE__ */ s(
1319
1319
  C,
1320
1320
  {
@@ -1519,31 +1519,31 @@ const gr = iA(
1519
1519
  const g = () => {
1520
1520
  switch (l) {
1521
1521
  case "info":
1522
- return /* @__PURE__ */ A(IA, { info: !0, children: e });
1522
+ return /* @__PURE__ */ A(uA, { info: !0, children: e });
1523
1523
  case "danger":
1524
- return /* @__PURE__ */ A(IA, { danger: !0, children: e });
1524
+ return /* @__PURE__ */ A(uA, { danger: !0, children: e });
1525
1525
  case "success":
1526
- return /* @__PURE__ */ A(IA, { success: !0, children: e });
1526
+ return /* @__PURE__ */ A(uA, { success: !0, children: e });
1527
1527
  default:
1528
- return /* @__PURE__ */ A(IA, { success: !0, children: e });
1528
+ return /* @__PURE__ */ A(uA, { success: !0, children: e });
1529
1529
  }
1530
1530
  }, a = () => {
1531
1531
  switch (l) {
1532
1532
  case "info":
1533
- return /* @__PURE__ */ A(p, { primary: !0, onClick: o, children: c });
1533
+ return /* @__PURE__ */ A(Y, { primary: !0, onClick: o, children: c });
1534
1534
  case "danger":
1535
- return /* @__PURE__ */ A(p, { danger: !0, onClick: o, children: c });
1535
+ return /* @__PURE__ */ A(Y, { danger: !0, onClick: o, children: c });
1536
1536
  case "success":
1537
- return /* @__PURE__ */ A(p, { success: !0, onClick: o, children: c });
1537
+ return /* @__PURE__ */ A(Y, { success: !0, onClick: o, children: c });
1538
1538
  default:
1539
- return /* @__PURE__ */ A(p, { primary: !0, onClick: o, children: c });
1539
+ return /* @__PURE__ */ A(Y, { primary: !0, onClick: o, children: c });
1540
1540
  }
1541
1541
  };
1542
1542
  return /* @__PURE__ */ s(mA, { isShow: r, onHide: i, children: [
1543
1543
  g(),
1544
1544
  /* @__PURE__ */ A(yA, { children: /* @__PURE__ */ A(h, { children: t }) }),
1545
- /* @__PURE__ */ A(pA, { children: /* @__PURE__ */ s(C, { justify: "flex-end", direction: "row", gap: "sm", children: [
1546
- /* @__PURE__ */ A(p, { secondary: !0, onClick: i, children: "Cancel" }),
1545
+ /* @__PURE__ */ A(YA, { children: /* @__PURE__ */ s(C, { justify: "flex-end", direction: "row", gap: "sm", children: [
1546
+ /* @__PURE__ */ A(Y, { secondary: !0, onClick: i, children: "Cancel" }),
1547
1547
  a()
1548
1548
  ] }) })
1549
1549
  ] });
@@ -1559,7 +1559,7 @@ const gr = iA(
1559
1559
  children: e
1560
1560
  }
1561
1561
  ), DA = iA(rt), ot = ({ backButton: e }) => {
1562
- const [t, i] = G(!1), o = (e == null ? void 0 : e.iconColor) ?? "var(--sa-color-gray-500, #8c8f97)", r = (e == null ? void 0 : e.textColor) ?? "var(--sa-text-subtle, #8c8f97)", c = (e == null ? void 0 : e.hoverIconColor) ?? "var(--sa-color-gray-700, #6b6e76)", l = (e == null ? void 0 : e.hoverTextColor) ?? "var(--sa-text-primary, #292a2e)";
1562
+ const [t, i] = G(!1), o = (e == null ? void 0 : e.iconColor) ?? "var(--sa-text-subtle, #8c8f97)", r = (e == null ? void 0 : e.textColor) ?? "var(--sa-text-subtle, #8c8f97)", c = (e == null ? void 0 : e.hoverIconColor) ?? "var(--sa-text-subtle, #8c8f97)", l = (e == null ? void 0 : e.hoverTextColor) ?? "var(--sa-text-primary, #292a2e)";
1563
1563
  return /* @__PURE__ */ s(
1564
1564
  C,
1565
1565
  {
@@ -1607,15 +1607,15 @@ const gr = iA(
1607
1607
  containerProps: g,
1608
1608
  headerProps: a
1609
1609
  }) => {
1610
- const B = eA("lg"), Q = $A(), w = fA(), d = e == null ? void 0 : e.show, u = () => {
1610
+ const B = tA("lg"), Q = $A(), w = fA(), d = e == null ? void 0 : e.show, I = () => {
1611
1611
  if (typeof (e == null ? void 0 : e.onClick) == "function") {
1612
1612
  e.onClick();
1613
1613
  return;
1614
1614
  }
1615
1615
  Q(-1, { replace: !0 });
1616
- }, L = () => c ? Ie(c) ? c : /* @__PURE__ */ A(C, { direction: "row", gap: "lg", children: c.map(
1616
+ }, L = () => c ? ue(c) ? c : /* @__PURE__ */ A(C, { direction: "row", gap: "lg", children: c.map(
1617
1617
  ({ title: q, icon: X, buttonProps: M, onClick: k }, P) => !q && !X ? null : /* @__PURE__ */ A(
1618
- p,
1618
+ Y,
1619
1619
  {
1620
1620
  fullWidth: !B,
1621
1621
  iconLeft: X ? /* @__PURE__ */ A(y, { name: X, size: "md" }) : void 0,
@@ -1635,7 +1635,7 @@ const gr = iA(
1635
1635
  style: { textDecoration: "none" },
1636
1636
  children: q
1637
1637
  }
1638
- ) }) : /* @__PURE__ */ A(C, { direction: "row", children: /* @__PURE__ */ A(DA, { onClick: u, children: q }) });
1638
+ ) }) : /* @__PURE__ */ A(C, { direction: "row", children: /* @__PURE__ */ A(DA, { onClick: I, children: q }) });
1639
1639
  }, K = () => /* @__PURE__ */ s(
1640
1640
  C,
1641
1641
  {
@@ -1695,7 +1695,7 @@ const gr = iA(
1695
1695
  paddingHorizontal: c = !0,
1696
1696
  closeButton: l = nt
1697
1697
  }, g) => /* @__PURE__ */ A(R, { children: /* @__PURE__ */ A(
1698
- Ye,
1698
+ pe,
1699
1699
  {
1700
1700
  blur: !1,
1701
1701
  isShow: t,
@@ -1752,13 +1752,13 @@ const gr = iA(
1752
1752
  ) })
1753
1753
  ), fe = iA(
1754
1754
  ({ children: e, borderBottom: t = !0, padding: i = !0 }) => {
1755
- const o = eA("lg");
1755
+ const o = tA("lg");
1756
1756
  return /* @__PURE__ */ A(
1757
1757
  C,
1758
1758
  {
1759
1759
  padding: i ? "md" : "spacing-0",
1760
- paddingLeft: i ? o ? "lg" : "md" : "spacing-0",
1761
- paddingRight: i ? o ? "lg" : "md" : "spacing-0",
1760
+ paddingLeft: i ? "md" : "spacing-0",
1761
+ paddingRight: i ? "md" : "spacing-0",
1762
1762
  style: t ? {
1763
1763
  borderBottom: "1px solid var(--sa-border-subtle, #0b120e24)"
1764
1764
  } : void 0,
@@ -1768,13 +1768,13 @@ const gr = iA(
1768
1768
  }
1769
1769
  ), xe = iA(
1770
1770
  ({ children: e, borderTop: t = !0, padding: i = !0 }) => {
1771
- const o = eA("lg");
1771
+ const o = tA("lg");
1772
1772
  return /* @__PURE__ */ A(
1773
1773
  C,
1774
1774
  {
1775
1775
  padding: i ? "md" : "spacing-0",
1776
- paddingLeft: i ? o ? "lg" : "md" : "spacing-0",
1777
- paddingRight: i ? o ? "lg" : "md" : "spacing-0",
1776
+ paddingLeft: i ? "md" : "spacing-0",
1777
+ paddingRight: i ? "md" : "spacing-0",
1778
1778
  style: t ? {
1779
1779
  borderTop: "1px solid var(--sa-border-subtle, #0b120e24)"
1780
1780
  } : void 0,
@@ -1783,20 +1783,17 @@ const gr = iA(
1783
1783
  );
1784
1784
  }
1785
1785
  ), lt = iA(
1786
- ({ children: e, ...t }) => {
1787
- const i = eA("lg");
1788
- return /* @__PURE__ */ A(
1789
- C,
1790
- {
1791
- padding: "md",
1792
- paddingLeft: i ? "lg" : "md",
1793
- paddingRight: i ? "lg" : "md",
1794
- gap: "md",
1795
- ...t,
1796
- children: e
1797
- }
1798
- );
1799
- }
1786
+ ({ children: e, ...t }) => /* @__PURE__ */ A(
1787
+ C,
1788
+ {
1789
+ padding: "md",
1790
+ paddingLeft: "md",
1791
+ paddingRight: "md",
1792
+ gap: "md",
1793
+ ...t,
1794
+ children: e
1795
+ }
1796
+ )
1800
1797
  ), Br = iA(
1801
1798
  ({
1802
1799
  children: e,
@@ -1812,7 +1809,7 @@ const gr = iA(
1812
1809
  footerProps: Q = { borderTop: !0 },
1813
1810
  variantTag: w = "info"
1814
1811
  }) => {
1815
- const d = eA("lg"), u = () => i ? /* @__PURE__ */ s(C, { direction: "row", gap: "sm", align: "center", children: [
1812
+ const d = tA("lg"), I = () => i ? /* @__PURE__ */ s(C, { direction: "row", gap: "sm", align: "center", children: [
1816
1813
  /* @__PURE__ */ A(h, { fontWeight: "medium", children: t }),
1817
1814
  /* @__PURE__ */ A(MA, { border: !0, text: i, variant: w })
1818
1815
  ] }) : /* @__PURE__ */ A(h, { fontWeight: "medium", children: t });
@@ -1833,9 +1830,9 @@ const gr = iA(
1833
1830
  direction: "row",
1834
1831
  justify: "space-between",
1835
1832
  align: "flex-start",
1836
- gap: "lg",
1833
+ gap: "md",
1837
1834
  children: [
1838
- /* @__PURE__ */ A(C, { children: t ? u() : null }),
1835
+ /* @__PURE__ */ A(C, { children: t ? I() : null }),
1839
1836
  /* @__PURE__ */ A(
1840
1837
  C,
1841
1838
  {
@@ -1895,9 +1892,9 @@ const gr = iA(
1895
1892
  [r]
1896
1893
  );
1897
1894
  return /* @__PURE__ */ s(Ce, { position: c, style: i, children: [
1898
- /* @__PURE__ */ A(LA, { style: o, children: /* @__PURE__ */ A(p, { size: "sm", secondary: !0, ...l, children: /* @__PURE__ */ A(y, { name: e, ...g }) }) }),
1895
+ /* @__PURE__ */ A(LA, { style: o, children: /* @__PURE__ */ A(Y, { size: "sm", secondary: !0, ...l, children: /* @__PURE__ */ A(y, { name: e, ...g }) }) }),
1899
1896
  /* @__PURE__ */ A(Be, { style: B, children: t.map((Q, w) => a === "outline-button" ? /* @__PURE__ */ A(de, { children: /* @__PURE__ */ s(
1900
- p,
1897
+ Y,
1901
1898
  {
1902
1899
  size: "sm",
1903
1900
  secondary: !0,
@@ -2004,7 +2001,7 @@ const gr = iA(
2004
2001
  o ? B = r.includes(g.value) ? a.filter((Q) => Q.value !== g.value) : [...a, g] : B = [g], i == null || i(B);
2005
2002
  };
2006
2003
  return /* @__PURE__ */ A(C, { direction: "row", gap: "sm", flexWrap: "wrap", children: t == null ? void 0 : t.map((g, a) => /* @__PURE__ */ A(
2007
- p,
2004
+ Y,
2008
2005
  {
2009
2006
  ...r.includes(g.value) ? { primary: !0 } : { secondary: !0 },
2010
2007
  onClick: () => l(g),
@@ -2029,7 +2026,7 @@ const gr = iA(
2029
2026
  onSearch: Q,
2030
2027
  value: w,
2031
2028
  dateFilter: d,
2032
- enableInputDate: u,
2029
+ enableInputDate: I,
2033
2030
  withSearchParam: L,
2034
2031
  // disabled,
2035
2032
  rangedDate: D,
@@ -2059,7 +2056,7 @@ const gr = iA(
2059
2056
  return /* @__PURE__ */ A(
2060
2057
  se,
2061
2058
  {
2062
- input: u,
2059
+ input: I,
2063
2060
  filter: d,
2064
2061
  value: wt(w || P, D),
2065
2062
  onChange: (J) => o == null ? void 0 : o({ value: J, name: g, type: t }),
@@ -2103,9 +2100,9 @@ const gr = iA(
2103
2100
  label: J.label,
2104
2101
  checked: m,
2105
2102
  sizes: "sm",
2106
- onChange: (Y) => {
2107
- const E = Array.isArray(w) ? w : [], I = Y.target.checked ? [...E, J.value] : E.filter((N) => N !== J.value);
2108
- o == null || o({ value: I, name: g, type: t });
2103
+ onChange: (p) => {
2104
+ const E = Array.isArray(w) ? w : [], u = p.target.checked ? [...E, J.value] : E.filter((N) => N !== J.value);
2105
+ o == null || o({ value: u, name: g, type: t });
2109
2106
  }
2110
2107
  },
2111
2108
  J.value
@@ -2141,7 +2138,7 @@ const gr = iA(
2141
2138
  onHide: c,
2142
2139
  resetting: l
2143
2140
  }) => {
2144
- const [g, a] = G(!1), B = cA(null), Q = ({ value: d, name: u, type: L }) => {
2141
+ const [g, a] = G(!1), B = cA(null), Q = ({ value: d, name: I, type: L }) => {
2145
2142
  if (o)
2146
2143
  switch (L) {
2147
2144
  case "date":
@@ -2170,22 +2167,22 @@ const gr = iA(
2170
2167
  ref: B,
2171
2168
  children: [
2172
2169
  /* @__PURE__ */ A(Qt, { title: t, resetButton: { onClick: w } }),
2173
- g || l ? null : /* @__PURE__ */ A(C, { children: i == null ? void 0 : i.map((d, u) => /* @__PURE__ */ A(
2170
+ g || l ? null : /* @__PURE__ */ A(C, { children: i == null ? void 0 : i.map((d, I) => /* @__PURE__ */ A(
2174
2171
  be,
2175
2172
  {
2176
- borderBottom: u !== i.length - 1,
2173
+ borderBottom: I !== i.length - 1,
2177
2174
  onChange: Q,
2178
2175
  withSearchParam: o,
2179
2176
  ...d,
2180
2177
  ref: B
2181
2178
  },
2182
- u
2179
+ I
2183
2180
  )) })
2184
2181
  ]
2185
2182
  }
2186
2183
  ) });
2187
2184
  }
2188
- ), It = wA.memo(({ active: e, onClick: t }) => {
2185
+ ), ut = wA.memo(({ active: e, onClick: t }) => {
2189
2186
  var o, r;
2190
2187
  const i = VA();
2191
2188
  return /* @__PURE__ */ A(
@@ -2267,14 +2264,14 @@ const Dr = (e) => {
2267
2264
  let i = t[0].charAt(0);
2268
2265
  return t.length > 1 && (i += "" + t[1].charAt(0)), i.toUpperCase();
2269
2266
  };
2270
- function Ir(e) {
2267
+ function ur(e) {
2271
2268
  const t = typeof e == "string" ? new Date(e) : e;
2272
2269
  if (isNaN(t.getTime()))
2273
2270
  throw new Error("Invalid date format");
2274
2271
  const i = t.getFullYear(), o = String(t.getMonth() + 1).padStart(2, "0"), r = String(t.getDate()).padStart(2, "0");
2275
2272
  return `${i}-${o}-${r}`;
2276
2273
  }
2277
- const ut = "starasia-admin", sA = (e) => `var(--${ut}-${e})`, ur = {
2274
+ const It = "starasia-admin", sA = (e) => `var(--${It}-${e})`, Ir = {
2278
2275
  base: {
2279
2276
  borderColor: sA("base-border-color"),
2280
2277
  textColor: sA("base-text-color"),
@@ -2400,29 +2397,29 @@ const Lr = (e) => {
2400
2397
  o(!0);
2401
2398
  }, w = (M) => {
2402
2399
  o(M);
2403
- }, d = l ? yt(l) : void 0, u = !!(d && ((X = Object.values(d)) == null ? void 0 : X.length) > 0), L = () => d ? Object.keys(d).map((M) => {
2404
- var J, m, Y;
2400
+ }, d = l ? yt(l) : void 0, I = !!(d && ((X = Object.values(d)) == null ? void 0 : X.length) > 0), L = () => d ? Object.keys(d).map((M) => {
2401
+ var J, m, p;
2405
2402
  const k = PA(M, t.fields), P = [];
2406
2403
  let x = "";
2407
- const $ = (J = k == null ? void 0 : k.childrenKey) == null ? void 0 : J.length, tA = k == null ? void 0 : k.parentKey;
2404
+ const $ = (J = k == null ? void 0 : k.childrenKey) == null ? void 0 : J.length, eA = k == null ? void 0 : k.parentKey;
2408
2405
  switch ($ && ((m = k == null ? void 0 : k.childrenKey) == null || m.forEach((E) => {
2409
- const I = PA(E, t.fields);
2410
- I && P.push({
2411
- name: I == null ? void 0 : I.name,
2412
- label: I == null ? void 0 : I.label,
2413
- value: d[I == null ? void 0 : I.name]
2406
+ const u = PA(E, t.fields);
2407
+ u && P.push({
2408
+ name: u == null ? void 0 : u.name,
2409
+ label: u == null ? void 0 : u.label,
2410
+ value: d[u == null ? void 0 : u.name]
2414
2411
  });
2415
2412
  })), k == null ? void 0 : k.type) {
2416
2413
  case "dropdown":
2417
2414
  case "select-button":
2418
- const E = d[M] && typeof d[M] != "string" ? d[M] : [], I = (E == null ? void 0 : E.length) > 0 ? (Y = E.map((f) => f.label)) == null ? void 0 : Y.join(",") : d[M];
2419
- x = `${k == null ? void 0 : k.label}: ${I}`;
2415
+ const E = d[M] && typeof d[M] != "string" ? d[M] : [], u = (E == null ? void 0 : E.length) > 0 ? (p = E.map((f) => f.label)) == null ? void 0 : p.join(",") : d[M];
2416
+ x = `${k == null ? void 0 : k.label}: ${u}`;
2420
2417
  break;
2421
2418
  case "checkbox":
2422
2419
  const v = (Array.isArray(d[M]) ? d[M] : []).map(
2423
2420
  (f) => {
2424
2421
  var oA, nA;
2425
- return ((nA = (oA = k == null ? void 0 : k.options) == null ? void 0 : oA.find((uA) => uA.value === f)) == null ? void 0 : nA.label) || f;
2422
+ return ((nA = (oA = k == null ? void 0 : k.options) == null ? void 0 : oA.find((IA) => IA.value === f)) == null ? void 0 : nA.label) || f;
2426
2423
  }
2427
2424
  ).join(", ");
2428
2425
  x = `${k == null ? void 0 : k.label}: ${v}`;
@@ -2441,15 +2438,15 @@ const Lr = (e) => {
2441
2438
  break;
2442
2439
  }
2443
2440
  if ($ && P.length > 0) {
2444
- let E = P.map((I) => {
2441
+ let E = P.map((u) => {
2445
2442
  var N, v;
2446
- return I != null && I.value && typeof I.value != "string" ? (v = (N = I == null ? void 0 : I.value) == null ? void 0 : N.map((H) => H == null ? void 0 : H.label)) == null ? void 0 : v.join(",") : I.value;
2443
+ return u != null && u.value && typeof u.value != "string" ? (v = (N = u == null ? void 0 : u.value) == null ? void 0 : N.map((H) => H == null ? void 0 : H.label)) == null ? void 0 : v.join(",") : u.value;
2447
2444
  });
2448
2445
  E = E.filter(
2449
- (I) => typeof I < "u" && I !== "" && I !== null
2446
+ (u) => typeof u < "u" && u !== "" && u !== null
2450
2447
  ), E && E.length > 0 && (x = `${x} ${k.relationLabelChip || "by"} ${E}`);
2451
2448
  }
2452
- return tA && (x = ""), {
2449
+ return eA && (x = ""), {
2453
2450
  name: k == null ? void 0 : k.name,
2454
2451
  label: k == null ? void 0 : k.label,
2455
2452
  value: d[M],
@@ -2467,7 +2464,7 @@ const Lr = (e) => {
2467
2464
  reset: Q,
2468
2465
  chips: K,
2469
2466
  toggleConfig: {
2470
- active: u,
2467
+ active: I,
2471
2468
  onClick: B
2472
2469
  },
2473
2470
  chipsConfig: {
@@ -2482,12 +2479,12 @@ const Lr = (e) => {
2482
2479
  onReset: w
2483
2480
  }
2484
2481
  };
2485
- }, Yr = {
2482
+ }, pr = {
2486
2483
  Container: Dt,
2487
- Toggle: It,
2484
+ Toggle: ut,
2488
2485
  Chips: Bt,
2489
2486
  Chip: Se
2490
- }, ft = (e) => /* @__PURE__ */ A(h, { variant: "h1", children: e.children, ...e.props }), xt = (e) => /* @__PURE__ */ A(h, { variant: "h2", children: e.children, ...e.props }), St = (e) => /* @__PURE__ */ A(h, { variant: "h3", children: e.children, ...e.props }), bt = (e) => /* @__PURE__ */ A(h, { variant: "h4", children: e.children, ...e.props }), Ft = (e) => /* @__PURE__ */ A(h, { variant: "h5", children: e.children, ...e.props }), Lt = (e) => /* @__PURE__ */ A(h, { variant: "h6", children: e.children, ...e.props }), Gt = (e) => /* @__PURE__ */ A(h, { variant: "sub-h1", children: e.children, ...e.props }), Ot = (e) => /* @__PURE__ */ A(h, { variant: "sub-h2", children: e.children, ...e.props }), Yt = (e) => /* @__PURE__ */ A(h, { variant: "sub-h3", children: e.children, ...e.props }), pt = (e) => /* @__PURE__ */ A(h, { variant: "body-1", children: e.children, ...e.props }), jt = (e) => /* @__PURE__ */ A(h, { variant: "body-2", children: e.children, ...e.props }), Nt = (e) => /* @__PURE__ */ A(h, { variant: "body-3", children: e.children, ...e.props }), U = {
2487
+ }, ft = (e) => /* @__PURE__ */ A(h, { variant: "h1", children: e.children, ...e.props }), xt = (e) => /* @__PURE__ */ A(h, { variant: "h2", children: e.children, ...e.props }), St = (e) => /* @__PURE__ */ A(h, { variant: "h3", children: e.children, ...e.props }), bt = (e) => /* @__PURE__ */ A(h, { variant: "h4", children: e.children, ...e.props }), Ft = (e) => /* @__PURE__ */ A(h, { variant: "h5", children: e.children, ...e.props }), Lt = (e) => /* @__PURE__ */ A(h, { variant: "h6", children: e.children, ...e.props }), Gt = (e) => /* @__PURE__ */ A(h, { variant: "sub-h1", children: e.children, ...e.props }), Ot = (e) => /* @__PURE__ */ A(h, { variant: "sub-h2", children: e.children, ...e.props }), pt = (e) => /* @__PURE__ */ A(h, { variant: "sub-h3", children: e.children, ...e.props }), Yt = (e) => /* @__PURE__ */ A(h, { variant: "body-1", children: e.children, ...e.props }), jt = (e) => /* @__PURE__ */ A(h, { variant: "body-2", children: e.children, ...e.props }), Nt = (e) => /* @__PURE__ */ A(h, { variant: "body-3", children: e.children, ...e.props }), U = {
2491
2488
  H1: ft,
2492
2489
  H2: xt,
2493
2490
  H3: St,
@@ -2496,12 +2493,12 @@ const Lr = (e) => {
2496
2493
  H6: Lt,
2497
2494
  SubH1: Gt,
2498
2495
  SubH2: Ot,
2499
- SubH3: Yt,
2500
- Body1: pt,
2496
+ SubH3: pt,
2497
+ Body1: Yt,
2501
2498
  Body2: jt,
2502
2499
  Body3: Nt
2503
2500
  }, _A = () => {
2504
- const [e, t] = KA(), i = NA(e.toString()), o = ue(), r = fA(), c = o.id;
2501
+ const [e, t] = KA(), i = NA(e.toString()), o = Ie(), r = fA(), c = o.id;
2505
2502
  return {
2506
2503
  // query params
2507
2504
  setSearchParams: t,
@@ -2561,15 +2558,15 @@ const Lr = (e) => {
2561
2558
  [t]: B
2562
2559
  }, d = { ...c };
2563
2560
  l && typeof l == "string" && delete d[l], delete d[a];
2564
- const u = {
2561
+ const I = {
2565
2562
  ...d,
2566
2563
  [g]: JSON.stringify(w)
2567
2564
  }, L = new URLSearchParams(c).toString(), D = new URLSearchParams(
2568
- u
2565
+ I
2569
2566
  ).toString();
2570
2567
  if (L === D)
2571
2568
  return;
2572
- r(u);
2569
+ r(I);
2573
2570
  }
2574
2571
  }
2575
2572
  }, qA = ({
@@ -2580,7 +2577,7 @@ const Lr = (e) => {
2580
2577
  }) => {
2581
2578
  const r = i.get(t) || void 0, c = r && typeof r == "string" ? JSON.parse(r) : void 0, l = c ? c[e] : void 0;
2582
2579
  return o === "label" && l ? JSON.parse(l)[0].label : o === "value" && l ? JSON.parse(l)[0].value : l;
2583
- }, pr = ({
2580
+ }, Yr = ({
2584
2581
  name: e,
2585
2582
  filterKey: t = "filter",
2586
2583
  searchParams: i,
@@ -2632,23 +2629,23 @@ const Lr = (e) => {
2632
2629
  }) => {
2633
2630
  const { searchParams: c, setSearchParams: l, searchQueries: g } = _A(), [a, B] = G({}), Q = () => {
2634
2631
  c.delete(i || "filter"), l(c);
2635
- }, w = (d, u) => {
2632
+ }, w = (d, I) => {
2636
2633
  switch (d.type) {
2637
2634
  case "radio": {
2638
2635
  const { show: L = !0 } = d;
2639
- return L && /* @__PURE__ */ A(C, { children: /* @__PURE__ */ A(C, { children: d.title }) }, u);
2636
+ return L && /* @__PURE__ */ A(C, { children: /* @__PURE__ */ A(C, { children: d.title }) }, I);
2640
2637
  }
2641
2638
  case "dropdown": {
2642
2639
  const { show: L = !0 } = d;
2643
- return L && /* @__PURE__ */ A(C, { children: /* @__PURE__ */ A(C, { children: d.title }) }, u);
2640
+ return L && /* @__PURE__ */ A(C, { children: /* @__PURE__ */ A(C, { children: d.title }) }, I);
2644
2641
  }
2645
2642
  case "date-range":
2646
- return /* @__PURE__ */ A(C, { children: /* @__PURE__ */ A(C, { children: d.title }) }, u);
2643
+ return /* @__PURE__ */ A(C, { children: /* @__PURE__ */ A(C, { children: d.title }) }, I);
2647
2644
  case "date":
2648
- return /* @__PURE__ */ A(C, { children: /* @__PURE__ */ A(C, { children: d.title }) }, u);
2645
+ return /* @__PURE__ */ A(C, { children: /* @__PURE__ */ A(C, { children: d.title }) }, I);
2649
2646
  case "dropdown-multiple": {
2650
2647
  const { show: L = !0 } = d;
2651
- return L && /* @__PURE__ */ A(C, { children: /* @__PURE__ */ A(C, { children: d.title }) }, u);
2648
+ return L && /* @__PURE__ */ A(C, { children: /* @__PURE__ */ A(C, { children: d.title }) }, I);
2652
2649
  }
2653
2650
  default:
2654
2651
  return null;
@@ -2666,7 +2663,7 @@ const Lr = (e) => {
2666
2663
  }
2667
2664
  )
2668
2665
  ] }),
2669
- r == null ? void 0 : r.map((d, u) => w(d, u))
2666
+ r == null ? void 0 : r.map((d, I) => w(d, I))
2670
2667
  ] }) });
2671
2668
  }, vt = ({
2672
2669
  searchKey: e = "q",
@@ -2682,30 +2679,30 @@ const Lr = (e) => {
2682
2679
  handleOnReset: Q,
2683
2680
  filterConfigs: w,
2684
2681
  buttonToggleProps: d,
2685
- position: u = "right",
2682
+ position: I = "right",
2686
2683
  titleSearchLabel: L = "Work Order",
2687
2684
  withTitleLabels: D = !1
2688
2685
  }) => {
2689
2686
  const Z = (d == null ? void 0 : d.isShowLabel) ?? !0, [q, X] = G(!1), [M, k] = G(0), P = () => {
2690
2687
  k((f) => f + 1);
2691
- }, { searchParams: x, setSearchParams: $, getQueryParam: tA } = _A(), J = NA(x.toString()), m = Tt(e, x, g) || "", [Y, E] = G(m), I = tA(g), v = !!(I && !(() => {
2692
- if (I)
2688
+ }, { searchParams: x, setSearchParams: $, getQueryParam: eA } = _A(), J = NA(x.toString()), m = Tt(e, x, g) || "", [p, E] = G(m), u = eA(g), v = !!(u && !(() => {
2689
+ if (u)
2693
2690
  try {
2694
- const f = JSON.parse(I);
2691
+ const f = JSON.parse(u);
2695
2692
  return Object.keys(f).length === 1 && f[e] === "";
2696
2693
  } catch (f) {
2697
2694
  console.error("Filter parameter is not a valid JSON:", f);
2698
2695
  }
2699
2696
  return !1;
2700
- })()), H = eA("md");
2697
+ })()), H = tA("md");
2701
2698
  return V(() => {
2702
2699
  E(m);
2703
2700
  }, [m]), V(() => {
2704
- if (Y === m)
2701
+ if (p === m)
2705
2702
  return;
2706
2703
  const f = window.setTimeout(() => {
2707
2704
  le({
2708
- value: Y,
2705
+ value: p,
2709
2706
  name: e,
2710
2707
  type: "search",
2711
2708
  searchQueries: J,
@@ -2718,7 +2715,7 @@ const Lr = (e) => {
2718
2715
  window.clearTimeout(f);
2719
2716
  };
2720
2717
  }, [
2721
- Y,
2718
+ p,
2722
2719
  m,
2723
2720
  e,
2724
2721
  J,
@@ -2730,12 +2727,12 @@ const Lr = (e) => {
2730
2727
  {
2731
2728
  gap: "md",
2732
2729
  style: {
2733
- flexDirection: H && u === "left" ? "row" : H && u === "right" ? "row-reverse" : "column"
2730
+ flexDirection: H && I === "left" ? "row" : H && I === "right" ? "row-reverse" : "column"
2734
2731
  },
2735
2732
  align: "flex-end",
2736
2733
  children: [
2737
2734
  v && /* @__PURE__ */ A(C, { justify: "flex-end", children: /* @__PURE__ */ A(
2738
- p,
2735
+ Y,
2739
2736
  {
2740
2737
  onClick: () => {
2741
2738
  const f = new URLSearchParams(x);
@@ -2745,11 +2742,11 @@ const Lr = (e) => {
2745
2742
  children: /* @__PURE__ */ A(h, { color: "error", fontWeight: "semibold", children: "Reset" })
2746
2743
  }
2747
2744
  ) }),
2748
- r == null ? void 0 : r.map(({ minWidth: f, content: oA, title: nA, onClickContainer: uA }, aA) => /* @__PURE__ */ s(
2745
+ r == null ? void 0 : r.map(({ minWidth: f, content: oA, title: nA, onClickContainer: IA }, aA) => /* @__PURE__ */ s(
2749
2746
  C,
2750
2747
  {
2751
2748
  gap: "sm",
2752
- onClick: uA,
2749
+ onClick: IA,
2753
2750
  style: {
2754
2751
  minWidth: f
2755
2752
  },
@@ -2761,7 +2758,7 @@ const Lr = (e) => {
2761
2758
  `extended-filter-${aA}-${M}`
2762
2759
  )),
2763
2760
  !!(w != null && w.length) && /* @__PURE__ */ A(
2764
- p,
2761
+ Y,
2765
2762
  {
2766
2763
  primary: v,
2767
2764
  secondary: !v,
@@ -2771,7 +2768,7 @@ const Lr = (e) => {
2771
2768
  size: "sm",
2772
2769
  name: (d == null ? void 0 : d.icon) || "FilterHorizontal",
2773
2770
  style: {
2774
- color: I ? "var(--sa-background-brand, #04254f)" : "var(--sa-text-primary, #292a2e)"
2771
+ color: u ? "var(--sa-background-brand, #04254f)" : "var(--sa-text-primary, #292a2e)"
2775
2772
  }
2776
2773
  }
2777
2774
  ),
@@ -2856,7 +2853,7 @@ const Lr = (e) => {
2856
2853
  placeholder: i,
2857
2854
  leftIcon: /* @__PURE__ */ A(y, { name: "Search", width: 20, height: 20 }),
2858
2855
  onChange: (f) => E(f.target.value),
2859
- value: Y,
2856
+ value: p,
2860
2857
  fullWidth: !0
2861
2858
  },
2862
2859
  M + 1 + g
@@ -2909,7 +2906,7 @@ const Lr = (e) => {
2909
2906
  advanceFilter: t,
2910
2907
  showFilter: i = !0
2911
2908
  }) => {
2912
- const o = eA("md"), r = () => e ? Ie(e) ? e : /* @__PURE__ */ A(
2909
+ const o = tA("md"), r = () => e ? ue(e) ? e : /* @__PURE__ */ A(
2913
2910
  C,
2914
2911
  {
2915
2912
  style: {
@@ -2921,7 +2918,7 @@ const Lr = (e) => {
2921
2918
  },
2922
2919
  children: e.map(
2923
2920
  ({ title: c, icon: l, buttonProps: g, onClick: a }, B) => !c && !l ? null : /* @__PURE__ */ A(
2924
- p,
2921
+ Y,
2925
2922
  {
2926
2923
  fullWidth: !o,
2927
2924
  iconLeft: l ? /* @__PURE__ */ A(y, { name: l, size: "md" }) : void 0,
@@ -3007,7 +3004,7 @@ const Lr = (e) => {
3007
3004
  [i]: L,
3008
3005
  [t]: "1"
3009
3006
  });
3010
- }, d = (e == null ? void 0 : e.rangeStart) ?? (((e == null ? void 0 : e.currentPage) || 0) > 1 ? (((e == null ? void 0 : e.currentPage) || 0) - 1) * ((e == null ? void 0 : e.perPage) || 0) + 1 : 1), u = (e == null ? void 0 : e.rangeEnd) ?? ((e == null ? void 0 : e.totalCurrentPage) !== (e == null ? void 0 : e.perPage) ? e == null ? void 0 : e.totalData : ((e == null ? void 0 : e.currentPage) || 1) * ((e == null ? void 0 : e.totalCurrentPage) || 0));
3007
+ }, d = (e == null ? void 0 : e.rangeStart) ?? (((e == null ? void 0 : e.currentPage) || 0) > 1 ? (((e == null ? void 0 : e.currentPage) || 0) - 1) * ((e == null ? void 0 : e.perPage) || 0) + 1 : 1), I = (e == null ? void 0 : e.rangeEnd) ?? ((e == null ? void 0 : e.totalCurrentPage) !== (e == null ? void 0 : e.perPage) ? e == null ? void 0 : e.totalData : ((e == null ? void 0 : e.currentPage) || 1) * ((e == null ? void 0 : e.totalCurrentPage) || 0));
3011
3008
  return /* @__PURE__ */ A(
3012
3009
  C,
3013
3010
  {
@@ -3043,7 +3040,7 @@ const Lr = (e) => {
3043
3040
  defaultValue: B ? [{ label: `${B} per row`, value: B }] : [{ label: `${o} per row`, value: `${o}` }]
3044
3041
  }
3045
3042
  ),
3046
- /* @__PURE__ */ A(h, { children: `${d}-${u} of ${(e == null ? void 0 : e.totalData) || 0}` })
3043
+ /* @__PURE__ */ A(h, { children: `${d}-${I} of ${(e == null ? void 0 : e.totalData) || 0}` })
3047
3044
  ] }),
3048
3045
  /* @__PURE__ */ A(
3049
3046
  Ne,
@@ -3085,7 +3082,7 @@ const Lr = (e) => {
3085
3082
  };
3086
3083
  return i && document.addEventListener("mousedown", D), () => document.removeEventListener("mousedown", D);
3087
3084
  }, [i]);
3088
- const u = (D) => {
3085
+ const I = (D) => {
3089
3086
  const K = w.includes(D) ? w.filter((Z) => Z !== D) : [...w, D];
3090
3087
  e.onFilterChange(K);
3091
3088
  }, L = () => e.onFilterChange([]);
@@ -3110,7 +3107,7 @@ const Lr = (e) => {
3110
3107
  name: i ? "ChevronUp" : "ChevronDown",
3111
3108
  size: "sm",
3112
3109
  style: {
3113
- color: w.length > 0 ? "var(--sa-color-brand-500, #1a4fa0)" : "var(--sa-color-gray-600, #7d818a)"
3110
+ color: w.length > 0 ? "var(--sa-color-brand-500, #1a4fa0)" : "var(--sa-text-subtle, #8c8f97)"
3114
3111
  }
3115
3112
  }
3116
3113
  )
@@ -3147,7 +3144,7 @@ const Lr = (e) => {
3147
3144
  paddingBottom: "12px",
3148
3145
  paddingLeft: "16px",
3149
3146
  paddingRight: "16px",
3150
- borderBottom: "1px solid var(--sa-color-gray-100, #f8f8f8)"
3147
+ borderBottom: "1px solid var(--sa-border-subtle, #0b120e24)"
3151
3148
  },
3152
3149
  children: [
3153
3150
  /* @__PURE__ */ s(h, { fontSize: "sm", fontWeight: "semibold", color: "gray-700", children: [
@@ -3253,10 +3250,10 @@ const Lr = (e) => {
3253
3250
  backgroundColor: w.includes(D.value) ? "var(--sa-color-brand-50, #e6edf6)" : "transparent"
3254
3251
  },
3255
3252
  onClick: (K) => {
3256
- K.stopPropagation(), u(D.value);
3253
+ K.stopPropagation(), I(D.value);
3257
3254
  },
3258
3255
  onMouseEnter: (K) => {
3259
- w.includes(D.value) || (K.currentTarget.style.backgroundColor = "var(--sa-color-gray-50, #ffffff)"), K.currentTarget.style.transform = "translateX(2px)";
3256
+ w.includes(D.value) || (K.currentTarget.style.backgroundColor = "var(--sa-background-primary, #ffffff)"), K.currentTarget.style.transform = "translateX(2px)";
3260
3257
  },
3261
3258
  onMouseLeave: (K) => {
3262
3259
  K.currentTarget.style.backgroundColor = w.includes(D.value) ? "var(--sa-color-brand-50, #e6edf6)" : "transparent", K.currentTarget.style.transform = "translateX(0)";
@@ -3299,7 +3296,7 @@ const Lr = (e) => {
3299
3296
  {
3300
3297
  name: "Search",
3301
3298
  size: "lg",
3302
- style: { color: "var(--sa-color-gray-500, #8c8f97)" }
3299
+ style: { color: "var(--sa-text-subtle, #8c8f97)" }
3303
3300
  }
3304
3301
  ),
3305
3302
  /* @__PURE__ */ A(
@@ -3324,7 +3321,7 @@ const Lr = (e) => {
3324
3321
  paddingBottom: "8px",
3325
3322
  paddingLeft: "16px",
3326
3323
  paddingRight: "16px",
3327
- borderTop: "1px solid var(--sa-color-gray-100, #f8f8f8)",
3324
+ borderTop: "1px solid var(--sa-border-subtle, #0b120e24)",
3328
3325
  backgroundColor: "var(--sa-color-brand-50, #e6edf6)",
3329
3326
  marginTop: "auto"
3330
3327
  },
@@ -3371,7 +3368,7 @@ const Lr = (e) => {
3371
3368
  /* @__PURE__ */ A("path", { d: e ? "M7 11V7a5 5 0 0 1 10 0v4" : "M7 11V7a5 5 0 0 1 9.9-1" })
3372
3369
  ]
3373
3370
  }
3374
- ), FA = "var(--sa-background-primary, #ffffff)", TA = "var(--sa-color-gray-100, #f8f8f8)", _t = ({
3371
+ ), FA = "var(--sa-background-primary, #ffffff)", TA = "var(--sa-background-primary-inverse, #f8f8f8)", _t = ({
3375
3372
  columns: e,
3376
3373
  records: t,
3377
3374
  handleDetail: i,
@@ -3385,33 +3382,33 @@ const Lr = (e) => {
3385
3382
  scrollParentRef: Q,
3386
3383
  frozenCount: w = 0,
3387
3384
  onFrozenCountChange: d,
3388
- customActions: u,
3385
+ customActions: I,
3389
3386
  actionsOrder: L = ["detail", "update", "delete", "custom"],
3390
3387
  customEmptyState: D
3391
3388
  }) => {
3392
- const Z = [i, o, r].filter((m) => m !== void 0).length, q = !!u, X = Z === 3 ? q ? "178px" : "140px" : Z === 2 ? q ? "140px" : "102px" : Z === 1 ? q ? "112px" : "74px" : q ? "74px" : "", M = (m, Y) => {
3393
- if (!Y) return m;
3394
- if (typeof Y == "function") return Y(m);
3395
- if (typeof Y == "string") return m[Y];
3389
+ const Z = [i, o, r].filter((m) => m !== void 0).length, q = !!I, X = Z === 3 ? q ? "178px" : "140px" : Z === 2 ? q ? "140px" : "102px" : Z === 1 ? q ? "112px" : "74px" : q ? "74px" : "", M = (m, p) => {
3390
+ if (!p) return m;
3391
+ if (typeof p == "function") return p(m);
3392
+ if (typeof p == "string") return m[p];
3396
3393
  }, [k, P] = G(!1);
3397
3394
  V(() => {
3398
3395
  if (!(Q != null && Q.current)) return;
3399
3396
  const m = Q.current;
3400
3397
  P(m.scrollHeight > m.clientHeight);
3401
3398
  }, [t, Q]);
3402
- const x = cA(null), [$, tA] = G([]);
3399
+ const x = cA(null), [$, eA] = G([]);
3403
3400
  WA(() => {
3404
3401
  if (!w || !x.current) {
3405
- tA([]);
3402
+ eA([]);
3406
3403
  return;
3407
3404
  }
3408
3405
  const m = Array.from(
3409
3406
  x.current.querySelectorAll("thead tr th")
3410
- ), Y = [];
3407
+ ), p = [];
3411
3408
  let E = 0;
3412
- m.forEach((I, N) => {
3413
- Y[N] = E, N < w && (E += I.offsetWidth);
3414
- }), tA(Y);
3409
+ m.forEach((u, N) => {
3410
+ p[N] = E, N < w && (E += u.offsetWidth);
3411
+ }), eA(p);
3415
3412
  }, [w, e, t]);
3416
3413
  const J = (m) => {
3417
3414
  d && d(m < w ? m : m + 1);
@@ -3425,22 +3422,22 @@ const Lr = (e) => {
3425
3422
  whiteSpace: "nowrap"
3426
3423
  },
3427
3424
  children: /* @__PURE__ */ s(kA, { children: [
3428
- e.map((m, Y) => {
3425
+ e.map((m, p) => {
3429
3426
  var N;
3430
- const E = w > 0 && Y < w, I = $[Y] ?? 0;
3427
+ const E = w > 0 && p < w, u = $[p] ?? 0;
3431
3428
  return /* @__PURE__ */ A(
3432
3429
  Ae,
3433
3430
  {
3434
3431
  style: {
3435
3432
  position: "sticky",
3436
3433
  top: 0,
3437
- left: E ? I : void 0,
3434
+ left: E ? u : void 0,
3438
3435
  zIndex: E ? 4 : 2,
3439
- paddingLeft: Y === 0 ? "12px" : "",
3436
+ paddingLeft: p === 0 ? "12px" : "",
3440
3437
  borderRight: B ? "1px solid var(--sa-border-subtle, #0b120e24)" : void 0,
3441
3438
  borderBottom: B ? "1px solid var(--sa-border-subtle, #0b120e24)" : void 0,
3442
3439
  width: m.width,
3443
- backgroundColor: "var(--sa-color-gray-100, #f8f8f8)",
3440
+ backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
3444
3441
  textAlign: m.textAlign === "text-right" ? "right" : m.textAlign === "text-center" ? "center" : "left"
3445
3442
  },
3446
3443
  children: /* @__PURE__ */ s(
@@ -3465,7 +3462,7 @@ const Lr = (e) => {
3465
3462
  d && /* @__PURE__ */ A(
3466
3463
  "button",
3467
3464
  {
3468
- onClick: () => J(Y),
3465
+ onClick: () => J(p),
3469
3466
  title: E ? "Unfreeze column" : "Freeze column",
3470
3467
  style: {
3471
3468
  background: "none",
@@ -3475,7 +3472,7 @@ const Lr = (e) => {
3475
3472
  display: "flex",
3476
3473
  alignItems: "center",
3477
3474
  flexShrink: 0,
3478
- color: E ? "var(--sa-background-brand, #04254f)" : "var(--sa-color-gray-500, #8c8f97)",
3475
+ color: E ? "var(--sa-background-brand, #04254f)" : "var(--sa-text-subtle, #8c8f97)",
3479
3476
  opacity: E ? 1 : 0.45,
3480
3477
  transition: "opacity 0.15s"
3481
3478
  },
@@ -3486,14 +3483,14 @@ const Lr = (e) => {
3486
3483
  }
3487
3484
  )
3488
3485
  },
3489
- `table-head-${Y}`
3486
+ `table-head-${p}`
3490
3487
  );
3491
3488
  }),
3492
- i || o || r || u ? /* @__PURE__ */ A(
3489
+ i || o || r || I ? /* @__PURE__ */ A(
3493
3490
  Ae,
3494
3491
  {
3495
3492
  style: {
3496
- backgroundColor: "var(--sa-color-gray-100, #f8f8f8)",
3493
+ backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
3497
3494
  position: "sticky",
3498
3495
  top: 0,
3499
3496
  right: 0,
@@ -3511,33 +3508,33 @@ const Lr = (e) => {
3511
3508
  /* @__PURE__ */ A(dA, { variant: "list" }),
3512
3509
  /* @__PURE__ */ A(dA, { variant: "list" }),
3513
3510
  /* @__PURE__ */ A(dA, { variant: "list" })
3514
- ] }) }) }) : !(t != null && t.length) && D ? /* @__PURE__ */ A(kA, { children: /* @__PURE__ */ A(hA, { colSpan: e.length + 1, children: D }) }) : t == null ? void 0 : t.map((m, Y) => /* @__PURE__ */ s(
3511
+ ] }) }) }) : !(t != null && t.length) && D ? /* @__PURE__ */ A(kA, { children: /* @__PURE__ */ A(hA, { colSpan: e.length + 1, children: D }) }) : t == null ? void 0 : t.map((m, p) => /* @__PURE__ */ s(
3515
3512
  kA,
3516
3513
  {
3517
3514
  style: {
3518
3515
  transition: "background-color 0.3s ease",
3519
3516
  padding: 0,
3520
- borderBottom: Y === t.length - 1 && k ? void 0 : "1px solid var(--sa-border-subtle, #0b120e24)"
3517
+ borderBottom: p === t.length - 1 && k ? void 0 : "1px solid var(--sa-border-subtle, #0b120e24)"
3521
3518
  },
3522
3519
  onMouseOver: (E) => {
3523
- const I = E.currentTarget;
3524
- I.style.backgroundColor = TA, I.style.position = "relative", I.style.zIndex = "2", w > 0 && Array.from(I.querySelectorAll("td")).slice(0, w).forEach((v) => {
3520
+ const u = E.currentTarget;
3521
+ u.style.backgroundColor = TA, u.style.position = "relative", u.style.zIndex = "2", w > 0 && Array.from(u.querySelectorAll("td")).slice(0, w).forEach((v) => {
3525
3522
  v.style.backgroundColor = TA;
3526
3523
  });
3527
- const N = Array.from(I.querySelectorAll("td")).at(-1);
3524
+ const N = Array.from(u.querySelectorAll("td")).at(-1);
3528
3525
  N && N.style.position === "sticky" && (N.style.backgroundColor = TA);
3529
3526
  },
3530
3527
  onMouseOut: (E) => {
3531
- const I = E.currentTarget;
3532
- I.style.backgroundColor = "", I.style.position = "", I.style.zIndex = "", w > 0 && Array.from(I.querySelectorAll("td")).slice(0, w).forEach((v) => {
3528
+ const u = E.currentTarget;
3529
+ u.style.backgroundColor = "", u.style.position = "", u.style.zIndex = "", w > 0 && Array.from(u.querySelectorAll("td")).slice(0, w).forEach((v) => {
3533
3530
  v.style.backgroundColor = FA;
3534
3531
  });
3535
- const N = Array.from(I.querySelectorAll("td")).at(-1);
3532
+ const N = Array.from(u.querySelectorAll("td")).at(-1);
3536
3533
  N && N.style.position === "sticky" && (N.style.backgroundColor = FA);
3537
3534
  },
3538
3535
  children: [
3539
- e.map((E, I) => {
3540
- const N = E.render ? E.render(m, Y, t) : M(m, E.accessor), v = w > 0 && I < w, H = $[I] ?? 0;
3536
+ e.map((E, u) => {
3537
+ const N = E.render ? E.render(m, p, t) : M(m, E.accessor), v = w > 0 && u < w, H = $[u] ?? 0;
3541
3538
  return /* @__PURE__ */ A(
3542
3539
  hA,
3543
3540
  {
@@ -3546,7 +3543,7 @@ const Lr = (e) => {
3546
3543
  left: v ? H : void 0,
3547
3544
  zIndex: v ? 1 : void 0,
3548
3545
  backgroundColor: v ? FA : void 0,
3549
- paddingLeft: I === 0 ? "12px" : "",
3546
+ paddingLeft: u === 0 ? "12px" : "",
3550
3547
  whiteSpace: "nowrap",
3551
3548
  borderLeft: E.showBorderLeft ? "1px solid var(--sa-border-subtle, #0b120e24)" : void 0,
3552
3549
  borderRight: E.showBorderRight ? "1px solid var(--sa-border-subtle, #0b120e24)" : void 0,
@@ -3565,46 +3562,46 @@ const Lr = (e) => {
3565
3562
  }
3566
3563
  ) : N
3567
3564
  },
3568
- `row-${Y}-col-${I}`
3565
+ `row-${p}-col-${u}`
3569
3566
  );
3570
3567
  }),
3571
- i || o || r || u ? /* @__PURE__ */ A(hA, { style: {
3568
+ i || o || r || I ? /* @__PURE__ */ A(hA, { style: {
3572
3569
  width: X,
3573
3570
  position: "sticky",
3574
3571
  right: 0,
3575
3572
  zIndex: 1,
3576
3573
  backgroundColor: FA
3577
3574
  }, children: /* @__PURE__ */ A(W, { direction: "row", align: "center", justify: "center", gap: "sm", children: L.map((E) => {
3578
- const I = Y === t.length - 1 ? "top" : "bottom";
3579
- return E === "detail" && i && (a == null ? void 0 : a(m)) !== !1 ? /* @__PURE__ */ A(lA, { label: "Detail", position: I, children: /* @__PURE__ */ A(
3580
- p,
3575
+ const u = p === t.length - 1 ? "top" : "bottom";
3576
+ return E === "detail" && i && (a == null ? void 0 : a(m)) !== !1 ? /* @__PURE__ */ A(lA, { label: "Detail", position: u, children: /* @__PURE__ */ A(
3577
+ Y,
3581
3578
  {
3582
3579
  size: "xs",
3583
3580
  secondary: !0,
3584
3581
  onClick: () => i(m.id, m),
3585
- iconLeft: /* @__PURE__ */ A(y, { name: "DocumentClean", size: "sm", style: { color: "var(--sa-color-gray-600, #7d818a)" } })
3582
+ iconLeft: /* @__PURE__ */ A(y, { name: "DocumentClean", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
3586
3583
  }
3587
- ) }, "detail") : E === "update" && o && (g == null ? void 0 : g(m)) !== !1 ? /* @__PURE__ */ A(lA, { label: "Update", position: I, children: /* @__PURE__ */ A(
3588
- p,
3584
+ ) }, "detail") : E === "update" && o && (g == null ? void 0 : g(m)) !== !1 ? /* @__PURE__ */ A(lA, { label: "Update", position: u, children: /* @__PURE__ */ A(
3585
+ Y,
3589
3586
  {
3590
3587
  size: "xs",
3591
3588
  secondary: !0,
3592
3589
  onClick: () => o(m),
3593
- iconLeft: /* @__PURE__ */ A(y, { name: "Edit1", size: "sm", style: { color: "var(--sa-color-gray-600, #7d818a)" } })
3590
+ iconLeft: /* @__PURE__ */ A(y, { name: "Edit1", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
3594
3591
  }
3595
- ) }, "update") : E === "delete" && r && (l == null ? void 0 : l(m)) !== !1 ? /* @__PURE__ */ A(lA, { label: "Delete", position: I, children: /* @__PURE__ */ A(
3596
- p,
3592
+ ) }, "update") : E === "delete" && r && (l == null ? void 0 : l(m)) !== !1 ? /* @__PURE__ */ A(lA, { label: "Delete", position: u, children: /* @__PURE__ */ A(
3593
+ Y,
3597
3594
  {
3598
3595
  size: "xs",
3599
3596
  secondary: !0,
3600
3597
  onClick: () => r(m.id, m),
3601
3598
  iconLeft: /* @__PURE__ */ A(y, { name: "Trash1", size: "sm", style: { color: "var(--sa-color-error-600, #c9184a)" } })
3602
3599
  }
3603
- ) }, "delete") : E === "custom" ? /* @__PURE__ */ A(wA.Fragment, { children: u == null ? void 0 : u(m) }, "custom") : null;
3600
+ ) }, "delete") : E === "custom" ? /* @__PURE__ */ A(wA.Fragment, { children: I == null ? void 0 : I(m) }, "custom") : null;
3604
3601
  }) }) }) : null
3605
3602
  ]
3606
3603
  },
3607
- `${m}${Y}`
3604
+ `${m}${p}`
3608
3605
  )) })
3609
3606
  ] }) });
3610
3607
  }, Ai = ({
@@ -3965,12 +3962,12 @@ const Zr = ei(Ai), xA = ({
3965
3962
  vA,
3966
3963
  {
3967
3964
  dataApps: (w = (Q = l.data) == null ? void 0 : Q.organizations) == null ? void 0 : w.map((d) => {
3968
- var u;
3965
+ var I;
3969
3966
  return {
3970
3967
  ...d,
3971
3968
  id: d.id,
3972
3969
  isTenant: !0,
3973
- applicationKey: ((u = l.data) == null ? void 0 : u.applicationKey) || ""
3970
+ applicationKey: ((I = l.data) == null ? void 0 : I.applicationKey) || ""
3974
3971
  };
3975
3972
  }),
3976
3973
  handleSwitch: o,
@@ -4059,7 +4056,7 @@ const Zr = ei(Ai), xA = ({
4059
4056
  name: "GridApplication",
4060
4057
  size: "lg",
4061
4058
  style: {
4062
- color: "var(--sa-color-gray-1100, #1e1f21)"
4059
+ color: "var(--sa-text-primary, #292a2e)"
4063
4060
  }
4064
4061
  }
4065
4062
  ),
@@ -4499,7 +4496,7 @@ const ai = (e) => {
4499
4496
  ] })
4500
4497
  ] }),
4501
4498
  /* @__PURE__ */ A(
4502
- p,
4499
+ Y,
4503
4500
  {
4504
4501
  size: "xs",
4505
4502
  secondary: !0,
@@ -4529,7 +4526,7 @@ const ai = (e) => {
4529
4526
  return;
4530
4527
  }
4531
4528
  i.current && i.current.click();
4532
- }, r = eA("md");
4529
+ }, r = tA("md");
4533
4530
  return /* @__PURE__ */ s(R, { children: [
4534
4531
  /* @__PURE__ */ A(
4535
4532
  "input",
@@ -4760,7 +4757,7 @@ const ai = (e) => {
4760
4757
  name: d.name,
4761
4758
  value: d.id,
4762
4759
  checked: d.isChecked,
4763
- onChange: (u) => c.onChecked(u.target.value, d),
4760
+ onChange: (I) => c.onChecked(I.target.value, d),
4764
4761
  label: d.name,
4765
4762
  description: d.description
4766
4763
  }
@@ -4774,7 +4771,7 @@ const ai = (e) => {
4774
4771
  name: d.name,
4775
4772
  value: d.id,
4776
4773
  checked: d.isChecked,
4777
- onChange: (u) => c.onChecked(u.target.value, d),
4774
+ onChange: (I) => c.onChecked(I.target.value, d),
4778
4775
  label: d.name,
4779
4776
  description: d.description
4780
4777
  }
@@ -5036,9 +5033,9 @@ const ai = (e) => {
5036
5033
  ...i
5037
5034
  }) => {
5038
5035
  const o = VA(), r = (l) => {
5039
- var a, B, Q, w, d, u;
5036
+ var a, B, Q, w, d, I;
5040
5037
  if (!l) return;
5041
- const g = i.disabled ? "var(--sa-text-disable, #181a198f)" : e === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : e === "secondary-danger" ? (B = (a = o == null ? void 0 : o.computed) == null ? void 0 : a.red) == null ? void 0 : B[600] : e === "secondary-primary" ? (w = (Q = o == null ? void 0 : o.computed) == null ? void 0 : Q.blue) == null ? void 0 : w[700] : (u = (d = o == null ? void 0 : o.computed) == null ? void 0 : d.gray) == null ? void 0 : u[50];
5038
+ const g = i.disabled ? "var(--sa-text-disable, #181a198f)" : e === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : e === "secondary-danger" ? (B = (a = o == null ? void 0 : o.computed) == null ? void 0 : a.red) == null ? void 0 : B[600] : e === "secondary-primary" ? (w = (Q = o == null ? void 0 : o.computed) == null ? void 0 : Q.blue) == null ? void 0 : w[700] : (I = (d = o == null ? void 0 : o.computed) == null ? void 0 : d.gray) == null ? void 0 : I[50];
5042
5039
  return /* @__PURE__ */ A(y, { name: l, size: t, style: { color: g } });
5043
5040
  }, c = () => {
5044
5041
  var g, a, B, Q;
@@ -5060,7 +5057,7 @@ const ai = (e) => {
5060
5057
  }
5061
5058
  };
5062
5059
  return /* @__PURE__ */ A(
5063
- p,
5060
+ Y,
5064
5061
  {
5065
5062
  fullWidth: !0,
5066
5063
  disabled: i.disabled,
@@ -5075,7 +5072,7 @@ const ai = (e) => {
5075
5072
  children: c()
5076
5073
  }
5077
5074
  );
5078
- }, Ii = (e) => /* @__PURE__ */ A(
5075
+ }, ui = (e) => /* @__PURE__ */ A(
5079
5076
  U.H5,
5080
5077
  {
5081
5078
  props: {
@@ -5083,7 +5080,7 @@ const ai = (e) => {
5083
5080
  },
5084
5081
  children: e.title
5085
5082
  }
5086
- ), ui = ({
5083
+ ), Ii = ({
5087
5084
  size: e = "md",
5088
5085
  direction: t = "vertical",
5089
5086
  requiredTitle: i = "(Required)",
@@ -5223,7 +5220,7 @@ const ge = {
5223
5220
  maxFileSize: a = 2,
5224
5221
  onError: B
5225
5222
  }, Q) => {
5226
- const w = eA("md"), [d, u] = G(!1), [L, D] = G(null), [K, Z] = G(!1), [q, X] = G({ x: 0, y: 0 }), [M, k] = G(1), [P, x] = G(null);
5223
+ const w = tA("md"), [d, I] = G(!1), [L, D] = G(null), [K, Z] = G(!1), [q, X] = G({ x: 0, y: 0 }), [M, k] = G(1), [P, x] = G(null);
5227
5224
  V(() => {
5228
5225
  t === null && r(null);
5229
5226
  }, [t]);
@@ -5232,7 +5229,7 @@ const ge = {
5232
5229
  x(f);
5233
5230
  },
5234
5231
  []
5235
- ), tA = (H) => {
5232
+ ), eA = (H) => {
5236
5233
  var nA;
5237
5234
  const f = (nA = H.target.files) == null ? void 0 : nA[0];
5238
5235
  if (!f) return;
@@ -5254,7 +5251,7 @@ const ge = {
5254
5251
  } catch {
5255
5252
  B == null || B("Gagal memproses gambar");
5256
5253
  }
5257
- }, m = cA(null), Y = () => {
5254
+ }, m = cA(null), p = () => {
5258
5255
  m.current && m.current.click();
5259
5256
  };
5260
5257
  Ue(Q, () => ({
@@ -5263,9 +5260,9 @@ const ge = {
5263
5260
  (H = m.current) == null || H.click();
5264
5261
  }
5265
5262
  }));
5266
- const E = parseInt(c, 10), I = ge[l];
5263
+ const E = parseInt(c, 10), u = ge[l];
5267
5264
  let N, v;
5268
- return I >= 1 ? (v = E, N = E * I) : (N = E, v = E / I), /* @__PURE__ */ s(
5265
+ return u >= 1 ? (v = E, N = E * u) : (N = E, v = E / u), /* @__PURE__ */ s(
5269
5266
  C,
5270
5267
  {
5271
5268
  display: "flex",
@@ -5281,11 +5278,11 @@ const ge = {
5281
5278
  style: {
5282
5279
  width: g != null && g.fullWidth ? "100%" : `${N}px`,
5283
5280
  height: g != null && g.fullWidth ? "auto" : `${v}px`,
5284
- aspectRatio: I,
5281
+ aspectRatio: u,
5285
5282
  flexShrink: 0
5286
5283
  },
5287
- onMouseEnter: () => u(!0),
5288
- onMouseLeave: () => u(!1),
5284
+ onMouseEnter: () => I(!0),
5285
+ onMouseLeave: () => I(!1),
5289
5286
  children: [
5290
5287
  o || t ? /* @__PURE__ */ A(
5291
5288
  "img",
@@ -5311,7 +5308,7 @@ const ge = {
5311
5308
  {
5312
5309
  name: "Image",
5313
5310
  style: {
5314
- color: "var(--sa-color-gray-500, #8c8f97)",
5311
+ color: "var(--sa-text-subtle, #8c8f97)",
5315
5312
  width: Number(c) / 2 < 40 ? Number(c) / 2 : 40,
5316
5313
  height: Number(c) / 2 < 40 ? Number(c) / 2 : 40
5317
5314
  }
@@ -5333,7 +5330,7 @@ const ge = {
5333
5330
  opacity: d ? 1 : 0,
5334
5331
  transition: "opacity 0.3s ease-in-out"
5335
5332
  },
5336
- onClick: Y,
5333
+ onClick: p,
5337
5334
  children: [
5338
5335
  /* @__PURE__ */ A(
5339
5336
  "input",
@@ -5341,7 +5338,7 @@ const ge = {
5341
5338
  ref: m,
5342
5339
  type: "file",
5343
5340
  accept: "image/*",
5344
- onChange: tA,
5341
+ onChange: eA,
5345
5342
  disabled: i,
5346
5343
  style: { display: "none" }
5347
5344
  }
@@ -5351,7 +5348,7 @@ const ge = {
5351
5348
  y,
5352
5349
  {
5353
5350
  name: "Edit3",
5354
- style: { color: "var(--sa-color-gray-50, #ffffff)" }
5351
+ style: { color: "var(--sa-background-primary, #ffffff)" }
5355
5352
  }
5356
5353
  ),
5357
5354
  /* @__PURE__ */ A(j, { condition: c.toNumber() > 80, children: /* @__PURE__ */ A(
@@ -5429,9 +5426,9 @@ const ge = {
5429
5426
  )
5430
5427
  }
5431
5428
  ) }),
5432
- /* @__PURE__ */ A(pA, { children: /* @__PURE__ */ s(C, { justify: "flex-end", direction: "row", gap: "sm", children: [
5433
- /* @__PURE__ */ A(p, { size: "xs", secondary: !0, onClick: () => Z(!1), children: "Cancel" }),
5434
- /* @__PURE__ */ A(p, { size: "xs", primary: !0, onClick: J, children: "Crop" })
5429
+ /* @__PURE__ */ A(YA, { children: /* @__PURE__ */ s(C, { justify: "flex-end", direction: "row", gap: "sm", children: [
5430
+ /* @__PURE__ */ A(Y, { size: "xs", secondary: !0, onClick: () => Z(!1), children: "Cancel" }),
5431
+ /* @__PURE__ */ A(Y, { size: "xs", primary: !0, onClick: J, children: "Crop" })
5435
5432
  ] }) })
5436
5433
  ]
5437
5434
  }
@@ -5634,8 +5631,8 @@ const ge = {
5634
5631
  InputTextArea: Qi,
5635
5632
  ToggleForm: hi,
5636
5633
  ActionButton: Di,
5637
- FormTitle: Ii,
5638
- InputDate: ui,
5634
+ FormTitle: ui,
5635
+ InputDate: Ii,
5639
5636
  InputImgFile: Mi,
5640
5637
  Custom: mi
5641
5638
  }, yi = ({ customBottom: e }) => {
@@ -5665,7 +5662,7 @@ const ge = {
5665
5662
  transition: "transform 0.2s ease-in-out"
5666
5663
  },
5667
5664
  children: /* @__PURE__ */ A(
5668
- p,
5665
+ Y,
5669
5666
  {
5670
5667
  secondary: !0,
5671
5668
  size: "xs",
@@ -5689,7 +5686,7 @@ const ge = {
5689
5686
  }
5690
5687
  );
5691
5688
  }, Tr = ({ pageLayout: e, children: t }) => {
5692
- const i = eA("lg");
5689
+ const i = tA("lg");
5693
5690
  return /* @__PURE__ */ s(
5694
5691
  C,
5695
5692
  {
@@ -5707,7 +5704,6 @@ const ge = {
5707
5704
  {
5708
5705
  show: "desktop",
5709
5706
  variant: "aside",
5710
- bg: "gray-50",
5711
5707
  position: "fixed",
5712
5708
  top: "top-0",
5713
5709
  bottom: "bottom-0",
@@ -5715,6 +5711,7 @@ const ge = {
5715
5711
  customWidth: 240,
5716
5712
  style: {
5717
5713
  marginTop: 57,
5714
+ backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
5718
5715
  borderColor: "var(--sa-border-subtle, #0b120e24)"
5719
5716
  },
5720
5717
  borderStyle: "border-solid-l",
@@ -5771,7 +5768,7 @@ const ge = {
5771
5768
  }
5772
5769
  ) }), fi = ({ title: e, value: t, icon: i }) => /* @__PURE__ */ s(C, { display: "flex", direction: "column", gap: "sm", children: [
5773
5770
  i ? /* @__PURE__ */ s(C, { display: "flex", direction: "row", align: "center", gap: "xs", children: [
5774
- /* @__PURE__ */ A(y, { name: i, color: "var(--sa-color-gray-400, #b7b9be)" }),
5771
+ /* @__PURE__ */ A(y, { name: i, color: "var(--sa-text-subtle, #8c8f97)" }),
5775
5772
  /* @__PURE__ */ A(h, { color: "gray-500", variant: "sub-h3", children: e })
5776
5773
  ] }) : /* @__PURE__ */ A(h, { color: "gray-500", variant: "sub-h3", children: e }),
5777
5774
  typeof t == "string" ? /* @__PURE__ */ A(h, { variant: "sub-h3", children: t }) : t
@@ -5937,9 +5934,9 @@ const Wr = ({
5937
5934
  const Q = () => {
5938
5935
  switch (o) {
5939
5936
  case "primary":
5940
- return /* @__PURE__ */ A(R, { children: c ? /* @__PURE__ */ A(p, { primary: !0, iconLeft: c, onClick: i, children: a || e }) : /* @__PURE__ */ A(p, { primary: !0, onClick: i, children: a || e }) });
5937
+ return /* @__PURE__ */ A(R, { children: c ? /* @__PURE__ */ A(Y, { primary: !0, iconLeft: c, onClick: i, children: a || e }) : /* @__PURE__ */ A(Y, { primary: !0, onClick: i, children: a || e }) });
5941
5938
  case "secondary":
5942
- return /* @__PURE__ */ A(R, { children: c ? /* @__PURE__ */ A(p, { secondary: !0, iconLeft: c, onClick: i, children: r ? /* @__PURE__ */ A(
5939
+ return /* @__PURE__ */ A(R, { children: c ? /* @__PURE__ */ A(Y, { secondary: !0, iconLeft: c, onClick: i, children: r ? /* @__PURE__ */ A(
5943
5940
  h,
5944
5941
  {
5945
5942
  fontFamily: "Poppins",
@@ -5948,11 +5945,11 @@ const Wr = ({
5948
5945
  style: { color: "var(--sa-background-success, #28ac6e)" },
5949
5946
  children: a || e
5950
5947
  }
5951
- ) : e }) : /* @__PURE__ */ A(p, { secondary: !0, onClick: i, children: a || e }) });
5948
+ ) : e }) : /* @__PURE__ */ A(Y, { secondary: !0, onClick: i, children: a || e }) });
5952
5949
  case "success":
5953
- return /* @__PURE__ */ A(R, { children: c ? /* @__PURE__ */ A(p, { success: !0, iconLeft: c, onClick: i, children: a || e }) : /* @__PURE__ */ A(p, { success: !0, onClick: i, children: a || e }) });
5950
+ return /* @__PURE__ */ A(R, { children: c ? /* @__PURE__ */ A(Y, { success: !0, iconLeft: c, onClick: i, children: a || e }) : /* @__PURE__ */ A(Y, { success: !0, onClick: i, children: a || e }) });
5954
5951
  default:
5955
- return /* @__PURE__ */ A(R, { children: c ? /* @__PURE__ */ A(p, { primary: !0, iconLeft: c, onClick: i, children: a || e }) : /* @__PURE__ */ A(p, { primary: !0, onClick: i, children: a || e }) });
5952
+ return /* @__PURE__ */ A(R, { children: c ? /* @__PURE__ */ A(Y, { primary: !0, iconLeft: c, onClick: i, children: a || e }) : /* @__PURE__ */ A(Y, { primary: !0, onClick: i, children: a || e }) });
5956
5953
  }
5957
5954
  };
5958
5955
  return /* @__PURE__ */ s(
@@ -6197,7 +6194,7 @@ function Si({ width: e, height: t }) {
6197
6194
  ) });
6198
6195
  }
6199
6196
  function Rr({ onClick: e }) {
6200
- const t = eA("md");
6197
+ const t = tA("md");
6201
6198
  return /* @__PURE__ */ s(
6202
6199
  C,
6203
6200
  {
@@ -6227,7 +6224,7 @@ function Rr({ onClick: e }) {
6227
6224
  children: "Sorry, we couldn't find the page you are looking for"
6228
6225
  }
6229
6226
  ),
6230
- e && /* @__PURE__ */ A(p, { size: t ? "md" : "xs", onClick: e, children: "Go Back" })
6227
+ e && /* @__PURE__ */ A(Y, { size: t ? "md" : "xs", onClick: e, children: "Go Back" })
6231
6228
  ]
6232
6229
  }
6233
6230
  );
@@ -6469,7 +6466,7 @@ function bi({ width: e, height: t }) {
6469
6466
  ) });
6470
6467
  }
6471
6468
  function Pr({ onClick: e }) {
6472
- const t = eA("md");
6469
+ const t = tA("md");
6473
6470
  return /* @__PURE__ */ s(
6474
6471
  C,
6475
6472
  {
@@ -6482,7 +6479,7 @@ function Pr({ onClick: e }) {
6482
6479
  children: [
6483
6480
  /* @__PURE__ */ A(bi, { width: t ? 600 : 300 }),
6484
6481
  /* @__PURE__ */ A(h, { fontWeight: "bold", fontSize: t ? "3xl" : "2xl", children: "We Are Sorry ..." }),
6485
- e && /* @__PURE__ */ A(p, { size: t ? "md" : "xs", onClick: e, children: "Go Back" })
6482
+ e && /* @__PURE__ */ A(Y, { size: t ? "md" : "xs", onClick: e, children: "Go Back" })
6486
6483
  ]
6487
6484
  }
6488
6485
  );
@@ -7177,7 +7174,7 @@ function Fi({ width: e, height: t }) {
7177
7174
  ) });
7178
7175
  }
7179
7176
  function Vr({ onClick: e }) {
7180
- const t = eA("md");
7177
+ const t = tA("md");
7181
7178
  return /* @__PURE__ */ s(
7182
7179
  C,
7183
7180
  {
@@ -7208,14 +7205,14 @@ function Vr({ onClick: e }) {
7208
7205
  children: "we are trying to fix the problem"
7209
7206
  }
7210
7207
  ),
7211
- e && /* @__PURE__ */ A(p, { size: t ? "md" : "xs", onClick: e, children: "Go Back" })
7208
+ e && /* @__PURE__ */ A(Y, { size: t ? "md" : "xs", onClick: e, children: "Go Back" })
7212
7209
  ]
7213
7210
  }
7214
7211
  );
7215
7212
  }
7216
7213
  const Xr = (e) => {
7217
7214
  var i, o, r, c, l;
7218
- const t = eA("md");
7215
+ const t = tA("md");
7219
7216
  return /* @__PURE__ */ s(
7220
7217
  mA,
7221
7218
  {
@@ -7229,9 +7226,9 @@ const Xr = (e) => {
7229
7226
  }
7230
7227
  },
7231
7228
  children: [
7232
- /* @__PURE__ */ A(IA, { ...e.dialogTitleProps, children: typeof e.title == "string" ? /* @__PURE__ */ A(h, { fontSize: "lg", fontWeight: "medium", children: e.title }) : e.title }),
7229
+ /* @__PURE__ */ A(uA, { ...e.dialogTitleProps, children: typeof e.title == "string" ? /* @__PURE__ */ A(h, { fontSize: "lg", fontWeight: "medium", children: e.title }) : e.title }),
7233
7230
  /* @__PURE__ */ A(yA, { children: typeof e.description == "string" ? /* @__PURE__ */ A(h, { fontSize: "md", lineHeight: "leading-6", color: "tertiary", children: e.description }) : e.description }),
7234
- /* @__PURE__ */ A(pA, { children: /* @__PURE__ */ A(
7231
+ /* @__PURE__ */ A(YA, { children: /* @__PURE__ */ A(
7235
7232
  C,
7236
7233
  {
7237
7234
  display: "flex",
@@ -7247,7 +7244,7 @@ const Xr = (e) => {
7247
7244
  gap: ((l = e.wrapperConfirmBtnProps) == null ? void 0 : l.gap) || "sm",
7248
7245
  ...e.wrapperConfirmBtnProps,
7249
7246
  children: [
7250
- e.onCancel && /* @__PURE__ */ A(p, { secondary: !0, onClick: e.onCancel, size: "md", fullWidth: !0, children: e.titleCancelBtn || "Cancel" }),
7247
+ e.onCancel && /* @__PURE__ */ A(Y, { secondary: !0, onClick: e.onCancel, size: "md", fullWidth: !0, children: e.titleCancelBtn || "Cancel" }),
7251
7248
  /* @__PURE__ */ A(
7252
7249
  C,
7253
7250
  {
@@ -7256,7 +7253,7 @@ const Xr = (e) => {
7256
7253
  textWrap: "nowrap"
7257
7254
  },
7258
7255
  children: /* @__PURE__ */ A(
7259
- p,
7256
+ Y,
7260
7257
  {
7261
7258
  ...e.buttonConfirmProps,
7262
7259
  onClick: e.onConfirm,
@@ -7291,7 +7288,7 @@ const Xr = (e) => {
7291
7288
  action: Q,
7292
7289
  actionContainer: w,
7293
7290
  containerProps: d,
7294
- bodyProps: u,
7291
+ bodyProps: I,
7295
7292
  headerProps: L = { borderBottom: !0 },
7296
7293
  footerProps: D = { borderTop: !0 },
7297
7294
  variantTag: K = "info"
@@ -7315,7 +7312,7 @@ const Xr = (e) => {
7315
7312
  direction: "row",
7316
7313
  justify: "space-between",
7317
7314
  align: "flex-start",
7318
- gap: "lg",
7315
+ gap: "md",
7319
7316
  children: [
7320
7317
  /* @__PURE__ */ A(C, { children: a ? M() : null }),
7321
7318
  /* @__PURE__ */ A(C, { ...w, children: Q ?? null })
@@ -7345,11 +7342,11 @@ const Xr = (e) => {
7345
7342
  C,
7346
7343
  {
7347
7344
  padding: "spacing-0",
7348
- ...u,
7345
+ ...I,
7349
7346
  style: {
7350
7347
  flex: 1,
7351
7348
  overflow: "auto",
7352
- ...(u == null ? void 0 : u.style) ?? {}
7349
+ ...(I == null ? void 0 : I.style) ?? {}
7353
7350
  },
7354
7351
  children: e
7355
7352
  }
@@ -7394,7 +7391,7 @@ function Ao({
7394
7391
  }, [o.pathname]);
7395
7392
  }
7396
7393
  const eo = () => {
7397
- const [e, t] = KA(), i = NA(e.toString()), o = ue(), r = fA(), c = o.id;
7394
+ const [e, t] = KA(), i = NA(e.toString()), o = Ie(), r = fA(), c = o.id;
7398
7395
  return {
7399
7396
  // query params
7400
7397
  setSearchParams: t,
@@ -7419,14 +7416,14 @@ function to(e) {
7419
7416
  var a, B;
7420
7417
  const c = ((B = (a = t == null ? void 0 : t.access) == null ? void 0 : a.role) == null ? void 0 : B.code) ?? "", l = Object.keys(e.role).reduce(
7421
7418
  (Q, w) => {
7422
- const d = `is${w.toLowerCase().replace(/(^\w|_\w)/g, (u) => u.replace("_", "").toUpperCase())}`;
7419
+ const d = `is${w.toLowerCase().replace(/(^\w|_\w)/g, (I) => I.replace("_", "").toUpperCase())}`;
7423
7420
  return { ...Q, [d]: !1 };
7424
7421
  },
7425
7422
  {}
7426
7423
  );
7427
7424
  return {
7428
7425
  ...Object.keys(e.role).reduce((Q, w) => {
7429
- const d = `is${w.toLowerCase().replace(/(^\w|_\w)/g, (u) => u.replace("_", "").toUpperCase())}`;
7426
+ const d = `is${w.toLowerCase().replace(/(^\w|_\w)/g, (I) => I.replace("_", "").toUpperCase())}`;
7430
7427
  return {
7431
7428
  ...Q,
7432
7429
  [d]: c === e.role[w]
@@ -7439,7 +7436,7 @@ function to(e) {
7439
7436
  }
7440
7437
  export {
7441
7438
  dr as ActionMenu,
7442
- Yr as AdvanceFilter,
7439
+ pr as AdvanceFilter,
7443
7440
  vt as AdvanceFilterBar,
7444
7441
  or as App,
7445
7442
  $e as AppComponent,
@@ -7485,15 +7482,15 @@ export {
7485
7482
  vr as VerticalField,
7486
7483
  cr as clearModuleSelection,
7487
7484
  wr as createInitialFromUserName,
7488
- ur as cssVars,
7485
+ Ir as cssVars,
7489
7486
  Mr as formHasChanged,
7490
- Ir as formatDate,
7487
+ ur as formatDate,
7491
7488
  GA as formatDateToIndonesian,
7492
7489
  hr as formatRupiah,
7493
7490
  zr as getDateFilterValue,
7494
7491
  Nr as getDateRangeFilterValue,
7495
7492
  Dr as getInitials,
7496
- pr as getValueDropdownMultipleFilter,
7493
+ Yr as getValueDropdownMultipleFilter,
7497
7494
  jr as getValueRadioFilter,
7498
7495
  Tt as getValueSearch,
7499
7496
  qA as getValuesFilter,