@starasia/admin 1.4.0 → 1.4.1

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
@@ -10,17 +10,17 @@ import { StarasiaDate as te } from "@starasia/date";
10
10
  export * from "@starasia/date";
11
11
  import { Dialog as hA, DialogTitle as dA, DialogBody as DA, DialogFooter as LA } from "@starasia/dialog";
12
12
  export * from "@starasia/dialog";
13
- import { Drawer as ue } from "@starasia/drawer";
13
+ import { Drawer as Ie } from "@starasia/drawer";
14
14
  export * from "@starasia/drawer";
15
15
  import { Dropdown as bA } from "@starasia/dropdown";
16
16
  export * from "@starasia/dropdown";
17
- import { useMediaQuery as V, useConfirmation as re } from "@starasia/hooks";
17
+ import { useMediaQuery as X, useConfirmation as re } from "@starasia/hooks";
18
18
  export * from "@starasia/hooks";
19
- import { searchParamsToObject as uA } from "@starasia/http";
19
+ import { searchParamsToObject as IA } from "@starasia/http";
20
20
  export * from "@starasia/http";
21
- import { Input as IA } from "@starasia/input";
21
+ import { Input as uA } from "@starasia/input";
22
22
  export * from "@starasia/input";
23
- import { Menu as oe, MenuButton as yA, MenuLists as ne, MenuHeading as Ie, MenuBody as le, MenuFooter as ke } from "@starasia/menu";
23
+ import { Menu as oe, MenuButton as yA, MenuLists as ne, MenuHeading as ue, MenuBody as le, MenuFooter as ke } from "@starasia/menu";
24
24
  export * from "@starasia/menu";
25
25
  import { Pagination as Ee } from "@starasia/pagination";
26
26
  export * from "@starasia/pagination";
