@starasia/admin 1.2.10 → 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,16 +1431,16 @@ const Ht = _(
1431
1431
  children: (e == null ? void 0 : e.title) || "Back"
1432
1432
  }
1433
1433
  )
1434
- ] }) }) }), h = () => /* @__PURE__ */ g(
1434
+ ] }) }) }), h = () => /* @__PURE__ */ s(
1435
1435
  a,
1436
1436
  {
1437
1437
  gap: "sm",
1438
- paddingTop: (s == null ? void 0 : s.paddingTop) || "lg",
1439
- paddingInline: (s == null ? void 0 : s.paddingInline) || "xl",
1440
- ...s,
1438
+ paddingTop: (g == null ? void 0 : g.paddingTop) || "lg",
1439
+ paddingInline: (g == null ? void 0 : g.paddingInline) || "xl",
1440
+ ...g,
1441
1441
  children: [
1442
- w && j(),
1443
- /* @__PURE__ */ g(
1442
+ w && G(),
1443
+ /* @__PURE__ */ s(
1444
1444
  a,
1445
1445
  {
1446
1446
  direction: C ? "row" : "column",
@@ -1448,20 +1448,20 @@ const Ht = _(
1448
1448
  justify: "space-between",
1449
1449
  align: "center",
1450
1450
  children: [
1451
- typeof i == "string" ? /* @__PURE__ */ g(a, { direction: "row", gap: "lg", align: "center", children: [
1451
+ typeof i == "string" ? /* @__PURE__ */ s(a, { direction: "row", gap: "lg", align: "center", children: [
1452
1452
  /* @__PURE__ */ A(Q, { variant: "h2", fontWeight: "semibold", fontFamily: "Poppins", children: i }),
1453
1453
  r && /* @__PURE__ */ A(XA, { border: !0, size: "lg", text: r, ...l })
1454
1454
  ] }) : i,
1455
- u()
1455
+ I()
1456
1456
  ]
1457
1457
  }
1458
1458
  )
1459
1459
  ]
1460
1460
  }
1461
- ), Y = () => o;
1462
- return /* @__PURE__ */ g(a, { gap: "lg", variant: "main", ...c, children: [
1461
+ ), j = () => o;
1462
+ return /* @__PURE__ */ s(a, { gap: "lg", variant: "main", ...c, children: [
1463
1463
  t && h(),
1464
- Y()
1464
+ j()
1465
1465
  ] });
1466
1466
  }, Tt = _(Ke), Ze = {
1467
1467
  icon: "Cross",
@@ -1494,8 +1494,8 @@ const Ht = _(
1494
1494
  // new style
1495
1495
  ...o
1496
1496
  },
1497
- children: /* @__PURE__ */ g(a, { padding: "lg", children: [
1498
- l ? /* @__PURE__ */ g(
1497
+ children: /* @__PURE__ */ s(a, { padding: "lg", children: [
1498
+ l ? /* @__PURE__ */ s(
1499
1499
  a,
1500
1500
  {
1501
1501
  direction: "row",
@@ -1534,7 +1534,7 @@ const Ht = _(
1534
1534
  ) })
1535
1535
  ), He = _(
1536
1536
  ({ children: e, borderBottom: i = !0, padding: r = !0 }) => {
1537
- const o = V("lg");
1537
+ const o = X("lg");
1538
1538
  return /* @__PURE__ */ A(
1539
1539
  a,
1540
1540
  {
@@ -1550,7 +1550,7 @@ const Ht = _(
1550
1550
  );
1551
1551
  }
1552
1552
  ), Je = _(({ children: e }) => {
1553
- const i = V("lg");
1553
+ const i = X("lg");
1554
1554
  return /* @__PURE__ */ A(
1555
1555
  a,
1556
1556
  {
@@ -1570,41 +1570,41 @@ const Ht = _(
1570
1570
  searchField: n,
1571
1571
  header: l,
1572
1572
  onSearchChange: c,
1573
- searchKey: s = "q",
1573
+ searchKey: g = "q",
1574
1574
  searchPlaceholder: C = "CTRL + K to search query",
1575
1575
  searchHighlightPlaceholder: d = "CTRL + K",
1576
1576
  filterContainer: w,
1577
1577
  actionContainer: B,
1578
- headerProps: u = { borderBottom: !0 },
1579
- variantTag: j = "info"
1578
+ headerProps: I = { borderBottom: !0 },
1579
+ variantTag: G = "info"
1580
1580
  }) => {
1581
- const h = V("lg"), [Y, p] = uA(), N = Y.get(s), U = DA(Y.toString()), L = JA(
1582
- ({ target: { value: P } }) => {
1583
- 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 });
1584
1584
  },
1585
- [s, c, p, U]
1585
+ [g, c, p, R]
1586
1586
  ), k = () => /* @__PURE__ */ A(
1587
- IA,
1587
+ uA,
1588
1588
  {
1589
1589
  placeholder: C,
1590
1590
  highlightPlaceholder: d,
1591
1591
  leftIcon: /* @__PURE__ */ A(m, { name: "Search", width: 20, height: 20 }),
1592
- onChange: L,
1592
+ onChange: f,
1593
1593
  style: { width: "100%" },
1594
1594
  value: N || ""
1595
1595
  }
1596
- ), 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: [
1597
1597
  /* @__PURE__ */ A(Q, { fontWeight: "medium", children: i }),
1598
- /* @__PURE__ */ A(XA, { border: !0, text: r, variant: j })
1598
+ /* @__PURE__ */ A(XA, { border: !0, text: r, variant: G })
1599
1599
  ] }) : /* @__PURE__ */ A(Q, { fontWeight: "medium", children: i });
1600
- return /* @__PURE__ */ g(
1600
+ return /* @__PURE__ */ s(
1601
1601
  a,
1602
1602
  {
1603
1603
  bg: "accent-dark-tertiary",
1604
1604
  borderRadius: "rounded-md",
1605
1605
  variant: "section",
1606
1606
  children: [
1607
- l !== null ? /* @__PURE__ */ A(He, { ...u, children: l || /* @__PURE__ */ g(
1607
+ l !== null ? /* @__PURE__ */ A(He, { ...I, children: l || /* @__PURE__ */ s(
1608
1608
  a,
1609
1609
  {
1610
1610
  direction: "row",
@@ -1612,7 +1612,7 @@ const Ht = _(
1612
1612
  align: "flex-start",
1613
1613
  gap: "lg",
1614
1614
  children: [
1615
- /* @__PURE__ */ A(a, { ...w, children: t || (i ? Z() : null) }),
1615
+ /* @__PURE__ */ A(a, { ...w, children: t || (i ? P() : null) }),
1616
1616
  /* @__PURE__ */ A(
1617
1617
  a,
1618
1618
  {
@@ -1630,9 +1630,9 @@ const Ht = _(
1630
1630
  );
1631
1631
  }
1632
1632
  ), qe = "#E6E9FB", Te = ({ children: e, onClick: i }) => {
1633
- const [r, o] = G("");
1633
+ const [r, o] = b("");
1634
1634
  return /* @__PURE__ */ A(
1635
- aA,
1635
+ wA,
1636
1636
  {
1637
1637
  fullWidth: !0,
1638
1638
  height: "height-8",
@@ -1660,7 +1660,7 @@ const Ht = _(
1660
1660
  position: n = "bottom-right",
1661
1661
  buttonProps: l,
1662
1662
  iconProps: c,
1663
- variant: s = "default"
1663
+ variant: g = "default"
1664
1664
  }) => {
1665
1665
  const C = oA(
1666
1666
  () => ({
@@ -1670,10 +1670,10 @@ const Ht = _(
1670
1670
  }),
1671
1671
  [t]
1672
1672
  );
1673
- return /* @__PURE__ */ g(Ce, { position: n, style: r, children: [
1674
- /* @__PURE__ */ A(Be, { style: o, children: /* @__PURE__ */ A(b, { size: "sm", secondary: !0, ...l, children: /* @__PURE__ */ A(m, { name: e, ...c }) }) }),
1675
- /* @__PURE__ */ A(we, { style: C, children: i.map((d, w) => s === "outline-button" ? /* @__PURE__ */ A(de, { children: /* @__PURE__ */ g(
1676
- b,
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,
1677
1677
  {
1678
1678
  size: "sm",
1679
1679
  secondary: !0,
@@ -1685,7 +1685,7 @@ const Ht = _(
1685
1685
  /* @__PURE__ */ A(Q, { fontSize: "sm", color: "text", ...d.textProps, children: d.label })
1686
1686
  ]
1687
1687
  }
1688
- ) }, d.id || w) : /* @__PURE__ */ g(
1688
+ ) }, d.id || w) : /* @__PURE__ */ s(
1689
1689
  Ue,
1690
1690
  {
1691
1691
  onClick: d.onClick,
@@ -1698,10 +1698,10 @@ const Ht = _(
1698
1698
  d.id || w
1699
1699
  )) })
1700
1700
  ] });
1701
- }, Wt = _(We), ne = cA.memo(({ text: e, onClose: i }) => {
1701
+ }, Wt = _(We), ne = gA.memo(({ text: e, onClose: i }) => {
1702
1702
  var o, t;
1703
1703
  const r = ZA();
1704
- return /* @__PURE__ */ g(
1704
+ return /* @__PURE__ */ s(
1705
1705
  a,
1706
1706
  {
1707
1707
  direction: "row",
@@ -1719,7 +1719,7 @@ const Ht = _(
1719
1719
  children: [
1720
1720
  /* @__PURE__ */ A(a, { paddingLeft: "sm", flex: "1", children: /* @__PURE__ */ A(Q, { children: e }) }),
1721
1721
  /* @__PURE__ */ A(
1722
- aA,
1722
+ wA,
1723
1723
  {
1724
1724
  justify: "center",
1725
1725
  align: "center",
@@ -1739,7 +1739,7 @@ const Ht = _(
1739
1739
  ]
1740
1740
  }
1741
1741
  );
1742
- }), Re = cA.memo(({ items: e = [], onClose: i }) => /* @__PURE__ */ A(
1742
+ }), Re = gA.memo(({ items: e = [], onClose: i }) => /* @__PURE__ */ A(
1743
1743
  a,
1744
1744
  {
1745
1745
  direction: "row",
@@ -1769,27 +1769,27 @@ const Ht = _(
1769
1769
  }
1770
1770
  let r = new Date(e);
1771
1771
  return r = typeof e != "object" ? void 0 : r, r;
1772
- }, 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: [
1773
1773
  /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(Q, { fontWeight: "bold", children: e }) }),
1774
- /* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(aA, { onClick: i == null ? void 0 : i.onClick, children: /* @__PURE__ */ A(Q, { fontWeight: "bold", color: "error", children: (i == null ? void 0 : i.label) || "Reset" }) }) })
1775
- ] })), 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(
1776
1776
  ({ value: e, options: i = [], onChange: r, multiple: o }) => {
1777
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) => {
1778
- const s = [...n];
1778
+ const g = [...n];
1779
1779
  let C = [];
1780
- 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);
1781
1781
  };
1782
- return /* @__PURE__ */ A(a, { direction: "row", gap: "sm", flexWrap: "wrap", children: i == null ? void 0 : i.map((c, s) => /* @__PURE__ */ A(
1783
- 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,
1784
1784
  {
1785
1785
  ...t.includes(c.value) ? { primary: !0 } : { secondary: !0 },
1786
1786
  onClick: () => l(c),
1787
1787
  children: c.label
1788
1788
  },
1789
- s
1789
+ g
1790
1790
  )) });
1791
1791
  }
1792
- ), le = cA.memo(
1792
+ ), le = gA.memo(
1793
1793
  HA(
1794
1794
  ({
1795
1795
  label: e,
@@ -1800,33 +1800,33 @@ const Ht = _(
1800
1800
  placeholder: n,
1801
1801
  relationLabel: l,
1802
1802
  name: c,
1803
- multiple: s,
1803
+ multiple: g,
1804
1804
  searchable: C,
1805
1805
  onSearch: d,
1806
1806
  value: w,
1807
1807
  dateFilter: B,
1808
- enableInputDate: u,
1809
- withSearchParam: j,
1808
+ enableInputDate: I,
1809
+ withSearchParam: G,
1810
1810
  // disabled,
1811
1811
  rangedDate: h,
1812
- disabled: Y,
1812
+ disabled: j,
1813
1813
  inputTextType: p = "text",
1814
1814
  min: N,
1815
- max: U
1816
- }, L) => {
1815
+ max: R
1816
+ }, f) => {
1817
1817
  const k = t == null ? void 0 : t.length;
1818
- let Z;
1819
- const H = () => {
1818
+ let P;
1819
+ const Z = () => {
1820
1820
  switch (i) {
1821
1821
  case "dropdown":
1822
1822
  return /* @__PURE__ */ A(
1823
1823
  fA,
1824
1824
  {
1825
1825
  onSearch: d,
1826
- multiSelect: s,
1826
+ multiSelect: g,
1827
1827
  searchAble: C,
1828
1828
  placeholder: n,
1829
- 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 }),
1830
1830
  dropdownLists: r || [],
1831
1831
  defaultValue: w || vA()
1832
1832
  }
@@ -1835,38 +1835,38 @@ const Ht = _(
1835
1835
  return /* @__PURE__ */ A(
1836
1836
  $A,
1837
1837
  {
1838
- input: u,
1838
+ input: I,
1839
1839
  filter: B,
1840
- value: Pe(w || Z, h),
1841
- 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 }),
1842
1842
  rangedDate: h,
1843
- ref: L
1843
+ ref: f
1844
1844
  }
1845
1845
  );
1846
1846
  case "select-button":
1847
1847
  return /* @__PURE__ */ A(
1848
1848
  Xe,
1849
1849
  {
1850
- multiple: s,
1850
+ multiple: g,
1851
1851
  value: w || vA(),
1852
- 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 }),
1853
1853
  options: r
1854
1854
  }
1855
1855
  );
1856
1856
  case "text":
1857
1857
  return /* @__PURE__ */ A(
1858
- IA,
1858
+ uA,
1859
1859
  {
1860
- onChange: ({ target: { value: q } }) => o == null ? void 0 : o({ value: q, name: c, type: i }),
1861
- value: w || Z,
1860
+ onChange: ({ target: { value: T } }) => o == null ? void 0 : o({ value: T, name: c, type: i }),
1861
+ value: w || P,
1862
1862
  placeholder: n,
1863
- disabled: Y,
1863
+ disabled: j,
1864
1864
  type: p,
1865
1865
  name: c,
1866
- ...p === "number" && { min: N, max: U },
1866
+ ...p === "number" && { min: N, max: R },
1867
1867
  ...(!p || p === "text") && {
1868
1868
  minLength: N,
1869
- maxLength: U
1869
+ maxLength: R
1870
1870
  }
1871
1871
  }
1872
1872
  );
@@ -1874,23 +1874,23 @@ const Ht = _(
1874
1874
  return null;
1875
1875
  }
1876
1876
  };
1877
- 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(
1878
1878
  le,
1879
1879
  {
1880
- ref: L,
1880
+ ref: f,
1881
1881
  onChange: o,
1882
- ...q,
1883
- withSearchParam: j
1882
+ ...T,
1883
+ withSearchParam: G
1884
1884
  },
1885
1885
  E
1886
- )) }) : /* @__PURE__ */ g(a, { marginBottom: "sm", children: [
1886
+ )) }) : /* @__PURE__ */ s(a, { marginBottom: "sm", children: [
1887
1887
  l ? /* @__PURE__ */ A(Q, { color: "text-muted", marginBottom: "sm", fontWeight: "medium", children: l }) : null,
1888
1888
  e ? /* @__PURE__ */ A(Q, { marginBottom: "sm", fontWeight: "medium", children: e }) : null,
1889
- /* @__PURE__ */ A(a, { children: H() })
1889
+ /* @__PURE__ */ A(a, { children: Z() })
1890
1890
  ] });
1891
1891
  }
1892
1892
  )
1893
- ), $e = cA.memo(
1893
+ ), $e = gA.memo(
1894
1894
  ({
1895
1895
  show: e,
1896
1896
  title: i,
@@ -1900,9 +1900,9 @@ const Ht = _(
1900
1900
  onHide: n,
1901
1901
  resetting: l
1902
1902
  }) => {
1903
- 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 }) => {
1904
1904
  if (o)
1905
- switch (j) {
1905
+ switch (G) {
1906
1906
  case "date":
1907
1907
  ve(B);
1908
1908
  break;
@@ -1914,11 +1914,11 @@ const Ht = _(
1914
1914
  break;
1915
1915
  }
1916
1916
  }, w = () => {
1917
- s(!0), t == null || t(!0);
1917
+ g(!0), t == null || t(!0);
1918
1918
  };
1919
- return R(() => {
1920
- (c || l) && (s(!1), t == null || t(!1));
1921
- }, [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(
1922
1922
  LA,
1923
1923
  {
1924
1924
  withBlur: !1,
@@ -1929,26 +1929,26 @@ const Ht = _(
1929
1929
  ref: C,
1930
1930
  children: [
1931
1931
  /* @__PURE__ */ A(Ve, { title: i, resetButton: { onClick: w } }),
1932
- 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(
1933
1933
  le,
1934
1934
  {
1935
- borderBottom: u !== r.length - 1,
1935
+ borderBottom: I !== r.length - 1,
1936
1936
  onChange: d,
1937
1937
  withSearchParam: o,
1938
1938
  ...B,
1939
1939
  ref: C
1940
1940
  },
1941
- u
1941
+ I
1942
1942
  )) })
1943
1943
  ]
1944
1944
  }
1945
1945
  ) });
1946
1946
  }
1947
- ), _e = cA.memo(({ active: e, onClick: i }) => {
1947
+ ), _e = gA.memo(({ active: e, onClick: i }) => {
1948
1948
  var o, t;
1949
1949
  const r = ZA();
1950
1950
  return /* @__PURE__ */ A(
1951
- aA,
1951
+ wA,
1952
1952
  {
1953
1953
  onClick: i,
1954
1954
  bg: e ? "blue-50" : void 0,
@@ -2154,19 +2154,19 @@ const gr = (e) => {
2154
2154
  } else (o == null ? void 0 : o.name) === e && (r = o);
2155
2155
  }), r;
2156
2156
  }, ar = (e) => {
2157
- var U;
2158
- const i = oA(() => ({ ...ri, ...e }), [e]), [r, o] = G(!1), [t, n] = G(!1), [l] = G(void 0), c = () => n(!0), s = () => n(!1), C = t ? s : c, d = () => {
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 = () => {
2159
2159
  o(!0);
2160
- }, w = (L) => {
2161
- o(L);
2162
- }, B = l ? oi(l) : void 0, u = !!(B && ((U = Object.values(B)) == null ? void 0 : U.length) > 0), j = () => B ? Object.keys(B).map((L) => {
2163
- var q, E, f;
2164
- const k = KA(L, i.fields), Z = [];
2165
- let H = "";
2166
- const P = (q = k == null ? void 0 : k.childrenKey) == null ? void 0 : q.length, X = k == null ? void 0 : k.parentKey;
2167
- 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) => {
2168
2168
  const D = KA(M, i.fields);
2169
- D && Z.push({
2169
+ D && P.push({
2170
2170
  name: D == null ? void 0 : D.name,
2171
2171
  label: D == null ? void 0 : D.label,
2172
2172
  value: B[D == null ? void 0 : D.name]
@@ -2174,60 +2174,60 @@ const gr = (e) => {
2174
2174
  })), k == null ? void 0 : k.type) {
2175
2175
  case "dropdown":
2176
2176
  case "select-button":
2177
- const M = B[L] && typeof B[L] != "string" ? B[L] : [], D = (M == null ? void 0 : M.length) > 0 ? (f = M.map((x) => x.label)) == null ? void 0 : f.join(",") : B[L];
2178
- H = `${k == null ? void 0 : k.label}: ${D}`;
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}`;
2179
2179
  break;
2180
2180
  case "date":
2181
2181
  if (k.rangedDate) {
2182
- const x = B[L], T = (k == null ? void 0 : k.dateValueFormatText) === "indonesian" ? yA(new Date(x == null ? void 0 : x.from)) : x == null ? void 0 : x.from, tA = (k == null ? void 0 : k.dateValueFormatText) === "indonesian" ? yA(new Date(x == null ? void 0 : x.to)) : x == null ? void 0 : x.to;
2183
- 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 || ""}`;
2184
2184
  break;
2185
2185
  }
2186
- const F = (k == null ? void 0 : k.dateValueFormatText) === "indonesian" ? yA(new Date(B[L])) : B[L];
2187
- H = `${k == null ? void 0 : k.label}: ${F || ""}`;
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 || ""}`;
2188
2188
  break;
2189
2189
  default:
2190
- H = `${k == null ? void 0 : k.label}: ${B[L]}`;
2190
+ Z = `${k == null ? void 0 : k.label}: ${B[f]}`;
2191
2191
  break;
2192
2192
  }
2193
- if (P && Z.length > 0) {
2194
- let M = Z.map((D) => {
2193
+ if (V && P.length > 0) {
2194
+ let M = P.map((D) => {
2195
2195
  var F, x;
2196
- return D != null && D.value && typeof D.value != "string" ? (x = (F = D == null ? void 0 : D.value) == null ? void 0 : F.map((T) => T == null ? void 0 : T.label)) == null ? void 0 : x.join(",") : D.value;
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;
2197
2197
  });
2198
2198
  M = M.filter(
2199
2199
  (D) => typeof D < "u" && D !== "" && D !== null
2200
- ), M && M.length > 0 && (H = `${H} ${k.relationLabelChip || "by"} ${M}`);
2200
+ ), M && M.length > 0 && (Z = `${Z} ${k.relationLabelChip || "by"} ${M}`);
2201
2201
  }
2202
- return X && (H = ""), {
2202
+ return AA && (Z = ""), {
2203
2203
  name: k == null ? void 0 : k.name,
2204
2204
  label: k == null ? void 0 : k.label,
2205
- value: B[L],
2206
- valueText: H,
2207
- children: Z
2205
+ value: B[f],
2206
+ valueText: Z,
2207
+ children: P
2208
2208
  };
2209
- }) : [], h = (L) => {
2210
- L != null && L.name && o(!0);
2211
- }, Y = j();
2209
+ }) : [], h = (f) => {
2210
+ f != null && f.name && o(!0);
2211
+ }, j = G();
2212
2212
  return {
2213
2213
  value: B,
2214
2214
  open: c,
2215
- close: s,
2215
+ close: g,
2216
2216
  toggle: C,
2217
2217
  reset: d,
2218
- chips: Y,
2218
+ chips: j,
2219
2219
  toggleConfig: {
2220
- active: u,
2220
+ active: I,
2221
2221
  onClick: C
2222
2222
  },
2223
2223
  chipsConfig: {
2224
- items: Y,
2224
+ items: j,
2225
2225
  onClose: h
2226
2226
  },
2227
2227
  config: {
2228
2228
  ...i,
2229
2229
  show: t,
2230
- onHide: s,
2230
+ onHide: g,
2231
2231
  resetting: r,
2232
2232
  onReset: w
2233
2233
  }
@@ -2237,7 +2237,7 @@ const gr = (e) => {
2237
2237
  Toggle: _e,
2238
2238
  Chips: Re,
2239
2239
  Chip: ne
2240
- }, ni = (e) => /* @__PURE__ */ A(Q, { variant: "h1", children: e.children, ...e.props }), li = (e) => /* @__PURE__ */ A(Q, { variant: "h2", children: e.children, ...e.props }), ci = (e) => /* @__PURE__ */ A(Q, { variant: "h3", children: e.children, ...e.props }), gi = (e) => /* @__PURE__ */ A(Q, { variant: "h4", children: e.children, ...e.props }), si = (e) => /* @__PURE__ */ A(Q, { variant: "h5", children: e.children, ...e.props }), ai = (e) => /* @__PURE__ */ A(Q, { variant: "h6", children: e.children, ...e.props }), Ci = (e) => /* @__PURE__ */ A(Q, { variant: "sub-h1", children: e.children, ...e.props }), Bi = (e) => /* @__PURE__ */ A(Q, { variant: "sub-h2", children: e.children, ...e.props }), wi = (e) => /* @__PURE__ */ A(Q, { variant: "sub-h3", children: e.children, ...e.props }), di = (e) => /* @__PURE__ */ A(Q, { variant: "body-1", children: e.children, ...e.props }), Qi = (e) => /* @__PURE__ */ A(Q, { variant: "body-2", children: e.children, ...e.props }), hi = (e) => /* @__PURE__ */ A(Q, { variant: "body-3", children: e.children, ...e.props }), K = {
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 = {
2241
2241
  H1: ni,
2242
2242
  H2: li,
2243
2243
  H3: ci,
@@ -2251,7 +2251,7 @@ const gr = (e) => {
2251
2251
  Body2: Qi,
2252
2252
  Body3: hi
2253
2253
  }, qA = () => {
2254
- 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;
2255
2255
  return {
2256
2256
  // query params
2257
2257
  setSearchParams: i,
@@ -2268,7 +2268,7 @@ const gr = (e) => {
2268
2268
  id: n,
2269
2269
  hasId: !!n
2270
2270
  };
2271
- }, 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 = ({
2272
2272
  value: e,
2273
2273
  name: i,
2274
2274
  type: r,
@@ -2277,13 +2277,13 @@ const gr = (e) => {
2277
2277
  searchQueries: n,
2278
2278
  dropdownSearchKey: l,
2279
2279
  filterKey: c = "filter",
2280
- pageKey: s = "page"
2280
+ pageKey: g = "page"
2281
2281
  }) => {
2282
2282
  if (o) {
2283
2283
  let C;
2284
2284
  switch (r) {
2285
2285
  case "search":
2286
- C = Mi(e);
2286
+ C = Ei(e);
2287
2287
  break;
2288
2288
  case "dropdown":
2289
2289
  case "dropdown-multiple":
@@ -2296,7 +2296,7 @@ const gr = (e) => {
2296
2296
  C = ui(e);
2297
2297
  break;
2298
2298
  case "advanced-date-range":
2299
- C = Ei(e);
2299
+ C = Mi(e);
2300
2300
  break;
2301
2301
  case "date":
2302
2302
  C = ki(e);
@@ -2310,12 +2310,16 @@ const gr = (e) => {
2310
2310
  ...n[c] && typeof n[c] == "string" ? JSON.parse(n[c]) : void 0,
2311
2311
  [i]: C
2312
2312
  }, B = { ...n };
2313
- l && typeof l == "string" && delete B[l], delete B[s];
2314
- const u = {
2313
+ l && typeof l == "string" && delete B[l], delete B[g];
2314
+ const I = {
2315
2315
  ...B,
2316
2316
  [c]: JSON.stringify(w)
2317
- };
2318
- t(u);
2317
+ }, G = new URLSearchParams(n).toString(), h = new URLSearchParams(
2318
+ I
2319
+ ).toString();
2320
+ if (G === h)
2321
+ return;
2322
+ t(I);
2319
2323
  }
2320
2324
  }
2321
2325
  }, YA = ({
@@ -2376,32 +2380,32 @@ const gr = (e) => {
2376
2380
  pageKey: o,
2377
2381
  filters: t
2378
2382
  }) => {
2379
- 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 = () => {
2380
2384
  n.delete(r || "filter"), l(n);
2381
- }, w = (B, u) => {
2385
+ }, w = (B, I) => {
2382
2386
  switch (B.type) {
2383
2387
  case "radio": {
2384
- const { show: j = !0 } = B;
2385
- 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);
2386
2390
  }
2387
2391
  case "dropdown": {
2388
- const { show: j = !0 } = B;
2389
- 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);
2390
2394
  }
2391
2395
  case "date-range":
2392
- 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);
2393
2397
  case "date":
2394
- 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);
2395
2399
  case "dropdown-multiple": {
2396
- const { show: j = !0 } = B;
2397
- 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);
2398
2402
  }
2399
2403
  default:
2400
2404
  return null;
2401
2405
  }
2402
2406
  };
2403
- return /* @__PURE__ */ A(LA, { onHide: i, show: e || !1, children: /* @__PURE__ */ g(a, { direction: "column", gap: "md", children: [
2404
- /* @__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: [
2405
2409
  /* @__PURE__ */ A(a, { children: "Filter" }),
2406
2410
  /* @__PURE__ */ A(
2407
2411
  a,
@@ -2412,7 +2416,7 @@ const gr = (e) => {
2412
2416
  }
2413
2417
  )
2414
2418
  ] }),
2415
- t == null ? void 0 : t.map((B, u) => w(B, u))
2419
+ t == null ? void 0 : t.map((B, I) => w(B, I))
2416
2420
  ] }) });
2417
2421
  }, xi = ({
2418
2422
  searchKey: e = "q",
@@ -2423,67 +2427,95 @@ const gr = (e) => {
2423
2427
  showSearchFilter: n = !0,
2424
2428
  showStatusFilter: l = !0,
2425
2429
  filterKey: c = "filter",
2426
- pageKey: s = "page",
2430
+ pageKey: g = "page",
2427
2431
  customWidthSearch: C,
2428
2432
  handleOnReset: d,
2429
2433
  filterConfigs: w,
2430
2434
  buttonToggleProps: B,
2431
- position: u = "right",
2432
- titleSearchLabel: j = "Work Order",
2435
+ position: I = "right",
2436
+ titleSearchLabel: G = "Work Order",
2433
2437
  withTitleLabels: h = !1
2434
2438
  }) => {
2435
- const Y = (B == null ? void 0 : B.isShowLabel) ?? !0, [p, N] = G(!1), [U, L] = G(0), k = () => {
2436
- L(U + 1);
2437
- }, { searchParams: Z, setSearchParams: H, getQueryParam: P } = qA(), X = DA(Z.toString()), q = P(c), f = !!(q && !(() => {
2438
- 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)
2439
2443
  try {
2440
- const D = JSON.parse(q);
2441
- return Object.keys(D).length === 1 && D[e] === "";
2442
- } catch (D) {
2443
- console.error("Filter parameter is not a valid JSON:", D);
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);
2444
2448
  }
2445
2449
  return !1;
2446
- })()), M = V("md");
2447
- return /* @__PURE__ */ g(
2448
- 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,
2449
2480
  {
2450
2481
  gap: "md",
2451
2482
  style: {
2452
- flexDirection: M && u === "left" ? "row" : M && u === "right" ? "row-reverse" : "column"
2483
+ flexDirection: H && I === "left" ? "row" : H && I === "right" ? "row-reverse" : "column"
2453
2484
  },
2454
2485
  align: "flex-end",
2455
2486
  children: [
2456
- f && /* @__PURE__ */ A(a, { justify: "flex-end", children: /* @__PURE__ */ A(
2457
- b,
2487
+ x && /* @__PURE__ */ A(a, { justify: "flex-end", children: /* @__PURE__ */ A(
2488
+ O,
2458
2489
  {
2459
2490
  onClick: () => {
2460
- Z.delete(c), H(Z), k(), d && d();
2491
+ const z = new URLSearchParams(Z);
2492
+ z.delete(c), V(z), M(""), P(), d && d();
2461
2493
  },
2462
2494
  secondary: !0,
2463
2495
  children: /* @__PURE__ */ A(Q, { color: "error", fontWeight: "semibold", children: "Reset" })
2464
2496
  }
2465
2497
  ) }),
2466
2498
  !!(w != null && w.length) && /* @__PURE__ */ A(
2467
- b,
2499
+ O,
2468
2500
  {
2469
- primary: f,
2470
- secondary: !f,
2501
+ primary: x,
2502
+ secondary: !x,
2471
2503
  iconLeft: /* @__PURE__ */ A(
2472
2504
  m,
2473
2505
  {
2474
2506
  size: "sm",
2475
2507
  name: (B == null ? void 0 : B.icon) || "FilterHorizontal",
2476
2508
  style: {
2477
- 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)"
2478
2510
  }
2479
2511
  }
2480
2512
  ),
2481
- fullWidth: !M,
2482
- onClick: () => N(!0),
2483
- children: Y ? "Filter" : void 0
2513
+ fullWidth: !H,
2514
+ onClick: () => R(!0),
2515
+ children: p ? "Filter" : void 0
2484
2516
  }
2485
2517
  ),
2486
- l && /* @__PURE__ */ g(
2518
+ l && /* @__PURE__ */ s(
2487
2519
  a,
2488
2520
  {
2489
2521
  gap: "sm",
@@ -2491,7 +2523,7 @@ const gr = (e) => {
2491
2523
  minWidth: "126px"
2492
2524
  },
2493
2525
  children: [
2494
- h && /* @__PURE__ */ A(K.SubH3, { children: "Status" }),
2526
+ h && /* @__PURE__ */ A(J.SubH3, { children: "Status" }),
2495
2527
  /* @__PURE__ */ A(
2496
2528
  fA,
2497
2529
  {
@@ -2526,86 +2558,78 @@ const gr = (e) => {
2526
2558
  })
2527
2559
  }
2528
2560
  ] : [],
2529
- onChange: (D) => PA({
2530
- value: D,
2561
+ onChange: (z) => PA({
2562
+ value: z,
2531
2563
  name: i,
2532
2564
  type: "dropdown",
2533
- searchQueries: X,
2534
- setSearchParams: H,
2565
+ searchQueries: T,
2566
+ setSearchParams: V,
2535
2567
  filterKey: c
2536
2568
  }),
2537
2569
  placeholder: h ? "All" : "All Status"
2538
2570
  },
2539
- U
2571
+ f
2540
2572
  )
2541
2573
  ]
2542
2574
  }
2543
2575
  ),
2544
- n && /* @__PURE__ */ g(
2576
+ n && /* @__PURE__ */ s(
2545
2577
  a,
2546
2578
  {
2547
2579
  gap: "sm",
2548
2580
  style: {
2549
- width: C && M ? C : M ? "310px" : ""
2581
+ width: C && H ? C : H ? "310px" : ""
2550
2582
  },
2551
2583
  children: [
2552
- h && /* @__PURE__ */ g(K.SubH3, { children: [
2584
+ h && /* @__PURE__ */ s(J.SubH3, { children: [
2553
2585
  "Search for ",
2554
- j
2586
+ G
2555
2587
  ] }),
2556
2588
  /* @__PURE__ */ A(
2557
- IA,
2589
+ uA,
2558
2590
  {
2559
2591
  placeholder: r,
2560
2592
  leftIcon: /* @__PURE__ */ A(m, { name: "Search", width: 20, height: 20 }),
2561
- onChange: (D) => PA({
2562
- value: D.target.value,
2563
- name: e,
2564
- type: "search",
2565
- searchQueries: X,
2566
- setSearchParams: H,
2567
- filterKey: c,
2568
- pageKey: s
2569
- }),
2570
- value: mi(e, Z, c) || "",
2593
+ onChange: (z) => M(z.target.value),
2594
+ value: S,
2571
2595
  fullWidth: !0
2572
2596
  },
2573
- U + 1 + c
2597
+ f + 1 + c
2574
2598
  )
2575
2599
  ]
2576
2600
  }
2577
2601
  ),
2578
- 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(
2579
2603
  a,
2580
2604
  {
2581
2605
  gap: "sm",
2582
- onClick: T,
2606
+ onClick: lA,
2583
2607
  style: {
2584
- minWidth: D
2608
+ minWidth: z
2585
2609
  },
2586
2610
  children: [
2587
- /* @__PURE__ */ A(K.SubH3, { children: x }),
2588
- F
2611
+ /* @__PURE__ */ A(J.SubH3, { children: aA }),
2612
+ sA
2589
2613
  ]
2590
2614
  },
2591
- x + U
2615
+ aA + f
2592
2616
  )),
2593
2617
  /* @__PURE__ */ A(
2594
2618
  yi,
2595
2619
  {
2596
- isOpen: p,
2597
- onClose: () => N(!1),
2620
+ isOpen: N,
2621
+ onClose: () => R(!1),
2598
2622
  filterKey: c,
2599
2623
  filters: w,
2600
- pageKey: s
2624
+ pageKey: g
2601
2625
  }
2602
2626
  )
2603
2627
  ]
2604
2628
  }
2605
2629
  );
2606
2630
  }, fi = ({ children: e, borderRadius: i }) => {
2607
- const r = AA(null), [o, t] = G("100vh");
2608
- return R(() => {
2631
+ const r = eA(null), [o, t] = b("100vh");
2632
+ return U(() => {
2609
2633
  const n = () => {
2610
2634
  if (r.current) {
2611
2635
  const l = r.current.getBoundingClientRect().top;
@@ -2635,7 +2659,7 @@ const gr = (e) => {
2635
2659
  advanceFilter: i,
2636
2660
  showFilter: r = !0
2637
2661
  }) => {
2638
- const o = V("md"), t = () => e ? ie(e) ? e : /* @__PURE__ */ A(
2662
+ const o = X("md"), t = () => e ? ie(e) ? e : /* @__PURE__ */ A(
2639
2663
  a,
2640
2664
  {
2641
2665
  style: {
@@ -2646,12 +2670,12 @@ const gr = (e) => {
2646
2670
  textWrap: "nowrap"
2647
2671
  },
2648
2672
  children: e.map(
2649
- ({ title: n, icon: l, buttonProps: c, onClick: s }, C) => !n && !l ? null : /* @__PURE__ */ A(
2650
- b,
2673
+ ({ title: n, icon: l, buttonProps: c, onClick: g }, C) => !n && !l ? null : /* @__PURE__ */ A(
2674
+ O,
2651
2675
  {
2652
2676
  fullWidth: !o,
2653
2677
  iconLeft: l ? /* @__PURE__ */ A(m, { name: l, size: "md" }) : void 0,
2654
- onClick: s,
2678
+ onClick: g,
2655
2679
  ...c,
2656
2680
  children: n
2657
2681
  },
@@ -2660,7 +2684,7 @@ const gr = (e) => {
2660
2684
  )
2661
2685
  }
2662
2686
  ) : null;
2663
- return /* @__PURE__ */ g(
2687
+ return /* @__PURE__ */ s(
2664
2688
  a,
2665
2689
  {
2666
2690
  style: {
@@ -2689,7 +2713,7 @@ const gr = (e) => {
2689
2713
  totalData: e,
2690
2714
  withMarginBottom: i = !0,
2691
2715
  withMarginTop: r = !0
2692
- }) => /* @__PURE__ */ g(
2716
+ }) => /* @__PURE__ */ s(
2693
2717
  a,
2694
2718
  {
2695
2719
  style: {
@@ -2701,8 +2725,8 @@ const gr = (e) => {
2701
2725
  marginTop: r ? "16px" : void 0
2702
2726
  },
2703
2727
  children: [
2704
- /* @__PURE__ */ g(
2705
- K.Body1,
2728
+ /* @__PURE__ */ s(
2729
+ J.Body1,
2706
2730
  {
2707
2731
  props: {
2708
2732
  color: "gray-500"
@@ -2713,7 +2737,7 @@ const gr = (e) => {
2713
2737
  ]
2714
2738
  }
2715
2739
  ),
2716
- /* @__PURE__ */ A(K.Body1, { children: e || 0 })
2740
+ /* @__PURE__ */ A(J.Body1, { children: e || 0 })
2717
2741
  ]
2718
2742
  }
2719
2743
  ), bi = ({
@@ -2724,15 +2748,15 @@ const gr = (e) => {
2724
2748
  showPagination: t = !0,
2725
2749
  totalData: n
2726
2750
  }) => {
2727
- const { searchQueries: l, setSearchParams: c, searchParams: s } = qA(), C = s.get(r), d = (j) => {
2728
- c({ ...l, [i]: String(j) });
2729
- }, 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) => {
2730
2754
  c({
2731
2755
  ...l,
2732
- [r]: j,
2756
+ [r]: G,
2733
2757
  [i]: "1"
2734
2758
  });
2735
- }, 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));
2736
2760
  return /* @__PURE__ */ A(
2737
2761
  a,
2738
2762
  {
@@ -2749,8 +2773,8 @@ const gr = (e) => {
2749
2773
  borderTop: "1px solid var(--starasia-ui-utility-fill-default)",
2750
2774
  flexShrink: 0
2751
2775
  },
2752
- children: t ? /* @__PURE__ */ g(W, { children: [
2753
- /* @__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: [
2754
2778
  /* @__PURE__ */ A(Q, { children: "Rows Per Page: " }),
2755
2779
  /* @__PURE__ */ A(
2756
2780
  fA,
@@ -2762,13 +2786,13 @@ const gr = (e) => {
2762
2786
  { label: "50", value: "50" },
2763
2787
  { label: "100", value: "100" }
2764
2788
  ],
2765
- onChange: (j) => {
2766
- w(j[0].value);
2789
+ onChange: (G) => {
2790
+ w(G[0].value);
2767
2791
  },
2768
2792
  defaultValue: C ? [{ label: `${C} per row`, value: C }] : [{ label: `${o} per row`, value: `${o}` }]
2769
2793
  }
2770
2794
  ),
2771
- /* @__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}` })
2772
2796
  ] }),
2773
2797
  /* @__PURE__ */ A(
2774
2798
  Qe,
@@ -2789,32 +2813,32 @@ const gr = (e) => {
2789
2813
  }
2790
2814
  );
2791
2815
  }, Gi = ({ filter: e, columnTitle: i }) => {
2792
- const [r, o] = G(!1), t = AA(null), n = AA(null), l = AA(null), [c, s] = G(""), [C, d] = G({ top: 0, left: 0 }), w = e.selectedValues, B = oA(() => c ? e.options.filter(
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(
2793
2817
  (h) => h.label.toLowerCase().includes(c.toLowerCase())
2794
2818
  ) : e.options, [e.options, c]);
2795
- R(() => {
2819
+ U(() => {
2796
2820
  if (r && n.current) {
2797
- const h = n.current.getBoundingClientRect(), Y = 280, p = {
2821
+ const h = n.current.getBoundingClientRect(), j = 280, p = {
2798
2822
  top: h.bottom + 8
2799
2823
  };
2800
- 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);
2801
2825
  }
2802
- }, [r, e.position]), R(() => {
2826
+ }, [r, e.position]), U(() => {
2803
2827
  r && l.current ? setTimeout(() => {
2804
2828
  var h;
2805
2829
  return (h = l.current) == null ? void 0 : h.focus();
2806
- }, 50) : s("");
2807
- }, [r]), R(() => {
2808
- const h = (Y) => {
2809
- 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);
2810
2834
  };
2811
2835
  return r && document.addEventListener("mousedown", h), () => document.removeEventListener("mousedown", h);
2812
2836
  }, [r]);
2813
- const u = (h) => {
2814
- const Y = w.includes(h) ? w.filter((p) => p !== h) : [...w, h];
2815
- e.onFilterChange(Y);
2816
- }, j = () => e.onFilterChange([]);
2817
- 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: [
2818
2842
  /* @__PURE__ */ A(
2819
2843
  a,
2820
2844
  {
@@ -2826,8 +2850,8 @@ const gr = (e) => {
2826
2850
  cursor: "pointer"
2827
2851
  },
2828
2852
  onClick: (h) => {
2829
- var Y;
2830
- 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);
2831
2855
  },
2832
2856
  children: /* @__PURE__ */ A(
2833
2857
  m,
@@ -2841,7 +2865,7 @@ const gr = (e) => {
2841
2865
  )
2842
2866
  }
2843
2867
  ),
2844
- r && /* @__PURE__ */ g(
2868
+ r && /* @__PURE__ */ s(
2845
2869
  a,
2846
2870
  {
2847
2871
  ref: t,
@@ -2860,7 +2884,7 @@ const gr = (e) => {
2860
2884
  border: "1px solid var(--starasia-ui-utility-fill-default)"
2861
2885
  },
2862
2886
  children: [
2863
- /* @__PURE__ */ g(
2887
+ /* @__PURE__ */ s(
2864
2888
  a,
2865
2889
  {
2866
2890
  style: {
@@ -2875,7 +2899,7 @@ const gr = (e) => {
2875
2899
  borderBottom: "1px solid rgb(var(--starasia-ui-raw-color-gray-100))"
2876
2900
  },
2877
2901
  children: [
2878
- /* @__PURE__ */ g(Q, { fontSize: "sm", fontWeight: "semibold", color: "gray-700", children: [
2902
+ /* @__PURE__ */ s(Q, { fontSize: "sm", fontWeight: "semibold", color: "gray-700", children: [
2879
2903
  "Filter ",
2880
2904
  i
2881
2905
  ] }),
@@ -2886,7 +2910,7 @@ const gr = (e) => {
2886
2910
  color: "primary",
2887
2911
  fontWeight: "semibold",
2888
2912
  onClick: (h) => {
2889
- h.stopPropagation(), j();
2913
+ h.stopPropagation(), G();
2890
2914
  },
2891
2915
  children: "CLEAR"
2892
2916
  }
@@ -2904,13 +2928,13 @@ const gr = (e) => {
2904
2928
  paddingBottom: "8px"
2905
2929
  },
2906
2930
  children: /* @__PURE__ */ A(
2907
- IA,
2931
+ uA,
2908
2932
  {
2909
2933
  ref: l,
2910
2934
  placeholder: `Search ${i.toLowerCase()}...`,
2911
2935
  leftIcon: /* @__PURE__ */ A(m, { name: "Search", size: "sm" }),
2912
2936
  value: c,
2913
- onChange: (h) => s(h.target.value),
2937
+ onChange: (h) => g(h.target.value),
2914
2938
  style: { fontSize: "14px" }
2915
2939
  }
2916
2940
  )
@@ -2926,7 +2950,7 @@ const gr = (e) => {
2926
2950
  paddingLeft: "8px",
2927
2951
  paddingRight: "8px"
2928
2952
  },
2929
- children: e.isLoadingOptions ? /* @__PURE__ */ g(
2953
+ children: e.isLoadingOptions ? /* @__PURE__ */ s(
2930
2954
  a,
2931
2955
  {
2932
2956
  style: {
@@ -2960,7 +2984,7 @@ const gr = (e) => {
2960
2984
  )
2961
2985
  ]
2962
2986
  }
2963
- ) : 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(
2964
2988
  a,
2965
2989
  {
2966
2990
  style: {
@@ -2977,14 +3001,14 @@ const gr = (e) => {
2977
3001
  transition: "all 0.2s ease",
2978
3002
  backgroundColor: w.includes(h.value) ? "rgb(var(--starasia-ui-raw-color-blue-50))" : "transparent"
2979
3003
  },
2980
- onClick: (Y) => {
2981
- Y.stopPropagation(), u(h.value);
3004
+ onClick: (j) => {
3005
+ j.stopPropagation(), I(h.value);
2982
3006
  },
2983
- onMouseEnter: (Y) => {
2984
- w.includes(h.value) || (Y.currentTarget.style.backgroundColor = "rgb(var(--starasia-ui-raw-color-gray-50))"), Y.currentTarget.style.transform = "translateX(2px)";
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)";
2985
3009
  },
2986
- onMouseLeave: (Y) => {
2987
- Y.currentTarget.style.backgroundColor = w.includes(h.value) ? "rgb(var(--starasia-ui-raw-color-blue-50))" : "transparent", Y.currentTarget.style.transform = "translateX(0)";
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)";
2988
3012
  },
2989
3013
  children: [
2990
3014
  /* @__PURE__ */ A(
@@ -3007,7 +3031,7 @@ const gr = (e) => {
3007
3031
  ]
3008
3032
  },
3009
3033
  h.value
3010
- )) }) : /* @__PURE__ */ g(
3034
+ )) }) : /* @__PURE__ */ s(
3011
3035
  a,
3012
3036
  {
3013
3037
  style: {
@@ -3053,7 +3077,7 @@ const gr = (e) => {
3053
3077
  backgroundColor: "rgb(var(--starasia-ui-raw-color-blue-50))",
3054
3078
  marginTop: "auto"
3055
3079
  },
3056
- 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: [
3057
3081
  /* @__PURE__ */ A(
3058
3082
  a,
3059
3083
  {
@@ -3068,7 +3092,7 @@ const gr = (e) => {
3068
3092
  children: w.length
3069
3093
  }
3070
3094
  ),
3071
- /* @__PURE__ */ g(Q, { fontSize: "xs", color: "primary", fontWeight: "medium", children: [
3095
+ /* @__PURE__ */ s(Q, { fontSize: "xs", color: "primary", fontWeight: "medium", children: [
3072
3096
  "item",
3073
3097
  w.length > 1 ? "s" : "",
3074
3098
  " selected"
@@ -3080,7 +3104,7 @@ const gr = (e) => {
3080
3104
  }
3081
3105
  )
3082
3106
  ] });
3083
- }, Oi = ({ frozen: e }) => /* @__PURE__ */ g(
3107
+ }, Oi = ({ frozen: e }) => /* @__PURE__ */ s(
3084
3108
  "svg",
3085
3109
  {
3086
3110
  width: "11",
@@ -3105,43 +3129,43 @@ const gr = (e) => {
3105
3129
  isLoading: n,
3106
3130
  visibleHandleDelete: l,
3107
3131
  visibleHandleUpdate: c,
3108
- visibleHandleDetail: s,
3132
+ visibleHandleDetail: g,
3109
3133
  showHeadBorder: C = !0,
3110
3134
  scrollParentRef: d,
3111
3135
  frozenCount: w = 0,
3112
3136
  onFrozenCountChange: B,
3113
- customActions: u,
3114
- actionsOrder: j = ["detail", "update", "delete", "custom"],
3137
+ customActions: I,
3138
+ actionsOrder: G = ["detail", "update", "delete", "custom"],
3115
3139
  customEmptyState: h
3116
3140
  }) => {
3117
- const p = [r, o, t].filter((E) => E !== void 0).length, N = !!u, U = p === 3 ? N ? "178px" : "140px" : p === 2 ? N ? "140px" : "102px" : p === 1 ? N ? "112px" : "74px" : N ? "74px" : "", L = (E, f) => {
3118
- if (!f) return E;
3119
- if (typeof f == "function") return f(E);
3120
- if (typeof f == "string") return E[f];
3121
- }, [k, Z] = G(!1);
3122
- 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(() => {
3123
3147
  if (!(d != null && d.current)) return;
3124
3148
  const E = d.current;
3125
- Z(E.scrollHeight > E.clientHeight);
3149
+ P(E.scrollHeight > E.clientHeight);
3126
3150
  }, [i, d]);
3127
- const H = AA(null), [P, X] = G([]);
3151
+ const Z = eA(null), [V, AA] = b([]);
3128
3152
  zA(() => {
3129
- if (!w || !H.current) {
3130
- X([]);
3153
+ if (!w || !Z.current) {
3154
+ AA([]);
3131
3155
  return;
3132
3156
  }
3133
3157
  const E = Array.from(
3134
- H.current.querySelectorAll("thead tr th")
3135
- ), f = [];
3158
+ Z.current.querySelectorAll("thead tr th")
3159
+ ), S = [];
3136
3160
  let M = 0;
3137
3161
  E.forEach((D, F) => {
3138
- f[F] = M, F < w && (M += D.offsetWidth);
3139
- }), X(f);
3162
+ S[F] = M, F < w && (M += D.offsetWidth);
3163
+ }), AA(S);
3140
3164
  }, [w, e, i]);
3141
- const q = (E) => {
3165
+ const T = (E) => {
3142
3166
  B && B(E < w ? E : E + 1);
3143
3167
  };
3144
- 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: [
3145
3169
  /* @__PURE__ */ A(
3146
3170
  he,
3147
3171
  {
@@ -3149,10 +3173,10 @@ const gr = (e) => {
3149
3173
  height: "40px",
3150
3174
  whiteSpace: "nowrap"
3151
3175
  },
3152
- children: /* @__PURE__ */ g(dA, { children: [
3153
- e.map((E, f) => {
3176
+ children: /* @__PURE__ */ s(QA, { children: [
3177
+ e.map((E, S) => {
3154
3178
  var F;
3155
- const M = w > 0 && f < w, D = P[f] ?? 0;
3179
+ const M = w > 0 && S < w, D = V[S] ?? 0;
3156
3180
  return /* @__PURE__ */ A(
3157
3181
  TA,
3158
3182
  {
@@ -3161,14 +3185,14 @@ const gr = (e) => {
3161
3185
  top: 0,
3162
3186
  left: M ? D : void 0,
3163
3187
  zIndex: M ? 4 : 2,
3164
- paddingLeft: f === 0 ? "12px" : "",
3188
+ paddingLeft: S === 0 ? "12px" : "",
3165
3189
  borderRight: C ? "1px solid var(--starasia-ui-utility-fill-default)" : void 0,
3166
3190
  borderBottom: C ? "1px solid var(--starasia-ui-utility-fill-default)" : void 0,
3167
3191
  width: E.width,
3168
3192
  backgroundColor: "var(--starasia-ui-table-bg-header)",
3169
3193
  textAlign: E.textAlign === "text-right" ? "right" : E.textAlign === "text-center" ? "center" : "left"
3170
3194
  },
3171
- children: /* @__PURE__ */ g(
3195
+ children: /* @__PURE__ */ s(
3172
3196
  "div",
3173
3197
  {
3174
3198
  style: {
@@ -3190,7 +3214,7 @@ const gr = (e) => {
3190
3214
  B && /* @__PURE__ */ A(
3191
3215
  "button",
3192
3216
  {
3193
- onClick: () => q(f),
3217
+ onClick: () => T(S),
3194
3218
  title: M ? "Unfreeze column" : "Freeze column",
3195
3219
  style: {
3196
3220
  background: "none",
@@ -3211,10 +3235,10 @@ const gr = (e) => {
3211
3235
  }
3212
3236
  )
3213
3237
  },
3214
- `table-head-${f}`
3238
+ `table-head-${S}`
3215
3239
  );
3216
3240
  }),
3217
- r || o || t || u ? /* @__PURE__ */ A(
3241
+ r || o || t || I ? /* @__PURE__ */ A(
3218
3242
  TA,
3219
3243
  {
3220
3244
  style: {
@@ -3230,19 +3254,19 @@ const gr = (e) => {
3230
3254
  ] })
3231
3255
  }
3232
3256
  ),
3233
- /* @__PURE__ */ A(De, { children: n ? /* @__PURE__ */ A(dA, { children: /* @__PURE__ */ A(sA, { colSpan: e.length + 1, children: /* @__PURE__ */ g(a, { style: { gap: "16px" }, children: [
3234
- /* @__PURE__ */ A(lA, { variant: "list" }),
3235
- /* @__PURE__ */ A(lA, { variant: "list" }),
3236
- /* @__PURE__ */ A(lA, { variant: "list" }),
3237
- /* @__PURE__ */ A(lA, { variant: "list" }),
3238
- /* @__PURE__ */ A(lA, { variant: "list" })
3239
- ] }) }) }) : !(i != null && i.length) && h ? /* @__PURE__ */ A(dA, { children: /* @__PURE__ */ A(sA, { colSpan: e.length + 1, children: h }) }) : i == null ? void 0 : i.map((E, f) => /* @__PURE__ */ g(
3240
- dA,
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,
3241
3265
  {
3242
3266
  style: {
3243
3267
  transition: "background-color 0.3s ease",
3244
3268
  padding: 0,
3245
- 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)"
3246
3270
  },
3247
3271
  onMouseOver: (M) => {
3248
3272
  const D = M.currentTarget;
@@ -3262,13 +3286,13 @@ const gr = (e) => {
3262
3286
  },
3263
3287
  children: [
3264
3288
  e.map((M, D) => {
3265
- const F = M.render ? M.render(E, f, i) : L(E, M.accessor), x = w > 0 && D < w, T = P[D] ?? 0;
3289
+ const F = M.render ? M.render(E, S, i) : f(E, M.accessor), x = w > 0 && D < w, H = V[D] ?? 0;
3266
3290
  return /* @__PURE__ */ A(
3267
- sA,
3291
+ BA,
3268
3292
  {
3269
3293
  style: {
3270
3294
  position: x ? "sticky" : void 0,
3271
- left: x ? T : void 0,
3295
+ left: x ? H : void 0,
3272
3296
  zIndex: x ? 1 : void 0,
3273
3297
  backgroundColor: x ? mA : void 0,
3274
3298
  paddingLeft: D === 0 ? "12px" : "",
@@ -3290,46 +3314,46 @@ const gr = (e) => {
3290
3314
  }
3291
3315
  ) : F
3292
3316
  },
3293
- `row-${f}-col-${D}`
3317
+ `row-${S}-col-${D}`
3294
3318
  );
3295
3319
  }),
3296
- r || o || t || u ? /* @__PURE__ */ A(sA, { style: {
3297
- width: U,
3320
+ r || o || t || I ? /* @__PURE__ */ A(BA, { style: {
3321
+ width: R,
3298
3322
  position: "sticky",
3299
3323
  right: 0,
3300
3324
  zIndex: 1,
3301
3325
  backgroundColor: mA
3302
- }, children: /* @__PURE__ */ A(J, { direction: "row", align: "center", justify: "center", gap: "sm", children: j.map((M) => {
3303
- const D = f === i.length - 1 ? "top" : "bottom";
3304
- return M === "detail" && r && (s == null ? void 0 : s(E)) !== !1 ? /* @__PURE__ */ A(iA, { label: "Detail", position: D, children: /* @__PURE__ */ A(
3305
- b,
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,
3306
3330
  {
3307
3331
  size: "xs",
3308
3332
  secondary: !0,
3309
3333
  onClick: () => r(E.id, E),
3310
3334
  iconLeft: /* @__PURE__ */ A(m, { name: "DocumentClean", size: "sm", style: { color: "rgb(var(--starasia-ui-raw-color-gray-600))" } })
3311
3335
  }
3312
- ) }, "detail") : M === "update" && o && (c == null ? void 0 : c(E)) !== !1 ? /* @__PURE__ */ A(iA, { label: "Update", position: D, children: /* @__PURE__ */ A(
3313
- 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,
3314
3338
  {
3315
3339
  size: "xs",
3316
3340
  secondary: !0,
3317
3341
  onClick: () => o(E),
3318
3342
  iconLeft: /* @__PURE__ */ A(m, { name: "Edit1", size: "sm", style: { color: "rgb(var(--starasia-ui-raw-color-gray-600))" } })
3319
3343
  }
3320
- ) }, "update") : M === "delete" && t && (l == null ? void 0 : l(E)) !== !1 ? /* @__PURE__ */ A(iA, { label: "Delete", position: D, children: /* @__PURE__ */ A(
3321
- 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,
3322
3346
  {
3323
3347
  size: "xs",
3324
3348
  secondary: !0,
3325
3349
  onClick: () => t(E.id, E),
3326
3350
  iconLeft: /* @__PURE__ */ A(m, { name: "Trash1", size: "sm", style: { color: "rgb(var(--starasia-ui-raw-color-red-600))" } })
3327
3351
  }
3328
- ) }, "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;
3329
3353
  }) }) }) : null
3330
3354
  ]
3331
3355
  },
3332
- `${E}${f}`
3356
+ `${E}${S}`
3333
3357
  )) })
3334
3358
  ] }) });
3335
3359
  }, pi = ({
@@ -3339,12 +3363,12 @@ const gr = (e) => {
3339
3363
  footerProps: o
3340
3364
  }) => {
3341
3365
  var w;
3342
- const t = AA(null), [n, l] = G(
3366
+ const t = eA(null), [n, l] = b(
3343
3367
  (i == null ? void 0 : i.defaultFrozenCount) ?? 0
3344
- ), c = (r == null ? void 0 : r.show) ?? !0, s = AA(null), C = (w = i == null ? void 0 : i.pagination) == null ? void 0 : w.totalData;
3345
- typeof C == "number" && (s.current = C);
3346
- const d = (o == null ? void 0 : o.showFooter) ?? (C === void 0 ? s.current !== 0 : C !== 0);
3347
- 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: [
3348
3372
  c && /* @__PURE__ */ A(Si, { ...r }),
3349
3373
  /* @__PURE__ */ A(
3350
3374
  a,
@@ -3384,10 +3408,10 @@ function ji(e) {
3384
3408
  e
3385
3409
  );
3386
3410
  }
3387
- const Dr = ji(pi), kA = ({
3411
+ const Dr = ji(pi), EA = ({
3388
3412
  of: e,
3389
3413
  render: i
3390
- }) => 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 = ({
3391
3415
  condition: e,
3392
3416
  fallback: i,
3393
3417
  children: r,
@@ -3403,7 +3427,7 @@ const Dr = ji(pi), kA = ({
3403
3427
  setSelectedApp: l
3404
3428
  }) => {
3405
3429
  var c;
3406
- return /* @__PURE__ */ g(
3430
+ return /* @__PURE__ */ s(
3407
3431
  a,
3408
3432
  {
3409
3433
  borderWidth: "border-b",
@@ -3414,13 +3438,13 @@ const Dr = ji(pi), kA = ({
3414
3438
  justify: "space-between",
3415
3439
  cursor: "pointer",
3416
3440
  onClick: () => {
3417
- var s;
3441
+ var g;
3418
3442
  if (e.isTenant && r && !n) {
3419
3443
  r(e);
3420
3444
  return;
3421
3445
  }
3422
3446
  if (i && n) {
3423
- i(e.applicationKey, (s = e.id) == null ? void 0 : s.toString());
3447
+ i(e.applicationKey, (g = e.id) == null ? void 0 : g.toString());
3424
3448
  return;
3425
3449
  }
3426
3450
  if (i) {
@@ -3432,21 +3456,21 @@ const Dr = ji(pi), kA = ({
3432
3456
  borderColor: "var(--starasia-ui-utility-fill-default)",
3433
3457
  transition: "border-color 0.3s ease"
3434
3458
  },
3435
- onMouseEnter: (s) => s.currentTarget.style.setProperty("border-color", "#5C9EDD"),
3436
- onMouseLeave: (s) => s.currentTarget.style.setProperty(
3459
+ onMouseEnter: (g) => g.currentTarget.style.setProperty("border-color", "#5C9EDD"),
3460
+ onMouseLeave: (g) => g.currentTarget.style.setProperty(
3437
3461
  "border-color",
3438
3462
  "var(--starasia-ui-utility-fill-default)"
3439
3463
  ),
3440
3464
  children: [
3441
3465
  /* @__PURE__ */ A(
3442
- O,
3466
+ Y,
3443
3467
  {
3444
3468
  condition: !!e.role && !e.isTenant || t,
3445
- fallback: /* @__PURE__ */ A(K.Body1, { children: e.name }),
3446
- children: /* @__PURE__ */ g(a, { direction: "column", gap: "sm", children: [
3447
- /* @__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 }),
3448
3472
  /* @__PURE__ */ A(
3449
- K.Body3,
3473
+ J.Body3,
3450
3474
  {
3451
3475
  props: {
3452
3476
  color: "tertiary"
@@ -3457,7 +3481,7 @@ const Dr = ji(pi), kA = ({
3457
3481
  ] })
3458
3482
  }
3459
3483
  ),
3460
- /* @__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" }) }) })
3461
3485
  ]
3462
3486
  }
3463
3487
  );
@@ -3470,11 +3494,11 @@ const Dr = ji(pi), kA = ({
3470
3494
  showIcon: n,
3471
3495
  showRole: l,
3472
3496
  isOnOrgSelect: c,
3473
- setSelectedApp: s
3474
- }) => t && e && e.length > 0 && /* @__PURE__ */ g(a, { marginTop: "lg", children: [
3475
- 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 }),
3476
3500
  /* @__PURE__ */ A(
3477
- kA,
3501
+ EA,
3478
3502
  {
3479
3503
  of: e,
3480
3504
  render: (C) => /* @__PURE__ */ A(
@@ -3486,7 +3510,7 @@ const Dr = ji(pi), kA = ({
3486
3510
  handleToSelectOrg: o,
3487
3511
  showRole: l,
3488
3512
  isOnOrgSelect: c,
3489
- setSelectedApp: s
3513
+ setSelectedApp: g
3490
3514
  }
3491
3515
  )
3492
3516
  }
@@ -3500,13 +3524,13 @@ const Dr = ji(pi), kA = ({
3500
3524
  totalData: n,
3501
3525
  handleToSelectOrg: l,
3502
3526
  isLoadingOrgList: c,
3503
- setSelectedApp: s
3527
+ setSelectedApp: g
3504
3528
  }) => {
3505
3529
  var d;
3506
3530
  const C = _A();
3507
- return /* @__PURE__ */ g(LA, { onHide: e, show: i, closeButton: !1, children: [
3508
- /* @__PURE__ */ g(
3509
- aA,
3531
+ return /* @__PURE__ */ s(LA, { onHide: e, show: i, closeButton: !1, children: [
3532
+ /* @__PURE__ */ s(
3533
+ wA,
3510
3534
  {
3511
3535
  paddingBlock: "lg",
3512
3536
  onClick: C.show ? C.close : e,
@@ -3515,7 +3539,7 @@ const Dr = ji(pi), kA = ({
3515
3539
  children: [
3516
3540
  C.show ? /* @__PURE__ */ A(m, { name: "ChevronLeft" }) : /* @__PURE__ */ A(m, { name: "Cross" }),
3517
3541
  /* @__PURE__ */ A(
3518
- K.SubH3,
3542
+ J.SubH3,
3519
3543
  {
3520
3544
  props: {
3521
3545
  color: "gray-500"
@@ -3526,10 +3550,10 @@ const Dr = ji(pi), kA = ({
3526
3550
  ]
3527
3551
  }
3528
3552
  ),
3529
- C.show ? /* @__PURE__ */ g(W, { children: [
3530
- /* @__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 }),
3531
3555
  /* @__PURE__ */ A(
3532
- K.SubH3,
3556
+ J.SubH3,
3533
3557
  {
3534
3558
  props: {
3535
3559
  color: "gray-500"
@@ -3538,14 +3562,14 @@ const Dr = ji(pi), kA = ({
3538
3562
  }
3539
3563
  ),
3540
3564
  /* @__PURE__ */ A(
3541
- O,
3565
+ Y,
3542
3566
  {
3543
3567
  condition: !!(o != null && o.length),
3544
3568
  isLoading: c,
3545
- loading: /* @__PURE__ */ g(a, { marginTop: "sm", gap: "md", children: [
3546
- /* @__PURE__ */ A(lA, { variant: "list" }),
3547
- /* @__PURE__ */ A(lA, { variant: "list" }),
3548
- /* @__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" })
3549
3573
  ] }),
3550
3574
  children: /* @__PURE__ */ A(
3551
3575
  jA,
@@ -3563,16 +3587,16 @@ const Dr = ji(pi), kA = ({
3563
3587
  showIcon: !1,
3564
3588
  showRole: !0,
3565
3589
  isOnOrgSelect: C.show,
3566
- setSelectedApp: s
3590
+ setSelectedApp: g
3567
3591
  }
3568
3592
  )
3569
3593
  }
3570
3594
  )
3571
- ] }) : /* @__PURE__ */ g(W, { children: [
3572
- /* @__PURE__ */ g(J, { direction: "row", align: "center", gap: "sm", children: [
3573
- /* @__PURE__ */ A(K.H4, { children: "Switch Apps" }),
3574
- /* @__PURE__ */ g(
3575
- 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,
3576
3600
  {
3577
3601
  props: {
3578
3602
  color: "gray-500"
@@ -3592,9 +3616,9 @@ const Dr = ji(pi), kA = ({
3592
3616
  dataApps: r == null ? void 0 : r.filter((w) => w.isTenant),
3593
3617
  handleSwitch: t,
3594
3618
  handleToSelectOrg: (w) => {
3595
- C.open(w), s(w.name), l && l(w);
3619
+ C.open(w), g(w.name), l && l(w);
3596
3620
  },
3597
- setSelectedApp: s
3621
+ setSelectedApp: g
3598
3622
  }
3599
3623
  ),
3600
3624
  /* @__PURE__ */ A(
@@ -3604,7 +3628,7 @@ const Dr = ji(pi), kA = ({
3604
3628
  show: r == null ? void 0 : r.some((w) => !w.isTenant),
3605
3629
  dataApps: r == null ? void 0 : r.filter((w) => !w.isTenant),
3606
3630
  handleSwitch: t,
3607
- setSelectedApp: s
3631
+ setSelectedApp: g
3608
3632
  }
3609
3633
  )
3610
3634
  ] })
@@ -3618,11 +3642,11 @@ const Dr = ji(pi), kA = ({
3618
3642
  showIcon: n,
3619
3643
  showRole: l,
3620
3644
  isOnOrgSelect: c,
3621
- setSelectedApp: s
3622
- }) => t && e && (e == null ? void 0 : e.length) > 0 && /* @__PURE__ */ g(a, { marginTop: "lg", children: [
3623
- 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 }),
3624
3648
  /* @__PURE__ */ A(
3625
- kA,
3649
+ EA,
3626
3650
  {
3627
3651
  of: e,
3628
3652
  render: (C) => /* @__PURE__ */ A(
@@ -3634,7 +3658,7 @@ const Dr = ji(pi), kA = ({
3634
3658
  handleToSelectOrg: o,
3635
3659
  showRole: l,
3636
3660
  isOnOrgSelect: c,
3637
- setSelectedApp: s
3661
+ setSelectedApp: g
3638
3662
  }
3639
3663
  )
3640
3664
  }
@@ -3647,11 +3671,11 @@ const Dr = ji(pi), kA = ({
3647
3671
  totalData: t,
3648
3672
  setSelectedApp: n
3649
3673
  }) => {
3650
- var c, s, C, d, w;
3674
+ var c, g, C, d, w;
3651
3675
  const l = _A();
3652
- return /* @__PURE__ */ g(LA, { onHide: e, show: i, closeButton: !1, children: [
3653
- /* @__PURE__ */ g(
3654
- aA,
3676
+ return /* @__PURE__ */ s(LA, { onHide: e, show: i, closeButton: !1, children: [
3677
+ /* @__PURE__ */ s(
3678
+ wA,
3655
3679
  {
3656
3680
  paddingBlock: "lg",
3657
3681
  onClick: l.show ? l.close : e,
@@ -3660,7 +3684,7 @@ const Dr = ji(pi), kA = ({
3660
3684
  children: [
3661
3685
  l.show ? /* @__PURE__ */ A(m, { name: "ChevronLeft" }) : /* @__PURE__ */ A(m, { name: "Cross" }),
3662
3686
  /* @__PURE__ */ A(
3663
- K.SubH3,
3687
+ J.SubH3,
3664
3688
  {
3665
3689
  props: {
3666
3690
  color: "gray-500"
@@ -3671,10 +3695,10 @@ const Dr = ji(pi), kA = ({
3671
3695
  ]
3672
3696
  }
3673
3697
  ),
3674
- l.show ? /* @__PURE__ */ g(W, { children: [
3675
- /* @__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 }),
3676
3700
  /* @__PURE__ */ A(
3677
- K.SubH3,
3701
+ J.SubH3,
3678
3702
  {
3679
3703
  props: {
3680
3704
  color: "tertiary"
@@ -3683,19 +3707,19 @@ const Dr = ji(pi), kA = ({
3683
3707
  }
3684
3708
  ),
3685
3709
  /* @__PURE__ */ A(
3686
- O,
3710
+ Y,
3687
3711
  {
3688
- 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),
3689
3713
  children: /* @__PURE__ */ A(
3690
3714
  NA,
3691
3715
  {
3692
3716
  dataApps: (w = (d = l.data) == null ? void 0 : d.organizations) == null ? void 0 : w.map((B) => {
3693
- var u;
3717
+ var I;
3694
3718
  return {
3695
3719
  ...B,
3696
3720
  id: B.id,
3697
3721
  isTenant: !0,
3698
- applicationKey: ((u = l.data) == null ? void 0 : u.applicationKey) || ""
3722
+ applicationKey: ((I = l.data) == null ? void 0 : I.applicationKey) || ""
3699
3723
  };
3700
3724
  }),
3701
3725
  handleSwitch: o,
@@ -3707,11 +3731,11 @@ const Dr = ji(pi), kA = ({
3707
3731
  )
3708
3732
  }
3709
3733
  )
3710
- ] }) : /* @__PURE__ */ g(W, { children: [
3711
- /* @__PURE__ */ g(J, { direction: "row", align: "center", gap: "sm", children: [
3712
- /* @__PURE__ */ A(K.H4, { children: "Switch Apps" }),
3713
- /* @__PURE__ */ g(
3714
- 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,
3715
3739
  {
3716
3740
  props: {
3717
3741
  color: "gray-500"
@@ -3758,9 +3782,9 @@ const Dr = ji(pi), kA = ({
3758
3782
  variant: l = "single-api",
3759
3783
  isLoading: c
3760
3784
  }) => {
3761
- const [s, C] = G(!1), [d, w] = G("");
3762
- return /* @__PURE__ */ g(W, { children: [
3763
- /* @__PURE__ */ g(
3785
+ const [g, C] = b(!1), [d, w] = b("");
3786
+ return /* @__PURE__ */ s(W, { children: [
3787
+ /* @__PURE__ */ s(
3764
3788
  a,
3765
3789
  {
3766
3790
  cursor: "pointer",
@@ -3808,13 +3832,13 @@ const Dr = ji(pi), kA = ({
3808
3832
  }
3809
3833
  ),
3810
3834
  /* @__PURE__ */ A(
3811
- O,
3835
+ Y,
3812
3836
  {
3813
3837
  condition: l === "single-api",
3814
3838
  fallback: /* @__PURE__ */ A(
3815
3839
  Ni,
3816
3840
  {
3817
- show: s,
3841
+ show: g,
3818
3842
  onHide: () => C((B) => !B),
3819
3843
  dataApps: i,
3820
3844
  totalData: e,
@@ -3828,7 +3852,7 @@ const Dr = ji(pi), kA = ({
3828
3852
  children: /* @__PURE__ */ A(
3829
3853
  Fi,
3830
3854
  {
3831
- show: s,
3855
+ show: g,
3832
3856
  onHide: () => C((B) => !B),
3833
3857
  dataApps: i,
3834
3858
  totalData: e,
@@ -3853,7 +3877,7 @@ const Dr = ji(pi), kA = ({
3853
3877
  justifyContent: "center",
3854
3878
  alignItems: "center"
3855
3879
  },
3856
- children: /* @__PURE__ */ g(
3880
+ children: /* @__PURE__ */ s(
3857
3881
  a,
3858
3882
  {
3859
3883
  style: {
@@ -3863,7 +3887,7 @@ const Dr = ji(pi), kA = ({
3863
3887
  align: "center",
3864
3888
  children: [
3865
3889
  /* @__PURE__ */ A("img", { style: { width: "180px" }, src: zi }),
3866
- /* @__PURE__ */ g(
3890
+ /* @__PURE__ */ s(
3867
3891
  Q,
3868
3892
  {
3869
3893
  fontWeight: "black",
@@ -3888,7 +3912,7 @@ const Dr = ji(pi), kA = ({
3888
3912
  }
3889
3913
  )
3890
3914
  ] });
3891
- }, z = (e) => /* @__PURE__ */ A(
3915
+ }, K = (e) => /* @__PURE__ */ A(
3892
3916
  Q,
3893
3917
  {
3894
3918
  ...e,
@@ -3905,9 +3929,9 @@ const Dr = ji(pi), kA = ({
3905
3929
  fullWidth: o = !1,
3906
3930
  ...t
3907
3931
  }) => {
3908
- var c, s, C;
3932
+ var c, g, C;
3909
3933
  const n = t.hideMessageError || !1, l = i === "horizontal" ? e === "sm" ? 342 : e === "lg" ? 400 : 342 : void 0;
3910
- return /* @__PURE__ */ g(
3934
+ return /* @__PURE__ */ s(
3911
3935
  a,
3912
3936
  {
3913
3937
  gap: i === "horizontal" ? "spacing-96" : "sm",
@@ -3915,35 +3939,35 @@ const Dr = ji(pi), kA = ({
3915
3939
  ...t.containerProps,
3916
3940
  children: [
3917
3941
  t.title && /* @__PURE__ */ A(
3918
- O,
3942
+ Y,
3919
3943
  {
3920
3944
  condition: !!t.inputProps.required,
3921
- fallback: /* @__PURE__ */ g(
3945
+ fallback: /* @__PURE__ */ s(
3922
3946
  a,
3923
3947
  {
3924
3948
  direction: "column",
3925
3949
  customMaxWidth: l,
3926
3950
  fullWidth: o,
3927
3951
  children: [
3928
- /* @__PURE__ */ A(z, { children: t.title }),
3952
+ /* @__PURE__ */ A(K, { children: t.title }),
3929
3953
  /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description })
3930
3954
  ]
3931
3955
  }
3932
3956
  ),
3933
- children: /* @__PURE__ */ g(
3957
+ children: /* @__PURE__ */ s(
3934
3958
  a,
3935
3959
  {
3936
3960
  direction: "column",
3937
3961
  customMaxWidth: l,
3938
3962
  fullWidth: o,
3939
3963
  children: [
3940
- /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
3941
- /* @__PURE__ */ A(z, { fontSize: e, children: t.title }),
3942
- /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
3943
- /* @__PURE__ */ A(O, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
3944
- 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,
3945
3969
  {
3946
- label: (s = t.tooltip) == null ? void 0 : s.label,
3970
+ label: (g = t.tooltip) == null ? void 0 : g.label,
3947
3971
  arrowPosition: (C = t.tooltip) == null ? void 0 : C.arrowPosition,
3948
3972
  ...t.tooltip,
3949
3973
  children: /* @__PURE__ */ A(
@@ -3960,15 +3984,15 @@ const Dr = ji(pi), kA = ({
3960
3984
  }
3961
3985
  ) })
3962
3986
  ] }),
3963
- /* @__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 }) })
3964
3988
  ]
3965
3989
  }
3966
3990
  )
3967
3991
  }
3968
3992
  ),
3969
- /* @__PURE__ */ g(a, { gap: "xs", fullWidth: t.inputProps.fullWidth || !1, children: [
3993
+ /* @__PURE__ */ s(a, { gap: "xs", fullWidth: t.inputProps.fullWidth || !1, children: [
3970
3994
  /* @__PURE__ */ A(
3971
- IA,
3995
+ uA,
3972
3996
  {
3973
3997
  ref: t.inputRef,
3974
3998
  size: e,
@@ -3990,9 +4014,9 @@ const Dr = ji(pi), kA = ({
3990
4014
  fullWidth: o = !1,
3991
4015
  ...t
3992
4016
  }) => {
3993
- var c, s, C;
4017
+ var c, g, C;
3994
4018
  const n = t.hideMessageError || !1, l = i === "horizontal" ? e === "sm" ? 342 : e === "lg" ? 400 : 342 : void 0;
3995
- return /* @__PURE__ */ g(
4019
+ return /* @__PURE__ */ s(
3996
4020
  a,
3997
4021
  {
3998
4022
  gap: i === "horizontal" ? "spacing-96" : "sm",
@@ -4000,35 +4024,35 @@ const Dr = ji(pi), kA = ({
4000
4024
  onClick: t.onClickContainer,
4001
4025
  children: [
4002
4026
  t.title && /* @__PURE__ */ A(
4003
- O,
4027
+ Y,
4004
4028
  {
4005
4029
  condition: !!t.inputProps.required,
4006
- fallback: /* @__PURE__ */ g(
4030
+ fallback: /* @__PURE__ */ s(
4007
4031
  a,
4008
4032
  {
4009
4033
  direction: "column",
4010
4034
  customMaxWidth: l,
4011
4035
  fullWidth: o,
4012
4036
  children: [
4013
- /* @__PURE__ */ A(z, { children: t.title }),
4037
+ /* @__PURE__ */ A(K, { children: t.title }),
4014
4038
  /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description })
4015
4039
  ]
4016
4040
  }
4017
4041
  ),
4018
- children: /* @__PURE__ */ g(
4042
+ children: /* @__PURE__ */ s(
4019
4043
  a,
4020
4044
  {
4021
4045
  direction: "column",
4022
4046
  customMaxWidth: l,
4023
4047
  fullWidth: o,
4024
4048
  children: [
4025
- /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4026
- /* @__PURE__ */ A(z, { fontSize: e, children: t.title }),
4027
- /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
4028
- /* @__PURE__ */ A(O, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4029
- 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,
4030
4054
  {
4031
- label: (s = t.tooltip) == null ? void 0 : s.label,
4055
+ label: (g = t.tooltip) == null ? void 0 : g.label,
4032
4056
  arrowPosition: (C = t.tooltip) == null ? void 0 : C.arrowPosition,
4033
4057
  ...t.tooltip,
4034
4058
  children: /* @__PURE__ */ A(
@@ -4045,13 +4069,13 @@ const Dr = ji(pi), kA = ({
4045
4069
  }
4046
4070
  ) })
4047
4071
  ] }),
4048
- /* @__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 }) })
4049
4073
  ]
4050
4074
  }
4051
4075
  )
4052
4076
  }
4053
4077
  ),
4054
- /* @__PURE__ */ g(a, { gap: "xs", fullWidth: t.inputProps.fullWidth || !1, children: [
4078
+ /* @__PURE__ */ s(a, { gap: "xs", fullWidth: t.inputProps.fullWidth || !1, children: [
4055
4079
  /* @__PURE__ */ A(
4056
4080
  a,
4057
4081
  {
@@ -4076,16 +4100,16 @@ const Dr = ji(pi), kA = ({
4076
4100
  );
4077
4101
  }, Hi = (e, i) => typeof e == "string" && e || i === "error" ? "var(--starasia-ui-color-error)" : "var(--starasia-ui-text-disable)", Ji = (e) => {
4078
4102
  var c;
4079
- const [i, r] = G(!1), o = (s) => {
4080
- s.preventDefault(), s.stopPropagation();
4081
- }, t = (s) => {
4082
- s.preventDefault(), s.stopPropagation(), s.dataTransfer && e.handleOnFileChange(s.dataTransfer.files.item(0));
4083
- }, n = (s) => {
4084
- s.preventDefault(), r(!0);
4085
- }, l = (s) => {
4086
- 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);
4087
4111
  };
4088
- return /* @__PURE__ */ g(
4112
+ return /* @__PURE__ */ s(
4089
4113
  a,
4090
4114
  {
4091
4115
  width: "width-full",
@@ -4115,8 +4139,8 @@ const Dr = ji(pi), kA = ({
4115
4139
  }
4116
4140
  }
4117
4141
  ),
4118
- /* @__PURE__ */ g(J, { gap: "xs", children: [
4119
- /* @__PURE__ */ g(J, { direction: "row", gap: "xs", children: [
4142
+ /* @__PURE__ */ s(q, { gap: "xs", children: [
4143
+ /* @__PURE__ */ s(q, { direction: "row", gap: "xs", children: [
4120
4144
  /* @__PURE__ */ A(
4121
4145
  Q,
4122
4146
  {
@@ -4137,7 +4161,7 @@ const Dr = ji(pi), kA = ({
4137
4161
  }
4138
4162
  )
4139
4163
  ] }),
4140
- /* @__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(", ") })
4141
4165
  ] })
4142
4166
  ]
4143
4167
  }
@@ -4158,7 +4182,7 @@ function Ti(e) {
4158
4182
  }
4159
4183
  const Ui = (e) => {
4160
4184
  var i, r;
4161
- return /* @__PURE__ */ g(
4185
+ return /* @__PURE__ */ s(
4162
4186
  a,
4163
4187
  {
4164
4188
  width: "width-full",
@@ -4177,7 +4201,7 @@ const Ui = (e) => {
4177
4201
  cursor: "pointer"
4178
4202
  },
4179
4203
  children: [
4180
- /* @__PURE__ */ g(J, { direction: "row", align: "center", gap: "sm", children: [
4204
+ /* @__PURE__ */ s(q, { direction: "row", align: "center", gap: "sm", children: [
4181
4205
  /* @__PURE__ */ A(
4182
4206
  m,
4183
4207
  {
@@ -4190,7 +4214,7 @@ const Ui = (e) => {
4190
4214
  }
4191
4215
  }
4192
4216
  ),
4193
- /* @__PURE__ */ g(J, { children: [
4217
+ /* @__PURE__ */ s(q, { children: [
4194
4218
  /* @__PURE__ */ A(
4195
4219
  Q,
4196
4220
  {
@@ -4204,7 +4228,7 @@ const Ui = (e) => {
4204
4228
  children: Ti(e.defaultUrl || "") || ((i = e.fileSelected) == null ? void 0 : i.name)
4205
4229
  }
4206
4230
  ),
4207
- !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: [
4208
4232
  /* @__PURE__ */ A(Q, { fontSize: "sm", fontWeight: "medium", children: `${qi(
4209
4233
  ((r = e.fileSelected) == null ? void 0 : r.size.toString()) || "100000"
4210
4234
  )}` }),
@@ -4224,7 +4248,7 @@ const Ui = (e) => {
4224
4248
  ] })
4225
4249
  ] }),
4226
4250
  /* @__PURE__ */ A(
4227
- b,
4251
+ O,
4228
4252
  {
4229
4253
  size: "xs",
4230
4254
  secondary: !0,
@@ -4248,14 +4272,14 @@ const Ui = (e) => {
4248
4272
  );
4249
4273
  }, Wi = ({ status: e = "default", ...i }) => {
4250
4274
  var n;
4251
- const r = AA(null), o = () => {
4275
+ const r = eA(null), o = () => {
4252
4276
  if (i.defaultUrl) {
4253
4277
  window.open(i.defaultUrl);
4254
4278
  return;
4255
4279
  }
4256
4280
  r.current && r.current.click();
4257
- }, t = V("md");
4258
- return /* @__PURE__ */ g(W, { children: [
4281
+ }, t = X("md");
4282
+ return /* @__PURE__ */ s(W, { children: [
4259
4283
  /* @__PURE__ */ A(
4260
4284
  "input",
4261
4285
  {
@@ -4269,7 +4293,7 @@ const Ui = (e) => {
4269
4293
  accept: (n = i.fileSupportOption) == null ? void 0 : n.map((l) => "." + (l == null ? void 0 : l.toLowerCase())).join(", ")
4270
4294
  }
4271
4295
  ),
4272
- /* @__PURE__ */ g(
4296
+ /* @__PURE__ */ s(
4273
4297
  a,
4274
4298
  {
4275
4299
  fullWidth: !0,
@@ -4315,9 +4339,9 @@ const Ui = (e) => {
4315
4339
  fullWidth: o = !1,
4316
4340
  ...t
4317
4341
  }) => {
4318
- var c, s, C;
4342
+ var c, g, C;
4319
4343
  const n = t.hideMessageError || !1, l = i === "horizontal" ? e === "sm" ? 342 : e === "lg" ? 400 : 342 : void 0;
4320
- return /* @__PURE__ */ g(
4344
+ return /* @__PURE__ */ s(
4321
4345
  a,
4322
4346
  {
4323
4347
  gap: i === "horizontal" ? "spacing-96" : "sm",
@@ -4325,35 +4349,35 @@ const Ui = (e) => {
4325
4349
  ...t.containerProps,
4326
4350
  children: [
4327
4351
  t.title && /* @__PURE__ */ A(
4328
- O,
4352
+ Y,
4329
4353
  {
4330
4354
  condition: !!t.inputProps.required,
4331
- fallback: /* @__PURE__ */ g(
4355
+ fallback: /* @__PURE__ */ s(
4332
4356
  a,
4333
4357
  {
4334
4358
  direction: "column",
4335
4359
  customMaxWidth: l,
4336
4360
  fullWidth: o,
4337
4361
  children: [
4338
- /* @__PURE__ */ A(z, { children: t.title }),
4362
+ /* @__PURE__ */ A(K, { children: t.title }),
4339
4363
  /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description })
4340
4364
  ]
4341
4365
  }
4342
4366
  ),
4343
- children: /* @__PURE__ */ g(
4367
+ children: /* @__PURE__ */ s(
4344
4368
  a,
4345
4369
  {
4346
4370
  direction: "column",
4347
4371
  customMaxWidth: l,
4348
4372
  fullWidth: o,
4349
4373
  children: [
4350
- /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4351
- /* @__PURE__ */ A(z, { fontSize: e, children: t.title }),
4352
- /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
4353
- /* @__PURE__ */ A(O, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4354
- 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,
4355
4379
  {
4356
- label: (s = t.tooltip) == null ? void 0 : s.label,
4380
+ label: (g = t.tooltip) == null ? void 0 : g.label,
4357
4381
  arrowPosition: (C = t.tooltip) == null ? void 0 : C.arrowPosition,
4358
4382
  ...t.tooltip,
4359
4383
  children: /* @__PURE__ */ A(
@@ -4370,13 +4394,13 @@ const Ui = (e) => {
4370
4394
  }
4371
4395
  ) })
4372
4396
  ] }),
4373
- /* @__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 }) })
4374
4398
  ]
4375
4399
  }
4376
4400
  )
4377
4401
  }
4378
4402
  ),
4379
- /* @__PURE__ */ g(J, { gap: "xs", children: [
4403
+ /* @__PURE__ */ s(q, { gap: "xs", children: [
4380
4404
  /* @__PURE__ */ A(
4381
4405
  Wi,
4382
4406
  {
@@ -4397,9 +4421,9 @@ const Ui = (e) => {
4397
4421
  required: t = !1,
4398
4422
  ...n
4399
4423
  }) => {
4400
- var s, C, d, w;
4424
+ var g, C, d, w;
4401
4425
  const l = n.hideMessageError || !1, c = i === "horizontal" ? e === "sm" ? 342 : e === "lg" ? 400 : 342 : void 0;
4402
- return /* @__PURE__ */ g(
4426
+ return /* @__PURE__ */ s(
4403
4427
  a,
4404
4428
  {
4405
4429
  gap: i === "horizontal" || i === "horizontal-inline" ? "spacing-96" : "sm",
@@ -4407,33 +4431,33 @@ const Ui = (e) => {
4407
4431
  ...n.containerProps,
4408
4432
  children: [
4409
4433
  n.title && /* @__PURE__ */ A(
4410
- O,
4434
+ Y,
4411
4435
  {
4412
4436
  condition: !!t,
4413
- fallback: /* @__PURE__ */ g(
4437
+ fallback: /* @__PURE__ */ s(
4414
4438
  a,
4415
4439
  {
4416
4440
  direction: "column",
4417
4441
  customMaxWidth: c,
4418
4442
  fullWidth: o,
4419
4443
  children: [
4420
- /* @__PURE__ */ A(z, { children: n.title }),
4421
- /* @__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 })
4422
4446
  ]
4423
4447
  }
4424
4448
  ),
4425
- children: /* @__PURE__ */ g(
4449
+ children: /* @__PURE__ */ s(
4426
4450
  a,
4427
4451
  {
4428
4452
  direction: "column",
4429
4453
  customMaxWidth: c,
4430
4454
  fullWidth: o,
4431
4455
  children: [
4432
- /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4433
- /* @__PURE__ */ A(z, { fontSize: e, children: n.title }),
4434
- /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
4435
- /* @__PURE__ */ A(O, { condition: !!((s = n.tooltip) != null && s.label), children: /* @__PURE__ */ A(
4436
- 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,
4437
4461
  {
4438
4462
  label: (C = n.tooltip) == null ? void 0 : C.label,
4439
4463
  arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
@@ -4452,7 +4476,7 @@ const Ui = (e) => {
4452
4476
  }
4453
4477
  ) })
4454
4478
  ] }),
4455
- /* @__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 }) })
4456
4480
  ]
4457
4481
  }
4458
4482
  )
@@ -4465,13 +4489,13 @@ const Ui = (e) => {
4465
4489
  direction: i === "horizontal-inline" ? "row" : "column",
4466
4490
  align: "flex-start",
4467
4491
  children: /* @__PURE__ */ A(
4468
- kA,
4492
+ EA,
4469
4493
  {
4470
4494
  of: (w = n.checkBoxesList) == null ? void 0 : w.map((B) => ({
4471
4495
  ...B,
4472
4496
  isChecked: n.checkBoxesAreChecked.includes(B.id)
4473
4497
  })),
4474
- render: (B) => B.renderBadge ? /* @__PURE__ */ g(
4498
+ render: (B) => B.renderBadge ? /* @__PURE__ */ s(
4475
4499
  a,
4476
4500
  {
4477
4501
  direction: "row",
@@ -4485,7 +4509,7 @@ const Ui = (e) => {
4485
4509
  name: B.name,
4486
4510
  value: B.id,
4487
4511
  checked: B.isChecked,
4488
- onChange: (u) => n.onChecked(u.target.value, B),
4512
+ onChange: (I) => n.onChecked(I.target.value, B),
4489
4513
  label: B.name,
4490
4514
  description: B.description
4491
4515
  }
@@ -4499,7 +4523,7 @@ const Ui = (e) => {
4499
4523
  name: B.name,
4500
4524
  value: B.id,
4501
4525
  checked: B.isChecked,
4502
- onChange: (u) => n.onChecked(u.target.value, B),
4526
+ onChange: (I) => n.onChecked(I.target.value, B),
4503
4527
  label: B.name,
4504
4528
  description: B.description
4505
4529
  }
@@ -4520,21 +4544,21 @@ const Ui = (e) => {
4520
4544
  }) => {
4521
4545
  var n;
4522
4546
  const t = e === "horizontal-inline" || e === "horizontal-block" ? i === "sm" ? 342 : i === "lg" ? 400 : 342 : void 0;
4523
- return /* @__PURE__ */ g(
4547
+ return /* @__PURE__ */ s(
4524
4548
  a,
4525
4549
  {
4526
4550
  gap: e === "horizontal-inline" || e === "horizontal-block" ? "spacing-96" : "sm",
4527
4551
  direction: e === "horizontal-inline" || e === "horizontal-block" ? "row" : "column",
4528
4552
  children: [
4529
- /* @__PURE__ */ A(O, { condition: !!o.description || !!o.title, children: /* @__PURE__ */ g(
4553
+ /* @__PURE__ */ A(Y, { condition: !!o.description || !!o.title, children: /* @__PURE__ */ s(
4530
4554
  a,
4531
4555
  {
4532
4556
  direction: "column",
4533
4557
  customMaxWidth: t,
4534
4558
  fullWidth: r,
4535
4559
  children: [
4536
- o.title && /* @__PURE__ */ A(z, { children: o.title }),
4537
- /* @__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 }) })
4538
4562
  ]
4539
4563
  }
4540
4564
  ) }),
@@ -4546,21 +4570,21 @@ const Ui = (e) => {
4546
4570
  align: "flex-start",
4547
4571
  flexWrap: "wrap",
4548
4572
  children: /* @__PURE__ */ A(
4549
- kA,
4573
+ EA,
4550
4574
  {
4551
4575
  of: (n = o.radioList) == null ? void 0 : n.map((l) => ({
4552
4576
  ...l,
4553
4577
  isChecked: o.radioIsChecked === l.id
4554
4578
  })),
4555
- 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: [
4556
4580
  /* @__PURE__ */ A(
4557
- Me,
4581
+ Ee,
4558
4582
  {
4559
4583
  id: `${c.toString()}-${l}`,
4560
4584
  name: o.groupName || d,
4561
4585
  label: d,
4562
4586
  value: l,
4563
- checked: s,
4587
+ checked: g,
4564
4588
  onChange: (B) => o.onChecked({
4565
4589
  id: c,
4566
4590
  label: B.target.name,
@@ -4597,9 +4621,9 @@ const Ui = (e) => {
4597
4621
  fullWidth: o = !1,
4598
4622
  ...t
4599
4623
  }) => {
4600
- var c, s, C;
4624
+ var c, g, C;
4601
4625
  const n = t.hideMessageError || !1, l = i === "horizontal" ? e === "sm" ? 342 : e === "lg" ? 400 : 342 : void 0;
4602
- return /* @__PURE__ */ g(
4626
+ return /* @__PURE__ */ s(
4603
4627
  a,
4604
4628
  {
4605
4629
  gap: i === "horizontal" ? "spacing-96" : "sm",
@@ -4607,35 +4631,35 @@ const Ui = (e) => {
4607
4631
  ...t.containerProps,
4608
4632
  children: [
4609
4633
  t.title && /* @__PURE__ */ A(
4610
- O,
4634
+ Y,
4611
4635
  {
4612
4636
  condition: !!t.inputProps.required,
4613
- fallback: /* @__PURE__ */ g(
4637
+ fallback: /* @__PURE__ */ s(
4614
4638
  a,
4615
4639
  {
4616
4640
  direction: "column",
4617
4641
  customMaxWidth: l,
4618
4642
  fullWidth: o,
4619
4643
  children: [
4620
- /* @__PURE__ */ A(z, { children: t.title }),
4644
+ /* @__PURE__ */ A(K, { children: t.title }),
4621
4645
  /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description })
4622
4646
  ]
4623
4647
  }
4624
4648
  ),
4625
- children: /* @__PURE__ */ g(
4649
+ children: /* @__PURE__ */ s(
4626
4650
  a,
4627
4651
  {
4628
4652
  direction: "column",
4629
4653
  customMaxWidth: l,
4630
4654
  fullWidth: o,
4631
4655
  children: [
4632
- /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4633
- /* @__PURE__ */ A(z, { fontSize: e, children: t.title }),
4634
- /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
4635
- /* @__PURE__ */ A(O, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4636
- 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,
4637
4661
  {
4638
- label: (s = t.tooltip) == null ? void 0 : s.label,
4662
+ label: (g = t.tooltip) == null ? void 0 : g.label,
4639
4663
  arrowPosition: (C = t.tooltip) == null ? void 0 : C.arrowPosition,
4640
4664
  ...t.tooltip,
4641
4665
  children: /* @__PURE__ */ A(
@@ -4652,13 +4676,13 @@ const Ui = (e) => {
4652
4676
  }
4653
4677
  ) })
4654
4678
  ] }),
4655
- /* @__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 }) })
4656
4680
  ]
4657
4681
  }
4658
4682
  )
4659
4683
  }
4660
4684
  ),
4661
- /* @__PURE__ */ g(J, { gap: "xs", children: [
4685
+ /* @__PURE__ */ s(q, { gap: "xs", children: [
4662
4686
  /* @__PURE__ */ A(
4663
4687
  Ie,
4664
4688
  {
@@ -4681,9 +4705,9 @@ const Ui = (e) => {
4681
4705
  fullWidth: t = !1,
4682
4706
  ...n
4683
4707
  }) => {
4684
- var c, s, C;
4708
+ var c, g, C;
4685
4709
  const l = i === "horizontal" ? e === "sm" ? 342 : e === "lg" ? 400 : 342 : void 0;
4686
- return /* @__PURE__ */ g(
4710
+ return /* @__PURE__ */ s(
4687
4711
  a,
4688
4712
  {
4689
4713
  gap: i === "horizontal" ? "spacing-96" : "sm",
@@ -4691,35 +4715,35 @@ const Ui = (e) => {
4691
4715
  ...n.containerProps,
4692
4716
  children: [
4693
4717
  n.title && /* @__PURE__ */ A(
4694
- O,
4718
+ Y,
4695
4719
  {
4696
4720
  condition: o,
4697
- fallback: /* @__PURE__ */ g(
4721
+ fallback: /* @__PURE__ */ s(
4698
4722
  a,
4699
4723
  {
4700
4724
  direction: "column",
4701
4725
  customMaxWidth: l,
4702
4726
  fullWidth: t,
4703
4727
  children: [
4704
- /* @__PURE__ */ A(z, { children: n.title }),
4728
+ /* @__PURE__ */ A(K, { children: n.title }),
4705
4729
  /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: n.titleDescription })
4706
4730
  ]
4707
4731
  }
4708
4732
  ),
4709
- children: /* @__PURE__ */ g(
4733
+ children: /* @__PURE__ */ s(
4710
4734
  a,
4711
4735
  {
4712
4736
  direction: "column",
4713
4737
  customMaxWidth: l,
4714
4738
  fullWidth: t,
4715
4739
  children: [
4716
- /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4717
- /* @__PURE__ */ A(z, { fontSize: e, children: n.title }),
4718
- /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
4719
- /* @__PURE__ */ A(O, { condition: !!((c = n.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4720
- 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,
4721
4745
  {
4722
- label: (s = n.tooltip) == null ? void 0 : s.label,
4746
+ label: (g = n.tooltip) == null ? void 0 : g.label,
4723
4747
  arrowPosition: (C = n.tooltip) == null ? void 0 : C.arrowPosition,
4724
4748
  ...n.tooltip,
4725
4749
  children: /* @__PURE__ */ A(
@@ -4736,7 +4760,7 @@ const Ui = (e) => {
4736
4760
  }
4737
4761
  ) })
4738
4762
  ] }),
4739
- /* @__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 }) })
4740
4764
  ]
4741
4765
  }
4742
4766
  )
@@ -4761,31 +4785,31 @@ const Ui = (e) => {
4761
4785
  ...r
4762
4786
  }) => {
4763
4787
  const o = ZA(), t = (l) => {
4764
- var s, C, d, w, B, u;
4788
+ var g, C, d, w, B, I;
4765
4789
  if (!l) return;
4766
- const c = r.disabled ? "var(--starasia-ui-text-color-primary-disable)" : e === "secondary" ? "var(--starasia-ui-text-color-secondary)" : e === "secondary-danger" ? (C = (s = o == null ? void 0 : o.computed) == null ? void 0 : s.red) == null ? void 0 : C[600] : e === "secondary-primary" ? (w = (d = o == null ? void 0 : o.computed) == null ? void 0 : d.blue) == null ? void 0 : w[700] : (u = (B = o == null ? void 0 : o.computed) == null ? void 0 : B.gray) == null ? void 0 : u[50];
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];
4767
4791
  return /* @__PURE__ */ A(m, { name: l, size: i, style: { color: c } });
4768
4792
  }, n = () => {
4769
- var c, s, C, d;
4793
+ var c, g, C, d;
4770
4794
  if (e !== "secondary-danger" && e !== "secondary-primary")
4771
4795
  return r.title;
4772
4796
  const l = {
4773
- color: r.disabled ? "var(--starasia-ui-text-color-primary-disable)" : e === "secondary-danger" ? (s = (c = o == null ? void 0 : o.computed) == null ? void 0 : c.red) == null ? void 0 : s[600] : (d = (C = o == null ? void 0 : o.computed) == null ? void 0 : C.blue) == null ? void 0 : d[700]
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]
4774
4798
  };
4775
4799
  switch (i) {
4776
4800
  case "xs":
4777
- return /* @__PURE__ */ A(K.Body2, { props: { style: l }, children: r.title });
4801
+ return /* @__PURE__ */ A(J.Body2, { props: { style: l }, children: r.title });
4778
4802
  case "sm":
4779
4803
  case "md":
4780
- return /* @__PURE__ */ A(K.SubH3, { props: { style: l }, children: r.title });
4804
+ return /* @__PURE__ */ A(J.SubH3, { props: { style: l }, children: r.title });
4781
4805
  case "lg":
4782
- return /* @__PURE__ */ A(K.SubH2, { props: { style: l }, children: r.title });
4806
+ return /* @__PURE__ */ A(J.SubH2, { props: { style: l }, children: r.title });
4783
4807
  default:
4784
4808
  return r.title;
4785
4809
  }
4786
4810
  };
4787
4811
  return /* @__PURE__ */ A(
4788
- b,
4812
+ O,
4789
4813
  {
4790
4814
  fullWidth: !0,
4791
4815
  disabled: r.disabled,
@@ -4801,7 +4825,7 @@ const Ui = (e) => {
4801
4825
  }
4802
4826
  );
4803
4827
  }, _i = (e) => /* @__PURE__ */ A(
4804
- K.H5,
4828
+ J.H5,
4805
4829
  {
4806
4830
  props: {
4807
4831
  ...e
@@ -4815,9 +4839,9 @@ const Ui = (e) => {
4815
4839
  fullWidth: o = !1,
4816
4840
  ...t
4817
4841
  }) => {
4818
- var c, s, C;
4842
+ var c, g, C;
4819
4843
  const n = t.hideMessageError || !1, l = i === "horizontal" ? e === "sm" ? 342 : e === "lg" ? 400 : 342 : void 0;
4820
- return /* @__PURE__ */ g(
4844
+ return /* @__PURE__ */ s(
4821
4845
  a,
4822
4846
  {
4823
4847
  gap: i === "horizontal" ? "spacing-96" : "sm",
@@ -4825,35 +4849,35 @@ const Ui = (e) => {
4825
4849
  onClick: t.onClickContainer,
4826
4850
  children: [
4827
4851
  t.title && /* @__PURE__ */ A(
4828
- O,
4852
+ Y,
4829
4853
  {
4830
4854
  condition: !!t.inputProps.required,
4831
- fallback: /* @__PURE__ */ g(
4855
+ fallback: /* @__PURE__ */ s(
4832
4856
  a,
4833
4857
  {
4834
4858
  direction: "column",
4835
4859
  customMaxWidth: l,
4836
4860
  fullWidth: o,
4837
4861
  children: [
4838
- /* @__PURE__ */ A(z, { children: t.title }),
4862
+ /* @__PURE__ */ A(K, { children: t.title }),
4839
4863
  /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description })
4840
4864
  ]
4841
4865
  }
4842
4866
  ),
4843
- children: /* @__PURE__ */ g(
4867
+ children: /* @__PURE__ */ s(
4844
4868
  a,
4845
4869
  {
4846
4870
  direction: "column",
4847
4871
  customMaxWidth: l,
4848
4872
  fullWidth: o,
4849
4873
  children: [
4850
- /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
4851
- /* @__PURE__ */ A(z, { fontSize: e, children: t.title }),
4852
- /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
4853
- /* @__PURE__ */ A(O, { condition: !!((c = t.tooltip) != null && c.label), children: /* @__PURE__ */ A(
4854
- 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,
4855
4879
  {
4856
- label: (s = t.tooltip) == null ? void 0 : s.label,
4880
+ label: (g = t.tooltip) == null ? void 0 : g.label,
4857
4881
  arrowPosition: (C = t.tooltip) == null ? void 0 : C.arrowPosition,
4858
4882
  ...t.tooltip,
4859
4883
  children: /* @__PURE__ */ A(
@@ -4870,13 +4894,13 @@ const Ui = (e) => {
4870
4894
  }
4871
4895
  ) })
4872
4896
  ] }),
4873
- /* @__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 }) })
4874
4898
  ]
4875
4899
  }
4876
4900
  )
4877
4901
  }
4878
4902
  ),
4879
- /* @__PURE__ */ g(J, { gap: "xs", children: [
4903
+ /* @__PURE__ */ s(q, { gap: "xs", children: [
4880
4904
  /* @__PURE__ */ A(
4881
4905
  a,
4882
4906
  {
@@ -4921,8 +4945,8 @@ async function et(e, i) {
4921
4945
  ), new Promise((n, l) => {
4922
4946
  o.toBlob((c) => {
4923
4947
  if (!c) return l("Canvas is empty");
4924
- const s = new File([c], "cropped.png", { type: "image/png" });
4925
- n(s);
4948
+ const g = new File([c], "cropped.png", { type: "image/png" });
4949
+ n(g);
4926
4950
  }, "image/png");
4927
4951
  });
4928
4952
  }
@@ -4945,52 +4969,52 @@ const VA = {
4945
4969
  size: n = "96",
4946
4970
  aspect: l = "1:1",
4947
4971
  containerProps: c,
4948
- maxFileSize: s = 2,
4972
+ maxFileSize: g = 2,
4949
4973
  onError: C
4950
4974
  }, d) => {
4951
- const w = V("md"), [B, u] = G(!1), [j, h] = G(null), [Y, p] = G(!1), [N, U] = G({ x: 0, y: 0 }), [L, k] = G(1), [Z, H] = G(null);
4952
- 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(() => {
4953
4977
  i === null && t(null);
4954
4978
  }, [i]);
4955
- const P = JA(
4956
- (T, tA) => {
4957
- H(tA);
4979
+ const V = JA(
4980
+ (H, z) => {
4981
+ Z(z);
4958
4982
  },
4959
4983
  []
4960
- ), X = (T) => {
4961
- var MA;
4962
- const tA = (MA = T.target.files) == null ? void 0 : MA[0];
4963
- if (!tA) return;
4964
- const wA = new FileReader();
4965
- wA.onload = () => {
4966
- h(wA.result), p(!0);
4967
- }, wA.readAsDataURL(tA);
4968
- }, q = async () => {
4969
- 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))
4970
4994
  try {
4971
- const T = await et(j, Z);
4972
- if (s && T.size > s * 1024 * 1024) {
4973
- 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`);
4974
4998
  return;
4975
4999
  }
4976
- e == null || e(T);
4977
- const tA = URL.createObjectURL(T);
4978
- t(tA, T), p(!1);
5000
+ e == null || e(H);
5001
+ const z = URL.createObjectURL(H);
5002
+ t(z, H), p(!1);
4979
5003
  } catch {
4980
5004
  C == null || C("Gagal memproses gambar");
4981
5005
  }
4982
- }, E = AA(null), f = () => {
5006
+ }, E = eA(null), S = () => {
4983
5007
  E.current && E.current.click();
4984
5008
  };
4985
5009
  xe(d, () => ({
4986
5010
  openFileDialog: () => {
4987
- var T;
4988
- (T = E.current) == null || T.click();
5011
+ var H;
5012
+ (H = E.current) == null || H.click();
4989
5013
  }
4990
5014
  }));
4991
5015
  const M = parseInt(n, 10), D = VA[l];
4992
5016
  let F, x;
4993
- 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(
4994
5018
  a,
4995
5019
  {
4996
5020
  display: "flex",
@@ -5009,8 +5033,8 @@ const VA = {
5009
5033
  aspectRatio: D,
5010
5034
  flexShrink: 0
5011
5035
  },
5012
- onMouseEnter: () => u(!0),
5013
- onMouseLeave: () => u(!1),
5036
+ onMouseEnter: () => I(!0),
5037
+ onMouseLeave: () => I(!1),
5014
5038
  children: [
5015
5039
  o || i ? /* @__PURE__ */ A(
5016
5040
  "img",
@@ -5044,7 +5068,7 @@ const VA = {
5044
5068
  )
5045
5069
  }
5046
5070
  ),
5047
- /* @__PURE__ */ g(
5071
+ /* @__PURE__ */ s(
5048
5072
  a,
5049
5073
  {
5050
5074
  position: "absolute",
@@ -5058,7 +5082,7 @@ const VA = {
5058
5082
  opacity: B ? 1 : 0,
5059
5083
  transition: "opacity 0.3s ease-in-out"
5060
5084
  },
5061
- onClick: f,
5085
+ onClick: S,
5062
5086
  children: [
5063
5087
  /* @__PURE__ */ A(
5064
5088
  "input",
@@ -5066,12 +5090,12 @@ const VA = {
5066
5090
  ref: E,
5067
5091
  type: "file",
5068
5092
  accept: "image/*",
5069
- onChange: X,
5093
+ onChange: AA,
5070
5094
  disabled: r,
5071
5095
  style: { display: "none" }
5072
5096
  }
5073
5097
  ),
5074
- /* @__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: [
5075
5099
  /* @__PURE__ */ A(
5076
5100
  m,
5077
5101
  {
@@ -5079,7 +5103,7 @@ const VA = {
5079
5103
  style: { color: "var(--starasia-ui-color-gray-50)" }
5080
5104
  }
5081
5105
  ),
5082
- /* @__PURE__ */ A(O, { condition: n.toNumber() > 80, children: /* @__PURE__ */ A(
5106
+ /* @__PURE__ */ A(Y, { condition: n.toNumber() > 80, children: /* @__PURE__ */ A(
5083
5107
  Q,
5084
5108
  {
5085
5109
  color: "gray-50",
@@ -5119,16 +5143,16 @@ const VA = {
5119
5143
  )
5120
5144
  }
5121
5145
  ),
5122
- /* @__PURE__ */ g(
5123
- QA,
5146
+ /* @__PURE__ */ s(
5147
+ hA,
5124
5148
  {
5125
- isShow: Y,
5149
+ isShow: j,
5126
5150
  onHide: () => p(!1),
5127
5151
  style: {
5128
5152
  minWidth: w ? l === "1:1" ? "20rem" : F * 2 : "100%"
5129
5153
  },
5130
5154
  children: [
5131
- /* @__PURE__ */ A(hA, { children: /* @__PURE__ */ A(
5155
+ /* @__PURE__ */ A(DA, { children: /* @__PURE__ */ A(
5132
5156
  a,
5133
5157
  {
5134
5158
  position: "relative",
@@ -5137,16 +5161,16 @@ const VA = {
5137
5161
  height: "20rem",
5138
5162
  backgroundColor: "gray-100"
5139
5163
  },
5140
- children: j && /* @__PURE__ */ A(
5164
+ children: G && /* @__PURE__ */ A(
5141
5165
  Se,
5142
5166
  {
5143
- image: j,
5167
+ image: G,
5144
5168
  crop: N,
5145
- zoom: L,
5169
+ zoom: f,
5146
5170
  aspect: l ? VA[l] : void 0,
5147
- onCropChange: U,
5171
+ onCropChange: R,
5148
5172
  onZoomChange: k,
5149
- onCropComplete: P,
5173
+ onCropComplete: V,
5150
5174
  objectFit: "contain",
5151
5175
  minZoom: 0.5,
5152
5176
  restrictPosition: !1
@@ -5154,9 +5178,9 @@ const VA = {
5154
5178
  )
5155
5179
  }
5156
5180
  ) }),
5157
- /* @__PURE__ */ A(xA, { children: /* @__PURE__ */ g(a, { justify: "flex-end", direction: "row", gap: "sm", children: [
5158
- /* @__PURE__ */ A(b, { size: "xs", secondary: !0, onClick: () => p(!1), children: "Cancel" }),
5159
- /* @__PURE__ */ A(b, { size: "xs", primary: !0, onClick: q, children: "Crop" })
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" })
5160
5184
  ] }) })
5161
5185
  ]
5162
5186
  }
@@ -5173,9 +5197,9 @@ const VA = {
5173
5197
  required: t = !1,
5174
5198
  ...n
5175
5199
  }) => {
5176
- var s, C, d;
5200
+ var g, C, d;
5177
5201
  const l = n.hideMessageError || !1, c = i === "horizontal" ? e === "sm" ? 342 : e === "lg" ? 400 : 342 : void 0;
5178
- return /* @__PURE__ */ g(
5202
+ return /* @__PURE__ */ s(
5179
5203
  a,
5180
5204
  {
5181
5205
  gap: i === "horizontal" ? "spacing-96" : "sm",
@@ -5183,33 +5207,33 @@ const VA = {
5183
5207
  ...n.containerProps,
5184
5208
  children: [
5185
5209
  n.title && /* @__PURE__ */ A(
5186
- O,
5210
+ Y,
5187
5211
  {
5188
5212
  condition: !!t,
5189
- fallback: /* @__PURE__ */ g(
5213
+ fallback: /* @__PURE__ */ s(
5190
5214
  a,
5191
5215
  {
5192
5216
  direction: "column",
5193
5217
  customMaxWidth: c,
5194
5218
  fullWidth: o,
5195
5219
  children: [
5196
- /* @__PURE__ */ A(z, { children: n.title }),
5220
+ /* @__PURE__ */ A(K, { children: n.title }),
5197
5221
  /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: n.description })
5198
5222
  ]
5199
5223
  }
5200
5224
  ),
5201
- children: /* @__PURE__ */ g(
5225
+ children: /* @__PURE__ */ s(
5202
5226
  a,
5203
5227
  {
5204
5228
  direction: "column",
5205
5229
  customMaxWidth: c,
5206
5230
  fullWidth: o,
5207
5231
  children: [
5208
- /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
5209
- /* @__PURE__ */ A(z, { fontSize: e, children: n.title }),
5210
- /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
5211
- /* @__PURE__ */ A(O, { condition: !!((s = n.tooltip) != null && s.label), children: /* @__PURE__ */ A(
5212
- 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,
5213
5237
  {
5214
5238
  label: (C = n.tooltip) == null ? void 0 : C.label,
5215
5239
  arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
@@ -5228,13 +5252,13 @@ const VA = {
5228
5252
  }
5229
5253
  ) })
5230
5254
  ] }),
5231
- /* @__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 }) })
5232
5256
  ]
5233
5257
  }
5234
5258
  )
5235
5259
  }
5236
5260
  ),
5237
- /* @__PURE__ */ g(J, { gap: "xs", children: [
5261
+ /* @__PURE__ */ s(q, { gap: "xs", children: [
5238
5262
  /* @__PURE__ */ A(it, { ...n.inputProps }),
5239
5263
  !l && n.errorMessage && /* @__PURE__ */ A(nA, { message: n.errorMessage })
5240
5264
  ] })
@@ -5248,9 +5272,9 @@ const VA = {
5248
5272
  fullWidth: o = !1,
5249
5273
  ...t
5250
5274
  }) => {
5251
- var l, c, s;
5275
+ var l, c, g;
5252
5276
  const n = i === "horizontal" ? e === "sm" ? 342 : e === "lg" ? 400 : 342 : void 0;
5253
- return /* @__PURE__ */ g(
5277
+ return /* @__PURE__ */ s(
5254
5278
  a,
5255
5279
  {
5256
5280
  gap: i === "horizontal" ? "spacing-96" : "sm",
@@ -5258,36 +5282,36 @@ const VA = {
5258
5282
  ...t.containerProps,
5259
5283
  children: [
5260
5284
  t.title && /* @__PURE__ */ A(
5261
- O,
5285
+ Y,
5262
5286
  {
5263
5287
  condition: !!t.inputProps.required,
5264
- fallback: /* @__PURE__ */ g(
5288
+ fallback: /* @__PURE__ */ s(
5265
5289
  a,
5266
5290
  {
5267
5291
  direction: "column",
5268
5292
  customMaxWidth: n,
5269
5293
  fullWidth: o,
5270
5294
  children: [
5271
- /* @__PURE__ */ A(z, { children: t.title }),
5295
+ /* @__PURE__ */ A(K, { children: t.title }),
5272
5296
  /* @__PURE__ */ A(Q, { fontSize: e, color: "gray-500", children: t.description })
5273
5297
  ]
5274
5298
  }
5275
5299
  ),
5276
- children: /* @__PURE__ */ g(
5300
+ children: /* @__PURE__ */ s(
5277
5301
  a,
5278
5302
  {
5279
5303
  direction: "column",
5280
5304
  customMaxWidth: n,
5281
5305
  fullWidth: o,
5282
5306
  children: [
5283
- /* @__PURE__ */ g(J, { direction: "row", gap: "xs", align: "center", children: [
5284
- /* @__PURE__ */ A(z, { fontSize: e, children: t.title }),
5285
- /* @__PURE__ */ A(z, { color: "error", fontSize: e, children: r }),
5286
- /* @__PURE__ */ A(O, { condition: !!((l = t.tooltip) != null && l.label), children: /* @__PURE__ */ A(
5287
- 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,
5288
5312
  {
5289
5313
  label: (c = t.tooltip) == null ? void 0 : c.label,
5290
- arrowPosition: (s = t.tooltip) == null ? void 0 : s.arrowPosition,
5314
+ arrowPosition: (g = t.tooltip) == null ? void 0 : g.arrowPosition,
5291
5315
  ...t.tooltip,
5292
5316
  children: /* @__PURE__ */ A(
5293
5317
  m,
@@ -5303,7 +5327,7 @@ const VA = {
5303
5327
  }
5304
5328
  ) })
5305
5329
  ] }),
5306
- /* @__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 }) })
5307
5331
  ]
5308
5332
  }
5309
5333
  )
@@ -5322,15 +5346,15 @@ const VA = {
5322
5346
  disabled: n = !1
5323
5347
  }) => {
5324
5348
  var d;
5325
- const [l, c] = G([]);
5326
- R(() => {
5349
+ const [l, c] = b([]);
5350
+ U(() => {
5327
5351
  e && c([...e.map((w) => ({ id: w.id, isActive: w.isActive }))]);
5328
5352
  }, [e]);
5329
- 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(() => {
5330
5354
  c(
5331
5355
  (w) => w.map((B) => B.id === i ? { ...B, isActive: !B.isActive } : B)
5332
- ), r && r(!s);
5333
- }, [i, r, s]);
5356
+ ), r && r(!g);
5357
+ }, [i, r, g]);
5334
5358
  return /* @__PURE__ */ A(
5335
5359
  a,
5336
5360
  {
@@ -5343,9 +5367,9 @@ const VA = {
5343
5367
  ee,
5344
5368
  {
5345
5369
  disabled: n,
5346
- checked: s,
5370
+ checked: g,
5347
5371
  onChange: C,
5348
- label: s ? "Active" : "Inactive"
5372
+ label: g ? "Active" : "Inactive"
5349
5373
  }
5350
5374
  )
5351
5375
  }
@@ -5364,12 +5388,12 @@ const VA = {
5364
5388
  InputImgFile: tt,
5365
5389
  Custom: rt
5366
5390
  }, ot = ({ customBottom: e }) => {
5367
- const [i, r] = G(!1), o = () => {
5391
+ const [i, r] = b(!1), o = () => {
5368
5392
  window.scrollY > window.screenY ? r(!0) : r(!1);
5369
5393
  }, t = () => {
5370
5394
  window.scrollTo({ top: 0, behavior: "smooth" });
5371
5395
  };
5372
- return R(() => (window.addEventListener("scroll", o), () => {
5396
+ return U(() => (window.addEventListener("scroll", o), () => {
5373
5397
  window.removeEventListener("scroll", o);
5374
5398
  }), []), /* @__PURE__ */ A(
5375
5399
  a,
@@ -5390,7 +5414,7 @@ const VA = {
5390
5414
  transition: "transform 0.2s ease-in-out"
5391
5415
  },
5392
5416
  children: /* @__PURE__ */ A(
5393
- b,
5417
+ O,
5394
5418
  {
5395
5419
  secondary: !0,
5396
5420
  size: "xs",
@@ -5413,9 +5437,9 @@ const VA = {
5413
5437
  )
5414
5438
  }
5415
5439
  );
5416
- }, Mr = ({ pageLayout: e, children: i }) => {
5417
- const r = V("lg");
5418
- return /* @__PURE__ */ g(
5440
+ }, Er = ({ pageLayout: e, children: i }) => {
5441
+ const r = X("lg");
5442
+ return /* @__PURE__ */ s(
5419
5443
  a,
5420
5444
  {
5421
5445
  display: "block",
@@ -5452,12 +5476,12 @@ const VA = {
5452
5476
  ]
5453
5477
  }
5454
5478
  );
5455
- }, Er = ({
5479
+ }, Mr = ({
5456
5480
  children: e,
5457
5481
  withScrollToTopButton: i = !1,
5458
5482
  scrollToTopButtonProps: r,
5459
5483
  containerProps: o
5460
- }) => /* @__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(
5461
5485
  a,
5462
5486
  {
5463
5487
  position: "fixed",
@@ -5489,20 +5513,20 @@ const VA = {
5489
5513
  ]
5490
5514
  }
5491
5515
  ) }), mr = ({ fields: e }) => /* @__PURE__ */ A(a, { display: "flex", direction: "column", gap: "lg", children: /* @__PURE__ */ A(
5492
- kA,
5516
+ EA,
5493
5517
  {
5494
5518
  of: e,
5495
5519
  render: (i, r) => /* @__PURE__ */ A(nt, { ...i }, r)
5496
5520
  }
5497
- ) }), nt = ({ title: e, value: i, icon: r }) => /* @__PURE__ */ g(a, { display: "flex", direction: "column", gap: "sm", children: [
5498
- 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: [
5499
5523
  /* @__PURE__ */ A(m, { name: r, color: "var(--starasia-ui-color-gray-300)" }),
5500
5524
  /* @__PURE__ */ A(Q, { color: "gray-500", variant: "sub-h3", children: e })
5501
5525
  ] }) : /* @__PURE__ */ A(Q, { color: "gray-500", variant: "sub-h3", children: e }),
5502
5526
  typeof i == "string" ? /* @__PURE__ */ A(Q, { variant: "sub-h3", children: i }) : i
5503
5527
  ] });
5504
5528
  function lt({ width: e, height: i }) {
5505
- return /* @__PURE__ */ A(W, { children: /* @__PURE__ */ g(
5529
+ return /* @__PURE__ */ A(W, { children: /* @__PURE__ */ s(
5506
5530
  "svg",
5507
5531
  {
5508
5532
  width: e || "100",
@@ -5653,31 +5677,31 @@ const yr = ({
5653
5677
  leftIcon: n,
5654
5678
  showButton: l = !0,
5655
5679
  customHeight: c,
5656
- childrenButton: s,
5680
+ childrenButton: g,
5657
5681
  customIcon: C
5658
5682
  }) => {
5659
5683
  const d = () => {
5660
5684
  switch (o) {
5661
5685
  case "primary":
5662
- return /* @__PURE__ */ A(W, { children: n ? /* @__PURE__ */ A(b, { primary: !0, iconLeft: n, onClick: r, children: s || e }) : /* @__PURE__ */ A(b, { primary: !0, onClick: r, children: s || e }) });
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 }) });
5663
5687
  case "secondary":
5664
- 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(
5665
5689
  Q,
5666
5690
  {
5667
5691
  fontFamily: "Poppins",
5668
5692
  fontSize: "md",
5669
5693
  fontWeight: "medium",
5670
5694
  style: { color: "var(--starasia-ui-utility-success-default)" },
5671
- children: s || e
5695
+ children: g || e
5672
5696
  }
5673
- ) : e }) : /* @__PURE__ */ A(b, { secondary: !0, onClick: r, children: s || e }) });
5697
+ ) : e }) : /* @__PURE__ */ A(O, { secondary: !0, onClick: r, children: g || e }) });
5674
5698
  case "success":
5675
- return /* @__PURE__ */ A(W, { children: n ? /* @__PURE__ */ A(b, { success: !0, iconLeft: n, onClick: r, children: s || e }) : /* @__PURE__ */ A(b, { success: !0, onClick: r, children: s || e }) });
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 }) });
5676
5700
  default:
5677
- return /* @__PURE__ */ A(W, { children: n ? /* @__PURE__ */ A(b, { primary: !0, iconLeft: n, onClick: r, children: s || e }) : /* @__PURE__ */ A(b, { primary: !0, onClick: r, children: s || e }) });
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 }) });
5678
5702
  }
5679
5703
  };
5680
- return /* @__PURE__ */ g(
5704
+ return /* @__PURE__ */ s(
5681
5705
  a,
5682
5706
  {
5683
5707
  height: "height-full",
@@ -5691,7 +5715,7 @@ const yr = ({
5691
5715
  children: [
5692
5716
  C || /* @__PURE__ */ A(lt, {}),
5693
5717
  /* @__PURE__ */ A(a, { children: i.map((w, B) => /* @__PURE__ */ A(
5694
- K.Body1,
5718
+ J.Body1,
5695
5719
  {
5696
5720
  props: {
5697
5721
  align: "center",
@@ -5707,7 +5731,7 @@ const yr = ({
5707
5731
  );
5708
5732
  };
5709
5733
  function ct({ width: e, height: i }) {
5710
- return /* @__PURE__ */ A(W, { children: /* @__PURE__ */ g(
5734
+ return /* @__PURE__ */ A(W, { children: /* @__PURE__ */ s(
5711
5735
  "svg",
5712
5736
  {
5713
5737
  width: e,
@@ -5910,8 +5934,8 @@ function ct({ width: e, height: i }) {
5910
5934
  ) });
5911
5935
  }
5912
5936
  function xr({ onClick: e }) {
5913
- const i = V("md");
5914
- return /* @__PURE__ */ g(
5937
+ const i = X("md");
5938
+ return /* @__PURE__ */ s(
5915
5939
  a,
5916
5940
  {
5917
5941
  height: "height-screen",
@@ -5940,13 +5964,13 @@ function xr({ onClick: e }) {
5940
5964
  children: "Sorry, we couldn't find the page you are looking for"
5941
5965
  }
5942
5966
  ),
5943
- 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" })
5944
5968
  ]
5945
5969
  }
5946
5970
  );
5947
5971
  }
5948
5972
  function gt({ width: e, height: i }) {
5949
- return /* @__PURE__ */ A(W, { children: /* @__PURE__ */ g(
5973
+ return /* @__PURE__ */ A(W, { children: /* @__PURE__ */ s(
5950
5974
  "svg",
5951
5975
  {
5952
5976
  width: e,
@@ -5966,7 +5990,7 @@ function gt({ width: e, height: i }) {
5966
5990
  fillOpacity: "0.6"
5967
5991
  }
5968
5992
  ),
5969
- /* @__PURE__ */ g("g", { clipPath: "url(#clip0_2949_9690)", children: [
5993
+ /* @__PURE__ */ s("g", { clipPath: "url(#clip0_2949_9690)", children: [
5970
5994
  /* @__PURE__ */ A(
5971
5995
  "path",
5972
5996
  {
@@ -6063,7 +6087,7 @@ function gt({ width: e, height: i }) {
6063
6087
  )
6064
6088
  }
6065
6089
  ),
6066
- /* @__PURE__ */ g("g", { mask: "url(#mask0_2949_9690)", children: [
6090
+ /* @__PURE__ */ s("g", { mask: "url(#mask0_2949_9690)", children: [
6067
6091
  /* @__PURE__ */ A(
6068
6092
  "path",
6069
6093
  {
@@ -6161,8 +6185,8 @@ function gt({ width: e, height: i }) {
6161
6185
  ) });
6162
6186
  }
6163
6187
  function fr({ onClick: e }) {
6164
- const i = V("md");
6165
- return /* @__PURE__ */ g(
6188
+ const i = X("md");
6189
+ return /* @__PURE__ */ s(
6166
6190
  a,
6167
6191
  {
6168
6192
  height: "height-screen",
@@ -6174,13 +6198,13 @@ function fr({ onClick: e }) {
6174
6198
  children: [
6175
6199
  /* @__PURE__ */ A(gt, { width: i ? 600 : 300 }),
6176
6200
  /* @__PURE__ */ A(Q, { fontWeight: "bold", fontSize: i ? "3xl" : "2xl", children: "We Are Sorry ..." }),
6177
- e && /* @__PURE__ */ A(b, { size: i ? "md" : "xs", onClick: e, children: "Go Back" })
6201
+ e && /* @__PURE__ */ A(O, { size: i ? "md" : "xs", onClick: e, children: "Go Back" })
6178
6202
  ]
6179
6203
  }
6180
6204
  );
6181
6205
  }
6182
6206
  function st({ width: e, height: i }) {
6183
- return /* @__PURE__ */ A(W, { children: /* @__PURE__ */ g(
6207
+ return /* @__PURE__ */ A(W, { children: /* @__PURE__ */ s(
6184
6208
  "svg",
6185
6209
  {
6186
6210
  width: e,
@@ -6852,8 +6876,8 @@ function st({ width: e, height: i }) {
6852
6876
  ) });
6853
6877
  }
6854
6878
  function Sr({ onClick: e }) {
6855
- const i = V("md");
6856
- return /* @__PURE__ */ g(
6879
+ const i = X("md");
6880
+ return /* @__PURE__ */ s(
6857
6881
  a,
6858
6882
  {
6859
6883
  height: "height-screen",
@@ -6883,16 +6907,16 @@ function Sr({ onClick: e }) {
6883
6907
  children: "we are trying to fix the problem"
6884
6908
  }
6885
6909
  ),
6886
- 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" })
6887
6911
  ]
6888
6912
  }
6889
6913
  );
6890
6914
  }
6891
6915
  const Lr = (e) => {
6892
6916
  var r, o, t, n, l;
6893
- const i = V("md");
6894
- return /* @__PURE__ */ g(
6895
- QA,
6917
+ const i = X("md");
6918
+ return /* @__PURE__ */ s(
6919
+ hA,
6896
6920
  {
6897
6921
  isShow: e.isShow,
6898
6922
  onHide: e.onHide,
@@ -6904,8 +6928,8 @@ const Lr = (e) => {
6904
6928
  }
6905
6929
  },
6906
6930
  children: [
6907
- /* @__PURE__ */ A(BA, { ...e.dialogTitleProps, children: typeof e.title == "string" ? /* @__PURE__ */ A(Q, { fontSize: "lg", fontWeight: "medium", children: e.title }) : e.title }),
6908
- /* @__PURE__ */ A(hA, { children: typeof e.description == "string" ? /* @__PURE__ */ A(Q, { fontSize: "md", lineHeight: "leading-6", color: "tertiary", children: e.description }) : e.description }),
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 }),
6909
6933
  /* @__PURE__ */ A(xA, { children: /* @__PURE__ */ A(
6910
6934
  a,
6911
6935
  {
@@ -6913,7 +6937,7 @@ const Lr = (e) => {
6913
6937
  direction: ((r = e.containerConfirmBtnProps) == null ? void 0 : r.direction) || "row",
6914
6938
  justify: ((o = e.containerConfirmBtnProps) == null ? void 0 : o.justify) || "flex-end",
6915
6939
  ...e.containerConfirmBtnProps,
6916
- children: /* @__PURE__ */ g(
6940
+ children: /* @__PURE__ */ s(
6917
6941
  a,
6918
6942
  {
6919
6943
  display: "flex",
@@ -6922,7 +6946,7 @@ const Lr = (e) => {
6922
6946
  gap: ((l = e.wrapperConfirmBtnProps) == null ? void 0 : l.gap) || "sm",
6923
6947
  ...e.wrapperConfirmBtnProps,
6924
6948
  children: [
6925
- 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" }),
6926
6950
  /* @__PURE__ */ A(
6927
6951
  a,
6928
6952
  {
@@ -6931,7 +6955,7 @@ const Lr = (e) => {
6931
6955
  textWrap: "nowrap"
6932
6956
  },
6933
6957
  children: /* @__PURE__ */ A(
6934
- b,
6958
+ O,
6935
6959
  {
6936
6960
  ...e.buttonConfirmProps,
6937
6961
  onClick: e.onConfirm,
@@ -6959,15 +6983,15 @@ const Lr = (e) => {
6959
6983
  customHeight: o,
6960
6984
  paddingInline: t = "spacing-24"
6961
6985
  }) => {
6962
- const n = AA(null), [l, c] = G("100vh");
6963
- return R(() => {
6964
- const s = () => {
6986
+ const n = eA(null), [l, c] = b("100vh");
6987
+ return U(() => {
6988
+ const g = () => {
6965
6989
  if (n.current) {
6966
6990
  const C = n.current.getBoundingClientRect().top;
6967
6991
  c(`calc(100vh - ${C}px)`);
6968
6992
  }
6969
6993
  };
6970
- return s(), window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
6994
+ return g(), window.addEventListener("resize", g), () => window.removeEventListener("resize", g);
6971
6995
  }, []), /* @__PURE__ */ A(
6972
6996
  a,
6973
6997
  {
@@ -6986,13 +7010,13 @@ const Lr = (e) => {
6986
7010
  );
6987
7011
  }
6988
7012
  ), Gr = (e) => {
6989
- 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());
6990
7014
  return {
6991
7015
  activeTab: n[r] ? parseInt(n[r]) : i,
6992
- handleTabChange: (s) => {
7016
+ handleTabChange: (g) => {
6993
7017
  t({
6994
7018
  ...n,
6995
- [r]: s.toString()
7019
+ [r]: g.toString()
6996
7020
  });
6997
7021
  },
6998
7022
  searchQueries: n
@@ -7004,23 +7028,23 @@ function Or({
7004
7028
  formatTitle: r
7005
7029
  }) {
7006
7030
  const o = SA();
7007
- R(() => {
7031
+ U(() => {
7008
7032
  let t = null, n = null;
7009
- for (const s of i) {
7010
- 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);
7011
7035
  if (C) {
7012
- t = C, n = s;
7036
+ t = C, n = g;
7013
7037
  break;
7014
7038
  }
7015
7039
  }
7016
7040
  const l = [];
7017
7041
  t != null && t.title && l.push(t.title), n != null && n.name && l.push(n.name.toTitleCase());
7018
- const c = (s, C) => s.length > 0 ? `${s.join(" - ")} | ${C}` : C;
7042
+ const c = (g, C) => g.length > 0 ? `${g.join(" - ")} | ${C}` : C;
7019
7043
  document.title = (r || c)(l, e);
7020
7044
  }, [o.pathname]);
7021
7045
  }
7022
7046
  const Yr = () => {
7023
- 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;
7024
7048
  return {
7025
7049
  // query params
7026
7050
  setSearchParams: i,
@@ -7042,17 +7066,17 @@ function pr(e) {
7042
7066
  var o, t;
7043
7067
  const i = e.decodedAccessToken;
7044
7068
  return oA(() => {
7045
- var s, C;
7046
- const n = ((C = (s = i == null ? void 0 : i.access) == null ? void 0 : s.role) == null ? void 0 : C.code) ?? "", l = Object.keys(e.role).reduce(
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(
7047
7071
  (d, w) => {
7048
- 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())}`;
7049
7073
  return { ...d, [B]: !1 };
7050
7074
  },
7051
7075
  {}
7052
7076
  );
7053
7077
  return {
7054
7078
  ...Object.keys(e.role).reduce((d, w) => {
7055
- 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())}`;
7056
7080
  return {
7057
7081
  ...d,
7058
7082
  [B]: n === e.role[w]
@@ -7071,16 +7095,16 @@ export {
7071
7095
  Oe as AppComponent,
7072
7096
  oe as AppContext,
7073
7097
  Zt as AppLayout,
7074
- Mr as AsideBar,
7098
+ Er as AsideBar,
7075
7099
  Ht as AuthLayout,
7076
7100
  Gi as ColumnFilterDropdown,
7077
7101
  Lr as ConfirmationDialog,
7078
7102
  Yi as DataTable,
7079
- O as DecisionWrapper,
7080
- kA as EachUtils,
7103
+ Y as DecisionWrapper,
7104
+ EA as EachUtils,
7081
7105
  yr as EmptyStatePage,
7082
7106
  yi as FilterDrawer,
7083
- Er as FloatingFooter,
7107
+ Mr as FloatingFooter,
7084
7108
  fr as ForbiddenPage,
7085
7109
  kr as Form,
7086
7110
  br as FullSection,
@@ -7091,7 +7115,7 @@ export {
7091
7115
  pe as ModuleSwitcherModal,
7092
7116
  xr as NotFoundPage,
7093
7117
  Tt as PageLayout,
7094
- aA as Pressable,
7118
+ wA as Pressable,
7095
7119
  LA as RightDrawer,
7096
7120
  ot as ScrollToTopButton,
7097
7121
  Ut as Section,
@@ -7103,7 +7127,7 @@ export {
7103
7127
  Dr as TableSection,
7104
7128
  fi as TableWrapper,
7105
7129
  ur as ToggleStatus,
7106
- K as Typography,
7130
+ J as Typography,
7107
7131
  mr as VerticalField,
7108
7132
  Rt as createInitialFromUserName,
7109
7133
  $t as cssVars,