@starasia/admin 1.2.9 → 1.2.11

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,29 +3,29 @@ import { Badges as XA } from "@starasia/badges";
3
3
  export * from "@starasia/badges";
4
4
  import { Box as a } from "@starasia/box";
5
5
  export * from "@starasia/box";
6
- import { Button as b } from "@starasia/button";
6
+ import { Button as O } from "@starasia/button";
7
7
  export * from "@starasia/button";
8
8
  export * from "@starasia/card";
9
9
  import { StarasiaDate as $A } from "@starasia/date";
10
10
  export * from "@starasia/date";
11
- import { Dialog as QA, DialogBody as hA, DialogTitle as BA, DialogFooter as xA } from "@starasia/dialog";
11
+ import { Dialog as hA, DialogBody as DA, DialogTitle as dA, DialogFooter as xA } from "@starasia/dialog";
12
12
  export * from "@starasia/dialog";
13
13
  import { Drawer as ae } from "@starasia/drawer";
14
14
  export * from "@starasia/drawer";
15
15
  import { Dropdown as fA } from "@starasia/dropdown";
16
16
  export * from "@starasia/dropdown";
17
- import { useMediaQuery as V, useConfirmation as _A } from "@starasia/hooks";
17
+ import { useMediaQuery as X, useConfirmation as _A } from "@starasia/hooks";
18
18
  export * from "@starasia/hooks";
19
- import { searchParamsToObject as DA } 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
23
  import { Menu as Ce, MenuButton as Be, MenuLists as we, MenuBody as de } from "@starasia/menu";
24
24
  export * from "@starasia/menu";
25
25
  import { Pagination as Qe } from "@starasia/pagination";
26
26
  export * from "@starasia/pagination";
27
27
  export * from "@starasia/storage";
28
- import { Tr as dA, Td as sA, Table as Ae, Thead as he, Th as TA, Tbody as De } from "@starasia/table";
28
+ import { Tr as QA, Td as BA, Table as Ae, Thead as he, Th as TA, Tbody as De } from "@starasia/table";
29
29
  export * from "@starasia/table";
30
30
  export * from "@starasia/tabs";
31
31
  import { Textarea as Ie } from "@starasia/textarea";
@@ -35,28 +35,28 @@ export * from "@starasia/theme";
35
35
  export * from "@starasia/toast";
36
36
  import { Toggle as ee } from "@starasia/toggle";
37
37
  export * from "@starasia/toggle";
38
- import { Tooltip as iA } from "@starasia/tooltip";
38
+ import { Tooltip as tA } from "@starasia/tooltip";
39
39
  export * from "@starasia/tooltip";
40
40
  import { Checkbox as FA } from "@starasia/checkbox";
41
41
  export * from "@starasia/checkbox";
42
- import { Radio as Me } from "@starasia/radio";
42
+ import { Radio as Ee } from "@starasia/radio";
43
43
  export * from "@starasia/radio";
44
44
  import { Text as Q } from "@starasia/text";
45
45
  export * from "@starasia/text";
46
46
  import { Icon as m } from "@starasia/icon";
47
47
  export * from "@starasia/icon";
48
- import { Flex as J } from "@starasia/flex";
48
+ import { Flex as q } from "@starasia/flex";
49
49
  export * from "@starasia/flex";
50
50
  export * from "@starasia/progress";
51
51
  export * from "@starasia/stepper";
52
52
  export * from "@starasia/accordion";
53
53
  export * from "@starasia/story-record";
54
- import { Skeleton as lA } from "@starasia/skeleton";
54
+ import { Skeleton as cA } from "@starasia/skeleton";
55
55
  export * from "@starasia/skeleton";
56
- import { jsx as A, jsxs as g, Fragment as W } from "react/jsx-runtime";
57
- import cA, { createContext as Ee, useState as G, useContext as me, memo as _, useRef as AA, useEffect as R, useLayoutEffect as zA, useMemo as oA, isValidElement as ie, forwardRef as HA, useCallback as JA, Children as ye, useImperativeHandle as xe } from "react";
56
+ import { jsx as A, jsxs as s, Fragment as W } from "react/jsx-runtime";
57
+ import gA, { createContext as Me, useState as b, useContext as me, memo as _, useRef as eA, useEffect as U, useLayoutEffect as zA, useMemo as oA, isValidElement as ie, forwardRef as HA, useCallback as JA, Children as ye, useImperativeHandle as xe } from "react";
58
58
  import "@starasia/css/dist/style.css";
59
- import { useSearchParams as uA, useNavigate as te, useLocation as SA, Outlet as WA, Link as fe, useParams as re } from "react-router";
59
+ import { useSearchParams as kA, useNavigate as te, useLocation as SA, Outlet as WA, Link as fe, useParams as re } from "react-router";
60
60
  import Se from "react-easy-crop";