@@ -66,7 +66,7 @@ const je = {
66
66
  userData: null,
67
67
  setUserData: () => {
68
68
  }
69
- }, Ce = Le(je), Be = () => be(Ce), Ne = (e) => {
69
+ }, Ce = Le(je), Be = () => be(Ce), Fe = (e) => {
70
70
  const [i, r] = Y(
71
71
  (e == null ? void 0 : e.initialUserData) || null
72
72
  );
@@ -74,7 +74,7 @@ const je = {
74
74
  userData: i,
75
75
  setUserData: r
76
76
  };
77
- }, Fe = ({
77
+ }, Ne = ({
78
78
  router: e,
79
79
  menus: i = [],
80
80
  menuBottom: r,
@@ -83,7 +83,7 @@ const je = {
83
83
  initialUserData: n,
84
84
  theme: l
85
85
  }) => {
86
- const c = Ne({ initialUserData: n }), { theme: s } = xe();
86
+ const c = Fe({ initialUserData: n }), { theme: s } = xe();
87
87
  return /* @__PURE__ */ A(
88
88
  Ce.Provider,
89
89
  {
@@ -98,7 +98,7 @@ const je = {
98
98
  children: l ? /* @__PURE__ */ A(vA, { value: l, children: e }) : s ? /* @__PURE__ */ A(vA, { value: s, children: e }) : e
99
99
  }
100
100
  );
101
- }, Ut = AA(Fe);
101
+ }, Ut = AA(Ne);
102
102
  function ze({
103
103
  collapsed: e = !1,
104
104
  children: i
@@ -115,7 +115,6 @@ function ze({
115
115
  position: "sticky",
116
116
  top: "4rem",
117
117
  zIndex: 1,
118
- backgroundColor: "white",
119
118
  borderBottom: "1px solid #e5e7eb",
120
119
  paddingLeft: "0.5rem",
121
120
  paddingRight: "0.5rem",
@@ -198,7 +197,7 @@ function Wt({
198
197
  profileMenuItems: w,
199
198
  logoutButton: B
200
199
  }) {
201
- const [I] = kA(), b = I.get("embed") === "true", h = Be(), j = UA(), S = GA(), x = !V("md"), [G, u] = Y(!1), [z, Z] = Y(!1), [R, X] = Y(!1), [H, k] = Y(/* @__PURE__ */ new Set()), { selectedGroupId: f, setSelectedGroupId: E } = we(), D = eA(null), F = eA(null);
200
+ const [u] = kA(), b = u.get("embed") === "true", h = Be(), j = UA(), S = GA(), x = !X("md"), [G, I] = Y(!1), [z, Z] = Y(!1), [R, $] = Y(!1), [H, k] = Y(/* @__PURE__ */ new Set()), { selectedGroupId: f, setSelectedGroupId: E } = we(), D = eA(null), N = eA(null);
202
201
  v(() => {
203
202
  const y = D.current;
204
203
  if (!y) return;
@@ -229,50 +228,50 @@ function Wt({
229
228
  }));
230
229
  }, [h.menus]), v(() => {
231
230
  CA = !0, K();
232
- const y = setTimeout(K, 0), L = setTimeout(K, 50), N = setTimeout(K, 100), $ = setTimeout(K, 200), lA = setTimeout(() => {
231
+ const y = setTimeout(K, 0), L = setTimeout(K, 50), F = setTimeout(K, 100), _ = setTimeout(K, 200), nA = setTimeout(() => {
233
232
  CA = !1;
234
233
  }, 300);
235
234
  return () => {
236
- clearTimeout(y), clearTimeout(L), clearTimeout(N), clearTimeout($), clearTimeout(lA);
235
+ clearTimeout(y), clearTimeout(L), clearTimeout(F), clearTimeout(_), clearTimeout(nA);
237
236
  };
238
237
  }, [S.pathname]), v(() => {
239
- F.current && (F.current.scrollTop = 0);
238
+ N.current && (N.current.scrollTop = 0);
240
239
  }, [S.pathname]), v(() => {
241
- x && X(!1);
240
+ x && $(!1);
242
241
  }, [S.pathname, x]), v(() => {
243
242
  x && Z(!0);
244
243
  }, [x]);
245
244
  const q = () => {
246
- u(!0);
245
+ I(!0);
247
246
  }, m = () => {
248
- u(!1);
247
+ I(!1);
249
248
  }, iA = () => {
250
- u(!1), t();
249
+ I(!1), t();
251
250
  }, tA = h.menus.flatMap(
252
251
  (y) => y.items.flatMap((L) => {
253
- const N = [L.to];
254
- return L.children && N.push(...L.children.map(($) => $.to)), N;
252
+ const F = [L.to];
253
+ return L.children && F.push(...L.children.map((_) => _.to)), F;
255
254
  })
256
- ), nA = (y) => {
255
+ ), oA = (y) => {
257
256
  if (!S.pathname.startsWith(y)) return !1;
258
- const L = tA.filter((N) => S.pathname.startsWith(N)).sort((N, $) => $.length - N.length)[0];
257
+ const L = tA.filter((F) => S.pathname.startsWith(F)).sort((F, _) => _.length - F.length)[0];
259
258
  return y === L;
260
259
  };
261
260
  v(() => {
262
261
  h.menus.forEach((y) => {
263
262
  y.items.forEach((L) => {
264
- var N;
265
- (N = L.children) != null && N.some(($) => S.pathname.startsWith($.to)) && k(($) => {
266
- const lA = new Set($);
267
- return lA.add(L.id), lA;
263
+ var F;
264
+ (F = L.children) != null && F.some((_) => S.pathname.startsWith(_.to)) && k((_) => {
265
+ const nA = new Set(_);
266
+ return nA.add(L.id), nA;
268
267
  });
269
268
  });
270
269
  });
271
270
  }, [S.pathname, h.menus]);
272
271
  const YA = (y) => {
273
272
  k((L) => {
274
- const N = new Set(L);
275
- return N.has(y) ? N.delete(y) : N.add(y), N;
273
+ const F = new Set(L);
274
+ return F.has(y) ? F.delete(y) : F.add(y), F;
276
275
  });
277
276
  };
278
277
  v(() => {
@@ -281,9 +280,9 @@ function Wt({
281
280
  const De = sA(() => {
282
281
  if (f !== null)
283
282
  return h.menus.filter(
284
- (N) => N.id === f || N.parentGroupId === f
283
+ (F) => F.id === f || F.parentGroupId === f
285
284
  );
286
- const y = h.menus.filter((N) => N.parentGroupId === void 0), L = h.menus.filter((N) => N.parentGroupId !== void 0).flatMap((N) => N.items);
285
+ const y = h.menus.filter((F) => F.parentGroupId === void 0), L = h.menus.filter((F) => F.parentGroupId !== void 0).flatMap((F) => F.items);
287
286
  return L.length === 0 ? y : [
288
287
  ...y,
289
288
  { id: 18, name: "Pengaturan", items: L, parentGroupId: void 0 }
@@ -314,7 +313,7 @@ function Wt({
314
313
  pointerEvents: R ? "auto" : "none",
315
314
  transition: "opacity 0.3s"
316
315
  },
317
- onClick: () => X(!1)
316
+ onClick: () => $(!1)
318
317
  }
319
318
  ),
320
319
  /* @__PURE__ */ g(
@@ -328,7 +327,7 @@ function Wt({
328
327
  zIndex: 50,
329
328
  transform: R ? "translateX(0)" : "translateX(-100%)"
330
329
  },
331
- backgroundColor: "white",
330
+ backgroundColor: "#F8F8F8",
332
331
  borderRight: "1px solid #e5e7eb",
333
332
  display: "flex",
334
333
  flexDirection: "column",
@@ -388,7 +387,7 @@ function Wt({
388
387
  x && /* @__PURE__ */ A(
389
388
  "button",
390
389
  {
391
- onClick: () => X(!1),
390
+ onClick: () => $(!1),
392
391
  style: {
393
392
  padding: "0.375rem",
394
393
  borderRadius: "0.5rem",
@@ -438,7 +437,7 @@ function Wt({
438
437
  borderRadius: "var(--starasia-ui-radii-md)",
439
438
  backgroundColor: "white",
440
439
  border: "1px solid #d1d5db",
441
- boxShadow: "0 4px 6px rgba(0, 0, 0, 0.1)",
440
+ // boxShadow: "0 4px 6px rgba(0, 0, 0, 0.1)",
442
441
  cursor: "pointer",
443
442
  color: "#374151",
444
443
  transition: "background-color 0.2s"
@@ -536,13 +535,13 @@ function Wt({
536
535
  }
537
536
  ),
538
537
  /* @__PURE__ */ A("div", { style: { paddingLeft: "0.5rem", paddingRight: "0.5rem", display: "flex", flexDirection: "column", gap: "var(--starasia-ui-spacing-xs)" }, children: y.items.map((L) => {
539
- const N = L.children && L.children.length > 0, $ = H.has(L.id), lA = N ? L.children.some((_) => nA(_.to)) : nA(L.to);
540
- return /* @__PURE__ */ g("div", { "data-menu-active": lA || void 0, children: [
538
+ const F = L.children && L.children.length > 0, _ = H.has(L.id), nA = F ? L.children.some((V) => oA(V.to)) : oA(L.to);
539
+ return /* @__PURE__ */ g("div", { "data-menu-active": nA || void 0, children: [
541
540
  /* @__PURE__ */ g(
542
541
  "button",
543
542
  {
544
543
  onClick: () => {
545
- N ? YA(L.id) : j(L.to);
544
+ F ? YA(L.id) : j(L.to);
546
545
  },
547
546
  style: {
548
547
  width: "100%",
@@ -556,18 +555,18 @@ function Wt({
556
555
  paddingBottom: "0.5rem",
557
556
  borderRadius: "var(--starasia-ui-radii-md)",
558
557
  textAlign: "left",
559
- border: "none",
560
- backgroundColor: lA ? "var(--starasia-ui-brand-primary-tertiary)" : "transparent",
561
- color: lA ? "var(--starasia-ui-brand-primary-default)" : "#374151",
562
- transition: "all 0.2s",
558
+ border: nA ? "1px solid rgba(11, 18, 14, 0.1412)" : "1px solid transparent",
559
+ backgroundColor: nA ? "#FFFFFF" : "transparent",
560
+ color: nA ? "#292A2E" : "#505258",
561
+ // transition: "all 0.2s",
563
562
  cursor: "pointer"
564
563
  },
565
564
  title: z && !x ? L.title : void 0,
566
- onMouseEnter: (_) => {
567
- lA || (_.currentTarget.style.backgroundColor = "#f3f4f6");
565
+ onMouseEnter: (V) => {
566
+ nA || (V.currentTarget.style.backgroundColor = "#f3f4f6");
568
567
  },
569
- onMouseLeave: (_) => {
570
- lA || (_.currentTarget.style.backgroundColor = "transparent");
568
+ onMouseLeave: (V) => {
569
+ nA || (V.currentTarget.style.backgroundColor = "transparent");
571
570
  },
572
571
  children: [
573
572
  /* @__PURE__ */ A(M, { name: L.icon, size: "sm", style: { flexShrink: 0 } }),
@@ -585,7 +584,7 @@ function Wt({
585
584
  children: L.title
586
585
  }
587
586
  ),
588
- N && /* @__PURE__ */ A(
587
+ F && /* @__PURE__ */ A(
589
588
  "svg",
590
589
  {
591
590
  style: {
@@ -593,7 +592,7 @@ function Wt({
593
592
  height: "1rem",
594
593
  flexShrink: 0,
595
594
  transition: "transform 0.2s",
596
- transform: $ ? "rotate(180deg)" : "rotate(0deg)"
595
+ transform: _ ? "rotate(180deg)" : "rotate(0deg)"
597
596
  },
598
597
  fill: "none",
599
598
  stroke: "currentColor",
@@ -613,7 +612,7 @@ function Wt({
613
612
  ]
614
613
  }
615
614
  ),
616
- N && (!z || x) && /* @__PURE__ */ A(
615
+ F && (!z || x) && /* @__PURE__ */ A(
617
616
  "div",
618
617
  {
619
618
  style: {
@@ -622,14 +621,14 @@ function Wt({
622
621
  borderLeft: "1px solid #e5e7eb",
623
622
  overflow: "hidden",
624
623
  transition: "all 0.3s ease-in-out",
625
- maxHeight: $ ? `${L.children.length * 44}px` : "0px",
626
- opacity: $ ? 1 : 0,
627
- marginTop: $ ? "0.25rem" : "0px"
624
+ maxHeight: _ ? `${L.children.length * 44}px` : "0px",
625
+ opacity: _ ? 1 : 0,
626
+ marginTop: _ ? "0.25rem" : "0px"
628
627
  },
629
- children: L.children.map((_) => /* @__PURE__ */ g(
628
+ children: L.children.map((V) => /* @__PURE__ */ g(
630
629
  "button",
631
630
  {
632
- onClick: () => j(_.to),
631
+ onClick: () => j(V.to),
633
632
  style: {
634
633
  width: "100%",
635
634
  display: "flex",
@@ -641,23 +640,23 @@ function Wt({
641
640
  paddingBottom: "0.5rem",
642
641
  borderRadius: "var(--starasia-ui-radii-md)",
643
642
  textAlign: "left",
644
- border: "none",
645
- backgroundColor: nA(_.to) ? "var(--starasia-ui-brand-primary-tertiary)" : "transparent",
646
- color: nA(_.to) ? "var(--starasia-ui-brand-primary-default)" : "#4b5563",
647
- transition: "all 0.2s",
648
- cursor: "pointer"
643
+ backgroundColor: oA(V.to) ? "#FFFFFF" : "transparent",
644
+ color: oA(V.to) ? "#292A2E" : "#505258",
645
+ // transition: "all 0.2s",
646
+ cursor: "pointer",
647
+ border: oA(V.to) ? "1px solid rgba(11, 18, 14, 0.1412)" : "1px solid transparent"
649
648
  },
650
649
  onMouseEnter: (pA) => {
651
- nA(_.to) || (pA.currentTarget.style.backgroundColor = "#f3f4f6");
650
+ oA(V.to) || (pA.currentTarget.style.backgroundColor = "#f3f4f6");
652
651
  },
653
652
  onMouseLeave: (pA) => {
654
- nA(_.to) || (pA.currentTarget.style.backgroundColor = "transparent");
653
+ oA(V.to) || (pA.currentTarget.style.backgroundColor = "transparent");
655
654
  },
656
655
  children: [
657
656
  /* @__PURE__ */ A(
658
657
  M,
659
658
  {
660
- name: _.icon,
659
+ name: V.icon,
661
660
  size: "sm",
662
661
  style: { flexShrink: 0 }
663
662
  }
@@ -670,12 +669,12 @@ function Wt({
670
669
  fontWeight: "500",
671
670
  whiteSpace: "nowrap"
672
671
  },
673
- children: _.title
672
+ children: V.title
674
673
  }
675
674
  )
676
675
  ]
677
676
  },
678
- _.id
677
+ V.id
679
678
  ))
680
679
  }
681
680
  )
@@ -707,7 +706,7 @@ function Wt({
707
706
  x && /* @__PURE__ */ A(
708
707
  "button",
709
708
  {
710
- onClick: () => X(!0),
709
+ onClick: () => $(!0),
711
710
  style: {
712
711
  padding: "0.375rem",
713
712
  borderRadius: "0.5rem",
@@ -824,7 +823,7 @@ function Wt({
824
823
  marginTop: "16px"
825
824
  },
826
825
  children: [
827
- /* @__PURE__ */ A(Ie, { children: /* @__PURE__ */ g(
826
+ /* @__PURE__ */ A(ue, { children: /* @__PURE__ */ g(
828
827
  "div",
829
828
  {
830
829
  style: {
@@ -911,11 +910,11 @@ function Wt({
911
910
  type: "button",
912
911
  onClick: y.onClick,
913
912
  style: XA,
914
- onMouseEnter: (N) => {
915
- N.currentTarget.style.backgroundColor = "#f3f4f6";
913
+ onMouseEnter: (F) => {
914
+ F.currentTarget.style.backgroundColor = "#f3f4f6";
916
915
  },
917
- onMouseLeave: (N) => {
918
- N.currentTarget.style.backgroundColor = "transparent";
916
+ onMouseLeave: (F) => {
917
+ F.currentTarget.style.backgroundColor = "transparent";
919
918
  },
920
919
  children: [
921
920
  /* @__PURE__ */ A(M, { name: y.icon, size: "md" }),
@@ -967,7 +966,7 @@ function Wt({
967
966
  /* @__PURE__ */ A(
968
967
  "main",
969
968
  {
970
- ref: F,
969
+ ref: N,
971
970
  style: {
972
971
  flex: 1,
973
972
  overflowY: "auto"
@@ -1156,7 +1155,7 @@ function Rt({
1156
1155
  const r = Be(), o = UA(), { selectedGroupId: t, setSelectedGroupId: n } = we(), [l, c] = Y(!1), s = (C) => {
1157
1156
  var d;
1158
1157
  if (n(C), C !== null) {
1159
- const w = r.menus.find((I) => I.id === C), B = (d = w == null ? void 0 : w.items[0]) == null ? void 0 : d.to;
1158
+ const w = r.menus.find((u) => u.id === C), B = (d = w == null ? void 0 : w.items[0]) == null ? void 0 : d.to;
1160
1159
  B && o(B);
1161
1160
  }
1162
1161
  e == null || e(C);
@@ -1219,7 +1218,7 @@ function Rt({
1219
1218
  }
1220
1219
  const vt = AA(
1221
1220
  ({ children: e, coverImage: i, logo: r }) => {
1222
- const o = V("md"), t = fe();
1221
+ const o = X("md"), t = fe();
1223
1222
  return /* @__PURE__ */ g(
1224
1223
  a,
1225
1224
  {
@@ -1474,14 +1473,14 @@ const vt = AA(
1474
1473
  containerProps: c,
1475
1474
  headerProps: s
1476
1475
  }) => {
1477
- const C = V("lg"), d = UA(), w = e == null ? void 0 : e.show, B = () => {
1476
+ const C = X("lg"), d = UA(), w = e == null ? void 0 : e.show, B = () => {
1478
1477
  if (typeof (e == null ? void 0 : e.onClick) == "function") {
1479
1478
  e.onClick();
1480
1479
  return;
1481
1480
  }
1482
1481
  d(-1, { replace: !0 });
1483
- }, I = () => n ? se(n) ? n : /* @__PURE__ */ A(a, { direction: "row", gap: "lg", children: n.map(
1484
- ({ title: S, icon: P, buttonProps: x, onClick: G }, u) => !S && !P ? null : /* @__PURE__ */ A(
1482
+ }, u = () => n ? se(n) ? n : /* @__PURE__ */ A(a, { direction: "row", gap: "lg", children: n.map(
1483
+ ({ title: S, icon: P, buttonProps: x, onClick: G }, I) => !S && !P ? null : /* @__PURE__ */ A(
1485
1484
  O,
1486
1485
  {
1487
1486
  fullWidth: !C,
@@ -1490,7 +1489,7 @@ const vt = AA(
1490
1489
  ...x,
1491
1490
  children: S
1492
1491
  },
1493
- `action-${u}`
1492
+ `action-${I}`
1494
1493
  )
1495
1494
  ) }) : null, b = () => e != null && e.navigateTo ? /* @__PURE__ */ A(a, { direction: "row", children: /* @__PURE__ */ A(
1496
1495
  Ye,
@@ -1550,8 +1549,8 @@ const vt = AA(
1550
1549
  a,
1551
1550
  {
1552
1551
  gap: "sm",
1553
- paddingTop: (s == null ? void 0 : s.paddingTop) || "lg",
1554
- paddingInline: (s == null ? void 0 : s.paddingInline) || "xl",
1552
+ paddingTop: s == null ? void 0 : s.paddingTop,
1553
+ paddingInline: s == null ? void 0 : s.paddingInline,
1555
1554
  ...s,
1556
1555
  children: [
1557
1556
  w && b(),
@@ -1567,17 +1566,26 @@ const vt = AA(
1567
1566
  /* @__PURE__ */ A(Q, { variant: "h2", fontWeight: "semibold", fontFamily: "Poppins", children: i }),
1568
1567
  r && /* @__PURE__ */ A(ie, { border: !0, size: "lg", text: r, ...l })
1569
1568
  ] }) : i,
1570
- I()
1569
+ u()
1571
1570
  ]
1572
1571
  }
1573
1572
  )
1574
1573
  ]
1575
1574
  }
1576
1575
  ), j = () => o;
1577
- return /* @__PURE__ */ g(a, { gap: "lg", variant: "main", ...c, children: [
1578
- t && h(),
1579
- j()
1580
- ] });
1576
+ return /* @__PURE__ */ g(
1577
+ a,
1578
+ {
1579
+ gap: "md",
1580
+ variant: "main",
1581
+ ...c,
1582
+ padding: "md",
1583
+ children: [
1584
+ t && h(),
1585
+ j()
1586
+ ]
1587
+ }
1588
+ );
1581
1589
  }, Xt = AA(Ue), We = {
1582
1590
  icon: "Cross",
1583
1591
  title: ""
@@ -1591,7 +1599,7 @@ const vt = AA(
1591
1599
  paddingHorizontal: n = !0,
1592
1600
  closeButton: l = We
1593
1601
  }, c) => /* @__PURE__ */ A(W, { children: /* @__PURE__ */ A(
1594
- ue,
1602
+ Ie,
1595
1603
  {
1596
1604
  blur: !1,
1597
1605
  isShow: i,
@@ -1649,7 +1657,7 @@ const vt = AA(
1649
1657
  ) })
1650
1658
  ), Re = AA(
1651
1659
  ({ children: e, borderBottom: i = !0, padding: r = !0 }) => {
1652
- const o = V("lg");
1660
+ const o = X("lg");
1653
1661
  return /* @__PURE__ */ A(
1654
1662
  a,
1655
1663
  {
@@ -1665,7 +1673,7 @@ const vt = AA(
1665
1673
  );
1666
1674
  }
1667
1675
  ), ve = AA(({ children: e }) => {
1668
- const i = V("lg");
1676
+ const i = X("lg");
1669
1677
  return /* @__PURE__ */ A(
1670
1678
  a,
1671
1679
  {
@@ -1690,16 +1698,16 @@ const vt = AA(
1690
1698
  searchHighlightPlaceholder: d = "CTRL + K",
1691
1699
  filterContainer: w,
1692
1700
  actionContainer: B,
1693
- headerProps: I = { borderBottom: !0 },
1701
+ headerProps: u = { borderBottom: !0 },
1694
1702
  variantTag: b = "info"
1695
1703
  }) => {
1696
- const h = V("lg"), [j, S] = kA(), P = j.get(s), x = uA(j.toString()), G = TA(
1704
+ const h = X("lg"), [j, S] = kA(), P = j.get(s), x = IA(j.toString()), G = TA(
1697
1705
  ({ target: { value: R } }) => {
1698
1706
  c && c(R), s && S({ ...x, [s]: R });
1699
1707
  },
1700
1708
  [s, c, S, x]
1701
- ), u = () => /* @__PURE__ */ A(
1702
- IA,
1709
+ ), I = () => /* @__PURE__ */ A(
1710
+ uA,
1703
1711
  {
1704
1712
  placeholder: C,
1705
1713
  highlightPlaceholder: d,
@@ -1719,7 +1727,7 @@ const vt = AA(
1719
1727
  borderRadius: "rounded-md",
1720
1728
  variant: "section",
1721
1729
  children: [
1722
- l !== null ? /* @__PURE__ */ A(Re, { ...I, children: l || /* @__PURE__ */ g(
1730
+ l !== null ? /* @__PURE__ */ A(Re, { ...u, children: l || /* @__PURE__ */ g(
1723
1731
  a,
1724
1732
  {
1725
1733
  direction: "row",
@@ -1733,7 +1741,7 @@ const vt = AA(
1733
1741
  {
1734
1742
  style: h ? { width: "100%", maxWidth: "19.313rem" } : { flex: 1 },
1735
1743
  ...B,
1736
- children: o || (n ? u() : null)
1744
+ children: o || (n ? I() : null)
1737
1745
  }
1738
1746
  )
1739
1747
  ]
@@ -1920,7 +1928,7 @@ const vt = AA(
1920
1928
  onSearch: d,
1921
1929
  value: w,
1922
1930
  dateFilter: B,
1923
- enableInputDate: I,
1931
+ enableInputDate: u,
1924
1932
  withSearchParam: b,
1925
1933
  // disabled,
1926
1934
  rangedDate: h,
@@ -1929,7 +1937,7 @@ const vt = AA(
1929
1937
  min: P,
1930
1938
  max: x
1931
1939
  }, G) => {
1932
- const u = t == null ? void 0 : t.length;
1940
+ const I = t == null ? void 0 : t.length;
1933
1941
  let z;
1934
1942
  const Z = () => {
1935
1943
  switch (i) {
@@ -1950,7 +1958,7 @@ const vt = AA(
1950
1958
  return /* @__PURE__ */ A(
1951
1959
  te,
1952
1960
  {
1953
- input: I,
1961
+ input: u,
1954
1962
  filter: B,
1955
1963
  value: ei(w || z, h),
1956
1964
  onChange: (H) => o == null ? void 0 : o({ value: H, name: c, type: i }),
@@ -1970,7 +1978,7 @@ const vt = AA(
1970
1978
  );
1971
1979
  case "text":
1972
1980
  return /* @__PURE__ */ A(
1973
- IA,
1981
+ uA,
1974
1982
  {
1975
1983
  onChange: ({ target: { value: H } }) => o == null ? void 0 : o({ value: H, name: c, type: i }),
1976
1984
  value: w || z,
@@ -1995,7 +2003,7 @@ const vt = AA(
1995
2003
  checked: k,
1996
2004
  sizes: "sm",
1997
2005
  onChange: (f) => {
1998
- const E = Array.isArray(w) ? w : [], D = f.target.checked ? [...E, H.value] : E.filter((F) => F !== H.value);
2006
+ const E = Array.isArray(w) ? w : [], D = f.target.checked ? [...E, H.value] : E.filter((N) => N !== H.value);
1999
2007
  o == null || o({ value: D, name: c, type: i });
2000
2008
  }
2001
2009
  },
@@ -2006,7 +2014,7 @@ const vt = AA(
2006
2014
  return null;
2007
2015
  }
2008
2016
  };
2009
- return u ? /* @__PURE__ */ A(a, { marginBottom: "lg", children: t == null ? void 0 : t.map((H, k) => /* @__PURE__ */ A(
2017
+ return I ? /* @__PURE__ */ A(a, { marginBottom: "lg", children: t == null ? void 0 : t.map((H, k) => /* @__PURE__ */ A(
2010
2018
  Qe,
2011
2019
  {
2012
2020
  ref: G,
@@ -2032,7 +2040,7 @@ const vt = AA(
2032
2040
  onHide: n,
2033
2041
  resetting: l
2034
2042
  }) => {
2035
- const [c, s] = Y(!1), C = eA(null), d = ({ value: B, name: I, type: b }) => {
2043
+ const [c, s] = Y(!1), C = eA(null), d = ({ value: B, name: u, type: b }) => {
2036
2044
  if (o)
2037
2045
  switch (b) {
2038
2046
  case "date":
@@ -2061,16 +2069,16 @@ const vt = AA(
2061
2069
  ref: C,
2062
2070
  children: [
2063
2071
  /* @__PURE__ */ A(ii, { title: i, resetButton: { onClick: w } }),
2064
- c || l ? null : /* @__PURE__ */ A(a, { children: r == null ? void 0 : r.map((B, I) => /* @__PURE__ */ A(
2072
+ c || l ? null : /* @__PURE__ */ A(a, { children: r == null ? void 0 : r.map((B, u) => /* @__PURE__ */ A(
2065
2073
  Qe,
2066
2074
  {
2067
- borderBottom: I !== r.length - 1,
2075
+ borderBottom: u !== r.length - 1,
2068
2076
  onChange: d,
2069
2077
  withSearchParam: o,
2070
2078
  ...B,
2071
2079
  ref: C
2072
2080
  },
2073
- I
2081
+ u
2074
2082
  )) })
2075
2083
  ]
2076
2084
  }
@@ -2165,23 +2173,23 @@ function rr(e) {
2165
2173
  const r = i.getFullYear(), o = String(i.getMonth() + 1).padStart(2, "0"), t = String(i.getDate()).padStart(2, "0");
2166
2174
  return `${r}-${o}-${t}`;
2167
2175
  }
2168
- const ni = "starasia-admin", oA = (e) => `var(--${ni}-${e})`, or = {
2176
+ const ni = "starasia-admin", lA = (e) => `var(--${ni}-${e})`, or = {
2169
2177
  base: {
2170
- borderColor: oA("base-border-color"),
2171
- textColor: oA("base-text-color"),
2172
- iconColor: oA("base-icon-color"),
2173
- placeholderColor: oA("base-placeholder-color")
2178
+ borderColor: lA("base-border-color"),
2179
+ textColor: lA("base-text-color"),
2180
+ iconColor: lA("base-icon-color"),
2181
+ placeholderColor: lA("base-placeholder-color")
2174
2182
  },
2175
2183
  document: {
2176
- bgColor: oA("document-bg-color")
2184
+ bgColor: lA("document-bg-color")
2177
2185
  },
2178
2186
  sidebar: {
2179
- bgColor: oA("sidebar-bg-color"),
2180
- borderColor: oA("sidebar-border-color"),
2181
- maxWidth: oA("sidebar-max-width"),
2182
- width: oA("sidebar-width"),
2183
- collapseWidth: oA("sidebar-collapse-width"),
2184
- collapseV2Width: oA("sidebar-v2-collapse-width")
2187
+ bgColor: lA("sidebar-bg-color"),
2188
+ borderColor: lA("sidebar-border-color"),
2189
+ maxWidth: lA("sidebar-max-width"),
2190
+ width: lA("sidebar-width"),
2191
+ collapseWidth: lA("sidebar-collapse-width"),
2192
+ collapseV2Width: lA("sidebar-v2-collapse-width")
2185
2193
  }
2186
2194
  }, nr = 24 * 60 * 60 * 1e3, lr = (e) => {
2187
2195
  const i = "14px poppins", o = document.createElement("canvas").getContext("2d");
@@ -2291,58 +2299,58 @@ const Qr = (e) => {
2291
2299
  o(!0);
2292
2300
  }, w = (G) => {
2293
2301
  o(G);
2294
- }, B = l ? ai(l) : void 0, I = !!(B && ((x = Object.values(B)) == null ? void 0 : x.length) > 0), b = () => B ? Object.keys(B).map((G) => {
2302
+ }, B = l ? ai(l) : void 0, u = !!(B && ((x = Object.values(B)) == null ? void 0 : x.length) > 0), b = () => B ? Object.keys(B).map((G) => {
2295
2303
  var H, k, f;
2296
- const u = HA(G, i.fields), z = [];
2304
+ const I = HA(G, i.fields), z = [];
2297
2305
  let Z = "";
2298
- const R = (H = u == null ? void 0 : u.childrenKey) == null ? void 0 : H.length, X = u == null ? void 0 : u.parentKey;
2299
- switch (R && ((k = u == null ? void 0 : u.childrenKey) == null || k.forEach((E) => {
2306
+ const R = (H = I == null ? void 0 : I.childrenKey) == null ? void 0 : H.length, $ = I == null ? void 0 : I.parentKey;
2307
+ switch (R && ((k = I == null ? void 0 : I.childrenKey) == null || k.forEach((E) => {
2300
2308
  const D = HA(E, i.fields);
2301
2309
  D && z.push({
2302
2310
  name: D == null ? void 0 : D.name,
2303
2311
  label: D == null ? void 0 : D.label,
2304
2312
  value: B[D == null ? void 0 : D.name]
2305
2313
  });
2306
- })), u == null ? void 0 : u.type) {
2314
+ })), I == null ? void 0 : I.type) {
2307
2315
  case "dropdown":
2308
2316
  case "select-button":
2309
2317
  const E = B[G] && typeof B[G] != "string" ? B[G] : [], D = (E == null ? void 0 : E.length) > 0 ? (f = E.map((m) => m.label)) == null ? void 0 : f.join(",") : B[G];
2310
- Z = `${u == null ? void 0 : u.label}: ${D}`;
2318
+ Z = `${I == null ? void 0 : I.label}: ${D}`;
2311
2319
  break;
2312
2320
  case "checkbox":
2313
2321
  const K = (Array.isArray(B[G]) ? B[G] : []).map(
2314
2322
  (m) => {
2315
2323
  var iA, tA;
2316
- return ((tA = (iA = u == null ? void 0 : u.options) == null ? void 0 : iA.find((nA) => nA.value === m)) == null ? void 0 : tA.label) || m;
2324
+ return ((tA = (iA = I == null ? void 0 : I.options) == null ? void 0 : iA.find((oA) => oA.value === m)) == null ? void 0 : tA.label) || m;
2317
2325
  }
2318
2326
  ).join(", ");
2319
- Z = `${u == null ? void 0 : u.label}: ${K}`;
2327
+ Z = `${I == null ? void 0 : I.label}: ${K}`;
2320
2328
  break;
2321
2329
  case "date":
2322
- if (u.rangedDate) {
2323
- const m = B[G], iA = (u == null ? void 0 : u.dateValueFormatText) === "indonesian" ? xA(new Date(m == null ? void 0 : m.from)) : m == null ? void 0 : m.from, tA = (u == null ? void 0 : u.dateValueFormatText) === "indonesian" ? xA(new Date(m == null ? void 0 : m.to)) : m == null ? void 0 : m.to;
2324
- Z = `${u == null ? void 0 : u.label}: ${iA || ""} ~ ${tA || ""}`;
2330
+ if (I.rangedDate) {
2331
+ const m = B[G], iA = (I == null ? void 0 : I.dateValueFormatText) === "indonesian" ? xA(new Date(m == null ? void 0 : m.from)) : m == null ? void 0 : m.from, tA = (I == null ? void 0 : I.dateValueFormatText) === "indonesian" ? xA(new Date(m == null ? void 0 : m.to)) : m == null ? void 0 : m.to;
2332
+ Z = `${I == null ? void 0 : I.label}: ${iA || ""} ~ ${tA || ""}`;
2325
2333
  break;
2326
2334
  }
2327
- const q = (u == null ? void 0 : u.dateValueFormatText) === "indonesian" ? xA(new Date(B[G])) : B[G];
2328
- Z = `${u == null ? void 0 : u.label}: ${q || ""}`;
2335
+ const q = (I == null ? void 0 : I.dateValueFormatText) === "indonesian" ? xA(new Date(B[G])) : B[G];
2336
+ Z = `${I == null ? void 0 : I.label}: ${q || ""}`;
2329
2337
  break;
2330
2338
  default:
2331
- Z = `${u == null ? void 0 : u.label}: ${B[G]}`;
2339
+ Z = `${I == null ? void 0 : I.label}: ${B[G]}`;
2332
2340
  break;
2333
2341
  }
2334
2342
  if (R && z.length > 0) {
2335
2343
  let E = z.map((D) => {
2336
- var F, K;
2337
- return D != null && D.value && typeof D.value != "string" ? (K = (F = D == null ? void 0 : D.value) == null ? void 0 : F.map((q) => q == null ? void 0 : q.label)) == null ? void 0 : K.join(",") : D.value;
2344
+ var N, K;
2345
+ return D != null && D.value && typeof D.value != "string" ? (K = (N = D == null ? void 0 : D.value) == null ? void 0 : N.map((q) => q == null ? void 0 : q.label)) == null ? void 0 : K.join(",") : D.value;
2338
2346
  });
2339
2347
  E = E.filter(
2340
2348
  (D) => typeof D < "u" && D !== "" && D !== null
2341
- ), E && E.length > 0 && (Z = `${Z} ${u.relationLabelChip || "by"} ${E}`);
2349
+ ), E && E.length > 0 && (Z = `${Z} ${I.relationLabelChip || "by"} ${E}`);
2342
2350
  }
2343
- return X && (Z = ""), {
2344
- name: u == null ? void 0 : u.name,
2345
- label: u == null ? void 0 : u.label,
2351
+ return $ && (Z = ""), {
2352
+ name: I == null ? void 0 : I.name,
2353
+ label: I == null ? void 0 : I.label,
2346
2354
  value: B[G],
2347
2355
  valueText: Z,
2348
2356
  children: z
@@ -2358,7 +2366,7 @@ const Qr = (e) => {
2358
2366
  reset: d,
2359
2367
  chips: j,
2360
2368
  toggleConfig: {
2361
- active: I,
2369
+ active: u,
2362
2370
  onClick: C
2363
2371
  },
2364
2372
  chipsConfig: {
@@ -2373,12 +2381,12 @@ const Qr = (e) => {
2373
2381
  onReset: w
2374
2382
  }
2375
2383
  };
2376
- }, ur = {
2384
+ }, Ir = {
2377
2385
  Container: ri,
2378
2386
  Toggle: oi,
2379
2387
  Chips: _e,
2380
2388
  Chip: de
2381
- }, Ci = (e) => /* @__PURE__ */ A(Q, { variant: "h1", children: e.children, ...e.props }), Bi = (e) => /* @__PURE__ */ A(Q, { variant: "h2", children: e.children, ...e.props }), wi = (e) => /* @__PURE__ */ A(Q, { variant: "h3", children: e.children, ...e.props }), di = (e) => /* @__PURE__ */ A(Q, { variant: "h4", children: e.children, ...e.props }), Qi = (e) => /* @__PURE__ */ A(Q, { variant: "h5", children: e.children, ...e.props }), hi = (e) => /* @__PURE__ */ A(Q, { variant: "h6", children: e.children, ...e.props }), Di = (e) => /* @__PURE__ */ A(Q, { variant: "sub-h1", children: e.children, ...e.props }), ui = (e) => /* @__PURE__ */ A(Q, { variant: "sub-h2", children: e.children, ...e.props }), Ii = (e) => /* @__PURE__ */ A(Q, { variant: "sub-h3", children: e.children, ...e.props }), ki = (e) => /* @__PURE__ */ A(Q, { variant: "body-1", children: e.children, ...e.props }), Ei = (e) => /* @__PURE__ */ A(Q, { variant: "body-2", children: e.children, ...e.props }), Mi = (e) => /* @__PURE__ */ A(Q, { variant: "body-3", children: e.children, ...e.props }), T = {
2389
+ }, Ci = (e) => /* @__PURE__ */ A(Q, { variant: "h1", children: e.children, ...e.props }), Bi = (e) => /* @__PURE__ */ A(Q, { variant: "h2", children: e.children, ...e.props }), wi = (e) => /* @__PURE__ */ A(Q, { variant: "h3", children: e.children, ...e.props }), di = (e) => /* @__PURE__ */ A(Q, { variant: "h4", children: e.children, ...e.props }), Qi = (e) => /* @__PURE__ */ A(Q, { variant: "h5", children: e.children, ...e.props }), hi = (e) => /* @__PURE__ */ A(Q, { variant: "h6", children: e.children, ...e.props }), Di = (e) => /* @__PURE__ */ A(Q, { variant: "sub-h1", children: e.children, ...e.props }), Ii = (e) => /* @__PURE__ */ A(Q, { variant: "sub-h2", children: e.children, ...e.props }), ui = (e) => /* @__PURE__ */ A(Q, { variant: "sub-h3", children: e.children, ...e.props }), ki = (e) => /* @__PURE__ */ A(Q, { variant: "body-1", children: e.children, ...e.props }), Ei = (e) => /* @__PURE__ */ A(Q, { variant: "body-2", children: e.children, ...e.props }), Mi = (e) => /* @__PURE__ */ A(Q, { variant: "body-3", children: e.children, ...e.props }), T = {
2382
2390
  H1: Ci,
2383
2391
  H2: Bi,
2384
2392
  H3: wi,
@@ -2386,13 +2394,13 @@ const Qr = (e) => {
2386
2394
  H5: Qi,
2387
2395
  H6: hi,
2388
2396
  SubH1: Di,
2389
- SubH2: ui,
2390
- SubH3: Ii,
2397
+ SubH2: Ii,
2398
+ SubH3: ui,
2391
2399
  Body1: ki,
2392
2400
  Body2: Ei,
2393
2401
  Body3: Mi
2394
2402
  }, WA = () => {
2395
- const [e, i] = kA(), r = uA(e.toString()), o = ae(), t = GA(), n = o.id;
2403
+ const [e, i] = kA(), r = IA(e.toString()), o = ae(), t = GA(), n = o.id;
2396
2404
  return {
2397
2405
  // query params
2398
2406
  setSearchParams: i,
@@ -2452,15 +2460,15 @@ const Qr = (e) => {
2452
2460
  [i]: C
2453
2461
  }, B = { ...n };
2454
2462
  l && typeof l == "string" && delete B[l], delete B[s];
2455
- const I = {
2463
+ const u = {
2456
2464
  ...B,
2457
2465
  [c]: JSON.stringify(w)
2458
2466
  }, b = new URLSearchParams(n).toString(), h = new URLSearchParams(
2459
- I
2467
+ u
2460
2468
  ).toString();
2461
2469
  if (b === h)
2462
2470
  return;
2463
- t(I);
2471
+ t(u);
2464
2472
  }
2465
2473
  }
2466
2474
  }, jA = ({
@@ -2471,7 +2479,7 @@ const Qr = (e) => {
2471
2479
  }) => {
2472
2480
  const t = r.get(i) || void 0, n = t && typeof t == "string" ? JSON.parse(t) : void 0, l = n ? n[e] : void 0;
2473
2481
  return o === "label" && l ? JSON.parse(l)[0].label : o === "value" && l ? JSON.parse(l)[0].value : l;
2474
- }, Ir = ({
2482
+ }, ur = ({
2475
2483
  name: e,
2476
2484
  filterKey: i = "filter",
2477
2485
  searchParams: r,
@@ -2523,23 +2531,23 @@ const Qr = (e) => {
2523
2531
  }) => {
2524
2532
  const { searchParams: n, setSearchParams: l, searchQueries: c } = WA(), [s, C] = Y({}), d = () => {
2525
2533
  n.delete(r || "filter"), l(n);
2526
- }, w = (B, I) => {
2534
+ }, w = (B, u) => {
2527
2535
  switch (B.type) {
2528
2536
  case "radio": {
2529
2537
  const { show: b = !0 } = B;
2530
- return b && /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(a, { children: B.title }) }, I);
2538
+ return b && /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(a, { children: B.title }) }, u);
2531
2539
  }
2532
2540
  case "dropdown": {
2533
2541
  const { show: b = !0 } = B;
2534
- return b && /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(a, { children: B.title }) }, I);
2542
+ return b && /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(a, { children: B.title }) }, u);
2535
2543
  }
2536
2544
  case "date-range":
2537
- return /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(a, { children: B.title }) }, I);
2545
+ return /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(a, { children: B.title }) }, u);
2538
2546
  case "date":
2539
- return /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(a, { children: B.title }) }, I);
2547
+ return /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(a, { children: B.title }) }, u);
2540
2548
  case "dropdown-multiple": {
2541
2549
  const { show: b = !0 } = B;
2542
- return b && /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(a, { children: B.title }) }, I);
2550
+ return b && /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(a, { children: B.title }) }, u);
2543
2551
  }
2544
2552
  default:
2545
2553
  return null;
@@ -2557,7 +2565,7 @@ const Qr = (e) => {
2557
2565
  }
2558
2566
  )
2559
2567
  ] }),
2560
- t == null ? void 0 : t.map((B, I) => w(B, I))
2568
+ t == null ? void 0 : t.map((B, u) => w(B, u))
2561
2569
  ] }) });
2562
2570
  }, Oi = ({
2563
2571
  searchKey: e = "q",
@@ -2573,13 +2581,13 @@ const Qr = (e) => {
2573
2581
  handleOnReset: d,
2574
2582
  filterConfigs: w,
2575
2583
  buttonToggleProps: B,
2576
- position: I = "right",
2584
+ position: u = "right",
2577
2585
  titleSearchLabel: b = "Work Order",
2578
2586
  withTitleLabels: h = !1
2579
2587
  }) => {
2580
- const S = (B == null ? void 0 : B.isShowLabel) ?? !0, [P, x] = Y(!1), [G, u] = Y(0), z = () => {
2581
- u((m) => m + 1);
2582
- }, { searchParams: Z, setSearchParams: R, getQueryParam: X } = WA(), H = uA(Z.toString()), k = bi(e, Z, c) || "", [f, E] = Y(k), D = X(c), K = !!(D && !(() => {
2588
+ const S = (B == null ? void 0 : B.isShowLabel) ?? !0, [P, x] = Y(!1), [G, I] = Y(0), z = () => {
2589
+ I((m) => m + 1);
2590
+ }, { searchParams: Z, setSearchParams: R, getQueryParam: $ } = WA(), H = IA(Z.toString()), k = bi(e, Z, c) || "", [f, E] = Y(k), D = $(c), K = !!(D && !(() => {
2583
2591
  if (D)
2584
2592
  try {
2585
2593
  const m = JSON.parse(D);
@@ -2588,7 +2596,7 @@ const Qr = (e) => {
2588
2596
  console.error("Filter parameter is not a valid JSON:", m);
2589
2597
  }
2590
2598
  return !1;
2591
- })()), q = V("md");
2599
+ })()), q = X("md");
2592
2600
  return v(() => {
2593
2601
  E(k);
2594
2602
  }, [k]), v(() => {
@@ -2621,7 +2629,7 @@ const Qr = (e) => {
2621
2629
  {
2622
2630
  gap: "md",
2623
2631
  style: {
2624
- flexDirection: q && I === "left" ? "row" : q && I === "right" ? "row-reverse" : "column"
2632
+ flexDirection: q && u === "left" ? "row" : q && u === "right" ? "row-reverse" : "column"
2625
2633
  },
2626
2634
  align: "flex-end",
2627
2635
  children: [
@@ -2636,11 +2644,11 @@ const Qr = (e) => {
2636
2644
  children: /* @__PURE__ */ A(Q, { color: "error", fontWeight: "semibold", children: "Reset" })
2637
2645
  }
2638
2646
  ) }),
2639
- t == null ? void 0 : t.map(({ minWidth: m, content: iA, title: tA, onClickContainer: nA }, YA) => /* @__PURE__ */ g(
2647
+ t == null ? void 0 : t.map(({ minWidth: m, content: iA, title: tA, onClickContainer: oA }, YA) => /* @__PURE__ */ g(
2640
2648
  a,
2641
2649
  {
2642
2650
  gap: "sm",
2643
- onClick: nA,
2651
+ onClick: oA,
2644
2652
  style: {
2645
2653
  minWidth: m
2646
2654
  },
@@ -2742,7 +2750,7 @@ const Qr = (e) => {
2742
2750
  b
2743
2751
  ] }),
2744
2752
  /* @__PURE__ */ A(
2745
- IA,
2753
+ uA,
2746
2754
  {
2747
2755
  placeholder: r,
2748
2756
  leftIcon: /* @__PURE__ */ A(M, { name: "Search", width: 20, height: 20 }),
@@ -2800,7 +2808,7 @@ const Qr = (e) => {
2800
2808
  advanceFilter: i,
2801
2809
  showFilter: r = !0
2802
2810
  }) => {
2803
- const o = V("md"), t = () => e ? se(e) ? e : /* @__PURE__ */ A(
2811
+ const o = X("md"), t = () => e ? se(e) ? e : /* @__PURE__ */ A(
2804
2812
  a,
2805
2813
  {
2806
2814
  style: {
@@ -2882,7 +2890,7 @@ const Qr = (e) => {
2882
2890
  /* @__PURE__ */ A(T.Body1, { children: e || 0 })
2883
2891
  ]
2884
2892
  }
2885
- ), Ni = ({
2893
+ ), Fi = ({
2886
2894
  pagination: e,
2887
2895
  pageKey: i = "page",
2888
2896
  perPageKey: r = "perPage",
@@ -2898,7 +2906,7 @@ const Qr = (e) => {
2898
2906
  [r]: b,
2899
2907
  [i]: "1"
2900
2908
  });
2901
- }, B = (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));
2909
+ }, B = (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));
2902
2910
  return /* @__PURE__ */ A(
2903
2911
  a,
2904
2912
  {
@@ -2934,7 +2942,7 @@ const Qr = (e) => {
2934
2942
  defaultValue: C ? [{ label: `${C} per row`, value: C }] : [{ label: `${o} per row`, value: `${o}` }]
2935
2943
  }
2936
2944
  ),
2937
- /* @__PURE__ */ A(Q, { children: `${B}-${I} of ${(e == null ? void 0 : e.totalData) || 0}` })
2945
+ /* @__PURE__ */ A(Q, { children: `${B}-${u} of ${(e == null ? void 0 : e.totalData) || 0}` })
2938
2946
  ] }),
2939
2947
  /* @__PURE__ */ A(
2940
2948
  Ee,
@@ -2954,7 +2962,7 @@ const Qr = (e) => {
2954
2962
  )
2955
2963
  }
2956
2964
  );
2957
- }, Fi = ({ filter: e, columnTitle: i }) => {
2965
+ }, Ni = ({ filter: e, columnTitle: i }) => {
2958
2966
  const [r, o] = Y(!1), t = eA(null), n = eA(null), l = eA(null), [c, s] = Y(""), [C, d] = Y({ top: 0, left: 0 }), w = e.selectedValues, B = sA(() => c ? e.options.filter(
2959
2967
  (h) => h.label.toLowerCase().includes(c.toLowerCase())
2960
2968
  ) : e.options, [e.options, c]);
@@ -2976,7 +2984,7 @@ const Qr = (e) => {
2976
2984
  };
2977
2985
  return r && document.addEventListener("mousedown", h), () => document.removeEventListener("mousedown", h);
2978
2986
  }, [r]);
2979
- const I = (h) => {
2987
+ const u = (h) => {
2980
2988
  const j = w.includes(h) ? w.filter((S) => S !== h) : [...w, h];
2981
2989
  e.onFilterChange(j);
2982
2990
  }, b = () => e.onFilterChange([]);
@@ -3070,7 +3078,7 @@ const Qr = (e) => {
3070
3078
  paddingBottom: "8px"
3071
3079
  },
3072
3080
  children: /* @__PURE__ */ A(
3073
- IA,
3081
+ uA,
3074
3082
  {
3075
3083
  ref: l,
3076
3084
  placeholder: `Search ${i.toLowerCase()}...`,
@@ -3144,7 +3152,7 @@ const Qr = (e) => {
3144
3152
  backgroundColor: w.includes(h.value) ? "rgb(var(--starasia-ui-raw-color-blue-50))" : "transparent"
3145
3153
  },
3146
3154
  onClick: (j) => {
3147
- j.stopPropagation(), I(h.value);
3155
+ j.stopPropagation(), u(h.value);
3148
3156
  },
3149
3157
  onMouseEnter: (j) => {
3150
3158
  w.includes(h.value) || (j.currentTarget.style.backgroundColor = "rgb(var(--starasia-ui-raw-color-gray-50))"), j.currentTarget.style.transform = "translateX(2px)";
@@ -3262,7 +3270,7 @@ const Qr = (e) => {
3262
3270
  /* @__PURE__ */ A("path", { d: e ? "M7 11V7a5 5 0 0 1 10 0v4" : "M7 11V7a5 5 0 0 1 9.9-1" })
3263
3271
  ]
3264
3272
  }
3265
- ), mA = "var(--starasia-ui-table-bg-default, #ffffff)", NA = "var(--starasia-ui-color-gray-100)", Ki = ({
3273
+ ), mA = "var(--starasia-ui-table-bg-default, #ffffff)", FA = "var(--starasia-ui-color-gray-100)", Ki = ({
3266
3274
  columns: e,
3267
3275
  records: i,
3268
3276
  handleDetail: r,
@@ -3276,33 +3284,33 @@ const Qr = (e) => {
3276
3284
  scrollParentRef: d,
3277
3285
  frozenCount: w = 0,
3278
3286
  onFrozenCountChange: B,
3279
- customActions: I,
3287
+ customActions: u,
3280
3288
  actionsOrder: b = ["detail", "update", "delete", "custom"],
3281
3289
  customEmptyState: h
3282
3290
  }) => {
3283
- const S = [r, o, t].filter((k) => k !== void 0).length, P = !!I, x = S === 3 ? P ? "178px" : "140px" : S === 2 ? P ? "140px" : "102px" : S === 1 ? P ? "112px" : "74px" : P ? "74px" : "", G = (k, f) => {
3291
+ const S = [r, o, t].filter((k) => k !== void 0).length, P = !!u, x = S === 3 ? P ? "178px" : "140px" : S === 2 ? P ? "140px" : "102px" : S === 1 ? P ? "112px" : "74px" : P ? "74px" : "", G = (k, f) => {
3284
3292
  if (!f) return k;
3285
3293
  if (typeof f == "function") return f(k);
3286
3294
  if (typeof f == "string") return k[f];
3287
- }, [u, z] = Y(!1);
3295
+ }, [I, z] = Y(!1);
3288
3296
  v(() => {
3289
3297
  if (!(d != null && d.current)) return;
3290
3298
  const k = d.current;
3291
3299
  z(k.scrollHeight > k.clientHeight);
3292
3300
  }, [i, d]);
3293
- const Z = eA(null), [R, X] = Y([]);
3301
+ const Z = eA(null), [R, $] = Y([]);
3294
3302
  KA(() => {
3295
3303
  if (!w || !Z.current) {
3296
- X([]);
3304
+ $([]);
3297
3305
  return;
3298
3306
  }
3299
3307
  const k = Array.from(
3300
3308
  Z.current.querySelectorAll("thead tr th")
3301
3309
  ), f = [];
3302
3310
  let E = 0;
3303
- k.forEach((D, F) => {
3304
- f[F] = E, F < w && (E += D.offsetWidth);
3305
- }), X(f);
3311
+ k.forEach((D, N) => {
3312
+ f[N] = E, N < w && (E += D.offsetWidth);
3313
+ }), $(f);
3306
3314
  }, [w, e, i]);
3307
3315
  const H = (k) => {
3308
3316
  B && B(k < w ? k : k + 1);
@@ -3317,7 +3325,7 @@ const Qr = (e) => {
3317
3325
  },
3318
3326
  children: /* @__PURE__ */ g(QA, { children: [
3319
3327
  e.map((k, f) => {
3320
- var F;
3328
+ var N;
3321
3329
  const E = w > 0 && f < w, D = R[f] ?? 0;
3322
3330
  return /* @__PURE__ */ A(
3323
3331
  RA,
@@ -3345,9 +3353,9 @@ const Qr = (e) => {
3345
3353
  minWidth: 0
3346
3354
  },
3347
3355
  children: [
3348
- /* @__PURE__ */ A("span", { style: { flex: 1, minWidth: 0 }, children: k.title || ((F = k.accessor) == null ? void 0 : F.toString()) }),
3356
+ /* @__PURE__ */ A("span", { style: { flex: 1, minWidth: 0 }, children: k.title || ((N = k.accessor) == null ? void 0 : N.toString()) }),
3349
3357
  k.filter && /* @__PURE__ */ A(
3350
- Fi,
3358
+ Ni,
3351
3359
  {
3352
3360
  filter: k.filter,
3353
3361
  columnTitle: k.title
@@ -3380,7 +3388,7 @@ const Qr = (e) => {
3380
3388
  `table-head-${f}`
3381
3389
  );
3382
3390
  }),
3383
- r || o || t || I ? /* @__PURE__ */ A(
3391
+ r || o || t || u ? /* @__PURE__ */ A(
3384
3392
  RA,
3385
3393
  {
3386
3394
  style: {
@@ -3408,27 +3416,27 @@ const Qr = (e) => {
3408
3416
  style: {
3409
3417
  transition: "background-color 0.3s ease",
3410
3418
  padding: 0,
3411
- borderBottom: f === i.length - 1 && u ? void 0 : "1px solid var(--starasia-ui-utility-fill-default)"
3419
+ borderBottom: f === i.length - 1 && I ? void 0 : "1px solid var(--starasia-ui-utility-fill-default)"
3412
3420
  },
3413
3421
  onMouseOver: (E) => {
3414
3422
  const D = E.currentTarget;
3415
- D.style.backgroundColor = NA, D.style.position = "relative", D.style.zIndex = "2", w > 0 && Array.from(D.querySelectorAll("td")).slice(0, w).forEach((K) => {
3416
- K.style.backgroundColor = NA;
3423
+ D.style.backgroundColor = FA, D.style.position = "relative", D.style.zIndex = "2", w > 0 && Array.from(D.querySelectorAll("td")).slice(0, w).forEach((K) => {
3424
+ K.style.backgroundColor = FA;
3417
3425
  });
3418
- const F = Array.from(D.querySelectorAll("td")).at(-1);
3419
- F && F.style.position === "sticky" && (F.style.backgroundColor = NA);
3426
+ const N = Array.from(D.querySelectorAll("td")).at(-1);
3427
+ N && N.style.position === "sticky" && (N.style.backgroundColor = FA);
3420
3428
  },
3421
3429
  onMouseOut: (E) => {
3422
3430
  const D = E.currentTarget;
3423
3431
  D.style.backgroundColor = "", D.style.position = "", D.style.zIndex = "", w > 0 && Array.from(D.querySelectorAll("td")).slice(0, w).forEach((K) => {
3424
3432
  K.style.backgroundColor = mA;
3425
3433
  });
3426
- const F = Array.from(D.querySelectorAll("td")).at(-1);
3427
- F && F.style.position === "sticky" && (F.style.backgroundColor = mA);
3434
+ const N = Array.from(D.querySelectorAll("td")).at(-1);
3435
+ N && N.style.position === "sticky" && (N.style.backgroundColor = mA);
3428
3436
  },
3429
3437
  children: [
3430
3438
  e.map((E, D) => {
3431
- const F = E.render ? E.render(k, f, i) : G(k, E.accessor), K = w > 0 && D < w, q = R[D] ?? 0;
3439
+ const N = E.render ? E.render(k, f, i) : G(k, E.accessor), K = w > 0 && D < w, q = R[D] ?? 0;
3432
3440
  return /* @__PURE__ */ A(
3433
3441
  BA,
3434
3442
  {
@@ -3443,7 +3451,7 @@ const Qr = (e) => {
3443
3451
  borderRight: E.showBorderRight ? "1px solid var(--starasia-ui-utility-fill-default)" : void 0,
3444
3452
  textAlign: E.textAlign === "text-right" ? "right" : E.textAlign === "text-center" ? "center" : "left"
3445
3453
  },
3446
- children: typeof F == "string" ? /* @__PURE__ */ A(
3454
+ children: typeof N == "string" ? /* @__PURE__ */ A(
3447
3455
  Q,
3448
3456
  {
3449
3457
  style: {
@@ -3452,14 +3460,14 @@ const Qr = (e) => {
3452
3460
  textOverflow: "ellipsis",
3453
3461
  textAlign: E.textAlign === "text-right" ? "right" : E.textAlign === "text-center" ? "center" : "left"
3454
3462
  },
3455
- children: F
3463
+ children: N
3456
3464
  }
3457
- ) : F
3465
+ ) : N
3458
3466
  },
3459
3467
  `row-${f}-col-${D}`
3460
3468
  );
3461
3469
  }),
3462
- r || o || t || I ? /* @__PURE__ */ A(BA, { style: {
3470
+ r || o || t || u ? /* @__PURE__ */ A(BA, { style: {
3463
3471
  width: x,
3464
3472
  position: "sticky",
3465
3473
  right: 0,
@@ -3491,7 +3499,7 @@ const Qr = (e) => {
3491
3499
  onClick: () => t(k.id, k),
3492
3500
  iconLeft: /* @__PURE__ */ A(M, { name: "Trash1", size: "sm", style: { color: "rgb(var(--starasia-ui-raw-color-red-600))" } })
3493
3501
  }
3494
- ) }, "delete") : E === "custom" ? /* @__PURE__ */ A(aA.Fragment, { children: I == null ? void 0 : I(k) }, "custom") : null;
3502
+ ) }, "delete") : E === "custom" ? /* @__PURE__ */ A(aA.Fragment, { children: u == null ? void 0 : u(k) }, "custom") : null;
3495
3503
  }) }) }) : null
3496
3504
  ]
3497
3505
  },
@@ -3533,7 +3541,7 @@ const Qr = (e) => {
3533
3541
  }
3534
3542
  ),
3535
3543
  d && /* @__PURE__ */ A(
3536
- Ni,
3544
+ Fi,
3537
3545
  {
3538
3546
  pagination: i == null ? void 0 : i.pagination,
3539
3547
  pageKey: i == null ? void 0 : i.pageKey,
@@ -3627,7 +3635,7 @@ const yr = Hi(Zi), EA = ({
3627
3635
  ]
3628
3636
  }
3629
3637
  );
3630
- }, FA = ({
3638
+ }, NA = ({
3631
3639
  dataApps: e,
3632
3640
  handleSwitch: i,
3633
3641
  title: r,
@@ -3714,7 +3722,7 @@ const yr = Hi(Zi), EA = ({
3714
3722
  /* @__PURE__ */ A(gA, { variant: "list" })
3715
3723
  ] }),
3716
3724
  children: /* @__PURE__ */ A(
3717
- FA,
3725
+ NA,
3718
3726
  {
3719
3727
  dataApps: o == null ? void 0 : o.map((w) => {
3720
3728
  var B;
@@ -3751,7 +3759,7 @@ const yr = Hi(Zi), EA = ({
3751
3759
  )
3752
3760
  ] }),
3753
3761
  /* @__PURE__ */ A(
3754
- FA,
3762
+ NA,
3755
3763
  {
3756
3764
  title: "Organization Apps",
3757
3765
  show: r == null ? void 0 : r.some((w) => w.isTenant),
@@ -3764,7 +3772,7 @@ const yr = Hi(Zi), EA = ({
3764
3772
  }
3765
3773
  ),
3766
3774
  /* @__PURE__ */ A(
3767
- FA,
3775
+ NA,
3768
3776
  {
3769
3777
  title: "Single Apps",
3770
3778
  show: r == null ? void 0 : r.some((w) => !w.isTenant),
@@ -3856,12 +3864,12 @@ const yr = Hi(Zi), EA = ({
3856
3864
  zA,
3857
3865
  {
3858
3866
  dataApps: (w = (d = l.data) == null ? void 0 : d.organizations) == null ? void 0 : w.map((B) => {
3859
- var I;
3867
+ var u;
3860
3868
  return {
3861
3869
  ...B,
3862
3870
  id: B.id,
3863
3871
  isTenant: !0,
3864
- applicationKey: ((I = l.data) == null ? void 0 : I.applicationKey) || ""
3872
+ applicationKey: ((u = l.data) == null ? void 0 : u.applicationKey) || ""
3865
3873
  };
3866
3874
  }),
3867
3875
  handleSwitch: o,
@@ -4134,7 +4142,7 @@ const yr = Hi(Zi), EA = ({
4134
4142
  ),
4135
4143
  /* @__PURE__ */ g(a, { gap: "xs", fullWidth: t.inputProps.fullWidth || !1, children: [
4136
4144
  /* @__PURE__ */ A(
4137
- IA,
4145
+ uA,
4138
4146
  {
4139
4147
  ref: t.inputRef,
4140
4148
  size: e,
@@ -4420,7 +4428,7 @@ const Xi = (e) => {
4420
4428
  return;
4421
4429
  }
4422
4430
  r.current && r.current.click();
4423
- }, t = V("md");
4431
+ }, t = X("md");
4424
4432
  return /* @__PURE__ */ g(W, { children: [
4425
4433
  /* @__PURE__ */ A(
4426
4434
  "input",
@@ -4651,7 +4659,7 @@ const Xi = (e) => {
4651
4659
  name: B.name,
4652
4660
  value: B.id,
4653
4661
  checked: B.isChecked,
4654
- onChange: (I) => n.onChecked(I.target.value, B),
4662
+ onChange: (u) => n.onChecked(u.target.value, B),
4655
4663
  label: B.name,
4656
4664
  description: B.description
4657
4665
  }
@@ -4665,7 +4673,7 @@ const Xi = (e) => {
4665
4673
  name: B.name,
4666
4674
  value: B.id,
4667
4675
  checked: B.isChecked,
4668
- onChange: (I) => n.onChecked(I.target.value, B),
4676
+ onChange: (u) => n.onChecked(u.target.value, B),
4669
4677
  label: B.name,
4670
4678
  description: B.description
4671
4679
  }
@@ -4927,9 +4935,9 @@ const Xi = (e) => {
4927
4935
  ...r
4928
4936
  }) => {
4929
4937
  const o = JA(), t = (l) => {
4930
- var s, C, d, w, B, I;
4938
+ var s, C, d, w, B, u;
4931
4939
  if (!l) return;
4932
- 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] : (I = (B = o == null ? void 0 : o.computed) == null ? void 0 : B.gray) == null ? void 0 : I[50];
4940
+ 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];
4933
4941
  return /* @__PURE__ */ A(M, { name: l, size: i, style: { color: c } });
4934
4942
  }, n = () => {
4935
4943
  var c, s, C, d;
@@ -5114,7 +5122,7 @@ const ee = {
5114
5122
  maxFileSize: s = 2,
5115
5123
  onError: C
5116
5124
  }, d) => {
5117
- const w = V("md"), [B, I] = Y(!1), [b, h] = Y(null), [j, S] = Y(!1), [P, x] = Y({ x: 0, y: 0 }), [G, u] = Y(1), [z, Z] = Y(null);
5125
+ const w = X("md"), [B, u] = Y(!1), [b, h] = Y(null), [j, S] = Y(!1), [P, x] = Y({ x: 0, y: 0 }), [G, I] = Y(1), [z, Z] = Y(null);
5118
5126
  v(() => {
5119
5127
  i === null && t(null);
5120
5128
  }, [i]);
@@ -5123,7 +5131,7 @@ const ee = {
5123
5131
  Z(m);
5124
5132
  },
5125
5133
  []
5126
- ), X = (q) => {
5134
+ ), $ = (q) => {
5127
5135
  var tA;
5128
5136
  const m = (tA = q.target.files) == null ? void 0 : tA[0];
5129
5137
  if (!m) return;
@@ -5155,8 +5163,8 @@ const ee = {
5155
5163
  }
5156
5164
  }));
5157
5165
  const E = parseInt(n, 10), D = ee[l];
5158
- let F, K;
5159
- return D >= 1 ? (K = E, F = E * D) : (F = E, K = E / D), /* @__PURE__ */ g(
5166
+ let N, K;
5167
+ return D >= 1 ? (K = E, N = E * D) : (N = E, K = E / D), /* @__PURE__ */ g(
5160
5168
  a,
5161
5169
  {
5162
5170
  display: "flex",
@@ -5170,13 +5178,13 @@ const ee = {
5170
5178
  align: "center",
5171
5179
  justify: "center",
5172
5180
  style: {
5173
- width: c != null && c.fullWidth ? "100%" : `${F}px`,
5181
+ width: c != null && c.fullWidth ? "100%" : `${N}px`,
5174
5182
  height: c != null && c.fullWidth ? "auto" : `${K}px`,
5175
5183
  aspectRatio: D,
5176
5184
  flexShrink: 0
5177
5185
  },
5178
- onMouseEnter: () => I(!0),
5179
- onMouseLeave: () => I(!1),
5186
+ onMouseEnter: () => u(!0),
5187
+ onMouseLeave: () => u(!1),
5180
5188
  children: [
5181
5189
  o || i ? /* @__PURE__ */ A(
5182
5190
  "img",
@@ -5232,7 +5240,7 @@ const ee = {
5232
5240
  ref: k,
5233
5241
  type: "file",
5234
5242
  accept: "image/*",
5235
- onChange: X,
5243
+ onChange: $,
5236
5244
  disabled: r,
5237
5245
  style: { display: "none" }
5238
5246
  }
@@ -5291,7 +5299,7 @@ const ee = {
5291
5299
  isShow: j,
5292
5300
  onHide: () => S(!1),
5293
5301
  style: {
5294
- minWidth: w ? l === "1:1" ? "20rem" : F * 2 : "100%"
5302
+ minWidth: w ? l === "1:1" ? "20rem" : N * 2 : "100%"
5295
5303
  },
5296
5304
  children: [
5297
5305
  /* @__PURE__ */ A(DA, { children: /* @__PURE__ */ A(
@@ -5311,7 +5319,7 @@ const ee = {
5311
5319
  zoom: G,
5312
5320
  aspect: l ? ee[l] : void 0,
5313
5321
  onCropChange: x,
5314
- onZoomChange: u,
5322
+ onZoomChange: I,
5315
5323
  onCropComplete: R,
5316
5324
  objectFit: "contain",
5317
5325
  minZoom: 0.5,
@@ -5580,7 +5588,7 @@ const ee = {
5580
5588
  }
5581
5589
  );
5582
5590
  }, Lr = ({ pageLayout: e, children: i }) => {
5583
- const r = V("lg");
5591
+ const r = X("lg");
5584
5592
  return /* @__PURE__ */ g(
5585
5593
  a,
5586
5594
  {
@@ -6076,7 +6084,7 @@ function wt({ width: e, height: i }) {
6076
6084
  ) });
6077
6085
  }
6078
6086
  function Yr({ onClick: e }) {
6079
- const i = V("md");
6087
+ const i = X("md");
6080
6088
  return /* @__PURE__ */ g(
6081
6089
  a,
6082
6090
  {
@@ -6327,7 +6335,7 @@ function dt({ width: e, height: i }) {
6327
6335
  ) });
6328
6336
  }
6329
6337
  function pr({ onClick: e }) {
6330
- const i = V("md");
6338
+ const i = X("md");
6331
6339
  return /* @__PURE__ */ g(
6332
6340
  a,
6333
6341
  {
@@ -7018,7 +7026,7 @@ function Qt({ width: e, height: i }) {
7018
7026
  ) });
7019
7027
  }
7020
7028
  function jr({ onClick: e }) {
7021
- const i = V("md");
7029
+ const i = X("md");
7022
7030
  return /* @__PURE__ */ g(
7023
7031
  a,
7024
7032
  {
@@ -7054,9 +7062,9 @@ function jr({ onClick: e }) {
7054
7062
  }
7055
7063
  );
7056
7064
  }
7057
- const Nr = (e) => {
7065
+ const Fr = (e) => {
7058
7066
  var r, o, t, n, l;
7059
- const i = V("md");
7067
+ const i = X("md");
7060
7068
  return /* @__PURE__ */ g(
7061
7069
  hA,
7062
7070
  {
@@ -7117,42 +7125,43 @@ const Nr = (e) => {
7117
7125
  },
7118
7126
  e.key
7119
7127
  );
7120
- }, Fr = AA(
7128
+ }, Nr = AA(
7121
7129
  ({
7122
7130
  children: e,
7123
7131
  height: i,
7124
7132
  minHeight: r,
7125
7133
  customHeight: o,
7126
- paddingInline: t = "spacing-24"
7134
+ paddingInline: t = "spacing-0",
7135
+ paddingBlock: n = "spacing-0"
7127
7136
  }) => {
7128
- const n = eA(null), [l, c] = Y("100vh");
7137
+ const l = eA(null), [c, s] = Y("100vh");
7129
7138
  return v(() => {
7130
- const s = () => {
7131
- if (n.current) {
7132
- const C = n.current.getBoundingClientRect().top;
7133
- c(`calc(100vh - ${C}px)`);
7139
+ const C = () => {
7140
+ if (l.current) {
7141
+ const d = l.current.getBoundingClientRect().top;
7142
+ s(`calc(100vh - ${d}px)`);
7134
7143
  }
7135
7144
  };
7136
- return s(), window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
7145
+ return C(), window.addEventListener("resize", C), () => window.removeEventListener("resize", C);
7137
7146
  }, []), /* @__PURE__ */ A(
7138
7147
  a,
7139
7148
  {
7140
- ref: n,
7149
+ ref: l,
7141
7150
  height: i,
7142
7151
  customMinHeight: r,
7143
7152
  customHeight: o,
7144
- paddingBlock: "xl",
7153
+ paddingBlock: n,
7145
7154
  paddingInline: t,
7146
7155
  bg: "white",
7147
7156
  style: {
7148
- minHeight: l
7157
+ minHeight: c
7149
7158
  },
7150
7159
  children: e
7151
7160
  }
7152
7161
  );
7153
7162
  }
7154
7163
  ), zr = (e) => {
7155
- const { defaultTab: i = 0, paramKey: r = "tab" } = e || {}, [o, t] = kA(), n = uA(o.toString());
7164
+ const { defaultTab: i = 0, paramKey: r = "tab" } = e || {}, [o, t] = kA(), n = IA(o.toString());
7156
7165
  return {
7157
7166
  activeTab: n[r] ? parseInt(n[r]) : i,
7158
7167
  handleTabChange: (s) => {
@@ -7186,7 +7195,7 @@ function Kr({
7186
7195
  }, [o.pathname]);
7187
7196
  }
7188
7197
  const Zr = () => {
7189
- const [e, i] = kA(), r = uA(e.toString()), o = ae(), t = GA(), n = o.id;
7198
+ const [e, i] = kA(), r = IA(e.toString()), o = ae(), t = GA(), n = o.id;
7190
7199
  return {
7191
7200
  // query params
7192
7201
  setSearchParams: i,
@@ -7211,14 +7220,14 @@ function Hr(e) {
7211
7220
  var s, C;
7212
7221
  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(
7213
7222
  (d, w) => {
7214
- const B = `is${w.toLowerCase().replace(/(^\w|_\w)/g, (I) => I.replace("_", "").toUpperCase())}`;
7223
+ const B = `is${w.toLowerCase().replace(/(^\w|_\w)/g, (u) => u.replace("_", "").toUpperCase())}`;
7215
7224
  return { ...d, [B]: !1 };
7216
7225
  },
7217
7226
  {}
7218
7227
  );
7219
7228
  return {
7220
7229
  ...Object.keys(e.role).reduce((d, w) => {
7221
- const B = `is${w.toLowerCase().replace(/(^\w|_\w)/g, (I) => I.replace("_", "").toUpperCase())}`;
7230
+ const B = `is${w.toLowerCase().replace(/(^\w|_\w)/g, (u) => u.replace("_", "").toUpperCase())}`;
7222
7231
  return {
7223
7232
  ...d,
7224
7233
  [B]: n === e.role[w]
@@ -7231,16 +7240,16 @@ function Hr(e) {
7231
7240
  }
7232
7241
  export {
7233
7242
  _t as ActionMenu,
7234
- ur as AdvanceFilter,
7243
+ Ir as AdvanceFilter,
7235
7244
  Oi as AdvanceFilterBar,
7236
7245
  Ut as App,
7237
- Fe as AppComponent,
7246
+ Ne as AppComponent,
7238
7247
  Ce as AppContext,
7239
7248
  Wt as AppLayout,
7240
7249
  Lr as AsideBar,
7241
7250
  vt as AuthLayout,
7242
- Fi as ColumnFilterDropdown,
7243
- Nr as ConfirmationDialog,
7251
+ Ni as ColumnFilterDropdown,
7252
+ Fr as ConfirmationDialog,
7244
7253
  Ki as DataTable,
7245
7254
  p as DecisionWrapper,
7246
7255
  EA as EachUtils,
@@ -7249,7 +7258,7 @@ export {
7249
7258
  br as FloatingFooter,
7250
7259
  pr as ForbiddenPage,
7251
7260
  Sr as Form,
7252
- Fr as FullSection,
7261
+ Nr as FullSection,
7253
7262
  Pt as HorizontalField,
7254
7263
  $i as InputFile,
7255
7264
  ct as InputImage,
@@ -7265,7 +7274,7 @@ export {
7265
7274
  jr as ServerErrorPage,
7266
7275
  ze as SidebarHeaderSlot,
7267
7276
  xr as SwitchApps,
7268
- Ni as TableFooter,
7277
+ Fi as TableFooter,
7269
7278
  pi as TableHeader,
7270
7279
  yr as TableSection,
7271
7280
  Yi as TableWrapper,
@@ -7281,7 +7290,7 @@ export {
7281
7290
  Mr as getDateFilterValue,
7282
7291
  Er as getDateRangeFilterValue,
7283
7292
  tr as getInitials,
7284
- Ir as getValueDropdownMultipleFilter,
7293
+ ur as getValueDropdownMultipleFilter,
7285
7294
  kr as getValueRadioFilter,
7286
7295
  bi as getValueSearch,
7287
7296
  jA as getValuesFilter,
@@ -7305,7 +7314,7 @@ export {
7305
7314
  lr as textWidth,
7306
7315
  Dr as useAdvanceFilter,
7307
7316
  Be as useApp,
7308
- Ne as useAppState,
7317
+ Fe as useAppState,
7309
7318
  Hr as useAuthRole,
7310
7319
  Kr as useDynamicTitle,
7311
7320
  we as useModuleSelection,