61
61
  const Le = {
62
62
  menus: [],
@@ -66,8 +66,8 @@ const Le = {
66
66
  userData: null,
67
67
  setUserData: () => {
68
68
  }
69
- }, oe = Ee(Le), be = () => me(oe), Ge = (e) => {
70
- const [i, r] = G(
69
+ }, oe = Me(Le), be = () => me(oe), Ge = (e) => {
70
+ const [i, r] = b(
71
71
  (e == null ? void 0 : e.initialUserData) || null
72
72
  );
73
73
  return {
@@ -83,7 +83,7 @@ const Le = {
83
83
  initialUserData: n,
84
84
  theme: l
85
85
  }) => {
86
- const c = Ge({ initialUserData: n }), { theme: s } = ue();
86
+ const c = Ge({ initialUserData: n }), { theme: g } = ue();
87
87
  return /* @__PURE__ */ A(
88
88
  oe.Provider,
89
89
  {
@@ -95,7 +95,7 @@ const Le = {
95
95
  setUserData: c.setUserData,
96
96
  menuBottom: r
97
97
  },
98
- children: l ? /* @__PURE__ */ A(UA, { value: l, children: e }) : s ? /* @__PURE__ */ A(UA, { value: s, children: e }) : e
98
+ children: l ? /* @__PURE__ */ A(UA, { value: l, children: e }) : g ? /* @__PURE__ */ A(UA, { value: g, children: e }) : e
99
99
  }
100
100
  );
101
101
  }, Kt = _(Oe);
@@ -142,7 +142,7 @@ function pe({
142
142
  t(l), i();
143
143
  };
144
144
  return /* @__PURE__ */ A(
145
- QA,
145
+ hA,
146
146
  {
147
147
  isShow: e,
148
148
  onHide: i,
@@ -152,7 +152,7 @@ function pe({
152
152
  boxShadow: "none",
153
153
  border: "none"
154
154
  },
155
- children: /* @__PURE__ */ A(hA, { children: /* @__PURE__ */ g(
155
+ children: /* @__PURE__ */ A(DA, { children: /* @__PURE__ */ s(
156
156
  "div",
157
157
  {
158
158
  style: {
@@ -161,7 +161,7 @@ function pe({
161
161
  gap: "16px"
162
162
  },
163
163
  children: [
164
- /* @__PURE__ */ g(
164
+ /* @__PURE__ */ s(
165
165
  "button",
166
166
  {
167
167
  onClick: () => n(null),
@@ -215,8 +215,8 @@ function pe({
215
215
  ),
216
216
  r.map((l) => {
217
217
  var C;
218
- const c = o === l.id, s = ((C = l.items[0]) == null ? void 0 : C.icon) ?? "Grid";
219
- return /* @__PURE__ */ g(
218
+ const c = o === l.id, g = ((C = l.items[0]) == null ? void 0 : C.icon) ?? "Grid";
219
+ return /* @__PURE__ */ s(
220
220
  "button",
221
221
  {
222
222
  onClick: () => n(l.id),
@@ -246,7 +246,7 @@ function pe({
246
246
  transition: "all 0.15s",
247
247
  backdropFilter: "blur(4px)"
248
248
  },
249
- children: /* @__PURE__ */ A(m, { name: s, size: "md" })
249
+ children: /* @__PURE__ */ A(m, { name: g, size: "md" })
250
250
  }
251
251
  ),
252
252
  /* @__PURE__ */ A(
@@ -276,7 +276,7 @@ function pe({
276
276
  }
277
277
  );
278
278
  }
279
- let EA = 0, gA = !1;
279
+ let MA = 0, CA = !1;
280
280
  function Zt({
281
281
  children: e,
282
282
  headerRight: i,
@@ -286,122 +286,122 @@ function Zt({
286
286
  isLoggingOut: n,
287
287
  loadingComponent: l,
288
288
  sidebarHeaderContent: c,
289
- showModuleSwitcher: s = !0
289
+ showModuleSwitcher: g = !0
290
290
  }) {
291
- const [C] = uA(), d = C.get("embed") === "true", w = be(), B = te(), u = SA(), h = !V("md"), [Y, p] = G(!1), [N, U] = G(!1), [L, k] = G(!1), [Z, H] = G(/* @__PURE__ */ new Set()), [P, X] = G(!1), [q, E] = G(!1), [f, M] = G(null), D = AA(null), F = AA(null);
292
- R(() => {
293
- const I = D.current;
294
- if (!I) return;
291
+ const [C] = kA(), d = C.get("embed") === "true", w = be(), B = te(), I = SA(), h = !X("md"), [j, p] = b(!1), [N, R] = b(!1), [f, k] = b(!1), [P, Z] = b(/* @__PURE__ */ new Set()), [V, AA] = b(!1), [T, E] = b(!1), [S, M] = b(null), D = eA(null), F = eA(null);
292
+ U(() => {
293
+ const u = D.current;
294
+ if (!u) return;
295
295
  const y = () => {
296
- gA || (EA = I.scrollTop);
296
+ CA || (MA = u.scrollTop);
297
297
  };
298
- return I.addEventListener("scroll", y), () => I.removeEventListener("scroll", y);
298
+ return u.addEventListener("scroll", y), () => u.removeEventListener("scroll", y);
299
299
  }, []);
300
300
  const x = () => {
301
- const I = D.current;
302
- I && EA > 0 && (gA = !0, I.scrollTop = EA, requestAnimationFrame(() => {
303
- gA = !1;
301
+ const u = D.current;
302
+ u && MA > 0 && (CA = !0, u.scrollTop = MA, requestAnimationFrame(() => {
303
+ CA = !1;
304
304
  }));
305
305
  };
306
306
  zA(() => {
307
- gA = !0, x();
308
- const I = setTimeout(() => {
309
- gA = !1;
307
+ CA = !0, x();
308
+ const u = setTimeout(() => {
309
+ CA = !1;
310
310
  }, 300);
311
- return () => clearTimeout(I);
311
+ return () => clearTimeout(u);
312
312
  }, []), zA(() => {
313
- w.menus.length > 0 && (EA > 0 ? x() : requestAnimationFrame(() => {
313
+ w.menus.length > 0 && (MA > 0 ? x() : requestAnimationFrame(() => {
314
314
  var y;
315
- const I = (y = D.current) == null ? void 0 : y.querySelector(
315
+ const u = (y = D.current) == null ? void 0 : y.querySelector(
316
316
  "[data-menu-active='true']"
317
317
  );
318
- I && I.scrollIntoView({ block: "center", behavior: "instant" });
318
+ u && u.scrollIntoView({ block: "center", behavior: "instant" });
319
319
  }));
320
- }, [w.menus]), R(() => {
321
- gA = !0, x();
322
- const I = setTimeout(x, 0), y = setTimeout(x, 50), S = setTimeout(x, 100), v = setTimeout(x, 200), eA = setTimeout(() => {
323
- gA = !1;
320
+ }, [w.menus]), U(() => {
321
+ CA = !0, x();
322
+ const u = setTimeout(x, 0), y = setTimeout(x, 50), L = setTimeout(x, 100), v = setTimeout(x, 200), iA = setTimeout(() => {
323
+ CA = !1;
324
324
  }, 300);
325
325
  return () => {
326
- clearTimeout(I), clearTimeout(y), clearTimeout(S), clearTimeout(v), clearTimeout(eA);
326
+ clearTimeout(u), clearTimeout(y), clearTimeout(L), clearTimeout(v), clearTimeout(iA);
327
327
  };
328
- }, [u.pathname]), R(() => {
328
+ }, [I.pathname]), U(() => {
329
329
  F.current && (F.current.scrollTop = 0);
330
- }, [u.pathname]), R(() => {
330
+ }, [I.pathname]), U(() => {
331
331
  h && k(!1);
332
- }, [u.pathname, h]), R(() => {
333
- h && U(!0);
332
+ }, [I.pathname, h]), U(() => {
333
+ h && R(!0);
334
334
  }, [h]);
335
- const T = () => {
335
+ const H = () => {
336
336
  p(!0);
337
- }, tA = () => {
337
+ }, z = () => {
338
338
  p(!1);
339
- }, wA = () => {
339
+ }, sA = () => {
340
340
  p(!1), t();
341
- }, MA = w.menus.flatMap(
342
- (I) => I.items.flatMap((y) => {
343
- const S = [y.to];
344
- return y.children && S.push(...y.children.map((v) => v.to)), S;
341
+ }, aA = w.menus.flatMap(
342
+ (u) => u.items.flatMap((y) => {
343
+ const L = [y.to];
344
+ return y.children && L.push(...y.children.map((v) => v.to)), L;
345
345
  })
346
- ), CA = (I) => {
347
- if (!u.pathname.startsWith(I)) return !1;
348
- const y = MA.filter((S) => u.pathname.startsWith(S)).sort((S, v) => v.length - S.length)[0];
349
- return I === y;
346
+ ), lA = (u) => {
347
+ if (!I.pathname.startsWith(u)) return !1;
348
+ const y = aA.filter((L) => I.pathname.startsWith(L)).sort((L, v) => v.length - L.length)[0];
349
+ return u === y;
350
350
  };
351
- R(() => {
352
- w.menus.forEach((I) => {
353
- I.items.forEach((y) => {
354
- var S;
355
- (S = y.children) != null && S.some((v) => u.pathname.startsWith(v.to)) && H((v) => {
356
- const eA = new Set(v);
357
- return eA.add(y.id), eA;
351
+ U(() => {
352
+ w.menus.forEach((u) => {
353
+ u.items.forEach((y) => {
354
+ var L;
355
+ (L = y.children) != null && L.some((v) => I.pathname.startsWith(v.to)) && Z((v) => {
356
+ const iA = new Set(v);
357
+ return iA.add(y.id), iA;
358
358
  });
359
359
  });
360
360
  });
361
- }, [u.pathname, w.menus]);
362
- const ge = (I) => {
363
- H((y) => {
364
- const S = new Set(y);
365
- return S.has(I) ? S.delete(I) : S.add(I), S;
361
+ }, [I.pathname, w.menus]);
362
+ const ge = (u) => {
363
+ Z((y) => {
364
+ const L = new Set(y);
365
+ return L.has(u) ? L.delete(u) : L.add(u), L;
366
366
  });
367
367
  };
368
- R(() => {
368
+ U(() => {
369
369
  if (w.menus.length === 0) return;
370
- const I = localStorage.getItem("moduleSwitcherGroupId");
371
- if (I !== null) {
372
- const y = Number(I), S = w.menus.some((v) => v.id === y);
373
- M(S ? y : null);
370
+ const u = localStorage.getItem("moduleSwitcherGroupId");
371
+ if (u !== null) {
372
+ const y = Number(u), L = w.menus.some((v) => v.id === y);
373
+ M(L ? y : null);
374
374
  }
375
375
  }, [w.menus]);
376
- const se = (I) => {
376
+ const se = (u) => {
377
377
  var y;
378
- if (M(I), I === null)
378
+ if (M(u), u === null)
379
379
  localStorage.removeItem("moduleSwitcherGroupId");
380
380
  else {
381
- localStorage.setItem("moduleSwitcherGroupId", String(I));
382
- const S = w.menus.find((eA) => eA.id === I), v = (y = S == null ? void 0 : S.items[0]) == null ? void 0 : y.to;
381
+ localStorage.setItem("moduleSwitcherGroupId", String(u));
382
+ const L = w.menus.find((iA) => iA.id === u), v = (y = L == null ? void 0 : L.items[0]) == null ? void 0 : y.to;
383
383
  v && B(v);
384
384
  }
385
385
  }, bA = oA(() => {
386
- if (f !== null)
386
+ if (S !== null)
387
387
  return w.menus.filter(
388
- (S) => S.id === f || S.parentGroupId === f
388
+ (L) => L.id === S || L.parentGroupId === S
389
389
  );
390
- const I = w.menus.filter((S) => S.parentGroupId === void 0), y = w.menus.filter((S) => S.parentGroupId !== void 0).flatMap((S) => S.items);
391
- return y.length === 0 ? I : [
392
- ...I,
390
+ const u = w.menus.filter((L) => L.parentGroupId === void 0), y = w.menus.filter((L) => L.parentGroupId !== void 0).flatMap((L) => L.items);
391
+ return y.length === 0 ? u : [
392
+ ...u,
393
393
  { id: 18, name: "Pengaturan", items: y, parentGroupId: void 0 }
394
394
  ];
395
- }, [w.menus, f]), GA = oA(
396
- () => bA.filter((I) => I.parentGroupId !== void 0 || I.id === 18).flatMap((I) => I.items),
395
+ }, [w.menus, S]), GA = oA(
396
+ () => bA.filter((u) => u.parentGroupId !== void 0 || u.id === 18).flatMap((u) => u.items),
397
397
  [bA]
398
398
  );
399
- return R(() => {
400
- X(!1);
401
- }, [u.pathname]), R(() => {
402
- s || E(!1);
403
- }, [s]), d ? /* @__PURE__ */ A("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "#f9fafb" }, children: e || /* @__PURE__ */ A(WA, {}) }) : /* @__PURE__ */ g(W, { children: [
404
- /* @__PURE__ */ g(
399
+ return U(() => {
400
+ AA(!1);
401
+ }, [I.pathname]), U(() => {
402
+ g || E(!1);
403
+ }, [g]), d ? /* @__PURE__ */ A("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "#f9fafb" }, children: e || /* @__PURE__ */ A(WA, {}) }) : /* @__PURE__ */ s(W, { children: [
404
+ /* @__PURE__ */ s(
405
405
  "div",
406
406
  {
407
407
  style: {
@@ -410,7 +410,7 @@ function Zt({
410
410
  // backgroundColor: "#f9fafb",
411
411
  position: "relative",
412
412
  "--app-sidebar-width": h ? "0px" : N ? "4rem" : "16rem",
413
- "--app-footer-zindex": h && L ? "40" : "999"
413
+ "--app-footer-zindex": h && f ? "40" : "999"
414
414
  },
415
415
  children: [
416
416
  h && /* @__PURE__ */ A(
@@ -421,14 +421,14 @@ function Zt({
421
421
  inset: 0,
422
422
  backgroundColor: "rgba(0, 0, 0, 0.5)",
423
423
  zIndex: 40,
424
- opacity: L ? 0.5 : 0,
425
- pointerEvents: L ? "auto" : "none",
424
+ opacity: f ? 0.5 : 0,
425
+ pointerEvents: f ? "auto" : "none",
426
426
  transition: "opacity 0.3s"
427
427
  },
428
428
  onClick: () => k(!1)
429
429
  }
430
430
  ),
431
- /* @__PURE__ */ g(
431
+ /* @__PURE__ */ s(
432
432
  "aside",
433
433
  {
434
434
  style: {
@@ -437,7 +437,7 @@ function Zt({
437
437
  ...h && {
438
438
  inset: 0,
439
439
  zIndex: 50,
440
- transform: L ? "translateX(0)" : "translateX(-100%)"
440
+ transform: f ? "translateX(0)" : "translateX(-100%)"
441
441
  },
442
442
  backgroundColor: "white",
443
443
  borderRight: "1px solid #e5e7eb",
@@ -447,7 +447,7 @@ function Zt({
447
447
  flexShrink: h ? void 0 : 0
448
448
  },
449
449
  children: [
450
- /* @__PURE__ */ g(
450
+ /* @__PURE__ */ s(
451
451
  "div",
452
452
  {
453
453
  style: {
@@ -459,7 +459,7 @@ function Zt({
459
459
  borderBottom: "1px solid #e5e7eb"
460
460
  },
461
461
  children: [
462
- /* @__PURE__ */ g(
462
+ /* @__PURE__ */ s(
463
463
  "div",
464
464
  {
465
465
  style: {
@@ -481,7 +481,7 @@ function Zt({
481
481
  }
482
482
  }
483
483
  ),
484
- (!N || L) && /* @__PURE__ */ A(
484
+ (!N || f) && /* @__PURE__ */ A(
485
485
  "span",
486
486
  {
487
487
  style: {
@@ -535,7 +535,7 @@ function Zt({
535
535
  !h && /* @__PURE__ */ A(
536
536
  "button",
537
537
  {
538
- onClick: () => U(!N),
538
+ onClick: () => R(!N),
539
539
  style: {
540
540
  position: "absolute",
541
541
  top: "1.5rem",
@@ -567,7 +567,7 @@ function Zt({
567
567
  strokeWidth: "2",
568
568
  children: N ? (
569
569
  // Icon when collapsed (closed) - sidebar with arrow right
570
- /* @__PURE__ */ g(W, { children: [
570
+ /* @__PURE__ */ s(W, { children: [
571
571
  /* @__PURE__ */ A(
572
572
  "path",
573
573
  {
@@ -587,7 +587,7 @@ function Zt({
587
587
  ] })
588
588
  ) : (
589
589
  // Icon when expanded (open) - sidebar with arrow left
590
- /* @__PURE__ */ g(W, { children: [
590
+ /* @__PURE__ */ s(W, { children: [
591
591
  /* @__PURE__ */ A(
592
592
  "path",
593
593
  {
@@ -627,7 +627,7 @@ function Zt({
627
627
  paddingTop: "0.5rem",
628
628
  paddingBottom: "0.5rem"
629
629
  },
630
- children: bA.map((I) => /* @__PURE__ */ g("div", { style: { marginBottom: "1rem" }, children: [
630
+ children: bA.map((u) => /* @__PURE__ */ s("div", { style: { marginBottom: "1rem" }, children: [
631
631
  (!N || h) && /* @__PURE__ */ A(
632
632
  "div",
633
633
  {
@@ -643,17 +643,17 @@ function Zt({
643
643
  letterSpacing: "0.05em",
644
644
  transition: "opacity 0.3s"
645
645
  },
646
- children: I.name
646
+ children: u.name
647
647
  }
648
648
  ),
649
- /* @__PURE__ */ A("div", { style: { paddingLeft: "0.5rem", paddingRight: "0.5rem", display: "flex", flexDirection: "column", gap: "var(--starasia-ui-spacing-xs)" }, children: I.items.map((y) => {
650
- const S = y.children && y.children.length > 0, v = Z.has(y.id), eA = S ? y.children.some(($) => CA($.to)) : CA(y.to);
651
- return /* @__PURE__ */ g("div", { "data-menu-active": eA || void 0, children: [
652
- /* @__PURE__ */ g(
649
+ /* @__PURE__ */ A("div", { style: { paddingLeft: "0.5rem", paddingRight: "0.5rem", display: "flex", flexDirection: "column", gap: "var(--starasia-ui-spacing-xs)" }, children: u.items.map((y) => {
650
+ const L = y.children && y.children.length > 0, v = P.has(y.id), iA = L ? y.children.some(($) => lA($.to)) : lA(y.to);
651
+ return /* @__PURE__ */ s("div", { "data-menu-active": iA || void 0, children: [
652
+ /* @__PURE__ */ s(
653
653
  "button",
654
654
  {
655
655
  onClick: () => {
656
- S ? ge(y.id) : B(y.to);
656
+ L ? ge(y.id) : B(y.to);
657
657
  },
658
658
  style: {
659
659
  width: "100%",
@@ -668,21 +668,21 @@ function Zt({
668
668
  borderRadius: "var(--starasia-ui-radii-md)",
669
669
  textAlign: "left",
670
670
  border: "none",
671
- backgroundColor: eA ? "var(--starasia-ui-brand-primary-tertiary)" : "transparent",
672
- color: eA ? "var(--starasia-ui-brand-primary-default)" : "#374151",
671
+ backgroundColor: iA ? "var(--starasia-ui-brand-primary-tertiary)" : "transparent",
672
+ color: iA ? "var(--starasia-ui-brand-primary-default)" : "#374151",
673
673
  transition: "all 0.2s",
674
674
  cursor: "pointer"
675
675
  },
676
676
  title: N && !h ? y.title : void 0,
677
677
  onMouseEnter: ($) => {
678
- eA || ($.currentTarget.style.backgroundColor = "#f3f4f6");
678
+ iA || ($.currentTarget.style.backgroundColor = "#f3f4f6");
679
679
  },
680
680
  onMouseLeave: ($) => {
681
- eA || ($.currentTarget.style.backgroundColor = "transparent");
681
+ iA || ($.currentTarget.style.backgroundColor = "transparent");
682
682
  },
683
683
  children: [
684
684
  /* @__PURE__ */ A(m, { name: y.icon, size: "sm", style: { flexShrink: 0 } }),
685
- (!N || h) && /* @__PURE__ */ g(W, { children: [
685
+ (!N || h) && /* @__PURE__ */ s(W, { children: [
686
686
  /* @__PURE__ */ A(
687
687
  "span",
688
688
  {
@@ -696,7 +696,7 @@ function Zt({
696
696
  children: y.title
697
697
  }
698
698
  ),
699
- S && /* @__PURE__ */ A(
699
+ L && /* @__PURE__ */ A(
700
700
  "svg",
701
701
  {
702
702
  style: {
@@ -724,7 +724,7 @@ function Zt({
724
724
  ]
725
725
  }
726
726
  ),
727
- S && (!N || h) && /* @__PURE__ */ A(
727
+ L && (!N || h) && /* @__PURE__ */ A(
728
728
  "div",
729
729
  {
730
730
  style: {
@@ -737,7 +737,7 @@ function Zt({
737
737
  opacity: v ? 1 : 0,
738
738
  marginTop: v ? "0.25rem" : "0px"
739
739
  },
740
- children: y.children.map(($) => /* @__PURE__ */ g(
740
+ children: y.children.map(($) => /* @__PURE__ */ s(
741
741
  "button",
742
742
  {
743
743
  onClick: () => B($.to),
@@ -753,16 +753,16 @@ function Zt({
753
753
  borderRadius: "var(--starasia-ui-radii-md)",
754
754
  textAlign: "left",
755
755
  border: "none",
756
- backgroundColor: CA($.to) ? "var(--starasia-ui-brand-primary-tertiary)" : "transparent",
757
- color: CA($.to) ? "var(--starasia-ui-brand-primary-default)" : "#4b5563",
756
+ backgroundColor: lA($.to) ? "var(--starasia-ui-brand-primary-tertiary)" : "transparent",
757
+ color: lA($.to) ? "var(--starasia-ui-brand-primary-default)" : "#4b5563",
758
758
  transition: "all 0.2s",
759
759
  cursor: "pointer"
760
760
  },
761
761
  onMouseEnter: (OA) => {
762
- CA($.to) || (OA.currentTarget.style.backgroundColor = "#f3f4f6");
762
+ lA($.to) || (OA.currentTarget.style.backgroundColor = "#f3f4f6");
763
763
  },
764
764
  onMouseLeave: (OA) => {
765
- CA($.to) || (OA.currentTarget.style.backgroundColor = "transparent");
765
+ lA($.to) || (OA.currentTarget.style.backgroundColor = "transparent");
766
766
  },
767
767
  children: [
768
768
  /* @__PURE__ */ A(
@@ -792,14 +792,14 @@ function Zt({
792
792
  )
793
793
  ] }, y.id);
794
794
  }) })
795
- ] }, I.id))
795
+ ] }, u.id))
796
796
  }
797
797
  )
798
798
  ]
799
799
  }
800
800
  ),
801
- /* @__PURE__ */ g("div", { style: { flex: 1, display: "flex", flexDirection: "column", overflow: "hidden" }, children: [
802
- /* @__PURE__ */ g(
801
+ /* @__PURE__ */ s("div", { style: { flex: 1, display: "flex", flexDirection: "column", overflow: "hidden" }, children: [
802
+ /* @__PURE__ */ s(
803
803
  "header",
804
804
  {
805
805
  style: {
@@ -814,7 +814,7 @@ function Zt({
814
814
  flexShrink: 0
815
815
  },
816
816
  children: [
817
- /* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center", gap: "1rem" }, children: [
817
+ /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", gap: "1rem" }, children: [
818
818
  h && /* @__PURE__ */ A(
819
819
  "button",
820
820
  {
@@ -849,8 +849,8 @@ function Zt({
849
849
  ),
850
850
  i
851
851
  ] }),
852
- /* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem" }, children: [
853
- s && /* @__PURE__ */ g("div", { style: { position: "relative" }, children: [
852
+ /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem" }, children: [
853
+ g && /* @__PURE__ */ s("div", { style: { position: "relative" }, children: [
854
854
  /* @__PURE__ */ A(
855
855
  "button",
856
856
  {
@@ -868,16 +868,16 @@ function Zt({
868
868
  cursor: "pointer"
869
869
  },
870
870
  "aria-label": "Pilih module",
871
- onMouseEnter: (I) => {
872
- I.currentTarget.style.backgroundColor = "#f9fafb";
871
+ onMouseEnter: (u) => {
872
+ u.currentTarget.style.backgroundColor = "#f9fafb";
873
873
  },
874
- onMouseLeave: (I) => {
875
- I.currentTarget.style.backgroundColor = "transparent";
874
+ onMouseLeave: (u) => {
875
+ u.currentTarget.style.backgroundColor = "transparent";
876
876
  },
877
877
  children: /* @__PURE__ */ A(m, { name: "GridApplication", size: "sm" })
878
878
  }
879
879
  ),
880
- f !== null && /* @__PURE__ */ A(
880
+ S !== null && /* @__PURE__ */ A(
881
881
  "span",
882
882
  {
883
883
  style: {
@@ -893,11 +893,11 @@ function Zt({
893
893
  }
894
894
  )
895
895
  ] }),
896
- GA.length > 0 && /* @__PURE__ */ g("div", { style: { position: "relative" }, children: [
896
+ GA.length > 0 && /* @__PURE__ */ s("div", { style: { position: "relative" }, children: [
897
897
  /* @__PURE__ */ A(
898
898
  "button",
899
899
  {
900
- onClick: () => X((I) => !I),
900
+ onClick: () => AA((u) => !u),
901
901
  style: {
902
902
  display: "inline-flex",
903
903
  alignItems: "center",
@@ -911,16 +911,16 @@ function Zt({
911
911
  cursor: "pointer"
912
912
  },
913
913
  "aria-label": "Shortcut pengaturan",
914
- onMouseEnter: (I) => {
915
- I.currentTarget.style.backgroundColor = "#f9fafb";
914
+ onMouseEnter: (u) => {
915
+ u.currentTarget.style.backgroundColor = "#f9fafb";
916
916
  },
917
- onMouseLeave: (I) => {
918
- I.currentTarget.style.backgroundColor = "transparent";
917
+ onMouseLeave: (u) => {
918
+ u.currentTarget.style.backgroundColor = "transparent";
919
919
  },
920
920
  children: /* @__PURE__ */ A(m, { name: "Settings", size: "sm" })
921
921
  }
922
922
  ),
923
- P && /* @__PURE__ */ A(
923
+ V && /* @__PURE__ */ A(
924
924
  "div",
925
925
  {
926
926
  style: {
@@ -936,11 +936,11 @@ function Zt({
936
936
  paddingTop: "0.25rem",
937
937
  paddingBottom: "0.25rem"
938
938
  },
939
- children: GA.map((I) => /* @__PURE__ */ g(
939
+ children: GA.map((u) => /* @__PURE__ */ s(
940
940
  "button",
941
941
  {
942
942
  onClick: () => {
943
- B(I.to), X(!1);
943
+ B(u.to), AA(!1);
944
944
  },
945
945
  style: {
946
946
  width: "100%",
@@ -965,11 +965,11 @@ function Zt({
965
965
  y.currentTarget.style.backgroundColor = "transparent";
966
966
  },
967
967
  children: [
968
- /* @__PURE__ */ A(m, { name: I.icon, size: "sm" }),
969
- /* @__PURE__ */ A("span", { children: I.title })
968
+ /* @__PURE__ */ A(m, { name: u.icon, size: "sm" }),
969
+ /* @__PURE__ */ A("span", { children: u.title })
970
970
  ]
971
971
  },
972
- I.id
972
+ u.id
973
973
  ))
974
974
  }
975
975
  )
@@ -985,7 +985,7 @@ function Zt({
985
985
  "aria-hidden": "true"
986
986
  }
987
987
  ),
988
- /* @__PURE__ */ g(
988
+ /* @__PURE__ */ s(
989
989
  "div",
990
990
  {
991
991
  style: {
@@ -994,9 +994,9 @@ function Zt({
994
994
  gap: "0.75rem",
995
995
  cursor: "pointer"
996
996
  },
997
- onClick: T,
997
+ onClick: H,
998
998
  children: [
999
- /* @__PURE__ */ g("div", { style: { textAlign: "right", maxWidth: "12.5rem" }, children: [
999
+ /* @__PURE__ */ s("div", { style: { textAlign: "right", maxWidth: "12.5rem" }, children: [
1000
1000
  /* @__PURE__ */ A(
1001
1001
  "p",
1002
1002
  {
@@ -1082,30 +1082,30 @@ function Zt({
1082
1082
  children: l
1083
1083
  }
1084
1084
  ),
1085
- s && /* @__PURE__ */ A(
1085
+ g && /* @__PURE__ */ A(
1086
1086
  pe,
1087
1087
  {
1088
- isShow: q,
1088
+ isShow: T,
1089
1089
  onHide: () => E(!1),
1090
- menus: w.menus.filter((I) => I.parentGroupId === void 0),
1091
- selectedGroupId: f,
1090
+ menus: w.menus.filter((u) => u.parentGroupId === void 0),
1091
+ selectedGroupId: S,
1092
1092
  onSelect: se
1093
1093
  }
1094
1094
  ),
1095
- /* @__PURE__ */ g(QA, { isShow: Y, onHide: tA, children: [
1096
- /* @__PURE__ */ A(BA, { children: "Confirmation Logout" }),
1097
- /* @__PURE__ */ A(hA, { children: "Are you sure you want to end the session and exit the page?" }),
1098
- /* @__PURE__ */ A(xA, { children: /* @__PURE__ */ A(a, { display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ g(J, { direction: "row", gap: "sm", align: "center", children: [
1099
- /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(b, { secondary: !0, onClick: tA, children: "Cancel" }) }),
1100
- /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(b, { primary: !0, onClick: wA, children: "Yes, Sure" }) })
1095
+ /* @__PURE__ */ s(hA, { isShow: j, onHide: z, children: [
1096
+ /* @__PURE__ */ A(dA, { children: "Confirmation Logout" }),
1097
+ /* @__PURE__ */ A(DA, { children: "Are you sure you want to end the session and exit the page?" }),
1098
+ /* @__PURE__ */ A(xA, { children: /* @__PURE__ */ A(a, { display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ s(q, { direction: "row", gap: "sm", align: "center", children: [
1099
+ /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(O, { secondary: !0, onClick: z, children: "Cancel" }) }),
1100
+ /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(O, { primary: !0, onClick: sA, children: "Yes, Sure" }) })
1101
1101
  ] }) }) })
1102
1102
  ] })
1103
1103
  ] });
1104
1104
  }
1105
1105
  const Ht = _(
1106
1106
  ({ children: e, coverImage: i, logo: r }) => {
1107
- const o = V("md"), t = ke();
1108
- return /* @__PURE__ */ g(
1107
+ const o = X("md"), t = ke();
1108
+ return /* @__PURE__ */ s(
1109
1109
  a,
1110
1110
  {
1111
1111
  direction: o ? "row" : "column",
@@ -1133,7 +1133,7 @@ const Ht = _(
1133
1133
  minHeight: "100vh"
1134
1134
  }
1135
1135
  },
1136
- children: /* @__PURE__ */ g(
1136
+ children: /* @__PURE__ */ s(
1137
1137
  a,
1138
1138
  {
1139
1139
  style: { backgroundColor: "#fff" },
@@ -1224,11 +1224,11 @@ const Ht = _(
1224
1224
  verticalAlign: n
1225
1225
  }),
1226
1226
  [t]
1227
- ), s = () => typeof i == "string" ? /* @__PURE__ */ A(Q, { fontWeight: "medium", color: "gray-500", children: i }) : i, C = () => typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ A(Q, { color: "text", fontWeight: "medium", children: e }) : e;
1228
- return /* @__PURE__ */ g(dA, { children: [
1229
- /* @__PURE__ */ A(sA, { style: l, width: o, children: s() }),
1230
- r ? /* @__PURE__ */ A(sA, { style: c, width: 24, children: /* @__PURE__ */ A(Q, { fontWeight: "medium", color: "gray-500", children: ":" }) }) : null,
1231
- /* @__PURE__ */ A(sA, { style: l, children: C() })
1227
+ ), g = () => typeof i == "string" ? /* @__PURE__ */ A(Q, { fontWeight: "medium", color: "gray-500", children: i }) : i, C = () => typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ A(Q, { color: "text", fontWeight: "medium", children: e }) : e;
1228
+ return /* @__PURE__ */ s(QA, { children: [
1229
+ /* @__PURE__ */ A(BA, { style: l, width: o, children: g() }),
1230
+ r ? /* @__PURE__ */ A(BA, { style: c, width: 24, children: /* @__PURE__ */ A(Q, { fontWeight: "medium", color: "gray-500", children: ":" }) }) : null,
1231
+ /* @__PURE__ */ A(BA, { style: l, children: C() })
1232
1232
  ] });
1233
1233
  }
1234
1234
  ), Fe = _(({ fields: e, separator: i, labelWidth: r }) => /* @__PURE__ */ A(Ae, { children: e.map((o, t) => /* @__PURE__ */ A(
@@ -1277,7 +1277,7 @@ const Ht = _(
1277
1277
  paddingRight: "xl",
1278
1278
  paddingBottom: l ? "xs" : "lg",
1279
1279
  bg: "accent-dark-tertiary",
1280
- children: n.map((s, C) => /* @__PURE__ */ A(
1280
+ children: n.map((g, C) => /* @__PURE__ */ A(
1281
1281
  a,
1282
1282
  {
1283
1283
  flex: l ? void 0 : "1",
@@ -1287,7 +1287,7 @@ const Ht = _(
1287
1287
  Fe,
1288
1288
  {
1289
1289
  labelWidth: t,
1290
- fields: s,
1290
+ fields: g,
1291
1291
  separator: r
1292
1292
  }
1293
1293
  )
@@ -1309,32 +1309,32 @@ const Ht = _(
1309
1309
  const c = () => {
1310
1310
  switch (l) {
1311
1311
  case "info":
1312
- return /* @__PURE__ */ A(BA, { info: !0, children: e });
1312
+ return /* @__PURE__ */ A(dA, { info: !0, children: e });
1313
1313
  case "danger":
1314
- return /* @__PURE__ */ A(BA, { danger: !0, children: e });
1314
+ return /* @__PURE__ */ A(dA, { danger: !0, children: e });
1315
1315
  case "success":
1316
- return /* @__PURE__ */ A(BA, { success: !0, children: e });
1316
+ return /* @__PURE__ */ A(dA, { success: !0, children: e });
1317
1317
  default:
1318
- return /* @__PURE__ */ A(BA, { success: !0, children: e });
1318
+ return /* @__PURE__ */ A(dA, { success: !0, children: e });
1319
1319
  }
1320
- }, s = () => {
1320
+ }, g = () => {
1321
1321
  switch (l) {
1322
1322
  case "info":
1323
- return /* @__PURE__ */ A(b, { primary: !0, onClick: o, children: n });
1323
+ return /* @__PURE__ */ A(O, { primary: !0, onClick: o, children: n });
1324
1324
  case "danger":
1325
- return /* @__PURE__ */ A(b, { danger: !0, onClick: o, children: n });
1325
+ return /* @__PURE__ */ A(O, { danger: !0, onClick: o, children: n });
1326
1326
  case "success":
1327
- return /* @__PURE__ */ A(b, { success: !0, onClick: o, children: n });
1327
+ return /* @__PURE__ */ A(O, { success: !0, onClick: o, children: n });
1328
1328
  default:
1329
- return /* @__PURE__ */ A(b, { primary: !0, onClick: o, children: n });
1329
+ return /* @__PURE__ */ A(O, { primary: !0, onClick: o, children: n });
1330
1330
  }
1331
1331
  };
1332
- return /* @__PURE__ */ g(QA, { isShow: t, onHide: r, children: [
1332
+ return /* @__PURE__ */ s(hA, { isShow: t, onHide: r, children: [
1333
1333
  c(),
1334
- /* @__PURE__ */ A(hA, { children: /* @__PURE__ */ A(Q, { children: i }) }),
1335
- /* @__PURE__ */ A(xA, { children: /* @__PURE__ */ g(a, { justify: "flex-end", direction: "row", gap: "sm", children: [
1336
- /* @__PURE__ */ A(b, { secondary: !0, onClick: r, children: "Cancel" }),
1337
- s()
1334
+ /* @__PURE__ */ A(DA, { children: /* @__PURE__ */ A(Q, { children: i }) }),
1335
+ /* @__PURE__ */ A(xA, { children: /* @__PURE__ */ s(a, { justify: "flex-end", direction: "row", gap: "sm", children: [
1336
+ /* @__PURE__ */ A(O, { secondary: !0, onClick: r, children: "Cancel" }),
1337
+ g()
1338
1338
  ] }) })
1339
1339
  ] });
1340
1340
  }, ze = ({ children: e, ...i }) => /* @__PURE__ */ A(
@@ -1348,7 +1348,7 @@ const Ht = _(
1348
1348
  ...i,
1349
1349
  children: e
1350
1350
  }
1351
- ), aA = _(ze), Ke = ({
1351
+ ), wA = _(ze), Ke = ({
1352
1352
  backButton: e,
1353
1353
  title: i,
1354
1354
  titleTag: r,
@@ -1357,33 +1357,33 @@ const Ht = _(
1357
1357
  action: n,
1358
1358
  titleTagProps: l,
1359
1359
  containerProps: c,
1360
- headerProps: s
1360
+ headerProps: g
1361
1361
  }) => {
1362
- const C = V("lg"), d = te(), w = e == null ? void 0 : e.show, B = () => {
1362
+ const C = X("lg"), d = te(), w = e == null ? void 0 : e.show, B = () => {
1363
1363
  if (typeof (e == null ? void 0 : e.onClick) == "function") {
1364
1364
  e.onClick();
1365
1365
  return;
1366
1366
  }
1367
1367
  d(-1, { replace: !0 });
1368
- }, u = () => n ? ie(n) ? n : /* @__PURE__ */ A(a, { direction: "row", gap: "lg", children: n.map(
1369
- ({ title: p, icon: N, buttonProps: U, onClick: L }, k) => !p && !N ? null : /* @__PURE__ */ A(
1370
- b,
1368
+ }, I = () => n ? ie(n) ? n : /* @__PURE__ */ A(a, { direction: "row", gap: "lg", children: n.map(
1369
+ ({ title: p, icon: N, buttonProps: R, onClick: f }, k) => !p && !N ? null : /* @__PURE__ */ A(
1370
+ O,
1371
1371
  {
1372
1372
  fullWidth: !C,
1373
1373
  iconLeft: N ? /* @__PURE__ */ A(m, { name: N, size: "md" }) : void 0,
1374
- onClick: L,
1375
- ...U,
1374
+ onClick: f,
1375
+ ...R,
1376
1376
  children: p
1377
1377
  },
1378
1378
  `action-${k}`
1379
1379
  )
1380
- ) }) : null, j = () => e != null && e.navigateTo ? /* @__PURE__ */ A(a, { direction: "row", children: /* @__PURE__ */ A(
1380
+ ) }) : null, G = () => e != null && e.navigateTo ? /* @__PURE__ */ A(a, { direction: "row", children: /* @__PURE__ */ A(
1381
1381
  fe,
1382
1382
  {
1383
1383
  to: e.navigateTo,
1384
1384
  replace: !0,
1385
1385
  style: { textDecoration: "none" },
1386
- children: /* @__PURE__ */ g(a, { direction: "row", gap: "sm", align: "center", children: [
1386
+ children: /* @__PURE__ */ s(a, { direction: "row", gap: "sm", align: "center", children: [
1387
1387
  /* @__PURE__ */ A(
1388
1388
  m,
1389
1389
  {
@@ -1408,7 +1408,7 @@ const Ht = _(
1408
1408
  )
1409
1409
  ] })
1410
1410
  }
1411
- ) }) : /* @__PURE__ */ A(a, { direction: "row", children: /* @__PURE__ */ A(aA, { onClick: B, children: /* @__PURE__ */ g(a, { direction: "row", gap: "sm", align: "center", children: [
1411
+ ) }) : /* @__PURE__ */ A(a, { direction: "row", children: /* @__PURE__ */ A(wA, { onClick: B, children: /* @__PURE__ */ s(a, { direction: "row", gap: "sm", align: "center", children: [
1412
1412
  /* @__PURE__ */ A(
1413
1413
  m,
1414
1414
  {
@@ -1431,28 +1431,37 @@ const Ht = _(
1431
1431
  children: (e == null ? void 0 : e.title) || "Back"
1432
1432
  }
1433
1433
  )
1434
- ] }) }) }), h = () => /* @__PURE__ */ g(a, { gap: "sm", ...s, children: [
1435
- w && j(),
1436
- /* @__PURE__ */ g(
1437
- a,
1438
- {
1439
- direction: C ? "row" : "column",
1440
- gap: "lg",
1441
- justify: "space-between",
1442
- align: "center",
1443
- children: [
1444
- typeof i == "string" ? /* @__PURE__ */ g(a, { direction: "row", gap: "lg", align: "center", children: [
1445
- /* @__PURE__ */ A(Q, { variant: "h2", fontWeight: "semibold", fontFamily: "Poppins", children: i }),
1446
- r && /* @__PURE__ */ A(XA, { border: !0, size: "lg", text: r, ...l })
1447
- ] }) : i,
1448
- u()
1449
- ]
1450
- }
1451
- )
1452
- ] }), Y = () => o;
1453
- return /* @__PURE__ */ g(a, { gap: "lg", variant: "main", ...c, children: [
1434
+ ] }) }) }), h = () => /* @__PURE__ */ s(
1435
+ a,
1436
+ {
1437
+ gap: "sm",
1438
+ paddingTop: (g == null ? void 0 : g.paddingTop) || "lg",
1439
+ paddingInline: (g == null ? void 0 : g.paddingInline) || "xl",
1440
+ ...g,
1441
+ children: [
1442
+ w && G(),
1443
+ /* @__PURE__ */ s(
1444
+ a,
1445
+ {
1446
+ direction: C ? "row" : "column",
1447
+ gap: "lg",
1448
+ justify: "space-between",
1449
+ align: "center",
1450
+ children: [
1451
+ typeof i == "string" ? /* @__PURE__ */ s(a, { direction: "row", gap: "lg", align: "center", children: [
1452
+ /* @__PURE__ */ A(Q, { variant: "h2", fontWeight: "semibold", fontFamily: "Poppins", children: i }),
1453
+ r && /* @__PURE__ */ A(XA, { border: !0, size: "lg", text: r, ...l })
1454
+ ] }) : i,
1455
+ I()
1456
+ ]
1457
+ }
1458
+ )
1459
+ ]
1460
+ }
1461
+ ), j = () => o;
1462
+ return /* @__PURE__ */ s(a, { gap: "lg", variant: "main", ...c, children: [
1454
1463
  t && h(),
1455
- Y()
1464
+ j()
1456
1465
  ] });
1457
1466
  }, Tt = _(Ke), Ze = {
1458
1467
  icon: "Cross",
@@ -1485,8 +1494,8 @@ const Ht = _(
1485
1494
  // new style
1486
1495
  ...o
1487
1496
  },
1488
- children: /* @__PURE__ */ g(a, { padding: "lg", children: [
1489
- l ? /* @__PURE__ */ g(
1497
+ children: /* @__PURE__ */ s(a, { padding: "lg", children: [
1498
+ l ? /* @__PURE__ */ s(
1490
1499
  a,
1491
1500
  {
1492
1501
  direction: "row",
@@ -1525,7 +1534,7 @@ const Ht = _(
1525
1534
  ) })
1526
1535
  ), He = _(
1527
1536
  ({ children: e, borderBottom: i = !0, padding: r = !0 }) => {
1528
- const o = V("lg");
1537
+ const o = X("lg");
1529
1538
  return /* @__PURE__ */ A(
1530
1539
  a,
1531
1540
  {
@@ -1541,7 +1550,7 @@ const Ht = _(
1541
1550
  );
1542
1551
  }
1543
1552
  ), Je = _(({ children: e }) => {
1544
- const i = V("lg");
1553
+ const i = X("lg");
1545
1554
  return /* @__PURE__ */ A(
1546
1555
  a,
1547
1556
  {
@@ -1561,41 +1570,41 @@ const Ht = _(
1561
1570
  searchField: n,
1562
1571
  header: l,
1563
1572
  onSearchChange: c,
1564
- searchKey: s = "q",
1573
+ searchKey: g = "q",
1565
1574
  searchPlaceholder: C = "CTRL + K to search query",
1566
1575
  searchHighlightPlaceholder: d = "CTRL + K",
1567
1576
  filterContainer: w,
1568
1577
  actionContainer: B,
1569
- headerProps: u = { borderBottom: !0 },
1570
- variantTag: j = "info"
1578
+ headerProps: I = { borderBottom: !0 },
1579
+ variantTag: G = "info"
1571
1580
  }) => {
1572
- const h = V("lg"), [Y, p] = uA(), N = Y.get(s), U = DA(Y.toString()), L = JA(
1573
- ({ target: { value: P } }) => {
1574
- c && c(P), s && p({ ...U, [s]: P });
1581
+ const h = X("lg"), [j, p] = kA(), N = j.get(g), R = IA(j.toString()), f = JA(
1582
+ ({ target: { value: V } }) => {
1583
+ c && c(V), g && p({ ...R, [g]: V });
1575
1584
  },
1576
- [s, c, p, U]
1585
+ [g, c, p, R]
1577
1586
  ), k = () => /* @__PURE__ */ A(
1578
- IA,
1587
+ uA,
1579
1588
  {
1580
1589
  placeholder: C,
1581
1590
  highlightPlaceholder: d,
1582
1591
  leftIcon: /* @__PURE__ */ A(m, { name: "Search", width: 20, height: 20 }),
1583
- onChange: L,
1592
+ onChange: f,
1584
1593
  style: { width: "100%" },
1585
1594
  value: N || ""
1586
1595
  }
1587
- ), Z = () => r ? /* @__PURE__ */ g(a, { direction: "row", gap: "sm", align: "center", children: [
1596
+ ), P = () => r ? /* @__PURE__ */ s(a, { direction: "row", gap: "sm", align: "center", children: [
1588
1597
  /* @__PURE__ */ A(Q, { fontWeight: "medium", children: i }),
1589
- /* @__PURE__ */ A(XA, { border: !0, text: r, variant: j })
1598
+ /* @__PURE__ */ A(XA, { border: !0, text: r, variant: G })
1590
1599
  ] }) : /* @__PURE__ */ A(Q, { fontWeight: "medium", children: i });
1591
- return /* @__PURE__ */ g(
1600
+ return /* @__PURE__ */ s(
1592
1601
  a,
1593
1602
  {
1594
1603
  bg: "accent-dark-tertiary",
1595
1604
  borderRadius: "rounded-md",
1596
1605
  variant: "section",
1597
1606
  children: [
1598
- l !== null ? /* @__PURE__ */ A(He, { ...u, children: l || /* @__PURE__ */ g(
1607
+ l !== null ? /* @__PURE__ */ A(He, { ...I, children: l || /* @__PURE__ */ s(
1599
1608
  a,
1600
1609
  {
1601
1610
  direction: "row",
@@ -1603,7 +1612,7 @@ const Ht = _(
1603
1612
  align: "flex-start",
1604
1613
  gap: "lg",
1605
1614
  children: [
1606
- /* @__PURE__ */ A(a, { ...w, children: t || (i ? Z() : null) }),
1615
+ /* @__PURE__ */ A(a, { ...w, children: t || (i ? P() : null) }),
1607
1616
  /* @__PURE__ */ A(
1608
1617
  a,
1609
1618
  {
@@ -1621,9 +1630,9 @@ const Ht = _(
1621
1630
  );
1622
1631
  }
1623
1632
  ), qe = "#E6E9FB", Te = ({ children: e, onClick: i }) => {
1624
- const [r, o] = G("");
1633
+ const [r, o] = b("");
1625
1634
  return /* @__PURE__ */ A(
1626
- aA,
1635
+ wA,
1627
1636
  {
1628
1637
  fullWidth: !0,
1629
1638
  height: "height-8",
@@ -1651,7 +1660,7 @@ const Ht = _(
1651
1660
  position: n = "bottom-right",
1652
1661
  buttonProps: l,
1653
1662
  iconProps: c,
1654
- variant: s = "default"
1663
+ variant: g = "default"
1655
1664
  }) => {
1656
1665
  const C = oA(
1657
1666
  () => ({
@@ -1661,10 +1670,10 @@ const Ht = _(
1661
1670
  }),
1662
1671
  [t]
1663
1672
  );
1664
- return /* @__PURE__ */ g(Ce, { position: n, style: r, children: [
1665
- /* @__PURE__ */ A(Be, { style: o, children: /* @__PURE__ */ A(b, { size: "sm", secondary: !0, ...l, children: /* @__PURE__ */ A(m, { name: e, ...c }) }) }),
1666
- /* @__PURE__ */ A(we, { style: C, children: i.map((d, w) => s === "outline-button" ? /* @__PURE__ */ A(de, { children: /* @__PURE__ */ g(
1667
- b,
1673
+ return /* @__PURE__ */ s(Ce, { position: n, style: r, children: [
1674
+ /* @__PURE__ */ A(Be, { style: o, children: /* @__PURE__ */ A(O, { size: "sm", secondary: !0, ...l, children: /* @__PURE__ */ A(m, { name: e, ...c }) }) }),
1675
+ /* @__PURE__ */ A(we, { style: C, children: i.map((d, w) => g === "outline-button" ? /* @__PURE__ */ A(de, { children: /* @__PURE__ */ s(
1676
+ O,
1668
1677
  {
1669
1678
  size: "sm",
1670
1679
  secondary: !0,
@@ -1676,7 +1685,7 @@ const Ht = _(
1676
1685
  /* @__PURE__ */ A(Q, { fontSize: "sm", color: "text", ...d.textProps, children: d.label })
1677
1686
  ]
1678
1687
  }
1679
- ) }, d.id || w) : /* @__PURE__ */ g(
1688
+ ) }, d.id || w) : /* @__PURE__ */ s(
1680
1689
  Ue,
1681
1690
  {
1682
1691
  onClick: d.onClick,
@@ -1689,10 +1698,10 @@ const Ht = _(
1689
1698
  d.id || w
1690
1699
  )) })
1691
1700
  ] });
1692
- }, Wt = _(We), ne = cA.memo(({ text: e, onClose: i }) => {
1701
+ }, Wt = _(We), ne = gA.memo(({ text: e, onClose: i }) => {
1693
1702
  var o, t;
1694
1703
  const r = ZA();
1695
- return /* @__PURE__ */ g(
1704
+ return /* @__PURE__ */ s(
1696
1705
  a,
1697
1706
  {
1698
1707
  direction: "row",
@@ -1710,7 +1719,7 @@ const Ht = _(
1710
1719
  children: [
1711
1720
  /* @__PURE__ */ A(a, { paddingLeft: "sm", flex: "1", children: /* @__PURE__ */ A(Q, { children: e }) }),
1712
1721
  /* @__PURE__ */ A(
1713
- aA,
1722
+ wA,
1714
1723
  {
1715
1724
  justify: "center",
1716
1725
  align: "center",
@@ -1730,7 +1739,7 @@ const Ht = _(
1730
1739
  ]
1731
1740
  }
1732
1741
  );
1733
- }), Re = cA.memo(({ items: e = [], onClose: i }) => /* @__PURE__ */ A(
1742
+ }), Re = gA.memo(({ items: e = [], onClose: i }) => /* @__PURE__ */ A(
1734
1743
  a,
1735
1744
  {
1736
1745
  direction: "row",
@@ -1760,27 +1769,27 @@ const Ht = _(
1760
1769
  }
1761
1770
  let r = new Date(e);
1762
1771
  return r = typeof e != "object" ? void 0 : r, r;
1763
- }, Ve = cA.memo(({ title: e, resetButton: i }) => /* @__PURE__ */ g(a, { direction: "row", justify: "space-between", marginBottom: "md", children: [
1772
+ }, Ve = gA.memo(({ title: e, resetButton: i }) => /* @__PURE__ */ s(a, { direction: "row", justify: "space-between", marginBottom: "md", children: [
1764
1773
  /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(Q, { fontWeight: "bold", children: e }) }),
1765
- /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(aA, { onClick: i == null ? void 0 : i.onClick, children: /* @__PURE__ */ A(Q, { fontWeight: "bold", color: "error", children: (i == null ? void 0 : i.label) || "Reset" }) }) })
1766
- ] })), Xe = cA.memo(
1774
+ /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(wA, { onClick: i == null ? void 0 : i.onClick, children: /* @__PURE__ */ A(Q, { fontWeight: "bold", color: "error", children: (i == null ? void 0 : i.label) || "Reset" }) }) })
1775
+ ] })), Xe = gA.memo(
1767
1776
  ({ value: e, options: i = [], onChange: r, multiple: o }) => {
1768
1777
  const t = (e == null ? void 0 : e.map((c) => c.value)) || [], n = (i == null ? void 0 : i.filter((c) => t.includes(c.value))) || [], l = (c) => {
1769
- const s = [...n];
1778
+ const g = [...n];
1770
1779
  let C = [];
1771
- o ? C = t.includes(c.value) ? s.filter((d) => d.value !== c.value) : [...s, c] : C = [c], r == null || r(C);
1780
+ o ? C = t.includes(c.value) ? g.filter((d) => d.value !== c.value) : [...g, c] : C = [c], r == null || r(C);
1772
1781
  };
1773
- return /* @__PURE__ */ A(a, { direction: "row", gap: "sm", flexWrap: "wrap", children: i == null ? void 0 : i.map((c, s) => /* @__PURE__ */ A(
1774
- b,
1782
+ return /* @__PURE__ */ A(a, { direction: "row", gap: "sm", flexWrap: "wrap", children: i == null ? void 0 : i.map((c, g) => /* @__PURE__ */ A(
1783
+ O,
1775
1784
  {
1776
1785
  ...t.includes(c.value) ? { primary: !0 } : { secondary: !0 },
1777
1786
  onClick: () => l(c),
1778
1787
  children: c.label
1779
1788
  },
1780
- s
1789
+ g
1781
1790
  )) });
1782
1791
  }
1783
- ), le = cA.memo(
1792
+ ), le = gA.memo(
1784
1793
  HA(
1785
1794
  ({
1786
1795
  label: e,
@@ -1791,33 +1800,33 @@ const Ht = _(
1791
1800
  placeholder: n,
1792
1801
  relationLabel: l,
1793
1802
  name: c,
1794
- multiple: s,
1803
+ multiple: g,
1795
1804
  searchable: C,
1796
1805
  onSearch: d,
1797
1806
  value: w,
1798
1807
  dateFilter: B,
1799
- enableInputDate: u,
1800
- withSearchParam: j,
1808
+ enableInputDate: I,
1809
+ withSearchParam: G,
1801
1810
  // disabled,
1802
1811
  rangedDate: h,
1803
- disabled: Y,
1812
+ disabled: j,
1804
1813
  inputTextType: p = "text",
1805
1814
  min: N,
1806
- max: U
1807
- }, L) => {
1815
+ max: R
1816
+ }, f) => {
1808
1817
  const k = t == null ? void 0 : t.length;
1809
- let Z;
1810
- const H = () => {
1818
+ let P;
1819
+ const Z = () => {
1811
1820
  switch (i) {
1812
1821
  case "dropdown":
1813
1822
  return /* @__PURE__ */ A(
1814
1823
  fA,
1815
1824
  {
1816
1825
  onSearch: d,
1817
- multiSelect: s,
1826
+ multiSelect: g,
1818
1827
  searchAble: C,
1819
1828
  placeholder: n,
1820
- onChange: (q) => o == null ? void 0 : o({ value: q, name: c, type: i }),
1829
+ onChange: (T) => o == null ? void 0 : o({ value: T, name: c, type: i }),
1821
1830
  dropdownLists: r || [],
1822
1831
  defaultValue: w || vA()
1823
1832
  }
@@ -1826,38 +1835,38 @@ const Ht = _(
1826
1835
  return /* @__PURE__ */ A(
1827
1836
  $A,
1828
1837
  {
1829
- input: u,
1838
+ input: I,
1830
1839
  filter: B,
1831
- value: Pe(w || Z, h),
1832
- onChange: (q) => o == null ? void 0 : o({ value: q, name: c, type: i }),
1840
+ value: Pe(w || P, h),
1841
+ onChange: (T) => o == null ? void 0 : o({ value: T, name: c, type: i }),
1833
1842
  rangedDate: h,
1834
- ref: L
1843
+ ref: f
1835
1844
  }
1836
1845
  );
1837
1846
  case "select-button":
1838
1847
  return /* @__PURE__ */ A(
1839
1848
  Xe,
1840
1849
  {
1841
- multiple: s,
1850
+ multiple: g,
1842
1851
  value: w || vA(),
1843
- onChange: (q) => o == null ? void 0 : o({ value: q, name: c, type: i }),
1852
+ onChange: (T) => o == null ? void 0 : o({ value: T, name: c, type: i }),
1844
1853
  options: r
1845
1854
  }
1846
1855
  );
1847
1856
  case "text":
1848
1857
  return /* @__PURE__ */ A(
1849
- IA,
1858
+ uA,
1850
1859
  {
1851
- onChange: ({ target: { value: q } }) => o == null ? void 0 : o({ value: q, name: c, type: i }),
1852
- value: w || Z,
1860
+ onChange: ({ target: { value: T } }) => o == null ? void 0 : o({ value: T, name: c, type: i }),
1861
+ value: w || P,
1853
1862
  placeholder: n,
1854
- disabled: Y,
1863
+ disabled: j,
1855
1864
  type: p,
1856
1865
  name: c,
1857
- ...p === "number" && { min: N, max: U },
1866
+ ...p === "number" && { min: N, max: R },
1858
1867
  ...(!p || p === "text") && {
1859
1868
  minLength: N,
1860
- maxLength: U
1869
+ maxLength: R
1861
1870
  }
1862
1871
  }
1863
1872
  );
@@ -1865,23 +1874,23 @@ const Ht = _(
1865
1874
  return null;
1866
1875
  }
1867
1876
  };
1868
- return k ? /* @__PURE__ */ A(a, { marginBottom: "lg", children: t == null ? void 0 : t.map((q, E) => /* @__PURE__ */ A(
1877
+ return k ? /* @__PURE__ */ A(a, { marginBottom: "lg", children: t == null ? void 0 : t.map((T, E) => /* @__PURE__ */ A(
1869
1878
  le,
1870
1879
  {
1871
- ref: L,
1880
+ ref: f,
1872
1881
  onChange: o,
1873
- ...q,
1874
- withSearchParam: j
1882
+ ...T,
1883
+ withSearchParam: G
1875
1884
  },
1876
1885
  E
1877
- )) }) : /* @__PURE__ */ g(a, { marginBottom: "sm", children: [
1886
+ )) }) : /* @__PURE__ */ s(a, { marginBottom: "sm", children: [
1878
1887
  l ? /* @__PURE__ */ A(Q, { color: "text-muted", marginBottom: "sm", fontWeight: "medium", children: l }) : null,
1879
1888
  e ? /* @__PURE__ */ A(Q, { marginBottom: "sm", fontWeight: "medium", children: e }) : null,
1880
- /* @__PURE__ */ A(a, { children: H() })
1889
+ /* @__PURE__ */ A(a, { children: Z() })
1881
1890
  ] });
1882
1891
  }
1883
1892
  )
1884
- ), $e = cA.memo(
1893
+ ), $e = gA.memo(
1885
1894
  ({
1886
1895
  show: e,
1887
1896
  title: i,
@@ -1891,9 +1900,9 @@ const Ht = _(
1891
1900
  onHide: n,
1892
1901
  resetting: l
1893
1902
  }) => {
1894
- const [c, s] = G(!1), C = AA(null), d = ({ value: B, name: u, type: j }) => {
1903
+ const [c, g] = b(!1), C = eA(null), d = ({ value: B, name: I, type: G }) => {
1895
1904
  if (o)
1896
- switch (j) {
1905
+ switch (G) {
1897
1906
  case "date":
1898
1907
  ve(B);
1899
1908
  break;
@@ -1905,11 +1914,11 @@ const Ht = _(
1905
1914
  break;
1906
1915
  }
1907
1916
  }, w = () => {
1908
- s(!0), t == null || t(!0);
1917
+ g(!0), t == null || t(!0);
1909
1918
  };
1910
- return R(() => {
1911
- (c || l) && (s(!1), t == null || t(!1));
1912
- }, [c, l]), /* @__PURE__ */ A(W, { children: /* @__PURE__ */ g(
1919
+ return U(() => {
1920
+ (c || l) && (g(!1), t == null || t(!1));
1921
+ }, [c, l]), /* @__PURE__ */ A(W, { children: /* @__PURE__ */ s(
1913
1922
  LA,
1914
1923
  {
1915
1924
  withBlur: !1,
@@ -1920,26 +1929,26 @@ const Ht = _(
1920
1929
  ref: C,
1921
1930
  children: [
1922
1931
  /* @__PURE__ */ A(Ve, { title: i, resetButton: { onClick: w } }),
1923
- c || l ? null : /* @__PURE__ */ A(a, { children: r == null ? void 0 : r.map((B, u) => /* @__PURE__ */ A(
1932
+ c || l ? null : /* @__PURE__ */ A(a, { children: r == null ? void 0 : r.map((B, I) => /* @__PURE__ */ A(
1924
1933
  le,
1925
1934
  {
1926
- borderBottom: u !== r.length - 1,
1935
+ borderBottom: I !== r.length - 1,
1927
1936
  onChange: d,
1928
1937
  withSearchParam: o,
1929
1938
  ...B,
1930
1939
  ref: C
1931
1940
  },
1932
- u
1941
+ I
1933
1942
  )) })
1934
1943
  ]
1935
1944
  }
1936
1945
  ) });
1937
1946
  }
1938
- ), _e = cA.memo(({ active: e, onClick: i }) => {
1947
+ ), _e = gA.memo(({ active: e, onClick: i }) => {
1939
1948
  var o, t;
1940
1949
  const r = ZA();
1941
1950
  return /* @__PURE__ */ A(
1942
- aA,
1951
+ wA,
1943
1952
  {
1944
1953
  onClick: i,
1945
1954
  bg: e ? "blue-50" : void 0,
@@ -2145,19 +2154,19 @@ const gr = (e) => {
2145
2154
  } else (o == null ? void 0 : o.name) === e && (r = o);
2146
2155
  }), r;
2147
2156
  }, ar = (e) => {
2148
- var U;
2149
- const i = oA(() => ({ ...ri, ...e }), [e]), [r, o] = G(!1), [t, n] = G(!1), [l] = G(void 0), c = () => n(!0), s = () => n(!1), C = t ? s : c, d = () => {
2157
+ var R;
2158
+ const i = oA(() => ({ ...ri, ...e }), [e]), [r, o] = b(!1), [t, n] = b(!1), [l] = b(void 0), c = () => n(!0), g = () => n(!1), C = t ? g : c, d = () => {
2150
2159
  o(!0);
2151
- }, w = (L) => {
2152
- o(L);
2153
- }, B = l ? oi(l) : void 0, u = !!(B && ((U = Object.values(B)) == null ? void 0 : U.length) > 0), j = () => B ? Object.keys(B).map((L) => {
2154
- var q, E, f;
2155
- const k = KA(L, i.fields), Z = [];
2156
- let H = "";
2157
- const P = (q = k == null ? void 0 : k.childrenKey) == null ? void 0 : q.length, X = k == null ? void 0 : k.parentKey;
2158
- switch (P && ((E = k == null ? void 0 : k.childrenKey) == null || E.forEach((M) => {
2160
+ }, w = (f) => {
2161
+ o(f);
2162
+ }, B = l ? oi(l) : void 0, I = !!(B && ((R = Object.values(B)) == null ? void 0 : R.length) > 0), G = () => B ? Object.keys(B).map((f) => {
2163
+ var T, E, S;
2164
+ const k = KA(f, i.fields), P = [];
2165
+ let Z = "";
2166
+ const V = (T = k == null ? void 0 : k.childrenKey) == null ? void 0 : T.length, AA = k == null ? void 0 : k.parentKey;
2167
+ switch (V && ((E = k == null ? void 0 : k.childrenKey) == null || E.forEach((M) => {
2159
2168
  const D = KA(M, i.fields);
2160
- D && Z.push({
2169
+ D && P.push({
2161
2170
  name: D == null ? void 0 : D.name,
2162
2171
  label: D == null ? void 0 : D.label,
2163
2172
  value: B[D == null ? void 0 : D.name]
@@ -2165,60 +2174,60 @@ const gr = (e) => {
2165
2174
  })), k == null ? void 0 : k.type) {
2166
2175
  case "dropdown":
2167
2176
  case "select-button":
2168
- const M = B[L] && typeof B[L] != "string" ? B[L] : [], D = (M == null ? void 0 : M.length) > 0 ? (f = M.map((x) => x.label)) == null ? void 0 : f.join(",") : B[L];
2169
- H = `${k == null ? void 0 : k.label}: ${D}`;
2177
+ const M = B[f] && typeof B[f] != "string" ? B[f] : [], D = (M == null ? void 0 : M.length) > 0 ? (S = M.map((x) => x.label)) == null ? void 0 : S.join(",") : B[f];
2178
+ Z = `${k == null ? void 0 : k.label}: ${D}`;
2170
2179
  break;
2171
2180
  case "date":
2172
2181
  if (k.rangedDate) {
2173
- const x = B[L], T = (k == null ? void 0 : k.dateValueFormatText) === "indonesian" ? yA(new Date(x == null ? void 0 : x.from)) : x == null ? void 0 : x.from, tA = (k == null ? void 0 : k.dateValueFormatText) === "indonesian" ? yA(new Date(x == null ? void 0 : x.to)) : x == null ? void 0 : x.to;
2174
- H = `${k == null ? void 0 : k.label}: ${T || ""} ~ ${tA || ""}`;
2182
+ const x = B[f], H = (k == null ? void 0 : k.dateValueFormatText) === "indonesian" ? yA(new Date(x == null ? void 0 : x.from)) : x == null ? void 0 : x.from, z = (k == null ? void 0 : k.dateValueFormatText) === "indonesian" ? yA(new Date(x == null ? void 0 : x.to)) : x == null ? void 0 : x.to;
2183
+ Z = `${k == null ? void 0 : k.label}: ${H || ""} ~ ${z || ""}`;
2175
2184
  break;
2176
2185
  }
2177
- const F = (k == null ? void 0 : k.dateValueFormatText) === "indonesian" ? yA(new Date(B[L])) : B[L];
2178
- H = `${k == null ? void 0 : k.label}: ${F || ""}`;
2186
+ const F = (k == null ? void 0 : k.dateValueFormatText) === "indonesian" ? yA(new Date(B[f])) : B[f];
2187
+ Z = `${k == null ? void 0 : k.label}: ${F || ""}`;
2179
2188
  break;
2180
2189
  default:
2181
- H = `${k == null ? void 0 : k.label}: ${B[L]}`;
2190
+ Z = `${k == null ? void 0 : k.label}: ${B[f]}`;
2182
2191
  break;
2183
2192
  }
2184
- if (P && Z.length > 0) {
2185
- let M = Z.map((D) => {
2193
+ if (V && P.length > 0) {
2194
+ let M = P.map((D) => {
2186
2195
  var F, x;
2187
- return D != null && D.value && typeof D.value != "string" ? (x = (F = D == null ? void 0 : D.value) == null ? void 0 : F.map((T) => T == null ? void 0 : T.label)) == null ? void 0 : x.join(",") : D.value;
2196
+ return D != null && D.value && typeof D.value != "string" ? (x = (F = D == null ? void 0 : D.value) == null ? void 0 : F.map((H) => H == null ? void 0 : H.label)) == null ? void 0 : x.join(",") : D.value;
2188
2197
  });
2189
2198
  M = M.filter(
2190
2199
  (D) => typeof D < "u" && D !== "" && D !== null
2191
- ), M && M.length > 0 && (H = `${H} ${k.relationLabelChip || "by"} ${M}`);
2200
+ ), M && M.length > 0 && (Z = `${Z} ${k.relationLabelChip || "by"} ${M}`);
2192
2201
  }
2193
- return X && (H = ""), {
2202
+ return AA && (Z = ""), {
2194
2203
  name: k == null ? void 0 : k.name,
2195
2204
  label: k == null ? void 0 : k.label,
2196
- value: B[L],
2197
- valueText: H,
2198
- children: Z
2205
+ value: B[f],
2206
+ valueText: Z,
2207
+ children: P
2199
2208
  };
2200
- }) : [], h = (L) => {
2201
- L != null && L.name && o(!0);
2202
- }, Y = j();
2209
+ }) : [], h = (f) => {
2210
+ f != null && f.name && o(!0);
2211
+ }, j = G();
2203
2212
  return {
2204
2213
  value: B,
2205
2214
  open: c,
2206
- close: s,
2215
+ close: g,
2207
2216
  toggle: C,
2208
2217
  reset: d,
2209
- chips: Y,
2218
+ chips: j,
2210
2219
  toggleConfig: {
2211
- active: u,
2220
+ active: I,
2212
2221
  onClick: C
2213
2222
  },
2214
2223
  chipsConfig: {
2215
- items: Y,
2224
+ items: j,
2216
2225
  onClose: h
2217
2226
  },
2218
2227
  config: {
2219
2228
  ...i,
2220
2229
  show: t,
2221
- onHide: s,
2230
+ onHide: g,
2222
2231
  resetting: r,
2223
2232
  onReset: w
2224
2233
  }
@@ -2228,7 +2237,7 @@ const gr = (e) => {
2228
2237
  Toggle: _e,
2229
2238
  Chips: Re,
2230
2239
  Chip: ne
2231
- }, ni = (e) => /* @__PURE__ */ A(Q, { variant: "h1", children: e.children, ...e.props }), li = (e) => /* @__PURE__ */ A(Q, { variant: "h2", children: e.children, ...e.props }), ci = (e) => /* @__PURE__ */ A(Q, { variant: "h3", children: e.children, ...e.props }), gi = (e) => /* @__PURE__ */ A(Q, { variant: "h4", children: e.children, ...e.props }), si = (e) => /* @__PURE__ */ A(Q, { variant: "h5", children: e.children, ...e.props }), ai = (e) => /* @__PURE__ */ A(Q, { variant: "h6", children: e.children, ...e.props }), Ci = (e) => /* @__PURE__ */ A(Q, { variant: "sub-h1", children: e.children, ...e.props }), Bi = (e) => /* @__PURE__ */ A(Q, { variant: "sub-h2", children: e.children, ...e.props }), wi = (e) => /* @__PURE__ */ A(Q, { variant: "sub-h3", children: e.children, ...e.props }), di = (e) => /* @__PURE__ */ A(Q, { variant: "body-1", children: e.children, ...e.props }), Qi = (e) => /* @__PURE__ */ A(Q, { variant: "body-2", children: e.children, ...e.props }), hi = (e) => /* @__PURE__ */ A(Q, { variant: "body-3", children: e.children, ...e.props }), K = {
2240
+ }, ni = (e) => /* @__PURE__ */ A(Q, { variant: "h1", children: e.children, ...e.props }), li = (e) => /* @__PURE__ */ A(Q, { variant: "h2", children: e.children, ...e.props }), ci = (e) => /* @__PURE__ */ A(Q, { variant: "h3", children: e.children, ...e.props }), gi = (e) => /* @__PURE__ */ A(Q, { variant: "h4", children: e.children, ...e.props }), si = (e) => /* @__PURE__ */ A(Q, { variant: "h5", children: e.children, ...e.props }), ai = (e) => /* @__PURE__ */ A(Q, { variant: "h6", children: e.children, ...e.props }), Ci = (e) => /* @__PURE__ */ A(Q, { variant: "sub-h1", children: e.children, ...e.props }), Bi = (e) => /* @__PURE__ */ A(Q, { variant: "sub-h2", children: e.children, ...e.props }), wi = (e) => /* @__PURE__ */ A(Q, { variant: "sub-h3", children: e.children, ...e.props }), di = (e) => /* @__PURE__ */ A(Q, { variant: "body-1", children: e.children, ...e.props }), Qi = (e) => /* @__PURE__ */ A(Q, { variant: "body-2", children: e.children, ...e.props }), hi = (e) => /* @__PURE__ */ A(Q, { variant: "body-3", children: e.children, ...e.props }), J = {
2232
2241
  H1: ni,
2233
2242
  H2: li,
2234
2243
  H3: ci,
@@ -2242,7 +2251,7 @@ const gr = (e) => {
2242
2251
  Body2: Qi,
2243
2252
  Body3: hi
2244
2253
  }, qA = () => {
2245
- const [e, i] = uA(), r = DA(e.toString()), o = re(), t = SA(), n = o.id;
2254
+ const [e, i] = kA(), r = IA(e.toString()), o = re(), t = SA(), n = o.id;
2246
2255
  return {
2247
2256
  // query params
2248
2257
  setSearchParams: i,
@@ -2259,7 +2268,7 @@ const gr = (e) => {
2259
2268
  id: n,
2260
2269
  hasId: !!n
2261
2270
  };
2262
- }, Di = (e) => JSON.stringify(e), Ii = (e) => JSON.stringify(e), ui = (e) => JSON.stringify(e), ki = (e) => JSON.stringify(e), Mi = (e) => e, Ei = (e) => JSON.stringify(e), PA = ({
2271
+ }, Di = (e) => JSON.stringify(e), Ii = (e) => JSON.stringify(e), ui = (e) => JSON.stringify(e), ki = (e) => JSON.stringify(e), Ei = (e) => e, Mi = (e) => JSON.stringify(e), PA = ({
2263
2272
  value: e,
2264
2273
  name: i,
2265
2274
  type: r,
@@ -2268,13 +2277,13 @@ const gr = (e) => {
2268
2277
  searchQueries: n,
2269
2278
  dropdownSearchKey: l,
2270
2279
  filterKey: c = "filter",
2271
- pageKey: s = "page"
2280
+ pageKey: g = "page"
2272
2281
  }) => {
2273
2282
  if (o) {
2274
2283
  let C;
2275
2284
  switch (r) {
2276
2285
  case "search":
2277
- C = Mi(e);
2286
+ C = Ei(e);
2278
2287
  break;
2279
2288
  case "dropdown":
2280
2289
  case "dropdown-multiple":
@@ -2287,7 +2296,7 @@ const gr = (e) => {
2287
2296
  C = ui(e);
2288
2297
  break;
2289
2298
  case "advanced-date-range":
2290
- C = Ei(e);
2299
+ C = Mi(e);
2291
2300
  break;
2292
2301
  case "date":
2293
2302
  C = ki(e);
@@ -2301,12 +2310,16 @@ const gr = (e) => {
2301
2310
  ...n[c] && typeof n[c] == "string" ? JSON.parse(n[c]) : void 0,
2302
2311
  [i]: C
2303
2312
  }, B = { ...n };
2304
- l && typeof l == "string" && delete B[l], delete B[s];
2305
- const u = {
2313
+ l && typeof l == "string" && delete B[l], delete B[g];
2314
+ const I = {
2306
2315
  ...B,
2307
2316
  [c]: JSON.stringify(w)
2308
- };
2309
- t(u);
2317
+ }, G = new URLSearchParams(n).toString(), h = new URLSearchParams(
2318
+ I
2319
+ ).toString();
2320
+ if (G === h)
2321
+ return;
2322
+ t(I);
2310
2323
  }
2311
2324
  }
2312
2325
  }, YA = ({
@@ -2367,32 +2380,32 @@ const gr = (e) => {
2367
2380
  pageKey: o,
2368
2381
  filters: t
2369
2382
  }) => {
2370
- const { searchParams: n, setSearchParams: l, searchQueries: c } = qA(), [s, C] = G({}), d = () => {
2383
+ const { searchParams: n, setSearchParams: l, searchQueries: c } = qA(), [g, C] = b({}), d = () => {
2371
2384
  n.delete(r || "filter"), l(n);
2372
- }, w = (B, u) => {
2385
+ }, w = (B, I) => {
2373
2386
  switch (B.type) {
2374
2387
  case "radio": {
2375
- const { show: j = !0 } = B;
2376
- return j && /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(a, { children: B.title }) }, u);
2388
+ const { show: G = !0 } = B;
2389
+ return G && /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(a, { children: B.title }) }, I);
2377
2390
  }
2378
2391
  case "dropdown": {
2379
- const { show: j = !0 } = B;
2380
- return j && /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(a, { children: B.title }) }, u);
2392
+ const { show: G = !0 } = B;
2393
+ return G && /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(a, { children: B.title }) }, I);
2381
2394
  }
2382
2395
  case "date-range":
2383
- return /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(a, { children: B.title }) }, u);
2396
+ return /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(a, { children: B.title }) }, I);
2384
2397
  case "date":
2385
- return /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(a, { children: B.title }) }, u);
2398
+ return /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(a, { children: B.title }) }, I);
2386
2399
  case "dropdown-multiple": {
2387
- const { show: j = !0 } = B;
2388
- return j && /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(a, { children: B.title }) }, u);
2400
+ const { show: G = !0 } = B;
2401
+ return G && /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(a, { children: B.title }) }, I);
2389
2402
  }
2390
2403
  default:
2391
2404
  return null;
2392
2405
  }
2393
2406
  };
2394
- return /* @__PURE__ */ A(LA, { onHide: i, show: e || !1, children: /* @__PURE__ */ g(a, { direction: "column", gap: "md", children: [
2395
- /* @__PURE__ */ g(J, { direction: "row", justify: "space-between", align: "center", children: [
2407
+ return /* @__PURE__ */ A(LA, { onHide: i, show: e || !1, children: /* @__PURE__ */ s(a, { direction: "column", gap: "md", children: [
2408
+ /* @__PURE__ */ s(q, { direction: "row", justify: "space-between", align: "center", children: [
2396
2409
  /* @__PURE__ */ A(a, { children: "Filter" }),
2397
2410
  /* @__PURE__ */ A(
2398
2411
  a,
@@ -2403,7 +2416,7 @@ const gr = (e) => {
2403
2416
  }
2404
2417
  )
2405
2418
  ] }),
2406
- t == null ? void 0 : t.map((B, u) => w(B, u))
2419
+ t == null ? void 0 : t.map((B, I) => w(B, I))
2407
2420
  ] }) });
2408
2421
  }, xi = ({
2409
2422
  searchKey: e = "q",
@@ -2414,67 +2427,95 @@ const gr = (e) => {
2414
2427
  showSearchFilter: n = !0,
2415
2428
  showStatusFilter: l = !0,
2416
2429
  filterKey: c = "filter",
2417
- pageKey: s = "page",
2430
+ pageKey: g = "page",
2418
2431
  customWidthSearch: C,
2419
2432
  handleOnReset: d,
2420
2433
  filterConfigs: w,
2421
2434
  buttonToggleProps: B,
2422
- position: u = "right",
2423
- titleSearchLabel: j = "Work Order",
2435
+ position: I = "right",
2436
+ titleSearchLabel: G = "Work Order",
2424
2437
  withTitleLabels: h = !1
2425
2438
  }) => {
2426
- const Y = (B == null ? void 0 : B.isShowLabel) ?? !0, [p, N] = G(!1), [U, L] = G(0), k = () => {
2427
- L(U + 1);
2428
- }, { searchParams: Z, setSearchParams: H, getQueryParam: P } = qA(), X = DA(Z.toString()), q = P(c), f = !!(q && !(() => {
2429
- if (q)
2439
+ const p = (B == null ? void 0 : B.isShowLabel) ?? !0, [N, R] = b(!1), [f, k] = b(0), P = () => {
2440
+ k((z) => z + 1);
2441
+ }, { searchParams: Z, setSearchParams: V, getQueryParam: AA } = qA(), T = IA(Z.toString()), E = mi(e, Z, c) || "", [S, M] = b(E), D = AA(c), x = !!(D && !(() => {
2442
+ if (D)
2430
2443
  try {
2431
- const D = JSON.parse(q);
2432
- return Object.keys(D).length === 1 && D[e] === "";
2433
- } catch (D) {
2434
- console.error("Filter parameter is not a valid JSON:", D);
2444
+ const z = JSON.parse(D);
2445
+ return Object.keys(z).length === 1 && z[e] === "";
2446
+ } catch (z) {
2447
+ console.error("Filter parameter is not a valid JSON:", z);
2435
2448
  }
2436
2449
  return !1;
2437
- })()), M = V("md");
2438
- return /* @__PURE__ */ g(
2439
- J,
2450
+ })()), H = X("md");
2451
+ return U(() => {
2452
+ M(E);
2453
+ }, [E]), U(() => {
2454
+ if (S === E)
2455
+ return;
2456
+ const z = window.setTimeout(() => {
2457
+ PA({
2458
+ value: S,
2459
+ name: e,
2460
+ type: "search",
2461
+ searchQueries: T,
2462
+ setSearchParams: V,
2463
+ filterKey: c,
2464
+ pageKey: g
2465
+ });
2466
+ }, 350);
2467
+ return () => {
2468
+ window.clearTimeout(z);
2469
+ };
2470
+ }, [
2471
+ S,
2472
+ E,
2473
+ e,
2474
+ T,
2475
+ V,
2476
+ c,
2477
+ g
2478
+ ]), /* @__PURE__ */ s(
2479
+ q,
2440
2480
  {
2441
2481
  gap: "md",
2442
2482
  style: {
2443
- flexDirection: M && u === "left" ? "row" : M && u === "right" ? "row-reverse" : "column"
2483
+ flexDirection: H && I === "left" ? "row" : H && I === "right" ? "row-reverse" : "column"
2444
2484
  },
2445
2485
  align: "flex-end",
2446
2486
  children: [
2447
- f && /* @__PURE__ */ A(a, { justify: "flex-end", children: /* @__PURE__ */ A(
2448
- b,
2487
+ x && /* @__PURE__ */ A(a, { justify: "flex-end", children: /* @__PURE__ */ A(
2488
+ O,
2449
2489
  {
2450
2490
  onClick: () => {
2451
- Z.delete(c), H(Z), k(), d && d();
2491
+ const z = new URLSearchParams(Z);
2492
+ z.delete(c), V(z), M(""), P(), d && d();
2452
2493
  },
2453
2494
  secondary: !0,
2454
2495
  children: /* @__PURE__ */ A(Q, { color: "error", fontWeight: "semibold", children: "Reset" })
2455
2496
  }
2456
2497
  ) }),
2457
2498
  !!(w != null && w.length) && /* @__PURE__ */ A(
2458
- b,
2499
+ O,
2459
2500
  {
2460
- primary: f,
2461
- secondary: !f,
2501
+ primary: x,
2502
+ secondary: !x,
2462
2503
  iconLeft: /* @__PURE__ */ A(
2463
2504
  m,
2464
2505
  {
2465
2506
  size: "sm",
2466
2507
  name: (B == null ? void 0 : B.icon) || "FilterHorizontal",
2467
2508
  style: {
2468
- color: q ? "var(--starasia-ui-color-primary)" : "var(--starasia-ui-color-text)"
2509
+ color: D ? "var(--starasia-ui-color-primary)" : "var(--starasia-ui-color-text)"
2469
2510
  }
2470
2511
  }
2471
2512
  ),
2472
- fullWidth: !M,
2473
- onClick: () => N(!0),
2474
- children: Y ? "Filter" : void 0
2513
+ fullWidth: !H,
2514
+ onClick: () => R(!0),
2515
+ children: p ? "Filter" : void 0
2475
2516
  }
2476
2517
  ),
2477
- l && /* @__PURE__ */ g(
2518
+ l && /* @__PURE__ */ s(
2478
2519
  a,
2479
2520
  {
2480
2521
  gap: "sm",
@@ -2482,7 +2523,7 @@ const gr = (e) => {
2482
2523
  minWidth: "126px"
2483
2524
  },
2484
2525
  children: [
2485
- h && /* @__PURE__ */ A(K.SubH3, { children: "Status" }),
2526
+ h && /* @__PURE__ */ A(J.SubH3, { children: "Status" }),
2486
2527
  /* @__PURE__ */ A(
2487
2528
  fA,
2488
2529
  {
@@ -2517,86 +2558,78 @@ const gr = (e) => {
2517
2558
  })
2518
2559
  }
2519
2560
  ] : [],
2520
- onChange: (D) => PA({
2521
- value: D,
2561
+ onChange: (z) => PA({
2562
+ value: z,
2522
2563
  name: i,
2523
2564
  type: "dropdown",
2524
- searchQueries: X,
2525
- setSearchParams: H,
2565
+ searchQueries: T,
2566
+ setSearchParams: V,
2526
2567
  filterKey: c
2527
2568
  }),
2528
2569
  placeholder: h ? "All" : "All Status"
2529
2570
  },
2530
- U
2571
+ f
2531
2572
  )
2532
2573
  ]
2533
2574
  }
2534
2575
  ),
2535
- n && /* @__PURE__ */ g(
2576
+ n && /* @__PURE__ */ s(
2536
2577
  a,
2537
2578
  {
2538
2579
  gap: "sm",
2539
2580
  style: {
2540
- width: C && M ? C : M ? "310px" : ""
2581
+ width: C && H ? C : H ? "310px" : ""
2541
2582
  },
2542
2583
  children: [
2543
- h && /* @__PURE__ */ g(K.SubH3, { children: [
2584
+ h && /* @__PURE__ */ s(J.SubH3, { children: [
2544
2585
  "Search for ",
2545
- j
2586
+ G
2546
2587
  ] }),
2547
2588
  /* @__PURE__ */ A(
2548
- IA,
2589
+ uA,
2549
2590
  {
2550
2591
  placeholder: r,
2551
2592
  leftIcon: /* @__PURE__ */ A(m, { name: "Search", width: 20, height: 20 }),
2552
- onChange: (D) => PA({
2553
- value: D.target.value,
2554
- name: e,
2555
- type: "search",
2556
- searchQueries: X,
2557
- setSearchParams: H,
2558
- filterKey: c,
2559
- pageKey: s
2560
- }),
2561
- value: mi(e, Z, c) || "",
2593
+ onChange: (z) => M(z.target.value),
2594
+ value: S,
2562
2595
  fullWidth: !0
2563
2596
  },
2564
- U + 1 + c
2597
+ f + 1 + c
2565
2598
  )
2566
2599
  ]
2567
2600
  }
2568
2601
  ),
2569
- t == null ? void 0 : t.map(({ minWidth: D, content: F, title: x, onClickContainer: T }) => /* @__PURE__ */ g(
2602
+ t == null ? void 0 : t.map(({ minWidth: z, content: sA, title: aA, onClickContainer: lA }) => /* @__PURE__ */ s(
2570
2603
  a,
2571
2604
  {
2572
2605
  gap: "sm",
2573
- onClick: T,
2606
+ onClick: lA,
2574
2607
  style: {
2575
- minWidth: D
2608
+ minWidth: z
2576
2609
  },
2577
2610
  children: [
2578
- /* @__PURE__ */ A(K.SubH3, { children: x }),
2579
- F
2611
+ /* @__PURE__ */ A(J.SubH3, { children: aA }),
2612
+ sA
2580
2613
  ]
2581
2614
  },
2582
- x + U
2615
+ aA + f
2583
2616
  )),
2584
2617
  /* @__PURE__ */ A(
2585
2618
  yi,
2586
2619
  {
2587
- isOpen: p,
2588
- onClose: () => N(!1),
2620
+ isOpen: N,
2621
+ onClose: () => R(!1),
2589
2622
  filterKey: c,
2590
2623
  filters: w,
2591
- pageKey: s
2624
+ pageKey: g
2592
2625
  }
2593
2626
  )
2594
2627
  ]
2595
2628
  }
2596
2629
  );
2597
2630
  }, fi = ({ children: e, borderRadius: i }) => {
2598
- const r = AA(null), [o, t] = G("100vh");
2599
- return R(() => {
2631
+ const r = eA(null), [o, t] = b("100vh");
2632
+ return U(() => {
2600
2633
  const n = () => {
2601
2634
  if (r.current) {
2602
2635
  const l = r.current.getBoundingClientRect().top;
@@ -2626,7 +2659,7 @@ const gr = (e) => {
2626
2659
  advanceFilter: i,
2627
2660
  showFilter: r = !0
2628
2661
  }) => {
2629
- const o = V("md"), t = () => e ? ie(e) ? e : /* @__PURE__ */ A(
2662
+ const o = X("md"), t = () => e ? ie(e) ? e : /* @__PURE__ */ A(
2630
2663
  a,
2631
2664
  {
2632
2665
  style: {
@@ -2637,12 +2670,12 @@ const gr = (e) => {
2637
2670
  textWrap: "nowrap"
2638
2671
  },
2639
2672
  children: e.map(
2640
- ({ title: n, icon: l, buttonProps: c, onClick: s }, C) => !n && !l ? null : /* @__PURE__ */ A(
2641
- b,
2673
+ ({ title: n, icon: l, buttonProps: c, onClick: g }, C) => !n && !l ? null : /* @__PURE__ */ A(
2674
+ O,
2642
2675
  {
2643
2676
  fullWidth: !o,
2644
2677
  iconLeft: l ? /* @__PURE__ */ A(m, { name: l, size: "md" }) : void 0,
2645
- onClick: s,
2678
+ onClick: g,
2646
2679
  ...c,
2647
2680
  children: n
2648
2681
  },
@@ -2651,7 +2684,7 @@ const gr = (e) => {
2651
2684
  )
2652
2685
  }
2653
2686
  ) : null;
2654
- return /* @__PURE__ */ g(
2687
+ return /* @__PURE__ */ s(
2655
2688
  a,
2656
2689
  {
2657
2690
  style: {
@@ -2680,7 +2713,7 @@ const gr = (e) => {
2680
2713
  totalData: e,
2681
2714
  withMarginBottom: i = !0,
2682
2715
  withMarginTop: r = !0
2683
- }) => /* @__PURE__ */ g(
2716
+ }) => /* @__PURE__ */ s(
2684
2717
  a,
2685
2718
  {
2686
2719
  style: {
@@ -2692,8 +2725,8 @@ const gr = (e) => {
2692
2725
  marginTop: r ? "16px" : void 0
2693
2726
  },
2694
2727
  children: [
2695
- /* @__PURE__ */ g(
2696
- K.Body1,
2728
+ /* @__PURE__ */ s(
2729
+ J.Body1,
2697
2730
  {
2698
2731
  props: {
2699
2732
  color: "gray-500"
@@ -2704,7 +2737,7 @@ const gr = (e) => {
2704
2737
  ]
2705
2738
  }
2706
2739
  ),
2707
- /* @__PURE__ */ A(K.Body1, { children: e || 0 })
2740
+ /* @__PURE__ */ A(J.Body1, { children: e || 0 })
2708
2741
  ]
2709
2742
  }
2710
2743
  ), bi = ({
@@ -2715,15 +2748,15 @@ const gr = (e) => {
2715
2748
  showPagination: t = !0,
2716
2749
  totalData: n
2717
2750
  }) => {
2718
- const { searchQueries: l, setSearchParams: c, searchParams: s } = qA(), C = s.get(r), d = (j) => {
2719
- c({ ...l, [i]: String(j) });
2720
- }, w = (j) => {
2751
+ const { searchQueries: l, setSearchParams: c, searchParams: g } = qA(), C = g.get(r), d = (G) => {
2752
+ c({ ...l, [i]: String(G) });
2753
+ }, w = (G) => {
2721
2754
  c({
2722
2755
  ...l,
2723
- [r]: j,
2756
+ [r]: G,
2724
2757
  [i]: "1"
2725
2758
  });
2726
- }, 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));
2759
+ }, 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));
2727
2760
  return /* @__PURE__ */ A(
2728
2761
  a,
2729
2762
  {
@@ -2740,8 +2773,8 @@ const gr = (e) => {
2740
2773
  borderTop: "1px solid var(--starasia-ui-utility-fill-default)",
2741
2774
  flexShrink: 0
2742
2775
  },
2743
- children: t ? /* @__PURE__ */ g(W, { children: [
2744
- /* @__PURE__ */ g(a, { style: { display: "flex", flexDirection: "row", gap: "8px", alignItems: "center" }, children: [
2776
+ children: t ? /* @__PURE__ */ s(W, { children: [
2777
+ /* @__PURE__ */ s(a, { style: { display: "flex", flexDirection: "row", gap: "8px", alignItems: "center" }, children: [
2745
2778
  /* @__PURE__ */ A(Q, { children: "Rows Per Page: " }),
2746
2779
  /* @__PURE__ */ A(
2747
2780
  fA,
@@ -2753,13 +2786,13 @@ const gr = (e) => {
2753
2786
  { label: "50", value: "50" },
2754
2787
  { label: "100", value: "100" }
2755
2788
  ],
2756
- onChange: (j) => {
2757
- w(j[0].value);
2789
+ onChange: (G) => {
2790
+ w(G[0].value);
2758
2791
  },
2759
2792
  defaultValue: C ? [{ label: `${C} per row`, value: C }] : [{ label: `${o} per row`, value: `${o}` }]
2760
2793
  }
2761
2794
  ),
2762
- /* @__PURE__ */ A(Q, { children: `${B}-${u} of ${(e == null ? void 0 : e.totalData) || 0}` })
2795
+ /* @__PURE__ */ A(Q, { children: `${B}-${I} of ${(e == null ? void 0 : e.totalData) || 0}` })
2763
2796
  ] }),
2764
2797
  /* @__PURE__ */ A(
2765
2798
  Qe,
@@ -2780,32 +2813,32 @@ const gr = (e) => {
2780
2813
  }
2781
2814
  );
2782
2815
  }, Gi = ({ filter: e, columnTitle: i }) => {
2783
- const [r, o] = G(!1), t = AA(null), n = AA(null), l = AA(null), [c, s] = G(""), [C, d] = G({ top: 0, left: 0 }), w = e.selectedValues, B = oA(() => c ? e.options.filter(
2816
+ const [r, o] = b(!1), t = eA(null), n = eA(null), l = eA(null), [c, g] = b(""), [C, d] = b({ top: 0, left: 0 }), w = e.selectedValues, B = oA(() => c ? e.options.filter(
2784
2817
  (h) => h.label.toLowerCase().includes(c.toLowerCase())
2785
2818
  ) : e.options, [e.options, c]);
2786
- R(() => {
2819
+ U(() => {
2787
2820
  if (r && n.current) {
2788
- const h = n.current.getBoundingClientRect(), Y = 280, p = {
2821
+ const h = n.current.getBoundingClientRect(), j = 280, p = {
2789
2822
  top: h.bottom + 8
2790
2823
  };
2791
- e.position === "left" || h.left + Y > window.innerWidth ? p.right = window.innerWidth - h.right : p.left = h.left, d(p);
2824
+ e.position === "left" || h.left + j > window.innerWidth ? p.right = window.innerWidth - h.right : p.left = h.left, d(p);
2792
2825
  }
2793
- }, [r, e.position]), R(() => {
2826
+ }, [r, e.position]), U(() => {
2794
2827
  r && l.current ? setTimeout(() => {
2795
2828
  var h;
2796
2829
  return (h = l.current) == null ? void 0 : h.focus();
2797
- }, 50) : s("");
2798
- }, [r]), R(() => {
2799
- const h = (Y) => {
2800
- t.current && !t.current.contains(Y.target) && n.current && !n.current.contains(Y.target) && o(!1);
2830
+ }, 50) : g("");
2831
+ }, [r]), U(() => {
2832
+ const h = (j) => {
2833
+ t.current && !t.current.contains(j.target) && n.current && !n.current.contains(j.target) && o(!1);
2801
2834
  };
2802
2835
  return r && document.addEventListener("mousedown", h), () => document.removeEventListener("mousedown", h);
2803
2836
  }, [r]);
2804
- const u = (h) => {
2805
- const Y = w.includes(h) ? w.filter((p) => p !== h) : [...w, h];
2806
- e.onFilterChange(Y);
2807
- }, j = () => e.onFilterChange([]);
2808
- return /* @__PURE__ */ g(a, { style: { position: "relative" }, children: [
2837
+ const I = (h) => {
2838
+ const j = w.includes(h) ? w.filter((p) => p !== h) : [...w, h];
2839
+ e.onFilterChange(j);
2840
+ }, G = () => e.onFilterChange([]);
2841
+ return /* @__PURE__ */ s(a, { style: { position: "relative" }, children: [
2809
2842
  /* @__PURE__ */ A(
2810
2843
  a,
2811
2844
  {
@@ -2817,8 +2850,8 @@ const gr = (e) => {
2817
2850
  cursor: "pointer"
2818
2851
  },
2819
2852
  onClick: (h) => {
2820
- var Y;
2821
- h.stopPropagation(), r || (Y = e.onOpen) == null || Y.call(e), o((p) => !p);
2853
+ var j;
2854
+ h.stopPropagation(), r || (j = e.onOpen) == null || j.call(e), o((p) => !p);
2822
2855
  },
2823
2856
  children: /* @__PURE__ */ A(
2824
2857
  m,
@@ -2832,7 +2865,7 @@ const gr = (e) => {
2832
2865
  )
2833
2866
  }
2834
2867
  ),
2835
- r && /* @__PURE__ */ g(
2868
+ r && /* @__PURE__ */ s(
2836
2869
  a,
2837
2870
  {
2838
2871
  ref: t,
@@ -2851,7 +2884,7 @@ const gr = (e) => {
2851
2884
  border: "1px solid var(--starasia-ui-utility-fill-default)"
2852
2885
  },
2853
2886
  children: [
2854
- /* @__PURE__ */ g(
2887
+ /* @__PURE__ */ s(
2855
2888
  a,
2856
2889
  {
2857
2890
  style: {
@@ -2866,7 +2899,7 @@ const gr = (e) => {
2866
2899
  borderBottom: "1px solid rgb(var(--starasia-ui-raw-color-gray-100))"
2867
2900
  },
2868
2901
  children: [
2869
- /* @__PURE__ */ g(Q, { fontSize: "sm", fontWeight: "semibold", color: "gray-700", children: [
2902
+ /* @__PURE__ */ s(Q, { fontSize: "sm", fontWeight: "semibold", color: "gray-700", children: [
2870
2903
  "Filter ",
2871
2904
  i
2872
2905
  ] }),
@@ -2877,7 +2910,7 @@ const gr = (e) => {
2877
2910
  color: "primary",
2878
2911
  fontWeight: "semibold",
2879
2912
  onClick: (h) => {
2880
- h.stopPropagation(), j();
2913
+ h.stopPropagation(), G();
2881
2914
  },
2882
2915
  children: "CLEAR"
2883
2916
  }
@@ -2895,13 +2928,13 @@ const gr = (e) => {
2895
2928
  paddingBottom: "8px"
2896
2929
  },
2897
2930
  children: /* @__PURE__ */ A(
2898
- IA,
2931
+ uA,
2899
2932
  {
2900
2933
  ref: l,
2901
2934
  placeholder: `Search ${i.toLowerCase()}...`,
2902
2935
  leftIcon: /* @__PURE__ */ A(m, { name: "Search", size: "sm" }),
2903
2936
  value: c,
2904
- onChange: (h) => s(h.target.value),
2937
+ onChange: (h) => g(h.target.value),
2905
2938
  style: { fontSize: "14px" }
2906
2939
  }
2907
2940
  )
@@ -2917,7 +2950,7 @@ const gr = (e) => {
2917
2950
  paddingLeft: "8px",
2918
2951
  paddingRight: "8px"
2919
2952
  },
2920
- children: e.isLoadingOptions ? /* @__PURE__ */ g(
2953
+ children: e.isLoadingOptions ? /* @__PURE__ */ s(
2921
2954
  a,
2922
2955
  {
2923
2956
  style: {
@@ -2951,7 +2984,7 @@ const gr = (e) => {
2951
2984
  )
2952
2985
  ]
2953
2986
  }
2954
- ) : B.length > 0 ? /* @__PURE__ */ A(a, { style: { gap: "2px", paddingTop: "4px", paddingBottom: "4px" }, children: B.map((h) => /* @__PURE__ */ g(
2987
+ ) : B.length > 0 ? /* @__PURE__ */ A(a, { style: { gap: "2px", paddingTop: "4px", paddingBottom: "4px" }, children: B.map((h) => /* @__PURE__ */ s(
2955
2988
  a,
2956
2989
  {
2957
2990
  style: {
@@ -2968,14 +3001,14 @@ const gr = (e) => {
2968
3001
  transition: "all 0.2s ease",
2969
3002
  backgroundColor: w.includes(h.value) ? "rgb(var(--starasia-ui-raw-color-blue-50))" : "transparent"
2970
3003
  },
2971
- onClick: (Y) => {
2972
- Y.stopPropagation(), u(h.value);
3004
+ onClick: (j) => {
3005
+ j.stopPropagation(), I(h.value);
2973
3006
  },
2974
- onMouseEnter: (Y) => {
2975
- w.includes(h.value) || (Y.currentTarget.style.backgroundColor = "rgb(var(--starasia-ui-raw-color-gray-50))"), Y.currentTarget.style.transform = "translateX(2px)";
3007
+ onMouseEnter: (j) => {
3008
+ w.includes(h.value) || (j.currentTarget.style.backgroundColor = "rgb(var(--starasia-ui-raw-color-gray-50))"), j.currentTarget.style.transform = "translateX(2px)";
2976
3009
  },
2977
- onMouseLeave: (Y) => {
2978
- Y.currentTarget.style.backgroundColor = w.includes(h.value) ? "rgb(var(--starasia-ui-raw-color-blue-50))" : "transparent", Y.currentTarget.style.transform = "translateX(0)";
3010
+ onMouseLeave: (j) => {
3011
+ j.currentTarget.style.backgroundColor = w.includes(h.value) ? "rgb(var(--starasia-ui-raw-color-blue-50))" : "transparent", j.currentTarget.style.transform = "translateX(0)";
2979
3012
  },
2980
3013
  children: [
2981
3014
  /* @__PURE__ */ A(
@@ -2998,7 +3031,7 @@ const gr = (e) => {
2998
3031
  ]
2999
3032
  },
3000
3033
  h.value
3001
- )) }) : /* @__PURE__ */ g(
3034
+ )) }) : /* @__PURE__ */ s(
3002
3035
  a,
3003
3036
  {
3004
3037
  style: {
@@ -3044,7 +3077,7 @@ const gr = (e) => {
3044
3077
  backgroundColor: "rgb(var(--starasia-ui-raw-color-blue-50))",
3045
3078
  marginTop: "auto"
3046
3079
  },
3047
- children: /* @__PURE__ */ g(a, { style: { display: "flex", flexDirection: "row", alignItems: "center", gap: "4px" }, children: [
3080
+ children: /* @__PURE__ */ s(a, { style: { display: "flex", flexDirection: "row", alignItems: "center", gap: "4px" }, children: [
3048
3081
  /* @__PURE__ */ A(
3049
3082
  a,
3050
3083
  {
@@ -3059,7 +3092,7 @@ const gr = (e) => {
3059
3092
  children: w.length
3060
3093
  }
3061
3094
  ),
3062
- /* @__PURE__ */ g(Q, { fontSize: "xs", color: "primary", fontWeight: "medium", children: [
3095
+ /* @__PURE__ */ s(Q, { fontSize: "xs", color: "primary", fontWeight: "medium", children: [
3063
3096
  "item",
3064
3097
  w.length > 1 ? "s" : "",
3065
3098
  " selected"
@@ -3071,7 +3104,7 @@ const gr = (e) => {
3071
3104
  }
3072
3105
  )
3073
3106
  ] });
3074
- }, Oi = ({ frozen: e }) => /* @__PURE__ */ g(
3107
+ }, Oi = ({ frozen: e }) => /* @__PURE__ */ s(
3075
3108
  "svg",
3076
3109
  {
3077
3110
  width: "11",
@@ -3096,43 +3129,43 @@ const gr = (e) => {
3096
3129
  isLoading: n,
3097
3130
  visibleHandleDelete: l,
3098
3131
  visibleHandleUpdate: c,
3099
- visibleHandleDetail: s,
3132
+ visibleHandleDetail: g,
3100
3133
  showHeadBorder: C = !0,
3101
3134
  scrollParentRef: d,
3102
3135
  frozenCount: w = 0,
3103
3136
  onFrozenCountChange: B,
3104
- customActions: u,
3105
- actionsOrder: j = ["detail", "update", "delete", "custom"],
3137
+ customActions: I,
3138
+ actionsOrder: G = ["detail", "update", "delete", "custom"],
3106
3139
  customEmptyState: h
3107
3140
  }) => {
3108
- const p = [r, o, t].filter((E) => E !== void 0).length, N = !!u, U = p === 3 ? N ? "178px" : "140px" : p === 2 ? N ? "140px" : "102px" : p === 1 ? N ? "112px" : "74px" : N ? "74px" : "", L = (E, f) => {
3109
- if (!f) return E;
3110
- if (typeof f == "function") return f(E);
3111
- if (typeof f == "string") return E[f];
3112
- }, [k, Z] = G(!1);
3113
- R(() => {
3141
+ const p = [r, o, t].filter((E) => E !== void 0).length, N = !!I, R = p === 3 ? N ? "178px" : "140px" : p === 2 ? N ? "140px" : "102px" : p === 1 ? N ? "112px" : "74px" : N ? "74px" : "", f = (E, S) => {
3142
+ if (!S) return E;
3143
+ if (typeof S == "function") return S(E);
3144
+ if (typeof S == "string") return E[S];
3145
+ }, [k, P] = b(!1);
3146
+ U(() => {
3114
3147
  if (!(d != null && d.current)) return;
3115
3148
  const E = d.current;
3116
- Z(E.scrollHeight > E.clientHeight);
3149
+ P(E.scrollHeight > E.clientHeight);
3117
3150
  }, [i, d]);
3118
- const H = AA(null), [P, X] = G([]);
3151
+ const Z = eA(null), [V, AA] = b([]);
3119
3152
  zA(() => {
3120
- if (!w || !H.current) {
3121
- X([]);
3153
+ if (!w || !Z.current) {
3154
+ AA([]);
3122
3155
  return;
3123
3156
  }
3124
3157
  const E = Array.from(
3125
- H.current.querySelectorAll("thead tr th")
3126
- ), f = [];
3158
+ Z.current.querySelectorAll("thead tr th")
3159
+ ), S = [];
3127
3160
  let M = 0;
3128
3161
  E.forEach((D, F) => {
3129
- f[F] = M, F < w && (M += D.offsetWidth);
3130
- }), X(f);
3162
+ S[F] = M, F < w && (M += D.offsetWidth);
3163
+ }), AA(S);
3131
3164
  }, [w, e, i]);
3132
- const q = (E) => {
3165
+ const T = (E) => {
3133
3166
  B && B(E < w ? E : E + 1);
3134
3167
  };
3135
- return /* @__PURE__ */ A("div", { ref: H, children: /* @__PURE__ */ g(Ae, { fullWidth: !0, children: [
3168
+ return /* @__PURE__ */ A("div", { ref: Z, children: /* @__PURE__ */ s(Ae, { fullWidth: !0, children: [
3136
3169
  /* @__PURE__ */ A(
3137
3170
  he,
3138
3171
  {
@@ -3140,10 +3173,10 @@ const gr = (e) => {
3140
3173
  height: "40px",
3141
3174
  whiteSpace: "nowrap"
3142
3175
  },
3143
- children: /* @__PURE__ */ g(dA, { children: [
3144
- e.map((E, f) => {
3176
+ children: /* @__PURE__ */ s(QA, { children: [
3177
+ e.map((E, S) => {
3145
3178
  var F;
3146
- const M = w > 0 && f < w, D = P[f] ?? 0;
3179
+ const M = w > 0 && S < w, D = V[S] ?? 0;
3147
3180
  return /* @__PURE__ */ A(
3148
3181
  TA,
3149
3182
  {
@@ -3152,14 +3185,14 @@ const gr = (e) => {
3152
3185
  top: 0,
3153
3186
  left: M ? D : void 0,
3154
3187
  zIndex: M ? 4 : 2,
3155
- paddingLeft: f === 0 ? "12px" : "",
3188
+ paddingLeft: S === 0 ? "12px" : "",
3156
3189
  borderRight: C ? "1px solid var(--starasia-ui-utility-fill-default)" : void 0,
3157
3190
  borderBottom: C ? "1px solid var(--starasia-ui-utility-fill-default)" : void 0,
3158
3191
  width: E.width,
3159
3192
  backgroundColor: "var(--starasia-ui-table-bg-header)",
3160
3193
  textAlign: E.textAlign === "text-right" ? "right" : E.textAlign === "text-center" ? "center" : "left"
3161
3194
  },
3162
- children: /* @__PURE__ */ g(
3195
+ children: /* @__PURE__ */ s(
3163
3196
  "div",
3164
3197
  {
3165
3198
  style: {
@@ -3181,7 +3214,7 @@ const gr = (e) => {
3181
3214
  B && /* @__PURE__ */ A(
3182
3215
  "button",
3183
3216
  {
3184
- onClick: () => q(f),
3217
+ onClick: () => T(S),
3185
3218
  title: M ? "Unfreeze column" : "Freeze column",
3186
3219
  style: {
3187
3220
  background: "none",
@@ -3202,10 +3235,10 @@ const gr = (e) => {
3202
3235
  }
3203
3236
  )
3204
3237
  },
3205
- `table-head-${f}`
3238
+ `table-head-${S}`
3206
3239
  );
3207
3240
  }),
3208
- r || o || t || u ? /* @__PURE__ */ A(
3241
+ r || o || t || I ? /* @__PURE__ */ A(
3209
3242
  TA,
3210
3243
  {
3211
3244
  style: {
@@ -3221,19 +3254,19 @@ const gr = (e) => {
3221
3254
  ] })
3222
3255
  }
3223
3256
  ),
3224
- /* @__PURE__ */ A(De, { children: n ? /* @__PURE__ */ A(dA, { children: /* @__PURE__ */ A(sA, { colSpan: e.length + 1, children: /* @__PURE__ */ g(a, { style: { gap: "16px" }, children: [
3225
- /* @__PURE__ */ A(lA, { variant: "list" }),
3226
- /* @__PURE__ */ A(lA, { variant: "list" }),
3227
- /* @__PURE__ */ A(lA, { variant: "list" }),
3228
- /* @__PURE__ */ A(lA, { variant: "list" }),
3229
- /* @__PURE__ */ A(lA, { variant: "list" })
3230
- ] }) }) }) : !(i != null && i.length) && h ? /* @__PURE__ */ A(dA, { children: /* @__PURE__ */ A(sA, { colSpan: e.length + 1, children: h }) }) : i == null ? void 0 : i.map((E, f) => /* @__PURE__ */ g(
3231
- dA,
3257
+ /* @__PURE__ */ A(De, { children: n ? /* @__PURE__ */ A(QA, { children: /* @__PURE__ */ A(BA, { colSpan: e.length + 1, children: /* @__PURE__ */ s(a, { style: { gap: "16px" }, children: [
3258
+ /* @__PURE__ */ A(cA, { variant: "list" }),
3259
+ /* @__PURE__ */ A(cA, { variant: "list" }),
3260
+ /* @__PURE__ */ A(cA, { variant: "list" }),
3261
+ /* @__PURE__ */ A(cA, { variant: "list" }),
3262
+ /* @__PURE__ */ A(cA, { variant: "list" })
3263
+ ] }) }) }) : !(i != null && i.length) && h ? /* @__PURE__ */ A(QA, { children: /* @__PURE__ */ A(BA, { colSpan: e.length + 1, children: h }) }) : i == null ? void 0 : i.map((E, S) => /* @__PURE__ */ s(
3264
+ QA,
3232
3265
  {
3233
3266
  style: {
3234
3267
  transition: "background-color 0.3s ease",
3235
3268
  padding: 0,
3236
- borderBottom: f === i.length - 1 && k ? void 0 : "1px solid var(--starasia-ui-utility-fill-default)"
3269
+ borderBottom: S === i.length - 1 && k ? void 0 : "1px solid var(--starasia-ui-utility-fill-default)"
3237
3270
  },
3238
3271
  onMouseOver: (M) => {
3239
3272
  const D = M.currentTarget;
@@ -3253,13 +3286,13 @@ const gr = (e) => {
3253
3286
  },
3254
3287
  children: [
3255
3288
  e.map((M, D) => {
3256
- const F = M.render ? M.render(E, f, i) : L(E, M.accessor), x = w > 0 && D < w, T = P[D] ?? 0;
3289
+ const F = M.render ? M.render(E, S, i) : f(E, M.accessor), x = w > 0 && D < w, H = V[D] ?? 0;
3257
3290
  return /* @__PURE__ */ A(
3258
- sA,
3291
+ BA,
3259
3292
  {
3260
3293
  style: {
3261
3294
  position: x ? "sticky" : void 0,
3262
- left: x ? T : void 0,
3295
+ left: x ? H : void 0,
3263
3296
  zIndex: x ? 1 : void 0,
3264
3297
  backgroundColor: x ? mA : void 0,
3265
3298
  paddingLeft: D === 0 ? "12px" : "",
@@ -3281,46 +3314,46 @@ const gr = (e) => {
3281
3314
  }
3282
3315
  ) : F
3283
3316
  },
3284
- `row-${f}-col-${D}`
3317
+ `row-${S}-col-${D}`
3285
3318
  );
3286
3319
  }),
3287
- r || o || t || u ? /* @__PURE__ */ A(sA, { style: {
3288
- width: U,
3320
+ r || o || t || I ? /* @__PURE__ */ A(BA, { style: {
3321
+ width: R,
3289
3322
  position: "sticky",
3290
3323
  right: 0,
3291
3324
  zIndex: 1,
3292
3325
  backgroundColor: mA
3293
- }, children: /* @__PURE__ */ A(J, { direction: "row", align: "center", justify: "center", gap: "sm", children: j.map((M) => {
3294
- const D = f === i.length - 1 ? "top" : "bottom";
3295
- return M === "detail" && r && (s == null ? void 0 : s(E)) !== !1 ? /* @__PURE__ */ A(iA, { label: "Detail", position: D, children: /* @__PURE__ */ A(
3296
- b,
3326
+ }, children: /* @__PURE__ */ A(q, { direction: "row", align: "center", justify: "center", gap: "sm", children: G.map((M) => {
3327
+ const D = S === i.length - 1 ? "top" : "bottom";
3328
+ return M === "detail" && r && (g == null ? void 0 : g(E)) !== !1 ? /* @__PURE__ */ A(tA, { label: "Detail", position: D, children: /* @__PURE__ */ A(
3329
+ O,
3297
3330
  {
3298
3331
  size: "xs",
3299
3332
  secondary: !0,
3300
3333
  onClick: () => r(E.id, E),
3301
3334
  iconLeft: /* @__PURE__ */ A(m, { name: "DocumentClean", size: "sm", style: { color: "rgb(var(--starasia-ui-raw-color-gray-600))" } })
3302
3335
  }
3303
- ) }, "detail") : M === "update" && o && (c == null ? void 0 : c(E)) !== !1 ? /* @__PURE__ */ A(iA, { label: "Update", position: D, children: /* @__PURE__ */ A(
3304
- b,
3336
+ ) }, "detail") : M === "update" && o && (c == null ? void 0 : c(E)) !== !1 ? /* @__PURE__ */ A(tA, { label: "Update", position: D, children: /* @__PURE__ */ A(
3337
+ O,
3305
3338
  {
3306
3339
  size: "xs",
3307
3340
  secondary: !0,
3308
3341
  onClick: () => o(E),
3309
3342
  iconLeft: /* @__PURE__ */ A(m, { name: "Edit1", size: "sm", style: { color: "rgb(var(--starasia-ui-raw-color-gray-600))" } })
3310
3343
  }
3311
- ) }, "update") : M === "delete" && t && (l == null ? void 0 : l(E)) !== !1 ? /* @__PURE__ */ A(iA, { label: "Delete", position: D, children: /* @__PURE__ */ A(
3312
- b,
3344
+ ) }, "update") : M === "delete" && t && (l == null ? void 0 : l(E)) !== !1 ? /* @__PURE__ */ A(tA, { label: "Delete", position: D, children: /* @__PURE__ */ A(
3345
+ O,
3313
3346
  {
3314
3347
  size: "xs",
3315
3348
  secondary: !0,
3316
3349
  onClick: () => t(E.id, E),
3317
3350
  iconLeft: /* @__PURE__ */ A(m, { name: "Trash1", size: "sm", style: { color: "rgb(var(--starasia-ui-raw-color-red-600))" } })
3318
3351
  }
3319
- ) }, "delete") : M === "custom" ? /* @__PURE__ */ A(cA.Fragment, { children: u == null ? void 0 : u(E) }, "custom") : null;
3352
+ ) }, "delete") : M === "custom" ? /* @__PURE__ */ A(gA.Fragment, { children: I == null ? void 0 : I(E) }, "custom") : null;
3320
3353
  }) }) }) : null
3321
3354
  ]
3322
3355
  },
3323
- `${E}${f}`
3356
+ `${E}${S}`
3324
3357
  )) })
3325
3358
  ] }) });
3326
3359
  }, pi = ({
@@ -3330,12 +3363,12 @@ const gr = (e) => {
3330
3363
  footerProps: o
3331
3364
  }) => {
3332
3365
  var w;
3333
- const t = AA(null), [n, l] = G(
3366
+ const t = eA(null), [n, l] = b(
3334
3367
  (i == null ? void 0 : i.defaultFrozenCount) ?? 0
3335
- ), c = (r == null ? void 0 : r.show) ?? !0, s = AA(null), C = (w = i == null ? void 0 : i.pagination) == null ? void 0 : w.totalData;
3336
- typeof C == "number" && (s.current = C);
3337
- const d = (o == null ? void 0 : o.showFooter) ?? (C === void 0 ? s.current !== 0 : C !== 0);
3338
- return /* @__PURE__ */ g(fi, { ...e, children: [
3368
+ ), c = (r == null ? void 0 : r.show) ?? !0, g = eA(null), C = (w = i == null ? void 0 : i.pagination) == null ? void 0 : w.totalData;
3369
+ typeof C == "number" && (g.current = C);
3370
+ const d = (o == null ? void 0 : o.showFooter) ?? (C === void 0 ? g.current !== 0 : C !== 0);
3371
+ return /* @__PURE__ */ s(fi, { ...e, children: [
3339
3372
  c && /* @__PURE__ */ A(Si, { ...r }),
3340
3373
  /* @__PURE__ */ A(
3341
3374
  a,
@@ -3375,10 +3408,10 @@ function ji(e) {
3375
3408
  e
3376
3409
  );
3377
3410
  }
3378
- const Dr = ji(pi), kA = ({
3411
+ const Dr = ji(pi), EA = ({
3379
3412
  of: e,
3380
3413
  render: i
3381
- }) => ye.toArray(e == null ? void 0 : e.map((r, o, t) => i(r, o, t))), O = ({
3414
+ }) => ye.toArray(e == null ? void 0 : e.map((r, o, t) => i(r, o, t))), Y = ({
3382
3415
  condition: e,
3383
3416
  fallback: i,
3384
3417
  children: r,
@@ -3394,7 +3427,7 @@ const Dr = ji(pi), kA = ({
3394
3427
  setSelectedApp: l
3395
3428
  }) => {
3396
3429
  var c;
3397
- return /* @__PURE__ */ g(
3430
+ return /* @__PURE__ */ s(
3398
3431
  a,
3399
3432
  {
3400
3433
  borderWidth: "border-b",
@@ -3405,13 +3438,13 @@ const Dr = ji(pi), kA = ({
3405
3438
  justify: "space-between",
3406
3439
  cursor: "pointer",
3407
3440
  onClick: () => {
3408
- var s;
3441
+ var g;
3409
3442
  if (e.isTenant && r && !n) {
3410
3443
  r(e);
3411
3444
  return;
3412
3445
  }
3413
3446
  if (i && n) {
3414
- i(e.applicationKey, (s = e.id) == null ? void 0 : s.toString());
3447
+ i(e.applicationKey, (g = e.id) == null ? void 0 : g.toString());
3415
3448
  return;
3416
3449
  }
3417
3450
  if (i) {
@@ -3423,21 +3456,21 @@ const Dr = ji(pi), kA = ({
3423
3456
  borderColor: "var(--starasia-ui-utility-fill-default)",
3424
3457
  transition: "border-color 0.3s ease"
3425
3458
  },
3426
- onMouseEnter: (s) => s.currentTarget.style.setProperty("border-color", "#5C9EDD"),
3427
- onMouseLeave: (s) => s.currentTarget.style.setProperty(
3459
+ onMouseEnter: (g) => g.currentTarget.style.setProperty("border-color", "#5C9EDD"),
3460
+ onMouseLeave: (g) => g.currentTarget.style.setProperty(
3428
3461
  "border-color",
3429
3462
  "var(--starasia-ui-utility-fill-default)"
3430
3463
  ),
3431
3464
  children: [
3432
3465
  /* @__PURE__ */ A(
3433
- O,
3466
+ Y,
3434
3467
  {
3435
3468
  condition: !!e.role && !e.isTenant || t,
3436
- fallback: /* @__PURE__ */ A(K.Body1, { children: e.name }),
3437
- children: /* @__PURE__ */ g(a, { direction: "column", gap: "sm", children: [
3438
- /* @__PURE__ */ A(K.Body1, { children: e.name }),
3469
+ fallback: /* @__PURE__ */ A(J.Body1, { children: e.name }),
3470
+ children: /* @__PURE__ */ s(a, { direction: "column", gap: "sm", children: [
3471
+ /* @__PURE__ */ A(J.Body1, { children: e.name }),
3439
3472
  /* @__PURE__ */ A(
3440
- K.Body3,
3473
+ J.Body3,
3441
3474
  {
3442
3475
  props: {
3443
3476
  color: "tertiary"
@@ -3448,7 +3481,7 @@ const Dr = ji(pi), kA = ({
3448
3481
  ] })
3449
3482
  }
3450
3483
  ),
3451
- /* @__PURE__ */ A(O, { condition: e.isTenant && o, children: /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(m, { name: "ChevronRight", size: "md" }) }) })
3484
+ /* @__PURE__ */ A(Y, { condition: e.isTenant && o, children: /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(m, { name: "ChevronRight", size: "md" }) }) })
3452
3485
  ]
3453
3486
  }
3454
3487
  );
@@ -3461,11 +3494,11 @@ const Dr = ji(pi), kA = ({
3461
3494
  showIcon: n,
3462
3495
  showRole: l,
3463
3496
  isOnOrgSelect: c,
3464
- setSelectedApp: s
3465
- }) => t && e && e.length > 0 && /* @__PURE__ */ g(a, { marginTop: "lg", children: [
3466
- r && /* @__PURE__ */ A(K.H5, { children: r }),
3497
+ setSelectedApp: g
3498
+ }) => t && e && e.length > 0 && /* @__PURE__ */ s(a, { marginTop: "lg", children: [
3499
+ r && /* @__PURE__ */ A(J.H5, { children: r }),
3467
3500
  /* @__PURE__ */ A(
3468
- kA,
3501
+ EA,
3469
3502
  {
3470
3503
  of: e,
3471
3504
  render: (C) => /* @__PURE__ */ A(
@@ -3477,7 +3510,7 @@ const Dr = ji(pi), kA = ({
3477
3510
  handleToSelectOrg: o,
3478
3511
  showRole: l,
3479
3512
  isOnOrgSelect: c,
3480
- setSelectedApp: s
3513
+ setSelectedApp: g
3481
3514
  }
3482
3515
  )
3483
3516
  }
@@ -3491,13 +3524,13 @@ const Dr = ji(pi), kA = ({
3491
3524
  totalData: n,
3492
3525
  handleToSelectOrg: l,
3493
3526
  isLoadingOrgList: c,
3494
- setSelectedApp: s
3527
+ setSelectedApp: g
3495
3528
  }) => {
3496
3529
  var d;
3497
3530
  const C = _A();
3498
- return /* @__PURE__ */ g(LA, { onHide: e, show: i, closeButton: !1, children: [
3499
- /* @__PURE__ */ g(
3500
- aA,
3531
+ return /* @__PURE__ */ s(LA, { onHide: e, show: i, closeButton: !1, children: [
3532
+ /* @__PURE__ */ s(
3533
+ wA,
3501
3534
  {
3502
3535
  paddingBlock: "lg",
3503
3536
  onClick: C.show ? C.close : e,
@@ -3506,7 +3539,7 @@ const Dr = ji(pi), kA = ({
3506
3539
  children: [
3507
3540
  C.show ? /* @__PURE__ */ A(m, { name: "ChevronLeft" }) : /* @__PURE__ */ A(m, { name: "Cross" }),
3508
3541
  /* @__PURE__ */ A(
3509
- K.SubH3,
3542
+ J.SubH3,
3510
3543
  {
3511
3544
  props: {
3512
3545
  color: "gray-500"
@@ -3517,10 +3550,10 @@ const Dr = ji(pi), kA = ({
3517
3550
  ]
3518
3551
  }
3519
3552
  ),
3520
- C.show ? /* @__PURE__ */ g(W, { children: [
3521
- /* @__PURE__ */ A(K.H4, { children: (d = C.data) == null ? void 0 : d.name }),
3553
+ C.show ? /* @__PURE__ */ s(W, { children: [
3554
+ /* @__PURE__ */ A(J.H4, { children: (d = C.data) == null ? void 0 : d.name }),
3522
3555
  /* @__PURE__ */ A(
3523
- K.SubH3,
3556
+ J.SubH3,
3524
3557
  {
3525
3558
  props: {
3526
3559
  color: "gray-500"
@@ -3529,14 +3562,14 @@ const Dr = ji(pi), kA = ({
3529
3562
  }
3530
3563
  ),
3531
3564
  /* @__PURE__ */ A(
3532
- O,
3565
+ Y,
3533
3566
  {
3534
3567
  condition: !!(o != null && o.length),
3535
3568
  isLoading: c,
3536
- loading: /* @__PURE__ */ g(a, { marginTop: "sm", gap: "md", children: [
3537
- /* @__PURE__ */ A(lA, { variant: "list" }),
3538
- /* @__PURE__ */ A(lA, { variant: "list" }),
3539
- /* @__PURE__ */ A(lA, { variant: "list" })
3569
+ loading: /* @__PURE__ */ s(a, { marginTop: "sm", gap: "md", children: [
3570
+ /* @__PURE__ */ A(cA, { variant: "list" }),
3571
+ /* @__PURE__ */ A(cA, { variant: "list" }),
3572
+ /* @__PURE__ */ A(cA, { variant: "list" })
3540
3573
  ] }),
3541
3574
  children: /* @__PURE__ */ A(
3542
3575
  jA,
@@ -3554,16 +3587,16 @@ const Dr = ji(pi), kA = ({
3554
3587
  showIcon: !1,
3555
3588
  showRole: !0,
3556
3589
  isOnOrgSelect: C.show,
3557
- setSelectedApp: s
3590
+ setSelectedApp: g
3558
3591
  }
3559
3592
  )
3560
3593
  }
3561
3594
  )
3562
- ] }) : /* @__PURE__ */ g(W, { children: [
3563
- /* @__PURE__ */ g(J, { direction: "row", align: "center", gap: "sm", children: [
3564
- /* @__PURE__ */ A(K.H4, { children: "Switch Apps" }),
3565
- /* @__PURE__ */ g(
3566
- K.SubH3,
3595
+ ] }) : /* @__PURE__ */ s(W, { children: [
3596
+ /* @__PURE__ */ s(q, { direction: "row", align: "center", gap: "sm", children: [
3597
+ /* @__PURE__ */ A(J.H4, { children: "Switch Apps" }),
3598
+ /* @__PURE__ */ s(
3599
+ J.SubH3,
3567
3600
  {
3568
3601
  props: {
3569
3602
  color: "gray-500"
@@ -3583,9 +3616,9 @@ const Dr = ji(pi), kA = ({
3583
3616
  dataApps: r == null ? void 0 : r.filter((w) => w.isTenant),
3584
3617
  handleSwitch: t,
3585
3618
  handleToSelectOrg: (w) => {
3586
- C.open(w), s(w.name), l && l(w);
3619
+ C.open(w), g(w.name), l && l(w);
3587
3620
  },
3588
- setSelectedApp: s
3621
+ setSelectedApp: g
3589
3622
  }
3590
3623
  ),
3591
3624
  /* @__PURE__ */ A(
@@ -3595,7 +3628,7 @@ const Dr = ji(pi), kA = ({
3595
3628
  show: r == null ? void 0 : r.some((w) => !w.isTenant),
3596
3629
  dataApps: r == null ? void 0 : r.filter((w) => !w.isTenant),
3597
3630
  handleSwitch: t,
3598
- setSelectedApp: s
3631
+ setSelectedApp: g
3599
3632
  }
3600
3633
  )
3601
3634
  ] })
@@ -3609,11 +3642,11 @@ const Dr = ji(pi), kA = ({
3609
3642
  showIcon: n,
3610
3643
  showRole: l,
3611
3644
  isOnOrgSelect: c,
3612
- setSelectedApp: s
3613
- }) => t && e && (e == null ? void 0 : e.length) > 0 && /* @__PURE__ */ g(a, { marginTop: "lg", children: [
3614
- r && /* @__PURE__ */ A(K.H5, { children: r }),
3645
+ setSelectedApp: g
3646
+ }) => t && e && (e == null ? void 0 : e.length) > 0 && /* @__PURE__ */ s(a, { marginTop: "lg", children: [
3647
+ r && /* @__PURE__ */ A(J.H5, { children: r }),
3615
3648
  /* @__PURE__ */ A(
3616
- kA,
3649
+ EA,
3617
3650
  {
3618
3651
  of: e,
3619
3652
  render: (C) => /* @__PURE__ */ A(
@@ -3625,7 +3658,7 @@ const Dr = ji(pi), kA = ({
3625
3658
  handleToSelectOrg: o,
3626
3659
  showRole: l,
3627
3660
  isOnOrgSelect: c,
3628
- setSelectedApp: s
3661
+ setSelectedApp: g
3629
3662
  }
3630
3663
  )
3631
3664
  }
@@ -3638,11 +3671,11 @@ const Dr = ji(pi), kA = ({
3638
3671
  totalData: t,
3639
3672
  setSelectedApp: n
3640
3673
  }) => {
3641
- var c, s, C, d, w;
3674
+ var c, g, C, d, w;
3642
3675
  const l = _A();
3643
- return /* @__PURE__ */ g(LA, { onHide: e, show: i, closeButton: !1, children: [
3644
- /* @__PURE__ */ g(
3645
- aA,
3676
+ return /* @__PURE__ */ s(LA, { onHide: e, show: i, closeButton: !1, children: [
3677
+ /* @__PURE__ */ s(
3678
+ wA,
3646
3679
  {
3647
3680
  paddingBlock: "lg",
3648
3681
  onClick: l.show ? l.close : e,
@@ -3651,7 +3684,7 @@ const Dr = ji(pi), kA = ({
3651
3684
  children: [
3652
3685
  l.show ? /* @__PURE__ */ A(m, { name: "ChevronLeft" }) : /* @__PURE__ */ A(m, { name: "Cross" }),
3653
3686
  /* @__PURE__ */ A(
3654
- K.SubH3,
3687
+ J.SubH3,
3655
3688
  {
3656
3689
  props: {
3657
3690
  color: "gray-500"
@@ -3662,10 +3695,10 @@ const Dr = ji(pi), kA = ({
3662
3695
  ]
3663
3696
  }
3664
3697
  ),
3665
- l.show ? /* @__PURE__ */ g(W, { children: [
3666
- /* @__PURE__ */ A(K.H4, { children: (c = l.data) == null ? void 0 : c.name }),
3698
+ l.show ? /* @__PURE__ */ s(W, { children: [
3699
+ /* @__PURE__ */ A(J.H4, { children: (c = l.data) == null ? void 0 : c.name }),
3667
3700
  /* @__PURE__ */ A(
3668
- K.SubH3,
3701
+ J.SubH3,
3669
3702
  {
3670
3703
  props: {
3671
3704
  color: "tertiary"
@@ -3674,19 +3707,19 @@ const Dr = ji(pi), kA = ({
3674
3707
  }
3675
3708
  ),
3676
3709
  /* @__PURE__ */ A(
3677
- O,
3710
+ Y,
3678
3711
  {
3679
- condition: !!((C = (s = l.data) == null ? void 0 : s.organizations) != null && C.length),
3712
+ condition: !!((C = (g = l.data) == null ? void 0 : g.organizations) != null && C.length),
3680
3713
  children: /* @__PURE__ */ A(
3681
3714
  NA,
3682
3715
  {
3683
3716
  dataApps: (w = (d = l.data) == null ? void 0 : d.organizations) == null ? void 0 : w.map((B) => {
3684
- var u;
3717
+ var I;
3685
3718
  return {
3686
3719
  ...B,
3687
3720
  id: B.id,
3688
3721
  isTenant: !0,
3689
- applicationKey: ((u = l.data) == null ? void 0 : u.applicationKey) || ""
3722
+ applicationKey: ((I = l.data) == null ? void 0 : I.applicationKey) || ""
3690
3723
  };
3691
3724
  }),
3692
3725
  handleSwitch: o,
@@ -3698,11 +3731,11 @@ const Dr = ji(pi), kA = ({
3698
3731
  )
3699
3732
  }
3700
3733
  )
3701
- ] }) : /* @__PURE__ */ g(W, { children: [
3702
- /* @__PURE__ */ g(J, { direction: "row", align: "center", gap: "sm", children: [
3703
- /* @__PURE__ */ A(K.H4, { children: "Switch Apps" }),
3704
- /* @__PURE__ */ g(
3705
- K.SubH3,
3734
+ ] }) : /* @__PURE__ */ s(W, { children: [
3735
+ /* @__PURE__ */ s(q, { direction: "row", align: "center", gap: "sm", children: [
3736
+ /* @__PURE__ */ A(J.H4, { children: "Switch Apps" }),
3737
+ /* @__PURE__ */ s(
3738
+ J.SubH3,
3706
3739
  {
3707
3740
  props: {
3708
3741
  color: "gray-500"
@@ -3749,9 +3782,9 @@ const Dr = ji(pi), kA = ({
3749
3782
  variant: l = "single-api",
3750
3783
  isLoading: c
3751
3784
  }) => {
3752
- const [s, C] = G(!1), [d, w] = G("");
3753
- return /* @__PURE__ */ g(W, { children: [
3754
- /* @__PURE__ */ g(
3785
+ const [g, C] = b(!1), [d, w] = b("");
3786
+ return /* @__PURE__ */ s(W, { children: [
3787
+ /* @__PURE__ */ s(
3755
3788
  a,
3756
3789
  {
3757
3790
  cursor: "pointer",
@@ -3799,13 +3832,13 @@ const Dr = ji(pi), kA = ({
3799
3832
  }
3800
3833
  ),
3801
3834
  /* @__PURE__ */ A(
3802
- O,
3835
+ Y,
3803
3836
  {
3804
3837
  condition: l === "single-api",
3805
3838
  fallback: /* @__PURE__ */ A(
3806
3839
  Ni,
3807
3840
  {
3808
- show: s,
3841
+ show: g,
3809
3842
  onHide: () => C((B) => !B),
3810
3843
  dataApps: i,
3811
3844
  totalData: e,
@@ -3819,7 +3852,7 @@ const Dr = ji(pi), kA = ({
3819
3852
  children: /* @__PURE__ */ A(
3820
3853
  Fi,
3821
3854
  {
3822
- show: s,
3855
+ show: g,
3823
3856
  onHide: () => C((B) => !B),
3824
3857
  dataApps: i,
3825
3858
  totalData: e,
@@ -3844,7 +3877,7 @@ const Dr = ji(pi), kA = ({
3844
3877
  justifyContent: "center",
3845
3878
  alignItems: "center"
3846
3879
  },
3847
- children: /* @__PURE__ */ g(
3880
+ children: /* @__PURE__ */ s(
3848
3881
  a,
3849
3882
  {
3850
3883
  style: {
@@ -3854,7 +3887,7 @@ const Dr = ji(pi), kA = ({
3854
3887
  align: "center",
3855
3888
  children: [
3856
3889
  /* @__PURE__ */ A("img", { style: { width: "180px" }, src: zi }),
3857
- /* @__PURE__ */ g(
3890
+ /* @__PURE__ */ s(
3858
3891
  Q,
3859
3892
  {
3860
3893
  fontWeight: "black",
@@ -3879,7 +3912,7 @@ const Dr = ji(pi), kA = ({
3879
3912
  }
3880
3913
  )
3881
3914
  ] });
3882
- }, z = (e) => /* @__PURE__ */ A(
3915
+ }, K = (e) => /* @__PURE__ */ A(
3883
3916
  Q,
3884
3917
  {
3885
3918
  ...e,
@@ -3896,9 +3929,9 @@ const Dr = ji(pi), kA = ({
3896
3929
  fullWidth: o = !1,
3897
3930
  ...t
3898
3931
  }) => {
3899
- var c, s, C;
3932
+ var c, g, C;
3900
3933
  const n = t.hideMessageError || !1, l = i === "horizontal" ? e === "sm" ? 342 : e === "lg" ? 400 : 342 : void 0;
3901
- return /* @__PURE__ */ g(
3934
+ return /* @__PURE__ */ s(
3902
3935
  a,
3903
3936
  {
3904
3937
  gap: i === "horizontal" ? "spacing-96" : "sm",
@@ -3906,35 +3939,35 @@ const Dr = ji(pi), kA = ({
3906
3939
  ...t.containerProps,
3907
3940
  children: [
3908
3941
  t.title && /* @__PURE__ */ A(
3909
- O,
3942
+ Y,
3910
3943
  {
3911
3944
  condition: !!t.inputProps.required,
3912
- fallback: /* @__PURE__ */ g(
3945
+ fallback: /* @__PURE__ */ s(
3913
3946
  a,
3914
3947
  {
3915
3948
  direction: "column",
3916
3949
  customMaxWidth: l,
3917
3950
  fullWidth: o,
3918
3951
  children: [
3919
- /* @__PURE__ */ A(z, { children: t.title }),
3952
+ /* @__PURE__ */ A(K, { children: t.title }),
3920
3953
  /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description })
3921
3954
  ]
3922
3955
  }
3923
3956
  ),
3924
- children: /* @__PURE__ */ g(
3957
+ children: /* @__PURE__ */ s(
3925
3958
  a,
3926
3959
  {
3927
3960
  direction: "column",
3928
3961
  customMaxWidth: l,
3929
3962
  fullWidth: o,
3930
3963
  children: [
3931
- /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
3932
- /* @__PURE__ */ A(z, { fontSize: e, children: t.title }),
3933
- /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
3934
- /* @__PURE__ */ A(O, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
3935
- iA,
3964
+ /* @__PURE__ */ s(q, { direction: "row", gap: "xs", align: "center", children: [
3965
+ /* @__PURE__ */ A(K, { fontSize: e, children: t.title }),
3966
+ /* @__PURE__ */ A(K, { color: "error", fontSize: e, children: r }),
3967
+ /* @__PURE__ */ A(Y, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
3968
+ tA,
3936
3969
  {
3937
- label: (s = t.tooltip) == null ? void 0 : s.label,
3970
+ label: (g = t.tooltip) == null ? void 0 : g.label,
3938
3971
  arrowPosition: (C = t.tooltip) == null ? void 0 : C.arrowPosition,
3939
3972
  ...t.tooltip,
3940
3973
  children: /* @__PURE__ */ A(
@@ -3951,15 +3984,15 @@ const Dr = ji(pi), kA = ({
3951
3984
  }
3952
3985
  ) })
3953
3986
  ] }),
3954
- /* @__PURE__ */ A(O, { condition: !!t.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description }) })
3987
+ /* @__PURE__ */ A(Y, { condition: !!t.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description }) })
3955
3988
  ]
3956
3989
  }
3957
3990
  )
3958
3991
  }
3959
3992
  ),
3960
- /* @__PURE__ */ g(a, { gap: "xs", fullWidth: t.inputProps.fullWidth || !1, children: [
3993
+ /* @__PURE__ */ s(a, { gap: "xs", fullWidth: t.inputProps.fullWidth || !1, children: [
3961
3994
  /* @__PURE__ */ A(
3962
- IA,
3995
+ uA,
3963
3996
  {
3964
3997
  ref: t.inputRef,
3965
3998
  size: e,
@@ -3981,9 +4014,9 @@ const Dr = ji(pi), kA = ({
3981
4014
  fullWidth: o = !1,
3982
4015
  ...t
3983
4016
  }) => {
3984
- var c, s, C;
4017
+ var c, g, C;
3985
4018
  const n = t.hideMessageError || !1, l = i === "horizontal" ? e === "sm" ? 342 : e === "lg" ? 400 : 342 : void 0;
3986
- return /* @__PURE__ */ g(
4019
+ return /* @__PURE__ */ s(
3987
4020
  a,
3988
4021
  {
3989
4022
  gap: i === "horizontal" ? "spacing-96" : "sm",
@@ -3991,35 +4024,35 @@ const Dr = ji(pi), kA = ({
3991
4024
  onClick: t.onClickContainer,
3992
4025
  children: [
3993
4026
  t.title && /* @__PURE__ */ A(
3994
- O,
4027
+ Y,
3995
4028
  {
3996
4029
  condition: !!t.inputProps.required,
3997
- fallback: /* @__PURE__ */ g(
4030
+ fallback: /* @__PURE__ */ s(
3998
4031
  a,
3999
4032
  {
4000
4033
  direction: "column",
4001
4034
  customMaxWidth: l,
4002
4035
  fullWidth: o,
4003
4036
  children: [
4004
- /* @__PURE__ */ A(z, { children: t.title }),
4037
+ /* @__PURE__ */ A(K, { children: t.title }),
4005
4038
  /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description })
4006
4039
  ]
4007
4040
  }
4008
4041
  ),
4009
- children: /* @__PURE__ */ g(
4042
+ children: /* @__PURE__ */ s(
4010
4043
  a,
4011
4044
  {
4012
4045
  direction: "column",
4013
4046
  customMaxWidth: l,
4014
4047
  fullWidth: o,
4015
4048
  children: [
4016
- /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4017
- /* @__PURE__ */ A(z, { fontSize: e, children: t.title }),
4018
- /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
4019
- /* @__PURE__ */ A(O, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4020
- iA,
4049
+ /* @__PURE__ */ s(q, { direction: "row", gap: "xs", align: "center", children: [
4050
+ /* @__PURE__ */ A(K, { fontSize: e, children: t.title }),
4051
+ /* @__PURE__ */ A(K, { color: "error", fontSize: e, children: r }),
4052
+ /* @__PURE__ */ A(Y, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4053
+ tA,
4021
4054
  {
4022
- label: (s = t.tooltip) == null ? void 0 : s.label,
4055
+ label: (g = t.tooltip) == null ? void 0 : g.label,
4023
4056
  arrowPosition: (C = t.tooltip) == null ? void 0 : C.arrowPosition,
4024
4057
  ...t.tooltip,
4025
4058
  children: /* @__PURE__ */ A(
@@ -4036,13 +4069,13 @@ const Dr = ji(pi), kA = ({
4036
4069
  }
4037
4070
  ) })
4038
4071
  ] }),
4039
- /* @__PURE__ */ A(O, { condition: !!t.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description }) })
4072
+ /* @__PURE__ */ A(Y, { condition: !!t.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description }) })
4040
4073
  ]
4041
4074
  }
4042
4075
  )
4043
4076
  }
4044
4077
  ),
4045
- /* @__PURE__ */ g(a, { gap: "xs", fullWidth: t.inputProps.fullWidth || !1, children: [
4078
+ /* @__PURE__ */ s(a, { gap: "xs", fullWidth: t.inputProps.fullWidth || !1, children: [
4046
4079
  /* @__PURE__ */ A(
4047
4080
  a,
4048
4081
  {
@@ -4067,16 +4100,16 @@ const Dr = ji(pi), kA = ({
4067
4100
  );
4068
4101
  }, Hi = (e, i) => typeof e == "string" && e || i === "error" ? "var(--starasia-ui-color-error)" : "var(--starasia-ui-text-disable)", Ji = (e) => {
4069
4102
  var c;
4070
- const [i, r] = G(!1), o = (s) => {
4071
- s.preventDefault(), s.stopPropagation();
4072
- }, t = (s) => {
4073
- s.preventDefault(), s.stopPropagation(), s.dataTransfer && e.handleOnFileChange(s.dataTransfer.files.item(0));
4074
- }, n = (s) => {
4075
- s.preventDefault(), r(!0);
4076
- }, l = (s) => {
4077
- s.preventDefault(), r(!1);
4103
+ const [i, r] = b(!1), o = (g) => {
4104
+ g.preventDefault(), g.stopPropagation();
4105
+ }, t = (g) => {
4106
+ g.preventDefault(), g.stopPropagation(), g.dataTransfer && e.handleOnFileChange(g.dataTransfer.files.item(0));
4107
+ }, n = (g) => {
4108
+ g.preventDefault(), r(!0);
4109
+ }, l = (g) => {
4110
+ g.preventDefault(), r(!1);
4078
4111
  };
4079
- return /* @__PURE__ */ g(
4112
+ return /* @__PURE__ */ s(
4080
4113
  a,
4081
4114
  {
4082
4115
  width: "width-full",
@@ -4106,8 +4139,8 @@ const Dr = ji(pi), kA = ({
4106
4139
  }
4107
4140
  }
4108
4141
  ),
4109
- /* @__PURE__ */ g(J, { gap: "xs", children: [
4110
- /* @__PURE__ */ g(J, { direction: "row", gap: "xs", children: [
4142
+ /* @__PURE__ */ s(q, { gap: "xs", children: [
4143
+ /* @__PURE__ */ s(q, { direction: "row", gap: "xs", children: [
4111
4144
  /* @__PURE__ */ A(
4112
4145
  Q,
4113
4146
  {
@@ -4128,7 +4161,7 @@ const Dr = ji(pi), kA = ({
4128
4161
  }
4129
4162
  )
4130
4163
  ] }),
4131
- /* @__PURE__ */ A(Q, { fontSize: "sm", color: "gray-500", children: (c = e.fileSupports) == null ? void 0 : c.map((s) => s.toLocaleUpperCase()).join(", ") })
4164
+ /* @__PURE__ */ A(Q, { fontSize: "sm", color: "gray-500", children: (c = e.fileSupports) == null ? void 0 : c.map((g) => g.toLocaleUpperCase()).join(", ") })
4132
4165
  ] })
4133
4166
  ]
4134
4167
  }
@@ -4149,7 +4182,7 @@ function Ti(e) {
4149
4182
  }
4150
4183
  const Ui = (e) => {
4151
4184
  var i, r;
4152
- return /* @__PURE__ */ g(
4185
+ return /* @__PURE__ */ s(
4153
4186
  a,
4154
4187
  {
4155
4188
  width: "width-full",
@@ -4168,7 +4201,7 @@ const Ui = (e) => {
4168
4201
  cursor: "pointer"
4169
4202
  },
4170
4203
  children: [
4171
- /* @__PURE__ */ g(J, { direction: "row", align: "center", gap: "sm", children: [
4204
+ /* @__PURE__ */ s(q, { direction: "row", align: "center", gap: "sm", children: [
4172
4205
  /* @__PURE__ */ A(
4173
4206
  m,
4174
4207
  {
@@ -4181,7 +4214,7 @@ const Ui = (e) => {
4181
4214
  }
4182
4215
  }
4183
4216
  ),
4184
- /* @__PURE__ */ g(J, { children: [
4217
+ /* @__PURE__ */ s(q, { children: [
4185
4218
  /* @__PURE__ */ A(
4186
4219
  Q,
4187
4220
  {
@@ -4195,7 +4228,7 @@ const Ui = (e) => {
4195
4228
  children: Ti(e.defaultUrl || "") || ((i = e.fileSelected) == null ? void 0 : i.name)
4196
4229
  }
4197
4230
  ),
4198
- !e.defaultUrl && /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4231
+ !e.defaultUrl && /* @__PURE__ */ s(q, { direction: "row", gap: "xs", align: "center", children: [
4199
4232
  /* @__PURE__ */ A(Q, { fontSize: "sm", fontWeight: "medium", children: `${qi(
4200
4233
  ((r = e.fileSelected) == null ? void 0 : r.size.toString()) || "100000"
4201
4234
  )}` }),
@@ -4215,7 +4248,7 @@ const Ui = (e) => {
4215
4248
  ] })
4216
4249
  ] }),
4217
4250
  /* @__PURE__ */ A(
4218
- b,
4251
+ O,
4219
4252
  {
4220
4253
  size: "xs",
4221
4254
  secondary: !0,
@@ -4239,14 +4272,14 @@ const Ui = (e) => {
4239
4272
  );
4240
4273
  }, Wi = ({ status: e = "default", ...i }) => {
4241
4274
  var n;
4242
- const r = AA(null), o = () => {
4275
+ const r = eA(null), o = () => {
4243
4276
  if (i.defaultUrl) {
4244
4277
  window.open(i.defaultUrl);
4245
4278
  return;
4246
4279
  }
4247
4280
  r.current && r.current.click();
4248
- }, t = V("md");
4249
- return /* @__PURE__ */ g(W, { children: [
4281
+ }, t = X("md");
4282
+ return /* @__PURE__ */ s(W, { children: [
4250
4283
  /* @__PURE__ */ A(
4251
4284
  "input",
4252
4285
  {
@@ -4260,7 +4293,7 @@ const Ui = (e) => {
4260
4293
  accept: (n = i.fileSupportOption) == null ? void 0 : n.map((l) => "." + (l == null ? void 0 : l.toLowerCase())).join(", ")
4261
4294
  }
4262
4295
  ),
4263
- /* @__PURE__ */ g(
4296
+ /* @__PURE__ */ s(
4264
4297
  a,
4265
4298
  {
4266
4299
  fullWidth: !0,
@@ -4306,9 +4339,9 @@ const Ui = (e) => {
4306
4339
  fullWidth: o = !1,
4307
4340
  ...t
4308
4341
  }) => {
4309
- var c, s, C;
4342
+ var c, g, C;
4310
4343
  const n = t.hideMessageError || !1, l = i === "horizontal" ? e === "sm" ? 342 : e === "lg" ? 400 : 342 : void 0;
4311
- return /* @__PURE__ */ g(
4344
+ return /* @__PURE__ */ s(
4312
4345
  a,
4313
4346
  {
4314
4347
  gap: i === "horizontal" ? "spacing-96" : "sm",
@@ -4316,35 +4349,35 @@ const Ui = (e) => {
4316
4349
  ...t.containerProps,
4317
4350
  children: [
4318
4351
  t.title && /* @__PURE__ */ A(
4319
- O,
4352
+ Y,
4320
4353
  {
4321
4354
  condition: !!t.inputProps.required,
4322
- fallback: /* @__PURE__ */ g(
4355
+ fallback: /* @__PURE__ */ s(
4323
4356
  a,
4324
4357
  {
4325
4358
  direction: "column",
4326
4359
  customMaxWidth: l,
4327
4360
  fullWidth: o,
4328
4361
  children: [
4329
- /* @__PURE__ */ A(z, { children: t.title }),
4362
+ /* @__PURE__ */ A(K, { children: t.title }),
4330
4363
  /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description })
4331
4364
  ]
4332
4365
  }
4333
4366
  ),
4334
- children: /* @__PURE__ */ g(
4367
+ children: /* @__PURE__ */ s(
4335
4368
  a,
4336
4369
  {
4337
4370
  direction: "column",
4338
4371
  customMaxWidth: l,
4339
4372
  fullWidth: o,
4340
4373
  children: [
4341
- /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4342
- /* @__PURE__ */ A(z, { fontSize: e, children: t.title }),
4343
- /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
4344
- /* @__PURE__ */ A(O, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4345
- iA,
4374
+ /* @__PURE__ */ s(q, { direction: "row", gap: "xs", align: "center", children: [
4375
+ /* @__PURE__ */ A(K, { fontSize: e, children: t.title }),
4376
+ /* @__PURE__ */ A(K, { color: "error", fontSize: e, children: r }),
4377
+ /* @__PURE__ */ A(Y, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4378
+ tA,
4346
4379
  {
4347
- label: (s = t.tooltip) == null ? void 0 : s.label,
4380
+ label: (g = t.tooltip) == null ? void 0 : g.label,
4348
4381
  arrowPosition: (C = t.tooltip) == null ? void 0 : C.arrowPosition,
4349
4382
  ...t.tooltip,
4350
4383
  children: /* @__PURE__ */ A(
@@ -4361,13 +4394,13 @@ const Ui = (e) => {
4361
4394
  }
4362
4395
  ) })
4363
4396
  ] }),
4364
- /* @__PURE__ */ A(O, { condition: !!t.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description }) })
4397
+ /* @__PURE__ */ A(Y, { condition: !!t.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description }) })
4365
4398
  ]
4366
4399
  }
4367
4400
  )
4368
4401
  }
4369
4402
  ),
4370
- /* @__PURE__ */ g(J, { gap: "xs", children: [
4403
+ /* @__PURE__ */ s(q, { gap: "xs", children: [
4371
4404
  /* @__PURE__ */ A(
4372
4405
  Wi,
4373
4406
  {
@@ -4388,9 +4421,9 @@ const Ui = (e) => {
4388
4421
  required: t = !1,
4389
4422
  ...n
4390
4423
  }) => {
4391
- var s, C, d, w;
4424
+ var g, C, d, w;
4392
4425
  const l = n.hideMessageError || !1, c = i === "horizontal" ? e === "sm" ? 342 : e === "lg" ? 400 : 342 : void 0;
4393
- return /* @__PURE__ */ g(
4426
+ return /* @__PURE__ */ s(
4394
4427
  a,
4395
4428
  {
4396
4429
  gap: i === "horizontal" || i === "horizontal-inline" ? "spacing-96" : "sm",
@@ -4398,33 +4431,33 @@ const Ui = (e) => {
4398
4431
  ...n.containerProps,
4399
4432
  children: [
4400
4433
  n.title && /* @__PURE__ */ A(
4401
- O,
4434
+ Y,
4402
4435
  {
4403
4436
  condition: !!t,
4404
- fallback: /* @__PURE__ */ g(
4437
+ fallback: /* @__PURE__ */ s(
4405
4438
  a,
4406
4439
  {
4407
4440
  direction: "column",
4408
4441
  customMaxWidth: c,
4409
4442
  fullWidth: o,
4410
4443
  children: [
4411
- /* @__PURE__ */ A(z, { children: n.title }),
4412
- /* @__PURE__ */ A(K.Body3, { props: { color: "gray-500" }, children: n.description })
4444
+ /* @__PURE__ */ A(K, { children: n.title }),
4445
+ /* @__PURE__ */ A(J.Body3, { props: { color: "gray-500" }, children: n.description })
4413
4446
  ]
4414
4447
  }
4415
4448
  ),
4416
- children: /* @__PURE__ */ g(
4449
+ children: /* @__PURE__ */ s(
4417
4450
  a,
4418
4451
  {
4419
4452
  direction: "column",
4420
4453
  customMaxWidth: c,
4421
4454
  fullWidth: o,
4422
4455
  children: [
4423
- /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4424
- /* @__PURE__ */ A(z, { fontSize: e, children: n.title }),
4425
- /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
4426
- /* @__PURE__ */ A(O, { condition: !!((s = n.tooltip) != null && s.label), children: /* @__PURE__ */ A(
4427
- iA,
4456
+ /* @__PURE__ */ s(q, { direction: "row", gap: "xs", align: "center", children: [
4457
+ /* @__PURE__ */ A(K, { fontSize: e, children: n.title }),
4458
+ /* @__PURE__ */ A(K, { color: "error", fontSize: e, children: r }),
4459
+ /* @__PURE__ */ A(Y, { condition: !!((g = n.tooltip) != null && g.label), children: /* @__PURE__ */ A(
4460
+ tA,
4428
4461
  {
4429
4462
  label: (C = n.tooltip) == null ? void 0 : C.label,
4430
4463
  arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
@@ -4443,7 +4476,7 @@ const Ui = (e) => {
4443
4476
  }
4444
4477
  ) })
4445
4478
  ] }),
4446
- /* @__PURE__ */ A(O, { condition: !!n.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: n.description }) })
4479
+ /* @__PURE__ */ A(Y, { condition: !!n.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: n.description }) })
4447
4480
  ]
4448
4481
  }
4449
4482
  )
@@ -4456,13 +4489,13 @@ const Ui = (e) => {
4456
4489
  direction: i === "horizontal-inline" ? "row" : "column",
4457
4490
  align: "flex-start",
4458
4491
  children: /* @__PURE__ */ A(
4459
- kA,
4492
+ EA,
4460
4493
  {
4461
4494
  of: (w = n.checkBoxesList) == null ? void 0 : w.map((B) => ({
4462
4495
  ...B,
4463
4496
  isChecked: n.checkBoxesAreChecked.includes(B.id)
4464
4497
  })),
4465
- render: (B) => B.renderBadge ? /* @__PURE__ */ g(
4498
+ render: (B) => B.renderBadge ? /* @__PURE__ */ s(
4466
4499
  a,
4467
4500
  {
4468
4501
  direction: "row",
@@ -4476,7 +4509,7 @@ const Ui = (e) => {
4476
4509
  name: B.name,
4477
4510
  value: B.id,
4478
4511
  checked: B.isChecked,
4479
- onChange: (u) => n.onChecked(u.target.value, B),
4512
+ onChange: (I) => n.onChecked(I.target.value, B),
4480
4513
  label: B.name,
4481
4514
  description: B.description
4482
4515
  }
@@ -4490,7 +4523,7 @@ const Ui = (e) => {
4490
4523
  name: B.name,
4491
4524
  value: B.id,
4492
4525
  checked: B.isChecked,
4493
- onChange: (u) => n.onChecked(u.target.value, B),
4526
+ onChange: (I) => n.onChecked(I.target.value, B),
4494
4527
  label: B.name,
4495
4528
  description: B.description
4496
4529
  }
@@ -4511,21 +4544,21 @@ const Ui = (e) => {
4511
4544
  }) => {
4512
4545
  var n;
4513
4546
  const t = e === "horizontal-inline" || e === "horizontal-block" ? i === "sm" ? 342 : i === "lg" ? 400 : 342 : void 0;
4514
- return /* @__PURE__ */ g(
4547
+ return /* @__PURE__ */ s(
4515
4548
  a,
4516
4549
  {
4517
4550
  gap: e === "horizontal-inline" || e === "horizontal-block" ? "spacing-96" : "sm",
4518
4551
  direction: e === "horizontal-inline" || e === "horizontal-block" ? "row" : "column",
4519
4552
  children: [
4520
- /* @__PURE__ */ A(O, { condition: !!o.description || !!o.title, children: /* @__PURE__ */ g(
4553
+ /* @__PURE__ */ A(Y, { condition: !!o.description || !!o.title, children: /* @__PURE__ */ s(
4521
4554
  a,
4522
4555
  {
4523
4556
  direction: "column",
4524
4557
  customMaxWidth: t,
4525
4558
  fullWidth: r,
4526
4559
  children: [
4527
- o.title && /* @__PURE__ */ A(z, { children: o.title }),
4528
- /* @__PURE__ */ A(O, { condition: !!o.description, children: /* @__PURE__ */ A(Q, { color: "gray-500", children: o.description }) })
4560
+ o.title && /* @__PURE__ */ A(K, { children: o.title }),
4561
+ /* @__PURE__ */ A(Y, { condition: !!o.description, children: /* @__PURE__ */ A(Q, { color: "gray-500", children: o.description }) })
4529
4562
  ]
4530
4563
  }
4531
4564
  ) }),
@@ -4537,21 +4570,21 @@ const Ui = (e) => {
4537
4570
  align: "flex-start",
4538
4571
  flexWrap: "wrap",
4539
4572
  children: /* @__PURE__ */ A(
4540
- kA,
4573
+ EA,
4541
4574
  {
4542
4575
  of: (n = o.radioList) == null ? void 0 : n.map((l) => ({
4543
4576
  ...l,
4544
4577
  isChecked: o.radioIsChecked === l.id
4545
4578
  })),
4546
- render: ({ value: l, id: c, isChecked: s, subInput: C, label: d, description: w }) => /* @__PURE__ */ g(a, { gap: "xs", customMaxWidth: t, children: [
4579
+ render: ({ value: l, id: c, isChecked: g, subInput: C, label: d, description: w }) => /* @__PURE__ */ s(a, { gap: "xs", customMaxWidth: t, children: [
4547
4580
  /* @__PURE__ */ A(
4548
- Me,
4581
+ Ee,
4549
4582
  {
4550
4583
  id: `${c.toString()}-${l}`,
4551
4584
  name: o.groupName || d,
4552
4585
  label: d,
4553
4586
  value: l,
4554
- checked: s,
4587
+ checked: g,
4555
4588
  onChange: (B) => o.onChecked({
4556
4589
  id: c,
4557
4590
  label: B.target.name,
@@ -4588,9 +4621,9 @@ const Ui = (e) => {
4588
4621
  fullWidth: o = !1,
4589
4622
  ...t
4590
4623
  }) => {
4591
- var c, s, C;
4624
+ var c, g, C;
4592
4625
  const n = t.hideMessageError || !1, l = i === "horizontal" ? e === "sm" ? 342 : e === "lg" ? 400 : 342 : void 0;
4593
- return /* @__PURE__ */ g(
4626
+ return /* @__PURE__ */ s(
4594
4627
  a,
4595
4628
  {
4596
4629
  gap: i === "horizontal" ? "spacing-96" : "sm",
@@ -4598,35 +4631,35 @@ const Ui = (e) => {
4598
4631
  ...t.containerProps,
4599
4632
  children: [
4600
4633
  t.title && /* @__PURE__ */ A(
4601
- O,
4634
+ Y,
4602
4635
  {
4603
4636
  condition: !!t.inputProps.required,
4604
- fallback: /* @__PURE__ */ g(
4637
+ fallback: /* @__PURE__ */ s(
4605
4638
  a,
4606
4639
  {
4607
4640
  direction: "column",
4608
4641
  customMaxWidth: l,
4609
4642
  fullWidth: o,
4610
4643
  children: [
4611
- /* @__PURE__ */ A(z, { children: t.title }),
4644
+ /* @__PURE__ */ A(K, { children: t.title }),
4612
4645
  /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description })
4613
4646
  ]
4614
4647
  }
4615
4648
  ),
4616
- children: /* @__PURE__ */ g(
4649
+ children: /* @__PURE__ */ s(
4617
4650
  a,
4618
4651
  {
4619
4652
  direction: "column",
4620
4653
  customMaxWidth: l,
4621
4654
  fullWidth: o,
4622
4655
  children: [
4623
- /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4624
- /* @__PURE__ */ A(z, { fontSize: e, children: t.title }),
4625
- /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
4626
- /* @__PURE__ */ A(O, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4627
- iA,
4656
+ /* @__PURE__ */ s(q, { direction: "row", gap: "xs", align: "center", children: [
4657
+ /* @__PURE__ */ A(K, { fontSize: e, children: t.title }),
4658
+ /* @__PURE__ */ A(K, { color: "error", fontSize: e, children: r }),
4659
+ /* @__PURE__ */ A(Y, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4660
+ tA,
4628
4661
  {
4629
- label: (s = t.tooltip) == null ? void 0 : s.label,
4662
+ label: (g = t.tooltip) == null ? void 0 : g.label,
4630
4663
  arrowPosition: (C = t.tooltip) == null ? void 0 : C.arrowPosition,
4631
4664
  ...t.tooltip,
4632
4665
  children: /* @__PURE__ */ A(
@@ -4643,13 +4676,13 @@ const Ui = (e) => {
4643
4676
  }
4644
4677
  ) })
4645
4678
  ] }),
4646
- /* @__PURE__ */ A(O, { condition: !!t.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description }) })
4679
+ /* @__PURE__ */ A(Y, { condition: !!t.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description }) })
4647
4680
  ]
4648
4681
  }
4649
4682
  )
4650
4683
  }
4651
4684
  ),
4652
- /* @__PURE__ */ g(J, { gap: "xs", children: [
4685
+ /* @__PURE__ */ s(q, { gap: "xs", children: [
4653
4686
  /* @__PURE__ */ A(
4654
4687
  Ie,
4655
4688
  {
@@ -4672,9 +4705,9 @@ const Ui = (e) => {
4672
4705
  fullWidth: t = !1,
4673
4706
  ...n
4674
4707
  }) => {
4675
- var c, s, C;
4708
+ var c, g, C;
4676
4709
  const l = i === "horizontal" ? e === "sm" ? 342 : e === "lg" ? 400 : 342 : void 0;
4677
- return /* @__PURE__ */ g(
4710
+ return /* @__PURE__ */ s(
4678
4711
  a,
4679
4712
  {
4680
4713
  gap: i === "horizontal" ? "spacing-96" : "sm",
@@ -4682,35 +4715,35 @@ const Ui = (e) => {
4682
4715
  ...n.containerProps,
4683
4716
  children: [
4684
4717
  n.title && /* @__PURE__ */ A(
4685
- O,
4718
+ Y,
4686
4719
  {
4687
4720
  condition: o,
4688
- fallback: /* @__PURE__ */ g(
4721
+ fallback: /* @__PURE__ */ s(
4689
4722
  a,
4690
4723
  {
4691
4724
  direction: "column",
4692
4725
  customMaxWidth: l,
4693
4726
  fullWidth: t,
4694
4727
  children: [
4695
- /* @__PURE__ */ A(z, { children: n.title }),
4728
+ /* @__PURE__ */ A(K, { children: n.title }),
4696
4729
  /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: n.titleDescription })
4697
4730
  ]
4698
4731
  }
4699
4732
  ),
4700
- children: /* @__PURE__ */ g(
4733
+ children: /* @__PURE__ */ s(
4701
4734
  a,
4702
4735
  {
4703
4736
  direction: "column",
4704
4737
  customMaxWidth: l,
4705
4738
  fullWidth: t,
4706
4739
  children: [
4707
- /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4708
- /* @__PURE__ */ A(z, { fontSize: e, children: n.title }),
4709
- /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
4710
- /* @__PURE__ */ A(O, { condition: !!((c = n.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4711
- iA,
4740
+ /* @__PURE__ */ s(q, { direction: "row", gap: "xs", align: "center", children: [
4741
+ /* @__PURE__ */ A(K, { fontSize: e, children: n.title }),
4742
+ /* @__PURE__ */ A(K, { color: "error", fontSize: e, children: r }),
4743
+ /* @__PURE__ */ A(Y, { condition: !!((c = n.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4744
+ tA,
4712
4745
  {
4713
- label: (s = n.tooltip) == null ? void 0 : s.label,
4746
+ label: (g = n.tooltip) == null ? void 0 : g.label,
4714
4747
  arrowPosition: (C = n.tooltip) == null ? void 0 : C.arrowPosition,
4715
4748
  ...n.tooltip,
4716
4749
  children: /* @__PURE__ */ A(
@@ -4727,7 +4760,7 @@ const Ui = (e) => {
4727
4760
  }
4728
4761
  ) })
4729
4762
  ] }),
4730
- /* @__PURE__ */ A(O, { condition: !!n.titleDescription, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: n.titleDescription }) })
4763
+ /* @__PURE__ */ A(Y, { condition: !!n.titleDescription, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: n.titleDescription }) })
4731
4764
  ]
4732
4765
  }
4733
4766
  )
@@ -4752,31 +4785,31 @@ const Ui = (e) => {
4752
4785
  ...r
4753
4786
  }) => {
4754
4787
  const o = ZA(), t = (l) => {
4755
- var s, C, d, w, B, u;
4788
+ var g, C, d, w, B, I;
4756
4789
  if (!l) return;
4757
- const c = r.disabled ? "var(--starasia-ui-text-color-primary-disable)" : e === "secondary" ? "var(--starasia-ui-text-color-secondary)" : e === "secondary-danger" ? (C = (s = o == null ? void 0 : o.computed) == null ? void 0 : s.red) == null ? void 0 : C[600] : e === "secondary-primary" ? (w = (d = o == null ? void 0 : o.computed) == null ? void 0 : d.blue) == null ? void 0 : w[700] : (u = (B = o == null ? void 0 : o.computed) == null ? void 0 : B.gray) == null ? void 0 : u[50];
4790
+ const c = r.disabled ? "var(--starasia-ui-text-color-primary-disable)" : e === "secondary" ? "var(--starasia-ui-text-color-secondary)" : e === "secondary-danger" ? (C = (g = o == null ? void 0 : o.computed) == null ? void 0 : g.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];
4758
4791
  return /* @__PURE__ */ A(m, { name: l, size: i, style: { color: c } });
4759
4792
  }, n = () => {
4760
- var c, s, C, d;
4793
+ var c, g, C, d;
4761
4794
  if (e !== "secondary-danger" && e !== "secondary-primary")
4762
4795
  return r.title;
4763
4796
  const l = {
4764
- color: r.disabled ? "var(--starasia-ui-text-color-primary-disable)" : e === "secondary-danger" ? (s = (c = o == null ? void 0 : o.computed) == null ? void 0 : c.red) == null ? void 0 : s[600] : (d = (C = o == null ? void 0 : o.computed) == null ? void 0 : C.blue) == null ? void 0 : d[700]
4797
+ color: r.disabled ? "var(--starasia-ui-text-color-primary-disable)" : e === "secondary-danger" ? (g = (c = o == null ? void 0 : o.computed) == null ? void 0 : c.red) == null ? void 0 : g[600] : (d = (C = o == null ? void 0 : o.computed) == null ? void 0 : C.blue) == null ? void 0 : d[700]
4765
4798
  };
4766
4799
  switch (i) {
4767
4800
  case "xs":
4768
- return /* @__PURE__ */ A(K.Body2, { props: { style: l }, children: r.title });
4801
+ return /* @__PURE__ */ A(J.Body2, { props: { style: l }, children: r.title });
4769
4802
  case "sm":
4770
4803
  case "md":
4771
- return /* @__PURE__ */ A(K.SubH3, { props: { style: l }, children: r.title });
4804
+ return /* @__PURE__ */ A(J.SubH3, { props: { style: l }, children: r.title });
4772
4805
  case "lg":
4773
- return /* @__PURE__ */ A(K.SubH2, { props: { style: l }, children: r.title });
4806
+ return /* @__PURE__ */ A(J.SubH2, { props: { style: l }, children: r.title });
4774
4807
  default:
4775
4808
  return r.title;
4776
4809
  }
4777
4810
  };
4778
4811
  return /* @__PURE__ */ A(
4779
- b,
4812
+ O,
4780
4813
  {
4781
4814
  fullWidth: !0,
4782
4815
  disabled: r.disabled,
@@ -4792,7 +4825,7 @@ const Ui = (e) => {
4792
4825
  }
4793
4826
  );
4794
4827
  }, _i = (e) => /* @__PURE__ */ A(
4795
- K.H5,
4828
+ J.H5,
4796
4829
  {
4797
4830
  props: {
4798
4831
  ...e
@@ -4806,9 +4839,9 @@ const Ui = (e) => {
4806
4839
  fullWidth: o = !1,
4807
4840
  ...t
4808
4841
  }) => {
4809
- var c, s, C;
4842
+ var c, g, C;
4810
4843
  const n = t.hideMessageError || !1, l = i === "horizontal" ? e === "sm" ? 342 : e === "lg" ? 400 : 342 : void 0;
4811
- return /* @__PURE__ */ g(
4844
+ return /* @__PURE__ */ s(
4812
4845
  a,
4813
4846
  {
4814
4847
  gap: i === "horizontal" ? "spacing-96" : "sm",
@@ -4816,35 +4849,35 @@ const Ui = (e) => {
4816
4849
  onClick: t.onClickContainer,
4817
4850
  children: [
4818
4851
  t.title && /* @__PURE__ */ A(
4819
- O,
4852
+ Y,
4820
4853
  {
4821
4854
  condition: !!t.inputProps.required,
4822
- fallback: /* @__PURE__ */ g(
4855
+ fallback: /* @__PURE__ */ s(
4823
4856
  a,
4824
4857
  {
4825
4858
  direction: "column",
4826
4859
  customMaxWidth: l,
4827
4860
  fullWidth: o,
4828
4861
  children: [
4829
- /* @__PURE__ */ A(z, { children: t.title }),
4862
+ /* @__PURE__ */ A(K, { children: t.title }),
4830
4863
  /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description })
4831
4864
  ]
4832
4865
  }
4833
4866
  ),
4834
- children: /* @__PURE__ */ g(
4867
+ children: /* @__PURE__ */ s(
4835
4868
  a,
4836
4869
  {
4837
4870
  direction: "column",
4838
4871
  customMaxWidth: l,
4839
4872
  fullWidth: o,
4840
4873
  children: [
4841
- /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4842
- /* @__PURE__ */ A(z, { fontSize: e, children: t.title }),
4843
- /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
4844
- /* @__PURE__ */ A(O, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4845
- iA,
4874
+ /* @__PURE__ */ s(q, { direction: "row", gap: "xs", align: "center", children: [
4875
+ /* @__PURE__ */ A(K, { fontSize: e, children: t.title }),
4876
+ /* @__PURE__ */ A(K, { color: "error", fontSize: e, children: r }),
4877
+ /* @__PURE__ */ A(Y, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4878
+ tA,
4846
4879
  {
4847
- label: (s = t.tooltip) == null ? void 0 : s.label,
4880
+ label: (g = t.tooltip) == null ? void 0 : g.label,
4848
4881
  arrowPosition: (C = t.tooltip) == null ? void 0 : C.arrowPosition,
4849
4882
  ...t.tooltip,
4850
4883
  children: /* @__PURE__ */ A(
@@ -4861,13 +4894,13 @@ const Ui = (e) => {
4861
4894
  }
4862
4895
  ) })
4863
4896
  ] }),
4864
- /* @__PURE__ */ A(O, { condition: !!t.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description }) })
4897
+ /* @__PURE__ */ A(Y, { condition: !!t.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description }) })
4865
4898
  ]
4866
4899
  }
4867
4900
  )
4868
4901
  }
4869
4902
  ),
4870
- /* @__PURE__ */ g(J, { gap: "xs", children: [
4903
+ /* @__PURE__ */ s(q, { gap: "xs", children: [
4871
4904
  /* @__PURE__ */ A(
4872
4905
  a,
4873
4906
  {
@@ -4912,8 +4945,8 @@ async function et(e, i) {
4912
4945
  ), new Promise((n, l) => {
4913
4946
  o.toBlob((c) => {
4914
4947
  if (!c) return l("Canvas is empty");
4915
- const s = new File([c], "cropped.png", { type: "image/png" });
4916
- n(s);
4948
+ const g = new File([c], "cropped.png", { type: "image/png" });
4949
+ n(g);
4917
4950
  }, "image/png");
4918
4951
  });
4919
4952
  }
@@ -4936,52 +4969,52 @@ const VA = {
4936
4969
  size: n = "96",
4937
4970
  aspect: l = "1:1",
4938
4971
  containerProps: c,
4939
- maxFileSize: s = 2,
4972
+ maxFileSize: g = 2,
4940
4973
  onError: C
4941
4974
  }, d) => {
4942
- const w = V("md"), [B, u] = G(!1), [j, h] = G(null), [Y, p] = G(!1), [N, U] = G({ x: 0, y: 0 }), [L, k] = G(1), [Z, H] = G(null);
4943
- R(() => {
4975
+ const w = X("md"), [B, I] = b(!1), [G, h] = b(null), [j, p] = b(!1), [N, R] = b({ x: 0, y: 0 }), [f, k] = b(1), [P, Z] = b(null);
4976
+ U(() => {
4944
4977
  i === null && t(null);
4945
4978
  }, [i]);
4946
- const P = JA(
4947
- (T, tA) => {
4948
- H(tA);
4979
+ const V = JA(
4980
+ (H, z) => {
4981
+ Z(z);
4949
4982
  },
4950
4983
  []
4951
- ), X = (T) => {
4952
- var MA;
4953
- const tA = (MA = T.target.files) == null ? void 0 : MA[0];
4954
- if (!tA) return;
4955
- const wA = new FileReader();
4956
- wA.onload = () => {
4957
- h(wA.result), p(!0);
4958
- }, wA.readAsDataURL(tA);
4959
- }, q = async () => {
4960
- if (!(!j || !Z))
4984
+ ), AA = (H) => {
4985
+ var aA;
4986
+ const z = (aA = H.target.files) == null ? void 0 : aA[0];
4987
+ if (!z) return;
4988
+ const sA = new FileReader();
4989
+ sA.onload = () => {
4990
+ h(sA.result), p(!0);
4991
+ }, sA.readAsDataURL(z);
4992
+ }, T = async () => {
4993
+ if (!(!G || !P))
4961
4994
  try {
4962
- const T = await et(j, Z);
4963
- if (s && T.size > s * 1024 * 1024) {
4964
- C == null || C(`Ukuran file maksimal ${s}MB`);
4995
+ const H = await et(G, P);
4996
+ if (g && H.size > g * 1024 * 1024) {
4997
+ C == null || C(`Ukuran file maksimal ${g}MB`);
4965
4998
  return;
4966
4999
  }
4967
- e == null || e(T);
4968
- const tA = URL.createObjectURL(T);
4969
- t(tA, T), p(!1);
5000
+ e == null || e(H);
5001
+ const z = URL.createObjectURL(H);
5002
+ t(z, H), p(!1);
4970
5003
  } catch {
4971
5004
  C == null || C("Gagal memproses gambar");
4972
5005
  }
4973
- }, E = AA(null), f = () => {
5006
+ }, E = eA(null), S = () => {
4974
5007
  E.current && E.current.click();
4975
5008
  };
4976
5009
  xe(d, () => ({
4977
5010
  openFileDialog: () => {
4978
- var T;
4979
- (T = E.current) == null || T.click();
5011
+ var H;
5012
+ (H = E.current) == null || H.click();
4980
5013
  }
4981
5014
  }));
4982
5015
  const M = parseInt(n, 10), D = VA[l];
4983
5016
  let F, x;
4984
- return D >= 1 ? (x = M, F = M * D) : (F = M, x = M / D), /* @__PURE__ */ g(
5017
+ return D >= 1 ? (x = M, F = M * D) : (F = M, x = M / D), /* @__PURE__ */ s(
4985
5018
  a,
4986
5019
  {
4987
5020
  display: "flex",
@@ -5000,8 +5033,8 @@ const VA = {
5000
5033
  aspectRatio: D,
5001
5034
  flexShrink: 0
5002
5035
  },
5003
- onMouseEnter: () => u(!0),
5004
- onMouseLeave: () => u(!1),
5036
+ onMouseEnter: () => I(!0),
5037
+ onMouseLeave: () => I(!1),
5005
5038
  children: [
5006
5039
  o || i ? /* @__PURE__ */ A(
5007
5040
  "img",
@@ -5035,7 +5068,7 @@ const VA = {
5035
5068
  )
5036
5069
  }
5037
5070
  ),
5038
- /* @__PURE__ */ g(
5071
+ /* @__PURE__ */ s(
5039
5072
  a,
5040
5073
  {
5041
5074
  position: "absolute",
@@ -5049,7 +5082,7 @@ const VA = {
5049
5082
  opacity: B ? 1 : 0,
5050
5083
  transition: "opacity 0.3s ease-in-out"
5051
5084
  },
5052
- onClick: f,
5085
+ onClick: S,
5053
5086
  children: [
5054
5087
  /* @__PURE__ */ A(
5055
5088
  "input",
@@ -5057,12 +5090,12 @@ const VA = {
5057
5090
  ref: E,
5058
5091
  type: "file",
5059
5092
  accept: "image/*",
5060
- onChange: X,
5093
+ onChange: AA,
5061
5094
  disabled: r,
5062
5095
  style: { display: "none" }
5063
5096
  }
5064
5097
  ),
5065
- /* @__PURE__ */ g(a, { display: "flex", align: "center", gap: "spacing-2", direction: "row", children: [
5098
+ /* @__PURE__ */ s(a, { display: "flex", align: "center", gap: "spacing-2", direction: "row", children: [
5066
5099
  /* @__PURE__ */ A(
5067
5100
  m,
5068
5101
  {
@@ -5070,7 +5103,7 @@ const VA = {
5070
5103
  style: { color: "var(--starasia-ui-color-gray-50)" }
5071
5104
  }
5072
5105
  ),
5073
- /* @__PURE__ */ A(O, { condition: n.toNumber() > 80, children: /* @__PURE__ */ A(
5106
+ /* @__PURE__ */ A(Y, { condition: n.toNumber() > 80, children: /* @__PURE__ */ A(
5074
5107
  Q,
5075
5108
  {
5076
5109
  color: "gray-50",
@@ -5110,16 +5143,16 @@ const VA = {
5110
5143
  )
5111
5144
  }
5112
5145
  ),
5113
- /* @__PURE__ */ g(
5114
- QA,
5146
+ /* @__PURE__ */ s(
5147
+ hA,
5115
5148
  {
5116
- isShow: Y,
5149
+ isShow: j,
5117
5150
  onHide: () => p(!1),
5118
5151
  style: {
5119
5152
  minWidth: w ? l === "1:1" ? "20rem" : F * 2 : "100%"
5120
5153
  },
5121
5154
  children: [
5122
- /* @__PURE__ */ A(hA, { children: /* @__PURE__ */ A(
5155
+ /* @__PURE__ */ A(DA, { children: /* @__PURE__ */ A(
5123
5156
  a,
5124
5157
  {
5125
5158
  position: "relative",
@@ -5128,16 +5161,16 @@ const VA = {
5128
5161
  height: "20rem",
5129
5162
  backgroundColor: "gray-100"
5130
5163
  },
5131
- children: j && /* @__PURE__ */ A(
5164
+ children: G && /* @__PURE__ */ A(
5132
5165
  Se,
5133
5166
  {
5134
- image: j,
5167
+ image: G,
5135
5168
  crop: N,
5136
- zoom: L,
5169
+ zoom: f,
5137
5170
  aspect: l ? VA[l] : void 0,
5138
- onCropChange: U,
5171
+ onCropChange: R,
5139
5172
  onZoomChange: k,
5140
- onCropComplete: P,
5173
+ onCropComplete: V,
5141
5174
  objectFit: "contain",
5142
5175
  minZoom: 0.5,
5143
5176
  restrictPosition: !1
@@ -5145,9 +5178,9 @@ const VA = {
5145
5178
  )
5146
5179
  }
5147
5180
  ) }),
5148
- /* @__PURE__ */ A(xA, { children: /* @__PURE__ */ g(a, { justify: "flex-end", direction: "row", gap: "sm", children: [
5149
- /* @__PURE__ */ A(b, { size: "xs", secondary: !0, onClick: () => p(!1), children: "Cancel" }),
5150
- /* @__PURE__ */ A(b, { size: "xs", primary: !0, onClick: q, children: "Crop" })
5181
+ /* @__PURE__ */ A(xA, { children: /* @__PURE__ */ s(a, { justify: "flex-end", direction: "row", gap: "sm", children: [
5182
+ /* @__PURE__ */ A(O, { size: "xs", secondary: !0, onClick: () => p(!1), children: "Cancel" }),
5183
+ /* @__PURE__ */ A(O, { size: "xs", primary: !0, onClick: T, children: "Crop" })
5151
5184
  ] }) })
5152
5185
  ]
5153
5186
  }
@@ -5164,9 +5197,9 @@ const VA = {
5164
5197
  required: t = !1,
5165
5198
  ...n
5166
5199
  }) => {
5167
- var s, C, d;
5200
+ var g, C, d;
5168
5201
  const l = n.hideMessageError || !1, c = i === "horizontal" ? e === "sm" ? 342 : e === "lg" ? 400 : 342 : void 0;
5169
- return /* @__PURE__ */ g(
5202
+ return /* @__PURE__ */ s(
5170
5203
  a,
5171
5204
  {
5172
5205
  gap: i === "horizontal" ? "spacing-96" : "sm",
@@ -5174,33 +5207,33 @@ const VA = {
5174
5207
  ...n.containerProps,
5175
5208
  children: [
5176
5209
  n.title && /* @__PURE__ */ A(
5177
- O,
5210
+ Y,
5178
5211
  {
5179
5212
  condition: !!t,
5180
- fallback: /* @__PURE__ */ g(
5213
+ fallback: /* @__PURE__ */ s(
5181
5214
  a,
5182
5215
  {
5183
5216
  direction: "column",
5184
5217
  customMaxWidth: c,
5185
5218
  fullWidth: o,
5186
5219
  children: [
5187
- /* @__PURE__ */ A(z, { children: n.title }),
5220
+ /* @__PURE__ */ A(K, { children: n.title }),
5188
5221
  /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: n.description })
5189
5222
  ]
5190
5223
  }
5191
5224
  ),
5192
- children: /* @__PURE__ */ g(
5225
+ children: /* @__PURE__ */ s(
5193
5226
  a,
5194
5227
  {
5195
5228
  direction: "column",
5196
5229
  customMaxWidth: c,
5197
5230
  fullWidth: o,
5198
5231
  children: [
5199
- /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
5200
- /* @__PURE__ */ A(z, { fontSize: e, children: n.title }),
5201
- /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
5202
- /* @__PURE__ */ A(O, { condition: !!((s = n.tooltip) != null && s.label), children: /* @__PURE__ */ A(
5203
- iA,
5232
+ /* @__PURE__ */ s(q, { direction: "row", gap: "xs", align: "center", children: [
5233
+ /* @__PURE__ */ A(K, { fontSize: e, children: n.title }),
5234
+ /* @__PURE__ */ A(K, { color: "error", fontSize: e, children: r }),
5235
+ /* @__PURE__ */ A(Y, { condition: !!((g = n.tooltip) != null && g.label), children: /* @__PURE__ */ A(
5236
+ tA,
5204
5237
  {
5205
5238
  label: (C = n.tooltip) == null ? void 0 : C.label,
5206
5239
  arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
@@ -5219,13 +5252,13 @@ const VA = {
5219
5252
  }
5220
5253
  ) })
5221
5254
  ] }),
5222
- /* @__PURE__ */ A(O, { condition: !!n.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: n.description }) })
5255
+ /* @__PURE__ */ A(Y, { condition: !!n.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: n.description }) })
5223
5256
  ]
5224
5257
  }
5225
5258
  )
5226
5259
  }
5227
5260
  ),
5228
- /* @__PURE__ */ g(J, { gap: "xs", children: [
5261
+ /* @__PURE__ */ s(q, { gap: "xs", children: [
5229
5262
  /* @__PURE__ */ A(it, { ...n.inputProps }),
5230
5263
  !l && n.errorMessage && /* @__PURE__ */ A(nA, { message: n.errorMessage })
5231
5264
  ] })
@@ -5239,9 +5272,9 @@ const VA = {
5239
5272
  fullWidth: o = !1,
5240
5273
  ...t
5241
5274
  }) => {
5242
- var l, c, s;
5275
+ var l, c, g;
5243
5276
  const n = i === "horizontal" ? e === "sm" ? 342 : e === "lg" ? 400 : 342 : void 0;
5244
- return /* @__PURE__ */ g(
5277
+ return /* @__PURE__ */ s(
5245
5278
  a,
5246
5279
  {
5247
5280
  gap: i === "horizontal" ? "spacing-96" : "sm",
@@ -5249,36 +5282,36 @@ const VA = {
5249
5282
  ...t.containerProps,
5250
5283
  children: [
5251
5284
  t.title && /* @__PURE__ */ A(
5252
- O,
5285
+ Y,
5253
5286
  {
5254
5287
  condition: !!t.inputProps.required,
5255
- fallback: /* @__PURE__ */ g(
5288
+ fallback: /* @__PURE__ */ s(
5256
5289
  a,
5257
5290
  {
5258
5291
  direction: "column",
5259
5292
  customMaxWidth: n,
5260
5293
  fullWidth: o,
5261
5294
  children: [
5262
- /* @__PURE__ */ A(z, { children: t.title }),
5295
+ /* @__PURE__ */ A(K, { children: t.title }),
5263
5296
  /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description })
5264
5297
  ]
5265
5298
  }
5266
5299
  ),
5267
- children: /* @__PURE__ */ g(
5300
+ children: /* @__PURE__ */ s(
5268
5301
  a,
5269
5302
  {
5270
5303
  direction: "column",
5271
5304
  customMaxWidth: n,
5272
5305
  fullWidth: o,
5273
5306
  children: [
5274
- /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
5275
- /* @__PURE__ */ A(z, { fontSize: e, children: t.title }),
5276
- /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
5277
- /* @__PURE__ */ A(O, { condition: !!((l = t.tooltip) != null && l.label), children: /* @__PURE__ */ A(
5278
- iA,
5307
+ /* @__PURE__ */ s(q, { direction: "row", gap: "xs", align: "center", children: [
5308
+ /* @__PURE__ */ A(K, { fontSize: e, children: t.title }),
5309
+ /* @__PURE__ */ A(K, { color: "error", fontSize: e, children: r }),
5310
+ /* @__PURE__ */ A(Y, { condition: !!((l = t.tooltip) != null && l.label), children: /* @__PURE__ */ A(
5311
+ tA,
5279
5312
  {
5280
5313
  label: (c = t.tooltip) == null ? void 0 : c.label,
5281
- arrowPosition: (s = t.tooltip) == null ? void 0 : s.arrowPosition,
5314
+ arrowPosition: (g = t.tooltip) == null ? void 0 : g.arrowPosition,
5282
5315
  ...t.tooltip,
5283
5316
  children: /* @__PURE__ */ A(
5284
5317
  m,
@@ -5294,7 +5327,7 @@ const VA = {
5294
5327
  }
5295
5328
  ) })
5296
5329
  ] }),
5297
- /* @__PURE__ */ A(O, { condition: !!t.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description }) })
5330
+ /* @__PURE__ */ A(Y, { condition: !!t.description, children: /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description }) })
5298
5331
  ]
5299
5332
  }
5300
5333
  )
@@ -5313,15 +5346,15 @@ const VA = {
5313
5346
  disabled: n = !1
5314
5347
  }) => {
5315
5348
  var d;
5316
- const [l, c] = G([]);
5317
- R(() => {
5349
+ const [l, c] = b([]);
5350
+ U(() => {
5318
5351
  e && c([...e.map((w) => ({ id: w.id, isActive: w.isActive }))]);
5319
5352
  }, [e]);
5320
- const s = (d = l.find((w) => w.id === i)) == null ? void 0 : d.isActive, C = JA(() => {
5353
+ const g = (d = l.find((w) => w.id === i)) == null ? void 0 : d.isActive, C = JA(() => {
5321
5354
  c(
5322
5355
  (w) => w.map((B) => B.id === i ? { ...B, isActive: !B.isActive } : B)
5323
- ), r && r(!s);
5324
- }, [i, r, s]);
5356
+ ), r && r(!g);
5357
+ }, [i, r, g]);
5325
5358
  return /* @__PURE__ */ A(
5326
5359
  a,
5327
5360
  {
@@ -5334,9 +5367,9 @@ const VA = {
5334
5367
  ee,
5335
5368
  {
5336
5369
  disabled: n,
5337
- checked: s,
5370
+ checked: g,
5338
5371
  onChange: C,
5339
- label: s ? "Active" : "Inactive"
5372
+ label: g ? "Active" : "Inactive"
5340
5373
  }
5341
5374
  )
5342
5375
  }
@@ -5355,12 +5388,12 @@ const VA = {
5355
5388
  InputImgFile: tt,
5356
5389
  Custom: rt
5357
5390
  }, ot = ({ customBottom: e }) => {
5358
- const [i, r] = G(!1), o = () => {
5391
+ const [i, r] = b(!1), o = () => {
5359
5392
  window.scrollY > window.screenY ? r(!0) : r(!1);
5360
5393
  }, t = () => {
5361
5394
  window.scrollTo({ top: 0, behavior: "smooth" });
5362
5395
  };
5363
- return R(() => (window.addEventListener("scroll", o), () => {
5396
+ return U(() => (window.addEventListener("scroll", o), () => {
5364
5397
  window.removeEventListener("scroll", o);
5365
5398
  }), []), /* @__PURE__ */ A(
5366
5399
  a,
@@ -5381,7 +5414,7 @@ const VA = {
5381
5414
  transition: "transform 0.2s ease-in-out"
5382
5415
  },
5383
5416
  children: /* @__PURE__ */ A(
5384
- b,
5417
+ O,
5385
5418
  {
5386
5419
  secondary: !0,
5387
5420
  size: "xs",
@@ -5404,9 +5437,9 @@ const VA = {
5404
5437
  )
5405
5438
  }
5406
5439
  );
5407
- }, Mr = ({ pageLayout: e, children: i }) => {
5408
- const r = V("lg");
5409
- return /* @__PURE__ */ g(
5440
+ }, Er = ({ pageLayout: e, children: i }) => {
5441
+ const r = X("lg");
5442
+ return /* @__PURE__ */ s(
5410
5443
  a,
5411
5444
  {
5412
5445
  display: "block",
@@ -5443,12 +5476,12 @@ const VA = {
5443
5476
  ]
5444
5477
  }
5445
5478
  );
5446
- }, Er = ({
5479
+ }, Mr = ({
5447
5480
  children: e,
5448
5481
  withScrollToTopButton: i = !1,
5449
5482
  scrollToTopButtonProps: r,
5450
5483
  containerProps: o
5451
- }) => /* @__PURE__ */ A(a, { position: "absolute", width: "width-full", style: { zIndex: "var(--app-footer-zindex, 999)" }, children: /* @__PURE__ */ g(
5484
+ }) => /* @__PURE__ */ A(a, { position: "absolute", width: "width-full", style: { zIndex: "var(--app-footer-zindex, 999)" }, children: /* @__PURE__ */ s(
5452
5485
  a,
5453
5486
  {
5454
5487
  position: "fixed",
@@ -5480,20 +5513,20 @@ const VA = {
5480
5513
  ]
5481
5514
  }
5482
5515
  ) }), mr = ({ fields: e }) => /* @__PURE__ */ A(a, { display: "flex", direction: "column", gap: "lg", children: /* @__PURE__ */ A(
5483
- kA,
5516
+ EA,
5484
5517
  {
5485
5518
  of: e,
5486
5519
  render: (i, r) => /* @__PURE__ */ A(nt, { ...i }, r)
5487
5520
  }
5488
- ) }), nt = ({ title: e, value: i, icon: r }) => /* @__PURE__ */ g(a, { display: "flex", direction: "column", gap: "sm", children: [
5489
- r ? /* @__PURE__ */ g(a, { display: "flex", direction: "row", align: "center", gap: "xs", children: [
5521
+ ) }), nt = ({ title: e, value: i, icon: r }) => /* @__PURE__ */ s(a, { display: "flex", direction: "column", gap: "sm", children: [
5522
+ r ? /* @__PURE__ */ s(a, { display: "flex", direction: "row", align: "center", gap: "xs", children: [
5490
5523
  /* @__PURE__ */ A(m, { name: r, color: "var(--starasia-ui-color-gray-300)" }),
5491
5524
  /* @__PURE__ */ A(Q, { color: "gray-500", variant: "sub-h3", children: e })
5492
5525
  ] }) : /* @__PURE__ */ A(Q, { color: "gray-500", variant: "sub-h3", children: e }),
5493
5526
  typeof i == "string" ? /* @__PURE__ */ A(Q, { variant: "sub-h3", children: i }) : i
5494
5527
  ] });
5495
5528
  function lt({ width: e, height: i }) {
5496
- return /* @__PURE__ */ A(W, { children: /* @__PURE__ */ g(
5529
+ return /* @__PURE__ */ A(W, { children: /* @__PURE__ */ s(
5497
5530
  "svg",
5498
5531
  {
5499
5532
  width: e || "100",
@@ -5644,31 +5677,31 @@ const yr = ({
5644
5677
  leftIcon: n,
5645
5678
  showButton: l = !0,
5646
5679
  customHeight: c,
5647
- childrenButton: s,
5680
+ childrenButton: g,
5648
5681
  customIcon: C
5649
5682
  }) => {
5650
5683
  const d = () => {
5651
5684
  switch (o) {
5652
5685
  case "primary":
5653
- return /* @__PURE__ */ A(W, { children: n ? /* @__PURE__ */ A(b, { primary: !0, iconLeft: n, onClick: r, children: s || e }) : /* @__PURE__ */ A(b, { primary: !0, onClick: r, children: s || e }) });
5686
+ return /* @__PURE__ */ A(W, { children: n ? /* @__PURE__ */ A(O, { primary: !0, iconLeft: n, onClick: r, children: g || e }) : /* @__PURE__ */ A(O, { primary: !0, onClick: r, children: g || e }) });
5654
5687
  case "secondary":
5655
- return /* @__PURE__ */ A(W, { children: n ? /* @__PURE__ */ A(b, { secondary: !0, iconLeft: n, onClick: r, children: t ? /* @__PURE__ */ A(
5688
+ return /* @__PURE__ */ A(W, { children: n ? /* @__PURE__ */ A(O, { secondary: !0, iconLeft: n, onClick: r, children: t ? /* @__PURE__ */ A(
5656
5689
  Q,
5657
5690
  {
5658
5691
  fontFamily: "Poppins",
5659
5692
  fontSize: "md",
5660
5693
  fontWeight: "medium",
5661
5694
  style: { color: "var(--starasia-ui-utility-success-default)" },
5662
- children: s || e
5695
+ children: g || e
5663
5696
  }
5664
- ) : e }) : /* @__PURE__ */ A(b, { secondary: !0, onClick: r, children: s || e }) });
5697
+ ) : e }) : /* @__PURE__ */ A(O, { secondary: !0, onClick: r, children: g || e }) });
5665
5698
  case "success":
5666
- return /* @__PURE__ */ A(W, { children: n ? /* @__PURE__ */ A(b, { success: !0, iconLeft: n, onClick: r, children: s || e }) : /* @__PURE__ */ A(b, { success: !0, onClick: r, children: s || e }) });
5699
+ return /* @__PURE__ */ A(W, { children: n ? /* @__PURE__ */ A(O, { success: !0, iconLeft: n, onClick: r, children: g || e }) : /* @__PURE__ */ A(O, { success: !0, onClick: r, children: g || e }) });
5667
5700
  default:
5668
- return /* @__PURE__ */ A(W, { children: n ? /* @__PURE__ */ A(b, { primary: !0, iconLeft: n, onClick: r, children: s || e }) : /* @__PURE__ */ A(b, { primary: !0, onClick: r, children: s || e }) });
5701
+ return /* @__PURE__ */ A(W, { children: n ? /* @__PURE__ */ A(O, { primary: !0, iconLeft: n, onClick: r, children: g || e }) : /* @__PURE__ */ A(O, { primary: !0, onClick: r, children: g || e }) });
5669
5702
  }
5670
5703
  };
5671
- return /* @__PURE__ */ g(
5704
+ return /* @__PURE__ */ s(
5672
5705
  a,
5673
5706
  {
5674
5707
  height: "height-full",
@@ -5682,7 +5715,7 @@ const yr = ({
5682
5715
  children: [
5683
5716
  C || /* @__PURE__ */ A(lt, {}),
5684
5717
  /* @__PURE__ */ A(a, { children: i.map((w, B) => /* @__PURE__ */ A(
5685
- K.Body1,
5718
+ J.Body1,
5686
5719
  {
5687
5720
  props: {
5688
5721
  align: "center",
@@ -5698,7 +5731,7 @@ const yr = ({
5698
5731
  );
5699
5732
  };
5700
5733
  function ct({ width: e, height: i }) {
5701
- return /* @__PURE__ */ A(W, { children: /* @__PURE__ */ g(
5734
+ return /* @__PURE__ */ A(W, { children: /* @__PURE__ */ s(
5702
5735
  "svg",
5703
5736
  {
5704
5737
  width: e,
@@ -5901,8 +5934,8 @@ function ct({ width: e, height: i }) {
5901
5934
  ) });
5902
5935
  }
5903
5936
  function xr({ onClick: e }) {
5904
- const i = V("md");
5905
- return /* @__PURE__ */ g(
5937
+ const i = X("md");
5938
+ return /* @__PURE__ */ s(
5906
5939
  a,
5907
5940
  {
5908
5941
  height: "height-screen",
@@ -5931,13 +5964,13 @@ function xr({ onClick: e }) {
5931
5964
  children: "Sorry, we couldn't find the page you are looking for"
5932
5965
  }
5933
5966
  ),
5934
- e && /* @__PURE__ */ A(b, { size: i ? "md" : "xs", onClick: e, children: "Go Back" })
5967
+ e && /* @__PURE__ */ A(O, { size: i ? "md" : "xs", onClick: e, children: "Go Back" })
5935
5968
  ]
5936
5969
  }
5937
5970
  );
5938
5971
  }
5939
5972
  function gt({ width: e, height: i }) {
5940
- return /* @__PURE__ */ A(W, { children: /* @__PURE__ */ g(
5973
+ return /* @__PURE__ */ A(W, { children: /* @__PURE__ */ s(
5941
5974
  "svg",
5942
5975
  {
5943
5976
  width: e,
@@ -5957,7 +5990,7 @@ function gt({ width: e, height: i }) {
5957
5990
  fillOpacity: "0.6"
5958
5991
  }
5959
5992
  ),
5960
- /* @__PURE__ */ g("g", { clipPath: "url(#clip0_2949_9690)", children: [
5993
+ /* @__PURE__ */ s("g", { clipPath: "url(#clip0_2949_9690)", children: [
5961
5994
  /* @__PURE__ */ A(
5962
5995
  "path",
5963
5996
  {
@@ -6054,7 +6087,7 @@ function gt({ width: e, height: i }) {
6054
6087
  )
6055
6088
  }
6056
6089
  ),
6057
- /* @__PURE__ */ g("g", { mask: "url(#mask0_2949_9690)", children: [
6090
+ /* @__PURE__ */ s("g", { mask: "url(#mask0_2949_9690)", children: [
6058
6091
  /* @__PURE__ */ A(
6059
6092
  "path",
6060
6093
  {
@@ -6152,8 +6185,8 @@ function gt({ width: e, height: i }) {
6152
6185
  ) });
6153
6186
  }
6154
6187
  function fr({ onClick: e }) {
6155
- const i = V("md");
6156
- return /* @__PURE__ */ g(
6188
+ const i = X("md");
6189
+ return /* @__PURE__ */ s(
6157
6190
  a,
6158
6191
  {
6159
6192
  height: "height-screen",
@@ -6165,13 +6198,13 @@ function fr({ onClick: e }) {
6165
6198
  children: [
6166
6199
  /* @__PURE__ */ A(gt, { width: i ? 600 : 300 }),
6167
6200
  /* @__PURE__ */ A(Q, { fontWeight: "bold", fontSize: i ? "3xl" : "2xl", children: "We Are Sorry ..." }),
6168
- e && /* @__PURE__ */ A(b, { size: i ? "md" : "xs", onClick: e, children: "Go Back" })
6201
+ e && /* @__PURE__ */ A(O, { size: i ? "md" : "xs", onClick: e, children: "Go Back" })
6169
6202
  ]
6170
6203
  }
6171
6204
  );
6172
6205
  }
6173
6206
  function st({ width: e, height: i }) {
6174
- return /* @__PURE__ */ A(W, { children: /* @__PURE__ */ g(
6207
+ return /* @__PURE__ */ A(W, { children: /* @__PURE__ */ s(
6175
6208
  "svg",
6176
6209
  {
6177
6210
  width: e,
@@ -6843,8 +6876,8 @@ function st({ width: e, height: i }) {
6843
6876
  ) });
6844
6877
  }
6845
6878
  function Sr({ onClick: e }) {
6846
- const i = V("md");
6847
- return /* @__PURE__ */ g(
6879
+ const i = X("md");
6880
+ return /* @__PURE__ */ s(
6848
6881
  a,
6849
6882
  {
6850
6883
  height: "height-screen",
@@ -6874,16 +6907,16 @@ function Sr({ onClick: e }) {
6874
6907
  children: "we are trying to fix the problem"
6875
6908
  }
6876
6909
  ),
6877
- e && /* @__PURE__ */ A(b, { size: i ? "md" : "xs", onClick: e, children: "Go Back" })
6910
+ e && /* @__PURE__ */ A(O, { size: i ? "md" : "xs", onClick: e, children: "Go Back" })
6878
6911
  ]
6879
6912
  }
6880
6913
  );
6881
6914
  }
6882
6915
  const Lr = (e) => {
6883
6916
  var r, o, t, n, l;
6884
- const i = V("md");
6885
- return /* @__PURE__ */ g(
6886
- QA,
6917
+ const i = X("md");
6918
+ return /* @__PURE__ */ s(
6919
+ hA,
6887
6920
  {
6888
6921
  isShow: e.isShow,
6889
6922
  onHide: e.onHide,
@@ -6895,8 +6928,8 @@ const Lr = (e) => {
6895
6928
  }
6896
6929
  },
6897
6930
  children: [
6898
- /* @__PURE__ */ A(BA, { ...e.dialogTitleProps, children: typeof e.title == "string" ? /* @__PURE__ */ A(Q, { fontSize: "lg", fontWeight: "medium", children: e.title }) : e.title }),
6899
- /* @__PURE__ */ A(hA, { children: typeof e.description == "string" ? /* @__PURE__ */ A(Q, { fontSize: "md", lineHeight: "leading-6", color: "tertiary", children: e.description }) : e.description }),
6931
+ /* @__PURE__ */ A(dA, { ...e.dialogTitleProps, children: typeof e.title == "string" ? /* @__PURE__ */ A(Q, { fontSize: "lg", fontWeight: "medium", children: e.title }) : e.title }),
6932
+ /* @__PURE__ */ A(DA, { children: typeof e.description == "string" ? /* @__PURE__ */ A(Q, { fontSize: "md", lineHeight: "leading-6", color: "tertiary", children: e.description }) : e.description }),
6900
6933
  /* @__PURE__ */ A(xA, { children: /* @__PURE__ */ A(
6901
6934
  a,
6902
6935
  {
@@ -6904,7 +6937,7 @@ const Lr = (e) => {
6904
6937
  direction: ((r = e.containerConfirmBtnProps) == null ? void 0 : r.direction) || "row",
6905
6938
  justify: ((o = e.containerConfirmBtnProps) == null ? void 0 : o.justify) || "flex-end",
6906
6939
  ...e.containerConfirmBtnProps,
6907
- children: /* @__PURE__ */ g(
6940
+ children: /* @__PURE__ */ s(
6908
6941
  a,
6909
6942
  {
6910
6943
  display: "flex",
@@ -6913,7 +6946,7 @@ const Lr = (e) => {
6913
6946
  gap: ((l = e.wrapperConfirmBtnProps) == null ? void 0 : l.gap) || "sm",
6914
6947
  ...e.wrapperConfirmBtnProps,
6915
6948
  children: [
6916
- e.onCancel && /* @__PURE__ */ A(b, { secondary: !0, onClick: e.onCancel, size: "md", fullWidth: !0, children: e.titleCancelBtn || "Cancel" }),
6949
+ e.onCancel && /* @__PURE__ */ A(O, { secondary: !0, onClick: e.onCancel, size: "md", fullWidth: !0, children: e.titleCancelBtn || "Cancel" }),
6917
6950
  /* @__PURE__ */ A(
6918
6951
  a,
6919
6952
  {
@@ -6922,7 +6955,7 @@ const Lr = (e) => {
6922
6955
  textWrap: "nowrap"
6923
6956
  },
6924
6957
  children: /* @__PURE__ */ A(
6925
- b,
6958
+ O,
6926
6959
  {
6927
6960
  ...e.buttonConfirmProps,
6928
6961
  onClick: e.onConfirm,
@@ -6950,15 +6983,15 @@ const Lr = (e) => {
6950
6983
  customHeight: o,
6951
6984
  paddingInline: t = "spacing-24"
6952
6985
  }) => {
6953
- const n = AA(null), [l, c] = G("100vh");
6954
- return R(() => {
6955
- const s = () => {
6986
+ const n = eA(null), [l, c] = b("100vh");
6987
+ return U(() => {
6988
+ const g = () => {
6956
6989
  if (n.current) {
6957
6990
  const C = n.current.getBoundingClientRect().top;
6958
- c(`calc(100vh - ${C + 16}px)`);
6991
+ c(`calc(100vh - ${C}px)`);
6959
6992
  }
6960
6993
  };
6961
- return s(), window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
6994
+ return g(), window.addEventListener("resize", g), () => window.removeEventListener("resize", g);
6962
6995
  }, []), /* @__PURE__ */ A(
6963
6996
  a,
6964
6997
  {
@@ -6970,20 +7003,20 @@ const Lr = (e) => {
6970
7003
  paddingInline: t,
6971
7004
  bg: "gray-50",
6972
7005
  style: {
6973
- height: l
7006
+ minHeight: l
6974
7007
  },
6975
7008
  children: e
6976
7009
  }
6977
7010
  );
6978
7011
  }
6979
7012
  ), Gr = (e) => {
6980
- const { defaultTab: i = 0, paramKey: r = "tab" } = e || {}, [o, t] = uA(), n = DA(o.toString());
7013
+ const { defaultTab: i = 0, paramKey: r = "tab" } = e || {}, [o, t] = kA(), n = IA(o.toString());
6981
7014
  return {
6982
7015
  activeTab: n[r] ? parseInt(n[r]) : i,
6983
- handleTabChange: (s) => {
7016
+ handleTabChange: (g) => {
6984
7017
  t({
6985
7018
  ...n,
6986
- [r]: s.toString()
7019
+ [r]: g.toString()
6987
7020
  });
6988
7021
  },
6989
7022
  searchQueries: n
@@ -6995,23 +7028,23 @@ function Or({
6995
7028
  formatTitle: r
6996
7029
  }) {
6997
7030
  const o = SA();
6998
- R(() => {
7031
+ U(() => {
6999
7032
  let t = null, n = null;
7000
- for (const s of i) {
7001
- const C = s.items.find((d) => d.to ? d.to === "/" ? o.pathname === "/" : !!(d.to === o.pathname || o.pathname.startsWith(d.to + "/")) : !1);
7033
+ for (const g of i) {
7034
+ const C = g.items.find((d) => d.to ? d.to === "/" ? o.pathname === "/" : !!(d.to === o.pathname || o.pathname.startsWith(d.to + "/")) : !1);
7002
7035
  if (C) {
7003
- t = C, n = s;
7036
+ t = C, n = g;
7004
7037
  break;
7005
7038
  }
7006
7039
  }
7007
7040
  const l = [];
7008
7041
  t != null && t.title && l.push(t.title), n != null && n.name && l.push(n.name.toTitleCase());
7009
- const c = (s, C) => s.length > 0 ? `${s.join(" - ")} | ${C}` : C;
7042
+ const c = (g, C) => g.length > 0 ? `${g.join(" - ")} | ${C}` : C;
7010
7043
  document.title = (r || c)(l, e);
7011
7044
  }, [o.pathname]);
7012
7045
  }
7013
7046
  const Yr = () => {
7014
- const [e, i] = uA(), r = DA(e.toString()), o = re(), t = SA(), n = o.id;
7047
+ const [e, i] = kA(), r = IA(e.toString()), o = re(), t = SA(), n = o.id;
7015
7048
  return {
7016
7049
  // query params
7017
7050
  setSearchParams: i,
@@ -7033,17 +7066,17 @@ function pr(e) {
7033
7066
  var o, t;
7034
7067
  const i = e.decodedAccessToken;
7035
7068
  return oA(() => {
7036
- var s, C;
7037
- const n = ((C = (s = i == null ? void 0 : i.access) == null ? void 0 : s.role) == null ? void 0 : C.code) ?? "", l = Object.keys(e.role).reduce(
7069
+ var g, C;
7070
+ const n = ((C = (g = i == null ? void 0 : i.access) == null ? void 0 : g.role) == null ? void 0 : C.code) ?? "", l = Object.keys(e.role).reduce(
7038
7071
  (d, w) => {
7039
- const B = `is${w.toLowerCase().replace(/(^\w|_\w)/g, (u) => u.replace("_", "").toUpperCase())}`;
7072
+ const B = `is${w.toLowerCase().replace(/(^\w|_\w)/g, (I) => I.replace("_", "").toUpperCase())}`;
7040
7073
  return { ...d, [B]: !1 };
7041
7074
  },
7042
7075
  {}
7043
7076
  );
7044
7077
  return {
7045
7078
  ...Object.keys(e.role).reduce((d, w) => {
7046
- const B = `is${w.toLowerCase().replace(/(^\w|_\w)/g, (u) => u.replace("_", "").toUpperCase())}`;
7079
+ const B = `is${w.toLowerCase().replace(/(^\w|_\w)/g, (I) => I.replace("_", "").toUpperCase())}`;
7047
7080
  return {
7048
7081
  ...d,
7049
7082
  [B]: n === e.role[w]
@@ -7062,16 +7095,16 @@ export {
7062
7095
  Oe as AppComponent,
7063
7096
  oe as AppContext,
7064
7097
  Zt as AppLayout,
7065
- Mr as AsideBar,
7098
+ Er as AsideBar,
7066
7099
  Ht as AuthLayout,
7067
7100
  Gi as ColumnFilterDropdown,
7068
7101
  Lr as ConfirmationDialog,
7069
7102
  Yi as DataTable,
7070
- O as DecisionWrapper,
7071
- kA as EachUtils,
7103
+ Y as DecisionWrapper,
7104
+ EA as EachUtils,
7072
7105
  yr as EmptyStatePage,
7073
7106
  yi as FilterDrawer,
7074
- Er as FloatingFooter,
7107
+ Mr as FloatingFooter,
7075
7108
  fr as ForbiddenPage,
7076
7109
  kr as Form,
7077
7110
  br as FullSection,
@@ -7082,7 +7115,7 @@ export {
7082
7115
  pe as ModuleSwitcherModal,
7083
7116
  xr as NotFoundPage,
7084
7117
  Tt as PageLayout,
7085
- aA as Pressable,
7118
+ wA as Pressable,
7086
7119
  LA as RightDrawer,
7087
7120
  ot as ScrollToTopButton,
7088
7121
  Ut as Section,
@@ -7094,7 +7127,7 @@ export {
7094
7127
  Dr as TableSection,
7095
7128
  fi as TableWrapper,
7096
7129
  ur as ToggleStatus,
7097
- K as Typography,
7130
+ J as Typography,
7098
7131
  mr as VerticalField,
7099
7132
  Rt as createInitialFromUserName,
7100
7133
  $t as cssVars,